@ckeditor/ckeditor5-track-changes 46.0.1-alpha.7 → 46.0.1-alpha.8

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 _0x1a5dbe,Plugin as _0x588311,PendingActions as _0x1f154d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x280c51,ObservableMixin as _0x576216,uid as _0x58b607,priorities as _0x30d56f,insertToPriorityArray as _0x45d96b,toArray as _0x4de00e,logWarning as _0x282b91,getEnvKeystrokeText as _0x42806c,FocusTracker as _0x5427d9,KeystrokeHandler as _0x4443be,Collection as _0x2ebe14}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x31655c,IconCancel as _0x369868,IconTrackChanges as _0x17e231}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x63f84f,View as _0x1bb0a3,ViewCollection as _0x4b0a61,FocusCycler as _0x4de8c1,UIModel as _0x40fb7f,createDropdown as _0x7c146b,SplitButtonView as _0x5b60d2,addListToDropdown as _0x42bada,MenuBarMenuView as _0x3c6b9a,MenuBarMenuListView as _0x24888c,ListSeparatorView as _0x161fec,MenuBarMenuListItemView as _0x3232a1,MenuBarMenuListItemButtonView as _0x1afe4c,BodyCollection as _0xa7ca0b,Dialog as _0x21d629}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4fb64d,hashObject as _0x3cef01,surroundingMarkersDetector as _0x1a8787,FOCUS_ANNOTATION_KEYSTROKE as _0x1e2046,AriaDescriptionView as _0x5746f0,setupThreadKeyboardNavigation as _0x201a92,trimHtml as _0x2b7c8f,UserView as _0x3e7ed7,LateFocusButtonView as _0x15c07a,getDateTimeFormatter as _0x34479a,getAllMarkersDomElementsSorted as _0x128c48,sanitizeEditorConfig as _0x5adbe2}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x50dca5,ModelLiveRange as _0x153d61,ModelLivePosition as _0x5e984c,ViewDowncastWriter as _0x2eceb5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x6a6e00,toWidget as _0x514173}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x30baa6,set as _0x4525bc,isEqual as _0x21362d,unset as _0x3d5f1a,omit as Ut}from'es-toolkit/compat';import{Delete as _0x103805,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2597a3}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x13a6a5}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x1a5dbe{['_enabledCommands'];constructor(_0x37da75,_0xaf8152){super(_0x37da75),this['_enabledCommands']=_0xaf8152,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 _0x1b0697 of this['editor']['commands']['commands']())_0x1b0697['affectsData']&&!this['_enabledCommands']['has'](_0x1b0697)&&_0x1b0697['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2dab80 of this['editor']['commands']['commands']())_0x2dab80['affectsData']&&!this['_enabledCommands']['has'](_0x2dab80)&&_0x2dab80['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x1a5dbe{['_suggestions'];constructor(_0x21b0bd,_0x1c3b83){super(_0x21b0bd),this['_suggestions']=_0x1c3b83,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x951c64){const _0x5ace90=this['_suggestions']['get'](_0x951c64);if(!_0x5ace90)throw new _0x280c51('track-changes-accept-suggestion-not-found',this);const _0x5af4bd=_0x5ace90['getRanges']();this['editor']['model']['canEditAt'](_0x5af4bd)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5ace90);}}class $ extends _0x1a5dbe{['_suggestions'];constructor(_0x30c306,_0x2f3523){super(_0x30c306),this['_suggestions']=_0x2f3523,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4cc817){const _0x21f19c=this['_suggestions']['get'](_0x4cc817);if(!_0x21f19c)throw new _0x280c51('track-changes-discard-suggestion-not-found',this);const _0x592586=_0x21f19c['getRanges']();this['editor']['model']['canEditAt'](_0x592586)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x21f19c);}}function ls(_0x5b2df2,_0x40b2ce){let _0x24d285='';return _0x24d285+=_0x5b2df2['split']('*')['map']((_0x12e7f3,_0x2f557d)=>_0x2f557d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x12e7f3)+'</span>':Zt(_0x12e7f3))['join'](''),_0x40b2ce&&(_0x24d285+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x40b2ce['value']+'\x22\x20title=\x22'+_0x40b2ce['title']+'\x22></span>'),_0x24d285;}function Zt(_0x2e0e64){const _0x460d05=document['createElement']('span');return _0x460d05['innerText']=_0x2e0e64,_0x460d05['innerHTML'];}function ts(_0x352b46){return _0x352b46['sort']((_0x2d394b,_0x1e66e3)=>'attribute'===_0x2d394b['type']&&'attribute'!==_0x1e66e3['type']?-0x1:'attribute'!==_0x2d394b['type']&&'attribute'===_0x1e66e3['type']?0x1:'deletion'==_0x2d394b['type']&&'deletion'!=_0x1e66e3['type']?-0x1:'deletion'!=_0x2d394b['type']&&'deletion'==_0x1e66e3['type']?0x1:0x0);}function to(_0x4d4d54,_0x429b70){let _0x2b44e9,_0x1f7ade=0x0;const _0x52e5ad=[],_0x4b681f=_0x429b70['schema'];for(;_0x1f7ade<_0x4d4d54['length'];){const _0x5c828e=_0x4d4d54[_0x1f7ade],_0x13e38d=_0x4d4d54[_0x1f7ade+0x1];_0x2b44e9||(_0x2b44e9=_0x429b70['createPositionBefore'](_0x5c828e)),tn(_0x429b70,_0x5c828e,_0x13e38d)||(_0x52e5ad['push'](_0x429b70['createRange'](_0x2b44e9,_0x4b681f['isObject'](_0x5c828e)?_0x429b70['createPositionAfter'](_0x5c828e):_0x429b70['createPositionAt'](_0x5c828e,'end'))),_0x2b44e9=null),_0x1f7ade++;}return _0x52e5ad;}function tn(_0x557abc,_0x5d389d,_0x549a07){if(!_0x549a07)return!0x1;const _0x24e2a0=_0x557abc['createPositionAfter'](_0x5d389d),_0x4f11be=_0x557abc['createPositionBefore'](_0x549a07);return _0x24e2a0['isTouching'](_0x4f11be);}function rs(_0x4a3f5e,_0x1f8b78,_0x94eb31){for(;_0x94eb31['length'];){const _0x12a54d=_0x94eb31['splice'](0x0,0x64);_0x4a3f5e['change'](()=>{for(const _0x190eff of _0x12a54d)_0x190eff['isInContent']&&_0x1f8b78['execute'](_0x190eff['id']);});}}class M extends _0x1a5dbe{['_command'];['_suggestions'];constructor(_0x220c79,_0x3b2fb6,_0x1dec9a){super(_0x220c79),this['_command']=_0x3b2fb6,this['_suggestions']=_0x1dec9a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4033b9=Array['from'](this['_suggestions']['values']())['some'](_0x3ac0d7=>_0x3ac0d7['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4033b9;}['execute'](){const _0x1bb994=ts(Array['from'](this['_suggestions']['values']()));for(const _0x565516 of _0x1bb994){const _0x4897bc=_0x565516['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4897bc))return;}rs(this['editor']['model'],this['_command'],_0x1bb994);}}class B extends _0x1a5dbe{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x331571,_0x4c9272,_0x413c76){super(_0x331571),this['_command']=_0x4c9272,this['_suggestions']=_0x413c76,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2d5a5a=this['editor']['model']['document']['selection'],_0x456dbc=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x22f6e9,_0x1b7e9c){const _0x1d2a98=Array['from'](_0x22f6e9['getRanges']()),_0x274680=new Set();for(const _0x2130a2 of _0x1b7e9c)if(_0x2130a2['isInContent']){for(const _0x33e61c of _0x1d2a98)for(const _0x4732f6 of _0x2130a2['getRanges']())(_0x33e61c['isIntersecting'](_0x4732f6)||_0x22f6e9['isCollapsed']&&!_0x2130a2['isMultiRange']&&_0x2130a2['next']&&_0x4732f6['end']['isTouching'](_0x33e61c['start']))&&_0x274680['add'](_0x2130a2);}return _0x274680;}(_0x2d5a5a,_0x456dbc),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x54b2c6=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3e2e1c of _0x54b2c6){const _0x8d8050=_0x3e2e1c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x8d8050))return;}rs(this['editor']['model'],this['_command'],_0x54b2c6);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x576216(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2f4b62,_0x54ec93){super(),this['id']=_0x54ec93['id'],this['type']=_0x54ec93['type'],this['subType']=_0x54ec93['subType']||null,this['author']=_0x54ec93['author'],this['creator']=_0x54ec93['creator']||_0x54ec93['author'],this['isExternal']=Boolean(_0x54ec93['attributes']&&_0x54ec93['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x54ec93['originalSuggestionId']||null,this['_model']=_0x2f4b62,this['_onAccept']=_0x54ec93['onAccept'],this['_onDiscard']=_0x54ec93['onDiscard'],this['_onAttributesChange']=_0x54ec93['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x54ec93['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 _0x5429cf=this;for(;_0x5429cf['previous'];)_0x5429cf=_0x5429cf['previous'];return _0x5429cf;}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'](_0x46e4c8){this['_markerNames']['add'](_0x46e4c8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x60d445=>this['_model']['markers']['get'](_0x60d445))['filter'](_0xde92cc=>_0xde92cc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1cf09d=>{for(const _0x3d93a9 of this['getMarkers']())_0x1cf09d['removeMarker'](_0x3d93a9);}),this['_markerNames']['clear']();}['removeMarker'](_0x40db27){this['_model']['change'](_0x461c80=>{_0x461c80['removeMarker'](_0x40db27);}),this['_markerNames']['delete'](_0x40db27);}['addRange'](_0x1e5e25){const _0x3fa564='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x3fa564),this['_model']['change'](_0x140957=>{_0x140957['addMarker'](_0x3fa564,{'range':_0x1e5e25,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x54d300){for(const _0x170303 of this['getRanges']())if(_0x170303['isIntersecting'](_0x54d300))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3fc451=>_0x3fc451['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3693f9,_0x4266f9)=>[..._0x3693f9,..._0x4266f9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x9b3ff0=this['getRanges']();if(0x1!=_0x9b3ff0['length'])return null;const _0x59cc72=_0x9b3ff0[0x0],_0x3bdc3d=_0x59cc72['start']['nodeAfter'],_0x2b710c=_0x59cc72['end']['nodeBefore'];return _0x3bdc3d instanceof _0x50dca5?_0x3bdc3d!=_0x2b710c?null:_0x3bdc3d: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 _0xe1e775=[];let _0x54f4d8=this['head'];for(;_0x54f4d8;)_0xe1e775['push'](_0x54f4d8),_0x54f4d8=_0x54f4d8['next'];return _0xe1e775;}['setAttribute'](_0x41f27b,_0x91a7f6){const _0x204596=_0x30baa6(this['attributes']);_0x4525bc(_0x204596,_0x41f27b,_0x91a7f6),_0x21362d(_0x204596,this['attributes'])||(this['attributes']=_0x204596,this['_onAttributesChange'](_0x204596));}['removeAttribute'](_0x524677){const _0x5ced4d=_0x30baa6(this['attributes']);_0x3d5f1a(_0x5ced4d,_0x524677),_0x21362d(_0x5ced4d,this['attributes'])||(this['attributes']=_0x5ced4d,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 _0x58b607()['substr'](0x1,0x5);}}function o(_0x29c483,_0x3bdcca,_0x3d9415){const _0x20fa3d=_0x29c483['t'],t=_0x29c483['t'];switch(_0x3bdcca){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',_0x3d9415);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3d9415);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3d9415);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3d9415);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3d9415);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',_0x3d9415);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3d9415);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',_0x3d9415);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3d9415);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3d9415);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3d9415);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3d9415);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3d9415);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3d9415);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3d9415);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3d9415);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3d9415);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3d9415);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3d9415);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3d9415);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3d9415);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3d9415);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3d9415);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3d9415);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3d9415);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'},_0x3d9415);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3d9415);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3d9415);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3d9415);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3d9415);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3d9415);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3d9415);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3d9415);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'},_0x3d9415);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3d9415);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3d9415);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3d9415);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3d9415);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'},_0x3d9415);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3d9415);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'},_0x3d9415);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'},_0x3d9415);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3d9415);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'},_0x3d9415);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3d9415);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'},_0x3d9415);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3d9415);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3d9415);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'},_0x3d9415);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3d9415);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 _0x20fa3d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3d9415);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x20fa3d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3d9415);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3d9415);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'},_0x3d9415);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'},_0x3d9415);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'},_0x3d9415);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3bdcca;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x477993,_0x5161fb){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x477993,this['_locale']=_0x5161fb;}['getDescriptions'](_0x315a0f){const _0x141751=[],_0xe4565b=new Set(),_0x1e850c=new Set();for(let _0x353104=0x0;_0x353104<_0x315a0f['length'];_0x353104++){const _0x5a8703=_0x315a0f[_0x353104];if(!_0x5a8703['isInContent'])continue;const _0x2f11f7=this['_handleCustomCallbackDescription'](_0x5a8703);if(_0x2f11f7){if(null!=_0x5a8703['subType']){if(_0xe4565b['has'](_0x5a8703['subType']))continue;_0xe4565b['add'](_0x5a8703['subType']);}_0x141751['push'](_0x2f11f7);}else{if('attribute'==_0x5a8703['type']){const _0x54bc9b=_0x5a8703['data']['key'];if(_0x1e850c['has'](_0x54bc9b))continue;_0x1e850c['add'](_0x5a8703['data']['key']),_0x54bc9b==m?this['_handleRenameSuggestionDescription'](_0x141751,_0x5a8703):this['_handleAttributeSuggestionDescription'](_0x141751,_0x5a8703);continue;}'insertion'!=_0x5a8703['type']&&'deletion'!=_0x5a8703['type']||this['_handleInsertRemoveSuggestionDescription'](_0x141751,_0x5a8703,_0x315a0f[_0x353104+0x1]);}}return this['_resolveDescriptionItems'](_0x141751);}['registerDescriptionCallback'](_0x110359){this['_customCallbacks']['push'](_0x110359);}['registerElementLabel'](_0x1a5979,_0x535a70,_0x526377=_0x30d56f['normal']){'function'==typeof _0x1a5979?_0x45d96b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1a5979,'label':_0x535a70,'priority':_0x526377}):this['_itemLabels']['set'](_0x1a5979,_0x535a70);}['registerAttributeLabel'](_0x2be381,_0x4962ad){this['_attributeLabels']['set'](_0x2be381,_0x4962ad);}['getItemLabel'](_0x421d8f,_0x1add18=0x1){let _0x35f878;for(const _0x170870 of this['_itemLabelsCallbacks'])if(_0x170870['matchingCallback'](_0x421d8f)){_0x35f878=_0x170870['label'];break;}return _0x35f878||(_0x35f878=this['_itemLabels']['get'](_0x421d8f['name'])),_0x35f878?_0x35f878(_0x1add18):0x1!==_0x1add18?_0x1add18+'\x20'+_0x421d8f['name']+'s':''+_0x421d8f['name'];}['_addDescriptionItems'](_0x495be8,_0x4c425d){const _0x314fa2=_0x4c425d['getFirstRange']()['getWalker'](),_0x4d8010='insertion'==_0x4c425d['type']?'add':'remove';for(const _0x58a0c2 of _0x314fa2){const _0x38a402=_0x58a0c2['item'],_0xd5097d=_0x495be8[_0x495be8['length']-0x1];if(_0x38a402['is']('$textProxy'))_0xd5097d&&_0xd5097d['type']['indexOf']('Container')>-0x1&&_0x495be8['pop'](),_0xd5097d&&'text'==_0xd5097d['type']?_0xd5097d[_0x4d8010]+=_0x38a402['data']:_0x495be8['push']({'type':'text','add':'add'==_0x4d8010?_0x38a402['data']:'','remove':'remove'==_0x4d8010?_0x38a402['data']:''});else{if(this['_schema']['isObject'](_0x38a402)){const _0x55fa77=_0x38a402;if(_0xd5097d&&_0xd5097d['type']['indexOf']('Container')>-0x1&&_0x495be8['pop'](),'elementEnd'==_0x58a0c2['type'])continue;_0xd5097d&&_0xd5097d['type']==_0x4d8010+'Object'&&_0xd5097d['element']['name']==_0x55fa77['name']?_0xd5097d['quantity']++:_0x495be8['push']({'type':_0x4d8010+'Object','element':_0x55fa77,'quantity':0x1}),_0x314fa2['skip'](_0x3d2aa5=>!('elementEnd'==_0x3d2aa5['type']&&_0x3d2aa5['item']==_0x38a402));}else{if(this['_schema']['checkChild'](_0x38a402,'$text')||_0x38a402['is']('element','softBreak')){const _0x4cf229=_0x38a402;if('add'==_0x4d8010&&'elementStart'==_0x58a0c2['type']||'remove'==_0x4d8010&&'elementEnd'==_0x58a0c2['type'])continue;if(_0xd5097d&&-0x1==_0xd5097d['type']['indexOf']('Container')){'text'==_0xd5097d['type']&&(_0xd5097d[_0x4d8010]+='\x0a');continue;}let _0x530070;if(_0x530070='add'==_0x4d8010?_0x4cf229['nextSibling']&&!this['_schema']['isObject'](_0x4cf229['nextSibling'])?_0x4cf229['nextSibling']:null:_0x4cf229['previousSibling']&&!this['_schema']['isObject'](_0x4cf229['previousSibling'])?_0x4cf229['previousSibling']:null,_0x4cf229['isEmpty']||_0x530070&&_0x530070['isEmpty']){const _0x5eb071=_0x530070&&_0x530070['isEmpty']?_0x530070:_0x4cf229;_0xd5097d&&_0xd5097d['type']==_0x4d8010+'EmptyContainer'&&_0xd5097d['element']['name']==_0x5eb071['name']?_0xd5097d['quantity']++:_0x495be8['push']({'type':_0x4d8010+'EmptyContainer','element':_0x5eb071,'quantity':0x1});}else _0x495be8['push']({'type':_0x4d8010+'Container','element':_0x4cf229});}}}}}['_resolveDescriptionItems'](_0x566806){const _0x2960bc=this['_locale'],_0x2ac86e=[],_0x2f1369=[],_0x23a870=[];for(const _0x583d8 of _0x566806)switch(_0x583d8['type']){case'text':if(_0x583d8['add']=_0x583d8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x583d8['remove']=_0x583d8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x583d8['add']&&''!=_0x583d8['remove']){_0x2ac86e['push']({'type':'replace','content':o(_0x2960bc,'REPLACE_TEXT',['\x22'+_0x583d8['remove']+'\x22','\x22'+_0x583d8['add']+'\x22'])});continue;}if(null!=_0x583d8['add']['match'](/^ +$/)){_0x2ac86e['push']({'type':'insertion','content':o(_0x2960bc,'*Insert:*\x20%0',o(_0x2960bc,'ELEMENT_SPACE',_0x583d8['add']['length']))});continue;}if(null!=_0x583d8['remove']['match'](/^ +$/)){_0x2ac86e['push']({'type':'deletion','content':o(_0x2960bc,'*Remove:*\x20%0',o(_0x2960bc,'ELEMENT_SPACE',_0x583d8['remove']['length']))});continue;}if(''!=_0x583d8['add']){_0x2ac86e['push']({'type':'insertion','content':o(_0x2960bc,'*Insert:*\x20%0','\x22'+_0x583d8['add']+'\x22')});continue;}_0x2ac86e['push']({'type':'deletion','content':o(_0x2960bc,'*Remove:*\x20%0','\x22'+_0x583d8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2ac86e['push']({'type':'insertion','content':o(_0x2960bc,'*Insert:*\x20%0',this['getItemLabel'](_0x583d8['element'],_0x583d8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2ac86e['push']({'type':'deletion','content':o(_0x2960bc,'*Remove:*\x20%0',this['getItemLabel'](_0x583d8['element'],_0x583d8['quantity']))});continue;case'addContainer':_0x2ac86e['push']({'type':'insertion','content':o(_0x2960bc,'*Split:*\x20%0',this['getItemLabel'](_0x583d8['element'],_0x583d8['quantity']))});continue;case'removeContainer':_0x2ac86e['push']({'type':'deletion','content':o(_0x2960bc,'*Merge:*\x20%0',this['getItemLabel'](_0x583d8['element'],_0x583d8['quantity']))});continue;case'addFormat':_0x2f1369['push'](_0x583d8['key']);continue;case'removeFormat':_0x23a870['push'](_0x583d8['key']);continue;default:_0x2ac86e['push'](_0x583d8);}if(_0x2f1369['length']){const _0x200ab5=_0x2f1369['map'](_0x188881=>this['_attributeLabels']['has'](_0x188881)?this['_attributeLabels']['get'](_0x188881):_0x188881)['join'](',\x20');_0x2ac86e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x200ab5)});}if(_0x23a870['length']){const _0x57708a=_0x23a870['map'](_0x13be93=>this['_attributeLabels']['has'](_0x13be93)?this['_attributeLabels']['get'](_0x13be93):_0x13be93)['join'](',\x20');_0x2ac86e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x57708a)});}return _0x2ac86e;}['_handleCustomCallbackDescription'](_0x1bb818){for(const _0x58ec7c of this['_customCallbacks']){const _0x363a42=_0x58ec7c(_0x1bb818);if(_0x363a42&&'type'in _0x363a42)return _0x363a42;}}['_handleAttributeSuggestionDescription'](_0x1d7617,_0x2e61ee){const _0x4ccf17=_0x2e61ee['data'],_0x3be994=void 0x0===_0x4ccf17['newValue']?'removeFormat':'addFormat';_0x1d7617['push']({'type':_0x3be994,'key':_0x4ccf17['key']});}['_handleRenameSuggestionDescription'](_0x456231,_0xf4b10c){_0x456231['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xf4b10c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1a9c7d,_0x5d525d,_0x4b023e){if(this['_addDescriptionItems'](_0x1a9c7d,_0x5d525d),_0x4b023e&&_0x4b023e['getFirstRange']()&&!_0x5d525d['getFirstRange']()['end']['isEqual'](_0x4b023e['getFirstRange']()['start'])){const _0x3c06dd=_0x1a9c7d[_0x1a9c7d['length']-0x1],_0x36dc0b='insertion'==_0x5d525d['type']?'add':'remove';_0x3c06dd&&'text'==_0x3c06dd['type']&&(_0x3c06dd[_0x36dc0b]+='\x0a');}}}class O extends _0x588311{['afterInit'](){const _0x66eacb=this['editor'],_0x2ae29e=_0x66eacb['plugins']['get']('TrackChangesEditing');_0x66eacb['commands']['get']('showAIAssistant')&&_0x2ae29e['enableCommand']('showAIAssistant');}}class E extends _0x588311{['afterInit'](){const _0x3a74bf=this['editor'],_0x548848=_0x3a74bf['locale'];if(!_0x3a74bf['plugins']['has']('AlignmentEditing'))return;const _0x218719=_0x3a74bf['plugins']['get']('TrackChangesEditing');_0x218719['enableDefaultAttributesIntegration']('alignment'),_0x218719['registerBlockAttribute']('alignment'),_0x218719['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x548848,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52e41e=this['editor'],_0x7ef928=_0x52e41e['locale'];_0x52e41e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c474d=>{if('formatBlock'!=_0x5c474d['type'])return;const {data:_0x2f32fc}=_0x5c474d;if(_0x2f32fc&&'alignment'==_0x2f32fc['commandName']){const _0x1d786a=_0x2f32fc['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x7ef928,'*Format:*\x20%0',function(_0x4f7b87){switch(_0x4f7b87){case'left':return o(_0x7ef928,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x7ef928,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x7ef928,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x7ef928,'FORMAT_JUSTIFY_TEXT');}}(_0x1d786a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x588311{['afterInit'](){const _0x8e0d2f=this['editor'],_0x2c5cff=_0x8e0d2f['plugins']['get']('TrackChangesEditing'),_0x199ade=_0x8e0d2f['locale'];for(const _0x2b6ee1 of ti){if(!_0x8e0d2f['plugins']['has'](_0x2b6ee1))continue;const _0x54c401=_0x2b6ee1['slice'](0x0,-0x7)['toLowerCase'](),_0x468beb='FORMAT_'+_0x54c401['toUpperCase']();_0x2c5cff['enableDefaultAttributesIntegration'](_0x54c401),_0x2c5cff['registerInlineAttribute'](_0x54c401),_0x2c5cff['descriptionFactory']['registerAttributeLabel'](_0x54c401,o(_0x199ade,_0x468beb));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x140f12=this['editor'],_0x3b23da=_0x140f12['locale'],_0x27df19=_0x140f12['plugins']['get']('TrackChangesEditing');function _0x43055f(_0x5cdc2e,_0x45f6ed){_0x27df19['descriptionFactory']['registerDescriptionCallback'](_0x5c11af=>{if('formatInline'!=_0x5c11af['type'])return;const {data:_0x2709ff}=_0x5c11af;return _0x2709ff&&_0x2709ff['commandName']===_0x5cdc2e?_0x2709ff['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b23da,'*Format:*\x20%0',_0x45f6ed)}:{'type':'format','content':o(_0x3b23da,'*Remove\x20format:*\x20%0',_0x45f6ed)}:void 0x0;});}_0x43055f('bold',o(_0x3b23da,'FORMAT_BOLD')),_0x43055f('italic',o(_0x3b23da,'FORMAT_ITALIC')),_0x43055f('underline',o(_0x3b23da,'FORMAT_UNDERLINE')),_0x43055f('code',o(_0x3b23da,'FORMAT_CODE')),_0x43055f('strikethrough',o(_0x3b23da,'FORMAT_STRIKETHROUGH')),_0x43055f('subscript',o(_0x3b23da,'FORMAT_SUBSCRIPT')),_0x43055f('superscript',o(_0x3b23da,'FORMAT_SUPERSCRIPT'));}}class U extends _0x588311{['afterInit'](){const _0x2c0e18=this['editor'],_0x5d1506=_0x2c0e18['locale'];if(!_0x2c0e18['plugins']['has']('BlockQuoteEditing'))return;const _0x4b071b=_0x2c0e18['plugins']['get']('TrackChangesEditing'),_0x2e5adb=this['editor']['commands']['get']('blockQuote');_0x4b071b['enableCommand']('blockQuote',(_0x43dcfe,_0x3bf545={})=>{const _0x1529ae=this['editor']['model']['document']['selection'],_0xf78dea=_0x3bf545&&void 0x0!==_0x3bf545['forceValue']?_0x3bf545['forceValue']:!_0x2e5adb['value'];let _0x4d96ff=[];if(_0xf78dea){const _0x3815d5=Array['from'](_0x1529ae['getSelectedBlocks']())['filter'](_0x1326f3=>oo(_0x1326f3)||function(_0x5702c3,_0x88df85){const _0x2f7bd5=_0x88df85['checkChild'](_0x5702c3['parent'],'blockQuote'),_0x39d320=_0x88df85['checkChild'](['$root','blockQuote'],_0x5702c3);return _0x2f7bd5&&_0x39d320;}(_0x1326f3,this['editor']['model']['schema']));_0x4d96ff=to(_0x3815d5,_0x2c0e18['model']);}else{const _0x2c03cd=Array['from'](_0x1529ae['getSelectedBlocks']())['filter'](_0x40aed6=>oo(_0x40aed6));_0x4d96ff=to(_0x2c03cd,_0x2c0e18['model']);}_0x2c0e18['model']['change'](()=>{for(const _0x5f1a11 of _0x4d96ff)_0x4b071b['markBlockFormat'](_0x5f1a11,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xf78dea}]});});}),_0x4b071b['descriptionFactory']['registerDescriptionCallback'](_0x189914=>{const {data:_0x19b27d}=_0x189914;if(_0x19b27d&&'blockQuote'==_0x19b27d['commandName']){const _0x4e98f7=o(_0x5d1506,'ELEMENT_BLOCK_QUOTE');return _0x19b27d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d1506,'*Set\x20format:*\x20%0',_0x4e98f7)}:{'type':'format','content':o(_0x5d1506,'*Remove\x20format:*\x20%0',_0x4e98f7)};}});}}function oo(_0x1dc770){return'blockQuote'==_0x1dc770['parent']['name'];}class V extends _0x588311{['afterInit'](){const _0x5d5518=this['editor'],_0x505c01=_0x5d5518['locale'],_0x225e3c=_0x5d5518['plugins']['get']('TrackChangesEditing');_0x5d5518['plugins']['has']('BookmarkEditing')&&(_0x225e3c['enableCommand']('insertBookmark'),_0x225e3c['enableDefaultAttributesIntegration']('updateBookmark'),_0x225e3c['registerBlockAttribute']('bookmarkId'),_0x225e3c['descriptionFactory']['registerDescriptionCallback'](_0xf7c1d5=>{if('insertion'!=_0xf7c1d5['type']&&'deletion'!=_0xf7c1d5['type']&&'attribute'!=_0xf7c1d5['type'])return;const _0x13a3cf=_0xf7c1d5['getContainedElement']();if(null==_0x13a3cf)return;if(!_0x13a3cf['is']('element','bookmark'))return;const _0x4fd2d1=_0x13a3cf['getAttribute']('bookmarkId');if('insertion'==_0xf7c1d5['type'])return{'type':'insertion','content':o(_0x505c01,'*Insert:*\x20%0','\x22'+_0x4fd2d1+'\x22\x20'+o(_0x505c01,'ELEMENT_BOOKMARK'))};if('deletion'==_0xf7c1d5['type'])return{'type':'deletion','content':o(_0x505c01,'*Remove:*\x20%0','\x22'+_0x4fd2d1+'\x22\x20'+o(_0x505c01,'ELEMENT_BOOKMARK'))};const {data:_0x428b30}=_0xf7c1d5;if(!_0x428b30||'bookmarkId'!=_0x428b30['key'])return;return{'type':'format','content':o(_0x505c01,'*Set\x20bookmark:*\x20%0','\x22'+_0x428b30['newValue']+'\x22')};}));}}class F extends _0x588311{['afterInit'](){const _0x673920=this['editor'];_0x673920['plugins']['has']('CaseChange')&&(_0x673920['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x673920['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x673920['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x588311{['afterInit'](){const _0x406f91=this['editor'];_0x406f91['commands']['get']('ckbox')&&_0x406f91['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x588311{['afterInit'](){const _0xf0064e=this['editor'];if(!_0xf0064e['plugins']['has']('CodeBlock'))return;const _0x3f97b5=_0xf0064e['plugins']['get']('TrackChangesEditing'),_0x266c19=_0xf0064e['locale'],_0x3e9f17=_0xf0064e['config']['get']('codeBlock')['languages'],_0x24136b=_0xf0064e['commands']['get']('codeBlock');_0x3f97b5['enableCommand']('indentCodeBlock'),_0x3f97b5['enableCommand']('outdentCodeBlock'),_0x3f97b5['enableCommand']('codeBlock',(_0x5bdf18,_0x182c22={})=>{const _0x1d7fb0=_0xf0064e['model'],_0x5a16b4=_0xf0064e['model']['document']['selection'],_0x2188b1=_0x182c22&&void 0x0!==_0x182c22['forceValue']?_0x182c22['forceValue']:!_0x24136b['value'];let _0x29e2be;_0x182c22['language']||(_0x182c22['language']=_0x3e9f17[0x0]['language']),_0x29e2be=_0x2188b1?Array['from'](_0x5a16b4['getSelectedBlocks']())['filter'](_0x21432c=>co(_0x21432c)||function(_0x4b81d8,_0x2d0321){if(_0x4b81d8['is']('rootElement')||_0x2d0321['isLimit'](_0x4b81d8))return!0x1;return _0x2d0321['checkChild'](_0x4b81d8['parent'],'codeBlock');}(_0x21432c,_0x1d7fb0['schema'])):Array['from'](_0x5a16b4['getSelectedBlocks']())['filter'](_0x25c934=>co(_0x25c934));const _0x4e6a6b=to(_0x29e2be,_0x1d7fb0);_0x1d7fb0['change'](()=>{for(const _0x1f65c2 of _0x4e6a6b)_0x3f97b5['markBlockFormat'](_0x1f65c2,{'commandName':'codeBlock','commandParams':[{..._0x182c22,'forceValue':_0x2188b1}],'formatGroupId':'blockName'});});}),(_0x3f97b5['descriptionFactory']['registerElementLabel']('codeBlock',_0x1be551=>o(_0x266c19,'ELEMENT_CODE_BLOCK',_0x1be551)),_0x3f97b5['descriptionFactory']['registerDescriptionCallback'](_0x150616=>{if('formatBlock'!=_0x150616['type'])return;const _0x1b329f=_0x266c19['t'],{data:_0x2e1184}=_0x150616;if(!_0x2e1184||'codeBlock'!=_0x2e1184['commandName'])return;const _0x3c02a2=_0x2e1184['commandParams'][0x0]['language'],_0x50256a=_0x1b329f(_0x3e9f17['find'](_0x12531d=>_0x12531d['language']===_0x3c02a2)['label'])['toLowerCase']();return _0x2e1184['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x266c19,'*Set\x20format:*\x20%0',o(_0x266c19,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x50256a+')')}:{'type':'format','content':o(_0x266c19,'*Remove\x20format:*\x20%0',o(_0x266c19,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x5d313d){return'codeBlock'==_0x5d313d['name'];}class J extends _0x588311{['afterInit'](){const _0x163d55=this['editor'];if(!_0x163d55['plugins']['has']('CommentsEditing'))return;_0x163d55['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x55bb95,_0x588268,_0x2952d3){const _0x5b31b1=[];for(const _0x33ba8e of _0x588268['getItems']())_0x33ba8e['hasAttribute'](_0x55bb95)&&_0x5b31b1['push'](_0x2952d3['createRangeOn'](_0x33ba8e));return _0x5b31b1;}function De(_0x12a6ef,_0x2100da,{showActiveMarker:_0x4008fe=!0x0}={}){const _0x25ab7b=_0x12a6ef['plugins']['get']('TrackChangesEditing');return(_0x413ced,_0x575a97,_0x218449)=>{if(!_0x218449['consumable']['test'](_0x575a97['markerRange'],_0x413ced['name']))return;const _0x3b25ca=_0x575a97['markerRange']['getWalker'](),_0x38b3d0=_0x575a97['markerRange']['start'],_0x4d48af=_0x12a6ef['model']['schema'];let _0x159bbf=null,_0x46d7ec=null,_0x4b24e5=!0x1,_0x545a86=!0x1;for(const _0x44fd73 of _0x3b25ca){const _0x2b84d8=_0x44fd73['item'];_0x4b24e5=_0x4b24e5||_0x4d48af['isContent'](_0x2b84d8);const _0x21faff=_0x218449['mapper']['toViewElement'](_0x2b84d8);if(_0x21faff&&_0x21faff['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x44fd73['type']&&(_0x4d48af['isBlock'](_0x2b84d8)&&!_0x4d48af['isLimit'](_0x2b84d8)&&(_0x2b84d8['nextSibling']||_0x38b3d0['isAtEnd']?_0x159bbf&&_0x159bbf['parent']==_0x2b84d8||(_0x159bbf=_0x2b84d8,_0x22806b(_0x44fd73['previousPosition']),_0x545a86=!0x0):_0x46d7ec=_0x46d7ec||_0x44fd73['previousPosition']));}function _0x22806b(_0x371de3){const {id:_0x477311,authorId:_0xff15de}=_0x25ab7b['_splitMarkerName'](_0x575a97['markerName']),_0x31b220=_0x218449['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2100da,'data-suggestion':_0x477311,'data-author-id':_0xff15de}),_0x146507=_0x218449['mapper']['toViewPosition'](_0x371de3);_0x4008fe&&_0x25ab7b['activeMarkers']['includes'](_0x575a97['markerName'])&&_0x218449['writer']['addClass']('ck-suggestion-marker--active',_0x31b220),_0x218449['writer']['insert'](_0x146507,_0x31b220),_0x218449['mapper']['bindElementToMarker'](_0x31b220,_0x575a97['markerName']);}_0x4b24e5||_0x545a86||!_0x46d7ec||_0x22806b(_0x46d7ec);};}class K extends _0x588311{static get['requires'](){return[_0x103805];}['init'](){const _0x1b32ac=this['editor'],_0x43859e=_0x1b32ac['plugins']['get']('TrackChangesEditing');_0x43859e['enableCommand']('delete');const _0x5f2e16=_0x1b32ac['commands']['get']('deleteForward');_0x43859e['enableCommand']('deleteForward',(_0x3fb98c,_0x4672be={})=>{const _0x5eae3d=_0x1b32ac['model']['createSelection'](_0x1b32ac['model']['document']['selection']);_0x5eae3d['isCollapsed']&&_0x1b32ac['model']['modifySelection'](_0x5eae3d,{'direction':'forward','unit':_0x4672be['unit']});const _0x3546d5=_0x5eae3d['getFirstRange'](),_0x287e24=_0x153d61['fromRange'](_0x3546d5);let _0x3d4f50;_0x3fb98c(_0x4672be),_0x3d4f50='$graveyard'==_0x287e24['root']['rootName']?_0x1b32ac['model']['createRange'](_0x3546d5['start']):_0x1b32ac['model']['createRange'](_0x287e24['start'],_0x287e24['end']),_0x287e24['detach'](),_0x1b32ac['model']['enqueueChange'](_0x5f2e16['buffer']['batch'],_0x33a754=>{_0x5f2e16['buffer']['lock'](),_0x33a754['setSelection'](_0x33a754['createRange'](_0x3d4f50['end'])),_0x5f2e16['buffer']['unlock']();});}),_0x1b32ac['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1b32ac,'merge'),{'priority':'high'}),_0x1b32ac['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x23def0,_0x1dfafe,_0x43fbf0)=>{_0x43fbf0['options']['showSuggestionHighlights']&&De(_0x1b32ac,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x23def0,_0x1dfafe,_0x43fbf0);},{'priority':'high'}),_0x1b32ac['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2e5ab4,_0x1675fa,_0x2eecc9)=>{const _0x5d936a=_0x2eecc9['mapper']['markerNameToElements'](_0x1675fa['markerName']);if(_0x5d936a){for(const _0x55e0a3 of _0x5d936a)_0x55e0a3['is']('uiElement')&&(_0x2eecc9['mapper']['unbindElementFromMarkerName'](_0x55e0a3,_0x1675fa['markerName']),_0x2eecc9['writer']['remove'](_0x55e0a3));}},{'priority':'high'});}}class H extends _0x588311{['afterInit'](){const _0x47330f=this['editor'];if(!_0x47330f['plugins']['has']('ListEditing'))return;const _0x392f48=_0x47330f['locale'],_0x205c57=_0x47330f['plugins']['get']('TrackChangesEditing'),_0x4c9745=_0x47330f['plugins']['has']('TodoListEditing'),_0x57a48a=!!_0x47330f['config']['get']('list.multiBlock');function _0x4aff2a(_0x41d9ef){return{'type':'format','content':''+o(_0x392f48,'*Set\x20format:*\x20%0',_0x41d9ef)};}function _0x5c8850(_0x4cee86){return{'type':'format','content':''+o(_0x392f48,'*Remove\x20format:*\x20%0',_0x4cee86)};}_0x205c57['enableDefaultAttributesIntegration']('numberedList'),_0x205c57['enableDefaultAttributesIntegration']('bulletedList'),_0x205c57['enableDefaultAttributesIntegration']('customNumberedList'),_0x205c57['enableDefaultAttributesIntegration']('customBulletedList'),_0x205c57['enableDefaultAttributesIntegration']('indentList'),_0x205c57['enableDefaultAttributesIntegration']('outdentList'),_0x205c57['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x205c57['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x205c57['registerBlockAttribute']('listItemId'),_0x205c57['registerBlockAttribute']('listType'),_0x205c57['registerBlockAttribute']('listIndent'),_0x57a48a&&(_0x205c57['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x205c57['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4c9745&&(_0x205c57['enableDefaultAttributesIntegration']('todoList'),_0x205c57['enableDefaultAttributesIntegration']('checkTodoList'),_0x205c57['registerBlockAttribute']('todoListChecked'),_0x205c57['descriptionFactory']['registerDescriptionCallback'](_0x38eec2=>{const {data:_0x1885fc}=_0x38eec2;if(_0x1885fc&&'todoListChecked'==_0x1885fc['key'])return{'type':'format','content':_0x1885fc['newValue']?o(_0x392f48,'*Check\x20item*'):o(_0x392f48,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5dfd37=>{if(_0x5dfd37['batch']['isUndo'])return!0x1;let _0x116ab6=!0x1;const _0x3c5943=_0x205c57['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15e244=>'todoListChecked'===_0x205c57['_getAttributeKey'](_0x15e244));for(const _0x204907 of _0x3c5943){'todo'!=_0x204907['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x205c57['_findSuggestions'](_0x204907['getFirstRange'](),'attribute')['find'](_0x597eab=>'listType'===_0x205c57['_getAttributeKey'](_0x597eab['suggestion']))||(_0x5dfd37['removeMarker'](_0x204907['getFirstMarker']()),_0x116ab6=!0x0));}return _0x116ab6;})),_0x205c57['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x392f48,'FORMAT_INDENT'));const _0xd867a2={'type':'format','content':''};_0x205c57['descriptionFactory']['registerDescriptionCallback'](_0x547a3a=>{const {data:_0x8520a9}=_0x547a3a;if(!_0x8520a9||'listType'!=_0x8520a9['key'])return;let _0x5cdeb7=_0x547a3a['head'];for(;_0x5cdeb7;){if(_0x5cdeb7['data']&&(('listStyle'==_0x5cdeb7['data']['key']||'listMarkerStyle'==_0x5cdeb7['data']['key'])&&(_0x5cdeb7['data']['newValue']&&'default'!=_0x5cdeb7['data']['newValue']||'default'!=_0x5cdeb7['data']['oldValue']&&!_0x8520a9['newValue'])||!_0x57a48a&&_0x5cdeb7['data']['key']==m))return _0xd867a2;_0x5cdeb7=_0x5cdeb7['next'];}if(null==_0x8520a9['newValue'])switch(_0x8520a9['oldValue']){case'bulleted':return _0x5c8850(o(_0x392f48,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c8850(o(_0x392f48,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c8850(o(_0x392f48,'ELEMENT_TODO_LIST'));}switch(_0x8520a9['newValue']){case'bulleted':return _0x4aff2a(o(_0x392f48,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4aff2a(o(_0x392f48,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4aff2a(o(_0x392f48,'ELEMENT_TODO_LIST'));}}),_0x205c57['descriptionFactory']['registerDescriptionCallback'](_0x20a3ba=>{const {data:_0x29d2fa}=_0x20a3ba;if(_0x29d2fa&&'listIndent'==_0x29d2fa['key'])return null==_0x29d2fa['newValue']||null==_0x29d2fa['oldValue']&&0x0==_0x29d2fa['newValue']?_0xd867a2:void 0x0;}),_0x205c57['descriptionFactory']['registerDescriptionCallback'](_0x2275da=>{if('attribute'!=_0x2275da['type'])return;const {data:_0x4feb35}=_0x2275da;if(!_0x4feb35||'listItemId'!=_0x4feb35['key'])return;const _0x38f21f=Te(_0x2275da);return'newValue'==_0x38f21f?{'type':'format','content':o(_0x392f48,'*Merge:*\x20list\x20item')}:'oldValue'==_0x38f21f?{'type':'format','content':o(_0x392f48,'*Split:*\x20list\x20item')}:_0xd867a2;}),_0x47330f['model']['document']['registerPostFixer'](_0x48f6a5=>this['listItemIdFixer'](_0x48f6a5)),_0x47330f['model']['document']['registerPostFixer'](_0x120a6e=>this['noTrackChangesFixer'](_0x120a6e)),_0x47330f['model']['document']['on']('change:data',(_0x5e0e91,_0x46c730)=>{if(_0x46c730['isUndo']||!_0x46c730['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x42b86d){if(_0x42b86d['batch']['isUndo']||!_0x42b86d['batch']['isLocal'])return!0x1;let _0x4bef5f=!0x1;const _0x13152d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x174f15=>_0x174f15['data']&&'listItemId'==_0x174f15['data']['key'])['filter'](_0x2a8d51=>_0x2a8d51['data']['newValue']&&_0x2a8d51['data']['oldValue']);for(const _0x4075ae of _0x13152d)Te(_0x4075ae)||(_0x42b86d['removeMarker'](_0x4075ae['getFirstMarker']()),_0x4bef5f=!0x0);return _0x4bef5f;}['noTrackChangesFixer'](_0x3dfc3d){if(_0x3dfc3d['batch']['isUndo']||!_0x3dfc3d['batch']['isLocal'])return!0x1;const _0x2ca41f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2ca41f['trackChangesCommand']['value'])return!0x1;let _0x14eb22=!0x1;const _0x11c990=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x522bcc=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x497818=>'attribute'==_0x497818['type'])['filter'](_0x1ecb70=>_0x11c990['includes'](_0x1ecb70['attributeKey']));if(0x0==_0x522bcc['length'])return _0x14eb22;for(const _0x333cbc of _0x522bcc){const _0x2c3aa3=_0x2ca41f['_findSuggestions'](_0x333cbc['range'],'attribute')['filter'](_0x12c237=>!_0x12c237['meta']['isNextTo'])['map'](_0xab8aff=>_0xab8aff['suggestion'])['filter'](_0x1543e8=>{const _0x5c22db=_0x2ca41f['_getAttributeKey'](_0x1543e8);return _0x11c990['includes'](_0x5c22db);});if(_0x2c3aa3['length']){for(const _0x557f33 of _0x2c3aa3)_0x3dfc3d['removeMarker'](_0x557f33['getFirstMarker']());_0x14eb22=!0x0;}}return _0x14eb22;}['assureChains'](){const _0x22770f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x571d94=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x85f68d;const _0x518d4e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xaea4=>{if(_0xaea4['data']['oldRange']||!_0xaea4['data']['newRange'])return null;if(!_0xaea4['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4dc3ea}=_0x22770f['_splitMarkerName'](_0xaea4['name']);if(!_0x22770f['hasSuggestion'](_0x4dc3ea))return null;const _0x1ee254=_0x22770f['getSuggestion'](_0x4dc3ea);return _0x571d94['includes'](_0x1ee254['data']['key']);})['map'](_0x373837=>{const {id:_0x37c02e}=_0x22770f['_splitMarkerName'](_0x373837['name']),_0x1bdb3a=_0x22770f['getSuggestion'](_0x37c02e);return _0x85f68d=_0x1bdb3a['attributes']['groupId'],_0x1bdb3a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x518d4e['size'])return;const _0x9c5951=_0x22770f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ee280=>'attribute'==_0x3ee280['type']&&_0x3ee280['data']&&_0x571d94['includes'](_0x3ee280['data']['key'])&&_0x3ee280['attributes']['groupId']!=_0x85f68d)['map'](_0x68cb81=>({'listItem':_0x68cb81['getFirstRange']()['start']['nodeAfter'],'groupId':_0x68cb81['attributes']['groupId']})),_0x3af9ac=new Set();for(const {groupId:_0x2d3902,listItem:_0x1b10ad}of _0x9c5951)_0x518d4e['has'](_0x1b10ad)&&_0x3af9ac['add'](_0x2d3902);for(const _0x236f33 of _0x22770f['getSuggestions']())_0x3af9ac['has'](_0x236f33['attributes']['groupId'])&&_0x236f33['setAttribute']('groupId',_0x85f68d);}['_supportLegacySuggestions'](){const _0x1f4687=this['editor'],_0x33a038=_0x1f4687['locale'],_0x3b85bd=_0x1f4687['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3b85bd['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x23536e,_0x1d1488){const _0x2eaec2=[];for(let _0x16ea49 of _0x23536e)_0x16ea49['start']['nodeAfter']===_0x16ea49['end']['parent']&&(_0x16ea49=_0x1f4687['model']['createRange'](_0x1f4687['model']['createPositionAt'](_0x16ea49['start']['nodeAfter'],0x0))),_0x2eaec2['push'](_0x16ea49);_0x1f4687['model']['change'](_0x3d8a2b=>{const _0x174af0=_0x1f4687['model']['document']['selection'],_0x568a4a=Array['from'](_0x174af0['getRanges']())['map'](_0x3a835e=>_0x153d61['fromRange'](_0x3a835e));_0x3d8a2b['setSelection'](_0x2eaec2),_0x1f4687['commands']['get'](_0x1d1488['commandName'])['refresh'](),_0x1d1488['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1f4687['execute'](_0x1d1488['commandName'],..._0x1d1488['commandParams']),_0x3d8a2b['setSelection'](_0x568a4a);for(const _0x22e328 of _0x568a4a)_0x22e328['detach']();});}),_0x3b85bd['descriptionFactory']['registerElementLabel'](function(_0xe52534){const _0x3e6edc=!_0x1f4687['model']['schema']['isObject'](_0xe52534),_0x139609=_0xe52534['previousSibling'],_0x2aaae3=_0xe52534['nextSibling'],_0x10ac11=_0xe52534['getAttribute']('listItemId'),_0x55a0aa=!_0x139609||_0x139609['getAttribute']('listItemId')!==_0x10ac11,_0x290e90=!_0x2aaae3||_0x2aaae3['getAttribute']('listItemId')!==_0x10ac11;return _0x3e6edc&&Boolean(_0x10ac11)&&_0x55a0aa&&_0x290e90;},_0x3132f8=>o(_0x33a038,'ELEMENT_LIST_ITEM',_0x3132f8));}['_registerLegacyDescription'](){const _0x5def77=this['editor'],_0x3739f2=_0x5def77['locale'];function _0x42ef6a(_0xb21d46){const _0x2d2770=_0x5def77['commands']['get']('bulletedList')['value'],_0x41ad49=_0x5def77['commands']['get']('numberedList')['value'];return'numberedList'===_0xb21d46?_0x2d2770:_0x41ad49;}_0x5def77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4d8eef){if('formatBlock'!=_0x4d8eef['type'])return;const {data:_0x97b5f2}=_0x4d8eef;if(!_0x97b5f2)return;let _0x21a011,_0x6c4148,_0xc353e1,_0x55cab6;switch(_0x97b5f2['commandName']){case'bulletedList':_0xc353e1=_0x97b5f2['commandParams'][0x0]['forceValue'],_0x55cab6=_0x42ef6a(_0x97b5f2['commandName']),_0x21a011=_0xc353e1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x55cab6&&_0x5def77['config']['get']('list.multiBlock')||(_0x21a011='*Change\x20to:*\x20%0'),_0x6c4148={'type':'format','content':o(_0x3739f2,_0x21a011,o(_0x3739f2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xc353e1=_0x97b5f2['commandParams'][0x0]['forceValue'],_0x55cab6=_0x42ef6a(_0x97b5f2['commandName']),_0x21a011=_0xc353e1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x55cab6&&_0x5def77['config']['get']('list.multiBlock')||(_0x21a011='*Change\x20to:*\x20%0'),_0x6c4148={'type':'format','content':o(_0x3739f2,_0x21a011,o(_0x3739f2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x21a011='*Indent:*\x20%0',_0x6c4148={'type':'format','content':o(_0x3739f2,_0x21a011,o(_0x3739f2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x21a011=function(_0xdb6b8f){const _0x45eb52=_0xdb6b8f['getFirstRange']();let _0x42c713=_0x45eb52['start']['nodeAfter'];for(;_0x42c713&&_0x45eb52['containsItem'](_0x42c713);){if(_0x42c713['getAttribute']('listIndent')>0x0)return!0x1;_0x42c713=_0x42c713['nextSibling'];}return!0x0;}(_0x4d8eef)?o(_0x3739f2,'*Format:*\x20remove\x20from\x20%0',o(_0x3739f2,function(_0x287200){return'ELEMENT_'+_0x287200['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4d8eef))):o(_0x3739f2,'*Outdent:*\x20%0',o(_0x3739f2,'ELEMENT_LIST_ITEM')),_0x6c4148={'type':'format','content':_0x21a011};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x97b5f2['multipleBlocks']&&(_0x21a011='*Merge:*\x20%0',_0x6c4148={'type':'deletion','content':o(_0x3739f2,_0x21a011,o(_0x3739f2,'ELEMENT_LIST_ITEM'))});}return _0x6c4148;});}}function Te(_0xa8386c){let _0x37cb28=_0xa8386c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x37cb28;){const _0x1c7f48=_0x37cb28['getAttribute']('listItemId');if(!_0x1c7f48)return!0x1;if(_0x1c7f48==_0xa8386c['data']['newValue'])return'newValue';if(_0x1c7f48==_0xa8386c['data']['oldValue'])return'oldValue';_0x37cb28=_0x37cb28['previousSibling'];}return!0x1;}class q extends _0x588311{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x9e497f=this['editor']['config']['get']('list.properties'),_0x4cba8a=this['editor']['plugins']['get']('TrackChangesEditing');_0x9e497f['styles']&&(_0x4cba8a['enableDefaultAttributesIntegration']('listStyle'),_0x4cba8a['registerBlockAttribute']('listStyle')),_0x9e497f['reversed']&&(_0x4cba8a['enableDefaultAttributesIntegration']('listReversed'),_0x4cba8a['registerBlockAttribute']('listReversed')),_0x9e497f['startIndex']&&(_0x4cba8a['enableDefaultAttributesIntegration']('listStart'),_0x4cba8a['registerBlockAttribute']('listStart'));const _0x2ac4f={'type':'format','content':''};_0x4cba8a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x36dd4e=this['editor']['locale'];_0x4cba8a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x36dd4e,'FORMAT_LIST_REVERSED')),_0x4cba8a['descriptionFactory']['registerDescriptionCallback'](_0x3bdb66=>{const {data:_0x40882d}=_0x3bdb66;if(_0x40882d&&'listReversed'==_0x40882d['key'])return null==_0x40882d['newValue']||0x0==_0x40882d['newValue']&&null==_0x40882d['oldValue']?_0x2ac4f:void 0x0;}),_0x4cba8a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x36dd4e,'FORMAT_LIST_START')),_0x4cba8a['descriptionFactory']['registerDescriptionCallback'](_0xf4521f=>{const {data:_0x2bd9f8}=_0xf4521f;if(_0x2bd9f8&&'listStart'==_0x2bd9f8['key'])return null==_0x2bd9f8['newValue']||0x1==_0x2bd9f8['newValue']&&null==_0x2bd9f8['oldValue']?_0x2ac4f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xd70caa=>{if(_0xd70caa['batch']['isUndo'])return!0x1;let _0x2442d7=!0x1;const _0x52af47=_0x4cba8a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4bd7a5=>{const _0x112c9f=_0x4cba8a['_getAttributeKey'](_0x4bd7a5);return'listStart'==_0x112c9f||'listReversed'==_0x112c9f;});for(const _0x51c899 of _0x52af47){const _0x359979=_0x51c899['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x359979||'customNumbered'==_0x359979)continue;_0x4cba8a['_findSuggestions'](_0x51c899['getFirstRange'](),'attribute')['find'](_0x154b19=>'listType'==_0x4cba8a['_getAttributeKey'](_0x154b19['suggestion']))||(_0xd70caa['removeMarker'](_0x51c899['getFirstMarker']()),_0x2442d7=!0x0);}return _0x2442d7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2e2b4d){const _0x323407=this['editor']['locale'],{data:_0x25f93d}=_0x2e2b4d,_0x433158={'type':'format','content':''};if(!_0x25f93d||'listStyle'!=_0x25f93d['key'])return;if(!_0x25f93d['oldValue'])return'default'==_0x25f93d['newValue']?_0x433158:{'type':'format','content':''+o(_0x323407,'*Set\x20format:*\x20%0',o(_0x323407,this['_getTranslationKeyForListStyle'](_0x25f93d['newValue'])))};if(!_0x25f93d['newValue']){if('default'==_0x25f93d['oldValue'])return _0x433158;let _0x33f433=_0x2e2b4d['head'];for(;_0x33f433;){if(_0x33f433['data']&&'listType'==_0x33f433['data']['key']&&_0x33f433['data']['newValue'])return _0x433158;_0x33f433=_0x33f433['next'];}return{'type':'format','content':''+o(_0x323407,'*Remove\x20format:*\x20%0',o(_0x323407,this['_getTranslationKeyForListStyle'](_0x25f93d['oldValue'])))};}if('default'!=_0x25f93d['newValue'])return{'type':'format','content':''+o(_0x323407,'*Set\x20format:*\x20%0',o(_0x323407,this['_getTranslationKeyForListStyle'](_0x25f93d['newValue'])))};let _0x2c0929=_0x2e2b4d['head'];for(;_0x2c0929;){if(_0x2c0929['data']&&'listType'==_0x2c0929['data']['key']&&_0x2c0929['data']['newValue']&&_0x2c0929['data']['oldValue'])return _0x433158;_0x2c0929=_0x2c0929['next'];}return{'type':'format','content':o(_0x323407,'*Set\x20format:*\x20%0',o(_0x323407,'ELEMENT_'+_0x2e2b4d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x455288=this['editor'],_0x3ba4c4=_0x455288['locale'];_0x455288['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x440612=>{if('formatBlock'!=_0x440612['type'])return;const {data:_0x4f82dc}=_0x440612;if(!_0x4f82dc)return;let _0x405505,_0x29a9ad;switch(_0x4f82dc['commandName']){case'listStyle':_0x405505='*Change\x20to:*\x20%0',_0x29a9ad={'type':'format','content':o(_0x3ba4c4,_0x405505,o(_0x3ba4c4,this['_getTranslationKeyForListStyle'](_0x4f82dc['commandParams'][0x0]['type'])))};break;case'listReversed':_0x405505=_0x4f82dc['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x29a9ad={'type':'format','content':o(_0x3ba4c4,_0x405505)};break;case'listStart':_0x405505='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x29a9ad={'type':'format','content':o(_0x3ba4c4,_0x405505,_0x4f82dc['commandParams'][0x0]['startIndex'])};}return _0x29a9ad;});}['_getTranslationKeyForListStyle'](_0x3c7dea){return'ELEMENT_'+function(_0x147444){if(Se['includes'](_0x147444))return'bulleted';if(_e['includes'](_0x147444))return'numbered';return null;}(_0x3c7dea)['toUpperCase']()+'_LIST_'+_0x3c7dea['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x588311{['afterInit'](){const _0x17a753=this['editor'];_0x17a753['commands']['get']('emoji')&&_0x17a753['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x588311{static get['requires'](){return[_0x2597a3];}['init'](){const _0x33e7c4=this['editor'],_0x599cca=_0x33e7c4['plugins']['get']('TrackChangesEditing'),_0x3853fc=_0x33e7c4['commands']['get']('enter');_0x599cca['enableCommand']('enter',()=>{_0x33e7c4['model']['change'](_0x5a6053=>{const _0x10f965=_0x33e7c4['model']['document']['selection'],_0x4ba530=_0x10f965['getFirstPosition'](),_0x1cf75e=_0x153d61['fromRange'](_0x10f965['getFirstRange']());if(_0x3853fc['enterBlock'](_0x5a6053)){const _0x2633cf=_0x33e7c4['model']['createPositionAt'](_0x4ba530['parent']['nextSibling'],0x0),_0x138959=_0x5a6053['createRange'](_0x4ba530,_0x2633cf);_0x599cca['markInsertion'](_0x138959);}else _0x5a6053['setSelection'](_0x5a6053['createRange'](_0x1cf75e['end']));_0x1cf75e['detach'](),_0x3853fc['fire']('afterExecute',{'writer':_0x5a6053});});}),_0x33e7c4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x33e7c4,'split'),{'priority':'high'}),_0x33e7c4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x40efd2,_0x58cda4,_0x3ee1d7)=>{const _0x3c8848=_0x3ee1d7['mapper']['markerNameToElements'](_0x58cda4['markerName']);if(_0x3c8848){for(const _0xc29f6a of _0x3c8848)_0xc29f6a['hasClass']('ck-suggestion-marker-split')&&(_0x3ee1d7['mapper']['unbindElementFromMarkerName'](_0xc29f6a,_0x58cda4['markerName']),_0x3ee1d7['writer']['remove'](_0xc29f6a));}},{'priority':'high'}),_0x33e7c4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x363298,_0x5913ad,_0x39bcb0)=>{_0x39bcb0['options']['showSuggestionHighlights']&&De(_0x33e7c4,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x363298,_0x5913ad,_0x39bcb0);},{'priority':'high'});}}class Q extends _0x588311{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x586ee8=this['editor']['plugins']['get']('TrackChangesEditing');_0x586ee8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x586ee8['enableCommand']('findNext'),_0x586ee8['enableCommand']('findPrevious'),_0x586ee8['enableCommand']('replace'),_0x586ee8['enableCommand']('replaceAll');}['handleFindCommand'](_0x3fe3d6,_0x29af76,_0x310a88={}){const _0x5c76c6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3fe3d6(_0x5ad497=>{let _0x7ed3c5=('string'==typeof _0x29af76?_0x5c76c6['findByTextCallback'](_0x29af76,_0x310a88):_0x29af76)(_0x5ad497);Array['isArray'](_0x7ed3c5)&&(_0x7ed3c5={'results':_0x7ed3c5,'searchText':'string'==typeof _0x29af76?_0x29af76:''});const _0x172bc5=_0x7ed3c5['results']['filter'](_0x35f9a1=>!0x1===this['_isInDeletionRange'](_0x35f9a1,_0x5ad497['item']));return{..._0x7ed3c5,'results':_0x172bc5};},_0x310a88);}['_isInDeletionRange'](_0x10dddd,_0x17480a){const _0x2bac48=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x17480a,_0x10dddd['start']),this['editor']['model']['createPositionAt'](_0x17480a,_0x10dddd['end']));for(const _0x4a0efb of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2bac48['getIntersection'](_0x4a0efb['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 _0x588311{['afterInit'](){const _0x3abda6=this['editor']['locale'],_0x16cf03=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3a26a3,commandName:_0xda3de5}of eo)this['editor']['plugins']['has'](_0x3a26a3)&&(_0x16cf03['enableDefaultAttributesIntegration'](_0xda3de5),_0x16cf03['registerInlineAttribute'](_0xda3de5));_0x16cf03['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3abda6,'FORMAT_FONT_SIZE')),_0x16cf03['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3abda6,'FORMAT_FONT_FAMILY')),_0x16cf03['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3abda6,'FORMAT_FONT_COLOR')),_0x16cf03['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3abda6,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x233573=this['editor'],_0x45c54f=_0x233573['locale'];_0x233573['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x348e49=>{const _0x4bec19=_0x45c54f['t'];if('formatInline'!=_0x348e49['type'])return;const {data:_0x530269}=_0x348e49;if(null!=_0x530269){if('fontSize'==_0x530269['commandName']){const _0x146a9a=_0x530269['commandParams'][0x0]['value'];if(_0x146a9a){const _0x51d1bc=_0x4bec19(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1df6f6=>_0x1df6f6['model']==_0x146a9a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x45c54f,'*Set\x20font\x20size:*\x20%0',_0x51d1bc)};}return{'type':'format','content':o(_0x45c54f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x530269['commandName']){const _0x1f3201=_0x530269['commandParams'][0x0]['value'];return _0x1f3201?{'type':'format','content':o(_0x45c54f,'*Set\x20font\x20family:*\x20%0',_0x1f3201)}:{'type':'format','content':o(_0x45c54f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x530269['commandName']){const _0x844319=_0x530269['commandParams'][0x0]['value'];if(_0x844319){const _0x3b6bc3=_0x63f84f(this['editor']['config']['get']('fontColor.colors'))['find'](_0x215600=>_0x215600['model']==_0x844319);let _0xe5b49a=_0x844319,_0x525d85='';return _0x3b6bc3&&(_0xe5b49a=_0x3b6bc3['label'],_0x525d85=_0x4bec19(_0xe5b49a)['toLowerCase']()),{'type':'format','content':o(_0x45c54f,'*Set\x20font\x20color:*\x20%0',_0x525d85)['trim'](),'color':{'value':_0x844319,'title':_0x525d85||_0xe5b49a}};}return{'type':'format','content':o(_0x45c54f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x530269['commandName']){const _0x593ce9=_0x530269['commandParams'][0x0]['value'];if(_0x593ce9){const _0x320118=_0x63f84f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x546f86=>_0x546f86['model']==_0x593ce9);let _0x4104e8=_0x593ce9,_0x20dd1e='';return _0x320118&&(_0x4104e8=_0x320118['label'],_0x20dd1e=_0x4bec19(_0x4104e8)['toLowerCase']()),{'type':'format','content':o(_0x45c54f,'*Set\x20font\x20background\x20color:*\x20%0',_0x20dd1e)['trim'](),'color':{'value':_0x593ce9,'title':_0x20dd1e||_0x4104e8}};}return{'type':'format','content':o(_0x45c54f,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x588311{['afterInit'](){const _0x2c6f97=this['editor'],_0xf133a8=_0x2c6f97['plugins']['get']('TrackChangesEditing'),_0x450b01=_0x2c6f97['commands']['get']('copyFormat'),_0x3c5541=_0x2c6f97['commands']['get']('pasteFormat');_0x450b01&&_0x3c5541&&(_0xf133a8['enableDefaultAttributesIntegration']('pasteFormat'),_0xf133a8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4fba6d=this['editor'],_0x49c206=_0x4fba6d['locale'];_0x4fba6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f39e9=>{if('formatBlock'!=_0x3f39e9['type']&&'formatInline'!=_0x3f39e9['type'])return;const {data:_0x503377}=_0x3f39e9;if(_0x503377&&'pasteFormat'===_0x503377['commandName']){const _0x314bad=[],_0x51522f=_0x503377['commandParams'][0x0];for(const [_0x23d33d,_0x579524]of Object['entries'](_0x51522f))_0x314bad['push'](ro(_0x4fba6d,_0x23d33d,_0x579524));return _0x314bad['length']?{'type':'format','content':o(_0x49c206,'*Set\x20format\x20to:*\x20%0',_0x314bad['join'](',\x20'))}:{'type':'format','content':o(_0x49c206,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xc6217f,_0x47c6e2,_0x55947b){const _0x2d1633=_0xc6217f['locale']['t'],_0x4c1cc9=_0x47c6e2['split'](/(?=[A-Z])/)['join']('\x20'),_0x15d3b0=_0x2d1633(_0x4c1cc9['charAt'](0x0)['toUpperCase']()+_0x4c1cc9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x55947b)return _0x15d3b0;if('fontColor'===_0x47c6e2||'fontBackgroundColor'===_0x47c6e2){const _0x55f0d7=_0x63f84f(_0xc6217f['config']['get']('fontColor.colors'))['find'](_0x3ab9e6=>_0x3ab9e6['model']==_0x55947b);return _0x15d3b0+'\x20('+(_0x55f0d7?_0x2d1633(_0x55f0d7['label'])['toLowerCase']():_0x55947b)+')';}if('fontSize'===_0x47c6e2&&isNaN(parseFloat(_0x55947b))){const _0xbe1b29=_0xc6217f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xc6217f['config']['get']('fontSize.options'))['find'](_0x4a1aa0=>_0x4a1aa0['model']==_0x55947b);return _0x15d3b0+'\x20('+(_0xbe1b29?_0x2d1633(_0xbe1b29['title'])['toLowerCase']():_0x55947b)+')';}return _0x15d3b0+'\x20('+_0x55947b+')';}class Z extends _0x588311{['_headingOptions'];['afterInit'](){const _0x1ce3ed=this['editor'];if(!_0x1ce3ed['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1ce3ed['config']['get']('heading.options');const _0x11773a=_0x1ce3ed['locale'],_0x3279cf=_0x1ce3ed['plugins']['get']('TrackChangesEditing');_0x3279cf['enableDefaultAttributesIntegration']('heading');for(const _0x550324 of this['_headingOptions'])'paragraph'!=_0x550324['model']&&_0x3279cf['descriptionFactory']['registerElementLabel'](_0x550324['model'],_0x49fb2d=>{const _0x153662=this['_getHeadingLevel'](_0x550324['model']);return null!==_0x153662?_0x40fe41(_0x49fb2d,_0x153662):_0x71d968(_0x49fb2d,_0x550324['title']);});function _0x40fe41(_0x1ddfc2,_0x1d40b2){return o(_0x11773a,'ELEMENT_HEADING',[_0x1ddfc2,_0x1d40b2]);}function _0x71d968(_0x2bea26,_0x4a27b4){return o(_0x11773a,'ELEMENT_HEADING_CUSTOM',[_0x2bea26,_0x4a27b4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1af3d8=this['editor'],_0x3287a5=_0x1af3d8['locale'];function _0x2bde16(_0x1fc5cf,_0x5e4b94){return o(_0x3287a5,'ELEMENT_HEADING_CUSTOM',[_0x1fc5cf,_0x5e4b94]);}_0x1af3d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37ed6b=>{if('formatBlock'!=_0x37ed6b['type'])return;const {data:_0x22b742}=_0x37ed6b;if(_0x22b742&&'heading'==_0x22b742['commandName']){const _0x1a28a5=_0x22b742['commandParams'][0x0]['value'],_0x4b9067=this['_getHeadingLevel'](_0x1a28a5);if(null!==_0x4b9067)return{'type':'format','content':o(_0x3287a5,'*Change\x20to:*\x20%0',(_0x6dd848=0x1,_0x45df59=_0x4b9067,o(_0x3287a5,'ELEMENT_HEADING',[_0x6dd848,_0x45df59])))};const _0x415eec=this['_headingOptions']['find'](_0x58040d=>_0x58040d['model']===_0x1a28a5)['title'];return{'type':'format','content':o(_0x3287a5,'*Change\x20to:*\x20%0',_0x2bde16(0x1,_0x415eec))};}var _0x6dd848,_0x45df59;});}['_getHeadingLevel'](_0x21d728){const _0x1928a0=_0x21d728['match'](/^heading(\d+)/);if(_0x1928a0)return _0x1928a0[0x1];const _0x52ef96=this['_headingOptions']?.['find'](_0x33b46d=>_0x33b46d['model']==_0x21d728);if(_0x52ef96&&_0x52ef96['view']){const _0x2d5767=_0x52ef96['view'],_0xf54fb3=(_0x2d5767['name']??_0x2d5767)['match'](/^h(\d+)/);if(_0xf54fb3)return _0xf54fb3[0x1];}return null;}}class tt extends _0x588311{['afterInit'](){const _0x4c702b=this['editor'];if(!_0x4c702b['plugins']['has']('HighlightEditing'))return;const _0x3579e4=_0x4c702b['plugins']['get']('TrackChangesEditing'),_0x5add27=_0x4c702b['locale'];_0x3579e4['enableDefaultAttributesIntegration']('highlight'),_0x3579e4['registerInlineAttribute']('highlight'),_0x3579e4['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5add27,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4caa41=this['editor'],_0x291183=_0x4caa41['locale'];_0x4caa41['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x412099=>{if('formatInline'!=_0x412099['type'])return;const {data:_0x5d6fb3}=_0x412099;if(_0x5d6fb3&&'highlight'==_0x5d6fb3['commandName']){const _0x5cbe67=_0x291183['t'],_0x4b3d3e=_0x5d6fb3['commandParams'][0x0]['value'];if(_0x4b3d3e){const _0x5e5e12=_0x4caa41['config']['get']('highlight.options')['find'](_0x20f9d2=>_0x20f9d2['model']==_0x4b3d3e),_0x366c0c=_0x5cbe67(_0x5e5e12['title'])['toLowerCase']();return{'type':'format','content':o(_0x291183,'*Set\x20highlight:*\x20%0',_0x366c0c),'color':{'value':_0x5e5e12['color'],'title':_0x5e5e12['title']}};}return{'type':'format','content':o(_0x291183,'*Remove\x20highlight*',o(_0x291183,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x588311{['afterInit'](){const _0x57f275=this['editor'];if(!_0x57f275['plugins']['has']('HorizontalLineEditing'))return;_0x57f275['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3293af=_0x57f275['plugins']['get']('TrackChangesEditing'),_0xe22e93=_0x57f275['locale'];_0x3293af['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3f7845=>o(_0xe22e93,'ELEMENT_HORIZONTAL_LINE',_0x3f7845)),_0x57f275['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x44a2ef,{writer:_0x43bc6f,options:_0x54b4bb})=>{if(!_0x54b4bb['showSuggestionHighlights'])return null;const _0x445370=_0x43bc6f['createContainerElement']('div'),_0x46d844=_0x43bc6f['createEmptyElement']('hr');return _0x43bc6f['addClass']('ck-horizontal-line',_0x445370),_0x43bc6f['insert'](_0x43bc6f['createPositionAt'](_0x445370,0x0),_0x46d844),_0x445370;},'converterPriority':'high'});}}class nt extends _0x588311{['afterInit'](){const _0x595eed=this['editor'];if(!_0x595eed['plugins']['has']('HtmlEmbed'))return;const _0x488b1f=_0x595eed['plugins']['get']('TrackChangesEditing'),_0x3bf38c=_0x595eed['locale'];_0x488b1f['descriptionFactory']['registerElementLabel']('rawHtml',_0x229bf1=>o(_0x3bf38c,'ELEMENT_HTML_EMBED',_0x229bf1)),_0x488b1f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x488b1f['registerBlockAttribute']('value'),_0x488b1f['descriptionFactory']['registerDescriptionCallback'](_0x375345=>{if('attribute'!=_0x375345['type'])return;const {data:_0xaef27d}=_0x375345;if(_0xaef27d&&'value'==_0xaef27d['key']&&_0x375345['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x19cb9f=o(_0x3bf38c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3bf38c,'*Change\x20%0\x20content*',_0x19cb9f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15669b=this['editor'],_0x5d774d=_0x15669b['locale'];_0x15669b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c99a1=>{if('formatBlock'!=_0x5c99a1['type'])return;const {data:_0x270200}=_0x5c99a1;if(_0x270200&&'htmlEmbed'==_0x270200['commandName']){const _0x3d9be7=o(_0x5d774d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5d774d,'*Change\x20%0\x20content*',_0x3d9be7)};}});}}class et extends _0x588311{['afterInit'](){const _0x1be236=this['editor'];if(!_0x1be236['plugins']['has']('ImageEditing'))return;const _0x1dad56=_0x1be236['plugins']['get']('TrackChangesEditing'),_0x21e625=_0x1be236['plugins']['get']('ImageUtils'),_0x35686f=_0x1be236['locale'];_0x1dad56['enableCommand']('insertImage'),_0x1dad56['descriptionFactory']['registerElementLabel']('imageBlock',_0x36a560=>o(_0x35686f,'ELEMENT_IMAGE',_0x36a560)),_0x1dad56['descriptionFactory']['registerElementLabel']('imageInline',_0x13bea9=>o(_0x35686f,'ELEMENT_INLINE_IMAGE',_0x13bea9)),_0x1dad56['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x35686f,'ELEMENT_CAPTION')),_0x1be236['plugins']['has']('ImageUploadEditing')&&_0x1dad56['enableCommand']('uploadImage'),_0x1be236['plugins']['has']('ImageBlockEditing')&&_0x1be236['plugins']['has']('ImageInlineEditing')&&(_0x1dad56['enableCommand']('imageTypeInline',(_0x32b649,_0x5bb96c)=>{const _0x3e4576=_0x21e625['getClosestSelectedImageElement'](_0x1be236['model']['document']['selection']);_0x1be236['model']['change'](()=>{_0x1dad56['markBlockFormat'](_0x3e4576,{'commandName':'imageTypeInline','commandParams':[_0x5bb96c]},[],'convertBlockImageToInline');});}),_0x1dad56['enableCommand']('imageTypeBlock',(_0x380566,_0x4dbb42)=>{_0x1be236['model']['change'](_0x52591e=>{let _0x1f73af=_0x21e625['getClosestSelectedImageElement'](_0x1be236['model']['document']['selection']),_0x4a2b7d=_0x52591e['createRangeOn'](_0x1f73af);const _0x37c16e=_0x5e984c['fromPosition'](_0x4a2b7d['start'],'toPrevious'),_0x3f7adf=_0x5e984c['fromPosition'](_0x4a2b7d['end'],'toNext');_0x1dad56['forceDefaultExecution'](()=>_0x380566(_0x4dbb42)),_0x1f73af=_0x21e625['getClosestSelectedImageElement'](_0x1be236['model']['document']['selection']),_0x4a2b7d=_0x52591e['createRangeOn'](_0x1f73af);const _0x1ebbfb=_0x52591e['createRange'](_0x37c16e,_0x3f7adf);_0x37c16e['detach'](),_0x3f7adf['detach'](),_0x1dad56['markBlockFormat'](_0x1f73af,{'commandName':'imageTypeInline','commandParams':[_0x4dbb42]},[],'convertInlineImageToBlock'),_0x1ebbfb['start']['isBefore'](_0x4a2b7d['start'])&&_0x1dad56['markInsertion'](_0x52591e['createRange'](_0x1ebbfb['start'],_0x4a2b7d['start']),'convertInlineImageToBlock'),_0x4a2b7d['end']['isBefore'](_0x1ebbfb['end'])&&_0x1dad56['markInsertion'](_0x52591e['createRange'](_0x4a2b7d['end'],_0x1ebbfb['end']),'convertInlineImageToBlock');});}),_0x1dad56['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1dad56['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1dad56['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1dad56['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1dad56['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1dad56['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x17c918])=>{const _0x29d6d5=_0x1dad56['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2c35ba=_0x17c918['start'],_0x1632e3=_0x17c918['end'];const _0x4f68b2=_0x1be236['model']['schema']['getNearestSelectionRange'](_0x2c35ba,'backward'),_0x2deb4f=_0x1be236['model']['schema']['getNearestSelectionRange'](_0x1632e3,'forward');_0x4f68b2['isCollapsed']&&(_0x2c35ba=_0x4f68b2['start']),_0x2deb4f['isCollapsed']&&(_0x1632e3=_0x2deb4f['end']),_0x29d6d5([_0x1be236['model']['createRange'](_0x2c35ba,_0x1632e3)]);}),_0x1dad56['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xa8ddcf),_0x1dad56['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xa8ddcf)),_0x1be236['plugins']['has']('ImageCaptionEditing')&&(_0x1dad56['enableCommand']('toggleImageCaption',(_0x3961e8,_0x16228f)=>{const _0x3899ad=_0x1be236['plugins']['get']('ImageCaptionUtils');let _0x20ea03=_0x21e625['getClosestSelectedImageElement'](_0x1be236['model']['document']['selection']),_0x362ac3=_0x3899ad['getCaptionFromImageModelElement'](_0x20ea03);_0x1be236['model']['change'](()=>{if(_0x362ac3)return void _0x1dad56['markDeletion'](_0x1be236['model']['createRangeOn'](_0x362ac3));const _0x4724dd=_0x21e625['isBlockImage'](_0x20ea03);_0x3961e8(_0x16228f),_0x20ea03=_0x21e625['getClosestSelectedImageElement'](_0x1be236['model']['document']['selection']),_0x362ac3=_0x3899ad['getCaptionFromImageModelElement'](_0x20ea03),_0x1dad56['markInsertion'](_0x1be236['model']['createRangeOn'](_0x362ac3),_0x4724dd?null:'imageCaption');});}),_0x1dad56['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xa8ddcf));const _0x2a3b7d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xca8b80(_0x2a62cf,_0x5cf6b4){const _0x1be7a3=_0x2a3b7d['findIndex'](({type:_0x44c8ac,subType:_0x3ac7d9})=>_0x2a62cf['type']==_0x44c8ac&&_0x2a62cf['subType']==_0x3ac7d9),_0x2a8a54=_0x2a3b7d['findIndex'](({type:_0x3b7f32,subType:_0x5dc7b6})=>_0x5cf6b4['type']==_0x3b7f32&&_0x5cf6b4['subType']==_0x5dc7b6);if(_0x1be7a3<0x0||_0x2a8a54<0x0)return!0x1;const _0x13f3bf=_0x2a62cf['getFirstRange'](),_0xec78b3=_0x5cf6b4['getFirstRange']();if((0x0==_0x1be7a3||0x1==_0x1be7a3)&&0x2==_0x2a8a54&&_0x13f3bf['isIntersecting'](_0xec78b3))return!0x0;if(0x2==_0x1be7a3&&0x3==_0x2a8a54){const _0x9179ff=_0x1dad56['_findSuggestions'](_0x13f3bf,'insertion')['filter'](({suggestion:_0x343a7b,meta:_0x35dacd})=>_0x35dacd['isOwn']&&'convertInlineImageToBlock'==_0x343a7b['subType']);if(_0x9179ff['length']>0x1&&_0xec78b3['end']['isEqual'](_0x13f3bf['start']))return!0x0;if(0x1==_0x9179ff['length']&&(_0x13f3bf['start']['isEqual'](_0xec78b3['end'])||_0x13f3bf['end']['isEqual'](_0xec78b3['start'])))return!0x0;}if(0x3==_0x1be7a3&&0x3==_0x2a8a54&&_0x13f3bf['start']['isBefore'](_0xec78b3['start'])){const _0x32310b=_0x13f3bf['end']['nodeAfter'],_0x22e5bb=_0xec78b3['start']['nodeBefore'];return _0x21e625['isBlockImage'](_0x32310b)&&_0x32310b===_0x22e5bb;}return!0x1;}function _0xa8ddcf(_0x292e26,_0x58210a){return _0xca8b80(_0x292e26,_0x58210a)?[_0x292e26,_0x58210a]:_0xca8b80(_0x58210a,_0x292e26)?[_0x58210a,_0x292e26]:null;}_0x1be236['plugins']['has']('ImageResize')&&(_0x1dad56['enableDefaultAttributesIntegration']('resizeImage'),_0x1dad56['registerBlockAttribute']('resizedWidth'),_0x1dad56['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x35686f,'FORMAT_IMAGE_SIZE'))),_0x1be236['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1dad56['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1dad56['registerBlockAttribute']('alt')),_0x1be236['plugins']['has']('PictureEditing')&&(_0x1dad56['registerBlockAttribute']('sources'),_0x1dad56['descriptionFactory']['registerDescriptionCallback'](_0xa408d1=>{if('attribute'!=_0xa408d1['type'])return;const {data:_0x4aed6a}=_0xa408d1;return _0x4aed6a&&'sources'==_0x4aed6a['key']?{'type':'format','content':''}:void 0x0;})),_0x1be236['plugins']['has']('ImageSizeAttributes')&&(_0x1dad56['registerBlockAttribute']('width'),_0x1dad56['registerBlockAttribute']('height'),_0x1dad56['descriptionFactory']['registerDescriptionCallback'](_0x1109b7=>{if('attribute'!=_0x1109b7['type'])return;const {data:_0x3b729d}=_0x1109b7;return!_0x3b729d||'width'!=_0x3b729d['key']&&'height'!=_0x3b729d['key']?void 0x0:{'type':'format','content':''};})),_0x1dad56['descriptionFactory']['registerDescriptionCallback'](_0x45afae=>{if(!!_0x2a3b7d['find'](({type:_0x2a66e0,subType:_0x16a4f2})=>_0x45afae['type']==_0x2a66e0&&_0x45afae['subType']==_0x16a4f2))return _0x45afae['previous']?{}:void 0x0;}),_0x1dad56['descriptionFactory']['registerDescriptionCallback'](_0x238ea2=>{if('insertion'==_0x238ea2['type']||'deletion'==_0x238ea2['type']){const _0x27a7f5=_0x238ea2['getContainedElement']();if(_0x27a7f5&&_0x27a7f5['is']('element','caption'))return{'type':'insertion'==_0x238ea2['type']?'addObject':'removeObject','element':_0x27a7f5,'quantity':0x1};}}),_0x1dad56['descriptionFactory']['registerDescriptionCallback'](_0x23fd15=>'formatBlock'==_0x23fd15['type']&&'convertInlineImageToBlock'==_0x23fd15['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x23fd15['type']&&'convertBlockImageToInline'==_0x23fd15['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1dad56['descriptionFactory']['registerDescriptionCallback'](_0x4e068a=>{if('attribute'!=_0x4e068a['type'])return;const {data:_0x5f364a}=_0x4e068a;if(!_0x5f364a||'alt'!=_0x5f364a['key'])return;const _0x5437b9=_0x5f364a['newValue'];return _0x5437b9?{'type':'format','content':o(_0x35686f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5437b9+'\x22')}:{'type':'format','content':o(_0x35686f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xba83e7=this['editor'],_0x445f99=_0xba83e7['locale'];_0xba83e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ce713=>{if('formatBlock'!=_0x4ce713['type']&&'formatInline'!=_0x4ce713['type'])return;const {data:_0x6500ff}=_0x4ce713;if(_0x6500ff){if('imageTextAlternative'==_0x6500ff['commandName']){const _0x1b6c32=_0x6500ff['commandParams'][0x0]['newValue'];return _0x1b6c32?{'type':'format','content':o(_0x445f99,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1b6c32+'\x22')}:{'type':'format','content':o(_0x445f99,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x6500ff['commandName']){const _0x5f53b2=_0x6500ff['commandParams'][0x0]['width'];return _0x5f53b2?{'type':'format','content':o(_0x445f99,'*Set\x20image\x20width:*\x20%0',_0x5f53b2)}:{'type':'format','content':o(_0x445f99,'*Reset\x20image\x20width*')};}}});}}class st extends _0x588311{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4a0dd0=this['editor']['locale'],_0x5aaedf=this['editor']['plugins']['get']('TrackChangesEditing');_0x5aaedf['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5aaedf['registerBlockAttribute']('src'),_0x5aaedf['descriptionFactory']['registerDescriptionCallback'](_0xca1a5b=>{if('attribute'!=_0xca1a5b['type'])return;const {data:_0x278ffb}=_0xca1a5b;return _0x278ffb&&'src'==_0x278ffb['key']?_0x278ffb['newValue']&&_0x278ffb['oldValue']?{'type':'format','content':o(_0x4a0dd0,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x321314=this['editor']['plugins']['get']('TrackChangesEditing');_0x321314['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x321314['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x321314['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x321314['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb9fcf7=this['editor'],_0x571442=_0xb9fcf7['locale'];_0xb9fcf7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59b2cb=>{if('formatBlock'!=_0x59b2cb['type']&&'formatInline'!=_0x59b2cb['type'])return;const {data:_0x3e2709}=_0x59b2cb;if(!_0x3e2709||'replaceImageSource'!=_0x3e2709['commandName'])return;return{'type':'format','content':o(_0x571442,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x588311{['afterInit'](){const _0x3bcd4d=this['editor'];if(!_0x3bcd4d['plugins']['has']('ImageStyleEditing'))return;const _0x5ebc78=_0x3bcd4d['plugins']['get']('TrackChangesEditing'),_0x45ba2c=_0x3bcd4d['plugins']['get']('ImageUtils'),_0x2f6119={};_0x5ebc78['enableCommand']('imageStyle',(_0x1b0861,_0x2e67fa)=>{const _0x4e9bda=_0x3bcd4d['plugins']['get']('Users')['me'],_0x11d704=_0x3bcd4d['commands']['get']('imageStyle');let _0x2bbb12=_0x45ba2c['getClosestSelectedImageElement'](_0x3bcd4d['model']['document']['selection']),_0x7dcacf=_0x3bcd4d['model']['createRangeOn'](_0x2bbb12),_0x46a0ff=_0x11d704['value'];if(_0x46a0ff==_0x2e67fa['value'])return;const _0x12840f={'commandName':'imageStyle','commandParams':[_0x2e67fa],'formatGroupId':_0x58b607()};_0x3bcd4d['model']['change'](()=>{if(_0x5ebc78['getSuggestions']()['filter'](_0x29015c=>_0x29015c['isInContent']&&_0x4e9bda==_0x29015c['author']&&('formatBlock'==_0x29015c['type']||'formatInline'==_0x29015c['type'])&&('imageStylePreApply'==_0x29015c['subType']||'imageStylePostApply'==_0x29015c['subType'])&&_0x29015c['getFirstRange']()['isEqual'](_0x7dcacf))['forEach'](_0x87e18f=>_0x5ebc78['discardSuggestion'](_0x87e18f['head'])),_0x2bbb12=_0x45ba2c['getClosestSelectedImageElement'](_0x3bcd4d['model']['document']['selection']),_0x7dcacf=_0x3bcd4d['model']['createRangeOn'](_0x2bbb12),_0x11d704['refresh'](),_0x3bcd4d['commands']['get']('imageTypeInline')['refresh'](),_0x3bcd4d['commands']['get']('imageTypeBlock')['refresh'](),_0x46a0ff=_0x11d704['value'],_0x46a0ff!=_0x2e67fa['value'])return _0x45ba2c['isInlineImage'](_0x2bbb12)&&_0x11d704['shouldConvertImageType'](_0x2e67fa['value'],_0x2bbb12)?(_0x1b0861({..._0x2e67fa,'setImageSizes':!0x1}),_0x2bbb12=_0x45ba2c['getClosestSelectedImageElement'](_0x3bcd4d['model']['document']['selection']),void _0x5ebc78['markBlockFormat'](_0x2bbb12,{..._0x12840f,'commandReversedParams':[{'value':_0x46a0ff||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x45ba2c['isBlockImage'](_0x2bbb12)?_0x5ebc78['markBlockFormat'](_0x2bbb12,_0x12840f,[],'imageStylePostApply'):_0x5ebc78['markInlineFormat'](_0x7dcacf,_0x12840f,'imageStylePostApply'));});});for(const _0x7fdce0 of _0x3bcd4d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2f6119[_0x7fdce0['name']]=_0x7fdce0['title']['toLowerCase']();_0x5ebc78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5ebc78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5ebc78['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5ebc78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xd57449])=>{_0x45ba2c['setImageNaturalSizeAttributes'](_0xd57449['getContainedElement']());}),_0x5ebc78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x52a4d4,_0x340997)=>{_0x5ebc78['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x52a4d4,{'commandName':_0x340997['commandName'],'commandParams':_0x340997['commandReversedParams']});}),_0x5ebc78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3ac3b7,_0x35ee05){if(_0x44bba9(_0x3ac3b7,_0x35ee05))return[_0x3ac3b7,_0x35ee05];if(_0x44bba9(_0x35ee05,_0x3ac3b7))return[_0x35ee05,_0x3ac3b7];return null;});const _0x224cf8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x44bba9(_0x3624de,_0x4888ca){const _0x51754f=_0x224cf8['findIndex'](({type:_0x4f5d22,subType:_0x35f227})=>_0x3624de['type']==_0x4f5d22&&_0x3624de['subType']==_0x35f227),_0x500ee1=_0x224cf8['findIndex'](({type:_0x4d4b3b,subType:_0x395b27})=>_0x4888ca['type']==_0x4d4b3b&&_0x4888ca['subType']==_0x395b27);if(_0x51754f<0x0||_0x500ee1<0x0)return!0x1;const _0x2bcd41=_0x3624de['getFirstRange'](),_0xfa057d=_0x4888ca['getFirstRange']();if((0x0==_0x51754f||0x1==_0x51754f)&&0x2==_0x500ee1&&_0x2bcd41['isIntersecting'](_0xfa057d))return!0x0;if(0x2==_0x51754f&&0x3==_0x500ee1){const _0x1128f9=_0x5ebc78['_findSuggestions'](_0x2bcd41,'insertion')['filter'](({suggestion:_0x5e4057,meta:_0x3c853d})=>_0x3c853d['isOwn']&&'convertInlineImageToBlock'==_0x5e4057['subType']);if(_0x1128f9['length']>0x1&&_0xfa057d['end']['isEqual'](_0x2bcd41['start']))return!0x0;if(0x1==_0x1128f9['length']&&(_0x2bcd41['start']['isEqual'](_0xfa057d['end'])||_0x2bcd41['end']['isEqual'](_0xfa057d['start'])))return!0x0;}if(0x3==_0x51754f&&0x3==_0x500ee1&&_0x2bcd41['start']['isBefore'](_0xfa057d['start'])){const _0x2a601e=_0x2bcd41['end']['nodeAfter'],_0x5de722=_0xfa057d['start']['nodeBefore'];return _0x45ba2c['isBlockImage'](_0x2a601e)&&_0x2a601e===_0x5de722;}return!0x1;}_0x3bcd4d['model']['document']['registerPostFixer'](()=>{let _0x26f009=!0x1;const _0x29ef85=Array['from'](_0x3bcd4d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43ed68,data:_0x364d98}of _0x29ef85){const {group:_0x99f68f,type:_0x48be08,subType:_0x441275,id:_0x2e9bdf}=_0x5ebc78['_splitMarkerName'](_0x43ed68);if('suggestion'==_0x99f68f&&_0x5ebc78['hasSuggestion'](_0x2e9bdf)){if('formatBlock'==_0x48be08&&('imageStylePreApply'==_0x441275||'imageStylePostApply'==_0x441275)){const _0x594808=_0x5ebc78['getSuggestion'](_0x2e9bdf);if(_0x364d98['newRange']){const _0x35b015=_0x594808['getFirstRange']()['getContainedElement']();if(_0x45ba2c['isBlockImage'](_0x35b015))continue;_0x5ebc78['discardSuggestion'](_0x594808),_0x26f009=!0x0;}}if('insertion'==_0x48be08&&'imageCaption'==_0x441275&&!_0x364d98['newRange']){const _0x2349ed=_0x5ebc78['getSuggestion'](_0x2e9bdf);_0x2349ed['next']&&_0x2349ed['next']['isInContent']&&(_0x5ebc78['discardSuggestion'](_0x2349ed['next']),_0x26f009=!0x0);}}}return _0x26f009;}),this['_registerLegacyDescription'](_0x2f6119);}['_registerLegacyDescription'](_0x274e88){const _0x12f021=this['editor'],_0x4d7217=_0x12f021['locale'];_0x12f021['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e0058=>{if('formatBlock'!=_0x2e0058['type']&&'formatInline'!=_0x2e0058['type'])return;const {data:_0x2d3692}=_0x2e0058;if(!_0x2d3692||'imageStyle'!=_0x2d3692['commandName'])return;const _0x4615ed=_0x2d3692['commandParams'][0x0]['value'];return _0x27d842('side'===_0x4615ed?o(_0x4d7217,'FORMAT_SIDE_IMAGE'):_0x274e88[_0x4615ed]||_0x4615ed);function _0x27d842(_0x3ecd53){return{'type':'format','content':o(_0x4d7217,'*Format:*\x20%0',_0x3ecd53)};}});}}class rt extends _0x588311{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x39bc80){super(_0x39bc80),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4b43e4=this['editor'],_0x272747=_0x4b43e4['commands']['get']('importWord'),_0x12bf4f=_0x4b43e4['commands']['get']('trackChanges');_0x272747&&(_0x272747['on']('execute',(_0x1ae813,[,_0x14aea7])=>{this['_trackChangesValueDuringImport']=_0x12bf4f['value'],_0x14aea7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x272747,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x272747,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x12bf4f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4b43e4['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x43abe9,_0x3bca7b){const {suggestions:_0x42473b}=_0x3bca7b,_0x5a77a1=this['editor']['commands']['get']('trackChanges'),_0x553185=_0x5a77a1['value'];this['_trackChangesValueDuringImport']!==_0x553185&&(_0x5a77a1['execute'](),this['_trackChangesExecuted']=!0x0),_0x42473b&&_0x42473b['forEach'](({id:_0x1149f1,type:_0x24882c,author:_0x46e396,created_at:_0xfda7d})=>{const _0x4c7d70={'id':_0x1149f1,'type':_0x24882c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x46e396,'createdAt':_0xfda7d?new Date(_0xfda7d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4c7d70);});}}class at extends _0x588311{['afterInit'](){const _0x8e2e7c=this['editor'],_0x2326c7=_0x8e2e7c['plugins']['get']('TrackChangesEditing');if(_0x8e2e7c['plugins']['has']('IndentEditing')&&(_0x2326c7['enableCommand']('indent'),_0x2326c7['enableCommand']('outdent')),_0x8e2e7c['plugins']['has']('IndentBlock')){for(const _0x189158 of['indentBlock','outdentBlock'])_0x2326c7['enableDefaultAttributesIntegration'](_0x189158);}const _0x526e01=_0x8e2e7c['locale'];_0x2326c7['registerBlockAttribute']('blockIndent'),_0x2326c7['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x526e01,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bf4b8=this['editor'],_0x47f289=_0x4bf4b8['locale'],_0x238a1d=_0x4bf4b8['plugins']['get']('TrackChangesEditing');_0x238a1d['descriptionFactory']['registerDescriptionCallback'](_0x62901f=>{if('formatBlock'!=_0x62901f['type'])return;const {data:_0x2e28c3}=_0x62901f;if(!_0x2e28c3)return;if('indentBlock'!=_0x2e28c3['commandName']&&'outdentBlock'!=_0x2e28c3['commandName'])return;const _0x459128=_0x62901f['getItems']()[0x0],_0x11456f=_0x238a1d['descriptionFactory']['getItemLabel'](_0x459128);return'indentBlock'==_0x2e28c3['commandName']?{'type':'format','content':o(_0x47f289,'*Indent:*\x20%0',_0x11456f)}:'outdentBlock'==_0x2e28c3['commandName']?{'type':'format','content':o(_0x47f289,'*Outdent:*\x20%0',_0x11456f)}:void 0x0;});}}class ct extends _0x588311{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x588311{['afterInit'](){const _0x15cafb=this['editor'];if(!_0x15cafb['plugins']['has']('LinkEditing'))return;const _0x2bf118=_0x15cafb['plugins']['get']('TrackChangesEditing'),_0x5e3bb4=_0x15cafb['commands']['get']('link');_0x2bf118['enableDefaultAttributesIntegration']('link'),_0x2bf118['enableDefaultAttributesIntegration']('unlink'),_0x2bf118['registerInlineAttribute']('linkHref');for(const _0x1e701b of _0x5e3bb4['manualDecorators'])_0x2bf118['registerInlineAttribute'](_0x1e701b['id']),_0x2bf118['descriptionFactory']['registerAttributeLabel'](_0x1e701b['id'],'link\x20('+_0x1e701b['label']['toLowerCase']()+')');_0x2bf118['descriptionFactory']['registerDescriptionCallback'](_0x2e4de0=>{if('attribute'!=_0x2e4de0['type'])return;const {data:_0x4a7f73}=_0x2e4de0;if(!_0x4a7f73||'linkHref'!=_0x4a7f73['key'])return;const _0x2a2c14=_0x4a7f73['newValue'],_0x228872=_0x15cafb['locale'];return{'type':'format','content':null==_0x2a2c14?o(_0x228872,'*Remove\x20link*'):o(_0x228872,'*Set\x20link:*\x20%0','\x22'+_0x2a2c14+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cdcfa=this['editor'],_0x215c6c=_0x5cdcfa['locale'];_0x5cdcfa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x408de7=>{if('formatInline'!=_0x408de7['type'])return;const {data:_0x150358}=_0x408de7;if(_0x150358){if('link'==_0x150358['commandName']){const _0x4e5c31=_0x150358['commandParams'][0x0];return{'type':'format','content':o(_0x215c6c,'*Set\x20link:*\x20%0','\x22'+_0x4e5c31+'\x22')};}return'unlink'==_0x150358['commandName']?{'type':'format','content':o(_0x215c6c,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x588311{['afterInit'](){const _0x126ceb=this['editor'],_0x4d1b85=_0x126ceb['locale'];if(!_0x126ceb['plugins']['has']('LegacyListEditing'))return;const _0x27269b=_0x126ceb['plugins']['get']('TrackChangesEditing'),_0x37674a=_0x126ceb['plugins']['has']('LegacyTodoListEditing');function _0x1efa04(_0x165073){return()=>{const _0x22b918=_0x126ceb['model']['document']['selection'],_0x139e2e=_0x126ceb['commands']['get'](_0x165073);if(_0x139e2e['value'])return void _0x126ceb['execute']('paragraph',{});const _0x23c44d=_0x165073['slice'](0x0,-0x4),_0x150f95=function(_0x3ffe97,_0x5978c3,_0x2c7c30){let _0x30b531=Array['from'](_0x3ffe97)['filter'](_0x4895d0=>function(_0x4c6a9a,_0x5f3c94){return _0x5f3c94['checkChild'](_0x4c6a9a['parent'],'listItem')&&!_0x5f3c94['isObject'](_0x4c6a9a);}(_0x4895d0,_0x2c7c30));_0x30b531=_0x30b531['filter'](_0xcfbe6d=>!_0xcfbe6d['is']('element','listItem')||_0xcfbe6d['getAttribute']('listType')!=_0x5978c3);const _0x4b7760=new Set();for(const _0x2e2051 of _0x30b531)_0x2e2051['is']('element','listItem')?_0x4b7760['add'](Le(_0x2e2051)):_0x4b7760['add'](_0x2e2051);return Array['from'](_0x4b7760);}(_0x22b918['getSelectedBlocks'](),_0x23c44d,_0x126ceb['model']['schema']);_0x126ceb['model']['change'](()=>{for(const _0x22e107 of _0x150f95)_0x27269b['markBlockFormat'](_0x22e107,{'commandName':_0x165073,'commandParams':[{'forceValue':!_0x139e2e['value']}],'formatGroupId':'blockName'},Ee(_0x22e107));});};}function _0x5226c0(_0xf1ef81){return()=>{const _0x40b423=function(_0x271525){let _0x3dc570=Array['from'](_0x271525);const _0x13280c=_0x3dc570['findIndex'](_0x1180db=>'listItem'!=_0x1180db['name']);return _0x13280c>-0x1&&(_0x3dc570=_0x3dc570['slice'](0x0,_0x13280c)),_0x3dc570;}(_0x126ceb['model']['document']['selection']['getSelectedBlocks']()),_0x23aa91=_0x126ceb['model']['createRange'](_0x126ceb['model']['createPositionAt'](_0x40b423[0x0],'before'),_0x126ceb['model']['createPositionAt'](_0x40b423[_0x40b423['length']-0x1],'end'));_0x126ceb['model']['change'](()=>{_0x27269b['markBlockFormat'](_0x23aa91,{'commandName':_0xf1ef81,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5cdd2f){const _0x5a18b2=new Set();for(const _0x30e00a of _0x5cdd2f){let _0xe9b0c2=_0x30e00a['nextSibling'];for(;_0xe9b0c2&&_0xe9b0c2['getAttribute']('listIndent')>_0x30e00a['getAttribute']('listIndent');)_0x5a18b2['add'](_0xe9b0c2),_0xe9b0c2=_0xe9b0c2['nextSibling'];}return Array['from'](_0x5a18b2);}(_0x40b423));});};}_0x27269b['enableCommand']('numberedList',_0x1efa04('numberedList')),_0x27269b['enableCommand']('bulletedList',_0x1efa04('bulletedList')),_0x37674a&&_0x27269b['enableCommand']('todoList',_0x1efa04('todoList')),_0x27269b['enableCommand']('indentList',_0x5226c0('indentList')),_0x27269b['enableCommand']('outdentList',_0x5226c0('outdentList')),_0x37674a&&_0x27269b['enableCommand']('checkTodoList',()=>{const _0xd38cf6=_0x126ceb['commands']['get']('checkTodoList'),_0x19c71e=Array['from'](_0xd38cf6['_selectedElements']);_0x19c71e['filter'](_0x2b580a=>_0x2b580a['getAttribute']('todoListChecked')!=_0xd38cf6['value']),_0x126ceb['model']['change'](()=>{for(const _0x335615 of _0x19c71e)_0x27269b['markBlockFormat'](_0x335615,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xd38cf6['value']}]});});}),_0x27269b['descriptionFactory']['registerElementLabel']('listItem',_0x18a482=>o(_0x4d1b85,'ELEMENT_LIST_ITEM',_0x18a482)),_0x27269b['descriptionFactory']['registerDescriptionCallback'](_0x153d30=>{if('formatBlock'!=_0x153d30['type']&&'formatInline'!=_0x153d30['type'])return;const {data:_0xefc400}=_0x153d30;if(_0xefc400){if('numberedList'==_0xefc400['commandName']||'bulletedList'==_0xefc400['commandName']||'todoList'==_0xefc400['commandName'])switch(_0xefc400['commandName']['replace']('List','')){case'bulleted':return _0x5ba2a3(o(_0x4d1b85,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5ba2a3(o(_0x4d1b85,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5ba2a3(o(_0x4d1b85,'ELEMENT_TODO_LIST'));}if('indentList'==_0xefc400['commandName'])return{'type':'format','content':o(_0x4d1b85,'*Indent:*\x20%0',o(_0x4d1b85,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xefc400['commandName'])return{'type':'format','content':o(_0x4d1b85,'*Outdent:*\x20%0',o(_0x4d1b85,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xefc400['commandName'])return _0xefc400['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d1b85,'*Check\x20item*')}:{'type':'format','content':o(_0x4d1b85,'*Uncheck\x20item*')};}function _0x5ba2a3(_0x59c81c){return{'type':'format','content':o(_0x4d1b85,'*Change\x20to:*\x20%0',_0x59c81c)};}});}}function Le(_0x1bbd0c){const _0x2afac9=_0x1bbd0c['getAttribute']('listIndent');if(0x0==_0x2afac9)return _0x1bbd0c;let _0x2b4531=_0x1bbd0c;for(;_0x1bbd0c['previousSibling']&&_0x1bbd0c['previousSibling']['is']('element','listItem');){const _0x2d3c18=_0x1bbd0c['previousSibling']['getAttribute']('listIndent');if(_0x2d3c18==_0x2afac9)_0x2b4531=_0x1bbd0c['previousSibling'];else{if(_0x2d3c18<_0x2afac9)break;}_0x1bbd0c=_0x1bbd0c['previousSibling'];}return _0x2b4531;}function Ee(_0x27dd5e){const _0x445912=[];if(_0x27dd5e['is']('element','listItem')&&_0x27dd5e['getAttribute']('listIndent')>0x0){let _0x4604a2=_0x27dd5e['nextSibling'];for(;_0x4604a2&&'listItem'==_0x4604a2['name']&&_0x4604a2['getAttribute']('listIndent')==_0x27dd5e['getAttribute']('listIndent');)_0x445912['push'](_0x4604a2),_0x4604a2=_0x4604a2['nextSibling'];}return _0x445912;}class ht extends _0x588311{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x241ba5=this['editor']['config']['get']('list.properties'),_0xa93a77=this['editor']['plugins']['get']('TrackChangesEditing');_0x241ba5['styles']&&_0xa93a77['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x241ba5['reversed']&&_0xa93a77['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x241ba5['startIndex']&&_0xa93a77['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xa93a77['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x23fa03,_0x4ced37={}){const _0x42bcb6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2331d0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x42bcb6['markMultiRangeBlockFormat'](_0x2331d0,{'commandName':'listStyle','commandParams':[{'type':_0x4ced37['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4144bf,_0x5b6634={}){const _0x1d8fe8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a0393=this['_getSuggestionBlocks'](_0x532322=>_0x532322['is']('element','listItem')&&'numbered'===_0x532322['getAttribute']('listType'));if(_0x1a0393['length']<0x1)return;const _0x2c1336=_0x1a0393['map'](_0x16d9a1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x16d9a1,'before'),this['editor']['model']['createPositionAt'](_0x16d9a1,0x0)));this['editor']['model']['change'](()=>{_0x1d8fe8['markMultiRangeBlockFormat'](_0x2c1336,{'commandName':'listReversed','commandParams':[{'reversed':_0x5b6634['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x13d51f,_0x3b1e84={}){const _0x3f6b81=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a65aa=this['_getSuggestionBlocks'](_0x5eb747=>_0x5eb747['is']('element','listItem')&&'numbered'===_0x5eb747['getAttribute']('listType'));if(_0x1a65aa['length']<0x1)return;const _0x1192a3=_0x1a65aa['map'](_0x31ac5f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x31ac5f,'before'),this['editor']['model']['createPositionAt'](_0x31ac5f,0x0)));this['editor']['model']['change'](()=>{_0x3f6b81['markMultiRangeBlockFormat'](_0x1192a3,{'commandName':'listStart','commandParams':[{'startIndex':_0x3b1e84['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1953c4){if('formatBlock'!=_0x1953c4['type']&&'formatInline'!=_0x1953c4['type'])return;const _0x22ba66=this['editor']['locale'],{data:_0x3bd55d}=_0x1953c4;if(!_0x3bd55d)return;let _0x37161a,_0x3fe5d0;switch(_0x3bd55d['commandName']){case'listStyle':_0x37161a='*Change\x20to:*\x20%0',_0x3fe5d0={'type':'format','content':o(_0x22ba66,_0x37161a,o(_0x22ba66,this['_getTranslationKeyForListStyle'](_0x3bd55d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x37161a=_0x3bd55d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3fe5d0={'type':'format','content':o(_0x22ba66,_0x37161a)};break;case'listStart':_0x37161a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3fe5d0={'type':'format','content':o(_0x22ba66,_0x37161a,_0x3bd55d['commandParams'][0x0]['startIndex'])};}return _0x3fe5d0;}['_getSuggestionBlocksForListStyle'](){const _0x48b2fd=this['editor']['plugins']['get']('LegacyListUtils');let _0x46edce=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x46edce[0x0]?.['is']('element','listItem')&&_0x46edce['unshift'](..._0x48b2fd['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x46edce[_0x46edce['length']-0x1]?.['is']('element','listItem')&&_0x46edce['push'](..._0x48b2fd['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x46edce=[...new Set(_0x46edce)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x46edce=_0x46edce['filter'](_0x5d0202=>_0x5d0202['is']('element','listItem'))),_0x46edce;}['_getSuggestionBlocks'](_0xc0525c){const _0x46c94e=this['editor']['plugins']['get']('LegacyListUtils');let _0x310bdb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xc0525c)['map'](_0x15d887=>{const _0x2392d8=this['editor']['model']['createPositionAt'](_0x15d887,0x0);return[..._0x46c94e['getSiblingNodes'](_0x2392d8,'backward'),..._0x46c94e['getSiblingNodes'](_0x2392d8,'forward')];})['flat']();return _0x310bdb=[...new Set(_0x310bdb)],_0x310bdb;}['_getTranslationKeyForListStyle'](_0x40075f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x40075f)||'default')['toUpperCase']()+'_LIST_'+_0x40075f['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x588311{['afterInit'](){const _0xf69b71=this['editor'];if(!_0xf69b71['plugins']['has']('MediaEmbedEditing'))return;const _0x4172ad=_0xf69b71['plugins']['get']('TrackChangesEditing'),_0x13b130=_0xf69b71['locale'];_0x4172ad['enableCommand']('mediaEmbed'),_0x4172ad['descriptionFactory']['registerElementLabel']('media',_0x1d92d4=>o(_0x13b130,'ELEMENT_MEDIA',_0x1d92d4)),_0xf69b71['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1e1712,{writer:_0x1925d0,options:_0x217821})=>{if(_0x217821['showSuggestionHighlights'])return _0x1925d0['createEmptyElement']('div');},'converterPriority':'high'}),_0xf69b71['data']['downcastDispatcher']['on']('attribute:url:media',(_0x412058,_0x40315f,_0x2a4c03)=>{_0x2a4c03['options']['showSuggestionHighlights']&&_0x412058['stop']();},{'priority':'high'});}}class lt extends _0x588311{['afterInit'](){const _0x1ff702=this['editor'];_0x1ff702['plugins']['has']('MentionEditing')&&_0x1ff702['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x588311{['afterInit'](){const _0x286df9=this['editor'];if(!_0x286df9['plugins']['has']('MergeFieldsEditing'))return;const _0x59ca99=_0x286df9['plugins']['get']('TrackChangesEditing'),_0x58058d=_0x286df9['locale'];_0x59ca99['enableCommand']('insertMergeField'),_0x59ca99['enableCommand']('insertMergeFieldBlock'),_0x59ca99['enableCommand']('insertMergeFieldImage'),_0x59ca99['descriptionFactory']['registerElementLabel']('mergeField',_0x2f3068=>o(_0x58058d,'ELEMENT_MERGE_FIELD',_0x2f3068)),_0x59ca99['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x35d90c=>o(_0x58058d,'ELEMENT_MERGE_FIELD',_0x35d90c)),_0x59ca99['descriptionFactory']['registerDescriptionCallback'](_0x5092a4=>{if('insertion'!=_0x5092a4['type']&&'deletion'!=_0x5092a4['type'])return;const _0x22974e=_0x5092a4['getContainedElement']();if(null==_0x22974e)return;const _0x22ac08=_0x286df9['plugins']['get']('MergeFieldsEditing');let _0x4679c6;switch(_0x22ac08['getMergeFieldType'](_0x22974e)){case null:return;case'image':{const _0x54c4d8=_0x22ac08['unwrapAffixes'](_0x22974e['getAttribute']('src'));_0x4679c6=_0x22ac08['getLabel'](_0x54c4d8)||_0x54c4d8;break;}default:{const _0x459ee1=_0x22974e['getAttribute']('id');_0x4679c6=_0x22ac08['getLabel'](_0x459ee1)||_0x459ee1;break;}}return'insertion'==_0x5092a4['type']?{'type':'insertion','content':o(_0x58058d,'*Insert:*\x20%0','\x22'+_0x4679c6+'\x22\x20'+o(_0x58058d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x58058d,'*Remove:*\x20%0','\x22'+_0x4679c6+'\x22\x20'+o(_0x58058d,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x588311{['afterInit'](){const _0x496c35=this['editor'],_0x2e49f3=_0x496c35['plugins']['get']('TrackChangesEditing');_0x496c35['plugins']['has']('MultiLevelList')&&(_0x2e49f3['enableDefaultAttributesIntegration']('multiLevelList'),_0x2e49f3['registerBlockAttribute']('listMarkerStyle'),_0x2e49f3['descriptionFactory']['registerDescriptionCallback'](_0x5c0e8a=>this['handleDescriptions'](_0x5c0e8a)));}['handleDescriptions'](_0x271f5d){const _0x3f46eb=this['editor']['locale'],{data:_0x377485}=_0x271f5d,_0x13e004={'type':'format','content':''};if(_0x377485&&'listMarkerStyle'==_0x377485['key']){if(!_0x377485['oldValue'])return{'type':'format','content':o(_0x3f46eb,'*Set\x20format:*\x20%0',o(_0x3f46eb,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x377485['newValue']+')'};if(!_0x377485['newValue']){let _0x1f8843=_0x271f5d['head'];for(;_0x1f8843;){if(_0x1f8843['data']&&'listType'==_0x1f8843['data']['key']&&_0x1f8843['data']['newValue'])return _0x13e004;_0x1f8843=_0x1f8843['next'];}return{'type':'format','content':o(_0x3f46eb,'*Remove\x20format:*\x20%0',o(_0x3f46eb,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x377485['oldValue']+')'};}}}}class pt extends _0x588311{['afterInit'](){const _0x3c9233=this['editor'];if(!_0x3c9233['plugins']['has']('PageBreakEditing'))return;_0x3c9233['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x360476=_0x3c9233['plugins']['get']('TrackChangesEditing'),_0x200143=_0x3c9233['locale'];_0x360476['descriptionFactory']['registerElementLabel']('pageBreak',_0x34187f=>o(_0x200143,'ELEMENT_PAGE_BREAK',_0x34187f));}}class kt extends _0x588311{['afterInit'](){const _0x43a6ee=this['editor'];if(!_0x43a6ee['plugins']['has']('Paragraph'))return;const _0x346e61=_0x43a6ee['locale'],_0x5c623e=_0x43a6ee['plugins']['get']('TrackChangesEditing');_0x5c623e['descriptionFactory']['registerElementLabel']('paragraph',_0x25a7b9=>o(_0x346e61,'ELEMENT_PARAGRAPH',_0x25a7b9)),_0x5c623e['enableDefaultAttributesIntegration']('paragraph'),_0x5c623e['enableCommand']('insertParagraph'),_0x43a6ee['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x43a6ee),{'priority':'highest'}),_0x43a6ee['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x472aba,_0x39fe31,_0x29f35e)=>{_0x29f35e['options']['showSuggestionHighlights']&&nr(_0x43a6ee,{'showActiveMarker':!0x1})(_0x472aba,_0x39fe31,_0x29f35e);},{'priority':'highest'});const _0x4eb210=_0x5c623e['descriptionFactory'];_0x4eb210['registerDescriptionCallback'](_0x4ed772=>{if('insertion'!==_0x4ed772['type'])return;const {start:_0x4b2d4d,end:_0x3dccc5}=_0x4ed772['getFirstRange']();if(!_0x4b2d4d['isTouching'](_0x3dccc5)||!_0x4b2d4d['nodeAfter'])return;const _0xfb87f7=_0x43a6ee['model']['schema'],_0x3fd2f9=_0x4b2d4d['nodeAfter'];return _0xfb87f7['isBlock'](_0x3fd2f9)&&!_0xfb87f7['isLimit'](_0x3fd2f9)&&_0xfb87f7['checkChild'](_0x3fd2f9,'$text')?{'type':'insertion','content':o(_0x346e61,'*Insert:*\x20%0',_0x4eb210['getItemLabel'](_0x3fd2f9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x366240=this['editor'],_0x226647=_0x366240['locale'];_0x366240['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fbcea=>{if('formatBlock'!=_0x3fbcea['type'])return;const {data:_0x15158b}=_0x3fbcea;return _0x15158b&&'paragraph'==_0x15158b['commandName']?{'type':'format','content':o(_0x226647,'*Change\x20to:*\x20%0',o(_0x226647,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x382bca,{showActiveMarker:_0x5c4505=!0x0}={}){return(_0x3e35f1,_0x47d5d6,_0x34f05d)=>{const _0x56b636=_0x382bca['plugins']['get']('TrackChangesEditing'),_0x28ecea=_0x47d5d6['markerRange']['start'],_0x4e0fae=_0x47d5d6['markerRange']['end'],_0x11d38e=_0x382bca['model']['schema'];if(!_0x28ecea['isTouching'](_0x4e0fae)||!_0x28ecea['nodeAfter'])return;const _0x1d6f55=_0x28ecea['nodeAfter'];if(_0x11d38e['isBlock'](_0x1d6f55)&&!_0x11d38e['isLimit'](_0x1d6f55)&&_0x11d38e['checkChild'](_0x1d6f55,'$text')){if(!_0x34f05d['consumable']['consume'](_0x47d5d6['markerRange'],_0x3e35f1['name']))return;const {id:_0xb4982a,authorId:_0x56cfa5}=_0x56b636['_splitMarkerName'](_0x47d5d6['markerName']),_0x396dae=_0x34f05d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0xb4982a,'data-author-id':_0x56cfa5}),_0x106fe0=_0x34f05d['mapper']['toViewPosition'](_0x4e0fae);_0x5c4505&&_0x56b636['activeMarkers']['includes'](_0x47d5d6['markerName'])&&_0x34f05d['writer']['addClass']('ck-suggestion-marker--active',_0x396dae),_0x34f05d['writer']['insert'](_0x106fe0,_0x396dae),_0x34f05d['mapper']['bindElementToMarker'](_0x396dae,_0x47d5d6['markerName']);}};}class wt extends _0x588311{['afterInit'](){const _0x53ec24=this['editor'];_0x53ec24['commands']['get']('replaceSource')&&_0x53ec24['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x588311{['afterInit'](){const _0x15a847=this['editor'];if(!_0x15a847['plugins']['has']('RemoveFormatEditing'))return;_0x15a847['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e0a9e=this['editor'];_0x1e0a9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bee00=>{if('formatBlock'!=_0x5bee00['type']&&'formatInline'!=_0x5bee00['type'])return;const {data:_0x5b8364}=_0x5bee00;return _0x5b8364&&'removeFormat'==_0x5b8364['commandName']?{'type':'format','content':o(_0x1e0a9e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x588311{['afterInit'](){const _0x4ce716=this['editor'];if(!_0x4ce716['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x245a9b=_0x4ce716['plugins']['get']('TrackChangesEditing');_0x245a9b['enableCommand']('goToPreviousRestrictedEditingException'),_0x245a9b['enableCommand']('goToNextRestrictedEditingException');const _0x3529bd=_0x4ce716['plugins']['get']('RestrictedEditingModeEditing');_0x3529bd['enableCommand']('trackChanges'),_0x3529bd['enableCommand']('acceptSuggestion'),_0x3529bd['enableCommand']('discardSuggestion'),_0x3529bd['enableCommand']('acceptAllSuggestions'),_0x3529bd['enableCommand']('discardAllSuggestions'),_0x3529bd['enableCommand']('acceptSelectedSuggestions'),_0x3529bd['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x588311{['afterInit'](){const _0x385376=this['editor'];if(!_0x385376['plugins']['has']('ShiftEnter'))return;const _0x84d735=_0x385376['plugins']['get']('TrackChangesEditing');_0x84d735['enableCommand']('shiftEnter'),_0x385376['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x385376),{'priority':'high'}),_0x385376['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x385376),{'priority':'high'}),_0x385376['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x41fc2e,_0x3962af,_0x30d477)=>{_0x30d477['options']['showSuggestionHighlights']&&je(_0x385376,{'showActiveMarker':!0x1})(_0x41fc2e,_0x3962af,_0x30d477);}),_0x84d735['descriptionFactory']['registerElementLabel']('softBreak',_0x2f3697=>o(_0x385376['locale'],'ELEMENT_LINE_BREAK',_0x2f3697));}}function je(_0x2089fb,{showActiveMarker:_0x3b7acb=!0x0}={}){return(_0x3d9ea8,_0x4bee37,_0x40484d)=>{const _0xda6a89=_0x2089fb['plugins']['get']('TrackChangesEditing');if(!_0x40484d['consumable']['test'](_0x4bee37['markerRange'],_0x3d9ea8['name']))return;const _0x292ed0=_0x2089fb['model'];for(const _0x2a4907 of _0x4bee37['markerRange']['getItems']()){if(!_0x2a4907['is']('element','softBreak'))continue;const _0x132cb9='deletion'==_0x4bee37['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1ab1a8,authorId:_0x5a2a43}=_0xda6a89['_splitMarkerName'](_0x4bee37['markerName']),_0x764215=_0x40484d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x132cb9,'data-suggestion':_0x1ab1a8,'data-author-id':_0x5a2a43}),_0x2f1bca=_0x40484d['mapper']['toViewPosition'](_0x292ed0['createPositionBefore'](_0x2a4907));_0x3b7acb&&_0xda6a89['activeMarkers']['includes'](_0x4bee37['markerName'])&&_0x40484d['writer']['addClass']('ck-suggestion-marker--active',_0x764215),_0x40484d['writer']['insert'](_0x2f1bca,_0x764215),_0x40484d['mapper']['bindElementToMarker'](_0x764215,_0x4bee37['markerName']);}};}class St extends _0x588311{['afterInit'](){const _0x5bcd23=this['editor'],_0x4cb3f5=_0x5bcd23['model'],_0x41a69e=_0x5bcd23['locale'];if(!_0x5bcd23['plugins']['has']('StandardEditingModeEditing'))return;const _0x2be4a1=_0x5bcd23['plugins']['get']('TrackChangesEditing'),_0x56f9f5='restrictedEditingException',_0x4be94f=_0x5bcd23['commands']['get'](_0x56f9f5);_0x2be4a1['enableCommand'](_0x56f9f5,(_0x4b6b80,_0x40e6b7={})=>{const _0x22bd0e=_0x4cb3f5['document']['selection'];if(_0x22bd0e['isCollapsed'])return void _0x4b6b80(_0x40e6b7);const _0x441571=void 0x0!==_0x40e6b7['forceValue']?_0x40e6b7['forceValue']:!_0x4be94f['value'];_0x4cb3f5['change'](()=>{const _0x4c91c3=Array['from'](_0x22bd0e['getRanges']());for(const _0x45642e of _0x4c91c3){const _0x5a6bae=_0x441571?[_0x45642e]:io(_0x56f9f5,_0x45642e,_0x4cb3f5);for(const _0xf3fb38 of _0x5a6bae)_0x2be4a1['markInlineFormat'](_0xf3fb38,{'commandName':_0x56f9f5,'commandParams':[{'forceValue':_0x441571}]});}});}),_0x2be4a1['descriptionFactory']['registerDescriptionCallback'](_0x5bdd7c=>{if('formatBlock'!=_0x5bdd7c['type']&&'formatInline'!=_0x5bdd7c['type'])return;const {data:_0xfd2c73}=_0x5bdd7c;return _0xfd2c73&&_0xfd2c73['commandName']==_0x56f9f5?_0xfd2c73['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41a69e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x41a69e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x588311{['afterInit'](){const _0x24cddc=this['editor'];if(!_0x24cddc['plugins']['has']('Style')||!_0x24cddc['plugins']['has']('DataSchema'))return;const _0x4d52eb=_0x24cddc['plugins']['get']('TrackChangesEditing'),_0x5bb809=_0x24cddc['locale'],_0x39fb93=_0x24cddc['config']['get']('style')||{},_0x4c2486=_0x24cddc['plugins']['get']('GeneralHtmlSupport'),_0x2164ca=_0x24cddc['plugins']['get']('StyleUtils')['normalizeConfig'](_0x24cddc['plugins']['get']('DataSchema'),_0x39fb93['definitions']);_0x4d52eb['enableDefaultAttributesIntegration']('style');const _0x534dac=new Set();for(const _0x11d202 of _0x2164ca['block']){const _0x6211f1=_0x4c2486['getGhsAttributeNameForElement'](_0x11d202['element']);_0x534dac['add'](_0x6211f1);}const _0x2512b8=new Set();for(const _0x351688 of _0x2164ca['inline']){const _0x1321be=_0x4c2486['getGhsAttributeNameForElement'](_0x351688['element']);_0x2512b8['add'](_0x1321be);for(const _0x18bf88 of _0x351688['ghsAttributes'])_0x2512b8['add'](_0x18bf88);}for(const _0x2aeb52 of _0x534dac)_0x4d52eb['registerBlockAttribute'](_0x2aeb52),_0x4d52eb['descriptionFactory']['registerAttributeLabel'](_0x2aeb52,o(_0x5bb809,'FORMAT_STYLE'));for(const _0xdb33f of _0x2512b8)_0x4d52eb['registerInlineAttribute'](_0xdb33f),_0x4d52eb['descriptionFactory']['registerAttributeLabel'](_0xdb33f,o(_0x5bb809,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x290a2e=this['editor'],_0x18ae09=_0x290a2e['locale'];_0x290a2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20b8f0=>{if('formatBlock'!=_0x20b8f0['type']&&'formatInline'!=_0x20b8f0['type'])return;const {data:_0x2f0b52}=_0x20b8f0;return _0x2f0b52&&'style'===_0x2f0b52['commandName']?_0x2f0b52['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x18ae09,'*Set\x20format:*\x20%0',_0x2f0b52['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x18ae09,'*Remove\x20format:*\x20%0',_0x2f0b52['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x588311{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4cba6f){super(_0x4cba6f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x318f48=this['editor'],_0x4e24cc=_0x318f48['model']['document']['selection'];if(!_0x318f48['plugins']['has']('TableEditing'))return;const _0x130584=_0x318f48['locale'],_0x508b2f=_0x318f48['plugins']['get']('TrackChangesEditing'),_0x3c20fe=_0x318f48['plugins']['get']('TableUtils');_0x508b2f['descriptionFactory']['registerElementLabel']('table',_0x5eb4a9=>o(_0x130584,'ELEMENT_TABLE',_0x5eb4a9)),this['_setupColumnsRowsFixing'](),_0x508b2f['enableCommand']('insertTable'),_0x508b2f['enableCommand']('selectTableRow'),_0x508b2f['enableCommand']('selectTableColumn');for(const _0x3c7dc3 of['insertTableRowAbove','insertTableRowBelow']){const _0x2007c9=_0x318f48['commands']['get'](_0x3c7dc3);_0x508b2f['enableCommand'](_0x3c7dc3,_0x34bb2b=>{_0x318f48['model']['change'](_0x1c5816=>{_0x34bb2b();const _0x3fb531='above'===_0x2007c9['order'],_0x1f4a84=_0x3c20fe['getSelectionAffectedTableCells'](_0x4e24cc),_0x4de842=_0x3c20fe['getRowIndexes'](_0x1f4a84),_0x431758=_0x3fb531?_0x4de842['first']-0x1:_0x4de842['last']+0x1,_0x53efb2=_0x1f4a84[0x0]['findAncestor']('table'),_0x58b9ab=_0x3c20fe['createTableWalker'](_0x53efb2,{'startRow':_0x431758,'endRow':_0x431758}),_0x19fb44=Array['from'](_0x58b9ab)['map'](_0x5aa457=>_0x1c5816['createRangeOn'](_0x5aa457['cell']));_0x508b2f['markMultiRangeInsertion'](_0x19fb44,'tableRow');});});}for(const _0x3f73bd of['insertTableColumnLeft','insertTableColumnRight']){const _0x20eaea=_0x318f48['commands']['get'](_0x3f73bd);_0x508b2f['enableCommand'](_0x3f73bd,_0x607db7=>{_0x318f48['model']['change'](_0x88dfe5=>{_0x607db7();const _0x1e5f85='left'===_0x20eaea['order'],_0x1ec6a0=_0x3c20fe['getSelectionAffectedTableCells'](_0x4e24cc),_0x30e8fa=_0x3c20fe['getColumnIndexes'](_0x1ec6a0),_0x22f1e7=_0x1e5f85?_0x30e8fa['first']-0x1:_0x30e8fa['last']+0x1,_0x20b2e7=_0x1ec6a0[0x0]['findAncestor']('table'),_0x4e4ff5=_0x3c20fe['createTableWalker'](_0x20b2e7,{'startRow':0x0,'column':_0x22f1e7,'includeAllSlots':!0x1}),_0x4e29f5=Array['from'](_0x4e4ff5)['map'](_0x18431d=>_0x88dfe5['createRangeOn'](_0x18431d['cell']));_0x508b2f['markMultiRangeInsertion'](_0x4e29f5,'tableColumn');});});}for(const _0x5b74f2 of['removeTableRow','removeTableColumn']){const _0x17c679=_0x5b74f2['substr'](0xb),_0xbd5565=_0x17c679['toLowerCase'](),_0x221813=_0xbd5565['substr'](0x0,0x3)+'span',_0x4b7426='table'+_0x17c679,_0x3d6117='min'+_0x17c679,_0x231d6a='max'+_0x17c679;_0x508b2f['enableCommand'](_0x5b74f2,()=>{_0x318f48['model']['change'](_0x5a86ff=>{const _0x4eaff5=_0x3c20fe['getSelectionAffectedTableCells'](_0x4e24cc),_0x129bd0=_0x4eaff5[0x0]['findAncestor']('table');let _0x23347f;if('removeTableRow'==_0x5b74f2){const _0x3534ca=_0x3c20fe['getRowIndexes'](_0x4eaff5);_0x23347f={'startRow':_0x3534ca['first'],'endRow':_0x3534ca['last'],'includeAllSlots':!0x0};}else{const _0xc8a41c=_0x3c20fe['getColumnIndexes'](_0x4eaff5);_0x23347f={'startColumn':_0xc8a41c['first'],'endColumn':_0xc8a41c['last'],'includeAllSlots':!0x0};}const _0x4c72d5=_0x3c20fe['createTableWalker'](_0x129bd0,_0x23347f),_0x3f26c4=Array['from'](_0x4c72d5)['map'](({cell:_0x177b06})=>_0x177b06),_0x22bcfc=Ne(_0x3f26c4['filter'](_0x4a00e7=>_0x4a00e7['hasAttribute'](_0x221813))),_0x15cf87=Ne(_0x3f26c4['filter'](_0x5bb27d=>!_0x5bb27d['hasAttribute'](_0x221813)))['map'](_0x210bfc=>_0x5a86ff['createRangeOn'](_0x210bfc)),_0xbc97ab=_0x508b2f['markMultiRangeDeletion'](_0x15cf87,_0x4b7426);if(_0xbc97ab&&('tableRow'==_0xbc97ab['subType']||'tableColumn'==_0xbc97ab['subType'])){const _0x1bd9b3=this['_getSuggestionCoords'](_0xbc97ab);for(const _0x3d9d76 of _0x22bcfc){const _0x416fb3=_0x5a86ff['createRangeOn'](_0x3d9d76),_0x5ea0bf=_0x3c20fe['getCellLocation'](_0x3d9d76),_0x3aefbf=_0x3d9d76['getAttribute'](_0x221813)-0x1,_0x502cb7=_0x1bd9b3[_0x3d6117],_0x53ff7e=_0x1bd9b3[_0x231d6a];_0x502cb7<=_0x5ea0bf[_0xbd5565]&&_0x5ea0bf[_0xbd5565]+_0x3aefbf<=_0x53ff7e&&_0xbc97ab['addRange'](_0x416fb3);}}});});}function _0x54348a(_0x51c2e9){const _0x2d33d7=Array['from'](_0x4e24cc['getRanges']())['map'](_0x1e61a8=>_0x153d61['fromRange'](_0x1e61a8));_0x318f48['model']['change'](_0x18b840=>{const _0x239eb3=_0x18b840['batch'];_0x51c2e9=_0x51c2e9['filter'](_0x2a7f75=>'$graveyard'!=_0x2a7f75['root']['rootName']),_0x18b840['setSelection'](_0x51c2e9),_0x318f48['commands']['get']('removeTableRow')['refresh'](),_0x318f48['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x318f48['model']['enqueueChange'](()=>{_0x318f48['model']['enqueueChange'](_0x239eb3,_0x44e34e=>{const _0x289a70=_0x2d33d7['filter'](_0x10a328=>'$graveyard'!=_0x10a328['root']['rootName']);_0x289a70['length']>0x0&&_0x44e34e['setSelection'](_0x289a70);for(const _0x75529a of _0x2d33d7)_0x75529a['detach']();});});});}function _0x34bbb7(_0xb5b09f){_0x318f48['model']['change'](_0x6f0551=>{const _0x28eca2=Array['from'](_0x4e24cc['getRanges']())['map'](_0x41866a=>_0x153d61['fromRange'](_0x41866a)),_0x1c66b8=[];for(const _0x16e7a7 of _0xb5b09f)for(const _0x3950b9 of _0x16e7a7['getItems']({'shallow':!0x0}))_0x1c66b8['push'](_0x3950b9);for(const _0x3de576 of _0x1c66b8)'$graveyard'!=_0x3de576['root']['rootName']&&(_0x6f0551['setSelection'](_0x6f0551['createPositionAt'](_0x3de576,0x0)),_0x318f48['commands']['get']('removeTableColumn')['refresh'](),_0x318f48['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x648080=_0x28eca2['filter'](_0x395c68=>'$graveyard'!=_0x395c68['root']['rootName']);_0x648080['length']>0x0&&_0x6f0551['setSelection'](_0x648080);for(const _0x494a33 of _0x28eca2)_0x494a33['detach']();});}function _0x3efcc9(_0x13d517,_0x2a5d58){return _0x2a5d58['every'](_0x1ad086=>_0x13d517['some'](_0x266c73=>_0x266c73['end']['isEqual'](_0x1ad086['start'])||_0x1ad086['end']['isEqual'](_0x266c73['start'])));}function _0x4e2c46(_0x4aa54a,_0x1498e2){return!_0x4aa54a['some'](_0x2bf391=>_0x1498e2['some'](_0x86af2e=>_0x2bf391['isIntersecting'](_0x86af2e)))&&_0x4aa54a['some'](_0x9564db=>_0x1498e2['some'](_0x473dd4=>_0x9564db['end']['isTouching'](_0x473dd4['start'])));}_0x318f48['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xab8fb2,_0x505091,_0x4be7a6)=>{if(!_0x4be7a6['options']['showSuggestionHighlights'])return;const _0x392332=_0x505091['item'];if(!_0x392332||!_0x392332['is']('element','tableCell'))return;const _0x1c769b=_0x4be7a6['mapper']['toViewElement'](_0x392332);if(_0x1c769b){const {id:_0x34e94d,authorId:_0x5cab9b}=_0x508b2f['_splitMarkerName'](_0x505091['markerName']);_0x6a6e00(_0x1c769b,_0x4be7a6['writer'],(_0x46095f,_0xe7c20,_0x549e1e)=>{_0x549e1e['addClass'](_0x4de00e(_0xe7c20['classes']),_0x46095f),_0x549e1e['setAttribute']('data-suggestion-id',_0x34e94d,_0x46095f),_0x549e1e['setAttribute']('data-author-id',_0x5cab9b,_0x46095f);},(_0xd0ce0e,_0x166a8f,_0x19375d)=>{_0x19375d['removeClass'](_0x4de00e(_0x166a8f['classes']),_0xd0ce0e),_0x19375d['removeAttribute']('data-suggestion-id',_0xd0ce0e),_0x19375d['removeAttribute']('data-author-id',_0xd0ce0e);});}},{'priority':'highest'}),_0x508b2f['descriptionFactory']['registerDescriptionCallback'](_0x5596d9=>{if('insertion'!=_0x5596d9['type']&&'deletion'!=_0x5596d9['type'])return;const _0x2769c7=_0x5596d9['getContainedElement']();if(null!=_0x2769c7&&_0x2769c7['is']('element','table')){if('insertion'==_0x5596d9['type']){const _0x5a4c9e=_0x5596d9['getItems']()['filter'](_0x34e4b0=>_0x34e4b0['is']('$textProxy'))['map'](_0x5b3c78=>_0x5b3c78['data']);if(_0x5a4c9e['length'])return{'type':'insertion','content':o(_0x130584,'*Insert:*\x20%0',o(_0x130584,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5a4c9e['join']('\x20')+'\x22'))};}if('deletion'==_0x5596d9['type']){const _0x8dd882=_0x5596d9['getItems']()['filter'](_0x345f62=>_0x345f62['is']('$textProxy'))['map'](_0x25985d=>_0x25985d['data']);if(_0x8dd882['length'])return{'type':'deletion','content':o(_0x130584,'*Remove:*\x20%0',o(_0x130584,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x8dd882['join']('\x20')+'\x22'))};}}}),_0x508b2f['descriptionFactory']['registerDescriptionCallback'](_0x373464=>{if('tableRow'==_0x373464['subType']){const _0x1f3218=_0x373464['getItems']()['filter'](_0x1205d2=>_0x1205d2['is']('$textProxy'))['map'](_0x1d9b84=>_0x1d9b84['data']),_0x22c01e=this['_getSuggestionCoords'](_0x373464),_0x190111=_0x22c01e['maxRow']-_0x22c01e['minRow']+0x1;if('insertion'==_0x373464['type'])return _0x1f3218['length']?{'type':'insertion','content':o(_0x130584,'*Insert:*\x20%0',o(_0x130584,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x190111,'\x22'+_0x1f3218['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x130584,'*Insert:*\x20%0',o(_0x130584,'ELEMENT_TABLE_ROW',_0x190111))};if('deletion'==_0x373464['type'])return _0x1f3218['length']?{'type':'deletion','content':o(_0x130584,'*Remove:*\x20%0',o(_0x130584,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x190111,'\x22'+_0x1f3218['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x130584,'*Remove:*\x20%0',o(_0x130584,'ELEMENT_TABLE_ROW',_0x190111))};}if('tableColumn'==_0x373464['subType']){const _0xa422ce=_0x373464['getItems']()['filter'](_0x310bb0=>_0x310bb0['is']('$textProxy'))['map'](_0x242199=>_0x242199['data']),_0x2376ab=this['_getSuggestionCoords'](_0x373464),_0x32b2d8=_0x2376ab['maxColumn']-_0x2376ab['minColumn']+0x1;if('insertion'==_0x373464['type'])return _0xa422ce['length']?{'type':'insertion','content':o(_0x130584,'*Insert:*\x20%0',o(_0x130584,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x32b2d8,'\x22'+_0xa422ce['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x130584,'*Insert:*\x20%0',o(_0x130584,'ELEMENT_TABLE_COLUMN',_0x32b2d8))};if('deletion'==_0x373464['type'])return _0xa422ce['length']?{'type':'deletion','content':o(_0x130584,'*Remove:*\x20%0',o(_0x130584,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x32b2d8,'\x22'+_0xa422ce['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x130584,'*Remove:*\x20%0',o(_0x130584,'ELEMENT_TABLE_COLUMN',_0x32b2d8))};}}),_0x508b2f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x54348a),_0x508b2f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x54348a),_0x508b2f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x34bbb7),_0x508b2f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x34bbb7),_0x508b2f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3efcc9),_0x508b2f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3efcc9),_0x508b2f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4e2c46),_0x508b2f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4e2c46);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2a9a1a=this['editor'],_0x27fe35=_0x2a9a1a['model']['document']['selection'];return(_0x463a76,_0x239eba)=>{_0x2a9a1a['model']['change'](_0xc34855=>{const {commandName:_0x2e7211,commandParams:_0x516f35}=_0x239eba;let _0x57a5df=_0x463a76[0x0]['end']['nodeBefore'];_0x516f35&&_0x516f35[0x0]&&!0x1===_0x516f35[0x0]['forceValue']&&(_0x57a5df=_0x463a76[0x0]['start']['nodeAfter']);const _0x40ace7=_0xc34855['createRangeIn'](_0x57a5df);if('$graveyard'==_0x40ace7['root']['rootName'])return;const _0x4052f1=Array['from'](_0x27fe35['getRanges']())['map'](_0x2abcbf=>_0x153d61['fromRange'](_0x2abcbf));_0xc34855['setSelection'](_0x40ace7),_0x2a9a1a['commands']['get'](_0x2e7211)['refresh'](),_0x516f35['push']({'forceDefaultExecution':!0x0}),_0x2a9a1a['execute'](_0x2e7211,..._0x516f35);const _0x4378d5=_0x4052f1['filter'](_0x162ba1=>'$graveyard'!=_0x162ba1['root']['rootName']);_0x4378d5['length']>0x0&&_0xc34855['setSelection'](_0x4378d5);for(const _0x1fd071 of _0x4052f1)_0x1fd071['detach']();});};}['_getCoordsForCells'](_0x16b267){const _0x27df33=this['editor']['plugins']['get']('TableUtils');let _0x421f2c=Number['MAX_SAFE_INTEGER'],_0x5c39b7=Number['MIN_SAFE_INTEGER'],_0x59b541=Number['MAX_SAFE_INTEGER'],_0x487e7c=Number['MIN_SAFE_INTEGER'];for(const _0x48c796 of _0x16b267){if('$graveyard'==_0x48c796['root']['rootName'])continue;const {row:_0xd716fa,column:_0x1269ae}=_0x27df33['getCellLocation'](_0x48c796),_0x30e9ad=_0x48c796['hasAttribute']('rowspan')?_0x48c796['getAttribute']('rowspan')-0x1:0x0,_0x2c40ed=_0x48c796['hasAttribute']('colspan')?_0x48c796['getAttribute']('colspan')-0x1:0x0;_0x421f2c=_0xd716fa<_0x421f2c?_0xd716fa:_0x421f2c,_0x5c39b7=_0xd716fa+_0x30e9ad>_0x5c39b7?_0xd716fa+_0x30e9ad:_0x5c39b7,_0x59b541=_0x1269ae<_0x59b541?_0x1269ae:_0x59b541,_0x487e7c=_0x1269ae+_0x2c40ed>_0x487e7c?_0x1269ae+_0x2c40ed:_0x487e7c;}return{'minRow':_0x421f2c,'maxRow':_0x5c39b7,'minColumn':_0x59b541,'maxColumn':_0x487e7c};}['_setupColumnsRowsFixing'](){const _0xb2da68=this['editor'],_0x80f3f8=_0xb2da68['plugins']['get']('TrackChangesEditing'),_0x55aaf1=_0xb2da68['plugins']['get']('TableUtils');_0xb2da68['model']['document']['on']('change:data',()=>{const _0x18c4c4=Array['from'](_0xb2da68['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x456980,data:_0x10b8a7}of _0x18c4c4){const {group:_0x47470c,id:_0x34f1b7,subType:_0x4ea14a}=_0x80f3f8['_splitMarkerName'](_0x456980);if('suggestion'!=_0x47470c)continue;if(null!=_0x10b8a7['oldRange'])continue;const _0x44cf76=_0x80f3f8['getSuggestion'](_0x34f1b7);this['_tablePostFixingSubtypes']['includes'](_0x4ea14a)&&this['_tableSuggestions']['add'](_0x44cf76);}},{'priority':'low'});const _0x3f920b=(_0x5928c9,_0x21c152)=>{let _0x25dd86=!0x1;const _0x330a80=_0x21c152['createRangeOn'](_0x5928c9),_0x575f80=_0x5928c9['findAncestor']('table'),_0x581a0a=_0x55aaf1['getCellLocation'](_0x5928c9);for(const _0x439af9 of this['_tableSuggestions']){const _0x3dc204=_0x439af9['subType'],_0x39a7c3=_0x3dc204['startsWith']('tablePaste'),_0x342863=_0x3dc204['substr'](_0x39a7c3?0xa:0x5),_0x4ccea2=_0x342863['toLowerCase'](),_0x564f01=_0x4ccea2['substr'](0x0,0x3)+'span',_0x571aaa='min'+_0x342863,_0x2d7dc7='max'+_0x342863;if(!_0x439af9['isInContent'])continue;if(_0x575f80!=_0x439af9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x439af9['isIntersectingWithRange'](_0x330a80))continue;const _0x3c6e6b=_0x5928c9['hasAttribute'](_0x564f01)?_0x5928c9['getAttribute'](_0x564f01)-0x1:0x0,_0x49e6d3=this['_getSuggestionCoords'](_0x439af9),_0x246a1b=_0x49e6d3[_0x571aaa],_0x55b79a=_0x49e6d3[_0x2d7dc7];_0x246a1b<=_0x581a0a[_0x4ccea2]&&_0x581a0a[_0x4ccea2]+_0x3c6e6b<=_0x55b79a&&(_0x439af9['addRange'](_0x330a80),_0x25dd86=!0x0);}return _0x25dd86;};_0xb2da68['model']['document']['registerPostFixer'](_0x37d3f6=>{let _0x141e6a=!0x1;for(const _0x31094a of _0xb2da68['model']['document']['differ']['getChanges']())if('insert'==_0x31094a['type']){if('tableRow'==_0x31094a['name']){for(const _0x4c4ac9 of _0x31094a['position']['nodeAfter']['getChildren']())_0x141e6a=_0x141e6a||_0x3f920b(_0x4c4ac9,_0x37d3f6);}else'tableCell'==_0x31094a['name']&&(_0x141e6a=_0x141e6a||_0x3f920b(_0x31094a['position']['nodeAfter'],_0x37d3f6));}return _0x141e6a;});}['_getSuggestionCoords'](_0x3c6db5){return this['_getCoordsForCells'](_0x3c6db5['getRanges']()['map'](_0x287993=>_0x287993['start']['nodeAfter']));}}function Ne(_0xfa7b29){return Array['from'](new Set(_0xfa7b29)['values']());}class _t extends _0x588311{static get['requires'](){return[At];}['afterInit'](){const _0x4e080b=this['editor'],_0x3b52ce=_0x4e080b['model']['document']['selection'],_0x14ce8f=_0x4e080b['locale'];if(!_0x4e080b['plugins']['has']('TableEditing'))return;const _0x3b2e09=_0x4e080b['plugins']['get']('TrackChangesEditing'),_0x5e8086=_0x4e080b['plugins']['get']('TableUtils'),_0x5c7629=_0x4e080b['plugins']['get'](At);_0x5c7629['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3b2e09['enableCommand']('mergeTableCells',()=>{const _0x5b793f=_0x5e8086['getSelectionAffectedTableCells'](_0x4e080b['model']['document']['selection']);_0x4e080b['model']['change'](()=>{_0x3b2e09['markMultiRangeBlockFormat'](_0x5b793f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4e080b['commands']['get']('mergeTableCells')['on']('execute',(_0x5439b6,_0x2f6f7d)=>{_0x4e080b['commands']['get']('trackChanges')['value']&&(_0x2f6f7d['length']>0x0&&_0x2f6f7d[_0x2f6f7d['length']-0x1]&&_0x2f6f7d[_0x2f6f7d['length']-0x1]['forceDefaultExecution']||_0x3b2e09['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5439b6['stop']());},{'priority':'highest'});for(const _0x46b07e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x107f3b=_0x4e080b['commands']['get'](_0x46b07e);_0x3b2e09['enableCommand'](_0x46b07e,()=>{const _0x4220c7=_0x4e080b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3796c0=>_0x3796c0['is']('element','tableCell')),_0xb90991=_0x107f3b['value'];_0x4e080b['model']['change'](()=>{_0x3b2e09['markMultiRangeBlockFormat']([_0x4220c7,_0xb90991],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x57819b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5c77e4=_0x4e080b['commands']['get'](_0x57819b);_0x3b2e09['enableCommand'](_0x57819b,()=>{const _0x3ec280=_0x5e8086['getSelectionAffectedTableCells'](_0x4e080b['model']['document']['selection'])[0x0],_0x26b85a=_0x3ec280['findAncestor']('table'),{column:_0x5b37af,row:_0xe372de}=_0x5e8086['getCellLocation'](_0x3ec280);let _0x56eb3c=[];if('horizontally'==_0x5c77e4['direction']){const _0x55074f=_0x5e8086['createTableWalker'](_0x26b85a,{'startRow':_0xe372de,'endRow':_0xe372de,'includeAllSlots':!0x0});_0x56eb3c=Array['from'](_0x55074f)['map'](_0x59681a=>_0x59681a['cell']);}else{const _0x4a080f=_0x5e8086['createTableWalker'](_0x26b85a,{'column':_0x5b37af,'includeAllSlots':!0x0});_0x56eb3c=Array['from'](_0x4a080f)['map'](_0x1a819b=>_0x1a819b['cell']);}_0x4e080b['model']['change'](_0x1c9eb6=>{_0x3b2e09['markBlockFormat'](_0x1c9eb6['createRangeOn'](_0x3ec280),{'commandName':_0x57819b,'commandParams':[]},_0x56eb3c,_0x57819b);});});}_0x3b2e09['descriptionFactory']['registerDescriptionCallback'](_0x12b59f=>{if('formatBlock'!=_0x12b59f['type']&&'formatInline'!=_0x12b59f['type'])return;const {data:_0x5a1f9c}=_0x12b59f;return _0x5a1f9c&&'mergeTableCells'==_0x5a1f9c['commandName']?{'type':'format','content':o(_0x14ce8f,'*Merge\x20cells*')}:void 0x0;}),_0x3b2e09['descriptionFactory']['registerDescriptionCallback'](_0x393709=>{if('formatBlock'!=_0x393709['type']&&'formatInline'!=_0x393709['type'])return;const {data:_0x55511a}=_0x393709;return _0x55511a?'splitTableCellVertically'==_0x55511a['commandName']?{'type':'format','content':o(_0x14ce8f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x55511a['commandName']?{'type':'format','content':o(_0x14ce8f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x381aac=_0x5c7629['_acceptFormatSuggestionCallbackFactory']();for(const _0x252e6e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3b2e09['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x252e6e,'accept',_0x381aac);for(const _0x3d727f of['splitTableCellVertically','splitTableCellHorizontally'])_0x3b2e09['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d727f,'accept',_0x381aac);_0x3b2e09['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1fb29b=>{_0x4e080b['model']['change'](_0x24b857=>{const _0x45d16d=Array['from'](_0x3b52ce['getRanges']())['map'](_0x2b633e=>_0x153d61['fromRange'](_0x2b633e));_0x24b857['setSelection'](_0x1fb29b),_0x4e080b['commands']['get']('mergeTableCells')['refresh'](),_0x4e080b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3f8bc8=_0x45d16d['filter'](_0x4a4dcd=>'$graveyard'!=_0x4a4dcd['root']['rootName']);_0x3f8bc8['length']>0x0&&_0x24b857['setSelection'](_0x3f8bc8);for(const _0x34786f of _0x45d16d)_0x34786f['detach']();});});for(const _0xea1b5c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x429f84=_0x4e080b['commands']['get'](_0xea1b5c);_0x429f84['on']('set:isEnabled',(_0x22058a,_0x31794a,_0x485f0b)=>{if(_0x485f0b){const _0xed5f26=_0x4e080b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1282d1=>_0x1282d1['is']('element','tableCell'));this['_areMergableCells'](_0x429f84['value'],_0xed5f26)||(_0x22058a['return']=!0x1,_0x22058a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x43e7c4=this['editor']['commands']['get']('mergeTableCells'),_0x6788af=this['editor']['plugins']['get']('TableUtils');if(!_0x43e7c4['isEnabled'])return!0x1;const _0x247085=_0x6788af['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2f84de of _0x247085)for(const _0x398f54 of _0x247085)if(_0x2f84de!=_0x398f54&&!this['_areMergableCells'](_0x2f84de,_0x398f54))return!0x1;return!0x0;}['_areMergableCells'](_0x18669a,_0x43eeec){const _0x114c67=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25161c=this['editor']['model']['createRangeOn'](_0x18669a),_0x1b61c5=this['editor']['model']['createRangeOn'](_0x43eeec),_0x5df550=new Set(),_0x4a13ba=new Set();for(const _0x560d8d of _0x114c67['getSuggestions']())if(('insertion'==_0x560d8d['type']||'deletion'==_0x560d8d['type']||'mergeTableCells'==_0x560d8d['subType'])&&_0x560d8d['isInContent']){for(const _0x4e321a of _0x560d8d['getRanges']())_0x4e321a['containsRange'](_0x25161c,!0x0)&&_0x5df550['add'](_0x560d8d['type']+':'+_0x560d8d['author']['id']),_0x4e321a['containsRange'](_0x1b61c5,!0x0)&&_0x4a13ba['add'](_0x560d8d['type']+':'+_0x560d8d['author']['id']);}if(_0x5df550['size']!=_0x4a13ba['size'])return!0x1;for(const _0x1da7b2 of _0x5df550)if(!_0x4a13ba['has'](_0x1da7b2))return!0x1;return!0x0;}}class Ct extends _0x588311{static get['requires'](){return[At];}['afterInit'](){const _0x503a44=this['editor'];if(!_0x503a44['plugins']['has']('TableEditing'))return;const _0x15ba33=_0x503a44['locale'],_0x2226ef=_0x503a44['plugins']['get']('TrackChangesEditing');_0x2226ef['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2226ef['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2226ef['registerBlockAttribute']('headingRows'),_0x2226ef['registerBlockAttribute']('headingColumns'),_0x2226ef['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x15ba33,'FORMAT_HEADER_ROW')),_0x2226ef['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x15ba33,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4ebc7c=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa2157c=this['editor']['plugins']['get']('TableUtils'),_0x1c96ba=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x2a7cc4({showActiveMarker:_0x3b7b76=!0x0,setDataAttribute:_0x3a401f=!0x0}={}){return(_0x4e72d4,_0x270ec8,_0x195fdc)=>{const {type:_0x3ba682,id:_0x4d9209}=_0x4ebc7c['_splitMarkerName'](_0x270ec8['markerName']),_0x493284=_0x4ebc7c['getSuggestion'](_0x4d9209),_0x6a3e0f=_0x493284['data'];if('formatBlock'!=_0x493284['type']||!_0x6a3e0f||'setTableColumnHeader'!=_0x6a3e0f['commandName'])return;if(_0x270ec8['item'])return void _0x4e72d4['stop']();if(!_0x195fdc['consumable']['consume'](_0x270ec8['markerRange'],_0x4e72d4['name']))return;const _0x2d14be=_0x270ec8['markerRange']['start']['nodeAfter'],_0x18d011=_0x270ec8['markerRange']['end']['nodeBefore'],_0x4e1822=_0x2d14be['parent']['parent'],{column:_0x1c2e26}=_0xa2157c['getCellLocation'](_0x2d14be),{column:_0x418d5d}=_0xa2157c['getCellLocation'](_0x18d011);for(let _0x3832f8=_0x1c2e26;_0x3832f8<=_0x418d5d;_0x3832f8++){const _0x1f69a2=_0xa2157c['createTableWalker'](_0x4e1822,{'column':_0x3832f8,'includeAllSlots':!0x1});for(const _0x1853a1 of _0x1f69a2){const _0x377918=_0x1853a1['cell'],_0x43b59f=_0x195fdc['mapper']['toViewElement'](_0x377918);_0x195fdc['writer']['addClass']('ck-suggestion-marker-'+_0x3ba682,_0x43b59f),_0x3a401f&&_0x195fdc['writer']['setAttribute']('data-suggestion',_0x4d9209,_0x43b59f),_0x195fdc['mapper']['bindElementToMarker'](_0x43b59f,_0x270ec8['markerName']),_0x3b7b76&&(_0x4ebc7c['activeMarkers']['includes'](_0x270ec8['markerName'])?_0x195fdc['writer']['addClass']('ck-suggestion-marker--active',_0x43b59f):_0x195fdc['writer']['removeClass']('ck-suggestion-marker--active',_0x43b59f));}}};}_0x4ebc7c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1c96ba),_0x4ebc7c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1c96ba),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2a7cc4(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3fcc03,_0x56f2b1,_0x57ba94)=>{_0x57ba94['options']['showSuggestionHighlights']&&_0x2a7cc4({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3fcc03,_0x56f2b1,_0x57ba94);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5de50c,_0x4678db,_0x30549b)=>{const {type:_0x1197a5,id:_0x555e21}=_0x4ebc7c['_splitMarkerName'](_0x4678db['markerName']),_0xfecf36=_0x4ebc7c['getSuggestion'](_0x555e21),_0x17549c=_0xfecf36['data'];if('formatBlock'!=_0xfecf36['type']||!_0x17549c||'setTableColumnHeader'!=_0x17549c['commandName'])return;const _0x497686=_0x30549b['mapper']['markerNameToElements'](_0x4678db['markerName']);if(_0x497686){for(const _0x588293 of _0x497686)_0x30549b['writer']['removeClass']('ck-suggestion-marker-'+_0x1197a5,_0x588293),_0x30549b['writer']['removeClass']('ck-suggestion-marker--active',_0x588293),_0x30549b['writer']['removeAttribute']('data-suggestion',_0x588293),_0x30549b['mapper']['unbindElementFromMarkerName'](_0x588293,_0x4678db['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd3363=this['editor'],_0x4d4154=_0xd3363['locale'];function _0x42928c(_0x220a7c){return{'type':'format','content':o(_0x4d4154,'*Format:*\x20%0',_0x220a7c)};}_0xd3363['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1341f3=>{if('formatBlock'!=_0x1341f3['type'])return;const {data:_0x535e60}=_0x1341f3;if(_0x535e60){if('setTableRowHeader'==_0x535e60['commandName']){const _0x3c1b1c=_0x535e60['commandParams'][0x0]['forceValue'];return _0x42928c(o(_0x4d4154,_0x3c1b1c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x535e60['commandName']){const _0x5bfe93=_0x535e60['commandParams'][0x0]['forceValue'];return _0x42928c(o(_0x4d4154,_0x5bfe93?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x588311{['afterInit'](){const _0x4b2787=this['editor'],_0x164fd9=_0x4b2787['locale'],_0x48d9b2=_0x4b2787['plugins']['get']('TrackChangesEditing');function _0x59de11(_0x575e15){return{'type':'format','content':''+o(_0x164fd9,'*Set\x20table\x20type:*\x20%0',_0x575e15)};}_0x4b2787['plugins']['has']('TableLayout')&&(_0x48d9b2['enableCommand']('insertTableLayout'),_0x48d9b2['enableDefaultAttributesIntegration']('tableType'),_0x48d9b2['registerBlockAttribute']('tableType'),_0x48d9b2['descriptionFactory']['registerElementLabel'](_0x55878b=>_0x55878b['is']('element','table')&&'layout'===_0x55878b['getAttribute']('tableType'),_0x333deb=>o(_0x164fd9,'ELEMENT_LAYOUT_TABLE',_0x333deb)),_0x48d9b2['descriptionFactory']['registerDescriptionCallback'](_0x169d07=>{const {data:_0x500ca9}=_0x169d07;if(_0x500ca9&&'tableType'==_0x500ca9['key'])switch(_0x500ca9['newValue']){case'layout':return _0x59de11(o(_0x164fd9,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x59de11(o(_0x164fd9,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x180114=>[_0x180114,null]));class Nt extends _0x588311{static get['requires'](){return[At];}['afterInit'](){const _0x96c8f5=this['editor'];if(!_0x96c8f5['plugins']['has']('TableClipboard'))return;const _0x1a1407=_0x96c8f5['plugins']['get']('TrackChangesEditing'),_0x2a4554=_0x96c8f5['plugins']['get']('TableUtils'),_0x48082f=_0x96c8f5['plugins']['get'](At),_0x276b44=_0x96c8f5['plugins']['get']('TableClipboard'),_0x18936b=_0x96c8f5['plugins']['get']('TableSelection'),_0x15a676=_0x96c8f5['plugins']['get'](_0x13a6a5);_0x48082f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x96c8f5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x96c8f5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3730c0=null,_0x35e5ec=!0x1;_0x15a676['on']('contentInsertion',(_0x1fa51d,_0x337b7)=>{_0x35e5ec='paste'===_0x337b7['method'];}),_0x96c8f5['model']['on']('insertContent',(_0x56279c,_0xbe6a59)=>{if(!_0x35e5ec&&null===_0x18936b['getSelectedTableCells']())return;const [_0x1a33b1,_0x463d45]=_0xbe6a59,_0x3b67f9=_0xbe6a59[_0xbe6a59['length']-0x1];_0x3b67f9&&_0x3b67f9['forceDefaultExecution']||_0x1a1407['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4b7562,_0x49251a,_0x42e6a3,_0x323ca8,_0x517525){if(_0x49251a&&!_0x49251a['is']('documentSelection'))return!0x1;const _0x41d501=_0x517525['getTableIfOnlyTableInContent'](_0x4b7562,_0x42e6a3);if(!_0x41d501||!Ue(_0x41d501,void 0x0,_0x323ca8))return!0x1;const _0x9080d3=_0x323ca8['getSelectionAffectedTableCells'](_0x42e6a3['document']['selection']);if(!_0x9080d3['length'])return!0x1;const _0x5a7f40=_0x9080d3[0x0]['findAncestor']('table'),_0x2afb9b=_0x323ca8['getRowIndexes'](_0x9080d3),_0xa38c70=_0x323ca8['getColumnIndexes'](_0x9080d3),_0x5c68ea={'startRow':_0x2afb9b['first'],'endRow':_0x2afb9b['last'],'startColumn':_0xa38c70['first'],'endColumn':_0xa38c70['last']};return 0x1==_0x9080d3['length']&&(_0x5c68ea['endRow']+=_0x323ca8['getRows'](_0x41d501)-0x1,_0x5c68ea['endColumn']+=_0x323ca8['getColumns'](_0x41d501)-0x1),Ue(_0x5a7f40,_0x5c68ea,_0x323ca8);}(_0x1a33b1,_0x463d45,_0x96c8f5['model'],_0x2a4554,_0x276b44)&&(_0x56279c['stop'](),_0x3730c0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x96c8f5['model']['change'](()=>{_0x96c8f5['model']['insertContent'](_0xbe6a59[0x0],_0xbe6a59[0x1],_0xbe6a59[0x2],{'forceDefaultExecution':!0x0});const _0x4d40b1=_0x58b607(),{rowInsertionRanges:_0x5ba187,columnInsertionRanges:_0x453e02,insertionRanges:_0x3bf597,deletionRanges:_0x687d72,cells:_0x2eb7e5}=_0x3730c0;_0x5ba187['length']&&_0x1a1407['markMultiRangeInsertion'](_0x5ba187,'tablePasteRow',{'tablePasteChainId':_0x4d40b1}),_0x453e02['length']&&_0x1a1407['markMultiRangeInsertion'](_0x453e02,'tablePasteColumn',{'tablePasteChainId':_0x4d40b1}),_0x3bf597['length']&&(_0x1a1407['markMultiRangeInsertion'](_0x3bf597,'tablePaste',{'tablePasteChainId':_0x4d40b1,'skipNestingCheck':!0x0}),_0x3bf597['forEach'](_0x541beb=>_0x541beb['detach']?.())),_0x687d72['length']&&(_0x1a1407['markMultiRangeDeletion'](_0x687d72,'tablePaste',{'tablePasteChainId':_0x4d40b1,'skipNestingCheck':!0x0}),_0x687d72['forEach'](_0x10b0da=>_0x10b0da['detach']?.()));const _0x2af314=_0x1a1407['markMultiRangeBlockFormat'](_0x2eb7e5['map'](({element:_0x5385b8})=>_0x5385b8),{'formatGroupId':_0x58b607()},[],'tablePasteCell',{'tablePasteChainId':_0x4d40b1});if(_0x2af314){const _0x2e03cf=_0x2af314['getMarkers'](),_0x549aa4=[];for(const {element:_0x3b8402,attributes:_0x121dab}of _0x2eb7e5){if(!_0x121dab)continue;const _0x38486e=_0x96c8f5['model']['createRangeOn'](_0x3b8402),_0x1acfa4=_0x2e03cf['find'](_0x238b5c=>_0x238b5c['getRange']()['isEqual'](_0x38486e));_0x1acfa4&&_0x549aa4['push']([_0x1acfa4['name'],_0x121dab]);}_0x549aa4['length']&&_0x2af314['setAttribute']('markerAttributes',Object['fromEntries'](_0x549aa4));}_0x3730c0=null;}));},{'priority':_0x30d56f['high']+0xa}),_0x15a676['on']('contentInsertion',()=>{_0x35e5ec=!0x1;},{'priority':'lowest'}),_0x96c8f5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xd37dfd,_0x570f4d)=>{const [_0x70aebd,_0x39f58f,,_0x85ef9a]=_0x570f4d;if(!_0x3730c0)return;_0xd37dfd['stop']();const _0x58f79f=_0x70aebd['cell'],_0x190ce4=_0x39f58f,_0x4f68ef=Oe(_0x58f79f),_0x553bf2=Oe(_0x190ce4);_0xd37dfd['return']=_0x58f79f;let _0xf2584e=null,_0x546cd3=null;if(_0x553bf2||_0x4f68ef){if(_0x4f68ef&&!_0x553bf2){_0x85ef9a['remove'](_0x58f79f['getChild'](0x0));for(const _0x8fc2b6 of Array['from'](_0x190ce4['getChildren']()))_0x85ef9a['insert'](_0x8fc2b6,_0x58f79f,'end');const _0x35d624=_0x3730c0['rowInsertionIndexes']['includes'](_0x70aebd['row']),_0x39d0d5=_0x3730c0['columnInsertionIndexes']['includes'](_0x70aebd['column']);_0x35d624||_0x39d0d5||(_0xf2584e=_0x153d61['fromRange'](_0x85ef9a['createRangeIn'](_0x58f79f)));}else _0x553bf2&&!_0x4f68ef&&(_0x546cd3=_0x85ef9a['createRangeIn'](_0x58f79f));}else{const _0x29d4f0=_0x85ef9a['createElement']('tableCellSuggestion'),_0x5e880e=_0x85ef9a['createElement']('tableCellSuggestion');_0x85ef9a['wrap'](_0x85ef9a['createRangeIn'](_0x58f79f),_0x5e880e),_0x85ef9a['insert'](_0x29d4f0,_0x58f79f,0x0);for(const _0x4637f8 of Array['from'](_0x190ce4['getChildren']()))_0x85ef9a['insert'](_0x4637f8,_0x29d4f0,'end');_0xf2584e=_0x153d61['fromRange'](_0x85ef9a['createRangeOn'](_0x29d4f0)),_0x546cd3=_0x153d61['fromRange'](_0x85ef9a['createRangeOn'](_0x5e880e));}const _0x3418e6=Array['from'](_0x190ce4['getAttributes']())['filter'](([_0x16d9e3])=>Be['includes'](_0x16d9e3));_0x3730c0['cells']['push']({'element':_0x58f79f,'attributes':_0x3418e6['length']?Object['fromEntries'](_0x3418e6):null}),_0xf2584e&&_0x3730c0['insertionRanges']['push'](_0xf2584e),_0x546cd3&&_0x3730c0['deletionRanges']['push'](_0x546cd3);},{'priority':'high'}),_0x2a4554['on']('insertColumns',(_0x5b3fc1,_0x26372f)=>{const [_0x5afda0,_0x5dfc7d={}]=_0x26372f;if(!_0x3730c0)return;const _0x42111f=_0x5dfc7d['at']||0x0,_0x5c4c79=_0x5dfc7d['columns']||0x1;_0x3730c0['columnInsertionIndexes']=new Array(_0x5c4c79)['fill'](_0x42111f)['map']((_0x4d1c42,_0x5b8cd2)=>_0x4d1c42+_0x5b8cd2);for(const {cell:_0x4301ee}of _0x2a4554['createTableWalker'](_0x5afda0,{'startColumn':_0x42111f,'endColumn':_0x42111f+_0x5c4c79-0x1}))_0x3730c0['columnInsertionRanges']['push'](_0x96c8f5['model']['createRangeOn'](_0x4301ee));},{'priority':'low'}),_0x2a4554['on']('insertRows',(_0x27ccf4,_0x93a9f2)=>{const [_0x579d5f,_0x2c4324={}]=_0x93a9f2;if(!_0x3730c0)return;const _0x4d15bc=_0x2c4324['at']||0x0,_0x5bc368=_0x2c4324['rows']||0x1;_0x3730c0['rowInsertionIndexes']=new Array(_0x5bc368)['fill'](_0x4d15bc)['map']((_0x54ba16,_0x38fe34)=>_0x54ba16+_0x38fe34);for(const {cell:_0x336d45}of _0x2a4554['createTableWalker'](_0x579d5f,{'startRow':_0x4d15bc,'endRow':_0x4d15bc+_0x5bc368-0x1}))_0x3730c0['rowInsertionRanges']['push'](_0x96c8f5['model']['createRangeOn'](_0x336d45));},{'priority':'low'}),_0x1a1407['descriptionFactory']['registerDescriptionCallback'](_0x15b360=>{if(_0x15b360['subType']&&_0x15b360['subType']['startsWith']('tablePaste'))return _0x15b360['previous']?{}:{'type':'insertion','content':o(_0x96c8f5['locale'],'*Replace\x20table\x20cells*')};});const _0x4dc544=()=>!0x1;for(const _0x57a91f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1a1407['_suggestionFactory']['registerCustomCallback']('insertion',_0x57a91f,'join',_0x4dc544),_0x1a1407['_suggestionFactory']['registerCustomCallback']('deletion',_0x57a91f,'join',_0x4dc544),_0x1a1407['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x57a91f,'join',_0x4dc544);_0x1a1407['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4dc544),_0x1a1407['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x493521,_0x4ecf88,_0x19ebbb)=>{const _0x19a959=_0x493521['map'](_0x58d9f6=>_0x58d9f6['getContainedElement']())['filter'](_0x38fd63=>_0x38fd63),_0x2ce45b=new Map(_0x19a959['map'](_0xd504ef=>[_0xd504ef,null]));if(_0x3730c0){for(const {element:_0xfdbf22,attributes:_0x288f60}of _0x3730c0['cells'])_0x288f60&&_0x2ce45b['set'](_0xfdbf22,_0x288f60);}else{if(_0x19ebbb&&_0x19ebbb['markerAttributes'])for(const [_0x7d4002,_0x564113]of Object['entries'](_0x19ebbb['markerAttributes'])){const _0x2dae52=_0x96c8f5['model']['markers']['get'](_0x7d4002),_0x59b4f3=_0x2dae52?_0x2dae52['getRange']()['getContainedElement']():null;_0x59b4f3&&_0x2ce45b['set'](_0x59b4f3,_0x564113);}}_0x96c8f5['model']['change'](_0x57b5a8=>{for(const [_0x5c5cf1,_0x2a3349]of _0x2ce45b)_0x57b5a8['setAttributes']({...xe,..._0x2a3349},_0x5c5cf1);});});const _0x421b86=(_0x5be58d,_0x565aea)=>{_0x1a1407['_suggestionFactory']['registerCustomCallback'](_0x5be58d,'tablePaste',_0x565aea,(_0x3f4935,_0x59de71,_0x2688ff)=>{_0x96c8f5['model']['change'](_0x185e30=>{const _0x2e901b=[];for(const _0x174786 of _0x3f4935){const _0x1ba20c=_0x174786['start']['nodeAfter'];_0x1ba20c['is']('element','tableCellSuggestion')&&_0x2e901b['push'](_0x1ba20c);}_0x1a1407['_suggestionFactory']['getSuggestionCallback'](_0x5be58d,null,_0x565aea)(_0x3f4935,_0x59de71,_0x2688ff);for(const _0x4e4faf of _0x2e901b)'$graveyard'!=_0x4e4faf['root']['rootName']&&_0x185e30['unwrap'](_0x4e4faf);});});};_0x421b86('insertion','accept'),_0x421b86('insertion','discard'),_0x421b86('deletion','accept'),_0x421b86('deletion','discard'),_0x1a1407['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x466bc6=>{const _0x22da81=_0x466bc6['map'](_0x864a0d=>_0x864a0d['getContainedElement']()),_0x4c4616=_0x22da81[0x0]['findAncestor']('table'),{minRow:_0x9922e,maxRow:_0x35b42c}=_0x48082f['_getCoordsForCells'](_0x22da81);_0x2a4554['removeRows'](_0x4c4616,{'at':_0x9922e,'rows':_0x35b42c-_0x9922e+0x1});}),_0x1a1407['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x262c87=>{const _0x4eb56b=_0x262c87['map'](_0x3d97aa=>_0x3d97aa['getContainedElement']()),_0xa9b042=_0x4eb56b[0x0]['findAncestor']('table'),{minColumn:_0x3fcc36,maxColumn:_0x2c93fa}=_0x48082f['_getCoordsForCells'](_0x4eb56b);_0x2a4554['removeColumns'](_0xa9b042,{'at':_0x3fcc36,'columns':_0x2c93fa-_0x3fcc36+0x1});});const _0x185850=(_0xdc935d,_0x18350e)=>{if(!_0x18350e['subType']||!_0x18350e['subType']['startsWith']('tablePaste'))return;const _0x5b393e=_0x18350e['attributes']['tablePasteChainId'],_0x49d426=_0x1a1407['getSuggestions']()['filter'](_0x26265b=>_0x26265b['isInContent']&&_0x26265b['attributes']&&_0x26265b['attributes']['tablePasteChainId']==_0x5b393e);_0x49d426['length']&&_0x18350e['getAllAdjacentSuggestions']()['length']!=_0x49d426['length']&&_0x49d426['reduce']((_0x4ca129,_0x24709)=>(_0x4ca129['next']=_0x24709,_0x24709['previous']=_0x4ca129,_0x24709));};function _0x4ff117(_0x3aef59,_0x105708=!0x0){const {id:_0x3a6cc8,authorId:_0x4385a5}=_0x1a1407['_splitMarkerName'](_0x3aef59['markerName']),_0x448922=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x367428=_0x1a1407['activeMarkers']['includes'](_0x3aef59['markerName']);return _0x367428&&_0x448922['push']('ck-suggestion-marker--active'),{'classes':_0x448922,'attributes':{'data-suggestion':_0x3a6cc8,'data-author-id':_0x4385a5},'priority':_0x367428&&_0x105708?0xbc2:0xbb8};}_0x1a1407['on']('suggestionLoaded',_0x185850,{'priority':'high'}),_0x1a1407['on']('suggestionUnloaded',_0x185850,{'priority':'high'}),_0x96c8f5['model']['document']['registerPostFixer'](()=>{let _0x59f03d=!0x1;const _0x4dae8b=Array['from'](_0x96c8f5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b03d1,data:_0x31c88c}of _0x4dae8b){const {group:_0x1949b0,type:_0x283a75,id:_0x37ce58}=_0x1a1407['_splitMarkerName'](_0x3b03d1);if('suggestion'!=_0x1949b0||'deletion'!=_0x283a75||_0x31c88c['oldRange'])continue;if(!_0x1a1407['hasSuggestion'](_0x37ce58))continue;const _0x467ed6=_0x1a1407['getSuggestion'](_0x37ce58)['getRanges'](),_0x45c942=_0x96c8f5['plugins']['get']('Users')['me'];for(const _0xe0be0b of _0x1a1407['getSuggestions']()){if(!_0xe0be0b['isInContent']||_0xe0be0b['author']!=_0x45c942)continue;if('formatBlock'!=_0xe0be0b['type']||'tablePasteCell'!=_0xe0be0b['subType'])continue;if(_0xe0be0b['getRanges']()['every'](_0x37e3ba=>_0x467ed6['some'](_0x590043=>_0x590043['containsRange'](_0x37e3ba,!0x0)))){for(const _0x1d0cf7 of _0xe0be0b['getAllAdjacentSuggestions']())_0x1d0cf7['isInContent']&&(_0x1d0cf7['discard'](),_0x59f03d=!0x0);}}}return _0x59f03d;}),_0x96c8f5['model']['document']['registerPostFixer'](_0x2239ba=>{const _0x8b61c6=_0x96c8f5['commands']['get']('redo');if(!_0x8b61c6||!_0x8b61c6['_createdBatches']['has'](_0x2239ba['batch']))return!0x1;let _0x22025a=!0x1;const _0x49a84a=_0x96c8f5['plugins']['get']('Users')['me'],_0x2a7a82=_0x96c8f5['model']['document']['differ']['getChanges'](),_0x1ebe0e=Array['from'](_0x96c8f5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x522965,data:_0x4c654b})=>{const {group:_0x1794ac,subType:_0x286852,authorId:_0x44f0b6}=_0x1a1407['_splitMarkerName'](_0x522965);return'suggestion'==_0x1794ac&&'tablePaste'==_0x286852&&_0x44f0b6==_0x49a84a['id']&&!_0x4c654b['oldRange'];});for(const _0xceee4a of _0x2a7a82){if('insert'!=_0xceee4a['type']||'tableCellSuggestion'!=_0xceee4a['name']||0x1!=_0xceee4a['length'])continue;const _0x30e12f=_0x2239ba['createRange'](_0xceee4a['position'],_0xceee4a['position']['getShiftedBy'](0x1));if(!_0x1ebe0e['find'](({data:_0x58625c})=>_0x58625c['newRange']['isEqual'](_0x30e12f))){for(const {name:_0x469157,data:_0x4aae3d}of _0x1ebe0e)if(_0x30e12f['containsRange'](_0x4aae3d['newRange'])){_0x2239ba['updateMarker'](_0x469157,{'range':_0x30e12f}),_0x22025a=!0x0;break;}}}return _0x22025a;}),_0x96c8f5['model']['document']['registerPostFixer'](_0x33bacb=>{let _0x59987f=!0x1;const _0x2b45bb=_0x96c8f5['plugins']['get']('Users')['me'],_0x3a4317=_0x1a1407['getSuggestions']()['filter'](_0x1673ed=>_0x1673ed['isInContent']&&_0x1673ed['author']==_0x2b45bb),_0x5843aa=new Set(),_0x31226f=new Set();for(const _0x15ef59 of _0x3a4317)if('tablePaste'==_0x15ef59['subType'])for(const _0x5f24d6 of _0x15ef59['getMarkers']()){const _0x9721fd=_0x5f24d6['getRange']()['getContainedElement']();if(_0x9721fd){if(_0x9721fd['is']('element','tableCellSuggestion')&&Oe(_0x9721fd)){_0x15ef59['removeMarker'](_0x5f24d6['name']),_0x5843aa['add'](_0x9721fd),_0x59987f=!0x0;const _0x37ec4b=_0x9721fd['nextSibling'],_0x10c88b=_0x9721fd['previousSibling'],_0x19504d=_0x37ec4b&&_0x37ec4b['is']('element','tableCellSuggestion'),_0x331899=_0x10c88b&&_0x10c88b['is']('element','tableCellSuggestion');_0x19504d&&!_0x5843aa['has'](_0x37ec4b)&&_0x31226f['add'](_0x37ec4b),_0x331899&&!_0x5843aa['has'](_0x10c88b)&&_0x31226f['add'](_0x10c88b);}else _0x9721fd['is']('element','paragraph')&&_0x9721fd['isEmpty']&&(_0x15ef59['removeMarker'](_0x5f24d6['name']),_0x59987f=!0x0);}}else{if('tablePasteCell'==_0x15ef59['subType']){if(!_0x15ef59['attributes']||!_0x15ef59['attributes']['tablePasteChainId'])continue;const _0x4e0a7d=_0x15ef59['attributes']['markerAttributes'];if(_0x4e0a7d&&Object['keys'](_0x4e0a7d)['length'])continue;const _0x2ad80a=_0x15ef59['attributes']['tablePasteChainId'];let _0x49bf58=!0x0,_0xcfc2ee=!0x0;for(const _0x36b744 of _0x3a4317)if(_0x36b744['subType']&&_0x36b744['subType']['startsWith']('tablePaste')){if(!_0x36b744['attributes']['tablePasteChainId']){_0xcfc2ee=!0x1;break;}if(_0x36b744['id']!=_0x15ef59['id']&&_0x36b744['attributes']['tablePasteChainId']==_0x2ad80a){_0x49bf58=!0x1;break;}}_0xcfc2ee&&_0x49bf58&&(_0x15ef59['removeMarkers'](),_0x59987f=!0x0);}}for(const _0x1acd48 of _0x5843aa)_0x33bacb['remove'](_0x1acd48);for(const _0x383113 of _0x31226f)_0x33bacb['unwrap'](_0x383113);return _0x59987f;}),_0x96c8f5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5a880d=>_0x4ff117(_0x5a880d),'converterPriority':'high'}),_0x96c8f5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x23f71e,_0x463716)=>_0x463716['options']['showSuggestionHighlights']?_0x4ff117(_0x23f71e,!0x1):null,'converterPriority':'high'});const _0x5c79aa=_0x96c8f5['editing']['view'];this['listenTo'](_0x5c79aa['document'],'clipboardOutput',(_0x20faa5,_0x16e608)=>{const _0x449322=[];for(const _0x27e108 of _0x5c79aa['createRangeIn'](_0x16e608['content'])['getItems']())_0x27e108['is']('element','suggestion-td')&&_0x449322['push'](_0x27e108);_0x5c79aa['change'](_0x2192a0=>{for(const _0x55e164 of _0x449322)_0x2192a0['move'](_0x2192a0['createRangeIn'](_0x55e164),_0x2192a0['createPositionBefore'](_0x55e164)),_0x2192a0['remove'](_0x55e164);});});}}function Oe(_0x2b17e5){if(_0x2b17e5['isEmpty'])return!0x0;const _0x177c89=_0x2b17e5['getChild'](0x0);return _0x177c89['is']('element','paragraph')&&_0x177c89['isEmpty'];}function Ue(_0x16a94b,_0x31535a={},_0x4015eb){for(const {isAnchor:_0x10cafb,cellHeight:_0x60818f,cellWidth:_0x40ec2a}of _0x4015eb['createTableWalker'](_0x16a94b,{'includeAllSlots':!0x0,..._0x31535a}))if(!_0x10cafb||0x1!=_0x60818f||0x1!=_0x40ec2a)return!0x1;return!0x0;}class Dt extends _0x588311{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x48dcb9=this['editor']['plugins']['get']('TrackChangesEditing');_0x48dcb9['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x48dcb9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x48dcb9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48dcb9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x48dcb9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x48dcb9['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3f4af2,_0x5c4b28){const _0x371bb9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b022e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x333c91=_0x5c4b28['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x9b378f=_0x4b022e['getColumnGroupElement'](_0x333c91);let _0x27ef2d=_0x9b378f?_0x4b022e['getTableColumnsWidths'](_0x9b378f):null,_0x350147=_0x333c91['getAttribute']('tableWidth')||null;const _0x1445db=_0x5c4b28['tableWidth']||_0x350147,_0x239ccf=_0x5c4b28['columnWidths']||_0x27ef2d,_0x4ff2c4=this['editor']['plugins']['get']('Users')['me'];for(const _0xc30ef0 of _0x371bb9['getSuggestions']()){const _0x2fe88e=_0xc30ef0['getContainedElement']();if('resizeTable'===_0xc30ef0['subType']&&_0x2fe88e===_0x333c91){_0xc30ef0['author']!==_0x4ff2c4&&_0xc30ef0['discard']();const _0x553a00=_0xc30ef0['data']['commandParams'];_0x350147=_0x553a00[0x0]['tableWidth'],_0x27ef2d=_0x553a00[0x0]['columnWidths'];break;}}_0x3f4af2({'table':_0x333c91,'tableWidth':_0x1445db,'columnWidths':_0x239ccf}),_0x371bb9['markBlockFormat'](_0x333c91,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x350147,'columnWidths':_0x27ef2d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4fd565){if('formatBlock'!=_0x4fd565['type']&&'formatInline'!=_0x4fd565['type'])return;const {data:_0x361b79}=_0x4fd565;if(_0x361b79&&'resizeTable'===_0x361b79['formatGroupId']){const _0x531f6b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x531f6b)};}}}class $t extends _0x588311{['afterInit'](){const _0x550f97=this['editor'];_0x550f97['plugins']['has']('Template')&&_0x550f97['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x588311{['afterInit'](){const _0x37727e=this['editor'];if(!_0x37727e['commands']['get']('insertTableOfContents'))return;_0x37727e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3338bc=_0x37727e['plugins']['get']('TrackChangesEditing'),_0x125f58=_0x37727e['locale'];_0x3338bc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x15f45b=>o(_0x125f58,'ELEMENT_TABLE_OF_CONTENTS',_0x15f45b));}}class Bt extends _0x588311{['afterInit'](){const _0x19316d=this['editor'];if(!_0x19316d['plugins']['has']('Title'))return;const _0x5a2adb=_0x19316d['plugins']['get']('TrackChangesEditing');_0x5a2adb['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x19316d['locale'],'ELEMENT_TITLE')),_0x19316d['model']['document']['registerPostFixer'](_0xb4d1a6=>{let _0x4fd6e7=!0x1;const _0x29548a=Array['from'](_0x19316d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x41acdd,data:_0x235a85}of _0x29548a){const {group:_0x330e22}=_0x5a2adb['_splitMarkerName'](_0x41acdd);if('suggestion'!==_0x330e22||!_0x235a85['newRange'])continue;const _0x14de7d=_0x235a85['newRange'],_0x229da4=_0x14de7d['end']['nodeBefore'];if(!_0x229da4||!_0x229da4['is']('element','title-content'))continue;if(!_0x14de7d['start']['isTouching'](_0x14de7d['end']))continue;const _0x217ad4=_0x19316d['model']['schema']['getNearestSelectionRange'](_0x14de7d['end'],'forward');if(_0x217ad4&&_0x217ad4['isCollapsed']){const _0x2803a8=_0xb4d1a6['createRange'](_0x14de7d['start'],_0x217ad4['start']);_0x2803a8['isEqual'](_0x14de7d)||(_0xb4d1a6['updateMarker'](_0x41acdd,{'range':_0x2803a8}),_0x4fd6e7=!0x0);}_0x4fd6e7||(_0xb4d1a6['removeMarker'](_0x41acdd),_0x4fd6e7=!0x0);}return _0x4fd6e7;});}}class Tt extends _0x588311{['afterInit'](){const _0x39b6fc=this['editor'],_0x19ad81=_0x39b6fc['plugins']['get']('TrackChangesEditing');_0x39b6fc['plugins']['has']('Uploadcare')&&(_0x19ad81['enableCommand']('uploadcare'),_0x39b6fc['plugins']['has']('UploadcareImageEdit')&&(_0x19ad81['enableCommand']('uploadcareImageEdit'),_0x19ad81['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x19ad81['registerBlockAttribute']('uploadcareImageId'),_0x19ad81['descriptionFactory']['registerDescriptionCallback'](_0x29176b=>{if('attribute'!=_0x29176b['type'])return;const {data:_0x45c915}=_0x29176b;return _0x45c915&&'uploadcareImageId'==_0x45c915['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x588311{['afterInit'](){const _0x9b119c=this['editor'],_0x433a4b=_0x9b119c['plugins']['get']('TrackChangesEditing');_0x9b119c['plugins']['has']('UndoEditing')&&(_0x433a4b['enableCommand']('undo'),_0x433a4b['enableCommand']('redo'));}}class Ot extends _0x588311{static get['requires'](){return[At];}['afterInit'](){const _0x552816=this['editor'];if(!_0x552816['plugins']['has']('TableCaptionEditing'))return;_0x552816['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x588311{['tableProperties'];['tableCellProperties'];constructor(_0x160da5){super(_0x160da5),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 _0x13a811=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2e88c9 of this['tableProperties'])_0x13a811['enableCommand'](_0x2e88c9,(_0x192836,_0xdb48e2)=>{const _0x4d76b9=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2e88c9,[_0x4d76b9],this['tableProperties'],'tableProperties',_0x192836,_0xdb48e2);});_0x13a811['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x13a811['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x13a811['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x247350,_0x5c0442)=>this['handleDiscardAction'](this['tableProperties'],_0x247350,_0x5c0442)),_0x13a811['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1593a6 of this['tableCellProperties'])_0x13a811['enableCommand'](_0x1593a6,(_0x4e56be,_0x4d4fd7)=>{const _0xb1b832=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1593a6,_0xb1b832,this['tableCellProperties'],'tableCellProperties',_0x4e56be,_0x4d4fd7);});_0x13a811['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x13a811['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x13a811['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x406615,_0x4db6d0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x406615,_0x4db6d0)),_0x13a811['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x13a811['descriptionFactory']['registerDescriptionCallback'](_0xcc934b=>this['handleSuggestionDescription'](_0xcc934b)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xcb60f2,_0x5e9cbd,_0x168a30,_0x70a835,_0x2c63e3,_0x2cc789){const _0x256914=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2cc789['batch'],()=>{for(const _0x42c148 of _0x5e9cbd){if(this['_getSuggestion'](_0x42c148,_0x70a835))_0x2c63e3(_0x2cc789);else{const _0xf47b5d={};for(const _0x10faee of _0x168a30){const _0x356ef1=_0x42c148['getAttribute'](_0x10faee);void 0x0!==_0x356ef1&&(_0xf47b5d[_0x10faee]=_0x356ef1);}_0x2c63e3(_0x2cc789),_0x256914['markBlockFormat'](_0x42c148,{'commandParams':[_0xf47b5d]},[],_0x70a835);}}});}['handleDiscardAction'](_0x20d395,_0x1bd20b,_0x322a33){const _0x27a435=_0x1bd20b[0x0]['start']['nodeAfter'],_0x2dfd5b=_0x322a33['commandParams'][0x0];this['editor']['model']['change'](_0x36c00b=>{for(const _0xe6529a of _0x20d395)void 0x0!==_0x2dfd5b[_0xe6529a]?_0x36c00b['setAttribute'](_0xe6529a,_0x2dfd5b[_0xe6529a],_0x27a435):_0x36c00b['removeAttribute'](_0xe6529a,_0x27a435);});}['handleSuggestionDescription'](_0xb18640){if(_0xb18640['data'])switch(_0xb18640['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'](_0x5a7462,_0xece8c4){const _0x193887=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1af85a of _0x193887['getSuggestions']({'skipNotAttached':!0x0})){const _0x4e5a1f=_0x1af85a['getContainedElement']();if(_0x1af85a['subType']===_0xece8c4&&_0x4e5a1f===_0x5a7462)return _0x1af85a;}return null;}['_registerTablePropertiesAttributes'](){const _0x33d961=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e05f8=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5422dd of _0x4e05f8){const _0x2d39e0=_0x5422dd['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x33d961['registerBlockAttribute'](_0x5422dd),_0x33d961['descriptionFactory']['registerAttributeLabel'](_0x5422dd,o(this['editor']['locale'],'FORMAT_'+_0x2d39e0));}}}class Rt extends _0x588311{['afterInit'](){const _0x5ea39e=this['editor'];if(!_0x5ea39e['plugins']['has']('LineHeight'))return;const _0x206a6b=_0x5ea39e['plugins']['get']('TrackChangesEditing'),_0x1d3e7a=_0x5ea39e['locale'];_0x206a6b['enableDefaultAttributesIntegration']('lineHeight'),_0x206a6b['registerBlockAttribute']('lineHeight'),_0x206a6b['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1d3e7a,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x588311{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x4fb64d,_0x1f154d,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(_0x30bb6f){super(_0x30bb6f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1c754d,_0x136116,_0x10bc67,_0x6169c7)=>{this['_model']['change'](()=>{for(const _0x53d620 of[..._0x6169c7,..._0x10bc67])this['_model']['markers']['has'](_0x53d620)&&_0x30bb6f['editing']['reconvertMarker'](_0x53d620);});}),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']=_0x30bb6f['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(),_0x30bb6f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x30bb6f['config']['get']('trackChanges.trackFormatChanges'),_0x30bb6f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x30bb6f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x30bb6f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x9693e4=this['editor'],_0xaf8511=(_0x1af3a7,_0x4e4506)=>{if('attribute'!=_0x1af3a7)return'ck-suggestion-marker-'+_0x1af3a7;const _0x53af8d=_0x4e4506['split']('|')[0x0];return this['_isBlockAttribute'](_0x53af8d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x9693e4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x41f81f=>{const {id:_0x231ed2,authorId:_0x213d01,type:_0xc55716,subType:_0xbd19fc}=this['_splitMarkerName'](_0x41f81f['markerName']),_0x21c2ce=['ck-suggestion-marker',_0xaf8511(_0xc55716,_0xbd19fc)];let _0xdbb49b=0xbb8;return this['activeMarkers']['includes'](_0x41f81f['markerName'])&&(_0x21c2ce['push']('ck-suggestion-marker--active'),_0xdbb49b=0xbc2),'deletion'==_0xc55716&&(_0xdbb49b+=0x5),{'classes':_0x21c2ce,'attributes':{'data-suggestion':_0x231ed2,'data-author-id':_0x213d01},'priority':_0xdbb49b};}}),_0x9693e4['conversion']['for']('dataDowncast')['add'](_0x2b20bb=>{_0x2b20bb['on']('addMarker:suggestion',(_0x53ab26,_0x3650ea,_0x10b04a)=>{if(!_0x10b04a['options']['showSuggestionHighlights'])return;const _0x18d11f=_0x3650ea['item'];if(!_0x18d11f)return;const _0x27ff78=_0x10b04a['mapper']['toViewElement'](_0x18d11f);_0x9693e4['model']['schema']['isObject'](_0x18d11f)&&_0x27ff78&&!_0x27ff78['getCustomProperty']('widget')&&_0x27ff78['is']('containerElement')&&_0x514173(_0x27ff78,_0x10b04a['writer']);},{'priority':'high'});}),_0x9693e4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x38fb34,_0x7500d)=>{if(!_0x7500d['options']['showSuggestionHighlights'])return null;const {id:_0x20a9a9,authorId:_0x5aab46,type:_0x2921e0,subType:_0x34843a}=this['_splitMarkerName'](_0x38fb34['markerName']);return{'classes':['ck-suggestion-marker',_0xaf8511(_0x2921e0,_0x34843a)],'priority':0xbb8,'attributes':{'data-suggestion':_0x20a9a9,'data-author-id':_0x5aab46}};}});const _0x13d98d=({showActiveMarkers:_0x4a988d=!0x0,isAttributeSuggestion:_0x228a0e=!0x1}={})=>(_0x473642,_0x297e9b,_0x13aeec)=>{if(!_0x297e9b['item'])return;const {id:_0x1ad87e,authorId:_0x24eb5a}=this['_splitMarkerName'](_0x297e9b['markerName']);if(_0x228a0e){const _0x14e1b6=this['_suggestions']['get'](_0x1ad87e),_0x2cbb54=this['_getAttributeKey'](_0x14e1b6);if(!this['_isBlockAttribute'](_0x2cbb54))return;}if(_0x297e9b['item']['is']('selection'))return void _0x13aeec['consumable']['consume'](_0x297e9b['item'],_0x473642['name']);const _0x5c3ebc=_0x13aeec['mapper']['toViewElement'](_0x297e9b['item']);if(_0x297e9b['item']['is']('element')&&_0x9693e4['model']['schema']['isBlock'](_0x297e9b['item'])&&!_0x5c3ebc['getCustomProperty']('addHighlight')){_0x13aeec['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5c3ebc),_0x13aeec['writer']['setAttribute']('data-suggestion',_0x1ad87e,_0x5c3ebc),_0x13aeec['writer']['setAttribute']('data-author-id',_0x24eb5a,_0x5c3ebc),_0x13aeec['mapper']['bindElementToMarker'](_0x5c3ebc,_0x297e9b['markerName']),_0x4a988d&&(this['activeMarkers']['includes'](_0x297e9b['markerName'])?_0x13aeec['writer']['addClass']('ck-suggestion-marker--active',_0x5c3ebc):_0x13aeec['writer']['removeClass']('ck-suggestion-marker--active',_0x5c3ebc));for(const _0x158131 of _0x9693e4['model']['createRangeIn'](_0x297e9b['item'])['getItems']())_0x13aeec['consumable']['consume'](_0x158131,_0x473642['name']);_0x13aeec['consumable']['consume'](_0x297e9b['item'],_0x473642['name']);}};_0x9693e4['conversion']['for']('dataDowncast')['add'](_0x62e7c1=>{_0x62e7c1['on']('addMarker:suggestion:formatBlock',(_0x34c0a8,_0x41710a,_0xad2f39)=>{_0xad2f39['options']['showSuggestionHighlights']&&_0x13d98d({'showActiveMarkers':!0x1})(_0x34c0a8,_0x41710a,_0xad2f39);},{'priority':'highest'});}),_0x9693e4['conversion']['for']('dataDowncast')['add'](_0xf681fd=>{_0xf681fd['on']('addMarker:suggestion:attribute',(_0x597e0c,_0xd585da,_0x2f6d5b)=>{_0x2f6d5b['options']['showSuggestionHighlights']&&_0x13d98d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x597e0c,_0xd585da,_0x2f6d5b);},{'priority':'highest'});}),_0x9693e4['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x447bc8,_0x5e1eff)=>{if(_0x5e1eff['options']['showSuggestionHighlights']){const {id:_0x1b89a5,authorId:_0x4becd1}=this['_splitMarkerName'](_0x447bc8);return _0x447bc8['includes'](':split')||_0x447bc8['includes'](':merge')?{'group':'suggestion','name':_0x447bc8['substr'](0xb),'attributes':{'data-suggestion':_0x1b89a5,'data-author-id':_0x4becd1}}:null;}return{'group':'suggestion','name':_0x447bc8['substr'](0xb)};}}),_0x9693e4['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xd4be94,{writer:_0x586b5d})=>{let _0x4c6278='suggestion:'+_0xd4be94['getAttribute']('suggestion-type')+':'+_0xd4be94['getAttribute']('id');return _0xd4be94['getAttribute']('marker-count')&&(_0x4c6278+=':'+_0xd4be94['getAttribute']('marker-count')),_0x586b5d['createElement']('$marker',{'data-name':_0x4c6278});}}),_0x9693e4['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x9693e4['conversion']['for']('editingDowncast')['add'](_0x191b77=>{_0x191b77['on']('addMarker:suggestion:formatBlock',_0x13d98d(),{'priority':'high'});}),_0x9693e4['conversion']['for']('editingDowncast')['add'](_0x435280=>{_0x435280['on']('addMarker:suggestion:attribute',_0x13d98d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x9693e4['conversion']['for']('editingDowncast')['add'](_0xf5ebe6=>{_0xf5ebe6['on']('removeMarker:suggestion:formatBlock',(_0x207242,_0x3237bb,_0x21631b)=>{const _0x38ca51=_0x21631b['mapper']['markerNameToElements'](_0x3237bb['markerName']);if(_0x38ca51){for(const _0x550b29 of _0x38ca51)_0x550b29['getCustomProperty']('addHighlight')||(_0x21631b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x550b29),_0x21631b['writer']['removeAttribute']('data-suggestion',_0x550b29),_0x21631b['writer']['removeAttribute']('data-author-id',_0x550b29),_0x21631b['mapper']['unbindElementFromMarkerName'](_0x550b29,_0x3237bb['markerName']));}},{'priority':'high'});}),_0x9693e4['conversion']['for']('editingDowncast')['add'](_0x1ae697=>{_0x1ae697['on']('removeMarker:suggestion:attribute',(_0x48116e,_0x1a672d,_0x3a99b3)=>{const _0x2da29c=_0x3a99b3['mapper']['markerNameToElements'](_0x1a672d['markerName']);if(!_0x2da29c)return;const {id:_0x40db23}=this['_splitMarkerName'](_0x1a672d['markerName']),_0x38a9c7=this['_suggestions']['get'](_0x40db23),_0x2d3d25=this['_getAttributeKey'](_0x38a9c7);if(this['_isBlockAttribute'](_0x2d3d25)){for(const _0x1d115a of _0x2da29c)_0x1d115a['getCustomProperty']('addHighlight')||(_0x3a99b3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1d115a),_0x3a99b3['writer']['removeAttribute']('data-suggestion',_0x1d115a),_0x3a99b3['writer']['removeAttribute']('data-author-id',_0x1d115a),_0x3a99b3['mapper']['unbindElementFromMarkerName'](_0x1d115a,_0x1a672d['markerName']));}},{'priority':'high'});}),_0x9693e4['model']['document']['registerPostFixer'](_0x10a5ac=>{let _0x1dd23f=!0x1;const _0x58bb5b=Array['from'](_0x9693e4['model']['document']['differ']['getChangedMarkers']()),_0x5e7959=new Set();for(const {name:_0x4006fd,data:_0x2e8c1a}of _0x58bb5b){const {group:_0x22451d,type:_0x1b44d7,subType:_0xde03e7,id:_0x4c76b4}=this['_splitMarkerName'](_0x4006fd);if('suggestion'!==_0x22451d)continue;const _0x460a80=_0xde03e7?'suggestion:'+_0x1b44d7+':'+_0xde03e7+':'+_0x4c76b4:'suggestion:'+_0x1b44d7+':'+_0x4c76b4,_0x183760=_0x9693e4['model']['markers']['getMarkersGroup'](_0x460a80),_0x493370=_0x9693e4['model']['markers']['get'](_0x4006fd),_0xccc8f=this['_suggestions']['get'](_0x4c76b4);if(null!=_0x2e8c1a['newRange']){'formatInline'==_0x1b44d7&&(_0x1dd23f=_0x1dd23f||Gt(_0x2e8c1a['newRange'],_0x4006fd,_0x10a5ac,_0x9693e4['model']['schema']));const _0x121c09='attribute'==_0x1b44d7&&this['_isBlockAttribute'](_0xde03e7['split']('|')[0x0]),_0x2469ea='attribute'==_0x1b44d7&&this['_isInlineAttribute'](_0xde03e7['split']('|')[0x0]);if(_0x2e8c1a['newRange']['isCollapsed']||'$graveyard'==_0x2e8c1a['newRange']['root']['rootName']||'formatBlock'==_0x1b44d7&&!Jt(_0x2e8c1a['newRange'])||_0x121c09&&!Jt(_0x2e8c1a['newRange'])||_0x2469ea&&Kt(_0x2e8c1a['newRange'])||'deletion'==_0x1b44d7&&Kt(_0x2e8c1a['newRange'])||_0x493370&&Ht(_0x493370,_0x183760))_0x10a5ac['removeMarker'](_0x4006fd),_0x1dd23f=!0x0;else{if(!_0xccc8f||!_0xccc8f['isInContent'])continue;if(_0x2e8c1a['newRange']&&_0x2e8c1a['oldRange']&&_0x2e8c1a['newRange']['isEqual'](_0x2e8c1a['oldRange']))continue;_0x5e7959['add'](_0xccc8f);}}}return _0x5e7959['size']>0x0&&(_0x1dd23f=!!this['_joinWithAdjacentSuggestions'](_0x5e7959)||_0x1dd23f),_0x1dd23f;}),_0x9693e4['model']['document']['registerPostFixer'](_0x5c4b47=>{let _0x5377f3=!0x1;for(const _0x317094 of _0x9693e4['model']['document']['differ']['getChanges']())if('insert'==_0x317094['type'])for(const _0x5ef7a2 of this['_suggestions']['values']()){if(_0x5ef7a2['isMultiRange']||!_0x5ef7a2['isInContent'])continue;const _0x22f1de='formatBlock'==_0x5ef7a2['type'],_0x1a74ab=this['_getAttributeKey'](_0x5ef7a2),_0x45b3b7=_0x1a74ab&&this['_isBlockAttribute'](_0x1a74ab);if(!_0x22f1de&&!_0x45b3b7)continue;const _0x525e3e=_0x5ef7a2['getFirstRange']();if(_0x525e3e['start']['parent']!=_0x525e3e['end']['parent']&&!_0x525e3e['end']['isAtEnd']){const _0x352f45=_0x9693e4['model']['createPositionAt'](_0x525e3e['start']['nodeAfter'],'end'),_0x3fe41e=_0x9693e4['model']['createRange'](_0x525e3e['start'],_0x352f45);_0x5c4b47['updateMarker'](_0x5ef7a2['getFirstMarker'](),{'range':_0x3fe41e}),_0x5377f3=!0x0;}}return _0x5377f3;}),_0x9693e4['model']['document']['registerPostFixer'](_0x1794eb=>this['_processAttributeChanges'](_0x1794eb)),_0x9693e4['model']['document']['registerPostFixer'](_0x967817=>!_0x967817['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x967817)),_0x9693e4['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x9693e4['model']['document']['on']('change:data',(_0x3c9461,_0x2812af)=>{if(!_0x2812af['isLocal']||_0x2812af['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3646a8=_0x9693e4['model']['document']['differ']['getChanges']();if(0x0==_0x3646a8['length'])return;const _0x220e02=[],_0x35a4cb=_0x3646a8['filter'](_0x2d8e6d=>'attribute'==_0x2d8e6d['type']),_0x185301=_0x3646a8['filter'](_0x3fd2e5=>'insert'==_0x3fd2e5['type']&&'$text'!=_0x3fd2e5['name']);for(const _0x3c9623 of _0x35a4cb)this['_isRegisteredAttribute'](_0x3c9623['attributeKey'])&&_0x220e02['push']({'key':_0x3c9623['attributeKey'],'newValue':_0x3c9623['attributeNewValue'],'oldValue':_0x3c9623['attributeOldValue'],'range':qt(_0x3c9623['range'],_0x9693e4['model'])});for(const _0x4a7178 of _0x185301){if('rename'!=_0x4a7178['action']&&'refresh'!=_0x4a7178['action'])continue;const _0x5d09e5=zt(_0x4a7178['position']['nodeAfter'],_0x9693e4['model']),_0x3a4918=_0x4a7178['before'];'rename'==_0x4a7178['action']&&_0x220e02['push']({'key':m,'newValue':_0x4a7178['name'],'oldValue':_0x3a4918['name'],'range':_0x5d09e5});for(const [_0x55f57c,_0x5a53ff]of _0x3a4918['attributes']){if(!this['_isRegisteredAttribute'](_0x55f57c))continue;const _0x4fdaea=_0x4a7178['attributes']['get'](_0x55f57c);_0x5a53ff!==_0x4fdaea&&_0x220e02['push']({'key':_0x55f57c,'newValue':_0x4fdaea,'oldValue':_0x5a53ff,'range':_0x5d09e5});}for(const [_0x4f377f,_0x4b06b5]of _0x4a7178['attributes'])this['_isRegisteredAttribute'](_0x4f377f)&&(_0x3a4918['attributes']['has'](_0x4f377f)||_0x220e02['push']({'key':_0x4f377f,'newValue':_0x4b06b5,'oldValue':null,'range':_0x5d09e5}));}0x0!=_0x220e02['length']&&_0x9693e4['model']['enqueueChange'](_0x2812af,_0x3a5210=>{const _0x50a478=_0x58b607();for(const {range:_0x474980,key:_0x42f999,oldValue:_0x65da56,newValue:_0x207516}of _0x220e02)this['markAttributeChange'](_0x474980,_0x42f999,_0x65da56,_0x207516,{'groupId':_0x50a478});this['_reduceExistingSuggestions'](_0x3a5210,_0x220e02);});},{'priority':'lowest'}),_0x9693e4['model']['markers']['on']('update:suggestion',(_0x14a2c7,_0x590ef4,_0x53b577)=>{if(null==_0x53b577){const {id:_0xa9710d}=this['_splitMarkerName'](_0x590ef4['name']),_0x35a41f=this['_suggestions']['get'](_0xa9710d);_0x35a41f&&_0x35a41f['addMarkerName'](_0x590ef4['name']);}}),_0x9693e4['model']['document']['on']('change:data',()=>{const _0x470a75=Array['from'](_0x9693e4['model']['document']['differ']['getChangedMarkers']())['filter'](_0x31df74=>'suggestion'===this['_splitMarkerName'](_0x31df74['name'])['group']);if(0x0===_0x470a75['length'])return;_0x470a75['sort']((_0x26560a,_0x7584e4)=>{const _0x8e1bbe=_0x26560a['data']['oldRange'],_0x524b2e=_0x7584e4['data']['oldRange'];return null===_0x8e1bbe&&null===_0x524b2e?0x0:null===_0x8e1bbe&&null!==_0x524b2e?-0x1:null!==_0x8e1bbe&&null===_0x524b2e?0x1:_0x8e1bbe['start']['isBefore'](_0x524b2e['start'])?-0x1:0x1;});const _0x50649e=new Set(),_0x2a1959=new Set();for(const {name:_0x1393d0,data:_0x5ddffd}of _0x470a75){const {id:_0x29755c}=this['_splitMarkerName'](_0x1393d0);if(null===_0x5ddffd['oldRange']){const _0x199a13=this['_handleNewSuggestionMarker'](_0x1393d0);_0x2a1959['add'](_0x199a13);}else{const _0x11d7ca=this['_suggestions']['get'](_0x29755c);null!==_0x5ddffd['newRange']||_0x11d7ca['isInContent']?(_0x50649e['add'](_0x11d7ca['head']),_0x2a1959['add'](_0x11d7ca)):this['_removeSuggestion'](_0x11d7ca);}}_0x2a1959['size']>0x0&&this['_refreshSuggestionsChain'](_0x2a1959);for(const _0x198d46 of _0x50649e)this['fire']('suggestionChanged',_0x198d46);}),_0x9693e4['model']['on']('applyOperation',(_0x1eb2be,_0x2c1927)=>{const _0x4c0f96=_0x2c1927[0x0];if(!this['_suggestions']['size'])return;if(!_0x4c0f96['isDocumentOperation'])return;if(_0x4c0f96['batch']['isUndo']||!_0x4c0f96['batch']['isLocal'])return;let _0x27ebf6,_0x164429;switch(_0x4c0f96['type']){case'insert':_0x27ebf6=_0x9693e4['model']['createPositionAt'](_0x4c0f96['position']),_0x164429=_0x27ebf6['getShiftedBy'](_0x4c0f96['howMany']);break;case'split':_0x27ebf6=_0x9693e4['model']['createPositionAt'](_0x4c0f96['splitPosition']),_0x164429=_0x9693e4['model']['createPositionAt'](_0x4c0f96['moveTargetPosition']);break;case'move':_0x27ebf6=_0x9693e4['model']['createPositionAt'](_0x4c0f96['targetPosition']),_0x164429=_0x27ebf6['getShiftedBy'](_0x4c0f96['howMany']);break;default:return;}const _0x3171e0=_0x9693e4['model']['createRange'](_0x27ebf6,_0x164429);_0x9693e4['model']['change'](()=>{for(const {suggestion:_0x4ef5de,meta:_0x126891}of this['_findSuggestions'](_0x3171e0)){if(_0x4ef5de['isMultiRange'])continue;if('formatInline'==_0x4ef5de['type'])continue;const _0x22c2be=this['_getAttributeKey'](_0x4ef5de);if(_0x22c2be&&this['_isBlockAttribute'](_0x22c2be)&&'split'!=_0x4c0f96['type'])continue;const _0xb46893=_0x4ef5de['data']&&_0x4ef5de['data']['multipleBlocks'];('formatBlock'!=_0x4ef5de['type']||'split'==_0x4c0f96['type']&&!_0xb46893)&&(_0x126891['containsRangeInObject']||'insertion'==_0x4ef5de['type']&&_0x126891['isOwn']||_0x4ef5de['getFirstRange']()['containsRange'](_0x3171e0)&&this['_breakSuggestionMarker'](_0x4ef5de,_0x27ebf6,_0x164429));}});},{'priority':'lowest'}),_0x9693e4['model']['on']('deleteContent',(_0x149c4e,_0x2d271)=>{const _0x336d0f=_0x2d271[0x0],_0x306af3=_0x2d271[0x1];if(_0x306af3&&_0x306af3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x336d0f['isCollapsed'])return;const _0x2f2f4d=_0x9693e4['model']['schema'],{start:_0x101924,end:_0x3b70d7}=_0x336d0f['getFirstRange'](),_0x5c940d=_0x101924['nodeAfter']&&_0x2f2f4d['isLimit'](_0x101924['nodeAfter'])?null:_0x2f2f4d['getNearestSelectionRange'](_0x101924,'forward'),_0x3671aa=_0x3b70d7['nodeBefore']&&_0x2f2f4d['isLimit'](_0x3b70d7['nodeBefore'])?null:_0x2f2f4d['getNearestSelectionRange'](_0x3b70d7,'backward'),_0x2794bd=_0x9693e4['model']['createRange'](_0x5c940d?_0x5c940d['start']:_0x101924,_0x3671aa?_0x3671aa['end']:_0x3b70d7);_0x9693e4['model']['change'](_0x4e7016=>{this['markDeletion'](_0x2794bd);const _0x1789cc=_0x9693e4['model']['schema']['getNearestSelectionRange'](_0x2794bd['start']);_0x336d0f['is']('documentSelection')?_0x4e7016['setSelection'](_0x1789cc):_0x336d0f['setTo'](_0x1789cc);}),_0x149c4e['stop']();},{'priority':_0x30d56f['normal']+0xa}),_0x9693e4['model']['on']('insertContent',(_0x225ff4,_0x45504a)=>{const _0x240494=_0x45504a[_0x45504a['length']-0x1];_0x240494&&_0x240494['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x9693e4['model']['change'](()=>{let _0x20781d=_0x9693e4['model']['insertContent'](_0x45504a[0x0],_0x45504a[0x1],_0x45504a[0x2],{'forceDefaultExecution':!0x0});if(!_0x20781d)return;_0x225ff4['return']=_0x20781d['clone']();const _0x5ab479=_0x20781d['end']['nodeBefore'],_0x51c270=_0x9693e4['model']['schema'];_0x5ab479&&_0x51c270['isBlock'](_0x5ab479)&&!_0x51c270['isObject'](_0x5ab479)&&(_0x20781d=_0x9693e4['model']['createRange'](_0x20781d['start'],_0x9693e4['model']['createPositionAt'](_0x5ab479,'end'))),this['markInsertion'](_0x20781d);}),_0x225ff4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2d6203=new D(_0x9693e4,this['_suggestions']);_0x9693e4['commands']['add']('acceptSuggestion',_0x2d6203),this['enableCommand']('acceptSuggestion');const _0x19e919=new $(_0x9693e4,this['_suggestions']);_0x9693e4['commands']['add']('discardSuggestion',_0x19e919),this['enableCommand']('discardSuggestion'),_0x9693e4['commands']['add']('acceptAllSuggestions',new M(_0x9693e4,_0x2d6203,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x9693e4['commands']['add']('discardAllSuggestions',new M(_0x9693e4,_0x19e919,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x9693e4['commands']['add']('acceptSelectedSuggestions',new B(_0x9693e4,_0x2d6203,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x9693e4['commands']['add']('discardSelectedSuggestions',new B(_0x9693e4,_0x19e919,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x44b8ff=_0x9693e4['plugins']['get']('CommentsRepository');this['listenTo'](_0x44b8ff,'addComment',(_0x400935,{threadId:_0x48e23d})=>{const _0x48d64e=this['_suggestions']['get'](_0x48e23d);_0x48d64e&&_0x48d64e['commentThread']&&0x1===_0x48d64e['commentThread']['length']&&this['_updateSuggestionData'](_0x48e23d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x44b8ff,'removeComment',(_0x26d4d5,{threadId:_0x48e8e0})=>{const _0x322f4c=this['_suggestions']['get'](_0x48e8e0);_0x322f4c&&_0x322f4c['commentThread']&&!_0x322f4c['commentThread']['length']&&this['_updateSuggestionData'](_0x48e8e0,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x126189){const _0x2a7142=_0x443e2b([0x31,0x78,0x67,0x62,0x70,0x46,0x30,0x54,0x6d,0x65,0x4d,0x48,0x64,0x74,0x66,0x69,0x4f,0x6a,0x75,0x4b,0x37,0x55,0x35,0x56,0x71,0x43,0x4c,0x42,0x49,0x4a,0x6c,0x44,0x36,0x76,0x5a,0x61,0x58,0x53,0x33,0x52,0x6e,0x73,0x72,0x79,0x50,0x47,0x4e,0x7a,0x51,0x34,0x41,0x39,0x45,0x57,0x77,0x68,0x38,0x32,0x6b,0x6f,0x63,0x59]),_0x5f1103=0x42b7b61c,_0x2c82b8=0x42b0d984^_0x5f1103,_0x31d476=window[_0x443e2b([0x44,0x61,0x74,0x65])][_0x443e2b([0x6e,0x6f,0x77])](),_0x7d2ab7=_0x126189[_0x443e2b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x63d952=new window[(_0x443e2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x220b5d=>{_0x7d2ab7[_0x443e2b([0x6f,0x6e,0x63,0x65])](_0x443e2b([0x72,0x65,0x61,0x64,0x79]),_0x220b5d);}),_0x3aea61={[_0x443e2b([0x6b,0x74,0x79])]:_0x443e2b([0x45,0x43]),[_0x443e2b([0x75,0x73,0x65])]:_0x443e2b([0x73,0x69,0x67]),[_0x443e2b([0x63,0x72,0x76])]:_0x443e2b([0x50,0x2d,0x32,0x35,0x36]),[_0x443e2b([0x78])]:_0x443e2b([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]),[_0x443e2b([0x79])]:_0x443e2b([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]),[_0x443e2b([0x61,0x6c,0x67])]:_0x443e2b([0x45,0x53,0x32,0x35,0x36])},_0x11d865=_0x7d2ab7[_0x443e2b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x443e2b([0x67,0x65,0x74])](_0x443e2b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x35b678(){let _0x1fdc41,_0x437dcb=null,_0x5b5458=null;try{if(_0x11d865==_0x443e2b([0x47,0x50,0x4c]))return _0x443e2b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1fdc41=_0x13422f(),!_0x1fdc41)return _0x443e2b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1fdc41[_0x443e2b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b5458=_0x2a9bae(_0x1fdc41[_0x443e2b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1fdc41[_0x443e2b([0x6a,0x74,0x69])])),await _0xb43bd1()?_0x30718e()?_0x2e3093()?_0x443e2b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5419c4()?(_0x1fdc41[_0x443e2b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x443e2b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x437dcb=_0x49d7b0(_0x443e2b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1fdc41[_0x443e2b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x443e2b([0x74,0x72,0x69,0x61,0x6c])&&(_0x437dcb=_0x49d7b0(_0x443e2b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3c34d0()):_0x443e2b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x443e2b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x443e2b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x443e2b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e3093(){const _0x2f6f8d=[_0x443e2b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x443e2b([0x74,0x72,0x69,0x61,0x6c])][_0x443e2b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fdc41[_0x443e2b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x31d476/0x3e8:0xe10*_0x2c82b8;return _0x1fdc41[_0x443e2b([0x65,0x78,0x70])]<_0x2f6f8d;}function _0x30718e(){const _0x16e904=_0x1fdc41[_0x443e2b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x16e904)return!0x1;if(_0x16e904[_0x443e2b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443e2b([0x2a])))return!0x0;if(_0x16e904[_0x443e2b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443e2b([0x54,0x43])))return!0x0;if(_0x16e904[_0x443e2b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443e2b([0x52,0x54,0x43]))){if(_0xb36988())return!0x0;if(_0x43f129()||_0x55417f())return!0x0;}return!0x1;}function _0x5419c4(){const _0x329535=_0x1fdc41[_0x443e2b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x329535||0x0==_0x329535[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2950ce}=new URL(window[_0x443e2b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x329535[_0x443e2b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2950ce))return!0x0;const _0x2b9333=_0x2950ce[_0x443e2b([0x73,0x70,0x6c,0x69,0x74])](_0x443e2b([0x2e]));return _0x329535[_0x443e2b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5713c7=>_0x5713c7[_0x443e2b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443e2b([0x2a])))[_0x443e2b([0x6d,0x61,0x70])](_0xdb902d=>_0xdb902d[_0x443e2b([0x73,0x70,0x6c,0x69,0x74])](_0x443e2b([0x2e])))[_0x443e2b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4aadf0=>_0x4aadf0[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2b9333[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x443e2b([0x6d,0x61,0x70])](_0x3b8299=>Array(_0x2b9333[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3b8299[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x443e2b([0x66,0x69,0x6c,0x6c])](_0x3b8299[0x0]===_0x443e2b([0x2a])?_0x443e2b([0x2a]):'')[_0x443e2b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3b8299))[_0x443e2b([0x73,0x6f,0x6d,0x65])](_0x9d98c=>_0x2b9333[_0x443e2b([0x65,0x76,0x65,0x72,0x79])]((_0x2d1c47,_0x76d51f)=>_0x9d98c[_0x76d51f]===_0x2d1c47||_0x9d98c[_0x76d51f]===_0x443e2b([0x2a])));}function _0x3c34d0(){return _0x437dcb&&_0x5b5458?new window[(_0x443e2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x499be4,_0xbefd54)=>{_0x437dcb[_0x443e2b([0x74,0x68,0x65,0x6e])](_0x499be4,_0xbefd54),_0x5b5458[_0x443e2b([0x74,0x68,0x65,0x6e])](_0x54c54c=>{_0x54c54c!=_0x443e2b([0x56,0x61,0x6c,0x69,0x64])&&_0x499be4(_0x54c54c);},_0xbefd54);}):_0x437dcb||_0x5b5458||_0x443e2b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a9bae(_0xa24bed,_0x30aa40){return new window[(_0x443e2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6da4cd=>{if(_0x4d7e85())return _0x6da4cd(_0x443e2b([0x56,0x61,0x6c,0x69,0x64]));_0x59870e(),_0x7d2ab7[_0x443e2b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x443e2b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x326494=!0x1;const _0xe1e943=_0x58b607();function _0x2d016b(_0x436335){return!!_0x436335&&(typeof _0x436335===_0x443e2b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x436335===_0x443e2b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x436335[_0x443e2b([0x74,0x68,0x65,0x6e])]===_0x443e2b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x436335[_0x443e2b([0x63,0x61,0x74,0x63,0x68])]===_0x443e2b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x7cbfe1(_0x1f926e){_0x276b05(_0x1f926e)[_0x443e2b([0x74,0x68,0x65,0x6e])](_0x4682ac=>{if(!_0x4682ac||_0x4682ac[_0x443e2b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x443e2b([0x6f,0x6b]))return _0x443e2b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4626b5(_0x408655(_0xe1e943+_0x30aa40))!=_0x4682ac[_0x443e2b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x443e2b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x443e2b([0x56,0x61,0x6c,0x69,0x64]);})[_0x443e2b([0x74,0x68,0x65,0x6e])](_0x58636f=>(_0x504cdc(),_0x58636f),()=>{const _0x5a4df0=_0x5af52a();return null==_0x5a4df0?(_0x504cdc(),_0x443e2b([0x56,0x61,0x6c,0x69,0x64])):_0x443e2b(_0x31d476-_0x5a4df0>(0x66bb321c^_0x5f1103)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x443e2b([0x74,0x68,0x65,0x6e])](_0x6da4cd)[_0x443e2b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x6da4cd(_0x443e2b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2f58c7=0x4281589c^_0x5f1103;function _0x504cdc(){const _0xcb8cb6=_0x443e2b([0x6c,0x6c,0x63,0x74,0x2d])+_0x4626b5(_0x408655(_0xa24bed)),_0x2b6188=_0x37327f(_0x4626b5(window[_0x443e2b([0x4d,0x61,0x74,0x68])][_0x443e2b([0x63,0x65,0x69,0x6c])](_0x31d476/_0x2f58c7)));window[_0x443e2b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x443e2b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcb8cb6,_0x2b6188);}function _0x5af52a(){const _0x486196=_0x443e2b([0x6c,0x6c,0x63,0x74,0x2d])+_0x4626b5(_0x408655(_0xa24bed)),_0x5d6cb3=window[_0x443e2b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x443e2b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x486196);return _0x5d6cb3?window[_0x443e2b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37327f(_0x5d6cb3),0x10)*_0x2f58c7:null;}function _0x276b05(_0x6328e7){return new window[(_0x443e2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd775e3,_0x1393f8)=>{_0x6328e7[_0x443e2b([0x74,0x68,0x65,0x6e])](_0xd775e3,_0x1393f8),window[_0x443e2b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1393f8,0x42b662dc^_0x5f1103);});}}_0x7d2ab7[_0x443e2b([0x6f,0x6e])](_0x443e2b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x120241,_0x5ba268)=>{if(_0x5ba268[0x0]!=_0xa24bed)return _0x6da4cd(_0x443e2b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5ba268[0x1]={..._0x5ba268[0x1],[_0x443e2b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe1e943};},{[_0x443e2b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x443e2b([0x68,0x69,0x67,0x68])}),_0x7d2ab7[_0x443e2b([0x6f,0x6e])](_0x443e2b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x751a7b=>{_0x2d016b(_0x751a7b[_0x443e2b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x326494=!0x0,_0x7cbfe1(_0x751a7b[_0x443e2b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x443e2b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x443e2b([0x6c,0x6f,0x77])}),_0x63d952[_0x443e2b([0x74,0x68,0x65,0x6e])](()=>{_0x326494||_0x6da4cd(_0x443e2b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4d7e85(){return _0x7d2ab7[_0x443e2b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x443e2b([0x76,0x69,0x65,0x77])][_0x443e2b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x443e2b([0x61,0x75,0x74,0x6f]);}function _0x59870e(){_0x7d2ab7[_0x443e2b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x443e2b([0x76,0x69,0x65,0x77])][_0x443e2b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x443e2b([0x61,0x75,0x74,0x6f]);}}function _0x49d7b0(_0x4c010d){const _0x1a9e5e=[new window[(_0x443e2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30f277=>setTimeout(_0x30f277,0x42be88d0^_0x5f1103)),_0x63d952[_0x443e2b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x443e2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a0f2b=>{let _0x454750=0x0;_0x7d2ab7[_0x443e2b([0x6d,0x6f,0x64,0x65,0x6c])][_0x443e2b([0x6f,0x6e])](_0x443e2b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2ea12a,_0x101a85)=>{_0x101a85[0x0][_0x443e2b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x454750++,_0x454750==(0x42b7b7e4^_0x5f1103)&&(_0x3a0f2b(),_0x2ea12a[_0x443e2b([0x6f,0x66,0x66])]());});}))];return window[_0x443e2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x443e2b([0x72,0x61,0x63,0x65])](_0x1a9e5e)[_0x443e2b([0x74,0x68,0x65,0x6e])](()=>_0x4c010d);}async function _0x23677c(){await _0x63d952,_0x7d2ab7[_0x443e2b([0x6d,0x6f,0x64,0x65,0x6c])][_0x443e2b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x438998,_0x7d2ab7[_0x443e2b([0x6d,0x6f,0x64,0x65,0x6c])][_0x443e2b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x438998,_0x7d2ab7[_0x443e2b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x443e2b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb36988(){return _0x4d5a65(_0x443e2b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x10972a(_0x443e2b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x443e2b([0x73,0x74,0x61,0x74,0x65])]==_0x443e2b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x43f129(){return _0x4d5a65(_0x443e2b([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 _0x55417f(){return _0x4d5a65(_0x443e2b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2879fc(_0x5c1e8e){const _0x16d03b=_0x11d224();_0x7d2ab7[_0x16d03b]=_0x443e2b([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5c1e8e,_0x5c1e8e!=_0x443e2b([0x56,0x61,0x6c,0x69,0x64])&&_0x23677c();}function _0x11d224(){const _0xf879d1=window[_0x443e2b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x443e2b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x443e2b([0x6e,0x6f,0x77])]())[_0x443e2b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x443e2b([0x2e]),'');let _0x3a4a59=_0x443e2b([0x78]);for(let _0x3545de=0x0;_0x3545de<_0xf879d1[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3545de+=0x2){let _0x34f040=window[_0x443e2b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf879d1[_0x443e2b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3545de,_0x3545de+0x2));_0x34f040>=_0x2a7142[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x34f040-=_0x2a7142[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3a4a59+=_0x2a7142[_0x34f040];}return _0x3a4a59;}function _0x13422f(){const _0x3c6247=_0x11d865[_0x443e2b([0x73,0x70,0x6c,0x69,0x74])](_0x443e2b([0x2e]));if(0x3!=_0x3c6247[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1aa198(_0x3c6247[0x1]);function _0x1aa198(_0x44ade5){const _0x3863bc=_0x1599b5(_0x44ade5);return _0x3863bc&&_0x494efb()?_0x3863bc:null;function _0x494efb(){const _0x551800=_0x3863bc[_0x443e2b([0x6a,0x74,0x69])],_0x52de4a=window[_0x443e2b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x551800[_0x443e2b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x551800[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x508abc={..._0x3863bc,[_0x443e2b([0x6a,0x74,0x69])]:_0x551800[_0x443e2b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x551800[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x508abc[_0x443e2b([0x76,0x63])],_0x408655(_0x508abc)==_0x52de4a;}}}async function _0xb43bd1(){let _0x5eac3e=!0x0;try{const _0x466802=_0x11d865[_0x443e2b([0x73,0x70,0x6c,0x69,0x74])](_0x443e2b([0x2e])),[_0x45f443,_0x3b8b8b,_0x51d0e4]=_0x466802;return _0x1c13d7(_0x45f443),await _0x3be9fa(_0x45f443,_0x3b8b8b,_0x51d0e4),_0x5eac3e;}catch{return!0x1;}function _0x1c13d7(_0x3c702f){const _0x1fdcdd=_0x1599b5(_0x3c702f);_0x1fdcdd&&_0x1fdcdd[_0x443e2b([0x61,0x6c,0x67])]==_0x443e2b([0x45,0x53,0x32,0x35,0x36])||(_0x5eac3e=!0x1);}async function _0x3be9fa(_0x6abed1,_0x341caf,_0x51bebd){const _0xe9d324=window[_0x443e2b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x443e2b([0x66,0x72,0x6f,0x6d])](_0x1c0a33(_0x51bebd),_0x27a842=>_0x27a842[_0x443e2b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x108c1c=new window[(_0x443e2b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x443e2b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6abed1+_0x443e2b([0x2e])+_0x341caf),_0x27d48c=window[_0x443e2b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x443e2b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27d48c)return;const _0x971b4d=await _0x27d48c[_0x443e2b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x443e2b([0x6a,0x77,0x6b]),_0x3aea61,{[_0x443e2b([0x6e,0x61,0x6d,0x65])]:_0x443e2b([0x45,0x43,0x44,0x53,0x41]),[_0x443e2b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x443e2b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x443e2b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27d48c[_0x443e2b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x443e2b([0x6e,0x61,0x6d,0x65])]:_0x443e2b([0x45,0x43,0x44,0x53,0x41]),[_0x443e2b([0x68,0x61,0x73,0x68])]:{[_0x443e2b([0x6e,0x61,0x6d,0x65])]:_0x443e2b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x971b4d,_0xe9d324,_0x108c1c)||(_0x5eac3e=!0x1);}}function _0x1599b5(_0x524d2c){return _0x524d2c[_0x443e2b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x443e2b([0x65,0x79]))?JSON[_0x443e2b([0x70,0x61,0x72,0x73,0x65])](_0x1c0a33(_0x524d2c)):null;}function _0x1c0a33(_0x8c9615){return window[_0x443e2b([0x61,0x74,0x6f,0x62])](_0x8c9615[_0x443e2b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x443e2b([0x2b]))[_0x443e2b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x443e2b([0x2f])));}function _0x408655(_0x1c035d){let _0x5e2da8=0x1505;function _0x37bfec(_0x416187){for(let _0x24268a=0x0;_0x24268a<_0x416187[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24268a++){const _0x1c1f16=_0x416187[_0x443e2b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24268a);_0x5e2da8=(_0x5e2da8<<0x5)+_0x5e2da8+_0x1c1f16,_0x5e2da8&=_0x5e2da8;}}function _0x5e5679(_0xa9d779){Array[_0x443e2b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xa9d779)?_0xa9d779[_0x443e2b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e5679):_0xa9d779&&typeof _0xa9d779==_0x443e2b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x443e2b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xa9d779)[_0x443e2b([0x73,0x6f,0x72,0x74])]()[_0x443e2b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x33a730,_0x4f2fdc])=>{_0x37bfec(_0x33a730),_0x5e5679(_0x4f2fdc);}):_0x37bfec(window[_0x443e2b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xa9d779));}return _0x5e5679(_0x1c035d),_0x5e2da8>>>0x0;}function _0x4626b5(_0x3311c1){return _0x3311c1[_0x443e2b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x443e2b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x443e2b([0x30]));}function _0x37327f(_0x3cf84a){return _0x3cf84a[_0x443e2b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x443e2b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x443e2b([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d5a65(_0x267ab7){return _0x7d2ab7[_0x443e2b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x443e2b([0x68,0x61,0x73])](_0x267ab7);}function _0x10972a(_0xbd8ad2){return _0x7d2ab7[_0x443e2b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x443e2b([0x67,0x65,0x74])](_0xbd8ad2);}function _0x438998(){}function _0x443e2b(_0x4d17b4){return _0x4d17b4['map'](_0x468e33=>String['fromCharCode'](_0x468e33))['join']('');}_0x2879fc(await _0x35b678());}(this);}set['adapter'](_0x33f950){if(this['_adapter'])throw new _0x280c51('track-changes-adapter-already-set',this);this['_adapter']=_0x33f950;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x82387a=!0x1,toJSON:_0x5cf2ce=!0x1}={}){const _0x2ab0d8=[];for(const _0x4ebf63 of this['_suggestions']['values']())_0x82387a&&!_0x4ebf63['isInContent']||_0x2ab0d8['push'](_0x4ebf63);return _0x5cf2ce?_0x2ab0d8['map'](_0x5883c1=>_0x5883c1['toJSON']()):_0x2ab0d8;}['getSuggestion'](_0xdb6a2c){const _0x59ba3e=this['_suggestions']['get'](_0xdb6a2c);if(!_0x59ba3e)throw new _0x280c51('track-changes-suggestion-not-found',this);return _0x59ba3e;}['hasSuggestion'](_0x277c85){return this['_suggestions']['has'](_0x277c85);}['addSuggestionData'](_0x50453e){const {authorId:_0x1ee32c,id:_0x102863,originalSuggestionId:_0x5416ec,attributes:_0x4ae9c4}=_0x50453e,[_0x39a384,_0x412f86]=_0x50453e['type']['split'](':'),_0x4ae89d=this['_suggestions']['get'](_0x102863)||this['_createSuggestion'](_0x39a384,_0x412f86,_0x102863,_0x1ee32c,_0x4ae9c4,_0x5416ec);if(this['_addThreadToSuggestion'](_0x4ae89d),this['_checkSuggestionCorrectness'](_0x4ae89d,_0x39a384,_0x412f86||null,_0x1ee32c),_0x4ae89d['createdAt']=_0x50453e['createdAt'],_0x4ae89d['_isDataLoaded']=!0x0,_0x4ae9c4&&_0x4ae9c4['@external']){const _0x3231be=_0x4ae9c4['@external'],_0x325c55=this['_getExternalAuthor'](_0x3231be['authorName']);_0x4ae89d['authoredAt']=_0x3231be['createdAt'],_0x4ae89d['author']=_0x325c55,_0x4ae89d['isExternal']=!0x0;}else _0x4ae89d['authoredAt']=_0x50453e['createdAt'];switch(_0x50453e['data']&&(_0x4ae89d['data']=_0x50453e['data']),_0x50453e['attributes']&&(_0x4ae89d['attributes']=_0x50453e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4ae89d['_saved']=!0x0),this['_suggestionState']['get'](_0x4ae89d)){case'notReady':this['_suggestionState']['set'](_0x4ae89d,'dataReady');break;case'markerReady':_0x4ae89d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4ae89d])),this['_refreshSuggestionsChain'](new Set([_0x4ae89d])),this['_suggestionState']['set'](_0x4ae89d,'ready'),this['fire']('suggestionLoaded',_0x4ae89d)):this['_suggestionState']['set'](_0x4ae89d,'removed');}return _0x4ae89d;}['acceptSuggestion'](_0x2fa09b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3670c0 of _0x2fa09b['getAllAdjacentSuggestions']())_0x3670c0['accept']();});});}['discardSuggestion'](_0x12a4e5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x19df6a of _0x12a4e5['getAllAdjacentSuggestions']())_0x19df6a['discard']();});});}['enableCommand'](_0x3868f9,_0x59e410){const _0x4088b2=this['editor']['commands']['get'](_0x3868f9);if(!_0x4088b2)throw new _0x280c51('track-changes-command-not-found',this,{'commandName':_0x3868f9});if(this['_enabledCommands']['has'](_0x4088b2))throw new _0x280c51('track-changes-enable-command-twice',this,{'commandName':_0x3868f9});this['_enabledCommands']['add'](_0x4088b2),_0x59e410&&_0x4088b2['on']('execute',(_0x285acd,_0x2c56cc)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2c56cc['length']>0x0&&_0x2c56cc[_0x2c56cc['length']-0x1]&&_0x2c56cc[_0x2c56cc['length']-0x1]['forceDefaultExecution']?_0x2c56cc['pop']():(_0x285acd['return']=_0x59e410((..._0x174afd)=>_0x4088b2['execute'](..._0x174afd,{'forceDefaultExecution':!0x0}),..._0x2c56cc),_0x285acd['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x776668){let _0xd04de1,_0x41ffd4;const _0x4dfcbe=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xd04de1=_0x776668();}catch(_0x41a29a){_0x41ffd4=_0x41a29a;}return _0x4dfcbe||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x41ffd4&&_0x280c51['rethrowUnexpectedError'](_0x41ffd4,this),_0xd04de1;}['markInsertion'](_0x589781,_0x247d8c=null,_0x538ea3={}){if(_0x589781['isCollapsed'])return null;const _0x15f89e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x538ea3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3498a7,meta:_0xb01742}of this['_findSuggestions'](_0x589781,'insertion'))if(_0xb01742['isOwn']){if(!_0xb01742['isNextTo']){if(_0xb01742['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x3498a7,_0x538ea3))continue;return _0x3498a7;}if(Xt(_0x3498a7,_0x538ea3))return _0x3498a7;this['_breakSuggestionMarker'](_0x3498a7,_0x589781['start'],_0x589781['end']);break;}if(_0x247d8c==_0x3498a7['subType']&&Xt(_0x3498a7,_0x538ea3)){const _0x58f006=_0x3498a7['getFirstRange']();return _0x58f006['start']['isEqual'](_0x589781['end'])?this['_setSuggestionRange'](_0x3498a7,this['_model']['createRange'](_0x589781['start'],_0x58f006['end'])):this['_setSuggestionRange'](_0x3498a7,this['_model']['createRange'](_0x58f006['start'],_0x589781['end'])),_0x3498a7;}}const _0x304c1d=_0x58b607(),_0x4ab15f=_0x15f89e['id'],_0x4d6d88=_0x247d8c?'insertion:'+_0x247d8c:'insertion',_0x3d425c=this['_setSuggestionData']({'id':_0x304c1d,'type':_0x4d6d88,'createdAt':new Date(),'authorId':_0x4ab15f,'attributes':_0x538ea3});return this['_addSuggestionMarker'](_0x4d6d88,_0x304c1d,_0x4ab15f,_0x589781),_0x3d425c;}['markMultiRangeInsertion'](_0x520ea4,_0xc02cd3='multi',_0x2aab2a={}){const _0x1cf7c8=this['editor']['plugins']['get']('Users')['me'],_0x252d12=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xc02cd3,'join');this['_trackingSessionId']&&(_0x2aab2a['trackingSessionId']=this['_trackingSessionId']);for(const _0x59648f of this['getSuggestions']())if(_0x59648f['author']['id']==_0x1cf7c8['id']&&'insertion'==_0x59648f['type']&&_0x59648f['subType']==_0xc02cd3&&Xt(_0x59648f,_0x2aab2a)&&(_0x252d12(_0x59648f['getRanges'](),_0x520ea4)||_0x252d12(_0x520ea4,_0x59648f['getRanges']()))){for(const _0xdbfbd0 of _0x520ea4)_0x59648f['addRange'](_0xdbfbd0);return _0x59648f;}for(const {suggestion:_0x3ee54a,meta:_0x2fe524}of this['_findSuggestions'](_0x520ea4,'insertion')){if(!_0x2fe524['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2fe524['containsRangeInObject'])continue;if(!Xt(_0x3ee54a,_0x2aab2a))continue;let _0x33e253=!0x0;for(const _0x517f0d of _0x3ee54a['getRanges']())for(const _0x34c11a of _0x520ea4)if(!_0x517f0d['containsRange'](_0x34c11a)){_0x33e253=!0x1;break;}if(_0x33e253)return _0x3ee54a;}const _0x269696=_0x58b607(),_0x18380d=_0x1cf7c8['id'],_0x1a5419='insertion:'+_0xc02cd3,_0x23400d=this['_setSuggestionData']({'id':_0x269696,'type':_0x1a5419,'createdAt':new Date(),'authorId':_0x18380d,'attributes':_0x2aab2a});for(const _0xb0ac01 of _0x520ea4)this['_addSuggestionMarker'](_0x1a5419,_0x269696,_0x18380d,_0xb0ac01,T['getMultiRangeId']());return _0x23400d;}['markInlineFormat'](_0x4b8889,_0xf0bfec,_0x3169a2=null,_0x9ae8cc={}){if(_0x3169a2=_0x3169a2||Lt(_0xf0bfec),_0x4b8889['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x9ae8cc['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x201281=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3169a2,'accept');return this['forceDefaultExecution'](()=>_0x201281([_0x4b8889],_0xf0bfec,_0x9ae8cc)),null;}const _0x5af3e6=this['editor']['plugins']['get']('Users')['me'],_0x203653=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x33b0f1,meta:_0x14377a}of this['_findSuggestions'](_0x4b8889,'insertion'))_0x14377a['isOwn']&&!_0x14377a['isInsideObject']&&_0x203653['push'](..._0x33b0f1['getRanges']());}const _0x8174f2=function(_0x417ca7,_0x3dc798){const _0x76292c=[];for(const _0x56744e of _0x3dc798){const _0xdbc5b5=_0x417ca7['getIntersection'](_0x56744e);_0xdbc5b5&&_0x76292c['push'](_0xdbc5b5);}return _0x76292c;}(_0x4b8889,_0x203653),_0x57d09f=function(_0x90fc2d,_0x194a2e){const _0xbfe21c=[_0x90fc2d];for(const _0x4555b8 of _0x194a2e){let _0x502556=0x0;for(;_0x502556<_0xbfe21c['length'];){const _0x30df38=_0xbfe21c[_0x502556]['getDifference'](_0x4555b8);_0xbfe21c['splice'](_0x502556,0x1,..._0x30df38),_0x502556+=_0x30df38['length'];}}return _0xbfe21c;}(_0x4b8889,_0x203653);_0x8174f2['length']&&this['_model']['change'](()=>{for(const _0x5d2d50 of _0x8174f2){const _0x2ef50e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3169a2,'accept');this['forceDefaultExecution'](()=>_0x2ef50e([_0x5d2d50],_0xf0bfec,_0x9ae8cc));}});for(const _0x59bd71 of _0x57d09f){let _0x3716a2=null,_0x2e29dc=_0x59bd71['start'],_0x8148e1=_0x59bd71['end'];for(const {suggestion:_0x3dc735,meta:_0x408f6d}of this['_findSuggestions'](_0x59bd71,'formatInline')){if(!_0x408f6d['isOwn'])continue;if(_0x3dc735['subType']!=_0x3169a2)continue;if(!Xt(_0x3dc735,_0x9ae8cc))continue;const _0x28d8b8=_0x3dc735['getFirstRange']();if(_0x28d8b8['containsRange'](_0x59bd71,!0x0))return null;_0x2e29dc=_0x2e29dc['isBefore'](_0x28d8b8['start'])?_0x2e29dc:_0x28d8b8['start'],_0x8148e1=_0x8148e1['isAfter'](_0x28d8b8['end'])?_0x8148e1:_0x28d8b8['end'],_0x3716a2?_0x28d8b8['start']['isBefore'](_0x3716a2['getFirstRange']()['start'])?(_0x3716a2['removeMarkers'](),_0x3716a2=_0x3dc735):_0x3dc735['removeMarkers']():_0x3716a2=_0x3dc735;}const _0x723247=this['_model']['createRange'](_0x2e29dc,_0x8148e1);if(_0x3716a2)this['_setSuggestionRange'](_0x3716a2,_0x723247);else{const _0x2c04bf=_0x58b607(),_0x46dd28=_0x5af3e6['id'];this['_setSuggestionData']({'id':_0x2c04bf,'type':'formatInline:'+_0x3169a2,'data':_0xf0bfec,'createdAt':new Date(),'authorId':_0x46dd28,'attributes':_0x9ae8cc}),this['_addSuggestionMarker']('formatInline:'+_0x3169a2,_0x2c04bf,_0x46dd28,_0x723247);}}return null;}['markBlockFormat'](_0xb32d02,_0x230e4b,_0x49ad9f=[],_0x312d14=null,_0x16d86b={}){_0x230e4b['formatGroupId']||(_0x230e4b['formatGroupId']=_0x230e4b['commandName']),_0x230e4b['multipleBlocks']=_0xb32d02['is']('range'),_0x312d14=_0x312d14||Lt(_0x230e4b);const _0x949870=_0x49ad9f['map'](_0x3fda6e=>zt(_0x3fda6e,this['_model'])),_0x473c18=_0xb32d02['is']('range')?_0xb32d02:zt(_0xb32d02,this['_model']);if(this['_trackingSessionId']&&(_0x16d86b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4b1626=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x312d14,'accept');return this['forceDefaultExecution'](()=>_0x4b1626([_0x473c18],_0x230e4b,_0x16d86b)),null;}_0x949870['push'](_0x473c18);let _0x1a4e90=!0x0;for(const _0x419f9d of _0x949870)if(!this['_rangeIsInLocalUserInsertion'](_0x419f9d)){_0x1a4e90=!0x1;break;}if(_0x1a4e90&&'always'!==this['_trackFormatChanges']){const _0x1f4c4f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x312d14,'accept');return this['forceDefaultExecution'](()=>_0x1f4c4f([_0x473c18],_0x230e4b,_0x16d86b)),null;}let _0x1390fd=null,_0x3ee115=_0x473c18['start'],_0x1cc56e=_0x473c18['end'];for(const {suggestion:_0x33e8f7,meta:_0x49dc0a}of this['_findSuggestions'](_0x473c18,'formatBlock')){if(!_0x49dc0a['isOwn'])continue;if(_0x49dc0a['isNextTo']||_0x49dc0a['containsRangeInObject']||_0x49dc0a['isInsideObject'])continue;if(_0x33e8f7['data']['formatGroupId']!=_0x230e4b['formatGroupId'])continue;if(!Xt(_0x33e8f7,_0x16d86b))continue;const _0x4d98ef=_0x33e8f7['getFirstRange']();if(_0x33e8f7['subType']==_0x312d14){if(_0x4d98ef['containsRange'](_0x473c18,!0x0))return null;_0x3ee115=_0x3ee115['isBefore'](_0x4d98ef['start'])?_0x3ee115:_0x4d98ef['start'],_0x1cc56e=_0x1cc56e['isAfter'](_0x4d98ef['end'])?_0x1cc56e:_0x4d98ef['end'],_0x1390fd?_0x4d98ef['start']['isBefore'](_0x1390fd['getFirstRange']()['start'])?(_0x1390fd['removeMarkers'](),_0x1390fd=_0x33e8f7):_0x33e8f7['removeMarkers']():_0x1390fd=_0x33e8f7;}else{const _0x40939f=_0x473c18['getIntersection'](_0x4d98ef);this['_cutOutSuggestionMarker'](_0x33e8f7,_0x40939f);}}const _0x1ad220=this['editor']['plugins']['get']('Users')['me'],_0x37cac6=_0x58b607(),_0x4573ff=_0x1ad220['id'];if(_0x1390fd)return this['_setSuggestionRange'](_0x1390fd,this['_model']['createRange'](_0x3ee115,_0x1cc56e)),_0x1390fd;{const _0xdd8aea=this['_setSuggestionData']({'id':_0x37cac6,'type':'formatBlock:'+_0x312d14,'data':_0x230e4b,'createdAt':new Date(),'authorId':_0x4573ff,'attributes':_0x16d86b});return this['_addSuggestionMarker']('formatBlock:'+_0x312d14,_0x37cac6,_0x4573ff,this['_model']['createRange'](_0x3ee115,_0x1cc56e)),_0xdd8aea;}}['markMultiRangeBlockFormat'](_0x14a474,_0x5ca843,_0x86487a=[],_0x391b22=null,_0x143e4e={}){_0x5ca843['formatGroupId']||(_0x5ca843['formatGroupId']=_0x5ca843['commandName']);const _0x5845c7=_0x14a474[0x0];_0x5ca843['multipleBlocks']=_0x5845c7['is']('range'),_0x391b22=_0x391b22||Lt(_0x5ca843);const _0x4add93=_0x86487a['map'](_0x3a06e7=>zt(_0x3a06e7,this['_model'])),_0x41d0e=_0x5845c7['is']('range')?_0x14a474:_0x14a474['map'](_0x4918d7=>zt(_0x4918d7,this['_model']));if(this['_trackingSessionId']&&(_0x143e4e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5ba15d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x391b22,'accept');return this['forceDefaultExecution'](()=>_0x5ba15d(_0x41d0e,_0x5ca843,_0x143e4e)),null;}_0x4add93['push'](..._0x41d0e);let _0x5f37cd=!0x0;for(const _0x36eedc of _0x4add93)if(!this['_rangeIsInLocalUserInsertion'](_0x36eedc)){_0x5f37cd=!0x1;break;}if(_0x5f37cd&&'always'!==this['_trackFormatChanges']){const _0x4ed43e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x391b22,'accept');return this['forceDefaultExecution'](()=>_0x4ed43e(_0x41d0e,_0x5ca843,_0x143e4e)),null;}const _0x56644a=this['editor']['plugins']['get']('Users')['me'];for(const _0x4de981 of this['getSuggestions']()){const _0x9082c0=_0x4de981['data'];if(_0x4de981['author']['id']!=_0x56644a['id'])continue;if('formatBlock'!=_0x4de981['type']||_0x9082c0['formatGroupId']!=_0x5ca843['formatGroupId'])continue;if(!Xt(_0x4de981,_0x143e4e))continue;const _0x23dceb=_0x4de981['subType']==_0x391b22;for(let _0x52b0ad=0x0;_0x52b0ad<_0x41d0e['length'];_0x52b0ad++){const _0x5604e4=_0x41d0e[_0x52b0ad];for(const _0x474b2f of _0x4de981['getMarkers']()){const _0x82822=_0x474b2f['getRange']();if(_0x5604e4['isEqual'](_0x82822)){_0x23dceb?(_0x41d0e['splice'](_0x52b0ad,0x1),_0x52b0ad--):_0x4de981['removeMarker'](_0x474b2f['name']);break;}}}}if(0x0==_0x41d0e['length'])return null;const _0x1fdcfd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x391b22,'join');for(const _0x55def9 of this['getSuggestions']()){const _0x26a47e=_0x55def9['data'];if(_0x55def9['author']['id']==_0x56644a['id']&&('formatBlock'==_0x55def9['type']&&_0x26a47e['formatGroupId']==_0x5ca843['formatGroupId']&&_0x55def9['subType']==_0x391b22&&Xt(_0x55def9,_0x143e4e)&&(_0x1fdcfd(_0x55def9['getRanges'](),_0x41d0e)||_0x1fdcfd(_0x41d0e,_0x55def9['getRanges']())))){for(const _0x48dafb of _0x41d0e)_0x55def9['addRange'](_0x48dafb);return _0x55def9;}}const _0xe835e8=_0x58b607(),_0x3af77e=_0x56644a['id'],_0x110611='formatBlock:'+_0x391b22,_0x23d049=this['_setSuggestionData']({'id':_0xe835e8,'type':_0x110611,'data':_0x5ca843,'createdAt':new Date(),'authorId':_0x3af77e,'attributes':_0x143e4e});for(const _0x4c0b0c of _0x41d0e)this['_addSuggestionMarker'](_0x110611,_0xe835e8,_0x3af77e,_0x4c0b0c,T['getMultiRangeId']());return _0x23d049;}['markDeletion'](_0x1d2f10,_0x1a4288=null,_0x86ec5b={}){if(_0x1d2f10['isCollapsed'])return null;const _0x371815=this['editor']['plugins']['get']('Users')['me'],_0xe53ab3=new _0x153d61(_0x1d2f10['start'],_0x1d2f10['end']);this['_trackingSessionId']&&(_0x86ec5b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4b4d97,meta:_0x5cc638}of this['_findSuggestions'](_0xe53ab3,'insertion'))if(_0x5cc638['isOwn']&&!_0x5cc638['isNextTo']){if(_0x4b4d97['isMultiRange']){const _0x226bd8=_0x4b4d97['getRanges']()['filter'](_0x3169cb=>'$graveyard'!=_0x3169cb['root']['rootName']);_0x226bd8['every'](_0x568d35=>_0xe53ab3['containsRange'](_0x568d35,!0x0))&&_0x4b4d97['discard']();if(_0x226bd8['some'](_0x569636=>_0x569636['containsRange'](_0xe53ab3,!0x0))){const _0x5068f4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a4288,'accept');return this['forceDefaultExecution'](()=>_0x5068f4([_0xe53ab3],null,_0x86ec5b)),null;}}else{const _0x372fc5=_0xe53ab3['getIntersection'](_0x4b4d97['getFirstRange']());null!==_0x372fc5&&_0x4b4d97['_onDiscard']([_0x372fc5],null,_0x86ec5b);}}if(_0xe53ab3['detach'](),_0xe53ab3['isCollapsed']||'$graveyard'==_0xe53ab3['root']['rootName'])return null;let _0x5a6c5e=null,_0x2fb90d=_0xe53ab3['start'],_0xbcd1e6=_0xe53ab3['end'];const _0x4f12d3=this['_findSuggestions'](_0xe53ab3,'deletion');for(const {suggestion:_0x55dce7,meta:_0x2c59e3}of _0x4f12d3){const _0x1bd868=this['_model']['createRange'](_0x2fb90d,_0xbcd1e6);if(_0x2c59e3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2c59e3['containsRangeInObject']&&!_0x2c59e3['isInsideObject'])){if(_0x55dce7['isMultiRange']){if(!Xt(_0x55dce7,_0x86ec5b))continue;let _0x443bec=!0x0;for(const _0x34ea52 of _0x55dce7['getRanges']()){if(_0x34ea52['containsRange'](_0x1bd868,!0x0))return _0x55dce7;_0x1bd868['containsRange'](_0x34ea52)||(_0x443bec=!0x1);}_0x443bec&&_0x55dce7['discard']();}else{const _0x1b2f02=_0x55dce7['getFirstRange']();if(_0x1b2f02['containsRange'](_0x1bd868,!0x0))return _0x55dce7;if(!Xt(_0x55dce7,_0x86ec5b)){_0x1bd868['containsRange'](_0x1b2f02)?_0x55dce7['removeMarkers']():_0x1b2f02['containsPosition'](_0x2fb90d)?_0x2fb90d=_0x1b2f02['end']:_0x1b2f02['containsPosition'](_0xbcd1e6)&&(_0xbcd1e6=_0x1b2f02['start']);continue;}_0x2fb90d=_0x2fb90d['isBefore'](_0x1b2f02['start'])?_0x2fb90d:_0x1b2f02['start'],_0xbcd1e6=_0xbcd1e6['isAfter'](_0x1b2f02['end'])?_0xbcd1e6:_0x1b2f02['end'],_0x86ec5b=Object['assign']({},_0x55dce7['attributes']),_0x5a6c5e?_0x1b2f02['start']['isBefore'](_0x5a6c5e['getFirstRange']()['start'])?(_0x5a6c5e['removeMarkers'](),_0x5a6c5e=_0x55dce7):_0x55dce7['removeMarkers']():_0x5a6c5e=_0x55dce7;}}}if(_0x5a6c5e)return this['_setSuggestionRange'](_0x5a6c5e,this['_model']['createRange'](_0x2fb90d,_0xbcd1e6)),_0x5a6c5e;{const _0x2b69c3=_0x58b607(),_0x21df1b=this['_model']['createRange'](_0x2fb90d,_0xbcd1e6),_0x52661a=_0x371815['id'],_0x2c5f7e=_0x1a4288?'deletion:'+_0x1a4288:'deletion',_0x174602=this['_setSuggestionData']({'id':_0x2b69c3,'type':_0x2c5f7e,'createdAt':new Date(),'authorId':_0x52661a,'attributes':_0x86ec5b});return this['_addSuggestionMarker'](_0x2c5f7e,_0x2b69c3,_0x52661a,_0x21df1b),_0x174602;}}['markMultiRangeDeletion'](_0xc85b56,_0xa61409='multi',_0x210d8e={}){const _0x5bef75=this['editor']['plugins']['get']('Users')['me'],_0x1c89e2=_0xc85b56['map'](_0x1af2ab=>new _0x153d61(_0x1af2ab['start'],_0x1af2ab['end'])),_0x571cea=new Set();this['_trackingSessionId']&&(_0x210d8e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4b405c,meta:_0x2b5c90}of this['_findSuggestions'](_0x1c89e2,'insertion'))_0x2b5c90['isOwn']&&!_0x2b5c90['isNextTo']&&_0x571cea['add'](_0x4b405c);for(const _0x45a449 of _0x571cea)if(_0x45a449['isMultiRange']){const _0x516b35=_0x45a449['getRanges']();(!_0x45a449['attributes']||!_0x45a449['attributes']['skipNestingCheck'])&&(_0x516b35['every'](_0x41b719=>_0x1c89e2['some'](_0x4a270f=>_0x4a270f['containsRange'](_0x41b719,!0x0)))&&_0x45a449['discard']());if(_0x1c89e2['every'](_0x134ecf=>_0x516b35['some'](_0x519410=>_0x519410['containsRange'](_0x134ecf,!0x0)))){const _0x4edb60=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa61409,'accept');return this['forceDefaultExecution'](()=>_0x4edb60(_0xc85b56,null,_0x210d8e)),null;}}else{const _0x26121f=_0x45a449['getFirstRange']();_0x1c89e2['some'](_0x30b4c7=>_0x30b4c7['containsRange'](_0x26121f,!0x0))&&_0x45a449['discard']();if(_0x1c89e2['every'](_0x53f34f=>_0x26121f['containsRange'](_0x53f34f,!0x0))){const _0xa98d5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa61409,'accept');return this['forceDefaultExecution'](()=>_0xa98d5(_0x1c89e2,null,_0x210d8e)),null;}}const _0x143ae8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa61409,'join');let _0x1bf064=null;for(const _0x5b54f6 of this['getSuggestions']())if(_0x5b54f6['author']['id']==_0x5bef75['id']&&_0x5b54f6['isInContent']&&'deletion'==_0x5b54f6['type']&&_0x5b54f6['subType']==_0xa61409&&Xt(_0x5b54f6,_0x210d8e)&&(_0x143ae8(_0x5b54f6['getRanges'](),_0x1c89e2)||_0x143ae8(_0x1c89e2,_0x5b54f6['getRanges']()))){if(_0x1bf064){if(_0x5b54f6['commentThread']&&_0x5b54f6['commentThread']['length'])continue;for(const _0x5690db of _0x5b54f6['getRanges']())_0x1bf064['isIntersectingWithRange'](_0x5690db)||_0x1bf064['addRange'](_0x5690db);_0x5b54f6['removeMarkers']();}else{_0x1bf064=_0x5b54f6;for(const _0x325e62 of _0x1c89e2)_0x5b54f6['isIntersectingWithRange'](_0x325e62)||_0x5b54f6['addRange'](_0x325e62);}}if(_0x1bf064)return _0x1bf064;_0x571cea['clear']();for(const {suggestion:_0x3b58de,meta:_0x54ae06}of this['_findSuggestions'](_0x1c89e2,'deletion'))_0x54ae06['isOwn']&&(this['_mergeNestedSuggestions']||!_0x54ae06['containsRangeInObject']&&!_0x54ae06['isInsideObject'])&&Xt(_0x3b58de,_0x210d8e)&&_0x571cea['add'](_0x3b58de);for(const _0x15f5fe of _0x571cea){const _0x3194c3=_0x15f5fe['getRanges']();if(!_0x210d8e||!_0x210d8e['skipNestingCheck']){if(_0x1c89e2['every'](_0x3db9c6=>_0x3194c3['some'](_0x281640=>_0x281640['containsRange'](_0x3db9c6,!0x0))))return _0x15f5fe;}(!_0x15f5fe['attributes']||!_0x15f5fe['attributes']['skipNestingCheck'])&&(_0x3194c3['every'](_0x66fc04=>_0x1c89e2['some'](_0x2d6ea6=>_0x2d6ea6['containsRange'](_0x66fc04,!0x0)))&&_0x15f5fe['discard']());}const _0xe9ecf=_0x58b607(),_0xb0f2e8=_0x5bef75['id'],_0x11fff8='deletion:'+_0xa61409,_0x283948=this['_setSuggestionData']({'id':_0xe9ecf,'type':_0x11fff8,'createdAt':new Date(),'authorId':_0xb0f2e8,'attributes':_0x210d8e});for(const _0x2d919d of _0x1c89e2)_0x2d919d['detach'](),_0x2d919d['isCollapsed']||'$graveyard'==_0x2d919d['root']['rootName']||this['_addSuggestionMarker'](_0x11fff8,_0xe9ecf,_0xb0f2e8,_0x2d919d,T['getMultiRangeId']());return _0x283948;}['markAttributeChange'](_0x5f0361,_0x365bb9,_0x103d0e,_0x1c9d29,_0x261f6c){if(_0x5f0361['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x574135=this['editor']['plugins']['get']('Users')['me']['id'],_0x4c9670=Array['from'](this['_suggestions']['values']())['filter'](_0x1e84fc=>'attribute'==_0x1e84fc['type']&&_0x1e84fc['data']['key']==_0x365bb9&&_0x1e84fc['isIntersectingWithRange'](_0x5f0361));if(this['_trackingSessionId']&&(_0x261f6c['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x5847a7=this['_findSuggestions'](_0x5f0361,'insertion')['filter'](({meta:_0x17d966})=>_0x17d966['isOwn']&&!_0x17d966['isInsideObject']&&!_0x17d966['isNextTo'])['map'](({suggestion:_0x12d91a})=>_0x12d91a);_0x4c9670['unshift'](..._0x5847a7);}const _0x15dc3f=new Map([[_0x5f0361,_0x103d0e]]);for(const _0x5c20a3 of _0x4c9670){const _0x20239a='attribute'==_0x5c20a3['type']?_0x5c20a3['data']['oldValue']:void 0x0,_0x1e2d0d=_0x5c20a3['getFirstRange'](),_0x59bcb4=Array['from'](_0x15dc3f['keys']())['find'](_0x1711d1=>_0x1711d1['isIntersecting'](_0x1e2d0d));if(!_0x59bcb4)continue;const _0x184eee=_0x59bcb4['getDifference'](_0x1e2d0d);this['_isBlockAttribute'](_0x365bb9)&&'insertion'==_0x5c20a3['type']&&0x0!=_0x184eee['length']||(_0x15dc3f['delete'](_0x59bcb4),_0x184eee['forEach'](_0x58914a=>{_0x15dc3f['set'](_0x58914a,_0x103d0e);}),'insertion'!=_0x5c20a3['type']&&_0x20239a!=_0x1c9d29&&_0x15dc3f['set'](_0x59bcb4['getIntersection'](_0x1e2d0d),_0x20239a));}const _0x425291=[];for(const [_0x373cdb,_0x433b20]of _0x15dc3f){const _0x2e14e9=_0x58b607(),_0x24ca7d={'key':_0x365bb9,'oldValue':_0x433b20,'newValue':_0x1c9d29};_0x365bb9['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':_0x365bb9});const _0xd338b0=('attribute:'+(_0x365bb9+'|'+Lt({'newValue':_0x1c9d29})))['substring'](0x0,0x3c),_0x367657=this['_setSuggestionData']({'id':_0x2e14e9,'type':_0xd338b0,'data':_0x24ca7d,'createdAt':new Date(),'authorId':_0x574135,'attributes':_0x261f6c});_0x425291['push'](_0x367657),this['_addSuggestionMarker'](_0xd338b0,_0x2e14e9,_0x574135,_0x373cdb);}return _0x425291;}['enableDefaultAttributesIntegration'](_0x7a8d70){this['enableCommand'](_0x7a8d70,(_0x19323b,..._0x374902)=>{this['recordAttributeChanges'](()=>{_0x19323b(..._0x374902);});});}['registerBlockAttribute'](_0x513390){this['_blockAttributeKeys']['add'](_0x513390);}['registerInlineAttribute'](_0x5b12bc){this['_inlineAttributeKeys']['add'](_0x5b12bc);}['startTrackingSession'](_0x58456d){return this['_trackingSessionId']=void 0x0!==_0x58456d?_0x58456d:_0x58b607(),this['_trackingSessionId'];}['_getAttributeKey'](_0x248037){return'attribute'==_0x248037['type']?_0x248037['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xf6aa29,_0xe700e0){const _0x3d3ed1=_0xf6aa29['getFirstMarker']();this['_model']['change'](_0x115f64=>{_0x115f64['updateMarker'](_0x3d3ed1,{'range':_0xe700e0});});}['_addThreadToSuggestion'](_0x79f77e){const _0x56deed=_0x79f77e['id'],_0x54eae9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x56deed)||this['_commentsRepository']['addCommentThread']({'channelId':_0x54eae9,'threadId':_0x56deed,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3202d2=this['_commentsRepository']['getCommentThread'](_0x56deed);_0x3202d2['unbind']('isRemovable'),_0x3202d2['isRemovable']=!0x1,_0x79f77e['commentThread']=_0x3202d2;}['_checkSuggestionCorrectness'](_0x54a43a,_0x1ff6a4,_0x4a6675,_0x1fc29b){if(_0x54a43a['type']!=_0x1ff6a4||_0x54a43a['subType']!=_0x4a6675||_0x54a43a['creator']['id']!=_0x1fc29b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x280c51('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x6a25b7,_0x514d65){const _0x821e92=_0x6a25b7['getFirstRange']();if(_0x514d65['isEqual'](_0x821e92))_0x6a25b7['removeMarkers']();else{if(_0x821e92['containsRange'](_0x514d65)){const _0x536799=this['_model']['createPositionAt'](_0x514d65['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x6a25b7,this['_model']['createRange'](_0x821e92['start'],_0x536799));const _0x5ea922=_0x58b607(),_0x1c4882=_0x6a25b7['creator']['id'],_0x1ae868=_0x6a25b7['type']+':'+_0x6a25b7['subType'];this['_setSuggestionData']({'id':_0x5ea922,'type':_0x1ae868,'createdAt':new Date(),'authorId':_0x1c4882,'data':_0x6a25b7['data'],'attributes':_0x6a25b7['attributes']});const _0xcd6eec=this['_model']['createPositionAt'](_0x514d65['end']['parent'],'after'),_0x1a8c4a=this['_model']['createRange'](_0xcd6eec,_0x821e92['end']);this['_addSuggestionMarker'](_0x1ae868,_0x5ea922,_0x1c4882,_0x1a8c4a);}else{if(_0x821e92['containsPosition'](_0x514d65['start'])){const _0x348b70=this['_model']['createPositionAt'](_0x514d65['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x6a25b7,this['_model']['createRange'](_0x821e92['start'],_0x348b70));}else{const _0x25477f=this['_model']['createPositionAt'](_0x514d65['end']['parent'],'after');this['_setSuggestionRange'](_0x6a25b7,this['_model']['createRange'](_0x25477f,_0x821e92['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1e2742){for(const {suggestion:_0x24d2b7,meta:_0x41216d}of this['_findSuggestions'](_0x1e2742,'insertion')){if(!_0x41216d['isOwn'])continue;const _0x100870=_0x24d2b7['getRanges']();for(const _0x3921d3 of _0x100870)if(!_0x1e2742['getDifference'](_0x3921d3)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x32a99f){const _0x2dcfc6=this['editor']['plugins']['get']('Users')['getUser'](_0x32a99f);if(!_0x2dcfc6)throw new _0x280c51('track-changes-user-not-found',this);return _0x2dcfc6;}['_getExternalAuthor'](_0x5ce9e4){const _0x39883a=this['editor']['plugins']['get']('Users'),_0xaf7c84=_0x3cef01('external:'+_0x5ce9e4),_0x592b27=_0x39883a['getUser'](_0xaf7c84);return _0x592b27||_0x39883a['addUser']({'id':_0xaf7c84,'name':_0x5ce9e4});}['_createSuggestion'](_0x355603,_0x1cc101,_0x1b6a11,_0x467e2f,_0x484011,_0xcc9502){const _0x41efb1=this['_getAuthorFromId'](_0x467e2f),_0x59c032=this['_suggestionFactory']['buildSuggestion'](_0x355603,_0x1cc101,_0x1b6a11,_0x41efb1,_0x484011,_0x227524=>{this['_updateSuggestionData'](_0x1b6a11,{'attributes':_0x227524});const _0x439fb5=this['getSuggestion'](_0x1b6a11);this['_joinWithAdjacentSuggestions'](new Set([_0x439fb5])),this['_refreshSuggestionsChain'](new Set([_0x439fb5]));},_0xcc9502);return this['listenTo'](_0x59c032,'accept',()=>{this['_updateSuggestionData'](_0x1b6a11,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x59c032,'discard',()=>{this['_updateSuggestionData'](_0x1b6a11,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1b6a11,_0x59c032),this['_suggestionState']['set'](_0x59c032,'notReady'),_0x59c032;}['_splitMarkerName'](_0x4b968b){const _0x31b51c=_0x4b968b['split'](':');return{'group':_0x31b51c[0x0],'type':_0x31b51c[0x1],'subType':_0x31b51c['length']>=0x5?_0x31b51c[0x2]:null,'id':_0x31b51c['length']<0x5?_0x31b51c[0x2]:_0x31b51c[0x3],'authorId':_0x31b51c['length']<0x5?_0x31b51c[0x3]:_0x31b51c[0x4],'markerCount':0x6==_0x31b51c['length']?_0x31b51c[0x5]:null};}['_breakSuggestionMarker'](_0xbbd6c3,_0x30150e,_0x2993ff){const _0x1e5a5e=_0xbbd6c3['getFirstRange'](),_0xb9a371=_0x1e5a5e['start'],_0x27ad00=_0x1e5a5e['end'];this['_setSuggestionRange'](_0xbbd6c3,this['_model']['createRange'](_0xb9a371,_0x30150e));const _0x5edd95=_0x58b607(),_0x2f3917=_0xbbd6c3['creator']['id'],_0x256ae9=_0xbbd6c3['type']+(_0xbbd6c3['subType']?':'+_0xbbd6c3['subType']:'');this['_setSuggestionData']({'id':_0x5edd95,'type':_0x256ae9,'createdAt':new Date(),'authorId':_0x2f3917,'originalSuggestionId':_0xbbd6c3['_originalSuggestionId']||_0xbbd6c3['id'],'attributes':_0xbbd6c3['attributes'],'data':_0xbbd6c3['data']});const _0x120719=this['_getAttributeKey'](_0xbbd6c3);('formatBlock'==_0xbbd6c3['type']||_0x120719&&this['_isBlockAttribute'](_0x120719))&&(_0x2993ff=this['_model']['createPositionBefore'](_0x2993ff['parent'])),this['_addSuggestionMarker'](_0x256ae9,_0x5edd95,_0x2f3917,this['_model']['createRange'](_0x2993ff,_0x27ad00));}['_findSuggestions'](_0x26deda,_0x2419a2=null){const _0xc80b25=[],_0x5a3e16=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x26deda)||(_0x26deda=[_0x26deda]);for(const _0x3af6fa of this['getSuggestions']()){if(!_0x3af6fa['isInContent'])continue;if(_0x2419a2&&_0x3af6fa['type']!=_0x2419a2)continue;let _0x457f54=!0x1;for(const _0xd75909 of _0x3af6fa['getRanges']()){for(const _0x2b3ecb of _0x26deda){const _0x9229a=_0x2b3ecb['start']['isEqual'](_0xd75909['end'])||_0x2b3ecb['end']['isEqual'](_0xd75909['start']);if(_0x9229a||_0x2b3ecb['getIntersection'](_0xd75909)){const _0x1bb1b3=_0x2b3ecb['containsRange'](_0xd75909)&&Ft(this['_model']['schema'],_0xd75909['start'],_0x2b3ecb),_0x1fe803=_0xd75909['containsRange'](_0x2b3ecb)&&Ft(this['_model']['schema'],_0x2b3ecb['start'],_0xd75909);_0xc80b25['push']({'suggestion':_0x3af6fa,'meta':{'isOwn':_0x5a3e16==_0x3af6fa['author'],'isNextTo':_0x9229a,'isInsideObject':_0x1bb1b3,'containsRangeInObject':_0x1fe803}}),_0x457f54=!0x0;break;}}if(_0x457f54)break;}}return _0xc80b25;}['_addSuggestionMarker'](_0x259ec4,_0x44aedd,_0x40160f,_0x208330,_0x453140){this['_model']['change'](_0x2096b4=>{let _0x370c34='suggestion:'+_0x259ec4+':'+_0x44aedd+':'+_0x40160f;_0x453140&&(_0x370c34=_0x370c34+':'+_0x453140),_0x2096b4['addMarker'](_0x370c34,{'range':_0x208330,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3195b6){const _0x370262=_0x3195b6['previous'],_0x3e6497=_0x3195b6['next'];_0x3195b6['previous']=null,_0x3195b6['next']=null,null!=_0x370262&&_0x370262['next']==_0x3195b6&&(_0x370262['next']=_0x3e6497),null!=_0x3e6497&&_0x3e6497['previous']==_0x3195b6&&(_0x3e6497['previous']=_0x370262),'ready'==this['_suggestionState']['get'](_0x3195b6)&&(this['_suggestionState']['set'](_0x3195b6,'removed'),this['fire']('suggestionUnloaded',_0x3195b6,_0x370262,_0x3e6497));}['_setSuggestionData'](_0x154a0d){const _0x43c150=_0x154a0d['id'],_0x2da5c8=this['addSuggestionData'](_0x154a0d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1b4f82=this['editor']['plugins']['get']('PendingActions'),_0x3bc66e=_0x2da5c8['hasComments'],_0x26c59a=_0x2da5c8['subType']?_0x2da5c8['type']+':'+_0x2da5c8['subType']:_0x2da5c8['type'],_0x452e4c=this['editor']['locale'],_0x45474b=_0x1b4f82['add'](o(_0x452e4c,'PENDING_ACTION_SUGGESTION')),_0x2a085f={'id':_0x43c150,'type':_0x26c59a,'hasComments':_0x3bc66e,'data':_0x154a0d['data']||null,'originalSuggestionId':_0x154a0d['originalSuggestionId']||null,'attributes':_0x2da5c8['attributes']};this['_adapter']['addSuggestion'](_0x2a085f)['then'](_0x1e23d9=>{_0x2da5c8['_saved']=!0x0,_0x1b4f82['remove'](_0x45474b),_0x1e23d9&&_0x1e23d9['createdAt']&&(this['_suggestions']['get'](_0x43c150)['createdAt']=_0x1e23d9['createdAt']);})['catch'](_0x5c74d=>{throw _0x282b91('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2da5c8['discard']();}),_0x2da5c8['stopListening'](),this['_suggestions']['delete'](_0x2da5c8['id']),this['_suggestionState']['delete'](_0x2da5c8),_0x5c74d;});}return _0x2da5c8;}['_isBlockAttribute'](_0x2e70ba){return this['_blockAttributeKeys']['has'](_0x2e70ba);}['_isInlineAttribute'](_0x14d9b4){return this['_inlineAttributeKeys']['has'](_0x14d9b4);}['_updateSuggestionData'](_0x3f6b6d,_0x445f51){const _0x1cc227=this['editor']['plugins']['get']('PendingActions'),_0x5d05e7=this['getSuggestion'](_0x3f6b6d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5d05e7['_saved']){const _0x2b0861=_0x1cc227['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3f6b6d,_0x445f51)['then'](()=>{_0x1cc227['remove'](_0x2b0861);});}else _0x5d05e7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3f6b6d,_0x445f51);});}}['_getSuggestionData'](_0x44918f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x280c51('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x44918f);}['_handleNewSuggestionMarker'](_0x12bce8){const {id:_0x229f39,type:_0x4e8bd6,subType:_0x56a989,authorId:_0x425450}=this['_splitMarkerName'](_0x12bce8),_0x5300d4=this['_suggestions']['get'](_0x229f39)||this['_createSuggestion'](_0x4e8bd6,_0x56a989,_0x229f39,_0x425450,{});switch(this['_checkSuggestionCorrectness'](_0x5300d4,_0x4e8bd6,_0x56a989,_0x425450),this['_suggestionState']['get'](_0x5300d4)){case'notReady':this['_getSuggestionData'](_0x229f39)['then'](_0x4ae62d=>{let _0x2e60e0=Promise['resolve']();_0x4ae62d['hasComments']&&(_0x2e60e0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x229f39})),_0x2e60e0['then'](()=>{this['addSuggestionData'](_0x4ae62d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5300d4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x229f39,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5300d4,'ready'),this['fire']('suggestionLoaded',_0x5300d4);break;case'ready':this['fire']('suggestionChanged',_0x5300d4);}return _0x5300d4['addMarkerName'](_0x12bce8),_0x5300d4;}['_refreshSuggestionsChain'](_0x3f14c8){const _0x46d4e1=Array['from'](_0x3f14c8),_0x242942=_0x46d4e1['filter'](_0xb352b1=>'attribute'==_0xb352b1['type']);this['_refreshAttributeSuggestionsChain'](_0x242942);const _0xaadfb=_0x46d4e1['filter'](_0x102ac9=>!_0x102ac9['isMultiRange']&&'attribute'!=_0x102ac9['type']),_0x4b0289=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d5f43=>!_0x1d5f43['isMultiRange']&&'attribute'!=_0x1d5f43['type']),_0x473682=_0x4b0289['filter'](_0x4e9d5e=>!_0x3f14c8['has'](_0x4e9d5e)),_0x10074b=new Map(_0x4b0289['map'](_0xf6ee11=>[_0xf6ee11,this['_suggestionFactory']['getSuggestionCallback'](_0xf6ee11['type'],_0xf6ee11['subType'],'chain')])),_0x4d30ed=new Map(_0x4b0289['map'](_0x2451fc=>[_0x2451fc,_0x2451fc['getFirstRange']()])),_0x1c0a92=new Set(),_0x8583ca=new Set();for(let _0x43fae9=0x0;_0x43fae9<_0xaadfb['length'];_0x43fae9++)_0x1baf88(_0xaadfb[_0x43fae9],_0xaadfb,_0x43fae9+0x1);for(let _0x16cba4=0x0;_0x16cba4<_0xaadfb['length'];_0x16cba4++)_0x1baf88(_0xaadfb[_0x16cba4],_0x473682,0x0);const _0x349700=new Set();for(let _0x5e5ba8=0x0;_0x5e5ba8<_0xaadfb['length'];_0x5e5ba8++){const _0x383c2b=_0xaadfb[_0x5e5ba8];!_0x8583ca['has'](_0x383c2b)&&_0x383c2b['previous']&&(_0x349700['add'](_0x383c2b['previous']),_0x383c2b['previous']['next']===_0x383c2b&&(_0x383c2b['previous']['next']=null),_0x383c2b['previous']=null),!_0x1c0a92['has'](_0x383c2b)&&_0x383c2b['next']&&(_0x349700['add'](_0x383c2b['next']),_0x383c2b['next']['previous']===_0x383c2b&&(_0x383c2b['next']['previous']=null),_0x383c2b['next']=null);}function _0x1baf88(_0x3b9f7f,_0x3f1a53,_0x312f16){for(let _0x3a026a=_0x312f16;_0x3a026a<_0x3f1a53['length'];_0x3a026a++){const _0x2dd8fc=_0x3161c7(_0x3b9f7f,_0x3f1a53[_0x3a026a]);_0x2dd8fc&&(_0x2dd8fc[0x0]['next']=_0x2dd8fc[0x1],_0x2dd8fc[0x1]['previous']=_0x2dd8fc[0x0],_0x1c0a92['add'](_0x2dd8fc[0x0]),_0x8583ca['add'](_0x2dd8fc[0x1]));}}function _0x3161c7(_0x52c17d,_0x14bf10){if(_0x52c17d['author']['id']!==_0x14bf10['author']['id'])return null;const _0xc62978=_0x10074b['get'](_0x52c17d)(_0x52c17d,_0x14bf10,_0x4d30ed['get'](_0x52c17d),_0x4d30ed['get'](_0x14bf10));if(!_0xc62978)return null;return _0x10074b['get'](_0x14bf10)(_0x52c17d,_0x14bf10,_0x4d30ed['get'](_0x52c17d),_0x4d30ed['get'](_0x14bf10))?_0xc62978[0x1]['commentThread']&&_0xc62978[0x1]['commentThread']['length']?null:_0xc62978:null;}_0x349700['size']&&this['_refreshSuggestionsChain'](_0x349700);}['_refreshAttributeSuggestionsChain'](_0x1d05ef){if(0x0==_0x1d05ef['length'])return;const _0x1a7c95=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22091b=>'attribute'==_0x22091b['type']&&_0x22091b['_isDataLoaded']),_0x56545a=[],_0x1c0283=new Map();for(const _0x2b1a22 of _0x1a7c95){const _0x4aac38=_0x3cef01(_0x2b1a22['attributes']);_0x1c0283['has'](_0x4aac38)||(_0x1c0283['set'](_0x4aac38,_0x56545a['length']),_0x56545a['push']([]));const _0x397acc=_0x1c0283['get'](_0x4aac38);_0x56545a[_0x397acc]['push'](_0x2b1a22);}!(function(){_0x56545a['sort']((_0x2c06e6,_0x571174)=>{const _0x14d9c9=_0x2c06e6[0x0]['createdAt'],_0x1a4c26=_0x571174[0x0]['createdAt'];return _0x14d9c9==_0x1a4c26?_0x2c06e6[0x0]['attributes']['groupId']<_0x571174[0x0]['attributes']['groupId']?-0x1:0x1:_0x14d9c9<_0x1a4c26?-0x1:0x1;});for(const _0x2a3585 of _0x56545a)_0x2a3585['sort']((_0x968500,_0x3daadd)=>_0x968500['id']<_0x3daadd['id']?-0x1:0x1);}());for(let _0x16b335=0x0;_0x16b335<_0x56545a['length'];_0x16b335++){if(0x0==_0x56545a[_0x16b335]['length'])continue;const _0x29937d=[];for(let _0x5f2080=_0x16b335+0x1;_0x5f2080<_0x56545a['length'];_0x5f2080++)0x0!=_0x56545a[_0x5f2080]['length']&&_0x1f1070(_0x56545a[_0x16b335],_0x56545a[_0x5f2080])&&_0x29937d['push'](_0x5f2080);for(const _0xe7d717 of _0x29937d)_0x56545a[_0x16b335]=_0x56545a[_0x16b335]['concat'](_0x56545a[_0xe7d717]),_0x56545a[_0xe7d717]=[];}for(const _0x2239af of _0x56545a)for(let _0x464cfc=0x0;_0x464cfc<_0x2239af['length'];_0x464cfc++){const _0x44004a=_0x2239af[_0x464cfc+0x1]||null;_0x2239af[_0x464cfc]['next']!==_0x44004a&&(_0x2239af[_0x464cfc]['next']=_0x44004a);}for(const _0x320954 of _0x56545a)for(let _0x106b8e=0x0;_0x106b8e<_0x320954['length'];_0x106b8e++){const _0x1515a7=_0x320954[_0x106b8e-0x1]||null;_0x320954[_0x106b8e]['previous']!==_0x1515a7&&(_0x320954[_0x106b8e]['previous']=_0x1515a7);}function _0x1f1070(_0x5f028e,_0x469bca){if(_0x5f028e[0x0]['attributes']['groupId']!==_0x469bca[0x0]['attributes']['groupId']&&_0x5f028e[0x0]['author']!==_0x469bca[0x0]['author'])return!0x1;if(!function(_0x2b9cbb,_0x3f3b5e){if(!_0x2b9cbb['hasComments']&&!_0x3f3b5e['hasComments'])return!0x0;if(_0x2b9cbb['hasComments']&&_0x3f3b5e['hasComments'])return!0x1;if(_0x2b9cbb['hasComments']&&_0x3f3b5e['createdAt']<_0x2b9cbb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3f3b5e['hasComments']&&_0x2b9cbb['createdAt']<_0x3f3b5e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5f028e[0x0],_0x469bca[0x0]))return!0x1;const _0x2d75bf=Ut(_0x5f028e[0x0]['attributes'],['groupId','trackingSessionId']),_0x3c7ce4=Ut(_0x469bca[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x21362d(_0x2d75bf,_0x3c7ce4))return!0x1;if(_0x5f028e[0x0]['attributes']['groupId']==_0x469bca[0x0]['attributes']['groupId'])return!0x0;if(_0x5f028e[0x0]['attributes']['trackingSessionId']!==_0x469bca[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5f028e['every'](_0x483919=>_0x469bca['some'](_0x18a712=>_0x483919['getFirstRange']()['isEqual'](_0x18a712['getFirstRange']())))&&_0x469bca['every'](_0x39f24b=>_0x5f028e['some'](_0x2c4c5b=>_0x39f24b['getFirstRange']()['isEqual'](_0x2c4c5b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x277e16){const _0x5f23e1=Array['from'](_0x277e16),_0x4fa01e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4f1bf2=_0x4fa01e['filter'](_0x23b529=>!_0x277e16['has'](_0x23b529)),_0x1753c2=new Map(_0x5f23e1['map'](_0x1f2b75=>[_0x1f2b75,this['_suggestionFactory']['getSuggestionCallback'](_0x1f2b75['type'],_0x1f2b75['subType'],'join')])),_0x26c6cf=new Map(_0x4fa01e['map'](_0x3ea15c=>[_0x3ea15c,_0x3ea15c['getRanges']()]));for(let _0x1fa1ad=0x0;_0x1fa1ad<_0x5f23e1['length'];_0x1fa1ad++){if(_0x593d6e(this,_0x5f23e1[_0x1fa1ad],_0x5f23e1,_0x1fa1ad+0x1))return!0x0;}for(let _0x458bfc=0x0;_0x458bfc<_0x5f23e1['length'];_0x458bfc++){if(_0x593d6e(this,_0x5f23e1[_0x458bfc],_0x4f1bf2,0x0))return!0x0;}return!0x1;function _0x593d6e(_0x2dc3bb,_0x363a7e,_0x593d06,_0x2c64f0){for(let _0x5ab61b=_0x2c64f0;_0x5ab61b<_0x593d06['length'];_0x5ab61b++){const _0x238f71=_0x593d06[_0x5ab61b];if(_0x238f71['type']!==_0x363a7e['type']||_0x238f71['author']['id']!==_0x363a7e['author']['id']||_0x238f71['subType']!==_0x363a7e['subType'])continue;if(!Qt(_0x363a7e,_0x238f71))continue;if('attribute'==_0x363a7e['type']&&_0x363a7e['data']['oldValue']!=_0x238f71['data']['oldValue'])continue;if('attribute'==_0x363a7e['type']&&_0x2dc3bb['_isBlockAttribute'](_0x363a7e['data']['key']))continue;if('formatBlock'==_0x363a7e['type']){const _0x1ce5f2=_0x2dc3bb['editor']['model'],_0x9f5e0b=_0x363a7e['getContainedElement']();if(_0x9f5e0b&&(_0x1ce5f2['schema']['isObject'](_0x9f5e0b)||_0x1ce5f2['schema']['isLimit'](_0x9f5e0b)))continue;}const _0x4275dd=_0x1753c2['get'](_0x363a7e),_0x2dbe48=_0x26c6cf['get'](_0x363a7e),_0x372196=_0x26c6cf['get'](_0x238f71),_0x1f7eb1=_0x363a7e['commentThread']&&_0x363a7e['commentThread']['length'],_0x5ae690=_0x238f71['commentThread']&&_0x238f71['commentThread']['length'];if(!_0x1f7eb1&&_0x4275dd(_0x372196,_0x2dbe48))return _0x2dc3bb['_joinSuggestions'](_0x238f71,_0x363a7e),_0x26c6cf['delete'](_0x363a7e),!0x0;if(!_0x5ae690&&_0x4275dd(_0x2dbe48,_0x372196))return _0x2dc3bb['_joinSuggestions'](_0x363a7e,_0x238f71),_0x26c6cf['delete'](_0x238f71),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2410b3,_0x127064){if(_0x2410b3['isMultiRange']){for(const _0x306118 of _0x127064['getRanges']())_0x2410b3['addRange'](_0x306118);}else{const _0x39daa1=_0x127064['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2410b3,this['_model']['createRange'](_0x2410b3['getFirstRange']()['start'],_0x39daa1));}_0x127064['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3c42c3,_0x30139c,_0x293147){const _0x246f65=_0x3c42c3['startsWith']('format')||_0x3c42c3['startsWith']('attribute')?'FORMATTING':_0x3c42c3['toUpperCase']();return o(this['editor']['locale'],_0x30139c+'_'+_0x246f65+'_SUGGESTION_ANNOUNCEMENT',_0x293147);}['_initAriaMarkerChangeAnnouncements'](){const _0x83be95=this['editor'];if(!_0x83be95['ui'])return;const {ariaLiveAnnouncer:_0x27c9fc}=_0x83be95['ui'];_0x1a8787(this['_model'],({left:_0x39130b,entered:_0xe69ffb})=>{for(const _0x132ab9 of _0x39130b){const {group:_0x30d2c7,type:_0x6fbe3d}=this['_splitMarkerName'](_0x132ab9['name']);if('suggestion'===_0x30d2c7){_0x27c9fc['announce'](this['_getMarkerAnnouncementText'](_0x6fbe3d,'LEAVE'));break;}}for(const _0x3978b0 of _0xe69ffb){const {group:_0x4b2cf8,type:_0x5d5746}=this['_splitMarkerName'](_0x3978b0['name']);if('suggestion'===_0x4b2cf8){_0x27c9fc['announce'](this['_getMarkerAnnouncementText'](_0x5d5746,'ENTER',_0x42806c(_0x1e2046)));break;}}});}['_processAttributeChanges'](_0x274d38){if(this['_recordAttributeSuggestions'])return!0x1;const _0x56e87a=this['editor'],_0x59f421=_0x56e87a['model']['document']['differ']['getChanges']();if(0x0==_0x59f421['length'])return!0x1;const _0x5070f3=[],_0x3d9917=_0x59f421['filter'](_0x2e12bf=>'attribute'==_0x2e12bf['type']),_0x58a7a2=_0x59f421['filter'](_0x44851f=>'insert'==_0x44851f['type']&&'$text'!=_0x44851f['name']),_0x11acb2=_0x59f421['filter'](_0x9d5d8c=>'remove'==_0x9d5d8c['type']&&'$text'!=_0x9d5d8c['name']);for(const _0x59db4e of _0x3d9917)_0x5070f3['push']({'key':_0x59db4e['attributeKey'],'newValue':_0x59db4e['attributeNewValue'],'oldValue':_0x59db4e['attributeOldValue'],'range':qt(_0x59db4e['range'],_0x56e87a['model'])});for(const _0x5bb1c1 of _0x58a7a2){const _0x53df2c=_0x11acb2['find'](_0x1e58a7=>_0x1e58a7['position']['isEqual'](_0x5bb1c1['position']));_0x53df2c&&_0x5070f3['push']({'key':m,'newValue':_0x5bb1c1['name'],'oldValue':_0x53df2c['name'],'range':_0x56e87a['model']['createRangeOn'](_0x5bb1c1['position']['nodeAfter'])});}return 0x0!=_0x5070f3['length']&&this['_reduceExistingSuggestions'](_0x274d38,_0x5070f3);}['_processAttributeSuggestions'](_0x26fd57){let _0x3e47f6=!0x1;const _0x5cc146=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1e8148=>_0x1e8148['data']['newRange']&&_0x1e8148['name']['startsWith']('suggestion:attribute:'));for(const _0x29b70f of _0x5cc146){const {subType:_0x1e19c5,id:_0x2cc563}=this['_splitMarkerName'](_0x29b70f['name']),_0x495d15=_0x1e19c5['split']('|')[0x0];for(const _0x800e4f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x800e4f['id']!=_0x2cc563&&'attribute'==_0x800e4f['type']&&_0x800e4f['data']&&_0x800e4f['data']['key']==_0x495d15&&_0x800e4f['getFirstRange']()['isIntersecting'](_0x29b70f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x800e4f,_0x29b70f['data']['newRange'],_0x26fd57),_0x3e47f6=!0x0);}return _0x3e47f6;}['recordAttributeChanges'](_0x5d95e4){this['_recordAttributeSuggestions']=!0x0,_0x5d95e4();}['_isRegisteredAttribute'](_0x32dda4){const _0x441f00=this['_isBlockAttribute'](_0x32dda4),_0x4674a5=this['_isInlineAttribute'](_0x32dda4);return _0x441f00||_0x4674a5;}['_reduceExistingSuggestions'](_0x15ac9e,_0x17c58e){if(0x0==_0x17c58e['length'])return!0x1;let _0x10323b=!0x1;for(const _0x23346d of _0x17c58e){const _0x21fee4=this['_findSuggestions'](_0x23346d['range'],'attribute')['filter'](_0x2f27fb=>!_0x2f27fb['meta']['isNextTo'])['map'](_0x2d272a=>_0x2d272a['suggestion']),_0x507a36=_0x3cef01({'newValue':_0x23346d['newValue']});_0x21fee4['filter'](_0x3aedae=>{const [_0x4a8f7e,_0x32a8c1]=_0x3aedae['subType']['split']('|');return _0x4a8f7e==_0x23346d['key']&&_0x32a8c1!=_0x507a36;})['forEach'](_0x15bd9c=>{this['_reduceSuggestionAttributeRange'](_0x15bd9c,_0x23346d['range'],_0x15ac9e),_0x10323b=!0x0;});}return _0x10323b;}['_reduceSuggestionAttributeRange'](_0x3d8cf1,_0x40e20b,_0x12dc58){const _0x3946c6=_0x3d8cf1['getFirstRange']()['getDifference'](_0x40e20b);0x0!==_0x3946c6['length']?0x1!==_0x3946c6['length']?this['_breakSuggestionMarker'](_0x3d8cf1,_0x40e20b['start'],_0x40e20b['end']):this['_setSuggestionRange'](_0x3d8cf1,_0x3946c6[0x0]):_0x12dc58['removeMarker'](_0x3d8cf1['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1723cb){this['_editor']=_0x1723cb,this['_model']=_0x1723cb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4fe766,_0x41b28f,_0x185fd0,_0x49603e,_0x5ed81b,_0x1690be,_0x10bd4c){return new T(this['_model'],{'type':_0x4fe766,'subType':_0x41b28f,'id':_0x185fd0,'originalSuggestionId':_0x10bd4c,'author':_0x49603e,'creator':_0x49603e,'attributes':_0x5ed81b,'onAttributesChange':_0x1690be,'onAccept':(..._0x1e136b)=>this['getSuggestionCallback'](_0x4fe766,_0x41b28f,'accept')(..._0x1e136b),'onDiscard':(..._0x6845cd)=>this['getSuggestionCallback'](_0x4fe766,_0x41b28f,'discard')(..._0x6845cd)});}['registerCustomCallback'](_0x2e87ca,_0x247c0f,_0x4f4a72,_0x4fdd6e){const _0x547472=_0x2e87ca+':'+_0x247c0f+':'+_0x4f4a72;this['_customCallbacks']['set'](_0x547472,_0x4fdd6e);}['getSuggestionCallback'](_0x3ed9dc,_0x918c5e,_0x40223f){const _0x241477=_0x3ed9dc+':'+_0x918c5e+':'+_0x40223f;return this['_customCallbacks']['get'](_0x241477)||this['_defaultCallbacks']['get'](_0x3ed9dc+':'+_0x40223f);}['_registerDefaultCallbacks'](){const _0x4765c9=()=>!0x1,_0x5b6a17=_0x4af6ac=>{_0x4af6ac['sort']((_0x3e7235,_0x16f6d2)=>_0x3e7235['start']['isBefore'](_0x16f6d2['start'])?0x1:-0x1),this['_model']['change'](_0x2fefc1=>{for(const _0x51f6bb of _0x4af6ac){let _0x52ccd8;_0x52ccd8=_0x51f6bb['end']['isAtEnd']&&_0x51f6bb['end']['parent']==_0x51f6bb['start']['nodeAfter']?_0x2fefc1['createSelection'](_0x51f6bb['start']['nodeAfter'],'on'):_0x2fefc1['createSelection'](_0x51f6bb),this['_model']['deleteContent'](_0x52ccd8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x31186b=(_0x1afbf7,_0x4a9514)=>{_0x4a9514&&this['_model']['change'](_0x81a973=>{const {commandName:_0x5ca764,commandParams:_0x27f631=[]}=_0x4a9514,_0x22c1dd=_0x1afbf7['map'](_0x2e7e84=>(Pt(_0x2e7e84)&&(_0x2e7e84=this['_model']['createRange'](_0x2e7e84['end'])),_0x2e7e84))['filter'](_0x4631c8=>'$graveyard'!==_0x4631c8['root']['rootName']);if(_0x22c1dd['length']<0x1)return;const _0x576946=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4faba1=>_0x153d61['fromRange'](_0x4faba1));_0x81a973['setSelection'](_0x22c1dd);for(const _0x5e8f2d of this['_editor']['commands']['commands']())_0x5e8f2d['refresh']();_0x27f631['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5ca764,..._0x27f631);const _0x1676aa=_0x576946['filter'](_0x1c1efb=>'$graveyard'!=_0x1c1efb['root']['rootName']);_0x1676aa['length']>0x0&&_0x81a973['setSelection'](_0x1676aa);for(const _0x181882 of _0x576946)_0x181882['detach']();});},_0x1174d9=(_0x5e8e29,_0x4a1896)=>0x1==_0x5e8e29['length']&&0x1==_0x4a1896['length']&&_0x5e8e29[0x0]['end']['isEqual'](_0x4a1896[0x0]['start']),_0x2c7b8f=(_0x3b3f17,_0x56026f,_0x404a5e,_0x5863bb)=>Wt(_0x3b3f17,_0x56026f,_0x404a5e,_0x5863bb)?[_0x3b3f17,_0x56026f]:Wt(_0x56026f,_0x3b3f17,_0x5863bb,_0x404a5e)?[_0x56026f,_0x3b3f17]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4765c9),this['_defaultCallbacks']['set']('insertion:discard',_0x5b6a17),this['_defaultCallbacks']['set']('insertion:join',_0x1174d9),this['_defaultCallbacks']['set']('insertion:chain',_0x2c7b8f),this['_defaultCallbacks']['set']('deletion:accept',_0x5b6a17),this['_defaultCallbacks']['set']('deletion:discard',_0x4765c9),this['_defaultCallbacks']['set']('deletion:join',_0x1174d9),this['_defaultCallbacks']['set']('deletion:chain',_0x2c7b8f),this['_defaultCallbacks']['set']('formatInline:accept',_0x31186b),this['_defaultCallbacks']['set']('formatInline:discard',_0x4765c9),this['_defaultCallbacks']['set']('formatInline:join',_0x1174d9),this['_defaultCallbacks']['set']('formatInline:chain',_0x4765c9),this['_defaultCallbacks']['set']('formatBlock:accept',_0x31186b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4765c9),this['_defaultCallbacks']['set']('formatBlock:join',_0x1174d9),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4765c9),this['_defaultCallbacks']['set']('attribute:accept',_0x4765c9),this['_defaultCallbacks']['set']('attribute:discard',(_0x5f3144,_0xfbd0dd)=>{if(!_0xfbd0dd)return;const _0x2a1fd5=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x3d2c09=>{if(_0xfbd0dd['key']==m)for(const _0x1add20 of _0x5f3144){const _0xc2dd26=_0x1add20['start']['nodeAfter'],_0x49efaa=_0xfbd0dd['oldValue'];_0x3d2c09['rename'](_0xc2dd26,_0x49efaa);}else{if(_0x2a1fd5['_isBlockAttribute'](_0xfbd0dd['key'])){for(const _0xdcdbfd of _0x5f3144)void 0x0!==_0xfbd0dd['oldValue']?_0x3d2c09['setAttribute'](_0xfbd0dd['key'],_0xfbd0dd['oldValue'],_0xdcdbfd['start']['nodeAfter']):_0x3d2c09['removeAttribute'](_0xfbd0dd['key'],_0xdcdbfd['start']['nodeAfter']);}else{for(const _0x491fef of _0x5f3144)_0xfbd0dd['oldValue']?_0x3d2c09['setAttribute'](_0xfbd0dd['key'],_0xfbd0dd['oldValue'],_0x491fef):_0x3d2c09['removeAttribute'](_0xfbd0dd['key'],_0x491fef);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1174d9);}}function Ft(_0x3f2971,_0x2564af,_0x571817){for(const _0x46a2d7 of _0x2564af['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x46a2d7['root']==_0x46a2d7)return!0x1;if(!_0x571817['containsItem'](_0x46a2d7))return!0x1;if(_0x3f2971['isObject'](_0x46a2d7)||_0x3f2971['isLimit'](_0x46a2d7))return!0x0;}return!0x1;}function Pt(_0x3eb904){return _0x3eb904['end']['parent']==_0x3eb904['start']['nodeAfter']&&_0x3eb904['end']['isAtStart'];}function Gt(_0x4b6481,_0x1fd852,_0x3b38c9,_0x2dca45){const _0x37b023=_0x2c0ac1=>!_0x2c0ac1['item']['is']('$textProxy')&&!_0x2dca45['isObject'](_0x2c0ac1['item']),_0x136c64=_0x4b6481['start']['getLastMatchingPosition'](_0x37b023),_0x4c58e9=_0x4b6481['end']['getLastMatchingPosition'](_0x37b023,{'direction':'backward'});return(!_0x4b6481['start']['isEqual'](_0x136c64)||!_0x4b6481['end']['isEqual'](_0x4c58e9))&&(_0x136c64['isBefore'](_0x4c58e9)?_0x3b38c9['updateMarker'](_0x1fd852,{'range':_0x3b38c9['createRange'](_0x136c64,_0x4c58e9)}):_0x3b38c9['removeMarker'](_0x1fd852),!0x0);}function Lt(_0x24292a){return _0x3cef01(_0x24292a);}function Jt(_0x423eb3){const _0x51591f=_0x423eb3['start']['nodeAfter'];return _0x51591f&&_0x51591f['is']('element');}function Kt(_0x3f840a){return Pt(_0x3f840a)||function(_0x562a7c){return _0x562a7c['start']['parent']==_0x562a7c['end']['nodeBefore']&&_0x562a7c['start']['isAtEnd'];}(_0x3f840a);}function Ht(_0x26ace5,_0x185a44){try{const _0x11cf44=_0x26ace5['getRange']();for(const _0x199b0d of _0x185a44)if(_0x26ace5!==_0x199b0d&&_0x11cf44&&_0x11cf44['isIntersecting'](_0x199b0d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x1c5354,_0x2e7784){return null==_0x1c5354['end']['nodeBefore']&&_0x1c5354['end']['parent']==_0x1c5354['start']['nodeAfter']?zt(_0x1c5354['start']['nodeAfter'],_0x2e7784):_0x1c5354;}function zt(_0x3f131a,_0x5ba91b){const _0x4ce7a1=_0x5ba91b['schema']['isObject'](_0x3f131a)||_0x5ba91b['schema']['isSelectable'](_0x3f131a);return _0x5ba91b['createRange'](_0x5ba91b['createPositionAt'](_0x3f131a,'before'),_0x4ce7a1?_0x5ba91b['createPositionAfter'](_0x3f131a):_0x5ba91b['createPositionAt'](_0x3f131a,'end'));}function Wt(_0x3d44bb,_0x418119,_0x512038,_0x3accbe){return!!Qt(_0x3d44bb,_0x418119)&&_0x512038['end']['isEqual'](_0x3accbe['start']);}function Qt(_0x354309,_0x1ddf83){if(!_0x354309['_isDataLoaded']||!_0x1ddf83['_isDataLoaded'])return!0x1;const _0x23e627=new Set(Object['keys'](_0x354309['attributes'])),_0x5c277f=new Set(Object['keys'](_0x1ddf83['attributes']));if(_0x23e627['delete']('groupId'),_0x5c277f['delete']('groupId'),0x0==_0x23e627['size']&&0x0==_0x5c277f['size'])return!0x0;if(_0x23e627['size']!=_0x5c277f['size'])return!0x1;const _0x5427cf={..._0x354309['attributes']},_0x17f3b7={..._0x1ddf83['attributes']};return delete _0x5427cf['groupId'],delete _0x17f3b7['groupId'],JSON['stringify'](_0x5427cf)==JSON['stringify'](_0x17f3b7);}function Xt(_0x3e3f13,_0x19ed6a){const _0x250e67=Yt(_0x3e3f13['attributes']),_0x4582a8=Yt(_0x19ed6a);if(!_0x3e3f13['_isDataLoaded'])return!0x1;for(const _0x491d2f of Object['keys'](_0x4582a8))if(!_0x21362d(_0x250e67[_0x491d2f],_0x4582a8[_0x491d2f]))return!0x1;return!0x0;}function Yt(_0xd396a6){const _0x578e7e=Object['assign']({},_0xd396a6);return delete _0x578e7e['skipNestingCheck'],delete _0x578e7e['tablePasteChainId'],_0x578e7e;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x576216(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4d3285,_0x32039d,_0x4ecb3d,_0x1f040e){super(),this['model']=_0x32039d,this['view']=_0x4ecb3d,this['commentThreadController']=_0x1f040e,this['_editor']=_0x4d3285,this['_acceptCommand']=_0x4d3285['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4d3285['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2c129e,_0x556424)=>_0x2c129e||_0x556424),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x141687=>_0x141687&&this['_editor']['model']['canEditAt'](_0x32039d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5b544a=>_0x5b544a&&this['_editor']['model']['canEditAt'](_0x32039d['getRanges']())),this['_pendingAction']=null,_0x4ecb3d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4ecb3d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4ecb3d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4ecb3d,'change:isDirty',()=>{_0x4ecb3d['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 _0x1b3237=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1b3237);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x1bb0a3{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x388cc8,_0x4ba561,_0x3d5c17,_0x50dce7){super(_0x388cc8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5746f0(_0x388cc8,o(_0x388cc8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4ba561['authoredAt']),this['bind']('authoredAt')['to'](_0x4ba561),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',_0x4ba561,'authoredAt',this,'descriptionParts',(_0x108b10,_0x3ddea8,_0x3e6bb8)=>{const _0x4a6aa5=_0x3e6bb8['map'](_0xd186a7=>ls(_0xd186a7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x108b10-0x1,_0x4ba561['author']['name'],_0x3ddea8?_0x50dce7['formatDateTime'](_0x3ddea8):'',new DOMParser()['parseFromString'](_0x4a6aa5,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4b0a61(),this['focusTracker']=new _0x5427d9(),this['keystrokes']=new _0x4443be(),this['focusCycler']=new _0x4de8c1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4015c6=>_0x4015c6['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4ba561,this['_localUser']=_0x3d5c17,this['_config']=_0x50dce7,_0x50dce7['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x201a92(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x491234}=this['_config'];this['commentsListView']=new _0x491234(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',_0x38817e=>_0x38817e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5854da,_0x3956c9)=>_0x5854da||!!_0x3956c9);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4369e1}=this['_config'],_0x594f5e=new _0x4369e1(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5c29d0=_0x594f5e['commentInputView'];return _0x594f5e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5c29d0,'value',(_0x39f596,_0x3c4c52,_0x53e1ee)=>!!_0x53e1ee||_0x39f596&&!_0x3c4c52),_0x5c29d0['on']('submit',(_0x587a89,_0x1a0d0d)=>{this['fire']('addComment',_0x1a0d0d),_0x5c29d0['editor']['setData']('');}),_0x5c29d0['on']('cancel',()=>this['focus']()),_0x5c29d0['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x594f5e;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x429312,_0x372b5e,_0x29a215,_0x297d6d){super(_0x429312,_0x372b5e,_0x29a215,_0x297d6d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x55268f=>_0x55268f&&_0x55268f[0x0]?_0x55268f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x457818,_0x2cb5f7)=>{let _0x2a854b='';for(const _0x4d8881 of _0x457818)_0x2a854b+='<p>'+ls(_0x4d8881['content'],_0x4d8881['color'])+'</p>';return _0x2cb5f7?_0x2a854b:_0x2b7c8f(_0x2a854b,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x297d6d['SuggestionView'](_0x429312,_0x372b5e,{'formatDateTime':_0x297d6d['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 _0x1fad92=this['bindTemplate'],_0x25c1c3=[this['suggestionView']];return this['commentsListView']&&_0x25c1c3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x25c1c3['push'](this['commentThreadInputView']),_0x25c1c3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1fad92['if']('isActive','ck-suggestion-wrapper--active'),_0x1fad92['to']('type',_0x5b9a5d=>'ck-suggestion-'+_0x5b9a5d),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':_0x1fad92['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x25c1c3};}['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 _0x1bb0a3{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5135d2,_0x58897a,_0x3dfec3){super(_0x5135d2),this['_model']=_0x58897a,this['_config']=_0x3dfec3,this['set']('description',''),this['bind']('authoredAt')['to'](_0x58897a),this['acceptButton']=this['_createButton'](o(_0x5135d2,'Accept\x20suggestion'),_0x31655c,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5135d2,'Discard\x20suggestion'),_0x369868,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3e7ed7(_0x5135d2,_0x58897a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4b0a61([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5427d9(),this['keystrokes']=new _0x4443be(),this['focusCycler']=new _0x4de8c1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3b0ecc=>_0x3b0ecc['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5278b5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5278b5['innerHTML']=this['description'],this['on']('change:description',(_0xb86e07,_0x174841,_0x12821e)=>{_0x5278b5['innerHTML']=_0x12821e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5a14a4=this['bindTemplate'],_0x1317c2=[{'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':_0x5a14a4['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5a14a4['to']('authoredAt',_0x38b0bb=>this['_config']['formatDateTime'](_0x38b0bb))}]}]},{'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']&&_0x1317c2['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':_0x1317c2}]};}['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'](_0x55ac36,_0x7bc9e2,_0x1d98a4,_0x34761e,_0x1956b4){const _0x24be90=new _0x15c07a(this['locale']);return _0x24be90['set']({'label':_0x55ac36,'icon':_0x7bc9e2,'tooltip':!0x0,'tooltipPosition':_0x1956b4}),_0x24be90['extendTemplate']({'attributes':{'class':_0x1d98a4}}),_0x24be90['on']('execute',()=>{this['fire'](_0x34761e,this['_model']['id']);}),_0x24be90;}['_setupKeyboardNavigation'](){const _0x5a9258=this['element'];this['keystrokes']['listenTo'](_0x5a9258);for(const _0x4f79db of this['focusables'])this['focusTracker']['add'](_0x4f79db['element']),this['keystrokes']['listenTo'](_0x4f79db['element']);this['keystrokes']['set']('enter',(_0x33edbd,_0x34803d)=>{_0x5a9258===_0x33edbd['target']&&(this['focusCycler']['focusFirst'](),_0x34803d());}),this['keystrokes']['set']('esc',(_0x2988e9,_0x4830fa)=>{_0x5a9258!==_0x2988e9['target']&&(this['focus'](),_0x4830fa());});}}class u extends _0x588311{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x4fb64d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2df220){super(_0x2df220),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2309a1=this['editor']['config'];_0x2309a1['define']('trackChanges.SuggestionThreadView',fe),_0x2309a1['define']('trackChanges.SuggestionView',we),_0x2309a1['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2309a1['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2d2c93,_0x4394e1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4e7350,_0x34f95e]of this['_handleControllerBuffer']){const _0x2d7c95=this['_suggestionToController']['has'](_0x4e7350);_0x2d7c95||_0x34f95e?_0x2d7c95&&_0x34f95e&&this['_destroyController'](_0x4e7350):this['_initializeController'](_0x4e7350);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2d2c93,_0x4394e1);}['init'](){const _0x55890e=this['editor'],_0x544fa6=_0x55890e['plugins']['get']('TrackChangesEditing'),_0x1e9b58=_0x55890e['plugins']['get']('Annotations'),_0x57c8a9=_0x55890e['plugins']['get']('EditorAnnotations'),_0x10246e=_0x55890e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x57c8a9['addSourceCollector'](()=>{const _0x54ada2=[];for(const [_0x338c78,_0xe132aa]of Array['from'](this['_suggestionToController'])){const _0xfc908c=_0x338c78['getAllAdjacentSuggestions'](),_0x26a9eb=[];for(const _0x4abc68 of _0xfc908c){if(!_0x4abc68['isInContent'])continue;if(_0x4abc68['isMultiRange']){_0x26a9eb['push'](..._0x4abc68['getRanges']());continue;}const _0x7f1a6d=_0x4abc68['getFirstRange']();if(_0x26a9eb['length']>0x0){const _0x394262=_0x26a9eb[0x0]['getJoined'](_0x7f1a6d);if(_0x394262){_0x26a9eb[0x0]=_0x394262;continue;}}_0x26a9eb['push'](_0x7f1a6d);}_0x54ada2['push']([_0xe132aa['view'],_0x26a9eb]);}return _0x54ada2;}),this['listenTo'](_0x544fa6,'suggestionLoaded',(_0x57b792,_0x2e1b18)=>{this['listenTo'](_0x2e1b18,'change:previous',(_0x1f3d03,_0x2f545e,_0x74a3cd,_0x18b7e5)=>{_0x2e1b18['isInContent']&&(null==_0x74a3cd?(this['_updateController'](_0x18b7e5['head']),this['_handleSuggestionControllerDelayed'](_0x2e1b18,!0x1)):(this['_updateController'](_0x74a3cd['head']),null==_0x18b7e5&&this['_handleSuggestionControllerDelayed'](_0x2e1b18,!0x0)));}),null!==_0x2e1b18['previous']?this['_updateController'](_0x2e1b18['head']):this['_handleSuggestionControllerDelayed'](_0x2e1b18,!0x1);}),this['listenTo'](_0x544fa6,'suggestionUnloaded',(_0x5aa3e8,_0x325e10,_0x5bc02c)=>{this['stopListening'](_0x325e10,'change:previous'),this['_handleControllerBuffer']['delete'](_0x325e10),this['_suggestionToController']['has'](_0x325e10)&&this['_destroyController'](_0x325e10),_0x5bc02c&&this['_updateController'](_0x5bc02c['head']);}),this['listenTo'](_0x544fa6,'suggestionChanged',(_0x468615,_0x28902d)=>{this['_updateController'](_0x28902d);}),this['listenTo'](_0x1e9b58,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x10246e,'addComment',(_0x1b8212,{threadId:_0x2f66c8,isFromAdapter:_0x5dd453})=>{if(_0x5dd453||!_0x544fa6['hasSuggestion'](_0x2f66c8))return;const _0x4d01bf=_0x544fa6['getSuggestion'](_0x2f66c8);this['_suggestionToController']['get'](_0x4d01bf)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x33fc7e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe4eeaf;for(const _0x26d5f0 in _0x33fc7e){const _0x1fe945=_0x26d5f0,_0x3923d6=_0x33fc7e[_0x1fe945];if('trackChangesLicenseKeyValid'==_0x3923d6||'trackChangesLicenseKeyInvalid'==_0x3923d6||'trackChangesLicenseKeyExpired'==_0x3923d6||'trackChangesLicenseKeyDomainLimit'==_0x3923d6||'trackChangesLicenseKeyNotAllowed'==_0x3923d6||'trackChangesLicenseKeyEvaluationLimit'==_0x3923d6||'trackChangesLicenseKeyTrialLimit'==_0x3923d6||'trackChangesLicenseKeyUsageLimit'==_0x3923d6){delete _0x33fc7e[_0x1fe945],_0xe4eeaf=_0x3923d6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xe4eeaf&&_0x33fc7e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xe4eeaf&&_0x33fc7e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xe4eeaf&&_0x33fc7e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xe4eeaf&&_0x33fc7e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xe4eeaf&&_0x33fc7e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xe4eeaf&&_0x33fc7e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xe4eeaf&&_0x33fc7e['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x104e06){const _0x1204dd=this['_suggestionToController']['get'](_0x104e06);if(!_0x1204dd)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x1204dd['view'])||null;}['getSuggestionForAnnotation'](_0x56de50){const _0x18c54e=this['_viewToController']['get'](_0x56de50['innerView']);return _0x18c54e?_0x18c54e['model']:null;}['_refreshActiveMarkers'](){const _0x19c51c=this['editor']['plugins']['get']('Annotations'),_0x3cb8b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58b916=Array['from'](_0x19c51c['activeAnnotations'],_0x53c155=>_0x53c155['innerView'])['filter'](_0x205e8d=>this['_viewToController']['has'](_0x205e8d)),_0x2c2ea7=[];for(const _0x17da66 of _0x58b916){const _0x2e4cb8=this['_viewToController']['get'](_0x17da66)['model']['getAllAdjacentSuggestions']();_0x2c2ea7['push'](..._0x2e4cb8['reduce']((_0x3d7891,_0x478803)=>[..._0x3d7891,..._0x478803['getMarkerNames']()],[]));}_0x3cb8b9['activeMarkers']=_0x2c2ea7;}['_addUIComponentsToFactory'](){const _0x3dfe2c=this['editor'],_0x3b0a92=_0x3dfe2c['locale'],_0x763ae5=o(_0x3b0a92,'Track\x20changes'),_0x152339=new _0x2ebe14([{'type':'switchbutton','model':new _0x40fb7f({'withText':!0x0,'isToggleable':!0x0,'label':_0x763ae5,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x40fb7f({'withText':!0x0,'label':o(_0x3b0a92,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x40fb7f({'withText':!0x0,'label':o(_0x3b0a92,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x40fb7f({'withText':!0x0,'label':o(_0x3b0a92,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x40fb7f({'withText':!0x0,'label':o(_0x3b0a92,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3dfe2c['plugins']['has']('TrackChangesPreview')&&_0x152339['addMany']([{'type':'separator'},{'type':'button','model':new _0x40fb7f({'withText':!0x0,'label':o(_0x3b0a92,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xe4fd99 of _0x152339)if(ke(_0xe4fd99)){const _0xc515aa=_0x3dfe2c['commands']['get'](_0xe4fd99['model']['commandName']);_0xe4fd99['model']['bind']('isOn','isEnabled')['to'](_0xc515aa,'value','isEnabled');}_0x3dfe2c['ui']['componentFactory']['add']('trackChanges',_0xaefac=>this['_createToolbarButton'](_0xaefac,_0x152339,_0x763ae5)),_0x3dfe2c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3eefe3=>this['_createMenuBarMenu'](_0x3eefe3,_0x152339,_0x763ae5));}['_createToolbarButton'](_0x175e32,_0x13dba2,_0x3c0349){const _0x1f93a7=_0x7c146b(_0x175e32,_0x5b60d2),_0x3a2c44=this['editor']['commands']['get']('trackChanges');_0x1f93a7['buttonView']['set']({'tooltip':_0x3c0349,'label':_0x3c0349,'icon':_0x17e231}),_0x1f93a7['buttonView']['bind']('isOn')['to'](_0x3a2c44,'value'),_0x1f93a7['buttonView']['on']('execute',()=>{_0x3a2c44['execute'](),this['editor']['editing']['view']['focus']();}),_0x42bada(_0x1f93a7,_0x13dba2,{'role':'menu'});const _0x39300b=[];for(const _0x2e3982 of _0x13dba2)ke(_0x2e3982)&&_0x39300b['push'](this['editor']['commands']['get'](_0x2e3982['model']['commandName']));const _0xc98740=_0x1f93a7['buttonView'];return _0xc98740['actionView']['unbind']('isEnabled'),_0xc98740['arrowView']['unbind']('isEnabled'),_0xc98740['actionView']['bind']('isEnabled')['to'](_0x3a2c44,'isEnabled'),_0xc98740['arrowView']['bind']('isEnabled')['toMany'](_0x39300b,'isEnabled',(..._0x56726e)=>_0x56726e['some'](_0x3c9e45=>_0x3c9e45)),_0x1f93a7['on']('execute',_0x2a6bdc=>{this['editor']['execute'](_0x2a6bdc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1f93a7;}['_createMenuBarMenu'](_0x16cf95,_0x12e5c3,_0x3fb429){const _0x17fd75=new _0x3c6b9a(_0x16cf95),_0x563b5d=this['editor']['commands']['get']('trackChanges');_0x17fd75['buttonView']['set']({'label':_0x3fb429,'icon':_0x17e231});const _0x2760dd=new _0x24888c(_0x16cf95);for(const _0xd27edb of _0x12e5c3){if('separator'==_0xd27edb['type']){_0x2760dd['items']['add'](new _0x161fec(_0x16cf95));continue;}const _0x35a263=new _0x3232a1(_0x16cf95,_0x17fd75),_0x41861e=new _0x1afe4c(_0x16cf95),_0x5d8997=_0xd27edb['model'];_0x41861e['bind'](...Object['keys'](_0x5d8997))['to'](_0x5d8997),_0x41861e['delegate']('execute')['to'](_0x17fd75),_0x41861e['on']('execute',()=>{this['editor']['execute'](_0x5d8997['commandName']),this['editor']['editing']['view']['focus']();}),_0x35a263['children']['add'](_0x41861e),_0x2760dd['items']['add'](_0x35a263);}return _0x17fd75['bind']('isEnabled')['to'](_0x563b5d,'isEnabled'),_0x17fd75['panelView']['children']['add'](_0x2760dd),_0x17fd75;}['_initializeController'](_0x563553){const _0x5daa30=this['editor'],_0x3aaf33=_0x5daa30['config'],_0x176687=_0x5daa30['plugins']['get']('Annotations'),_0x52c2e8=_0x5daa30['plugins']['get']('CommentsRepository'),_0x47d345=_0x5daa30['plugins']['get']('EditorAnnotations'),_0x3b89ba=_0x5daa30['plugins']['get'](_0x4fb64d)['me'],_0x4d258e=_0x3aaf33['get']('trackChanges')['SuggestionThreadView'],_0xddfd9f=_0x3aaf33['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x84f232,CommentThreadInputView:_0x3fcb16}=_0x5daa30['plugins']['get']('CommentsUI');let _0x16c890,_0x29b048,_0x174bb7;this['_annotationViews']['has'](_0x563553['id'])?(_0x29b048=this['_annotationViews']['get'](_0x563553['id']),_0x16c890=_0x29b048['mainView']):(_0x16c890=new _0x4d258e(_0x5daa30['locale'],_0x563553,_0x3b89ba,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3aaf33['get']('comments.editorConfig'),'licenseKey':_0x3aaf33['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3aaf33['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3aaf33['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3aaf33['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x34479a(_0x3aaf33['get']('locale'),_0x5daa30['locale']),'CommentView':_0x3aaf33['get']('comments')['CommentView'],'CommentsListView':_0x84f232,'CommentThreadInputView':_0x3fcb16,'SuggestionView':_0xddfd9f}),_0x16c890['suggestionView']['acceptButton']['on']('execute',()=>{_0x5daa30['editing']['view']['focus']();}),_0x16c890['suggestionView']['discardButton']['on']('execute',()=>{_0x5daa30['editing']['view']['focus']();}),_0x29b048=_0x176687['createAnnotationView'](this['editor']['locale'],_0x16c890),_0x29b048['bind']('isDirty')['to'](_0x16c890,'isDirty'),_0x29b048['bind']('length')['to'](_0x16c890),_0x29b048['bind']('type')['to'](_0x16c890,'type',_0x57aea5=>'suggestion-'+_0x57aea5),_0x16c890['on']('escape',()=>{_0x174bb7['fire']('escape');}),this['_annotationViews']['set'](_0x563553['id'],_0x29b048));const _0x24a850=_0x52c2e8['createCommentThreadController'](_0x563553['commentThread'],_0x16c890),_0x100ce2=new pe(_0x5daa30,_0x563553,_0x16c890,_0x24a850),_0x38789c=_0x563553['getAllAdjacentSuggestions']()['filter'](_0x30edcc=>_0x30edcc['isInContent']);_0x16c890['descriptionParts']=_0x5daa30['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x38789c),this['_suggestionToController']['set'](_0x563553,_0x100ce2),this['_viewToController']['set'](_0x16c890,_0x100ce2);const _0x2fdcc8=()=>{const _0x297b25=[],_0x65b440=_0x563553['getAllAdjacentSuggestions']()['filter'](_0x147d54=>_0x147d54['isInContent']);for(const _0x3836ba of _0x65b440)_0x297b25['push'](..._0x3836ba['getMarkers']());return _0x128c48(_0x5daa30['editing'],_0x297b25);};_0x174bb7=_0x176687['createAnnotation']({'view':_0x29b048,'target':_0x2fdcc8,'type':()=>'suggestion-'+_0x100ce2['view']['type'],'isVisible':!!_0x2fdcc8()}),_0x52c2e8['_bindAnnotationToEditors'](_0x16c890,_0x174bb7),_0x176687['add'](_0x174bb7),_0x47d345['registerAnnotation'](_0x174bb7);}['_destroyController'](_0x1b1756){const _0x5627e7=this['editor']['plugins']['get']('CommentsRepository'),_0x2a2118=this['editor']['plugins']['get']('Annotations'),_0x41ff15=this['_suggestionToController']['get'](_0x1b1756),_0x2f8743=_0x41ff15['view'],_0x1b2e41=_0x2a2118['getByInnerView'](_0x2f8743);_0x5627e7['_unbindEditors'](_0x2f8743),_0x1b2e41&&_0x2a2118['remove'](_0x1b2e41),this['_suggestionToController']['delete'](_0x1b1756),this['_viewToController']['delete'](_0x2f8743),_0x41ff15['destroy']();}['_updateController'](_0x2a77f7){if(!_0x2a77f7['isInContent']||!this['_suggestionToController']['has'](_0x2a77f7))return;const _0x2f4ed6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bbb07=this['_suggestionToController']['get'](_0x2a77f7),_0x4e69d1=_0x2a77f7['getAllAdjacentSuggestions']();_0x4bbb07['view']['descriptionParts']=_0x2f4ed6['descriptionFactory']['getDescriptions'](_0x4e69d1);}['destroy'](){for(const _0x3fda6b of this['_suggestionToController']['keys']())this['_destroyController'](_0x3fda6b);for(const _0x4fa602 of this['_annotationViews']['values']())_0x4fa602['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x54dbf6){return'model'in _0x54dbf6;}class Fe extends _0x588311{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xf94841){this['editor']['plugins']['get'](d)['adapter']=_0xf94841;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x3a8b3e){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x3a8b3e);}['getSuggestions']({skipNotAttached:_0x136ab0=!0x1,toJSON:_0x9e0ee7=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x136ab0,'toJSON':_0x9e0ee7});}['getSuggestion'](_0x518696){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x518696);}}const p=['Pagination'];class re extends _0x588311{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xc80d04=this['editor'];if(_0xc80d04['config']['define']('trackChangesData.editorCreator',_0x4847a0=>{const _0x20c6fe=_0xc80d04['model']['document']['getRootNames']()['reduce']((_0x2c2035,_0x118f22)=>(_0x2c2035[_0x118f22]='',_0x2c2035),{});return _0xc80d04['constructor']['create'](_0x20c6fe,_0x4847a0);}),'function'!=typeof _0xc80d04['config']['get']('trackChangesData')['editorCreator'])throw new _0x280c51('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1fa302){return P(this['editor'],!0x0,_0x1fa302);}['getDataWithDiscardedSuggestions'](_0x4ab845){return P(this['editor'],!0x1,_0x4ab845);}}class Ge extends _0x588311{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x260a4f){function _0x203575(_0x372269){return _0x372269['map'](_0x2e6f5d=>String['fromCharCode'](_0x2e6f5d))['join']('');}super(_0x260a4f),this['result']='end',_0x260a4f[_0x203575([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x203575([0x76,0x69,0x65,0x77])][_0x203575([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x203575([0x61,0x75,0x74,0x6f]),_0x260a4f[_0x203575([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x203575([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x203575([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x203575([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x203575([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(_0x4624a4){return void 0x0!==_0x4624a4['getRootsAttributes'];}async function P(_0x4cf084,_0x420314,_0x5ec7e0){const _0x1cda12=_0x5adbe2(_0x4cf084,p);_0x1cda12['plugins']['push'](d,Ge),_0x1cda12['rootsAttributes']=He(_0x4cf084)?_0x4cf084['getRootsAttributes']():void 0x0;const _0x4fb24c=document['createDocumentFragment'](),_0x4381df=_0x4cf084['config']['get']('trackChangesData')['editorCreator'],_0x20b5ff=await _0x4381df(_0x1cda12,()=>function(_0x12ce5b){const _0x588779=document['createElement']('div');return _0x12ce5b['appendChild'](_0x588779),_0x588779;}(_0x4fb24c));!function(_0x1c2d0e,_0x31e172){const _0x3fd592=_0x1c2d0e['model']['document']['getRootNames']()['reduce']((_0x1b5020,_0x482086)=>(_0x1b5020[_0x482086]=_0x1c2d0e['data']['get']({'rootName':_0x482086}),_0x1b5020),{}),_0x3a02d9=_0x1c2d0e['plugins']['get']('Users')['users']['map'](_0xc6d2be=>({'id':_0xc6d2be['id'],'name':_0xc6d2be['name']})),_0x30421a=_0x1c2d0e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x20f084=_0x1c2d0e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4eeafa=_0x31e172['plugins']['get']('Users'),_0x2bccc7=_0x31e172['plugins']['get']('TrackChangesEditing'),_0x18e098=_0x31e172['plugins']['get']('CommentsRepository');for(const _0x58f480 of _0x18e098['getCommentThreads']())_0x58f480['remove']();for(const _0x85c558 of _0x3a02d9)_0x4eeafa['getUser'](_0x85c558['id'])||_0x4eeafa['addUser'](_0x85c558);_0x4eeafa['me']||_0x4eeafa['useAnonymousUser']();for(const _0x5b62c6 of _0x20f084)_0x18e098['addCommentThread'](_0x5b62c6);for(const _0x482e7e of _0x30421a)_0x2bccc7['addSuggestionData'](_0x482e7e);_0x31e172['data']['set'](_0x3fd592);}(_0x4cf084,_0x20b5ff),_0x20b5ff['execute'](_0x420314?'acceptAllSuggestions':'discardAllSuggestions');const _0xa7784b=He(_0x20b5ff)?_0x20b5ff['getFullData'](_0x5ec7e0):_0x20b5ff['data']['get'](_0x5ec7e0);return await _0x20b5ff['destroy'](),_0xa7784b;}class Me extends _0x1bb0a3{['options'];constructor(_0x28e144,_0x136a21){super(_0x28e144),this['options']=_0x136a21,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'](_0x1ba44c,_0x22d6d5){if(!this['element'])return;const _0x4f38d9=[];for(const [_0xc26b7b,_0x52eceb]of _0x1ba44c){const _0x45bcd7=document['createElement']('div');_0x45bcd7['setAttribute']('data-ck-root-name',_0xc26b7b),_0x45bcd7['className']=_0x52eceb['classes']+'\x20ck-track-changes-preview__root-container',_0x45bcd7['innerHTML']=_0x52eceb['content'],_0x4f38d9['push'](_0x45bcd7);}_0x22d6d5(this['element'],_0x4f38d9),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x1a5dbe{constructor(_0x37ae9a){super(_0x37ae9a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x452921=this['editor'],_0xb4aea6=_0x452921['locale'],_0x3ddf01=_0x452921['plugins']['get']('Dialog');let _0x2979c4;const _0x55d5ab=function(_0x1cf286){const _0x296c22={};if('editables'in _0x1cf286['ui']['view']){for(const [_0x514392,_0x36f742]of Object['entries'](_0x1cf286['ui']['view']['editables']))_0x296c22[_0x514392]=_0x36f742['element'];}else _0x296c22[_0x1cf286['model']['document']['getRootNames']()[0x0]]=_0x1cf286['ui']['view']['editable']['element'];return _0x296c22;}(_0x452921),_0x35d5b4=function(_0x40cc22){let _0x1c2574=0x0;for(const _0x11e562 of Object['values'](_0x40cc22))_0x1c2574=Math['max'](_0x1c2574,_0x11e562['getBoundingClientRect']()['width']);let _0xa4793d=0x0;for(const _0x264530 of Object['values'](_0x40cc22))_0xa4793d+=_0x264530['getBoundingClientRect']()['height'];const _0x5f4e77=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x727160=Math['min'](_0xa4793d,_0x5f4e77);return{'width':_0x1c2574,'height':_0x727160};}(_0x55d5ab);_0x3ddf01['show']({'id':'finalContentPreview','title':o(_0xb4aea6,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xb4aea6,{'dialogRects':_0x35d5b4}),'onHide':()=>{_0x2979c4['detachFromDom']();},'onShow':()=>{_0x452921['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2e6acd=>{const _0x4f062d=this['_standarizeRootsData'](_0x2e6acd,_0x452921,_0x55d5ab);_0x3ddf01['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4f062d,_0x452921['config']['get']('trackChanges.preview.renderFunction'));}),_0x2979c4=new _0xa7ca0b(_0xb4aea6,[_0x3ddf01['view']]),_0x2979c4['attachToDom'](),_0x2979c4['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x452921['once']('destroy',()=>{_0x2979c4['detachFromDom']();});const _0x2f309b=_0x3ddf01['view']['headerView']['class'];_0x3ddf01['view']['headerView']['class']=_0x2f309b?_0x2f309b+'\x20ck-reset_all':'ck-reset_all',_0x3ddf01['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3ddf01['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1149ee=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1e0938=_0x1149ee['previewMode'],_0x5571f4={};if('$labels'===_0x1e0938){for(const _0x3be311 of _0x1149ee['getMergeFieldsIds']())_0x5571f4[_0x3be311]=_0x1149ee['getLabel'](_0x3be311)||_0x3be311;}else{const _0x43a234='$defaultValues'===_0x1e0938?_0x1149ee['getDefaultValues']():_0x1149ee['getDataSetValues'](_0x1e0938,!0x0);for(const _0x5ac75d of Object['entries'](_0x43a234)){const [_0x3722ab,_0x5bfb71]=_0x5ac75d;_0x5571f4[_0x3722ab]=null!==_0x5bfb71?_0x5bfb71:_0x1149ee['getLabel'](_0x3722ab)||_0x3722ab;}}return{'mergeFieldsData':_0x5571f4};}['_standarizeRootsData'](_0x133474,_0x1f03b1,_0x879454){let _0x3547df;if('string'==typeof _0x133474){const _0x232ad4=_0x1f03b1['model']['document']['getRootNames']()[0x0];_0x3547df={[_0x232ad4]:_0x133474};}else _0x3547df=_0x133474;const _0x3a7580=this['_fixMediaEmbeds'](_0x3547df,_0x1f03b1),_0x377f70=function(_0x25a16f,_0x31c3b6){for(const [_0x34c3c4,_0x1483f2]of _0x25a16f)_0x1483f2['classes']=_0x31c3b6[_0x34c3c4]['classList']['value']['replace']('ck-focused','');return _0x25a16f;}(this['_sortRoots'](_0x1f03b1)['reduce']((_0x277b62,_0x54e230)=>(_0x277b62['push']([_0x54e230,{'content':_0x3a7580[_0x54e230],'classes':''}]),_0x277b62),[]),_0x879454);return _0x377f70;}['_fixMediaEmbeds'](_0x2bb7a9,_0x3ebc95){if(!_0x3ebc95['plugins']['has']('MediaEmbedEditing'))return _0x2bb7a9;const _0x8552ed=_0x3ebc95['plugins']['get']('MediaEmbedEditing');for(const [_0xc3f1cb,_0x4002f4]of Object['entries'](_0x2bb7a9)){const _0xcc0fd3=document['createElement']('div');_0xcc0fd3['innerHTML']=_0x4002f4,(_0xcc0fd3['querySelectorAll']('figure.media')['forEach'](_0x16e198=>{const _0x573d53=_0x16e198['querySelector']('oembed');if(_0x573d53){const _0x6c5f4a=_0x573d53['getAttribute']('url');if(_0x6c5f4a){const _0xb21ae1=_0x8552ed['registry']['getMediaViewElement'](new _0x2eceb5(_0x3ebc95['editing']['view']['document']),_0x6c5f4a,{'elementName':'','renderForEditingView':!0x0}),_0x95e8e0=document['createElement']('div');_0x95e8e0['classList']['add']('ck-media__wrapper'),_0xb21ae1['render'](_0x95e8e0,_0x3ebc95['editing']['view']['domConverter']),_0x573d53['replaceWith'](_0x95e8e0);}}}),_0x2bb7a9[_0xc3f1cb]=_0xcc0fd3['innerHTML']);}return _0x2bb7a9;}['_sortRoots'](_0x5c1683){if(!function(_0x16879c){return void 0x0!==_0x16879c['getRootsAttributes'];}(_0x5c1683))return _0x5c1683['model']['document']['getRootNames']();const _0x2f6ebe=[],_0x1365dc=new Map();for(const _0x206895 of _0x5c1683['model']['document']['getRootNames']()){const _0x6bfd3c=_0x5c1683['editing']['view']['getDomRoot'](_0x206895)['getClientRects']()['item'](0x0);_0x2f6ebe['push'](_0x206895),_0x1365dc['set'](_0x206895,_0x6bfd3c);}return _0x2f6ebe['sort']((_0x999ce4,_0x1a382c)=>{const _0x4f5aa4=_0x1365dc['get'](_0x999ce4),_0x5eb2f5=_0x1365dc['get'](_0x1a382c);return _0x4f5aa4['y']-_0x5eb2f5['y']||_0x4f5aa4['x']-_0x5eb2f5['x'];}),_0x2f6ebe;}}class $e extends _0x588311{static get['requires'](){return[re,_0x21d629];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e9e4a){super(_0x3e9e4a),_0x3e9e4a['commands']['add']('previewFinalContent',new te(this['editor'])),_0x3e9e4a['config']['define']('trackChanges.preview.renderFunction',(_0x170e08,_0x513f63)=>{for(const _0x403c46 of _0x513f63)_0x170e08['appendChild'](_0x403c46);});}}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 _0x58b809,Plugin as _0xa897c8,PendingActions as _0x117ef9}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3e0d43,ObservableMixin as _0x4d13ba,uid as _0x4e9a0b,priorities as _0x3efbf3,insertToPriorityArray as _0x54604b,toArray as _0x35a6eb,logWarning as _0x4cc463,getEnvKeystrokeText as _0x3cf1d4,FocusTracker as _0x5a30d8,KeystrokeHandler as _0x20a6b1,Collection as _0x31149d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x31bf72,IconCancel as _0x8a2bfe,IconTrackChanges as _0x2c27a5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x416d79,View as _0x39a612,ViewCollection as _0x2011b0,FocusCycler as _0x4ebd64,UIModel as _0xb4001c,createDropdown as _0x48dd53,SplitButtonView as _0x5dd53e,addListToDropdown as _0x274643,MenuBarMenuView as _0x113708,MenuBarMenuListView as _0xbb255d,ListSeparatorView as _0x3ff7ce,MenuBarMenuListItemView as _0x1aaec5,MenuBarMenuListItemButtonView as _0x235789,BodyCollection as _0x181b60,Dialog as _0x1b1881}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5e8d65,hashObject as _0x752554,surroundingMarkersDetector as _0x4bfe6a,FOCUS_ANNOTATION_KEYSTROKE as _0x4085c9,AriaDescriptionView as _0x5b786d,setupThreadKeyboardNavigation as _0x186058,trimHtml as _0x323e55,UserView as _0x2d29b8,LateFocusButtonView as _0x25f339,getDateTimeFormatter as _0x4c3cc9,getAllMarkersDomElementsSorted as _0x93afd2,sanitizeEditorConfig as _0xfd403e}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x489809,ModelLiveRange as _0x1437b2,ModelLivePosition as _0x440ae1,ViewDowncastWriter as _0x1cd95d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x214e22,toWidget as _0x284265}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2e0e29,set as _0x49e97d,isEqual as _0xe99400,unset as _0x483638,omit as Ut}from'es-toolkit/compat';import{Delete as _0x5dedc8,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5b8dcc}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2e6b2c}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x58b809{['_enabledCommands'];constructor(_0x3afa69,_0x473767){super(_0x3afa69),this['_enabledCommands']=_0x473767,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 _0x35a4ed of this['editor']['commands']['commands']())_0x35a4ed['affectsData']&&!this['_enabledCommands']['has'](_0x35a4ed)&&_0x35a4ed['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x312c46 of this['editor']['commands']['commands']())_0x312c46['affectsData']&&!this['_enabledCommands']['has'](_0x312c46)&&_0x312c46['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x58b809{['_suggestions'];constructor(_0x3b9c40,_0x3968c7){super(_0x3b9c40),this['_suggestions']=_0x3968c7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x44d8f8){const _0x487238=this['_suggestions']['get'](_0x44d8f8);if(!_0x487238)throw new _0x3e0d43('track-changes-accept-suggestion-not-found',this);const _0x3de3e2=_0x487238['getRanges']();this['editor']['model']['canEditAt'](_0x3de3e2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x487238);}}class $ extends _0x58b809{['_suggestions'];constructor(_0x1fd5be,_0xb607dc){super(_0x1fd5be),this['_suggestions']=_0xb607dc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x26e76c){const _0x1c29f4=this['_suggestions']['get'](_0x26e76c);if(!_0x1c29f4)throw new _0x3e0d43('track-changes-discard-suggestion-not-found',this);const _0x330681=_0x1c29f4['getRanges']();this['editor']['model']['canEditAt'](_0x330681)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1c29f4);}}function ls(_0x361bda,_0x26617f){let _0x4b48e0='';return _0x4b48e0+=_0x361bda['split']('*')['map']((_0x45384c,_0x1a47ea)=>_0x1a47ea%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x45384c)+'</span>':Zt(_0x45384c))['join'](''),_0x26617f&&(_0x4b48e0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x26617f['value']+'\x22\x20title=\x22'+_0x26617f['title']+'\x22></span>'),_0x4b48e0;}function Zt(_0x2a2d14){const _0x36c0c8=document['createElement']('span');return _0x36c0c8['innerText']=_0x2a2d14,_0x36c0c8['innerHTML'];}function ts(_0x1d7831){return _0x1d7831['sort']((_0x32e27e,_0x193c08)=>'attribute'===_0x32e27e['type']&&'attribute'!==_0x193c08['type']?-0x1:'attribute'!==_0x32e27e['type']&&'attribute'===_0x193c08['type']?0x1:'deletion'==_0x32e27e['type']&&'deletion'!=_0x193c08['type']?-0x1:'deletion'!=_0x32e27e['type']&&'deletion'==_0x193c08['type']?0x1:0x0);}function to(_0x1b53b0,_0x11c363){let _0x1e930e,_0xd3bdf6=0x0;const _0x42246e=[],_0x586fac=_0x11c363['schema'];for(;_0xd3bdf6<_0x1b53b0['length'];){const _0x3d87c0=_0x1b53b0[_0xd3bdf6],_0x18ab11=_0x1b53b0[_0xd3bdf6+0x1];_0x1e930e||(_0x1e930e=_0x11c363['createPositionBefore'](_0x3d87c0)),tn(_0x11c363,_0x3d87c0,_0x18ab11)||(_0x42246e['push'](_0x11c363['createRange'](_0x1e930e,_0x586fac['isObject'](_0x3d87c0)?_0x11c363['createPositionAfter'](_0x3d87c0):_0x11c363['createPositionAt'](_0x3d87c0,'end'))),_0x1e930e=null),_0xd3bdf6++;}return _0x42246e;}function tn(_0x4cb54e,_0x3c6dbe,_0x1cd331){if(!_0x1cd331)return!0x1;const _0x58f529=_0x4cb54e['createPositionAfter'](_0x3c6dbe),_0x3ef4f2=_0x4cb54e['createPositionBefore'](_0x1cd331);return _0x58f529['isTouching'](_0x3ef4f2);}function rs(_0x4afe80,_0x283e68,_0x1207bb){for(;_0x1207bb['length'];){const _0x3cc747=_0x1207bb['splice'](0x0,0x64);_0x4afe80['change'](()=>{for(const _0x2956aa of _0x3cc747)_0x2956aa['isInContent']&&_0x283e68['execute'](_0x2956aa['id']);});}}class M extends _0x58b809{['_command'];['_suggestions'];constructor(_0x1e8155,_0x448859,_0x137468){super(_0x1e8155),this['_command']=_0x448859,this['_suggestions']=_0x137468,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xcb13b7=Array['from'](this['_suggestions']['values']())['some'](_0x5b73dd=>_0x5b73dd['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xcb13b7;}['execute'](){const _0x93da16=ts(Array['from'](this['_suggestions']['values']()));for(const _0x51247a of _0x93da16){const _0x5b10d3=_0x51247a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5b10d3))return;}rs(this['editor']['model'],this['_command'],_0x93da16);}}class B extends _0x58b809{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x7e59bb,_0x28e394,_0x3b86fa){super(_0x7e59bb),this['_command']=_0x28e394,this['_suggestions']=_0x3b86fa,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x573dd4=this['editor']['model']['document']['selection'],_0x29cec7=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x38c7f3,_0x202dde){const _0x55902f=Array['from'](_0x38c7f3['getRanges']()),_0x11afcf=new Set();for(const _0x370a49 of _0x202dde)if(_0x370a49['isInContent']){for(const _0x4803a7 of _0x55902f)for(const _0x31c32a of _0x370a49['getRanges']())(_0x4803a7['isIntersecting'](_0x31c32a)||_0x38c7f3['isCollapsed']&&!_0x370a49['isMultiRange']&&_0x370a49['next']&&_0x31c32a['end']['isTouching'](_0x4803a7['start']))&&_0x11afcf['add'](_0x370a49);}return _0x11afcf;}(_0x573dd4,_0x29cec7),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xaef05c=ts(Array['from'](this['_selectedSuggestions']));for(const _0x12355b of _0xaef05c){const _0x15582e=_0x12355b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x15582e))return;}rs(this['editor']['model'],this['_command'],_0xaef05c);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x4d13ba(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x55859a,_0x32371e){super(),this['id']=_0x32371e['id'],this['type']=_0x32371e['type'],this['subType']=_0x32371e['subType']||null,this['author']=_0x32371e['author'],this['creator']=_0x32371e['creator']||_0x32371e['author'],this['isExternal']=Boolean(_0x32371e['attributes']&&_0x32371e['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x32371e['originalSuggestionId']||null,this['_model']=_0x55859a,this['_onAccept']=_0x32371e['onAccept'],this['_onDiscard']=_0x32371e['onDiscard'],this['_onAttributesChange']=_0x32371e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x32371e['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 _0x133f12=this;for(;_0x133f12['previous'];)_0x133f12=_0x133f12['previous'];return _0x133f12;}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'](_0x5311dc){this['_markerNames']['add'](_0x5311dc);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2465eb=>this['_model']['markers']['get'](_0x2465eb))['filter'](_0x4e4804=>_0x4e4804);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4bb9e4=>{for(const _0x1a2af5 of this['getMarkers']())_0x4bb9e4['removeMarker'](_0x1a2af5);}),this['_markerNames']['clear']();}['removeMarker'](_0x3dc750){this['_model']['change'](_0x356878=>{_0x356878['removeMarker'](_0x3dc750);}),this['_markerNames']['delete'](_0x3dc750);}['addRange'](_0x506422){const _0x5ea173='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x5ea173),this['_model']['change'](_0x31f9a9=>{_0x31f9a9['addMarker'](_0x5ea173,{'range':_0x506422,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x24b6b7){for(const _0xbf9723 of this['getRanges']())if(_0xbf9723['isIntersecting'](_0x24b6b7))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x372bdd=>_0x372bdd['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1ae3c6,_0x5b8431)=>[..._0x1ae3c6,..._0x5b8431['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x47c437=this['getRanges']();if(0x1!=_0x47c437['length'])return null;const _0x45685d=_0x47c437[0x0],_0x37c7b6=_0x45685d['start']['nodeAfter'],_0x3f3d7d=_0x45685d['end']['nodeBefore'];return _0x37c7b6 instanceof _0x489809?_0x37c7b6!=_0x3f3d7d?null:_0x37c7b6: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 _0x471a69=[];let _0x5ed1f9=this['head'];for(;_0x5ed1f9;)_0x471a69['push'](_0x5ed1f9),_0x5ed1f9=_0x5ed1f9['next'];return _0x471a69;}['setAttribute'](_0x45acf6,_0x477577){const _0x38dc09=_0x2e0e29(this['attributes']);_0x49e97d(_0x38dc09,_0x45acf6,_0x477577),_0xe99400(_0x38dc09,this['attributes'])||(this['attributes']=_0x38dc09,this['_onAttributesChange'](_0x38dc09));}['removeAttribute'](_0x40e335){const _0x3c6925=_0x2e0e29(this['attributes']);_0x483638(_0x3c6925,_0x40e335),_0xe99400(_0x3c6925,this['attributes'])||(this['attributes']=_0x3c6925,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 _0x4e9a0b()['substr'](0x1,0x5);}}function o(_0x37668a,_0x560102,_0x5a4d24){const _0x37a8c8=_0x37668a['t'],t=_0x37668a['t'];switch(_0x560102){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',_0x5a4d24);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5a4d24);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5a4d24);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5a4d24);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5a4d24);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',_0x5a4d24);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5a4d24);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',_0x5a4d24);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5a4d24);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5a4d24);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5a4d24);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5a4d24);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5a4d24);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5a4d24);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5a4d24);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5a4d24);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5a4d24);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5a4d24);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5a4d24);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5a4d24);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5a4d24);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5a4d24);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5a4d24);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5a4d24);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5a4d24);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'},_0x5a4d24);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5a4d24);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5a4d24);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5a4d24);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5a4d24);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5a4d24);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5a4d24);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5a4d24);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'},_0x5a4d24);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5a4d24);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5a4d24);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5a4d24);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5a4d24);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'},_0x5a4d24);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5a4d24);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'},_0x5a4d24);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'},_0x5a4d24);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5a4d24);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'},_0x5a4d24);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5a4d24);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'},_0x5a4d24);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5a4d24);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5a4d24);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'},_0x5a4d24);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5a4d24);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 _0x37a8c8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5a4d24);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x37a8c8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5a4d24);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5a4d24);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'},_0x5a4d24);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'},_0x5a4d24);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'},_0x5a4d24);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x560102;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x951b11,_0x1ea269){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x951b11,this['_locale']=_0x1ea269;}['getDescriptions'](_0x1afdf3){const _0x49ae38=[],_0x226e46=new Set(),_0x114f1f=new Set();for(let _0x4c1640=0x0;_0x4c1640<_0x1afdf3['length'];_0x4c1640++){const _0x322859=_0x1afdf3[_0x4c1640];if(!_0x322859['isInContent'])continue;const _0x5b74dc=this['_handleCustomCallbackDescription'](_0x322859);if(_0x5b74dc){if(null!=_0x322859['subType']){if(_0x226e46['has'](_0x322859['subType']))continue;_0x226e46['add'](_0x322859['subType']);}_0x49ae38['push'](_0x5b74dc);}else{if('attribute'==_0x322859['type']){const _0x32b1aa=_0x322859['data']['key'];if(_0x114f1f['has'](_0x32b1aa))continue;_0x114f1f['add'](_0x322859['data']['key']),_0x32b1aa==m?this['_handleRenameSuggestionDescription'](_0x49ae38,_0x322859):this['_handleAttributeSuggestionDescription'](_0x49ae38,_0x322859);continue;}'insertion'!=_0x322859['type']&&'deletion'!=_0x322859['type']||this['_handleInsertRemoveSuggestionDescription'](_0x49ae38,_0x322859,_0x1afdf3[_0x4c1640+0x1]);}}return this['_resolveDescriptionItems'](_0x49ae38);}['registerDescriptionCallback'](_0x4d6a35){this['_customCallbacks']['push'](_0x4d6a35);}['registerElementLabel'](_0x2e2028,_0x58fb60,_0x5844fa=_0x3efbf3['normal']){'function'==typeof _0x2e2028?_0x54604b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2e2028,'label':_0x58fb60,'priority':_0x5844fa}):this['_itemLabels']['set'](_0x2e2028,_0x58fb60);}['registerAttributeLabel'](_0x60aec,_0x1960ce){this['_attributeLabels']['set'](_0x60aec,_0x1960ce);}['getItemLabel'](_0x20cd79,_0x35d1ea=0x1){let _0x2c518e;for(const _0x164eee of this['_itemLabelsCallbacks'])if(_0x164eee['matchingCallback'](_0x20cd79)){_0x2c518e=_0x164eee['label'];break;}return _0x2c518e||(_0x2c518e=this['_itemLabels']['get'](_0x20cd79['name'])),_0x2c518e?_0x2c518e(_0x35d1ea):0x1!==_0x35d1ea?_0x35d1ea+'\x20'+_0x20cd79['name']+'s':''+_0x20cd79['name'];}['_addDescriptionItems'](_0x528cb9,_0x5cdcad){const _0x29955e=_0x5cdcad['getFirstRange']()['getWalker'](),_0x544d58='insertion'==_0x5cdcad['type']?'add':'remove';for(const _0x553e5a of _0x29955e){const _0xf93181=_0x553e5a['item'],_0x4e585f=_0x528cb9[_0x528cb9['length']-0x1];if(_0xf93181['is']('$textProxy'))_0x4e585f&&_0x4e585f['type']['indexOf']('Container')>-0x1&&_0x528cb9['pop'](),_0x4e585f&&'text'==_0x4e585f['type']?_0x4e585f[_0x544d58]+=_0xf93181['data']:_0x528cb9['push']({'type':'text','add':'add'==_0x544d58?_0xf93181['data']:'','remove':'remove'==_0x544d58?_0xf93181['data']:''});else{if(this['_schema']['isObject'](_0xf93181)){const _0x4ffc32=_0xf93181;if(_0x4e585f&&_0x4e585f['type']['indexOf']('Container')>-0x1&&_0x528cb9['pop'](),'elementEnd'==_0x553e5a['type'])continue;_0x4e585f&&_0x4e585f['type']==_0x544d58+'Object'&&_0x4e585f['element']['name']==_0x4ffc32['name']?_0x4e585f['quantity']++:_0x528cb9['push']({'type':_0x544d58+'Object','element':_0x4ffc32,'quantity':0x1}),_0x29955e['skip'](_0x6fb0eb=>!('elementEnd'==_0x6fb0eb['type']&&_0x6fb0eb['item']==_0xf93181));}else{if(this['_schema']['checkChild'](_0xf93181,'$text')||_0xf93181['is']('element','softBreak')){const _0x55a01c=_0xf93181;if('add'==_0x544d58&&'elementStart'==_0x553e5a['type']||'remove'==_0x544d58&&'elementEnd'==_0x553e5a['type'])continue;if(_0x4e585f&&-0x1==_0x4e585f['type']['indexOf']('Container')){'text'==_0x4e585f['type']&&(_0x4e585f[_0x544d58]+='\x0a');continue;}let _0x59cb44;if(_0x59cb44='add'==_0x544d58?_0x55a01c['nextSibling']&&!this['_schema']['isObject'](_0x55a01c['nextSibling'])?_0x55a01c['nextSibling']:null:_0x55a01c['previousSibling']&&!this['_schema']['isObject'](_0x55a01c['previousSibling'])?_0x55a01c['previousSibling']:null,_0x55a01c['isEmpty']||_0x59cb44&&_0x59cb44['isEmpty']){const _0x58c5ca=_0x59cb44&&_0x59cb44['isEmpty']?_0x59cb44:_0x55a01c;_0x4e585f&&_0x4e585f['type']==_0x544d58+'EmptyContainer'&&_0x4e585f['element']['name']==_0x58c5ca['name']?_0x4e585f['quantity']++:_0x528cb9['push']({'type':_0x544d58+'EmptyContainer','element':_0x58c5ca,'quantity':0x1});}else _0x528cb9['push']({'type':_0x544d58+'Container','element':_0x55a01c});}}}}}['_resolveDescriptionItems'](_0x337d32){const _0x33dbed=this['_locale'],_0x3c81d4=[],_0x37bdb6=[],_0x1125de=[];for(const _0x4a7a3d of _0x337d32)switch(_0x4a7a3d['type']){case'text':if(_0x4a7a3d['add']=_0x4a7a3d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4a7a3d['remove']=_0x4a7a3d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4a7a3d['add']&&''!=_0x4a7a3d['remove']){_0x3c81d4['push']({'type':'replace','content':o(_0x33dbed,'REPLACE_TEXT',['\x22'+_0x4a7a3d['remove']+'\x22','\x22'+_0x4a7a3d['add']+'\x22'])});continue;}if(null!=_0x4a7a3d['add']['match'](/^ +$/)){_0x3c81d4['push']({'type':'insertion','content':o(_0x33dbed,'*Insert:*\x20%0',o(_0x33dbed,'ELEMENT_SPACE',_0x4a7a3d['add']['length']))});continue;}if(null!=_0x4a7a3d['remove']['match'](/^ +$/)){_0x3c81d4['push']({'type':'deletion','content':o(_0x33dbed,'*Remove:*\x20%0',o(_0x33dbed,'ELEMENT_SPACE',_0x4a7a3d['remove']['length']))});continue;}if(''!=_0x4a7a3d['add']){_0x3c81d4['push']({'type':'insertion','content':o(_0x33dbed,'*Insert:*\x20%0','\x22'+_0x4a7a3d['add']+'\x22')});continue;}_0x3c81d4['push']({'type':'deletion','content':o(_0x33dbed,'*Remove:*\x20%0','\x22'+_0x4a7a3d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3c81d4['push']({'type':'insertion','content':o(_0x33dbed,'*Insert:*\x20%0',this['getItemLabel'](_0x4a7a3d['element'],_0x4a7a3d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3c81d4['push']({'type':'deletion','content':o(_0x33dbed,'*Remove:*\x20%0',this['getItemLabel'](_0x4a7a3d['element'],_0x4a7a3d['quantity']))});continue;case'addContainer':_0x3c81d4['push']({'type':'insertion','content':o(_0x33dbed,'*Split:*\x20%0',this['getItemLabel'](_0x4a7a3d['element'],_0x4a7a3d['quantity']))});continue;case'removeContainer':_0x3c81d4['push']({'type':'deletion','content':o(_0x33dbed,'*Merge:*\x20%0',this['getItemLabel'](_0x4a7a3d['element'],_0x4a7a3d['quantity']))});continue;case'addFormat':_0x37bdb6['push'](_0x4a7a3d['key']);continue;case'removeFormat':_0x1125de['push'](_0x4a7a3d['key']);continue;default:_0x3c81d4['push'](_0x4a7a3d);}if(_0x37bdb6['length']){const _0x55b931=_0x37bdb6['map'](_0x2f6a3e=>this['_attributeLabels']['has'](_0x2f6a3e)?this['_attributeLabels']['get'](_0x2f6a3e):_0x2f6a3e)['join'](',\x20');_0x3c81d4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x55b931)});}if(_0x1125de['length']){const _0x1faa45=_0x1125de['map'](_0x3d8791=>this['_attributeLabels']['has'](_0x3d8791)?this['_attributeLabels']['get'](_0x3d8791):_0x3d8791)['join'](',\x20');_0x3c81d4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1faa45)});}return _0x3c81d4;}['_handleCustomCallbackDescription'](_0x22eefe){for(const _0x2ba8c4 of this['_customCallbacks']){const _0x26e502=_0x2ba8c4(_0x22eefe);if(_0x26e502&&'type'in _0x26e502)return _0x26e502;}}['_handleAttributeSuggestionDescription'](_0x42c622,_0x2b7b14){const _0x1d05fc=_0x2b7b14['data'],_0x3837b2=void 0x0===_0x1d05fc['newValue']?'removeFormat':'addFormat';_0x42c622['push']({'type':_0x3837b2,'key':_0x1d05fc['key']});}['_handleRenameSuggestionDescription'](_0x4c7ff7,_0x2baabb){_0x4c7ff7['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2baabb['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x364cc8,_0x8a9b5d,_0x21fc51){if(this['_addDescriptionItems'](_0x364cc8,_0x8a9b5d),_0x21fc51&&_0x21fc51['getFirstRange']()&&!_0x8a9b5d['getFirstRange']()['end']['isEqual'](_0x21fc51['getFirstRange']()['start'])){const _0x125925=_0x364cc8[_0x364cc8['length']-0x1],_0x27a85a='insertion'==_0x8a9b5d['type']?'add':'remove';_0x125925&&'text'==_0x125925['type']&&(_0x125925[_0x27a85a]+='\x0a');}}}class O extends _0xa897c8{['afterInit'](){const _0x3006ad=this['editor'],_0x5810c0=_0x3006ad['plugins']['get']('TrackChangesEditing');_0x3006ad['commands']['get']('showAIAssistant')&&_0x5810c0['enableCommand']('showAIAssistant');}}class E extends _0xa897c8{['afterInit'](){const _0x1b81c0=this['editor'],_0x1843c0=_0x1b81c0['locale'];if(!_0x1b81c0['plugins']['has']('AlignmentEditing'))return;const _0x52757f=_0x1b81c0['plugins']['get']('TrackChangesEditing');_0x52757f['enableDefaultAttributesIntegration']('alignment'),_0x52757f['registerBlockAttribute']('alignment'),_0x52757f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1843c0,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ec65b=this['editor'],_0x3adfaf=_0x2ec65b['locale'];_0x2ec65b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x545119=>{if('formatBlock'!=_0x545119['type'])return;const {data:_0x48ae47}=_0x545119;if(_0x48ae47&&'alignment'==_0x48ae47['commandName']){const _0x593c3f=_0x48ae47['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3adfaf,'*Format:*\x20%0',function(_0x4b9ec2){switch(_0x4b9ec2){case'left':return o(_0x3adfaf,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3adfaf,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3adfaf,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3adfaf,'FORMAT_JUSTIFY_TEXT');}}(_0x593c3f))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xa897c8{['afterInit'](){const _0x23c1d5=this['editor'],_0x473932=_0x23c1d5['plugins']['get']('TrackChangesEditing'),_0x2007a9=_0x23c1d5['locale'];for(const _0x165c63 of ti){if(!_0x23c1d5['plugins']['has'](_0x165c63))continue;const _0x25f939=_0x165c63['slice'](0x0,-0x7)['toLowerCase'](),_0x2a99f1='FORMAT_'+_0x25f939['toUpperCase']();_0x473932['enableDefaultAttributesIntegration'](_0x25f939),_0x473932['registerInlineAttribute'](_0x25f939),_0x473932['descriptionFactory']['registerAttributeLabel'](_0x25f939,o(_0x2007a9,_0x2a99f1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47340a=this['editor'],_0x461957=_0x47340a['locale'],_0x41af29=_0x47340a['plugins']['get']('TrackChangesEditing');function _0x5065d2(_0x5a56c0,_0x3a10b3){_0x41af29['descriptionFactory']['registerDescriptionCallback'](_0x5940fb=>{if('formatInline'!=_0x5940fb['type'])return;const {data:_0x2ba988}=_0x5940fb;return _0x2ba988&&_0x2ba988['commandName']===_0x5a56c0?_0x2ba988['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x461957,'*Format:*\x20%0',_0x3a10b3)}:{'type':'format','content':o(_0x461957,'*Remove\x20format:*\x20%0',_0x3a10b3)}:void 0x0;});}_0x5065d2('bold',o(_0x461957,'FORMAT_BOLD')),_0x5065d2('italic',o(_0x461957,'FORMAT_ITALIC')),_0x5065d2('underline',o(_0x461957,'FORMAT_UNDERLINE')),_0x5065d2('code',o(_0x461957,'FORMAT_CODE')),_0x5065d2('strikethrough',o(_0x461957,'FORMAT_STRIKETHROUGH')),_0x5065d2('subscript',o(_0x461957,'FORMAT_SUBSCRIPT')),_0x5065d2('superscript',o(_0x461957,'FORMAT_SUPERSCRIPT'));}}class U extends _0xa897c8{['afterInit'](){const _0x3ebf2a=this['editor'],_0x26af61=_0x3ebf2a['locale'];if(!_0x3ebf2a['plugins']['has']('BlockQuoteEditing'))return;const _0xcbd3c=_0x3ebf2a['plugins']['get']('TrackChangesEditing'),_0x26db0=this['editor']['commands']['get']('blockQuote');_0xcbd3c['enableCommand']('blockQuote',(_0x2e68c0,_0x4b5648={})=>{const _0x4e3be8=this['editor']['model']['document']['selection'],_0x2cb8ea=_0x4b5648&&void 0x0!==_0x4b5648['forceValue']?_0x4b5648['forceValue']:!_0x26db0['value'];let _0x26e302=[];if(_0x2cb8ea){const _0x5a6cc5=Array['from'](_0x4e3be8['getSelectedBlocks']())['filter'](_0x5ef677=>oo(_0x5ef677)||function(_0x4d3b11,_0x237f3a){const _0x1f6eb8=_0x237f3a['checkChild'](_0x4d3b11['parent'],'blockQuote'),_0x25a4bc=_0x237f3a['checkChild'](['$root','blockQuote'],_0x4d3b11);return _0x1f6eb8&&_0x25a4bc;}(_0x5ef677,this['editor']['model']['schema']));_0x26e302=to(_0x5a6cc5,_0x3ebf2a['model']);}else{const _0x12b137=Array['from'](_0x4e3be8['getSelectedBlocks']())['filter'](_0x460ec8=>oo(_0x460ec8));_0x26e302=to(_0x12b137,_0x3ebf2a['model']);}_0x3ebf2a['model']['change'](()=>{for(const _0x22724c of _0x26e302)_0xcbd3c['markBlockFormat'](_0x22724c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2cb8ea}]});});}),_0xcbd3c['descriptionFactory']['registerDescriptionCallback'](_0x14b466=>{const {data:_0x4eea17}=_0x14b466;if(_0x4eea17&&'blockQuote'==_0x4eea17['commandName']){const _0x6b32cc=o(_0x26af61,'ELEMENT_BLOCK_QUOTE');return _0x4eea17['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26af61,'*Set\x20format:*\x20%0',_0x6b32cc)}:{'type':'format','content':o(_0x26af61,'*Remove\x20format:*\x20%0',_0x6b32cc)};}});}}function oo(_0x1775e5){return'blockQuote'==_0x1775e5['parent']['name'];}class V extends _0xa897c8{['afterInit'](){const _0x1377fe=this['editor'],_0x146cad=_0x1377fe['locale'],_0x3c7293=_0x1377fe['plugins']['get']('TrackChangesEditing');_0x1377fe['plugins']['has']('BookmarkEditing')&&(_0x3c7293['enableCommand']('insertBookmark'),_0x3c7293['enableDefaultAttributesIntegration']('updateBookmark'),_0x3c7293['registerBlockAttribute']('bookmarkId'),_0x3c7293['descriptionFactory']['registerDescriptionCallback'](_0x2123ae=>{if('insertion'!=_0x2123ae['type']&&'deletion'!=_0x2123ae['type']&&'attribute'!=_0x2123ae['type'])return;const _0x5123fe=_0x2123ae['getContainedElement']();if(null==_0x5123fe)return;if(!_0x5123fe['is']('element','bookmark'))return;const _0x286f04=_0x5123fe['getAttribute']('bookmarkId');if('insertion'==_0x2123ae['type'])return{'type':'insertion','content':o(_0x146cad,'*Insert:*\x20%0','\x22'+_0x286f04+'\x22\x20'+o(_0x146cad,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2123ae['type'])return{'type':'deletion','content':o(_0x146cad,'*Remove:*\x20%0','\x22'+_0x286f04+'\x22\x20'+o(_0x146cad,'ELEMENT_BOOKMARK'))};const {data:_0x24e272}=_0x2123ae;if(!_0x24e272||'bookmarkId'!=_0x24e272['key'])return;return{'type':'format','content':o(_0x146cad,'*Set\x20bookmark:*\x20%0','\x22'+_0x24e272['newValue']+'\x22')};}));}}class F extends _0xa897c8{['afterInit'](){const _0x37e3c2=this['editor'];_0x37e3c2['plugins']['has']('CaseChange')&&(_0x37e3c2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x37e3c2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x37e3c2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xa897c8{['afterInit'](){const _0x3d42cd=this['editor'];_0x3d42cd['commands']['get']('ckbox')&&_0x3d42cd['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xa897c8{['afterInit'](){const _0x3d5ebb=this['editor'];if(!_0x3d5ebb['plugins']['has']('CodeBlock'))return;const _0x5081f1=_0x3d5ebb['plugins']['get']('TrackChangesEditing'),_0x4e7b93=_0x3d5ebb['locale'],_0x399e4e=_0x3d5ebb['config']['get']('codeBlock')['languages'],_0x4e53f5=_0x3d5ebb['commands']['get']('codeBlock');_0x5081f1['enableCommand']('indentCodeBlock'),_0x5081f1['enableCommand']('outdentCodeBlock'),_0x5081f1['enableCommand']('codeBlock',(_0xa6d8f6,_0x401580={})=>{const _0x225520=_0x3d5ebb['model'],_0x46a2ea=_0x3d5ebb['model']['document']['selection'],_0x2c8c7f=_0x401580&&void 0x0!==_0x401580['forceValue']?_0x401580['forceValue']:!_0x4e53f5['value'];let _0x38b523;_0x401580['language']||(_0x401580['language']=_0x399e4e[0x0]['language']),_0x38b523=_0x2c8c7f?Array['from'](_0x46a2ea['getSelectedBlocks']())['filter'](_0x5d4055=>co(_0x5d4055)||function(_0x103afc,_0x30a87f){if(_0x103afc['is']('rootElement')||_0x30a87f['isLimit'](_0x103afc))return!0x1;return _0x30a87f['checkChild'](_0x103afc['parent'],'codeBlock');}(_0x5d4055,_0x225520['schema'])):Array['from'](_0x46a2ea['getSelectedBlocks']())['filter'](_0x548663=>co(_0x548663));const _0x2e620f=to(_0x38b523,_0x225520);_0x225520['change'](()=>{for(const _0x5a191a of _0x2e620f)_0x5081f1['markBlockFormat'](_0x5a191a,{'commandName':'codeBlock','commandParams':[{..._0x401580,'forceValue':_0x2c8c7f}],'formatGroupId':'blockName'});});}),(_0x5081f1['descriptionFactory']['registerElementLabel']('codeBlock',_0x5a943c=>o(_0x4e7b93,'ELEMENT_CODE_BLOCK',_0x5a943c)),_0x5081f1['descriptionFactory']['registerDescriptionCallback'](_0x86eb8a=>{if('formatBlock'!=_0x86eb8a['type'])return;const _0x35ca3e=_0x4e7b93['t'],{data:_0x4e956b}=_0x86eb8a;if(!_0x4e956b||'codeBlock'!=_0x4e956b['commandName'])return;const _0x3dd699=_0x4e956b['commandParams'][0x0]['language'],_0x5ed273=_0x35ca3e(_0x399e4e['find'](_0x45f9f5=>_0x45f9f5['language']===_0x3dd699)['label'])['toLowerCase']();return _0x4e956b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e7b93,'*Set\x20format:*\x20%0',o(_0x4e7b93,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5ed273+')')}:{'type':'format','content':o(_0x4e7b93,'*Remove\x20format:*\x20%0',o(_0x4e7b93,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x5cae6f){return'codeBlock'==_0x5cae6f['name'];}class J extends _0xa897c8{['afterInit'](){const _0x189eb3=this['editor'];if(!_0x189eb3['plugins']['has']('CommentsEditing'))return;_0x189eb3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x19502a,_0x4cf579,_0x508668){const _0x2517d4=[];for(const _0xb88b41 of _0x4cf579['getItems']())_0xb88b41['hasAttribute'](_0x19502a)&&_0x2517d4['push'](_0x508668['createRangeOn'](_0xb88b41));return _0x2517d4;}function De(_0x39a2f6,_0x4e3b60,{showActiveMarker:_0x3bbdd9=!0x0}={}){const _0x19a281=_0x39a2f6['plugins']['get']('TrackChangesEditing');return(_0x435576,_0x4ad735,_0x57f953)=>{if(!_0x57f953['consumable']['test'](_0x4ad735['markerRange'],_0x435576['name']))return;const _0x5f48a5=_0x4ad735['markerRange']['getWalker'](),_0x18089a=_0x4ad735['markerRange']['start'],_0xc6b447=_0x39a2f6['model']['schema'];let _0x42f82d=null,_0x40678d=null,_0x1966fa=!0x1,_0x299fbb=!0x1;for(const _0x1aaf0c of _0x5f48a5){const _0x3242b7=_0x1aaf0c['item'];_0x1966fa=_0x1966fa||_0xc6b447['isContent'](_0x3242b7);const _0x69735=_0x57f953['mapper']['toViewElement'](_0x3242b7);if(_0x69735&&_0x69735['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1aaf0c['type']&&(_0xc6b447['isBlock'](_0x3242b7)&&!_0xc6b447['isLimit'](_0x3242b7)&&(_0x3242b7['nextSibling']||_0x18089a['isAtEnd']?_0x42f82d&&_0x42f82d['parent']==_0x3242b7||(_0x42f82d=_0x3242b7,_0x12f7b5(_0x1aaf0c['previousPosition']),_0x299fbb=!0x0):_0x40678d=_0x40678d||_0x1aaf0c['previousPosition']));}function _0x12f7b5(_0x309d8a){const {id:_0x48f4e5,authorId:_0x4686a1}=_0x19a281['_splitMarkerName'](_0x4ad735['markerName']),_0x59eab7=_0x57f953['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e3b60,'data-suggestion':_0x48f4e5,'data-author-id':_0x4686a1}),_0x262843=_0x57f953['mapper']['toViewPosition'](_0x309d8a);_0x3bbdd9&&_0x19a281['activeMarkers']['includes'](_0x4ad735['markerName'])&&_0x57f953['writer']['addClass']('ck-suggestion-marker--active',_0x59eab7),_0x57f953['writer']['insert'](_0x262843,_0x59eab7),_0x57f953['mapper']['bindElementToMarker'](_0x59eab7,_0x4ad735['markerName']);}_0x1966fa||_0x299fbb||!_0x40678d||_0x12f7b5(_0x40678d);};}class K extends _0xa897c8{static get['requires'](){return[_0x5dedc8];}['init'](){const _0x850ec6=this['editor'],_0x24dfdc=_0x850ec6['plugins']['get']('TrackChangesEditing');_0x24dfdc['enableCommand']('delete');const _0x1b1ec9=_0x850ec6['commands']['get']('deleteForward');_0x24dfdc['enableCommand']('deleteForward',(_0x356457,_0x151f53={})=>{const _0x512bae=_0x850ec6['model']['createSelection'](_0x850ec6['model']['document']['selection']);_0x512bae['isCollapsed']&&_0x850ec6['model']['modifySelection'](_0x512bae,{'direction':'forward','unit':_0x151f53['unit']});const _0x4da34a=_0x512bae['getFirstRange'](),_0x202d7d=_0x1437b2['fromRange'](_0x4da34a);let _0x1c9b43;_0x356457(_0x151f53),_0x1c9b43='$graveyard'==_0x202d7d['root']['rootName']?_0x850ec6['model']['createRange'](_0x4da34a['start']):_0x850ec6['model']['createRange'](_0x202d7d['start'],_0x202d7d['end']),_0x202d7d['detach'](),_0x850ec6['model']['enqueueChange'](_0x1b1ec9['buffer']['batch'],_0x2e455a=>{_0x1b1ec9['buffer']['lock'](),_0x2e455a['setSelection'](_0x2e455a['createRange'](_0x1c9b43['end'])),_0x1b1ec9['buffer']['unlock']();});}),_0x850ec6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x850ec6,'merge'),{'priority':'high'}),_0x850ec6['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x471ec8,_0x2241a8,_0x1b8ac8)=>{_0x1b8ac8['options']['showSuggestionHighlights']&&De(_0x850ec6,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x471ec8,_0x2241a8,_0x1b8ac8);},{'priority':'high'}),_0x850ec6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5f3282,_0x38f7dd,_0x44ca24)=>{const _0x45a3b7=_0x44ca24['mapper']['markerNameToElements'](_0x38f7dd['markerName']);if(_0x45a3b7){for(const _0x5e8d73 of _0x45a3b7)_0x5e8d73['is']('uiElement')&&(_0x44ca24['mapper']['unbindElementFromMarkerName'](_0x5e8d73,_0x38f7dd['markerName']),_0x44ca24['writer']['remove'](_0x5e8d73));}},{'priority':'high'});}}class H extends _0xa897c8{['afterInit'](){const _0x2b432e=this['editor'];if(!_0x2b432e['plugins']['has']('ListEditing'))return;const _0x55943c=_0x2b432e['locale'],_0x478c8c=_0x2b432e['plugins']['get']('TrackChangesEditing'),_0x961fe0=_0x2b432e['plugins']['has']('TodoListEditing'),_0x2d43e3=!!_0x2b432e['config']['get']('list.multiBlock');function _0xe862eb(_0x2ef9c6){return{'type':'format','content':''+o(_0x55943c,'*Set\x20format:*\x20%0',_0x2ef9c6)};}function _0x4e263d(_0x1a7ca6){return{'type':'format','content':''+o(_0x55943c,'*Remove\x20format:*\x20%0',_0x1a7ca6)};}_0x478c8c['enableDefaultAttributesIntegration']('numberedList'),_0x478c8c['enableDefaultAttributesIntegration']('bulletedList'),_0x478c8c['enableDefaultAttributesIntegration']('customNumberedList'),_0x478c8c['enableDefaultAttributesIntegration']('customBulletedList'),_0x478c8c['enableDefaultAttributesIntegration']('indentList'),_0x478c8c['enableDefaultAttributesIntegration']('outdentList'),_0x478c8c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x478c8c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x478c8c['registerBlockAttribute']('listItemId'),_0x478c8c['registerBlockAttribute']('listType'),_0x478c8c['registerBlockAttribute']('listIndent'),_0x2d43e3&&(_0x478c8c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x478c8c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x961fe0&&(_0x478c8c['enableDefaultAttributesIntegration']('todoList'),_0x478c8c['enableDefaultAttributesIntegration']('checkTodoList'),_0x478c8c['registerBlockAttribute']('todoListChecked'),_0x478c8c['descriptionFactory']['registerDescriptionCallback'](_0x109a95=>{const {data:_0x156f6f}=_0x109a95;if(_0x156f6f&&'todoListChecked'==_0x156f6f['key'])return{'type':'format','content':_0x156f6f['newValue']?o(_0x55943c,'*Check\x20item*'):o(_0x55943c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1cc7da=>{if(_0x1cc7da['batch']['isUndo'])return!0x1;let _0x3eaf21=!0x1;const _0x43c51d=_0x478c8c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5aee47=>'todoListChecked'===_0x478c8c['_getAttributeKey'](_0x5aee47));for(const _0x2931f9 of _0x43c51d){'todo'!=_0x2931f9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x478c8c['_findSuggestions'](_0x2931f9['getFirstRange'](),'attribute')['find'](_0x12e138=>'listType'===_0x478c8c['_getAttributeKey'](_0x12e138['suggestion']))||(_0x1cc7da['removeMarker'](_0x2931f9['getFirstMarker']()),_0x3eaf21=!0x0));}return _0x3eaf21;})),_0x478c8c['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x55943c,'FORMAT_INDENT'));const _0x1ce256={'type':'format','content':''};_0x478c8c['descriptionFactory']['registerDescriptionCallback'](_0x1b8c93=>{const {data:_0x68efd5}=_0x1b8c93;if(!_0x68efd5||'listType'!=_0x68efd5['key'])return;let _0x3d50c3=_0x1b8c93['head'];for(;_0x3d50c3;){if(_0x3d50c3['data']&&(('listStyle'==_0x3d50c3['data']['key']||'listMarkerStyle'==_0x3d50c3['data']['key'])&&(_0x3d50c3['data']['newValue']&&'default'!=_0x3d50c3['data']['newValue']||'default'!=_0x3d50c3['data']['oldValue']&&!_0x68efd5['newValue'])||!_0x2d43e3&&_0x3d50c3['data']['key']==m))return _0x1ce256;_0x3d50c3=_0x3d50c3['next'];}if(null==_0x68efd5['newValue'])switch(_0x68efd5['oldValue']){case'bulleted':return _0x4e263d(o(_0x55943c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4e263d(o(_0x55943c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4e263d(o(_0x55943c,'ELEMENT_TODO_LIST'));}switch(_0x68efd5['newValue']){case'bulleted':return _0xe862eb(o(_0x55943c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe862eb(o(_0x55943c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe862eb(o(_0x55943c,'ELEMENT_TODO_LIST'));}}),_0x478c8c['descriptionFactory']['registerDescriptionCallback'](_0x14dc38=>{const {data:_0x2267ba}=_0x14dc38;if(_0x2267ba&&'listIndent'==_0x2267ba['key'])return null==_0x2267ba['newValue']||null==_0x2267ba['oldValue']&&0x0==_0x2267ba['newValue']?_0x1ce256:void 0x0;}),_0x478c8c['descriptionFactory']['registerDescriptionCallback'](_0x5f3f80=>{if('attribute'!=_0x5f3f80['type'])return;const {data:_0x122844}=_0x5f3f80;if(!_0x122844||'listItemId'!=_0x122844['key'])return;const _0x337759=Te(_0x5f3f80);return'newValue'==_0x337759?{'type':'format','content':o(_0x55943c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x337759?{'type':'format','content':o(_0x55943c,'*Split:*\x20list\x20item')}:_0x1ce256;}),_0x2b432e['model']['document']['registerPostFixer'](_0x322966=>this['listItemIdFixer'](_0x322966)),_0x2b432e['model']['document']['registerPostFixer'](_0x51cb99=>this['noTrackChangesFixer'](_0x51cb99)),_0x2b432e['model']['document']['on']('change:data',(_0x3c8f66,_0x36ec60)=>{if(_0x36ec60['isUndo']||!_0x36ec60['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x326f30){if(_0x326f30['batch']['isUndo']||!_0x326f30['batch']['isLocal'])return!0x1;let _0x3e1316=!0x1;const _0x5f10d7=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26a5b3=>_0x26a5b3['data']&&'listItemId'==_0x26a5b3['data']['key'])['filter'](_0x5d968d=>_0x5d968d['data']['newValue']&&_0x5d968d['data']['oldValue']);for(const _0xc3a4ad of _0x5f10d7)Te(_0xc3a4ad)||(_0x326f30['removeMarker'](_0xc3a4ad['getFirstMarker']()),_0x3e1316=!0x0);return _0x3e1316;}['noTrackChangesFixer'](_0x5f184c){if(_0x5f184c['batch']['isUndo']||!_0x5f184c['batch']['isLocal'])return!0x1;const _0x3b02c8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3b02c8['trackChangesCommand']['value'])return!0x1;let _0x2afa83=!0x1;const _0x508db1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x321ddf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5dca8d=>'attribute'==_0x5dca8d['type'])['filter'](_0x47d10e=>_0x508db1['includes'](_0x47d10e['attributeKey']));if(0x0==_0x321ddf['length'])return _0x2afa83;for(const _0x25e4a3 of _0x321ddf){const _0x38d782=_0x3b02c8['_findSuggestions'](_0x25e4a3['range'],'attribute')['filter'](_0x5ab31b=>!_0x5ab31b['meta']['isNextTo'])['map'](_0x2a4e=>_0x2a4e['suggestion'])['filter'](_0x21551a=>{const _0x4de543=_0x3b02c8['_getAttributeKey'](_0x21551a);return _0x508db1['includes'](_0x4de543);});if(_0x38d782['length']){for(const _0x33446a of _0x38d782)_0x5f184c['removeMarker'](_0x33446a['getFirstMarker']());_0x2afa83=!0x0;}}return _0x2afa83;}['assureChains'](){const _0x167d8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f9d0a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xf38806;const _0x399b9d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3e0dcb=>{if(_0x3e0dcb['data']['oldRange']||!_0x3e0dcb['data']['newRange'])return null;if(!_0x3e0dcb['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x54a6d2}=_0x167d8e['_splitMarkerName'](_0x3e0dcb['name']);if(!_0x167d8e['hasSuggestion'](_0x54a6d2))return null;const _0x5b8241=_0x167d8e['getSuggestion'](_0x54a6d2);return _0x3f9d0a['includes'](_0x5b8241['data']['key']);})['map'](_0x5c0414=>{const {id:_0x5309c8}=_0x167d8e['_splitMarkerName'](_0x5c0414['name']),_0x19651d=_0x167d8e['getSuggestion'](_0x5309c8);return _0xf38806=_0x19651d['attributes']['groupId'],_0x19651d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x399b9d['size'])return;const _0x3dc55b=_0x167d8e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5851d5=>'attribute'==_0x5851d5['type']&&_0x5851d5['data']&&_0x3f9d0a['includes'](_0x5851d5['data']['key'])&&_0x5851d5['attributes']['groupId']!=_0xf38806)['map'](_0x44b117=>({'listItem':_0x44b117['getFirstRange']()['start']['nodeAfter'],'groupId':_0x44b117['attributes']['groupId']})),_0x30dd47=new Set();for(const {groupId:_0x3b6cff,listItem:_0x5401fd}of _0x3dc55b)_0x399b9d['has'](_0x5401fd)&&_0x30dd47['add'](_0x3b6cff);for(const _0x160019 of _0x167d8e['getSuggestions']())_0x30dd47['has'](_0x160019['attributes']['groupId'])&&_0x160019['setAttribute']('groupId',_0xf38806);}['_supportLegacySuggestions'](){const _0xbdb079=this['editor'],_0x4a2b46=_0xbdb079['locale'],_0xe60a68=_0xbdb079['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xe60a68['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x57c11c,_0x39ccc9){const _0x2ace34=[];for(let _0x59fdeb of _0x57c11c)_0x59fdeb['start']['nodeAfter']===_0x59fdeb['end']['parent']&&(_0x59fdeb=_0xbdb079['model']['createRange'](_0xbdb079['model']['createPositionAt'](_0x59fdeb['start']['nodeAfter'],0x0))),_0x2ace34['push'](_0x59fdeb);_0xbdb079['model']['change'](_0x5163fe=>{const _0x469924=_0xbdb079['model']['document']['selection'],_0x553972=Array['from'](_0x469924['getRanges']())['map'](_0x4a6304=>_0x1437b2['fromRange'](_0x4a6304));_0x5163fe['setSelection'](_0x2ace34),_0xbdb079['commands']['get'](_0x39ccc9['commandName'])['refresh'](),_0x39ccc9['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xbdb079['execute'](_0x39ccc9['commandName'],..._0x39ccc9['commandParams']),_0x5163fe['setSelection'](_0x553972);for(const _0x433722 of _0x553972)_0x433722['detach']();});}),_0xe60a68['descriptionFactory']['registerElementLabel'](function(_0x509689){const _0x3128b2=!_0xbdb079['model']['schema']['isObject'](_0x509689),_0x4a1b84=_0x509689['previousSibling'],_0x2d4eb0=_0x509689['nextSibling'],_0x2abad0=_0x509689['getAttribute']('listItemId'),_0x1d65be=!_0x4a1b84||_0x4a1b84['getAttribute']('listItemId')!==_0x2abad0,_0x44f9da=!_0x2d4eb0||_0x2d4eb0['getAttribute']('listItemId')!==_0x2abad0;return _0x3128b2&&Boolean(_0x2abad0)&&_0x1d65be&&_0x44f9da;},_0x4ff37b=>o(_0x4a2b46,'ELEMENT_LIST_ITEM',_0x4ff37b));}['_registerLegacyDescription'](){const _0xb66872=this['editor'],_0x309f61=_0xb66872['locale'];function _0x22123f(_0x39e61f){const _0x261b2e=_0xb66872['commands']['get']('bulletedList')['value'],_0x31fefd=_0xb66872['commands']['get']('numberedList')['value'];return'numberedList'===_0x39e61f?_0x261b2e:_0x31fefd;}_0xb66872['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4448b1){if('formatBlock'!=_0x4448b1['type'])return;const {data:_0x5a3ac2}=_0x4448b1;if(!_0x5a3ac2)return;let _0x39335b,_0x3771b2,_0x43119e,_0x3faa0d;switch(_0x5a3ac2['commandName']){case'bulletedList':_0x43119e=_0x5a3ac2['commandParams'][0x0]['forceValue'],_0x3faa0d=_0x22123f(_0x5a3ac2['commandName']),_0x39335b=_0x43119e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3faa0d&&_0xb66872['config']['get']('list.multiBlock')||(_0x39335b='*Change\x20to:*\x20%0'),_0x3771b2={'type':'format','content':o(_0x309f61,_0x39335b,o(_0x309f61,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x43119e=_0x5a3ac2['commandParams'][0x0]['forceValue'],_0x3faa0d=_0x22123f(_0x5a3ac2['commandName']),_0x39335b=_0x43119e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3faa0d&&_0xb66872['config']['get']('list.multiBlock')||(_0x39335b='*Change\x20to:*\x20%0'),_0x3771b2={'type':'format','content':o(_0x309f61,_0x39335b,o(_0x309f61,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x39335b='*Indent:*\x20%0',_0x3771b2={'type':'format','content':o(_0x309f61,_0x39335b,o(_0x309f61,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x39335b=function(_0x497fc5){const _0x1777ac=_0x497fc5['getFirstRange']();let _0x257d4e=_0x1777ac['start']['nodeAfter'];for(;_0x257d4e&&_0x1777ac['containsItem'](_0x257d4e);){if(_0x257d4e['getAttribute']('listIndent')>0x0)return!0x1;_0x257d4e=_0x257d4e['nextSibling'];}return!0x0;}(_0x4448b1)?o(_0x309f61,'*Format:*\x20remove\x20from\x20%0',o(_0x309f61,function(_0x1833e9){return'ELEMENT_'+_0x1833e9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4448b1))):o(_0x309f61,'*Outdent:*\x20%0',o(_0x309f61,'ELEMENT_LIST_ITEM')),_0x3771b2={'type':'format','content':_0x39335b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5a3ac2['multipleBlocks']&&(_0x39335b='*Merge:*\x20%0',_0x3771b2={'type':'deletion','content':o(_0x309f61,_0x39335b,o(_0x309f61,'ELEMENT_LIST_ITEM'))});}return _0x3771b2;});}}function Te(_0x4a99d9){let _0x1fef41=_0x4a99d9['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1fef41;){const _0x1682ab=_0x1fef41['getAttribute']('listItemId');if(!_0x1682ab)return!0x1;if(_0x1682ab==_0x4a99d9['data']['newValue'])return'newValue';if(_0x1682ab==_0x4a99d9['data']['oldValue'])return'oldValue';_0x1fef41=_0x1fef41['previousSibling'];}return!0x1;}class q extends _0xa897c8{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xe65c4c=this['editor']['config']['get']('list.properties'),_0x1de8a0=this['editor']['plugins']['get']('TrackChangesEditing');_0xe65c4c['styles']&&(_0x1de8a0['enableDefaultAttributesIntegration']('listStyle'),_0x1de8a0['registerBlockAttribute']('listStyle')),_0xe65c4c['reversed']&&(_0x1de8a0['enableDefaultAttributesIntegration']('listReversed'),_0x1de8a0['registerBlockAttribute']('listReversed')),_0xe65c4c['startIndex']&&(_0x1de8a0['enableDefaultAttributesIntegration']('listStart'),_0x1de8a0['registerBlockAttribute']('listStart'));const _0x1ccec2={'type':'format','content':''};_0x1de8a0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x43f394=this['editor']['locale'];_0x1de8a0['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x43f394,'FORMAT_LIST_REVERSED')),_0x1de8a0['descriptionFactory']['registerDescriptionCallback'](_0x1e761b=>{const {data:_0x685320}=_0x1e761b;if(_0x685320&&'listReversed'==_0x685320['key'])return null==_0x685320['newValue']||0x0==_0x685320['newValue']&&null==_0x685320['oldValue']?_0x1ccec2:void 0x0;}),_0x1de8a0['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x43f394,'FORMAT_LIST_START')),_0x1de8a0['descriptionFactory']['registerDescriptionCallback'](_0x2cae02=>{const {data:_0x3629ec}=_0x2cae02;if(_0x3629ec&&'listStart'==_0x3629ec['key'])return null==_0x3629ec['newValue']||0x1==_0x3629ec['newValue']&&null==_0x3629ec['oldValue']?_0x1ccec2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x145b7b=>{if(_0x145b7b['batch']['isUndo'])return!0x1;let _0xe86770=!0x1;const _0x55872d=_0x1de8a0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5bbe5b=>{const _0x5ca11c=_0x1de8a0['_getAttributeKey'](_0x5bbe5b);return'listStart'==_0x5ca11c||'listReversed'==_0x5ca11c;});for(const _0x37c122 of _0x55872d){const _0x1af6f9=_0x37c122['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1af6f9||'customNumbered'==_0x1af6f9)continue;_0x1de8a0['_findSuggestions'](_0x37c122['getFirstRange'](),'attribute')['find'](_0x1876ad=>'listType'==_0x1de8a0['_getAttributeKey'](_0x1876ad['suggestion']))||(_0x145b7b['removeMarker'](_0x37c122['getFirstMarker']()),_0xe86770=!0x0);}return _0xe86770;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5d7517){const _0x4e29c1=this['editor']['locale'],{data:_0x3498f3}=_0x5d7517,_0x438208={'type':'format','content':''};if(!_0x3498f3||'listStyle'!=_0x3498f3['key'])return;if(!_0x3498f3['oldValue'])return'default'==_0x3498f3['newValue']?_0x438208:{'type':'format','content':''+o(_0x4e29c1,'*Set\x20format:*\x20%0',o(_0x4e29c1,this['_getTranslationKeyForListStyle'](_0x3498f3['newValue'])))};if(!_0x3498f3['newValue']){if('default'==_0x3498f3['oldValue'])return _0x438208;let _0x3b48fe=_0x5d7517['head'];for(;_0x3b48fe;){if(_0x3b48fe['data']&&'listType'==_0x3b48fe['data']['key']&&_0x3b48fe['data']['newValue'])return _0x438208;_0x3b48fe=_0x3b48fe['next'];}return{'type':'format','content':''+o(_0x4e29c1,'*Remove\x20format:*\x20%0',o(_0x4e29c1,this['_getTranslationKeyForListStyle'](_0x3498f3['oldValue'])))};}if('default'!=_0x3498f3['newValue'])return{'type':'format','content':''+o(_0x4e29c1,'*Set\x20format:*\x20%0',o(_0x4e29c1,this['_getTranslationKeyForListStyle'](_0x3498f3['newValue'])))};let _0x761dd5=_0x5d7517['head'];for(;_0x761dd5;){if(_0x761dd5['data']&&'listType'==_0x761dd5['data']['key']&&_0x761dd5['data']['newValue']&&_0x761dd5['data']['oldValue'])return _0x438208;_0x761dd5=_0x761dd5['next'];}return{'type':'format','content':o(_0x4e29c1,'*Set\x20format:*\x20%0',o(_0x4e29c1,'ELEMENT_'+_0x5d7517['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3c6db1=this['editor'],_0x3a24b9=_0x3c6db1['locale'];_0x3c6db1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f492a=>{if('formatBlock'!=_0x5f492a['type'])return;const {data:_0xc4ccb8}=_0x5f492a;if(!_0xc4ccb8)return;let _0x5880e4,_0x31608b;switch(_0xc4ccb8['commandName']){case'listStyle':_0x5880e4='*Change\x20to:*\x20%0',_0x31608b={'type':'format','content':o(_0x3a24b9,_0x5880e4,o(_0x3a24b9,this['_getTranslationKeyForListStyle'](_0xc4ccb8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5880e4=_0xc4ccb8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x31608b={'type':'format','content':o(_0x3a24b9,_0x5880e4)};break;case'listStart':_0x5880e4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x31608b={'type':'format','content':o(_0x3a24b9,_0x5880e4,_0xc4ccb8['commandParams'][0x0]['startIndex'])};}return _0x31608b;});}['_getTranslationKeyForListStyle'](_0x5c2036){return'ELEMENT_'+function(_0x1205f7){if(Se['includes'](_0x1205f7))return'bulleted';if(_e['includes'](_0x1205f7))return'numbered';return null;}(_0x5c2036)['toUpperCase']()+'_LIST_'+_0x5c2036['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xa897c8{['afterInit'](){const _0x1980fb=this['editor'];_0x1980fb['commands']['get']('emoji')&&_0x1980fb['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xa897c8{static get['requires'](){return[_0x5b8dcc];}['init'](){const _0x5b0c94=this['editor'],_0xb7e7f4=_0x5b0c94['plugins']['get']('TrackChangesEditing'),_0x2141ac=_0x5b0c94['commands']['get']('enter');_0xb7e7f4['enableCommand']('enter',()=>{_0x5b0c94['model']['change'](_0x3a6849=>{const _0x2ad66c=_0x5b0c94['model']['document']['selection'],_0x473f69=_0x2ad66c['getFirstPosition'](),_0x19dcaf=_0x1437b2['fromRange'](_0x2ad66c['getFirstRange']());if(_0x2141ac['enterBlock'](_0x3a6849)){const _0x2eab70=_0x5b0c94['model']['createPositionAt'](_0x473f69['parent']['nextSibling'],0x0),_0x8812db=_0x3a6849['createRange'](_0x473f69,_0x2eab70);_0xb7e7f4['markInsertion'](_0x8812db);}else _0x3a6849['setSelection'](_0x3a6849['createRange'](_0x19dcaf['end']));_0x19dcaf['detach'](),_0x2141ac['fire']('afterExecute',{'writer':_0x3a6849});});}),_0x5b0c94['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x5b0c94,'split'),{'priority':'high'}),_0x5b0c94['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x938178,_0x302443,_0x249dde)=>{const _0xd5a2a8=_0x249dde['mapper']['markerNameToElements'](_0x302443['markerName']);if(_0xd5a2a8){for(const _0x2ea322 of _0xd5a2a8)_0x2ea322['hasClass']('ck-suggestion-marker-split')&&(_0x249dde['mapper']['unbindElementFromMarkerName'](_0x2ea322,_0x302443['markerName']),_0x249dde['writer']['remove'](_0x2ea322));}},{'priority':'high'}),_0x5b0c94['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d9cd0,_0x4a8b76,_0x242686)=>{_0x242686['options']['showSuggestionHighlights']&&De(_0x5b0c94,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5d9cd0,_0x4a8b76,_0x242686);},{'priority':'high'});}}class Q extends _0xa897c8{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x36dd03=this['editor']['plugins']['get']('TrackChangesEditing');_0x36dd03['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x36dd03['enableCommand']('findNext'),_0x36dd03['enableCommand']('findPrevious'),_0x36dd03['enableCommand']('replace'),_0x36dd03['enableCommand']('replaceAll');}['handleFindCommand'](_0x30ab27,_0x51a3f2,_0x114eb2={}){const _0x2d263a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x30ab27(_0x276018=>{let _0x27dd16=('string'==typeof _0x51a3f2?_0x2d263a['findByTextCallback'](_0x51a3f2,_0x114eb2):_0x51a3f2)(_0x276018);Array['isArray'](_0x27dd16)&&(_0x27dd16={'results':_0x27dd16,'searchText':'string'==typeof _0x51a3f2?_0x51a3f2:''});const _0x20b86b=_0x27dd16['results']['filter'](_0x7f3b97=>!0x1===this['_isInDeletionRange'](_0x7f3b97,_0x276018['item']));return{..._0x27dd16,'results':_0x20b86b};},_0x114eb2);}['_isInDeletionRange'](_0x193c43,_0x582757){const _0x1a4728=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x582757,_0x193c43['start']),this['editor']['model']['createPositionAt'](_0x582757,_0x193c43['end']));for(const _0x96ec8b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1a4728['getIntersection'](_0x96ec8b['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 _0xa897c8{['afterInit'](){const _0x1e2c7d=this['editor']['locale'],_0x310438=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4b8929,commandName:_0x30a84f}of eo)this['editor']['plugins']['has'](_0x4b8929)&&(_0x310438['enableDefaultAttributesIntegration'](_0x30a84f),_0x310438['registerInlineAttribute'](_0x30a84f));_0x310438['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1e2c7d,'FORMAT_FONT_SIZE')),_0x310438['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1e2c7d,'FORMAT_FONT_FAMILY')),_0x310438['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1e2c7d,'FORMAT_FONT_COLOR')),_0x310438['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1e2c7d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3559c5=this['editor'],_0x12ba2c=_0x3559c5['locale'];_0x3559c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51d3fe=>{const _0x3c1ace=_0x12ba2c['t'];if('formatInline'!=_0x51d3fe['type'])return;const {data:_0x352c11}=_0x51d3fe;if(null!=_0x352c11){if('fontSize'==_0x352c11['commandName']){const _0x51cc51=_0x352c11['commandParams'][0x0]['value'];if(_0x51cc51){const _0x3081d5=_0x3c1ace(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xc97caa=>_0xc97caa['model']==_0x51cc51)['title'])['toLowerCase']();return{'type':'format','content':o(_0x12ba2c,'*Set\x20font\x20size:*\x20%0',_0x3081d5)};}return{'type':'format','content':o(_0x12ba2c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x352c11['commandName']){const _0x1e8d36=_0x352c11['commandParams'][0x0]['value'];return _0x1e8d36?{'type':'format','content':o(_0x12ba2c,'*Set\x20font\x20family:*\x20%0',_0x1e8d36)}:{'type':'format','content':o(_0x12ba2c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x352c11['commandName']){const _0x2ca9c4=_0x352c11['commandParams'][0x0]['value'];if(_0x2ca9c4){const _0x33e46f=_0x416d79(this['editor']['config']['get']('fontColor.colors'))['find'](_0x47ca92=>_0x47ca92['model']==_0x2ca9c4);let _0x2b0741=_0x2ca9c4,_0x28f314='';return _0x33e46f&&(_0x2b0741=_0x33e46f['label'],_0x28f314=_0x3c1ace(_0x2b0741)['toLowerCase']()),{'type':'format','content':o(_0x12ba2c,'*Set\x20font\x20color:*\x20%0',_0x28f314)['trim'](),'color':{'value':_0x2ca9c4,'title':_0x28f314||_0x2b0741}};}return{'type':'format','content':o(_0x12ba2c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x352c11['commandName']){const _0x372e0d=_0x352c11['commandParams'][0x0]['value'];if(_0x372e0d){const _0x35f6ea=_0x416d79(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x49cb28=>_0x49cb28['model']==_0x372e0d);let _0xd66541=_0x372e0d,_0x16f661='';return _0x35f6ea&&(_0xd66541=_0x35f6ea['label'],_0x16f661=_0x3c1ace(_0xd66541)['toLowerCase']()),{'type':'format','content':o(_0x12ba2c,'*Set\x20font\x20background\x20color:*\x20%0',_0x16f661)['trim'](),'color':{'value':_0x372e0d,'title':_0x16f661||_0xd66541}};}return{'type':'format','content':o(_0x12ba2c,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xa897c8{['afterInit'](){const _0x44e2fe=this['editor'],_0x422247=_0x44e2fe['plugins']['get']('TrackChangesEditing'),_0x378272=_0x44e2fe['commands']['get']('copyFormat'),_0x2e25ba=_0x44e2fe['commands']['get']('pasteFormat');_0x378272&&_0x2e25ba&&(_0x422247['enableDefaultAttributesIntegration']('pasteFormat'),_0x422247['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4fb8c2=this['editor'],_0x202fe0=_0x4fb8c2['locale'];_0x4fb8c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ee72a=>{if('formatBlock'!=_0x2ee72a['type']&&'formatInline'!=_0x2ee72a['type'])return;const {data:_0x107e5b}=_0x2ee72a;if(_0x107e5b&&'pasteFormat'===_0x107e5b['commandName']){const _0x125961=[],_0x214cc3=_0x107e5b['commandParams'][0x0];for(const [_0x163b0d,_0xe97a3c]of Object['entries'](_0x214cc3))_0x125961['push'](ro(_0x4fb8c2,_0x163b0d,_0xe97a3c));return _0x125961['length']?{'type':'format','content':o(_0x202fe0,'*Set\x20format\x20to:*\x20%0',_0x125961['join'](',\x20'))}:{'type':'format','content':o(_0x202fe0,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x9264a0,_0xa3df2d,_0x1d3fdd){const _0x5f3a08=_0x9264a0['locale']['t'],_0x423945=_0xa3df2d['split'](/(?=[A-Z])/)['join']('\x20'),_0x52331d=_0x5f3a08(_0x423945['charAt'](0x0)['toUpperCase']()+_0x423945['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1d3fdd)return _0x52331d;if('fontColor'===_0xa3df2d||'fontBackgroundColor'===_0xa3df2d){const _0x49c150=_0x416d79(_0x9264a0['config']['get']('fontColor.colors'))['find'](_0x51b51a=>_0x51b51a['model']==_0x1d3fdd);return _0x52331d+'\x20('+(_0x49c150?_0x5f3a08(_0x49c150['label'])['toLowerCase']():_0x1d3fdd)+')';}if('fontSize'===_0xa3df2d&&isNaN(parseFloat(_0x1d3fdd))){const _0x5ae0e2=_0x9264a0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x9264a0['config']['get']('fontSize.options'))['find'](_0x57600f=>_0x57600f['model']==_0x1d3fdd);return _0x52331d+'\x20('+(_0x5ae0e2?_0x5f3a08(_0x5ae0e2['title'])['toLowerCase']():_0x1d3fdd)+')';}return _0x52331d+'\x20('+_0x1d3fdd+')';}class Z extends _0xa897c8{['_headingOptions'];['afterInit'](){const _0x11cc2f=this['editor'];if(!_0x11cc2f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x11cc2f['config']['get']('heading.options');const _0x510257=_0x11cc2f['locale'],_0x1219d9=_0x11cc2f['plugins']['get']('TrackChangesEditing');_0x1219d9['enableDefaultAttributesIntegration']('heading');for(const _0x5a6dd1 of this['_headingOptions'])'paragraph'!=_0x5a6dd1['model']&&_0x1219d9['descriptionFactory']['registerElementLabel'](_0x5a6dd1['model'],_0x2fee8b=>{const _0x52085e=this['_getHeadingLevel'](_0x5a6dd1['model']);return null!==_0x52085e?_0x2cc690(_0x2fee8b,_0x52085e):_0x4af41d(_0x2fee8b,_0x5a6dd1['title']);});function _0x2cc690(_0x31ff4c,_0x4f541a){return o(_0x510257,'ELEMENT_HEADING',[_0x31ff4c,_0x4f541a]);}function _0x4af41d(_0x5144a2,_0x597a6c){return o(_0x510257,'ELEMENT_HEADING_CUSTOM',[_0x5144a2,_0x597a6c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e787e=this['editor'],_0x1e1d4e=_0x4e787e['locale'];function _0x618b9c(_0x5d870f,_0x5a5022){return o(_0x1e1d4e,'ELEMENT_HEADING_CUSTOM',[_0x5d870f,_0x5a5022]);}_0x4e787e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3eb5b1=>{if('formatBlock'!=_0x3eb5b1['type'])return;const {data:_0x27c7c0}=_0x3eb5b1;if(_0x27c7c0&&'heading'==_0x27c7c0['commandName']){const _0x5b1b09=_0x27c7c0['commandParams'][0x0]['value'],_0x5361cf=this['_getHeadingLevel'](_0x5b1b09);if(null!==_0x5361cf)return{'type':'format','content':o(_0x1e1d4e,'*Change\x20to:*\x20%0',(_0x347c26=0x1,_0x380602=_0x5361cf,o(_0x1e1d4e,'ELEMENT_HEADING',[_0x347c26,_0x380602])))};const _0x1c6a5a=this['_headingOptions']['find'](_0x83b5cb=>_0x83b5cb['model']===_0x5b1b09)['title'];return{'type':'format','content':o(_0x1e1d4e,'*Change\x20to:*\x20%0',_0x618b9c(0x1,_0x1c6a5a))};}var _0x347c26,_0x380602;});}['_getHeadingLevel'](_0x366c0d){const _0x48095d=_0x366c0d['match'](/^heading(\d+)/);if(_0x48095d)return _0x48095d[0x1];const _0x500e3f=this['_headingOptions']?.['find'](_0x1265bc=>_0x1265bc['model']==_0x366c0d);if(_0x500e3f&&_0x500e3f['view']){const _0x1cfc87=_0x500e3f['view'],_0x28114b=(_0x1cfc87['name']??_0x1cfc87)['match'](/^h(\d+)/);if(_0x28114b)return _0x28114b[0x1];}return null;}}class tt extends _0xa897c8{['afterInit'](){const _0x1abc26=this['editor'];if(!_0x1abc26['plugins']['has']('HighlightEditing'))return;const _0x37bb62=_0x1abc26['plugins']['get']('TrackChangesEditing'),_0x5771d2=_0x1abc26['locale'];_0x37bb62['enableDefaultAttributesIntegration']('highlight'),_0x37bb62['registerInlineAttribute']('highlight'),_0x37bb62['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5771d2,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9f4f6c=this['editor'],_0x1c76c7=_0x9f4f6c['locale'];_0x9f4f6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbd22a5=>{if('formatInline'!=_0xbd22a5['type'])return;const {data:_0xfe945c}=_0xbd22a5;if(_0xfe945c&&'highlight'==_0xfe945c['commandName']){const _0x9c82bf=_0x1c76c7['t'],_0xa82dc7=_0xfe945c['commandParams'][0x0]['value'];if(_0xa82dc7){const _0x19e3bb=_0x9f4f6c['config']['get']('highlight.options')['find'](_0x7b2c16=>_0x7b2c16['model']==_0xa82dc7),_0xd9e631=_0x9c82bf(_0x19e3bb['title'])['toLowerCase']();return{'type':'format','content':o(_0x1c76c7,'*Set\x20highlight:*\x20%0',_0xd9e631),'color':{'value':_0x19e3bb['color'],'title':_0x19e3bb['title']}};}return{'type':'format','content':o(_0x1c76c7,'*Remove\x20highlight*',o(_0x1c76c7,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xa897c8{['afterInit'](){const _0x3cc735=this['editor'];if(!_0x3cc735['plugins']['has']('HorizontalLineEditing'))return;_0x3cc735['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1ada8a=_0x3cc735['plugins']['get']('TrackChangesEditing'),_0x2142ce=_0x3cc735['locale'];_0x1ada8a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3aee8e=>o(_0x2142ce,'ELEMENT_HORIZONTAL_LINE',_0x3aee8e)),_0x3cc735['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x22816f,{writer:_0x4e3858,options:_0x2fb4a8})=>{if(!_0x2fb4a8['showSuggestionHighlights'])return null;const _0x59a57a=_0x4e3858['createContainerElement']('div'),_0x1adfd9=_0x4e3858['createEmptyElement']('hr');return _0x4e3858['addClass']('ck-horizontal-line',_0x59a57a),_0x4e3858['insert'](_0x4e3858['createPositionAt'](_0x59a57a,0x0),_0x1adfd9),_0x59a57a;},'converterPriority':'high'});}}class nt extends _0xa897c8{['afterInit'](){const _0x5710f6=this['editor'];if(!_0x5710f6['plugins']['has']('HtmlEmbed'))return;const _0x36100b=_0x5710f6['plugins']['get']('TrackChangesEditing'),_0x11ce90=_0x5710f6['locale'];_0x36100b['descriptionFactory']['registerElementLabel']('rawHtml',_0xcb0423=>o(_0x11ce90,'ELEMENT_HTML_EMBED',_0xcb0423)),_0x36100b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x36100b['registerBlockAttribute']('value'),_0x36100b['descriptionFactory']['registerDescriptionCallback'](_0x13f399=>{if('attribute'!=_0x13f399['type'])return;const {data:_0x2eb34a}=_0x13f399;if(_0x2eb34a&&'value'==_0x2eb34a['key']&&_0x13f399['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3a9221=o(_0x11ce90,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x11ce90,'*Change\x20%0\x20content*',_0x3a9221)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5032f8=this['editor'],_0xaf9913=_0x5032f8['locale'];_0x5032f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28f85d=>{if('formatBlock'!=_0x28f85d['type'])return;const {data:_0x3c8f6f}=_0x28f85d;if(_0x3c8f6f&&'htmlEmbed'==_0x3c8f6f['commandName']){const _0x166414=o(_0xaf9913,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xaf9913,'*Change\x20%0\x20content*',_0x166414)};}});}}class et extends _0xa897c8{['afterInit'](){const _0x3e9fdd=this['editor'];if(!_0x3e9fdd['plugins']['has']('ImageEditing'))return;const _0x44af72=_0x3e9fdd['plugins']['get']('TrackChangesEditing'),_0x1c1501=_0x3e9fdd['plugins']['get']('ImageUtils'),_0x337b95=_0x3e9fdd['locale'];_0x44af72['enableCommand']('insertImage'),_0x44af72['descriptionFactory']['registerElementLabel']('imageBlock',_0x4da56b=>o(_0x337b95,'ELEMENT_IMAGE',_0x4da56b)),_0x44af72['descriptionFactory']['registerElementLabel']('imageInline',_0x5a9d79=>o(_0x337b95,'ELEMENT_INLINE_IMAGE',_0x5a9d79)),_0x44af72['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x337b95,'ELEMENT_CAPTION')),_0x3e9fdd['plugins']['has']('ImageUploadEditing')&&_0x44af72['enableCommand']('uploadImage'),_0x3e9fdd['plugins']['has']('ImageBlockEditing')&&_0x3e9fdd['plugins']['has']('ImageInlineEditing')&&(_0x44af72['enableCommand']('imageTypeInline',(_0x47a300,_0x2319de)=>{const _0x266a3b=_0x1c1501['getClosestSelectedImageElement'](_0x3e9fdd['model']['document']['selection']);_0x3e9fdd['model']['change'](()=>{_0x44af72['markBlockFormat'](_0x266a3b,{'commandName':'imageTypeInline','commandParams':[_0x2319de]},[],'convertBlockImageToInline');});}),_0x44af72['enableCommand']('imageTypeBlock',(_0x1a5790,_0x397c75)=>{_0x3e9fdd['model']['change'](_0x50e1f1=>{let _0x30c3a3=_0x1c1501['getClosestSelectedImageElement'](_0x3e9fdd['model']['document']['selection']),_0x8af2a9=_0x50e1f1['createRangeOn'](_0x30c3a3);const _0x162e86=_0x440ae1['fromPosition'](_0x8af2a9['start'],'toPrevious'),_0x584867=_0x440ae1['fromPosition'](_0x8af2a9['end'],'toNext');_0x44af72['forceDefaultExecution'](()=>_0x1a5790(_0x397c75)),_0x30c3a3=_0x1c1501['getClosestSelectedImageElement'](_0x3e9fdd['model']['document']['selection']),_0x8af2a9=_0x50e1f1['createRangeOn'](_0x30c3a3);const _0x5dd755=_0x50e1f1['createRange'](_0x162e86,_0x584867);_0x162e86['detach'](),_0x584867['detach'](),_0x44af72['markBlockFormat'](_0x30c3a3,{'commandName':'imageTypeInline','commandParams':[_0x397c75]},[],'convertInlineImageToBlock'),_0x5dd755['start']['isBefore'](_0x8af2a9['start'])&&_0x44af72['markInsertion'](_0x50e1f1['createRange'](_0x5dd755['start'],_0x8af2a9['start']),'convertInlineImageToBlock'),_0x8af2a9['end']['isBefore'](_0x5dd755['end'])&&_0x44af72['markInsertion'](_0x50e1f1['createRange'](_0x8af2a9['end'],_0x5dd755['end']),'convertInlineImageToBlock');});}),_0x44af72['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x44af72['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x44af72['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x44af72['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x44af72['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x44af72['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4c764c])=>{const _0xe60ccd=_0x44af72['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2c5e98=_0x4c764c['start'],_0x20c450=_0x4c764c['end'];const _0x3ce10f=_0x3e9fdd['model']['schema']['getNearestSelectionRange'](_0x2c5e98,'backward'),_0x3491d7=_0x3e9fdd['model']['schema']['getNearestSelectionRange'](_0x20c450,'forward');_0x3ce10f['isCollapsed']&&(_0x2c5e98=_0x3ce10f['start']),_0x3491d7['isCollapsed']&&(_0x20c450=_0x3491d7['end']),_0xe60ccd([_0x3e9fdd['model']['createRange'](_0x2c5e98,_0x20c450)]);}),_0x44af72['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x62e8b2),_0x44af72['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x62e8b2)),_0x3e9fdd['plugins']['has']('ImageCaptionEditing')&&(_0x44af72['enableCommand']('toggleImageCaption',(_0x24f5e8,_0xb564d1)=>{const _0x367606=_0x3e9fdd['plugins']['get']('ImageCaptionUtils');let _0x590cca=_0x1c1501['getClosestSelectedImageElement'](_0x3e9fdd['model']['document']['selection']),_0x367ada=_0x367606['getCaptionFromImageModelElement'](_0x590cca);_0x3e9fdd['model']['change'](()=>{if(_0x367ada)return void _0x44af72['markDeletion'](_0x3e9fdd['model']['createRangeOn'](_0x367ada));const _0x946c70=_0x1c1501['isBlockImage'](_0x590cca);_0x24f5e8(_0xb564d1),_0x590cca=_0x1c1501['getClosestSelectedImageElement'](_0x3e9fdd['model']['document']['selection']),_0x367ada=_0x367606['getCaptionFromImageModelElement'](_0x590cca),_0x44af72['markInsertion'](_0x3e9fdd['model']['createRangeOn'](_0x367ada),_0x946c70?null:'imageCaption');});}),_0x44af72['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x62e8b2));const _0xcf7ef2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x90d0d2(_0x2b3668,_0x13cf74){const _0x2f79e1=_0xcf7ef2['findIndex'](({type:_0x45cc86,subType:_0x122abf})=>_0x2b3668['type']==_0x45cc86&&_0x2b3668['subType']==_0x122abf),_0x1145ca=_0xcf7ef2['findIndex'](({type:_0x107b44,subType:_0x15ab6f})=>_0x13cf74['type']==_0x107b44&&_0x13cf74['subType']==_0x15ab6f);if(_0x2f79e1<0x0||_0x1145ca<0x0)return!0x1;const _0x3a7704=_0x2b3668['getFirstRange'](),_0x4575ba=_0x13cf74['getFirstRange']();if((0x0==_0x2f79e1||0x1==_0x2f79e1)&&0x2==_0x1145ca&&_0x3a7704['isIntersecting'](_0x4575ba))return!0x0;if(0x2==_0x2f79e1&&0x3==_0x1145ca){const _0x4e8fbf=_0x44af72['_findSuggestions'](_0x3a7704,'insertion')['filter'](({suggestion:_0x15cc58,meta:_0x2e1ecc})=>_0x2e1ecc['isOwn']&&'convertInlineImageToBlock'==_0x15cc58['subType']);if(_0x4e8fbf['length']>0x1&&_0x4575ba['end']['isEqual'](_0x3a7704['start']))return!0x0;if(0x1==_0x4e8fbf['length']&&(_0x3a7704['start']['isEqual'](_0x4575ba['end'])||_0x3a7704['end']['isEqual'](_0x4575ba['start'])))return!0x0;}if(0x3==_0x2f79e1&&0x3==_0x1145ca&&_0x3a7704['start']['isBefore'](_0x4575ba['start'])){const _0x1a28d4=_0x3a7704['end']['nodeAfter'],_0x44263f=_0x4575ba['start']['nodeBefore'];return _0x1c1501['isBlockImage'](_0x1a28d4)&&_0x1a28d4===_0x44263f;}return!0x1;}function _0x62e8b2(_0x2cd6df,_0x595f2f){return _0x90d0d2(_0x2cd6df,_0x595f2f)?[_0x2cd6df,_0x595f2f]:_0x90d0d2(_0x595f2f,_0x2cd6df)?[_0x595f2f,_0x2cd6df]:null;}_0x3e9fdd['plugins']['has']('ImageResize')&&(_0x44af72['enableDefaultAttributesIntegration']('resizeImage'),_0x44af72['registerBlockAttribute']('resizedWidth'),_0x44af72['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x337b95,'FORMAT_IMAGE_SIZE'))),_0x3e9fdd['plugins']['has']('ImageTextAlternativeEditing')&&(_0x44af72['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x44af72['registerBlockAttribute']('alt')),_0x3e9fdd['plugins']['has']('PictureEditing')&&(_0x44af72['registerBlockAttribute']('sources'),_0x44af72['descriptionFactory']['registerDescriptionCallback'](_0x571a2f=>{if('attribute'!=_0x571a2f['type'])return;const {data:_0x29b310}=_0x571a2f;return _0x29b310&&'sources'==_0x29b310['key']?{'type':'format','content':''}:void 0x0;})),_0x3e9fdd['plugins']['has']('ImageSizeAttributes')&&(_0x44af72['registerBlockAttribute']('width'),_0x44af72['registerBlockAttribute']('height'),_0x44af72['descriptionFactory']['registerDescriptionCallback'](_0x1e01b0=>{if('attribute'!=_0x1e01b0['type'])return;const {data:_0x4fcab5}=_0x1e01b0;return!_0x4fcab5||'width'!=_0x4fcab5['key']&&'height'!=_0x4fcab5['key']?void 0x0:{'type':'format','content':''};})),_0x44af72['descriptionFactory']['registerDescriptionCallback'](_0x491297=>{if(!!_0xcf7ef2['find'](({type:_0x20730b,subType:_0xda6bb4})=>_0x491297['type']==_0x20730b&&_0x491297['subType']==_0xda6bb4))return _0x491297['previous']?{}:void 0x0;}),_0x44af72['descriptionFactory']['registerDescriptionCallback'](_0x300b0e=>{if('insertion'==_0x300b0e['type']||'deletion'==_0x300b0e['type']){const _0x35d5f6=_0x300b0e['getContainedElement']();if(_0x35d5f6&&_0x35d5f6['is']('element','caption'))return{'type':'insertion'==_0x300b0e['type']?'addObject':'removeObject','element':_0x35d5f6,'quantity':0x1};}}),_0x44af72['descriptionFactory']['registerDescriptionCallback'](_0x12d884=>'formatBlock'==_0x12d884['type']&&'convertInlineImageToBlock'==_0x12d884['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x12d884['type']&&'convertBlockImageToInline'==_0x12d884['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x44af72['descriptionFactory']['registerDescriptionCallback'](_0x517e14=>{if('attribute'!=_0x517e14['type'])return;const {data:_0x823011}=_0x517e14;if(!_0x823011||'alt'!=_0x823011['key'])return;const _0x1bc16e=_0x823011['newValue'];return _0x1bc16e?{'type':'format','content':o(_0x337b95,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1bc16e+'\x22')}:{'type':'format','content':o(_0x337b95,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23eb6d=this['editor'],_0x596e30=_0x23eb6d['locale'];_0x23eb6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x109525=>{if('formatBlock'!=_0x109525['type']&&'formatInline'!=_0x109525['type'])return;const {data:_0x241f87}=_0x109525;if(_0x241f87){if('imageTextAlternative'==_0x241f87['commandName']){const _0x5cea61=_0x241f87['commandParams'][0x0]['newValue'];return _0x5cea61?{'type':'format','content':o(_0x596e30,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5cea61+'\x22')}:{'type':'format','content':o(_0x596e30,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x241f87['commandName']){const _0x47dc05=_0x241f87['commandParams'][0x0]['width'];return _0x47dc05?{'type':'format','content':o(_0x596e30,'*Set\x20image\x20width:*\x20%0',_0x47dc05)}:{'type':'format','content':o(_0x596e30,'*Reset\x20image\x20width*')};}}});}}class st extends _0xa897c8{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xa5972b=this['editor']['locale'],_0x4545fe=this['editor']['plugins']['get']('TrackChangesEditing');_0x4545fe['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4545fe['registerBlockAttribute']('src'),_0x4545fe['descriptionFactory']['registerDescriptionCallback'](_0x4ab0db=>{if('attribute'!=_0x4ab0db['type'])return;const {data:_0x1a4327}=_0x4ab0db;return _0x1a4327&&'src'==_0x1a4327['key']?_0x1a4327['newValue']&&_0x1a4327['oldValue']?{'type':'format','content':o(_0xa5972b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4270e6=this['editor']['plugins']['get']('TrackChangesEditing');_0x4270e6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4270e6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4270e6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4270e6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3678a3=this['editor'],_0x375dd5=_0x3678a3['locale'];_0x3678a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b4b22=>{if('formatBlock'!=_0x4b4b22['type']&&'formatInline'!=_0x4b4b22['type'])return;const {data:_0x4413a7}=_0x4b4b22;if(!_0x4413a7||'replaceImageSource'!=_0x4413a7['commandName'])return;return{'type':'format','content':o(_0x375dd5,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xa897c8{['afterInit'](){const _0x1755e2=this['editor'];if(!_0x1755e2['plugins']['has']('ImageStyleEditing'))return;const _0x3c46ec=_0x1755e2['plugins']['get']('TrackChangesEditing'),_0x200a74=_0x1755e2['plugins']['get']('ImageUtils'),_0x1bd074={};_0x3c46ec['enableCommand']('imageStyle',(_0x2e3cf9,_0x2754d3)=>{const _0x4c6a18=_0x1755e2['plugins']['get']('Users')['me'],_0x2d1a61=_0x1755e2['commands']['get']('imageStyle');let _0x48c5be=_0x200a74['getClosestSelectedImageElement'](_0x1755e2['model']['document']['selection']),_0x4781c0=_0x1755e2['model']['createRangeOn'](_0x48c5be),_0x2aebb6=_0x2d1a61['value'];if(_0x2aebb6==_0x2754d3['value'])return;const _0x4da4da={'commandName':'imageStyle','commandParams':[_0x2754d3],'formatGroupId':_0x4e9a0b()};_0x1755e2['model']['change'](()=>{if(_0x3c46ec['getSuggestions']()['filter'](_0x3dfc42=>_0x3dfc42['isInContent']&&_0x4c6a18==_0x3dfc42['author']&&('formatBlock'==_0x3dfc42['type']||'formatInline'==_0x3dfc42['type'])&&('imageStylePreApply'==_0x3dfc42['subType']||'imageStylePostApply'==_0x3dfc42['subType'])&&_0x3dfc42['getFirstRange']()['isEqual'](_0x4781c0))['forEach'](_0x594f5c=>_0x3c46ec['discardSuggestion'](_0x594f5c['head'])),_0x48c5be=_0x200a74['getClosestSelectedImageElement'](_0x1755e2['model']['document']['selection']),_0x4781c0=_0x1755e2['model']['createRangeOn'](_0x48c5be),_0x2d1a61['refresh'](),_0x1755e2['commands']['get']('imageTypeInline')['refresh'](),_0x1755e2['commands']['get']('imageTypeBlock')['refresh'](),_0x2aebb6=_0x2d1a61['value'],_0x2aebb6!=_0x2754d3['value'])return _0x200a74['isInlineImage'](_0x48c5be)&&_0x2d1a61['shouldConvertImageType'](_0x2754d3['value'],_0x48c5be)?(_0x2e3cf9({..._0x2754d3,'setImageSizes':!0x1}),_0x48c5be=_0x200a74['getClosestSelectedImageElement'](_0x1755e2['model']['document']['selection']),void _0x3c46ec['markBlockFormat'](_0x48c5be,{..._0x4da4da,'commandReversedParams':[{'value':_0x2aebb6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x200a74['isBlockImage'](_0x48c5be)?_0x3c46ec['markBlockFormat'](_0x48c5be,_0x4da4da,[],'imageStylePostApply'):_0x3c46ec['markInlineFormat'](_0x4781c0,_0x4da4da,'imageStylePostApply'));});});for(const _0x3d5a92 of _0x1755e2['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1bd074[_0x3d5a92['name']]=_0x3d5a92['title']['toLowerCase']();_0x3c46ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3c46ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3c46ec['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3c46ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4bc61a])=>{_0x200a74['setImageNaturalSizeAttributes'](_0x4bc61a['getContainedElement']());}),_0x3c46ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x219a80,_0xb257b)=>{_0x3c46ec['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x219a80,{'commandName':_0xb257b['commandName'],'commandParams':_0xb257b['commandReversedParams']});}),_0x3c46ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x53288e,_0x14de19){if(_0x5cebee(_0x53288e,_0x14de19))return[_0x53288e,_0x14de19];if(_0x5cebee(_0x14de19,_0x53288e))return[_0x14de19,_0x53288e];return null;});const _0x21f48a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5cebee(_0x4739c4,_0x5e4ab3){const _0x5c3040=_0x21f48a['findIndex'](({type:_0x23dab7,subType:_0x585210})=>_0x4739c4['type']==_0x23dab7&&_0x4739c4['subType']==_0x585210),_0x75321f=_0x21f48a['findIndex'](({type:_0x1667b6,subType:_0x3a68ad})=>_0x5e4ab3['type']==_0x1667b6&&_0x5e4ab3['subType']==_0x3a68ad);if(_0x5c3040<0x0||_0x75321f<0x0)return!0x1;const _0x3ce92c=_0x4739c4['getFirstRange'](),_0x39bf04=_0x5e4ab3['getFirstRange']();if((0x0==_0x5c3040||0x1==_0x5c3040)&&0x2==_0x75321f&&_0x3ce92c['isIntersecting'](_0x39bf04))return!0x0;if(0x2==_0x5c3040&&0x3==_0x75321f){const _0x4e9b2b=_0x3c46ec['_findSuggestions'](_0x3ce92c,'insertion')['filter'](({suggestion:_0x588c18,meta:_0x5f3b14})=>_0x5f3b14['isOwn']&&'convertInlineImageToBlock'==_0x588c18['subType']);if(_0x4e9b2b['length']>0x1&&_0x39bf04['end']['isEqual'](_0x3ce92c['start']))return!0x0;if(0x1==_0x4e9b2b['length']&&(_0x3ce92c['start']['isEqual'](_0x39bf04['end'])||_0x3ce92c['end']['isEqual'](_0x39bf04['start'])))return!0x0;}if(0x3==_0x5c3040&&0x3==_0x75321f&&_0x3ce92c['start']['isBefore'](_0x39bf04['start'])){const _0x378cff=_0x3ce92c['end']['nodeAfter'],_0x15c9a6=_0x39bf04['start']['nodeBefore'];return _0x200a74['isBlockImage'](_0x378cff)&&_0x378cff===_0x15c9a6;}return!0x1;}_0x1755e2['model']['document']['registerPostFixer'](()=>{let _0x573e17=!0x1;const _0x59f1cc=Array['from'](_0x1755e2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a8f1f,data:_0x198536}of _0x59f1cc){const {group:_0x2552d7,type:_0x2f08ca,subType:_0x42a18c,id:_0x20d317}=_0x3c46ec['_splitMarkerName'](_0x2a8f1f);if('suggestion'==_0x2552d7&&_0x3c46ec['hasSuggestion'](_0x20d317)){if('formatBlock'==_0x2f08ca&&('imageStylePreApply'==_0x42a18c||'imageStylePostApply'==_0x42a18c)){const _0x5b8860=_0x3c46ec['getSuggestion'](_0x20d317);if(_0x198536['newRange']){const _0x1b96c6=_0x5b8860['getFirstRange']()['getContainedElement']();if(_0x200a74['isBlockImage'](_0x1b96c6))continue;_0x3c46ec['discardSuggestion'](_0x5b8860),_0x573e17=!0x0;}}if('insertion'==_0x2f08ca&&'imageCaption'==_0x42a18c&&!_0x198536['newRange']){const _0x3d495a=_0x3c46ec['getSuggestion'](_0x20d317);_0x3d495a['next']&&_0x3d495a['next']['isInContent']&&(_0x3c46ec['discardSuggestion'](_0x3d495a['next']),_0x573e17=!0x0);}}}return _0x573e17;}),this['_registerLegacyDescription'](_0x1bd074);}['_registerLegacyDescription'](_0x7feb65){const _0x56d40f=this['editor'],_0x5e3224=_0x56d40f['locale'];_0x56d40f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fbfd6=>{if('formatBlock'!=_0x1fbfd6['type']&&'formatInline'!=_0x1fbfd6['type'])return;const {data:_0x1e228a}=_0x1fbfd6;if(!_0x1e228a||'imageStyle'!=_0x1e228a['commandName'])return;const _0xf28891=_0x1e228a['commandParams'][0x0]['value'];return _0x43a35f('side'===_0xf28891?o(_0x5e3224,'FORMAT_SIDE_IMAGE'):_0x7feb65[_0xf28891]||_0xf28891);function _0x43a35f(_0x13909b){return{'type':'format','content':o(_0x5e3224,'*Format:*\x20%0',_0x13909b)};}});}}class rt extends _0xa897c8{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4fb246){super(_0x4fb246),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x349ba3=this['editor'],_0x113952=_0x349ba3['commands']['get']('importWord'),_0x1fa9ca=_0x349ba3['commands']['get']('trackChanges');_0x113952&&(_0x113952['on']('execute',(_0x55179c,[,_0x2de12f])=>{this['_trackChangesValueDuringImport']=_0x1fa9ca['value'],_0x2de12f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x113952,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x113952,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1fa9ca['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x349ba3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xef0aeb,_0x4c1150){const {suggestions:_0xf9c9c}=_0x4c1150,_0x5f3194=this['editor']['commands']['get']('trackChanges'),_0xe77ba0=_0x5f3194['value'];this['_trackChangesValueDuringImport']!==_0xe77ba0&&(_0x5f3194['execute'](),this['_trackChangesExecuted']=!0x0),_0xf9c9c&&_0xf9c9c['forEach'](({id:_0x1703d6,type:_0xe58c27,author:_0x15b0d2,created_at:_0x3a4a6e})=>{const _0x4c70f7={'id':_0x1703d6,'type':_0xe58c27,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x15b0d2,'createdAt':_0x3a4a6e?new Date(_0x3a4a6e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4c70f7);});}}class at extends _0xa897c8{['afterInit'](){const _0x49a7c2=this['editor'],_0x41b6d6=_0x49a7c2['plugins']['get']('TrackChangesEditing');if(_0x49a7c2['plugins']['has']('IndentEditing')&&(_0x41b6d6['enableCommand']('indent'),_0x41b6d6['enableCommand']('outdent')),_0x49a7c2['plugins']['has']('IndentBlock')){for(const _0x2ce83d of['indentBlock','outdentBlock'])_0x41b6d6['enableDefaultAttributesIntegration'](_0x2ce83d);}const _0x1f4987=_0x49a7c2['locale'];_0x41b6d6['registerBlockAttribute']('blockIndent'),_0x41b6d6['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1f4987,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f3031=this['editor'],_0x48367d=_0x4f3031['locale'],_0x4b4792=_0x4f3031['plugins']['get']('TrackChangesEditing');_0x4b4792['descriptionFactory']['registerDescriptionCallback'](_0xaca26f=>{if('formatBlock'!=_0xaca26f['type'])return;const {data:_0x1ea1a0}=_0xaca26f;if(!_0x1ea1a0)return;if('indentBlock'!=_0x1ea1a0['commandName']&&'outdentBlock'!=_0x1ea1a0['commandName'])return;const _0x2cef3c=_0xaca26f['getItems']()[0x0],_0xbd8257=_0x4b4792['descriptionFactory']['getItemLabel'](_0x2cef3c);return'indentBlock'==_0x1ea1a0['commandName']?{'type':'format','content':o(_0x48367d,'*Indent:*\x20%0',_0xbd8257)}:'outdentBlock'==_0x1ea1a0['commandName']?{'type':'format','content':o(_0x48367d,'*Outdent:*\x20%0',_0xbd8257)}:void 0x0;});}}class ct extends _0xa897c8{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xa897c8{['afterInit'](){const _0x1daeca=this['editor'];if(!_0x1daeca['plugins']['has']('LinkEditing'))return;const _0x4b032f=_0x1daeca['plugins']['get']('TrackChangesEditing'),_0x46283a=_0x1daeca['commands']['get']('link');_0x4b032f['enableDefaultAttributesIntegration']('link'),_0x4b032f['enableDefaultAttributesIntegration']('unlink'),_0x4b032f['registerInlineAttribute']('linkHref');for(const _0x26a094 of _0x46283a['manualDecorators'])_0x4b032f['registerInlineAttribute'](_0x26a094['id']),_0x4b032f['descriptionFactory']['registerAttributeLabel'](_0x26a094['id'],'link\x20('+_0x26a094['label']['toLowerCase']()+')');_0x4b032f['descriptionFactory']['registerDescriptionCallback'](_0x67d9ef=>{if('attribute'!=_0x67d9ef['type'])return;const {data:_0xbd87ea}=_0x67d9ef;if(!_0xbd87ea||'linkHref'!=_0xbd87ea['key'])return;const _0x284cae=_0xbd87ea['newValue'],_0x4454eb=_0x1daeca['locale'];return{'type':'format','content':null==_0x284cae?o(_0x4454eb,'*Remove\x20link*'):o(_0x4454eb,'*Set\x20link:*\x20%0','\x22'+_0x284cae+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d6da0=this['editor'],_0x5a183f=_0x4d6da0['locale'];_0x4d6da0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1211a2=>{if('formatInline'!=_0x1211a2['type'])return;const {data:_0x4fd4c3}=_0x1211a2;if(_0x4fd4c3){if('link'==_0x4fd4c3['commandName']){const _0xb5e96f=_0x4fd4c3['commandParams'][0x0];return{'type':'format','content':o(_0x5a183f,'*Set\x20link:*\x20%0','\x22'+_0xb5e96f+'\x22')};}return'unlink'==_0x4fd4c3['commandName']?{'type':'format','content':o(_0x5a183f,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xa897c8{['afterInit'](){const _0x5155c1=this['editor'],_0x30ea8e=_0x5155c1['locale'];if(!_0x5155c1['plugins']['has']('LegacyListEditing'))return;const _0x1c0c8f=_0x5155c1['plugins']['get']('TrackChangesEditing'),_0x237dbc=_0x5155c1['plugins']['has']('LegacyTodoListEditing');function _0x4f1b77(_0xd3eba9){return()=>{const _0x3e4f85=_0x5155c1['model']['document']['selection'],_0x21e656=_0x5155c1['commands']['get'](_0xd3eba9);if(_0x21e656['value'])return void _0x5155c1['execute']('paragraph',{});const _0x3ddc99=_0xd3eba9['slice'](0x0,-0x4),_0x863b76=function(_0x1cd5ac,_0x3f1418,_0x2525e5){let _0x3fdcfd=Array['from'](_0x1cd5ac)['filter'](_0x1c2ded=>function(_0x100763,_0x4a62a0){return _0x4a62a0['checkChild'](_0x100763['parent'],'listItem')&&!_0x4a62a0['isObject'](_0x100763);}(_0x1c2ded,_0x2525e5));_0x3fdcfd=_0x3fdcfd['filter'](_0x50b1ff=>!_0x50b1ff['is']('element','listItem')||_0x50b1ff['getAttribute']('listType')!=_0x3f1418);const _0x298e03=new Set();for(const _0x2ac438 of _0x3fdcfd)_0x2ac438['is']('element','listItem')?_0x298e03['add'](Le(_0x2ac438)):_0x298e03['add'](_0x2ac438);return Array['from'](_0x298e03);}(_0x3e4f85['getSelectedBlocks'](),_0x3ddc99,_0x5155c1['model']['schema']);_0x5155c1['model']['change'](()=>{for(const _0x4004c7 of _0x863b76)_0x1c0c8f['markBlockFormat'](_0x4004c7,{'commandName':_0xd3eba9,'commandParams':[{'forceValue':!_0x21e656['value']}],'formatGroupId':'blockName'},Ee(_0x4004c7));});};}function _0x5f3010(_0x13e5e1){return()=>{const _0x571b68=function(_0x4782cf){let _0x1efb2d=Array['from'](_0x4782cf);const _0x41b5e9=_0x1efb2d['findIndex'](_0x5e16f0=>'listItem'!=_0x5e16f0['name']);return _0x41b5e9>-0x1&&(_0x1efb2d=_0x1efb2d['slice'](0x0,_0x41b5e9)),_0x1efb2d;}(_0x5155c1['model']['document']['selection']['getSelectedBlocks']()),_0x1527d8=_0x5155c1['model']['createRange'](_0x5155c1['model']['createPositionAt'](_0x571b68[0x0],'before'),_0x5155c1['model']['createPositionAt'](_0x571b68[_0x571b68['length']-0x1],'end'));_0x5155c1['model']['change'](()=>{_0x1c0c8f['markBlockFormat'](_0x1527d8,{'commandName':_0x13e5e1,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5e6468){const _0x2435b3=new Set();for(const _0x3f0dc7 of _0x5e6468){let _0x5296a4=_0x3f0dc7['nextSibling'];for(;_0x5296a4&&_0x5296a4['getAttribute']('listIndent')>_0x3f0dc7['getAttribute']('listIndent');)_0x2435b3['add'](_0x5296a4),_0x5296a4=_0x5296a4['nextSibling'];}return Array['from'](_0x2435b3);}(_0x571b68));});};}_0x1c0c8f['enableCommand']('numberedList',_0x4f1b77('numberedList')),_0x1c0c8f['enableCommand']('bulletedList',_0x4f1b77('bulletedList')),_0x237dbc&&_0x1c0c8f['enableCommand']('todoList',_0x4f1b77('todoList')),_0x1c0c8f['enableCommand']('indentList',_0x5f3010('indentList')),_0x1c0c8f['enableCommand']('outdentList',_0x5f3010('outdentList')),_0x237dbc&&_0x1c0c8f['enableCommand']('checkTodoList',()=>{const _0x33c0e9=_0x5155c1['commands']['get']('checkTodoList'),_0x551185=Array['from'](_0x33c0e9['_selectedElements']);_0x551185['filter'](_0x2c1586=>_0x2c1586['getAttribute']('todoListChecked')!=_0x33c0e9['value']),_0x5155c1['model']['change'](()=>{for(const _0x48b207 of _0x551185)_0x1c0c8f['markBlockFormat'](_0x48b207,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x33c0e9['value']}]});});}),_0x1c0c8f['descriptionFactory']['registerElementLabel']('listItem',_0x51b194=>o(_0x30ea8e,'ELEMENT_LIST_ITEM',_0x51b194)),_0x1c0c8f['descriptionFactory']['registerDescriptionCallback'](_0x54e58c=>{if('formatBlock'!=_0x54e58c['type']&&'formatInline'!=_0x54e58c['type'])return;const {data:_0x2ff31c}=_0x54e58c;if(_0x2ff31c){if('numberedList'==_0x2ff31c['commandName']||'bulletedList'==_0x2ff31c['commandName']||'todoList'==_0x2ff31c['commandName'])switch(_0x2ff31c['commandName']['replace']('List','')){case'bulleted':return _0x1c853f(o(_0x30ea8e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1c853f(o(_0x30ea8e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1c853f(o(_0x30ea8e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2ff31c['commandName'])return{'type':'format','content':o(_0x30ea8e,'*Indent:*\x20%0',o(_0x30ea8e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2ff31c['commandName'])return{'type':'format','content':o(_0x30ea8e,'*Outdent:*\x20%0',o(_0x30ea8e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2ff31c['commandName'])return _0x2ff31c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x30ea8e,'*Check\x20item*')}:{'type':'format','content':o(_0x30ea8e,'*Uncheck\x20item*')};}function _0x1c853f(_0x1e902a){return{'type':'format','content':o(_0x30ea8e,'*Change\x20to:*\x20%0',_0x1e902a)};}});}}function Le(_0x46a050){const _0xa1e794=_0x46a050['getAttribute']('listIndent');if(0x0==_0xa1e794)return _0x46a050;let _0x103bc3=_0x46a050;for(;_0x46a050['previousSibling']&&_0x46a050['previousSibling']['is']('element','listItem');){const _0x5b0cd1=_0x46a050['previousSibling']['getAttribute']('listIndent');if(_0x5b0cd1==_0xa1e794)_0x103bc3=_0x46a050['previousSibling'];else{if(_0x5b0cd1<_0xa1e794)break;}_0x46a050=_0x46a050['previousSibling'];}return _0x103bc3;}function Ee(_0x3cbe29){const _0x4e7f3c=[];if(_0x3cbe29['is']('element','listItem')&&_0x3cbe29['getAttribute']('listIndent')>0x0){let _0x25f380=_0x3cbe29['nextSibling'];for(;_0x25f380&&'listItem'==_0x25f380['name']&&_0x25f380['getAttribute']('listIndent')==_0x3cbe29['getAttribute']('listIndent');)_0x4e7f3c['push'](_0x25f380),_0x25f380=_0x25f380['nextSibling'];}return _0x4e7f3c;}class ht extends _0xa897c8{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x27a7c8=this['editor']['config']['get']('list.properties'),_0x3b9dd6=this['editor']['plugins']['get']('TrackChangesEditing');_0x27a7c8['styles']&&_0x3b9dd6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x27a7c8['reversed']&&_0x3b9dd6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x27a7c8['startIndex']&&_0x3b9dd6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3b9dd6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1da725,_0x5a7507={}){const _0x17790f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x183844=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x17790f['markMultiRangeBlockFormat'](_0x183844,{'commandName':'listStyle','commandParams':[{'type':_0x5a7507['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x41108a,_0x3b2174={}){const _0xf8b60d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13429b=this['_getSuggestionBlocks'](_0x407128=>_0x407128['is']('element','listItem')&&'numbered'===_0x407128['getAttribute']('listType'));if(_0x13429b['length']<0x1)return;const _0x47576e=_0x13429b['map'](_0x3cbc8a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3cbc8a,'before'),this['editor']['model']['createPositionAt'](_0x3cbc8a,0x0)));this['editor']['model']['change'](()=>{_0xf8b60d['markMultiRangeBlockFormat'](_0x47576e,{'commandName':'listReversed','commandParams':[{'reversed':_0x3b2174['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5dd47e,_0x368a54={}){const _0x59af8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x474bdd=this['_getSuggestionBlocks'](_0x5205e4=>_0x5205e4['is']('element','listItem')&&'numbered'===_0x5205e4['getAttribute']('listType'));if(_0x474bdd['length']<0x1)return;const _0x2bc6f1=_0x474bdd['map'](_0x1144d4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1144d4,'before'),this['editor']['model']['createPositionAt'](_0x1144d4,0x0)));this['editor']['model']['change'](()=>{_0x59af8e['markMultiRangeBlockFormat'](_0x2bc6f1,{'commandName':'listStart','commandParams':[{'startIndex':_0x368a54['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2fa055){if('formatBlock'!=_0x2fa055['type']&&'formatInline'!=_0x2fa055['type'])return;const _0x26325a=this['editor']['locale'],{data:_0x5141e8}=_0x2fa055;if(!_0x5141e8)return;let _0x505f6b,_0x1a55a2;switch(_0x5141e8['commandName']){case'listStyle':_0x505f6b='*Change\x20to:*\x20%0',_0x1a55a2={'type':'format','content':o(_0x26325a,_0x505f6b,o(_0x26325a,this['_getTranslationKeyForListStyle'](_0x5141e8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x505f6b=_0x5141e8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1a55a2={'type':'format','content':o(_0x26325a,_0x505f6b)};break;case'listStart':_0x505f6b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1a55a2={'type':'format','content':o(_0x26325a,_0x505f6b,_0x5141e8['commandParams'][0x0]['startIndex'])};}return _0x1a55a2;}['_getSuggestionBlocksForListStyle'](){const _0x448547=this['editor']['plugins']['get']('LegacyListUtils');let _0x391fb3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x391fb3[0x0]?.['is']('element','listItem')&&_0x391fb3['unshift'](..._0x448547['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x391fb3[_0x391fb3['length']-0x1]?.['is']('element','listItem')&&_0x391fb3['push'](..._0x448547['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x391fb3=[...new Set(_0x391fb3)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x391fb3=_0x391fb3['filter'](_0x4acc04=>_0x4acc04['is']('element','listItem'))),_0x391fb3;}['_getSuggestionBlocks'](_0x198b3c){const _0x27a492=this['editor']['plugins']['get']('LegacyListUtils');let _0x406bd2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x198b3c)['map'](_0x3feb56=>{const _0x3ca692=this['editor']['model']['createPositionAt'](_0x3feb56,0x0);return[..._0x27a492['getSiblingNodes'](_0x3ca692,'backward'),..._0x27a492['getSiblingNodes'](_0x3ca692,'forward')];})['flat']();return _0x406bd2=[...new Set(_0x406bd2)],_0x406bd2;}['_getTranslationKeyForListStyle'](_0x24f5e9){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x24f5e9)||'default')['toUpperCase']()+'_LIST_'+_0x24f5e9['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xa897c8{['afterInit'](){const _0x2908d5=this['editor'];if(!_0x2908d5['plugins']['has']('MediaEmbedEditing'))return;const _0x337ad3=_0x2908d5['plugins']['get']('TrackChangesEditing'),_0x51bd8a=_0x2908d5['locale'];_0x337ad3['enableCommand']('mediaEmbed'),_0x337ad3['descriptionFactory']['registerElementLabel']('media',_0x16c3c5=>o(_0x51bd8a,'ELEMENT_MEDIA',_0x16c3c5)),_0x2908d5['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x594cd0,{writer:_0x103173,options:_0x55d74f})=>{if(_0x55d74f['showSuggestionHighlights'])return _0x103173['createEmptyElement']('div');},'converterPriority':'high'}),_0x2908d5['data']['downcastDispatcher']['on']('attribute:url:media',(_0x102c77,_0x2bb4fc,_0x232c34)=>{_0x232c34['options']['showSuggestionHighlights']&&_0x102c77['stop']();},{'priority':'high'});}}class lt extends _0xa897c8{['afterInit'](){const _0x95d2dd=this['editor'];_0x95d2dd['plugins']['has']('MentionEditing')&&_0x95d2dd['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xa897c8{['afterInit'](){const _0x1cac16=this['editor'];if(!_0x1cac16['plugins']['has']('MergeFieldsEditing'))return;const _0x4d99f7=_0x1cac16['plugins']['get']('TrackChangesEditing'),_0x4a8e74=_0x1cac16['locale'];_0x4d99f7['enableCommand']('insertMergeField'),_0x4d99f7['enableCommand']('insertMergeFieldBlock'),_0x4d99f7['enableCommand']('insertMergeFieldImage'),_0x4d99f7['descriptionFactory']['registerElementLabel']('mergeField',_0x3881a3=>o(_0x4a8e74,'ELEMENT_MERGE_FIELD',_0x3881a3)),_0x4d99f7['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x14e1e5=>o(_0x4a8e74,'ELEMENT_MERGE_FIELD',_0x14e1e5)),_0x4d99f7['descriptionFactory']['registerDescriptionCallback'](_0x96b11d=>{if('insertion'!=_0x96b11d['type']&&'deletion'!=_0x96b11d['type'])return;const _0x8e5b51=_0x96b11d['getContainedElement']();if(null==_0x8e5b51)return;const _0x2a9547=_0x1cac16['plugins']['get']('MergeFieldsEditing');let _0x5a0f88;switch(_0x2a9547['getMergeFieldType'](_0x8e5b51)){case null:return;case'image':{const _0xff898f=_0x2a9547['unwrapAffixes'](_0x8e5b51['getAttribute']('src'));_0x5a0f88=_0x2a9547['getLabel'](_0xff898f)||_0xff898f;break;}default:{const _0x581c5b=_0x8e5b51['getAttribute']('id');_0x5a0f88=_0x2a9547['getLabel'](_0x581c5b)||_0x581c5b;break;}}return'insertion'==_0x96b11d['type']?{'type':'insertion','content':o(_0x4a8e74,'*Insert:*\x20%0','\x22'+_0x5a0f88+'\x22\x20'+o(_0x4a8e74,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4a8e74,'*Remove:*\x20%0','\x22'+_0x5a0f88+'\x22\x20'+o(_0x4a8e74,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xa897c8{['afterInit'](){const _0x5d5ee0=this['editor'],_0x1018a2=_0x5d5ee0['plugins']['get']('TrackChangesEditing');_0x5d5ee0['plugins']['has']('MultiLevelList')&&(_0x1018a2['enableDefaultAttributesIntegration']('multiLevelList'),_0x1018a2['registerBlockAttribute']('listMarkerStyle'),_0x1018a2['descriptionFactory']['registerDescriptionCallback'](_0x9c351b=>this['handleDescriptions'](_0x9c351b)));}['handleDescriptions'](_0x43aee2){const _0x513dbe=this['editor']['locale'],{data:_0x5b7c46}=_0x43aee2,_0x2c7394={'type':'format','content':''};if(_0x5b7c46&&'listMarkerStyle'==_0x5b7c46['key']){if(!_0x5b7c46['oldValue'])return{'type':'format','content':o(_0x513dbe,'*Set\x20format:*\x20%0',o(_0x513dbe,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b7c46['newValue']+')'};if(!_0x5b7c46['newValue']){let _0x2a9f0b=_0x43aee2['head'];for(;_0x2a9f0b;){if(_0x2a9f0b['data']&&'listType'==_0x2a9f0b['data']['key']&&_0x2a9f0b['data']['newValue'])return _0x2c7394;_0x2a9f0b=_0x2a9f0b['next'];}return{'type':'format','content':o(_0x513dbe,'*Remove\x20format:*\x20%0',o(_0x513dbe,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b7c46['oldValue']+')'};}}}}class pt extends _0xa897c8{['afterInit'](){const _0xea2fee=this['editor'];if(!_0xea2fee['plugins']['has']('PageBreakEditing'))return;_0xea2fee['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x54963e=_0xea2fee['plugins']['get']('TrackChangesEditing'),_0x4814c2=_0xea2fee['locale'];_0x54963e['descriptionFactory']['registerElementLabel']('pageBreak',_0x5074bf=>o(_0x4814c2,'ELEMENT_PAGE_BREAK',_0x5074bf));}}class kt extends _0xa897c8{['afterInit'](){const _0x16c604=this['editor'];if(!_0x16c604['plugins']['has']('Paragraph'))return;const _0x1364de=_0x16c604['locale'],_0x40d63a=_0x16c604['plugins']['get']('TrackChangesEditing');_0x40d63a['descriptionFactory']['registerElementLabel']('paragraph',_0x4efb57=>o(_0x1364de,'ELEMENT_PARAGRAPH',_0x4efb57)),_0x40d63a['enableDefaultAttributesIntegration']('paragraph'),_0x40d63a['enableCommand']('insertParagraph'),_0x16c604['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x16c604),{'priority':'highest'}),_0x16c604['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x43b53b,_0xc8bf4a,_0x382d55)=>{_0x382d55['options']['showSuggestionHighlights']&&nr(_0x16c604,{'showActiveMarker':!0x1})(_0x43b53b,_0xc8bf4a,_0x382d55);},{'priority':'highest'});const _0x3d6e7a=_0x40d63a['descriptionFactory'];_0x3d6e7a['registerDescriptionCallback'](_0x41b631=>{if('insertion'!==_0x41b631['type'])return;const {start:_0x4e5a8c,end:_0x81f526}=_0x41b631['getFirstRange']();if(!_0x4e5a8c['isTouching'](_0x81f526)||!_0x4e5a8c['nodeAfter'])return;const _0x253885=_0x16c604['model']['schema'],_0x29366f=_0x4e5a8c['nodeAfter'];return _0x253885['isBlock'](_0x29366f)&&!_0x253885['isLimit'](_0x29366f)&&_0x253885['checkChild'](_0x29366f,'$text')?{'type':'insertion','content':o(_0x1364de,'*Insert:*\x20%0',_0x3d6e7a['getItemLabel'](_0x29366f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3da912=this['editor'],_0xcfd2f0=_0x3da912['locale'];_0x3da912['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c4870=>{if('formatBlock'!=_0x2c4870['type'])return;const {data:_0x259ffe}=_0x2c4870;return _0x259ffe&&'paragraph'==_0x259ffe['commandName']?{'type':'format','content':o(_0xcfd2f0,'*Change\x20to:*\x20%0',o(_0xcfd2f0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4e8129,{showActiveMarker:_0x2abcb1=!0x0}={}){return(_0x544ffa,_0x5e40a2,_0xfc716d)=>{const _0x22e923=_0x4e8129['plugins']['get']('TrackChangesEditing'),_0x3ea350=_0x5e40a2['markerRange']['start'],_0x5f2131=_0x5e40a2['markerRange']['end'],_0x26245b=_0x4e8129['model']['schema'];if(!_0x3ea350['isTouching'](_0x5f2131)||!_0x3ea350['nodeAfter'])return;const _0x3abc42=_0x3ea350['nodeAfter'];if(_0x26245b['isBlock'](_0x3abc42)&&!_0x26245b['isLimit'](_0x3abc42)&&_0x26245b['checkChild'](_0x3abc42,'$text')){if(!_0xfc716d['consumable']['consume'](_0x5e40a2['markerRange'],_0x544ffa['name']))return;const {id:_0x391766,authorId:_0x9c9082}=_0x22e923['_splitMarkerName'](_0x5e40a2['markerName']),_0x1d7843=_0xfc716d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x391766,'data-author-id':_0x9c9082}),_0x275869=_0xfc716d['mapper']['toViewPosition'](_0x5f2131);_0x2abcb1&&_0x22e923['activeMarkers']['includes'](_0x5e40a2['markerName'])&&_0xfc716d['writer']['addClass']('ck-suggestion-marker--active',_0x1d7843),_0xfc716d['writer']['insert'](_0x275869,_0x1d7843),_0xfc716d['mapper']['bindElementToMarker'](_0x1d7843,_0x5e40a2['markerName']);}};}class wt extends _0xa897c8{['afterInit'](){const _0x41053a=this['editor'];_0x41053a['commands']['get']('replaceSource')&&_0x41053a['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xa897c8{['afterInit'](){const _0x33196f=this['editor'];if(!_0x33196f['plugins']['has']('RemoveFormatEditing'))return;_0x33196f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a25fd=this['editor'];_0x1a25fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d69c8=>{if('formatBlock'!=_0x1d69c8['type']&&'formatInline'!=_0x1d69c8['type'])return;const {data:_0xd51a}=_0x1d69c8;return _0xd51a&&'removeFormat'==_0xd51a['commandName']?{'type':'format','content':o(_0x1a25fd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xa897c8{['afterInit'](){const _0x353171=this['editor'];if(!_0x353171['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x266352=_0x353171['plugins']['get']('TrackChangesEditing');_0x266352['enableCommand']('goToPreviousRestrictedEditingException'),_0x266352['enableCommand']('goToNextRestrictedEditingException');const _0x488978=_0x353171['plugins']['get']('RestrictedEditingModeEditing');_0x488978['enableCommand']('trackChanges'),_0x488978['enableCommand']('acceptSuggestion'),_0x488978['enableCommand']('discardSuggestion'),_0x488978['enableCommand']('acceptAllSuggestions'),_0x488978['enableCommand']('discardAllSuggestions'),_0x488978['enableCommand']('acceptSelectedSuggestions'),_0x488978['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xa897c8{['afterInit'](){const _0x2d3462=this['editor'];if(!_0x2d3462['plugins']['has']('ShiftEnter'))return;const _0x793339=_0x2d3462['plugins']['get']('TrackChangesEditing');_0x793339['enableCommand']('shiftEnter'),_0x2d3462['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2d3462),{'priority':'high'}),_0x2d3462['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2d3462),{'priority':'high'}),_0x2d3462['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x462c86,_0x403a05,_0x2fb425)=>{_0x2fb425['options']['showSuggestionHighlights']&&je(_0x2d3462,{'showActiveMarker':!0x1})(_0x462c86,_0x403a05,_0x2fb425);}),_0x793339['descriptionFactory']['registerElementLabel']('softBreak',_0x357a48=>o(_0x2d3462['locale'],'ELEMENT_LINE_BREAK',_0x357a48));}}function je(_0x282d5c,{showActiveMarker:_0x34761e=!0x0}={}){return(_0x4939f2,_0x295575,_0x1f8cc8)=>{const _0x33e1f6=_0x282d5c['plugins']['get']('TrackChangesEditing');if(!_0x1f8cc8['consumable']['test'](_0x295575['markerRange'],_0x4939f2['name']))return;const _0xe3c6b8=_0x282d5c['model'];for(const _0x20013d of _0x295575['markerRange']['getItems']()){if(!_0x20013d['is']('element','softBreak'))continue;const _0x146686='deletion'==_0x295575['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x442387,authorId:_0x29c324}=_0x33e1f6['_splitMarkerName'](_0x295575['markerName']),_0x55f9be=_0x1f8cc8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x146686,'data-suggestion':_0x442387,'data-author-id':_0x29c324}),_0x3fa594=_0x1f8cc8['mapper']['toViewPosition'](_0xe3c6b8['createPositionBefore'](_0x20013d));_0x34761e&&_0x33e1f6['activeMarkers']['includes'](_0x295575['markerName'])&&_0x1f8cc8['writer']['addClass']('ck-suggestion-marker--active',_0x55f9be),_0x1f8cc8['writer']['insert'](_0x3fa594,_0x55f9be),_0x1f8cc8['mapper']['bindElementToMarker'](_0x55f9be,_0x295575['markerName']);}};}class St extends _0xa897c8{['afterInit'](){const _0x524ece=this['editor'],_0x216d7e=_0x524ece['model'],_0x23f5f2=_0x524ece['locale'];if(!_0x524ece['plugins']['has']('StandardEditingModeEditing'))return;const _0x203331=_0x524ece['plugins']['get']('TrackChangesEditing'),_0x102f36='restrictedEditingException',_0x82c575=_0x524ece['commands']['get'](_0x102f36);_0x203331['enableCommand'](_0x102f36,(_0x3bfd30,_0x47f17f={})=>{const _0x251f96=_0x216d7e['document']['selection'];if(_0x251f96['isCollapsed'])return void _0x3bfd30(_0x47f17f);const _0x3ef885=void 0x0!==_0x47f17f['forceValue']?_0x47f17f['forceValue']:!_0x82c575['value'];_0x216d7e['change'](()=>{const _0xcd00e7=Array['from'](_0x251f96['getRanges']());for(const _0x300ddf of _0xcd00e7){const _0x4094d3=_0x3ef885?[_0x300ddf]:io(_0x102f36,_0x300ddf,_0x216d7e);for(const _0x231a25 of _0x4094d3)_0x203331['markInlineFormat'](_0x231a25,{'commandName':_0x102f36,'commandParams':[{'forceValue':_0x3ef885}]});}});}),_0x203331['descriptionFactory']['registerDescriptionCallback'](_0x4bb14b=>{if('formatBlock'!=_0x4bb14b['type']&&'formatInline'!=_0x4bb14b['type'])return;const {data:_0x27531c}=_0x4bb14b;return _0x27531c&&_0x27531c['commandName']==_0x102f36?_0x27531c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23f5f2,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x23f5f2,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xa897c8{['afterInit'](){const _0xe92d49=this['editor'];if(!_0xe92d49['plugins']['has']('Style')||!_0xe92d49['plugins']['has']('DataSchema'))return;const _0x494aa0=_0xe92d49['plugins']['get']('TrackChangesEditing'),_0x2db55a=_0xe92d49['locale'],_0x229e82=_0xe92d49['config']['get']('style')||{},_0x11d16b=_0xe92d49['plugins']['get']('GeneralHtmlSupport'),_0x22b056=_0xe92d49['plugins']['get']('StyleUtils')['normalizeConfig'](_0xe92d49['plugins']['get']('DataSchema'),_0x229e82['definitions']);_0x494aa0['enableDefaultAttributesIntegration']('style');const _0x5e94c5=new Set();for(const _0x316f20 of _0x22b056['block']){const _0x179a5b=_0x11d16b['getGhsAttributeNameForElement'](_0x316f20['element']);_0x5e94c5['add'](_0x179a5b);}const _0x45736c=new Set();for(const _0x12b1aa of _0x22b056['inline']){const _0x111708=_0x11d16b['getGhsAttributeNameForElement'](_0x12b1aa['element']);_0x45736c['add'](_0x111708);for(const _0x359b13 of _0x12b1aa['ghsAttributes'])_0x45736c['add'](_0x359b13);}for(const _0x5e7201 of _0x5e94c5)_0x494aa0['registerBlockAttribute'](_0x5e7201),_0x494aa0['descriptionFactory']['registerAttributeLabel'](_0x5e7201,o(_0x2db55a,'FORMAT_STYLE'));for(const _0x28a3c9 of _0x45736c)_0x494aa0['registerInlineAttribute'](_0x28a3c9),_0x494aa0['descriptionFactory']['registerAttributeLabel'](_0x28a3c9,o(_0x2db55a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x271612=this['editor'],_0x40143c=_0x271612['locale'];_0x271612['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49eccd=>{if('formatBlock'!=_0x49eccd['type']&&'formatInline'!=_0x49eccd['type'])return;const {data:_0x1da3ac}=_0x49eccd;return _0x1da3ac&&'style'===_0x1da3ac['commandName']?_0x1da3ac['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40143c,'*Set\x20format:*\x20%0',_0x1da3ac['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x40143c,'*Remove\x20format:*\x20%0',_0x1da3ac['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xa897c8{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x40cf05){super(_0x40cf05),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x27ea9a=this['editor'],_0xeb1ab6=_0x27ea9a['model']['document']['selection'];if(!_0x27ea9a['plugins']['has']('TableEditing'))return;const _0x552627=_0x27ea9a['locale'],_0x26df41=_0x27ea9a['plugins']['get']('TrackChangesEditing'),_0x4f201=_0x27ea9a['plugins']['get']('TableUtils');_0x26df41['descriptionFactory']['registerElementLabel']('table',_0x4985c2=>o(_0x552627,'ELEMENT_TABLE',_0x4985c2)),this['_setupColumnsRowsFixing'](),_0x26df41['enableCommand']('insertTable'),_0x26df41['enableCommand']('selectTableRow'),_0x26df41['enableCommand']('selectTableColumn');for(const _0xce36 of['insertTableRowAbove','insertTableRowBelow']){const _0x407663=_0x27ea9a['commands']['get'](_0xce36);_0x26df41['enableCommand'](_0xce36,_0x1abd67=>{_0x27ea9a['model']['change'](_0xd5c478=>{_0x1abd67();const _0x2dd50b='above'===_0x407663['order'],_0x2c8f68=_0x4f201['getSelectionAffectedTableCells'](_0xeb1ab6),_0x4d5630=_0x4f201['getRowIndexes'](_0x2c8f68),_0x808779=_0x2dd50b?_0x4d5630['first']-0x1:_0x4d5630['last']+0x1,_0x1e756b=_0x2c8f68[0x0]['findAncestor']('table'),_0x1c460c=_0x4f201['createTableWalker'](_0x1e756b,{'startRow':_0x808779,'endRow':_0x808779}),_0x10b519=Array['from'](_0x1c460c)['map'](_0x3c7944=>_0xd5c478['createRangeOn'](_0x3c7944['cell']));_0x26df41['markMultiRangeInsertion'](_0x10b519,'tableRow');});});}for(const _0x2b12fd of['insertTableColumnLeft','insertTableColumnRight']){const _0x4c79dc=_0x27ea9a['commands']['get'](_0x2b12fd);_0x26df41['enableCommand'](_0x2b12fd,_0x5a157e=>{_0x27ea9a['model']['change'](_0x4ccc5b=>{_0x5a157e();const _0x74617='left'===_0x4c79dc['order'],_0x13370a=_0x4f201['getSelectionAffectedTableCells'](_0xeb1ab6),_0x423b94=_0x4f201['getColumnIndexes'](_0x13370a),_0x16b0ba=_0x74617?_0x423b94['first']-0x1:_0x423b94['last']+0x1,_0x48d42a=_0x13370a[0x0]['findAncestor']('table'),_0x5439b4=_0x4f201['createTableWalker'](_0x48d42a,{'startRow':0x0,'column':_0x16b0ba,'includeAllSlots':!0x1}),_0x186fe4=Array['from'](_0x5439b4)['map'](_0x2185bd=>_0x4ccc5b['createRangeOn'](_0x2185bd['cell']));_0x26df41['markMultiRangeInsertion'](_0x186fe4,'tableColumn');});});}for(const _0x45a049 of['removeTableRow','removeTableColumn']){const _0x360d0b=_0x45a049['substr'](0xb),_0x82e5f9=_0x360d0b['toLowerCase'](),_0x4a1b0c=_0x82e5f9['substr'](0x0,0x3)+'span',_0x680e3='table'+_0x360d0b,_0x325504='min'+_0x360d0b,_0x531916='max'+_0x360d0b;_0x26df41['enableCommand'](_0x45a049,()=>{_0x27ea9a['model']['change'](_0x5c56b1=>{const _0x3b41a4=_0x4f201['getSelectionAffectedTableCells'](_0xeb1ab6),_0x14c53a=_0x3b41a4[0x0]['findAncestor']('table');let _0xb717af;if('removeTableRow'==_0x45a049){const _0x3bc669=_0x4f201['getRowIndexes'](_0x3b41a4);_0xb717af={'startRow':_0x3bc669['first'],'endRow':_0x3bc669['last'],'includeAllSlots':!0x0};}else{const _0xd45f13=_0x4f201['getColumnIndexes'](_0x3b41a4);_0xb717af={'startColumn':_0xd45f13['first'],'endColumn':_0xd45f13['last'],'includeAllSlots':!0x0};}const _0x104379=_0x4f201['createTableWalker'](_0x14c53a,_0xb717af),_0x2562bf=Array['from'](_0x104379)['map'](({cell:_0x4f2f49})=>_0x4f2f49),_0x7087c8=Ne(_0x2562bf['filter'](_0x3393ca=>_0x3393ca['hasAttribute'](_0x4a1b0c))),_0x28f223=Ne(_0x2562bf['filter'](_0x2d5412=>!_0x2d5412['hasAttribute'](_0x4a1b0c)))['map'](_0x5744e4=>_0x5c56b1['createRangeOn'](_0x5744e4)),_0x462fcd=_0x26df41['markMultiRangeDeletion'](_0x28f223,_0x680e3);if(_0x462fcd&&('tableRow'==_0x462fcd['subType']||'tableColumn'==_0x462fcd['subType'])){const _0x482ebc=this['_getSuggestionCoords'](_0x462fcd);for(const _0x5c2c86 of _0x7087c8){const _0x284898=_0x5c56b1['createRangeOn'](_0x5c2c86),_0xc7f080=_0x4f201['getCellLocation'](_0x5c2c86),_0x57e3da=_0x5c2c86['getAttribute'](_0x4a1b0c)-0x1,_0x314342=_0x482ebc[_0x325504],_0x2ca1ab=_0x482ebc[_0x531916];_0x314342<=_0xc7f080[_0x82e5f9]&&_0xc7f080[_0x82e5f9]+_0x57e3da<=_0x2ca1ab&&_0x462fcd['addRange'](_0x284898);}}});});}function _0x37a0b3(_0x2a37a3){const _0x32059d=Array['from'](_0xeb1ab6['getRanges']())['map'](_0x24612d=>_0x1437b2['fromRange'](_0x24612d));_0x27ea9a['model']['change'](_0x20adbd=>{const _0x38b072=_0x20adbd['batch'];_0x2a37a3=_0x2a37a3['filter'](_0xf18682=>'$graveyard'!=_0xf18682['root']['rootName']),_0x20adbd['setSelection'](_0x2a37a3),_0x27ea9a['commands']['get']('removeTableRow')['refresh'](),_0x27ea9a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x27ea9a['model']['enqueueChange'](()=>{_0x27ea9a['model']['enqueueChange'](_0x38b072,_0x4a70cf=>{const _0x4b346e=_0x32059d['filter'](_0x28d943=>'$graveyard'!=_0x28d943['root']['rootName']);_0x4b346e['length']>0x0&&_0x4a70cf['setSelection'](_0x4b346e);for(const _0x35fe0a of _0x32059d)_0x35fe0a['detach']();});});});}function _0x1f2944(_0x31cc10){_0x27ea9a['model']['change'](_0x48eb6a=>{const _0x312633=Array['from'](_0xeb1ab6['getRanges']())['map'](_0x540d53=>_0x1437b2['fromRange'](_0x540d53)),_0x6099f7=[];for(const _0x4647dd of _0x31cc10)for(const _0x48b2b4 of _0x4647dd['getItems']({'shallow':!0x0}))_0x6099f7['push'](_0x48b2b4);for(const _0x355f50 of _0x6099f7)'$graveyard'!=_0x355f50['root']['rootName']&&(_0x48eb6a['setSelection'](_0x48eb6a['createPositionAt'](_0x355f50,0x0)),_0x27ea9a['commands']['get']('removeTableColumn')['refresh'](),_0x27ea9a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x484f3d=_0x312633['filter'](_0x1759e9=>'$graveyard'!=_0x1759e9['root']['rootName']);_0x484f3d['length']>0x0&&_0x48eb6a['setSelection'](_0x484f3d);for(const _0x1f0a40 of _0x312633)_0x1f0a40['detach']();});}function _0x15e183(_0x5f4009,_0x16577e){return _0x16577e['every'](_0x150537=>_0x5f4009['some'](_0x5b351d=>_0x5b351d['end']['isEqual'](_0x150537['start'])||_0x150537['end']['isEqual'](_0x5b351d['start'])));}function _0x5d669b(_0x5b0945,_0x3be216){return!_0x5b0945['some'](_0x4afaed=>_0x3be216['some'](_0x2b46b4=>_0x4afaed['isIntersecting'](_0x2b46b4)))&&_0x5b0945['some'](_0x4408ed=>_0x3be216['some'](_0x6ca322=>_0x4408ed['end']['isTouching'](_0x6ca322['start'])));}_0x27ea9a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x456485,_0xb9bf51,_0x1d4f39)=>{if(!_0x1d4f39['options']['showSuggestionHighlights'])return;const _0x322265=_0xb9bf51['item'];if(!_0x322265||!_0x322265['is']('element','tableCell'))return;const _0x463f8d=_0x1d4f39['mapper']['toViewElement'](_0x322265);if(_0x463f8d){const {id:_0x4a17c9,authorId:_0x400e15}=_0x26df41['_splitMarkerName'](_0xb9bf51['markerName']);_0x214e22(_0x463f8d,_0x1d4f39['writer'],(_0x2c1df8,_0x973e0b,_0x2d831e)=>{_0x2d831e['addClass'](_0x35a6eb(_0x973e0b['classes']),_0x2c1df8),_0x2d831e['setAttribute']('data-suggestion-id',_0x4a17c9,_0x2c1df8),_0x2d831e['setAttribute']('data-author-id',_0x400e15,_0x2c1df8);},(_0x42ba7e,_0x676e35,_0x2f61a2)=>{_0x2f61a2['removeClass'](_0x35a6eb(_0x676e35['classes']),_0x42ba7e),_0x2f61a2['removeAttribute']('data-suggestion-id',_0x42ba7e),_0x2f61a2['removeAttribute']('data-author-id',_0x42ba7e);});}},{'priority':'highest'}),_0x26df41['descriptionFactory']['registerDescriptionCallback'](_0x579eea=>{if('insertion'!=_0x579eea['type']&&'deletion'!=_0x579eea['type'])return;const _0x35de55=_0x579eea['getContainedElement']();if(null!=_0x35de55&&_0x35de55['is']('element','table')){if('insertion'==_0x579eea['type']){const _0x10887a=_0x579eea['getItems']()['filter'](_0x25f398=>_0x25f398['is']('$textProxy'))['map'](_0x166ee7=>_0x166ee7['data']);if(_0x10887a['length'])return{'type':'insertion','content':o(_0x552627,'*Insert:*\x20%0',o(_0x552627,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x10887a['join']('\x20')+'\x22'))};}if('deletion'==_0x579eea['type']){const _0x388229=_0x579eea['getItems']()['filter'](_0x193728=>_0x193728['is']('$textProxy'))['map'](_0x1d9cf1=>_0x1d9cf1['data']);if(_0x388229['length'])return{'type':'deletion','content':o(_0x552627,'*Remove:*\x20%0',o(_0x552627,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x388229['join']('\x20')+'\x22'))};}}}),_0x26df41['descriptionFactory']['registerDescriptionCallback'](_0x160d3f=>{if('tableRow'==_0x160d3f['subType']){const _0x3ed355=_0x160d3f['getItems']()['filter'](_0x2965cf=>_0x2965cf['is']('$textProxy'))['map'](_0x4faea5=>_0x4faea5['data']),_0x4b538f=this['_getSuggestionCoords'](_0x160d3f),_0xbaf3f2=_0x4b538f['maxRow']-_0x4b538f['minRow']+0x1;if('insertion'==_0x160d3f['type'])return _0x3ed355['length']?{'type':'insertion','content':o(_0x552627,'*Insert:*\x20%0',o(_0x552627,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xbaf3f2,'\x22'+_0x3ed355['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x552627,'*Insert:*\x20%0',o(_0x552627,'ELEMENT_TABLE_ROW',_0xbaf3f2))};if('deletion'==_0x160d3f['type'])return _0x3ed355['length']?{'type':'deletion','content':o(_0x552627,'*Remove:*\x20%0',o(_0x552627,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xbaf3f2,'\x22'+_0x3ed355['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x552627,'*Remove:*\x20%0',o(_0x552627,'ELEMENT_TABLE_ROW',_0xbaf3f2))};}if('tableColumn'==_0x160d3f['subType']){const _0x5cd12a=_0x160d3f['getItems']()['filter'](_0x284c2a=>_0x284c2a['is']('$textProxy'))['map'](_0x2b6eb9=>_0x2b6eb9['data']),_0x4a6f12=this['_getSuggestionCoords'](_0x160d3f),_0x223f4a=_0x4a6f12['maxColumn']-_0x4a6f12['minColumn']+0x1;if('insertion'==_0x160d3f['type'])return _0x5cd12a['length']?{'type':'insertion','content':o(_0x552627,'*Insert:*\x20%0',o(_0x552627,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x223f4a,'\x22'+_0x5cd12a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x552627,'*Insert:*\x20%0',o(_0x552627,'ELEMENT_TABLE_COLUMN',_0x223f4a))};if('deletion'==_0x160d3f['type'])return _0x5cd12a['length']?{'type':'deletion','content':o(_0x552627,'*Remove:*\x20%0',o(_0x552627,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x223f4a,'\x22'+_0x5cd12a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x552627,'*Remove:*\x20%0',o(_0x552627,'ELEMENT_TABLE_COLUMN',_0x223f4a))};}}),_0x26df41['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x37a0b3),_0x26df41['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x37a0b3),_0x26df41['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1f2944),_0x26df41['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1f2944),_0x26df41['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x15e183),_0x26df41['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x15e183),_0x26df41['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5d669b),_0x26df41['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5d669b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x33ba36=this['editor'],_0x42e6b1=_0x33ba36['model']['document']['selection'];return(_0x1dd7f3,_0x3af73e)=>{_0x33ba36['model']['change'](_0x168dd9=>{const {commandName:_0x3e7aaa,commandParams:_0x47f600}=_0x3af73e;let _0x218d5c=_0x1dd7f3[0x0]['end']['nodeBefore'];_0x47f600&&_0x47f600[0x0]&&!0x1===_0x47f600[0x0]['forceValue']&&(_0x218d5c=_0x1dd7f3[0x0]['start']['nodeAfter']);const _0x31ea59=_0x168dd9['createRangeIn'](_0x218d5c);if('$graveyard'==_0x31ea59['root']['rootName'])return;const _0x5ec4a5=Array['from'](_0x42e6b1['getRanges']())['map'](_0x2a2134=>_0x1437b2['fromRange'](_0x2a2134));_0x168dd9['setSelection'](_0x31ea59),_0x33ba36['commands']['get'](_0x3e7aaa)['refresh'](),_0x47f600['push']({'forceDefaultExecution':!0x0}),_0x33ba36['execute'](_0x3e7aaa,..._0x47f600);const _0xbc458e=_0x5ec4a5['filter'](_0x4f2b02=>'$graveyard'!=_0x4f2b02['root']['rootName']);_0xbc458e['length']>0x0&&_0x168dd9['setSelection'](_0xbc458e);for(const _0x54dd7e of _0x5ec4a5)_0x54dd7e['detach']();});};}['_getCoordsForCells'](_0x3ad0b9){const _0x428722=this['editor']['plugins']['get']('TableUtils');let _0x2d0ea7=Number['MAX_SAFE_INTEGER'],_0x572842=Number['MIN_SAFE_INTEGER'],_0x5ac8e8=Number['MAX_SAFE_INTEGER'],_0x12ce23=Number['MIN_SAFE_INTEGER'];for(const _0x240234 of _0x3ad0b9){if('$graveyard'==_0x240234['root']['rootName'])continue;const {row:_0x1d817a,column:_0x3c90c5}=_0x428722['getCellLocation'](_0x240234),_0x42ed0a=_0x240234['hasAttribute']('rowspan')?_0x240234['getAttribute']('rowspan')-0x1:0x0,_0x480e10=_0x240234['hasAttribute']('colspan')?_0x240234['getAttribute']('colspan')-0x1:0x0;_0x2d0ea7=_0x1d817a<_0x2d0ea7?_0x1d817a:_0x2d0ea7,_0x572842=_0x1d817a+_0x42ed0a>_0x572842?_0x1d817a+_0x42ed0a:_0x572842,_0x5ac8e8=_0x3c90c5<_0x5ac8e8?_0x3c90c5:_0x5ac8e8,_0x12ce23=_0x3c90c5+_0x480e10>_0x12ce23?_0x3c90c5+_0x480e10:_0x12ce23;}return{'minRow':_0x2d0ea7,'maxRow':_0x572842,'minColumn':_0x5ac8e8,'maxColumn':_0x12ce23};}['_setupColumnsRowsFixing'](){const _0x456d92=this['editor'],_0xb80dec=_0x456d92['plugins']['get']('TrackChangesEditing'),_0x44749a=_0x456d92['plugins']['get']('TableUtils');_0x456d92['model']['document']['on']('change:data',()=>{const _0x227f60=Array['from'](_0x456d92['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25146d,data:_0x496bed}of _0x227f60){const {group:_0xb46d4e,id:_0x2c5b52,subType:_0x466939}=_0xb80dec['_splitMarkerName'](_0x25146d);if('suggestion'!=_0xb46d4e)continue;if(null!=_0x496bed['oldRange'])continue;const _0x27876a=_0xb80dec['getSuggestion'](_0x2c5b52);this['_tablePostFixingSubtypes']['includes'](_0x466939)&&this['_tableSuggestions']['add'](_0x27876a);}},{'priority':'low'});const _0x3e9819=(_0x1c346b,_0xe21059)=>{let _0x594f33=!0x1;const _0xe4e36=_0xe21059['createRangeOn'](_0x1c346b),_0x1f6ce3=_0x1c346b['findAncestor']('table'),_0x3bfb6d=_0x44749a['getCellLocation'](_0x1c346b);for(const _0xe4b107 of this['_tableSuggestions']){const _0xe8a7ad=_0xe4b107['subType'],_0x5e20c0=_0xe8a7ad['startsWith']('tablePaste'),_0x41693f=_0xe8a7ad['substr'](_0x5e20c0?0xa:0x5),_0x14f8a9=_0x41693f['toLowerCase'](),_0x1a76d5=_0x14f8a9['substr'](0x0,0x3)+'span',_0x3b730f='min'+_0x41693f,_0x2ef720='max'+_0x41693f;if(!_0xe4b107['isInContent'])continue;if(_0x1f6ce3!=_0xe4b107['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xe4b107['isIntersectingWithRange'](_0xe4e36))continue;const _0x53179a=_0x1c346b['hasAttribute'](_0x1a76d5)?_0x1c346b['getAttribute'](_0x1a76d5)-0x1:0x0,_0x5d071e=this['_getSuggestionCoords'](_0xe4b107),_0x3f7ede=_0x5d071e[_0x3b730f],_0x49dbc4=_0x5d071e[_0x2ef720];_0x3f7ede<=_0x3bfb6d[_0x14f8a9]&&_0x3bfb6d[_0x14f8a9]+_0x53179a<=_0x49dbc4&&(_0xe4b107['addRange'](_0xe4e36),_0x594f33=!0x0);}return _0x594f33;};_0x456d92['model']['document']['registerPostFixer'](_0x1c0f7f=>{let _0x3e2882=!0x1;for(const _0x3a9ed7 of _0x456d92['model']['document']['differ']['getChanges']())if('insert'==_0x3a9ed7['type']){if('tableRow'==_0x3a9ed7['name']){for(const _0x3123fa of _0x3a9ed7['position']['nodeAfter']['getChildren']())_0x3e2882=_0x3e2882||_0x3e9819(_0x3123fa,_0x1c0f7f);}else'tableCell'==_0x3a9ed7['name']&&(_0x3e2882=_0x3e2882||_0x3e9819(_0x3a9ed7['position']['nodeAfter'],_0x1c0f7f));}return _0x3e2882;});}['_getSuggestionCoords'](_0x5fe099){return this['_getCoordsForCells'](_0x5fe099['getRanges']()['map'](_0x21f4ac=>_0x21f4ac['start']['nodeAfter']));}}function Ne(_0x44e304){return Array['from'](new Set(_0x44e304)['values']());}class _t extends _0xa897c8{static get['requires'](){return[At];}['afterInit'](){const _0xa6d689=this['editor'],_0x5db651=_0xa6d689['model']['document']['selection'],_0x540231=_0xa6d689['locale'];if(!_0xa6d689['plugins']['has']('TableEditing'))return;const _0x11bcf1=_0xa6d689['plugins']['get']('TrackChangesEditing'),_0x2c4310=_0xa6d689['plugins']['get']('TableUtils'),_0x5c158b=_0xa6d689['plugins']['get'](At);_0x5c158b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x11bcf1['enableCommand']('mergeTableCells',()=>{const _0x3c1995=_0x2c4310['getSelectionAffectedTableCells'](_0xa6d689['model']['document']['selection']);_0xa6d689['model']['change'](()=>{_0x11bcf1['markMultiRangeBlockFormat'](_0x3c1995,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xa6d689['commands']['get']('mergeTableCells')['on']('execute',(_0x16e708,_0x10400c)=>{_0xa6d689['commands']['get']('trackChanges')['value']&&(_0x10400c['length']>0x0&&_0x10400c[_0x10400c['length']-0x1]&&_0x10400c[_0x10400c['length']-0x1]['forceDefaultExecution']||_0x11bcf1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x16e708['stop']());},{'priority':'highest'});for(const _0x423d88 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x87ca02=_0xa6d689['commands']['get'](_0x423d88);_0x11bcf1['enableCommand'](_0x423d88,()=>{const _0x99054d=_0xa6d689['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4dc7bd=>_0x4dc7bd['is']('element','tableCell')),_0x2d70d8=_0x87ca02['value'];_0xa6d689['model']['change'](()=>{_0x11bcf1['markMultiRangeBlockFormat']([_0x99054d,_0x2d70d8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x350669 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2fa4d4=_0xa6d689['commands']['get'](_0x350669);_0x11bcf1['enableCommand'](_0x350669,()=>{const _0x1168c3=_0x2c4310['getSelectionAffectedTableCells'](_0xa6d689['model']['document']['selection'])[0x0],_0x3120fc=_0x1168c3['findAncestor']('table'),{column:_0xc666cc,row:_0x464022}=_0x2c4310['getCellLocation'](_0x1168c3);let _0x395911=[];if('horizontally'==_0x2fa4d4['direction']){const _0x313216=_0x2c4310['createTableWalker'](_0x3120fc,{'startRow':_0x464022,'endRow':_0x464022,'includeAllSlots':!0x0});_0x395911=Array['from'](_0x313216)['map'](_0x298bdd=>_0x298bdd['cell']);}else{const _0x16993b=_0x2c4310['createTableWalker'](_0x3120fc,{'column':_0xc666cc,'includeAllSlots':!0x0});_0x395911=Array['from'](_0x16993b)['map'](_0x53e7e2=>_0x53e7e2['cell']);}_0xa6d689['model']['change'](_0x85357d=>{_0x11bcf1['markBlockFormat'](_0x85357d['createRangeOn'](_0x1168c3),{'commandName':_0x350669,'commandParams':[]},_0x395911,_0x350669);});});}_0x11bcf1['descriptionFactory']['registerDescriptionCallback'](_0x225fd9=>{if('formatBlock'!=_0x225fd9['type']&&'formatInline'!=_0x225fd9['type'])return;const {data:_0x5a2513}=_0x225fd9;return _0x5a2513&&'mergeTableCells'==_0x5a2513['commandName']?{'type':'format','content':o(_0x540231,'*Merge\x20cells*')}:void 0x0;}),_0x11bcf1['descriptionFactory']['registerDescriptionCallback'](_0x9da5ba=>{if('formatBlock'!=_0x9da5ba['type']&&'formatInline'!=_0x9da5ba['type'])return;const {data:_0xb400d5}=_0x9da5ba;return _0xb400d5?'splitTableCellVertically'==_0xb400d5['commandName']?{'type':'format','content':o(_0x540231,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xb400d5['commandName']?{'type':'format','content':o(_0x540231,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5a5a67=_0x5c158b['_acceptFormatSuggestionCallbackFactory']();for(const _0x2685d6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x11bcf1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2685d6,'accept',_0x5a5a67);for(const _0x5ee912 of['splitTableCellVertically','splitTableCellHorizontally'])_0x11bcf1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ee912,'accept',_0x5a5a67);_0x11bcf1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x129358=>{_0xa6d689['model']['change'](_0x3fa394=>{const _0x562c24=Array['from'](_0x5db651['getRanges']())['map'](_0x5f123c=>_0x1437b2['fromRange'](_0x5f123c));_0x3fa394['setSelection'](_0x129358),_0xa6d689['commands']['get']('mergeTableCells')['refresh'](),_0xa6d689['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1c17bb=_0x562c24['filter'](_0x35024e=>'$graveyard'!=_0x35024e['root']['rootName']);_0x1c17bb['length']>0x0&&_0x3fa394['setSelection'](_0x1c17bb);for(const _0xa4e444 of _0x562c24)_0xa4e444['detach']();});});for(const _0x451e06 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5e189a=_0xa6d689['commands']['get'](_0x451e06);_0x5e189a['on']('set:isEnabled',(_0xe01cf1,_0x191bb4,_0x1ee12e)=>{if(_0x1ee12e){const _0x18a4b9=_0xa6d689['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x41cf22=>_0x41cf22['is']('element','tableCell'));this['_areMergableCells'](_0x5e189a['value'],_0x18a4b9)||(_0xe01cf1['return']=!0x1,_0xe01cf1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5aacbe=this['editor']['commands']['get']('mergeTableCells'),_0x823646=this['editor']['plugins']['get']('TableUtils');if(!_0x5aacbe['isEnabled'])return!0x1;const _0x4065f7=_0x823646['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5600e2 of _0x4065f7)for(const _0x335f50 of _0x4065f7)if(_0x5600e2!=_0x335f50&&!this['_areMergableCells'](_0x5600e2,_0x335f50))return!0x1;return!0x0;}['_areMergableCells'](_0x59faaf,_0x5a011a){const _0x22db87=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49aa05=this['editor']['model']['createRangeOn'](_0x59faaf),_0xb8d9cf=this['editor']['model']['createRangeOn'](_0x5a011a),_0x318b07=new Set(),_0x113825=new Set();for(const _0x5ba230 of _0x22db87['getSuggestions']())if(('insertion'==_0x5ba230['type']||'deletion'==_0x5ba230['type']||'mergeTableCells'==_0x5ba230['subType'])&&_0x5ba230['isInContent']){for(const _0x286bd6 of _0x5ba230['getRanges']())_0x286bd6['containsRange'](_0x49aa05,!0x0)&&_0x318b07['add'](_0x5ba230['type']+':'+_0x5ba230['author']['id']),_0x286bd6['containsRange'](_0xb8d9cf,!0x0)&&_0x113825['add'](_0x5ba230['type']+':'+_0x5ba230['author']['id']);}if(_0x318b07['size']!=_0x113825['size'])return!0x1;for(const _0x9bcc9 of _0x318b07)if(!_0x113825['has'](_0x9bcc9))return!0x1;return!0x0;}}class Ct extends _0xa897c8{static get['requires'](){return[At];}['afterInit'](){const _0xe25fe4=this['editor'];if(!_0xe25fe4['plugins']['has']('TableEditing'))return;const _0x51642c=_0xe25fe4['locale'],_0x33668=_0xe25fe4['plugins']['get']('TrackChangesEditing');_0x33668['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x33668['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x33668['registerBlockAttribute']('headingRows'),_0x33668['registerBlockAttribute']('headingColumns'),_0x33668['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x51642c,'FORMAT_HEADER_ROW')),_0x33668['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x51642c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x158f1f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41b96f=this['editor']['plugins']['get']('TableUtils'),_0x8a0468=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x51dc8c({showActiveMarker:_0x2be5bb=!0x0,setDataAttribute:_0x6f4b72=!0x0}={}){return(_0x57b57a,_0x36a996,_0x1d97c7)=>{const {type:_0x4cc48e,id:_0xedea0b}=_0x158f1f['_splitMarkerName'](_0x36a996['markerName']),_0x2f8db0=_0x158f1f['getSuggestion'](_0xedea0b),_0x499b72=_0x2f8db0['data'];if('formatBlock'!=_0x2f8db0['type']||!_0x499b72||'setTableColumnHeader'!=_0x499b72['commandName'])return;if(_0x36a996['item'])return void _0x57b57a['stop']();if(!_0x1d97c7['consumable']['consume'](_0x36a996['markerRange'],_0x57b57a['name']))return;const _0x24ac3e=_0x36a996['markerRange']['start']['nodeAfter'],_0x52833d=_0x36a996['markerRange']['end']['nodeBefore'],_0xde0bbf=_0x24ac3e['parent']['parent'],{column:_0x3a4afe}=_0x41b96f['getCellLocation'](_0x24ac3e),{column:_0xe69908}=_0x41b96f['getCellLocation'](_0x52833d);for(let _0x46cc89=_0x3a4afe;_0x46cc89<=_0xe69908;_0x46cc89++){const _0x533dab=_0x41b96f['createTableWalker'](_0xde0bbf,{'column':_0x46cc89,'includeAllSlots':!0x1});for(const _0x3ce211 of _0x533dab){const _0x52b1fe=_0x3ce211['cell'],_0x1f619b=_0x1d97c7['mapper']['toViewElement'](_0x52b1fe);_0x1d97c7['writer']['addClass']('ck-suggestion-marker-'+_0x4cc48e,_0x1f619b),_0x6f4b72&&_0x1d97c7['writer']['setAttribute']('data-suggestion',_0xedea0b,_0x1f619b),_0x1d97c7['mapper']['bindElementToMarker'](_0x1f619b,_0x36a996['markerName']),_0x2be5bb&&(_0x158f1f['activeMarkers']['includes'](_0x36a996['markerName'])?_0x1d97c7['writer']['addClass']('ck-suggestion-marker--active',_0x1f619b):_0x1d97c7['writer']['removeClass']('ck-suggestion-marker--active',_0x1f619b));}}};}_0x158f1f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x8a0468),_0x158f1f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x8a0468),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x51dc8c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x11b1b6,_0xc9cb85,_0x148714)=>{_0x148714['options']['showSuggestionHighlights']&&_0x51dc8c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x11b1b6,_0xc9cb85,_0x148714);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1c23da,_0x51be04,_0x13bdc4)=>{const {type:_0x4244d1,id:_0x4a9735}=_0x158f1f['_splitMarkerName'](_0x51be04['markerName']),_0x3483a7=_0x158f1f['getSuggestion'](_0x4a9735),_0x20d367=_0x3483a7['data'];if('formatBlock'!=_0x3483a7['type']||!_0x20d367||'setTableColumnHeader'!=_0x20d367['commandName'])return;const _0x3c152f=_0x13bdc4['mapper']['markerNameToElements'](_0x51be04['markerName']);if(_0x3c152f){for(const _0x30157b of _0x3c152f)_0x13bdc4['writer']['removeClass']('ck-suggestion-marker-'+_0x4244d1,_0x30157b),_0x13bdc4['writer']['removeClass']('ck-suggestion-marker--active',_0x30157b),_0x13bdc4['writer']['removeAttribute']('data-suggestion',_0x30157b),_0x13bdc4['mapper']['unbindElementFromMarkerName'](_0x30157b,_0x51be04['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2251bc=this['editor'],_0x42a8a9=_0x2251bc['locale'];function _0x21578a(_0x1198f5){return{'type':'format','content':o(_0x42a8a9,'*Format:*\x20%0',_0x1198f5)};}_0x2251bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44993a=>{if('formatBlock'!=_0x44993a['type'])return;const {data:_0x26ebf3}=_0x44993a;if(_0x26ebf3){if('setTableRowHeader'==_0x26ebf3['commandName']){const _0x34dd57=_0x26ebf3['commandParams'][0x0]['forceValue'];return _0x21578a(o(_0x42a8a9,_0x34dd57?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x26ebf3['commandName']){const _0x5d8add=_0x26ebf3['commandParams'][0x0]['forceValue'];return _0x21578a(o(_0x42a8a9,_0x5d8add?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xa897c8{['afterInit'](){const _0x285526=this['editor'],_0x5e35e3=_0x285526['locale'],_0x114fa5=_0x285526['plugins']['get']('TrackChangesEditing');function _0x499e8e(_0x4a5c13){return{'type':'format','content':''+o(_0x5e35e3,'*Set\x20table\x20type:*\x20%0',_0x4a5c13)};}_0x285526['plugins']['has']('TableLayout')&&(_0x114fa5['enableCommand']('insertTableLayout'),_0x114fa5['enableDefaultAttributesIntegration']('tableType'),_0x114fa5['registerBlockAttribute']('tableType'),_0x114fa5['descriptionFactory']['registerElementLabel'](_0x35f201=>_0x35f201['is']('element','table')&&'layout'===_0x35f201['getAttribute']('tableType'),_0x2d2cce=>o(_0x5e35e3,'ELEMENT_LAYOUT_TABLE',_0x2d2cce)),_0x114fa5['descriptionFactory']['registerDescriptionCallback'](_0x5e3aad=>{const {data:_0x1f7660}=_0x5e3aad;if(_0x1f7660&&'tableType'==_0x1f7660['key'])switch(_0x1f7660['newValue']){case'layout':return _0x499e8e(o(_0x5e35e3,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x499e8e(o(_0x5e35e3,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x5034b6=>[_0x5034b6,null]));class Nt extends _0xa897c8{static get['requires'](){return[At];}['afterInit'](){const _0xf89766=this['editor'];if(!_0xf89766['plugins']['has']('TableClipboard'))return;const _0x3fbff3=_0xf89766['plugins']['get']('TrackChangesEditing'),_0x500074=_0xf89766['plugins']['get']('TableUtils'),_0x382a39=_0xf89766['plugins']['get'](At),_0x30cd3b=_0xf89766['plugins']['get']('TableClipboard'),_0x1ee1f9=_0xf89766['plugins']['get']('TableSelection'),_0x29fbc7=_0xf89766['plugins']['get'](_0x2e6b2c);_0x382a39['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xf89766['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xf89766['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3d75d9=null,_0x1209e0=!0x1;_0x29fbc7['on']('contentInsertion',(_0x2e696b,_0x13cc93)=>{_0x1209e0='paste'===_0x13cc93['method'];}),_0xf89766['model']['on']('insertContent',(_0x4cbded,_0x2e9594)=>{if(!_0x1209e0&&null===_0x1ee1f9['getSelectedTableCells']())return;const [_0x10edb6,_0x27d875]=_0x2e9594,_0x3bd6ab=_0x2e9594[_0x2e9594['length']-0x1];_0x3bd6ab&&_0x3bd6ab['forceDefaultExecution']||_0x3fbff3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x243660,_0x39418b,_0x38111c,_0x3c4aec,_0x5aadbd){if(_0x39418b&&!_0x39418b['is']('documentSelection'))return!0x1;const _0x9b3008=_0x5aadbd['getTableIfOnlyTableInContent'](_0x243660,_0x38111c);if(!_0x9b3008||!Ue(_0x9b3008,void 0x0,_0x3c4aec))return!0x1;const _0x56cec3=_0x3c4aec['getSelectionAffectedTableCells'](_0x38111c['document']['selection']);if(!_0x56cec3['length'])return!0x1;const _0xde3975=_0x56cec3[0x0]['findAncestor']('table'),_0x5609c7=_0x3c4aec['getRowIndexes'](_0x56cec3),_0x136081=_0x3c4aec['getColumnIndexes'](_0x56cec3),_0x125eb2={'startRow':_0x5609c7['first'],'endRow':_0x5609c7['last'],'startColumn':_0x136081['first'],'endColumn':_0x136081['last']};return 0x1==_0x56cec3['length']&&(_0x125eb2['endRow']+=_0x3c4aec['getRows'](_0x9b3008)-0x1,_0x125eb2['endColumn']+=_0x3c4aec['getColumns'](_0x9b3008)-0x1),Ue(_0xde3975,_0x125eb2,_0x3c4aec);}(_0x10edb6,_0x27d875,_0xf89766['model'],_0x500074,_0x30cd3b)&&(_0x4cbded['stop'](),_0x3d75d9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xf89766['model']['change'](()=>{_0xf89766['model']['insertContent'](_0x2e9594[0x0],_0x2e9594[0x1],_0x2e9594[0x2],{'forceDefaultExecution':!0x0});const _0x4f1026=_0x4e9a0b(),{rowInsertionRanges:_0x53d57b,columnInsertionRanges:_0x2a6e96,insertionRanges:_0x3376a3,deletionRanges:_0x1ccecc,cells:_0x2687ee}=_0x3d75d9;_0x53d57b['length']&&_0x3fbff3['markMultiRangeInsertion'](_0x53d57b,'tablePasteRow',{'tablePasteChainId':_0x4f1026}),_0x2a6e96['length']&&_0x3fbff3['markMultiRangeInsertion'](_0x2a6e96,'tablePasteColumn',{'tablePasteChainId':_0x4f1026}),_0x3376a3['length']&&(_0x3fbff3['markMultiRangeInsertion'](_0x3376a3,'tablePaste',{'tablePasteChainId':_0x4f1026,'skipNestingCheck':!0x0}),_0x3376a3['forEach'](_0x580fef=>_0x580fef['detach']?.())),_0x1ccecc['length']&&(_0x3fbff3['markMultiRangeDeletion'](_0x1ccecc,'tablePaste',{'tablePasteChainId':_0x4f1026,'skipNestingCheck':!0x0}),_0x1ccecc['forEach'](_0x284f66=>_0x284f66['detach']?.()));const _0x4d9494=_0x3fbff3['markMultiRangeBlockFormat'](_0x2687ee['map'](({element:_0x2abe61})=>_0x2abe61),{'formatGroupId':_0x4e9a0b()},[],'tablePasteCell',{'tablePasteChainId':_0x4f1026});if(_0x4d9494){const _0x3d169e=_0x4d9494['getMarkers'](),_0x117d97=[];for(const {element:_0xae216d,attributes:_0x23317b}of _0x2687ee){if(!_0x23317b)continue;const _0x3eddd6=_0xf89766['model']['createRangeOn'](_0xae216d),_0x26f84a=_0x3d169e['find'](_0x3edb70=>_0x3edb70['getRange']()['isEqual'](_0x3eddd6));_0x26f84a&&_0x117d97['push']([_0x26f84a['name'],_0x23317b]);}_0x117d97['length']&&_0x4d9494['setAttribute']('markerAttributes',Object['fromEntries'](_0x117d97));}_0x3d75d9=null;}));},{'priority':_0x3efbf3['high']+0xa}),_0x29fbc7['on']('contentInsertion',()=>{_0x1209e0=!0x1;},{'priority':'lowest'}),_0xf89766['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x11a3e5,_0xbda10d)=>{const [_0x148e13,_0x475048,,_0xfd5699]=_0xbda10d;if(!_0x3d75d9)return;_0x11a3e5['stop']();const _0x2babe0=_0x148e13['cell'],_0x14c7e1=_0x475048,_0xa13176=Oe(_0x2babe0),_0x40572d=Oe(_0x14c7e1);_0x11a3e5['return']=_0x2babe0;let _0x521f69=null,_0x381572=null;if(_0x40572d||_0xa13176){if(_0xa13176&&!_0x40572d){_0xfd5699['remove'](_0x2babe0['getChild'](0x0));for(const _0xced4 of Array['from'](_0x14c7e1['getChildren']()))_0xfd5699['insert'](_0xced4,_0x2babe0,'end');const _0x1094ce=_0x3d75d9['rowInsertionIndexes']['includes'](_0x148e13['row']),_0x2e66bb=_0x3d75d9['columnInsertionIndexes']['includes'](_0x148e13['column']);_0x1094ce||_0x2e66bb||(_0x521f69=_0x1437b2['fromRange'](_0xfd5699['createRangeIn'](_0x2babe0)));}else _0x40572d&&!_0xa13176&&(_0x381572=_0xfd5699['createRangeIn'](_0x2babe0));}else{const _0x437966=_0xfd5699['createElement']('tableCellSuggestion'),_0x5b0d82=_0xfd5699['createElement']('tableCellSuggestion');_0xfd5699['wrap'](_0xfd5699['createRangeIn'](_0x2babe0),_0x5b0d82),_0xfd5699['insert'](_0x437966,_0x2babe0,0x0);for(const _0x41a6b8 of Array['from'](_0x14c7e1['getChildren']()))_0xfd5699['insert'](_0x41a6b8,_0x437966,'end');_0x521f69=_0x1437b2['fromRange'](_0xfd5699['createRangeOn'](_0x437966)),_0x381572=_0x1437b2['fromRange'](_0xfd5699['createRangeOn'](_0x5b0d82));}const _0x3d23d0=Array['from'](_0x14c7e1['getAttributes']())['filter'](([_0x9f6d5c])=>Be['includes'](_0x9f6d5c));_0x3d75d9['cells']['push']({'element':_0x2babe0,'attributes':_0x3d23d0['length']?Object['fromEntries'](_0x3d23d0):null}),_0x521f69&&_0x3d75d9['insertionRanges']['push'](_0x521f69),_0x381572&&_0x3d75d9['deletionRanges']['push'](_0x381572);},{'priority':'high'}),_0x500074['on']('insertColumns',(_0x1ee996,_0x229b76)=>{const [_0x54c83f,_0x1c83c9={}]=_0x229b76;if(!_0x3d75d9)return;const _0x23603a=_0x1c83c9['at']||0x0,_0x3bb112=_0x1c83c9['columns']||0x1;_0x3d75d9['columnInsertionIndexes']=new Array(_0x3bb112)['fill'](_0x23603a)['map']((_0x23d9e7,_0x4056ce)=>_0x23d9e7+_0x4056ce);for(const {cell:_0x21290e}of _0x500074['createTableWalker'](_0x54c83f,{'startColumn':_0x23603a,'endColumn':_0x23603a+_0x3bb112-0x1}))_0x3d75d9['columnInsertionRanges']['push'](_0xf89766['model']['createRangeOn'](_0x21290e));},{'priority':'low'}),_0x500074['on']('insertRows',(_0x527d67,_0x6e871d)=>{const [_0x27da1a,_0x5840f4={}]=_0x6e871d;if(!_0x3d75d9)return;const _0x4bca14=_0x5840f4['at']||0x0,_0x561c3d=_0x5840f4['rows']||0x1;_0x3d75d9['rowInsertionIndexes']=new Array(_0x561c3d)['fill'](_0x4bca14)['map']((_0x3cc13b,_0x437d40)=>_0x3cc13b+_0x437d40);for(const {cell:_0x345861}of _0x500074['createTableWalker'](_0x27da1a,{'startRow':_0x4bca14,'endRow':_0x4bca14+_0x561c3d-0x1}))_0x3d75d9['rowInsertionRanges']['push'](_0xf89766['model']['createRangeOn'](_0x345861));},{'priority':'low'}),_0x3fbff3['descriptionFactory']['registerDescriptionCallback'](_0x3793a5=>{if(_0x3793a5['subType']&&_0x3793a5['subType']['startsWith']('tablePaste'))return _0x3793a5['previous']?{}:{'type':'insertion','content':o(_0xf89766['locale'],'*Replace\x20table\x20cells*')};});const _0x21cc32=()=>!0x1;for(const _0x456b3f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3fbff3['_suggestionFactory']['registerCustomCallback']('insertion',_0x456b3f,'join',_0x21cc32),_0x3fbff3['_suggestionFactory']['registerCustomCallback']('deletion',_0x456b3f,'join',_0x21cc32),_0x3fbff3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x456b3f,'join',_0x21cc32);_0x3fbff3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x21cc32),_0x3fbff3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x34ddb3,_0x3443d7,_0x21949)=>{const _0x2b98cf=_0x34ddb3['map'](_0x18eac4=>_0x18eac4['getContainedElement']())['filter'](_0x39188e=>_0x39188e),_0x34e278=new Map(_0x2b98cf['map'](_0x176801=>[_0x176801,null]));if(_0x3d75d9){for(const {element:_0x5a8961,attributes:_0xbf6b22}of _0x3d75d9['cells'])_0xbf6b22&&_0x34e278['set'](_0x5a8961,_0xbf6b22);}else{if(_0x21949&&_0x21949['markerAttributes'])for(const [_0x401f22,_0x197884]of Object['entries'](_0x21949['markerAttributes'])){const _0x25f6b5=_0xf89766['model']['markers']['get'](_0x401f22),_0xbf2237=_0x25f6b5?_0x25f6b5['getRange']()['getContainedElement']():null;_0xbf2237&&_0x34e278['set'](_0xbf2237,_0x197884);}}_0xf89766['model']['change'](_0x3fb730=>{for(const [_0x423bc9,_0x2c6680]of _0x34e278)_0x3fb730['setAttributes']({...xe,..._0x2c6680},_0x423bc9);});});const _0xc07bf4=(_0x1dff96,_0x593c68)=>{_0x3fbff3['_suggestionFactory']['registerCustomCallback'](_0x1dff96,'tablePaste',_0x593c68,(_0x511173,_0x994d37,_0x30d8e3)=>{_0xf89766['model']['change'](_0x2e315a=>{const _0x5745ab=[];for(const _0x5af225 of _0x511173){const _0xd91b50=_0x5af225['start']['nodeAfter'];_0xd91b50['is']('element','tableCellSuggestion')&&_0x5745ab['push'](_0xd91b50);}_0x3fbff3['_suggestionFactory']['getSuggestionCallback'](_0x1dff96,null,_0x593c68)(_0x511173,_0x994d37,_0x30d8e3);for(const _0x5e474c of _0x5745ab)'$graveyard'!=_0x5e474c['root']['rootName']&&_0x2e315a['unwrap'](_0x5e474c);});});};_0xc07bf4('insertion','accept'),_0xc07bf4('insertion','discard'),_0xc07bf4('deletion','accept'),_0xc07bf4('deletion','discard'),_0x3fbff3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3f721b=>{const _0x47f26b=_0x3f721b['map'](_0x35fdc3=>_0x35fdc3['getContainedElement']()),_0xaf8704=_0x47f26b[0x0]['findAncestor']('table'),{minRow:_0x58d127,maxRow:_0x52f3d4}=_0x382a39['_getCoordsForCells'](_0x47f26b);_0x500074['removeRows'](_0xaf8704,{'at':_0x58d127,'rows':_0x52f3d4-_0x58d127+0x1});}),_0x3fbff3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x59a150=>{const _0x53a5e4=_0x59a150['map'](_0x28c1ac=>_0x28c1ac['getContainedElement']()),_0x47d837=_0x53a5e4[0x0]['findAncestor']('table'),{minColumn:_0x4aaae3,maxColumn:_0x265873}=_0x382a39['_getCoordsForCells'](_0x53a5e4);_0x500074['removeColumns'](_0x47d837,{'at':_0x4aaae3,'columns':_0x265873-_0x4aaae3+0x1});});const _0x2affe5=(_0x291048,_0x8d17fe)=>{if(!_0x8d17fe['subType']||!_0x8d17fe['subType']['startsWith']('tablePaste'))return;const _0x39b4b8=_0x8d17fe['attributes']['tablePasteChainId'],_0x2ec754=_0x3fbff3['getSuggestions']()['filter'](_0x3715ef=>_0x3715ef['isInContent']&&_0x3715ef['attributes']&&_0x3715ef['attributes']['tablePasteChainId']==_0x39b4b8);_0x2ec754['length']&&_0x8d17fe['getAllAdjacentSuggestions']()['length']!=_0x2ec754['length']&&_0x2ec754['reduce']((_0x47257f,_0x2d0b3b)=>(_0x47257f['next']=_0x2d0b3b,_0x2d0b3b['previous']=_0x47257f,_0x2d0b3b));};function _0x36520d(_0x39129d,_0x41237c=!0x0){const {id:_0x1e6cac,authorId:_0x1fd3fe}=_0x3fbff3['_splitMarkerName'](_0x39129d['markerName']),_0x7642ca=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3974d5=_0x3fbff3['activeMarkers']['includes'](_0x39129d['markerName']);return _0x3974d5&&_0x7642ca['push']('ck-suggestion-marker--active'),{'classes':_0x7642ca,'attributes':{'data-suggestion':_0x1e6cac,'data-author-id':_0x1fd3fe},'priority':_0x3974d5&&_0x41237c?0xbc2:0xbb8};}_0x3fbff3['on']('suggestionLoaded',_0x2affe5,{'priority':'high'}),_0x3fbff3['on']('suggestionUnloaded',_0x2affe5,{'priority':'high'}),_0xf89766['model']['document']['registerPostFixer'](()=>{let _0x3e26ad=!0x1;const _0x4d3186=Array['from'](_0xf89766['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x362d28,data:_0x10dedf}of _0x4d3186){const {group:_0x4dde6e,type:_0x144fbf,id:_0x295f84}=_0x3fbff3['_splitMarkerName'](_0x362d28);if('suggestion'!=_0x4dde6e||'deletion'!=_0x144fbf||_0x10dedf['oldRange'])continue;if(!_0x3fbff3['hasSuggestion'](_0x295f84))continue;const _0x4c7c9f=_0x3fbff3['getSuggestion'](_0x295f84)['getRanges'](),_0x2f73f2=_0xf89766['plugins']['get']('Users')['me'];for(const _0x2200b9 of _0x3fbff3['getSuggestions']()){if(!_0x2200b9['isInContent']||_0x2200b9['author']!=_0x2f73f2)continue;if('formatBlock'!=_0x2200b9['type']||'tablePasteCell'!=_0x2200b9['subType'])continue;if(_0x2200b9['getRanges']()['every'](_0x498aeb=>_0x4c7c9f['some'](_0x4eaf1f=>_0x4eaf1f['containsRange'](_0x498aeb,!0x0)))){for(const _0x35232a of _0x2200b9['getAllAdjacentSuggestions']())_0x35232a['isInContent']&&(_0x35232a['discard'](),_0x3e26ad=!0x0);}}}return _0x3e26ad;}),_0xf89766['model']['document']['registerPostFixer'](_0x2e2ed3=>{const _0x4173df=_0xf89766['commands']['get']('redo');if(!_0x4173df||!_0x4173df['_createdBatches']['has'](_0x2e2ed3['batch']))return!0x1;let _0x30c768=!0x1;const _0x45e0cf=_0xf89766['plugins']['get']('Users')['me'],_0x40b6d4=_0xf89766['model']['document']['differ']['getChanges'](),_0x12dacf=Array['from'](_0xf89766['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x32d25e,data:_0x304008})=>{const {group:_0xada155,subType:_0x1b5f93,authorId:_0x4e4675}=_0x3fbff3['_splitMarkerName'](_0x32d25e);return'suggestion'==_0xada155&&'tablePaste'==_0x1b5f93&&_0x4e4675==_0x45e0cf['id']&&!_0x304008['oldRange'];});for(const _0x505e01 of _0x40b6d4){if('insert'!=_0x505e01['type']||'tableCellSuggestion'!=_0x505e01['name']||0x1!=_0x505e01['length'])continue;const _0x352f6d=_0x2e2ed3['createRange'](_0x505e01['position'],_0x505e01['position']['getShiftedBy'](0x1));if(!_0x12dacf['find'](({data:_0x1776ad})=>_0x1776ad['newRange']['isEqual'](_0x352f6d))){for(const {name:_0x2127bc,data:_0x4f8302}of _0x12dacf)if(_0x352f6d['containsRange'](_0x4f8302['newRange'])){_0x2e2ed3['updateMarker'](_0x2127bc,{'range':_0x352f6d}),_0x30c768=!0x0;break;}}}return _0x30c768;}),_0xf89766['model']['document']['registerPostFixer'](_0x427060=>{let _0x84fb6d=!0x1;const _0x23a05f=_0xf89766['plugins']['get']('Users')['me'],_0x5ecb5a=_0x3fbff3['getSuggestions']()['filter'](_0x3758e9=>_0x3758e9['isInContent']&&_0x3758e9['author']==_0x23a05f),_0x4eae1d=new Set(),_0xdc292d=new Set();for(const _0x4ef63f of _0x5ecb5a)if('tablePaste'==_0x4ef63f['subType'])for(const _0x52366d of _0x4ef63f['getMarkers']()){const _0x1e7a8a=_0x52366d['getRange']()['getContainedElement']();if(_0x1e7a8a){if(_0x1e7a8a['is']('element','tableCellSuggestion')&&Oe(_0x1e7a8a)){_0x4ef63f['removeMarker'](_0x52366d['name']),_0x4eae1d['add'](_0x1e7a8a),_0x84fb6d=!0x0;const _0x22f727=_0x1e7a8a['nextSibling'],_0x1b5b54=_0x1e7a8a['previousSibling'],_0x3e7191=_0x22f727&&_0x22f727['is']('element','tableCellSuggestion'),_0x5c362b=_0x1b5b54&&_0x1b5b54['is']('element','tableCellSuggestion');_0x3e7191&&!_0x4eae1d['has'](_0x22f727)&&_0xdc292d['add'](_0x22f727),_0x5c362b&&!_0x4eae1d['has'](_0x1b5b54)&&_0xdc292d['add'](_0x1b5b54);}else _0x1e7a8a['is']('element','paragraph')&&_0x1e7a8a['isEmpty']&&(_0x4ef63f['removeMarker'](_0x52366d['name']),_0x84fb6d=!0x0);}}else{if('tablePasteCell'==_0x4ef63f['subType']){if(!_0x4ef63f['attributes']||!_0x4ef63f['attributes']['tablePasteChainId'])continue;const _0x48c45b=_0x4ef63f['attributes']['markerAttributes'];if(_0x48c45b&&Object['keys'](_0x48c45b)['length'])continue;const _0x5535a2=_0x4ef63f['attributes']['tablePasteChainId'];let _0x23a790=!0x0,_0x4f9edc=!0x0;for(const _0x346773 of _0x5ecb5a)if(_0x346773['subType']&&_0x346773['subType']['startsWith']('tablePaste')){if(!_0x346773['attributes']['tablePasteChainId']){_0x4f9edc=!0x1;break;}if(_0x346773['id']!=_0x4ef63f['id']&&_0x346773['attributes']['tablePasteChainId']==_0x5535a2){_0x23a790=!0x1;break;}}_0x4f9edc&&_0x23a790&&(_0x4ef63f['removeMarkers'](),_0x84fb6d=!0x0);}}for(const _0x26dfb5 of _0x4eae1d)_0x427060['remove'](_0x26dfb5);for(const _0x287ab1 of _0xdc292d)_0x427060['unwrap'](_0x287ab1);return _0x84fb6d;}),_0xf89766['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x494b0e=>_0x36520d(_0x494b0e),'converterPriority':'high'}),_0xf89766['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2a7842,_0x3c1574)=>_0x3c1574['options']['showSuggestionHighlights']?_0x36520d(_0x2a7842,!0x1):null,'converterPriority':'high'});const _0x4bb4e2=_0xf89766['editing']['view'];this['listenTo'](_0x4bb4e2['document'],'clipboardOutput',(_0x3d0080,_0x2c266f)=>{const _0x1d5ac4=[];for(const _0x19271b of _0x4bb4e2['createRangeIn'](_0x2c266f['content'])['getItems']())_0x19271b['is']('element','suggestion-td')&&_0x1d5ac4['push'](_0x19271b);_0x4bb4e2['change'](_0x1fcae0=>{for(const _0x1348de of _0x1d5ac4)_0x1fcae0['move'](_0x1fcae0['createRangeIn'](_0x1348de),_0x1fcae0['createPositionBefore'](_0x1348de)),_0x1fcae0['remove'](_0x1348de);});});}}function Oe(_0x9bc1c6){if(_0x9bc1c6['isEmpty'])return!0x0;const _0xb0622d=_0x9bc1c6['getChild'](0x0);return _0xb0622d['is']('element','paragraph')&&_0xb0622d['isEmpty'];}function Ue(_0x1a4daf,_0x2111a1={},_0xb9cf0a){for(const {isAnchor:_0x26a576,cellHeight:_0x113aca,cellWidth:_0x4e4f75}of _0xb9cf0a['createTableWalker'](_0x1a4daf,{'includeAllSlots':!0x0,..._0x2111a1}))if(!_0x26a576||0x1!=_0x113aca||0x1!=_0x4e4f75)return!0x1;return!0x0;}class Dt extends _0xa897c8{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x372535=this['editor']['plugins']['get']('TrackChangesEditing');_0x372535['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x372535['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x372535['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x372535['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x372535['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x372535['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3e0f26,_0x5f5c11){const _0x33a582=this['editor']['plugins']['get']('TrackChangesEditing'),_0x71e20f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x36f920=_0x5f5c11['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x42a688=_0x71e20f['getColumnGroupElement'](_0x36f920);let _0x3b2e41=_0x42a688?_0x71e20f['getTableColumnsWidths'](_0x42a688):null,_0xa8619e=_0x36f920['getAttribute']('tableWidth')||null;const _0x5e1edb=_0x5f5c11['tableWidth']||_0xa8619e,_0x4f381e=_0x5f5c11['columnWidths']||_0x3b2e41,_0x1714ba=this['editor']['plugins']['get']('Users')['me'];for(const _0x3be8cc of _0x33a582['getSuggestions']()){const _0x2393b0=_0x3be8cc['getContainedElement']();if('resizeTable'===_0x3be8cc['subType']&&_0x2393b0===_0x36f920){_0x3be8cc['author']!==_0x1714ba&&_0x3be8cc['discard']();const _0xa442ff=_0x3be8cc['data']['commandParams'];_0xa8619e=_0xa442ff[0x0]['tableWidth'],_0x3b2e41=_0xa442ff[0x0]['columnWidths'];break;}}_0x3e0f26({'table':_0x36f920,'tableWidth':_0x5e1edb,'columnWidths':_0x4f381e}),_0x33a582['markBlockFormat'](_0x36f920,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xa8619e,'columnWidths':_0x3b2e41}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3dad3b){if('formatBlock'!=_0x3dad3b['type']&&'formatInline'!=_0x3dad3b['type'])return;const {data:_0x3d2d4e}=_0x3dad3b;if(_0x3d2d4e&&'resizeTable'===_0x3d2d4e['formatGroupId']){const _0xc60eb6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xc60eb6)};}}}class $t extends _0xa897c8{['afterInit'](){const _0x496174=this['editor'];_0x496174['plugins']['has']('Template')&&_0x496174['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xa897c8{['afterInit'](){const _0x167bdc=this['editor'];if(!_0x167bdc['commands']['get']('insertTableOfContents'))return;_0x167bdc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x471f32=_0x167bdc['plugins']['get']('TrackChangesEditing'),_0x231faf=_0x167bdc['locale'];_0x471f32['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4d0cb7=>o(_0x231faf,'ELEMENT_TABLE_OF_CONTENTS',_0x4d0cb7));}}class Bt extends _0xa897c8{['afterInit'](){const _0x216b3c=this['editor'];if(!_0x216b3c['plugins']['has']('Title'))return;const _0x22de8e=_0x216b3c['plugins']['get']('TrackChangesEditing');_0x22de8e['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x216b3c['locale'],'ELEMENT_TITLE')),_0x216b3c['model']['document']['registerPostFixer'](_0x36d793=>{let _0x10799b=!0x1;const _0x56339c=Array['from'](_0x216b3c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x424029,data:_0x551c79}of _0x56339c){const {group:_0x4fac94}=_0x22de8e['_splitMarkerName'](_0x424029);if('suggestion'!==_0x4fac94||!_0x551c79['newRange'])continue;const _0x55eb78=_0x551c79['newRange'],_0x2e897e=_0x55eb78['end']['nodeBefore'];if(!_0x2e897e||!_0x2e897e['is']('element','title-content'))continue;if(!_0x55eb78['start']['isTouching'](_0x55eb78['end']))continue;const _0x24ff03=_0x216b3c['model']['schema']['getNearestSelectionRange'](_0x55eb78['end'],'forward');if(_0x24ff03&&_0x24ff03['isCollapsed']){const _0x3143f5=_0x36d793['createRange'](_0x55eb78['start'],_0x24ff03['start']);_0x3143f5['isEqual'](_0x55eb78)||(_0x36d793['updateMarker'](_0x424029,{'range':_0x3143f5}),_0x10799b=!0x0);}_0x10799b||(_0x36d793['removeMarker'](_0x424029),_0x10799b=!0x0);}return _0x10799b;});}}class Tt extends _0xa897c8{['afterInit'](){const _0x41cf91=this['editor'],_0x5ac84b=_0x41cf91['plugins']['get']('TrackChangesEditing');_0x41cf91['plugins']['has']('Uploadcare')&&(_0x5ac84b['enableCommand']('uploadcare'),_0x41cf91['plugins']['has']('UploadcareImageEdit')&&(_0x5ac84b['enableCommand']('uploadcareImageEdit'),_0x5ac84b['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5ac84b['registerBlockAttribute']('uploadcareImageId'),_0x5ac84b['descriptionFactory']['registerDescriptionCallback'](_0x3e7307=>{if('attribute'!=_0x3e7307['type'])return;const {data:_0x2baa32}=_0x3e7307;return _0x2baa32&&'uploadcareImageId'==_0x2baa32['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xa897c8{['afterInit'](){const _0x24b060=this['editor'],_0xf1a9fb=_0x24b060['plugins']['get']('TrackChangesEditing');_0x24b060['plugins']['has']('UndoEditing')&&(_0xf1a9fb['enableCommand']('undo'),_0xf1a9fb['enableCommand']('redo'));}}class Ot extends _0xa897c8{static get['requires'](){return[At];}['afterInit'](){const _0x16d2df=this['editor'];if(!_0x16d2df['plugins']['has']('TableCaptionEditing'))return;_0x16d2df['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xa897c8{['tableProperties'];['tableCellProperties'];constructor(_0x3f6546){super(_0x3f6546),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 _0x35346d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5e510e of this['tableProperties'])_0x35346d['enableCommand'](_0x5e510e,(_0x129190,_0x58745b)=>{const _0x3ae70f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5e510e,[_0x3ae70f],this['tableProperties'],'tableProperties',_0x129190,_0x58745b);});_0x35346d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x35346d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x35346d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5ea527,_0x119761)=>this['handleDiscardAction'](this['tableProperties'],_0x5ea527,_0x119761)),_0x35346d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2edb1a of this['tableCellProperties'])_0x35346d['enableCommand'](_0x2edb1a,(_0x319b57,_0x4eeaf3)=>{const _0x5bcc4d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2edb1a,_0x5bcc4d,this['tableCellProperties'],'tableCellProperties',_0x319b57,_0x4eeaf3);});_0x35346d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x35346d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x35346d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x367dc7,_0x1f22d5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x367dc7,_0x1f22d5)),_0x35346d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x35346d['descriptionFactory']['registerDescriptionCallback'](_0x3b9c82=>this['handleSuggestionDescription'](_0x3b9c82)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x414710,_0x1f9e2d,_0x469a2b,_0x425119,_0x362df8,_0x3898a4){const _0x44eea2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3898a4['batch'],()=>{for(const _0x4f8be1 of _0x1f9e2d){if(this['_getSuggestion'](_0x4f8be1,_0x425119))_0x362df8(_0x3898a4);else{const _0x35cc28={};for(const _0x32112b of _0x469a2b){const _0x281e51=_0x4f8be1['getAttribute'](_0x32112b);void 0x0!==_0x281e51&&(_0x35cc28[_0x32112b]=_0x281e51);}_0x362df8(_0x3898a4),_0x44eea2['markBlockFormat'](_0x4f8be1,{'commandParams':[_0x35cc28]},[],_0x425119);}}});}['handleDiscardAction'](_0x4a3c2f,_0xf3882e,_0x79582b){const _0x1e1815=_0xf3882e[0x0]['start']['nodeAfter'],_0x2215a8=_0x79582b['commandParams'][0x0];this['editor']['model']['change'](_0x3a29cd=>{for(const _0x14c1c2 of _0x4a3c2f)void 0x0!==_0x2215a8[_0x14c1c2]?_0x3a29cd['setAttribute'](_0x14c1c2,_0x2215a8[_0x14c1c2],_0x1e1815):_0x3a29cd['removeAttribute'](_0x14c1c2,_0x1e1815);});}['handleSuggestionDescription'](_0x40b678){if(_0x40b678['data'])switch(_0x40b678['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'](_0x196cf3,_0x4e0868){const _0xaa4483=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5ada89 of _0xaa4483['getSuggestions']({'skipNotAttached':!0x0})){const _0x3f6bef=_0x5ada89['getContainedElement']();if(_0x5ada89['subType']===_0x4e0868&&_0x3f6bef===_0x196cf3)return _0x5ada89;}return null;}['_registerTablePropertiesAttributes'](){const _0x4e245e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3eeedc=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x444e3e of _0x3eeedc){const _0x24e35d=_0x444e3e['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4e245e['registerBlockAttribute'](_0x444e3e),_0x4e245e['descriptionFactory']['registerAttributeLabel'](_0x444e3e,o(this['editor']['locale'],'FORMAT_'+_0x24e35d));}}}class Rt extends _0xa897c8{['afterInit'](){const _0x2c83b4=this['editor'];if(!_0x2c83b4['plugins']['has']('LineHeight'))return;const _0x5c84ad=_0x2c83b4['plugins']['get']('TrackChangesEditing'),_0x4c8d31=_0x2c83b4['locale'];_0x5c84ad['enableDefaultAttributesIntegration']('lineHeight'),_0x5c84ad['registerBlockAttribute']('lineHeight'),_0x5c84ad['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x4c8d31,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xa897c8{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x5e8d65,_0x117ef9,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(_0x4c0d07){super(_0x4c0d07),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x49d00d,_0x3cd5ca,_0x2f3efe,_0x11e676)=>{this['_model']['change'](()=>{for(const _0x307b6a of[..._0x11e676,..._0x2f3efe])this['_model']['markers']['has'](_0x307b6a)&&_0x4c0d07['editing']['reconvertMarker'](_0x307b6a);});}),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']=_0x4c0d07['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(),_0x4c0d07['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4c0d07['config']['get']('trackChanges.trackFormatChanges'),_0x4c0d07['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4c0d07['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x4c0d07,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1d5c44=this['editor'],_0x652ef1=(_0x591e29,_0x38b3de)=>{if('attribute'!=_0x591e29)return'ck-suggestion-marker-'+_0x591e29;const _0x50b0ec=_0x38b3de['split']('|')[0x0];return this['_isBlockAttribute'](_0x50b0ec)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1d5c44['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xdb4fe9=>{const {id:_0x423c46,authorId:_0x22e9c0,type:_0x518bbe,subType:_0x27cf90}=this['_splitMarkerName'](_0xdb4fe9['markerName']),_0x140c8a=['ck-suggestion-marker',_0x652ef1(_0x518bbe,_0x27cf90)];let _0x1b1bc5=0xbb8;return this['activeMarkers']['includes'](_0xdb4fe9['markerName'])&&(_0x140c8a['push']('ck-suggestion-marker--active'),_0x1b1bc5=0xbc2),'deletion'==_0x518bbe&&(_0x1b1bc5+=0x5),{'classes':_0x140c8a,'attributes':{'data-suggestion':_0x423c46,'data-author-id':_0x22e9c0},'priority':_0x1b1bc5};}}),_0x1d5c44['conversion']['for']('dataDowncast')['add'](_0x5ae73a=>{_0x5ae73a['on']('addMarker:suggestion',(_0x282c99,_0x33afb9,_0xf7fcf7)=>{if(!_0xf7fcf7['options']['showSuggestionHighlights'])return;const _0x260b71=_0x33afb9['item'];if(!_0x260b71)return;const _0x490e1c=_0xf7fcf7['mapper']['toViewElement'](_0x260b71);_0x1d5c44['model']['schema']['isObject'](_0x260b71)&&_0x490e1c&&!_0x490e1c['getCustomProperty']('widget')&&_0x490e1c['is']('containerElement')&&_0x284265(_0x490e1c,_0xf7fcf7['writer']);},{'priority':'high'});}),_0x1d5c44['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4d498f,_0x4c08fb)=>{if(!_0x4c08fb['options']['showSuggestionHighlights'])return null;const {id:_0x2d3106,authorId:_0x2058cd,type:_0x57316f,subType:_0x58a86c}=this['_splitMarkerName'](_0x4d498f['markerName']);return{'classes':['ck-suggestion-marker',_0x652ef1(_0x57316f,_0x58a86c)],'priority':0xbb8,'attributes':{'data-suggestion':_0x2d3106,'data-author-id':_0x2058cd}};}});const _0x3c1d94=({showActiveMarkers:_0x3e57b6=!0x0,isAttributeSuggestion:_0x160c7d=!0x1}={})=>(_0x1a3919,_0x292067,_0x119fc6)=>{if(!_0x292067['item'])return;const {id:_0x307d69,authorId:_0x4cdd08}=this['_splitMarkerName'](_0x292067['markerName']);if(_0x160c7d){const _0x5d4fc5=this['_suggestions']['get'](_0x307d69),_0x1d1cf4=this['_getAttributeKey'](_0x5d4fc5);if(!this['_isBlockAttribute'](_0x1d1cf4))return;}if(_0x292067['item']['is']('selection'))return void _0x119fc6['consumable']['consume'](_0x292067['item'],_0x1a3919['name']);const _0x5be1d5=_0x119fc6['mapper']['toViewElement'](_0x292067['item']);if(_0x292067['item']['is']('element')&&_0x1d5c44['model']['schema']['isBlock'](_0x292067['item'])&&!_0x5be1d5['getCustomProperty']('addHighlight')){_0x119fc6['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5be1d5),_0x119fc6['writer']['setAttribute']('data-suggestion',_0x307d69,_0x5be1d5),_0x119fc6['writer']['setAttribute']('data-author-id',_0x4cdd08,_0x5be1d5),_0x119fc6['mapper']['bindElementToMarker'](_0x5be1d5,_0x292067['markerName']),_0x3e57b6&&(this['activeMarkers']['includes'](_0x292067['markerName'])?_0x119fc6['writer']['addClass']('ck-suggestion-marker--active',_0x5be1d5):_0x119fc6['writer']['removeClass']('ck-suggestion-marker--active',_0x5be1d5));for(const _0x1f3ed0 of _0x1d5c44['model']['createRangeIn'](_0x292067['item'])['getItems']())_0x119fc6['consumable']['consume'](_0x1f3ed0,_0x1a3919['name']);_0x119fc6['consumable']['consume'](_0x292067['item'],_0x1a3919['name']);}};_0x1d5c44['conversion']['for']('dataDowncast')['add'](_0x343938=>{_0x343938['on']('addMarker:suggestion:formatBlock',(_0x2cd750,_0x368cbe,_0x2d7c0a)=>{_0x2d7c0a['options']['showSuggestionHighlights']&&_0x3c1d94({'showActiveMarkers':!0x1})(_0x2cd750,_0x368cbe,_0x2d7c0a);},{'priority':'highest'});}),_0x1d5c44['conversion']['for']('dataDowncast')['add'](_0x1b4c30=>{_0x1b4c30['on']('addMarker:suggestion:attribute',(_0x27e4b3,_0x295ec0,_0x1256be)=>{_0x1256be['options']['showSuggestionHighlights']&&_0x3c1d94({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x27e4b3,_0x295ec0,_0x1256be);},{'priority':'highest'});}),_0x1d5c44['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x27fa2d,_0x1b3f02)=>{if(_0x1b3f02['options']['showSuggestionHighlights']){const {id:_0x4cfc7c,authorId:_0x3d9b27}=this['_splitMarkerName'](_0x27fa2d);return _0x27fa2d['includes'](':split')||_0x27fa2d['includes'](':merge')?{'group':'suggestion','name':_0x27fa2d['substr'](0xb),'attributes':{'data-suggestion':_0x4cfc7c,'data-author-id':_0x3d9b27}}:null;}return{'group':'suggestion','name':_0x27fa2d['substr'](0xb)};}}),_0x1d5c44['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xcd776a,{writer:_0x151bd0})=>{let _0x1f34ef='suggestion:'+_0xcd776a['getAttribute']('suggestion-type')+':'+_0xcd776a['getAttribute']('id');return _0xcd776a['getAttribute']('marker-count')&&(_0x1f34ef+=':'+_0xcd776a['getAttribute']('marker-count')),_0x151bd0['createElement']('$marker',{'data-name':_0x1f34ef});}}),_0x1d5c44['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1d5c44['conversion']['for']('editingDowncast')['add'](_0x385b5b=>{_0x385b5b['on']('addMarker:suggestion:formatBlock',_0x3c1d94(),{'priority':'high'});}),_0x1d5c44['conversion']['for']('editingDowncast')['add'](_0x1be9e6=>{_0x1be9e6['on']('addMarker:suggestion:attribute',_0x3c1d94({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1d5c44['conversion']['for']('editingDowncast')['add'](_0x569e11=>{_0x569e11['on']('removeMarker:suggestion:formatBlock',(_0x24c3de,_0x1276eb,_0x52c85e)=>{const _0x17e1dd=_0x52c85e['mapper']['markerNameToElements'](_0x1276eb['markerName']);if(_0x17e1dd){for(const _0x26f02d of _0x17e1dd)_0x26f02d['getCustomProperty']('addHighlight')||(_0x52c85e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x26f02d),_0x52c85e['writer']['removeAttribute']('data-suggestion',_0x26f02d),_0x52c85e['writer']['removeAttribute']('data-author-id',_0x26f02d),_0x52c85e['mapper']['unbindElementFromMarkerName'](_0x26f02d,_0x1276eb['markerName']));}},{'priority':'high'});}),_0x1d5c44['conversion']['for']('editingDowncast')['add'](_0x209081=>{_0x209081['on']('removeMarker:suggestion:attribute',(_0x3ce17e,_0x4c6af6,_0x2f5a99)=>{const _0x5ba750=_0x2f5a99['mapper']['markerNameToElements'](_0x4c6af6['markerName']);if(!_0x5ba750)return;const {id:_0x30564c}=this['_splitMarkerName'](_0x4c6af6['markerName']),_0x3d96c3=this['_suggestions']['get'](_0x30564c),_0x381e09=this['_getAttributeKey'](_0x3d96c3);if(this['_isBlockAttribute'](_0x381e09)){for(const _0x5df1b5 of _0x5ba750)_0x5df1b5['getCustomProperty']('addHighlight')||(_0x2f5a99['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5df1b5),_0x2f5a99['writer']['removeAttribute']('data-suggestion',_0x5df1b5),_0x2f5a99['writer']['removeAttribute']('data-author-id',_0x5df1b5),_0x2f5a99['mapper']['unbindElementFromMarkerName'](_0x5df1b5,_0x4c6af6['markerName']));}},{'priority':'high'});}),_0x1d5c44['model']['document']['registerPostFixer'](_0x5a2b91=>{let _0x5698e9=!0x1;const _0x4569bc=Array['from'](_0x1d5c44['model']['document']['differ']['getChangedMarkers']()),_0x33f715=new Set();for(const {name:_0xff13ab,data:_0x1e8e9a}of _0x4569bc){const {group:_0x29dfd3,type:_0x53da26,subType:_0x3f1037,id:_0x53d130}=this['_splitMarkerName'](_0xff13ab);if('suggestion'!==_0x29dfd3)continue;const _0x49cc78=_0x3f1037?'suggestion:'+_0x53da26+':'+_0x3f1037+':'+_0x53d130:'suggestion:'+_0x53da26+':'+_0x53d130,_0x258ec7=_0x1d5c44['model']['markers']['getMarkersGroup'](_0x49cc78),_0x33a95e=_0x1d5c44['model']['markers']['get'](_0xff13ab),_0x58c81e=this['_suggestions']['get'](_0x53d130);if(null!=_0x1e8e9a['newRange']){'formatInline'==_0x53da26&&(_0x5698e9=_0x5698e9||Gt(_0x1e8e9a['newRange'],_0xff13ab,_0x5a2b91,_0x1d5c44['model']['schema']));const _0x11d2c5='attribute'==_0x53da26&&this['_isBlockAttribute'](_0x3f1037['split']('|')[0x0]),_0x6f1abd='attribute'==_0x53da26&&this['_isInlineAttribute'](_0x3f1037['split']('|')[0x0]);if(_0x1e8e9a['newRange']['isCollapsed']||'$graveyard'==_0x1e8e9a['newRange']['root']['rootName']||'formatBlock'==_0x53da26&&!Jt(_0x1e8e9a['newRange'])||_0x11d2c5&&!Jt(_0x1e8e9a['newRange'])||_0x6f1abd&&Kt(_0x1e8e9a['newRange'])||'deletion'==_0x53da26&&Kt(_0x1e8e9a['newRange'])||_0x33a95e&&Ht(_0x33a95e,_0x258ec7))_0x5a2b91['removeMarker'](_0xff13ab),_0x5698e9=!0x0;else{if(!_0x58c81e||!_0x58c81e['isInContent'])continue;if(_0x1e8e9a['newRange']&&_0x1e8e9a['oldRange']&&_0x1e8e9a['newRange']['isEqual'](_0x1e8e9a['oldRange']))continue;_0x33f715['add'](_0x58c81e);}}}return _0x33f715['size']>0x0&&(_0x5698e9=!!this['_joinWithAdjacentSuggestions'](_0x33f715)||_0x5698e9),_0x5698e9;}),_0x1d5c44['model']['document']['registerPostFixer'](_0xa57f1e=>{let _0x4d09f1=!0x1;for(const _0x5d71f9 of _0x1d5c44['model']['document']['differ']['getChanges']())if('insert'==_0x5d71f9['type'])for(const _0x34e9a4 of this['_suggestions']['values']()){if(_0x34e9a4['isMultiRange']||!_0x34e9a4['isInContent'])continue;const _0x340429='formatBlock'==_0x34e9a4['type'],_0x34be20=this['_getAttributeKey'](_0x34e9a4),_0x2be3d9=_0x34be20&&this['_isBlockAttribute'](_0x34be20);if(!_0x340429&&!_0x2be3d9)continue;const _0x394c6a=_0x34e9a4['getFirstRange']();if(_0x394c6a['start']['parent']!=_0x394c6a['end']['parent']&&!_0x394c6a['end']['isAtEnd']){const _0xf3340f=_0x1d5c44['model']['createPositionAt'](_0x394c6a['start']['nodeAfter'],'end'),_0x4b5210=_0x1d5c44['model']['createRange'](_0x394c6a['start'],_0xf3340f);_0xa57f1e['updateMarker'](_0x34e9a4['getFirstMarker'](),{'range':_0x4b5210}),_0x4d09f1=!0x0;}}return _0x4d09f1;}),_0x1d5c44['model']['document']['registerPostFixer'](_0x56a355=>this['_processAttributeChanges'](_0x56a355)),_0x1d5c44['model']['document']['registerPostFixer'](_0x32f717=>!_0x32f717['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x32f717)),_0x1d5c44['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1d5c44['model']['document']['on']('change:data',(_0x53bcdf,_0xfc660a)=>{if(!_0xfc660a['isLocal']||_0xfc660a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x907864=_0x1d5c44['model']['document']['differ']['getChanges']();if(0x0==_0x907864['length'])return;const _0x2888a7=[],_0x163ff7=_0x907864['filter'](_0x55645c=>'attribute'==_0x55645c['type']),_0x1619c5=_0x907864['filter'](_0x2904a2=>'insert'==_0x2904a2['type']&&'$text'!=_0x2904a2['name']);for(const _0x429e3c of _0x163ff7)this['_isRegisteredAttribute'](_0x429e3c['attributeKey'])&&_0x2888a7['push']({'key':_0x429e3c['attributeKey'],'newValue':_0x429e3c['attributeNewValue'],'oldValue':_0x429e3c['attributeOldValue'],'range':qt(_0x429e3c['range'],_0x1d5c44['model'])});for(const _0x437c65 of _0x1619c5){if('rename'!=_0x437c65['action']&&'refresh'!=_0x437c65['action'])continue;const _0x220964=zt(_0x437c65['position']['nodeAfter'],_0x1d5c44['model']),_0x5cda6d=_0x437c65['before'];'rename'==_0x437c65['action']&&_0x2888a7['push']({'key':m,'newValue':_0x437c65['name'],'oldValue':_0x5cda6d['name'],'range':_0x220964});for(const [_0x50976e,_0x5410a7]of _0x5cda6d['attributes']){if(!this['_isRegisteredAttribute'](_0x50976e))continue;const _0x368ac9=_0x437c65['attributes']['get'](_0x50976e);_0x5410a7!==_0x368ac9&&_0x2888a7['push']({'key':_0x50976e,'newValue':_0x368ac9,'oldValue':_0x5410a7,'range':_0x220964});}for(const [_0x57842d,_0x1cad6d]of _0x437c65['attributes'])this['_isRegisteredAttribute'](_0x57842d)&&(_0x5cda6d['attributes']['has'](_0x57842d)||_0x2888a7['push']({'key':_0x57842d,'newValue':_0x1cad6d,'oldValue':null,'range':_0x220964}));}0x0!=_0x2888a7['length']&&_0x1d5c44['model']['enqueueChange'](_0xfc660a,_0x5da34c=>{const _0x1e8c26=_0x4e9a0b();for(const {range:_0x3cd7ad,key:_0x465735,oldValue:_0x23c939,newValue:_0x246661}of _0x2888a7)this['markAttributeChange'](_0x3cd7ad,_0x465735,_0x23c939,_0x246661,{'groupId':_0x1e8c26});this['_reduceExistingSuggestions'](_0x5da34c,_0x2888a7);});},{'priority':'lowest'}),_0x1d5c44['model']['markers']['on']('update:suggestion',(_0x21b684,_0x7cbbec,_0x34fbc5)=>{if(null==_0x34fbc5){const {id:_0x43ca4f}=this['_splitMarkerName'](_0x7cbbec['name']),_0x1ba36e=this['_suggestions']['get'](_0x43ca4f);_0x1ba36e&&_0x1ba36e['addMarkerName'](_0x7cbbec['name']);}}),_0x1d5c44['model']['document']['on']('change:data',()=>{const _0x538713=Array['from'](_0x1d5c44['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1e408f=>'suggestion'===this['_splitMarkerName'](_0x1e408f['name'])['group']);if(0x0===_0x538713['length'])return;_0x538713['sort']((_0x5022c8,_0x5eb186)=>{const _0x411c86=_0x5022c8['data']['oldRange'],_0x2d1e99=_0x5eb186['data']['oldRange'];return null===_0x411c86&&null===_0x2d1e99?0x0:null===_0x411c86&&null!==_0x2d1e99?-0x1:null!==_0x411c86&&null===_0x2d1e99?0x1:_0x411c86['start']['isBefore'](_0x2d1e99['start'])?-0x1:0x1;});const _0x837f92=new Set(),_0x43e252=new Set();for(const {name:_0x5933c2,data:_0x23c86c}of _0x538713){const {id:_0x4243f5}=this['_splitMarkerName'](_0x5933c2);if(null===_0x23c86c['oldRange']){const _0x149f4f=this['_handleNewSuggestionMarker'](_0x5933c2);_0x43e252['add'](_0x149f4f);}else{const _0x4092af=this['_suggestions']['get'](_0x4243f5);null!==_0x23c86c['newRange']||_0x4092af['isInContent']?(_0x837f92['add'](_0x4092af['head']),_0x43e252['add'](_0x4092af)):this['_removeSuggestion'](_0x4092af);}}_0x43e252['size']>0x0&&this['_refreshSuggestionsChain'](_0x43e252);for(const _0x3c8aec of _0x837f92)this['fire']('suggestionChanged',_0x3c8aec);}),_0x1d5c44['model']['on']('applyOperation',(_0x35484b,_0x5ef9fc)=>{const _0x54bd0d=_0x5ef9fc[0x0];if(!this['_suggestions']['size'])return;if(!_0x54bd0d['isDocumentOperation'])return;if(_0x54bd0d['batch']['isUndo']||!_0x54bd0d['batch']['isLocal'])return;let _0x3943f8,_0x510252;switch(_0x54bd0d['type']){case'insert':_0x3943f8=_0x1d5c44['model']['createPositionAt'](_0x54bd0d['position']),_0x510252=_0x3943f8['getShiftedBy'](_0x54bd0d['howMany']);break;case'split':_0x3943f8=_0x1d5c44['model']['createPositionAt'](_0x54bd0d['splitPosition']),_0x510252=_0x1d5c44['model']['createPositionAt'](_0x54bd0d['moveTargetPosition']);break;case'move':_0x3943f8=_0x1d5c44['model']['createPositionAt'](_0x54bd0d['targetPosition']),_0x510252=_0x3943f8['getShiftedBy'](_0x54bd0d['howMany']);break;default:return;}const _0x1507cb=_0x1d5c44['model']['createRange'](_0x3943f8,_0x510252);_0x1d5c44['model']['change'](()=>{for(const {suggestion:_0xa378d3,meta:_0x3c66cb}of this['_findSuggestions'](_0x1507cb)){if(_0xa378d3['isMultiRange'])continue;if('formatInline'==_0xa378d3['type'])continue;const _0x1bdbdc=this['_getAttributeKey'](_0xa378d3);if(_0x1bdbdc&&this['_isBlockAttribute'](_0x1bdbdc)&&'split'!=_0x54bd0d['type'])continue;const _0x5d5018=_0xa378d3['data']&&_0xa378d3['data']['multipleBlocks'];('formatBlock'!=_0xa378d3['type']||'split'==_0x54bd0d['type']&&!_0x5d5018)&&(_0x3c66cb['containsRangeInObject']||'insertion'==_0xa378d3['type']&&_0x3c66cb['isOwn']||_0xa378d3['getFirstRange']()['containsRange'](_0x1507cb)&&this['_breakSuggestionMarker'](_0xa378d3,_0x3943f8,_0x510252));}});},{'priority':'lowest'}),_0x1d5c44['model']['on']('deleteContent',(_0x562038,_0x50e65a)=>{const _0x257d38=_0x50e65a[0x0],_0x177efe=_0x50e65a[0x1];if(_0x177efe&&_0x177efe['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x257d38['isCollapsed'])return;const _0x22e635=_0x1d5c44['model']['schema'],{start:_0x413a7e,end:_0xf9dca3}=_0x257d38['getFirstRange'](),_0x26b10e=_0x413a7e['nodeAfter']&&_0x22e635['isLimit'](_0x413a7e['nodeAfter'])?null:_0x22e635['getNearestSelectionRange'](_0x413a7e,'forward'),_0x81ccd6=_0xf9dca3['nodeBefore']&&_0x22e635['isLimit'](_0xf9dca3['nodeBefore'])?null:_0x22e635['getNearestSelectionRange'](_0xf9dca3,'backward'),_0x133664=_0x1d5c44['model']['createRange'](_0x26b10e?_0x26b10e['start']:_0x413a7e,_0x81ccd6?_0x81ccd6['end']:_0xf9dca3);_0x1d5c44['model']['change'](_0x26720c=>{this['markDeletion'](_0x133664);const _0x5e97f5=_0x1d5c44['model']['schema']['getNearestSelectionRange'](_0x133664['start']);_0x257d38['is']('documentSelection')?_0x26720c['setSelection'](_0x5e97f5):_0x257d38['setTo'](_0x5e97f5);}),_0x562038['stop']();},{'priority':_0x3efbf3['normal']+0xa}),_0x1d5c44['model']['on']('insertContent',(_0x5589e1,_0x2b3d1d)=>{const _0x1d8ee1=_0x2b3d1d[_0x2b3d1d['length']-0x1];_0x1d8ee1&&_0x1d8ee1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1d5c44['model']['change'](()=>{let _0x3e756c=_0x1d5c44['model']['insertContent'](_0x2b3d1d[0x0],_0x2b3d1d[0x1],_0x2b3d1d[0x2],{'forceDefaultExecution':!0x0});if(!_0x3e756c)return;_0x5589e1['return']=_0x3e756c['clone']();const _0x4ce579=_0x3e756c['end']['nodeBefore'],_0x360e24=_0x1d5c44['model']['schema'];_0x4ce579&&_0x360e24['isBlock'](_0x4ce579)&&!_0x360e24['isObject'](_0x4ce579)&&(_0x3e756c=_0x1d5c44['model']['createRange'](_0x3e756c['start'],_0x1d5c44['model']['createPositionAt'](_0x4ce579,'end'))),this['markInsertion'](_0x3e756c);}),_0x5589e1['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5defa3=new D(_0x1d5c44,this['_suggestions']);_0x1d5c44['commands']['add']('acceptSuggestion',_0x5defa3),this['enableCommand']('acceptSuggestion');const _0x3c3de7=new $(_0x1d5c44,this['_suggestions']);_0x1d5c44['commands']['add']('discardSuggestion',_0x3c3de7),this['enableCommand']('discardSuggestion'),_0x1d5c44['commands']['add']('acceptAllSuggestions',new M(_0x1d5c44,_0x5defa3,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1d5c44['commands']['add']('discardAllSuggestions',new M(_0x1d5c44,_0x3c3de7,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1d5c44['commands']['add']('acceptSelectedSuggestions',new B(_0x1d5c44,_0x5defa3,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1d5c44['commands']['add']('discardSelectedSuggestions',new B(_0x1d5c44,_0x3c3de7,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x41bf12=_0x1d5c44['plugins']['get']('CommentsRepository');this['listenTo'](_0x41bf12,'addComment',(_0x11e481,{threadId:_0x27ad81})=>{const _0x212f98=this['_suggestions']['get'](_0x27ad81);_0x212f98&&_0x212f98['commentThread']&&0x1===_0x212f98['commentThread']['length']&&this['_updateSuggestionData'](_0x27ad81,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x41bf12,'removeComment',(_0x86e45,{threadId:_0x4fba51})=>{const _0x5e21bc=this['_suggestions']['get'](_0x4fba51);_0x5e21bc&&_0x5e21bc['commentThread']&&!_0x5e21bc['commentThread']['length']&&this['_updateSuggestionData'](_0x4fba51,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x63bb2d){const _0x112e6f=_0xf2ed7c([0x38,0x53,0x59,0x34,0x56,0x37,0x33,0x44,0x77,0x6e,0x71,0x6a,0x74,0x51,0x50,0x35,0x64,0x73,0x39,0x68,0x58,0x48,0x31,0x63,0x66,0x62,0x43,0x57,0x69,0x55,0x36,0x41,0x52,0x45,0x46,0x65,0x6b,0x76,0x4e,0x61,0x6c,0x6d,0x4b,0x6f,0x4a,0x42,0x5a,0x4d,0x32,0x30,0x78,0x7a,0x54,0x72,0x4c,0x67,0x79,0x75,0x4f,0x47,0x49,0x70]),_0x1e84bd=0x2b26dd59,_0x4e13ab=0x2b21b2e9^_0x1e84bd,_0x279bc9=window[_0xf2ed7c([0x44,0x61,0x74,0x65])][_0xf2ed7c([0x6e,0x6f,0x77])](),_0x1899e4=_0x63bb2d[_0xf2ed7c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3b28f1=new window[(_0xf2ed7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2536f5=>{_0x1899e4[_0xf2ed7c([0x6f,0x6e,0x63,0x65])](_0xf2ed7c([0x72,0x65,0x61,0x64,0x79]),_0x2536f5);}),_0x52c173={[_0xf2ed7c([0x6b,0x74,0x79])]:_0xf2ed7c([0x45,0x43]),[_0xf2ed7c([0x75,0x73,0x65])]:_0xf2ed7c([0x73,0x69,0x67]),[_0xf2ed7c([0x63,0x72,0x76])]:_0xf2ed7c([0x50,0x2d,0x32,0x35,0x36]),[_0xf2ed7c([0x78])]:_0xf2ed7c([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]),[_0xf2ed7c([0x79])]:_0xf2ed7c([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]),[_0xf2ed7c([0x61,0x6c,0x67])]:_0xf2ed7c([0x45,0x53,0x32,0x35,0x36])},_0xfb52ea=_0x1899e4[_0xf2ed7c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf2ed7c([0x67,0x65,0x74])](_0xf2ed7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x448aaf(){let _0x34c4c5,_0x44dd4a=null,_0x46af49=null;try{if(_0xfb52ea==_0xf2ed7c([0x47,0x50,0x4c]))return _0xf2ed7c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34c4c5=_0x5c9ba7(),!_0x34c4c5)return _0xf2ed7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34c4c5[_0xf2ed7c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x46af49=_0x16d155(_0x34c4c5[_0xf2ed7c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34c4c5[_0xf2ed7c([0x6a,0x74,0x69])])),await _0x2ec776()?_0x5d8ceb()?_0x5c3d13()?_0xf2ed7c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3f63f3()?(_0x34c4c5[_0xf2ed7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf2ed7c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x44dd4a=_0x270cd9(_0xf2ed7c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x34c4c5[_0xf2ed7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf2ed7c([0x74,0x72,0x69,0x61,0x6c])&&(_0x44dd4a=_0x270cd9(_0xf2ed7c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x443d34()):_0xf2ed7c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf2ed7c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf2ed7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xf2ed7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c3d13(){const _0x5c4b5d=[_0xf2ed7c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf2ed7c([0x74,0x72,0x69,0x61,0x6c])][_0xf2ed7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34c4c5[_0xf2ed7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x279bc9/0x3e8:0xe10*_0x4e13ab;return _0x34c4c5[_0xf2ed7c([0x65,0x78,0x70])]<_0x5c4b5d;}function _0x5d8ceb(){const _0xfcab03=_0x34c4c5[_0xf2ed7c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xfcab03)return!0x1;if(_0xfcab03[_0xf2ed7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf2ed7c([0x2a])))return!0x0;if(_0xfcab03[_0xf2ed7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf2ed7c([0x54,0x43])))return!0x0;if(_0xfcab03[_0xf2ed7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf2ed7c([0x52,0x54,0x43]))){if(_0xe35654())return!0x0;if(_0x11b6ec()||_0x4764c8())return!0x0;}return!0x1;}function _0x3f63f3(){const _0x57b6ea=_0x34c4c5[_0xf2ed7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x57b6ea||0x0==_0x57b6ea[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31596a}=new URL(window[_0xf2ed7c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x57b6ea[_0xf2ed7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31596a))return!0x0;const _0x455a10=_0x31596a[_0xf2ed7c([0x73,0x70,0x6c,0x69,0x74])](_0xf2ed7c([0x2e]));return _0x57b6ea[_0xf2ed7c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52a825=>_0x52a825[_0xf2ed7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf2ed7c([0x2a])))[_0xf2ed7c([0x6d,0x61,0x70])](_0x15edb7=>_0x15edb7[_0xf2ed7c([0x73,0x70,0x6c,0x69,0x74])](_0xf2ed7c([0x2e])))[_0xf2ed7c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x393bea=>_0x393bea[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x455a10[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf2ed7c([0x6d,0x61,0x70])](_0x19188c=>Array(_0x455a10[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x19188c[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf2ed7c([0x66,0x69,0x6c,0x6c])](_0x19188c[0x0]===_0xf2ed7c([0x2a])?_0xf2ed7c([0x2a]):'')[_0xf2ed7c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x19188c))[_0xf2ed7c([0x73,0x6f,0x6d,0x65])](_0x55fd09=>_0x455a10[_0xf2ed7c([0x65,0x76,0x65,0x72,0x79])]((_0x5f2d54,_0x5f2450)=>_0x55fd09[_0x5f2450]===_0x5f2d54||_0x55fd09[_0x5f2450]===_0xf2ed7c([0x2a])));}function _0x443d34(){return _0x44dd4a&&_0x46af49?new window[(_0xf2ed7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c9112,_0x91cd27)=>{_0x44dd4a[_0xf2ed7c([0x74,0x68,0x65,0x6e])](_0x2c9112,_0x91cd27),_0x46af49[_0xf2ed7c([0x74,0x68,0x65,0x6e])](_0x1ab6ad=>{_0x1ab6ad!=_0xf2ed7c([0x56,0x61,0x6c,0x69,0x64])&&_0x2c9112(_0x1ab6ad);},_0x91cd27);}):_0x44dd4a||_0x46af49||_0xf2ed7c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x16d155(_0x11115f,_0x1dfce6){return new window[(_0xf2ed7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11748f=>{if(_0x47076e())return _0x11748f(_0xf2ed7c([0x56,0x61,0x6c,0x69,0x64]));_0x1f9c68(),_0x1899e4[_0xf2ed7c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf2ed7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19502b=!0x1;const _0x4b0a50=_0x4e9a0b();function _0x82d439(_0x38eaa4){return!!_0x38eaa4&&(typeof _0x38eaa4===_0xf2ed7c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38eaa4===_0xf2ed7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38eaa4[_0xf2ed7c([0x74,0x68,0x65,0x6e])]===_0xf2ed7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38eaa4[_0xf2ed7c([0x63,0x61,0x74,0x63,0x68])]===_0xf2ed7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x24e0d5(_0x9977bc){_0x7bcaef(_0x9977bc)[_0xf2ed7c([0x74,0x68,0x65,0x6e])](_0xd706d9=>{if(!_0xd706d9||_0xd706d9[_0xf2ed7c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf2ed7c([0x6f,0x6b]))return _0xf2ed7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x57e9cd(_0x29d8dc(_0x4b0a50+_0x1dfce6))!=_0xd706d9[_0xf2ed7c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf2ed7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf2ed7c([0x56,0x61,0x6c,0x69,0x64]);})[_0xf2ed7c([0x74,0x68,0x65,0x6e])](_0x248254=>(_0x34cd57(),_0x248254),()=>{const _0x86b97c=_0x327493();return null==_0x86b97c?(_0x34cd57(),_0xf2ed7c([0x56,0x61,0x6c,0x69,0x64])):_0xf2ed7c(_0x279bc9-_0x86b97c>(0xf2a5959^_0x1e84bd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf2ed7c([0x74,0x68,0x65,0x6e])](_0x11748f)[_0xf2ed7c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x11748f(_0xf2ed7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x436dec=0x2b1033d9^_0x1e84bd;function _0x34cd57(){const _0x2db8b2=_0xf2ed7c([0x6c,0x6c,0x63,0x74,0x2d])+_0x57e9cd(_0x29d8dc(_0x11115f)),_0x30d2ad=_0x5c8d43(_0x57e9cd(window[_0xf2ed7c([0x4d,0x61,0x74,0x68])][_0xf2ed7c([0x63,0x65,0x69,0x6c])](_0x279bc9/_0x436dec)));window[_0xf2ed7c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf2ed7c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2db8b2,_0x30d2ad);}function _0x327493(){const _0x4139a2=_0xf2ed7c([0x6c,0x6c,0x63,0x74,0x2d])+_0x57e9cd(_0x29d8dc(_0x11115f)),_0x43d31c=window[_0xf2ed7c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf2ed7c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4139a2);return _0x43d31c?window[_0xf2ed7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c8d43(_0x43d31c),0x10)*_0x436dec:null;}function _0x7bcaef(_0x23a537){return new window[(_0xf2ed7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f9b15,_0x2f29ea)=>{_0x23a537[_0xf2ed7c([0x74,0x68,0x65,0x6e])](_0x1f9b15,_0x2f29ea),window[_0xf2ed7c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f29ea,0x2b270999^_0x1e84bd);});}}_0x1899e4[_0xf2ed7c([0x6f,0x6e])](_0xf2ed7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x40835b,_0x988b2)=>{if(_0x988b2[0x0]!=_0x11115f)return _0x11748f(_0xf2ed7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x988b2[0x1]={..._0x988b2[0x1],[_0xf2ed7c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b0a50};},{[_0xf2ed7c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf2ed7c([0x68,0x69,0x67,0x68])}),_0x1899e4[_0xf2ed7c([0x6f,0x6e])](_0xf2ed7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x446561=>{_0x82d439(_0x446561[_0xf2ed7c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19502b=!0x0,_0x24e0d5(_0x446561[_0xf2ed7c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf2ed7c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf2ed7c([0x6c,0x6f,0x77])}),_0x3b28f1[_0xf2ed7c([0x74,0x68,0x65,0x6e])](()=>{_0x19502b||_0x11748f(_0xf2ed7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47076e(){return _0x1899e4[_0xf2ed7c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf2ed7c([0x76,0x69,0x65,0x77])][_0xf2ed7c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf2ed7c([0x61,0x75,0x74,0x6f]);}function _0x1f9c68(){_0x1899e4[_0xf2ed7c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf2ed7c([0x76,0x69,0x65,0x77])][_0xf2ed7c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf2ed7c([0x61,0x75,0x74,0x6f]);}}function _0x270cd9(_0x458104){const _0x3fa912=[new window[(_0xf2ed7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a2416=>setTimeout(_0x5a2416,0x2b2fe395^_0x1e84bd)),_0x3b28f1[_0xf2ed7c([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf2ed7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x473eee=>{let _0x1590d2=0x0;_0x1899e4[_0xf2ed7c([0x6d,0x6f,0x64,0x65,0x6c])][_0xf2ed7c([0x6f,0x6e])](_0xf2ed7c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x50fccd,_0x43a12f)=>{_0x43a12f[0x0][_0xf2ed7c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1590d2++,_0x1590d2==(0x2b26dca1^_0x1e84bd)&&(_0x473eee(),_0x50fccd[_0xf2ed7c([0x6f,0x66,0x66])]());});}))];return window[_0xf2ed7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf2ed7c([0x72,0x61,0x63,0x65])](_0x3fa912)[_0xf2ed7c([0x74,0x68,0x65,0x6e])](()=>_0x458104);}async function _0x4f8e69(){await _0x3b28f1,_0x1899e4[_0xf2ed7c([0x6d,0x6f,0x64,0x65,0x6c])][_0xf2ed7c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x486f40,_0x1899e4[_0xf2ed7c([0x6d,0x6f,0x64,0x65,0x6c])][_0xf2ed7c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x486f40,_0x1899e4[_0xf2ed7c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf2ed7c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xe35654(){return _0x398049(_0xf2ed7c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5237ff(_0xf2ed7c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xf2ed7c([0x73,0x74,0x61,0x74,0x65])]==_0xf2ed7c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x11b6ec(){return _0x398049(_0xf2ed7c([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 _0x4764c8(){return _0x398049(_0xf2ed7c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4618fa(_0x380f42){const _0x3ba0f2=_0x1e8379();_0x1899e4[_0x3ba0f2]=_0xf2ed7c([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x380f42,_0x380f42!=_0xf2ed7c([0x56,0x61,0x6c,0x69,0x64])&&_0x4f8e69();}function _0x1e8379(){const _0x4f1c43=window[_0xf2ed7c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf2ed7c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf2ed7c([0x6e,0x6f,0x77])]())[_0xf2ed7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf2ed7c([0x2e]),'');let _0x1599bd=_0xf2ed7c([0x53]);for(let _0x56e2b4=0x0;_0x56e2b4<_0x4f1c43[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56e2b4+=0x2){let _0x3ad140=window[_0xf2ed7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f1c43[_0xf2ed7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56e2b4,_0x56e2b4+0x2));_0x3ad140>=_0x112e6f[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ad140-=_0x112e6f[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1599bd+=_0x112e6f[_0x3ad140];}return _0x1599bd;}function _0x5c9ba7(){const _0x1b34e3=_0xfb52ea[_0xf2ed7c([0x73,0x70,0x6c,0x69,0x74])](_0xf2ed7c([0x2e]));if(0x3!=_0x1b34e3[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ac0d1(_0x1b34e3[0x1]);function _0x5ac0d1(_0x156e2b){const _0x253199=_0x5abd74(_0x156e2b);return _0x253199&&_0x321904()?_0x253199:null;function _0x321904(){const _0xe48fa4=_0x253199[_0xf2ed7c([0x6a,0x74,0x69])],_0x537c21=window[_0xf2ed7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe48fa4[_0xf2ed7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe48fa4[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34adf6={..._0x253199,[_0xf2ed7c([0x6a,0x74,0x69])]:_0xe48fa4[_0xf2ed7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe48fa4[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34adf6[_0xf2ed7c([0x76,0x63])],_0x29d8dc(_0x34adf6)==_0x537c21;}}}async function _0x2ec776(){let _0x1cb2c0=!0x0;try{const _0x552634=_0xfb52ea[_0xf2ed7c([0x73,0x70,0x6c,0x69,0x74])](_0xf2ed7c([0x2e])),[_0x2c17d2,_0x3c9a91,_0x14cbcf]=_0x552634;return _0x75668a(_0x2c17d2),await _0x18c796(_0x2c17d2,_0x3c9a91,_0x14cbcf),_0x1cb2c0;}catch{return!0x1;}function _0x75668a(_0x12fce6){const _0x1aa852=_0x5abd74(_0x12fce6);_0x1aa852&&_0x1aa852[_0xf2ed7c([0x61,0x6c,0x67])]==_0xf2ed7c([0x45,0x53,0x32,0x35,0x36])||(_0x1cb2c0=!0x1);}async function _0x18c796(_0x18362c,_0x3b794e,_0x434119){const _0x22b64c=window[_0xf2ed7c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf2ed7c([0x66,0x72,0x6f,0x6d])](_0x51802f(_0x434119),_0x8c76c9=>_0x8c76c9[_0xf2ed7c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34cf80=new window[(_0xf2ed7c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf2ed7c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x18362c+_0xf2ed7c([0x2e])+_0x3b794e),_0x42a994=window[_0xf2ed7c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf2ed7c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x42a994)return;const _0x5111fc=await _0x42a994[_0xf2ed7c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf2ed7c([0x6a,0x77,0x6b]),_0x52c173,{[_0xf2ed7c([0x6e,0x61,0x6d,0x65])]:_0xf2ed7c([0x45,0x43,0x44,0x53,0x41]),[_0xf2ed7c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf2ed7c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf2ed7c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x42a994[_0xf2ed7c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf2ed7c([0x6e,0x61,0x6d,0x65])]:_0xf2ed7c([0x45,0x43,0x44,0x53,0x41]),[_0xf2ed7c([0x68,0x61,0x73,0x68])]:{[_0xf2ed7c([0x6e,0x61,0x6d,0x65])]:_0xf2ed7c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5111fc,_0x22b64c,_0x34cf80)||(_0x1cb2c0=!0x1);}}function _0x5abd74(_0x21c3fb){return _0x21c3fb[_0xf2ed7c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf2ed7c([0x65,0x79]))?JSON[_0xf2ed7c([0x70,0x61,0x72,0x73,0x65])](_0x51802f(_0x21c3fb)):null;}function _0x51802f(_0x28cde2){return window[_0xf2ed7c([0x61,0x74,0x6f,0x62])](_0x28cde2[_0xf2ed7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf2ed7c([0x2b]))[_0xf2ed7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf2ed7c([0x2f])));}function _0x29d8dc(_0x37205b){let _0x33583=0x1505;function _0x119123(_0x1a04e3){for(let _0x5dcd77=0x0;_0x5dcd77<_0x1a04e3[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dcd77++){const _0x1b8fbd=_0x1a04e3[_0xf2ed7c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5dcd77);_0x33583=(_0x33583<<0x5)+_0x33583+_0x1b8fbd,_0x33583&=_0x33583;}}function _0x2da154(_0x1d1238){Array[_0xf2ed7c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1d1238)?_0x1d1238[_0xf2ed7c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2da154):_0x1d1238&&typeof _0x1d1238==_0xf2ed7c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf2ed7c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1d1238)[_0xf2ed7c([0x73,0x6f,0x72,0x74])]()[_0xf2ed7c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2933c4,_0x1e10f3])=>{_0x119123(_0x2933c4),_0x2da154(_0x1e10f3);}):_0x119123(window[_0xf2ed7c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1d1238));}return _0x2da154(_0x37205b),_0x33583>>>0x0;}function _0x57e9cd(_0x85b302){return _0x85b302[_0xf2ed7c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf2ed7c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf2ed7c([0x30]));}function _0x5c8d43(_0x4a5b1a){return _0x4a5b1a[_0xf2ed7c([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf2ed7c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf2ed7c([0x6a,0x6f,0x69,0x6e])]('');}function _0x398049(_0x1dc9aa){return _0x1899e4[_0xf2ed7c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf2ed7c([0x68,0x61,0x73])](_0x1dc9aa);}function _0x5237ff(_0x2b3bb3){return _0x1899e4[_0xf2ed7c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf2ed7c([0x67,0x65,0x74])](_0x2b3bb3);}function _0x486f40(){}function _0xf2ed7c(_0x1319cc){return _0x1319cc['map'](_0x12d6d5=>String['fromCharCode'](_0x12d6d5))['join']('');}_0x4618fa(await _0x448aaf());}(this);}set['adapter'](_0x5d6524){if(this['_adapter'])throw new _0x3e0d43('track-changes-adapter-already-set',this);this['_adapter']=_0x5d6524;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x19cda8=!0x1,toJSON:_0x577d3a=!0x1}={}){const _0x4d9482=[];for(const _0x2a1aef of this['_suggestions']['values']())_0x19cda8&&!_0x2a1aef['isInContent']||_0x4d9482['push'](_0x2a1aef);return _0x577d3a?_0x4d9482['map'](_0x2fce87=>_0x2fce87['toJSON']()):_0x4d9482;}['getSuggestion'](_0x3ac8ce){const _0x52815b=this['_suggestions']['get'](_0x3ac8ce);if(!_0x52815b)throw new _0x3e0d43('track-changes-suggestion-not-found',this);return _0x52815b;}['hasSuggestion'](_0x2bb631){return this['_suggestions']['has'](_0x2bb631);}['addSuggestionData'](_0x51ef06){const {authorId:_0x166103,id:_0x446a8b,originalSuggestionId:_0x70b6cd,attributes:_0x3ac514}=_0x51ef06,[_0x4b5b0a,_0xb913b9]=_0x51ef06['type']['split'](':'),_0x571bb3=this['_suggestions']['get'](_0x446a8b)||this['_createSuggestion'](_0x4b5b0a,_0xb913b9,_0x446a8b,_0x166103,_0x3ac514,_0x70b6cd);if(this['_addThreadToSuggestion'](_0x571bb3),this['_checkSuggestionCorrectness'](_0x571bb3,_0x4b5b0a,_0xb913b9||null,_0x166103),_0x571bb3['createdAt']=_0x51ef06['createdAt'],_0x571bb3['_isDataLoaded']=!0x0,_0x3ac514&&_0x3ac514['@external']){const _0x4e00e2=_0x3ac514['@external'],_0x493cd0=this['_getExternalAuthor'](_0x4e00e2['authorName']);_0x571bb3['authoredAt']=_0x4e00e2['createdAt'],_0x571bb3['author']=_0x493cd0,_0x571bb3['isExternal']=!0x0;}else _0x571bb3['authoredAt']=_0x51ef06['createdAt'];switch(_0x51ef06['data']&&(_0x571bb3['data']=_0x51ef06['data']),_0x51ef06['attributes']&&(_0x571bb3['attributes']=_0x51ef06['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x571bb3['_saved']=!0x0),this['_suggestionState']['get'](_0x571bb3)){case'notReady':this['_suggestionState']['set'](_0x571bb3,'dataReady');break;case'markerReady':_0x571bb3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x571bb3])),this['_refreshSuggestionsChain'](new Set([_0x571bb3])),this['_suggestionState']['set'](_0x571bb3,'ready'),this['fire']('suggestionLoaded',_0x571bb3)):this['_suggestionState']['set'](_0x571bb3,'removed');}return _0x571bb3;}['acceptSuggestion'](_0x390cc5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x53cb4a of _0x390cc5['getAllAdjacentSuggestions']())_0x53cb4a['accept']();});});}['discardSuggestion'](_0x5e962a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x7b4fda of _0x5e962a['getAllAdjacentSuggestions']())_0x7b4fda['discard']();});});}['enableCommand'](_0x2c29d8,_0x246093){const _0x116376=this['editor']['commands']['get'](_0x2c29d8);if(!_0x116376)throw new _0x3e0d43('track-changes-command-not-found',this,{'commandName':_0x2c29d8});if(this['_enabledCommands']['has'](_0x116376))throw new _0x3e0d43('track-changes-enable-command-twice',this,{'commandName':_0x2c29d8});this['_enabledCommands']['add'](_0x116376),_0x246093&&_0x116376['on']('execute',(_0x17e1c4,_0x2465a0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2465a0['length']>0x0&&_0x2465a0[_0x2465a0['length']-0x1]&&_0x2465a0[_0x2465a0['length']-0x1]['forceDefaultExecution']?_0x2465a0['pop']():(_0x17e1c4['return']=_0x246093((..._0x338919)=>_0x116376['execute'](..._0x338919,{'forceDefaultExecution':!0x0}),..._0x2465a0),_0x17e1c4['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xd9dc5d){let _0x78f213,_0x18bdce;const _0x24d64d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x78f213=_0xd9dc5d();}catch(_0x388e4f){_0x18bdce=_0x388e4f;}return _0x24d64d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x18bdce&&_0x3e0d43['rethrowUnexpectedError'](_0x18bdce,this),_0x78f213;}['markInsertion'](_0x551b8d,_0xd88a63=null,_0x2cb946={}){if(_0x551b8d['isCollapsed'])return null;const _0x1db481=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2cb946['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x6d0b92,meta:_0x3aac43}of this['_findSuggestions'](_0x551b8d,'insertion'))if(_0x3aac43['isOwn']){if(!_0x3aac43['isNextTo']){if(_0x3aac43['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x6d0b92,_0x2cb946))continue;return _0x6d0b92;}if(Xt(_0x6d0b92,_0x2cb946))return _0x6d0b92;this['_breakSuggestionMarker'](_0x6d0b92,_0x551b8d['start'],_0x551b8d['end']);break;}if(_0xd88a63==_0x6d0b92['subType']&&Xt(_0x6d0b92,_0x2cb946)){const _0x3ed898=_0x6d0b92['getFirstRange']();return _0x3ed898['start']['isEqual'](_0x551b8d['end'])?this['_setSuggestionRange'](_0x6d0b92,this['_model']['createRange'](_0x551b8d['start'],_0x3ed898['end'])):this['_setSuggestionRange'](_0x6d0b92,this['_model']['createRange'](_0x3ed898['start'],_0x551b8d['end'])),_0x6d0b92;}}const _0x450f71=_0x4e9a0b(),_0x40c991=_0x1db481['id'],_0x4507f7=_0xd88a63?'insertion:'+_0xd88a63:'insertion',_0x16068f=this['_setSuggestionData']({'id':_0x450f71,'type':_0x4507f7,'createdAt':new Date(),'authorId':_0x40c991,'attributes':_0x2cb946});return this['_addSuggestionMarker'](_0x4507f7,_0x450f71,_0x40c991,_0x551b8d),_0x16068f;}['markMultiRangeInsertion'](_0x412d8e,_0x520ad3='multi',_0x1f45b5={}){const _0x211c09=this['editor']['plugins']['get']('Users')['me'],_0x56f7cd=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x520ad3,'join');this['_trackingSessionId']&&(_0x1f45b5['trackingSessionId']=this['_trackingSessionId']);for(const _0x5a0489 of this['getSuggestions']())if(_0x5a0489['author']['id']==_0x211c09['id']&&'insertion'==_0x5a0489['type']&&_0x5a0489['subType']==_0x520ad3&&Xt(_0x5a0489,_0x1f45b5)&&(_0x56f7cd(_0x5a0489['getRanges'](),_0x412d8e)||_0x56f7cd(_0x412d8e,_0x5a0489['getRanges']()))){for(const _0x196bc7 of _0x412d8e)_0x5a0489['addRange'](_0x196bc7);return _0x5a0489;}for(const {suggestion:_0x3a0699,meta:_0x4bdaec}of this['_findSuggestions'](_0x412d8e,'insertion')){if(!_0x4bdaec['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4bdaec['containsRangeInObject'])continue;if(!Xt(_0x3a0699,_0x1f45b5))continue;let _0x197191=!0x0;for(const _0x5432f4 of _0x3a0699['getRanges']())for(const _0x14c54e of _0x412d8e)if(!_0x5432f4['containsRange'](_0x14c54e)){_0x197191=!0x1;break;}if(_0x197191)return _0x3a0699;}const _0x4239a7=_0x4e9a0b(),_0x164a96=_0x211c09['id'],_0x3bfe3a='insertion:'+_0x520ad3,_0xb47cda=this['_setSuggestionData']({'id':_0x4239a7,'type':_0x3bfe3a,'createdAt':new Date(),'authorId':_0x164a96,'attributes':_0x1f45b5});for(const _0x2a8b2c of _0x412d8e)this['_addSuggestionMarker'](_0x3bfe3a,_0x4239a7,_0x164a96,_0x2a8b2c,T['getMultiRangeId']());return _0xb47cda;}['markInlineFormat'](_0x292397,_0x42ed09,_0x56aee3=null,_0x359faa={}){if(_0x56aee3=_0x56aee3||Lt(_0x42ed09),_0x292397['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x359faa['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1f2f9b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x56aee3,'accept');return this['forceDefaultExecution'](()=>_0x1f2f9b([_0x292397],_0x42ed09,_0x359faa)),null;}const _0x2eb792=this['editor']['plugins']['get']('Users')['me'],_0x7cce64=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x98e0f2,meta:_0x3fde05}of this['_findSuggestions'](_0x292397,'insertion'))_0x3fde05['isOwn']&&!_0x3fde05['isInsideObject']&&_0x7cce64['push'](..._0x98e0f2['getRanges']());}const _0x24797c=function(_0x9b0481,_0xcfb86c){const _0x481291=[];for(const _0x12c283 of _0xcfb86c){const _0x261aad=_0x9b0481['getIntersection'](_0x12c283);_0x261aad&&_0x481291['push'](_0x261aad);}return _0x481291;}(_0x292397,_0x7cce64),_0xc8d2cb=function(_0x4a66cd,_0x284a58){const _0x36a735=[_0x4a66cd];for(const _0xca7161 of _0x284a58){let _0x266a65=0x0;for(;_0x266a65<_0x36a735['length'];){const _0x50043e=_0x36a735[_0x266a65]['getDifference'](_0xca7161);_0x36a735['splice'](_0x266a65,0x1,..._0x50043e),_0x266a65+=_0x50043e['length'];}}return _0x36a735;}(_0x292397,_0x7cce64);_0x24797c['length']&&this['_model']['change'](()=>{for(const _0x414b3e of _0x24797c){const _0x1dbd11=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x56aee3,'accept');this['forceDefaultExecution'](()=>_0x1dbd11([_0x414b3e],_0x42ed09,_0x359faa));}});for(const _0x22973b of _0xc8d2cb){let _0x41683e=null,_0x526d5f=_0x22973b['start'],_0x5da305=_0x22973b['end'];for(const {suggestion:_0x3bd113,meta:_0x2d9ae6}of this['_findSuggestions'](_0x22973b,'formatInline')){if(!_0x2d9ae6['isOwn'])continue;if(_0x3bd113['subType']!=_0x56aee3)continue;if(!Xt(_0x3bd113,_0x359faa))continue;const _0x50da21=_0x3bd113['getFirstRange']();if(_0x50da21['containsRange'](_0x22973b,!0x0))return null;_0x526d5f=_0x526d5f['isBefore'](_0x50da21['start'])?_0x526d5f:_0x50da21['start'],_0x5da305=_0x5da305['isAfter'](_0x50da21['end'])?_0x5da305:_0x50da21['end'],_0x41683e?_0x50da21['start']['isBefore'](_0x41683e['getFirstRange']()['start'])?(_0x41683e['removeMarkers'](),_0x41683e=_0x3bd113):_0x3bd113['removeMarkers']():_0x41683e=_0x3bd113;}const _0x515d28=this['_model']['createRange'](_0x526d5f,_0x5da305);if(_0x41683e)this['_setSuggestionRange'](_0x41683e,_0x515d28);else{const _0xb01e40=_0x4e9a0b(),_0x3c04f8=_0x2eb792['id'];this['_setSuggestionData']({'id':_0xb01e40,'type':'formatInline:'+_0x56aee3,'data':_0x42ed09,'createdAt':new Date(),'authorId':_0x3c04f8,'attributes':_0x359faa}),this['_addSuggestionMarker']('formatInline:'+_0x56aee3,_0xb01e40,_0x3c04f8,_0x515d28);}}return null;}['markBlockFormat'](_0x18fded,_0x1755a5,_0x577d83=[],_0x363c7d=null,_0x221633={}){_0x1755a5['formatGroupId']||(_0x1755a5['formatGroupId']=_0x1755a5['commandName']),_0x1755a5['multipleBlocks']=_0x18fded['is']('range'),_0x363c7d=_0x363c7d||Lt(_0x1755a5);const _0x1398e1=_0x577d83['map'](_0x270641=>zt(_0x270641,this['_model'])),_0x415cb3=_0x18fded['is']('range')?_0x18fded:zt(_0x18fded,this['_model']);if(this['_trackingSessionId']&&(_0x221633['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1d7f9f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x363c7d,'accept');return this['forceDefaultExecution'](()=>_0x1d7f9f([_0x415cb3],_0x1755a5,_0x221633)),null;}_0x1398e1['push'](_0x415cb3);let _0x58ac86=!0x0;for(const _0x2c7201 of _0x1398e1)if(!this['_rangeIsInLocalUserInsertion'](_0x2c7201)){_0x58ac86=!0x1;break;}if(_0x58ac86&&'always'!==this['_trackFormatChanges']){const _0x4dc510=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x363c7d,'accept');return this['forceDefaultExecution'](()=>_0x4dc510([_0x415cb3],_0x1755a5,_0x221633)),null;}let _0x55dbb2=null,_0x894583=_0x415cb3['start'],_0x33075a=_0x415cb3['end'];for(const {suggestion:_0x223d1c,meta:_0xa7ce94}of this['_findSuggestions'](_0x415cb3,'formatBlock')){if(!_0xa7ce94['isOwn'])continue;if(_0xa7ce94['isNextTo']||_0xa7ce94['containsRangeInObject']||_0xa7ce94['isInsideObject'])continue;if(_0x223d1c['data']['formatGroupId']!=_0x1755a5['formatGroupId'])continue;if(!Xt(_0x223d1c,_0x221633))continue;const _0x344300=_0x223d1c['getFirstRange']();if(_0x223d1c['subType']==_0x363c7d){if(_0x344300['containsRange'](_0x415cb3,!0x0))return null;_0x894583=_0x894583['isBefore'](_0x344300['start'])?_0x894583:_0x344300['start'],_0x33075a=_0x33075a['isAfter'](_0x344300['end'])?_0x33075a:_0x344300['end'],_0x55dbb2?_0x344300['start']['isBefore'](_0x55dbb2['getFirstRange']()['start'])?(_0x55dbb2['removeMarkers'](),_0x55dbb2=_0x223d1c):_0x223d1c['removeMarkers']():_0x55dbb2=_0x223d1c;}else{const _0x4fe8bd=_0x415cb3['getIntersection'](_0x344300);this['_cutOutSuggestionMarker'](_0x223d1c,_0x4fe8bd);}}const _0x15a5ea=this['editor']['plugins']['get']('Users')['me'],_0x3c0332=_0x4e9a0b(),_0x3ad944=_0x15a5ea['id'];if(_0x55dbb2)return this['_setSuggestionRange'](_0x55dbb2,this['_model']['createRange'](_0x894583,_0x33075a)),_0x55dbb2;{const _0x18476e=this['_setSuggestionData']({'id':_0x3c0332,'type':'formatBlock:'+_0x363c7d,'data':_0x1755a5,'createdAt':new Date(),'authorId':_0x3ad944,'attributes':_0x221633});return this['_addSuggestionMarker']('formatBlock:'+_0x363c7d,_0x3c0332,_0x3ad944,this['_model']['createRange'](_0x894583,_0x33075a)),_0x18476e;}}['markMultiRangeBlockFormat'](_0x153e6f,_0x427597,_0x5d350d=[],_0x4b2f0b=null,_0x30acc8={}){_0x427597['formatGroupId']||(_0x427597['formatGroupId']=_0x427597['commandName']);const _0x559191=_0x153e6f[0x0];_0x427597['multipleBlocks']=_0x559191['is']('range'),_0x4b2f0b=_0x4b2f0b||Lt(_0x427597);const _0x1176f5=_0x5d350d['map'](_0x382938=>zt(_0x382938,this['_model'])),_0x565bc1=_0x559191['is']('range')?_0x153e6f:_0x153e6f['map'](_0x340645=>zt(_0x340645,this['_model']));if(this['_trackingSessionId']&&(_0x30acc8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4803b8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b2f0b,'accept');return this['forceDefaultExecution'](()=>_0x4803b8(_0x565bc1,_0x427597,_0x30acc8)),null;}_0x1176f5['push'](..._0x565bc1);let _0x3a929e=!0x0;for(const _0x351ca1 of _0x1176f5)if(!this['_rangeIsInLocalUserInsertion'](_0x351ca1)){_0x3a929e=!0x1;break;}if(_0x3a929e&&'always'!==this['_trackFormatChanges']){const _0x3b4aff=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b2f0b,'accept');return this['forceDefaultExecution'](()=>_0x3b4aff(_0x565bc1,_0x427597,_0x30acc8)),null;}const _0x3f0cdf=this['editor']['plugins']['get']('Users')['me'];for(const _0x2c38a3 of this['getSuggestions']()){const _0x5ca832=_0x2c38a3['data'];if(_0x2c38a3['author']['id']!=_0x3f0cdf['id'])continue;if('formatBlock'!=_0x2c38a3['type']||_0x5ca832['formatGroupId']!=_0x427597['formatGroupId'])continue;if(!Xt(_0x2c38a3,_0x30acc8))continue;const _0x39e736=_0x2c38a3['subType']==_0x4b2f0b;for(let _0x5c0b26=0x0;_0x5c0b26<_0x565bc1['length'];_0x5c0b26++){const _0x188149=_0x565bc1[_0x5c0b26];for(const _0x159fd0 of _0x2c38a3['getMarkers']()){const _0x531d9f=_0x159fd0['getRange']();if(_0x188149['isEqual'](_0x531d9f)){_0x39e736?(_0x565bc1['splice'](_0x5c0b26,0x1),_0x5c0b26--):_0x2c38a3['removeMarker'](_0x159fd0['name']);break;}}}}if(0x0==_0x565bc1['length'])return null;const _0x31a5aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b2f0b,'join');for(const _0x42f68e of this['getSuggestions']()){const _0x23c07f=_0x42f68e['data'];if(_0x42f68e['author']['id']==_0x3f0cdf['id']&&('formatBlock'==_0x42f68e['type']&&_0x23c07f['formatGroupId']==_0x427597['formatGroupId']&&_0x42f68e['subType']==_0x4b2f0b&&Xt(_0x42f68e,_0x30acc8)&&(_0x31a5aa(_0x42f68e['getRanges'](),_0x565bc1)||_0x31a5aa(_0x565bc1,_0x42f68e['getRanges']())))){for(const _0x5ce179 of _0x565bc1)_0x42f68e['addRange'](_0x5ce179);return _0x42f68e;}}const _0x5acd95=_0x4e9a0b(),_0x30ba78=_0x3f0cdf['id'],_0x1e48b4='formatBlock:'+_0x4b2f0b,_0x37035d=this['_setSuggestionData']({'id':_0x5acd95,'type':_0x1e48b4,'data':_0x427597,'createdAt':new Date(),'authorId':_0x30ba78,'attributes':_0x30acc8});for(const _0x1eb9ce of _0x565bc1)this['_addSuggestionMarker'](_0x1e48b4,_0x5acd95,_0x30ba78,_0x1eb9ce,T['getMultiRangeId']());return _0x37035d;}['markDeletion'](_0x489336,_0x432aea=null,_0x2d9dd2={}){if(_0x489336['isCollapsed'])return null;const _0x556370=this['editor']['plugins']['get']('Users')['me'],_0x4c664b=new _0x1437b2(_0x489336['start'],_0x489336['end']);this['_trackingSessionId']&&(_0x2d9dd2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5ba960,meta:_0x22bed4}of this['_findSuggestions'](_0x4c664b,'insertion'))if(_0x22bed4['isOwn']&&!_0x22bed4['isNextTo']){if(_0x5ba960['isMultiRange']){const _0x4d7705=_0x5ba960['getRanges']()['filter'](_0x184372=>'$graveyard'!=_0x184372['root']['rootName']);_0x4d7705['every'](_0x3a4cfb=>_0x4c664b['containsRange'](_0x3a4cfb,!0x0))&&_0x5ba960['discard']();if(_0x4d7705['some'](_0x1f3589=>_0x1f3589['containsRange'](_0x4c664b,!0x0))){const _0xe0c213=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x432aea,'accept');return this['forceDefaultExecution'](()=>_0xe0c213([_0x4c664b],null,_0x2d9dd2)),null;}}else{const _0x182932=_0x4c664b['getIntersection'](_0x5ba960['getFirstRange']());null!==_0x182932&&_0x5ba960['_onDiscard']([_0x182932],null,_0x2d9dd2);}}if(_0x4c664b['detach'](),_0x4c664b['isCollapsed']||'$graveyard'==_0x4c664b['root']['rootName'])return null;let _0xfcff82=null,_0x5615d4=_0x4c664b['start'],_0x4a9ebe=_0x4c664b['end'];const _0x10b0a9=this['_findSuggestions'](_0x4c664b,'deletion');for(const {suggestion:_0x305903,meta:_0x186b15}of _0x10b0a9){const _0x36ff25=this['_model']['createRange'](_0x5615d4,_0x4a9ebe);if(_0x186b15['isOwn']&&(this['_mergeNestedSuggestions']||!_0x186b15['containsRangeInObject']&&!_0x186b15['isInsideObject'])){if(_0x305903['isMultiRange']){if(!Xt(_0x305903,_0x2d9dd2))continue;let _0x21c6a2=!0x0;for(const _0x21301b of _0x305903['getRanges']()){if(_0x21301b['containsRange'](_0x36ff25,!0x0))return _0x305903;_0x36ff25['containsRange'](_0x21301b)||(_0x21c6a2=!0x1);}_0x21c6a2&&_0x305903['discard']();}else{const _0x53c0d6=_0x305903['getFirstRange']();if(_0x53c0d6['containsRange'](_0x36ff25,!0x0))return _0x305903;if(!Xt(_0x305903,_0x2d9dd2)){_0x36ff25['containsRange'](_0x53c0d6)?_0x305903['removeMarkers']():_0x53c0d6['containsPosition'](_0x5615d4)?_0x5615d4=_0x53c0d6['end']:_0x53c0d6['containsPosition'](_0x4a9ebe)&&(_0x4a9ebe=_0x53c0d6['start']);continue;}_0x5615d4=_0x5615d4['isBefore'](_0x53c0d6['start'])?_0x5615d4:_0x53c0d6['start'],_0x4a9ebe=_0x4a9ebe['isAfter'](_0x53c0d6['end'])?_0x4a9ebe:_0x53c0d6['end'],_0x2d9dd2=Object['assign']({},_0x305903['attributes']),_0xfcff82?_0x53c0d6['start']['isBefore'](_0xfcff82['getFirstRange']()['start'])?(_0xfcff82['removeMarkers'](),_0xfcff82=_0x305903):_0x305903['removeMarkers']():_0xfcff82=_0x305903;}}}if(_0xfcff82)return this['_setSuggestionRange'](_0xfcff82,this['_model']['createRange'](_0x5615d4,_0x4a9ebe)),_0xfcff82;{const _0x4c2b41=_0x4e9a0b(),_0xd663d1=this['_model']['createRange'](_0x5615d4,_0x4a9ebe),_0x175ea9=_0x556370['id'],_0x4c2663=_0x432aea?'deletion:'+_0x432aea:'deletion',_0x1022e4=this['_setSuggestionData']({'id':_0x4c2b41,'type':_0x4c2663,'createdAt':new Date(),'authorId':_0x175ea9,'attributes':_0x2d9dd2});return this['_addSuggestionMarker'](_0x4c2663,_0x4c2b41,_0x175ea9,_0xd663d1),_0x1022e4;}}['markMultiRangeDeletion'](_0x5176c9,_0xa5bf3c='multi',_0x45e253={}){const _0x490021=this['editor']['plugins']['get']('Users')['me'],_0x3b9b60=_0x5176c9['map'](_0xf4ca4c=>new _0x1437b2(_0xf4ca4c['start'],_0xf4ca4c['end'])),_0x4dc3dd=new Set();this['_trackingSessionId']&&(_0x45e253['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4ca1b3,meta:_0x3dc455}of this['_findSuggestions'](_0x3b9b60,'insertion'))_0x3dc455['isOwn']&&!_0x3dc455['isNextTo']&&_0x4dc3dd['add'](_0x4ca1b3);for(const _0x3764ca of _0x4dc3dd)if(_0x3764ca['isMultiRange']){const _0x5e0a13=_0x3764ca['getRanges']();(!_0x3764ca['attributes']||!_0x3764ca['attributes']['skipNestingCheck'])&&(_0x5e0a13['every'](_0x3fc46f=>_0x3b9b60['some'](_0x1d2214=>_0x1d2214['containsRange'](_0x3fc46f,!0x0)))&&_0x3764ca['discard']());if(_0x3b9b60['every'](_0x342999=>_0x5e0a13['some'](_0x57e7d0=>_0x57e7d0['containsRange'](_0x342999,!0x0)))){const _0x2bb2a3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa5bf3c,'accept');return this['forceDefaultExecution'](()=>_0x2bb2a3(_0x5176c9,null,_0x45e253)),null;}}else{const _0x2d6a47=_0x3764ca['getFirstRange']();_0x3b9b60['some'](_0xd688df=>_0xd688df['containsRange'](_0x2d6a47,!0x0))&&_0x3764ca['discard']();if(_0x3b9b60['every'](_0x518852=>_0x2d6a47['containsRange'](_0x518852,!0x0))){const _0x530c1f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa5bf3c,'accept');return this['forceDefaultExecution'](()=>_0x530c1f(_0x3b9b60,null,_0x45e253)),null;}}const _0x255114=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa5bf3c,'join');let _0x405666=null;for(const _0xcf52c9 of this['getSuggestions']())if(_0xcf52c9['author']['id']==_0x490021['id']&&_0xcf52c9['isInContent']&&'deletion'==_0xcf52c9['type']&&_0xcf52c9['subType']==_0xa5bf3c&&Xt(_0xcf52c9,_0x45e253)&&(_0x255114(_0xcf52c9['getRanges'](),_0x3b9b60)||_0x255114(_0x3b9b60,_0xcf52c9['getRanges']()))){if(_0x405666){if(_0xcf52c9['commentThread']&&_0xcf52c9['commentThread']['length'])continue;for(const _0x3a5292 of _0xcf52c9['getRanges']())_0x405666['isIntersectingWithRange'](_0x3a5292)||_0x405666['addRange'](_0x3a5292);_0xcf52c9['removeMarkers']();}else{_0x405666=_0xcf52c9;for(const _0x30cd00 of _0x3b9b60)_0xcf52c9['isIntersectingWithRange'](_0x30cd00)||_0xcf52c9['addRange'](_0x30cd00);}}if(_0x405666)return _0x405666;_0x4dc3dd['clear']();for(const {suggestion:_0x3b4621,meta:_0x5cc5e5}of this['_findSuggestions'](_0x3b9b60,'deletion'))_0x5cc5e5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5cc5e5['containsRangeInObject']&&!_0x5cc5e5['isInsideObject'])&&Xt(_0x3b4621,_0x45e253)&&_0x4dc3dd['add'](_0x3b4621);for(const _0x5e01de of _0x4dc3dd){const _0x2e080b=_0x5e01de['getRanges']();if(!_0x45e253||!_0x45e253['skipNestingCheck']){if(_0x3b9b60['every'](_0x4ae6ad=>_0x2e080b['some'](_0x427694=>_0x427694['containsRange'](_0x4ae6ad,!0x0))))return _0x5e01de;}(!_0x5e01de['attributes']||!_0x5e01de['attributes']['skipNestingCheck'])&&(_0x2e080b['every'](_0x5b5a47=>_0x3b9b60['some'](_0x3fe2e5=>_0x3fe2e5['containsRange'](_0x5b5a47,!0x0)))&&_0x5e01de['discard']());}const _0x56e8eb=_0x4e9a0b(),_0x5c2f9c=_0x490021['id'],_0x3c7556='deletion:'+_0xa5bf3c,_0x1f0003=this['_setSuggestionData']({'id':_0x56e8eb,'type':_0x3c7556,'createdAt':new Date(),'authorId':_0x5c2f9c,'attributes':_0x45e253});for(const _0x3808cb of _0x3b9b60)_0x3808cb['detach'](),_0x3808cb['isCollapsed']||'$graveyard'==_0x3808cb['root']['rootName']||this['_addSuggestionMarker'](_0x3c7556,_0x56e8eb,_0x5c2f9c,_0x3808cb,T['getMultiRangeId']());return _0x1f0003;}['markAttributeChange'](_0x41e0ee,_0x538093,_0x2607f4,_0x141dfc,_0x3463a7){if(_0x41e0ee['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4d785b=this['editor']['plugins']['get']('Users')['me']['id'],_0x49c59c=Array['from'](this['_suggestions']['values']())['filter'](_0x255ef5=>'attribute'==_0x255ef5['type']&&_0x255ef5['data']['key']==_0x538093&&_0x255ef5['isIntersectingWithRange'](_0x41e0ee));if(this['_trackingSessionId']&&(_0x3463a7['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x20b15e=this['_findSuggestions'](_0x41e0ee,'insertion')['filter'](({meta:_0x3c4416})=>_0x3c4416['isOwn']&&!_0x3c4416['isInsideObject']&&!_0x3c4416['isNextTo'])['map'](({suggestion:_0x4381f2})=>_0x4381f2);_0x49c59c['unshift'](..._0x20b15e);}const _0xb72650=new Map([[_0x41e0ee,_0x2607f4]]);for(const _0xe123cc of _0x49c59c){const _0x5afa89='attribute'==_0xe123cc['type']?_0xe123cc['data']['oldValue']:void 0x0,_0x3f141e=_0xe123cc['getFirstRange'](),_0x2bf275=Array['from'](_0xb72650['keys']())['find'](_0x1b918e=>_0x1b918e['isIntersecting'](_0x3f141e));if(!_0x2bf275)continue;const _0x36ceec=_0x2bf275['getDifference'](_0x3f141e);this['_isBlockAttribute'](_0x538093)&&'insertion'==_0xe123cc['type']&&0x0!=_0x36ceec['length']||(_0xb72650['delete'](_0x2bf275),_0x36ceec['forEach'](_0xe60472=>{_0xb72650['set'](_0xe60472,_0x2607f4);}),'insertion'!=_0xe123cc['type']&&_0x5afa89!=_0x141dfc&&_0xb72650['set'](_0x2bf275['getIntersection'](_0x3f141e),_0x5afa89));}const _0x5d65ac=[];for(const [_0x24ed74,_0x16f6da]of _0xb72650){const _0x5b1aac=_0x4e9a0b(),_0x808b07={'key':_0x538093,'oldValue':_0x16f6da,'newValue':_0x141dfc};_0x538093['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':_0x538093});const _0x4675a5=('attribute:'+(_0x538093+'|'+Lt({'newValue':_0x141dfc})))['substring'](0x0,0x3c),_0xf5a94c=this['_setSuggestionData']({'id':_0x5b1aac,'type':_0x4675a5,'data':_0x808b07,'createdAt':new Date(),'authorId':_0x4d785b,'attributes':_0x3463a7});_0x5d65ac['push'](_0xf5a94c),this['_addSuggestionMarker'](_0x4675a5,_0x5b1aac,_0x4d785b,_0x24ed74);}return _0x5d65ac;}['enableDefaultAttributesIntegration'](_0x235840){this['enableCommand'](_0x235840,(_0x474400,..._0x1420e3)=>{this['recordAttributeChanges'](()=>{_0x474400(..._0x1420e3);});});}['registerBlockAttribute'](_0x4cefd6){this['_blockAttributeKeys']['add'](_0x4cefd6);}['registerInlineAttribute'](_0x4c61c3){this['_inlineAttributeKeys']['add'](_0x4c61c3);}['startTrackingSession'](_0x214c2d){return this['_trackingSessionId']=void 0x0!==_0x214c2d?_0x214c2d:_0x4e9a0b(),this['_trackingSessionId'];}['_getAttributeKey'](_0x5c761e){return'attribute'==_0x5c761e['type']?_0x5c761e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3b94d7,_0x593ef){const _0x46866=_0x3b94d7['getFirstMarker']();this['_model']['change'](_0x285204=>{_0x285204['updateMarker'](_0x46866,{'range':_0x593ef});});}['_addThreadToSuggestion'](_0x2033f8){const _0x4dd3f4=_0x2033f8['id'],_0x3d2c4a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4dd3f4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3d2c4a,'threadId':_0x4dd3f4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x930248=this['_commentsRepository']['getCommentThread'](_0x4dd3f4);_0x930248['unbind']('isRemovable'),_0x930248['isRemovable']=!0x1,_0x2033f8['commentThread']=_0x930248;}['_checkSuggestionCorrectness'](_0x164583,_0x5a3bdb,_0x3bc652,_0x41c15f){if(_0x164583['type']!=_0x5a3bdb||_0x164583['subType']!=_0x3bc652||_0x164583['creator']['id']!=_0x41c15f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3e0d43('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x312b1d,_0x3a103f){const _0x11a7d7=_0x312b1d['getFirstRange']();if(_0x3a103f['isEqual'](_0x11a7d7))_0x312b1d['removeMarkers']();else{if(_0x11a7d7['containsRange'](_0x3a103f)){const _0x9d7eb9=this['_model']['createPositionAt'](_0x3a103f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x312b1d,this['_model']['createRange'](_0x11a7d7['start'],_0x9d7eb9));const _0x4e461f=_0x4e9a0b(),_0x4858b1=_0x312b1d['creator']['id'],_0x32be09=_0x312b1d['type']+':'+_0x312b1d['subType'];this['_setSuggestionData']({'id':_0x4e461f,'type':_0x32be09,'createdAt':new Date(),'authorId':_0x4858b1,'data':_0x312b1d['data'],'attributes':_0x312b1d['attributes']});const _0x227afd=this['_model']['createPositionAt'](_0x3a103f['end']['parent'],'after'),_0x463b22=this['_model']['createRange'](_0x227afd,_0x11a7d7['end']);this['_addSuggestionMarker'](_0x32be09,_0x4e461f,_0x4858b1,_0x463b22);}else{if(_0x11a7d7['containsPosition'](_0x3a103f['start'])){const _0x3ba2ec=this['_model']['createPositionAt'](_0x3a103f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x312b1d,this['_model']['createRange'](_0x11a7d7['start'],_0x3ba2ec));}else{const _0x150de9=this['_model']['createPositionAt'](_0x3a103f['end']['parent'],'after');this['_setSuggestionRange'](_0x312b1d,this['_model']['createRange'](_0x150de9,_0x11a7d7['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x489f27){for(const {suggestion:_0x3db35e,meta:_0x18ca7e}of this['_findSuggestions'](_0x489f27,'insertion')){if(!_0x18ca7e['isOwn'])continue;const _0xfe17c0=_0x3db35e['getRanges']();for(const _0x593739 of _0xfe17c0)if(!_0x489f27['getDifference'](_0x593739)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x29e44f){const _0x4a9655=this['editor']['plugins']['get']('Users')['getUser'](_0x29e44f);if(!_0x4a9655)throw new _0x3e0d43('track-changes-user-not-found',this);return _0x4a9655;}['_getExternalAuthor'](_0x1e2538){const _0x125305=this['editor']['plugins']['get']('Users'),_0xa5a90d=_0x752554('external:'+_0x1e2538),_0x1138b7=_0x125305['getUser'](_0xa5a90d);return _0x1138b7||_0x125305['addUser']({'id':_0xa5a90d,'name':_0x1e2538});}['_createSuggestion'](_0x3bf2da,_0x3e03bc,_0x5877b3,_0xbbd5ef,_0x12bb65,_0x4f412b){const _0x9deea6=this['_getAuthorFromId'](_0xbbd5ef),_0x1d2edb=this['_suggestionFactory']['buildSuggestion'](_0x3bf2da,_0x3e03bc,_0x5877b3,_0x9deea6,_0x12bb65,_0x3ce6cf=>{this['_updateSuggestionData'](_0x5877b3,{'attributes':_0x3ce6cf});const _0x5d01b1=this['getSuggestion'](_0x5877b3);this['_joinWithAdjacentSuggestions'](new Set([_0x5d01b1])),this['_refreshSuggestionsChain'](new Set([_0x5d01b1]));},_0x4f412b);return this['listenTo'](_0x1d2edb,'accept',()=>{this['_updateSuggestionData'](_0x5877b3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1d2edb,'discard',()=>{this['_updateSuggestionData'](_0x5877b3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5877b3,_0x1d2edb),this['_suggestionState']['set'](_0x1d2edb,'notReady'),_0x1d2edb;}['_splitMarkerName'](_0x18b02e){const _0x317e43=_0x18b02e['split'](':');return{'group':_0x317e43[0x0],'type':_0x317e43[0x1],'subType':_0x317e43['length']>=0x5?_0x317e43[0x2]:null,'id':_0x317e43['length']<0x5?_0x317e43[0x2]:_0x317e43[0x3],'authorId':_0x317e43['length']<0x5?_0x317e43[0x3]:_0x317e43[0x4],'markerCount':0x6==_0x317e43['length']?_0x317e43[0x5]:null};}['_breakSuggestionMarker'](_0x134297,_0x5b6474,_0x5656ac){const _0x217328=_0x134297['getFirstRange'](),_0x28d7d9=_0x217328['start'],_0x5887b2=_0x217328['end'];this['_setSuggestionRange'](_0x134297,this['_model']['createRange'](_0x28d7d9,_0x5b6474));const _0x3ef51e=_0x4e9a0b(),_0x1a340b=_0x134297['creator']['id'],_0x2abffc=_0x134297['type']+(_0x134297['subType']?':'+_0x134297['subType']:'');this['_setSuggestionData']({'id':_0x3ef51e,'type':_0x2abffc,'createdAt':new Date(),'authorId':_0x1a340b,'originalSuggestionId':_0x134297['_originalSuggestionId']||_0x134297['id'],'attributes':_0x134297['attributes'],'data':_0x134297['data']});const _0x1d479e=this['_getAttributeKey'](_0x134297);('formatBlock'==_0x134297['type']||_0x1d479e&&this['_isBlockAttribute'](_0x1d479e))&&(_0x5656ac=this['_model']['createPositionBefore'](_0x5656ac['parent'])),this['_addSuggestionMarker'](_0x2abffc,_0x3ef51e,_0x1a340b,this['_model']['createRange'](_0x5656ac,_0x5887b2));}['_findSuggestions'](_0x3eb966,_0x4a83bd=null){const _0x16d056=[],_0x1a8bb2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3eb966)||(_0x3eb966=[_0x3eb966]);for(const _0x39e2dc of this['getSuggestions']()){if(!_0x39e2dc['isInContent'])continue;if(_0x4a83bd&&_0x39e2dc['type']!=_0x4a83bd)continue;let _0x5b4e33=!0x1;for(const _0x32e4d6 of _0x39e2dc['getRanges']()){for(const _0x26df0c of _0x3eb966){const _0x2f2396=_0x26df0c['start']['isEqual'](_0x32e4d6['end'])||_0x26df0c['end']['isEqual'](_0x32e4d6['start']);if(_0x2f2396||_0x26df0c['getIntersection'](_0x32e4d6)){const _0x252027=_0x26df0c['containsRange'](_0x32e4d6)&&Ft(this['_model']['schema'],_0x32e4d6['start'],_0x26df0c),_0x409ce3=_0x32e4d6['containsRange'](_0x26df0c)&&Ft(this['_model']['schema'],_0x26df0c['start'],_0x32e4d6);_0x16d056['push']({'suggestion':_0x39e2dc,'meta':{'isOwn':_0x1a8bb2==_0x39e2dc['author'],'isNextTo':_0x2f2396,'isInsideObject':_0x252027,'containsRangeInObject':_0x409ce3}}),_0x5b4e33=!0x0;break;}}if(_0x5b4e33)break;}}return _0x16d056;}['_addSuggestionMarker'](_0x3b1ca5,_0x101339,_0x29f7f7,_0x30fdcd,_0x20d8c9){this['_model']['change'](_0x35ea09=>{let _0x477632='suggestion:'+_0x3b1ca5+':'+_0x101339+':'+_0x29f7f7;_0x20d8c9&&(_0x477632=_0x477632+':'+_0x20d8c9),_0x35ea09['addMarker'](_0x477632,{'range':_0x30fdcd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x21ec35){const _0x49280=_0x21ec35['previous'],_0x917f55=_0x21ec35['next'];_0x21ec35['previous']=null,_0x21ec35['next']=null,null!=_0x49280&&_0x49280['next']==_0x21ec35&&(_0x49280['next']=_0x917f55),null!=_0x917f55&&_0x917f55['previous']==_0x21ec35&&(_0x917f55['previous']=_0x49280),'ready'==this['_suggestionState']['get'](_0x21ec35)&&(this['_suggestionState']['set'](_0x21ec35,'removed'),this['fire']('suggestionUnloaded',_0x21ec35,_0x49280,_0x917f55));}['_setSuggestionData'](_0x448e52){const _0x37bb3a=_0x448e52['id'],_0x100075=this['addSuggestionData'](_0x448e52);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x10313c=this['editor']['plugins']['get']('PendingActions'),_0x5c5573=_0x100075['hasComments'],_0x1f34ba=_0x100075['subType']?_0x100075['type']+':'+_0x100075['subType']:_0x100075['type'],_0x35f07e=this['editor']['locale'],_0x1486f0=_0x10313c['add'](o(_0x35f07e,'PENDING_ACTION_SUGGESTION')),_0x1ce27d={'id':_0x37bb3a,'type':_0x1f34ba,'hasComments':_0x5c5573,'data':_0x448e52['data']||null,'originalSuggestionId':_0x448e52['originalSuggestionId']||null,'attributes':_0x100075['attributes']};this['_adapter']['addSuggestion'](_0x1ce27d)['then'](_0x21cd0c=>{_0x100075['_saved']=!0x0,_0x10313c['remove'](_0x1486f0),_0x21cd0c&&_0x21cd0c['createdAt']&&(this['_suggestions']['get'](_0x37bb3a)['createdAt']=_0x21cd0c['createdAt']);})['catch'](_0x80b975=>{throw _0x4cc463('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x100075['discard']();}),_0x100075['stopListening'](),this['_suggestions']['delete'](_0x100075['id']),this['_suggestionState']['delete'](_0x100075),_0x80b975;});}return _0x100075;}['_isBlockAttribute'](_0x778fd0){return this['_blockAttributeKeys']['has'](_0x778fd0);}['_isInlineAttribute'](_0x424e8a){return this['_inlineAttributeKeys']['has'](_0x424e8a);}['_updateSuggestionData'](_0x257b42,_0x58ccd8){const _0x2f1be9=this['editor']['plugins']['get']('PendingActions'),_0x49e5ad=this['getSuggestion'](_0x257b42);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x49e5ad['_saved']){const _0x1067eb=_0x2f1be9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x257b42,_0x58ccd8)['then'](()=>{_0x2f1be9['remove'](_0x1067eb);});}else _0x49e5ad['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x257b42,_0x58ccd8);});}}['_getSuggestionData'](_0x4c3d72){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3e0d43('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4c3d72);}['_handleNewSuggestionMarker'](_0x4941f9){const {id:_0x21da90,type:_0x3b9dd5,subType:_0x3c9ed0,authorId:_0x4d872c}=this['_splitMarkerName'](_0x4941f9),_0x28a1a1=this['_suggestions']['get'](_0x21da90)||this['_createSuggestion'](_0x3b9dd5,_0x3c9ed0,_0x21da90,_0x4d872c,{});switch(this['_checkSuggestionCorrectness'](_0x28a1a1,_0x3b9dd5,_0x3c9ed0,_0x4d872c),this['_suggestionState']['get'](_0x28a1a1)){case'notReady':this['_getSuggestionData'](_0x21da90)['then'](_0x2942f2=>{let _0x1d9a7a=Promise['resolve']();_0x2942f2['hasComments']&&(_0x1d9a7a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x21da90})),_0x1d9a7a['then'](()=>{this['addSuggestionData'](_0x2942f2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x28a1a1,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x21da90,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x28a1a1,'ready'),this['fire']('suggestionLoaded',_0x28a1a1);break;case'ready':this['fire']('suggestionChanged',_0x28a1a1);}return _0x28a1a1['addMarkerName'](_0x4941f9),_0x28a1a1;}['_refreshSuggestionsChain'](_0xa341c9){const _0x2b4964=Array['from'](_0xa341c9),_0x5dc569=_0x2b4964['filter'](_0xe1cb43=>'attribute'==_0xe1cb43['type']);this['_refreshAttributeSuggestionsChain'](_0x5dc569);const _0x496d51=_0x2b4964['filter'](_0x248c8e=>!_0x248c8e['isMultiRange']&&'attribute'!=_0x248c8e['type']),_0x132c64=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54c55b=>!_0x54c55b['isMultiRange']&&'attribute'!=_0x54c55b['type']),_0x143cf8=_0x132c64['filter'](_0x22d9de=>!_0xa341c9['has'](_0x22d9de)),_0x287ac4=new Map(_0x132c64['map'](_0x693a17=>[_0x693a17,this['_suggestionFactory']['getSuggestionCallback'](_0x693a17['type'],_0x693a17['subType'],'chain')])),_0x508ae9=new Map(_0x132c64['map'](_0x4f46d0=>[_0x4f46d0,_0x4f46d0['getFirstRange']()])),_0x13c4b1=new Set(),_0x550f5e=new Set();for(let _0x393b56=0x0;_0x393b56<_0x496d51['length'];_0x393b56++)_0x52a05c(_0x496d51[_0x393b56],_0x496d51,_0x393b56+0x1);for(let _0x1ac265=0x0;_0x1ac265<_0x496d51['length'];_0x1ac265++)_0x52a05c(_0x496d51[_0x1ac265],_0x143cf8,0x0);const _0x1e3eeb=new Set();for(let _0x4619f5=0x0;_0x4619f5<_0x496d51['length'];_0x4619f5++){const _0x1c82a4=_0x496d51[_0x4619f5];!_0x550f5e['has'](_0x1c82a4)&&_0x1c82a4['previous']&&(_0x1e3eeb['add'](_0x1c82a4['previous']),_0x1c82a4['previous']['next']===_0x1c82a4&&(_0x1c82a4['previous']['next']=null),_0x1c82a4['previous']=null),!_0x13c4b1['has'](_0x1c82a4)&&_0x1c82a4['next']&&(_0x1e3eeb['add'](_0x1c82a4['next']),_0x1c82a4['next']['previous']===_0x1c82a4&&(_0x1c82a4['next']['previous']=null),_0x1c82a4['next']=null);}function _0x52a05c(_0x388d22,_0xf00fcc,_0x3689a2){for(let _0x5b01e9=_0x3689a2;_0x5b01e9<_0xf00fcc['length'];_0x5b01e9++){const _0x926d00=_0x2a280c(_0x388d22,_0xf00fcc[_0x5b01e9]);_0x926d00&&(_0x926d00[0x0]['next']=_0x926d00[0x1],_0x926d00[0x1]['previous']=_0x926d00[0x0],_0x13c4b1['add'](_0x926d00[0x0]),_0x550f5e['add'](_0x926d00[0x1]));}}function _0x2a280c(_0x31f5dd,_0x1f1d8a){if(_0x31f5dd['author']['id']!==_0x1f1d8a['author']['id'])return null;const _0x3f0221=_0x287ac4['get'](_0x31f5dd)(_0x31f5dd,_0x1f1d8a,_0x508ae9['get'](_0x31f5dd),_0x508ae9['get'](_0x1f1d8a));if(!_0x3f0221)return null;return _0x287ac4['get'](_0x1f1d8a)(_0x31f5dd,_0x1f1d8a,_0x508ae9['get'](_0x31f5dd),_0x508ae9['get'](_0x1f1d8a))?_0x3f0221[0x1]['commentThread']&&_0x3f0221[0x1]['commentThread']['length']?null:_0x3f0221:null;}_0x1e3eeb['size']&&this['_refreshSuggestionsChain'](_0x1e3eeb);}['_refreshAttributeSuggestionsChain'](_0x1d8231){if(0x0==_0x1d8231['length'])return;const _0x1ed852=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c7fe1=>'attribute'==_0x5c7fe1['type']&&_0x5c7fe1['_isDataLoaded']),_0x24118b=[],_0x2c5a39=new Map();for(const _0x44da03 of _0x1ed852){const _0x363a4a=_0x752554(_0x44da03['attributes']);_0x2c5a39['has'](_0x363a4a)||(_0x2c5a39['set'](_0x363a4a,_0x24118b['length']),_0x24118b['push']([]));const _0x249836=_0x2c5a39['get'](_0x363a4a);_0x24118b[_0x249836]['push'](_0x44da03);}!(function(){_0x24118b['sort']((_0x5d2ed5,_0xbcd609)=>{const _0xe0087a=_0x5d2ed5[0x0]['createdAt'],_0x579a68=_0xbcd609[0x0]['createdAt'];return _0xe0087a==_0x579a68?_0x5d2ed5[0x0]['attributes']['groupId']<_0xbcd609[0x0]['attributes']['groupId']?-0x1:0x1:_0xe0087a<_0x579a68?-0x1:0x1;});for(const _0x1769b7 of _0x24118b)_0x1769b7['sort']((_0x315386,_0x1807e5)=>_0x315386['id']<_0x1807e5['id']?-0x1:0x1);}());for(let _0x20873b=0x0;_0x20873b<_0x24118b['length'];_0x20873b++){if(0x0==_0x24118b[_0x20873b]['length'])continue;const _0x1182c1=[];for(let _0x5eb8f3=_0x20873b+0x1;_0x5eb8f3<_0x24118b['length'];_0x5eb8f3++)0x0!=_0x24118b[_0x5eb8f3]['length']&&_0x58d322(_0x24118b[_0x20873b],_0x24118b[_0x5eb8f3])&&_0x1182c1['push'](_0x5eb8f3);for(const _0x260093 of _0x1182c1)_0x24118b[_0x20873b]=_0x24118b[_0x20873b]['concat'](_0x24118b[_0x260093]),_0x24118b[_0x260093]=[];}for(const _0x483e0c of _0x24118b)for(let _0xccad82=0x0;_0xccad82<_0x483e0c['length'];_0xccad82++){const _0x3011af=_0x483e0c[_0xccad82+0x1]||null;_0x483e0c[_0xccad82]['next']!==_0x3011af&&(_0x483e0c[_0xccad82]['next']=_0x3011af);}for(const _0x2f7c66 of _0x24118b)for(let _0x3b6e67=0x0;_0x3b6e67<_0x2f7c66['length'];_0x3b6e67++){const _0x4aac5d=_0x2f7c66[_0x3b6e67-0x1]||null;_0x2f7c66[_0x3b6e67]['previous']!==_0x4aac5d&&(_0x2f7c66[_0x3b6e67]['previous']=_0x4aac5d);}function _0x58d322(_0x14cfcc,_0x20dc45){if(_0x14cfcc[0x0]['attributes']['groupId']!==_0x20dc45[0x0]['attributes']['groupId']&&_0x14cfcc[0x0]['author']!==_0x20dc45[0x0]['author'])return!0x1;if(!function(_0x4c2185,_0xe7e9f2){if(!_0x4c2185['hasComments']&&!_0xe7e9f2['hasComments'])return!0x0;if(_0x4c2185['hasComments']&&_0xe7e9f2['hasComments'])return!0x1;if(_0x4c2185['hasComments']&&_0xe7e9f2['createdAt']<_0x4c2185['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xe7e9f2['hasComments']&&_0x4c2185['createdAt']<_0xe7e9f2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x14cfcc[0x0],_0x20dc45[0x0]))return!0x1;const _0x41271a=Ut(_0x14cfcc[0x0]['attributes'],['groupId','trackingSessionId']),_0x337e53=Ut(_0x20dc45[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xe99400(_0x41271a,_0x337e53))return!0x1;if(_0x14cfcc[0x0]['attributes']['groupId']==_0x20dc45[0x0]['attributes']['groupId'])return!0x0;if(_0x14cfcc[0x0]['attributes']['trackingSessionId']!==_0x20dc45[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x14cfcc['every'](_0x5129d9=>_0x20dc45['some'](_0x493c79=>_0x5129d9['getFirstRange']()['isEqual'](_0x493c79['getFirstRange']())))&&_0x20dc45['every'](_0x2c96ce=>_0x14cfcc['some'](_0x1c3a06=>_0x2c96ce['getFirstRange']()['isEqual'](_0x1c3a06['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3e6d40){const _0x4e61a4=Array['from'](_0x3e6d40),_0x567bd3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x179ad9=_0x567bd3['filter'](_0x4c3608=>!_0x3e6d40['has'](_0x4c3608)),_0x304341=new Map(_0x4e61a4['map'](_0x5b33c4=>[_0x5b33c4,this['_suggestionFactory']['getSuggestionCallback'](_0x5b33c4['type'],_0x5b33c4['subType'],'join')])),_0x146c8f=new Map(_0x567bd3['map'](_0xe9536=>[_0xe9536,_0xe9536['getRanges']()]));for(let _0x25aa5c=0x0;_0x25aa5c<_0x4e61a4['length'];_0x25aa5c++){if(_0x3fabfa(this,_0x4e61a4[_0x25aa5c],_0x4e61a4,_0x25aa5c+0x1))return!0x0;}for(let _0x467936=0x0;_0x467936<_0x4e61a4['length'];_0x467936++){if(_0x3fabfa(this,_0x4e61a4[_0x467936],_0x179ad9,0x0))return!0x0;}return!0x1;function _0x3fabfa(_0x5a386d,_0x2882ca,_0x3efc00,_0x2ad560){for(let _0x55cf38=_0x2ad560;_0x55cf38<_0x3efc00['length'];_0x55cf38++){const _0x1a28bb=_0x3efc00[_0x55cf38];if(_0x1a28bb['type']!==_0x2882ca['type']||_0x1a28bb['author']['id']!==_0x2882ca['author']['id']||_0x1a28bb['subType']!==_0x2882ca['subType'])continue;if(!Qt(_0x2882ca,_0x1a28bb))continue;if('attribute'==_0x2882ca['type']&&_0x2882ca['data']['oldValue']!=_0x1a28bb['data']['oldValue'])continue;if('attribute'==_0x2882ca['type']&&_0x5a386d['_isBlockAttribute'](_0x2882ca['data']['key']))continue;if('formatBlock'==_0x2882ca['type']){const _0x40ca11=_0x5a386d['editor']['model'],_0x2e1c68=_0x2882ca['getContainedElement']();if(_0x2e1c68&&(_0x40ca11['schema']['isObject'](_0x2e1c68)||_0x40ca11['schema']['isLimit'](_0x2e1c68)))continue;}const _0x464b7b=_0x304341['get'](_0x2882ca),_0x549066=_0x146c8f['get'](_0x2882ca),_0x2256c0=_0x146c8f['get'](_0x1a28bb),_0x1469ce=_0x2882ca['commentThread']&&_0x2882ca['commentThread']['length'],_0x553b1a=_0x1a28bb['commentThread']&&_0x1a28bb['commentThread']['length'];if(!_0x1469ce&&_0x464b7b(_0x2256c0,_0x549066))return _0x5a386d['_joinSuggestions'](_0x1a28bb,_0x2882ca),_0x146c8f['delete'](_0x2882ca),!0x0;if(!_0x553b1a&&_0x464b7b(_0x549066,_0x2256c0))return _0x5a386d['_joinSuggestions'](_0x2882ca,_0x1a28bb),_0x146c8f['delete'](_0x1a28bb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5eb330,_0x10dbd4){if(_0x5eb330['isMultiRange']){for(const _0x3cd7fe of _0x10dbd4['getRanges']())_0x5eb330['addRange'](_0x3cd7fe);}else{const _0x210376=_0x10dbd4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5eb330,this['_model']['createRange'](_0x5eb330['getFirstRange']()['start'],_0x210376));}_0x10dbd4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2c82b4,_0x177e55,_0x381e27){const _0x524723=_0x2c82b4['startsWith']('format')||_0x2c82b4['startsWith']('attribute')?'FORMATTING':_0x2c82b4['toUpperCase']();return o(this['editor']['locale'],_0x177e55+'_'+_0x524723+'_SUGGESTION_ANNOUNCEMENT',_0x381e27);}['_initAriaMarkerChangeAnnouncements'](){const _0x5a0e61=this['editor'];if(!_0x5a0e61['ui'])return;const {ariaLiveAnnouncer:_0x3bcf69}=_0x5a0e61['ui'];_0x4bfe6a(this['_model'],({left:_0x1a0446,entered:_0x414af6})=>{for(const _0x12a918 of _0x1a0446){const {group:_0x33ee5d,type:_0x4040ea}=this['_splitMarkerName'](_0x12a918['name']);if('suggestion'===_0x33ee5d){_0x3bcf69['announce'](this['_getMarkerAnnouncementText'](_0x4040ea,'LEAVE'));break;}}for(const _0x4f8a22 of _0x414af6){const {group:_0x4a6c34,type:_0x413e15}=this['_splitMarkerName'](_0x4f8a22['name']);if('suggestion'===_0x4a6c34){_0x3bcf69['announce'](this['_getMarkerAnnouncementText'](_0x413e15,'ENTER',_0x3cf1d4(_0x4085c9)));break;}}});}['_processAttributeChanges'](_0xf6ec71){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4d97e5=this['editor'],_0x3b5c12=_0x4d97e5['model']['document']['differ']['getChanges']();if(0x0==_0x3b5c12['length'])return!0x1;const _0x1bdf3a=[],_0x3eace1=_0x3b5c12['filter'](_0x108a66=>'attribute'==_0x108a66['type']),_0x5efd52=_0x3b5c12['filter'](_0x4bf7b5=>'insert'==_0x4bf7b5['type']&&'$text'!=_0x4bf7b5['name']),_0x1cc0b7=_0x3b5c12['filter'](_0x5224d4=>'remove'==_0x5224d4['type']&&'$text'!=_0x5224d4['name']);for(const _0x1d2c6f of _0x3eace1)_0x1bdf3a['push']({'key':_0x1d2c6f['attributeKey'],'newValue':_0x1d2c6f['attributeNewValue'],'oldValue':_0x1d2c6f['attributeOldValue'],'range':qt(_0x1d2c6f['range'],_0x4d97e5['model'])});for(const _0x3e105f of _0x5efd52){const _0x20b251=_0x1cc0b7['find'](_0x1efb80=>_0x1efb80['position']['isEqual'](_0x3e105f['position']));_0x20b251&&_0x1bdf3a['push']({'key':m,'newValue':_0x3e105f['name'],'oldValue':_0x20b251['name'],'range':_0x4d97e5['model']['createRangeOn'](_0x3e105f['position']['nodeAfter'])});}return 0x0!=_0x1bdf3a['length']&&this['_reduceExistingSuggestions'](_0xf6ec71,_0x1bdf3a);}['_processAttributeSuggestions'](_0x211e4f){let _0x360218=!0x1;const _0x2a6b2a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x38fcf4=>_0x38fcf4['data']['newRange']&&_0x38fcf4['name']['startsWith']('suggestion:attribute:'));for(const _0x52b8b6 of _0x2a6b2a){const {subType:_0x1b108f,id:_0x4c3cbe}=this['_splitMarkerName'](_0x52b8b6['name']),_0x671227=_0x1b108f['split']('|')[0x0];for(const _0x417174 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x417174['id']!=_0x4c3cbe&&'attribute'==_0x417174['type']&&_0x417174['data']&&_0x417174['data']['key']==_0x671227&&_0x417174['getFirstRange']()['isIntersecting'](_0x52b8b6['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x417174,_0x52b8b6['data']['newRange'],_0x211e4f),_0x360218=!0x0);}return _0x360218;}['recordAttributeChanges'](_0x5175dd){this['_recordAttributeSuggestions']=!0x0,_0x5175dd();}['_isRegisteredAttribute'](_0x5d2aad){const _0x42bbd7=this['_isBlockAttribute'](_0x5d2aad),_0xc60578=this['_isInlineAttribute'](_0x5d2aad);return _0x42bbd7||_0xc60578;}['_reduceExistingSuggestions'](_0x17d7b5,_0x17e75b){if(0x0==_0x17e75b['length'])return!0x1;let _0x21883b=!0x1;for(const _0x1a1b6e of _0x17e75b){const _0x4a2c40=this['_findSuggestions'](_0x1a1b6e['range'],'attribute')['filter'](_0x4f25b3=>!_0x4f25b3['meta']['isNextTo'])['map'](_0x4c10db=>_0x4c10db['suggestion']),_0x2b2c48=_0x752554({'newValue':_0x1a1b6e['newValue']});_0x4a2c40['filter'](_0x5eaf0a=>{const [_0xa34e00,_0x4b970f]=_0x5eaf0a['subType']['split']('|');return _0xa34e00==_0x1a1b6e['key']&&_0x4b970f!=_0x2b2c48;})['forEach'](_0x3ce6ee=>{this['_reduceSuggestionAttributeRange'](_0x3ce6ee,_0x1a1b6e['range'],_0x17d7b5),_0x21883b=!0x0;});}return _0x21883b;}['_reduceSuggestionAttributeRange'](_0x3923c8,_0x1eb250,_0x4867ff){const _0xf29ac8=_0x3923c8['getFirstRange']()['getDifference'](_0x1eb250);0x0!==_0xf29ac8['length']?0x1!==_0xf29ac8['length']?this['_breakSuggestionMarker'](_0x3923c8,_0x1eb250['start'],_0x1eb250['end']):this['_setSuggestionRange'](_0x3923c8,_0xf29ac8[0x0]):_0x4867ff['removeMarker'](_0x3923c8['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x9db2b1){this['_editor']=_0x9db2b1,this['_model']=_0x9db2b1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xe177b9,_0x58a760,_0xcc236b,_0x5611db,_0x4fa25d,_0x11f257,_0x271919){return new T(this['_model'],{'type':_0xe177b9,'subType':_0x58a760,'id':_0xcc236b,'originalSuggestionId':_0x271919,'author':_0x5611db,'creator':_0x5611db,'attributes':_0x4fa25d,'onAttributesChange':_0x11f257,'onAccept':(..._0x3488d2)=>this['getSuggestionCallback'](_0xe177b9,_0x58a760,'accept')(..._0x3488d2),'onDiscard':(..._0x527ee0)=>this['getSuggestionCallback'](_0xe177b9,_0x58a760,'discard')(..._0x527ee0)});}['registerCustomCallback'](_0x1b8342,_0xd4a16,_0x555c8d,_0x5e1977){const _0x27ad4a=_0x1b8342+':'+_0xd4a16+':'+_0x555c8d;this['_customCallbacks']['set'](_0x27ad4a,_0x5e1977);}['getSuggestionCallback'](_0x54c87f,_0x11f6e3,_0x443d7a){const _0x3cca5d=_0x54c87f+':'+_0x11f6e3+':'+_0x443d7a;return this['_customCallbacks']['get'](_0x3cca5d)||this['_defaultCallbacks']['get'](_0x54c87f+':'+_0x443d7a);}['_registerDefaultCallbacks'](){const _0x2f4c55=()=>!0x1,_0x188d52=_0x170676=>{_0x170676['sort']((_0x3a86b3,_0x246f9b)=>_0x3a86b3['start']['isBefore'](_0x246f9b['start'])?0x1:-0x1),this['_model']['change'](_0x2a858c=>{for(const _0xe31c55 of _0x170676){let _0x547ca1;_0x547ca1=_0xe31c55['end']['isAtEnd']&&_0xe31c55['end']['parent']==_0xe31c55['start']['nodeAfter']?_0x2a858c['createSelection'](_0xe31c55['start']['nodeAfter'],'on'):_0x2a858c['createSelection'](_0xe31c55),this['_model']['deleteContent'](_0x547ca1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5e3cc6=(_0x412fd1,_0x4062e3)=>{_0x4062e3&&this['_model']['change'](_0x2730ba=>{const {commandName:_0x5c7aea,commandParams:_0x46dae6=[]}=_0x4062e3,_0x47fccd=_0x412fd1['map'](_0x522ff9=>(Pt(_0x522ff9)&&(_0x522ff9=this['_model']['createRange'](_0x522ff9['end'])),_0x522ff9))['filter'](_0x1bfcdd=>'$graveyard'!==_0x1bfcdd['root']['rootName']);if(_0x47fccd['length']<0x1)return;const _0xedbe85=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5c5486=>_0x1437b2['fromRange'](_0x5c5486));_0x2730ba['setSelection'](_0x47fccd);for(const _0x9bbf5f of this['_editor']['commands']['commands']())_0x9bbf5f['refresh']();_0x46dae6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5c7aea,..._0x46dae6);const _0x14c9bf=_0xedbe85['filter'](_0x1e1a5a=>'$graveyard'!=_0x1e1a5a['root']['rootName']);_0x14c9bf['length']>0x0&&_0x2730ba['setSelection'](_0x14c9bf);for(const _0x221d59 of _0xedbe85)_0x221d59['detach']();});},_0x30cd78=(_0x24f7c8,_0xb9384d)=>0x1==_0x24f7c8['length']&&0x1==_0xb9384d['length']&&_0x24f7c8[0x0]['end']['isEqual'](_0xb9384d[0x0]['start']),_0x362cbc=(_0x2b0d4f,_0x435a81,_0x537529,_0x340529)=>Wt(_0x2b0d4f,_0x435a81,_0x537529,_0x340529)?[_0x2b0d4f,_0x435a81]:Wt(_0x435a81,_0x2b0d4f,_0x340529,_0x537529)?[_0x435a81,_0x2b0d4f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2f4c55),this['_defaultCallbacks']['set']('insertion:discard',_0x188d52),this['_defaultCallbacks']['set']('insertion:join',_0x30cd78),this['_defaultCallbacks']['set']('insertion:chain',_0x362cbc),this['_defaultCallbacks']['set']('deletion:accept',_0x188d52),this['_defaultCallbacks']['set']('deletion:discard',_0x2f4c55),this['_defaultCallbacks']['set']('deletion:join',_0x30cd78),this['_defaultCallbacks']['set']('deletion:chain',_0x362cbc),this['_defaultCallbacks']['set']('formatInline:accept',_0x5e3cc6),this['_defaultCallbacks']['set']('formatInline:discard',_0x2f4c55),this['_defaultCallbacks']['set']('formatInline:join',_0x30cd78),this['_defaultCallbacks']['set']('formatInline:chain',_0x2f4c55),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5e3cc6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2f4c55),this['_defaultCallbacks']['set']('formatBlock:join',_0x30cd78),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2f4c55),this['_defaultCallbacks']['set']('attribute:accept',_0x2f4c55),this['_defaultCallbacks']['set']('attribute:discard',(_0x1763be,_0x1b5ea9)=>{if(!_0x1b5ea9)return;const _0x1b1c6e=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x3920b1=>{if(_0x1b5ea9['key']==m)for(const _0x307fd6 of _0x1763be){const _0x4cac5a=_0x307fd6['start']['nodeAfter'],_0x1d9050=_0x1b5ea9['oldValue'];_0x3920b1['rename'](_0x4cac5a,_0x1d9050);}else{if(_0x1b1c6e['_isBlockAttribute'](_0x1b5ea9['key'])){for(const _0x22495d of _0x1763be)void 0x0!==_0x1b5ea9['oldValue']?_0x3920b1['setAttribute'](_0x1b5ea9['key'],_0x1b5ea9['oldValue'],_0x22495d['start']['nodeAfter']):_0x3920b1['removeAttribute'](_0x1b5ea9['key'],_0x22495d['start']['nodeAfter']);}else{for(const _0x401019 of _0x1763be)_0x1b5ea9['oldValue']?_0x3920b1['setAttribute'](_0x1b5ea9['key'],_0x1b5ea9['oldValue'],_0x401019):_0x3920b1['removeAttribute'](_0x1b5ea9['key'],_0x401019);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x30cd78);}}function Ft(_0x381eae,_0x481ea2,_0x41cd80){for(const _0x45917f of _0x481ea2['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x45917f['root']==_0x45917f)return!0x1;if(!_0x41cd80['containsItem'](_0x45917f))return!0x1;if(_0x381eae['isObject'](_0x45917f)||_0x381eae['isLimit'](_0x45917f))return!0x0;}return!0x1;}function Pt(_0x58b0fc){return _0x58b0fc['end']['parent']==_0x58b0fc['start']['nodeAfter']&&_0x58b0fc['end']['isAtStart'];}function Gt(_0x505ef9,_0x29b6c6,_0x4ef19a,_0x2a7284){const _0x5bba8c=_0x337017=>!_0x337017['item']['is']('$textProxy')&&!_0x2a7284['isObject'](_0x337017['item']),_0x324d3c=_0x505ef9['start']['getLastMatchingPosition'](_0x5bba8c),_0x3f0f72=_0x505ef9['end']['getLastMatchingPosition'](_0x5bba8c,{'direction':'backward'});return(!_0x505ef9['start']['isEqual'](_0x324d3c)||!_0x505ef9['end']['isEqual'](_0x3f0f72))&&(_0x324d3c['isBefore'](_0x3f0f72)?_0x4ef19a['updateMarker'](_0x29b6c6,{'range':_0x4ef19a['createRange'](_0x324d3c,_0x3f0f72)}):_0x4ef19a['removeMarker'](_0x29b6c6),!0x0);}function Lt(_0xde71e5){return _0x752554(_0xde71e5);}function Jt(_0x11bd20){const _0x4bb8d4=_0x11bd20['start']['nodeAfter'];return _0x4bb8d4&&_0x4bb8d4['is']('element');}function Kt(_0x41c75b){return Pt(_0x41c75b)||function(_0x187f72){return _0x187f72['start']['parent']==_0x187f72['end']['nodeBefore']&&_0x187f72['start']['isAtEnd'];}(_0x41c75b);}function Ht(_0x168634,_0x4ef6ac){try{const _0x83bd1d=_0x168634['getRange']();for(const _0x1d2831 of _0x4ef6ac)if(_0x168634!==_0x1d2831&&_0x83bd1d&&_0x83bd1d['isIntersecting'](_0x1d2831['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x2e2014,_0x5d9d34){return null==_0x2e2014['end']['nodeBefore']&&_0x2e2014['end']['parent']==_0x2e2014['start']['nodeAfter']?zt(_0x2e2014['start']['nodeAfter'],_0x5d9d34):_0x2e2014;}function zt(_0x5496d8,_0x4393ee){const _0x59b2df=_0x4393ee['schema']['isObject'](_0x5496d8)||_0x4393ee['schema']['isSelectable'](_0x5496d8);return _0x4393ee['createRange'](_0x4393ee['createPositionAt'](_0x5496d8,'before'),_0x59b2df?_0x4393ee['createPositionAfter'](_0x5496d8):_0x4393ee['createPositionAt'](_0x5496d8,'end'));}function Wt(_0x58bad1,_0xdd1aaa,_0x3818d8,_0x5c249c){return!!Qt(_0x58bad1,_0xdd1aaa)&&_0x3818d8['end']['isEqual'](_0x5c249c['start']);}function Qt(_0x21d750,_0x2c576d){if(!_0x21d750['_isDataLoaded']||!_0x2c576d['_isDataLoaded'])return!0x1;const _0x224686=new Set(Object['keys'](_0x21d750['attributes'])),_0x50e63d=new Set(Object['keys'](_0x2c576d['attributes']));if(_0x224686['delete']('groupId'),_0x50e63d['delete']('groupId'),0x0==_0x224686['size']&&0x0==_0x50e63d['size'])return!0x0;if(_0x224686['size']!=_0x50e63d['size'])return!0x1;const _0x40156e={..._0x21d750['attributes']},_0x470dfd={..._0x2c576d['attributes']};return delete _0x40156e['groupId'],delete _0x470dfd['groupId'],JSON['stringify'](_0x40156e)==JSON['stringify'](_0x470dfd);}function Xt(_0x63af7,_0x1c0b2a){const _0x4111fd=Yt(_0x63af7['attributes']),_0x3d5c67=Yt(_0x1c0b2a);if(!_0x63af7['_isDataLoaded'])return!0x1;for(const _0xafd0bf of Object['keys'](_0x3d5c67))if(!_0xe99400(_0x4111fd[_0xafd0bf],_0x3d5c67[_0xafd0bf]))return!0x1;return!0x0;}function Yt(_0x415082){const _0x458683=Object['assign']({},_0x415082);return delete _0x458683['skipNestingCheck'],delete _0x458683['tablePasteChainId'],_0x458683;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x4d13ba(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x14afdf,_0xb3a29a,_0x55edf6,_0x2b9384){super(),this['model']=_0xb3a29a,this['view']=_0x55edf6,this['commentThreadController']=_0x2b9384,this['_editor']=_0x14afdf,this['_acceptCommand']=_0x14afdf['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x14afdf['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5e16fe,_0x128249)=>_0x5e16fe||_0x128249),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x8d43c9=>_0x8d43c9&&this['_editor']['model']['canEditAt'](_0xb3a29a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5be68d=>_0x5be68d&&this['_editor']['model']['canEditAt'](_0xb3a29a['getRanges']())),this['_pendingAction']=null,_0x55edf6['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x55edf6,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x55edf6,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x55edf6,'change:isDirty',()=>{_0x55edf6['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 _0x47be38=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x47be38);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x39a612{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3ca542,_0x3da3b0,_0x2033e0,_0x2937d2){super(_0x3ca542),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5b786d(_0x3ca542,o(_0x3ca542,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3da3b0['authoredAt']),this['bind']('authoredAt')['to'](_0x3da3b0),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',_0x3da3b0,'authoredAt',this,'descriptionParts',(_0xbb1a5,_0x4f5b72,_0xc4420b)=>{const _0x4f9c8c=_0xc4420b['map'](_0x7da62f=>ls(_0x7da62f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xbb1a5-0x1,_0x3da3b0['author']['name'],_0x4f5b72?_0x2937d2['formatDateTime'](_0x4f5b72):'',new DOMParser()['parseFromString'](_0x4f9c8c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2011b0(),this['focusTracker']=new _0x5a30d8(),this['keystrokes']=new _0x20a6b1(),this['focusCycler']=new _0x4ebd64({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1f7339=>_0x1f7339['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3da3b0,this['_localUser']=_0x2033e0,this['_config']=_0x2937d2,_0x2937d2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x186058(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x582dd0}=this['_config'];this['commentsListView']=new _0x582dd0(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',_0x550c48=>_0x550c48+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5c13aa,_0x58e0fb)=>_0x5c13aa||!!_0x58e0fb);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x31a22b}=this['_config'],_0x27f959=new _0x31a22b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4c5a15=_0x27f959['commentInputView'];return _0x27f959['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4c5a15,'value',(_0x157fc5,_0x50b9a9,_0x368f26)=>!!_0x368f26||_0x157fc5&&!_0x50b9a9),_0x4c5a15['on']('submit',(_0x41e94c,_0xa9a860)=>{this['fire']('addComment',_0xa9a860),_0x4c5a15['editor']['setData']('');}),_0x4c5a15['on']('cancel',()=>this['focus']()),_0x4c5a15['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x27f959;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x2378e9,_0x1e3cad,_0x51161b,_0x2f85a7){super(_0x2378e9,_0x1e3cad,_0x51161b,_0x2f85a7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x41e6f0=>_0x41e6f0&&_0x41e6f0[0x0]?_0x41e6f0[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5cf3d4,_0x1e8734)=>{let _0x3d2264='';for(const _0x5d7244 of _0x5cf3d4)_0x3d2264+='<p>'+ls(_0x5d7244['content'],_0x5d7244['color'])+'</p>';return _0x1e8734?_0x3d2264:_0x323e55(_0x3d2264,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2f85a7['SuggestionView'](_0x2378e9,_0x1e3cad,{'formatDateTime':_0x2f85a7['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 _0x161a6d=this['bindTemplate'],_0x5ea512=[this['suggestionView']];return this['commentsListView']&&_0x5ea512['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5ea512['push'](this['commentThreadInputView']),_0x5ea512['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x161a6d['if']('isActive','ck-suggestion-wrapper--active'),_0x161a6d['to']('type',_0x3fde9=>'ck-suggestion-'+_0x3fde9),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':_0x161a6d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5ea512};}['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 _0x39a612{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x424dec,_0x3ec003,_0x3a58b8){super(_0x424dec),this['_model']=_0x3ec003,this['_config']=_0x3a58b8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3ec003),this['acceptButton']=this['_createButton'](o(_0x424dec,'Accept\x20suggestion'),_0x31bf72,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x424dec,'Discard\x20suggestion'),_0x8a2bfe,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2d29b8(_0x424dec,_0x3ec003['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2011b0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5a30d8(),this['keystrokes']=new _0x20a6b1(),this['focusCycler']=new _0x4ebd64({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1f64e0=>_0x1f64e0['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3d610c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3d610c['innerHTML']=this['description'],this['on']('change:description',(_0xbe459a,_0x1347c1,_0x3c0b65)=>{_0x3d610c['innerHTML']=_0x3c0b65;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2ff2ec=this['bindTemplate'],_0x1dae01=[{'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':_0x2ff2ec['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2ff2ec['to']('authoredAt',_0x16b6c8=>this['_config']['formatDateTime'](_0x16b6c8))}]}]},{'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']&&_0x1dae01['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':_0x1dae01}]};}['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'](_0x49a66c,_0xe8db25,_0x4281c0,_0x5de8e0,_0x15ee1c){const _0x5e114d=new _0x25f339(this['locale']);return _0x5e114d['set']({'label':_0x49a66c,'icon':_0xe8db25,'tooltip':!0x0,'tooltipPosition':_0x15ee1c}),_0x5e114d['extendTemplate']({'attributes':{'class':_0x4281c0}}),_0x5e114d['on']('execute',()=>{this['fire'](_0x5de8e0,this['_model']['id']);}),_0x5e114d;}['_setupKeyboardNavigation'](){const _0x23e9a3=this['element'];this['keystrokes']['listenTo'](_0x23e9a3);for(const _0x4ea629 of this['focusables'])this['focusTracker']['add'](_0x4ea629['element']),this['keystrokes']['listenTo'](_0x4ea629['element']);this['keystrokes']['set']('enter',(_0x3c2536,_0x10df85)=>{_0x23e9a3===_0x3c2536['target']&&(this['focusCycler']['focusFirst'](),_0x10df85());}),this['keystrokes']['set']('esc',(_0x54ffb0,_0x2da20c)=>{_0x23e9a3!==_0x54ffb0['target']&&(this['focus'](),_0x2da20c());});}}class u extends _0xa897c8{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5e8d65,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3be623){super(_0x3be623),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x38c0f2=this['editor']['config'];_0x38c0f2['define']('trackChanges.SuggestionThreadView',fe),_0x38c0f2['define']('trackChanges.SuggestionView',we),_0x38c0f2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x38c0f2['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3f3f9f,_0x4fe140){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5e918b,_0x100366]of this['_handleControllerBuffer']){const _0x6b21fb=this['_suggestionToController']['has'](_0x5e918b);_0x6b21fb||_0x100366?_0x6b21fb&&_0x100366&&this['_destroyController'](_0x5e918b):this['_initializeController'](_0x5e918b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3f3f9f,_0x4fe140);}['init'](){const _0x4a0bc5=this['editor'],_0x55e628=_0x4a0bc5['plugins']['get']('TrackChangesEditing'),_0x4e0a7f=_0x4a0bc5['plugins']['get']('Annotations'),_0x63cdc5=_0x4a0bc5['plugins']['get']('EditorAnnotations'),_0x34c229=_0x4a0bc5['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x63cdc5['addSourceCollector'](()=>{const _0x81851f=[];for(const [_0xd6c63e,_0x468003]of Array['from'](this['_suggestionToController'])){const _0x24732d=_0xd6c63e['getAllAdjacentSuggestions'](),_0x10e115=[];for(const _0x33c795 of _0x24732d){if(!_0x33c795['isInContent'])continue;if(_0x33c795['isMultiRange']){_0x10e115['push'](..._0x33c795['getRanges']());continue;}const _0x437eb9=_0x33c795['getFirstRange']();if(_0x10e115['length']>0x0){const _0x1cccf0=_0x10e115[0x0]['getJoined'](_0x437eb9);if(_0x1cccf0){_0x10e115[0x0]=_0x1cccf0;continue;}}_0x10e115['push'](_0x437eb9);}_0x81851f['push']([_0x468003['view'],_0x10e115]);}return _0x81851f;}),this['listenTo'](_0x55e628,'suggestionLoaded',(_0x47131a,_0x3a2095)=>{this['listenTo'](_0x3a2095,'change:previous',(_0x22cd80,_0x2fd48c,_0x3763eb,_0x321227)=>{_0x3a2095['isInContent']&&(null==_0x3763eb?(this['_updateController'](_0x321227['head']),this['_handleSuggestionControllerDelayed'](_0x3a2095,!0x1)):(this['_updateController'](_0x3763eb['head']),null==_0x321227&&this['_handleSuggestionControllerDelayed'](_0x3a2095,!0x0)));}),null!==_0x3a2095['previous']?this['_updateController'](_0x3a2095['head']):this['_handleSuggestionControllerDelayed'](_0x3a2095,!0x1);}),this['listenTo'](_0x55e628,'suggestionUnloaded',(_0xd339a6,_0x329045,_0x38de94)=>{this['stopListening'](_0x329045,'change:previous'),this['_handleControllerBuffer']['delete'](_0x329045),this['_suggestionToController']['has'](_0x329045)&&this['_destroyController'](_0x329045),_0x38de94&&this['_updateController'](_0x38de94['head']);}),this['listenTo'](_0x55e628,'suggestionChanged',(_0x5def44,_0x59d4c1)=>{this['_updateController'](_0x59d4c1);}),this['listenTo'](_0x4e0a7f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x34c229,'addComment',(_0x448822,{threadId:_0x31a6ea,isFromAdapter:_0x45e1bb})=>{if(_0x45e1bb||!_0x55e628['hasSuggestion'](_0x31a6ea))return;const _0xd3aa11=_0x55e628['getSuggestion'](_0x31a6ea);this['_suggestionToController']['get'](_0xd3aa11)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x164078=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2ede3e;for(const _0x1edf87 in _0x164078){const _0x1adf34=_0x1edf87,_0x215c10=_0x164078[_0x1adf34];if('trackChangesLicenseKeyValid'==_0x215c10||'trackChangesLicenseKeyInvalid'==_0x215c10||'trackChangesLicenseKeyExpired'==_0x215c10||'trackChangesLicenseKeyDomainLimit'==_0x215c10||'trackChangesLicenseKeyNotAllowed'==_0x215c10||'trackChangesLicenseKeyEvaluationLimit'==_0x215c10||'trackChangesLicenseKeyTrialLimit'==_0x215c10||'trackChangesLicenseKeyUsageLimit'==_0x215c10){delete _0x164078[_0x1adf34],_0x2ede3e=_0x215c10,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2ede3e&&_0x164078['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2ede3e&&_0x164078['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2ede3e&&_0x164078['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2ede3e&&_0x164078['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2ede3e&&_0x164078['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2ede3e&&_0x164078['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2ede3e&&_0x164078['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0xeda857){const _0x3e58b0=this['_suggestionToController']['get'](_0xeda857);if(!_0x3e58b0)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3e58b0['view'])||null;}['getSuggestionForAnnotation'](_0x422c45){const _0x2692ac=this['_viewToController']['get'](_0x422c45['innerView']);return _0x2692ac?_0x2692ac['model']:null;}['_refreshActiveMarkers'](){const _0x43e3e0=this['editor']['plugins']['get']('Annotations'),_0x3d3b25=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa15b3b=Array['from'](_0x43e3e0['activeAnnotations'],_0x47808a=>_0x47808a['innerView'])['filter'](_0x58866c=>this['_viewToController']['has'](_0x58866c)),_0x170335=[];for(const _0x2e7e42 of _0xa15b3b){const _0x348f6c=this['_viewToController']['get'](_0x2e7e42)['model']['getAllAdjacentSuggestions']();_0x170335['push'](..._0x348f6c['reduce']((_0x37b912,_0x34f1b7)=>[..._0x37b912,..._0x34f1b7['getMarkerNames']()],[]));}_0x3d3b25['activeMarkers']=_0x170335;}['_addUIComponentsToFactory'](){const _0x505eef=this['editor'],_0x32d066=_0x505eef['locale'],_0x3aef3c=o(_0x32d066,'Track\x20changes'),_0x5ec5aa=new _0x31149d([{'type':'switchbutton','model':new _0xb4001c({'withText':!0x0,'isToggleable':!0x0,'label':_0x3aef3c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xb4001c({'withText':!0x0,'label':o(_0x32d066,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xb4001c({'withText':!0x0,'label':o(_0x32d066,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xb4001c({'withText':!0x0,'label':o(_0x32d066,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xb4001c({'withText':!0x0,'label':o(_0x32d066,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x505eef['plugins']['has']('TrackChangesPreview')&&_0x5ec5aa['addMany']([{'type':'separator'},{'type':'button','model':new _0xb4001c({'withText':!0x0,'label':o(_0x32d066,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4e8388 of _0x5ec5aa)if(ke(_0x4e8388)){const _0x1ec754=_0x505eef['commands']['get'](_0x4e8388['model']['commandName']);_0x4e8388['model']['bind']('isOn','isEnabled')['to'](_0x1ec754,'value','isEnabled');}_0x505eef['ui']['componentFactory']['add']('trackChanges',_0xed2757=>this['_createToolbarButton'](_0xed2757,_0x5ec5aa,_0x3aef3c)),_0x505eef['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4a1349=>this['_createMenuBarMenu'](_0x4a1349,_0x5ec5aa,_0x3aef3c));}['_createToolbarButton'](_0x48c5ea,_0xfd27ee,_0xf744b0){const _0x5ab191=_0x48dd53(_0x48c5ea,_0x5dd53e),_0x4ddd4c=this['editor']['commands']['get']('trackChanges');_0x5ab191['buttonView']['set']({'tooltip':_0xf744b0,'label':_0xf744b0,'icon':_0x2c27a5}),_0x5ab191['buttonView']['bind']('isOn')['to'](_0x4ddd4c,'value'),_0x5ab191['buttonView']['on']('execute',()=>{_0x4ddd4c['execute'](),this['editor']['editing']['view']['focus']();}),_0x274643(_0x5ab191,_0xfd27ee,{'role':'menu'});const _0xd467a3=[];for(const _0x16ca53 of _0xfd27ee)ke(_0x16ca53)&&_0xd467a3['push'](this['editor']['commands']['get'](_0x16ca53['model']['commandName']));const _0x262711=_0x5ab191['buttonView'];return _0x262711['actionView']['unbind']('isEnabled'),_0x262711['arrowView']['unbind']('isEnabled'),_0x262711['actionView']['bind']('isEnabled')['to'](_0x4ddd4c,'isEnabled'),_0x262711['arrowView']['bind']('isEnabled')['toMany'](_0xd467a3,'isEnabled',(..._0x5c49a4)=>_0x5c49a4['some'](_0x85eab3=>_0x85eab3)),_0x5ab191['on']('execute',_0x1f1bf1=>{this['editor']['execute'](_0x1f1bf1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5ab191;}['_createMenuBarMenu'](_0x23839f,_0x22e19d,_0x1ae6f6){const _0x3ef3d2=new _0x113708(_0x23839f),_0x4cce66=this['editor']['commands']['get']('trackChanges');_0x3ef3d2['buttonView']['set']({'label':_0x1ae6f6,'icon':_0x2c27a5});const _0x382745=new _0xbb255d(_0x23839f);for(const _0x333214 of _0x22e19d){if('separator'==_0x333214['type']){_0x382745['items']['add'](new _0x3ff7ce(_0x23839f));continue;}const _0x4a97a0=new _0x1aaec5(_0x23839f,_0x3ef3d2),_0x5d055e=new _0x235789(_0x23839f),_0x491a2a=_0x333214['model'];_0x5d055e['bind'](...Object['keys'](_0x491a2a))['to'](_0x491a2a),_0x5d055e['delegate']('execute')['to'](_0x3ef3d2),_0x5d055e['on']('execute',()=>{this['editor']['execute'](_0x491a2a['commandName']),this['editor']['editing']['view']['focus']();}),_0x4a97a0['children']['add'](_0x5d055e),_0x382745['items']['add'](_0x4a97a0);}return _0x3ef3d2['bind']('isEnabled')['to'](_0x4cce66,'isEnabled'),_0x3ef3d2['panelView']['children']['add'](_0x382745),_0x3ef3d2;}['_initializeController'](_0x13dc4f){const _0x1704f0=this['editor'],_0xd300aa=_0x1704f0['config'],_0x509be6=_0x1704f0['plugins']['get']('Annotations'),_0x59db2e=_0x1704f0['plugins']['get']('CommentsRepository'),_0x29453a=_0x1704f0['plugins']['get']('EditorAnnotations'),_0x2c41ab=_0x1704f0['plugins']['get'](_0x5e8d65)['me'],_0x26ea3a=_0xd300aa['get']('trackChanges')['SuggestionThreadView'],_0x3dcd1a=_0xd300aa['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3c3836,CommentThreadInputView:_0x5573f4}=_0x1704f0['plugins']['get']('CommentsUI');let _0x424a2d,_0x4e4ec5,_0x1bb28f;this['_annotationViews']['has'](_0x13dc4f['id'])?(_0x4e4ec5=this['_annotationViews']['get'](_0x13dc4f['id']),_0x424a2d=_0x4e4ec5['mainView']):(_0x424a2d=new _0x26ea3a(_0x1704f0['locale'],_0x13dc4f,_0x2c41ab,{'disableComments':this['_disableComments'],'editorConfig':{..._0xd300aa['get']('comments.editorConfig'),'licenseKey':_0xd300aa['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xd300aa['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xd300aa['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xd300aa['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4c3cc9(_0xd300aa['get']('locale'),_0x1704f0['locale']),'CommentView':_0xd300aa['get']('comments')['CommentView'],'CommentsListView':_0x3c3836,'CommentThreadInputView':_0x5573f4,'SuggestionView':_0x3dcd1a}),_0x424a2d['suggestionView']['acceptButton']['on']('execute',()=>{_0x1704f0['editing']['view']['focus']();}),_0x424a2d['suggestionView']['discardButton']['on']('execute',()=>{_0x1704f0['editing']['view']['focus']();}),_0x4e4ec5=_0x509be6['createAnnotationView'](this['editor']['locale'],_0x424a2d),_0x4e4ec5['bind']('isDirty')['to'](_0x424a2d,'isDirty'),_0x4e4ec5['bind']('length')['to'](_0x424a2d),_0x4e4ec5['bind']('type')['to'](_0x424a2d,'type',_0x3cf99b=>'suggestion-'+_0x3cf99b),_0x424a2d['on']('escape',()=>{_0x1bb28f['fire']('escape');}),this['_annotationViews']['set'](_0x13dc4f['id'],_0x4e4ec5));const _0x5a1fb6=_0x59db2e['createCommentThreadController'](_0x13dc4f['commentThread'],_0x424a2d),_0x4f48e6=new pe(_0x1704f0,_0x13dc4f,_0x424a2d,_0x5a1fb6),_0x8b8521=_0x13dc4f['getAllAdjacentSuggestions']()['filter'](_0x46fef0=>_0x46fef0['isInContent']);_0x424a2d['descriptionParts']=_0x1704f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x8b8521),this['_suggestionToController']['set'](_0x13dc4f,_0x4f48e6),this['_viewToController']['set'](_0x424a2d,_0x4f48e6);const _0x1e69b4=()=>{const _0x149ef6=[],_0xa555f8=_0x13dc4f['getAllAdjacentSuggestions']()['filter'](_0x35bd1d=>_0x35bd1d['isInContent']);for(const _0x1e9ac4 of _0xa555f8)_0x149ef6['push'](..._0x1e9ac4['getMarkers']());return _0x93afd2(_0x1704f0['editing'],_0x149ef6);};_0x1bb28f=_0x509be6['createAnnotation']({'view':_0x4e4ec5,'target':_0x1e69b4,'type':()=>'suggestion-'+_0x4f48e6['view']['type'],'isVisible':!!_0x1e69b4()}),_0x59db2e['_bindAnnotationToEditors'](_0x424a2d,_0x1bb28f),_0x509be6['add'](_0x1bb28f),_0x29453a['registerAnnotation'](_0x1bb28f);}['_destroyController'](_0x52d760){const _0x2cef0c=this['editor']['plugins']['get']('CommentsRepository'),_0x5cb977=this['editor']['plugins']['get']('Annotations'),_0x27dad3=this['_suggestionToController']['get'](_0x52d760),_0x266099=_0x27dad3['view'],_0xa02720=_0x5cb977['getByInnerView'](_0x266099);_0x2cef0c['_unbindEditors'](_0x266099),_0xa02720&&_0x5cb977['remove'](_0xa02720),this['_suggestionToController']['delete'](_0x52d760),this['_viewToController']['delete'](_0x266099),_0x27dad3['destroy']();}['_updateController'](_0x589aec){if(!_0x589aec['isInContent']||!this['_suggestionToController']['has'](_0x589aec))return;const _0x4d8ad7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x562712=this['_suggestionToController']['get'](_0x589aec),_0x3f9106=_0x589aec['getAllAdjacentSuggestions']();_0x562712['view']['descriptionParts']=_0x4d8ad7['descriptionFactory']['getDescriptions'](_0x3f9106);}['destroy'](){for(const _0x324379 of this['_suggestionToController']['keys']())this['_destroyController'](_0x324379);for(const _0x3dcba0 of this['_annotationViews']['values']())_0x3dcba0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2c079f){return'model'in _0x2c079f;}class Fe extends _0xa897c8{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4b76f4){this['editor']['plugins']['get'](d)['adapter']=_0x4b76f4;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x526efc){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x526efc);}['getSuggestions']({skipNotAttached:_0x3bd6f2=!0x1,toJSON:_0x3bd27e=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x3bd6f2,'toJSON':_0x3bd27e});}['getSuggestion'](_0x1444c1){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1444c1);}}const p=['Pagination'];class re extends _0xa897c8{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x469c6a=this['editor'];if(_0x469c6a['config']['define']('trackChangesData.editorCreator',_0x70fe87=>{const _0x3b9427=_0x469c6a['model']['document']['getRootNames']()['reduce']((_0x2cab60,_0x3b4082)=>(_0x2cab60[_0x3b4082]='',_0x2cab60),{});return _0x469c6a['constructor']['create'](_0x3b9427,_0x70fe87);}),'function'!=typeof _0x469c6a['config']['get']('trackChangesData')['editorCreator'])throw new _0x3e0d43('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x47614c){return P(this['editor'],!0x0,_0x47614c);}['getDataWithDiscardedSuggestions'](_0x385ffd){return P(this['editor'],!0x1,_0x385ffd);}}class Ge extends _0xa897c8{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d6129){function _0x11b5ee(_0x57e80b){return _0x57e80b['map'](_0x39b7a3=>String['fromCharCode'](_0x39b7a3))['join']('');}super(_0x1d6129),this['result']='end',_0x1d6129[_0x11b5ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11b5ee([0x76,0x69,0x65,0x77])][_0x11b5ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11b5ee([0x61,0x75,0x74,0x6f]),_0x1d6129[_0x11b5ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x11b5ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11b5ee([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x11b5ee([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x11b5ee([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(_0x5bd872){return void 0x0!==_0x5bd872['getRootsAttributes'];}async function P(_0x2a3e2b,_0x87b164,_0x4b0e3a){const _0x3c91d2=_0xfd403e(_0x2a3e2b,p);_0x3c91d2['plugins']['push'](d,Ge),_0x3c91d2['rootsAttributes']=He(_0x2a3e2b)?_0x2a3e2b['getRootsAttributes']():void 0x0;const _0x15c03d=document['createDocumentFragment'](),_0x49ad2e=_0x2a3e2b['config']['get']('trackChangesData')['editorCreator'],_0x1cb79f=await _0x49ad2e(_0x3c91d2,()=>function(_0x32df24){const _0x455786=document['createElement']('div');return _0x32df24['appendChild'](_0x455786),_0x455786;}(_0x15c03d));!function(_0x48eaa9,_0x179873){const _0x1f15aa=_0x48eaa9['model']['document']['getRootNames']()['reduce']((_0x5d5e91,_0x569f2b)=>(_0x5d5e91[_0x569f2b]=_0x48eaa9['data']['get']({'rootName':_0x569f2b}),_0x5d5e91),{}),_0x2aeb08=_0x48eaa9['plugins']['get']('Users')['users']['map'](_0x515518=>({'id':_0x515518['id'],'name':_0x515518['name']})),_0x359cb9=_0x48eaa9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1cb417=_0x48eaa9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x240281=_0x179873['plugins']['get']('Users'),_0x49f980=_0x179873['plugins']['get']('TrackChangesEditing'),_0x3a25a4=_0x179873['plugins']['get']('CommentsRepository');for(const _0x1a7c60 of _0x3a25a4['getCommentThreads']())_0x1a7c60['remove']();for(const _0x3739e5 of _0x2aeb08)_0x240281['getUser'](_0x3739e5['id'])||_0x240281['addUser'](_0x3739e5);_0x240281['me']||_0x240281['useAnonymousUser']();for(const _0x183a16 of _0x1cb417)_0x3a25a4['addCommentThread'](_0x183a16);for(const _0x4ee068 of _0x359cb9)_0x49f980['addSuggestionData'](_0x4ee068);_0x179873['data']['set'](_0x1f15aa);}(_0x2a3e2b,_0x1cb79f),_0x1cb79f['execute'](_0x87b164?'acceptAllSuggestions':'discardAllSuggestions');const _0x1c09e8=He(_0x1cb79f)?_0x1cb79f['getFullData'](_0x4b0e3a):_0x1cb79f['data']['get'](_0x4b0e3a);return await _0x1cb79f['destroy'](),_0x1c09e8;}class Me extends _0x39a612{['options'];constructor(_0x53c3c3,_0x12aa7e){super(_0x53c3c3),this['options']=_0x12aa7e,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'](_0x5c91aa,_0x19c30b){if(!this['element'])return;const _0xaaa842=[];for(const [_0x4b5ed1,_0x2db907]of _0x5c91aa){const _0x148d7a=document['createElement']('div');_0x148d7a['setAttribute']('data-ck-root-name',_0x4b5ed1),_0x148d7a['className']=_0x2db907['classes']+'\x20ck-track-changes-preview__root-container',_0x148d7a['innerHTML']=_0x2db907['content'],_0xaaa842['push'](_0x148d7a);}_0x19c30b(this['element'],_0xaaa842),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x58b809{constructor(_0x381a6c){super(_0x381a6c),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x8ec01e=this['editor'],_0xdbe5fb=_0x8ec01e['locale'],_0x5886d8=_0x8ec01e['plugins']['get']('Dialog');let _0x4b1c90;const _0xafdd84=function(_0x51f006){const _0x3aab07={};if('editables'in _0x51f006['ui']['view']){for(const [_0xc08867,_0x519d7e]of Object['entries'](_0x51f006['ui']['view']['editables']))_0x3aab07[_0xc08867]=_0x519d7e['element'];}else _0x3aab07[_0x51f006['model']['document']['getRootNames']()[0x0]]=_0x51f006['ui']['view']['editable']['element'];return _0x3aab07;}(_0x8ec01e),_0x33525f=function(_0x1dcb15){let _0x371f59=0x0;for(const _0x343552 of Object['values'](_0x1dcb15))_0x371f59=Math['max'](_0x371f59,_0x343552['getBoundingClientRect']()['width']);let _0x227c9e=0x0;for(const _0x2b8212 of Object['values'](_0x1dcb15))_0x227c9e+=_0x2b8212['getBoundingClientRect']()['height'];const _0x3b1d1e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5b4b1f=Math['min'](_0x227c9e,_0x3b1d1e);return{'width':_0x371f59,'height':_0x5b4b1f};}(_0xafdd84);_0x5886d8['show']({'id':'finalContentPreview','title':o(_0xdbe5fb,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xdbe5fb,{'dialogRects':_0x33525f}),'onHide':()=>{_0x4b1c90['detachFromDom']();},'onShow':()=>{_0x8ec01e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x103fee=>{const _0x4fd027=this['_standarizeRootsData'](_0x103fee,_0x8ec01e,_0xafdd84);_0x5886d8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4fd027,_0x8ec01e['config']['get']('trackChanges.preview.renderFunction'));}),_0x4b1c90=new _0x181b60(_0xdbe5fb,[_0x5886d8['view']]),_0x4b1c90['attachToDom'](),_0x4b1c90['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x8ec01e['once']('destroy',()=>{_0x4b1c90['detachFromDom']();});const _0x3741d8=_0x5886d8['view']['headerView']['class'];_0x5886d8['view']['headerView']['class']=_0x3741d8?_0x3741d8+'\x20ck-reset_all':'ck-reset_all',_0x5886d8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5886d8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x23b28a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3c6e7c=_0x23b28a['previewMode'],_0x2225ad={};if('$labels'===_0x3c6e7c){for(const _0x43248b of _0x23b28a['getMergeFieldsIds']())_0x2225ad[_0x43248b]=_0x23b28a['getLabel'](_0x43248b)||_0x43248b;}else{const _0x472988='$defaultValues'===_0x3c6e7c?_0x23b28a['getDefaultValues']():_0x23b28a['getDataSetValues'](_0x3c6e7c,!0x0);for(const _0xaf972f of Object['entries'](_0x472988)){const [_0x4bcb06,_0x21853f]=_0xaf972f;_0x2225ad[_0x4bcb06]=null!==_0x21853f?_0x21853f:_0x23b28a['getLabel'](_0x4bcb06)||_0x4bcb06;}}return{'mergeFieldsData':_0x2225ad};}['_standarizeRootsData'](_0x1ef090,_0x122e9e,_0x366f5c){let _0x56ba67;if('string'==typeof _0x1ef090){const _0x21b81a=_0x122e9e['model']['document']['getRootNames']()[0x0];_0x56ba67={[_0x21b81a]:_0x1ef090};}else _0x56ba67=_0x1ef090;const _0x1ac804=this['_fixMediaEmbeds'](_0x56ba67,_0x122e9e),_0x1d4dea=function(_0xba4cd5,_0x2b5a8e){for(const [_0x18f726,_0x538b15]of _0xba4cd5)_0x538b15['classes']=_0x2b5a8e[_0x18f726]['classList']['value']['replace']('ck-focused','');return _0xba4cd5;}(this['_sortRoots'](_0x122e9e)['reduce']((_0xf59507,_0x47e0bb)=>(_0xf59507['push']([_0x47e0bb,{'content':_0x1ac804[_0x47e0bb],'classes':''}]),_0xf59507),[]),_0x366f5c);return _0x1d4dea;}['_fixMediaEmbeds'](_0x5ea7bb,_0x1fb03b){if(!_0x1fb03b['plugins']['has']('MediaEmbedEditing'))return _0x5ea7bb;const _0x5ba980=_0x1fb03b['plugins']['get']('MediaEmbedEditing');for(const [_0x188f0b,_0x393639]of Object['entries'](_0x5ea7bb)){const _0x2011d4=document['createElement']('div');_0x2011d4['innerHTML']=_0x393639,(_0x2011d4['querySelectorAll']('figure.media')['forEach'](_0x10fef7=>{const _0x14c795=_0x10fef7['querySelector']('oembed');if(_0x14c795){const _0xb9e0f7=_0x14c795['getAttribute']('url');if(_0xb9e0f7){const _0x250acf=_0x5ba980['registry']['getMediaViewElement'](new _0x1cd95d(_0x1fb03b['editing']['view']['document']),_0xb9e0f7,{'elementName':'','renderForEditingView':!0x0}),_0x4d5d8b=document['createElement']('div');_0x4d5d8b['classList']['add']('ck-media__wrapper'),_0x250acf['render'](_0x4d5d8b,_0x1fb03b['editing']['view']['domConverter']),_0x14c795['replaceWith'](_0x4d5d8b);}}}),_0x5ea7bb[_0x188f0b]=_0x2011d4['innerHTML']);}return _0x5ea7bb;}['_sortRoots'](_0x52a52e){if(!function(_0x2ef78a){return void 0x0!==_0x2ef78a['getRootsAttributes'];}(_0x52a52e))return _0x52a52e['model']['document']['getRootNames']();const _0x3011e6=[],_0x3f1708=new Map();for(const _0x768f8a of _0x52a52e['model']['document']['getRootNames']()){const _0x5a16f7=_0x52a52e['editing']['view']['getDomRoot'](_0x768f8a)['getClientRects']()['item'](0x0);_0x3011e6['push'](_0x768f8a),_0x3f1708['set'](_0x768f8a,_0x5a16f7);}return _0x3011e6['sort']((_0x35a6d6,_0x48f226)=>{const _0x27b28d=_0x3f1708['get'](_0x35a6d6),_0x48906e=_0x3f1708['get'](_0x48f226);return _0x27b28d['y']-_0x48906e['y']||_0x27b28d['x']-_0x48906e['x'];}),_0x3011e6;}}class $e extends _0xa897c8{static get['requires'](){return[re,_0x1b1881];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f1d74){super(_0x4f1d74),_0x4f1d74['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4f1d74['config']['define']('trackChanges.preview.renderFunction',(_0x397710,_0x32e3b2)=>{for(const _0x20344d of _0x32e3b2)_0x397710['appendChild'](_0x20344d);});}}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};