@ckeditor/ckeditor5-track-changes 43.1.0-alpha.8 → 43.1.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 _0x1bb8e2,PendingActions as _0x33c468,icons as _0x3e07d2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x308934,ObservableMixin as _0x1490ae,uid as _0x59fd7a,insertToPriorityArray as _0x1871cf,priorities as _0x4e633f,logWarning as _0x357efb,getEnvKeystrokeText as _0xc926a6,FocusTracker as _0x2fc427,KeystrokeHandler as _0x106bfb,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1301a3,View as _0x4f4860,ViewCollection as _0x2149c7,FocusCycler as _0x512a89,ViewModel as _0x53dcc2,createDropdown as Qt,SplitButtonView as _0x57da64,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x2fe023}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x448709,hashObject as _0x1ca084,surroundingMarkersDetector as _0x5694a6,FOCUS_ANNOTATION_KEYSTROKE as _0x35c178,AriaDescriptionView as _0x4b5267,setupThreadKeyboardNavigation as _0x4d5f3d,trimHtml as _0x15c22e,UserView as _0x42680e,LateFocusButtonView as _0x440d0a,getDateTimeFormatter as _0xafa3b1,getAllMarkersDomElementsSorted as _0x411d85,sanitizeEditorConfig as _0x2eb3b4}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2f6c87,LiveRange as _0x1b736b,LivePosition as _0x7b15ae}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x125643,toWidget as _0x103af2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1fc44a,set as _0x404aed,isEqual as _0x135c1f,unset as _0x1d4a7c,omit as Tt}from'lodash-es';import{Delete as _0x53648f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1f0898,ShiftEnter as _0x1d0069}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x14b561,_0x1f8364){super(_0x14b561),this['_enabledCommands']=_0x1f8364,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 _0x571380 of this['editor']['commands']['commands']())_0x571380['affectsData']&&!this['_enabledCommands']['has'](_0x571380)&&_0x571380['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x262da3 of this['editor']['commands']['commands']())_0x262da3['affectsData']&&!this['_enabledCommands']['has'](_0x262da3)&&_0x262da3['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x16bc75,_0x2b4035){super(_0x16bc75),this['_suggestions']=_0x2b4035,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3b46ac){const _0xe31042=this['_suggestions']['get'](_0x3b46ac);if(!_0xe31042)throw new _0x308934('track-changes-accept-suggestion-not-found',this);const _0x1d2ee5=_0xe31042['getRanges']();this['editor']['model']['canEditAt'](_0x1d2ee5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xe31042);}}class R extends ts{['_suggestions'];constructor(_0x3feecc,_0xd3acda){super(_0x3feecc),this['_suggestions']=_0xd3acda,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x483c54){const _0x2360a9=this['_suggestions']['get'](_0x483c54);if(!_0x2360a9)throw new _0x308934('track-changes-discard-suggestion-not-found',this);const _0x58988d=_0x2360a9['getRanges']();this['editor']['model']['canEditAt'](_0x58988d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2360a9);}}function ls(_0x5c3e99,_0xa8a0bd){let _0x49bb64='';return _0x49bb64+=_0x5c3e99['split']('*')['map']((_0x14a80d,_0x31f8d8)=>_0x31f8d8%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x14a80d)+'</span>':nn(_0x14a80d))['join'](''),_0xa8a0bd&&(_0x49bb64+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xa8a0bd['value']+'\x22\x20title=\x22'+_0xa8a0bd['title']+'\x22></span>'),_0x49bb64;}function nn(_0x6ad1dd){const _0x2551eb=document['createElement']('span');return _0x2551eb['innerText']=_0x6ad1dd,_0x2551eb['innerHTML'];}function ss(_0xa9c430){return _0xa9c430['sort']((_0x2bc8f6,_0x58446b)=>'deletion'==_0x2bc8f6['type']&&'deletion'!=_0x58446b['type']?-0x1:'deletion'!=_0x2bc8f6['type']&&'deletion'==_0x58446b['type']?0x1:0x0);}function to(_0x3308c0,_0x543934){let _0x4e515c,_0x41b06f=0x0;const _0x527178=[],_0x2fcb9c=_0x543934['schema'];for(;_0x41b06f<_0x3308c0['length'];){const _0x4e1088=_0x3308c0[_0x41b06f],_0x52a615=_0x3308c0[_0x41b06f+0x1];_0x4e515c||(_0x4e515c=_0x543934['createPositionBefore'](_0x4e1088)),on(_0x543934,_0x4e1088,_0x52a615)||(_0x527178['push'](_0x543934['createRange'](_0x4e515c,_0x2fcb9c['isObject'](_0x4e1088)?_0x543934['createPositionAfter'](_0x4e1088):_0x543934['createPositionAt'](_0x4e1088,'end'))),_0x4e515c=null),_0x41b06f++;}return _0x527178;}function on(_0x2c8171,_0x19e9e5,_0x5b33ff){if(!_0x5b33ff)return!0x1;const _0x349cc3=_0x2c8171['createPositionAfter'](_0x19e9e5),_0x43b366=_0x2c8171['createPositionBefore'](_0x5b33ff);return _0x349cc3['isTouching'](_0x43b366);}function rs(_0x2716ec,_0x50afa7,_0x3f1916){for(;_0x3f1916['length'];){const _0x2b3d50=_0x3f1916['splice'](0x0,0x64);_0x2716ec['change'](()=>{for(const _0x4033bd of _0x2b3d50)_0x4033bd['isInContent']&&_0x50afa7['execute'](_0x4033bd['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x57000f,_0xebc53f,_0x4d2b85){super(_0x57000f),this['_command']=_0xebc53f,this['_suggestions']=_0x4d2b85,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4e9487=Array['from'](this['_suggestions']['values']())['some'](_0x1ca121=>_0x1ca121['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4e9487;}['execute'](){const _0x55aa3c=ss(Array['from'](this['_suggestions']['values']()));for(const _0x16cdbc of _0x55aa3c){const _0x14aa0d=_0x16cdbc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x14aa0d))return;}rs(this['editor']['model'],this['_command'],_0x55aa3c);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5bed9b,_0x18a2cc,_0xd8f806){super(_0x5bed9b),this['_command']=_0x18a2cc,this['_suggestions']=_0xd8f806,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5a2ac1=this['editor']['model']['document']['selection'],_0x52e248=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x24a3a0,_0x1ac99f){const _0x371740=Array['from'](_0x24a3a0['getRanges']()),_0x2ac64a=new Set();for(const _0x5adc11 of _0x1ac99f)if(_0x5adc11['isInContent']){for(const _0x311de9 of _0x371740)for(const _0x108c7b of _0x5adc11['getRanges']())(_0x311de9['isIntersecting'](_0x108c7b)||_0x24a3a0['isCollapsed']&&!_0x5adc11['isMultiRange']&&_0x5adc11['next']&&_0x108c7b['end']['isTouching'](_0x311de9['start']))&&_0x2ac64a['add'](_0x5adc11);}return _0x2ac64a;}(_0x5a2ac1,_0x52e248),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x262b63=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2d7f1e of _0x262b63){const _0x1357c9=_0x2d7f1e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1357c9))return;}rs(this['editor']['model'],this['_command'],_0x262b63);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x1490ae(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5adb22,_0xab51a2){super(),this['id']=_0xab51a2['id'],this['type']=_0xab51a2['type'],this['subType']=_0xab51a2['subType']||null,this['author']=_0xab51a2['author'],this['creator']=_0xab51a2['creator']||_0xab51a2['author'],this['isExternal']=Boolean(_0xab51a2['attributes']&&_0xab51a2['attributes']['@external']),this['data']=null,this['_model']=_0x5adb22,this['_onAccept']=_0xab51a2['onAccept'],this['_onDiscard']=_0xab51a2['onDiscard'],this['_onAttributesChange']=_0xab51a2['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xab51a2['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 _0x53ff17=this;for(;_0x53ff17['previous'];)_0x53ff17=_0x53ff17['previous'];return _0x53ff17;}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'](_0x5f32fa){this['_markerNames']['add'](_0x5f32fa);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x95b135=>this['_model']['markers']['get'](_0x95b135))['filter'](_0x32fde7=>_0x32fde7);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1e52e1=>{for(const _0x1d2ec5 of this['getMarkers']())_0x1e52e1['removeMarker'](_0x1d2ec5);}),this['_markerNames']['clear']();}['removeMarker'](_0x30d117){this['_model']['change'](_0x4f5759=>{_0x4f5759['removeMarker'](_0x30d117);}),this['_markerNames']['delete'](_0x30d117);}['addRange'](_0x1c31a7){const _0x3f447b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3f447b),this['_model']['change'](_0x525b9b=>{_0x525b9b['addMarker'](_0x3f447b,{'range':_0x1c31a7,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x265967){for(const _0x442028 of this['getRanges']())if(_0x442028['isIntersecting'](_0x265967))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x15a32d=>_0x15a32d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x43f569,_0x5c6e90)=>[..._0x43f569,..._0x5c6e90['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5e221e=this['getRanges']();if(0x1!=_0x5e221e['length'])return null;const _0x44e0a3=_0x5e221e[0x0],_0x401b43=_0x44e0a3['start']['nodeAfter'],_0x381a2d=_0x44e0a3['end']['nodeBefore'];return _0x401b43 instanceof _0x2f6c87?_0x401b43!=_0x381a2d?null:_0x401b43: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 _0x3f47b2=[];let _0x56c5c4=this['head'];for(;_0x56c5c4;)_0x3f47b2['push'](_0x56c5c4),_0x56c5c4=_0x56c5c4['next'];return _0x3f47b2;}['setAttribute'](_0x57efec,_0x172897){const _0x21f659=_0x1fc44a(this['attributes']);_0x404aed(_0x21f659,_0x57efec,_0x172897),_0x135c1f(_0x21f659,this['attributes'])||(this['attributes']=_0x21f659,this['_onAttributesChange'](_0x21f659));}['removeAttribute'](_0xfba949){const _0x23cc80=_0x1fc44a(this['attributes']);_0x1d4a7c(_0x23cc80,_0xfba949),_0x135c1f(_0x23cc80,this['attributes'])||(this['attributes']=_0x23cc80,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 _0x59fd7a()['substr'](0x1,0x5);}}function o(_0x587e1c,_0x285159,_0x4cbec5){const t=_0x587e1c['t'];switch(_0x285159){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',_0x4cbec5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4cbec5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4cbec5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4cbec5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4cbec5);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',_0x4cbec5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4cbec5);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',_0x4cbec5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4cbec5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4cbec5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4cbec5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4cbec5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4cbec5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4cbec5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4cbec5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4cbec5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4cbec5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4cbec5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4cbec5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4cbec5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4cbec5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4cbec5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4cbec5);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'},_0x4cbec5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4cbec5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4cbec5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4cbec5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4cbec5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4cbec5);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'},_0x4cbec5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4cbec5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4cbec5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4cbec5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4cbec5);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'},_0x4cbec5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4cbec5);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'},_0x4cbec5);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'},_0x4cbec5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4cbec5);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'},_0x4cbec5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4cbec5);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'},_0x4cbec5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4cbec5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4cbec5);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'},_0x4cbec5);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'},_0x4cbec5);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'},_0x4cbec5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4cbec5);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'},_0x4cbec5);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'},_0x4cbec5);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'},_0x4cbec5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x285159;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x50855d,_0x2ab020){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x50855d,this['_locale']=_0x2ab020;}['getDescriptions'](_0x510452){const _0x44eef7=[],_0x5edffe=new Set(),_0x1463b9=new Set();for(let _0xd8178b=0x0;_0xd8178b<_0x510452['length'];_0xd8178b++){const _0x1058c1=_0x510452[_0xd8178b];if(!_0x1058c1['isInContent'])continue;const _0x1d5df=this['_handleCustomCallbackDescription'](_0x1058c1);if(_0x1d5df){if(null!=_0x1058c1['subType']){if(_0x5edffe['has'](_0x1058c1['subType']))continue;_0x5edffe['add'](_0x1058c1['subType']);}_0x44eef7['push'](_0x1d5df);}else{if('attribute'!=_0x1058c1['type'])'insertion'!=_0x1058c1['type']&&'deletion'!=_0x1058c1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x44eef7,_0x1058c1,_0x510452[_0xd8178b+0x1]);else{const _0x146d7d=_0x1058c1['data']['key'];if(_0x1463b9['has'](_0x146d7d))continue;_0x1463b9['add'](_0x1058c1['data']['key']),_0x146d7d==m?this['_handleRenameSuggestionDescription'](_0x44eef7,_0x1058c1):this['_handleAttributeSuggestionDescription'](_0x44eef7,_0x1058c1);}}}return this['_resolveDescriptionItems'](_0x44eef7);}['registerDescriptionCallback'](_0x3ac6e4){this['_customCallbacks']['push'](_0x3ac6e4);}['registerElementLabel'](_0x57d52b,_0x11d1bf,_0x50d59f=_0x4e633f['normal']){'function'==typeof _0x57d52b?_0x1871cf(this['_itemLabelsCallbacks'],{'matchingCallback':_0x57d52b,'label':_0x11d1bf,'priority':_0x50d59f}):this['_itemLabels']['set'](_0x57d52b,_0x11d1bf);}['registerAttributeLabel'](_0x5950af,_0x422474){this['_attributeLabels']['set'](_0x5950af,_0x422474);}['getItemLabel'](_0x2a3974,_0x184090=0x1){let _0x53894a;for(const _0xc5d47c of this['_itemLabelsCallbacks'])if(_0xc5d47c['matchingCallback'](_0x2a3974)){_0x53894a=_0xc5d47c['label'];break;}return _0x53894a||(_0x53894a=this['_itemLabels']['get'](_0x2a3974['name'])),_0x53894a?_0x53894a(_0x184090):0x1!==_0x184090?_0x184090+'\x20'+_0x2a3974['name']+'s':''+_0x2a3974['name'];}['_addDescriptionItems'](_0x1918d7,_0x29f73a){const _0xb026d8=_0x29f73a['getFirstRange']()['getWalker'](),_0x268ab4='insertion'==_0x29f73a['type']?'add':'remove';for(const _0x522eab of _0xb026d8){const _0x245b6d=_0x522eab['item'],_0x48f6c0=_0x1918d7[_0x1918d7['length']-0x1];if(_0x245b6d['is']('$textProxy'))_0x48f6c0&&_0x48f6c0['type']['indexOf']('Container')>-0x1&&_0x1918d7['pop'](),_0x48f6c0&&'text'==_0x48f6c0['type']?_0x48f6c0[_0x268ab4]+=_0x245b6d['data']:_0x1918d7['push']({'type':'text','add':'add'==_0x268ab4?_0x245b6d['data']:'','remove':'remove'==_0x268ab4?_0x245b6d['data']:''});else{if(this['_schema']['isObject'](_0x245b6d)){const _0x36147c=_0x245b6d;if(_0x48f6c0&&_0x48f6c0['type']['indexOf']('Container')>-0x1&&_0x1918d7['pop'](),'elementEnd'==_0x522eab['type'])continue;_0x48f6c0&&_0x48f6c0['type']==_0x268ab4+'Object'&&_0x48f6c0['element']['name']==_0x36147c['name']?_0x48f6c0['quantity']++:_0x1918d7['push']({'type':_0x268ab4+'Object','element':_0x36147c,'quantity':0x1}),_0xb026d8['skip'](_0x121568=>!('elementEnd'==_0x121568['type']&&_0x121568['item']==_0x245b6d));}else{if(this['_schema']['checkChild'](_0x245b6d,'$text')||_0x245b6d['is']('element','softBreak')){const _0x2cc557=_0x245b6d;if('add'==_0x268ab4&&'elementStart'==_0x522eab['type']||'remove'==_0x268ab4&&'elementEnd'==_0x522eab['type'])continue;if(_0x48f6c0&&-0x1==_0x48f6c0['type']['indexOf']('Container')){'text'==_0x48f6c0['type']&&(_0x48f6c0[_0x268ab4]+='\x0a');continue;}let _0x530892;if(_0x530892='add'==_0x268ab4?_0x2cc557['nextSibling']&&!this['_schema']['isObject'](_0x2cc557['nextSibling'])?_0x2cc557['nextSibling']:null:_0x2cc557['previousSibling']&&!this['_schema']['isObject'](_0x2cc557['previousSibling'])?_0x2cc557['previousSibling']:null,_0x2cc557['isEmpty']||_0x530892&&_0x530892['isEmpty']){const _0x422e32=_0x530892&&_0x530892['isEmpty']?_0x530892:_0x2cc557;_0x48f6c0&&_0x48f6c0['type']==_0x268ab4+'EmptyContainer'&&_0x48f6c0['element']['name']==_0x422e32['name']?_0x48f6c0['quantity']++:_0x1918d7['push']({'type':_0x268ab4+'EmptyContainer','element':_0x422e32,'quantity':0x1});}else _0x1918d7['push']({'type':_0x268ab4+'Container','element':_0x2cc557});}}}}}['_resolveDescriptionItems'](_0x39a402){const _0x265938=this['_locale'],_0x41b8ea=[],_0xee840f=[],_0x339a7b=[];for(const _0x17ae8d of _0x39a402)switch(_0x17ae8d['type']){case'text':if(_0x17ae8d['add']=_0x17ae8d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x17ae8d['remove']=_0x17ae8d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x17ae8d['add']&&''!=_0x17ae8d['remove']){_0x41b8ea['push']({'type':'replace','content':o(_0x265938,'REPLACE_TEXT',['\x22'+_0x17ae8d['remove']+'\x22','\x22'+_0x17ae8d['add']+'\x22'])});continue;}if(null!=_0x17ae8d['add']['match'](/^ +$/)){_0x41b8ea['push']({'type':'insertion','content':o(_0x265938,'*Insert:*\x20%0',o(_0x265938,'ELEMENT_SPACE',_0x17ae8d['add']['length']))});continue;}if(null!=_0x17ae8d['remove']['match'](/^ +$/)){_0x41b8ea['push']({'type':'deletion','content':o(_0x265938,'*Remove:*\x20%0',o(_0x265938,'ELEMENT_SPACE',_0x17ae8d['remove']['length']))});continue;}if(''!=_0x17ae8d['add']){_0x41b8ea['push']({'type':'insertion','content':o(_0x265938,'*Insert:*\x20%0','\x22'+_0x17ae8d['add']+'\x22')});continue;}_0x41b8ea['push']({'type':'deletion','content':o(_0x265938,'*Remove:*\x20%0','\x22'+_0x17ae8d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x41b8ea['push']({'type':'insertion','content':o(_0x265938,'*Insert:*\x20%0',this['getItemLabel'](_0x17ae8d['element'],_0x17ae8d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x41b8ea['push']({'type':'deletion','content':o(_0x265938,'*Remove:*\x20%0',this['getItemLabel'](_0x17ae8d['element'],_0x17ae8d['quantity']))});continue;case'addContainer':_0x41b8ea['push']({'type':'insertion','content':o(_0x265938,'*Split:*\x20%0',this['getItemLabel'](_0x17ae8d['element'],_0x17ae8d['quantity']))});continue;case'removeContainer':_0x41b8ea['push']({'type':'deletion','content':o(_0x265938,'*Merge:*\x20%0',this['getItemLabel'](_0x17ae8d['element'],_0x17ae8d['quantity']))});continue;case'addFormat':_0xee840f['push'](_0x17ae8d['key']);continue;case'removeFormat':_0x339a7b['push'](_0x17ae8d['key']);continue;default:_0x41b8ea['push'](_0x17ae8d);}if(_0xee840f['length']){const _0x1f5c13=_0xee840f['map'](_0x130441=>this['_attributeLabels']['has'](_0x130441)?this['_attributeLabels']['get'](_0x130441):_0x130441)['join'](',\x20');_0x41b8ea['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1f5c13)});}if(_0x339a7b['length']){const _0x4f3787=_0x339a7b['map'](_0x545148=>this['_attributeLabels']['has'](_0x545148)?this['_attributeLabels']['get'](_0x545148):_0x545148)['join'](',\x20');_0x41b8ea['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4f3787)});}return _0x41b8ea;}['_handleCustomCallbackDescription'](_0x181d01){for(const _0x58039e of this['_customCallbacks']){const _0x52579b=_0x58039e(_0x181d01);if(_0x52579b&&'type'in _0x52579b)return _0x52579b;}}['_handleAttributeSuggestionDescription'](_0x5ea94f,_0xc19220){const _0x5f374b=_0xc19220['data'],_0xd6da7=void 0x0===_0x5f374b['newValue']?'removeFormat':'addFormat';_0x5ea94f['push']({'type':_0xd6da7,'key':_0x5f374b['key']});}['_handleRenameSuggestionDescription'](_0x300270,_0x31dd67){_0x300270['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x31dd67['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x58796f,_0x31d3ee,_0x5d5439){if(this['_addDescriptionItems'](_0x58796f,_0x31d3ee),_0x5d5439&&_0x5d5439['getFirstRange']()&&!_0x31d3ee['getFirstRange']()['end']['isEqual'](_0x5d5439['getFirstRange']()['start'])){const _0x576922=_0x58796f[_0x58796f['length']-0x1],_0xc8eb3e='insertion'==_0x31d3ee['type']?'add':'remove';_0x576922&&'text'==_0x576922['type']&&(_0x576922[_0xc8eb3e]+='\x0a');}}}class V extends _0x1bb8e2{['afterInit'](){const _0x39ecf8=this['editor'],_0x69df86=_0x39ecf8['plugins']['get']('TrackChangesEditing');_0x39ecf8['commands']['get']('showAIAssistant')&&_0x69df86['enableCommand']('showAIAssistant');}}class U extends _0x1bb8e2{['afterInit'](){const _0x11da96=this['editor'],_0x1f5eac=_0x11da96['locale'];if(!_0x11da96['plugins']['has']('AlignmentEditing'))return;const _0x145bf7=_0x11da96['plugins']['get']('TrackChangesEditing');_0x145bf7['enableDefaultAttributesIntegration']('alignment'),_0x145bf7['registerBlockAttribute']('alignment'),_0x145bf7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1f5eac,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x237edc=this['editor'],_0x381211=_0x237edc['locale'];_0x237edc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x120a88=>{if('formatBlock'!=_0x120a88['type'])return;const {data:_0x5e7b33}=_0x120a88;if(_0x5e7b33&&'alignment'==_0x5e7b33['commandName']){const _0x404ec3=_0x5e7b33['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x381211,'*Format:*\x20%0',function(_0x20b513){switch(_0x20b513){case'left':return o(_0x381211,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x381211,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x381211,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x381211,'FORMAT_JUSTIFY_TEXT');}}(_0x404ec3))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x1bb8e2{['afterInit'](){const _0x459ba7=this['editor'],_0x359a5b=_0x459ba7['plugins']['get']('TrackChangesEditing'),_0x2bd37e=_0x459ba7['locale'];for(const _0x50d565 of ti){if(!_0x459ba7['plugins']['has'](_0x50d565))continue;const _0x49299b=_0x50d565['slice'](0x0,-0x7)['toLowerCase'](),_0xd1e381='FORMAT_'+_0x49299b['toUpperCase']();_0x359a5b['enableDefaultAttributesIntegration'](_0x49299b),_0x359a5b['registerInlineAttribute'](_0x49299b),_0x359a5b['descriptionFactory']['registerAttributeLabel'](_0x49299b,o(_0x2bd37e,_0xd1e381));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3be87c=this['editor'],_0x550d8c=_0x3be87c['locale'],_0x305dd7=_0x3be87c['plugins']['get']('TrackChangesEditing');function _0x2b421b(_0x173f19,_0x4fc286){_0x305dd7['descriptionFactory']['registerDescriptionCallback'](_0x5f5bb5=>{if('formatInline'!=_0x5f5bb5['type'])return;const {data:_0x2d9026}=_0x5f5bb5;return _0x2d9026&&_0x2d9026['commandName']===_0x173f19?_0x2d9026['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x550d8c,'*Format:*\x20%0',_0x4fc286)}:{'type':'format','content':o(_0x550d8c,'*Remove\x20format:*\x20%0',_0x4fc286)}:void 0x0;});}_0x2b421b('bold',o(_0x550d8c,'FORMAT_BOLD')),_0x2b421b('italic',o(_0x550d8c,'FORMAT_ITALIC')),_0x2b421b('underline',o(_0x550d8c,'FORMAT_UNDERLINE')),_0x2b421b('code',o(_0x550d8c,'FORMAT_CODE')),_0x2b421b('strikethrough',o(_0x550d8c,'FORMAT_STRIKETHROUGH')),_0x2b421b('subscript',o(_0x550d8c,'FORMAT_SUBSCRIPT')),_0x2b421b('superscript',o(_0x550d8c,'FORMAT_SUPERSCRIPT'));}}class F extends _0x1bb8e2{['afterInit'](){const _0x43d6e4=this['editor'],_0x739d36=_0x43d6e4['locale'];if(!_0x43d6e4['plugins']['has']('BlockQuoteEditing'))return;const _0x25b974=_0x43d6e4['plugins']['get']('TrackChangesEditing'),_0x24056d=this['editor']['commands']['get']('blockQuote');_0x25b974['enableCommand']('blockQuote',(_0x44d3e4,_0x3c1675={})=>{const _0x5c0846=this['editor']['model']['document']['selection'],_0x216525=_0x3c1675&&void 0x0!==_0x3c1675['forceValue']?_0x3c1675['forceValue']:!_0x24056d['value'];let _0x25bef3=[];if(_0x216525){const _0x4a7bb9=Array['from'](_0x5c0846['getSelectedBlocks']())['filter'](_0x230eeb=>oo(_0x230eeb)||function(_0x290f20,_0x3f184f){const _0x1ae1d9=_0x3f184f['checkChild'](_0x290f20['parent'],'blockQuote'),_0xf23dce=_0x3f184f['checkChild'](['$root','blockQuote'],_0x290f20);return _0x1ae1d9&&_0xf23dce;}(_0x230eeb,this['editor']['model']['schema']));_0x25bef3=to(_0x4a7bb9,_0x43d6e4['model']);}else{const _0x40baa4=Array['from'](_0x5c0846['getSelectedBlocks']())['filter'](_0xc283e9=>oo(_0xc283e9));_0x25bef3=to(_0x40baa4,_0x43d6e4['model']);}_0x43d6e4['model']['change'](()=>{for(const _0x34518a of _0x25bef3)_0x25b974['markBlockFormat'](_0x34518a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x216525}]});});}),_0x25b974['descriptionFactory']['registerDescriptionCallback'](_0x4e1d52=>{const {data:_0x498edb}=_0x4e1d52;if(_0x498edb&&'blockQuote'==_0x498edb['commandName']){const _0x5df858=o(_0x739d36,'ELEMENT_BLOCK_QUOTE');return _0x498edb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x739d36,'*Set\x20format:*\x20%0',_0x5df858)}:{'type':'format','content':o(_0x739d36,'*Remove\x20format:*\x20%0',_0x5df858)};}});}}function oo(_0x3209ca){return'blockQuote'==_0x3209ca['parent']['name'];}class L extends _0x1bb8e2{['afterInit'](){const _0x4fe58f=this['editor'];_0x4fe58f['plugins']['has']('CaseChange')&&(_0x4fe58f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4fe58f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4fe58f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x1bb8e2{['afterInit'](){const _0x2213fc=this['editor'];_0x2213fc['commands']['get']('ckbox')&&_0x2213fc['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x1bb8e2{['afterInit'](){const _0x211fe5=this['editor'];if(!_0x211fe5['plugins']['has']('CodeBlock'))return;const _0x44dbdd=_0x211fe5['plugins']['get']('TrackChangesEditing'),_0x1cab95=_0x211fe5['locale'],_0x5d8695=_0x211fe5['config']['get']('codeBlock')['languages'],_0x80d73d=_0x211fe5['commands']['get']('codeBlock');_0x44dbdd['enableCommand']('indentCodeBlock'),_0x44dbdd['enableCommand']('outdentCodeBlock'),_0x44dbdd['enableCommand']('codeBlock',(_0x512525,_0xd39e0e={})=>{const _0x3907cb=_0x211fe5['model'],_0x3db8d3=_0x211fe5['model']['document']['selection'],_0x4cacdb=_0xd39e0e&&void 0x0!==_0xd39e0e['forceValue']?_0xd39e0e['forceValue']:!_0x80d73d['value'];let _0x18d15b;_0xd39e0e['language']||(_0xd39e0e['language']=_0x5d8695[0x0]['language']),_0x18d15b=_0x4cacdb?Array['from'](_0x3db8d3['getSelectedBlocks']())['filter'](_0x27e0f8=>eo(_0x27e0f8)||function(_0x4ab0b9,_0x18fd36){if(_0x4ab0b9['is']('rootElement')||_0x18fd36['isLimit'](_0x4ab0b9))return!0x1;return _0x18fd36['checkChild'](_0x4ab0b9['parent'],'codeBlock');}(_0x27e0f8,_0x3907cb['schema'])):Array['from'](_0x3db8d3['getSelectedBlocks']())['filter'](_0x45584c=>eo(_0x45584c));const _0x4d4c71=to(_0x18d15b,_0x3907cb);_0x3907cb['change'](()=>{for(const _0x59c645 of _0x4d4c71)_0x44dbdd['markBlockFormat'](_0x59c645,{'commandName':'codeBlock','commandParams':[{..._0xd39e0e,'forceValue':_0x4cacdb}],'formatGroupId':'blockName'});});}),(_0x44dbdd['descriptionFactory']['registerElementLabel']('codeBlock',_0x14c86b=>o(_0x1cab95,'ELEMENT_CODE_BLOCK',_0x14c86b)),_0x44dbdd['descriptionFactory']['registerDescriptionCallback'](_0x652675=>{if('formatBlock'!=_0x652675['type'])return;const _0x482670=_0x1cab95['t'],{data:_0x3acb21}=_0x652675;if(!_0x3acb21||'codeBlock'!=_0x3acb21['commandName'])return;const _0x41e690=_0x3acb21['commandParams'][0x0]['language'],_0x185377=_0x482670(_0x5d8695['find'](_0x3dafde=>_0x3dafde['language']===_0x41e690)['label'])['toLowerCase']();return _0x3acb21['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1cab95,'*Set\x20format:*\x20%0',o(_0x1cab95,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x185377+')')}:{'type':'format','content':o(_0x1cab95,'*Remove\x20format:*\x20%0',o(_0x1cab95,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x48ab6c){return'codeBlock'==_0x48ab6c['name'];}class q extends _0x1bb8e2{['afterInit'](){const _0x58a4ac=this['editor'];if(!_0x58a4ac['plugins']['has']('CommentsEditing'))return;_0x58a4ac['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x9558db,_0x4cebb5,_0x173a56){const _0x57f56a=[];for(const _0x3c35bd of _0x4cebb5['getItems']())_0x3c35bd['hasAttribute'](_0x9558db)&&_0x57f56a['push'](_0x173a56['createRangeOn'](_0x3c35bd));return _0x57f56a;}function _e(_0x2bbdc1,_0x4d72be,{showActiveMarker:_0x37ecaa=!0x0}={}){const _0x2298af=_0x2bbdc1['plugins']['get']('TrackChangesEditing');return(_0x331e6c,_0x1e414f,_0x3241ce)=>{if(!_0x3241ce['consumable']['test'](_0x1e414f['markerRange'],_0x331e6c['name']))return;const _0x41cce=_0x1e414f['markerRange']['getWalker'](),_0x2626e0=_0x1e414f['markerRange']['start'],_0x559689=_0x2bbdc1['model']['schema'];let _0x2f0df6=null,_0x2f443b=null,_0x3a04b3=!0x1,_0x41b890=!0x1;for(const _0x1e85a7 of _0x41cce){const _0x5f13cf=_0x1e85a7['item'];_0x3a04b3=_0x3a04b3||_0x559689['isContent'](_0x5f13cf);const _0x74ac89=_0x3241ce['mapper']['toViewElement'](_0x5f13cf);if(_0x74ac89&&_0x74ac89['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1e85a7['type']&&(_0x559689['isBlock'](_0x5f13cf)&&!_0x559689['isLimit'](_0x5f13cf)&&(_0x5f13cf['nextSibling']||_0x2626e0['isAtEnd']?_0x2f0df6&&_0x2f0df6['parent']==_0x5f13cf||(_0x2f0df6=_0x5f13cf,_0x4109cd(_0x1e85a7['previousPosition']),_0x41b890=!0x0):_0x2f443b=_0x2f443b||_0x1e85a7['previousPosition']));}function _0x4109cd(_0xe8a3e8){const {authorId:_0x4a6d38}=_0x2298af['_splitMarkerName'](_0x1e414f['markerName']),_0x208dfe=_0x3241ce['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4d72be,'data-author-id':_0x4a6d38}),_0x357474=_0x3241ce['mapper']['toViewPosition'](_0xe8a3e8);_0x37ecaa&&_0x2298af['activeMarkers']['includes'](_0x1e414f['markerName'])&&_0x3241ce['writer']['addClass']('ck-suggestion-marker--active',_0x208dfe),_0x3241ce['writer']['insert'](_0x357474,_0x208dfe),_0x3241ce['mapper']['bindElementToMarker'](_0x208dfe,_0x1e414f['markerName']);}_0x3a04b3||_0x41b890||!_0x2f443b||_0x4109cd(_0x2f443b);};}class z extends _0x1bb8e2{static get['requires'](){return[_0x53648f];}['init'](){const _0x95a27a=this['editor'],_0x19181d=_0x95a27a['plugins']['get']('TrackChangesEditing');_0x19181d['enableCommand']('delete');const _0x288bf0=_0x95a27a['commands']['get']('deleteForward');_0x19181d['enableCommand']('deleteForward',(_0x8117de,_0xd793e4={})=>{const _0x172392=_0x95a27a['model']['createSelection'](_0x95a27a['model']['document']['selection']);_0x172392['isCollapsed']&&_0x95a27a['model']['modifySelection'](_0x172392,{'direction':'forward','unit':_0xd793e4['unit']});const _0x815fe7=_0x172392['getFirstRange'](),_0x5781b4=_0x1b736b['fromRange'](_0x815fe7);let _0x1b9260;_0x8117de(_0xd793e4),_0x1b9260='$graveyard'==_0x5781b4['root']['rootName']?_0x95a27a['model']['createRange'](_0x815fe7['start']):_0x95a27a['model']['createRange'](_0x5781b4['start'],_0x5781b4['end']),_0x5781b4['detach'](),_0x95a27a['model']['enqueueChange'](_0x288bf0['buffer']['batch'],_0x484b13=>{_0x288bf0['buffer']['lock'](),_0x484b13['setSelection'](_0x484b13['createRange'](_0x1b9260['end'])),_0x288bf0['buffer']['unlock']();});}),_0x95a27a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x95a27a,'merge'),{'priority':'high'}),_0x95a27a['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xdcf2b4,_0x3397ad,_0x4aa038)=>{_0x4aa038['options']['showSuggestionHighlights']&&_e(_0x95a27a,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xdcf2b4,_0x3397ad,_0x4aa038);},{'priority':'high'}),_0x95a27a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x567602,_0x2e3941,_0x27449b)=>{const _0x47c122=_0x27449b['mapper']['markerNameToElements'](_0x2e3941['markerName']);if(_0x47c122){for(const _0x343fba of _0x47c122)_0x343fba['is']('uiElement')&&(_0x27449b['mapper']['unbindElementFromMarkerName'](_0x343fba,_0x2e3941['markerName']),_0x27449b['writer']['remove'](_0x343fba));}},{'priority':'high'});}}class K extends _0x1bb8e2{['afterInit'](){const _0x46ddf8=this['editor'];if(!_0x46ddf8['plugins']['has']('ListEditing'))return;const _0x395fdd=_0x46ddf8['locale'],_0x59651f=_0x46ddf8['plugins']['get']('TrackChangesEditing'),_0x5b30a5=_0x46ddf8['plugins']['has']('TodoListEditing'),_0x521c97=!!_0x46ddf8['config']['get']('list.multiBlock');function _0x4d4e45(_0x7d7ad1){return{'type':'format','content':''+o(_0x395fdd,'*Set\x20format:*\x20%0',_0x7d7ad1)};}function _0x432b30(_0x5984ed){return{'type':'format','content':''+o(_0x395fdd,'*Remove\x20format:*\x20%0',_0x5984ed)};}_0x59651f['enableDefaultAttributesIntegration']('numberedList'),_0x59651f['enableDefaultAttributesIntegration']('bulletedList'),_0x59651f['enableDefaultAttributesIntegration']('customNumberedList'),_0x59651f['enableDefaultAttributesIntegration']('customBulletedList'),_0x59651f['enableDefaultAttributesIntegration']('indentList'),_0x59651f['enableDefaultAttributesIntegration']('outdentList'),_0x59651f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x59651f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x59651f['registerBlockAttribute']('listItemId'),_0x59651f['registerBlockAttribute']('listType'),_0x59651f['registerBlockAttribute']('listIndent'),_0x521c97&&(_0x59651f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x59651f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5b30a5&&(_0x59651f['enableDefaultAttributesIntegration']('todoList'),_0x59651f['enableDefaultAttributesIntegration']('checkTodoList'),_0x59651f['registerBlockAttribute']('todoListChecked'),_0x59651f['descriptionFactory']['registerDescriptionCallback'](_0x568180=>{const {data:_0x545384}=_0x568180;if(_0x545384&&'todoListChecked'==_0x545384['key'])return{'type':'format','content':_0x545384['newValue']?o(_0x395fdd,'*Check\x20item*'):o(_0x395fdd,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4373e0=>{if(_0x4373e0['batch']['isUndo'])return!0x1;let _0x50f653=!0x1;const _0xcc6cfb=_0x59651f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b3008=>'todoListChecked'===_0x59651f['_getAttributeKey'](_0x4b3008));for(const _0x4702e2 of _0xcc6cfb){'todo'!=_0x4702e2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x59651f['_findSuggestions'](_0x4702e2['getFirstRange'](),'attribute')['find'](_0x5a3161=>'listType'===_0x59651f['_getAttributeKey'](_0x5a3161['suggestion']))||(_0x4373e0['removeMarker'](_0x4702e2['getFirstMarker']()),_0x50f653=!0x0));}return _0x50f653;})),_0x59651f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x395fdd,'FORMAT_INDENT'));const _0x122560={'type':'format','content':''};_0x59651f['descriptionFactory']['registerDescriptionCallback'](_0x1570ed=>{const {data:_0x23a342}=_0x1570ed;if(!_0x23a342||'listType'!=_0x23a342['key'])return;let _0x18953e=_0x1570ed['head'];for(;_0x18953e;){if(_0x18953e['data']&&(('listStyle'==_0x18953e['data']['key']||'listMarkerStyle'==_0x18953e['data']['key'])&&(_0x18953e['data']['newValue']&&'default'!=_0x18953e['data']['newValue']||'default'!=_0x18953e['data']['oldValue']&&!_0x23a342['newValue'])||!_0x521c97&&_0x18953e['data']['key']==m))return _0x122560;_0x18953e=_0x18953e['next'];}if(null==_0x23a342['newValue'])switch(_0x23a342['oldValue']){case'bulleted':return _0x432b30(o(_0x395fdd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x432b30(o(_0x395fdd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x432b30(o(_0x395fdd,'ELEMENT_TODO_LIST'));}switch(_0x23a342['newValue']){case'bulleted':return _0x4d4e45(o(_0x395fdd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4d4e45(o(_0x395fdd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4d4e45(o(_0x395fdd,'ELEMENT_TODO_LIST'));}}),_0x59651f['descriptionFactory']['registerDescriptionCallback'](_0x4dd10c=>{const {data:_0x3ce8da}=_0x4dd10c;if(_0x3ce8da&&'listIndent'==_0x3ce8da['key'])return null==_0x3ce8da['newValue']||null==_0x3ce8da['oldValue']&&0x0==_0x3ce8da['newValue']?_0x122560:void 0x0;}),_0x59651f['descriptionFactory']['registerDescriptionCallback'](_0x41986b=>{if('attribute'!=_0x41986b['type'])return;const {data:_0x1f8540}=_0x41986b;if(!_0x1f8540||'listItemId'!=_0x1f8540['key'])return;const _0x522576=Ee(_0x41986b);return'newValue'==_0x522576?{'type':'format','content':o(_0x395fdd,'*Merge:*\x20list\x20item')}:'oldValue'==_0x522576?{'type':'format','content':o(_0x395fdd,'*Split:*\x20list\x20item')}:_0x122560;}),_0x46ddf8['model']['document']['registerPostFixer'](_0x1b582d=>this['listItemIdFixer'](_0x1b582d)),_0x46ddf8['model']['document']['registerPostFixer'](_0x4139c7=>this['noTrackChangesFixer'](_0x4139c7)),_0x46ddf8['model']['document']['on']('change:data',(_0x30a655,_0x5f3021)=>{if(_0x5f3021['isUndo']||!_0x5f3021['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x528911){if(_0x528911['batch']['isUndo']||!_0x528911['batch']['isLocal'])return!0x1;let _0x4279e7=!0x1;const _0xa82cec=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24f865=>_0x24f865['data']&&'listItemId'==_0x24f865['data']['key'])['filter'](_0x4b2bfa=>_0x4b2bfa['data']['newValue']&&_0x4b2bfa['data']['oldValue']);for(const _0x2c921e of _0xa82cec)Ee(_0x2c921e)||(_0x528911['removeMarker'](_0x2c921e['getFirstMarker']()),_0x4279e7=!0x0);return _0x4279e7;}['noTrackChangesFixer'](_0x1236d2){if(_0x1236d2['batch']['isUndo']||!_0x1236d2['batch']['isLocal'])return!0x1;const _0x2120aa=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2120aa['trackChangesCommand']['value'])return!0x1;let _0x205e29=!0x1;const _0x5b80ce=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4c0ee8=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5686d9=>'attribute'==_0x5686d9['type'])['filter'](_0xb17755=>_0x5b80ce['includes'](_0xb17755['attributeKey']));if(0x0==_0x4c0ee8['length'])return _0x205e29;for(const _0x2cff0c of _0x4c0ee8){const _0x29cb26=_0x2120aa['_findSuggestions'](_0x2cff0c['range'],'attribute')['filter'](_0x2bc877=>!_0x2bc877['meta']['isNextTo'])['map'](_0x264199=>_0x264199['suggestion'])['filter'](_0x5416a2=>{const _0x1cbdd3=_0x2120aa['_getAttributeKey'](_0x5416a2);return _0x5b80ce['includes'](_0x1cbdd3);});if(_0x29cb26['length']){for(const _0x51caac of _0x29cb26)_0x1236d2['removeMarker'](_0x51caac['getFirstMarker']());_0x205e29=!0x0;}}return _0x205e29;}['assureChains'](){const _0x5127db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x563894=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2971c0;const _0x50d4cc=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x64542a=>{if(_0x64542a['data']['oldRange']||!_0x64542a['data']['newRange'])return null;if(!_0x64542a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x52c4a0}=_0x5127db['_splitMarkerName'](_0x64542a['name']);if(!_0x5127db['hasSuggestion'](_0x52c4a0))return null;const _0x4afcc8=_0x5127db['getSuggestion'](_0x52c4a0);return _0x563894['includes'](_0x4afcc8['data']['key']);})['map'](_0x1181ea=>{const {id:_0x367e92}=_0x5127db['_splitMarkerName'](_0x1181ea['name']),_0x59139c=_0x5127db['getSuggestion'](_0x367e92);return _0x2971c0=_0x59139c['attributes']['groupId'],_0x59139c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x50d4cc['size'])return;const _0x3f9fc9=_0x5127db['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x441aaf=>'attribute'==_0x441aaf['type']&&_0x441aaf['data']&&_0x563894['includes'](_0x441aaf['data']['key'])&&_0x441aaf['attributes']['groupId']!=_0x2971c0)['map'](_0x4e613e=>({'listItem':_0x4e613e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4e613e['attributes']['groupId']})),_0x38a041=new Set();for(const {groupId:_0x344578,listItem:_0x3ff7c9}of _0x3f9fc9)_0x50d4cc['has'](_0x3ff7c9)&&_0x38a041['add'](_0x344578);for(const _0x3ad1de of _0x5127db['getSuggestions']())_0x38a041['has'](_0x3ad1de['attributes']['groupId'])&&_0x3ad1de['setAttribute']('groupId',_0x2971c0);}['_supportLegacySuggestions'](){const _0x4461ce=this['editor'],_0x255614=_0x4461ce['locale'],_0x399e2a=_0x4461ce['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x399e2a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1dbb74,_0x5ee087){const _0x48022b=[];for(let _0x19c811 of _0x1dbb74)_0x19c811['start']['nodeAfter']===_0x19c811['end']['parent']&&(_0x19c811=_0x4461ce['model']['createRange'](_0x4461ce['model']['createPositionAt'](_0x19c811['start']['nodeAfter'],0x0))),_0x48022b['push'](_0x19c811);_0x4461ce['model']['change'](_0xfd051e=>{const _0x4f0a4a=_0x4461ce['model']['document']['selection'],_0x51637d=Array['from'](_0x4f0a4a['getRanges']())['map'](_0x395e7e=>_0x1b736b['fromRange'](_0x395e7e));_0xfd051e['setSelection'](_0x48022b),_0x4461ce['commands']['get'](_0x5ee087['commandName'])['refresh'](),_0x5ee087['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4461ce['execute'](_0x5ee087['commandName'],..._0x5ee087['commandParams']),_0xfd051e['setSelection'](_0x51637d);for(const _0x44ca33 of _0x51637d)_0x44ca33['detach']();});}),_0x399e2a['descriptionFactory']['registerElementLabel'](function(_0x4ffdcd){const _0x48022c=!_0x4461ce['model']['schema']['isObject'](_0x4ffdcd),_0x45c974=_0x4ffdcd['previousSibling'],_0x324e32=_0x4ffdcd['nextSibling'],_0x5dc5b8=_0x4ffdcd['getAttribute']('listItemId'),_0x4acc47=!_0x45c974||_0x45c974['getAttribute']('listItemId')!==_0x5dc5b8,_0x5dc368=!_0x324e32||_0x324e32['getAttribute']('listItemId')!==_0x5dc5b8;return _0x48022c&&Boolean(_0x5dc5b8)&&_0x4acc47&&_0x5dc368;},_0x349abf=>o(_0x255614,'ELEMENT_LIST_ITEM',_0x349abf));}['_registerLegacyDescription'](){const _0x80649b=this['editor'],_0x492197=_0x80649b['locale'];function _0x298541(_0x43a5c6){const _0x4740a8=_0x80649b['commands']['get']('bulletedList')['value'],_0x284020=_0x80649b['commands']['get']('numberedList')['value'];return'numberedList'===_0x43a5c6?_0x4740a8:_0x284020;}_0x80649b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x29fb8b){if('formatBlock'!=_0x29fb8b['type'])return;const {data:_0x2c8b71}=_0x29fb8b;if(!_0x2c8b71)return;let _0x398cc7,_0x5dbf05,_0x1cd4cf,_0x2d2044;switch(_0x2c8b71['commandName']){case'bulletedList':_0x1cd4cf=_0x2c8b71['commandParams'][0x0]['forceValue'],_0x2d2044=_0x298541(_0x2c8b71['commandName']),_0x398cc7=_0x1cd4cf?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2d2044&&_0x80649b['config']['get']('list.multiBlock')||(_0x398cc7='*Change\x20to:*\x20%0'),_0x5dbf05={'type':'format','content':o(_0x492197,_0x398cc7,o(_0x492197,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1cd4cf=_0x2c8b71['commandParams'][0x0]['forceValue'],_0x2d2044=_0x298541(_0x2c8b71['commandName']),_0x398cc7=_0x1cd4cf?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2d2044&&_0x80649b['config']['get']('list.multiBlock')||(_0x398cc7='*Change\x20to:*\x20%0'),_0x5dbf05={'type':'format','content':o(_0x492197,_0x398cc7,o(_0x492197,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x398cc7='*Indent:*\x20%0',_0x5dbf05={'type':'format','content':o(_0x492197,_0x398cc7,o(_0x492197,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x398cc7=function(_0xdf966){const _0x1a185=_0xdf966['getFirstRange']();let _0x5cf591=_0x1a185['start']['nodeAfter'];for(;_0x5cf591&&_0x1a185['containsItem'](_0x5cf591);){if(_0x5cf591['getAttribute']('listIndent')>0x0)return!0x1;_0x5cf591=_0x5cf591['nextSibling'];}return!0x0;}(_0x29fb8b)?o(_0x492197,'*Format:*\x20remove\x20from\x20%0',o(_0x492197,function(_0x1996e3){return'ELEMENT_'+_0x1996e3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x29fb8b))):o(_0x492197,'*Outdent:*\x20%0',o(_0x492197,'ELEMENT_LIST_ITEM')),_0x5dbf05={'type':'format','content':_0x398cc7};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2c8b71['multipleBlocks']&&(_0x398cc7='*Merge:*\x20%0',_0x5dbf05={'type':'deletion','content':o(_0x492197,_0x398cc7,o(_0x492197,'ELEMENT_LIST_ITEM'))});}return _0x5dbf05;});}}function Ee(_0x30e318){let _0x4076ce=_0x30e318['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4076ce;){const _0x19ceec=_0x4076ce['getAttribute']('listItemId');if(!_0x19ceec)return!0x1;if(_0x19ceec==_0x30e318['data']['newValue'])return'newValue';if(_0x19ceec==_0x30e318['data']['oldValue'])return'oldValue';_0x4076ce=_0x4076ce['previousSibling'];}return!0x1;}class pe extends _0x1bb8e2{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x276e51=this['editor']['config']['get']('list.properties'),_0xc7ddac=this['editor']['plugins']['get']('TrackChangesEditing');_0x276e51['styles']&&(_0xc7ddac['enableDefaultAttributesIntegration']('listStyle'),_0xc7ddac['registerBlockAttribute']('listStyle')),_0x276e51['reversed']&&(_0xc7ddac['enableDefaultAttributesIntegration']('listReversed'),_0xc7ddac['registerBlockAttribute']('listReversed')),_0x276e51['startIndex']&&(_0xc7ddac['enableDefaultAttributesIntegration']('listStart'),_0xc7ddac['registerBlockAttribute']('listStart'));const _0x406890={'type':'format','content':''};_0xc7ddac['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x569dd4=this['editor']['locale'];_0xc7ddac['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x569dd4,'FORMAT_LIST_REVERSED')),_0xc7ddac['descriptionFactory']['registerDescriptionCallback'](_0x4ce5d2=>{const {data:_0x2520f7}=_0x4ce5d2;if(_0x2520f7&&'listReversed'==_0x2520f7['key'])return null==_0x2520f7['newValue']||0x0==_0x2520f7['newValue']&&null==_0x2520f7['oldValue']?_0x406890:void 0x0;}),_0xc7ddac['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x569dd4,'FORMAT_LIST_START')),_0xc7ddac['descriptionFactory']['registerDescriptionCallback'](_0x44781e=>{const {data:_0x10dc78}=_0x44781e;if(_0x10dc78&&'listStart'==_0x10dc78['key'])return null==_0x10dc78['newValue']||0x1==_0x10dc78['newValue']&&null==_0x10dc78['oldValue']?_0x406890:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x9667ae=>{if(_0x9667ae['batch']['isUndo'])return!0x1;let _0x99b804=!0x1;const _0x4c66a4=_0xc7ddac['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x841311=>{const _0x28ea5f=_0xc7ddac['_getAttributeKey'](_0x841311);return'listStart'==_0x28ea5f||'listReversed'==_0x28ea5f;});for(const _0x13c7d3 of _0x4c66a4){const _0x4e0110=_0x13c7d3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4e0110||'customNumbered'==_0x4e0110)continue;_0xc7ddac['_findSuggestions'](_0x13c7d3['getFirstRange'](),'attribute')['find'](_0x1d6c67=>'listType'==_0xc7ddac['_getAttributeKey'](_0x1d6c67['suggestion']))||(_0x9667ae['removeMarker'](_0x13c7d3['getFirstMarker']()),_0x99b804=!0x0);}return _0x99b804;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x72dafa){const _0x5d7e31=this['editor']['locale'],{data:_0xd9c530}=_0x72dafa,_0x467a82={'type':'format','content':''};if(!_0xd9c530||'listStyle'!=_0xd9c530['key'])return;if(!_0xd9c530['oldValue'])return'default'==_0xd9c530['newValue']?_0x467a82:{'type':'format','content':''+o(_0x5d7e31,'*Set\x20format:*\x20%0',o(_0x5d7e31,this['_getTranslationKeyForListStyle'](_0xd9c530['newValue'])))};if(!_0xd9c530['newValue']){if('default'==_0xd9c530['oldValue'])return _0x467a82;let _0x215fb1=_0x72dafa['head'];for(;_0x215fb1;){if(_0x215fb1['data']&&'listType'==_0x215fb1['data']['key']&&_0x215fb1['data']['newValue'])return _0x467a82;_0x215fb1=_0x215fb1['next'];}return{'type':'format','content':''+o(_0x5d7e31,'*Remove\x20format:*\x20%0',o(_0x5d7e31,this['_getTranslationKeyForListStyle'](_0xd9c530['oldValue'])))};}if('default'!=_0xd9c530['newValue'])return{'type':'format','content':''+o(_0x5d7e31,'*Set\x20format:*\x20%0',o(_0x5d7e31,this['_getTranslationKeyForListStyle'](_0xd9c530['newValue'])))};let _0x138f45=_0x72dafa['head'];for(;_0x138f45;){if(_0x138f45['data']&&'listType'==_0x138f45['data']['key']&&_0x138f45['data']['newValue']&&_0x138f45['data']['oldValue'])return _0x467a82;_0x138f45=_0x138f45['next'];}return{'type':'format','content':o(_0x5d7e31,'*Set\x20format:*\x20%0',o(_0x5d7e31,'ELEMENT_'+_0x72dafa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1b37d7=this['editor'],_0x274f09=_0x1b37d7['locale'];_0x1b37d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34b773=>{if('formatBlock'!=_0x34b773['type'])return;const {data:_0x20d999}=_0x34b773;if(!_0x20d999)return;let _0x4a724c,_0x116933;switch(_0x20d999['commandName']){case'listStyle':_0x4a724c='*Change\x20to:*\x20%0',_0x116933={'type':'format','content':o(_0x274f09,_0x4a724c,o(_0x274f09,this['_getTranslationKeyForListStyle'](_0x20d999['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4a724c=_0x20d999['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x116933={'type':'format','content':o(_0x274f09,_0x4a724c)};break;case'listStart':_0x4a724c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x116933={'type':'format','content':o(_0x274f09,_0x4a724c,_0x20d999['commandParams'][0x0]['startIndex'])};}return _0x116933;});}['_getTranslationKeyForListStyle'](_0xe62a6b){return'ELEMENT_'+function(_0x3a633a){if(ye['includes'](_0x3a633a))return'bulleted';if(Se['includes'](_0x3a633a))return'numbered';return null;}(_0xe62a6b)['toUpperCase']()+'_LIST_'+_0xe62a6b['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x1bb8e2{static get['requires'](){return[_0x1f0898];}['init'](){const _0x233532=this['editor'],_0x483bc4=_0x233532['plugins']['get']('TrackChangesEditing'),_0x4f4dab=_0x233532['commands']['get']('enter');_0x483bc4['enableCommand']('enter',()=>{_0x233532['model']['change'](_0x12b8c0=>{const _0x230276=_0x233532['model']['document']['selection'],_0xfb7ef4=_0x230276['getFirstPosition'](),_0x2a19a9=_0x1b736b['fromRange'](_0x230276['getFirstRange']());if(_0x4f4dab['enterBlock'](_0x12b8c0)){const _0x2d1b12=_0x233532['model']['createPositionAt'](_0xfb7ef4['parent']['nextSibling'],0x0),_0x187129=_0x12b8c0['createRange'](_0xfb7ef4,_0x2d1b12);_0x483bc4['markInsertion'](_0x187129);}else _0x12b8c0['setSelection'](_0x12b8c0['createRange'](_0x2a19a9['end']));_0x2a19a9['detach'](),_0x4f4dab['fire']('afterExecute',{'writer':_0x12b8c0});});}),_0x233532['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x233532,'split'),{'priority':'high'}),_0x233532['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3b0c0a,_0x3009db,_0x291587)=>{const _0xbe88c7=_0x291587['mapper']['markerNameToElements'](_0x3009db['markerName']);if(_0xbe88c7){for(const _0x458858 of _0xbe88c7)_0x458858['hasClass']('ck-suggestion-marker-split')&&(_0x291587['mapper']['unbindElementFromMarkerName'](_0x458858,_0x3009db['markerName']),_0x291587['writer']['remove'](_0x458858));}},{'priority':'high'}),_0x233532['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x25b326,_0x2dba99,_0x5b894f)=>{_0x5b894f['options']['showSuggestionHighlights']&&_e(_0x233532,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x25b326,_0x2dba99,_0x5b894f);},{'priority':'high'});}}class X extends _0x1bb8e2{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xc1f483=this['editor']['plugins']['get']('TrackChangesEditing');_0xc1f483['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xc1f483['enableCommand']('findNext'),_0xc1f483['enableCommand']('findPrevious'),_0xc1f483['enableCommand']('replace'),_0xc1f483['enableCommand']('replaceAll');}['handleFindCommand'](_0x441e24,_0x4295cc,_0x4f3ea3={}){const _0x5e1739=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x441e24(_0x139166=>{let _0x408bd2=('string'==typeof _0x4295cc?_0x5e1739['findByTextCallback'](_0x4295cc,_0x4f3ea3):_0x4295cc)(_0x139166);Array['isArray'](_0x408bd2)&&(_0x408bd2={'results':_0x408bd2,'searchText':'string'==typeof _0x4295cc?_0x4295cc:''});const _0x3728be=_0x408bd2['results']['filter'](_0x59c247=>!0x1===this['_isInDeletionRange'](_0x59c247,_0x139166['item']));return{..._0x408bd2,'results':_0x3728be};},_0x4f3ea3);}['_isInDeletionRange'](_0xd6a8e0,_0x207082){const _0x1308f5=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x207082,_0xd6a8e0['start']),this['editor']['model']['createPositionAt'](_0x207082,_0xd6a8e0['end']));for(const _0x27293e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1308f5['getIntersection'](_0x27293e['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 _0x1bb8e2{['afterInit'](){const _0x16afdf=this['editor']['locale'],_0x63856d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3ea61a,commandName:_0x20c81d}of ro)this['editor']['plugins']['has'](_0x3ea61a)&&(_0x63856d['enableDefaultAttributesIntegration'](_0x20c81d),_0x63856d['registerInlineAttribute'](_0x20c81d));_0x63856d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x16afdf,'FORMAT_FONT_SIZE')),_0x63856d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x16afdf,'FORMAT_FONT_FAMILY')),_0x63856d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x16afdf,'FORMAT_FONT_COLOR')),_0x63856d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x16afdf,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49193a=this['editor'],_0x1e869c=_0x49193a['locale'];_0x49193a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3df923=>{const _0x3a95ad=_0x1e869c['t'];if('formatInline'!=_0x3df923['type'])return;const {data:_0x63bb94}=_0x3df923;if(null!=_0x63bb94){if('fontSize'==_0x63bb94['commandName']){const _0x14ffc8=_0x63bb94['commandParams'][0x0]['value'];if(_0x14ffc8){const _0x21ab3e=_0x3a95ad(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xb5a8b=>_0xb5a8b['model']==_0x14ffc8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1e869c,'*Set\x20font\x20size:*\x20%0',_0x21ab3e)};}return{'type':'format','content':o(_0x1e869c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x63bb94['commandName']){const _0x48a8c4=_0x63bb94['commandParams'][0x0]['value'];return _0x48a8c4?{'type':'format','content':o(_0x1e869c,'*Set\x20font\x20family:*\x20%0',_0x48a8c4)}:{'type':'format','content':o(_0x1e869c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x63bb94['commandName']){const _0x3af541=_0x63bb94['commandParams'][0x0]['value'];if(_0x3af541){const _0x33a5e2=_0x1301a3(this['editor']['config']['get']('fontColor.colors'))['find'](_0x56cdb1=>_0x56cdb1['model']==_0x3af541);let _0x59364b=_0x3af541,_0x3e9ae2='';return _0x33a5e2&&(_0x59364b=_0x33a5e2['label'],_0x3e9ae2=_0x3a95ad(_0x59364b)['toLowerCase']()),{'type':'format','content':o(_0x1e869c,'*Set\x20font\x20color:*\x20%0',_0x3e9ae2)['trim'](),'color':{'value':_0x3af541,'title':_0x3e9ae2||_0x59364b}};}return{'type':'format','content':o(_0x1e869c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x63bb94['commandName']){const _0x1b8226=_0x63bb94['commandParams'][0x0]['value'];if(_0x1b8226){const _0x1ee75e=_0x1301a3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1c6c7c=>_0x1c6c7c['model']==_0x1b8226);let _0x397714=_0x1b8226,_0x55e5e1='';return _0x1ee75e&&(_0x397714=_0x1ee75e['label'],_0x55e5e1=_0x3a95ad(_0x397714)['toLowerCase']()),{'type':'format','content':o(_0x1e869c,'*Set\x20font\x20background\x20color:*\x20%0',_0x55e5e1)['trim'](),'color':{'value':_0x1b8226,'title':_0x55e5e1||_0x397714}};}return{'type':'format','content':o(_0x1e869c,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x1bb8e2{['afterInit'](){const _0x2a0669=this['editor'],_0x14a367=_0x2a0669['plugins']['get']('TrackChangesEditing'),_0x45fb34=_0x2a0669['commands']['get']('copyFormat'),_0x4f414d=_0x2a0669['commands']['get']('pasteFormat');_0x45fb34&&_0x4f414d&&(_0x14a367['enableDefaultAttributesIntegration']('pasteFormat'),_0x14a367['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1bcbbe=this['editor'],_0x340f3a=_0x1bcbbe['locale'];_0x1bcbbe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x462a50=>{if('formatBlock'!=_0x462a50['type']&&'formatInline'!=_0x462a50['type'])return;const {data:_0x5b6323}=_0x462a50;if(_0x5b6323&&'pasteFormat'===_0x5b6323['commandName']){const _0x14c5cf=[],_0x4f6edd=_0x5b6323['commandParams'][0x0];for(const [_0x56d177,_0xfb131a]of Object['entries'](_0x4f6edd))_0x14c5cf['push'](so(_0x1bcbbe,_0x56d177,_0xfb131a));return _0x14c5cf['length']?{'type':'format','content':o(_0x340f3a,'*Set\x20format\x20to:*\x20%0',_0x14c5cf['join'](',\x20'))}:{'type':'format','content':o(_0x340f3a,'*Remove\x20all\x20formatting*')};}});}}function so(_0xcebd92,_0xb0313b,_0x3d7b43){const _0x52922a=_0xcebd92['locale']['t'],_0xb48f39=_0xb0313b['split'](/(?=[A-Z])/)['join']('\x20'),_0x4a4de3=_0x52922a(_0xb48f39['charAt'](0x0)['toUpperCase']()+_0xb48f39['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3d7b43)return _0x4a4de3;if('fontColor'===_0xb0313b||'fontBackgroundColor'===_0xb0313b){const _0x2e0002=_0x1301a3(_0xcebd92['config']['get']('fontColor.colors'))['find'](_0x42e192=>_0x42e192['model']==_0x3d7b43);return _0x4a4de3+'\x20('+(_0x2e0002?_0x52922a(_0x2e0002['label'])['toLowerCase']():_0x3d7b43)+')';}if('fontSize'===_0xb0313b&&isNaN(parseFloat(_0x3d7b43))){const _0x3108a3=_0xcebd92['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xcebd92['config']['get']('fontSize.options'))['find'](_0x3906f7=>_0x3906f7['model']==_0x3d7b43);return _0x4a4de3+'\x20('+(_0x3108a3?_0x52922a(_0x3108a3['title'])['toLowerCase']():_0x3d7b43)+')';}return _0x4a4de3+'\x20('+_0x3d7b43+')';}class tt extends _0x1bb8e2{['_headingOptions'];['afterInit'](){const _0x2a7bc=this['editor'];if(!_0x2a7bc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2a7bc['config']['get']('heading.options');const _0xdba77f=_0x2a7bc['locale'],_0x151223=_0x2a7bc['plugins']['get']('TrackChangesEditing');_0x151223['enableDefaultAttributesIntegration']('heading');for(const _0xd1c66e of this['_headingOptions'])'paragraph'!=_0xd1c66e['model']&&_0x151223['descriptionFactory']['registerElementLabel'](_0xd1c66e['model'],_0x186cf4=>{const _0x1ca92d=this['_getHeadingLevel'](_0xd1c66e['model']);return null!==_0x1ca92d?_0x22621d(_0x186cf4,_0x1ca92d):_0x414175(_0x186cf4,_0xd1c66e['title']);});function _0x22621d(_0x3db7f8,_0x1b6c38){return o(_0xdba77f,'ELEMENT_HEADING',[_0x3db7f8,_0x1b6c38]);}function _0x414175(_0x49a4a4,_0x8403ce){return o(_0xdba77f,'ELEMENT_HEADING_CUSTOM',[_0x49a4a4,_0x8403ce]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e7d3a=this['editor'],_0x117692=_0x5e7d3a['locale'];function _0x44e566(_0x27d4b6,_0x1936f5){return o(_0x117692,'ELEMENT_HEADING_CUSTOM',[_0x27d4b6,_0x1936f5]);}_0x5e7d3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1803cf=>{if('formatBlock'!=_0x1803cf['type'])return;const {data:_0x3c7a69}=_0x1803cf;if(_0x3c7a69&&'heading'==_0x3c7a69['commandName']){const _0x521a15=_0x3c7a69['commandParams'][0x0]['value'],_0x58d32e=this['_getHeadingLevel'](_0x521a15);if(null!==_0x58d32e)return{'type':'format','content':o(_0x117692,'*Change\x20to:*\x20%0',(_0x3d5ffb=0x1,_0xb8380=_0x58d32e,o(_0x117692,'ELEMENT_HEADING',[_0x3d5ffb,_0xb8380])))};const _0x5a3ea1=this['_headingOptions']['find'](_0x2bae90=>_0x2bae90['model']===_0x521a15)['title'];return{'type':'format','content':o(_0x117692,'*Change\x20to:*\x20%0',_0x44e566(0x1,_0x5a3ea1))};}var _0x3d5ffb,_0xb8380;});}['_getHeadingLevel'](_0x33f6e5){const _0x3b9999=_0x33f6e5['match'](/^heading(\d+)/);if(_0x3b9999)return _0x3b9999[0x1];const _0x543959=this['_headingOptions']?.['find'](_0x18a86a=>_0x18a86a['model']==_0x33f6e5);if(_0x543959&&_0x543959['view']){const _0x3eb873=_0x543959['view'],_0x5defcf=(_0x3eb873['name']??_0x3eb873)['match'](/^h(\d+)/);if(_0x5defcf)return _0x5defcf[0x1];}return null;}}class et extends _0x1bb8e2{['afterInit'](){const _0x1f020c=this['editor'];if(!_0x1f020c['plugins']['has']('HighlightEditing'))return;const _0x5b24ad=_0x1f020c['plugins']['get']('TrackChangesEditing'),_0x2996b6=_0x1f020c['locale'];_0x5b24ad['enableDefaultAttributesIntegration']('highlight'),_0x5b24ad['registerInlineAttribute']('highlight'),_0x5b24ad['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2996b6,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x277d50=this['editor'],_0x17e7d9=_0x277d50['locale'];_0x277d50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5df230=>{if('formatInline'!=_0x5df230['type'])return;const {data:_0x546608}=_0x5df230;if(_0x546608&&'highlight'==_0x546608['commandName']){const _0x3e0bce=_0x17e7d9['t'],_0x35cacd=_0x546608['commandParams'][0x0]['value'];if(_0x35cacd){const _0x47dd24=_0x277d50['config']['get']('highlight.options')['find'](_0x34f08d=>_0x34f08d['model']==_0x35cacd),_0x35c1b0=_0x3e0bce(_0x47dd24['title'])['toLowerCase']();return{'type':'format','content':o(_0x17e7d9,'*Set\x20highlight:*\x20%0',_0x35c1b0),'color':{'value':_0x47dd24['color'],'title':_0x47dd24['title']}};}return{'type':'format','content':o(_0x17e7d9,'*Remove\x20highlight*',o(_0x17e7d9,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x1bb8e2{['afterInit'](){const _0x4c76bd=this['editor'];if(!_0x4c76bd['plugins']['has']('HorizontalLineEditing'))return;_0x4c76bd['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x577ee8=_0x4c76bd['plugins']['get']('TrackChangesEditing'),_0x1d21d2=_0x4c76bd['locale'];_0x577ee8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x420d40=>o(_0x1d21d2,'ELEMENT_HORIZONTAL_LINE',_0x420d40)),_0x4c76bd['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3ddecd,{writer:_0xbb2a84,options:_0x29223c})=>{if(!_0x29223c['showSuggestionHighlights'])return null;const _0x3bc286=_0xbb2a84['createContainerElement']('div'),_0x16de75=_0xbb2a84['createEmptyElement']('hr');return _0xbb2a84['addClass']('ck-horizontal-line',_0x3bc286),_0xbb2a84['insert'](_0xbb2a84['createPositionAt'](_0x3bc286,0x0),_0x16de75),_0x3bc286;},'converterPriority':'high'});}}class st extends _0x1bb8e2{['afterInit'](){const _0x450ee2=this['editor'];if(!_0x450ee2['plugins']['has']('HtmlEmbed'))return;const _0x3ed924=_0x450ee2['plugins']['get']('TrackChangesEditing'),_0x45fec1=_0x450ee2['locale'];_0x3ed924['descriptionFactory']['registerElementLabel']('rawHtml',_0x380f34=>o(_0x45fec1,'ELEMENT_HTML_EMBED',_0x380f34)),_0x3ed924['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3ed924['registerBlockAttribute']('value'),_0x3ed924['descriptionFactory']['registerDescriptionCallback'](_0x82d21=>{if('attribute'!=_0x82d21['type'])return;const {data:_0x2ecd04}=_0x82d21;if(_0x2ecd04&&'value'==_0x2ecd04['key']&&_0x82d21['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xb979aa=o(_0x45fec1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x45fec1,'*Change\x20%0\x20content*',_0xb979aa)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x66d321=this['editor'],_0x50f84c=_0x66d321['locale'];_0x66d321['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a8395=>{if('formatBlock'!=_0x3a8395['type'])return;const {data:_0x3ff870}=_0x3a8395;if(_0x3ff870&&'htmlEmbed'==_0x3ff870['commandName']){const _0x350ffb=o(_0x50f84c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x50f84c,'*Change\x20%0\x20content*',_0x350ffb)};}});}}class nt extends _0x1bb8e2{['afterInit'](){const _0x23b35d=this['editor'];if(!_0x23b35d['plugins']['has']('ImageEditing'))return;const _0xb534c1=_0x23b35d['plugins']['get']('TrackChangesEditing'),_0x11dc02=_0x23b35d['plugins']['get']('ImageUtils'),_0x5e59dc=_0x23b35d['locale'];_0xb534c1['enableCommand']('insertImage'),_0xb534c1['descriptionFactory']['registerElementLabel']('imageBlock',_0x534b3d=>o(_0x5e59dc,'ELEMENT_IMAGE',_0x534b3d)),_0xb534c1['descriptionFactory']['registerElementLabel']('imageInline',_0x33f585=>o(_0x5e59dc,'ELEMENT_INLINE_IMAGE',_0x33f585)),_0xb534c1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5e59dc,'ELEMENT_CAPTION')),_0x23b35d['plugins']['has']('ImageUploadEditing')&&_0xb534c1['enableCommand']('uploadImage'),_0x23b35d['plugins']['has']('ImageBlockEditing')&&_0x23b35d['plugins']['has']('ImageInlineEditing')&&(_0xb534c1['enableCommand']('imageTypeInline',(_0x3aa2b8,_0xf225f0)=>{const _0x4be24b=_0x11dc02['getClosestSelectedImageElement'](_0x23b35d['model']['document']['selection']);_0x23b35d['model']['change'](()=>{_0xb534c1['markBlockFormat'](_0x4be24b,{'commandName':'imageTypeInline','commandParams':[_0xf225f0]},[],'convertBlockImageToInline');});}),_0xb534c1['enableCommand']('imageTypeBlock',(_0x4083c2,_0x4c5e03)=>{_0x23b35d['model']['change'](_0x472366=>{let _0x336559=_0x11dc02['getClosestSelectedImageElement'](_0x23b35d['model']['document']['selection']),_0x2248bc=_0x472366['createRangeOn'](_0x336559);const _0x4ea668=_0x7b15ae['fromPosition'](_0x2248bc['start'],'toPrevious'),_0x22a6f0=_0x7b15ae['fromPosition'](_0x2248bc['end'],'toNext');_0xb534c1['forceDefaultExecution'](()=>_0x4083c2(_0x4c5e03)),_0x336559=_0x11dc02['getClosestSelectedImageElement'](_0x23b35d['model']['document']['selection']),_0x2248bc=_0x472366['createRangeOn'](_0x336559);const _0x434816=_0x472366['createRange'](_0x4ea668,_0x22a6f0);_0x4ea668['detach'](),_0x22a6f0['detach'](),_0xb534c1['markBlockFormat'](_0x336559,{'commandName':'imageTypeInline','commandParams':[_0x4c5e03]},[],'convertInlineImageToBlock'),_0x434816['start']['isBefore'](_0x2248bc['start'])&&_0xb534c1['markInsertion'](_0x472366['createRange'](_0x434816['start'],_0x2248bc['start']),'convertInlineImageToBlock'),_0x2248bc['end']['isBefore'](_0x434816['end'])&&_0xb534c1['markInsertion'](_0x472366['createRange'](_0x2248bc['end'],_0x434816['end']),'convertInlineImageToBlock');});}),_0xb534c1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xb534c1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xb534c1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xb534c1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xb534c1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xb534c1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5257ea])=>{const _0x5312a8=_0xb534c1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x11c3ae=_0x5257ea['start'],_0x509183=_0x5257ea['end'];const _0x5aa5f7=_0x23b35d['model']['schema']['getNearestSelectionRange'](_0x11c3ae,'backward'),_0x3a83e3=_0x23b35d['model']['schema']['getNearestSelectionRange'](_0x509183,'forward');_0x5aa5f7['isCollapsed']&&(_0x11c3ae=_0x5aa5f7['start']),_0x3a83e3['isCollapsed']&&(_0x509183=_0x3a83e3['end']),_0x5312a8([_0x23b35d['model']['createRange'](_0x11c3ae,_0x509183)]);}),_0xb534c1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x16639b),_0xb534c1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x16639b)),_0x23b35d['plugins']['has']('ImageCaptionEditing')&&(_0xb534c1['enableCommand']('toggleImageCaption',(_0x1db19a,_0x20f1d4)=>{const _0x34a441=_0x23b35d['plugins']['get']('ImageCaptionUtils');let _0x89d2e0=_0x11dc02['getClosestSelectedImageElement'](_0x23b35d['model']['document']['selection']),_0x148705=_0x34a441['getCaptionFromImageModelElement'](_0x89d2e0);_0x23b35d['model']['change'](()=>{if(_0x148705)return void _0xb534c1['markDeletion'](_0x23b35d['model']['createRangeOn'](_0x148705));const _0x1bf26=_0x11dc02['isBlockImage'](_0x89d2e0);_0x1db19a(_0x20f1d4),_0x89d2e0=_0x11dc02['getClosestSelectedImageElement'](_0x23b35d['model']['document']['selection']),_0x148705=_0x34a441['getCaptionFromImageModelElement'](_0x89d2e0),_0xb534c1['markInsertion'](_0x23b35d['model']['createRangeOn'](_0x148705),_0x1bf26?null:'imageCaption');});}),_0xb534c1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x16639b));const _0x1b331d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x268896(_0x550ad0,_0x5a6e00){const _0x788afa=_0x1b331d['findIndex'](({type:_0x1429c0,subType:_0x4a2907})=>_0x550ad0['type']==_0x1429c0&&_0x550ad0['subType']==_0x4a2907),_0x1ea991=_0x1b331d['findIndex'](({type:_0x5aa805,subType:_0x4b7f6f})=>_0x5a6e00['type']==_0x5aa805&&_0x5a6e00['subType']==_0x4b7f6f);if(_0x788afa<0x0||_0x1ea991<0x0)return!0x1;const _0x461907=_0x550ad0['getFirstRange'](),_0x2b0fd5=_0x5a6e00['getFirstRange']();if((0x0==_0x788afa||0x1==_0x788afa)&&0x2==_0x1ea991&&_0x461907['isIntersecting'](_0x2b0fd5))return!0x0;if(0x2==_0x788afa&&0x3==_0x1ea991){const _0x1c22a3=_0xb534c1['_findSuggestions'](_0x461907,'insertion')['filter'](({suggestion:_0x146bdd,meta:_0x1660e2})=>_0x1660e2['isOwn']&&'convertInlineImageToBlock'==_0x146bdd['subType']);if(_0x1c22a3['length']>0x1&&_0x2b0fd5['end']['isEqual'](_0x461907['start']))return!0x0;if(0x1==_0x1c22a3['length']&&(_0x461907['start']['isEqual'](_0x2b0fd5['end'])||_0x461907['end']['isEqual'](_0x2b0fd5['start'])))return!0x0;}if(0x3==_0x788afa&&0x3==_0x1ea991&&_0x461907['start']['isBefore'](_0x2b0fd5['start'])){const _0x577f24=_0x461907['end']['nodeAfter'],_0x29cd98=_0x2b0fd5['start']['nodeBefore'];return _0x11dc02['isBlockImage'](_0x577f24)&&_0x577f24===_0x29cd98;}return!0x1;}function _0x16639b(_0x199e99,_0x2990f5){return _0x268896(_0x199e99,_0x2990f5)?[_0x199e99,_0x2990f5]:_0x268896(_0x2990f5,_0x199e99)?[_0x2990f5,_0x199e99]:null;}_0x23b35d['plugins']['has']('ImageResize')&&(_0xb534c1['enableDefaultAttributesIntegration']('resizeImage'),_0xb534c1['registerBlockAttribute']('resizedWidth'),_0xb534c1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5e59dc,'FORMAT_IMAGE_SIZE'))),_0x23b35d['plugins']['has']('ImageTextAlternativeEditing')&&(_0xb534c1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xb534c1['registerBlockAttribute']('alt')),_0xb534c1['descriptionFactory']['registerDescriptionCallback'](_0x444b6f=>{if(!!_0x1b331d['find'](({type:_0xb569a4,subType:_0x21631f})=>_0x444b6f['type']==_0xb569a4&&_0x444b6f['subType']==_0x21631f))return _0x444b6f['previous']?{}:void 0x0;}),_0xb534c1['descriptionFactory']['registerDescriptionCallback'](_0x19fbd2=>{if('insertion'==_0x19fbd2['type']||'deletion'==_0x19fbd2['type']){const _0x3727df=_0x19fbd2['getContainedElement']();if(_0x3727df&&_0x3727df['is']('element','caption'))return{'type':'insertion'==_0x19fbd2['type']?'addObject':'removeObject','element':_0x3727df,'quantity':0x1};}}),_0xb534c1['descriptionFactory']['registerDescriptionCallback'](_0x41a540=>'formatBlock'==_0x41a540['type']&&'convertInlineImageToBlock'==_0x41a540['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x41a540['type']&&'convertBlockImageToInline'==_0x41a540['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xb534c1['descriptionFactory']['registerDescriptionCallback'](_0x3abd5a=>{if('attribute'!=_0x3abd5a['type'])return;const {data:_0x33950f}=_0x3abd5a;if(!_0x33950f||'alt'!=_0x33950f['key'])return;const _0x1df020=_0x33950f['newValue'];return _0x1df020?{'type':'format','content':o(_0x5e59dc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1df020+'\x22')}:{'type':'format','content':o(_0x5e59dc,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x924c7d=this['editor'],_0x22b8ac=_0x924c7d['locale'];_0x924c7d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e7975=>{if('formatBlock'!=_0x4e7975['type']&&'formatInline'!=_0x4e7975['type'])return;const {data:_0x30ec41}=_0x4e7975;if(_0x30ec41){if('imageTextAlternative'==_0x30ec41['commandName']){const _0x2d0275=_0x30ec41['commandParams'][0x0]['newValue'];return _0x2d0275?{'type':'format','content':o(_0x22b8ac,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2d0275+'\x22')}:{'type':'format','content':o(_0x22b8ac,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x30ec41['commandName']){const _0x1799cd=_0x30ec41['commandParams'][0x0]['width'];return _0x1799cd?{'type':'format','content':o(_0x22b8ac,'*Set\x20image\x20width:*\x20%0',_0x1799cd)}:{'type':'format','content':o(_0x22b8ac,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x1bb8e2{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xf9334=this['editor']['locale'],_0x3c52fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c52fb['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3c52fb['registerBlockAttribute']('src'),_0x3c52fb['descriptionFactory']['registerDescriptionCallback'](_0x25b1c1=>{if('attribute'!=_0x25b1c1['type'])return;const {data:_0xf730c8}=_0x25b1c1;return _0xf730c8&&'src'==_0xf730c8['key']?_0xf730c8['newValue']&&_0xf730c8['oldValue']?{'type':'format','content':o(_0xf9334,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4e8837=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e8837['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4e8837['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4e8837['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4e8837['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x482e15=this['editor'],_0x92088a=_0x482e15['locale'];_0x482e15['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x341253=>{if('formatBlock'!=_0x341253['type']&&'formatInline'!=_0x341253['type'])return;const {data:_0x46c4d1}=_0x341253;if(!_0x46c4d1||'replaceImageSource'!=_0x46c4d1['commandName'])return;return{'type':'format','content':o(_0x92088a,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x1bb8e2{['afterInit'](){const _0x596810=this['editor'];if(!_0x596810['plugins']['has']('ImageStyleEditing'))return;const _0x228302=_0x596810['plugins']['get']('TrackChangesEditing'),_0x422714=_0x596810['plugins']['get']('ImageUtils'),_0x466999={};_0x228302['enableCommand']('imageStyle',(_0x5c024e,_0x4866e2)=>{const _0x60d652=_0x596810['plugins']['get']('Users')['me'],_0x414fdf=_0x596810['commands']['get']('imageStyle');let _0x326b9d=_0x422714['getClosestSelectedImageElement'](_0x596810['model']['document']['selection']),_0xbfd62f=_0x596810['model']['createRangeOn'](_0x326b9d),_0x4b32b8=_0x414fdf['value'];if(_0x4b32b8==_0x4866e2['value'])return;const _0x13aab2={'commandName':'imageStyle','commandParams':[_0x4866e2],'formatGroupId':_0x59fd7a()};_0x596810['model']['change'](()=>{if(_0x228302['getSuggestions']()['filter'](_0x5279b7=>_0x5279b7['isInContent']&&_0x60d652==_0x5279b7['author']&&('formatBlock'==_0x5279b7['type']||'formatInline'==_0x5279b7['type'])&&('imageStylePreApply'==_0x5279b7['subType']||'imageStylePostApply'==_0x5279b7['subType'])&&_0x5279b7['getFirstRange']()['isEqual'](_0xbfd62f))['forEach'](_0x59a5b5=>_0x228302['discardSuggestion'](_0x59a5b5['head'])),_0x326b9d=_0x422714['getClosestSelectedImageElement'](_0x596810['model']['document']['selection']),_0xbfd62f=_0x596810['model']['createRangeOn'](_0x326b9d),_0x414fdf['refresh'](),_0x596810['commands']['get']('imageTypeInline')['refresh'](),_0x596810['commands']['get']('imageTypeBlock')['refresh'](),_0x4b32b8=_0x414fdf['value'],_0x4b32b8!=_0x4866e2['value'])return _0x422714['isInlineImage'](_0x326b9d)&&_0x414fdf['shouldConvertImageType'](_0x4866e2['value'],_0x326b9d)?(_0x5c024e({..._0x4866e2,'setImageSizes':!0x1}),_0x326b9d=_0x422714['getClosestSelectedImageElement'](_0x596810['model']['document']['selection']),void _0x228302['markBlockFormat'](_0x326b9d,{..._0x13aab2,'commandReversedParams':[{'value':_0x4b32b8||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x422714['isBlockImage'](_0x326b9d)?_0x228302['markBlockFormat'](_0x326b9d,_0x13aab2,[],'imageStylePostApply'):_0x228302['markInlineFormat'](_0xbfd62f,_0x13aab2,'imageStylePostApply'));});});for(const _0x3958d0 of _0x596810['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x466999[_0x3958d0['name']]=_0x3958d0['title']['toLowerCase']();_0x228302['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x228302['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x228302['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x228302['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4bb267])=>{_0x422714['setImageNaturalSizeAttributes'](_0x4bb267['getContainedElement']());}),_0x228302['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x191268,_0x1014e9)=>{_0x228302['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x191268,{'commandName':_0x1014e9['commandName'],'commandParams':_0x1014e9['commandReversedParams']});}),_0x228302['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xfa4e68,_0x33346a){if(_0x31a563(_0xfa4e68,_0x33346a))return[_0xfa4e68,_0x33346a];if(_0x31a563(_0x33346a,_0xfa4e68))return[_0x33346a,_0xfa4e68];return null;});const _0x91225e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31a563(_0x24ab63,_0x4b52d0){const _0xf8fea9=_0x91225e['findIndex'](({type:_0x2e19a4,subType:_0x5cfcb3})=>_0x24ab63['type']==_0x2e19a4&&_0x24ab63['subType']==_0x5cfcb3),_0xcce202=_0x91225e['findIndex'](({type:_0x5c2674,subType:_0x1a6735})=>_0x4b52d0['type']==_0x5c2674&&_0x4b52d0['subType']==_0x1a6735);if(_0xf8fea9<0x0||_0xcce202<0x0)return!0x1;const _0x340f91=_0x24ab63['getFirstRange'](),_0x6e099b=_0x4b52d0['getFirstRange']();if((0x0==_0xf8fea9||0x1==_0xf8fea9)&&0x2==_0xcce202&&_0x340f91['isIntersecting'](_0x6e099b))return!0x0;if(0x2==_0xf8fea9&&0x3==_0xcce202){const _0xda73b6=_0x228302['_findSuggestions'](_0x340f91,'insertion')['filter'](({suggestion:_0x2f024b,meta:_0x39f73c})=>_0x39f73c['isOwn']&&'convertInlineImageToBlock'==_0x2f024b['subType']);if(_0xda73b6['length']>0x1&&_0x6e099b['end']['isEqual'](_0x340f91['start']))return!0x0;if(0x1==_0xda73b6['length']&&(_0x340f91['start']['isEqual'](_0x6e099b['end'])||_0x340f91['end']['isEqual'](_0x6e099b['start'])))return!0x0;}if(0x3==_0xf8fea9&&0x3==_0xcce202&&_0x340f91['start']['isBefore'](_0x6e099b['start'])){const _0x41e604=_0x340f91['end']['nodeAfter'],_0x41dfd1=_0x6e099b['start']['nodeBefore'];return _0x422714['isBlockImage'](_0x41e604)&&_0x41e604===_0x41dfd1;}return!0x1;}_0x596810['model']['document']['registerPostFixer'](()=>{let _0x5a2671=!0x1;const _0x27f112=Array['from'](_0x596810['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x17c376,data:_0x1edd19}of _0x27f112){const {group:_0x386ad4,type:_0x31f14b,subType:_0x58a733,id:_0x11981a}=_0x228302['_splitMarkerName'](_0x17c376);if('suggestion'==_0x386ad4&&_0x228302['hasSuggestion'](_0x11981a)){if('formatBlock'==_0x31f14b&&('imageStylePreApply'==_0x58a733||'imageStylePostApply'==_0x58a733)){const _0x33017f=_0x228302['getSuggestion'](_0x11981a);if(_0x1edd19['newRange']){const _0x1a2a49=_0x33017f['getFirstRange']()['getContainedElement']();if(_0x422714['isBlockImage'](_0x1a2a49))continue;_0x228302['discardSuggestion'](_0x33017f),_0x5a2671=!0x0;}}if('insertion'==_0x31f14b&&'imageCaption'==_0x58a733&&!_0x1edd19['newRange']){const _0x3bd497=_0x228302['getSuggestion'](_0x11981a);_0x3bd497['next']&&_0x3bd497['next']['isInContent']&&(_0x228302['discardSuggestion'](_0x3bd497['next']),_0x5a2671=!0x0);}}}return _0x5a2671;}),this['_registerLegacyDescription'](_0x466999);}['_registerLegacyDescription'](_0xecb29c){const _0x1334cf=this['editor'],_0x30c705=_0x1334cf['locale'];_0x1334cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18102e=>{if('formatBlock'!=_0x18102e['type']&&'formatInline'!=_0x18102e['type'])return;const {data:_0x58244a}=_0x18102e;if(!_0x58244a||'imageStyle'!=_0x58244a['commandName'])return;const _0x532ed0=_0x58244a['commandParams'][0x0]['value'];return _0xf47857('side'===_0x532ed0?o(_0x30c705,'FORMAT_SIDE_IMAGE'):_0xecb29c[_0x532ed0]||_0x532ed0);function _0xf47857(_0x2bceb7){return{'type':'format','content':o(_0x30c705,'*Format:*\x20%0',_0x2bceb7)};}});}}class at extends _0x1bb8e2{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x216e4b){super(_0x216e4b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2b842b=this['editor'],_0x40d5f9=_0x2b842b['commands']['get']('importWord'),_0x3ae6bd=_0x2b842b['commands']['get']('trackChanges');_0x40d5f9&&(_0x40d5f9['on']('execute',(_0x322501,[,_0x4d5b8b])=>{this['_trackChangesValueDuringImport']=_0x3ae6bd['value'],_0x4d5b8b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x40d5f9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x40d5f9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3ae6bd['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2b842b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x40e8d8,_0x5c7b57){const {suggestions:_0x4bbab3}=_0x5c7b57,_0x2cc3e0=this['editor']['commands']['get']('trackChanges'),_0x352d4a=_0x2cc3e0['value'];this['_trackChangesValueDuringImport']!==_0x352d4a&&(_0x2cc3e0['execute'](),this['_trackChangesExecuted']=!0x0),_0x4bbab3&&_0x4bbab3['forEach'](({id:_0x3ba765,type:_0x12cf8a,author:_0x536225,created_at:_0x2f70b4})=>{const _0x46d8c2={'id':_0x3ba765,'type':_0x12cf8a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x536225,'createdAt':_0x2f70b4?new Date(_0x2f70b4):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x46d8c2);});}}class ct extends _0x1bb8e2{['afterInit'](){const _0x88dc67=this['editor'],_0x22e9d7=_0x88dc67['plugins']['get']('TrackChangesEditing');if(_0x88dc67['plugins']['has']('IndentEditing')&&(_0x22e9d7['enableCommand']('indent'),_0x22e9d7['enableCommand']('outdent')),_0x88dc67['plugins']['has']('IndentBlock')){for(const _0x123a42 of['indentBlock','outdentBlock'])_0x22e9d7['enableDefaultAttributesIntegration'](_0x123a42);}const _0x4a84d3=_0x88dc67['locale'];_0x22e9d7['registerBlockAttribute']('blockIndent'),_0x22e9d7['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4a84d3,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x113e8=this['editor'],_0x3915ff=_0x113e8['locale'],_0x2f4e21=_0x113e8['plugins']['get']('TrackChangesEditing');_0x2f4e21['descriptionFactory']['registerDescriptionCallback'](_0x3af082=>{if('formatBlock'!=_0x3af082['type'])return;const {data:_0x319821}=_0x3af082;if(!_0x319821)return;if('indentBlock'!=_0x319821['commandName']&&'outdentBlock'!=_0x319821['commandName'])return;const _0x521b7e=_0x3af082['getItems']()[0x0],_0xd9b5a7=_0x2f4e21['descriptionFactory']['getItemLabel'](_0x521b7e);return'indentBlock'==_0x319821['commandName']?{'type':'format','content':o(_0x3915ff,'*Indent:*\x20%0',_0xd9b5a7)}:'outdentBlock'==_0x319821['commandName']?{'type':'format','content':o(_0x3915ff,'*Outdent:*\x20%0',_0xd9b5a7)}:void 0x0;});}}class ut extends _0x1bb8e2{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x1bb8e2{['afterInit'](){const _0x230de8=this['editor'];if(!_0x230de8['plugins']['has']('LinkEditing'))return;const _0x58c8d8=_0x230de8['plugins']['get']('TrackChangesEditing'),_0x38fe39=_0x230de8['commands']['get']('link');_0x58c8d8['enableDefaultAttributesIntegration']('link'),_0x58c8d8['enableDefaultAttributesIntegration']('unlink'),_0x58c8d8['registerInlineAttribute']('linkHref');for(const _0x4c3034 of _0x38fe39['manualDecorators'])_0x58c8d8['registerInlineAttribute'](_0x4c3034['id']),_0x58c8d8['descriptionFactory']['registerAttributeLabel'](_0x4c3034['id'],'link\x20('+_0x4c3034['label']['toLowerCase']()+')');_0x58c8d8['descriptionFactory']['registerDescriptionCallback'](_0x82e606=>{if('attribute'!=_0x82e606['type'])return;const {data:_0xb7ba02}=_0x82e606;if(!_0xb7ba02||'linkHref'!=_0xb7ba02['key'])return;const _0x83c169=_0xb7ba02['newValue'],_0x42d51b=_0x230de8['locale'];return{'type':'format','content':null==_0x83c169?o(_0x42d51b,'*Remove\x20link*'):o(_0x42d51b,'*Set\x20link:*\x20%0','\x22'+_0x83c169+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35e787=this['editor'],_0x3ddda2=_0x35e787['locale'];_0x35e787['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b18d2=>{if('formatInline'!=_0x1b18d2['type'])return;const {data:_0x9f78e}=_0x1b18d2;if(_0x9f78e){if('link'==_0x9f78e['commandName']){const _0x3fe8ff=_0x9f78e['commandParams'][0x0];return{'type':'format','content':o(_0x3ddda2,'*Set\x20link:*\x20%0','\x22'+_0x3fe8ff+'\x22')};}return'unlink'==_0x9f78e['commandName']?{'type':'format','content':o(_0x3ddda2,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x1bb8e2{['afterInit'](){const _0x53d1e2=this['editor'],_0x432b8e=_0x53d1e2['locale'];if(!_0x53d1e2['plugins']['has']('LegacyListEditing'))return;const _0x3c702f=_0x53d1e2['plugins']['get']('TrackChangesEditing'),_0x1639e3=_0x53d1e2['plugins']['has']('LegacyTodoListEditing');function _0x8786e8(_0x2cf1a1){return()=>{const _0x23d179=_0x53d1e2['model']['document']['selection'],_0xe0c80c=_0x53d1e2['commands']['get'](_0x2cf1a1);if(_0xe0c80c['value'])return void _0x53d1e2['execute']('paragraph',{});const _0x14bbbb=_0x2cf1a1['slice'](0x0,-0x4),_0x305d33=function(_0x23aefb,_0x5ecd0d,_0x3a356f){let _0x208420=Array['from'](_0x23aefb)['filter'](_0x3dfc55=>function(_0x19612d,_0x315a5e){return _0x315a5e['checkChild'](_0x19612d['parent'],'listItem')&&!_0x315a5e['isObject'](_0x19612d);}(_0x3dfc55,_0x3a356f));_0x208420=_0x208420['filter'](_0x1f39e8=>!_0x1f39e8['is']('element','listItem')||_0x1f39e8['getAttribute']('listType')!=_0x5ecd0d);const _0xca5565=new Set();for(const _0x36f3c0 of _0x208420)_0x36f3c0['is']('element','listItem')?_0xca5565['add'](fe(_0x36f3c0)):_0xca5565['add'](_0x36f3c0);return Array['from'](_0xca5565);}(_0x23d179['getSelectedBlocks'](),_0x14bbbb,_0x53d1e2['model']['schema']);_0x53d1e2['model']['change'](()=>{for(const _0x4df8d9 of _0x305d33)_0x3c702f['markBlockFormat'](_0x4df8d9,{'commandName':_0x2cf1a1,'commandParams':[{'forceValue':!_0xe0c80c['value']}],'formatGroupId':'blockName'},ue(_0x4df8d9));});};}function _0x24479b(_0x522ac2){return()=>{const _0x43f8b5=function(_0x5ab0bf){let _0x39e624=Array['from'](_0x5ab0bf);const _0x89195c=_0x39e624['findIndex'](_0x177573=>'listItem'!=_0x177573['name']);return _0x89195c>-0x1&&(_0x39e624=_0x39e624['slice'](0x0,_0x89195c)),_0x39e624;}(_0x53d1e2['model']['document']['selection']['getSelectedBlocks']()),_0x4240d2=_0x53d1e2['model']['createRange'](_0x53d1e2['model']['createPositionAt'](_0x43f8b5[0x0],'before'),_0x53d1e2['model']['createPositionAt'](_0x43f8b5[_0x43f8b5['length']-0x1],'end'));_0x53d1e2['model']['change'](()=>{_0x3c702f['markBlockFormat'](_0x4240d2,{'commandName':_0x522ac2,'commandParams':[],'formatGroupId':'listIndent'},function(_0x437d5b){const _0x3d54dd=new Set();for(const _0x53165f of _0x437d5b){let _0x3e1063=_0x53165f['nextSibling'];for(;_0x3e1063&&_0x3e1063['getAttribute']('listIndent')>_0x53165f['getAttribute']('listIndent');)_0x3d54dd['add'](_0x3e1063),_0x3e1063=_0x3e1063['nextSibling'];}return Array['from'](_0x3d54dd);}(_0x43f8b5));});};}_0x3c702f['enableCommand']('numberedList',_0x8786e8('numberedList')),_0x3c702f['enableCommand']('bulletedList',_0x8786e8('bulletedList')),_0x1639e3&&_0x3c702f['enableCommand']('todoList',_0x8786e8('todoList')),_0x3c702f['enableCommand']('indentList',_0x24479b('indentList')),_0x3c702f['enableCommand']('outdentList',_0x24479b('outdentList')),_0x1639e3&&_0x3c702f['enableCommand']('checkTodoList',()=>{const _0x58499e=_0x53d1e2['commands']['get']('checkTodoList'),_0xe0a8bb=Array['from'](_0x58499e['_selectedElements']);_0xe0a8bb['filter'](_0x5949be=>_0x5949be['getAttribute']('todoListChecked')!=_0x58499e['value']),_0x53d1e2['model']['change'](()=>{for(const _0x12bf99 of _0xe0a8bb)_0x3c702f['markBlockFormat'](_0x12bf99,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x58499e['value']}]});});}),_0x3c702f['descriptionFactory']['registerElementLabel']('listItem',_0x3830c5=>o(_0x432b8e,'ELEMENT_LIST_ITEM',_0x3830c5)),_0x3c702f['descriptionFactory']['registerDescriptionCallback'](_0x563ea3=>{if('formatBlock'!=_0x563ea3['type']&&'formatInline'!=_0x563ea3['type'])return;const {data:_0xdbdeee}=_0x563ea3;if(_0xdbdeee){if('numberedList'==_0xdbdeee['commandName']||'bulletedList'==_0xdbdeee['commandName']||'todoList'==_0xdbdeee['commandName'])switch(_0xdbdeee['commandName']['replace']('List','')){case'bulleted':return _0x212150(o(_0x432b8e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x212150(o(_0x432b8e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x212150(o(_0x432b8e,'ELEMENT_TODO_LIST'));}if('indentList'==_0xdbdeee['commandName'])return{'type':'format','content':o(_0x432b8e,'*Indent:*\x20%0',o(_0x432b8e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xdbdeee['commandName'])return{'type':'format','content':o(_0x432b8e,'*Outdent:*\x20%0',o(_0x432b8e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xdbdeee['commandName'])return _0xdbdeee['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x432b8e,'*Check\x20item*')}:{'type':'format','content':o(_0x432b8e,'*Uncheck\x20item*')};}function _0x212150(_0x1efb05){return{'type':'format','content':o(_0x432b8e,'*Change\x20to:*\x20%0',_0x1efb05)};}});}}function fe(_0x43d624){const _0x1c0f01=_0x43d624['getAttribute']('listIndent');if(0x0==_0x1c0f01)return _0x43d624;let _0x353de3=_0x43d624;for(;_0x43d624['previousSibling']&&_0x43d624['previousSibling']['is']('element','listItem');){const _0x5b6635=_0x43d624['previousSibling']['getAttribute']('listIndent');if(_0x5b6635==_0x1c0f01)_0x353de3=_0x43d624['previousSibling'];else{if(_0x5b6635<_0x1c0f01)break;}_0x43d624=_0x43d624['previousSibling'];}return _0x353de3;}function ue(_0xcc830f){const _0x19fec9=[];if(_0xcc830f['is']('element','listItem')&&_0xcc830f['getAttribute']('listIndent')>0x0){let _0x108d93=_0xcc830f['nextSibling'];for(;_0x108d93&&'listItem'==_0x108d93['name']&&_0x108d93['getAttribute']('listIndent')==_0xcc830f['getAttribute']('listIndent');)_0x19fec9['push'](_0x108d93),_0x108d93=_0x108d93['nextSibling'];}return _0x19fec9;}class W extends _0x1bb8e2{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x49d0c1=this['editor']['config']['get']('list.properties'),_0x4ff530=this['editor']['plugins']['get']('TrackChangesEditing');_0x49d0c1['styles']&&_0x4ff530['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x49d0c1['reversed']&&_0x4ff530['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x49d0c1['startIndex']&&_0x4ff530['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4ff530['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5cbfb4,_0xf3e5ec={}){const _0x1dc0a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29bdaa=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1dc0a8['markMultiRangeBlockFormat'](_0x29bdaa,{'commandName':'listStyle','commandParams':[{'type':_0xf3e5ec['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x22bd00,_0x35d341={}){const _0x1633f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ef0e3=this['_getSuggestionBlocks'](_0x370300=>_0x370300['is']('element','listItem')&&'numbered'===_0x370300['getAttribute']('listType'));if(_0x3ef0e3['length']<0x1)return;const _0x5034c3=_0x3ef0e3['map'](_0x14b2f2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x14b2f2,'before'),this['editor']['model']['createPositionAt'](_0x14b2f2,0x0)));this['editor']['model']['change'](()=>{_0x1633f6['markMultiRangeBlockFormat'](_0x5034c3,{'commandName':'listReversed','commandParams':[{'reversed':_0x35d341['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x6e235a,_0x11eebf={}){const _0xaeb5a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b54bc=this['_getSuggestionBlocks'](_0x4f9a2b=>_0x4f9a2b['is']('element','listItem')&&'numbered'===_0x4f9a2b['getAttribute']('listType'));if(_0x4b54bc['length']<0x1)return;const _0x4429e0=_0x4b54bc['map'](_0x54d377=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54d377,'before'),this['editor']['model']['createPositionAt'](_0x54d377,0x0)));this['editor']['model']['change'](()=>{_0xaeb5a8['markMultiRangeBlockFormat'](_0x4429e0,{'commandName':'listStart','commandParams':[{'startIndex':_0x11eebf['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5a811d){if('formatBlock'!=_0x5a811d['type']&&'formatInline'!=_0x5a811d['type'])return;const _0x373d35=this['editor']['locale'],{data:_0x3e86ab}=_0x5a811d;if(!_0x3e86ab)return;let _0x14b47a,_0x4438b2;switch(_0x3e86ab['commandName']){case'listStyle':_0x14b47a='*Change\x20to:*\x20%0',_0x4438b2={'type':'format','content':o(_0x373d35,_0x14b47a,o(_0x373d35,this['_getTranslationKeyForListStyle'](_0x3e86ab['commandParams'][0x0]['type'])))};break;case'listReversed':_0x14b47a=_0x3e86ab['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4438b2={'type':'format','content':o(_0x373d35,_0x14b47a)};break;case'listStart':_0x14b47a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4438b2={'type':'format','content':o(_0x373d35,_0x14b47a,_0x3e86ab['commandParams'][0x0]['startIndex'])};}return _0x4438b2;}['_getSuggestionBlocksForListStyle'](){const _0x1ce9cf=this['editor']['plugins']['get']('LegacyListUtils');let _0x2cb0d1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2cb0d1[0x0]?.['is']('element','listItem')&&_0x2cb0d1['unshift'](..._0x1ce9cf['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2cb0d1[_0x2cb0d1['length']-0x1]?.['is']('element','listItem')&&_0x2cb0d1['push'](..._0x1ce9cf['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2cb0d1=[...new Set(_0x2cb0d1)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2cb0d1=_0x2cb0d1['filter'](_0x1238db=>_0x1238db['is']('element','listItem'))),_0x2cb0d1;}['_getSuggestionBlocks'](_0x4d0521){const _0x31a080=this['editor']['plugins']['get']('LegacyListUtils');let _0xba3954=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4d0521)['map'](_0x303f96=>{const _0x5cb179=this['editor']['model']['createPositionAt'](_0x303f96,0x0);return[..._0x31a080['getSiblingNodes'](_0x5cb179,'backward'),..._0x31a080['getSiblingNodes'](_0x5cb179,'forward')];})['flat']();return _0xba3954=[...new Set(_0xba3954)],_0xba3954;}['_getTranslationKeyForListStyle'](_0x2a0c89){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2a0c89)||'default')['toUpperCase']()+'_LIST_'+_0x2a0c89['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x1bb8e2{['afterInit'](){const _0x250397=this['editor'];if(!_0x250397['plugins']['has']('MediaEmbedEditing'))return;const _0x131b4b=_0x250397['plugins']['get']('TrackChangesEditing'),_0x936f11=_0x250397['locale'];_0x131b4b['enableCommand']('mediaEmbed'),_0x131b4b['descriptionFactory']['registerElementLabel']('media',_0x19ae7f=>o(_0x936f11,'ELEMENT_MEDIA',_0x19ae7f)),_0x250397['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1b3f0a,{writer:_0x1996d3,options:_0x593f57})=>{if(_0x593f57['showSuggestionHighlights'])return _0x1996d3['createEmptyElement']('div');},'converterPriority':'high'}),_0x250397['data']['downcastDispatcher']['on']('attribute:url:media',(_0x417da4,_0x388709,_0x10f590)=>{_0x10f590['options']['showSuggestionHighlights']&&_0x417da4['stop']();},{'priority':'high'});}}class mt extends _0x1bb8e2{['afterInit'](){const _0x539d2a=this['editor'];_0x539d2a['plugins']['has']('MentionEditing')&&_0x539d2a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x1bb8e2{['afterInit'](){const _0x268066=this['editor'];if(!_0x268066['plugins']['has']('MergeFieldsEditing'))return;_0x268066['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x268066['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2de821=_0x268066['plugins']['get']('TrackChangesEditing'),_0x35cb3f=_0x268066['locale'];_0x2de821['descriptionFactory']['registerElementLabel']('mergeField',_0x16ffcd=>o(_0x35cb3f,'ELEMENT_MERGE_FIELD',_0x16ffcd)),_0x2de821['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x12d01f=>o(_0x35cb3f,'ELEMENT_MERGE_FIELD',_0x12d01f)),_0x2de821['descriptionFactory']['registerDescriptionCallback'](_0x1baded=>{if('insertion'!=_0x1baded['type']&&'deletion'!=_0x1baded['type'])return;const _0x3f81c9=_0x1baded['getContainedElement']();if(null==_0x3f81c9)return;if(!_0x3f81c9['is']('element','mergeField')&&!_0x3f81c9['is']('element','mergeFieldBlock'))return;const _0x8b3593=_0x268066['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x3f81c9['getAttribute']('id'));return'insertion'==_0x1baded['type']?{'type':'insertion','content':o(_0x35cb3f,'*Insert:*\x20%0','\x22'+_0x8b3593+'\x22\x20'+o(_0x35cb3f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x35cb3f,'*Remove:*\x20%0','\x22'+_0x8b3593+'\x22\x20'+o(_0x35cb3f,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x1bb8e2{['afterInit'](){const _0x1c8042=this['editor'],_0x3359d1=_0x1c8042['plugins']['get']('TrackChangesEditing');_0x1c8042['plugins']['has']('MultiLevelList')&&(_0x3359d1['enableDefaultAttributesIntegration']('multiLevelList'),_0x3359d1['registerBlockAttribute']('listMarkerStyle'),_0x3359d1['descriptionFactory']['registerDescriptionCallback'](_0xfdf4b9=>this['handleDescriptions'](_0xfdf4b9)));}['handleDescriptions'](_0x3626dc){const _0x3a7ea2=this['editor']['locale'],{data:_0x293e44}=_0x3626dc,_0x147d7d={'type':'format','content':''};if(_0x293e44&&'listMarkerStyle'==_0x293e44['key']){if(!_0x293e44['oldValue'])return{'type':'format','content':o(_0x3a7ea2,'*Set\x20format:*\x20%0',o(_0x3a7ea2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x293e44['newValue']+')'};if(!_0x293e44['newValue']){let _0x5c1522=_0x3626dc['head'];for(;_0x5c1522;){if(_0x5c1522['data']&&'listType'==_0x5c1522['data']['key']&&_0x5c1522['data']['newValue'])return _0x147d7d;_0x5c1522=_0x5c1522['next'];}return{'type':'format','content':o(_0x3a7ea2,'*Remove\x20format:*\x20%0',o(_0x3a7ea2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x293e44['oldValue']+')'};}}}}class kt extends _0x1bb8e2{['afterInit'](){const _0xf7d3b3=this['editor'];if(!_0xf7d3b3['plugins']['has']('PageBreakEditing'))return;_0xf7d3b3['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4a3ed0=_0xf7d3b3['plugins']['get']('TrackChangesEditing'),_0x18845b=_0xf7d3b3['locale'];_0x4a3ed0['descriptionFactory']['registerElementLabel']('pageBreak',_0x40a91b=>o(_0x18845b,'ELEMENT_PAGE_BREAK',_0x40a91b));}}class bt extends _0x1bb8e2{['afterInit'](){const _0x8fb6a5=this['editor'];if(!_0x8fb6a5['plugins']['has']('Paragraph'))return;const _0x35aad8=_0x8fb6a5['locale'],_0x5ea2eb=_0x8fb6a5['plugins']['get']('TrackChangesEditing');_0x5ea2eb['descriptionFactory']['registerElementLabel']('paragraph',_0x2c7bc0=>o(_0x35aad8,'ELEMENT_PARAGRAPH',_0x2c7bc0)),_0x5ea2eb['enableDefaultAttributesIntegration']('paragraph'),_0x5ea2eb['enableCommand']('insertParagraph'),_0x8fb6a5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x8fb6a5),{'priority':'highest'}),_0x8fb6a5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5a208d,_0x47adc1,_0x2f4e07)=>{_0x2f4e07['options']['showSuggestionHighlights']&&nr(_0x8fb6a5,{'showActiveMarker':!0x1})(_0x5a208d,_0x47adc1,_0x2f4e07);},{'priority':'highest'});const _0x32a3e8=_0x5ea2eb['descriptionFactory'];_0x32a3e8['registerDescriptionCallback'](_0x2dc1f2=>{if('insertion'!==_0x2dc1f2['type'])return;const {start:_0x50f81a,end:_0x17566e}=_0x2dc1f2['getFirstRange']();if(!_0x50f81a['isTouching'](_0x17566e)||!_0x50f81a['nodeAfter'])return;const _0x1debb4=_0x8fb6a5['model']['schema'],_0x47beb1=_0x50f81a['nodeAfter'];return _0x1debb4['isBlock'](_0x47beb1)&&!_0x1debb4['isLimit'](_0x47beb1)&&_0x1debb4['checkChild'](_0x47beb1,'$text')?{'type':'insertion','content':o(_0x35aad8,'*Insert:*\x20%0',_0x32a3e8['getItemLabel'](_0x47beb1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x296024=this['editor'],_0x48bb7a=_0x296024['locale'];_0x296024['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x501d0b=>{if('formatBlock'!=_0x501d0b['type'])return;const {data:_0x19433c}=_0x501d0b;return _0x19433c&&'paragraph'==_0x19433c['commandName']?{'type':'format','content':o(_0x48bb7a,'*Change\x20to:*\x20%0',o(_0x48bb7a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x366e1e,{showActiveMarker:_0x82cc4d=!0x0}={}){return(_0x221405,_0x19ffea,_0x11e032)=>{const _0x5e23af=_0x366e1e['plugins']['get']('TrackChangesEditing'),_0x172ecb=_0x19ffea['markerRange']['start'],_0x56e1ef=_0x19ffea['markerRange']['end'],_0x27a721=_0x366e1e['model']['schema'];if(!_0x172ecb['isTouching'](_0x56e1ef)||!_0x172ecb['nodeAfter'])return;const _0x5cecb9=_0x172ecb['nodeAfter'];if(_0x27a721['isBlock'](_0x5cecb9)&&!_0x27a721['isLimit'](_0x5cecb9)&&_0x27a721['checkChild'](_0x5cecb9,'$text')){if(!_0x11e032['consumable']['consume'](_0x19ffea['markerRange'],_0x221405['name']))return;const {authorId:_0xf2237e}=_0x5e23af['_splitMarkerName'](_0x19ffea['markerName']),_0x55d8a6=_0x11e032['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0xf2237e}),_0x27b898=_0x11e032['mapper']['toViewPosition'](_0x56e1ef);_0x82cc4d&&_0x5e23af['activeMarkers']['includes'](_0x19ffea['markerName'])&&_0x11e032['writer']['addClass']('ck-suggestion-marker--active',_0x55d8a6),_0x11e032['writer']['insert'](_0x27b898,_0x55d8a6),_0x11e032['mapper']['bindElementToMarker'](_0x55d8a6,_0x19ffea['markerName']);}};}class wt extends _0x1bb8e2{['afterInit'](){const _0x3fa24b=this['editor'];if(!_0x3fa24b['plugins']['has']('RemoveFormatEditing'))return;_0x3fa24b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fe040=this['editor'];_0x2fe040['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32a237=>{if('formatBlock'!=_0x32a237['type']&&'formatInline'!=_0x32a237['type'])return;const {data:_0x1cb566}=_0x32a237;return _0x1cb566&&'removeFormat'==_0x1cb566['commandName']?{'type':'format','content':o(_0x2fe040['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x1bb8e2{['afterInit'](){const _0x56afbc=this['editor'];if(!_0x56afbc['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x12948c=_0x56afbc['plugins']['get']('TrackChangesEditing');_0x12948c['enableCommand']('goToPreviousRestrictedEditingException'),_0x12948c['enableCommand']('goToNextRestrictedEditingException');const _0x25aeb2=_0x56afbc['plugins']['get']('RestrictedEditingModeEditing');_0x25aeb2['enableCommand']('trackChanges'),_0x25aeb2['enableCommand']('acceptSuggestion'),_0x25aeb2['enableCommand']('discardSuggestion'),_0x25aeb2['enableCommand']('acceptAllSuggestions'),_0x25aeb2['enableCommand']('discardAllSuggestions'),_0x25aeb2['enableCommand']('acceptSelectedSuggestions'),_0x25aeb2['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x1bb8e2{static get['requires'](){return[_0x1d0069];}['init'](){const _0x4de0d1=this['editor'],_0x1fd721=_0x4de0d1['plugins']['get']('TrackChangesEditing');_0x1fd721['enableCommand']('shiftEnter'),_0x4de0d1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x4de0d1),{'priority':'high'}),_0x4de0d1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x4de0d1),{'priority':'high'}),_0x4de0d1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x404465,_0x3b356d,_0x1b198c)=>{_0x1b198c['options']['showSuggestionHighlights']&&ge(_0x4de0d1,{'showActiveMarker':!0x1})(_0x404465,_0x3b356d,_0x1b198c);}),_0x1fd721['descriptionFactory']['registerElementLabel']('softBreak',_0x12d6a7=>o(_0x4de0d1['locale'],'ELEMENT_LINE_BREAK',_0x12d6a7));}}function ge(_0x3a8fa5,{showActiveMarker:_0xf3217f=!0x0}={}){return(_0x35bdf3,_0x3fd104,_0x2bc358)=>{const _0x51902b=_0x3a8fa5['plugins']['get']('TrackChangesEditing');if(!_0x2bc358['consumable']['test'](_0x3fd104['markerRange'],_0x35bdf3['name']))return;const _0x1e2cc3=_0x3a8fa5['model'];for(const _0x5f07d9 of _0x3fd104['markerRange']['getItems']()){if(!_0x5f07d9['is']('element','softBreak'))continue;const _0x522c7e='deletion'==_0x3fd104['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x254c2f}=_0x51902b['_splitMarkerName'](_0x3fd104['markerName']),_0x15fa64=_0x2bc358['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x522c7e,'data-author-id':_0x254c2f}),_0x12c6fc=_0x2bc358['mapper']['toViewPosition'](_0x1e2cc3['createPositionBefore'](_0x5f07d9));_0xf3217f&&_0x51902b['activeMarkers']['includes'](_0x3fd104['markerName'])&&_0x2bc358['writer']['addClass']('ck-suggestion-marker--active',_0x15fa64),_0x2bc358['writer']['insert'](_0x12c6fc,_0x15fa64),_0x2bc358['mapper']['bindElementToMarker'](_0x15fa64,_0x3fd104['markerName']);}};}class St extends _0x1bb8e2{['afterInit'](){const _0x58e6db=this['editor'],_0x59f274=_0x58e6db['model'],_0x2aeb76=_0x58e6db['locale'];if(!_0x58e6db['plugins']['has']('StandardEditingModeEditing'))return;const _0x3c2249=_0x58e6db['plugins']['get']('TrackChangesEditing'),_0x5bd166='restrictedEditingException',_0x347df8=_0x58e6db['commands']['get'](_0x5bd166);_0x3c2249['enableCommand'](_0x5bd166,(_0x418410,_0x23b6d1={})=>{const _0x1a4409=_0x59f274['document']['selection'];if(_0x1a4409['isCollapsed'])return void _0x418410(_0x23b6d1);const _0x106cc5=void 0x0!==_0x23b6d1['forceValue']?_0x23b6d1['forceValue']:!_0x347df8['value'];_0x59f274['change'](()=>{const _0x46b726=Array['from'](_0x1a4409['getRanges']());for(const _0x47f246 of _0x46b726){const _0x590f0d=_0x106cc5?[_0x47f246]:io(_0x5bd166,_0x47f246,_0x59f274);for(const _0x164f1e of _0x590f0d)_0x3c2249['markInlineFormat'](_0x164f1e,{'commandName':_0x5bd166,'commandParams':[{'forceValue':_0x106cc5}]});}});}),_0x3c2249['descriptionFactory']['registerDescriptionCallback'](_0x55dc38=>{if('formatBlock'!=_0x55dc38['type']&&'formatInline'!=_0x55dc38['type'])return;const {data:_0xd7b30b}=_0x55dc38;return _0xd7b30b&&_0xd7b30b['commandName']==_0x5bd166?_0xd7b30b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2aeb76,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2aeb76,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x1bb8e2{['afterInit'](){const _0x4af13a=this['editor'];if(!_0x4af13a['plugins']['has']('Style')||!_0x4af13a['plugins']['has']('DataSchema'))return;const _0x208f75=_0x4af13a['plugins']['get']('TrackChangesEditing'),_0x1a35ed=_0x4af13a['locale'],_0x286cb5=_0x4af13a['config']['get']('style')||{},_0x4493d8=_0x4af13a['plugins']['get']('GeneralHtmlSupport'),_0x481d83=_0x4af13a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4af13a['plugins']['get']('DataSchema'),_0x286cb5['definitions']);_0x208f75['enableDefaultAttributesIntegration']('style');const _0x28605b=new Set();for(const _0x2d8056 of _0x481d83['block']){const _0x3bd021=_0x4493d8['getGhsAttributeNameForElement'](_0x2d8056['element']);_0x28605b['add'](_0x3bd021);}const _0x5d5756=new Set();for(const _0x28da1 of _0x481d83['inline']){const _0x2dd83f=_0x4493d8['getGhsAttributeNameForElement'](_0x28da1['element']);_0x5d5756['add'](_0x2dd83f);for(const _0xb8a5a of _0x28da1['ghsAttributes'])_0x5d5756['add'](_0xb8a5a);}for(const _0x4a4d2f of _0x28605b)_0x208f75['registerBlockAttribute'](_0x4a4d2f),_0x208f75['descriptionFactory']['registerAttributeLabel'](_0x4a4d2f,o(_0x1a35ed,'FORMAT_STYLE'));for(const _0x303573 of _0x5d5756)_0x208f75['registerInlineAttribute'](_0x303573),_0x208f75['descriptionFactory']['registerAttributeLabel'](_0x303573,o(_0x1a35ed,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x65164=this['editor'],_0x20e7c0=_0x65164['locale'];_0x65164['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e9763=>{if('formatBlock'!=_0x3e9763['type']&&'formatInline'!=_0x3e9763['type'])return;const {data:_0x4bf0c0}=_0x3e9763;return _0x4bf0c0&&'style'===_0x4bf0c0['commandName']?_0x4bf0c0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x20e7c0,'*Set\x20format:*\x20%0',_0x4bf0c0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x20e7c0,'*Remove\x20format:*\x20%0',_0x4bf0c0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x1bb8e2{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2b8a9f){super(_0x2b8a9f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2ce867=this['editor'],_0x2d000c=_0x2ce867['model']['document']['selection'];if(!_0x2ce867['plugins']['has']('TableEditing'))return;const _0x42fcb1=_0x2ce867['locale'],_0x1c9a7b=_0x2ce867['plugins']['get']('TrackChangesEditing'),_0x50b26c=_0x2ce867['plugins']['get']('TableUtils');_0x1c9a7b['descriptionFactory']['registerElementLabel']('table',_0xb54f60=>o(_0x42fcb1,'ELEMENT_TABLE',_0xb54f60)),this['_setupColumnsRowsFixing'](),_0x1c9a7b['enableCommand']('insertTable'),_0x1c9a7b['enableCommand']('selectTableRow'),_0x1c9a7b['enableCommand']('selectTableColumn');for(const _0x40275e of['insertTableRowAbove','insertTableRowBelow']){const _0x2d2e9d=_0x2ce867['commands']['get'](_0x40275e);_0x1c9a7b['enableCommand'](_0x40275e,_0x24ccf3=>{_0x2ce867['model']['change'](_0x54ff00=>{_0x24ccf3();const _0x54e70a='above'===_0x2d2e9d['order'],_0x5d6c97=_0x50b26c['getSelectionAffectedTableCells'](_0x2d000c),_0x642dbf=_0x50b26c['getRowIndexes'](_0x5d6c97),_0x17c8a8=_0x54e70a?_0x642dbf['first']-0x1:_0x642dbf['last']+0x1,_0x4ecabd=_0x5d6c97[0x0]['findAncestor']('table'),_0x1dd9e8=_0x50b26c['createTableWalker'](_0x4ecabd,{'startRow':_0x17c8a8,'endRow':_0x17c8a8}),_0x29e0ce=Array['from'](_0x1dd9e8)['map'](_0x3ff13b=>_0x54ff00['createRangeOn'](_0x3ff13b['cell']));_0x1c9a7b['markMultiRangeInsertion'](_0x29e0ce,'tableRow');});});}for(const _0x1f2c64 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5a5e0e=_0x2ce867['commands']['get'](_0x1f2c64);_0x1c9a7b['enableCommand'](_0x1f2c64,_0x324ea3=>{_0x2ce867['model']['change'](_0x491554=>{_0x324ea3();const _0xfa3606='left'===_0x5a5e0e['order'],_0x34e22d=_0x50b26c['getSelectionAffectedTableCells'](_0x2d000c),_0x5e12c2=_0x50b26c['getColumnIndexes'](_0x34e22d),_0x37a8db=_0xfa3606?_0x5e12c2['first']-0x1:_0x5e12c2['last']+0x1,_0x3025cb=_0x34e22d[0x0]['findAncestor']('table'),_0x1a8821=_0x50b26c['createTableWalker'](_0x3025cb,{'startRow':0x0,'column':_0x37a8db,'includeAllSlots':!0x1}),_0x512ce0=Array['from'](_0x1a8821)['map'](_0xb7dab6=>_0x491554['createRangeOn'](_0xb7dab6['cell']));_0x1c9a7b['markMultiRangeInsertion'](_0x512ce0,'tableColumn');});});}for(const _0x2699ed of['removeTableRow','removeTableColumn']){const _0x131393=_0x2699ed['substr'](0xb),_0x6f6fe7=_0x131393['toLowerCase'](),_0x251f72=_0x6f6fe7['substr'](0x0,0x3)+'span',_0x10654d='table'+_0x131393,_0x784954='min'+_0x131393,_0x39efaf='max'+_0x131393;_0x1c9a7b['enableCommand'](_0x2699ed,()=>{_0x2ce867['model']['change'](_0x41cade=>{const _0x46fd97=_0x50b26c['getSelectionAffectedTableCells'](_0x2d000c),_0x5f45e9=_0x46fd97[0x0]['findAncestor']('table');let _0x3e8179;if('removeTableRow'==_0x2699ed){const _0x506e4b=_0x50b26c['getRowIndexes'](_0x46fd97);_0x3e8179={'startRow':_0x506e4b['first'],'endRow':_0x506e4b['last'],'includeAllSlots':!0x0};}else{const _0x331837=_0x50b26c['getColumnIndexes'](_0x46fd97);_0x3e8179={'startColumn':_0x331837['first'],'endColumn':_0x331837['last'],'includeAllSlots':!0x0};}const _0xf68abb=_0x50b26c['createTableWalker'](_0x5f45e9,_0x3e8179),_0x560bb4=Array['from'](_0xf68abb)['map'](({cell:_0x4b7bcd})=>_0x4b7bcd),_0x26f303=be(_0x560bb4['filter'](_0x399465=>_0x399465['hasAttribute'](_0x251f72))),_0x36731c=be(_0x560bb4['filter'](_0x1ef5d8=>!_0x1ef5d8['hasAttribute'](_0x251f72)))['map'](_0x328c75=>_0x41cade['createRangeOn'](_0x328c75)),_0x1dfcfc=_0x1c9a7b['markMultiRangeDeletion'](_0x36731c,_0x10654d);if(_0x1dfcfc&&('tableRow'==_0x1dfcfc['subType']||'tableColumn'==_0x1dfcfc['subType'])){const _0x1e42f9=this['_getSuggestionCoords'](_0x1dfcfc);for(const _0x2b56d1 of _0x26f303){const _0x5c85cc=_0x41cade['createRangeOn'](_0x2b56d1),_0x5f1c1d=_0x50b26c['getCellLocation'](_0x2b56d1),_0x1c135f=_0x2b56d1['getAttribute'](_0x251f72)-0x1,_0x4c375a=_0x1e42f9[_0x784954],_0xbd43d3=_0x1e42f9[_0x39efaf];_0x4c375a<=_0x5f1c1d[_0x6f6fe7]&&_0x5f1c1d[_0x6f6fe7]+_0x1c135f<=_0xbd43d3&&_0x1dfcfc['addRange'](_0x5c85cc);}}});});}function _0x3e6f55(_0x31d043){const _0x4ccab2=Array['from'](_0x2d000c['getRanges']())['map'](_0x18a18f=>_0x1b736b['fromRange'](_0x18a18f));_0x2ce867['model']['change'](_0x341bf2=>{const _0x21af8c=_0x341bf2['batch'];_0x31d043=_0x31d043['filter'](_0x54cde2=>'$graveyard'!=_0x54cde2['root']['rootName']),_0x341bf2['setSelection'](_0x31d043),_0x2ce867['commands']['get']('removeTableRow')['refresh'](),_0x2ce867['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2ce867['model']['enqueueChange'](()=>{_0x2ce867['model']['enqueueChange'](_0x21af8c,_0x44560d=>{const _0x3db302=_0x4ccab2['filter'](_0x227ba1=>'$graveyard'!=_0x227ba1['root']['rootName']);_0x3db302['length']>0x0&&_0x44560d['setSelection'](_0x3db302);for(const _0x26a763 of _0x4ccab2)_0x26a763['detach']();});});});}function _0x44aa28(_0x4a1776){_0x2ce867['model']['change'](_0x690d84=>{const _0xdb9146=Array['from'](_0x2d000c['getRanges']())['map'](_0x36297c=>_0x1b736b['fromRange'](_0x36297c)),_0x5ac7c9=[];for(const _0x4e3713 of _0x4a1776)for(const _0x5bb144 of _0x4e3713['getItems']({'shallow':!0x0}))_0x5ac7c9['push'](_0x5bb144);for(const _0x505b9a of _0x5ac7c9)'$graveyard'!=_0x505b9a['root']['rootName']&&(_0x690d84['setSelection'](_0x690d84['createPositionAt'](_0x505b9a,0x0)),_0x2ce867['commands']['get']('removeTableColumn')['refresh'](),_0x2ce867['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1bfb45=_0xdb9146['filter'](_0x1488d8=>'$graveyard'!=_0x1488d8['root']['rootName']);_0x1bfb45['length']>0x0&&_0x690d84['setSelection'](_0x1bfb45);for(const _0x2f30b5 of _0xdb9146)_0x2f30b5['detach']();});}function _0x2f39d4(_0x552da8,_0x7d2c52){return _0x7d2c52['every'](_0x529bc0=>_0x552da8['some'](_0x4bf94c=>_0x4bf94c['end']['isEqual'](_0x529bc0['start'])||_0x529bc0['end']['isEqual'](_0x4bf94c['start'])));}function _0x1c9a60(_0x4f327b,_0x488dfb){return!_0x4f327b['some'](_0x512e04=>_0x488dfb['some'](_0x1aac37=>_0x512e04['isIntersecting'](_0x1aac37)))&&_0x4f327b['some'](_0x272611=>_0x488dfb['some'](_0x31f45e=>_0x272611['end']['isTouching'](_0x31f45e['start'])));}_0x2ce867['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc42d2b,_0x41d0eb,_0x54608d)=>{if(!_0x54608d['options']['showSuggestionHighlights'])return;const _0x238f47=_0x41d0eb['item'];if(!_0x238f47)return;const _0x214d2f=_0x54608d['mapper']['toViewElement'](_0x238f47);function _0x5585a5(_0x1620d3){return Array['isArray'](_0x1620d3)?_0x1620d3:[_0x1620d3];}_0x214d2f&&'tableCell'===_0x238f47['name']&&_0x125643(_0x214d2f,_0x54608d['writer'],(_0x429c2e,_0x46d7b4,_0x158a6c)=>_0x158a6c['addClass'](_0x5585a5(_0x46d7b4['classes']),_0x429c2e),(_0x4990a6,_0x1bc1ff,_0x439d62)=>_0x439d62['removeClass'](_0x5585a5(_0x1bc1ff['classes']),_0x4990a6));},{'priority':'highest'}),_0x1c9a7b['descriptionFactory']['registerDescriptionCallback'](_0x44b938=>{if('insertion'!=_0x44b938['type']&&'deletion'!=_0x44b938['type'])return;const _0x49855d=_0x44b938['getContainedElement']();if(null!=_0x49855d&&_0x49855d['is']('element','table')){if('insertion'==_0x44b938['type']){const _0x3ab634=_0x44b938['getItems']()['filter'](_0x5e06fc=>_0x5e06fc['is']('$textProxy'))['map'](_0x5e915e=>_0x5e915e['data']);if(_0x3ab634['length'])return{'type':'insertion','content':o(_0x42fcb1,'*Insert:*\x20%0',o(_0x42fcb1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3ab634['join']('\x20')+'\x22'))};}if('deletion'==_0x44b938['type']){const _0x59f86c=_0x44b938['getItems']()['filter'](_0x2f7a05=>_0x2f7a05['is']('$textProxy'))['map'](_0x74cf62=>_0x74cf62['data']);if(_0x59f86c['length'])return{'type':'deletion','content':o(_0x42fcb1,'*Remove:*\x20%0',o(_0x42fcb1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x59f86c['join']('\x20')+'\x22'))};}}}),_0x1c9a7b['descriptionFactory']['registerDescriptionCallback'](_0x54edb3=>{if('tableRow'==_0x54edb3['subType']){const _0x5ca2e0=_0x54edb3['getItems']()['filter'](_0x3fdd29=>_0x3fdd29['is']('$textProxy'))['map'](_0x4ea9d9=>_0x4ea9d9['data']),_0x3eaf1a=this['_getSuggestionCoords'](_0x54edb3),_0x2e0e48=_0x3eaf1a['maxRow']-_0x3eaf1a['minRow']+0x1;if('insertion'==_0x54edb3['type'])return _0x5ca2e0['length']?{'type':'insertion','content':o(_0x42fcb1,'*Insert:*\x20%0',o(_0x42fcb1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2e0e48,'\x22'+_0x5ca2e0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x42fcb1,'*Insert:*\x20%0',o(_0x42fcb1,'ELEMENT_TABLE_ROW',_0x2e0e48))};if('deletion'==_0x54edb3['type'])return _0x5ca2e0['length']?{'type':'deletion','content':o(_0x42fcb1,'*Remove:*\x20%0',o(_0x42fcb1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2e0e48,'\x22'+_0x5ca2e0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x42fcb1,'*Remove:*\x20%0',o(_0x42fcb1,'ELEMENT_TABLE_ROW',_0x2e0e48))};}if('tableColumn'==_0x54edb3['subType']){const _0x46651a=_0x54edb3['getItems']()['filter'](_0x37fe93=>_0x37fe93['is']('$textProxy'))['map'](_0x43c595=>_0x43c595['data']),_0x126428=this['_getSuggestionCoords'](_0x54edb3),_0x585881=_0x126428['maxColumn']-_0x126428['minColumn']+0x1;if('insertion'==_0x54edb3['type'])return _0x46651a['length']?{'type':'insertion','content':o(_0x42fcb1,'*Insert:*\x20%0',o(_0x42fcb1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x585881,'\x22'+_0x46651a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x42fcb1,'*Insert:*\x20%0',o(_0x42fcb1,'ELEMENT_TABLE_COLUMN',_0x585881))};if('deletion'==_0x54edb3['type'])return _0x46651a['length']?{'type':'deletion','content':o(_0x42fcb1,'*Remove:*\x20%0',o(_0x42fcb1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x585881,'\x22'+_0x46651a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x42fcb1,'*Remove:*\x20%0',o(_0x42fcb1,'ELEMENT_TABLE_COLUMN',_0x585881))};}}),_0x1c9a7b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3e6f55),_0x1c9a7b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3e6f55),_0x1c9a7b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x44aa28),_0x1c9a7b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x44aa28),_0x1c9a7b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2f39d4),_0x1c9a7b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2f39d4),_0x1c9a7b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1c9a60),_0x1c9a7b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1c9a60);}['_acceptFormatSuggestionCallbackFactory'](){const _0x108e97=this['editor'],_0x1e33c7=_0x108e97['model']['document']['selection'];return(_0x5f9e4e,_0x12d89d)=>{_0x108e97['model']['change'](_0xbabfef=>{const {commandName:_0x4b7136,commandParams:_0x4d968b}=_0x12d89d;let _0x5df5bf=_0x5f9e4e[0x0]['end']['nodeBefore'];_0x4d968b&&_0x4d968b[0x0]&&!0x1===_0x4d968b[0x0]['forceValue']&&(_0x5df5bf=_0x5f9e4e[0x0]['start']['nodeAfter']);const _0x1a66e7=_0xbabfef['createRangeIn'](_0x5df5bf);if('$graveyard'==_0x1a66e7['root']['rootName'])return;const _0x10efb8=Array['from'](_0x1e33c7['getRanges']())['map'](_0x3ba9c6=>_0x1b736b['fromRange'](_0x3ba9c6));_0xbabfef['setSelection'](_0x1a66e7),_0x108e97['commands']['get'](_0x4b7136)['refresh'](),_0x4d968b['push']({'forceDefaultExecution':!0x0}),_0x108e97['execute'](_0x4b7136,..._0x4d968b);const _0x567ab9=_0x10efb8['filter'](_0x383d96=>'$graveyard'!=_0x383d96['root']['rootName']);_0x567ab9['length']>0x0&&_0xbabfef['setSelection'](_0x567ab9);for(const _0x176646 of _0x10efb8)_0x176646['detach']();});};}['_getCoordsForCells'](_0x52afd2){const _0x1d096=this['editor']['plugins']['get']('TableUtils');let _0x8ed064=Number['MAX_SAFE_INTEGER'],_0x3797a3=Number['MIN_SAFE_INTEGER'],_0x42f867=Number['MAX_SAFE_INTEGER'],_0x2b160d=Number['MIN_SAFE_INTEGER'];for(const _0x51e2a8 of _0x52afd2){if('$graveyard'==_0x51e2a8['root']['rootName'])continue;const {row:_0x5c0453,column:_0x1816ab}=_0x1d096['getCellLocation'](_0x51e2a8),_0x398a3f=_0x51e2a8['hasAttribute']('rowspan')?_0x51e2a8['getAttribute']('rowspan')-0x1:0x0,_0x2a70c9=_0x51e2a8['hasAttribute']('colspan')?_0x51e2a8['getAttribute']('colspan')-0x1:0x0;_0x8ed064=_0x5c0453<_0x8ed064?_0x5c0453:_0x8ed064,_0x3797a3=_0x5c0453+_0x398a3f>_0x3797a3?_0x5c0453+_0x398a3f:_0x3797a3,_0x42f867=_0x1816ab<_0x42f867?_0x1816ab:_0x42f867,_0x2b160d=_0x1816ab+_0x2a70c9>_0x2b160d?_0x1816ab+_0x2a70c9:_0x2b160d;}return{'minRow':_0x8ed064,'maxRow':_0x3797a3,'minColumn':_0x42f867,'maxColumn':_0x2b160d};}['_setupColumnsRowsFixing'](){const _0x47ebef=this['editor'],_0x3700b8=_0x47ebef['plugins']['get']('TrackChangesEditing'),_0x480f14=_0x47ebef['plugins']['get']('TableUtils');_0x47ebef['model']['document']['on']('change:data',()=>{const _0x2f49c7=Array['from'](_0x47ebef['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51029a,data:_0x2e6059}of _0x2f49c7){const {group:_0x390c1e,id:_0x28c6a5,subType:_0x199339}=_0x3700b8['_splitMarkerName'](_0x51029a);if('suggestion'!=_0x390c1e)continue;if(null!=_0x2e6059['oldRange'])continue;const _0x1e7cee=_0x3700b8['getSuggestion'](_0x28c6a5);this['_tablePostFixingSubtypes']['includes'](_0x199339)&&this['_tableSuggestions']['add'](_0x1e7cee);}},{'priority':'low'});const _0x65a05c=(_0x41a2c9,_0x38e9ed)=>{let _0x227120=!0x1;const _0x3c9508=_0x38e9ed['createRangeOn'](_0x41a2c9),_0x2070d2=_0x41a2c9['findAncestor']('table'),_0x74cf01=_0x480f14['getCellLocation'](_0x41a2c9);for(const _0x2d5a85 of this['_tableSuggestions']){const _0x4767f0=_0x2d5a85['subType'],_0x55d171=_0x4767f0['startsWith']('tablePaste'),_0x181245=_0x4767f0['substr'](_0x55d171?0xa:0x5),_0x2f606c=_0x181245['toLowerCase'](),_0xdc3c6a=_0x2f606c['substr'](0x0,0x3)+'span',_0x516f88='min'+_0x181245,_0x69101b='max'+_0x181245;if(!_0x2d5a85['isInContent'])continue;if(_0x2070d2!=_0x2d5a85['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2d5a85['isIntersectingWithRange'](_0x3c9508))continue;const _0xbe858d=_0x41a2c9['hasAttribute'](_0xdc3c6a)?_0x41a2c9['getAttribute'](_0xdc3c6a)-0x1:0x0,_0x3810bf=this['_getSuggestionCoords'](_0x2d5a85),_0x569709=_0x3810bf[_0x516f88],_0x50fef1=_0x3810bf[_0x69101b];_0x569709<=_0x74cf01[_0x2f606c]&&_0x74cf01[_0x2f606c]+_0xbe858d<=_0x50fef1&&(_0x2d5a85['addRange'](_0x3c9508),_0x227120=!0x0);}return _0x227120;};_0x47ebef['model']['document']['registerPostFixer'](_0x44a1b8=>{let _0x5248b9=!0x1;for(const _0x112d8f of _0x47ebef['model']['document']['differ']['getChanges']())if('insert'==_0x112d8f['type']){if('tableRow'==_0x112d8f['name']){for(const _0x220c04 of _0x112d8f['position']['nodeAfter']['getChildren']())_0x5248b9=_0x5248b9||_0x65a05c(_0x220c04,_0x44a1b8);}else'tableCell'==_0x112d8f['name']&&(_0x5248b9=_0x5248b9||_0x65a05c(_0x112d8f['position']['nodeAfter'],_0x44a1b8));}return _0x5248b9;});}['_getSuggestionCoords'](_0x36be10){return this['_getCoordsForCells'](_0x36be10['getRanges']()['map'](_0x2c5da3=>_0x2c5da3['start']['nodeAfter']));}}function be(_0x2fdc7f){return Array['from'](new Set(_0x2fdc7f)['values']());}class vt extends _0x1bb8e2{static get['requires'](){return[It];}['afterInit'](){const _0x39be54=this['editor'],_0xb6d1fe=_0x39be54['model']['document']['selection'],_0x47c937=_0x39be54['locale'];if(!_0x39be54['plugins']['has']('TableEditing'))return;const _0x50ba7b=_0x39be54['plugins']['get']('TrackChangesEditing'),_0x33d1e2=_0x39be54['plugins']['get']('TableUtils'),_0x12882a=_0x39be54['plugins']['get'](It);_0x12882a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x50ba7b['enableCommand']('mergeTableCells',()=>{const _0x57841e=_0x33d1e2['getSelectionAffectedTableCells'](_0x39be54['model']['document']['selection']);_0x39be54['model']['change'](()=>{_0x50ba7b['markMultiRangeBlockFormat'](_0x57841e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x39be54['commands']['get']('mergeTableCells')['on']('execute',(_0x4415db,_0x33743a)=>{_0x39be54['commands']['get']('trackChanges')['value']&&(_0x33743a['length']>0x0&&_0x33743a[_0x33743a['length']-0x1]&&_0x33743a[_0x33743a['length']-0x1]['forceDefaultExecution']||_0x50ba7b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4415db['stop']());},{'priority':'highest'});for(const _0x1b159b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x277583=_0x39be54['commands']['get'](_0x1b159b);_0x50ba7b['enableCommand'](_0x1b159b,()=>{const _0x8d3e83=_0x39be54['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2ef6c2=>_0x2ef6c2['is']('element','tableCell')),_0x528a58=_0x277583['value'];_0x39be54['model']['change'](()=>{_0x50ba7b['markMultiRangeBlockFormat']([_0x8d3e83,_0x528a58],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5e0d7b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x503274=_0x39be54['commands']['get'](_0x5e0d7b);_0x50ba7b['enableCommand'](_0x5e0d7b,()=>{const _0x3431d2=_0x33d1e2['getSelectionAffectedTableCells'](_0x39be54['model']['document']['selection'])[0x0],_0xb06b0f=_0x3431d2['findAncestor']('table'),{column:_0xa7e1a1,row:_0x2c8367}=_0x33d1e2['getCellLocation'](_0x3431d2);let _0x3b5579=[];if('horizontally'==_0x503274['direction']){const _0x6e0c5d=_0x33d1e2['createTableWalker'](_0xb06b0f,{'startRow':_0x2c8367,'endRow':_0x2c8367,'includeAllSlots':!0x0});_0x3b5579=Array['from'](_0x6e0c5d)['map'](_0x7a7218=>_0x7a7218['cell']);}else{const _0x46a384=_0x33d1e2['createTableWalker'](_0xb06b0f,{'column':_0xa7e1a1,'includeAllSlots':!0x0});_0x3b5579=Array['from'](_0x46a384)['map'](_0xbe9cdb=>_0xbe9cdb['cell']);}_0x39be54['model']['change'](_0xb12432=>{_0x50ba7b['markBlockFormat'](_0xb12432['createRangeOn'](_0x3431d2),{'commandName':_0x5e0d7b,'commandParams':[]},_0x3b5579,_0x5e0d7b);});});}_0x50ba7b['descriptionFactory']['registerDescriptionCallback'](_0x3c719a=>{if('formatBlock'!=_0x3c719a['type']&&'formatInline'!=_0x3c719a['type'])return;const {data:_0x4fdad2}=_0x3c719a;return _0x4fdad2&&'mergeTableCells'==_0x4fdad2['commandName']?{'type':'format','content':o(_0x47c937,'*Merge\x20cells*')}:void 0x0;}),_0x50ba7b['descriptionFactory']['registerDescriptionCallback'](_0x172aa4=>{if('formatBlock'!=_0x172aa4['type']&&'formatInline'!=_0x172aa4['type'])return;const {data:_0x4fb5b0}=_0x172aa4;return _0x4fb5b0?'splitTableCellVertically'==_0x4fb5b0['commandName']?{'type':'format','content':o(_0x47c937,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4fb5b0['commandName']?{'type':'format','content':o(_0x47c937,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1dfe4a=_0x12882a['_acceptFormatSuggestionCallbackFactory']();for(const _0x421bbe of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x50ba7b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x421bbe,'accept',_0x1dfe4a);for(const _0x1c5c69 of['splitTableCellVertically','splitTableCellHorizontally'])_0x50ba7b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1c5c69,'accept',_0x1dfe4a);_0x50ba7b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x55e89b=>{_0x39be54['model']['change'](_0xe5221f=>{const _0x38b55a=Array['from'](_0xb6d1fe['getRanges']())['map'](_0x3f3d89=>_0x1b736b['fromRange'](_0x3f3d89));_0xe5221f['setSelection'](_0x55e89b),_0x39be54['commands']['get']('mergeTableCells')['refresh'](),_0x39be54['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x122bdb=_0x38b55a['filter'](_0x580f11=>'$graveyard'!=_0x580f11['root']['rootName']);_0x122bdb['length']>0x0&&_0xe5221f['setSelection'](_0x122bdb);for(const _0x5f2bb4 of _0x38b55a)_0x5f2bb4['detach']();});});for(const _0x47b294 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x575f1b=_0x39be54['commands']['get'](_0x47b294);_0x575f1b['on']('set:isEnabled',(_0xd05420,_0x4014b1,_0xff56f2)=>{if(_0xff56f2){const _0x44debf=_0x39be54['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3bbcd1=>_0x3bbcd1['is']('element','tableCell'));this['_areMergableCells'](_0x575f1b['value'],_0x44debf)||(_0xd05420['return']=!0x1,_0xd05420['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x544c70=this['editor']['commands']['get']('mergeTableCells'),_0x5c1186=this['editor']['plugins']['get']('TableUtils');if(!_0x544c70['isEnabled'])return!0x1;const _0x3ef3eb=_0x5c1186['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2cb3f6 of _0x3ef3eb)for(const _0x45ef2c of _0x3ef3eb)if(_0x2cb3f6!=_0x45ef2c&&!this['_areMergableCells'](_0x2cb3f6,_0x45ef2c))return!0x1;return!0x0;}['_areMergableCells'](_0x15fe0a,_0x4469b6){const _0x27ee0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13279c=this['editor']['model']['createRangeOn'](_0x15fe0a),_0x5d474a=this['editor']['model']['createRangeOn'](_0x4469b6),_0x3efe4e=new Set(),_0x465d55=new Set();for(const _0x171875 of _0x27ee0b['getSuggestions']())if(('insertion'==_0x171875['type']||'deletion'==_0x171875['type']||'mergeTableCells'==_0x171875['subType'])&&_0x171875['isInContent']){for(const _0x137b7b of _0x171875['getRanges']())_0x137b7b['containsRange'](_0x13279c,!0x0)&&_0x3efe4e['add'](_0x171875['type']+':'+_0x171875['author']['id']),_0x137b7b['containsRange'](_0x5d474a,!0x0)&&_0x465d55['add'](_0x171875['type']+':'+_0x171875['author']['id']);}if(_0x3efe4e['size']!=_0x465d55['size'])return!0x1;for(const _0x15dbb1 of _0x3efe4e)if(!_0x465d55['has'](_0x15dbb1))return!0x1;return!0x0;}}class Ct extends _0x1bb8e2{static get['requires'](){return[It];}['afterInit'](){const _0x21e4ec=this['editor'];if(!_0x21e4ec['plugins']['has']('TableEditing'))return;const _0x552cc1=_0x21e4ec['locale'],_0x4a0761=_0x21e4ec['plugins']['get']('TrackChangesEditing');_0x4a0761['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4a0761['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4a0761['registerBlockAttribute']('headingRows'),_0x4a0761['registerBlockAttribute']('headingColumns'),_0x4a0761['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x552cc1,'FORMAT_HEADER_ROW')),_0x4a0761['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x552cc1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5cf9ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d4361=this['editor']['plugins']['get']('TableUtils'),_0x5eea2d=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x241f9f({showActiveMarker:_0x1e820e=!0x0,setDataAttribute:_0x3d6804=!0x0}={}){return(_0x2659a4,_0x2cc70e,_0x39ea31)=>{const {type:_0x405cb6,id:_0x1adc5c}=_0x5cf9ce['_splitMarkerName'](_0x2cc70e['markerName']),_0x111f12=_0x5cf9ce['getSuggestion'](_0x1adc5c),_0x4fe5ba=_0x111f12['data'];if('formatBlock'!=_0x111f12['type']||!_0x4fe5ba||'setTableColumnHeader'!=_0x4fe5ba['commandName'])return;if(_0x2cc70e['item'])return void _0x2659a4['stop']();if(!_0x39ea31['consumable']['consume'](_0x2cc70e['markerRange'],_0x2659a4['name']))return;const _0x1ebfa0=_0x2cc70e['markerRange']['start']['nodeAfter'],_0xd5de31=_0x2cc70e['markerRange']['end']['nodeBefore'],_0x2fb331=_0x1ebfa0['parent']['parent'],{column:_0x1b8a3a}=_0x1d4361['getCellLocation'](_0x1ebfa0),{column:_0x4d05ea}=_0x1d4361['getCellLocation'](_0xd5de31);for(let _0x54620c=_0x1b8a3a;_0x54620c<=_0x4d05ea;_0x54620c++){const _0x1353b8=_0x1d4361['createTableWalker'](_0x2fb331,{'column':_0x54620c,'includeAllSlots':!0x1});for(const _0x38e8fb of _0x1353b8){const _0x26f25e=_0x38e8fb['cell'],_0x261b3c=_0x39ea31['mapper']['toViewElement'](_0x26f25e);_0x39ea31['writer']['addClass']('ck-suggestion-marker-'+_0x405cb6,_0x261b3c),_0x3d6804&&_0x39ea31['writer']['setAttribute']('data-suggestion',_0x1adc5c,_0x261b3c),_0x39ea31['mapper']['bindElementToMarker'](_0x261b3c,_0x2cc70e['markerName']),_0x1e820e&&(_0x5cf9ce['activeMarkers']['includes'](_0x2cc70e['markerName'])?_0x39ea31['writer']['addClass']('ck-suggestion-marker--active',_0x261b3c):_0x39ea31['writer']['removeClass']('ck-suggestion-marker--active',_0x261b3c));}}};}_0x5cf9ce['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5eea2d),_0x5cf9ce['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5eea2d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x241f9f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x33d708,_0x1013ab,_0x59d80c)=>{_0x59d80c['options']['showSuggestionHighlights']&&_0x241f9f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x33d708,_0x1013ab,_0x59d80c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4934b7,_0x4448da,_0x3959b5)=>{const {type:_0x1f4857,id:_0x24d13c}=_0x5cf9ce['_splitMarkerName'](_0x4448da['markerName']),_0x317b66=_0x5cf9ce['getSuggestion'](_0x24d13c),_0x270b45=_0x317b66['data'];if('formatBlock'!=_0x317b66['type']||!_0x270b45||'setTableColumnHeader'!=_0x270b45['commandName'])return;const _0x42e582=_0x3959b5['mapper']['markerNameToElements'](_0x4448da['markerName']);if(_0x42e582){for(const _0x140bd9 of _0x42e582)_0x3959b5['writer']['removeClass']('ck-suggestion-marker-'+_0x1f4857,_0x140bd9),_0x3959b5['writer']['removeClass']('ck-suggestion-marker--active',_0x140bd9),_0x3959b5['writer']['removeAttribute']('data-suggestion',_0x140bd9),_0x3959b5['mapper']['unbindElementFromMarkerName'](_0x140bd9,_0x4448da['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ec119=this['editor'],_0x55133e=_0x1ec119['locale'];function _0x16a730(_0x19a74e){return{'type':'format','content':o(_0x55133e,'*Format:*\x20%0',_0x19a74e)};}_0x1ec119['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51c9a5=>{if('formatBlock'!=_0x51c9a5['type'])return;const {data:_0x50a554}=_0x51c9a5;if(_0x50a554){if('setTableRowHeader'==_0x50a554['commandName']){const _0x8dc0e6=_0x50a554['commandParams'][0x0]['forceValue'];return _0x16a730(o(_0x55133e,_0x8dc0e6?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x50a554['commandName']){const _0x5ebb26=_0x50a554['commandParams'][0x0]['forceValue'];return _0x16a730(o(_0x55133e,_0x5ebb26?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x3bfc6e=>[_0x3bfc6e,null]));class _t extends _0x1bb8e2{static get['requires'](){return[It];}['afterInit'](){const _0x51abb8=this['editor'];if(!_0x51abb8['plugins']['has']('TableClipboard'))return;const _0x49dfae=_0x51abb8['plugins']['get']('TrackChangesEditing'),_0xdaffbf=_0x51abb8['plugins']['get']('TableUtils'),_0x3122b1=_0x51abb8['plugins']['get'](It),_0x74fc2=_0x51abb8['plugins']['get']('TableClipboard');_0x3122b1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x51abb8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x51abb8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x52fd49=null;_0x51abb8['model']['on']('insertContent',(_0x35b004,_0x1f3be0)=>{const [_0x12517a,_0x13e0b7]=_0x1f3be0,_0x51f9ae=_0x1f3be0[_0x1f3be0['length']-0x1];_0x51f9ae&&_0x51f9ae['forceDefaultExecution']||_0x49dfae['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2cc79e,_0xbaaebd,_0x3fd63a,_0x5b53fe,_0x45ae0a){if(_0xbaaebd&&!_0xbaaebd['is']('documentSelection'))return!0x1;const _0x457413=_0x45ae0a['getTableIfOnlyTableInContent'](_0x2cc79e,_0x3fd63a);if(!_0x457413||!Re(_0x457413,void 0x0,_0x5b53fe))return!0x1;const _0x1818d1=_0x5b53fe['getSelectionAffectedTableCells'](_0x3fd63a['document']['selection']);if(!_0x1818d1['length'])return!0x1;const _0x42b6ae=_0x1818d1[0x0]['findAncestor']('table'),_0x367bb3=_0x5b53fe['getRowIndexes'](_0x1818d1),_0x4899c6=_0x5b53fe['getColumnIndexes'](_0x1818d1),_0x1be8e9={'startRow':_0x367bb3['first'],'endRow':_0x367bb3['last'],'startColumn':_0x4899c6['first'],'endColumn':_0x4899c6['last']};return 0x1==_0x1818d1['length']&&(_0x1be8e9['endRow']+=_0x5b53fe['getRows'](_0x457413)-0x1,_0x1be8e9['endColumn']+=_0x5b53fe['getColumns'](_0x457413)-0x1),Re(_0x42b6ae,_0x1be8e9,_0x5b53fe);}(_0x12517a,_0x13e0b7,_0x51abb8['model'],_0xdaffbf,_0x74fc2)&&(_0x35b004['stop'](),_0x52fd49={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x51abb8['model']['change'](()=>{_0x51abb8['model']['insertContent'](_0x1f3be0[0x0],_0x1f3be0[0x1],_0x1f3be0[0x2],{'forceDefaultExecution':!0x0});const _0x4f3fbc=_0x59fd7a(),{rowInsertionRanges:_0x4ca2d9,columnInsertionRanges:_0x252eb3,insertionRanges:_0x320092,deletionRanges:_0x3b8b2a,cells:_0x33ae08}=_0x52fd49;_0x4ca2d9['length']&&_0x49dfae['markMultiRangeInsertion'](_0x4ca2d9,'tablePasteRow',{'tablePasteChainId':_0x4f3fbc}),_0x252eb3['length']&&_0x49dfae['markMultiRangeInsertion'](_0x252eb3,'tablePasteColumn',{'tablePasteChainId':_0x4f3fbc}),_0x320092['length']&&(_0x49dfae['markMultiRangeInsertion'](_0x320092,'tablePaste',{'tablePasteChainId':_0x4f3fbc,'skipNestingCheck':!0x0}),_0x320092['forEach'](_0x30828d=>_0x30828d['detach']?.())),_0x3b8b2a['length']&&(_0x49dfae['markMultiRangeDeletion'](_0x3b8b2a,'tablePaste',{'tablePasteChainId':_0x4f3fbc,'skipNestingCheck':!0x0}),_0x3b8b2a['forEach'](_0x279094=>_0x279094['detach']?.()));const _0x5d76f2=_0x49dfae['markMultiRangeBlockFormat'](_0x33ae08['map'](({element:_0x10f88b})=>_0x10f88b),{'formatGroupId':_0x59fd7a()},[],'tablePasteCell',{'tablePasteChainId':_0x4f3fbc});if(_0x5d76f2){const _0x133870=_0x5d76f2['getMarkers'](),_0x1a2c7a=[];for(const {element:_0x1d577f,attributes:_0xe6844d}of _0x33ae08){if(!_0xe6844d)continue;const _0x3120a8=_0x51abb8['model']['createRangeOn'](_0x1d577f),_0x2ed1f0=_0x133870['find'](_0x276784=>_0x276784['getRange']()['isEqual'](_0x3120a8));_0x2ed1f0&&_0x1a2c7a['push']([_0x2ed1f0['name'],_0xe6844d]);}_0x1a2c7a['length']&&_0x5d76f2['setAttribute']('markerAttributes',Object['fromEntries'](_0x1a2c7a));}_0x52fd49=null;}));},{'priority':_0x4e633f['high']+0xa}),_0x51abb8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x44d793,_0x4aec3c)=>{const [_0x35e18b,_0x2c75e3,,_0x29745c]=_0x4aec3c;if(!_0x52fd49)return;_0x44d793['stop']();const _0x44e187=_0x35e18b['cell'],_0x1aa095=_0x2c75e3,_0xc7da38=ke(_0x44e187),_0x1644e0=ke(_0x1aa095);_0x44d793['return']=_0x44e187;let _0x682018=null,_0x15c264=null;if(_0x1644e0||_0xc7da38){if(_0xc7da38&&!_0x1644e0){_0x29745c['remove'](_0x44e187['getChild'](0x0));for(const _0x183eb5 of Array['from'](_0x1aa095['getChildren']()))_0x29745c['insert'](_0x183eb5,_0x44e187,'end');const _0xc1eb75=_0x52fd49['rowInsertionIndexes']['includes'](_0x35e18b['row']),_0x4912ed=_0x52fd49['columnInsertionIndexes']['includes'](_0x35e18b['column']);_0xc1eb75||_0x4912ed||(_0x682018=_0x1b736b['fromRange'](_0x29745c['createRangeIn'](_0x44e187)));}else _0x1644e0&&!_0xc7da38&&(_0x15c264=_0x29745c['createRangeIn'](_0x44e187));}else{const _0xaa50cd=_0x29745c['createElement']('tableCellSuggestion'),_0x1f5f12=_0x29745c['createElement']('tableCellSuggestion');_0x29745c['wrap'](_0x29745c['createRangeIn'](_0x44e187),_0x1f5f12),_0x29745c['insert'](_0xaa50cd,_0x44e187,0x0);for(const _0x41f91a of Array['from'](_0x1aa095['getChildren']()))_0x29745c['insert'](_0x41f91a,_0xaa50cd,'end');_0x682018=_0x1b736b['fromRange'](_0x29745c['createRangeOn'](_0xaa50cd)),_0x15c264=_0x1b736b['fromRange'](_0x29745c['createRangeOn'](_0x1f5f12));}const _0x4aa65e=Array['from'](_0x1aa095['getAttributes']())['filter'](([_0x106a72])=>Pe['includes'](_0x106a72));_0x52fd49['cells']['push']({'element':_0x44e187,'attributes':_0x4aa65e['length']?Object['fromEntries'](_0x4aa65e):null}),_0x682018&&_0x52fd49['insertionRanges']['push'](_0x682018),_0x15c264&&_0x52fd49['deletionRanges']['push'](_0x15c264);},{'priority':'high'}),_0xdaffbf['on']('insertColumns',(_0x58af75,_0x313d6f)=>{const [_0x1d50a2,_0x2b8cc1={}]=_0x313d6f;if(!_0x52fd49)return;const _0x102d98=_0x2b8cc1['at']||0x0,_0x4c0dfc=_0x2b8cc1['columns']||0x1;_0x52fd49['columnInsertionIndexes']=new Array(_0x4c0dfc)['fill'](_0x102d98)['map']((_0x5b53c5,_0xd41acc)=>_0x5b53c5+_0xd41acc);for(const {cell:_0x44a1c2}of _0xdaffbf['createTableWalker'](_0x1d50a2,{'startColumn':_0x102d98,'endColumn':_0x102d98+_0x4c0dfc-0x1}))_0x52fd49['columnInsertionRanges']['push'](_0x51abb8['model']['createRangeOn'](_0x44a1c2));},{'priority':'low'}),_0xdaffbf['on']('insertRows',(_0x7cdccd,_0x5dc684)=>{const [_0x24953f,_0x336f95={}]=_0x5dc684;if(!_0x52fd49)return;const _0x5eb2e0=_0x336f95['at']||0x0,_0x57f83d=_0x336f95['rows']||0x1;_0x52fd49['rowInsertionIndexes']=new Array(_0x57f83d)['fill'](_0x5eb2e0)['map']((_0x10ec1a,_0x320212)=>_0x10ec1a+_0x320212);for(const {cell:_0x2e30df}of _0xdaffbf['createTableWalker'](_0x24953f,{'startRow':_0x5eb2e0,'endRow':_0x5eb2e0+_0x57f83d-0x1}))_0x52fd49['rowInsertionRanges']['push'](_0x51abb8['model']['createRangeOn'](_0x2e30df));},{'priority':'low'}),_0x49dfae['descriptionFactory']['registerDescriptionCallback'](_0x369492=>{if(_0x369492['subType']&&_0x369492['subType']['startsWith']('tablePaste'))return _0x369492['previous']?{}:{'type':'insertion','content':o(_0x51abb8['locale'],'*Replace\x20table\x20cells*')};});const _0x3d5ce5=()=>!0x1;for(const _0x5b8543 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x49dfae['_suggestionFactory']['registerCustomCallback']('insertion',_0x5b8543,'join',_0x3d5ce5),_0x49dfae['_suggestionFactory']['registerCustomCallback']('deletion',_0x5b8543,'join',_0x3d5ce5),_0x49dfae['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b8543,'join',_0x3d5ce5);_0x49dfae['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3d5ce5),_0x49dfae['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5477af,_0x118844,_0x2333f6)=>{const _0x1439ff=_0x5477af['map'](_0x5159c4=>_0x5159c4['getContainedElement']())['filter'](_0xa42030=>_0xa42030),_0x44a76f=new Map(_0x1439ff['map'](_0x354018=>[_0x354018,null]));if(_0x52fd49){for(const {element:_0x8839d0,attributes:_0xd619bf}of _0x52fd49['cells'])_0xd619bf&&_0x44a76f['set'](_0x8839d0,_0xd619bf);}else{if(_0x2333f6&&_0x2333f6['markerAttributes'])for(const [_0x1b5802,_0x29ef8e]of Object['entries'](_0x2333f6['markerAttributes'])){const _0x363692=_0x51abb8['model']['markers']['get'](_0x1b5802),_0x35634c=_0x363692?_0x363692['getRange']()['getContainedElement']():null;_0x35634c&&_0x44a76f['set'](_0x35634c,_0x29ef8e);}}_0x51abb8['model']['change'](_0x421422=>{for(const [_0x8a3785,_0x1db578]of _0x44a76f)_0x421422['setAttributes']({...we,..._0x1db578},_0x8a3785);});});const _0x1349f9=(_0x313fdd,_0x17a5ae)=>{_0x49dfae['_suggestionFactory']['registerCustomCallback'](_0x313fdd,'tablePaste',_0x17a5ae,(_0x2f9c6d,_0x1c7d79,_0x43fafe)=>{_0x51abb8['model']['change'](_0x25dcfc=>{const _0x269430=[];for(const _0x21fa57 of _0x2f9c6d){const _0x356a82=_0x21fa57['start']['nodeAfter'];_0x356a82['is']('element','tableCellSuggestion')&&_0x269430['push'](_0x356a82);}_0x49dfae['_suggestionFactory']['getSuggestionCallback'](_0x313fdd,null,_0x17a5ae)(_0x2f9c6d,_0x1c7d79,_0x43fafe);for(const _0x22248c of _0x269430)'$graveyard'!=_0x22248c['root']['rootName']&&_0x25dcfc['unwrap'](_0x22248c);});});};_0x1349f9('insertion','accept'),_0x1349f9('insertion','discard'),_0x1349f9('deletion','accept'),_0x1349f9('deletion','discard'),_0x49dfae['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2aece9=>{const _0x29b53c=_0x2aece9['map'](_0x2f2e90=>_0x2f2e90['getContainedElement']()),_0x20a4ad=_0x29b53c[0x0]['findAncestor']('table'),{minRow:_0x5b60ed,maxRow:_0x4f2004}=_0x3122b1['_getCoordsForCells'](_0x29b53c);_0xdaffbf['removeRows'](_0x20a4ad,{'at':_0x5b60ed,'rows':_0x4f2004-_0x5b60ed+0x1});}),_0x49dfae['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x175c37=>{const _0x111cde=_0x175c37['map'](_0x2b0f41=>_0x2b0f41['getContainedElement']()),_0x20f20d=_0x111cde[0x0]['findAncestor']('table'),{minColumn:_0x31a3fb,maxColumn:_0x1565af}=_0x3122b1['_getCoordsForCells'](_0x111cde);_0xdaffbf['removeColumns'](_0x20f20d,{'at':_0x31a3fb,'columns':_0x1565af-_0x31a3fb+0x1});});const _0x19f755=(_0x1b1a2b,_0x3b7049)=>{if(!_0x3b7049['subType']||!_0x3b7049['subType']['startsWith']('tablePaste'))return;const _0xd4a7a=_0x3b7049['attributes']['tablePasteChainId'],_0x3ee8c7=_0x49dfae['getSuggestions']()['filter'](_0x38aae7=>_0x38aae7['isInContent']&&_0x38aae7['attributes']&&_0x38aae7['attributes']['tablePasteChainId']==_0xd4a7a);_0x3ee8c7['length']&&_0x3b7049['getAllAdjacentSuggestions']()['length']!=_0x3ee8c7['length']&&_0x3ee8c7['reduce']((_0x5d39df,_0x4eeb22)=>(_0x5d39df['next']=_0x4eeb22,_0x4eeb22['previous']=_0x5d39df,_0x4eeb22));};function _0x5bb859(_0x2469b8,_0x1452c9=!0x0){const {id:_0x3800cf,authorId:_0x35ae81}=_0x49dfae['_splitMarkerName'](_0x2469b8['markerName']),_0x510bf3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1897fc=_0x49dfae['activeMarkers']['includes'](_0x2469b8['markerName']);return _0x1897fc&&_0x510bf3['push']('ck-suggestion-marker--active'),{'classes':_0x510bf3,'attributes':{'data-suggestion':_0x3800cf,'data-author-id':_0x35ae81},'priority':_0x1897fc&&_0x1452c9?0xbc2:0xbb8};}_0x49dfae['on']('suggestionLoaded',_0x19f755,{'priority':'high'}),_0x49dfae['on']('suggestionUnloaded',_0x19f755,{'priority':'high'}),_0x51abb8['model']['document']['registerPostFixer'](()=>{let _0x3d4d26=!0x1;const _0x1336c9=Array['from'](_0x51abb8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x429623,data:_0x511539}of _0x1336c9){const {group:_0x5ca3dc,type:_0x3be81a,id:_0x30f0f9}=_0x49dfae['_splitMarkerName'](_0x429623);if('suggestion'!=_0x5ca3dc||'deletion'!=_0x3be81a||_0x511539['oldRange'])continue;if(!_0x49dfae['hasSuggestion'](_0x30f0f9))continue;const _0x4a0e2c=_0x49dfae['getSuggestion'](_0x30f0f9)['getRanges'](),_0x55c837=_0x51abb8['plugins']['get']('Users')['me'];for(const _0x5deea2 of _0x49dfae['getSuggestions']()){if(!_0x5deea2['isInContent']||_0x5deea2['author']!=_0x55c837)continue;if('formatBlock'!=_0x5deea2['type']||'tablePasteCell'!=_0x5deea2['subType'])continue;if(_0x5deea2['getRanges']()['every'](_0x346738=>_0x4a0e2c['some'](_0x2762e2=>_0x2762e2['containsRange'](_0x346738,!0x0)))){for(const _0x3c0c25 of _0x5deea2['getAllAdjacentSuggestions']())_0x3c0c25['isInContent']&&(_0x3c0c25['discard'](),_0x3d4d26=!0x0);}}}return _0x3d4d26;}),_0x51abb8['model']['document']['registerPostFixer'](_0x378208=>{const _0x917618=_0x51abb8['commands']['get']('redo');if(!_0x917618||!_0x917618['_createdBatches']['has'](_0x378208['batch']))return!0x1;let _0x1374c9=!0x1;const _0x1f28ba=_0x51abb8['plugins']['get']('Users')['me'],_0x4a4784=_0x51abb8['model']['document']['differ']['getChanges'](),_0x53d083=Array['from'](_0x51abb8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x9d60b3,data:_0x58ab92})=>{const {group:_0x1347c4,subType:_0x246b6c,authorId:_0x1c92c3}=_0x49dfae['_splitMarkerName'](_0x9d60b3);return'suggestion'==_0x1347c4&&'tablePaste'==_0x246b6c&&_0x1c92c3==_0x1f28ba['id']&&!_0x58ab92['oldRange'];});for(const _0x590ef3 of _0x4a4784){if('insert'!=_0x590ef3['type']||'tableCellSuggestion'!=_0x590ef3['name']||0x1!=_0x590ef3['length'])continue;const _0x576a3b=_0x378208['createRange'](_0x590ef3['position'],_0x590ef3['position']['getShiftedBy'](0x1));if(!_0x53d083['find'](({data:_0x198f62})=>_0x198f62['newRange']['isEqual'](_0x576a3b))){for(const {name:_0x900a5,data:_0x548e18}of _0x53d083)if(_0x576a3b['containsRange'](_0x548e18['newRange'])){_0x378208['updateMarker'](_0x900a5,{'range':_0x576a3b}),_0x1374c9=!0x0;break;}}}return _0x1374c9;}),_0x51abb8['model']['document']['registerPostFixer'](_0x4bde9b=>{let _0xf714b3=!0x1;const _0x2dd02c=_0x51abb8['plugins']['get']('Users')['me'],_0x5eeaff=_0x49dfae['getSuggestions']()['filter'](_0xef8721=>_0xef8721['isInContent']&&_0xef8721['author']==_0x2dd02c),_0x1ef09c=new Set(),_0x2b2a83=new Set();for(const _0x4157b1 of _0x5eeaff)if('tablePaste'==_0x4157b1['subType'])for(const _0x2b11ef of _0x4157b1['getMarkers']()){const _0x4790cd=_0x2b11ef['getRange']()['getContainedElement']();if(_0x4790cd){if(_0x4790cd['is']('element','tableCellSuggestion')&&ke(_0x4790cd)){_0x4157b1['removeMarker'](_0x2b11ef['name']),_0x1ef09c['add'](_0x4790cd),_0xf714b3=!0x0;const _0x43cfd7=_0x4790cd['nextSibling'],_0x205617=_0x4790cd['previousSibling'],_0x2071f0=_0x43cfd7&&_0x43cfd7['is']('element','tableCellSuggestion'),_0x592f65=_0x205617&&_0x205617['is']('element','tableCellSuggestion');_0x2071f0&&!_0x1ef09c['has'](_0x43cfd7)&&_0x2b2a83['add'](_0x43cfd7),_0x592f65&&!_0x1ef09c['has'](_0x205617)&&_0x2b2a83['add'](_0x205617);}else _0x4790cd['is']('element','paragraph')&&_0x4790cd['isEmpty']&&(_0x4157b1['removeMarker'](_0x2b11ef['name']),_0xf714b3=!0x0);}}else{if('tablePasteCell'==_0x4157b1['subType']){if(!_0x4157b1['attributes']||!_0x4157b1['attributes']['tablePasteChainId'])continue;const _0x49a6f9=_0x4157b1['attributes']['markerAttributes'];if(_0x49a6f9&&Object['keys'](_0x49a6f9)['length'])continue;const _0x3fae55=_0x4157b1['attributes']['tablePasteChainId'];let _0x128f76=!0x0,_0x153674=!0x0;for(const _0x1e0e6c of _0x5eeaff)if(_0x1e0e6c['subType']&&_0x1e0e6c['subType']['startsWith']('tablePaste')){if(!_0x1e0e6c['attributes']['tablePasteChainId']){_0x153674=!0x1;break;}if(_0x1e0e6c['id']!=_0x4157b1['id']&&_0x1e0e6c['attributes']['tablePasteChainId']==_0x3fae55){_0x128f76=!0x1;break;}}_0x153674&&_0x128f76&&(_0x4157b1['removeMarkers'](),_0xf714b3=!0x0);}}for(const _0x130089 of _0x1ef09c)_0x4bde9b['remove'](_0x130089);for(const _0x3a6d2d of _0x2b2a83)_0x4bde9b['unwrap'](_0x3a6d2d);return _0xf714b3;}),_0x51abb8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5d5df7,_0x3a8294)=>_0x5bb859(_0x5d5df7),'converterPriority':'high'}),_0x51abb8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3b136f,_0x6ba0ad)=>_0x6ba0ad['options']['showSuggestionHighlights']?_0x5bb859(_0x3b136f,!0x1):null,'converterPriority':'high'});const _0x3dbd9d=_0x51abb8['editing']['view'];this['listenTo'](_0x3dbd9d['document'],'clipboardOutput',(_0x2bd9c2,_0x4dec9f)=>{const _0x1be26c=[];for(const _0x308aaa of _0x3dbd9d['createRangeIn'](_0x4dec9f['content'])['getItems']())_0x308aaa['is']('element','suggestion-td')&&_0x1be26c['push'](_0x308aaa);_0x3dbd9d['change'](_0x1bbac0=>{for(const _0x5b500a of _0x1be26c)_0x1bbac0['move'](_0x1bbac0['createRangeIn'](_0x5b500a),_0x1bbac0['createPositionBefore'](_0x5b500a)),_0x1bbac0['remove'](_0x5b500a);});});}}function ke(_0x310c0a){if(_0x310c0a['isEmpty'])return!0x0;const _0x4f1e37=_0x310c0a['getChild'](0x0);return _0x4f1e37['is']('element','paragraph')&&_0x4f1e37['isEmpty'];}function Re(_0x3daf0f,_0x25d15e={},_0x35a312){for(const {isAnchor:_0x51a260,cellHeight:_0x59acf6,cellWidth:_0x4e8e43}of _0x35a312['createTableWalker'](_0x3daf0f,{'includeAllSlots':!0x0,..._0x25d15e}))if(!_0x51a260||0x1!=_0x59acf6||0x1!=_0x4e8e43)return!0x1;return!0x0;}class Nt extends _0x1bb8e2{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2922ce=this['editor']['plugins']['get']('TrackChangesEditing');_0x2922ce['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2922ce['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2922ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2922ce['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2922ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2922ce['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2104d1,_0x2d11f4){const _0x2bade5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21a1e1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x34a3cc=_0x2d11f4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x33edec=_0x21a1e1['getColumnGroupElement'](_0x34a3cc);let _0x538f44=_0x33edec?_0x21a1e1['getTableColumnsWidths'](_0x33edec):null,_0x5eaa95=_0x34a3cc['getAttribute']('tableWidth')||null;const _0x3812bf=_0x2d11f4['tableWidth']||_0x5eaa95,_0x146b31=_0x2d11f4['columnWidths']||_0x538f44,_0x42f05e=this['editor']['plugins']['get']('Users')['me'];for(const _0xa735d1 of _0x2bade5['getSuggestions']()){const _0x1a493c=_0xa735d1['getContainedElement']();if('resizeTable'===_0xa735d1['subType']&&_0x1a493c===_0x34a3cc){_0xa735d1['author']!==_0x42f05e&&_0xa735d1['discard']();const _0x1185ac=_0xa735d1['data']['commandParams'];_0x5eaa95=_0x1185ac[0x0]['tableWidth'],_0x538f44=_0x1185ac[0x0]['columnWidths'];break;}}_0x2104d1({'table':_0x34a3cc,'tableWidth':_0x3812bf,'columnWidths':_0x146b31}),_0x2bade5['markBlockFormat'](_0x34a3cc,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5eaa95,'columnWidths':_0x538f44}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3c6ee0){if('formatBlock'!=_0x3c6ee0['type']&&'formatInline'!=_0x3c6ee0['type'])return;const {data:_0x39c6d4}=_0x3c6ee0;if(_0x39c6d4&&'resizeTable'===_0x39c6d4['formatGroupId']){const _0x55b5fe='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x55b5fe)};}}}class Dt extends _0x1bb8e2{['afterInit'](){const _0x55a581=this['editor'];_0x55a581['plugins']['has']('Template')&&_0x55a581['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x1bb8e2{['afterInit'](){const _0x5d674d=this['editor'];if(!_0x5d674d['commands']['get']('insertTableOfContents'))return;_0x5d674d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4dda50=_0x5d674d['plugins']['get']('TrackChangesEditing'),_0x5c4d24=_0x5d674d['locale'];_0x4dda50['descriptionFactory']['registerElementLabel']('tableOfContents',_0x767f98=>o(_0x5c4d24,'ELEMENT_TABLE_OF_CONTENTS',_0x767f98));}}class $t extends _0x1bb8e2{['afterInit'](){const _0xacdcc2=this['editor'];if(!_0xacdcc2['plugins']['has']('Title'))return;const _0x3c3a0d=_0xacdcc2['plugins']['get']('TrackChangesEditing');_0x3c3a0d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xacdcc2['locale'],'ELEMENT_TITLE')),_0xacdcc2['model']['document']['registerPostFixer'](_0xdb0eb6=>{let _0x269bbd=!0x1;const _0x212a4a=Array['from'](_0xacdcc2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4de2dd,data:_0x394bf1}of _0x212a4a){const {group:_0x38cd1c}=_0x3c3a0d['_splitMarkerName'](_0x4de2dd);if('suggestion'!==_0x38cd1c||!_0x394bf1['newRange'])continue;const _0x4e2762=_0x394bf1['newRange'],_0x593f5b=_0x4e2762['end']['nodeBefore'];if(!_0x593f5b||!_0x593f5b['is']('element','title-content'))continue;if(!_0x4e2762['start']['isTouching'](_0x4e2762['end']))continue;const _0x5bdc5d=_0xacdcc2['model']['schema']['getNearestSelectionRange'](_0x4e2762['end'],'forward');if(_0x5bdc5d&&_0x5bdc5d['isCollapsed']){const _0x3d74c8=_0xdb0eb6['createRange'](_0x4e2762['start'],_0x5bdc5d['start']);_0x3d74c8['isEqual'](_0x4e2762)||(_0xdb0eb6['updateMarker'](_0x4de2dd,{'range':_0x3d74c8}),_0x269bbd=!0x0);}_0x269bbd||(_0xdb0eb6['removeMarker'](_0x4de2dd),_0x269bbd=!0x0);}return _0x269bbd;});}}class Bt extends _0x1bb8e2{['afterInit'](){const _0x30fa6f=this['editor'],_0x534b60=_0x30fa6f['plugins']['get']('TrackChangesEditing');_0x30fa6f['plugins']['has']('UndoEditing')&&(_0x534b60['enableCommand']('undo'),_0x534b60['enableCommand']('redo'));}}class xt extends _0x1bb8e2{static get['requires'](){return[It];}['afterInit'](){const _0x2b1d7e=this['editor'];if(!_0x2b1d7e['plugins']['has']('TableCaptionEditing'))return;_0x2b1d7e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x1bb8e2{['tableProperties'];['tableCellProperties'];constructor(_0x49b721){super(_0x49b721),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 _0x340682=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x18b61d of this['tableProperties'])_0x340682['enableCommand'](_0x18b61d,(_0xbf10e8,_0x300786)=>{const _0x2822ea=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x18b61d,[_0x2822ea],this['tableProperties'],'tableProperties',_0xbf10e8,_0x300786);});_0x340682['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x340682['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x340682['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x43305f,_0xbdb58e)=>this['handleDiscardAction'](this['tableProperties'],_0x43305f,_0xbdb58e)),_0x340682['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x65f2fe of this['tableCellProperties'])_0x340682['enableCommand'](_0x65f2fe,(_0x3675ac,_0x346cfe)=>{const _0x31d89a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x65f2fe,_0x31d89a,this['tableCellProperties'],'tableCellProperties',_0x3675ac,_0x346cfe);});_0x340682['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x340682['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x340682['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x125dad,_0xf06496)=>this['handleDiscardAction'](this['tableCellProperties'],_0x125dad,_0xf06496)),_0x340682['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x340682['descriptionFactory']['registerDescriptionCallback'](_0x4eea96=>this['handleSuggestionDescription'](_0x4eea96));}['_handlePropertyChange'](_0x126679,_0xa38582,_0xa582b4,_0x5d5d67,_0x439a02,_0x31e404){const _0x390086=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x31e404['batch'],()=>{for(const _0x2c88cb of _0xa38582){if(this['_getSuggestion'](_0x2c88cb,_0x5d5d67))_0x439a02(_0x31e404);else{const _0x379763={};for(const _0x243407 of _0xa582b4){const _0x5dda6d=_0x2c88cb['getAttribute'](_0x243407);void 0x0!==_0x5dda6d&&(_0x379763[_0x243407]=_0x5dda6d);}_0x439a02(_0x31e404),_0x390086['markBlockFormat'](_0x2c88cb,{'commandParams':[_0x379763]},[],_0x5d5d67);}}});}['handleDiscardAction'](_0x4dc775,_0x3eebd9,_0x421192){const _0x4457a5=_0x3eebd9[0x0]['start']['nodeAfter'],_0x43c402=_0x421192['commandParams'][0x0];this['editor']['model']['change'](_0x2192ad=>{for(const _0x3c1e6e of _0x4dc775)void 0x0!==_0x43c402[_0x3c1e6e]?_0x2192ad['setAttribute'](_0x3c1e6e,_0x43c402[_0x3c1e6e],_0x4457a5):_0x2192ad['removeAttribute'](_0x3c1e6e,_0x4457a5);});}['handleSuggestionDescription'](_0x2ee36d){if(_0x2ee36d['data'])switch(_0x2ee36d['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'](_0x533238,_0x4966bf){const _0x5a96c1=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1b9cb6 of _0x5a96c1['getSuggestions']({'skipNotAttached':!0x0})){const _0x46d84d=_0x1b9cb6['getContainedElement']();if(_0x1b9cb6['subType']===_0x4966bf&&_0x46d84d===_0x533238)return _0x1b9cb6;}return null;}}const m='$elementName';class p extends _0x1bb8e2{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x448709,_0x33c468,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(_0xb23949){function _0x54818f(_0x38e6bd){return _0x38e6bd['map'](_0x3ff71e=>String['fromCharCode'](_0x3ff71e))['join']('');}super(_0xb23949),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x198156,_0x377479,_0x1e2554,_0x2e316c)=>{this['_model']['change'](()=>{for(const _0x1bfd4f of[..._0x2e316c,..._0x1e2554])this['_model']['markers']['has'](_0x1bfd4f)&&_0xb23949['editing']['reconvertMarker'](_0x1bfd4f);});}),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']=_0xb23949['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(),_0xb23949['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xb23949['config']['get']('trackChanges.trackFormatChanges'),_0xb23949['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xb23949['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xb23949,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x54818f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x54818f([0x34,0x30,0x34,0x38,0x31,0x38,0x31,0x30]);}['init'](){const _0xffbd56=this['editor'],_0x200830=(_0x97397a,_0x5d1e57)=>{if('attribute'!=_0x97397a)return'ck-suggestion-marker-'+_0x97397a;const _0x4ddd87=_0x5d1e57['split']('|')[0x0];return this['_isBlockAttribute'](_0x4ddd87)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xffbd56['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x344db9=>{const {id:_0xbd5a1e,authorId:_0x586190,type:_0x5c7327,subType:_0x70e352}=this['_splitMarkerName'](_0x344db9['markerName']),_0x52a991=['ck-suggestion-marker',_0x200830(_0x5c7327,_0x70e352)];let _0x14687a=0xbb8;return this['activeMarkers']['includes'](_0x344db9['markerName'])&&(_0x52a991['push']('ck-suggestion-marker--active'),_0x14687a=0xbc2),'deletion'==_0x5c7327&&(_0x14687a+=0x5),{'classes':_0x52a991,'attributes':{'data-suggestion':_0xbd5a1e,'data-author-id':_0x586190},'priority':_0x14687a};}}),_0xffbd56['conversion']['for']('dataDowncast')['add'](_0x5b49bf=>{_0x5b49bf['on']('addMarker:suggestion',(_0x407dae,_0x3711bc,_0x51466e)=>{if(!_0x51466e['options']['showSuggestionHighlights'])return;const _0x156a28=_0x3711bc['item'];if(!_0x156a28)return;const _0x1836a8=_0x51466e['mapper']['toViewElement'](_0x156a28);_0xffbd56['model']['schema']['isObject'](_0x156a28)&&_0x1836a8&&!_0x1836a8['getCustomProperty']('widget')&&_0x1836a8['is']('containerElement')&&_0x103af2(_0x1836a8,_0x51466e['writer']);},{'priority':'high'});}),_0xffbd56['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3fa938,_0x264e8d)=>{if(!_0x264e8d['options']['showSuggestionHighlights'])return null;const {type:_0x42a6f4,subType:_0xd7a69d}=this['_splitMarkerName'](_0x3fa938['markerName']);return{'classes':['ck-suggestion-marker',_0x200830(_0x42a6f4,_0xd7a69d)],'priority':0xbb8};}});const _0x17e856=({showActiveMarkers:_0x3d5e9c=!0x0,isAttributeSuggestion:_0x30c457=!0x1}={})=>(_0x3dc955,_0x4bdc34,_0x3c4874)=>{if(!_0x4bdc34['item'])return;const {id:_0x8758b3,authorId:_0x2da4ea}=this['_splitMarkerName'](_0x4bdc34['markerName']);if(_0x30c457){const _0x18d6b1=this['_suggestions']['get'](_0x8758b3),_0x1940af=this['_getAttributeKey'](_0x18d6b1);if(!this['_isBlockAttribute'](_0x1940af))return;}if(_0x4bdc34['item']['is']('selection'))return void _0x3c4874['consumable']['consume'](_0x4bdc34['item'],_0x3dc955['name']);const _0x45527e=_0x3c4874['mapper']['toViewElement'](_0x4bdc34['item']);if(_0x4bdc34['item']['is']('element')&&_0xffbd56['model']['schema']['isBlock'](_0x4bdc34['item'])&&!_0x45527e['getCustomProperty']('addHighlight')){_0x3c4874['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x45527e),_0x3c4874['writer']['setAttribute']('data-suggestion',_0x8758b3,_0x45527e),_0x3c4874['writer']['setAttribute']('data-author-id',_0x2da4ea,_0x45527e),_0x3c4874['mapper']['bindElementToMarker'](_0x45527e,_0x4bdc34['markerName']),_0x3d5e9c&&(this['activeMarkers']['includes'](_0x4bdc34['markerName'])?_0x3c4874['writer']['addClass']('ck-suggestion-marker--active',_0x45527e):_0x3c4874['writer']['removeClass']('ck-suggestion-marker--active',_0x45527e));for(const _0x52ff18 of _0xffbd56['model']['createRangeIn'](_0x4bdc34['item'])['getItems']())_0x3c4874['consumable']['consume'](_0x52ff18,_0x3dc955['name']);_0x3c4874['consumable']['consume'](_0x4bdc34['item'],_0x3dc955['name']);}};_0xffbd56['conversion']['for']('dataDowncast')['add'](_0x4d9b85=>{_0x4d9b85['on']('addMarker:suggestion:formatBlock',(_0x369c57,_0x2bc8b3,_0x3a2a0e)=>{_0x3a2a0e['options']['showSuggestionHighlights']&&_0x17e856({'showActiveMarkers':!0x1})(_0x369c57,_0x2bc8b3,_0x3a2a0e);},{'priority':'highest'});}),_0xffbd56['conversion']['for']('dataDowncast')['add'](_0xfbb267=>{_0xfbb267['on']('addMarker:suggestion:attribute',(_0x23c396,_0x485c33,_0x84a2f)=>{_0x84a2f['options']['showSuggestionHighlights']&&_0x17e856({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x23c396,_0x485c33,_0x84a2f);},{'priority':'highest'});}),_0xffbd56['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x80ff7f,_0xbac009)=>_0xbac009['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x80ff7f['substr'](0xb)}}),_0xffbd56['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5c38d8,{writer:_0x9dc0a9})=>{let _0x258f2b='suggestion:'+_0x5c38d8['getAttribute']('suggestion-type')+':'+_0x5c38d8['getAttribute']('id');return _0x5c38d8['getAttribute']('marker-count')&&(_0x258f2b+=':'+_0x5c38d8['getAttribute']('marker-count')),_0x9dc0a9['createElement']('$marker',{'data-name':_0x258f2b});}}),_0xffbd56['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xffbd56['conversion']['for']('editingDowncast')['add'](_0x5a8fb5=>{_0x5a8fb5['on']('addMarker:suggestion:formatBlock',_0x17e856(),{'priority':'high'});}),_0xffbd56['conversion']['for']('editingDowncast')['add'](_0x4a7d8f=>{_0x4a7d8f['on']('addMarker:suggestion:attribute',_0x17e856({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xffbd56['conversion']['for']('editingDowncast')['add'](_0xc040da=>{_0xc040da['on']('removeMarker:suggestion:formatBlock',(_0x5d1878,_0x46b411,_0x185d3e)=>{const _0x43229c=_0x185d3e['mapper']['markerNameToElements'](_0x46b411['markerName']);if(_0x43229c){for(const _0x225134 of _0x43229c)_0x225134['getCustomProperty']('addHighlight')||(_0x185d3e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x225134),_0x185d3e['writer']['removeAttribute']('data-suggestion',_0x225134),_0x185d3e['writer']['removeAttribute']('data-author-id',_0x225134),_0x185d3e['mapper']['unbindElementFromMarkerName'](_0x225134,_0x46b411['markerName']));}},{'priority':'high'});}),_0xffbd56['conversion']['for']('editingDowncast')['add'](_0x19aca3=>{_0x19aca3['on']('removeMarker:suggestion:attribute',(_0x3fcf2a,_0x32b340,_0x2200e6)=>{const _0x1d2d4e=_0x2200e6['mapper']['markerNameToElements'](_0x32b340['markerName']);if(!_0x1d2d4e)return;const {id:_0x4d572c}=this['_splitMarkerName'](_0x32b340['markerName']),_0x2ccd5b=this['_suggestions']['get'](_0x4d572c),_0x2a05bb=this['_getAttributeKey'](_0x2ccd5b);if(this['_isBlockAttribute'](_0x2a05bb)){for(const _0x3d62e0 of _0x1d2d4e)_0x3d62e0['getCustomProperty']('addHighlight')||(_0x2200e6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3d62e0),_0x2200e6['writer']['removeAttribute']('data-suggestion',_0x3d62e0),_0x2200e6['writer']['removeAttribute']('data-author-id',_0x3d62e0),_0x2200e6['mapper']['unbindElementFromMarkerName'](_0x3d62e0,_0x32b340['markerName']));}},{'priority':'high'});}),_0xffbd56['model']['document']['registerPostFixer'](_0x58b661=>{let _0x64fd5d=!0x1;const _0x5e9f05=Array['from'](_0xffbd56['model']['document']['differ']['getChangedMarkers']()),_0x50c368=new Set();for(const {name:_0x37a94c,data:_0x561d97}of _0x5e9f05){const {group:_0x1b370a,type:_0x46a926,subType:_0x2e8044,id:_0x8e8724}=this['_splitMarkerName'](_0x37a94c);if('suggestion'!==_0x1b370a)continue;const _0x1db9e9=this['_suggestions']['get'](_0x8e8724);if(null!=_0x561d97['newRange']){'formatInline'==_0x46a926&&(_0x64fd5d=_0x64fd5d||Ut(_0x561d97['newRange'],_0x37a94c,_0x58b661,_0xffbd56['model']['schema']));const _0x400d73='attribute'==_0x46a926&&this['_isBlockAttribute'](_0x2e8044['split']('|')[0x0]);if(_0x561d97['newRange']['isCollapsed']||'$graveyard'==_0x561d97['newRange']['root']['rootName']||'formatBlock'==_0x46a926&&!Ft(_0x561d97['newRange'])||_0x400d73&&!Ft(_0x561d97['newRange'])||'deletion'==_0x46a926&&!(!Vt(_0x2ea3a6=_0x561d97['newRange'])&&!function(_0x54d80f){return _0x54d80f['start']['parent']==_0x54d80f['end']['nodeBefore']&&_0x54d80f['start']['isAtEnd'];}(_0x2ea3a6)))_0x58b661['removeMarker'](_0x37a94c),_0x64fd5d=!0x0;else{if(!_0x1db9e9||!_0x1db9e9['isInContent'])continue;if(_0x561d97['newRange']&&_0x561d97['oldRange']&&_0x561d97['newRange']['isEqual'](_0x561d97['oldRange']))continue;_0x50c368['add'](_0x1db9e9);}}}var _0x2ea3a6;return _0x50c368['size']>0x0&&(_0x64fd5d=!!this['_joinWithAdjacentSuggestions'](_0x50c368)||_0x64fd5d),_0x64fd5d;}),_0xffbd56['model']['document']['registerPostFixer'](_0x458f9e=>{let _0x31e434=!0x1;for(const _0x80ae63 of _0xffbd56['model']['document']['differ']['getChanges']())if('insert'==_0x80ae63['type'])for(const _0x3d7389 of this['_suggestions']['values']()){if(_0x3d7389['isMultiRange']||!_0x3d7389['isInContent'])continue;const _0x1291ed='formatBlock'==_0x3d7389['type'],_0x3103f4=this['_getAttributeKey'](_0x3d7389),_0x74efe5=_0x3103f4&&this['_isBlockAttribute'](_0x3103f4);if(!_0x1291ed&&!_0x74efe5)continue;const _0x5ebe99=_0x3d7389['getFirstRange']();if(_0x5ebe99['start']['parent']!=_0x5ebe99['end']['parent']&&!_0x5ebe99['end']['isAtEnd']){const _0x2ad38c=_0xffbd56['model']['createPositionAt'](_0x5ebe99['start']['nodeAfter'],'end'),_0xd1a2be=_0xffbd56['model']['createRange'](_0x5ebe99['start'],_0x2ad38c);_0x458f9e['updateMarker'](_0x3d7389['getFirstMarker'](),{'range':_0xd1a2be}),_0x31e434=!0x0;}}return _0x31e434;}),_0xffbd56['model']['document']['registerPostFixer'](_0x21542a=>this['_processAttributeChanges'](_0x21542a)),_0xffbd56['model']['document']['registerPostFixer'](_0x1faf77=>!_0x1faf77['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1faf77)),_0xffbd56['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xffbd56['model']['document']['on']('change:data',(_0x1d9271,_0x5ebaa2)=>{if(!_0x5ebaa2['isLocal']||_0x5ebaa2['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3df6f3=_0xffbd56['model']['document']['differ']['getChanges']();if(0x0==_0x3df6f3['length'])return;const _0xcfe6e9=[],_0x3c2f10=_0x3df6f3['filter'](_0x266b7a=>'attribute'==_0x266b7a['type']),_0x186a58=_0x3df6f3['filter'](_0x12a5ac=>'insert'==_0x12a5ac['type']&&'$text'!=_0x12a5ac['name']);for(const _0x132c8e of _0x3c2f10)this['_isRegisteredAttribute'](_0x132c8e['attributeKey'])&&_0xcfe6e9['push']({'key':_0x132c8e['attributeKey'],'newValue':_0x132c8e['attributeNewValue'],'oldValue':_0x132c8e['attributeOldValue'],'range':Pt(_0x132c8e['range'],_0xffbd56['model'])});for(const _0x3ec501 of _0x186a58){if('rename'!=_0x3ec501['action']&&'refresh'!=_0x3ec501['action'])continue;const _0x58aa2c=Lt(_0x3ec501['position']['nodeAfter'],_0xffbd56['model']),_0x1dd736=_0x3ec501['before'];'rename'==_0x3ec501['action']&&_0xcfe6e9['push']({'key':m,'newValue':_0x3ec501['name'],'oldValue':_0x1dd736['name'],'range':_0x58aa2c});for(const [_0x269492,_0x12d4cd]of _0x1dd736['attributes']){if(!this['_isRegisteredAttribute'](_0x269492))continue;const _0x527fc3=_0x3ec501['attributes']['get'](_0x269492);_0x12d4cd!==_0x527fc3&&_0xcfe6e9['push']({'key':_0x269492,'newValue':_0x527fc3,'oldValue':_0x12d4cd,'range':_0x58aa2c});}for(const [_0x3f8090,_0x55cb4e]of _0x3ec501['attributes'])this['_isRegisteredAttribute'](_0x3f8090)&&(_0x1dd736['attributes']['has'](_0x3f8090)||_0xcfe6e9['push']({'key':_0x3f8090,'newValue':_0x55cb4e,'oldValue':null,'range':_0x58aa2c}));}0x0!=_0xcfe6e9['length']&&_0xffbd56['model']['enqueueChange'](_0x5ebaa2,_0x2bd69b=>{const _0x22b987=_0x59fd7a();for(const {range:_0x48eca7,key:_0x5afbfe,oldValue:_0x423416,newValue:_0x5a131b}of _0xcfe6e9)this['markAttributeChange'](_0x48eca7,_0x5afbfe,_0x423416,_0x5a131b,{'groupId':_0x22b987});this['_reduceExistingSuggestions'](_0x2bd69b,_0xcfe6e9);});},{'priority':'lowest'}),_0xffbd56['model']['markers']['on']('update:suggestion',(_0x3718ec,_0x46d9f3,_0x2fc308)=>{if(null==_0x2fc308){const {id:_0x4cbfa7}=this['_splitMarkerName'](_0x46d9f3['name']),_0x242777=this['_suggestions']['get'](_0x4cbfa7);_0x242777&&_0x242777['addMarkerName'](_0x46d9f3['name']);}}),_0xffbd56['model']['document']['on']('change:data',()=>{const _0x369838=Array['from'](_0xffbd56['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5ac63d=>'suggestion'===this['_splitMarkerName'](_0x5ac63d['name'])['group']);if(0x0===_0x369838['length'])return;_0x369838['sort']((_0x245e26,_0xfc51e5)=>{const _0x4ecd7f=_0x245e26['data']['oldRange'],_0x267ed1=_0xfc51e5['data']['oldRange'];return null===_0x4ecd7f&&null===_0x267ed1?0x0:null===_0x4ecd7f&&null!==_0x267ed1?-0x1:null!==_0x4ecd7f&&null===_0x267ed1?0x1:_0x4ecd7f['start']['isBefore'](_0x267ed1['start'])?-0x1:0x1;});const _0x24a3e8=new Set(),_0x36e96a=new Set();for(const {name:_0x4bcc84,data:_0x18ce0c}of _0x369838){const {id:_0x244678}=this['_splitMarkerName'](_0x4bcc84);if(null===_0x18ce0c['oldRange']){const _0x2679c7=this['_handleNewSuggestionMarker'](_0x4bcc84);_0x36e96a['add'](_0x2679c7);}else{const _0x50e71a=this['_suggestions']['get'](_0x244678);null!==_0x18ce0c['newRange']||_0x50e71a['isInContent']?(_0x24a3e8['add'](_0x50e71a['head']),_0x36e96a['add'](_0x50e71a)):this['_removeSuggestion'](_0x50e71a);}}_0x36e96a['size']>0x0&&this['_refreshSuggestionsChain'](_0x36e96a);for(const _0x9c3f93 of _0x24a3e8)this['fire']('suggestionChanged',_0x9c3f93);}),_0xffbd56['model']['on']('applyOperation',(_0x36c7ea,_0x1d1d89)=>{const _0xcf499e=_0x1d1d89[0x0];if(!this['_suggestions']['size'])return;if(!_0xcf499e['isDocumentOperation'])return;if(_0xcf499e['batch']['isUndo']||!_0xcf499e['batch']['isLocal'])return;let _0x1d8770,_0x533e09;switch(_0xcf499e['type']){case'insert':_0x1d8770=_0xffbd56['model']['createPositionAt'](_0xcf499e['position']),_0x533e09=_0x1d8770['getShiftedBy'](_0xcf499e['howMany']);break;case'split':_0x1d8770=_0xffbd56['model']['createPositionAt'](_0xcf499e['splitPosition']),_0x533e09=_0xffbd56['model']['createPositionAt'](_0xcf499e['moveTargetPosition']);break;case'move':_0x1d8770=_0xffbd56['model']['createPositionAt'](_0xcf499e['targetPosition']),_0x533e09=_0x1d8770['getShiftedBy'](_0xcf499e['howMany']);break;default:return;}const _0x144164=_0xffbd56['model']['createRange'](_0x1d8770,_0x533e09);_0xffbd56['model']['change'](()=>{for(const {suggestion:_0x10594d,meta:_0x48f7e2}of this['_findSuggestions'](_0x144164)){if(_0x10594d['isMultiRange'])continue;if('formatInline'==_0x10594d['type'])continue;const _0x28d46f=this['_getAttributeKey'](_0x10594d);if(_0x28d46f&&this['_isBlockAttribute'](_0x28d46f)&&'split'!=_0xcf499e['type'])continue;const _0x26062a=_0x10594d['data']&&_0x10594d['data']['multipleBlocks'];('formatBlock'!=_0x10594d['type']||'split'==_0xcf499e['type']&&!_0x26062a)&&(_0x48f7e2['containsRangeInObject']||'insertion'==_0x10594d['type']&&_0x48f7e2['isOwn']||_0x10594d['getFirstRange']()['containsRange'](_0x144164)&&this['_breakSuggestionMarker'](_0x10594d,_0x1d8770,_0x533e09));}});},{'priority':'lowest'}),_0xffbd56['model']['on']('deleteContent',(_0x1aa515,_0xc34c12)=>{const _0x5d4327=_0xc34c12[0x0],_0x2280ed=_0xc34c12[0x1];if(_0x2280ed&&_0x2280ed['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5d4327['isCollapsed'])return;const _0x103e49=_0xffbd56['model']['schema'],{start:_0x40c003,end:_0x440518}=_0x5d4327['getFirstRange'](),_0x25b542=_0x40c003['nodeAfter']&&_0x103e49['isLimit'](_0x40c003['nodeAfter'])?null:_0x103e49['getNearestSelectionRange'](_0x40c003,'forward'),_0x4ae863=_0x440518['nodeBefore']&&_0x103e49['isLimit'](_0x440518['nodeBefore'])?null:_0x103e49['getNearestSelectionRange'](_0x440518,'backward'),_0x262f69=_0xffbd56['model']['createRange'](_0x25b542?_0x25b542['start']:_0x40c003,_0x4ae863?_0x4ae863['end']:_0x440518);_0xffbd56['model']['change'](_0xaaf638=>{this['markDeletion'](_0x262f69);const _0x258bc2=_0xffbd56['model']['schema']['getNearestSelectionRange'](_0x262f69['start']);_0x5d4327['is']('documentSelection')?_0xaaf638['setSelection'](_0x258bc2):_0x5d4327['setTo'](_0x258bc2);}),_0x1aa515['stop']();},{'priority':_0x4e633f['normal']+0xa}),_0xffbd56['model']['on']('insertContent',(_0x5d221f,_0x4bae18)=>{const _0x508dd2=_0x4bae18[_0x4bae18['length']-0x1];_0x508dd2&&_0x508dd2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xffbd56['model']['change'](()=>{let _0x59eaa1=_0xffbd56['model']['insertContent'](_0x4bae18[0x0],_0x4bae18[0x1],_0x4bae18[0x2],{'forceDefaultExecution':!0x0});if(!_0x59eaa1)return;_0x5d221f['return']=_0x59eaa1['clone']();const _0xa80252=_0x59eaa1['end']['nodeBefore'],_0x1aa5e9=_0xffbd56['model']['schema'];_0xa80252&&_0x1aa5e9['isBlock'](_0xa80252)&&!_0x1aa5e9['isObject'](_0xa80252)&&(_0x59eaa1=_0xffbd56['model']['createRange'](_0x59eaa1['start'],_0xffbd56['model']['createPositionAt'](_0xa80252,'end'))),this['markInsertion'](_0x59eaa1);}),_0x5d221f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x15f33b=new x(_0xffbd56,this['_suggestions']);_0xffbd56['commands']['add']('acceptSuggestion',_0x15f33b),this['enableCommand']('acceptSuggestion');const _0x507b92=new R(_0xffbd56,this['_suggestions']);_0xffbd56['commands']['add']('discardSuggestion',_0x507b92),this['enableCommand']('discardSuggestion'),_0xffbd56['commands']['add']('acceptAllSuggestions',new E(_0xffbd56,_0x15f33b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xffbd56['commands']['add']('discardAllSuggestions',new E(_0xffbd56,_0x507b92,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xffbd56['commands']['add']('acceptSelectedSuggestions',new O(_0xffbd56,_0x15f33b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xffbd56['commands']['add']('discardSelectedSuggestions',new O(_0xffbd56,_0x507b92,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x367a68=_0xffbd56['plugins']['get']('CommentsRepository');this['listenTo'](_0x367a68,'addComment',(_0x15d52c,{threadId:_0x4409e5})=>{const _0x513a71=this['_suggestions']['get'](_0x4409e5);_0x513a71&&_0x513a71['commentThread']&&0x1===_0x513a71['commentThread']['length']&&this['_updateSuggestionData'](_0x4409e5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x367a68,'removeComment',(_0x430d9d,{threadId:_0x3b5ed4})=>{const _0x274ab8=this['_suggestions']['get'](_0x3b5ed4);_0x274ab8&&_0x274ab8['commentThread']&&!_0x274ab8['commentThread']['length']&&this['_updateSuggestionData'](_0x3b5ed4,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x1573ce){if(this['_adapter'])throw new _0x308934('track-changes-adapter-already-set',this);this['_adapter']=_0x1573ce;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x46c49b=!0x1,toJSON:_0x43f3ca=!0x1}={}){const _0x2a3598=[];for(const _0x1ac7bc of this['_suggestions']['values']())_0x46c49b&&!_0x1ac7bc['isInContent']||_0x2a3598['push'](_0x1ac7bc);return _0x43f3ca?_0x2a3598['map'](_0x51fbe1=>_0x51fbe1['toJSON']()):_0x2a3598;}['getSuggestion'](_0x3b54a3){const _0x2a6662=this['_suggestions']['get'](_0x3b54a3);if(!_0x2a6662)throw new _0x308934('track-changes-suggestion-not-found',this);return _0x2a6662;}['hasSuggestion'](_0x46964f){return this['_suggestions']['has'](_0x46964f);}['addSuggestionData'](_0x3dd697){const {authorId:_0x2a8153,id:_0x139adf,attributes:_0x513c6c}=_0x3dd697,[_0x3e9c00,_0xc8d36a]=_0x3dd697['type']['split'](':'),_0x12c1ba=this['_suggestions']['get'](_0x139adf)||this['_createSuggestion'](_0x3e9c00,_0xc8d36a,_0x139adf,_0x2a8153,_0x513c6c);if(this['_addThreadToSuggestion'](_0x12c1ba),this['_checkSuggestionCorrectness'](_0x12c1ba,_0x3e9c00,_0xc8d36a||null,_0x2a8153),_0x12c1ba['createdAt']=_0x3dd697['createdAt'],_0x12c1ba['_isDataLoaded']=!0x0,_0x513c6c&&_0x513c6c['@external']){const _0x3b4dd5=_0x513c6c['@external'],_0x183e2=this['_getExternalAuthor'](_0x3b4dd5['authorName']);_0x12c1ba['authoredAt']=_0x3b4dd5['createdAt'],_0x12c1ba['author']=_0x183e2,_0x12c1ba['isExternal']=!0x0;}else _0x12c1ba['authoredAt']=_0x3dd697['createdAt'];switch(_0x3dd697['data']&&(_0x12c1ba['data']=_0x3dd697['data']),_0x3dd697['attributes']&&(_0x12c1ba['attributes']=_0x3dd697['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x12c1ba['_saved']=!0x0),this['_suggestionState']['get'](_0x12c1ba)){case'notReady':this['_suggestionState']['set'](_0x12c1ba,'dataReady');break;case'markerReady':_0x12c1ba['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x12c1ba])),this['_refreshSuggestionsChain'](new Set([_0x12c1ba])),this['_suggestionState']['set'](_0x12c1ba,'ready'),this['fire']('suggestionLoaded',_0x12c1ba)):this['_suggestionState']['set'](_0x12c1ba,'removed');}return _0x12c1ba;}['acceptSuggestion'](_0x4ce681){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4413fe of _0x4ce681['getAllAdjacentSuggestions']())_0x4413fe['accept']();});});}['discardSuggestion'](_0x108ed9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5f5d3b of _0x108ed9['getAllAdjacentSuggestions']())_0x5f5d3b['discard']();});});}['enableCommand'](_0x23ce82,_0x3b9253){const _0x2c7684=this['editor']['commands']['get'](_0x23ce82);if(!_0x2c7684)throw new _0x308934('track-changes-command-not-found',this,{'commandName':_0x23ce82});if(this['_enabledCommands']['has'](_0x2c7684))throw new _0x308934('track-changes-enable-command-twice',this,{'commandName':_0x23ce82});this['_enabledCommands']['add'](_0x2c7684),_0x3b9253&&_0x2c7684['on']('execute',(_0x2270f8,_0x4a3d5c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4a3d5c['length']>0x0&&_0x4a3d5c[_0x4a3d5c['length']-0x1]&&_0x4a3d5c[_0x4a3d5c['length']-0x1]['forceDefaultExecution']?_0x4a3d5c['pop']():(_0x2270f8['return']=_0x3b9253((..._0x4786f3)=>_0x2c7684['execute'](..._0x4786f3,{'forceDefaultExecution':!0x0}),..._0x4a3d5c),_0x2270f8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3b92a6){let _0x3634f0,_0x4e5420;const _0x2ca2ac=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3634f0=_0x3b92a6();}catch(_0x4ae7f1){_0x4e5420=_0x4ae7f1;}return _0x2ca2ac||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4e5420&&_0x308934['rethrowUnexpectedError'](_0x4e5420,this),_0x3634f0;}['markInsertion'](_0x2fc9f5,_0x1c062a=null,_0x1d7ae3={}){if(_0x2fc9f5['isCollapsed'])return null;const _0x358a22=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4516ad,meta:_0x5cf8ec}of this['_findSuggestions'](_0x2fc9f5,'insertion'))if(_0x5cf8ec['isOwn']){if(!_0x5cf8ec['isNextTo']){if(_0x5cf8ec['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x4516ad,_0x1d7ae3))continue;return _0x4516ad;}if(qt(_0x4516ad,_0x1d7ae3))return _0x4516ad;this['_breakSuggestionMarker'](_0x4516ad,_0x2fc9f5['start'],_0x2fc9f5['end']);break;}if(_0x1c062a==_0x4516ad['subType']&&qt(_0x4516ad,_0x1d7ae3)){const _0x2354e1=_0x4516ad['getFirstRange']();return _0x2354e1['start']['isEqual'](_0x2fc9f5['end'])?this['_setSuggestionRange'](_0x4516ad,this['_model']['createRange'](_0x2fc9f5['start'],_0x2354e1['end'])):this['_setSuggestionRange'](_0x4516ad,this['_model']['createRange'](_0x2354e1['start'],_0x2fc9f5['end'])),_0x4516ad;}}const _0x595e77=_0x59fd7a(),_0x1cdc31=_0x358a22['id'],_0x58da5f=_0x1c062a?'insertion:'+_0x1c062a:'insertion',_0x2b9118=this['_setSuggestionData']({'id':_0x595e77,'type':_0x58da5f,'createdAt':new Date(),'authorId':_0x1cdc31,'attributes':_0x1d7ae3});return this['_addSuggestionMarker'](_0x58da5f,_0x595e77,_0x1cdc31,_0x2fc9f5),_0x2b9118;}['markMultiRangeInsertion'](_0x53b185,_0xe9dcee='multi',_0x2e25be={}){const _0x716c13=this['editor']['plugins']['get']('Users')['me'],_0x490e8d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xe9dcee,'join');for(const _0xa26615 of this['getSuggestions']())if(_0xa26615['author']['id']==_0x716c13['id']&&'insertion'==_0xa26615['type']&&_0xa26615['subType']==_0xe9dcee&&qt(_0xa26615,_0x2e25be)&&(_0x490e8d(_0xa26615['getRanges'](),_0x53b185)||_0x490e8d(_0x53b185,_0xa26615['getRanges']()))){for(const _0x46854c of _0x53b185)_0xa26615['addRange'](_0x46854c);return _0xa26615;}for(const {suggestion:_0x195cb7,meta:_0x593f8e}of this['_findSuggestions'](_0x53b185,'insertion')){if(!_0x593f8e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x593f8e['containsRangeInObject'])continue;if(!qt(_0x195cb7,_0x2e25be))continue;let _0x34c89f=!0x0;for(const _0x1c65d9 of _0x195cb7['getRanges']())for(const _0x16f4ee of _0x53b185)if(!_0x1c65d9['containsRange'](_0x16f4ee)){_0x34c89f=!0x1;break;}if(_0x34c89f)return _0x195cb7;}const _0x5f1a43=_0x59fd7a(),_0x56b381=_0x716c13['id'],_0x117672='insertion:'+_0xe9dcee,_0x4dc6d6=this['_setSuggestionData']({'id':_0x5f1a43,'type':_0x117672,'createdAt':new Date(),'authorId':_0x56b381,'attributes':_0x2e25be});for(const _0x2427dc of _0x53b185)this['_addSuggestionMarker'](_0x117672,_0x5f1a43,_0x56b381,_0x2427dc,u['getMultiRangeId']());return _0x4dc6d6;}['markInlineFormat'](_0x199a1f,_0x3114d8,_0x31bb4b=null,_0x28898f={}){if(_0x31bb4b=_0x31bb4b||Gt(_0x3114d8),_0x199a1f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3825a6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x31bb4b,'accept');return this['forceDefaultExecution'](()=>_0x3825a6([_0x199a1f],_0x3114d8,_0x28898f)),null;}const _0x4b28a0=this['editor']['plugins']['get']('Users')['me'],_0x4cd147=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x9c3cf2,meta:_0x384643}of this['_findSuggestions'](_0x199a1f,'insertion'))_0x384643['isOwn']&&!_0x384643['isInsideObject']&&_0x4cd147['push'](..._0x9c3cf2['getRanges']());}const _0x142679=function(_0x4900f7,_0x5cf16f){const _0x9d9d3d=[];for(const _0x316546 of _0x5cf16f){const _0x14b9f4=_0x4900f7['getIntersection'](_0x316546);_0x14b9f4&&_0x9d9d3d['push'](_0x14b9f4);}return _0x9d9d3d;}(_0x199a1f,_0x4cd147),_0x12a19d=function(_0x45ab87,_0x4af447){const _0xccad92=[_0x45ab87];for(const _0x8028a1 of _0x4af447){let _0x3dd38f=0x0;for(;_0x3dd38f<_0xccad92['length'];){const _0xee39e9=_0xccad92[_0x3dd38f]['getDifference'](_0x8028a1);_0xccad92['splice'](_0x3dd38f,0x1,..._0xee39e9),_0x3dd38f+=_0xee39e9['length'];}}return _0xccad92;}(_0x199a1f,_0x4cd147);_0x142679['length']&&this['_model']['change'](()=>{for(const _0xb68c27 of _0x142679){const _0xe8ffd6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x31bb4b,'accept');this['forceDefaultExecution'](()=>_0xe8ffd6([_0xb68c27],_0x3114d8,_0x28898f));}});for(const _0x2836f5 of _0x12a19d){let _0x5c4b55=null,_0x3c4f7e=_0x2836f5['start'],_0x3f41d9=_0x2836f5['end'];for(const {suggestion:_0x3c0f22,meta:_0x31eb46}of this['_findSuggestions'](_0x2836f5,'formatInline')){if(!_0x31eb46['isOwn'])continue;if(_0x3c0f22['subType']!=_0x31bb4b)continue;if(!qt(_0x3c0f22,_0x28898f))continue;const _0x4a3458=_0x3c0f22['getFirstRange']();if(_0x4a3458['containsRange'](_0x2836f5,!0x0))return null;_0x3c4f7e=_0x3c4f7e['isBefore'](_0x4a3458['start'])?_0x3c4f7e:_0x4a3458['start'],_0x3f41d9=_0x3f41d9['isAfter'](_0x4a3458['end'])?_0x3f41d9:_0x4a3458['end'],_0x5c4b55?_0x4a3458['start']['isBefore'](_0x5c4b55['getFirstRange']()['start'])?(_0x5c4b55['removeMarkers'](),_0x5c4b55=_0x3c0f22):_0x3c0f22['removeMarkers']():_0x5c4b55=_0x3c0f22;}const _0xd0ae52=this['_model']['createRange'](_0x3c4f7e,_0x3f41d9);if(_0x5c4b55)this['_setSuggestionRange'](_0x5c4b55,_0xd0ae52);else{const _0x2ca52c=_0x59fd7a(),_0x3f8d56=_0x4b28a0['id'];this['_setSuggestionData']({'id':_0x2ca52c,'type':'formatInline:'+_0x31bb4b,'data':_0x3114d8,'createdAt':new Date(),'authorId':_0x3f8d56,'attributes':_0x28898f}),this['_addSuggestionMarker']('formatInline:'+_0x31bb4b,_0x2ca52c,_0x3f8d56,_0xd0ae52);}}return null;}['markBlockFormat'](_0x147894,_0x319f9f,_0x5677f3=[],_0x17f2c5=null,_0x2948ae={}){_0x319f9f['formatGroupId']||(_0x319f9f['formatGroupId']=_0x319f9f['commandName']),_0x319f9f['multipleBlocks']=_0x147894['is']('range'),_0x17f2c5=_0x17f2c5||Gt(_0x319f9f);const _0x396afc=_0x5677f3['map'](_0x24f480=>Lt(_0x24f480,this['_model'])),_0x3a3e15=_0x147894['is']('range')?_0x147894:Lt(_0x147894,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1b2d45=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17f2c5,'accept');return this['forceDefaultExecution'](()=>_0x1b2d45([_0x3a3e15],_0x319f9f,_0x2948ae)),null;}_0x396afc['push'](_0x3a3e15);let _0x2c1282=!0x0;for(const _0x34c1d5 of _0x396afc)if(!this['_rangeIsInLocalUserInsertion'](_0x34c1d5)){_0x2c1282=!0x1;break;}if(_0x2c1282&&'always'!==this['_trackFormatChanges']){const _0x5e3ca1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17f2c5,'accept');return this['forceDefaultExecution'](()=>_0x5e3ca1([_0x3a3e15],_0x319f9f,_0x2948ae)),null;}let _0x41d539=null,_0x2966b7=_0x3a3e15['start'],_0x5baa22=_0x3a3e15['end'];for(const {suggestion:_0x19e53b,meta:_0x37ba92}of this['_findSuggestions'](_0x3a3e15,'formatBlock')){if(!_0x37ba92['isOwn'])continue;if(_0x37ba92['isNextTo']||_0x37ba92['containsRangeInObject']||_0x37ba92['isInsideObject'])continue;if(_0x19e53b['data']['formatGroupId']!=_0x319f9f['formatGroupId'])continue;if(!qt(_0x19e53b,_0x2948ae))continue;const _0x1432cb=_0x19e53b['getFirstRange']();if(_0x19e53b['subType']==_0x17f2c5){if(_0x1432cb['containsRange'](_0x3a3e15,!0x0))return null;_0x2966b7=_0x2966b7['isBefore'](_0x1432cb['start'])?_0x2966b7:_0x1432cb['start'],_0x5baa22=_0x5baa22['isAfter'](_0x1432cb['end'])?_0x5baa22:_0x1432cb['end'],_0x41d539?_0x1432cb['start']['isBefore'](_0x41d539['getFirstRange']()['start'])?(_0x41d539['removeMarkers'](),_0x41d539=_0x19e53b):_0x19e53b['removeMarkers']():_0x41d539=_0x19e53b;}else{const _0x1b3df3=_0x3a3e15['getIntersection'](_0x1432cb);this['_cutOutSuggestionMarker'](_0x19e53b,_0x1b3df3);}}const _0x335072=this['editor']['plugins']['get']('Users')['me'],_0x28c1ca=_0x59fd7a(),_0x19acc0=_0x335072['id'];if(_0x41d539)return this['_setSuggestionRange'](_0x41d539,this['_model']['createRange'](_0x2966b7,_0x5baa22)),_0x41d539;{const _0xdec027=this['_setSuggestionData']({'id':_0x28c1ca,'type':'formatBlock:'+_0x17f2c5,'data':_0x319f9f,'createdAt':new Date(),'authorId':_0x19acc0,'attributes':_0x2948ae});return this['_addSuggestionMarker']('formatBlock:'+_0x17f2c5,_0x28c1ca,_0x19acc0,this['_model']['createRange'](_0x2966b7,_0x5baa22)),_0xdec027;}}['markMultiRangeBlockFormat'](_0x56d47d,_0x3ee37d,_0xe391e1=[],_0xe0c5be=null,_0x32127a={}){_0x3ee37d['formatGroupId']||(_0x3ee37d['formatGroupId']=_0x3ee37d['commandName']);const _0x3965ee=_0x56d47d[0x0];_0x3ee37d['multipleBlocks']=_0x3965ee['is']('range'),_0xe0c5be=_0xe0c5be||Gt(_0x3ee37d);const _0x1246e1=_0xe391e1['map'](_0x46560f=>Lt(_0x46560f,this['_model'])),_0x477f7c=_0x3965ee['is']('range')?_0x56d47d:_0x56d47d['map'](_0x11282f=>Lt(_0x11282f,this['_model']));if('never'===this['_trackFormatChanges']){const _0xaa457f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe0c5be,'accept');return this['forceDefaultExecution'](()=>_0xaa457f(_0x477f7c,_0x3ee37d,_0x32127a)),null;}_0x1246e1['push'](..._0x477f7c);let _0x5ec24e=!0x0;for(const _0x9dbc6c of _0x1246e1)if(!this['_rangeIsInLocalUserInsertion'](_0x9dbc6c)){_0x5ec24e=!0x1;break;}if(_0x5ec24e&&'always'!==this['_trackFormatChanges']){const _0x54e950=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe0c5be,'accept');return this['forceDefaultExecution'](()=>_0x54e950(_0x477f7c,_0x3ee37d,_0x32127a)),null;}const _0x2c73ef=this['editor']['plugins']['get']('Users')['me'];for(const _0x45ef80 of this['getSuggestions']()){if(_0x45ef80['author']['id']!=_0x2c73ef['id'])continue;if('formatBlock'!=_0x45ef80['type']||_0x45ef80['data']['formatGroupId']!=_0x3ee37d['formatGroupId'])continue;if(!qt(_0x45ef80,_0x32127a))continue;const _0x360579=_0x45ef80['subType']==_0xe0c5be;for(let _0x1fa17a=0x0;_0x1fa17a<_0x477f7c['length'];_0x1fa17a++){const _0x42d270=_0x477f7c[_0x1fa17a];for(const _0x16c0f7 of _0x45ef80['getMarkers']()){const _0xb1341c=_0x16c0f7['getRange']();if(_0x42d270['isEqual'](_0xb1341c)){_0x360579?(_0x477f7c['splice'](_0x1fa17a,0x1),_0x1fa17a--):_0x45ef80['removeMarker'](_0x16c0f7['name']);break;}}}}if(0x0==_0x477f7c['length'])return null;const _0x305b56=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe0c5be,'join');for(const _0x27748c of this['getSuggestions']())if(_0x27748c['author']['id']==_0x2c73ef['id']&&'formatBlock'==_0x27748c['type']&&_0x27748c['data']['formatGroupId']==_0x3ee37d['formatGroupId']&&_0x27748c['subType']==_0xe0c5be&&qt(_0x27748c,_0x32127a)&&(_0x305b56(_0x27748c['getRanges'](),_0x477f7c)||_0x305b56(_0x477f7c,_0x27748c['getRanges']()))){for(const _0x39efdf of _0x477f7c)_0x27748c['addRange'](_0x39efdf);return _0x27748c;}const _0x5cb75e=_0x59fd7a(),_0x542722=_0x2c73ef['id'],_0x57dc9c='formatBlock:'+_0xe0c5be,_0x245bad=this['_setSuggestionData']({'id':_0x5cb75e,'type':_0x57dc9c,'data':_0x3ee37d,'createdAt':new Date(),'authorId':_0x542722,'attributes':_0x32127a});for(const _0x510c99 of _0x477f7c)this['_addSuggestionMarker'](_0x57dc9c,_0x5cb75e,_0x542722,_0x510c99,u['getMultiRangeId']());return _0x245bad;}['markDeletion'](_0x196b04,_0xae4ae5=null,_0x47f9cf={}){if(_0x196b04['isCollapsed'])return null;const _0x39122a=this['editor']['plugins']['get']('Users')['me'],_0x4d7062=new _0x1b736b(_0x196b04['start'],_0x196b04['end']);for(const {suggestion:_0x1685ab,meta:_0x5ae19a}of this['_findSuggestions'](_0x4d7062,'insertion'))if(_0x5ae19a['isOwn']&&!_0x5ae19a['isNextTo']){if(_0x1685ab['isMultiRange']){const _0x2062a5=_0x1685ab['getRanges']()['filter'](_0xd08984=>'$graveyard'!=_0xd08984['root']['rootName']);_0x2062a5['every'](_0x444ae5=>_0x4d7062['containsRange'](_0x444ae5,!0x0))&&_0x1685ab['discard']();if(_0x2062a5['some'](_0x123c69=>_0x123c69['containsRange'](_0x4d7062,!0x0))){const _0xfb2789=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xae4ae5,'accept');return this['forceDefaultExecution'](()=>_0xfb2789([_0x4d7062],null,_0x47f9cf)),null;}}else{const _0x50404e=_0x4d7062['getIntersection'](_0x1685ab['getFirstRange']());null!==_0x50404e&&_0x1685ab['_onDiscard']([_0x50404e],null,_0x47f9cf);}}if(_0x4d7062['detach'](),_0x4d7062['isCollapsed']||'$graveyard'==_0x4d7062['root']['rootName'])return null;let _0xea8b19=null,_0x3079ff=_0x4d7062['start'],_0x2c5713=_0x4d7062['end'];const _0x1bdda8=this['_findSuggestions'](_0x4d7062,'deletion');for(const {suggestion:_0x3d86ef,meta:_0x23b089}of _0x1bdda8){const _0x1605fd=this['_model']['createRange'](_0x3079ff,_0x2c5713);if(_0x23b089['isOwn']&&(this['_mergeNestedSuggestions']||!_0x23b089['containsRangeInObject']&&!_0x23b089['isInsideObject'])){if(_0x3d86ef['isMultiRange']){if(!qt(_0x3d86ef,_0x47f9cf))continue;let _0x299d2c=!0x0;for(const _0x38d47b of _0x3d86ef['getRanges']()){if(_0x38d47b['containsRange'](_0x1605fd,!0x0))return _0x3d86ef;_0x1605fd['containsRange'](_0x38d47b)||(_0x299d2c=!0x1);}_0x299d2c&&_0x3d86ef['discard']();}else{const _0xa69087=_0x3d86ef['getFirstRange']();if(_0xa69087['containsRange'](_0x1605fd,!0x0))return _0x3d86ef;if(!qt(_0x3d86ef,_0x47f9cf)){_0x1605fd['containsRange'](_0xa69087)?_0x3d86ef['removeMarkers']():_0xa69087['containsPosition'](_0x3079ff)?_0x3079ff=_0xa69087['end']:_0xa69087['containsPosition'](_0x2c5713)&&(_0x2c5713=_0xa69087['start']);continue;}_0x3079ff=_0x3079ff['isBefore'](_0xa69087['start'])?_0x3079ff:_0xa69087['start'],_0x2c5713=_0x2c5713['isAfter'](_0xa69087['end'])?_0x2c5713:_0xa69087['end'],_0x47f9cf=Object['assign']({},_0x3d86ef['attributes']),_0xea8b19?_0xa69087['start']['isBefore'](_0xea8b19['getFirstRange']()['start'])?(_0xea8b19['removeMarkers'](),_0xea8b19=_0x3d86ef):_0x3d86ef['removeMarkers']():_0xea8b19=_0x3d86ef;}}}if(_0xea8b19)return this['_setSuggestionRange'](_0xea8b19,this['_model']['createRange'](_0x3079ff,_0x2c5713)),_0xea8b19;{const _0xbb8992=_0x59fd7a(),_0x585f9e=this['_model']['createRange'](_0x3079ff,_0x2c5713),_0x2b5e58=_0x39122a['id'],_0x21afe0=_0xae4ae5?'deletion:'+_0xae4ae5:'deletion',_0x1367ac=this['_setSuggestionData']({'id':_0xbb8992,'type':_0x21afe0,'createdAt':new Date(),'authorId':_0x2b5e58,'attributes':_0x47f9cf});return this['_addSuggestionMarker'](_0x21afe0,_0xbb8992,_0x2b5e58,_0x585f9e),_0x1367ac;}}['markMultiRangeDeletion'](_0x2fa91e,_0x2f70ee='multi',_0x35ad71={}){const _0x3e447e=this['editor']['plugins']['get']('Users')['me'],_0x268aaa=_0x2fa91e['map'](_0x50e03d=>new _0x1b736b(_0x50e03d['start'],_0x50e03d['end'])),_0x2fc275=new Set();for(const {suggestion:_0x355c27,meta:_0x96b9}of this['_findSuggestions'](_0x268aaa,'insertion'))_0x96b9['isOwn']&&!_0x96b9['isNextTo']&&_0x2fc275['add'](_0x355c27);for(const _0x2132f9 of _0x2fc275)if(_0x2132f9['isMultiRange']){const _0x50f278=_0x2132f9['getRanges']();(!_0x2132f9['attributes']||!_0x2132f9['attributes']['skipNestingCheck'])&&(_0x50f278['every'](_0x32062b=>_0x268aaa['some'](_0x3a71a9=>_0x3a71a9['containsRange'](_0x32062b,!0x0)))&&_0x2132f9['discard']());if(_0x268aaa['every'](_0x581bc0=>_0x50f278['some'](_0x137197=>_0x137197['containsRange'](_0x581bc0,!0x0)))){const _0x265ba8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f70ee,'accept');return this['forceDefaultExecution'](()=>_0x265ba8(_0x2fa91e,null,_0x35ad71)),null;}}else{const _0x47ada1=_0x2132f9['getFirstRange']();_0x268aaa['some'](_0x55d93b=>_0x55d93b['containsRange'](_0x47ada1,!0x0))&&_0x2132f9['discard']();if(_0x268aaa['every'](_0x21489d=>_0x47ada1['containsRange'](_0x21489d,!0x0))){const _0x421bb6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f70ee,'accept');return this['forceDefaultExecution'](()=>_0x421bb6(_0x268aaa,null,_0x35ad71)),null;}}const _0x5135b2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f70ee,'join');let _0x54ef96=null;for(const _0x4911be of this['getSuggestions']())if(_0x4911be['author']['id']==_0x3e447e['id']&&_0x4911be['isInContent']&&'deletion'==_0x4911be['type']&&_0x4911be['subType']==_0x2f70ee&&qt(_0x4911be,_0x35ad71)&&(_0x5135b2(_0x4911be['getRanges'](),_0x268aaa)||_0x5135b2(_0x268aaa,_0x4911be['getRanges']()))){if(_0x54ef96){if(_0x4911be['commentThread']&&_0x4911be['commentThread']['length'])continue;for(const _0xd3bb1f of _0x4911be['getRanges']())_0x54ef96['isIntersectingWithRange'](_0xd3bb1f)||_0x54ef96['addRange'](_0xd3bb1f);_0x4911be['removeMarkers']();}else{_0x54ef96=_0x4911be;for(const _0xc4b428 of _0x268aaa)_0x4911be['isIntersectingWithRange'](_0xc4b428)||_0x4911be['addRange'](_0xc4b428);}}if(_0x54ef96)return _0x54ef96;_0x2fc275['clear']();for(const {suggestion:_0x2b9b19,meta:_0x4c309a}of this['_findSuggestions'](_0x268aaa,'deletion'))_0x4c309a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4c309a['containsRangeInObject']&&!_0x4c309a['isInsideObject'])&&qt(_0x2b9b19,_0x35ad71)&&_0x2fc275['add'](_0x2b9b19);for(const _0x2c3a74 of _0x2fc275){const _0x749103=_0x2c3a74['getRanges']();if(!_0x35ad71||!_0x35ad71['skipNestingCheck']){if(_0x268aaa['every'](_0x24cd99=>_0x749103['some'](_0x41046=>_0x41046['containsRange'](_0x24cd99,!0x0))))return _0x2c3a74;}(!_0x2c3a74['attributes']||!_0x2c3a74['attributes']['skipNestingCheck'])&&(_0x749103['every'](_0x23cb5e=>_0x268aaa['some'](_0x3455e0=>_0x3455e0['containsRange'](_0x23cb5e,!0x0)))&&_0x2c3a74['discard']());}const _0x2da938=_0x59fd7a(),_0x32b902=_0x3e447e['id'],_0x4517a4='deletion:'+_0x2f70ee,_0x2d401d=this['_setSuggestionData']({'id':_0x2da938,'type':_0x4517a4,'createdAt':new Date(),'authorId':_0x32b902,'attributes':_0x35ad71});for(const _0x3315fa of _0x268aaa)_0x3315fa['detach'](),_0x3315fa['isCollapsed']||'$graveyard'==_0x3315fa['root']['rootName']||this['_addSuggestionMarker'](_0x4517a4,_0x2da938,_0x32b902,_0x3315fa,u['getMultiRangeId']());return _0x2d401d;}['markAttributeChange'](_0x37e577,_0x4c1a31,_0xec1ce4,_0x4849e8,_0x5be183){if(_0x37e577['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x129b5e=this['editor']['plugins']['get']('Users')['me']['id'],_0x5e0f3b=Array['from'](this['_suggestions']['values']())['filter'](_0x4ce9b4=>'attribute'==_0x4ce9b4['type']&&_0x4ce9b4['data']['key']==_0x4c1a31&&_0x4ce9b4['isIntersectingWithRange'](_0x37e577));if('default'===this['_trackFormatChanges']){const _0x496e2d=this['_findSuggestions'](_0x37e577,'insertion')['filter'](({meta:_0x55f649})=>_0x55f649['isOwn']&&!_0x55f649['isInsideObject']&&!_0x55f649['isNextTo'])['map'](({suggestion:_0x477d6e})=>_0x477d6e);_0x5e0f3b['unshift'](..._0x496e2d);}const _0x10e238=new Map([[_0x37e577,_0xec1ce4]]);for(const _0x16570e of _0x5e0f3b){const _0x36d343='attribute'==_0x16570e['type']?_0x16570e['data']['oldValue']:void 0x0,_0x118309=_0x16570e['getFirstRange'](),_0xebf144=Array['from'](_0x10e238['keys']())['find'](_0x1d79d4=>_0x1d79d4['isIntersecting'](_0x118309));if(!_0xebf144)continue;const _0x390d5b=_0xebf144['getDifference'](_0x118309);this['_isBlockAttribute'](_0x4c1a31)&&'insertion'==_0x16570e['type']&&0x0!=_0x390d5b['length']||(_0x10e238['delete'](_0xebf144),_0x390d5b['forEach'](_0x107409=>{_0x10e238['set'](_0x107409,_0xec1ce4);}),'insertion'!=_0x16570e['type']&&_0x36d343!=_0x4849e8&&_0x10e238['set'](_0xebf144['getIntersection'](_0x118309),_0x36d343));}const _0x5662d3=[];for(const [_0x374d9a,_0x27654b]of _0x10e238){const _0x3e1e6d=_0x59fd7a(),_0x2ab436={'key':_0x4c1a31,'oldValue':_0x27654b,'newValue':_0x4849e8};_0x4c1a31['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':_0x4c1a31});const _0x14278a=('attribute:'+(_0x4c1a31+'|'+Gt({'newValue':_0x4849e8})))['substring'](0x0,0x3c),_0x564ae9=this['_setSuggestionData']({'id':_0x3e1e6d,'type':_0x14278a,'data':_0x2ab436,'createdAt':new Date(),'authorId':_0x129b5e,'attributes':_0x5be183});_0x5662d3['push'](_0x564ae9),this['_addSuggestionMarker'](_0x14278a,_0x3e1e6d,_0x129b5e,_0x374d9a);}return _0x5662d3;}['enableDefaultAttributesIntegration'](_0x2fccfd){this['enableCommand'](_0x2fccfd,(_0x427b2b,..._0x3c1422)=>{this['_recordAttributeChanges'](()=>{_0x427b2b(..._0x3c1422);});});}['registerBlockAttribute'](_0xb89387){this['_blockAttributeKeys']['add'](_0xb89387);}['registerInlineAttribute'](_0x1d931d){this['_inlineAttributeKeys']['add'](_0x1d931d);}['_getAttributeKey'](_0x54f8c8){return'attribute'==_0x54f8c8['type']?_0x54f8c8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2488bb,_0x3e42c0){const _0x53f8a3=_0x2488bb['getFirstMarker']();this['_model']['change'](_0x5c1409=>{_0x5c1409['updateMarker'](_0x53f8a3,{'range':_0x3e42c0});});}['_addThreadToSuggestion'](_0x1804f8){const _0x5b8052=_0x1804f8['id'],_0x3d785b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5b8052)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3d785b,'threadId':_0x5b8052,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x163890=this['_commentsRepository']['getCommentThread'](_0x5b8052);_0x163890['unbind']('isRemovable'),_0x163890['isRemovable']=!0x1,_0x1804f8['commentThread']=_0x163890;}['_checkSuggestionCorrectness'](_0x27c145,_0x49ce7e,_0x330008,_0x19b26b){if(_0x27c145['type']!=_0x49ce7e||_0x27c145['subType']!=_0x330008||_0x27c145['creator']['id']!=_0x19b26b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x308934('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x402ab7,_0x40c3bd){const _0x8ae9fb=_0x402ab7['getFirstRange']();if(_0x40c3bd['isEqual'](_0x8ae9fb))_0x402ab7['removeMarkers']();else{if(_0x8ae9fb['containsRange'](_0x40c3bd)){const _0x2474b6=this['_model']['createPositionAt'](_0x40c3bd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x402ab7,this['_model']['createRange'](_0x8ae9fb['start'],_0x2474b6));const _0x5224eb=_0x59fd7a(),_0x3835ec=_0x402ab7['creator']['id'],_0x480f78=_0x402ab7['type']+':'+_0x402ab7['subType'];this['_setSuggestionData']({'id':_0x5224eb,'type':_0x480f78,'createdAt':new Date(),'authorId':_0x3835ec,'data':_0x402ab7['data'],'attributes':_0x402ab7['attributes']});const _0x399b3f=this['_model']['createPositionAt'](_0x40c3bd['end']['parent'],'after'),_0x5d76a7=this['_model']['createRange'](_0x399b3f,_0x8ae9fb['end']);this['_addSuggestionMarker'](_0x480f78,_0x5224eb,_0x3835ec,_0x5d76a7);}else{if(_0x8ae9fb['containsPosition'](_0x40c3bd['start'])){const _0x39b153=this['_model']['createPositionAt'](_0x40c3bd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x402ab7,this['_model']['createRange'](_0x8ae9fb['start'],_0x39b153));}else{const _0x3e782f=this['_model']['createPositionAt'](_0x40c3bd['end']['parent'],'after');this['_setSuggestionRange'](_0x402ab7,this['_model']['createRange'](_0x3e782f,_0x8ae9fb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1ee35e){for(const {suggestion:_0x373c47,meta:_0x112432}of this['_findSuggestions'](_0x1ee35e,'insertion')){if(!_0x112432['isOwn'])continue;const _0x5f4e15=_0x373c47['getRanges']();for(const _0x494293 of _0x5f4e15)if(!_0x1ee35e['getDifference'](_0x494293)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x447efe){const _0x354696=this['editor']['plugins']['get']('Users')['getUser'](_0x447efe);if(!_0x354696)throw new _0x308934('track-changes-user-not-found',this);return _0x354696;}['_getExternalAuthor'](_0x1d175d){const _0x4f1aeb=this['editor']['plugins']['get']('Users'),_0x690217=_0x1ca084('external:'+_0x1d175d),_0x15a762=_0x4f1aeb['getUser'](_0x690217);return _0x15a762||_0x4f1aeb['addUser']({'id':_0x690217,'name':_0x1d175d});}['_createSuggestion'](_0x4f9ae9,_0x4b58fa,_0x2c87f4,_0x285edd,_0x29c5b4){const _0x114555=this['_getAuthorFromId'](_0x285edd),_0x441c89=this['_suggestionFactory']['buildSuggestion'](_0x4f9ae9,_0x4b58fa,_0x2c87f4,_0x114555,_0x29c5b4,_0x4574d9=>{this['_updateSuggestionData'](_0x2c87f4,{'attributes':_0x4574d9});const _0x1f5725=this['getSuggestion'](_0x2c87f4);this['_joinWithAdjacentSuggestions'](new Set([_0x1f5725])),this['_refreshSuggestionsChain'](new Set([_0x1f5725]));});return this['listenTo'](_0x441c89,'accept',()=>{this['_updateSuggestionData'](_0x2c87f4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x441c89,'discard',()=>{this['_updateSuggestionData'](_0x2c87f4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2c87f4,_0x441c89),this['_suggestionState']['set'](_0x441c89,'notReady'),_0x441c89;}['_splitMarkerName'](_0x4f4e42){const _0x48d503=_0x4f4e42['split'](':');return{'group':_0x48d503[0x0],'type':_0x48d503[0x1],'subType':_0x48d503['length']>=0x5?_0x48d503[0x2]:null,'id':_0x48d503['length']<0x5?_0x48d503[0x2]:_0x48d503[0x3],'authorId':_0x48d503['length']<0x5?_0x48d503[0x3]:_0x48d503[0x4],'markerCount':0x6==_0x48d503['length']?_0x48d503[0x5]:null};}['_breakSuggestionMarker'](_0x323e45,_0x3c5dc3,_0x5cab41){const _0xde281d=_0x323e45['getFirstRange'](),_0x41ba16=_0xde281d['start'],_0x342240=_0xde281d['end'];this['_setSuggestionRange'](_0x323e45,this['_model']['createRange'](_0x41ba16,_0x3c5dc3));const _0x1033e6=_0x59fd7a(),_0x1d37bd=_0x323e45['creator']['id'],_0x548603=_0x323e45['type']+(_0x323e45['subType']?':'+_0x323e45['subType']:'');this['_setSuggestionData']({'id':_0x1033e6,'type':_0x548603,'createdAt':new Date(),'authorId':_0x1d37bd,'originalSuggestionId':_0x323e45['id'],'attributes':_0x323e45['attributes'],'data':_0x323e45['data']});const _0x17cce2=this['_getAttributeKey'](_0x323e45);('formatBlock'==_0x323e45['type']||_0x17cce2&&this['_isBlockAttribute'](_0x17cce2))&&(_0x5cab41=this['_model']['createPositionBefore'](_0x5cab41['parent'])),this['_addSuggestionMarker'](_0x548603,_0x1033e6,_0x1d37bd,this['_model']['createRange'](_0x5cab41,_0x342240));}['_findSuggestions'](_0x48556f,_0x209e84=null){const _0x5d86bc=[],_0x16f6d1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x48556f)||(_0x48556f=[_0x48556f]);for(const _0x45c6a9 of this['getSuggestions']()){if(!_0x45c6a9['isInContent'])continue;if(_0x209e84&&_0x45c6a9['type']!=_0x209e84)continue;let _0x405697=!0x1;for(const _0xbe486f of _0x45c6a9['getRanges']()){for(const _0x3b6408 of _0x48556f){const _0x48c828=_0x3b6408['start']['isEqual'](_0xbe486f['end'])||_0x3b6408['end']['isEqual'](_0xbe486f['start']);if(_0x48c828||_0x3b6408['getIntersection'](_0xbe486f)){const _0x1b7925=_0x3b6408['containsRange'](_0xbe486f)&&Ot(this['_model']['schema'],_0xbe486f['start'],_0x3b6408),_0x50e86=_0xbe486f['containsRange'](_0x3b6408)&&Ot(this['_model']['schema'],_0x3b6408['start'],_0xbe486f);_0x5d86bc['push']({'suggestion':_0x45c6a9,'meta':{'isOwn':_0x16f6d1==_0x45c6a9['author'],'isNextTo':_0x48c828,'isInsideObject':_0x1b7925,'containsRangeInObject':_0x50e86}}),_0x405697=!0x0;break;}}if(_0x405697)break;}}return _0x5d86bc;}['_addSuggestionMarker'](_0x415f1b,_0x5338e4,_0x12d0da,_0x46a702,_0x1b2b4d){this['_model']['change'](_0x15895a=>{let _0x4eb490='suggestion:'+_0x415f1b+':'+_0x5338e4+':'+_0x12d0da;_0x1b2b4d&&(_0x4eb490=_0x4eb490+':'+_0x1b2b4d),_0x15895a['addMarker'](_0x4eb490,{'range':_0x46a702,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x26f843){const _0xd175b5=_0x26f843['previous'],_0x23fe6c=_0x26f843['next'];_0x26f843['previous']=null,_0x26f843['next']=null,null!=_0xd175b5&&_0xd175b5['next']==_0x26f843&&(_0xd175b5['next']=_0x23fe6c),null!=_0x23fe6c&&_0x23fe6c['previous']==_0x26f843&&(_0x23fe6c['previous']=_0xd175b5),'ready'==this['_suggestionState']['get'](_0x26f843)&&(this['_suggestionState']['set'](_0x26f843,'removed'),this['fire']('suggestionUnloaded',_0x26f843,_0xd175b5,_0x23fe6c));}['_setSuggestionData'](_0x36ddd5){const _0x503d9e=_0x36ddd5['id'],_0x2d4d3f=this['addSuggestionData'](_0x36ddd5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3a545e=this['editor']['plugins']['get']('PendingActions'),_0xb946a6=_0x2d4d3f['hasComments'],_0x5c09d7=_0x2d4d3f['subType']?_0x2d4d3f['type']+':'+_0x2d4d3f['subType']:_0x2d4d3f['type'],_0x1cbb18=this['editor']['locale'],_0xbbfb3=_0x3a545e['add'](o(_0x1cbb18,'PENDING_ACTION_SUGGESTION')),_0x5b832e={'id':_0x503d9e,'type':_0x5c09d7,'hasComments':_0xb946a6,'data':_0x36ddd5['data']||null,'originalSuggestionId':_0x36ddd5['originalSuggestionId']||null,'attributes':_0x2d4d3f['attributes']};this['_adapter']['addSuggestion'](_0x5b832e)['then'](_0x1e5037=>{_0x2d4d3f['_saved']=!0x0,_0x3a545e['remove'](_0xbbfb3),_0x1e5037&&_0x1e5037['createdAt']&&(this['_suggestions']['get'](_0x503d9e)['createdAt']=_0x1e5037['createdAt']);})['catch'](_0x18dcbb=>{throw _0x357efb('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2d4d3f['discard']();}),_0x2d4d3f['stopListening'](),this['_suggestions']['delete'](_0x2d4d3f['id']),this['_suggestionState']['delete'](_0x2d4d3f),_0x18dcbb;});}return _0x2d4d3f;}['_isBlockAttribute'](_0x2afd54){return this['_blockAttributeKeys']['has'](_0x2afd54);}['_updateSuggestionData'](_0x1e0903,_0x4283fb){const _0x111f62=this['editor']['plugins']['get']('PendingActions'),_0x36cf82=this['getSuggestion'](_0x1e0903);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x36cf82['_saved']){const _0x2bd071=_0x111f62['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1e0903,_0x4283fb)['then'](()=>{_0x111f62['remove'](_0x2bd071);});}else _0x36cf82['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1e0903,_0x4283fb);});}}['_getSuggestionData'](_0x19412e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x308934('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x19412e);}['_handleNewSuggestionMarker'](_0x442187){const {id:_0x256b7e,type:_0x4f805b,subType:_0x4f5f80,authorId:_0x4be83b}=this['_splitMarkerName'](_0x442187),_0xa0a80=this['_suggestions']['get'](_0x256b7e)||this['_createSuggestion'](_0x4f805b,_0x4f5f80,_0x256b7e,_0x4be83b,{});switch(this['_checkSuggestionCorrectness'](_0xa0a80,_0x4f805b,_0x4f5f80,_0x4be83b),this['_suggestionState']['get'](_0xa0a80)){case'notReady':this['_getSuggestionData'](_0x256b7e)['then'](_0x2248cf=>{let _0x3f941e=Promise['resolve']();_0x2248cf['hasComments']&&(_0x3f941e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x256b7e})),_0x3f941e['then'](()=>{this['addSuggestionData'](_0x2248cf)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xa0a80,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x256b7e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xa0a80,'ready'),this['fire']('suggestionLoaded',_0xa0a80);break;case'ready':this['fire']('suggestionChanged',_0xa0a80);}return _0xa0a80['addMarkerName'](_0x442187),_0xa0a80;}['_refreshSuggestionsChain'](_0x14376e){const _0x188837=Array['from'](_0x14376e),_0x175020=_0x188837['filter'](_0x2235d7=>'attribute'==_0x2235d7['type']);this['_refreshAttributeSuggestionsChain'](_0x175020);const _0x5b5afa=_0x188837['filter'](_0x1a4c6f=>!_0x1a4c6f['isMultiRange']&&'attribute'!=_0x1a4c6f['type']),_0x327c5f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b8ab4=>!_0x2b8ab4['isMultiRange']&&'attribute'!=_0x2b8ab4['type']),_0x2ff629=_0x327c5f['filter'](_0x3f7760=>!_0x14376e['has'](_0x3f7760)),_0x24eb70=new Map(_0x327c5f['map'](_0x502ede=>[_0x502ede,this['_suggestionFactory']['getSuggestionCallback'](_0x502ede['type'],_0x502ede['subType'],'chain')])),_0x3e0935=new Map(_0x327c5f['map'](_0x4c0ff6=>[_0x4c0ff6,_0x4c0ff6['getFirstRange']()])),_0x4c9939=new Set(),_0x1fbf26=new Set();for(let _0x3b083d=0x0;_0x3b083d<_0x5b5afa['length'];_0x3b083d++)_0x19f9b2(_0x5b5afa[_0x3b083d],_0x5b5afa,_0x3b083d+0x1);for(let _0x1603d1=0x0;_0x1603d1<_0x5b5afa['length'];_0x1603d1++)_0x19f9b2(_0x5b5afa[_0x1603d1],_0x2ff629,0x0);const _0x3ff8a0=new Set();for(let _0x5a1080=0x0;_0x5a1080<_0x5b5afa['length'];_0x5a1080++){const _0x7c20fe=_0x5b5afa[_0x5a1080];!_0x1fbf26['has'](_0x7c20fe)&&_0x7c20fe['previous']&&(_0x3ff8a0['add'](_0x7c20fe['previous']),_0x7c20fe['previous']['next']===_0x7c20fe&&(_0x7c20fe['previous']['next']=null),_0x7c20fe['previous']=null),!_0x4c9939['has'](_0x7c20fe)&&_0x7c20fe['next']&&(_0x3ff8a0['add'](_0x7c20fe['next']),_0x7c20fe['next']['previous']===_0x7c20fe&&(_0x7c20fe['next']['previous']=null),_0x7c20fe['next']=null);}function _0x19f9b2(_0x19873a,_0x14c11b,_0x437fdc){for(let _0x26026f=_0x437fdc;_0x26026f<_0x14c11b['length'];_0x26026f++){const _0xf65ad6=_0x428179(_0x19873a,_0x14c11b[_0x26026f]);_0xf65ad6&&(_0xf65ad6[0x0]['next']=_0xf65ad6[0x1],_0xf65ad6[0x1]['previous']=_0xf65ad6[0x0],_0x4c9939['add'](_0xf65ad6[0x0]),_0x1fbf26['add'](_0xf65ad6[0x1]));}}function _0x428179(_0x5d28ca,_0x1f31f6){if(_0x5d28ca['author']['id']!==_0x1f31f6['author']['id'])return null;const _0x60726=_0x24eb70['get'](_0x5d28ca)(_0x5d28ca,_0x1f31f6,_0x3e0935['get'](_0x5d28ca),_0x3e0935['get'](_0x1f31f6));if(!_0x60726)return null;return _0x24eb70['get'](_0x1f31f6)(_0x5d28ca,_0x1f31f6,_0x3e0935['get'](_0x5d28ca),_0x3e0935['get'](_0x1f31f6))?_0x60726[0x1]['commentThread']&&_0x60726[0x1]['commentThread']['length']?null:_0x60726:null;}_0x3ff8a0['size']&&this['_refreshSuggestionsChain'](_0x3ff8a0);}['_refreshAttributeSuggestionsChain'](_0x56761b){if(0x0==_0x56761b['length'])return;const _0x27b676=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x231b82=>'attribute'==_0x231b82['type']&&_0x231b82['_isDataLoaded']),_0x154524=[],_0x549481=new Map();for(const _0x841c52 of _0x27b676){const _0x53f0f8=_0x1ca084(_0x841c52['attributes']);_0x549481['has'](_0x53f0f8)||(_0x549481['set'](_0x53f0f8,_0x154524['length']),_0x154524['push']([]));const _0x75969d=_0x549481['get'](_0x53f0f8);_0x154524[_0x75969d]['push'](_0x841c52);}!(function(){_0x154524['sort']((_0x43e1f4,_0x1f4a2e)=>{const _0x19fc19=_0x43e1f4[0x0]['createdAt'],_0x5e9d43=_0x1f4a2e[0x0]['createdAt'];return _0x19fc19==_0x5e9d43?_0x43e1f4[0x0]['attributes']['groupId']<_0x1f4a2e[0x0]['attributes']['groupId']?-0x1:0x1:_0x19fc19<_0x5e9d43?-0x1:0x1;});for(const _0x5d483e of _0x154524)_0x5d483e['sort']((_0x2dc60a,_0x5b270b)=>_0x2dc60a['id']<_0x5b270b['id']?-0x1:0x1);}());for(let _0x1a2068=0x0;_0x1a2068<_0x154524['length'];_0x1a2068++){if(0x0==_0x154524[_0x1a2068]['length'])continue;const _0x184eb6=[];for(let _0x2d5fc3=_0x1a2068+0x1;_0x2d5fc3<_0x154524['length'];_0x2d5fc3++)0x0!=_0x154524[_0x2d5fc3]['length']&&_0x3e3f9d(_0x154524[_0x1a2068],_0x154524[_0x2d5fc3])&&_0x184eb6['push'](_0x2d5fc3);for(const _0x541e2b of _0x184eb6)_0x154524[_0x1a2068]=_0x154524[_0x1a2068]['concat'](_0x154524[_0x541e2b]),_0x154524[_0x541e2b]=[];}for(const _0x5392df of _0x154524)for(let _0x410ef6=0x0;_0x410ef6<_0x5392df['length'];_0x410ef6++){const _0x19c053=_0x5392df[_0x410ef6+0x1]||null;_0x5392df[_0x410ef6]['next']!==_0x19c053&&(_0x5392df[_0x410ef6]['next']=_0x19c053);}for(const _0x30de86 of _0x154524)for(let _0x2321e9=0x0;_0x2321e9<_0x30de86['length'];_0x2321e9++){const _0x4971ed=_0x30de86[_0x2321e9-0x1]||null;_0x30de86[_0x2321e9]['previous']!==_0x4971ed&&(_0x30de86[_0x2321e9]['previous']=_0x4971ed);}function _0x3e3f9d(_0x276032,_0x5277ab){if(_0x276032[0x0]['attributes']['groupId']!==_0x5277ab[0x0]['attributes']['groupId']&&_0x276032[0x0]['author']!==_0x5277ab[0x0]['author'])return!0x1;if(!function(_0x296137,_0x20fc12){if(!_0x296137['hasComments']&&!_0x20fc12['hasComments'])return!0x0;if(_0x296137['hasComments']&&_0x20fc12['hasComments'])return!0x1;if(_0x296137['hasComments']&&_0x20fc12['createdAt']<_0x296137['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x20fc12['hasComments']&&_0x296137['createdAt']<_0x20fc12['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x276032[0x0],_0x5277ab[0x0]))return!0x1;const _0x26c9e1=Tt(_0x276032[0x0]['attributes'],'groupId'),_0x4f79cc=Tt(_0x5277ab[0x0]['attributes'],'groupId');if(!_0x135c1f(_0x26c9e1,_0x4f79cc))return!0x1;return!!_0x276032['every'](_0xb7ae86=>_0x5277ab['some'](_0x14b565=>_0xb7ae86['getFirstRange']()['isEqual'](_0x14b565['getFirstRange']())))&&_0x5277ab['every'](_0x2b7949=>_0x276032['some'](_0x217172=>_0x2b7949['getFirstRange']()['isEqual'](_0x217172['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2ac043){const _0x50c3fc=Array['from'](_0x2ac043),_0x2b3eb3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x32112c=_0x2b3eb3['filter'](_0x4ce44a=>!_0x2ac043['has'](_0x4ce44a)),_0x42ae89=new Map(_0x50c3fc['map'](_0x20edc8=>[_0x20edc8,this['_suggestionFactory']['getSuggestionCallback'](_0x20edc8['type'],_0x20edc8['subType'],'join')])),_0x1782ac=new Map(_0x2b3eb3['map'](_0xbb43cf=>[_0xbb43cf,_0xbb43cf['getRanges']()]));for(let _0x9a8dde=0x0;_0x9a8dde<_0x50c3fc['length'];_0x9a8dde++){if(_0x24354c(this,_0x50c3fc[_0x9a8dde],_0x50c3fc,_0x9a8dde+0x1))return!0x0;}for(let _0x255e97=0x0;_0x255e97<_0x50c3fc['length'];_0x255e97++){if(_0x24354c(this,_0x50c3fc[_0x255e97],_0x32112c,0x0))return!0x0;}return!0x1;function _0x24354c(_0x2531cd,_0x22ecc6,_0x52c54d,_0x2f2acc){for(let _0x57e4c4=_0x2f2acc;_0x57e4c4<_0x52c54d['length'];_0x57e4c4++){const _0x250b0a=_0x52c54d[_0x57e4c4];if(_0x250b0a['type']!==_0x22ecc6['type']||_0x250b0a['author']['id']!==_0x22ecc6['author']['id']||_0x250b0a['subType']!==_0x22ecc6['subType'])continue;if(!Jt(_0x22ecc6,_0x250b0a))continue;if('attribute'==_0x22ecc6['type']&&_0x22ecc6['data']['oldValue']!=_0x250b0a['data']['oldValue'])continue;if('attribute'==_0x22ecc6['type']&&_0x2531cd['_isBlockAttribute'](_0x22ecc6['data']['key']))continue;if('formatBlock'==_0x22ecc6['type']){const _0x37207e=_0x2531cd['editor']['model'],_0x49c39e=_0x22ecc6['getContainedElement']();if(_0x49c39e&&(_0x37207e['schema']['isObject'](_0x49c39e)||_0x37207e['schema']['isLimit'](_0x49c39e)))continue;}const _0x1c2949=_0x42ae89['get'](_0x22ecc6),_0x5ed6bb=_0x1782ac['get'](_0x22ecc6),_0x4ecf6e=_0x1782ac['get'](_0x250b0a),_0x2a72c0=_0x22ecc6['commentThread']&&_0x22ecc6['commentThread']['length'],_0x3e311c=_0x250b0a['commentThread']&&_0x250b0a['commentThread']['length'];if(!_0x2a72c0&&_0x1c2949(_0x4ecf6e,_0x5ed6bb))return _0x2531cd['_joinSuggestions'](_0x250b0a,_0x22ecc6),_0x1782ac['delete'](_0x22ecc6),!0x0;if(!_0x3e311c&&_0x1c2949(_0x5ed6bb,_0x4ecf6e))return _0x2531cd['_joinSuggestions'](_0x22ecc6,_0x250b0a),_0x1782ac['delete'](_0x250b0a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2d91df,_0x11bf6c){if(_0x2d91df['isMultiRange']){for(const _0x255313 of _0x11bf6c['getRanges']())_0x2d91df['addRange'](_0x255313);}else{const _0xfe5480=_0x11bf6c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2d91df,this['_model']['createRange'](_0x2d91df['getFirstRange']()['start'],_0xfe5480));}_0x11bf6c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x7b103d,_0x369a17,_0x4a7ae6){const _0x17b75c=_0x7b103d['startsWith']('format')||_0x7b103d['startsWith']('attribute')?'FORMATTING':_0x7b103d['toUpperCase']();return o(this['editor']['locale'],_0x369a17+'_'+_0x17b75c+'_SUGGESTION_ANNOUNCEMENT',_0x4a7ae6);}['_initAriaMarkerChangeAnnouncements'](){const _0x5009f6=this['editor'];if(!_0x5009f6['ui'])return;const {ariaLiveAnnouncer:_0x2e283e}=_0x5009f6['ui'];_0x5694a6(this['_model'],({left:_0x243457,entered:_0x43c8db})=>{for(const _0x5583f2 of _0x243457){const {group:_0x36ffcd,type:_0x5dc023}=this['_splitMarkerName'](_0x5583f2['name']);if('suggestion'===_0x36ffcd){_0x2e283e['announce'](this['_getMarkerAnnouncementText'](_0x5dc023,'LEAVE'));break;}}for(const _0x25781b of _0x43c8db){const {group:_0x3b7223,type:_0x5a85c4}=this['_splitMarkerName'](_0x25781b['name']);if('suggestion'===_0x3b7223){_0x2e283e['announce'](this['_getMarkerAnnouncementText'](_0x5a85c4,'ENTER',_0xc926a6(_0x35c178)));break;}}});}['_processAttributeChanges'](_0x5099d2){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2b97d6=this['editor'],_0x13dec6=_0x2b97d6['model']['document']['differ']['getChanges']();if(0x0==_0x13dec6['length'])return!0x1;const _0x17ffde=[],_0x43ffcd=_0x13dec6['filter'](_0xef6c2b=>'attribute'==_0xef6c2b['type']),_0x4bc521=_0x13dec6['filter'](_0x596528=>'insert'==_0x596528['type']&&'$text'!=_0x596528['name']),_0x52a144=_0x13dec6['filter'](_0x121e9b=>'remove'==_0x121e9b['type']&&'$text'!=_0x121e9b['name']);for(const _0x5b1d23 of _0x43ffcd)_0x17ffde['push']({'key':_0x5b1d23['attributeKey'],'newValue':_0x5b1d23['attributeNewValue'],'oldValue':_0x5b1d23['attributeOldValue'],'range':Pt(_0x5b1d23['range'],_0x2b97d6['model'])});for(const _0x298294 of _0x4bc521){const _0xa183c9=_0x52a144['find'](_0x385c47=>_0x385c47['position']['isEqual'](_0x298294['position']));_0xa183c9&&_0x17ffde['push']({'key':m,'newValue':_0x298294['name'],'oldValue':_0xa183c9['name'],'range':_0x2b97d6['model']['createRangeOn'](_0x298294['position']['nodeAfter'])});}return 0x0!=_0x17ffde['length']&&this['_reduceExistingSuggestions'](_0x5099d2,_0x17ffde);}['_processAttributeSuggestions'](_0x18b3a0){let _0x40b39c=!0x1;const _0x33ee1a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x13eac5=>_0x13eac5['data']['newRange']&&_0x13eac5['name']['startsWith']('suggestion:attribute:'));for(const _0x2913f1 of _0x33ee1a){const {subType:_0x409e9b,id:_0x156733}=this['_splitMarkerName'](_0x2913f1['name']),_0x52bd34=_0x409e9b['split']('|')[0x0];for(const _0x5314fb of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5314fb['id']!=_0x156733&&'attribute'==_0x5314fb['type']&&_0x5314fb['data']&&_0x5314fb['data']['key']==_0x52bd34&&_0x5314fb['getFirstRange']()['isIntersecting'](_0x2913f1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5314fb,_0x2913f1['data']['newRange'],_0x18b3a0),_0x40b39c=!0x0);}return _0x40b39c;}['_recordAttributeChanges'](_0x5baf33){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x5baf33();}['_isRegisteredAttribute'](_0x8e6752){const _0x32bc85=this['_isBlockAttribute'](_0x8e6752),_0x497dfa=this['_inlineAttributeKeys']['has'](_0x8e6752);return _0x32bc85||_0x497dfa;}['_reduceExistingSuggestions'](_0x4965ee,_0x2f6877){if(0x0==_0x2f6877['length'])return!0x1;let _0x17e616=!0x1;for(const _0x28e357 of _0x2f6877){const _0x32b222=this['_findSuggestions'](_0x28e357['range'],'attribute')['filter'](_0x2ad0a5=>!_0x2ad0a5['meta']['isNextTo'])['map'](_0x3784ce=>_0x3784ce['suggestion']),_0x128492=_0x1ca084({'newValue':_0x28e357['newValue']});_0x32b222['filter'](_0xa61d40=>{const [_0x149af9,_0x1c69ce]=_0xa61d40['subType']['split']('|');return _0x149af9==_0x28e357['key']&&_0x1c69ce!=_0x128492;})['forEach'](_0x56b2c1=>{this['_reduceSuggestionAttributeRange'](_0x56b2c1,_0x28e357['range'],_0x4965ee),_0x17e616=!0x0;});}return _0x17e616;}['_reduceSuggestionAttributeRange'](_0x1059c2,_0x35b16f,_0xf49883){const _0x141974=_0x1059c2['getFirstRange']()['getDifference'](_0x35b16f);0x0!==_0x141974['length']?0x1!==_0x141974['length']?this['_breakSuggestionMarker'](_0x1059c2,_0x35b16f['start'],_0x35b16f['end']):this['_setSuggestionRange'](_0x1059c2,_0x141974[0x0]):_0xf49883['removeMarker'](_0x1059c2['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4d6247){this['_editor']=_0x4d6247,this['_model']=_0x4d6247['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x133214,_0x137a80,_0x441576,_0x1df928,_0x37d357,_0x12b137){return new u(this['_model'],{'type':_0x133214,'subType':_0x137a80,'id':_0x441576,'author':_0x1df928,'creator':_0x1df928,'attributes':_0x37d357,'onAttributesChange':_0x12b137,'onAccept':(..._0x55ad3f)=>this['getSuggestionCallback'](_0x133214,_0x137a80,'accept')(..._0x55ad3f),'onDiscard':(..._0x2108a9)=>this['getSuggestionCallback'](_0x133214,_0x137a80,'discard')(..._0x2108a9)});}['registerCustomCallback'](_0x5e6764,_0x15cc65,_0xee2ebd,_0x1495d8){const _0x5250de=_0x5e6764+':'+_0x15cc65+':'+_0xee2ebd;this['_customCallbacks']['set'](_0x5250de,_0x1495d8);}['getSuggestionCallback'](_0x400672,_0x30b87c,_0x4e754b){const _0x403829=_0x400672+':'+_0x30b87c+':'+_0x4e754b;return this['_customCallbacks']['get'](_0x403829)||this['_defaultCallbacks']['get'](_0x400672+':'+_0x4e754b);}['_registerDefaultCallbacks'](){const _0x799a82=()=>!0x1,_0x1b0f4c=_0x53b7b8=>{_0x53b7b8['sort']((_0x48e1b3,_0x1697fe)=>_0x48e1b3['start']['isBefore'](_0x1697fe['start'])?0x1:-0x1),this['_model']['change'](_0x5b824c=>{for(const _0x19fc4e of _0x53b7b8){let _0x41a46b;_0x41a46b=_0x19fc4e['end']['isAtEnd']&&_0x19fc4e['end']['parent']==_0x19fc4e['start']['nodeAfter']?_0x5b824c['createSelection'](_0x19fc4e['start']['nodeAfter'],'on'):_0x5b824c['createSelection'](_0x19fc4e),this['_model']['deleteContent'](_0x41a46b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3efa13=(_0x17f25e,_0x23197b)=>{_0x23197b&&this['_model']['change'](_0x568615=>{const {commandName:_0x70a1d8,commandParams:_0x45b11c=[]}=_0x23197b,_0x9e05c2=_0x17f25e['map'](_0x2f181f=>(Vt(_0x2f181f)&&(_0x2f181f=this['_model']['createRange'](_0x2f181f['end'])),_0x2f181f))['filter'](_0x43efe=>'$graveyard'!==_0x43efe['root']['rootName']);if(_0x9e05c2['length']<0x1)return;const _0x4936b0=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x11d527=>_0x1b736b['fromRange'](_0x11d527));_0x568615['setSelection'](_0x9e05c2);for(const _0x5c320e of this['_editor']['commands']['commands']())_0x5c320e['refresh']();_0x45b11c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x70a1d8,..._0x45b11c);const _0x236ed1=_0x4936b0['filter'](_0x5b227a=>'$graveyard'!=_0x5b227a['root']['rootName']);_0x236ed1['length']>0x0&&_0x568615['setSelection'](_0x236ed1);for(const _0x42ff16 of _0x4936b0)_0x42ff16['detach']();});},_0x48f508=(_0x11ccab,_0x56d077)=>0x1==_0x11ccab['length']&&0x1==_0x56d077['length']&&_0x11ccab[0x0]['end']['isEqual'](_0x56d077[0x0]['start']),_0x28964c=(_0x3fe4b9,_0x2afd51,_0x3c416d,_0x4bd641)=>Ht(_0x3fe4b9,_0x2afd51,_0x3c416d,_0x4bd641,this['_model'])?[_0x3fe4b9,_0x2afd51]:Ht(_0x2afd51,_0x3fe4b9,_0x4bd641,_0x3c416d,this['_model'])?[_0x2afd51,_0x3fe4b9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x799a82),this['_defaultCallbacks']['set']('insertion:discard',_0x1b0f4c),this['_defaultCallbacks']['set']('insertion:join',_0x48f508),this['_defaultCallbacks']['set']('insertion:chain',_0x28964c),this['_defaultCallbacks']['set']('deletion:accept',_0x1b0f4c),this['_defaultCallbacks']['set']('deletion:discard',_0x799a82),this['_defaultCallbacks']['set']('deletion:join',_0x48f508),this['_defaultCallbacks']['set']('deletion:chain',_0x28964c),this['_defaultCallbacks']['set']('formatInline:accept',_0x3efa13),this['_defaultCallbacks']['set']('formatInline:discard',_0x799a82),this['_defaultCallbacks']['set']('formatInline:join',_0x48f508),this['_defaultCallbacks']['set']('formatInline:chain',_0x799a82),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3efa13),this['_defaultCallbacks']['set']('formatBlock:discard',_0x799a82),this['_defaultCallbacks']['set']('formatBlock:join',_0x48f508),this['_defaultCallbacks']['set']('formatBlock:chain',_0x799a82),this['_defaultCallbacks']['set']('attribute:accept',_0x799a82),this['_defaultCallbacks']['set']('attribute:discard',(_0x2be09c,_0x14d2e8)=>{if(!_0x14d2e8)return;const _0x4d9477=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1058ed=>{if(_0x14d2e8['key']==m)for(const _0x26ac21 of _0x2be09c){const _0x5875e9=_0x26ac21['start']['nodeAfter'],_0x5a0881=_0x14d2e8['oldValue'];_0x1058ed['rename'](_0x5875e9,_0x5a0881);}else{if(_0x4d9477['_isBlockAttribute'](_0x14d2e8['key'])){for(const _0x4ed852 of _0x2be09c)void 0x0!==_0x14d2e8['oldValue']?_0x1058ed['setAttribute'](_0x14d2e8['key'],_0x14d2e8['oldValue'],_0x4ed852['start']['nodeAfter']):_0x1058ed['removeAttribute'](_0x14d2e8['key'],_0x4ed852['start']['nodeAfter']);}else{for(const _0x39b647 of _0x2be09c)_0x14d2e8['oldValue']?_0x1058ed['setAttribute'](_0x14d2e8['key'],_0x14d2e8['oldValue'],_0x39b647):_0x1058ed['removeAttribute'](_0x14d2e8['key'],_0x39b647);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x48f508);}}function Ot(_0x320d8e,_0x412f2c,_0x5d39dd){for(const _0xf3b0a6 of _0x412f2c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xf3b0a6['root']==_0xf3b0a6)return!0x1;if(!_0x5d39dd['containsItem'](_0xf3b0a6))return!0x1;if(_0x320d8e['isObject'](_0xf3b0a6)||_0x320d8e['isLimit'](_0xf3b0a6))return!0x0;}return!0x1;}function Vt(_0x414253){return _0x414253['end']['parent']==_0x414253['start']['nodeAfter']&&_0x414253['end']['isAtStart'];}function Ut(_0x3941f1,_0x3a30b9,_0x1cad00,_0x1e77b7){const _0x1bf06e=_0x5cee17=>!_0x5cee17['item']['is']('$textProxy')&&!_0x1e77b7['isObject'](_0x5cee17['item']),_0x390754=_0x3941f1['start']['getLastMatchingPosition'](_0x1bf06e),_0x47c28c=_0x3941f1['end']['getLastMatchingPosition'](_0x1bf06e,{'direction':'backward'});return(!_0x3941f1['start']['isEqual'](_0x390754)||!_0x3941f1['end']['isEqual'](_0x47c28c))&&(_0x390754['isBefore'](_0x47c28c)?_0x1cad00['updateMarker'](_0x3a30b9,{'range':_0x1cad00['createRange'](_0x390754,_0x47c28c)}):_0x1cad00['removeMarker'](_0x3a30b9),!0x0);}function Gt(_0x21f6ed){return _0x1ca084(_0x21f6ed);}function Ft(_0x170312){const _0x404459=_0x170312['start']['nodeAfter'];return _0x404459&&_0x404459['is']('element');}function Pt(_0x247ff,_0x1a5189){return null==_0x247ff['end']['nodeBefore']&&_0x247ff['end']['parent']==_0x247ff['start']['nodeAfter']?Lt(_0x247ff['start']['nodeAfter'],_0x1a5189):_0x247ff;}function Lt(_0x494650,_0x1709c5){const _0x1ea774=_0x1709c5['schema']['isObject'](_0x494650)||_0x1709c5['schema']['isSelectable'](_0x494650);return _0x1709c5['createRange'](_0x1709c5['createPositionAt'](_0x494650,'before'),_0x1ea774?_0x1709c5['createPositionAfter'](_0x494650):_0x1709c5['createPositionAt'](_0x494650,'end'));}function Ht(_0x4a2201,_0x4b57cb,_0x55b903,_0x9b7dc5,_0x39fecc){if(_0x4a2201['next'])return!0x1;if(!Jt(_0x4a2201,_0x4b57cb))return!0x1;if(_0x55b903['end']['isEqual'](_0x9b7dc5['start']))return!0x0;if(_0x4a2201['type']!=_0x4b57cb['type'])return!0x1;if(!_0x55b903['end']['isTouching'](_0x9b7dc5['start']))return!0x1;const _0x19be4e=_0x39fecc['createRange'](_0x55b903['end'],_0x9b7dc5['start'])['getWalker']();for(const _0x43b7eb of _0x19be4e)if(['elementStart','elementEnd']['includes'](_0x43b7eb['type'])&&_0x39fecc['schema']['isLimit'](_0x43b7eb['item']))return!0x1;return!0x0;}function Jt(_0x9b1ade,_0x268249){if(!_0x9b1ade['_isDataLoaded']||!_0x268249['_isDataLoaded'])return!0x1;const _0x5055da=new Set(Object['keys'](_0x9b1ade['attributes'])),_0x28e931=new Set(Object['keys'](_0x268249['attributes']));if(_0x5055da['delete']('groupId'),_0x28e931['delete']('groupId'),0x0==_0x5055da['size']&&0x0==_0x28e931['size'])return!0x0;if(_0x5055da['size']!=_0x28e931['size'])return!0x1;const _0xa0e6ed={..._0x9b1ade['attributes']},_0x501719={..._0x268249['attributes']};return delete _0xa0e6ed['groupId'],delete _0x501719['groupId'],JSON['stringify'](_0xa0e6ed)==JSON['stringify'](_0x501719);}function qt(_0x3b2856,_0x145a3d){const _0x3931cd=zt(_0x3b2856['attributes']),_0x454598=zt(_0x145a3d);if(!_0x3b2856['_isDataLoaded'])return!0x1;for(const _0x119481 of Object['keys'](_0x454598))if(!_0x135c1f(_0x3931cd[_0x119481],_0x454598[_0x119481]))return!0x1;return!0x0;}function zt(_0x3b43c7){const _0x5c6a5f=Object['assign']({},_0x3b43c7);return delete _0x5c6a5f['skipNestingCheck'],delete _0x5c6a5f['tablePasteChainId'],_0x5c6a5f;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x1490ae(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4907cb,_0x47e1d3,_0x59d312,_0x25b5b1){super(),this['model']=_0x47e1d3,this['view']=_0x59d312,this['commentThreadController']=_0x25b5b1,this['_editor']=_0x4907cb,this['_acceptCommand']=_0x4907cb['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4907cb['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x28c6cb,_0x1ec675)=>_0x28c6cb||_0x1ec675),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1abc72=>_0x1abc72&&this['_editor']['model']['canEditAt'](_0x47e1d3['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x24f55e=>_0x24f55e&&this['_editor']['model']['canEditAt'](_0x47e1d3['getRanges']())),this['_pendingAction']=null,_0x59d312['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x59d312,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x59d312,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x59d312,'change:isDirty',()=>{_0x59d312['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 _0x434d81=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x434d81);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4f4860{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x40b17b,_0x4343ef,_0x297789,_0x1fa71c){super(_0x40b17b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4b5267(_0x40b17b,o(_0x40b17b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4343ef['authoredAt']),this['bind']('authoredAt')['to'](_0x4343ef),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',_0x4343ef,'authoredAt',this,'descriptionParts',(_0x4a3f25,_0x5ebd6e,_0x4bfc9d)=>{const _0x1a6f06=_0x4bfc9d['map'](_0x3a1aba=>ls(_0x3a1aba['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4a3f25-0x1,_0x4343ef['author']['name'],_0x5ebd6e?_0x1fa71c['formatDateTime'](_0x5ebd6e):'',new DOMParser()['parseFromString'](_0x1a6f06,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2149c7(),this['focusTracker']=new _0x2fc427(),this['keystrokes']=new _0x106bfb(),this['focusCycler']=new _0x512a89({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xe854d1=>_0xe854d1['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4343ef,this['_localUser']=_0x297789,this['_config']=_0x1fa71c,_0x1fa71c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4d5f3d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1f89e4}=this['_config'];this['commentsListView']=new _0x1f89e4(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',_0x285835=>_0x285835+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x151654,_0x10df90)=>_0x151654||!!_0x10df90);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x12870c}=this['_config'],_0x510a7f=new _0x12870c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5e0d73=_0x510a7f['commentInputView'];return _0x510a7f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5e0d73,'value',(_0x408443,_0x184511,_0x888cb3)=>!!_0x888cb3||_0x408443&&!_0x184511),_0x5e0d73['on']('submit',(_0x389624,_0x2259dc)=>{this['fire']('addComment',_0x2259dc),_0x5e0d73['editor']['setData']('');}),_0x5e0d73['on']('cancel',()=>this['focus']()),_0x5e0d73['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x510a7f;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5ed981,_0x58794d,_0x512801,_0x57253c){super(_0x5ed981,_0x58794d,_0x512801,_0x57253c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1e376f=>_0x1e376f&&_0x1e376f[0x0]?_0x1e376f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1c34c8,_0x5e2247)=>{let _0x19929d='';for(const _0x50895c of _0x1c34c8)_0x19929d+='<p>'+ls(_0x50895c['content'],_0x50895c['color'])+'</p>';return _0x5e2247?_0x19929d:_0x15c22e(_0x19929d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x57253c['SuggestionView'](_0x5ed981,_0x58794d,{'formatDateTime':_0x57253c['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 _0xaed9b7=this['bindTemplate'],_0x3578d4=[this['suggestionView']];return this['commentsListView']&&_0x3578d4['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3578d4['push'](this['commentThreadInputView']),_0x3578d4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xaed9b7['if']('isActive','ck-suggestion-wrapper--active'),_0xaed9b7['to']('type',_0x16f6cb=>'ck-suggestion-'+_0x16f6cb),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':_0xaed9b7['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3578d4};}['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 _0x4f4860{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x262fd6,_0x1916d2,_0x4253d8){super(_0x262fd6),this['_model']=_0x1916d2,this['_config']=_0x4253d8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1916d2),this['acceptButton']=this['_createButton'](o(_0x262fd6,'Accept\x20suggestion'),_0x3e07d2['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x262fd6,'Discard\x20suggestion'),_0x3e07d2['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x42680e(_0x262fd6,_0x1916d2['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2149c7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2fc427(),this['keystrokes']=new _0x106bfb(),this['focusCycler']=new _0x512a89({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1d945f=>_0x1d945f['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x70ec92=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x70ec92['innerHTML']=this['description'],this['on']('change:description',(_0x1dd033,_0x44a6c4,_0xb933f6)=>{_0x70ec92['innerHTML']=_0xb933f6;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x29b45b=this['bindTemplate'],_0x20d8fb=[{'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':_0x29b45b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x29b45b['to']('authoredAt',_0xffdb23=>this['_config']['formatDateTime'](_0xffdb23))}]}]},{'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']&&_0x20d8fb['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':_0x20d8fb}]};}['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'](_0x11bf4b,_0x436ee6,_0x368a2a,_0x431aff,_0x35db10){const _0x4253c0=new _0x440d0a(this['locale']);return _0x4253c0['set']({'label':_0x11bf4b,'icon':_0x436ee6,'tooltip':!0x0,'tooltipPosition':_0x35db10}),_0x4253c0['extendTemplate']({'attributes':{'class':_0x368a2a}}),_0x4253c0['on']('execute',()=>{this['fire'](_0x431aff,this['_model']['id']);}),_0x4253c0;}['_setupKeyboardNavigation'](){const _0x2bdb78=this['element'];this['keystrokes']['listenTo'](_0x2bdb78);for(const _0x10d17e of this['focusables'])this['focusTracker']['add'](_0x10d17e['element']),this['keystrokes']['listenTo'](_0x10d17e['element']);this['keystrokes']['set']('enter',(_0xc58b47,_0x58f65a)=>{_0x2bdb78===_0xc58b47['target']&&(this['focusCycler']['focusFirst'](),_0x58f65a());}),this['keystrokes']['set']('esc',(_0x1dc130,_0x3ba917)=>{_0x2bdb78!==_0x1dc130['target']&&(this['focus'](),_0x3ba917());});}}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 _0x1bb8e2{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x448709,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2de474){super(_0x2de474),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x20245e=this['editor']['config'];_0x20245e['define']('trackChanges.SuggestionThreadView',re),_0x20245e['define']('trackChanges.SuggestionView',ce),_0x20245e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x20245e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x14b273,_0x105c1f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x18f249,_0x17c528]of this['_handleControllerBuffer']){const _0x28083c=this['_suggestionToController']['has'](_0x18f249);_0x28083c||_0x17c528?_0x28083c&&_0x17c528&&this['_destroyController'](_0x18f249):this['_initializeController'](_0x18f249);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x14b273,_0x105c1f);}['init'](){const _0x26fdbf=this['editor'],_0x48e5f8=_0x26fdbf['plugins']['get']('TrackChangesEditing'),_0x4a8afe=_0x26fdbf['plugins']['get']('Annotations'),_0x1d5344=_0x26fdbf['plugins']['get']('EditorAnnotations'),_0x5c1277=_0x26fdbf['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1d5344['addSourceCollector'](()=>{const _0x19a0db=[];for(const [_0x40f4e2,_0x13248a]of Array['from'](this['_suggestionToController'])){const _0x47d01b=_0x40f4e2['getAllAdjacentSuggestions'](),_0x21cbc5=[];for(const _0x446bff of _0x47d01b){if(!_0x446bff['isInContent'])continue;if(_0x446bff['isMultiRange']){_0x21cbc5['push'](..._0x446bff['getRanges']());continue;}const _0x245dfe=_0x446bff['getFirstRange']();if(_0x21cbc5['length']>0x0){const _0x1fa046=_0x21cbc5[0x0]['getJoined'](_0x245dfe);if(_0x1fa046){_0x21cbc5[0x0]=_0x1fa046;continue;}}_0x21cbc5['push'](_0x245dfe);}_0x19a0db['push']([_0x13248a['view'],_0x21cbc5]);}return _0x19a0db;}),this['listenTo'](_0x48e5f8,'suggestionLoaded',(_0x3d1166,_0x42602c)=>{this['listenTo'](_0x42602c,'change:previous',(_0x486b54,_0x123a12,_0x4de658,_0x451881)=>{_0x42602c['isInContent']&&(null==_0x4de658?(this['_updateController'](_0x451881['head']),this['_handleSuggestionControllerDelayed'](_0x42602c,!0x1)):(this['_updateController'](_0x4de658['head']),null==_0x451881&&this['_handleSuggestionControllerDelayed'](_0x42602c,!0x0)));}),null!==_0x42602c['previous']?this['_updateController'](_0x42602c['head']):this['_handleSuggestionControllerDelayed'](_0x42602c,!0x1);}),this['listenTo'](_0x48e5f8,'suggestionUnloaded',(_0xe4b0cc,_0x2bf9e1,_0x1bdc51)=>{this['stopListening'](_0x2bf9e1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2bf9e1),this['_suggestionToController']['has'](_0x2bf9e1)&&this['_destroyController'](_0x2bf9e1),_0x1bdc51&&this['_updateController'](_0x1bdc51['head']);}),this['listenTo'](_0x48e5f8,'suggestionChanged',(_0x373b46,_0x83903a)=>{this['_updateController'](_0x83903a);}),this['listenTo'](_0x4a8afe,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5c1277,'addComment',(_0x208352,{threadId:_0x395b8a,isFromAdapter:_0xdb0d7f})=>{if(_0xdb0d7f||!_0x48e5f8['hasSuggestion'](_0x395b8a))return;const _0x11c583=_0x48e5f8['getSuggestion'](_0x395b8a);this['_suggestionToController']['get'](_0x11c583)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x463991=this['editor']['plugins']['get']('Annotations'),_0x426b6b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x345429=Array['from'](_0x463991['activeAnnotations'],_0x329ae6=>_0x329ae6['innerView'])['filter'](_0x1c1006=>this['_viewToController']['has'](_0x1c1006)),_0x41991a=[];for(const _0x40dfc3 of _0x345429){const _0x259c5a=this['_viewToController']['get'](_0x40dfc3)['model']['getAllAdjacentSuggestions']();_0x41991a['push'](..._0x259c5a['reduce']((_0x5af233,_0x33045f)=>[..._0x5af233,..._0x33045f['getMarkerNames']()],[]));}_0x426b6b['activeMarkers']=_0x41991a;}['_addUIComponentsToFactory'](){const _0x47dec2=this['editor'],_0x4d5807=_0x47dec2['locale'],_0x1321b3=o(_0x4d5807,'Track\x20changes'),_0x41ef22=new Wt([{'type':'switchbutton','model':new _0x53dcc2({'withText':!0x0,'isToggleable':!0x0,'label':_0x1321b3,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x53dcc2({'withText':!0x0,'label':o(_0x4d5807,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x53dcc2({'withText':!0x0,'label':o(_0x4d5807,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x53dcc2({'withText':!0x0,'label':o(_0x4d5807,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x53dcc2({'withText':!0x0,'label':o(_0x4d5807,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xed8928 of _0x41ef22)if(me(_0xed8928)){const _0x4eb3f5=_0x47dec2['commands']['get'](_0xed8928['model']['commandName']);_0xed8928['model']['bind']('isOn','isEnabled')['to'](_0x4eb3f5,'value','isEnabled');}_0x47dec2['ui']['componentFactory']['add']('trackChanges',_0x6ce000=>this['_createToolbarButton'](_0x6ce000,_0x41ef22,_0x1321b3)),_0x47dec2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1e9fb8=>this['_createMenuBarMenu'](_0x1e9fb8,_0x41ef22,_0x1321b3));}['_createToolbarButton'](_0x4c22b0,_0x26b04a,_0x42fd67){const _0x212070=Qt(_0x4c22b0,_0x57da64),_0x16506e=this['editor']['commands']['get']('trackChanges');_0x212070['buttonView']['set']({'tooltip':_0x42fd67,'label':_0x42fd67,'icon':he}),_0x212070['buttonView']['bind']('isOn')['to'](_0x16506e,'value'),_0x212070['buttonView']['on']('execute',()=>{_0x16506e['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x212070,_0x26b04a,{'role':'menu'});const _0x353349=[];for(const _0x48b78e of _0x26b04a)me(_0x48b78e)&&_0x353349['push'](this['editor']['commands']['get'](_0x48b78e['model']['commandName']));const _0x2f8c7b=_0x212070['buttonView'];return _0x2f8c7b['actionView']['unbind']('isEnabled'),_0x2f8c7b['arrowView']['unbind']('isEnabled'),_0x2f8c7b['actionView']['bind']('isEnabled')['to'](_0x16506e,'isEnabled'),_0x2f8c7b['arrowView']['bind']('isEnabled')['toMany'](_0x353349,'isEnabled',(..._0x272d44)=>_0x272d44['some'](_0x5479ed=>_0x5479ed)),_0x212070['on']('execute',_0x354a72=>{this['editor']['execute'](_0x354a72['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x212070;}['_createMenuBarMenu'](_0x1f6e51,_0x4a866d,_0x33b928){const _0x5265b8=new Yt(_0x1f6e51),_0x173c3c=this['editor']['commands']['get']('trackChanges');_0x5265b8['buttonView']['set']({'label':_0x33b928,'icon':he});const _0x40c324=new Zt(_0x1f6e51);for(const _0x22e8fb of _0x4a866d){if('separator'==_0x22e8fb['type']){_0x40c324['items']['add'](new Xt(_0x1f6e51));continue;}const _0x48dcea=new te(_0x1f6e51,_0x5265b8),_0x4a53e1=new _0x2fe023(_0x1f6e51),_0x5b34e9=_0x22e8fb['model'];_0x4a53e1['bind'](...Object['keys'](_0x5b34e9))['to'](_0x5b34e9),_0x4a53e1['delegate']('execute')['to'](_0x5265b8),_0x4a53e1['on']('execute',()=>{this['editor']['execute'](_0x5b34e9['commandName']),this['editor']['editing']['view']['focus']();}),_0x48dcea['children']['add'](_0x4a53e1),_0x40c324['items']['add'](_0x48dcea);}return _0x5265b8['bind']('isEnabled')['to'](_0x173c3c,'isEnabled'),_0x5265b8['panelView']['children']['add'](_0x40c324),_0x5265b8;}['_initializeController'](_0x41c406){const _0x111e56=this['editor'],_0x5caf93=_0x111e56['config'],_0x52fe4a=_0x111e56['plugins']['get']('Annotations'),_0x5dae6c=_0x111e56['plugins']['get']('CommentsRepository'),_0x346cd9=_0x111e56['plugins']['get']('EditorAnnotations'),_0x4144bb=_0x111e56['plugins']['get'](_0x448709)['me'],_0x2fd676=_0x5caf93['get']('trackChanges')['SuggestionThreadView'],_0x2e83d8=_0x5caf93['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2e8e0f,CommentThreadInputView:_0x7f0e71}=_0x111e56['plugins']['get']('CommentsUI');let _0x2db03b,_0x10315d,_0x253949;this['_annotationViews']['has'](_0x41c406['id'])?(_0x10315d=this['_annotationViews']['get'](_0x41c406['id']),_0x2db03b=_0x10315d['mainView']):(_0x2db03b=new _0x2fd676(_0x111e56['locale'],_0x41c406,_0x4144bb,{'disableComments':this['_disableComments'],'editorConfig':_0x5caf93['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5caf93['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5caf93['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5caf93['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xafa3b1(_0x5caf93['get']('locale')),'CommentView':_0x5caf93['get']('comments')['CommentView'],'CommentsListView':_0x2e8e0f,'CommentThreadInputView':_0x7f0e71,'SuggestionView':_0x2e83d8}),_0x2db03b['suggestionView']['acceptButton']['on']('execute',()=>{_0x111e56['editing']['view']['focus']();}),_0x2db03b['suggestionView']['discardButton']['on']('execute',()=>{_0x111e56['editing']['view']['focus']();}),_0x10315d=_0x52fe4a['createAnnotationView'](this['editor']['locale'],_0x2db03b),_0x10315d['bind']('isDirty')['to'](_0x2db03b,'isDirty'),_0x10315d['bind']('length')['to'](_0x2db03b),_0x10315d['bind']('type')['to'](_0x2db03b,'type',_0xae9b36=>'suggestion-'+_0xae9b36),_0x2db03b['on']('escape',()=>{_0x253949['fire']('escape');}),this['_annotationViews']['set'](_0x41c406['id'],_0x10315d));const _0x5afc35=_0x5dae6c['createCommentThreadController'](_0x41c406['commentThread'],_0x2db03b),_0x1a262e=new ae(_0x111e56,_0x41c406,_0x2db03b,_0x5afc35),_0x19d97d=_0x41c406['getAllAdjacentSuggestions']()['filter'](_0x3d3d4a=>_0x3d3d4a['isInContent']);_0x2db03b['descriptionParts']=_0x111e56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x19d97d),this['_suggestionToController']['set'](_0x41c406,_0x1a262e),this['_viewToController']['set'](_0x2db03b,_0x1a262e),_0x253949=_0x52fe4a['createAnnotation']({'view':_0x10315d,'target':()=>{const _0x4dad3e=[],_0x1388e6=_0x41c406['getAllAdjacentSuggestions']()['filter'](_0x47208f=>_0x47208f['isInContent']);for(const _0x3fdab7 of _0x1388e6)_0x4dad3e['push'](..._0x3fdab7['getMarkers']());return _0x411d85(_0x111e56['editing'],_0x4dad3e);},'type':()=>'suggestion-'+_0x1a262e['view']['type']}),_0x5dae6c['_bindAnnotationToEditors'](_0x2db03b,_0x253949),_0x52fe4a['add'](_0x253949),_0x346cd9['registerAnnotation'](_0x253949);}['_destroyController'](_0x3c235d){const _0x582121=this['editor']['plugins']['get']('CommentsRepository'),_0x1dad32=this['editor']['plugins']['get']('Annotations'),_0x4eae51=this['_suggestionToController']['get'](_0x3c235d),_0x22d3b4=_0x4eae51['view'],_0x3c6fab=_0x1dad32['getByInnerView'](_0x22d3b4);_0x582121['_unbindEditors'](_0x22d3b4),_0x3c6fab&&_0x1dad32['remove'](_0x3c6fab),this['_suggestionToController']['delete'](_0x3c235d),this['_viewToController']['delete'](_0x22d3b4),_0x4eae51['destroy']();}['_updateController'](_0x443bc9){if(!_0x443bc9['isInContent']||!this['_suggestionToController']['has'](_0x443bc9))return;const _0x3c8b9d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x407493=this['_suggestionToController']['get'](_0x443bc9),_0x6fc10b=_0x443bc9['getAllAdjacentSuggestions']();_0x407493['view']['descriptionParts']=_0x3c8b9d['descriptionFactory']['getDescriptions'](_0x6fc10b);}['destroy'](){for(const _0x5c483c of this['_suggestionToController']['keys']())this['_destroyController'](_0x5c483c);for(const _0x593dba of this['_annotationViews']['values']())_0x593dba['mainView']['destroy']();super['destroy']();}}function me(_0x2ef707){return'model'in _0x2ef707;}class k extends _0x1bb8e2{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5d0511){this['editor']['plugins']['get'](p)['adapter']=_0x5d0511;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3ffc8f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3ffc8f);}['getSuggestions']({skipNotAttached:_0x31d1d6=!0x1,toJSON:_0x4ab200=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x31d1d6,'toJSON':_0x4ab200});}['getSuggestion'](_0x2f9c48){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2f9c48);}}const T=['Pagination'];class P extends _0x1bb8e2{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x135882=this['editor'];if(_0x135882['config']['define']('trackChangesData.editorCreator',_0x378e4f=>{const _0x151b3b=_0x135882['model']['document']['getRootNames']()['reduce']((_0x4e27db,_0x121ba6)=>(_0x4e27db[_0x121ba6]='',_0x4e27db),{});return _0x135882['constructor']['create'](_0x151b3b,_0x378e4f);}),'function'!=typeof _0x135882['config']['get']('trackChangesData')['editorCreator'])throw new _0x308934('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x527ace){return N(this['editor'],!0x0,_0x527ace);}['getDataWithDiscardedSuggestions'](_0x43f178){return N(this['editor'],!0x1,_0x43f178);}}class D extends _0x1bb8e2{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2fb577){super(_0x2fb577),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(_0x1aeb5b){return void 0x0!==_0x1aeb5b['getRootsAttributes'];}async function N(_0x3ba000,_0x40fddd,_0xe9319b){const _0x1460d7=_0x2eb3b4(_0x3ba000,T);_0x1460d7['plugins']['push'](p,D),_0x1460d7['rootsAttributes']=v(_0x3ba000)?_0x3ba000['getRootsAttributes']():void 0x0;const _0x35aa71=document['createDocumentFragment'](),_0x22ff89=_0x3ba000['config']['get']('trackChangesData')['editorCreator'],_0x565c30=await _0x22ff89(_0x1460d7,()=>function(_0x7dc2e5){const _0x31140e=document['createElement']('div');return _0x7dc2e5['appendChild'](_0x31140e),_0x31140e;}(_0x35aa71));!function(_0x5dfb52,_0xd464c2){const _0x605120=_0x5dfb52['model']['document']['getRootNames']()['reduce']((_0x42b5b8,_0xa59735)=>(_0x42b5b8[_0xa59735]=_0x5dfb52['data']['get']({'rootName':_0xa59735}),_0x42b5b8),{}),_0x309358=_0x5dfb52['plugins']['get']('Users')['users']['map'](_0x2ee5b8=>({'id':_0x2ee5b8['id'],'name':_0x2ee5b8['name']})),_0x5a154e=_0x5dfb52['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x7ed558=_0x5dfb52['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x290625=_0xd464c2['plugins']['get']('Users'),_0x48d01e=_0xd464c2['plugins']['get']('TrackChangesEditing'),_0x61f605=_0xd464c2['plugins']['get']('CommentsRepository');for(const _0x436e93 of _0x61f605['getCommentThreads']())_0x436e93['remove']();for(const _0x5b57fb of _0x309358)_0x290625['getUser'](_0x5b57fb['id'])||_0x290625['addUser'](_0x5b57fb);_0x290625['me']||_0x290625['useAnonymousUser']();for(const _0x3f16c0 of _0x7ed558)_0x61f605['addCommentThread'](_0x3f16c0);for(const _0x3eff03 of _0x5a154e)_0x48d01e['addSuggestionData'](_0x3eff03);_0xd464c2['data']['set'](_0x605120);}(_0x3ba000,_0x565c30),_0x565c30['execute'](_0x40fddd?'acceptAllSuggestions':'discardAllSuggestions');const _0x1b3dab=v(_0x565c30)?_0x565c30['getFullData'](_0xe9319b):_0x565c30['data']['get'](_0xe9319b);return await _0x565c30['destroy'](),_0x1b3dab;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x310a20,PendingActions as _0x47fc58,icons as _0x1b6ff9}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x51bc83,ObservableMixin as _0x206d4d,uid as _0x3620ad,insertToPriorityArray as _0x1ab9fc,priorities as _0x12736d,logWarning as _0x316ce7,getEnvKeystrokeText as _0x1c74cc,FocusTracker as _0x577184,KeystrokeHandler as _0x201eea,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x57f8f2,View as _0x11db69,ViewCollection as _0xf2f8d,FocusCycler as _0x18b4cb,ViewModel as _0x2ee0b2,createDropdown as Qt,SplitButtonView as _0x5324d7,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x5abf4b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x20783e,hashObject as _0x3fb96b,surroundingMarkersDetector as _0xcc9e00,FOCUS_ANNOTATION_KEYSTROKE as _0x3f9eab,AriaDescriptionView as _0x3d8508,setupThreadKeyboardNavigation as _0x484d72,trimHtml as _0x5d69e1,UserView as _0x1bd662,LateFocusButtonView as _0x26b1d1,getDateTimeFormatter as _0x5636d8,getAllMarkersDomElementsSorted as _0x4dc4b3,sanitizeEditorConfig as _0x1994ee}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4deb3d,LiveRange as _0xfd736c,LivePosition as _0x441e11}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x27f9f8,toWidget as _0x490399}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4f039d,set as _0x467cae,isEqual as _0x2ec426,unset as _0xa3f0e4,omit as Tt}from'lodash-es';import{Delete as _0x2d9f11,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x466c0e,ShiftEnter as _0x16a1d4}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x17a07a,_0x3a4b47){super(_0x17a07a),this['_enabledCommands']=_0x3a4b47,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 _0x33d8f1 of this['editor']['commands']['commands']())_0x33d8f1['affectsData']&&!this['_enabledCommands']['has'](_0x33d8f1)&&_0x33d8f1['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x314d49 of this['editor']['commands']['commands']())_0x314d49['affectsData']&&!this['_enabledCommands']['has'](_0x314d49)&&_0x314d49['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x30c426,_0x1b9305){super(_0x30c426),this['_suggestions']=_0x1b9305,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x25c586){const _0x1d8fc3=this['_suggestions']['get'](_0x25c586);if(!_0x1d8fc3)throw new _0x51bc83('track-changes-accept-suggestion-not-found',this);const _0x538d1c=_0x1d8fc3['getRanges']();this['editor']['model']['canEditAt'](_0x538d1c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1d8fc3);}}class R extends ts{['_suggestions'];constructor(_0x40b5c5,_0x38022f){super(_0x40b5c5),this['_suggestions']=_0x38022f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x57d719){const _0x1ba0fc=this['_suggestions']['get'](_0x57d719);if(!_0x1ba0fc)throw new _0x51bc83('track-changes-discard-suggestion-not-found',this);const _0x3edcbf=_0x1ba0fc['getRanges']();this['editor']['model']['canEditAt'](_0x3edcbf)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1ba0fc);}}function ls(_0x29c669,_0x2b9843){let _0x4a3b06='';return _0x4a3b06+=_0x29c669['split']('*')['map']((_0x176afa,_0x2c19a6)=>_0x2c19a6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x176afa)+'</span>':nn(_0x176afa))['join'](''),_0x2b9843&&(_0x4a3b06+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2b9843['value']+'\x22\x20title=\x22'+_0x2b9843['title']+'\x22></span>'),_0x4a3b06;}function nn(_0xdf9c07){const _0x12f4cc=document['createElement']('span');return _0x12f4cc['innerText']=_0xdf9c07,_0x12f4cc['innerHTML'];}function ss(_0x2dc1e8){return _0x2dc1e8['sort']((_0x5be358,_0x4c4253)=>'deletion'==_0x5be358['type']&&'deletion'!=_0x4c4253['type']?-0x1:'deletion'!=_0x5be358['type']&&'deletion'==_0x4c4253['type']?0x1:0x0);}function to(_0xba471d,_0x398a42){let _0x347327,_0x11639c=0x0;const _0x46f4e8=[],_0x15dcf0=_0x398a42['schema'];for(;_0x11639c<_0xba471d['length'];){const _0x220406=_0xba471d[_0x11639c],_0x8edec8=_0xba471d[_0x11639c+0x1];_0x347327||(_0x347327=_0x398a42['createPositionBefore'](_0x220406)),on(_0x398a42,_0x220406,_0x8edec8)||(_0x46f4e8['push'](_0x398a42['createRange'](_0x347327,_0x15dcf0['isObject'](_0x220406)?_0x398a42['createPositionAfter'](_0x220406):_0x398a42['createPositionAt'](_0x220406,'end'))),_0x347327=null),_0x11639c++;}return _0x46f4e8;}function on(_0x2268bd,_0x39477b,_0x23d48c){if(!_0x23d48c)return!0x1;const _0x52ff34=_0x2268bd['createPositionAfter'](_0x39477b),_0x2a4d77=_0x2268bd['createPositionBefore'](_0x23d48c);return _0x52ff34['isTouching'](_0x2a4d77);}function rs(_0x484daa,_0x503899,_0x34b3a5){for(;_0x34b3a5['length'];){const _0x456240=_0x34b3a5['splice'](0x0,0x64);_0x484daa['change'](()=>{for(const _0xecc7b2 of _0x456240)_0xecc7b2['isInContent']&&_0x503899['execute'](_0xecc7b2['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x2583bd,_0x1e7583,_0x3a21ff){super(_0x2583bd),this['_command']=_0x1e7583,this['_suggestions']=_0x3a21ff,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2bc822=Array['from'](this['_suggestions']['values']())['some'](_0x5544cc=>_0x5544cc['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2bc822;}['execute'](){const _0x39999d=ss(Array['from'](this['_suggestions']['values']()));for(const _0x29e16c of _0x39999d){const _0x249f78=_0x29e16c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x249f78))return;}rs(this['editor']['model'],this['_command'],_0x39999d);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x43df97,_0x1f4e3f,_0x579556){super(_0x43df97),this['_command']=_0x1f4e3f,this['_suggestions']=_0x579556,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x381b03=this['editor']['model']['document']['selection'],_0x4b5ce2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x50cc8a,_0x3b9f1b){const _0x123463=Array['from'](_0x50cc8a['getRanges']()),_0x220f7c=new Set();for(const _0x404c79 of _0x3b9f1b)if(_0x404c79['isInContent']){for(const _0x258ab3 of _0x123463)for(const _0x5afc84 of _0x404c79['getRanges']())(_0x258ab3['isIntersecting'](_0x5afc84)||_0x50cc8a['isCollapsed']&&!_0x404c79['isMultiRange']&&_0x404c79['next']&&_0x5afc84['end']['isTouching'](_0x258ab3['start']))&&_0x220f7c['add'](_0x404c79);}return _0x220f7c;}(_0x381b03,_0x4b5ce2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x39f80d=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4d7d9f of _0x39f80d){const _0x13ef82=_0x4d7d9f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x13ef82))return;}rs(this['editor']['model'],this['_command'],_0x39f80d);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x206d4d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x35ae77,_0x12021a){super(),this['id']=_0x12021a['id'],this['type']=_0x12021a['type'],this['subType']=_0x12021a['subType']||null,this['author']=_0x12021a['author'],this['creator']=_0x12021a['creator']||_0x12021a['author'],this['isExternal']=Boolean(_0x12021a['attributes']&&_0x12021a['attributes']['@external']),this['data']=null,this['_model']=_0x35ae77,this['_onAccept']=_0x12021a['onAccept'],this['_onDiscard']=_0x12021a['onDiscard'],this['_onAttributesChange']=_0x12021a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x12021a['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 _0x3c2dc2=this;for(;_0x3c2dc2['previous'];)_0x3c2dc2=_0x3c2dc2['previous'];return _0x3c2dc2;}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'](_0x58030c){this['_markerNames']['add'](_0x58030c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x32f098=>this['_model']['markers']['get'](_0x32f098))['filter'](_0x73dcab=>_0x73dcab);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2f3bd8=>{for(const _0xfb04d6 of this['getMarkers']())_0x2f3bd8['removeMarker'](_0xfb04d6);}),this['_markerNames']['clear']();}['removeMarker'](_0x4f5d33){this['_model']['change'](_0x309e9b=>{_0x309e9b['removeMarker'](_0x4f5d33);}),this['_markerNames']['delete'](_0x4f5d33);}['addRange'](_0x1f3177){const _0x222fde='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x222fde),this['_model']['change'](_0x2f8434=>{_0x2f8434['addMarker'](_0x222fde,{'range':_0x1f3177,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xc0b678){for(const _0xb5ebbd of this['getRanges']())if(_0xb5ebbd['isIntersecting'](_0xc0b678))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x12d150=>_0x12d150['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x52f4e5,_0x39db6b)=>[..._0x52f4e5,..._0x39db6b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3d25d6=this['getRanges']();if(0x1!=_0x3d25d6['length'])return null;const _0x5c2c0b=_0x3d25d6[0x0],_0x355b37=_0x5c2c0b['start']['nodeAfter'],_0x3ef1a5=_0x5c2c0b['end']['nodeBefore'];return _0x355b37 instanceof _0x4deb3d?_0x355b37!=_0x3ef1a5?null:_0x355b37: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 _0x2c5c4f=[];let _0x478816=this['head'];for(;_0x478816;)_0x2c5c4f['push'](_0x478816),_0x478816=_0x478816['next'];return _0x2c5c4f;}['setAttribute'](_0x8996b9,_0x14c8ae){const _0x6a2122=_0x4f039d(this['attributes']);_0x467cae(_0x6a2122,_0x8996b9,_0x14c8ae),_0x2ec426(_0x6a2122,this['attributes'])||(this['attributes']=_0x6a2122,this['_onAttributesChange'](_0x6a2122));}['removeAttribute'](_0x49e428){const _0x55ba95=_0x4f039d(this['attributes']);_0xa3f0e4(_0x55ba95,_0x49e428),_0x2ec426(_0x55ba95,this['attributes'])||(this['attributes']=_0x55ba95,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 _0x3620ad()['substr'](0x1,0x5);}}function o(_0x38bfb0,_0x1caadb,_0x1dba09){const t=_0x38bfb0['t'];switch(_0x1caadb){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',_0x1dba09);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1dba09);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1dba09);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1dba09);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1dba09);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',_0x1dba09);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1dba09);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',_0x1dba09);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1dba09);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1dba09);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1dba09);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1dba09);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1dba09);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1dba09);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1dba09);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1dba09);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1dba09);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1dba09);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1dba09);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1dba09);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1dba09);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1dba09);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1dba09);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'},_0x1dba09);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1dba09);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1dba09);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1dba09);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1dba09);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1dba09);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'},_0x1dba09);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1dba09);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1dba09);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1dba09);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1dba09);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'},_0x1dba09);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1dba09);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'},_0x1dba09);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'},_0x1dba09);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1dba09);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'},_0x1dba09);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1dba09);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'},_0x1dba09);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1dba09);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1dba09);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'},_0x1dba09);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'},_0x1dba09);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'},_0x1dba09);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1dba09);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'},_0x1dba09);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'},_0x1dba09);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'},_0x1dba09);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1caadb;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x43699f,_0x12e73c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x43699f,this['_locale']=_0x12e73c;}['getDescriptions'](_0x3f5135){const _0x205afc=[],_0x5b23c5=new Set(),_0x2553b1=new Set();for(let _0x1509c3=0x0;_0x1509c3<_0x3f5135['length'];_0x1509c3++){const _0x408f37=_0x3f5135[_0x1509c3];if(!_0x408f37['isInContent'])continue;const _0x1b22ea=this['_handleCustomCallbackDescription'](_0x408f37);if(_0x1b22ea){if(null!=_0x408f37['subType']){if(_0x5b23c5['has'](_0x408f37['subType']))continue;_0x5b23c5['add'](_0x408f37['subType']);}_0x205afc['push'](_0x1b22ea);}else{if('attribute'!=_0x408f37['type'])'insertion'!=_0x408f37['type']&&'deletion'!=_0x408f37['type']||this['_handleInsertRemoveSuggestionDescription'](_0x205afc,_0x408f37,_0x3f5135[_0x1509c3+0x1]);else{const _0x479590=_0x408f37['data']['key'];if(_0x2553b1['has'](_0x479590))continue;_0x2553b1['add'](_0x408f37['data']['key']),_0x479590==m?this['_handleRenameSuggestionDescription'](_0x205afc,_0x408f37):this['_handleAttributeSuggestionDescription'](_0x205afc,_0x408f37);}}}return this['_resolveDescriptionItems'](_0x205afc);}['registerDescriptionCallback'](_0x3241d9){this['_customCallbacks']['push'](_0x3241d9);}['registerElementLabel'](_0x480e43,_0x55b032,_0x99c5e=_0x12736d['normal']){'function'==typeof _0x480e43?_0x1ab9fc(this['_itemLabelsCallbacks'],{'matchingCallback':_0x480e43,'label':_0x55b032,'priority':_0x99c5e}):this['_itemLabels']['set'](_0x480e43,_0x55b032);}['registerAttributeLabel'](_0x4c6a77,_0x1bd036){this['_attributeLabels']['set'](_0x4c6a77,_0x1bd036);}['getItemLabel'](_0x87feeb,_0x9a3405=0x1){let _0x216bd9;for(const _0x4a3c8d of this['_itemLabelsCallbacks'])if(_0x4a3c8d['matchingCallback'](_0x87feeb)){_0x216bd9=_0x4a3c8d['label'];break;}return _0x216bd9||(_0x216bd9=this['_itemLabels']['get'](_0x87feeb['name'])),_0x216bd9?_0x216bd9(_0x9a3405):0x1!==_0x9a3405?_0x9a3405+'\x20'+_0x87feeb['name']+'s':''+_0x87feeb['name'];}['_addDescriptionItems'](_0x207636,_0xd84d8c){const _0x16bdd8=_0xd84d8c['getFirstRange']()['getWalker'](),_0x42cab1='insertion'==_0xd84d8c['type']?'add':'remove';for(const _0x20e6ed of _0x16bdd8){const _0xc53777=_0x20e6ed['item'],_0x2e4339=_0x207636[_0x207636['length']-0x1];if(_0xc53777['is']('$textProxy'))_0x2e4339&&_0x2e4339['type']['indexOf']('Container')>-0x1&&_0x207636['pop'](),_0x2e4339&&'text'==_0x2e4339['type']?_0x2e4339[_0x42cab1]+=_0xc53777['data']:_0x207636['push']({'type':'text','add':'add'==_0x42cab1?_0xc53777['data']:'','remove':'remove'==_0x42cab1?_0xc53777['data']:''});else{if(this['_schema']['isObject'](_0xc53777)){const _0xed17a3=_0xc53777;if(_0x2e4339&&_0x2e4339['type']['indexOf']('Container')>-0x1&&_0x207636['pop'](),'elementEnd'==_0x20e6ed['type'])continue;_0x2e4339&&_0x2e4339['type']==_0x42cab1+'Object'&&_0x2e4339['element']['name']==_0xed17a3['name']?_0x2e4339['quantity']++:_0x207636['push']({'type':_0x42cab1+'Object','element':_0xed17a3,'quantity':0x1}),_0x16bdd8['skip'](_0x5e8131=>!('elementEnd'==_0x5e8131['type']&&_0x5e8131['item']==_0xc53777));}else{if(this['_schema']['checkChild'](_0xc53777,'$text')||_0xc53777['is']('element','softBreak')){const _0x5e6998=_0xc53777;if('add'==_0x42cab1&&'elementStart'==_0x20e6ed['type']||'remove'==_0x42cab1&&'elementEnd'==_0x20e6ed['type'])continue;if(_0x2e4339&&-0x1==_0x2e4339['type']['indexOf']('Container')){'text'==_0x2e4339['type']&&(_0x2e4339[_0x42cab1]+='\x0a');continue;}let _0x9431d9;if(_0x9431d9='add'==_0x42cab1?_0x5e6998['nextSibling']&&!this['_schema']['isObject'](_0x5e6998['nextSibling'])?_0x5e6998['nextSibling']:null:_0x5e6998['previousSibling']&&!this['_schema']['isObject'](_0x5e6998['previousSibling'])?_0x5e6998['previousSibling']:null,_0x5e6998['isEmpty']||_0x9431d9&&_0x9431d9['isEmpty']){const _0x31d64e=_0x9431d9&&_0x9431d9['isEmpty']?_0x9431d9:_0x5e6998;_0x2e4339&&_0x2e4339['type']==_0x42cab1+'EmptyContainer'&&_0x2e4339['element']['name']==_0x31d64e['name']?_0x2e4339['quantity']++:_0x207636['push']({'type':_0x42cab1+'EmptyContainer','element':_0x31d64e,'quantity':0x1});}else _0x207636['push']({'type':_0x42cab1+'Container','element':_0x5e6998});}}}}}['_resolveDescriptionItems'](_0x842108){const _0x1969d7=this['_locale'],_0x3d6c15=[],_0x12bdaa=[],_0x3e6c3e=[];for(const _0x6b9be0 of _0x842108)switch(_0x6b9be0['type']){case'text':if(_0x6b9be0['add']=_0x6b9be0['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x6b9be0['remove']=_0x6b9be0['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x6b9be0['add']&&''!=_0x6b9be0['remove']){_0x3d6c15['push']({'type':'replace','content':o(_0x1969d7,'REPLACE_TEXT',['\x22'+_0x6b9be0['remove']+'\x22','\x22'+_0x6b9be0['add']+'\x22'])});continue;}if(null!=_0x6b9be0['add']['match'](/^ +$/)){_0x3d6c15['push']({'type':'insertion','content':o(_0x1969d7,'*Insert:*\x20%0',o(_0x1969d7,'ELEMENT_SPACE',_0x6b9be0['add']['length']))});continue;}if(null!=_0x6b9be0['remove']['match'](/^ +$/)){_0x3d6c15['push']({'type':'deletion','content':o(_0x1969d7,'*Remove:*\x20%0',o(_0x1969d7,'ELEMENT_SPACE',_0x6b9be0['remove']['length']))});continue;}if(''!=_0x6b9be0['add']){_0x3d6c15['push']({'type':'insertion','content':o(_0x1969d7,'*Insert:*\x20%0','\x22'+_0x6b9be0['add']+'\x22')});continue;}_0x3d6c15['push']({'type':'deletion','content':o(_0x1969d7,'*Remove:*\x20%0','\x22'+_0x6b9be0['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3d6c15['push']({'type':'insertion','content':o(_0x1969d7,'*Insert:*\x20%0',this['getItemLabel'](_0x6b9be0['element'],_0x6b9be0['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3d6c15['push']({'type':'deletion','content':o(_0x1969d7,'*Remove:*\x20%0',this['getItemLabel'](_0x6b9be0['element'],_0x6b9be0['quantity']))});continue;case'addContainer':_0x3d6c15['push']({'type':'insertion','content':o(_0x1969d7,'*Split:*\x20%0',this['getItemLabel'](_0x6b9be0['element'],_0x6b9be0['quantity']))});continue;case'removeContainer':_0x3d6c15['push']({'type':'deletion','content':o(_0x1969d7,'*Merge:*\x20%0',this['getItemLabel'](_0x6b9be0['element'],_0x6b9be0['quantity']))});continue;case'addFormat':_0x12bdaa['push'](_0x6b9be0['key']);continue;case'removeFormat':_0x3e6c3e['push'](_0x6b9be0['key']);continue;default:_0x3d6c15['push'](_0x6b9be0);}if(_0x12bdaa['length']){const _0x478a91=_0x12bdaa['map'](_0x1cfe86=>this['_attributeLabels']['has'](_0x1cfe86)?this['_attributeLabels']['get'](_0x1cfe86):_0x1cfe86)['join'](',\x20');_0x3d6c15['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x478a91)});}if(_0x3e6c3e['length']){const _0x2a14bf=_0x3e6c3e['map'](_0x367ce1=>this['_attributeLabels']['has'](_0x367ce1)?this['_attributeLabels']['get'](_0x367ce1):_0x367ce1)['join'](',\x20');_0x3d6c15['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2a14bf)});}return _0x3d6c15;}['_handleCustomCallbackDescription'](_0x253adb){for(const _0x100df9 of this['_customCallbacks']){const _0x51aa81=_0x100df9(_0x253adb);if(_0x51aa81&&'type'in _0x51aa81)return _0x51aa81;}}['_handleAttributeSuggestionDescription'](_0x20760e,_0x14290b){const _0x47473a=_0x14290b['data'],_0x40c48f=void 0x0===_0x47473a['newValue']?'removeFormat':'addFormat';_0x20760e['push']({'type':_0x40c48f,'key':_0x47473a['key']});}['_handleRenameSuggestionDescription'](_0x3df48e,_0x55f987){_0x3df48e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x55f987['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x51539a,_0x50c347,_0x27335e){if(this['_addDescriptionItems'](_0x51539a,_0x50c347),_0x27335e&&_0x27335e['getFirstRange']()&&!_0x50c347['getFirstRange']()['end']['isEqual'](_0x27335e['getFirstRange']()['start'])){const _0x3d1bc0=_0x51539a[_0x51539a['length']-0x1],_0x1a0cbc='insertion'==_0x50c347['type']?'add':'remove';_0x3d1bc0&&'text'==_0x3d1bc0['type']&&(_0x3d1bc0[_0x1a0cbc]+='\x0a');}}}class V extends _0x310a20{['afterInit'](){const _0x56abf1=this['editor'],_0x3f15a9=_0x56abf1['plugins']['get']('TrackChangesEditing');_0x56abf1['commands']['get']('showAIAssistant')&&_0x3f15a9['enableCommand']('showAIAssistant');}}class U extends _0x310a20{['afterInit'](){const _0xe01ec=this['editor'],_0x412920=_0xe01ec['locale'];if(!_0xe01ec['plugins']['has']('AlignmentEditing'))return;const _0x1820f2=_0xe01ec['plugins']['get']('TrackChangesEditing');_0x1820f2['enableDefaultAttributesIntegration']('alignment'),_0x1820f2['registerBlockAttribute']('alignment'),_0x1820f2['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x412920,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cff18=this['editor'],_0x49365c=_0x2cff18['locale'];_0x2cff18['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x542aed=>{if('formatBlock'!=_0x542aed['type'])return;const {data:_0x2a9701}=_0x542aed;if(_0x2a9701&&'alignment'==_0x2a9701['commandName']){const _0x2ad3ea=_0x2a9701['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x49365c,'*Format:*\x20%0',function(_0x9dfa53){switch(_0x9dfa53){case'left':return o(_0x49365c,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x49365c,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x49365c,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x49365c,'FORMAT_JUSTIFY_TEXT');}}(_0x2ad3ea))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x310a20{['afterInit'](){const _0x2bbbc9=this['editor'],_0x2cf3bd=_0x2bbbc9['plugins']['get']('TrackChangesEditing'),_0x103c8a=_0x2bbbc9['locale'];for(const _0x2e8986 of ti){if(!_0x2bbbc9['plugins']['has'](_0x2e8986))continue;const _0x398c4a=_0x2e8986['slice'](0x0,-0x7)['toLowerCase'](),_0x20dde3='FORMAT_'+_0x398c4a['toUpperCase']();_0x2cf3bd['enableDefaultAttributesIntegration'](_0x398c4a),_0x2cf3bd['registerInlineAttribute'](_0x398c4a),_0x2cf3bd['descriptionFactory']['registerAttributeLabel'](_0x398c4a,o(_0x103c8a,_0x20dde3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f9352=this['editor'],_0x12d4cb=_0x4f9352['locale'],_0x44e5e3=_0x4f9352['plugins']['get']('TrackChangesEditing');function _0x5545f6(_0x549b1a,_0x42ed31){_0x44e5e3['descriptionFactory']['registerDescriptionCallback'](_0x53b683=>{if('formatInline'!=_0x53b683['type'])return;const {data:_0x453bbd}=_0x53b683;return _0x453bbd&&_0x453bbd['commandName']===_0x549b1a?_0x453bbd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12d4cb,'*Format:*\x20%0',_0x42ed31)}:{'type':'format','content':o(_0x12d4cb,'*Remove\x20format:*\x20%0',_0x42ed31)}:void 0x0;});}_0x5545f6('bold',o(_0x12d4cb,'FORMAT_BOLD')),_0x5545f6('italic',o(_0x12d4cb,'FORMAT_ITALIC')),_0x5545f6('underline',o(_0x12d4cb,'FORMAT_UNDERLINE')),_0x5545f6('code',o(_0x12d4cb,'FORMAT_CODE')),_0x5545f6('strikethrough',o(_0x12d4cb,'FORMAT_STRIKETHROUGH')),_0x5545f6('subscript',o(_0x12d4cb,'FORMAT_SUBSCRIPT')),_0x5545f6('superscript',o(_0x12d4cb,'FORMAT_SUPERSCRIPT'));}}class F extends _0x310a20{['afterInit'](){const _0x2c98e6=this['editor'],_0x26cb38=_0x2c98e6['locale'];if(!_0x2c98e6['plugins']['has']('BlockQuoteEditing'))return;const _0x5445cd=_0x2c98e6['plugins']['get']('TrackChangesEditing'),_0x147ce6=this['editor']['commands']['get']('blockQuote');_0x5445cd['enableCommand']('blockQuote',(_0x4305c0,_0x482469={})=>{const _0x519c16=this['editor']['model']['document']['selection'],_0x4a2be4=_0x482469&&void 0x0!==_0x482469['forceValue']?_0x482469['forceValue']:!_0x147ce6['value'];let _0x398628=[];if(_0x4a2be4){const _0x4e8adc=Array['from'](_0x519c16['getSelectedBlocks']())['filter'](_0x20496a=>oo(_0x20496a)||function(_0x482239,_0x19b130){const _0x470c55=_0x19b130['checkChild'](_0x482239['parent'],'blockQuote'),_0x4ba3ed=_0x19b130['checkChild'](['$root','blockQuote'],_0x482239);return _0x470c55&&_0x4ba3ed;}(_0x20496a,this['editor']['model']['schema']));_0x398628=to(_0x4e8adc,_0x2c98e6['model']);}else{const _0xef0e2c=Array['from'](_0x519c16['getSelectedBlocks']())['filter'](_0x235acb=>oo(_0x235acb));_0x398628=to(_0xef0e2c,_0x2c98e6['model']);}_0x2c98e6['model']['change'](()=>{for(const _0x361717 of _0x398628)_0x5445cd['markBlockFormat'](_0x361717,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4a2be4}]});});}),_0x5445cd['descriptionFactory']['registerDescriptionCallback'](_0x1e8951=>{const {data:_0x1ba938}=_0x1e8951;if(_0x1ba938&&'blockQuote'==_0x1ba938['commandName']){const _0x53f8f3=o(_0x26cb38,'ELEMENT_BLOCK_QUOTE');return _0x1ba938['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26cb38,'*Set\x20format:*\x20%0',_0x53f8f3)}:{'type':'format','content':o(_0x26cb38,'*Remove\x20format:*\x20%0',_0x53f8f3)};}});}}function oo(_0x36bafa){return'blockQuote'==_0x36bafa['parent']['name'];}class L extends _0x310a20{['afterInit'](){const _0x471939=this['editor'];_0x471939['plugins']['has']('CaseChange')&&(_0x471939['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x471939['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x471939['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x310a20{['afterInit'](){const _0x1a2324=this['editor'];_0x1a2324['commands']['get']('ckbox')&&_0x1a2324['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x310a20{['afterInit'](){const _0x1b7bbc=this['editor'];if(!_0x1b7bbc['plugins']['has']('CodeBlock'))return;const _0x311925=_0x1b7bbc['plugins']['get']('TrackChangesEditing'),_0x3676f3=_0x1b7bbc['locale'],_0x4b40b=_0x1b7bbc['config']['get']('codeBlock')['languages'],_0x2cb55a=_0x1b7bbc['commands']['get']('codeBlock');_0x311925['enableCommand']('indentCodeBlock'),_0x311925['enableCommand']('outdentCodeBlock'),_0x311925['enableCommand']('codeBlock',(_0x4b0435,_0x33720a={})=>{const _0x27826d=_0x1b7bbc['model'],_0x2831a1=_0x1b7bbc['model']['document']['selection'],_0xfd227b=_0x33720a&&void 0x0!==_0x33720a['forceValue']?_0x33720a['forceValue']:!_0x2cb55a['value'];let _0x1ebbca;_0x33720a['language']||(_0x33720a['language']=_0x4b40b[0x0]['language']),_0x1ebbca=_0xfd227b?Array['from'](_0x2831a1['getSelectedBlocks']())['filter'](_0x4ad684=>eo(_0x4ad684)||function(_0x1e8ce7,_0x5b2bce){if(_0x1e8ce7['is']('rootElement')||_0x5b2bce['isLimit'](_0x1e8ce7))return!0x1;return _0x5b2bce['checkChild'](_0x1e8ce7['parent'],'codeBlock');}(_0x4ad684,_0x27826d['schema'])):Array['from'](_0x2831a1['getSelectedBlocks']())['filter'](_0x41923f=>eo(_0x41923f));const _0x5b113b=to(_0x1ebbca,_0x27826d);_0x27826d['change'](()=>{for(const _0x4ccdc9 of _0x5b113b)_0x311925['markBlockFormat'](_0x4ccdc9,{'commandName':'codeBlock','commandParams':[{..._0x33720a,'forceValue':_0xfd227b}],'formatGroupId':'blockName'});});}),(_0x311925['descriptionFactory']['registerElementLabel']('codeBlock',_0x308fb9=>o(_0x3676f3,'ELEMENT_CODE_BLOCK',_0x308fb9)),_0x311925['descriptionFactory']['registerDescriptionCallback'](_0x4b76ef=>{if('formatBlock'!=_0x4b76ef['type'])return;const _0x15eb48=_0x3676f3['t'],{data:_0x4903e2}=_0x4b76ef;if(!_0x4903e2||'codeBlock'!=_0x4903e2['commandName'])return;const _0x25d2f7=_0x4903e2['commandParams'][0x0]['language'],_0x589654=_0x15eb48(_0x4b40b['find'](_0x44e100=>_0x44e100['language']===_0x25d2f7)['label'])['toLowerCase']();return _0x4903e2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3676f3,'*Set\x20format:*\x20%0',o(_0x3676f3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x589654+')')}:{'type':'format','content':o(_0x3676f3,'*Remove\x20format:*\x20%0',o(_0x3676f3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2e4329){return'codeBlock'==_0x2e4329['name'];}class q extends _0x310a20{['afterInit'](){const _0x43e660=this['editor'];if(!_0x43e660['plugins']['has']('CommentsEditing'))return;_0x43e660['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x96964f,_0xcdb17a,_0x38e932){const _0x36beb0=[];for(const _0x1492ce of _0xcdb17a['getItems']())_0x1492ce['hasAttribute'](_0x96964f)&&_0x36beb0['push'](_0x38e932['createRangeOn'](_0x1492ce));return _0x36beb0;}function _e(_0x3e844e,_0x23efbf,{showActiveMarker:_0x437571=!0x0}={}){const _0x2f7163=_0x3e844e['plugins']['get']('TrackChangesEditing');return(_0x2fee7c,_0xb25b7a,_0x146c70)=>{if(!_0x146c70['consumable']['test'](_0xb25b7a['markerRange'],_0x2fee7c['name']))return;const _0x3680a1=_0xb25b7a['markerRange']['getWalker'](),_0x55f55c=_0xb25b7a['markerRange']['start'],_0x9f560e=_0x3e844e['model']['schema'];let _0x4544f1=null,_0x18969f=null,_0x4139ed=!0x1,_0x177c54=!0x1;for(const _0x3b92d5 of _0x3680a1){const _0x37c54a=_0x3b92d5['item'];_0x4139ed=_0x4139ed||_0x9f560e['isContent'](_0x37c54a);const _0x533d0a=_0x146c70['mapper']['toViewElement'](_0x37c54a);if(_0x533d0a&&_0x533d0a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3b92d5['type']&&(_0x9f560e['isBlock'](_0x37c54a)&&!_0x9f560e['isLimit'](_0x37c54a)&&(_0x37c54a['nextSibling']||_0x55f55c['isAtEnd']?_0x4544f1&&_0x4544f1['parent']==_0x37c54a||(_0x4544f1=_0x37c54a,_0x183499(_0x3b92d5['previousPosition']),_0x177c54=!0x0):_0x18969f=_0x18969f||_0x3b92d5['previousPosition']));}function _0x183499(_0x230fe3){const {authorId:_0x4b9484}=_0x2f7163['_splitMarkerName'](_0xb25b7a['markerName']),_0x2d8a73=_0x146c70['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x23efbf,'data-author-id':_0x4b9484}),_0x39cbbb=_0x146c70['mapper']['toViewPosition'](_0x230fe3);_0x437571&&_0x2f7163['activeMarkers']['includes'](_0xb25b7a['markerName'])&&_0x146c70['writer']['addClass']('ck-suggestion-marker--active',_0x2d8a73),_0x146c70['writer']['insert'](_0x39cbbb,_0x2d8a73),_0x146c70['mapper']['bindElementToMarker'](_0x2d8a73,_0xb25b7a['markerName']);}_0x4139ed||_0x177c54||!_0x18969f||_0x183499(_0x18969f);};}class z extends _0x310a20{static get['requires'](){return[_0x2d9f11];}['init'](){const _0x5dba4b=this['editor'],_0x5d1265=_0x5dba4b['plugins']['get']('TrackChangesEditing');_0x5d1265['enableCommand']('delete');const _0x4570e4=_0x5dba4b['commands']['get']('deleteForward');_0x5d1265['enableCommand']('deleteForward',(_0x10c4d2,_0x23a893={})=>{const _0x5c66ec=_0x5dba4b['model']['createSelection'](_0x5dba4b['model']['document']['selection']);_0x5c66ec['isCollapsed']&&_0x5dba4b['model']['modifySelection'](_0x5c66ec,{'direction':'forward','unit':_0x23a893['unit']});const _0x1d76db=_0x5c66ec['getFirstRange'](),_0x4783ff=_0xfd736c['fromRange'](_0x1d76db);let _0x444ddf;_0x10c4d2(_0x23a893),_0x444ddf='$graveyard'==_0x4783ff['root']['rootName']?_0x5dba4b['model']['createRange'](_0x1d76db['start']):_0x5dba4b['model']['createRange'](_0x4783ff['start'],_0x4783ff['end']),_0x4783ff['detach'](),_0x5dba4b['model']['enqueueChange'](_0x4570e4['buffer']['batch'],_0x6f1108=>{_0x4570e4['buffer']['lock'](),_0x6f1108['setSelection'](_0x6f1108['createRange'](_0x444ddf['end'])),_0x4570e4['buffer']['unlock']();});}),_0x5dba4b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5dba4b,'merge'),{'priority':'high'}),_0x5dba4b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x51c88e,_0x5e9e27,_0x590fef)=>{_0x590fef['options']['showSuggestionHighlights']&&_e(_0x5dba4b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x51c88e,_0x5e9e27,_0x590fef);},{'priority':'high'}),_0x5dba4b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xa492b0,_0x25aca1,_0x3ea704)=>{const _0x3a96cf=_0x3ea704['mapper']['markerNameToElements'](_0x25aca1['markerName']);if(_0x3a96cf){for(const _0x5eb0bc of _0x3a96cf)_0x5eb0bc['is']('uiElement')&&(_0x3ea704['mapper']['unbindElementFromMarkerName'](_0x5eb0bc,_0x25aca1['markerName']),_0x3ea704['writer']['remove'](_0x5eb0bc));}},{'priority':'high'});}}class K extends _0x310a20{['afterInit'](){const _0x313216=this['editor'];if(!_0x313216['plugins']['has']('ListEditing'))return;const _0x5a4746=_0x313216['locale'],_0x1581cf=_0x313216['plugins']['get']('TrackChangesEditing'),_0x8d0782=_0x313216['plugins']['has']('TodoListEditing'),_0x1a9093=!!_0x313216['config']['get']('list.multiBlock');function _0x460b0a(_0x58b533){return{'type':'format','content':''+o(_0x5a4746,'*Set\x20format:*\x20%0',_0x58b533)};}function _0x2f5b24(_0x5d0d4e){return{'type':'format','content':''+o(_0x5a4746,'*Remove\x20format:*\x20%0',_0x5d0d4e)};}_0x1581cf['enableDefaultAttributesIntegration']('numberedList'),_0x1581cf['enableDefaultAttributesIntegration']('bulletedList'),_0x1581cf['enableDefaultAttributesIntegration']('customNumberedList'),_0x1581cf['enableDefaultAttributesIntegration']('customBulletedList'),_0x1581cf['enableDefaultAttributesIntegration']('indentList'),_0x1581cf['enableDefaultAttributesIntegration']('outdentList'),_0x1581cf['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1581cf['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1581cf['registerBlockAttribute']('listItemId'),_0x1581cf['registerBlockAttribute']('listType'),_0x1581cf['registerBlockAttribute']('listIndent'),_0x1a9093&&(_0x1581cf['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1581cf['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x8d0782&&(_0x1581cf['enableDefaultAttributesIntegration']('todoList'),_0x1581cf['enableDefaultAttributesIntegration']('checkTodoList'),_0x1581cf['registerBlockAttribute']('todoListChecked'),_0x1581cf['descriptionFactory']['registerDescriptionCallback'](_0x3d770a=>{const {data:_0x3d9da9}=_0x3d770a;if(_0x3d9da9&&'todoListChecked'==_0x3d9da9['key'])return{'type':'format','content':_0x3d9da9['newValue']?o(_0x5a4746,'*Check\x20item*'):o(_0x5a4746,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5c4308=>{if(_0x5c4308['batch']['isUndo'])return!0x1;let _0xedfc9f=!0x1;const _0x58b7ba=_0x1581cf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46757e=>'todoListChecked'===_0x1581cf['_getAttributeKey'](_0x46757e));for(const _0x2fb6d3 of _0x58b7ba){'todo'!=_0x2fb6d3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1581cf['_findSuggestions'](_0x2fb6d3['getFirstRange'](),'attribute')['find'](_0x295e9f=>'listType'===_0x1581cf['_getAttributeKey'](_0x295e9f['suggestion']))||(_0x5c4308['removeMarker'](_0x2fb6d3['getFirstMarker']()),_0xedfc9f=!0x0));}return _0xedfc9f;})),_0x1581cf['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5a4746,'FORMAT_INDENT'));const _0x50666d={'type':'format','content':''};_0x1581cf['descriptionFactory']['registerDescriptionCallback'](_0xd63b29=>{const {data:_0x442d8e}=_0xd63b29;if(!_0x442d8e||'listType'!=_0x442d8e['key'])return;let _0x52d43c=_0xd63b29['head'];for(;_0x52d43c;){if(_0x52d43c['data']&&(('listStyle'==_0x52d43c['data']['key']||'listMarkerStyle'==_0x52d43c['data']['key'])&&(_0x52d43c['data']['newValue']&&'default'!=_0x52d43c['data']['newValue']||'default'!=_0x52d43c['data']['oldValue']&&!_0x442d8e['newValue'])||!_0x1a9093&&_0x52d43c['data']['key']==m))return _0x50666d;_0x52d43c=_0x52d43c['next'];}if(null==_0x442d8e['newValue'])switch(_0x442d8e['oldValue']){case'bulleted':return _0x2f5b24(o(_0x5a4746,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2f5b24(o(_0x5a4746,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2f5b24(o(_0x5a4746,'ELEMENT_TODO_LIST'));}switch(_0x442d8e['newValue']){case'bulleted':return _0x460b0a(o(_0x5a4746,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x460b0a(o(_0x5a4746,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x460b0a(o(_0x5a4746,'ELEMENT_TODO_LIST'));}}),_0x1581cf['descriptionFactory']['registerDescriptionCallback'](_0x38c4fd=>{const {data:_0x7a4045}=_0x38c4fd;if(_0x7a4045&&'listIndent'==_0x7a4045['key'])return null==_0x7a4045['newValue']||null==_0x7a4045['oldValue']&&0x0==_0x7a4045['newValue']?_0x50666d:void 0x0;}),_0x1581cf['descriptionFactory']['registerDescriptionCallback'](_0x585981=>{if('attribute'!=_0x585981['type'])return;const {data:_0xa5dd21}=_0x585981;if(!_0xa5dd21||'listItemId'!=_0xa5dd21['key'])return;const _0x266659=Ee(_0x585981);return'newValue'==_0x266659?{'type':'format','content':o(_0x5a4746,'*Merge:*\x20list\x20item')}:'oldValue'==_0x266659?{'type':'format','content':o(_0x5a4746,'*Split:*\x20list\x20item')}:_0x50666d;}),_0x313216['model']['document']['registerPostFixer'](_0x23edb5=>this['listItemIdFixer'](_0x23edb5)),_0x313216['model']['document']['registerPostFixer'](_0x42279c=>this['noTrackChangesFixer'](_0x42279c)),_0x313216['model']['document']['on']('change:data',(_0x447fda,_0x3432ac)=>{if(_0x3432ac['isUndo']||!_0x3432ac['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1b41c9){if(_0x1b41c9['batch']['isUndo']||!_0x1b41c9['batch']['isLocal'])return!0x1;let _0x1ffd94=!0x1;const _0x2e6b6f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5276d2=>_0x5276d2['data']&&'listItemId'==_0x5276d2['data']['key'])['filter'](_0x336e71=>_0x336e71['data']['newValue']&&_0x336e71['data']['oldValue']);for(const _0x4f527c of _0x2e6b6f)Ee(_0x4f527c)||(_0x1b41c9['removeMarker'](_0x4f527c['getFirstMarker']()),_0x1ffd94=!0x0);return _0x1ffd94;}['noTrackChangesFixer'](_0x215758){if(_0x215758['batch']['isUndo']||!_0x215758['batch']['isLocal'])return!0x1;const _0x191240=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x191240['trackChangesCommand']['value'])return!0x1;let _0x33e598=!0x1;const _0x5e1e02=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3587e9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x43f77f=>'attribute'==_0x43f77f['type'])['filter'](_0x3d8915=>_0x5e1e02['includes'](_0x3d8915['attributeKey']));if(0x0==_0x3587e9['length'])return _0x33e598;for(const _0xdb0d97 of _0x3587e9){const _0x2e963f=_0x191240['_findSuggestions'](_0xdb0d97['range'],'attribute')['filter'](_0x2baec9=>!_0x2baec9['meta']['isNextTo'])['map'](_0x589954=>_0x589954['suggestion'])['filter'](_0x425f17=>{const _0x415004=_0x191240['_getAttributeKey'](_0x425f17);return _0x5e1e02['includes'](_0x415004);});if(_0x2e963f['length']){for(const _0x2c715b of _0x2e963f)_0x215758['removeMarker'](_0x2c715b['getFirstMarker']());_0x33e598=!0x0;}}return _0x33e598;}['assureChains'](){const _0x347ac1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d302b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x20f1ee;const _0x51bfd9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x15af9a=>{if(_0x15af9a['data']['oldRange']||!_0x15af9a['data']['newRange'])return null;if(!_0x15af9a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1814d0}=_0x347ac1['_splitMarkerName'](_0x15af9a['name']);if(!_0x347ac1['hasSuggestion'](_0x1814d0))return null;const _0x30e674=_0x347ac1['getSuggestion'](_0x1814d0);return _0x5d302b['includes'](_0x30e674['data']['key']);})['map'](_0x4c05fd=>{const {id:_0x43f3e6}=_0x347ac1['_splitMarkerName'](_0x4c05fd['name']),_0x162db2=_0x347ac1['getSuggestion'](_0x43f3e6);return _0x20f1ee=_0x162db2['attributes']['groupId'],_0x162db2['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x51bfd9['size'])return;const _0x573d47=_0x347ac1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x347a9e=>'attribute'==_0x347a9e['type']&&_0x347a9e['data']&&_0x5d302b['includes'](_0x347a9e['data']['key'])&&_0x347a9e['attributes']['groupId']!=_0x20f1ee)['map'](_0x73eb89=>({'listItem':_0x73eb89['getFirstRange']()['start']['nodeAfter'],'groupId':_0x73eb89['attributes']['groupId']})),_0x2bc826=new Set();for(const {groupId:_0x12cc6a,listItem:_0x123e33}of _0x573d47)_0x51bfd9['has'](_0x123e33)&&_0x2bc826['add'](_0x12cc6a);for(const _0x559815 of _0x347ac1['getSuggestions']())_0x2bc826['has'](_0x559815['attributes']['groupId'])&&_0x559815['setAttribute']('groupId',_0x20f1ee);}['_supportLegacySuggestions'](){const _0x1aa724=this['editor'],_0x645569=_0x1aa724['locale'],_0x128322=_0x1aa724['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x128322['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x142730,_0x34dffc){const _0x42b380=[];for(let _0x1bc658 of _0x142730)_0x1bc658['start']['nodeAfter']===_0x1bc658['end']['parent']&&(_0x1bc658=_0x1aa724['model']['createRange'](_0x1aa724['model']['createPositionAt'](_0x1bc658['start']['nodeAfter'],0x0))),_0x42b380['push'](_0x1bc658);_0x1aa724['model']['change'](_0x31e8ee=>{const _0x331796=_0x1aa724['model']['document']['selection'],_0xc78860=Array['from'](_0x331796['getRanges']())['map'](_0x4fa396=>_0xfd736c['fromRange'](_0x4fa396));_0x31e8ee['setSelection'](_0x42b380),_0x1aa724['commands']['get'](_0x34dffc['commandName'])['refresh'](),_0x34dffc['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1aa724['execute'](_0x34dffc['commandName'],..._0x34dffc['commandParams']),_0x31e8ee['setSelection'](_0xc78860);for(const _0x87203 of _0xc78860)_0x87203['detach']();});}),_0x128322['descriptionFactory']['registerElementLabel'](function(_0x8665e6){const _0x2aa412=!_0x1aa724['model']['schema']['isObject'](_0x8665e6),_0x30b321=_0x8665e6['previousSibling'],_0x1622e7=_0x8665e6['nextSibling'],_0x274487=_0x8665e6['getAttribute']('listItemId'),_0x4094ac=!_0x30b321||_0x30b321['getAttribute']('listItemId')!==_0x274487,_0xcb6800=!_0x1622e7||_0x1622e7['getAttribute']('listItemId')!==_0x274487;return _0x2aa412&&Boolean(_0x274487)&&_0x4094ac&&_0xcb6800;},_0x59d4d4=>o(_0x645569,'ELEMENT_LIST_ITEM',_0x59d4d4));}['_registerLegacyDescription'](){const _0x15a8c5=this['editor'],_0x18b8af=_0x15a8c5['locale'];function _0x172ef8(_0x239f26){const _0x269671=_0x15a8c5['commands']['get']('bulletedList')['value'],_0x42ce1a=_0x15a8c5['commands']['get']('numberedList')['value'];return'numberedList'===_0x239f26?_0x269671:_0x42ce1a;}_0x15a8c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3d6449){if('formatBlock'!=_0x3d6449['type'])return;const {data:_0x435b70}=_0x3d6449;if(!_0x435b70)return;let _0x3c76ce,_0x10e24c,_0x198bbe,_0x3fce27;switch(_0x435b70['commandName']){case'bulletedList':_0x198bbe=_0x435b70['commandParams'][0x0]['forceValue'],_0x3fce27=_0x172ef8(_0x435b70['commandName']),_0x3c76ce=_0x198bbe?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3fce27&&_0x15a8c5['config']['get']('list.multiBlock')||(_0x3c76ce='*Change\x20to:*\x20%0'),_0x10e24c={'type':'format','content':o(_0x18b8af,_0x3c76ce,o(_0x18b8af,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x198bbe=_0x435b70['commandParams'][0x0]['forceValue'],_0x3fce27=_0x172ef8(_0x435b70['commandName']),_0x3c76ce=_0x198bbe?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3fce27&&_0x15a8c5['config']['get']('list.multiBlock')||(_0x3c76ce='*Change\x20to:*\x20%0'),_0x10e24c={'type':'format','content':o(_0x18b8af,_0x3c76ce,o(_0x18b8af,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3c76ce='*Indent:*\x20%0',_0x10e24c={'type':'format','content':o(_0x18b8af,_0x3c76ce,o(_0x18b8af,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3c76ce=function(_0x863f26){const _0x467241=_0x863f26['getFirstRange']();let _0x3f5feb=_0x467241['start']['nodeAfter'];for(;_0x3f5feb&&_0x467241['containsItem'](_0x3f5feb);){if(_0x3f5feb['getAttribute']('listIndent')>0x0)return!0x1;_0x3f5feb=_0x3f5feb['nextSibling'];}return!0x0;}(_0x3d6449)?o(_0x18b8af,'*Format:*\x20remove\x20from\x20%0',o(_0x18b8af,function(_0x4380eb){return'ELEMENT_'+_0x4380eb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3d6449))):o(_0x18b8af,'*Outdent:*\x20%0',o(_0x18b8af,'ELEMENT_LIST_ITEM')),_0x10e24c={'type':'format','content':_0x3c76ce};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x435b70['multipleBlocks']&&(_0x3c76ce='*Merge:*\x20%0',_0x10e24c={'type':'deletion','content':o(_0x18b8af,_0x3c76ce,o(_0x18b8af,'ELEMENT_LIST_ITEM'))});}return _0x10e24c;});}}function Ee(_0x16ed17){let _0x3e7da0=_0x16ed17['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3e7da0;){const _0x3a5213=_0x3e7da0['getAttribute']('listItemId');if(!_0x3a5213)return!0x1;if(_0x3a5213==_0x16ed17['data']['newValue'])return'newValue';if(_0x3a5213==_0x16ed17['data']['oldValue'])return'oldValue';_0x3e7da0=_0x3e7da0['previousSibling'];}return!0x1;}class pe extends _0x310a20{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x443931=this['editor']['config']['get']('list.properties'),_0x53374b=this['editor']['plugins']['get']('TrackChangesEditing');_0x443931['styles']&&(_0x53374b['enableDefaultAttributesIntegration']('listStyle'),_0x53374b['registerBlockAttribute']('listStyle')),_0x443931['reversed']&&(_0x53374b['enableDefaultAttributesIntegration']('listReversed'),_0x53374b['registerBlockAttribute']('listReversed')),_0x443931['startIndex']&&(_0x53374b['enableDefaultAttributesIntegration']('listStart'),_0x53374b['registerBlockAttribute']('listStart'));const _0x344b64={'type':'format','content':''};_0x53374b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x53105c=this['editor']['locale'];_0x53374b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x53105c,'FORMAT_LIST_REVERSED')),_0x53374b['descriptionFactory']['registerDescriptionCallback'](_0x55f2fe=>{const {data:_0x23338f}=_0x55f2fe;if(_0x23338f&&'listReversed'==_0x23338f['key'])return null==_0x23338f['newValue']||0x0==_0x23338f['newValue']&&null==_0x23338f['oldValue']?_0x344b64:void 0x0;}),_0x53374b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x53105c,'FORMAT_LIST_START')),_0x53374b['descriptionFactory']['registerDescriptionCallback'](_0x5e6562=>{const {data:_0xb7dfd3}=_0x5e6562;if(_0xb7dfd3&&'listStart'==_0xb7dfd3['key'])return null==_0xb7dfd3['newValue']||0x1==_0xb7dfd3['newValue']&&null==_0xb7dfd3['oldValue']?_0x344b64:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x107000=>{if(_0x107000['batch']['isUndo'])return!0x1;let _0x4d3759=!0x1;const _0xd507fc=_0x53374b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dbfd0=>{const _0x50f30d=_0x53374b['_getAttributeKey'](_0x5dbfd0);return'listStart'==_0x50f30d||'listReversed'==_0x50f30d;});for(const _0x4ee457 of _0xd507fc){const _0x523163=_0x4ee457['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x523163||'customNumbered'==_0x523163)continue;_0x53374b['_findSuggestions'](_0x4ee457['getFirstRange'](),'attribute')['find'](_0x3d9bf4=>'listType'==_0x53374b['_getAttributeKey'](_0x3d9bf4['suggestion']))||(_0x107000['removeMarker'](_0x4ee457['getFirstMarker']()),_0x4d3759=!0x0);}return _0x4d3759;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x31fa43){const _0x3172b1=this['editor']['locale'],{data:_0x557f9f}=_0x31fa43,_0x1eb101={'type':'format','content':''};if(!_0x557f9f||'listStyle'!=_0x557f9f['key'])return;if(!_0x557f9f['oldValue'])return'default'==_0x557f9f['newValue']?_0x1eb101:{'type':'format','content':''+o(_0x3172b1,'*Set\x20format:*\x20%0',o(_0x3172b1,this['_getTranslationKeyForListStyle'](_0x557f9f['newValue'])))};if(!_0x557f9f['newValue']){if('default'==_0x557f9f['oldValue'])return _0x1eb101;let _0x513742=_0x31fa43['head'];for(;_0x513742;){if(_0x513742['data']&&'listType'==_0x513742['data']['key']&&_0x513742['data']['newValue'])return _0x1eb101;_0x513742=_0x513742['next'];}return{'type':'format','content':''+o(_0x3172b1,'*Remove\x20format:*\x20%0',o(_0x3172b1,this['_getTranslationKeyForListStyle'](_0x557f9f['oldValue'])))};}if('default'!=_0x557f9f['newValue'])return{'type':'format','content':''+o(_0x3172b1,'*Set\x20format:*\x20%0',o(_0x3172b1,this['_getTranslationKeyForListStyle'](_0x557f9f['newValue'])))};let _0x18ebfc=_0x31fa43['head'];for(;_0x18ebfc;){if(_0x18ebfc['data']&&'listType'==_0x18ebfc['data']['key']&&_0x18ebfc['data']['newValue']&&_0x18ebfc['data']['oldValue'])return _0x1eb101;_0x18ebfc=_0x18ebfc['next'];}return{'type':'format','content':o(_0x3172b1,'*Set\x20format:*\x20%0',o(_0x3172b1,'ELEMENT_'+_0x31fa43['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1a306c=this['editor'],_0x1bc595=_0x1a306c['locale'];_0x1a306c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x432b16=>{if('formatBlock'!=_0x432b16['type'])return;const {data:_0x48669b}=_0x432b16;if(!_0x48669b)return;let _0x8634bc,_0x1450f3;switch(_0x48669b['commandName']){case'listStyle':_0x8634bc='*Change\x20to:*\x20%0',_0x1450f3={'type':'format','content':o(_0x1bc595,_0x8634bc,o(_0x1bc595,this['_getTranslationKeyForListStyle'](_0x48669b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x8634bc=_0x48669b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1450f3={'type':'format','content':o(_0x1bc595,_0x8634bc)};break;case'listStart':_0x8634bc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1450f3={'type':'format','content':o(_0x1bc595,_0x8634bc,_0x48669b['commandParams'][0x0]['startIndex'])};}return _0x1450f3;});}['_getTranslationKeyForListStyle'](_0x380d19){return'ELEMENT_'+function(_0x3ce62d){if(ye['includes'](_0x3ce62d))return'bulleted';if(Se['includes'](_0x3ce62d))return'numbered';return null;}(_0x380d19)['toUpperCase']()+'_LIST_'+_0x380d19['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x310a20{static get['requires'](){return[_0x466c0e];}['init'](){const _0x147931=this['editor'],_0x535f49=_0x147931['plugins']['get']('TrackChangesEditing'),_0x5e07a4=_0x147931['commands']['get']('enter');_0x535f49['enableCommand']('enter',()=>{_0x147931['model']['change'](_0x5bb846=>{const _0x48a6d6=_0x147931['model']['document']['selection'],_0x26e740=_0x48a6d6['getFirstPosition'](),_0x5dfc02=_0xfd736c['fromRange'](_0x48a6d6['getFirstRange']());if(_0x5e07a4['enterBlock'](_0x5bb846)){const _0x31a55b=_0x147931['model']['createPositionAt'](_0x26e740['parent']['nextSibling'],0x0),_0x429d04=_0x5bb846['createRange'](_0x26e740,_0x31a55b);_0x535f49['markInsertion'](_0x429d04);}else _0x5bb846['setSelection'](_0x5bb846['createRange'](_0x5dfc02['end']));_0x5dfc02['detach'](),_0x5e07a4['fire']('afterExecute',{'writer':_0x5bb846});});}),_0x147931['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x147931,'split'),{'priority':'high'}),_0x147931['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x293353,_0xe0258c,_0x2c0f72)=>{const _0x9b5382=_0x2c0f72['mapper']['markerNameToElements'](_0xe0258c['markerName']);if(_0x9b5382){for(const _0x21b293 of _0x9b5382)_0x21b293['hasClass']('ck-suggestion-marker-split')&&(_0x2c0f72['mapper']['unbindElementFromMarkerName'](_0x21b293,_0xe0258c['markerName']),_0x2c0f72['writer']['remove'](_0x21b293));}},{'priority':'high'}),_0x147931['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x40d28d,_0x464456,_0x3c9ac4)=>{_0x3c9ac4['options']['showSuggestionHighlights']&&_e(_0x147931,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x40d28d,_0x464456,_0x3c9ac4);},{'priority':'high'});}}class X extends _0x310a20{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2e84df=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e84df['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2e84df['enableCommand']('findNext'),_0x2e84df['enableCommand']('findPrevious'),_0x2e84df['enableCommand']('replace'),_0x2e84df['enableCommand']('replaceAll');}['handleFindCommand'](_0x30e0ad,_0x1b2255,_0x386ed0={}){const _0x189341=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x30e0ad(_0x2498f4=>{let _0x551cde=('string'==typeof _0x1b2255?_0x189341['findByTextCallback'](_0x1b2255,_0x386ed0):_0x1b2255)(_0x2498f4);Array['isArray'](_0x551cde)&&(_0x551cde={'results':_0x551cde,'searchText':'string'==typeof _0x1b2255?_0x1b2255:''});const _0x47ae0e=_0x551cde['results']['filter'](_0x3bb229=>!0x1===this['_isInDeletionRange'](_0x3bb229,_0x2498f4['item']));return{..._0x551cde,'results':_0x47ae0e};},_0x386ed0);}['_isInDeletionRange'](_0x144699,_0x2ba62d){const _0x21113c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ba62d,_0x144699['start']),this['editor']['model']['createPositionAt'](_0x2ba62d,_0x144699['end']));for(const _0x554fa6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x21113c['getIntersection'](_0x554fa6['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 _0x310a20{['afterInit'](){const _0x3d1a54=this['editor']['locale'],_0x260a92=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2adf9b,commandName:_0x2160dc}of ro)this['editor']['plugins']['has'](_0x2adf9b)&&(_0x260a92['enableDefaultAttributesIntegration'](_0x2160dc),_0x260a92['registerInlineAttribute'](_0x2160dc));_0x260a92['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3d1a54,'FORMAT_FONT_SIZE')),_0x260a92['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3d1a54,'FORMAT_FONT_FAMILY')),_0x260a92['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3d1a54,'FORMAT_FONT_COLOR')),_0x260a92['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3d1a54,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x238a15=this['editor'],_0x7f8cb=_0x238a15['locale'];_0x238a15['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x189a4f=>{const _0xa8b574=_0x7f8cb['t'];if('formatInline'!=_0x189a4f['type'])return;const {data:_0x55235f}=_0x189a4f;if(null!=_0x55235f){if('fontSize'==_0x55235f['commandName']){const _0x13b453=_0x55235f['commandParams'][0x0]['value'];if(_0x13b453){const _0x4779cd=_0xa8b574(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x20cfdd=>_0x20cfdd['model']==_0x13b453)['title'])['toLowerCase']();return{'type':'format','content':o(_0x7f8cb,'*Set\x20font\x20size:*\x20%0',_0x4779cd)};}return{'type':'format','content':o(_0x7f8cb,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x55235f['commandName']){const _0x27433e=_0x55235f['commandParams'][0x0]['value'];return _0x27433e?{'type':'format','content':o(_0x7f8cb,'*Set\x20font\x20family:*\x20%0',_0x27433e)}:{'type':'format','content':o(_0x7f8cb,'*Reset\x20font\x20family*')};}if('fontColor'==_0x55235f['commandName']){const _0x3f0ba7=_0x55235f['commandParams'][0x0]['value'];if(_0x3f0ba7){const _0x5f73b4=_0x57f8f2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x43ba46=>_0x43ba46['model']==_0x3f0ba7);let _0x286316=_0x3f0ba7,_0x20966a='';return _0x5f73b4&&(_0x286316=_0x5f73b4['label'],_0x20966a=_0xa8b574(_0x286316)['toLowerCase']()),{'type':'format','content':o(_0x7f8cb,'*Set\x20font\x20color:*\x20%0',_0x20966a)['trim'](),'color':{'value':_0x3f0ba7,'title':_0x20966a||_0x286316}};}return{'type':'format','content':o(_0x7f8cb,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x55235f['commandName']){const _0x250842=_0x55235f['commandParams'][0x0]['value'];if(_0x250842){const _0x8ebef9=_0x57f8f2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xebeb65=>_0xebeb65['model']==_0x250842);let _0x59e878=_0x250842,_0x4b0a11='';return _0x8ebef9&&(_0x59e878=_0x8ebef9['label'],_0x4b0a11=_0xa8b574(_0x59e878)['toLowerCase']()),{'type':'format','content':o(_0x7f8cb,'*Set\x20font\x20background\x20color:*\x20%0',_0x4b0a11)['trim'](),'color':{'value':_0x250842,'title':_0x4b0a11||_0x59e878}};}return{'type':'format','content':o(_0x7f8cb,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x310a20{['afterInit'](){const _0x119777=this['editor'],_0x3bb9a1=_0x119777['plugins']['get']('TrackChangesEditing'),_0x50e135=_0x119777['commands']['get']('copyFormat'),_0x286874=_0x119777['commands']['get']('pasteFormat');_0x50e135&&_0x286874&&(_0x3bb9a1['enableDefaultAttributesIntegration']('pasteFormat'),_0x3bb9a1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xaeaead=this['editor'],_0x288f3d=_0xaeaead['locale'];_0xaeaead['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f7094=>{if('formatBlock'!=_0x3f7094['type']&&'formatInline'!=_0x3f7094['type'])return;const {data:_0x3d1dd9}=_0x3f7094;if(_0x3d1dd9&&'pasteFormat'===_0x3d1dd9['commandName']){const _0x19d9df=[],_0x330e34=_0x3d1dd9['commandParams'][0x0];for(const [_0x2e226c,_0x4ff4d2]of Object['entries'](_0x330e34))_0x19d9df['push'](so(_0xaeaead,_0x2e226c,_0x4ff4d2));return _0x19d9df['length']?{'type':'format','content':o(_0x288f3d,'*Set\x20format\x20to:*\x20%0',_0x19d9df['join'](',\x20'))}:{'type':'format','content':o(_0x288f3d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x357a15,_0x44744a,_0x5c33d6){const _0xd24df6=_0x357a15['locale']['t'],_0x3b7c53=_0x44744a['split'](/(?=[A-Z])/)['join']('\x20'),_0x16afdf=_0xd24df6(_0x3b7c53['charAt'](0x0)['toUpperCase']()+_0x3b7c53['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5c33d6)return _0x16afdf;if('fontColor'===_0x44744a||'fontBackgroundColor'===_0x44744a){const _0x5ce14a=_0x57f8f2(_0x357a15['config']['get']('fontColor.colors'))['find'](_0x5633f5=>_0x5633f5['model']==_0x5c33d6);return _0x16afdf+'\x20('+(_0x5ce14a?_0xd24df6(_0x5ce14a['label'])['toLowerCase']():_0x5c33d6)+')';}if('fontSize'===_0x44744a&&isNaN(parseFloat(_0x5c33d6))){const _0x3d6d76=_0x357a15['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x357a15['config']['get']('fontSize.options'))['find'](_0x149418=>_0x149418['model']==_0x5c33d6);return _0x16afdf+'\x20('+(_0x3d6d76?_0xd24df6(_0x3d6d76['title'])['toLowerCase']():_0x5c33d6)+')';}return _0x16afdf+'\x20('+_0x5c33d6+')';}class tt extends _0x310a20{['_headingOptions'];['afterInit'](){const _0x337dc2=this['editor'];if(!_0x337dc2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x337dc2['config']['get']('heading.options');const _0x2543ad=_0x337dc2['locale'],_0x50949b=_0x337dc2['plugins']['get']('TrackChangesEditing');_0x50949b['enableDefaultAttributesIntegration']('heading');for(const _0x31183d of this['_headingOptions'])'paragraph'!=_0x31183d['model']&&_0x50949b['descriptionFactory']['registerElementLabel'](_0x31183d['model'],_0x3733e9=>{const _0x2c2cd1=this['_getHeadingLevel'](_0x31183d['model']);return null!==_0x2c2cd1?_0x3ed712(_0x3733e9,_0x2c2cd1):_0x40d32c(_0x3733e9,_0x31183d['title']);});function _0x3ed712(_0x37a310,_0x1b24ff){return o(_0x2543ad,'ELEMENT_HEADING',[_0x37a310,_0x1b24ff]);}function _0x40d32c(_0x4041a7,_0x1f7627){return o(_0x2543ad,'ELEMENT_HEADING_CUSTOM',[_0x4041a7,_0x1f7627]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fd82e=this['editor'],_0x30d5d8=_0x2fd82e['locale'];function _0x2617b2(_0x37ec93,_0x2d2007){return o(_0x30d5d8,'ELEMENT_HEADING_CUSTOM',[_0x37ec93,_0x2d2007]);}_0x2fd82e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x375248=>{if('formatBlock'!=_0x375248['type'])return;const {data:_0xe42b01}=_0x375248;if(_0xe42b01&&'heading'==_0xe42b01['commandName']){const _0x2649be=_0xe42b01['commandParams'][0x0]['value'],_0xc5f6ba=this['_getHeadingLevel'](_0x2649be);if(null!==_0xc5f6ba)return{'type':'format','content':o(_0x30d5d8,'*Change\x20to:*\x20%0',(_0x499c13=0x1,_0x421c54=_0xc5f6ba,o(_0x30d5d8,'ELEMENT_HEADING',[_0x499c13,_0x421c54])))};const _0x1c1bad=this['_headingOptions']['find'](_0x47fdf5=>_0x47fdf5['model']===_0x2649be)['title'];return{'type':'format','content':o(_0x30d5d8,'*Change\x20to:*\x20%0',_0x2617b2(0x1,_0x1c1bad))};}var _0x499c13,_0x421c54;});}['_getHeadingLevel'](_0x4149a1){const _0x24a521=_0x4149a1['match'](/^heading(\d+)/);if(_0x24a521)return _0x24a521[0x1];const _0xb5b850=this['_headingOptions']?.['find'](_0x5596ee=>_0x5596ee['model']==_0x4149a1);if(_0xb5b850&&_0xb5b850['view']){const _0x44ef1b=_0xb5b850['view'],_0x409008=(_0x44ef1b['name']??_0x44ef1b)['match'](/^h(\d+)/);if(_0x409008)return _0x409008[0x1];}return null;}}class et extends _0x310a20{['afterInit'](){const _0x21ac12=this['editor'];if(!_0x21ac12['plugins']['has']('HighlightEditing'))return;const _0x1c579a=_0x21ac12['plugins']['get']('TrackChangesEditing'),_0x4024a5=_0x21ac12['locale'];_0x1c579a['enableDefaultAttributesIntegration']('highlight'),_0x1c579a['registerInlineAttribute']('highlight'),_0x1c579a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4024a5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30563b=this['editor'],_0x1527f5=_0x30563b['locale'];_0x30563b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x513cc2=>{if('formatInline'!=_0x513cc2['type'])return;const {data:_0x5c7f1d}=_0x513cc2;if(_0x5c7f1d&&'highlight'==_0x5c7f1d['commandName']){const _0x3e56c0=_0x1527f5['t'],_0x5582be=_0x5c7f1d['commandParams'][0x0]['value'];if(_0x5582be){const _0x17b5b9=_0x30563b['config']['get']('highlight.options')['find'](_0x12e173=>_0x12e173['model']==_0x5582be),_0x1bf83=_0x3e56c0(_0x17b5b9['title'])['toLowerCase']();return{'type':'format','content':o(_0x1527f5,'*Set\x20highlight:*\x20%0',_0x1bf83),'color':{'value':_0x17b5b9['color'],'title':_0x17b5b9['title']}};}return{'type':'format','content':o(_0x1527f5,'*Remove\x20highlight*',o(_0x1527f5,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x310a20{['afterInit'](){const _0x1bf720=this['editor'];if(!_0x1bf720['plugins']['has']('HorizontalLineEditing'))return;_0x1bf720['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x294107=_0x1bf720['plugins']['get']('TrackChangesEditing'),_0x4204ab=_0x1bf720['locale'];_0x294107['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5d3f1f=>o(_0x4204ab,'ELEMENT_HORIZONTAL_LINE',_0x5d3f1f)),_0x1bf720['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1c4443,{writer:_0x3743a7,options:_0x5224cd})=>{if(!_0x5224cd['showSuggestionHighlights'])return null;const _0x44d383=_0x3743a7['createContainerElement']('div'),_0x3bc869=_0x3743a7['createEmptyElement']('hr');return _0x3743a7['addClass']('ck-horizontal-line',_0x44d383),_0x3743a7['insert'](_0x3743a7['createPositionAt'](_0x44d383,0x0),_0x3bc869),_0x44d383;},'converterPriority':'high'});}}class st extends _0x310a20{['afterInit'](){const _0x3881f6=this['editor'];if(!_0x3881f6['plugins']['has']('HtmlEmbed'))return;const _0x3fc6b2=_0x3881f6['plugins']['get']('TrackChangesEditing'),_0x1824f6=_0x3881f6['locale'];_0x3fc6b2['descriptionFactory']['registerElementLabel']('rawHtml',_0x3102ad=>o(_0x1824f6,'ELEMENT_HTML_EMBED',_0x3102ad)),_0x3fc6b2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3fc6b2['registerBlockAttribute']('value'),_0x3fc6b2['descriptionFactory']['registerDescriptionCallback'](_0x4ac160=>{if('attribute'!=_0x4ac160['type'])return;const {data:_0x3964a1}=_0x4ac160;if(_0x3964a1&&'value'==_0x3964a1['key']&&_0x4ac160['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x44fb10=o(_0x1824f6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1824f6,'*Change\x20%0\x20content*',_0x44fb10)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7a3caf=this['editor'],_0x1ea71e=_0x7a3caf['locale'];_0x7a3caf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dc437=>{if('formatBlock'!=_0x5dc437['type'])return;const {data:_0x296519}=_0x5dc437;if(_0x296519&&'htmlEmbed'==_0x296519['commandName']){const _0x577b13=o(_0x1ea71e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1ea71e,'*Change\x20%0\x20content*',_0x577b13)};}});}}class nt extends _0x310a20{['afterInit'](){const _0x2407ce=this['editor'];if(!_0x2407ce['plugins']['has']('ImageEditing'))return;const _0x3d1a98=_0x2407ce['plugins']['get']('TrackChangesEditing'),_0x2f1c0b=_0x2407ce['plugins']['get']('ImageUtils'),_0x59aebc=_0x2407ce['locale'];_0x3d1a98['enableCommand']('insertImage'),_0x3d1a98['descriptionFactory']['registerElementLabel']('imageBlock',_0x4907e8=>o(_0x59aebc,'ELEMENT_IMAGE',_0x4907e8)),_0x3d1a98['descriptionFactory']['registerElementLabel']('imageInline',_0x1c96e9=>o(_0x59aebc,'ELEMENT_INLINE_IMAGE',_0x1c96e9)),_0x3d1a98['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x59aebc,'ELEMENT_CAPTION')),_0x2407ce['plugins']['has']('ImageUploadEditing')&&_0x3d1a98['enableCommand']('uploadImage'),_0x2407ce['plugins']['has']('ImageBlockEditing')&&_0x2407ce['plugins']['has']('ImageInlineEditing')&&(_0x3d1a98['enableCommand']('imageTypeInline',(_0xcdbcf2,_0x3e0509)=>{const _0x2df267=_0x2f1c0b['getClosestSelectedImageElement'](_0x2407ce['model']['document']['selection']);_0x2407ce['model']['change'](()=>{_0x3d1a98['markBlockFormat'](_0x2df267,{'commandName':'imageTypeInline','commandParams':[_0x3e0509]},[],'convertBlockImageToInline');});}),_0x3d1a98['enableCommand']('imageTypeBlock',(_0x160958,_0x2b4aaf)=>{_0x2407ce['model']['change'](_0x51cbe3=>{let _0x279597=_0x2f1c0b['getClosestSelectedImageElement'](_0x2407ce['model']['document']['selection']),_0x1f1927=_0x51cbe3['createRangeOn'](_0x279597);const _0x44ca12=_0x441e11['fromPosition'](_0x1f1927['start'],'toPrevious'),_0x3b60d6=_0x441e11['fromPosition'](_0x1f1927['end'],'toNext');_0x3d1a98['forceDefaultExecution'](()=>_0x160958(_0x2b4aaf)),_0x279597=_0x2f1c0b['getClosestSelectedImageElement'](_0x2407ce['model']['document']['selection']),_0x1f1927=_0x51cbe3['createRangeOn'](_0x279597);const _0x4a8e7a=_0x51cbe3['createRange'](_0x44ca12,_0x3b60d6);_0x44ca12['detach'](),_0x3b60d6['detach'](),_0x3d1a98['markBlockFormat'](_0x279597,{'commandName':'imageTypeInline','commandParams':[_0x2b4aaf]},[],'convertInlineImageToBlock'),_0x4a8e7a['start']['isBefore'](_0x1f1927['start'])&&_0x3d1a98['markInsertion'](_0x51cbe3['createRange'](_0x4a8e7a['start'],_0x1f1927['start']),'convertInlineImageToBlock'),_0x1f1927['end']['isBefore'](_0x4a8e7a['end'])&&_0x3d1a98['markInsertion'](_0x51cbe3['createRange'](_0x1f1927['end'],_0x4a8e7a['end']),'convertInlineImageToBlock');});}),_0x3d1a98['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3d1a98['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3d1a98['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3d1a98['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3d1a98['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3d1a98['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x53b875])=>{const _0x4ef573=_0x3d1a98['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2c9830=_0x53b875['start'],_0x5efbcb=_0x53b875['end'];const _0x32083f=_0x2407ce['model']['schema']['getNearestSelectionRange'](_0x2c9830,'backward'),_0x345875=_0x2407ce['model']['schema']['getNearestSelectionRange'](_0x5efbcb,'forward');_0x32083f['isCollapsed']&&(_0x2c9830=_0x32083f['start']),_0x345875['isCollapsed']&&(_0x5efbcb=_0x345875['end']),_0x4ef573([_0x2407ce['model']['createRange'](_0x2c9830,_0x5efbcb)]);}),_0x3d1a98['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xa7cd43),_0x3d1a98['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xa7cd43)),_0x2407ce['plugins']['has']('ImageCaptionEditing')&&(_0x3d1a98['enableCommand']('toggleImageCaption',(_0x64bff3,_0x12ae11)=>{const _0x24ee57=_0x2407ce['plugins']['get']('ImageCaptionUtils');let _0x2e3ffb=_0x2f1c0b['getClosestSelectedImageElement'](_0x2407ce['model']['document']['selection']),_0x663427=_0x24ee57['getCaptionFromImageModelElement'](_0x2e3ffb);_0x2407ce['model']['change'](()=>{if(_0x663427)return void _0x3d1a98['markDeletion'](_0x2407ce['model']['createRangeOn'](_0x663427));const _0x2a64ef=_0x2f1c0b['isBlockImage'](_0x2e3ffb);_0x64bff3(_0x12ae11),_0x2e3ffb=_0x2f1c0b['getClosestSelectedImageElement'](_0x2407ce['model']['document']['selection']),_0x663427=_0x24ee57['getCaptionFromImageModelElement'](_0x2e3ffb),_0x3d1a98['markInsertion'](_0x2407ce['model']['createRangeOn'](_0x663427),_0x2a64ef?null:'imageCaption');});}),_0x3d1a98['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xa7cd43));const _0x561486=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x41493c(_0x20f78a,_0x58dfdb){const _0xf9cc01=_0x561486['findIndex'](({type:_0x1f844d,subType:_0x326d4a})=>_0x20f78a['type']==_0x1f844d&&_0x20f78a['subType']==_0x326d4a),_0x9133f6=_0x561486['findIndex'](({type:_0x3c24cb,subType:_0x2bc1f1})=>_0x58dfdb['type']==_0x3c24cb&&_0x58dfdb['subType']==_0x2bc1f1);if(_0xf9cc01<0x0||_0x9133f6<0x0)return!0x1;const _0x46e89b=_0x20f78a['getFirstRange'](),_0x453ec7=_0x58dfdb['getFirstRange']();if((0x0==_0xf9cc01||0x1==_0xf9cc01)&&0x2==_0x9133f6&&_0x46e89b['isIntersecting'](_0x453ec7))return!0x0;if(0x2==_0xf9cc01&&0x3==_0x9133f6){const _0x29e964=_0x3d1a98['_findSuggestions'](_0x46e89b,'insertion')['filter'](({suggestion:_0x2fe6a9,meta:_0xa1d05f})=>_0xa1d05f['isOwn']&&'convertInlineImageToBlock'==_0x2fe6a9['subType']);if(_0x29e964['length']>0x1&&_0x453ec7['end']['isEqual'](_0x46e89b['start']))return!0x0;if(0x1==_0x29e964['length']&&(_0x46e89b['start']['isEqual'](_0x453ec7['end'])||_0x46e89b['end']['isEqual'](_0x453ec7['start'])))return!0x0;}if(0x3==_0xf9cc01&&0x3==_0x9133f6&&_0x46e89b['start']['isBefore'](_0x453ec7['start'])){const _0x31d537=_0x46e89b['end']['nodeAfter'],_0x4ee10a=_0x453ec7['start']['nodeBefore'];return _0x2f1c0b['isBlockImage'](_0x31d537)&&_0x31d537===_0x4ee10a;}return!0x1;}function _0xa7cd43(_0x2d02fc,_0x1ae340){return _0x41493c(_0x2d02fc,_0x1ae340)?[_0x2d02fc,_0x1ae340]:_0x41493c(_0x1ae340,_0x2d02fc)?[_0x1ae340,_0x2d02fc]:null;}_0x2407ce['plugins']['has']('ImageResize')&&(_0x3d1a98['enableDefaultAttributesIntegration']('resizeImage'),_0x3d1a98['registerBlockAttribute']('resizedWidth'),_0x3d1a98['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x59aebc,'FORMAT_IMAGE_SIZE'))),_0x2407ce['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3d1a98['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3d1a98['registerBlockAttribute']('alt')),_0x3d1a98['descriptionFactory']['registerDescriptionCallback'](_0xceb6e1=>{if(!!_0x561486['find'](({type:_0x148098,subType:_0x1f1233})=>_0xceb6e1['type']==_0x148098&&_0xceb6e1['subType']==_0x1f1233))return _0xceb6e1['previous']?{}:void 0x0;}),_0x3d1a98['descriptionFactory']['registerDescriptionCallback'](_0x541e4b=>{if('insertion'==_0x541e4b['type']||'deletion'==_0x541e4b['type']){const _0xa1c47b=_0x541e4b['getContainedElement']();if(_0xa1c47b&&_0xa1c47b['is']('element','caption'))return{'type':'insertion'==_0x541e4b['type']?'addObject':'removeObject','element':_0xa1c47b,'quantity':0x1};}}),_0x3d1a98['descriptionFactory']['registerDescriptionCallback'](_0x28ecfb=>'formatBlock'==_0x28ecfb['type']&&'convertInlineImageToBlock'==_0x28ecfb['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x28ecfb['type']&&'convertBlockImageToInline'==_0x28ecfb['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3d1a98['descriptionFactory']['registerDescriptionCallback'](_0x6195e7=>{if('attribute'!=_0x6195e7['type'])return;const {data:_0x3d4b90}=_0x6195e7;if(!_0x3d4b90||'alt'!=_0x3d4b90['key'])return;const _0x5b6d32=_0x3d4b90['newValue'];return _0x5b6d32?{'type':'format','content':o(_0x59aebc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5b6d32+'\x22')}:{'type':'format','content':o(_0x59aebc,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5863f7=this['editor'],_0x9166a=_0x5863f7['locale'];_0x5863f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25b10e=>{if('formatBlock'!=_0x25b10e['type']&&'formatInline'!=_0x25b10e['type'])return;const {data:_0x2bf083}=_0x25b10e;if(_0x2bf083){if('imageTextAlternative'==_0x2bf083['commandName']){const _0x50b6fd=_0x2bf083['commandParams'][0x0]['newValue'];return _0x50b6fd?{'type':'format','content':o(_0x9166a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x50b6fd+'\x22')}:{'type':'format','content':o(_0x9166a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2bf083['commandName']){const _0x40f0ca=_0x2bf083['commandParams'][0x0]['width'];return _0x40f0ca?{'type':'format','content':o(_0x9166a,'*Set\x20image\x20width:*\x20%0',_0x40f0ca)}:{'type':'format','content':o(_0x9166a,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x310a20{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x54fdfd=this['editor']['locale'],_0x453b64=this['editor']['plugins']['get']('TrackChangesEditing');_0x453b64['enableDefaultAttributesIntegration']('replaceImageSource'),_0x453b64['registerBlockAttribute']('src'),_0x453b64['descriptionFactory']['registerDescriptionCallback'](_0x39c7c0=>{if('attribute'!=_0x39c7c0['type'])return;const {data:_0x538f48}=_0x39c7c0;return _0x538f48&&'src'==_0x538f48['key']?_0x538f48['newValue']&&_0x538f48['oldValue']?{'type':'format','content':o(_0x54fdfd,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x178971=this['editor']['plugins']['get']('TrackChangesEditing');_0x178971['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x178971['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x178971['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x178971['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3efdfb=this['editor'],_0x380ea2=_0x3efdfb['locale'];_0x3efdfb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e1a58=>{if('formatBlock'!=_0x4e1a58['type']&&'formatInline'!=_0x4e1a58['type'])return;const {data:_0x2e06b4}=_0x4e1a58;if(!_0x2e06b4||'replaceImageSource'!=_0x2e06b4['commandName'])return;return{'type':'format','content':o(_0x380ea2,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x310a20{['afterInit'](){const _0x39fb54=this['editor'];if(!_0x39fb54['plugins']['has']('ImageStyleEditing'))return;const _0x57ef71=_0x39fb54['plugins']['get']('TrackChangesEditing'),_0x4b3e7f=_0x39fb54['plugins']['get']('ImageUtils'),_0x43d77b={};_0x57ef71['enableCommand']('imageStyle',(_0x271e27,_0x2d4edb)=>{const _0x2d065b=_0x39fb54['plugins']['get']('Users')['me'],_0x16afc3=_0x39fb54['commands']['get']('imageStyle');let _0x478ba0=_0x4b3e7f['getClosestSelectedImageElement'](_0x39fb54['model']['document']['selection']),_0x1672b9=_0x39fb54['model']['createRangeOn'](_0x478ba0),_0x5549ee=_0x16afc3['value'];if(_0x5549ee==_0x2d4edb['value'])return;const _0x58d250={'commandName':'imageStyle','commandParams':[_0x2d4edb],'formatGroupId':_0x3620ad()};_0x39fb54['model']['change'](()=>{if(_0x57ef71['getSuggestions']()['filter'](_0x144a82=>_0x144a82['isInContent']&&_0x2d065b==_0x144a82['author']&&('formatBlock'==_0x144a82['type']||'formatInline'==_0x144a82['type'])&&('imageStylePreApply'==_0x144a82['subType']||'imageStylePostApply'==_0x144a82['subType'])&&_0x144a82['getFirstRange']()['isEqual'](_0x1672b9))['forEach'](_0x28ae8e=>_0x57ef71['discardSuggestion'](_0x28ae8e['head'])),_0x478ba0=_0x4b3e7f['getClosestSelectedImageElement'](_0x39fb54['model']['document']['selection']),_0x1672b9=_0x39fb54['model']['createRangeOn'](_0x478ba0),_0x16afc3['refresh'](),_0x39fb54['commands']['get']('imageTypeInline')['refresh'](),_0x39fb54['commands']['get']('imageTypeBlock')['refresh'](),_0x5549ee=_0x16afc3['value'],_0x5549ee!=_0x2d4edb['value'])return _0x4b3e7f['isInlineImage'](_0x478ba0)&&_0x16afc3['shouldConvertImageType'](_0x2d4edb['value'],_0x478ba0)?(_0x271e27({..._0x2d4edb,'setImageSizes':!0x1}),_0x478ba0=_0x4b3e7f['getClosestSelectedImageElement'](_0x39fb54['model']['document']['selection']),void _0x57ef71['markBlockFormat'](_0x478ba0,{..._0x58d250,'commandReversedParams':[{'value':_0x5549ee||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4b3e7f['isBlockImage'](_0x478ba0)?_0x57ef71['markBlockFormat'](_0x478ba0,_0x58d250,[],'imageStylePostApply'):_0x57ef71['markInlineFormat'](_0x1672b9,_0x58d250,'imageStylePostApply'));});});for(const _0x5afd99 of _0x39fb54['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x43d77b[_0x5afd99['name']]=_0x5afd99['title']['toLowerCase']();_0x57ef71['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x57ef71['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x57ef71['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x57ef71['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x49a06c])=>{_0x4b3e7f['setImageNaturalSizeAttributes'](_0x49a06c['getContainedElement']());}),_0x57ef71['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x48c01d,_0xad218e)=>{_0x57ef71['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x48c01d,{'commandName':_0xad218e['commandName'],'commandParams':_0xad218e['commandReversedParams']});}),_0x57ef71['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4f1199,_0x5ae196){if(_0xb611d7(_0x4f1199,_0x5ae196))return[_0x4f1199,_0x5ae196];if(_0xb611d7(_0x5ae196,_0x4f1199))return[_0x5ae196,_0x4f1199];return null;});const _0x16c7d9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xb611d7(_0x572bd8,_0x1ba208){const _0x1782d9=_0x16c7d9['findIndex'](({type:_0x5aa24b,subType:_0x521a35})=>_0x572bd8['type']==_0x5aa24b&&_0x572bd8['subType']==_0x521a35),_0x11fd46=_0x16c7d9['findIndex'](({type:_0x4b79f6,subType:_0x2378e9})=>_0x1ba208['type']==_0x4b79f6&&_0x1ba208['subType']==_0x2378e9);if(_0x1782d9<0x0||_0x11fd46<0x0)return!0x1;const _0x5b39bf=_0x572bd8['getFirstRange'](),_0x1a8394=_0x1ba208['getFirstRange']();if((0x0==_0x1782d9||0x1==_0x1782d9)&&0x2==_0x11fd46&&_0x5b39bf['isIntersecting'](_0x1a8394))return!0x0;if(0x2==_0x1782d9&&0x3==_0x11fd46){const _0x32e37a=_0x57ef71['_findSuggestions'](_0x5b39bf,'insertion')['filter'](({suggestion:_0x4206db,meta:_0x3eed29})=>_0x3eed29['isOwn']&&'convertInlineImageToBlock'==_0x4206db['subType']);if(_0x32e37a['length']>0x1&&_0x1a8394['end']['isEqual'](_0x5b39bf['start']))return!0x0;if(0x1==_0x32e37a['length']&&(_0x5b39bf['start']['isEqual'](_0x1a8394['end'])||_0x5b39bf['end']['isEqual'](_0x1a8394['start'])))return!0x0;}if(0x3==_0x1782d9&&0x3==_0x11fd46&&_0x5b39bf['start']['isBefore'](_0x1a8394['start'])){const _0x57f758=_0x5b39bf['end']['nodeAfter'],_0x40feb2=_0x1a8394['start']['nodeBefore'];return _0x4b3e7f['isBlockImage'](_0x57f758)&&_0x57f758===_0x40feb2;}return!0x1;}_0x39fb54['model']['document']['registerPostFixer'](()=>{let _0x40bad9=!0x1;const _0x2fa5b9=Array['from'](_0x39fb54['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13c4ea,data:_0x52e79f}of _0x2fa5b9){const {group:_0x15fc99,type:_0x253774,subType:_0x35ffab,id:_0xabbdc4}=_0x57ef71['_splitMarkerName'](_0x13c4ea);if('suggestion'==_0x15fc99&&_0x57ef71['hasSuggestion'](_0xabbdc4)){if('formatBlock'==_0x253774&&('imageStylePreApply'==_0x35ffab||'imageStylePostApply'==_0x35ffab)){const _0x5d490c=_0x57ef71['getSuggestion'](_0xabbdc4);if(_0x52e79f['newRange']){const _0xb0aa22=_0x5d490c['getFirstRange']()['getContainedElement']();if(_0x4b3e7f['isBlockImage'](_0xb0aa22))continue;_0x57ef71['discardSuggestion'](_0x5d490c),_0x40bad9=!0x0;}}if('insertion'==_0x253774&&'imageCaption'==_0x35ffab&&!_0x52e79f['newRange']){const _0x9271af=_0x57ef71['getSuggestion'](_0xabbdc4);_0x9271af['next']&&_0x9271af['next']['isInContent']&&(_0x57ef71['discardSuggestion'](_0x9271af['next']),_0x40bad9=!0x0);}}}return _0x40bad9;}),this['_registerLegacyDescription'](_0x43d77b);}['_registerLegacyDescription'](_0x2ad866){const _0x54429a=this['editor'],_0x299e6c=_0x54429a['locale'];_0x54429a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x443ee7=>{if('formatBlock'!=_0x443ee7['type']&&'formatInline'!=_0x443ee7['type'])return;const {data:_0x5151b7}=_0x443ee7;if(!_0x5151b7||'imageStyle'!=_0x5151b7['commandName'])return;const _0x37bd7c=_0x5151b7['commandParams'][0x0]['value'];return _0x532412('side'===_0x37bd7c?o(_0x299e6c,'FORMAT_SIDE_IMAGE'):_0x2ad866[_0x37bd7c]||_0x37bd7c);function _0x532412(_0x454895){return{'type':'format','content':o(_0x299e6c,'*Format:*\x20%0',_0x454895)};}});}}class at extends _0x310a20{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xf35ed2){super(_0xf35ed2),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x480e1f=this['editor'],_0x3110ac=_0x480e1f['commands']['get']('importWord'),_0x278f7f=_0x480e1f['commands']['get']('trackChanges');_0x3110ac&&(_0x3110ac['on']('execute',(_0x2336e3,[,_0x406420])=>{this['_trackChangesValueDuringImport']=_0x278f7f['value'],_0x406420['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3110ac,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3110ac,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x278f7f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x480e1f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x137eea,_0x351f84){const {suggestions:_0x37ecb4}=_0x351f84,_0x56021b=this['editor']['commands']['get']('trackChanges'),_0x2fc2e3=_0x56021b['value'];this['_trackChangesValueDuringImport']!==_0x2fc2e3&&(_0x56021b['execute'](),this['_trackChangesExecuted']=!0x0),_0x37ecb4&&_0x37ecb4['forEach'](({id:_0x428091,type:_0x47128c,author:_0x2ebfe2,created_at:_0x2eb910})=>{const _0x12faaa={'id':_0x428091,'type':_0x47128c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2ebfe2,'createdAt':_0x2eb910?new Date(_0x2eb910):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x12faaa);});}}class ct extends _0x310a20{['afterInit'](){const _0x3bc973=this['editor'],_0x2f20f6=_0x3bc973['plugins']['get']('TrackChangesEditing');if(_0x3bc973['plugins']['has']('IndentEditing')&&(_0x2f20f6['enableCommand']('indent'),_0x2f20f6['enableCommand']('outdent')),_0x3bc973['plugins']['has']('IndentBlock')){for(const _0x5e5773 of['indentBlock','outdentBlock'])_0x2f20f6['enableDefaultAttributesIntegration'](_0x5e5773);}const _0x38c15a=_0x3bc973['locale'];_0x2f20f6['registerBlockAttribute']('blockIndent'),_0x2f20f6['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x38c15a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23421b=this['editor'],_0x2813c0=_0x23421b['locale'],_0x1170b2=_0x23421b['plugins']['get']('TrackChangesEditing');_0x1170b2['descriptionFactory']['registerDescriptionCallback'](_0x49fb1b=>{if('formatBlock'!=_0x49fb1b['type'])return;const {data:_0x63f5c2}=_0x49fb1b;if(!_0x63f5c2)return;if('indentBlock'!=_0x63f5c2['commandName']&&'outdentBlock'!=_0x63f5c2['commandName'])return;const _0x11e487=_0x49fb1b['getItems']()[0x0],_0x2c7ad5=_0x1170b2['descriptionFactory']['getItemLabel'](_0x11e487);return'indentBlock'==_0x63f5c2['commandName']?{'type':'format','content':o(_0x2813c0,'*Indent:*\x20%0',_0x2c7ad5)}:'outdentBlock'==_0x63f5c2['commandName']?{'type':'format','content':o(_0x2813c0,'*Outdent:*\x20%0',_0x2c7ad5)}:void 0x0;});}}class ut extends _0x310a20{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x310a20{['afterInit'](){const _0x2bd1ba=this['editor'];if(!_0x2bd1ba['plugins']['has']('LinkEditing'))return;const _0x1df074=_0x2bd1ba['plugins']['get']('TrackChangesEditing'),_0xaf106b=_0x2bd1ba['commands']['get']('link');_0x1df074['enableDefaultAttributesIntegration']('link'),_0x1df074['enableDefaultAttributesIntegration']('unlink'),_0x1df074['registerInlineAttribute']('linkHref');for(const _0xfa9c64 of _0xaf106b['manualDecorators'])_0x1df074['registerInlineAttribute'](_0xfa9c64['id']),_0x1df074['descriptionFactory']['registerAttributeLabel'](_0xfa9c64['id'],'link\x20('+_0xfa9c64['label']['toLowerCase']()+')');_0x1df074['descriptionFactory']['registerDescriptionCallback'](_0x407958=>{if('attribute'!=_0x407958['type'])return;const {data:_0x1f1c14}=_0x407958;if(!_0x1f1c14||'linkHref'!=_0x1f1c14['key'])return;const _0x53a657=_0x1f1c14['newValue'],_0x16c1f4=_0x2bd1ba['locale'];return{'type':'format','content':null==_0x53a657?o(_0x16c1f4,'*Remove\x20link*'):o(_0x16c1f4,'*Set\x20link:*\x20%0','\x22'+_0x53a657+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a7ea2=this['editor'],_0x3614db=_0x2a7ea2['locale'];_0x2a7ea2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18879e=>{if('formatInline'!=_0x18879e['type'])return;const {data:_0x84b17d}=_0x18879e;if(_0x84b17d){if('link'==_0x84b17d['commandName']){const _0xb7ffa=_0x84b17d['commandParams'][0x0];return{'type':'format','content':o(_0x3614db,'*Set\x20link:*\x20%0','\x22'+_0xb7ffa+'\x22')};}return'unlink'==_0x84b17d['commandName']?{'type':'format','content':o(_0x3614db,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x310a20{['afterInit'](){const _0x4638a9=this['editor'],_0x37b9f5=_0x4638a9['locale'];if(!_0x4638a9['plugins']['has']('LegacyListEditing'))return;const _0x52275e=_0x4638a9['plugins']['get']('TrackChangesEditing'),_0x4a8629=_0x4638a9['plugins']['has']('LegacyTodoListEditing');function _0x463901(_0x566a88){return()=>{const _0x48ece9=_0x4638a9['model']['document']['selection'],_0x280459=_0x4638a9['commands']['get'](_0x566a88);if(_0x280459['value'])return void _0x4638a9['execute']('paragraph',{});const _0x46572b=_0x566a88['slice'](0x0,-0x4),_0x4e170b=function(_0x18d5e9,_0x457ffb,_0x337910){let _0x3157f8=Array['from'](_0x18d5e9)['filter'](_0xe2e7c2=>function(_0x2775d1,_0x23190b){return _0x23190b['checkChild'](_0x2775d1['parent'],'listItem')&&!_0x23190b['isObject'](_0x2775d1);}(_0xe2e7c2,_0x337910));_0x3157f8=_0x3157f8['filter'](_0x3cb3a8=>!_0x3cb3a8['is']('element','listItem')||_0x3cb3a8['getAttribute']('listType')!=_0x457ffb);const _0x5b8b48=new Set();for(const _0x1304c2 of _0x3157f8)_0x1304c2['is']('element','listItem')?_0x5b8b48['add'](fe(_0x1304c2)):_0x5b8b48['add'](_0x1304c2);return Array['from'](_0x5b8b48);}(_0x48ece9['getSelectedBlocks'](),_0x46572b,_0x4638a9['model']['schema']);_0x4638a9['model']['change'](()=>{for(const _0x124af5 of _0x4e170b)_0x52275e['markBlockFormat'](_0x124af5,{'commandName':_0x566a88,'commandParams':[{'forceValue':!_0x280459['value']}],'formatGroupId':'blockName'},ue(_0x124af5));});};}function _0x26c63d(_0x511c27){return()=>{const _0x513e9c=function(_0x12dc63){let _0x45fae0=Array['from'](_0x12dc63);const _0x2e9470=_0x45fae0['findIndex'](_0x20cc84=>'listItem'!=_0x20cc84['name']);return _0x2e9470>-0x1&&(_0x45fae0=_0x45fae0['slice'](0x0,_0x2e9470)),_0x45fae0;}(_0x4638a9['model']['document']['selection']['getSelectedBlocks']()),_0x31229f=_0x4638a9['model']['createRange'](_0x4638a9['model']['createPositionAt'](_0x513e9c[0x0],'before'),_0x4638a9['model']['createPositionAt'](_0x513e9c[_0x513e9c['length']-0x1],'end'));_0x4638a9['model']['change'](()=>{_0x52275e['markBlockFormat'](_0x31229f,{'commandName':_0x511c27,'commandParams':[],'formatGroupId':'listIndent'},function(_0x442827){const _0x4348c0=new Set();for(const _0x1236eb of _0x442827){let _0x183bca=_0x1236eb['nextSibling'];for(;_0x183bca&&_0x183bca['getAttribute']('listIndent')>_0x1236eb['getAttribute']('listIndent');)_0x4348c0['add'](_0x183bca),_0x183bca=_0x183bca['nextSibling'];}return Array['from'](_0x4348c0);}(_0x513e9c));});};}_0x52275e['enableCommand']('numberedList',_0x463901('numberedList')),_0x52275e['enableCommand']('bulletedList',_0x463901('bulletedList')),_0x4a8629&&_0x52275e['enableCommand']('todoList',_0x463901('todoList')),_0x52275e['enableCommand']('indentList',_0x26c63d('indentList')),_0x52275e['enableCommand']('outdentList',_0x26c63d('outdentList')),_0x4a8629&&_0x52275e['enableCommand']('checkTodoList',()=>{const _0x2b0f0d=_0x4638a9['commands']['get']('checkTodoList'),_0x7f5254=Array['from'](_0x2b0f0d['_selectedElements']);_0x7f5254['filter'](_0x72ce8a=>_0x72ce8a['getAttribute']('todoListChecked')!=_0x2b0f0d['value']),_0x4638a9['model']['change'](()=>{for(const _0x33aa62 of _0x7f5254)_0x52275e['markBlockFormat'](_0x33aa62,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2b0f0d['value']}]});});}),_0x52275e['descriptionFactory']['registerElementLabel']('listItem',_0x3a9afe=>o(_0x37b9f5,'ELEMENT_LIST_ITEM',_0x3a9afe)),_0x52275e['descriptionFactory']['registerDescriptionCallback'](_0xef2d04=>{if('formatBlock'!=_0xef2d04['type']&&'formatInline'!=_0xef2d04['type'])return;const {data:_0xf3ebf3}=_0xef2d04;if(_0xf3ebf3){if('numberedList'==_0xf3ebf3['commandName']||'bulletedList'==_0xf3ebf3['commandName']||'todoList'==_0xf3ebf3['commandName'])switch(_0xf3ebf3['commandName']['replace']('List','')){case'bulleted':return _0x1cc300(o(_0x37b9f5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1cc300(o(_0x37b9f5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1cc300(o(_0x37b9f5,'ELEMENT_TODO_LIST'));}if('indentList'==_0xf3ebf3['commandName'])return{'type':'format','content':o(_0x37b9f5,'*Indent:*\x20%0',o(_0x37b9f5,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xf3ebf3['commandName'])return{'type':'format','content':o(_0x37b9f5,'*Outdent:*\x20%0',o(_0x37b9f5,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xf3ebf3['commandName'])return _0xf3ebf3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x37b9f5,'*Check\x20item*')}:{'type':'format','content':o(_0x37b9f5,'*Uncheck\x20item*')};}function _0x1cc300(_0x31604b){return{'type':'format','content':o(_0x37b9f5,'*Change\x20to:*\x20%0',_0x31604b)};}});}}function fe(_0x2b8a25){const _0x57eda7=_0x2b8a25['getAttribute']('listIndent');if(0x0==_0x57eda7)return _0x2b8a25;let _0x382239=_0x2b8a25;for(;_0x2b8a25['previousSibling']&&_0x2b8a25['previousSibling']['is']('element','listItem');){const _0x32df4a=_0x2b8a25['previousSibling']['getAttribute']('listIndent');if(_0x32df4a==_0x57eda7)_0x382239=_0x2b8a25['previousSibling'];else{if(_0x32df4a<_0x57eda7)break;}_0x2b8a25=_0x2b8a25['previousSibling'];}return _0x382239;}function ue(_0x406c94){const _0x194de3=[];if(_0x406c94['is']('element','listItem')&&_0x406c94['getAttribute']('listIndent')>0x0){let _0x4d6d39=_0x406c94['nextSibling'];for(;_0x4d6d39&&'listItem'==_0x4d6d39['name']&&_0x4d6d39['getAttribute']('listIndent')==_0x406c94['getAttribute']('listIndent');)_0x194de3['push'](_0x4d6d39),_0x4d6d39=_0x4d6d39['nextSibling'];}return _0x194de3;}class W extends _0x310a20{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5c710f=this['editor']['config']['get']('list.properties'),_0x7d6802=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c710f['styles']&&_0x7d6802['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5c710f['reversed']&&_0x7d6802['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5c710f['startIndex']&&_0x7d6802['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x7d6802['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x530050,_0x5972bf={}){const _0x304f2d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ffc3b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x304f2d['markMultiRangeBlockFormat'](_0x1ffc3b,{'commandName':'listStyle','commandParams':[{'type':_0x5972bf['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2acb43,_0x5667ee={}){const _0x882d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b72db=this['_getSuggestionBlocks'](_0x4db576=>_0x4db576['is']('element','listItem')&&'numbered'===_0x4db576['getAttribute']('listType'));if(_0x2b72db['length']<0x1)return;const _0x5d3a16=_0x2b72db['map'](_0x59a143=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x59a143,'before'),this['editor']['model']['createPositionAt'](_0x59a143,0x0)));this['editor']['model']['change'](()=>{_0x882d7['markMultiRangeBlockFormat'](_0x5d3a16,{'commandName':'listReversed','commandParams':[{'reversed':_0x5667ee['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3a456b,_0x396594={}){const _0x4429b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51b4eb=this['_getSuggestionBlocks'](_0x1dc052=>_0x1dc052['is']('element','listItem')&&'numbered'===_0x1dc052['getAttribute']('listType'));if(_0x51b4eb['length']<0x1)return;const _0x353810=_0x51b4eb['map'](_0x25a2b6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x25a2b6,'before'),this['editor']['model']['createPositionAt'](_0x25a2b6,0x0)));this['editor']['model']['change'](()=>{_0x4429b7['markMultiRangeBlockFormat'](_0x353810,{'commandName':'listStart','commandParams':[{'startIndex':_0x396594['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3f34c7){if('formatBlock'!=_0x3f34c7['type']&&'formatInline'!=_0x3f34c7['type'])return;const _0x1ffefb=this['editor']['locale'],{data:_0x2dd3e5}=_0x3f34c7;if(!_0x2dd3e5)return;let _0x1f961c,_0x1d5456;switch(_0x2dd3e5['commandName']){case'listStyle':_0x1f961c='*Change\x20to:*\x20%0',_0x1d5456={'type':'format','content':o(_0x1ffefb,_0x1f961c,o(_0x1ffefb,this['_getTranslationKeyForListStyle'](_0x2dd3e5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1f961c=_0x2dd3e5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1d5456={'type':'format','content':o(_0x1ffefb,_0x1f961c)};break;case'listStart':_0x1f961c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1d5456={'type':'format','content':o(_0x1ffefb,_0x1f961c,_0x2dd3e5['commandParams'][0x0]['startIndex'])};}return _0x1d5456;}['_getSuggestionBlocksForListStyle'](){const _0x33cd80=this['editor']['plugins']['get']('LegacyListUtils');let _0x58c7c9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x58c7c9[0x0]?.['is']('element','listItem')&&_0x58c7c9['unshift'](..._0x33cd80['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x58c7c9[_0x58c7c9['length']-0x1]?.['is']('element','listItem')&&_0x58c7c9['push'](..._0x33cd80['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x58c7c9=[...new Set(_0x58c7c9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x58c7c9=_0x58c7c9['filter'](_0x42c379=>_0x42c379['is']('element','listItem'))),_0x58c7c9;}['_getSuggestionBlocks'](_0x5195b0){const _0x26a0ba=this['editor']['plugins']['get']('LegacyListUtils');let _0xdaf7ec=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5195b0)['map'](_0x128d86=>{const _0x312f0b=this['editor']['model']['createPositionAt'](_0x128d86,0x0);return[..._0x26a0ba['getSiblingNodes'](_0x312f0b,'backward'),..._0x26a0ba['getSiblingNodes'](_0x312f0b,'forward')];})['flat']();return _0xdaf7ec=[...new Set(_0xdaf7ec)],_0xdaf7ec;}['_getTranslationKeyForListStyle'](_0x2df108){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2df108)||'default')['toUpperCase']()+'_LIST_'+_0x2df108['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x310a20{['afterInit'](){const _0xf06083=this['editor'];if(!_0xf06083['plugins']['has']('MediaEmbedEditing'))return;const _0x163db7=_0xf06083['plugins']['get']('TrackChangesEditing'),_0x49d2d6=_0xf06083['locale'];_0x163db7['enableCommand']('mediaEmbed'),_0x163db7['descriptionFactory']['registerElementLabel']('media',_0x17a7e6=>o(_0x49d2d6,'ELEMENT_MEDIA',_0x17a7e6)),_0xf06083['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2683b0,{writer:_0x1d476b,options:_0x249c5d})=>{if(_0x249c5d['showSuggestionHighlights'])return _0x1d476b['createEmptyElement']('div');},'converterPriority':'high'}),_0xf06083['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4ed951,_0x3593ae,_0x56a9f1)=>{_0x56a9f1['options']['showSuggestionHighlights']&&_0x4ed951['stop']();},{'priority':'high'});}}class mt extends _0x310a20{['afterInit'](){const _0x5f1c37=this['editor'];_0x5f1c37['plugins']['has']('MentionEditing')&&_0x5f1c37['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x310a20{['afterInit'](){const _0x4cbe6e=this['editor'];if(!_0x4cbe6e['plugins']['has']('MergeFieldsEditing'))return;_0x4cbe6e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x4cbe6e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2d3d1d=_0x4cbe6e['plugins']['get']('TrackChangesEditing'),_0x1f1ca8=_0x4cbe6e['locale'];_0x2d3d1d['descriptionFactory']['registerElementLabel']('mergeField',_0x2cf363=>o(_0x1f1ca8,'ELEMENT_MERGE_FIELD',_0x2cf363)),_0x2d3d1d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1a5745=>o(_0x1f1ca8,'ELEMENT_MERGE_FIELD',_0x1a5745)),_0x2d3d1d['descriptionFactory']['registerDescriptionCallback'](_0x3b816e=>{if('insertion'!=_0x3b816e['type']&&'deletion'!=_0x3b816e['type'])return;const _0x3989f9=_0x3b816e['getContainedElement']();if(null==_0x3989f9)return;if(!_0x3989f9['is']('element','mergeField')&&!_0x3989f9['is']('element','mergeFieldBlock'))return;const _0x4a2c1a=_0x4cbe6e['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x3989f9['getAttribute']('id'));return'insertion'==_0x3b816e['type']?{'type':'insertion','content':o(_0x1f1ca8,'*Insert:*\x20%0','\x22'+_0x4a2c1a+'\x22\x20'+o(_0x1f1ca8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1f1ca8,'*Remove:*\x20%0','\x22'+_0x4a2c1a+'\x22\x20'+o(_0x1f1ca8,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x310a20{['afterInit'](){const _0x9b1b4a=this['editor'],_0x46fe58=_0x9b1b4a['plugins']['get']('TrackChangesEditing');_0x9b1b4a['plugins']['has']('MultiLevelList')&&(_0x46fe58['enableDefaultAttributesIntegration']('multiLevelList'),_0x46fe58['registerBlockAttribute']('listMarkerStyle'),_0x46fe58['descriptionFactory']['registerDescriptionCallback'](_0x114211=>this['handleDescriptions'](_0x114211)));}['handleDescriptions'](_0x20dd46){const _0x5b2e5c=this['editor']['locale'],{data:_0x562015}=_0x20dd46,_0x41f3bf={'type':'format','content':''};if(_0x562015&&'listMarkerStyle'==_0x562015['key']){if(!_0x562015['oldValue'])return{'type':'format','content':o(_0x5b2e5c,'*Set\x20format:*\x20%0',o(_0x5b2e5c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x562015['newValue']+')'};if(!_0x562015['newValue']){let _0x3a7c3a=_0x20dd46['head'];for(;_0x3a7c3a;){if(_0x3a7c3a['data']&&'listType'==_0x3a7c3a['data']['key']&&_0x3a7c3a['data']['newValue'])return _0x41f3bf;_0x3a7c3a=_0x3a7c3a['next'];}return{'type':'format','content':o(_0x5b2e5c,'*Remove\x20format:*\x20%0',o(_0x5b2e5c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x562015['oldValue']+')'};}}}}class kt extends _0x310a20{['afterInit'](){const _0x856132=this['editor'];if(!_0x856132['plugins']['has']('PageBreakEditing'))return;_0x856132['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x31030f=_0x856132['plugins']['get']('TrackChangesEditing'),_0x478718=_0x856132['locale'];_0x31030f['descriptionFactory']['registerElementLabel']('pageBreak',_0x1abf31=>o(_0x478718,'ELEMENT_PAGE_BREAK',_0x1abf31));}}class bt extends _0x310a20{['afterInit'](){const _0xc47f55=this['editor'];if(!_0xc47f55['plugins']['has']('Paragraph'))return;const _0x2a2bd6=_0xc47f55['locale'],_0x1bb066=_0xc47f55['plugins']['get']('TrackChangesEditing');_0x1bb066['descriptionFactory']['registerElementLabel']('paragraph',_0x286cc0=>o(_0x2a2bd6,'ELEMENT_PARAGRAPH',_0x286cc0)),_0x1bb066['enableDefaultAttributesIntegration']('paragraph'),_0x1bb066['enableCommand']('insertParagraph'),_0xc47f55['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xc47f55),{'priority':'highest'}),_0xc47f55['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x21654d,_0x34ded2,_0x10a22b)=>{_0x10a22b['options']['showSuggestionHighlights']&&nr(_0xc47f55,{'showActiveMarker':!0x1})(_0x21654d,_0x34ded2,_0x10a22b);},{'priority':'highest'});const _0x41875f=_0x1bb066['descriptionFactory'];_0x41875f['registerDescriptionCallback'](_0x5685b7=>{if('insertion'!==_0x5685b7['type'])return;const {start:_0x2caf04,end:_0x50d0f9}=_0x5685b7['getFirstRange']();if(!_0x2caf04['isTouching'](_0x50d0f9)||!_0x2caf04['nodeAfter'])return;const _0x284cc6=_0xc47f55['model']['schema'],_0x5bfce1=_0x2caf04['nodeAfter'];return _0x284cc6['isBlock'](_0x5bfce1)&&!_0x284cc6['isLimit'](_0x5bfce1)&&_0x284cc6['checkChild'](_0x5bfce1,'$text')?{'type':'insertion','content':o(_0x2a2bd6,'*Insert:*\x20%0',_0x41875f['getItemLabel'](_0x5bfce1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e89ad=this['editor'],_0x3b6c95=_0x4e89ad['locale'];_0x4e89ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd7017a=>{if('formatBlock'!=_0xd7017a['type'])return;const {data:_0x22567d}=_0xd7017a;return _0x22567d&&'paragraph'==_0x22567d['commandName']?{'type':'format','content':o(_0x3b6c95,'*Change\x20to:*\x20%0',o(_0x3b6c95,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x322bcb,{showActiveMarker:_0x1ff414=!0x0}={}){return(_0x123ea7,_0x2e0932,_0x5efaa2)=>{const _0x11b983=_0x322bcb['plugins']['get']('TrackChangesEditing'),_0x76ae04=_0x2e0932['markerRange']['start'],_0x3e6748=_0x2e0932['markerRange']['end'],_0x1bcde9=_0x322bcb['model']['schema'];if(!_0x76ae04['isTouching'](_0x3e6748)||!_0x76ae04['nodeAfter'])return;const _0x1d1981=_0x76ae04['nodeAfter'];if(_0x1bcde9['isBlock'](_0x1d1981)&&!_0x1bcde9['isLimit'](_0x1d1981)&&_0x1bcde9['checkChild'](_0x1d1981,'$text')){if(!_0x5efaa2['consumable']['consume'](_0x2e0932['markerRange'],_0x123ea7['name']))return;const {authorId:_0x572120}=_0x11b983['_splitMarkerName'](_0x2e0932['markerName']),_0x151c51=_0x5efaa2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x572120}),_0x1661dd=_0x5efaa2['mapper']['toViewPosition'](_0x3e6748);_0x1ff414&&_0x11b983['activeMarkers']['includes'](_0x2e0932['markerName'])&&_0x5efaa2['writer']['addClass']('ck-suggestion-marker--active',_0x151c51),_0x5efaa2['writer']['insert'](_0x1661dd,_0x151c51),_0x5efaa2['mapper']['bindElementToMarker'](_0x151c51,_0x2e0932['markerName']);}};}class wt extends _0x310a20{['afterInit'](){const _0x3b1812=this['editor'];if(!_0x3b1812['plugins']['has']('RemoveFormatEditing'))return;_0x3b1812['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x272c2a=this['editor'];_0x272c2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cafbc=>{if('formatBlock'!=_0x3cafbc['type']&&'formatInline'!=_0x3cafbc['type'])return;const {data:_0x15277a}=_0x3cafbc;return _0x15277a&&'removeFormat'==_0x15277a['commandName']?{'type':'format','content':o(_0x272c2a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x310a20{['afterInit'](){const _0x329dee=this['editor'];if(!_0x329dee['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x27d8f3=_0x329dee['plugins']['get']('TrackChangesEditing');_0x27d8f3['enableCommand']('goToPreviousRestrictedEditingException'),_0x27d8f3['enableCommand']('goToNextRestrictedEditingException');const _0x1e5fc7=_0x329dee['plugins']['get']('RestrictedEditingModeEditing');_0x1e5fc7['enableCommand']('trackChanges'),_0x1e5fc7['enableCommand']('acceptSuggestion'),_0x1e5fc7['enableCommand']('discardSuggestion'),_0x1e5fc7['enableCommand']('acceptAllSuggestions'),_0x1e5fc7['enableCommand']('discardAllSuggestions'),_0x1e5fc7['enableCommand']('acceptSelectedSuggestions'),_0x1e5fc7['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x310a20{static get['requires'](){return[_0x16a1d4];}['init'](){const _0x178997=this['editor'],_0x5f199f=_0x178997['plugins']['get']('TrackChangesEditing');_0x5f199f['enableCommand']('shiftEnter'),_0x178997['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x178997),{'priority':'high'}),_0x178997['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x178997),{'priority':'high'}),_0x178997['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3632b7,_0x25fd23,_0xf30747)=>{_0xf30747['options']['showSuggestionHighlights']&&ge(_0x178997,{'showActiveMarker':!0x1})(_0x3632b7,_0x25fd23,_0xf30747);}),_0x5f199f['descriptionFactory']['registerElementLabel']('softBreak',_0x32c728=>o(_0x178997['locale'],'ELEMENT_LINE_BREAK',_0x32c728));}}function ge(_0x2b96c4,{showActiveMarker:_0x19a0e9=!0x0}={}){return(_0x54a172,_0x1ca03a,_0x3760d9)=>{const _0x502927=_0x2b96c4['plugins']['get']('TrackChangesEditing');if(!_0x3760d9['consumable']['test'](_0x1ca03a['markerRange'],_0x54a172['name']))return;const _0x2ffbb8=_0x2b96c4['model'];for(const _0x48744d of _0x1ca03a['markerRange']['getItems']()){if(!_0x48744d['is']('element','softBreak'))continue;const _0x3efb5a='deletion'==_0x1ca03a['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x591417}=_0x502927['_splitMarkerName'](_0x1ca03a['markerName']),_0x3dc0dd=_0x3760d9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3efb5a,'data-author-id':_0x591417}),_0x102249=_0x3760d9['mapper']['toViewPosition'](_0x2ffbb8['createPositionBefore'](_0x48744d));_0x19a0e9&&_0x502927['activeMarkers']['includes'](_0x1ca03a['markerName'])&&_0x3760d9['writer']['addClass']('ck-suggestion-marker--active',_0x3dc0dd),_0x3760d9['writer']['insert'](_0x102249,_0x3dc0dd),_0x3760d9['mapper']['bindElementToMarker'](_0x3dc0dd,_0x1ca03a['markerName']);}};}class St extends _0x310a20{['afterInit'](){const _0x62b4b3=this['editor'],_0x245599=_0x62b4b3['model'],_0x180a8c=_0x62b4b3['locale'];if(!_0x62b4b3['plugins']['has']('StandardEditingModeEditing'))return;const _0x234058=_0x62b4b3['plugins']['get']('TrackChangesEditing'),_0x5ca628='restrictedEditingException',_0x33c5a9=_0x62b4b3['commands']['get'](_0x5ca628);_0x234058['enableCommand'](_0x5ca628,(_0x25fe1f,_0xf8272a={})=>{const _0x251de8=_0x245599['document']['selection'];if(_0x251de8['isCollapsed'])return void _0x25fe1f(_0xf8272a);const _0x34ead4=void 0x0!==_0xf8272a['forceValue']?_0xf8272a['forceValue']:!_0x33c5a9['value'];_0x245599['change'](()=>{const _0x93e12b=Array['from'](_0x251de8['getRanges']());for(const _0x1fde2c of _0x93e12b){const _0x553036=_0x34ead4?[_0x1fde2c]:io(_0x5ca628,_0x1fde2c,_0x245599);for(const _0x592468 of _0x553036)_0x234058['markInlineFormat'](_0x592468,{'commandName':_0x5ca628,'commandParams':[{'forceValue':_0x34ead4}]});}});}),_0x234058['descriptionFactory']['registerDescriptionCallback'](_0x7c4dba=>{if('formatBlock'!=_0x7c4dba['type']&&'formatInline'!=_0x7c4dba['type'])return;const {data:_0x3c4ed6}=_0x7c4dba;return _0x3c4ed6&&_0x3c4ed6['commandName']==_0x5ca628?_0x3c4ed6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x180a8c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x180a8c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x310a20{['afterInit'](){const _0x4aded8=this['editor'];if(!_0x4aded8['plugins']['has']('Style')||!_0x4aded8['plugins']['has']('DataSchema'))return;const _0x1e0fe3=_0x4aded8['plugins']['get']('TrackChangesEditing'),_0x2fc79e=_0x4aded8['locale'],_0x40d206=_0x4aded8['config']['get']('style')||{},_0x57059d=_0x4aded8['plugins']['get']('GeneralHtmlSupport'),_0x15ae5a=_0x4aded8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4aded8['plugins']['get']('DataSchema'),_0x40d206['definitions']);_0x1e0fe3['enableDefaultAttributesIntegration']('style');const _0x15f17b=new Set();for(const _0x594c66 of _0x15ae5a['block']){const _0x3d4fea=_0x57059d['getGhsAttributeNameForElement'](_0x594c66['element']);_0x15f17b['add'](_0x3d4fea);}const _0x5cea93=new Set();for(const _0x5a78be of _0x15ae5a['inline']){const _0x32fb38=_0x57059d['getGhsAttributeNameForElement'](_0x5a78be['element']);_0x5cea93['add'](_0x32fb38);for(const _0x280517 of _0x5a78be['ghsAttributes'])_0x5cea93['add'](_0x280517);}for(const _0x3e5b63 of _0x15f17b)_0x1e0fe3['registerBlockAttribute'](_0x3e5b63),_0x1e0fe3['descriptionFactory']['registerAttributeLabel'](_0x3e5b63,o(_0x2fc79e,'FORMAT_STYLE'));for(const _0x51f571 of _0x5cea93)_0x1e0fe3['registerInlineAttribute'](_0x51f571),_0x1e0fe3['descriptionFactory']['registerAttributeLabel'](_0x51f571,o(_0x2fc79e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2efde3=this['editor'],_0x517c7c=_0x2efde3['locale'];_0x2efde3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28e4f7=>{if('formatBlock'!=_0x28e4f7['type']&&'formatInline'!=_0x28e4f7['type'])return;const {data:_0x480745}=_0x28e4f7;return _0x480745&&'style'===_0x480745['commandName']?_0x480745['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x517c7c,'*Set\x20format:*\x20%0',_0x480745['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x517c7c,'*Remove\x20format:*\x20%0',_0x480745['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x310a20{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x944561){super(_0x944561),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x41a7af=this['editor'],_0x230535=_0x41a7af['model']['document']['selection'];if(!_0x41a7af['plugins']['has']('TableEditing'))return;const _0x448ba3=_0x41a7af['locale'],_0xf01999=_0x41a7af['plugins']['get']('TrackChangesEditing'),_0x3fd901=_0x41a7af['plugins']['get']('TableUtils');_0xf01999['descriptionFactory']['registerElementLabel']('table',_0x569ab6=>o(_0x448ba3,'ELEMENT_TABLE',_0x569ab6)),this['_setupColumnsRowsFixing'](),_0xf01999['enableCommand']('insertTable'),_0xf01999['enableCommand']('selectTableRow'),_0xf01999['enableCommand']('selectTableColumn');for(const _0x2d29c5 of['insertTableRowAbove','insertTableRowBelow']){const _0x5a3865=_0x41a7af['commands']['get'](_0x2d29c5);_0xf01999['enableCommand'](_0x2d29c5,_0x3133a1=>{_0x41a7af['model']['change'](_0x42a618=>{_0x3133a1();const _0x49b16a='above'===_0x5a3865['order'],_0x226c38=_0x3fd901['getSelectionAffectedTableCells'](_0x230535),_0xd272a0=_0x3fd901['getRowIndexes'](_0x226c38),_0xdaa473=_0x49b16a?_0xd272a0['first']-0x1:_0xd272a0['last']+0x1,_0x572071=_0x226c38[0x0]['findAncestor']('table'),_0x4facc0=_0x3fd901['createTableWalker'](_0x572071,{'startRow':_0xdaa473,'endRow':_0xdaa473}),_0x16bf43=Array['from'](_0x4facc0)['map'](_0x1425a1=>_0x42a618['createRangeOn'](_0x1425a1['cell']));_0xf01999['markMultiRangeInsertion'](_0x16bf43,'tableRow');});});}for(const _0x1908e5 of['insertTableColumnLeft','insertTableColumnRight']){const _0x59af81=_0x41a7af['commands']['get'](_0x1908e5);_0xf01999['enableCommand'](_0x1908e5,_0x52505f=>{_0x41a7af['model']['change'](_0xb76807=>{_0x52505f();const _0x2be837='left'===_0x59af81['order'],_0x2daff9=_0x3fd901['getSelectionAffectedTableCells'](_0x230535),_0x35787b=_0x3fd901['getColumnIndexes'](_0x2daff9),_0x46eeef=_0x2be837?_0x35787b['first']-0x1:_0x35787b['last']+0x1,_0x4f601b=_0x2daff9[0x0]['findAncestor']('table'),_0x38c920=_0x3fd901['createTableWalker'](_0x4f601b,{'startRow':0x0,'column':_0x46eeef,'includeAllSlots':!0x1}),_0x56c0ae=Array['from'](_0x38c920)['map'](_0x55c602=>_0xb76807['createRangeOn'](_0x55c602['cell']));_0xf01999['markMultiRangeInsertion'](_0x56c0ae,'tableColumn');});});}for(const _0x346460 of['removeTableRow','removeTableColumn']){const _0x191846=_0x346460['substr'](0xb),_0x2667bf=_0x191846['toLowerCase'](),_0x472ca4=_0x2667bf['substr'](0x0,0x3)+'span',_0x3d2d79='table'+_0x191846,_0x57227='min'+_0x191846,_0x5ae5c3='max'+_0x191846;_0xf01999['enableCommand'](_0x346460,()=>{_0x41a7af['model']['change'](_0x5a358d=>{const _0x57685c=_0x3fd901['getSelectionAffectedTableCells'](_0x230535),_0x12fa9e=_0x57685c[0x0]['findAncestor']('table');let _0x3e47f1;if('removeTableRow'==_0x346460){const _0x23a726=_0x3fd901['getRowIndexes'](_0x57685c);_0x3e47f1={'startRow':_0x23a726['first'],'endRow':_0x23a726['last'],'includeAllSlots':!0x0};}else{const _0x3bf885=_0x3fd901['getColumnIndexes'](_0x57685c);_0x3e47f1={'startColumn':_0x3bf885['first'],'endColumn':_0x3bf885['last'],'includeAllSlots':!0x0};}const _0x1c9a94=_0x3fd901['createTableWalker'](_0x12fa9e,_0x3e47f1),_0x29c428=Array['from'](_0x1c9a94)['map'](({cell:_0x2f4dd6})=>_0x2f4dd6),_0x29244c=be(_0x29c428['filter'](_0x3673f2=>_0x3673f2['hasAttribute'](_0x472ca4))),_0x356d31=be(_0x29c428['filter'](_0x1ddd7a=>!_0x1ddd7a['hasAttribute'](_0x472ca4)))['map'](_0x431496=>_0x5a358d['createRangeOn'](_0x431496)),_0x3dc602=_0xf01999['markMultiRangeDeletion'](_0x356d31,_0x3d2d79);if(_0x3dc602&&('tableRow'==_0x3dc602['subType']||'tableColumn'==_0x3dc602['subType'])){const _0x7079cf=this['_getSuggestionCoords'](_0x3dc602);for(const _0x23a2da of _0x29244c){const _0x36886f=_0x5a358d['createRangeOn'](_0x23a2da),_0x434111=_0x3fd901['getCellLocation'](_0x23a2da),_0x56e631=_0x23a2da['getAttribute'](_0x472ca4)-0x1,_0x389119=_0x7079cf[_0x57227],_0x159d92=_0x7079cf[_0x5ae5c3];_0x389119<=_0x434111[_0x2667bf]&&_0x434111[_0x2667bf]+_0x56e631<=_0x159d92&&_0x3dc602['addRange'](_0x36886f);}}});});}function _0x1e1b28(_0x494758){const _0x41c801=Array['from'](_0x230535['getRanges']())['map'](_0xcfe707=>_0xfd736c['fromRange'](_0xcfe707));_0x41a7af['model']['change'](_0x4c0191=>{const _0x344af3=_0x4c0191['batch'];_0x494758=_0x494758['filter'](_0x4789c2=>'$graveyard'!=_0x4789c2['root']['rootName']),_0x4c0191['setSelection'](_0x494758),_0x41a7af['commands']['get']('removeTableRow')['refresh'](),_0x41a7af['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x41a7af['model']['enqueueChange'](()=>{_0x41a7af['model']['enqueueChange'](_0x344af3,_0x197cf7=>{const _0xaebe8e=_0x41c801['filter'](_0x48e49a=>'$graveyard'!=_0x48e49a['root']['rootName']);_0xaebe8e['length']>0x0&&_0x197cf7['setSelection'](_0xaebe8e);for(const _0xe6afff of _0x41c801)_0xe6afff['detach']();});});});}function _0x17fdc1(_0x4f1272){_0x41a7af['model']['change'](_0xbb71c=>{const _0x317efd=Array['from'](_0x230535['getRanges']())['map'](_0x51ba9f=>_0xfd736c['fromRange'](_0x51ba9f)),_0x30fc4c=[];for(const _0x2254e1 of _0x4f1272)for(const _0x46781a of _0x2254e1['getItems']({'shallow':!0x0}))_0x30fc4c['push'](_0x46781a);for(const _0x4ec867 of _0x30fc4c)'$graveyard'!=_0x4ec867['root']['rootName']&&(_0xbb71c['setSelection'](_0xbb71c['createPositionAt'](_0x4ec867,0x0)),_0x41a7af['commands']['get']('removeTableColumn')['refresh'](),_0x41a7af['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x198f67=_0x317efd['filter'](_0x31fe82=>'$graveyard'!=_0x31fe82['root']['rootName']);_0x198f67['length']>0x0&&_0xbb71c['setSelection'](_0x198f67);for(const _0x31e368 of _0x317efd)_0x31e368['detach']();});}function _0x2cff33(_0x9fcf05,_0x52205d){return _0x52205d['every'](_0x4701a7=>_0x9fcf05['some'](_0x32f576=>_0x32f576['end']['isEqual'](_0x4701a7['start'])||_0x4701a7['end']['isEqual'](_0x32f576['start'])));}function _0x4627cf(_0x213f37,_0x616f2b){return!_0x213f37['some'](_0x366841=>_0x616f2b['some'](_0x22b0c5=>_0x366841['isIntersecting'](_0x22b0c5)))&&_0x213f37['some'](_0x13e913=>_0x616f2b['some'](_0x201d85=>_0x13e913['end']['isTouching'](_0x201d85['start'])));}_0x41a7af['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5e9e08,_0x159e34,_0x14f5f3)=>{if(!_0x14f5f3['options']['showSuggestionHighlights'])return;const _0x2a6150=_0x159e34['item'];if(!_0x2a6150)return;const _0x7117a5=_0x14f5f3['mapper']['toViewElement'](_0x2a6150);function _0x76325a(_0x272b2d){return Array['isArray'](_0x272b2d)?_0x272b2d:[_0x272b2d];}_0x7117a5&&'tableCell'===_0x2a6150['name']&&_0x27f9f8(_0x7117a5,_0x14f5f3['writer'],(_0x5ce61d,_0x250ed0,_0x477f81)=>_0x477f81['addClass'](_0x76325a(_0x250ed0['classes']),_0x5ce61d),(_0xd7502,_0x2e7c96,_0x27157e)=>_0x27157e['removeClass'](_0x76325a(_0x2e7c96['classes']),_0xd7502));},{'priority':'highest'}),_0xf01999['descriptionFactory']['registerDescriptionCallback'](_0x1931fc=>{if('insertion'!=_0x1931fc['type']&&'deletion'!=_0x1931fc['type'])return;const _0x41774d=_0x1931fc['getContainedElement']();if(null!=_0x41774d&&_0x41774d['is']('element','table')){if('insertion'==_0x1931fc['type']){const _0x1966e0=_0x1931fc['getItems']()['filter'](_0x43f692=>_0x43f692['is']('$textProxy'))['map'](_0x14e1ee=>_0x14e1ee['data']);if(_0x1966e0['length'])return{'type':'insertion','content':o(_0x448ba3,'*Insert:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1966e0['join']('\x20')+'\x22'))};}if('deletion'==_0x1931fc['type']){const _0xe4f7e6=_0x1931fc['getItems']()['filter'](_0x7a35f=>_0x7a35f['is']('$textProxy'))['map'](_0xa59491=>_0xa59491['data']);if(_0xe4f7e6['length'])return{'type':'deletion','content':o(_0x448ba3,'*Remove:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xe4f7e6['join']('\x20')+'\x22'))};}}}),_0xf01999['descriptionFactory']['registerDescriptionCallback'](_0xb6593d=>{if('tableRow'==_0xb6593d['subType']){const _0x187748=_0xb6593d['getItems']()['filter'](_0x3806cd=>_0x3806cd['is']('$textProxy'))['map'](_0x2b2fb1=>_0x2b2fb1['data']),_0x3a6788=this['_getSuggestionCoords'](_0xb6593d),_0x32c29b=_0x3a6788['maxRow']-_0x3a6788['minRow']+0x1;if('insertion'==_0xb6593d['type'])return _0x187748['length']?{'type':'insertion','content':o(_0x448ba3,'*Insert:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x32c29b,'\x22'+_0x187748['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x448ba3,'*Insert:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_ROW',_0x32c29b))};if('deletion'==_0xb6593d['type'])return _0x187748['length']?{'type':'deletion','content':o(_0x448ba3,'*Remove:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x32c29b,'\x22'+_0x187748['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x448ba3,'*Remove:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_ROW',_0x32c29b))};}if('tableColumn'==_0xb6593d['subType']){const _0x3c3d39=_0xb6593d['getItems']()['filter'](_0x545f22=>_0x545f22['is']('$textProxy'))['map'](_0x4df9f1=>_0x4df9f1['data']),_0x46bf66=this['_getSuggestionCoords'](_0xb6593d),_0x139d3e=_0x46bf66['maxColumn']-_0x46bf66['minColumn']+0x1;if('insertion'==_0xb6593d['type'])return _0x3c3d39['length']?{'type':'insertion','content':o(_0x448ba3,'*Insert:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x139d3e,'\x22'+_0x3c3d39['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x448ba3,'*Insert:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_COLUMN',_0x139d3e))};if('deletion'==_0xb6593d['type'])return _0x3c3d39['length']?{'type':'deletion','content':o(_0x448ba3,'*Remove:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x139d3e,'\x22'+_0x3c3d39['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x448ba3,'*Remove:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_COLUMN',_0x139d3e))};}}),_0xf01999['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1e1b28),_0xf01999['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1e1b28),_0xf01999['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x17fdc1),_0xf01999['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x17fdc1),_0xf01999['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2cff33),_0xf01999['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2cff33),_0xf01999['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4627cf),_0xf01999['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4627cf);}['_acceptFormatSuggestionCallbackFactory'](){const _0x176d92=this['editor'],_0x531e6d=_0x176d92['model']['document']['selection'];return(_0xcc5bfd,_0x54ebfa)=>{_0x176d92['model']['change'](_0x2930c0=>{const {commandName:_0x10e9c2,commandParams:_0x2a812f}=_0x54ebfa;let _0x1c1696=_0xcc5bfd[0x0]['end']['nodeBefore'];_0x2a812f&&_0x2a812f[0x0]&&!0x1===_0x2a812f[0x0]['forceValue']&&(_0x1c1696=_0xcc5bfd[0x0]['start']['nodeAfter']);const _0x47c11a=_0x2930c0['createRangeIn'](_0x1c1696);if('$graveyard'==_0x47c11a['root']['rootName'])return;const _0x333bde=Array['from'](_0x531e6d['getRanges']())['map'](_0x1d9552=>_0xfd736c['fromRange'](_0x1d9552));_0x2930c0['setSelection'](_0x47c11a),_0x176d92['commands']['get'](_0x10e9c2)['refresh'](),_0x2a812f['push']({'forceDefaultExecution':!0x0}),_0x176d92['execute'](_0x10e9c2,..._0x2a812f);const _0x4a73b0=_0x333bde['filter'](_0x254b30=>'$graveyard'!=_0x254b30['root']['rootName']);_0x4a73b0['length']>0x0&&_0x2930c0['setSelection'](_0x4a73b0);for(const _0x558173 of _0x333bde)_0x558173['detach']();});};}['_getCoordsForCells'](_0x327edb){const _0x55b1d6=this['editor']['plugins']['get']('TableUtils');let _0x4a8ea9=Number['MAX_SAFE_INTEGER'],_0x57fd11=Number['MIN_SAFE_INTEGER'],_0x5aa7ad=Number['MAX_SAFE_INTEGER'],_0x1afeab=Number['MIN_SAFE_INTEGER'];for(const _0x504e28 of _0x327edb){if('$graveyard'==_0x504e28['root']['rootName'])continue;const {row:_0x43055d,column:_0x45f8e5}=_0x55b1d6['getCellLocation'](_0x504e28),_0x2ee8db=_0x504e28['hasAttribute']('rowspan')?_0x504e28['getAttribute']('rowspan')-0x1:0x0,_0x332582=_0x504e28['hasAttribute']('colspan')?_0x504e28['getAttribute']('colspan')-0x1:0x0;_0x4a8ea9=_0x43055d<_0x4a8ea9?_0x43055d:_0x4a8ea9,_0x57fd11=_0x43055d+_0x2ee8db>_0x57fd11?_0x43055d+_0x2ee8db:_0x57fd11,_0x5aa7ad=_0x45f8e5<_0x5aa7ad?_0x45f8e5:_0x5aa7ad,_0x1afeab=_0x45f8e5+_0x332582>_0x1afeab?_0x45f8e5+_0x332582:_0x1afeab;}return{'minRow':_0x4a8ea9,'maxRow':_0x57fd11,'minColumn':_0x5aa7ad,'maxColumn':_0x1afeab};}['_setupColumnsRowsFixing'](){const _0x16244e=this['editor'],_0x414c61=_0x16244e['plugins']['get']('TrackChangesEditing'),_0x55bd49=_0x16244e['plugins']['get']('TableUtils');_0x16244e['model']['document']['on']('change:data',()=>{const _0x4ee4ef=Array['from'](_0x16244e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x35831e,data:_0x4ab3db}of _0x4ee4ef){const {group:_0x2919da,id:_0x36d785,subType:_0x201bb9}=_0x414c61['_splitMarkerName'](_0x35831e);if('suggestion'!=_0x2919da)continue;if(null!=_0x4ab3db['oldRange'])continue;const _0x146acf=_0x414c61['getSuggestion'](_0x36d785);this['_tablePostFixingSubtypes']['includes'](_0x201bb9)&&this['_tableSuggestions']['add'](_0x146acf);}},{'priority':'low'});const _0x433433=(_0x2980ef,_0x522bda)=>{let _0x147949=!0x1;const _0x434f93=_0x522bda['createRangeOn'](_0x2980ef),_0x51e218=_0x2980ef['findAncestor']('table'),_0x2c70b6=_0x55bd49['getCellLocation'](_0x2980ef);for(const _0x2f5f9e of this['_tableSuggestions']){const _0x2c8432=_0x2f5f9e['subType'],_0x25d178=_0x2c8432['startsWith']('tablePaste'),_0x2ec180=_0x2c8432['substr'](_0x25d178?0xa:0x5),_0xd47fdf=_0x2ec180['toLowerCase'](),_0x2bb2af=_0xd47fdf['substr'](0x0,0x3)+'span',_0xe25830='min'+_0x2ec180,_0x1c493d='max'+_0x2ec180;if(!_0x2f5f9e['isInContent'])continue;if(_0x51e218!=_0x2f5f9e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2f5f9e['isIntersectingWithRange'](_0x434f93))continue;const _0x134db3=_0x2980ef['hasAttribute'](_0x2bb2af)?_0x2980ef['getAttribute'](_0x2bb2af)-0x1:0x0,_0x9005e=this['_getSuggestionCoords'](_0x2f5f9e),_0x2accfa=_0x9005e[_0xe25830],_0x46879d=_0x9005e[_0x1c493d];_0x2accfa<=_0x2c70b6[_0xd47fdf]&&_0x2c70b6[_0xd47fdf]+_0x134db3<=_0x46879d&&(_0x2f5f9e['addRange'](_0x434f93),_0x147949=!0x0);}return _0x147949;};_0x16244e['model']['document']['registerPostFixer'](_0x149ca9=>{let _0x169c7b=!0x1;for(const _0x16f542 of _0x16244e['model']['document']['differ']['getChanges']())if('insert'==_0x16f542['type']){if('tableRow'==_0x16f542['name']){for(const _0x16a6cc of _0x16f542['position']['nodeAfter']['getChildren']())_0x169c7b=_0x169c7b||_0x433433(_0x16a6cc,_0x149ca9);}else'tableCell'==_0x16f542['name']&&(_0x169c7b=_0x169c7b||_0x433433(_0x16f542['position']['nodeAfter'],_0x149ca9));}return _0x169c7b;});}['_getSuggestionCoords'](_0x5dbe82){return this['_getCoordsForCells'](_0x5dbe82['getRanges']()['map'](_0x343336=>_0x343336['start']['nodeAfter']));}}function be(_0x2dd03b){return Array['from'](new Set(_0x2dd03b)['values']());}class vt extends _0x310a20{static get['requires'](){return[It];}['afterInit'](){const _0x227324=this['editor'],_0xb317ba=_0x227324['model']['document']['selection'],_0x48a5ad=_0x227324['locale'];if(!_0x227324['plugins']['has']('TableEditing'))return;const _0x2b5957=_0x227324['plugins']['get']('TrackChangesEditing'),_0x3b883b=_0x227324['plugins']['get']('TableUtils'),_0x5ce641=_0x227324['plugins']['get'](It);_0x5ce641['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2b5957['enableCommand']('mergeTableCells',()=>{const _0x2e6b7c=_0x3b883b['getSelectionAffectedTableCells'](_0x227324['model']['document']['selection']);_0x227324['model']['change'](()=>{_0x2b5957['markMultiRangeBlockFormat'](_0x2e6b7c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x227324['commands']['get']('mergeTableCells')['on']('execute',(_0x38178a,_0x437328)=>{_0x227324['commands']['get']('trackChanges')['value']&&(_0x437328['length']>0x0&&_0x437328[_0x437328['length']-0x1]&&_0x437328[_0x437328['length']-0x1]['forceDefaultExecution']||_0x2b5957['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x38178a['stop']());},{'priority':'highest'});for(const _0x12a89a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xfe6d54=_0x227324['commands']['get'](_0x12a89a);_0x2b5957['enableCommand'](_0x12a89a,()=>{const _0x7b11b7=_0x227324['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x15d530=>_0x15d530['is']('element','tableCell')),_0x3af69d=_0xfe6d54['value'];_0x227324['model']['change'](()=>{_0x2b5957['markMultiRangeBlockFormat']([_0x7b11b7,_0x3af69d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xa48e54 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1d1952=_0x227324['commands']['get'](_0xa48e54);_0x2b5957['enableCommand'](_0xa48e54,()=>{const _0x29ef16=_0x3b883b['getSelectionAffectedTableCells'](_0x227324['model']['document']['selection'])[0x0],_0x199af3=_0x29ef16['findAncestor']('table'),{column:_0x50d4d4,row:_0x58a261}=_0x3b883b['getCellLocation'](_0x29ef16);let _0x492ab9=[];if('horizontally'==_0x1d1952['direction']){const _0x391faf=_0x3b883b['createTableWalker'](_0x199af3,{'startRow':_0x58a261,'endRow':_0x58a261,'includeAllSlots':!0x0});_0x492ab9=Array['from'](_0x391faf)['map'](_0x536a05=>_0x536a05['cell']);}else{const _0x3dfd20=_0x3b883b['createTableWalker'](_0x199af3,{'column':_0x50d4d4,'includeAllSlots':!0x0});_0x492ab9=Array['from'](_0x3dfd20)['map'](_0x115030=>_0x115030['cell']);}_0x227324['model']['change'](_0xb3a814=>{_0x2b5957['markBlockFormat'](_0xb3a814['createRangeOn'](_0x29ef16),{'commandName':_0xa48e54,'commandParams':[]},_0x492ab9,_0xa48e54);});});}_0x2b5957['descriptionFactory']['registerDescriptionCallback'](_0x40c00d=>{if('formatBlock'!=_0x40c00d['type']&&'formatInline'!=_0x40c00d['type'])return;const {data:_0x80c45}=_0x40c00d;return _0x80c45&&'mergeTableCells'==_0x80c45['commandName']?{'type':'format','content':o(_0x48a5ad,'*Merge\x20cells*')}:void 0x0;}),_0x2b5957['descriptionFactory']['registerDescriptionCallback'](_0x292a77=>{if('formatBlock'!=_0x292a77['type']&&'formatInline'!=_0x292a77['type'])return;const {data:_0x3ef597}=_0x292a77;return _0x3ef597?'splitTableCellVertically'==_0x3ef597['commandName']?{'type':'format','content':o(_0x48a5ad,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3ef597['commandName']?{'type':'format','content':o(_0x48a5ad,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3a94b0=_0x5ce641['_acceptFormatSuggestionCallbackFactory']();for(const _0x48bc40 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2b5957['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x48bc40,'accept',_0x3a94b0);for(const _0x2b5f9e of['splitTableCellVertically','splitTableCellHorizontally'])_0x2b5957['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2b5f9e,'accept',_0x3a94b0);_0x2b5957['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x89d59b=>{_0x227324['model']['change'](_0x250e74=>{const _0x1c5af3=Array['from'](_0xb317ba['getRanges']())['map'](_0x5174a4=>_0xfd736c['fromRange'](_0x5174a4));_0x250e74['setSelection'](_0x89d59b),_0x227324['commands']['get']('mergeTableCells')['refresh'](),_0x227324['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5b5333=_0x1c5af3['filter'](_0x2cd694=>'$graveyard'!=_0x2cd694['root']['rootName']);_0x5b5333['length']>0x0&&_0x250e74['setSelection'](_0x5b5333);for(const _0x55c5c5 of _0x1c5af3)_0x55c5c5['detach']();});});for(const _0x1ef933 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x332b01=_0x227324['commands']['get'](_0x1ef933);_0x332b01['on']('set:isEnabled',(_0x27bfe3,_0x2493c3,_0x599c67)=>{if(_0x599c67){const _0x4e45a8=_0x227324['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xfe1085=>_0xfe1085['is']('element','tableCell'));this['_areMergableCells'](_0x332b01['value'],_0x4e45a8)||(_0x27bfe3['return']=!0x1,_0x27bfe3['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2f9169=this['editor']['commands']['get']('mergeTableCells'),_0x23dac3=this['editor']['plugins']['get']('TableUtils');if(!_0x2f9169['isEnabled'])return!0x1;const _0xf62abd=_0x23dac3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1d83e1 of _0xf62abd)for(const _0x3bec63 of _0xf62abd)if(_0x1d83e1!=_0x3bec63&&!this['_areMergableCells'](_0x1d83e1,_0x3bec63))return!0x1;return!0x0;}['_areMergableCells'](_0x4687b0,_0x4fd9a1){const _0x50a3f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fdf43=this['editor']['model']['createRangeOn'](_0x4687b0),_0x403b8c=this['editor']['model']['createRangeOn'](_0x4fd9a1),_0x2fb3f6=new Set(),_0x491149=new Set();for(const _0x185092 of _0x50a3f3['getSuggestions']())if(('insertion'==_0x185092['type']||'deletion'==_0x185092['type']||'mergeTableCells'==_0x185092['subType'])&&_0x185092['isInContent']){for(const _0x5366d8 of _0x185092['getRanges']())_0x5366d8['containsRange'](_0x2fdf43,!0x0)&&_0x2fb3f6['add'](_0x185092['type']+':'+_0x185092['author']['id']),_0x5366d8['containsRange'](_0x403b8c,!0x0)&&_0x491149['add'](_0x185092['type']+':'+_0x185092['author']['id']);}if(_0x2fb3f6['size']!=_0x491149['size'])return!0x1;for(const _0x214b8c of _0x2fb3f6)if(!_0x491149['has'](_0x214b8c))return!0x1;return!0x0;}}class Ct extends _0x310a20{static get['requires'](){return[It];}['afterInit'](){const _0xc03b6a=this['editor'];if(!_0xc03b6a['plugins']['has']('TableEditing'))return;const _0x406958=_0xc03b6a['locale'],_0x5ca5fc=_0xc03b6a['plugins']['get']('TrackChangesEditing');_0x5ca5fc['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5ca5fc['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5ca5fc['registerBlockAttribute']('headingRows'),_0x5ca5fc['registerBlockAttribute']('headingColumns'),_0x5ca5fc['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x406958,'FORMAT_HEADER_ROW')),_0x5ca5fc['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x406958,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x12925c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10e1cc=this['editor']['plugins']['get']('TableUtils'),_0x3894db=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x5b078b({showActiveMarker:_0x33c1a5=!0x0,setDataAttribute:_0x4378ec=!0x0}={}){return(_0x4d5650,_0x58933a,_0x1d1025)=>{const {type:_0x52605b,id:_0x5b81db}=_0x12925c['_splitMarkerName'](_0x58933a['markerName']),_0x76ea88=_0x12925c['getSuggestion'](_0x5b81db),_0xd510e7=_0x76ea88['data'];if('formatBlock'!=_0x76ea88['type']||!_0xd510e7||'setTableColumnHeader'!=_0xd510e7['commandName'])return;if(_0x58933a['item'])return void _0x4d5650['stop']();if(!_0x1d1025['consumable']['consume'](_0x58933a['markerRange'],_0x4d5650['name']))return;const _0x2d9232=_0x58933a['markerRange']['start']['nodeAfter'],_0x389876=_0x58933a['markerRange']['end']['nodeBefore'],_0x47727f=_0x2d9232['parent']['parent'],{column:_0x22c455}=_0x10e1cc['getCellLocation'](_0x2d9232),{column:_0x50b57d}=_0x10e1cc['getCellLocation'](_0x389876);for(let _0x5b507f=_0x22c455;_0x5b507f<=_0x50b57d;_0x5b507f++){const _0x2f1dd8=_0x10e1cc['createTableWalker'](_0x47727f,{'column':_0x5b507f,'includeAllSlots':!0x1});for(const _0x1db5bb of _0x2f1dd8){const _0x31af0d=_0x1db5bb['cell'],_0x16b53d=_0x1d1025['mapper']['toViewElement'](_0x31af0d);_0x1d1025['writer']['addClass']('ck-suggestion-marker-'+_0x52605b,_0x16b53d),_0x4378ec&&_0x1d1025['writer']['setAttribute']('data-suggestion',_0x5b81db,_0x16b53d),_0x1d1025['mapper']['bindElementToMarker'](_0x16b53d,_0x58933a['markerName']),_0x33c1a5&&(_0x12925c['activeMarkers']['includes'](_0x58933a['markerName'])?_0x1d1025['writer']['addClass']('ck-suggestion-marker--active',_0x16b53d):_0x1d1025['writer']['removeClass']('ck-suggestion-marker--active',_0x16b53d));}}};}_0x12925c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3894db),_0x12925c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3894db),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5b078b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x485ca2,_0x21d5cf,_0x640e91)=>{_0x640e91['options']['showSuggestionHighlights']&&_0x5b078b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x485ca2,_0x21d5cf,_0x640e91);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2f0beb,_0x4999c2,_0x12f4a0)=>{const {type:_0x37e3ff,id:_0x11b46b}=_0x12925c['_splitMarkerName'](_0x4999c2['markerName']),_0x34754d=_0x12925c['getSuggestion'](_0x11b46b),_0x2a3aed=_0x34754d['data'];if('formatBlock'!=_0x34754d['type']||!_0x2a3aed||'setTableColumnHeader'!=_0x2a3aed['commandName'])return;const _0x3795e0=_0x12f4a0['mapper']['markerNameToElements'](_0x4999c2['markerName']);if(_0x3795e0){for(const _0xeb7369 of _0x3795e0)_0x12f4a0['writer']['removeClass']('ck-suggestion-marker-'+_0x37e3ff,_0xeb7369),_0x12f4a0['writer']['removeClass']('ck-suggestion-marker--active',_0xeb7369),_0x12f4a0['writer']['removeAttribute']('data-suggestion',_0xeb7369),_0x12f4a0['mapper']['unbindElementFromMarkerName'](_0xeb7369,_0x4999c2['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfc6f5c=this['editor'],_0x28f33b=_0xfc6f5c['locale'];function _0x5c8199(_0x4d5f37){return{'type':'format','content':o(_0x28f33b,'*Format:*\x20%0',_0x4d5f37)};}_0xfc6f5c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40e9a0=>{if('formatBlock'!=_0x40e9a0['type'])return;const {data:_0xeab8d3}=_0x40e9a0;if(_0xeab8d3){if('setTableRowHeader'==_0xeab8d3['commandName']){const _0xfc1326=_0xeab8d3['commandParams'][0x0]['forceValue'];return _0x5c8199(o(_0x28f33b,_0xfc1326?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xeab8d3['commandName']){const _0x114fe1=_0xeab8d3['commandParams'][0x0]['forceValue'];return _0x5c8199(o(_0x28f33b,_0x114fe1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x24b970=>[_0x24b970,null]));class _t extends _0x310a20{static get['requires'](){return[It];}['afterInit'](){const _0xf76f22=this['editor'];if(!_0xf76f22['plugins']['has']('TableClipboard'))return;const _0x3b52ed=_0xf76f22['plugins']['get']('TrackChangesEditing'),_0x32c880=_0xf76f22['plugins']['get']('TableUtils'),_0x50dcde=_0xf76f22['plugins']['get'](It),_0x1c9252=_0xf76f22['plugins']['get']('TableClipboard');_0x50dcde['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xf76f22['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xf76f22['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x166ee4=null;_0xf76f22['model']['on']('insertContent',(_0x1b8c32,_0x158bbd)=>{const [_0x3426bd,_0x58a078]=_0x158bbd,_0x27990c=_0x158bbd[_0x158bbd['length']-0x1];_0x27990c&&_0x27990c['forceDefaultExecution']||_0x3b52ed['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x50605f,_0x2aac12,_0x50bd76,_0x2864b8,_0x41b67f){if(_0x2aac12&&!_0x2aac12['is']('documentSelection'))return!0x1;const _0x136e6f=_0x41b67f['getTableIfOnlyTableInContent'](_0x50605f,_0x50bd76);if(!_0x136e6f||!Re(_0x136e6f,void 0x0,_0x2864b8))return!0x1;const _0x2b6084=_0x2864b8['getSelectionAffectedTableCells'](_0x50bd76['document']['selection']);if(!_0x2b6084['length'])return!0x1;const _0x1a78bd=_0x2b6084[0x0]['findAncestor']('table'),_0x879d6b=_0x2864b8['getRowIndexes'](_0x2b6084),_0x59044e=_0x2864b8['getColumnIndexes'](_0x2b6084),_0xfb831b={'startRow':_0x879d6b['first'],'endRow':_0x879d6b['last'],'startColumn':_0x59044e['first'],'endColumn':_0x59044e['last']};return 0x1==_0x2b6084['length']&&(_0xfb831b['endRow']+=_0x2864b8['getRows'](_0x136e6f)-0x1,_0xfb831b['endColumn']+=_0x2864b8['getColumns'](_0x136e6f)-0x1),Re(_0x1a78bd,_0xfb831b,_0x2864b8);}(_0x3426bd,_0x58a078,_0xf76f22['model'],_0x32c880,_0x1c9252)&&(_0x1b8c32['stop'](),_0x166ee4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xf76f22['model']['change'](()=>{_0xf76f22['model']['insertContent'](_0x158bbd[0x0],_0x158bbd[0x1],_0x158bbd[0x2],{'forceDefaultExecution':!0x0});const _0x5d4462=_0x3620ad(),{rowInsertionRanges:_0xe0d4f8,columnInsertionRanges:_0x5da9ef,insertionRanges:_0x14ba72,deletionRanges:_0x29b9a1,cells:_0x557cc3}=_0x166ee4;_0xe0d4f8['length']&&_0x3b52ed['markMultiRangeInsertion'](_0xe0d4f8,'tablePasteRow',{'tablePasteChainId':_0x5d4462}),_0x5da9ef['length']&&_0x3b52ed['markMultiRangeInsertion'](_0x5da9ef,'tablePasteColumn',{'tablePasteChainId':_0x5d4462}),_0x14ba72['length']&&(_0x3b52ed['markMultiRangeInsertion'](_0x14ba72,'tablePaste',{'tablePasteChainId':_0x5d4462,'skipNestingCheck':!0x0}),_0x14ba72['forEach'](_0x288597=>_0x288597['detach']?.())),_0x29b9a1['length']&&(_0x3b52ed['markMultiRangeDeletion'](_0x29b9a1,'tablePaste',{'tablePasteChainId':_0x5d4462,'skipNestingCheck':!0x0}),_0x29b9a1['forEach'](_0x3e19cc=>_0x3e19cc['detach']?.()));const _0x328802=_0x3b52ed['markMultiRangeBlockFormat'](_0x557cc3['map'](({element:_0x10fbad})=>_0x10fbad),{'formatGroupId':_0x3620ad()},[],'tablePasteCell',{'tablePasteChainId':_0x5d4462});if(_0x328802){const _0x203b11=_0x328802['getMarkers'](),_0x41808d=[];for(const {element:_0x5c0edf,attributes:_0x9238fb}of _0x557cc3){if(!_0x9238fb)continue;const _0x1a8be3=_0xf76f22['model']['createRangeOn'](_0x5c0edf),_0x4c6e21=_0x203b11['find'](_0x5608a8=>_0x5608a8['getRange']()['isEqual'](_0x1a8be3));_0x4c6e21&&_0x41808d['push']([_0x4c6e21['name'],_0x9238fb]);}_0x41808d['length']&&_0x328802['setAttribute']('markerAttributes',Object['fromEntries'](_0x41808d));}_0x166ee4=null;}));},{'priority':_0x12736d['high']+0xa}),_0xf76f22['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x52a910,_0x3a94e9)=>{const [_0x1a6bd1,_0x549505,,_0x3595ba]=_0x3a94e9;if(!_0x166ee4)return;_0x52a910['stop']();const _0x4599ec=_0x1a6bd1['cell'],_0x2ddac3=_0x549505,_0x2be97f=ke(_0x4599ec),_0x5d954b=ke(_0x2ddac3);_0x52a910['return']=_0x4599ec;let _0xe20c71=null,_0x10c660=null;if(_0x5d954b||_0x2be97f){if(_0x2be97f&&!_0x5d954b){_0x3595ba['remove'](_0x4599ec['getChild'](0x0));for(const _0x31b18c of Array['from'](_0x2ddac3['getChildren']()))_0x3595ba['insert'](_0x31b18c,_0x4599ec,'end');const _0x320685=_0x166ee4['rowInsertionIndexes']['includes'](_0x1a6bd1['row']),_0xa3e643=_0x166ee4['columnInsertionIndexes']['includes'](_0x1a6bd1['column']);_0x320685||_0xa3e643||(_0xe20c71=_0xfd736c['fromRange'](_0x3595ba['createRangeIn'](_0x4599ec)));}else _0x5d954b&&!_0x2be97f&&(_0x10c660=_0x3595ba['createRangeIn'](_0x4599ec));}else{const _0x34c09c=_0x3595ba['createElement']('tableCellSuggestion'),_0x529e04=_0x3595ba['createElement']('tableCellSuggestion');_0x3595ba['wrap'](_0x3595ba['createRangeIn'](_0x4599ec),_0x529e04),_0x3595ba['insert'](_0x34c09c,_0x4599ec,0x0);for(const _0x1d3fab of Array['from'](_0x2ddac3['getChildren']()))_0x3595ba['insert'](_0x1d3fab,_0x34c09c,'end');_0xe20c71=_0xfd736c['fromRange'](_0x3595ba['createRangeOn'](_0x34c09c)),_0x10c660=_0xfd736c['fromRange'](_0x3595ba['createRangeOn'](_0x529e04));}const _0x5249d7=Array['from'](_0x2ddac3['getAttributes']())['filter'](([_0x55034e])=>Pe['includes'](_0x55034e));_0x166ee4['cells']['push']({'element':_0x4599ec,'attributes':_0x5249d7['length']?Object['fromEntries'](_0x5249d7):null}),_0xe20c71&&_0x166ee4['insertionRanges']['push'](_0xe20c71),_0x10c660&&_0x166ee4['deletionRanges']['push'](_0x10c660);},{'priority':'high'}),_0x32c880['on']('insertColumns',(_0x83a78,_0x4b7619)=>{const [_0x1c7c02,_0x14b06b={}]=_0x4b7619;if(!_0x166ee4)return;const _0x57dfa1=_0x14b06b['at']||0x0,_0x19420e=_0x14b06b['columns']||0x1;_0x166ee4['columnInsertionIndexes']=new Array(_0x19420e)['fill'](_0x57dfa1)['map']((_0x398d0a,_0x5ddd98)=>_0x398d0a+_0x5ddd98);for(const {cell:_0x378f96}of _0x32c880['createTableWalker'](_0x1c7c02,{'startColumn':_0x57dfa1,'endColumn':_0x57dfa1+_0x19420e-0x1}))_0x166ee4['columnInsertionRanges']['push'](_0xf76f22['model']['createRangeOn'](_0x378f96));},{'priority':'low'}),_0x32c880['on']('insertRows',(_0x261347,_0x4334c4)=>{const [_0xa258fe,_0x2d9c26={}]=_0x4334c4;if(!_0x166ee4)return;const _0xcfd55b=_0x2d9c26['at']||0x0,_0x485e2f=_0x2d9c26['rows']||0x1;_0x166ee4['rowInsertionIndexes']=new Array(_0x485e2f)['fill'](_0xcfd55b)['map']((_0x1920f9,_0x3e9676)=>_0x1920f9+_0x3e9676);for(const {cell:_0x2c86ce}of _0x32c880['createTableWalker'](_0xa258fe,{'startRow':_0xcfd55b,'endRow':_0xcfd55b+_0x485e2f-0x1}))_0x166ee4['rowInsertionRanges']['push'](_0xf76f22['model']['createRangeOn'](_0x2c86ce));},{'priority':'low'}),_0x3b52ed['descriptionFactory']['registerDescriptionCallback'](_0x24b31f=>{if(_0x24b31f['subType']&&_0x24b31f['subType']['startsWith']('tablePaste'))return _0x24b31f['previous']?{}:{'type':'insertion','content':o(_0xf76f22['locale'],'*Replace\x20table\x20cells*')};});const _0x3369f1=()=>!0x1;for(const _0x463940 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3b52ed['_suggestionFactory']['registerCustomCallback']('insertion',_0x463940,'join',_0x3369f1),_0x3b52ed['_suggestionFactory']['registerCustomCallback']('deletion',_0x463940,'join',_0x3369f1),_0x3b52ed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x463940,'join',_0x3369f1);_0x3b52ed['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3369f1),_0x3b52ed['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x42aa0d,_0x2e4c2f,_0x2a9918)=>{const _0x32d446=_0x42aa0d['map'](_0x5c896=>_0x5c896['getContainedElement']())['filter'](_0x4576ce=>_0x4576ce),_0x38adb2=new Map(_0x32d446['map'](_0x7b6047=>[_0x7b6047,null]));if(_0x166ee4){for(const {element:_0x3fbbc6,attributes:_0x24d4ff}of _0x166ee4['cells'])_0x24d4ff&&_0x38adb2['set'](_0x3fbbc6,_0x24d4ff);}else{if(_0x2a9918&&_0x2a9918['markerAttributes'])for(const [_0x534ba2,_0x4849d7]of Object['entries'](_0x2a9918['markerAttributes'])){const _0x1e27c2=_0xf76f22['model']['markers']['get'](_0x534ba2),_0x5ad171=_0x1e27c2?_0x1e27c2['getRange']()['getContainedElement']():null;_0x5ad171&&_0x38adb2['set'](_0x5ad171,_0x4849d7);}}_0xf76f22['model']['change'](_0x505380=>{for(const [_0x411f09,_0x5c9ac4]of _0x38adb2)_0x505380['setAttributes']({...we,..._0x5c9ac4},_0x411f09);});});const _0x1b8585=(_0x1f36e7,_0x239631)=>{_0x3b52ed['_suggestionFactory']['registerCustomCallback'](_0x1f36e7,'tablePaste',_0x239631,(_0x18b0d8,_0x528f08,_0x474e54)=>{_0xf76f22['model']['change'](_0x52b013=>{const _0x19eb92=[];for(const _0x585b78 of _0x18b0d8){const _0x4e27b4=_0x585b78['start']['nodeAfter'];_0x4e27b4['is']('element','tableCellSuggestion')&&_0x19eb92['push'](_0x4e27b4);}_0x3b52ed['_suggestionFactory']['getSuggestionCallback'](_0x1f36e7,null,_0x239631)(_0x18b0d8,_0x528f08,_0x474e54);for(const _0x2eaab0 of _0x19eb92)'$graveyard'!=_0x2eaab0['root']['rootName']&&_0x52b013['unwrap'](_0x2eaab0);});});};_0x1b8585('insertion','accept'),_0x1b8585('insertion','discard'),_0x1b8585('deletion','accept'),_0x1b8585('deletion','discard'),_0x3b52ed['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1ab9a0=>{const _0x4e0901=_0x1ab9a0['map'](_0x4e95bd=>_0x4e95bd['getContainedElement']()),_0x19db0c=_0x4e0901[0x0]['findAncestor']('table'),{minRow:_0xc47017,maxRow:_0x415ae5}=_0x50dcde['_getCoordsForCells'](_0x4e0901);_0x32c880['removeRows'](_0x19db0c,{'at':_0xc47017,'rows':_0x415ae5-_0xc47017+0x1});}),_0x3b52ed['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1ccf20=>{const _0x45342e=_0x1ccf20['map'](_0x4762ed=>_0x4762ed['getContainedElement']()),_0x48a8a8=_0x45342e[0x0]['findAncestor']('table'),{minColumn:_0x28ead7,maxColumn:_0x21db0c}=_0x50dcde['_getCoordsForCells'](_0x45342e);_0x32c880['removeColumns'](_0x48a8a8,{'at':_0x28ead7,'columns':_0x21db0c-_0x28ead7+0x1});});const _0x8386cd=(_0x1c9522,_0x122c8b)=>{if(!_0x122c8b['subType']||!_0x122c8b['subType']['startsWith']('tablePaste'))return;const _0x247ad8=_0x122c8b['attributes']['tablePasteChainId'],_0x5e5be2=_0x3b52ed['getSuggestions']()['filter'](_0x313890=>_0x313890['isInContent']&&_0x313890['attributes']&&_0x313890['attributes']['tablePasteChainId']==_0x247ad8);_0x5e5be2['length']&&_0x122c8b['getAllAdjacentSuggestions']()['length']!=_0x5e5be2['length']&&_0x5e5be2['reduce']((_0x4820a9,_0x487d4d)=>(_0x4820a9['next']=_0x487d4d,_0x487d4d['previous']=_0x4820a9,_0x487d4d));};function _0x2767b5(_0x13f895,_0x450068=!0x0){const {id:_0x2db512,authorId:_0x3e8306}=_0x3b52ed['_splitMarkerName'](_0x13f895['markerName']),_0x3b9b01=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xd0edd2=_0x3b52ed['activeMarkers']['includes'](_0x13f895['markerName']);return _0xd0edd2&&_0x3b9b01['push']('ck-suggestion-marker--active'),{'classes':_0x3b9b01,'attributes':{'data-suggestion':_0x2db512,'data-author-id':_0x3e8306},'priority':_0xd0edd2&&_0x450068?0xbc2:0xbb8};}_0x3b52ed['on']('suggestionLoaded',_0x8386cd,{'priority':'high'}),_0x3b52ed['on']('suggestionUnloaded',_0x8386cd,{'priority':'high'}),_0xf76f22['model']['document']['registerPostFixer'](()=>{let _0x1ad589=!0x1;const _0x114360=Array['from'](_0xf76f22['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x36d865,data:_0xf0888e}of _0x114360){const {group:_0x46c079,type:_0x361b55,id:_0x97f19c}=_0x3b52ed['_splitMarkerName'](_0x36d865);if('suggestion'!=_0x46c079||'deletion'!=_0x361b55||_0xf0888e['oldRange'])continue;if(!_0x3b52ed['hasSuggestion'](_0x97f19c))continue;const _0x3680f6=_0x3b52ed['getSuggestion'](_0x97f19c)['getRanges'](),_0x58c655=_0xf76f22['plugins']['get']('Users')['me'];for(const _0x29a482 of _0x3b52ed['getSuggestions']()){if(!_0x29a482['isInContent']||_0x29a482['author']!=_0x58c655)continue;if('formatBlock'!=_0x29a482['type']||'tablePasteCell'!=_0x29a482['subType'])continue;if(_0x29a482['getRanges']()['every'](_0x29c248=>_0x3680f6['some'](_0x501fea=>_0x501fea['containsRange'](_0x29c248,!0x0)))){for(const _0x486f02 of _0x29a482['getAllAdjacentSuggestions']())_0x486f02['isInContent']&&(_0x486f02['discard'](),_0x1ad589=!0x0);}}}return _0x1ad589;}),_0xf76f22['model']['document']['registerPostFixer'](_0xf8d97e=>{const _0x1852a1=_0xf76f22['commands']['get']('redo');if(!_0x1852a1||!_0x1852a1['_createdBatches']['has'](_0xf8d97e['batch']))return!0x1;let _0x3d4065=!0x1;const _0x25901d=_0xf76f22['plugins']['get']('Users')['me'],_0x5a935d=_0xf76f22['model']['document']['differ']['getChanges'](),_0x1c2b54=Array['from'](_0xf76f22['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x394c1d,data:_0x1c2ed8})=>{const {group:_0x27e0c6,subType:_0x5c4bf2,authorId:_0x83c0cb}=_0x3b52ed['_splitMarkerName'](_0x394c1d);return'suggestion'==_0x27e0c6&&'tablePaste'==_0x5c4bf2&&_0x83c0cb==_0x25901d['id']&&!_0x1c2ed8['oldRange'];});for(const _0x37bb4a of _0x5a935d){if('insert'!=_0x37bb4a['type']||'tableCellSuggestion'!=_0x37bb4a['name']||0x1!=_0x37bb4a['length'])continue;const _0x2100bc=_0xf8d97e['createRange'](_0x37bb4a['position'],_0x37bb4a['position']['getShiftedBy'](0x1));if(!_0x1c2b54['find'](({data:_0x167f7b})=>_0x167f7b['newRange']['isEqual'](_0x2100bc))){for(const {name:_0x52dd38,data:_0x3fbc28}of _0x1c2b54)if(_0x2100bc['containsRange'](_0x3fbc28['newRange'])){_0xf8d97e['updateMarker'](_0x52dd38,{'range':_0x2100bc}),_0x3d4065=!0x0;break;}}}return _0x3d4065;}),_0xf76f22['model']['document']['registerPostFixer'](_0xb962bb=>{let _0x374bdd=!0x1;const _0x7b6d37=_0xf76f22['plugins']['get']('Users')['me'],_0x57ec94=_0x3b52ed['getSuggestions']()['filter'](_0xba32f3=>_0xba32f3['isInContent']&&_0xba32f3['author']==_0x7b6d37),_0xa3892b=new Set(),_0x57277b=new Set();for(const _0x145724 of _0x57ec94)if('tablePaste'==_0x145724['subType'])for(const _0xc8512f of _0x145724['getMarkers']()){const _0x596a6a=_0xc8512f['getRange']()['getContainedElement']();if(_0x596a6a){if(_0x596a6a['is']('element','tableCellSuggestion')&&ke(_0x596a6a)){_0x145724['removeMarker'](_0xc8512f['name']),_0xa3892b['add'](_0x596a6a),_0x374bdd=!0x0;const _0xb2390e=_0x596a6a['nextSibling'],_0x37c815=_0x596a6a['previousSibling'],_0x3821e4=_0xb2390e&&_0xb2390e['is']('element','tableCellSuggestion'),_0x16bcc4=_0x37c815&&_0x37c815['is']('element','tableCellSuggestion');_0x3821e4&&!_0xa3892b['has'](_0xb2390e)&&_0x57277b['add'](_0xb2390e),_0x16bcc4&&!_0xa3892b['has'](_0x37c815)&&_0x57277b['add'](_0x37c815);}else _0x596a6a['is']('element','paragraph')&&_0x596a6a['isEmpty']&&(_0x145724['removeMarker'](_0xc8512f['name']),_0x374bdd=!0x0);}}else{if('tablePasteCell'==_0x145724['subType']){if(!_0x145724['attributes']||!_0x145724['attributes']['tablePasteChainId'])continue;const _0x814ab0=_0x145724['attributes']['markerAttributes'];if(_0x814ab0&&Object['keys'](_0x814ab0)['length'])continue;const _0x1a4c38=_0x145724['attributes']['tablePasteChainId'];let _0x4dbaf0=!0x0,_0x38f3fe=!0x0;for(const _0x27765c of _0x57ec94)if(_0x27765c['subType']&&_0x27765c['subType']['startsWith']('tablePaste')){if(!_0x27765c['attributes']['tablePasteChainId']){_0x38f3fe=!0x1;break;}if(_0x27765c['id']!=_0x145724['id']&&_0x27765c['attributes']['tablePasteChainId']==_0x1a4c38){_0x4dbaf0=!0x1;break;}}_0x38f3fe&&_0x4dbaf0&&(_0x145724['removeMarkers'](),_0x374bdd=!0x0);}}for(const _0x5d8a6a of _0xa3892b)_0xb962bb['remove'](_0x5d8a6a);for(const _0x9de746 of _0x57277b)_0xb962bb['unwrap'](_0x9de746);return _0x374bdd;}),_0xf76f22['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1cb65e,_0x1ebf76)=>_0x2767b5(_0x1cb65e),'converterPriority':'high'}),_0xf76f22['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5acaf4,_0x3c8a45)=>_0x3c8a45['options']['showSuggestionHighlights']?_0x2767b5(_0x5acaf4,!0x1):null,'converterPriority':'high'});const _0x502bb9=_0xf76f22['editing']['view'];this['listenTo'](_0x502bb9['document'],'clipboardOutput',(_0x294dbd,_0x7a23a3)=>{const _0x57d6c0=[];for(const _0x4974d6 of _0x502bb9['createRangeIn'](_0x7a23a3['content'])['getItems']())_0x4974d6['is']('element','suggestion-td')&&_0x57d6c0['push'](_0x4974d6);_0x502bb9['change'](_0x19c60a=>{for(const _0x59903c of _0x57d6c0)_0x19c60a['move'](_0x19c60a['createRangeIn'](_0x59903c),_0x19c60a['createPositionBefore'](_0x59903c)),_0x19c60a['remove'](_0x59903c);});});}}function ke(_0x3cfa97){if(_0x3cfa97['isEmpty'])return!0x0;const _0x34f40c=_0x3cfa97['getChild'](0x0);return _0x34f40c['is']('element','paragraph')&&_0x34f40c['isEmpty'];}function Re(_0x3c36f5,_0x2a819b={},_0x1bd0fd){for(const {isAnchor:_0x341a91,cellHeight:_0x2a8150,cellWidth:_0x55f0a2}of _0x1bd0fd['createTableWalker'](_0x3c36f5,{'includeAllSlots':!0x0,..._0x2a819b}))if(!_0x341a91||0x1!=_0x2a8150||0x1!=_0x55f0a2)return!0x1;return!0x0;}class Nt extends _0x310a20{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5789ea=this['editor']['plugins']['get']('TrackChangesEditing');_0x5789ea['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5789ea['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5789ea['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5789ea['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5789ea['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5789ea['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1e549f,_0x5acfcc){const _0xafac4a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2243e6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x552858=_0x5acfcc['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x123b9b=_0x2243e6['getColumnGroupElement'](_0x552858);let _0x33d564=_0x123b9b?_0x2243e6['getTableColumnsWidths'](_0x123b9b):null,_0x37f352=_0x552858['getAttribute']('tableWidth')||null;const _0x1556af=_0x5acfcc['tableWidth']||_0x37f352,_0x4eb374=_0x5acfcc['columnWidths']||_0x33d564,_0x2647ec=this['editor']['plugins']['get']('Users')['me'];for(const _0x477476 of _0xafac4a['getSuggestions']()){const _0x256cc8=_0x477476['getContainedElement']();if('resizeTable'===_0x477476['subType']&&_0x256cc8===_0x552858){_0x477476['author']!==_0x2647ec&&_0x477476['discard']();const _0x5a58ce=_0x477476['data']['commandParams'];_0x37f352=_0x5a58ce[0x0]['tableWidth'],_0x33d564=_0x5a58ce[0x0]['columnWidths'];break;}}_0x1e549f({'table':_0x552858,'tableWidth':_0x1556af,'columnWidths':_0x4eb374}),_0xafac4a['markBlockFormat'](_0x552858,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x37f352,'columnWidths':_0x33d564}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5f1b6f){if('formatBlock'!=_0x5f1b6f['type']&&'formatInline'!=_0x5f1b6f['type'])return;const {data:_0x34d64d}=_0x5f1b6f;if(_0x34d64d&&'resizeTable'===_0x34d64d['formatGroupId']){const _0x17038b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x17038b)};}}}class Dt extends _0x310a20{['afterInit'](){const _0x41303f=this['editor'];_0x41303f['plugins']['has']('Template')&&_0x41303f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x310a20{['afterInit'](){const _0x448cc8=this['editor'];if(!_0x448cc8['commands']['get']('insertTableOfContents'))return;_0x448cc8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1fdb07=_0x448cc8['plugins']['get']('TrackChangesEditing'),_0x554b6c=_0x448cc8['locale'];_0x1fdb07['descriptionFactory']['registerElementLabel']('tableOfContents',_0x364563=>o(_0x554b6c,'ELEMENT_TABLE_OF_CONTENTS',_0x364563));}}class $t extends _0x310a20{['afterInit'](){const _0x5ad578=this['editor'];if(!_0x5ad578['plugins']['has']('Title'))return;const _0x35db5c=_0x5ad578['plugins']['get']('TrackChangesEditing');_0x35db5c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5ad578['locale'],'ELEMENT_TITLE')),_0x5ad578['model']['document']['registerPostFixer'](_0x27ff8d=>{let _0x3c6e14=!0x1;const _0x30e72a=Array['from'](_0x5ad578['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5222b2,data:_0x226fc5}of _0x30e72a){const {group:_0x38d4cf}=_0x35db5c['_splitMarkerName'](_0x5222b2);if('suggestion'!==_0x38d4cf||!_0x226fc5['newRange'])continue;const _0x510359=_0x226fc5['newRange'],_0x320ede=_0x510359['end']['nodeBefore'];if(!_0x320ede||!_0x320ede['is']('element','title-content'))continue;if(!_0x510359['start']['isTouching'](_0x510359['end']))continue;const _0x4a1f29=_0x5ad578['model']['schema']['getNearestSelectionRange'](_0x510359['end'],'forward');if(_0x4a1f29&&_0x4a1f29['isCollapsed']){const _0x51e67b=_0x27ff8d['createRange'](_0x510359['start'],_0x4a1f29['start']);_0x51e67b['isEqual'](_0x510359)||(_0x27ff8d['updateMarker'](_0x5222b2,{'range':_0x51e67b}),_0x3c6e14=!0x0);}_0x3c6e14||(_0x27ff8d['removeMarker'](_0x5222b2),_0x3c6e14=!0x0);}return _0x3c6e14;});}}class Bt extends _0x310a20{['afterInit'](){const _0x159c11=this['editor'],_0x2c8ad9=_0x159c11['plugins']['get']('TrackChangesEditing');_0x159c11['plugins']['has']('UndoEditing')&&(_0x2c8ad9['enableCommand']('undo'),_0x2c8ad9['enableCommand']('redo'));}}class xt extends _0x310a20{static get['requires'](){return[It];}['afterInit'](){const _0x4dcdc2=this['editor'];if(!_0x4dcdc2['plugins']['has']('TableCaptionEditing'))return;_0x4dcdc2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x310a20{['tableProperties'];['tableCellProperties'];constructor(_0x395488){super(_0x395488),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 _0x3d3784=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3c439c of this['tableProperties'])_0x3d3784['enableCommand'](_0x3c439c,(_0x50cbf2,_0x582ed0)=>{const _0xbd46f7=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3c439c,[_0xbd46f7],this['tableProperties'],'tableProperties',_0x50cbf2,_0x582ed0);});_0x3d3784['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3d3784['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3d3784['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3030cf,_0x35f1ef)=>this['handleDiscardAction'](this['tableProperties'],_0x3030cf,_0x35f1ef)),_0x3d3784['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x228684 of this['tableCellProperties'])_0x3d3784['enableCommand'](_0x228684,(_0x3c3c8a,_0x2be269)=>{const _0x4744d1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x228684,_0x4744d1,this['tableCellProperties'],'tableCellProperties',_0x3c3c8a,_0x2be269);});_0x3d3784['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3d3784['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3d3784['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x407bb3,_0x19d96f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x407bb3,_0x19d96f)),_0x3d3784['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3d3784['descriptionFactory']['registerDescriptionCallback'](_0x23b745=>this['handleSuggestionDescription'](_0x23b745));}['_handlePropertyChange'](_0x280fc8,_0x4d6628,_0x25b936,_0x50d510,_0x5b1b4b,_0x2b8d67){const _0x598240=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2b8d67['batch'],()=>{for(const _0x4d4db8 of _0x4d6628){if(this['_getSuggestion'](_0x4d4db8,_0x50d510))_0x5b1b4b(_0x2b8d67);else{const _0x364dea={};for(const _0x52b44a of _0x25b936){const _0x87201e=_0x4d4db8['getAttribute'](_0x52b44a);void 0x0!==_0x87201e&&(_0x364dea[_0x52b44a]=_0x87201e);}_0x5b1b4b(_0x2b8d67),_0x598240['markBlockFormat'](_0x4d4db8,{'commandParams':[_0x364dea]},[],_0x50d510);}}});}['handleDiscardAction'](_0x15c110,_0x3ea0a8,_0xe96828){const _0x97c47d=_0x3ea0a8[0x0]['start']['nodeAfter'],_0x41f057=_0xe96828['commandParams'][0x0];this['editor']['model']['change'](_0x86abe2=>{for(const _0x1ec4d7 of _0x15c110)void 0x0!==_0x41f057[_0x1ec4d7]?_0x86abe2['setAttribute'](_0x1ec4d7,_0x41f057[_0x1ec4d7],_0x97c47d):_0x86abe2['removeAttribute'](_0x1ec4d7,_0x97c47d);});}['handleSuggestionDescription'](_0x430c8c){if(_0x430c8c['data'])switch(_0x430c8c['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'](_0x3f4bb9,_0x307285){const _0x5f59a0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x445363 of _0x5f59a0['getSuggestions']({'skipNotAttached':!0x0})){const _0x2946a8=_0x445363['getContainedElement']();if(_0x445363['subType']===_0x307285&&_0x2946a8===_0x3f4bb9)return _0x445363;}return null;}}const m='$elementName';class p extends _0x310a20{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x20783e,_0x47fc58,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(_0x43c8d5){function _0x4ab362(_0x43212e){return _0x43212e['map'](_0x471588=>String['fromCharCode'](_0x471588))['join']('');}super(_0x43c8d5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x226170,_0x3227c0,_0x231a08,_0xda5045)=>{this['_model']['change'](()=>{for(const _0x4b78dd of[..._0xda5045,..._0x231a08])this['_model']['markers']['has'](_0x4b78dd)&&_0x43c8d5['editing']['reconvertMarker'](_0x4b78dd);});}),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']=_0x43c8d5['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(),_0x43c8d5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x43c8d5['config']['get']('trackChanges.trackFormatChanges'),_0x43c8d5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x43c8d5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x43c8d5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4ab362([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4ab362([0x34,0x30,0x34,0x38,0x31,0x38,0x31,0x30]);}['init'](){const _0x128499=this['editor'],_0x353527=(_0x5d7fd5,_0x34dc95)=>{if('attribute'!=_0x5d7fd5)return'ck-suggestion-marker-'+_0x5d7fd5;const _0x59f94d=_0x34dc95['split']('|')[0x0];return this['_isBlockAttribute'](_0x59f94d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x128499['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4d6995=>{const {id:_0x894cbb,authorId:_0x59b4a2,type:_0x3ac2e7,subType:_0xd0c1ae}=this['_splitMarkerName'](_0x4d6995['markerName']),_0x530a86=['ck-suggestion-marker',_0x353527(_0x3ac2e7,_0xd0c1ae)];let _0x56f0c6=0xbb8;return this['activeMarkers']['includes'](_0x4d6995['markerName'])&&(_0x530a86['push']('ck-suggestion-marker--active'),_0x56f0c6=0xbc2),'deletion'==_0x3ac2e7&&(_0x56f0c6+=0x5),{'classes':_0x530a86,'attributes':{'data-suggestion':_0x894cbb,'data-author-id':_0x59b4a2},'priority':_0x56f0c6};}}),_0x128499['conversion']['for']('dataDowncast')['add'](_0x55f70c=>{_0x55f70c['on']('addMarker:suggestion',(_0x4aff68,_0xe6ae06,_0x2d5c77)=>{if(!_0x2d5c77['options']['showSuggestionHighlights'])return;const _0x3fbc98=_0xe6ae06['item'];if(!_0x3fbc98)return;const _0x1ab0e2=_0x2d5c77['mapper']['toViewElement'](_0x3fbc98);_0x128499['model']['schema']['isObject'](_0x3fbc98)&&_0x1ab0e2&&!_0x1ab0e2['getCustomProperty']('widget')&&_0x1ab0e2['is']('containerElement')&&_0x490399(_0x1ab0e2,_0x2d5c77['writer']);},{'priority':'high'});}),_0x128499['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xb3e513,_0x3b5929)=>{if(!_0x3b5929['options']['showSuggestionHighlights'])return null;const {type:_0x3b8881,subType:_0x1de23d}=this['_splitMarkerName'](_0xb3e513['markerName']);return{'classes':['ck-suggestion-marker',_0x353527(_0x3b8881,_0x1de23d)],'priority':0xbb8};}});const _0x331503=({showActiveMarkers:_0x465a23=!0x0,isAttributeSuggestion:_0x5c3b02=!0x1}={})=>(_0x2aa84b,_0x211165,_0x2eba86)=>{if(!_0x211165['item'])return;const {id:_0x2aaa0b,authorId:_0x1f4f53}=this['_splitMarkerName'](_0x211165['markerName']);if(_0x5c3b02){const _0x1be0de=this['_suggestions']['get'](_0x2aaa0b),_0x2b8e61=this['_getAttributeKey'](_0x1be0de);if(!this['_isBlockAttribute'](_0x2b8e61))return;}if(_0x211165['item']['is']('selection'))return void _0x2eba86['consumable']['consume'](_0x211165['item'],_0x2aa84b['name']);const _0x4f3461=_0x2eba86['mapper']['toViewElement'](_0x211165['item']);if(_0x211165['item']['is']('element')&&_0x128499['model']['schema']['isBlock'](_0x211165['item'])&&!_0x4f3461['getCustomProperty']('addHighlight')){_0x2eba86['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4f3461),_0x2eba86['writer']['setAttribute']('data-suggestion',_0x2aaa0b,_0x4f3461),_0x2eba86['writer']['setAttribute']('data-author-id',_0x1f4f53,_0x4f3461),_0x2eba86['mapper']['bindElementToMarker'](_0x4f3461,_0x211165['markerName']),_0x465a23&&(this['activeMarkers']['includes'](_0x211165['markerName'])?_0x2eba86['writer']['addClass']('ck-suggestion-marker--active',_0x4f3461):_0x2eba86['writer']['removeClass']('ck-suggestion-marker--active',_0x4f3461));for(const _0x4e3379 of _0x128499['model']['createRangeIn'](_0x211165['item'])['getItems']())_0x2eba86['consumable']['consume'](_0x4e3379,_0x2aa84b['name']);_0x2eba86['consumable']['consume'](_0x211165['item'],_0x2aa84b['name']);}};_0x128499['conversion']['for']('dataDowncast')['add'](_0x13426e=>{_0x13426e['on']('addMarker:suggestion:formatBlock',(_0x533282,_0x45b6b6,_0x27a454)=>{_0x27a454['options']['showSuggestionHighlights']&&_0x331503({'showActiveMarkers':!0x1})(_0x533282,_0x45b6b6,_0x27a454);},{'priority':'highest'});}),_0x128499['conversion']['for']('dataDowncast')['add'](_0x468986=>{_0x468986['on']('addMarker:suggestion:attribute',(_0x8131e3,_0x2b8b3c,_0x356733)=>{_0x356733['options']['showSuggestionHighlights']&&_0x331503({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x8131e3,_0x2b8b3c,_0x356733);},{'priority':'highest'});}),_0x128499['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x428f9e,_0x4f58e3)=>_0x4f58e3['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x428f9e['substr'](0xb)}}),_0x128499['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2adbe7,{writer:_0x1a3ab9})=>{let _0x1a9c43='suggestion:'+_0x2adbe7['getAttribute']('suggestion-type')+':'+_0x2adbe7['getAttribute']('id');return _0x2adbe7['getAttribute']('marker-count')&&(_0x1a9c43+=':'+_0x2adbe7['getAttribute']('marker-count')),_0x1a3ab9['createElement']('$marker',{'data-name':_0x1a9c43});}}),_0x128499['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x128499['conversion']['for']('editingDowncast')['add'](_0x17ac80=>{_0x17ac80['on']('addMarker:suggestion:formatBlock',_0x331503(),{'priority':'high'});}),_0x128499['conversion']['for']('editingDowncast')['add'](_0xad451f=>{_0xad451f['on']('addMarker:suggestion:attribute',_0x331503({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x128499['conversion']['for']('editingDowncast')['add'](_0x5bade1=>{_0x5bade1['on']('removeMarker:suggestion:formatBlock',(_0x2d86ff,_0x5bf43c,_0x416349)=>{const _0x53c10e=_0x416349['mapper']['markerNameToElements'](_0x5bf43c['markerName']);if(_0x53c10e){for(const _0x1055ae of _0x53c10e)_0x1055ae['getCustomProperty']('addHighlight')||(_0x416349['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1055ae),_0x416349['writer']['removeAttribute']('data-suggestion',_0x1055ae),_0x416349['writer']['removeAttribute']('data-author-id',_0x1055ae),_0x416349['mapper']['unbindElementFromMarkerName'](_0x1055ae,_0x5bf43c['markerName']));}},{'priority':'high'});}),_0x128499['conversion']['for']('editingDowncast')['add'](_0x570ab9=>{_0x570ab9['on']('removeMarker:suggestion:attribute',(_0x4bcebe,_0x2a8632,_0x2f8d22)=>{const _0x2161e4=_0x2f8d22['mapper']['markerNameToElements'](_0x2a8632['markerName']);if(!_0x2161e4)return;const {id:_0x3c0d44}=this['_splitMarkerName'](_0x2a8632['markerName']),_0x5cb1ad=this['_suggestions']['get'](_0x3c0d44),_0x555c68=this['_getAttributeKey'](_0x5cb1ad);if(this['_isBlockAttribute'](_0x555c68)){for(const _0x2ce41f of _0x2161e4)_0x2ce41f['getCustomProperty']('addHighlight')||(_0x2f8d22['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2ce41f),_0x2f8d22['writer']['removeAttribute']('data-suggestion',_0x2ce41f),_0x2f8d22['writer']['removeAttribute']('data-author-id',_0x2ce41f),_0x2f8d22['mapper']['unbindElementFromMarkerName'](_0x2ce41f,_0x2a8632['markerName']));}},{'priority':'high'});}),_0x128499['model']['document']['registerPostFixer'](_0x5ee43e=>{let _0x183d61=!0x1;const _0x274ed6=Array['from'](_0x128499['model']['document']['differ']['getChangedMarkers']()),_0x32428a=new Set();for(const {name:_0x441220,data:_0x53c10b}of _0x274ed6){const {group:_0x56a9e3,type:_0x2c7a83,subType:_0x872a38,id:_0xc4089a}=this['_splitMarkerName'](_0x441220);if('suggestion'!==_0x56a9e3)continue;const _0x2def04=this['_suggestions']['get'](_0xc4089a);if(null!=_0x53c10b['newRange']){'formatInline'==_0x2c7a83&&(_0x183d61=_0x183d61||Ut(_0x53c10b['newRange'],_0x441220,_0x5ee43e,_0x128499['model']['schema']));const _0x19e40a='attribute'==_0x2c7a83&&this['_isBlockAttribute'](_0x872a38['split']('|')[0x0]);if(_0x53c10b['newRange']['isCollapsed']||'$graveyard'==_0x53c10b['newRange']['root']['rootName']||'formatBlock'==_0x2c7a83&&!Ft(_0x53c10b['newRange'])||_0x19e40a&&!Ft(_0x53c10b['newRange'])||'deletion'==_0x2c7a83&&!(!Vt(_0x462077=_0x53c10b['newRange'])&&!function(_0xa56602){return _0xa56602['start']['parent']==_0xa56602['end']['nodeBefore']&&_0xa56602['start']['isAtEnd'];}(_0x462077)))_0x5ee43e['removeMarker'](_0x441220),_0x183d61=!0x0;else{if(!_0x2def04||!_0x2def04['isInContent'])continue;if(_0x53c10b['newRange']&&_0x53c10b['oldRange']&&_0x53c10b['newRange']['isEqual'](_0x53c10b['oldRange']))continue;_0x32428a['add'](_0x2def04);}}}var _0x462077;return _0x32428a['size']>0x0&&(_0x183d61=!!this['_joinWithAdjacentSuggestions'](_0x32428a)||_0x183d61),_0x183d61;}),_0x128499['model']['document']['registerPostFixer'](_0xab2e7c=>{let _0x5dfcd1=!0x1;for(const _0x1728b9 of _0x128499['model']['document']['differ']['getChanges']())if('insert'==_0x1728b9['type'])for(const _0x4d3c8a of this['_suggestions']['values']()){if(_0x4d3c8a['isMultiRange']||!_0x4d3c8a['isInContent'])continue;const _0x40e5c2='formatBlock'==_0x4d3c8a['type'],_0x436512=this['_getAttributeKey'](_0x4d3c8a),_0x43611b=_0x436512&&this['_isBlockAttribute'](_0x436512);if(!_0x40e5c2&&!_0x43611b)continue;const _0x470705=_0x4d3c8a['getFirstRange']();if(_0x470705['start']['parent']!=_0x470705['end']['parent']&&!_0x470705['end']['isAtEnd']){const _0x3834bd=_0x128499['model']['createPositionAt'](_0x470705['start']['nodeAfter'],'end'),_0xc32973=_0x128499['model']['createRange'](_0x470705['start'],_0x3834bd);_0xab2e7c['updateMarker'](_0x4d3c8a['getFirstMarker'](),{'range':_0xc32973}),_0x5dfcd1=!0x0;}}return _0x5dfcd1;}),_0x128499['model']['document']['registerPostFixer'](_0x17396e=>this['_processAttributeChanges'](_0x17396e)),_0x128499['model']['document']['registerPostFixer'](_0x419caf=>!_0x419caf['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x419caf)),_0x128499['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x128499['model']['document']['on']('change:data',(_0x679dae,_0x2dd464)=>{if(!_0x2dd464['isLocal']||_0x2dd464['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x577ef5=_0x128499['model']['document']['differ']['getChanges']();if(0x0==_0x577ef5['length'])return;const _0x2b26ea=[],_0xffc12d=_0x577ef5['filter'](_0xeb6206=>'attribute'==_0xeb6206['type']),_0x1e5d77=_0x577ef5['filter'](_0x94dd9b=>'insert'==_0x94dd9b['type']&&'$text'!=_0x94dd9b['name']);for(const _0x9bc91b of _0xffc12d)this['_isRegisteredAttribute'](_0x9bc91b['attributeKey'])&&_0x2b26ea['push']({'key':_0x9bc91b['attributeKey'],'newValue':_0x9bc91b['attributeNewValue'],'oldValue':_0x9bc91b['attributeOldValue'],'range':Pt(_0x9bc91b['range'],_0x128499['model'])});for(const _0x1a8d4d of _0x1e5d77){if('rename'!=_0x1a8d4d['action']&&'refresh'!=_0x1a8d4d['action'])continue;const _0x161eb0=Lt(_0x1a8d4d['position']['nodeAfter'],_0x128499['model']),_0x56b4ef=_0x1a8d4d['before'];'rename'==_0x1a8d4d['action']&&_0x2b26ea['push']({'key':m,'newValue':_0x1a8d4d['name'],'oldValue':_0x56b4ef['name'],'range':_0x161eb0});for(const [_0x5ce379,_0xaed003]of _0x56b4ef['attributes']){if(!this['_isRegisteredAttribute'](_0x5ce379))continue;const _0x2e81c4=_0x1a8d4d['attributes']['get'](_0x5ce379);_0xaed003!==_0x2e81c4&&_0x2b26ea['push']({'key':_0x5ce379,'newValue':_0x2e81c4,'oldValue':_0xaed003,'range':_0x161eb0});}for(const [_0x3ea796,_0x4557d7]of _0x1a8d4d['attributes'])this['_isRegisteredAttribute'](_0x3ea796)&&(_0x56b4ef['attributes']['has'](_0x3ea796)||_0x2b26ea['push']({'key':_0x3ea796,'newValue':_0x4557d7,'oldValue':null,'range':_0x161eb0}));}0x0!=_0x2b26ea['length']&&_0x128499['model']['enqueueChange'](_0x2dd464,_0x277eaf=>{const _0x3046dd=_0x3620ad();for(const {range:_0x5aaa29,key:_0x344e09,oldValue:_0x1b27ec,newValue:_0x2d55ee}of _0x2b26ea)this['markAttributeChange'](_0x5aaa29,_0x344e09,_0x1b27ec,_0x2d55ee,{'groupId':_0x3046dd});this['_reduceExistingSuggestions'](_0x277eaf,_0x2b26ea);});},{'priority':'lowest'}),_0x128499['model']['markers']['on']('update:suggestion',(_0x4f745b,_0x58a8d9,_0x1685f7)=>{if(null==_0x1685f7){const {id:_0x266676}=this['_splitMarkerName'](_0x58a8d9['name']),_0x3e822b=this['_suggestions']['get'](_0x266676);_0x3e822b&&_0x3e822b['addMarkerName'](_0x58a8d9['name']);}}),_0x128499['model']['document']['on']('change:data',()=>{const _0x261474=Array['from'](_0x128499['model']['document']['differ']['getChangedMarkers']())['filter'](_0x27dc4d=>'suggestion'===this['_splitMarkerName'](_0x27dc4d['name'])['group']);if(0x0===_0x261474['length'])return;_0x261474['sort']((_0x16b0fb,_0x1c2d24)=>{const _0x43e9c2=_0x16b0fb['data']['oldRange'],_0x222eab=_0x1c2d24['data']['oldRange'];return null===_0x43e9c2&&null===_0x222eab?0x0:null===_0x43e9c2&&null!==_0x222eab?-0x1:null!==_0x43e9c2&&null===_0x222eab?0x1:_0x43e9c2['start']['isBefore'](_0x222eab['start'])?-0x1:0x1;});const _0x241a24=new Set(),_0x4baec2=new Set();for(const {name:_0x54a3d6,data:_0x36b93d}of _0x261474){const {id:_0x38bbf1}=this['_splitMarkerName'](_0x54a3d6);if(null===_0x36b93d['oldRange']){const _0x2f381b=this['_handleNewSuggestionMarker'](_0x54a3d6);_0x4baec2['add'](_0x2f381b);}else{const _0x1e154=this['_suggestions']['get'](_0x38bbf1);null!==_0x36b93d['newRange']||_0x1e154['isInContent']?(_0x241a24['add'](_0x1e154['head']),_0x4baec2['add'](_0x1e154)):this['_removeSuggestion'](_0x1e154);}}_0x4baec2['size']>0x0&&this['_refreshSuggestionsChain'](_0x4baec2);for(const _0xdb6522 of _0x241a24)this['fire']('suggestionChanged',_0xdb6522);}),_0x128499['model']['on']('applyOperation',(_0xab56ca,_0x348f5b)=>{const _0xa50456=_0x348f5b[0x0];if(!this['_suggestions']['size'])return;if(!_0xa50456['isDocumentOperation'])return;if(_0xa50456['batch']['isUndo']||!_0xa50456['batch']['isLocal'])return;let _0x48ab53,_0x3b7a66;switch(_0xa50456['type']){case'insert':_0x48ab53=_0x128499['model']['createPositionAt'](_0xa50456['position']),_0x3b7a66=_0x48ab53['getShiftedBy'](_0xa50456['howMany']);break;case'split':_0x48ab53=_0x128499['model']['createPositionAt'](_0xa50456['splitPosition']),_0x3b7a66=_0x128499['model']['createPositionAt'](_0xa50456['moveTargetPosition']);break;case'move':_0x48ab53=_0x128499['model']['createPositionAt'](_0xa50456['targetPosition']),_0x3b7a66=_0x48ab53['getShiftedBy'](_0xa50456['howMany']);break;default:return;}const _0x29ebe1=_0x128499['model']['createRange'](_0x48ab53,_0x3b7a66);_0x128499['model']['change'](()=>{for(const {suggestion:_0x2c2641,meta:_0x16acd7}of this['_findSuggestions'](_0x29ebe1)){if(_0x2c2641['isMultiRange'])continue;if('formatInline'==_0x2c2641['type'])continue;const _0x3df80a=this['_getAttributeKey'](_0x2c2641);if(_0x3df80a&&this['_isBlockAttribute'](_0x3df80a)&&'split'!=_0xa50456['type'])continue;const _0x40e187=_0x2c2641['data']&&_0x2c2641['data']['multipleBlocks'];('formatBlock'!=_0x2c2641['type']||'split'==_0xa50456['type']&&!_0x40e187)&&(_0x16acd7['containsRangeInObject']||'insertion'==_0x2c2641['type']&&_0x16acd7['isOwn']||_0x2c2641['getFirstRange']()['containsRange'](_0x29ebe1)&&this['_breakSuggestionMarker'](_0x2c2641,_0x48ab53,_0x3b7a66));}});},{'priority':'lowest'}),_0x128499['model']['on']('deleteContent',(_0x2d4804,_0x208e58)=>{const _0x40c3dd=_0x208e58[0x0],_0x218bc9=_0x208e58[0x1];if(_0x218bc9&&_0x218bc9['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x40c3dd['isCollapsed'])return;const _0x31ccc6=_0x128499['model']['schema'],{start:_0x45af34,end:_0x379cbb}=_0x40c3dd['getFirstRange'](),_0xdbaff6=_0x45af34['nodeAfter']&&_0x31ccc6['isLimit'](_0x45af34['nodeAfter'])?null:_0x31ccc6['getNearestSelectionRange'](_0x45af34,'forward'),_0x59438f=_0x379cbb['nodeBefore']&&_0x31ccc6['isLimit'](_0x379cbb['nodeBefore'])?null:_0x31ccc6['getNearestSelectionRange'](_0x379cbb,'backward'),_0x24aa26=_0x128499['model']['createRange'](_0xdbaff6?_0xdbaff6['start']:_0x45af34,_0x59438f?_0x59438f['end']:_0x379cbb);_0x128499['model']['change'](_0x5edb9f=>{this['markDeletion'](_0x24aa26);const _0x312aac=_0x128499['model']['schema']['getNearestSelectionRange'](_0x24aa26['start']);_0x40c3dd['is']('documentSelection')?_0x5edb9f['setSelection'](_0x312aac):_0x40c3dd['setTo'](_0x312aac);}),_0x2d4804['stop']();},{'priority':_0x12736d['normal']+0xa}),_0x128499['model']['on']('insertContent',(_0x6ab537,_0xaf8674)=>{const _0x3b1ba5=_0xaf8674[_0xaf8674['length']-0x1];_0x3b1ba5&&_0x3b1ba5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x128499['model']['change'](()=>{let _0x6f4840=_0x128499['model']['insertContent'](_0xaf8674[0x0],_0xaf8674[0x1],_0xaf8674[0x2],{'forceDefaultExecution':!0x0});if(!_0x6f4840)return;_0x6ab537['return']=_0x6f4840['clone']();const _0x378b6a=_0x6f4840['end']['nodeBefore'],_0x2dd9db=_0x128499['model']['schema'];_0x378b6a&&_0x2dd9db['isBlock'](_0x378b6a)&&!_0x2dd9db['isObject'](_0x378b6a)&&(_0x6f4840=_0x128499['model']['createRange'](_0x6f4840['start'],_0x128499['model']['createPositionAt'](_0x378b6a,'end'))),this['markInsertion'](_0x6f4840);}),_0x6ab537['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xecc723=new x(_0x128499,this['_suggestions']);_0x128499['commands']['add']('acceptSuggestion',_0xecc723),this['enableCommand']('acceptSuggestion');const _0x37d534=new R(_0x128499,this['_suggestions']);_0x128499['commands']['add']('discardSuggestion',_0x37d534),this['enableCommand']('discardSuggestion'),_0x128499['commands']['add']('acceptAllSuggestions',new E(_0x128499,_0xecc723,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x128499['commands']['add']('discardAllSuggestions',new E(_0x128499,_0x37d534,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x128499['commands']['add']('acceptSelectedSuggestions',new O(_0x128499,_0xecc723,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x128499['commands']['add']('discardSelectedSuggestions',new O(_0x128499,_0x37d534,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xdb61f8=_0x128499['plugins']['get']('CommentsRepository');this['listenTo'](_0xdb61f8,'addComment',(_0x3d9384,{threadId:_0x387edc})=>{const _0x2afeeb=this['_suggestions']['get'](_0x387edc);_0x2afeeb&&_0x2afeeb['commentThread']&&0x1===_0x2afeeb['commentThread']['length']&&this['_updateSuggestionData'](_0x387edc,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xdb61f8,'removeComment',(_0x4210bd,{threadId:_0x3ff4e9})=>{const _0x48ecb2=this['_suggestions']['get'](_0x3ff4e9);_0x48ecb2&&_0x48ecb2['commentThread']&&!_0x48ecb2['commentThread']['length']&&this['_updateSuggestionData'](_0x3ff4e9,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x54148d){if(this['_adapter'])throw new _0x51bc83('track-changes-adapter-already-set',this);this['_adapter']=_0x54148d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x15e5f4=!0x1,toJSON:_0x3a9535=!0x1}={}){const _0x51637f=[];for(const _0x2d5e53 of this['_suggestions']['values']())_0x15e5f4&&!_0x2d5e53['isInContent']||_0x51637f['push'](_0x2d5e53);return _0x3a9535?_0x51637f['map'](_0x32a3db=>_0x32a3db['toJSON']()):_0x51637f;}['getSuggestion'](_0x2c7256){const _0x1ab8a4=this['_suggestions']['get'](_0x2c7256);if(!_0x1ab8a4)throw new _0x51bc83('track-changes-suggestion-not-found',this);return _0x1ab8a4;}['hasSuggestion'](_0x2b4e54){return this['_suggestions']['has'](_0x2b4e54);}['addSuggestionData'](_0xc79276){const {authorId:_0x442dfc,id:_0xf2e46f,attributes:_0x3aab27}=_0xc79276,[_0x5f50ce,_0x231d40]=_0xc79276['type']['split'](':'),_0x2a207c=this['_suggestions']['get'](_0xf2e46f)||this['_createSuggestion'](_0x5f50ce,_0x231d40,_0xf2e46f,_0x442dfc,_0x3aab27);if(this['_addThreadToSuggestion'](_0x2a207c),this['_checkSuggestionCorrectness'](_0x2a207c,_0x5f50ce,_0x231d40||null,_0x442dfc),_0x2a207c['createdAt']=_0xc79276['createdAt'],_0x2a207c['_isDataLoaded']=!0x0,_0x3aab27&&_0x3aab27['@external']){const _0x5665d7=_0x3aab27['@external'],_0x3c7093=this['_getExternalAuthor'](_0x5665d7['authorName']);_0x2a207c['authoredAt']=_0x5665d7['createdAt'],_0x2a207c['author']=_0x3c7093,_0x2a207c['isExternal']=!0x0;}else _0x2a207c['authoredAt']=_0xc79276['createdAt'];switch(_0xc79276['data']&&(_0x2a207c['data']=_0xc79276['data']),_0xc79276['attributes']&&(_0x2a207c['attributes']=_0xc79276['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2a207c['_saved']=!0x0),this['_suggestionState']['get'](_0x2a207c)){case'notReady':this['_suggestionState']['set'](_0x2a207c,'dataReady');break;case'markerReady':_0x2a207c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2a207c])),this['_refreshSuggestionsChain'](new Set([_0x2a207c])),this['_suggestionState']['set'](_0x2a207c,'ready'),this['fire']('suggestionLoaded',_0x2a207c)):this['_suggestionState']['set'](_0x2a207c,'removed');}return _0x2a207c;}['acceptSuggestion'](_0x3ba4a4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3c3c9f of _0x3ba4a4['getAllAdjacentSuggestions']())_0x3c3c9f['accept']();});});}['discardSuggestion'](_0x3dd361){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5018b8 of _0x3dd361['getAllAdjacentSuggestions']())_0x5018b8['discard']();});});}['enableCommand'](_0x19f476,_0x40a223){const _0x3f601f=this['editor']['commands']['get'](_0x19f476);if(!_0x3f601f)throw new _0x51bc83('track-changes-command-not-found',this,{'commandName':_0x19f476});if(this['_enabledCommands']['has'](_0x3f601f))throw new _0x51bc83('track-changes-enable-command-twice',this,{'commandName':_0x19f476});this['_enabledCommands']['add'](_0x3f601f),_0x40a223&&_0x3f601f['on']('execute',(_0x1b6353,_0x5657ef)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5657ef['length']>0x0&&_0x5657ef[_0x5657ef['length']-0x1]&&_0x5657ef[_0x5657ef['length']-0x1]['forceDefaultExecution']?_0x5657ef['pop']():(_0x1b6353['return']=_0x40a223((..._0x224b1e)=>_0x3f601f['execute'](..._0x224b1e,{'forceDefaultExecution':!0x0}),..._0x5657ef),_0x1b6353['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4e5a06){let _0x32248d,_0x2b4110;const _0x24e5d5=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x32248d=_0x4e5a06();}catch(_0x5d6ca0){_0x2b4110=_0x5d6ca0;}return _0x24e5d5||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2b4110&&_0x51bc83['rethrowUnexpectedError'](_0x2b4110,this),_0x32248d;}['markInsertion'](_0xdc3ccc,_0x1c8760=null,_0x47c625={}){if(_0xdc3ccc['isCollapsed'])return null;const _0x3a0798=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5cf97d,meta:_0x419a29}of this['_findSuggestions'](_0xdc3ccc,'insertion'))if(_0x419a29['isOwn']){if(!_0x419a29['isNextTo']){if(_0x419a29['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x5cf97d,_0x47c625))continue;return _0x5cf97d;}if(qt(_0x5cf97d,_0x47c625))return _0x5cf97d;this['_breakSuggestionMarker'](_0x5cf97d,_0xdc3ccc['start'],_0xdc3ccc['end']);break;}if(_0x1c8760==_0x5cf97d['subType']&&qt(_0x5cf97d,_0x47c625)){const _0x580a62=_0x5cf97d['getFirstRange']();return _0x580a62['start']['isEqual'](_0xdc3ccc['end'])?this['_setSuggestionRange'](_0x5cf97d,this['_model']['createRange'](_0xdc3ccc['start'],_0x580a62['end'])):this['_setSuggestionRange'](_0x5cf97d,this['_model']['createRange'](_0x580a62['start'],_0xdc3ccc['end'])),_0x5cf97d;}}const _0x4ca07d=_0x3620ad(),_0x17db84=_0x3a0798['id'],_0x22ca05=_0x1c8760?'insertion:'+_0x1c8760:'insertion',_0x2a8c1b=this['_setSuggestionData']({'id':_0x4ca07d,'type':_0x22ca05,'createdAt':new Date(),'authorId':_0x17db84,'attributes':_0x47c625});return this['_addSuggestionMarker'](_0x22ca05,_0x4ca07d,_0x17db84,_0xdc3ccc),_0x2a8c1b;}['markMultiRangeInsertion'](_0x27650d,_0x54ed06='multi',_0x3e95ab={}){const _0x34b583=this['editor']['plugins']['get']('Users')['me'],_0x1c6460=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x54ed06,'join');for(const _0xc6ee22 of this['getSuggestions']())if(_0xc6ee22['author']['id']==_0x34b583['id']&&'insertion'==_0xc6ee22['type']&&_0xc6ee22['subType']==_0x54ed06&&qt(_0xc6ee22,_0x3e95ab)&&(_0x1c6460(_0xc6ee22['getRanges'](),_0x27650d)||_0x1c6460(_0x27650d,_0xc6ee22['getRanges']()))){for(const _0x376eab of _0x27650d)_0xc6ee22['addRange'](_0x376eab);return _0xc6ee22;}for(const {suggestion:_0x4e9578,meta:_0x1277ce}of this['_findSuggestions'](_0x27650d,'insertion')){if(!_0x1277ce['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1277ce['containsRangeInObject'])continue;if(!qt(_0x4e9578,_0x3e95ab))continue;let _0x475c7b=!0x0;for(const _0x5f4d6b of _0x4e9578['getRanges']())for(const _0x33d63c of _0x27650d)if(!_0x5f4d6b['containsRange'](_0x33d63c)){_0x475c7b=!0x1;break;}if(_0x475c7b)return _0x4e9578;}const _0x317ce1=_0x3620ad(),_0x26954e=_0x34b583['id'],_0x1ccf06='insertion:'+_0x54ed06,_0x12a8dd=this['_setSuggestionData']({'id':_0x317ce1,'type':_0x1ccf06,'createdAt':new Date(),'authorId':_0x26954e,'attributes':_0x3e95ab});for(const _0x1946cd of _0x27650d)this['_addSuggestionMarker'](_0x1ccf06,_0x317ce1,_0x26954e,_0x1946cd,u['getMultiRangeId']());return _0x12a8dd;}['markInlineFormat'](_0x44f071,_0x5766c7,_0x135506=null,_0x5ef4ba={}){if(_0x135506=_0x135506||Gt(_0x5766c7),_0x44f071['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2153f1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x135506,'accept');return this['forceDefaultExecution'](()=>_0x2153f1([_0x44f071],_0x5766c7,_0x5ef4ba)),null;}const _0x5522c1=this['editor']['plugins']['get']('Users')['me'],_0x1ea8df=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2ea274,meta:_0x1829c9}of this['_findSuggestions'](_0x44f071,'insertion'))_0x1829c9['isOwn']&&!_0x1829c9['isInsideObject']&&_0x1ea8df['push'](..._0x2ea274['getRanges']());}const _0x40fcfd=function(_0x442615,_0x18ed12){const _0x4ec544=[];for(const _0x2401d1 of _0x18ed12){const _0x23d8f5=_0x442615['getIntersection'](_0x2401d1);_0x23d8f5&&_0x4ec544['push'](_0x23d8f5);}return _0x4ec544;}(_0x44f071,_0x1ea8df),_0x50c5e9=function(_0x42089a,_0x4baa23){const _0x3fc9a3=[_0x42089a];for(const _0x5d7c39 of _0x4baa23){let _0x4a8200=0x0;for(;_0x4a8200<_0x3fc9a3['length'];){const _0x144867=_0x3fc9a3[_0x4a8200]['getDifference'](_0x5d7c39);_0x3fc9a3['splice'](_0x4a8200,0x1,..._0x144867),_0x4a8200+=_0x144867['length'];}}return _0x3fc9a3;}(_0x44f071,_0x1ea8df);_0x40fcfd['length']&&this['_model']['change'](()=>{for(const _0x491cd6 of _0x40fcfd){const _0x2bc95f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x135506,'accept');this['forceDefaultExecution'](()=>_0x2bc95f([_0x491cd6],_0x5766c7,_0x5ef4ba));}});for(const _0xf8b7b9 of _0x50c5e9){let _0x2cecdc=null,_0x5347b5=_0xf8b7b9['start'],_0x314214=_0xf8b7b9['end'];for(const {suggestion:_0x154811,meta:_0x4df1f4}of this['_findSuggestions'](_0xf8b7b9,'formatInline')){if(!_0x4df1f4['isOwn'])continue;if(_0x154811['subType']!=_0x135506)continue;if(!qt(_0x154811,_0x5ef4ba))continue;const _0x43b03f=_0x154811['getFirstRange']();if(_0x43b03f['containsRange'](_0xf8b7b9,!0x0))return null;_0x5347b5=_0x5347b5['isBefore'](_0x43b03f['start'])?_0x5347b5:_0x43b03f['start'],_0x314214=_0x314214['isAfter'](_0x43b03f['end'])?_0x314214:_0x43b03f['end'],_0x2cecdc?_0x43b03f['start']['isBefore'](_0x2cecdc['getFirstRange']()['start'])?(_0x2cecdc['removeMarkers'](),_0x2cecdc=_0x154811):_0x154811['removeMarkers']():_0x2cecdc=_0x154811;}const _0x2d519b=this['_model']['createRange'](_0x5347b5,_0x314214);if(_0x2cecdc)this['_setSuggestionRange'](_0x2cecdc,_0x2d519b);else{const _0xc32504=_0x3620ad(),_0x3c5162=_0x5522c1['id'];this['_setSuggestionData']({'id':_0xc32504,'type':'formatInline:'+_0x135506,'data':_0x5766c7,'createdAt':new Date(),'authorId':_0x3c5162,'attributes':_0x5ef4ba}),this['_addSuggestionMarker']('formatInline:'+_0x135506,_0xc32504,_0x3c5162,_0x2d519b);}}return null;}['markBlockFormat'](_0x9d8b22,_0x52efc4,_0x3f9e50=[],_0x1eaeef=null,_0x3c9a4e={}){_0x52efc4['formatGroupId']||(_0x52efc4['formatGroupId']=_0x52efc4['commandName']),_0x52efc4['multipleBlocks']=_0x9d8b22['is']('range'),_0x1eaeef=_0x1eaeef||Gt(_0x52efc4);const _0xcf98fa=_0x3f9e50['map'](_0x298561=>Lt(_0x298561,this['_model'])),_0x34b3eb=_0x9d8b22['is']('range')?_0x9d8b22:Lt(_0x9d8b22,this['_model']);if('never'===this['_trackFormatChanges']){const _0x54853d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1eaeef,'accept');return this['forceDefaultExecution'](()=>_0x54853d([_0x34b3eb],_0x52efc4,_0x3c9a4e)),null;}_0xcf98fa['push'](_0x34b3eb);let _0x3e0186=!0x0;for(const _0x853671 of _0xcf98fa)if(!this['_rangeIsInLocalUserInsertion'](_0x853671)){_0x3e0186=!0x1;break;}if(_0x3e0186&&'always'!==this['_trackFormatChanges']){const _0x47e5b3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1eaeef,'accept');return this['forceDefaultExecution'](()=>_0x47e5b3([_0x34b3eb],_0x52efc4,_0x3c9a4e)),null;}let _0x4fef0d=null,_0x58f5a2=_0x34b3eb['start'],_0x4830d2=_0x34b3eb['end'];for(const {suggestion:_0x4ef67b,meta:_0xdbedbf}of this['_findSuggestions'](_0x34b3eb,'formatBlock')){if(!_0xdbedbf['isOwn'])continue;if(_0xdbedbf['isNextTo']||_0xdbedbf['containsRangeInObject']||_0xdbedbf['isInsideObject'])continue;if(_0x4ef67b['data']['formatGroupId']!=_0x52efc4['formatGroupId'])continue;if(!qt(_0x4ef67b,_0x3c9a4e))continue;const _0x5219ec=_0x4ef67b['getFirstRange']();if(_0x4ef67b['subType']==_0x1eaeef){if(_0x5219ec['containsRange'](_0x34b3eb,!0x0))return null;_0x58f5a2=_0x58f5a2['isBefore'](_0x5219ec['start'])?_0x58f5a2:_0x5219ec['start'],_0x4830d2=_0x4830d2['isAfter'](_0x5219ec['end'])?_0x4830d2:_0x5219ec['end'],_0x4fef0d?_0x5219ec['start']['isBefore'](_0x4fef0d['getFirstRange']()['start'])?(_0x4fef0d['removeMarkers'](),_0x4fef0d=_0x4ef67b):_0x4ef67b['removeMarkers']():_0x4fef0d=_0x4ef67b;}else{const _0x5225de=_0x34b3eb['getIntersection'](_0x5219ec);this['_cutOutSuggestionMarker'](_0x4ef67b,_0x5225de);}}const _0x202ac5=this['editor']['plugins']['get']('Users')['me'],_0x404eff=_0x3620ad(),_0x3f2cde=_0x202ac5['id'];if(_0x4fef0d)return this['_setSuggestionRange'](_0x4fef0d,this['_model']['createRange'](_0x58f5a2,_0x4830d2)),_0x4fef0d;{const _0x3a5e1=this['_setSuggestionData']({'id':_0x404eff,'type':'formatBlock:'+_0x1eaeef,'data':_0x52efc4,'createdAt':new Date(),'authorId':_0x3f2cde,'attributes':_0x3c9a4e});return this['_addSuggestionMarker']('formatBlock:'+_0x1eaeef,_0x404eff,_0x3f2cde,this['_model']['createRange'](_0x58f5a2,_0x4830d2)),_0x3a5e1;}}['markMultiRangeBlockFormat'](_0x413f2d,_0x1ec71b,_0x8da527=[],_0x265f4a=null,_0x418375={}){_0x1ec71b['formatGroupId']||(_0x1ec71b['formatGroupId']=_0x1ec71b['commandName']);const _0x41cdf8=_0x413f2d[0x0];_0x1ec71b['multipleBlocks']=_0x41cdf8['is']('range'),_0x265f4a=_0x265f4a||Gt(_0x1ec71b);const _0x2f0f4b=_0x8da527['map'](_0x36c85b=>Lt(_0x36c85b,this['_model'])),_0x26f472=_0x41cdf8['is']('range')?_0x413f2d:_0x413f2d['map'](_0x3cf927=>Lt(_0x3cf927,this['_model']));if('never'===this['_trackFormatChanges']){const _0x503652=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x265f4a,'accept');return this['forceDefaultExecution'](()=>_0x503652(_0x26f472,_0x1ec71b,_0x418375)),null;}_0x2f0f4b['push'](..._0x26f472);let _0x2fd47f=!0x0;for(const _0x20a262 of _0x2f0f4b)if(!this['_rangeIsInLocalUserInsertion'](_0x20a262)){_0x2fd47f=!0x1;break;}if(_0x2fd47f&&'always'!==this['_trackFormatChanges']){const _0x2d20c2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x265f4a,'accept');return this['forceDefaultExecution'](()=>_0x2d20c2(_0x26f472,_0x1ec71b,_0x418375)),null;}const _0x458f68=this['editor']['plugins']['get']('Users')['me'];for(const _0x7953e3 of this['getSuggestions']()){if(_0x7953e3['author']['id']!=_0x458f68['id'])continue;if('formatBlock'!=_0x7953e3['type']||_0x7953e3['data']['formatGroupId']!=_0x1ec71b['formatGroupId'])continue;if(!qt(_0x7953e3,_0x418375))continue;const _0x113990=_0x7953e3['subType']==_0x265f4a;for(let _0x248f73=0x0;_0x248f73<_0x26f472['length'];_0x248f73++){const _0x53195f=_0x26f472[_0x248f73];for(const _0x818447 of _0x7953e3['getMarkers']()){const _0x24cce0=_0x818447['getRange']();if(_0x53195f['isEqual'](_0x24cce0)){_0x113990?(_0x26f472['splice'](_0x248f73,0x1),_0x248f73--):_0x7953e3['removeMarker'](_0x818447['name']);break;}}}}if(0x0==_0x26f472['length'])return null;const _0x22ffb6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x265f4a,'join');for(const _0x3e462e of this['getSuggestions']())if(_0x3e462e['author']['id']==_0x458f68['id']&&'formatBlock'==_0x3e462e['type']&&_0x3e462e['data']['formatGroupId']==_0x1ec71b['formatGroupId']&&_0x3e462e['subType']==_0x265f4a&&qt(_0x3e462e,_0x418375)&&(_0x22ffb6(_0x3e462e['getRanges'](),_0x26f472)||_0x22ffb6(_0x26f472,_0x3e462e['getRanges']()))){for(const _0x1b6577 of _0x26f472)_0x3e462e['addRange'](_0x1b6577);return _0x3e462e;}const _0x2afa08=_0x3620ad(),_0x482274=_0x458f68['id'],_0x480314='formatBlock:'+_0x265f4a,_0x354b05=this['_setSuggestionData']({'id':_0x2afa08,'type':_0x480314,'data':_0x1ec71b,'createdAt':new Date(),'authorId':_0x482274,'attributes':_0x418375});for(const _0x25f0a2 of _0x26f472)this['_addSuggestionMarker'](_0x480314,_0x2afa08,_0x482274,_0x25f0a2,u['getMultiRangeId']());return _0x354b05;}['markDeletion'](_0x3c5e09,_0x2e1774=null,_0x26a294={}){if(_0x3c5e09['isCollapsed'])return null;const _0x5ba273=this['editor']['plugins']['get']('Users')['me'],_0x534a32=new _0xfd736c(_0x3c5e09['start'],_0x3c5e09['end']);for(const {suggestion:_0x156ce1,meta:_0x250c15}of this['_findSuggestions'](_0x534a32,'insertion'))if(_0x250c15['isOwn']&&!_0x250c15['isNextTo']){if(_0x156ce1['isMultiRange']){const _0x17e5ee=_0x156ce1['getRanges']()['filter'](_0x5172fd=>'$graveyard'!=_0x5172fd['root']['rootName']);_0x17e5ee['every'](_0x11a097=>_0x534a32['containsRange'](_0x11a097,!0x0))&&_0x156ce1['discard']();if(_0x17e5ee['some'](_0x1a5d9f=>_0x1a5d9f['containsRange'](_0x534a32,!0x0))){const _0x54b8d7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2e1774,'accept');return this['forceDefaultExecution'](()=>_0x54b8d7([_0x534a32],null,_0x26a294)),null;}}else{const _0xf268fe=_0x534a32['getIntersection'](_0x156ce1['getFirstRange']());null!==_0xf268fe&&_0x156ce1['_onDiscard']([_0xf268fe],null,_0x26a294);}}if(_0x534a32['detach'](),_0x534a32['isCollapsed']||'$graveyard'==_0x534a32['root']['rootName'])return null;let _0x35f2c0=null,_0x295692=_0x534a32['start'],_0x3e083e=_0x534a32['end'];const _0x341bf5=this['_findSuggestions'](_0x534a32,'deletion');for(const {suggestion:_0x2d49e3,meta:_0x3db098}of _0x341bf5){const _0x3c300e=this['_model']['createRange'](_0x295692,_0x3e083e);if(_0x3db098['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3db098['containsRangeInObject']&&!_0x3db098['isInsideObject'])){if(_0x2d49e3['isMultiRange']){if(!qt(_0x2d49e3,_0x26a294))continue;let _0x121f3d=!0x0;for(const _0x24b90f of _0x2d49e3['getRanges']()){if(_0x24b90f['containsRange'](_0x3c300e,!0x0))return _0x2d49e3;_0x3c300e['containsRange'](_0x24b90f)||(_0x121f3d=!0x1);}_0x121f3d&&_0x2d49e3['discard']();}else{const _0x747071=_0x2d49e3['getFirstRange']();if(_0x747071['containsRange'](_0x3c300e,!0x0))return _0x2d49e3;if(!qt(_0x2d49e3,_0x26a294)){_0x3c300e['containsRange'](_0x747071)?_0x2d49e3['removeMarkers']():_0x747071['containsPosition'](_0x295692)?_0x295692=_0x747071['end']:_0x747071['containsPosition'](_0x3e083e)&&(_0x3e083e=_0x747071['start']);continue;}_0x295692=_0x295692['isBefore'](_0x747071['start'])?_0x295692:_0x747071['start'],_0x3e083e=_0x3e083e['isAfter'](_0x747071['end'])?_0x3e083e:_0x747071['end'],_0x26a294=Object['assign']({},_0x2d49e3['attributes']),_0x35f2c0?_0x747071['start']['isBefore'](_0x35f2c0['getFirstRange']()['start'])?(_0x35f2c0['removeMarkers'](),_0x35f2c0=_0x2d49e3):_0x2d49e3['removeMarkers']():_0x35f2c0=_0x2d49e3;}}}if(_0x35f2c0)return this['_setSuggestionRange'](_0x35f2c0,this['_model']['createRange'](_0x295692,_0x3e083e)),_0x35f2c0;{const _0x43d157=_0x3620ad(),_0x5d9ae4=this['_model']['createRange'](_0x295692,_0x3e083e),_0x54a864=_0x5ba273['id'],_0x623666=_0x2e1774?'deletion:'+_0x2e1774:'deletion',_0x58c306=this['_setSuggestionData']({'id':_0x43d157,'type':_0x623666,'createdAt':new Date(),'authorId':_0x54a864,'attributes':_0x26a294});return this['_addSuggestionMarker'](_0x623666,_0x43d157,_0x54a864,_0x5d9ae4),_0x58c306;}}['markMultiRangeDeletion'](_0x3876d3,_0x1dd7e0='multi',_0x4bbfac={}){const _0x1481ea=this['editor']['plugins']['get']('Users')['me'],_0x110d83=_0x3876d3['map'](_0x26c685=>new _0xfd736c(_0x26c685['start'],_0x26c685['end'])),_0x1d3b26=new Set();for(const {suggestion:_0x362cdb,meta:_0x3cc902}of this['_findSuggestions'](_0x110d83,'insertion'))_0x3cc902['isOwn']&&!_0x3cc902['isNextTo']&&_0x1d3b26['add'](_0x362cdb);for(const _0x1ee764 of _0x1d3b26)if(_0x1ee764['isMultiRange']){const _0x50d5fc=_0x1ee764['getRanges']();(!_0x1ee764['attributes']||!_0x1ee764['attributes']['skipNestingCheck'])&&(_0x50d5fc['every'](_0x56a86f=>_0x110d83['some'](_0x5cfb9e=>_0x5cfb9e['containsRange'](_0x56a86f,!0x0)))&&_0x1ee764['discard']());if(_0x110d83['every'](_0x282397=>_0x50d5fc['some'](_0x48b68e=>_0x48b68e['containsRange'](_0x282397,!0x0)))){const _0x39433f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1dd7e0,'accept');return this['forceDefaultExecution'](()=>_0x39433f(_0x3876d3,null,_0x4bbfac)),null;}}else{const _0x2f3838=_0x1ee764['getFirstRange']();_0x110d83['some'](_0x4c498d=>_0x4c498d['containsRange'](_0x2f3838,!0x0))&&_0x1ee764['discard']();if(_0x110d83['every'](_0x2dd385=>_0x2f3838['containsRange'](_0x2dd385,!0x0))){const _0x58f4d9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1dd7e0,'accept');return this['forceDefaultExecution'](()=>_0x58f4d9(_0x110d83,null,_0x4bbfac)),null;}}const _0x3912=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1dd7e0,'join');let _0x5f4793=null;for(const _0x23c0e6 of this['getSuggestions']())if(_0x23c0e6['author']['id']==_0x1481ea['id']&&_0x23c0e6['isInContent']&&'deletion'==_0x23c0e6['type']&&_0x23c0e6['subType']==_0x1dd7e0&&qt(_0x23c0e6,_0x4bbfac)&&(_0x3912(_0x23c0e6['getRanges'](),_0x110d83)||_0x3912(_0x110d83,_0x23c0e6['getRanges']()))){if(_0x5f4793){if(_0x23c0e6['commentThread']&&_0x23c0e6['commentThread']['length'])continue;for(const _0x1635a1 of _0x23c0e6['getRanges']())_0x5f4793['isIntersectingWithRange'](_0x1635a1)||_0x5f4793['addRange'](_0x1635a1);_0x23c0e6['removeMarkers']();}else{_0x5f4793=_0x23c0e6;for(const _0x41709a of _0x110d83)_0x23c0e6['isIntersectingWithRange'](_0x41709a)||_0x23c0e6['addRange'](_0x41709a);}}if(_0x5f4793)return _0x5f4793;_0x1d3b26['clear']();for(const {suggestion:_0x48f239,meta:_0x24d440}of this['_findSuggestions'](_0x110d83,'deletion'))_0x24d440['isOwn']&&(this['_mergeNestedSuggestions']||!_0x24d440['containsRangeInObject']&&!_0x24d440['isInsideObject'])&&qt(_0x48f239,_0x4bbfac)&&_0x1d3b26['add'](_0x48f239);for(const _0x514db7 of _0x1d3b26){const _0x36708c=_0x514db7['getRanges']();if(!_0x4bbfac||!_0x4bbfac['skipNestingCheck']){if(_0x110d83['every'](_0x1ac4ed=>_0x36708c['some'](_0x3bc3da=>_0x3bc3da['containsRange'](_0x1ac4ed,!0x0))))return _0x514db7;}(!_0x514db7['attributes']||!_0x514db7['attributes']['skipNestingCheck'])&&(_0x36708c['every'](_0x9030fd=>_0x110d83['some'](_0x151df0=>_0x151df0['containsRange'](_0x9030fd,!0x0)))&&_0x514db7['discard']());}const _0x1d68c9=_0x3620ad(),_0x114444=_0x1481ea['id'],_0x15eca7='deletion:'+_0x1dd7e0,_0x4a9708=this['_setSuggestionData']({'id':_0x1d68c9,'type':_0x15eca7,'createdAt':new Date(),'authorId':_0x114444,'attributes':_0x4bbfac});for(const _0xa17915 of _0x110d83)_0xa17915['detach'](),_0xa17915['isCollapsed']||'$graveyard'==_0xa17915['root']['rootName']||this['_addSuggestionMarker'](_0x15eca7,_0x1d68c9,_0x114444,_0xa17915,u['getMultiRangeId']());return _0x4a9708;}['markAttributeChange'](_0x4d4539,_0x134f88,_0x28b85,_0x49348c,_0x30beb8){if(_0x4d4539['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x556dfd=this['editor']['plugins']['get']('Users')['me']['id'],_0x547c04=Array['from'](this['_suggestions']['values']())['filter'](_0x11cfd5=>'attribute'==_0x11cfd5['type']&&_0x11cfd5['data']['key']==_0x134f88&&_0x11cfd5['isIntersectingWithRange'](_0x4d4539));if('default'===this['_trackFormatChanges']){const _0x48a98b=this['_findSuggestions'](_0x4d4539,'insertion')['filter'](({meta:_0x47146b})=>_0x47146b['isOwn']&&!_0x47146b['isInsideObject']&&!_0x47146b['isNextTo'])['map'](({suggestion:_0x28a230})=>_0x28a230);_0x547c04['unshift'](..._0x48a98b);}const _0x3e616c=new Map([[_0x4d4539,_0x28b85]]);for(const _0x538804 of _0x547c04){const _0x31ba30='attribute'==_0x538804['type']?_0x538804['data']['oldValue']:void 0x0,_0x388ce3=_0x538804['getFirstRange'](),_0x30c427=Array['from'](_0x3e616c['keys']())['find'](_0x108e9a=>_0x108e9a['isIntersecting'](_0x388ce3));if(!_0x30c427)continue;const _0x991517=_0x30c427['getDifference'](_0x388ce3);this['_isBlockAttribute'](_0x134f88)&&'insertion'==_0x538804['type']&&0x0!=_0x991517['length']||(_0x3e616c['delete'](_0x30c427),_0x991517['forEach'](_0x2e92a9=>{_0x3e616c['set'](_0x2e92a9,_0x28b85);}),'insertion'!=_0x538804['type']&&_0x31ba30!=_0x49348c&&_0x3e616c['set'](_0x30c427['getIntersection'](_0x388ce3),_0x31ba30));}const _0x5c85da=[];for(const [_0x1cceef,_0x424927]of _0x3e616c){const _0x48cd71=_0x3620ad(),_0x561411={'key':_0x134f88,'oldValue':_0x424927,'newValue':_0x49348c};_0x134f88['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':_0x134f88});const _0x2b0796=('attribute:'+(_0x134f88+'|'+Gt({'newValue':_0x49348c})))['substring'](0x0,0x3c),_0x124139=this['_setSuggestionData']({'id':_0x48cd71,'type':_0x2b0796,'data':_0x561411,'createdAt':new Date(),'authorId':_0x556dfd,'attributes':_0x30beb8});_0x5c85da['push'](_0x124139),this['_addSuggestionMarker'](_0x2b0796,_0x48cd71,_0x556dfd,_0x1cceef);}return _0x5c85da;}['enableDefaultAttributesIntegration'](_0x23adb1){this['enableCommand'](_0x23adb1,(_0xe37f9c,..._0x3f1598)=>{this['_recordAttributeChanges'](()=>{_0xe37f9c(..._0x3f1598);});});}['registerBlockAttribute'](_0x137670){this['_blockAttributeKeys']['add'](_0x137670);}['registerInlineAttribute'](_0x49d8e2){this['_inlineAttributeKeys']['add'](_0x49d8e2);}['_getAttributeKey'](_0x169b1a){return'attribute'==_0x169b1a['type']?_0x169b1a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3e0541,_0x590e62){const _0x5effe1=_0x3e0541['getFirstMarker']();this['_model']['change'](_0x3e6459=>{_0x3e6459['updateMarker'](_0x5effe1,{'range':_0x590e62});});}['_addThreadToSuggestion'](_0x8d1544){const _0x15a395=_0x8d1544['id'],_0x2c6b75=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x15a395)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2c6b75,'threadId':_0x15a395,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1cec84=this['_commentsRepository']['getCommentThread'](_0x15a395);_0x1cec84['unbind']('isRemovable'),_0x1cec84['isRemovable']=!0x1,_0x8d1544['commentThread']=_0x1cec84;}['_checkSuggestionCorrectness'](_0x42ca21,_0x2a15dc,_0xfd40f7,_0x535c4e){if(_0x42ca21['type']!=_0x2a15dc||_0x42ca21['subType']!=_0xfd40f7||_0x42ca21['creator']['id']!=_0x535c4e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x51bc83('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x55bc78,_0x38f7f7){const _0x10aacb=_0x55bc78['getFirstRange']();if(_0x38f7f7['isEqual'](_0x10aacb))_0x55bc78['removeMarkers']();else{if(_0x10aacb['containsRange'](_0x38f7f7)){const _0x1d44e8=this['_model']['createPositionAt'](_0x38f7f7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x55bc78,this['_model']['createRange'](_0x10aacb['start'],_0x1d44e8));const _0x132b08=_0x3620ad(),_0x6e1d51=_0x55bc78['creator']['id'],_0x331d0a=_0x55bc78['type']+':'+_0x55bc78['subType'];this['_setSuggestionData']({'id':_0x132b08,'type':_0x331d0a,'createdAt':new Date(),'authorId':_0x6e1d51,'data':_0x55bc78['data'],'attributes':_0x55bc78['attributes']});const _0x467500=this['_model']['createPositionAt'](_0x38f7f7['end']['parent'],'after'),_0x23312e=this['_model']['createRange'](_0x467500,_0x10aacb['end']);this['_addSuggestionMarker'](_0x331d0a,_0x132b08,_0x6e1d51,_0x23312e);}else{if(_0x10aacb['containsPosition'](_0x38f7f7['start'])){const _0xb0e7f7=this['_model']['createPositionAt'](_0x38f7f7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x55bc78,this['_model']['createRange'](_0x10aacb['start'],_0xb0e7f7));}else{const _0x1c3a8d=this['_model']['createPositionAt'](_0x38f7f7['end']['parent'],'after');this['_setSuggestionRange'](_0x55bc78,this['_model']['createRange'](_0x1c3a8d,_0x10aacb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3e7ecb){for(const {suggestion:_0x1da85f,meta:_0x5efbf5}of this['_findSuggestions'](_0x3e7ecb,'insertion')){if(!_0x5efbf5['isOwn'])continue;const _0x3ad384=_0x1da85f['getRanges']();for(const _0x49fa58 of _0x3ad384)if(!_0x3e7ecb['getDifference'](_0x49fa58)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x34bcc6){const _0x1924a3=this['editor']['plugins']['get']('Users')['getUser'](_0x34bcc6);if(!_0x1924a3)throw new _0x51bc83('track-changes-user-not-found',this);return _0x1924a3;}['_getExternalAuthor'](_0x157d94){const _0x38ca21=this['editor']['plugins']['get']('Users'),_0x4c74ea=_0x3fb96b('external:'+_0x157d94),_0x233004=_0x38ca21['getUser'](_0x4c74ea);return _0x233004||_0x38ca21['addUser']({'id':_0x4c74ea,'name':_0x157d94});}['_createSuggestion'](_0x311103,_0x3e1bd2,_0x425579,_0x433057,_0xc3e0cd){const _0x51e785=this['_getAuthorFromId'](_0x433057),_0x150e6a=this['_suggestionFactory']['buildSuggestion'](_0x311103,_0x3e1bd2,_0x425579,_0x51e785,_0xc3e0cd,_0x4df5b3=>{this['_updateSuggestionData'](_0x425579,{'attributes':_0x4df5b3});const _0x5de51a=this['getSuggestion'](_0x425579);this['_joinWithAdjacentSuggestions'](new Set([_0x5de51a])),this['_refreshSuggestionsChain'](new Set([_0x5de51a]));});return this['listenTo'](_0x150e6a,'accept',()=>{this['_updateSuggestionData'](_0x425579,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x150e6a,'discard',()=>{this['_updateSuggestionData'](_0x425579,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x425579,_0x150e6a),this['_suggestionState']['set'](_0x150e6a,'notReady'),_0x150e6a;}['_splitMarkerName'](_0x5b6798){const _0x13d561=_0x5b6798['split'](':');return{'group':_0x13d561[0x0],'type':_0x13d561[0x1],'subType':_0x13d561['length']>=0x5?_0x13d561[0x2]:null,'id':_0x13d561['length']<0x5?_0x13d561[0x2]:_0x13d561[0x3],'authorId':_0x13d561['length']<0x5?_0x13d561[0x3]:_0x13d561[0x4],'markerCount':0x6==_0x13d561['length']?_0x13d561[0x5]:null};}['_breakSuggestionMarker'](_0x31198a,_0x4ce38c,_0x510f3e){const _0x15f2fe=_0x31198a['getFirstRange'](),_0x925f98=_0x15f2fe['start'],_0x4cb2fe=_0x15f2fe['end'];this['_setSuggestionRange'](_0x31198a,this['_model']['createRange'](_0x925f98,_0x4ce38c));const _0x5b3fb4=_0x3620ad(),_0x29e3a8=_0x31198a['creator']['id'],_0x57dc43=_0x31198a['type']+(_0x31198a['subType']?':'+_0x31198a['subType']:'');this['_setSuggestionData']({'id':_0x5b3fb4,'type':_0x57dc43,'createdAt':new Date(),'authorId':_0x29e3a8,'originalSuggestionId':_0x31198a['id'],'attributes':_0x31198a['attributes'],'data':_0x31198a['data']});const _0x552d99=this['_getAttributeKey'](_0x31198a);('formatBlock'==_0x31198a['type']||_0x552d99&&this['_isBlockAttribute'](_0x552d99))&&(_0x510f3e=this['_model']['createPositionBefore'](_0x510f3e['parent'])),this['_addSuggestionMarker'](_0x57dc43,_0x5b3fb4,_0x29e3a8,this['_model']['createRange'](_0x510f3e,_0x4cb2fe));}['_findSuggestions'](_0x1de6c4,_0x33db9c=null){const _0x1c9eba=[],_0xdbcf2a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1de6c4)||(_0x1de6c4=[_0x1de6c4]);for(const _0x7e5717 of this['getSuggestions']()){if(!_0x7e5717['isInContent'])continue;if(_0x33db9c&&_0x7e5717['type']!=_0x33db9c)continue;let _0x283ced=!0x1;for(const _0x5085ca of _0x7e5717['getRanges']()){for(const _0x2f2bb4 of _0x1de6c4){const _0x386a8d=_0x2f2bb4['start']['isEqual'](_0x5085ca['end'])||_0x2f2bb4['end']['isEqual'](_0x5085ca['start']);if(_0x386a8d||_0x2f2bb4['getIntersection'](_0x5085ca)){const _0x31393a=_0x2f2bb4['containsRange'](_0x5085ca)&&Ot(this['_model']['schema'],_0x5085ca['start'],_0x2f2bb4),_0x465e3c=_0x5085ca['containsRange'](_0x2f2bb4)&&Ot(this['_model']['schema'],_0x2f2bb4['start'],_0x5085ca);_0x1c9eba['push']({'suggestion':_0x7e5717,'meta':{'isOwn':_0xdbcf2a==_0x7e5717['author'],'isNextTo':_0x386a8d,'isInsideObject':_0x31393a,'containsRangeInObject':_0x465e3c}}),_0x283ced=!0x0;break;}}if(_0x283ced)break;}}return _0x1c9eba;}['_addSuggestionMarker'](_0x1f4203,_0x4d1a53,_0x21d787,_0x164562,_0x53fd9f){this['_model']['change'](_0x5e518d=>{let _0x1e6586='suggestion:'+_0x1f4203+':'+_0x4d1a53+':'+_0x21d787;_0x53fd9f&&(_0x1e6586=_0x1e6586+':'+_0x53fd9f),_0x5e518d['addMarker'](_0x1e6586,{'range':_0x164562,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x528f03){const _0x4e3d93=_0x528f03['previous'],_0x5917f0=_0x528f03['next'];_0x528f03['previous']=null,_0x528f03['next']=null,null!=_0x4e3d93&&_0x4e3d93['next']==_0x528f03&&(_0x4e3d93['next']=_0x5917f0),null!=_0x5917f0&&_0x5917f0['previous']==_0x528f03&&(_0x5917f0['previous']=_0x4e3d93),'ready'==this['_suggestionState']['get'](_0x528f03)&&(this['_suggestionState']['set'](_0x528f03,'removed'),this['fire']('suggestionUnloaded',_0x528f03,_0x4e3d93,_0x5917f0));}['_setSuggestionData'](_0x5848ef){const _0x31b162=_0x5848ef['id'],_0x4748ab=this['addSuggestionData'](_0x5848ef);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x421b59=this['editor']['plugins']['get']('PendingActions'),_0x18d767=_0x4748ab['hasComments'],_0x466005=_0x4748ab['subType']?_0x4748ab['type']+':'+_0x4748ab['subType']:_0x4748ab['type'],_0x39f22a=this['editor']['locale'],_0x49d91e=_0x421b59['add'](o(_0x39f22a,'PENDING_ACTION_SUGGESTION')),_0x26e86f={'id':_0x31b162,'type':_0x466005,'hasComments':_0x18d767,'data':_0x5848ef['data']||null,'originalSuggestionId':_0x5848ef['originalSuggestionId']||null,'attributes':_0x4748ab['attributes']};this['_adapter']['addSuggestion'](_0x26e86f)['then'](_0x4ee887=>{_0x4748ab['_saved']=!0x0,_0x421b59['remove'](_0x49d91e),_0x4ee887&&_0x4ee887['createdAt']&&(this['_suggestions']['get'](_0x31b162)['createdAt']=_0x4ee887['createdAt']);})['catch'](_0x2de114=>{throw _0x316ce7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4748ab['discard']();}),_0x4748ab['stopListening'](),this['_suggestions']['delete'](_0x4748ab['id']),this['_suggestionState']['delete'](_0x4748ab),_0x2de114;});}return _0x4748ab;}['_isBlockAttribute'](_0x5779c6){return this['_blockAttributeKeys']['has'](_0x5779c6);}['_updateSuggestionData'](_0x532342,_0x4f50b3){const _0xa450e9=this['editor']['plugins']['get']('PendingActions'),_0x4b0efb=this['getSuggestion'](_0x532342);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4b0efb['_saved']){const _0x37c4ca=_0xa450e9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x532342,_0x4f50b3)['then'](()=>{_0xa450e9['remove'](_0x37c4ca);});}else _0x4b0efb['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x532342,_0x4f50b3);});}}['_getSuggestionData'](_0x13b66b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x51bc83('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x13b66b);}['_handleNewSuggestionMarker'](_0x2a6e8c){const {id:_0x234660,type:_0x20da52,subType:_0x26008a,authorId:_0x242815}=this['_splitMarkerName'](_0x2a6e8c),_0x2fa440=this['_suggestions']['get'](_0x234660)||this['_createSuggestion'](_0x20da52,_0x26008a,_0x234660,_0x242815,{});switch(this['_checkSuggestionCorrectness'](_0x2fa440,_0x20da52,_0x26008a,_0x242815),this['_suggestionState']['get'](_0x2fa440)){case'notReady':this['_getSuggestionData'](_0x234660)['then'](_0x466c53=>{let _0x351e5f=Promise['resolve']();_0x466c53['hasComments']&&(_0x351e5f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x234660})),_0x351e5f['then'](()=>{this['addSuggestionData'](_0x466c53)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2fa440,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x234660,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2fa440,'ready'),this['fire']('suggestionLoaded',_0x2fa440);break;case'ready':this['fire']('suggestionChanged',_0x2fa440);}return _0x2fa440['addMarkerName'](_0x2a6e8c),_0x2fa440;}['_refreshSuggestionsChain'](_0x2c46c1){const _0x14a89a=Array['from'](_0x2c46c1),_0x8f9333=_0x14a89a['filter'](_0x1fff6b=>'attribute'==_0x1fff6b['type']);this['_refreshAttributeSuggestionsChain'](_0x8f9333);const _0x42162e=_0x14a89a['filter'](_0x2a26a0=>!_0x2a26a0['isMultiRange']&&'attribute'!=_0x2a26a0['type']),_0xeee679=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d8a24=>!_0x5d8a24['isMultiRange']&&'attribute'!=_0x5d8a24['type']),_0x4f002c=_0xeee679['filter'](_0x4a9608=>!_0x2c46c1['has'](_0x4a9608)),_0x24e605=new Map(_0xeee679['map'](_0x14fc25=>[_0x14fc25,this['_suggestionFactory']['getSuggestionCallback'](_0x14fc25['type'],_0x14fc25['subType'],'chain')])),_0x21694d=new Map(_0xeee679['map'](_0x901d69=>[_0x901d69,_0x901d69['getFirstRange']()])),_0x484f34=new Set(),_0x4a389c=new Set();for(let _0x135d89=0x0;_0x135d89<_0x42162e['length'];_0x135d89++)_0xa0c4f6(_0x42162e[_0x135d89],_0x42162e,_0x135d89+0x1);for(let _0xc2c51b=0x0;_0xc2c51b<_0x42162e['length'];_0xc2c51b++)_0xa0c4f6(_0x42162e[_0xc2c51b],_0x4f002c,0x0);const _0x26d86e=new Set();for(let _0x322fbb=0x0;_0x322fbb<_0x42162e['length'];_0x322fbb++){const _0x4165f9=_0x42162e[_0x322fbb];!_0x4a389c['has'](_0x4165f9)&&_0x4165f9['previous']&&(_0x26d86e['add'](_0x4165f9['previous']),_0x4165f9['previous']['next']===_0x4165f9&&(_0x4165f9['previous']['next']=null),_0x4165f9['previous']=null),!_0x484f34['has'](_0x4165f9)&&_0x4165f9['next']&&(_0x26d86e['add'](_0x4165f9['next']),_0x4165f9['next']['previous']===_0x4165f9&&(_0x4165f9['next']['previous']=null),_0x4165f9['next']=null);}function _0xa0c4f6(_0x51d279,_0x342b16,_0x254a76){for(let _0x108d36=_0x254a76;_0x108d36<_0x342b16['length'];_0x108d36++){const _0x422d49=_0x396c09(_0x51d279,_0x342b16[_0x108d36]);_0x422d49&&(_0x422d49[0x0]['next']=_0x422d49[0x1],_0x422d49[0x1]['previous']=_0x422d49[0x0],_0x484f34['add'](_0x422d49[0x0]),_0x4a389c['add'](_0x422d49[0x1]));}}function _0x396c09(_0x127c10,_0x5387d7){if(_0x127c10['author']['id']!==_0x5387d7['author']['id'])return null;const _0x598be3=_0x24e605['get'](_0x127c10)(_0x127c10,_0x5387d7,_0x21694d['get'](_0x127c10),_0x21694d['get'](_0x5387d7));if(!_0x598be3)return null;return _0x24e605['get'](_0x5387d7)(_0x127c10,_0x5387d7,_0x21694d['get'](_0x127c10),_0x21694d['get'](_0x5387d7))?_0x598be3[0x1]['commentThread']&&_0x598be3[0x1]['commentThread']['length']?null:_0x598be3:null;}_0x26d86e['size']&&this['_refreshSuggestionsChain'](_0x26d86e);}['_refreshAttributeSuggestionsChain'](_0x19f0ce){if(0x0==_0x19f0ce['length'])return;const _0x331e37=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x599278=>'attribute'==_0x599278['type']&&_0x599278['_isDataLoaded']),_0x1e7cd8=[],_0x224c2d=new Map();for(const _0x81e792 of _0x331e37){const _0x3e744f=_0x3fb96b(_0x81e792['attributes']);_0x224c2d['has'](_0x3e744f)||(_0x224c2d['set'](_0x3e744f,_0x1e7cd8['length']),_0x1e7cd8['push']([]));const _0x5b2646=_0x224c2d['get'](_0x3e744f);_0x1e7cd8[_0x5b2646]['push'](_0x81e792);}!(function(){_0x1e7cd8['sort']((_0x43f3d3,_0x33c66e)=>{const _0x48ceba=_0x43f3d3[0x0]['createdAt'],_0x93b0d5=_0x33c66e[0x0]['createdAt'];return _0x48ceba==_0x93b0d5?_0x43f3d3[0x0]['attributes']['groupId']<_0x33c66e[0x0]['attributes']['groupId']?-0x1:0x1:_0x48ceba<_0x93b0d5?-0x1:0x1;});for(const _0xa8f352 of _0x1e7cd8)_0xa8f352['sort']((_0x55d2fa,_0x338b93)=>_0x55d2fa['id']<_0x338b93['id']?-0x1:0x1);}());for(let _0x186c6a=0x0;_0x186c6a<_0x1e7cd8['length'];_0x186c6a++){if(0x0==_0x1e7cd8[_0x186c6a]['length'])continue;const _0x21fead=[];for(let _0x15f546=_0x186c6a+0x1;_0x15f546<_0x1e7cd8['length'];_0x15f546++)0x0!=_0x1e7cd8[_0x15f546]['length']&&_0x6d398e(_0x1e7cd8[_0x186c6a],_0x1e7cd8[_0x15f546])&&_0x21fead['push'](_0x15f546);for(const _0x406822 of _0x21fead)_0x1e7cd8[_0x186c6a]=_0x1e7cd8[_0x186c6a]['concat'](_0x1e7cd8[_0x406822]),_0x1e7cd8[_0x406822]=[];}for(const _0x2f9b65 of _0x1e7cd8)for(let _0x56dc56=0x0;_0x56dc56<_0x2f9b65['length'];_0x56dc56++){const _0x124dcd=_0x2f9b65[_0x56dc56+0x1]||null;_0x2f9b65[_0x56dc56]['next']!==_0x124dcd&&(_0x2f9b65[_0x56dc56]['next']=_0x124dcd);}for(const _0x4d9325 of _0x1e7cd8)for(let _0x119c99=0x0;_0x119c99<_0x4d9325['length'];_0x119c99++){const _0x5d88ba=_0x4d9325[_0x119c99-0x1]||null;_0x4d9325[_0x119c99]['previous']!==_0x5d88ba&&(_0x4d9325[_0x119c99]['previous']=_0x5d88ba);}function _0x6d398e(_0x67d21b,_0x421419){if(_0x67d21b[0x0]['attributes']['groupId']!==_0x421419[0x0]['attributes']['groupId']&&_0x67d21b[0x0]['author']!==_0x421419[0x0]['author'])return!0x1;if(!function(_0x15bb13,_0x2d6196){if(!_0x15bb13['hasComments']&&!_0x2d6196['hasComments'])return!0x0;if(_0x15bb13['hasComments']&&_0x2d6196['hasComments'])return!0x1;if(_0x15bb13['hasComments']&&_0x2d6196['createdAt']<_0x15bb13['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2d6196['hasComments']&&_0x15bb13['createdAt']<_0x2d6196['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x67d21b[0x0],_0x421419[0x0]))return!0x1;const _0x1044aa=Tt(_0x67d21b[0x0]['attributes'],'groupId'),_0x5e8301=Tt(_0x421419[0x0]['attributes'],'groupId');if(!_0x2ec426(_0x1044aa,_0x5e8301))return!0x1;return!!_0x67d21b['every'](_0x28efd0=>_0x421419['some'](_0x11fdac=>_0x28efd0['getFirstRange']()['isEqual'](_0x11fdac['getFirstRange']())))&&_0x421419['every'](_0x4b8a92=>_0x67d21b['some'](_0x4a3f69=>_0x4b8a92['getFirstRange']()['isEqual'](_0x4a3f69['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x32d1ab){const _0xdb8862=Array['from'](_0x32d1ab),_0x47f24d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x56e160=_0x47f24d['filter'](_0x5cf463=>!_0x32d1ab['has'](_0x5cf463)),_0x5818be=new Map(_0xdb8862['map'](_0x10efec=>[_0x10efec,this['_suggestionFactory']['getSuggestionCallback'](_0x10efec['type'],_0x10efec['subType'],'join')])),_0x57046d=new Map(_0x47f24d['map'](_0x33f44d=>[_0x33f44d,_0x33f44d['getRanges']()]));for(let _0x4f6151=0x0;_0x4f6151<_0xdb8862['length'];_0x4f6151++){if(_0x4932e9(this,_0xdb8862[_0x4f6151],_0xdb8862,_0x4f6151+0x1))return!0x0;}for(let _0x50464e=0x0;_0x50464e<_0xdb8862['length'];_0x50464e++){if(_0x4932e9(this,_0xdb8862[_0x50464e],_0x56e160,0x0))return!0x0;}return!0x1;function _0x4932e9(_0x5d5ec1,_0x3e5d80,_0x36a1c2,_0x2fb3d3){for(let _0x3029ab=_0x2fb3d3;_0x3029ab<_0x36a1c2['length'];_0x3029ab++){const _0x26b608=_0x36a1c2[_0x3029ab];if(_0x26b608['type']!==_0x3e5d80['type']||_0x26b608['author']['id']!==_0x3e5d80['author']['id']||_0x26b608['subType']!==_0x3e5d80['subType'])continue;if(!Jt(_0x3e5d80,_0x26b608))continue;if('attribute'==_0x3e5d80['type']&&_0x3e5d80['data']['oldValue']!=_0x26b608['data']['oldValue'])continue;if('attribute'==_0x3e5d80['type']&&_0x5d5ec1['_isBlockAttribute'](_0x3e5d80['data']['key']))continue;if('formatBlock'==_0x3e5d80['type']){const _0x3e71ce=_0x5d5ec1['editor']['model'],_0x398392=_0x3e5d80['getContainedElement']();if(_0x398392&&(_0x3e71ce['schema']['isObject'](_0x398392)||_0x3e71ce['schema']['isLimit'](_0x398392)))continue;}const _0x413f2e=_0x5818be['get'](_0x3e5d80),_0x559011=_0x57046d['get'](_0x3e5d80),_0x3e41b7=_0x57046d['get'](_0x26b608),_0x53162e=_0x3e5d80['commentThread']&&_0x3e5d80['commentThread']['length'],_0x5bc7ef=_0x26b608['commentThread']&&_0x26b608['commentThread']['length'];if(!_0x53162e&&_0x413f2e(_0x3e41b7,_0x559011))return _0x5d5ec1['_joinSuggestions'](_0x26b608,_0x3e5d80),_0x57046d['delete'](_0x3e5d80),!0x0;if(!_0x5bc7ef&&_0x413f2e(_0x559011,_0x3e41b7))return _0x5d5ec1['_joinSuggestions'](_0x3e5d80,_0x26b608),_0x57046d['delete'](_0x26b608),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2d7860,_0x28c43e){if(_0x2d7860['isMultiRange']){for(const _0x3b9529 of _0x28c43e['getRanges']())_0x2d7860['addRange'](_0x3b9529);}else{const _0x12abd2=_0x28c43e['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2d7860,this['_model']['createRange'](_0x2d7860['getFirstRange']()['start'],_0x12abd2));}_0x28c43e['removeMarkers']();}['_getMarkerAnnouncementText'](_0x26c045,_0x59ecdd,_0x4c0791){const _0x3481dd=_0x26c045['startsWith']('format')||_0x26c045['startsWith']('attribute')?'FORMATTING':_0x26c045['toUpperCase']();return o(this['editor']['locale'],_0x59ecdd+'_'+_0x3481dd+'_SUGGESTION_ANNOUNCEMENT',_0x4c0791);}['_initAriaMarkerChangeAnnouncements'](){const _0x30b036=this['editor'];if(!_0x30b036['ui'])return;const {ariaLiveAnnouncer:_0x29277c}=_0x30b036['ui'];_0xcc9e00(this['_model'],({left:_0x4b6b05,entered:_0x1bcc6f})=>{for(const _0x272ba0 of _0x4b6b05){const {group:_0x51baaa,type:_0x319a52}=this['_splitMarkerName'](_0x272ba0['name']);if('suggestion'===_0x51baaa){_0x29277c['announce'](this['_getMarkerAnnouncementText'](_0x319a52,'LEAVE'));break;}}for(const _0x1e8f2d of _0x1bcc6f){const {group:_0x2c7d99,type:_0xe82df9}=this['_splitMarkerName'](_0x1e8f2d['name']);if('suggestion'===_0x2c7d99){_0x29277c['announce'](this['_getMarkerAnnouncementText'](_0xe82df9,'ENTER',_0x1c74cc(_0x3f9eab)));break;}}});}['_processAttributeChanges'](_0x336ca9){if(this['_recordAttributeSuggestions'])return!0x1;const _0x990b73=this['editor'],_0x304f9b=_0x990b73['model']['document']['differ']['getChanges']();if(0x0==_0x304f9b['length'])return!0x1;const _0x2fcf9c=[],_0x36532b=_0x304f9b['filter'](_0x120e54=>'attribute'==_0x120e54['type']),_0x4e8f74=_0x304f9b['filter'](_0x5b907a=>'insert'==_0x5b907a['type']&&'$text'!=_0x5b907a['name']),_0x1304bb=_0x304f9b['filter'](_0x535866=>'remove'==_0x535866['type']&&'$text'!=_0x535866['name']);for(const _0x1af658 of _0x36532b)_0x2fcf9c['push']({'key':_0x1af658['attributeKey'],'newValue':_0x1af658['attributeNewValue'],'oldValue':_0x1af658['attributeOldValue'],'range':Pt(_0x1af658['range'],_0x990b73['model'])});for(const _0x3d5016 of _0x4e8f74){const _0x18e0a1=_0x1304bb['find'](_0x5358cc=>_0x5358cc['position']['isEqual'](_0x3d5016['position']));_0x18e0a1&&_0x2fcf9c['push']({'key':m,'newValue':_0x3d5016['name'],'oldValue':_0x18e0a1['name'],'range':_0x990b73['model']['createRangeOn'](_0x3d5016['position']['nodeAfter'])});}return 0x0!=_0x2fcf9c['length']&&this['_reduceExistingSuggestions'](_0x336ca9,_0x2fcf9c);}['_processAttributeSuggestions'](_0x53e1a2){let _0x9340e6=!0x1;const _0x14ee1b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xe88848=>_0xe88848['data']['newRange']&&_0xe88848['name']['startsWith']('suggestion:attribute:'));for(const _0x556d60 of _0x14ee1b){const {subType:_0x27c1a5,id:_0x910a0e}=this['_splitMarkerName'](_0x556d60['name']),_0x476789=_0x27c1a5['split']('|')[0x0];for(const _0xa77967 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xa77967['id']!=_0x910a0e&&'attribute'==_0xa77967['type']&&_0xa77967['data']&&_0xa77967['data']['key']==_0x476789&&_0xa77967['getFirstRange']()['isIntersecting'](_0x556d60['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xa77967,_0x556d60['data']['newRange'],_0x53e1a2),_0x9340e6=!0x0);}return _0x9340e6;}['_recordAttributeChanges'](_0x5a8f71){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x5a8f71();}['_isRegisteredAttribute'](_0x4d6d24){const _0x512714=this['_isBlockAttribute'](_0x4d6d24),_0x1fefb0=this['_inlineAttributeKeys']['has'](_0x4d6d24);return _0x512714||_0x1fefb0;}['_reduceExistingSuggestions'](_0x376ba7,_0x7f6e7f){if(0x0==_0x7f6e7f['length'])return!0x1;let _0x53b43f=!0x1;for(const _0x1a57d3 of _0x7f6e7f){const _0x47eb77=this['_findSuggestions'](_0x1a57d3['range'],'attribute')['filter'](_0x2285fd=>!_0x2285fd['meta']['isNextTo'])['map'](_0x2a2658=>_0x2a2658['suggestion']),_0x16bb5f=_0x3fb96b({'newValue':_0x1a57d3['newValue']});_0x47eb77['filter'](_0x347cf2=>{const [_0x1f0678,_0x1c0840]=_0x347cf2['subType']['split']('|');return _0x1f0678==_0x1a57d3['key']&&_0x1c0840!=_0x16bb5f;})['forEach'](_0x2372a8=>{this['_reduceSuggestionAttributeRange'](_0x2372a8,_0x1a57d3['range'],_0x376ba7),_0x53b43f=!0x0;});}return _0x53b43f;}['_reduceSuggestionAttributeRange'](_0xf22906,_0x480c73,_0xa23415){const _0x18f137=_0xf22906['getFirstRange']()['getDifference'](_0x480c73);0x0!==_0x18f137['length']?0x1!==_0x18f137['length']?this['_breakSuggestionMarker'](_0xf22906,_0x480c73['start'],_0x480c73['end']):this['_setSuggestionRange'](_0xf22906,_0x18f137[0x0]):_0xa23415['removeMarker'](_0xf22906['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x23ac55){this['_editor']=_0x23ac55,this['_model']=_0x23ac55['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2e62ba,_0x3198ec,_0x4c489c,_0x51fbb5,_0x66205f,_0x770c0f){return new u(this['_model'],{'type':_0x2e62ba,'subType':_0x3198ec,'id':_0x4c489c,'author':_0x51fbb5,'creator':_0x51fbb5,'attributes':_0x66205f,'onAttributesChange':_0x770c0f,'onAccept':(..._0x575c27)=>this['getSuggestionCallback'](_0x2e62ba,_0x3198ec,'accept')(..._0x575c27),'onDiscard':(..._0x1e99ae)=>this['getSuggestionCallback'](_0x2e62ba,_0x3198ec,'discard')(..._0x1e99ae)});}['registerCustomCallback'](_0x4bcea9,_0x52da0f,_0x42c6c5,_0x1a061a){const _0x16e7b7=_0x4bcea9+':'+_0x52da0f+':'+_0x42c6c5;this['_customCallbacks']['set'](_0x16e7b7,_0x1a061a);}['getSuggestionCallback'](_0x17962a,_0x5fb98a,_0x300840){const _0x16151e=_0x17962a+':'+_0x5fb98a+':'+_0x300840;return this['_customCallbacks']['get'](_0x16151e)||this['_defaultCallbacks']['get'](_0x17962a+':'+_0x300840);}['_registerDefaultCallbacks'](){const _0x35a4aa=()=>!0x1,_0x3649bb=_0x73c055=>{_0x73c055['sort']((_0x5d72ae,_0x49095c)=>_0x5d72ae['start']['isBefore'](_0x49095c['start'])?0x1:-0x1),this['_model']['change'](_0x257327=>{for(const _0x35741a of _0x73c055){let _0x2e986d;_0x2e986d=_0x35741a['end']['isAtEnd']&&_0x35741a['end']['parent']==_0x35741a['start']['nodeAfter']?_0x257327['createSelection'](_0x35741a['start']['nodeAfter'],'on'):_0x257327['createSelection'](_0x35741a),this['_model']['deleteContent'](_0x2e986d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x480ace=(_0x33d5a8,_0x3feb06)=>{_0x3feb06&&this['_model']['change'](_0x46e2df=>{const {commandName:_0x64adb2,commandParams:_0x4505c6=[]}=_0x3feb06,_0xc3e25e=_0x33d5a8['map'](_0x4b2432=>(Vt(_0x4b2432)&&(_0x4b2432=this['_model']['createRange'](_0x4b2432['end'])),_0x4b2432))['filter'](_0x2fd249=>'$graveyard'!==_0x2fd249['root']['rootName']);if(_0xc3e25e['length']<0x1)return;const _0x5c0757=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4f25d7=>_0xfd736c['fromRange'](_0x4f25d7));_0x46e2df['setSelection'](_0xc3e25e);for(const _0x5ca9db of this['_editor']['commands']['commands']())_0x5ca9db['refresh']();_0x4505c6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x64adb2,..._0x4505c6);const _0x2ee963=_0x5c0757['filter'](_0x11e7dd=>'$graveyard'!=_0x11e7dd['root']['rootName']);_0x2ee963['length']>0x0&&_0x46e2df['setSelection'](_0x2ee963);for(const _0x5b5b1a of _0x5c0757)_0x5b5b1a['detach']();});},_0x18e9f2=(_0x10cf90,_0x24c6d8)=>0x1==_0x10cf90['length']&&0x1==_0x24c6d8['length']&&_0x10cf90[0x0]['end']['isEqual'](_0x24c6d8[0x0]['start']),_0x33676f=(_0x3441db,_0x309a18,_0x5553af,_0x3c3a0a)=>Ht(_0x3441db,_0x309a18,_0x5553af,_0x3c3a0a,this['_model'])?[_0x3441db,_0x309a18]:Ht(_0x309a18,_0x3441db,_0x3c3a0a,_0x5553af,this['_model'])?[_0x309a18,_0x3441db]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x35a4aa),this['_defaultCallbacks']['set']('insertion:discard',_0x3649bb),this['_defaultCallbacks']['set']('insertion:join',_0x18e9f2),this['_defaultCallbacks']['set']('insertion:chain',_0x33676f),this['_defaultCallbacks']['set']('deletion:accept',_0x3649bb),this['_defaultCallbacks']['set']('deletion:discard',_0x35a4aa),this['_defaultCallbacks']['set']('deletion:join',_0x18e9f2),this['_defaultCallbacks']['set']('deletion:chain',_0x33676f),this['_defaultCallbacks']['set']('formatInline:accept',_0x480ace),this['_defaultCallbacks']['set']('formatInline:discard',_0x35a4aa),this['_defaultCallbacks']['set']('formatInline:join',_0x18e9f2),this['_defaultCallbacks']['set']('formatInline:chain',_0x35a4aa),this['_defaultCallbacks']['set']('formatBlock:accept',_0x480ace),this['_defaultCallbacks']['set']('formatBlock:discard',_0x35a4aa),this['_defaultCallbacks']['set']('formatBlock:join',_0x18e9f2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x35a4aa),this['_defaultCallbacks']['set']('attribute:accept',_0x35a4aa),this['_defaultCallbacks']['set']('attribute:discard',(_0x15f0e0,_0x1ba483)=>{if(!_0x1ba483)return;const _0x2e8334=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x11b07e=>{if(_0x1ba483['key']==m)for(const _0xfbe651 of _0x15f0e0){const _0x393bd9=_0xfbe651['start']['nodeAfter'],_0x54fd43=_0x1ba483['oldValue'];_0x11b07e['rename'](_0x393bd9,_0x54fd43);}else{if(_0x2e8334['_isBlockAttribute'](_0x1ba483['key'])){for(const _0x1249da of _0x15f0e0)void 0x0!==_0x1ba483['oldValue']?_0x11b07e['setAttribute'](_0x1ba483['key'],_0x1ba483['oldValue'],_0x1249da['start']['nodeAfter']):_0x11b07e['removeAttribute'](_0x1ba483['key'],_0x1249da['start']['nodeAfter']);}else{for(const _0x511252 of _0x15f0e0)_0x1ba483['oldValue']?_0x11b07e['setAttribute'](_0x1ba483['key'],_0x1ba483['oldValue'],_0x511252):_0x11b07e['removeAttribute'](_0x1ba483['key'],_0x511252);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x18e9f2);}}function Ot(_0x5f2314,_0x15ebfe,_0x56d8fc){for(const _0x4af7d2 of _0x15ebfe['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4af7d2['root']==_0x4af7d2)return!0x1;if(!_0x56d8fc['containsItem'](_0x4af7d2))return!0x1;if(_0x5f2314['isObject'](_0x4af7d2)||_0x5f2314['isLimit'](_0x4af7d2))return!0x0;}return!0x1;}function Vt(_0x7d0c3){return _0x7d0c3['end']['parent']==_0x7d0c3['start']['nodeAfter']&&_0x7d0c3['end']['isAtStart'];}function Ut(_0x1ab3e6,_0x56ec6f,_0x124b31,_0x40cba0){const _0x36e2ac=_0x19e046=>!_0x19e046['item']['is']('$textProxy')&&!_0x40cba0['isObject'](_0x19e046['item']),_0x139b20=_0x1ab3e6['start']['getLastMatchingPosition'](_0x36e2ac),_0x50148f=_0x1ab3e6['end']['getLastMatchingPosition'](_0x36e2ac,{'direction':'backward'});return(!_0x1ab3e6['start']['isEqual'](_0x139b20)||!_0x1ab3e6['end']['isEqual'](_0x50148f))&&(_0x139b20['isBefore'](_0x50148f)?_0x124b31['updateMarker'](_0x56ec6f,{'range':_0x124b31['createRange'](_0x139b20,_0x50148f)}):_0x124b31['removeMarker'](_0x56ec6f),!0x0);}function Gt(_0x4593f7){return _0x3fb96b(_0x4593f7);}function Ft(_0x7c2010){const _0x58abb1=_0x7c2010['start']['nodeAfter'];return _0x58abb1&&_0x58abb1['is']('element');}function Pt(_0x3d45e5,_0x3c9708){return null==_0x3d45e5['end']['nodeBefore']&&_0x3d45e5['end']['parent']==_0x3d45e5['start']['nodeAfter']?Lt(_0x3d45e5['start']['nodeAfter'],_0x3c9708):_0x3d45e5;}function Lt(_0x179181,_0x4d4910){const _0x42c933=_0x4d4910['schema']['isObject'](_0x179181)||_0x4d4910['schema']['isSelectable'](_0x179181);return _0x4d4910['createRange'](_0x4d4910['createPositionAt'](_0x179181,'before'),_0x42c933?_0x4d4910['createPositionAfter'](_0x179181):_0x4d4910['createPositionAt'](_0x179181,'end'));}function Ht(_0x333d33,_0x145e43,_0x2feea7,_0x406d55,_0x56daa3){if(_0x333d33['next'])return!0x1;if(!Jt(_0x333d33,_0x145e43))return!0x1;if(_0x2feea7['end']['isEqual'](_0x406d55['start']))return!0x0;if(_0x333d33['type']!=_0x145e43['type'])return!0x1;if(!_0x2feea7['end']['isTouching'](_0x406d55['start']))return!0x1;const _0x581b03=_0x56daa3['createRange'](_0x2feea7['end'],_0x406d55['start'])['getWalker']();for(const _0x48be6c of _0x581b03)if(['elementStart','elementEnd']['includes'](_0x48be6c['type'])&&_0x56daa3['schema']['isLimit'](_0x48be6c['item']))return!0x1;return!0x0;}function Jt(_0x4c1d59,_0x56d5c8){if(!_0x4c1d59['_isDataLoaded']||!_0x56d5c8['_isDataLoaded'])return!0x1;const _0x1e20d1=new Set(Object['keys'](_0x4c1d59['attributes'])),_0x4d89e=new Set(Object['keys'](_0x56d5c8['attributes']));if(_0x1e20d1['delete']('groupId'),_0x4d89e['delete']('groupId'),0x0==_0x1e20d1['size']&&0x0==_0x4d89e['size'])return!0x0;if(_0x1e20d1['size']!=_0x4d89e['size'])return!0x1;const _0x25e8a7={..._0x4c1d59['attributes']},_0x585c7c={..._0x56d5c8['attributes']};return delete _0x25e8a7['groupId'],delete _0x585c7c['groupId'],JSON['stringify'](_0x25e8a7)==JSON['stringify'](_0x585c7c);}function qt(_0x3c9ad7,_0x1acd55){const _0x3154c0=zt(_0x3c9ad7['attributes']),_0x29dd8e=zt(_0x1acd55);if(!_0x3c9ad7['_isDataLoaded'])return!0x1;for(const _0x359a12 of Object['keys'](_0x29dd8e))if(!_0x2ec426(_0x3154c0[_0x359a12],_0x29dd8e[_0x359a12]))return!0x1;return!0x0;}function zt(_0x5ce863){const _0x1a1c0d=Object['assign']({},_0x5ce863);return delete _0x1a1c0d['skipNestingCheck'],delete _0x1a1c0d['tablePasteChainId'],_0x1a1c0d;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x206d4d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x40a7b5,_0x30e641,_0x4c182b,_0x37c83a){super(),this['model']=_0x30e641,this['view']=_0x4c182b,this['commentThreadController']=_0x37c83a,this['_editor']=_0x40a7b5,this['_acceptCommand']=_0x40a7b5['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x40a7b5['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2eb437,_0x89f70)=>_0x2eb437||_0x89f70),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5bf82e=>_0x5bf82e&&this['_editor']['model']['canEditAt'](_0x30e641['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xdaccf=>_0xdaccf&&this['_editor']['model']['canEditAt'](_0x30e641['getRanges']())),this['_pendingAction']=null,_0x4c182b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4c182b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4c182b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4c182b,'change:isDirty',()=>{_0x4c182b['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 _0x418495=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x418495);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x11db69{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x59d550,_0x40d15c,_0x2d9e7b,_0x2fd522){super(_0x59d550),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3d8508(_0x59d550,o(_0x59d550,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x40d15c['authoredAt']),this['bind']('authoredAt')['to'](_0x40d15c),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',_0x40d15c,'authoredAt',this,'descriptionParts',(_0x55db30,_0xa7c601,_0x4974d0)=>{const _0x4cf082=_0x4974d0['map'](_0x541c14=>ls(_0x541c14['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x55db30-0x1,_0x40d15c['author']['name'],_0xa7c601?_0x2fd522['formatDateTime'](_0xa7c601):'',new DOMParser()['parseFromString'](_0x4cf082,'text/html')['body']['textContent']]);}),this['focusables']=new _0xf2f8d(),this['focusTracker']=new _0x577184(),this['keystrokes']=new _0x201eea(),this['focusCycler']=new _0x18b4cb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x269a59=>_0x269a59['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x40d15c,this['_localUser']=_0x2d9e7b,this['_config']=_0x2fd522,_0x2fd522['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x484d72(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x27e652}=this['_config'];this['commentsListView']=new _0x27e652(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',_0x50514a=>_0x50514a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x38c663,_0x42625c)=>_0x38c663||!!_0x42625c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x826f8a}=this['_config'],_0x1edf10=new _0x826f8a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2a7814=_0x1edf10['commentInputView'];return _0x1edf10['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2a7814,'value',(_0x493225,_0x3cf4a8,_0x33c1a7)=>!!_0x33c1a7||_0x493225&&!_0x3cf4a8),_0x2a7814['on']('submit',(_0x4d8fe5,_0x5466b1)=>{this['fire']('addComment',_0x5466b1),_0x2a7814['editor']['setData']('');}),_0x2a7814['on']('cancel',()=>this['focus']()),_0x2a7814['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1edf10;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5b2d82,_0x598793,_0x35a8ec,_0x208370){super(_0x5b2d82,_0x598793,_0x35a8ec,_0x208370),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4ac657=>_0x4ac657&&_0x4ac657[0x0]?_0x4ac657[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3e6e32,_0x4fbcef)=>{let _0x1aefb4='';for(const _0x48257e of _0x3e6e32)_0x1aefb4+='<p>'+ls(_0x48257e['content'],_0x48257e['color'])+'</p>';return _0x4fbcef?_0x1aefb4:_0x5d69e1(_0x1aefb4,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x208370['SuggestionView'](_0x5b2d82,_0x598793,{'formatDateTime':_0x208370['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 _0x12ac94=this['bindTemplate'],_0x21de3a=[this['suggestionView']];return this['commentsListView']&&_0x21de3a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x21de3a['push'](this['commentThreadInputView']),_0x21de3a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x12ac94['if']('isActive','ck-suggestion-wrapper--active'),_0x12ac94['to']('type',_0x389c8d=>'ck-suggestion-'+_0x389c8d),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':_0x12ac94['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x21de3a};}['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 _0x11db69{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3c21e1,_0x2e89e3,_0x35f03d){super(_0x3c21e1),this['_model']=_0x2e89e3,this['_config']=_0x35f03d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2e89e3),this['acceptButton']=this['_createButton'](o(_0x3c21e1,'Accept\x20suggestion'),_0x1b6ff9['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3c21e1,'Discard\x20suggestion'),_0x1b6ff9['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1bd662(_0x3c21e1,_0x2e89e3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xf2f8d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x577184(),this['keystrokes']=new _0x201eea(),this['focusCycler']=new _0x18b4cb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5b9572=>_0x5b9572['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x50ff9f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x50ff9f['innerHTML']=this['description'],this['on']('change:description',(_0x2a3540,_0x434cc1,_0xceb968)=>{_0x50ff9f['innerHTML']=_0xceb968;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1fd796=this['bindTemplate'],_0x576e76=[{'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':_0x1fd796['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1fd796['to']('authoredAt',_0x44c1b5=>this['_config']['formatDateTime'](_0x44c1b5))}]}]},{'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']&&_0x576e76['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':_0x576e76}]};}['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'](_0x19a054,_0x13f4d8,_0x5a2b28,_0x4a4509,_0x22452c){const _0x5491e9=new _0x26b1d1(this['locale']);return _0x5491e9['set']({'label':_0x19a054,'icon':_0x13f4d8,'tooltip':!0x0,'tooltipPosition':_0x22452c}),_0x5491e9['extendTemplate']({'attributes':{'class':_0x5a2b28}}),_0x5491e9['on']('execute',()=>{this['fire'](_0x4a4509,this['_model']['id']);}),_0x5491e9;}['_setupKeyboardNavigation'](){const _0x3c208f=this['element'];this['keystrokes']['listenTo'](_0x3c208f);for(const _0xbc381c of this['focusables'])this['focusTracker']['add'](_0xbc381c['element']),this['keystrokes']['listenTo'](_0xbc381c['element']);this['keystrokes']['set']('enter',(_0xd63e90,_0x3c2b8b)=>{_0x3c208f===_0xd63e90['target']&&(this['focusCycler']['focusFirst'](),_0x3c2b8b());}),this['keystrokes']['set']('esc',(_0x2e3027,_0x2fe4c5)=>{_0x3c208f!==_0x2e3027['target']&&(this['focus'](),_0x2fe4c5());});}}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 _0x310a20{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x20783e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0xa2f81f){super(_0xa2f81f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x177ddd=this['editor']['config'];_0x177ddd['define']('trackChanges.SuggestionThreadView',re),_0x177ddd['define']('trackChanges.SuggestionView',ce),_0x177ddd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x177ddd['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x109b56,_0x34938c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2b01f2,_0x2bf1de]of this['_handleControllerBuffer']){const _0x354efa=this['_suggestionToController']['has'](_0x2b01f2);_0x354efa||_0x2bf1de?_0x354efa&&_0x2bf1de&&this['_destroyController'](_0x2b01f2):this['_initializeController'](_0x2b01f2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x109b56,_0x34938c);}['init'](){const _0x1d6076=this['editor'],_0x427c38=_0x1d6076['plugins']['get']('TrackChangesEditing'),_0x7a03b=_0x1d6076['plugins']['get']('Annotations'),_0x4143c5=_0x1d6076['plugins']['get']('EditorAnnotations'),_0x27ab6a=_0x1d6076['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4143c5['addSourceCollector'](()=>{const _0x9a2c64=[];for(const [_0x392d71,_0x59acab]of Array['from'](this['_suggestionToController'])){const _0x4a4171=_0x392d71['getAllAdjacentSuggestions'](),_0x2f0af6=[];for(const _0x30ed87 of _0x4a4171){if(!_0x30ed87['isInContent'])continue;if(_0x30ed87['isMultiRange']){_0x2f0af6['push'](..._0x30ed87['getRanges']());continue;}const _0x55d6cd=_0x30ed87['getFirstRange']();if(_0x2f0af6['length']>0x0){const _0x281f84=_0x2f0af6[0x0]['getJoined'](_0x55d6cd);if(_0x281f84){_0x2f0af6[0x0]=_0x281f84;continue;}}_0x2f0af6['push'](_0x55d6cd);}_0x9a2c64['push']([_0x59acab['view'],_0x2f0af6]);}return _0x9a2c64;}),this['listenTo'](_0x427c38,'suggestionLoaded',(_0x1f92cb,_0x538dc3)=>{this['listenTo'](_0x538dc3,'change:previous',(_0xb39991,_0x1c1611,_0x4db290,_0x5423a2)=>{_0x538dc3['isInContent']&&(null==_0x4db290?(this['_updateController'](_0x5423a2['head']),this['_handleSuggestionControllerDelayed'](_0x538dc3,!0x1)):(this['_updateController'](_0x4db290['head']),null==_0x5423a2&&this['_handleSuggestionControllerDelayed'](_0x538dc3,!0x0)));}),null!==_0x538dc3['previous']?this['_updateController'](_0x538dc3['head']):this['_handleSuggestionControllerDelayed'](_0x538dc3,!0x1);}),this['listenTo'](_0x427c38,'suggestionUnloaded',(_0x17d379,_0x2e4f01,_0x27723f)=>{this['stopListening'](_0x2e4f01,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2e4f01),this['_suggestionToController']['has'](_0x2e4f01)&&this['_destroyController'](_0x2e4f01),_0x27723f&&this['_updateController'](_0x27723f['head']);}),this['listenTo'](_0x427c38,'suggestionChanged',(_0x2ddc53,_0x20d266)=>{this['_updateController'](_0x20d266);}),this['listenTo'](_0x7a03b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x27ab6a,'addComment',(_0x483318,{threadId:_0x5ae206,isFromAdapter:_0x14ea08})=>{if(_0x14ea08||!_0x427c38['hasSuggestion'](_0x5ae206))return;const _0x39a4f7=_0x427c38['getSuggestion'](_0x5ae206);this['_suggestionToController']['get'](_0x39a4f7)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2f8e70=this['editor']['plugins']['get']('Annotations'),_0x2813ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25355e=Array['from'](_0x2f8e70['activeAnnotations'],_0x7dcc01=>_0x7dcc01['innerView'])['filter'](_0x16338d=>this['_viewToController']['has'](_0x16338d)),_0x1990e9=[];for(const _0x503974 of _0x25355e){const _0x4d4ab0=this['_viewToController']['get'](_0x503974)['model']['getAllAdjacentSuggestions']();_0x1990e9['push'](..._0x4d4ab0['reduce']((_0x410237,_0xbe5959)=>[..._0x410237,..._0xbe5959['getMarkerNames']()],[]));}_0x2813ac['activeMarkers']=_0x1990e9;}['_addUIComponentsToFactory'](){const _0x38ee32=this['editor'],_0x3ca6c2=_0x38ee32['locale'],_0x5ea10e=o(_0x3ca6c2,'Track\x20changes'),_0x306e93=new Wt([{'type':'switchbutton','model':new _0x2ee0b2({'withText':!0x0,'isToggleable':!0x0,'label':_0x5ea10e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2ee0b2({'withText':!0x0,'label':o(_0x3ca6c2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ee0b2({'withText':!0x0,'label':o(_0x3ca6c2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ee0b2({'withText':!0x0,'label':o(_0x3ca6c2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ee0b2({'withText':!0x0,'label':o(_0x3ca6c2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1d3596 of _0x306e93)if(me(_0x1d3596)){const _0x11ee70=_0x38ee32['commands']['get'](_0x1d3596['model']['commandName']);_0x1d3596['model']['bind']('isOn','isEnabled')['to'](_0x11ee70,'value','isEnabled');}_0x38ee32['ui']['componentFactory']['add']('trackChanges',_0x502a5e=>this['_createToolbarButton'](_0x502a5e,_0x306e93,_0x5ea10e)),_0x38ee32['ui']['componentFactory']['add']('menuBar:trackChanges',_0x283346=>this['_createMenuBarMenu'](_0x283346,_0x306e93,_0x5ea10e));}['_createToolbarButton'](_0x59803a,_0x5bbd8d,_0x537bd2){const _0x1d34c8=Qt(_0x59803a,_0x5324d7),_0x179732=this['editor']['commands']['get']('trackChanges');_0x1d34c8['buttonView']['set']({'tooltip':_0x537bd2,'label':_0x537bd2,'icon':he}),_0x1d34c8['buttonView']['bind']('isOn')['to'](_0x179732,'value'),_0x1d34c8['buttonView']['on']('execute',()=>{_0x179732['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x1d34c8,_0x5bbd8d,{'role':'menu'});const _0x49ce85=[];for(const _0x4b9bc7 of _0x5bbd8d)me(_0x4b9bc7)&&_0x49ce85['push'](this['editor']['commands']['get'](_0x4b9bc7['model']['commandName']));const _0x4197f5=_0x1d34c8['buttonView'];return _0x4197f5['actionView']['unbind']('isEnabled'),_0x4197f5['arrowView']['unbind']('isEnabled'),_0x4197f5['actionView']['bind']('isEnabled')['to'](_0x179732,'isEnabled'),_0x4197f5['arrowView']['bind']('isEnabled')['toMany'](_0x49ce85,'isEnabled',(..._0x500097)=>_0x500097['some'](_0x49aa39=>_0x49aa39)),_0x1d34c8['on']('execute',_0x409f09=>{this['editor']['execute'](_0x409f09['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1d34c8;}['_createMenuBarMenu'](_0x4d517b,_0x2c059b,_0x2e2723){const _0x106dba=new Yt(_0x4d517b),_0x40504d=this['editor']['commands']['get']('trackChanges');_0x106dba['buttonView']['set']({'label':_0x2e2723,'icon':he});const _0x33535b=new Zt(_0x4d517b);for(const _0x575473 of _0x2c059b){if('separator'==_0x575473['type']){_0x33535b['items']['add'](new Xt(_0x4d517b));continue;}const _0x65f6fa=new te(_0x4d517b,_0x106dba),_0x3aa47b=new _0x5abf4b(_0x4d517b),_0x9a10eb=_0x575473['model'];_0x3aa47b['bind'](...Object['keys'](_0x9a10eb))['to'](_0x9a10eb),_0x3aa47b['delegate']('execute')['to'](_0x106dba),_0x3aa47b['on']('execute',()=>{this['editor']['execute'](_0x9a10eb['commandName']),this['editor']['editing']['view']['focus']();}),_0x65f6fa['children']['add'](_0x3aa47b),_0x33535b['items']['add'](_0x65f6fa);}return _0x106dba['bind']('isEnabled')['to'](_0x40504d,'isEnabled'),_0x106dba['panelView']['children']['add'](_0x33535b),_0x106dba;}['_initializeController'](_0x3e0772){const _0x40ce32=this['editor'],_0x5dd202=_0x40ce32['config'],_0x1e2b2b=_0x40ce32['plugins']['get']('Annotations'),_0x80756b=_0x40ce32['plugins']['get']('CommentsRepository'),_0x4a7c6a=_0x40ce32['plugins']['get']('EditorAnnotations'),_0x1518fc=_0x40ce32['plugins']['get'](_0x20783e)['me'],_0xb1e370=_0x5dd202['get']('trackChanges')['SuggestionThreadView'],_0x11771f=_0x5dd202['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5865cc,CommentThreadInputView:_0x153d97}=_0x40ce32['plugins']['get']('CommentsUI');let _0x512f45,_0x2f0ab8,_0x32ef0c;this['_annotationViews']['has'](_0x3e0772['id'])?(_0x2f0ab8=this['_annotationViews']['get'](_0x3e0772['id']),_0x512f45=_0x2f0ab8['mainView']):(_0x512f45=new _0xb1e370(_0x40ce32['locale'],_0x3e0772,_0x1518fc,{'disableComments':this['_disableComments'],'editorConfig':_0x5dd202['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5dd202['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5dd202['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5dd202['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5636d8(_0x5dd202['get']('locale')),'CommentView':_0x5dd202['get']('comments')['CommentView'],'CommentsListView':_0x5865cc,'CommentThreadInputView':_0x153d97,'SuggestionView':_0x11771f}),_0x512f45['suggestionView']['acceptButton']['on']('execute',()=>{_0x40ce32['editing']['view']['focus']();}),_0x512f45['suggestionView']['discardButton']['on']('execute',()=>{_0x40ce32['editing']['view']['focus']();}),_0x2f0ab8=_0x1e2b2b['createAnnotationView'](this['editor']['locale'],_0x512f45),_0x2f0ab8['bind']('isDirty')['to'](_0x512f45,'isDirty'),_0x2f0ab8['bind']('length')['to'](_0x512f45),_0x2f0ab8['bind']('type')['to'](_0x512f45,'type',_0x51aa25=>'suggestion-'+_0x51aa25),_0x512f45['on']('escape',()=>{_0x32ef0c['fire']('escape');}),this['_annotationViews']['set'](_0x3e0772['id'],_0x2f0ab8));const _0x4a9fe1=_0x80756b['createCommentThreadController'](_0x3e0772['commentThread'],_0x512f45),_0x569962=new ae(_0x40ce32,_0x3e0772,_0x512f45,_0x4a9fe1),_0xf3ba4=_0x3e0772['getAllAdjacentSuggestions']()['filter'](_0x221dc8=>_0x221dc8['isInContent']);_0x512f45['descriptionParts']=_0x40ce32['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xf3ba4),this['_suggestionToController']['set'](_0x3e0772,_0x569962),this['_viewToController']['set'](_0x512f45,_0x569962),_0x32ef0c=_0x1e2b2b['createAnnotation']({'view':_0x2f0ab8,'target':()=>{const _0x4c36e7=[],_0x5ca1f7=_0x3e0772['getAllAdjacentSuggestions']()['filter'](_0x1bb744=>_0x1bb744['isInContent']);for(const _0x1b62c9 of _0x5ca1f7)_0x4c36e7['push'](..._0x1b62c9['getMarkers']());return _0x4dc4b3(_0x40ce32['editing'],_0x4c36e7);},'type':()=>'suggestion-'+_0x569962['view']['type']}),_0x80756b['_bindAnnotationToEditors'](_0x512f45,_0x32ef0c),_0x1e2b2b['add'](_0x32ef0c),_0x4a7c6a['registerAnnotation'](_0x32ef0c);}['_destroyController'](_0x26dbec){const _0x4cb8f8=this['editor']['plugins']['get']('CommentsRepository'),_0x5b1c6e=this['editor']['plugins']['get']('Annotations'),_0x37ca60=this['_suggestionToController']['get'](_0x26dbec),_0x502291=_0x37ca60['view'],_0x4ab951=_0x5b1c6e['getByInnerView'](_0x502291);_0x4cb8f8['_unbindEditors'](_0x502291),_0x4ab951&&_0x5b1c6e['remove'](_0x4ab951),this['_suggestionToController']['delete'](_0x26dbec),this['_viewToController']['delete'](_0x502291),_0x37ca60['destroy']();}['_updateController'](_0x5a61e2){if(!_0x5a61e2['isInContent']||!this['_suggestionToController']['has'](_0x5a61e2))return;const _0x4fe775=this['editor']['plugins']['get']('TrackChangesEditing'),_0x540ee0=this['_suggestionToController']['get'](_0x5a61e2),_0x5c3b47=_0x5a61e2['getAllAdjacentSuggestions']();_0x540ee0['view']['descriptionParts']=_0x4fe775['descriptionFactory']['getDescriptions'](_0x5c3b47);}['destroy'](){for(const _0x4ec0f1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4ec0f1);for(const _0x40d021 of this['_annotationViews']['values']())_0x40d021['mainView']['destroy']();super['destroy']();}}function me(_0x5a03f0){return'model'in _0x5a03f0;}class k extends _0x310a20{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x37da47){this['editor']['plugins']['get'](p)['adapter']=_0x37da47;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4d3587){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4d3587);}['getSuggestions']({skipNotAttached:_0x38d07e=!0x1,toJSON:_0xc0b6ee=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x38d07e,'toJSON':_0xc0b6ee});}['getSuggestion'](_0x3a230a){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3a230a);}}const T=['Pagination'];class P extends _0x310a20{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4f9977=this['editor'];if(_0x4f9977['config']['define']('trackChangesData.editorCreator',_0x585a76=>{const _0x2fc629=_0x4f9977['model']['document']['getRootNames']()['reduce']((_0x4ed879,_0x558032)=>(_0x4ed879[_0x558032]='',_0x4ed879),{});return _0x4f9977['constructor']['create'](_0x2fc629,_0x585a76);}),'function'!=typeof _0x4f9977['config']['get']('trackChangesData')['editorCreator'])throw new _0x51bc83('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2191b2){return N(this['editor'],!0x0,_0x2191b2);}['getDataWithDiscardedSuggestions'](_0x41d4fd){return N(this['editor'],!0x1,_0x41d4fd);}}class D extends _0x310a20{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x31017b){super(_0x31017b),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(_0x5b064c){return void 0x0!==_0x5b064c['getRootsAttributes'];}async function N(_0x926a5d,_0x109443,_0x48b758){const _0x5332ff=_0x1994ee(_0x926a5d,T);_0x5332ff['plugins']['push'](p,D),_0x5332ff['rootsAttributes']=v(_0x926a5d)?_0x926a5d['getRootsAttributes']():void 0x0;const _0x594870=document['createDocumentFragment'](),_0x1c0017=_0x926a5d['config']['get']('trackChangesData')['editorCreator'],_0x3a09a9=await _0x1c0017(_0x5332ff,()=>function(_0x86f7da){const _0x27c20d=document['createElement']('div');return _0x86f7da['appendChild'](_0x27c20d),_0x27c20d;}(_0x594870));!function(_0x5db16c,_0x34af2e){const _0x255a1d=_0x5db16c['model']['document']['getRootNames']()['reduce']((_0x43fede,_0x5815cc)=>(_0x43fede[_0x5815cc]=_0x5db16c['data']['get']({'rootName':_0x5815cc}),_0x43fede),{}),_0x5923e0=_0x5db16c['plugins']['get']('Users')['users']['map'](_0x337295=>({'id':_0x337295['id'],'name':_0x337295['name']})),_0x477f57=_0x5db16c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x469f2d=_0x5db16c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x370157=_0x34af2e['plugins']['get']('Users'),_0x2fa134=_0x34af2e['plugins']['get']('TrackChangesEditing'),_0x5df17c=_0x34af2e['plugins']['get']('CommentsRepository');for(const _0x3082a5 of _0x5df17c['getCommentThreads']())_0x3082a5['remove']();for(const _0x4750e5 of _0x5923e0)_0x370157['getUser'](_0x4750e5['id'])||_0x370157['addUser'](_0x4750e5);_0x370157['me']||_0x370157['useAnonymousUser']();for(const _0x16d3ec of _0x469f2d)_0x5df17c['addCommentThread'](_0x16d3ec);for(const _0x23d148 of _0x477f57)_0x2fa134['addSuggestionData'](_0x23d148);_0x34af2e['data']['set'](_0x255a1d);}(_0x926a5d,_0x3a09a9),_0x3a09a9['execute'](_0x109443?'acceptAllSuggestions':'discardAllSuggestions');const _0x356e7c=v(_0x3a09a9)?_0x3a09a9['getFullData'](_0x48b758):_0x3a09a9['data']['get'](_0x48b758);return await _0x3a09a9['destroy'](),_0x356e7c;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};