@ckeditor/ckeditor5-track-changes 46.0.1 → 46.0.2-alpha.1

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 (227) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/aiassistant.js +1 -1
  158. package/src/integrations/alignment.js +1 -1
  159. package/src/integrations/basicstyles.js +1 -1
  160. package/src/integrations/blockquote.js +1 -1
  161. package/src/integrations/bookmark.js +1 -1
  162. package/src/integrations/casechange.js +1 -1
  163. package/src/integrations/ckbox.js +1 -1
  164. package/src/integrations/codeblock.js +1 -1
  165. package/src/integrations/comments.js +1 -1
  166. package/src/integrations/deletecommand.js +1 -1
  167. package/src/integrations/emoji.js +1 -1
  168. package/src/integrations/entercommand.js +1 -1
  169. package/src/integrations/findandreplace.js +1 -1
  170. package/src/integrations/font.js +1 -1
  171. package/src/integrations/formatpainter.js +1 -1
  172. package/src/integrations/heading.js +1 -1
  173. package/src/integrations/highlight.js +1 -1
  174. package/src/integrations/horizontalline.js +1 -1
  175. package/src/integrations/htmlembed.js +1 -1
  176. package/src/integrations/image.js +1 -1
  177. package/src/integrations/imagereplace.js +1 -1
  178. package/src/integrations/imagestyle.js +1 -1
  179. package/src/integrations/importword.js +1 -1
  180. package/src/integrations/indent.js +1 -1
  181. package/src/integrations/inputcommand.js +1 -1
  182. package/src/integrations/legacylist.js +1 -1
  183. package/src/integrations/legacylistproperties.js +1 -1
  184. package/src/integrations/lineheight.js +1 -1
  185. package/src/integrations/link.js +1 -1
  186. package/src/integrations/list.js +1 -1
  187. package/src/integrations/listproperties.js +1 -1
  188. package/src/integrations/mediaembed.js +1 -1
  189. package/src/integrations/mention.js +1 -1
  190. package/src/integrations/mergefields.js +1 -1
  191. package/src/integrations/multilevellist.js +1 -1
  192. package/src/integrations/pagebreak.js +1 -1
  193. package/src/integrations/paragraph.js +1 -1
  194. package/src/integrations/removeformat.js +1 -1
  195. package/src/integrations/replacesourcecommand.js +1 -1
  196. package/src/integrations/restrictededitingmode.js +1 -1
  197. package/src/integrations/shiftentercommand.js +1 -1
  198. package/src/integrations/standardeditingmode.js +1 -1
  199. package/src/integrations/style.js +1 -1
  200. package/src/integrations/table.js +1 -1
  201. package/src/integrations/tablecaption.js +1 -1
  202. package/src/integrations/tableclipboard.js +2 -2
  203. package/src/integrations/tablecolumnresize.js +1 -1
  204. package/src/integrations/tableheadings.js +1 -1
  205. package/src/integrations/tablelayout.js +1 -1
  206. package/src/integrations/tablemergesplit.js +1 -1
  207. package/src/integrations/tableofcontents.js +1 -1
  208. package/src/integrations/tableproperties.js +1 -1
  209. package/src/integrations/template.js +1 -1
  210. package/src/integrations/title.js +1 -1
  211. package/src/integrations/undo.js +1 -1
  212. package/src/integrations/uploadcare.js +1 -1
  213. package/src/integrations/utils.js +1 -1
  214. package/src/suggestion.js +2 -2
  215. package/src/suggestiondescriptionfactory.js +1 -1
  216. package/src/trackchanges.js +1 -1
  217. package/src/trackchangesdata.js +1 -1
  218. package/src/trackchangesediting.js +1 -1
  219. package/src/trackchangespreview.js +1 -1
  220. package/src/trackchangesui.js +1 -1
  221. package/src/ui/suggestioncontroller.js +2 -2
  222. package/src/ui/view/basesuggestionthreadview.js +1 -1
  223. package/src/ui/view/suggestionthreadview.js +1 -1
  224. package/src/ui/view/suggestionview.js +1 -1
  225. package/src/ui/view/trackchangespreviewview.js +1 -1
  226. package/src/utils/common-translations.js +1 -1
  227. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x1366e1,Plugin as _0xfd4522,PendingActions as _0x19387b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5d208c,ObservableMixin as _0x4ffc3b,uid as _0x110ca2,priorities as _0x533dca,insertToPriorityArray as _0x32f2d5,toArray as _0xd850df,logWarning as _0x113fed,getEnvKeystrokeText as _0x338685,FocusTracker as _0x2bcccf,KeystrokeHandler as _0x59df8b,Collection as _0x49a3a5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4a5080,IconCancel as _0x503c9a,IconTrackChanges as _0x549e4c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x986404,View as _0x237d07,ViewCollection as _0x1dcd16,FocusCycler as _0x4bc59e,UIModel as _0x51ccc6,createDropdown as _0x1a7bc1,SplitButtonView as _0x2b4076,addListToDropdown as _0x57c9fb,MenuBarMenuView as _0x2025e3,MenuBarMenuListView as _0x39e983,ListSeparatorView as _0x20cbf3,MenuBarMenuListItemView as _0x4d7d8a,MenuBarMenuListItemButtonView as _0x351920,BodyCollection as _0x3f81a3,Dialog as _0x5914c5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x41af33,hashObject as _0x51422e,surroundingMarkersDetector as _0x4126be,FOCUS_ANNOTATION_KEYSTROKE as _0x37cb22,AriaDescriptionView as _0x496d48,setupThreadKeyboardNavigation as _0x2e09af,trimHtml as _0x2d6735,UserView as _0x4a5b3a,LateFocusButtonView as _0x5b4b3e,getDateTimeFormatter as _0x204812,getAllMarkersDomElementsSorted as _0x49b990,sanitizeEditorConfig as _0x518498}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x5deae5,ModelLiveRange as _0x217d71,ModelLivePosition as _0xa59888,ViewDowncastWriter as _0x21e70c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x352865,toWidget as _0x20ea6f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xd3c28b,set as _0x5b6213,isEqual as _0x3f9778,unset as _0x21df6e,omit as Ut}from'es-toolkit/compat';import{Delete as _0x2796f0,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x501db2}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3dd587}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x1366e1{['_enabledCommands'];constructor(_0x452759,_0x490a22){super(_0x452759),this['_enabledCommands']=_0x490a22,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 _0x5a9d76 of this['editor']['commands']['commands']())_0x5a9d76['affectsData']&&!this['_enabledCommands']['has'](_0x5a9d76)&&_0x5a9d76['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x158714 of this['editor']['commands']['commands']())_0x158714['affectsData']&&!this['_enabledCommands']['has'](_0x158714)&&_0x158714['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x1366e1{['_suggestions'];constructor(_0x7ed028,_0x242b4f){super(_0x7ed028),this['_suggestions']=_0x242b4f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x56d2be){const _0xe0dc02=this['_suggestions']['get'](_0x56d2be);if(!_0xe0dc02)throw new _0x5d208c('track-changes-accept-suggestion-not-found',this);const _0x1db600=_0xe0dc02['getRanges']();this['editor']['model']['canEditAt'](_0x1db600)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xe0dc02);}}class $ extends _0x1366e1{['_suggestions'];constructor(_0x2e3a9c,_0x34580e){super(_0x2e3a9c),this['_suggestions']=_0x34580e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x14f416){const _0x2d127e=this['_suggestions']['get'](_0x14f416);if(!_0x2d127e)throw new _0x5d208c('track-changes-discard-suggestion-not-found',this);const _0x5016e1=_0x2d127e['getRanges']();this['editor']['model']['canEditAt'](_0x5016e1)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2d127e);}}function ls(_0x44d55b,_0x4ad05e){let _0x409195='';return _0x409195+=_0x44d55b['split']('*')['map']((_0x541a91,_0x1c1d25)=>_0x1c1d25%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x541a91)+'</span>':Zt(_0x541a91))['join'](''),_0x4ad05e&&(_0x409195+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4ad05e['value']+'\x22\x20title=\x22'+_0x4ad05e['title']+'\x22></span>'),_0x409195;}function Zt(_0x4cf6a){const _0xacc1be=document['createElement']('span');return _0xacc1be['innerText']=_0x4cf6a,_0xacc1be['innerHTML'];}function ts(_0x401153){return _0x401153['sort']((_0x5eb179,_0x136c1f)=>'attribute'===_0x5eb179['type']&&'attribute'!==_0x136c1f['type']?-0x1:'attribute'!==_0x5eb179['type']&&'attribute'===_0x136c1f['type']?0x1:'deletion'==_0x5eb179['type']&&'deletion'!=_0x136c1f['type']?-0x1:'deletion'!=_0x5eb179['type']&&'deletion'==_0x136c1f['type']?0x1:0x0);}function to(_0x29267b,_0x114f9d){let _0x512788,_0x2555d9=0x0;const _0x537105=[],_0x6c8f1f=_0x114f9d['schema'];for(;_0x2555d9<_0x29267b['length'];){const _0xa3cb21=_0x29267b[_0x2555d9],_0xd4adf1=_0x29267b[_0x2555d9+0x1];_0x512788||(_0x512788=_0x114f9d['createPositionBefore'](_0xa3cb21)),tn(_0x114f9d,_0xa3cb21,_0xd4adf1)||(_0x537105['push'](_0x114f9d['createRange'](_0x512788,_0x6c8f1f['isObject'](_0xa3cb21)?_0x114f9d['createPositionAfter'](_0xa3cb21):_0x114f9d['createPositionAt'](_0xa3cb21,'end'))),_0x512788=null),_0x2555d9++;}return _0x537105;}function tn(_0x4aaf83,_0x271613,_0x413a5a){if(!_0x413a5a)return!0x1;const _0x3bff91=_0x4aaf83['createPositionAfter'](_0x271613),_0x26f562=_0x4aaf83['createPositionBefore'](_0x413a5a);return _0x3bff91['isTouching'](_0x26f562);}function rs(_0x1be519,_0x22ffd2,_0x473402){for(;_0x473402['length'];){const _0x3feb5a=_0x473402['splice'](0x0,0x64);_0x1be519['change'](()=>{for(const _0xf2155 of _0x3feb5a)_0xf2155['isInContent']&&_0x22ffd2['execute'](_0xf2155['id']);});}}class M extends _0x1366e1{['_command'];['_suggestions'];constructor(_0x158280,_0x58b475,_0x34ff2d){super(_0x158280),this['_command']=_0x58b475,this['_suggestions']=_0x34ff2d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3cb978=Array['from'](this['_suggestions']['values']())['some'](_0x3e239d=>_0x3e239d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3cb978;}['execute'](){const _0x4af59e=ts(Array['from'](this['_suggestions']['values']()));for(const _0x358389 of _0x4af59e){const _0x5ca2d9=_0x358389['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5ca2d9))return;}rs(this['editor']['model'],this['_command'],_0x4af59e);}}class B extends _0x1366e1{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x557388,_0x206851,_0x359051){super(_0x557388),this['_command']=_0x206851,this['_suggestions']=_0x359051,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xfcbfe4=this['editor']['model']['document']['selection'],_0x4c7d9d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x43e013,_0x457ade){const _0x684cfd=Array['from'](_0x43e013['getRanges']()),_0x17a7e2=new Set();for(const _0x160c11 of _0x457ade)if(_0x160c11['isInContent']){for(const _0x3e0d27 of _0x684cfd)for(const _0x53cea7 of _0x160c11['getRanges']())(_0x3e0d27['isIntersecting'](_0x53cea7)||_0x43e013['isCollapsed']&&!_0x160c11['isMultiRange']&&_0x160c11['next']&&_0x53cea7['end']['isTouching'](_0x3e0d27['start']))&&_0x17a7e2['add'](_0x160c11);}return _0x17a7e2;}(_0xfcbfe4,_0x4c7d9d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3e929d=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1d6486 of _0x3e929d){const _0x2ce09a=_0x1d6486['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2ce09a))return;}rs(this['editor']['model'],this['_command'],_0x3e929d);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x4ffc3b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3a0bb6,_0x85b230){super(),this['id']=_0x85b230['id'],this['type']=_0x85b230['type'],this['subType']=_0x85b230['subType']||null,this['author']=_0x85b230['author'],this['creator']=_0x85b230['creator']||_0x85b230['author'],this['isExternal']=Boolean(_0x85b230['attributes']&&_0x85b230['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x85b230['originalSuggestionId']||null,this['_model']=_0x3a0bb6,this['_onAccept']=_0x85b230['onAccept'],this['_onDiscard']=_0x85b230['onDiscard'],this['_onAttributesChange']=_0x85b230['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x85b230['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 _0x18dea5=this;for(;_0x18dea5['previous'];)_0x18dea5=_0x18dea5['previous'];return _0x18dea5;}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'](_0x14da3e){this['_markerNames']['add'](_0x14da3e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2ae201=>this['_model']['markers']['get'](_0x2ae201))['filter'](_0x29a7f9=>_0x29a7f9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xb379c=>{for(const _0x36533d of this['getMarkers']())_0xb379c['removeMarker'](_0x36533d);}),this['_markerNames']['clear']();}['removeMarker'](_0x2cbbe3){this['_model']['change'](_0x4c0411=>{_0x4c0411['removeMarker'](_0x2cbbe3);}),this['_markerNames']['delete'](_0x2cbbe3);}['addRange'](_0x3e887a){const _0x1f0d08='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x1f0d08),this['_model']['change'](_0x9b645a=>{_0x9b645a['addMarker'](_0x1f0d08,{'range':_0x3e887a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x519250){for(const _0x526259 of this['getRanges']())if(_0x526259['isIntersecting'](_0x519250))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4e8bed=>_0x4e8bed['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x317b12,_0x5318d5)=>[..._0x317b12,..._0x5318d5['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2e3669=this['getRanges']();if(0x1!=_0x2e3669['length'])return null;const _0x10038b=_0x2e3669[0x0],_0x286043=_0x10038b['start']['nodeAfter'],_0x5b8c6b=_0x10038b['end']['nodeBefore'];return _0x286043 instanceof _0x5deae5?_0x286043!=_0x5b8c6b?null:_0x286043: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 _0x257a37=[];let _0x44cf80=this['head'];for(;_0x44cf80;)_0x257a37['push'](_0x44cf80),_0x44cf80=_0x44cf80['next'];return _0x257a37;}['setAttribute'](_0x1cd08f,_0x362a97){const _0x1ed974=_0xd3c28b(this['attributes']);_0x5b6213(_0x1ed974,_0x1cd08f,_0x362a97),_0x3f9778(_0x1ed974,this['attributes'])||(this['attributes']=_0x1ed974,this['_onAttributesChange'](_0x1ed974));}['removeAttribute'](_0x35fb1b){const _0x21477b=_0xd3c28b(this['attributes']);_0x21df6e(_0x21477b,_0x35fb1b),_0x3f9778(_0x21477b,this['attributes'])||(this['attributes']=_0x21477b,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 _0x110ca2()['substr'](0x1,0x5);}}function o(_0x4cafdf,_0x1e766c,_0x5f171b){const _0x5417a0=_0x4cafdf['t'],t=_0x4cafdf['t'];switch(_0x1e766c){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x5f171b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5f171b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5f171b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5f171b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5f171b);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',_0x5f171b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5f171b);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x5f171b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5f171b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5f171b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5f171b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5f171b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5f171b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5f171b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5f171b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5f171b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5f171b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5f171b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5f171b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5f171b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5f171b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5f171b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5f171b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5f171b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5f171b);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'},_0x5f171b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5f171b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5f171b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5f171b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5f171b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5f171b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5f171b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5f171b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5f171b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5f171b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5f171b);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'},_0x5f171b);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x5f171b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5f171b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5f171b);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 _0x5417a0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5f171b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5417a0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5f171b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5f171b);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'},_0x5f171b);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'},_0x5f171b);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'},_0x5f171b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1e766c;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x59dede,_0x4dbdb5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x59dede,this['_locale']=_0x4dbdb5;}['getDescriptions'](_0x1c65e1){const _0x1cf7c3=[],_0x8fc0aa=new Set(),_0x52b958=new Set();for(let _0x1efd5a=0x0;_0x1efd5a<_0x1c65e1['length'];_0x1efd5a++){const _0x590a51=_0x1c65e1[_0x1efd5a];if(!_0x590a51['isInContent'])continue;const _0x493be8=this['_handleCustomCallbackDescription'](_0x590a51);if(_0x493be8){if(null!=_0x590a51['subType']){if(_0x8fc0aa['has'](_0x590a51['subType']))continue;_0x8fc0aa['add'](_0x590a51['subType']);}_0x1cf7c3['push'](_0x493be8);}else{if('attribute'==_0x590a51['type']){const _0x41d1f3=_0x590a51['data']['key'];if(_0x52b958['has'](_0x41d1f3))continue;_0x52b958['add'](_0x590a51['data']['key']),_0x41d1f3==m?this['_handleRenameSuggestionDescription'](_0x1cf7c3,_0x590a51):this['_handleAttributeSuggestionDescription'](_0x1cf7c3,_0x590a51);continue;}'insertion'!=_0x590a51['type']&&'deletion'!=_0x590a51['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1cf7c3,_0x590a51,_0x1c65e1[_0x1efd5a+0x1]);}}return this['_resolveDescriptionItems'](_0x1cf7c3);}['registerDescriptionCallback'](_0x5e352f){this['_customCallbacks']['push'](_0x5e352f);}['registerElementLabel'](_0x18c800,_0x1da527,_0x4787e4=_0x533dca['normal']){'function'==typeof _0x18c800?_0x32f2d5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x18c800,'label':_0x1da527,'priority':_0x4787e4}):this['_itemLabels']['set'](_0x18c800,_0x1da527);}['registerAttributeLabel'](_0x134ae1,_0x226ade){this['_attributeLabels']['set'](_0x134ae1,_0x226ade);}['getItemLabel'](_0x5d9650,_0x468870=0x1){let _0x3268bd;for(const _0x3e1c6f of this['_itemLabelsCallbacks'])if(_0x3e1c6f['matchingCallback'](_0x5d9650)){_0x3268bd=_0x3e1c6f['label'];break;}return _0x3268bd||(_0x3268bd=this['_itemLabels']['get'](_0x5d9650['name'])),_0x3268bd?_0x3268bd(_0x468870):0x1!==_0x468870?_0x468870+'\x20'+_0x5d9650['name']+'s':''+_0x5d9650['name'];}['_addDescriptionItems'](_0xc27aaa,_0x7066a4){const _0x47c0f2=_0x7066a4['getFirstRange']()['getWalker'](),_0x45f05e='insertion'==_0x7066a4['type']?'add':'remove';for(const _0x48b203 of _0x47c0f2){const _0x348cae=_0x48b203['item'],_0x55528d=_0xc27aaa[_0xc27aaa['length']-0x1];if(_0x348cae['is']('$textProxy'))_0x55528d&&_0x55528d['type']['indexOf']('Container')>-0x1&&_0xc27aaa['pop'](),_0x55528d&&'text'==_0x55528d['type']?_0x55528d[_0x45f05e]+=_0x348cae['data']:_0xc27aaa['push']({'type':'text','add':'add'==_0x45f05e?_0x348cae['data']:'','remove':'remove'==_0x45f05e?_0x348cae['data']:''});else{if(this['_schema']['isObject'](_0x348cae)){const _0x1b10d1=_0x348cae;if(_0x55528d&&_0x55528d['type']['indexOf']('Container')>-0x1&&_0xc27aaa['pop'](),'elementEnd'==_0x48b203['type'])continue;_0x55528d&&_0x55528d['type']==_0x45f05e+'Object'&&_0x55528d['element']['name']==_0x1b10d1['name']?_0x55528d['quantity']++:_0xc27aaa['push']({'type':_0x45f05e+'Object','element':_0x1b10d1,'quantity':0x1}),_0x47c0f2['skip'](_0x1c4fbe=>!('elementEnd'==_0x1c4fbe['type']&&_0x1c4fbe['item']==_0x348cae));}else{if(this['_schema']['checkChild'](_0x348cae,'$text')||_0x348cae['is']('element','softBreak')){const _0x5d4dc9=_0x348cae;if('add'==_0x45f05e&&'elementStart'==_0x48b203['type']||'remove'==_0x45f05e&&'elementEnd'==_0x48b203['type'])continue;if(_0x55528d&&-0x1==_0x55528d['type']['indexOf']('Container')){'text'==_0x55528d['type']&&(_0x55528d[_0x45f05e]+='\x0a');continue;}let _0x23414a;if(_0x23414a='add'==_0x45f05e?_0x5d4dc9['nextSibling']&&!this['_schema']['isObject'](_0x5d4dc9['nextSibling'])?_0x5d4dc9['nextSibling']:null:_0x5d4dc9['previousSibling']&&!this['_schema']['isObject'](_0x5d4dc9['previousSibling'])?_0x5d4dc9['previousSibling']:null,_0x5d4dc9['isEmpty']||_0x23414a&&_0x23414a['isEmpty']){const _0x330a05=_0x23414a&&_0x23414a['isEmpty']?_0x23414a:_0x5d4dc9;_0x55528d&&_0x55528d['type']==_0x45f05e+'EmptyContainer'&&_0x55528d['element']['name']==_0x330a05['name']?_0x55528d['quantity']++:_0xc27aaa['push']({'type':_0x45f05e+'EmptyContainer','element':_0x330a05,'quantity':0x1});}else _0xc27aaa['push']({'type':_0x45f05e+'Container','element':_0x5d4dc9});}}}}}['_resolveDescriptionItems'](_0xf60b05){const _0x5526d4=this['_locale'],_0x2906a6=[],_0x32590f=[],_0x525277=[];for(const _0x26fae1 of _0xf60b05)switch(_0x26fae1['type']){case'text':if(_0x26fae1['add']=_0x26fae1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x26fae1['remove']=_0x26fae1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x26fae1['add']&&''!=_0x26fae1['remove']){_0x2906a6['push']({'type':'replace','content':o(_0x5526d4,'REPLACE_TEXT',['\x22'+_0x26fae1['remove']+'\x22','\x22'+_0x26fae1['add']+'\x22'])});continue;}if(null!=_0x26fae1['add']['match'](/^ +$/)){_0x2906a6['push']({'type':'insertion','content':o(_0x5526d4,'*Insert:*\x20%0',o(_0x5526d4,'ELEMENT_SPACE',_0x26fae1['add']['length']))});continue;}if(null!=_0x26fae1['remove']['match'](/^ +$/)){_0x2906a6['push']({'type':'deletion','content':o(_0x5526d4,'*Remove:*\x20%0',o(_0x5526d4,'ELEMENT_SPACE',_0x26fae1['remove']['length']))});continue;}if(''!=_0x26fae1['add']){_0x2906a6['push']({'type':'insertion','content':o(_0x5526d4,'*Insert:*\x20%0','\x22'+_0x26fae1['add']+'\x22')});continue;}_0x2906a6['push']({'type':'deletion','content':o(_0x5526d4,'*Remove:*\x20%0','\x22'+_0x26fae1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2906a6['push']({'type':'insertion','content':o(_0x5526d4,'*Insert:*\x20%0',this['getItemLabel'](_0x26fae1['element'],_0x26fae1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2906a6['push']({'type':'deletion','content':o(_0x5526d4,'*Remove:*\x20%0',this['getItemLabel'](_0x26fae1['element'],_0x26fae1['quantity']))});continue;case'addContainer':_0x2906a6['push']({'type':'insertion','content':o(_0x5526d4,'*Split:*\x20%0',this['getItemLabel'](_0x26fae1['element'],_0x26fae1['quantity']))});continue;case'removeContainer':_0x2906a6['push']({'type':'deletion','content':o(_0x5526d4,'*Merge:*\x20%0',this['getItemLabel'](_0x26fae1['element'],_0x26fae1['quantity']))});continue;case'addFormat':_0x32590f['push'](_0x26fae1['key']);continue;case'removeFormat':_0x525277['push'](_0x26fae1['key']);continue;default:_0x2906a6['push'](_0x26fae1);}if(_0x32590f['length']){const _0x3b0692=_0x32590f['map'](_0x45db00=>this['_attributeLabels']['has'](_0x45db00)?this['_attributeLabels']['get'](_0x45db00):_0x45db00)['join'](',\x20');_0x2906a6['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3b0692)});}if(_0x525277['length']){const _0xf7d9d4=_0x525277['map'](_0xf5fe2=>this['_attributeLabels']['has'](_0xf5fe2)?this['_attributeLabels']['get'](_0xf5fe2):_0xf5fe2)['join'](',\x20');_0x2906a6['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xf7d9d4)});}return _0x2906a6;}['_handleCustomCallbackDescription'](_0x197929){for(const _0x4da164 of this['_customCallbacks']){const _0x4c3b31=_0x4da164(_0x197929);if(_0x4c3b31&&'type'in _0x4c3b31)return _0x4c3b31;}}['_handleAttributeSuggestionDescription'](_0x1b52e7,_0x5b1b52){const _0xa4927b=_0x5b1b52['data'],_0x271cdd=void 0x0===_0xa4927b['newValue']?'removeFormat':'addFormat';_0x1b52e7['push']({'type':_0x271cdd,'key':_0xa4927b['key']});}['_handleRenameSuggestionDescription'](_0x44be82,_0x937098){_0x44be82['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x937098['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x395743,_0x27c675,_0x4eb815){if(this['_addDescriptionItems'](_0x395743,_0x27c675),_0x4eb815&&_0x4eb815['getFirstRange']()&&!_0x27c675['getFirstRange']()['end']['isEqual'](_0x4eb815['getFirstRange']()['start'])){const _0xd176a=_0x395743[_0x395743['length']-0x1],_0x101aa0='insertion'==_0x27c675['type']?'add':'remove';_0xd176a&&'text'==_0xd176a['type']&&(_0xd176a[_0x101aa0]+='\x0a');}}}class O extends _0xfd4522{['afterInit'](){const _0x392133=this['editor'],_0x44c088=_0x392133['plugins']['get']('TrackChangesEditing');_0x392133['commands']['get']('showAIAssistant')&&_0x44c088['enableCommand']('showAIAssistant');}}class E extends _0xfd4522{['afterInit'](){const _0x865105=this['editor'],_0x9190df=_0x865105['locale'];if(!_0x865105['plugins']['has']('AlignmentEditing'))return;const _0x59a02e=_0x865105['plugins']['get']('TrackChangesEditing');_0x59a02e['enableDefaultAttributesIntegration']('alignment'),_0x59a02e['registerBlockAttribute']('alignment'),_0x59a02e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x9190df,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4434e7=this['editor'],_0x40dfe9=_0x4434e7['locale'];_0x4434e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf7ffa1=>{if('formatBlock'!=_0xf7ffa1['type'])return;const {data:_0x4aaff0}=_0xf7ffa1;if(_0x4aaff0&&'alignment'==_0x4aaff0['commandName']){const _0x2a5739=_0x4aaff0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x40dfe9,'*Format:*\x20%0',function(_0x21c5f7){switch(_0x21c5f7){case'left':return o(_0x40dfe9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x40dfe9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x40dfe9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x40dfe9,'FORMAT_JUSTIFY_TEXT');}}(_0x2a5739))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xfd4522{['afterInit'](){const _0x51b86d=this['editor'],_0x1a9424=_0x51b86d['plugins']['get']('TrackChangesEditing'),_0x2ae23c=_0x51b86d['locale'];for(const _0x55e9ce of ti){if(!_0x51b86d['plugins']['has'](_0x55e9ce))continue;const _0x303d06=_0x55e9ce['slice'](0x0,-0x7)['toLowerCase'](),_0x22ab5e='FORMAT_'+_0x303d06['toUpperCase']();_0x1a9424['enableDefaultAttributesIntegration'](_0x303d06),_0x1a9424['registerInlineAttribute'](_0x303d06),_0x1a9424['descriptionFactory']['registerAttributeLabel'](_0x303d06,o(_0x2ae23c,_0x22ab5e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x377260=this['editor'],_0x58b275=_0x377260['locale'],_0x1b2598=_0x377260['plugins']['get']('TrackChangesEditing');function _0x1338f1(_0x2caa63,_0x5310bc){_0x1b2598['descriptionFactory']['registerDescriptionCallback'](_0x11ee69=>{if('formatInline'!=_0x11ee69['type'])return;const {data:_0x5acf83}=_0x11ee69;return _0x5acf83&&_0x5acf83['commandName']===_0x2caa63?_0x5acf83['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58b275,'*Format:*\x20%0',_0x5310bc)}:{'type':'format','content':o(_0x58b275,'*Remove\x20format:*\x20%0',_0x5310bc)}:void 0x0;});}_0x1338f1('bold',o(_0x58b275,'FORMAT_BOLD')),_0x1338f1('italic',o(_0x58b275,'FORMAT_ITALIC')),_0x1338f1('underline',o(_0x58b275,'FORMAT_UNDERLINE')),_0x1338f1('code',o(_0x58b275,'FORMAT_CODE')),_0x1338f1('strikethrough',o(_0x58b275,'FORMAT_STRIKETHROUGH')),_0x1338f1('subscript',o(_0x58b275,'FORMAT_SUBSCRIPT')),_0x1338f1('superscript',o(_0x58b275,'FORMAT_SUPERSCRIPT'));}}class U extends _0xfd4522{['afterInit'](){const _0x50c5cb=this['editor'],_0x50c5a2=_0x50c5cb['locale'];if(!_0x50c5cb['plugins']['has']('BlockQuoteEditing'))return;const _0x5dfa87=_0x50c5cb['plugins']['get']('TrackChangesEditing'),_0x23bd79=this['editor']['commands']['get']('blockQuote');_0x5dfa87['enableCommand']('blockQuote',(_0x10a94f,_0x49a74f={})=>{const _0x21f05e=this['editor']['model']['document']['selection'],_0x62d13e=_0x49a74f&&void 0x0!==_0x49a74f['forceValue']?_0x49a74f['forceValue']:!_0x23bd79['value'];let _0x534301=[];if(_0x62d13e){const _0x1f6c4d=Array['from'](_0x21f05e['getSelectedBlocks']())['filter'](_0x311834=>oo(_0x311834)||function(_0x24b0d2,_0x22ddbf){const _0x536532=_0x22ddbf['checkChild'](_0x24b0d2['parent'],'blockQuote'),_0x2eef7e=_0x22ddbf['checkChild'](['$root','blockQuote'],_0x24b0d2);return _0x536532&&_0x2eef7e;}(_0x311834,this['editor']['model']['schema']));_0x534301=to(_0x1f6c4d,_0x50c5cb['model']);}else{const _0x5000d0=Array['from'](_0x21f05e['getSelectedBlocks']())['filter'](_0x23cd2a=>oo(_0x23cd2a));_0x534301=to(_0x5000d0,_0x50c5cb['model']);}_0x50c5cb['model']['change'](()=>{for(const _0x451ff1 of _0x534301)_0x5dfa87['markBlockFormat'](_0x451ff1,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x62d13e}]});});}),_0x5dfa87['descriptionFactory']['registerDescriptionCallback'](_0xd4e8ae=>{const {data:_0x402d3c}=_0xd4e8ae;if(_0x402d3c&&'blockQuote'==_0x402d3c['commandName']){const _0x54b2a0=o(_0x50c5a2,'ELEMENT_BLOCK_QUOTE');return _0x402d3c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x50c5a2,'*Set\x20format:*\x20%0',_0x54b2a0)}:{'type':'format','content':o(_0x50c5a2,'*Remove\x20format:*\x20%0',_0x54b2a0)};}});}}function oo(_0x4c31f7){return'blockQuote'==_0x4c31f7['parent']['name'];}class V extends _0xfd4522{['afterInit'](){const _0x3c8d2f=this['editor'],_0x524f1b=_0x3c8d2f['locale'],_0x1cf6ee=_0x3c8d2f['plugins']['get']('TrackChangesEditing');_0x3c8d2f['plugins']['has']('BookmarkEditing')&&(_0x1cf6ee['enableCommand']('insertBookmark'),_0x1cf6ee['enableDefaultAttributesIntegration']('updateBookmark'),_0x1cf6ee['registerBlockAttribute']('bookmarkId'),_0x1cf6ee['descriptionFactory']['registerDescriptionCallback'](_0x40c17d=>{if('insertion'!=_0x40c17d['type']&&'deletion'!=_0x40c17d['type']&&'attribute'!=_0x40c17d['type'])return;const _0x3e561b=_0x40c17d['getContainedElement']();if(null==_0x3e561b)return;if(!_0x3e561b['is']('element','bookmark'))return;const _0x3361ec=_0x3e561b['getAttribute']('bookmarkId');if('insertion'==_0x40c17d['type'])return{'type':'insertion','content':o(_0x524f1b,'*Insert:*\x20%0','\x22'+_0x3361ec+'\x22\x20'+o(_0x524f1b,'ELEMENT_BOOKMARK'))};if('deletion'==_0x40c17d['type'])return{'type':'deletion','content':o(_0x524f1b,'*Remove:*\x20%0','\x22'+_0x3361ec+'\x22\x20'+o(_0x524f1b,'ELEMENT_BOOKMARK'))};const {data:_0x2d3d14}=_0x40c17d;if(!_0x2d3d14||'bookmarkId'!=_0x2d3d14['key'])return;return{'type':'format','content':o(_0x524f1b,'*Set\x20bookmark:*\x20%0','\x22'+_0x2d3d14['newValue']+'\x22')};}));}}class F extends _0xfd4522{['afterInit'](){const _0xa85e41=this['editor'];_0xa85e41['plugins']['has']('CaseChange')&&(_0xa85e41['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xa85e41['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xa85e41['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xfd4522{['afterInit'](){const _0x2237ea=this['editor'];_0x2237ea['commands']['get']('ckbox')&&_0x2237ea['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xfd4522{['afterInit'](){const _0x12ee37=this['editor'];if(!_0x12ee37['plugins']['has']('CodeBlock'))return;const _0x1a5676=_0x12ee37['plugins']['get']('TrackChangesEditing'),_0x3cd68c=_0x12ee37['locale'],_0x34f742=_0x12ee37['config']['get']('codeBlock')['languages'],_0x5b467b=_0x12ee37['commands']['get']('codeBlock');_0x1a5676['enableCommand']('indentCodeBlock'),_0x1a5676['enableCommand']('outdentCodeBlock'),_0x1a5676['enableCommand']('codeBlock',(_0x123719,_0x313566={})=>{const _0x40ac68=_0x12ee37['model'],_0x4a0147=_0x12ee37['model']['document']['selection'],_0x2c1cb9=_0x313566&&void 0x0!==_0x313566['forceValue']?_0x313566['forceValue']:!_0x5b467b['value'];let _0x3a53ee;_0x313566['language']||(_0x313566['language']=_0x34f742[0x0]['language']),_0x3a53ee=_0x2c1cb9?Array['from'](_0x4a0147['getSelectedBlocks']())['filter'](_0x4da71f=>co(_0x4da71f)||function(_0x1eaf13,_0x321ee0){if(_0x1eaf13['is']('rootElement')||_0x321ee0['isLimit'](_0x1eaf13))return!0x1;return _0x321ee0['checkChild'](_0x1eaf13['parent'],'codeBlock');}(_0x4da71f,_0x40ac68['schema'])):Array['from'](_0x4a0147['getSelectedBlocks']())['filter'](_0x55e18c=>co(_0x55e18c));const _0x45eb78=to(_0x3a53ee,_0x40ac68);_0x40ac68['change'](()=>{for(const _0x38fb02 of _0x45eb78)_0x1a5676['markBlockFormat'](_0x38fb02,{'commandName':'codeBlock','commandParams':[{..._0x313566,'forceValue':_0x2c1cb9}],'formatGroupId':'blockName'});});}),(_0x1a5676['descriptionFactory']['registerElementLabel']('codeBlock',_0x9847b2=>o(_0x3cd68c,'ELEMENT_CODE_BLOCK',_0x9847b2)),_0x1a5676['descriptionFactory']['registerDescriptionCallback'](_0xe12fb4=>{if('formatBlock'!=_0xe12fb4['type'])return;const _0x22a874=_0x3cd68c['t'],{data:_0x14e7bd}=_0xe12fb4;if(!_0x14e7bd||'codeBlock'!=_0x14e7bd['commandName'])return;const _0x2bc9e0=_0x14e7bd['commandParams'][0x0]['language'],_0x45c21b=_0x22a874(_0x34f742['find'](_0x2462b1=>_0x2462b1['language']===_0x2bc9e0)['label'])['toLowerCase']();return _0x14e7bd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3cd68c,'*Set\x20format:*\x20%0',o(_0x3cd68c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x45c21b+')')}:{'type':'format','content':o(_0x3cd68c,'*Remove\x20format:*\x20%0',o(_0x3cd68c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1d74cb){return'codeBlock'==_0x1d74cb['name'];}class J extends _0xfd4522{['afterInit'](){const _0x5120d3=this['editor'];if(!_0x5120d3['plugins']['has']('CommentsEditing'))return;_0x5120d3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3efc77,_0x1f5050,_0x22e153){const _0x54d935=[];for(const _0x2665b5 of _0x1f5050['getItems']())_0x2665b5['hasAttribute'](_0x3efc77)&&_0x54d935['push'](_0x22e153['createRangeOn'](_0x2665b5));return _0x54d935;}function De(_0xa7c930,_0x613dda,{showActiveMarker:_0x14b20a=!0x0}={}){const _0xed5c81=_0xa7c930['plugins']['get']('TrackChangesEditing');return(_0x7eabfe,_0x5bd0bc,_0x169f71)=>{if(!_0x169f71['consumable']['test'](_0x5bd0bc['markerRange'],_0x7eabfe['name']))return;const _0x1e5901=_0x5bd0bc['markerRange']['getWalker'](),_0x10825e=_0x5bd0bc['markerRange']['start'],_0x711ef0=_0xa7c930['model']['schema'];let _0xb177e3=null,_0x30b21d=null,_0xbe84dd=!0x1,_0x500414=!0x1;for(const _0x57a4d4 of _0x1e5901){const _0xf66ccc=_0x57a4d4['item'];_0xbe84dd=_0xbe84dd||_0x711ef0['isContent'](_0xf66ccc);const _0x59119c=_0x169f71['mapper']['toViewElement'](_0xf66ccc);if(_0x59119c&&_0x59119c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x57a4d4['type']&&(_0x711ef0['isBlock'](_0xf66ccc)&&!_0x711ef0['isLimit'](_0xf66ccc)&&(_0xf66ccc['nextSibling']||_0x10825e['isAtEnd']?_0xb177e3&&_0xb177e3['parent']==_0xf66ccc||(_0xb177e3=_0xf66ccc,_0x47f2f7(_0x57a4d4['previousPosition']),_0x500414=!0x0):_0x30b21d=_0x30b21d||_0x57a4d4['previousPosition']));}function _0x47f2f7(_0x3754c9){const {id:_0x34bac5,authorId:_0x5f4c29}=_0xed5c81['_splitMarkerName'](_0x5bd0bc['markerName']),_0x3dded1=_0x169f71['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x613dda,'data-suggestion':_0x34bac5,'data-author-id':_0x5f4c29}),_0x512e9c=_0x169f71['mapper']['toViewPosition'](_0x3754c9);_0x14b20a&&_0xed5c81['activeMarkers']['includes'](_0x5bd0bc['markerName'])&&_0x169f71['writer']['addClass']('ck-suggestion-marker--active',_0x3dded1),_0x169f71['writer']['insert'](_0x512e9c,_0x3dded1),_0x169f71['mapper']['bindElementToMarker'](_0x3dded1,_0x5bd0bc['markerName']);}_0xbe84dd||_0x500414||!_0x30b21d||_0x47f2f7(_0x30b21d);};}class K extends _0xfd4522{static get['requires'](){return[_0x2796f0];}['init'](){const _0x3159a4=this['editor'],_0x4b6177=_0x3159a4['plugins']['get']('TrackChangesEditing');_0x4b6177['enableCommand']('delete');const _0xb368f8=_0x3159a4['commands']['get']('deleteForward');_0x4b6177['enableCommand']('deleteForward',(_0x1746a7,_0x3122ae={})=>{const _0x1dd7d1=_0x3159a4['model']['createSelection'](_0x3159a4['model']['document']['selection']);_0x1dd7d1['isCollapsed']&&_0x3159a4['model']['modifySelection'](_0x1dd7d1,{'direction':'forward','unit':_0x3122ae['unit']});const _0x2182fc=_0x1dd7d1['getFirstRange'](),_0x415760=_0x217d71['fromRange'](_0x2182fc);let _0x57fb39;_0x1746a7(_0x3122ae),_0x57fb39='$graveyard'==_0x415760['root']['rootName']?_0x3159a4['model']['createRange'](_0x2182fc['start']):_0x3159a4['model']['createRange'](_0x415760['start'],_0x415760['end']),_0x415760['detach'](),_0x3159a4['model']['enqueueChange'](_0xb368f8['buffer']['batch'],_0x1ab30a=>{_0xb368f8['buffer']['lock'](),_0x1ab30a['setSelection'](_0x1ab30a['createRange'](_0x57fb39['end'])),_0xb368f8['buffer']['unlock']();});}),_0x3159a4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x3159a4,'merge'),{'priority':'high'}),_0x3159a4['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x8ee296,_0x23b2fd,_0x237227)=>{_0x237227['options']['showSuggestionHighlights']&&De(_0x3159a4,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x8ee296,_0x23b2fd,_0x237227);},{'priority':'high'}),_0x3159a4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x391378,_0x4d5b8e,_0x3c2b86)=>{const _0x1e6c33=_0x3c2b86['mapper']['markerNameToElements'](_0x4d5b8e['markerName']);if(_0x1e6c33){for(const _0x217b0c of _0x1e6c33)_0x217b0c['is']('uiElement')&&(_0x3c2b86['mapper']['unbindElementFromMarkerName'](_0x217b0c,_0x4d5b8e['markerName']),_0x3c2b86['writer']['remove'](_0x217b0c));}},{'priority':'high'});}}class H extends _0xfd4522{['afterInit'](){const _0x10ee9f=this['editor'];if(!_0x10ee9f['plugins']['has']('ListEditing'))return;const _0xc291de=_0x10ee9f['locale'],_0xfd954a=_0x10ee9f['plugins']['get']('TrackChangesEditing'),_0x4962f8=_0x10ee9f['plugins']['has']('TodoListEditing'),_0x2fc2a3=!!_0x10ee9f['config']['get']('list.multiBlock');function _0x44831b(_0x44ad39){return{'type':'format','content':''+o(_0xc291de,'*Set\x20format:*\x20%0',_0x44ad39)};}function _0x9a4ff8(_0x11cda9){return{'type':'format','content':''+o(_0xc291de,'*Remove\x20format:*\x20%0',_0x11cda9)};}_0xfd954a['enableDefaultAttributesIntegration']('numberedList'),_0xfd954a['enableDefaultAttributesIntegration']('bulletedList'),_0xfd954a['enableDefaultAttributesIntegration']('customNumberedList'),_0xfd954a['enableDefaultAttributesIntegration']('customBulletedList'),_0xfd954a['enableDefaultAttributesIntegration']('indentList'),_0xfd954a['enableDefaultAttributesIntegration']('outdentList'),_0xfd954a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xfd954a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xfd954a['registerBlockAttribute']('listItemId'),_0xfd954a['registerBlockAttribute']('listType'),_0xfd954a['registerBlockAttribute']('listIndent'),_0x2fc2a3&&(_0xfd954a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xfd954a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4962f8&&(_0xfd954a['enableDefaultAttributesIntegration']('todoList'),_0xfd954a['enableDefaultAttributesIntegration']('checkTodoList'),_0xfd954a['registerBlockAttribute']('todoListChecked'),_0xfd954a['descriptionFactory']['registerDescriptionCallback'](_0xc4f3ce=>{const {data:_0x47cfbc}=_0xc4f3ce;if(_0x47cfbc&&'todoListChecked'==_0x47cfbc['key'])return{'type':'format','content':_0x47cfbc['newValue']?o(_0xc291de,'*Check\x20item*'):o(_0xc291de,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x36f5e7=>{if(_0x36f5e7['batch']['isUndo'])return!0x1;let _0x178035=!0x1;const _0x14c3d3=_0xfd954a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e9344=>'todoListChecked'===_0xfd954a['_getAttributeKey'](_0x3e9344));for(const _0x41cd9e of _0x14c3d3){'todo'!=_0x41cd9e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xfd954a['_findSuggestions'](_0x41cd9e['getFirstRange'](),'attribute')['find'](_0x3cbc7b=>'listType'===_0xfd954a['_getAttributeKey'](_0x3cbc7b['suggestion']))||(_0x36f5e7['removeMarker'](_0x41cd9e['getFirstMarker']()),_0x178035=!0x0));}return _0x178035;})),_0xfd954a['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xc291de,'FORMAT_INDENT'));const _0xf688ea={'type':'format','content':''};_0xfd954a['descriptionFactory']['registerDescriptionCallback'](_0x785f74=>{const {data:_0xe3ec95}=_0x785f74;if(!_0xe3ec95||'listType'!=_0xe3ec95['key'])return;let _0x3fe112=_0x785f74['head'];for(;_0x3fe112;){if(_0x3fe112['data']&&(('listStyle'==_0x3fe112['data']['key']||'listMarkerStyle'==_0x3fe112['data']['key'])&&(_0x3fe112['data']['newValue']&&'default'!=_0x3fe112['data']['newValue']||'default'!=_0x3fe112['data']['oldValue']&&!_0xe3ec95['newValue'])||!_0x2fc2a3&&_0x3fe112['data']['key']==m))return _0xf688ea;_0x3fe112=_0x3fe112['next'];}if(null==_0xe3ec95['newValue'])switch(_0xe3ec95['oldValue']){case'bulleted':return _0x9a4ff8(o(_0xc291de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9a4ff8(o(_0xc291de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9a4ff8(o(_0xc291de,'ELEMENT_TODO_LIST'));}switch(_0xe3ec95['newValue']){case'bulleted':return _0x44831b(o(_0xc291de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x44831b(o(_0xc291de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x44831b(o(_0xc291de,'ELEMENT_TODO_LIST'));}}),_0xfd954a['descriptionFactory']['registerDescriptionCallback'](_0x4ce792=>{const {data:_0x18cb4c}=_0x4ce792;if(_0x18cb4c&&'listIndent'==_0x18cb4c['key'])return null==_0x18cb4c['newValue']||null==_0x18cb4c['oldValue']&&0x0==_0x18cb4c['newValue']?_0xf688ea:void 0x0;}),_0xfd954a['descriptionFactory']['registerDescriptionCallback'](_0x321ad5=>{if('attribute'!=_0x321ad5['type'])return;const {data:_0xaa2329}=_0x321ad5;if(!_0xaa2329||'listItemId'!=_0xaa2329['key'])return;const _0x69db=Te(_0x321ad5);return'newValue'==_0x69db?{'type':'format','content':o(_0xc291de,'*Merge:*\x20list\x20item')}:'oldValue'==_0x69db?{'type':'format','content':o(_0xc291de,'*Split:*\x20list\x20item')}:_0xf688ea;}),_0x10ee9f['model']['document']['registerPostFixer'](_0x7843e=>this['listItemIdFixer'](_0x7843e)),_0x10ee9f['model']['document']['registerPostFixer'](_0x4db15c=>this['noTrackChangesFixer'](_0x4db15c)),_0x10ee9f['model']['document']['on']('change:data',(_0x4f2333,_0x319b2b)=>{if(_0x319b2b['isUndo']||!_0x319b2b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x277262){if(_0x277262['batch']['isUndo']||!_0x277262['batch']['isLocal'])return!0x1;let _0xa1f947=!0x1;const _0x65d9a7=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5846a8=>_0x5846a8['data']&&'listItemId'==_0x5846a8['data']['key'])['filter'](_0x6be0ab=>_0x6be0ab['data']['newValue']&&_0x6be0ab['data']['oldValue']);for(const _0x507a0f of _0x65d9a7)Te(_0x507a0f)||(_0x277262['removeMarker'](_0x507a0f['getFirstMarker']()),_0xa1f947=!0x0);return _0xa1f947;}['noTrackChangesFixer'](_0x4c3629){if(_0x4c3629['batch']['isUndo']||!_0x4c3629['batch']['isLocal'])return!0x1;const _0x409362=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x409362['trackChangesCommand']['value'])return!0x1;let _0x2d2873=!0x1;const _0x261d8a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4c1658=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xf1ead6=>'attribute'==_0xf1ead6['type'])['filter'](_0x1b65cc=>_0x261d8a['includes'](_0x1b65cc['attributeKey']));if(0x0==_0x4c1658['length'])return _0x2d2873;for(const _0x29612e of _0x4c1658){const _0x1ef2b1=_0x409362['_findSuggestions'](_0x29612e['range'],'attribute')['filter'](_0x287df6=>!_0x287df6['meta']['isNextTo'])['map'](_0x425ae6=>_0x425ae6['suggestion'])['filter'](_0x3aa016=>{const _0x48570f=_0x409362['_getAttributeKey'](_0x3aa016);return _0x261d8a['includes'](_0x48570f);});if(_0x1ef2b1['length']){for(const _0x32052c of _0x1ef2b1)_0x4c3629['removeMarker'](_0x32052c['getFirstMarker']());_0x2d2873=!0x0;}}return _0x2d2873;}['assureChains'](){const _0x24483a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f7db5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x57e229;const _0x29b7f7=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x43f6ef=>{if(_0x43f6ef['data']['oldRange']||!_0x43f6ef['data']['newRange'])return null;if(!_0x43f6ef['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x11f91c}=_0x24483a['_splitMarkerName'](_0x43f6ef['name']);if(!_0x24483a['hasSuggestion'](_0x11f91c))return null;const _0x23c5d0=_0x24483a['getSuggestion'](_0x11f91c);return _0x3f7db5['includes'](_0x23c5d0['data']['key']);})['map'](_0x27171e=>{const {id:_0x28a304}=_0x24483a['_splitMarkerName'](_0x27171e['name']),_0x1f3bf1=_0x24483a['getSuggestion'](_0x28a304);return _0x57e229=_0x1f3bf1['attributes']['groupId'],_0x1f3bf1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x29b7f7['size'])return;const _0x5380cd=_0x24483a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50e53a=>'attribute'==_0x50e53a['type']&&_0x50e53a['data']&&_0x3f7db5['includes'](_0x50e53a['data']['key'])&&_0x50e53a['attributes']['groupId']!=_0x57e229)['map'](_0x41a742=>({'listItem':_0x41a742['getFirstRange']()['start']['nodeAfter'],'groupId':_0x41a742['attributes']['groupId']})),_0x47b035=new Set();for(const {groupId:_0x2b8260,listItem:_0xd1bcfb}of _0x5380cd)_0x29b7f7['has'](_0xd1bcfb)&&_0x47b035['add'](_0x2b8260);for(const _0x40e10b of _0x24483a['getSuggestions']())_0x47b035['has'](_0x40e10b['attributes']['groupId'])&&_0x40e10b['setAttribute']('groupId',_0x57e229);}['_supportLegacySuggestions'](){const _0x311858=this['editor'],_0x18f1f8=_0x311858['locale'],_0x473913=_0x311858['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x473913['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x319ff6,_0x3cda78){const _0x538c15=[];for(let _0x21646e of _0x319ff6)_0x21646e['start']['nodeAfter']===_0x21646e['end']['parent']&&(_0x21646e=_0x311858['model']['createRange'](_0x311858['model']['createPositionAt'](_0x21646e['start']['nodeAfter'],0x0))),_0x538c15['push'](_0x21646e);_0x311858['model']['change'](_0x59af67=>{const _0x203439=_0x311858['model']['document']['selection'],_0xf6d445=Array['from'](_0x203439['getRanges']())['map'](_0x4936c1=>_0x217d71['fromRange'](_0x4936c1));_0x59af67['setSelection'](_0x538c15),_0x311858['commands']['get'](_0x3cda78['commandName'])['refresh'](),_0x3cda78['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x311858['execute'](_0x3cda78['commandName'],..._0x3cda78['commandParams']),_0x59af67['setSelection'](_0xf6d445);for(const _0x734c3f of _0xf6d445)_0x734c3f['detach']();});}),_0x473913['descriptionFactory']['registerElementLabel'](function(_0x19541d){const _0x5f27f2=!_0x311858['model']['schema']['isObject'](_0x19541d),_0x4fbe55=_0x19541d['previousSibling'],_0x5e5603=_0x19541d['nextSibling'],_0x5950c8=_0x19541d['getAttribute']('listItemId'),_0x2b86f9=!_0x4fbe55||_0x4fbe55['getAttribute']('listItemId')!==_0x5950c8,_0x11056a=!_0x5e5603||_0x5e5603['getAttribute']('listItemId')!==_0x5950c8;return _0x5f27f2&&Boolean(_0x5950c8)&&_0x2b86f9&&_0x11056a;},_0x56e829=>o(_0x18f1f8,'ELEMENT_LIST_ITEM',_0x56e829));}['_registerLegacyDescription'](){const _0xdb2ec5=this['editor'],_0x37b5d7=_0xdb2ec5['locale'];function _0x2a0282(_0x3af705){const _0x449010=_0xdb2ec5['commands']['get']('bulletedList')['value'],_0x2fe7a1=_0xdb2ec5['commands']['get']('numberedList')['value'];return'numberedList'===_0x3af705?_0x449010:_0x2fe7a1;}_0xdb2ec5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5aa69a){if('formatBlock'!=_0x5aa69a['type'])return;const {data:_0x2134dd}=_0x5aa69a;if(!_0x2134dd)return;let _0x4160ff,_0xc3ee3b,_0x24a711,_0x1f2432;switch(_0x2134dd['commandName']){case'bulletedList':_0x24a711=_0x2134dd['commandParams'][0x0]['forceValue'],_0x1f2432=_0x2a0282(_0x2134dd['commandName']),_0x4160ff=_0x24a711?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f2432&&_0xdb2ec5['config']['get']('list.multiBlock')||(_0x4160ff='*Change\x20to:*\x20%0'),_0xc3ee3b={'type':'format','content':o(_0x37b5d7,_0x4160ff,o(_0x37b5d7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x24a711=_0x2134dd['commandParams'][0x0]['forceValue'],_0x1f2432=_0x2a0282(_0x2134dd['commandName']),_0x4160ff=_0x24a711?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f2432&&_0xdb2ec5['config']['get']('list.multiBlock')||(_0x4160ff='*Change\x20to:*\x20%0'),_0xc3ee3b={'type':'format','content':o(_0x37b5d7,_0x4160ff,o(_0x37b5d7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4160ff='*Indent:*\x20%0',_0xc3ee3b={'type':'format','content':o(_0x37b5d7,_0x4160ff,o(_0x37b5d7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4160ff=function(_0x4c9b4e){const _0x594be7=_0x4c9b4e['getFirstRange']();let _0x4f36e6=_0x594be7['start']['nodeAfter'];for(;_0x4f36e6&&_0x594be7['containsItem'](_0x4f36e6);){if(_0x4f36e6['getAttribute']('listIndent')>0x0)return!0x1;_0x4f36e6=_0x4f36e6['nextSibling'];}return!0x0;}(_0x5aa69a)?o(_0x37b5d7,'*Format:*\x20remove\x20from\x20%0',o(_0x37b5d7,function(_0x1c12af){return'ELEMENT_'+_0x1c12af['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5aa69a))):o(_0x37b5d7,'*Outdent:*\x20%0',o(_0x37b5d7,'ELEMENT_LIST_ITEM')),_0xc3ee3b={'type':'format','content':_0x4160ff};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2134dd['multipleBlocks']&&(_0x4160ff='*Merge:*\x20%0',_0xc3ee3b={'type':'deletion','content':o(_0x37b5d7,_0x4160ff,o(_0x37b5d7,'ELEMENT_LIST_ITEM'))});}return _0xc3ee3b;});}}function Te(_0x284d90){let _0x224694=_0x284d90['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x224694;){const _0x562138=_0x224694['getAttribute']('listItemId');if(!_0x562138)return!0x1;if(_0x562138==_0x284d90['data']['newValue'])return'newValue';if(_0x562138==_0x284d90['data']['oldValue'])return'oldValue';_0x224694=_0x224694['previousSibling'];}return!0x1;}class q extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xc4702c=this['editor']['config']['get']('list.properties'),_0x42066d=this['editor']['plugins']['get']('TrackChangesEditing');_0xc4702c['styles']&&(_0x42066d['enableDefaultAttributesIntegration']('listStyle'),_0x42066d['registerBlockAttribute']('listStyle')),_0xc4702c['reversed']&&(_0x42066d['enableDefaultAttributesIntegration']('listReversed'),_0x42066d['registerBlockAttribute']('listReversed')),_0xc4702c['startIndex']&&(_0x42066d['enableDefaultAttributesIntegration']('listStart'),_0x42066d['registerBlockAttribute']('listStart'));const _0x8483da={'type':'format','content':''};_0x42066d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3522d2=this['editor']['locale'];_0x42066d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3522d2,'FORMAT_LIST_REVERSED')),_0x42066d['descriptionFactory']['registerDescriptionCallback'](_0x40a432=>{const {data:_0x324a95}=_0x40a432;if(_0x324a95&&'listReversed'==_0x324a95['key'])return null==_0x324a95['newValue']||0x0==_0x324a95['newValue']&&null==_0x324a95['oldValue']?_0x8483da:void 0x0;}),_0x42066d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3522d2,'FORMAT_LIST_START')),_0x42066d['descriptionFactory']['registerDescriptionCallback'](_0xa149b5=>{const {data:_0x4f77e7}=_0xa149b5;if(_0x4f77e7&&'listStart'==_0x4f77e7['key'])return null==_0x4f77e7['newValue']||0x1==_0x4f77e7['newValue']&&null==_0x4f77e7['oldValue']?_0x8483da:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4dc4d3=>{if(_0x4dc4d3['batch']['isUndo'])return!0x1;let _0x5c1bfd=!0x1;const _0x4a9298=_0x42066d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30b4c4=>{const _0x1d2621=_0x42066d['_getAttributeKey'](_0x30b4c4);return'listStart'==_0x1d2621||'listReversed'==_0x1d2621;});for(const _0xa33863 of _0x4a9298){const _0x46e79e=_0xa33863['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x46e79e||'customNumbered'==_0x46e79e)continue;_0x42066d['_findSuggestions'](_0xa33863['getFirstRange'](),'attribute')['find'](_0x2e734b=>'listType'==_0x42066d['_getAttributeKey'](_0x2e734b['suggestion']))||(_0x4dc4d3['removeMarker'](_0xa33863['getFirstMarker']()),_0x5c1bfd=!0x0);}return _0x5c1bfd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2d5f73){const _0x1f086c=this['editor']['locale'],{data:_0x31b05d}=_0x2d5f73,_0x13da54={'type':'format','content':''};if(!_0x31b05d||'listStyle'!=_0x31b05d['key'])return;if(!_0x31b05d['oldValue'])return'default'==_0x31b05d['newValue']?_0x13da54:{'type':'format','content':''+o(_0x1f086c,'*Set\x20format:*\x20%0',o(_0x1f086c,this['_getTranslationKeyForListStyle'](_0x31b05d['newValue'])))};if(!_0x31b05d['newValue']){if('default'==_0x31b05d['oldValue'])return _0x13da54;let _0x21e2b7=_0x2d5f73['head'];for(;_0x21e2b7;){if(_0x21e2b7['data']&&'listType'==_0x21e2b7['data']['key']&&_0x21e2b7['data']['newValue'])return _0x13da54;_0x21e2b7=_0x21e2b7['next'];}return{'type':'format','content':''+o(_0x1f086c,'*Remove\x20format:*\x20%0',o(_0x1f086c,this['_getTranslationKeyForListStyle'](_0x31b05d['oldValue'])))};}if('default'!=_0x31b05d['newValue'])return{'type':'format','content':''+o(_0x1f086c,'*Set\x20format:*\x20%0',o(_0x1f086c,this['_getTranslationKeyForListStyle'](_0x31b05d['newValue'])))};let _0x394691=_0x2d5f73['head'];for(;_0x394691;){if(_0x394691['data']&&'listType'==_0x394691['data']['key']&&_0x394691['data']['newValue']&&_0x394691['data']['oldValue'])return _0x13da54;_0x394691=_0x394691['next'];}return{'type':'format','content':o(_0x1f086c,'*Set\x20format:*\x20%0',o(_0x1f086c,'ELEMENT_'+_0x2d5f73['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3f99f8=this['editor'],_0x275b9a=_0x3f99f8['locale'];_0x3f99f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x90def=>{if('formatBlock'!=_0x90def['type'])return;const {data:_0x5e2f02}=_0x90def;if(!_0x5e2f02)return;let _0x47674,_0x157be6;switch(_0x5e2f02['commandName']){case'listStyle':_0x47674='*Change\x20to:*\x20%0',_0x157be6={'type':'format','content':o(_0x275b9a,_0x47674,o(_0x275b9a,this['_getTranslationKeyForListStyle'](_0x5e2f02['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47674=_0x5e2f02['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x157be6={'type':'format','content':o(_0x275b9a,_0x47674)};break;case'listStart':_0x47674='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x157be6={'type':'format','content':o(_0x275b9a,_0x47674,_0x5e2f02['commandParams'][0x0]['startIndex'])};}return _0x157be6;});}['_getTranslationKeyForListStyle'](_0xe8bb9f){return'ELEMENT_'+function(_0x268b16){if(Se['includes'](_0x268b16))return'bulleted';if(_e['includes'](_0x268b16))return'numbered';return null;}(_0xe8bb9f)['toUpperCase']()+'_LIST_'+_0xe8bb9f['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xfd4522{['afterInit'](){const _0x5c225a=this['editor'];_0x5c225a['commands']['get']('emoji')&&_0x5c225a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xfd4522{static get['requires'](){return[_0x501db2];}['init'](){const _0x26352b=this['editor'],_0x3c0c0c=_0x26352b['plugins']['get']('TrackChangesEditing'),_0x1dc0d2=_0x26352b['commands']['get']('enter');_0x3c0c0c['enableCommand']('enter',()=>{_0x26352b['model']['change'](_0x1ac712=>{const _0x11b41e=_0x26352b['model']['document']['selection'],_0x3f4c09=_0x11b41e['getFirstPosition'](),_0x2499a6=_0x217d71['fromRange'](_0x11b41e['getFirstRange']());if(_0x1dc0d2['enterBlock'](_0x1ac712)){const _0x2afa02=_0x26352b['model']['createPositionAt'](_0x3f4c09['parent']['nextSibling'],0x0),_0x5c3172=_0x1ac712['createRange'](_0x3f4c09,_0x2afa02);_0x3c0c0c['markInsertion'](_0x5c3172);}else _0x1ac712['setSelection'](_0x1ac712['createRange'](_0x2499a6['end']));_0x2499a6['detach'](),_0x1dc0d2['fire']('afterExecute',{'writer':_0x1ac712});});}),_0x26352b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x26352b,'split'),{'priority':'high'}),_0x26352b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5f3e41,_0x5202ea,_0x1c68f0)=>{const _0x1e394d=_0x1c68f0['mapper']['markerNameToElements'](_0x5202ea['markerName']);if(_0x1e394d){for(const _0x4776fe of _0x1e394d)_0x4776fe['hasClass']('ck-suggestion-marker-split')&&(_0x1c68f0['mapper']['unbindElementFromMarkerName'](_0x4776fe,_0x5202ea['markerName']),_0x1c68f0['writer']['remove'](_0x4776fe));}},{'priority':'high'}),_0x26352b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5283bc,_0x4752b5,_0x25c779)=>{_0x25c779['options']['showSuggestionHighlights']&&De(_0x26352b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5283bc,_0x4752b5,_0x25c779);},{'priority':'high'});}}class Q extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x501d53=this['editor']['plugins']['get']('TrackChangesEditing');_0x501d53['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x501d53['enableCommand']('findNext'),_0x501d53['enableCommand']('findPrevious'),_0x501d53['enableCommand']('replace'),_0x501d53['enableCommand']('replaceAll');}['handleFindCommand'](_0x5dbb7d,_0x37c49a,_0x495451={}){const _0xda2af4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5dbb7d(_0x1d9fd5=>{let _0x4fe2f8=('string'==typeof _0x37c49a?_0xda2af4['findByTextCallback'](_0x37c49a,_0x495451):_0x37c49a)(_0x1d9fd5);Array['isArray'](_0x4fe2f8)&&(_0x4fe2f8={'results':_0x4fe2f8,'searchText':'string'==typeof _0x37c49a?_0x37c49a:''});const _0x1c9aa4=_0x4fe2f8['results']['filter'](_0x529786=>!0x1===this['_isInDeletionRange'](_0x529786,_0x1d9fd5['item']));return{..._0x4fe2f8,'results':_0x1c9aa4};},_0x495451);}['_isInDeletionRange'](_0x10eab3,_0x31c1fa){const _0x1cdeaa=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x31c1fa,_0x10eab3['start']),this['editor']['model']['createPositionAt'](_0x31c1fa,_0x10eab3['end']));for(const _0x4201aa of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1cdeaa['getIntersection'](_0x4201aa['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xfd4522{['afterInit'](){const _0x29721d=this['editor']['locale'],_0x29f717=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x376996,commandName:_0x51d99}of eo)this['editor']['plugins']['has'](_0x376996)&&(_0x29f717['enableDefaultAttributesIntegration'](_0x51d99),_0x29f717['registerInlineAttribute'](_0x51d99));_0x29f717['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x29721d,'FORMAT_FONT_SIZE')),_0x29f717['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x29721d,'FORMAT_FONT_FAMILY')),_0x29f717['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x29721d,'FORMAT_FONT_COLOR')),_0x29f717['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x29721d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c12be=this['editor'],_0x53d32e=_0x5c12be['locale'];_0x5c12be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e3455=>{const _0x6c3fa7=_0x53d32e['t'];if('formatInline'!=_0x3e3455['type'])return;const {data:_0x2a525d}=_0x3e3455;if(null!=_0x2a525d){if('fontSize'==_0x2a525d['commandName']){const _0x27f61e=_0x2a525d['commandParams'][0x0]['value'];if(_0x27f61e){const _0x4a348d=_0x6c3fa7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x46db45=>_0x46db45['model']==_0x27f61e)['title'])['toLowerCase']();return{'type':'format','content':o(_0x53d32e,'*Set\x20font\x20size:*\x20%0',_0x4a348d)};}return{'type':'format','content':o(_0x53d32e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2a525d['commandName']){const _0xd80733=_0x2a525d['commandParams'][0x0]['value'];return _0xd80733?{'type':'format','content':o(_0x53d32e,'*Set\x20font\x20family:*\x20%0',_0xd80733)}:{'type':'format','content':o(_0x53d32e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2a525d['commandName']){const _0x4df71e=_0x2a525d['commandParams'][0x0]['value'];if(_0x4df71e){const _0x7c12d7=_0x986404(this['editor']['config']['get']('fontColor.colors'))['find'](_0x38f524=>_0x38f524['model']==_0x4df71e);let _0x51eeca=_0x4df71e,_0x1c8cfe='';return _0x7c12d7&&(_0x51eeca=_0x7c12d7['label'],_0x1c8cfe=_0x6c3fa7(_0x51eeca)['toLowerCase']()),{'type':'format','content':o(_0x53d32e,'*Set\x20font\x20color:*\x20%0',_0x1c8cfe)['trim'](),'color':{'value':_0x4df71e,'title':_0x1c8cfe||_0x51eeca}};}return{'type':'format','content':o(_0x53d32e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2a525d['commandName']){const _0x245fa7=_0x2a525d['commandParams'][0x0]['value'];if(_0x245fa7){const _0x3be796=_0x986404(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xb03c70=>_0xb03c70['model']==_0x245fa7);let _0x325171=_0x245fa7,_0x212615='';return _0x3be796&&(_0x325171=_0x3be796['label'],_0x212615=_0x6c3fa7(_0x325171)['toLowerCase']()),{'type':'format','content':o(_0x53d32e,'*Set\x20font\x20background\x20color:*\x20%0',_0x212615)['trim'](),'color':{'value':_0x245fa7,'title':_0x212615||_0x325171}};}return{'type':'format','content':o(_0x53d32e,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xfd4522{['afterInit'](){const _0x1ac14c=this['editor'],_0x1607de=_0x1ac14c['plugins']['get']('TrackChangesEditing'),_0x696694=_0x1ac14c['commands']['get']('copyFormat'),_0x4e4a28=_0x1ac14c['commands']['get']('pasteFormat');_0x696694&&_0x4e4a28&&(_0x1607de['enableDefaultAttributesIntegration']('pasteFormat'),_0x1607de['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x23577a=this['editor'],_0x2763b5=_0x23577a['locale'];_0x23577a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2c3d=>{if('formatBlock'!=_0xd2c3d['type']&&'formatInline'!=_0xd2c3d['type'])return;const {data:_0x5d19ca}=_0xd2c3d;if(_0x5d19ca&&'pasteFormat'===_0x5d19ca['commandName']){const _0x3df29d=[],_0x177b05=_0x5d19ca['commandParams'][0x0];for(const [_0x2a7d4a,_0x3aea77]of Object['entries'](_0x177b05))_0x3df29d['push'](ro(_0x23577a,_0x2a7d4a,_0x3aea77));return _0x3df29d['length']?{'type':'format','content':o(_0x2763b5,'*Set\x20format\x20to:*\x20%0',_0x3df29d['join'](',\x20'))}:{'type':'format','content':o(_0x2763b5,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3cd184,_0x3efed2,_0x372db4){const _0x1df7c7=_0x3cd184['locale']['t'],_0x20a3f2=_0x3efed2['split'](/(?=[A-Z])/)['join']('\x20'),_0x130eb0=_0x1df7c7(_0x20a3f2['charAt'](0x0)['toUpperCase']()+_0x20a3f2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x372db4)return _0x130eb0;if('fontColor'===_0x3efed2||'fontBackgroundColor'===_0x3efed2){const _0x4deffc=_0x986404(_0x3cd184['config']['get']('fontColor.colors'))['find'](_0x133352=>_0x133352['model']==_0x372db4);return _0x130eb0+'\x20('+(_0x4deffc?_0x1df7c7(_0x4deffc['label'])['toLowerCase']():_0x372db4)+')';}if('fontSize'===_0x3efed2&&isNaN(parseFloat(_0x372db4))){const _0x3a755e=_0x3cd184['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3cd184['config']['get']('fontSize.options'))['find'](_0x49bcae=>_0x49bcae['model']==_0x372db4);return _0x130eb0+'\x20('+(_0x3a755e?_0x1df7c7(_0x3a755e['title'])['toLowerCase']():_0x372db4)+')';}return _0x130eb0+'\x20('+_0x372db4+')';}class Z extends _0xfd4522{['_headingOptions'];['afterInit'](){const _0x5f221b=this['editor'];if(!_0x5f221b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5f221b['config']['get']('heading.options');const _0x224ca6=_0x5f221b['locale'],_0x2d0425=_0x5f221b['plugins']['get']('TrackChangesEditing');_0x2d0425['enableDefaultAttributesIntegration']('heading');for(const _0x397fe6 of this['_headingOptions'])'paragraph'!=_0x397fe6['model']&&_0x2d0425['descriptionFactory']['registerElementLabel'](_0x397fe6['model'],_0x4a337d=>{const _0x498f1c=this['_getHeadingLevel'](_0x397fe6['model']);return null!==_0x498f1c?_0x1f94cc(_0x4a337d,_0x498f1c):_0x231a54(_0x4a337d,_0x397fe6['title']);});function _0x1f94cc(_0x3b91f5,_0x2ec575){return o(_0x224ca6,'ELEMENT_HEADING',[_0x3b91f5,_0x2ec575]);}function _0x231a54(_0x1e30ec,_0x23044c){return o(_0x224ca6,'ELEMENT_HEADING_CUSTOM',[_0x1e30ec,_0x23044c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x86ce84=this['editor'],_0x1f771e=_0x86ce84['locale'];function _0x1cdd12(_0x46d842,_0xa680e9){return o(_0x1f771e,'ELEMENT_HEADING_CUSTOM',[_0x46d842,_0xa680e9]);}_0x86ce84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ec7de=>{if('formatBlock'!=_0x3ec7de['type'])return;const {data:_0x41fff7}=_0x3ec7de;if(_0x41fff7&&'heading'==_0x41fff7['commandName']){const _0x3c2cac=_0x41fff7['commandParams'][0x0]['value'],_0x1d31e2=this['_getHeadingLevel'](_0x3c2cac);if(null!==_0x1d31e2)return{'type':'format','content':o(_0x1f771e,'*Change\x20to:*\x20%0',(_0x2f511b=0x1,_0x22782c=_0x1d31e2,o(_0x1f771e,'ELEMENT_HEADING',[_0x2f511b,_0x22782c])))};const _0x27f6bb=this['_headingOptions']['find'](_0x3e3bfd=>_0x3e3bfd['model']===_0x3c2cac)['title'];return{'type':'format','content':o(_0x1f771e,'*Change\x20to:*\x20%0',_0x1cdd12(0x1,_0x27f6bb))};}var _0x2f511b,_0x22782c;});}['_getHeadingLevel'](_0x1208cb){const _0x5d138a=_0x1208cb['match'](/^heading(\d+)/);if(_0x5d138a)return _0x5d138a[0x1];const _0x5d871f=this['_headingOptions']?.['find'](_0x59560f=>_0x59560f['model']==_0x1208cb);if(_0x5d871f&&_0x5d871f['view']){const _0x1036cb=_0x5d871f['view'],_0x5eb611=(_0x1036cb['name']??_0x1036cb)['match'](/^h(\d+)/);if(_0x5eb611)return _0x5eb611[0x1];}return null;}}class tt extends _0xfd4522{['afterInit'](){const _0x1d8a80=this['editor'];if(!_0x1d8a80['plugins']['has']('HighlightEditing'))return;const _0x404eb7=_0x1d8a80['plugins']['get']('TrackChangesEditing'),_0x298063=_0x1d8a80['locale'];_0x404eb7['enableDefaultAttributesIntegration']('highlight'),_0x404eb7['registerInlineAttribute']('highlight'),_0x404eb7['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x298063,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf3935b=this['editor'],_0x5c58d3=_0xf3935b['locale'];_0xf3935b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bcb5f=>{if('formatInline'!=_0x5bcb5f['type'])return;const {data:_0x5c2236}=_0x5bcb5f;if(_0x5c2236&&'highlight'==_0x5c2236['commandName']){const _0x3fdbac=_0x5c58d3['t'],_0x50d1f1=_0x5c2236['commandParams'][0x0]['value'];if(_0x50d1f1){const _0xb9f57a=_0xf3935b['config']['get']('highlight.options')['find'](_0x19a168=>_0x19a168['model']==_0x50d1f1),_0x1969cc=_0x3fdbac(_0xb9f57a['title'])['toLowerCase']();return{'type':'format','content':o(_0x5c58d3,'*Set\x20highlight:*\x20%0',_0x1969cc),'color':{'value':_0xb9f57a['color'],'title':_0xb9f57a['title']}};}return{'type':'format','content':o(_0x5c58d3,'*Remove\x20highlight*',o(_0x5c58d3,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xfd4522{['afterInit'](){const _0x2211de=this['editor'];if(!_0x2211de['plugins']['has']('HorizontalLineEditing'))return;_0x2211de['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3833b3=_0x2211de['plugins']['get']('TrackChangesEditing'),_0x430d4e=_0x2211de['locale'];_0x3833b3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x18f769=>o(_0x430d4e,'ELEMENT_HORIZONTAL_LINE',_0x18f769)),_0x2211de['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4c841d,{writer:_0x1671f2,options:_0x3f089a})=>{if(!_0x3f089a['showSuggestionHighlights'])return null;const _0x1800b8=_0x1671f2['createContainerElement']('div'),_0x3cf486=_0x1671f2['createEmptyElement']('hr');return _0x1671f2['addClass']('ck-horizontal-line',_0x1800b8),_0x1671f2['insert'](_0x1671f2['createPositionAt'](_0x1800b8,0x0),_0x3cf486),_0x1800b8;},'converterPriority':'high'});}}class nt extends _0xfd4522{['afterInit'](){const _0x46f42c=this['editor'];if(!_0x46f42c['plugins']['has']('HtmlEmbed'))return;const _0x5d7a12=_0x46f42c['plugins']['get']('TrackChangesEditing'),_0x122f29=_0x46f42c['locale'];_0x5d7a12['descriptionFactory']['registerElementLabel']('rawHtml',_0x96fafc=>o(_0x122f29,'ELEMENT_HTML_EMBED',_0x96fafc)),_0x5d7a12['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5d7a12['registerBlockAttribute']('value'),_0x5d7a12['descriptionFactory']['registerDescriptionCallback'](_0x4d0e81=>{if('attribute'!=_0x4d0e81['type'])return;const {data:_0x344b7c}=_0x4d0e81;if(_0x344b7c&&'value'==_0x344b7c['key']&&_0x4d0e81['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2929d9=o(_0x122f29,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x122f29,'*Change\x20%0\x20content*',_0x2929d9)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b2403=this['editor'],_0x2b67d5=_0x1b2403['locale'];_0x1b2403['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e0f8e=>{if('formatBlock'!=_0x1e0f8e['type'])return;const {data:_0x202d01}=_0x1e0f8e;if(_0x202d01&&'htmlEmbed'==_0x202d01['commandName']){const _0x1cb4bd=o(_0x2b67d5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2b67d5,'*Change\x20%0\x20content*',_0x1cb4bd)};}});}}class et extends _0xfd4522{['afterInit'](){const _0x1ed39d=this['editor'];if(!_0x1ed39d['plugins']['has']('ImageEditing'))return;const _0x511c62=_0x1ed39d['plugins']['get']('TrackChangesEditing'),_0x33d9c3=_0x1ed39d['plugins']['get']('ImageUtils'),_0x2db01b=_0x1ed39d['locale'];_0x511c62['enableCommand']('insertImage'),_0x511c62['descriptionFactory']['registerElementLabel']('imageBlock',_0x5ab132=>o(_0x2db01b,'ELEMENT_IMAGE',_0x5ab132)),_0x511c62['descriptionFactory']['registerElementLabel']('imageInline',_0x1e83c6=>o(_0x2db01b,'ELEMENT_INLINE_IMAGE',_0x1e83c6)),_0x511c62['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2db01b,'ELEMENT_CAPTION')),_0x1ed39d['plugins']['has']('ImageUploadEditing')&&_0x511c62['enableCommand']('uploadImage'),_0x1ed39d['plugins']['has']('ImageBlockEditing')&&_0x1ed39d['plugins']['has']('ImageInlineEditing')&&(_0x511c62['enableCommand']('imageTypeInline',(_0x5611b9,_0x238220)=>{const _0x499b51=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']);_0x1ed39d['model']['change'](()=>{_0x511c62['markBlockFormat'](_0x499b51,{'commandName':'imageTypeInline','commandParams':[_0x238220]},[],'convertBlockImageToInline');});}),_0x511c62['enableCommand']('imageTypeBlock',(_0x354907,_0x11b1a5)=>{_0x1ed39d['model']['change'](_0x683f26=>{let _0x41e520=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']),_0x105a89=_0x683f26['createRangeOn'](_0x41e520);const _0x32fdca=_0xa59888['fromPosition'](_0x105a89['start'],'toPrevious'),_0x5764ee=_0xa59888['fromPosition'](_0x105a89['end'],'toNext');_0x511c62['forceDefaultExecution'](()=>_0x354907(_0x11b1a5)),_0x41e520=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']),_0x105a89=_0x683f26['createRangeOn'](_0x41e520);const _0x53b8d0=_0x683f26['createRange'](_0x32fdca,_0x5764ee);_0x32fdca['detach'](),_0x5764ee['detach'](),_0x511c62['markBlockFormat'](_0x41e520,{'commandName':'imageTypeInline','commandParams':[_0x11b1a5]},[],'convertInlineImageToBlock'),_0x53b8d0['start']['isBefore'](_0x105a89['start'])&&_0x511c62['markInsertion'](_0x683f26['createRange'](_0x53b8d0['start'],_0x105a89['start']),'convertInlineImageToBlock'),_0x105a89['end']['isBefore'](_0x53b8d0['end'])&&_0x511c62['markInsertion'](_0x683f26['createRange'](_0x105a89['end'],_0x53b8d0['end']),'convertInlineImageToBlock');});}),_0x511c62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x511c62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x511c62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x511c62['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x511c62['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x511c62['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x377519])=>{const _0x2768b1=_0x511c62['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x44c69f=_0x377519['start'],_0x487e1c=_0x377519['end'];const _0xaa4681=_0x1ed39d['model']['schema']['getNearestSelectionRange'](_0x44c69f,'backward'),_0x3bc55a=_0x1ed39d['model']['schema']['getNearestSelectionRange'](_0x487e1c,'forward');_0xaa4681['isCollapsed']&&(_0x44c69f=_0xaa4681['start']),_0x3bc55a['isCollapsed']&&(_0x487e1c=_0x3bc55a['end']),_0x2768b1([_0x1ed39d['model']['createRange'](_0x44c69f,_0x487e1c)]);}),_0x511c62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3a422b),_0x511c62['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3a422b)),_0x1ed39d['plugins']['has']('ImageCaptionEditing')&&(_0x511c62['enableCommand']('toggleImageCaption',(_0x1e872e,_0x4ec55a)=>{const _0x4d4a9e=_0x1ed39d['plugins']['get']('ImageCaptionUtils');let _0x2a2872=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']),_0x2b8cc6=_0x4d4a9e['getCaptionFromImageModelElement'](_0x2a2872);_0x1ed39d['model']['change'](()=>{if(_0x2b8cc6)return void _0x511c62['markDeletion'](_0x1ed39d['model']['createRangeOn'](_0x2b8cc6));const _0xa2208b=_0x33d9c3['isBlockImage'](_0x2a2872);_0x1e872e(_0x4ec55a),_0x2a2872=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']),_0x2b8cc6=_0x4d4a9e['getCaptionFromImageModelElement'](_0x2a2872),_0x511c62['markInsertion'](_0x1ed39d['model']['createRangeOn'](_0x2b8cc6),_0xa2208b?null:'imageCaption');});}),_0x511c62['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3a422b));const _0xaca0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31a827(_0x21a884,_0x3194ff){const _0x15c17a=_0xaca0['findIndex'](({type:_0x566d4b,subType:_0x3b84cf})=>_0x21a884['type']==_0x566d4b&&_0x21a884['subType']==_0x3b84cf),_0x17b824=_0xaca0['findIndex'](({type:_0x4f688d,subType:_0x25b5a2})=>_0x3194ff['type']==_0x4f688d&&_0x3194ff['subType']==_0x25b5a2);if(_0x15c17a<0x0||_0x17b824<0x0)return!0x1;const _0x4404b2=_0x21a884['getFirstRange'](),_0x17c6b9=_0x3194ff['getFirstRange']();if((0x0==_0x15c17a||0x1==_0x15c17a)&&0x2==_0x17b824&&_0x4404b2['isIntersecting'](_0x17c6b9))return!0x0;if(0x2==_0x15c17a&&0x3==_0x17b824){const _0x4cd1bc=_0x511c62['_findSuggestions'](_0x4404b2,'insertion')['filter'](({suggestion:_0x111e89,meta:_0x1f1a5d})=>_0x1f1a5d['isOwn']&&'convertInlineImageToBlock'==_0x111e89['subType']);if(_0x4cd1bc['length']>0x1&&_0x17c6b9['end']['isEqual'](_0x4404b2['start']))return!0x0;if(0x1==_0x4cd1bc['length']&&(_0x4404b2['start']['isEqual'](_0x17c6b9['end'])||_0x4404b2['end']['isEqual'](_0x17c6b9['start'])))return!0x0;}if(0x3==_0x15c17a&&0x3==_0x17b824&&_0x4404b2['start']['isBefore'](_0x17c6b9['start'])){const _0x336f21=_0x4404b2['end']['nodeAfter'],_0x3aa276=_0x17c6b9['start']['nodeBefore'];return _0x33d9c3['isBlockImage'](_0x336f21)&&_0x336f21===_0x3aa276;}return!0x1;}function _0x3a422b(_0x141d26,_0x53f948){return _0x31a827(_0x141d26,_0x53f948)?[_0x141d26,_0x53f948]:_0x31a827(_0x53f948,_0x141d26)?[_0x53f948,_0x141d26]:null;}_0x1ed39d['plugins']['has']('ImageResize')&&(_0x511c62['enableDefaultAttributesIntegration']('resizeImage'),_0x511c62['registerBlockAttribute']('resizedWidth'),_0x511c62['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2db01b,'FORMAT_IMAGE_SIZE'))),_0x1ed39d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x511c62['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x511c62['registerBlockAttribute']('alt')),_0x1ed39d['plugins']['has']('PictureEditing')&&(_0x511c62['registerBlockAttribute']('sources'),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x239916=>{if('attribute'!=_0x239916['type'])return;const {data:_0x1c041e}=_0x239916;return _0x1c041e&&'sources'==_0x1c041e['key']?{'type':'format','content':''}:void 0x0;})),_0x1ed39d['plugins']['has']('ImageSizeAttributes')&&(_0x511c62['registerBlockAttribute']('width'),_0x511c62['registerBlockAttribute']('height'),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x3632bb=>{if('attribute'!=_0x3632bb['type'])return;const {data:_0x590056}=_0x3632bb;return!_0x590056||'width'!=_0x590056['key']&&'height'!=_0x590056['key']?void 0x0:{'type':'format','content':''};})),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x3ba83b=>{if(!!_0xaca0['find'](({type:_0x46b1fb,subType:_0x3ca100})=>_0x3ba83b['type']==_0x46b1fb&&_0x3ba83b['subType']==_0x3ca100))return _0x3ba83b['previous']?{}:void 0x0;}),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x55ef98=>{if('insertion'==_0x55ef98['type']||'deletion'==_0x55ef98['type']){const _0x244ae3=_0x55ef98['getContainedElement']();if(_0x244ae3&&_0x244ae3['is']('element','caption'))return{'type':'insertion'==_0x55ef98['type']?'addObject':'removeObject','element':_0x244ae3,'quantity':0x1};}}),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0xc9f768=>'formatBlock'==_0xc9f768['type']&&'convertInlineImageToBlock'==_0xc9f768['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xc9f768['type']&&'convertBlockImageToInline'==_0xc9f768['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x5f44ef=>{if('attribute'!=_0x5f44ef['type'])return;const {data:_0x5933cc}=_0x5f44ef;if(!_0x5933cc||'alt'!=_0x5933cc['key'])return;const _0x9d3323=_0x5933cc['newValue'];return _0x9d3323?{'type':'format','content':o(_0x2db01b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x9d3323+'\x22')}:{'type':'format','content':o(_0x2db01b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x491a89=this['editor'],_0x51f385=_0x491a89['locale'];_0x491a89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x593621=>{if('formatBlock'!=_0x593621['type']&&'formatInline'!=_0x593621['type'])return;const {data:_0x309cd9}=_0x593621;if(_0x309cd9){if('imageTextAlternative'==_0x309cd9['commandName']){const _0x1291dd=_0x309cd9['commandParams'][0x0]['newValue'];return _0x1291dd?{'type':'format','content':o(_0x51f385,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1291dd+'\x22')}:{'type':'format','content':o(_0x51f385,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x309cd9['commandName']){const _0x3726f7=_0x309cd9['commandParams'][0x0]['width'];return _0x3726f7?{'type':'format','content':o(_0x51f385,'*Set\x20image\x20width:*\x20%0',_0x3726f7)}:{'type':'format','content':o(_0x51f385,'*Reset\x20image\x20width*')};}}});}}class st extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x535335=this['editor']['locale'],_0x593c88=this['editor']['plugins']['get']('TrackChangesEditing');_0x593c88['enableDefaultAttributesIntegration']('replaceImageSource'),_0x593c88['registerBlockAttribute']('src'),_0x593c88['descriptionFactory']['registerDescriptionCallback'](_0x2d2393=>{if('attribute'!=_0x2d2393['type'])return;const {data:_0xb59c69}=_0x2d2393;return _0xb59c69&&'src'==_0xb59c69['key']?_0xb59c69['newValue']&&_0xb59c69['oldValue']?{'type':'format','content':o(_0x535335,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x378a05=this['editor']['plugins']['get']('TrackChangesEditing');_0x378a05['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x378a05['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x378a05['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x378a05['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x543d1b=this['editor'],_0x4a64c9=_0x543d1b['locale'];_0x543d1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbf30bf=>{if('formatBlock'!=_0xbf30bf['type']&&'formatInline'!=_0xbf30bf['type'])return;const {data:_0x4e5873}=_0xbf30bf;if(!_0x4e5873||'replaceImageSource'!=_0x4e5873['commandName'])return;return{'type':'format','content':o(_0x4a64c9,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xfd4522{['afterInit'](){const _0x143650=this['editor'];if(!_0x143650['plugins']['has']('ImageStyleEditing'))return;const _0x2aace6=_0x143650['plugins']['get']('TrackChangesEditing'),_0x12407c=_0x143650['plugins']['get']('ImageUtils'),_0x304fbc={};_0x2aace6['enableCommand']('imageStyle',(_0x433b31,_0x3e729f)=>{const _0x44a423=_0x143650['plugins']['get']('Users')['me'],_0x1e389e=_0x143650['commands']['get']('imageStyle');let _0x1844d7=_0x12407c['getClosestSelectedImageElement'](_0x143650['model']['document']['selection']),_0x1fa2cc=_0x143650['model']['createRangeOn'](_0x1844d7),_0x6447a3=_0x1e389e['value'];if(_0x6447a3==_0x3e729f['value'])return;const _0x3eff7a={'commandName':'imageStyle','commandParams':[_0x3e729f],'formatGroupId':_0x110ca2()};_0x143650['model']['change'](()=>{if(_0x2aace6['getSuggestions']()['filter'](_0xd920f5=>_0xd920f5['isInContent']&&_0x44a423==_0xd920f5['author']&&('formatBlock'==_0xd920f5['type']||'formatInline'==_0xd920f5['type'])&&('imageStylePreApply'==_0xd920f5['subType']||'imageStylePostApply'==_0xd920f5['subType'])&&_0xd920f5['getFirstRange']()['isEqual'](_0x1fa2cc))['forEach'](_0x2a5cbd=>_0x2aace6['discardSuggestion'](_0x2a5cbd['head'])),_0x1844d7=_0x12407c['getClosestSelectedImageElement'](_0x143650['model']['document']['selection']),_0x1fa2cc=_0x143650['model']['createRangeOn'](_0x1844d7),_0x1e389e['refresh'](),_0x143650['commands']['get']('imageTypeInline')['refresh'](),_0x143650['commands']['get']('imageTypeBlock')['refresh'](),_0x6447a3=_0x1e389e['value'],_0x6447a3!=_0x3e729f['value'])return _0x12407c['isInlineImage'](_0x1844d7)&&_0x1e389e['shouldConvertImageType'](_0x3e729f['value'],_0x1844d7)?(_0x433b31({..._0x3e729f,'setImageSizes':!0x1}),_0x1844d7=_0x12407c['getClosestSelectedImageElement'](_0x143650['model']['document']['selection']),void _0x2aace6['markBlockFormat'](_0x1844d7,{..._0x3eff7a,'commandReversedParams':[{'value':_0x6447a3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x12407c['isBlockImage'](_0x1844d7)?_0x2aace6['markBlockFormat'](_0x1844d7,_0x3eff7a,[],'imageStylePostApply'):_0x2aace6['markInlineFormat'](_0x1fa2cc,_0x3eff7a,'imageStylePostApply'));});});for(const _0x5bc4ed of _0x143650['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x304fbc[_0x5bc4ed['name']]=_0x5bc4ed['title']['toLowerCase']();_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x46b393])=>{_0x12407c['setImageNaturalSizeAttributes'](_0x46b393['getContainedElement']());}),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x547708,_0x193bbd)=>{_0x2aace6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x547708,{'commandName':_0x193bbd['commandName'],'commandParams':_0x193bbd['commandReversedParams']});}),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3a8c06,_0xbfac21){if(_0x25b308(_0x3a8c06,_0xbfac21))return[_0x3a8c06,_0xbfac21];if(_0x25b308(_0xbfac21,_0x3a8c06))return[_0xbfac21,_0x3a8c06];return null;});const _0x458cd0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x25b308(_0x4500dd,_0x3ce3d9){const _0xf96559=_0x458cd0['findIndex'](({type:_0x128e2a,subType:_0x21b658})=>_0x4500dd['type']==_0x128e2a&&_0x4500dd['subType']==_0x21b658),_0x17eda6=_0x458cd0['findIndex'](({type:_0xfe39f1,subType:_0x192e47})=>_0x3ce3d9['type']==_0xfe39f1&&_0x3ce3d9['subType']==_0x192e47);if(_0xf96559<0x0||_0x17eda6<0x0)return!0x1;const _0xfe7afa=_0x4500dd['getFirstRange'](),_0x48384b=_0x3ce3d9['getFirstRange']();if((0x0==_0xf96559||0x1==_0xf96559)&&0x2==_0x17eda6&&_0xfe7afa['isIntersecting'](_0x48384b))return!0x0;if(0x2==_0xf96559&&0x3==_0x17eda6){const _0x54b6bf=_0x2aace6['_findSuggestions'](_0xfe7afa,'insertion')['filter'](({suggestion:_0x2105f6,meta:_0x235c22})=>_0x235c22['isOwn']&&'convertInlineImageToBlock'==_0x2105f6['subType']);if(_0x54b6bf['length']>0x1&&_0x48384b['end']['isEqual'](_0xfe7afa['start']))return!0x0;if(0x1==_0x54b6bf['length']&&(_0xfe7afa['start']['isEqual'](_0x48384b['end'])||_0xfe7afa['end']['isEqual'](_0x48384b['start'])))return!0x0;}if(0x3==_0xf96559&&0x3==_0x17eda6&&_0xfe7afa['start']['isBefore'](_0x48384b['start'])){const _0x19d8c7=_0xfe7afa['end']['nodeAfter'],_0x471613=_0x48384b['start']['nodeBefore'];return _0x12407c['isBlockImage'](_0x19d8c7)&&_0x19d8c7===_0x471613;}return!0x1;}_0x143650['model']['document']['registerPostFixer'](()=>{let _0x3848bd=!0x1;const _0x2c3ad8=Array['from'](_0x143650['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7b878d,data:_0x12636f}of _0x2c3ad8){const {group:_0x50bcf6,type:_0x362c2b,subType:_0x51ce07,id:_0x33b169}=_0x2aace6['_splitMarkerName'](_0x7b878d);if('suggestion'==_0x50bcf6&&_0x2aace6['hasSuggestion'](_0x33b169)){if('formatBlock'==_0x362c2b&&('imageStylePreApply'==_0x51ce07||'imageStylePostApply'==_0x51ce07)){const _0x26d867=_0x2aace6['getSuggestion'](_0x33b169);if(_0x12636f['newRange']){const _0x28d64b=_0x26d867['getFirstRange']()['getContainedElement']();if(_0x12407c['isBlockImage'](_0x28d64b))continue;_0x2aace6['discardSuggestion'](_0x26d867),_0x3848bd=!0x0;}}if('insertion'==_0x362c2b&&'imageCaption'==_0x51ce07&&!_0x12636f['newRange']){const _0xb3808a=_0x2aace6['getSuggestion'](_0x33b169);_0xb3808a['next']&&_0xb3808a['next']['isInContent']&&(_0x2aace6['discardSuggestion'](_0xb3808a['next']),_0x3848bd=!0x0);}}}return _0x3848bd;}),this['_registerLegacyDescription'](_0x304fbc);}['_registerLegacyDescription'](_0x5aaff0){const _0x537a35=this['editor'],_0x403bf3=_0x537a35['locale'];_0x537a35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5092cb=>{if('formatBlock'!=_0x5092cb['type']&&'formatInline'!=_0x5092cb['type'])return;const {data:_0x8138c5}=_0x5092cb;if(!_0x8138c5||'imageStyle'!=_0x8138c5['commandName'])return;const _0x4665d2=_0x8138c5['commandParams'][0x0]['value'];return _0xa0bc99('side'===_0x4665d2?o(_0x403bf3,'FORMAT_SIDE_IMAGE'):_0x5aaff0[_0x4665d2]||_0x4665d2);function _0xa0bc99(_0x29ae05){return{'type':'format','content':o(_0x403bf3,'*Format:*\x20%0',_0x29ae05)};}});}}class rt extends _0xfd4522{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x458067){super(_0x458067),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x56ec77=this['editor'],_0x408ee7=_0x56ec77['commands']['get']('importWord'),_0x11b1b8=_0x56ec77['commands']['get']('trackChanges');_0x408ee7&&(_0x408ee7['on']('execute',(_0x5a00f5,[,_0x10469f])=>{this['_trackChangesValueDuringImport']=_0x11b1b8['value'],_0x10469f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x408ee7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x408ee7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x11b1b8['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x56ec77['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xa1e09f,_0xa0d80c){const {suggestions:_0x10ee7e}=_0xa0d80c,_0x58d67b=this['editor']['commands']['get']('trackChanges'),_0xaaef38=_0x58d67b['value'];this['_trackChangesValueDuringImport']!==_0xaaef38&&(_0x58d67b['execute'](),this['_trackChangesExecuted']=!0x0),_0x10ee7e&&_0x10ee7e['forEach'](({id:_0x2e3197,type:_0x422190,author:_0x2131d4,created_at:_0x57559d})=>{const _0x4baf7e={'id':_0x2e3197,'type':_0x422190,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2131d4,'createdAt':_0x57559d?new Date(_0x57559d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4baf7e);});}}class at extends _0xfd4522{['afterInit'](){const _0x301270=this['editor'],_0x229edd=_0x301270['plugins']['get']('TrackChangesEditing');if(_0x301270['plugins']['has']('IndentEditing')&&(_0x229edd['enableCommand']('indent'),_0x229edd['enableCommand']('outdent')),_0x301270['plugins']['has']('IndentBlock')){for(const _0xa6e619 of['indentBlock','outdentBlock'])_0x229edd['enableDefaultAttributesIntegration'](_0xa6e619);}const _0x137fa4=_0x301270['locale'];_0x229edd['registerBlockAttribute']('blockIndent'),_0x229edd['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x137fa4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c5755=this['editor'],_0x44ddd4=_0x5c5755['locale'],_0x5cb3f9=_0x5c5755['plugins']['get']('TrackChangesEditing');_0x5cb3f9['descriptionFactory']['registerDescriptionCallback'](_0xc83977=>{if('formatBlock'!=_0xc83977['type'])return;const {data:_0x28d03b}=_0xc83977;if(!_0x28d03b)return;if('indentBlock'!=_0x28d03b['commandName']&&'outdentBlock'!=_0x28d03b['commandName'])return;const _0x153bb4=_0xc83977['getItems']()[0x0],_0x3df568=_0x5cb3f9['descriptionFactory']['getItemLabel'](_0x153bb4);return'indentBlock'==_0x28d03b['commandName']?{'type':'format','content':o(_0x44ddd4,'*Indent:*\x20%0',_0x3df568)}:'outdentBlock'==_0x28d03b['commandName']?{'type':'format','content':o(_0x44ddd4,'*Outdent:*\x20%0',_0x3df568)}:void 0x0;});}}class ct extends _0xfd4522{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xfd4522{['afterInit'](){const _0x578204=this['editor'];if(!_0x578204['plugins']['has']('LinkEditing'))return;const _0x2396ed=_0x578204['plugins']['get']('TrackChangesEditing'),_0x3e5d42=_0x578204['commands']['get']('link');_0x2396ed['enableDefaultAttributesIntegration']('link'),_0x2396ed['enableDefaultAttributesIntegration']('unlink'),_0x2396ed['registerInlineAttribute']('linkHref');for(const _0x17cc47 of _0x3e5d42['manualDecorators'])_0x2396ed['registerInlineAttribute'](_0x17cc47['id']),_0x2396ed['descriptionFactory']['registerAttributeLabel'](_0x17cc47['id'],'link\x20('+_0x17cc47['label']['toLowerCase']()+')');_0x2396ed['descriptionFactory']['registerDescriptionCallback'](_0x42f7d7=>{if('attribute'!=_0x42f7d7['type'])return;const {data:_0x4c0edc}=_0x42f7d7;if(!_0x4c0edc||'linkHref'!=_0x4c0edc['key'])return;const _0x9bf67=_0x4c0edc['newValue'],_0x18fe9f=_0x578204['locale'];return{'type':'format','content':null==_0x9bf67?o(_0x18fe9f,'*Remove\x20link*'):o(_0x18fe9f,'*Set\x20link:*\x20%0','\x22'+_0x9bf67+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cd0f5=this['editor'],_0x2821ab=_0x4cd0f5['locale'];_0x4cd0f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38257e=>{if('formatInline'!=_0x38257e['type'])return;const {data:_0x4fe1d1}=_0x38257e;if(_0x4fe1d1){if('link'==_0x4fe1d1['commandName']){const _0x59bd50=_0x4fe1d1['commandParams'][0x0];return{'type':'format','content':o(_0x2821ab,'*Set\x20link:*\x20%0','\x22'+_0x59bd50+'\x22')};}return'unlink'==_0x4fe1d1['commandName']?{'type':'format','content':o(_0x2821ab,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xfd4522{['afterInit'](){const _0x493b89=this['editor'],_0x56b342=_0x493b89['locale'];if(!_0x493b89['plugins']['has']('LegacyListEditing'))return;const _0x5f1912=_0x493b89['plugins']['get']('TrackChangesEditing'),_0x166e0a=_0x493b89['plugins']['has']('LegacyTodoListEditing');function _0x3507fc(_0x40cc50){return()=>{const _0x31a13e=_0x493b89['model']['document']['selection'],_0xc2593f=_0x493b89['commands']['get'](_0x40cc50);if(_0xc2593f['value'])return void _0x493b89['execute']('paragraph',{});const _0x287d92=_0x40cc50['slice'](0x0,-0x4),_0x3f361c=function(_0x5bd1b8,_0x39689e,_0x4025d3){let _0x2f4a43=Array['from'](_0x5bd1b8)['filter'](_0x47bb4c=>function(_0x278a21,_0x232e41){return _0x232e41['checkChild'](_0x278a21['parent'],'listItem')&&!_0x232e41['isObject'](_0x278a21);}(_0x47bb4c,_0x4025d3));_0x2f4a43=_0x2f4a43['filter'](_0x304e32=>!_0x304e32['is']('element','listItem')||_0x304e32['getAttribute']('listType')!=_0x39689e);const _0x47c191=new Set();for(const _0x344c63 of _0x2f4a43)_0x344c63['is']('element','listItem')?_0x47c191['add'](Le(_0x344c63)):_0x47c191['add'](_0x344c63);return Array['from'](_0x47c191);}(_0x31a13e['getSelectedBlocks'](),_0x287d92,_0x493b89['model']['schema']);_0x493b89['model']['change'](()=>{for(const _0x5f004c of _0x3f361c)_0x5f1912['markBlockFormat'](_0x5f004c,{'commandName':_0x40cc50,'commandParams':[{'forceValue':!_0xc2593f['value']}],'formatGroupId':'blockName'},Ee(_0x5f004c));});};}function _0x369b65(_0xfbc6e8){return()=>{const _0xda0fa3=function(_0x3801c6){let _0x2eb2e0=Array['from'](_0x3801c6);const _0x4971d4=_0x2eb2e0['findIndex'](_0x6514eb=>'listItem'!=_0x6514eb['name']);return _0x4971d4>-0x1&&(_0x2eb2e0=_0x2eb2e0['slice'](0x0,_0x4971d4)),_0x2eb2e0;}(_0x493b89['model']['document']['selection']['getSelectedBlocks']()),_0x227ea7=_0x493b89['model']['createRange'](_0x493b89['model']['createPositionAt'](_0xda0fa3[0x0],'before'),_0x493b89['model']['createPositionAt'](_0xda0fa3[_0xda0fa3['length']-0x1],'end'));_0x493b89['model']['change'](()=>{_0x5f1912['markBlockFormat'](_0x227ea7,{'commandName':_0xfbc6e8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4b4f3d){const _0x1c13c5=new Set();for(const _0x5eb76a of _0x4b4f3d){let _0x5511ed=_0x5eb76a['nextSibling'];for(;_0x5511ed&&_0x5511ed['getAttribute']('listIndent')>_0x5eb76a['getAttribute']('listIndent');)_0x1c13c5['add'](_0x5511ed),_0x5511ed=_0x5511ed['nextSibling'];}return Array['from'](_0x1c13c5);}(_0xda0fa3));});};}_0x5f1912['enableCommand']('numberedList',_0x3507fc('numberedList')),_0x5f1912['enableCommand']('bulletedList',_0x3507fc('bulletedList')),_0x166e0a&&_0x5f1912['enableCommand']('todoList',_0x3507fc('todoList')),_0x5f1912['enableCommand']('indentList',_0x369b65('indentList')),_0x5f1912['enableCommand']('outdentList',_0x369b65('outdentList')),_0x166e0a&&_0x5f1912['enableCommand']('checkTodoList',()=>{const _0x255e07=_0x493b89['commands']['get']('checkTodoList'),_0x10ff9b=Array['from'](_0x255e07['_selectedElements']);_0x10ff9b['filter'](_0x239905=>_0x239905['getAttribute']('todoListChecked')!=_0x255e07['value']),_0x493b89['model']['change'](()=>{for(const _0x3ea1be of _0x10ff9b)_0x5f1912['markBlockFormat'](_0x3ea1be,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x255e07['value']}]});});}),_0x5f1912['descriptionFactory']['registerElementLabel']('listItem',_0xee93ac=>o(_0x56b342,'ELEMENT_LIST_ITEM',_0xee93ac)),_0x5f1912['descriptionFactory']['registerDescriptionCallback'](_0x5a5737=>{if('formatBlock'!=_0x5a5737['type']&&'formatInline'!=_0x5a5737['type'])return;const {data:_0x4df814}=_0x5a5737;if(_0x4df814){if('numberedList'==_0x4df814['commandName']||'bulletedList'==_0x4df814['commandName']||'todoList'==_0x4df814['commandName'])switch(_0x4df814['commandName']['replace']('List','')){case'bulleted':return _0x4c9761(o(_0x56b342,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c9761(o(_0x56b342,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c9761(o(_0x56b342,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4df814['commandName'])return{'type':'format','content':o(_0x56b342,'*Indent:*\x20%0',o(_0x56b342,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4df814['commandName'])return{'type':'format','content':o(_0x56b342,'*Outdent:*\x20%0',o(_0x56b342,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4df814['commandName'])return _0x4df814['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x56b342,'*Check\x20item*')}:{'type':'format','content':o(_0x56b342,'*Uncheck\x20item*')};}function _0x4c9761(_0x17ffbf){return{'type':'format','content':o(_0x56b342,'*Change\x20to:*\x20%0',_0x17ffbf)};}});}}function Le(_0x20a0a4){const _0x59864a=_0x20a0a4['getAttribute']('listIndent');if(0x0==_0x59864a)return _0x20a0a4;let _0x6340d0=_0x20a0a4;for(;_0x20a0a4['previousSibling']&&_0x20a0a4['previousSibling']['is']('element','listItem');){const _0x393e74=_0x20a0a4['previousSibling']['getAttribute']('listIndent');if(_0x393e74==_0x59864a)_0x6340d0=_0x20a0a4['previousSibling'];else{if(_0x393e74<_0x59864a)break;}_0x20a0a4=_0x20a0a4['previousSibling'];}return _0x6340d0;}function Ee(_0x208a89){const _0xb51103=[];if(_0x208a89['is']('element','listItem')&&_0x208a89['getAttribute']('listIndent')>0x0){let _0x2763db=_0x208a89['nextSibling'];for(;_0x2763db&&'listItem'==_0x2763db['name']&&_0x2763db['getAttribute']('listIndent')==_0x208a89['getAttribute']('listIndent');)_0xb51103['push'](_0x2763db),_0x2763db=_0x2763db['nextSibling'];}return _0xb51103;}class ht extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3dd649=this['editor']['config']['get']('list.properties'),_0x49fd29=this['editor']['plugins']['get']('TrackChangesEditing');_0x3dd649['styles']&&_0x49fd29['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3dd649['reversed']&&_0x49fd29['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3dd649['startIndex']&&_0x49fd29['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x49fd29['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1cb434,_0x3d5bf8={}){const _0x336e6e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dd91a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x336e6e['markMultiRangeBlockFormat'](_0x1dd91a,{'commandName':'listStyle','commandParams':[{'type':_0x3d5bf8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x325117,_0x7fac0c={}){const _0x23b5cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23d3b0=this['_getSuggestionBlocks'](_0x10dbca=>_0x10dbca['is']('element','listItem')&&'numbered'===_0x10dbca['getAttribute']('listType'));if(_0x23d3b0['length']<0x1)return;const _0x415859=_0x23d3b0['map'](_0x479bf4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x479bf4,'before'),this['editor']['model']['createPositionAt'](_0x479bf4,0x0)));this['editor']['model']['change'](()=>{_0x23b5cf['markMultiRangeBlockFormat'](_0x415859,{'commandName':'listReversed','commandParams':[{'reversed':_0x7fac0c['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x796fe,_0x578a22={}){const _0x2523fe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c10fb=this['_getSuggestionBlocks'](_0x27e609=>_0x27e609['is']('element','listItem')&&'numbered'===_0x27e609['getAttribute']('listType'));if(_0x2c10fb['length']<0x1)return;const _0x2f0e7e=_0x2c10fb['map'](_0x53eefb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x53eefb,'before'),this['editor']['model']['createPositionAt'](_0x53eefb,0x0)));this['editor']['model']['change'](()=>{_0x2523fe['markMultiRangeBlockFormat'](_0x2f0e7e,{'commandName':'listStart','commandParams':[{'startIndex':_0x578a22['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x598cf5){if('formatBlock'!=_0x598cf5['type']&&'formatInline'!=_0x598cf5['type'])return;const _0x2522dd=this['editor']['locale'],{data:_0x1e3cde}=_0x598cf5;if(!_0x1e3cde)return;let _0x6b3806,_0x80458c;switch(_0x1e3cde['commandName']){case'listStyle':_0x6b3806='*Change\x20to:*\x20%0',_0x80458c={'type':'format','content':o(_0x2522dd,_0x6b3806,o(_0x2522dd,this['_getTranslationKeyForListStyle'](_0x1e3cde['commandParams'][0x0]['type'])))};break;case'listReversed':_0x6b3806=_0x1e3cde['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x80458c={'type':'format','content':o(_0x2522dd,_0x6b3806)};break;case'listStart':_0x6b3806='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x80458c={'type':'format','content':o(_0x2522dd,_0x6b3806,_0x1e3cde['commandParams'][0x0]['startIndex'])};}return _0x80458c;}['_getSuggestionBlocksForListStyle'](){const _0x403319=this['editor']['plugins']['get']('LegacyListUtils');let _0x400b62=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x400b62[0x0]?.['is']('element','listItem')&&_0x400b62['unshift'](..._0x403319['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x400b62[_0x400b62['length']-0x1]?.['is']('element','listItem')&&_0x400b62['push'](..._0x403319['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x400b62=[...new Set(_0x400b62)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x400b62=_0x400b62['filter'](_0x39834f=>_0x39834f['is']('element','listItem'))),_0x400b62;}['_getSuggestionBlocks'](_0xc3cd1){const _0x438eb5=this['editor']['plugins']['get']('LegacyListUtils');let _0x5c2b89=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xc3cd1)['map'](_0x46a1a3=>{const _0x12b5c3=this['editor']['model']['createPositionAt'](_0x46a1a3,0x0);return[..._0x438eb5['getSiblingNodes'](_0x12b5c3,'backward'),..._0x438eb5['getSiblingNodes'](_0x12b5c3,'forward')];})['flat']();return _0x5c2b89=[...new Set(_0x5c2b89)],_0x5c2b89;}['_getTranslationKeyForListStyle'](_0x53fb3e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x53fb3e)||'default')['toUpperCase']()+'_LIST_'+_0x53fb3e['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xfd4522{['afterInit'](){const _0x5d87d0=this['editor'];if(!_0x5d87d0['plugins']['has']('MediaEmbedEditing'))return;const _0x23c36e=_0x5d87d0['plugins']['get']('TrackChangesEditing'),_0x387bf4=_0x5d87d0['locale'];_0x23c36e['enableCommand']('mediaEmbed'),_0x23c36e['descriptionFactory']['registerElementLabel']('media',_0x4bba14=>o(_0x387bf4,'ELEMENT_MEDIA',_0x4bba14)),_0x5d87d0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x372a5f,{writer:_0x319a51,options:_0x58e4ba})=>{if(_0x58e4ba['showSuggestionHighlights'])return _0x319a51['createEmptyElement']('div');},'converterPriority':'high'}),_0x5d87d0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2db39c,_0x8b3017,_0x27e35c)=>{_0x27e35c['options']['showSuggestionHighlights']&&_0x2db39c['stop']();},{'priority':'high'});}}class lt extends _0xfd4522{['afterInit'](){const _0x4242bb=this['editor'];_0x4242bb['plugins']['has']('MentionEditing')&&_0x4242bb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xfd4522{['afterInit'](){const _0x35be38=this['editor'];if(!_0x35be38['plugins']['has']('MergeFieldsEditing'))return;const _0x219e4d=_0x35be38['plugins']['get']('TrackChangesEditing'),_0x3a17bb=_0x35be38['locale'];_0x219e4d['enableCommand']('insertMergeField'),_0x219e4d['enableCommand']('insertMergeFieldBlock'),_0x219e4d['enableCommand']('insertMergeFieldImage'),_0x219e4d['descriptionFactory']['registerElementLabel']('mergeField',_0x735578=>o(_0x3a17bb,'ELEMENT_MERGE_FIELD',_0x735578)),_0x219e4d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3d1b21=>o(_0x3a17bb,'ELEMENT_MERGE_FIELD',_0x3d1b21)),_0x219e4d['descriptionFactory']['registerDescriptionCallback'](_0x3d862c=>{if('insertion'!=_0x3d862c['type']&&'deletion'!=_0x3d862c['type'])return;const _0x1e97e0=_0x3d862c['getContainedElement']();if(null==_0x1e97e0)return;const _0x521c4a=_0x35be38['plugins']['get']('MergeFieldsEditing');let _0x5db1cb;switch(_0x521c4a['getMergeFieldType'](_0x1e97e0)){case null:return;case'image':{const _0x5bf504=_0x521c4a['unwrapAffixes'](_0x1e97e0['getAttribute']('src'));_0x5db1cb=_0x521c4a['getLabel'](_0x5bf504)||_0x5bf504;break;}default:{const _0x3401fc=_0x1e97e0['getAttribute']('id');_0x5db1cb=_0x521c4a['getLabel'](_0x3401fc)||_0x3401fc;break;}}return'insertion'==_0x3d862c['type']?{'type':'insertion','content':o(_0x3a17bb,'*Insert:*\x20%0','\x22'+_0x5db1cb+'\x22\x20'+o(_0x3a17bb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3a17bb,'*Remove:*\x20%0','\x22'+_0x5db1cb+'\x22\x20'+o(_0x3a17bb,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xfd4522{['afterInit'](){const _0x3061d4=this['editor'],_0x2aa4ca=_0x3061d4['plugins']['get']('TrackChangesEditing');_0x3061d4['plugins']['has']('MultiLevelList')&&(_0x2aa4ca['enableDefaultAttributesIntegration']('multiLevelList'),_0x2aa4ca['registerBlockAttribute']('listMarkerStyle'),_0x2aa4ca['descriptionFactory']['registerDescriptionCallback'](_0x3466e6=>this['handleDescriptions'](_0x3466e6)));}['handleDescriptions'](_0x5dd804){const _0x17a401=this['editor']['locale'],{data:_0x3cf270}=_0x5dd804,_0x2a22d8={'type':'format','content':''};if(_0x3cf270&&'listMarkerStyle'==_0x3cf270['key']){if(!_0x3cf270['oldValue'])return{'type':'format','content':o(_0x17a401,'*Set\x20format:*\x20%0',o(_0x17a401,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3cf270['newValue']+')'};if(!_0x3cf270['newValue']){let _0x553beb=_0x5dd804['head'];for(;_0x553beb;){if(_0x553beb['data']&&'listType'==_0x553beb['data']['key']&&_0x553beb['data']['newValue'])return _0x2a22d8;_0x553beb=_0x553beb['next'];}return{'type':'format','content':o(_0x17a401,'*Remove\x20format:*\x20%0',o(_0x17a401,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3cf270['oldValue']+')'};}}}}class pt extends _0xfd4522{['afterInit'](){const _0x26d9da=this['editor'];if(!_0x26d9da['plugins']['has']('PageBreakEditing'))return;_0x26d9da['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4c6132=_0x26d9da['plugins']['get']('TrackChangesEditing'),_0x39a67b=_0x26d9da['locale'];_0x4c6132['descriptionFactory']['registerElementLabel']('pageBreak',_0x58e448=>o(_0x39a67b,'ELEMENT_PAGE_BREAK',_0x58e448));}}class kt extends _0xfd4522{['afterInit'](){const _0x15b996=this['editor'];if(!_0x15b996['plugins']['has']('Paragraph'))return;const _0x4c07fb=_0x15b996['locale'],_0x5c3e3e=_0x15b996['plugins']['get']('TrackChangesEditing');_0x5c3e3e['descriptionFactory']['registerElementLabel']('paragraph',_0x5758c8=>o(_0x4c07fb,'ELEMENT_PARAGRAPH',_0x5758c8)),_0x5c3e3e['enableDefaultAttributesIntegration']('paragraph'),_0x5c3e3e['enableCommand']('insertParagraph'),_0x15b996['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x15b996),{'priority':'highest'}),_0x15b996['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5ad657,_0x471db4,_0x2481ed)=>{_0x2481ed['options']['showSuggestionHighlights']&&nr(_0x15b996,{'showActiveMarker':!0x1})(_0x5ad657,_0x471db4,_0x2481ed);},{'priority':'highest'});const _0x588399=_0x5c3e3e['descriptionFactory'];_0x588399['registerDescriptionCallback'](_0x44823f=>{if('insertion'!==_0x44823f['type'])return;const {start:_0x1666ff,end:_0x2cba15}=_0x44823f['getFirstRange']();if(!_0x1666ff['isTouching'](_0x2cba15)||!_0x1666ff['nodeAfter'])return;const _0x2c5de9=_0x15b996['model']['schema'],_0x48ddcd=_0x1666ff['nodeAfter'];return _0x2c5de9['isBlock'](_0x48ddcd)&&!_0x2c5de9['isLimit'](_0x48ddcd)&&_0x2c5de9['checkChild'](_0x48ddcd,'$text')?{'type':'insertion','content':o(_0x4c07fb,'*Insert:*\x20%0',_0x588399['getItemLabel'](_0x48ddcd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20081b=this['editor'],_0x394fad=_0x20081b['locale'];_0x20081b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e7d50=>{if('formatBlock'!=_0x1e7d50['type'])return;const {data:_0x51664f}=_0x1e7d50;return _0x51664f&&'paragraph'==_0x51664f['commandName']?{'type':'format','content':o(_0x394fad,'*Change\x20to:*\x20%0',o(_0x394fad,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x41a788,{showActiveMarker:_0x239be4=!0x0}={}){return(_0x493c1e,_0x1c9e37,_0x235c41)=>{const _0x3203fc=_0x41a788['plugins']['get']('TrackChangesEditing'),_0x2bc607=_0x1c9e37['markerRange']['start'],_0x264412=_0x1c9e37['markerRange']['end'],_0x5b7943=_0x41a788['model']['schema'];if(!_0x2bc607['isTouching'](_0x264412)||!_0x2bc607['nodeAfter'])return;const _0x45215e=_0x2bc607['nodeAfter'];if(_0x5b7943['isBlock'](_0x45215e)&&!_0x5b7943['isLimit'](_0x45215e)&&_0x5b7943['checkChild'](_0x45215e,'$text')){if(!_0x235c41['consumable']['consume'](_0x1c9e37['markerRange'],_0x493c1e['name']))return;const {id:_0x5ce44a,authorId:_0x4137b2}=_0x3203fc['_splitMarkerName'](_0x1c9e37['markerName']),_0x4297f1=_0x235c41['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x5ce44a,'data-author-id':_0x4137b2}),_0x1c54b0=_0x235c41['mapper']['toViewPosition'](_0x264412);_0x239be4&&_0x3203fc['activeMarkers']['includes'](_0x1c9e37['markerName'])&&_0x235c41['writer']['addClass']('ck-suggestion-marker--active',_0x4297f1),_0x235c41['writer']['insert'](_0x1c54b0,_0x4297f1),_0x235c41['mapper']['bindElementToMarker'](_0x4297f1,_0x1c9e37['markerName']);}};}class wt extends _0xfd4522{['afterInit'](){const _0x2e8e3e=this['editor'];_0x2e8e3e['commands']['get']('replaceSource')&&_0x2e8e3e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xfd4522{['afterInit'](){const _0x3b6192=this['editor'];if(!_0x3b6192['plugins']['has']('RemoveFormatEditing'))return;_0x3b6192['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x234848=this['editor'];_0x234848['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dc75c=>{if('formatBlock'!=_0x5dc75c['type']&&'formatInline'!=_0x5dc75c['type'])return;const {data:_0x328145}=_0x5dc75c;return _0x328145&&'removeFormat'==_0x328145['commandName']?{'type':'format','content':o(_0x234848['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xfd4522{['afterInit'](){const _0x1fc420=this['editor'];if(!_0x1fc420['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2460be=_0x1fc420['plugins']['get']('TrackChangesEditing');_0x2460be['enableCommand']('goToPreviousRestrictedEditingException'),_0x2460be['enableCommand']('goToNextRestrictedEditingException');const _0x69ee74=_0x1fc420['plugins']['get']('RestrictedEditingModeEditing');_0x69ee74['enableCommand']('trackChanges'),_0x69ee74['enableCommand']('acceptSuggestion'),_0x69ee74['enableCommand']('discardSuggestion'),_0x69ee74['enableCommand']('acceptAllSuggestions'),_0x69ee74['enableCommand']('discardAllSuggestions'),_0x69ee74['enableCommand']('acceptSelectedSuggestions'),_0x69ee74['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xfd4522{['afterInit'](){const _0x46b8b7=this['editor'];if(!_0x46b8b7['plugins']['has']('ShiftEnter'))return;const _0x54b851=_0x46b8b7['plugins']['get']('TrackChangesEditing');_0x54b851['enableCommand']('shiftEnter'),_0x46b8b7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x46b8b7),{'priority':'high'}),_0x46b8b7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x46b8b7),{'priority':'high'}),_0x46b8b7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x54707e,_0x56cfbb,_0x298180)=>{_0x298180['options']['showSuggestionHighlights']&&je(_0x46b8b7,{'showActiveMarker':!0x1})(_0x54707e,_0x56cfbb,_0x298180);}),_0x54b851['descriptionFactory']['registerElementLabel']('softBreak',_0x58a064=>o(_0x46b8b7['locale'],'ELEMENT_LINE_BREAK',_0x58a064));}}function je(_0x391295,{showActiveMarker:_0x181037=!0x0}={}){return(_0x1ca27b,_0x5524b2,_0x441ea6)=>{const _0x38b8cc=_0x391295['plugins']['get']('TrackChangesEditing');if(!_0x441ea6['consumable']['test'](_0x5524b2['markerRange'],_0x1ca27b['name']))return;const _0x31b4f6=_0x391295['model'];for(const _0x465903 of _0x5524b2['markerRange']['getItems']()){if(!_0x465903['is']('element','softBreak'))continue;const _0x536504='deletion'==_0x5524b2['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2deafd,authorId:_0x4525fa}=_0x38b8cc['_splitMarkerName'](_0x5524b2['markerName']),_0x4e90f7=_0x441ea6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x536504,'data-suggestion':_0x2deafd,'data-author-id':_0x4525fa}),_0x8e239c=_0x441ea6['mapper']['toViewPosition'](_0x31b4f6['createPositionBefore'](_0x465903));_0x181037&&_0x38b8cc['activeMarkers']['includes'](_0x5524b2['markerName'])&&_0x441ea6['writer']['addClass']('ck-suggestion-marker--active',_0x4e90f7),_0x441ea6['writer']['insert'](_0x8e239c,_0x4e90f7),_0x441ea6['mapper']['bindElementToMarker'](_0x4e90f7,_0x5524b2['markerName']);}};}class St extends _0xfd4522{['afterInit'](){const _0x510055=this['editor'],_0x1f54a4=_0x510055['model'],_0x11f0b5=_0x510055['locale'];if(!_0x510055['plugins']['has']('StandardEditingModeEditing'))return;const _0x107fe6=_0x510055['plugins']['get']('TrackChangesEditing'),_0x340952='restrictedEditingException',_0x4fbf1f=_0x510055['commands']['get'](_0x340952);_0x107fe6['enableCommand'](_0x340952,(_0x4ed4b3,_0x5a91f0={})=>{const _0x11ef21=_0x1f54a4['document']['selection'];if(_0x11ef21['isCollapsed'])return void _0x4ed4b3(_0x5a91f0);const _0x114705=void 0x0!==_0x5a91f0['forceValue']?_0x5a91f0['forceValue']:!_0x4fbf1f['value'];_0x1f54a4['change'](()=>{const _0x500210=Array['from'](_0x11ef21['getRanges']());for(const _0x2cc65d of _0x500210){const _0x558ad3=_0x114705?[_0x2cc65d]:io(_0x340952,_0x2cc65d,_0x1f54a4);for(const _0x3513a2 of _0x558ad3)_0x107fe6['markInlineFormat'](_0x3513a2,{'commandName':_0x340952,'commandParams':[{'forceValue':_0x114705}]});}});}),_0x107fe6['descriptionFactory']['registerDescriptionCallback'](_0xe7b925=>{if('formatBlock'!=_0xe7b925['type']&&'formatInline'!=_0xe7b925['type'])return;const {data:_0x39dd4c}=_0xe7b925;return _0x39dd4c&&_0x39dd4c['commandName']==_0x340952?_0x39dd4c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11f0b5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x11f0b5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xfd4522{['afterInit'](){const _0x10cce7=this['editor'];if(!_0x10cce7['plugins']['has']('Style')||!_0x10cce7['plugins']['has']('DataSchema'))return;const _0x25d2cc=_0x10cce7['plugins']['get']('TrackChangesEditing'),_0x24f0eb=_0x10cce7['locale'],_0x4d47c5=_0x10cce7['config']['get']('style')||{},_0x5c70d3=_0x10cce7['plugins']['get']('GeneralHtmlSupport'),_0x227773=_0x10cce7['plugins']['get']('StyleUtils')['normalizeConfig'](_0x10cce7['plugins']['get']('DataSchema'),_0x4d47c5['definitions']);_0x25d2cc['enableDefaultAttributesIntegration']('style');const _0x125320=new Set();for(const _0x226177 of _0x227773['block']){const _0x17d348=_0x5c70d3['getGhsAttributeNameForElement'](_0x226177['element']);_0x125320['add'](_0x17d348);}const _0x2bcde0=new Set();for(const _0x57da05 of _0x227773['inline']){const _0x487eab=_0x5c70d3['getGhsAttributeNameForElement'](_0x57da05['element']);_0x2bcde0['add'](_0x487eab);for(const _0x545fc1 of _0x57da05['ghsAttributes'])_0x2bcde0['add'](_0x545fc1);}for(const _0x75e48c of _0x125320)_0x25d2cc['registerBlockAttribute'](_0x75e48c),_0x25d2cc['descriptionFactory']['registerAttributeLabel'](_0x75e48c,o(_0x24f0eb,'FORMAT_STYLE'));for(const _0x16c0fb of _0x2bcde0)_0x25d2cc['registerInlineAttribute'](_0x16c0fb),_0x25d2cc['descriptionFactory']['registerAttributeLabel'](_0x16c0fb,o(_0x24f0eb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35fcad=this['editor'],_0x39325b=_0x35fcad['locale'];_0x35fcad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5156ed=>{if('formatBlock'!=_0x5156ed['type']&&'formatInline'!=_0x5156ed['type'])return;const {data:_0x13cab6}=_0x5156ed;return _0x13cab6&&'style'===_0x13cab6['commandName']?_0x13cab6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39325b,'*Set\x20format:*\x20%0',_0x13cab6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x39325b,'*Remove\x20format:*\x20%0',_0x13cab6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xfd4522{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x580611){super(_0x580611),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x15de90=this['editor'],_0x14dbdb=_0x15de90['model']['document']['selection'];if(!_0x15de90['plugins']['has']('TableEditing'))return;const _0x54213a=_0x15de90['locale'],_0x5a7f8c=_0x15de90['plugins']['get']('TrackChangesEditing'),_0x1cd652=_0x15de90['plugins']['get']('TableUtils');_0x5a7f8c['descriptionFactory']['registerElementLabel']('table',_0xb404a0=>o(_0x54213a,'ELEMENT_TABLE',_0xb404a0)),this['_setupColumnsRowsFixing'](),_0x5a7f8c['enableCommand']('insertTable'),_0x5a7f8c['enableCommand']('selectTableRow'),_0x5a7f8c['enableCommand']('selectTableColumn');for(const _0x44bf70 of['insertTableRowAbove','insertTableRowBelow']){const _0x3627b9=_0x15de90['commands']['get'](_0x44bf70);_0x5a7f8c['enableCommand'](_0x44bf70,_0x2fc8fc=>{_0x15de90['model']['change'](_0x36709b=>{_0x2fc8fc();const _0x299f4a='above'===_0x3627b9['order'],_0x1e7e1c=_0x1cd652['getSelectionAffectedTableCells'](_0x14dbdb),_0x131cfa=_0x1cd652['getRowIndexes'](_0x1e7e1c),_0x599adb=_0x299f4a?_0x131cfa['first']-0x1:_0x131cfa['last']+0x1,_0x304ee4=_0x1e7e1c[0x0]['findAncestor']('table'),_0x46f737=_0x1cd652['createTableWalker'](_0x304ee4,{'startRow':_0x599adb,'endRow':_0x599adb}),_0x5a99ed=Array['from'](_0x46f737)['map'](_0x1ecfd4=>_0x36709b['createRangeOn'](_0x1ecfd4['cell']));_0x5a7f8c['markMultiRangeInsertion'](_0x5a99ed,'tableRow');});});}for(const _0x50a3e6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5182ac=_0x15de90['commands']['get'](_0x50a3e6);_0x5a7f8c['enableCommand'](_0x50a3e6,_0x1903b9=>{_0x15de90['model']['change'](_0x5824a4=>{_0x1903b9();const _0x5e368a='left'===_0x5182ac['order'],_0x54f798=_0x1cd652['getSelectionAffectedTableCells'](_0x14dbdb),_0x1221bf=_0x1cd652['getColumnIndexes'](_0x54f798),_0x35edbb=_0x5e368a?_0x1221bf['first']-0x1:_0x1221bf['last']+0x1,_0x49cf0f=_0x54f798[0x0]['findAncestor']('table'),_0x168958=_0x1cd652['createTableWalker'](_0x49cf0f,{'startRow':0x0,'column':_0x35edbb,'includeAllSlots':!0x1}),_0x5e3fe0=Array['from'](_0x168958)['map'](_0x2982d3=>_0x5824a4['createRangeOn'](_0x2982d3['cell']));_0x5a7f8c['markMultiRangeInsertion'](_0x5e3fe0,'tableColumn');});});}for(const _0x4a59f5 of['removeTableRow','removeTableColumn']){const _0x2be7d1=_0x4a59f5['substr'](0xb),_0x5765f9=_0x2be7d1['toLowerCase'](),_0x22c34b=_0x5765f9['substr'](0x0,0x3)+'span',_0x15d40b='table'+_0x2be7d1,_0xf8e69='min'+_0x2be7d1,_0x59d82a='max'+_0x2be7d1;_0x5a7f8c['enableCommand'](_0x4a59f5,()=>{_0x15de90['model']['change'](_0x69d832=>{const _0x2f7b74=_0x1cd652['getSelectionAffectedTableCells'](_0x14dbdb),_0x2d32fc=_0x2f7b74[0x0]['findAncestor']('table');let _0x55ac7c;if('removeTableRow'==_0x4a59f5){const _0x41c0e8=_0x1cd652['getRowIndexes'](_0x2f7b74);_0x55ac7c={'startRow':_0x41c0e8['first'],'endRow':_0x41c0e8['last'],'includeAllSlots':!0x0};}else{const _0x540bbc=_0x1cd652['getColumnIndexes'](_0x2f7b74);_0x55ac7c={'startColumn':_0x540bbc['first'],'endColumn':_0x540bbc['last'],'includeAllSlots':!0x0};}const _0x495a5e=_0x1cd652['createTableWalker'](_0x2d32fc,_0x55ac7c),_0x5a593d=Array['from'](_0x495a5e)['map'](({cell:_0xb9daaa})=>_0xb9daaa),_0x122ef8=Ne(_0x5a593d['filter'](_0x59eb47=>_0x59eb47['hasAttribute'](_0x22c34b))),_0x310b3b=Ne(_0x5a593d['filter'](_0x4d8937=>!_0x4d8937['hasAttribute'](_0x22c34b)))['map'](_0x242134=>_0x69d832['createRangeOn'](_0x242134)),_0x34845b=_0x5a7f8c['markMultiRangeDeletion'](_0x310b3b,_0x15d40b);if(_0x34845b&&('tableRow'==_0x34845b['subType']||'tableColumn'==_0x34845b['subType'])){const _0x42d2ab=this['_getSuggestionCoords'](_0x34845b);for(const _0x432754 of _0x122ef8){const _0x9e5ffa=_0x69d832['createRangeOn'](_0x432754),_0x4970cf=_0x1cd652['getCellLocation'](_0x432754),_0x3b6a90=_0x432754['getAttribute'](_0x22c34b)-0x1,_0x22fa5d=_0x42d2ab[_0xf8e69],_0x436037=_0x42d2ab[_0x59d82a];_0x22fa5d<=_0x4970cf[_0x5765f9]&&_0x4970cf[_0x5765f9]+_0x3b6a90<=_0x436037&&_0x34845b['addRange'](_0x9e5ffa);}}});});}function _0x5e38be(_0x2bd501){const _0x54e855=Array['from'](_0x14dbdb['getRanges']())['map'](_0x253bd7=>_0x217d71['fromRange'](_0x253bd7));_0x15de90['model']['change'](_0x8c7e11=>{const _0x5d44d7=_0x8c7e11['batch'];_0x2bd501=_0x2bd501['filter'](_0x51289a=>'$graveyard'!=_0x51289a['root']['rootName']),_0x8c7e11['setSelection'](_0x2bd501),_0x15de90['commands']['get']('removeTableRow')['refresh'](),_0x15de90['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x15de90['model']['enqueueChange'](()=>{_0x15de90['model']['enqueueChange'](_0x5d44d7,_0x56d1b1=>{const _0x51005d=_0x54e855['filter'](_0x55c1fa=>'$graveyard'!=_0x55c1fa['root']['rootName']);_0x51005d['length']>0x0&&_0x56d1b1['setSelection'](_0x51005d);for(const _0x4a50db of _0x54e855)_0x4a50db['detach']();});});});}function _0x128f0f(_0x519120){_0x15de90['model']['change'](_0x50da0f=>{const _0x50fe25=Array['from'](_0x14dbdb['getRanges']())['map'](_0x44dfd0=>_0x217d71['fromRange'](_0x44dfd0)),_0x41fd05=[];for(const _0x3b56fe of _0x519120)for(const _0x491eb0 of _0x3b56fe['getItems']({'shallow':!0x0}))_0x41fd05['push'](_0x491eb0);for(const _0x49e775 of _0x41fd05)'$graveyard'!=_0x49e775['root']['rootName']&&(_0x50da0f['setSelection'](_0x50da0f['createPositionAt'](_0x49e775,0x0)),_0x15de90['commands']['get']('removeTableColumn')['refresh'](),_0x15de90['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1c2238=_0x50fe25['filter'](_0x5c1c22=>'$graveyard'!=_0x5c1c22['root']['rootName']);_0x1c2238['length']>0x0&&_0x50da0f['setSelection'](_0x1c2238);for(const _0x2a2223 of _0x50fe25)_0x2a2223['detach']();});}function _0x3de3a7(_0x1a2610,_0x453a54){return _0x453a54['every'](_0xa4a9b6=>_0x1a2610['some'](_0x21767d=>_0x21767d['end']['isEqual'](_0xa4a9b6['start'])||_0xa4a9b6['end']['isEqual'](_0x21767d['start'])));}function _0x12378f(_0x562e9e,_0x220320){return!_0x562e9e['some'](_0xfb0bde=>_0x220320['some'](_0x1f25ab=>_0xfb0bde['isIntersecting'](_0x1f25ab)))&&_0x562e9e['some'](_0x498fd7=>_0x220320['some'](_0x52cce0=>_0x498fd7['end']['isTouching'](_0x52cce0['start'])));}_0x15de90['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x399785,_0x52c81a,_0x47ea63)=>{if(!_0x47ea63['options']['showSuggestionHighlights'])return;const _0x1596ed=_0x52c81a['item'];if(!_0x1596ed||!_0x1596ed['is']('element','tableCell'))return;const _0x3e560f=_0x47ea63['mapper']['toViewElement'](_0x1596ed);if(_0x3e560f){const {id:_0x245e59,authorId:_0xa5c063}=_0x5a7f8c['_splitMarkerName'](_0x52c81a['markerName']);_0x352865(_0x3e560f,_0x47ea63['writer'],(_0x4ccae9,_0x48bdcd,_0x36aa9c)=>{_0x36aa9c['addClass'](_0xd850df(_0x48bdcd['classes']),_0x4ccae9),_0x36aa9c['setAttribute']('data-suggestion-id',_0x245e59,_0x4ccae9),_0x36aa9c['setAttribute']('data-author-id',_0xa5c063,_0x4ccae9);},(_0x66e40b,_0x392b64,_0x32af8f)=>{_0x32af8f['removeClass'](_0xd850df(_0x392b64['classes']),_0x66e40b),_0x32af8f['removeAttribute']('data-suggestion-id',_0x66e40b),_0x32af8f['removeAttribute']('data-author-id',_0x66e40b);});}},{'priority':'highest'}),_0x5a7f8c['descriptionFactory']['registerDescriptionCallback'](_0x2fce72=>{if('insertion'!=_0x2fce72['type']&&'deletion'!=_0x2fce72['type'])return;const _0x14b817=_0x2fce72['getContainedElement']();if(null!=_0x14b817&&_0x14b817['is']('element','table')){if('insertion'==_0x2fce72['type']){const _0x259d5e=_0x2fce72['getItems']()['filter'](_0x2514c3=>_0x2514c3['is']('$textProxy'))['map'](_0x18a8d2=>_0x18a8d2['data']);if(_0x259d5e['length'])return{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x259d5e['join']('\x20')+'\x22'))};}if('deletion'==_0x2fce72['type']){const _0x28839e=_0x2fce72['getItems']()['filter'](_0x5b8eaf=>_0x5b8eaf['is']('$textProxy'))['map'](_0x3a4701=>_0x3a4701['data']);if(_0x28839e['length'])return{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x28839e['join']('\x20')+'\x22'))};}}}),_0x5a7f8c['descriptionFactory']['registerDescriptionCallback'](_0x4da785=>{if('tableRow'==_0x4da785['subType']){const _0x271425=_0x4da785['getItems']()['filter'](_0x332909=>_0x332909['is']('$textProxy'))['map'](_0x5438f0=>_0x5438f0['data']),_0x5c5429=this['_getSuggestionCoords'](_0x4da785),_0x54d4b9=_0x5c5429['maxRow']-_0x5c5429['minRow']+0x1;if('insertion'==_0x4da785['type'])return _0x271425['length']?{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x54d4b9,'\x22'+_0x271425['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_ROW',_0x54d4b9))};if('deletion'==_0x4da785['type'])return _0x271425['length']?{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x54d4b9,'\x22'+_0x271425['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_ROW',_0x54d4b9))};}if('tableColumn'==_0x4da785['subType']){const _0x146546=_0x4da785['getItems']()['filter'](_0x46a20e=>_0x46a20e['is']('$textProxy'))['map'](_0x13f715=>_0x13f715['data']),_0x4c336a=this['_getSuggestionCoords'](_0x4da785),_0x5d183b=_0x4c336a['maxColumn']-_0x4c336a['minColumn']+0x1;if('insertion'==_0x4da785['type'])return _0x146546['length']?{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5d183b,'\x22'+_0x146546['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_COLUMN',_0x5d183b))};if('deletion'==_0x4da785['type'])return _0x146546['length']?{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5d183b,'\x22'+_0x146546['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_COLUMN',_0x5d183b))};}}),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5e38be),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5e38be),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x128f0f),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x128f0f),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3de3a7),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3de3a7),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x12378f),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x12378f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x44accc=this['editor'],_0x14d562=_0x44accc['model']['document']['selection'];return(_0x20bb59,_0x1f89dd)=>{_0x44accc['model']['change'](_0x55c642=>{const {commandName:_0x3c0f0c,commandParams:_0x29a5b3}=_0x1f89dd;let _0x4cf339=_0x20bb59[0x0]['end']['nodeBefore'];_0x29a5b3&&_0x29a5b3[0x0]&&!0x1===_0x29a5b3[0x0]['forceValue']&&(_0x4cf339=_0x20bb59[0x0]['start']['nodeAfter']);const _0x3c3feb=_0x55c642['createRangeIn'](_0x4cf339);if('$graveyard'==_0x3c3feb['root']['rootName'])return;const _0x15cbf7=Array['from'](_0x14d562['getRanges']())['map'](_0x131137=>_0x217d71['fromRange'](_0x131137));_0x55c642['setSelection'](_0x3c3feb),_0x44accc['commands']['get'](_0x3c0f0c)['refresh'](),_0x29a5b3['push']({'forceDefaultExecution':!0x0}),_0x44accc['execute'](_0x3c0f0c,..._0x29a5b3);const _0x362391=_0x15cbf7['filter'](_0x3f0e53=>'$graveyard'!=_0x3f0e53['root']['rootName']);_0x362391['length']>0x0&&_0x55c642['setSelection'](_0x362391);for(const _0x1edee9 of _0x15cbf7)_0x1edee9['detach']();});};}['_getCoordsForCells'](_0x194739){const _0x361a3c=this['editor']['plugins']['get']('TableUtils');let _0x464d35=Number['MAX_SAFE_INTEGER'],_0x205592=Number['MIN_SAFE_INTEGER'],_0x7c7fbb=Number['MAX_SAFE_INTEGER'],_0x50fad=Number['MIN_SAFE_INTEGER'];for(const _0x4e936d of _0x194739){if('$graveyard'==_0x4e936d['root']['rootName'])continue;const {row:_0x1c472a,column:_0x54b9c2}=_0x361a3c['getCellLocation'](_0x4e936d),_0x4470e7=_0x4e936d['hasAttribute']('rowspan')?_0x4e936d['getAttribute']('rowspan')-0x1:0x0,_0x402044=_0x4e936d['hasAttribute']('colspan')?_0x4e936d['getAttribute']('colspan')-0x1:0x0;_0x464d35=_0x1c472a<_0x464d35?_0x1c472a:_0x464d35,_0x205592=_0x1c472a+_0x4470e7>_0x205592?_0x1c472a+_0x4470e7:_0x205592,_0x7c7fbb=_0x54b9c2<_0x7c7fbb?_0x54b9c2:_0x7c7fbb,_0x50fad=_0x54b9c2+_0x402044>_0x50fad?_0x54b9c2+_0x402044:_0x50fad;}return{'minRow':_0x464d35,'maxRow':_0x205592,'minColumn':_0x7c7fbb,'maxColumn':_0x50fad};}['_setupColumnsRowsFixing'](){const _0x3e8e72=this['editor'],_0x1411fa=_0x3e8e72['plugins']['get']('TrackChangesEditing'),_0x239ab2=_0x3e8e72['plugins']['get']('TableUtils');_0x3e8e72['model']['document']['on']('change:data',()=>{const _0x4c67f1=Array['from'](_0x3e8e72['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x260fe2,data:_0x5ed05a}of _0x4c67f1){const {group:_0x304797,id:_0x554dfe,subType:_0x3d4824}=_0x1411fa['_splitMarkerName'](_0x260fe2);if('suggestion'!=_0x304797)continue;if(null!=_0x5ed05a['oldRange'])continue;const _0x46f196=_0x1411fa['getSuggestion'](_0x554dfe);this['_tablePostFixingSubtypes']['includes'](_0x3d4824)&&this['_tableSuggestions']['add'](_0x46f196);}},{'priority':'low'});const _0x36a835=(_0x1ed602,_0x476a95)=>{let _0x58e449=!0x1;const _0x330ada=_0x476a95['createRangeOn'](_0x1ed602),_0x2fa34b=_0x1ed602['findAncestor']('table'),_0x36480c=_0x239ab2['getCellLocation'](_0x1ed602);for(const _0x53ddb8 of this['_tableSuggestions']){const _0x2121c5=_0x53ddb8['subType'],_0x14dab7=_0x2121c5['startsWith']('tablePaste'),_0x105cc6=_0x2121c5['substr'](_0x14dab7?0xa:0x5),_0x1086c3=_0x105cc6['toLowerCase'](),_0x40c04d=_0x1086c3['substr'](0x0,0x3)+'span',_0x425da6='min'+_0x105cc6,_0x5c699f='max'+_0x105cc6;if(!_0x53ddb8['isInContent'])continue;if(_0x2fa34b!=_0x53ddb8['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x53ddb8['isIntersectingWithRange'](_0x330ada))continue;const _0x1a2014=_0x1ed602['hasAttribute'](_0x40c04d)?_0x1ed602['getAttribute'](_0x40c04d)-0x1:0x0,_0x6663c0=this['_getSuggestionCoords'](_0x53ddb8),_0x34ae79=_0x6663c0[_0x425da6],_0x198a11=_0x6663c0[_0x5c699f];_0x34ae79<=_0x36480c[_0x1086c3]&&_0x36480c[_0x1086c3]+_0x1a2014<=_0x198a11&&(_0x53ddb8['addRange'](_0x330ada),_0x58e449=!0x0);}return _0x58e449;};_0x3e8e72['model']['document']['registerPostFixer'](_0x444006=>{let _0x5bf1a1=!0x1;for(const _0x3192ea of _0x3e8e72['model']['document']['differ']['getChanges']())if('insert'==_0x3192ea['type']){if('tableRow'==_0x3192ea['name']){for(const _0x2b6642 of _0x3192ea['position']['nodeAfter']['getChildren']())_0x5bf1a1=_0x5bf1a1||_0x36a835(_0x2b6642,_0x444006);}else'tableCell'==_0x3192ea['name']&&(_0x5bf1a1=_0x5bf1a1||_0x36a835(_0x3192ea['position']['nodeAfter'],_0x444006));}return _0x5bf1a1;});}['_getSuggestionCoords'](_0x2720af){return this['_getCoordsForCells'](_0x2720af['getRanges']()['map'](_0x415c51=>_0x415c51['start']['nodeAfter']));}}function Ne(_0x549a2f){return Array['from'](new Set(_0x549a2f)['values']());}class _t extends _0xfd4522{static get['requires'](){return[At];}['afterInit'](){const _0x4f7c5f=this['editor'],_0x5843bb=_0x4f7c5f['model']['document']['selection'],_0x3de2e0=_0x4f7c5f['locale'];if(!_0x4f7c5f['plugins']['has']('TableEditing'))return;const _0x179a39=_0x4f7c5f['plugins']['get']('TrackChangesEditing'),_0x2c7687=_0x4f7c5f['plugins']['get']('TableUtils'),_0x235e76=_0x4f7c5f['plugins']['get'](At);_0x235e76['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x179a39['enableCommand']('mergeTableCells',()=>{const _0x40dc3e=_0x2c7687['getSelectionAffectedTableCells'](_0x4f7c5f['model']['document']['selection']);_0x4f7c5f['model']['change'](()=>{_0x179a39['markMultiRangeBlockFormat'](_0x40dc3e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4f7c5f['commands']['get']('mergeTableCells')['on']('execute',(_0x102e27,_0x4c474c)=>{_0x4f7c5f['commands']['get']('trackChanges')['value']&&(_0x4c474c['length']>0x0&&_0x4c474c[_0x4c474c['length']-0x1]&&_0x4c474c[_0x4c474c['length']-0x1]['forceDefaultExecution']||_0x179a39['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x102e27['stop']());},{'priority':'highest'});for(const _0x4e777e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x590e92=_0x4f7c5f['commands']['get'](_0x4e777e);_0x179a39['enableCommand'](_0x4e777e,()=>{const _0x22edd6=_0x4f7c5f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13a1e5=>_0x13a1e5['is']('element','tableCell')),_0x1f9529=_0x590e92['value'];_0x4f7c5f['model']['change'](()=>{_0x179a39['markMultiRangeBlockFormat']([_0x22edd6,_0x1f9529],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5366c2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x26fe14=_0x4f7c5f['commands']['get'](_0x5366c2);_0x179a39['enableCommand'](_0x5366c2,()=>{const _0x53acc6=_0x2c7687['getSelectionAffectedTableCells'](_0x4f7c5f['model']['document']['selection'])[0x0],_0x2c24a4=_0x53acc6['findAncestor']('table'),{column:_0x303665,row:_0x215b14}=_0x2c7687['getCellLocation'](_0x53acc6);let _0xb07462=[];if('horizontally'==_0x26fe14['direction']){const _0x2ed02b=_0x2c7687['createTableWalker'](_0x2c24a4,{'startRow':_0x215b14,'endRow':_0x215b14,'includeAllSlots':!0x0});_0xb07462=Array['from'](_0x2ed02b)['map'](_0x5398e5=>_0x5398e5['cell']);}else{const _0x22d5c8=_0x2c7687['createTableWalker'](_0x2c24a4,{'column':_0x303665,'includeAllSlots':!0x0});_0xb07462=Array['from'](_0x22d5c8)['map'](_0x10ff66=>_0x10ff66['cell']);}_0x4f7c5f['model']['change'](_0x18b7b0=>{_0x179a39['markBlockFormat'](_0x18b7b0['createRangeOn'](_0x53acc6),{'commandName':_0x5366c2,'commandParams':[]},_0xb07462,_0x5366c2);});});}_0x179a39['descriptionFactory']['registerDescriptionCallback'](_0x1c65e2=>{if('formatBlock'!=_0x1c65e2['type']&&'formatInline'!=_0x1c65e2['type'])return;const {data:_0x3a8b1f}=_0x1c65e2;return _0x3a8b1f&&'mergeTableCells'==_0x3a8b1f['commandName']?{'type':'format','content':o(_0x3de2e0,'*Merge\x20cells*')}:void 0x0;}),_0x179a39['descriptionFactory']['registerDescriptionCallback'](_0x546fd6=>{if('formatBlock'!=_0x546fd6['type']&&'formatInline'!=_0x546fd6['type'])return;const {data:_0x341e53}=_0x546fd6;return _0x341e53?'splitTableCellVertically'==_0x341e53['commandName']?{'type':'format','content':o(_0x3de2e0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x341e53['commandName']?{'type':'format','content':o(_0x3de2e0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x53110b=_0x235e76['_acceptFormatSuggestionCallbackFactory']();for(const _0x5d0655 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x179a39['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d0655,'accept',_0x53110b);for(const _0xdc2d4e of['splitTableCellVertically','splitTableCellHorizontally'])_0x179a39['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xdc2d4e,'accept',_0x53110b);_0x179a39['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x7925fb=>{_0x4f7c5f['model']['change'](_0x3caf43=>{const _0x2a4b3d=Array['from'](_0x5843bb['getRanges']())['map'](_0x4d3fcf=>_0x217d71['fromRange'](_0x4d3fcf));_0x3caf43['setSelection'](_0x7925fb),_0x4f7c5f['commands']['get']('mergeTableCells')['refresh'](),_0x4f7c5f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4ee677=_0x2a4b3d['filter'](_0x2c0b32=>'$graveyard'!=_0x2c0b32['root']['rootName']);_0x4ee677['length']>0x0&&_0x3caf43['setSelection'](_0x4ee677);for(const _0x273532 of _0x2a4b3d)_0x273532['detach']();});});for(const _0x50917b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xbd24b4=_0x4f7c5f['commands']['get'](_0x50917b);_0xbd24b4['on']('set:isEnabled',(_0x49eed5,_0x181d54,_0x250779)=>{if(_0x250779){const _0x3397e1=_0x4f7c5f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x44302e=>_0x44302e['is']('element','tableCell'));this['_areMergableCells'](_0xbd24b4['value'],_0x3397e1)||(_0x49eed5['return']=!0x1,_0x49eed5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1d867d=this['editor']['commands']['get']('mergeTableCells'),_0x47b420=this['editor']['plugins']['get']('TableUtils');if(!_0x1d867d['isEnabled'])return!0x1;const _0x1e019f=_0x47b420['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3194ea of _0x1e019f)for(const _0x1062e5 of _0x1e019f)if(_0x3194ea!=_0x1062e5&&!this['_areMergableCells'](_0x3194ea,_0x1062e5))return!0x1;return!0x0;}['_areMergableCells'](_0x36ee85,_0x2f33df){const _0xa3a5a3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x514176=this['editor']['model']['createRangeOn'](_0x36ee85),_0x1ce2b4=this['editor']['model']['createRangeOn'](_0x2f33df),_0x5c6cd2=new Set(),_0x284c05=new Set();for(const _0x375fef of _0xa3a5a3['getSuggestions']())if(('insertion'==_0x375fef['type']||'deletion'==_0x375fef['type']||'mergeTableCells'==_0x375fef['subType'])&&_0x375fef['isInContent']){for(const _0x4179dc of _0x375fef['getRanges']())_0x4179dc['containsRange'](_0x514176,!0x0)&&_0x5c6cd2['add'](_0x375fef['type']+':'+_0x375fef['author']['id']),_0x4179dc['containsRange'](_0x1ce2b4,!0x0)&&_0x284c05['add'](_0x375fef['type']+':'+_0x375fef['author']['id']);}if(_0x5c6cd2['size']!=_0x284c05['size'])return!0x1;for(const _0x302d58 of _0x5c6cd2)if(!_0x284c05['has'](_0x302d58))return!0x1;return!0x0;}}class Ct extends _0xfd4522{static get['requires'](){return[At];}['afterInit'](){const _0x1b7b98=this['editor'];if(!_0x1b7b98['plugins']['has']('TableEditing'))return;const _0x5c3588=_0x1b7b98['locale'],_0x8543d=_0x1b7b98['plugins']['get']('TrackChangesEditing');_0x8543d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x8543d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x8543d['registerBlockAttribute']('headingRows'),_0x8543d['registerBlockAttribute']('headingColumns'),_0x8543d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5c3588,'FORMAT_HEADER_ROW')),_0x8543d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5c3588,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30f482=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24a3cd=this['editor']['plugins']['get']('TableUtils'),_0x41c49a=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x3d00ed({showActiveMarker:_0x36ad7d=!0x0,setDataAttribute:_0x5a5159=!0x0}={}){return(_0x5afd23,_0x4d51a2,_0xe01c1d)=>{const {type:_0x4c2896,id:_0x4125a1}=_0x30f482['_splitMarkerName'](_0x4d51a2['markerName']),_0x5ba9e5=_0x30f482['getSuggestion'](_0x4125a1),_0x3e12bb=_0x5ba9e5['data'];if('formatBlock'!=_0x5ba9e5['type']||!_0x3e12bb||'setTableColumnHeader'!=_0x3e12bb['commandName'])return;if(_0x4d51a2['item'])return void _0x5afd23['stop']();if(!_0xe01c1d['consumable']['consume'](_0x4d51a2['markerRange'],_0x5afd23['name']))return;const _0xd949d4=_0x4d51a2['markerRange']['start']['nodeAfter'],_0x2e589b=_0x4d51a2['markerRange']['end']['nodeBefore'],_0x123bdc=_0xd949d4['parent']['parent'],{column:_0x3071d5}=_0x24a3cd['getCellLocation'](_0xd949d4),{column:_0x143a61}=_0x24a3cd['getCellLocation'](_0x2e589b);for(let _0x36bf33=_0x3071d5;_0x36bf33<=_0x143a61;_0x36bf33++){const _0x4271f8=_0x24a3cd['createTableWalker'](_0x123bdc,{'column':_0x36bf33,'includeAllSlots':!0x1});for(const _0x52e3c7 of _0x4271f8){const _0x2ca216=_0x52e3c7['cell'],_0x2947de=_0xe01c1d['mapper']['toViewElement'](_0x2ca216);_0xe01c1d['writer']['addClass']('ck-suggestion-marker-'+_0x4c2896,_0x2947de),_0x5a5159&&_0xe01c1d['writer']['setAttribute']('data-suggestion',_0x4125a1,_0x2947de),_0xe01c1d['mapper']['bindElementToMarker'](_0x2947de,_0x4d51a2['markerName']),_0x36ad7d&&(_0x30f482['activeMarkers']['includes'](_0x4d51a2['markerName'])?_0xe01c1d['writer']['addClass']('ck-suggestion-marker--active',_0x2947de):_0xe01c1d['writer']['removeClass']('ck-suggestion-marker--active',_0x2947de));}}};}_0x30f482['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x41c49a),_0x30f482['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x41c49a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3d00ed(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f4ced,_0xe57634,_0x36b119)=>{_0x36b119['options']['showSuggestionHighlights']&&_0x3d00ed({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4f4ced,_0xe57634,_0x36b119);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x413c75,_0x516ae1,_0x31d0fb)=>{const {type:_0x32b89d,id:_0x2737bd}=_0x30f482['_splitMarkerName'](_0x516ae1['markerName']),_0xcb89b3=_0x30f482['getSuggestion'](_0x2737bd),_0x4dcda2=_0xcb89b3['data'];if('formatBlock'!=_0xcb89b3['type']||!_0x4dcda2||'setTableColumnHeader'!=_0x4dcda2['commandName'])return;const _0x4ba9f8=_0x31d0fb['mapper']['markerNameToElements'](_0x516ae1['markerName']);if(_0x4ba9f8){for(const _0x1f4c1e of _0x4ba9f8)_0x31d0fb['writer']['removeClass']('ck-suggestion-marker-'+_0x32b89d,_0x1f4c1e),_0x31d0fb['writer']['removeClass']('ck-suggestion-marker--active',_0x1f4c1e),_0x31d0fb['writer']['removeAttribute']('data-suggestion',_0x1f4c1e),_0x31d0fb['mapper']['unbindElementFromMarkerName'](_0x1f4c1e,_0x516ae1['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe77ccc=this['editor'],_0x93c9d3=_0xe77ccc['locale'];function _0x5338e5(_0x382e63){return{'type':'format','content':o(_0x93c9d3,'*Format:*\x20%0',_0x382e63)};}_0xe77ccc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x251ae7=>{if('formatBlock'!=_0x251ae7['type'])return;const {data:_0x226f24}=_0x251ae7;if(_0x226f24){if('setTableRowHeader'==_0x226f24['commandName']){const _0x4b1f86=_0x226f24['commandParams'][0x0]['forceValue'];return _0x5338e5(o(_0x93c9d3,_0x4b1f86?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x226f24['commandName']){const _0x5baeb9=_0x226f24['commandParams'][0x0]['forceValue'];return _0x5338e5(o(_0x93c9d3,_0x5baeb9?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xfd4522{['afterInit'](){const _0x27f941=this['editor'],_0x2b4366=_0x27f941['locale'],_0x49b143=_0x27f941['plugins']['get']('TrackChangesEditing');function _0x3a8d6b(_0xccbe2){return{'type':'format','content':''+o(_0x2b4366,'*Set\x20table\x20type:*\x20%0',_0xccbe2)};}_0x27f941['plugins']['has']('TableLayout')&&(_0x49b143['enableCommand']('insertTableLayout'),_0x49b143['enableDefaultAttributesIntegration']('tableType'),_0x49b143['registerBlockAttribute']('tableType'),_0x49b143['descriptionFactory']['registerElementLabel'](_0x35fb1f=>_0x35fb1f['is']('element','table')&&'layout'===_0x35fb1f['getAttribute']('tableType'),_0x165b72=>o(_0x2b4366,'ELEMENT_LAYOUT_TABLE',_0x165b72)),_0x49b143['descriptionFactory']['registerDescriptionCallback'](_0x3461e1=>{const {data:_0x453695}=_0x3461e1;if(_0x453695&&'tableType'==_0x453695['key'])switch(_0x453695['newValue']){case'layout':return _0x3a8d6b(o(_0x2b4366,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3a8d6b(o(_0x2b4366,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x26de5f=>[_0x26de5f,null]));class Nt extends _0xfd4522{static get['requires'](){return[At];}['afterInit'](){const _0x3e59a9=this['editor'];if(!_0x3e59a9['plugins']['has']('TableClipboard'))return;const _0x4c3cf0=_0x3e59a9['plugins']['get']('TrackChangesEditing'),_0x676550=_0x3e59a9['plugins']['get']('TableUtils'),_0x38824b=_0x3e59a9['plugins']['get'](At),_0x35c71f=_0x3e59a9['plugins']['get']('TableClipboard'),_0x1566f=_0x3e59a9['plugins']['get']('TableSelection'),_0x16ecd2=_0x3e59a9['plugins']['get'](_0x3dd587);_0x38824b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3e59a9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3e59a9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2ac59f=null,_0x1e5fc4=!0x1;_0x16ecd2['on']('contentInsertion',(_0x1e55ab,_0x3becc6)=>{_0x1e5fc4='paste'===_0x3becc6['method'];}),_0x3e59a9['model']['on']('insertContent',(_0x1e8f8b,_0x12d603)=>{if(!_0x1e5fc4&&null===_0x1566f['getSelectedTableCells']())return;const [_0x2f20d4,_0x421d98]=_0x12d603,_0x442cd0=_0x12d603[_0x12d603['length']-0x1];_0x442cd0&&_0x442cd0['forceDefaultExecution']||_0x4c3cf0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4c3b13,_0x13d715,_0x52d40b,_0x58d823,_0x56a98b){if(_0x13d715&&!_0x13d715['is']('documentSelection'))return!0x1;const _0x539099=_0x56a98b['getTableIfOnlyTableInContent'](_0x4c3b13,_0x52d40b);if(!_0x539099||!Ue(_0x539099,void 0x0,_0x58d823))return!0x1;const _0x1d364b=_0x58d823['getSelectionAffectedTableCells'](_0x52d40b['document']['selection']);if(!_0x1d364b['length'])return!0x1;const _0x5dc262=_0x1d364b[0x0]['findAncestor']('table'),_0x3c3dfa=_0x58d823['getRowIndexes'](_0x1d364b),_0x19e7d8=_0x58d823['getColumnIndexes'](_0x1d364b),_0xc9b548={'startRow':_0x3c3dfa['first'],'endRow':_0x3c3dfa['last'],'startColumn':_0x19e7d8['first'],'endColumn':_0x19e7d8['last']};return 0x1==_0x1d364b['length']&&(_0xc9b548['endRow']+=_0x58d823['getRows'](_0x539099)-0x1,_0xc9b548['endColumn']+=_0x58d823['getColumns'](_0x539099)-0x1),Ue(_0x5dc262,_0xc9b548,_0x58d823);}(_0x2f20d4,_0x421d98,_0x3e59a9['model'],_0x676550,_0x35c71f)&&(_0x1e8f8b['stop'](),_0x2ac59f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3e59a9['model']['change'](()=>{_0x3e59a9['model']['insertContent'](_0x12d603[0x0],_0x12d603[0x1],_0x12d603[0x2],{'forceDefaultExecution':!0x0});const _0x297998=_0x110ca2(),{rowInsertionRanges:_0x16a7c7,columnInsertionRanges:_0x5365ee,insertionRanges:_0x5b1ab2,deletionRanges:_0x40a98b,cells:_0x260635}=_0x2ac59f;_0x16a7c7['length']&&_0x4c3cf0['markMultiRangeInsertion'](_0x16a7c7,'tablePasteRow',{'tablePasteChainId':_0x297998}),_0x5365ee['length']&&_0x4c3cf0['markMultiRangeInsertion'](_0x5365ee,'tablePasteColumn',{'tablePasteChainId':_0x297998}),_0x5b1ab2['length']&&(_0x4c3cf0['markMultiRangeInsertion'](_0x5b1ab2,'tablePaste',{'tablePasteChainId':_0x297998,'skipNestingCheck':!0x0}),_0x5b1ab2['forEach'](_0x22bcb7=>_0x22bcb7['detach']?.())),_0x40a98b['length']&&(_0x4c3cf0['markMultiRangeDeletion'](_0x40a98b,'tablePaste',{'tablePasteChainId':_0x297998,'skipNestingCheck':!0x0}),_0x40a98b['forEach'](_0x26d0ab=>_0x26d0ab['detach']?.()));const _0x24abbb=_0x4c3cf0['markMultiRangeBlockFormat'](_0x260635['map'](({element:_0x1025ad})=>_0x1025ad),{'formatGroupId':_0x110ca2()},[],'tablePasteCell',{'tablePasteChainId':_0x297998});if(_0x24abbb){const _0x12bc47=_0x24abbb['getMarkers'](),_0x2280e=[];for(const {element:_0x280916,attributes:_0x362dd2}of _0x260635){if(!_0x362dd2)continue;const _0x58d989=_0x3e59a9['model']['createRangeOn'](_0x280916),_0x108422=_0x12bc47['find'](_0x4056d8=>_0x4056d8['getRange']()['isEqual'](_0x58d989));_0x108422&&_0x2280e['push']([_0x108422['name'],_0x362dd2]);}_0x2280e['length']&&_0x24abbb['setAttribute']('markerAttributes',Object['fromEntries'](_0x2280e));}_0x2ac59f=null;}));},{'priority':_0x533dca['high']+0xa}),_0x16ecd2['on']('contentInsertion',()=>{_0x1e5fc4=!0x1;},{'priority':'lowest'}),_0x3e59a9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x29f96b,_0x3d5924)=>{const [_0x45dd1f,_0x1c64f6,,_0x55d9ff]=_0x3d5924;if(!_0x2ac59f)return;_0x29f96b['stop']();const _0x372148=_0x45dd1f['cell'],_0x301cf2=_0x1c64f6,_0x57b874=Oe(_0x372148),_0x2bc012=Oe(_0x301cf2);_0x29f96b['return']=_0x372148;let _0x16f0c7=null,_0x2ca549=null;if(_0x2bc012||_0x57b874){if(_0x57b874&&!_0x2bc012){_0x55d9ff['remove'](_0x372148['getChild'](0x0));for(const _0x19e49a of Array['from'](_0x301cf2['getChildren']()))_0x55d9ff['insert'](_0x19e49a,_0x372148,'end');const _0x170063=_0x2ac59f['rowInsertionIndexes']['includes'](_0x45dd1f['row']),_0x3c7e2a=_0x2ac59f['columnInsertionIndexes']['includes'](_0x45dd1f['column']);_0x170063||_0x3c7e2a||(_0x16f0c7=_0x217d71['fromRange'](_0x55d9ff['createRangeIn'](_0x372148)));}else _0x2bc012&&!_0x57b874&&(_0x2ca549=_0x55d9ff['createRangeIn'](_0x372148));}else{const _0x470bf2=_0x55d9ff['createElement']('tableCellSuggestion'),_0x259490=_0x55d9ff['createElement']('tableCellSuggestion');_0x55d9ff['wrap'](_0x55d9ff['createRangeIn'](_0x372148),_0x259490),_0x55d9ff['insert'](_0x470bf2,_0x372148,0x0);for(const _0x13f8b8 of Array['from'](_0x301cf2['getChildren']()))_0x55d9ff['insert'](_0x13f8b8,_0x470bf2,'end');_0x16f0c7=_0x217d71['fromRange'](_0x55d9ff['createRangeOn'](_0x470bf2)),_0x2ca549=_0x217d71['fromRange'](_0x55d9ff['createRangeOn'](_0x259490));}const _0x384d9d=Array['from'](_0x301cf2['getAttributes']())['filter'](([_0x5a5b19])=>Be['includes'](_0x5a5b19));_0x2ac59f['cells']['push']({'element':_0x372148,'attributes':_0x384d9d['length']?Object['fromEntries'](_0x384d9d):null}),_0x16f0c7&&_0x2ac59f['insertionRanges']['push'](_0x16f0c7),_0x2ca549&&_0x2ac59f['deletionRanges']['push'](_0x2ca549);},{'priority':'high'}),_0x676550['on']('insertColumns',(_0x35c11b,_0x421b00)=>{const [_0x232f17,_0xe1c57={}]=_0x421b00;if(!_0x2ac59f)return;const _0x33ff68=_0xe1c57['at']||0x0,_0x88ca63=_0xe1c57['columns']||0x1;_0x2ac59f['columnInsertionIndexes']=new Array(_0x88ca63)['fill'](_0x33ff68)['map']((_0x2ae9bb,_0x1377f3)=>_0x2ae9bb+_0x1377f3);for(const {cell:_0x2b9298}of _0x676550['createTableWalker'](_0x232f17,{'startColumn':_0x33ff68,'endColumn':_0x33ff68+_0x88ca63-0x1}))_0x2ac59f['columnInsertionRanges']['push'](_0x3e59a9['model']['createRangeOn'](_0x2b9298));},{'priority':'low'}),_0x676550['on']('insertRows',(_0x49767e,_0x545488)=>{const [_0x26cccf,_0x21cb24={}]=_0x545488;if(!_0x2ac59f)return;const _0x8ddde3=_0x21cb24['at']||0x0,_0x71f998=_0x21cb24['rows']||0x1;_0x2ac59f['rowInsertionIndexes']=new Array(_0x71f998)['fill'](_0x8ddde3)['map']((_0xf5fdc0,_0x13be90)=>_0xf5fdc0+_0x13be90);for(const {cell:_0x43f46b}of _0x676550['createTableWalker'](_0x26cccf,{'startRow':_0x8ddde3,'endRow':_0x8ddde3+_0x71f998-0x1}))_0x2ac59f['rowInsertionRanges']['push'](_0x3e59a9['model']['createRangeOn'](_0x43f46b));},{'priority':'low'}),_0x4c3cf0['descriptionFactory']['registerDescriptionCallback'](_0x1a7134=>{if(_0x1a7134['subType']&&_0x1a7134['subType']['startsWith']('tablePaste'))return _0x1a7134['previous']?{}:{'type':'insertion','content':o(_0x3e59a9['locale'],'*Replace\x20table\x20cells*')};});const _0x448336=()=>!0x1;for(const _0x3a34f8 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('insertion',_0x3a34f8,'join',_0x448336),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('deletion',_0x3a34f8,'join',_0x448336),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a34f8,'join',_0x448336);_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x448336),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x49c899,_0x33d0e9,_0x413c7a)=>{const _0x4e5df0=_0x49c899['map'](_0x592fbb=>_0x592fbb['getContainedElement']())['filter'](_0x37d9a7=>_0x37d9a7),_0x3a8461=new Map(_0x4e5df0['map'](_0x5eaf38=>[_0x5eaf38,null]));if(_0x2ac59f){for(const {element:_0x1aa204,attributes:_0x343b07}of _0x2ac59f['cells'])_0x343b07&&_0x3a8461['set'](_0x1aa204,_0x343b07);}else{if(_0x413c7a&&_0x413c7a['markerAttributes'])for(const [_0x1fca96,_0x1a08d5]of Object['entries'](_0x413c7a['markerAttributes'])){const _0x19d55d=_0x3e59a9['model']['markers']['get'](_0x1fca96),_0x12f4ab=_0x19d55d?_0x19d55d['getRange']()['getContainedElement']():null;_0x12f4ab&&_0x3a8461['set'](_0x12f4ab,_0x1a08d5);}}_0x3e59a9['model']['change'](_0x1c5158=>{for(const [_0x22bda7,_0x4b5fe1]of _0x3a8461)_0x1c5158['setAttributes']({...xe,..._0x4b5fe1},_0x22bda7);});});const _0x5c82b0=(_0x48f817,_0x37c9e3)=>{_0x4c3cf0['_suggestionFactory']['registerCustomCallback'](_0x48f817,'tablePaste',_0x37c9e3,(_0x1b8b49,_0xb2db4d,_0x51ee5f)=>{_0x3e59a9['model']['change'](_0x3ff765=>{const _0x28851a=[];for(const _0x363328 of _0x1b8b49){const _0x53dbd3=_0x363328['start']['nodeAfter'];_0x53dbd3['is']('element','tableCellSuggestion')&&_0x28851a['push'](_0x53dbd3);}_0x4c3cf0['_suggestionFactory']['getSuggestionCallback'](_0x48f817,null,_0x37c9e3)(_0x1b8b49,_0xb2db4d,_0x51ee5f);for(const _0x3da037 of _0x28851a)'$graveyard'!=_0x3da037['root']['rootName']&&_0x3ff765['unwrap'](_0x3da037);});});};_0x5c82b0('insertion','accept'),_0x5c82b0('insertion','discard'),_0x5c82b0('deletion','accept'),_0x5c82b0('deletion','discard'),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x558149=>{const _0x12531b=_0x558149['map'](_0x556cf2=>_0x556cf2['getContainedElement']()),_0x46b6d6=_0x12531b[0x0]['findAncestor']('table'),{minRow:_0x5d849f,maxRow:_0x4322fa}=_0x38824b['_getCoordsForCells'](_0x12531b);_0x676550['removeRows'](_0x46b6d6,{'at':_0x5d849f,'rows':_0x4322fa-_0x5d849f+0x1});}),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x403aa5=>{const _0x111f77=_0x403aa5['map'](_0x46540c=>_0x46540c['getContainedElement']()),_0x2336af=_0x111f77[0x0]['findAncestor']('table'),{minColumn:_0x525a21,maxColumn:_0x5cb79d}=_0x38824b['_getCoordsForCells'](_0x111f77);_0x676550['removeColumns'](_0x2336af,{'at':_0x525a21,'columns':_0x5cb79d-_0x525a21+0x1});});const _0x11541f=(_0x418991,_0x6e6ae1)=>{if(!_0x6e6ae1['subType']||!_0x6e6ae1['subType']['startsWith']('tablePaste'))return;const _0x143698=_0x6e6ae1['attributes']['tablePasteChainId'],_0x42aba5=_0x4c3cf0['getSuggestions']()['filter'](_0xa59864=>_0xa59864['isInContent']&&_0xa59864['attributes']&&_0xa59864['attributes']['tablePasteChainId']==_0x143698);_0x42aba5['length']&&_0x6e6ae1['getAllAdjacentSuggestions']()['length']!=_0x42aba5['length']&&_0x42aba5['reduce']((_0x539bb1,_0x179454)=>(_0x539bb1['next']=_0x179454,_0x179454['previous']=_0x539bb1,_0x179454));};function _0x115b46(_0x4b57bf,_0x457a89=!0x0){const {id:_0x91e262,authorId:_0x43d165}=_0x4c3cf0['_splitMarkerName'](_0x4b57bf['markerName']),_0x6321da=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4476d5=_0x4c3cf0['activeMarkers']['includes'](_0x4b57bf['markerName']);return _0x4476d5&&_0x6321da['push']('ck-suggestion-marker--active'),{'classes':_0x6321da,'attributes':{'data-suggestion':_0x91e262,'data-author-id':_0x43d165},'priority':_0x4476d5&&_0x457a89?0xbc2:0xbb8};}_0x4c3cf0['on']('suggestionLoaded',_0x11541f,{'priority':'high'}),_0x4c3cf0['on']('suggestionUnloaded',_0x11541f,{'priority':'high'}),_0x3e59a9['model']['document']['registerPostFixer'](()=>{let _0x56dd1b=!0x1;const _0x1601fb=Array['from'](_0x3e59a9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7aea1,data:_0x2fa005}of _0x1601fb){const {group:_0xee2c1e,type:_0x485760,id:_0x1dedae}=_0x4c3cf0['_splitMarkerName'](_0x7aea1);if('suggestion'!=_0xee2c1e||'deletion'!=_0x485760||_0x2fa005['oldRange'])continue;if(!_0x4c3cf0['hasSuggestion'](_0x1dedae))continue;const _0x1f63e9=_0x4c3cf0['getSuggestion'](_0x1dedae)['getRanges'](),_0xe0c651=_0x3e59a9['plugins']['get']('Users')['me'];for(const _0x4201fa of _0x4c3cf0['getSuggestions']()){if(!_0x4201fa['isInContent']||_0x4201fa['author']!=_0xe0c651)continue;if('formatBlock'!=_0x4201fa['type']||'tablePasteCell'!=_0x4201fa['subType'])continue;if(_0x4201fa['getRanges']()['every'](_0xe00abc=>_0x1f63e9['some'](_0x137f2a=>_0x137f2a['containsRange'](_0xe00abc,!0x0)))){for(const _0x4986c6 of _0x4201fa['getAllAdjacentSuggestions']())_0x4986c6['isInContent']&&(_0x4986c6['discard'](),_0x56dd1b=!0x0);}}}return _0x56dd1b;}),_0x3e59a9['model']['document']['registerPostFixer'](_0x4f0ca6=>{const _0xc50e1=_0x3e59a9['commands']['get']('redo');if(!_0xc50e1||!_0xc50e1['_createdBatches']['has'](_0x4f0ca6['batch']))return!0x1;let _0x3c6c03=!0x1;const _0x277394=_0x3e59a9['plugins']['get']('Users')['me'],_0x2e7176=_0x3e59a9['model']['document']['differ']['getChanges'](),_0x2cf0c3=Array['from'](_0x3e59a9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4bef40,data:_0x462b1f})=>{const {group:_0x4494d5,subType:_0x1452e1,authorId:_0x2f7ea4}=_0x4c3cf0['_splitMarkerName'](_0x4bef40);return'suggestion'==_0x4494d5&&'tablePaste'==_0x1452e1&&_0x2f7ea4==_0x277394['id']&&!_0x462b1f['oldRange'];});for(const _0x25d902 of _0x2e7176){if('insert'!=_0x25d902['type']||'tableCellSuggestion'!=_0x25d902['name']||0x1!=_0x25d902['length'])continue;const _0x488efd=_0x4f0ca6['createRange'](_0x25d902['position'],_0x25d902['position']['getShiftedBy'](0x1));if(!_0x2cf0c3['find'](({data:_0x33e614})=>_0x33e614['newRange']['isEqual'](_0x488efd))){for(const {name:_0x26b326,data:_0x300973}of _0x2cf0c3)if(_0x488efd['containsRange'](_0x300973['newRange'])){_0x4f0ca6['updateMarker'](_0x26b326,{'range':_0x488efd}),_0x3c6c03=!0x0;break;}}}return _0x3c6c03;}),_0x3e59a9['model']['document']['registerPostFixer'](_0x57a6fd=>{let _0x1a6479=!0x1;const _0x2bd04f=_0x3e59a9['plugins']['get']('Users')['me'],_0x5f5688=_0x4c3cf0['getSuggestions']()['filter'](_0x578072=>_0x578072['isInContent']&&_0x578072['author']==_0x2bd04f),_0x16c782=new Set(),_0x10feff=new Set();for(const _0x269077 of _0x5f5688)if('tablePaste'==_0x269077['subType'])for(const _0x22c3fd of _0x269077['getMarkers']()){const _0x47c2d9=_0x22c3fd['getRange']()['getContainedElement']();if(_0x47c2d9){if(_0x47c2d9['is']('element','tableCellSuggestion')&&Oe(_0x47c2d9)){_0x269077['removeMarker'](_0x22c3fd['name']),_0x16c782['add'](_0x47c2d9),_0x1a6479=!0x0;const _0x2bcfbe=_0x47c2d9['nextSibling'],_0x590d27=_0x47c2d9['previousSibling'],_0xe6abce=_0x2bcfbe&&_0x2bcfbe['is']('element','tableCellSuggestion'),_0x25d1b4=_0x590d27&&_0x590d27['is']('element','tableCellSuggestion');_0xe6abce&&!_0x16c782['has'](_0x2bcfbe)&&_0x10feff['add'](_0x2bcfbe),_0x25d1b4&&!_0x16c782['has'](_0x590d27)&&_0x10feff['add'](_0x590d27);}else _0x47c2d9['is']('element','paragraph')&&_0x47c2d9['isEmpty']&&(_0x269077['removeMarker'](_0x22c3fd['name']),_0x1a6479=!0x0);}}else{if('tablePasteCell'==_0x269077['subType']){if(!_0x269077['attributes']||!_0x269077['attributes']['tablePasteChainId'])continue;const _0x10e7eb=_0x269077['attributes']['markerAttributes'];if(_0x10e7eb&&Object['keys'](_0x10e7eb)['length'])continue;const _0x51bf4e=_0x269077['attributes']['tablePasteChainId'];let _0x1f7e5d=!0x0,_0x2dec9b=!0x0;for(const _0x3c520d of _0x5f5688)if(_0x3c520d['subType']&&_0x3c520d['subType']['startsWith']('tablePaste')){if(!_0x3c520d['attributes']['tablePasteChainId']){_0x2dec9b=!0x1;break;}if(_0x3c520d['id']!=_0x269077['id']&&_0x3c520d['attributes']['tablePasteChainId']==_0x51bf4e){_0x1f7e5d=!0x1;break;}}_0x2dec9b&&_0x1f7e5d&&(_0x269077['removeMarkers'](),_0x1a6479=!0x0);}}for(const _0x171448 of _0x16c782)_0x57a6fd['remove'](_0x171448);for(const _0x2b2a88 of _0x10feff)_0x57a6fd['unwrap'](_0x2b2a88);return _0x1a6479;}),_0x3e59a9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3628f8=>_0x115b46(_0x3628f8),'converterPriority':'high'}),_0x3e59a9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5e3be6,_0x31aed1)=>_0x31aed1['options']['showSuggestionHighlights']?_0x115b46(_0x5e3be6,!0x1):null,'converterPriority':'high'});const _0x363747=_0x3e59a9['editing']['view'];this['listenTo'](_0x363747['document'],'clipboardOutput',(_0x1e07c8,_0x148ccb)=>{const _0x503bd8=[];for(const _0x21987a of _0x363747['createRangeIn'](_0x148ccb['content'])['getItems']())_0x21987a['is']('element','suggestion-td')&&_0x503bd8['push'](_0x21987a);_0x363747['change'](_0x27d01a=>{for(const _0x1a7eaa of _0x503bd8)_0x27d01a['move'](_0x27d01a['createRangeIn'](_0x1a7eaa),_0x27d01a['createPositionBefore'](_0x1a7eaa)),_0x27d01a['remove'](_0x1a7eaa);});});}}function Oe(_0x40bd51){if(_0x40bd51['isEmpty'])return!0x0;const _0x4cb8da=_0x40bd51['getChild'](0x0);return _0x4cb8da['is']('element','paragraph')&&_0x4cb8da['isEmpty'];}function Ue(_0x30d725,_0x4ab0a4={},_0x5b6fbe){for(const {isAnchor:_0x39b1b2,cellHeight:_0x481f9e,cellWidth:_0x4c918c}of _0x5b6fbe['createTableWalker'](_0x30d725,{'includeAllSlots':!0x0,..._0x4ab0a4}))if(!_0x39b1b2||0x1!=_0x481f9e||0x1!=_0x4c918c)return!0x1;return!0x0;}class Dt extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2b96a2=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b96a2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2b96a2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2b96a2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b96a2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2b96a2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2b96a2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xf80747,_0x429315){const _0x4b2d56=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a414c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3e2f0f=_0x429315['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3911f9=_0x2a414c['getColumnGroupElement'](_0x3e2f0f);let _0x15c6c2=_0x3911f9?_0x2a414c['getTableColumnsWidths'](_0x3911f9):null,_0x3bb549=_0x3e2f0f['getAttribute']('tableWidth')||null;const _0x527188=_0x429315['tableWidth']||_0x3bb549,_0x4ee313=_0x429315['columnWidths']||_0x15c6c2,_0x395c66=this['editor']['plugins']['get']('Users')['me'];for(const _0x289e74 of _0x4b2d56['getSuggestions']()){const _0x527595=_0x289e74['getContainedElement']();if('resizeTable'===_0x289e74['subType']&&_0x527595===_0x3e2f0f){_0x289e74['author']!==_0x395c66&&_0x289e74['discard']();const _0x24d616=_0x289e74['data']['commandParams'];_0x3bb549=_0x24d616[0x0]['tableWidth'],_0x15c6c2=_0x24d616[0x0]['columnWidths'];break;}}_0xf80747({'table':_0x3e2f0f,'tableWidth':_0x527188,'columnWidths':_0x4ee313}),_0x4b2d56['markBlockFormat'](_0x3e2f0f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3bb549,'columnWidths':_0x15c6c2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x25a437){if('formatBlock'!=_0x25a437['type']&&'formatInline'!=_0x25a437['type'])return;const {data:_0x277656}=_0x25a437;if(_0x277656&&'resizeTable'===_0x277656['formatGroupId']){const _0x484f8f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x484f8f)};}}}class $t extends _0xfd4522{['afterInit'](){const _0x34531f=this['editor'];_0x34531f['plugins']['has']('Template')&&_0x34531f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xfd4522{['afterInit'](){const _0x336fa0=this['editor'];if(!_0x336fa0['commands']['get']('insertTableOfContents'))return;_0x336fa0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x19bb59=_0x336fa0['plugins']['get']('TrackChangesEditing'),_0x559e23=_0x336fa0['locale'];_0x19bb59['descriptionFactory']['registerElementLabel']('tableOfContents',_0x12e8d9=>o(_0x559e23,'ELEMENT_TABLE_OF_CONTENTS',_0x12e8d9));}}class Bt extends _0xfd4522{['afterInit'](){const _0x4cc075=this['editor'];if(!_0x4cc075['plugins']['has']('Title'))return;const _0x4eb1c6=_0x4cc075['plugins']['get']('TrackChangesEditing');_0x4eb1c6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4cc075['locale'],'ELEMENT_TITLE')),_0x4cc075['model']['document']['registerPostFixer'](_0x4108cb=>{let _0x4e1b76=!0x1;const _0x5bfb=Array['from'](_0x4cc075['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e8b52,data:_0x276a59}of _0x5bfb){const {group:_0x3dbc21}=_0x4eb1c6['_splitMarkerName'](_0x4e8b52);if('suggestion'!==_0x3dbc21||!_0x276a59['newRange'])continue;const _0x371b98=_0x276a59['newRange'],_0x29c361=_0x371b98['end']['nodeBefore'];if(!_0x29c361||!_0x29c361['is']('element','title-content'))continue;if(!_0x371b98['start']['isTouching'](_0x371b98['end']))continue;const _0x436c69=_0x4cc075['model']['schema']['getNearestSelectionRange'](_0x371b98['end'],'forward');if(_0x436c69&&_0x436c69['isCollapsed']){const _0x41f847=_0x4108cb['createRange'](_0x371b98['start'],_0x436c69['start']);_0x41f847['isEqual'](_0x371b98)||(_0x4108cb['updateMarker'](_0x4e8b52,{'range':_0x41f847}),_0x4e1b76=!0x0);}_0x4e1b76||(_0x4108cb['removeMarker'](_0x4e8b52),_0x4e1b76=!0x0);}return _0x4e1b76;});}}class Tt extends _0xfd4522{['afterInit'](){const _0x4fba91=this['editor'],_0xb6f916=_0x4fba91['plugins']['get']('TrackChangesEditing');_0x4fba91['plugins']['has']('Uploadcare')&&(_0xb6f916['enableCommand']('uploadcare'),_0x4fba91['plugins']['has']('UploadcareImageEdit')&&(_0xb6f916['enableCommand']('uploadcareImageEdit'),_0xb6f916['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xb6f916['registerBlockAttribute']('uploadcareImageId'),_0xb6f916['descriptionFactory']['registerDescriptionCallback'](_0x4ad485=>{if('attribute'!=_0x4ad485['type'])return;const {data:_0x174f3e}=_0x4ad485;return _0x174f3e&&'uploadcareImageId'==_0x174f3e['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xfd4522{['afterInit'](){const _0x5d5d78=this['editor'],_0x38d472=_0x5d5d78['plugins']['get']('TrackChangesEditing');_0x5d5d78['plugins']['has']('UndoEditing')&&(_0x38d472['enableCommand']('undo'),_0x38d472['enableCommand']('redo'));}}class Ot extends _0xfd4522{static get['requires'](){return[At];}['afterInit'](){const _0x26046a=this['editor'];if(!_0x26046a['plugins']['has']('TableCaptionEditing'))return;_0x26046a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xfd4522{['tableProperties'];['tableCellProperties'];constructor(_0x4d0824){super(_0x4d0824),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x5e35a5=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x355b5a of this['tableProperties'])_0x5e35a5['enableCommand'](_0x355b5a,(_0x5e8968,_0x3f0fff)=>{const _0x9059d8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x355b5a,[_0x9059d8],this['tableProperties'],'tableProperties',_0x5e8968,_0x3f0fff);});_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5e35a5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x32f8b4,_0x10a9c2)=>this['handleDiscardAction'](this['tableProperties'],_0x32f8b4,_0x10a9c2)),_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1f79bc of this['tableCellProperties'])_0x5e35a5['enableCommand'](_0x1f79bc,(_0x1e4a96,_0x29bda2)=>{const _0x514213=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1f79bc,_0x514213,this['tableCellProperties'],'tableCellProperties',_0x1e4a96,_0x29bda2);});_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5e35a5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xc94a91,_0x24f24c)=>this['handleDiscardAction'](this['tableCellProperties'],_0xc94a91,_0x24f24c)),_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5e35a5['descriptionFactory']['registerDescriptionCallback'](_0xef7e5c=>this['handleSuggestionDescription'](_0xef7e5c)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x311d80,_0x2ee88f,_0x1a0049,_0x35a389,_0x15bb0c,_0x3caa2a){const _0x9e80c5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3caa2a['batch'],()=>{for(const _0x461283 of _0x2ee88f){if(this['_getSuggestion'](_0x461283,_0x35a389))_0x15bb0c(_0x3caa2a);else{const _0x2042a3={};for(const _0x4446f3 of _0x1a0049){const _0x1e2cca=_0x461283['getAttribute'](_0x4446f3);void 0x0!==_0x1e2cca&&(_0x2042a3[_0x4446f3]=_0x1e2cca);}_0x15bb0c(_0x3caa2a),_0x9e80c5['markBlockFormat'](_0x461283,{'commandParams':[_0x2042a3]},[],_0x35a389);}}});}['handleDiscardAction'](_0x42c0c0,_0x24ff9b,_0x29c0db){const _0x53c10f=_0x24ff9b[0x0]['start']['nodeAfter'],_0x5e4d8f=_0x29c0db['commandParams'][0x0];this['editor']['model']['change'](_0x40a8c6=>{for(const _0x23111d of _0x42c0c0)void 0x0!==_0x5e4d8f[_0x23111d]?_0x40a8c6['setAttribute'](_0x23111d,_0x5e4d8f[_0x23111d],_0x53c10f):_0x40a8c6['removeAttribute'](_0x23111d,_0x53c10f);});}['handleSuggestionDescription'](_0x5cd901){if(_0x5cd901['data'])switch(_0x5cd901['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'](_0x1b2434,_0x35eedc){const _0xae96f0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x77d50a of _0xae96f0['getSuggestions']({'skipNotAttached':!0x0})){const _0xbcf187=_0x77d50a['getContainedElement']();if(_0x77d50a['subType']===_0x35eedc&&_0xbcf187===_0x1b2434)return _0x77d50a;}return null;}['_registerTablePropertiesAttributes'](){const _0x1b0b59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a1d31=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4cb173 of _0x3a1d31){const _0x170589=_0x4cb173['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1b0b59['registerBlockAttribute'](_0x4cb173),_0x1b0b59['descriptionFactory']['registerAttributeLabel'](_0x4cb173,o(this['editor']['locale'],'FORMAT_'+_0x170589));}}}class Rt extends _0xfd4522{['afterInit'](){const _0x3cea4e=this['editor'];if(!_0x3cea4e['plugins']['has']('LineHeight'))return;const _0x41e1cb=_0x3cea4e['plugins']['get']('TrackChangesEditing'),_0x3bfddd=_0x3cea4e['locale'];_0x41e1cb['enableDefaultAttributesIntegration']('lineHeight'),_0x41e1cb['registerBlockAttribute']('lineHeight'),_0x41e1cb['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3bfddd,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xfd4522{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x41af33,_0x19387b,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x398874){super(_0x398874),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4958ec,_0x3c0471,_0x43a0e0,_0x2c74d2)=>{this['_model']['change'](()=>{for(const _0x281d92 of[..._0x2c74d2,..._0x43a0e0])this['_model']['markers']['has'](_0x281d92)&&_0x398874['editing']['reconvertMarker'](_0x281d92);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x398874['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(),_0x398874['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x398874['config']['get']('trackChanges.trackFormatChanges'),_0x398874['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x398874['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x398874,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2aa042=this['editor'],_0x389462=(_0x3143ae,_0x41a692)=>{if('attribute'!=_0x3143ae)return'ck-suggestion-marker-'+_0x3143ae;const _0xc34306=_0x41a692['split']('|')[0x0];return this['_isBlockAttribute'](_0xc34306)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2aa042['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x33f0f9=>{const {id:_0x536c13,authorId:_0x2b5f66,type:_0x320796,subType:_0x511a2d}=this['_splitMarkerName'](_0x33f0f9['markerName']),_0x834dcf=['ck-suggestion-marker',_0x389462(_0x320796,_0x511a2d)];let _0x20b923=0xbb8;return this['activeMarkers']['includes'](_0x33f0f9['markerName'])&&(_0x834dcf['push']('ck-suggestion-marker--active'),_0x20b923=0xbc2),'deletion'==_0x320796&&(_0x20b923+=0x5),{'classes':_0x834dcf,'attributes':{'data-suggestion':_0x536c13,'data-author-id':_0x2b5f66},'priority':_0x20b923};}}),_0x2aa042['conversion']['for']('dataDowncast')['add'](_0x4fdca6=>{_0x4fdca6['on']('addMarker:suggestion',(_0x35215f,_0x4bd657,_0x436e75)=>{if(!_0x436e75['options']['showSuggestionHighlights'])return;const _0x32e2e8=_0x4bd657['item'];if(!_0x32e2e8)return;const _0x82bf7f=_0x436e75['mapper']['toViewElement'](_0x32e2e8);_0x2aa042['model']['schema']['isObject'](_0x32e2e8)&&_0x82bf7f&&!_0x82bf7f['getCustomProperty']('widget')&&_0x82bf7f['is']('containerElement')&&_0x20ea6f(_0x82bf7f,_0x436e75['writer']);},{'priority':'high'});}),_0x2aa042['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4c2e76,_0x2fa861)=>{if(!_0x2fa861['options']['showSuggestionHighlights'])return null;const {id:_0x137545,authorId:_0x2dd3fd,type:_0x38b434,subType:_0x203034}=this['_splitMarkerName'](_0x4c2e76['markerName']);return{'classes':['ck-suggestion-marker',_0x389462(_0x38b434,_0x203034)],'priority':0xbb8,'attributes':{'data-suggestion':_0x137545,'data-author-id':_0x2dd3fd}};}});const _0x14dcd6=({showActiveMarkers:_0x126665=!0x0,isAttributeSuggestion:_0x271ad5=!0x1}={})=>(_0x3ccd65,_0x30cefb,_0x48822e)=>{if(!_0x30cefb['item'])return;const {id:_0x393e4e,authorId:_0x5bb0b6}=this['_splitMarkerName'](_0x30cefb['markerName']);if(_0x271ad5){const _0x13f2a5=this['_suggestions']['get'](_0x393e4e),_0xf68ed2=this['_getAttributeKey'](_0x13f2a5);if(!this['_isBlockAttribute'](_0xf68ed2))return;}if(_0x30cefb['item']['is']('selection'))return void _0x48822e['consumable']['consume'](_0x30cefb['item'],_0x3ccd65['name']);const _0x384c0e=_0x48822e['mapper']['toViewElement'](_0x30cefb['item']);if(_0x30cefb['item']['is']('element')&&_0x2aa042['model']['schema']['isBlock'](_0x30cefb['item'])&&!_0x384c0e['getCustomProperty']('addHighlight')){_0x48822e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x384c0e),_0x48822e['writer']['setAttribute']('data-suggestion',_0x393e4e,_0x384c0e),_0x48822e['writer']['setAttribute']('data-author-id',_0x5bb0b6,_0x384c0e),_0x48822e['mapper']['bindElementToMarker'](_0x384c0e,_0x30cefb['markerName']),_0x126665&&(this['activeMarkers']['includes'](_0x30cefb['markerName'])?_0x48822e['writer']['addClass']('ck-suggestion-marker--active',_0x384c0e):_0x48822e['writer']['removeClass']('ck-suggestion-marker--active',_0x384c0e));for(const _0x4e6583 of _0x2aa042['model']['createRangeIn'](_0x30cefb['item'])['getItems']())_0x48822e['consumable']['consume'](_0x4e6583,_0x3ccd65['name']);_0x48822e['consumable']['consume'](_0x30cefb['item'],_0x3ccd65['name']);}};_0x2aa042['conversion']['for']('dataDowncast')['add'](_0xc43b38=>{_0xc43b38['on']('addMarker:suggestion:formatBlock',(_0x48e568,_0x5af26f,_0x4aeb37)=>{_0x4aeb37['options']['showSuggestionHighlights']&&_0x14dcd6({'showActiveMarkers':!0x1})(_0x48e568,_0x5af26f,_0x4aeb37);},{'priority':'highest'});}),_0x2aa042['conversion']['for']('dataDowncast')['add'](_0x94a59d=>{_0x94a59d['on']('addMarker:suggestion:attribute',(_0x58bc75,_0x4dcaca,_0x51354c)=>{_0x51354c['options']['showSuggestionHighlights']&&_0x14dcd6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x58bc75,_0x4dcaca,_0x51354c);},{'priority':'highest'});}),_0x2aa042['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1700a7,_0x28162e)=>{if(_0x28162e['options']['showSuggestionHighlights']){const {id:_0x1ac74e,authorId:_0x1ccf20}=this['_splitMarkerName'](_0x1700a7);return _0x1700a7['includes'](':split')||_0x1700a7['includes'](':merge')?{'group':'suggestion','name':_0x1700a7['substr'](0xb),'attributes':{'data-suggestion':_0x1ac74e,'data-author-id':_0x1ccf20}}:null;}return{'group':'suggestion','name':_0x1700a7['substr'](0xb)};}}),_0x2aa042['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1972e3,{writer:_0x40de9f})=>{let _0x141350='suggestion:'+_0x1972e3['getAttribute']('suggestion-type')+':'+_0x1972e3['getAttribute']('id');return _0x1972e3['getAttribute']('marker-count')&&(_0x141350+=':'+_0x1972e3['getAttribute']('marker-count')),_0x40de9f['createElement']('$marker',{'data-name':_0x141350});}}),_0x2aa042['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2aa042['conversion']['for']('editingDowncast')['add'](_0x26246c=>{_0x26246c['on']('addMarker:suggestion:formatBlock',_0x14dcd6(),{'priority':'high'});}),_0x2aa042['conversion']['for']('editingDowncast')['add'](_0x1e5a71=>{_0x1e5a71['on']('addMarker:suggestion:attribute',_0x14dcd6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2aa042['conversion']['for']('editingDowncast')['add'](_0x3138ad=>{_0x3138ad['on']('removeMarker:suggestion:formatBlock',(_0x42885d,_0x4e9ded,_0x5a1c58)=>{const _0x44aa01=_0x5a1c58['mapper']['markerNameToElements'](_0x4e9ded['markerName']);if(_0x44aa01){for(const _0x1a95a0 of _0x44aa01)_0x1a95a0['getCustomProperty']('addHighlight')||(_0x5a1c58['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1a95a0),_0x5a1c58['writer']['removeAttribute']('data-suggestion',_0x1a95a0),_0x5a1c58['writer']['removeAttribute']('data-author-id',_0x1a95a0),_0x5a1c58['mapper']['unbindElementFromMarkerName'](_0x1a95a0,_0x4e9ded['markerName']));}},{'priority':'high'});}),_0x2aa042['conversion']['for']('editingDowncast')['add'](_0x4ec6e2=>{_0x4ec6e2['on']('removeMarker:suggestion:attribute',(_0x13f0a3,_0x446ef8,_0x971d7c)=>{const _0x1c7881=_0x971d7c['mapper']['markerNameToElements'](_0x446ef8['markerName']);if(!_0x1c7881)return;const {id:_0x5eeb01}=this['_splitMarkerName'](_0x446ef8['markerName']),_0x530feb=this['_suggestions']['get'](_0x5eeb01),_0x54eebd=this['_getAttributeKey'](_0x530feb);if(this['_isBlockAttribute'](_0x54eebd)){for(const _0x2f880b of _0x1c7881)_0x2f880b['getCustomProperty']('addHighlight')||(_0x971d7c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2f880b),_0x971d7c['writer']['removeAttribute']('data-suggestion',_0x2f880b),_0x971d7c['writer']['removeAttribute']('data-author-id',_0x2f880b),_0x971d7c['mapper']['unbindElementFromMarkerName'](_0x2f880b,_0x446ef8['markerName']));}},{'priority':'high'});}),_0x2aa042['model']['document']['registerPostFixer'](_0x53cf5a=>{let _0x42fb64=!0x1;const _0x520ac8=Array['from'](_0x2aa042['model']['document']['differ']['getChangedMarkers']()),_0x5926de=new Set();for(const {name:_0x9b14c2,data:_0x52280a}of _0x520ac8){const {group:_0x4adc5b,type:_0x1e6450,subType:_0x4dbba3,id:_0x24af82}=this['_splitMarkerName'](_0x9b14c2);if('suggestion'!==_0x4adc5b)continue;const _0x412525=_0x4dbba3?'suggestion:'+_0x1e6450+':'+_0x4dbba3+':'+_0x24af82:'suggestion:'+_0x1e6450+':'+_0x24af82,_0x3ecca9=_0x2aa042['model']['markers']['getMarkersGroup'](_0x412525),_0x4e0dbc=_0x2aa042['model']['markers']['get'](_0x9b14c2),_0x49f8ce=this['_suggestions']['get'](_0x24af82);if(null!=_0x52280a['newRange']){'formatInline'==_0x1e6450&&(_0x42fb64=_0x42fb64||Gt(_0x52280a['newRange'],_0x9b14c2,_0x53cf5a,_0x2aa042['model']['schema']));const _0x381f1d='attribute'==_0x1e6450&&this['_isBlockAttribute'](_0x4dbba3['split']('|')[0x0]),_0x2c01d0='attribute'==_0x1e6450&&this['_isInlineAttribute'](_0x4dbba3['split']('|')[0x0]);if(_0x52280a['newRange']['isCollapsed']||'$graveyard'==_0x52280a['newRange']['root']['rootName']||'formatBlock'==_0x1e6450&&!Jt(_0x52280a['newRange'])||_0x381f1d&&!Jt(_0x52280a['newRange'])||_0x2c01d0&&Kt(_0x52280a['newRange'])||'deletion'==_0x1e6450&&Kt(_0x52280a['newRange'])||_0x4e0dbc&&Ht(_0x4e0dbc,_0x3ecca9))_0x53cf5a['removeMarker'](_0x9b14c2),_0x42fb64=!0x0;else{if(!_0x49f8ce||!_0x49f8ce['isInContent'])continue;if(_0x52280a['newRange']&&_0x52280a['oldRange']&&_0x52280a['newRange']['isEqual'](_0x52280a['oldRange']))continue;_0x5926de['add'](_0x49f8ce);}}}return _0x5926de['size']>0x0&&(_0x42fb64=!!this['_joinWithAdjacentSuggestions'](_0x5926de)||_0x42fb64),_0x42fb64;}),_0x2aa042['model']['document']['registerPostFixer'](_0x2bd434=>{let _0x5d80fd=!0x1;for(const _0x190d1e of _0x2aa042['model']['document']['differ']['getChanges']())if('insert'==_0x190d1e['type'])for(const _0x32f3b3 of this['_suggestions']['values']()){if(_0x32f3b3['isMultiRange']||!_0x32f3b3['isInContent'])continue;const _0x2dd90c='formatBlock'==_0x32f3b3['type'],_0xdf3121=this['_getAttributeKey'](_0x32f3b3),_0x45ebd3=_0xdf3121&&this['_isBlockAttribute'](_0xdf3121);if(!_0x2dd90c&&!_0x45ebd3)continue;const _0x191374=_0x32f3b3['getFirstRange']();if(_0x191374['start']['parent']!=_0x191374['end']['parent']&&!_0x191374['end']['isAtEnd']){const _0x1fc764=_0x2aa042['model']['createPositionAt'](_0x191374['start']['nodeAfter'],'end'),_0x4b47eb=_0x2aa042['model']['createRange'](_0x191374['start'],_0x1fc764);_0x2bd434['updateMarker'](_0x32f3b3['getFirstMarker'](),{'range':_0x4b47eb}),_0x5d80fd=!0x0;}}return _0x5d80fd;}),_0x2aa042['model']['document']['registerPostFixer'](_0x5cb87c=>this['_processAttributeChanges'](_0x5cb87c)),_0x2aa042['model']['document']['registerPostFixer'](_0x39834c=>!_0x39834c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x39834c)),_0x2aa042['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2aa042['model']['document']['on']('change:data',(_0x100772,_0x54532e)=>{if(!_0x54532e['isLocal']||_0x54532e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3ae324=_0x2aa042['model']['document']['differ']['getChanges']();if(0x0==_0x3ae324['length'])return;const _0x33dbdc=[],_0x474742=_0x3ae324['filter'](_0xe220ca=>'attribute'==_0xe220ca['type']),_0x4f438c=_0x3ae324['filter'](_0x3a181=>'insert'==_0x3a181['type']&&'$text'!=_0x3a181['name']);for(const _0x454382 of _0x474742)this['_isRegisteredAttribute'](_0x454382['attributeKey'])&&_0x33dbdc['push']({'key':_0x454382['attributeKey'],'newValue':_0x454382['attributeNewValue'],'oldValue':_0x454382['attributeOldValue'],'range':qt(_0x454382['range'],_0x2aa042['model'])});for(const _0x45fcf5 of _0x4f438c){if('rename'!=_0x45fcf5['action']&&'refresh'!=_0x45fcf5['action'])continue;const _0x18a467=zt(_0x45fcf5['position']['nodeAfter'],_0x2aa042['model']),_0x4b2da9=_0x45fcf5['before'];'rename'==_0x45fcf5['action']&&_0x33dbdc['push']({'key':m,'newValue':_0x45fcf5['name'],'oldValue':_0x4b2da9['name'],'range':_0x18a467});for(const [_0x25d003,_0x5edb43]of _0x4b2da9['attributes']){if(!this['_isRegisteredAttribute'](_0x25d003))continue;const _0x192259=_0x45fcf5['attributes']['get'](_0x25d003);_0x5edb43!==_0x192259&&_0x33dbdc['push']({'key':_0x25d003,'newValue':_0x192259,'oldValue':_0x5edb43,'range':_0x18a467});}for(const [_0x48498c,_0x58de60]of _0x45fcf5['attributes'])this['_isRegisteredAttribute'](_0x48498c)&&(_0x4b2da9['attributes']['has'](_0x48498c)||_0x33dbdc['push']({'key':_0x48498c,'newValue':_0x58de60,'oldValue':null,'range':_0x18a467}));}0x0!=_0x33dbdc['length']&&_0x2aa042['model']['enqueueChange'](_0x54532e,_0x1f5360=>{const _0x4699e6=_0x110ca2();for(const {range:_0x596b5b,key:_0x5a0f04,oldValue:_0xcb6984,newValue:_0x50e83e}of _0x33dbdc)this['markAttributeChange'](_0x596b5b,_0x5a0f04,_0xcb6984,_0x50e83e,{'groupId':_0x4699e6});this['_reduceExistingSuggestions'](_0x1f5360,_0x33dbdc);});},{'priority':'lowest'}),_0x2aa042['model']['markers']['on']('update:suggestion',(_0x2d4288,_0x3915bc,_0x15cbfd)=>{if(null==_0x15cbfd){const {id:_0x2cb415}=this['_splitMarkerName'](_0x3915bc['name']),_0x2746bd=this['_suggestions']['get'](_0x2cb415);_0x2746bd&&_0x2746bd['addMarkerName'](_0x3915bc['name']);}}),_0x2aa042['model']['document']['on']('change:data',()=>{const _0x3ba66d=Array['from'](_0x2aa042['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4e5c23=>'suggestion'===this['_splitMarkerName'](_0x4e5c23['name'])['group']);if(0x0===_0x3ba66d['length'])return;_0x3ba66d['sort']((_0x302071,_0x32e649)=>{const _0x21063b=_0x302071['data']['oldRange'],_0x136c01=_0x32e649['data']['oldRange'];return null===_0x21063b&&null===_0x136c01?0x0:null===_0x21063b&&null!==_0x136c01?-0x1:null!==_0x21063b&&null===_0x136c01?0x1:_0x21063b['start']['isBefore'](_0x136c01['start'])?-0x1:0x1;});const _0x17e211=new Set(),_0x1189aa=new Set();for(const {name:_0x38cd80,data:_0x2d18e4}of _0x3ba66d){const {id:_0x2d5e93}=this['_splitMarkerName'](_0x38cd80);if(null===_0x2d18e4['oldRange']){const _0x4e5d2a=this['_handleNewSuggestionMarker'](_0x38cd80);_0x1189aa['add'](_0x4e5d2a);}else{const _0x4db940=this['_suggestions']['get'](_0x2d5e93);null!==_0x2d18e4['newRange']||_0x4db940['isInContent']?(_0x17e211['add'](_0x4db940['head']),_0x1189aa['add'](_0x4db940)):this['_removeSuggestion'](_0x4db940);}}_0x1189aa['size']>0x0&&this['_refreshSuggestionsChain'](_0x1189aa);for(const _0x14c258 of _0x17e211)this['fire']('suggestionChanged',_0x14c258);}),_0x2aa042['model']['on']('applyOperation',(_0x233894,_0x312b72)=>{const _0x274db5=_0x312b72[0x0];if(!this['_suggestions']['size'])return;if(!_0x274db5['isDocumentOperation'])return;if(_0x274db5['batch']['isUndo']||!_0x274db5['batch']['isLocal'])return;let _0x52915a,_0x571fb4;switch(_0x274db5['type']){case'insert':_0x52915a=_0x2aa042['model']['createPositionAt'](_0x274db5['position']),_0x571fb4=_0x52915a['getShiftedBy'](_0x274db5['howMany']);break;case'split':_0x52915a=_0x2aa042['model']['createPositionAt'](_0x274db5['splitPosition']),_0x571fb4=_0x2aa042['model']['createPositionAt'](_0x274db5['moveTargetPosition']);break;case'move':_0x52915a=_0x2aa042['model']['createPositionAt'](_0x274db5['targetPosition']),_0x571fb4=_0x52915a['getShiftedBy'](_0x274db5['howMany']);break;default:return;}const _0x10c074=_0x2aa042['model']['createRange'](_0x52915a,_0x571fb4);_0x2aa042['model']['change'](()=>{for(const {suggestion:_0x5d648b,meta:_0x53c1ed}of this['_findSuggestions'](_0x10c074)){if(_0x5d648b['isMultiRange'])continue;if('formatInline'==_0x5d648b['type'])continue;const _0x4c0465=this['_getAttributeKey'](_0x5d648b);if(_0x4c0465&&this['_isBlockAttribute'](_0x4c0465)&&'split'!=_0x274db5['type'])continue;const _0x52c606=_0x5d648b['data']&&_0x5d648b['data']['multipleBlocks'];('formatBlock'!=_0x5d648b['type']||'split'==_0x274db5['type']&&!_0x52c606)&&(_0x53c1ed['containsRangeInObject']||'insertion'==_0x5d648b['type']&&_0x53c1ed['isOwn']||_0x5d648b['getFirstRange']()['containsRange'](_0x10c074)&&this['_breakSuggestionMarker'](_0x5d648b,_0x52915a,_0x571fb4));}});},{'priority':'lowest'}),_0x2aa042['model']['on']('deleteContent',(_0x2876f3,_0x4653aa)=>{const _0x16b93b=_0x4653aa[0x0],_0x451cdc=_0x4653aa[0x1];if(_0x451cdc&&_0x451cdc['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x16b93b['isCollapsed'])return;const _0x5c90e5=_0x2aa042['model']['schema'],{start:_0x1b93e6,end:_0x2275a5}=_0x16b93b['getFirstRange'](),_0x21d7eb=_0x1b93e6['nodeAfter']&&_0x5c90e5['isLimit'](_0x1b93e6['nodeAfter'])?null:_0x5c90e5['getNearestSelectionRange'](_0x1b93e6,'forward'),_0x28a79b=_0x2275a5['nodeBefore']&&_0x5c90e5['isLimit'](_0x2275a5['nodeBefore'])?null:_0x5c90e5['getNearestSelectionRange'](_0x2275a5,'backward'),_0x48be86=_0x2aa042['model']['createRange'](_0x21d7eb?_0x21d7eb['start']:_0x1b93e6,_0x28a79b?_0x28a79b['end']:_0x2275a5);_0x2aa042['model']['change'](_0x56d34f=>{this['markDeletion'](_0x48be86);const _0x5e6eb9=_0x2aa042['model']['schema']['getNearestSelectionRange'](_0x48be86['start']);_0x16b93b['is']('documentSelection')?_0x56d34f['setSelection'](_0x5e6eb9):_0x16b93b['setTo'](_0x5e6eb9);}),_0x2876f3['stop']();},{'priority':_0x533dca['normal']+0xa}),_0x2aa042['model']['on']('insertContent',(_0x218485,_0x4831aa)=>{const _0x32fd37=_0x4831aa[_0x4831aa['length']-0x1];_0x32fd37&&_0x32fd37['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2aa042['model']['change'](()=>{let _0x393e30=_0x2aa042['model']['insertContent'](_0x4831aa[0x0],_0x4831aa[0x1],_0x4831aa[0x2],{'forceDefaultExecution':!0x0});if(!_0x393e30)return;_0x218485['return']=_0x393e30['clone']();const _0x356654=_0x393e30['end']['nodeBefore'],_0x49e3c7=_0x2aa042['model']['schema'];_0x356654&&_0x49e3c7['isBlock'](_0x356654)&&!_0x49e3c7['isObject'](_0x356654)&&(_0x393e30=_0x2aa042['model']['createRange'](_0x393e30['start'],_0x2aa042['model']['createPositionAt'](_0x356654,'end'))),this['markInsertion'](_0x393e30);}),_0x218485['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4c1478=new D(_0x2aa042,this['_suggestions']);_0x2aa042['commands']['add']('acceptSuggestion',_0x4c1478),this['enableCommand']('acceptSuggestion');const _0x1bb857=new $(_0x2aa042,this['_suggestions']);_0x2aa042['commands']['add']('discardSuggestion',_0x1bb857),this['enableCommand']('discardSuggestion'),_0x2aa042['commands']['add']('acceptAllSuggestions',new M(_0x2aa042,_0x4c1478,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2aa042['commands']['add']('discardAllSuggestions',new M(_0x2aa042,_0x1bb857,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2aa042['commands']['add']('acceptSelectedSuggestions',new B(_0x2aa042,_0x4c1478,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2aa042['commands']['add']('discardSelectedSuggestions',new B(_0x2aa042,_0x1bb857,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x375b08=_0x2aa042['plugins']['get']('CommentsRepository');this['listenTo'](_0x375b08,'addComment',(_0x1fbd6d,{threadId:_0x2c3674})=>{const _0x56da43=this['_suggestions']['get'](_0x2c3674);_0x56da43&&_0x56da43['commentThread']&&0x1===_0x56da43['commentThread']['length']&&this['_updateSuggestionData'](_0x2c3674,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x375b08,'removeComment',(_0x19d664,{threadId:_0x136fd5})=>{const _0x54ca59=this['_suggestions']['get'](_0x136fd5);_0x54ca59&&_0x54ca59['commentThread']&&!_0x54ca59['commentThread']['length']&&this['_updateSuggestionData'](_0x136fd5,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4ed00d){const _0x117464=_0x5990df([0x69,0x71,0x43,0x49,0x6e,0x59,0x52,0x63,0x34,0x68,0x64,0x79,0x48,0x6f,0x6a,0x66,0x32,0x58,0x77,0x61,0x55,0x4c,0x72,0x76,0x4b,0x4d,0x4a,0x42,0x41,0x50,0x7a,0x67,0x6c,0x30,0x47,0x38,0x51,0x70,0x75,0x46,0x31,0x54,0x36,0x73,0x33,0x74,0x53,0x37,0x56,0x57,0x62,0x6d,0x4f,0x78,0x65,0x5a,0x39,0x45,0x44,0x35,0x4e,0x6b]),_0x327cd4=0x1d416b54,_0x3e5dfe=0x1d461b7c^_0x327cd4,_0xa5b1b3=window[_0x5990df([0x44,0x61,0x74,0x65])][_0x5990df([0x6e,0x6f,0x77])](),_0x507a5a=_0x4ed00d[_0x5990df([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x337740=new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52012e=>{_0x507a5a[_0x5990df([0x6f,0x6e,0x63,0x65])](_0x5990df([0x72,0x65,0x61,0x64,0x79]),_0x52012e);}),_0x12aba2={[_0x5990df([0x6b,0x74,0x79])]:_0x5990df([0x45,0x43]),[_0x5990df([0x75,0x73,0x65])]:_0x5990df([0x73,0x69,0x67]),[_0x5990df([0x63,0x72,0x76])]:_0x5990df([0x50,0x2d,0x32,0x35,0x36]),[_0x5990df([0x78])]:_0x5990df([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x5990df([0x79])]:_0x5990df([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x5990df([0x61,0x6c,0x67])]:_0x5990df([0x45,0x53,0x32,0x35,0x36])},_0x705aba=_0x507a5a[_0x5990df([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5990df([0x67,0x65,0x74])](_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2ef1b4(){let _0x4c96d8,_0x10156c=null,_0x43e954=null;try{if(_0x705aba==_0x5990df([0x47,0x50,0x4c]))return _0x5990df([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c96d8=_0x18ae4e(),!_0x4c96d8)return _0x5990df([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c96d8[_0x5990df([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43e954=_0x1e2475(_0x4c96d8[_0x5990df([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c96d8[_0x5990df([0x6a,0x74,0x69])])),await _0x2ff198()?_0x4c7c76()?_0x192a3a()?_0x5990df([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3fa157()?(_0x4c96d8[_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5990df([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x10156c=_0x2c2e23(_0x5990df([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c96d8[_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5990df([0x74,0x72,0x69,0x61,0x6c])&&(_0x10156c=_0x2c2e23(_0x5990df([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x49aefa()):_0x5990df([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5990df([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5990df([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5990df([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x192a3a(){const _0x295d3d=[_0x5990df([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5990df([0x74,0x72,0x69,0x61,0x6c])][_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c96d8[_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa5b1b3/0x3e8:0xe10*_0x3e5dfe;return _0x4c96d8[_0x5990df([0x65,0x78,0x70])]<_0x295d3d;}function _0x4c7c76(){const _0x356b6d=_0x4c96d8[_0x5990df([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x356b6d)return!0x1;if(_0x356b6d[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5990df([0x2a])))return!0x0;if(_0x356b6d[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5990df([0x54,0x43])))return!0x0;if(_0x356b6d[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5990df([0x52,0x54,0x43]))){if(_0x381e67())return!0x0;if(_0x5a1a11()||_0x16403f())return!0x0;}return!0x1;}function _0x3fa157(){const _0x1a02e3=_0x4c96d8[_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a02e3||0x0==_0x1a02e3[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e83db}=new URL(window[_0x5990df([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1a02e3[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e83db))return!0x0;const _0x275a13=_0x4e83db[_0x5990df([0x73,0x70,0x6c,0x69,0x74])](_0x5990df([0x2e]));return _0x1a02e3[_0x5990df([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15de72=>_0x15de72[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5990df([0x2a])))[_0x5990df([0x6d,0x61,0x70])](_0x59cb8f=>_0x59cb8f[_0x5990df([0x73,0x70,0x6c,0x69,0x74])](_0x5990df([0x2e])))[_0x5990df([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x921cb7=>_0x921cb7[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x275a13[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5990df([0x6d,0x61,0x70])](_0x462228=>Array(_0x275a13[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x462228[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5990df([0x66,0x69,0x6c,0x6c])](_0x462228[0x0]===_0x5990df([0x2a])?_0x5990df([0x2a]):'')[_0x5990df([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x462228))[_0x5990df([0x73,0x6f,0x6d,0x65])](_0x433180=>_0x275a13[_0x5990df([0x65,0x76,0x65,0x72,0x79])]((_0x2e9e05,_0x135b26)=>_0x433180[_0x135b26]===_0x2e9e05||_0x433180[_0x135b26]===_0x5990df([0x2a])));}function _0x49aefa(){return _0x10156c&&_0x43e954?new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e6ade,_0x380dc1)=>{_0x10156c[_0x5990df([0x74,0x68,0x65,0x6e])](_0x5e6ade,_0x380dc1),_0x43e954[_0x5990df([0x74,0x68,0x65,0x6e])](_0x4b96cb=>{_0x4b96cb!=_0x5990df([0x56,0x61,0x6c,0x69,0x64])&&_0x5e6ade(_0x4b96cb);},_0x380dc1);}):_0x10156c||_0x43e954||_0x5990df([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e2475(_0x4e1352,_0xf933b5){return new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bc416=>{if(_0x2e9c80())return _0x2bc416(_0x5990df([0x56,0x61,0x6c,0x69,0x64]));_0x531b9b(),_0x507a5a[_0x5990df([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5990df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4fd9fc=!0x1;const _0x1f2a21=_0x110ca2();function _0x516523(_0x166260){return!!_0x166260&&(typeof _0x166260===_0x5990df([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x166260===_0x5990df([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x166260[_0x5990df([0x74,0x68,0x65,0x6e])]===_0x5990df([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x166260[_0x5990df([0x63,0x61,0x74,0x63,0x68])]===_0x5990df([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f23a7(_0x3de3cb){_0x5730a8(_0x3de3cb)[_0x5990df([0x74,0x68,0x65,0x6e])](_0x2428ce=>{if(!_0x2428ce||_0x2428ce[_0x5990df([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5990df([0x6f,0x6b]))return _0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x9d994(_0x2a6672(_0x1f2a21+_0xf933b5))!=_0x2428ce[_0x5990df([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5990df([0x56,0x61,0x6c,0x69,0x64]);})[_0x5990df([0x74,0x68,0x65,0x6e])](_0x3f889a=>(_0x6fcc91(),_0x3f889a),()=>{const _0x287113=_0x1843b9();return null==_0x287113?(_0x6fcc91(),_0x5990df([0x56,0x61,0x6c,0x69,0x64])):_0x5990df(_0xa5b1b3-_0x287113>(0x394def54^_0x327cd4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5990df([0x74,0x68,0x65,0x6e])](_0x2bc416)[_0x5990df([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2bc416(_0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b3291=0x1d7785d4^_0x327cd4;function _0x6fcc91(){const _0x127937=_0x5990df([0x6c,0x6c,0x63,0x74,0x2d])+_0x9d994(_0x2a6672(_0x4e1352)),_0x88a76f=_0x41eb0e(_0x9d994(window[_0x5990df([0x4d,0x61,0x74,0x68])][_0x5990df([0x63,0x65,0x69,0x6c])](_0xa5b1b3/_0x5b3291)));window[_0x5990df([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5990df([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x127937,_0x88a76f);}function _0x1843b9(){const _0xc39e93=_0x5990df([0x6c,0x6c,0x63,0x74,0x2d])+_0x9d994(_0x2a6672(_0x4e1352)),_0x3ea760=window[_0x5990df([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5990df([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc39e93);return _0x3ea760?window[_0x5990df([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41eb0e(_0x3ea760),0x10)*_0x5b3291:null;}function _0x5730a8(_0x5edcb2){return new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xecc135,_0x56f155)=>{_0x5edcb2[_0x5990df([0x74,0x68,0x65,0x6e])](_0xecc135,_0x56f155),window[_0x5990df([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56f155,0x1d40bf94^_0x327cd4);});}}_0x507a5a[_0x5990df([0x6f,0x6e])](_0x5990df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3973b7,_0x28fa5b)=>{if(_0x28fa5b[0x0]!=_0x4e1352)return _0x2bc416(_0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x28fa5b[0x1]={..._0x28fa5b[0x1],[_0x5990df([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f2a21};},{[_0x5990df([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5990df([0x68,0x69,0x67,0x68])}),_0x507a5a[_0x5990df([0x6f,0x6e])](_0x5990df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2eab35=>{_0x516523(_0x2eab35[_0x5990df([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4fd9fc=!0x0,_0x2f23a7(_0x2eab35[_0x5990df([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5990df([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5990df([0x6c,0x6f,0x77])}),_0x337740[_0x5990df([0x74,0x68,0x65,0x6e])](()=>{_0x4fd9fc||_0x2bc416(_0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e9c80(){return _0x507a5a[_0x5990df([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5990df([0x76,0x69,0x65,0x77])][_0x5990df([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5990df([0x61,0x75,0x74,0x6f]);}function _0x531b9b(){_0x507a5a[_0x5990df([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5990df([0x76,0x69,0x65,0x77])][_0x5990df([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5990df([0x61,0x75,0x74,0x6f]);}}function _0x2c2e23(_0x3b51df){const _0x44dd6a=[new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16badd=>setTimeout(_0x16badd,0x1d485598^_0x327cd4)),_0x337740[_0x5990df([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29fecc=>{let _0x49948a=0x0;_0x507a5a[_0x5990df([0x6d,0x6f,0x64,0x65,0x6c])][_0x5990df([0x6f,0x6e])](_0x5990df([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x505c8d,_0x2fbfeb)=>{_0x2fbfeb[0x0][_0x5990df([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x49948a++,_0x49948a==(0x1d416aac^_0x327cd4)&&(_0x29fecc(),_0x505c8d[_0x5990df([0x6f,0x66,0x66])]());});}))];return window[_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5990df([0x72,0x61,0x63,0x65])](_0x44dd6a)[_0x5990df([0x74,0x68,0x65,0x6e])](()=>_0x3b51df);}async function _0x7c6ad7(){await _0x337740,_0x507a5a[_0x5990df([0x6d,0x6f,0x64,0x65,0x6c])][_0x5990df([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3fec57,_0x507a5a[_0x5990df([0x6d,0x6f,0x64,0x65,0x6c])][_0x5990df([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3fec57,_0x507a5a[_0x5990df([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5990df([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x381e67(){return _0x7b3608(_0x5990df([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5e812d(_0x5990df([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5990df([0x73,0x74,0x61,0x74,0x65])]==_0x5990df([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5a1a11(){return _0x7b3608(_0x5990df([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x16403f(){return _0x7b3608(_0x5990df([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x9b01fc(_0x4cdcb6){const _0x18da73=_0x4d12b4();_0x507a5a[_0x18da73]=_0x5990df([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4cdcb6,_0x4cdcb6!=_0x5990df([0x56,0x61,0x6c,0x69,0x64])&&_0x7c6ad7();}function _0x4d12b4(){const _0x57988b=window[_0x5990df([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5990df([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5990df([0x6e,0x6f,0x77])]())[_0x5990df([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5990df([0x2e]),'');let _0x204b7b=_0x5990df([0x69]);for(let _0x29f444=0x0;_0x29f444<_0x57988b[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29f444+=0x2){let _0x58fbad=window[_0x5990df([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57988b[_0x5990df([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29f444,_0x29f444+0x2));_0x58fbad>=_0x117464[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x58fbad-=_0x117464[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x204b7b+=_0x117464[_0x58fbad];}return _0x204b7b;}function _0x18ae4e(){const _0x1027cf=_0x705aba[_0x5990df([0x73,0x70,0x6c,0x69,0x74])](_0x5990df([0x2e]));if(0x3!=_0x1027cf[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xe3c135(_0x1027cf[0x1]);function _0xe3c135(_0x2ea70f){const _0x2b6aae=_0x1edac2(_0x2ea70f);return _0x2b6aae&&_0x46150a()?_0x2b6aae:null;function _0x46150a(){const _0x8352c0=_0x2b6aae[_0x5990df([0x6a,0x74,0x69])],_0x3ee699=window[_0x5990df([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8352c0[_0x5990df([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8352c0[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3349e7={..._0x2b6aae,[_0x5990df([0x6a,0x74,0x69])]:_0x8352c0[_0x5990df([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8352c0[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3349e7[_0x5990df([0x76,0x63])],_0x2a6672(_0x3349e7)==_0x3ee699;}}}async function _0x2ff198(){let _0x45e68e=!0x0;try{const _0x2d2db7=_0x705aba[_0x5990df([0x73,0x70,0x6c,0x69,0x74])](_0x5990df([0x2e])),[_0x44c978,_0x1b36e2,_0x21971c]=_0x2d2db7;return _0x110979(_0x44c978),await _0x49c3e5(_0x44c978,_0x1b36e2,_0x21971c),_0x45e68e;}catch{return!0x1;}function _0x110979(_0x5b1c5a){const _0x245e24=_0x1edac2(_0x5b1c5a);_0x245e24&&_0x245e24[_0x5990df([0x61,0x6c,0x67])]==_0x5990df([0x45,0x53,0x32,0x35,0x36])||(_0x45e68e=!0x1);}async function _0x49c3e5(_0x1015b7,_0x5267c5,_0x4f6b51){const _0x231c7a=window[_0x5990df([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5990df([0x66,0x72,0x6f,0x6d])](_0x5a22a3(_0x4f6b51),_0xf90d00=>_0xf90d00[_0x5990df([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x31c159=new window[(_0x5990df([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5990df([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1015b7+_0x5990df([0x2e])+_0x5267c5),_0x48881c=window[_0x5990df([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5990df([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48881c)return;const _0x271afd=await _0x48881c[_0x5990df([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5990df([0x6a,0x77,0x6b]),_0x12aba2,{[_0x5990df([0x6e,0x61,0x6d,0x65])]:_0x5990df([0x45,0x43,0x44,0x53,0x41]),[_0x5990df([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5990df([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5990df([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48881c[_0x5990df([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5990df([0x6e,0x61,0x6d,0x65])]:_0x5990df([0x45,0x43,0x44,0x53,0x41]),[_0x5990df([0x68,0x61,0x73,0x68])]:{[_0x5990df([0x6e,0x61,0x6d,0x65])]:_0x5990df([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x271afd,_0x231c7a,_0x31c159)||(_0x45e68e=!0x1);}}function _0x1edac2(_0x4e785f){return _0x4e785f[_0x5990df([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5990df([0x65,0x79]))?JSON[_0x5990df([0x70,0x61,0x72,0x73,0x65])](_0x5a22a3(_0x4e785f)):null;}function _0x5a22a3(_0x4e27ce){return window[_0x5990df([0x61,0x74,0x6f,0x62])](_0x4e27ce[_0x5990df([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5990df([0x2b]))[_0x5990df([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5990df([0x2f])));}function _0x2a6672(_0x231c2a){let _0x24546d=0x1505;function _0x55dd35(_0x65b312){for(let _0x123e8d=0x0;_0x123e8d<_0x65b312[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x123e8d++){const _0x285a36=_0x65b312[_0x5990df([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x123e8d);_0x24546d=(_0x24546d<<0x5)+_0x24546d+_0x285a36,_0x24546d&=_0x24546d;}}function _0x594999(_0xbb9e45){Array[_0x5990df([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xbb9e45)?_0xbb9e45[_0x5990df([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x594999):_0xbb9e45&&typeof _0xbb9e45==_0x5990df([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5990df([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xbb9e45)[_0x5990df([0x73,0x6f,0x72,0x74])]()[_0x5990df([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x548695,_0x1a254e])=>{_0x55dd35(_0x548695),_0x594999(_0x1a254e);}):_0x55dd35(window[_0x5990df([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xbb9e45));}return _0x594999(_0x231c2a),_0x24546d>>>0x0;}function _0x9d994(_0x3628b2){return _0x3628b2[_0x5990df([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5990df([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5990df([0x30]));}function _0x41eb0e(_0xaf7e96){return _0xaf7e96[_0x5990df([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5990df([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5990df([0x6a,0x6f,0x69,0x6e])]('');}function _0x7b3608(_0x59fe4c){return _0x507a5a[_0x5990df([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5990df([0x68,0x61,0x73])](_0x59fe4c);}function _0x5e812d(_0x3853d5){return _0x507a5a[_0x5990df([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5990df([0x67,0x65,0x74])](_0x3853d5);}function _0x3fec57(){}function _0x5990df(_0xe82f81){return _0xe82f81['map'](_0x14a2ee=>String['fromCharCode'](_0x14a2ee))['join']('');}_0x9b01fc(await _0x2ef1b4());}(this);}set['adapter'](_0x54398d){if(this['_adapter'])throw new _0x5d208c('track-changes-adapter-already-set',this);this['_adapter']=_0x54398d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xe9ecde=!0x1,toJSON:_0x441df4=!0x1}={}){const _0x502b0d=[];for(const _0x4fcb45 of this['_suggestions']['values']())_0xe9ecde&&!_0x4fcb45['isInContent']||_0x502b0d['push'](_0x4fcb45);return _0x441df4?_0x502b0d['map'](_0xabc6d2=>_0xabc6d2['toJSON']()):_0x502b0d;}['getSuggestion'](_0x392693){const _0x4e0310=this['_suggestions']['get'](_0x392693);if(!_0x4e0310)throw new _0x5d208c('track-changes-suggestion-not-found',this);return _0x4e0310;}['hasSuggestion'](_0x2dc78d){return this['_suggestions']['has'](_0x2dc78d);}['addSuggestionData'](_0x3a9f3f){const {authorId:_0x4c8b05,id:_0x2b6d75,originalSuggestionId:_0xbc07cc,attributes:_0x53d0b0}=_0x3a9f3f,[_0x5af4f4,_0x49ddae]=_0x3a9f3f['type']['split'](':'),_0xa56ba1=this['_suggestions']['get'](_0x2b6d75)||this['_createSuggestion'](_0x5af4f4,_0x49ddae,_0x2b6d75,_0x4c8b05,_0x53d0b0,_0xbc07cc);if(this['_addThreadToSuggestion'](_0xa56ba1),this['_checkSuggestionCorrectness'](_0xa56ba1,_0x5af4f4,_0x49ddae||null,_0x4c8b05),_0xa56ba1['createdAt']=_0x3a9f3f['createdAt'],_0xa56ba1['_isDataLoaded']=!0x0,_0x53d0b0&&_0x53d0b0['@external']){const _0x17d267=_0x53d0b0['@external'],_0x5552f8=this['_getExternalAuthor'](_0x17d267['authorName']);_0xa56ba1['authoredAt']=_0x17d267['createdAt'],_0xa56ba1['author']=_0x5552f8,_0xa56ba1['isExternal']=!0x0;}else _0xa56ba1['authoredAt']=_0x3a9f3f['createdAt'];switch(_0x3a9f3f['data']&&(_0xa56ba1['data']=_0x3a9f3f['data']),_0x3a9f3f['attributes']&&(_0xa56ba1['attributes']=_0x3a9f3f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xa56ba1['_saved']=!0x0),this['_suggestionState']['get'](_0xa56ba1)){case'notReady':this['_suggestionState']['set'](_0xa56ba1,'dataReady');break;case'markerReady':_0xa56ba1['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xa56ba1])),this['_refreshSuggestionsChain'](new Set([_0xa56ba1])),this['_suggestionState']['set'](_0xa56ba1,'ready'),this['fire']('suggestionLoaded',_0xa56ba1)):this['_suggestionState']['set'](_0xa56ba1,'removed');}return _0xa56ba1;}['acceptSuggestion'](_0xeceed4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x110661 of _0xeceed4['getAllAdjacentSuggestions']())_0x110661['accept']();});});}['discardSuggestion'](_0x6465fc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x175ec8 of _0x6465fc['getAllAdjacentSuggestions']())_0x175ec8['discard']();});});}['enableCommand'](_0x4513c4,_0x5510d6){const _0x2b152b=this['editor']['commands']['get'](_0x4513c4);if(!_0x2b152b)throw new _0x5d208c('track-changes-command-not-found',this,{'commandName':_0x4513c4});if(this['_enabledCommands']['has'](_0x2b152b))throw new _0x5d208c('track-changes-enable-command-twice',this,{'commandName':_0x4513c4});this['_enabledCommands']['add'](_0x2b152b),_0x5510d6&&_0x2b152b['on']('execute',(_0x165ad8,_0x35d0b9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x35d0b9['length']>0x0&&_0x35d0b9[_0x35d0b9['length']-0x1]&&_0x35d0b9[_0x35d0b9['length']-0x1]['forceDefaultExecution']?_0x35d0b9['pop']():(_0x165ad8['return']=_0x5510d6((..._0x5acec3)=>_0x2b152b['execute'](..._0x5acec3,{'forceDefaultExecution':!0x0}),..._0x35d0b9),_0x165ad8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x23fe44){let _0x4858a6,_0x408f67;const _0x4983df=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4858a6=_0x23fe44();}catch(_0x270362){_0x408f67=_0x270362;}return _0x4983df||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x408f67&&_0x5d208c['rethrowUnexpectedError'](_0x408f67,this),_0x4858a6;}['markInsertion'](_0x8f83a,_0x32b450=null,_0xc2507c={}){if(_0x8f83a['isCollapsed'])return null;const _0x59b570=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xc2507c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x28df3a,meta:_0x2bf824}of this['_findSuggestions'](_0x8f83a,'insertion'))if(_0x2bf824['isOwn']){if(!_0x2bf824['isNextTo']){if(_0x2bf824['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x28df3a,_0xc2507c))continue;return _0x28df3a;}if(Xt(_0x28df3a,_0xc2507c))return _0x28df3a;this['_breakSuggestionMarker'](_0x28df3a,_0x8f83a['start'],_0x8f83a['end']);break;}if(_0x32b450==_0x28df3a['subType']&&Xt(_0x28df3a,_0xc2507c)){const _0x87553a=_0x28df3a['getFirstRange']();return _0x87553a['start']['isEqual'](_0x8f83a['end'])?this['_setSuggestionRange'](_0x28df3a,this['_model']['createRange'](_0x8f83a['start'],_0x87553a['end'])):this['_setSuggestionRange'](_0x28df3a,this['_model']['createRange'](_0x87553a['start'],_0x8f83a['end'])),_0x28df3a;}}const _0x67fff4=_0x110ca2(),_0x1adff4=_0x59b570['id'],_0x52ed23=_0x32b450?'insertion:'+_0x32b450:'insertion',_0x4b8d34=this['_setSuggestionData']({'id':_0x67fff4,'type':_0x52ed23,'createdAt':new Date(),'authorId':_0x1adff4,'attributes':_0xc2507c});return this['_addSuggestionMarker'](_0x52ed23,_0x67fff4,_0x1adff4,_0x8f83a),_0x4b8d34;}['markMultiRangeInsertion'](_0x41f632,_0x2b572a='multi',_0x3c1d24={}){const _0x5d4144=this['editor']['plugins']['get']('Users')['me'],_0x1051e6=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2b572a,'join');this['_trackingSessionId']&&(_0x3c1d24['trackingSessionId']=this['_trackingSessionId']);for(const _0x213811 of this['getSuggestions']())if(_0x213811['author']['id']==_0x5d4144['id']&&'insertion'==_0x213811['type']&&_0x213811['subType']==_0x2b572a&&Xt(_0x213811,_0x3c1d24)&&(_0x1051e6(_0x213811['getRanges'](),_0x41f632)||_0x1051e6(_0x41f632,_0x213811['getRanges']()))){for(const _0x2d0cd5 of _0x41f632)_0x213811['addRange'](_0x2d0cd5);return _0x213811;}for(const {suggestion:_0x2cd5e2,meta:_0x28444c}of this['_findSuggestions'](_0x41f632,'insertion')){if(!_0x28444c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x28444c['containsRangeInObject'])continue;if(!Xt(_0x2cd5e2,_0x3c1d24))continue;let _0x79a56e=!0x0;for(const _0x2c6516 of _0x2cd5e2['getRanges']())for(const _0x1cb33a of _0x41f632)if(!_0x2c6516['containsRange'](_0x1cb33a)){_0x79a56e=!0x1;break;}if(_0x79a56e)return _0x2cd5e2;}const _0x5a25f0=_0x110ca2(),_0x4f6f62=_0x5d4144['id'],_0x3d108a='insertion:'+_0x2b572a,_0x30eab1=this['_setSuggestionData']({'id':_0x5a25f0,'type':_0x3d108a,'createdAt':new Date(),'authorId':_0x4f6f62,'attributes':_0x3c1d24});for(const _0x58cf82 of _0x41f632)this['_addSuggestionMarker'](_0x3d108a,_0x5a25f0,_0x4f6f62,_0x58cf82,T['getMultiRangeId']());return _0x30eab1;}['markInlineFormat'](_0x1f527a,_0x5d6ae6,_0x13f22b=null,_0x44ee51={}){if(_0x13f22b=_0x13f22b||Lt(_0x5d6ae6),_0x1f527a['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x44ee51['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1d921b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13f22b,'accept');return this['forceDefaultExecution'](()=>_0x1d921b([_0x1f527a],_0x5d6ae6,_0x44ee51)),null;}const _0x1acd1c=this['editor']['plugins']['get']('Users')['me'],_0x44d9b1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xdc1b1d,meta:_0x26fa89}of this['_findSuggestions'](_0x1f527a,'insertion'))_0x26fa89['isOwn']&&!_0x26fa89['isInsideObject']&&_0x44d9b1['push'](..._0xdc1b1d['getRanges']());}const _0x4c2e04=function(_0x583efd,_0x1268cc){const _0x44ccbc=[];for(const _0x5e2821 of _0x1268cc){const _0x2f3343=_0x583efd['getIntersection'](_0x5e2821);_0x2f3343&&_0x44ccbc['push'](_0x2f3343);}return _0x44ccbc;}(_0x1f527a,_0x44d9b1),_0x275818=function(_0x4c156e,_0x95df54){const _0x5947ec=[_0x4c156e];for(const _0x4adf04 of _0x95df54){let _0x1418da=0x0;for(;_0x1418da<_0x5947ec['length'];){const _0x547135=_0x5947ec[_0x1418da]['getDifference'](_0x4adf04);_0x5947ec['splice'](_0x1418da,0x1,..._0x547135),_0x1418da+=_0x547135['length'];}}return _0x5947ec;}(_0x1f527a,_0x44d9b1);_0x4c2e04['length']&&this['_model']['change'](()=>{for(const _0x5cd637 of _0x4c2e04){const _0x170498=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13f22b,'accept');this['forceDefaultExecution'](()=>_0x170498([_0x5cd637],_0x5d6ae6,_0x44ee51));}});for(const _0x5c7c33 of _0x275818){let _0x3e3751=null,_0x4eb421=_0x5c7c33['start'],_0x39b08c=_0x5c7c33['end'];for(const {suggestion:_0x25e866,meta:_0x242741}of this['_findSuggestions'](_0x5c7c33,'formatInline')){if(!_0x242741['isOwn'])continue;if(_0x25e866['subType']!=_0x13f22b)continue;if(!Xt(_0x25e866,_0x44ee51))continue;const _0x221ef6=_0x25e866['getFirstRange']();if(_0x221ef6['containsRange'](_0x5c7c33,!0x0))return null;_0x4eb421=_0x4eb421['isBefore'](_0x221ef6['start'])?_0x4eb421:_0x221ef6['start'],_0x39b08c=_0x39b08c['isAfter'](_0x221ef6['end'])?_0x39b08c:_0x221ef6['end'],_0x3e3751?_0x221ef6['start']['isBefore'](_0x3e3751['getFirstRange']()['start'])?(_0x3e3751['removeMarkers'](),_0x3e3751=_0x25e866):_0x25e866['removeMarkers']():_0x3e3751=_0x25e866;}const _0x24204e=this['_model']['createRange'](_0x4eb421,_0x39b08c);if(_0x3e3751)this['_setSuggestionRange'](_0x3e3751,_0x24204e);else{const _0x25d0d4=_0x110ca2(),_0x4738c5=_0x1acd1c['id'];this['_setSuggestionData']({'id':_0x25d0d4,'type':'formatInline:'+_0x13f22b,'data':_0x5d6ae6,'createdAt':new Date(),'authorId':_0x4738c5,'attributes':_0x44ee51}),this['_addSuggestionMarker']('formatInline:'+_0x13f22b,_0x25d0d4,_0x4738c5,_0x24204e);}}return null;}['markBlockFormat'](_0x521226,_0x244117,_0x1464bc=[],_0x43180d=null,_0x502438={}){_0x244117['formatGroupId']||(_0x244117['formatGroupId']=_0x244117['commandName']),_0x244117['multipleBlocks']=_0x521226['is']('range'),_0x43180d=_0x43180d||Lt(_0x244117);const _0x13f943=_0x1464bc['map'](_0x15d77b=>zt(_0x15d77b,this['_model'])),_0xb23ba7=_0x521226['is']('range')?_0x521226:zt(_0x521226,this['_model']);if(this['_trackingSessionId']&&(_0x502438['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x272ed6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43180d,'accept');return this['forceDefaultExecution'](()=>_0x272ed6([_0xb23ba7],_0x244117,_0x502438)),null;}_0x13f943['push'](_0xb23ba7);let _0x3ef608=!0x0;for(const _0x73ef0b of _0x13f943)if(!this['_rangeIsInLocalUserInsertion'](_0x73ef0b)){_0x3ef608=!0x1;break;}if(_0x3ef608&&'always'!==this['_trackFormatChanges']){const _0x1ec31d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43180d,'accept');return this['forceDefaultExecution'](()=>_0x1ec31d([_0xb23ba7],_0x244117,_0x502438)),null;}let _0x58dd26=null,_0x2bc82e=_0xb23ba7['start'],_0x51c849=_0xb23ba7['end'];for(const {suggestion:_0x489f23,meta:_0x2d6ebd}of this['_findSuggestions'](_0xb23ba7,'formatBlock')){if(!_0x2d6ebd['isOwn'])continue;if(_0x2d6ebd['isNextTo']||_0x2d6ebd['containsRangeInObject']||_0x2d6ebd['isInsideObject'])continue;if(_0x489f23['data']['formatGroupId']!=_0x244117['formatGroupId'])continue;if(!Xt(_0x489f23,_0x502438))continue;const _0x2e7b66=_0x489f23['getFirstRange']();if(_0x489f23['subType']==_0x43180d){if(_0x2e7b66['containsRange'](_0xb23ba7,!0x0))return null;_0x2bc82e=_0x2bc82e['isBefore'](_0x2e7b66['start'])?_0x2bc82e:_0x2e7b66['start'],_0x51c849=_0x51c849['isAfter'](_0x2e7b66['end'])?_0x51c849:_0x2e7b66['end'],_0x58dd26?_0x2e7b66['start']['isBefore'](_0x58dd26['getFirstRange']()['start'])?(_0x58dd26['removeMarkers'](),_0x58dd26=_0x489f23):_0x489f23['removeMarkers']():_0x58dd26=_0x489f23;}else{const _0x54cc03=_0xb23ba7['getIntersection'](_0x2e7b66);this['_cutOutSuggestionMarker'](_0x489f23,_0x54cc03);}}const _0xde5f24=this['editor']['plugins']['get']('Users')['me'],_0x587a72=_0x110ca2(),_0x3e984e=_0xde5f24['id'];if(_0x58dd26)return this['_setSuggestionRange'](_0x58dd26,this['_model']['createRange'](_0x2bc82e,_0x51c849)),_0x58dd26;{const _0x40d9f1=this['_setSuggestionData']({'id':_0x587a72,'type':'formatBlock:'+_0x43180d,'data':_0x244117,'createdAt':new Date(),'authorId':_0x3e984e,'attributes':_0x502438});return this['_addSuggestionMarker']('formatBlock:'+_0x43180d,_0x587a72,_0x3e984e,this['_model']['createRange'](_0x2bc82e,_0x51c849)),_0x40d9f1;}}['markMultiRangeBlockFormat'](_0x1be585,_0x100261,_0x1b8f2a=[],_0x364aa8=null,_0x194242={}){_0x100261['formatGroupId']||(_0x100261['formatGroupId']=_0x100261['commandName']);const _0x5139b4=_0x1be585[0x0];_0x100261['multipleBlocks']=_0x5139b4['is']('range'),_0x364aa8=_0x364aa8||Lt(_0x100261);const _0x33c89b=_0x1b8f2a['map'](_0x15227c=>zt(_0x15227c,this['_model'])),_0x134647=_0x5139b4['is']('range')?_0x1be585:_0x1be585['map'](_0x5009cb=>zt(_0x5009cb,this['_model']));if(this['_trackingSessionId']&&(_0x194242['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1d3320=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x364aa8,'accept');return this['forceDefaultExecution'](()=>_0x1d3320(_0x134647,_0x100261,_0x194242)),null;}_0x33c89b['push'](..._0x134647);let _0x59e3b6=!0x0;for(const _0x25c53d of _0x33c89b)if(!this['_rangeIsInLocalUserInsertion'](_0x25c53d)){_0x59e3b6=!0x1;break;}if(_0x59e3b6&&'always'!==this['_trackFormatChanges']){const _0x34cc41=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x364aa8,'accept');return this['forceDefaultExecution'](()=>_0x34cc41(_0x134647,_0x100261,_0x194242)),null;}const _0x2d587f=this['editor']['plugins']['get']('Users')['me'];for(const _0x56029d of this['getSuggestions']()){const _0x412ee7=_0x56029d['data'];if(_0x56029d['author']['id']!=_0x2d587f['id'])continue;if('formatBlock'!=_0x56029d['type']||_0x412ee7['formatGroupId']!=_0x100261['formatGroupId'])continue;if(!Xt(_0x56029d,_0x194242))continue;const _0x1e02fd=_0x56029d['subType']==_0x364aa8;for(let _0x54ca76=0x0;_0x54ca76<_0x134647['length'];_0x54ca76++){const _0x206f53=_0x134647[_0x54ca76];for(const _0x39a69a of _0x56029d['getMarkers']()){const _0x2b9f28=_0x39a69a['getRange']();if(_0x206f53['isEqual'](_0x2b9f28)){_0x1e02fd?(_0x134647['splice'](_0x54ca76,0x1),_0x54ca76--):_0x56029d['removeMarker'](_0x39a69a['name']);break;}}}}if(0x0==_0x134647['length'])return null;const _0x4d5622=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x364aa8,'join');for(const _0x5927b3 of this['getSuggestions']()){const _0x2bb05e=_0x5927b3['data'];if(_0x5927b3['author']['id']==_0x2d587f['id']&&('formatBlock'==_0x5927b3['type']&&_0x2bb05e['formatGroupId']==_0x100261['formatGroupId']&&_0x5927b3['subType']==_0x364aa8&&Xt(_0x5927b3,_0x194242)&&(_0x4d5622(_0x5927b3['getRanges'](),_0x134647)||_0x4d5622(_0x134647,_0x5927b3['getRanges']())))){for(const _0x496358 of _0x134647)_0x5927b3['addRange'](_0x496358);return _0x5927b3;}}const _0x1ece76=_0x110ca2(),_0x326f65=_0x2d587f['id'],_0x54a849='formatBlock:'+_0x364aa8,_0x411d8c=this['_setSuggestionData']({'id':_0x1ece76,'type':_0x54a849,'data':_0x100261,'createdAt':new Date(),'authorId':_0x326f65,'attributes':_0x194242});for(const _0x37613a of _0x134647)this['_addSuggestionMarker'](_0x54a849,_0x1ece76,_0x326f65,_0x37613a,T['getMultiRangeId']());return _0x411d8c;}['markDeletion'](_0x2b46e1,_0x53239b=null,_0x38234c={}){if(_0x2b46e1['isCollapsed'])return null;const _0x5bb93a=this['editor']['plugins']['get']('Users')['me'],_0x2345a6=new _0x217d71(_0x2b46e1['start'],_0x2b46e1['end']);this['_trackingSessionId']&&(_0x38234c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x26c178,meta:_0x1fdff7}of this['_findSuggestions'](_0x2345a6,'insertion'))if(_0x1fdff7['isOwn']&&!_0x1fdff7['isNextTo']){if(_0x26c178['isMultiRange']){const _0x50c4ec=_0x26c178['getRanges']()['filter'](_0x2340a5=>'$graveyard'!=_0x2340a5['root']['rootName']);_0x50c4ec['every'](_0x449822=>_0x2345a6['containsRange'](_0x449822,!0x0))&&_0x26c178['discard']();if(_0x50c4ec['some'](_0x29d3d6=>_0x29d3d6['containsRange'](_0x2345a6,!0x0))){const _0x568110=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53239b,'accept');return this['forceDefaultExecution'](()=>_0x568110([_0x2345a6],null,_0x38234c)),null;}}else{const _0x253a1c=_0x2345a6['getIntersection'](_0x26c178['getFirstRange']());null!==_0x253a1c&&_0x26c178['_onDiscard']([_0x253a1c],null,_0x38234c);}}if(_0x2345a6['detach'](),_0x2345a6['isCollapsed']||'$graveyard'==_0x2345a6['root']['rootName'])return null;let _0x3bde10=null,_0x1e05ff=_0x2345a6['start'],_0x123a9b=_0x2345a6['end'];const _0x405c79=this['_findSuggestions'](_0x2345a6,'deletion');for(const {suggestion:_0x332880,meta:_0x15431a}of _0x405c79){const _0x5e3cc0=this['_model']['createRange'](_0x1e05ff,_0x123a9b);if(_0x15431a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x15431a['containsRangeInObject']&&!_0x15431a['isInsideObject'])){if(_0x332880['isMultiRange']){if(!Xt(_0x332880,_0x38234c))continue;let _0x8d6db9=!0x0;for(const _0x356305 of _0x332880['getRanges']()){if(_0x356305['containsRange'](_0x5e3cc0,!0x0))return _0x332880;_0x5e3cc0['containsRange'](_0x356305)||(_0x8d6db9=!0x1);}_0x8d6db9&&_0x332880['discard']();}else{const _0x53caea=_0x332880['getFirstRange']();if(_0x53caea['containsRange'](_0x5e3cc0,!0x0))return _0x332880;if(!Xt(_0x332880,_0x38234c)){_0x5e3cc0['containsRange'](_0x53caea)?_0x332880['removeMarkers']():_0x53caea['containsPosition'](_0x1e05ff)?_0x1e05ff=_0x53caea['end']:_0x53caea['containsPosition'](_0x123a9b)&&(_0x123a9b=_0x53caea['start']);continue;}_0x1e05ff=_0x1e05ff['isBefore'](_0x53caea['start'])?_0x1e05ff:_0x53caea['start'],_0x123a9b=_0x123a9b['isAfter'](_0x53caea['end'])?_0x123a9b:_0x53caea['end'],_0x38234c=Object['assign']({},_0x332880['attributes']),_0x3bde10?_0x53caea['start']['isBefore'](_0x3bde10['getFirstRange']()['start'])?(_0x3bde10['removeMarkers'](),_0x3bde10=_0x332880):_0x332880['removeMarkers']():_0x3bde10=_0x332880;}}}if(_0x3bde10)return this['_setSuggestionRange'](_0x3bde10,this['_model']['createRange'](_0x1e05ff,_0x123a9b)),_0x3bde10;{const _0x2badf9=_0x110ca2(),_0x2ee32b=this['_model']['createRange'](_0x1e05ff,_0x123a9b),_0x4bb50e=_0x5bb93a['id'],_0x566478=_0x53239b?'deletion:'+_0x53239b:'deletion',_0x3700b8=this['_setSuggestionData']({'id':_0x2badf9,'type':_0x566478,'createdAt':new Date(),'authorId':_0x4bb50e,'attributes':_0x38234c});return this['_addSuggestionMarker'](_0x566478,_0x2badf9,_0x4bb50e,_0x2ee32b),_0x3700b8;}}['markMultiRangeDeletion'](_0x9dd203,_0x538ac5='multi',_0x9df0ba={}){const _0xc12d7b=this['editor']['plugins']['get']('Users')['me'],_0x1008af=_0x9dd203['map'](_0x1de9dd=>new _0x217d71(_0x1de9dd['start'],_0x1de9dd['end'])),_0x5790ee=new Set();this['_trackingSessionId']&&(_0x9df0ba['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x9f3e2a,meta:_0x974e0d}of this['_findSuggestions'](_0x1008af,'insertion'))_0x974e0d['isOwn']&&!_0x974e0d['isNextTo']&&_0x5790ee['add'](_0x9f3e2a);for(const _0x5c19b4 of _0x5790ee)if(_0x5c19b4['isMultiRange']){const _0x1c4056=_0x5c19b4['getRanges']();(!_0x5c19b4['attributes']||!_0x5c19b4['attributes']['skipNestingCheck'])&&(_0x1c4056['every'](_0x580a8c=>_0x1008af['some'](_0xdb60e2=>_0xdb60e2['containsRange'](_0x580a8c,!0x0)))&&_0x5c19b4['discard']());if(_0x1008af['every'](_0x194e1f=>_0x1c4056['some'](_0x25c8a1=>_0x25c8a1['containsRange'](_0x194e1f,!0x0)))){const _0x456bed=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538ac5,'accept');return this['forceDefaultExecution'](()=>_0x456bed(_0x9dd203,null,_0x9df0ba)),null;}}else{const _0x1f5b06=_0x5c19b4['getFirstRange']();_0x1008af['some'](_0x34a0f8=>_0x34a0f8['containsRange'](_0x1f5b06,!0x0))&&_0x5c19b4['discard']();if(_0x1008af['every'](_0x505627=>_0x1f5b06['containsRange'](_0x505627,!0x0))){const _0x175c21=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538ac5,'accept');return this['forceDefaultExecution'](()=>_0x175c21(_0x1008af,null,_0x9df0ba)),null;}}const _0x31ae9d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538ac5,'join');let _0x147321=null;for(const _0x275c4f of this['getSuggestions']())if(_0x275c4f['author']['id']==_0xc12d7b['id']&&_0x275c4f['isInContent']&&'deletion'==_0x275c4f['type']&&_0x275c4f['subType']==_0x538ac5&&Xt(_0x275c4f,_0x9df0ba)&&(_0x31ae9d(_0x275c4f['getRanges'](),_0x1008af)||_0x31ae9d(_0x1008af,_0x275c4f['getRanges']()))){if(_0x147321){if(_0x275c4f['commentThread']&&_0x275c4f['commentThread']['length'])continue;for(const _0x43523b of _0x275c4f['getRanges']())_0x147321['isIntersectingWithRange'](_0x43523b)||_0x147321['addRange'](_0x43523b);_0x275c4f['removeMarkers']();}else{_0x147321=_0x275c4f;for(const _0x4c0ae6 of _0x1008af)_0x275c4f['isIntersectingWithRange'](_0x4c0ae6)||_0x275c4f['addRange'](_0x4c0ae6);}}if(_0x147321)return _0x147321;_0x5790ee['clear']();for(const {suggestion:_0x434240,meta:_0x312cf8}of this['_findSuggestions'](_0x1008af,'deletion'))_0x312cf8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x312cf8['containsRangeInObject']&&!_0x312cf8['isInsideObject'])&&Xt(_0x434240,_0x9df0ba)&&_0x5790ee['add'](_0x434240);for(const _0x4534b5 of _0x5790ee){const _0x17a61f=_0x4534b5['getRanges']();if(!_0x9df0ba||!_0x9df0ba['skipNestingCheck']){if(_0x1008af['every'](_0x267efa=>_0x17a61f['some'](_0x504f8e=>_0x504f8e['containsRange'](_0x267efa,!0x0))))return _0x4534b5;}(!_0x4534b5['attributes']||!_0x4534b5['attributes']['skipNestingCheck'])&&(_0x17a61f['every'](_0x48facb=>_0x1008af['some'](_0x2e445e=>_0x2e445e['containsRange'](_0x48facb,!0x0)))&&_0x4534b5['discard']());}const _0x4940fe=_0x110ca2(),_0x891846=_0xc12d7b['id'],_0xd52b45='deletion:'+_0x538ac5,_0x447823=this['_setSuggestionData']({'id':_0x4940fe,'type':_0xd52b45,'createdAt':new Date(),'authorId':_0x891846,'attributes':_0x9df0ba});for(const _0x1db4a5 of _0x1008af)_0x1db4a5['detach'](),_0x1db4a5['isCollapsed']||'$graveyard'==_0x1db4a5['root']['rootName']||this['_addSuggestionMarker'](_0xd52b45,_0x4940fe,_0x891846,_0x1db4a5,T['getMultiRangeId']());return _0x447823;}['markAttributeChange'](_0x4a51d7,_0x3f85d3,_0x1709ff,_0x20f08f,_0x3985f1){if(_0x4a51d7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5f8aea=this['editor']['plugins']['get']('Users')['me']['id'],_0x174981=Array['from'](this['_suggestions']['values']())['filter'](_0x1775d5=>'attribute'==_0x1775d5['type']&&_0x1775d5['data']['key']==_0x3f85d3&&_0x1775d5['isIntersectingWithRange'](_0x4a51d7));if(this['_trackingSessionId']&&(_0x3985f1['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2b6470=this['_findSuggestions'](_0x4a51d7,'insertion')['filter'](({meta:_0x4039a0})=>_0x4039a0['isOwn']&&!_0x4039a0['isInsideObject']&&!_0x4039a0['isNextTo'])['map'](({suggestion:_0x14f153})=>_0x14f153);_0x174981['unshift'](..._0x2b6470);}const _0x1c71b7=new Map([[_0x4a51d7,_0x1709ff]]);for(const _0x5f08fc of _0x174981){const _0x19c885='attribute'==_0x5f08fc['type']?_0x5f08fc['data']['oldValue']:void 0x0,_0x4a9f40=_0x5f08fc['getFirstRange'](),_0xdc5212=Array['from'](_0x1c71b7['keys']())['find'](_0x1cd242=>_0x1cd242['isIntersecting'](_0x4a9f40));if(!_0xdc5212)continue;const _0x176f30=_0xdc5212['getDifference'](_0x4a9f40);this['_isBlockAttribute'](_0x3f85d3)&&'insertion'==_0x5f08fc['type']&&0x0!=_0x176f30['length']||(_0x1c71b7['delete'](_0xdc5212),_0x176f30['forEach'](_0xb85c51=>{_0x1c71b7['set'](_0xb85c51,_0x1709ff);}),'insertion'!=_0x5f08fc['type']&&_0x19c885!=_0x20f08f&&_0x1c71b7['set'](_0xdc5212['getIntersection'](_0x4a9f40),_0x19c885));}const _0x58ae3f=[];for(const [_0x47b3c5,_0x3bcb3e]of _0x1c71b7){const _0x1d70dd=_0x110ca2(),_0x149343={'key':_0x3f85d3,'oldValue':_0x3bcb3e,'newValue':_0x20f08f};_0x3f85d3['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':_0x3f85d3});const _0x37f469=('attribute:'+(_0x3f85d3+'|'+Lt({'newValue':_0x20f08f})))['substring'](0x0,0x3c),_0x2f90da=this['_setSuggestionData']({'id':_0x1d70dd,'type':_0x37f469,'data':_0x149343,'createdAt':new Date(),'authorId':_0x5f8aea,'attributes':_0x3985f1});_0x58ae3f['push'](_0x2f90da),this['_addSuggestionMarker'](_0x37f469,_0x1d70dd,_0x5f8aea,_0x47b3c5);}return _0x58ae3f;}['enableDefaultAttributesIntegration'](_0x323fe4){this['enableCommand'](_0x323fe4,(_0x156c3c,..._0x587a7f)=>{this['recordAttributeChanges'](()=>{_0x156c3c(..._0x587a7f);});});}['registerBlockAttribute'](_0xd67bfc){this['_blockAttributeKeys']['add'](_0xd67bfc);}['registerInlineAttribute'](_0x5b2238){this['_inlineAttributeKeys']['add'](_0x5b2238);}['startTrackingSession'](_0xf76999){return this['_trackingSessionId']=void 0x0!==_0xf76999?_0xf76999:_0x110ca2(),this['_trackingSessionId'];}['_getAttributeKey'](_0x32fb63){return'attribute'==_0x32fb63['type']?_0x32fb63['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x31a39b,_0x5c970e){const _0x11f16b=_0x31a39b['getFirstMarker']();this['_model']['change'](_0x530b8e=>{_0x530b8e['updateMarker'](_0x11f16b,{'range':_0x5c970e});});}['_addThreadToSuggestion'](_0x44d1b6){const _0x40ed71=_0x44d1b6['id'],_0x24527b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x40ed71)||this['_commentsRepository']['addCommentThread']({'channelId':_0x24527b,'threadId':_0x40ed71,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x18a234=this['_commentsRepository']['getCommentThread'](_0x40ed71);_0x18a234['unbind']('isRemovable'),_0x18a234['isRemovable']=!0x1,_0x44d1b6['commentThread']=_0x18a234;}['_checkSuggestionCorrectness'](_0x504594,_0x34cb22,_0x4de8d8,_0x43c629){if(_0x504594['type']!=_0x34cb22||_0x504594['subType']!=_0x4de8d8||_0x504594['creator']['id']!=_0x43c629)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5d208c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x35f44d,_0x4cd4ff){const _0x1943cd=_0x35f44d['getFirstRange']();if(_0x4cd4ff['isEqual'](_0x1943cd))_0x35f44d['removeMarkers']();else{if(_0x1943cd['containsRange'](_0x4cd4ff)){const _0x48613c=this['_model']['createPositionAt'](_0x4cd4ff['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x35f44d,this['_model']['createRange'](_0x1943cd['start'],_0x48613c));const _0x2a4f08=_0x110ca2(),_0x2ea2d5=_0x35f44d['creator']['id'],_0x182b7b=_0x35f44d['type']+':'+_0x35f44d['subType'];this['_setSuggestionData']({'id':_0x2a4f08,'type':_0x182b7b,'createdAt':new Date(),'authorId':_0x2ea2d5,'data':_0x35f44d['data'],'attributes':_0x35f44d['attributes']});const _0x29a4ef=this['_model']['createPositionAt'](_0x4cd4ff['end']['parent'],'after'),_0xc2206a=this['_model']['createRange'](_0x29a4ef,_0x1943cd['end']);this['_addSuggestionMarker'](_0x182b7b,_0x2a4f08,_0x2ea2d5,_0xc2206a);}else{if(_0x1943cd['containsPosition'](_0x4cd4ff['start'])){const _0x37ee05=this['_model']['createPositionAt'](_0x4cd4ff['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x35f44d,this['_model']['createRange'](_0x1943cd['start'],_0x37ee05));}else{const _0x1dfb8a=this['_model']['createPositionAt'](_0x4cd4ff['end']['parent'],'after');this['_setSuggestionRange'](_0x35f44d,this['_model']['createRange'](_0x1dfb8a,_0x1943cd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x76b670){for(const {suggestion:_0x3d3a8e,meta:_0x1ea032}of this['_findSuggestions'](_0x76b670,'insertion')){if(!_0x1ea032['isOwn'])continue;const _0x591bac=_0x3d3a8e['getRanges']();for(const _0x203b73 of _0x591bac)if(!_0x76b670['getDifference'](_0x203b73)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3c458f){const _0x27bc7c=this['editor']['plugins']['get']('Users')['getUser'](_0x3c458f);if(!_0x27bc7c)throw new _0x5d208c('track-changes-user-not-found',this);return _0x27bc7c;}['_getExternalAuthor'](_0x3214ac){const _0x451374=this['editor']['plugins']['get']('Users'),_0xa8323=_0x51422e('external:'+_0x3214ac),_0x2bc351=_0x451374['getUser'](_0xa8323);return _0x2bc351||_0x451374['addUser']({'id':_0xa8323,'name':_0x3214ac});}['_createSuggestion'](_0x7166d4,_0x42fb50,_0x4ed217,_0x308a95,_0x53ee40,_0x2ebc24){const _0x47352e=this['_getAuthorFromId'](_0x308a95),_0x15d994=this['_suggestionFactory']['buildSuggestion'](_0x7166d4,_0x42fb50,_0x4ed217,_0x47352e,_0x53ee40,_0x37f5db=>{this['_updateSuggestionData'](_0x4ed217,{'attributes':_0x37f5db});const _0xdad45f=this['getSuggestion'](_0x4ed217);this['_joinWithAdjacentSuggestions'](new Set([_0xdad45f])),this['_refreshSuggestionsChain'](new Set([_0xdad45f]));},_0x2ebc24);return this['listenTo'](_0x15d994,'accept',()=>{this['_updateSuggestionData'](_0x4ed217,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x15d994,'discard',()=>{this['_updateSuggestionData'](_0x4ed217,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4ed217,_0x15d994),this['_suggestionState']['set'](_0x15d994,'notReady'),_0x15d994;}['_splitMarkerName'](_0x48fd70){const _0x17e6fe=_0x48fd70['split'](':');return{'group':_0x17e6fe[0x0],'type':_0x17e6fe[0x1],'subType':_0x17e6fe['length']>=0x5?_0x17e6fe[0x2]:null,'id':_0x17e6fe['length']<0x5?_0x17e6fe[0x2]:_0x17e6fe[0x3],'authorId':_0x17e6fe['length']<0x5?_0x17e6fe[0x3]:_0x17e6fe[0x4],'markerCount':0x6==_0x17e6fe['length']?_0x17e6fe[0x5]:null};}['_breakSuggestionMarker'](_0x1b8402,_0x381cda,_0x2fffc9){const _0x1f807e=_0x1b8402['getFirstRange'](),_0x454eba=_0x1f807e['start'],_0x48bc1e=_0x1f807e['end'];this['_setSuggestionRange'](_0x1b8402,this['_model']['createRange'](_0x454eba,_0x381cda));const _0x25dbc7=_0x110ca2(),_0xa524d1=_0x1b8402['creator']['id'],_0x396f98=_0x1b8402['type']+(_0x1b8402['subType']?':'+_0x1b8402['subType']:'');this['_setSuggestionData']({'id':_0x25dbc7,'type':_0x396f98,'createdAt':new Date(),'authorId':_0xa524d1,'originalSuggestionId':_0x1b8402['_originalSuggestionId']||_0x1b8402['id'],'attributes':_0x1b8402['attributes'],'data':_0x1b8402['data']});const _0x2f243f=this['_getAttributeKey'](_0x1b8402);('formatBlock'==_0x1b8402['type']||_0x2f243f&&this['_isBlockAttribute'](_0x2f243f))&&(_0x2fffc9=this['_model']['createPositionBefore'](_0x2fffc9['parent'])),this['_addSuggestionMarker'](_0x396f98,_0x25dbc7,_0xa524d1,this['_model']['createRange'](_0x2fffc9,_0x48bc1e));}['_findSuggestions'](_0x27b177,_0x39c7cb=null){const _0x5abeab=[],_0x217b1e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x27b177)||(_0x27b177=[_0x27b177]);for(const _0x3313fb of this['getSuggestions']()){if(!_0x3313fb['isInContent'])continue;if(_0x39c7cb&&_0x3313fb['type']!=_0x39c7cb)continue;let _0x56098b=!0x1;for(const _0x1efcf7 of _0x3313fb['getRanges']()){for(const _0x5410d7 of _0x27b177){const _0x27183e=_0x5410d7['start']['isEqual'](_0x1efcf7['end'])||_0x5410d7['end']['isEqual'](_0x1efcf7['start']);if(_0x27183e||_0x5410d7['getIntersection'](_0x1efcf7)){const _0x254da5=_0x5410d7['containsRange'](_0x1efcf7)&&Ft(this['_model']['schema'],_0x1efcf7['start'],_0x5410d7),_0xf47c64=_0x1efcf7['containsRange'](_0x5410d7)&&Ft(this['_model']['schema'],_0x5410d7['start'],_0x1efcf7);_0x5abeab['push']({'suggestion':_0x3313fb,'meta':{'isOwn':_0x217b1e==_0x3313fb['author'],'isNextTo':_0x27183e,'isInsideObject':_0x254da5,'containsRangeInObject':_0xf47c64}}),_0x56098b=!0x0;break;}}if(_0x56098b)break;}}return _0x5abeab;}['_addSuggestionMarker'](_0x423d3c,_0x952bdd,_0x3047a3,_0x1e5071,_0x97f352){this['_model']['change'](_0x5351f1=>{let _0x436938='suggestion:'+_0x423d3c+':'+_0x952bdd+':'+_0x3047a3;_0x97f352&&(_0x436938=_0x436938+':'+_0x97f352),_0x5351f1['addMarker'](_0x436938,{'range':_0x1e5071,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1e9d8a){const _0x490e81=_0x1e9d8a['previous'],_0x2714e8=_0x1e9d8a['next'];_0x1e9d8a['previous']=null,_0x1e9d8a['next']=null,null!=_0x490e81&&_0x490e81['next']==_0x1e9d8a&&(_0x490e81['next']=_0x2714e8),null!=_0x2714e8&&_0x2714e8['previous']==_0x1e9d8a&&(_0x2714e8['previous']=_0x490e81),'ready'==this['_suggestionState']['get'](_0x1e9d8a)&&(this['_suggestionState']['set'](_0x1e9d8a,'removed'),this['fire']('suggestionUnloaded',_0x1e9d8a,_0x490e81,_0x2714e8));}['_setSuggestionData'](_0x12c31f){const _0x1a9d65=_0x12c31f['id'],_0x1b8c2b=this['addSuggestionData'](_0x12c31f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4eb66f=this['editor']['plugins']['get']('PendingActions'),_0x34dbe7=_0x1b8c2b['hasComments'],_0x20356f=_0x1b8c2b['subType']?_0x1b8c2b['type']+':'+_0x1b8c2b['subType']:_0x1b8c2b['type'],_0x54e829=this['editor']['locale'],_0x3674eb=_0x4eb66f['add'](o(_0x54e829,'PENDING_ACTION_SUGGESTION')),_0x21c508={'id':_0x1a9d65,'type':_0x20356f,'hasComments':_0x34dbe7,'data':_0x12c31f['data']||null,'originalSuggestionId':_0x12c31f['originalSuggestionId']||null,'attributes':_0x1b8c2b['attributes']};this['_adapter']['addSuggestion'](_0x21c508)['then'](_0x5101d1=>{_0x1b8c2b['_saved']=!0x0,_0x4eb66f['remove'](_0x3674eb),_0x5101d1&&_0x5101d1['createdAt']&&(this['_suggestions']['get'](_0x1a9d65)['createdAt']=_0x5101d1['createdAt']);})['catch'](_0x5d0759=>{throw _0x113fed('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1b8c2b['discard']();}),_0x1b8c2b['stopListening'](),this['_suggestions']['delete'](_0x1b8c2b['id']),this['_suggestionState']['delete'](_0x1b8c2b),_0x5d0759;});}return _0x1b8c2b;}['_isBlockAttribute'](_0x155a5b){return this['_blockAttributeKeys']['has'](_0x155a5b);}['_isInlineAttribute'](_0x5db041){return this['_inlineAttributeKeys']['has'](_0x5db041);}['_updateSuggestionData'](_0x191122,_0x309f95){const _0x438b12=this['editor']['plugins']['get']('PendingActions'),_0x14ecec=this['getSuggestion'](_0x191122);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x14ecec['_saved']){const _0xd7fe20=_0x438b12['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x191122,_0x309f95)['then'](()=>{_0x438b12['remove'](_0xd7fe20);});}else _0x14ecec['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x191122,_0x309f95);});}}['_getSuggestionData'](_0x3a1f13){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5d208c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3a1f13);}['_handleNewSuggestionMarker'](_0x3c2a62){const {id:_0x2f74bf,type:_0x226f00,subType:_0x4b6781,authorId:_0xa1a18a}=this['_splitMarkerName'](_0x3c2a62),_0x53af6c=this['_suggestions']['get'](_0x2f74bf)||this['_createSuggestion'](_0x226f00,_0x4b6781,_0x2f74bf,_0xa1a18a,{});switch(this['_checkSuggestionCorrectness'](_0x53af6c,_0x226f00,_0x4b6781,_0xa1a18a),this['_suggestionState']['get'](_0x53af6c)){case'notReady':this['_getSuggestionData'](_0x2f74bf)['then'](_0x4bd3eb=>{let _0x15656d=Promise['resolve']();_0x4bd3eb['hasComments']&&(_0x15656d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2f74bf})),_0x15656d['then'](()=>{this['addSuggestionData'](_0x4bd3eb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x53af6c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2f74bf,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x53af6c,'ready'),this['fire']('suggestionLoaded',_0x53af6c);break;case'ready':this['fire']('suggestionChanged',_0x53af6c);}return _0x53af6c['addMarkerName'](_0x3c2a62),_0x53af6c;}['_refreshSuggestionsChain'](_0x329df0){const _0x590df7=Array['from'](_0x329df0),_0x2db756=_0x590df7['filter'](_0x548e3c=>'attribute'==_0x548e3c['type']);this['_refreshAttributeSuggestionsChain'](_0x2db756);const _0x1c74a6=_0x590df7['filter'](_0x2218e2=>!_0x2218e2['isMultiRange']&&'attribute'!=_0x2218e2['type']),_0x1a4d26=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33b484=>!_0x33b484['isMultiRange']&&'attribute'!=_0x33b484['type']),_0x4aba7c=_0x1a4d26['filter'](_0x197f01=>!_0x329df0['has'](_0x197f01)),_0x4e54f0=new Map(_0x1a4d26['map'](_0x38df48=>[_0x38df48,this['_suggestionFactory']['getSuggestionCallback'](_0x38df48['type'],_0x38df48['subType'],'chain')])),_0xd0e9a3=new Map(_0x1a4d26['map'](_0x52ae6f=>[_0x52ae6f,_0x52ae6f['getFirstRange']()])),_0xd96e18=new Set(),_0x226442=new Set();for(let _0x9a6191=0x0;_0x9a6191<_0x1c74a6['length'];_0x9a6191++)_0x337307(_0x1c74a6[_0x9a6191],_0x1c74a6,_0x9a6191+0x1);for(let _0x2975fa=0x0;_0x2975fa<_0x1c74a6['length'];_0x2975fa++)_0x337307(_0x1c74a6[_0x2975fa],_0x4aba7c,0x0);const _0x3d7fb2=new Set();for(let _0x2715af=0x0;_0x2715af<_0x1c74a6['length'];_0x2715af++){const _0x12a64b=_0x1c74a6[_0x2715af];!_0x226442['has'](_0x12a64b)&&_0x12a64b['previous']&&(_0x3d7fb2['add'](_0x12a64b['previous']),_0x12a64b['previous']['next']===_0x12a64b&&(_0x12a64b['previous']['next']=null),_0x12a64b['previous']=null),!_0xd96e18['has'](_0x12a64b)&&_0x12a64b['next']&&(_0x3d7fb2['add'](_0x12a64b['next']),_0x12a64b['next']['previous']===_0x12a64b&&(_0x12a64b['next']['previous']=null),_0x12a64b['next']=null);}function _0x337307(_0x1a57c9,_0x6eac54,_0x13df9d){for(let _0x88de85=_0x13df9d;_0x88de85<_0x6eac54['length'];_0x88de85++){const _0x2f0b9b=_0x3d00b9(_0x1a57c9,_0x6eac54[_0x88de85]);_0x2f0b9b&&(_0x2f0b9b[0x0]['next']=_0x2f0b9b[0x1],_0x2f0b9b[0x1]['previous']=_0x2f0b9b[0x0],_0xd96e18['add'](_0x2f0b9b[0x0]),_0x226442['add'](_0x2f0b9b[0x1]));}}function _0x3d00b9(_0x1ae000,_0xd72e55){if(_0x1ae000['author']['id']!==_0xd72e55['author']['id'])return null;const _0x4a8e46=_0x4e54f0['get'](_0x1ae000)(_0x1ae000,_0xd72e55,_0xd0e9a3['get'](_0x1ae000),_0xd0e9a3['get'](_0xd72e55));if(!_0x4a8e46)return null;return _0x4e54f0['get'](_0xd72e55)(_0x1ae000,_0xd72e55,_0xd0e9a3['get'](_0x1ae000),_0xd0e9a3['get'](_0xd72e55))?_0x4a8e46[0x1]['commentThread']&&_0x4a8e46[0x1]['commentThread']['length']?null:_0x4a8e46:null;}_0x3d7fb2['size']&&this['_refreshSuggestionsChain'](_0x3d7fb2);}['_refreshAttributeSuggestionsChain'](_0x33f85f){if(0x0==_0x33f85f['length'])return;const _0x7dd33f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x543e76=>'attribute'==_0x543e76['type']&&_0x543e76['_isDataLoaded']),_0x5cd89d=[],_0x4758f3=new Map();for(const _0x58f9fe of _0x7dd33f){const _0x484f77=_0x51422e(_0x58f9fe['attributes']);_0x4758f3['has'](_0x484f77)||(_0x4758f3['set'](_0x484f77,_0x5cd89d['length']),_0x5cd89d['push']([]));const _0x1aff7d=_0x4758f3['get'](_0x484f77);_0x5cd89d[_0x1aff7d]['push'](_0x58f9fe);}!(function(){_0x5cd89d['sort']((_0x55c948,_0xd78155)=>{const _0x5280c9=_0x55c948[0x0]['createdAt'],_0x5bc297=_0xd78155[0x0]['createdAt'];return _0x5280c9==_0x5bc297?_0x55c948[0x0]['attributes']['groupId']<_0xd78155[0x0]['attributes']['groupId']?-0x1:0x1:_0x5280c9<_0x5bc297?-0x1:0x1;});for(const _0x54e035 of _0x5cd89d)_0x54e035['sort']((_0x3c2a4d,_0x46f5ac)=>_0x3c2a4d['id']<_0x46f5ac['id']?-0x1:0x1);}());for(let _0x5bd2eb=0x0;_0x5bd2eb<_0x5cd89d['length'];_0x5bd2eb++){if(0x0==_0x5cd89d[_0x5bd2eb]['length'])continue;const _0x42ab79=[];for(let _0x433fcf=_0x5bd2eb+0x1;_0x433fcf<_0x5cd89d['length'];_0x433fcf++)0x0!=_0x5cd89d[_0x433fcf]['length']&&_0xe78087(_0x5cd89d[_0x5bd2eb],_0x5cd89d[_0x433fcf])&&_0x42ab79['push'](_0x433fcf);for(const _0x42b90b of _0x42ab79)_0x5cd89d[_0x5bd2eb]=_0x5cd89d[_0x5bd2eb]['concat'](_0x5cd89d[_0x42b90b]),_0x5cd89d[_0x42b90b]=[];}for(const _0x1b7a76 of _0x5cd89d)for(let _0xab7fd7=0x0;_0xab7fd7<_0x1b7a76['length'];_0xab7fd7++){const _0x5f57fa=_0x1b7a76[_0xab7fd7+0x1]||null;_0x1b7a76[_0xab7fd7]['next']!==_0x5f57fa&&(_0x1b7a76[_0xab7fd7]['next']=_0x5f57fa);}for(const _0x19c53b of _0x5cd89d)for(let _0x5464a7=0x0;_0x5464a7<_0x19c53b['length'];_0x5464a7++){const _0x569374=_0x19c53b[_0x5464a7-0x1]||null;_0x19c53b[_0x5464a7]['previous']!==_0x569374&&(_0x19c53b[_0x5464a7]['previous']=_0x569374);}function _0xe78087(_0xe51f6c,_0x49550a){if(_0xe51f6c[0x0]['attributes']['groupId']!==_0x49550a[0x0]['attributes']['groupId']&&_0xe51f6c[0x0]['author']!==_0x49550a[0x0]['author'])return!0x1;if(!function(_0x145e24,_0x57ce61){if(!_0x145e24['hasComments']&&!_0x57ce61['hasComments'])return!0x0;if(_0x145e24['hasComments']&&_0x57ce61['hasComments'])return!0x1;if(_0x145e24['hasComments']&&_0x57ce61['createdAt']<_0x145e24['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x57ce61['hasComments']&&_0x145e24['createdAt']<_0x57ce61['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xe51f6c[0x0],_0x49550a[0x0]))return!0x1;const _0x25b81d=Ut(_0xe51f6c[0x0]['attributes'],['groupId','trackingSessionId']),_0x815e13=Ut(_0x49550a[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x3f9778(_0x25b81d,_0x815e13))return!0x1;if(_0xe51f6c[0x0]['attributes']['groupId']==_0x49550a[0x0]['attributes']['groupId'])return!0x0;if(_0xe51f6c[0x0]['attributes']['trackingSessionId']!==_0x49550a[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xe51f6c['every'](_0x88b521=>_0x49550a['some'](_0x29455d=>_0x88b521['getFirstRange']()['isEqual'](_0x29455d['getFirstRange']())))&&_0x49550a['every'](_0x32a839=>_0xe51f6c['some'](_0x1e3bef=>_0x32a839['getFirstRange']()['isEqual'](_0x1e3bef['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2868ff){const _0x41d071=Array['from'](_0x2868ff),_0x5bdff1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2b635f=_0x5bdff1['filter'](_0x3f1785=>!_0x2868ff['has'](_0x3f1785)),_0x5ef4da=new Map(_0x41d071['map'](_0x39d105=>[_0x39d105,this['_suggestionFactory']['getSuggestionCallback'](_0x39d105['type'],_0x39d105['subType'],'join')])),_0xdf6ab6=new Map(_0x5bdff1['map'](_0x73f811=>[_0x73f811,_0x73f811['getRanges']()]));for(let _0x6c5f4b=0x0;_0x6c5f4b<_0x41d071['length'];_0x6c5f4b++){if(_0x546a1f(this,_0x41d071[_0x6c5f4b],_0x41d071,_0x6c5f4b+0x1))return!0x0;}for(let _0x43a044=0x0;_0x43a044<_0x41d071['length'];_0x43a044++){if(_0x546a1f(this,_0x41d071[_0x43a044],_0x2b635f,0x0))return!0x0;}return!0x1;function _0x546a1f(_0x3f014f,_0x215b5e,_0x52f60f,_0x4f1995){for(let _0x4ebf2c=_0x4f1995;_0x4ebf2c<_0x52f60f['length'];_0x4ebf2c++){const _0x4bb198=_0x52f60f[_0x4ebf2c];if(_0x4bb198['type']!==_0x215b5e['type']||_0x4bb198['author']['id']!==_0x215b5e['author']['id']||_0x4bb198['subType']!==_0x215b5e['subType'])continue;if(!Qt(_0x215b5e,_0x4bb198))continue;if('attribute'==_0x215b5e['type']&&_0x215b5e['data']['oldValue']!=_0x4bb198['data']['oldValue'])continue;if('attribute'==_0x215b5e['type']&&_0x3f014f['_isBlockAttribute'](_0x215b5e['data']['key']))continue;if('formatBlock'==_0x215b5e['type']){const _0x1b34f4=_0x3f014f['editor']['model'],_0x51ba70=_0x215b5e['getContainedElement']();if(_0x51ba70&&(_0x1b34f4['schema']['isObject'](_0x51ba70)||_0x1b34f4['schema']['isLimit'](_0x51ba70)))continue;}const _0x142d45=_0x5ef4da['get'](_0x215b5e),_0x177f18=_0xdf6ab6['get'](_0x215b5e),_0x40c99d=_0xdf6ab6['get'](_0x4bb198),_0x3d978c=_0x215b5e['commentThread']&&_0x215b5e['commentThread']['length'],_0x287cd3=_0x4bb198['commentThread']&&_0x4bb198['commentThread']['length'];if(!_0x3d978c&&_0x142d45(_0x40c99d,_0x177f18))return _0x3f014f['_joinSuggestions'](_0x4bb198,_0x215b5e),_0xdf6ab6['delete'](_0x215b5e),!0x0;if(!_0x287cd3&&_0x142d45(_0x177f18,_0x40c99d))return _0x3f014f['_joinSuggestions'](_0x215b5e,_0x4bb198),_0xdf6ab6['delete'](_0x4bb198),!0x0;}return!0x1;}}['_joinSuggestions'](_0x92348c,_0x363f42){if(_0x92348c['isMultiRange']){for(const _0x523a62 of _0x363f42['getRanges']())_0x92348c['addRange'](_0x523a62);}else{const _0x59dc84=_0x363f42['getFirstRange']()['end'];this['_setSuggestionRange'](_0x92348c,this['_model']['createRange'](_0x92348c['getFirstRange']()['start'],_0x59dc84));}_0x363f42['removeMarkers']();}['_getMarkerAnnouncementText'](_0xfde489,_0x1fb1fd,_0x524144){const _0x3303c5=_0xfde489['startsWith']('format')||_0xfde489['startsWith']('attribute')?'FORMATTING':_0xfde489['toUpperCase']();return o(this['editor']['locale'],_0x1fb1fd+'_'+_0x3303c5+'_SUGGESTION_ANNOUNCEMENT',_0x524144);}['_initAriaMarkerChangeAnnouncements'](){const _0x32a9d2=this['editor'];if(!_0x32a9d2['ui'])return;const {ariaLiveAnnouncer:_0x543ecc}=_0x32a9d2['ui'];_0x4126be(this['_model'],({left:_0x10a803,entered:_0x4c0b0f})=>{for(const _0x4a36dd of _0x10a803){const {group:_0x3f2a78,type:_0x413ce6}=this['_splitMarkerName'](_0x4a36dd['name']);if('suggestion'===_0x3f2a78){_0x543ecc['announce'](this['_getMarkerAnnouncementText'](_0x413ce6,'LEAVE'));break;}}for(const _0x4e2445 of _0x4c0b0f){const {group:_0x4c4bdf,type:_0x293a0e}=this['_splitMarkerName'](_0x4e2445['name']);if('suggestion'===_0x4c4bdf){_0x543ecc['announce'](this['_getMarkerAnnouncementText'](_0x293a0e,'ENTER',_0x338685(_0x37cb22)));break;}}});}['_processAttributeChanges'](_0xe4bde8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2646f5=this['editor'],_0xf8aa70=_0x2646f5['model']['document']['differ']['getChanges']();if(0x0==_0xf8aa70['length'])return!0x1;const _0x237b68=[],_0x40c17b=_0xf8aa70['filter'](_0x3e38e4=>'attribute'==_0x3e38e4['type']),_0x219248=_0xf8aa70['filter'](_0x3620cc=>'insert'==_0x3620cc['type']&&'$text'!=_0x3620cc['name']),_0x291c7d=_0xf8aa70['filter'](_0x2e5e23=>'remove'==_0x2e5e23['type']&&'$text'!=_0x2e5e23['name']);for(const _0x4cd6b2 of _0x40c17b)_0x237b68['push']({'key':_0x4cd6b2['attributeKey'],'newValue':_0x4cd6b2['attributeNewValue'],'oldValue':_0x4cd6b2['attributeOldValue'],'range':qt(_0x4cd6b2['range'],_0x2646f5['model'])});for(const _0x4f4848 of _0x219248){const _0x3255ad=_0x291c7d['find'](_0x5c81ba=>_0x5c81ba['position']['isEqual'](_0x4f4848['position']));_0x3255ad&&_0x237b68['push']({'key':m,'newValue':_0x4f4848['name'],'oldValue':_0x3255ad['name'],'range':_0x2646f5['model']['createRangeOn'](_0x4f4848['position']['nodeAfter'])});}return 0x0!=_0x237b68['length']&&this['_reduceExistingSuggestions'](_0xe4bde8,_0x237b68);}['_processAttributeSuggestions'](_0xfd2e14){let _0x4d0fae=!0x1;const _0x35f74e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x48c595=>_0x48c595['data']['newRange']&&_0x48c595['name']['startsWith']('suggestion:attribute:'));for(const _0x48601c of _0x35f74e){const {subType:_0x313f52,id:_0x4f4a36}=this['_splitMarkerName'](_0x48601c['name']),_0x3739dc=_0x313f52['split']('|')[0x0];for(const _0x4635b6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4635b6['id']!=_0x4f4a36&&'attribute'==_0x4635b6['type']&&_0x4635b6['data']&&_0x4635b6['data']['key']==_0x3739dc&&_0x4635b6['getFirstRange']()['isIntersecting'](_0x48601c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4635b6,_0x48601c['data']['newRange'],_0xfd2e14),_0x4d0fae=!0x0);}return _0x4d0fae;}['recordAttributeChanges'](_0x3fc728){this['_recordAttributeSuggestions']=!0x0,_0x3fc728();}['_isRegisteredAttribute'](_0x2ffa76){const _0x1c28d2=this['_isBlockAttribute'](_0x2ffa76),_0x100963=this['_isInlineAttribute'](_0x2ffa76);return _0x1c28d2||_0x100963;}['_reduceExistingSuggestions'](_0x1560f3,_0x55e2d3){if(0x0==_0x55e2d3['length'])return!0x1;let _0x545ae4=!0x1;for(const _0x17c778 of _0x55e2d3){const _0x4f9807=this['_findSuggestions'](_0x17c778['range'],'attribute')['filter'](_0x1e32a7=>!_0x1e32a7['meta']['isNextTo'])['map'](_0x3ea4e3=>_0x3ea4e3['suggestion']),_0x490959=_0x51422e({'newValue':_0x17c778['newValue']});_0x4f9807['filter'](_0x509354=>{const [_0xa37047,_0x1adc16]=_0x509354['subType']['split']('|');return _0xa37047==_0x17c778['key']&&_0x1adc16!=_0x490959;})['forEach'](_0x5f11d8=>{this['_reduceSuggestionAttributeRange'](_0x5f11d8,_0x17c778['range'],_0x1560f3),_0x545ae4=!0x0;});}return _0x545ae4;}['_reduceSuggestionAttributeRange'](_0x4135e8,_0x36b868,_0x4b85af){const _0x469e2a=_0x4135e8['getFirstRange']()['getDifference'](_0x36b868);0x0!==_0x469e2a['length']?0x1!==_0x469e2a['length']?this['_breakSuggestionMarker'](_0x4135e8,_0x36b868['start'],_0x36b868['end']):this['_setSuggestionRange'](_0x4135e8,_0x469e2a[0x0]):_0x4b85af['removeMarker'](_0x4135e8['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4100b0){this['_editor']=_0x4100b0,this['_model']=_0x4100b0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x26cb02,_0x10ba82,_0x4a548d,_0x24cbe2,_0x7253b1,_0x23ad4b,_0x15434a){return new T(this['_model'],{'type':_0x26cb02,'subType':_0x10ba82,'id':_0x4a548d,'originalSuggestionId':_0x15434a,'author':_0x24cbe2,'creator':_0x24cbe2,'attributes':_0x7253b1,'onAttributesChange':_0x23ad4b,'onAccept':(..._0x492dda)=>this['getSuggestionCallback'](_0x26cb02,_0x10ba82,'accept')(..._0x492dda),'onDiscard':(..._0x470c42)=>this['getSuggestionCallback'](_0x26cb02,_0x10ba82,'discard')(..._0x470c42)});}['registerCustomCallback'](_0x4129f3,_0x32439f,_0x163a40,_0x39466a){const _0x45aff7=_0x4129f3+':'+_0x32439f+':'+_0x163a40;this['_customCallbacks']['set'](_0x45aff7,_0x39466a);}['getSuggestionCallback'](_0x396e79,_0x324f9b,_0x2b70f5){const _0x16a665=_0x396e79+':'+_0x324f9b+':'+_0x2b70f5;return this['_customCallbacks']['get'](_0x16a665)||this['_defaultCallbacks']['get'](_0x396e79+':'+_0x2b70f5);}['_registerDefaultCallbacks'](){const _0x15b3a1=()=>!0x1,_0x3162af=_0xda6be5=>{_0xda6be5['sort']((_0x2f746a,_0x19eef6)=>_0x2f746a['start']['isBefore'](_0x19eef6['start'])?0x1:-0x1),this['_model']['change'](_0x241f09=>{for(const _0x18e1c2 of _0xda6be5){let _0x3c4fc8;_0x3c4fc8=_0x18e1c2['end']['isAtEnd']&&_0x18e1c2['end']['parent']==_0x18e1c2['start']['nodeAfter']?_0x241f09['createSelection'](_0x18e1c2['start']['nodeAfter'],'on'):_0x241f09['createSelection'](_0x18e1c2),this['_model']['deleteContent'](_0x3c4fc8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x43ab61=(_0x3337ba,_0xa83603)=>{_0xa83603&&this['_model']['change'](_0x4fbf7b=>{const {commandName:_0x2a4dd5,commandParams:_0x5aa739=[]}=_0xa83603,_0x2d5d40=_0x3337ba['map'](_0x32492e=>(Pt(_0x32492e)&&(_0x32492e=this['_model']['createRange'](_0x32492e['end'])),_0x32492e))['filter'](_0x2425b2=>'$graveyard'!==_0x2425b2['root']['rootName']);if(_0x2d5d40['length']<0x1)return;const _0x2364bd=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x541ec0=>_0x217d71['fromRange'](_0x541ec0));_0x4fbf7b['setSelection'](_0x2d5d40);for(const _0x30f85a of this['_editor']['commands']['commands']())_0x30f85a['refresh']();_0x5aa739['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2a4dd5,..._0x5aa739);const _0x3fd35a=_0x2364bd['filter'](_0x1cc6c8=>'$graveyard'!=_0x1cc6c8['root']['rootName']);_0x3fd35a['length']>0x0&&_0x4fbf7b['setSelection'](_0x3fd35a);for(const _0x4d1426 of _0x2364bd)_0x4d1426['detach']();});},_0x571feb=(_0x33d503,_0x129559)=>0x1==_0x33d503['length']&&0x1==_0x129559['length']&&_0x33d503[0x0]['end']['isEqual'](_0x129559[0x0]['start']),_0x4378fa=(_0x3a8d57,_0xfbfb31,_0x110cb1,_0x42eeff)=>Wt(_0x3a8d57,_0xfbfb31,_0x110cb1,_0x42eeff)?[_0x3a8d57,_0xfbfb31]:Wt(_0xfbfb31,_0x3a8d57,_0x42eeff,_0x110cb1)?[_0xfbfb31,_0x3a8d57]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x15b3a1),this['_defaultCallbacks']['set']('insertion:discard',_0x3162af),this['_defaultCallbacks']['set']('insertion:join',_0x571feb),this['_defaultCallbacks']['set']('insertion:chain',_0x4378fa),this['_defaultCallbacks']['set']('deletion:accept',_0x3162af),this['_defaultCallbacks']['set']('deletion:discard',_0x15b3a1),this['_defaultCallbacks']['set']('deletion:join',_0x571feb),this['_defaultCallbacks']['set']('deletion:chain',_0x4378fa),this['_defaultCallbacks']['set']('formatInline:accept',_0x43ab61),this['_defaultCallbacks']['set']('formatInline:discard',_0x15b3a1),this['_defaultCallbacks']['set']('formatInline:join',_0x571feb),this['_defaultCallbacks']['set']('formatInline:chain',_0x15b3a1),this['_defaultCallbacks']['set']('formatBlock:accept',_0x43ab61),this['_defaultCallbacks']['set']('formatBlock:discard',_0x15b3a1),this['_defaultCallbacks']['set']('formatBlock:join',_0x571feb),this['_defaultCallbacks']['set']('formatBlock:chain',_0x15b3a1),this['_defaultCallbacks']['set']('attribute:accept',_0x15b3a1),this['_defaultCallbacks']['set']('attribute:discard',(_0x3c06a2,_0x5ef89e)=>{if(!_0x5ef89e)return;const _0x5242a6=this['_editor']['plugins']['get'](d);this['_model']['change'](_0xdf06a7=>{if(_0x5ef89e['key']==m)for(const _0x84e64f of _0x3c06a2){const _0x426bae=_0x84e64f['start']['nodeAfter'],_0x3342ff=_0x5ef89e['oldValue'];_0xdf06a7['rename'](_0x426bae,_0x3342ff);}else{if(_0x5242a6['_isBlockAttribute'](_0x5ef89e['key'])){for(const _0x21721f of _0x3c06a2)void 0x0!==_0x5ef89e['oldValue']?_0xdf06a7['setAttribute'](_0x5ef89e['key'],_0x5ef89e['oldValue'],_0x21721f['start']['nodeAfter']):_0xdf06a7['removeAttribute'](_0x5ef89e['key'],_0x21721f['start']['nodeAfter']);}else{for(const _0x48631c of _0x3c06a2)_0x5ef89e['oldValue']?_0xdf06a7['setAttribute'](_0x5ef89e['key'],_0x5ef89e['oldValue'],_0x48631c):_0xdf06a7['removeAttribute'](_0x5ef89e['key'],_0x48631c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x571feb);}}function Ft(_0x6262d1,_0x1a2574,_0x36f25b){for(const _0x2c7a62 of _0x1a2574['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2c7a62['root']==_0x2c7a62)return!0x1;if(!_0x36f25b['containsItem'](_0x2c7a62))return!0x1;if(_0x6262d1['isObject'](_0x2c7a62)||_0x6262d1['isLimit'](_0x2c7a62))return!0x0;}return!0x1;}function Pt(_0x19b554){return _0x19b554['end']['parent']==_0x19b554['start']['nodeAfter']&&_0x19b554['end']['isAtStart'];}function Gt(_0x11f961,_0x5008b4,_0x20c029,_0x2a736b){const _0xb3627=_0x3fc79f=>!_0x3fc79f['item']['is']('$textProxy')&&!_0x2a736b['isObject'](_0x3fc79f['item']),_0x4f828f=_0x11f961['start']['getLastMatchingPosition'](_0xb3627),_0x35ef9e=_0x11f961['end']['getLastMatchingPosition'](_0xb3627,{'direction':'backward'});return(!_0x11f961['start']['isEqual'](_0x4f828f)||!_0x11f961['end']['isEqual'](_0x35ef9e))&&(_0x4f828f['isBefore'](_0x35ef9e)?_0x20c029['updateMarker'](_0x5008b4,{'range':_0x20c029['createRange'](_0x4f828f,_0x35ef9e)}):_0x20c029['removeMarker'](_0x5008b4),!0x0);}function Lt(_0x3ff2bc){return _0x51422e(_0x3ff2bc);}function Jt(_0x21f5eb){const _0x50c206=_0x21f5eb['start']['nodeAfter'];return _0x50c206&&_0x50c206['is']('element');}function Kt(_0x1fb83c){return Pt(_0x1fb83c)||function(_0x3c0f3d){return _0x3c0f3d['start']['parent']==_0x3c0f3d['end']['nodeBefore']&&_0x3c0f3d['start']['isAtEnd'];}(_0x1fb83c);}function Ht(_0x4181f3,_0x145951){try{const _0x300006=_0x4181f3['getRange']();for(const _0x31fa2d of _0x145951)if(_0x4181f3!==_0x31fa2d&&_0x300006&&_0x300006['isIntersecting'](_0x31fa2d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x3fc991,_0xfc8e0d){return null==_0x3fc991['end']['nodeBefore']&&_0x3fc991['end']['parent']==_0x3fc991['start']['nodeAfter']?zt(_0x3fc991['start']['nodeAfter'],_0xfc8e0d):_0x3fc991;}function zt(_0x42ee3c,_0x2e8dd5){const _0x7ca1aa=_0x2e8dd5['schema']['isObject'](_0x42ee3c)||_0x2e8dd5['schema']['isSelectable'](_0x42ee3c);return _0x2e8dd5['createRange'](_0x2e8dd5['createPositionAt'](_0x42ee3c,'before'),_0x7ca1aa?_0x2e8dd5['createPositionAfter'](_0x42ee3c):_0x2e8dd5['createPositionAt'](_0x42ee3c,'end'));}function Wt(_0x472db1,_0x30e5e0,_0x35fd59,_0x52dc50){return!!Qt(_0x472db1,_0x30e5e0)&&_0x35fd59['end']['isEqual'](_0x52dc50['start']);}function Qt(_0x2688d1,_0x4526f1){if(!_0x2688d1['_isDataLoaded']||!_0x4526f1['_isDataLoaded'])return!0x1;const _0x154a8a=new Set(Object['keys'](_0x2688d1['attributes'])),_0x1f25ea=new Set(Object['keys'](_0x4526f1['attributes']));if(_0x154a8a['delete']('groupId'),_0x1f25ea['delete']('groupId'),0x0==_0x154a8a['size']&&0x0==_0x1f25ea['size'])return!0x0;if(_0x154a8a['size']!=_0x1f25ea['size'])return!0x1;const _0x174d5f={..._0x2688d1['attributes']},_0x189c6e={..._0x4526f1['attributes']};return delete _0x174d5f['groupId'],delete _0x189c6e['groupId'],JSON['stringify'](_0x174d5f)==JSON['stringify'](_0x189c6e);}function Xt(_0x5f960e,_0x69e50e){const _0xbeddfb=Yt(_0x5f960e['attributes']),_0x13d315=Yt(_0x69e50e);if(!_0x5f960e['_isDataLoaded'])return!0x1;for(const _0x72f9b2 of Object['keys'](_0x13d315))if(!_0x3f9778(_0xbeddfb[_0x72f9b2],_0x13d315[_0x72f9b2]))return!0x1;return!0x0;}function Yt(_0x3f45ac){const _0x524a8a=Object['assign']({},_0x3f45ac);return delete _0x524a8a['skipNestingCheck'],delete _0x524a8a['tablePasteChainId'],_0x524a8a;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x4ffc3b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x33e40f,_0x2d233f,_0x35cd10,_0x450286){super(),this['model']=_0x2d233f,this['view']=_0x35cd10,this['commentThreadController']=_0x450286,this['_editor']=_0x33e40f,this['_acceptCommand']=_0x33e40f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x33e40f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x20fcae,_0x20f8b7)=>_0x20fcae||_0x20f8b7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4d9494=>_0x4d9494&&this['_editor']['model']['canEditAt'](_0x2d233f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x42c6df=>_0x42c6df&&this['_editor']['model']['canEditAt'](_0x2d233f['getRanges']())),this['_pendingAction']=null,_0x35cd10['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x35cd10,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x35cd10,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x35cd10,'change:isDirty',()=>{_0x35cd10['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 _0x1929a2=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1929a2);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x237d07{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3f4479,_0xb29f7b,_0x4becd9,_0x2b44d9){super(_0x3f4479),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x496d48(_0x3f4479,o(_0x3f4479,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xb29f7b['authoredAt']),this['bind']('authoredAt')['to'](_0xb29f7b),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',_0xb29f7b,'authoredAt',this,'descriptionParts',(_0x1dd4f9,_0x8f74af,_0x122cc8)=>{const _0x54b805=_0x122cc8['map'](_0x10c445=>ls(_0x10c445['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1dd4f9-0x1,_0xb29f7b['author']['name'],_0x8f74af?_0x2b44d9['formatDateTime'](_0x8f74af):'',new DOMParser()['parseFromString'](_0x54b805,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1dcd16(),this['focusTracker']=new _0x2bcccf(),this['keystrokes']=new _0x59df8b(),this['focusCycler']=new _0x4bc59e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5bde4f=>_0x5bde4f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xb29f7b,this['_localUser']=_0x4becd9,this['_config']=_0x2b44d9,_0x2b44d9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2e09af(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5a3461}=this['_config'];this['commentsListView']=new _0x5a3461(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',_0x550aa6=>_0x550aa6+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x243dff,_0x6389c8)=>_0x243dff||!!_0x6389c8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x38be1d}=this['_config'],_0x1c2e36=new _0x38be1d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x25aa78=_0x1c2e36['commentInputView'];return _0x1c2e36['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x25aa78,'value',(_0x8fe49c,_0x1fce54,_0x1de177)=>!!_0x1de177||_0x8fe49c&&!_0x1fce54),_0x25aa78['on']('submit',(_0x4bdf30,_0x4f298c)=>{this['fire']('addComment',_0x4f298c),_0x25aa78['editor']['setData']('');}),_0x25aa78['on']('cancel',()=>this['focus']()),_0x25aa78['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1c2e36;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0xc94c9,_0x51f6dd,_0x2ab1ee,_0x137618){super(_0xc94c9,_0x51f6dd,_0x2ab1ee,_0x137618),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x38a33e=>_0x38a33e&&_0x38a33e[0x0]?_0x38a33e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x16a8eb,_0x146dc7)=>{let _0x5a5e3c='';for(const _0x5d7b62 of _0x16a8eb)_0x5a5e3c+='<p>'+ls(_0x5d7b62['content'],_0x5d7b62['color'])+'</p>';return _0x146dc7?_0x5a5e3c:_0x2d6735(_0x5a5e3c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x137618['SuggestionView'](_0xc94c9,_0x51f6dd,{'formatDateTime':_0x137618['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 _0x275ada=this['bindTemplate'],_0x1f0aa9=[this['suggestionView']];return this['commentsListView']&&_0x1f0aa9['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1f0aa9['push'](this['commentThreadInputView']),_0x1f0aa9['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x275ada['if']('isActive','ck-suggestion-wrapper--active'),_0x275ada['to']('type',_0x3d3acc=>'ck-suggestion-'+_0x3d3acc),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':_0x275ada['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1f0aa9};}['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 we extends _0x237d07{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x8a9ed6,_0x4b2b0a,_0x443fcc){super(_0x8a9ed6),this['_model']=_0x4b2b0a,this['_config']=_0x443fcc,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4b2b0a),this['acceptButton']=this['_createButton'](o(_0x8a9ed6,'Accept\x20suggestion'),_0x4a5080,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x8a9ed6,'Discard\x20suggestion'),_0x503c9a,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4a5b3a(_0x8a9ed6,_0x4b2b0a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1dcd16([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2bcccf(),this['keystrokes']=new _0x59df8b(),this['focusCycler']=new _0x4bc59e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3f2863=>_0x3f2863['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1534bf=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1534bf['innerHTML']=this['description'],this['on']('change:description',(_0x2b1bee,_0x2b8c90,_0x3b589c)=>{_0x1534bf['innerHTML']=_0x3b589c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x342d81=this['bindTemplate'],_0xfe01b0=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x342d81['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x342d81['to']('authoredAt',_0x3eccb=>this['_config']['formatDateTime'](_0x3eccb))}]}]},{'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']&&_0xfe01b0['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':_0xfe01b0}]};}['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'](_0x4c16c2,_0x50a716,_0x477a2a,_0x36c46b,_0x588956){const _0x471327=new _0x5b4b3e(this['locale']);return _0x471327['set']({'label':_0x4c16c2,'icon':_0x50a716,'tooltip':!0x0,'tooltipPosition':_0x588956}),_0x471327['extendTemplate']({'attributes':{'class':_0x477a2a}}),_0x471327['on']('execute',()=>{this['fire'](_0x36c46b,this['_model']['id']);}),_0x471327;}['_setupKeyboardNavigation'](){const _0x4c00e9=this['element'];this['keystrokes']['listenTo'](_0x4c00e9);for(const _0x42dfec of this['focusables'])this['focusTracker']['add'](_0x42dfec['element']),this['keystrokes']['listenTo'](_0x42dfec['element']);this['keystrokes']['set']('enter',(_0x56cb5d,_0x1980a6)=>{_0x4c00e9===_0x56cb5d['target']&&(this['focusCycler']['focusFirst'](),_0x1980a6());}),this['keystrokes']['set']('esc',(_0x52c0b0,_0x2c0491)=>{_0x4c00e9!==_0x52c0b0['target']&&(this['focus'](),_0x2c0491());});}}class u extends _0xfd4522{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x41af33,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c95bf){super(_0x5c95bf),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x27d4b3=this['editor']['config'];_0x27d4b3['define']('trackChanges.SuggestionThreadView',fe),_0x27d4b3['define']('trackChanges.SuggestionView',we),_0x27d4b3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x27d4b3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x49be31,_0x2fb487){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4eb746,_0xf36746]of this['_handleControllerBuffer']){const _0x4fb080=this['_suggestionToController']['has'](_0x4eb746);_0x4fb080||_0xf36746?_0x4fb080&&_0xf36746&&this['_destroyController'](_0x4eb746):this['_initializeController'](_0x4eb746);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x49be31,_0x2fb487);}['init'](){const _0x119ae5=this['editor'],_0xec48ab=_0x119ae5['plugins']['get']('TrackChangesEditing'),_0x1cdaf5=_0x119ae5['plugins']['get']('Annotations'),_0x281911=_0x119ae5['plugins']['get']('EditorAnnotations'),_0x39ce4a=_0x119ae5['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x281911['addSourceCollector'](()=>{const _0x41c237=[];for(const [_0x1307b2,_0x5ed68a]of Array['from'](this['_suggestionToController'])){const _0x574f66=_0x1307b2['getAllAdjacentSuggestions'](),_0x5e6af1=[];for(const _0x2f3f62 of _0x574f66){if(!_0x2f3f62['isInContent'])continue;if(_0x2f3f62['isMultiRange']){_0x5e6af1['push'](..._0x2f3f62['getRanges']());continue;}const _0x1e48e8=_0x2f3f62['getFirstRange']();if(_0x5e6af1['length']>0x0){const _0x4b8f99=_0x5e6af1[0x0]['getJoined'](_0x1e48e8);if(_0x4b8f99){_0x5e6af1[0x0]=_0x4b8f99;continue;}}_0x5e6af1['push'](_0x1e48e8);}_0x41c237['push']([_0x5ed68a['view'],_0x5e6af1]);}return _0x41c237;}),this['listenTo'](_0xec48ab,'suggestionLoaded',(_0x49484a,_0x23c0cb)=>{this['listenTo'](_0x23c0cb,'change:previous',(_0x500591,_0x5b0d5e,_0x2aee91,_0x56f13e)=>{_0x23c0cb['isInContent']&&(null==_0x2aee91?(this['_updateController'](_0x56f13e['head']),this['_handleSuggestionControllerDelayed'](_0x23c0cb,!0x1)):(this['_updateController'](_0x2aee91['head']),null==_0x56f13e&&this['_handleSuggestionControllerDelayed'](_0x23c0cb,!0x0)));}),null!==_0x23c0cb['previous']?this['_updateController'](_0x23c0cb['head']):this['_handleSuggestionControllerDelayed'](_0x23c0cb,!0x1);}),this['listenTo'](_0xec48ab,'suggestionUnloaded',(_0x1f205f,_0x5e84d8,_0x16e443)=>{this['stopListening'](_0x5e84d8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5e84d8),this['_suggestionToController']['has'](_0x5e84d8)&&this['_destroyController'](_0x5e84d8),_0x16e443&&this['_updateController'](_0x16e443['head']);}),this['listenTo'](_0xec48ab,'suggestionChanged',(_0x354456,_0x1e362c)=>{this['_updateController'](_0x1e362c);}),this['listenTo'](_0x1cdaf5,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x39ce4a,'addComment',(_0x4dc572,{threadId:_0x156cb2,isFromAdapter:_0x111417})=>{if(_0x111417||!_0xec48ab['hasSuggestion'](_0x156cb2))return;const _0x13b85=_0xec48ab['getSuggestion'](_0x156cb2);this['_suggestionToController']['get'](_0x13b85)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x28143a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c2052;for(const _0x57187d in _0x28143a){const _0x309ce5=_0x57187d,_0x336761=_0x28143a[_0x309ce5];if('trackChangesLicenseKeyValid'==_0x336761||'trackChangesLicenseKeyInvalid'==_0x336761||'trackChangesLicenseKeyExpired'==_0x336761||'trackChangesLicenseKeyDomainLimit'==_0x336761||'trackChangesLicenseKeyNotAllowed'==_0x336761||'trackChangesLicenseKeyEvaluationLimit'==_0x336761||'trackChangesLicenseKeyTrialLimit'==_0x336761||'trackChangesLicenseKeyUsageLimit'==_0x336761){delete _0x28143a[_0x309ce5],_0x2c2052=_0x336761,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2c2052&&_0x28143a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2c2052&&_0x28143a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2c2052&&_0x28143a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2c2052&&_0x28143a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2c2052&&_0x28143a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2c2052&&_0x28143a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2c2052&&_0x28143a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2aa79b){const _0x3a9bce=this['_suggestionToController']['get'](_0x2aa79b);if(!_0x3a9bce)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3a9bce['view'])||null;}['getSuggestionForAnnotation'](_0x36da0f){const _0x9cbbff=this['_viewToController']['get'](_0x36da0f['innerView']);return _0x9cbbff?_0x9cbbff['model']:null;}['_refreshActiveMarkers'](){const _0x52715a=this['editor']['plugins']['get']('Annotations'),_0x520f92=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d70c0=Array['from'](_0x52715a['activeAnnotations'],_0x5d096c=>_0x5d096c['innerView'])['filter'](_0xe201fb=>this['_viewToController']['has'](_0xe201fb)),_0xe04cfb=[];for(const _0x442972 of _0x5d70c0){const _0x10b5c7=this['_viewToController']['get'](_0x442972)['model']['getAllAdjacentSuggestions']();_0xe04cfb['push'](..._0x10b5c7['reduce']((_0x5098db,_0x274368)=>[..._0x5098db,..._0x274368['getMarkerNames']()],[]));}_0x520f92['activeMarkers']=_0xe04cfb;}['_addUIComponentsToFactory'](){const _0x591637=this['editor'],_0x1ee1d7=_0x591637['locale'],_0x198a55=o(_0x1ee1d7,'Track\x20changes'),_0x293821=new _0x49a3a5([{'type':'switchbutton','model':new _0x51ccc6({'withText':!0x0,'isToggleable':!0x0,'label':_0x198a55,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x591637['plugins']['has']('TrackChangesPreview')&&_0x293821['addMany']([{'type':'separator'},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x583ba5 of _0x293821)if(ke(_0x583ba5)){const _0x5ec79c=_0x591637['commands']['get'](_0x583ba5['model']['commandName']);_0x583ba5['model']['bind']('isOn','isEnabled')['to'](_0x5ec79c,'value','isEnabled');}_0x591637['ui']['componentFactory']['add']('trackChanges',_0x2358d9=>this['_createToolbarButton'](_0x2358d9,_0x293821,_0x198a55)),_0x591637['ui']['componentFactory']['add']('menuBar:trackChanges',_0x13731c=>this['_createMenuBarMenu'](_0x13731c,_0x293821,_0x198a55));}['_createToolbarButton'](_0x2fe419,_0x19e7e8,_0x22b65b){const _0x18c9ce=_0x1a7bc1(_0x2fe419,_0x2b4076),_0x516558=this['editor']['commands']['get']('trackChanges');_0x18c9ce['buttonView']['set']({'tooltip':_0x22b65b,'label':_0x22b65b,'icon':_0x549e4c}),_0x18c9ce['buttonView']['bind']('isOn')['to'](_0x516558,'value'),_0x18c9ce['buttonView']['on']('execute',()=>{_0x516558['execute'](),this['editor']['editing']['view']['focus']();}),_0x57c9fb(_0x18c9ce,_0x19e7e8,{'role':'menu'});const _0x477b5d=[];for(const _0x376209 of _0x19e7e8)ke(_0x376209)&&_0x477b5d['push'](this['editor']['commands']['get'](_0x376209['model']['commandName']));const _0x5e388b=_0x18c9ce['buttonView'];return _0x5e388b['actionView']['unbind']('isEnabled'),_0x5e388b['arrowView']['unbind']('isEnabled'),_0x5e388b['actionView']['bind']('isEnabled')['to'](_0x516558,'isEnabled'),_0x5e388b['arrowView']['bind']('isEnabled')['toMany'](_0x477b5d,'isEnabled',(..._0x70b5a7)=>_0x70b5a7['some'](_0x16e18f=>_0x16e18f)),_0x18c9ce['on']('execute',_0x408dd5=>{this['editor']['execute'](_0x408dd5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x18c9ce;}['_createMenuBarMenu'](_0x58282a,_0x379858,_0xc98ffc){const _0x27643f=new _0x2025e3(_0x58282a),_0x2b4d77=this['editor']['commands']['get']('trackChanges');_0x27643f['buttonView']['set']({'label':_0xc98ffc,'icon':_0x549e4c});const _0x8ddbd8=new _0x39e983(_0x58282a);for(const _0x4959c2 of _0x379858){if('separator'==_0x4959c2['type']){_0x8ddbd8['items']['add'](new _0x20cbf3(_0x58282a));continue;}const _0x236427=new _0x4d7d8a(_0x58282a,_0x27643f),_0x44938c=new _0x351920(_0x58282a),_0x4e30c6=_0x4959c2['model'];_0x44938c['bind'](...Object['keys'](_0x4e30c6))['to'](_0x4e30c6),_0x44938c['delegate']('execute')['to'](_0x27643f),_0x44938c['on']('execute',()=>{this['editor']['execute'](_0x4e30c6['commandName']),this['editor']['editing']['view']['focus']();}),_0x236427['children']['add'](_0x44938c),_0x8ddbd8['items']['add'](_0x236427);}return _0x27643f['bind']('isEnabled')['to'](_0x2b4d77,'isEnabled'),_0x27643f['panelView']['children']['add'](_0x8ddbd8),_0x27643f;}['_initializeController'](_0xe04006){const _0x3a20af=this['editor'],_0x4e8e87=_0x3a20af['config'],_0x46b87e=_0x3a20af['plugins']['get']('Annotations'),_0x1b483c=_0x3a20af['plugins']['get']('CommentsRepository'),_0x2d4599=_0x3a20af['plugins']['get']('EditorAnnotations'),_0x54e4fe=_0x3a20af['plugins']['get'](_0x41af33)['me'],_0x2ea5e2=_0x4e8e87['get']('trackChanges')['SuggestionThreadView'],_0x4eea80=_0x4e8e87['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5e0275,CommentThreadInputView:_0x5c945c}=_0x3a20af['plugins']['get']('CommentsUI');let _0x49ed52,_0x666ca7,_0xc50f9;this['_annotationViews']['has'](_0xe04006['id'])?(_0x666ca7=this['_annotationViews']['get'](_0xe04006['id']),_0x49ed52=_0x666ca7['mainView']):(_0x49ed52=new _0x2ea5e2(_0x3a20af['locale'],_0xe04006,_0x54e4fe,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4e8e87['get']('comments.editorConfig'),'licenseKey':_0x4e8e87['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4e8e87['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4e8e87['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4e8e87['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x204812(_0x4e8e87['get']('locale'),_0x3a20af['locale']),'CommentView':_0x4e8e87['get']('comments')['CommentView'],'CommentsListView':_0x5e0275,'CommentThreadInputView':_0x5c945c,'SuggestionView':_0x4eea80}),_0x49ed52['suggestionView']['acceptButton']['on']('execute',()=>{_0x3a20af['editing']['view']['focus']();}),_0x49ed52['suggestionView']['discardButton']['on']('execute',()=>{_0x3a20af['editing']['view']['focus']();}),_0x666ca7=_0x46b87e['createAnnotationView'](this['editor']['locale'],_0x49ed52),_0x666ca7['bind']('isDirty')['to'](_0x49ed52,'isDirty'),_0x666ca7['bind']('length')['to'](_0x49ed52),_0x666ca7['bind']('type')['to'](_0x49ed52,'type',_0x2828dc=>'suggestion-'+_0x2828dc),_0x49ed52['on']('escape',()=>{_0xc50f9['fire']('escape');}),this['_annotationViews']['set'](_0xe04006['id'],_0x666ca7));const _0xbbe4a0=_0x1b483c['createCommentThreadController'](_0xe04006['commentThread'],_0x49ed52),_0x3293d5=new pe(_0x3a20af,_0xe04006,_0x49ed52,_0xbbe4a0),_0x16d5cb=_0xe04006['getAllAdjacentSuggestions']()['filter'](_0x24a523=>_0x24a523['isInContent']);_0x49ed52['descriptionParts']=_0x3a20af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x16d5cb),this['_suggestionToController']['set'](_0xe04006,_0x3293d5),this['_viewToController']['set'](_0x49ed52,_0x3293d5);const _0xa48a3f=()=>{const _0xfec470=[],_0x542c52=_0xe04006['getAllAdjacentSuggestions']()['filter'](_0x36d6ea=>_0x36d6ea['isInContent']);for(const _0x8e968c of _0x542c52)_0xfec470['push'](..._0x8e968c['getMarkers']());return _0x49b990(_0x3a20af['editing'],_0xfec470);};_0xc50f9=_0x46b87e['createAnnotation']({'view':_0x666ca7,'target':_0xa48a3f,'type':()=>'suggestion-'+_0x3293d5['view']['type'],'isVisible':!!_0xa48a3f()}),_0x1b483c['_bindAnnotationToEditors'](_0x49ed52,_0xc50f9),_0x46b87e['add'](_0xc50f9),_0x2d4599['registerAnnotation'](_0xc50f9);}['_destroyController'](_0x56ebbd){const _0x35ba8f=this['editor']['plugins']['get']('CommentsRepository'),_0x45fbbd=this['editor']['plugins']['get']('Annotations'),_0x34e6eb=this['_suggestionToController']['get'](_0x56ebbd),_0x16c436=_0x34e6eb['view'],_0x464d6f=_0x45fbbd['getByInnerView'](_0x16c436);_0x35ba8f['_unbindEditors'](_0x16c436),_0x464d6f&&_0x45fbbd['remove'](_0x464d6f),this['_suggestionToController']['delete'](_0x56ebbd),this['_viewToController']['delete'](_0x16c436),_0x34e6eb['destroy']();}['_updateController'](_0xc61aa8){if(!_0xc61aa8['isInContent']||!this['_suggestionToController']['has'](_0xc61aa8))return;const _0x52e8bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17a270=this['_suggestionToController']['get'](_0xc61aa8),_0x4605dd=_0xc61aa8['getAllAdjacentSuggestions']();_0x17a270['view']['descriptionParts']=_0x52e8bd['descriptionFactory']['getDescriptions'](_0x4605dd);}['destroy'](){for(const _0x1c84ce of this['_suggestionToController']['keys']())this['_destroyController'](_0x1c84ce);for(const _0x1094cf of this['_annotationViews']['values']())_0x1094cf['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xc79cf5){return'model'in _0xc79cf5;}class Fe extends _0xfd4522{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x265461){this['editor']['plugins']['get'](d)['adapter']=_0x265461;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1f5d8f){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1f5d8f);}['getSuggestions']({skipNotAttached:_0x5e5e3c=!0x1,toJSON:_0x4b0144=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5e5e3c,'toJSON':_0x4b0144});}['getSuggestion'](_0xa45c9b){return this['editor']['plugins']['get'](d)['getSuggestion'](_0xa45c9b);}}const p=['Pagination'];class re extends _0xfd4522{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xb315f8=this['editor'];if(_0xb315f8['config']['define']('trackChangesData.editorCreator',_0x13d06b=>{const _0x16d539=_0xb315f8['model']['document']['getRootNames']()['reduce']((_0x38290d,_0x2c1477)=>(_0x38290d[_0x2c1477]='',_0x38290d),{});return _0xb315f8['constructor']['create'](_0x16d539,_0x13d06b);}),'function'!=typeof _0xb315f8['config']['get']('trackChangesData')['editorCreator'])throw new _0x5d208c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x44684e){return P(this['editor'],!0x0,_0x44684e);}['getDataWithDiscardedSuggestions'](_0x4f8bcb){return P(this['editor'],!0x1,_0x4f8bcb);}}class Ge extends _0xfd4522{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x402f8c){function _0x419dcc(_0x37590e){return _0x37590e['map'](_0x12bc54=>String['fromCharCode'](_0x12bc54))['join']('');}super(_0x402f8c),this['result']='end',_0x402f8c[_0x419dcc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x419dcc([0x76,0x69,0x65,0x77])][_0x419dcc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x419dcc([0x61,0x75,0x74,0x6f]),_0x402f8c[_0x419dcc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x419dcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x419dcc([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x419dcc([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x419dcc([0x6f,0x6b])});}['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 He(_0x15ae77){return void 0x0!==_0x15ae77['getRootsAttributes'];}async function P(_0x262b44,_0x430175,_0x1f274b){const _0x8c7a49=_0x518498(_0x262b44,p);_0x8c7a49['plugins']['push'](d,Ge),_0x8c7a49['rootsAttributes']=He(_0x262b44)?_0x262b44['getRootsAttributes']():void 0x0;const _0xd77f13=document['createDocumentFragment'](),_0x1114a9=_0x262b44['config']['get']('trackChangesData')['editorCreator'],_0x57f0f4=await _0x1114a9(_0x8c7a49,()=>function(_0x6c78af){const _0x3a1a41=document['createElement']('div');return _0x6c78af['appendChild'](_0x3a1a41),_0x3a1a41;}(_0xd77f13));!function(_0xced8dd,_0x374de0){const _0x518f0c=_0xced8dd['model']['document']['getRootNames']()['reduce']((_0x10f4f5,_0x3d993b)=>(_0x10f4f5[_0x3d993b]=_0xced8dd['data']['get']({'rootName':_0x3d993b}),_0x10f4f5),{}),_0x5b65ea=_0xced8dd['plugins']['get']('Users')['users']['map'](_0x44ce8b=>({'id':_0x44ce8b['id'],'name':_0x44ce8b['name']})),_0x15733e=_0xced8dd['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x262e7b=_0xced8dd['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xd3003d=_0x374de0['plugins']['get']('Users'),_0x1cebfe=_0x374de0['plugins']['get']('TrackChangesEditing'),_0x1a1dd9=_0x374de0['plugins']['get']('CommentsRepository');for(const _0x419c91 of _0x1a1dd9['getCommentThreads']())_0x419c91['remove']();for(const _0x5e79fb of _0x5b65ea)_0xd3003d['getUser'](_0x5e79fb['id'])||_0xd3003d['addUser'](_0x5e79fb);_0xd3003d['me']||_0xd3003d['useAnonymousUser']();for(const _0x57e186 of _0x262e7b)_0x1a1dd9['addCommentThread'](_0x57e186);for(const _0xae43b0 of _0x15733e)_0x1cebfe['addSuggestionData'](_0xae43b0);_0x374de0['data']['set'](_0x518f0c);}(_0x262b44,_0x57f0f4),_0x57f0f4['execute'](_0x430175?'acceptAllSuggestions':'discardAllSuggestions');const _0x32847d=He(_0x57f0f4)?_0x57f0f4['getFullData'](_0x1f274b):_0x57f0f4['data']['get'](_0x1f274b);return await _0x57f0f4['destroy'](),_0x32847d;}class Me extends _0x237d07{['options'];constructor(_0x4ca29,_0x32f80d){super(_0x4ca29),this['options']=_0x32f80d,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x436724,_0x3cb2ac){if(!this['element'])return;const _0x52e010=[];for(const [_0xaeaffa,_0xb5e0ea]of _0x436724){const _0x2c1d3a=document['createElement']('div');_0x2c1d3a['setAttribute']('data-ck-root-name',_0xaeaffa),_0x2c1d3a['className']=_0xb5e0ea['classes']+'\x20ck-track-changes-preview__root-container',_0x2c1d3a['innerHTML']=_0xb5e0ea['content'],_0x52e010['push'](_0x2c1d3a);}_0x3cb2ac(this['element'],_0x52e010),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x1366e1{constructor(_0x26810a){super(_0x26810a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x17844e=this['editor'],_0xd4583c=_0x17844e['locale'],_0x26d086=_0x17844e['plugins']['get']('Dialog');let _0x37716b;const _0x351a53=function(_0x51bac1){const _0x1b3460={};if('editables'in _0x51bac1['ui']['view']){for(const [_0x4b0f9b,_0x18f329]of Object['entries'](_0x51bac1['ui']['view']['editables']))_0x1b3460[_0x4b0f9b]=_0x18f329['element'];}else _0x1b3460[_0x51bac1['model']['document']['getRootNames']()[0x0]]=_0x51bac1['ui']['view']['editable']['element'];return _0x1b3460;}(_0x17844e),_0x2e73da=function(_0x5ed8e7){let _0x4ca3cc=0x0;for(const _0x1c0c13 of Object['values'](_0x5ed8e7))_0x4ca3cc=Math['max'](_0x4ca3cc,_0x1c0c13['getBoundingClientRect']()['width']);let _0xd73d07=0x0;for(const _0x25ba8f of Object['values'](_0x5ed8e7))_0xd73d07+=_0x25ba8f['getBoundingClientRect']()['height'];const _0x9edf9d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x233106=Math['min'](_0xd73d07,_0x9edf9d);return{'width':_0x4ca3cc,'height':_0x233106};}(_0x351a53);_0x26d086['show']({'id':'finalContentPreview','title':o(_0xd4583c,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xd4583c,{'dialogRects':_0x2e73da}),'onHide':()=>{_0x37716b['detachFromDom']();},'onShow':()=>{_0x17844e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1d15da=>{const _0x53a1aa=this['_standarizeRootsData'](_0x1d15da,_0x17844e,_0x351a53);_0x26d086['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x53a1aa,_0x17844e['config']['get']('trackChanges.preview.renderFunction'));}),_0x37716b=new _0x3f81a3(_0xd4583c,[_0x26d086['view']]),_0x37716b['attachToDom'](),_0x37716b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x17844e['once']('destroy',()=>{_0x37716b['detachFromDom']();});const _0x239b39=_0x26d086['view']['headerView']['class'];_0x26d086['view']['headerView']['class']=_0x239b39?_0x239b39+'\x20ck-reset_all':'ck-reset_all',_0x26d086['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x26d086['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x559a61=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4ae116=_0x559a61['previewMode'],_0x349e4d={};if('$labels'===_0x4ae116){for(const _0x2e9e53 of _0x559a61['getMergeFieldsIds']())_0x349e4d[_0x2e9e53]=_0x559a61['getLabel'](_0x2e9e53)||_0x2e9e53;}else{const _0x46109a='$defaultValues'===_0x4ae116?_0x559a61['getDefaultValues']():_0x559a61['getDataSetValues'](_0x4ae116,!0x0);for(const _0x2ab319 of Object['entries'](_0x46109a)){const [_0x45a786,_0x472b30]=_0x2ab319;_0x349e4d[_0x45a786]=null!==_0x472b30?_0x472b30:_0x559a61['getLabel'](_0x45a786)||_0x45a786;}}return{'mergeFieldsData':_0x349e4d};}['_standarizeRootsData'](_0x3add9f,_0xf0cb5a,_0x3cd084){let _0x3edff5;if('string'==typeof _0x3add9f){const _0x47e880=_0xf0cb5a['model']['document']['getRootNames']()[0x0];_0x3edff5={[_0x47e880]:_0x3add9f};}else _0x3edff5=_0x3add9f;const _0x5583f9=this['_fixMediaEmbeds'](_0x3edff5,_0xf0cb5a),_0x10f0d3=function(_0x15abb0,_0x4998e1){for(const [_0x817542,_0x2378d7]of _0x15abb0)_0x2378d7['classes']=_0x4998e1[_0x817542]['classList']['value']['replace']('ck-focused','');return _0x15abb0;}(this['_sortRoots'](_0xf0cb5a)['reduce']((_0x342d94,_0x3bd123)=>(_0x342d94['push']([_0x3bd123,{'content':_0x5583f9[_0x3bd123],'classes':''}]),_0x342d94),[]),_0x3cd084);return _0x10f0d3;}['_fixMediaEmbeds'](_0x1d258c,_0x33fc77){if(!_0x33fc77['plugins']['has']('MediaEmbedEditing'))return _0x1d258c;const _0x916ca=_0x33fc77['plugins']['get']('MediaEmbedEditing');for(const [_0x573830,_0x451ae5]of Object['entries'](_0x1d258c)){const _0x5e7972=document['createElement']('div');_0x5e7972['innerHTML']=_0x451ae5,(_0x5e7972['querySelectorAll']('figure.media')['forEach'](_0x84925c=>{const _0x2b4844=_0x84925c['querySelector']('oembed');if(_0x2b4844){const _0x283be6=_0x2b4844['getAttribute']('url');if(_0x283be6){const _0x5e24dc=_0x916ca['registry']['getMediaViewElement'](new _0x21e70c(_0x33fc77['editing']['view']['document']),_0x283be6,{'elementName':'','renderForEditingView':!0x0}),_0x108b61=document['createElement']('div');_0x108b61['classList']['add']('ck-media__wrapper'),_0x5e24dc['render'](_0x108b61,_0x33fc77['editing']['view']['domConverter']),_0x2b4844['replaceWith'](_0x108b61);}}}),_0x1d258c[_0x573830]=_0x5e7972['innerHTML']);}return _0x1d258c;}['_sortRoots'](_0x43ea68){if(!function(_0x2cebfd){return void 0x0!==_0x2cebfd['getRootsAttributes'];}(_0x43ea68))return _0x43ea68['model']['document']['getRootNames']();const _0x3ebdfb=[],_0x22c6aa=new Map();for(const _0x2d790a of _0x43ea68['model']['document']['getRootNames']()){const _0x1cfd36=_0x43ea68['editing']['view']['getDomRoot'](_0x2d790a)['getClientRects']()['item'](0x0);_0x3ebdfb['push'](_0x2d790a),_0x22c6aa['set'](_0x2d790a,_0x1cfd36);}return _0x3ebdfb['sort']((_0xf15354,_0x4ccf2b)=>{const _0x26f986=_0x22c6aa['get'](_0xf15354),_0x2547e1=_0x22c6aa['get'](_0x4ccf2b);return _0x26f986['y']-_0x2547e1['y']||_0x26f986['x']-_0x2547e1['x'];}),_0x3ebdfb;}}class $e extends _0xfd4522{static get['requires'](){return[re,_0x5914c5];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46b3df){super(_0x46b3df),_0x46b3df['commands']['add']('previewFinalContent',new te(this['editor'])),_0x46b3df['config']['define']('trackChanges.preview.renderFunction',(_0x24226b,_0x40f45a)=>{for(const _0x392e89 of _0x40f45a)_0x24226b['appendChild'](_0x392e89);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x138b2b,Plugin as _0x281269,PendingActions as _0x30bf07}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5953c2,ObservableMixin as _0x576ce0,uid as _0x3b5d55,priorities as _0x5184a8,insertToPriorityArray as _0x43704e,toArray as _0xe8be38,logWarning as _0x413f14,getEnvKeystrokeText as _0x22f99f,FocusTracker as _0x4212fe,KeystrokeHandler as _0x39a18d,Collection as _0x88426d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x438026,IconCancel as _0x4aa64f,IconTrackChanges as _0x4a3790}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x5e2ef5,View as _0x5349f4,ViewCollection as _0x535993,FocusCycler as _0x52a96d,UIModel as _0x56491c,createDropdown as _0x120c85,SplitButtonView as _0x3f3dc7,addListToDropdown as _0x5148db,MenuBarMenuView as _0xbe66b1,MenuBarMenuListView as _0x24a732,ListSeparatorView as _0x3d3ea2,MenuBarMenuListItemView as _0x37a01d,MenuBarMenuListItemButtonView as _0x416779,BodyCollection as _0x58465b,Dialog as _0x7f4f4b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x261b7d,hashObject as _0x26cfb9,surroundingMarkersDetector as _0x500fe,FOCUS_ANNOTATION_KEYSTROKE as _0x289454,AriaDescriptionView as _0xa2a835,setupThreadKeyboardNavigation as _0x36fb29,trimHtml as _0x788e8f,UserView as _0x42ff3e,LateFocusButtonView as _0x49a255,getDateTimeFormatter as _0x1d97fe,getAllMarkersDomElementsSorted as _0x491fb2,sanitizeEditorConfig as _0x4854ec}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x37587a,ModelLiveRange as _0x39990b,ModelLivePosition as _0x5177ee,ViewDowncastWriter as _0x106eac}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2168c1,toWidget as _0x1b5076}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x13acd2,set as _0x3cf6c4,isEqual as _0x34bf70,unset as _0x2a7eef,omit as Ut}from'es-toolkit/compat';import{Delete as _0x39ed3f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1c2114}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2e28c3}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x138b2b{['_enabledCommands'];constructor(_0x5215ed,_0x4bd480){super(_0x5215ed),this['_enabledCommands']=_0x4bd480,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 _0x228830 of this['editor']['commands']['commands']())_0x228830['affectsData']&&!this['_enabledCommands']['has'](_0x228830)&&_0x228830['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4f5889 of this['editor']['commands']['commands']())_0x4f5889['affectsData']&&!this['_enabledCommands']['has'](_0x4f5889)&&_0x4f5889['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x138b2b{['_suggestions'];constructor(_0x33e3d6,_0x4b7f28){super(_0x33e3d6),this['_suggestions']=_0x4b7f28,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5069de){const _0x156eee=this['_suggestions']['get'](_0x5069de);if(!_0x156eee)throw new _0x5953c2('track-changes-accept-suggestion-not-found',this);const _0x5a59ae=_0x156eee['getRanges']();this['editor']['model']['canEditAt'](_0x5a59ae)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x156eee);}}class $ extends _0x138b2b{['_suggestions'];constructor(_0xee6bb1,_0x794930){super(_0xee6bb1),this['_suggestions']=_0x794930,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3b9d7e){const _0x3064d9=this['_suggestions']['get'](_0x3b9d7e);if(!_0x3064d9)throw new _0x5953c2('track-changes-discard-suggestion-not-found',this);const _0x4dc0f9=_0x3064d9['getRanges']();this['editor']['model']['canEditAt'](_0x4dc0f9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3064d9);}}function ls(_0x586176,_0x3966df){let _0x2a52d4='';return _0x2a52d4+=_0x586176['split']('*')['map']((_0x18f122,_0x46fba3)=>_0x46fba3%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x18f122)+'</span>':Zt(_0x18f122))['join'](''),_0x3966df&&(_0x2a52d4+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3966df['value']+'\x22\x20title=\x22'+_0x3966df['title']+'\x22></span>'),_0x2a52d4;}function Zt(_0x45d96a){const _0x286fe2=document['createElement']('span');return _0x286fe2['innerText']=_0x45d96a,_0x286fe2['innerHTML'];}function ts(_0x34fe51){return _0x34fe51['sort']((_0xf57c82,_0xaa6226)=>'attribute'===_0xf57c82['type']&&'attribute'!==_0xaa6226['type']?-0x1:'attribute'!==_0xf57c82['type']&&'attribute'===_0xaa6226['type']?0x1:'deletion'==_0xf57c82['type']&&'deletion'!=_0xaa6226['type']?-0x1:'deletion'!=_0xf57c82['type']&&'deletion'==_0xaa6226['type']?0x1:0x0);}function to(_0x3b4ca7,_0x1a18db){let _0x2a599f,_0x188d2a=0x0;const _0x48bab9=[],_0x191312=_0x1a18db['schema'];for(;_0x188d2a<_0x3b4ca7['length'];){const _0x144a45=_0x3b4ca7[_0x188d2a],_0x5eb8de=_0x3b4ca7[_0x188d2a+0x1];_0x2a599f||(_0x2a599f=_0x1a18db['createPositionBefore'](_0x144a45)),tn(_0x1a18db,_0x144a45,_0x5eb8de)||(_0x48bab9['push'](_0x1a18db['createRange'](_0x2a599f,_0x191312['isObject'](_0x144a45)?_0x1a18db['createPositionAfter'](_0x144a45):_0x1a18db['createPositionAt'](_0x144a45,'end'))),_0x2a599f=null),_0x188d2a++;}return _0x48bab9;}function tn(_0x3bc6b4,_0x3d7820,_0x380962){if(!_0x380962)return!0x1;const _0x217950=_0x3bc6b4['createPositionAfter'](_0x3d7820),_0x17e024=_0x3bc6b4['createPositionBefore'](_0x380962);return _0x217950['isTouching'](_0x17e024);}function rs(_0xd4fb2f,_0x3ff723,_0x116838){for(;_0x116838['length'];){const _0x3dafae=_0x116838['splice'](0x0,0x64);_0xd4fb2f['change'](()=>{for(const _0x55affe of _0x3dafae)_0x55affe['isInContent']&&_0x3ff723['execute'](_0x55affe['id']);});}}class M extends _0x138b2b{['_command'];['_suggestions'];constructor(_0x37c917,_0x451827,_0x2b4e85){super(_0x37c917),this['_command']=_0x451827,this['_suggestions']=_0x2b4e85,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2c7405=Array['from'](this['_suggestions']['values']())['some'](_0xe85a16=>_0xe85a16['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2c7405;}['execute'](){const _0x3606b9=ts(Array['from'](this['_suggestions']['values']()));for(const _0x73f974 of _0x3606b9){const _0x92baf7=_0x73f974['getRanges']();if(!this['editor']['model']['canEditAt'](_0x92baf7))return;}rs(this['editor']['model'],this['_command'],_0x3606b9);}}class B extends _0x138b2b{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x463d9d,_0x38d767,_0x59cdab){super(_0x463d9d),this['_command']=_0x38d767,this['_suggestions']=_0x59cdab,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xa89b09=this['editor']['model']['document']['selection'],_0xe6985=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x19bb90,_0x34abc6){const _0x1f5baf=Array['from'](_0x19bb90['getRanges']()),_0x30456f=new Set();for(const _0x38a92a of _0x34abc6)if(_0x38a92a['isInContent']){for(const _0x43e7b1 of _0x1f5baf)for(const _0x544745 of _0x38a92a['getRanges']())(_0x43e7b1['isIntersecting'](_0x544745)||_0x19bb90['isCollapsed']&&!_0x38a92a['isMultiRange']&&_0x38a92a['next']&&_0x544745['end']['isTouching'](_0x43e7b1['start']))&&_0x30456f['add'](_0x38a92a);}return _0x30456f;}(_0xa89b09,_0xe6985),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x207279=ts(Array['from'](this['_selectedSuggestions']));for(const _0x45ac85 of _0x207279){const _0x3787f7=_0x45ac85['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3787f7))return;}rs(this['editor']['model'],this['_command'],_0x207279);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x576ce0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x7fea54,_0xe39a81){super(),this['id']=_0xe39a81['id'],this['type']=_0xe39a81['type'],this['subType']=_0xe39a81['subType']||null,this['author']=_0xe39a81['author'],this['creator']=_0xe39a81['creator']||_0xe39a81['author'],this['isExternal']=Boolean(_0xe39a81['attributes']&&_0xe39a81['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xe39a81['originalSuggestionId']||null,this['_model']=_0x7fea54,this['_onAccept']=_0xe39a81['onAccept'],this['_onDiscard']=_0xe39a81['onDiscard'],this['_onAttributesChange']=_0xe39a81['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xe39a81['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 _0x457b35=this;for(;_0x457b35['previous'];)_0x457b35=_0x457b35['previous'];return _0x457b35;}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'](_0x5a4150){this['_markerNames']['add'](_0x5a4150);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x39bc68=>this['_model']['markers']['get'](_0x39bc68))['filter'](_0x1df0ac=>_0x1df0ac);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x43e22a=>{for(const _0x28e5d0 of this['getMarkers']())_0x43e22a['removeMarker'](_0x28e5d0);}),this['_markerNames']['clear']();}['removeMarker'](_0x58ddf7){this['_model']['change'](_0x23c6f7=>{_0x23c6f7['removeMarker'](_0x58ddf7);}),this['_markerNames']['delete'](_0x58ddf7);}['addRange'](_0x22a55e){const _0x239ca9='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x239ca9),this['_model']['change'](_0xb493a5=>{_0xb493a5['addMarker'](_0x239ca9,{'range':_0x22a55e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x472d8d){for(const _0x1ba936 of this['getRanges']())if(_0x1ba936['isIntersecting'](_0x472d8d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x46b777=>_0x46b777['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x439346,_0x4a6fae)=>[..._0x439346,..._0x4a6fae['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3be9e3=this['getRanges']();if(0x1!=_0x3be9e3['length'])return null;const _0x4763bb=_0x3be9e3[0x0],_0x276468=_0x4763bb['start']['nodeAfter'],_0x48a661=_0x4763bb['end']['nodeBefore'];return _0x276468 instanceof _0x37587a?_0x276468!=_0x48a661?null:_0x276468: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 _0xeb8c3f=[];let _0x1aed28=this['head'];for(;_0x1aed28;)_0xeb8c3f['push'](_0x1aed28),_0x1aed28=_0x1aed28['next'];return _0xeb8c3f;}['setAttribute'](_0x58dfc7,_0xf9d80a){const _0x240cc1=_0x13acd2(this['attributes']);_0x3cf6c4(_0x240cc1,_0x58dfc7,_0xf9d80a),_0x34bf70(_0x240cc1,this['attributes'])||(this['attributes']=_0x240cc1,this['_onAttributesChange'](_0x240cc1));}['removeAttribute'](_0x2c16e7){const _0x32eeec=_0x13acd2(this['attributes']);_0x2a7eef(_0x32eeec,_0x2c16e7),_0x34bf70(_0x32eeec,this['attributes'])||(this['attributes']=_0x32eeec,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 _0x3b5d55()['substr'](0x1,0x5);}}function o(_0x544657,_0x480fb3,_0x548d82){const _0x51f4de=_0x544657['t'],t=_0x544657['t'];switch(_0x480fb3){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x548d82);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x548d82);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x548d82);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x548d82);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x548d82);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',_0x548d82);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x548d82);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x548d82);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x548d82);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x548d82);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x548d82);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x548d82);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x548d82);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x548d82);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x548d82);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x548d82);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x548d82);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x548d82);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x548d82);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x548d82);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x548d82);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x548d82);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x548d82);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x548d82);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x548d82);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'},_0x548d82);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x548d82);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x548d82);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x548d82);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x548d82);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x548d82);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x548d82);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x548d82);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'},_0x548d82);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x548d82);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x548d82);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x548d82);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x548d82);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'},_0x548d82);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x548d82);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'},_0x548d82);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x548d82);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x548d82);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'},_0x548d82);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x548d82);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'},_0x548d82);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x548d82);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x548d82);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'},_0x548d82);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x548d82);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 _0x51f4de({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x548d82);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x51f4de({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x548d82);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x548d82);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'},_0x548d82);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'},_0x548d82);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'},_0x548d82);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x480fb3;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4704b9,_0x4a80a8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4704b9,this['_locale']=_0x4a80a8;}['getDescriptions'](_0xdcc70f){const _0x452dd4=[],_0x3d2df9=new Set(),_0xf58587=new Set();for(let _0x1f4e6b=0x0;_0x1f4e6b<_0xdcc70f['length'];_0x1f4e6b++){const _0x476858=_0xdcc70f[_0x1f4e6b];if(!_0x476858['isInContent'])continue;const _0xe18348=this['_handleCustomCallbackDescription'](_0x476858);if(_0xe18348){if(null!=_0x476858['subType']){if(_0x3d2df9['has'](_0x476858['subType']))continue;_0x3d2df9['add'](_0x476858['subType']);}_0x452dd4['push'](_0xe18348);}else{if('attribute'==_0x476858['type']){const _0x326cac=_0x476858['data']['key'];if(_0xf58587['has'](_0x326cac))continue;_0xf58587['add'](_0x476858['data']['key']),_0x326cac==m?this['_handleRenameSuggestionDescription'](_0x452dd4,_0x476858):this['_handleAttributeSuggestionDescription'](_0x452dd4,_0x476858);continue;}'insertion'!=_0x476858['type']&&'deletion'!=_0x476858['type']||this['_handleInsertRemoveSuggestionDescription'](_0x452dd4,_0x476858,_0xdcc70f[_0x1f4e6b+0x1]);}}return this['_resolveDescriptionItems'](_0x452dd4);}['registerDescriptionCallback'](_0x303152){this['_customCallbacks']['push'](_0x303152);}['registerElementLabel'](_0x2d0a9b,_0x595be0,_0xc6bed8=_0x5184a8['normal']){'function'==typeof _0x2d0a9b?_0x43704e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2d0a9b,'label':_0x595be0,'priority':_0xc6bed8}):this['_itemLabels']['set'](_0x2d0a9b,_0x595be0);}['registerAttributeLabel'](_0x2593ce,_0x2394cb){this['_attributeLabels']['set'](_0x2593ce,_0x2394cb);}['getItemLabel'](_0x50e1c8,_0x5af112=0x1){let _0x24bd10;for(const _0x4506a3 of this['_itemLabelsCallbacks'])if(_0x4506a3['matchingCallback'](_0x50e1c8)){_0x24bd10=_0x4506a3['label'];break;}return _0x24bd10||(_0x24bd10=this['_itemLabels']['get'](_0x50e1c8['name'])),_0x24bd10?_0x24bd10(_0x5af112):0x1!==_0x5af112?_0x5af112+'\x20'+_0x50e1c8['name']+'s':''+_0x50e1c8['name'];}['_addDescriptionItems'](_0x84062f,_0x45b245){const _0x26b069=_0x45b245['getFirstRange']()['getWalker'](),_0x338477='insertion'==_0x45b245['type']?'add':'remove';for(const _0x4f292e of _0x26b069){const _0x43815b=_0x4f292e['item'],_0xd8f0d=_0x84062f[_0x84062f['length']-0x1];if(_0x43815b['is']('$textProxy'))_0xd8f0d&&_0xd8f0d['type']['indexOf']('Container')>-0x1&&_0x84062f['pop'](),_0xd8f0d&&'text'==_0xd8f0d['type']?_0xd8f0d[_0x338477]+=_0x43815b['data']:_0x84062f['push']({'type':'text','add':'add'==_0x338477?_0x43815b['data']:'','remove':'remove'==_0x338477?_0x43815b['data']:''});else{if(this['_schema']['isObject'](_0x43815b)){const _0x3d6b74=_0x43815b;if(_0xd8f0d&&_0xd8f0d['type']['indexOf']('Container')>-0x1&&_0x84062f['pop'](),'elementEnd'==_0x4f292e['type'])continue;_0xd8f0d&&_0xd8f0d['type']==_0x338477+'Object'&&_0xd8f0d['element']['name']==_0x3d6b74['name']?_0xd8f0d['quantity']++:_0x84062f['push']({'type':_0x338477+'Object','element':_0x3d6b74,'quantity':0x1}),_0x26b069['skip'](_0x24351a=>!('elementEnd'==_0x24351a['type']&&_0x24351a['item']==_0x43815b));}else{if(this['_schema']['checkChild'](_0x43815b,'$text')||_0x43815b['is']('element','softBreak')){const _0x4fd619=_0x43815b;if('add'==_0x338477&&'elementStart'==_0x4f292e['type']||'remove'==_0x338477&&'elementEnd'==_0x4f292e['type'])continue;if(_0xd8f0d&&-0x1==_0xd8f0d['type']['indexOf']('Container')){'text'==_0xd8f0d['type']&&(_0xd8f0d[_0x338477]+='\x0a');continue;}let _0x2e0b0e;if(_0x2e0b0e='add'==_0x338477?_0x4fd619['nextSibling']&&!this['_schema']['isObject'](_0x4fd619['nextSibling'])?_0x4fd619['nextSibling']:null:_0x4fd619['previousSibling']&&!this['_schema']['isObject'](_0x4fd619['previousSibling'])?_0x4fd619['previousSibling']:null,_0x4fd619['isEmpty']||_0x2e0b0e&&_0x2e0b0e['isEmpty']){const _0x4e53e9=_0x2e0b0e&&_0x2e0b0e['isEmpty']?_0x2e0b0e:_0x4fd619;_0xd8f0d&&_0xd8f0d['type']==_0x338477+'EmptyContainer'&&_0xd8f0d['element']['name']==_0x4e53e9['name']?_0xd8f0d['quantity']++:_0x84062f['push']({'type':_0x338477+'EmptyContainer','element':_0x4e53e9,'quantity':0x1});}else _0x84062f['push']({'type':_0x338477+'Container','element':_0x4fd619});}}}}}['_resolveDescriptionItems'](_0x1422d7){const _0x48f217=this['_locale'],_0x3a20f7=[],_0x15a62c=[],_0x584b5f=[];for(const _0x3ee5de of _0x1422d7)switch(_0x3ee5de['type']){case'text':if(_0x3ee5de['add']=_0x3ee5de['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3ee5de['remove']=_0x3ee5de['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3ee5de['add']&&''!=_0x3ee5de['remove']){_0x3a20f7['push']({'type':'replace','content':o(_0x48f217,'REPLACE_TEXT',['\x22'+_0x3ee5de['remove']+'\x22','\x22'+_0x3ee5de['add']+'\x22'])});continue;}if(null!=_0x3ee5de['add']['match'](/^ +$/)){_0x3a20f7['push']({'type':'insertion','content':o(_0x48f217,'*Insert:*\x20%0',o(_0x48f217,'ELEMENT_SPACE',_0x3ee5de['add']['length']))});continue;}if(null!=_0x3ee5de['remove']['match'](/^ +$/)){_0x3a20f7['push']({'type':'deletion','content':o(_0x48f217,'*Remove:*\x20%0',o(_0x48f217,'ELEMENT_SPACE',_0x3ee5de['remove']['length']))});continue;}if(''!=_0x3ee5de['add']){_0x3a20f7['push']({'type':'insertion','content':o(_0x48f217,'*Insert:*\x20%0','\x22'+_0x3ee5de['add']+'\x22')});continue;}_0x3a20f7['push']({'type':'deletion','content':o(_0x48f217,'*Remove:*\x20%0','\x22'+_0x3ee5de['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3a20f7['push']({'type':'insertion','content':o(_0x48f217,'*Insert:*\x20%0',this['getItemLabel'](_0x3ee5de['element'],_0x3ee5de['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3a20f7['push']({'type':'deletion','content':o(_0x48f217,'*Remove:*\x20%0',this['getItemLabel'](_0x3ee5de['element'],_0x3ee5de['quantity']))});continue;case'addContainer':_0x3a20f7['push']({'type':'insertion','content':o(_0x48f217,'*Split:*\x20%0',this['getItemLabel'](_0x3ee5de['element'],_0x3ee5de['quantity']))});continue;case'removeContainer':_0x3a20f7['push']({'type':'deletion','content':o(_0x48f217,'*Merge:*\x20%0',this['getItemLabel'](_0x3ee5de['element'],_0x3ee5de['quantity']))});continue;case'addFormat':_0x15a62c['push'](_0x3ee5de['key']);continue;case'removeFormat':_0x584b5f['push'](_0x3ee5de['key']);continue;default:_0x3a20f7['push'](_0x3ee5de);}if(_0x15a62c['length']){const _0x165fdb=_0x15a62c['map'](_0x261cb3=>this['_attributeLabels']['has'](_0x261cb3)?this['_attributeLabels']['get'](_0x261cb3):_0x261cb3)['join'](',\x20');_0x3a20f7['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x165fdb)});}if(_0x584b5f['length']){const _0x547977=_0x584b5f['map'](_0x5197db=>this['_attributeLabels']['has'](_0x5197db)?this['_attributeLabels']['get'](_0x5197db):_0x5197db)['join'](',\x20');_0x3a20f7['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x547977)});}return _0x3a20f7;}['_handleCustomCallbackDescription'](_0x30def8){for(const _0x5e8154 of this['_customCallbacks']){const _0x20f5ab=_0x5e8154(_0x30def8);if(_0x20f5ab&&'type'in _0x20f5ab)return _0x20f5ab;}}['_handleAttributeSuggestionDescription'](_0x2bc5d1,_0x493a91){const _0x214095=_0x493a91['data'],_0x2c18a4=void 0x0===_0x214095['newValue']?'removeFormat':'addFormat';_0x2bc5d1['push']({'type':_0x2c18a4,'key':_0x214095['key']});}['_handleRenameSuggestionDescription'](_0x567f2c,_0x562040){_0x567f2c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x562040['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3ff297,_0x4b0859,_0x48fbd4){if(this['_addDescriptionItems'](_0x3ff297,_0x4b0859),_0x48fbd4&&_0x48fbd4['getFirstRange']()&&!_0x4b0859['getFirstRange']()['end']['isEqual'](_0x48fbd4['getFirstRange']()['start'])){const _0x4d0b64=_0x3ff297[_0x3ff297['length']-0x1],_0x3f1c3b='insertion'==_0x4b0859['type']?'add':'remove';_0x4d0b64&&'text'==_0x4d0b64['type']&&(_0x4d0b64[_0x3f1c3b]+='\x0a');}}}class O extends _0x281269{['afterInit'](){const _0x5db09a=this['editor'],_0x14cec7=_0x5db09a['plugins']['get']('TrackChangesEditing');_0x5db09a['commands']['get']('showAIAssistant')&&_0x14cec7['enableCommand']('showAIAssistant');}}class E extends _0x281269{['afterInit'](){const _0x53b68a=this['editor'],_0x38fbf7=_0x53b68a['locale'];if(!_0x53b68a['plugins']['has']('AlignmentEditing'))return;const _0x2d7b66=_0x53b68a['plugins']['get']('TrackChangesEditing');_0x2d7b66['enableDefaultAttributesIntegration']('alignment'),_0x2d7b66['registerBlockAttribute']('alignment'),_0x2d7b66['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x38fbf7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa75e60=this['editor'],_0x5a198e=_0xa75e60['locale'];_0xa75e60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dce8c=>{if('formatBlock'!=_0x5dce8c['type'])return;const {data:_0x42e2c7}=_0x5dce8c;if(_0x42e2c7&&'alignment'==_0x42e2c7['commandName']){const _0x5aecdf=_0x42e2c7['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5a198e,'*Format:*\x20%0',function(_0x34f192){switch(_0x34f192){case'left':return o(_0x5a198e,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5a198e,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5a198e,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5a198e,'FORMAT_JUSTIFY_TEXT');}}(_0x5aecdf))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x281269{['afterInit'](){const _0x3b1357=this['editor'],_0x54e3ec=_0x3b1357['plugins']['get']('TrackChangesEditing'),_0x4a26b9=_0x3b1357['locale'];for(const _0xc473f2 of ti){if(!_0x3b1357['plugins']['has'](_0xc473f2))continue;const _0x571f3c=_0xc473f2['slice'](0x0,-0x7)['toLowerCase'](),_0x2ab879='FORMAT_'+_0x571f3c['toUpperCase']();_0x54e3ec['enableDefaultAttributesIntegration'](_0x571f3c),_0x54e3ec['registerInlineAttribute'](_0x571f3c),_0x54e3ec['descriptionFactory']['registerAttributeLabel'](_0x571f3c,o(_0x4a26b9,_0x2ab879));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f4d34=this['editor'],_0x1d2d64=_0x4f4d34['locale'],_0x591dd2=_0x4f4d34['plugins']['get']('TrackChangesEditing');function _0xfcfe4e(_0x252c17,_0xb282a4){_0x591dd2['descriptionFactory']['registerDescriptionCallback'](_0x5436d0=>{if('formatInline'!=_0x5436d0['type'])return;const {data:_0x530113}=_0x5436d0;return _0x530113&&_0x530113['commandName']===_0x252c17?_0x530113['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1d2d64,'*Format:*\x20%0',_0xb282a4)}:{'type':'format','content':o(_0x1d2d64,'*Remove\x20format:*\x20%0',_0xb282a4)}:void 0x0;});}_0xfcfe4e('bold',o(_0x1d2d64,'FORMAT_BOLD')),_0xfcfe4e('italic',o(_0x1d2d64,'FORMAT_ITALIC')),_0xfcfe4e('underline',o(_0x1d2d64,'FORMAT_UNDERLINE')),_0xfcfe4e('code',o(_0x1d2d64,'FORMAT_CODE')),_0xfcfe4e('strikethrough',o(_0x1d2d64,'FORMAT_STRIKETHROUGH')),_0xfcfe4e('subscript',o(_0x1d2d64,'FORMAT_SUBSCRIPT')),_0xfcfe4e('superscript',o(_0x1d2d64,'FORMAT_SUPERSCRIPT'));}}class U extends _0x281269{['afterInit'](){const _0x55477a=this['editor'],_0x5157c5=_0x55477a['locale'];if(!_0x55477a['plugins']['has']('BlockQuoteEditing'))return;const _0x32ed44=_0x55477a['plugins']['get']('TrackChangesEditing'),_0x3ad2ca=this['editor']['commands']['get']('blockQuote');_0x32ed44['enableCommand']('blockQuote',(_0x3c51ce,_0x53b1c3={})=>{const _0x586647=this['editor']['model']['document']['selection'],_0x2a1a43=_0x53b1c3&&void 0x0!==_0x53b1c3['forceValue']?_0x53b1c3['forceValue']:!_0x3ad2ca['value'];let _0x2a9541=[];if(_0x2a1a43){const _0x19133f=Array['from'](_0x586647['getSelectedBlocks']())['filter'](_0x2922a0=>oo(_0x2922a0)||function(_0x26d1b1,_0x3dda16){const _0x23d2a7=_0x3dda16['checkChild'](_0x26d1b1['parent'],'blockQuote'),_0x5ba7d6=_0x3dda16['checkChild'](['$root','blockQuote'],_0x26d1b1);return _0x23d2a7&&_0x5ba7d6;}(_0x2922a0,this['editor']['model']['schema']));_0x2a9541=to(_0x19133f,_0x55477a['model']);}else{const _0x2d38db=Array['from'](_0x586647['getSelectedBlocks']())['filter'](_0xa69e48=>oo(_0xa69e48));_0x2a9541=to(_0x2d38db,_0x55477a['model']);}_0x55477a['model']['change'](()=>{for(const _0x594bcc of _0x2a9541)_0x32ed44['markBlockFormat'](_0x594bcc,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2a1a43}]});});}),_0x32ed44['descriptionFactory']['registerDescriptionCallback'](_0x1727a1=>{const {data:_0x31c923}=_0x1727a1;if(_0x31c923&&'blockQuote'==_0x31c923['commandName']){const _0x46715b=o(_0x5157c5,'ELEMENT_BLOCK_QUOTE');return _0x31c923['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5157c5,'*Set\x20format:*\x20%0',_0x46715b)}:{'type':'format','content':o(_0x5157c5,'*Remove\x20format:*\x20%0',_0x46715b)};}});}}function oo(_0x1dfdd0){return'blockQuote'==_0x1dfdd0['parent']['name'];}class V extends _0x281269{['afterInit'](){const _0x57b4f8=this['editor'],_0x1e5be4=_0x57b4f8['locale'],_0x230784=_0x57b4f8['plugins']['get']('TrackChangesEditing');_0x57b4f8['plugins']['has']('BookmarkEditing')&&(_0x230784['enableCommand']('insertBookmark'),_0x230784['enableDefaultAttributesIntegration']('updateBookmark'),_0x230784['registerBlockAttribute']('bookmarkId'),_0x230784['descriptionFactory']['registerDescriptionCallback'](_0x5dc5c6=>{if('insertion'!=_0x5dc5c6['type']&&'deletion'!=_0x5dc5c6['type']&&'attribute'!=_0x5dc5c6['type'])return;const _0x2736fb=_0x5dc5c6['getContainedElement']();if(null==_0x2736fb)return;if(!_0x2736fb['is']('element','bookmark'))return;const _0x19c428=_0x2736fb['getAttribute']('bookmarkId');if('insertion'==_0x5dc5c6['type'])return{'type':'insertion','content':o(_0x1e5be4,'*Insert:*\x20%0','\x22'+_0x19c428+'\x22\x20'+o(_0x1e5be4,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5dc5c6['type'])return{'type':'deletion','content':o(_0x1e5be4,'*Remove:*\x20%0','\x22'+_0x19c428+'\x22\x20'+o(_0x1e5be4,'ELEMENT_BOOKMARK'))};const {data:_0x4d1f4e}=_0x5dc5c6;if(!_0x4d1f4e||'bookmarkId'!=_0x4d1f4e['key'])return;return{'type':'format','content':o(_0x1e5be4,'*Set\x20bookmark:*\x20%0','\x22'+_0x4d1f4e['newValue']+'\x22')};}));}}class F extends _0x281269{['afterInit'](){const _0x200b3a=this['editor'];_0x200b3a['plugins']['has']('CaseChange')&&(_0x200b3a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x200b3a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x200b3a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x281269{['afterInit'](){const _0x39848f=this['editor'];_0x39848f['commands']['get']('ckbox')&&_0x39848f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x281269{['afterInit'](){const _0x55b001=this['editor'];if(!_0x55b001['plugins']['has']('CodeBlock'))return;const _0x795076=_0x55b001['plugins']['get']('TrackChangesEditing'),_0x125c8d=_0x55b001['locale'],_0x1ee560=_0x55b001['config']['get']('codeBlock')['languages'],_0x3b9603=_0x55b001['commands']['get']('codeBlock');_0x795076['enableCommand']('indentCodeBlock'),_0x795076['enableCommand']('outdentCodeBlock'),_0x795076['enableCommand']('codeBlock',(_0x3c2435,_0x3f0806={})=>{const _0x4efe93=_0x55b001['model'],_0x1755d4=_0x55b001['model']['document']['selection'],_0x568f46=_0x3f0806&&void 0x0!==_0x3f0806['forceValue']?_0x3f0806['forceValue']:!_0x3b9603['value'];let _0x4e3071;_0x3f0806['language']||(_0x3f0806['language']=_0x1ee560[0x0]['language']),_0x4e3071=_0x568f46?Array['from'](_0x1755d4['getSelectedBlocks']())['filter'](_0x5ebe04=>co(_0x5ebe04)||function(_0x1ebe20,_0x208795){if(_0x1ebe20['is']('rootElement')||_0x208795['isLimit'](_0x1ebe20))return!0x1;return _0x208795['checkChild'](_0x1ebe20['parent'],'codeBlock');}(_0x5ebe04,_0x4efe93['schema'])):Array['from'](_0x1755d4['getSelectedBlocks']())['filter'](_0x4377c9=>co(_0x4377c9));const _0x385706=to(_0x4e3071,_0x4efe93);_0x4efe93['change'](()=>{for(const _0x4cabe6 of _0x385706)_0x795076['markBlockFormat'](_0x4cabe6,{'commandName':'codeBlock','commandParams':[{..._0x3f0806,'forceValue':_0x568f46}],'formatGroupId':'blockName'});});}),(_0x795076['descriptionFactory']['registerElementLabel']('codeBlock',_0x3e914e=>o(_0x125c8d,'ELEMENT_CODE_BLOCK',_0x3e914e)),_0x795076['descriptionFactory']['registerDescriptionCallback'](_0x4b9a3c=>{if('formatBlock'!=_0x4b9a3c['type'])return;const _0x2199e4=_0x125c8d['t'],{data:_0x379419}=_0x4b9a3c;if(!_0x379419||'codeBlock'!=_0x379419['commandName'])return;const _0x457fac=_0x379419['commandParams'][0x0]['language'],_0x36303e=_0x2199e4(_0x1ee560['find'](_0x30037d=>_0x30037d['language']===_0x457fac)['label'])['toLowerCase']();return _0x379419['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x125c8d,'*Set\x20format:*\x20%0',o(_0x125c8d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x36303e+')')}:{'type':'format','content':o(_0x125c8d,'*Remove\x20format:*\x20%0',o(_0x125c8d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1a90a7){return'codeBlock'==_0x1a90a7['name'];}class J extends _0x281269{['afterInit'](){const _0x1f4f41=this['editor'];if(!_0x1f4f41['plugins']['has']('CommentsEditing'))return;_0x1f4f41['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x57a7df,_0x5ab375,_0x2fe74c){const _0x92969f=[];for(const _0x53a535 of _0x5ab375['getItems']())_0x53a535['hasAttribute'](_0x57a7df)&&_0x92969f['push'](_0x2fe74c['createRangeOn'](_0x53a535));return _0x92969f;}function De(_0x3768c4,_0xb03457,{showActiveMarker:_0x373202=!0x0}={}){const _0x2e5231=_0x3768c4['plugins']['get']('TrackChangesEditing');return(_0x2c1d0c,_0x47122d,_0x18945b)=>{if(!_0x18945b['consumable']['test'](_0x47122d['markerRange'],_0x2c1d0c['name']))return;const _0x451ee9=_0x47122d['markerRange']['getWalker'](),_0x4d45d3=_0x47122d['markerRange']['start'],_0x18988e=_0x3768c4['model']['schema'];let _0x2c2af5=null,_0x50c669=null,_0x29bc69=!0x1,_0x4dcc55=!0x1;for(const _0x5b2d1b of _0x451ee9){const _0x3398c6=_0x5b2d1b['item'];_0x29bc69=_0x29bc69||_0x18988e['isContent'](_0x3398c6);const _0x16bd98=_0x18945b['mapper']['toViewElement'](_0x3398c6);if(_0x16bd98&&_0x16bd98['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5b2d1b['type']&&(_0x18988e['isBlock'](_0x3398c6)&&!_0x18988e['isLimit'](_0x3398c6)&&(_0x3398c6['nextSibling']||_0x4d45d3['isAtEnd']?_0x2c2af5&&_0x2c2af5['parent']==_0x3398c6||(_0x2c2af5=_0x3398c6,_0x3ea63f(_0x5b2d1b['previousPosition']),_0x4dcc55=!0x0):_0x50c669=_0x50c669||_0x5b2d1b['previousPosition']));}function _0x3ea63f(_0x2e9f9d){const {id:_0x24cf3,authorId:_0x5c88bb}=_0x2e5231['_splitMarkerName'](_0x47122d['markerName']),_0x5d2856=_0x18945b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb03457,'data-suggestion':_0x24cf3,'data-author-id':_0x5c88bb}),_0x45ac91=_0x18945b['mapper']['toViewPosition'](_0x2e9f9d);_0x373202&&_0x2e5231['activeMarkers']['includes'](_0x47122d['markerName'])&&_0x18945b['writer']['addClass']('ck-suggestion-marker--active',_0x5d2856),_0x18945b['writer']['insert'](_0x45ac91,_0x5d2856),_0x18945b['mapper']['bindElementToMarker'](_0x5d2856,_0x47122d['markerName']);}_0x29bc69||_0x4dcc55||!_0x50c669||_0x3ea63f(_0x50c669);};}class K extends _0x281269{static get['requires'](){return[_0x39ed3f];}['init'](){const _0x480ddc=this['editor'],_0x5f1188=_0x480ddc['plugins']['get']('TrackChangesEditing');_0x5f1188['enableCommand']('delete');const _0x208308=_0x480ddc['commands']['get']('deleteForward');_0x5f1188['enableCommand']('deleteForward',(_0xc05343,_0x48f079={})=>{const _0x3bd41e=_0x480ddc['model']['createSelection'](_0x480ddc['model']['document']['selection']);_0x3bd41e['isCollapsed']&&_0x480ddc['model']['modifySelection'](_0x3bd41e,{'direction':'forward','unit':_0x48f079['unit']});const _0x3aa4cb=_0x3bd41e['getFirstRange'](),_0x2d818e=_0x39990b['fromRange'](_0x3aa4cb);let _0x3abdd8;_0xc05343(_0x48f079),_0x3abdd8='$graveyard'==_0x2d818e['root']['rootName']?_0x480ddc['model']['createRange'](_0x3aa4cb['start']):_0x480ddc['model']['createRange'](_0x2d818e['start'],_0x2d818e['end']),_0x2d818e['detach'](),_0x480ddc['model']['enqueueChange'](_0x208308['buffer']['batch'],_0x536179=>{_0x208308['buffer']['lock'](),_0x536179['setSelection'](_0x536179['createRange'](_0x3abdd8['end'])),_0x208308['buffer']['unlock']();});}),_0x480ddc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x480ddc,'merge'),{'priority':'high'}),_0x480ddc['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1e448c,_0x1a7b86,_0x264247)=>{_0x264247['options']['showSuggestionHighlights']&&De(_0x480ddc,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1e448c,_0x1a7b86,_0x264247);},{'priority':'high'}),_0x480ddc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x40c251,_0x27992d,_0x3c2d09)=>{const _0x2dba40=_0x3c2d09['mapper']['markerNameToElements'](_0x27992d['markerName']);if(_0x2dba40){for(const _0x2676ed of _0x2dba40)_0x2676ed['is']('uiElement')&&(_0x3c2d09['mapper']['unbindElementFromMarkerName'](_0x2676ed,_0x27992d['markerName']),_0x3c2d09['writer']['remove'](_0x2676ed));}},{'priority':'high'});}}class H extends _0x281269{['afterInit'](){const _0x4f7852=this['editor'];if(!_0x4f7852['plugins']['has']('ListEditing'))return;const _0x290c4d=_0x4f7852['locale'],_0x2f7784=_0x4f7852['plugins']['get']('TrackChangesEditing'),_0x75e996=_0x4f7852['plugins']['has']('TodoListEditing'),_0x5f5aa8=!!_0x4f7852['config']['get']('list.multiBlock');function _0xb85210(_0x3399b7){return{'type':'format','content':''+o(_0x290c4d,'*Set\x20format:*\x20%0',_0x3399b7)};}function _0x26a8a2(_0x72a1b9){return{'type':'format','content':''+o(_0x290c4d,'*Remove\x20format:*\x20%0',_0x72a1b9)};}_0x2f7784['enableDefaultAttributesIntegration']('numberedList'),_0x2f7784['enableDefaultAttributesIntegration']('bulletedList'),_0x2f7784['enableDefaultAttributesIntegration']('customNumberedList'),_0x2f7784['enableDefaultAttributesIntegration']('customBulletedList'),_0x2f7784['enableDefaultAttributesIntegration']('indentList'),_0x2f7784['enableDefaultAttributesIntegration']('outdentList'),_0x2f7784['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2f7784['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2f7784['registerBlockAttribute']('listItemId'),_0x2f7784['registerBlockAttribute']('listType'),_0x2f7784['registerBlockAttribute']('listIndent'),_0x5f5aa8&&(_0x2f7784['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2f7784['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x75e996&&(_0x2f7784['enableDefaultAttributesIntegration']('todoList'),_0x2f7784['enableDefaultAttributesIntegration']('checkTodoList'),_0x2f7784['registerBlockAttribute']('todoListChecked'),_0x2f7784['descriptionFactory']['registerDescriptionCallback'](_0x169abb=>{const {data:_0x2c6302}=_0x169abb;if(_0x2c6302&&'todoListChecked'==_0x2c6302['key'])return{'type':'format','content':_0x2c6302['newValue']?o(_0x290c4d,'*Check\x20item*'):o(_0x290c4d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1493a9=>{if(_0x1493a9['batch']['isUndo'])return!0x1;let _0x484711=!0x1;const _0x428654=_0x2f7784['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31960e=>'todoListChecked'===_0x2f7784['_getAttributeKey'](_0x31960e));for(const _0x848a0a of _0x428654){'todo'!=_0x848a0a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2f7784['_findSuggestions'](_0x848a0a['getFirstRange'](),'attribute')['find'](_0x2ef970=>'listType'===_0x2f7784['_getAttributeKey'](_0x2ef970['suggestion']))||(_0x1493a9['removeMarker'](_0x848a0a['getFirstMarker']()),_0x484711=!0x0));}return _0x484711;})),_0x2f7784['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x290c4d,'FORMAT_INDENT'));const _0x1e2007={'type':'format','content':''};_0x2f7784['descriptionFactory']['registerDescriptionCallback'](_0x1bbfc3=>{const {data:_0xb3bad4}=_0x1bbfc3;if(!_0xb3bad4||'listType'!=_0xb3bad4['key'])return;let _0x558c86=_0x1bbfc3['head'];for(;_0x558c86;){if(_0x558c86['data']&&(('listStyle'==_0x558c86['data']['key']||'listMarkerStyle'==_0x558c86['data']['key'])&&(_0x558c86['data']['newValue']&&'default'!=_0x558c86['data']['newValue']||'default'!=_0x558c86['data']['oldValue']&&!_0xb3bad4['newValue'])||!_0x5f5aa8&&_0x558c86['data']['key']==m))return _0x1e2007;_0x558c86=_0x558c86['next'];}if(null==_0xb3bad4['newValue'])switch(_0xb3bad4['oldValue']){case'bulleted':return _0x26a8a2(o(_0x290c4d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x26a8a2(o(_0x290c4d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x26a8a2(o(_0x290c4d,'ELEMENT_TODO_LIST'));}switch(_0xb3bad4['newValue']){case'bulleted':return _0xb85210(o(_0x290c4d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xb85210(o(_0x290c4d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xb85210(o(_0x290c4d,'ELEMENT_TODO_LIST'));}}),_0x2f7784['descriptionFactory']['registerDescriptionCallback'](_0x366308=>{const {data:_0x31bbdc}=_0x366308;if(_0x31bbdc&&'listIndent'==_0x31bbdc['key'])return null==_0x31bbdc['newValue']||null==_0x31bbdc['oldValue']&&0x0==_0x31bbdc['newValue']?_0x1e2007:void 0x0;}),_0x2f7784['descriptionFactory']['registerDescriptionCallback'](_0x3fb605=>{if('attribute'!=_0x3fb605['type'])return;const {data:_0x2d484f}=_0x3fb605;if(!_0x2d484f||'listItemId'!=_0x2d484f['key'])return;const _0x1ea491=Te(_0x3fb605);return'newValue'==_0x1ea491?{'type':'format','content':o(_0x290c4d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1ea491?{'type':'format','content':o(_0x290c4d,'*Split:*\x20list\x20item')}:_0x1e2007;}),_0x4f7852['model']['document']['registerPostFixer'](_0x54e5ff=>this['listItemIdFixer'](_0x54e5ff)),_0x4f7852['model']['document']['registerPostFixer'](_0x445125=>this['noTrackChangesFixer'](_0x445125)),_0x4f7852['model']['document']['on']('change:data',(_0x5388f7,_0xc8df6d)=>{if(_0xc8df6d['isUndo']||!_0xc8df6d['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x465458){if(_0x465458['batch']['isUndo']||!_0x465458['batch']['isLocal'])return!0x1;let _0x355b65=!0x1;const _0x15fc3d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x280c5b=>_0x280c5b['data']&&'listItemId'==_0x280c5b['data']['key'])['filter'](_0x2ed9f9=>_0x2ed9f9['data']['newValue']&&_0x2ed9f9['data']['oldValue']);for(const _0x47eead of _0x15fc3d)Te(_0x47eead)||(_0x465458['removeMarker'](_0x47eead['getFirstMarker']()),_0x355b65=!0x0);return _0x355b65;}['noTrackChangesFixer'](_0x58be8a){if(_0x58be8a['batch']['isUndo']||!_0x58be8a['batch']['isLocal'])return!0x1;const _0x3f03db=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3f03db['trackChangesCommand']['value'])return!0x1;let _0x53f354=!0x1;const _0x23ccf1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3ab35c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2660ab=>'attribute'==_0x2660ab['type'])['filter'](_0x493723=>_0x23ccf1['includes'](_0x493723['attributeKey']));if(0x0==_0x3ab35c['length'])return _0x53f354;for(const _0xb5c070 of _0x3ab35c){const _0x5c6d58=_0x3f03db['_findSuggestions'](_0xb5c070['range'],'attribute')['filter'](_0x4842d0=>!_0x4842d0['meta']['isNextTo'])['map'](_0x467a0d=>_0x467a0d['suggestion'])['filter'](_0x576f44=>{const _0x2610d0=_0x3f03db['_getAttributeKey'](_0x576f44);return _0x23ccf1['includes'](_0x2610d0);});if(_0x5c6d58['length']){for(const _0x23120b of _0x5c6d58)_0x58be8a['removeMarker'](_0x23120b['getFirstMarker']());_0x53f354=!0x0;}}return _0x53f354;}['assureChains'](){const _0x41de8a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x176f99=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1a7c2c;const _0x17cf81=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2f97d3=>{if(_0x2f97d3['data']['oldRange']||!_0x2f97d3['data']['newRange'])return null;if(!_0x2f97d3['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4cccec}=_0x41de8a['_splitMarkerName'](_0x2f97d3['name']);if(!_0x41de8a['hasSuggestion'](_0x4cccec))return null;const _0x177278=_0x41de8a['getSuggestion'](_0x4cccec);return _0x176f99['includes'](_0x177278['data']['key']);})['map'](_0x562f1d=>{const {id:_0x1930e8}=_0x41de8a['_splitMarkerName'](_0x562f1d['name']),_0x20fc58=_0x41de8a['getSuggestion'](_0x1930e8);return _0x1a7c2c=_0x20fc58['attributes']['groupId'],_0x20fc58['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x17cf81['size'])return;const _0x2a5fee=_0x41de8a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2db5d5=>'attribute'==_0x2db5d5['type']&&_0x2db5d5['data']&&_0x176f99['includes'](_0x2db5d5['data']['key'])&&_0x2db5d5['attributes']['groupId']!=_0x1a7c2c)['map'](_0x2fa0fb=>({'listItem':_0x2fa0fb['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2fa0fb['attributes']['groupId']})),_0x3080f3=new Set();for(const {groupId:_0x450a39,listItem:_0x34143c}of _0x2a5fee)_0x17cf81['has'](_0x34143c)&&_0x3080f3['add'](_0x450a39);for(const _0x15211c of _0x41de8a['getSuggestions']())_0x3080f3['has'](_0x15211c['attributes']['groupId'])&&_0x15211c['setAttribute']('groupId',_0x1a7c2c);}['_supportLegacySuggestions'](){const _0x2f4b07=this['editor'],_0x3fa739=_0x2f4b07['locale'],_0x23f37a=_0x2f4b07['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x23f37a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x91992e,_0x5a599a){const _0x3df4e5=[];for(let _0x939200 of _0x91992e)_0x939200['start']['nodeAfter']===_0x939200['end']['parent']&&(_0x939200=_0x2f4b07['model']['createRange'](_0x2f4b07['model']['createPositionAt'](_0x939200['start']['nodeAfter'],0x0))),_0x3df4e5['push'](_0x939200);_0x2f4b07['model']['change'](_0x5890d2=>{const _0x8acd1f=_0x2f4b07['model']['document']['selection'],_0x28057f=Array['from'](_0x8acd1f['getRanges']())['map'](_0x2ae330=>_0x39990b['fromRange'](_0x2ae330));_0x5890d2['setSelection'](_0x3df4e5),_0x2f4b07['commands']['get'](_0x5a599a['commandName'])['refresh'](),_0x5a599a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2f4b07['execute'](_0x5a599a['commandName'],..._0x5a599a['commandParams']),_0x5890d2['setSelection'](_0x28057f);for(const _0x1e2143 of _0x28057f)_0x1e2143['detach']();});}),_0x23f37a['descriptionFactory']['registerElementLabel'](function(_0x49d627){const _0x23ed2a=!_0x2f4b07['model']['schema']['isObject'](_0x49d627),_0x2d84e3=_0x49d627['previousSibling'],_0x53d246=_0x49d627['nextSibling'],_0x48fe63=_0x49d627['getAttribute']('listItemId'),_0xff5adf=!_0x2d84e3||_0x2d84e3['getAttribute']('listItemId')!==_0x48fe63,_0x3b23b6=!_0x53d246||_0x53d246['getAttribute']('listItemId')!==_0x48fe63;return _0x23ed2a&&Boolean(_0x48fe63)&&_0xff5adf&&_0x3b23b6;},_0x26a91e=>o(_0x3fa739,'ELEMENT_LIST_ITEM',_0x26a91e));}['_registerLegacyDescription'](){const _0x45046c=this['editor'],_0x608a2b=_0x45046c['locale'];function _0xb36395(_0xf7e1c2){const _0x9990cf=_0x45046c['commands']['get']('bulletedList')['value'],_0x4c3e0b=_0x45046c['commands']['get']('numberedList')['value'];return'numberedList'===_0xf7e1c2?_0x9990cf:_0x4c3e0b;}_0x45046c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3bb848){if('formatBlock'!=_0x3bb848['type'])return;const {data:_0x221048}=_0x3bb848;if(!_0x221048)return;let _0x5e60b1,_0x15e988,_0x1e3dca,_0x644584;switch(_0x221048['commandName']){case'bulletedList':_0x1e3dca=_0x221048['commandParams'][0x0]['forceValue'],_0x644584=_0xb36395(_0x221048['commandName']),_0x5e60b1=_0x1e3dca?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x644584&&_0x45046c['config']['get']('list.multiBlock')||(_0x5e60b1='*Change\x20to:*\x20%0'),_0x15e988={'type':'format','content':o(_0x608a2b,_0x5e60b1,o(_0x608a2b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1e3dca=_0x221048['commandParams'][0x0]['forceValue'],_0x644584=_0xb36395(_0x221048['commandName']),_0x5e60b1=_0x1e3dca?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x644584&&_0x45046c['config']['get']('list.multiBlock')||(_0x5e60b1='*Change\x20to:*\x20%0'),_0x15e988={'type':'format','content':o(_0x608a2b,_0x5e60b1,o(_0x608a2b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5e60b1='*Indent:*\x20%0',_0x15e988={'type':'format','content':o(_0x608a2b,_0x5e60b1,o(_0x608a2b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5e60b1=function(_0x510244){const _0x495459=_0x510244['getFirstRange']();let _0x4e3026=_0x495459['start']['nodeAfter'];for(;_0x4e3026&&_0x495459['containsItem'](_0x4e3026);){if(_0x4e3026['getAttribute']('listIndent')>0x0)return!0x1;_0x4e3026=_0x4e3026['nextSibling'];}return!0x0;}(_0x3bb848)?o(_0x608a2b,'*Format:*\x20remove\x20from\x20%0',o(_0x608a2b,function(_0x5e1aec){return'ELEMENT_'+_0x5e1aec['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3bb848))):o(_0x608a2b,'*Outdent:*\x20%0',o(_0x608a2b,'ELEMENT_LIST_ITEM')),_0x15e988={'type':'format','content':_0x5e60b1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x221048['multipleBlocks']&&(_0x5e60b1='*Merge:*\x20%0',_0x15e988={'type':'deletion','content':o(_0x608a2b,_0x5e60b1,o(_0x608a2b,'ELEMENT_LIST_ITEM'))});}return _0x15e988;});}}function Te(_0x280451){let _0x3ace61=_0x280451['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3ace61;){const _0x3f15b9=_0x3ace61['getAttribute']('listItemId');if(!_0x3f15b9)return!0x1;if(_0x3f15b9==_0x280451['data']['newValue'])return'newValue';if(_0x3f15b9==_0x280451['data']['oldValue'])return'oldValue';_0x3ace61=_0x3ace61['previousSibling'];}return!0x1;}class q extends _0x281269{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x42d2a7=this['editor']['config']['get']('list.properties'),_0x1106c6=this['editor']['plugins']['get']('TrackChangesEditing');_0x42d2a7['styles']&&(_0x1106c6['enableDefaultAttributesIntegration']('listStyle'),_0x1106c6['registerBlockAttribute']('listStyle')),_0x42d2a7['reversed']&&(_0x1106c6['enableDefaultAttributesIntegration']('listReversed'),_0x1106c6['registerBlockAttribute']('listReversed')),_0x42d2a7['startIndex']&&(_0x1106c6['enableDefaultAttributesIntegration']('listStart'),_0x1106c6['registerBlockAttribute']('listStart'));const _0x44c8d8={'type':'format','content':''};_0x1106c6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1094e8=this['editor']['locale'];_0x1106c6['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1094e8,'FORMAT_LIST_REVERSED')),_0x1106c6['descriptionFactory']['registerDescriptionCallback'](_0x4c674f=>{const {data:_0x23316d}=_0x4c674f;if(_0x23316d&&'listReversed'==_0x23316d['key'])return null==_0x23316d['newValue']||0x0==_0x23316d['newValue']&&null==_0x23316d['oldValue']?_0x44c8d8:void 0x0;}),_0x1106c6['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1094e8,'FORMAT_LIST_START')),_0x1106c6['descriptionFactory']['registerDescriptionCallback'](_0x2254af=>{const {data:_0x19e10b}=_0x2254af;if(_0x19e10b&&'listStart'==_0x19e10b['key'])return null==_0x19e10b['newValue']||0x1==_0x19e10b['newValue']&&null==_0x19e10b['oldValue']?_0x44c8d8:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4bfd71=>{if(_0x4bfd71['batch']['isUndo'])return!0x1;let _0x5a3154=!0x1;const _0x4ca464=_0x1106c6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f34ce=>{const _0x3afd90=_0x1106c6['_getAttributeKey'](_0x5f34ce);return'listStart'==_0x3afd90||'listReversed'==_0x3afd90;});for(const _0x3f812c of _0x4ca464){const _0x1004d9=_0x3f812c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1004d9||'customNumbered'==_0x1004d9)continue;_0x1106c6['_findSuggestions'](_0x3f812c['getFirstRange'](),'attribute')['find'](_0x29fd5c=>'listType'==_0x1106c6['_getAttributeKey'](_0x29fd5c['suggestion']))||(_0x4bfd71['removeMarker'](_0x3f812c['getFirstMarker']()),_0x5a3154=!0x0);}return _0x5a3154;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x11651d){const _0x50ac1b=this['editor']['locale'],{data:_0x20bafc}=_0x11651d,_0x474256={'type':'format','content':''};if(!_0x20bafc||'listStyle'!=_0x20bafc['key'])return;if(!_0x20bafc['oldValue'])return'default'==_0x20bafc['newValue']?_0x474256:{'type':'format','content':''+o(_0x50ac1b,'*Set\x20format:*\x20%0',o(_0x50ac1b,this['_getTranslationKeyForListStyle'](_0x20bafc['newValue'])))};if(!_0x20bafc['newValue']){if('default'==_0x20bafc['oldValue'])return _0x474256;let _0x47fe63=_0x11651d['head'];for(;_0x47fe63;){if(_0x47fe63['data']&&'listType'==_0x47fe63['data']['key']&&_0x47fe63['data']['newValue'])return _0x474256;_0x47fe63=_0x47fe63['next'];}return{'type':'format','content':''+o(_0x50ac1b,'*Remove\x20format:*\x20%0',o(_0x50ac1b,this['_getTranslationKeyForListStyle'](_0x20bafc['oldValue'])))};}if('default'!=_0x20bafc['newValue'])return{'type':'format','content':''+o(_0x50ac1b,'*Set\x20format:*\x20%0',o(_0x50ac1b,this['_getTranslationKeyForListStyle'](_0x20bafc['newValue'])))};let _0x453de9=_0x11651d['head'];for(;_0x453de9;){if(_0x453de9['data']&&'listType'==_0x453de9['data']['key']&&_0x453de9['data']['newValue']&&_0x453de9['data']['oldValue'])return _0x474256;_0x453de9=_0x453de9['next'];}return{'type':'format','content':o(_0x50ac1b,'*Set\x20format:*\x20%0',o(_0x50ac1b,'ELEMENT_'+_0x11651d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1fd459=this['editor'],_0x24ea88=_0x1fd459['locale'];_0x1fd459['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e47a3=>{if('formatBlock'!=_0x3e47a3['type'])return;const {data:_0x331336}=_0x3e47a3;if(!_0x331336)return;let _0x31a2d1,_0x3513f4;switch(_0x331336['commandName']){case'listStyle':_0x31a2d1='*Change\x20to:*\x20%0',_0x3513f4={'type':'format','content':o(_0x24ea88,_0x31a2d1,o(_0x24ea88,this['_getTranslationKeyForListStyle'](_0x331336['commandParams'][0x0]['type'])))};break;case'listReversed':_0x31a2d1=_0x331336['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3513f4={'type':'format','content':o(_0x24ea88,_0x31a2d1)};break;case'listStart':_0x31a2d1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3513f4={'type':'format','content':o(_0x24ea88,_0x31a2d1,_0x331336['commandParams'][0x0]['startIndex'])};}return _0x3513f4;});}['_getTranslationKeyForListStyle'](_0xfdd967){return'ELEMENT_'+function(_0xf860f8){if(Se['includes'](_0xf860f8))return'bulleted';if(_e['includes'](_0xf860f8))return'numbered';return null;}(_0xfdd967)['toUpperCase']()+'_LIST_'+_0xfdd967['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x281269{['afterInit'](){const _0x375e8f=this['editor'];_0x375e8f['commands']['get']('emoji')&&_0x375e8f['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x281269{static get['requires'](){return[_0x1c2114];}['init'](){const _0x231ead=this['editor'],_0x3c726a=_0x231ead['plugins']['get']('TrackChangesEditing'),_0x5e182c=_0x231ead['commands']['get']('enter');_0x3c726a['enableCommand']('enter',()=>{_0x231ead['model']['change'](_0x164659=>{const _0x36ebe3=_0x231ead['model']['document']['selection'],_0x53d42f=_0x36ebe3['getFirstPosition'](),_0x13bd33=_0x39990b['fromRange'](_0x36ebe3['getFirstRange']());if(_0x5e182c['enterBlock'](_0x164659)){const _0x270580=_0x231ead['model']['createPositionAt'](_0x53d42f['parent']['nextSibling'],0x0),_0x122f95=_0x164659['createRange'](_0x53d42f,_0x270580);_0x3c726a['markInsertion'](_0x122f95);}else _0x164659['setSelection'](_0x164659['createRange'](_0x13bd33['end']));_0x13bd33['detach'](),_0x5e182c['fire']('afterExecute',{'writer':_0x164659});});}),_0x231ead['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x231ead,'split'),{'priority':'high'}),_0x231ead['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x48193b,_0x8b26f0,_0x2c3c72)=>{const _0x530a04=_0x2c3c72['mapper']['markerNameToElements'](_0x8b26f0['markerName']);if(_0x530a04){for(const _0x47bb2e of _0x530a04)_0x47bb2e['hasClass']('ck-suggestion-marker-split')&&(_0x2c3c72['mapper']['unbindElementFromMarkerName'](_0x47bb2e,_0x8b26f0['markerName']),_0x2c3c72['writer']['remove'](_0x47bb2e));}},{'priority':'high'}),_0x231ead['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5f0c15,_0x45a029,_0x521f70)=>{_0x521f70['options']['showSuggestionHighlights']&&De(_0x231ead,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5f0c15,_0x45a029,_0x521f70);},{'priority':'high'});}}class Q extends _0x281269{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3c1309=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c1309['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3c1309['enableCommand']('findNext'),_0x3c1309['enableCommand']('findPrevious'),_0x3c1309['enableCommand']('replace'),_0x3c1309['enableCommand']('replaceAll');}['handleFindCommand'](_0x39d14d,_0x361ad3,_0x552d83={}){const _0xdd2597=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x39d14d(_0x20cbdc=>{let _0x4906bd=('string'==typeof _0x361ad3?_0xdd2597['findByTextCallback'](_0x361ad3,_0x552d83):_0x361ad3)(_0x20cbdc);Array['isArray'](_0x4906bd)&&(_0x4906bd={'results':_0x4906bd,'searchText':'string'==typeof _0x361ad3?_0x361ad3:''});const _0x28773d=_0x4906bd['results']['filter'](_0x22c0f9=>!0x1===this['_isInDeletionRange'](_0x22c0f9,_0x20cbdc['item']));return{..._0x4906bd,'results':_0x28773d};},_0x552d83);}['_isInDeletionRange'](_0x4e82ab,_0x39f64f){const _0x55348d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x39f64f,_0x4e82ab['start']),this['editor']['model']['createPositionAt'](_0x39f64f,_0x4e82ab['end']));for(const _0x2dd090 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x55348d['getIntersection'](_0x2dd090['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x281269{['afterInit'](){const _0x59c74b=this['editor']['locale'],_0x4aa76d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4400fc,commandName:_0x3bf4a6}of eo)this['editor']['plugins']['has'](_0x4400fc)&&(_0x4aa76d['enableDefaultAttributesIntegration'](_0x3bf4a6),_0x4aa76d['registerInlineAttribute'](_0x3bf4a6));_0x4aa76d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x59c74b,'FORMAT_FONT_SIZE')),_0x4aa76d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x59c74b,'FORMAT_FONT_FAMILY')),_0x4aa76d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x59c74b,'FORMAT_FONT_COLOR')),_0x4aa76d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x59c74b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2610bb=this['editor'],_0x4d5573=_0x2610bb['locale'];_0x2610bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19748b=>{const _0x11635a=_0x4d5573['t'];if('formatInline'!=_0x19748b['type'])return;const {data:_0x5bb502}=_0x19748b;if(null!=_0x5bb502){if('fontSize'==_0x5bb502['commandName']){const _0x5163b1=_0x5bb502['commandParams'][0x0]['value'];if(_0x5163b1){const _0x189345=_0x11635a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5f110e=>_0x5f110e['model']==_0x5163b1)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4d5573,'*Set\x20font\x20size:*\x20%0',_0x189345)};}return{'type':'format','content':o(_0x4d5573,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5bb502['commandName']){const _0x31eaa6=_0x5bb502['commandParams'][0x0]['value'];return _0x31eaa6?{'type':'format','content':o(_0x4d5573,'*Set\x20font\x20family:*\x20%0',_0x31eaa6)}:{'type':'format','content':o(_0x4d5573,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5bb502['commandName']){const _0xf6ad72=_0x5bb502['commandParams'][0x0]['value'];if(_0xf6ad72){const _0x3fa35c=_0x5e2ef5(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3f67ba=>_0x3f67ba['model']==_0xf6ad72);let _0xa0dd0c=_0xf6ad72,_0x4a887b='';return _0x3fa35c&&(_0xa0dd0c=_0x3fa35c['label'],_0x4a887b=_0x11635a(_0xa0dd0c)['toLowerCase']()),{'type':'format','content':o(_0x4d5573,'*Set\x20font\x20color:*\x20%0',_0x4a887b)['trim'](),'color':{'value':_0xf6ad72,'title':_0x4a887b||_0xa0dd0c}};}return{'type':'format','content':o(_0x4d5573,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5bb502['commandName']){const _0x3816f0=_0x5bb502['commandParams'][0x0]['value'];if(_0x3816f0){const _0x3594ce=_0x5e2ef5(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x14e0dd=>_0x14e0dd['model']==_0x3816f0);let _0x58af86=_0x3816f0,_0x6ba561='';return _0x3594ce&&(_0x58af86=_0x3594ce['label'],_0x6ba561=_0x11635a(_0x58af86)['toLowerCase']()),{'type':'format','content':o(_0x4d5573,'*Set\x20font\x20background\x20color:*\x20%0',_0x6ba561)['trim'](),'color':{'value':_0x3816f0,'title':_0x6ba561||_0x58af86}};}return{'type':'format','content':o(_0x4d5573,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x281269{['afterInit'](){const _0x3ca2d1=this['editor'],_0x3c69cb=_0x3ca2d1['plugins']['get']('TrackChangesEditing'),_0x17cae5=_0x3ca2d1['commands']['get']('copyFormat'),_0x56ab11=_0x3ca2d1['commands']['get']('pasteFormat');_0x17cae5&&_0x56ab11&&(_0x3c69cb['enableDefaultAttributesIntegration']('pasteFormat'),_0x3c69cb['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x53e049=this['editor'],_0x49e905=_0x53e049['locale'];_0x53e049['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58da37=>{if('formatBlock'!=_0x58da37['type']&&'formatInline'!=_0x58da37['type'])return;const {data:_0x212abf}=_0x58da37;if(_0x212abf&&'pasteFormat'===_0x212abf['commandName']){const _0x369915=[],_0x182ac1=_0x212abf['commandParams'][0x0];for(const [_0x46b8a5,_0x552746]of Object['entries'](_0x182ac1))_0x369915['push'](ro(_0x53e049,_0x46b8a5,_0x552746));return _0x369915['length']?{'type':'format','content':o(_0x49e905,'*Set\x20format\x20to:*\x20%0',_0x369915['join'](',\x20'))}:{'type':'format','content':o(_0x49e905,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1db545,_0x1ad50e,_0x204173){const _0x316d02=_0x1db545['locale']['t'],_0xe2f19d=_0x1ad50e['split'](/(?=[A-Z])/)['join']('\x20'),_0x589df0=_0x316d02(_0xe2f19d['charAt'](0x0)['toUpperCase']()+_0xe2f19d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x204173)return _0x589df0;if('fontColor'===_0x1ad50e||'fontBackgroundColor'===_0x1ad50e){const _0x4bd44e=_0x5e2ef5(_0x1db545['config']['get']('fontColor.colors'))['find'](_0x2adb36=>_0x2adb36['model']==_0x204173);return _0x589df0+'\x20('+(_0x4bd44e?_0x316d02(_0x4bd44e['label'])['toLowerCase']():_0x204173)+')';}if('fontSize'===_0x1ad50e&&isNaN(parseFloat(_0x204173))){const _0x5d5fd8=_0x1db545['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1db545['config']['get']('fontSize.options'))['find'](_0x41801f=>_0x41801f['model']==_0x204173);return _0x589df0+'\x20('+(_0x5d5fd8?_0x316d02(_0x5d5fd8['title'])['toLowerCase']():_0x204173)+')';}return _0x589df0+'\x20('+_0x204173+')';}class Z extends _0x281269{['_headingOptions'];['afterInit'](){const _0x54e1fd=this['editor'];if(!_0x54e1fd['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x54e1fd['config']['get']('heading.options');const _0x5c7040=_0x54e1fd['locale'],_0x2c6969=_0x54e1fd['plugins']['get']('TrackChangesEditing');_0x2c6969['enableDefaultAttributesIntegration']('heading');for(const _0x23b79f of this['_headingOptions'])'paragraph'!=_0x23b79f['model']&&_0x2c6969['descriptionFactory']['registerElementLabel'](_0x23b79f['model'],_0x23eef4=>{const _0x1b25fb=this['_getHeadingLevel'](_0x23b79f['model']);return null!==_0x1b25fb?_0x24315e(_0x23eef4,_0x1b25fb):_0x5303de(_0x23eef4,_0x23b79f['title']);});function _0x24315e(_0x31df91,_0x3a248d){return o(_0x5c7040,'ELEMENT_HEADING',[_0x31df91,_0x3a248d]);}function _0x5303de(_0x503027,_0x2e7c6a){return o(_0x5c7040,'ELEMENT_HEADING_CUSTOM',[_0x503027,_0x2e7c6a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27c06a=this['editor'],_0x1423f1=_0x27c06a['locale'];function _0x209b84(_0x51f00f,_0x1b50a9){return o(_0x1423f1,'ELEMENT_HEADING_CUSTOM',[_0x51f00f,_0x1b50a9]);}_0x27c06a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x491620=>{if('formatBlock'!=_0x491620['type'])return;const {data:_0x3246ec}=_0x491620;if(_0x3246ec&&'heading'==_0x3246ec['commandName']){const _0x4d4242=_0x3246ec['commandParams'][0x0]['value'],_0x5cbb32=this['_getHeadingLevel'](_0x4d4242);if(null!==_0x5cbb32)return{'type':'format','content':o(_0x1423f1,'*Change\x20to:*\x20%0',(_0x34c73f=0x1,_0x56dfd0=_0x5cbb32,o(_0x1423f1,'ELEMENT_HEADING',[_0x34c73f,_0x56dfd0])))};const _0x3b0171=this['_headingOptions']['find'](_0xc3aa0c=>_0xc3aa0c['model']===_0x4d4242)['title'];return{'type':'format','content':o(_0x1423f1,'*Change\x20to:*\x20%0',_0x209b84(0x1,_0x3b0171))};}var _0x34c73f,_0x56dfd0;});}['_getHeadingLevel'](_0x4f5f5d){const _0x469818=_0x4f5f5d['match'](/^heading(\d+)/);if(_0x469818)return _0x469818[0x1];const _0x18569e=this['_headingOptions']?.['find'](_0x5abf37=>_0x5abf37['model']==_0x4f5f5d);if(_0x18569e&&_0x18569e['view']){const _0x6048f2=_0x18569e['view'],_0x4f588e=(_0x6048f2['name']??_0x6048f2)['match'](/^h(\d+)/);if(_0x4f588e)return _0x4f588e[0x1];}return null;}}class tt extends _0x281269{['afterInit'](){const _0x289101=this['editor'];if(!_0x289101['plugins']['has']('HighlightEditing'))return;const _0x4f1042=_0x289101['plugins']['get']('TrackChangesEditing'),_0x11b017=_0x289101['locale'];_0x4f1042['enableDefaultAttributesIntegration']('highlight'),_0x4f1042['registerInlineAttribute']('highlight'),_0x4f1042['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x11b017,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x548a50=this['editor'],_0xe77701=_0x548a50['locale'];_0x548a50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56323c=>{if('formatInline'!=_0x56323c['type'])return;const {data:_0xd7cd79}=_0x56323c;if(_0xd7cd79&&'highlight'==_0xd7cd79['commandName']){const _0x1a02d2=_0xe77701['t'],_0x33d7c1=_0xd7cd79['commandParams'][0x0]['value'];if(_0x33d7c1){const _0x5e7c74=_0x548a50['config']['get']('highlight.options')['find'](_0x140c08=>_0x140c08['model']==_0x33d7c1),_0x50e064=_0x1a02d2(_0x5e7c74['title'])['toLowerCase']();return{'type':'format','content':o(_0xe77701,'*Set\x20highlight:*\x20%0',_0x50e064),'color':{'value':_0x5e7c74['color'],'title':_0x5e7c74['title']}};}return{'type':'format','content':o(_0xe77701,'*Remove\x20highlight*',o(_0xe77701,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x281269{['afterInit'](){const _0x136f75=this['editor'];if(!_0x136f75['plugins']['has']('HorizontalLineEditing'))return;_0x136f75['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x44a215=_0x136f75['plugins']['get']('TrackChangesEditing'),_0x133b68=_0x136f75['locale'];_0x44a215['descriptionFactory']['registerElementLabel']('horizontalLine',_0x589fbf=>o(_0x133b68,'ELEMENT_HORIZONTAL_LINE',_0x589fbf)),_0x136f75['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x52f9b8,{writer:_0x3bf067,options:_0xc614f7})=>{if(!_0xc614f7['showSuggestionHighlights'])return null;const _0x459d38=_0x3bf067['createContainerElement']('div'),_0x297f48=_0x3bf067['createEmptyElement']('hr');return _0x3bf067['addClass']('ck-horizontal-line',_0x459d38),_0x3bf067['insert'](_0x3bf067['createPositionAt'](_0x459d38,0x0),_0x297f48),_0x459d38;},'converterPriority':'high'});}}class nt extends _0x281269{['afterInit'](){const _0x427dc1=this['editor'];if(!_0x427dc1['plugins']['has']('HtmlEmbed'))return;const _0x2c3939=_0x427dc1['plugins']['get']('TrackChangesEditing'),_0x1f3ae6=_0x427dc1['locale'];_0x2c3939['descriptionFactory']['registerElementLabel']('rawHtml',_0xfa63aa=>o(_0x1f3ae6,'ELEMENT_HTML_EMBED',_0xfa63aa)),_0x2c3939['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2c3939['registerBlockAttribute']('value'),_0x2c3939['descriptionFactory']['registerDescriptionCallback'](_0x4b99b8=>{if('attribute'!=_0x4b99b8['type'])return;const {data:_0x5d75c3}=_0x4b99b8;if(_0x5d75c3&&'value'==_0x5d75c3['key']&&_0x4b99b8['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x49f5bb=o(_0x1f3ae6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1f3ae6,'*Change\x20%0\x20content*',_0x49f5bb)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1073c7=this['editor'],_0x5d09e3=_0x1073c7['locale'];_0x1073c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b4cf1=>{if('formatBlock'!=_0x1b4cf1['type'])return;const {data:_0xfd0932}=_0x1b4cf1;if(_0xfd0932&&'htmlEmbed'==_0xfd0932['commandName']){const _0x3a0481=o(_0x5d09e3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5d09e3,'*Change\x20%0\x20content*',_0x3a0481)};}});}}class et extends _0x281269{['afterInit'](){const _0x1609dc=this['editor'];if(!_0x1609dc['plugins']['has']('ImageEditing'))return;const _0x38facd=_0x1609dc['plugins']['get']('TrackChangesEditing'),_0x18576b=_0x1609dc['plugins']['get']('ImageUtils'),_0x4fb4d1=_0x1609dc['locale'];_0x38facd['enableCommand']('insertImage'),_0x38facd['descriptionFactory']['registerElementLabel']('imageBlock',_0xe55321=>o(_0x4fb4d1,'ELEMENT_IMAGE',_0xe55321)),_0x38facd['descriptionFactory']['registerElementLabel']('imageInline',_0x5d36de=>o(_0x4fb4d1,'ELEMENT_INLINE_IMAGE',_0x5d36de)),_0x38facd['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4fb4d1,'ELEMENT_CAPTION')),_0x1609dc['plugins']['has']('ImageUploadEditing')&&_0x38facd['enableCommand']('uploadImage'),_0x1609dc['plugins']['has']('ImageBlockEditing')&&_0x1609dc['plugins']['has']('ImageInlineEditing')&&(_0x38facd['enableCommand']('imageTypeInline',(_0x149588,_0x47cef4)=>{const _0x4ce20a=_0x18576b['getClosestSelectedImageElement'](_0x1609dc['model']['document']['selection']);_0x1609dc['model']['change'](()=>{_0x38facd['markBlockFormat'](_0x4ce20a,{'commandName':'imageTypeInline','commandParams':[_0x47cef4]},[],'convertBlockImageToInline');});}),_0x38facd['enableCommand']('imageTypeBlock',(_0x4e20d4,_0x30a7eb)=>{_0x1609dc['model']['change'](_0x455c93=>{let _0x1293cc=_0x18576b['getClosestSelectedImageElement'](_0x1609dc['model']['document']['selection']),_0x5a20e5=_0x455c93['createRangeOn'](_0x1293cc);const _0x28436e=_0x5177ee['fromPosition'](_0x5a20e5['start'],'toPrevious'),_0x3857ac=_0x5177ee['fromPosition'](_0x5a20e5['end'],'toNext');_0x38facd['forceDefaultExecution'](()=>_0x4e20d4(_0x30a7eb)),_0x1293cc=_0x18576b['getClosestSelectedImageElement'](_0x1609dc['model']['document']['selection']),_0x5a20e5=_0x455c93['createRangeOn'](_0x1293cc);const _0x7e36a6=_0x455c93['createRange'](_0x28436e,_0x3857ac);_0x28436e['detach'](),_0x3857ac['detach'](),_0x38facd['markBlockFormat'](_0x1293cc,{'commandName':'imageTypeInline','commandParams':[_0x30a7eb]},[],'convertInlineImageToBlock'),_0x7e36a6['start']['isBefore'](_0x5a20e5['start'])&&_0x38facd['markInsertion'](_0x455c93['createRange'](_0x7e36a6['start'],_0x5a20e5['start']),'convertInlineImageToBlock'),_0x5a20e5['end']['isBefore'](_0x7e36a6['end'])&&_0x38facd['markInsertion'](_0x455c93['createRange'](_0x5a20e5['end'],_0x7e36a6['end']),'convertInlineImageToBlock');});}),_0x38facd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x38facd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x38facd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x38facd['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x38facd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x38facd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3f8fed])=>{const _0x15260e=_0x38facd['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x26b65e=_0x3f8fed['start'],_0x21426c=_0x3f8fed['end'];const _0x346c40=_0x1609dc['model']['schema']['getNearestSelectionRange'](_0x26b65e,'backward'),_0xd42fc0=_0x1609dc['model']['schema']['getNearestSelectionRange'](_0x21426c,'forward');_0x346c40['isCollapsed']&&(_0x26b65e=_0x346c40['start']),_0xd42fc0['isCollapsed']&&(_0x21426c=_0xd42fc0['end']),_0x15260e([_0x1609dc['model']['createRange'](_0x26b65e,_0x21426c)]);}),_0x38facd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3d417c),_0x38facd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3d417c)),_0x1609dc['plugins']['has']('ImageCaptionEditing')&&(_0x38facd['enableCommand']('toggleImageCaption',(_0x268934,_0x1bf1de)=>{const _0x275286=_0x1609dc['plugins']['get']('ImageCaptionUtils');let _0x495a11=_0x18576b['getClosestSelectedImageElement'](_0x1609dc['model']['document']['selection']),_0x3dccf4=_0x275286['getCaptionFromImageModelElement'](_0x495a11);_0x1609dc['model']['change'](()=>{if(_0x3dccf4)return void _0x38facd['markDeletion'](_0x1609dc['model']['createRangeOn'](_0x3dccf4));const _0xbec326=_0x18576b['isBlockImage'](_0x495a11);_0x268934(_0x1bf1de),_0x495a11=_0x18576b['getClosestSelectedImageElement'](_0x1609dc['model']['document']['selection']),_0x3dccf4=_0x275286['getCaptionFromImageModelElement'](_0x495a11),_0x38facd['markInsertion'](_0x1609dc['model']['createRangeOn'](_0x3dccf4),_0xbec326?null:'imageCaption');});}),_0x38facd['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3d417c));const _0x36bbf8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4bad52(_0x43c70b,_0xb56c57){const _0x52fc4c=_0x36bbf8['findIndex'](({type:_0x20ec00,subType:_0x5ae933})=>_0x43c70b['type']==_0x20ec00&&_0x43c70b['subType']==_0x5ae933),_0x2b5ab0=_0x36bbf8['findIndex'](({type:_0x45388a,subType:_0x5c06dc})=>_0xb56c57['type']==_0x45388a&&_0xb56c57['subType']==_0x5c06dc);if(_0x52fc4c<0x0||_0x2b5ab0<0x0)return!0x1;const _0x33f22a=_0x43c70b['getFirstRange'](),_0x4f7d19=_0xb56c57['getFirstRange']();if((0x0==_0x52fc4c||0x1==_0x52fc4c)&&0x2==_0x2b5ab0&&_0x33f22a['isIntersecting'](_0x4f7d19))return!0x0;if(0x2==_0x52fc4c&&0x3==_0x2b5ab0){const _0x80443b=_0x38facd['_findSuggestions'](_0x33f22a,'insertion')['filter'](({suggestion:_0x277d74,meta:_0x219032})=>_0x219032['isOwn']&&'convertInlineImageToBlock'==_0x277d74['subType']);if(_0x80443b['length']>0x1&&_0x4f7d19['end']['isEqual'](_0x33f22a['start']))return!0x0;if(0x1==_0x80443b['length']&&(_0x33f22a['start']['isEqual'](_0x4f7d19['end'])||_0x33f22a['end']['isEqual'](_0x4f7d19['start'])))return!0x0;}if(0x3==_0x52fc4c&&0x3==_0x2b5ab0&&_0x33f22a['start']['isBefore'](_0x4f7d19['start'])){const _0x594bb9=_0x33f22a['end']['nodeAfter'],_0x4aa080=_0x4f7d19['start']['nodeBefore'];return _0x18576b['isBlockImage'](_0x594bb9)&&_0x594bb9===_0x4aa080;}return!0x1;}function _0x3d417c(_0x4a6f3e,_0x10a111){return _0x4bad52(_0x4a6f3e,_0x10a111)?[_0x4a6f3e,_0x10a111]:_0x4bad52(_0x10a111,_0x4a6f3e)?[_0x10a111,_0x4a6f3e]:null;}_0x1609dc['plugins']['has']('ImageResize')&&(_0x38facd['enableDefaultAttributesIntegration']('resizeImage'),_0x38facd['registerBlockAttribute']('resizedWidth'),_0x38facd['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4fb4d1,'FORMAT_IMAGE_SIZE'))),_0x1609dc['plugins']['has']('ImageTextAlternativeEditing')&&(_0x38facd['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x38facd['registerBlockAttribute']('alt')),_0x1609dc['plugins']['has']('PictureEditing')&&(_0x38facd['registerBlockAttribute']('sources'),_0x38facd['descriptionFactory']['registerDescriptionCallback'](_0x4d95c5=>{if('attribute'!=_0x4d95c5['type'])return;const {data:_0x460965}=_0x4d95c5;return _0x460965&&'sources'==_0x460965['key']?{'type':'format','content':''}:void 0x0;})),_0x1609dc['plugins']['has']('ImageSizeAttributes')&&(_0x38facd['registerBlockAttribute']('width'),_0x38facd['registerBlockAttribute']('height'),_0x38facd['descriptionFactory']['registerDescriptionCallback'](_0x4631c5=>{if('attribute'!=_0x4631c5['type'])return;const {data:_0x35782a}=_0x4631c5;return!_0x35782a||'width'!=_0x35782a['key']&&'height'!=_0x35782a['key']?void 0x0:{'type':'format','content':''};})),_0x38facd['descriptionFactory']['registerDescriptionCallback'](_0x51c85b=>{if(!!_0x36bbf8['find'](({type:_0x543553,subType:_0x1ed8b9})=>_0x51c85b['type']==_0x543553&&_0x51c85b['subType']==_0x1ed8b9))return _0x51c85b['previous']?{}:void 0x0;}),_0x38facd['descriptionFactory']['registerDescriptionCallback'](_0x3880cb=>{if('insertion'==_0x3880cb['type']||'deletion'==_0x3880cb['type']){const _0xacb7db=_0x3880cb['getContainedElement']();if(_0xacb7db&&_0xacb7db['is']('element','caption'))return{'type':'insertion'==_0x3880cb['type']?'addObject':'removeObject','element':_0xacb7db,'quantity':0x1};}}),_0x38facd['descriptionFactory']['registerDescriptionCallback'](_0x406adc=>'formatBlock'==_0x406adc['type']&&'convertInlineImageToBlock'==_0x406adc['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x406adc['type']&&'convertBlockImageToInline'==_0x406adc['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x38facd['descriptionFactory']['registerDescriptionCallback'](_0x525e1c=>{if('attribute'!=_0x525e1c['type'])return;const {data:_0x4fa9f5}=_0x525e1c;if(!_0x4fa9f5||'alt'!=_0x4fa9f5['key'])return;const _0x2fd4f5=_0x4fa9f5['newValue'];return _0x2fd4f5?{'type':'format','content':o(_0x4fb4d1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2fd4f5+'\x22')}:{'type':'format','content':o(_0x4fb4d1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x312ed7=this['editor'],_0xade380=_0x312ed7['locale'];_0x312ed7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x559c52=>{if('formatBlock'!=_0x559c52['type']&&'formatInline'!=_0x559c52['type'])return;const {data:_0x362271}=_0x559c52;if(_0x362271){if('imageTextAlternative'==_0x362271['commandName']){const _0x774d24=_0x362271['commandParams'][0x0]['newValue'];return _0x774d24?{'type':'format','content':o(_0xade380,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x774d24+'\x22')}:{'type':'format','content':o(_0xade380,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x362271['commandName']){const _0x286f80=_0x362271['commandParams'][0x0]['width'];return _0x286f80?{'type':'format','content':o(_0xade380,'*Set\x20image\x20width:*\x20%0',_0x286f80)}:{'type':'format','content':o(_0xade380,'*Reset\x20image\x20width*')};}}});}}class st extends _0x281269{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2ec599=this['editor']['locale'],_0x2444e0=this['editor']['plugins']['get']('TrackChangesEditing');_0x2444e0['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2444e0['registerBlockAttribute']('src'),_0x2444e0['descriptionFactory']['registerDescriptionCallback'](_0x436620=>{if('attribute'!=_0x436620['type'])return;const {data:_0x326185}=_0x436620;return _0x326185&&'src'==_0x326185['key']?_0x326185['newValue']&&_0x326185['oldValue']?{'type':'format','content':o(_0x2ec599,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1a15ac=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a15ac['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1a15ac['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a15ac['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1a15ac['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37ba47=this['editor'],_0x59edb2=_0x37ba47['locale'];_0x37ba47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe5bce2=>{if('formatBlock'!=_0xe5bce2['type']&&'formatInline'!=_0xe5bce2['type'])return;const {data:_0x5926dd}=_0xe5bce2;if(!_0x5926dd||'replaceImageSource'!=_0x5926dd['commandName'])return;return{'type':'format','content':o(_0x59edb2,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x281269{['afterInit'](){const _0x56ffee=this['editor'];if(!_0x56ffee['plugins']['has']('ImageStyleEditing'))return;const _0x5bc835=_0x56ffee['plugins']['get']('TrackChangesEditing'),_0x5f1541=_0x56ffee['plugins']['get']('ImageUtils'),_0x551358={};_0x5bc835['enableCommand']('imageStyle',(_0x3d6a58,_0x4021aa)=>{const _0x23d682=_0x56ffee['plugins']['get']('Users')['me'],_0x24fb76=_0x56ffee['commands']['get']('imageStyle');let _0x50d91e=_0x5f1541['getClosestSelectedImageElement'](_0x56ffee['model']['document']['selection']),_0x1ece17=_0x56ffee['model']['createRangeOn'](_0x50d91e),_0x3147b4=_0x24fb76['value'];if(_0x3147b4==_0x4021aa['value'])return;const _0x5e0a0d={'commandName':'imageStyle','commandParams':[_0x4021aa],'formatGroupId':_0x3b5d55()};_0x56ffee['model']['change'](()=>{if(_0x5bc835['getSuggestions']()['filter'](_0x262c4f=>_0x262c4f['isInContent']&&_0x23d682==_0x262c4f['author']&&('formatBlock'==_0x262c4f['type']||'formatInline'==_0x262c4f['type'])&&('imageStylePreApply'==_0x262c4f['subType']||'imageStylePostApply'==_0x262c4f['subType'])&&_0x262c4f['getFirstRange']()['isEqual'](_0x1ece17))['forEach'](_0x29c3a8=>_0x5bc835['discardSuggestion'](_0x29c3a8['head'])),_0x50d91e=_0x5f1541['getClosestSelectedImageElement'](_0x56ffee['model']['document']['selection']),_0x1ece17=_0x56ffee['model']['createRangeOn'](_0x50d91e),_0x24fb76['refresh'](),_0x56ffee['commands']['get']('imageTypeInline')['refresh'](),_0x56ffee['commands']['get']('imageTypeBlock')['refresh'](),_0x3147b4=_0x24fb76['value'],_0x3147b4!=_0x4021aa['value'])return _0x5f1541['isInlineImage'](_0x50d91e)&&_0x24fb76['shouldConvertImageType'](_0x4021aa['value'],_0x50d91e)?(_0x3d6a58({..._0x4021aa,'setImageSizes':!0x1}),_0x50d91e=_0x5f1541['getClosestSelectedImageElement'](_0x56ffee['model']['document']['selection']),void _0x5bc835['markBlockFormat'](_0x50d91e,{..._0x5e0a0d,'commandReversedParams':[{'value':_0x3147b4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5f1541['isBlockImage'](_0x50d91e)?_0x5bc835['markBlockFormat'](_0x50d91e,_0x5e0a0d,[],'imageStylePostApply'):_0x5bc835['markInlineFormat'](_0x1ece17,_0x5e0a0d,'imageStylePostApply'));});});for(const _0x490ffc of _0x56ffee['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x551358[_0x490ffc['name']]=_0x490ffc['title']['toLowerCase']();_0x5bc835['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5bc835['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5bc835['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5bc835['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xa1667c])=>{_0x5f1541['setImageNaturalSizeAttributes'](_0xa1667c['getContainedElement']());}),_0x5bc835['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1d1beb,_0x401603)=>{_0x5bc835['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1d1beb,{'commandName':_0x401603['commandName'],'commandParams':_0x401603['commandReversedParams']});}),_0x5bc835['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x561940,_0x50cde0){if(_0x1a9fb8(_0x561940,_0x50cde0))return[_0x561940,_0x50cde0];if(_0x1a9fb8(_0x50cde0,_0x561940))return[_0x50cde0,_0x561940];return null;});const _0x17ff06=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1a9fb8(_0x4e47e5,_0x3e2103){const _0x2903e4=_0x17ff06['findIndex'](({type:_0x3b5284,subType:_0x3b81d7})=>_0x4e47e5['type']==_0x3b5284&&_0x4e47e5['subType']==_0x3b81d7),_0x12b478=_0x17ff06['findIndex'](({type:_0x1077c8,subType:_0x3d1b58})=>_0x3e2103['type']==_0x1077c8&&_0x3e2103['subType']==_0x3d1b58);if(_0x2903e4<0x0||_0x12b478<0x0)return!0x1;const _0x3d4e5b=_0x4e47e5['getFirstRange'](),_0x4c531d=_0x3e2103['getFirstRange']();if((0x0==_0x2903e4||0x1==_0x2903e4)&&0x2==_0x12b478&&_0x3d4e5b['isIntersecting'](_0x4c531d))return!0x0;if(0x2==_0x2903e4&&0x3==_0x12b478){const _0x3015dd=_0x5bc835['_findSuggestions'](_0x3d4e5b,'insertion')['filter'](({suggestion:_0x17f4bf,meta:_0x1f055f})=>_0x1f055f['isOwn']&&'convertInlineImageToBlock'==_0x17f4bf['subType']);if(_0x3015dd['length']>0x1&&_0x4c531d['end']['isEqual'](_0x3d4e5b['start']))return!0x0;if(0x1==_0x3015dd['length']&&(_0x3d4e5b['start']['isEqual'](_0x4c531d['end'])||_0x3d4e5b['end']['isEqual'](_0x4c531d['start'])))return!0x0;}if(0x3==_0x2903e4&&0x3==_0x12b478&&_0x3d4e5b['start']['isBefore'](_0x4c531d['start'])){const _0x540e9e=_0x3d4e5b['end']['nodeAfter'],_0x246dfb=_0x4c531d['start']['nodeBefore'];return _0x5f1541['isBlockImage'](_0x540e9e)&&_0x540e9e===_0x246dfb;}return!0x1;}_0x56ffee['model']['document']['registerPostFixer'](()=>{let _0x438ba9=!0x1;const _0x5f3b6b=Array['from'](_0x56ffee['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39f6d5,data:_0x1aa03e}of _0x5f3b6b){const {group:_0x450e5e,type:_0x18d55f,subType:_0x47b6f8,id:_0x267d01}=_0x5bc835['_splitMarkerName'](_0x39f6d5);if('suggestion'==_0x450e5e&&_0x5bc835['hasSuggestion'](_0x267d01)){if('formatBlock'==_0x18d55f&&('imageStylePreApply'==_0x47b6f8||'imageStylePostApply'==_0x47b6f8)){const _0x500cae=_0x5bc835['getSuggestion'](_0x267d01);if(_0x1aa03e['newRange']){const _0x58d6d4=_0x500cae['getFirstRange']()['getContainedElement']();if(_0x5f1541['isBlockImage'](_0x58d6d4))continue;_0x5bc835['discardSuggestion'](_0x500cae),_0x438ba9=!0x0;}}if('insertion'==_0x18d55f&&'imageCaption'==_0x47b6f8&&!_0x1aa03e['newRange']){const _0xd2550f=_0x5bc835['getSuggestion'](_0x267d01);_0xd2550f['next']&&_0xd2550f['next']['isInContent']&&(_0x5bc835['discardSuggestion'](_0xd2550f['next']),_0x438ba9=!0x0);}}}return _0x438ba9;}),this['_registerLegacyDescription'](_0x551358);}['_registerLegacyDescription'](_0x2c8056){const _0x3a435e=this['editor'],_0x1d8626=_0x3a435e['locale'];_0x3a435e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ed2df=>{if('formatBlock'!=_0x5ed2df['type']&&'formatInline'!=_0x5ed2df['type'])return;const {data:_0x15db3a}=_0x5ed2df;if(!_0x15db3a||'imageStyle'!=_0x15db3a['commandName'])return;const _0x4811fe=_0x15db3a['commandParams'][0x0]['value'];return _0x36abd7('side'===_0x4811fe?o(_0x1d8626,'FORMAT_SIDE_IMAGE'):_0x2c8056[_0x4811fe]||_0x4811fe);function _0x36abd7(_0x23f20f){return{'type':'format','content':o(_0x1d8626,'*Format:*\x20%0',_0x23f20f)};}});}}class rt extends _0x281269{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1e084a){super(_0x1e084a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x41f27c=this['editor'],_0x2b5e1e=_0x41f27c['commands']['get']('importWord'),_0x196da8=_0x41f27c['commands']['get']('trackChanges');_0x2b5e1e&&(_0x2b5e1e['on']('execute',(_0x2bd526,[,_0x4b872c])=>{this['_trackChangesValueDuringImport']=_0x196da8['value'],_0x4b872c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2b5e1e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2b5e1e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x196da8['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x41f27c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x502925,_0x43f6f9){const {suggestions:_0x248615}=_0x43f6f9,_0x2a78ee=this['editor']['commands']['get']('trackChanges'),_0x58efde=_0x2a78ee['value'];this['_trackChangesValueDuringImport']!==_0x58efde&&(_0x2a78ee['execute'](),this['_trackChangesExecuted']=!0x0),_0x248615&&_0x248615['forEach'](({id:_0x10a432,type:_0x53bd65,author:_0x3d098a,created_at:_0x2743e0})=>{const _0x5b37a9={'id':_0x10a432,'type':_0x53bd65,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3d098a,'createdAt':_0x2743e0?new Date(_0x2743e0):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5b37a9);});}}class at extends _0x281269{['afterInit'](){const _0x4562b6=this['editor'],_0x28753e=_0x4562b6['plugins']['get']('TrackChangesEditing');if(_0x4562b6['plugins']['has']('IndentEditing')&&(_0x28753e['enableCommand']('indent'),_0x28753e['enableCommand']('outdent')),_0x4562b6['plugins']['has']('IndentBlock')){for(const _0x4ae7c0 of['indentBlock','outdentBlock'])_0x28753e['enableDefaultAttributesIntegration'](_0x4ae7c0);}const _0x5890c7=_0x4562b6['locale'];_0x28753e['registerBlockAttribute']('blockIndent'),_0x28753e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5890c7,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15922e=this['editor'],_0x57e035=_0x15922e['locale'],_0xaa9ae7=_0x15922e['plugins']['get']('TrackChangesEditing');_0xaa9ae7['descriptionFactory']['registerDescriptionCallback'](_0x1a89e3=>{if('formatBlock'!=_0x1a89e3['type'])return;const {data:_0x3880c6}=_0x1a89e3;if(!_0x3880c6)return;if('indentBlock'!=_0x3880c6['commandName']&&'outdentBlock'!=_0x3880c6['commandName'])return;const _0x5403f6=_0x1a89e3['getItems']()[0x0],_0x1c1892=_0xaa9ae7['descriptionFactory']['getItemLabel'](_0x5403f6);return'indentBlock'==_0x3880c6['commandName']?{'type':'format','content':o(_0x57e035,'*Indent:*\x20%0',_0x1c1892)}:'outdentBlock'==_0x3880c6['commandName']?{'type':'format','content':o(_0x57e035,'*Outdent:*\x20%0',_0x1c1892)}:void 0x0;});}}class ct extends _0x281269{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x281269{['afterInit'](){const _0x287b88=this['editor'];if(!_0x287b88['plugins']['has']('LinkEditing'))return;const _0x4960c3=_0x287b88['plugins']['get']('TrackChangesEditing'),_0x6354e1=_0x287b88['commands']['get']('link');_0x4960c3['enableDefaultAttributesIntegration']('link'),_0x4960c3['enableDefaultAttributesIntegration']('unlink'),_0x4960c3['registerInlineAttribute']('linkHref');for(const _0x806789 of _0x6354e1['manualDecorators'])_0x4960c3['registerInlineAttribute'](_0x806789['id']),_0x4960c3['descriptionFactory']['registerAttributeLabel'](_0x806789['id'],'link\x20('+_0x806789['label']['toLowerCase']()+')');_0x4960c3['descriptionFactory']['registerDescriptionCallback'](_0x3748da=>{if('attribute'!=_0x3748da['type'])return;const {data:_0x461059}=_0x3748da;if(!_0x461059||'linkHref'!=_0x461059['key'])return;const _0x338827=_0x461059['newValue'],_0x392950=_0x287b88['locale'];return{'type':'format','content':null==_0x338827?o(_0x392950,'*Remove\x20link*'):o(_0x392950,'*Set\x20link:*\x20%0','\x22'+_0x338827+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x297ab5=this['editor'],_0x5c8388=_0x297ab5['locale'];_0x297ab5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x223b4b=>{if('formatInline'!=_0x223b4b['type'])return;const {data:_0x1eef3b}=_0x223b4b;if(_0x1eef3b){if('link'==_0x1eef3b['commandName']){const _0x125b40=_0x1eef3b['commandParams'][0x0];return{'type':'format','content':o(_0x5c8388,'*Set\x20link:*\x20%0','\x22'+_0x125b40+'\x22')};}return'unlink'==_0x1eef3b['commandName']?{'type':'format','content':o(_0x5c8388,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x281269{['afterInit'](){const _0x4b8d23=this['editor'],_0x2bb050=_0x4b8d23['locale'];if(!_0x4b8d23['plugins']['has']('LegacyListEditing'))return;const _0x49212a=_0x4b8d23['plugins']['get']('TrackChangesEditing'),_0xc14562=_0x4b8d23['plugins']['has']('LegacyTodoListEditing');function _0xf37744(_0x4c0725){return()=>{const _0x110a7a=_0x4b8d23['model']['document']['selection'],_0x521fa0=_0x4b8d23['commands']['get'](_0x4c0725);if(_0x521fa0['value'])return void _0x4b8d23['execute']('paragraph',{});const _0x81bf84=_0x4c0725['slice'](0x0,-0x4),_0x5e74f9=function(_0x33dea5,_0x50c7b0,_0x1c5cb1){let _0x572b95=Array['from'](_0x33dea5)['filter'](_0x5980ae=>function(_0x1fe38e,_0x60ae0d){return _0x60ae0d['checkChild'](_0x1fe38e['parent'],'listItem')&&!_0x60ae0d['isObject'](_0x1fe38e);}(_0x5980ae,_0x1c5cb1));_0x572b95=_0x572b95['filter'](_0x595228=>!_0x595228['is']('element','listItem')||_0x595228['getAttribute']('listType')!=_0x50c7b0);const _0x2cbd72=new Set();for(const _0x4b3d3e of _0x572b95)_0x4b3d3e['is']('element','listItem')?_0x2cbd72['add'](Le(_0x4b3d3e)):_0x2cbd72['add'](_0x4b3d3e);return Array['from'](_0x2cbd72);}(_0x110a7a['getSelectedBlocks'](),_0x81bf84,_0x4b8d23['model']['schema']);_0x4b8d23['model']['change'](()=>{for(const _0x290d03 of _0x5e74f9)_0x49212a['markBlockFormat'](_0x290d03,{'commandName':_0x4c0725,'commandParams':[{'forceValue':!_0x521fa0['value']}],'formatGroupId':'blockName'},Ee(_0x290d03));});};}function _0x197a8c(_0x5b7393){return()=>{const _0x1ef2b5=function(_0xe4d2e5){let _0x203596=Array['from'](_0xe4d2e5);const _0x18b1b4=_0x203596['findIndex'](_0x1f27b4=>'listItem'!=_0x1f27b4['name']);return _0x18b1b4>-0x1&&(_0x203596=_0x203596['slice'](0x0,_0x18b1b4)),_0x203596;}(_0x4b8d23['model']['document']['selection']['getSelectedBlocks']()),_0x2518d2=_0x4b8d23['model']['createRange'](_0x4b8d23['model']['createPositionAt'](_0x1ef2b5[0x0],'before'),_0x4b8d23['model']['createPositionAt'](_0x1ef2b5[_0x1ef2b5['length']-0x1],'end'));_0x4b8d23['model']['change'](()=>{_0x49212a['markBlockFormat'](_0x2518d2,{'commandName':_0x5b7393,'commandParams':[],'formatGroupId':'listIndent'},function(_0x18d598){const _0x3fc700=new Set();for(const _0x14e044 of _0x18d598){let _0x221cba=_0x14e044['nextSibling'];for(;_0x221cba&&_0x221cba['getAttribute']('listIndent')>_0x14e044['getAttribute']('listIndent');)_0x3fc700['add'](_0x221cba),_0x221cba=_0x221cba['nextSibling'];}return Array['from'](_0x3fc700);}(_0x1ef2b5));});};}_0x49212a['enableCommand']('numberedList',_0xf37744('numberedList')),_0x49212a['enableCommand']('bulletedList',_0xf37744('bulletedList')),_0xc14562&&_0x49212a['enableCommand']('todoList',_0xf37744('todoList')),_0x49212a['enableCommand']('indentList',_0x197a8c('indentList')),_0x49212a['enableCommand']('outdentList',_0x197a8c('outdentList')),_0xc14562&&_0x49212a['enableCommand']('checkTodoList',()=>{const _0x20785d=_0x4b8d23['commands']['get']('checkTodoList'),_0x12e56d=Array['from'](_0x20785d['_selectedElements']);_0x12e56d['filter'](_0x4cdd53=>_0x4cdd53['getAttribute']('todoListChecked')!=_0x20785d['value']),_0x4b8d23['model']['change'](()=>{for(const _0x867c19 of _0x12e56d)_0x49212a['markBlockFormat'](_0x867c19,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x20785d['value']}]});});}),_0x49212a['descriptionFactory']['registerElementLabel']('listItem',_0x359f14=>o(_0x2bb050,'ELEMENT_LIST_ITEM',_0x359f14)),_0x49212a['descriptionFactory']['registerDescriptionCallback'](_0x5744a9=>{if('formatBlock'!=_0x5744a9['type']&&'formatInline'!=_0x5744a9['type'])return;const {data:_0x2f43a7}=_0x5744a9;if(_0x2f43a7){if('numberedList'==_0x2f43a7['commandName']||'bulletedList'==_0x2f43a7['commandName']||'todoList'==_0x2f43a7['commandName'])switch(_0x2f43a7['commandName']['replace']('List','')){case'bulleted':return _0x2b7937(o(_0x2bb050,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b7937(o(_0x2bb050,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b7937(o(_0x2bb050,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2f43a7['commandName'])return{'type':'format','content':o(_0x2bb050,'*Indent:*\x20%0',o(_0x2bb050,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2f43a7['commandName'])return{'type':'format','content':o(_0x2bb050,'*Outdent:*\x20%0',o(_0x2bb050,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2f43a7['commandName'])return _0x2f43a7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2bb050,'*Check\x20item*')}:{'type':'format','content':o(_0x2bb050,'*Uncheck\x20item*')};}function _0x2b7937(_0x610f8e){return{'type':'format','content':o(_0x2bb050,'*Change\x20to:*\x20%0',_0x610f8e)};}});}}function Le(_0x3b1364){const _0x253141=_0x3b1364['getAttribute']('listIndent');if(0x0==_0x253141)return _0x3b1364;let _0x8ccf24=_0x3b1364;for(;_0x3b1364['previousSibling']&&_0x3b1364['previousSibling']['is']('element','listItem');){const _0x540ae9=_0x3b1364['previousSibling']['getAttribute']('listIndent');if(_0x540ae9==_0x253141)_0x8ccf24=_0x3b1364['previousSibling'];else{if(_0x540ae9<_0x253141)break;}_0x3b1364=_0x3b1364['previousSibling'];}return _0x8ccf24;}function Ee(_0x129da1){const _0x4b5459=[];if(_0x129da1['is']('element','listItem')&&_0x129da1['getAttribute']('listIndent')>0x0){let _0x15e9bd=_0x129da1['nextSibling'];for(;_0x15e9bd&&'listItem'==_0x15e9bd['name']&&_0x15e9bd['getAttribute']('listIndent')==_0x129da1['getAttribute']('listIndent');)_0x4b5459['push'](_0x15e9bd),_0x15e9bd=_0x15e9bd['nextSibling'];}return _0x4b5459;}class ht extends _0x281269{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xb1c830=this['editor']['config']['get']('list.properties'),_0x747672=this['editor']['plugins']['get']('TrackChangesEditing');_0xb1c830['styles']&&_0x747672['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xb1c830['reversed']&&_0x747672['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xb1c830['startIndex']&&_0x747672['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x747672['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x20deb4,_0x295910={}){const _0x5e9d15=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bd255=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5e9d15['markMultiRangeBlockFormat'](_0x5bd255,{'commandName':'listStyle','commandParams':[{'type':_0x295910['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4589d0,_0x1e19cc={}){const _0x1f93c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x206fd3=this['_getSuggestionBlocks'](_0x3c8bdc=>_0x3c8bdc['is']('element','listItem')&&'numbered'===_0x3c8bdc['getAttribute']('listType'));if(_0x206fd3['length']<0x1)return;const _0x4cb457=_0x206fd3['map'](_0x208553=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x208553,'before'),this['editor']['model']['createPositionAt'](_0x208553,0x0)));this['editor']['model']['change'](()=>{_0x1f93c3['markMultiRangeBlockFormat'](_0x4cb457,{'commandName':'listReversed','commandParams':[{'reversed':_0x1e19cc['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3e45ad,_0x38aee9={}){const _0x38f874=this['editor']['plugins']['get']('TrackChangesEditing'),_0x518654=this['_getSuggestionBlocks'](_0x121b90=>_0x121b90['is']('element','listItem')&&'numbered'===_0x121b90['getAttribute']('listType'));if(_0x518654['length']<0x1)return;const _0x458a02=_0x518654['map'](_0x48221a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x48221a,'before'),this['editor']['model']['createPositionAt'](_0x48221a,0x0)));this['editor']['model']['change'](()=>{_0x38f874['markMultiRangeBlockFormat'](_0x458a02,{'commandName':'listStart','commandParams':[{'startIndex':_0x38aee9['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x447383){if('formatBlock'!=_0x447383['type']&&'formatInline'!=_0x447383['type'])return;const _0x502a8f=this['editor']['locale'],{data:_0x287445}=_0x447383;if(!_0x287445)return;let _0x191e48,_0x46cd62;switch(_0x287445['commandName']){case'listStyle':_0x191e48='*Change\x20to:*\x20%0',_0x46cd62={'type':'format','content':o(_0x502a8f,_0x191e48,o(_0x502a8f,this['_getTranslationKeyForListStyle'](_0x287445['commandParams'][0x0]['type'])))};break;case'listReversed':_0x191e48=_0x287445['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x46cd62={'type':'format','content':o(_0x502a8f,_0x191e48)};break;case'listStart':_0x191e48='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x46cd62={'type':'format','content':o(_0x502a8f,_0x191e48,_0x287445['commandParams'][0x0]['startIndex'])};}return _0x46cd62;}['_getSuggestionBlocksForListStyle'](){const _0xa77b8d=this['editor']['plugins']['get']('LegacyListUtils');let _0x57d3d8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x57d3d8[0x0]?.['is']('element','listItem')&&_0x57d3d8['unshift'](..._0xa77b8d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x57d3d8[_0x57d3d8['length']-0x1]?.['is']('element','listItem')&&_0x57d3d8['push'](..._0xa77b8d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x57d3d8=[...new Set(_0x57d3d8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x57d3d8=_0x57d3d8['filter'](_0x10262d=>_0x10262d['is']('element','listItem'))),_0x57d3d8;}['_getSuggestionBlocks'](_0x59b29d){const _0x81fb54=this['editor']['plugins']['get']('LegacyListUtils');let _0x1e018c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x59b29d)['map'](_0x176dcf=>{const _0x38f4df=this['editor']['model']['createPositionAt'](_0x176dcf,0x0);return[..._0x81fb54['getSiblingNodes'](_0x38f4df,'backward'),..._0x81fb54['getSiblingNodes'](_0x38f4df,'forward')];})['flat']();return _0x1e018c=[...new Set(_0x1e018c)],_0x1e018c;}['_getTranslationKeyForListStyle'](_0x52765c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x52765c)||'default')['toUpperCase']()+'_LIST_'+_0x52765c['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x281269{['afterInit'](){const _0x2a0ad6=this['editor'];if(!_0x2a0ad6['plugins']['has']('MediaEmbedEditing'))return;const _0x1cfb36=_0x2a0ad6['plugins']['get']('TrackChangesEditing'),_0x8c3f26=_0x2a0ad6['locale'];_0x1cfb36['enableCommand']('mediaEmbed'),_0x1cfb36['descriptionFactory']['registerElementLabel']('media',_0x514eb2=>o(_0x8c3f26,'ELEMENT_MEDIA',_0x514eb2)),_0x2a0ad6['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3fff68,{writer:_0x43fb7e,options:_0x532d36})=>{if(_0x532d36['showSuggestionHighlights'])return _0x43fb7e['createEmptyElement']('div');},'converterPriority':'high'}),_0x2a0ad6['data']['downcastDispatcher']['on']('attribute:url:media',(_0x32dc2a,_0x55ef7b,_0x3eb8d4)=>{_0x3eb8d4['options']['showSuggestionHighlights']&&_0x32dc2a['stop']();},{'priority':'high'});}}class lt extends _0x281269{['afterInit'](){const _0x548d76=this['editor'];_0x548d76['plugins']['has']('MentionEditing')&&_0x548d76['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x281269{['afterInit'](){const _0x3092a7=this['editor'];if(!_0x3092a7['plugins']['has']('MergeFieldsEditing'))return;const _0x139695=_0x3092a7['plugins']['get']('TrackChangesEditing'),_0x359004=_0x3092a7['locale'];_0x139695['enableCommand']('insertMergeField'),_0x139695['enableCommand']('insertMergeFieldBlock'),_0x139695['enableCommand']('insertMergeFieldImage'),_0x139695['descriptionFactory']['registerElementLabel']('mergeField',_0x430498=>o(_0x359004,'ELEMENT_MERGE_FIELD',_0x430498)),_0x139695['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xe95c07=>o(_0x359004,'ELEMENT_MERGE_FIELD',_0xe95c07)),_0x139695['descriptionFactory']['registerDescriptionCallback'](_0x268b2a=>{if('insertion'!=_0x268b2a['type']&&'deletion'!=_0x268b2a['type'])return;const _0xa85f6d=_0x268b2a['getContainedElement']();if(null==_0xa85f6d)return;const _0x559f72=_0x3092a7['plugins']['get']('MergeFieldsEditing');let _0x3e72f8;switch(_0x559f72['getMergeFieldType'](_0xa85f6d)){case null:return;case'image':{const _0x2f7667=_0x559f72['unwrapAffixes'](_0xa85f6d['getAttribute']('src'));_0x3e72f8=_0x559f72['getLabel'](_0x2f7667)||_0x2f7667;break;}default:{const _0x11aa9f=_0xa85f6d['getAttribute']('id');_0x3e72f8=_0x559f72['getLabel'](_0x11aa9f)||_0x11aa9f;break;}}return'insertion'==_0x268b2a['type']?{'type':'insertion','content':o(_0x359004,'*Insert:*\x20%0','\x22'+_0x3e72f8+'\x22\x20'+o(_0x359004,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x359004,'*Remove:*\x20%0','\x22'+_0x3e72f8+'\x22\x20'+o(_0x359004,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x281269{['afterInit'](){const _0x5f3b94=this['editor'],_0x228ab3=_0x5f3b94['plugins']['get']('TrackChangesEditing');_0x5f3b94['plugins']['has']('MultiLevelList')&&(_0x228ab3['enableDefaultAttributesIntegration']('multiLevelList'),_0x228ab3['registerBlockAttribute']('listMarkerStyle'),_0x228ab3['descriptionFactory']['registerDescriptionCallback'](_0x31272f=>this['handleDescriptions'](_0x31272f)));}['handleDescriptions'](_0x59a49f){const _0x169f65=this['editor']['locale'],{data:_0x49896f}=_0x59a49f,_0x2f9b49={'type':'format','content':''};if(_0x49896f&&'listMarkerStyle'==_0x49896f['key']){if(!_0x49896f['oldValue'])return{'type':'format','content':o(_0x169f65,'*Set\x20format:*\x20%0',o(_0x169f65,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x49896f['newValue']+')'};if(!_0x49896f['newValue']){let _0x2bf31c=_0x59a49f['head'];for(;_0x2bf31c;){if(_0x2bf31c['data']&&'listType'==_0x2bf31c['data']['key']&&_0x2bf31c['data']['newValue'])return _0x2f9b49;_0x2bf31c=_0x2bf31c['next'];}return{'type':'format','content':o(_0x169f65,'*Remove\x20format:*\x20%0',o(_0x169f65,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x49896f['oldValue']+')'};}}}}class pt extends _0x281269{['afterInit'](){const _0x3ba5a2=this['editor'];if(!_0x3ba5a2['plugins']['has']('PageBreakEditing'))return;_0x3ba5a2['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x319c49=_0x3ba5a2['plugins']['get']('TrackChangesEditing'),_0x9b07d7=_0x3ba5a2['locale'];_0x319c49['descriptionFactory']['registerElementLabel']('pageBreak',_0x298863=>o(_0x9b07d7,'ELEMENT_PAGE_BREAK',_0x298863));}}class kt extends _0x281269{['afterInit'](){const _0x281131=this['editor'];if(!_0x281131['plugins']['has']('Paragraph'))return;const _0x56b88e=_0x281131['locale'],_0x264af2=_0x281131['plugins']['get']('TrackChangesEditing');_0x264af2['descriptionFactory']['registerElementLabel']('paragraph',_0x29ffb6=>o(_0x56b88e,'ELEMENT_PARAGRAPH',_0x29ffb6)),_0x264af2['enableDefaultAttributesIntegration']('paragraph'),_0x264af2['enableCommand']('insertParagraph'),_0x281131['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x281131),{'priority':'highest'}),_0x281131['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3f6d0a,_0x377594,_0x13790f)=>{_0x13790f['options']['showSuggestionHighlights']&&nr(_0x281131,{'showActiveMarker':!0x1})(_0x3f6d0a,_0x377594,_0x13790f);},{'priority':'highest'});const _0x52c09c=_0x264af2['descriptionFactory'];_0x52c09c['registerDescriptionCallback'](_0x270ed2=>{if('insertion'!==_0x270ed2['type'])return;const {start:_0x3824b6,end:_0x2b0bad}=_0x270ed2['getFirstRange']();if(!_0x3824b6['isTouching'](_0x2b0bad)||!_0x3824b6['nodeAfter'])return;const _0x1061d5=_0x281131['model']['schema'],_0x321134=_0x3824b6['nodeAfter'];return _0x1061d5['isBlock'](_0x321134)&&!_0x1061d5['isLimit'](_0x321134)&&_0x1061d5['checkChild'](_0x321134,'$text')?{'type':'insertion','content':o(_0x56b88e,'*Insert:*\x20%0',_0x52c09c['getItemLabel'](_0x321134,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e7abf=this['editor'],_0x296741=_0x4e7abf['locale'];_0x4e7abf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1560d1=>{if('formatBlock'!=_0x1560d1['type'])return;const {data:_0x23a2e6}=_0x1560d1;return _0x23a2e6&&'paragraph'==_0x23a2e6['commandName']?{'type':'format','content':o(_0x296741,'*Change\x20to:*\x20%0',o(_0x296741,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x459907,{showActiveMarker:_0x1ada2c=!0x0}={}){return(_0x102470,_0xb93fce,_0x40dc27)=>{const _0x3a18af=_0x459907['plugins']['get']('TrackChangesEditing'),_0x2cb706=_0xb93fce['markerRange']['start'],_0xdc007c=_0xb93fce['markerRange']['end'],_0x2a5047=_0x459907['model']['schema'];if(!_0x2cb706['isTouching'](_0xdc007c)||!_0x2cb706['nodeAfter'])return;const _0x5475fe=_0x2cb706['nodeAfter'];if(_0x2a5047['isBlock'](_0x5475fe)&&!_0x2a5047['isLimit'](_0x5475fe)&&_0x2a5047['checkChild'](_0x5475fe,'$text')){if(!_0x40dc27['consumable']['consume'](_0xb93fce['markerRange'],_0x102470['name']))return;const {id:_0x41f6e6,authorId:_0x9835b5}=_0x3a18af['_splitMarkerName'](_0xb93fce['markerName']),_0x1bacaf=_0x40dc27['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x41f6e6,'data-author-id':_0x9835b5}),_0x37cc7d=_0x40dc27['mapper']['toViewPosition'](_0xdc007c);_0x1ada2c&&_0x3a18af['activeMarkers']['includes'](_0xb93fce['markerName'])&&_0x40dc27['writer']['addClass']('ck-suggestion-marker--active',_0x1bacaf),_0x40dc27['writer']['insert'](_0x37cc7d,_0x1bacaf),_0x40dc27['mapper']['bindElementToMarker'](_0x1bacaf,_0xb93fce['markerName']);}};}class wt extends _0x281269{['afterInit'](){const _0x10df06=this['editor'];_0x10df06['commands']['get']('replaceSource')&&_0x10df06['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x281269{['afterInit'](){const _0x5f220c=this['editor'];if(!_0x5f220c['plugins']['has']('RemoveFormatEditing'))return;_0x5f220c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b0003=this['editor'];_0x5b0003['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x90920f=>{if('formatBlock'!=_0x90920f['type']&&'formatInline'!=_0x90920f['type'])return;const {data:_0x5425f0}=_0x90920f;return _0x5425f0&&'removeFormat'==_0x5425f0['commandName']?{'type':'format','content':o(_0x5b0003['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x281269{['afterInit'](){const _0x524e06=this['editor'];if(!_0x524e06['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x203457=_0x524e06['plugins']['get']('TrackChangesEditing');_0x203457['enableCommand']('goToPreviousRestrictedEditingException'),_0x203457['enableCommand']('goToNextRestrictedEditingException');const _0x4ca23d=_0x524e06['plugins']['get']('RestrictedEditingModeEditing');_0x4ca23d['enableCommand']('trackChanges'),_0x4ca23d['enableCommand']('acceptSuggestion'),_0x4ca23d['enableCommand']('discardSuggestion'),_0x4ca23d['enableCommand']('acceptAllSuggestions'),_0x4ca23d['enableCommand']('discardAllSuggestions'),_0x4ca23d['enableCommand']('acceptSelectedSuggestions'),_0x4ca23d['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x281269{['afterInit'](){const _0x2fbec2=this['editor'];if(!_0x2fbec2['plugins']['has']('ShiftEnter'))return;const _0x26ece7=_0x2fbec2['plugins']['get']('TrackChangesEditing');_0x26ece7['enableCommand']('shiftEnter'),_0x2fbec2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2fbec2),{'priority':'high'}),_0x2fbec2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2fbec2),{'priority':'high'}),_0x2fbec2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x307857,_0x34dadb,_0x4c03f9)=>{_0x4c03f9['options']['showSuggestionHighlights']&&je(_0x2fbec2,{'showActiveMarker':!0x1})(_0x307857,_0x34dadb,_0x4c03f9);}),_0x26ece7['descriptionFactory']['registerElementLabel']('softBreak',_0x5acf47=>o(_0x2fbec2['locale'],'ELEMENT_LINE_BREAK',_0x5acf47));}}function je(_0x5a526f,{showActiveMarker:_0x415a38=!0x0}={}){return(_0x53ee72,_0x2e82df,_0xd9bc7f)=>{const _0x2cddbb=_0x5a526f['plugins']['get']('TrackChangesEditing');if(!_0xd9bc7f['consumable']['test'](_0x2e82df['markerRange'],_0x53ee72['name']))return;const _0x2f879c=_0x5a526f['model'];for(const _0x1973ce of _0x2e82df['markerRange']['getItems']()){if(!_0x1973ce['is']('element','softBreak'))continue;const _0x508509='deletion'==_0x2e82df['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x254df3,authorId:_0x442214}=_0x2cddbb['_splitMarkerName'](_0x2e82df['markerName']),_0x282e5b=_0xd9bc7f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x508509,'data-suggestion':_0x254df3,'data-author-id':_0x442214}),_0x38c714=_0xd9bc7f['mapper']['toViewPosition'](_0x2f879c['createPositionBefore'](_0x1973ce));_0x415a38&&_0x2cddbb['activeMarkers']['includes'](_0x2e82df['markerName'])&&_0xd9bc7f['writer']['addClass']('ck-suggestion-marker--active',_0x282e5b),_0xd9bc7f['writer']['insert'](_0x38c714,_0x282e5b),_0xd9bc7f['mapper']['bindElementToMarker'](_0x282e5b,_0x2e82df['markerName']);}};}class St extends _0x281269{['afterInit'](){const _0x40070f=this['editor'],_0x523b3e=_0x40070f['model'],_0x52eae1=_0x40070f['locale'];if(!_0x40070f['plugins']['has']('StandardEditingModeEditing'))return;const _0x234b5a=_0x40070f['plugins']['get']('TrackChangesEditing'),_0x2c04f9='restrictedEditingException',_0x4ee852=_0x40070f['commands']['get'](_0x2c04f9);_0x234b5a['enableCommand'](_0x2c04f9,(_0x1ea005,_0x1287ef={})=>{const _0x3ee097=_0x523b3e['document']['selection'];if(_0x3ee097['isCollapsed'])return void _0x1ea005(_0x1287ef);const _0x2c855e=void 0x0!==_0x1287ef['forceValue']?_0x1287ef['forceValue']:!_0x4ee852['value'];_0x523b3e['change'](()=>{const _0x242e80=Array['from'](_0x3ee097['getRanges']());for(const _0x47ec99 of _0x242e80){const _0x1d4bec=_0x2c855e?[_0x47ec99]:io(_0x2c04f9,_0x47ec99,_0x523b3e);for(const _0xed1250 of _0x1d4bec)_0x234b5a['markInlineFormat'](_0xed1250,{'commandName':_0x2c04f9,'commandParams':[{'forceValue':_0x2c855e}]});}});}),_0x234b5a['descriptionFactory']['registerDescriptionCallback'](_0x50dc2f=>{if('formatBlock'!=_0x50dc2f['type']&&'formatInline'!=_0x50dc2f['type'])return;const {data:_0x464b75}=_0x50dc2f;return _0x464b75&&_0x464b75['commandName']==_0x2c04f9?_0x464b75['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52eae1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x52eae1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x281269{['afterInit'](){const _0x118c34=this['editor'];if(!_0x118c34['plugins']['has']('Style')||!_0x118c34['plugins']['has']('DataSchema'))return;const _0x596edb=_0x118c34['plugins']['get']('TrackChangesEditing'),_0x404464=_0x118c34['locale'],_0x158b75=_0x118c34['config']['get']('style')||{},_0x485681=_0x118c34['plugins']['get']('GeneralHtmlSupport'),_0x277240=_0x118c34['plugins']['get']('StyleUtils')['normalizeConfig'](_0x118c34['plugins']['get']('DataSchema'),_0x158b75['definitions']);_0x596edb['enableDefaultAttributesIntegration']('style');const _0x4337c9=new Set();for(const _0x57dd23 of _0x277240['block']){const _0x4fa0e5=_0x485681['getGhsAttributeNameForElement'](_0x57dd23['element']);_0x4337c9['add'](_0x4fa0e5);}const _0xbbd0f8=new Set();for(const _0x4edf88 of _0x277240['inline']){const _0x120650=_0x485681['getGhsAttributeNameForElement'](_0x4edf88['element']);_0xbbd0f8['add'](_0x120650);for(const _0x263235 of _0x4edf88['ghsAttributes'])_0xbbd0f8['add'](_0x263235);}for(const _0x5cb6e3 of _0x4337c9)_0x596edb['registerBlockAttribute'](_0x5cb6e3),_0x596edb['descriptionFactory']['registerAttributeLabel'](_0x5cb6e3,o(_0x404464,'FORMAT_STYLE'));for(const _0x1ab8f5 of _0xbbd0f8)_0x596edb['registerInlineAttribute'](_0x1ab8f5),_0x596edb['descriptionFactory']['registerAttributeLabel'](_0x1ab8f5,o(_0x404464,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ae6a3=this['editor'],_0x1c6d61=_0x4ae6a3['locale'];_0x4ae6a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43b4ed=>{if('formatBlock'!=_0x43b4ed['type']&&'formatInline'!=_0x43b4ed['type'])return;const {data:_0xe7a74f}=_0x43b4ed;return _0xe7a74f&&'style'===_0xe7a74f['commandName']?_0xe7a74f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c6d61,'*Set\x20format:*\x20%0',_0xe7a74f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1c6d61,'*Remove\x20format:*\x20%0',_0xe7a74f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x281269{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x25a69b){super(_0x25a69b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4842af=this['editor'],_0x2d2c16=_0x4842af['model']['document']['selection'];if(!_0x4842af['plugins']['has']('TableEditing'))return;const _0x578991=_0x4842af['locale'],_0x2ef81a=_0x4842af['plugins']['get']('TrackChangesEditing'),_0x330fd3=_0x4842af['plugins']['get']('TableUtils');_0x2ef81a['descriptionFactory']['registerElementLabel']('table',_0x3abd98=>o(_0x578991,'ELEMENT_TABLE',_0x3abd98)),this['_setupColumnsRowsFixing'](),_0x2ef81a['enableCommand']('insertTable'),_0x2ef81a['enableCommand']('selectTableRow'),_0x2ef81a['enableCommand']('selectTableColumn');for(const _0x563434 of['insertTableRowAbove','insertTableRowBelow']){const _0x595527=_0x4842af['commands']['get'](_0x563434);_0x2ef81a['enableCommand'](_0x563434,_0x19efa4=>{_0x4842af['model']['change'](_0xfc7a2d=>{_0x19efa4();const _0x4b2569='above'===_0x595527['order'],_0x3671d5=_0x330fd3['getSelectionAffectedTableCells'](_0x2d2c16),_0x331597=_0x330fd3['getRowIndexes'](_0x3671d5),_0x53ab63=_0x4b2569?_0x331597['first']-0x1:_0x331597['last']+0x1,_0xd57b00=_0x3671d5[0x0]['findAncestor']('table'),_0x5d0289=_0x330fd3['createTableWalker'](_0xd57b00,{'startRow':_0x53ab63,'endRow':_0x53ab63}),_0x21e572=Array['from'](_0x5d0289)['map'](_0x54c4af=>_0xfc7a2d['createRangeOn'](_0x54c4af['cell']));_0x2ef81a['markMultiRangeInsertion'](_0x21e572,'tableRow');});});}for(const _0x143ceb of['insertTableColumnLeft','insertTableColumnRight']){const _0x12bd19=_0x4842af['commands']['get'](_0x143ceb);_0x2ef81a['enableCommand'](_0x143ceb,_0x288aec=>{_0x4842af['model']['change'](_0x234269=>{_0x288aec();const _0x157dc6='left'===_0x12bd19['order'],_0x479288=_0x330fd3['getSelectionAffectedTableCells'](_0x2d2c16),_0x41c701=_0x330fd3['getColumnIndexes'](_0x479288),_0x4db755=_0x157dc6?_0x41c701['first']-0x1:_0x41c701['last']+0x1,_0x5b44b0=_0x479288[0x0]['findAncestor']('table'),_0x311f2c=_0x330fd3['createTableWalker'](_0x5b44b0,{'startRow':0x0,'column':_0x4db755,'includeAllSlots':!0x1}),_0x9ce5d9=Array['from'](_0x311f2c)['map'](_0x1c4f9a=>_0x234269['createRangeOn'](_0x1c4f9a['cell']));_0x2ef81a['markMultiRangeInsertion'](_0x9ce5d9,'tableColumn');});});}for(const _0x30da3f of['removeTableRow','removeTableColumn']){const _0x4fc56e=_0x30da3f['substr'](0xb),_0x3b6795=_0x4fc56e['toLowerCase'](),_0x1178ff=_0x3b6795['substr'](0x0,0x3)+'span',_0x501458='table'+_0x4fc56e,_0xfda312='min'+_0x4fc56e,_0x2d004e='max'+_0x4fc56e;_0x2ef81a['enableCommand'](_0x30da3f,()=>{_0x4842af['model']['change'](_0x37e182=>{const _0x2d891e=_0x330fd3['getSelectionAffectedTableCells'](_0x2d2c16),_0x240634=_0x2d891e[0x0]['findAncestor']('table');let _0x1a98b7;if('removeTableRow'==_0x30da3f){const _0x2c16b2=_0x330fd3['getRowIndexes'](_0x2d891e);_0x1a98b7={'startRow':_0x2c16b2['first'],'endRow':_0x2c16b2['last'],'includeAllSlots':!0x0};}else{const _0x15c43d=_0x330fd3['getColumnIndexes'](_0x2d891e);_0x1a98b7={'startColumn':_0x15c43d['first'],'endColumn':_0x15c43d['last'],'includeAllSlots':!0x0};}const _0x4b7fee=_0x330fd3['createTableWalker'](_0x240634,_0x1a98b7),_0x91d0d2=Array['from'](_0x4b7fee)['map'](({cell:_0x4079d9})=>_0x4079d9),_0x551371=Ne(_0x91d0d2['filter'](_0x51bd5c=>_0x51bd5c['hasAttribute'](_0x1178ff))),_0x5e8f66=Ne(_0x91d0d2['filter'](_0x4ac5df=>!_0x4ac5df['hasAttribute'](_0x1178ff)))['map'](_0x26c75e=>_0x37e182['createRangeOn'](_0x26c75e)),_0x22f226=_0x2ef81a['markMultiRangeDeletion'](_0x5e8f66,_0x501458);if(_0x22f226&&('tableRow'==_0x22f226['subType']||'tableColumn'==_0x22f226['subType'])){const _0x5a2c41=this['_getSuggestionCoords'](_0x22f226);for(const _0x168913 of _0x551371){const _0x247557=_0x37e182['createRangeOn'](_0x168913),_0x184019=_0x330fd3['getCellLocation'](_0x168913),_0x42f16c=_0x168913['getAttribute'](_0x1178ff)-0x1,_0x457234=_0x5a2c41[_0xfda312],_0x56458f=_0x5a2c41[_0x2d004e];_0x457234<=_0x184019[_0x3b6795]&&_0x184019[_0x3b6795]+_0x42f16c<=_0x56458f&&_0x22f226['addRange'](_0x247557);}}});});}function _0x18e475(_0x59b250){const _0x1fe554=Array['from'](_0x2d2c16['getRanges']())['map'](_0x1cb763=>_0x39990b['fromRange'](_0x1cb763));_0x4842af['model']['change'](_0x29430c=>{const _0x37bef4=_0x29430c['batch'];_0x59b250=_0x59b250['filter'](_0x19cd0d=>'$graveyard'!=_0x19cd0d['root']['rootName']),_0x29430c['setSelection'](_0x59b250),_0x4842af['commands']['get']('removeTableRow')['refresh'](),_0x4842af['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4842af['model']['enqueueChange'](()=>{_0x4842af['model']['enqueueChange'](_0x37bef4,_0x19248f=>{const _0x5d1532=_0x1fe554['filter'](_0x7ea775=>'$graveyard'!=_0x7ea775['root']['rootName']);_0x5d1532['length']>0x0&&_0x19248f['setSelection'](_0x5d1532);for(const _0x421f41 of _0x1fe554)_0x421f41['detach']();});});});}function _0x3281b3(_0x52224e){_0x4842af['model']['change'](_0x422535=>{const _0x1872de=Array['from'](_0x2d2c16['getRanges']())['map'](_0x5ec370=>_0x39990b['fromRange'](_0x5ec370)),_0x3afa4b=[];for(const _0x49cec3 of _0x52224e)for(const _0x104ec7 of _0x49cec3['getItems']({'shallow':!0x0}))_0x3afa4b['push'](_0x104ec7);for(const _0x4207c4 of _0x3afa4b)'$graveyard'!=_0x4207c4['root']['rootName']&&(_0x422535['setSelection'](_0x422535['createPositionAt'](_0x4207c4,0x0)),_0x4842af['commands']['get']('removeTableColumn')['refresh'](),_0x4842af['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x16ced8=_0x1872de['filter'](_0x50bfda=>'$graveyard'!=_0x50bfda['root']['rootName']);_0x16ced8['length']>0x0&&_0x422535['setSelection'](_0x16ced8);for(const _0x4b554a of _0x1872de)_0x4b554a['detach']();});}function _0x1f2053(_0x1bf914,_0x39b787){return _0x39b787['every'](_0x56a507=>_0x1bf914['some'](_0x1b43c2=>_0x1b43c2['end']['isEqual'](_0x56a507['start'])||_0x56a507['end']['isEqual'](_0x1b43c2['start'])));}function _0x2f76a3(_0xf73903,_0x5d8d04){return!_0xf73903['some'](_0x1c51e3=>_0x5d8d04['some'](_0x3c223d=>_0x1c51e3['isIntersecting'](_0x3c223d)))&&_0xf73903['some'](_0x36673c=>_0x5d8d04['some'](_0x974fc0=>_0x36673c['end']['isTouching'](_0x974fc0['start'])));}_0x4842af['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x497908,_0xe4f5f,_0x55e650)=>{if(!_0x55e650['options']['showSuggestionHighlights'])return;const _0x1f09ad=_0xe4f5f['item'];if(!_0x1f09ad||!_0x1f09ad['is']('element','tableCell'))return;const _0x1b6e91=_0x55e650['mapper']['toViewElement'](_0x1f09ad);if(_0x1b6e91){const {id:_0x511a32,authorId:_0x421ea9}=_0x2ef81a['_splitMarkerName'](_0xe4f5f['markerName']);_0x2168c1(_0x1b6e91,_0x55e650['writer'],(_0x295d94,_0x289389,_0x439806)=>{_0x439806['addClass'](_0xe8be38(_0x289389['classes']),_0x295d94),_0x439806['setAttribute']('data-suggestion-id',_0x511a32,_0x295d94),_0x439806['setAttribute']('data-author-id',_0x421ea9,_0x295d94);},(_0x19aa81,_0x30f487,_0x599cd6)=>{_0x599cd6['removeClass'](_0xe8be38(_0x30f487['classes']),_0x19aa81),_0x599cd6['removeAttribute']('data-suggestion-id',_0x19aa81),_0x599cd6['removeAttribute']('data-author-id',_0x19aa81);});}},{'priority':'highest'}),_0x2ef81a['descriptionFactory']['registerDescriptionCallback'](_0xa11922=>{if('insertion'!=_0xa11922['type']&&'deletion'!=_0xa11922['type'])return;const _0x3f9aff=_0xa11922['getContainedElement']();if(null!=_0x3f9aff&&_0x3f9aff['is']('element','table')){if('insertion'==_0xa11922['type']){const _0x47acf5=_0xa11922['getItems']()['filter'](_0x1b6532=>_0x1b6532['is']('$textProxy'))['map'](_0x4ce964=>_0x4ce964['data']);if(_0x47acf5['length'])return{'type':'insertion','content':o(_0x578991,'*Insert:*\x20%0',o(_0x578991,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x47acf5['join']('\x20')+'\x22'))};}if('deletion'==_0xa11922['type']){const _0x2c06e7=_0xa11922['getItems']()['filter'](_0x2fdc68=>_0x2fdc68['is']('$textProxy'))['map'](_0x21d473=>_0x21d473['data']);if(_0x2c06e7['length'])return{'type':'deletion','content':o(_0x578991,'*Remove:*\x20%0',o(_0x578991,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2c06e7['join']('\x20')+'\x22'))};}}}),_0x2ef81a['descriptionFactory']['registerDescriptionCallback'](_0x1fce91=>{if('tableRow'==_0x1fce91['subType']){const _0x249457=_0x1fce91['getItems']()['filter'](_0x2b729d=>_0x2b729d['is']('$textProxy'))['map'](_0x290da7=>_0x290da7['data']),_0x337423=this['_getSuggestionCoords'](_0x1fce91),_0x27623f=_0x337423['maxRow']-_0x337423['minRow']+0x1;if('insertion'==_0x1fce91['type'])return _0x249457['length']?{'type':'insertion','content':o(_0x578991,'*Insert:*\x20%0',o(_0x578991,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x27623f,'\x22'+_0x249457['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x578991,'*Insert:*\x20%0',o(_0x578991,'ELEMENT_TABLE_ROW',_0x27623f))};if('deletion'==_0x1fce91['type'])return _0x249457['length']?{'type':'deletion','content':o(_0x578991,'*Remove:*\x20%0',o(_0x578991,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x27623f,'\x22'+_0x249457['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x578991,'*Remove:*\x20%0',o(_0x578991,'ELEMENT_TABLE_ROW',_0x27623f))};}if('tableColumn'==_0x1fce91['subType']){const _0x5b1ea8=_0x1fce91['getItems']()['filter'](_0x3865c5=>_0x3865c5['is']('$textProxy'))['map'](_0x4e0ddf=>_0x4e0ddf['data']),_0x506ecf=this['_getSuggestionCoords'](_0x1fce91),_0x1c158a=_0x506ecf['maxColumn']-_0x506ecf['minColumn']+0x1;if('insertion'==_0x1fce91['type'])return _0x5b1ea8['length']?{'type':'insertion','content':o(_0x578991,'*Insert:*\x20%0',o(_0x578991,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1c158a,'\x22'+_0x5b1ea8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x578991,'*Insert:*\x20%0',o(_0x578991,'ELEMENT_TABLE_COLUMN',_0x1c158a))};if('deletion'==_0x1fce91['type'])return _0x5b1ea8['length']?{'type':'deletion','content':o(_0x578991,'*Remove:*\x20%0',o(_0x578991,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1c158a,'\x22'+_0x5b1ea8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x578991,'*Remove:*\x20%0',o(_0x578991,'ELEMENT_TABLE_COLUMN',_0x1c158a))};}}),_0x2ef81a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x18e475),_0x2ef81a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x18e475),_0x2ef81a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3281b3),_0x2ef81a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3281b3),_0x2ef81a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1f2053),_0x2ef81a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1f2053),_0x2ef81a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2f76a3),_0x2ef81a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2f76a3);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4207fe=this['editor'],_0xa7fa2a=_0x4207fe['model']['document']['selection'];return(_0x2e3970,_0x15a079)=>{_0x4207fe['model']['change'](_0x202b08=>{const {commandName:_0x5e6a7a,commandParams:_0x5ba93d}=_0x15a079;let _0xe9b9d2=_0x2e3970[0x0]['end']['nodeBefore'];_0x5ba93d&&_0x5ba93d[0x0]&&!0x1===_0x5ba93d[0x0]['forceValue']&&(_0xe9b9d2=_0x2e3970[0x0]['start']['nodeAfter']);const _0x385456=_0x202b08['createRangeIn'](_0xe9b9d2);if('$graveyard'==_0x385456['root']['rootName'])return;const _0x1474ab=Array['from'](_0xa7fa2a['getRanges']())['map'](_0x27e729=>_0x39990b['fromRange'](_0x27e729));_0x202b08['setSelection'](_0x385456),_0x4207fe['commands']['get'](_0x5e6a7a)['refresh'](),_0x5ba93d['push']({'forceDefaultExecution':!0x0}),_0x4207fe['execute'](_0x5e6a7a,..._0x5ba93d);const _0x5ea574=_0x1474ab['filter'](_0x45b513=>'$graveyard'!=_0x45b513['root']['rootName']);_0x5ea574['length']>0x0&&_0x202b08['setSelection'](_0x5ea574);for(const _0x1cc335 of _0x1474ab)_0x1cc335['detach']();});};}['_getCoordsForCells'](_0x204ca7){const _0x121701=this['editor']['plugins']['get']('TableUtils');let _0x7a35e9=Number['MAX_SAFE_INTEGER'],_0x20f990=Number['MIN_SAFE_INTEGER'],_0x497d0b=Number['MAX_SAFE_INTEGER'],_0x121d71=Number['MIN_SAFE_INTEGER'];for(const _0x463a86 of _0x204ca7){if('$graveyard'==_0x463a86['root']['rootName'])continue;const {row:_0x5382e1,column:_0x50f503}=_0x121701['getCellLocation'](_0x463a86),_0x3efadd=_0x463a86['hasAttribute']('rowspan')?_0x463a86['getAttribute']('rowspan')-0x1:0x0,_0x304e41=_0x463a86['hasAttribute']('colspan')?_0x463a86['getAttribute']('colspan')-0x1:0x0;_0x7a35e9=_0x5382e1<_0x7a35e9?_0x5382e1:_0x7a35e9,_0x20f990=_0x5382e1+_0x3efadd>_0x20f990?_0x5382e1+_0x3efadd:_0x20f990,_0x497d0b=_0x50f503<_0x497d0b?_0x50f503:_0x497d0b,_0x121d71=_0x50f503+_0x304e41>_0x121d71?_0x50f503+_0x304e41:_0x121d71;}return{'minRow':_0x7a35e9,'maxRow':_0x20f990,'minColumn':_0x497d0b,'maxColumn':_0x121d71};}['_setupColumnsRowsFixing'](){const _0xb2fcc1=this['editor'],_0x1a45b8=_0xb2fcc1['plugins']['get']('TrackChangesEditing'),_0x749ec0=_0xb2fcc1['plugins']['get']('TableUtils');_0xb2fcc1['model']['document']['on']('change:data',()=>{const _0x303ebe=Array['from'](_0xb2fcc1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x218e4d,data:_0x52c61b}of _0x303ebe){const {group:_0x4a8f76,id:_0x3c1228,subType:_0x205fca}=_0x1a45b8['_splitMarkerName'](_0x218e4d);if('suggestion'!=_0x4a8f76)continue;if(null!=_0x52c61b['oldRange'])continue;const _0x11cbed=_0x1a45b8['getSuggestion'](_0x3c1228);this['_tablePostFixingSubtypes']['includes'](_0x205fca)&&this['_tableSuggestions']['add'](_0x11cbed);}},{'priority':'low'});const _0x1a529c=(_0x419f8f,_0xa4ede1)=>{let _0x1c53ab=!0x1;const _0x223641=_0xa4ede1['createRangeOn'](_0x419f8f),_0x39dd73=_0x419f8f['findAncestor']('table'),_0x1eb119=_0x749ec0['getCellLocation'](_0x419f8f);for(const _0x595adf of this['_tableSuggestions']){const _0x3c0d25=_0x595adf['subType'],_0x357645=_0x3c0d25['startsWith']('tablePaste'),_0x561ef4=_0x3c0d25['substr'](_0x357645?0xa:0x5),_0xdb80e8=_0x561ef4['toLowerCase'](),_0x352777=_0xdb80e8['substr'](0x0,0x3)+'span',_0x2d6d46='min'+_0x561ef4,_0x21a686='max'+_0x561ef4;if(!_0x595adf['isInContent'])continue;if(_0x39dd73!=_0x595adf['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x595adf['isIntersectingWithRange'](_0x223641))continue;const _0x3dd582=_0x419f8f['hasAttribute'](_0x352777)?_0x419f8f['getAttribute'](_0x352777)-0x1:0x0,_0x10c86f=this['_getSuggestionCoords'](_0x595adf),_0x58a5f4=_0x10c86f[_0x2d6d46],_0x6be07c=_0x10c86f[_0x21a686];_0x58a5f4<=_0x1eb119[_0xdb80e8]&&_0x1eb119[_0xdb80e8]+_0x3dd582<=_0x6be07c&&(_0x595adf['addRange'](_0x223641),_0x1c53ab=!0x0);}return _0x1c53ab;};_0xb2fcc1['model']['document']['registerPostFixer'](_0x1e40e1=>{let _0x4b0b64=!0x1;for(const _0x3ee231 of _0xb2fcc1['model']['document']['differ']['getChanges']())if('insert'==_0x3ee231['type']){if('tableRow'==_0x3ee231['name']){for(const _0xf85c9a of _0x3ee231['position']['nodeAfter']['getChildren']())_0x4b0b64=_0x4b0b64||_0x1a529c(_0xf85c9a,_0x1e40e1);}else'tableCell'==_0x3ee231['name']&&(_0x4b0b64=_0x4b0b64||_0x1a529c(_0x3ee231['position']['nodeAfter'],_0x1e40e1));}return _0x4b0b64;});}['_getSuggestionCoords'](_0xd6a76f){return this['_getCoordsForCells'](_0xd6a76f['getRanges']()['map'](_0xdf194=>_0xdf194['start']['nodeAfter']));}}function Ne(_0x46996d){return Array['from'](new Set(_0x46996d)['values']());}class _t extends _0x281269{static get['requires'](){return[At];}['afterInit'](){const _0x2a2cbc=this['editor'],_0x300029=_0x2a2cbc['model']['document']['selection'],_0x4af492=_0x2a2cbc['locale'];if(!_0x2a2cbc['plugins']['has']('TableEditing'))return;const _0x3c352e=_0x2a2cbc['plugins']['get']('TrackChangesEditing'),_0x1182a6=_0x2a2cbc['plugins']['get']('TableUtils'),_0x201b32=_0x2a2cbc['plugins']['get'](At);_0x201b32['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3c352e['enableCommand']('mergeTableCells',()=>{const _0xa1bad2=_0x1182a6['getSelectionAffectedTableCells'](_0x2a2cbc['model']['document']['selection']);_0x2a2cbc['model']['change'](()=>{_0x3c352e['markMultiRangeBlockFormat'](_0xa1bad2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2a2cbc['commands']['get']('mergeTableCells')['on']('execute',(_0xc034ae,_0x62d38d)=>{_0x2a2cbc['commands']['get']('trackChanges')['value']&&(_0x62d38d['length']>0x0&&_0x62d38d[_0x62d38d['length']-0x1]&&_0x62d38d[_0x62d38d['length']-0x1]['forceDefaultExecution']||_0x3c352e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xc034ae['stop']());},{'priority':'highest'});for(const _0x3ccea0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1fcb2f=_0x2a2cbc['commands']['get'](_0x3ccea0);_0x3c352e['enableCommand'](_0x3ccea0,()=>{const _0x22a435=_0x2a2cbc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2a22c3=>_0x2a22c3['is']('element','tableCell')),_0x391b37=_0x1fcb2f['value'];_0x2a2cbc['model']['change'](()=>{_0x3c352e['markMultiRangeBlockFormat']([_0x22a435,_0x391b37],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1b4e9f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2be88e=_0x2a2cbc['commands']['get'](_0x1b4e9f);_0x3c352e['enableCommand'](_0x1b4e9f,()=>{const _0x475c58=_0x1182a6['getSelectionAffectedTableCells'](_0x2a2cbc['model']['document']['selection'])[0x0],_0x25c8ad=_0x475c58['findAncestor']('table'),{column:_0x3a62c2,row:_0x2411a0}=_0x1182a6['getCellLocation'](_0x475c58);let _0x4b0d1f=[];if('horizontally'==_0x2be88e['direction']){const _0x129a47=_0x1182a6['createTableWalker'](_0x25c8ad,{'startRow':_0x2411a0,'endRow':_0x2411a0,'includeAllSlots':!0x0});_0x4b0d1f=Array['from'](_0x129a47)['map'](_0x544e39=>_0x544e39['cell']);}else{const _0x317ec9=_0x1182a6['createTableWalker'](_0x25c8ad,{'column':_0x3a62c2,'includeAllSlots':!0x0});_0x4b0d1f=Array['from'](_0x317ec9)['map'](_0x3f3084=>_0x3f3084['cell']);}_0x2a2cbc['model']['change'](_0x48c99b=>{_0x3c352e['markBlockFormat'](_0x48c99b['createRangeOn'](_0x475c58),{'commandName':_0x1b4e9f,'commandParams':[]},_0x4b0d1f,_0x1b4e9f);});});}_0x3c352e['descriptionFactory']['registerDescriptionCallback'](_0x1c4ea6=>{if('formatBlock'!=_0x1c4ea6['type']&&'formatInline'!=_0x1c4ea6['type'])return;const {data:_0x4a93cc}=_0x1c4ea6;return _0x4a93cc&&'mergeTableCells'==_0x4a93cc['commandName']?{'type':'format','content':o(_0x4af492,'*Merge\x20cells*')}:void 0x0;}),_0x3c352e['descriptionFactory']['registerDescriptionCallback'](_0x371758=>{if('formatBlock'!=_0x371758['type']&&'formatInline'!=_0x371758['type'])return;const {data:_0x2589b7}=_0x371758;return _0x2589b7?'splitTableCellVertically'==_0x2589b7['commandName']?{'type':'format','content':o(_0x4af492,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2589b7['commandName']?{'type':'format','content':o(_0x4af492,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x89be82=_0x201b32['_acceptFormatSuggestionCallbackFactory']();for(const _0x2bcb3b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3c352e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2bcb3b,'accept',_0x89be82);for(const _0x1f59fc of['splitTableCellVertically','splitTableCellHorizontally'])_0x3c352e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f59fc,'accept',_0x89be82);_0x3c352e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x46b1b1=>{_0x2a2cbc['model']['change'](_0x2df03e=>{const _0x5a4cbc=Array['from'](_0x300029['getRanges']())['map'](_0x6007e5=>_0x39990b['fromRange'](_0x6007e5));_0x2df03e['setSelection'](_0x46b1b1),_0x2a2cbc['commands']['get']('mergeTableCells')['refresh'](),_0x2a2cbc['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5e09d1=_0x5a4cbc['filter'](_0x4730cd=>'$graveyard'!=_0x4730cd['root']['rootName']);_0x5e09d1['length']>0x0&&_0x2df03e['setSelection'](_0x5e09d1);for(const _0x3b8512 of _0x5a4cbc)_0x3b8512['detach']();});});for(const _0x12c0b9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x341519=_0x2a2cbc['commands']['get'](_0x12c0b9);_0x341519['on']('set:isEnabled',(_0x127163,_0x5510f3,_0xd43881)=>{if(_0xd43881){const _0x27d6f0=_0x2a2cbc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x321374=>_0x321374['is']('element','tableCell'));this['_areMergableCells'](_0x341519['value'],_0x27d6f0)||(_0x127163['return']=!0x1,_0x127163['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x41c251=this['editor']['commands']['get']('mergeTableCells'),_0x4186ce=this['editor']['plugins']['get']('TableUtils');if(!_0x41c251['isEnabled'])return!0x1;const _0x144fe2=_0x4186ce['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xea1fb1 of _0x144fe2)for(const _0xb32f54 of _0x144fe2)if(_0xea1fb1!=_0xb32f54&&!this['_areMergableCells'](_0xea1fb1,_0xb32f54))return!0x1;return!0x0;}['_areMergableCells'](_0x3dc651,_0x404cb0){const _0x276c32=this['editor']['plugins']['get']('TrackChangesEditing'),_0x241a1c=this['editor']['model']['createRangeOn'](_0x3dc651),_0x86cdf5=this['editor']['model']['createRangeOn'](_0x404cb0),_0x31cac6=new Set(),_0x2e3674=new Set();for(const _0x1fcdec of _0x276c32['getSuggestions']())if(('insertion'==_0x1fcdec['type']||'deletion'==_0x1fcdec['type']||'mergeTableCells'==_0x1fcdec['subType'])&&_0x1fcdec['isInContent']){for(const _0x4c3186 of _0x1fcdec['getRanges']())_0x4c3186['containsRange'](_0x241a1c,!0x0)&&_0x31cac6['add'](_0x1fcdec['type']+':'+_0x1fcdec['author']['id']),_0x4c3186['containsRange'](_0x86cdf5,!0x0)&&_0x2e3674['add'](_0x1fcdec['type']+':'+_0x1fcdec['author']['id']);}if(_0x31cac6['size']!=_0x2e3674['size'])return!0x1;for(const _0x55402f of _0x31cac6)if(!_0x2e3674['has'](_0x55402f))return!0x1;return!0x0;}}class Ct extends _0x281269{static get['requires'](){return[At];}['afterInit'](){const _0x4feb2c=this['editor'];if(!_0x4feb2c['plugins']['has']('TableEditing'))return;const _0x527b97=_0x4feb2c['locale'],_0x4bdf90=_0x4feb2c['plugins']['get']('TrackChangesEditing');_0x4bdf90['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4bdf90['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4bdf90['registerBlockAttribute']('headingRows'),_0x4bdf90['registerBlockAttribute']('headingColumns'),_0x4bdf90['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x527b97,'FORMAT_HEADER_ROW')),_0x4bdf90['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x527b97,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xe1cf26=this['editor']['plugins']['get']('TrackChangesEditing'),_0x349699=this['editor']['plugins']['get']('TableUtils'),_0xc0bb4d=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x2b4b2f({showActiveMarker:_0x50d8db=!0x0,setDataAttribute:_0x27cfb2=!0x0}={}){return(_0x263c2d,_0x44acba,_0x3c4dc0)=>{const {type:_0x3e8f23,id:_0x44e282}=_0xe1cf26['_splitMarkerName'](_0x44acba['markerName']),_0x4779c6=_0xe1cf26['getSuggestion'](_0x44e282),_0x33ac9f=_0x4779c6['data'];if('formatBlock'!=_0x4779c6['type']||!_0x33ac9f||'setTableColumnHeader'!=_0x33ac9f['commandName'])return;if(_0x44acba['item'])return void _0x263c2d['stop']();if(!_0x3c4dc0['consumable']['consume'](_0x44acba['markerRange'],_0x263c2d['name']))return;const _0xc845eb=_0x44acba['markerRange']['start']['nodeAfter'],_0x4b9a7d=_0x44acba['markerRange']['end']['nodeBefore'],_0x527bdd=_0xc845eb['parent']['parent'],{column:_0xb65c02}=_0x349699['getCellLocation'](_0xc845eb),{column:_0x5cec56}=_0x349699['getCellLocation'](_0x4b9a7d);for(let _0x5880b9=_0xb65c02;_0x5880b9<=_0x5cec56;_0x5880b9++){const _0x5cdac7=_0x349699['createTableWalker'](_0x527bdd,{'column':_0x5880b9,'includeAllSlots':!0x1});for(const _0x376b64 of _0x5cdac7){const _0x1893d2=_0x376b64['cell'],_0xf1a48=_0x3c4dc0['mapper']['toViewElement'](_0x1893d2);_0x3c4dc0['writer']['addClass']('ck-suggestion-marker-'+_0x3e8f23,_0xf1a48),_0x27cfb2&&_0x3c4dc0['writer']['setAttribute']('data-suggestion',_0x44e282,_0xf1a48),_0x3c4dc0['mapper']['bindElementToMarker'](_0xf1a48,_0x44acba['markerName']),_0x50d8db&&(_0xe1cf26['activeMarkers']['includes'](_0x44acba['markerName'])?_0x3c4dc0['writer']['addClass']('ck-suggestion-marker--active',_0xf1a48):_0x3c4dc0['writer']['removeClass']('ck-suggestion-marker--active',_0xf1a48));}}};}_0xe1cf26['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xc0bb4d),_0xe1cf26['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xc0bb4d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2b4b2f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x20a17d,_0x402f5e,_0x52af90)=>{_0x52af90['options']['showSuggestionHighlights']&&_0x2b4b2f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x20a17d,_0x402f5e,_0x52af90);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x18e28a,_0x4b4f11,_0x3183e8)=>{const {type:_0x36911a,id:_0xa50363}=_0xe1cf26['_splitMarkerName'](_0x4b4f11['markerName']),_0x285d64=_0xe1cf26['getSuggestion'](_0xa50363),_0x19dd84=_0x285d64['data'];if('formatBlock'!=_0x285d64['type']||!_0x19dd84||'setTableColumnHeader'!=_0x19dd84['commandName'])return;const _0x455275=_0x3183e8['mapper']['markerNameToElements'](_0x4b4f11['markerName']);if(_0x455275){for(const _0x134c9c of _0x455275)_0x3183e8['writer']['removeClass']('ck-suggestion-marker-'+_0x36911a,_0x134c9c),_0x3183e8['writer']['removeClass']('ck-suggestion-marker--active',_0x134c9c),_0x3183e8['writer']['removeAttribute']('data-suggestion',_0x134c9c),_0x3183e8['mapper']['unbindElementFromMarkerName'](_0x134c9c,_0x4b4f11['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x298c17=this['editor'],_0x5e38a1=_0x298c17['locale'];function _0x4bf6db(_0x5e3ff7){return{'type':'format','content':o(_0x5e38a1,'*Format:*\x20%0',_0x5e3ff7)};}_0x298c17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36ca5e=>{if('formatBlock'!=_0x36ca5e['type'])return;const {data:_0x581e70}=_0x36ca5e;if(_0x581e70){if('setTableRowHeader'==_0x581e70['commandName']){const _0x2e2d71=_0x581e70['commandParams'][0x0]['forceValue'];return _0x4bf6db(o(_0x5e38a1,_0x2e2d71?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x581e70['commandName']){const _0x52adab=_0x581e70['commandParams'][0x0]['forceValue'];return _0x4bf6db(o(_0x5e38a1,_0x52adab?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x281269{['afterInit'](){const _0x278841=this['editor'],_0x5aace6=_0x278841['locale'],_0xc1e9fb=_0x278841['plugins']['get']('TrackChangesEditing');function _0x4a8d70(_0x453029){return{'type':'format','content':''+o(_0x5aace6,'*Set\x20table\x20type:*\x20%0',_0x453029)};}_0x278841['plugins']['has']('TableLayout')&&(_0xc1e9fb['enableCommand']('insertTableLayout'),_0xc1e9fb['enableDefaultAttributesIntegration']('tableType'),_0xc1e9fb['registerBlockAttribute']('tableType'),_0xc1e9fb['descriptionFactory']['registerElementLabel'](_0xb7448a=>_0xb7448a['is']('element','table')&&'layout'===_0xb7448a['getAttribute']('tableType'),_0x8fcdc0=>o(_0x5aace6,'ELEMENT_LAYOUT_TABLE',_0x8fcdc0)),_0xc1e9fb['descriptionFactory']['registerDescriptionCallback'](_0x3d3493=>{const {data:_0x5315bf}=_0x3d3493;if(_0x5315bf&&'tableType'==_0x5315bf['key'])switch(_0x5315bf['newValue']){case'layout':return _0x4a8d70(o(_0x5aace6,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4a8d70(o(_0x5aace6,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x54ab59=>[_0x54ab59,null]));class Nt extends _0x281269{static get['requires'](){return[At];}['afterInit'](){const _0x438714=this['editor'];if(!_0x438714['plugins']['has']('TableClipboard'))return;const _0x4a75bf=_0x438714['plugins']['get']('TrackChangesEditing'),_0x1c9047=_0x438714['plugins']['get']('TableUtils'),_0x4efa69=_0x438714['plugins']['get'](At),_0x34111b=_0x438714['plugins']['get']('TableClipboard'),_0x46ecbe=_0x438714['plugins']['get']('TableSelection'),_0x4bb218=_0x438714['plugins']['get'](_0x2e28c3);_0x4efa69['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x438714['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x438714['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2479a1=null,_0x26b557=!0x1;_0x4bb218['on']('contentInsertion',(_0xeafcb5,_0x565edd)=>{_0x26b557='paste'===_0x565edd['method'];}),_0x438714['model']['on']('insertContent',(_0x52b371,_0x22871a)=>{if(!_0x26b557&&null===_0x46ecbe['getSelectedTableCells']())return;const [_0x2eeb52,_0x45d466]=_0x22871a,_0x9222f1=_0x22871a[_0x22871a['length']-0x1];_0x9222f1&&_0x9222f1['forceDefaultExecution']||_0x4a75bf['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4d6c46,_0x5dd908,_0x92a4d8,_0x4f48f1,_0x4d8b77){if(_0x5dd908&&!_0x5dd908['is']('documentSelection'))return!0x1;const _0x1a200b=_0x4d8b77['getTableIfOnlyTableInContent'](_0x4d6c46,_0x92a4d8);if(!_0x1a200b||!Ue(_0x1a200b,void 0x0,_0x4f48f1))return!0x1;const _0x315a6c=_0x4f48f1['getSelectionAffectedTableCells'](_0x92a4d8['document']['selection']);if(!_0x315a6c['length'])return!0x1;const _0x41bc13=_0x315a6c[0x0]['findAncestor']('table'),_0x29f1fd=_0x4f48f1['getRowIndexes'](_0x315a6c),_0x33c0e9=_0x4f48f1['getColumnIndexes'](_0x315a6c),_0xd18b2b={'startRow':_0x29f1fd['first'],'endRow':_0x29f1fd['last'],'startColumn':_0x33c0e9['first'],'endColumn':_0x33c0e9['last']};return 0x1==_0x315a6c['length']&&(_0xd18b2b['endRow']+=_0x4f48f1['getRows'](_0x1a200b)-0x1,_0xd18b2b['endColumn']+=_0x4f48f1['getColumns'](_0x1a200b)-0x1),Ue(_0x41bc13,_0xd18b2b,_0x4f48f1);}(_0x2eeb52,_0x45d466,_0x438714['model'],_0x1c9047,_0x34111b)&&(_0x52b371['stop'](),_0x2479a1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x438714['model']['change'](()=>{_0x438714['model']['insertContent'](_0x22871a[0x0],_0x22871a[0x1],_0x22871a[0x2],{'forceDefaultExecution':!0x0});const _0x3fbcb0=_0x3b5d55(),{rowInsertionRanges:_0x419385,columnInsertionRanges:_0x4750ab,insertionRanges:_0xd8fed0,deletionRanges:_0x2badf8,cells:_0x4167b9}=_0x2479a1;_0x419385['length']&&_0x4a75bf['markMultiRangeInsertion'](_0x419385,'tablePasteRow',{'tablePasteChainId':_0x3fbcb0}),_0x4750ab['length']&&_0x4a75bf['markMultiRangeInsertion'](_0x4750ab,'tablePasteColumn',{'tablePasteChainId':_0x3fbcb0}),_0xd8fed0['length']&&(_0x4a75bf['markMultiRangeInsertion'](_0xd8fed0,'tablePaste',{'tablePasteChainId':_0x3fbcb0,'skipNestingCheck':!0x0}),_0xd8fed0['forEach'](_0x2a9537=>_0x2a9537['detach']?.())),_0x2badf8['length']&&(_0x4a75bf['markMultiRangeDeletion'](_0x2badf8,'tablePaste',{'tablePasteChainId':_0x3fbcb0,'skipNestingCheck':!0x0}),_0x2badf8['forEach'](_0x40fad6=>_0x40fad6['detach']?.()));const _0x447c2a=_0x4a75bf['markMultiRangeBlockFormat'](_0x4167b9['map'](({element:_0x3fb043})=>_0x3fb043),{'formatGroupId':_0x3b5d55()},[],'tablePasteCell',{'tablePasteChainId':_0x3fbcb0});if(_0x447c2a){const _0x4b3c2c=_0x447c2a['getMarkers'](),_0x210ee7=[];for(const {element:_0x2dbe37,attributes:_0x18666f}of _0x4167b9){if(!_0x18666f)continue;const _0x39de03=_0x438714['model']['createRangeOn'](_0x2dbe37),_0x1a9cb2=_0x4b3c2c['find'](_0x307e82=>_0x307e82['getRange']()['isEqual'](_0x39de03));_0x1a9cb2&&_0x210ee7['push']([_0x1a9cb2['name'],_0x18666f]);}_0x210ee7['length']&&_0x447c2a['setAttribute']('markerAttributes',Object['fromEntries'](_0x210ee7));}_0x2479a1=null;}));},{'priority':_0x5184a8['high']+0xa}),_0x4bb218['on']('contentInsertion',()=>{_0x26b557=!0x1;},{'priority':'lowest'}),_0x438714['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2c4e59,_0x1cc1a5)=>{const [_0x53a3c1,_0xf3afaf,,_0x3659e2]=_0x1cc1a5;if(!_0x2479a1)return;_0x2c4e59['stop']();const _0x15e1d7=_0x53a3c1['cell'],_0x4e6612=_0xf3afaf,_0x35c93a=Oe(_0x15e1d7),_0x2cadf9=Oe(_0x4e6612);_0x2c4e59['return']=_0x15e1d7;let _0x46e223=null,_0x248f93=null;if(_0x2cadf9||_0x35c93a){if(_0x35c93a&&!_0x2cadf9){_0x3659e2['remove'](_0x15e1d7['getChild'](0x0));for(const _0x43c2c9 of Array['from'](_0x4e6612['getChildren']()))_0x3659e2['insert'](_0x43c2c9,_0x15e1d7,'end');const _0x3c7aee=_0x2479a1['rowInsertionIndexes']['includes'](_0x53a3c1['row']),_0x47fec0=_0x2479a1['columnInsertionIndexes']['includes'](_0x53a3c1['column']);_0x3c7aee||_0x47fec0||(_0x46e223=_0x39990b['fromRange'](_0x3659e2['createRangeIn'](_0x15e1d7)));}else _0x2cadf9&&!_0x35c93a&&(_0x248f93=_0x3659e2['createRangeIn'](_0x15e1d7));}else{const _0x3832e9=_0x3659e2['createElement']('tableCellSuggestion'),_0x33fc07=_0x3659e2['createElement']('tableCellSuggestion');_0x3659e2['wrap'](_0x3659e2['createRangeIn'](_0x15e1d7),_0x33fc07),_0x3659e2['insert'](_0x3832e9,_0x15e1d7,0x0);for(const _0x386eed of Array['from'](_0x4e6612['getChildren']()))_0x3659e2['insert'](_0x386eed,_0x3832e9,'end');_0x46e223=_0x39990b['fromRange'](_0x3659e2['createRangeOn'](_0x3832e9)),_0x248f93=_0x39990b['fromRange'](_0x3659e2['createRangeOn'](_0x33fc07));}const _0x321720=Array['from'](_0x4e6612['getAttributes']())['filter'](([_0x1c3d13])=>Be['includes'](_0x1c3d13));_0x2479a1['cells']['push']({'element':_0x15e1d7,'attributes':_0x321720['length']?Object['fromEntries'](_0x321720):null}),_0x46e223&&_0x2479a1['insertionRanges']['push'](_0x46e223),_0x248f93&&_0x2479a1['deletionRanges']['push'](_0x248f93);},{'priority':'high'}),_0x1c9047['on']('insertColumns',(_0x5bc14a,_0xb18bc1)=>{const [_0x5ec7e0,_0x658035={}]=_0xb18bc1;if(!_0x2479a1)return;const _0x591b8d=_0x658035['at']||0x0,_0x4fac36=_0x658035['columns']||0x1;_0x2479a1['columnInsertionIndexes']=new Array(_0x4fac36)['fill'](_0x591b8d)['map']((_0x530e35,_0xb5806d)=>_0x530e35+_0xb5806d);for(const {cell:_0x313e41}of _0x1c9047['createTableWalker'](_0x5ec7e0,{'startColumn':_0x591b8d,'endColumn':_0x591b8d+_0x4fac36-0x1}))_0x2479a1['columnInsertionRanges']['push'](_0x438714['model']['createRangeOn'](_0x313e41));},{'priority':'low'}),_0x1c9047['on']('insertRows',(_0x4a13cb,_0x385872)=>{const [_0x15a133,_0xe2a3a3={}]=_0x385872;if(!_0x2479a1)return;const _0x12cdee=_0xe2a3a3['at']||0x0,_0x20aabb=_0xe2a3a3['rows']||0x1;_0x2479a1['rowInsertionIndexes']=new Array(_0x20aabb)['fill'](_0x12cdee)['map']((_0xc2ede,_0x18a76c)=>_0xc2ede+_0x18a76c);for(const {cell:_0x3d79be}of _0x1c9047['createTableWalker'](_0x15a133,{'startRow':_0x12cdee,'endRow':_0x12cdee+_0x20aabb-0x1}))_0x2479a1['rowInsertionRanges']['push'](_0x438714['model']['createRangeOn'](_0x3d79be));},{'priority':'low'}),_0x4a75bf['descriptionFactory']['registerDescriptionCallback'](_0xa914f9=>{if(_0xa914f9['subType']&&_0xa914f9['subType']['startsWith']('tablePaste'))return _0xa914f9['previous']?{}:{'type':'insertion','content':o(_0x438714['locale'],'*Replace\x20table\x20cells*')};});const _0x5b4a40=()=>!0x1;for(const _0x1f935e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4a75bf['_suggestionFactory']['registerCustomCallback']('insertion',_0x1f935e,'join',_0x5b4a40),_0x4a75bf['_suggestionFactory']['registerCustomCallback']('deletion',_0x1f935e,'join',_0x5b4a40),_0x4a75bf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f935e,'join',_0x5b4a40);_0x4a75bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5b4a40),_0x4a75bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3b40e4,_0x348059,_0x3a8606)=>{const _0x380624=_0x3b40e4['map'](_0x159f23=>_0x159f23['getContainedElement']())['filter'](_0x1a1f3c=>_0x1a1f3c),_0x51e472=new Map(_0x380624['map'](_0x4fd0b6=>[_0x4fd0b6,null]));if(_0x2479a1){for(const {element:_0x2b40e7,attributes:_0x4962f6}of _0x2479a1['cells'])_0x4962f6&&_0x51e472['set'](_0x2b40e7,_0x4962f6);}else{if(_0x3a8606&&_0x3a8606['markerAttributes'])for(const [_0x5561d6,_0x23175c]of Object['entries'](_0x3a8606['markerAttributes'])){const _0x5521d0=_0x438714['model']['markers']['get'](_0x5561d6),_0x2a060f=_0x5521d0?_0x5521d0['getRange']()['getContainedElement']():null;_0x2a060f&&_0x51e472['set'](_0x2a060f,_0x23175c);}}_0x438714['model']['change'](_0x4044b9=>{for(const [_0x11605f,_0x5a186a]of _0x51e472)_0x4044b9['setAttributes']({...xe,..._0x5a186a},_0x11605f);});});const _0x10735d=(_0x2d4bbc,_0x1ab30d)=>{_0x4a75bf['_suggestionFactory']['registerCustomCallback'](_0x2d4bbc,'tablePaste',_0x1ab30d,(_0x215fb2,_0x33dc7f,_0x585d7e)=>{_0x438714['model']['change'](_0x428df0=>{const _0x57ca44=[];for(const _0x1ed25c of _0x215fb2){const _0x1944ce=_0x1ed25c['start']['nodeAfter'];_0x1944ce['is']('element','tableCellSuggestion')&&_0x57ca44['push'](_0x1944ce);}_0x4a75bf['_suggestionFactory']['getSuggestionCallback'](_0x2d4bbc,null,_0x1ab30d)(_0x215fb2,_0x33dc7f,_0x585d7e);for(const _0x164d9b of _0x57ca44)'$graveyard'!=_0x164d9b['root']['rootName']&&_0x428df0['unwrap'](_0x164d9b);});});};_0x10735d('insertion','accept'),_0x10735d('insertion','discard'),_0x10735d('deletion','accept'),_0x10735d('deletion','discard'),_0x4a75bf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1586e7=>{const _0x5d4861=_0x1586e7['map'](_0x4a8532=>_0x4a8532['getContainedElement']()),_0xfb96d7=_0x5d4861[0x0]['findAncestor']('table'),{minRow:_0x27e160,maxRow:_0x280a98}=_0x4efa69['_getCoordsForCells'](_0x5d4861);_0x1c9047['removeRows'](_0xfb96d7,{'at':_0x27e160,'rows':_0x280a98-_0x27e160+0x1});}),_0x4a75bf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2b0a23=>{const _0x1ae797=_0x2b0a23['map'](_0x9baba0=>_0x9baba0['getContainedElement']()),_0x39b99f=_0x1ae797[0x0]['findAncestor']('table'),{minColumn:_0x21b17a,maxColumn:_0x71cc23}=_0x4efa69['_getCoordsForCells'](_0x1ae797);_0x1c9047['removeColumns'](_0x39b99f,{'at':_0x21b17a,'columns':_0x71cc23-_0x21b17a+0x1});});const _0x48b8e1=(_0x478e37,_0x333831)=>{if(!_0x333831['subType']||!_0x333831['subType']['startsWith']('tablePaste'))return;const _0x5bbc1f=_0x333831['attributes']['tablePasteChainId'],_0x24bc05=_0x4a75bf['getSuggestions']()['filter'](_0xef93e3=>_0xef93e3['isInContent']&&_0xef93e3['attributes']&&_0xef93e3['attributes']['tablePasteChainId']==_0x5bbc1f);_0x24bc05['length']&&_0x333831['getAllAdjacentSuggestions']()['length']!=_0x24bc05['length']&&_0x24bc05['reduce']((_0x3cd99,_0x39cc8a)=>(_0x3cd99['next']=_0x39cc8a,_0x39cc8a['previous']=_0x3cd99,_0x39cc8a));};function _0x42d3fd(_0x1d72bd,_0x28961f=!0x0){const {id:_0x27f822,authorId:_0xa20949}=_0x4a75bf['_splitMarkerName'](_0x1d72bd['markerName']),_0x1b1c65=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x356243=_0x4a75bf['activeMarkers']['includes'](_0x1d72bd['markerName']);return _0x356243&&_0x1b1c65['push']('ck-suggestion-marker--active'),{'classes':_0x1b1c65,'attributes':{'data-suggestion':_0x27f822,'data-author-id':_0xa20949},'priority':_0x356243&&_0x28961f?0xbc2:0xbb8};}_0x4a75bf['on']('suggestionLoaded',_0x48b8e1,{'priority':'high'}),_0x4a75bf['on']('suggestionUnloaded',_0x48b8e1,{'priority':'high'}),_0x438714['model']['document']['registerPostFixer'](()=>{let _0x3980a7=!0x1;const _0x3f2ee0=Array['from'](_0x438714['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21b390,data:_0x140f31}of _0x3f2ee0){const {group:_0x341ce8,type:_0x35c298,id:_0x7cb173}=_0x4a75bf['_splitMarkerName'](_0x21b390);if('suggestion'!=_0x341ce8||'deletion'!=_0x35c298||_0x140f31['oldRange'])continue;if(!_0x4a75bf['hasSuggestion'](_0x7cb173))continue;const _0x4c8cad=_0x4a75bf['getSuggestion'](_0x7cb173)['getRanges'](),_0x3e5921=_0x438714['plugins']['get']('Users')['me'];for(const _0x1e788a of _0x4a75bf['getSuggestions']()){if(!_0x1e788a['isInContent']||_0x1e788a['author']!=_0x3e5921)continue;if('formatBlock'!=_0x1e788a['type']||'tablePasteCell'!=_0x1e788a['subType'])continue;if(_0x1e788a['getRanges']()['every'](_0x59beaa=>_0x4c8cad['some'](_0x37e4fa=>_0x37e4fa['containsRange'](_0x59beaa,!0x0)))){for(const _0xde925d of _0x1e788a['getAllAdjacentSuggestions']())_0xde925d['isInContent']&&(_0xde925d['discard'](),_0x3980a7=!0x0);}}}return _0x3980a7;}),_0x438714['model']['document']['registerPostFixer'](_0x4e181f=>{const _0x3780d8=_0x438714['commands']['get']('redo');if(!_0x3780d8||!_0x3780d8['_createdBatches']['has'](_0x4e181f['batch']))return!0x1;let _0x539b9c=!0x1;const _0x14991d=_0x438714['plugins']['get']('Users')['me'],_0x320875=_0x438714['model']['document']['differ']['getChanges'](),_0x477ba1=Array['from'](_0x438714['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x36110f,data:_0x4e5cd6})=>{const {group:_0x47aed2,subType:_0x2e13a4,authorId:_0x27e7e0}=_0x4a75bf['_splitMarkerName'](_0x36110f);return'suggestion'==_0x47aed2&&'tablePaste'==_0x2e13a4&&_0x27e7e0==_0x14991d['id']&&!_0x4e5cd6['oldRange'];});for(const _0x2f7b48 of _0x320875){if('insert'!=_0x2f7b48['type']||'tableCellSuggestion'!=_0x2f7b48['name']||0x1!=_0x2f7b48['length'])continue;const _0x5b748f=_0x4e181f['createRange'](_0x2f7b48['position'],_0x2f7b48['position']['getShiftedBy'](0x1));if(!_0x477ba1['find'](({data:_0x25847d})=>_0x25847d['newRange']['isEqual'](_0x5b748f))){for(const {name:_0x4b8bb5,data:_0x14d5a1}of _0x477ba1)if(_0x5b748f['containsRange'](_0x14d5a1['newRange'])){_0x4e181f['updateMarker'](_0x4b8bb5,{'range':_0x5b748f}),_0x539b9c=!0x0;break;}}}return _0x539b9c;}),_0x438714['model']['document']['registerPostFixer'](_0x45977c=>{let _0x33385c=!0x1;const _0xd9d3c5=_0x438714['plugins']['get']('Users')['me'],_0x490e4f=_0x4a75bf['getSuggestions']()['filter'](_0x3356f4=>_0x3356f4['isInContent']&&_0x3356f4['author']==_0xd9d3c5),_0x5799c6=new Set(),_0x5333e9=new Set();for(const _0x32b965 of _0x490e4f)if('tablePaste'==_0x32b965['subType'])for(const _0x36de42 of _0x32b965['getMarkers']()){const _0x297998=_0x36de42['getRange']()['getContainedElement']();if(_0x297998){if(_0x297998['is']('element','tableCellSuggestion')&&Oe(_0x297998)){_0x32b965['removeMarker'](_0x36de42['name']),_0x5799c6['add'](_0x297998),_0x33385c=!0x0;const _0x12591e=_0x297998['nextSibling'],_0x20aeaf=_0x297998['previousSibling'],_0xda2b99=_0x12591e&&_0x12591e['is']('element','tableCellSuggestion'),_0x120b82=_0x20aeaf&&_0x20aeaf['is']('element','tableCellSuggestion');_0xda2b99&&!_0x5799c6['has'](_0x12591e)&&_0x5333e9['add'](_0x12591e),_0x120b82&&!_0x5799c6['has'](_0x20aeaf)&&_0x5333e9['add'](_0x20aeaf);}else _0x297998['is']('element','paragraph')&&_0x297998['isEmpty']&&(_0x32b965['removeMarker'](_0x36de42['name']),_0x33385c=!0x0);}}else{if('tablePasteCell'==_0x32b965['subType']){if(!_0x32b965['attributes']||!_0x32b965['attributes']['tablePasteChainId'])continue;const _0xc0f6e9=_0x32b965['attributes']['markerAttributes'];if(_0xc0f6e9&&Object['keys'](_0xc0f6e9)['length'])continue;const _0x158984=_0x32b965['attributes']['tablePasteChainId'];let _0x29e9f9=!0x0,_0x1843df=!0x0;for(const _0x4ff488 of _0x490e4f)if(_0x4ff488['subType']&&_0x4ff488['subType']['startsWith']('tablePaste')){if(!_0x4ff488['attributes']['tablePasteChainId']){_0x1843df=!0x1;break;}if(_0x4ff488['id']!=_0x32b965['id']&&_0x4ff488['attributes']['tablePasteChainId']==_0x158984){_0x29e9f9=!0x1;break;}}_0x1843df&&_0x29e9f9&&(_0x32b965['removeMarkers'](),_0x33385c=!0x0);}}for(const _0x3c2274 of _0x5799c6)_0x45977c['remove'](_0x3c2274);for(const _0x338900 of _0x5333e9)_0x45977c['unwrap'](_0x338900);return _0x33385c;}),_0x438714['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2b4ff6=>_0x42d3fd(_0x2b4ff6),'converterPriority':'high'}),_0x438714['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x43bfe5,_0x175bf2)=>_0x175bf2['options']['showSuggestionHighlights']?_0x42d3fd(_0x43bfe5,!0x1):null,'converterPriority':'high'});const _0x5850ce=_0x438714['editing']['view'];this['listenTo'](_0x5850ce['document'],'clipboardOutput',(_0x108fe0,_0x3fd993)=>{const _0x1f471c=[];for(const _0x587932 of _0x5850ce['createRangeIn'](_0x3fd993['content'])['getItems']())_0x587932['is']('element','suggestion-td')&&_0x1f471c['push'](_0x587932);_0x5850ce['change'](_0x25b9b8=>{for(const _0x2110c2 of _0x1f471c)_0x25b9b8['move'](_0x25b9b8['createRangeIn'](_0x2110c2),_0x25b9b8['createPositionBefore'](_0x2110c2)),_0x25b9b8['remove'](_0x2110c2);});});}}function Oe(_0xc79305){if(_0xc79305['isEmpty'])return!0x0;const _0xf2cdae=_0xc79305['getChild'](0x0);return _0xf2cdae['is']('element','paragraph')&&_0xf2cdae['isEmpty'];}function Ue(_0x20bde6,_0x2438a3={},_0x5b06a7){for(const {isAnchor:_0x5bbbfe,cellHeight:_0x24c346,cellWidth:_0x45236b}of _0x5b06a7['createTableWalker'](_0x20bde6,{'includeAllSlots':!0x0,..._0x2438a3}))if(!_0x5bbbfe||0x1!=_0x24c346||0x1!=_0x45236b)return!0x1;return!0x0;}class Dt extends _0x281269{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x12cf7c=this['editor']['plugins']['get']('TrackChangesEditing');_0x12cf7c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x12cf7c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x12cf7c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x12cf7c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x12cf7c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x12cf7c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3120ce,_0x252220){const _0x25618d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ca633=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x17d90b=_0x252220['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3bb062=_0x5ca633['getColumnGroupElement'](_0x17d90b);let _0x44057d=_0x3bb062?_0x5ca633['getTableColumnsWidths'](_0x3bb062):null,_0x5828ca=_0x17d90b['getAttribute']('tableWidth')||null;const _0x574dcc=_0x252220['tableWidth']||_0x5828ca,_0x18db79=_0x252220['columnWidths']||_0x44057d,_0x2febeb=this['editor']['plugins']['get']('Users')['me'];for(const _0x376485 of _0x25618d['getSuggestions']()){const _0x1d7c7e=_0x376485['getContainedElement']();if('resizeTable'===_0x376485['subType']&&_0x1d7c7e===_0x17d90b){_0x376485['author']!==_0x2febeb&&_0x376485['discard']();const _0x805eb0=_0x376485['data']['commandParams'];_0x5828ca=_0x805eb0[0x0]['tableWidth'],_0x44057d=_0x805eb0[0x0]['columnWidths'];break;}}_0x3120ce({'table':_0x17d90b,'tableWidth':_0x574dcc,'columnWidths':_0x18db79}),_0x25618d['markBlockFormat'](_0x17d90b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5828ca,'columnWidths':_0x44057d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x123e86){if('formatBlock'!=_0x123e86['type']&&'formatInline'!=_0x123e86['type'])return;const {data:_0xbba8e7}=_0x123e86;if(_0xbba8e7&&'resizeTable'===_0xbba8e7['formatGroupId']){const _0x33b8e0='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x33b8e0)};}}}class $t extends _0x281269{['afterInit'](){const _0x3414a3=this['editor'];_0x3414a3['plugins']['has']('Template')&&_0x3414a3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x281269{['afterInit'](){const _0x3e34ca=this['editor'];if(!_0x3e34ca['commands']['get']('insertTableOfContents'))return;_0x3e34ca['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xa44d3=_0x3e34ca['plugins']['get']('TrackChangesEditing'),_0xab00e9=_0x3e34ca['locale'];_0xa44d3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1e1d6b=>o(_0xab00e9,'ELEMENT_TABLE_OF_CONTENTS',_0x1e1d6b));}}class Bt extends _0x281269{['afterInit'](){const _0x4f44b4=this['editor'];if(!_0x4f44b4['plugins']['has']('Title'))return;const _0xcbed90=_0x4f44b4['plugins']['get']('TrackChangesEditing');_0xcbed90['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4f44b4['locale'],'ELEMENT_TITLE')),_0x4f44b4['model']['document']['registerPostFixer'](_0x313236=>{let _0x596284=!0x1;const _0x2fd0a8=Array['from'](_0x4f44b4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x14f79a,data:_0xec7718}of _0x2fd0a8){const {group:_0x53494f}=_0xcbed90['_splitMarkerName'](_0x14f79a);if('suggestion'!==_0x53494f||!_0xec7718['newRange'])continue;const _0x5b927f=_0xec7718['newRange'],_0x16733a=_0x5b927f['end']['nodeBefore'];if(!_0x16733a||!_0x16733a['is']('element','title-content'))continue;if(!_0x5b927f['start']['isTouching'](_0x5b927f['end']))continue;const _0x250c42=_0x4f44b4['model']['schema']['getNearestSelectionRange'](_0x5b927f['end'],'forward');if(_0x250c42&&_0x250c42['isCollapsed']){const _0x119669=_0x313236['createRange'](_0x5b927f['start'],_0x250c42['start']);_0x119669['isEqual'](_0x5b927f)||(_0x313236['updateMarker'](_0x14f79a,{'range':_0x119669}),_0x596284=!0x0);}_0x596284||(_0x313236['removeMarker'](_0x14f79a),_0x596284=!0x0);}return _0x596284;});}}class Tt extends _0x281269{['afterInit'](){const _0x5f44f2=this['editor'],_0x2d649c=_0x5f44f2['plugins']['get']('TrackChangesEditing');_0x5f44f2['plugins']['has']('Uploadcare')&&(_0x2d649c['enableCommand']('uploadcare'),_0x5f44f2['plugins']['has']('UploadcareImageEdit')&&(_0x2d649c['enableCommand']('uploadcareImageEdit'),_0x2d649c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2d649c['registerBlockAttribute']('uploadcareImageId'),_0x2d649c['descriptionFactory']['registerDescriptionCallback'](_0x5d697c=>{if('attribute'!=_0x5d697c['type'])return;const {data:_0x2025ba}=_0x5d697c;return _0x2025ba&&'uploadcareImageId'==_0x2025ba['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x281269{['afterInit'](){const _0x175cab=this['editor'],_0x185966=_0x175cab['plugins']['get']('TrackChangesEditing');_0x175cab['plugins']['has']('UndoEditing')&&(_0x185966['enableCommand']('undo'),_0x185966['enableCommand']('redo'));}}class Ot extends _0x281269{static get['requires'](){return[At];}['afterInit'](){const _0x2cdfb7=this['editor'];if(!_0x2cdfb7['plugins']['has']('TableCaptionEditing'))return;_0x2cdfb7['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x281269{['tableProperties'];['tableCellProperties'];constructor(_0x32d2a6){super(_0x32d2a6),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x52e30f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xa13b69 of this['tableProperties'])_0x52e30f['enableCommand'](_0xa13b69,(_0x4b7b47,_0x16d24c)=>{const _0x24b0bd=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xa13b69,[_0x24b0bd],this['tableProperties'],'tableProperties',_0x4b7b47,_0x16d24c);});_0x52e30f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x52e30f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52e30f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x26f33c,_0xa05660)=>this['handleDiscardAction'](this['tableProperties'],_0x26f33c,_0xa05660)),_0x52e30f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x319f86 of this['tableCellProperties'])_0x52e30f['enableCommand'](_0x319f86,(_0x38e1fb,_0x47667e)=>{const _0x40a8e3=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x319f86,_0x40a8e3,this['tableCellProperties'],'tableCellProperties',_0x38e1fb,_0x47667e);});_0x52e30f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x52e30f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52e30f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x86cc57,_0x4b859e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x86cc57,_0x4b859e)),_0x52e30f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x52e30f['descriptionFactory']['registerDescriptionCallback'](_0x5a3b55=>this['handleSuggestionDescription'](_0x5a3b55)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x46c3ef,_0x207848,_0x4cc0ca,_0x3859ef,_0x393961,_0x3077f3){const _0x49df69=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3077f3['batch'],()=>{for(const _0x2f4cdf of _0x207848){if(this['_getSuggestion'](_0x2f4cdf,_0x3859ef))_0x393961(_0x3077f3);else{const _0x529bd9={};for(const _0x2493c2 of _0x4cc0ca){const _0x39c9ea=_0x2f4cdf['getAttribute'](_0x2493c2);void 0x0!==_0x39c9ea&&(_0x529bd9[_0x2493c2]=_0x39c9ea);}_0x393961(_0x3077f3),_0x49df69['markBlockFormat'](_0x2f4cdf,{'commandParams':[_0x529bd9]},[],_0x3859ef);}}});}['handleDiscardAction'](_0x429942,_0x33a3ce,_0x96ef46){const _0x19d3a8=_0x33a3ce[0x0]['start']['nodeAfter'],_0x426179=_0x96ef46['commandParams'][0x0];this['editor']['model']['change'](_0x3a2e2c=>{for(const _0x3305dc of _0x429942)void 0x0!==_0x426179[_0x3305dc]?_0x3a2e2c['setAttribute'](_0x3305dc,_0x426179[_0x3305dc],_0x19d3a8):_0x3a2e2c['removeAttribute'](_0x3305dc,_0x19d3a8);});}['handleSuggestionDescription'](_0x47f541){if(_0x47f541['data'])switch(_0x47f541['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'](_0x17d4e4,_0x3d0d92){const _0x486b97=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4784c6 of _0x486b97['getSuggestions']({'skipNotAttached':!0x0})){const _0x157096=_0x4784c6['getContainedElement']();if(_0x4784c6['subType']===_0x3d0d92&&_0x157096===_0x17d4e4)return _0x4784c6;}return null;}['_registerTablePropertiesAttributes'](){const _0x51cc0c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46a0df=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x412d8b of _0x46a0df){const _0x141872=_0x412d8b['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x51cc0c['registerBlockAttribute'](_0x412d8b),_0x51cc0c['descriptionFactory']['registerAttributeLabel'](_0x412d8b,o(this['editor']['locale'],'FORMAT_'+_0x141872));}}}class Rt extends _0x281269{['afterInit'](){const _0x3f85d6=this['editor'];if(!_0x3f85d6['plugins']['has']('LineHeight'))return;const _0x3442b0=_0x3f85d6['plugins']['get']('TrackChangesEditing'),_0x534870=_0x3f85d6['locale'];_0x3442b0['enableDefaultAttributesIntegration']('lineHeight'),_0x3442b0['registerBlockAttribute']('lineHeight'),_0x3442b0['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x534870,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x281269{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x261b7d,_0x30bf07,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x331477){super(_0x331477),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x35d6ab,_0x34c986,_0x25a504,_0x4ca5c1)=>{this['_model']['change'](()=>{for(const _0x10adbf of[..._0x4ca5c1,..._0x25a504])this['_model']['markers']['has'](_0x10adbf)&&_0x331477['editing']['reconvertMarker'](_0x10adbf);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x331477['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(),_0x331477['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x331477['config']['get']('trackChanges.trackFormatChanges'),_0x331477['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x331477['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x331477,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4feefb=this['editor'],_0x1dbd99=(_0xa866c5,_0x212901)=>{if('attribute'!=_0xa866c5)return'ck-suggestion-marker-'+_0xa866c5;const _0x26db58=_0x212901['split']('|')[0x0];return this['_isBlockAttribute'](_0x26db58)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4feefb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x320478=>{const {id:_0x52561d,authorId:_0x3ed80e,type:_0x2d95b6,subType:_0x1508a1}=this['_splitMarkerName'](_0x320478['markerName']),_0x36cfbb=['ck-suggestion-marker',_0x1dbd99(_0x2d95b6,_0x1508a1)];let _0x5a9913=0xbb8;return this['activeMarkers']['includes'](_0x320478['markerName'])&&(_0x36cfbb['push']('ck-suggestion-marker--active'),_0x5a9913=0xbc2),'deletion'==_0x2d95b6&&(_0x5a9913+=0x5),{'classes':_0x36cfbb,'attributes':{'data-suggestion':_0x52561d,'data-author-id':_0x3ed80e},'priority':_0x5a9913};}}),_0x4feefb['conversion']['for']('dataDowncast')['add'](_0x18aeec=>{_0x18aeec['on']('addMarker:suggestion',(_0x527558,_0x4cfcc0,_0x336ddd)=>{if(!_0x336ddd['options']['showSuggestionHighlights'])return;const _0xce91dc=_0x4cfcc0['item'];if(!_0xce91dc)return;const _0x5131d3=_0x336ddd['mapper']['toViewElement'](_0xce91dc);_0x4feefb['model']['schema']['isObject'](_0xce91dc)&&_0x5131d3&&!_0x5131d3['getCustomProperty']('widget')&&_0x5131d3['is']('containerElement')&&_0x1b5076(_0x5131d3,_0x336ddd['writer']);},{'priority':'high'});}),_0x4feefb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x32ffbd,_0x541a89)=>{if(!_0x541a89['options']['showSuggestionHighlights'])return null;const {id:_0x53e329,authorId:_0x1c3e62,type:_0x330f26,subType:_0x24063c}=this['_splitMarkerName'](_0x32ffbd['markerName']);return{'classes':['ck-suggestion-marker',_0x1dbd99(_0x330f26,_0x24063c)],'priority':0xbb8,'attributes':{'data-suggestion':_0x53e329,'data-author-id':_0x1c3e62}};}});const _0x39808b=({showActiveMarkers:_0x183caf=!0x0,isAttributeSuggestion:_0x362c19=!0x1}={})=>(_0x51d7da,_0x4105fb,_0x46f858)=>{if(!_0x4105fb['item'])return;const {id:_0x3b43c7,authorId:_0x48788f}=this['_splitMarkerName'](_0x4105fb['markerName']);if(_0x362c19){const _0x28a4a3=this['_suggestions']['get'](_0x3b43c7),_0x399821=this['_getAttributeKey'](_0x28a4a3);if(!this['_isBlockAttribute'](_0x399821))return;}if(_0x4105fb['item']['is']('selection'))return void _0x46f858['consumable']['consume'](_0x4105fb['item'],_0x51d7da['name']);const _0x270c9a=_0x46f858['mapper']['toViewElement'](_0x4105fb['item']);if(_0x4105fb['item']['is']('element')&&_0x4feefb['model']['schema']['isBlock'](_0x4105fb['item'])&&!_0x270c9a['getCustomProperty']('addHighlight')){_0x46f858['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x270c9a),_0x46f858['writer']['setAttribute']('data-suggestion',_0x3b43c7,_0x270c9a),_0x46f858['writer']['setAttribute']('data-author-id',_0x48788f,_0x270c9a),_0x46f858['mapper']['bindElementToMarker'](_0x270c9a,_0x4105fb['markerName']),_0x183caf&&(this['activeMarkers']['includes'](_0x4105fb['markerName'])?_0x46f858['writer']['addClass']('ck-suggestion-marker--active',_0x270c9a):_0x46f858['writer']['removeClass']('ck-suggestion-marker--active',_0x270c9a));for(const _0x165abd of _0x4feefb['model']['createRangeIn'](_0x4105fb['item'])['getItems']())_0x46f858['consumable']['consume'](_0x165abd,_0x51d7da['name']);_0x46f858['consumable']['consume'](_0x4105fb['item'],_0x51d7da['name']);}};_0x4feefb['conversion']['for']('dataDowncast')['add'](_0x55f363=>{_0x55f363['on']('addMarker:suggestion:formatBlock',(_0x91ee1c,_0x25dc76,_0x211663)=>{_0x211663['options']['showSuggestionHighlights']&&_0x39808b({'showActiveMarkers':!0x1})(_0x91ee1c,_0x25dc76,_0x211663);},{'priority':'highest'});}),_0x4feefb['conversion']['for']('dataDowncast')['add'](_0xfe09b1=>{_0xfe09b1['on']('addMarker:suggestion:attribute',(_0x2a533d,_0x4d8599,_0x1fb804)=>{_0x1fb804['options']['showSuggestionHighlights']&&_0x39808b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2a533d,_0x4d8599,_0x1fb804);},{'priority':'highest'});}),_0x4feefb['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x24365d,_0x3ba016)=>{if(_0x3ba016['options']['showSuggestionHighlights']){const {id:_0x103405,authorId:_0x4c0d12}=this['_splitMarkerName'](_0x24365d);return _0x24365d['includes'](':split')||_0x24365d['includes'](':merge')?{'group':'suggestion','name':_0x24365d['substr'](0xb),'attributes':{'data-suggestion':_0x103405,'data-author-id':_0x4c0d12}}:null;}return{'group':'suggestion','name':_0x24365d['substr'](0xb)};}}),_0x4feefb['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3dcdd4,{writer:_0xda0c6})=>{let _0x52d4ad='suggestion:'+_0x3dcdd4['getAttribute']('suggestion-type')+':'+_0x3dcdd4['getAttribute']('id');return _0x3dcdd4['getAttribute']('marker-count')&&(_0x52d4ad+=':'+_0x3dcdd4['getAttribute']('marker-count')),_0xda0c6['createElement']('$marker',{'data-name':_0x52d4ad});}}),_0x4feefb['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4feefb['conversion']['for']('editingDowncast')['add'](_0x30178b=>{_0x30178b['on']('addMarker:suggestion:formatBlock',_0x39808b(),{'priority':'high'});}),_0x4feefb['conversion']['for']('editingDowncast')['add'](_0x4e5733=>{_0x4e5733['on']('addMarker:suggestion:attribute',_0x39808b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4feefb['conversion']['for']('editingDowncast')['add'](_0x30570b=>{_0x30570b['on']('removeMarker:suggestion:formatBlock',(_0x585109,_0x17add2,_0x406044)=>{const _0x5d55dc=_0x406044['mapper']['markerNameToElements'](_0x17add2['markerName']);if(_0x5d55dc){for(const _0x339ef8 of _0x5d55dc)_0x339ef8['getCustomProperty']('addHighlight')||(_0x406044['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x339ef8),_0x406044['writer']['removeAttribute']('data-suggestion',_0x339ef8),_0x406044['writer']['removeAttribute']('data-author-id',_0x339ef8),_0x406044['mapper']['unbindElementFromMarkerName'](_0x339ef8,_0x17add2['markerName']));}},{'priority':'high'});}),_0x4feefb['conversion']['for']('editingDowncast')['add'](_0x1b729e=>{_0x1b729e['on']('removeMarker:suggestion:attribute',(_0x395dd5,_0x2e64f2,_0x4d5da1)=>{const _0x3d5e93=_0x4d5da1['mapper']['markerNameToElements'](_0x2e64f2['markerName']);if(!_0x3d5e93)return;const {id:_0x52f1b3}=this['_splitMarkerName'](_0x2e64f2['markerName']),_0x4e5d9a=this['_suggestions']['get'](_0x52f1b3),_0x10e147=this['_getAttributeKey'](_0x4e5d9a);if(this['_isBlockAttribute'](_0x10e147)){for(const _0x5f27cd of _0x3d5e93)_0x5f27cd['getCustomProperty']('addHighlight')||(_0x4d5da1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5f27cd),_0x4d5da1['writer']['removeAttribute']('data-suggestion',_0x5f27cd),_0x4d5da1['writer']['removeAttribute']('data-author-id',_0x5f27cd),_0x4d5da1['mapper']['unbindElementFromMarkerName'](_0x5f27cd,_0x2e64f2['markerName']));}},{'priority':'high'});}),_0x4feefb['model']['document']['registerPostFixer'](_0x142b6b=>{let _0x106804=!0x1;const _0x374426=Array['from'](_0x4feefb['model']['document']['differ']['getChangedMarkers']()),_0x4b40a6=new Set();for(const {name:_0x83843f,data:_0x3a399c}of _0x374426){const {group:_0x5b8941,type:_0x37eb10,subType:_0x17c6ce,id:_0x3b6ae2}=this['_splitMarkerName'](_0x83843f);if('suggestion'!==_0x5b8941)continue;const _0x215d8d=_0x17c6ce?'suggestion:'+_0x37eb10+':'+_0x17c6ce+':'+_0x3b6ae2:'suggestion:'+_0x37eb10+':'+_0x3b6ae2,_0x175219=_0x4feefb['model']['markers']['getMarkersGroup'](_0x215d8d),_0x17d441=_0x4feefb['model']['markers']['get'](_0x83843f),_0x5d3c05=this['_suggestions']['get'](_0x3b6ae2);if(null!=_0x3a399c['newRange']){'formatInline'==_0x37eb10&&(_0x106804=_0x106804||Gt(_0x3a399c['newRange'],_0x83843f,_0x142b6b,_0x4feefb['model']['schema']));const _0x13e735='attribute'==_0x37eb10&&this['_isBlockAttribute'](_0x17c6ce['split']('|')[0x0]),_0x4e7967='attribute'==_0x37eb10&&this['_isInlineAttribute'](_0x17c6ce['split']('|')[0x0]);if(_0x3a399c['newRange']['isCollapsed']||'$graveyard'==_0x3a399c['newRange']['root']['rootName']||'formatBlock'==_0x37eb10&&!Jt(_0x3a399c['newRange'])||_0x13e735&&!Jt(_0x3a399c['newRange'])||_0x4e7967&&Kt(_0x3a399c['newRange'])||'deletion'==_0x37eb10&&Kt(_0x3a399c['newRange'])||_0x17d441&&Ht(_0x17d441,_0x175219))_0x142b6b['removeMarker'](_0x83843f),_0x106804=!0x0;else{if(!_0x5d3c05||!_0x5d3c05['isInContent'])continue;if(_0x3a399c['newRange']&&_0x3a399c['oldRange']&&_0x3a399c['newRange']['isEqual'](_0x3a399c['oldRange']))continue;_0x4b40a6['add'](_0x5d3c05);}}}return _0x4b40a6['size']>0x0&&(_0x106804=!!this['_joinWithAdjacentSuggestions'](_0x4b40a6)||_0x106804),_0x106804;}),_0x4feefb['model']['document']['registerPostFixer'](_0x397d47=>{let _0x5e79e0=!0x1;for(const _0x12172d of _0x4feefb['model']['document']['differ']['getChanges']())if('insert'==_0x12172d['type'])for(const _0x130d76 of this['_suggestions']['values']()){if(_0x130d76['isMultiRange']||!_0x130d76['isInContent'])continue;const _0x4bb4e5='formatBlock'==_0x130d76['type'],_0x3b93c1=this['_getAttributeKey'](_0x130d76),_0x25a068=_0x3b93c1&&this['_isBlockAttribute'](_0x3b93c1);if(!_0x4bb4e5&&!_0x25a068)continue;const _0x41933b=_0x130d76['getFirstRange']();if(_0x41933b['start']['parent']!=_0x41933b['end']['parent']&&!_0x41933b['end']['isAtEnd']){const _0x39a719=_0x4feefb['model']['createPositionAt'](_0x41933b['start']['nodeAfter'],'end'),_0x48f403=_0x4feefb['model']['createRange'](_0x41933b['start'],_0x39a719);_0x397d47['updateMarker'](_0x130d76['getFirstMarker'](),{'range':_0x48f403}),_0x5e79e0=!0x0;}}return _0x5e79e0;}),_0x4feefb['model']['document']['registerPostFixer'](_0x1968d0=>this['_processAttributeChanges'](_0x1968d0)),_0x4feefb['model']['document']['registerPostFixer'](_0x44fe7d=>!_0x44fe7d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x44fe7d)),_0x4feefb['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4feefb['model']['document']['on']('change:data',(_0x50ae9d,_0xf3a144)=>{if(!_0xf3a144['isLocal']||_0xf3a144['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4194d5=_0x4feefb['model']['document']['differ']['getChanges']();if(0x0==_0x4194d5['length'])return;const _0x441b91=[],_0x21ec32=_0x4194d5['filter'](_0x2cad9e=>'attribute'==_0x2cad9e['type']),_0x2d0e1f=_0x4194d5['filter'](_0x5bcb9a=>'insert'==_0x5bcb9a['type']&&'$text'!=_0x5bcb9a['name']);for(const _0x2836a5 of _0x21ec32)this['_isRegisteredAttribute'](_0x2836a5['attributeKey'])&&_0x441b91['push']({'key':_0x2836a5['attributeKey'],'newValue':_0x2836a5['attributeNewValue'],'oldValue':_0x2836a5['attributeOldValue'],'range':qt(_0x2836a5['range'],_0x4feefb['model'])});for(const _0x1c0226 of _0x2d0e1f){if('rename'!=_0x1c0226['action']&&'refresh'!=_0x1c0226['action'])continue;const _0x5cc30a=zt(_0x1c0226['position']['nodeAfter'],_0x4feefb['model']),_0x3a91ef=_0x1c0226['before'];'rename'==_0x1c0226['action']&&_0x441b91['push']({'key':m,'newValue':_0x1c0226['name'],'oldValue':_0x3a91ef['name'],'range':_0x5cc30a});for(const [_0x378fb7,_0x57f8ed]of _0x3a91ef['attributes']){if(!this['_isRegisteredAttribute'](_0x378fb7))continue;const _0x4d2f1f=_0x1c0226['attributes']['get'](_0x378fb7);_0x57f8ed!==_0x4d2f1f&&_0x441b91['push']({'key':_0x378fb7,'newValue':_0x4d2f1f,'oldValue':_0x57f8ed,'range':_0x5cc30a});}for(const [_0x366976,_0x55cae5]of _0x1c0226['attributes'])this['_isRegisteredAttribute'](_0x366976)&&(_0x3a91ef['attributes']['has'](_0x366976)||_0x441b91['push']({'key':_0x366976,'newValue':_0x55cae5,'oldValue':null,'range':_0x5cc30a}));}0x0!=_0x441b91['length']&&_0x4feefb['model']['enqueueChange'](_0xf3a144,_0x3ce1cf=>{const _0x1ac1dd=_0x3b5d55();for(const {range:_0x57f58c,key:_0x32ba5e,oldValue:_0x20e299,newValue:_0x59a280}of _0x441b91)this['markAttributeChange'](_0x57f58c,_0x32ba5e,_0x20e299,_0x59a280,{'groupId':_0x1ac1dd});this['_reduceExistingSuggestions'](_0x3ce1cf,_0x441b91);});},{'priority':'lowest'}),_0x4feefb['model']['markers']['on']('update:suggestion',(_0x14d3d4,_0x368264,_0x4f5483)=>{if(null==_0x4f5483){const {id:_0x16fdaa}=this['_splitMarkerName'](_0x368264['name']),_0x165040=this['_suggestions']['get'](_0x16fdaa);_0x165040&&_0x165040['addMarkerName'](_0x368264['name']);}}),_0x4feefb['model']['document']['on']('change:data',()=>{const _0x210780=Array['from'](_0x4feefb['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5a9c03=>'suggestion'===this['_splitMarkerName'](_0x5a9c03['name'])['group']);if(0x0===_0x210780['length'])return;_0x210780['sort']((_0x198558,_0x1e0da7)=>{const _0x58d165=_0x198558['data']['oldRange'],_0x5ef7b5=_0x1e0da7['data']['oldRange'];return null===_0x58d165&&null===_0x5ef7b5?0x0:null===_0x58d165&&null!==_0x5ef7b5?-0x1:null!==_0x58d165&&null===_0x5ef7b5?0x1:_0x58d165['start']['isBefore'](_0x5ef7b5['start'])?-0x1:0x1;});const _0x48a4c2=new Set(),_0x5df1b9=new Set();for(const {name:_0x297778,data:_0x48a6a2}of _0x210780){const {id:_0x38a097}=this['_splitMarkerName'](_0x297778);if(null===_0x48a6a2['oldRange']){const _0x4f344d=this['_handleNewSuggestionMarker'](_0x297778);_0x5df1b9['add'](_0x4f344d);}else{const _0x275217=this['_suggestions']['get'](_0x38a097);null!==_0x48a6a2['newRange']||_0x275217['isInContent']?(_0x48a4c2['add'](_0x275217['head']),_0x5df1b9['add'](_0x275217)):this['_removeSuggestion'](_0x275217);}}_0x5df1b9['size']>0x0&&this['_refreshSuggestionsChain'](_0x5df1b9);for(const _0x5d0f61 of _0x48a4c2)this['fire']('suggestionChanged',_0x5d0f61);}),_0x4feefb['model']['on']('applyOperation',(_0x2285d0,_0x473b8b)=>{const _0x545a31=_0x473b8b[0x0];if(!this['_suggestions']['size'])return;if(!_0x545a31['isDocumentOperation'])return;if(_0x545a31['batch']['isUndo']||!_0x545a31['batch']['isLocal'])return;let _0x1beb64,_0x4e127e;switch(_0x545a31['type']){case'insert':_0x1beb64=_0x4feefb['model']['createPositionAt'](_0x545a31['position']),_0x4e127e=_0x1beb64['getShiftedBy'](_0x545a31['howMany']);break;case'split':_0x1beb64=_0x4feefb['model']['createPositionAt'](_0x545a31['splitPosition']),_0x4e127e=_0x4feefb['model']['createPositionAt'](_0x545a31['moveTargetPosition']);break;case'move':_0x1beb64=_0x4feefb['model']['createPositionAt'](_0x545a31['targetPosition']),_0x4e127e=_0x1beb64['getShiftedBy'](_0x545a31['howMany']);break;default:return;}const _0x268f0a=_0x4feefb['model']['createRange'](_0x1beb64,_0x4e127e);_0x4feefb['model']['change'](()=>{for(const {suggestion:_0xec9379,meta:_0x48d136}of this['_findSuggestions'](_0x268f0a)){if(_0xec9379['isMultiRange'])continue;if('formatInline'==_0xec9379['type'])continue;const _0x194129=this['_getAttributeKey'](_0xec9379);if(_0x194129&&this['_isBlockAttribute'](_0x194129)&&'split'!=_0x545a31['type'])continue;const _0x364d93=_0xec9379['data']&&_0xec9379['data']['multipleBlocks'];('formatBlock'!=_0xec9379['type']||'split'==_0x545a31['type']&&!_0x364d93)&&(_0x48d136['containsRangeInObject']||'insertion'==_0xec9379['type']&&_0x48d136['isOwn']||_0xec9379['getFirstRange']()['containsRange'](_0x268f0a)&&this['_breakSuggestionMarker'](_0xec9379,_0x1beb64,_0x4e127e));}});},{'priority':'lowest'}),_0x4feefb['model']['on']('deleteContent',(_0x132602,_0x39edf4)=>{const _0x344c1a=_0x39edf4[0x0],_0x347876=_0x39edf4[0x1];if(_0x347876&&_0x347876['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x344c1a['isCollapsed'])return;const _0x838493=_0x4feefb['model']['schema'],{start:_0x174d28,end:_0x49eb82}=_0x344c1a['getFirstRange'](),_0x2caa75=_0x174d28['nodeAfter']&&_0x838493['isLimit'](_0x174d28['nodeAfter'])?null:_0x838493['getNearestSelectionRange'](_0x174d28,'forward'),_0x69cf4c=_0x49eb82['nodeBefore']&&_0x838493['isLimit'](_0x49eb82['nodeBefore'])?null:_0x838493['getNearestSelectionRange'](_0x49eb82,'backward'),_0x5b1d49=_0x4feefb['model']['createRange'](_0x2caa75?_0x2caa75['start']:_0x174d28,_0x69cf4c?_0x69cf4c['end']:_0x49eb82);_0x4feefb['model']['change'](_0x32a2d3=>{this['markDeletion'](_0x5b1d49);const _0x4cc09f=_0x4feefb['model']['schema']['getNearestSelectionRange'](_0x5b1d49['start']);_0x344c1a['is']('documentSelection')?_0x32a2d3['setSelection'](_0x4cc09f):_0x344c1a['setTo'](_0x4cc09f);}),_0x132602['stop']();},{'priority':_0x5184a8['normal']+0xa}),_0x4feefb['model']['on']('insertContent',(_0x277019,_0x139178)=>{const _0x18d51a=_0x139178[_0x139178['length']-0x1];_0x18d51a&&_0x18d51a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4feefb['model']['change'](()=>{let _0x2a5ed9=_0x4feefb['model']['insertContent'](_0x139178[0x0],_0x139178[0x1],_0x139178[0x2],{'forceDefaultExecution':!0x0});if(!_0x2a5ed9)return;_0x277019['return']=_0x2a5ed9['clone']();const _0x38acf8=_0x2a5ed9['end']['nodeBefore'],_0x4dc1be=_0x4feefb['model']['schema'];_0x38acf8&&_0x4dc1be['isBlock'](_0x38acf8)&&!_0x4dc1be['isObject'](_0x38acf8)&&(_0x2a5ed9=_0x4feefb['model']['createRange'](_0x2a5ed9['start'],_0x4feefb['model']['createPositionAt'](_0x38acf8,'end'))),this['markInsertion'](_0x2a5ed9);}),_0x277019['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3e50a0=new D(_0x4feefb,this['_suggestions']);_0x4feefb['commands']['add']('acceptSuggestion',_0x3e50a0),this['enableCommand']('acceptSuggestion');const _0x2038ad=new $(_0x4feefb,this['_suggestions']);_0x4feefb['commands']['add']('discardSuggestion',_0x2038ad),this['enableCommand']('discardSuggestion'),_0x4feefb['commands']['add']('acceptAllSuggestions',new M(_0x4feefb,_0x3e50a0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4feefb['commands']['add']('discardAllSuggestions',new M(_0x4feefb,_0x2038ad,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4feefb['commands']['add']('acceptSelectedSuggestions',new B(_0x4feefb,_0x3e50a0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4feefb['commands']['add']('discardSelectedSuggestions',new B(_0x4feefb,_0x2038ad,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5101a1=_0x4feefb['plugins']['get']('CommentsRepository');this['listenTo'](_0x5101a1,'addComment',(_0x519de6,{threadId:_0x3944b3})=>{const _0x509f8c=this['_suggestions']['get'](_0x3944b3);_0x509f8c&&_0x509f8c['commentThread']&&0x1===_0x509f8c['commentThread']['length']&&this['_updateSuggestionData'](_0x3944b3,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5101a1,'removeComment',(_0x3c0a4a,{threadId:_0xeabe47})=>{const _0x430d38=this['_suggestions']['get'](_0xeabe47);_0x430d38&&_0x430d38['commentThread']&&!_0x430d38['commentThread']['length']&&this['_updateSuggestionData'](_0xeabe47,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x30a4a2){const _0xe84043=_0x2bc3ae([0x64,0x48,0x50,0x31,0x4e,0x67,0x45,0x66,0x77,0x75,0x74,0x6c,0x69,0x41,0x32,0x34,0x55,0x35,0x65,0x4c,0x54,0x71,0x53,0x4a,0x4d,0x42,0x36,0x70,0x73,0x78,0x37,0x33,0x47,0x49,0x61,0x39,0x68,0x43,0x76,0x5a,0x79,0x57,0x30,0x6e,0x62,0x4b,0x6d,0x38,0x63,0x44,0x6b,0x51,0x7a,0x6f,0x6a,0x56,0x72,0x4f,0x59,0x52,0x46,0x58]),_0x386ad5=0x77805600,_0x19cdc3=0x778726e8^_0x386ad5,_0x5c28cc=window[_0x2bc3ae([0x44,0x61,0x74,0x65])][_0x2bc3ae([0x6e,0x6f,0x77])](),_0x53499f=_0x30a4a2[_0x2bc3ae([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x52ac11=new window[(_0x2bc3ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c3344=>{_0x53499f[_0x2bc3ae([0x6f,0x6e,0x63,0x65])](_0x2bc3ae([0x72,0x65,0x61,0x64,0x79]),_0x5c3344);}),_0x40b190={[_0x2bc3ae([0x6b,0x74,0x79])]:_0x2bc3ae([0x45,0x43]),[_0x2bc3ae([0x75,0x73,0x65])]:_0x2bc3ae([0x73,0x69,0x67]),[_0x2bc3ae([0x63,0x72,0x76])]:_0x2bc3ae([0x50,0x2d,0x32,0x35,0x36]),[_0x2bc3ae([0x78])]:_0x2bc3ae([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2bc3ae([0x79])]:_0x2bc3ae([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2bc3ae([0x61,0x6c,0x67])]:_0x2bc3ae([0x45,0x53,0x32,0x35,0x36])},_0x2fa15e=_0x53499f[_0x2bc3ae([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2bc3ae([0x67,0x65,0x74])](_0x2bc3ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xec8522(){let _0x51586f,_0xc667fd=null,_0x5da834=null;try{if(_0x2fa15e==_0x2bc3ae([0x47,0x50,0x4c]))return _0x2bc3ae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51586f=_0x5d4294(),!_0x51586f)return _0x2bc3ae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51586f[_0x2bc3ae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5da834=_0x496f66(_0x51586f[_0x2bc3ae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51586f[_0x2bc3ae([0x6a,0x74,0x69])])),await _0x2bddf8()?_0x3c0975()?_0x140ed2()?_0x2bc3ae([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2a78a1()?(_0x51586f[_0x2bc3ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2bc3ae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc667fd=_0xf47ced(_0x2bc3ae([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51586f[_0x2bc3ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2bc3ae([0x74,0x72,0x69,0x61,0x6c])&&(_0xc667fd=_0xf47ced(_0x2bc3ae([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xf4884f()):_0x2bc3ae([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2bc3ae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2bc3ae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2bc3ae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x140ed2(){const _0x3c3443=[_0x2bc3ae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2bc3ae([0x74,0x72,0x69,0x61,0x6c])][_0x2bc3ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51586f[_0x2bc3ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5c28cc/0x3e8:0xe10*_0x19cdc3;return _0x51586f[_0x2bc3ae([0x65,0x78,0x70])]<_0x3c3443;}function _0x3c0975(){const _0x5be1f4=_0x51586f[_0x2bc3ae([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5be1f4)return!0x1;if(_0x5be1f4[_0x2bc3ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bc3ae([0x2a])))return!0x0;if(_0x5be1f4[_0x2bc3ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bc3ae([0x54,0x43])))return!0x0;if(_0x5be1f4[_0x2bc3ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bc3ae([0x52,0x54,0x43]))){if(_0x531ce8())return!0x0;if(_0x15c415()||_0x1fea3d())return!0x0;}return!0x1;}function _0x2a78a1(){const _0x42b3d9=_0x51586f[_0x2bc3ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x42b3d9||0x0==_0x42b3d9[_0x2bc3ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf882d4}=new URL(window[_0x2bc3ae([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x42b3d9[_0x2bc3ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf882d4))return!0x0;const _0x5ba163=_0xf882d4[_0x2bc3ae([0x73,0x70,0x6c,0x69,0x74])](_0x2bc3ae([0x2e]));return _0x42b3d9[_0x2bc3ae([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x144583=>_0x144583[_0x2bc3ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bc3ae([0x2a])))[_0x2bc3ae([0x6d,0x61,0x70])](_0x3d81cd=>_0x3d81cd[_0x2bc3ae([0x73,0x70,0x6c,0x69,0x74])](_0x2bc3ae([0x2e])))[_0x2bc3ae([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3dca6f=>_0x3dca6f[_0x2bc3ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5ba163[_0x2bc3ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2bc3ae([0x6d,0x61,0x70])](_0x724647=>Array(_0x5ba163[_0x2bc3ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x724647[_0x2bc3ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2bc3ae([0x66,0x69,0x6c,0x6c])](_0x724647[0x0]===_0x2bc3ae([0x2a])?_0x2bc3ae([0x2a]):'')[_0x2bc3ae([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x724647))[_0x2bc3ae([0x73,0x6f,0x6d,0x65])](_0x137874=>_0x5ba163[_0x2bc3ae([0x65,0x76,0x65,0x72,0x79])]((_0x434b38,_0x1d9caa)=>_0x137874[_0x1d9caa]===_0x434b38||_0x137874[_0x1d9caa]===_0x2bc3ae([0x2a])));}function _0xf4884f(){return _0xc667fd&&_0x5da834?new window[(_0x2bc3ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f99b6,_0x109d53)=>{_0xc667fd[_0x2bc3ae([0x74,0x68,0x65,0x6e])](_0x2f99b6,_0x109d53),_0x5da834[_0x2bc3ae([0x74,0x68,0x65,0x6e])](_0xe11266=>{_0xe11266!=_0x2bc3ae([0x56,0x61,0x6c,0x69,0x64])&&_0x2f99b6(_0xe11266);},_0x109d53);}):_0xc667fd||_0x5da834||_0x2bc3ae([0x56,0x61,0x6c,0x69,0x64]);}}function _0x496f66(_0x152ec3,_0x168cd1){return new window[(_0x2bc3ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5849cf=>{if(_0x4e1353())return _0x5849cf(_0x2bc3ae([0x56,0x61,0x6c,0x69,0x64]));_0xe0534c(),_0x53499f[_0x2bc3ae([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2bc3ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4549d8=!0x1;const _0x45cb7c=_0x3b5d55();function _0x44f7d9(_0x1b5058){return!!_0x1b5058&&(typeof _0x1b5058===_0x2bc3ae([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b5058===_0x2bc3ae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b5058[_0x2bc3ae([0x74,0x68,0x65,0x6e])]===_0x2bc3ae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b5058[_0x2bc3ae([0x63,0x61,0x74,0x63,0x68])]===_0x2bc3ae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x149672(_0x49fc9a){_0x5c9e15(_0x49fc9a)[_0x2bc3ae([0x74,0x68,0x65,0x6e])](_0x27e790=>{if(!_0x27e790||_0x27e790[_0x2bc3ae([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2bc3ae([0x6f,0x6b]))return _0x2bc3ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe39f11(_0x2e8528(_0x45cb7c+_0x168cd1))!=_0x27e790[_0x2bc3ae([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2bc3ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2bc3ae([0x56,0x61,0x6c,0x69,0x64]);})[_0x2bc3ae([0x74,0x68,0x65,0x6e])](_0x565f06=>(_0x2ebe1a(),_0x565f06),()=>{const _0x25e41c=_0x33ffb0();return null==_0x25e41c?(_0x2ebe1a(),_0x2bc3ae([0x56,0x61,0x6c,0x69,0x64])):_0x2bc3ae(_0x5c28cc-_0x25e41c>(0x538cd200^_0x386ad5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2bc3ae([0x74,0x68,0x65,0x6e])](_0x5849cf)[_0x2bc3ae([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5849cf(_0x2bc3ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x175130=0x77b6b880^_0x386ad5;function _0x2ebe1a(){const _0x29a301=_0x2bc3ae([0x6c,0x6c,0x63,0x74,0x2d])+_0xe39f11(_0x2e8528(_0x152ec3)),_0x36d0b0=_0x58a41e(_0xe39f11(window[_0x2bc3ae([0x4d,0x61,0x74,0x68])][_0x2bc3ae([0x63,0x65,0x69,0x6c])](_0x5c28cc/_0x175130)));window[_0x2bc3ae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bc3ae([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29a301,_0x36d0b0);}function _0x33ffb0(){const _0x38651a=_0x2bc3ae([0x6c,0x6c,0x63,0x74,0x2d])+_0xe39f11(_0x2e8528(_0x152ec3)),_0x5ba503=window[_0x2bc3ae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bc3ae([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38651a);return _0x5ba503?window[_0x2bc3ae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58a41e(_0x5ba503),0x10)*_0x175130:null;}function _0x5c9e15(_0x1d9460){return new window[(_0x2bc3ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b5710,_0x13ce8e)=>{_0x1d9460[_0x2bc3ae([0x74,0x68,0x65,0x6e])](_0x1b5710,_0x13ce8e),window[_0x2bc3ae([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x13ce8e,0x778182c0^_0x386ad5);});}}_0x53499f[_0x2bc3ae([0x6f,0x6e])](_0x2bc3ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f6769,_0x151349)=>{if(_0x151349[0x0]!=_0x152ec3)return _0x5849cf(_0x2bc3ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x151349[0x1]={..._0x151349[0x1],[_0x2bc3ae([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45cb7c};},{[_0x2bc3ae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bc3ae([0x68,0x69,0x67,0x68])}),_0x53499f[_0x2bc3ae([0x6f,0x6e])](_0x2bc3ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x46e1f2=>{_0x44f7d9(_0x46e1f2[_0x2bc3ae([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4549d8=!0x0,_0x149672(_0x46e1f2[_0x2bc3ae([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2bc3ae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bc3ae([0x6c,0x6f,0x77])}),_0x52ac11[_0x2bc3ae([0x74,0x68,0x65,0x6e])](()=>{_0x4549d8||_0x5849cf(_0x2bc3ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e1353(){return _0x53499f[_0x2bc3ae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bc3ae([0x76,0x69,0x65,0x77])][_0x2bc3ae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2bc3ae([0x61,0x75,0x74,0x6f]);}function _0xe0534c(){_0x53499f[_0x2bc3ae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bc3ae([0x76,0x69,0x65,0x77])][_0x2bc3ae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2bc3ae([0x61,0x75,0x74,0x6f]);}}function _0xf47ced(_0x26dcf0){const _0x382fb6=[new window[(_0x2bc3ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x132a3b=>setTimeout(_0x132a3b,0x778968cc^_0x386ad5)),_0x52ac11[_0x2bc3ae([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2bc3ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d3695=>{let _0x143198=0x0;_0x53499f[_0x2bc3ae([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bc3ae([0x6f,0x6e])](_0x2bc3ae([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x366803,_0x358559)=>{_0x358559[0x0][_0x2bc3ae([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x143198++,_0x143198==(0x778057f8^_0x386ad5)&&(_0x2d3695(),_0x366803[_0x2bc3ae([0x6f,0x66,0x66])]());});}))];return window[_0x2bc3ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2bc3ae([0x72,0x61,0x63,0x65])](_0x382fb6)[_0x2bc3ae([0x74,0x68,0x65,0x6e])](()=>_0x26dcf0);}async function _0x46a2cd(){await _0x52ac11,_0x53499f[_0x2bc3ae([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bc3ae([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x16a251,_0x53499f[_0x2bc3ae([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bc3ae([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x16a251,_0x53499f[_0x2bc3ae([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2bc3ae([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x531ce8(){return _0x1094a5(_0x2bc3ae([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x40cf54(_0x2bc3ae([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2bc3ae([0x73,0x74,0x61,0x74,0x65])]==_0x2bc3ae([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x15c415(){return _0x1094a5(_0x2bc3ae([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x1fea3d(){return _0x1094a5(_0x2bc3ae([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x24a50f(_0x30e0af){const _0x10260c=_0x3939bb();_0x53499f[_0x10260c]=_0x2bc3ae([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x30e0af,_0x30e0af!=_0x2bc3ae([0x56,0x61,0x6c,0x69,0x64])&&_0x46a2cd();}function _0x3939bb(){const _0x1b5dc0=window[_0x2bc3ae([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2bc3ae([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2bc3ae([0x6e,0x6f,0x77])]())[_0x2bc3ae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2bc3ae([0x2e]),'');let _0x59ed51=_0x2bc3ae([0x64]);for(let _0x1aa020=0x0;_0x1aa020<_0x1b5dc0[_0x2bc3ae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1aa020+=0x2){let _0xe6f819=window[_0x2bc3ae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b5dc0[_0x2bc3ae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1aa020,_0x1aa020+0x2));_0xe6f819>=_0xe84043[_0x2bc3ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe6f819-=_0xe84043[_0x2bc3ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x59ed51+=_0xe84043[_0xe6f819];}return _0x59ed51;}function _0x5d4294(){const _0x1c90e8=_0x2fa15e[_0x2bc3ae([0x73,0x70,0x6c,0x69,0x74])](_0x2bc3ae([0x2e]));if(0x3!=_0x1c90e8[_0x2bc3ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x78aec7(_0x1c90e8[0x1]);function _0x78aec7(_0x8afabe){const _0x3fb806=_0x390711(_0x8afabe);return _0x3fb806&&_0x807205()?_0x3fb806:null;function _0x807205(){const _0x3317c1=_0x3fb806[_0x2bc3ae([0x6a,0x74,0x69])],_0x1972e5=window[_0x2bc3ae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3317c1[_0x2bc3ae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3317c1[_0x2bc3ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2adf72={..._0x3fb806,[_0x2bc3ae([0x6a,0x74,0x69])]:_0x3317c1[_0x2bc3ae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3317c1[_0x2bc3ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2adf72[_0x2bc3ae([0x76,0x63])],_0x2e8528(_0x2adf72)==_0x1972e5;}}}async function _0x2bddf8(){let _0x1a8408=!0x0;try{const _0x4b913c=_0x2fa15e[_0x2bc3ae([0x73,0x70,0x6c,0x69,0x74])](_0x2bc3ae([0x2e])),[_0x51c865,_0x5eecd4,_0x9616d7]=_0x4b913c;return _0x1ff82e(_0x51c865),await _0x1460f2(_0x51c865,_0x5eecd4,_0x9616d7),_0x1a8408;}catch{return!0x1;}function _0x1ff82e(_0x2f9e69){const _0x3c9fd8=_0x390711(_0x2f9e69);_0x3c9fd8&&_0x3c9fd8[_0x2bc3ae([0x61,0x6c,0x67])]==_0x2bc3ae([0x45,0x53,0x32,0x35,0x36])||(_0x1a8408=!0x1);}async function _0x1460f2(_0x255ded,_0x145661,_0x2c1bed){const _0x467c71=window[_0x2bc3ae([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2bc3ae([0x66,0x72,0x6f,0x6d])](_0x303dc3(_0x2c1bed),_0x295a68=>_0x295a68[_0x2bc3ae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x149102=new window[(_0x2bc3ae([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2bc3ae([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x255ded+_0x2bc3ae([0x2e])+_0x145661),_0xd47aba=window[_0x2bc3ae([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2bc3ae([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd47aba)return;const _0x52938c=await _0xd47aba[_0x2bc3ae([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2bc3ae([0x6a,0x77,0x6b]),_0x40b190,{[_0x2bc3ae([0x6e,0x61,0x6d,0x65])]:_0x2bc3ae([0x45,0x43,0x44,0x53,0x41]),[_0x2bc3ae([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2bc3ae([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2bc3ae([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd47aba[_0x2bc3ae([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2bc3ae([0x6e,0x61,0x6d,0x65])]:_0x2bc3ae([0x45,0x43,0x44,0x53,0x41]),[_0x2bc3ae([0x68,0x61,0x73,0x68])]:{[_0x2bc3ae([0x6e,0x61,0x6d,0x65])]:_0x2bc3ae([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x52938c,_0x467c71,_0x149102)||(_0x1a8408=!0x1);}}function _0x390711(_0x5785dc){return _0x5785dc[_0x2bc3ae([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2bc3ae([0x65,0x79]))?JSON[_0x2bc3ae([0x70,0x61,0x72,0x73,0x65])](_0x303dc3(_0x5785dc)):null;}function _0x303dc3(_0x3b6dd6){return window[_0x2bc3ae([0x61,0x74,0x6f,0x62])](_0x3b6dd6[_0x2bc3ae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2bc3ae([0x2b]))[_0x2bc3ae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2bc3ae([0x2f])));}function _0x2e8528(_0x5c4345){let _0x259784=0x1505;function _0x38fb36(_0x2c5a3c){for(let _0x1dd1ad=0x0;_0x1dd1ad<_0x2c5a3c[_0x2bc3ae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1dd1ad++){const _0xd250f5=_0x2c5a3c[_0x2bc3ae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1dd1ad);_0x259784=(_0x259784<<0x5)+_0x259784+_0xd250f5,_0x259784&=_0x259784;}}function _0x3ebcab(_0x4ff98c){Array[_0x2bc3ae([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ff98c)?_0x4ff98c[_0x2bc3ae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3ebcab):_0x4ff98c&&typeof _0x4ff98c==_0x2bc3ae([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2bc3ae([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ff98c)[_0x2bc3ae([0x73,0x6f,0x72,0x74])]()[_0x2bc3ae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3ebbc5,_0x55f501])=>{_0x38fb36(_0x3ebbc5),_0x3ebcab(_0x55f501);}):_0x38fb36(window[_0x2bc3ae([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ff98c));}return _0x3ebcab(_0x5c4345),_0x259784>>>0x0;}function _0xe39f11(_0x356a29){return _0x356a29[_0x2bc3ae([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2bc3ae([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2bc3ae([0x30]));}function _0x58a41e(_0x54f582){return _0x54f582[_0x2bc3ae([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2bc3ae([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2bc3ae([0x6a,0x6f,0x69,0x6e])]('');}function _0x1094a5(_0x42ec3e){return _0x53499f[_0x2bc3ae([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2bc3ae([0x68,0x61,0x73])](_0x42ec3e);}function _0x40cf54(_0x2d3430){return _0x53499f[_0x2bc3ae([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2bc3ae([0x67,0x65,0x74])](_0x2d3430);}function _0x16a251(){}function _0x2bc3ae(_0x3a73da){return _0x3a73da['map'](_0x826e6a=>String['fromCharCode'](_0x826e6a))['join']('');}_0x24a50f(await _0xec8522());}(this);}set['adapter'](_0x4f0eb8){if(this['_adapter'])throw new _0x5953c2('track-changes-adapter-already-set',this);this['_adapter']=_0x4f0eb8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4a9d19=!0x1,toJSON:_0x838419=!0x1}={}){const _0x5387d8=[];for(const _0x337cf8 of this['_suggestions']['values']())_0x4a9d19&&!_0x337cf8['isInContent']||_0x5387d8['push'](_0x337cf8);return _0x838419?_0x5387d8['map'](_0x17d4c2=>_0x17d4c2['toJSON']()):_0x5387d8;}['getSuggestion'](_0x5dd782){const _0x3ae126=this['_suggestions']['get'](_0x5dd782);if(!_0x3ae126)throw new _0x5953c2('track-changes-suggestion-not-found',this);return _0x3ae126;}['hasSuggestion'](_0x4f2aa3){return this['_suggestions']['has'](_0x4f2aa3);}['addSuggestionData'](_0x21b7d3){const {authorId:_0x2c5e12,id:_0x1ad56e,originalSuggestionId:_0x1698e0,attributes:_0x59d83f}=_0x21b7d3,[_0x192c71,_0x32ee80]=_0x21b7d3['type']['split'](':'),_0x3d4695=this['_suggestions']['get'](_0x1ad56e)||this['_createSuggestion'](_0x192c71,_0x32ee80,_0x1ad56e,_0x2c5e12,_0x59d83f,_0x1698e0);if(this['_addThreadToSuggestion'](_0x3d4695),this['_checkSuggestionCorrectness'](_0x3d4695,_0x192c71,_0x32ee80||null,_0x2c5e12),_0x3d4695['createdAt']=_0x21b7d3['createdAt'],_0x3d4695['_isDataLoaded']=!0x0,_0x59d83f&&_0x59d83f['@external']){const _0x1fcaaa=_0x59d83f['@external'],_0x56f15f=this['_getExternalAuthor'](_0x1fcaaa['authorName']);_0x3d4695['authoredAt']=_0x1fcaaa['createdAt'],_0x3d4695['author']=_0x56f15f,_0x3d4695['isExternal']=!0x0;}else _0x3d4695['authoredAt']=_0x21b7d3['createdAt'];switch(_0x21b7d3['data']&&(_0x3d4695['data']=_0x21b7d3['data']),_0x21b7d3['attributes']&&(_0x3d4695['attributes']=_0x21b7d3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3d4695['_saved']=!0x0),this['_suggestionState']['get'](_0x3d4695)){case'notReady':this['_suggestionState']['set'](_0x3d4695,'dataReady');break;case'markerReady':_0x3d4695['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3d4695])),this['_refreshSuggestionsChain'](new Set([_0x3d4695])),this['_suggestionState']['set'](_0x3d4695,'ready'),this['fire']('suggestionLoaded',_0x3d4695)):this['_suggestionState']['set'](_0x3d4695,'removed');}return _0x3d4695;}['acceptSuggestion'](_0x332eb0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1b3cdd of _0x332eb0['getAllAdjacentSuggestions']())_0x1b3cdd['accept']();});});}['discardSuggestion'](_0x23d650){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x241dc2 of _0x23d650['getAllAdjacentSuggestions']())_0x241dc2['discard']();});});}['enableCommand'](_0xce63c3,_0x4580f1){const _0x50cfa9=this['editor']['commands']['get'](_0xce63c3);if(!_0x50cfa9)throw new _0x5953c2('track-changes-command-not-found',this,{'commandName':_0xce63c3});if(this['_enabledCommands']['has'](_0x50cfa9))throw new _0x5953c2('track-changes-enable-command-twice',this,{'commandName':_0xce63c3});this['_enabledCommands']['add'](_0x50cfa9),_0x4580f1&&_0x50cfa9['on']('execute',(_0x3232cf,_0x2057dd)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2057dd['length']>0x0&&_0x2057dd[_0x2057dd['length']-0x1]&&_0x2057dd[_0x2057dd['length']-0x1]['forceDefaultExecution']?_0x2057dd['pop']():(_0x3232cf['return']=_0x4580f1((..._0x1303b8)=>_0x50cfa9['execute'](..._0x1303b8,{'forceDefaultExecution':!0x0}),..._0x2057dd),_0x3232cf['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4a716c){let _0x52f4fb,_0x29ae98;const _0x4accf5=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x52f4fb=_0x4a716c();}catch(_0x390de4){_0x29ae98=_0x390de4;}return _0x4accf5||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x29ae98&&_0x5953c2['rethrowUnexpectedError'](_0x29ae98,this),_0x52f4fb;}['markInsertion'](_0x29bef9,_0x4d5fea=null,_0x52a313={}){if(_0x29bef9['isCollapsed'])return null;const _0x320669=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x52a313['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x57a8ba,meta:_0x155aa9}of this['_findSuggestions'](_0x29bef9,'insertion'))if(_0x155aa9['isOwn']){if(!_0x155aa9['isNextTo']){if(_0x155aa9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x57a8ba,_0x52a313))continue;return _0x57a8ba;}if(Xt(_0x57a8ba,_0x52a313))return _0x57a8ba;this['_breakSuggestionMarker'](_0x57a8ba,_0x29bef9['start'],_0x29bef9['end']);break;}if(_0x4d5fea==_0x57a8ba['subType']&&Xt(_0x57a8ba,_0x52a313)){const _0x42a8a8=_0x57a8ba['getFirstRange']();return _0x42a8a8['start']['isEqual'](_0x29bef9['end'])?this['_setSuggestionRange'](_0x57a8ba,this['_model']['createRange'](_0x29bef9['start'],_0x42a8a8['end'])):this['_setSuggestionRange'](_0x57a8ba,this['_model']['createRange'](_0x42a8a8['start'],_0x29bef9['end'])),_0x57a8ba;}}const _0x45e4d0=_0x3b5d55(),_0x42f780=_0x320669['id'],_0x55154b=_0x4d5fea?'insertion:'+_0x4d5fea:'insertion',_0x51c834=this['_setSuggestionData']({'id':_0x45e4d0,'type':_0x55154b,'createdAt':new Date(),'authorId':_0x42f780,'attributes':_0x52a313});return this['_addSuggestionMarker'](_0x55154b,_0x45e4d0,_0x42f780,_0x29bef9),_0x51c834;}['markMultiRangeInsertion'](_0x2a7dd5,_0x453384='multi',_0x2a9b18={}){const _0x1609fe=this['editor']['plugins']['get']('Users')['me'],_0x662aef=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x453384,'join');this['_trackingSessionId']&&(_0x2a9b18['trackingSessionId']=this['_trackingSessionId']);for(const _0x15d1d6 of this['getSuggestions']())if(_0x15d1d6['author']['id']==_0x1609fe['id']&&'insertion'==_0x15d1d6['type']&&_0x15d1d6['subType']==_0x453384&&Xt(_0x15d1d6,_0x2a9b18)&&(_0x662aef(_0x15d1d6['getRanges'](),_0x2a7dd5)||_0x662aef(_0x2a7dd5,_0x15d1d6['getRanges']()))){for(const _0x5b65b8 of _0x2a7dd5)_0x15d1d6['addRange'](_0x5b65b8);return _0x15d1d6;}for(const {suggestion:_0x519085,meta:_0x417ecc}of this['_findSuggestions'](_0x2a7dd5,'insertion')){if(!_0x417ecc['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x417ecc['containsRangeInObject'])continue;if(!Xt(_0x519085,_0x2a9b18))continue;let _0x23aa6d=!0x0;for(const _0x39357b of _0x519085['getRanges']())for(const _0x3912ec of _0x2a7dd5)if(!_0x39357b['containsRange'](_0x3912ec)){_0x23aa6d=!0x1;break;}if(_0x23aa6d)return _0x519085;}const _0x15d47c=_0x3b5d55(),_0xea337d=_0x1609fe['id'],_0x1ed3e4='insertion:'+_0x453384,_0x4eb342=this['_setSuggestionData']({'id':_0x15d47c,'type':_0x1ed3e4,'createdAt':new Date(),'authorId':_0xea337d,'attributes':_0x2a9b18});for(const _0x152bdf of _0x2a7dd5)this['_addSuggestionMarker'](_0x1ed3e4,_0x15d47c,_0xea337d,_0x152bdf,T['getMultiRangeId']());return _0x4eb342;}['markInlineFormat'](_0x345d5f,_0x152a8d,_0x3e6ae5=null,_0x55f375={}){if(_0x3e6ae5=_0x3e6ae5||Lt(_0x152a8d),_0x345d5f['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x55f375['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3239fe=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3e6ae5,'accept');return this['forceDefaultExecution'](()=>_0x3239fe([_0x345d5f],_0x152a8d,_0x55f375)),null;}const _0x6a9e0c=this['editor']['plugins']['get']('Users')['me'],_0x41fe65=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2ee083,meta:_0x2e320f}of this['_findSuggestions'](_0x345d5f,'insertion'))_0x2e320f['isOwn']&&!_0x2e320f['isInsideObject']&&_0x41fe65['push'](..._0x2ee083['getRanges']());}const _0x44e84b=function(_0xc34ec1,_0x43e8eb){const _0x53a9a3=[];for(const _0x38fa44 of _0x43e8eb){const _0x2123de=_0xc34ec1['getIntersection'](_0x38fa44);_0x2123de&&_0x53a9a3['push'](_0x2123de);}return _0x53a9a3;}(_0x345d5f,_0x41fe65),_0x148e81=function(_0x123156,_0x49241d){const _0x2e99be=[_0x123156];for(const _0x1d71b3 of _0x49241d){let _0xa4abec=0x0;for(;_0xa4abec<_0x2e99be['length'];){const _0x16aa9c=_0x2e99be[_0xa4abec]['getDifference'](_0x1d71b3);_0x2e99be['splice'](_0xa4abec,0x1,..._0x16aa9c),_0xa4abec+=_0x16aa9c['length'];}}return _0x2e99be;}(_0x345d5f,_0x41fe65);_0x44e84b['length']&&this['_model']['change'](()=>{for(const _0x10d4c9 of _0x44e84b){const _0x33ce37=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3e6ae5,'accept');this['forceDefaultExecution'](()=>_0x33ce37([_0x10d4c9],_0x152a8d,_0x55f375));}});for(const _0x5e4eeb of _0x148e81){let _0x4a65b8=null,_0x2e8d00=_0x5e4eeb['start'],_0xb2d14=_0x5e4eeb['end'];for(const {suggestion:_0x5bf312,meta:_0x26ea1f}of this['_findSuggestions'](_0x5e4eeb,'formatInline')){if(!_0x26ea1f['isOwn'])continue;if(_0x5bf312['subType']!=_0x3e6ae5)continue;if(!Xt(_0x5bf312,_0x55f375))continue;const _0x4f357b=_0x5bf312['getFirstRange']();if(_0x4f357b['containsRange'](_0x5e4eeb,!0x0))return null;_0x2e8d00=_0x2e8d00['isBefore'](_0x4f357b['start'])?_0x2e8d00:_0x4f357b['start'],_0xb2d14=_0xb2d14['isAfter'](_0x4f357b['end'])?_0xb2d14:_0x4f357b['end'],_0x4a65b8?_0x4f357b['start']['isBefore'](_0x4a65b8['getFirstRange']()['start'])?(_0x4a65b8['removeMarkers'](),_0x4a65b8=_0x5bf312):_0x5bf312['removeMarkers']():_0x4a65b8=_0x5bf312;}const _0x2bd854=this['_model']['createRange'](_0x2e8d00,_0xb2d14);if(_0x4a65b8)this['_setSuggestionRange'](_0x4a65b8,_0x2bd854);else{const _0x1aaea5=_0x3b5d55(),_0x22be2a=_0x6a9e0c['id'];this['_setSuggestionData']({'id':_0x1aaea5,'type':'formatInline:'+_0x3e6ae5,'data':_0x152a8d,'createdAt':new Date(),'authorId':_0x22be2a,'attributes':_0x55f375}),this['_addSuggestionMarker']('formatInline:'+_0x3e6ae5,_0x1aaea5,_0x22be2a,_0x2bd854);}}return null;}['markBlockFormat'](_0x24ed60,_0x43875b,_0x180a76=[],_0x36f0f3=null,_0x22fd33={}){_0x43875b['formatGroupId']||(_0x43875b['formatGroupId']=_0x43875b['commandName']),_0x43875b['multipleBlocks']=_0x24ed60['is']('range'),_0x36f0f3=_0x36f0f3||Lt(_0x43875b);const _0x557e8a=_0x180a76['map'](_0x59c459=>zt(_0x59c459,this['_model'])),_0x1f3a1a=_0x24ed60['is']('range')?_0x24ed60:zt(_0x24ed60,this['_model']);if(this['_trackingSessionId']&&(_0x22fd33['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5f5ac3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36f0f3,'accept');return this['forceDefaultExecution'](()=>_0x5f5ac3([_0x1f3a1a],_0x43875b,_0x22fd33)),null;}_0x557e8a['push'](_0x1f3a1a);let _0x4892fe=!0x0;for(const _0x3f1cd7 of _0x557e8a)if(!this['_rangeIsInLocalUserInsertion'](_0x3f1cd7)){_0x4892fe=!0x1;break;}if(_0x4892fe&&'always'!==this['_trackFormatChanges']){const _0x9b264b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36f0f3,'accept');return this['forceDefaultExecution'](()=>_0x9b264b([_0x1f3a1a],_0x43875b,_0x22fd33)),null;}let _0x30079e=null,_0x4cc908=_0x1f3a1a['start'],_0x47190b=_0x1f3a1a['end'];for(const {suggestion:_0x2a4e49,meta:_0x471989}of this['_findSuggestions'](_0x1f3a1a,'formatBlock')){if(!_0x471989['isOwn'])continue;if(_0x471989['isNextTo']||_0x471989['containsRangeInObject']||_0x471989['isInsideObject'])continue;if(_0x2a4e49['data']['formatGroupId']!=_0x43875b['formatGroupId'])continue;if(!Xt(_0x2a4e49,_0x22fd33))continue;const _0xb4abd4=_0x2a4e49['getFirstRange']();if(_0x2a4e49['subType']==_0x36f0f3){if(_0xb4abd4['containsRange'](_0x1f3a1a,!0x0))return null;_0x4cc908=_0x4cc908['isBefore'](_0xb4abd4['start'])?_0x4cc908:_0xb4abd4['start'],_0x47190b=_0x47190b['isAfter'](_0xb4abd4['end'])?_0x47190b:_0xb4abd4['end'],_0x30079e?_0xb4abd4['start']['isBefore'](_0x30079e['getFirstRange']()['start'])?(_0x30079e['removeMarkers'](),_0x30079e=_0x2a4e49):_0x2a4e49['removeMarkers']():_0x30079e=_0x2a4e49;}else{const _0x148c2f=_0x1f3a1a['getIntersection'](_0xb4abd4);this['_cutOutSuggestionMarker'](_0x2a4e49,_0x148c2f);}}const _0x376805=this['editor']['plugins']['get']('Users')['me'],_0x173c86=_0x3b5d55(),_0x5a76bc=_0x376805['id'];if(_0x30079e)return this['_setSuggestionRange'](_0x30079e,this['_model']['createRange'](_0x4cc908,_0x47190b)),_0x30079e;{const _0x210da0=this['_setSuggestionData']({'id':_0x173c86,'type':'formatBlock:'+_0x36f0f3,'data':_0x43875b,'createdAt':new Date(),'authorId':_0x5a76bc,'attributes':_0x22fd33});return this['_addSuggestionMarker']('formatBlock:'+_0x36f0f3,_0x173c86,_0x5a76bc,this['_model']['createRange'](_0x4cc908,_0x47190b)),_0x210da0;}}['markMultiRangeBlockFormat'](_0x2d2741,_0x32cfeb,_0x41d907=[],_0x5907e4=null,_0x18749d={}){_0x32cfeb['formatGroupId']||(_0x32cfeb['formatGroupId']=_0x32cfeb['commandName']);const _0x49f17a=_0x2d2741[0x0];_0x32cfeb['multipleBlocks']=_0x49f17a['is']('range'),_0x5907e4=_0x5907e4||Lt(_0x32cfeb);const _0x829d1d=_0x41d907['map'](_0x3b35db=>zt(_0x3b35db,this['_model'])),_0x2ff672=_0x49f17a['is']('range')?_0x2d2741:_0x2d2741['map'](_0x14de73=>zt(_0x14de73,this['_model']));if(this['_trackingSessionId']&&(_0x18749d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x48e9e5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5907e4,'accept');return this['forceDefaultExecution'](()=>_0x48e9e5(_0x2ff672,_0x32cfeb,_0x18749d)),null;}_0x829d1d['push'](..._0x2ff672);let _0x5c1f75=!0x0;for(const _0x30ae84 of _0x829d1d)if(!this['_rangeIsInLocalUserInsertion'](_0x30ae84)){_0x5c1f75=!0x1;break;}if(_0x5c1f75&&'always'!==this['_trackFormatChanges']){const _0xe4a5f0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5907e4,'accept');return this['forceDefaultExecution'](()=>_0xe4a5f0(_0x2ff672,_0x32cfeb,_0x18749d)),null;}const _0x41fadb=this['editor']['plugins']['get']('Users')['me'];for(const _0x5c87f6 of this['getSuggestions']()){const _0x5e3f02=_0x5c87f6['data'];if(_0x5c87f6['author']['id']!=_0x41fadb['id'])continue;if('formatBlock'!=_0x5c87f6['type']||_0x5e3f02['formatGroupId']!=_0x32cfeb['formatGroupId'])continue;if(!Xt(_0x5c87f6,_0x18749d))continue;const _0x37872d=_0x5c87f6['subType']==_0x5907e4;for(let _0x3483d6=0x0;_0x3483d6<_0x2ff672['length'];_0x3483d6++){const _0x4ed041=_0x2ff672[_0x3483d6];for(const _0x3f094e of _0x5c87f6['getMarkers']()){const _0xdcb8d4=_0x3f094e['getRange']();if(_0x4ed041['isEqual'](_0xdcb8d4)){_0x37872d?(_0x2ff672['splice'](_0x3483d6,0x1),_0x3483d6--):_0x5c87f6['removeMarker'](_0x3f094e['name']);break;}}}}if(0x0==_0x2ff672['length'])return null;const _0x524585=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5907e4,'join');for(const _0x2d2a3d of this['getSuggestions']()){const _0x8e96=_0x2d2a3d['data'];if(_0x2d2a3d['author']['id']==_0x41fadb['id']&&('formatBlock'==_0x2d2a3d['type']&&_0x8e96['formatGroupId']==_0x32cfeb['formatGroupId']&&_0x2d2a3d['subType']==_0x5907e4&&Xt(_0x2d2a3d,_0x18749d)&&(_0x524585(_0x2d2a3d['getRanges'](),_0x2ff672)||_0x524585(_0x2ff672,_0x2d2a3d['getRanges']())))){for(const _0x591720 of _0x2ff672)_0x2d2a3d['addRange'](_0x591720);return _0x2d2a3d;}}const _0x490a28=_0x3b5d55(),_0x3e3eb=_0x41fadb['id'],_0x147bbf='formatBlock:'+_0x5907e4,_0x1fbabe=this['_setSuggestionData']({'id':_0x490a28,'type':_0x147bbf,'data':_0x32cfeb,'createdAt':new Date(),'authorId':_0x3e3eb,'attributes':_0x18749d});for(const _0x4dd598 of _0x2ff672)this['_addSuggestionMarker'](_0x147bbf,_0x490a28,_0x3e3eb,_0x4dd598,T['getMultiRangeId']());return _0x1fbabe;}['markDeletion'](_0x253cbd,_0x3657ed=null,_0x2d0c28={}){if(_0x253cbd['isCollapsed'])return null;const _0x48dfd0=this['editor']['plugins']['get']('Users')['me'],_0x1a99e6=new _0x39990b(_0x253cbd['start'],_0x253cbd['end']);this['_trackingSessionId']&&(_0x2d0c28['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xada981,meta:_0x56ee61}of this['_findSuggestions'](_0x1a99e6,'insertion'))if(_0x56ee61['isOwn']&&!_0x56ee61['isNextTo']){if(_0xada981['isMultiRange']){const _0x284e9a=_0xada981['getRanges']()['filter'](_0x4be099=>'$graveyard'!=_0x4be099['root']['rootName']);_0x284e9a['every'](_0x4d91cc=>_0x1a99e6['containsRange'](_0x4d91cc,!0x0))&&_0xada981['discard']();if(_0x284e9a['some'](_0x48073c=>_0x48073c['containsRange'](_0x1a99e6,!0x0))){const _0x141ab6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3657ed,'accept');return this['forceDefaultExecution'](()=>_0x141ab6([_0x1a99e6],null,_0x2d0c28)),null;}}else{const _0x575a23=_0x1a99e6['getIntersection'](_0xada981['getFirstRange']());null!==_0x575a23&&_0xada981['_onDiscard']([_0x575a23],null,_0x2d0c28);}}if(_0x1a99e6['detach'](),_0x1a99e6['isCollapsed']||'$graveyard'==_0x1a99e6['root']['rootName'])return null;let _0x498e65=null,_0x273f3a=_0x1a99e6['start'],_0x97da5e=_0x1a99e6['end'];const _0x42929b=this['_findSuggestions'](_0x1a99e6,'deletion');for(const {suggestion:_0x5d698e,meta:_0x4b144c}of _0x42929b){const _0x3a8371=this['_model']['createRange'](_0x273f3a,_0x97da5e);if(_0x4b144c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b144c['containsRangeInObject']&&!_0x4b144c['isInsideObject'])){if(_0x5d698e['isMultiRange']){if(!Xt(_0x5d698e,_0x2d0c28))continue;let _0x355817=!0x0;for(const _0x201ade of _0x5d698e['getRanges']()){if(_0x201ade['containsRange'](_0x3a8371,!0x0))return _0x5d698e;_0x3a8371['containsRange'](_0x201ade)||(_0x355817=!0x1);}_0x355817&&_0x5d698e['discard']();}else{const _0x1e39fd=_0x5d698e['getFirstRange']();if(_0x1e39fd['containsRange'](_0x3a8371,!0x0))return _0x5d698e;if(!Xt(_0x5d698e,_0x2d0c28)){_0x3a8371['containsRange'](_0x1e39fd)?_0x5d698e['removeMarkers']():_0x1e39fd['containsPosition'](_0x273f3a)?_0x273f3a=_0x1e39fd['end']:_0x1e39fd['containsPosition'](_0x97da5e)&&(_0x97da5e=_0x1e39fd['start']);continue;}_0x273f3a=_0x273f3a['isBefore'](_0x1e39fd['start'])?_0x273f3a:_0x1e39fd['start'],_0x97da5e=_0x97da5e['isAfter'](_0x1e39fd['end'])?_0x97da5e:_0x1e39fd['end'],_0x2d0c28=Object['assign']({},_0x5d698e['attributes']),_0x498e65?_0x1e39fd['start']['isBefore'](_0x498e65['getFirstRange']()['start'])?(_0x498e65['removeMarkers'](),_0x498e65=_0x5d698e):_0x5d698e['removeMarkers']():_0x498e65=_0x5d698e;}}}if(_0x498e65)return this['_setSuggestionRange'](_0x498e65,this['_model']['createRange'](_0x273f3a,_0x97da5e)),_0x498e65;{const _0x466294=_0x3b5d55(),_0x508fc8=this['_model']['createRange'](_0x273f3a,_0x97da5e),_0x4c7d24=_0x48dfd0['id'],_0x5e75d2=_0x3657ed?'deletion:'+_0x3657ed:'deletion',_0x143bde=this['_setSuggestionData']({'id':_0x466294,'type':_0x5e75d2,'createdAt':new Date(),'authorId':_0x4c7d24,'attributes':_0x2d0c28});return this['_addSuggestionMarker'](_0x5e75d2,_0x466294,_0x4c7d24,_0x508fc8),_0x143bde;}}['markMultiRangeDeletion'](_0x2e77c2,_0x45b8a5='multi',_0x32d6a3={}){const _0x2bb97f=this['editor']['plugins']['get']('Users')['me'],_0x29e184=_0x2e77c2['map'](_0x2de264=>new _0x39990b(_0x2de264['start'],_0x2de264['end'])),_0x476e9f=new Set();this['_trackingSessionId']&&(_0x32d6a3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4b7ad4,meta:_0x4bca78}of this['_findSuggestions'](_0x29e184,'insertion'))_0x4bca78['isOwn']&&!_0x4bca78['isNextTo']&&_0x476e9f['add'](_0x4b7ad4);for(const _0x494bd5 of _0x476e9f)if(_0x494bd5['isMultiRange']){const _0x3e931a=_0x494bd5['getRanges']();(!_0x494bd5['attributes']||!_0x494bd5['attributes']['skipNestingCheck'])&&(_0x3e931a['every'](_0x5160e6=>_0x29e184['some'](_0x5d5e1f=>_0x5d5e1f['containsRange'](_0x5160e6,!0x0)))&&_0x494bd5['discard']());if(_0x29e184['every'](_0x59608f=>_0x3e931a['some'](_0x414d71=>_0x414d71['containsRange'](_0x59608f,!0x0)))){const _0x5d329e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45b8a5,'accept');return this['forceDefaultExecution'](()=>_0x5d329e(_0x2e77c2,null,_0x32d6a3)),null;}}else{const _0x2e04b5=_0x494bd5['getFirstRange']();_0x29e184['some'](_0x29cfb8=>_0x29cfb8['containsRange'](_0x2e04b5,!0x0))&&_0x494bd5['discard']();if(_0x29e184['every'](_0x18e815=>_0x2e04b5['containsRange'](_0x18e815,!0x0))){const _0x240bdb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45b8a5,'accept');return this['forceDefaultExecution'](()=>_0x240bdb(_0x29e184,null,_0x32d6a3)),null;}}const _0x4fbbf3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45b8a5,'join');let _0x392e71=null;for(const _0x6a3c13 of this['getSuggestions']())if(_0x6a3c13['author']['id']==_0x2bb97f['id']&&_0x6a3c13['isInContent']&&'deletion'==_0x6a3c13['type']&&_0x6a3c13['subType']==_0x45b8a5&&Xt(_0x6a3c13,_0x32d6a3)&&(_0x4fbbf3(_0x6a3c13['getRanges'](),_0x29e184)||_0x4fbbf3(_0x29e184,_0x6a3c13['getRanges']()))){if(_0x392e71){if(_0x6a3c13['commentThread']&&_0x6a3c13['commentThread']['length'])continue;for(const _0x580989 of _0x6a3c13['getRanges']())_0x392e71['isIntersectingWithRange'](_0x580989)||_0x392e71['addRange'](_0x580989);_0x6a3c13['removeMarkers']();}else{_0x392e71=_0x6a3c13;for(const _0x1048f0 of _0x29e184)_0x6a3c13['isIntersectingWithRange'](_0x1048f0)||_0x6a3c13['addRange'](_0x1048f0);}}if(_0x392e71)return _0x392e71;_0x476e9f['clear']();for(const {suggestion:_0x50cdff,meta:_0x5e3bf3}of this['_findSuggestions'](_0x29e184,'deletion'))_0x5e3bf3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5e3bf3['containsRangeInObject']&&!_0x5e3bf3['isInsideObject'])&&Xt(_0x50cdff,_0x32d6a3)&&_0x476e9f['add'](_0x50cdff);for(const _0x5f28ef of _0x476e9f){const _0x35ad5e=_0x5f28ef['getRanges']();if(!_0x32d6a3||!_0x32d6a3['skipNestingCheck']){if(_0x29e184['every'](_0xb9a7cd=>_0x35ad5e['some'](_0x131a8f=>_0x131a8f['containsRange'](_0xb9a7cd,!0x0))))return _0x5f28ef;}(!_0x5f28ef['attributes']||!_0x5f28ef['attributes']['skipNestingCheck'])&&(_0x35ad5e['every'](_0xca0345=>_0x29e184['some'](_0x5f20a8=>_0x5f20a8['containsRange'](_0xca0345,!0x0)))&&_0x5f28ef['discard']());}const _0x522361=_0x3b5d55(),_0x49fb77=_0x2bb97f['id'],_0x526f5f='deletion:'+_0x45b8a5,_0x5a269e=this['_setSuggestionData']({'id':_0x522361,'type':_0x526f5f,'createdAt':new Date(),'authorId':_0x49fb77,'attributes':_0x32d6a3});for(const _0x4a98de of _0x29e184)_0x4a98de['detach'](),_0x4a98de['isCollapsed']||'$graveyard'==_0x4a98de['root']['rootName']||this['_addSuggestionMarker'](_0x526f5f,_0x522361,_0x49fb77,_0x4a98de,T['getMultiRangeId']());return _0x5a269e;}['markAttributeChange'](_0x270690,_0x468a96,_0x1ae4f3,_0x190507,_0x33b962){if(_0x270690['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1e401a=this['editor']['plugins']['get']('Users')['me']['id'],_0x2f3534=Array['from'](this['_suggestions']['values']())['filter'](_0x2fa9eb=>'attribute'==_0x2fa9eb['type']&&_0x2fa9eb['data']['key']==_0x468a96&&_0x2fa9eb['isIntersectingWithRange'](_0x270690));if(this['_trackingSessionId']&&(_0x33b962['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2960b0=this['_findSuggestions'](_0x270690,'insertion')['filter'](({meta:_0xb6073c})=>_0xb6073c['isOwn']&&!_0xb6073c['isInsideObject']&&!_0xb6073c['isNextTo'])['map'](({suggestion:_0x209954})=>_0x209954);_0x2f3534['unshift'](..._0x2960b0);}const _0x1264d4=new Map([[_0x270690,_0x1ae4f3]]);for(const _0x435db5 of _0x2f3534){const _0x35f11b='attribute'==_0x435db5['type']?_0x435db5['data']['oldValue']:void 0x0,_0x2034eb=_0x435db5['getFirstRange'](),_0x16969e=Array['from'](_0x1264d4['keys']())['find'](_0x4de70e=>_0x4de70e['isIntersecting'](_0x2034eb));if(!_0x16969e)continue;const _0xa93384=_0x16969e['getDifference'](_0x2034eb);this['_isBlockAttribute'](_0x468a96)&&'insertion'==_0x435db5['type']&&0x0!=_0xa93384['length']||(_0x1264d4['delete'](_0x16969e),_0xa93384['forEach'](_0x72fba9=>{_0x1264d4['set'](_0x72fba9,_0x1ae4f3);}),'insertion'!=_0x435db5['type']&&_0x35f11b!=_0x190507&&_0x1264d4['set'](_0x16969e['getIntersection'](_0x2034eb),_0x35f11b));}const _0x5b9fc1=[];for(const [_0x3eedfe,_0x11902a]of _0x1264d4){const _0x4d8d26=_0x3b5d55(),_0x64e965={'key':_0x468a96,'oldValue':_0x11902a,'newValue':_0x190507};_0x468a96['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':_0x468a96});const _0x31ade7=('attribute:'+(_0x468a96+'|'+Lt({'newValue':_0x190507})))['substring'](0x0,0x3c),_0x545506=this['_setSuggestionData']({'id':_0x4d8d26,'type':_0x31ade7,'data':_0x64e965,'createdAt':new Date(),'authorId':_0x1e401a,'attributes':_0x33b962});_0x5b9fc1['push'](_0x545506),this['_addSuggestionMarker'](_0x31ade7,_0x4d8d26,_0x1e401a,_0x3eedfe);}return _0x5b9fc1;}['enableDefaultAttributesIntegration'](_0x45d365){this['enableCommand'](_0x45d365,(_0x1ccfc8,..._0x59d2c5)=>{this['recordAttributeChanges'](()=>{_0x1ccfc8(..._0x59d2c5);});});}['registerBlockAttribute'](_0x53a698){this['_blockAttributeKeys']['add'](_0x53a698);}['registerInlineAttribute'](_0x35315e){this['_inlineAttributeKeys']['add'](_0x35315e);}['startTrackingSession'](_0x2c89a5){return this['_trackingSessionId']=void 0x0!==_0x2c89a5?_0x2c89a5:_0x3b5d55(),this['_trackingSessionId'];}['_getAttributeKey'](_0x15f414){return'attribute'==_0x15f414['type']?_0x15f414['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1b1ed8,_0x2527e2){const _0x4e904f=_0x1b1ed8['getFirstMarker']();this['_model']['change'](_0x4110d8=>{_0x4110d8['updateMarker'](_0x4e904f,{'range':_0x2527e2});});}['_addThreadToSuggestion'](_0x547055){const _0x74b9f3=_0x547055['id'],_0x841763=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x74b9f3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x841763,'threadId':_0x74b9f3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xddf952=this['_commentsRepository']['getCommentThread'](_0x74b9f3);_0xddf952['unbind']('isRemovable'),_0xddf952['isRemovable']=!0x1,_0x547055['commentThread']=_0xddf952;}['_checkSuggestionCorrectness'](_0x114cba,_0x3ad2f8,_0x308a29,_0x451694){if(_0x114cba['type']!=_0x3ad2f8||_0x114cba['subType']!=_0x308a29||_0x114cba['creator']['id']!=_0x451694)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5953c2('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5cda83,_0x2e599a){const _0x3a2fd2=_0x5cda83['getFirstRange']();if(_0x2e599a['isEqual'](_0x3a2fd2))_0x5cda83['removeMarkers']();else{if(_0x3a2fd2['containsRange'](_0x2e599a)){const _0x3d6043=this['_model']['createPositionAt'](_0x2e599a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5cda83,this['_model']['createRange'](_0x3a2fd2['start'],_0x3d6043));const _0x35e808=_0x3b5d55(),_0xb94191=_0x5cda83['creator']['id'],_0x2d354a=_0x5cda83['type']+':'+_0x5cda83['subType'];this['_setSuggestionData']({'id':_0x35e808,'type':_0x2d354a,'createdAt':new Date(),'authorId':_0xb94191,'data':_0x5cda83['data'],'attributes':_0x5cda83['attributes']});const _0x5c44f4=this['_model']['createPositionAt'](_0x2e599a['end']['parent'],'after'),_0x4b92b0=this['_model']['createRange'](_0x5c44f4,_0x3a2fd2['end']);this['_addSuggestionMarker'](_0x2d354a,_0x35e808,_0xb94191,_0x4b92b0);}else{if(_0x3a2fd2['containsPosition'](_0x2e599a['start'])){const _0x1ed337=this['_model']['createPositionAt'](_0x2e599a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5cda83,this['_model']['createRange'](_0x3a2fd2['start'],_0x1ed337));}else{const _0x2dc7d6=this['_model']['createPositionAt'](_0x2e599a['end']['parent'],'after');this['_setSuggestionRange'](_0x5cda83,this['_model']['createRange'](_0x2dc7d6,_0x3a2fd2['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3e61d5){for(const {suggestion:_0x4dfbe7,meta:_0x1612ee}of this['_findSuggestions'](_0x3e61d5,'insertion')){if(!_0x1612ee['isOwn'])continue;const _0x222cad=_0x4dfbe7['getRanges']();for(const _0x2edb4e of _0x222cad)if(!_0x3e61d5['getDifference'](_0x2edb4e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x232c00){const _0x564ed2=this['editor']['plugins']['get']('Users')['getUser'](_0x232c00);if(!_0x564ed2)throw new _0x5953c2('track-changes-user-not-found',this);return _0x564ed2;}['_getExternalAuthor'](_0x1c9a41){const _0xd3ed5b=this['editor']['plugins']['get']('Users'),_0x476b78=_0x26cfb9('external:'+_0x1c9a41),_0xa6022c=_0xd3ed5b['getUser'](_0x476b78);return _0xa6022c||_0xd3ed5b['addUser']({'id':_0x476b78,'name':_0x1c9a41});}['_createSuggestion'](_0x382f94,_0x3be372,_0xf77eb1,_0x3089b8,_0x1ca514,_0x2b76e9){const _0x1c8e13=this['_getAuthorFromId'](_0x3089b8),_0x457305=this['_suggestionFactory']['buildSuggestion'](_0x382f94,_0x3be372,_0xf77eb1,_0x1c8e13,_0x1ca514,_0x42ade0=>{this['_updateSuggestionData'](_0xf77eb1,{'attributes':_0x42ade0});const _0x315fd9=this['getSuggestion'](_0xf77eb1);this['_joinWithAdjacentSuggestions'](new Set([_0x315fd9])),this['_refreshSuggestionsChain'](new Set([_0x315fd9]));},_0x2b76e9);return this['listenTo'](_0x457305,'accept',()=>{this['_updateSuggestionData'](_0xf77eb1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x457305,'discard',()=>{this['_updateSuggestionData'](_0xf77eb1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xf77eb1,_0x457305),this['_suggestionState']['set'](_0x457305,'notReady'),_0x457305;}['_splitMarkerName'](_0x1d0c75){const _0x34fd82=_0x1d0c75['split'](':');return{'group':_0x34fd82[0x0],'type':_0x34fd82[0x1],'subType':_0x34fd82['length']>=0x5?_0x34fd82[0x2]:null,'id':_0x34fd82['length']<0x5?_0x34fd82[0x2]:_0x34fd82[0x3],'authorId':_0x34fd82['length']<0x5?_0x34fd82[0x3]:_0x34fd82[0x4],'markerCount':0x6==_0x34fd82['length']?_0x34fd82[0x5]:null};}['_breakSuggestionMarker'](_0x3394c0,_0x2bcda2,_0x407e08){const _0x1b3f58=_0x3394c0['getFirstRange'](),_0x3393ae=_0x1b3f58['start'],_0x3f7279=_0x1b3f58['end'];this['_setSuggestionRange'](_0x3394c0,this['_model']['createRange'](_0x3393ae,_0x2bcda2));const _0x5d521a=_0x3b5d55(),_0x39d3cf=_0x3394c0['creator']['id'],_0x12597b=_0x3394c0['type']+(_0x3394c0['subType']?':'+_0x3394c0['subType']:'');this['_setSuggestionData']({'id':_0x5d521a,'type':_0x12597b,'createdAt':new Date(),'authorId':_0x39d3cf,'originalSuggestionId':_0x3394c0['_originalSuggestionId']||_0x3394c0['id'],'attributes':_0x3394c0['attributes'],'data':_0x3394c0['data']});const _0x2f122a=this['_getAttributeKey'](_0x3394c0);('formatBlock'==_0x3394c0['type']||_0x2f122a&&this['_isBlockAttribute'](_0x2f122a))&&(_0x407e08=this['_model']['createPositionBefore'](_0x407e08['parent'])),this['_addSuggestionMarker'](_0x12597b,_0x5d521a,_0x39d3cf,this['_model']['createRange'](_0x407e08,_0x3f7279));}['_findSuggestions'](_0x375651,_0x544b1b=null){const _0x12d8dd=[],_0x6ce94=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x375651)||(_0x375651=[_0x375651]);for(const _0x5d21c8 of this['getSuggestions']()){if(!_0x5d21c8['isInContent'])continue;if(_0x544b1b&&_0x5d21c8['type']!=_0x544b1b)continue;let _0x137936=!0x1;for(const _0x3fa69e of _0x5d21c8['getRanges']()){for(const _0xbd05e9 of _0x375651){const _0x4b2dfb=_0xbd05e9['start']['isEqual'](_0x3fa69e['end'])||_0xbd05e9['end']['isEqual'](_0x3fa69e['start']);if(_0x4b2dfb||_0xbd05e9['getIntersection'](_0x3fa69e)){const _0x8ba139=_0xbd05e9['containsRange'](_0x3fa69e)&&Ft(this['_model']['schema'],_0x3fa69e['start'],_0xbd05e9),_0x286a0d=_0x3fa69e['containsRange'](_0xbd05e9)&&Ft(this['_model']['schema'],_0xbd05e9['start'],_0x3fa69e);_0x12d8dd['push']({'suggestion':_0x5d21c8,'meta':{'isOwn':_0x6ce94==_0x5d21c8['author'],'isNextTo':_0x4b2dfb,'isInsideObject':_0x8ba139,'containsRangeInObject':_0x286a0d}}),_0x137936=!0x0;break;}}if(_0x137936)break;}}return _0x12d8dd;}['_addSuggestionMarker'](_0x263191,_0x3a8c63,_0x23bdb8,_0xdc01d2,_0x1c1618){this['_model']['change'](_0x2b5cdb=>{let _0xa275b1='suggestion:'+_0x263191+':'+_0x3a8c63+':'+_0x23bdb8;_0x1c1618&&(_0xa275b1=_0xa275b1+':'+_0x1c1618),_0x2b5cdb['addMarker'](_0xa275b1,{'range':_0xdc01d2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x205738){const _0x1ebab8=_0x205738['previous'],_0x49a0d1=_0x205738['next'];_0x205738['previous']=null,_0x205738['next']=null,null!=_0x1ebab8&&_0x1ebab8['next']==_0x205738&&(_0x1ebab8['next']=_0x49a0d1),null!=_0x49a0d1&&_0x49a0d1['previous']==_0x205738&&(_0x49a0d1['previous']=_0x1ebab8),'ready'==this['_suggestionState']['get'](_0x205738)&&(this['_suggestionState']['set'](_0x205738,'removed'),this['fire']('suggestionUnloaded',_0x205738,_0x1ebab8,_0x49a0d1));}['_setSuggestionData'](_0x284ac3){const _0x3fad07=_0x284ac3['id'],_0x1cf263=this['addSuggestionData'](_0x284ac3);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1e7e77=this['editor']['plugins']['get']('PendingActions'),_0x17aa3f=_0x1cf263['hasComments'],_0x5230ca=_0x1cf263['subType']?_0x1cf263['type']+':'+_0x1cf263['subType']:_0x1cf263['type'],_0x23d915=this['editor']['locale'],_0x2ff17a=_0x1e7e77['add'](o(_0x23d915,'PENDING_ACTION_SUGGESTION')),_0x47124d={'id':_0x3fad07,'type':_0x5230ca,'hasComments':_0x17aa3f,'data':_0x284ac3['data']||null,'originalSuggestionId':_0x284ac3['originalSuggestionId']||null,'attributes':_0x1cf263['attributes']};this['_adapter']['addSuggestion'](_0x47124d)['then'](_0x467d77=>{_0x1cf263['_saved']=!0x0,_0x1e7e77['remove'](_0x2ff17a),_0x467d77&&_0x467d77['createdAt']&&(this['_suggestions']['get'](_0x3fad07)['createdAt']=_0x467d77['createdAt']);})['catch'](_0x20a170=>{throw _0x413f14('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1cf263['discard']();}),_0x1cf263['stopListening'](),this['_suggestions']['delete'](_0x1cf263['id']),this['_suggestionState']['delete'](_0x1cf263),_0x20a170;});}return _0x1cf263;}['_isBlockAttribute'](_0x2f551c){return this['_blockAttributeKeys']['has'](_0x2f551c);}['_isInlineAttribute'](_0x9607a5){return this['_inlineAttributeKeys']['has'](_0x9607a5);}['_updateSuggestionData'](_0x2728dc,_0x3d126b){const _0x2e7bc8=this['editor']['plugins']['get']('PendingActions'),_0x304d73=this['getSuggestion'](_0x2728dc);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x304d73['_saved']){const _0x528a2f=_0x2e7bc8['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2728dc,_0x3d126b)['then'](()=>{_0x2e7bc8['remove'](_0x528a2f);});}else _0x304d73['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2728dc,_0x3d126b);});}}['_getSuggestionData'](_0x4b62da){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5953c2('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4b62da);}['_handleNewSuggestionMarker'](_0xc7abdb){const {id:_0x1e8768,type:_0xf233e5,subType:_0x404e4b,authorId:_0x13f8ff}=this['_splitMarkerName'](_0xc7abdb),_0x3ae714=this['_suggestions']['get'](_0x1e8768)||this['_createSuggestion'](_0xf233e5,_0x404e4b,_0x1e8768,_0x13f8ff,{});switch(this['_checkSuggestionCorrectness'](_0x3ae714,_0xf233e5,_0x404e4b,_0x13f8ff),this['_suggestionState']['get'](_0x3ae714)){case'notReady':this['_getSuggestionData'](_0x1e8768)['then'](_0x49ba90=>{let _0x5d2f17=Promise['resolve']();_0x49ba90['hasComments']&&(_0x5d2f17=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1e8768})),_0x5d2f17['then'](()=>{this['addSuggestionData'](_0x49ba90)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3ae714,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1e8768,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3ae714,'ready'),this['fire']('suggestionLoaded',_0x3ae714);break;case'ready':this['fire']('suggestionChanged',_0x3ae714);}return _0x3ae714['addMarkerName'](_0xc7abdb),_0x3ae714;}['_refreshSuggestionsChain'](_0x5a51a5){const _0x43cf42=Array['from'](_0x5a51a5),_0x2db109=_0x43cf42['filter'](_0x27623=>'attribute'==_0x27623['type']);this['_refreshAttributeSuggestionsChain'](_0x2db109);const _0x4712d3=_0x43cf42['filter'](_0x167d1e=>!_0x167d1e['isMultiRange']&&'attribute'!=_0x167d1e['type']),_0x40da8e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x39617d=>!_0x39617d['isMultiRange']&&'attribute'!=_0x39617d['type']),_0x100dda=_0x40da8e['filter'](_0x4a1d4e=>!_0x5a51a5['has'](_0x4a1d4e)),_0x2e560e=new Map(_0x40da8e['map'](_0x5468c8=>[_0x5468c8,this['_suggestionFactory']['getSuggestionCallback'](_0x5468c8['type'],_0x5468c8['subType'],'chain')])),_0x5c1d07=new Map(_0x40da8e['map'](_0x14526c=>[_0x14526c,_0x14526c['getFirstRange']()])),_0x4ff1dc=new Set(),_0x92eda2=new Set();for(let _0x3610b1=0x0;_0x3610b1<_0x4712d3['length'];_0x3610b1++)_0x311156(_0x4712d3[_0x3610b1],_0x4712d3,_0x3610b1+0x1);for(let _0x7af9a8=0x0;_0x7af9a8<_0x4712d3['length'];_0x7af9a8++)_0x311156(_0x4712d3[_0x7af9a8],_0x100dda,0x0);const _0x4c162c=new Set();for(let _0x5d5103=0x0;_0x5d5103<_0x4712d3['length'];_0x5d5103++){const _0x46be6f=_0x4712d3[_0x5d5103];!_0x92eda2['has'](_0x46be6f)&&_0x46be6f['previous']&&(_0x4c162c['add'](_0x46be6f['previous']),_0x46be6f['previous']['next']===_0x46be6f&&(_0x46be6f['previous']['next']=null),_0x46be6f['previous']=null),!_0x4ff1dc['has'](_0x46be6f)&&_0x46be6f['next']&&(_0x4c162c['add'](_0x46be6f['next']),_0x46be6f['next']['previous']===_0x46be6f&&(_0x46be6f['next']['previous']=null),_0x46be6f['next']=null);}function _0x311156(_0x5abcc9,_0x71156d,_0x26d1e6){for(let _0x1dbda0=_0x26d1e6;_0x1dbda0<_0x71156d['length'];_0x1dbda0++){const _0x466c0b=_0x3bf8fb(_0x5abcc9,_0x71156d[_0x1dbda0]);_0x466c0b&&(_0x466c0b[0x0]['next']=_0x466c0b[0x1],_0x466c0b[0x1]['previous']=_0x466c0b[0x0],_0x4ff1dc['add'](_0x466c0b[0x0]),_0x92eda2['add'](_0x466c0b[0x1]));}}function _0x3bf8fb(_0x4d6f67,_0x31b877){if(_0x4d6f67['author']['id']!==_0x31b877['author']['id'])return null;const _0x2ae20c=_0x2e560e['get'](_0x4d6f67)(_0x4d6f67,_0x31b877,_0x5c1d07['get'](_0x4d6f67),_0x5c1d07['get'](_0x31b877));if(!_0x2ae20c)return null;return _0x2e560e['get'](_0x31b877)(_0x4d6f67,_0x31b877,_0x5c1d07['get'](_0x4d6f67),_0x5c1d07['get'](_0x31b877))?_0x2ae20c[0x1]['commentThread']&&_0x2ae20c[0x1]['commentThread']['length']?null:_0x2ae20c:null;}_0x4c162c['size']&&this['_refreshSuggestionsChain'](_0x4c162c);}['_refreshAttributeSuggestionsChain'](_0x59c436){if(0x0==_0x59c436['length'])return;const _0x1ec62d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c4919=>'attribute'==_0x3c4919['type']&&_0x3c4919['_isDataLoaded']),_0x49eb44=[],_0x342c7b=new Map();for(const _0x3a9cad of _0x1ec62d){const _0x535017=_0x26cfb9(_0x3a9cad['attributes']);_0x342c7b['has'](_0x535017)||(_0x342c7b['set'](_0x535017,_0x49eb44['length']),_0x49eb44['push']([]));const _0x226284=_0x342c7b['get'](_0x535017);_0x49eb44[_0x226284]['push'](_0x3a9cad);}!(function(){_0x49eb44['sort']((_0x27efd1,_0x26d7df)=>{const _0x1f0684=_0x27efd1[0x0]['createdAt'],_0x5ca2bf=_0x26d7df[0x0]['createdAt'];return _0x1f0684==_0x5ca2bf?_0x27efd1[0x0]['attributes']['groupId']<_0x26d7df[0x0]['attributes']['groupId']?-0x1:0x1:_0x1f0684<_0x5ca2bf?-0x1:0x1;});for(const _0x280183 of _0x49eb44)_0x280183['sort']((_0x4c58dc,_0x33864f)=>_0x4c58dc['id']<_0x33864f['id']?-0x1:0x1);}());for(let _0x234398=0x0;_0x234398<_0x49eb44['length'];_0x234398++){if(0x0==_0x49eb44[_0x234398]['length'])continue;const _0x2d0629=[];for(let _0x3fd13b=_0x234398+0x1;_0x3fd13b<_0x49eb44['length'];_0x3fd13b++)0x0!=_0x49eb44[_0x3fd13b]['length']&&_0x488371(_0x49eb44[_0x234398],_0x49eb44[_0x3fd13b])&&_0x2d0629['push'](_0x3fd13b);for(const _0x598efb of _0x2d0629)_0x49eb44[_0x234398]=_0x49eb44[_0x234398]['concat'](_0x49eb44[_0x598efb]),_0x49eb44[_0x598efb]=[];}for(const _0x4459a6 of _0x49eb44)for(let _0x16e5ef=0x0;_0x16e5ef<_0x4459a6['length'];_0x16e5ef++){const _0xef5d80=_0x4459a6[_0x16e5ef+0x1]||null;_0x4459a6[_0x16e5ef]['next']!==_0xef5d80&&(_0x4459a6[_0x16e5ef]['next']=_0xef5d80);}for(const _0x31c210 of _0x49eb44)for(let _0x28fe38=0x0;_0x28fe38<_0x31c210['length'];_0x28fe38++){const _0x346019=_0x31c210[_0x28fe38-0x1]||null;_0x31c210[_0x28fe38]['previous']!==_0x346019&&(_0x31c210[_0x28fe38]['previous']=_0x346019);}function _0x488371(_0x384a4e,_0x585925){if(_0x384a4e[0x0]['attributes']['groupId']!==_0x585925[0x0]['attributes']['groupId']&&_0x384a4e[0x0]['author']!==_0x585925[0x0]['author'])return!0x1;if(!function(_0x4cd99d,_0x44e791){if(!_0x4cd99d['hasComments']&&!_0x44e791['hasComments'])return!0x0;if(_0x4cd99d['hasComments']&&_0x44e791['hasComments'])return!0x1;if(_0x4cd99d['hasComments']&&_0x44e791['createdAt']<_0x4cd99d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x44e791['hasComments']&&_0x4cd99d['createdAt']<_0x44e791['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x384a4e[0x0],_0x585925[0x0]))return!0x1;const _0x47673a=Ut(_0x384a4e[0x0]['attributes'],['groupId','trackingSessionId']),_0x327bd8=Ut(_0x585925[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x34bf70(_0x47673a,_0x327bd8))return!0x1;if(_0x384a4e[0x0]['attributes']['groupId']==_0x585925[0x0]['attributes']['groupId'])return!0x0;if(_0x384a4e[0x0]['attributes']['trackingSessionId']!==_0x585925[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x384a4e['every'](_0x2e79aa=>_0x585925['some'](_0x1aeff2=>_0x2e79aa['getFirstRange']()['isEqual'](_0x1aeff2['getFirstRange']())))&&_0x585925['every'](_0x4bf398=>_0x384a4e['some'](_0x1c2628=>_0x4bf398['getFirstRange']()['isEqual'](_0x1c2628['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3a1b71){const _0xbff8f8=Array['from'](_0x3a1b71),_0x4327cd=this['getSuggestions']({'skipNotAttached':!0x0}),_0x32f4b0=_0x4327cd['filter'](_0x18aa9c=>!_0x3a1b71['has'](_0x18aa9c)),_0x4c76c4=new Map(_0xbff8f8['map'](_0x4b20fa=>[_0x4b20fa,this['_suggestionFactory']['getSuggestionCallback'](_0x4b20fa['type'],_0x4b20fa['subType'],'join')])),_0x3b6246=new Map(_0x4327cd['map'](_0x18fafd=>[_0x18fafd,_0x18fafd['getRanges']()]));for(let _0x3aead5=0x0;_0x3aead5<_0xbff8f8['length'];_0x3aead5++){if(_0x423c73(this,_0xbff8f8[_0x3aead5],_0xbff8f8,_0x3aead5+0x1))return!0x0;}for(let _0x495a3f=0x0;_0x495a3f<_0xbff8f8['length'];_0x495a3f++){if(_0x423c73(this,_0xbff8f8[_0x495a3f],_0x32f4b0,0x0))return!0x0;}return!0x1;function _0x423c73(_0x229bf8,_0x22e934,_0x551656,_0x10b60a){for(let _0xfb5dc=_0x10b60a;_0xfb5dc<_0x551656['length'];_0xfb5dc++){const _0x171e51=_0x551656[_0xfb5dc];if(_0x171e51['type']!==_0x22e934['type']||_0x171e51['author']['id']!==_0x22e934['author']['id']||_0x171e51['subType']!==_0x22e934['subType'])continue;if(!Qt(_0x22e934,_0x171e51))continue;if('attribute'==_0x22e934['type']&&_0x22e934['data']['oldValue']!=_0x171e51['data']['oldValue'])continue;if('attribute'==_0x22e934['type']&&_0x229bf8['_isBlockAttribute'](_0x22e934['data']['key']))continue;if('formatBlock'==_0x22e934['type']){const _0x4b9ad1=_0x229bf8['editor']['model'],_0x1d1fef=_0x22e934['getContainedElement']();if(_0x1d1fef&&(_0x4b9ad1['schema']['isObject'](_0x1d1fef)||_0x4b9ad1['schema']['isLimit'](_0x1d1fef)))continue;}const _0x5be48e=_0x4c76c4['get'](_0x22e934),_0x511159=_0x3b6246['get'](_0x22e934),_0x358e4c=_0x3b6246['get'](_0x171e51),_0x50a112=_0x22e934['commentThread']&&_0x22e934['commentThread']['length'],_0x52f749=_0x171e51['commentThread']&&_0x171e51['commentThread']['length'];if(!_0x50a112&&_0x5be48e(_0x358e4c,_0x511159))return _0x229bf8['_joinSuggestions'](_0x171e51,_0x22e934),_0x3b6246['delete'](_0x22e934),!0x0;if(!_0x52f749&&_0x5be48e(_0x511159,_0x358e4c))return _0x229bf8['_joinSuggestions'](_0x22e934,_0x171e51),_0x3b6246['delete'](_0x171e51),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2acd6c,_0x5d962f){if(_0x2acd6c['isMultiRange']){for(const _0x512672 of _0x5d962f['getRanges']())_0x2acd6c['addRange'](_0x512672);}else{const _0x3885bf=_0x5d962f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2acd6c,this['_model']['createRange'](_0x2acd6c['getFirstRange']()['start'],_0x3885bf));}_0x5d962f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3469d4,_0x15edcc,_0x2e2d42){const _0x3c069a=_0x3469d4['startsWith']('format')||_0x3469d4['startsWith']('attribute')?'FORMATTING':_0x3469d4['toUpperCase']();return o(this['editor']['locale'],_0x15edcc+'_'+_0x3c069a+'_SUGGESTION_ANNOUNCEMENT',_0x2e2d42);}['_initAriaMarkerChangeAnnouncements'](){const _0x18b6e1=this['editor'];if(!_0x18b6e1['ui'])return;const {ariaLiveAnnouncer:_0x47ea2d}=_0x18b6e1['ui'];_0x500fe(this['_model'],({left:_0x3f358a,entered:_0xed9462})=>{for(const _0x1e5532 of _0x3f358a){const {group:_0x2577a2,type:_0x4c78cf}=this['_splitMarkerName'](_0x1e5532['name']);if('suggestion'===_0x2577a2){_0x47ea2d['announce'](this['_getMarkerAnnouncementText'](_0x4c78cf,'LEAVE'));break;}}for(const _0x282d05 of _0xed9462){const {group:_0x29f275,type:_0x1bf851}=this['_splitMarkerName'](_0x282d05['name']);if('suggestion'===_0x29f275){_0x47ea2d['announce'](this['_getMarkerAnnouncementText'](_0x1bf851,'ENTER',_0x22f99f(_0x289454)));break;}}});}['_processAttributeChanges'](_0x31b810){if(this['_recordAttributeSuggestions'])return!0x1;const _0x13fe61=this['editor'],_0x12d6fc=_0x13fe61['model']['document']['differ']['getChanges']();if(0x0==_0x12d6fc['length'])return!0x1;const _0x55d416=[],_0x8c914f=_0x12d6fc['filter'](_0x29e545=>'attribute'==_0x29e545['type']),_0x42afb8=_0x12d6fc['filter'](_0x33ea9f=>'insert'==_0x33ea9f['type']&&'$text'!=_0x33ea9f['name']),_0xb84d0f=_0x12d6fc['filter'](_0x52fd4b=>'remove'==_0x52fd4b['type']&&'$text'!=_0x52fd4b['name']);for(const _0x56d708 of _0x8c914f)_0x55d416['push']({'key':_0x56d708['attributeKey'],'newValue':_0x56d708['attributeNewValue'],'oldValue':_0x56d708['attributeOldValue'],'range':qt(_0x56d708['range'],_0x13fe61['model'])});for(const _0x5c22e0 of _0x42afb8){const _0x53b670=_0xb84d0f['find'](_0x1ccf8c=>_0x1ccf8c['position']['isEqual'](_0x5c22e0['position']));_0x53b670&&_0x55d416['push']({'key':m,'newValue':_0x5c22e0['name'],'oldValue':_0x53b670['name'],'range':_0x13fe61['model']['createRangeOn'](_0x5c22e0['position']['nodeAfter'])});}return 0x0!=_0x55d416['length']&&this['_reduceExistingSuggestions'](_0x31b810,_0x55d416);}['_processAttributeSuggestions'](_0x4891de){let _0x5465da=!0x1;const _0x321820=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x11f73b=>_0x11f73b['data']['newRange']&&_0x11f73b['name']['startsWith']('suggestion:attribute:'));for(const _0x36e829 of _0x321820){const {subType:_0x2f28d7,id:_0xd08ae3}=this['_splitMarkerName'](_0x36e829['name']),_0x29d914=_0x2f28d7['split']('|')[0x0];for(const _0x237b84 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x237b84['id']!=_0xd08ae3&&'attribute'==_0x237b84['type']&&_0x237b84['data']&&_0x237b84['data']['key']==_0x29d914&&_0x237b84['getFirstRange']()['isIntersecting'](_0x36e829['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x237b84,_0x36e829['data']['newRange'],_0x4891de),_0x5465da=!0x0);}return _0x5465da;}['recordAttributeChanges'](_0x599e08){this['_recordAttributeSuggestions']=!0x0,_0x599e08();}['_isRegisteredAttribute'](_0x4bfba3){const _0x55e22b=this['_isBlockAttribute'](_0x4bfba3),_0x21130b=this['_isInlineAttribute'](_0x4bfba3);return _0x55e22b||_0x21130b;}['_reduceExistingSuggestions'](_0x2f05f8,_0x38aa25){if(0x0==_0x38aa25['length'])return!0x1;let _0x3ef06a=!0x1;for(const _0x3e6982 of _0x38aa25){const _0x1b7708=this['_findSuggestions'](_0x3e6982['range'],'attribute')['filter'](_0x33db9c=>!_0x33db9c['meta']['isNextTo'])['map'](_0x3063f5=>_0x3063f5['suggestion']),_0x42b84f=_0x26cfb9({'newValue':_0x3e6982['newValue']});_0x1b7708['filter'](_0x36a089=>{const [_0x2aa4d7,_0x52ca91]=_0x36a089['subType']['split']('|');return _0x2aa4d7==_0x3e6982['key']&&_0x52ca91!=_0x42b84f;})['forEach'](_0x788c7d=>{this['_reduceSuggestionAttributeRange'](_0x788c7d,_0x3e6982['range'],_0x2f05f8),_0x3ef06a=!0x0;});}return _0x3ef06a;}['_reduceSuggestionAttributeRange'](_0x169427,_0x23e71e,_0x278720){const _0x280e70=_0x169427['getFirstRange']()['getDifference'](_0x23e71e);0x0!==_0x280e70['length']?0x1!==_0x280e70['length']?this['_breakSuggestionMarker'](_0x169427,_0x23e71e['start'],_0x23e71e['end']):this['_setSuggestionRange'](_0x169427,_0x280e70[0x0]):_0x278720['removeMarker'](_0x169427['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x44c621){this['_editor']=_0x44c621,this['_model']=_0x44c621['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x19f5c1,_0x1e8d1c,_0x1b6920,_0x2a5e9a,_0x29fc0c,_0x40f71a,_0x55dc21){return new T(this['_model'],{'type':_0x19f5c1,'subType':_0x1e8d1c,'id':_0x1b6920,'originalSuggestionId':_0x55dc21,'author':_0x2a5e9a,'creator':_0x2a5e9a,'attributes':_0x29fc0c,'onAttributesChange':_0x40f71a,'onAccept':(..._0x3a1f16)=>this['getSuggestionCallback'](_0x19f5c1,_0x1e8d1c,'accept')(..._0x3a1f16),'onDiscard':(..._0x1450e4)=>this['getSuggestionCallback'](_0x19f5c1,_0x1e8d1c,'discard')(..._0x1450e4)});}['registerCustomCallback'](_0x10bd95,_0x2c17dd,_0x52ffe2,_0x52a4a8){const _0x4f28f8=_0x10bd95+':'+_0x2c17dd+':'+_0x52ffe2;this['_customCallbacks']['set'](_0x4f28f8,_0x52a4a8);}['getSuggestionCallback'](_0x2e3e9c,_0x200bb3,_0x58e5ef){const _0x42b9e1=_0x2e3e9c+':'+_0x200bb3+':'+_0x58e5ef;return this['_customCallbacks']['get'](_0x42b9e1)||this['_defaultCallbacks']['get'](_0x2e3e9c+':'+_0x58e5ef);}['_registerDefaultCallbacks'](){const _0x12a91a=()=>!0x1,_0x22b1cd=_0x54717a=>{_0x54717a['sort']((_0x5ad904,_0x34d6ca)=>_0x5ad904['start']['isBefore'](_0x34d6ca['start'])?0x1:-0x1),this['_model']['change'](_0x407bd7=>{for(const _0x5af702 of _0x54717a){let _0x4f2f8d;_0x4f2f8d=_0x5af702['end']['isAtEnd']&&_0x5af702['end']['parent']==_0x5af702['start']['nodeAfter']?_0x407bd7['createSelection'](_0x5af702['start']['nodeAfter'],'on'):_0x407bd7['createSelection'](_0x5af702),this['_model']['deleteContent'](_0x4f2f8d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2dcc73=(_0x26d5a2,_0x258502)=>{_0x258502&&this['_model']['change'](_0x18857a=>{const {commandName:_0x60eb39,commandParams:_0x2906cb=[]}=_0x258502,_0x29f4c3=_0x26d5a2['map'](_0x3c15ed=>(Pt(_0x3c15ed)&&(_0x3c15ed=this['_model']['createRange'](_0x3c15ed['end'])),_0x3c15ed))['filter'](_0x130383=>'$graveyard'!==_0x130383['root']['rootName']);if(_0x29f4c3['length']<0x1)return;const _0x511c81=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x274ab7=>_0x39990b['fromRange'](_0x274ab7));_0x18857a['setSelection'](_0x29f4c3);for(const _0x12aa9f of this['_editor']['commands']['commands']())_0x12aa9f['refresh']();_0x2906cb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x60eb39,..._0x2906cb);const _0x366471=_0x511c81['filter'](_0x4197c=>'$graveyard'!=_0x4197c['root']['rootName']);_0x366471['length']>0x0&&_0x18857a['setSelection'](_0x366471);for(const _0x2e1e4c of _0x511c81)_0x2e1e4c['detach']();});},_0x453aee=(_0x160729,_0x461479)=>0x1==_0x160729['length']&&0x1==_0x461479['length']&&_0x160729[0x0]['end']['isEqual'](_0x461479[0x0]['start']),_0x43a177=(_0x50f545,_0x568509,_0x45f52c,_0x36d49a)=>Wt(_0x50f545,_0x568509,_0x45f52c,_0x36d49a)?[_0x50f545,_0x568509]:Wt(_0x568509,_0x50f545,_0x36d49a,_0x45f52c)?[_0x568509,_0x50f545]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x12a91a),this['_defaultCallbacks']['set']('insertion:discard',_0x22b1cd),this['_defaultCallbacks']['set']('insertion:join',_0x453aee),this['_defaultCallbacks']['set']('insertion:chain',_0x43a177),this['_defaultCallbacks']['set']('deletion:accept',_0x22b1cd),this['_defaultCallbacks']['set']('deletion:discard',_0x12a91a),this['_defaultCallbacks']['set']('deletion:join',_0x453aee),this['_defaultCallbacks']['set']('deletion:chain',_0x43a177),this['_defaultCallbacks']['set']('formatInline:accept',_0x2dcc73),this['_defaultCallbacks']['set']('formatInline:discard',_0x12a91a),this['_defaultCallbacks']['set']('formatInline:join',_0x453aee),this['_defaultCallbacks']['set']('formatInline:chain',_0x12a91a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2dcc73),this['_defaultCallbacks']['set']('formatBlock:discard',_0x12a91a),this['_defaultCallbacks']['set']('formatBlock:join',_0x453aee),this['_defaultCallbacks']['set']('formatBlock:chain',_0x12a91a),this['_defaultCallbacks']['set']('attribute:accept',_0x12a91a),this['_defaultCallbacks']['set']('attribute:discard',(_0x3ed9d8,_0x55933e)=>{if(!_0x55933e)return;const _0x35bc47=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x4bb8a9=>{if(_0x55933e['key']==m)for(const _0x2a5ec7 of _0x3ed9d8){const _0x454f4e=_0x2a5ec7['start']['nodeAfter'],_0x17eb7b=_0x55933e['oldValue'];_0x4bb8a9['rename'](_0x454f4e,_0x17eb7b);}else{if(_0x35bc47['_isBlockAttribute'](_0x55933e['key'])){for(const _0x3bb51b of _0x3ed9d8)void 0x0!==_0x55933e['oldValue']?_0x4bb8a9['setAttribute'](_0x55933e['key'],_0x55933e['oldValue'],_0x3bb51b['start']['nodeAfter']):_0x4bb8a9['removeAttribute'](_0x55933e['key'],_0x3bb51b['start']['nodeAfter']);}else{for(const _0x5a7e71 of _0x3ed9d8)_0x55933e['oldValue']?_0x4bb8a9['setAttribute'](_0x55933e['key'],_0x55933e['oldValue'],_0x5a7e71):_0x4bb8a9['removeAttribute'](_0x55933e['key'],_0x5a7e71);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x453aee);}}function Ft(_0x4ab683,_0x1233a7,_0x40dfa9){for(const _0x25cc94 of _0x1233a7['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x25cc94['root']==_0x25cc94)return!0x1;if(!_0x40dfa9['containsItem'](_0x25cc94))return!0x1;if(_0x4ab683['isObject'](_0x25cc94)||_0x4ab683['isLimit'](_0x25cc94))return!0x0;}return!0x1;}function Pt(_0x101984){return _0x101984['end']['parent']==_0x101984['start']['nodeAfter']&&_0x101984['end']['isAtStart'];}function Gt(_0x5f8cd5,_0x3fc066,_0x28078f,_0x5baab7){const _0x587a5a=_0x2cac51=>!_0x2cac51['item']['is']('$textProxy')&&!_0x5baab7['isObject'](_0x2cac51['item']),_0x4c5930=_0x5f8cd5['start']['getLastMatchingPosition'](_0x587a5a),_0x5147b3=_0x5f8cd5['end']['getLastMatchingPosition'](_0x587a5a,{'direction':'backward'});return(!_0x5f8cd5['start']['isEqual'](_0x4c5930)||!_0x5f8cd5['end']['isEqual'](_0x5147b3))&&(_0x4c5930['isBefore'](_0x5147b3)?_0x28078f['updateMarker'](_0x3fc066,{'range':_0x28078f['createRange'](_0x4c5930,_0x5147b3)}):_0x28078f['removeMarker'](_0x3fc066),!0x0);}function Lt(_0x4e5b2d){return _0x26cfb9(_0x4e5b2d);}function Jt(_0x81153e){const _0x556c03=_0x81153e['start']['nodeAfter'];return _0x556c03&&_0x556c03['is']('element');}function Kt(_0x3b1d56){return Pt(_0x3b1d56)||function(_0xc5a865){return _0xc5a865['start']['parent']==_0xc5a865['end']['nodeBefore']&&_0xc5a865['start']['isAtEnd'];}(_0x3b1d56);}function Ht(_0x1df8fa,_0x8e8180){try{const _0x4f756c=_0x1df8fa['getRange']();for(const _0xbf2869 of _0x8e8180)if(_0x1df8fa!==_0xbf2869&&_0x4f756c&&_0x4f756c['isIntersecting'](_0xbf2869['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x51ae3f,_0x1ae7c8){return null==_0x51ae3f['end']['nodeBefore']&&_0x51ae3f['end']['parent']==_0x51ae3f['start']['nodeAfter']?zt(_0x51ae3f['start']['nodeAfter'],_0x1ae7c8):_0x51ae3f;}function zt(_0x3e8fa0,_0x2f093d){const _0x3bbbd9=_0x2f093d['schema']['isObject'](_0x3e8fa0)||_0x2f093d['schema']['isSelectable'](_0x3e8fa0);return _0x2f093d['createRange'](_0x2f093d['createPositionAt'](_0x3e8fa0,'before'),_0x3bbbd9?_0x2f093d['createPositionAfter'](_0x3e8fa0):_0x2f093d['createPositionAt'](_0x3e8fa0,'end'));}function Wt(_0x1c6ebe,_0x3b9d3a,_0x2433a4,_0x57b9a2){return!!Qt(_0x1c6ebe,_0x3b9d3a)&&_0x2433a4['end']['isEqual'](_0x57b9a2['start']);}function Qt(_0x28bd9f,_0x187b85){if(!_0x28bd9f['_isDataLoaded']||!_0x187b85['_isDataLoaded'])return!0x1;const _0x592e0f=new Set(Object['keys'](_0x28bd9f['attributes'])),_0x3b01f1=new Set(Object['keys'](_0x187b85['attributes']));if(_0x592e0f['delete']('groupId'),_0x3b01f1['delete']('groupId'),0x0==_0x592e0f['size']&&0x0==_0x3b01f1['size'])return!0x0;if(_0x592e0f['size']!=_0x3b01f1['size'])return!0x1;const _0x4a83fb={..._0x28bd9f['attributes']},_0x3173b9={..._0x187b85['attributes']};return delete _0x4a83fb['groupId'],delete _0x3173b9['groupId'],JSON['stringify'](_0x4a83fb)==JSON['stringify'](_0x3173b9);}function Xt(_0x36f08d,_0x5efa83){const _0x2c26d4=Yt(_0x36f08d['attributes']),_0x11e9e2=Yt(_0x5efa83);if(!_0x36f08d['_isDataLoaded'])return!0x1;for(const _0x86c833 of Object['keys'](_0x11e9e2))if(!_0x34bf70(_0x2c26d4[_0x86c833],_0x11e9e2[_0x86c833]))return!0x1;return!0x0;}function Yt(_0x3d0b04){const _0x3ee73f=Object['assign']({},_0x3d0b04);return delete _0x3ee73f['skipNestingCheck'],delete _0x3ee73f['tablePasteChainId'],_0x3ee73f;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x576ce0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5692c9,_0x308b7b,_0x3904ed,_0x491756){super(),this['model']=_0x308b7b,this['view']=_0x3904ed,this['commentThreadController']=_0x491756,this['_editor']=_0x5692c9,this['_acceptCommand']=_0x5692c9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5692c9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xfd7284,_0x1a95c8)=>_0xfd7284||_0x1a95c8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4218fe=>_0x4218fe&&this['_editor']['model']['canEditAt'](_0x308b7b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3fc975=>_0x3fc975&&this['_editor']['model']['canEditAt'](_0x308b7b['getRanges']())),this['_pendingAction']=null,_0x3904ed['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3904ed,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3904ed,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3904ed,'change:isDirty',()=>{_0x3904ed['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 _0x283199=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x283199);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x5349f4{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3c50fe,_0x2bcfc1,_0xc0c3c1,_0x441aad){super(_0x3c50fe),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xa2a835(_0x3c50fe,o(_0x3c50fe,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2bcfc1['authoredAt']),this['bind']('authoredAt')['to'](_0x2bcfc1),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',_0x2bcfc1,'authoredAt',this,'descriptionParts',(_0x2698ee,_0x184ff1,_0x223afe)=>{const _0x53f324=_0x223afe['map'](_0xb94613=>ls(_0xb94613['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2698ee-0x1,_0x2bcfc1['author']['name'],_0x184ff1?_0x441aad['formatDateTime'](_0x184ff1):'',new DOMParser()['parseFromString'](_0x53f324,'text/html')['body']['textContent']]);}),this['focusables']=new _0x535993(),this['focusTracker']=new _0x4212fe(),this['keystrokes']=new _0x39a18d(),this['focusCycler']=new _0x52a96d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1f5132=>_0x1f5132['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2bcfc1,this['_localUser']=_0xc0c3c1,this['_config']=_0x441aad,_0x441aad['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x36fb29(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xe3153f}=this['_config'];this['commentsListView']=new _0xe3153f(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',_0x45999a=>_0x45999a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2556e8,_0x53fb8d)=>_0x2556e8||!!_0x53fb8d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3832e2}=this['_config'],_0x33afda=new _0x3832e2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x294975=_0x33afda['commentInputView'];return _0x33afda['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x294975,'value',(_0x245144,_0x183140,_0x4ce006)=>!!_0x4ce006||_0x245144&&!_0x183140),_0x294975['on']('submit',(_0x124015,_0x57c249)=>{this['fire']('addComment',_0x57c249),_0x294975['editor']['setData']('');}),_0x294975['on']('cancel',()=>this['focus']()),_0x294975['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x33afda;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x47f86a,_0x348ff1,_0x4f8cdc,_0xd64854){super(_0x47f86a,_0x348ff1,_0x4f8cdc,_0xd64854),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x47d583=>_0x47d583&&_0x47d583[0x0]?_0x47d583[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3b49c9,_0x4a6598)=>{let _0x3c5194='';for(const _0x24cf61 of _0x3b49c9)_0x3c5194+='<p>'+ls(_0x24cf61['content'],_0x24cf61['color'])+'</p>';return _0x4a6598?_0x3c5194:_0x788e8f(_0x3c5194,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xd64854['SuggestionView'](_0x47f86a,_0x348ff1,{'formatDateTime':_0xd64854['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 _0x5e3f8d=this['bindTemplate'],_0x3930f3=[this['suggestionView']];return this['commentsListView']&&_0x3930f3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3930f3['push'](this['commentThreadInputView']),_0x3930f3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5e3f8d['if']('isActive','ck-suggestion-wrapper--active'),_0x5e3f8d['to']('type',_0x192c4a=>'ck-suggestion-'+_0x192c4a),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':_0x5e3f8d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3930f3};}['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 we extends _0x5349f4{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x37e3a1,_0x2996fb,_0x23a789){super(_0x37e3a1),this['_model']=_0x2996fb,this['_config']=_0x23a789,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2996fb),this['acceptButton']=this['_createButton'](o(_0x37e3a1,'Accept\x20suggestion'),_0x438026,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x37e3a1,'Discard\x20suggestion'),_0x4aa64f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x42ff3e(_0x37e3a1,_0x2996fb['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x535993([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4212fe(),this['keystrokes']=new _0x39a18d(),this['focusCycler']=new _0x52a96d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x188f3c=>_0x188f3c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x26e66e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x26e66e['innerHTML']=this['description'],this['on']('change:description',(_0x5240ac,_0x2a65dc,_0x530f3d)=>{_0x26e66e['innerHTML']=_0x530f3d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xf95f0c=this['bindTemplate'],_0x4bb2d2=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0xf95f0c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xf95f0c['to']('authoredAt',_0x25c4f4=>this['_config']['formatDateTime'](_0x25c4f4))}]}]},{'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']&&_0x4bb2d2['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':_0x4bb2d2}]};}['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'](_0x43b7c2,_0x1a985c,_0x5213f3,_0x163d75,_0x131e1c){const _0x1b96d6=new _0x49a255(this['locale']);return _0x1b96d6['set']({'label':_0x43b7c2,'icon':_0x1a985c,'tooltip':!0x0,'tooltipPosition':_0x131e1c}),_0x1b96d6['extendTemplate']({'attributes':{'class':_0x5213f3}}),_0x1b96d6['on']('execute',()=>{this['fire'](_0x163d75,this['_model']['id']);}),_0x1b96d6;}['_setupKeyboardNavigation'](){const _0x2a82d9=this['element'];this['keystrokes']['listenTo'](_0x2a82d9);for(const _0x166bc5 of this['focusables'])this['focusTracker']['add'](_0x166bc5['element']),this['keystrokes']['listenTo'](_0x166bc5['element']);this['keystrokes']['set']('enter',(_0x298cf2,_0x3b15e3)=>{_0x2a82d9===_0x298cf2['target']&&(this['focusCycler']['focusFirst'](),_0x3b15e3());}),this['keystrokes']['set']('esc',(_0x28b520,_0x10b558)=>{_0x2a82d9!==_0x28b520['target']&&(this['focus'](),_0x10b558());});}}class u extends _0x281269{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x261b7d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6d18ac){super(_0x6d18ac),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3664e3=this['editor']['config'];_0x3664e3['define']('trackChanges.SuggestionThreadView',fe),_0x3664e3['define']('trackChanges.SuggestionView',we),_0x3664e3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3664e3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x49483b,_0x499a52){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x15031a,_0x82470a]of this['_handleControllerBuffer']){const _0x32250a=this['_suggestionToController']['has'](_0x15031a);_0x32250a||_0x82470a?_0x32250a&&_0x82470a&&this['_destroyController'](_0x15031a):this['_initializeController'](_0x15031a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x49483b,_0x499a52);}['init'](){const _0x28fb2a=this['editor'],_0x13ef52=_0x28fb2a['plugins']['get']('TrackChangesEditing'),_0x12958f=_0x28fb2a['plugins']['get']('Annotations'),_0x53fc85=_0x28fb2a['plugins']['get']('EditorAnnotations'),_0x54a1a6=_0x28fb2a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x53fc85['addSourceCollector'](()=>{const _0x3e7ba2=[];for(const [_0xed4f0d,_0x5f2c1f]of Array['from'](this['_suggestionToController'])){const _0x30815e=_0xed4f0d['getAllAdjacentSuggestions'](),_0x53529f=[];for(const _0x495af5 of _0x30815e){if(!_0x495af5['isInContent'])continue;if(_0x495af5['isMultiRange']){_0x53529f['push'](..._0x495af5['getRanges']());continue;}const _0x7bb8e=_0x495af5['getFirstRange']();if(_0x53529f['length']>0x0){const _0x5ea3a1=_0x53529f[0x0]['getJoined'](_0x7bb8e);if(_0x5ea3a1){_0x53529f[0x0]=_0x5ea3a1;continue;}}_0x53529f['push'](_0x7bb8e);}_0x3e7ba2['push']([_0x5f2c1f['view'],_0x53529f]);}return _0x3e7ba2;}),this['listenTo'](_0x13ef52,'suggestionLoaded',(_0x217b47,_0x3050ab)=>{this['listenTo'](_0x3050ab,'change:previous',(_0x4198c5,_0x1f21af,_0x4de5d8,_0x1be5ed)=>{_0x3050ab['isInContent']&&(null==_0x4de5d8?(this['_updateController'](_0x1be5ed['head']),this['_handleSuggestionControllerDelayed'](_0x3050ab,!0x1)):(this['_updateController'](_0x4de5d8['head']),null==_0x1be5ed&&this['_handleSuggestionControllerDelayed'](_0x3050ab,!0x0)));}),null!==_0x3050ab['previous']?this['_updateController'](_0x3050ab['head']):this['_handleSuggestionControllerDelayed'](_0x3050ab,!0x1);}),this['listenTo'](_0x13ef52,'suggestionUnloaded',(_0x4b89e3,_0x1281a1,_0x2b5711)=>{this['stopListening'](_0x1281a1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1281a1),this['_suggestionToController']['has'](_0x1281a1)&&this['_destroyController'](_0x1281a1),_0x2b5711&&this['_updateController'](_0x2b5711['head']);}),this['listenTo'](_0x13ef52,'suggestionChanged',(_0x4e3adb,_0x14ed64)=>{this['_updateController'](_0x14ed64);}),this['listenTo'](_0x12958f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x54a1a6,'addComment',(_0x1573ca,{threadId:_0x2c6350,isFromAdapter:_0x3f1967})=>{if(_0x3f1967||!_0x13ef52['hasSuggestion'](_0x2c6350))return;const _0x38deee=_0x13ef52['getSuggestion'](_0x2c6350);this['_suggestionToController']['get'](_0x38deee)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x28221d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5aef13;for(const _0xc4f39c in _0x28221d){const _0x28ff08=_0xc4f39c,_0x2fb2fd=_0x28221d[_0x28ff08];if('trackChangesLicenseKeyValid'==_0x2fb2fd||'trackChangesLicenseKeyInvalid'==_0x2fb2fd||'trackChangesLicenseKeyExpired'==_0x2fb2fd||'trackChangesLicenseKeyDomainLimit'==_0x2fb2fd||'trackChangesLicenseKeyNotAllowed'==_0x2fb2fd||'trackChangesLicenseKeyEvaluationLimit'==_0x2fb2fd||'trackChangesLicenseKeyTrialLimit'==_0x2fb2fd||'trackChangesLicenseKeyUsageLimit'==_0x2fb2fd){delete _0x28221d[_0x28ff08],_0x5aef13=_0x2fb2fd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5aef13&&_0x28221d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5aef13&&_0x28221d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5aef13&&_0x28221d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5aef13&&_0x28221d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5aef13&&_0x28221d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5aef13&&_0x28221d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5aef13&&_0x28221d['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x8cee2c){const _0x169d58=this['_suggestionToController']['get'](_0x8cee2c);if(!_0x169d58)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x169d58['view'])||null;}['getSuggestionForAnnotation'](_0x9f157c){const _0x24917f=this['_viewToController']['get'](_0x9f157c['innerView']);return _0x24917f?_0x24917f['model']:null;}['_refreshActiveMarkers'](){const _0x5b1194=this['editor']['plugins']['get']('Annotations'),_0x46c880=this['editor']['plugins']['get']('TrackChangesEditing'),_0x311fe9=Array['from'](_0x5b1194['activeAnnotations'],_0x149041=>_0x149041['innerView'])['filter'](_0x35f2ea=>this['_viewToController']['has'](_0x35f2ea)),_0xc81b8e=[];for(const _0x289135 of _0x311fe9){const _0x228aa5=this['_viewToController']['get'](_0x289135)['model']['getAllAdjacentSuggestions']();_0xc81b8e['push'](..._0x228aa5['reduce']((_0x178603,_0x382a0f)=>[..._0x178603,..._0x382a0f['getMarkerNames']()],[]));}_0x46c880['activeMarkers']=_0xc81b8e;}['_addUIComponentsToFactory'](){const _0x4ad797=this['editor'],_0x46b497=_0x4ad797['locale'],_0x531a63=o(_0x46b497,'Track\x20changes'),_0x371027=new _0x88426d([{'type':'switchbutton','model':new _0x56491c({'withText':!0x0,'isToggleable':!0x0,'label':_0x531a63,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x56491c({'withText':!0x0,'label':o(_0x46b497,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56491c({'withText':!0x0,'label':o(_0x46b497,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56491c({'withText':!0x0,'label':o(_0x46b497,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56491c({'withText':!0x0,'label':o(_0x46b497,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4ad797['plugins']['has']('TrackChangesPreview')&&_0x371027['addMany']([{'type':'separator'},{'type':'button','model':new _0x56491c({'withText':!0x0,'label':o(_0x46b497,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x238a45 of _0x371027)if(ke(_0x238a45)){const _0xc7aac2=_0x4ad797['commands']['get'](_0x238a45['model']['commandName']);_0x238a45['model']['bind']('isOn','isEnabled')['to'](_0xc7aac2,'value','isEnabled');}_0x4ad797['ui']['componentFactory']['add']('trackChanges',_0x20ee84=>this['_createToolbarButton'](_0x20ee84,_0x371027,_0x531a63)),_0x4ad797['ui']['componentFactory']['add']('menuBar:trackChanges',_0x138ed2=>this['_createMenuBarMenu'](_0x138ed2,_0x371027,_0x531a63));}['_createToolbarButton'](_0x49cd61,_0x40214f,_0x3ccf83){const _0x562614=_0x120c85(_0x49cd61,_0x3f3dc7),_0x2d8297=this['editor']['commands']['get']('trackChanges');_0x562614['buttonView']['set']({'tooltip':_0x3ccf83,'label':_0x3ccf83,'icon':_0x4a3790}),_0x562614['buttonView']['bind']('isOn')['to'](_0x2d8297,'value'),_0x562614['buttonView']['on']('execute',()=>{_0x2d8297['execute'](),this['editor']['editing']['view']['focus']();}),_0x5148db(_0x562614,_0x40214f,{'role':'menu'});const _0x256eb2=[];for(const _0x11a333 of _0x40214f)ke(_0x11a333)&&_0x256eb2['push'](this['editor']['commands']['get'](_0x11a333['model']['commandName']));const _0x26ac0a=_0x562614['buttonView'];return _0x26ac0a['actionView']['unbind']('isEnabled'),_0x26ac0a['arrowView']['unbind']('isEnabled'),_0x26ac0a['actionView']['bind']('isEnabled')['to'](_0x2d8297,'isEnabled'),_0x26ac0a['arrowView']['bind']('isEnabled')['toMany'](_0x256eb2,'isEnabled',(..._0x18c305)=>_0x18c305['some'](_0x571d9a=>_0x571d9a)),_0x562614['on']('execute',_0x2c6e9e=>{this['editor']['execute'](_0x2c6e9e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x562614;}['_createMenuBarMenu'](_0x2f8cce,_0x235146,_0x197b4f){const _0x5395c1=new _0xbe66b1(_0x2f8cce),_0x2886b0=this['editor']['commands']['get']('trackChanges');_0x5395c1['buttonView']['set']({'label':_0x197b4f,'icon':_0x4a3790});const _0x2ff1b3=new _0x24a732(_0x2f8cce);for(const _0x22cc39 of _0x235146){if('separator'==_0x22cc39['type']){_0x2ff1b3['items']['add'](new _0x3d3ea2(_0x2f8cce));continue;}const _0x9d98f9=new _0x37a01d(_0x2f8cce,_0x5395c1),_0x4d1f4c=new _0x416779(_0x2f8cce),_0x215934=_0x22cc39['model'];_0x4d1f4c['bind'](...Object['keys'](_0x215934))['to'](_0x215934),_0x4d1f4c['delegate']('execute')['to'](_0x5395c1),_0x4d1f4c['on']('execute',()=>{this['editor']['execute'](_0x215934['commandName']),this['editor']['editing']['view']['focus']();}),_0x9d98f9['children']['add'](_0x4d1f4c),_0x2ff1b3['items']['add'](_0x9d98f9);}return _0x5395c1['bind']('isEnabled')['to'](_0x2886b0,'isEnabled'),_0x5395c1['panelView']['children']['add'](_0x2ff1b3),_0x5395c1;}['_initializeController'](_0x301f36){const _0x5d4132=this['editor'],_0x270172=_0x5d4132['config'],_0x3162b8=_0x5d4132['plugins']['get']('Annotations'),_0x1c0771=_0x5d4132['plugins']['get']('CommentsRepository'),_0x3f619c=_0x5d4132['plugins']['get']('EditorAnnotations'),_0x396ba8=_0x5d4132['plugins']['get'](_0x261b7d)['me'],_0x2bb1e5=_0x270172['get']('trackChanges')['SuggestionThreadView'],_0x5dd1e1=_0x270172['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x38c4d7,CommentThreadInputView:_0x3113ac}=_0x5d4132['plugins']['get']('CommentsUI');let _0x5618d1,_0x3996fc,_0x394aa8;this['_annotationViews']['has'](_0x301f36['id'])?(_0x3996fc=this['_annotationViews']['get'](_0x301f36['id']),_0x5618d1=_0x3996fc['mainView']):(_0x5618d1=new _0x2bb1e5(_0x5d4132['locale'],_0x301f36,_0x396ba8,{'disableComments':this['_disableComments'],'editorConfig':{..._0x270172['get']('comments.editorConfig'),'licenseKey':_0x270172['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x270172['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x270172['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x270172['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1d97fe(_0x270172['get']('locale'),_0x5d4132['locale']),'CommentView':_0x270172['get']('comments')['CommentView'],'CommentsListView':_0x38c4d7,'CommentThreadInputView':_0x3113ac,'SuggestionView':_0x5dd1e1}),_0x5618d1['suggestionView']['acceptButton']['on']('execute',()=>{_0x5d4132['editing']['view']['focus']();}),_0x5618d1['suggestionView']['discardButton']['on']('execute',()=>{_0x5d4132['editing']['view']['focus']();}),_0x3996fc=_0x3162b8['createAnnotationView'](this['editor']['locale'],_0x5618d1),_0x3996fc['bind']('isDirty')['to'](_0x5618d1,'isDirty'),_0x3996fc['bind']('length')['to'](_0x5618d1),_0x3996fc['bind']('type')['to'](_0x5618d1,'type',_0xc0005=>'suggestion-'+_0xc0005),_0x5618d1['on']('escape',()=>{_0x394aa8['fire']('escape');}),this['_annotationViews']['set'](_0x301f36['id'],_0x3996fc));const _0x121b64=_0x1c0771['createCommentThreadController'](_0x301f36['commentThread'],_0x5618d1),_0x334f80=new pe(_0x5d4132,_0x301f36,_0x5618d1,_0x121b64),_0x32a68d=_0x301f36['getAllAdjacentSuggestions']()['filter'](_0xc0779f=>_0xc0779f['isInContent']);_0x5618d1['descriptionParts']=_0x5d4132['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x32a68d),this['_suggestionToController']['set'](_0x301f36,_0x334f80),this['_viewToController']['set'](_0x5618d1,_0x334f80);const _0x2adbb1=()=>{const _0x111d9f=[],_0x5a8713=_0x301f36['getAllAdjacentSuggestions']()['filter'](_0x2fcf04=>_0x2fcf04['isInContent']);for(const _0x321d3c of _0x5a8713)_0x111d9f['push'](..._0x321d3c['getMarkers']());return _0x491fb2(_0x5d4132['editing'],_0x111d9f);};_0x394aa8=_0x3162b8['createAnnotation']({'view':_0x3996fc,'target':_0x2adbb1,'type':()=>'suggestion-'+_0x334f80['view']['type'],'isVisible':!!_0x2adbb1()}),_0x1c0771['_bindAnnotationToEditors'](_0x5618d1,_0x394aa8),_0x3162b8['add'](_0x394aa8),_0x3f619c['registerAnnotation'](_0x394aa8);}['_destroyController'](_0xb308ad){const _0x3ad979=this['editor']['plugins']['get']('CommentsRepository'),_0x2c8c27=this['editor']['plugins']['get']('Annotations'),_0x294ba6=this['_suggestionToController']['get'](_0xb308ad),_0x66c980=_0x294ba6['view'],_0x41ffee=_0x2c8c27['getByInnerView'](_0x66c980);_0x3ad979['_unbindEditors'](_0x66c980),_0x41ffee&&_0x2c8c27['remove'](_0x41ffee),this['_suggestionToController']['delete'](_0xb308ad),this['_viewToController']['delete'](_0x66c980),_0x294ba6['destroy']();}['_updateController'](_0x450c46){if(!_0x450c46['isInContent']||!this['_suggestionToController']['has'](_0x450c46))return;const _0x29b028=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45701f=this['_suggestionToController']['get'](_0x450c46),_0x19a049=_0x450c46['getAllAdjacentSuggestions']();_0x45701f['view']['descriptionParts']=_0x29b028['descriptionFactory']['getDescriptions'](_0x19a049);}['destroy'](){for(const _0x53ce52 of this['_suggestionToController']['keys']())this['_destroyController'](_0x53ce52);for(const _0x582d10 of this['_annotationViews']['values']())_0x582d10['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4f7dfc){return'model'in _0x4f7dfc;}class Fe extends _0x281269{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x55f6ac){this['editor']['plugins']['get'](d)['adapter']=_0x55f6ac;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0xac4582){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0xac4582);}['getSuggestions']({skipNotAttached:_0x4e6598=!0x1,toJSON:_0x3a8d7d=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x4e6598,'toJSON':_0x3a8d7d});}['getSuggestion'](_0x292d81){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x292d81);}}const p=['Pagination'];class re extends _0x281269{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x431c88=this['editor'];if(_0x431c88['config']['define']('trackChangesData.editorCreator',_0x45969f=>{const _0x5eebf8=_0x431c88['model']['document']['getRootNames']()['reduce']((_0x45a97b,_0x6effc2)=>(_0x45a97b[_0x6effc2]='',_0x45a97b),{});return _0x431c88['constructor']['create'](_0x5eebf8,_0x45969f);}),'function'!=typeof _0x431c88['config']['get']('trackChangesData')['editorCreator'])throw new _0x5953c2('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xacfa0a){return P(this['editor'],!0x0,_0xacfa0a);}['getDataWithDiscardedSuggestions'](_0x37cce6){return P(this['editor'],!0x1,_0x37cce6);}}class Ge extends _0x281269{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x204f09){function _0x3757ac(_0x2064a3){return _0x2064a3['map'](_0x23b9bd=>String['fromCharCode'](_0x23b9bd))['join']('');}super(_0x204f09),this['result']='end',_0x204f09[_0x3757ac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3757ac([0x76,0x69,0x65,0x77])][_0x3757ac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3757ac([0x61,0x75,0x74,0x6f]),_0x204f09[_0x3757ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3757ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3757ac([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3757ac([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3757ac([0x6f,0x6b])});}['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 He(_0x2f3ccd){return void 0x0!==_0x2f3ccd['getRootsAttributes'];}async function P(_0x475ab6,_0x1b9642,_0x35dd8e){const _0x421a0b=_0x4854ec(_0x475ab6,p);_0x421a0b['plugins']['push'](d,Ge),_0x421a0b['rootsAttributes']=He(_0x475ab6)?_0x475ab6['getRootsAttributes']():void 0x0;const _0x2a436f=document['createDocumentFragment'](),_0x1cca32=_0x475ab6['config']['get']('trackChangesData')['editorCreator'],_0x2d9f9d=await _0x1cca32(_0x421a0b,()=>function(_0x3667ee){const _0x5dcc31=document['createElement']('div');return _0x3667ee['appendChild'](_0x5dcc31),_0x5dcc31;}(_0x2a436f));!function(_0x1daecf,_0x2ac3e4){const _0x4d95d3=_0x1daecf['model']['document']['getRootNames']()['reduce']((_0x1a63a8,_0x21ba4c)=>(_0x1a63a8[_0x21ba4c]=_0x1daecf['data']['get']({'rootName':_0x21ba4c}),_0x1a63a8),{}),_0x39bfb8=_0x1daecf['plugins']['get']('Users')['users']['map'](_0x1ae4b7=>({'id':_0x1ae4b7['id'],'name':_0x1ae4b7['name']})),_0xae6cd0=_0x1daecf['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2fbd95=_0x1daecf['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x6e7a33=_0x2ac3e4['plugins']['get']('Users'),_0x395a9f=_0x2ac3e4['plugins']['get']('TrackChangesEditing'),_0x14d6e6=_0x2ac3e4['plugins']['get']('CommentsRepository');for(const _0x10e2ae of _0x14d6e6['getCommentThreads']())_0x10e2ae['remove']();for(const _0x278da9 of _0x39bfb8)_0x6e7a33['getUser'](_0x278da9['id'])||_0x6e7a33['addUser'](_0x278da9);_0x6e7a33['me']||_0x6e7a33['useAnonymousUser']();for(const _0x88a9c4 of _0x2fbd95)_0x14d6e6['addCommentThread'](_0x88a9c4);for(const _0x4a434 of _0xae6cd0)_0x395a9f['addSuggestionData'](_0x4a434);_0x2ac3e4['data']['set'](_0x4d95d3);}(_0x475ab6,_0x2d9f9d),_0x2d9f9d['execute'](_0x1b9642?'acceptAllSuggestions':'discardAllSuggestions');const _0x56711f=He(_0x2d9f9d)?_0x2d9f9d['getFullData'](_0x35dd8e):_0x2d9f9d['data']['get'](_0x35dd8e);return await _0x2d9f9d['destroy'](),_0x56711f;}class Me extends _0x5349f4{['options'];constructor(_0x3befc1,_0x2b5f03){super(_0x3befc1),this['options']=_0x2b5f03,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x735669,_0x5f03ae){if(!this['element'])return;const _0x225828=[];for(const [_0x1453c3,_0x536c89]of _0x735669){const _0x2de6b4=document['createElement']('div');_0x2de6b4['setAttribute']('data-ck-root-name',_0x1453c3),_0x2de6b4['className']=_0x536c89['classes']+'\x20ck-track-changes-preview__root-container',_0x2de6b4['innerHTML']=_0x536c89['content'],_0x225828['push'](_0x2de6b4);}_0x5f03ae(this['element'],_0x225828),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x138b2b{constructor(_0x149a3f){super(_0x149a3f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x158800=this['editor'],_0x16db34=_0x158800['locale'],_0x363e21=_0x158800['plugins']['get']('Dialog');let _0x58b74e;const _0x4ff19b=function(_0x6a1fc){const _0x2b64fc={};if('editables'in _0x6a1fc['ui']['view']){for(const [_0x68146b,_0x5e1e94]of Object['entries'](_0x6a1fc['ui']['view']['editables']))_0x2b64fc[_0x68146b]=_0x5e1e94['element'];}else _0x2b64fc[_0x6a1fc['model']['document']['getRootNames']()[0x0]]=_0x6a1fc['ui']['view']['editable']['element'];return _0x2b64fc;}(_0x158800),_0x7b5dd2=function(_0x3d9407){let _0x3863e6=0x0;for(const _0xcdae1a of Object['values'](_0x3d9407))_0x3863e6=Math['max'](_0x3863e6,_0xcdae1a['getBoundingClientRect']()['width']);let _0x232065=0x0;for(const _0x12a5ec of Object['values'](_0x3d9407))_0x232065+=_0x12a5ec['getBoundingClientRect']()['height'];const _0x55ff02=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4af5be=Math['min'](_0x232065,_0x55ff02);return{'width':_0x3863e6,'height':_0x4af5be};}(_0x4ff19b);_0x363e21['show']({'id':'finalContentPreview','title':o(_0x16db34,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x16db34,{'dialogRects':_0x7b5dd2}),'onHide':()=>{_0x58b74e['detachFromDom']();},'onShow':()=>{_0x158800['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xf4c713=>{const _0x7c11c7=this['_standarizeRootsData'](_0xf4c713,_0x158800,_0x4ff19b);_0x363e21['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x7c11c7,_0x158800['config']['get']('trackChanges.preview.renderFunction'));}),_0x58b74e=new _0x58465b(_0x16db34,[_0x363e21['view']]),_0x58b74e['attachToDom'](),_0x58b74e['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x158800['once']('destroy',()=>{_0x58b74e['detachFromDom']();});const _0x31e156=_0x363e21['view']['headerView']['class'];_0x363e21['view']['headerView']['class']=_0x31e156?_0x31e156+'\x20ck-reset_all':'ck-reset_all',_0x363e21['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x363e21['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5cd90f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x589ad3=_0x5cd90f['previewMode'],_0x21a1a5={};if('$labels'===_0x589ad3){for(const _0x43886d of _0x5cd90f['getMergeFieldsIds']())_0x21a1a5[_0x43886d]=_0x5cd90f['getLabel'](_0x43886d)||_0x43886d;}else{const _0x422fd3='$defaultValues'===_0x589ad3?_0x5cd90f['getDefaultValues']():_0x5cd90f['getDataSetValues'](_0x589ad3,!0x0);for(const _0x288ad3 of Object['entries'](_0x422fd3)){const [_0x11e81b,_0x93c8f7]=_0x288ad3;_0x21a1a5[_0x11e81b]=null!==_0x93c8f7?_0x93c8f7:_0x5cd90f['getLabel'](_0x11e81b)||_0x11e81b;}}return{'mergeFieldsData':_0x21a1a5};}['_standarizeRootsData'](_0x15b9cf,_0x2e4775,_0x11e55a){let _0x91478;if('string'==typeof _0x15b9cf){const _0x4d7d02=_0x2e4775['model']['document']['getRootNames']()[0x0];_0x91478={[_0x4d7d02]:_0x15b9cf};}else _0x91478=_0x15b9cf;const _0x56f8d7=this['_fixMediaEmbeds'](_0x91478,_0x2e4775),_0x4d007f=function(_0x137414,_0x255bd4){for(const [_0x18d305,_0x5b998c]of _0x137414)_0x5b998c['classes']=_0x255bd4[_0x18d305]['classList']['value']['replace']('ck-focused','');return _0x137414;}(this['_sortRoots'](_0x2e4775)['reduce']((_0x3a0f13,_0x15b9c0)=>(_0x3a0f13['push']([_0x15b9c0,{'content':_0x56f8d7[_0x15b9c0],'classes':''}]),_0x3a0f13),[]),_0x11e55a);return _0x4d007f;}['_fixMediaEmbeds'](_0x4ff1be,_0x2d4c4a){if(!_0x2d4c4a['plugins']['has']('MediaEmbedEditing'))return _0x4ff1be;const _0x51a6b8=_0x2d4c4a['plugins']['get']('MediaEmbedEditing');for(const [_0x54e283,_0x38f998]of Object['entries'](_0x4ff1be)){const _0x1c61ae=document['createElement']('div');_0x1c61ae['innerHTML']=_0x38f998,(_0x1c61ae['querySelectorAll']('figure.media')['forEach'](_0x13fa24=>{const _0x48a425=_0x13fa24['querySelector']('oembed');if(_0x48a425){const _0x3b4d90=_0x48a425['getAttribute']('url');if(_0x3b4d90){const _0x449d1f=_0x51a6b8['registry']['getMediaViewElement'](new _0x106eac(_0x2d4c4a['editing']['view']['document']),_0x3b4d90,{'elementName':'','renderForEditingView':!0x0}),_0x487088=document['createElement']('div');_0x487088['classList']['add']('ck-media__wrapper'),_0x449d1f['render'](_0x487088,_0x2d4c4a['editing']['view']['domConverter']),_0x48a425['replaceWith'](_0x487088);}}}),_0x4ff1be[_0x54e283]=_0x1c61ae['innerHTML']);}return _0x4ff1be;}['_sortRoots'](_0xdfcbe6){if(!function(_0x38acc6){return void 0x0!==_0x38acc6['getRootsAttributes'];}(_0xdfcbe6))return _0xdfcbe6['model']['document']['getRootNames']();const _0x47c5dd=[],_0x31eee1=new Map();for(const _0x5e2cd2 of _0xdfcbe6['model']['document']['getRootNames']()){const _0x33edcb=_0xdfcbe6['editing']['view']['getDomRoot'](_0x5e2cd2)['getClientRects']()['item'](0x0);_0x47c5dd['push'](_0x5e2cd2),_0x31eee1['set'](_0x5e2cd2,_0x33edcb);}return _0x47c5dd['sort']((_0x2295c4,_0x3f2dfc)=>{const _0x295431=_0x31eee1['get'](_0x2295c4),_0x25c048=_0x31eee1['get'](_0x3f2dfc);return _0x295431['y']-_0x25c048['y']||_0x295431['x']-_0x25c048['x'];}),_0x47c5dd;}}class $e extends _0x281269{static get['requires'](){return[re,_0x7f4f4b];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3bb0cf){super(_0x3bb0cf),_0x3bb0cf['commands']['add']('previewFinalContent',new te(this['editor'])),_0x3bb0cf['config']['define']('trackChanges.preview.renderFunction',(_0x484daa,_0x2110b7)=>{for(const _0x1edb59 of _0x2110b7)_0x484daa['appendChild'](_0x1edb59);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};