@ckeditor/ckeditor5-track-changes 44.2.0-alpha.1 → 44.2.0-alpha.10

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 (302) hide show
  1. package/build/track-changes.js +1 -1
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fi.js +1 -1
  13. package/build/translations/fr.js +1 -1
  14. package/build/translations/he.js +1 -1
  15. package/build/translations/hi.js +1 -1
  16. package/build/translations/hu.js +1 -1
  17. package/build/translations/id.js +1 -1
  18. package/build/translations/it.js +1 -1
  19. package/build/translations/ja.js +1 -1
  20. package/build/translations/ko.js +1 -1
  21. package/build/translations/lt.js +1 -1
  22. package/build/translations/lv.js +1 -1
  23. package/build/translations/ms.js +1 -1
  24. package/build/translations/nl.js +1 -1
  25. package/build/translations/no.js +1 -1
  26. package/build/translations/pl.js +1 -1
  27. package/build/translations/pt-br.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sk.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/dist/index.js +3 -3
  41. package/dist/translations/af.js +1 -1
  42. package/dist/translations/af.umd.js +1 -1
  43. package/dist/translations/ar.js +1 -1
  44. package/dist/translations/ar.umd.js +1 -1
  45. package/dist/translations/ast.js +1 -1
  46. package/dist/translations/ast.umd.js +1 -1
  47. package/dist/translations/az.js +1 -1
  48. package/dist/translations/az.umd.js +1 -1
  49. package/dist/translations/bg.js +1 -1
  50. package/dist/translations/bg.umd.js +1 -1
  51. package/dist/translations/bn.js +1 -1
  52. package/dist/translations/bn.umd.js +1 -1
  53. package/dist/translations/bs.js +1 -1
  54. package/dist/translations/bs.umd.js +1 -1
  55. package/dist/translations/ca.js +1 -1
  56. package/dist/translations/ca.umd.js +1 -1
  57. package/dist/translations/cs.js +1 -1
  58. package/dist/translations/cs.umd.js +1 -1
  59. package/dist/translations/da.js +1 -1
  60. package/dist/translations/da.umd.js +1 -1
  61. package/dist/translations/de-ch.js +1 -1
  62. package/dist/translations/de-ch.umd.js +1 -1
  63. package/dist/translations/de.js +1 -1
  64. package/dist/translations/de.umd.js +1 -1
  65. package/dist/translations/el.js +1 -1
  66. package/dist/translations/el.umd.js +1 -1
  67. package/dist/translations/en-au.js +1 -1
  68. package/dist/translations/en-au.umd.js +1 -1
  69. package/dist/translations/en-gb.js +1 -1
  70. package/dist/translations/en-gb.umd.js +1 -1
  71. package/dist/translations/en.js +1 -1
  72. package/dist/translations/en.umd.js +1 -1
  73. package/dist/translations/eo.js +1 -1
  74. package/dist/translations/eo.umd.js +1 -1
  75. package/dist/translations/es-co.js +1 -1
  76. package/dist/translations/es-co.umd.js +1 -1
  77. package/dist/translations/es.js +1 -1
  78. package/dist/translations/es.umd.js +1 -1
  79. package/dist/translations/et.js +1 -1
  80. package/dist/translations/et.umd.js +1 -1
  81. package/dist/translations/eu.js +1 -1
  82. package/dist/translations/eu.umd.js +1 -1
  83. package/dist/translations/fa.js +1 -1
  84. package/dist/translations/fa.umd.js +1 -1
  85. package/dist/translations/fi.js +1 -1
  86. package/dist/translations/fi.umd.js +1 -1
  87. package/dist/translations/fr.js +1 -1
  88. package/dist/translations/fr.umd.js +1 -1
  89. package/dist/translations/gl.js +1 -1
  90. package/dist/translations/gl.umd.js +1 -1
  91. package/dist/translations/gu.js +1 -1
  92. package/dist/translations/gu.umd.js +1 -1
  93. package/dist/translations/he.js +1 -1
  94. package/dist/translations/he.umd.js +1 -1
  95. package/dist/translations/hi.js +1 -1
  96. package/dist/translations/hi.umd.js +1 -1
  97. package/dist/translations/hr.js +1 -1
  98. package/dist/translations/hr.umd.js +1 -1
  99. package/dist/translations/hu.js +1 -1
  100. package/dist/translations/hu.umd.js +1 -1
  101. package/dist/translations/hy.js +1 -1
  102. package/dist/translations/hy.umd.js +1 -1
  103. package/dist/translations/id.js +1 -1
  104. package/dist/translations/id.umd.js +1 -1
  105. package/dist/translations/it.js +1 -1
  106. package/dist/translations/it.umd.js +1 -1
  107. package/dist/translations/ja.js +1 -1
  108. package/dist/translations/ja.umd.js +1 -1
  109. package/dist/translations/jv.js +1 -1
  110. package/dist/translations/jv.umd.js +1 -1
  111. package/dist/translations/kk.js +1 -1
  112. package/dist/translations/kk.umd.js +1 -1
  113. package/dist/translations/km.js +1 -1
  114. package/dist/translations/km.umd.js +1 -1
  115. package/dist/translations/kn.js +1 -1
  116. package/dist/translations/kn.umd.js +1 -1
  117. package/dist/translations/ko.js +1 -1
  118. package/dist/translations/ko.umd.js +1 -1
  119. package/dist/translations/ku.js +1 -1
  120. package/dist/translations/ku.umd.js +1 -1
  121. package/dist/translations/lt.js +1 -1
  122. package/dist/translations/lt.umd.js +1 -1
  123. package/dist/translations/lv.js +1 -1
  124. package/dist/translations/lv.umd.js +1 -1
  125. package/dist/translations/ms.js +1 -1
  126. package/dist/translations/ms.umd.js +1 -1
  127. package/dist/translations/nb.js +1 -1
  128. package/dist/translations/nb.umd.js +1 -1
  129. package/dist/translations/ne.js +1 -1
  130. package/dist/translations/ne.umd.js +1 -1
  131. package/dist/translations/nl.js +1 -1
  132. package/dist/translations/nl.umd.js +1 -1
  133. package/dist/translations/no.js +1 -1
  134. package/dist/translations/no.umd.js +1 -1
  135. package/dist/translations/oc.js +1 -1
  136. package/dist/translations/oc.umd.js +1 -1
  137. package/dist/translations/pl.js +1 -1
  138. package/dist/translations/pl.umd.js +1 -1
  139. package/dist/translations/pt-br.js +1 -1
  140. package/dist/translations/pt-br.umd.js +1 -1
  141. package/dist/translations/pt.js +1 -1
  142. package/dist/translations/pt.umd.js +1 -1
  143. package/dist/translations/ro.js +1 -1
  144. package/dist/translations/ro.umd.js +1 -1
  145. package/dist/translations/ru.js +1 -1
  146. package/dist/translations/ru.umd.js +1 -1
  147. package/dist/translations/si.js +1 -1
  148. package/dist/translations/si.umd.js +1 -1
  149. package/dist/translations/sk.js +1 -1
  150. package/dist/translations/sk.umd.js +1 -1
  151. package/dist/translations/sl.js +1 -1
  152. package/dist/translations/sl.umd.js +1 -1
  153. package/dist/translations/sq.js +1 -1
  154. package/dist/translations/sq.umd.js +1 -1
  155. package/dist/translations/sr-latn.js +1 -1
  156. package/dist/translations/sr-latn.umd.js +1 -1
  157. package/dist/translations/sr.js +1 -1
  158. package/dist/translations/sr.umd.js +1 -1
  159. package/dist/translations/sv.js +1 -1
  160. package/dist/translations/sv.umd.js +1 -1
  161. package/dist/translations/th.js +1 -1
  162. package/dist/translations/th.umd.js +1 -1
  163. package/dist/translations/ti.js +1 -1
  164. package/dist/translations/ti.umd.js +1 -1
  165. package/dist/translations/tk.js +1 -1
  166. package/dist/translations/tk.umd.js +1 -1
  167. package/dist/translations/tr.js +1 -1
  168. package/dist/translations/tr.umd.js +1 -1
  169. package/dist/translations/tt.js +1 -1
  170. package/dist/translations/tt.umd.js +1 -1
  171. package/dist/translations/ug.js +1 -1
  172. package/dist/translations/ug.umd.js +1 -1
  173. package/dist/translations/uk.js +1 -1
  174. package/dist/translations/uk.umd.js +1 -1
  175. package/dist/translations/ur.js +1 -1
  176. package/dist/translations/ur.umd.js +1 -1
  177. package/dist/translations/uz.js +1 -1
  178. package/dist/translations/uz.umd.js +1 -1
  179. package/dist/translations/vi.js +1 -1
  180. package/dist/translations/vi.umd.js +1 -1
  181. package/dist/translations/zh-cn.js +1 -1
  182. package/dist/translations/zh-cn.umd.js +1 -1
  183. package/dist/translations/zh.js +1 -1
  184. package/dist/translations/zh.umd.js +1 -1
  185. package/lang/translations/ar.po +3 -3
  186. package/lang/translations/bg.po +3 -3
  187. package/lang/translations/bn.po +3 -3
  188. package/lang/translations/ca.po +3 -3
  189. package/lang/translations/cs.po +3 -3
  190. package/lang/translations/da.po +3 -3
  191. package/lang/translations/de.po +3 -3
  192. package/lang/translations/el.po +3 -3
  193. package/lang/translations/es.po +3 -3
  194. package/lang/translations/et.po +3 -3
  195. package/lang/translations/fi.po +3 -3
  196. package/lang/translations/fr.po +3 -3
  197. package/lang/translations/he.po +3 -3
  198. package/lang/translations/hi.po +3 -3
  199. package/lang/translations/hu.po +3 -3
  200. package/lang/translations/id.po +3 -3
  201. package/lang/translations/it.po +3 -3
  202. package/lang/translations/ja.po +3 -3
  203. package/lang/translations/ko.po +3 -3
  204. package/lang/translations/lt.po +3 -3
  205. package/lang/translations/lv.po +3 -3
  206. package/lang/translations/ms.po +3 -3
  207. package/lang/translations/nl.po +3 -3
  208. package/lang/translations/no.po +3 -3
  209. package/lang/translations/pl.po +3 -3
  210. package/lang/translations/pt-br.po +3 -3
  211. package/lang/translations/pt.po +3 -3
  212. package/lang/translations/ro.po +3 -3
  213. package/lang/translations/ru.po +3 -3
  214. package/lang/translations/sk.po +3 -3
  215. package/lang/translations/sr.po +3 -3
  216. package/lang/translations/sv.po +3 -3
  217. package/lang/translations/th.po +3 -3
  218. package/lang/translations/tr.po +3 -3
  219. package/lang/translations/uk.po +3 -3
  220. package/lang/translations/vi.po +3 -3
  221. package/lang/translations/zh-cn.po +3 -3
  222. package/lang/translations/zh.po +3 -3
  223. package/package.json +25 -25
  224. package/src/commands/acceptsuggestioncommand.js +1 -1
  225. package/src/commands/discardsuggestioncommand.js +1 -1
  226. package/src/commands/executeonallsuggestionscommand.js +1 -1
  227. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  228. package/src/commands/previewfinalcontentcommand.js +1 -1
  229. package/src/commands/trackchangescommand.js +1 -1
  230. package/src/index.js +1 -1
  231. package/src/integrations/aiassistant.js +1 -1
  232. package/src/integrations/alignment.js +1 -1
  233. package/src/integrations/basicstyles.js +1 -1
  234. package/src/integrations/blockquote.js +1 -1
  235. package/src/integrations/bookmark.js +1 -1
  236. package/src/integrations/casechange.js +1 -1
  237. package/src/integrations/ckbox.js +1 -1
  238. package/src/integrations/codeblock.js +1 -1
  239. package/src/integrations/comments.js +1 -1
  240. package/src/integrations/deletecommand.js +1 -1
  241. package/src/integrations/emoji.d.ts +17 -0
  242. package/src/integrations/emoji.js +23 -0
  243. package/src/integrations/entercommand.js +1 -1
  244. package/src/integrations/findandreplace.js +1 -1
  245. package/src/integrations/font.js +1 -1
  246. package/src/integrations/formatpainter.js +1 -1
  247. package/src/integrations/heading.js +1 -1
  248. package/src/integrations/highlight.js +1 -1
  249. package/src/integrations/horizontalline.js +1 -1
  250. package/src/integrations/htmlembed.js +1 -1
  251. package/src/integrations/image.js +1 -1
  252. package/src/integrations/imagereplace.js +1 -1
  253. package/src/integrations/imagestyle.js +1 -1
  254. package/src/integrations/importword.js +1 -1
  255. package/src/integrations/indent.js +1 -1
  256. package/src/integrations/inputcommand.js +1 -1
  257. package/src/integrations/legacylist.js +1 -1
  258. package/src/integrations/legacylistproperties.js +1 -1
  259. package/src/integrations/link.js +1 -1
  260. package/src/integrations/list.js +1 -1
  261. package/src/integrations/listproperties.js +1 -1
  262. package/src/integrations/mediaembed.js +1 -1
  263. package/src/integrations/mention.js +1 -1
  264. package/src/integrations/mergefields.js +1 -1
  265. package/src/integrations/multilevellist.js +1 -1
  266. package/src/integrations/pagebreak.js +1 -1
  267. package/src/integrations/paragraph.js +1 -1
  268. package/src/integrations/removeformat.js +1 -1
  269. package/src/integrations/replacesourcecommand.d.ts +18 -0
  270. package/src/integrations/replacesourcecommand.js +23 -0
  271. package/src/integrations/restrictededitingmode.js +1 -1
  272. package/src/integrations/shiftentercommand.js +1 -1
  273. package/src/integrations/standardeditingmode.js +1 -1
  274. package/src/integrations/style.js +1 -1
  275. package/src/integrations/table.js +1 -1
  276. package/src/integrations/tablecaption.js +1 -1
  277. package/src/integrations/tableclipboard.js +1 -1
  278. package/src/integrations/tablecolumnresize.js +1 -1
  279. package/src/integrations/tableheadings.js +1 -1
  280. package/src/integrations/tablemergesplit.js +1 -1
  281. package/src/integrations/tableofcontents.js +1 -1
  282. package/src/integrations/tableproperties.js +1 -1
  283. package/src/integrations/template.js +1 -1
  284. package/src/integrations/title.js +1 -1
  285. package/src/integrations/undo.js +1 -1
  286. package/src/integrations/uploadcare.js +1 -1
  287. package/src/integrations/utils.js +1 -1
  288. package/src/suggestion.js +2 -2
  289. package/src/suggestiondescriptionfactory.js +1 -1
  290. package/src/trackchanges.js +1 -1
  291. package/src/trackchangesdata.js +1 -1
  292. package/src/trackchangesediting.d.ts +3 -1
  293. package/src/trackchangesediting.js +1 -1
  294. package/src/trackchangespreview.js +1 -1
  295. package/src/trackchangesui.js +1 -1
  296. package/src/ui/suggestioncontroller.js +2 -2
  297. package/src/ui/view/basesuggestionthreadview.js +1 -1
  298. package/src/ui/view/suggestionthreadview.js +1 -1
  299. package/src/ui/view/suggestionview.js +1 -1
  300. package/src/ui/view/trackchangespreviewview.js +1 -1
  301. package/src/utils/common-translations.js +1 -1
  302. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Qt,Plugin as _0x57a03e,PendingActions as _0x241f6a,icons as _0x3e595e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x46ed90,ObservableMixin as _0x10e46c,uid as _0x10a187,insertToPriorityArray as _0x1b87f0,priorities as _0x458afa,logWarning as _0xc0772e,getEnvKeystrokeText as _0x4aff40,FocusTracker as _0xf45791,KeystrokeHandler as _0xb2b1f1,Collection as _0x12ee00}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2cb6bd,View as _0x2b7e33,ViewCollection as _0x5ef1fd,FocusCycler as ts,ViewModel as _0x59794b,createDropdown as _0x317481,SplitButtonView as _0x36f765,addListToDropdown as _0x347310,MenuBarMenuView as _0x159d99,MenuBarMenuListView as _0x55d4d6,ListSeparatorView as _0x36f0d0,MenuBarMenuListItemView as _0x47716e,MenuBarMenuListItemButtonView as _0x48228b,BodyCollection as _0x3e344a,Dialog as _0x21cc22}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x25a128,hashObject as _0x2c181c,surroundingMarkersDetector as _0x212fc9,FOCUS_ANNOTATION_KEYSTROKE as _0x2db86e,AriaDescriptionView as _0x1330d1,setupThreadKeyboardNavigation as _0xd5d996,trimHtml as _0x3e9d2,UserView as _0x592ecf,LateFocusButtonView as _0x537bf2,getDateTimeFormatter as _0x58089b,getAllMarkersDomElementsSorted as _0x5b4d51,sanitizeEditorConfig as _0x195234}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1b7de5,LiveRange as _0x4da4a9,LivePosition as _0x4161d1,DowncastWriter as _0x3043ab}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x578877,toWidget as _0x4110e5}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3ad2fc,set as _0x4ad502,isEqual as _0x32ab49,unset as _0x4bcc06,omit as Et}from'lodash-es';import{Delete as _0x66c88e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x23e3ce,ShiftEnter as _0x5c51ca}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x2ee911,_0x2f8dbc){super(_0x2ee911),this['_enabledCommands']=_0x2f8dbc,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 _0x532230 of this['editor']['commands']['commands']())_0x532230['affectsData']&&!this['_enabledCommands']['has'](_0x532230)&&_0x532230['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4b8935 of this['editor']['commands']['commands']())_0x4b8935['affectsData']&&!this['_enabledCommands']['has'](_0x4b8935)&&_0x4b8935['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x3c3a9a,_0x3bdf4e){super(_0x3c3a9a),this['_suggestions']=_0x3bdf4e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x118fb7){const _0x4ba1d5=this['_suggestions']['get'](_0x118fb7);if(!_0x4ba1d5)throw new _0x46ed90('track-changes-accept-suggestion-not-found',this);const _0x4a6417=_0x4ba1d5['getRanges']();this['editor']['model']['canEditAt'](_0x4a6417)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4ba1d5);}}class R extends Qt{['_suggestions'];constructor(_0x177f6a,_0x18440c){super(_0x177f6a),this['_suggestions']=_0x18440c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x519404){const _0x31a30c=this['_suggestions']['get'](_0x519404);if(!_0x31a30c)throw new _0x46ed90('track-changes-discard-suggestion-not-found',this);const _0x49debc=_0x31a30c['getRanges']();this['editor']['model']['canEditAt'](_0x49debc)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x31a30c);}}function ns(_0x23e6c2,_0x4b3bf2){let _0x47a15a='';return _0x47a15a+=_0x23e6c2['split']('*')['map']((_0x4b8914,_0x552c87)=>_0x552c87%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4b8914)+'</span>':nn(_0x4b8914))['join'](''),_0x4b3bf2&&(_0x47a15a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4b3bf2['value']+'\x22\x20title=\x22'+_0x4b3bf2['title']+'\x22></span>'),_0x47a15a;}function nn(_0x55d02d){const _0x196e6c=document['createElement']('span');return _0x196e6c['innerText']=_0x55d02d,_0x196e6c['innerHTML'];}function Xt(_0x1155eb){return _0x1155eb['sort']((_0x51fd27,_0x1e1a61)=>'deletion'==_0x51fd27['type']&&'deletion'!=_0x1e1a61['type']?-0x1:'deletion'!=_0x51fd27['type']&&'deletion'==_0x1e1a61['type']?0x1:0x0);}function to(_0x5a092f,_0x5a45ca){let _0x3fdd8b,_0x5bb1ce=0x0;const _0x19b422=[],_0x4b3fad=_0x5a45ca['schema'];for(;_0x5bb1ce<_0x5a092f['length'];){const _0x7e5630=_0x5a092f[_0x5bb1ce],_0x2b11ea=_0x5a092f[_0x5bb1ce+0x1];_0x3fdd8b||(_0x3fdd8b=_0x5a45ca['createPositionBefore'](_0x7e5630)),on(_0x5a45ca,_0x7e5630,_0x2b11ea)||(_0x19b422['push'](_0x5a45ca['createRange'](_0x3fdd8b,_0x4b3fad['isObject'](_0x7e5630)?_0x5a45ca['createPositionAfter'](_0x7e5630):_0x5a45ca['createPositionAt'](_0x7e5630,'end'))),_0x3fdd8b=null),_0x5bb1ce++;}return _0x19b422;}function on(_0x3aecb9,_0x45a5af,_0x290d0c){if(!_0x290d0c)return!0x1;const _0xdb3fb6=_0x3aecb9['createPositionAfter'](_0x45a5af),_0x5a9b71=_0x3aecb9['createPositionBefore'](_0x290d0c);return _0xdb3fb6['isTouching'](_0x5a9b71);}function Yt(_0x14de25,_0x2b0ed7,_0x51609a){for(;_0x51609a['length'];){const _0x27890b=_0x51609a['splice'](0x0,0x64);_0x14de25['change'](()=>{for(const _0x2744ee of _0x27890b)_0x2744ee['isInContent']&&_0x2b0ed7['execute'](_0x2744ee['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x40dfda,_0x70716b,_0xa52a88){super(_0x40dfda),this['_command']=_0x70716b,this['_suggestions']=_0xa52a88,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x350676=Array['from'](this['_suggestions']['values']())['some'](_0x379d27=>_0x379d27['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x350676;}['execute'](){const _0x36b0e4=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x587f6b of _0x36b0e4){const _0x5a723e=_0x587f6b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5a723e))return;}Yt(this['editor']['model'],this['_command'],_0x36b0e4);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x343f33,_0x3e3ae6,_0xb7e478){super(_0x343f33),this['_command']=_0x3e3ae6,this['_suggestions']=_0xb7e478,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3ce0c1=this['editor']['model']['document']['selection'],_0x4d61be=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x157e6d,_0x4224a4){const _0x5a377d=Array['from'](_0x157e6d['getRanges']()),_0x28f4b8=new Set();for(const _0x4176d4 of _0x4224a4)if(_0x4176d4['isInContent']){for(const _0x2891ae of _0x5a377d)for(const _0x39094d of _0x4176d4['getRanges']())(_0x2891ae['isIntersecting'](_0x39094d)||_0x157e6d['isCollapsed']&&!_0x4176d4['isMultiRange']&&_0x4176d4['next']&&_0x39094d['end']['isTouching'](_0x2891ae['start']))&&_0x28f4b8['add'](_0x4176d4);}return _0x28f4b8;}(_0x3ce0c1,_0x4d61be),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x137149=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x3fa79e of _0x137149){const _0x3e177a=_0x3fa79e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3e177a))return;}Yt(this['editor']['model'],this['_command'],_0x137149);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x10e46c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5b3f69,_0x8dff01){super(),this['id']=_0x8dff01['id'],this['type']=_0x8dff01['type'],this['subType']=_0x8dff01['subType']||null,this['author']=_0x8dff01['author'],this['creator']=_0x8dff01['creator']||_0x8dff01['author'],this['isExternal']=Boolean(_0x8dff01['attributes']&&_0x8dff01['attributes']['@external']),this['data']=null,this['_model']=_0x5b3f69,this['_onAccept']=_0x8dff01['onAccept'],this['_onDiscard']=_0x8dff01['onDiscard'],this['_onAttributesChange']=_0x8dff01['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x8dff01['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 _0x5334f6=this;for(;_0x5334f6['previous'];)_0x5334f6=_0x5334f6['previous'];return _0x5334f6;}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'](_0x216922){this['_markerNames']['add'](_0x216922);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3802f8=>this['_model']['markers']['get'](_0x3802f8))['filter'](_0x2259f0=>_0x2259f0);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x393ae2=>{for(const _0x4a1585 of this['getMarkers']())_0x393ae2['removeMarker'](_0x4a1585);}),this['_markerNames']['clear']();}['removeMarker'](_0x117a15){this['_model']['change'](_0x27a51b=>{_0x27a51b['removeMarker'](_0x117a15);}),this['_markerNames']['delete'](_0x117a15);}['addRange'](_0x126599){const _0x19f230='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x19f230),this['_model']['change'](_0x55f737=>{_0x55f737['addMarker'](_0x19f230,{'range':_0x126599,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3a4e61){for(const _0x3e575c of this['getRanges']())if(_0x3e575c['isIntersecting'](_0x3a4e61))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x269cb6=>_0x269cb6['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5c5ec5,_0x455a6b)=>[..._0x5c5ec5,..._0x455a6b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xcf57ae=this['getRanges']();if(0x1!=_0xcf57ae['length'])return null;const _0x5de489=_0xcf57ae[0x0],_0x1250dc=_0x5de489['start']['nodeAfter'],_0x14e19c=_0x5de489['end']['nodeBefore'];return _0x1250dc instanceof _0x1b7de5?_0x1250dc!=_0x14e19c?null:_0x1250dc: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 _0x3033e8=[];let _0xed5805=this['head'];for(;_0xed5805;)_0x3033e8['push'](_0xed5805),_0xed5805=_0xed5805['next'];return _0x3033e8;}['setAttribute'](_0xd96548,_0x5be314){const _0x34d250=_0x3ad2fc(this['attributes']);_0x4ad502(_0x34d250,_0xd96548,_0x5be314),_0x32ab49(_0x34d250,this['attributes'])||(this['attributes']=_0x34d250,this['_onAttributesChange'](_0x34d250));}['removeAttribute'](_0x3723fa){const _0x19e125=_0x3ad2fc(this['attributes']);_0x4bcc06(_0x19e125,_0x3723fa),_0x32ab49(_0x19e125,this['attributes'])||(this['attributes']=_0x19e125,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 _0x10a187()['substr'](0x1,0x5);}}function o(_0x30c562,_0xa0607e,_0x2d40b1){const _0x43ef5a=_0x30c562['t'],t=_0x30c562['t'];switch(_0xa0607e){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',_0x2d40b1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2d40b1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2d40b1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2d40b1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2d40b1);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',_0x2d40b1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2d40b1);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',_0x2d40b1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2d40b1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2d40b1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2d40b1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2d40b1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2d40b1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2d40b1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2d40b1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2d40b1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2d40b1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2d40b1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2d40b1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2d40b1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2d40b1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2d40b1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2d40b1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2d40b1);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'},_0x2d40b1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2d40b1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2d40b1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2d40b1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2d40b1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2d40b1);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'},_0x2d40b1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2d40b1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2d40b1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2d40b1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2d40b1);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'},_0x2d40b1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2d40b1);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'},_0x2d40b1);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x2d40b1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2d40b1);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'},_0x2d40b1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2d40b1);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'},_0x2d40b1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2d40b1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2d40b1);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'},_0x2d40b1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2d40b1);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 _0x43ef5a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2d40b1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x43ef5a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2d40b1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2d40b1);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'},_0x2d40b1);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'},_0x2d40b1);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'},_0x2d40b1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xa0607e;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x7a28ca,_0x564695){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x7a28ca,this['_locale']=_0x564695;}['getDescriptions'](_0x311a91){const _0x412f1c=[],_0x232a4b=new Set(),_0x2d7072=new Set();for(let _0x46c301=0x0;_0x46c301<_0x311a91['length'];_0x46c301++){const _0x24b606=_0x311a91[_0x46c301];if(!_0x24b606['isInContent'])continue;const _0x526521=this['_handleCustomCallbackDescription'](_0x24b606);if(_0x526521){if(null!=_0x24b606['subType']){if(_0x232a4b['has'](_0x24b606['subType']))continue;_0x232a4b['add'](_0x24b606['subType']);}_0x412f1c['push'](_0x526521);}else{if('attribute'!=_0x24b606['type'])'insertion'!=_0x24b606['type']&&'deletion'!=_0x24b606['type']||this['_handleInsertRemoveSuggestionDescription'](_0x412f1c,_0x24b606,_0x311a91[_0x46c301+0x1]);else{const _0x390ea8=_0x24b606['data']['key'];if(_0x2d7072['has'](_0x390ea8))continue;_0x2d7072['add'](_0x24b606['data']['key']),_0x390ea8==m?this['_handleRenameSuggestionDescription'](_0x412f1c,_0x24b606):this['_handleAttributeSuggestionDescription'](_0x412f1c,_0x24b606);}}}return this['_resolveDescriptionItems'](_0x412f1c);}['registerDescriptionCallback'](_0x5aadd5){this['_customCallbacks']['push'](_0x5aadd5);}['registerElementLabel'](_0x51cb74,_0x4857c0,_0x51d55a=_0x458afa['normal']){'function'==typeof _0x51cb74?_0x1b87f0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x51cb74,'label':_0x4857c0,'priority':_0x51d55a}):this['_itemLabels']['set'](_0x51cb74,_0x4857c0);}['registerAttributeLabel'](_0x235941,_0x325f8f){this['_attributeLabels']['set'](_0x235941,_0x325f8f);}['getItemLabel'](_0x25bd5d,_0x3699ce=0x1){let _0x484843;for(const _0x18032a of this['_itemLabelsCallbacks'])if(_0x18032a['matchingCallback'](_0x25bd5d)){_0x484843=_0x18032a['label'];break;}return _0x484843||(_0x484843=this['_itemLabels']['get'](_0x25bd5d['name'])),_0x484843?_0x484843(_0x3699ce):0x1!==_0x3699ce?_0x3699ce+'\x20'+_0x25bd5d['name']+'s':''+_0x25bd5d['name'];}['_addDescriptionItems'](_0x5cb483,_0x5e3d60){const _0x407bb2=_0x5e3d60['getFirstRange']()['getWalker'](),_0x14e715='insertion'==_0x5e3d60['type']?'add':'remove';for(const _0x15b738 of _0x407bb2){const _0x442d40=_0x15b738['item'],_0x372bd7=_0x5cb483[_0x5cb483['length']-0x1];if(_0x442d40['is']('$textProxy'))_0x372bd7&&_0x372bd7['type']['indexOf']('Container')>-0x1&&_0x5cb483['pop'](),_0x372bd7&&'text'==_0x372bd7['type']?_0x372bd7[_0x14e715]+=_0x442d40['data']:_0x5cb483['push']({'type':'text','add':'add'==_0x14e715?_0x442d40['data']:'','remove':'remove'==_0x14e715?_0x442d40['data']:''});else{if(this['_schema']['isObject'](_0x442d40)){const _0x1851b3=_0x442d40;if(_0x372bd7&&_0x372bd7['type']['indexOf']('Container')>-0x1&&_0x5cb483['pop'](),'elementEnd'==_0x15b738['type'])continue;_0x372bd7&&_0x372bd7['type']==_0x14e715+'Object'&&_0x372bd7['element']['name']==_0x1851b3['name']?_0x372bd7['quantity']++:_0x5cb483['push']({'type':_0x14e715+'Object','element':_0x1851b3,'quantity':0x1}),_0x407bb2['skip'](_0x4fb078=>!('elementEnd'==_0x4fb078['type']&&_0x4fb078['item']==_0x442d40));}else{if(this['_schema']['checkChild'](_0x442d40,'$text')||_0x442d40['is']('element','softBreak')){const _0x55216c=_0x442d40;if('add'==_0x14e715&&'elementStart'==_0x15b738['type']||'remove'==_0x14e715&&'elementEnd'==_0x15b738['type'])continue;if(_0x372bd7&&-0x1==_0x372bd7['type']['indexOf']('Container')){'text'==_0x372bd7['type']&&(_0x372bd7[_0x14e715]+='\x0a');continue;}let _0x444b5e;if(_0x444b5e='add'==_0x14e715?_0x55216c['nextSibling']&&!this['_schema']['isObject'](_0x55216c['nextSibling'])?_0x55216c['nextSibling']:null:_0x55216c['previousSibling']&&!this['_schema']['isObject'](_0x55216c['previousSibling'])?_0x55216c['previousSibling']:null,_0x55216c['isEmpty']||_0x444b5e&&_0x444b5e['isEmpty']){const _0x35f456=_0x444b5e&&_0x444b5e['isEmpty']?_0x444b5e:_0x55216c;_0x372bd7&&_0x372bd7['type']==_0x14e715+'EmptyContainer'&&_0x372bd7['element']['name']==_0x35f456['name']?_0x372bd7['quantity']++:_0x5cb483['push']({'type':_0x14e715+'EmptyContainer','element':_0x35f456,'quantity':0x1});}else _0x5cb483['push']({'type':_0x14e715+'Container','element':_0x55216c});}}}}}['_resolveDescriptionItems'](_0x2ceb38){const _0x49c4a8=this['_locale'],_0x3385a4=[],_0x59a959=[],_0x2446f8=[];for(const _0x4f1130 of _0x2ceb38)switch(_0x4f1130['type']){case'text':if(_0x4f1130['add']=_0x4f1130['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f1130['remove']=_0x4f1130['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f1130['add']&&''!=_0x4f1130['remove']){_0x3385a4['push']({'type':'replace','content':o(_0x49c4a8,'REPLACE_TEXT',['\x22'+_0x4f1130['remove']+'\x22','\x22'+_0x4f1130['add']+'\x22'])});continue;}if(null!=_0x4f1130['add']['match'](/^ +$/)){_0x3385a4['push']({'type':'insertion','content':o(_0x49c4a8,'*Insert:*\x20%0',o(_0x49c4a8,'ELEMENT_SPACE',_0x4f1130['add']['length']))});continue;}if(null!=_0x4f1130['remove']['match'](/^ +$/)){_0x3385a4['push']({'type':'deletion','content':o(_0x49c4a8,'*Remove:*\x20%0',o(_0x49c4a8,'ELEMENT_SPACE',_0x4f1130['remove']['length']))});continue;}if(''!=_0x4f1130['add']){_0x3385a4['push']({'type':'insertion','content':o(_0x49c4a8,'*Insert:*\x20%0','\x22'+_0x4f1130['add']+'\x22')});continue;}_0x3385a4['push']({'type':'deletion','content':o(_0x49c4a8,'*Remove:*\x20%0','\x22'+_0x4f1130['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3385a4['push']({'type':'insertion','content':o(_0x49c4a8,'*Insert:*\x20%0',this['getItemLabel'](_0x4f1130['element'],_0x4f1130['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3385a4['push']({'type':'deletion','content':o(_0x49c4a8,'*Remove:*\x20%0',this['getItemLabel'](_0x4f1130['element'],_0x4f1130['quantity']))});continue;case'addContainer':_0x3385a4['push']({'type':'insertion','content':o(_0x49c4a8,'*Split:*\x20%0',this['getItemLabel'](_0x4f1130['element'],_0x4f1130['quantity']))});continue;case'removeContainer':_0x3385a4['push']({'type':'deletion','content':o(_0x49c4a8,'*Merge:*\x20%0',this['getItemLabel'](_0x4f1130['element'],_0x4f1130['quantity']))});continue;case'addFormat':_0x59a959['push'](_0x4f1130['key']);continue;case'removeFormat':_0x2446f8['push'](_0x4f1130['key']);continue;default:_0x3385a4['push'](_0x4f1130);}if(_0x59a959['length']){const _0x3066e8=_0x59a959['map'](_0x380f6a=>this['_attributeLabels']['has'](_0x380f6a)?this['_attributeLabels']['get'](_0x380f6a):_0x380f6a)['join'](',\x20');_0x3385a4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3066e8)});}if(_0x2446f8['length']){const _0x120f49=_0x2446f8['map'](_0x3cf55e=>this['_attributeLabels']['has'](_0x3cf55e)?this['_attributeLabels']['get'](_0x3cf55e):_0x3cf55e)['join'](',\x20');_0x3385a4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x120f49)});}return _0x3385a4;}['_handleCustomCallbackDescription'](_0xe4c298){for(const _0x56cbdd of this['_customCallbacks']){const _0x4f9e8d=_0x56cbdd(_0xe4c298);if(_0x4f9e8d&&'type'in _0x4f9e8d)return _0x4f9e8d;}}['_handleAttributeSuggestionDescription'](_0x274d6e,_0x1b330f){const _0x3f26c1=_0x1b330f['data'],_0x390c45=void 0x0===_0x3f26c1['newValue']?'removeFormat':'addFormat';_0x274d6e['push']({'type':_0x390c45,'key':_0x3f26c1['key']});}['_handleRenameSuggestionDescription'](_0x5e124a,_0x46d146){_0x5e124a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x46d146['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x140d5d,_0x5447be,_0xc1e85d){if(this['_addDescriptionItems'](_0x140d5d,_0x5447be),_0xc1e85d&&_0xc1e85d['getFirstRange']()&&!_0x5447be['getFirstRange']()['end']['isEqual'](_0xc1e85d['getFirstRange']()['start'])){const _0x328d22=_0x140d5d[_0x140d5d['length']-0x1],_0x53ed8b='insertion'==_0x5447be['type']?'add':'remove';_0x328d22&&'text'==_0x328d22['type']&&(_0x328d22[_0x53ed8b]+='\x0a');}}}class U extends _0x57a03e{['afterInit'](){const _0x39dfb3=this['editor'],_0x4c63aa=_0x39dfb3['plugins']['get']('TrackChangesEditing');_0x39dfb3['commands']['get']('showAIAssistant')&&_0x4c63aa['enableCommand']('showAIAssistant');}}class V extends _0x57a03e{['afterInit'](){const _0x561e9c=this['editor'],_0x194053=_0x561e9c['locale'];if(!_0x561e9c['plugins']['has']('AlignmentEditing'))return;const _0x6f7e65=_0x561e9c['plugins']['get']('TrackChangesEditing');_0x6f7e65['enableDefaultAttributesIntegration']('alignment'),_0x6f7e65['registerBlockAttribute']('alignment'),_0x6f7e65['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x194053,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x157ce8=this['editor'],_0x4cec9e=_0x157ce8['locale'];_0x157ce8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3503db=>{if('formatBlock'!=_0x3503db['type'])return;const {data:_0x463a36}=_0x3503db;if(_0x463a36&&'alignment'==_0x463a36['commandName']){const _0x1ceb56=_0x463a36['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4cec9e,'*Format:*\x20%0',function(_0x40e790){switch(_0x40e790){case'left':return o(_0x4cec9e,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4cec9e,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4cec9e,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4cec9e,'FORMAT_JUSTIFY_TEXT');}}(_0x1ceb56))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x57a03e{['afterInit'](){const _0x11a696=this['editor'],_0x5ea1f0=_0x11a696['plugins']['get']('TrackChangesEditing'),_0x3ebc89=_0x11a696['locale'];for(const _0x113d6c of ti){if(!_0x11a696['plugins']['has'](_0x113d6c))continue;const _0x742cb1=_0x113d6c['slice'](0x0,-0x7)['toLowerCase'](),_0x29aaed='FORMAT_'+_0x742cb1['toUpperCase']();_0x5ea1f0['enableDefaultAttributesIntegration'](_0x742cb1),_0x5ea1f0['registerInlineAttribute'](_0x742cb1),_0x5ea1f0['descriptionFactory']['registerAttributeLabel'](_0x742cb1,o(_0x3ebc89,_0x29aaed));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfbaee9=this['editor'],_0x565929=_0xfbaee9['locale'],_0x39f28e=_0xfbaee9['plugins']['get']('TrackChangesEditing');function _0x32d859(_0x1a51c8,_0x2747da){_0x39f28e['descriptionFactory']['registerDescriptionCallback'](_0x1919da=>{if('formatInline'!=_0x1919da['type'])return;const {data:_0x2ec659}=_0x1919da;return _0x2ec659&&_0x2ec659['commandName']===_0x1a51c8?_0x2ec659['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x565929,'*Format:*\x20%0',_0x2747da)}:{'type':'format','content':o(_0x565929,'*Remove\x20format:*\x20%0',_0x2747da)}:void 0x0;});}_0x32d859('bold',o(_0x565929,'FORMAT_BOLD')),_0x32d859('italic',o(_0x565929,'FORMAT_ITALIC')),_0x32d859('underline',o(_0x565929,'FORMAT_UNDERLINE')),_0x32d859('code',o(_0x565929,'FORMAT_CODE')),_0x32d859('strikethrough',o(_0x565929,'FORMAT_STRIKETHROUGH')),_0x32d859('subscript',o(_0x565929,'FORMAT_SUBSCRIPT')),_0x32d859('superscript',o(_0x565929,'FORMAT_SUPERSCRIPT'));}}class F extends _0x57a03e{['afterInit'](){const _0x352a97=this['editor'],_0x40e5bd=_0x352a97['locale'];if(!_0x352a97['plugins']['has']('BlockQuoteEditing'))return;const _0x481d8c=_0x352a97['plugins']['get']('TrackChangesEditing'),_0x22168b=this['editor']['commands']['get']('blockQuote');_0x481d8c['enableCommand']('blockQuote',(_0x4b0e9f,_0x481207={})=>{const _0x1f2b5f=this['editor']['model']['document']['selection'],_0x2f906c=_0x481207&&void 0x0!==_0x481207['forceValue']?_0x481207['forceValue']:!_0x22168b['value'];let _0x6e85c6=[];if(_0x2f906c){const _0x17c713=Array['from'](_0x1f2b5f['getSelectedBlocks']())['filter'](_0x41f30c=>oo(_0x41f30c)||function(_0x37c119,_0x3897ac){const _0x4b771d=_0x3897ac['checkChild'](_0x37c119['parent'],'blockQuote'),_0x5da567=_0x3897ac['checkChild'](['$root','blockQuote'],_0x37c119);return _0x4b771d&&_0x5da567;}(_0x41f30c,this['editor']['model']['schema']));_0x6e85c6=to(_0x17c713,_0x352a97['model']);}else{const _0x203203=Array['from'](_0x1f2b5f['getSelectedBlocks']())['filter'](_0x53141e=>oo(_0x53141e));_0x6e85c6=to(_0x203203,_0x352a97['model']);}_0x352a97['model']['change'](()=>{for(const _0x2583a7 of _0x6e85c6)_0x481d8c['markBlockFormat'](_0x2583a7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2f906c}]});});}),_0x481d8c['descriptionFactory']['registerDescriptionCallback'](_0x180a1c=>{const {data:_0x1111f5}=_0x180a1c;if(_0x1111f5&&'blockQuote'==_0x1111f5['commandName']){const _0x5066ae=o(_0x40e5bd,'ELEMENT_BLOCK_QUOTE');return _0x1111f5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40e5bd,'*Set\x20format:*\x20%0',_0x5066ae)}:{'type':'format','content':o(_0x40e5bd,'*Remove\x20format:*\x20%0',_0x5066ae)};}});}}function oo(_0x238ffb){return'blockQuote'==_0x238ffb['parent']['name'];}class L extends _0x57a03e{['afterInit'](){const _0x28465f=this['editor'],_0x2c5d4d=_0x28465f['locale'],_0x55da5e=_0x28465f['plugins']['get']('TrackChangesEditing');_0x28465f['plugins']['has']('BookmarkEditing')&&(_0x55da5e['enableCommand']('insertBookmark'),_0x55da5e['enableDefaultAttributesIntegration']('updateBookmark'),_0x55da5e['registerBlockAttribute']('bookmarkId'),_0x55da5e['descriptionFactory']['registerDescriptionCallback'](_0x542414=>{if('insertion'!=_0x542414['type']&&'deletion'!=_0x542414['type']&&'attribute'!=_0x542414['type'])return;const _0x37564a=_0x542414['getContainedElement']();if(null==_0x37564a)return;if(!_0x37564a['is']('element','bookmark'))return;const _0x335bb5=_0x37564a['getAttribute']('bookmarkId');if('insertion'==_0x542414['type'])return{'type':'insertion','content':o(_0x2c5d4d,'*Insert:*\x20%0','\x22'+_0x335bb5+'\x22\x20'+o(_0x2c5d4d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x542414['type'])return{'type':'deletion','content':o(_0x2c5d4d,'*Remove:*\x20%0','\x22'+_0x335bb5+'\x22\x20'+o(_0x2c5d4d,'ELEMENT_BOOKMARK'))};const {data:_0x4a894c}=_0x542414;if(!_0x4a894c||'bookmarkId'!=_0x4a894c['key'])return;return{'type':'format','content':o(_0x2c5d4d,'*Set\x20bookmark:*\x20%0','\x22'+_0x4a894c['newValue']+'\x22')};}));}}class J extends _0x57a03e{['afterInit'](){const _0x3636bb=this['editor'];_0x3636bb['plugins']['has']('CaseChange')&&(_0x3636bb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3636bb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3636bb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x57a03e{['afterInit'](){const _0x272b95=this['editor'];_0x272b95['commands']['get']('ckbox')&&_0x272b95['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x57a03e{['afterInit'](){const _0x2bef31=this['editor'];if(!_0x2bef31['plugins']['has']('CodeBlock'))return;const _0x4be45c=_0x2bef31['plugins']['get']('TrackChangesEditing'),_0x22399c=_0x2bef31['locale'],_0x1fa920=_0x2bef31['config']['get']('codeBlock')['languages'],_0x4c59c0=_0x2bef31['commands']['get']('codeBlock');_0x4be45c['enableCommand']('indentCodeBlock'),_0x4be45c['enableCommand']('outdentCodeBlock'),_0x4be45c['enableCommand']('codeBlock',(_0x86f356,_0x44ec8f={})=>{const _0x2441a4=_0x2bef31['model'],_0x267fd9=_0x2bef31['model']['document']['selection'],_0x39c84f=_0x44ec8f&&void 0x0!==_0x44ec8f['forceValue']?_0x44ec8f['forceValue']:!_0x4c59c0['value'];let _0x1eb403;_0x44ec8f['language']||(_0x44ec8f['language']=_0x1fa920[0x0]['language']),_0x1eb403=_0x39c84f?Array['from'](_0x267fd9['getSelectedBlocks']())['filter'](_0x1b2dfb=>eo(_0x1b2dfb)||function(_0x425a85,_0x4db3b4){if(_0x425a85['is']('rootElement')||_0x4db3b4['isLimit'](_0x425a85))return!0x1;return _0x4db3b4['checkChild'](_0x425a85['parent'],'codeBlock');}(_0x1b2dfb,_0x2441a4['schema'])):Array['from'](_0x267fd9['getSelectedBlocks']())['filter'](_0x55af00=>eo(_0x55af00));const _0x1bd273=to(_0x1eb403,_0x2441a4);_0x2441a4['change'](()=>{for(const _0x192bdb of _0x1bd273)_0x4be45c['markBlockFormat'](_0x192bdb,{'commandName':'codeBlock','commandParams':[{..._0x44ec8f,'forceValue':_0x39c84f}],'formatGroupId':'blockName'});});}),(_0x4be45c['descriptionFactory']['registerElementLabel']('codeBlock',_0x8fc51d=>o(_0x22399c,'ELEMENT_CODE_BLOCK',_0x8fc51d)),_0x4be45c['descriptionFactory']['registerDescriptionCallback'](_0x59a6f3=>{if('formatBlock'!=_0x59a6f3['type'])return;const _0x49ebc0=_0x22399c['t'],{data:_0x3fc15c}=_0x59a6f3;if(!_0x3fc15c||'codeBlock'!=_0x3fc15c['commandName'])return;const _0x80b509=_0x3fc15c['commandParams'][0x0]['language'],_0x176d75=_0x49ebc0(_0x1fa920['find'](_0x355afc=>_0x355afc['language']===_0x80b509)['label'])['toLowerCase']();return _0x3fc15c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x22399c,'*Set\x20format:*\x20%0',o(_0x22399c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x176d75+')')}:{'type':'format','content':o(_0x22399c,'*Remove\x20format:*\x20%0',o(_0x22399c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x133974){return'codeBlock'==_0x133974['name'];}class z extends _0x57a03e{['afterInit'](){const _0x57bdd2=this['editor'];if(!_0x57bdd2['plugins']['has']('CommentsEditing'))return;_0x57bdd2['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x24e59e,_0xf3a751,_0x4ff6b4){const _0x5ef4bb=[];for(const _0x5cef74 of _0xf3a751['getItems']())_0x5cef74['hasAttribute'](_0x24e59e)&&_0x5ef4bb['push'](_0x4ff6b4['createRangeOn'](_0x5cef74));return _0x5ef4bb;}function De(_0x46fdc7,_0x5f4a6d,{showActiveMarker:_0x464514=!0x0}={}){const _0x3cc272=_0x46fdc7['plugins']['get']('TrackChangesEditing');return(_0x2d85f4,_0x44f101,_0x423b9e)=>{if(!_0x423b9e['consumable']['test'](_0x44f101['markerRange'],_0x2d85f4['name']))return;const _0x30573d=_0x44f101['markerRange']['getWalker'](),_0x5e7666=_0x44f101['markerRange']['start'],_0x3d7855=_0x46fdc7['model']['schema'];let _0x3a1a23=null,_0x49f50e=null,_0x193b41=!0x1,_0x5841fd=!0x1;for(const _0xbe02c5 of _0x30573d){const _0x5809ed=_0xbe02c5['item'];_0x193b41=_0x193b41||_0x3d7855['isContent'](_0x5809ed);const _0x438e28=_0x423b9e['mapper']['toViewElement'](_0x5809ed);if(_0x438e28&&_0x438e28['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xbe02c5['type']&&(_0x3d7855['isBlock'](_0x5809ed)&&!_0x3d7855['isLimit'](_0x5809ed)&&(_0x5809ed['nextSibling']||_0x5e7666['isAtEnd']?_0x3a1a23&&_0x3a1a23['parent']==_0x5809ed||(_0x3a1a23=_0x5809ed,_0x2bf853(_0xbe02c5['previousPosition']),_0x5841fd=!0x0):_0x49f50e=_0x49f50e||_0xbe02c5['previousPosition']));}function _0x2bf853(_0x8b4c75){const {authorId:_0x42916e}=_0x3cc272['_splitMarkerName'](_0x44f101['markerName']),_0x9e72f2=_0x423b9e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5f4a6d,'data-author-id':_0x42916e}),_0x1cf01a=_0x423b9e['mapper']['toViewPosition'](_0x8b4c75);_0x464514&&_0x3cc272['activeMarkers']['includes'](_0x44f101['markerName'])&&_0x423b9e['writer']['addClass']('ck-suggestion-marker--active',_0x9e72f2),_0x423b9e['writer']['insert'](_0x1cf01a,_0x9e72f2),_0x423b9e['mapper']['bindElementToMarker'](_0x9e72f2,_0x44f101['markerName']);}_0x193b41||_0x5841fd||!_0x49f50e||_0x2bf853(_0x49f50e);};}class K extends _0x57a03e{static get['requires'](){return[_0x66c88e];}['init'](){const _0x380312=this['editor'],_0x49a3aa=_0x380312['plugins']['get']('TrackChangesEditing');_0x49a3aa['enableCommand']('delete');const _0xbd9f89=_0x380312['commands']['get']('deleteForward');_0x49a3aa['enableCommand']('deleteForward',(_0x5d6886,_0x46c5fb={})=>{const _0x32282b=_0x380312['model']['createSelection'](_0x380312['model']['document']['selection']);_0x32282b['isCollapsed']&&_0x380312['model']['modifySelection'](_0x32282b,{'direction':'forward','unit':_0x46c5fb['unit']});const _0x2ccfdd=_0x32282b['getFirstRange'](),_0x103de5=_0x4da4a9['fromRange'](_0x2ccfdd);let _0x5067be;_0x5d6886(_0x46c5fb),_0x5067be='$graveyard'==_0x103de5['root']['rootName']?_0x380312['model']['createRange'](_0x2ccfdd['start']):_0x380312['model']['createRange'](_0x103de5['start'],_0x103de5['end']),_0x103de5['detach'](),_0x380312['model']['enqueueChange'](_0xbd9f89['buffer']['batch'],_0xb52e44=>{_0xbd9f89['buffer']['lock'](),_0xb52e44['setSelection'](_0xb52e44['createRange'](_0x5067be['end'])),_0xbd9f89['buffer']['unlock']();});}),_0x380312['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x380312,'merge'),{'priority':'high'}),_0x380312['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x375e76,_0x25a895,_0xa0a1ce)=>{_0xa0a1ce['options']['showSuggestionHighlights']&&De(_0x380312,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x375e76,_0x25a895,_0xa0a1ce);},{'priority':'high'}),_0x380312['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x147e81,_0x2c867c,_0x277bb7)=>{const _0x2a2be5=_0x277bb7['mapper']['markerNameToElements'](_0x2c867c['markerName']);if(_0x2a2be5){for(const _0x221476 of _0x2a2be5)_0x221476['is']('uiElement')&&(_0x277bb7['mapper']['unbindElementFromMarkerName'](_0x221476,_0x2c867c['markerName']),_0x277bb7['writer']['remove'](_0x221476));}},{'priority':'high'});}}class W extends _0x57a03e{['afterInit'](){const _0x51269d=this['editor'];if(!_0x51269d['plugins']['has']('ListEditing'))return;const _0x2a2938=_0x51269d['locale'],_0x22e222=_0x51269d['plugins']['get']('TrackChangesEditing'),_0x30c071=_0x51269d['plugins']['has']('TodoListEditing'),_0x15fc70=!!_0x51269d['config']['get']('list.multiBlock');function _0x407fd5(_0xb3f21c){return{'type':'format','content':''+o(_0x2a2938,'*Set\x20format:*\x20%0',_0xb3f21c)};}function _0x55eda0(_0x39f806){return{'type':'format','content':''+o(_0x2a2938,'*Remove\x20format:*\x20%0',_0x39f806)};}_0x22e222['enableDefaultAttributesIntegration']('numberedList'),_0x22e222['enableDefaultAttributesIntegration']('bulletedList'),_0x22e222['enableDefaultAttributesIntegration']('customNumberedList'),_0x22e222['enableDefaultAttributesIntegration']('customBulletedList'),_0x22e222['enableDefaultAttributesIntegration']('indentList'),_0x22e222['enableDefaultAttributesIntegration']('outdentList'),_0x22e222['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x22e222['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x22e222['registerBlockAttribute']('listItemId'),_0x22e222['registerBlockAttribute']('listType'),_0x22e222['registerBlockAttribute']('listIndent'),_0x15fc70&&(_0x22e222['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x22e222['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x30c071&&(_0x22e222['enableDefaultAttributesIntegration']('todoList'),_0x22e222['enableDefaultAttributesIntegration']('checkTodoList'),_0x22e222['registerBlockAttribute']('todoListChecked'),_0x22e222['descriptionFactory']['registerDescriptionCallback'](_0x2617fb=>{const {data:_0x1a4b6f}=_0x2617fb;if(_0x1a4b6f&&'todoListChecked'==_0x1a4b6f['key'])return{'type':'format','content':_0x1a4b6f['newValue']?o(_0x2a2938,'*Check\x20item*'):o(_0x2a2938,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2c9971=>{if(_0x2c9971['batch']['isUndo'])return!0x1;let _0x50af44=!0x1;const _0xc85098=_0x22e222['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1bf357=>'todoListChecked'===_0x22e222['_getAttributeKey'](_0x1bf357));for(const _0x34ac6e of _0xc85098){'todo'!=_0x34ac6e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x22e222['_findSuggestions'](_0x34ac6e['getFirstRange'](),'attribute')['find'](_0xd4f30d=>'listType'===_0x22e222['_getAttributeKey'](_0xd4f30d['suggestion']))||(_0x2c9971['removeMarker'](_0x34ac6e['getFirstMarker']()),_0x50af44=!0x0));}return _0x50af44;})),_0x22e222['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2a2938,'FORMAT_INDENT'));const _0x5df25f={'type':'format','content':''};_0x22e222['descriptionFactory']['registerDescriptionCallback'](_0x521557=>{const {data:_0x3d472f}=_0x521557;if(!_0x3d472f||'listType'!=_0x3d472f['key'])return;let _0x21705d=_0x521557['head'];for(;_0x21705d;){if(_0x21705d['data']&&(('listStyle'==_0x21705d['data']['key']||'listMarkerStyle'==_0x21705d['data']['key'])&&(_0x21705d['data']['newValue']&&'default'!=_0x21705d['data']['newValue']||'default'!=_0x21705d['data']['oldValue']&&!_0x3d472f['newValue'])||!_0x15fc70&&_0x21705d['data']['key']==m))return _0x5df25f;_0x21705d=_0x21705d['next'];}if(null==_0x3d472f['newValue'])switch(_0x3d472f['oldValue']){case'bulleted':return _0x55eda0(o(_0x2a2938,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x55eda0(o(_0x2a2938,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x55eda0(o(_0x2a2938,'ELEMENT_TODO_LIST'));}switch(_0x3d472f['newValue']){case'bulleted':return _0x407fd5(o(_0x2a2938,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x407fd5(o(_0x2a2938,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x407fd5(o(_0x2a2938,'ELEMENT_TODO_LIST'));}}),_0x22e222['descriptionFactory']['registerDescriptionCallback'](_0x3da91e=>{const {data:_0x4fb90b}=_0x3da91e;if(_0x4fb90b&&'listIndent'==_0x4fb90b['key'])return null==_0x4fb90b['newValue']||null==_0x4fb90b['oldValue']&&0x0==_0x4fb90b['newValue']?_0x5df25f:void 0x0;}),_0x22e222['descriptionFactory']['registerDescriptionCallback'](_0x36c948=>{if('attribute'!=_0x36c948['type'])return;const {data:_0x5ee685}=_0x36c948;if(!_0x5ee685||'listItemId'!=_0x5ee685['key'])return;const _0x2abd67=Te(_0x36c948);return'newValue'==_0x2abd67?{'type':'format','content':o(_0x2a2938,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2abd67?{'type':'format','content':o(_0x2a2938,'*Split:*\x20list\x20item')}:_0x5df25f;}),_0x51269d['model']['document']['registerPostFixer'](_0x48ffe1=>this['listItemIdFixer'](_0x48ffe1)),_0x51269d['model']['document']['registerPostFixer'](_0x21844b=>this['noTrackChangesFixer'](_0x21844b)),_0x51269d['model']['document']['on']('change:data',(_0x4368a6,_0x42e454)=>{if(_0x42e454['isUndo']||!_0x42e454['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x11c48f){if(_0x11c48f['batch']['isUndo']||!_0x11c48f['batch']['isLocal'])return!0x1;let _0x24b8ba=!0x1;const _0xfe82d8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4587f8=>_0x4587f8['data']&&'listItemId'==_0x4587f8['data']['key'])['filter'](_0x4639f3=>_0x4639f3['data']['newValue']&&_0x4639f3['data']['oldValue']);for(const _0x330780 of _0xfe82d8)Te(_0x330780)||(_0x11c48f['removeMarker'](_0x330780['getFirstMarker']()),_0x24b8ba=!0x0);return _0x24b8ba;}['noTrackChangesFixer'](_0x4a129f){if(_0x4a129f['batch']['isUndo']||!_0x4a129f['batch']['isLocal'])return!0x1;const _0x34c769=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x34c769['trackChangesCommand']['value'])return!0x1;let _0x21eece=!0x1;const _0x2490f8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x19d8fc=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x15a8d1=>'attribute'==_0x15a8d1['type'])['filter'](_0xf788fe=>_0x2490f8['includes'](_0xf788fe['attributeKey']));if(0x0==_0x19d8fc['length'])return _0x21eece;for(const _0x2284cd of _0x19d8fc){const _0x5a58fc=_0x34c769['_findSuggestions'](_0x2284cd['range'],'attribute')['filter'](_0x44d9da=>!_0x44d9da['meta']['isNextTo'])['map'](_0x2d465f=>_0x2d465f['suggestion'])['filter'](_0x9d0ae0=>{const _0x2e519a=_0x34c769['_getAttributeKey'](_0x9d0ae0);return _0x2490f8['includes'](_0x2e519a);});if(_0x5a58fc['length']){for(const _0x30bf57 of _0x5a58fc)_0x4a129f['removeMarker'](_0x30bf57['getFirstMarker']());_0x21eece=!0x0;}}return _0x21eece;}['assureChains'](){const _0x12b1a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x433149=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x32689c;const _0x50d338=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5cd3c2=>{if(_0x5cd3c2['data']['oldRange']||!_0x5cd3c2['data']['newRange'])return null;if(!_0x5cd3c2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1a1a5}=_0x12b1a1['_splitMarkerName'](_0x5cd3c2['name']);if(!_0x12b1a1['hasSuggestion'](_0x1a1a5))return null;const _0x3b263c=_0x12b1a1['getSuggestion'](_0x1a1a5);return _0x433149['includes'](_0x3b263c['data']['key']);})['map'](_0x1bc78c=>{const {id:_0x2d9281}=_0x12b1a1['_splitMarkerName'](_0x1bc78c['name']),_0x5a7c0=_0x12b1a1['getSuggestion'](_0x2d9281);return _0x32689c=_0x5a7c0['attributes']['groupId'],_0x5a7c0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x50d338['size'])return;const _0x246689=_0x12b1a1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x221a57=>'attribute'==_0x221a57['type']&&_0x221a57['data']&&_0x433149['includes'](_0x221a57['data']['key'])&&_0x221a57['attributes']['groupId']!=_0x32689c)['map'](_0x1e67c9=>({'listItem':_0x1e67c9['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1e67c9['attributes']['groupId']})),_0x2800b7=new Set();for(const {groupId:_0x1f7fbd,listItem:_0x56b1dc}of _0x246689)_0x50d338['has'](_0x56b1dc)&&_0x2800b7['add'](_0x1f7fbd);for(const _0x4af8f3 of _0x12b1a1['getSuggestions']())_0x2800b7['has'](_0x4af8f3['attributes']['groupId'])&&_0x4af8f3['setAttribute']('groupId',_0x32689c);}['_supportLegacySuggestions'](){const _0x40c8b=this['editor'],_0x5424e6=_0x40c8b['locale'],_0x46a9de=_0x40c8b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x46a9de['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x37e216,_0x3087ea){const _0x33f291=[];for(let _0x47c4d2 of _0x37e216)_0x47c4d2['start']['nodeAfter']===_0x47c4d2['end']['parent']&&(_0x47c4d2=_0x40c8b['model']['createRange'](_0x40c8b['model']['createPositionAt'](_0x47c4d2['start']['nodeAfter'],0x0))),_0x33f291['push'](_0x47c4d2);_0x40c8b['model']['change'](_0x535f16=>{const _0x20215a=_0x40c8b['model']['document']['selection'],_0x1dec07=Array['from'](_0x20215a['getRanges']())['map'](_0x8801=>_0x4da4a9['fromRange'](_0x8801));_0x535f16['setSelection'](_0x33f291),_0x40c8b['commands']['get'](_0x3087ea['commandName'])['refresh'](),_0x3087ea['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x40c8b['execute'](_0x3087ea['commandName'],..._0x3087ea['commandParams']),_0x535f16['setSelection'](_0x1dec07);for(const _0x44632e of _0x1dec07)_0x44632e['detach']();});}),_0x46a9de['descriptionFactory']['registerElementLabel'](function(_0x57f290){const _0x239ab8=!_0x40c8b['model']['schema']['isObject'](_0x57f290),_0x2a7682=_0x57f290['previousSibling'],_0x32ff17=_0x57f290['nextSibling'],_0x2e0629=_0x57f290['getAttribute']('listItemId'),_0x35842c=!_0x2a7682||_0x2a7682['getAttribute']('listItemId')!==_0x2e0629,_0x4c036f=!_0x32ff17||_0x32ff17['getAttribute']('listItemId')!==_0x2e0629;return _0x239ab8&&Boolean(_0x2e0629)&&_0x35842c&&_0x4c036f;},_0x44db5d=>o(_0x5424e6,'ELEMENT_LIST_ITEM',_0x44db5d));}['_registerLegacyDescription'](){const _0x5280e6=this['editor'],_0x3ac154=_0x5280e6['locale'];function _0x5edc3c(_0x18f40c){const _0x5708a5=_0x5280e6['commands']['get']('bulletedList')['value'],_0x3c8550=_0x5280e6['commands']['get']('numberedList')['value'];return'numberedList'===_0x18f40c?_0x5708a5:_0x3c8550;}_0x5280e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5d3c57){if('formatBlock'!=_0x5d3c57['type'])return;const {data:_0xccf872}=_0x5d3c57;if(!_0xccf872)return;let _0x29b308,_0x5cc86b,_0x4521d6,_0x1004b9;switch(_0xccf872['commandName']){case'bulletedList':_0x4521d6=_0xccf872['commandParams'][0x0]['forceValue'],_0x1004b9=_0x5edc3c(_0xccf872['commandName']),_0x29b308=_0x4521d6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1004b9&&_0x5280e6['config']['get']('list.multiBlock')||(_0x29b308='*Change\x20to:*\x20%0'),_0x5cc86b={'type':'format','content':o(_0x3ac154,_0x29b308,o(_0x3ac154,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4521d6=_0xccf872['commandParams'][0x0]['forceValue'],_0x1004b9=_0x5edc3c(_0xccf872['commandName']),_0x29b308=_0x4521d6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1004b9&&_0x5280e6['config']['get']('list.multiBlock')||(_0x29b308='*Change\x20to:*\x20%0'),_0x5cc86b={'type':'format','content':o(_0x3ac154,_0x29b308,o(_0x3ac154,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x29b308='*Indent:*\x20%0',_0x5cc86b={'type':'format','content':o(_0x3ac154,_0x29b308,o(_0x3ac154,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x29b308=function(_0x381fe4){const _0x5acec2=_0x381fe4['getFirstRange']();let _0x267e73=_0x5acec2['start']['nodeAfter'];for(;_0x267e73&&_0x5acec2['containsItem'](_0x267e73);){if(_0x267e73['getAttribute']('listIndent')>0x0)return!0x1;_0x267e73=_0x267e73['nextSibling'];}return!0x0;}(_0x5d3c57)?o(_0x3ac154,'*Format:*\x20remove\x20from\x20%0',o(_0x3ac154,function(_0x223499){return'ELEMENT_'+_0x223499['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5d3c57))):o(_0x3ac154,'*Outdent:*\x20%0',o(_0x3ac154,'ELEMENT_LIST_ITEM')),_0x5cc86b={'type':'format','content':_0x29b308};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xccf872['multipleBlocks']&&(_0x29b308='*Merge:*\x20%0',_0x5cc86b={'type':'deletion','content':o(_0x3ac154,_0x29b308,o(_0x3ac154,'ELEMENT_LIST_ITEM'))});}return _0x5cc86b;});}}function Te(_0x5495c5){let _0x40d92d=_0x5495c5['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x40d92d;){const _0x316b81=_0x40d92d['getAttribute']('listItemId');if(!_0x316b81)return!0x1;if(_0x316b81==_0x5495c5['data']['newValue'])return'newValue';if(_0x316b81==_0x5495c5['data']['oldValue'])return'oldValue';_0x40d92d=_0x40d92d['previousSibling'];}return!0x1;}class Se extends _0x57a03e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2a2208=this['editor']['config']['get']('list.properties'),_0xc569d2=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a2208['styles']&&(_0xc569d2['enableDefaultAttributesIntegration']('listStyle'),_0xc569d2['registerBlockAttribute']('listStyle')),_0x2a2208['reversed']&&(_0xc569d2['enableDefaultAttributesIntegration']('listReversed'),_0xc569d2['registerBlockAttribute']('listReversed')),_0x2a2208['startIndex']&&(_0xc569d2['enableDefaultAttributesIntegration']('listStart'),_0xc569d2['registerBlockAttribute']('listStart'));const _0xa91fa2={'type':'format','content':''};_0xc569d2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4c8675=this['editor']['locale'];_0xc569d2['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4c8675,'FORMAT_LIST_REVERSED')),_0xc569d2['descriptionFactory']['registerDescriptionCallback'](_0x3e5f2d=>{const {data:_0xc9a2f8}=_0x3e5f2d;if(_0xc9a2f8&&'listReversed'==_0xc9a2f8['key'])return null==_0xc9a2f8['newValue']||0x0==_0xc9a2f8['newValue']&&null==_0xc9a2f8['oldValue']?_0xa91fa2:void 0x0;}),_0xc569d2['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4c8675,'FORMAT_LIST_START')),_0xc569d2['descriptionFactory']['registerDescriptionCallback'](_0x4b4638=>{const {data:_0x265864}=_0x4b4638;if(_0x265864&&'listStart'==_0x265864['key'])return null==_0x265864['newValue']||0x1==_0x265864['newValue']&&null==_0x265864['oldValue']?_0xa91fa2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1997ae=>{if(_0x1997ae['batch']['isUndo'])return!0x1;let _0x9a0eea=!0x1;const _0x378a11=_0xc569d2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33ee60=>{const _0x506401=_0xc569d2['_getAttributeKey'](_0x33ee60);return'listStart'==_0x506401||'listReversed'==_0x506401;});for(const _0x1df951 of _0x378a11){const _0xda729d=_0x1df951['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xda729d||'customNumbered'==_0xda729d)continue;_0xc569d2['_findSuggestions'](_0x1df951['getFirstRange'](),'attribute')['find'](_0x5622a6=>'listType'==_0xc569d2['_getAttributeKey'](_0x5622a6['suggestion']))||(_0x1997ae['removeMarker'](_0x1df951['getFirstMarker']()),_0x9a0eea=!0x0);}return _0x9a0eea;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1dbeb5){const _0x219e98=this['editor']['locale'],{data:_0x524329}=_0x1dbeb5,_0x4f1c92={'type':'format','content':''};if(!_0x524329||'listStyle'!=_0x524329['key'])return;if(!_0x524329['oldValue'])return'default'==_0x524329['newValue']?_0x4f1c92:{'type':'format','content':''+o(_0x219e98,'*Set\x20format:*\x20%0',o(_0x219e98,this['_getTranslationKeyForListStyle'](_0x524329['newValue'])))};if(!_0x524329['newValue']){if('default'==_0x524329['oldValue'])return _0x4f1c92;let _0x181723=_0x1dbeb5['head'];for(;_0x181723;){if(_0x181723['data']&&'listType'==_0x181723['data']['key']&&_0x181723['data']['newValue'])return _0x4f1c92;_0x181723=_0x181723['next'];}return{'type':'format','content':''+o(_0x219e98,'*Remove\x20format:*\x20%0',o(_0x219e98,this['_getTranslationKeyForListStyle'](_0x524329['oldValue'])))};}if('default'!=_0x524329['newValue'])return{'type':'format','content':''+o(_0x219e98,'*Set\x20format:*\x20%0',o(_0x219e98,this['_getTranslationKeyForListStyle'](_0x524329['newValue'])))};let _0x42e2ce=_0x1dbeb5['head'];for(;_0x42e2ce;){if(_0x42e2ce['data']&&'listType'==_0x42e2ce['data']['key']&&_0x42e2ce['data']['newValue']&&_0x42e2ce['data']['oldValue'])return _0x4f1c92;_0x42e2ce=_0x42e2ce['next'];}return{'type':'format','content':o(_0x219e98,'*Set\x20format:*\x20%0',o(_0x219e98,'ELEMENT_'+_0x1dbeb5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x13c05c=this['editor'],_0x17dceb=_0x13c05c['locale'];_0x13c05c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26ffc1=>{if('formatBlock'!=_0x26ffc1['type'])return;const {data:_0x594934}=_0x26ffc1;if(!_0x594934)return;let _0x10a34d,_0x3fa152;switch(_0x594934['commandName']){case'listStyle':_0x10a34d='*Change\x20to:*\x20%0',_0x3fa152={'type':'format','content':o(_0x17dceb,_0x10a34d,o(_0x17dceb,this['_getTranslationKeyForListStyle'](_0x594934['commandParams'][0x0]['type'])))};break;case'listReversed':_0x10a34d=_0x594934['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3fa152={'type':'format','content':o(_0x17dceb,_0x10a34d)};break;case'listStart':_0x10a34d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3fa152={'type':'format','content':o(_0x17dceb,_0x10a34d,_0x594934['commandParams'][0x0]['startIndex'])};}return _0x3fa152;});}['_getTranslationKeyForListStyle'](_0x2168ea){return'ELEMENT_'+function(_0xac1101){if(_e['includes'](_0xac1101))return'bulleted';if(Re['includes'](_0xac1101))return'numbered';return null;}(_0x2168ea)['toUpperCase']()+'_LIST_'+_0x2168ea['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x57a03e{static get['requires'](){return[_0x23e3ce];}['init'](){const _0x36ebc2=this['editor'],_0x3d331c=_0x36ebc2['plugins']['get']('TrackChangesEditing'),_0x4556df=_0x36ebc2['commands']['get']('enter');_0x3d331c['enableCommand']('enter',()=>{_0x36ebc2['model']['change'](_0x485a62=>{const _0x542725=_0x36ebc2['model']['document']['selection'],_0x3d03ef=_0x542725['getFirstPosition'](),_0x362468=_0x4da4a9['fromRange'](_0x542725['getFirstRange']());if(_0x4556df['enterBlock'](_0x485a62)){const _0x325c4c=_0x36ebc2['model']['createPositionAt'](_0x3d03ef['parent']['nextSibling'],0x0),_0x562733=_0x485a62['createRange'](_0x3d03ef,_0x325c4c);_0x3d331c['markInsertion'](_0x562733);}else _0x485a62['setSelection'](_0x485a62['createRange'](_0x362468['end']));_0x362468['detach'](),_0x4556df['fire']('afterExecute',{'writer':_0x485a62});});}),_0x36ebc2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x36ebc2,'split'),{'priority':'high'}),_0x36ebc2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x482e11,_0xe4beff,_0x506de4)=>{const _0x1233bb=_0x506de4['mapper']['markerNameToElements'](_0xe4beff['markerName']);if(_0x1233bb){for(const _0x3fe66b of _0x1233bb)_0x3fe66b['hasClass']('ck-suggestion-marker-split')&&(_0x506de4['mapper']['unbindElementFromMarkerName'](_0x3fe66b,_0xe4beff['markerName']),_0x506de4['writer']['remove'](_0x3fe66b));}},{'priority':'high'}),_0x36ebc2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x35a96b,_0x49c17c,_0x36df7c)=>{_0x36df7c['options']['showSuggestionHighlights']&&De(_0x36ebc2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x35a96b,_0x49c17c,_0x36df7c);},{'priority':'high'});}}class Y extends _0x57a03e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x11ca53=this['editor']['plugins']['get']('TrackChangesEditing');_0x11ca53['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x11ca53['enableCommand']('findNext'),_0x11ca53['enableCommand']('findPrevious'),_0x11ca53['enableCommand']('replace'),_0x11ca53['enableCommand']('replaceAll');}['handleFindCommand'](_0x402821,_0x2bcf2a,_0x5672fd={}){const _0x5f56f5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x402821(_0x1b69b3=>{let _0x40ffc5=('string'==typeof _0x2bcf2a?_0x5f56f5['findByTextCallback'](_0x2bcf2a,_0x5672fd):_0x2bcf2a)(_0x1b69b3);Array['isArray'](_0x40ffc5)&&(_0x40ffc5={'results':_0x40ffc5,'searchText':'string'==typeof _0x2bcf2a?_0x2bcf2a:''});const _0x3293e0=_0x40ffc5['results']['filter'](_0xfc0b63=>!0x1===this['_isInDeletionRange'](_0xfc0b63,_0x1b69b3['item']));return{..._0x40ffc5,'results':_0x3293e0};},_0x5672fd);}['_isInDeletionRange'](_0x277d10,_0x2ef86d){const _0x145bfb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ef86d,_0x277d10['start']),this['editor']['model']['createPositionAt'](_0x2ef86d,_0x277d10['end']));for(const _0x3b135d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x145bfb['getIntersection'](_0x3b135d['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x57a03e{['afterInit'](){const _0x5efb8d=this['editor']['locale'],_0x108c45=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x28912d,commandName:_0x199a1c}of ro)this['editor']['plugins']['has'](_0x28912d)&&(_0x108c45['enableDefaultAttributesIntegration'](_0x199a1c),_0x108c45['registerInlineAttribute'](_0x199a1c));_0x108c45['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5efb8d,'FORMAT_FONT_SIZE')),_0x108c45['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5efb8d,'FORMAT_FONT_FAMILY')),_0x108c45['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5efb8d,'FORMAT_FONT_COLOR')),_0x108c45['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5efb8d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x496241=this['editor'],_0x5bb5d1=_0x496241['locale'];_0x496241['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x338c17=>{const _0x277850=_0x5bb5d1['t'];if('formatInline'!=_0x338c17['type'])return;const {data:_0x25af4e}=_0x338c17;if(null!=_0x25af4e){if('fontSize'==_0x25af4e['commandName']){const _0x35ca11=_0x25af4e['commandParams'][0x0]['value'];if(_0x35ca11){const _0x184dfb=_0x277850(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3bd8da=>_0x3bd8da['model']==_0x35ca11)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5bb5d1,'*Set\x20font\x20size:*\x20%0',_0x184dfb)};}return{'type':'format','content':o(_0x5bb5d1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x25af4e['commandName']){const _0x55bc75=_0x25af4e['commandParams'][0x0]['value'];return _0x55bc75?{'type':'format','content':o(_0x5bb5d1,'*Set\x20font\x20family:*\x20%0',_0x55bc75)}:{'type':'format','content':o(_0x5bb5d1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x25af4e['commandName']){const _0x1d5666=_0x25af4e['commandParams'][0x0]['value'];if(_0x1d5666){const _0x4d253c=_0x2cb6bd(this['editor']['config']['get']('fontColor.colors'))['find'](_0x45c252=>_0x45c252['model']==_0x1d5666);let _0x569ca8=_0x1d5666,_0x335025='';return _0x4d253c&&(_0x569ca8=_0x4d253c['label'],_0x335025=_0x277850(_0x569ca8)['toLowerCase']()),{'type':'format','content':o(_0x5bb5d1,'*Set\x20font\x20color:*\x20%0',_0x335025)['trim'](),'color':{'value':_0x1d5666,'title':_0x335025||_0x569ca8}};}return{'type':'format','content':o(_0x5bb5d1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x25af4e['commandName']){const _0xdfb1b9=_0x25af4e['commandParams'][0x0]['value'];if(_0xdfb1b9){const _0x3945f4=_0x2cb6bd(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x254802=>_0x254802['model']==_0xdfb1b9);let _0xa7bd67=_0xdfb1b9,_0x54226d='';return _0x3945f4&&(_0xa7bd67=_0x3945f4['label'],_0x54226d=_0x277850(_0xa7bd67)['toLowerCase']()),{'type':'format','content':o(_0x5bb5d1,'*Set\x20font\x20background\x20color:*\x20%0',_0x54226d)['trim'](),'color':{'value':_0xdfb1b9,'title':_0x54226d||_0xa7bd67}};}return{'type':'format','content':o(_0x5bb5d1,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x57a03e{['afterInit'](){const _0x42c512=this['editor'],_0x2601b1=_0x42c512['plugins']['get']('TrackChangesEditing'),_0x1e6f74=_0x42c512['commands']['get']('copyFormat'),_0x6c93cc=_0x42c512['commands']['get']('pasteFormat');_0x1e6f74&&_0x6c93cc&&(_0x2601b1['enableDefaultAttributesIntegration']('pasteFormat'),_0x2601b1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x48e379=this['editor'],_0x548d05=_0x48e379['locale'];_0x48e379['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1419f1=>{if('formatBlock'!=_0x1419f1['type']&&'formatInline'!=_0x1419f1['type'])return;const {data:_0x88b1a7}=_0x1419f1;if(_0x88b1a7&&'pasteFormat'===_0x88b1a7['commandName']){const _0x454df3=[],_0x431c8d=_0x88b1a7['commandParams'][0x0];for(const [_0x2d5b39,_0x39da98]of Object['entries'](_0x431c8d))_0x454df3['push'](so(_0x48e379,_0x2d5b39,_0x39da98));return _0x454df3['length']?{'type':'format','content':o(_0x548d05,'*Set\x20format\x20to:*\x20%0',_0x454df3['join'](',\x20'))}:{'type':'format','content':o(_0x548d05,'*Remove\x20all\x20formatting*')};}});}}function so(_0x319e74,_0x1f7bc3,_0x141a51){const _0x4daba3=_0x319e74['locale']['t'],_0x580e98=_0x1f7bc3['split'](/(?=[A-Z])/)['join']('\x20'),_0x5925c=_0x4daba3(_0x580e98['charAt'](0x0)['toUpperCase']()+_0x580e98['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x141a51)return _0x5925c;if('fontColor'===_0x1f7bc3||'fontBackgroundColor'===_0x1f7bc3){const _0x4a0d2a=_0x2cb6bd(_0x319e74['config']['get']('fontColor.colors'))['find'](_0x530bee=>_0x530bee['model']==_0x141a51);return _0x5925c+'\x20('+(_0x4a0d2a?_0x4daba3(_0x4a0d2a['label'])['toLowerCase']():_0x141a51)+')';}if('fontSize'===_0x1f7bc3&&isNaN(parseFloat(_0x141a51))){const _0x3f932a=_0x319e74['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x319e74['config']['get']('fontSize.options'))['find'](_0x2e2cc0=>_0x2e2cc0['model']==_0x141a51);return _0x5925c+'\x20('+(_0x3f932a?_0x4daba3(_0x3f932a['title'])['toLowerCase']():_0x141a51)+')';}return _0x5925c+'\x20('+_0x141a51+')';}class nt extends _0x57a03e{['_headingOptions'];['afterInit'](){const _0x117574=this['editor'];if(!_0x117574['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x117574['config']['get']('heading.options');const _0xad52fe=_0x117574['locale'],_0x50c4c9=_0x117574['plugins']['get']('TrackChangesEditing');_0x50c4c9['enableDefaultAttributesIntegration']('heading');for(const _0x4dc0be of this['_headingOptions'])'paragraph'!=_0x4dc0be['model']&&_0x50c4c9['descriptionFactory']['registerElementLabel'](_0x4dc0be['model'],_0x533760=>{const _0x3c2ae3=this['_getHeadingLevel'](_0x4dc0be['model']);return null!==_0x3c2ae3?_0x2dfbab(_0x533760,_0x3c2ae3):_0x23e0b4(_0x533760,_0x4dc0be['title']);});function _0x2dfbab(_0x3b7dc7,_0x37e0f2){return o(_0xad52fe,'ELEMENT_HEADING',[_0x3b7dc7,_0x37e0f2]);}function _0x23e0b4(_0x329f51,_0x40a18c){return o(_0xad52fe,'ELEMENT_HEADING_CUSTOM',[_0x329f51,_0x40a18c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f1c8b=this['editor'],_0x1c32e0=_0x5f1c8b['locale'];function _0x4b9ec5(_0x162d90,_0x4ef539){return o(_0x1c32e0,'ELEMENT_HEADING_CUSTOM',[_0x162d90,_0x4ef539]);}_0x5f1c8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c9f74=>{if('formatBlock'!=_0x2c9f74['type'])return;const {data:_0x573562}=_0x2c9f74;if(_0x573562&&'heading'==_0x573562['commandName']){const _0x36752f=_0x573562['commandParams'][0x0]['value'],_0x5011d6=this['_getHeadingLevel'](_0x36752f);if(null!==_0x5011d6)return{'type':'format','content':o(_0x1c32e0,'*Change\x20to:*\x20%0',(_0x569409=0x1,_0x36eb1d=_0x5011d6,o(_0x1c32e0,'ELEMENT_HEADING',[_0x569409,_0x36eb1d])))};const _0x4c82f4=this['_headingOptions']['find'](_0x5cffb0=>_0x5cffb0['model']===_0x36752f)['title'];return{'type':'format','content':o(_0x1c32e0,'*Change\x20to:*\x20%0',_0x4b9ec5(0x1,_0x4c82f4))};}var _0x569409,_0x36eb1d;});}['_getHeadingLevel'](_0xade7f4){const _0x4fa612=_0xade7f4['match'](/^heading(\d+)/);if(_0x4fa612)return _0x4fa612[0x1];const _0x3d44bf=this['_headingOptions']?.['find'](_0x2d2fe9=>_0x2d2fe9['model']==_0xade7f4);if(_0x3d44bf&&_0x3d44bf['view']){const _0x3c7db0=_0x3d44bf['view'],_0x194e33=(_0x3c7db0['name']??_0x3c7db0)['match'](/^h(\d+)/);if(_0x194e33)return _0x194e33[0x1];}return null;}}class it extends _0x57a03e{['afterInit'](){const _0x39643c=this['editor'];if(!_0x39643c['plugins']['has']('HighlightEditing'))return;const _0x2369cc=_0x39643c['plugins']['get']('TrackChangesEditing'),_0x876a4a=_0x39643c['locale'];_0x2369cc['enableDefaultAttributesIntegration']('highlight'),_0x2369cc['registerInlineAttribute']('highlight'),_0x2369cc['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x876a4a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bcea0=this['editor'],_0x5c6af5=_0x2bcea0['locale'];_0x2bcea0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50828b=>{if('formatInline'!=_0x50828b['type'])return;const {data:_0x1bc95f}=_0x50828b;if(_0x1bc95f&&'highlight'==_0x1bc95f['commandName']){const _0xa5ab6c=_0x5c6af5['t'],_0x34c5ef=_0x1bc95f['commandParams'][0x0]['value'];if(_0x34c5ef){const _0x190c0d=_0x2bcea0['config']['get']('highlight.options')['find'](_0x1c9652=>_0x1c9652['model']==_0x34c5ef),_0x206cfa=_0xa5ab6c(_0x190c0d['title'])['toLowerCase']();return{'type':'format','content':o(_0x5c6af5,'*Set\x20highlight:*\x20%0',_0x206cfa),'color':{'value':_0x190c0d['color'],'title':_0x190c0d['title']}};}return{'type':'format','content':o(_0x5c6af5,'*Remove\x20highlight*',o(_0x5c6af5,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x57a03e{['afterInit'](){const _0x1601e6=this['editor'];if(!_0x1601e6['plugins']['has']('HorizontalLineEditing'))return;_0x1601e6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1434ea=_0x1601e6['plugins']['get']('TrackChangesEditing'),_0x46da52=_0x1601e6['locale'];_0x1434ea['descriptionFactory']['registerElementLabel']('horizontalLine',_0x508db8=>o(_0x46da52,'ELEMENT_HORIZONTAL_LINE',_0x508db8)),_0x1601e6['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x406f8d,{writer:_0x4d526a,options:_0x598cbe})=>{if(!_0x598cbe['showSuggestionHighlights'])return null;const _0x4ed610=_0x4d526a['createContainerElement']('div'),_0x25f4df=_0x4d526a['createEmptyElement']('hr');return _0x4d526a['addClass']('ck-horizontal-line',_0x4ed610),_0x4d526a['insert'](_0x4d526a['createPositionAt'](_0x4ed610,0x0),_0x25f4df),_0x4ed610;},'converterPriority':'high'});}}class st extends _0x57a03e{['afterInit'](){const _0xdafdd9=this['editor'];if(!_0xdafdd9['plugins']['has']('HtmlEmbed'))return;const _0x3ffbaa=_0xdafdd9['plugins']['get']('TrackChangesEditing'),_0x1dbd1b=_0xdafdd9['locale'];_0x3ffbaa['descriptionFactory']['registerElementLabel']('rawHtml',_0x1c859e=>o(_0x1dbd1b,'ELEMENT_HTML_EMBED',_0x1c859e)),_0x3ffbaa['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3ffbaa['registerBlockAttribute']('value'),_0x3ffbaa['descriptionFactory']['registerDescriptionCallback'](_0x430c23=>{if('attribute'!=_0x430c23['type'])return;const {data:_0x228919}=_0x430c23;if(_0x228919&&'value'==_0x228919['key']&&_0x430c23['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1ec858=o(_0x1dbd1b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1dbd1b,'*Change\x20%0\x20content*',_0x1ec858)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x240264=this['editor'],_0x1d2930=_0x240264['locale'];_0x240264['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ea7da=>{if('formatBlock'!=_0x2ea7da['type'])return;const {data:_0x51c38d}=_0x2ea7da;if(_0x51c38d&&'htmlEmbed'==_0x51c38d['commandName']){const _0x360604=o(_0x1d2930,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1d2930,'*Change\x20%0\x20content*',_0x360604)};}});}}class ot extends _0x57a03e{['afterInit'](){const _0x18c9a7=this['editor'];if(!_0x18c9a7['plugins']['has']('ImageEditing'))return;const _0x4ce7a1=_0x18c9a7['plugins']['get']('TrackChangesEditing'),_0x4174a9=_0x18c9a7['plugins']['get']('ImageUtils'),_0x3055c1=_0x18c9a7['locale'];_0x4ce7a1['enableCommand']('insertImage'),_0x4ce7a1['descriptionFactory']['registerElementLabel']('imageBlock',_0x3f2259=>o(_0x3055c1,'ELEMENT_IMAGE',_0x3f2259)),_0x4ce7a1['descriptionFactory']['registerElementLabel']('imageInline',_0x3163ef=>o(_0x3055c1,'ELEMENT_INLINE_IMAGE',_0x3163ef)),_0x4ce7a1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3055c1,'ELEMENT_CAPTION')),_0x18c9a7['plugins']['has']('ImageUploadEditing')&&_0x4ce7a1['enableCommand']('uploadImage'),_0x18c9a7['plugins']['has']('ImageBlockEditing')&&_0x18c9a7['plugins']['has']('ImageInlineEditing')&&(_0x4ce7a1['enableCommand']('imageTypeInline',(_0x553673,_0x1af61f)=>{const _0x1ce805=_0x4174a9['getClosestSelectedImageElement'](_0x18c9a7['model']['document']['selection']);_0x18c9a7['model']['change'](()=>{_0x4ce7a1['markBlockFormat'](_0x1ce805,{'commandName':'imageTypeInline','commandParams':[_0x1af61f]},[],'convertBlockImageToInline');});}),_0x4ce7a1['enableCommand']('imageTypeBlock',(_0x1c9ac6,_0x4145b4)=>{_0x18c9a7['model']['change'](_0x39fb1d=>{let _0x1dcdb2=_0x4174a9['getClosestSelectedImageElement'](_0x18c9a7['model']['document']['selection']),_0x5ea080=_0x39fb1d['createRangeOn'](_0x1dcdb2);const _0x574a8a=_0x4161d1['fromPosition'](_0x5ea080['start'],'toPrevious'),_0x1b993b=_0x4161d1['fromPosition'](_0x5ea080['end'],'toNext');_0x4ce7a1['forceDefaultExecution'](()=>_0x1c9ac6(_0x4145b4)),_0x1dcdb2=_0x4174a9['getClosestSelectedImageElement'](_0x18c9a7['model']['document']['selection']),_0x5ea080=_0x39fb1d['createRangeOn'](_0x1dcdb2);const _0x2196a3=_0x39fb1d['createRange'](_0x574a8a,_0x1b993b);_0x574a8a['detach'](),_0x1b993b['detach'](),_0x4ce7a1['markBlockFormat'](_0x1dcdb2,{'commandName':'imageTypeInline','commandParams':[_0x4145b4]},[],'convertInlineImageToBlock'),_0x2196a3['start']['isBefore'](_0x5ea080['start'])&&_0x4ce7a1['markInsertion'](_0x39fb1d['createRange'](_0x2196a3['start'],_0x5ea080['start']),'convertInlineImageToBlock'),_0x5ea080['end']['isBefore'](_0x2196a3['end'])&&_0x4ce7a1['markInsertion'](_0x39fb1d['createRange'](_0x5ea080['end'],_0x2196a3['end']),'convertInlineImageToBlock');});}),_0x4ce7a1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4ce7a1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4ce7a1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4ce7a1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4ce7a1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4ce7a1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x50e683])=>{const _0x4343b5=_0x4ce7a1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x475825=_0x50e683['start'],_0x3ed7fd=_0x50e683['end'];const _0x1bd9cd=_0x18c9a7['model']['schema']['getNearestSelectionRange'](_0x475825,'backward'),_0x3cccd9=_0x18c9a7['model']['schema']['getNearestSelectionRange'](_0x3ed7fd,'forward');_0x1bd9cd['isCollapsed']&&(_0x475825=_0x1bd9cd['start']),_0x3cccd9['isCollapsed']&&(_0x3ed7fd=_0x3cccd9['end']),_0x4343b5([_0x18c9a7['model']['createRange'](_0x475825,_0x3ed7fd)]);}),_0x4ce7a1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xd7564),_0x4ce7a1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xd7564)),_0x18c9a7['plugins']['has']('ImageCaptionEditing')&&(_0x4ce7a1['enableCommand']('toggleImageCaption',(_0x7f3ecf,_0x280dd5)=>{const _0x3712bd=_0x18c9a7['plugins']['get']('ImageCaptionUtils');let _0x439979=_0x4174a9['getClosestSelectedImageElement'](_0x18c9a7['model']['document']['selection']),_0x262e43=_0x3712bd['getCaptionFromImageModelElement'](_0x439979);_0x18c9a7['model']['change'](()=>{if(_0x262e43)return void _0x4ce7a1['markDeletion'](_0x18c9a7['model']['createRangeOn'](_0x262e43));const _0x5bde0f=_0x4174a9['isBlockImage'](_0x439979);_0x7f3ecf(_0x280dd5),_0x439979=_0x4174a9['getClosestSelectedImageElement'](_0x18c9a7['model']['document']['selection']),_0x262e43=_0x3712bd['getCaptionFromImageModelElement'](_0x439979),_0x4ce7a1['markInsertion'](_0x18c9a7['model']['createRangeOn'](_0x262e43),_0x5bde0f?null:'imageCaption');});}),_0x4ce7a1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xd7564));const _0x3801b2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5c773c(_0x26d207,_0x554785){const _0x4a6227=_0x3801b2['findIndex'](({type:_0x98a5f5,subType:_0x43b4e3})=>_0x26d207['type']==_0x98a5f5&&_0x26d207['subType']==_0x43b4e3),_0x43d6f3=_0x3801b2['findIndex'](({type:_0x2c44e4,subType:_0x2493ef})=>_0x554785['type']==_0x2c44e4&&_0x554785['subType']==_0x2493ef);if(_0x4a6227<0x0||_0x43d6f3<0x0)return!0x1;const _0x435b8b=_0x26d207['getFirstRange'](),_0x3b5aee=_0x554785['getFirstRange']();if((0x0==_0x4a6227||0x1==_0x4a6227)&&0x2==_0x43d6f3&&_0x435b8b['isIntersecting'](_0x3b5aee))return!0x0;if(0x2==_0x4a6227&&0x3==_0x43d6f3){const _0x4c58f6=_0x4ce7a1['_findSuggestions'](_0x435b8b,'insertion')['filter'](({suggestion:_0xb8b4f1,meta:_0x4bcdf2})=>_0x4bcdf2['isOwn']&&'convertInlineImageToBlock'==_0xb8b4f1['subType']);if(_0x4c58f6['length']>0x1&&_0x3b5aee['end']['isEqual'](_0x435b8b['start']))return!0x0;if(0x1==_0x4c58f6['length']&&(_0x435b8b['start']['isEqual'](_0x3b5aee['end'])||_0x435b8b['end']['isEqual'](_0x3b5aee['start'])))return!0x0;}if(0x3==_0x4a6227&&0x3==_0x43d6f3&&_0x435b8b['start']['isBefore'](_0x3b5aee['start'])){const _0x1a8f3f=_0x435b8b['end']['nodeAfter'],_0x1c337a=_0x3b5aee['start']['nodeBefore'];return _0x4174a9['isBlockImage'](_0x1a8f3f)&&_0x1a8f3f===_0x1c337a;}return!0x1;}function _0xd7564(_0x3cac3d,_0x4b958c){return _0x5c773c(_0x3cac3d,_0x4b958c)?[_0x3cac3d,_0x4b958c]:_0x5c773c(_0x4b958c,_0x3cac3d)?[_0x4b958c,_0x3cac3d]:null;}_0x18c9a7['plugins']['has']('ImageResize')&&(_0x4ce7a1['enableDefaultAttributesIntegration']('resizeImage'),_0x4ce7a1['registerBlockAttribute']('resizedWidth'),_0x4ce7a1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3055c1,'FORMAT_IMAGE_SIZE'))),_0x18c9a7['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4ce7a1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4ce7a1['registerBlockAttribute']('alt')),_0x18c9a7['plugins']['has']('PictureEditing')&&(_0x4ce7a1['registerBlockAttribute']('sources'),_0x4ce7a1['descriptionFactory']['registerDescriptionCallback'](_0x5834c1=>{if('attribute'!=_0x5834c1['type'])return;const {data:_0x44efd3}=_0x5834c1;return _0x44efd3&&'sources'==_0x44efd3['key']?{'type':'format','content':''}:void 0x0;})),_0x18c9a7['plugins']['has']('ImageSizeAttributes')&&(_0x4ce7a1['registerBlockAttribute']('width'),_0x4ce7a1['registerBlockAttribute']('height'),_0x4ce7a1['descriptionFactory']['registerDescriptionCallback'](_0x528b2c=>{if('attribute'!=_0x528b2c['type'])return;const {data:_0x5c2d39}=_0x528b2c;return!_0x5c2d39||'width'!=_0x5c2d39['key']&&'height'!=_0x5c2d39['key']?void 0x0:{'type':'format','content':''};})),_0x4ce7a1['descriptionFactory']['registerDescriptionCallback'](_0x57d7e5=>{if(!!_0x3801b2['find'](({type:_0x1ec9c4,subType:_0x4251b4})=>_0x57d7e5['type']==_0x1ec9c4&&_0x57d7e5['subType']==_0x4251b4))return _0x57d7e5['previous']?{}:void 0x0;}),_0x4ce7a1['descriptionFactory']['registerDescriptionCallback'](_0x3304e9=>{if('insertion'==_0x3304e9['type']||'deletion'==_0x3304e9['type']){const _0x5a00cc=_0x3304e9['getContainedElement']();if(_0x5a00cc&&_0x5a00cc['is']('element','caption'))return{'type':'insertion'==_0x3304e9['type']?'addObject':'removeObject','element':_0x5a00cc,'quantity':0x1};}}),_0x4ce7a1['descriptionFactory']['registerDescriptionCallback'](_0x3249fa=>'formatBlock'==_0x3249fa['type']&&'convertInlineImageToBlock'==_0x3249fa['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3249fa['type']&&'convertBlockImageToInline'==_0x3249fa['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4ce7a1['descriptionFactory']['registerDescriptionCallback'](_0x2917a8=>{if('attribute'!=_0x2917a8['type'])return;const {data:_0x33748a}=_0x2917a8;if(!_0x33748a||'alt'!=_0x33748a['key'])return;const _0x5cb1d7=_0x33748a['newValue'];return _0x5cb1d7?{'type':'format','content':o(_0x3055c1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5cb1d7+'\x22')}:{'type':'format','content':o(_0x3055c1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x207f1a=this['editor'],_0x5dd571=_0x207f1a['locale'];_0x207f1a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13e7a0=>{if('formatBlock'!=_0x13e7a0['type']&&'formatInline'!=_0x13e7a0['type'])return;const {data:_0x20595f}=_0x13e7a0;if(_0x20595f){if('imageTextAlternative'==_0x20595f['commandName']){const _0x3707fb=_0x20595f['commandParams'][0x0]['newValue'];return _0x3707fb?{'type':'format','content':o(_0x5dd571,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3707fb+'\x22')}:{'type':'format','content':o(_0x5dd571,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x20595f['commandName']){const _0x1f0f77=_0x20595f['commandParams'][0x0]['width'];return _0x1f0f77?{'type':'format','content':o(_0x5dd571,'*Set\x20image\x20width:*\x20%0',_0x1f0f77)}:{'type':'format','content':o(_0x5dd571,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x57a03e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x65b06c=this['editor']['locale'],_0x17c646=this['editor']['plugins']['get']('TrackChangesEditing');_0x17c646['enableDefaultAttributesIntegration']('replaceImageSource'),_0x17c646['registerBlockAttribute']('src'),_0x17c646['descriptionFactory']['registerDescriptionCallback'](_0x28fbfc=>{if('attribute'!=_0x28fbfc['type'])return;const {data:_0x5bd3f0}=_0x28fbfc;return _0x5bd3f0&&'src'==_0x5bd3f0['key']?_0x5bd3f0['newValue']&&_0x5bd3f0['oldValue']?{'type':'format','content':o(_0x65b06c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x495d68=this['editor']['plugins']['get']('TrackChangesEditing');_0x495d68['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x495d68['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x495d68['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x495d68['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a1ff5=this['editor'],_0x15dbb3=_0x2a1ff5['locale'];_0x2a1ff5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5fcc78=>{if('formatBlock'!=_0x5fcc78['type']&&'formatInline'!=_0x5fcc78['type'])return;const {data:_0xbb64c1}=_0x5fcc78;if(!_0xbb64c1||'replaceImageSource'!=_0xbb64c1['commandName'])return;return{'type':'format','content':o(_0x15dbb3,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x57a03e{['afterInit'](){const _0x495d53=this['editor'];if(!_0x495d53['plugins']['has']('ImageStyleEditing'))return;const _0x415e90=_0x495d53['plugins']['get']('TrackChangesEditing'),_0x2d6549=_0x495d53['plugins']['get']('ImageUtils'),_0xc4df12={};_0x415e90['enableCommand']('imageStyle',(_0x24da30,_0x4cb0a0)=>{const _0x265233=_0x495d53['plugins']['get']('Users')['me'],_0x2beacb=_0x495d53['commands']['get']('imageStyle');let _0x34456a=_0x2d6549['getClosestSelectedImageElement'](_0x495d53['model']['document']['selection']),_0x13bada=_0x495d53['model']['createRangeOn'](_0x34456a),_0x39fb7d=_0x2beacb['value'];if(_0x39fb7d==_0x4cb0a0['value'])return;const _0x3052b4={'commandName':'imageStyle','commandParams':[_0x4cb0a0],'formatGroupId':_0x10a187()};_0x495d53['model']['change'](()=>{if(_0x415e90['getSuggestions']()['filter'](_0x11031a=>_0x11031a['isInContent']&&_0x265233==_0x11031a['author']&&('formatBlock'==_0x11031a['type']||'formatInline'==_0x11031a['type'])&&('imageStylePreApply'==_0x11031a['subType']||'imageStylePostApply'==_0x11031a['subType'])&&_0x11031a['getFirstRange']()['isEqual'](_0x13bada))['forEach'](_0x581185=>_0x415e90['discardSuggestion'](_0x581185['head'])),_0x34456a=_0x2d6549['getClosestSelectedImageElement'](_0x495d53['model']['document']['selection']),_0x13bada=_0x495d53['model']['createRangeOn'](_0x34456a),_0x2beacb['refresh'](),_0x495d53['commands']['get']('imageTypeInline')['refresh'](),_0x495d53['commands']['get']('imageTypeBlock')['refresh'](),_0x39fb7d=_0x2beacb['value'],_0x39fb7d!=_0x4cb0a0['value'])return _0x2d6549['isInlineImage'](_0x34456a)&&_0x2beacb['shouldConvertImageType'](_0x4cb0a0['value'],_0x34456a)?(_0x24da30({..._0x4cb0a0,'setImageSizes':!0x1}),_0x34456a=_0x2d6549['getClosestSelectedImageElement'](_0x495d53['model']['document']['selection']),void _0x415e90['markBlockFormat'](_0x34456a,{..._0x3052b4,'commandReversedParams':[{'value':_0x39fb7d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2d6549['isBlockImage'](_0x34456a)?_0x415e90['markBlockFormat'](_0x34456a,_0x3052b4,[],'imageStylePostApply'):_0x415e90['markInlineFormat'](_0x13bada,_0x3052b4,'imageStylePostApply'));});});for(const _0x88ffe8 of _0x495d53['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xc4df12[_0x88ffe8['name']]=_0x88ffe8['title']['toLowerCase']();_0x415e90['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x415e90['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x415e90['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x415e90['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x180f6e])=>{_0x2d6549['setImageNaturalSizeAttributes'](_0x180f6e['getContainedElement']());}),_0x415e90['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5c9ed2,_0xcdcde6)=>{_0x415e90['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5c9ed2,{'commandName':_0xcdcde6['commandName'],'commandParams':_0xcdcde6['commandReversedParams']});}),_0x415e90['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x41e5e8,_0xd11255){if(_0x246891(_0x41e5e8,_0xd11255))return[_0x41e5e8,_0xd11255];if(_0x246891(_0xd11255,_0x41e5e8))return[_0xd11255,_0x41e5e8];return null;});const _0x59ba53=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x246891(_0x54e8bb,_0x28a951){const _0x243ef0=_0x59ba53['findIndex'](({type:_0xd9a199,subType:_0x5c9918})=>_0x54e8bb['type']==_0xd9a199&&_0x54e8bb['subType']==_0x5c9918),_0x42acd6=_0x59ba53['findIndex'](({type:_0x2c2b23,subType:_0x3ece75})=>_0x28a951['type']==_0x2c2b23&&_0x28a951['subType']==_0x3ece75);if(_0x243ef0<0x0||_0x42acd6<0x0)return!0x1;const _0x587c72=_0x54e8bb['getFirstRange'](),_0x23390c=_0x28a951['getFirstRange']();if((0x0==_0x243ef0||0x1==_0x243ef0)&&0x2==_0x42acd6&&_0x587c72['isIntersecting'](_0x23390c))return!0x0;if(0x2==_0x243ef0&&0x3==_0x42acd6){const _0x510cf3=_0x415e90['_findSuggestions'](_0x587c72,'insertion')['filter'](({suggestion:_0x362437,meta:_0x1b6753})=>_0x1b6753['isOwn']&&'convertInlineImageToBlock'==_0x362437['subType']);if(_0x510cf3['length']>0x1&&_0x23390c['end']['isEqual'](_0x587c72['start']))return!0x0;if(0x1==_0x510cf3['length']&&(_0x587c72['start']['isEqual'](_0x23390c['end'])||_0x587c72['end']['isEqual'](_0x23390c['start'])))return!0x0;}if(0x3==_0x243ef0&&0x3==_0x42acd6&&_0x587c72['start']['isBefore'](_0x23390c['start'])){const _0x50a01a=_0x587c72['end']['nodeAfter'],_0x3cfa99=_0x23390c['start']['nodeBefore'];return _0x2d6549['isBlockImage'](_0x50a01a)&&_0x50a01a===_0x3cfa99;}return!0x1;}_0x495d53['model']['document']['registerPostFixer'](()=>{let _0x5cc97f=!0x1;const _0x466b8c=Array['from'](_0x495d53['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31819f,data:_0x17545d}of _0x466b8c){const {group:_0x4a9334,type:_0x1a70b5,subType:_0x4f9e44,id:_0x5bcf89}=_0x415e90['_splitMarkerName'](_0x31819f);if('suggestion'==_0x4a9334&&_0x415e90['hasSuggestion'](_0x5bcf89)){if('formatBlock'==_0x1a70b5&&('imageStylePreApply'==_0x4f9e44||'imageStylePostApply'==_0x4f9e44)){const _0x8288fc=_0x415e90['getSuggestion'](_0x5bcf89);if(_0x17545d['newRange']){const _0x249a48=_0x8288fc['getFirstRange']()['getContainedElement']();if(_0x2d6549['isBlockImage'](_0x249a48))continue;_0x415e90['discardSuggestion'](_0x8288fc),_0x5cc97f=!0x0;}}if('insertion'==_0x1a70b5&&'imageCaption'==_0x4f9e44&&!_0x17545d['newRange']){const _0x51a194=_0x415e90['getSuggestion'](_0x5bcf89);_0x51a194['next']&&_0x51a194['next']['isInContent']&&(_0x415e90['discardSuggestion'](_0x51a194['next']),_0x5cc97f=!0x0);}}}return _0x5cc97f;}),this['_registerLegacyDescription'](_0xc4df12);}['_registerLegacyDescription'](_0x53d756){const _0x3cd508=this['editor'],_0xaa85d6=_0x3cd508['locale'];_0x3cd508['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bc9a1=>{if('formatBlock'!=_0x4bc9a1['type']&&'formatInline'!=_0x4bc9a1['type'])return;const {data:_0x4adc76}=_0x4bc9a1;if(!_0x4adc76||'imageStyle'!=_0x4adc76['commandName'])return;const _0x4e697b=_0x4adc76['commandParams'][0x0]['value'];return _0x2a2870('side'===_0x4e697b?o(_0xaa85d6,'FORMAT_SIDE_IMAGE'):_0x53d756[_0x4e697b]||_0x4e697b);function _0x2a2870(_0xfa55c4){return{'type':'format','content':o(_0xaa85d6,'*Format:*\x20%0',_0xfa55c4)};}});}}class ct extends _0x57a03e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x488157){super(_0x488157),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x23b9a2=this['editor'],_0x117aa6=_0x23b9a2['commands']['get']('importWord'),_0xd91f45=_0x23b9a2['commands']['get']('trackChanges');_0x117aa6&&(_0x117aa6['on']('execute',(_0x1f96c5,[,_0xb48cfa])=>{this['_trackChangesValueDuringImport']=_0xd91f45['value'],_0xb48cfa['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x117aa6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x117aa6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xd91f45['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x23b9a2['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x39ac6f,_0x2cde5a){const {suggestions:_0x53ed1a}=_0x2cde5a,_0x58a483=this['editor']['commands']['get']('trackChanges'),_0x5d52f2=_0x58a483['value'];this['_trackChangesValueDuringImport']!==_0x5d52f2&&(_0x58a483['execute'](),this['_trackChangesExecuted']=!0x0),_0x53ed1a&&_0x53ed1a['forEach'](({id:_0x2732ff,type:_0x36ab93,author:_0x48c242,created_at:_0x2604eb})=>{const _0x4b12ee={'id':_0x2732ff,'type':_0x36ab93,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x48c242,'createdAt':_0x2604eb?new Date(_0x2604eb):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4b12ee);});}}class ut extends _0x57a03e{['afterInit'](){const _0x32e4c4=this['editor'],_0x32ca8f=_0x32e4c4['plugins']['get']('TrackChangesEditing');if(_0x32e4c4['plugins']['has']('IndentEditing')&&(_0x32ca8f['enableCommand']('indent'),_0x32ca8f['enableCommand']('outdent')),_0x32e4c4['plugins']['has']('IndentBlock')){for(const _0x3c5569 of['indentBlock','outdentBlock'])_0x32ca8f['enableDefaultAttributesIntegration'](_0x3c5569);}const _0x5d74a4=_0x32e4c4['locale'];_0x32ca8f['registerBlockAttribute']('blockIndent'),_0x32ca8f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5d74a4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3af817=this['editor'],_0x4fee78=_0x3af817['locale'],_0x528092=_0x3af817['plugins']['get']('TrackChangesEditing');_0x528092['descriptionFactory']['registerDescriptionCallback'](_0x44adbf=>{if('formatBlock'!=_0x44adbf['type'])return;const {data:_0x198b6c}=_0x44adbf;if(!_0x198b6c)return;if('indentBlock'!=_0x198b6c['commandName']&&'outdentBlock'!=_0x198b6c['commandName'])return;const _0x211236=_0x44adbf['getItems']()[0x0],_0x46faac=_0x528092['descriptionFactory']['getItemLabel'](_0x211236);return'indentBlock'==_0x198b6c['commandName']?{'type':'format','content':o(_0x4fee78,'*Indent:*\x20%0',_0x46faac)}:'outdentBlock'==_0x198b6c['commandName']?{'type':'format','content':o(_0x4fee78,'*Outdent:*\x20%0',_0x46faac)}:void 0x0;});}}class ft extends _0x57a03e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x57a03e{['afterInit'](){const _0x4f8a55=this['editor'];if(!_0x4f8a55['plugins']['has']('LinkEditing'))return;const _0x5ba881=_0x4f8a55['plugins']['get']('TrackChangesEditing'),_0x2a16ee=_0x4f8a55['commands']['get']('link');_0x5ba881['enableDefaultAttributesIntegration']('link'),_0x5ba881['enableDefaultAttributesIntegration']('unlink'),_0x5ba881['registerInlineAttribute']('linkHref');for(const _0x42c9cc of _0x2a16ee['manualDecorators'])_0x5ba881['registerInlineAttribute'](_0x42c9cc['id']),_0x5ba881['descriptionFactory']['registerAttributeLabel'](_0x42c9cc['id'],'link\x20('+_0x42c9cc['label']['toLowerCase']()+')');_0x5ba881['descriptionFactory']['registerDescriptionCallback'](_0x8e3675=>{if('attribute'!=_0x8e3675['type'])return;const {data:_0x30e27d}=_0x8e3675;if(!_0x30e27d||'linkHref'!=_0x30e27d['key'])return;const _0x15e92f=_0x30e27d['newValue'],_0x27d9dc=_0x4f8a55['locale'];return{'type':'format','content':null==_0x15e92f?o(_0x27d9dc,'*Remove\x20link*'):o(_0x27d9dc,'*Set\x20link:*\x20%0','\x22'+_0x15e92f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3febf6=this['editor'],_0x70250b=_0x3febf6['locale'];_0x3febf6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3670f7=>{if('formatInline'!=_0x3670f7['type'])return;const {data:_0x1db1e5}=_0x3670f7;if(_0x1db1e5){if('link'==_0x1db1e5['commandName']){const _0x34efef=_0x1db1e5['commandParams'][0x0];return{'type':'format','content':o(_0x70250b,'*Set\x20link:*\x20%0','\x22'+_0x34efef+'\x22')};}return'unlink'==_0x1db1e5['commandName']?{'type':'format','content':o(_0x70250b,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x57a03e{['afterInit'](){const _0x2b09a7=this['editor'],_0x5a3146=_0x2b09a7['locale'];if(!_0x2b09a7['plugins']['has']('LegacyListEditing'))return;const _0x45926b=_0x2b09a7['plugins']['get']('TrackChangesEditing'),_0x285a2f=_0x2b09a7['plugins']['has']('LegacyTodoListEditing');function _0x2c2671(_0x3e23fa){return()=>{const _0x4c0c09=_0x2b09a7['model']['document']['selection'],_0x4ad96a=_0x2b09a7['commands']['get'](_0x3e23fa);if(_0x4ad96a['value'])return void _0x2b09a7['execute']('paragraph',{});const _0x3dfc86=_0x3e23fa['slice'](0x0,-0x4),_0x413356=function(_0x2e903c,_0x4b3a65,_0x2dfeda){let _0x2b50bf=Array['from'](_0x2e903c)['filter'](_0x4b75f1=>function(_0x431340,_0x20875e){return _0x20875e['checkChild'](_0x431340['parent'],'listItem')&&!_0x20875e['isObject'](_0x431340);}(_0x4b75f1,_0x2dfeda));_0x2b50bf=_0x2b50bf['filter'](_0x268195=>!_0x268195['is']('element','listItem')||_0x268195['getAttribute']('listType')!=_0x4b3a65);const _0x34ed57=new Set();for(const _0x553bf1 of _0x2b50bf)_0x553bf1['is']('element','listItem')?_0x34ed57['add'](Le(_0x553bf1)):_0x34ed57['add'](_0x553bf1);return Array['from'](_0x34ed57);}(_0x4c0c09['getSelectedBlocks'](),_0x3dfc86,_0x2b09a7['model']['schema']);_0x2b09a7['model']['change'](()=>{for(const _0x3f452f of _0x413356)_0x45926b['markBlockFormat'](_0x3f452f,{'commandName':_0x3e23fa,'commandParams':[{'forceValue':!_0x4ad96a['value']}],'formatGroupId':'blockName'},Ee(_0x3f452f));});};}function _0x34b167(_0x3ef9eb){return()=>{const _0xd1c80f=function(_0x25b68c){let _0xb2ea35=Array['from'](_0x25b68c);const _0x1187c3=_0xb2ea35['findIndex'](_0x3c6e29=>'listItem'!=_0x3c6e29['name']);return _0x1187c3>-0x1&&(_0xb2ea35=_0xb2ea35['slice'](0x0,_0x1187c3)),_0xb2ea35;}(_0x2b09a7['model']['document']['selection']['getSelectedBlocks']()),_0x1276e0=_0x2b09a7['model']['createRange'](_0x2b09a7['model']['createPositionAt'](_0xd1c80f[0x0],'before'),_0x2b09a7['model']['createPositionAt'](_0xd1c80f[_0xd1c80f['length']-0x1],'end'));_0x2b09a7['model']['change'](()=>{_0x45926b['markBlockFormat'](_0x1276e0,{'commandName':_0x3ef9eb,'commandParams':[],'formatGroupId':'listIndent'},function(_0x32fccf){const _0x4d7b56=new Set();for(const _0x4e487f of _0x32fccf){let _0x481ebb=_0x4e487f['nextSibling'];for(;_0x481ebb&&_0x481ebb['getAttribute']('listIndent')>_0x4e487f['getAttribute']('listIndent');)_0x4d7b56['add'](_0x481ebb),_0x481ebb=_0x481ebb['nextSibling'];}return Array['from'](_0x4d7b56);}(_0xd1c80f));});};}_0x45926b['enableCommand']('numberedList',_0x2c2671('numberedList')),_0x45926b['enableCommand']('bulletedList',_0x2c2671('bulletedList')),_0x285a2f&&_0x45926b['enableCommand']('todoList',_0x2c2671('todoList')),_0x45926b['enableCommand']('indentList',_0x34b167('indentList')),_0x45926b['enableCommand']('outdentList',_0x34b167('outdentList')),_0x285a2f&&_0x45926b['enableCommand']('checkTodoList',()=>{const _0x299d4a=_0x2b09a7['commands']['get']('checkTodoList'),_0x5f3ec7=Array['from'](_0x299d4a['_selectedElements']);_0x5f3ec7['filter'](_0x4e75a8=>_0x4e75a8['getAttribute']('todoListChecked')!=_0x299d4a['value']),_0x2b09a7['model']['change'](()=>{for(const _0x4400f1 of _0x5f3ec7)_0x45926b['markBlockFormat'](_0x4400f1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x299d4a['value']}]});});}),_0x45926b['descriptionFactory']['registerElementLabel']('listItem',_0x4678e6=>o(_0x5a3146,'ELEMENT_LIST_ITEM',_0x4678e6)),_0x45926b['descriptionFactory']['registerDescriptionCallback'](_0x19e5ee=>{if('formatBlock'!=_0x19e5ee['type']&&'formatInline'!=_0x19e5ee['type'])return;const {data:_0x235f11}=_0x19e5ee;if(_0x235f11){if('numberedList'==_0x235f11['commandName']||'bulletedList'==_0x235f11['commandName']||'todoList'==_0x235f11['commandName'])switch(_0x235f11['commandName']['replace']('List','')){case'bulleted':return _0x40b031(o(_0x5a3146,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x40b031(o(_0x5a3146,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x40b031(o(_0x5a3146,'ELEMENT_TODO_LIST'));}if('indentList'==_0x235f11['commandName'])return{'type':'format','content':o(_0x5a3146,'*Indent:*\x20%0',o(_0x5a3146,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x235f11['commandName'])return{'type':'format','content':o(_0x5a3146,'*Outdent:*\x20%0',o(_0x5a3146,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x235f11['commandName'])return _0x235f11['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a3146,'*Check\x20item*')}:{'type':'format','content':o(_0x5a3146,'*Uncheck\x20item*')};}function _0x40b031(_0x4b7910){return{'type':'format','content':o(_0x5a3146,'*Change\x20to:*\x20%0',_0x4b7910)};}});}}function Le(_0x511507){const _0x2e0efa=_0x511507['getAttribute']('listIndent');if(0x0==_0x2e0efa)return _0x511507;let _0x189f3a=_0x511507;for(;_0x511507['previousSibling']&&_0x511507['previousSibling']['is']('element','listItem');){const _0x5e7486=_0x511507['previousSibling']['getAttribute']('listIndent');if(_0x5e7486==_0x2e0efa)_0x189f3a=_0x511507['previousSibling'];else{if(_0x5e7486<_0x2e0efa)break;}_0x511507=_0x511507['previousSibling'];}return _0x189f3a;}function Ee(_0x8e0719){const _0x450254=[];if(_0x8e0719['is']('element','listItem')&&_0x8e0719['getAttribute']('listIndent')>0x0){let _0x579983=_0x8e0719['nextSibling'];for(;_0x579983&&'listItem'==_0x579983['name']&&_0x579983['getAttribute']('listIndent')==_0x8e0719['getAttribute']('listIndent');)_0x450254['push'](_0x579983),_0x579983=_0x579983['nextSibling'];}return _0x450254;}class Q extends _0x57a03e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x424afe=this['editor']['config']['get']('list.properties'),_0x1c229f=this['editor']['plugins']['get']('TrackChangesEditing');_0x424afe['styles']&&_0x1c229f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x424afe['reversed']&&_0x1c229f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x424afe['startIndex']&&_0x1c229f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1c229f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2554b8,_0x407173={}){const _0x54f646=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5da6d4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x54f646['markMultiRangeBlockFormat'](_0x5da6d4,{'commandName':'listStyle','commandParams':[{'type':_0x407173['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x50d89e,_0x4a084a={}){const _0x36974b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cada2=this['_getSuggestionBlocks'](_0x18061c=>_0x18061c['is']('element','listItem')&&'numbered'===_0x18061c['getAttribute']('listType'));if(_0x3cada2['length']<0x1)return;const _0x557178=_0x3cada2['map'](_0x574739=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x574739,'before'),this['editor']['model']['createPositionAt'](_0x574739,0x0)));this['editor']['model']['change'](()=>{_0x36974b['markMultiRangeBlockFormat'](_0x557178,{'commandName':'listReversed','commandParams':[{'reversed':_0x4a084a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x515a8e,_0x30f63f={}){const _0x44e3d1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26fefb=this['_getSuggestionBlocks'](_0x45d5e7=>_0x45d5e7['is']('element','listItem')&&'numbered'===_0x45d5e7['getAttribute']('listType'));if(_0x26fefb['length']<0x1)return;const _0x2e02c3=_0x26fefb['map'](_0x259b61=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x259b61,'before'),this['editor']['model']['createPositionAt'](_0x259b61,0x0)));this['editor']['model']['change'](()=>{_0x44e3d1['markMultiRangeBlockFormat'](_0x2e02c3,{'commandName':'listStart','commandParams':[{'startIndex':_0x30f63f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4586b3){if('formatBlock'!=_0x4586b3['type']&&'formatInline'!=_0x4586b3['type'])return;const _0x3c5e2e=this['editor']['locale'],{data:_0x25395a}=_0x4586b3;if(!_0x25395a)return;let _0x24b9a8,_0x5d416e;switch(_0x25395a['commandName']){case'listStyle':_0x24b9a8='*Change\x20to:*\x20%0',_0x5d416e={'type':'format','content':o(_0x3c5e2e,_0x24b9a8,o(_0x3c5e2e,this['_getTranslationKeyForListStyle'](_0x25395a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x24b9a8=_0x25395a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5d416e={'type':'format','content':o(_0x3c5e2e,_0x24b9a8)};break;case'listStart':_0x24b9a8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5d416e={'type':'format','content':o(_0x3c5e2e,_0x24b9a8,_0x25395a['commandParams'][0x0]['startIndex'])};}return _0x5d416e;}['_getSuggestionBlocksForListStyle'](){const _0x44523a=this['editor']['plugins']['get']('LegacyListUtils');let _0x2bdd12=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2bdd12[0x0]?.['is']('element','listItem')&&_0x2bdd12['unshift'](..._0x44523a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2bdd12[_0x2bdd12['length']-0x1]?.['is']('element','listItem')&&_0x2bdd12['push'](..._0x44523a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2bdd12=[...new Set(_0x2bdd12)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2bdd12=_0x2bdd12['filter'](_0x535b75=>_0x535b75['is']('element','listItem'))),_0x2bdd12;}['_getSuggestionBlocks'](_0x1b1960){const _0x2eae7d=this['editor']['plugins']['get']('LegacyListUtils');let _0x185071=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1b1960)['map'](_0x434faa=>{const _0x133748=this['editor']['model']['createPositionAt'](_0x434faa,0x0);return[..._0x2eae7d['getSiblingNodes'](_0x133748,'backward'),..._0x2eae7d['getSiblingNodes'](_0x133748,'forward')];})['flat']();return _0x185071=[...new Set(_0x185071)],_0x185071;}['_getTranslationKeyForListStyle'](_0x292dc7){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x292dc7)||'default')['toUpperCase']()+'_LIST_'+_0x292dc7['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x57a03e{['afterInit'](){const _0x5761a7=this['editor'];if(!_0x5761a7['plugins']['has']('MediaEmbedEditing'))return;const _0x11a334=_0x5761a7['plugins']['get']('TrackChangesEditing'),_0x6f4283=_0x5761a7['locale'];_0x11a334['enableCommand']('mediaEmbed'),_0x11a334['descriptionFactory']['registerElementLabel']('media',_0x5ebe98=>o(_0x6f4283,'ELEMENT_MEDIA',_0x5ebe98)),_0x5761a7['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x38f338,{writer:_0x3b4a5e,options:_0x3bb3ad})=>{if(_0x3bb3ad['showSuggestionHighlights'])return _0x3b4a5e['createEmptyElement']('div');},'converterPriority':'high'}),_0x5761a7['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4df480,_0x464279,_0x262427)=>{_0x262427['options']['showSuggestionHighlights']&&_0x4df480['stop']();},{'priority':'high'});}}class mt extends _0x57a03e{['afterInit'](){const _0x16fbb6=this['editor'];_0x16fbb6['plugins']['has']('MentionEditing')&&_0x16fbb6['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x57a03e{['afterInit'](){const _0x478fd6=this['editor'];if(!_0x478fd6['plugins']['has']('MergeFieldsEditing'))return;const _0x5e9d5d=_0x478fd6['plugins']['get']('TrackChangesEditing'),_0xd833f5=_0x478fd6['locale'];_0x5e9d5d['enableCommand']('insertMergeField'),_0x5e9d5d['enableCommand']('insertMergeFieldBlock'),_0x5e9d5d['enableCommand']('insertMergeFieldImage'),_0x5e9d5d['descriptionFactory']['registerElementLabel']('mergeField',_0x372f59=>o(_0xd833f5,'ELEMENT_MERGE_FIELD',_0x372f59)),_0x5e9d5d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x35b70f=>o(_0xd833f5,'ELEMENT_MERGE_FIELD',_0x35b70f)),_0x5e9d5d['descriptionFactory']['registerDescriptionCallback'](_0xd97443=>{if('insertion'!=_0xd97443['type']&&'deletion'!=_0xd97443['type'])return;const _0x5d5d41=_0xd97443['getContainedElement']();if(null==_0x5d5d41)return;const _0x2f4b72=_0x478fd6['plugins']['get']('MergeFieldsEditing');let _0x29cf49;switch(_0x2f4b72['getMergeFieldType'](_0x5d5d41)){case null:return;case'image':{const _0x2667bc=_0x2f4b72['unwrapAffixes'](_0x5d5d41['getAttribute']('src'));_0x29cf49=_0x2f4b72['getLabel'](_0x2667bc)||_0x2667bc;break;}default:{const _0x28a65d=_0x5d5d41['getAttribute']('id');_0x29cf49=_0x2f4b72['getLabel'](_0x28a65d)||_0x28a65d;break;}}return'insertion'==_0xd97443['type']?{'type':'insertion','content':o(_0xd833f5,'*Insert:*\x20%0','\x22'+_0x29cf49+'\x22\x20'+o(_0xd833f5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xd833f5,'*Remove:*\x20%0','\x22'+_0x29cf49+'\x22\x20'+o(_0xd833f5,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x57a03e{['afterInit'](){const _0x2e911e=this['editor'],_0x743e90=_0x2e911e['plugins']['get']('TrackChangesEditing');_0x2e911e['plugins']['has']('MultiLevelList')&&(_0x743e90['enableDefaultAttributesIntegration']('multiLevelList'),_0x743e90['registerBlockAttribute']('listMarkerStyle'),_0x743e90['descriptionFactory']['registerDescriptionCallback'](_0xbd82ed=>this['handleDescriptions'](_0xbd82ed)));}['handleDescriptions'](_0x4ce628){const _0x21fcd2=this['editor']['locale'],{data:_0x3913d2}=_0x4ce628,_0x5d1a5d={'type':'format','content':''};if(_0x3913d2&&'listMarkerStyle'==_0x3913d2['key']){if(!_0x3913d2['oldValue'])return{'type':'format','content':o(_0x21fcd2,'*Set\x20format:*\x20%0',o(_0x21fcd2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3913d2['newValue']+')'};if(!_0x3913d2['newValue']){let _0x5ca045=_0x4ce628['head'];for(;_0x5ca045;){if(_0x5ca045['data']&&'listType'==_0x5ca045['data']['key']&&_0x5ca045['data']['newValue'])return _0x5d1a5d;_0x5ca045=_0x5ca045['next'];}return{'type':'format','content':o(_0x21fcd2,'*Remove\x20format:*\x20%0',o(_0x21fcd2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3913d2['oldValue']+')'};}}}}class kt extends _0x57a03e{['afterInit'](){const _0x4bd79f=this['editor'];if(!_0x4bd79f['plugins']['has']('PageBreakEditing'))return;_0x4bd79f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x841184=_0x4bd79f['plugins']['get']('TrackChangesEditing'),_0x51c2b4=_0x4bd79f['locale'];_0x841184['descriptionFactory']['registerElementLabel']('pageBreak',_0x53915d=>o(_0x51c2b4,'ELEMENT_PAGE_BREAK',_0x53915d));}}class bt extends _0x57a03e{['afterInit'](){const _0x590e5c=this['editor'];if(!_0x590e5c['plugins']['has']('Paragraph'))return;const _0x3fa52f=_0x590e5c['locale'],_0x340750=_0x590e5c['plugins']['get']('TrackChangesEditing');_0x340750['descriptionFactory']['registerElementLabel']('paragraph',_0x19f091=>o(_0x3fa52f,'ELEMENT_PARAGRAPH',_0x19f091)),_0x340750['enableDefaultAttributesIntegration']('paragraph'),_0x340750['enableCommand']('insertParagraph'),_0x590e5c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x590e5c),{'priority':'highest'}),_0x590e5c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xa63fe6,_0x180018,_0x4c4a8d)=>{_0x4c4a8d['options']['showSuggestionHighlights']&&nr(_0x590e5c,{'showActiveMarker':!0x1})(_0xa63fe6,_0x180018,_0x4c4a8d);},{'priority':'highest'});const _0x4cd7ad=_0x340750['descriptionFactory'];_0x4cd7ad['registerDescriptionCallback'](_0x4c2be4=>{if('insertion'!==_0x4c2be4['type'])return;const {start:_0x42b46e,end:_0x4c2237}=_0x4c2be4['getFirstRange']();if(!_0x42b46e['isTouching'](_0x4c2237)||!_0x42b46e['nodeAfter'])return;const _0xf2aeac=_0x590e5c['model']['schema'],_0x39d1b6=_0x42b46e['nodeAfter'];return _0xf2aeac['isBlock'](_0x39d1b6)&&!_0xf2aeac['isLimit'](_0x39d1b6)&&_0xf2aeac['checkChild'](_0x39d1b6,'$text')?{'type':'insertion','content':o(_0x3fa52f,'*Insert:*\x20%0',_0x4cd7ad['getItemLabel'](_0x39d1b6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6cd54a=this['editor'],_0x23db80=_0x6cd54a['locale'];_0x6cd54a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ae94a=>{if('formatBlock'!=_0x2ae94a['type'])return;const {data:_0x43676a}=_0x2ae94a;return _0x43676a&&'paragraph'==_0x43676a['commandName']?{'type':'format','content':o(_0x23db80,'*Change\x20to:*\x20%0',o(_0x23db80,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xcdd70,{showActiveMarker:_0x2a9d90=!0x0}={}){return(_0x1af291,_0x254e33,_0x1968eb)=>{const _0x18ac1d=_0xcdd70['plugins']['get']('TrackChangesEditing'),_0x480e48=_0x254e33['markerRange']['start'],_0x5089bc=_0x254e33['markerRange']['end'],_0x59160f=_0xcdd70['model']['schema'];if(!_0x480e48['isTouching'](_0x5089bc)||!_0x480e48['nodeAfter'])return;const _0x4a2e51=_0x480e48['nodeAfter'];if(_0x59160f['isBlock'](_0x4a2e51)&&!_0x59160f['isLimit'](_0x4a2e51)&&_0x59160f['checkChild'](_0x4a2e51,'$text')){if(!_0x1968eb['consumable']['consume'](_0x254e33['markerRange'],_0x1af291['name']))return;const {authorId:_0x2c974e}=_0x18ac1d['_splitMarkerName'](_0x254e33['markerName']),_0x4c951b=_0x1968eb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2c974e}),_0x4bc49d=_0x1968eb['mapper']['toViewPosition'](_0x5089bc);_0x2a9d90&&_0x18ac1d['activeMarkers']['includes'](_0x254e33['markerName'])&&_0x1968eb['writer']['addClass']('ck-suggestion-marker--active',_0x4c951b),_0x1968eb['writer']['insert'](_0x4bc49d,_0x4c951b),_0x1968eb['mapper']['bindElementToMarker'](_0x4c951b,_0x254e33['markerName']);}};}class yt extends _0x57a03e{['afterInit'](){const _0x3bb0d2=this['editor'];if(!_0x3bb0d2['plugins']['has']('RemoveFormatEditing'))return;_0x3bb0d2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bb5ee=this['editor'];_0x3bb5ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35c052=>{if('formatBlock'!=_0x35c052['type']&&'formatInline'!=_0x35c052['type'])return;const {data:_0x2c6e79}=_0x35c052;return _0x2c6e79&&'removeFormat'==_0x2c6e79['commandName']?{'type':'format','content':o(_0x3bb5ee['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x57a03e{['afterInit'](){const _0x40444e=this['editor'];if(!_0x40444e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3f2153=_0x40444e['plugins']['get']('TrackChangesEditing');_0x3f2153['enableCommand']('goToPreviousRestrictedEditingException'),_0x3f2153['enableCommand']('goToNextRestrictedEditingException');const _0x1e9148=_0x40444e['plugins']['get']('RestrictedEditingModeEditing');_0x1e9148['enableCommand']('trackChanges'),_0x1e9148['enableCommand']('acceptSuggestion'),_0x1e9148['enableCommand']('discardSuggestion'),_0x1e9148['enableCommand']('acceptAllSuggestions'),_0x1e9148['enableCommand']('discardAllSuggestions'),_0x1e9148['enableCommand']('acceptSelectedSuggestions'),_0x1e9148['enableCommand']('discardSelectedSuggestions');}}class St extends _0x57a03e{static get['requires'](){return[_0x5c51ca];}['init'](){const _0x4a89cb=this['editor'],_0x1f9cfd=_0x4a89cb['plugins']['get']('TrackChangesEditing');_0x1f9cfd['enableCommand']('shiftEnter'),_0x4a89cb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4a89cb),{'priority':'high'}),_0x4a89cb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4a89cb),{'priority':'high'}),_0x4a89cb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xf0dae8,_0x5c7397,_0x1082a0)=>{_0x1082a0['options']['showSuggestionHighlights']&&je(_0x4a89cb,{'showActiveMarker':!0x1})(_0xf0dae8,_0x5c7397,_0x1082a0);}),_0x1f9cfd['descriptionFactory']['registerElementLabel']('softBreak',_0x2a2982=>o(_0x4a89cb['locale'],'ELEMENT_LINE_BREAK',_0x2a2982));}}function je(_0x25843e,{showActiveMarker:_0x32d2fd=!0x0}={}){return(_0x385823,_0x14f3c3,_0x14339f)=>{const _0x247c62=_0x25843e['plugins']['get']('TrackChangesEditing');if(!_0x14339f['consumable']['test'](_0x14f3c3['markerRange'],_0x385823['name']))return;const _0x15dbc4=_0x25843e['model'];for(const _0x4241f0 of _0x14f3c3['markerRange']['getItems']()){if(!_0x4241f0['is']('element','softBreak'))continue;const _0x2f444a='deletion'==_0x14f3c3['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x21287c}=_0x247c62['_splitMarkerName'](_0x14f3c3['markerName']),_0x812042=_0x14339f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2f444a,'data-author-id':_0x21287c}),_0x1dd1d6=_0x14339f['mapper']['toViewPosition'](_0x15dbc4['createPositionBefore'](_0x4241f0));_0x32d2fd&&_0x247c62['activeMarkers']['includes'](_0x14f3c3['markerName'])&&_0x14339f['writer']['addClass']('ck-suggestion-marker--active',_0x812042),_0x14339f['writer']['insert'](_0x1dd1d6,_0x812042),_0x14339f['mapper']['bindElementToMarker'](_0x812042,_0x14f3c3['markerName']);}};}class At extends _0x57a03e{['afterInit'](){const _0x1aa0b5=this['editor'],_0x46295f=_0x1aa0b5['model'],_0x201a4e=_0x1aa0b5['locale'];if(!_0x1aa0b5['plugins']['has']('StandardEditingModeEditing'))return;const _0x548c53=_0x1aa0b5['plugins']['get']('TrackChangesEditing'),_0x1e987a='restrictedEditingException',_0xe4a043=_0x1aa0b5['commands']['get'](_0x1e987a);_0x548c53['enableCommand'](_0x1e987a,(_0x3add24,_0x1b08c7={})=>{const _0x37e307=_0x46295f['document']['selection'];if(_0x37e307['isCollapsed'])return void _0x3add24(_0x1b08c7);const _0x3ccd7c=void 0x0!==_0x1b08c7['forceValue']?_0x1b08c7['forceValue']:!_0xe4a043['value'];_0x46295f['change'](()=>{const _0x4b58cb=Array['from'](_0x37e307['getRanges']());for(const _0x38729d of _0x4b58cb){const _0x3eefe5=_0x3ccd7c?[_0x38729d]:io(_0x1e987a,_0x38729d,_0x46295f);for(const _0x433296 of _0x3eefe5)_0x548c53['markInlineFormat'](_0x433296,{'commandName':_0x1e987a,'commandParams':[{'forceValue':_0x3ccd7c}]});}});}),_0x548c53['descriptionFactory']['registerDescriptionCallback'](_0x4d3fa0=>{if('formatBlock'!=_0x4d3fa0['type']&&'formatInline'!=_0x4d3fa0['type'])return;const {data:_0x4b778a}=_0x4d3fa0;return _0x4b778a&&_0x4b778a['commandName']==_0x1e987a?_0x4b778a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x201a4e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x201a4e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x57a03e{['afterInit'](){const _0x458f60=this['editor'];if(!_0x458f60['plugins']['has']('Style')||!_0x458f60['plugins']['has']('DataSchema'))return;const _0x189a92=_0x458f60['plugins']['get']('TrackChangesEditing'),_0x4cebf9=_0x458f60['locale'],_0x29388d=_0x458f60['config']['get']('style')||{},_0x41ffc1=_0x458f60['plugins']['get']('GeneralHtmlSupport'),_0x314c9c=_0x458f60['plugins']['get']('StyleUtils')['normalizeConfig'](_0x458f60['plugins']['get']('DataSchema'),_0x29388d['definitions']);_0x189a92['enableDefaultAttributesIntegration']('style');const _0x4390c0=new Set();for(const _0x2e483e of _0x314c9c['block']){const _0x3f98fe=_0x41ffc1['getGhsAttributeNameForElement'](_0x2e483e['element']);_0x4390c0['add'](_0x3f98fe);}const _0x209960=new Set();for(const _0x551708 of _0x314c9c['inline']){const _0x4721f0=_0x41ffc1['getGhsAttributeNameForElement'](_0x551708['element']);_0x209960['add'](_0x4721f0);for(const _0x3ed61a of _0x551708['ghsAttributes'])_0x209960['add'](_0x3ed61a);}for(const _0x39590b of _0x4390c0)_0x189a92['registerBlockAttribute'](_0x39590b),_0x189a92['descriptionFactory']['registerAttributeLabel'](_0x39590b,o(_0x4cebf9,'FORMAT_STYLE'));for(const _0x7312e0 of _0x209960)_0x189a92['registerInlineAttribute'](_0x7312e0),_0x189a92['descriptionFactory']['registerAttributeLabel'](_0x7312e0,o(_0x4cebf9,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a2d86=this['editor'],_0x11a7d3=_0x2a2d86['locale'];_0x2a2d86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5958c0=>{if('formatBlock'!=_0x5958c0['type']&&'formatInline'!=_0x5958c0['type'])return;const {data:_0x599c27}=_0x5958c0;return _0x599c27&&'style'===_0x599c27['commandName']?_0x599c27['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11a7d3,'*Set\x20format:*\x20%0',_0x599c27['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x11a7d3,'*Remove\x20format:*\x20%0',_0x599c27['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x57a03e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4565fb){super(_0x4565fb),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x57dc81=this['editor'],_0x457030=_0x57dc81['model']['document']['selection'];if(!_0x57dc81['plugins']['has']('TableEditing'))return;const _0x4a6840=_0x57dc81['locale'],_0x503a46=_0x57dc81['plugins']['get']('TrackChangesEditing'),_0x511bb1=_0x57dc81['plugins']['get']('TableUtils');_0x503a46['descriptionFactory']['registerElementLabel']('table',_0xfa009c=>o(_0x4a6840,'ELEMENT_TABLE',_0xfa009c)),this['_setupColumnsRowsFixing'](),_0x503a46['enableCommand']('insertTable'),_0x503a46['enableCommand']('selectTableRow'),_0x503a46['enableCommand']('selectTableColumn');for(const _0x39f43b of['insertTableRowAbove','insertTableRowBelow']){const _0x5a4628=_0x57dc81['commands']['get'](_0x39f43b);_0x503a46['enableCommand'](_0x39f43b,_0x49b265=>{_0x57dc81['model']['change'](_0x3fd539=>{_0x49b265();const _0x10dca1='above'===_0x5a4628['order'],_0xed1d39=_0x511bb1['getSelectionAffectedTableCells'](_0x457030),_0x24b258=_0x511bb1['getRowIndexes'](_0xed1d39),_0x28028d=_0x10dca1?_0x24b258['first']-0x1:_0x24b258['last']+0x1,_0x2747fd=_0xed1d39[0x0]['findAncestor']('table'),_0x48bd31=_0x511bb1['createTableWalker'](_0x2747fd,{'startRow':_0x28028d,'endRow':_0x28028d}),_0x537bd8=Array['from'](_0x48bd31)['map'](_0x2645d8=>_0x3fd539['createRangeOn'](_0x2645d8['cell']));_0x503a46['markMultiRangeInsertion'](_0x537bd8,'tableRow');});});}for(const _0x2b08db of['insertTableColumnLeft','insertTableColumnRight']){const _0x328e2b=_0x57dc81['commands']['get'](_0x2b08db);_0x503a46['enableCommand'](_0x2b08db,_0x5c45bc=>{_0x57dc81['model']['change'](_0xd691b3=>{_0x5c45bc();const _0x3370fd='left'===_0x328e2b['order'],_0x5eb1e4=_0x511bb1['getSelectionAffectedTableCells'](_0x457030),_0x46332b=_0x511bb1['getColumnIndexes'](_0x5eb1e4),_0x319407=_0x3370fd?_0x46332b['first']-0x1:_0x46332b['last']+0x1,_0x2e25f1=_0x5eb1e4[0x0]['findAncestor']('table'),_0x285049=_0x511bb1['createTableWalker'](_0x2e25f1,{'startRow':0x0,'column':_0x319407,'includeAllSlots':!0x1}),_0x511702=Array['from'](_0x285049)['map'](_0x565053=>_0xd691b3['createRangeOn'](_0x565053['cell']));_0x503a46['markMultiRangeInsertion'](_0x511702,'tableColumn');});});}for(const _0x269f29 of['removeTableRow','removeTableColumn']){const _0x56dd4c=_0x269f29['substr'](0xb),_0x2f2d29=_0x56dd4c['toLowerCase'](),_0x4815b8=_0x2f2d29['substr'](0x0,0x3)+'span',_0x326dff='table'+_0x56dd4c,_0x3a3a6a='min'+_0x56dd4c,_0x2bf302='max'+_0x56dd4c;_0x503a46['enableCommand'](_0x269f29,()=>{_0x57dc81['model']['change'](_0x4f1ad2=>{const _0x2818dd=_0x511bb1['getSelectionAffectedTableCells'](_0x457030),_0x229f1c=_0x2818dd[0x0]['findAncestor']('table');let _0x130e2b;if('removeTableRow'==_0x269f29){const _0x8e0b39=_0x511bb1['getRowIndexes'](_0x2818dd);_0x130e2b={'startRow':_0x8e0b39['first'],'endRow':_0x8e0b39['last'],'includeAllSlots':!0x0};}else{const _0x4d579d=_0x511bb1['getColumnIndexes'](_0x2818dd);_0x130e2b={'startColumn':_0x4d579d['first'],'endColumn':_0x4d579d['last'],'includeAllSlots':!0x0};}const _0x56c243=_0x511bb1['createTableWalker'](_0x229f1c,_0x130e2b),_0xaaa733=Array['from'](_0x56c243)['map'](({cell:_0x352caa})=>_0x352caa),_0x46e27d=Ne(_0xaaa733['filter'](_0x149f94=>_0x149f94['hasAttribute'](_0x4815b8))),_0x543b10=Ne(_0xaaa733['filter'](_0x3bd82c=>!_0x3bd82c['hasAttribute'](_0x4815b8)))['map'](_0x272f95=>_0x4f1ad2['createRangeOn'](_0x272f95)),_0x468486=_0x503a46['markMultiRangeDeletion'](_0x543b10,_0x326dff);if(_0x468486&&('tableRow'==_0x468486['subType']||'tableColumn'==_0x468486['subType'])){const _0x3c4803=this['_getSuggestionCoords'](_0x468486);for(const _0x283940 of _0x46e27d){const _0x5cf5f9=_0x4f1ad2['createRangeOn'](_0x283940),_0x9e8278=_0x511bb1['getCellLocation'](_0x283940),_0x2c57a8=_0x283940['getAttribute'](_0x4815b8)-0x1,_0x16b768=_0x3c4803[_0x3a3a6a],_0x48d352=_0x3c4803[_0x2bf302];_0x16b768<=_0x9e8278[_0x2f2d29]&&_0x9e8278[_0x2f2d29]+_0x2c57a8<=_0x48d352&&_0x468486['addRange'](_0x5cf5f9);}}});});}function _0x143573(_0x14b780){const _0xed26f5=Array['from'](_0x457030['getRanges']())['map'](_0x213364=>_0x4da4a9['fromRange'](_0x213364));_0x57dc81['model']['change'](_0xf7b71c=>{const _0x5e1bb8=_0xf7b71c['batch'];_0x14b780=_0x14b780['filter'](_0x2d71bb=>'$graveyard'!=_0x2d71bb['root']['rootName']),_0xf7b71c['setSelection'](_0x14b780),_0x57dc81['commands']['get']('removeTableRow')['refresh'](),_0x57dc81['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x57dc81['model']['enqueueChange'](()=>{_0x57dc81['model']['enqueueChange'](_0x5e1bb8,_0x58ba73=>{const _0x23b080=_0xed26f5['filter'](_0xe422f5=>'$graveyard'!=_0xe422f5['root']['rootName']);_0x23b080['length']>0x0&&_0x58ba73['setSelection'](_0x23b080);for(const _0x21acc9 of _0xed26f5)_0x21acc9['detach']();});});});}function _0x2ed33f(_0x1f2163){_0x57dc81['model']['change'](_0x32e4b9=>{const _0x4273fb=Array['from'](_0x457030['getRanges']())['map'](_0xda7df8=>_0x4da4a9['fromRange'](_0xda7df8)),_0x175d47=[];for(const _0x1d7e82 of _0x1f2163)for(const _0x1ed950 of _0x1d7e82['getItems']({'shallow':!0x0}))_0x175d47['push'](_0x1ed950);for(const _0x173356 of _0x175d47)'$graveyard'!=_0x173356['root']['rootName']&&(_0x32e4b9['setSelection'](_0x32e4b9['createPositionAt'](_0x173356,0x0)),_0x57dc81['commands']['get']('removeTableColumn')['refresh'](),_0x57dc81['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2fd405=_0x4273fb['filter'](_0x47828e=>'$graveyard'!=_0x47828e['root']['rootName']);_0x2fd405['length']>0x0&&_0x32e4b9['setSelection'](_0x2fd405);for(const _0x3ab835 of _0x4273fb)_0x3ab835['detach']();});}function _0x5b4a4c(_0x1ec570,_0x2ae6c9){return _0x2ae6c9['every'](_0x178243=>_0x1ec570['some'](_0x6a0af5=>_0x6a0af5['end']['isEqual'](_0x178243['start'])||_0x178243['end']['isEqual'](_0x6a0af5['start'])));}function _0x8d49f6(_0x3b1e36,_0x31a1c1){return!_0x3b1e36['some'](_0x3d457b=>_0x31a1c1['some'](_0x1eb382=>_0x3d457b['isIntersecting'](_0x1eb382)))&&_0x3b1e36['some'](_0x34e2ea=>_0x31a1c1['some'](_0x36459b=>_0x34e2ea['end']['isTouching'](_0x36459b['start'])));}_0x57dc81['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2cbf32,_0x3c9e2d,_0x151cc8)=>{if(!_0x151cc8['options']['showSuggestionHighlights'])return;const _0x7848d3=_0x3c9e2d['item'];if(!_0x7848d3)return;const _0xe86fdd=_0x151cc8['mapper']['toViewElement'](_0x7848d3);function _0x12b39c(_0x23f586){return Array['isArray'](_0x23f586)?_0x23f586:[_0x23f586];}_0xe86fdd&&'tableCell'===_0x7848d3['name']&&_0x578877(_0xe86fdd,_0x151cc8['writer'],(_0x3335a6,_0x5a73fe,_0x2513ff)=>_0x2513ff['addClass'](_0x12b39c(_0x5a73fe['classes']),_0x3335a6),(_0x2bffc1,_0x3c8d7b,_0x2946c0)=>_0x2946c0['removeClass'](_0x12b39c(_0x3c8d7b['classes']),_0x2bffc1));},{'priority':'highest'}),_0x503a46['descriptionFactory']['registerDescriptionCallback'](_0x7d55a9=>{if('insertion'!=_0x7d55a9['type']&&'deletion'!=_0x7d55a9['type'])return;const _0x2a7188=_0x7d55a9['getContainedElement']();if(null!=_0x2a7188&&_0x2a7188['is']('element','table')){if('insertion'==_0x7d55a9['type']){const _0x370484=_0x7d55a9['getItems']()['filter'](_0x3d78f8=>_0x3d78f8['is']('$textProxy'))['map'](_0x151650=>_0x151650['data']);if(_0x370484['length'])return{'type':'insertion','content':o(_0x4a6840,'*Insert:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x370484['join']('\x20')+'\x22'))};}if('deletion'==_0x7d55a9['type']){const _0x40ba2a=_0x7d55a9['getItems']()['filter'](_0x52a7a2=>_0x52a7a2['is']('$textProxy'))['map'](_0x1a837c=>_0x1a837c['data']);if(_0x40ba2a['length'])return{'type':'deletion','content':o(_0x4a6840,'*Remove:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x40ba2a['join']('\x20')+'\x22'))};}}}),_0x503a46['descriptionFactory']['registerDescriptionCallback'](_0x3f85c4=>{if('tableRow'==_0x3f85c4['subType']){const _0x31bc71=_0x3f85c4['getItems']()['filter'](_0x3eb0e2=>_0x3eb0e2['is']('$textProxy'))['map'](_0x37fb17=>_0x37fb17['data']),_0x386df4=this['_getSuggestionCoords'](_0x3f85c4),_0x1d7e0d=_0x386df4['maxRow']-_0x386df4['minRow']+0x1;if('insertion'==_0x3f85c4['type'])return _0x31bc71['length']?{'type':'insertion','content':o(_0x4a6840,'*Insert:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d7e0d,'\x22'+_0x31bc71['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4a6840,'*Insert:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_ROW',_0x1d7e0d))};if('deletion'==_0x3f85c4['type'])return _0x31bc71['length']?{'type':'deletion','content':o(_0x4a6840,'*Remove:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d7e0d,'\x22'+_0x31bc71['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4a6840,'*Remove:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_ROW',_0x1d7e0d))};}if('tableColumn'==_0x3f85c4['subType']){const _0xa83385=_0x3f85c4['getItems']()['filter'](_0x403a5d=>_0x403a5d['is']('$textProxy'))['map'](_0x1f1f35=>_0x1f1f35['data']),_0x46b7c7=this['_getSuggestionCoords'](_0x3f85c4),_0xbaae89=_0x46b7c7['maxColumn']-_0x46b7c7['minColumn']+0x1;if('insertion'==_0x3f85c4['type'])return _0xa83385['length']?{'type':'insertion','content':o(_0x4a6840,'*Insert:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xbaae89,'\x22'+_0xa83385['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4a6840,'*Insert:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_COLUMN',_0xbaae89))};if('deletion'==_0x3f85c4['type'])return _0xa83385['length']?{'type':'deletion','content':o(_0x4a6840,'*Remove:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xbaae89,'\x22'+_0xa83385['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4a6840,'*Remove:*\x20%0',o(_0x4a6840,'ELEMENT_TABLE_COLUMN',_0xbaae89))};}}),_0x503a46['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x143573),_0x503a46['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x143573),_0x503a46['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2ed33f),_0x503a46['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2ed33f),_0x503a46['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5b4a4c),_0x503a46['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5b4a4c),_0x503a46['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x8d49f6),_0x503a46['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x8d49f6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2a7b2e=this['editor'],_0x294828=_0x2a7b2e['model']['document']['selection'];return(_0x3fa934,_0x1c1697)=>{_0x2a7b2e['model']['change'](_0x453a52=>{const {commandName:_0x4e412c,commandParams:_0x323fc3}=_0x1c1697;let _0x511661=_0x3fa934[0x0]['end']['nodeBefore'];_0x323fc3&&_0x323fc3[0x0]&&!0x1===_0x323fc3[0x0]['forceValue']&&(_0x511661=_0x3fa934[0x0]['start']['nodeAfter']);const _0x1de43b=_0x453a52['createRangeIn'](_0x511661);if('$graveyard'==_0x1de43b['root']['rootName'])return;const _0x745a49=Array['from'](_0x294828['getRanges']())['map'](_0x3d8725=>_0x4da4a9['fromRange'](_0x3d8725));_0x453a52['setSelection'](_0x1de43b),_0x2a7b2e['commands']['get'](_0x4e412c)['refresh'](),_0x323fc3['push']({'forceDefaultExecution':!0x0}),_0x2a7b2e['execute'](_0x4e412c,..._0x323fc3);const _0x199d92=_0x745a49['filter'](_0x2c3ddb=>'$graveyard'!=_0x2c3ddb['root']['rootName']);_0x199d92['length']>0x0&&_0x453a52['setSelection'](_0x199d92);for(const _0x1863ec of _0x745a49)_0x1863ec['detach']();});};}['_getCoordsForCells'](_0x12a6ac){const _0x41faa1=this['editor']['plugins']['get']('TableUtils');let _0x581928=Number['MAX_SAFE_INTEGER'],_0x3fd74b=Number['MIN_SAFE_INTEGER'],_0x1d1082=Number['MAX_SAFE_INTEGER'],_0x44f853=Number['MIN_SAFE_INTEGER'];for(const _0x5f13bb of _0x12a6ac){if('$graveyard'==_0x5f13bb['root']['rootName'])continue;const {row:_0xcefb58,column:_0x1a29ed}=_0x41faa1['getCellLocation'](_0x5f13bb),_0x3565da=_0x5f13bb['hasAttribute']('rowspan')?_0x5f13bb['getAttribute']('rowspan')-0x1:0x0,_0x27066a=_0x5f13bb['hasAttribute']('colspan')?_0x5f13bb['getAttribute']('colspan')-0x1:0x0;_0x581928=_0xcefb58<_0x581928?_0xcefb58:_0x581928,_0x3fd74b=_0xcefb58+_0x3565da>_0x3fd74b?_0xcefb58+_0x3565da:_0x3fd74b,_0x1d1082=_0x1a29ed<_0x1d1082?_0x1a29ed:_0x1d1082,_0x44f853=_0x1a29ed+_0x27066a>_0x44f853?_0x1a29ed+_0x27066a:_0x44f853;}return{'minRow':_0x581928,'maxRow':_0x3fd74b,'minColumn':_0x1d1082,'maxColumn':_0x44f853};}['_setupColumnsRowsFixing'](){const _0x3083af=this['editor'],_0x20131a=_0x3083af['plugins']['get']('TrackChangesEditing'),_0x56f9ca=_0x3083af['plugins']['get']('TableUtils');_0x3083af['model']['document']['on']('change:data',()=>{const _0x5a87e5=Array['from'](_0x3083af['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5519ec,data:_0x54fd7d}of _0x5a87e5){const {group:_0x384ee2,id:_0x5a3726,subType:_0x31e4f5}=_0x20131a['_splitMarkerName'](_0x5519ec);if('suggestion'!=_0x384ee2)continue;if(null!=_0x54fd7d['oldRange'])continue;const _0x57755c=_0x20131a['getSuggestion'](_0x5a3726);this['_tablePostFixingSubtypes']['includes'](_0x31e4f5)&&this['_tableSuggestions']['add'](_0x57755c);}},{'priority':'low'});const _0x3aea67=(_0x2fe2a5,_0x34b806)=>{let _0xf438bf=!0x1;const _0x5e825b=_0x34b806['createRangeOn'](_0x2fe2a5),_0x1b6195=_0x2fe2a5['findAncestor']('table'),_0x89327f=_0x56f9ca['getCellLocation'](_0x2fe2a5);for(const _0x549cca of this['_tableSuggestions']){const _0x35b43b=_0x549cca['subType'],_0xccbe68=_0x35b43b['startsWith']('tablePaste'),_0x5bb72e=_0x35b43b['substr'](_0xccbe68?0xa:0x5),_0x6fa9d0=_0x5bb72e['toLowerCase'](),_0x2bcad3=_0x6fa9d0['substr'](0x0,0x3)+'span',_0x6889f1='min'+_0x5bb72e,_0x53cad3='max'+_0x5bb72e;if(!_0x549cca['isInContent'])continue;if(_0x1b6195!=_0x549cca['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x549cca['isIntersectingWithRange'](_0x5e825b))continue;const _0x2462c8=_0x2fe2a5['hasAttribute'](_0x2bcad3)?_0x2fe2a5['getAttribute'](_0x2bcad3)-0x1:0x0,_0xcb045d=this['_getSuggestionCoords'](_0x549cca),_0x2ed978=_0xcb045d[_0x6889f1],_0x5a28bd=_0xcb045d[_0x53cad3];_0x2ed978<=_0x89327f[_0x6fa9d0]&&_0x89327f[_0x6fa9d0]+_0x2462c8<=_0x5a28bd&&(_0x549cca['addRange'](_0x5e825b),_0xf438bf=!0x0);}return _0xf438bf;};_0x3083af['model']['document']['registerPostFixer'](_0x1189c8=>{let _0x10a0ee=!0x1;for(const _0x10e7a1 of _0x3083af['model']['document']['differ']['getChanges']())if('insert'==_0x10e7a1['type']){if('tableRow'==_0x10e7a1['name']){for(const _0x4b56b4 of _0x10e7a1['position']['nodeAfter']['getChildren']())_0x10a0ee=_0x10a0ee||_0x3aea67(_0x4b56b4,_0x1189c8);}else'tableCell'==_0x10e7a1['name']&&(_0x10a0ee=_0x10a0ee||_0x3aea67(_0x10e7a1['position']['nodeAfter'],_0x1189c8));}return _0x10a0ee;});}['_getSuggestionCoords'](_0x22c28c){return this['_getCoordsForCells'](_0x22c28c['getRanges']()['map'](_0x903b31=>_0x903b31['start']['nodeAfter']));}}function Ne(_0x285175){return Array['from'](new Set(_0x285175)['values']());}class _t extends _0x57a03e{static get['requires'](){return[vt];}['afterInit'](){const _0x151e16=this['editor'],_0x10cf4b=_0x151e16['model']['document']['selection'],_0x1172c9=_0x151e16['locale'];if(!_0x151e16['plugins']['has']('TableEditing'))return;const _0x574158=_0x151e16['plugins']['get']('TrackChangesEditing'),_0x42ecf7=_0x151e16['plugins']['get']('TableUtils'),_0x5eac9f=_0x151e16['plugins']['get'](vt);_0x5eac9f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x574158['enableCommand']('mergeTableCells',()=>{const _0x17729f=_0x42ecf7['getSelectionAffectedTableCells'](_0x151e16['model']['document']['selection']);_0x151e16['model']['change'](()=>{_0x574158['markMultiRangeBlockFormat'](_0x17729f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x151e16['commands']['get']('mergeTableCells')['on']('execute',(_0x315fc5,_0x1c571e)=>{_0x151e16['commands']['get']('trackChanges')['value']&&(_0x1c571e['length']>0x0&&_0x1c571e[_0x1c571e['length']-0x1]&&_0x1c571e[_0x1c571e['length']-0x1]['forceDefaultExecution']||_0x574158['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x315fc5['stop']());},{'priority':'highest'});for(const _0x1ab479 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x39ef3f=_0x151e16['commands']['get'](_0x1ab479);_0x574158['enableCommand'](_0x1ab479,()=>{const _0x4c55dc=_0x151e16['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4dd89f=>_0x4dd89f['is']('element','tableCell')),_0x276d22=_0x39ef3f['value'];_0x151e16['model']['change'](()=>{_0x574158['markMultiRangeBlockFormat']([_0x4c55dc,_0x276d22],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x253d2a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5bbdbc=_0x151e16['commands']['get'](_0x253d2a);_0x574158['enableCommand'](_0x253d2a,()=>{const _0x152fcb=_0x42ecf7['getSelectionAffectedTableCells'](_0x151e16['model']['document']['selection'])[0x0],_0x53a71f=_0x152fcb['findAncestor']('table'),{column:_0x6b2ad8,row:_0x20f0e3}=_0x42ecf7['getCellLocation'](_0x152fcb);let _0x1d21ed=[];if('horizontally'==_0x5bbdbc['direction']){const _0x5769ce=_0x42ecf7['createTableWalker'](_0x53a71f,{'startRow':_0x20f0e3,'endRow':_0x20f0e3,'includeAllSlots':!0x0});_0x1d21ed=Array['from'](_0x5769ce)['map'](_0x4cf06b=>_0x4cf06b['cell']);}else{const _0x58023b=_0x42ecf7['createTableWalker'](_0x53a71f,{'column':_0x6b2ad8,'includeAllSlots':!0x0});_0x1d21ed=Array['from'](_0x58023b)['map'](_0x229c6d=>_0x229c6d['cell']);}_0x151e16['model']['change'](_0x36c557=>{_0x574158['markBlockFormat'](_0x36c557['createRangeOn'](_0x152fcb),{'commandName':_0x253d2a,'commandParams':[]},_0x1d21ed,_0x253d2a);});});}_0x574158['descriptionFactory']['registerDescriptionCallback'](_0x2979aa=>{if('formatBlock'!=_0x2979aa['type']&&'formatInline'!=_0x2979aa['type'])return;const {data:_0x3a3691}=_0x2979aa;return _0x3a3691&&'mergeTableCells'==_0x3a3691['commandName']?{'type':'format','content':o(_0x1172c9,'*Merge\x20cells*')}:void 0x0;}),_0x574158['descriptionFactory']['registerDescriptionCallback'](_0x5c53d1=>{if('formatBlock'!=_0x5c53d1['type']&&'formatInline'!=_0x5c53d1['type'])return;const {data:_0x14f45e}=_0x5c53d1;return _0x14f45e?'splitTableCellVertically'==_0x14f45e['commandName']?{'type':'format','content':o(_0x1172c9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x14f45e['commandName']?{'type':'format','content':o(_0x1172c9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x13149f=_0x5eac9f['_acceptFormatSuggestionCallbackFactory']();for(const _0x1fff38 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x574158['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1fff38,'accept',_0x13149f);for(const _0x253101 of['splitTableCellVertically','splitTableCellHorizontally'])_0x574158['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x253101,'accept',_0x13149f);_0x574158['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x53ca05=>{_0x151e16['model']['change'](_0x1cdd19=>{const _0x4708ab=Array['from'](_0x10cf4b['getRanges']())['map'](_0x4402b3=>_0x4da4a9['fromRange'](_0x4402b3));_0x1cdd19['setSelection'](_0x53ca05),_0x151e16['commands']['get']('mergeTableCells')['refresh'](),_0x151e16['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xb5e43c=_0x4708ab['filter'](_0x354699=>'$graveyard'!=_0x354699['root']['rootName']);_0xb5e43c['length']>0x0&&_0x1cdd19['setSelection'](_0xb5e43c);for(const _0xee1fea of _0x4708ab)_0xee1fea['detach']();});});for(const _0x133347 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xe56afc=_0x151e16['commands']['get'](_0x133347);_0xe56afc['on']('set:isEnabled',(_0x2289f1,_0x11d44b,_0x54dde0)=>{if(_0x54dde0){const _0x3d9860=_0x151e16['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4d5617=>_0x4d5617['is']('element','tableCell'));this['_areMergableCells'](_0xe56afc['value'],_0x3d9860)||(_0x2289f1['return']=!0x1,_0x2289f1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x47a572=this['editor']['commands']['get']('mergeTableCells'),_0xa8115b=this['editor']['plugins']['get']('TableUtils');if(!_0x47a572['isEnabled'])return!0x1;const _0x56ce6f=_0xa8115b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x43354d of _0x56ce6f)for(const _0x2e5343 of _0x56ce6f)if(_0x43354d!=_0x2e5343&&!this['_areMergableCells'](_0x43354d,_0x2e5343))return!0x1;return!0x0;}['_areMergableCells'](_0x1212a2,_0x5f27db){const _0x2c418f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf355c8=this['editor']['model']['createRangeOn'](_0x1212a2),_0x5a2f1f=this['editor']['model']['createRangeOn'](_0x5f27db),_0xecbca1=new Set(),_0xa13088=new Set();for(const _0x841709 of _0x2c418f['getSuggestions']())if(('insertion'==_0x841709['type']||'deletion'==_0x841709['type']||'mergeTableCells'==_0x841709['subType'])&&_0x841709['isInContent']){for(const _0x2efb50 of _0x841709['getRanges']())_0x2efb50['containsRange'](_0xf355c8,!0x0)&&_0xecbca1['add'](_0x841709['type']+':'+_0x841709['author']['id']),_0x2efb50['containsRange'](_0x5a2f1f,!0x0)&&_0xa13088['add'](_0x841709['type']+':'+_0x841709['author']['id']);}if(_0xecbca1['size']!=_0xa13088['size'])return!0x1;for(const _0x3d5ae1 of _0xecbca1)if(!_0xa13088['has'](_0x3d5ae1))return!0x1;return!0x0;}}class Ct extends _0x57a03e{static get['requires'](){return[vt];}['afterInit'](){const _0x5b508b=this['editor'];if(!_0x5b508b['plugins']['has']('TableEditing'))return;const _0x53281e=_0x5b508b['locale'],_0x34e4c2=_0x5b508b['plugins']['get']('TrackChangesEditing');_0x34e4c2['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x34e4c2['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x34e4c2['registerBlockAttribute']('headingRows'),_0x34e4c2['registerBlockAttribute']('headingColumns'),_0x34e4c2['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x53281e,'FORMAT_HEADER_ROW')),_0x34e4c2['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x53281e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x7939b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4926d2=this['editor']['plugins']['get']('TableUtils'),_0x40ad89=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x38a597({showActiveMarker:_0x100dde=!0x0,setDataAttribute:_0xbbc0e=!0x0}={}){return(_0xb2bd83,_0x444985,_0x475503)=>{const {type:_0x1b67d4,id:_0x33f769}=_0x7939b0['_splitMarkerName'](_0x444985['markerName']),_0x4aa040=_0x7939b0['getSuggestion'](_0x33f769),_0x5d18a5=_0x4aa040['data'];if('formatBlock'!=_0x4aa040['type']||!_0x5d18a5||'setTableColumnHeader'!=_0x5d18a5['commandName'])return;if(_0x444985['item'])return void _0xb2bd83['stop']();if(!_0x475503['consumable']['consume'](_0x444985['markerRange'],_0xb2bd83['name']))return;const _0x21c191=_0x444985['markerRange']['start']['nodeAfter'],_0x17fe02=_0x444985['markerRange']['end']['nodeBefore'],_0x29c482=_0x21c191['parent']['parent'],{column:_0x5093a3}=_0x4926d2['getCellLocation'](_0x21c191),{column:_0x399e83}=_0x4926d2['getCellLocation'](_0x17fe02);for(let _0x5de68a=_0x5093a3;_0x5de68a<=_0x399e83;_0x5de68a++){const _0x3d1ae9=_0x4926d2['createTableWalker'](_0x29c482,{'column':_0x5de68a,'includeAllSlots':!0x1});for(const _0x5dcc85 of _0x3d1ae9){const _0x13c588=_0x5dcc85['cell'],_0x5857b3=_0x475503['mapper']['toViewElement'](_0x13c588);_0x475503['writer']['addClass']('ck-suggestion-marker-'+_0x1b67d4,_0x5857b3),_0xbbc0e&&_0x475503['writer']['setAttribute']('data-suggestion',_0x33f769,_0x5857b3),_0x475503['mapper']['bindElementToMarker'](_0x5857b3,_0x444985['markerName']),_0x100dde&&(_0x7939b0['activeMarkers']['includes'](_0x444985['markerName'])?_0x475503['writer']['addClass']('ck-suggestion-marker--active',_0x5857b3):_0x475503['writer']['removeClass']('ck-suggestion-marker--active',_0x5857b3));}}};}_0x7939b0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x40ad89),_0x7939b0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x40ad89),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x38a597(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4225c4,_0x121276,_0x3472d4)=>{_0x3472d4['options']['showSuggestionHighlights']&&_0x38a597({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4225c4,_0x121276,_0x3472d4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x21bfca,_0x168694,_0x28805d)=>{const {type:_0x4ace1d,id:_0x2c1e23}=_0x7939b0['_splitMarkerName'](_0x168694['markerName']),_0x523f33=_0x7939b0['getSuggestion'](_0x2c1e23),_0x366c8a=_0x523f33['data'];if('formatBlock'!=_0x523f33['type']||!_0x366c8a||'setTableColumnHeader'!=_0x366c8a['commandName'])return;const _0x2eca18=_0x28805d['mapper']['markerNameToElements'](_0x168694['markerName']);if(_0x2eca18){for(const _0x10de94 of _0x2eca18)_0x28805d['writer']['removeClass']('ck-suggestion-marker-'+_0x4ace1d,_0x10de94),_0x28805d['writer']['removeClass']('ck-suggestion-marker--active',_0x10de94),_0x28805d['writer']['removeAttribute']('data-suggestion',_0x10de94),_0x28805d['mapper']['unbindElementFromMarkerName'](_0x10de94,_0x168694['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x142692=this['editor'],_0xcf6e98=_0x142692['locale'];function _0x5f528f(_0x3e7ad0){return{'type':'format','content':o(_0xcf6e98,'*Format:*\x20%0',_0x3e7ad0)};}_0x142692['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23a081=>{if('formatBlock'!=_0x23a081['type'])return;const {data:_0x21baf5}=_0x23a081;if(_0x21baf5){if('setTableRowHeader'==_0x21baf5['commandName']){const _0x55f2dd=_0x21baf5['commandParams'][0x0]['forceValue'];return _0x5f528f(o(_0xcf6e98,_0x55f2dd?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x21baf5['commandName']){const _0x1369f1=_0x21baf5['commandParams'][0x0]['forceValue'];return _0x5f528f(o(_0xcf6e98,_0x1369f1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x4b7142=>[_0x4b7142,null]));class Nt extends _0x57a03e{static get['requires'](){return[vt];}['afterInit'](){const _0x1eeb5c=this['editor'];if(!_0x1eeb5c['plugins']['has']('TableClipboard'))return;const _0x4ebe57=_0x1eeb5c['plugins']['get']('TrackChangesEditing'),_0x57c89d=_0x1eeb5c['plugins']['get']('TableUtils'),_0x1e2931=_0x1eeb5c['plugins']['get'](vt),_0xacebe7=_0x1eeb5c['plugins']['get']('TableClipboard');_0x1e2931['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1eeb5c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1eeb5c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5b3e8f=null;_0x1eeb5c['model']['on']('insertContent',(_0x270322,_0x4bab57)=>{const [_0x50ad14,_0x324c76]=_0x4bab57,_0x1315f3=_0x4bab57[_0x4bab57['length']-0x1];_0x1315f3&&_0x1315f3['forceDefaultExecution']||_0x4ebe57['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x222133,_0x2a2f44,_0x12923b,_0x3eda32,_0x572334){if(_0x2a2f44&&!_0x2a2f44['is']('documentSelection'))return!0x1;const _0x24211a=_0x572334['getTableIfOnlyTableInContent'](_0x222133,_0x12923b);if(!_0x24211a||!Ue(_0x24211a,void 0x0,_0x3eda32))return!0x1;const _0x4b0a78=_0x3eda32['getSelectionAffectedTableCells'](_0x12923b['document']['selection']);if(!_0x4b0a78['length'])return!0x1;const _0x23ec17=_0x4b0a78[0x0]['findAncestor']('table'),_0x671d7f=_0x3eda32['getRowIndexes'](_0x4b0a78),_0x3f617b=_0x3eda32['getColumnIndexes'](_0x4b0a78),_0x234ea2={'startRow':_0x671d7f['first'],'endRow':_0x671d7f['last'],'startColumn':_0x3f617b['first'],'endColumn':_0x3f617b['last']};return 0x1==_0x4b0a78['length']&&(_0x234ea2['endRow']+=_0x3eda32['getRows'](_0x24211a)-0x1,_0x234ea2['endColumn']+=_0x3eda32['getColumns'](_0x24211a)-0x1),Ue(_0x23ec17,_0x234ea2,_0x3eda32);}(_0x50ad14,_0x324c76,_0x1eeb5c['model'],_0x57c89d,_0xacebe7)&&(_0x270322['stop'](),_0x5b3e8f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1eeb5c['model']['change'](()=>{_0x1eeb5c['model']['insertContent'](_0x4bab57[0x0],_0x4bab57[0x1],_0x4bab57[0x2],{'forceDefaultExecution':!0x0});const _0x2ac72a=_0x10a187(),{rowInsertionRanges:_0x1f25ce,columnInsertionRanges:_0x3c0ad1,insertionRanges:_0x341839,deletionRanges:_0x2b9902,cells:_0x4c1342}=_0x5b3e8f;_0x1f25ce['length']&&_0x4ebe57['markMultiRangeInsertion'](_0x1f25ce,'tablePasteRow',{'tablePasteChainId':_0x2ac72a}),_0x3c0ad1['length']&&_0x4ebe57['markMultiRangeInsertion'](_0x3c0ad1,'tablePasteColumn',{'tablePasteChainId':_0x2ac72a}),_0x341839['length']&&(_0x4ebe57['markMultiRangeInsertion'](_0x341839,'tablePaste',{'tablePasteChainId':_0x2ac72a,'skipNestingCheck':!0x0}),_0x341839['forEach'](_0x30b208=>_0x30b208['detach']?.())),_0x2b9902['length']&&(_0x4ebe57['markMultiRangeDeletion'](_0x2b9902,'tablePaste',{'tablePasteChainId':_0x2ac72a,'skipNestingCheck':!0x0}),_0x2b9902['forEach'](_0x530324=>_0x530324['detach']?.()));const _0x5aa541=_0x4ebe57['markMultiRangeBlockFormat'](_0x4c1342['map'](({element:_0x3bad33})=>_0x3bad33),{'formatGroupId':_0x10a187()},[],'tablePasteCell',{'tablePasteChainId':_0x2ac72a});if(_0x5aa541){const _0x3cc46c=_0x5aa541['getMarkers'](),_0x5c50dc=[];for(const {element:_0xc70600,attributes:_0x43130c}of _0x4c1342){if(!_0x43130c)continue;const _0x22e958=_0x1eeb5c['model']['createRangeOn'](_0xc70600),_0x207de0=_0x3cc46c['find'](_0x1a9fda=>_0x1a9fda['getRange']()['isEqual'](_0x22e958));_0x207de0&&_0x5c50dc['push']([_0x207de0['name'],_0x43130c]);}_0x5c50dc['length']&&_0x5aa541['setAttribute']('markerAttributes',Object['fromEntries'](_0x5c50dc));}_0x5b3e8f=null;}));},{'priority':_0x458afa['high']+0xa}),_0x1eeb5c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x56b0f9,_0x534d72)=>{const [_0x37ba2f,_0x174f3a,,_0x2a3cab]=_0x534d72;if(!_0x5b3e8f)return;_0x56b0f9['stop']();const _0x5459f2=_0x37ba2f['cell'],_0x13416c=_0x174f3a,_0x1a631a=Oe(_0x5459f2),_0x34a450=Oe(_0x13416c);_0x56b0f9['return']=_0x5459f2;let _0x36ba0c=null,_0x9491fe=null;if(_0x34a450||_0x1a631a){if(_0x1a631a&&!_0x34a450){_0x2a3cab['remove'](_0x5459f2['getChild'](0x0));for(const _0x9fc3 of Array['from'](_0x13416c['getChildren']()))_0x2a3cab['insert'](_0x9fc3,_0x5459f2,'end');const _0x2f5d18=_0x5b3e8f['rowInsertionIndexes']['includes'](_0x37ba2f['row']),_0x485b44=_0x5b3e8f['columnInsertionIndexes']['includes'](_0x37ba2f['column']);_0x2f5d18||_0x485b44||(_0x36ba0c=_0x4da4a9['fromRange'](_0x2a3cab['createRangeIn'](_0x5459f2)));}else _0x34a450&&!_0x1a631a&&(_0x9491fe=_0x2a3cab['createRangeIn'](_0x5459f2));}else{const _0x19c30c=_0x2a3cab['createElement']('tableCellSuggestion'),_0x28d6cb=_0x2a3cab['createElement']('tableCellSuggestion');_0x2a3cab['wrap'](_0x2a3cab['createRangeIn'](_0x5459f2),_0x28d6cb),_0x2a3cab['insert'](_0x19c30c,_0x5459f2,0x0);for(const _0xb43871 of Array['from'](_0x13416c['getChildren']()))_0x2a3cab['insert'](_0xb43871,_0x19c30c,'end');_0x36ba0c=_0x4da4a9['fromRange'](_0x2a3cab['createRangeOn'](_0x19c30c)),_0x9491fe=_0x4da4a9['fromRange'](_0x2a3cab['createRangeOn'](_0x28d6cb));}const _0x1aaaa7=Array['from'](_0x13416c['getAttributes']())['filter'](([_0x276251])=>Be['includes'](_0x276251));_0x5b3e8f['cells']['push']({'element':_0x5459f2,'attributes':_0x1aaaa7['length']?Object['fromEntries'](_0x1aaaa7):null}),_0x36ba0c&&_0x5b3e8f['insertionRanges']['push'](_0x36ba0c),_0x9491fe&&_0x5b3e8f['deletionRanges']['push'](_0x9491fe);},{'priority':'high'}),_0x57c89d['on']('insertColumns',(_0x2c6092,_0x5bb941)=>{const [_0x620563,_0x2001ea={}]=_0x5bb941;if(!_0x5b3e8f)return;const _0x526f9a=_0x2001ea['at']||0x0,_0x4837c1=_0x2001ea['columns']||0x1;_0x5b3e8f['columnInsertionIndexes']=new Array(_0x4837c1)['fill'](_0x526f9a)['map']((_0x425fe3,_0x3a4c5c)=>_0x425fe3+_0x3a4c5c);for(const {cell:_0x3971d6}of _0x57c89d['createTableWalker'](_0x620563,{'startColumn':_0x526f9a,'endColumn':_0x526f9a+_0x4837c1-0x1}))_0x5b3e8f['columnInsertionRanges']['push'](_0x1eeb5c['model']['createRangeOn'](_0x3971d6));},{'priority':'low'}),_0x57c89d['on']('insertRows',(_0x265b40,_0x147100)=>{const [_0x277bff,_0x104397={}]=_0x147100;if(!_0x5b3e8f)return;const _0x498ede=_0x104397['at']||0x0,_0x55e536=_0x104397['rows']||0x1;_0x5b3e8f['rowInsertionIndexes']=new Array(_0x55e536)['fill'](_0x498ede)['map']((_0x31f71f,_0x355e69)=>_0x31f71f+_0x355e69);for(const {cell:_0x4b45ce}of _0x57c89d['createTableWalker'](_0x277bff,{'startRow':_0x498ede,'endRow':_0x498ede+_0x55e536-0x1}))_0x5b3e8f['rowInsertionRanges']['push'](_0x1eeb5c['model']['createRangeOn'](_0x4b45ce));},{'priority':'low'}),_0x4ebe57['descriptionFactory']['registerDescriptionCallback'](_0x1bac87=>{if(_0x1bac87['subType']&&_0x1bac87['subType']['startsWith']('tablePaste'))return _0x1bac87['previous']?{}:{'type':'insertion','content':o(_0x1eeb5c['locale'],'*Replace\x20table\x20cells*')};});const _0x199d03=()=>!0x1;for(const _0x38063e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4ebe57['_suggestionFactory']['registerCustomCallback']('insertion',_0x38063e,'join',_0x199d03),_0x4ebe57['_suggestionFactory']['registerCustomCallback']('deletion',_0x38063e,'join',_0x199d03),_0x4ebe57['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x38063e,'join',_0x199d03);_0x4ebe57['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x199d03),_0x4ebe57['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4cf9af,_0x2fadc9,_0x1f387b)=>{const _0x566d02=_0x4cf9af['map'](_0x165a5b=>_0x165a5b['getContainedElement']())['filter'](_0x17ef41=>_0x17ef41),_0x1fa94a=new Map(_0x566d02['map'](_0x237ede=>[_0x237ede,null]));if(_0x5b3e8f){for(const {element:_0x24c3df,attributes:_0x57f5a6}of _0x5b3e8f['cells'])_0x57f5a6&&_0x1fa94a['set'](_0x24c3df,_0x57f5a6);}else{if(_0x1f387b&&_0x1f387b['markerAttributes'])for(const [_0x320991,_0x11c347]of Object['entries'](_0x1f387b['markerAttributes'])){const _0x2e700d=_0x1eeb5c['model']['markers']['get'](_0x320991),_0x41a210=_0x2e700d?_0x2e700d['getRange']()['getContainedElement']():null;_0x41a210&&_0x1fa94a['set'](_0x41a210,_0x11c347);}}_0x1eeb5c['model']['change'](_0x1bd6a1=>{for(const [_0x596fda,_0x4c47c8]of _0x1fa94a)_0x1bd6a1['setAttributes']({...xe,..._0x4c47c8},_0x596fda);});});const _0xd34f3c=(_0x4755b8,_0x45e237)=>{_0x4ebe57['_suggestionFactory']['registerCustomCallback'](_0x4755b8,'tablePaste',_0x45e237,(_0x5a25a8,_0x3526f5,_0x1fc72d)=>{_0x1eeb5c['model']['change'](_0x3cdb3c=>{const _0x5ca3f5=[];for(const _0x3e7b45 of _0x5a25a8){const _0x559ec4=_0x3e7b45['start']['nodeAfter'];_0x559ec4['is']('element','tableCellSuggestion')&&_0x5ca3f5['push'](_0x559ec4);}_0x4ebe57['_suggestionFactory']['getSuggestionCallback'](_0x4755b8,null,_0x45e237)(_0x5a25a8,_0x3526f5,_0x1fc72d);for(const _0xd983fc of _0x5ca3f5)'$graveyard'!=_0xd983fc['root']['rootName']&&_0x3cdb3c['unwrap'](_0xd983fc);});});};_0xd34f3c('insertion','accept'),_0xd34f3c('insertion','discard'),_0xd34f3c('deletion','accept'),_0xd34f3c('deletion','discard'),_0x4ebe57['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x294591=>{const _0x1f8653=_0x294591['map'](_0x5d7e2b=>_0x5d7e2b['getContainedElement']()),_0x57cf4e=_0x1f8653[0x0]['findAncestor']('table'),{minRow:_0xaa7254,maxRow:_0x43bb66}=_0x1e2931['_getCoordsForCells'](_0x1f8653);_0x57c89d['removeRows'](_0x57cf4e,{'at':_0xaa7254,'rows':_0x43bb66-_0xaa7254+0x1});}),_0x4ebe57['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x640997=>{const _0x5ccded=_0x640997['map'](_0x2c2f4f=>_0x2c2f4f['getContainedElement']()),_0x487c70=_0x5ccded[0x0]['findAncestor']('table'),{minColumn:_0x3f8147,maxColumn:_0x2e4622}=_0x1e2931['_getCoordsForCells'](_0x5ccded);_0x57c89d['removeColumns'](_0x487c70,{'at':_0x3f8147,'columns':_0x2e4622-_0x3f8147+0x1});});const _0x4d4620=(_0xc18785,_0x5626ab)=>{if(!_0x5626ab['subType']||!_0x5626ab['subType']['startsWith']('tablePaste'))return;const _0x33b96b=_0x5626ab['attributes']['tablePasteChainId'],_0x3a1813=_0x4ebe57['getSuggestions']()['filter'](_0x1eb152=>_0x1eb152['isInContent']&&_0x1eb152['attributes']&&_0x1eb152['attributes']['tablePasteChainId']==_0x33b96b);_0x3a1813['length']&&_0x5626ab['getAllAdjacentSuggestions']()['length']!=_0x3a1813['length']&&_0x3a1813['reduce']((_0x324783,_0x5a08f1)=>(_0x324783['next']=_0x5a08f1,_0x5a08f1['previous']=_0x324783,_0x5a08f1));};function _0x13ead5(_0x9fa2ba,_0x354dad=!0x0){const {id:_0x4dd99a,authorId:_0x541206}=_0x4ebe57['_splitMarkerName'](_0x9fa2ba['markerName']),_0x2d2eeb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x157401=_0x4ebe57['activeMarkers']['includes'](_0x9fa2ba['markerName']);return _0x157401&&_0x2d2eeb['push']('ck-suggestion-marker--active'),{'classes':_0x2d2eeb,'attributes':{'data-suggestion':_0x4dd99a,'data-author-id':_0x541206},'priority':_0x157401&&_0x354dad?0xbc2:0xbb8};}_0x4ebe57['on']('suggestionLoaded',_0x4d4620,{'priority':'high'}),_0x4ebe57['on']('suggestionUnloaded',_0x4d4620,{'priority':'high'}),_0x1eeb5c['model']['document']['registerPostFixer'](()=>{let _0x3919e9=!0x1;const _0x44f0eb=Array['from'](_0x1eeb5c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a1371,data:_0x17bf54}of _0x44f0eb){const {group:_0x15a70e,type:_0x5f3ac7,id:_0x3cc8c9}=_0x4ebe57['_splitMarkerName'](_0x2a1371);if('suggestion'!=_0x15a70e||'deletion'!=_0x5f3ac7||_0x17bf54['oldRange'])continue;if(!_0x4ebe57['hasSuggestion'](_0x3cc8c9))continue;const _0x20191c=_0x4ebe57['getSuggestion'](_0x3cc8c9)['getRanges'](),_0x48192b=_0x1eeb5c['plugins']['get']('Users')['me'];for(const _0x367c5f of _0x4ebe57['getSuggestions']()){if(!_0x367c5f['isInContent']||_0x367c5f['author']!=_0x48192b)continue;if('formatBlock'!=_0x367c5f['type']||'tablePasteCell'!=_0x367c5f['subType'])continue;if(_0x367c5f['getRanges']()['every'](_0x5ef39e=>_0x20191c['some'](_0x10dd92=>_0x10dd92['containsRange'](_0x5ef39e,!0x0)))){for(const _0x54df51 of _0x367c5f['getAllAdjacentSuggestions']())_0x54df51['isInContent']&&(_0x54df51['discard'](),_0x3919e9=!0x0);}}}return _0x3919e9;}),_0x1eeb5c['model']['document']['registerPostFixer'](_0x340be9=>{const _0x399a25=_0x1eeb5c['commands']['get']('redo');if(!_0x399a25||!_0x399a25['_createdBatches']['has'](_0x340be9['batch']))return!0x1;let _0x5317f4=!0x1;const _0x197042=_0x1eeb5c['plugins']['get']('Users')['me'],_0xa83414=_0x1eeb5c['model']['document']['differ']['getChanges'](),_0x24b42a=Array['from'](_0x1eeb5c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1886eb,data:_0x13c2b7})=>{const {group:_0x2ec68d,subType:_0x924576,authorId:_0x41281e}=_0x4ebe57['_splitMarkerName'](_0x1886eb);return'suggestion'==_0x2ec68d&&'tablePaste'==_0x924576&&_0x41281e==_0x197042['id']&&!_0x13c2b7['oldRange'];});for(const _0x29a42a of _0xa83414){if('insert'!=_0x29a42a['type']||'tableCellSuggestion'!=_0x29a42a['name']||0x1!=_0x29a42a['length'])continue;const _0xaf943e=_0x340be9['createRange'](_0x29a42a['position'],_0x29a42a['position']['getShiftedBy'](0x1));if(!_0x24b42a['find'](({data:_0x46bbe3})=>_0x46bbe3['newRange']['isEqual'](_0xaf943e))){for(const {name:_0x118631,data:_0x2a7997}of _0x24b42a)if(_0xaf943e['containsRange'](_0x2a7997['newRange'])){_0x340be9['updateMarker'](_0x118631,{'range':_0xaf943e}),_0x5317f4=!0x0;break;}}}return _0x5317f4;}),_0x1eeb5c['model']['document']['registerPostFixer'](_0x38e367=>{let _0x5163a8=!0x1;const _0x1a14ac=_0x1eeb5c['plugins']['get']('Users')['me'],_0xfd9f9e=_0x4ebe57['getSuggestions']()['filter'](_0x5c2e2f=>_0x5c2e2f['isInContent']&&_0x5c2e2f['author']==_0x1a14ac),_0x287053=new Set(),_0x3d6f09=new Set();for(const _0x87f5ad of _0xfd9f9e)if('tablePaste'==_0x87f5ad['subType'])for(const _0x40166c of _0x87f5ad['getMarkers']()){const _0x1303c3=_0x40166c['getRange']()['getContainedElement']();if(_0x1303c3){if(_0x1303c3['is']('element','tableCellSuggestion')&&Oe(_0x1303c3)){_0x87f5ad['removeMarker'](_0x40166c['name']),_0x287053['add'](_0x1303c3),_0x5163a8=!0x0;const _0x4b9e1b=_0x1303c3['nextSibling'],_0x7818b4=_0x1303c3['previousSibling'],_0xd67ca3=_0x4b9e1b&&_0x4b9e1b['is']('element','tableCellSuggestion'),_0x1a4def=_0x7818b4&&_0x7818b4['is']('element','tableCellSuggestion');_0xd67ca3&&!_0x287053['has'](_0x4b9e1b)&&_0x3d6f09['add'](_0x4b9e1b),_0x1a4def&&!_0x287053['has'](_0x7818b4)&&_0x3d6f09['add'](_0x7818b4);}else _0x1303c3['is']('element','paragraph')&&_0x1303c3['isEmpty']&&(_0x87f5ad['removeMarker'](_0x40166c['name']),_0x5163a8=!0x0);}}else{if('tablePasteCell'==_0x87f5ad['subType']){if(!_0x87f5ad['attributes']||!_0x87f5ad['attributes']['tablePasteChainId'])continue;const _0x46c001=_0x87f5ad['attributes']['markerAttributes'];if(_0x46c001&&Object['keys'](_0x46c001)['length'])continue;const _0x25b98c=_0x87f5ad['attributes']['tablePasteChainId'];let _0x58409e=!0x0,_0x469bb5=!0x0;for(const _0x347ee1 of _0xfd9f9e)if(_0x347ee1['subType']&&_0x347ee1['subType']['startsWith']('tablePaste')){if(!_0x347ee1['attributes']['tablePasteChainId']){_0x469bb5=!0x1;break;}if(_0x347ee1['id']!=_0x87f5ad['id']&&_0x347ee1['attributes']['tablePasteChainId']==_0x25b98c){_0x58409e=!0x1;break;}}_0x469bb5&&_0x58409e&&(_0x87f5ad['removeMarkers'](),_0x5163a8=!0x0);}}for(const _0x330a2d of _0x287053)_0x38e367['remove'](_0x330a2d);for(const _0x181f9a of _0x3d6f09)_0x38e367['unwrap'](_0x181f9a);return _0x5163a8;}),_0x1eeb5c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x232c0f=>_0x13ead5(_0x232c0f),'converterPriority':'high'}),_0x1eeb5c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x28cfc5,_0x13cb7c)=>_0x13cb7c['options']['showSuggestionHighlights']?_0x13ead5(_0x28cfc5,!0x1):null,'converterPriority':'high'});const _0x58c578=_0x1eeb5c['editing']['view'];this['listenTo'](_0x58c578['document'],'clipboardOutput',(_0x5923fa,_0x4e2159)=>{const _0x1097b1=[];for(const _0x4b78d9 of _0x58c578['createRangeIn'](_0x4e2159['content'])['getItems']())_0x4b78d9['is']('element','suggestion-td')&&_0x1097b1['push'](_0x4b78d9);_0x58c578['change'](_0x113bd4=>{for(const _0x4786ed of _0x1097b1)_0x113bd4['move'](_0x113bd4['createRangeIn'](_0x4786ed),_0x113bd4['createPositionBefore'](_0x4786ed)),_0x113bd4['remove'](_0x4786ed);});});}}function Oe(_0x453803){if(_0x453803['isEmpty'])return!0x0;const _0x630321=_0x453803['getChild'](0x0);return _0x630321['is']('element','paragraph')&&_0x630321['isEmpty'];}function Ue(_0x6c1c8c,_0x52b89a={},_0xcb37ad){for(const {isAnchor:_0x31cd01,cellHeight:_0x39964c,cellWidth:_0x4160a7}of _0xcb37ad['createTableWalker'](_0x6c1c8c,{'includeAllSlots':!0x0,..._0x52b89a}))if(!_0x31cd01||0x1!=_0x39964c||0x1!=_0x4160a7)return!0x1;return!0x0;}class Dt extends _0x57a03e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x190c2c=this['editor']['plugins']['get']('TrackChangesEditing');_0x190c2c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x190c2c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x190c2c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x190c2c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x190c2c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x190c2c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5798a5,_0x590443){const _0x47b2dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48a5b9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2021e1=_0x590443['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x123837=_0x48a5b9['getColumnGroupElement'](_0x2021e1);let _0x5d2220=_0x123837?_0x48a5b9['getTableColumnsWidths'](_0x123837):null,_0x12d6db=_0x2021e1['getAttribute']('tableWidth')||null;const _0x994d63=_0x590443['tableWidth']||_0x12d6db,_0x2c93d2=_0x590443['columnWidths']||_0x5d2220,_0x277285=this['editor']['plugins']['get']('Users')['me'];for(const _0x4e870d of _0x47b2dc['getSuggestions']()){const _0xfa7954=_0x4e870d['getContainedElement']();if('resizeTable'===_0x4e870d['subType']&&_0xfa7954===_0x2021e1){_0x4e870d['author']!==_0x277285&&_0x4e870d['discard']();const _0x46b9f4=_0x4e870d['data']['commandParams'];_0x12d6db=_0x46b9f4[0x0]['tableWidth'],_0x5d2220=_0x46b9f4[0x0]['columnWidths'];break;}}_0x5798a5({'table':_0x2021e1,'tableWidth':_0x994d63,'columnWidths':_0x2c93d2}),_0x47b2dc['markBlockFormat'](_0x2021e1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x12d6db,'columnWidths':_0x5d2220}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2b8882){if('formatBlock'!=_0x2b8882['type']&&'formatInline'!=_0x2b8882['type'])return;const {data:_0x588bde}=_0x2b8882;if(_0x588bde&&'resizeTable'===_0x588bde['formatGroupId']){const _0x594d2a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x594d2a)};}}}class Mt extends _0x57a03e{['afterInit'](){const _0x4d09ff=this['editor'];_0x4d09ff['plugins']['has']('Template')&&_0x4d09ff['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x57a03e{['afterInit'](){const _0x352f31=this['editor'];if(!_0x352f31['commands']['get']('insertTableOfContents'))return;_0x352f31['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x598c05=_0x352f31['plugins']['get']('TrackChangesEditing'),_0x44f844=_0x352f31['locale'];_0x598c05['descriptionFactory']['registerElementLabel']('tableOfContents',_0x552797=>o(_0x44f844,'ELEMENT_TABLE_OF_CONTENTS',_0x552797));}}class Bt extends _0x57a03e{['afterInit'](){const _0x55b37c=this['editor'];if(!_0x55b37c['plugins']['has']('Title'))return;const _0x2e9874=_0x55b37c['plugins']['get']('TrackChangesEditing');_0x2e9874['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x55b37c['locale'],'ELEMENT_TITLE')),_0x55b37c['model']['document']['registerPostFixer'](_0x302351=>{let _0x51d399=!0x1;const _0xb1a708=Array['from'](_0x55b37c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45f0d9,data:_0x15b96c}of _0xb1a708){const {group:_0x55af5d}=_0x2e9874['_splitMarkerName'](_0x45f0d9);if('suggestion'!==_0x55af5d||!_0x15b96c['newRange'])continue;const _0x44778b=_0x15b96c['newRange'],_0x2083bb=_0x44778b['end']['nodeBefore'];if(!_0x2083bb||!_0x2083bb['is']('element','title-content'))continue;if(!_0x44778b['start']['isTouching'](_0x44778b['end']))continue;const _0x385080=_0x55b37c['model']['schema']['getNearestSelectionRange'](_0x44778b['end'],'forward');if(_0x385080&&_0x385080['isCollapsed']){const _0x421c30=_0x302351['createRange'](_0x44778b['start'],_0x385080['start']);_0x421c30['isEqual'](_0x44778b)||(_0x302351['updateMarker'](_0x45f0d9,{'range':_0x421c30}),_0x51d399=!0x0);}_0x51d399||(_0x302351['removeMarker'](_0x45f0d9),_0x51d399=!0x0);}return _0x51d399;});}}class Ot extends _0x57a03e{['afterInit'](){const _0x58f271=this['editor'],_0xfe7b77=_0x58f271['plugins']['get']('TrackChangesEditing');_0x58f271['plugins']['has']('Uploadcare')&&(_0xfe7b77['enableCommand']('uploadcare'),_0x58f271['plugins']['has']('UploadcareImageEdit')&&(_0xfe7b77['enableCommand']('uploadcareImageEdit'),_0xfe7b77['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xfe7b77['registerBlockAttribute']('uploadcareImageId'),_0xfe7b77['descriptionFactory']['registerDescriptionCallback'](_0x3b3eb0=>{if('attribute'!=_0x3b3eb0['type'])return;const {data:_0x4422cb}=_0x3b3eb0;return _0x4422cb&&'uploadcareImageId'==_0x4422cb['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x57a03e{['afterInit'](){const _0x36288f=this['editor'],_0x5e7286=_0x36288f['plugins']['get']('TrackChangesEditing');_0x36288f['plugins']['has']('UndoEditing')&&(_0x5e7286['enableCommand']('undo'),_0x5e7286['enableCommand']('redo'));}}class Tt extends _0x57a03e{static get['requires'](){return[vt];}['afterInit'](){const _0x310522=this['editor'];if(!_0x310522['plugins']['has']('TableCaptionEditing'))return;_0x310522['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x57a03e{['tableProperties'];['tableCellProperties'];constructor(_0x5979e0){super(_0x5979e0),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 _0x69066a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5bab24 of this['tableProperties'])_0x69066a['enableCommand'](_0x5bab24,(_0x1473dd,_0x8160fb)=>{const _0xe0eccd=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5bab24,[_0xe0eccd],this['tableProperties'],'tableProperties',_0x1473dd,_0x8160fb);});_0x69066a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x69066a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x69066a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x314b7c,_0x32342d)=>this['handleDiscardAction'](this['tableProperties'],_0x314b7c,_0x32342d)),_0x69066a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x14bb68 of this['tableCellProperties'])_0x69066a['enableCommand'](_0x14bb68,(_0x1844fe,_0x2bbfeb)=>{const _0x2d6b83=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x14bb68,_0x2d6b83,this['tableCellProperties'],'tableCellProperties',_0x1844fe,_0x2bbfeb);});_0x69066a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x69066a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x69066a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xd9169e,_0x3993c1)=>this['handleDiscardAction'](this['tableCellProperties'],_0xd9169e,_0x3993c1)),_0x69066a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x69066a['descriptionFactory']['registerDescriptionCallback'](_0x4ce4a9=>this['handleSuggestionDescription'](_0x4ce4a9));}['_handlePropertyChange'](_0x5c63ba,_0x4b96f0,_0x371c3f,_0x1b0ce3,_0x2f4aa9,_0x357b48){const _0x2e3cf6=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x357b48['batch'],()=>{for(const _0x210397 of _0x4b96f0){if(this['_getSuggestion'](_0x210397,_0x1b0ce3))_0x2f4aa9(_0x357b48);else{const _0x5901fe={};for(const _0x177ed0 of _0x371c3f){const _0x5e0258=_0x210397['getAttribute'](_0x177ed0);void 0x0!==_0x5e0258&&(_0x5901fe[_0x177ed0]=_0x5e0258);}_0x2f4aa9(_0x357b48),_0x2e3cf6['markBlockFormat'](_0x210397,{'commandParams':[_0x5901fe]},[],_0x1b0ce3);}}});}['handleDiscardAction'](_0x374404,_0x286453,_0x23f997){const _0x15d791=_0x286453[0x0]['start']['nodeAfter'],_0x3cc12b=_0x23f997['commandParams'][0x0];this['editor']['model']['change'](_0x3b5739=>{for(const _0x3584ab of _0x374404)void 0x0!==_0x3cc12b[_0x3584ab]?_0x3b5739['setAttribute'](_0x3584ab,_0x3cc12b[_0x3584ab],_0x15d791):_0x3b5739['removeAttribute'](_0x3584ab,_0x15d791);});}['handleSuggestionDescription'](_0xe9b68c){if(_0xe9b68c['data'])switch(_0xe9b68c['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'](_0x266eaa,_0x18ddf8){const _0x25849e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x465531 of _0x25849e['getSuggestions']({'skipNotAttached':!0x0})){const _0x470200=_0x465531['getContainedElement']();if(_0x465531['subType']===_0x18ddf8&&_0x470200===_0x266eaa)return _0x465531;}return null;}}const m='$elementName';class p extends _0x57a03e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x25a128,_0x241f6a,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f9139){super(_0x3f9139),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x37fbc1,_0x5437d2,_0x2d1671,_0x2adc9f)=>{this['_model']['change'](()=>{for(const _0xe66ac6 of[..._0x2adc9f,..._0x2d1671])this['_model']['markers']['has'](_0xe66ac6)&&_0x3f9139['editing']['reconvertMarker'](_0xe66ac6);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3f9139['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(),_0x3f9139['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3f9139['config']['get']('trackChanges.trackFormatChanges'),_0x3f9139['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3f9139['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3f9139,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x903fdd=this['editor'],_0x47ab39=(_0x31eaef,_0x41b332)=>{if('attribute'!=_0x31eaef)return'ck-suggestion-marker-'+_0x31eaef;const _0x7f492c=_0x41b332['split']('|')[0x0];return this['_isBlockAttribute'](_0x7f492c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x903fdd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1edb64=>{const {id:_0x3b13a5,authorId:_0xd8ca70,type:_0x5ed216,subType:_0x313417}=this['_splitMarkerName'](_0x1edb64['markerName']),_0x1720c6=['ck-suggestion-marker',_0x47ab39(_0x5ed216,_0x313417)];let _0x5e41f2=0xbb8;return this['activeMarkers']['includes'](_0x1edb64['markerName'])&&(_0x1720c6['push']('ck-suggestion-marker--active'),_0x5e41f2=0xbc2),'deletion'==_0x5ed216&&(_0x5e41f2+=0x5),{'classes':_0x1720c6,'attributes':{'data-suggestion':_0x3b13a5,'data-author-id':_0xd8ca70},'priority':_0x5e41f2};}}),_0x903fdd['conversion']['for']('dataDowncast')['add'](_0x18867e=>{_0x18867e['on']('addMarker:suggestion',(_0x2957f7,_0xfe0ece,_0x5a79b4)=>{if(!_0x5a79b4['options']['showSuggestionHighlights'])return;const _0x272af9=_0xfe0ece['item'];if(!_0x272af9)return;const _0x442afe=_0x5a79b4['mapper']['toViewElement'](_0x272af9);_0x903fdd['model']['schema']['isObject'](_0x272af9)&&_0x442afe&&!_0x442afe['getCustomProperty']('widget')&&_0x442afe['is']('containerElement')&&_0x4110e5(_0x442afe,_0x5a79b4['writer']);},{'priority':'high'});}),_0x903fdd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2f2e90,_0x15b9dd)=>{if(!_0x15b9dd['options']['showSuggestionHighlights'])return null;const {type:_0x268e03,subType:_0x4f1a8c}=this['_splitMarkerName'](_0x2f2e90['markerName']);return{'classes':['ck-suggestion-marker',_0x47ab39(_0x268e03,_0x4f1a8c)],'priority':0xbb8};}});const _0x6c77ca=({showActiveMarkers:_0x360dcc=!0x0,isAttributeSuggestion:_0x3d7cc0=!0x1}={})=>(_0x6f6ddb,_0x1d87f2,_0x101925)=>{if(!_0x1d87f2['item'])return;const {id:_0x188493,authorId:_0x168cee}=this['_splitMarkerName'](_0x1d87f2['markerName']);if(_0x3d7cc0){const _0x5c97eb=this['_suggestions']['get'](_0x188493),_0x9ab4e9=this['_getAttributeKey'](_0x5c97eb);if(!this['_isBlockAttribute'](_0x9ab4e9))return;}if(_0x1d87f2['item']['is']('selection'))return void _0x101925['consumable']['consume'](_0x1d87f2['item'],_0x6f6ddb['name']);const _0x197859=_0x101925['mapper']['toViewElement'](_0x1d87f2['item']);if(_0x1d87f2['item']['is']('element')&&_0x903fdd['model']['schema']['isBlock'](_0x1d87f2['item'])&&!_0x197859['getCustomProperty']('addHighlight')){_0x101925['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x197859),_0x101925['writer']['setAttribute']('data-suggestion',_0x188493,_0x197859),_0x101925['writer']['setAttribute']('data-author-id',_0x168cee,_0x197859),_0x101925['mapper']['bindElementToMarker'](_0x197859,_0x1d87f2['markerName']),_0x360dcc&&(this['activeMarkers']['includes'](_0x1d87f2['markerName'])?_0x101925['writer']['addClass']('ck-suggestion-marker--active',_0x197859):_0x101925['writer']['removeClass']('ck-suggestion-marker--active',_0x197859));for(const _0x42e725 of _0x903fdd['model']['createRangeIn'](_0x1d87f2['item'])['getItems']())_0x101925['consumable']['consume'](_0x42e725,_0x6f6ddb['name']);_0x101925['consumable']['consume'](_0x1d87f2['item'],_0x6f6ddb['name']);}};_0x903fdd['conversion']['for']('dataDowncast')['add'](_0x58da38=>{_0x58da38['on']('addMarker:suggestion:formatBlock',(_0x275362,_0x32f1e2,_0x5d31a4)=>{_0x5d31a4['options']['showSuggestionHighlights']&&_0x6c77ca({'showActiveMarkers':!0x1})(_0x275362,_0x32f1e2,_0x5d31a4);},{'priority':'highest'});}),_0x903fdd['conversion']['for']('dataDowncast')['add'](_0x43f8b3=>{_0x43f8b3['on']('addMarker:suggestion:attribute',(_0x401308,_0xf43946,_0x4d4682)=>{_0x4d4682['options']['showSuggestionHighlights']&&_0x6c77ca({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x401308,_0xf43946,_0x4d4682);},{'priority':'highest'});}),_0x903fdd['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xfec45a,_0x4cc0c3)=>_0x4cc0c3['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xfec45a['substr'](0xb)}}),_0x903fdd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x559e34,{writer:_0x311813})=>{let _0x23651b='suggestion:'+_0x559e34['getAttribute']('suggestion-type')+':'+_0x559e34['getAttribute']('id');return _0x559e34['getAttribute']('marker-count')&&(_0x23651b+=':'+_0x559e34['getAttribute']('marker-count')),_0x311813['createElement']('$marker',{'data-name':_0x23651b});}}),_0x903fdd['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x903fdd['conversion']['for']('editingDowncast')['add'](_0x30e1b7=>{_0x30e1b7['on']('addMarker:suggestion:formatBlock',_0x6c77ca(),{'priority':'high'});}),_0x903fdd['conversion']['for']('editingDowncast')['add'](_0x187f35=>{_0x187f35['on']('addMarker:suggestion:attribute',_0x6c77ca({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x903fdd['conversion']['for']('editingDowncast')['add'](_0x304f65=>{_0x304f65['on']('removeMarker:suggestion:formatBlock',(_0x12be49,_0xec66e,_0x55ab10)=>{const _0x3e66a6=_0x55ab10['mapper']['markerNameToElements'](_0xec66e['markerName']);if(_0x3e66a6){for(const _0x406730 of _0x3e66a6)_0x406730['getCustomProperty']('addHighlight')||(_0x55ab10['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x406730),_0x55ab10['writer']['removeAttribute']('data-suggestion',_0x406730),_0x55ab10['writer']['removeAttribute']('data-author-id',_0x406730),_0x55ab10['mapper']['unbindElementFromMarkerName'](_0x406730,_0xec66e['markerName']));}},{'priority':'high'});}),_0x903fdd['conversion']['for']('editingDowncast')['add'](_0x49d502=>{_0x49d502['on']('removeMarker:suggestion:attribute',(_0x43b14b,_0x26a4c3,_0xe819d9)=>{const _0x3ad299=_0xe819d9['mapper']['markerNameToElements'](_0x26a4c3['markerName']);if(!_0x3ad299)return;const {id:_0x38edbc}=this['_splitMarkerName'](_0x26a4c3['markerName']),_0xba2616=this['_suggestions']['get'](_0x38edbc),_0x38feca=this['_getAttributeKey'](_0xba2616);if(this['_isBlockAttribute'](_0x38feca)){for(const _0x2b2321 of _0x3ad299)_0x2b2321['getCustomProperty']('addHighlight')||(_0xe819d9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2b2321),_0xe819d9['writer']['removeAttribute']('data-suggestion',_0x2b2321),_0xe819d9['writer']['removeAttribute']('data-author-id',_0x2b2321),_0xe819d9['mapper']['unbindElementFromMarkerName'](_0x2b2321,_0x26a4c3['markerName']));}},{'priority':'high'});}),_0x903fdd['model']['document']['registerPostFixer'](_0x3cc06d=>{let _0x2d0b63=!0x1;const _0x1754f1=Array['from'](_0x903fdd['model']['document']['differ']['getChangedMarkers']()),_0xbd2b57=new Set();for(const {name:_0x197c74,data:_0x1cc2e0}of _0x1754f1){const {group:_0x4b43b8,type:_0x2098e4,subType:_0x411f37,id:_0x2b36b3}=this['_splitMarkerName'](_0x197c74);if('suggestion'!==_0x4b43b8)continue;const _0x289f08=this['_suggestions']['get'](_0x2b36b3);if(null!=_0x1cc2e0['newRange']){'formatInline'==_0x2098e4&&(_0x2d0b63=_0x2d0b63||Gt(_0x1cc2e0['newRange'],_0x197c74,_0x3cc06d,_0x903fdd['model']['schema']));const _0x5ce687='attribute'==_0x2098e4&&this['_isBlockAttribute'](_0x411f37['split']('|')[0x0]);if(_0x1cc2e0['newRange']['isCollapsed']||'$graveyard'==_0x1cc2e0['newRange']['root']['rootName']||'formatBlock'==_0x2098e4&&!Lt(_0x1cc2e0['newRange'])||_0x5ce687&&!Lt(_0x1cc2e0['newRange'])||'deletion'==_0x2098e4&&!(!Pt(_0x23f448=_0x1cc2e0['newRange'])&&!function(_0x1a534b){return _0x1a534b['start']['parent']==_0x1a534b['end']['nodeBefore']&&_0x1a534b['start']['isAtEnd'];}(_0x23f448)))_0x3cc06d['removeMarker'](_0x197c74),_0x2d0b63=!0x0;else{if(!_0x289f08||!_0x289f08['isInContent'])continue;if(_0x1cc2e0['newRange']&&_0x1cc2e0['oldRange']&&_0x1cc2e0['newRange']['isEqual'](_0x1cc2e0['oldRange']))continue;_0xbd2b57['add'](_0x289f08);}}}var _0x23f448;return _0xbd2b57['size']>0x0&&(_0x2d0b63=!!this['_joinWithAdjacentSuggestions'](_0xbd2b57)||_0x2d0b63),_0x2d0b63;}),_0x903fdd['model']['document']['registerPostFixer'](_0x16f16d=>{let _0x4181f7=!0x1;for(const _0x2094f3 of _0x903fdd['model']['document']['differ']['getChanges']())if('insert'==_0x2094f3['type'])for(const _0x586b72 of this['_suggestions']['values']()){if(_0x586b72['isMultiRange']||!_0x586b72['isInContent'])continue;const _0x4eb0a1='formatBlock'==_0x586b72['type'],_0x1bf273=this['_getAttributeKey'](_0x586b72),_0x2980b6=_0x1bf273&&this['_isBlockAttribute'](_0x1bf273);if(!_0x4eb0a1&&!_0x2980b6)continue;const _0x4d5890=_0x586b72['getFirstRange']();if(_0x4d5890['start']['parent']!=_0x4d5890['end']['parent']&&!_0x4d5890['end']['isAtEnd']){const _0x20f5d3=_0x903fdd['model']['createPositionAt'](_0x4d5890['start']['nodeAfter'],'end'),_0x51fe1c=_0x903fdd['model']['createRange'](_0x4d5890['start'],_0x20f5d3);_0x16f16d['updateMarker'](_0x586b72['getFirstMarker'](),{'range':_0x51fe1c}),_0x4181f7=!0x0;}}return _0x4181f7;}),_0x903fdd['model']['document']['registerPostFixer'](_0x58e668=>this['_processAttributeChanges'](_0x58e668)),_0x903fdd['model']['document']['registerPostFixer'](_0x13c694=>!_0x13c694['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x13c694)),_0x903fdd['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x903fdd['model']['document']['on']('change:data',(_0x19abb7,_0x52416e)=>{if(!_0x52416e['isLocal']||_0x52416e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x46ce99=_0x903fdd['model']['document']['differ']['getChanges']();if(0x0==_0x46ce99['length'])return;const _0x84f0fc=[],_0x2febe9=_0x46ce99['filter'](_0x49a0f9=>'attribute'==_0x49a0f9['type']),_0x394ce8=_0x46ce99['filter'](_0x425891=>'insert'==_0x425891['type']&&'$text'!=_0x425891['name']);for(const _0xf5f55c of _0x2febe9)this['_isRegisteredAttribute'](_0xf5f55c['attributeKey'])&&_0x84f0fc['push']({'key':_0xf5f55c['attributeKey'],'newValue':_0xf5f55c['attributeNewValue'],'oldValue':_0xf5f55c['attributeOldValue'],'range':Jt(_0xf5f55c['range'],_0x903fdd['model'])});for(const _0x1aad8b of _0x394ce8){if('rename'!=_0x1aad8b['action']&&'refresh'!=_0x1aad8b['action'])continue;const _0xce8bbb=Ht(_0x1aad8b['position']['nodeAfter'],_0x903fdd['model']),_0x40b06a=_0x1aad8b['before'];'rename'==_0x1aad8b['action']&&_0x84f0fc['push']({'key':m,'newValue':_0x1aad8b['name'],'oldValue':_0x40b06a['name'],'range':_0xce8bbb});for(const [_0x407c1f,_0x447dfc]of _0x40b06a['attributes']){if(!this['_isRegisteredAttribute'](_0x407c1f))continue;const _0x1dd24b=_0x1aad8b['attributes']['get'](_0x407c1f);_0x447dfc!==_0x1dd24b&&_0x84f0fc['push']({'key':_0x407c1f,'newValue':_0x1dd24b,'oldValue':_0x447dfc,'range':_0xce8bbb});}for(const [_0x29d7c5,_0x27d134]of _0x1aad8b['attributes'])this['_isRegisteredAttribute'](_0x29d7c5)&&(_0x40b06a['attributes']['has'](_0x29d7c5)||_0x84f0fc['push']({'key':_0x29d7c5,'newValue':_0x27d134,'oldValue':null,'range':_0xce8bbb}));}0x0!=_0x84f0fc['length']&&_0x903fdd['model']['enqueueChange'](_0x52416e,_0x19381e=>{const _0x225cfe=_0x10a187();for(const {range:_0x115d17,key:_0xc77d34,oldValue:_0xd743f1,newValue:_0x5acc59}of _0x84f0fc)this['markAttributeChange'](_0x115d17,_0xc77d34,_0xd743f1,_0x5acc59,{'groupId':_0x225cfe});this['_reduceExistingSuggestions'](_0x19381e,_0x84f0fc);});},{'priority':'lowest'}),_0x903fdd['model']['markers']['on']('update:suggestion',(_0x16c7c0,_0x40926b,_0x208b9f)=>{if(null==_0x208b9f){const {id:_0x466f5b}=this['_splitMarkerName'](_0x40926b['name']),_0x16115e=this['_suggestions']['get'](_0x466f5b);_0x16115e&&_0x16115e['addMarkerName'](_0x40926b['name']);}}),_0x903fdd['model']['document']['on']('change:data',()=>{const _0x42738c=Array['from'](_0x903fdd['model']['document']['differ']['getChangedMarkers']())['filter'](_0x6eccbe=>'suggestion'===this['_splitMarkerName'](_0x6eccbe['name'])['group']);if(0x0===_0x42738c['length'])return;_0x42738c['sort']((_0x2c17dc,_0x4f99f7)=>{const _0xa5f0db=_0x2c17dc['data']['oldRange'],_0x1feb10=_0x4f99f7['data']['oldRange'];return null===_0xa5f0db&&null===_0x1feb10?0x0:null===_0xa5f0db&&null!==_0x1feb10?-0x1:null!==_0xa5f0db&&null===_0x1feb10?0x1:_0xa5f0db['start']['isBefore'](_0x1feb10['start'])?-0x1:0x1;});const _0x200090=new Set(),_0x250b6a=new Set();for(const {name:_0x5d2121,data:_0x3fc26e}of _0x42738c){const {id:_0x47c1a0}=this['_splitMarkerName'](_0x5d2121);if(null===_0x3fc26e['oldRange']){const _0x18a7ca=this['_handleNewSuggestionMarker'](_0x5d2121);_0x250b6a['add'](_0x18a7ca);}else{const _0x426880=this['_suggestions']['get'](_0x47c1a0);null!==_0x3fc26e['newRange']||_0x426880['isInContent']?(_0x200090['add'](_0x426880['head']),_0x250b6a['add'](_0x426880)):this['_removeSuggestion'](_0x426880);}}_0x250b6a['size']>0x0&&this['_refreshSuggestionsChain'](_0x250b6a);for(const _0x8c821c of _0x200090)this['fire']('suggestionChanged',_0x8c821c);}),_0x903fdd['model']['on']('applyOperation',(_0x18eb32,_0x5dac02)=>{const _0x75477b=_0x5dac02[0x0];if(!this['_suggestions']['size'])return;if(!_0x75477b['isDocumentOperation'])return;if(_0x75477b['batch']['isUndo']||!_0x75477b['batch']['isLocal'])return;let _0x31486b,_0x196b18;switch(_0x75477b['type']){case'insert':_0x31486b=_0x903fdd['model']['createPositionAt'](_0x75477b['position']),_0x196b18=_0x31486b['getShiftedBy'](_0x75477b['howMany']);break;case'split':_0x31486b=_0x903fdd['model']['createPositionAt'](_0x75477b['splitPosition']),_0x196b18=_0x903fdd['model']['createPositionAt'](_0x75477b['moveTargetPosition']);break;case'move':_0x31486b=_0x903fdd['model']['createPositionAt'](_0x75477b['targetPosition']),_0x196b18=_0x31486b['getShiftedBy'](_0x75477b['howMany']);break;default:return;}const _0x120b48=_0x903fdd['model']['createRange'](_0x31486b,_0x196b18);_0x903fdd['model']['change'](()=>{for(const {suggestion:_0x47b6ea,meta:_0x387797}of this['_findSuggestions'](_0x120b48)){if(_0x47b6ea['isMultiRange'])continue;if('formatInline'==_0x47b6ea['type'])continue;const _0x2604e5=this['_getAttributeKey'](_0x47b6ea);if(_0x2604e5&&this['_isBlockAttribute'](_0x2604e5)&&'split'!=_0x75477b['type'])continue;const _0x440ad2=_0x47b6ea['data']&&_0x47b6ea['data']['multipleBlocks'];('formatBlock'!=_0x47b6ea['type']||'split'==_0x75477b['type']&&!_0x440ad2)&&(_0x387797['containsRangeInObject']||'insertion'==_0x47b6ea['type']&&_0x387797['isOwn']||_0x47b6ea['getFirstRange']()['containsRange'](_0x120b48)&&this['_breakSuggestionMarker'](_0x47b6ea,_0x31486b,_0x196b18));}});},{'priority':'lowest'}),_0x903fdd['model']['on']('deleteContent',(_0xc3bc63,_0x40670c)=>{const _0x516382=_0x40670c[0x0],_0x55d565=_0x40670c[0x1];if(_0x55d565&&_0x55d565['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x516382['isCollapsed'])return;const _0x361745=_0x903fdd['model']['schema'],{start:_0x4fef9d,end:_0x3d7580}=_0x516382['getFirstRange'](),_0x317f5a=_0x4fef9d['nodeAfter']&&_0x361745['isLimit'](_0x4fef9d['nodeAfter'])?null:_0x361745['getNearestSelectionRange'](_0x4fef9d,'forward'),_0x1000ef=_0x3d7580['nodeBefore']&&_0x361745['isLimit'](_0x3d7580['nodeBefore'])?null:_0x361745['getNearestSelectionRange'](_0x3d7580,'backward'),_0x3519dd=_0x903fdd['model']['createRange'](_0x317f5a?_0x317f5a['start']:_0x4fef9d,_0x1000ef?_0x1000ef['end']:_0x3d7580);_0x903fdd['model']['change'](_0x286576=>{this['markDeletion'](_0x3519dd);const _0x41070a=_0x903fdd['model']['schema']['getNearestSelectionRange'](_0x3519dd['start']);_0x516382['is']('documentSelection')?_0x286576['setSelection'](_0x41070a):_0x516382['setTo'](_0x41070a);}),_0xc3bc63['stop']();},{'priority':_0x458afa['normal']+0xa}),_0x903fdd['model']['on']('insertContent',(_0x536e61,_0x5f1475)=>{const _0x54e2f6=_0x5f1475[_0x5f1475['length']-0x1];_0x54e2f6&&_0x54e2f6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x903fdd['model']['change'](()=>{let _0x2e8bcd=_0x903fdd['model']['insertContent'](_0x5f1475[0x0],_0x5f1475[0x1],_0x5f1475[0x2],{'forceDefaultExecution':!0x0});if(!_0x2e8bcd)return;_0x536e61['return']=_0x2e8bcd['clone']();const _0x16fbaf=_0x2e8bcd['end']['nodeBefore'],_0x31522d=_0x903fdd['model']['schema'];_0x16fbaf&&_0x31522d['isBlock'](_0x16fbaf)&&!_0x31522d['isObject'](_0x16fbaf)&&(_0x2e8bcd=_0x903fdd['model']['createRange'](_0x2e8bcd['start'],_0x903fdd['model']['createPositionAt'](_0x16fbaf,'end'))),this['markInsertion'](_0x2e8bcd);}),_0x536e61['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2e8faa=new O(_0x903fdd,this['_suggestions']);_0x903fdd['commands']['add']('acceptSuggestion',_0x2e8faa),this['enableCommand']('acceptSuggestion');const _0xecaf74=new R(_0x903fdd,this['_suggestions']);_0x903fdd['commands']['add']('discardSuggestion',_0xecaf74),this['enableCommand']('discardSuggestion'),_0x903fdd['commands']['add']('acceptAllSuggestions',new x(_0x903fdd,_0x2e8faa,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x903fdd['commands']['add']('discardAllSuggestions',new x(_0x903fdd,_0xecaf74,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x903fdd['commands']['add']('acceptSelectedSuggestions',new E(_0x903fdd,_0x2e8faa,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x903fdd['commands']['add']('discardSelectedSuggestions',new E(_0x903fdd,_0xecaf74,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5b4c17=_0x903fdd['plugins']['get']('CommentsRepository');this['listenTo'](_0x5b4c17,'addComment',(_0x2b321a,{threadId:_0x3d5a31})=>{const _0xab93a1=this['_suggestions']['get'](_0x3d5a31);_0xab93a1&&_0xab93a1['commentThread']&&0x1===_0xab93a1['commentThread']['length']&&this['_updateSuggestionData'](_0x3d5a31,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5b4c17,'removeComment',(_0x58bee5,{threadId:_0x328a65})=>{const _0x453ef7=this['_suggestions']['get'](_0x328a65);_0x453ef7&&_0x453ef7['commentThread']&&!_0x453ef7['commentThread']['length']&&this['_updateSuggestionData'](_0x328a65,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x35e0aa){const _0xb29489=_0x492cf8([0x6e,0x73,0x32,0x76,0x78,0x47,0x37,0x4b,0x56,0x75,0x53,0x31,0x50,0x69,0x45,0x44,0x38,0x62,0x66,0x58,0x5a,0x59,0x4c,0x64,0x7a,0x55,0x46,0x79,0x33,0x70,0x39,0x54,0x65,0x74,0x48,0x43,0x36,0x42,0x63,0x61,0x4f,0x51,0x71,0x4d,0x6b,0x72,0x67,0x4e,0x52,0x41,0x6a,0x57,0x6c,0x30,0x4a,0x49,0x6d,0x34,0x68,0x6f,0x35,0x77]),_0x22072f=0x319fc86c,_0x18c3e0=0x3198967c^_0x22072f,_0x3fca77=window[_0x492cf8([0x44,0x61,0x74,0x65])][_0x492cf8([0x6e,0x6f,0x77])](),_0x262d11=_0x35e0aa[_0x492cf8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e14e7=new window[(_0x492cf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d2f3b=>{_0x262d11[_0x492cf8([0x6f,0x6e,0x63,0x65])](_0x492cf8([0x72,0x65,0x61,0x64,0x79]),_0x4d2f3b);}),_0x4a21b4={[_0x492cf8([0x6b,0x74,0x79])]:_0x492cf8([0x45,0x43]),[_0x492cf8([0x75,0x73,0x65])]:_0x492cf8([0x73,0x69,0x67]),[_0x492cf8([0x63,0x72,0x76])]:_0x492cf8([0x50,0x2d,0x32,0x35,0x36]),[_0x492cf8([0x78])]:_0x492cf8([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]),[_0x492cf8([0x79])]:_0x492cf8([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]),[_0x492cf8([0x61,0x6c,0x67])]:_0x492cf8([0x45,0x53,0x32,0x35,0x36])},_0x1ddbfe=_0x262d11[_0x492cf8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x492cf8([0x67,0x65,0x74])](_0x492cf8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d5c9d(){let _0x357479,_0x53e902=null,_0x38cb24=null;try{if(_0x1ddbfe==_0x492cf8([0x47,0x50,0x4c]))return _0x492cf8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x357479=_0x7a5d1b(),!_0x357479)return _0x492cf8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x357479[_0x492cf8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38cb24=_0x42c28a(_0x357479[_0x492cf8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x357479[_0x492cf8([0x6a,0x74,0x69])])),await _0x3390ca()?_0x132835()?_0x3384da()?_0x492cf8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x547c49()?(_0x357479[_0x492cf8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x492cf8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53e902=_0x3ae0cb(_0x492cf8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x357479[_0x492cf8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x492cf8([0x74,0x72,0x69,0x61,0x6c])&&(_0x53e902=_0x3ae0cb(_0x492cf8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22121c()):_0x492cf8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x492cf8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x492cf8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x54494b){return _0x492cf8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3384da(){const _0x31e98=[_0x492cf8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x492cf8([0x74,0x72,0x69,0x61,0x6c])][_0x492cf8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x357479[_0x492cf8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fca77/0x3e8:0xe10*_0x18c3e0;return _0x357479[_0x492cf8([0x65,0x78,0x70])]<_0x31e98;}function _0x132835(){const _0x22d1cb=_0x357479[_0x492cf8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x22d1cb)return!0x1;if(_0x22d1cb[_0x492cf8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x492cf8([0x2a])))return!0x0;if(_0x22d1cb[_0x492cf8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x492cf8([0x54,0x43])))return!0x0;if(_0x22d1cb[_0x492cf8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x492cf8([0x52,0x54,0x43]))){if(_0x5ebec5())return!0x0;if(_0x4c740b()||_0x480351())return!0x0;}return!0x1;}function _0x547c49(){const _0x4e7b0e=_0x357479[_0x492cf8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4e7b0e||0x0==_0x4e7b0e[_0x492cf8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a234f}=new URL(window[_0x492cf8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4e7b0e[_0x492cf8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a234f))return!0x0;const _0x469d90=_0x3a234f[_0x492cf8([0x73,0x70,0x6c,0x69,0x74])](_0x492cf8([0x2e]));return _0x4e7b0e[_0x492cf8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x480650=>_0x480650[_0x492cf8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x492cf8([0x2a])))[_0x492cf8([0x6d,0x61,0x70])](_0xeed5f1=>_0xeed5f1[_0x492cf8([0x73,0x70,0x6c,0x69,0x74])](_0x492cf8([0x2e])))[_0x492cf8([0x73,0x6f,0x6d,0x65])](_0x191ac8=>_0x469d90[_0x492cf8([0x65,0x76,0x65,0x72,0x79])]((_0xecb0b4,_0x5c7c92)=>_0x191ac8[_0x5c7c92]===_0xecb0b4||_0x191ac8[_0x5c7c92]===_0x492cf8([0x2a])));}function _0x22121c(){return _0x53e902&&_0x38cb24?new window[(_0x492cf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x222e65,_0x32f960)=>{_0x53e902[_0x492cf8([0x74,0x68,0x65,0x6e])](_0x222e65,_0x32f960),_0x38cb24[_0x492cf8([0x74,0x68,0x65,0x6e])](_0x3ad0c6=>{_0x3ad0c6!=_0x492cf8([0x56,0x61,0x6c,0x69,0x64])&&_0x222e65(_0x3ad0c6);},_0x32f960);}):_0x53e902||_0x38cb24||_0x492cf8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42c28a(_0x4c8217,_0x6d5a46){return new window[(_0x492cf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x583071=>{if(_0x5fbaa())return _0x583071(_0x492cf8([0x56,0x61,0x6c,0x69,0x64]));_0x26f7bc(),_0x262d11[_0x492cf8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x492cf8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x15fba6=!0x1;const _0x32c952=_0x10a187();function _0x3f3f3a(_0x4bf566){return!!_0x4bf566&&(typeof _0x4bf566===_0x492cf8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4bf566===_0x492cf8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4bf566[_0x492cf8([0x74,0x68,0x65,0x6e])]===_0x492cf8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4bf566[_0x492cf8([0x63,0x61,0x74,0x63,0x68])]===_0x492cf8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x527a21(_0x1b15cb){_0x4ef811(_0x1b15cb)[_0x492cf8([0x74,0x68,0x65,0x6e])](_0x343764=>{if(!_0x343764||_0x343764[_0x492cf8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x492cf8([0x6f,0x6b]))return _0x492cf8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x271c47(_0x548d2b(_0x32c952+_0x6d5a46))!=_0x343764[_0x492cf8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x492cf8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x492cf8([0x56,0x61,0x6c,0x69,0x64]);})[_0x492cf8([0x74,0x68,0x65,0x6e])](_0x205f6a=>(_0x422742(),_0x205f6a),()=>{const _0x194697=_0xceb8c0();return null==_0x194697?(_0x422742(),_0x492cf8([0x56,0x61,0x6c,0x69,0x64])):_0x492cf8(_0x3fca77-_0x194697>(0x15934c6c^_0x22072f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x492cf8([0x74,0x68,0x65,0x6e])](_0x583071)[_0x492cf8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x583071(_0x492cf8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xad00f3=0x31a926ec^_0x22072f;function _0x422742(){const _0x1e38e2=_0x492cf8([0x6c,0x6c,0x63,0x74,0x2d])+_0x271c47(_0x548d2b(_0x4c8217)),_0x3eaee6=_0x213c8e(_0x271c47(window[_0x492cf8([0x4d,0x61,0x74,0x68])][_0x492cf8([0x63,0x65,0x69,0x6c])](_0x3fca77/_0xad00f3)));window[_0x492cf8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x492cf8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e38e2,_0x3eaee6);}function _0xceb8c0(){const _0xe8e477=_0x492cf8([0x6c,0x6c,0x63,0x74,0x2d])+_0x271c47(_0x548d2b(_0x4c8217)),_0x558723=window[_0x492cf8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x492cf8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe8e477);return _0x558723?window[_0x492cf8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x213c8e(_0x558723),0x10)*_0xad00f3:null;}function _0x4ef811(_0x1bf814){return new window[(_0x492cf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x382b0f,_0x68432)=>{_0x1bf814[_0x492cf8([0x74,0x68,0x65,0x6e])](_0x382b0f,_0x68432),window[_0x492cf8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x68432,0x319e1cac^_0x22072f);});}}_0x262d11[_0x492cf8([0x6f,0x6e])](_0x492cf8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c59c6,_0x4839ec)=>{if(_0x4839ec[0x0]!=_0x4c8217)return _0x583071(_0x492cf8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4839ec[0x1]={..._0x4839ec[0x1],[_0x492cf8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32c952};},{[_0x492cf8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x492cf8([0x68,0x69,0x67,0x68])}),_0x262d11[_0x492cf8([0x6f,0x6e])](_0x492cf8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4fbed3=>{_0x3f3f3a(_0x4fbed3[_0x492cf8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x15fba6=!0x0,_0x527a21(_0x4fbed3[_0x492cf8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x492cf8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x492cf8([0x6c,0x6f,0x77])}),_0x1e14e7[_0x492cf8([0x74,0x68,0x65,0x6e])](()=>{_0x15fba6||_0x583071(_0x492cf8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5fbaa(){return _0x262d11[_0x492cf8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x492cf8([0x76,0x69,0x65,0x77])][_0x492cf8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x492cf8([0x61,0x75,0x74,0x6f]);}function _0x26f7bc(){_0x262d11[_0x492cf8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x492cf8([0x76,0x69,0x65,0x77])][_0x492cf8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x492cf8([0x61,0x75,0x74,0x6f]);}}function _0x3ae0cb(_0x27622b){const _0x2d64a4=[new window[(_0x492cf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa5b5fe=>setTimeout(_0xa5b5fe,0x3196f6a0^_0x22072f)),_0x1e14e7[_0x492cf8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x492cf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x583e93=>{let _0x562ac5=0x0;_0x262d11[_0x492cf8([0x6d,0x6f,0x64,0x65,0x6c])][_0x492cf8([0x6f,0x6e])](_0x492cf8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x214b94,_0x346458)=>{_0x346458[0x0][_0x492cf8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x562ac5++,_0x562ac5==(0x319fc994^_0x22072f)&&(_0x583e93(),_0x214b94[_0x492cf8([0x6f,0x66,0x66])]());});}))];return window[_0x492cf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x492cf8([0x72,0x61,0x63,0x65])](_0x2d64a4)[_0x492cf8([0x74,0x68,0x65,0x6e])](()=>_0x27622b);}async function _0x28c8b2(){await _0x1e14e7,_0x262d11[_0x492cf8([0x6d,0x6f,0x64,0x65,0x6c])][_0x492cf8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x468794,_0x262d11[_0x492cf8([0x6d,0x6f,0x64,0x65,0x6c])][_0x492cf8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x468794,_0x262d11[_0x492cf8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x492cf8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ebec5(){return _0x38995a(_0x492cf8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x565f61(_0x492cf8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x492cf8([0x73,0x74,0x61,0x74,0x65])]==_0x492cf8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4c740b(){return _0x38995a(_0x492cf8([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 _0x480351(){return _0x38995a(_0x492cf8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x264160(_0x7b7fe7){const _0xb07b4a=_0x24c880();_0x262d11[_0xb07b4a]=_0x492cf8([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x7b7fe7,_0x7b7fe7!=_0x492cf8([0x56,0x61,0x6c,0x69,0x64])&&_0x28c8b2();}function _0x24c880(){const _0xdd9a80=window[_0x492cf8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x492cf8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x492cf8([0x6e,0x6f,0x77])]())[_0x492cf8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x492cf8([0x2e]),'');let _0x17466b=_0x492cf8([0x6e]);for(let _0x38a2d7=0x0;_0x38a2d7<_0xdd9a80[_0x492cf8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38a2d7+=0x2){let _0x2d8971=window[_0x492cf8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdd9a80[_0x492cf8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38a2d7,_0x38a2d7+0x2));_0x2d8971>=_0xb29489[_0x492cf8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d8971-=_0xb29489[_0x492cf8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17466b+=_0xb29489[_0x2d8971];}return _0x17466b;}function _0x7a5d1b(){const _0x3fae54=_0x1ddbfe[_0x492cf8([0x73,0x70,0x6c,0x69,0x74])](_0x492cf8([0x2e]));if(0x3!=_0x3fae54[_0x492cf8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1213fd(_0x3fae54[0x1]);function _0x1213fd(_0x396fc0){const _0x5a23b5=_0x2ccf2e(_0x396fc0);return _0x5a23b5&&_0x3a7e25()?_0x5a23b5:null;function _0x3a7e25(){const _0x5a1400=_0x5a23b5[_0x492cf8([0x6a,0x74,0x69])],_0x308cba=window[_0x492cf8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a1400[_0x492cf8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a1400[_0x492cf8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x37f939={..._0x5a23b5,[_0x492cf8([0x6a,0x74,0x69])]:_0x5a1400[_0x492cf8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a1400[_0x492cf8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x37f939[_0x492cf8([0x76,0x63])],_0x548d2b(_0x37f939)==_0x308cba;}}}async function _0x3390ca(){let _0x1b7f29=!0x0;try{const _0xa6c114=_0x1ddbfe[_0x492cf8([0x73,0x70,0x6c,0x69,0x74])](_0x492cf8([0x2e])),[_0x52ccad,_0x4bb9af,_0x397f04]=_0xa6c114;return _0x471fdf(_0x52ccad),await _0x45a316(_0x52ccad,_0x4bb9af,_0x397f04),_0x1b7f29;}catch(_0x3b19e4){return!0x1;}function _0x471fdf(_0x55e851){const _0x5c1192=_0x2ccf2e(_0x55e851);_0x5c1192&&_0x5c1192[_0x492cf8([0x61,0x6c,0x67])]==_0x492cf8([0x45,0x53,0x32,0x35,0x36])||(_0x1b7f29=!0x1);}async function _0x45a316(_0x5d6942,_0x1e2f66,_0x17d68a){const _0x3245c9=window[_0x492cf8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x492cf8([0x66,0x72,0x6f,0x6d])](_0x2591a8(_0x17d68a),_0xd20108=>_0xd20108[_0x492cf8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b16de=new window[(_0x492cf8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x492cf8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d6942+_0x492cf8([0x2e])+_0x1e2f66),_0x3a92bc=window[_0x492cf8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x492cf8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a92bc)return;const _0x4c3eb3=await _0x3a92bc[_0x492cf8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x492cf8([0x6a,0x77,0x6b]),_0x4a21b4,{[_0x492cf8([0x6e,0x61,0x6d,0x65])]:_0x492cf8([0x45,0x43,0x44,0x53,0x41]),[_0x492cf8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x492cf8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x492cf8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a92bc[_0x492cf8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x492cf8([0x6e,0x61,0x6d,0x65])]:_0x492cf8([0x45,0x43,0x44,0x53,0x41]),[_0x492cf8([0x68,0x61,0x73,0x68])]:{[_0x492cf8([0x6e,0x61,0x6d,0x65])]:_0x492cf8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4c3eb3,_0x3245c9,_0x3b16de)||(_0x1b7f29=!0x1);}}function _0x2ccf2e(_0x2703df){return _0x2703df[_0x492cf8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x492cf8([0x65,0x79]))?JSON[_0x492cf8([0x70,0x61,0x72,0x73,0x65])](_0x2591a8(_0x2703df)):null;}function _0x2591a8(_0x3ad626){return window[_0x492cf8([0x61,0x74,0x6f,0x62])](_0x3ad626[_0x492cf8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x492cf8([0x2b]))[_0x492cf8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x492cf8([0x2f])));}function _0x548d2b(_0x454f1b){let _0x226512=0x1505;function _0x2c0e3d(_0x4289a1){for(let _0x2b7985=0x0;_0x2b7985<_0x4289a1[_0x492cf8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b7985++){const _0x137ada=_0x4289a1[_0x492cf8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b7985);_0x226512=(_0x226512<<0x5)+_0x226512+_0x137ada,_0x226512&=_0x226512;}}function _0x57f86d(_0x4dc66f){Array[_0x492cf8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4dc66f)?_0x4dc66f[_0x492cf8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57f86d):_0x4dc66f&&typeof _0x4dc66f==_0x492cf8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x492cf8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4dc66f)[_0x492cf8([0x73,0x6f,0x72,0x74])]()[_0x492cf8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23531b,_0x363450])=>{_0x2c0e3d(_0x23531b),_0x57f86d(_0x363450);}):_0x2c0e3d(window[_0x492cf8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4dc66f));}return _0x57f86d(_0x454f1b),_0x226512>>>0x0;}function _0x271c47(_0x18e2b4){return _0x18e2b4[_0x492cf8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x492cf8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x492cf8([0x30]));}function _0x213c8e(_0x5eac08){return _0x5eac08[_0x492cf8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x492cf8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x492cf8([0x6a,0x6f,0x69,0x6e])]('');}function _0x38995a(_0x13e585){return _0x262d11[_0x492cf8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x492cf8([0x68,0x61,0x73])](_0x13e585);}function _0x565f61(_0x565d9c){return _0x262d11[_0x492cf8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x492cf8([0x67,0x65,0x74])](_0x565d9c);}function _0x468794(){}function _0x492cf8(_0xadcdca){return _0xadcdca['map'](_0x11150a=>String['fromCharCode'](_0x11150a))['join']('');}_0x264160(await _0x5d5c9d());}(this);}set['adapter'](_0xba1f87){if(this['_adapter'])throw new _0x46ed90('track-changes-adapter-already-set',this);this['_adapter']=_0xba1f87;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x183e47=!0x1,toJSON:_0x5eefd3=!0x1}={}){const _0xc11ac0=[];for(const _0x2d8936 of this['_suggestions']['values']())_0x183e47&&!_0x2d8936['isInContent']||_0xc11ac0['push'](_0x2d8936);return _0x5eefd3?_0xc11ac0['map'](_0x15e0ca=>_0x15e0ca['toJSON']()):_0xc11ac0;}['getSuggestion'](_0x46f312){const _0x2ecd7e=this['_suggestions']['get'](_0x46f312);if(!_0x2ecd7e)throw new _0x46ed90('track-changes-suggestion-not-found',this);return _0x2ecd7e;}['hasSuggestion'](_0x40e3df){return this['_suggestions']['has'](_0x40e3df);}['addSuggestionData'](_0x55169f){const {authorId:_0x42474a,id:_0x3d8167,attributes:_0xaee6b4}=_0x55169f,[_0x1bd916,_0x3cedda]=_0x55169f['type']['split'](':'),_0x4c8775=this['_suggestions']['get'](_0x3d8167)||this['_createSuggestion'](_0x1bd916,_0x3cedda,_0x3d8167,_0x42474a,_0xaee6b4);if(this['_addThreadToSuggestion'](_0x4c8775),this['_checkSuggestionCorrectness'](_0x4c8775,_0x1bd916,_0x3cedda||null,_0x42474a),_0x4c8775['createdAt']=_0x55169f['createdAt'],_0x4c8775['_isDataLoaded']=!0x0,_0xaee6b4&&_0xaee6b4['@external']){const _0x1956fe=_0xaee6b4['@external'],_0x3d8f9a=this['_getExternalAuthor'](_0x1956fe['authorName']);_0x4c8775['authoredAt']=_0x1956fe['createdAt'],_0x4c8775['author']=_0x3d8f9a,_0x4c8775['isExternal']=!0x0;}else _0x4c8775['authoredAt']=_0x55169f['createdAt'];switch(_0x55169f['data']&&(_0x4c8775['data']=_0x55169f['data']),_0x55169f['attributes']&&(_0x4c8775['attributes']=_0x55169f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4c8775['_saved']=!0x0),this['_suggestionState']['get'](_0x4c8775)){case'notReady':this['_suggestionState']['set'](_0x4c8775,'dataReady');break;case'markerReady':_0x4c8775['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4c8775])),this['_refreshSuggestionsChain'](new Set([_0x4c8775])),this['_suggestionState']['set'](_0x4c8775,'ready'),this['fire']('suggestionLoaded',_0x4c8775)):this['_suggestionState']['set'](_0x4c8775,'removed');}return _0x4c8775;}['acceptSuggestion'](_0x1d667a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1d35a7 of _0x1d667a['getAllAdjacentSuggestions']())_0x1d35a7['accept']();});});}['discardSuggestion'](_0x5ca0ac){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xe37e2b of _0x5ca0ac['getAllAdjacentSuggestions']())_0xe37e2b['discard']();});});}['enableCommand'](_0x21ec4c,_0x3af489){const _0x48b045=this['editor']['commands']['get'](_0x21ec4c);if(!_0x48b045)throw new _0x46ed90('track-changes-command-not-found',this,{'commandName':_0x21ec4c});if(this['_enabledCommands']['has'](_0x48b045))throw new _0x46ed90('track-changes-enable-command-twice',this,{'commandName':_0x21ec4c});this['_enabledCommands']['add'](_0x48b045),_0x3af489&&_0x48b045['on']('execute',(_0x2fe724,_0x25fb23)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x25fb23['length']>0x0&&_0x25fb23[_0x25fb23['length']-0x1]&&_0x25fb23[_0x25fb23['length']-0x1]['forceDefaultExecution']?_0x25fb23['pop']():(_0x2fe724['return']=_0x3af489((..._0x4e7034)=>_0x48b045['execute'](..._0x4e7034,{'forceDefaultExecution':!0x0}),..._0x25fb23),_0x2fe724['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1933d3){let _0x2bbd93,_0x51351f;const _0x478ae2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2bbd93=_0x1933d3();}catch(_0x5aaeee){_0x51351f=_0x5aaeee;}return _0x478ae2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x51351f&&_0x46ed90['rethrowUnexpectedError'](_0x51351f,this),_0x2bbd93;}['markInsertion'](_0x3e54f7,_0x4bc4ff=null,_0x4c0aa3={}){if(_0x3e54f7['isCollapsed'])return null;const _0x3be662=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x182b6f,meta:_0x2cf230}of this['_findSuggestions'](_0x3e54f7,'insertion'))if(_0x2cf230['isOwn']){if(!_0x2cf230['isNextTo']){if(_0x2cf230['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x182b6f,_0x4c0aa3))continue;return _0x182b6f;}if(Kt(_0x182b6f,_0x4c0aa3))return _0x182b6f;this['_breakSuggestionMarker'](_0x182b6f,_0x3e54f7['start'],_0x3e54f7['end']);break;}if(_0x4bc4ff==_0x182b6f['subType']&&Kt(_0x182b6f,_0x4c0aa3)){const _0x58414c=_0x182b6f['getFirstRange']();return _0x58414c['start']['isEqual'](_0x3e54f7['end'])?this['_setSuggestionRange'](_0x182b6f,this['_model']['createRange'](_0x3e54f7['start'],_0x58414c['end'])):this['_setSuggestionRange'](_0x182b6f,this['_model']['createRange'](_0x58414c['start'],_0x3e54f7['end'])),_0x182b6f;}}const _0x47aac9=_0x10a187(),_0x205423=_0x3be662['id'],_0x55401e=_0x4bc4ff?'insertion:'+_0x4bc4ff:'insertion',_0x5eafb5=this['_setSuggestionData']({'id':_0x47aac9,'type':_0x55401e,'createdAt':new Date(),'authorId':_0x205423,'attributes':_0x4c0aa3});return this['_addSuggestionMarker'](_0x55401e,_0x47aac9,_0x205423,_0x3e54f7),_0x5eafb5;}['markMultiRangeInsertion'](_0x470dbf,_0x38e384='multi',_0x2f1432={}){const _0x3b7ccc=this['editor']['plugins']['get']('Users')['me'],_0x2dd99e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x38e384,'join');for(const _0x539d39 of this['getSuggestions']())if(_0x539d39['author']['id']==_0x3b7ccc['id']&&'insertion'==_0x539d39['type']&&_0x539d39['subType']==_0x38e384&&Kt(_0x539d39,_0x2f1432)&&(_0x2dd99e(_0x539d39['getRanges'](),_0x470dbf)||_0x2dd99e(_0x470dbf,_0x539d39['getRanges']()))){for(const _0x2e3b11 of _0x470dbf)_0x539d39['addRange'](_0x2e3b11);return _0x539d39;}for(const {suggestion:_0x4ecdaa,meta:_0x552280}of this['_findSuggestions'](_0x470dbf,'insertion')){if(!_0x552280['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x552280['containsRangeInObject'])continue;if(!Kt(_0x4ecdaa,_0x2f1432))continue;let _0x182f60=!0x0;for(const _0x339620 of _0x4ecdaa['getRanges']())for(const _0x2479d4 of _0x470dbf)if(!_0x339620['containsRange'](_0x2479d4)){_0x182f60=!0x1;break;}if(_0x182f60)return _0x4ecdaa;}const _0x51959e=_0x10a187(),_0x4321ce=_0x3b7ccc['id'],_0x299b1d='insertion:'+_0x38e384,_0x46c975=this['_setSuggestionData']({'id':_0x51959e,'type':_0x299b1d,'createdAt':new Date(),'authorId':_0x4321ce,'attributes':_0x2f1432});for(const _0x3b409a of _0x470dbf)this['_addSuggestionMarker'](_0x299b1d,_0x51959e,_0x4321ce,_0x3b409a,u['getMultiRangeId']());return _0x46c975;}['markInlineFormat'](_0x1352ee,_0xf1c1c4,_0x4475a3=null,_0x16119b={}){if(_0x4475a3=_0x4475a3||Ft(_0xf1c1c4),_0x1352ee['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x55564b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4475a3,'accept');return this['forceDefaultExecution'](()=>_0x55564b([_0x1352ee],_0xf1c1c4,_0x16119b)),null;}const _0x5f5507=this['editor']['plugins']['get']('Users')['me'],_0x30d640=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3d4618,meta:_0xfacf83}of this['_findSuggestions'](_0x1352ee,'insertion'))_0xfacf83['isOwn']&&!_0xfacf83['isInsideObject']&&_0x30d640['push'](..._0x3d4618['getRanges']());}const _0x13a8a1=function(_0x24579d,_0x4f37ec){const _0x17061a=[];for(const _0x59a79a of _0x4f37ec){const _0x30556f=_0x24579d['getIntersection'](_0x59a79a);_0x30556f&&_0x17061a['push'](_0x30556f);}return _0x17061a;}(_0x1352ee,_0x30d640),_0x58e411=function(_0x102a47,_0x174bb1){const _0xd11ec3=[_0x102a47];for(const _0x3823a7 of _0x174bb1){let _0x3923d5=0x0;for(;_0x3923d5<_0xd11ec3['length'];){const _0x371c08=_0xd11ec3[_0x3923d5]['getDifference'](_0x3823a7);_0xd11ec3['splice'](_0x3923d5,0x1,..._0x371c08),_0x3923d5+=_0x371c08['length'];}}return _0xd11ec3;}(_0x1352ee,_0x30d640);_0x13a8a1['length']&&this['_model']['change'](()=>{for(const _0x134b67 of _0x13a8a1){const _0x4eadf8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4475a3,'accept');this['forceDefaultExecution'](()=>_0x4eadf8([_0x134b67],_0xf1c1c4,_0x16119b));}});for(const _0x43c255 of _0x58e411){let _0x4e354f=null,_0xcc4449=_0x43c255['start'],_0x166fe5=_0x43c255['end'];for(const {suggestion:_0x22187f,meta:_0x17134e}of this['_findSuggestions'](_0x43c255,'formatInline')){if(!_0x17134e['isOwn'])continue;if(_0x22187f['subType']!=_0x4475a3)continue;if(!Kt(_0x22187f,_0x16119b))continue;const _0x340aaa=_0x22187f['getFirstRange']();if(_0x340aaa['containsRange'](_0x43c255,!0x0))return null;_0xcc4449=_0xcc4449['isBefore'](_0x340aaa['start'])?_0xcc4449:_0x340aaa['start'],_0x166fe5=_0x166fe5['isAfter'](_0x340aaa['end'])?_0x166fe5:_0x340aaa['end'],_0x4e354f?_0x340aaa['start']['isBefore'](_0x4e354f['getFirstRange']()['start'])?(_0x4e354f['removeMarkers'](),_0x4e354f=_0x22187f):_0x22187f['removeMarkers']():_0x4e354f=_0x22187f;}const _0x5155c4=this['_model']['createRange'](_0xcc4449,_0x166fe5);if(_0x4e354f)this['_setSuggestionRange'](_0x4e354f,_0x5155c4);else{const _0x31d5ae=_0x10a187(),_0x2606c5=_0x5f5507['id'];this['_setSuggestionData']({'id':_0x31d5ae,'type':'formatInline:'+_0x4475a3,'data':_0xf1c1c4,'createdAt':new Date(),'authorId':_0x2606c5,'attributes':_0x16119b}),this['_addSuggestionMarker']('formatInline:'+_0x4475a3,_0x31d5ae,_0x2606c5,_0x5155c4);}}return null;}['markBlockFormat'](_0x2fad43,_0x3fe3eb,_0x28f790=[],_0x1e22e2=null,_0x30d9d5={}){_0x3fe3eb['formatGroupId']||(_0x3fe3eb['formatGroupId']=_0x3fe3eb['commandName']),_0x3fe3eb['multipleBlocks']=_0x2fad43['is']('range'),_0x1e22e2=_0x1e22e2||Ft(_0x3fe3eb);const _0xd8599c=_0x28f790['map'](_0x20c5c1=>Ht(_0x20c5c1,this['_model'])),_0xdb3c67=_0x2fad43['is']('range')?_0x2fad43:Ht(_0x2fad43,this['_model']);if('never'===this['_trackFormatChanges']){const _0x24e694=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e22e2,'accept');return this['forceDefaultExecution'](()=>_0x24e694([_0xdb3c67],_0x3fe3eb,_0x30d9d5)),null;}_0xd8599c['push'](_0xdb3c67);let _0xbca22c=!0x0;for(const _0x4648a0 of _0xd8599c)if(!this['_rangeIsInLocalUserInsertion'](_0x4648a0)){_0xbca22c=!0x1;break;}if(_0xbca22c&&'always'!==this['_trackFormatChanges']){const _0x189df5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e22e2,'accept');return this['forceDefaultExecution'](()=>_0x189df5([_0xdb3c67],_0x3fe3eb,_0x30d9d5)),null;}let _0xaf7626=null,_0x35d679=_0xdb3c67['start'],_0x4c279c=_0xdb3c67['end'];for(const {suggestion:_0x351285,meta:_0x5b87e9}of this['_findSuggestions'](_0xdb3c67,'formatBlock')){if(!_0x5b87e9['isOwn'])continue;if(_0x5b87e9['isNextTo']||_0x5b87e9['containsRangeInObject']||_0x5b87e9['isInsideObject'])continue;if(_0x351285['data']['formatGroupId']!=_0x3fe3eb['formatGroupId'])continue;if(!Kt(_0x351285,_0x30d9d5))continue;const _0x1cc555=_0x351285['getFirstRange']();if(_0x351285['subType']==_0x1e22e2){if(_0x1cc555['containsRange'](_0xdb3c67,!0x0))return null;_0x35d679=_0x35d679['isBefore'](_0x1cc555['start'])?_0x35d679:_0x1cc555['start'],_0x4c279c=_0x4c279c['isAfter'](_0x1cc555['end'])?_0x4c279c:_0x1cc555['end'],_0xaf7626?_0x1cc555['start']['isBefore'](_0xaf7626['getFirstRange']()['start'])?(_0xaf7626['removeMarkers'](),_0xaf7626=_0x351285):_0x351285['removeMarkers']():_0xaf7626=_0x351285;}else{const _0x3da641=_0xdb3c67['getIntersection'](_0x1cc555);this['_cutOutSuggestionMarker'](_0x351285,_0x3da641);}}const _0x5cb194=this['editor']['plugins']['get']('Users')['me'],_0xade791=_0x10a187(),_0x5b2d98=_0x5cb194['id'];if(_0xaf7626)return this['_setSuggestionRange'](_0xaf7626,this['_model']['createRange'](_0x35d679,_0x4c279c)),_0xaf7626;{const _0xef1761=this['_setSuggestionData']({'id':_0xade791,'type':'formatBlock:'+_0x1e22e2,'data':_0x3fe3eb,'createdAt':new Date(),'authorId':_0x5b2d98,'attributes':_0x30d9d5});return this['_addSuggestionMarker']('formatBlock:'+_0x1e22e2,_0xade791,_0x5b2d98,this['_model']['createRange'](_0x35d679,_0x4c279c)),_0xef1761;}}['markMultiRangeBlockFormat'](_0x2e6bbb,_0x53e010,_0x1dac3a=[],_0x1f5ced=null,_0x4660e1={}){_0x53e010['formatGroupId']||(_0x53e010['formatGroupId']=_0x53e010['commandName']);const _0x3aeec4=_0x2e6bbb[0x0];_0x53e010['multipleBlocks']=_0x3aeec4['is']('range'),_0x1f5ced=_0x1f5ced||Ft(_0x53e010);const _0x8bdb9b=_0x1dac3a['map'](_0xd05e0b=>Ht(_0xd05e0b,this['_model'])),_0x5c3533=_0x3aeec4['is']('range')?_0x2e6bbb:_0x2e6bbb['map'](_0x41c233=>Ht(_0x41c233,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4c72f7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f5ced,'accept');return this['forceDefaultExecution'](()=>_0x4c72f7(_0x5c3533,_0x53e010,_0x4660e1)),null;}_0x8bdb9b['push'](..._0x5c3533);let _0x10e9ad=!0x0;for(const _0x5405e7 of _0x8bdb9b)if(!this['_rangeIsInLocalUserInsertion'](_0x5405e7)){_0x10e9ad=!0x1;break;}if(_0x10e9ad&&'always'!==this['_trackFormatChanges']){const _0x28e05c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f5ced,'accept');return this['forceDefaultExecution'](()=>_0x28e05c(_0x5c3533,_0x53e010,_0x4660e1)),null;}const _0x21cdec=this['editor']['plugins']['get']('Users')['me'];for(const _0x5448d5 of this['getSuggestions']()){if(_0x5448d5['author']['id']!=_0x21cdec['id'])continue;if('formatBlock'!=_0x5448d5['type']||_0x5448d5['data']['formatGroupId']!=_0x53e010['formatGroupId'])continue;if(!Kt(_0x5448d5,_0x4660e1))continue;const _0x3c1aee=_0x5448d5['subType']==_0x1f5ced;for(let _0xb01e31=0x0;_0xb01e31<_0x5c3533['length'];_0xb01e31++){const _0xe6fcfb=_0x5c3533[_0xb01e31];for(const _0x2ffe10 of _0x5448d5['getMarkers']()){const _0x30ecef=_0x2ffe10['getRange']();if(_0xe6fcfb['isEqual'](_0x30ecef)){_0x3c1aee?(_0x5c3533['splice'](_0xb01e31,0x1),_0xb01e31--):_0x5448d5['removeMarker'](_0x2ffe10['name']);break;}}}}if(0x0==_0x5c3533['length'])return null;const _0x56dad9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f5ced,'join');for(const _0x4611cd of this['getSuggestions']())if(_0x4611cd['author']['id']==_0x21cdec['id']&&'formatBlock'==_0x4611cd['type']&&_0x4611cd['data']['formatGroupId']==_0x53e010['formatGroupId']&&_0x4611cd['subType']==_0x1f5ced&&Kt(_0x4611cd,_0x4660e1)&&(_0x56dad9(_0x4611cd['getRanges'](),_0x5c3533)||_0x56dad9(_0x5c3533,_0x4611cd['getRanges']()))){for(const _0x269ad5 of _0x5c3533)_0x4611cd['addRange'](_0x269ad5);return _0x4611cd;}const _0x4c95ab=_0x10a187(),_0x2df9bb=_0x21cdec['id'],_0x2052fc='formatBlock:'+_0x1f5ced,_0x57cebb=this['_setSuggestionData']({'id':_0x4c95ab,'type':_0x2052fc,'data':_0x53e010,'createdAt':new Date(),'authorId':_0x2df9bb,'attributes':_0x4660e1});for(const _0xf3d90f of _0x5c3533)this['_addSuggestionMarker'](_0x2052fc,_0x4c95ab,_0x2df9bb,_0xf3d90f,u['getMultiRangeId']());return _0x57cebb;}['markDeletion'](_0x18b068,_0x361949=null,_0x319ae3={}){if(_0x18b068['isCollapsed'])return null;const _0x28c55f=this['editor']['plugins']['get']('Users')['me'],_0x329eaf=new _0x4da4a9(_0x18b068['start'],_0x18b068['end']);for(const {suggestion:_0x34a55c,meta:_0x526aee}of this['_findSuggestions'](_0x329eaf,'insertion'))if(_0x526aee['isOwn']&&!_0x526aee['isNextTo']){if(_0x34a55c['isMultiRange']){const _0x5e9ef2=_0x34a55c['getRanges']()['filter'](_0x1111ca=>'$graveyard'!=_0x1111ca['root']['rootName']);_0x5e9ef2['every'](_0x5c5f19=>_0x329eaf['containsRange'](_0x5c5f19,!0x0))&&_0x34a55c['discard']();if(_0x5e9ef2['some'](_0x442da5=>_0x442da5['containsRange'](_0x329eaf,!0x0))){const _0x5df5f9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x361949,'accept');return this['forceDefaultExecution'](()=>_0x5df5f9([_0x329eaf],null,_0x319ae3)),null;}}else{const _0x4a9cef=_0x329eaf['getIntersection'](_0x34a55c['getFirstRange']());null!==_0x4a9cef&&_0x34a55c['_onDiscard']([_0x4a9cef],null,_0x319ae3);}}if(_0x329eaf['detach'](),_0x329eaf['isCollapsed']||'$graveyard'==_0x329eaf['root']['rootName'])return null;let _0x8c215d=null,_0x4c3f21=_0x329eaf['start'],_0x2eb2fa=_0x329eaf['end'];const _0x27bc0b=this['_findSuggestions'](_0x329eaf,'deletion');for(const {suggestion:_0x9a995b,meta:_0x5c2af6}of _0x27bc0b){const _0x778886=this['_model']['createRange'](_0x4c3f21,_0x2eb2fa);if(_0x5c2af6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5c2af6['containsRangeInObject']&&!_0x5c2af6['isInsideObject'])){if(_0x9a995b['isMultiRange']){if(!Kt(_0x9a995b,_0x319ae3))continue;let _0x3e1fe2=!0x0;for(const _0x3b75d6 of _0x9a995b['getRanges']()){if(_0x3b75d6['containsRange'](_0x778886,!0x0))return _0x9a995b;_0x778886['containsRange'](_0x3b75d6)||(_0x3e1fe2=!0x1);}_0x3e1fe2&&_0x9a995b['discard']();}else{const _0x5bba5b=_0x9a995b['getFirstRange']();if(_0x5bba5b['containsRange'](_0x778886,!0x0))return _0x9a995b;if(!Kt(_0x9a995b,_0x319ae3)){_0x778886['containsRange'](_0x5bba5b)?_0x9a995b['removeMarkers']():_0x5bba5b['containsPosition'](_0x4c3f21)?_0x4c3f21=_0x5bba5b['end']:_0x5bba5b['containsPosition'](_0x2eb2fa)&&(_0x2eb2fa=_0x5bba5b['start']);continue;}_0x4c3f21=_0x4c3f21['isBefore'](_0x5bba5b['start'])?_0x4c3f21:_0x5bba5b['start'],_0x2eb2fa=_0x2eb2fa['isAfter'](_0x5bba5b['end'])?_0x2eb2fa:_0x5bba5b['end'],_0x319ae3=Object['assign']({},_0x9a995b['attributes']),_0x8c215d?_0x5bba5b['start']['isBefore'](_0x8c215d['getFirstRange']()['start'])?(_0x8c215d['removeMarkers'](),_0x8c215d=_0x9a995b):_0x9a995b['removeMarkers']():_0x8c215d=_0x9a995b;}}}if(_0x8c215d)return this['_setSuggestionRange'](_0x8c215d,this['_model']['createRange'](_0x4c3f21,_0x2eb2fa)),_0x8c215d;{const _0x56a5ad=_0x10a187(),_0x5018f1=this['_model']['createRange'](_0x4c3f21,_0x2eb2fa),_0x1ff5f6=_0x28c55f['id'],_0xfb0393=_0x361949?'deletion:'+_0x361949:'deletion',_0xa081a6=this['_setSuggestionData']({'id':_0x56a5ad,'type':_0xfb0393,'createdAt':new Date(),'authorId':_0x1ff5f6,'attributes':_0x319ae3});return this['_addSuggestionMarker'](_0xfb0393,_0x56a5ad,_0x1ff5f6,_0x5018f1),_0xa081a6;}}['markMultiRangeDeletion'](_0xa4a208,_0x59c524='multi',_0x5c204b={}){const _0x54a60d=this['editor']['plugins']['get']('Users')['me'],_0x1a3e07=_0xa4a208['map'](_0x32d401=>new _0x4da4a9(_0x32d401['start'],_0x32d401['end'])),_0xab5778=new Set();for(const {suggestion:_0x350c68,meta:_0x677503}of this['_findSuggestions'](_0x1a3e07,'insertion'))_0x677503['isOwn']&&!_0x677503['isNextTo']&&_0xab5778['add'](_0x350c68);for(const _0x321004 of _0xab5778)if(_0x321004['isMultiRange']){const _0x46cd48=_0x321004['getRanges']();(!_0x321004['attributes']||!_0x321004['attributes']['skipNestingCheck'])&&(_0x46cd48['every'](_0xa26144=>_0x1a3e07['some'](_0x270fa5=>_0x270fa5['containsRange'](_0xa26144,!0x0)))&&_0x321004['discard']());if(_0x1a3e07['every'](_0x1ed604=>_0x46cd48['some'](_0x496728=>_0x496728['containsRange'](_0x1ed604,!0x0)))){const _0x11d6a6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x59c524,'accept');return this['forceDefaultExecution'](()=>_0x11d6a6(_0xa4a208,null,_0x5c204b)),null;}}else{const _0x3d2fbc=_0x321004['getFirstRange']();_0x1a3e07['some'](_0x2585bd=>_0x2585bd['containsRange'](_0x3d2fbc,!0x0))&&_0x321004['discard']();if(_0x1a3e07['every'](_0x5b6c9a=>_0x3d2fbc['containsRange'](_0x5b6c9a,!0x0))){const _0x49e76f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x59c524,'accept');return this['forceDefaultExecution'](()=>_0x49e76f(_0x1a3e07,null,_0x5c204b)),null;}}const _0x569901=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x59c524,'join');let _0x2e9e11=null;for(const _0x3aca05 of this['getSuggestions']())if(_0x3aca05['author']['id']==_0x54a60d['id']&&_0x3aca05['isInContent']&&'deletion'==_0x3aca05['type']&&_0x3aca05['subType']==_0x59c524&&Kt(_0x3aca05,_0x5c204b)&&(_0x569901(_0x3aca05['getRanges'](),_0x1a3e07)||_0x569901(_0x1a3e07,_0x3aca05['getRanges']()))){if(_0x2e9e11){if(_0x3aca05['commentThread']&&_0x3aca05['commentThread']['length'])continue;for(const _0x3970fd of _0x3aca05['getRanges']())_0x2e9e11['isIntersectingWithRange'](_0x3970fd)||_0x2e9e11['addRange'](_0x3970fd);_0x3aca05['removeMarkers']();}else{_0x2e9e11=_0x3aca05;for(const _0x512c45 of _0x1a3e07)_0x3aca05['isIntersectingWithRange'](_0x512c45)||_0x3aca05['addRange'](_0x512c45);}}if(_0x2e9e11)return _0x2e9e11;_0xab5778['clear']();for(const {suggestion:_0x2cb513,meta:_0x74ceb7}of this['_findSuggestions'](_0x1a3e07,'deletion'))_0x74ceb7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x74ceb7['containsRangeInObject']&&!_0x74ceb7['isInsideObject'])&&Kt(_0x2cb513,_0x5c204b)&&_0xab5778['add'](_0x2cb513);for(const _0x23e7c4 of _0xab5778){const _0x1c6d2e=_0x23e7c4['getRanges']();if(!_0x5c204b||!_0x5c204b['skipNestingCheck']){if(_0x1a3e07['every'](_0x58a9a5=>_0x1c6d2e['some'](_0x528144=>_0x528144['containsRange'](_0x58a9a5,!0x0))))return _0x23e7c4;}(!_0x23e7c4['attributes']||!_0x23e7c4['attributes']['skipNestingCheck'])&&(_0x1c6d2e['every'](_0x13cff0=>_0x1a3e07['some'](_0x3e3e79=>_0x3e3e79['containsRange'](_0x13cff0,!0x0)))&&_0x23e7c4['discard']());}const _0xc19505=_0x10a187(),_0x2a5dc4=_0x54a60d['id'],_0x154052='deletion:'+_0x59c524,_0x1b7123=this['_setSuggestionData']({'id':_0xc19505,'type':_0x154052,'createdAt':new Date(),'authorId':_0x2a5dc4,'attributes':_0x5c204b});for(const _0x301c06 of _0x1a3e07)_0x301c06['detach'](),_0x301c06['isCollapsed']||'$graveyard'==_0x301c06['root']['rootName']||this['_addSuggestionMarker'](_0x154052,_0xc19505,_0x2a5dc4,_0x301c06,u['getMultiRangeId']());return _0x1b7123;}['markAttributeChange'](_0x38040c,_0xdfa588,_0x1ebc3b,_0x27dae5,_0x234db4){if(_0x38040c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x26071b=this['editor']['plugins']['get']('Users')['me']['id'],_0x38f6ca=Array['from'](this['_suggestions']['values']())['filter'](_0x599c86=>'attribute'==_0x599c86['type']&&_0x599c86['data']['key']==_0xdfa588&&_0x599c86['isIntersectingWithRange'](_0x38040c));if('default'===this['_trackFormatChanges']){const _0x1ff448=this['_findSuggestions'](_0x38040c,'insertion')['filter'](({meta:_0x2a1568})=>_0x2a1568['isOwn']&&!_0x2a1568['isInsideObject']&&!_0x2a1568['isNextTo'])['map'](({suggestion:_0x3bca2e})=>_0x3bca2e);_0x38f6ca['unshift'](..._0x1ff448);}const _0x2da277=new Map([[_0x38040c,_0x1ebc3b]]);for(const _0x233e01 of _0x38f6ca){const _0x3801b0='attribute'==_0x233e01['type']?_0x233e01['data']['oldValue']:void 0x0,_0x5aa047=_0x233e01['getFirstRange'](),_0x296bae=Array['from'](_0x2da277['keys']())['find'](_0x2d77e3=>_0x2d77e3['isIntersecting'](_0x5aa047));if(!_0x296bae)continue;const _0x317819=_0x296bae['getDifference'](_0x5aa047);this['_isBlockAttribute'](_0xdfa588)&&'insertion'==_0x233e01['type']&&0x0!=_0x317819['length']||(_0x2da277['delete'](_0x296bae),_0x317819['forEach'](_0x486379=>{_0x2da277['set'](_0x486379,_0x1ebc3b);}),'insertion'!=_0x233e01['type']&&_0x3801b0!=_0x27dae5&&_0x2da277['set'](_0x296bae['getIntersection'](_0x5aa047),_0x3801b0));}const _0x320331=[];for(const [_0x2364aa,_0x547984]of _0x2da277){const _0x20bffa=_0x10a187(),_0x1cf9cf={'key':_0xdfa588,'oldValue':_0x547984,'newValue':_0x27dae5};_0xdfa588['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':_0xdfa588});const _0xb6d22d=('attribute:'+(_0xdfa588+'|'+Ft({'newValue':_0x27dae5})))['substring'](0x0,0x3c),_0x133240=this['_setSuggestionData']({'id':_0x20bffa,'type':_0xb6d22d,'data':_0x1cf9cf,'createdAt':new Date(),'authorId':_0x26071b,'attributes':_0x234db4});_0x320331['push'](_0x133240),this['_addSuggestionMarker'](_0xb6d22d,_0x20bffa,_0x26071b,_0x2364aa);}return _0x320331;}['enableDefaultAttributesIntegration'](_0x1c6ee7){this['enableCommand'](_0x1c6ee7,(_0x4531b8,..._0x1110e5)=>{this['_recordAttributeChanges'](()=>{_0x4531b8(..._0x1110e5);});});}['registerBlockAttribute'](_0x55bf0d){this['_blockAttributeKeys']['add'](_0x55bf0d);}['registerInlineAttribute'](_0x2d4ac0){this['_inlineAttributeKeys']['add'](_0x2d4ac0);}['_getAttributeKey'](_0x465dc0){return'attribute'==_0x465dc0['type']?_0x465dc0['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x32b68e,_0x571d82){const _0x4e929d=_0x32b68e['getFirstMarker']();this['_model']['change'](_0x2fbb9d=>{_0x2fbb9d['updateMarker'](_0x4e929d,{'range':_0x571d82});});}['_addThreadToSuggestion'](_0x3f2e4c){const _0x369b17=_0x3f2e4c['id'],_0xfeb66f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x369b17)||this['_commentsRepository']['addCommentThread']({'channelId':_0xfeb66f,'threadId':_0x369b17,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xc7afb8=this['_commentsRepository']['getCommentThread'](_0x369b17);_0xc7afb8['unbind']('isRemovable'),_0xc7afb8['isRemovable']=!0x1,_0x3f2e4c['commentThread']=_0xc7afb8;}['_checkSuggestionCorrectness'](_0x1abcaa,_0x48683c,_0x4e5147,_0x571d33){if(_0x1abcaa['type']!=_0x48683c||_0x1abcaa['subType']!=_0x4e5147||_0x1abcaa['creator']['id']!=_0x571d33)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x46ed90('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x435729,_0x1d71a8){const _0x59616b=_0x435729['getFirstRange']();if(_0x1d71a8['isEqual'](_0x59616b))_0x435729['removeMarkers']();else{if(_0x59616b['containsRange'](_0x1d71a8)){const _0x48e6e4=this['_model']['createPositionAt'](_0x1d71a8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x435729,this['_model']['createRange'](_0x59616b['start'],_0x48e6e4));const _0x5f1e5c=_0x10a187(),_0x5aa785=_0x435729['creator']['id'],_0x1ec3af=_0x435729['type']+':'+_0x435729['subType'];this['_setSuggestionData']({'id':_0x5f1e5c,'type':_0x1ec3af,'createdAt':new Date(),'authorId':_0x5aa785,'data':_0x435729['data'],'attributes':_0x435729['attributes']});const _0x4cc491=this['_model']['createPositionAt'](_0x1d71a8['end']['parent'],'after'),_0x58257f=this['_model']['createRange'](_0x4cc491,_0x59616b['end']);this['_addSuggestionMarker'](_0x1ec3af,_0x5f1e5c,_0x5aa785,_0x58257f);}else{if(_0x59616b['containsPosition'](_0x1d71a8['start'])){const _0x29416c=this['_model']['createPositionAt'](_0x1d71a8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x435729,this['_model']['createRange'](_0x59616b['start'],_0x29416c));}else{const _0x81d9c5=this['_model']['createPositionAt'](_0x1d71a8['end']['parent'],'after');this['_setSuggestionRange'](_0x435729,this['_model']['createRange'](_0x81d9c5,_0x59616b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x46dba3){for(const {suggestion:_0x3e395b,meta:_0x198333}of this['_findSuggestions'](_0x46dba3,'insertion')){if(!_0x198333['isOwn'])continue;const _0x4b3b3f=_0x3e395b['getRanges']();for(const _0x3ac9f8 of _0x4b3b3f)if(!_0x46dba3['getDifference'](_0x3ac9f8)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1a42a4){const _0x3d4cc7=this['editor']['plugins']['get']('Users')['getUser'](_0x1a42a4);if(!_0x3d4cc7)throw new _0x46ed90('track-changes-user-not-found',this);return _0x3d4cc7;}['_getExternalAuthor'](_0x405620){const _0x2e01cc=this['editor']['plugins']['get']('Users'),_0x32ef08=_0x2c181c('external:'+_0x405620),_0x311971=_0x2e01cc['getUser'](_0x32ef08);return _0x311971||_0x2e01cc['addUser']({'id':_0x32ef08,'name':_0x405620});}['_createSuggestion'](_0x492bf1,_0x339583,_0x1afa9a,_0x52d462,_0x493a55){const _0x3e332f=this['_getAuthorFromId'](_0x52d462),_0x626dcf=this['_suggestionFactory']['buildSuggestion'](_0x492bf1,_0x339583,_0x1afa9a,_0x3e332f,_0x493a55,_0x1ec1cc=>{this['_updateSuggestionData'](_0x1afa9a,{'attributes':_0x1ec1cc});const _0x261055=this['getSuggestion'](_0x1afa9a);this['_joinWithAdjacentSuggestions'](new Set([_0x261055])),this['_refreshSuggestionsChain'](new Set([_0x261055]));});return this['listenTo'](_0x626dcf,'accept',()=>{this['_updateSuggestionData'](_0x1afa9a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x626dcf,'discard',()=>{this['_updateSuggestionData'](_0x1afa9a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1afa9a,_0x626dcf),this['_suggestionState']['set'](_0x626dcf,'notReady'),_0x626dcf;}['_splitMarkerName'](_0x471f5e){const _0x3e4503=_0x471f5e['split'](':');return{'group':_0x3e4503[0x0],'type':_0x3e4503[0x1],'subType':_0x3e4503['length']>=0x5?_0x3e4503[0x2]:null,'id':_0x3e4503['length']<0x5?_0x3e4503[0x2]:_0x3e4503[0x3],'authorId':_0x3e4503['length']<0x5?_0x3e4503[0x3]:_0x3e4503[0x4],'markerCount':0x6==_0x3e4503['length']?_0x3e4503[0x5]:null};}['_breakSuggestionMarker'](_0x391f8b,_0x58c2e3,_0x53a4e4){const _0x7e1679=_0x391f8b['getFirstRange'](),_0x590c45=_0x7e1679['start'],_0x47e0ef=_0x7e1679['end'];this['_setSuggestionRange'](_0x391f8b,this['_model']['createRange'](_0x590c45,_0x58c2e3));const _0x244fd7=_0x10a187(),_0x16da00=_0x391f8b['creator']['id'],_0x37e45e=_0x391f8b['type']+(_0x391f8b['subType']?':'+_0x391f8b['subType']:'');this['_setSuggestionData']({'id':_0x244fd7,'type':_0x37e45e,'createdAt':new Date(),'authorId':_0x16da00,'originalSuggestionId':_0x391f8b['id'],'attributes':_0x391f8b['attributes'],'data':_0x391f8b['data']});const _0x49f60c=this['_getAttributeKey'](_0x391f8b);('formatBlock'==_0x391f8b['type']||_0x49f60c&&this['_isBlockAttribute'](_0x49f60c))&&(_0x53a4e4=this['_model']['createPositionBefore'](_0x53a4e4['parent'])),this['_addSuggestionMarker'](_0x37e45e,_0x244fd7,_0x16da00,this['_model']['createRange'](_0x53a4e4,_0x47e0ef));}['_findSuggestions'](_0x3646bf,_0x45c407=null){const _0x212526=[],_0x2c5e61=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3646bf)||(_0x3646bf=[_0x3646bf]);for(const _0x3944de of this['getSuggestions']()){if(!_0x3944de['isInContent'])continue;if(_0x45c407&&_0x3944de['type']!=_0x45c407)continue;let _0x2f72e6=!0x1;for(const _0x4efab4 of _0x3944de['getRanges']()){for(const _0x5c244b of _0x3646bf){const _0x3284c9=_0x5c244b['start']['isEqual'](_0x4efab4['end'])||_0x5c244b['end']['isEqual'](_0x4efab4['start']);if(_0x3284c9||_0x5c244b['getIntersection'](_0x4efab4)){const _0x54a41b=_0x5c244b['containsRange'](_0x4efab4)&&Vt(this['_model']['schema'],_0x4efab4['start'],_0x5c244b),_0x419808=_0x4efab4['containsRange'](_0x5c244b)&&Vt(this['_model']['schema'],_0x5c244b['start'],_0x4efab4);_0x212526['push']({'suggestion':_0x3944de,'meta':{'isOwn':_0x2c5e61==_0x3944de['author'],'isNextTo':_0x3284c9,'isInsideObject':_0x54a41b,'containsRangeInObject':_0x419808}}),_0x2f72e6=!0x0;break;}}if(_0x2f72e6)break;}}return _0x212526;}['_addSuggestionMarker'](_0xbe3f7d,_0x2c3e68,_0x49d872,_0x555c2f,_0x479ab4){this['_model']['change'](_0x5d2e62=>{let _0x57ab36='suggestion:'+_0xbe3f7d+':'+_0x2c3e68+':'+_0x49d872;_0x479ab4&&(_0x57ab36=_0x57ab36+':'+_0x479ab4),_0x5d2e62['addMarker'](_0x57ab36,{'range':_0x555c2f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xae1716){const _0xf8f215=_0xae1716['previous'],_0x1746cb=_0xae1716['next'];_0xae1716['previous']=null,_0xae1716['next']=null,null!=_0xf8f215&&_0xf8f215['next']==_0xae1716&&(_0xf8f215['next']=_0x1746cb),null!=_0x1746cb&&_0x1746cb['previous']==_0xae1716&&(_0x1746cb['previous']=_0xf8f215),'ready'==this['_suggestionState']['get'](_0xae1716)&&(this['_suggestionState']['set'](_0xae1716,'removed'),this['fire']('suggestionUnloaded',_0xae1716,_0xf8f215,_0x1746cb));}['_setSuggestionData'](_0x763370){const _0xb8e3ba=_0x763370['id'],_0x84f5e0=this['addSuggestionData'](_0x763370);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x48511f=this['editor']['plugins']['get']('PendingActions'),_0x30ebfb=_0x84f5e0['hasComments'],_0x5d65af=_0x84f5e0['subType']?_0x84f5e0['type']+':'+_0x84f5e0['subType']:_0x84f5e0['type'],_0x4e2fb1=this['editor']['locale'],_0x316757=_0x48511f['add'](o(_0x4e2fb1,'PENDING_ACTION_SUGGESTION')),_0x200f03={'id':_0xb8e3ba,'type':_0x5d65af,'hasComments':_0x30ebfb,'data':_0x763370['data']||null,'originalSuggestionId':_0x763370['originalSuggestionId']||null,'attributes':_0x84f5e0['attributes']};this['_adapter']['addSuggestion'](_0x200f03)['then'](_0x3cc855=>{_0x84f5e0['_saved']=!0x0,_0x48511f['remove'](_0x316757),_0x3cc855&&_0x3cc855['createdAt']&&(this['_suggestions']['get'](_0xb8e3ba)['createdAt']=_0x3cc855['createdAt']);})['catch'](_0xe07570=>{throw _0xc0772e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x84f5e0['discard']();}),_0x84f5e0['stopListening'](),this['_suggestions']['delete'](_0x84f5e0['id']),this['_suggestionState']['delete'](_0x84f5e0),_0xe07570;});}return _0x84f5e0;}['_isBlockAttribute'](_0x44e2e2){return this['_blockAttributeKeys']['has'](_0x44e2e2);}['_updateSuggestionData'](_0xf72c63,_0x1e843a){const _0x50b5e0=this['editor']['plugins']['get']('PendingActions'),_0x19e49f=this['getSuggestion'](_0xf72c63);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x19e49f['_saved']){const _0x55c5a1=_0x50b5e0['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xf72c63,_0x1e843a)['then'](()=>{_0x50b5e0['remove'](_0x55c5a1);});}else _0x19e49f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xf72c63,_0x1e843a);});}}['_getSuggestionData'](_0x46e4a3){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x46ed90('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x46e4a3);}['_handleNewSuggestionMarker'](_0x401a0f){const {id:_0x555d51,type:_0x197c32,subType:_0x58cf9c,authorId:_0x45a753}=this['_splitMarkerName'](_0x401a0f),_0x15e199=this['_suggestions']['get'](_0x555d51)||this['_createSuggestion'](_0x197c32,_0x58cf9c,_0x555d51,_0x45a753,{});switch(this['_checkSuggestionCorrectness'](_0x15e199,_0x197c32,_0x58cf9c,_0x45a753),this['_suggestionState']['get'](_0x15e199)){case'notReady':this['_getSuggestionData'](_0x555d51)['then'](_0x5d8fc1=>{let _0x348a6e=Promise['resolve']();_0x5d8fc1['hasComments']&&(_0x348a6e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x555d51})),_0x348a6e['then'](()=>{this['addSuggestionData'](_0x5d8fc1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x15e199,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x555d51,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x15e199,'ready'),this['fire']('suggestionLoaded',_0x15e199);break;case'ready':this['fire']('suggestionChanged',_0x15e199);}return _0x15e199['addMarkerName'](_0x401a0f),_0x15e199;}['_refreshSuggestionsChain'](_0x22448c){const _0x37bc02=Array['from'](_0x22448c),_0x2f8645=_0x37bc02['filter'](_0x20094e=>'attribute'==_0x20094e['type']);this['_refreshAttributeSuggestionsChain'](_0x2f8645);const _0x476cb7=_0x37bc02['filter'](_0x191444=>!_0x191444['isMultiRange']&&'attribute'!=_0x191444['type']),_0x19e902=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x139dc5=>!_0x139dc5['isMultiRange']&&'attribute'!=_0x139dc5['type']),_0x99ad57=_0x19e902['filter'](_0x227e3c=>!_0x22448c['has'](_0x227e3c)),_0x23ad8c=new Map(_0x19e902['map'](_0x14c2e6=>[_0x14c2e6,this['_suggestionFactory']['getSuggestionCallback'](_0x14c2e6['type'],_0x14c2e6['subType'],'chain')])),_0x3fc1ed=new Map(_0x19e902['map'](_0x90f495=>[_0x90f495,_0x90f495['getFirstRange']()])),_0x566ad0=new Set(),_0x4f46a0=new Set();for(let _0xa717ad=0x0;_0xa717ad<_0x476cb7['length'];_0xa717ad++)_0x175585(_0x476cb7[_0xa717ad],_0x476cb7,_0xa717ad+0x1);for(let _0x16f807=0x0;_0x16f807<_0x476cb7['length'];_0x16f807++)_0x175585(_0x476cb7[_0x16f807],_0x99ad57,0x0);const _0x4a80c4=new Set();for(let _0x1b0098=0x0;_0x1b0098<_0x476cb7['length'];_0x1b0098++){const _0x383d9f=_0x476cb7[_0x1b0098];!_0x4f46a0['has'](_0x383d9f)&&_0x383d9f['previous']&&(_0x4a80c4['add'](_0x383d9f['previous']),_0x383d9f['previous']['next']===_0x383d9f&&(_0x383d9f['previous']['next']=null),_0x383d9f['previous']=null),!_0x566ad0['has'](_0x383d9f)&&_0x383d9f['next']&&(_0x4a80c4['add'](_0x383d9f['next']),_0x383d9f['next']['previous']===_0x383d9f&&(_0x383d9f['next']['previous']=null),_0x383d9f['next']=null);}function _0x175585(_0x413d30,_0x18092c,_0x5be078){for(let _0x114208=_0x5be078;_0x114208<_0x18092c['length'];_0x114208++){const _0x1459ef=_0x55cf6c(_0x413d30,_0x18092c[_0x114208]);_0x1459ef&&(_0x1459ef[0x0]['next']=_0x1459ef[0x1],_0x1459ef[0x1]['previous']=_0x1459ef[0x0],_0x566ad0['add'](_0x1459ef[0x0]),_0x4f46a0['add'](_0x1459ef[0x1]));}}function _0x55cf6c(_0x2fd7f0,_0x11d449){if(_0x2fd7f0['author']['id']!==_0x11d449['author']['id'])return null;const _0x2ad184=_0x23ad8c['get'](_0x2fd7f0)(_0x2fd7f0,_0x11d449,_0x3fc1ed['get'](_0x2fd7f0),_0x3fc1ed['get'](_0x11d449));if(!_0x2ad184)return null;return _0x23ad8c['get'](_0x11d449)(_0x2fd7f0,_0x11d449,_0x3fc1ed['get'](_0x2fd7f0),_0x3fc1ed['get'](_0x11d449))?_0x2ad184[0x1]['commentThread']&&_0x2ad184[0x1]['commentThread']['length']?null:_0x2ad184:null;}_0x4a80c4['size']&&this['_refreshSuggestionsChain'](_0x4a80c4);}['_refreshAttributeSuggestionsChain'](_0x40f1ff){if(0x0==_0x40f1ff['length'])return;const _0x582f94=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ce4df=>'attribute'==_0x2ce4df['type']&&_0x2ce4df['_isDataLoaded']),_0x20d0f1=[],_0x2cf81a=new Map();for(const _0x2fa225 of _0x582f94){const _0x36e016=_0x2c181c(_0x2fa225['attributes']);_0x2cf81a['has'](_0x36e016)||(_0x2cf81a['set'](_0x36e016,_0x20d0f1['length']),_0x20d0f1['push']([]));const _0x14f6e7=_0x2cf81a['get'](_0x36e016);_0x20d0f1[_0x14f6e7]['push'](_0x2fa225);}!(function(){_0x20d0f1['sort']((_0x4f0f63,_0x2013cb)=>{const _0x21069b=_0x4f0f63[0x0]['createdAt'],_0x18eb92=_0x2013cb[0x0]['createdAt'];return _0x21069b==_0x18eb92?_0x4f0f63[0x0]['attributes']['groupId']<_0x2013cb[0x0]['attributes']['groupId']?-0x1:0x1:_0x21069b<_0x18eb92?-0x1:0x1;});for(const _0x5cbdad of _0x20d0f1)_0x5cbdad['sort']((_0x3c8443,_0x259308)=>_0x3c8443['id']<_0x259308['id']?-0x1:0x1);}());for(let _0x27b503=0x0;_0x27b503<_0x20d0f1['length'];_0x27b503++){if(0x0==_0x20d0f1[_0x27b503]['length'])continue;const _0x1af942=[];for(let _0x4a323c=_0x27b503+0x1;_0x4a323c<_0x20d0f1['length'];_0x4a323c++)0x0!=_0x20d0f1[_0x4a323c]['length']&&_0x195c24(_0x20d0f1[_0x27b503],_0x20d0f1[_0x4a323c])&&_0x1af942['push'](_0x4a323c);for(const _0x42c858 of _0x1af942)_0x20d0f1[_0x27b503]=_0x20d0f1[_0x27b503]['concat'](_0x20d0f1[_0x42c858]),_0x20d0f1[_0x42c858]=[];}for(const _0x6bd7f7 of _0x20d0f1)for(let _0x231269=0x0;_0x231269<_0x6bd7f7['length'];_0x231269++){const _0x50a17c=_0x6bd7f7[_0x231269+0x1]||null;_0x6bd7f7[_0x231269]['next']!==_0x50a17c&&(_0x6bd7f7[_0x231269]['next']=_0x50a17c);}for(const _0x225a7f of _0x20d0f1)for(let _0x2f8991=0x0;_0x2f8991<_0x225a7f['length'];_0x2f8991++){const _0x274de1=_0x225a7f[_0x2f8991-0x1]||null;_0x225a7f[_0x2f8991]['previous']!==_0x274de1&&(_0x225a7f[_0x2f8991]['previous']=_0x274de1);}function _0x195c24(_0x1d01a2,_0x34b85c){if(_0x1d01a2[0x0]['attributes']['groupId']!==_0x34b85c[0x0]['attributes']['groupId']&&_0x1d01a2[0x0]['author']!==_0x34b85c[0x0]['author'])return!0x1;if(!function(_0x121b76,_0x4a5bd4){if(!_0x121b76['hasComments']&&!_0x4a5bd4['hasComments'])return!0x0;if(_0x121b76['hasComments']&&_0x4a5bd4['hasComments'])return!0x1;if(_0x121b76['hasComments']&&_0x4a5bd4['createdAt']<_0x121b76['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4a5bd4['hasComments']&&_0x121b76['createdAt']<_0x4a5bd4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1d01a2[0x0],_0x34b85c[0x0]))return!0x1;const _0x4a3e1f=Et(_0x1d01a2[0x0]['attributes'],'groupId'),_0x2eaf63=Et(_0x34b85c[0x0]['attributes'],'groupId');if(!_0x32ab49(_0x4a3e1f,_0x2eaf63))return!0x1;return!!_0x1d01a2['every'](_0x3353e7=>_0x34b85c['some'](_0x577968=>_0x3353e7['getFirstRange']()['isEqual'](_0x577968['getFirstRange']())))&&_0x34b85c['every'](_0x5f7967=>_0x1d01a2['some'](_0x4944b4=>_0x5f7967['getFirstRange']()['isEqual'](_0x4944b4['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x354238){const _0x893ebe=Array['from'](_0x354238),_0x3132f2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x13d686=_0x3132f2['filter'](_0xd70cc7=>!_0x354238['has'](_0xd70cc7)),_0x5804f3=new Map(_0x893ebe['map'](_0x55bf3b=>[_0x55bf3b,this['_suggestionFactory']['getSuggestionCallback'](_0x55bf3b['type'],_0x55bf3b['subType'],'join')])),_0x201a9b=new Map(_0x3132f2['map'](_0x1fc8f8=>[_0x1fc8f8,_0x1fc8f8['getRanges']()]));for(let _0x4f6f19=0x0;_0x4f6f19<_0x893ebe['length'];_0x4f6f19++){if(_0x163725(this,_0x893ebe[_0x4f6f19],_0x893ebe,_0x4f6f19+0x1))return!0x0;}for(let _0x3e6801=0x0;_0x3e6801<_0x893ebe['length'];_0x3e6801++){if(_0x163725(this,_0x893ebe[_0x3e6801],_0x13d686,0x0))return!0x0;}return!0x1;function _0x163725(_0x1bdb0a,_0x4afb0f,_0x279f1e,_0x586122){for(let _0x3c8c4b=_0x586122;_0x3c8c4b<_0x279f1e['length'];_0x3c8c4b++){const _0x5984e1=_0x279f1e[_0x3c8c4b];if(_0x5984e1['type']!==_0x4afb0f['type']||_0x5984e1['author']['id']!==_0x4afb0f['author']['id']||_0x5984e1['subType']!==_0x4afb0f['subType'])continue;if(!zt(_0x4afb0f,_0x5984e1))continue;if('attribute'==_0x4afb0f['type']&&_0x4afb0f['data']['oldValue']!=_0x5984e1['data']['oldValue'])continue;if('attribute'==_0x4afb0f['type']&&_0x1bdb0a['_isBlockAttribute'](_0x4afb0f['data']['key']))continue;if('formatBlock'==_0x4afb0f['type']){const _0x5619cb=_0x1bdb0a['editor']['model'],_0x17d4d6=_0x4afb0f['getContainedElement']();if(_0x17d4d6&&(_0x5619cb['schema']['isObject'](_0x17d4d6)||_0x5619cb['schema']['isLimit'](_0x17d4d6)))continue;}const _0xb698e7=_0x5804f3['get'](_0x4afb0f),_0x3bcc19=_0x201a9b['get'](_0x4afb0f),_0x82a649=_0x201a9b['get'](_0x5984e1),_0x31086e=_0x4afb0f['commentThread']&&_0x4afb0f['commentThread']['length'],_0x59e56b=_0x5984e1['commentThread']&&_0x5984e1['commentThread']['length'];if(!_0x31086e&&_0xb698e7(_0x82a649,_0x3bcc19))return _0x1bdb0a['_joinSuggestions'](_0x5984e1,_0x4afb0f),_0x201a9b['delete'](_0x4afb0f),!0x0;if(!_0x59e56b&&_0xb698e7(_0x3bcc19,_0x82a649))return _0x1bdb0a['_joinSuggestions'](_0x4afb0f,_0x5984e1),_0x201a9b['delete'](_0x5984e1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2673c3,_0x2e1f78){if(_0x2673c3['isMultiRange']){for(const _0x63700b of _0x2e1f78['getRanges']())_0x2673c3['addRange'](_0x63700b);}else{const _0x1400ea=_0x2e1f78['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2673c3,this['_model']['createRange'](_0x2673c3['getFirstRange']()['start'],_0x1400ea));}_0x2e1f78['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3412e9,_0xe1f774,_0x1553b5){const _0x1a47fa=_0x3412e9['startsWith']('format')||_0x3412e9['startsWith']('attribute')?'FORMATTING':_0x3412e9['toUpperCase']();return o(this['editor']['locale'],_0xe1f774+'_'+_0x1a47fa+'_SUGGESTION_ANNOUNCEMENT',_0x1553b5);}['_initAriaMarkerChangeAnnouncements'](){const _0x23e67e=this['editor'];if(!_0x23e67e['ui'])return;const {ariaLiveAnnouncer:_0x394252}=_0x23e67e['ui'];_0x212fc9(this['_model'],({left:_0x3dbb38,entered:_0x222978})=>{for(const _0xd7d2fa of _0x3dbb38){const {group:_0xeddd05,type:_0x22b0be}=this['_splitMarkerName'](_0xd7d2fa['name']);if('suggestion'===_0xeddd05){_0x394252['announce'](this['_getMarkerAnnouncementText'](_0x22b0be,'LEAVE'));break;}}for(const _0x5a0a2b of _0x222978){const {group:_0x52563d,type:_0x51c816}=this['_splitMarkerName'](_0x5a0a2b['name']);if('suggestion'===_0x52563d){_0x394252['announce'](this['_getMarkerAnnouncementText'](_0x51c816,'ENTER',_0x4aff40(_0x2db86e)));break;}}});}['_processAttributeChanges'](_0x1477be){if(this['_recordAttributeSuggestions'])return!0x1;const _0x492730=this['editor'],_0x4630d5=_0x492730['model']['document']['differ']['getChanges']();if(0x0==_0x4630d5['length'])return!0x1;const _0x4037d1=[],_0x3928a1=_0x4630d5['filter'](_0x49b32c=>'attribute'==_0x49b32c['type']),_0x513593=_0x4630d5['filter'](_0x168595=>'insert'==_0x168595['type']&&'$text'!=_0x168595['name']),_0x1196d6=_0x4630d5['filter'](_0x5233c7=>'remove'==_0x5233c7['type']&&'$text'!=_0x5233c7['name']);for(const _0x219998 of _0x3928a1)_0x4037d1['push']({'key':_0x219998['attributeKey'],'newValue':_0x219998['attributeNewValue'],'oldValue':_0x219998['attributeOldValue'],'range':Jt(_0x219998['range'],_0x492730['model'])});for(const _0x1fee63 of _0x513593){const _0x4896cb=_0x1196d6['find'](_0x2e0d26=>_0x2e0d26['position']['isEqual'](_0x1fee63['position']));_0x4896cb&&_0x4037d1['push']({'key':m,'newValue':_0x1fee63['name'],'oldValue':_0x4896cb['name'],'range':_0x492730['model']['createRangeOn'](_0x1fee63['position']['nodeAfter'])});}return 0x0!=_0x4037d1['length']&&this['_reduceExistingSuggestions'](_0x1477be,_0x4037d1);}['_processAttributeSuggestions'](_0x5887f8){let _0x54a327=!0x1;const _0x4d8814=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x12c224=>_0x12c224['data']['newRange']&&_0x12c224['name']['startsWith']('suggestion:attribute:'));for(const _0x2b8736 of _0x4d8814){const {subType:_0x38b9c5,id:_0x198777}=this['_splitMarkerName'](_0x2b8736['name']),_0x92ab95=_0x38b9c5['split']('|')[0x0];for(const _0x3e718c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3e718c['id']!=_0x198777&&'attribute'==_0x3e718c['type']&&_0x3e718c['data']&&_0x3e718c['data']['key']==_0x92ab95&&_0x3e718c['getFirstRange']()['isIntersecting'](_0x2b8736['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3e718c,_0x2b8736['data']['newRange'],_0x5887f8),_0x54a327=!0x0);}return _0x54a327;}['_recordAttributeChanges'](_0x1f445c){this['_recordAttributeSuggestions']=!0x0,_0x1f445c();}['_isRegisteredAttribute'](_0xe18025){const _0x3827e5=this['_isBlockAttribute'](_0xe18025),_0x1d2128=this['_inlineAttributeKeys']['has'](_0xe18025);return _0x3827e5||_0x1d2128;}['_reduceExistingSuggestions'](_0x200b22,_0xc36e07){if(0x0==_0xc36e07['length'])return!0x1;let _0x3cfdcc=!0x1;for(const _0x1fc7e2 of _0xc36e07){const _0xb00d89=this['_findSuggestions'](_0x1fc7e2['range'],'attribute')['filter'](_0x3835f2=>!_0x3835f2['meta']['isNextTo'])['map'](_0x35d278=>_0x35d278['suggestion']),_0x387227=_0x2c181c({'newValue':_0x1fc7e2['newValue']});_0xb00d89['filter'](_0xfc8498=>{const [_0x37b50b,_0xc1386b]=_0xfc8498['subType']['split']('|');return _0x37b50b==_0x1fc7e2['key']&&_0xc1386b!=_0x387227;})['forEach'](_0x5418a4=>{this['_reduceSuggestionAttributeRange'](_0x5418a4,_0x1fc7e2['range'],_0x200b22),_0x3cfdcc=!0x0;});}return _0x3cfdcc;}['_reduceSuggestionAttributeRange'](_0x3fd593,_0x4b9742,_0x3f49c7){const _0x33c22e=_0x3fd593['getFirstRange']()['getDifference'](_0x4b9742);0x0!==_0x33c22e['length']?0x1!==_0x33c22e['length']?this['_breakSuggestionMarker'](_0x3fd593,_0x4b9742['start'],_0x4b9742['end']):this['_setSuggestionRange'](_0x3fd593,_0x33c22e[0x0]):_0x3f49c7['removeMarker'](_0x3fd593['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5eb0b0){this['_editor']=_0x5eb0b0,this['_model']=_0x5eb0b0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3350bb,_0x429e5e,_0x245f50,_0x654c11,_0x4203c4,_0x3e3147){return new u(this['_model'],{'type':_0x3350bb,'subType':_0x429e5e,'id':_0x245f50,'author':_0x654c11,'creator':_0x654c11,'attributes':_0x4203c4,'onAttributesChange':_0x3e3147,'onAccept':(..._0x4772cb)=>this['getSuggestionCallback'](_0x3350bb,_0x429e5e,'accept')(..._0x4772cb),'onDiscard':(..._0x303f90)=>this['getSuggestionCallback'](_0x3350bb,_0x429e5e,'discard')(..._0x303f90)});}['registerCustomCallback'](_0x34a16c,_0x43ea25,_0x411f55,_0x5142fc){const _0x4a4cdc=_0x34a16c+':'+_0x43ea25+':'+_0x411f55;this['_customCallbacks']['set'](_0x4a4cdc,_0x5142fc);}['getSuggestionCallback'](_0x161596,_0x562bc6,_0x39f0f5){const _0x38a6af=_0x161596+':'+_0x562bc6+':'+_0x39f0f5;return this['_customCallbacks']['get'](_0x38a6af)||this['_defaultCallbacks']['get'](_0x161596+':'+_0x39f0f5);}['_registerDefaultCallbacks'](){const _0x36ae25=()=>!0x1,_0x22a994=_0x3d24bd=>{_0x3d24bd['sort']((_0x531a12,_0x2cbc6c)=>_0x531a12['start']['isBefore'](_0x2cbc6c['start'])?0x1:-0x1),this['_model']['change'](_0x5c938f=>{for(const _0x4fb756 of _0x3d24bd){let _0x586f32;_0x586f32=_0x4fb756['end']['isAtEnd']&&_0x4fb756['end']['parent']==_0x4fb756['start']['nodeAfter']?_0x5c938f['createSelection'](_0x4fb756['start']['nodeAfter'],'on'):_0x5c938f['createSelection'](_0x4fb756),this['_model']['deleteContent'](_0x586f32,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x55fb18=(_0x501391,_0xa8bcc4)=>{_0xa8bcc4&&this['_model']['change'](_0x1863dd=>{const {commandName:_0x418571,commandParams:_0xcc2e43=[]}=_0xa8bcc4,_0x5d78f4=_0x501391['map'](_0x38dea7=>(Pt(_0x38dea7)&&(_0x38dea7=this['_model']['createRange'](_0x38dea7['end'])),_0x38dea7))['filter'](_0xa9a7c3=>'$graveyard'!==_0xa9a7c3['root']['rootName']);if(_0x5d78f4['length']<0x1)return;const _0x20687c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x412ee0=>_0x4da4a9['fromRange'](_0x412ee0));_0x1863dd['setSelection'](_0x5d78f4);for(const _0x4e40f9 of this['_editor']['commands']['commands']())_0x4e40f9['refresh']();_0xcc2e43['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x418571,..._0xcc2e43);const _0x561742=_0x20687c['filter'](_0x347f02=>'$graveyard'!=_0x347f02['root']['rootName']);_0x561742['length']>0x0&&_0x1863dd['setSelection'](_0x561742);for(const _0x398fc8 of _0x20687c)_0x398fc8['detach']();});},_0x2f2547=(_0x432454,_0x56c328)=>0x1==_0x432454['length']&&0x1==_0x56c328['length']&&_0x432454[0x0]['end']['isEqual'](_0x56c328[0x0]['start']),_0x2ac465=(_0x3698eb,_0x5d8d10,_0x3d0a5b,_0x362f91)=>qt(_0x3698eb,_0x5d8d10,_0x3d0a5b,_0x362f91)?[_0x3698eb,_0x5d8d10]:qt(_0x5d8d10,_0x3698eb,_0x362f91,_0x3d0a5b)?[_0x5d8d10,_0x3698eb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x36ae25),this['_defaultCallbacks']['set']('insertion:discard',_0x22a994),this['_defaultCallbacks']['set']('insertion:join',_0x2f2547),this['_defaultCallbacks']['set']('insertion:chain',_0x2ac465),this['_defaultCallbacks']['set']('deletion:accept',_0x22a994),this['_defaultCallbacks']['set']('deletion:discard',_0x36ae25),this['_defaultCallbacks']['set']('deletion:join',_0x2f2547),this['_defaultCallbacks']['set']('deletion:chain',_0x2ac465),this['_defaultCallbacks']['set']('formatInline:accept',_0x55fb18),this['_defaultCallbacks']['set']('formatInline:discard',_0x36ae25),this['_defaultCallbacks']['set']('formatInline:join',_0x2f2547),this['_defaultCallbacks']['set']('formatInline:chain',_0x36ae25),this['_defaultCallbacks']['set']('formatBlock:accept',_0x55fb18),this['_defaultCallbacks']['set']('formatBlock:discard',_0x36ae25),this['_defaultCallbacks']['set']('formatBlock:join',_0x2f2547),this['_defaultCallbacks']['set']('formatBlock:chain',_0x36ae25),this['_defaultCallbacks']['set']('attribute:accept',_0x36ae25),this['_defaultCallbacks']['set']('attribute:discard',(_0x21705f,_0x45f623)=>{if(!_0x45f623)return;const _0x405df7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4e7aa0=>{if(_0x45f623['key']==m)for(const _0x16ec51 of _0x21705f){const _0x866900=_0x16ec51['start']['nodeAfter'],_0x3c9881=_0x45f623['oldValue'];_0x4e7aa0['rename'](_0x866900,_0x3c9881);}else{if(_0x405df7['_isBlockAttribute'](_0x45f623['key'])){for(const _0x2d87b8 of _0x21705f)void 0x0!==_0x45f623['oldValue']?_0x4e7aa0['setAttribute'](_0x45f623['key'],_0x45f623['oldValue'],_0x2d87b8['start']['nodeAfter']):_0x4e7aa0['removeAttribute'](_0x45f623['key'],_0x2d87b8['start']['nodeAfter']);}else{for(const _0x4f9f71 of _0x21705f)_0x45f623['oldValue']?_0x4e7aa0['setAttribute'](_0x45f623['key'],_0x45f623['oldValue'],_0x4f9f71):_0x4e7aa0['removeAttribute'](_0x45f623['key'],_0x4f9f71);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2f2547);}}function Vt(_0x474eaf,_0x3a5996,_0x8314b){for(const _0x44b94a of _0x3a5996['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x44b94a['root']==_0x44b94a)return!0x1;if(!_0x8314b['containsItem'](_0x44b94a))return!0x1;if(_0x474eaf['isObject'](_0x44b94a)||_0x474eaf['isLimit'](_0x44b94a))return!0x0;}return!0x1;}function Pt(_0x1aaa6e){return _0x1aaa6e['end']['parent']==_0x1aaa6e['start']['nodeAfter']&&_0x1aaa6e['end']['isAtStart'];}function Gt(_0x2a197b,_0x25af53,_0x460781,_0x32210e){const _0x5cc533=_0x6f471c=>!_0x6f471c['item']['is']('$textProxy')&&!_0x32210e['isObject'](_0x6f471c['item']),_0x18d3c2=_0x2a197b['start']['getLastMatchingPosition'](_0x5cc533),_0x54dd90=_0x2a197b['end']['getLastMatchingPosition'](_0x5cc533,{'direction':'backward'});return(!_0x2a197b['start']['isEqual'](_0x18d3c2)||!_0x2a197b['end']['isEqual'](_0x54dd90))&&(_0x18d3c2['isBefore'](_0x54dd90)?_0x460781['updateMarker'](_0x25af53,{'range':_0x460781['createRange'](_0x18d3c2,_0x54dd90)}):_0x460781['removeMarker'](_0x25af53),!0x0);}function Ft(_0x57d09d){return _0x2c181c(_0x57d09d);}function Lt(_0x585ad7){const _0x176ea7=_0x585ad7['start']['nodeAfter'];return _0x176ea7&&_0x176ea7['is']('element');}function Jt(_0x188a0f,_0x248a94){return null==_0x188a0f['end']['nodeBefore']&&_0x188a0f['end']['parent']==_0x188a0f['start']['nodeAfter']?Ht(_0x188a0f['start']['nodeAfter'],_0x248a94):_0x188a0f;}function Ht(_0x1861f3,_0x4471ec){const _0x43aa3c=_0x4471ec['schema']['isObject'](_0x1861f3)||_0x4471ec['schema']['isSelectable'](_0x1861f3);return _0x4471ec['createRange'](_0x4471ec['createPositionAt'](_0x1861f3,'before'),_0x43aa3c?_0x4471ec['createPositionAfter'](_0x1861f3):_0x4471ec['createPositionAt'](_0x1861f3,'end'));}function qt(_0x422490,_0x5a5935,_0x464bbb,_0x4f377f){return!!zt(_0x422490,_0x5a5935)&&_0x464bbb['end']['isEqual'](_0x4f377f['start']);}function zt(_0x58ec86,_0x9c499a){if(!_0x58ec86['_isDataLoaded']||!_0x9c499a['_isDataLoaded'])return!0x1;const _0x48e550=new Set(Object['keys'](_0x58ec86['attributes'])),_0x278627=new Set(Object['keys'](_0x9c499a['attributes']));if(_0x48e550['delete']('groupId'),_0x278627['delete']('groupId'),0x0==_0x48e550['size']&&0x0==_0x278627['size'])return!0x0;if(_0x48e550['size']!=_0x278627['size'])return!0x1;const _0x269f57={..._0x58ec86['attributes']},_0x505b11={..._0x9c499a['attributes']};return delete _0x269f57['groupId'],delete _0x505b11['groupId'],JSON['stringify'](_0x269f57)==JSON['stringify'](_0x505b11);}function Kt(_0x39c120,_0x22ecb4){const _0x49279d=Wt(_0x39c120['attributes']),_0x3ac2dc=Wt(_0x22ecb4);if(!_0x39c120['_isDataLoaded'])return!0x1;for(const _0x6c66a2 of Object['keys'](_0x3ac2dc))if(!_0x32ab49(_0x49279d[_0x6c66a2],_0x3ac2dc[_0x6c66a2]))return!0x1;return!0x0;}function Wt(_0xc7d7c0){const _0x38feb2=Object['assign']({},_0xc7d7c0);return delete _0x38feb2['skipNestingCheck'],delete _0x38feb2['tablePasteChainId'],_0x38feb2;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x10e46c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x33b8dd,_0x432be5,_0x7ff628,_0x411a21){super(),this['model']=_0x432be5,this['view']=_0x7ff628,this['commentThreadController']=_0x411a21,this['_editor']=_0x33b8dd,this['_acceptCommand']=_0x33b8dd['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x33b8dd['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x402880,_0x4bd953)=>_0x402880||_0x4bd953),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4b095b=>_0x4b095b&&this['_editor']['model']['canEditAt'](_0x432be5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x32e851=>_0x32e851&&this['_editor']['model']['canEditAt'](_0x432be5['getRanges']())),this['_pendingAction']=null,_0x7ff628['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x7ff628,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x7ff628,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x7ff628,'change:isDirty',()=>{_0x7ff628['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 _0x396720=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x396720);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x2b7e33{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x50e58c,_0x533790,_0x51b238,_0x582388){super(_0x50e58c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1330d1(_0x50e58c,o(_0x50e58c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x533790['authoredAt']),this['bind']('authoredAt')['to'](_0x533790),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',_0x533790,'authoredAt',this,'descriptionParts',(_0x8773f0,_0x17b21b,_0x1523f7)=>{const _0x4d7666=_0x1523f7['map'](_0x38625b=>ns(_0x38625b['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x8773f0-0x1,_0x533790['author']['name'],_0x17b21b?_0x582388['formatDateTime'](_0x17b21b):'',new DOMParser()['parseFromString'](_0x4d7666,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5ef1fd(),this['focusTracker']=new _0xf45791(),this['keystrokes']=new _0xb2b1f1(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x42a0c3=>_0x42a0c3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x533790,this['_localUser']=_0x51b238,this['_config']=_0x582388,_0x582388['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xd5d996(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x51c7c0}=this['_config'];this['commentsListView']=new _0x51c7c0(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',_0x1f93a0=>_0x1f93a0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xf32397,_0x311e34)=>_0xf32397||!!_0x311e34);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x42b548}=this['_config'],_0x55b876=new _0x42b548(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x404472=_0x55b876['commentInputView'];return _0x55b876['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x404472,'value',(_0xee1efb,_0x4ea936,_0x5ade58)=>!!_0x5ade58||_0xee1efb&&!_0x4ea936),_0x404472['on']('submit',(_0x48fe4f,_0x5f551e)=>{this['fire']('addComment',_0x5f551e),_0x404472['editor']['setData']('');}),_0x404472['on']('cancel',()=>this['focus']()),_0x404472['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x55b876;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x5c957b,_0x195c4d,_0x3707cc,_0x46373b){super(_0x5c957b,_0x195c4d,_0x3707cc,_0x46373b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2ae1eb=>_0x2ae1eb&&_0x2ae1eb[0x0]?_0x2ae1eb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1e68f0,_0x55c8fa)=>{let _0x3370cc='';for(const _0x3799e9 of _0x1e68f0)_0x3370cc+='<p>'+ns(_0x3799e9['content'],_0x3799e9['color'])+'</p>';return _0x55c8fa?_0x3370cc:_0x3e9d2(_0x3370cc,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x46373b['SuggestionView'](_0x5c957b,_0x195c4d,{'formatDateTime':_0x46373b['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 _0x40c759=this['bindTemplate'],_0x3b91fa=[this['suggestionView']];return this['commentsListView']&&_0x3b91fa['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3b91fa['push'](this['commentThreadInputView']),_0x3b91fa['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x40c759['if']('isActive','ck-suggestion-wrapper--active'),_0x40c759['to']('type',_0x4219a4=>'ck-suggestion-'+_0x4219a4),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':_0x40c759['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3b91fa};}['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 fe extends _0x2b7e33{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1ef665,_0x18d051,_0x10db6a){super(_0x1ef665),this['_model']=_0x18d051,this['_config']=_0x10db6a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x18d051),this['acceptButton']=this['_createButton'](o(_0x1ef665,'Accept\x20suggestion'),_0x3e595e['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1ef665,'Discard\x20suggestion'),_0x3e595e['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x592ecf(_0x1ef665,_0x18d051['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5ef1fd([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xf45791(),this['keystrokes']=new _0xb2b1f1(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5ae9c0=>_0x5ae9c0['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3455f7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3455f7['innerHTML']=this['description'],this['on']('change:description',(_0x1298d3,_0x180b7f,_0x513a56)=>{_0x3455f7['innerHTML']=_0x513a56;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x41544e=this['bindTemplate'],_0x50051d=[{'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':_0x41544e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x41544e['to']('authoredAt',_0x3eb21c=>this['_config']['formatDateTime'](_0x3eb21c))}]}]},{'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']&&_0x50051d['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':_0x50051d}]};}['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'](_0x426f50,_0x1a2148,_0x50970c,_0xe3631d,_0x53509d){const _0x28a22c=new _0x537bf2(this['locale']);return _0x28a22c['set']({'label':_0x426f50,'icon':_0x1a2148,'tooltip':!0x0,'tooltipPosition':_0x53509d}),_0x28a22c['extendTemplate']({'attributes':{'class':_0x50970c}}),_0x28a22c['on']('execute',()=>{this['fire'](_0xe3631d,this['_model']['id']);}),_0x28a22c;}['_setupKeyboardNavigation'](){const _0x4c79ec=this['element'];this['keystrokes']['listenTo'](_0x4c79ec);for(const _0x19dfcb of this['focusables'])this['focusTracker']['add'](_0x19dfcb['element']),this['keystrokes']['listenTo'](_0x19dfcb['element']);this['keystrokes']['set']('enter',(_0x39a86e,_0x579564)=>{_0x4c79ec===_0x39a86e['target']&&(this['focusCycler']['focusFirst'](),_0x579564());}),this['keystrokes']['set']('esc',(_0xec2ac7,_0x560e64)=>{_0x4c79ec!==_0xec2ac7['target']&&(this['focus'](),_0x560e64());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x57a03e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x25a128,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14fc78){super(_0x14fc78),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x27a571=this['editor']['config'];_0x27a571['define']('trackChanges.SuggestionThreadView',pe),_0x27a571['define']('trackChanges.SuggestionView',fe),_0x27a571['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x27a571['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x37d977,_0x33d956){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x41aad1,_0x6dd0f5]of this['_handleControllerBuffer']){const _0x3e94ab=this['_suggestionToController']['has'](_0x41aad1);_0x3e94ab||_0x6dd0f5?_0x3e94ab&&_0x6dd0f5&&this['_destroyController'](_0x41aad1):this['_initializeController'](_0x41aad1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x37d977,_0x33d956);}['init'](){const _0x31b283=this['editor'],_0x45b063=_0x31b283['plugins']['get']('TrackChangesEditing'),_0x10f285=_0x31b283['plugins']['get']('Annotations'),_0x45ba59=_0x31b283['plugins']['get']('EditorAnnotations'),_0x5c9f3b=_0x31b283['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x45ba59['addSourceCollector'](()=>{const _0x18e142=[];for(const [_0x2ec923,_0x256e66]of Array['from'](this['_suggestionToController'])){const _0x11862b=_0x2ec923['getAllAdjacentSuggestions'](),_0x13a05e=[];for(const _0x422226 of _0x11862b){if(!_0x422226['isInContent'])continue;if(_0x422226['isMultiRange']){_0x13a05e['push'](..._0x422226['getRanges']());continue;}const _0x25a052=_0x422226['getFirstRange']();if(_0x13a05e['length']>0x0){const _0x16c303=_0x13a05e[0x0]['getJoined'](_0x25a052);if(_0x16c303){_0x13a05e[0x0]=_0x16c303;continue;}}_0x13a05e['push'](_0x25a052);}_0x18e142['push']([_0x256e66['view'],_0x13a05e]);}return _0x18e142;}),this['listenTo'](_0x45b063,'suggestionLoaded',(_0x4df6fd,_0x5f3668)=>{this['listenTo'](_0x5f3668,'change:previous',(_0x639335,_0x4d1182,_0x3d7a51,_0x49e725)=>{_0x5f3668['isInContent']&&(null==_0x3d7a51?(this['_updateController'](_0x49e725['head']),this['_handleSuggestionControllerDelayed'](_0x5f3668,!0x1)):(this['_updateController'](_0x3d7a51['head']),null==_0x49e725&&this['_handleSuggestionControllerDelayed'](_0x5f3668,!0x0)));}),null!==_0x5f3668['previous']?this['_updateController'](_0x5f3668['head']):this['_handleSuggestionControllerDelayed'](_0x5f3668,!0x1);}),this['listenTo'](_0x45b063,'suggestionUnloaded',(_0x432afa,_0x34d5bd,_0x13e447)=>{this['stopListening'](_0x34d5bd,'change:previous'),this['_handleControllerBuffer']['delete'](_0x34d5bd),this['_suggestionToController']['has'](_0x34d5bd)&&this['_destroyController'](_0x34d5bd),_0x13e447&&this['_updateController'](_0x13e447['head']);}),this['listenTo'](_0x45b063,'suggestionChanged',(_0x8ca13a,_0x49576a)=>{this['_updateController'](_0x49576a);}),this['listenTo'](_0x10f285,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5c9f3b,'addComment',(_0x480133,{threadId:_0x396de4,isFromAdapter:_0x60baa0})=>{if(_0x60baa0||!_0x45b063['hasSuggestion'](_0x396de4))return;const _0x2ae4c8=_0x45b063['getSuggestion'](_0x396de4);this['_suggestionToController']['get'](_0x2ae4c8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x42994e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2eae55;for(const _0xc55157 in _0x42994e){const _0x9fd0e9=_0xc55157,_0x2d8495=_0x42994e[_0x9fd0e9];if('trackChangesLicenseKeyValid'==_0x2d8495||'trackChangesLicenseKeyInvalid'==_0x2d8495||'trackChangesLicenseKeyExpired'==_0x2d8495||'trackChangesLicenseKeyDomainLimit'==_0x2d8495||'trackChangesLicenseKeyNotAllowed'==_0x2d8495||'trackChangesLicenseKeyEvaluationLimit'==_0x2d8495||'trackChangesLicenseKeyTrialLimit'==_0x2d8495||'trackChangesLicenseKeyUsageLimit'==_0x2d8495){delete _0x42994e[_0x9fd0e9],_0x2eae55=_0x2d8495,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2eae55&&_0x42994e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2eae55&&_0x42994e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2eae55&&_0x42994e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2eae55&&_0x42994e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2eae55&&_0x42994e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2eae55&&_0x42994e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2eae55&&_0x42994e['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2bd532=this['editor']['plugins']['get']('Annotations'),_0xbbcfc3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2346b2=Array['from'](_0x2bd532['activeAnnotations'],_0x1bfe99=>_0x1bfe99['innerView'])['filter'](_0x1ea869=>this['_viewToController']['has'](_0x1ea869)),_0x351ff5=[];for(const _0x4e227b of _0x2346b2){const _0x45c734=this['_viewToController']['get'](_0x4e227b)['model']['getAllAdjacentSuggestions']();_0x351ff5['push'](..._0x45c734['reduce']((_0x24d734,_0x39c69f)=>[..._0x24d734,..._0x39c69f['getMarkerNames']()],[]));}_0xbbcfc3['activeMarkers']=_0x351ff5;}['_addUIComponentsToFactory'](){const _0x1cbd69=this['editor'],_0x1b345c=_0x1cbd69['locale'],_0x805c7a=o(_0x1b345c,'Track\x20changes'),_0x18ec0b=new _0x12ee00([{'type':'switchbutton','model':new _0x59794b({'withText':!0x0,'isToggleable':!0x0,'label':_0x805c7a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x59794b({'withText':!0x0,'label':o(_0x1b345c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x59794b({'withText':!0x0,'label':o(_0x1b345c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x59794b({'withText':!0x0,'label':o(_0x1b345c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x59794b({'withText':!0x0,'label':o(_0x1b345c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1cbd69['plugins']['has']('TrackChangesPreview')&&_0x18ec0b['addMany']([{'type':'separator'},{'type':'button','model':new _0x59794b({'withText':!0x0,'label':o(_0x1b345c,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3b2b3d of _0x18ec0b)if(ke(_0x3b2b3d)){const _0x1a7e63=_0x1cbd69['commands']['get'](_0x3b2b3d['model']['commandName']);_0x3b2b3d['model']['bind']('isOn','isEnabled')['to'](_0x1a7e63,'value','isEnabled');}_0x1cbd69['ui']['componentFactory']['add']('trackChanges',_0x58bc83=>this['_createToolbarButton'](_0x58bc83,_0x18ec0b,_0x805c7a)),_0x1cbd69['ui']['componentFactory']['add']('menuBar:trackChanges',_0x321156=>this['_createMenuBarMenu'](_0x321156,_0x18ec0b,_0x805c7a));}['_createToolbarButton'](_0x283857,_0x1ce5d6,_0x61d23){const _0x135653=_0x317481(_0x283857,_0x36f765),_0x5c40d1=this['editor']['commands']['get']('trackChanges');_0x135653['buttonView']['set']({'tooltip':_0x61d23,'label':_0x61d23,'icon':we}),_0x135653['buttonView']['bind']('isOn')['to'](_0x5c40d1,'value'),_0x135653['buttonView']['on']('execute',()=>{_0x5c40d1['execute'](),this['editor']['editing']['view']['focus']();}),_0x347310(_0x135653,_0x1ce5d6,{'role':'menu'});const _0x4919ee=[];for(const _0x22df21 of _0x1ce5d6)ke(_0x22df21)&&_0x4919ee['push'](this['editor']['commands']['get'](_0x22df21['model']['commandName']));const _0x1df3a7=_0x135653['buttonView'];return _0x1df3a7['actionView']['unbind']('isEnabled'),_0x1df3a7['arrowView']['unbind']('isEnabled'),_0x1df3a7['actionView']['bind']('isEnabled')['to'](_0x5c40d1,'isEnabled'),_0x1df3a7['arrowView']['bind']('isEnabled')['toMany'](_0x4919ee,'isEnabled',(..._0xaf162e)=>_0xaf162e['some'](_0x55fee0=>_0x55fee0)),_0x135653['on']('execute',_0x3e567e=>{this['editor']['execute'](_0x3e567e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x135653;}['_createMenuBarMenu'](_0x26010c,_0x4f5dcd,_0x520c98){const _0x12223a=new _0x159d99(_0x26010c),_0x1d37d4=this['editor']['commands']['get']('trackChanges');_0x12223a['buttonView']['set']({'label':_0x520c98,'icon':we});const _0x32af74=new _0x55d4d6(_0x26010c);for(const _0xa7f55f of _0x4f5dcd){if('separator'==_0xa7f55f['type']){_0x32af74['items']['add'](new _0x36f0d0(_0x26010c));continue;}const _0x2dff1c=new _0x47716e(_0x26010c,_0x12223a),_0x26148c=new _0x48228b(_0x26010c),_0x16915e=_0xa7f55f['model'];_0x26148c['bind'](...Object['keys'](_0x16915e))['to'](_0x16915e),_0x26148c['delegate']('execute')['to'](_0x12223a),_0x26148c['on']('execute',()=>{this['editor']['execute'](_0x16915e['commandName']),this['editor']['editing']['view']['focus']();}),_0x2dff1c['children']['add'](_0x26148c),_0x32af74['items']['add'](_0x2dff1c);}return _0x12223a['bind']('isEnabled')['to'](_0x1d37d4,'isEnabled'),_0x12223a['panelView']['children']['add'](_0x32af74),_0x12223a;}['_initializeController'](_0x217b98){const _0x2d3df4=this['editor'],_0x289267=_0x2d3df4['config'],_0x20522b=_0x2d3df4['plugins']['get']('Annotations'),_0x438e46=_0x2d3df4['plugins']['get']('CommentsRepository'),_0x3c4660=_0x2d3df4['plugins']['get']('EditorAnnotations'),_0x18dbff=_0x2d3df4['plugins']['get'](_0x25a128)['me'],_0x5e0104=_0x289267['get']('trackChanges')['SuggestionThreadView'],_0x19539f=_0x289267['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x23b4e7,CommentThreadInputView:_0x1cbbf5}=_0x2d3df4['plugins']['get']('CommentsUI');let _0x16e189,_0x9603e3,_0x2c25d7;this['_annotationViews']['has'](_0x217b98['id'])?(_0x9603e3=this['_annotationViews']['get'](_0x217b98['id']),_0x16e189=_0x9603e3['mainView']):(_0x16e189=new _0x5e0104(_0x2d3df4['locale'],_0x217b98,_0x18dbff,{'disableComments':this['_disableComments'],'editorConfig':{..._0x289267['get']('comments.editorConfig'),'licenseKey':_0x289267['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x289267['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x289267['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x289267['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x58089b(_0x289267['get']('locale')),'CommentView':_0x289267['get']('comments')['CommentView'],'CommentsListView':_0x23b4e7,'CommentThreadInputView':_0x1cbbf5,'SuggestionView':_0x19539f}),_0x16e189['suggestionView']['acceptButton']['on']('execute',()=>{_0x2d3df4['editing']['view']['focus']();}),_0x16e189['suggestionView']['discardButton']['on']('execute',()=>{_0x2d3df4['editing']['view']['focus']();}),_0x9603e3=_0x20522b['createAnnotationView'](this['editor']['locale'],_0x16e189),_0x9603e3['bind']('isDirty')['to'](_0x16e189,'isDirty'),_0x9603e3['bind']('length')['to'](_0x16e189),_0x9603e3['bind']('type')['to'](_0x16e189,'type',_0xd97483=>'suggestion-'+_0xd97483),_0x16e189['on']('escape',()=>{_0x2c25d7['fire']('escape');}),this['_annotationViews']['set'](_0x217b98['id'],_0x9603e3));const _0x5f4b2c=_0x438e46['createCommentThreadController'](_0x217b98['commentThread'],_0x16e189),_0xdc0453=new Ce(_0x2d3df4,_0x217b98,_0x16e189,_0x5f4b2c),_0x4546a2=_0x217b98['getAllAdjacentSuggestions']()['filter'](_0x56256f=>_0x56256f['isInContent']);_0x16e189['descriptionParts']=_0x2d3df4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4546a2),this['_suggestionToController']['set'](_0x217b98,_0xdc0453),this['_viewToController']['set'](_0x16e189,_0xdc0453),_0x2c25d7=_0x20522b['createAnnotation']({'view':_0x9603e3,'target':()=>{const _0x518b87=[],_0x119764=_0x217b98['getAllAdjacentSuggestions']()['filter'](_0x3d5895=>_0x3d5895['isInContent']);for(const _0x18115b of _0x119764)_0x518b87['push'](..._0x18115b['getMarkers']());return _0x5b4d51(_0x2d3df4['editing'],_0x518b87);},'type':()=>'suggestion-'+_0xdc0453['view']['type']}),_0x438e46['_bindAnnotationToEditors'](_0x16e189,_0x2c25d7),_0x20522b['add'](_0x2c25d7),_0x3c4660['registerAnnotation'](_0x2c25d7);}['_destroyController'](_0x3cd1ff){const _0x5c5529=this['editor']['plugins']['get']('CommentsRepository'),_0x13984d=this['editor']['plugins']['get']('Annotations'),_0x3a1a3f=this['_suggestionToController']['get'](_0x3cd1ff),_0x5dcfdf=_0x3a1a3f['view'],_0x4f5e5a=_0x13984d['getByInnerView'](_0x5dcfdf);_0x5c5529['_unbindEditors'](_0x5dcfdf),_0x4f5e5a&&_0x13984d['remove'](_0x4f5e5a),this['_suggestionToController']['delete'](_0x3cd1ff),this['_viewToController']['delete'](_0x5dcfdf),_0x3a1a3f['destroy']();}['_updateController'](_0x3b1bd4){if(!_0x3b1bd4['isInContent']||!this['_suggestionToController']['has'](_0x3b1bd4))return;const _0x5eeb74=this['editor']['plugins']['get']('TrackChangesEditing'),_0x791109=this['_suggestionToController']['get'](_0x3b1bd4),_0x391d92=_0x3b1bd4['getAllAdjacentSuggestions']();_0x791109['view']['descriptionParts']=_0x5eeb74['descriptionFactory']['getDescriptions'](_0x391d92);}['destroy'](){for(const _0x4c3f53 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4c3f53);for(const _0x3931cb of this['_annotationViews']['values']())_0x3931cb['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x118210){return'model'in _0x118210;}class k extends _0x57a03e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x35524a){this['editor']['plugins']['get'](p)['adapter']=_0x35524a;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4f1937){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4f1937);}['getSuggestions']({skipNotAttached:_0x357368=!0x1,toJSON:_0xad1299=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x357368,'toJSON':_0xad1299});}['getSuggestion'](_0xaca354){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xaca354);}}const w=['Pagination'];class T extends _0x57a03e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4d2a6c=this['editor'];if(_0x4d2a6c['config']['define']('trackChangesData.editorCreator',_0x13d135=>{const _0x44a718=_0x4d2a6c['model']['document']['getRootNames']()['reduce']((_0x523d98,_0x5eba02)=>(_0x523d98[_0x5eba02]='',_0x523d98),{});return _0x4d2a6c['constructor']['create'](_0x44a718,_0x13d135);}),'function'!=typeof _0x4d2a6c['config']['get']('trackChangesData')['editorCreator'])throw new _0x46ed90('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x16ac3b){return N(this['editor'],!0x0,_0x16ac3b);}['getDataWithDiscardedSuggestions'](_0xe85fb0){return N(this['editor'],!0x1,_0xe85fb0);}}class D extends _0x57a03e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4bd3d9){function _0x143d69(_0xdc05cb){return _0xdc05cb['map'](_0x32cdef=>String['fromCharCode'](_0x32cdef))['join']('');}super(_0x4bd3d9),this['result']='end',_0x4bd3d9[_0x143d69([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x143d69([0x76,0x69,0x65,0x77])][_0x143d69([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x143d69([0x61,0x75,0x74,0x6f]),_0x4bd3d9[_0x143d69([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x143d69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x143d69([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x143d69([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x143d69([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 Fe(_0x526ce1){return void 0x0!==_0x526ce1['getRootsAttributes'];}async function N(_0x25eb52,_0x26e164,_0x18a31e){const _0x19fc39=_0x195234(_0x25eb52,w);_0x19fc39['plugins']['push'](p,D),_0x19fc39['rootsAttributes']=Fe(_0x25eb52)?_0x25eb52['getRootsAttributes']():void 0x0;const _0x2b7c48=document['createDocumentFragment'](),_0x4be366=_0x25eb52['config']['get']('trackChangesData')['editorCreator'],_0x138e7a=await _0x4be366(_0x19fc39,()=>function(_0x4cd632){const _0x46d6bd=document['createElement']('div');return _0x4cd632['appendChild'](_0x46d6bd),_0x46d6bd;}(_0x2b7c48));!function(_0x47e84e,_0x1a1d1f){const _0x743228=_0x47e84e['model']['document']['getRootNames']()['reduce']((_0x231a7d,_0x5b6c7d)=>(_0x231a7d[_0x5b6c7d]=_0x47e84e['data']['get']({'rootName':_0x5b6c7d}),_0x231a7d),{}),_0x17a3d6=_0x47e84e['plugins']['get']('Users')['users']['map'](_0x52768e=>({'id':_0x52768e['id'],'name':_0x52768e['name']})),_0x52be8c=_0x47e84e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x30398e=_0x47e84e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xab9e46=_0x1a1d1f['plugins']['get']('Users'),_0x5c2b8c=_0x1a1d1f['plugins']['get']('TrackChangesEditing'),_0x5252bf=_0x1a1d1f['plugins']['get']('CommentsRepository');for(const _0x399698 of _0x5252bf['getCommentThreads']())_0x399698['remove']();for(const _0x29d534 of _0x17a3d6)_0xab9e46['getUser'](_0x29d534['id'])||_0xab9e46['addUser'](_0x29d534);_0xab9e46['me']||_0xab9e46['useAnonymousUser']();for(const _0x34d485 of _0x30398e)_0x5252bf['addCommentThread'](_0x34d485);for(const _0x59a602 of _0x52be8c)_0x5c2b8c['addSuggestionData'](_0x59a602);_0x1a1d1f['data']['set'](_0x743228);}(_0x25eb52,_0x138e7a),_0x138e7a['execute'](_0x26e164?'acceptAllSuggestions':'discardAllSuggestions');const _0x4521c2=Fe(_0x138e7a)?_0x138e7a['getFullData'](_0x18a31e):_0x138e7a['data']['get'](_0x18a31e);return await _0x138e7a['destroy'](),_0x4521c2;}class Me extends _0x2b7e33{['options'];constructor(_0x50af6c,_0x1e86f2){super(_0x50af6c),this['options']=_0x1e86f2,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'](_0x236acb,_0x42b9a4){if(!this['element'])return;const _0x35bcf1=[];for(const [_0x3333e2,_0x4581d0]of _0x236acb){const _0x107fa8=document['createElement']('div');_0x107fa8['setAttribute']('data-ck-root-name',_0x3333e2),_0x107fa8['className']=_0x4581d0['classes']+'\x20ck-track-changes-preview__root-container',_0x107fa8['innerHTML']=_0x4581d0['content'],_0x35bcf1['push'](_0x107fa8);}_0x42b9a4(this['element'],_0x35bcf1),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x38e6d8){super(_0x38e6d8),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1671b7=this['editor'],_0x3ead19=_0x1671b7['locale'],_0x5e2bc9=_0x1671b7['plugins']['get']('Dialog');let _0x21c599;const _0x5e431e=function(_0xb74a10){const _0x5bb14c={};if('editables'in _0xb74a10['ui']['view']){for(const [_0x5296ee,_0x15d12f]of Object['entries'](_0xb74a10['ui']['view']['editables']))_0x5bb14c[_0x5296ee]=_0x15d12f['element'];}else _0x5bb14c[_0xb74a10['model']['document']['getRootNames']()[0x0]]=_0xb74a10['ui']['view']['editable']['element'];return _0x5bb14c;}(_0x1671b7),_0x4689ad=function(_0x5949b2){let _0x5128f0=0x0;for(const _0x360d4f of Object['values'](_0x5949b2))_0x5128f0=Math['max'](_0x5128f0,_0x360d4f['getBoundingClientRect']()['width']);let _0xf8b497=0x0;for(const _0x26a3dc of Object['values'](_0x5949b2))_0xf8b497+=_0x26a3dc['getBoundingClientRect']()['height'];const _0x213c78=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x7dfd43=Math['min'](_0xf8b497,_0x213c78);return{'width':_0x5128f0,'height':_0x7dfd43};}(_0x5e431e);_0x5e2bc9['show']({'id':'finalContentPreview','title':o(_0x3ead19,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3ead19,{'dialogRects':_0x4689ad}),'onHide':()=>{_0x21c599['detachFromDom']();},'onShow':()=>{_0x1671b7['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4d74fa=>{const _0x32094b=this['_standarizeRootsData'](_0x4d74fa,_0x1671b7,_0x5e431e);_0x5e2bc9['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x32094b,_0x1671b7['config']['get']('trackChanges.preview.renderFunction'));}),_0x21c599=new _0x3e344a(_0x3ead19,[_0x5e2bc9['view']]),_0x21c599['attachToDom'](),_0x21c599['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1671b7['once']('destroy',()=>{_0x21c599['detachFromDom']();});const _0x2e26b6=_0x5e2bc9['view']['headerView']['class'];_0x5e2bc9['view']['headerView']['class']=_0x2e26b6?_0x2e26b6+'\x20ck-reset_all':'ck-reset_all',_0x5e2bc9['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5e2bc9['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x50b364=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5a8e5b=_0x50b364['previewMode'],_0x11de90={};if('$labels'===_0x5a8e5b){for(const _0x446f19 of _0x50b364['getMergeFieldsIds']())_0x11de90[_0x446f19]=_0x50b364['getLabel'](_0x446f19)||_0x446f19;}else{const _0x2ba819='$defaultValues'===_0x5a8e5b?_0x50b364['getDefaultValues']():_0x50b364['getDataSetValues'](_0x5a8e5b,!0x0);for(const _0x41a2cf of Object['entries'](_0x2ba819)){const [_0x3bbe51,_0x503c15]=_0x41a2cf;_0x11de90[_0x3bbe51]=null!==_0x503c15?_0x503c15:_0x50b364['getLabel'](_0x3bbe51)||_0x3bbe51;}}return{'mergeFieldsData':_0x11de90};}['_standarizeRootsData'](_0x58d459,_0x845114,_0x2ef1e8){let _0x3b051f;if('string'==typeof _0x58d459){const _0x4a42bf=_0x845114['model']['document']['getRootNames']()[0x0];_0x3b051f={[_0x4a42bf]:_0x58d459};}else _0x3b051f=_0x58d459;const _0x2efef0=this['_fixMediaEmbeds'](_0x3b051f,_0x845114),_0x1e9ea1=function(_0x4d68c1,_0x42fda5){for(const [_0x5a412e,_0x478058]of _0x4d68c1)_0x478058['classes']=_0x42fda5[_0x5a412e]['classList']['value']['replace']('ck-focused','');return _0x4d68c1;}(this['_sortRoots'](_0x845114)['reduce']((_0x1984a1,_0x5eac66)=>(_0x1984a1['push']([_0x5eac66,{'content':_0x2efef0[_0x5eac66],'classes':''}]),_0x1984a1),[]),_0x2ef1e8);return _0x1e9ea1;}['_fixMediaEmbeds'](_0x509fc1,_0x13a095){if(!_0x13a095['plugins']['has']('MediaEmbedEditing'))return _0x509fc1;const _0x522ca8=_0x13a095['plugins']['get']('MediaEmbedEditing');for(const [_0x150c7c,_0x7d0c41]of Object['entries'](_0x509fc1)){const _0x58dc17=document['createElement']('div');_0x58dc17['innerHTML']=_0x7d0c41,(_0x58dc17['querySelectorAll']('figure.media')['forEach'](_0x556470=>{const _0x442b88=_0x556470['querySelector']('oembed');if(_0x442b88){const _0xdb3e1c=_0x442b88['getAttribute']('url');if(_0xdb3e1c){const _0x1fdf56=_0x522ca8['registry']['getMediaViewElement'](new _0x3043ab(_0x13a095['editing']['view']['document']),_0xdb3e1c,{'elementName':'','renderForEditingView':!0x0}),_0x148abe=document['createElement']('div');_0x148abe['classList']['add']('ck-media__wrapper'),_0x1fdf56['render'](_0x148abe,_0x13a095['editing']['view']['domConverter']),_0x442b88['replaceWith'](_0x148abe);}}}),_0x509fc1[_0x150c7c]=_0x58dc17['innerHTML']);}return _0x509fc1;}['_sortRoots'](_0x13191b){if(!function(_0x1bb79a){return void 0x0!==_0x1bb79a['getRootsAttributes'];}(_0x13191b))return _0x13191b['model']['document']['getRootNames']();const _0x386325=[],_0x22cea5=new Map();for(const _0x14ba15 of _0x13191b['model']['document']['getRootNames']()){const _0x333500=_0x13191b['editing']['view']['getDomRoot'](_0x14ba15)['getClientRects']()['item'](0x0);_0x386325['push'](_0x14ba15),_0x22cea5['set'](_0x14ba15,_0x333500);}return _0x386325['sort']((_0x125fdd,_0x248a62)=>{const _0x3e4329=_0x22cea5['get'](_0x125fdd),_0x5212a2=_0x22cea5['get'](_0x248a62);return _0x3e4329['y']-_0x5212a2['y']||_0x3e4329['x']-_0x5212a2['x'];}),_0x386325;}}class te extends _0x57a03e{static get['requires'](){return[T,_0x21cc22];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x443ef2){super(_0x443ef2),_0x443ef2['commands']['add']('previewFinalContent',new re(this['editor'])),_0x443ef2['config']['define']('trackChanges.preview.renderFunction',(_0x3a95ec,_0x5601d1)=>{for(const _0x2fb049 of _0x5601d1)_0x3a95ec['appendChild'](_0x2fb049);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as Yt,Plugin as _0x31ef78,PendingActions as _0x44a324,icons as _0x288ed7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1b7c5d,ObservableMixin as _0x46282c,uid as _0x2b97bd,priorities as _0x5b2b34,insertToPriorityArray as _0x340159,logWarning as _0x3121bc,getEnvKeystrokeText as _0x5e6a96,FocusTracker as _0x46d38e,KeystrokeHandler as _0xae9dc2,Collection as _0x11e5e0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3eaa39,View as _0x2e3b46,ViewCollection as _0x27fc65,FocusCycler as _0x34bb61,ViewModel as _0x4f3a9a,createDropdown as _0x1592d1,SplitButtonView as _0x5b1b6a,addListToDropdown as _0x18de6c,MenuBarMenuView as _0x32e87f,MenuBarMenuListView as _0x2b0ae8,ListSeparatorView as _0x485996,MenuBarMenuListItemView as _0x1b0316,MenuBarMenuListItemButtonView as _0x582f64,BodyCollection as _0x1a6e81,Dialog as _0x51f22f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5679ed,hashObject as _0x5d256d,surroundingMarkersDetector as _0x1019f3,FOCUS_ANNOTATION_KEYSTROKE as _0x2629c9,AriaDescriptionView as _0x1a4149,setupThreadKeyboardNavigation as _0xe50e28,trimHtml as _0x42d3cb,UserView as _0x1adf5d,LateFocusButtonView as _0x5c5cc4,getDateTimeFormatter as _0x494fed,getAllMarkersDomElementsSorted as _0x35e003,sanitizeEditorConfig as _0x560943}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x573231,LiveRange as _0x512f92,LivePosition as _0x19d398,DowncastWriter as _0x3b179f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xd37db3,toWidget as _0x4a8cca}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5b55e6,set as _0x1cbe6c,isEqual as _0x2deacb,unset as _0x1a54c8,omit as Vt}from'lodash-es';import{Delete as _0xb39944,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xc112e4,ShiftEnter as _0x2fa6e5}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x347fed,_0x18c09a){super(_0x347fed),this['_enabledCommands']=_0x18c09a,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 _0x21e71a of this['editor']['commands']['commands']())_0x21e71a['affectsData']&&!this['_enabledCommands']['has'](_0x21e71a)&&_0x21e71a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1da7b0 of this['editor']['commands']['commands']())_0x1da7b0['affectsData']&&!this['_enabledCommands']['has'](_0x1da7b0)&&_0x1da7b0['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x4d8e66,_0x52db52){super(_0x4d8e66),this['_suggestions']=_0x52db52,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2bfb45){const _0x42920c=this['_suggestions']['get'](_0x2bfb45);if(!_0x42920c)throw new _0x1b7c5d('track-changes-accept-suggestion-not-found',this);const _0x5f00a4=_0x42920c['getRanges']();this['editor']['model']['canEditAt'](_0x5f00a4)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x42920c);}}class R extends Yt{['_suggestions'];constructor(_0x217f44,_0x2e9655){super(_0x217f44),this['_suggestions']=_0x2e9655,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x419c48){const _0x43461c=this['_suggestions']['get'](_0x419c48);if(!_0x43461c)throw new _0x1b7c5d('track-changes-discard-suggestion-not-found',this);const _0x1588df=_0x43461c['getRanges']();this['editor']['model']['canEditAt'](_0x1588df)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x43461c);}}function cs(_0x200b04,_0x345725){let _0x4470e0='';return _0x4470e0+=_0x200b04['split']('*')['map']((_0x20aefe,_0x928ad5)=>_0x928ad5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x20aefe)+'</span>':nn(_0x20aefe))['join'](''),_0x345725&&(_0x4470e0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x345725['value']+'\x22\x20title=\x22'+_0x345725['title']+'\x22></span>'),_0x4470e0;}function nn(_0x1ddf21){const _0x1de5f9=document['createElement']('span');return _0x1de5f9['innerText']=_0x1ddf21,_0x1de5f9['innerHTML'];}function Zt(_0x3a2f3f){return _0x3a2f3f['sort']((_0x25550c,_0x4153c8)=>'deletion'==_0x25550c['type']&&'deletion'!=_0x4153c8['type']?-0x1:'deletion'!=_0x25550c['type']&&'deletion'==_0x4153c8['type']?0x1:0x0);}function to(_0x47c790,_0x1abc11){let _0x205309,_0x31d038=0x0;const _0x3c415f=[],_0x345f57=_0x1abc11['schema'];for(;_0x31d038<_0x47c790['length'];){const _0x4ec12a=_0x47c790[_0x31d038],_0x225b0e=_0x47c790[_0x31d038+0x1];_0x205309||(_0x205309=_0x1abc11['createPositionBefore'](_0x4ec12a)),on(_0x1abc11,_0x4ec12a,_0x225b0e)||(_0x3c415f['push'](_0x1abc11['createRange'](_0x205309,_0x345f57['isObject'](_0x4ec12a)?_0x1abc11['createPositionAfter'](_0x4ec12a):_0x1abc11['createPositionAt'](_0x4ec12a,'end'))),_0x205309=null),_0x31d038++;}return _0x3c415f;}function on(_0x34c5fc,_0x3cf9e4,_0x588d69){if(!_0x588d69)return!0x1;const _0x49fdd7=_0x34c5fc['createPositionAfter'](_0x3cf9e4),_0x236fc9=_0x34c5fc['createPositionBefore'](_0x588d69);return _0x49fdd7['isTouching'](_0x236fc9);}function ts(_0x123e82,_0x30dc70,_0x350da5){for(;_0x350da5['length'];){const _0x31dee1=_0x350da5['splice'](0x0,0x64);_0x123e82['change'](()=>{for(const _0x3c4d4c of _0x31dee1)_0x3c4d4c['isInContent']&&_0x30dc70['execute'](_0x3c4d4c['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x24b9b3,_0x1be3f7,_0x47deb0){super(_0x24b9b3),this['_command']=_0x1be3f7,this['_suggestions']=_0x47deb0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3d8ac7=Array['from'](this['_suggestions']['values']())['some'](_0x3397d7=>_0x3397d7['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3d8ac7;}['execute'](){const _0x396415=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x3cfb74 of _0x396415){const _0x30440b=_0x3cfb74['getRanges']();if(!this['editor']['model']['canEditAt'](_0x30440b))return;}ts(this['editor']['model'],this['_command'],_0x396415);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x44c547,_0x126bbb,_0x46705f){super(_0x44c547),this['_command']=_0x126bbb,this['_suggestions']=_0x46705f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5c943e=this['editor']['model']['document']['selection'],_0x2036a3=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xe470cd,_0x3e5bd6){const _0xf8afe4=Array['from'](_0xe470cd['getRanges']()),_0xff62c4=new Set();for(const _0x2423c1 of _0x3e5bd6)if(_0x2423c1['isInContent']){for(const _0x3adf0c of _0xf8afe4)for(const _0x436c6f of _0x2423c1['getRanges']())(_0x3adf0c['isIntersecting'](_0x436c6f)||_0xe470cd['isCollapsed']&&!_0x2423c1['isMultiRange']&&_0x2423c1['next']&&_0x436c6f['end']['isTouching'](_0x3adf0c['start']))&&_0xff62c4['add'](_0x2423c1);}return _0xff62c4;}(_0x5c943e,_0x2036a3),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xd9eed8=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x22debd of _0xd9eed8){const _0x514dbf=_0x22debd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x514dbf))return;}ts(this['editor']['model'],this['_command'],_0xd9eed8);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x46282c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1c8767,_0x41c6ed){super(),this['id']=_0x41c6ed['id'],this['type']=_0x41c6ed['type'],this['subType']=_0x41c6ed['subType']||null,this['author']=_0x41c6ed['author'],this['creator']=_0x41c6ed['creator']||_0x41c6ed['author'],this['isExternal']=Boolean(_0x41c6ed['attributes']&&_0x41c6ed['attributes']['@external']),this['data']=null,this['_model']=_0x1c8767,this['_onAccept']=_0x41c6ed['onAccept'],this['_onDiscard']=_0x41c6ed['onDiscard'],this['_onAttributesChange']=_0x41c6ed['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x41c6ed['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 _0x2e6be5=this;for(;_0x2e6be5['previous'];)_0x2e6be5=_0x2e6be5['previous'];return _0x2e6be5;}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'](_0x4e61cb){this['_markerNames']['add'](_0x4e61cb);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x396f3c=>this['_model']['markers']['get'](_0x396f3c))['filter'](_0x3a4c92=>_0x3a4c92);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x11e4cd=>{for(const _0x106b53 of this['getMarkers']())_0x11e4cd['removeMarker'](_0x106b53);}),this['_markerNames']['clear']();}['removeMarker'](_0x176329){this['_model']['change'](_0x35efbd=>{_0x35efbd['removeMarker'](_0x176329);}),this['_markerNames']['delete'](_0x176329);}['addRange'](_0x552234){const _0x2db37b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2db37b),this['_model']['change'](_0x3948b8=>{_0x3948b8['addMarker'](_0x2db37b,{'range':_0x552234,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x9d6a7){for(const _0x344f3b of this['getRanges']())if(_0x344f3b['isIntersecting'](_0x9d6a7))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4857bb=>_0x4857bb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3e69a9,_0x6b0c2d)=>[..._0x3e69a9,..._0x6b0c2d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3c3284=this['getRanges']();if(0x1!=_0x3c3284['length'])return null;const _0x634616=_0x3c3284[0x0],_0xb2cc4a=_0x634616['start']['nodeAfter'],_0x2dda31=_0x634616['end']['nodeBefore'];return _0xb2cc4a instanceof _0x573231?_0xb2cc4a!=_0x2dda31?null:_0xb2cc4a: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 _0x9b7e1=[];let _0x48e0b2=this['head'];for(;_0x48e0b2;)_0x9b7e1['push'](_0x48e0b2),_0x48e0b2=_0x48e0b2['next'];return _0x9b7e1;}['setAttribute'](_0x3168c9,_0x47ef69){const _0x48d5c3=_0x5b55e6(this['attributes']);_0x1cbe6c(_0x48d5c3,_0x3168c9,_0x47ef69),_0x2deacb(_0x48d5c3,this['attributes'])||(this['attributes']=_0x48d5c3,this['_onAttributesChange'](_0x48d5c3));}['removeAttribute'](_0x5aca03){const _0x3ab12a=_0x5b55e6(this['attributes']);_0x1a54c8(_0x3ab12a,_0x5aca03),_0x2deacb(_0x3ab12a,this['attributes'])||(this['attributes']=_0x3ab12a,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 _0x2b97bd()['substr'](0x1,0x5);}}function o(_0x5b44e6,_0x116a4d,_0x4b2228){const _0x27c2bf=_0x5b44e6['t'],t=_0x5b44e6['t'];switch(_0x116a4d){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',_0x4b2228);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4b2228);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4b2228);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4b2228);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4b2228);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',_0x4b2228);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4b2228);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',_0x4b2228);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4b2228);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4b2228);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4b2228);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4b2228);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4b2228);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4b2228);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4b2228);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4b2228);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4b2228);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4b2228);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4b2228);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4b2228);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4b2228);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4b2228);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4b2228);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4b2228);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'},_0x4b2228);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4b2228);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4b2228);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4b2228);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4b2228);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4b2228);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'},_0x4b2228);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4b2228);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4b2228);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4b2228);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4b2228);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'},_0x4b2228);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4b2228);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'},_0x4b2228);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x4b2228);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4b2228);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'},_0x4b2228);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4b2228);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'},_0x4b2228);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4b2228);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4b2228);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'},_0x4b2228);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4b2228);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 _0x27c2bf({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4b2228);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x27c2bf({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4b2228);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4b2228);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'},_0x4b2228);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'},_0x4b2228);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'},_0x4b2228);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x116a4d;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2c4e85,_0x3b33cc){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2c4e85,this['_locale']=_0x3b33cc;}['getDescriptions'](_0x574f2c){const _0x3fe9ab=[],_0xb06c=new Set(),_0x17105a=new Set();for(let _0x197fa1=0x0;_0x197fa1<_0x574f2c['length'];_0x197fa1++){const _0x23f1a9=_0x574f2c[_0x197fa1];if(!_0x23f1a9['isInContent'])continue;const _0x253bbd=this['_handleCustomCallbackDescription'](_0x23f1a9);if(_0x253bbd){if(null!=_0x23f1a9['subType']){if(_0xb06c['has'](_0x23f1a9['subType']))continue;_0xb06c['add'](_0x23f1a9['subType']);}_0x3fe9ab['push'](_0x253bbd);}else{if('attribute'!=_0x23f1a9['type'])'insertion'!=_0x23f1a9['type']&&'deletion'!=_0x23f1a9['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3fe9ab,_0x23f1a9,_0x574f2c[_0x197fa1+0x1]);else{const _0x12c98a=_0x23f1a9['data']['key'];if(_0x17105a['has'](_0x12c98a))continue;_0x17105a['add'](_0x23f1a9['data']['key']),_0x12c98a==m?this['_handleRenameSuggestionDescription'](_0x3fe9ab,_0x23f1a9):this['_handleAttributeSuggestionDescription'](_0x3fe9ab,_0x23f1a9);}}}return this['_resolveDescriptionItems'](_0x3fe9ab);}['registerDescriptionCallback'](_0x56270c){this['_customCallbacks']['push'](_0x56270c);}['registerElementLabel'](_0x4d01b5,_0x3221dd,_0x3b77a4=_0x5b2b34['normal']){'function'==typeof _0x4d01b5?_0x340159(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4d01b5,'label':_0x3221dd,'priority':_0x3b77a4}):this['_itemLabels']['set'](_0x4d01b5,_0x3221dd);}['registerAttributeLabel'](_0xa8ae33,_0x2e5d4b){this['_attributeLabels']['set'](_0xa8ae33,_0x2e5d4b);}['getItemLabel'](_0x1453bf,_0x5a992e=0x1){let _0x53594a;for(const _0x1d483f of this['_itemLabelsCallbacks'])if(_0x1d483f['matchingCallback'](_0x1453bf)){_0x53594a=_0x1d483f['label'];break;}return _0x53594a||(_0x53594a=this['_itemLabels']['get'](_0x1453bf['name'])),_0x53594a?_0x53594a(_0x5a992e):0x1!==_0x5a992e?_0x5a992e+'\x20'+_0x1453bf['name']+'s':''+_0x1453bf['name'];}['_addDescriptionItems'](_0x193460,_0x494054){const _0x4845dd=_0x494054['getFirstRange']()['getWalker'](),_0x3eecb2='insertion'==_0x494054['type']?'add':'remove';for(const _0x4c809d of _0x4845dd){const _0x274188=_0x4c809d['item'],_0x105cc2=_0x193460[_0x193460['length']-0x1];if(_0x274188['is']('$textProxy'))_0x105cc2&&_0x105cc2['type']['indexOf']('Container')>-0x1&&_0x193460['pop'](),_0x105cc2&&'text'==_0x105cc2['type']?_0x105cc2[_0x3eecb2]+=_0x274188['data']:_0x193460['push']({'type':'text','add':'add'==_0x3eecb2?_0x274188['data']:'','remove':'remove'==_0x3eecb2?_0x274188['data']:''});else{if(this['_schema']['isObject'](_0x274188)){const _0x2df2d9=_0x274188;if(_0x105cc2&&_0x105cc2['type']['indexOf']('Container')>-0x1&&_0x193460['pop'](),'elementEnd'==_0x4c809d['type'])continue;_0x105cc2&&_0x105cc2['type']==_0x3eecb2+'Object'&&_0x105cc2['element']['name']==_0x2df2d9['name']?_0x105cc2['quantity']++:_0x193460['push']({'type':_0x3eecb2+'Object','element':_0x2df2d9,'quantity':0x1}),_0x4845dd['skip'](_0x22c939=>!('elementEnd'==_0x22c939['type']&&_0x22c939['item']==_0x274188));}else{if(this['_schema']['checkChild'](_0x274188,'$text')||_0x274188['is']('element','softBreak')){const _0x28ca6b=_0x274188;if('add'==_0x3eecb2&&'elementStart'==_0x4c809d['type']||'remove'==_0x3eecb2&&'elementEnd'==_0x4c809d['type'])continue;if(_0x105cc2&&-0x1==_0x105cc2['type']['indexOf']('Container')){'text'==_0x105cc2['type']&&(_0x105cc2[_0x3eecb2]+='\x0a');continue;}let _0x8b720a;if(_0x8b720a='add'==_0x3eecb2?_0x28ca6b['nextSibling']&&!this['_schema']['isObject'](_0x28ca6b['nextSibling'])?_0x28ca6b['nextSibling']:null:_0x28ca6b['previousSibling']&&!this['_schema']['isObject'](_0x28ca6b['previousSibling'])?_0x28ca6b['previousSibling']:null,_0x28ca6b['isEmpty']||_0x8b720a&&_0x8b720a['isEmpty']){const _0x59b6eb=_0x8b720a&&_0x8b720a['isEmpty']?_0x8b720a:_0x28ca6b;_0x105cc2&&_0x105cc2['type']==_0x3eecb2+'EmptyContainer'&&_0x105cc2['element']['name']==_0x59b6eb['name']?_0x105cc2['quantity']++:_0x193460['push']({'type':_0x3eecb2+'EmptyContainer','element':_0x59b6eb,'quantity':0x1});}else _0x193460['push']({'type':_0x3eecb2+'Container','element':_0x28ca6b});}}}}}['_resolveDescriptionItems'](_0x58a48e){const _0xdd2e1c=this['_locale'],_0x3c1bfc=[],_0x55ef7b=[],_0x18ef16=[];for(const _0x13b7c of _0x58a48e)switch(_0x13b7c['type']){case'text':if(_0x13b7c['add']=_0x13b7c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x13b7c['remove']=_0x13b7c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x13b7c['add']&&''!=_0x13b7c['remove']){_0x3c1bfc['push']({'type':'replace','content':o(_0xdd2e1c,'REPLACE_TEXT',['\x22'+_0x13b7c['remove']+'\x22','\x22'+_0x13b7c['add']+'\x22'])});continue;}if(null!=_0x13b7c['add']['match'](/^ +$/)){_0x3c1bfc['push']({'type':'insertion','content':o(_0xdd2e1c,'*Insert:*\x20%0',o(_0xdd2e1c,'ELEMENT_SPACE',_0x13b7c['add']['length']))});continue;}if(null!=_0x13b7c['remove']['match'](/^ +$/)){_0x3c1bfc['push']({'type':'deletion','content':o(_0xdd2e1c,'*Remove:*\x20%0',o(_0xdd2e1c,'ELEMENT_SPACE',_0x13b7c['remove']['length']))});continue;}if(''!=_0x13b7c['add']){_0x3c1bfc['push']({'type':'insertion','content':o(_0xdd2e1c,'*Insert:*\x20%0','\x22'+_0x13b7c['add']+'\x22')});continue;}_0x3c1bfc['push']({'type':'deletion','content':o(_0xdd2e1c,'*Remove:*\x20%0','\x22'+_0x13b7c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3c1bfc['push']({'type':'insertion','content':o(_0xdd2e1c,'*Insert:*\x20%0',this['getItemLabel'](_0x13b7c['element'],_0x13b7c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3c1bfc['push']({'type':'deletion','content':o(_0xdd2e1c,'*Remove:*\x20%0',this['getItemLabel'](_0x13b7c['element'],_0x13b7c['quantity']))});continue;case'addContainer':_0x3c1bfc['push']({'type':'insertion','content':o(_0xdd2e1c,'*Split:*\x20%0',this['getItemLabel'](_0x13b7c['element'],_0x13b7c['quantity']))});continue;case'removeContainer':_0x3c1bfc['push']({'type':'deletion','content':o(_0xdd2e1c,'*Merge:*\x20%0',this['getItemLabel'](_0x13b7c['element'],_0x13b7c['quantity']))});continue;case'addFormat':_0x55ef7b['push'](_0x13b7c['key']);continue;case'removeFormat':_0x18ef16['push'](_0x13b7c['key']);continue;default:_0x3c1bfc['push'](_0x13b7c);}if(_0x55ef7b['length']){const _0x50440e=_0x55ef7b['map'](_0x2cac40=>this['_attributeLabels']['has'](_0x2cac40)?this['_attributeLabels']['get'](_0x2cac40):_0x2cac40)['join'](',\x20');_0x3c1bfc['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x50440e)});}if(_0x18ef16['length']){const _0x21a058=_0x18ef16['map'](_0x9934fb=>this['_attributeLabels']['has'](_0x9934fb)?this['_attributeLabels']['get'](_0x9934fb):_0x9934fb)['join'](',\x20');_0x3c1bfc['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x21a058)});}return _0x3c1bfc;}['_handleCustomCallbackDescription'](_0x96ef52){for(const _0x5d1e9c of this['_customCallbacks']){const _0x1b8711=_0x5d1e9c(_0x96ef52);if(_0x1b8711&&'type'in _0x1b8711)return _0x1b8711;}}['_handleAttributeSuggestionDescription'](_0x2affe8,_0x218445){const _0x3cad30=_0x218445['data'],_0x4c145d=void 0x0===_0x3cad30['newValue']?'removeFormat':'addFormat';_0x2affe8['push']({'type':_0x4c145d,'key':_0x3cad30['key']});}['_handleRenameSuggestionDescription'](_0x40d8e7,_0x4a13bd){_0x40d8e7['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4a13bd['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x397660,_0x2cc075,_0xe4e501){if(this['_addDescriptionItems'](_0x397660,_0x2cc075),_0xe4e501&&_0xe4e501['getFirstRange']()&&!_0x2cc075['getFirstRange']()['end']['isEqual'](_0xe4e501['getFirstRange']()['start'])){const _0x188e9e=_0x397660[_0x397660['length']-0x1],_0x28d750='insertion'==_0x2cc075['type']?'add':'remove';_0x188e9e&&'text'==_0x188e9e['type']&&(_0x188e9e[_0x28d750]+='\x0a');}}}class U extends _0x31ef78{['afterInit'](){const _0x14ac1d=this['editor'],_0x163a09=_0x14ac1d['plugins']['get']('TrackChangesEditing');_0x14ac1d['commands']['get']('showAIAssistant')&&_0x163a09['enableCommand']('showAIAssistant');}}class V extends _0x31ef78{['afterInit'](){const _0x468413=this['editor'],_0x1920ff=_0x468413['locale'];if(!_0x468413['plugins']['has']('AlignmentEditing'))return;const _0x23ca89=_0x468413['plugins']['get']('TrackChangesEditing');_0x23ca89['enableDefaultAttributesIntegration']('alignment'),_0x23ca89['registerBlockAttribute']('alignment'),_0x23ca89['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1920ff,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x235e97=this['editor'],_0x2d5584=_0x235e97['locale'];_0x235e97['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4decca=>{if('formatBlock'!=_0x4decca['type'])return;const {data:_0x8a1bd0}=_0x4decca;if(_0x8a1bd0&&'alignment'==_0x8a1bd0['commandName']){const _0x4e9fa0=_0x8a1bd0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2d5584,'*Format:*\x20%0',function(_0x5b7221){switch(_0x5b7221){case'left':return o(_0x2d5584,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2d5584,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2d5584,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2d5584,'FORMAT_JUSTIFY_TEXT');}}(_0x4e9fa0))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x31ef78{['afterInit'](){const _0x158e62=this['editor'],_0x1b415c=_0x158e62['plugins']['get']('TrackChangesEditing'),_0x5ccc6b=_0x158e62['locale'];for(const _0x1c820d of ti){if(!_0x158e62['plugins']['has'](_0x1c820d))continue;const _0x504a7f=_0x1c820d['slice'](0x0,-0x7)['toLowerCase'](),_0x3c3607='FORMAT_'+_0x504a7f['toUpperCase']();_0x1b415c['enableDefaultAttributesIntegration'](_0x504a7f),_0x1b415c['registerInlineAttribute'](_0x504a7f),_0x1b415c['descriptionFactory']['registerAttributeLabel'](_0x504a7f,o(_0x5ccc6b,_0x3c3607));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x444982=this['editor'],_0x1247cf=_0x444982['locale'],_0x3bbd30=_0x444982['plugins']['get']('TrackChangesEditing');function _0x34e5ef(_0x67ed75,_0x490496){_0x3bbd30['descriptionFactory']['registerDescriptionCallback'](_0x259032=>{if('formatInline'!=_0x259032['type'])return;const {data:_0x1b5a97}=_0x259032;return _0x1b5a97&&_0x1b5a97['commandName']===_0x67ed75?_0x1b5a97['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1247cf,'*Format:*\x20%0',_0x490496)}:{'type':'format','content':o(_0x1247cf,'*Remove\x20format:*\x20%0',_0x490496)}:void 0x0;});}_0x34e5ef('bold',o(_0x1247cf,'FORMAT_BOLD')),_0x34e5ef('italic',o(_0x1247cf,'FORMAT_ITALIC')),_0x34e5ef('underline',o(_0x1247cf,'FORMAT_UNDERLINE')),_0x34e5ef('code',o(_0x1247cf,'FORMAT_CODE')),_0x34e5ef('strikethrough',o(_0x1247cf,'FORMAT_STRIKETHROUGH')),_0x34e5ef('subscript',o(_0x1247cf,'FORMAT_SUBSCRIPT')),_0x34e5ef('superscript',o(_0x1247cf,'FORMAT_SUPERSCRIPT'));}}class F extends _0x31ef78{['afterInit'](){const _0x520ded=this['editor'],_0x448741=_0x520ded['locale'];if(!_0x520ded['plugins']['has']('BlockQuoteEditing'))return;const _0x433b87=_0x520ded['plugins']['get']('TrackChangesEditing'),_0xc06d2a=this['editor']['commands']['get']('blockQuote');_0x433b87['enableCommand']('blockQuote',(_0xb45b6,_0x5a7169={})=>{const _0x44c57c=this['editor']['model']['document']['selection'],_0x35e462=_0x5a7169&&void 0x0!==_0x5a7169['forceValue']?_0x5a7169['forceValue']:!_0xc06d2a['value'];let _0x18ab90=[];if(_0x35e462){const _0xcba69b=Array['from'](_0x44c57c['getSelectedBlocks']())['filter'](_0x1e54ae=>oo(_0x1e54ae)||function(_0x2b7c10,_0x1545e9){const _0x5da5e5=_0x1545e9['checkChild'](_0x2b7c10['parent'],'blockQuote'),_0x52cbe2=_0x1545e9['checkChild'](['$root','blockQuote'],_0x2b7c10);return _0x5da5e5&&_0x52cbe2;}(_0x1e54ae,this['editor']['model']['schema']));_0x18ab90=to(_0xcba69b,_0x520ded['model']);}else{const _0x4defdc=Array['from'](_0x44c57c['getSelectedBlocks']())['filter'](_0x5119db=>oo(_0x5119db));_0x18ab90=to(_0x4defdc,_0x520ded['model']);}_0x520ded['model']['change'](()=>{for(const _0x22f283 of _0x18ab90)_0x433b87['markBlockFormat'](_0x22f283,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x35e462}]});});}),_0x433b87['descriptionFactory']['registerDescriptionCallback'](_0x1f6529=>{const {data:_0x4abb3c}=_0x1f6529;if(_0x4abb3c&&'blockQuote'==_0x4abb3c['commandName']){const _0x5d7e69=o(_0x448741,'ELEMENT_BLOCK_QUOTE');return _0x4abb3c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x448741,'*Set\x20format:*\x20%0',_0x5d7e69)}:{'type':'format','content':o(_0x448741,'*Remove\x20format:*\x20%0',_0x5d7e69)};}});}}function oo(_0x3df1d4){return'blockQuote'==_0x3df1d4['parent']['name'];}class L extends _0x31ef78{['afterInit'](){const _0x142669=this['editor'],_0x2ffca6=_0x142669['locale'],_0x1ef09e=_0x142669['plugins']['get']('TrackChangesEditing');_0x142669['plugins']['has']('BookmarkEditing')&&(_0x1ef09e['enableCommand']('insertBookmark'),_0x1ef09e['enableDefaultAttributesIntegration']('updateBookmark'),_0x1ef09e['registerBlockAttribute']('bookmarkId'),_0x1ef09e['descriptionFactory']['registerDescriptionCallback'](_0x45511f=>{if('insertion'!=_0x45511f['type']&&'deletion'!=_0x45511f['type']&&'attribute'!=_0x45511f['type'])return;const _0x54ce19=_0x45511f['getContainedElement']();if(null==_0x54ce19)return;if(!_0x54ce19['is']('element','bookmark'))return;const _0x1a0bf6=_0x54ce19['getAttribute']('bookmarkId');if('insertion'==_0x45511f['type'])return{'type':'insertion','content':o(_0x2ffca6,'*Insert:*\x20%0','\x22'+_0x1a0bf6+'\x22\x20'+o(_0x2ffca6,'ELEMENT_BOOKMARK'))};if('deletion'==_0x45511f['type'])return{'type':'deletion','content':o(_0x2ffca6,'*Remove:*\x20%0','\x22'+_0x1a0bf6+'\x22\x20'+o(_0x2ffca6,'ELEMENT_BOOKMARK'))};const {data:_0x14f433}=_0x45511f;if(!_0x14f433||'bookmarkId'!=_0x14f433['key'])return;return{'type':'format','content':o(_0x2ffca6,'*Set\x20bookmark:*\x20%0','\x22'+_0x14f433['newValue']+'\x22')};}));}}class J extends _0x31ef78{['afterInit'](){const _0x1f795a=this['editor'];_0x1f795a['plugins']['has']('CaseChange')&&(_0x1f795a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1f795a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1f795a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x31ef78{['afterInit'](){const _0x32d4da=this['editor'];_0x32d4da['commands']['get']('ckbox')&&_0x32d4da['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x31ef78{['afterInit'](){const _0x4052ee=this['editor'];if(!_0x4052ee['plugins']['has']('CodeBlock'))return;const _0x4ef559=_0x4052ee['plugins']['get']('TrackChangesEditing'),_0x1cdebe=_0x4052ee['locale'],_0xe108a5=_0x4052ee['config']['get']('codeBlock')['languages'],_0x117eff=_0x4052ee['commands']['get']('codeBlock');_0x4ef559['enableCommand']('indentCodeBlock'),_0x4ef559['enableCommand']('outdentCodeBlock'),_0x4ef559['enableCommand']('codeBlock',(_0x5ef01e,_0xeb3171={})=>{const _0xf552db=_0x4052ee['model'],_0x52626f=_0x4052ee['model']['document']['selection'],_0x3b8ccf=_0xeb3171&&void 0x0!==_0xeb3171['forceValue']?_0xeb3171['forceValue']:!_0x117eff['value'];let _0x47141c;_0xeb3171['language']||(_0xeb3171['language']=_0xe108a5[0x0]['language']),_0x47141c=_0x3b8ccf?Array['from'](_0x52626f['getSelectedBlocks']())['filter'](_0x290ba9=>eo(_0x290ba9)||function(_0x10892c,_0x2d9864){if(_0x10892c['is']('rootElement')||_0x2d9864['isLimit'](_0x10892c))return!0x1;return _0x2d9864['checkChild'](_0x10892c['parent'],'codeBlock');}(_0x290ba9,_0xf552db['schema'])):Array['from'](_0x52626f['getSelectedBlocks']())['filter'](_0x5c2f5e=>eo(_0x5c2f5e));const _0x181ed5=to(_0x47141c,_0xf552db);_0xf552db['change'](()=>{for(const _0x29af2c of _0x181ed5)_0x4ef559['markBlockFormat'](_0x29af2c,{'commandName':'codeBlock','commandParams':[{..._0xeb3171,'forceValue':_0x3b8ccf}],'formatGroupId':'blockName'});});}),(_0x4ef559['descriptionFactory']['registerElementLabel']('codeBlock',_0x3ccffc=>o(_0x1cdebe,'ELEMENT_CODE_BLOCK',_0x3ccffc)),_0x4ef559['descriptionFactory']['registerDescriptionCallback'](_0x2fb05d=>{if('formatBlock'!=_0x2fb05d['type'])return;const _0x977ef2=_0x1cdebe['t'],{data:_0x46d16f}=_0x2fb05d;if(!_0x46d16f||'codeBlock'!=_0x46d16f['commandName'])return;const _0x1b5194=_0x46d16f['commandParams'][0x0]['language'],_0x9955ba=_0x977ef2(_0xe108a5['find'](_0x48d413=>_0x48d413['language']===_0x1b5194)['label'])['toLowerCase']();return _0x46d16f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1cdebe,'*Set\x20format:*\x20%0',o(_0x1cdebe,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x9955ba+')')}:{'type':'format','content':o(_0x1cdebe,'*Remove\x20format:*\x20%0',o(_0x1cdebe,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5bfde2){return'codeBlock'==_0x5bfde2['name'];}class z extends _0x31ef78{['afterInit'](){const _0x1ecc71=this['editor'];if(!_0x1ecc71['plugins']['has']('CommentsEditing'))return;_0x1ecc71['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x14a97d,_0x107f79,_0x3c14b2){const _0xf5d599=[];for(const _0x3dfbc2 of _0x107f79['getItems']())_0x3dfbc2['hasAttribute'](_0x14a97d)&&_0xf5d599['push'](_0x3c14b2['createRangeOn'](_0x3dfbc2));return _0xf5d599;}function De(_0x79ce72,_0x3603b0,{showActiveMarker:_0x23cf16=!0x0}={}){const _0x27c07d=_0x79ce72['plugins']['get']('TrackChangesEditing');return(_0x3aa8d2,_0x8c61b5,_0xec4950)=>{if(!_0xec4950['consumable']['test'](_0x8c61b5['markerRange'],_0x3aa8d2['name']))return;const _0xd3e370=_0x8c61b5['markerRange']['getWalker'](),_0x567dfd=_0x8c61b5['markerRange']['start'],_0x40c5f6=_0x79ce72['model']['schema'];let _0x39a916=null,_0x5d0bdc=null,_0xad35b1=!0x1,_0x506184=!0x1;for(const _0x129551 of _0xd3e370){const _0x1e1b2d=_0x129551['item'];_0xad35b1=_0xad35b1||_0x40c5f6['isContent'](_0x1e1b2d);const _0xa1eedb=_0xec4950['mapper']['toViewElement'](_0x1e1b2d);if(_0xa1eedb&&_0xa1eedb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x129551['type']&&(_0x40c5f6['isBlock'](_0x1e1b2d)&&!_0x40c5f6['isLimit'](_0x1e1b2d)&&(_0x1e1b2d['nextSibling']||_0x567dfd['isAtEnd']?_0x39a916&&_0x39a916['parent']==_0x1e1b2d||(_0x39a916=_0x1e1b2d,_0x236e08(_0x129551['previousPosition']),_0x506184=!0x0):_0x5d0bdc=_0x5d0bdc||_0x129551['previousPosition']));}function _0x236e08(_0x4993cf){const {authorId:_0x977f36}=_0x27c07d['_splitMarkerName'](_0x8c61b5['markerName']),_0x53c740=_0xec4950['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3603b0,'data-author-id':_0x977f36}),_0x239dd0=_0xec4950['mapper']['toViewPosition'](_0x4993cf);_0x23cf16&&_0x27c07d['activeMarkers']['includes'](_0x8c61b5['markerName'])&&_0xec4950['writer']['addClass']('ck-suggestion-marker--active',_0x53c740),_0xec4950['writer']['insert'](_0x239dd0,_0x53c740),_0xec4950['mapper']['bindElementToMarker'](_0x53c740,_0x8c61b5['markerName']);}_0xad35b1||_0x506184||!_0x5d0bdc||_0x236e08(_0x5d0bdc);};}class K extends _0x31ef78{static get['requires'](){return[_0xb39944];}['init'](){const _0x32e6c0=this['editor'],_0x2c8113=_0x32e6c0['plugins']['get']('TrackChangesEditing');_0x2c8113['enableCommand']('delete');const _0x52b35e=_0x32e6c0['commands']['get']('deleteForward');_0x2c8113['enableCommand']('deleteForward',(_0x736d46,_0x2acb97={})=>{const _0x26c6f2=_0x32e6c0['model']['createSelection'](_0x32e6c0['model']['document']['selection']);_0x26c6f2['isCollapsed']&&_0x32e6c0['model']['modifySelection'](_0x26c6f2,{'direction':'forward','unit':_0x2acb97['unit']});const _0x14a2b9=_0x26c6f2['getFirstRange'](),_0x4de2c2=_0x512f92['fromRange'](_0x14a2b9);let _0x3b6e31;_0x736d46(_0x2acb97),_0x3b6e31='$graveyard'==_0x4de2c2['root']['rootName']?_0x32e6c0['model']['createRange'](_0x14a2b9['start']):_0x32e6c0['model']['createRange'](_0x4de2c2['start'],_0x4de2c2['end']),_0x4de2c2['detach'](),_0x32e6c0['model']['enqueueChange'](_0x52b35e['buffer']['batch'],_0x181441=>{_0x52b35e['buffer']['lock'](),_0x181441['setSelection'](_0x181441['createRange'](_0x3b6e31['end'])),_0x52b35e['buffer']['unlock']();});}),_0x32e6c0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x32e6c0,'merge'),{'priority':'high'}),_0x32e6c0['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x41c09b,_0x1706e6,_0x54acbb)=>{_0x54acbb['options']['showSuggestionHighlights']&&De(_0x32e6c0,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x41c09b,_0x1706e6,_0x54acbb);},{'priority':'high'}),_0x32e6c0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3ecaae,_0x1d0a10,_0x2b63ab)=>{const _0x3d49a9=_0x2b63ab['mapper']['markerNameToElements'](_0x1d0a10['markerName']);if(_0x3d49a9){for(const _0x5d0bff of _0x3d49a9)_0x5d0bff['is']('uiElement')&&(_0x2b63ab['mapper']['unbindElementFromMarkerName'](_0x5d0bff,_0x1d0a10['markerName']),_0x2b63ab['writer']['remove'](_0x5d0bff));}},{'priority':'high'});}}class W extends _0x31ef78{['afterInit'](){const _0x476b20=this['editor'];if(!_0x476b20['plugins']['has']('ListEditing'))return;const _0xff949=_0x476b20['locale'],_0x5dfc9b=_0x476b20['plugins']['get']('TrackChangesEditing'),_0x4773c1=_0x476b20['plugins']['has']('TodoListEditing'),_0x299abd=!!_0x476b20['config']['get']('list.multiBlock');function _0x132b64(_0x76b06e){return{'type':'format','content':''+o(_0xff949,'*Set\x20format:*\x20%0',_0x76b06e)};}function _0x58a367(_0x2ac314){return{'type':'format','content':''+o(_0xff949,'*Remove\x20format:*\x20%0',_0x2ac314)};}_0x5dfc9b['enableDefaultAttributesIntegration']('numberedList'),_0x5dfc9b['enableDefaultAttributesIntegration']('bulletedList'),_0x5dfc9b['enableDefaultAttributesIntegration']('customNumberedList'),_0x5dfc9b['enableDefaultAttributesIntegration']('customBulletedList'),_0x5dfc9b['enableDefaultAttributesIntegration']('indentList'),_0x5dfc9b['enableDefaultAttributesIntegration']('outdentList'),_0x5dfc9b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5dfc9b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5dfc9b['registerBlockAttribute']('listItemId'),_0x5dfc9b['registerBlockAttribute']('listType'),_0x5dfc9b['registerBlockAttribute']('listIndent'),_0x299abd&&(_0x5dfc9b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5dfc9b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4773c1&&(_0x5dfc9b['enableDefaultAttributesIntegration']('todoList'),_0x5dfc9b['enableDefaultAttributesIntegration']('checkTodoList'),_0x5dfc9b['registerBlockAttribute']('todoListChecked'),_0x5dfc9b['descriptionFactory']['registerDescriptionCallback'](_0x5b5b9a=>{const {data:_0x58bda7}=_0x5b5b9a;if(_0x58bda7&&'todoListChecked'==_0x58bda7['key'])return{'type':'format','content':_0x58bda7['newValue']?o(_0xff949,'*Check\x20item*'):o(_0xff949,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x21eb6d=>{if(_0x21eb6d['batch']['isUndo'])return!0x1;let _0x5aa1d5=!0x1;const _0xfd4bfc=_0x5dfc9b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c86b5=>'todoListChecked'===_0x5dfc9b['_getAttributeKey'](_0x5c86b5));for(const _0x468208 of _0xfd4bfc){'todo'!=_0x468208['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5dfc9b['_findSuggestions'](_0x468208['getFirstRange'](),'attribute')['find'](_0x456369=>'listType'===_0x5dfc9b['_getAttributeKey'](_0x456369['suggestion']))||(_0x21eb6d['removeMarker'](_0x468208['getFirstMarker']()),_0x5aa1d5=!0x0));}return _0x5aa1d5;})),_0x5dfc9b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xff949,'FORMAT_INDENT'));const _0x1452f6={'type':'format','content':''};_0x5dfc9b['descriptionFactory']['registerDescriptionCallback'](_0xc18c3a=>{const {data:_0x324a81}=_0xc18c3a;if(!_0x324a81||'listType'!=_0x324a81['key'])return;let _0x16abdb=_0xc18c3a['head'];for(;_0x16abdb;){if(_0x16abdb['data']&&(('listStyle'==_0x16abdb['data']['key']||'listMarkerStyle'==_0x16abdb['data']['key'])&&(_0x16abdb['data']['newValue']&&'default'!=_0x16abdb['data']['newValue']||'default'!=_0x16abdb['data']['oldValue']&&!_0x324a81['newValue'])||!_0x299abd&&_0x16abdb['data']['key']==m))return _0x1452f6;_0x16abdb=_0x16abdb['next'];}if(null==_0x324a81['newValue'])switch(_0x324a81['oldValue']){case'bulleted':return _0x58a367(o(_0xff949,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58a367(o(_0xff949,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58a367(o(_0xff949,'ELEMENT_TODO_LIST'));}switch(_0x324a81['newValue']){case'bulleted':return _0x132b64(o(_0xff949,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x132b64(o(_0xff949,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x132b64(o(_0xff949,'ELEMENT_TODO_LIST'));}}),_0x5dfc9b['descriptionFactory']['registerDescriptionCallback'](_0x3cb2bb=>{const {data:_0x93dfe5}=_0x3cb2bb;if(_0x93dfe5&&'listIndent'==_0x93dfe5['key'])return null==_0x93dfe5['newValue']||null==_0x93dfe5['oldValue']&&0x0==_0x93dfe5['newValue']?_0x1452f6:void 0x0;}),_0x5dfc9b['descriptionFactory']['registerDescriptionCallback'](_0x3a7b7a=>{if('attribute'!=_0x3a7b7a['type'])return;const {data:_0x51b9a9}=_0x3a7b7a;if(!_0x51b9a9||'listItemId'!=_0x51b9a9['key'])return;const _0x427c3b=Te(_0x3a7b7a);return'newValue'==_0x427c3b?{'type':'format','content':o(_0xff949,'*Merge:*\x20list\x20item')}:'oldValue'==_0x427c3b?{'type':'format','content':o(_0xff949,'*Split:*\x20list\x20item')}:_0x1452f6;}),_0x476b20['model']['document']['registerPostFixer'](_0x57bf0d=>this['listItemIdFixer'](_0x57bf0d)),_0x476b20['model']['document']['registerPostFixer'](_0x1eb625=>this['noTrackChangesFixer'](_0x1eb625)),_0x476b20['model']['document']['on']('change:data',(_0x4e806e,_0x2aea1e)=>{if(_0x2aea1e['isUndo']||!_0x2aea1e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x140b4c){if(_0x140b4c['batch']['isUndo']||!_0x140b4c['batch']['isLocal'])return!0x1;let _0xe29613=!0x1;const _0x4c1e1e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f4e65=>_0x4f4e65['data']&&'listItemId'==_0x4f4e65['data']['key'])['filter'](_0x1c6263=>_0x1c6263['data']['newValue']&&_0x1c6263['data']['oldValue']);for(const _0x5c621d of _0x4c1e1e)Te(_0x5c621d)||(_0x140b4c['removeMarker'](_0x5c621d['getFirstMarker']()),_0xe29613=!0x0);return _0xe29613;}['noTrackChangesFixer'](_0x5bc972){if(_0x5bc972['batch']['isUndo']||!_0x5bc972['batch']['isLocal'])return!0x1;const _0x256b89=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x256b89['trackChangesCommand']['value'])return!0x1;let _0x237bac=!0x1;const _0x14e91=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x59b7f1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x28e1f4=>'attribute'==_0x28e1f4['type'])['filter'](_0x3ae329=>_0x14e91['includes'](_0x3ae329['attributeKey']));if(0x0==_0x59b7f1['length'])return _0x237bac;for(const _0x18f7a4 of _0x59b7f1){const _0x5a22f8=_0x256b89['_findSuggestions'](_0x18f7a4['range'],'attribute')['filter'](_0x57c49b=>!_0x57c49b['meta']['isNextTo'])['map'](_0x1d8feb=>_0x1d8feb['suggestion'])['filter'](_0x48cc33=>{const _0x4f18f5=_0x256b89['_getAttributeKey'](_0x48cc33);return _0x14e91['includes'](_0x4f18f5);});if(_0x5a22f8['length']){for(const _0x506e6c of _0x5a22f8)_0x5bc972['removeMarker'](_0x506e6c['getFirstMarker']());_0x237bac=!0x0;}}return _0x237bac;}['assureChains'](){const _0x5bd905=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4846be=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x21545f;const _0x181f45=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x248c47=>{if(_0x248c47['data']['oldRange']||!_0x248c47['data']['newRange'])return null;if(!_0x248c47['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4ebeba}=_0x5bd905['_splitMarkerName'](_0x248c47['name']);if(!_0x5bd905['hasSuggestion'](_0x4ebeba))return null;const _0x4d5075=_0x5bd905['getSuggestion'](_0x4ebeba);return _0x4846be['includes'](_0x4d5075['data']['key']);})['map'](_0x426259=>{const {id:_0x88bcb0}=_0x5bd905['_splitMarkerName'](_0x426259['name']),_0x1a8850=_0x5bd905['getSuggestion'](_0x88bcb0);return _0x21545f=_0x1a8850['attributes']['groupId'],_0x1a8850['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x181f45['size'])return;const _0x4d2232=_0x5bd905['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58f047=>'attribute'==_0x58f047['type']&&_0x58f047['data']&&_0x4846be['includes'](_0x58f047['data']['key'])&&_0x58f047['attributes']['groupId']!=_0x21545f)['map'](_0x28bd2b=>({'listItem':_0x28bd2b['getFirstRange']()['start']['nodeAfter'],'groupId':_0x28bd2b['attributes']['groupId']})),_0x5a8ca6=new Set();for(const {groupId:_0x108fe0,listItem:_0x309406}of _0x4d2232)_0x181f45['has'](_0x309406)&&_0x5a8ca6['add'](_0x108fe0);for(const _0x44f54e of _0x5bd905['getSuggestions']())_0x5a8ca6['has'](_0x44f54e['attributes']['groupId'])&&_0x44f54e['setAttribute']('groupId',_0x21545f);}['_supportLegacySuggestions'](){const _0x2c1a8f=this['editor'],_0x55b841=_0x2c1a8f['locale'],_0x2a0c1b=_0x2c1a8f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2a0c1b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2fc179,_0x481cf6){const _0x56fb6b=[];for(let _0x105a07 of _0x2fc179)_0x105a07['start']['nodeAfter']===_0x105a07['end']['parent']&&(_0x105a07=_0x2c1a8f['model']['createRange'](_0x2c1a8f['model']['createPositionAt'](_0x105a07['start']['nodeAfter'],0x0))),_0x56fb6b['push'](_0x105a07);_0x2c1a8f['model']['change'](_0x144b7b=>{const _0x133c4d=_0x2c1a8f['model']['document']['selection'],_0x55b863=Array['from'](_0x133c4d['getRanges']())['map'](_0x878fd1=>_0x512f92['fromRange'](_0x878fd1));_0x144b7b['setSelection'](_0x56fb6b),_0x2c1a8f['commands']['get'](_0x481cf6['commandName'])['refresh'](),_0x481cf6['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2c1a8f['execute'](_0x481cf6['commandName'],..._0x481cf6['commandParams']),_0x144b7b['setSelection'](_0x55b863);for(const _0xa8dda7 of _0x55b863)_0xa8dda7['detach']();});}),_0x2a0c1b['descriptionFactory']['registerElementLabel'](function(_0x10028f){const _0x3e2d31=!_0x2c1a8f['model']['schema']['isObject'](_0x10028f),_0x24dd2c=_0x10028f['previousSibling'],_0x1d3a84=_0x10028f['nextSibling'],_0x3ca533=_0x10028f['getAttribute']('listItemId'),_0x4e3d34=!_0x24dd2c||_0x24dd2c['getAttribute']('listItemId')!==_0x3ca533,_0x37d8a1=!_0x1d3a84||_0x1d3a84['getAttribute']('listItemId')!==_0x3ca533;return _0x3e2d31&&Boolean(_0x3ca533)&&_0x4e3d34&&_0x37d8a1;},_0x558ba2=>o(_0x55b841,'ELEMENT_LIST_ITEM',_0x558ba2));}['_registerLegacyDescription'](){const _0x3d8bee=this['editor'],_0x56af66=_0x3d8bee['locale'];function _0x4fd605(_0x2a2991){const _0x2b5c20=_0x3d8bee['commands']['get']('bulletedList')['value'],_0x20f85c=_0x3d8bee['commands']['get']('numberedList')['value'];return'numberedList'===_0x2a2991?_0x2b5c20:_0x20f85c;}_0x3d8bee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x352261){if('formatBlock'!=_0x352261['type'])return;const {data:_0x11bb18}=_0x352261;if(!_0x11bb18)return;let _0x315f69,_0x39da83,_0x50a0bb,_0x8c84ab;switch(_0x11bb18['commandName']){case'bulletedList':_0x50a0bb=_0x11bb18['commandParams'][0x0]['forceValue'],_0x8c84ab=_0x4fd605(_0x11bb18['commandName']),_0x315f69=_0x50a0bb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x8c84ab&&_0x3d8bee['config']['get']('list.multiBlock')||(_0x315f69='*Change\x20to:*\x20%0'),_0x39da83={'type':'format','content':o(_0x56af66,_0x315f69,o(_0x56af66,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x50a0bb=_0x11bb18['commandParams'][0x0]['forceValue'],_0x8c84ab=_0x4fd605(_0x11bb18['commandName']),_0x315f69=_0x50a0bb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x8c84ab&&_0x3d8bee['config']['get']('list.multiBlock')||(_0x315f69='*Change\x20to:*\x20%0'),_0x39da83={'type':'format','content':o(_0x56af66,_0x315f69,o(_0x56af66,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x315f69='*Indent:*\x20%0',_0x39da83={'type':'format','content':o(_0x56af66,_0x315f69,o(_0x56af66,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x315f69=function(_0x3e4ffb){const _0xc5474e=_0x3e4ffb['getFirstRange']();let _0x2dde27=_0xc5474e['start']['nodeAfter'];for(;_0x2dde27&&_0xc5474e['containsItem'](_0x2dde27);){if(_0x2dde27['getAttribute']('listIndent')>0x0)return!0x1;_0x2dde27=_0x2dde27['nextSibling'];}return!0x0;}(_0x352261)?o(_0x56af66,'*Format:*\x20remove\x20from\x20%0',o(_0x56af66,function(_0x308a36){return'ELEMENT_'+_0x308a36['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x352261))):o(_0x56af66,'*Outdent:*\x20%0',o(_0x56af66,'ELEMENT_LIST_ITEM')),_0x39da83={'type':'format','content':_0x315f69};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x11bb18['multipleBlocks']&&(_0x315f69='*Merge:*\x20%0',_0x39da83={'type':'deletion','content':o(_0x56af66,_0x315f69,o(_0x56af66,'ELEMENT_LIST_ITEM'))});}return _0x39da83;});}}function Te(_0x450cbf){let _0xbd2574=_0x450cbf['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xbd2574;){const _0x3f9138=_0xbd2574['getAttribute']('listItemId');if(!_0x3f9138)return!0x1;if(_0x3f9138==_0x450cbf['data']['newValue'])return'newValue';if(_0x3f9138==_0x450cbf['data']['oldValue'])return'oldValue';_0xbd2574=_0xbd2574['previousSibling'];}return!0x1;}class Se extends _0x31ef78{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x17733a=this['editor']['config']['get']('list.properties'),_0x20f4e6=this['editor']['plugins']['get']('TrackChangesEditing');_0x17733a['styles']&&(_0x20f4e6['enableDefaultAttributesIntegration']('listStyle'),_0x20f4e6['registerBlockAttribute']('listStyle')),_0x17733a['reversed']&&(_0x20f4e6['enableDefaultAttributesIntegration']('listReversed'),_0x20f4e6['registerBlockAttribute']('listReversed')),_0x17733a['startIndex']&&(_0x20f4e6['enableDefaultAttributesIntegration']('listStart'),_0x20f4e6['registerBlockAttribute']('listStart'));const _0x329d41={'type':'format','content':''};_0x20f4e6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x167f4a=this['editor']['locale'];_0x20f4e6['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x167f4a,'FORMAT_LIST_REVERSED')),_0x20f4e6['descriptionFactory']['registerDescriptionCallback'](_0x50a4ff=>{const {data:_0x1c9f90}=_0x50a4ff;if(_0x1c9f90&&'listReversed'==_0x1c9f90['key'])return null==_0x1c9f90['newValue']||0x0==_0x1c9f90['newValue']&&null==_0x1c9f90['oldValue']?_0x329d41:void 0x0;}),_0x20f4e6['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x167f4a,'FORMAT_LIST_START')),_0x20f4e6['descriptionFactory']['registerDescriptionCallback'](_0x539064=>{const {data:_0xed2659}=_0x539064;if(_0xed2659&&'listStart'==_0xed2659['key'])return null==_0xed2659['newValue']||0x1==_0xed2659['newValue']&&null==_0xed2659['oldValue']?_0x329d41:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x578403=>{if(_0x578403['batch']['isUndo'])return!0x1;let _0x2ae5cb=!0x1;const _0x371956=_0x20f4e6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30624d=>{const _0x2df3a8=_0x20f4e6['_getAttributeKey'](_0x30624d);return'listStart'==_0x2df3a8||'listReversed'==_0x2df3a8;});for(const _0x3afc16 of _0x371956){const _0x33064e=_0x3afc16['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x33064e||'customNumbered'==_0x33064e)continue;_0x20f4e6['_findSuggestions'](_0x3afc16['getFirstRange'](),'attribute')['find'](_0x2c31e0=>'listType'==_0x20f4e6['_getAttributeKey'](_0x2c31e0['suggestion']))||(_0x578403['removeMarker'](_0x3afc16['getFirstMarker']()),_0x2ae5cb=!0x0);}return _0x2ae5cb;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5d4cd3){const _0x1c88a9=this['editor']['locale'],{data:_0x31cd86}=_0x5d4cd3,_0x366fa0={'type':'format','content':''};if(!_0x31cd86||'listStyle'!=_0x31cd86['key'])return;if(!_0x31cd86['oldValue'])return'default'==_0x31cd86['newValue']?_0x366fa0:{'type':'format','content':''+o(_0x1c88a9,'*Set\x20format:*\x20%0',o(_0x1c88a9,this['_getTranslationKeyForListStyle'](_0x31cd86['newValue'])))};if(!_0x31cd86['newValue']){if('default'==_0x31cd86['oldValue'])return _0x366fa0;let _0x16ab14=_0x5d4cd3['head'];for(;_0x16ab14;){if(_0x16ab14['data']&&'listType'==_0x16ab14['data']['key']&&_0x16ab14['data']['newValue'])return _0x366fa0;_0x16ab14=_0x16ab14['next'];}return{'type':'format','content':''+o(_0x1c88a9,'*Remove\x20format:*\x20%0',o(_0x1c88a9,this['_getTranslationKeyForListStyle'](_0x31cd86['oldValue'])))};}if('default'!=_0x31cd86['newValue'])return{'type':'format','content':''+o(_0x1c88a9,'*Set\x20format:*\x20%0',o(_0x1c88a9,this['_getTranslationKeyForListStyle'](_0x31cd86['newValue'])))};let _0x15d7b1=_0x5d4cd3['head'];for(;_0x15d7b1;){if(_0x15d7b1['data']&&'listType'==_0x15d7b1['data']['key']&&_0x15d7b1['data']['newValue']&&_0x15d7b1['data']['oldValue'])return _0x366fa0;_0x15d7b1=_0x15d7b1['next'];}return{'type':'format','content':o(_0x1c88a9,'*Set\x20format:*\x20%0',o(_0x1c88a9,'ELEMENT_'+_0x5d4cd3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1bb145=this['editor'],_0x501a98=_0x1bb145['locale'];_0x1bb145['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cb10e=>{if('formatBlock'!=_0x4cb10e['type'])return;const {data:_0x180420}=_0x4cb10e;if(!_0x180420)return;let _0x362917,_0x2217f8;switch(_0x180420['commandName']){case'listStyle':_0x362917='*Change\x20to:*\x20%0',_0x2217f8={'type':'format','content':o(_0x501a98,_0x362917,o(_0x501a98,this['_getTranslationKeyForListStyle'](_0x180420['commandParams'][0x0]['type'])))};break;case'listReversed':_0x362917=_0x180420['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2217f8={'type':'format','content':o(_0x501a98,_0x362917)};break;case'listStart':_0x362917='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2217f8={'type':'format','content':o(_0x501a98,_0x362917,_0x180420['commandParams'][0x0]['startIndex'])};}return _0x2217f8;});}['_getTranslationKeyForListStyle'](_0x36b046){return'ELEMENT_'+function(_0x194d63){if(_e['includes'](_0x194d63))return'bulleted';if(Re['includes'](_0x194d63))return'numbered';return null;}(_0x36b046)['toUpperCase']()+'_LIST_'+_0x36b046['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x31ef78{['afterInit'](){const _0x1c67f6=this['editor'];_0x1c67f6['commands']['get']('emoji')&&_0x1c67f6['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x31ef78{static get['requires'](){return[_0xc112e4];}['init'](){const _0x3a19ee=this['editor'],_0x285734=_0x3a19ee['plugins']['get']('TrackChangesEditing'),_0xcff9=_0x3a19ee['commands']['get']('enter');_0x285734['enableCommand']('enter',()=>{_0x3a19ee['model']['change'](_0x17f633=>{const _0x5e0d61=_0x3a19ee['model']['document']['selection'],_0xf8f8d6=_0x5e0d61['getFirstPosition'](),_0x50d6cd=_0x512f92['fromRange'](_0x5e0d61['getFirstRange']());if(_0xcff9['enterBlock'](_0x17f633)){const _0x3d7118=_0x3a19ee['model']['createPositionAt'](_0xf8f8d6['parent']['nextSibling'],0x0),_0xedd4f6=_0x17f633['createRange'](_0xf8f8d6,_0x3d7118);_0x285734['markInsertion'](_0xedd4f6);}else _0x17f633['setSelection'](_0x17f633['createRange'](_0x50d6cd['end']));_0x50d6cd['detach'](),_0xcff9['fire']('afterExecute',{'writer':_0x17f633});});}),_0x3a19ee['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x3a19ee,'split'),{'priority':'high'}),_0x3a19ee['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1a88bc,_0x3acf84,_0x502663)=>{const _0x413234=_0x502663['mapper']['markerNameToElements'](_0x3acf84['markerName']);if(_0x413234){for(const _0x4b2fd4 of _0x413234)_0x4b2fd4['hasClass']('ck-suggestion-marker-split')&&(_0x502663['mapper']['unbindElementFromMarkerName'](_0x4b2fd4,_0x3acf84['markerName']),_0x502663['writer']['remove'](_0x4b2fd4));}},{'priority':'high'}),_0x3a19ee['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5abeed,_0x3944a7,_0x7ccff4)=>{_0x7ccff4['options']['showSuggestionHighlights']&&De(_0x3a19ee,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5abeed,_0x3944a7,_0x7ccff4);},{'priority':'high'});}}class Z extends _0x31ef78{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1536ee=this['editor']['plugins']['get']('TrackChangesEditing');_0x1536ee['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1536ee['enableCommand']('findNext'),_0x1536ee['enableCommand']('findPrevious'),_0x1536ee['enableCommand']('replace'),_0x1536ee['enableCommand']('replaceAll');}['handleFindCommand'](_0x40961c,_0x5c6093,_0x9874be={}){const _0x4a688e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x40961c(_0x87eb61=>{let _0x38ec41=('string'==typeof _0x5c6093?_0x4a688e['findByTextCallback'](_0x5c6093,_0x9874be):_0x5c6093)(_0x87eb61);Array['isArray'](_0x38ec41)&&(_0x38ec41={'results':_0x38ec41,'searchText':'string'==typeof _0x5c6093?_0x5c6093:''});const _0x6f5d93=_0x38ec41['results']['filter'](_0x4c2abe=>!0x1===this['_isInDeletionRange'](_0x4c2abe,_0x87eb61['item']));return{..._0x38ec41,'results':_0x6f5d93};},_0x9874be);}['_isInDeletionRange'](_0x5669ef,_0x34b840){const _0x14007d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34b840,_0x5669ef['start']),this['editor']['model']['createPositionAt'](_0x34b840,_0x5669ef['end']));for(const _0x378e56 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x14007d['getIntersection'](_0x378e56['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x31ef78{['afterInit'](){const _0x1f9ac1=this['editor']['locale'],_0x4f6907=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3ec63a,commandName:_0x15ec84}of ro)this['editor']['plugins']['has'](_0x3ec63a)&&(_0x4f6907['enableDefaultAttributesIntegration'](_0x15ec84),_0x4f6907['registerInlineAttribute'](_0x15ec84));_0x4f6907['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1f9ac1,'FORMAT_FONT_SIZE')),_0x4f6907['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1f9ac1,'FORMAT_FONT_FAMILY')),_0x4f6907['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1f9ac1,'FORMAT_FONT_COLOR')),_0x4f6907['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1f9ac1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ca470=this['editor'],_0x11c6d5=_0x4ca470['locale'];_0x4ca470['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55d357=>{const _0x166f93=_0x11c6d5['t'];if('formatInline'!=_0x55d357['type'])return;const {data:_0x37fecb}=_0x55d357;if(null!=_0x37fecb){if('fontSize'==_0x37fecb['commandName']){const _0xaefbd5=_0x37fecb['commandParams'][0x0]['value'];if(_0xaefbd5){const _0x3401b8=_0x166f93(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x47c11f=>_0x47c11f['model']==_0xaefbd5)['title'])['toLowerCase']();return{'type':'format','content':o(_0x11c6d5,'*Set\x20font\x20size:*\x20%0',_0x3401b8)};}return{'type':'format','content':o(_0x11c6d5,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x37fecb['commandName']){const _0x4d4913=_0x37fecb['commandParams'][0x0]['value'];return _0x4d4913?{'type':'format','content':o(_0x11c6d5,'*Set\x20font\x20family:*\x20%0',_0x4d4913)}:{'type':'format','content':o(_0x11c6d5,'*Reset\x20font\x20family*')};}if('fontColor'==_0x37fecb['commandName']){const _0x40f0b0=_0x37fecb['commandParams'][0x0]['value'];if(_0x40f0b0){const _0x32fb13=_0x3eaa39(this['editor']['config']['get']('fontColor.colors'))['find'](_0x988a90=>_0x988a90['model']==_0x40f0b0);let _0x44ae1f=_0x40f0b0,_0x40773a='';return _0x32fb13&&(_0x44ae1f=_0x32fb13['label'],_0x40773a=_0x166f93(_0x44ae1f)['toLowerCase']()),{'type':'format','content':o(_0x11c6d5,'*Set\x20font\x20color:*\x20%0',_0x40773a)['trim'](),'color':{'value':_0x40f0b0,'title':_0x40773a||_0x44ae1f}};}return{'type':'format','content':o(_0x11c6d5,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x37fecb['commandName']){const _0x41c7fc=_0x37fecb['commandParams'][0x0]['value'];if(_0x41c7fc){const _0x35843b=_0x3eaa39(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2ec83c=>_0x2ec83c['model']==_0x41c7fc);let _0x33f168=_0x41c7fc,_0x1a0509='';return _0x35843b&&(_0x33f168=_0x35843b['label'],_0x1a0509=_0x166f93(_0x33f168)['toLowerCase']()),{'type':'format','content':o(_0x11c6d5,'*Set\x20font\x20background\x20color:*\x20%0',_0x1a0509)['trim'](),'color':{'value':_0x41c7fc,'title':_0x1a0509||_0x33f168}};}return{'type':'format','content':o(_0x11c6d5,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x31ef78{['afterInit'](){const _0x380eb2=this['editor'],_0x308ae4=_0x380eb2['plugins']['get']('TrackChangesEditing'),_0xe0ea2c=_0x380eb2['commands']['get']('copyFormat'),_0x27999e=_0x380eb2['commands']['get']('pasteFormat');_0xe0ea2c&&_0x27999e&&(_0x308ae4['enableDefaultAttributesIntegration']('pasteFormat'),_0x308ae4['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x282764=this['editor'],_0x38fe59=_0x282764['locale'];_0x282764['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x460386=>{if('formatBlock'!=_0x460386['type']&&'formatInline'!=_0x460386['type'])return;const {data:_0x25bb7c}=_0x460386;if(_0x25bb7c&&'pasteFormat'===_0x25bb7c['commandName']){const _0x406440=[],_0x15914d=_0x25bb7c['commandParams'][0x0];for(const [_0x52e55d,_0x128b5d]of Object['entries'](_0x15914d))_0x406440['push'](so(_0x282764,_0x52e55d,_0x128b5d));return _0x406440['length']?{'type':'format','content':o(_0x38fe59,'*Set\x20format\x20to:*\x20%0',_0x406440['join'](',\x20'))}:{'type':'format','content':o(_0x38fe59,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3e2441,_0x44ca0d,_0x12f37c){const _0x5438f6=_0x3e2441['locale']['t'],_0x4d2567=_0x44ca0d['split'](/(?=[A-Z])/)['join']('\x20'),_0x4f9fc7=_0x5438f6(_0x4d2567['charAt'](0x0)['toUpperCase']()+_0x4d2567['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x12f37c)return _0x4f9fc7;if('fontColor'===_0x44ca0d||'fontBackgroundColor'===_0x44ca0d){const _0x127115=_0x3eaa39(_0x3e2441['config']['get']('fontColor.colors'))['find'](_0x483479=>_0x483479['model']==_0x12f37c);return _0x4f9fc7+'\x20('+(_0x127115?_0x5438f6(_0x127115['label'])['toLowerCase']():_0x12f37c)+')';}if('fontSize'===_0x44ca0d&&isNaN(parseFloat(_0x12f37c))){const _0x360cf5=_0x3e2441['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3e2441['config']['get']('fontSize.options'))['find'](_0x30f6a6=>_0x30f6a6['model']==_0x12f37c);return _0x4f9fc7+'\x20('+(_0x360cf5?_0x5438f6(_0x360cf5['title'])['toLowerCase']():_0x12f37c)+')';}return _0x4f9fc7+'\x20('+_0x12f37c+')';}class it extends _0x31ef78{['_headingOptions'];['afterInit'](){const _0x35bc71=this['editor'];if(!_0x35bc71['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x35bc71['config']['get']('heading.options');const _0x5662e6=_0x35bc71['locale'],_0x224ea7=_0x35bc71['plugins']['get']('TrackChangesEditing');_0x224ea7['enableDefaultAttributesIntegration']('heading');for(const _0x1535bb of this['_headingOptions'])'paragraph'!=_0x1535bb['model']&&_0x224ea7['descriptionFactory']['registerElementLabel'](_0x1535bb['model'],_0x5b5ce4=>{const _0x298e87=this['_getHeadingLevel'](_0x1535bb['model']);return null!==_0x298e87?_0x1d9985(_0x5b5ce4,_0x298e87):_0x290bff(_0x5b5ce4,_0x1535bb['title']);});function _0x1d9985(_0x5cf748,_0x5f431d){return o(_0x5662e6,'ELEMENT_HEADING',[_0x5cf748,_0x5f431d]);}function _0x290bff(_0x2eb600,_0x4e45e1){return o(_0x5662e6,'ELEMENT_HEADING_CUSTOM',[_0x2eb600,_0x4e45e1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x290b70=this['editor'],_0x311d1a=_0x290b70['locale'];function _0x5c125e(_0x39e521,_0x1d5e2b){return o(_0x311d1a,'ELEMENT_HEADING_CUSTOM',[_0x39e521,_0x1d5e2b]);}_0x290b70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55ae7a=>{if('formatBlock'!=_0x55ae7a['type'])return;const {data:_0x13f48a}=_0x55ae7a;if(_0x13f48a&&'heading'==_0x13f48a['commandName']){const _0x18721a=_0x13f48a['commandParams'][0x0]['value'],_0x1eb124=this['_getHeadingLevel'](_0x18721a);if(null!==_0x1eb124)return{'type':'format','content':o(_0x311d1a,'*Change\x20to:*\x20%0',(_0x29a60d=0x1,_0x337bba=_0x1eb124,o(_0x311d1a,'ELEMENT_HEADING',[_0x29a60d,_0x337bba])))};const _0x128ab6=this['_headingOptions']['find'](_0x4837cd=>_0x4837cd['model']===_0x18721a)['title'];return{'type':'format','content':o(_0x311d1a,'*Change\x20to:*\x20%0',_0x5c125e(0x1,_0x128ab6))};}var _0x29a60d,_0x337bba;});}['_getHeadingLevel'](_0x1c56f2){const _0x16b70f=_0x1c56f2['match'](/^heading(\d+)/);if(_0x16b70f)return _0x16b70f[0x1];const _0x33efa5=this['_headingOptions']?.['find'](_0x166c46=>_0x166c46['model']==_0x1c56f2);if(_0x33efa5&&_0x33efa5['view']){const _0x4b5488=_0x33efa5['view'],_0x32d802=(_0x4b5488['name']??_0x4b5488)['match'](/^h(\d+)/);if(_0x32d802)return _0x32d802[0x1];}return null;}}class et extends _0x31ef78{['afterInit'](){const _0x454136=this['editor'];if(!_0x454136['plugins']['has']('HighlightEditing'))return;const _0x377359=_0x454136['plugins']['get']('TrackChangesEditing'),_0x568973=_0x454136['locale'];_0x377359['enableDefaultAttributesIntegration']('highlight'),_0x377359['registerInlineAttribute']('highlight'),_0x377359['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x568973,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d65cd=this['editor'],_0x285d6c=_0x2d65cd['locale'];_0x2d65cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23888b=>{if('formatInline'!=_0x23888b['type'])return;const {data:_0x5ecc11}=_0x23888b;if(_0x5ecc11&&'highlight'==_0x5ecc11['commandName']){const _0x44c059=_0x285d6c['t'],_0x7740a8=_0x5ecc11['commandParams'][0x0]['value'];if(_0x7740a8){const _0x5c2592=_0x2d65cd['config']['get']('highlight.options')['find'](_0x27fa90=>_0x27fa90['model']==_0x7740a8),_0x12ae46=_0x44c059(_0x5c2592['title'])['toLowerCase']();return{'type':'format','content':o(_0x285d6c,'*Set\x20highlight:*\x20%0',_0x12ae46),'color':{'value':_0x5c2592['color'],'title':_0x5c2592['title']}};}return{'type':'format','content':o(_0x285d6c,'*Remove\x20highlight*',o(_0x285d6c,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x31ef78{['afterInit'](){const _0x2fcadf=this['editor'];if(!_0x2fcadf['plugins']['has']('HorizontalLineEditing'))return;_0x2fcadf['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1e743f=_0x2fcadf['plugins']['get']('TrackChangesEditing'),_0x14988c=_0x2fcadf['locale'];_0x1e743f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5b9bdb=>o(_0x14988c,'ELEMENT_HORIZONTAL_LINE',_0x5b9bdb)),_0x2fcadf['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1e7fb0,{writer:_0x5d4e0c,options:_0x44b061})=>{if(!_0x44b061['showSuggestionHighlights'])return null;const _0x3077a0=_0x5d4e0c['createContainerElement']('div'),_0x547869=_0x5d4e0c['createEmptyElement']('hr');return _0x5d4e0c['addClass']('ck-horizontal-line',_0x3077a0),_0x5d4e0c['insert'](_0x5d4e0c['createPositionAt'](_0x3077a0,0x0),_0x547869),_0x3077a0;},'converterPriority':'high'});}}class ot extends _0x31ef78{['afterInit'](){const _0x445fdf=this['editor'];if(!_0x445fdf['plugins']['has']('HtmlEmbed'))return;const _0x36ad68=_0x445fdf['plugins']['get']('TrackChangesEditing'),_0x2d4928=_0x445fdf['locale'];_0x36ad68['descriptionFactory']['registerElementLabel']('rawHtml',_0x2adbe8=>o(_0x2d4928,'ELEMENT_HTML_EMBED',_0x2adbe8)),_0x36ad68['enableDefaultAttributesIntegration']('htmlEmbed'),_0x36ad68['registerBlockAttribute']('value'),_0x36ad68['descriptionFactory']['registerDescriptionCallback'](_0x56fcda=>{if('attribute'!=_0x56fcda['type'])return;const {data:_0xb0b9cf}=_0x56fcda;if(_0xb0b9cf&&'value'==_0xb0b9cf['key']&&_0x56fcda['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3d5030=o(_0x2d4928,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2d4928,'*Change\x20%0\x20content*',_0x3d5030)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cb8fb=this['editor'],_0x2a2a3e=_0x4cb8fb['locale'];_0x4cb8fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4538e4=>{if('formatBlock'!=_0x4538e4['type'])return;const {data:_0xa52690}=_0x4538e4;if(_0xa52690&&'htmlEmbed'==_0xa52690['commandName']){const _0x9652d8=o(_0x2a2a3e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2a2a3e,'*Change\x20%0\x20content*',_0x9652d8)};}});}}class rt extends _0x31ef78{['afterInit'](){const _0x1b1c77=this['editor'];if(!_0x1b1c77['plugins']['has']('ImageEditing'))return;const _0x4f0fb6=_0x1b1c77['plugins']['get']('TrackChangesEditing'),_0x4e654b=_0x1b1c77['plugins']['get']('ImageUtils'),_0x26fbe0=_0x1b1c77['locale'];_0x4f0fb6['enableCommand']('insertImage'),_0x4f0fb6['descriptionFactory']['registerElementLabel']('imageBlock',_0x68e08a=>o(_0x26fbe0,'ELEMENT_IMAGE',_0x68e08a)),_0x4f0fb6['descriptionFactory']['registerElementLabel']('imageInline',_0x4df99c=>o(_0x26fbe0,'ELEMENT_INLINE_IMAGE',_0x4df99c)),_0x4f0fb6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x26fbe0,'ELEMENT_CAPTION')),_0x1b1c77['plugins']['has']('ImageUploadEditing')&&_0x4f0fb6['enableCommand']('uploadImage'),_0x1b1c77['plugins']['has']('ImageBlockEditing')&&_0x1b1c77['plugins']['has']('ImageInlineEditing')&&(_0x4f0fb6['enableCommand']('imageTypeInline',(_0x587c17,_0x1bcac7)=>{const _0x101605=_0x4e654b['getClosestSelectedImageElement'](_0x1b1c77['model']['document']['selection']);_0x1b1c77['model']['change'](()=>{_0x4f0fb6['markBlockFormat'](_0x101605,{'commandName':'imageTypeInline','commandParams':[_0x1bcac7]},[],'convertBlockImageToInline');});}),_0x4f0fb6['enableCommand']('imageTypeBlock',(_0x550845,_0x39dd17)=>{_0x1b1c77['model']['change'](_0x19ba41=>{let _0xea8352=_0x4e654b['getClosestSelectedImageElement'](_0x1b1c77['model']['document']['selection']),_0x13d481=_0x19ba41['createRangeOn'](_0xea8352);const _0x3040c0=_0x19d398['fromPosition'](_0x13d481['start'],'toPrevious'),_0x58cbfa=_0x19d398['fromPosition'](_0x13d481['end'],'toNext');_0x4f0fb6['forceDefaultExecution'](()=>_0x550845(_0x39dd17)),_0xea8352=_0x4e654b['getClosestSelectedImageElement'](_0x1b1c77['model']['document']['selection']),_0x13d481=_0x19ba41['createRangeOn'](_0xea8352);const _0x188b3c=_0x19ba41['createRange'](_0x3040c0,_0x58cbfa);_0x3040c0['detach'](),_0x58cbfa['detach'](),_0x4f0fb6['markBlockFormat'](_0xea8352,{'commandName':'imageTypeInline','commandParams':[_0x39dd17]},[],'convertInlineImageToBlock'),_0x188b3c['start']['isBefore'](_0x13d481['start'])&&_0x4f0fb6['markInsertion'](_0x19ba41['createRange'](_0x188b3c['start'],_0x13d481['start']),'convertInlineImageToBlock'),_0x13d481['end']['isBefore'](_0x188b3c['end'])&&_0x4f0fb6['markInsertion'](_0x19ba41['createRange'](_0x13d481['end'],_0x188b3c['end']),'convertInlineImageToBlock');});}),_0x4f0fb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4f0fb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4f0fb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4f0fb6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4f0fb6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4f0fb6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x422b5b])=>{const _0xf9a717=_0x4f0fb6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x395909=_0x422b5b['start'],_0x168991=_0x422b5b['end'];const _0x2e1b06=_0x1b1c77['model']['schema']['getNearestSelectionRange'](_0x395909,'backward'),_0x5c3d5e=_0x1b1c77['model']['schema']['getNearestSelectionRange'](_0x168991,'forward');_0x2e1b06['isCollapsed']&&(_0x395909=_0x2e1b06['start']),_0x5c3d5e['isCollapsed']&&(_0x168991=_0x5c3d5e['end']),_0xf9a717([_0x1b1c77['model']['createRange'](_0x395909,_0x168991)]);}),_0x4f0fb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4f1e06),_0x4f0fb6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4f1e06)),_0x1b1c77['plugins']['has']('ImageCaptionEditing')&&(_0x4f0fb6['enableCommand']('toggleImageCaption',(_0x12e0f1,_0x120137)=>{const _0x4c7681=_0x1b1c77['plugins']['get']('ImageCaptionUtils');let _0x2eac83=_0x4e654b['getClosestSelectedImageElement'](_0x1b1c77['model']['document']['selection']),_0x57afaf=_0x4c7681['getCaptionFromImageModelElement'](_0x2eac83);_0x1b1c77['model']['change'](()=>{if(_0x57afaf)return void _0x4f0fb6['markDeletion'](_0x1b1c77['model']['createRangeOn'](_0x57afaf));const _0x423f43=_0x4e654b['isBlockImage'](_0x2eac83);_0x12e0f1(_0x120137),_0x2eac83=_0x4e654b['getClosestSelectedImageElement'](_0x1b1c77['model']['document']['selection']),_0x57afaf=_0x4c7681['getCaptionFromImageModelElement'](_0x2eac83),_0x4f0fb6['markInsertion'](_0x1b1c77['model']['createRangeOn'](_0x57afaf),_0x423f43?null:'imageCaption');});}),_0x4f0fb6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4f1e06));const _0x7958d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2c6822(_0x2b2d13,_0x3cf193){const _0x5a3250=_0x7958d['findIndex'](({type:_0x2520fd,subType:_0x27a68d})=>_0x2b2d13['type']==_0x2520fd&&_0x2b2d13['subType']==_0x27a68d),_0x33c400=_0x7958d['findIndex'](({type:_0x56be35,subType:_0x3e6312})=>_0x3cf193['type']==_0x56be35&&_0x3cf193['subType']==_0x3e6312);if(_0x5a3250<0x0||_0x33c400<0x0)return!0x1;const _0x14888b=_0x2b2d13['getFirstRange'](),_0x1875f5=_0x3cf193['getFirstRange']();if((0x0==_0x5a3250||0x1==_0x5a3250)&&0x2==_0x33c400&&_0x14888b['isIntersecting'](_0x1875f5))return!0x0;if(0x2==_0x5a3250&&0x3==_0x33c400){const _0x51e5fa=_0x4f0fb6['_findSuggestions'](_0x14888b,'insertion')['filter'](({suggestion:_0x59fc96,meta:_0x1bfff2})=>_0x1bfff2['isOwn']&&'convertInlineImageToBlock'==_0x59fc96['subType']);if(_0x51e5fa['length']>0x1&&_0x1875f5['end']['isEqual'](_0x14888b['start']))return!0x0;if(0x1==_0x51e5fa['length']&&(_0x14888b['start']['isEqual'](_0x1875f5['end'])||_0x14888b['end']['isEqual'](_0x1875f5['start'])))return!0x0;}if(0x3==_0x5a3250&&0x3==_0x33c400&&_0x14888b['start']['isBefore'](_0x1875f5['start'])){const _0x37d3f0=_0x14888b['end']['nodeAfter'],_0x3fdc00=_0x1875f5['start']['nodeBefore'];return _0x4e654b['isBlockImage'](_0x37d3f0)&&_0x37d3f0===_0x3fdc00;}return!0x1;}function _0x4f1e06(_0x48a393,_0x46e9e9){return _0x2c6822(_0x48a393,_0x46e9e9)?[_0x48a393,_0x46e9e9]:_0x2c6822(_0x46e9e9,_0x48a393)?[_0x46e9e9,_0x48a393]:null;}_0x1b1c77['plugins']['has']('ImageResize')&&(_0x4f0fb6['enableDefaultAttributesIntegration']('resizeImage'),_0x4f0fb6['registerBlockAttribute']('resizedWidth'),_0x4f0fb6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x26fbe0,'FORMAT_IMAGE_SIZE'))),_0x1b1c77['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4f0fb6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4f0fb6['registerBlockAttribute']('alt')),_0x1b1c77['plugins']['has']('PictureEditing')&&(_0x4f0fb6['registerBlockAttribute']('sources'),_0x4f0fb6['descriptionFactory']['registerDescriptionCallback'](_0x1e0300=>{if('attribute'!=_0x1e0300['type'])return;const {data:_0x2dc9ce}=_0x1e0300;return _0x2dc9ce&&'sources'==_0x2dc9ce['key']?{'type':'format','content':''}:void 0x0;})),_0x1b1c77['plugins']['has']('ImageSizeAttributes')&&(_0x4f0fb6['registerBlockAttribute']('width'),_0x4f0fb6['registerBlockAttribute']('height'),_0x4f0fb6['descriptionFactory']['registerDescriptionCallback'](_0x417fd3=>{if('attribute'!=_0x417fd3['type'])return;const {data:_0xfdc3d2}=_0x417fd3;return!_0xfdc3d2||'width'!=_0xfdc3d2['key']&&'height'!=_0xfdc3d2['key']?void 0x0:{'type':'format','content':''};})),_0x4f0fb6['descriptionFactory']['registerDescriptionCallback'](_0x58f6e9=>{if(!!_0x7958d['find'](({type:_0x2b3456,subType:_0x2b17ce})=>_0x58f6e9['type']==_0x2b3456&&_0x58f6e9['subType']==_0x2b17ce))return _0x58f6e9['previous']?{}:void 0x0;}),_0x4f0fb6['descriptionFactory']['registerDescriptionCallback'](_0x1fc98e=>{if('insertion'==_0x1fc98e['type']||'deletion'==_0x1fc98e['type']){const _0x587fc3=_0x1fc98e['getContainedElement']();if(_0x587fc3&&_0x587fc3['is']('element','caption'))return{'type':'insertion'==_0x1fc98e['type']?'addObject':'removeObject','element':_0x587fc3,'quantity':0x1};}}),_0x4f0fb6['descriptionFactory']['registerDescriptionCallback'](_0x48ac16=>'formatBlock'==_0x48ac16['type']&&'convertInlineImageToBlock'==_0x48ac16['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x48ac16['type']&&'convertBlockImageToInline'==_0x48ac16['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4f0fb6['descriptionFactory']['registerDescriptionCallback'](_0x22a5dd=>{if('attribute'!=_0x22a5dd['type'])return;const {data:_0x4b472e}=_0x22a5dd;if(!_0x4b472e||'alt'!=_0x4b472e['key'])return;const _0x4960f3=_0x4b472e['newValue'];return _0x4960f3?{'type':'format','content':o(_0x26fbe0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4960f3+'\x22')}:{'type':'format','content':o(_0x26fbe0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x218fcd=this['editor'],_0x48efde=_0x218fcd['locale'];_0x218fcd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19bcc4=>{if('formatBlock'!=_0x19bcc4['type']&&'formatInline'!=_0x19bcc4['type'])return;const {data:_0x1d67f3}=_0x19bcc4;if(_0x1d67f3){if('imageTextAlternative'==_0x1d67f3['commandName']){const _0x3cbd57=_0x1d67f3['commandParams'][0x0]['newValue'];return _0x3cbd57?{'type':'format','content':o(_0x48efde,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3cbd57+'\x22')}:{'type':'format','content':o(_0x48efde,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1d67f3['commandName']){const _0x2d925a=_0x1d67f3['commandParams'][0x0]['width'];return _0x2d925a?{'type':'format','content':o(_0x48efde,'*Set\x20image\x20width:*\x20%0',_0x2d925a)}:{'type':'format','content':o(_0x48efde,'*Reset\x20image\x20width*')};}}});}}class at extends _0x31ef78{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x10defc=this['editor']['locale'],_0x4a9a05=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a9a05['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4a9a05['registerBlockAttribute']('src'),_0x4a9a05['descriptionFactory']['registerDescriptionCallback'](_0x56196=>{if('attribute'!=_0x56196['type'])return;const {data:_0x4dcb3f}=_0x56196;return _0x4dcb3f&&'src'==_0x4dcb3f['key']?_0x4dcb3f['newValue']&&_0x4dcb3f['oldValue']?{'type':'format','content':o(_0x10defc,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x38f859=this['editor']['plugins']['get']('TrackChangesEditing');_0x38f859['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x38f859['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38f859['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x38f859['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59c7fe=this['editor'],_0x338edf=_0x59c7fe['locale'];_0x59c7fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d9019=>{if('formatBlock'!=_0x5d9019['type']&&'formatInline'!=_0x5d9019['type'])return;const {data:_0x2115fc}=_0x5d9019;if(!_0x2115fc||'replaceImageSource'!=_0x2115fc['commandName'])return;return{'type':'format','content':o(_0x338edf,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x31ef78{['afterInit'](){const _0x36c553=this['editor'];if(!_0x36c553['plugins']['has']('ImageStyleEditing'))return;const _0x2ea53c=_0x36c553['plugins']['get']('TrackChangesEditing'),_0x1719c7=_0x36c553['plugins']['get']('ImageUtils'),_0x4d6245={};_0x2ea53c['enableCommand']('imageStyle',(_0x5549b2,_0x2c2808)=>{const _0x2109d8=_0x36c553['plugins']['get']('Users')['me'],_0x1ca1bb=_0x36c553['commands']['get']('imageStyle');let _0xe69aaf=_0x1719c7['getClosestSelectedImageElement'](_0x36c553['model']['document']['selection']),_0x1b2df1=_0x36c553['model']['createRangeOn'](_0xe69aaf),_0x3677af=_0x1ca1bb['value'];if(_0x3677af==_0x2c2808['value'])return;const _0x552e4b={'commandName':'imageStyle','commandParams':[_0x2c2808],'formatGroupId':_0x2b97bd()};_0x36c553['model']['change'](()=>{if(_0x2ea53c['getSuggestions']()['filter'](_0x3d5e35=>_0x3d5e35['isInContent']&&_0x2109d8==_0x3d5e35['author']&&('formatBlock'==_0x3d5e35['type']||'formatInline'==_0x3d5e35['type'])&&('imageStylePreApply'==_0x3d5e35['subType']||'imageStylePostApply'==_0x3d5e35['subType'])&&_0x3d5e35['getFirstRange']()['isEqual'](_0x1b2df1))['forEach'](_0xd857b4=>_0x2ea53c['discardSuggestion'](_0xd857b4['head'])),_0xe69aaf=_0x1719c7['getClosestSelectedImageElement'](_0x36c553['model']['document']['selection']),_0x1b2df1=_0x36c553['model']['createRangeOn'](_0xe69aaf),_0x1ca1bb['refresh'](),_0x36c553['commands']['get']('imageTypeInline')['refresh'](),_0x36c553['commands']['get']('imageTypeBlock')['refresh'](),_0x3677af=_0x1ca1bb['value'],_0x3677af!=_0x2c2808['value'])return _0x1719c7['isInlineImage'](_0xe69aaf)&&_0x1ca1bb['shouldConvertImageType'](_0x2c2808['value'],_0xe69aaf)?(_0x5549b2({..._0x2c2808,'setImageSizes':!0x1}),_0xe69aaf=_0x1719c7['getClosestSelectedImageElement'](_0x36c553['model']['document']['selection']),void _0x2ea53c['markBlockFormat'](_0xe69aaf,{..._0x552e4b,'commandReversedParams':[{'value':_0x3677af||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1719c7['isBlockImage'](_0xe69aaf)?_0x2ea53c['markBlockFormat'](_0xe69aaf,_0x552e4b,[],'imageStylePostApply'):_0x2ea53c['markInlineFormat'](_0x1b2df1,_0x552e4b,'imageStylePostApply'));});});for(const _0x15ad80 of _0x36c553['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4d6245[_0x15ad80['name']]=_0x15ad80['title']['toLowerCase']();_0x2ea53c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2ea53c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2ea53c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2ea53c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5f045d])=>{_0x1719c7['setImageNaturalSizeAttributes'](_0x5f045d['getContainedElement']());}),_0x2ea53c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x400236,_0x3de8fa)=>{_0x2ea53c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x400236,{'commandName':_0x3de8fa['commandName'],'commandParams':_0x3de8fa['commandReversedParams']});}),_0x2ea53c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xf1113e,_0x1c89b3){if(_0x53bd20(_0xf1113e,_0x1c89b3))return[_0xf1113e,_0x1c89b3];if(_0x53bd20(_0x1c89b3,_0xf1113e))return[_0x1c89b3,_0xf1113e];return null;});const _0x2fd813=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x53bd20(_0x45ed2d,_0x29c174){const _0x4f6235=_0x2fd813['findIndex'](({type:_0x3d1710,subType:_0x465b5c})=>_0x45ed2d['type']==_0x3d1710&&_0x45ed2d['subType']==_0x465b5c),_0xfa80d0=_0x2fd813['findIndex'](({type:_0x381f01,subType:_0xbbe82d})=>_0x29c174['type']==_0x381f01&&_0x29c174['subType']==_0xbbe82d);if(_0x4f6235<0x0||_0xfa80d0<0x0)return!0x1;const _0x560faf=_0x45ed2d['getFirstRange'](),_0x5b3f26=_0x29c174['getFirstRange']();if((0x0==_0x4f6235||0x1==_0x4f6235)&&0x2==_0xfa80d0&&_0x560faf['isIntersecting'](_0x5b3f26))return!0x0;if(0x2==_0x4f6235&&0x3==_0xfa80d0){const _0x5ef146=_0x2ea53c['_findSuggestions'](_0x560faf,'insertion')['filter'](({suggestion:_0x41d2c0,meta:_0x34c7c8})=>_0x34c7c8['isOwn']&&'convertInlineImageToBlock'==_0x41d2c0['subType']);if(_0x5ef146['length']>0x1&&_0x5b3f26['end']['isEqual'](_0x560faf['start']))return!0x0;if(0x1==_0x5ef146['length']&&(_0x560faf['start']['isEqual'](_0x5b3f26['end'])||_0x560faf['end']['isEqual'](_0x5b3f26['start'])))return!0x0;}if(0x3==_0x4f6235&&0x3==_0xfa80d0&&_0x560faf['start']['isBefore'](_0x5b3f26['start'])){const _0x2a8294=_0x560faf['end']['nodeAfter'],_0x43b36e=_0x5b3f26['start']['nodeBefore'];return _0x1719c7['isBlockImage'](_0x2a8294)&&_0x2a8294===_0x43b36e;}return!0x1;}_0x36c553['model']['document']['registerPostFixer'](()=>{let _0x2768d1=!0x1;const _0x191808=Array['from'](_0x36c553['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4f0d2e,data:_0x4274d2}of _0x191808){const {group:_0x451b87,type:_0x573d71,subType:_0x172af2,id:_0x5df96b}=_0x2ea53c['_splitMarkerName'](_0x4f0d2e);if('suggestion'==_0x451b87&&_0x2ea53c['hasSuggestion'](_0x5df96b)){if('formatBlock'==_0x573d71&&('imageStylePreApply'==_0x172af2||'imageStylePostApply'==_0x172af2)){const _0x172da9=_0x2ea53c['getSuggestion'](_0x5df96b);if(_0x4274d2['newRange']){const _0x3793c4=_0x172da9['getFirstRange']()['getContainedElement']();if(_0x1719c7['isBlockImage'](_0x3793c4))continue;_0x2ea53c['discardSuggestion'](_0x172da9),_0x2768d1=!0x0;}}if('insertion'==_0x573d71&&'imageCaption'==_0x172af2&&!_0x4274d2['newRange']){const _0x57376e=_0x2ea53c['getSuggestion'](_0x5df96b);_0x57376e['next']&&_0x57376e['next']['isInContent']&&(_0x2ea53c['discardSuggestion'](_0x57376e['next']),_0x2768d1=!0x0);}}}return _0x2768d1;}),this['_registerLegacyDescription'](_0x4d6245);}['_registerLegacyDescription'](_0x5d30f2){const _0x1f3d74=this['editor'],_0x872987=_0x1f3d74['locale'];_0x1f3d74['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b15cf=>{if('formatBlock'!=_0x1b15cf['type']&&'formatInline'!=_0x1b15cf['type'])return;const {data:_0x1e7b18}=_0x1b15cf;if(!_0x1e7b18||'imageStyle'!=_0x1e7b18['commandName'])return;const _0x3bbf7d=_0x1e7b18['commandParams'][0x0]['value'];return _0x20bf11('side'===_0x3bbf7d?o(_0x872987,'FORMAT_SIDE_IMAGE'):_0x5d30f2[_0x3bbf7d]||_0x3bbf7d);function _0x20bf11(_0x3f5b50){return{'type':'format','content':o(_0x872987,'*Format:*\x20%0',_0x3f5b50)};}});}}class ut extends _0x31ef78{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x807776){super(_0x807776),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4fcc9f=this['editor'],_0x2e889d=_0x4fcc9f['commands']['get']('importWord'),_0x40e673=_0x4fcc9f['commands']['get']('trackChanges');_0x2e889d&&(_0x2e889d['on']('execute',(_0x253b99,[,_0x59a0f4])=>{this['_trackChangesValueDuringImport']=_0x40e673['value'],_0x59a0f4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2e889d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2e889d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x40e673['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4fcc9f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x579e96,_0x1b453c){const {suggestions:_0x563d8e}=_0x1b453c,_0x2bdf2f=this['editor']['commands']['get']('trackChanges'),_0x588ee5=_0x2bdf2f['value'];this['_trackChangesValueDuringImport']!==_0x588ee5&&(_0x2bdf2f['execute'](),this['_trackChangesExecuted']=!0x0),_0x563d8e&&_0x563d8e['forEach'](({id:_0x1dd267,type:_0x526385,author:_0x41bd01,created_at:_0x2410c6})=>{const _0x436f71={'id':_0x1dd267,'type':_0x526385,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x41bd01,'createdAt':_0x2410c6?new Date(_0x2410c6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x436f71);});}}class ft extends _0x31ef78{['afterInit'](){const _0x355cc6=this['editor'],_0x44febe=_0x355cc6['plugins']['get']('TrackChangesEditing');if(_0x355cc6['plugins']['has']('IndentEditing')&&(_0x44febe['enableCommand']('indent'),_0x44febe['enableCommand']('outdent')),_0x355cc6['plugins']['has']('IndentBlock')){for(const _0x1dd794 of['indentBlock','outdentBlock'])_0x44febe['enableDefaultAttributesIntegration'](_0x1dd794);}const _0xedfc6c=_0x355cc6['locale'];_0x44febe['registerBlockAttribute']('blockIndent'),_0x44febe['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xedfc6c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a2a07=this['editor'],_0x328a01=_0x3a2a07['locale'],_0xa7e385=_0x3a2a07['plugins']['get']('TrackChangesEditing');_0xa7e385['descriptionFactory']['registerDescriptionCallback'](_0x2be3ed=>{if('formatBlock'!=_0x2be3ed['type'])return;const {data:_0xdfbf17}=_0x2be3ed;if(!_0xdfbf17)return;if('indentBlock'!=_0xdfbf17['commandName']&&'outdentBlock'!=_0xdfbf17['commandName'])return;const _0x1dcc37=_0x2be3ed['getItems']()[0x0],_0x39a3ba=_0xa7e385['descriptionFactory']['getItemLabel'](_0x1dcc37);return'indentBlock'==_0xdfbf17['commandName']?{'type':'format','content':o(_0x328a01,'*Indent:*\x20%0',_0x39a3ba)}:'outdentBlock'==_0xdfbf17['commandName']?{'type':'format','content':o(_0x328a01,'*Outdent:*\x20%0',_0x39a3ba)}:void 0x0;});}}class ht extends _0x31ef78{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x31ef78{['afterInit'](){const _0x4f792d=this['editor'];if(!_0x4f792d['plugins']['has']('LinkEditing'))return;const _0x2727ce=_0x4f792d['plugins']['get']('TrackChangesEditing'),_0x31cee3=_0x4f792d['commands']['get']('link');_0x2727ce['enableDefaultAttributesIntegration']('link'),_0x2727ce['enableDefaultAttributesIntegration']('unlink'),_0x2727ce['registerInlineAttribute']('linkHref');for(const _0x5ac2f7 of _0x31cee3['manualDecorators'])_0x2727ce['registerInlineAttribute'](_0x5ac2f7['id']),_0x2727ce['descriptionFactory']['registerAttributeLabel'](_0x5ac2f7['id'],'link\x20('+_0x5ac2f7['label']['toLowerCase']()+')');_0x2727ce['descriptionFactory']['registerDescriptionCallback'](_0x918c3e=>{if('attribute'!=_0x918c3e['type'])return;const {data:_0x57c123}=_0x918c3e;if(!_0x57c123||'linkHref'!=_0x57c123['key'])return;const _0x1cc8b0=_0x57c123['newValue'],_0x5c484d=_0x4f792d['locale'];return{'type':'format','content':null==_0x1cc8b0?o(_0x5c484d,'*Remove\x20link*'):o(_0x5c484d,'*Set\x20link:*\x20%0','\x22'+_0x1cc8b0+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41a44f=this['editor'],_0x5cd968=_0x41a44f['locale'];_0x41a44f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18429d=>{if('formatInline'!=_0x18429d['type'])return;const {data:_0x4ec39a}=_0x18429d;if(_0x4ec39a){if('link'==_0x4ec39a['commandName']){const _0x19055f=_0x4ec39a['commandParams'][0x0];return{'type':'format','content':o(_0x5cd968,'*Set\x20link:*\x20%0','\x22'+_0x19055f+'\x22')};}return'unlink'==_0x4ec39a['commandName']?{'type':'format','content':o(_0x5cd968,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x31ef78{['afterInit'](){const _0x56e90b=this['editor'],_0x2b65c1=_0x56e90b['locale'];if(!_0x56e90b['plugins']['has']('LegacyListEditing'))return;const _0x59021c=_0x56e90b['plugins']['get']('TrackChangesEditing'),_0x40be01=_0x56e90b['plugins']['has']('LegacyTodoListEditing');function _0x336e5e(_0x28f1e6){return()=>{const _0x398153=_0x56e90b['model']['document']['selection'],_0x6a9cdc=_0x56e90b['commands']['get'](_0x28f1e6);if(_0x6a9cdc['value'])return void _0x56e90b['execute']('paragraph',{});const _0x30eece=_0x28f1e6['slice'](0x0,-0x4),_0x2d5efb=function(_0x1ce40d,_0x53cc7c,_0x455b48){let _0x57c511=Array['from'](_0x1ce40d)['filter'](_0x60ac09=>function(_0x2a5c12,_0xc1c22c){return _0xc1c22c['checkChild'](_0x2a5c12['parent'],'listItem')&&!_0xc1c22c['isObject'](_0x2a5c12);}(_0x60ac09,_0x455b48));_0x57c511=_0x57c511['filter'](_0x26af60=>!_0x26af60['is']('element','listItem')||_0x26af60['getAttribute']('listType')!=_0x53cc7c);const _0x463e98=new Set();for(const _0x4683ea of _0x57c511)_0x4683ea['is']('element','listItem')?_0x463e98['add'](Le(_0x4683ea)):_0x463e98['add'](_0x4683ea);return Array['from'](_0x463e98);}(_0x398153['getSelectedBlocks'](),_0x30eece,_0x56e90b['model']['schema']);_0x56e90b['model']['change'](()=>{for(const _0x4c2b7e of _0x2d5efb)_0x59021c['markBlockFormat'](_0x4c2b7e,{'commandName':_0x28f1e6,'commandParams':[{'forceValue':!_0x6a9cdc['value']}],'formatGroupId':'blockName'},Ee(_0x4c2b7e));});};}function _0xa07011(_0x495a4d){return()=>{const _0x3f3f50=function(_0x5d016d){let _0x49b8ef=Array['from'](_0x5d016d);const _0x30f8bf=_0x49b8ef['findIndex'](_0x79caac=>'listItem'!=_0x79caac['name']);return _0x30f8bf>-0x1&&(_0x49b8ef=_0x49b8ef['slice'](0x0,_0x30f8bf)),_0x49b8ef;}(_0x56e90b['model']['document']['selection']['getSelectedBlocks']()),_0x408ba7=_0x56e90b['model']['createRange'](_0x56e90b['model']['createPositionAt'](_0x3f3f50[0x0],'before'),_0x56e90b['model']['createPositionAt'](_0x3f3f50[_0x3f3f50['length']-0x1],'end'));_0x56e90b['model']['change'](()=>{_0x59021c['markBlockFormat'](_0x408ba7,{'commandName':_0x495a4d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x38c5cc){const _0x5c66a3=new Set();for(const _0x4cb707 of _0x38c5cc){let _0x545d01=_0x4cb707['nextSibling'];for(;_0x545d01&&_0x545d01['getAttribute']('listIndent')>_0x4cb707['getAttribute']('listIndent');)_0x5c66a3['add'](_0x545d01),_0x545d01=_0x545d01['nextSibling'];}return Array['from'](_0x5c66a3);}(_0x3f3f50));});};}_0x59021c['enableCommand']('numberedList',_0x336e5e('numberedList')),_0x59021c['enableCommand']('bulletedList',_0x336e5e('bulletedList')),_0x40be01&&_0x59021c['enableCommand']('todoList',_0x336e5e('todoList')),_0x59021c['enableCommand']('indentList',_0xa07011('indentList')),_0x59021c['enableCommand']('outdentList',_0xa07011('outdentList')),_0x40be01&&_0x59021c['enableCommand']('checkTodoList',()=>{const _0x2045c6=_0x56e90b['commands']['get']('checkTodoList'),_0x3f55d7=Array['from'](_0x2045c6['_selectedElements']);_0x3f55d7['filter'](_0x33d44f=>_0x33d44f['getAttribute']('todoListChecked')!=_0x2045c6['value']),_0x56e90b['model']['change'](()=>{for(const _0x189cea of _0x3f55d7)_0x59021c['markBlockFormat'](_0x189cea,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2045c6['value']}]});});}),_0x59021c['descriptionFactory']['registerElementLabel']('listItem',_0x20aa5b=>o(_0x2b65c1,'ELEMENT_LIST_ITEM',_0x20aa5b)),_0x59021c['descriptionFactory']['registerDescriptionCallback'](_0x34332d=>{if('formatBlock'!=_0x34332d['type']&&'formatInline'!=_0x34332d['type'])return;const {data:_0x3796df}=_0x34332d;if(_0x3796df){if('numberedList'==_0x3796df['commandName']||'bulletedList'==_0x3796df['commandName']||'todoList'==_0x3796df['commandName'])switch(_0x3796df['commandName']['replace']('List','')){case'bulleted':return _0x22d150(o(_0x2b65c1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x22d150(o(_0x2b65c1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x22d150(o(_0x2b65c1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3796df['commandName'])return{'type':'format','content':o(_0x2b65c1,'*Indent:*\x20%0',o(_0x2b65c1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3796df['commandName'])return{'type':'format','content':o(_0x2b65c1,'*Outdent:*\x20%0',o(_0x2b65c1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3796df['commandName'])return _0x3796df['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2b65c1,'*Check\x20item*')}:{'type':'format','content':o(_0x2b65c1,'*Uncheck\x20item*')};}function _0x22d150(_0x2b5a64){return{'type':'format','content':o(_0x2b65c1,'*Change\x20to:*\x20%0',_0x2b5a64)};}});}}function Le(_0x355464){const _0x573724=_0x355464['getAttribute']('listIndent');if(0x0==_0x573724)return _0x355464;let _0x381733=_0x355464;for(;_0x355464['previousSibling']&&_0x355464['previousSibling']['is']('element','listItem');){const _0x228f54=_0x355464['previousSibling']['getAttribute']('listIndent');if(_0x228f54==_0x573724)_0x381733=_0x355464['previousSibling'];else{if(_0x228f54<_0x573724)break;}_0x355464=_0x355464['previousSibling'];}return _0x381733;}function Ee(_0x41c7a3){const _0x1018f0=[];if(_0x41c7a3['is']('element','listItem')&&_0x41c7a3['getAttribute']('listIndent')>0x0){let _0x466c2d=_0x41c7a3['nextSibling'];for(;_0x466c2d&&'listItem'==_0x466c2d['name']&&_0x466c2d['getAttribute']('listIndent')==_0x41c7a3['getAttribute']('listIndent');)_0x1018f0['push'](_0x466c2d),_0x466c2d=_0x466c2d['nextSibling'];}return _0x1018f0;}class Q extends _0x31ef78{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x42913d=this['editor']['config']['get']('list.properties'),_0x1dd094=this['editor']['plugins']['get']('TrackChangesEditing');_0x42913d['styles']&&_0x1dd094['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x42913d['reversed']&&_0x1dd094['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x42913d['startIndex']&&_0x1dd094['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1dd094['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x67a153,_0x1d5479={}){const _0x14a514=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4834d2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x14a514['markMultiRangeBlockFormat'](_0x4834d2,{'commandName':'listStyle','commandParams':[{'type':_0x1d5479['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3afb36,_0x46963a={}){const _0x2d4483=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36e0f0=this['_getSuggestionBlocks'](_0x1b43cc=>_0x1b43cc['is']('element','listItem')&&'numbered'===_0x1b43cc['getAttribute']('listType'));if(_0x36e0f0['length']<0x1)return;const _0x5dd897=_0x36e0f0['map'](_0x38f203=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x38f203,'before'),this['editor']['model']['createPositionAt'](_0x38f203,0x0)));this['editor']['model']['change'](()=>{_0x2d4483['markMultiRangeBlockFormat'](_0x5dd897,{'commandName':'listReversed','commandParams':[{'reversed':_0x46963a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x168464,_0x124c71={}){const _0x3b0bc8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c5f60=this['_getSuggestionBlocks'](_0x14f514=>_0x14f514['is']('element','listItem')&&'numbered'===_0x14f514['getAttribute']('listType'));if(_0x2c5f60['length']<0x1)return;const _0x2851e5=_0x2c5f60['map'](_0x3efe21=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3efe21,'before'),this['editor']['model']['createPositionAt'](_0x3efe21,0x0)));this['editor']['model']['change'](()=>{_0x3b0bc8['markMultiRangeBlockFormat'](_0x2851e5,{'commandName':'listStart','commandParams':[{'startIndex':_0x124c71['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1048ee){if('formatBlock'!=_0x1048ee['type']&&'formatInline'!=_0x1048ee['type'])return;const _0x1c95bf=this['editor']['locale'],{data:_0x1d6d3f}=_0x1048ee;if(!_0x1d6d3f)return;let _0x8e128b,_0x2c9543;switch(_0x1d6d3f['commandName']){case'listStyle':_0x8e128b='*Change\x20to:*\x20%0',_0x2c9543={'type':'format','content':o(_0x1c95bf,_0x8e128b,o(_0x1c95bf,this['_getTranslationKeyForListStyle'](_0x1d6d3f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x8e128b=_0x1d6d3f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2c9543={'type':'format','content':o(_0x1c95bf,_0x8e128b)};break;case'listStart':_0x8e128b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2c9543={'type':'format','content':o(_0x1c95bf,_0x8e128b,_0x1d6d3f['commandParams'][0x0]['startIndex'])};}return _0x2c9543;}['_getSuggestionBlocksForListStyle'](){const _0x1d4de0=this['editor']['plugins']['get']('LegacyListUtils');let _0x3a1b1c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3a1b1c[0x0]?.['is']('element','listItem')&&_0x3a1b1c['unshift'](..._0x1d4de0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3a1b1c[_0x3a1b1c['length']-0x1]?.['is']('element','listItem')&&_0x3a1b1c['push'](..._0x1d4de0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3a1b1c=[...new Set(_0x3a1b1c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3a1b1c=_0x3a1b1c['filter'](_0x89a41b=>_0x89a41b['is']('element','listItem'))),_0x3a1b1c;}['_getSuggestionBlocks'](_0x50748b){const _0xea3fc8=this['editor']['plugins']['get']('LegacyListUtils');let _0x552e3a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x50748b)['map'](_0x1b7da1=>{const _0x19b5c8=this['editor']['model']['createPositionAt'](_0x1b7da1,0x0);return[..._0xea3fc8['getSiblingNodes'](_0x19b5c8,'backward'),..._0xea3fc8['getSiblingNodes'](_0x19b5c8,'forward')];})['flat']();return _0x552e3a=[...new Set(_0x552e3a)],_0x552e3a;}['_getTranslationKeyForListStyle'](_0x43aaeb){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x43aaeb)||'default')['toUpperCase']()+'_LIST_'+_0x43aaeb['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x31ef78{['afterInit'](){const _0x5f1feb=this['editor'];if(!_0x5f1feb['plugins']['has']('MediaEmbedEditing'))return;const _0x4b7ec8=_0x5f1feb['plugins']['get']('TrackChangesEditing'),_0x1f9d92=_0x5f1feb['locale'];_0x4b7ec8['enableCommand']('mediaEmbed'),_0x4b7ec8['descriptionFactory']['registerElementLabel']('media',_0x1adc84=>o(_0x1f9d92,'ELEMENT_MEDIA',_0x1adc84)),_0x5f1feb['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x378211,{writer:_0x5c7f20,options:_0x4493cc})=>{if(_0x4493cc['showSuggestionHighlights'])return _0x5c7f20['createEmptyElement']('div');},'converterPriority':'high'}),_0x5f1feb['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5e665c,_0x539fb5,_0x4b5541)=>{_0x4b5541['options']['showSuggestionHighlights']&&_0x5e665c['stop']();},{'priority':'high'});}}class pt extends _0x31ef78{['afterInit'](){const _0x5504eb=this['editor'];_0x5504eb['plugins']['has']('MentionEditing')&&_0x5504eb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x31ef78{['afterInit'](){const _0x240738=this['editor'];if(!_0x240738['plugins']['has']('MergeFieldsEditing'))return;const _0x2f9824=_0x240738['plugins']['get']('TrackChangesEditing'),_0x5a35ce=_0x240738['locale'];_0x2f9824['enableCommand']('insertMergeField'),_0x2f9824['enableCommand']('insertMergeFieldBlock'),_0x2f9824['enableCommand']('insertMergeFieldImage'),_0x2f9824['descriptionFactory']['registerElementLabel']('mergeField',_0x1fbe7f=>o(_0x5a35ce,'ELEMENT_MERGE_FIELD',_0x1fbe7f)),_0x2f9824['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1300e9=>o(_0x5a35ce,'ELEMENT_MERGE_FIELD',_0x1300e9)),_0x2f9824['descriptionFactory']['registerDescriptionCallback'](_0x335b83=>{if('insertion'!=_0x335b83['type']&&'deletion'!=_0x335b83['type'])return;const _0x40d6e7=_0x335b83['getContainedElement']();if(null==_0x40d6e7)return;const _0x397c6a=_0x240738['plugins']['get']('MergeFieldsEditing');let _0x5308e2;switch(_0x397c6a['getMergeFieldType'](_0x40d6e7)){case null:return;case'image':{const _0x19e0cb=_0x397c6a['unwrapAffixes'](_0x40d6e7['getAttribute']('src'));_0x5308e2=_0x397c6a['getLabel'](_0x19e0cb)||_0x19e0cb;break;}default:{const _0x13909c=_0x40d6e7['getAttribute']('id');_0x5308e2=_0x397c6a['getLabel'](_0x13909c)||_0x13909c;break;}}return'insertion'==_0x335b83['type']?{'type':'insertion','content':o(_0x5a35ce,'*Insert:*\x20%0','\x22'+_0x5308e2+'\x22\x20'+o(_0x5a35ce,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5a35ce,'*Remove:*\x20%0','\x22'+_0x5308e2+'\x22\x20'+o(_0x5a35ce,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x31ef78{['afterInit'](){const _0x5cca6f=this['editor'],_0x56dfce=_0x5cca6f['plugins']['get']('TrackChangesEditing');_0x5cca6f['plugins']['has']('MultiLevelList')&&(_0x56dfce['enableDefaultAttributesIntegration']('multiLevelList'),_0x56dfce['registerBlockAttribute']('listMarkerStyle'),_0x56dfce['descriptionFactory']['registerDescriptionCallback'](_0x27dba6=>this['handleDescriptions'](_0x27dba6)));}['handleDescriptions'](_0x3fcd97){const _0x2e61b1=this['editor']['locale'],{data:_0x44757a}=_0x3fcd97,_0x3609d6={'type':'format','content':''};if(_0x44757a&&'listMarkerStyle'==_0x44757a['key']){if(!_0x44757a['oldValue'])return{'type':'format','content':o(_0x2e61b1,'*Set\x20format:*\x20%0',o(_0x2e61b1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44757a['newValue']+')'};if(!_0x44757a['newValue']){let _0x477eff=_0x3fcd97['head'];for(;_0x477eff;){if(_0x477eff['data']&&'listType'==_0x477eff['data']['key']&&_0x477eff['data']['newValue'])return _0x3609d6;_0x477eff=_0x477eff['next'];}return{'type':'format','content':o(_0x2e61b1,'*Remove\x20format:*\x20%0',o(_0x2e61b1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44757a['oldValue']+')'};}}}}class bt extends _0x31ef78{['afterInit'](){const _0x53125e=this['editor'];if(!_0x53125e['plugins']['has']('PageBreakEditing'))return;_0x53125e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x41a859=_0x53125e['plugins']['get']('TrackChangesEditing'),_0x2806e9=_0x53125e['locale'];_0x41a859['descriptionFactory']['registerElementLabel']('pageBreak',_0x221279=>o(_0x2806e9,'ELEMENT_PAGE_BREAK',_0x221279));}}class yt extends _0x31ef78{['afterInit'](){const _0x2934b8=this['editor'];if(!_0x2934b8['plugins']['has']('Paragraph'))return;const _0xe8b531=_0x2934b8['locale'],_0x166598=_0x2934b8['plugins']['get']('TrackChangesEditing');_0x166598['descriptionFactory']['registerElementLabel']('paragraph',_0x1893e2=>o(_0xe8b531,'ELEMENT_PARAGRAPH',_0x1893e2)),_0x166598['enableDefaultAttributesIntegration']('paragraph'),_0x166598['enableCommand']('insertParagraph'),_0x2934b8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2934b8),{'priority':'highest'}),_0x2934b8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x244dbc,_0x535a03,_0x248cca)=>{_0x248cca['options']['showSuggestionHighlights']&&nr(_0x2934b8,{'showActiveMarker':!0x1})(_0x244dbc,_0x535a03,_0x248cca);},{'priority':'highest'});const _0x4fccc8=_0x166598['descriptionFactory'];_0x4fccc8['registerDescriptionCallback'](_0x7e1adf=>{if('insertion'!==_0x7e1adf['type'])return;const {start:_0x573415,end:_0x4ac535}=_0x7e1adf['getFirstRange']();if(!_0x573415['isTouching'](_0x4ac535)||!_0x573415['nodeAfter'])return;const _0x454736=_0x2934b8['model']['schema'],_0x145c26=_0x573415['nodeAfter'];return _0x454736['isBlock'](_0x145c26)&&!_0x454736['isLimit'](_0x145c26)&&_0x454736['checkChild'](_0x145c26,'$text')?{'type':'insertion','content':o(_0xe8b531,'*Insert:*\x20%0',_0x4fccc8['getItemLabel'](_0x145c26,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7a05b5=this['editor'],_0x5f4fd5=_0x7a05b5['locale'];_0x7a05b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c063d=>{if('formatBlock'!=_0x3c063d['type'])return;const {data:_0x426df6}=_0x3c063d;return _0x426df6&&'paragraph'==_0x426df6['commandName']?{'type':'format','content':o(_0x5f4fd5,'*Change\x20to:*\x20%0',o(_0x5f4fd5,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4b6ffe,{showActiveMarker:_0x29f702=!0x0}={}){return(_0x29e2fd,_0x322df6,_0x5795e4)=>{const _0x5631da=_0x4b6ffe['plugins']['get']('TrackChangesEditing'),_0x133814=_0x322df6['markerRange']['start'],_0x1f431b=_0x322df6['markerRange']['end'],_0x19d87e=_0x4b6ffe['model']['schema'];if(!_0x133814['isTouching'](_0x1f431b)||!_0x133814['nodeAfter'])return;const _0x18b2b5=_0x133814['nodeAfter'];if(_0x19d87e['isBlock'](_0x18b2b5)&&!_0x19d87e['isLimit'](_0x18b2b5)&&_0x19d87e['checkChild'](_0x18b2b5,'$text')){if(!_0x5795e4['consumable']['consume'](_0x322df6['markerRange'],_0x29e2fd['name']))return;const {authorId:_0x24cff4}=_0x5631da['_splitMarkerName'](_0x322df6['markerName']),_0x594b38=_0x5795e4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x24cff4}),_0x590218=_0x5795e4['mapper']['toViewPosition'](_0x1f431b);_0x29f702&&_0x5631da['activeMarkers']['includes'](_0x322df6['markerName'])&&_0x5795e4['writer']['addClass']('ck-suggestion-marker--active',_0x594b38),_0x5795e4['writer']['insert'](_0x590218,_0x594b38),_0x5795e4['mapper']['bindElementToMarker'](_0x594b38,_0x322df6['markerName']);}};}class jt extends _0x31ef78{['afterInit'](){const _0x347dd5=this['editor'];_0x347dd5['commands']['get']('replaceSource')&&_0x347dd5['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x31ef78{['afterInit'](){const _0x3097ce=this['editor'];if(!_0x3097ce['plugins']['has']('RemoveFormatEditing'))return;_0x3097ce['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2512f0=this['editor'];_0x2512f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x72cec6=>{if('formatBlock'!=_0x72cec6['type']&&'formatInline'!=_0x72cec6['type'])return;const {data:_0xadd039}=_0x72cec6;return _0xadd039&&'removeFormat'==_0xadd039['commandName']?{'type':'format','content':o(_0x2512f0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x31ef78{['afterInit'](){const _0x59af22=this['editor'];if(!_0x59af22['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x26a14e=_0x59af22['plugins']['get']('TrackChangesEditing');_0x26a14e['enableCommand']('goToPreviousRestrictedEditingException'),_0x26a14e['enableCommand']('goToNextRestrictedEditingException');const _0x5ae406=_0x59af22['plugins']['get']('RestrictedEditingModeEditing');_0x5ae406['enableCommand']('trackChanges'),_0x5ae406['enableCommand']('acceptSuggestion'),_0x5ae406['enableCommand']('discardSuggestion'),_0x5ae406['enableCommand']('acceptAllSuggestions'),_0x5ae406['enableCommand']('discardAllSuggestions'),_0x5ae406['enableCommand']('acceptSelectedSuggestions'),_0x5ae406['enableCommand']('discardSelectedSuggestions');}}class It extends _0x31ef78{static get['requires'](){return[_0x2fa6e5];}['init'](){const _0x160d1d=this['editor'],_0x26f32f=_0x160d1d['plugins']['get']('TrackChangesEditing');_0x26f32f['enableCommand']('shiftEnter'),_0x160d1d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x160d1d),{'priority':'high'}),_0x160d1d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x160d1d),{'priority':'high'}),_0x160d1d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a9944,_0x379b9f,_0x7d6799)=>{_0x7d6799['options']['showSuggestionHighlights']&&je(_0x160d1d,{'showActiveMarker':!0x1})(_0x5a9944,_0x379b9f,_0x7d6799);}),_0x26f32f['descriptionFactory']['registerElementLabel']('softBreak',_0x3db3ad=>o(_0x160d1d['locale'],'ELEMENT_LINE_BREAK',_0x3db3ad));}}function je(_0x472591,{showActiveMarker:_0x4feaaa=!0x0}={}){return(_0x40d187,_0x55c091,_0x2caf68)=>{const _0xf318e4=_0x472591['plugins']['get']('TrackChangesEditing');if(!_0x2caf68['consumable']['test'](_0x55c091['markerRange'],_0x40d187['name']))return;const _0x5c3f2a=_0x472591['model'];for(const _0x430884 of _0x55c091['markerRange']['getItems']()){if(!_0x430884['is']('element','softBreak'))continue;const _0x4decf6='deletion'==_0x55c091['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2019da}=_0xf318e4['_splitMarkerName'](_0x55c091['markerName']),_0x34aae6=_0x2caf68['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4decf6,'data-author-id':_0x2019da}),_0x4b94b=_0x2caf68['mapper']['toViewPosition'](_0x5c3f2a['createPositionBefore'](_0x430884));_0x4feaaa&&_0xf318e4['activeMarkers']['includes'](_0x55c091['markerName'])&&_0x2caf68['writer']['addClass']('ck-suggestion-marker--active',_0x34aae6),_0x2caf68['writer']['insert'](_0x4b94b,_0x34aae6),_0x2caf68['mapper']['bindElementToMarker'](_0x34aae6,_0x55c091['markerName']);}};}class vt extends _0x31ef78{['afterInit'](){const _0x37dce1=this['editor'],_0x1956b6=_0x37dce1['model'],_0x1a070a=_0x37dce1['locale'];if(!_0x37dce1['plugins']['has']('StandardEditingModeEditing'))return;const _0x3bfb9b=_0x37dce1['plugins']['get']('TrackChangesEditing'),_0xd17eb0='restrictedEditingException',_0xfe95d=_0x37dce1['commands']['get'](_0xd17eb0);_0x3bfb9b['enableCommand'](_0xd17eb0,(_0x7303e4,_0x2377fe={})=>{const _0x377e2c=_0x1956b6['document']['selection'];if(_0x377e2c['isCollapsed'])return void _0x7303e4(_0x2377fe);const _0x428cbf=void 0x0!==_0x2377fe['forceValue']?_0x2377fe['forceValue']:!_0xfe95d['value'];_0x1956b6['change'](()=>{const _0x39f79e=Array['from'](_0x377e2c['getRanges']());for(const _0x233f23 of _0x39f79e){const _0x2a2b9c=_0x428cbf?[_0x233f23]:io(_0xd17eb0,_0x233f23,_0x1956b6);for(const _0x57afd8 of _0x2a2b9c)_0x3bfb9b['markInlineFormat'](_0x57afd8,{'commandName':_0xd17eb0,'commandParams':[{'forceValue':_0x428cbf}]});}});}),_0x3bfb9b['descriptionFactory']['registerDescriptionCallback'](_0x292304=>{if('formatBlock'!=_0x292304['type']&&'formatInline'!=_0x292304['type'])return;const {data:_0x4da844}=_0x292304;return _0x4da844&&_0x4da844['commandName']==_0xd17eb0?_0x4da844['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a070a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1a070a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x31ef78{['afterInit'](){const _0x3c7986=this['editor'];if(!_0x3c7986['plugins']['has']('Style')||!_0x3c7986['plugins']['has']('DataSchema'))return;const _0x2ceed4=_0x3c7986['plugins']['get']('TrackChangesEditing'),_0x2e1fce=_0x3c7986['locale'],_0x79e341=_0x3c7986['config']['get']('style')||{},_0x532e6f=_0x3c7986['plugins']['get']('GeneralHtmlSupport'),_0x51494e=_0x3c7986['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3c7986['plugins']['get']('DataSchema'),_0x79e341['definitions']);_0x2ceed4['enableDefaultAttributesIntegration']('style');const _0x1e9c33=new Set();for(const _0x950c2e of _0x51494e['block']){const _0x342563=_0x532e6f['getGhsAttributeNameForElement'](_0x950c2e['element']);_0x1e9c33['add'](_0x342563);}const _0x4a0008=new Set();for(const _0x384c1e of _0x51494e['inline']){const _0x5c3af8=_0x532e6f['getGhsAttributeNameForElement'](_0x384c1e['element']);_0x4a0008['add'](_0x5c3af8);for(const _0x4e503d of _0x384c1e['ghsAttributes'])_0x4a0008['add'](_0x4e503d);}for(const _0x2b1b2f of _0x1e9c33)_0x2ceed4['registerBlockAttribute'](_0x2b1b2f),_0x2ceed4['descriptionFactory']['registerAttributeLabel'](_0x2b1b2f,o(_0x2e1fce,'FORMAT_STYLE'));for(const _0x346545 of _0x4a0008)_0x2ceed4['registerInlineAttribute'](_0x346545),_0x2ceed4['descriptionFactory']['registerAttributeLabel'](_0x346545,o(_0x2e1fce,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35f1d5=this['editor'],_0x3da883=_0x35f1d5['locale'];_0x35f1d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36cd01=>{if('formatBlock'!=_0x36cd01['type']&&'formatInline'!=_0x36cd01['type'])return;const {data:_0x504c0f}=_0x36cd01;return _0x504c0f&&'style'===_0x504c0f['commandName']?_0x504c0f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3da883,'*Set\x20format:*\x20%0',_0x504c0f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3da883,'*Remove\x20format:*\x20%0',_0x504c0f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x31ef78{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x20b27c){super(_0x20b27c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x39d4c7=this['editor'],_0x37115a=_0x39d4c7['model']['document']['selection'];if(!_0x39d4c7['plugins']['has']('TableEditing'))return;const _0x243313=_0x39d4c7['locale'],_0x32903f=_0x39d4c7['plugins']['get']('TrackChangesEditing'),_0x5e1443=_0x39d4c7['plugins']['get']('TableUtils');_0x32903f['descriptionFactory']['registerElementLabel']('table',_0x5f247d=>o(_0x243313,'ELEMENT_TABLE',_0x5f247d)),this['_setupColumnsRowsFixing'](),_0x32903f['enableCommand']('insertTable'),_0x32903f['enableCommand']('selectTableRow'),_0x32903f['enableCommand']('selectTableColumn');for(const _0x3e0b26 of['insertTableRowAbove','insertTableRowBelow']){const _0x40c7e1=_0x39d4c7['commands']['get'](_0x3e0b26);_0x32903f['enableCommand'](_0x3e0b26,_0x5116e1=>{_0x39d4c7['model']['change'](_0x43e2f1=>{_0x5116e1();const _0x452915='above'===_0x40c7e1['order'],_0x152462=_0x5e1443['getSelectionAffectedTableCells'](_0x37115a),_0x32561a=_0x5e1443['getRowIndexes'](_0x152462),_0x533761=_0x452915?_0x32561a['first']-0x1:_0x32561a['last']+0x1,_0x5c9644=_0x152462[0x0]['findAncestor']('table'),_0x3635fe=_0x5e1443['createTableWalker'](_0x5c9644,{'startRow':_0x533761,'endRow':_0x533761}),_0x1625ca=Array['from'](_0x3635fe)['map'](_0x4e2c01=>_0x43e2f1['createRangeOn'](_0x4e2c01['cell']));_0x32903f['markMultiRangeInsertion'](_0x1625ca,'tableRow');});});}for(const _0x4bf2f0 of['insertTableColumnLeft','insertTableColumnRight']){const _0x136b53=_0x39d4c7['commands']['get'](_0x4bf2f0);_0x32903f['enableCommand'](_0x4bf2f0,_0xa09bfe=>{_0x39d4c7['model']['change'](_0x209883=>{_0xa09bfe();const _0x3433ff='left'===_0x136b53['order'],_0x3c7d04=_0x5e1443['getSelectionAffectedTableCells'](_0x37115a),_0x7340e9=_0x5e1443['getColumnIndexes'](_0x3c7d04),_0x2b7cf5=_0x3433ff?_0x7340e9['first']-0x1:_0x7340e9['last']+0x1,_0xd50adb=_0x3c7d04[0x0]['findAncestor']('table'),_0x91ed44=_0x5e1443['createTableWalker'](_0xd50adb,{'startRow':0x0,'column':_0x2b7cf5,'includeAllSlots':!0x1}),_0x23f718=Array['from'](_0x91ed44)['map'](_0x4e670c=>_0x209883['createRangeOn'](_0x4e670c['cell']));_0x32903f['markMultiRangeInsertion'](_0x23f718,'tableColumn');});});}for(const _0x27da91 of['removeTableRow','removeTableColumn']){const _0x24668a=_0x27da91['substr'](0xb),_0x47b037=_0x24668a['toLowerCase'](),_0x2428a0=_0x47b037['substr'](0x0,0x3)+'span',_0x5b841f='table'+_0x24668a,_0x518c87='min'+_0x24668a,_0x4d9aeb='max'+_0x24668a;_0x32903f['enableCommand'](_0x27da91,()=>{_0x39d4c7['model']['change'](_0x264729=>{const _0x18a6a2=_0x5e1443['getSelectionAffectedTableCells'](_0x37115a),_0x5d8fa8=_0x18a6a2[0x0]['findAncestor']('table');let _0x8c1dbe;if('removeTableRow'==_0x27da91){const _0x2a0a20=_0x5e1443['getRowIndexes'](_0x18a6a2);_0x8c1dbe={'startRow':_0x2a0a20['first'],'endRow':_0x2a0a20['last'],'includeAllSlots':!0x0};}else{const _0xb50ea4=_0x5e1443['getColumnIndexes'](_0x18a6a2);_0x8c1dbe={'startColumn':_0xb50ea4['first'],'endColumn':_0xb50ea4['last'],'includeAllSlots':!0x0};}const _0x1d1798=_0x5e1443['createTableWalker'](_0x5d8fa8,_0x8c1dbe),_0x1f62d6=Array['from'](_0x1d1798)['map'](({cell:_0x3f51b8})=>_0x3f51b8),_0x201c8d=Ne(_0x1f62d6['filter'](_0x341a84=>_0x341a84['hasAttribute'](_0x2428a0))),_0xc90fa4=Ne(_0x1f62d6['filter'](_0x172a96=>!_0x172a96['hasAttribute'](_0x2428a0)))['map'](_0xc33a1a=>_0x264729['createRangeOn'](_0xc33a1a)),_0x5f3df3=_0x32903f['markMultiRangeDeletion'](_0xc90fa4,_0x5b841f);if(_0x5f3df3&&('tableRow'==_0x5f3df3['subType']||'tableColumn'==_0x5f3df3['subType'])){const _0x576326=this['_getSuggestionCoords'](_0x5f3df3);for(const _0x3575db of _0x201c8d){const _0x34ce5a=_0x264729['createRangeOn'](_0x3575db),_0x4fc653=_0x5e1443['getCellLocation'](_0x3575db),_0x1b977e=_0x3575db['getAttribute'](_0x2428a0)-0x1,_0x1b8eb7=_0x576326[_0x518c87],_0x3be159=_0x576326[_0x4d9aeb];_0x1b8eb7<=_0x4fc653[_0x47b037]&&_0x4fc653[_0x47b037]+_0x1b977e<=_0x3be159&&_0x5f3df3['addRange'](_0x34ce5a);}}});});}function _0x27b6ed(_0xb46de7){const _0x1dd972=Array['from'](_0x37115a['getRanges']())['map'](_0x4fd93e=>_0x512f92['fromRange'](_0x4fd93e));_0x39d4c7['model']['change'](_0x1e063d=>{const _0x4670db=_0x1e063d['batch'];_0xb46de7=_0xb46de7['filter'](_0x15ddad=>'$graveyard'!=_0x15ddad['root']['rootName']),_0x1e063d['setSelection'](_0xb46de7),_0x39d4c7['commands']['get']('removeTableRow')['refresh'](),_0x39d4c7['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x39d4c7['model']['enqueueChange'](()=>{_0x39d4c7['model']['enqueueChange'](_0x4670db,_0x8ae6df=>{const _0x53a946=_0x1dd972['filter'](_0x2b9fef=>'$graveyard'!=_0x2b9fef['root']['rootName']);_0x53a946['length']>0x0&&_0x8ae6df['setSelection'](_0x53a946);for(const _0x11e96d of _0x1dd972)_0x11e96d['detach']();});});});}function _0x2044af(_0x161a0d){_0x39d4c7['model']['change'](_0x2d4e9e=>{const _0x4bd29e=Array['from'](_0x37115a['getRanges']())['map'](_0x15c4b4=>_0x512f92['fromRange'](_0x15c4b4)),_0x55dbe7=[];for(const _0x3de36d of _0x161a0d)for(const _0x23525b of _0x3de36d['getItems']({'shallow':!0x0}))_0x55dbe7['push'](_0x23525b);for(const _0x191402 of _0x55dbe7)'$graveyard'!=_0x191402['root']['rootName']&&(_0x2d4e9e['setSelection'](_0x2d4e9e['createPositionAt'](_0x191402,0x0)),_0x39d4c7['commands']['get']('removeTableColumn')['refresh'](),_0x39d4c7['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4a5bbb=_0x4bd29e['filter'](_0x2d0009=>'$graveyard'!=_0x2d0009['root']['rootName']);_0x4a5bbb['length']>0x0&&_0x2d4e9e['setSelection'](_0x4a5bbb);for(const _0x50983b of _0x4bd29e)_0x50983b['detach']();});}function _0x30fd58(_0x4c91dd,_0x17f22d){return _0x17f22d['every'](_0x160b04=>_0x4c91dd['some'](_0xa968ad=>_0xa968ad['end']['isEqual'](_0x160b04['start'])||_0x160b04['end']['isEqual'](_0xa968ad['start'])));}function _0x2cbe89(_0x1ffa0c,_0x30f7dd){return!_0x1ffa0c['some'](_0x142b1c=>_0x30f7dd['some'](_0x504a60=>_0x142b1c['isIntersecting'](_0x504a60)))&&_0x1ffa0c['some'](_0x112133=>_0x30f7dd['some'](_0x5947a3=>_0x112133['end']['isTouching'](_0x5947a3['start'])));}_0x39d4c7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x52c9c1,_0x641ddc,_0x44e6fd)=>{if(!_0x44e6fd['options']['showSuggestionHighlights'])return;const _0x139adf=_0x641ddc['item'];if(!_0x139adf)return;const _0xaa7b62=_0x44e6fd['mapper']['toViewElement'](_0x139adf);function _0x15f4f3(_0x4c4b9d){return Array['isArray'](_0x4c4b9d)?_0x4c4b9d:[_0x4c4b9d];}_0xaa7b62&&'tableCell'===_0x139adf['name']&&_0xd37db3(_0xaa7b62,_0x44e6fd['writer'],(_0x26d969,_0x2f233b,_0x167be0)=>_0x167be0['addClass'](_0x15f4f3(_0x2f233b['classes']),_0x26d969),(_0x272e5c,_0x25e4e0,_0x1295bd)=>_0x1295bd['removeClass'](_0x15f4f3(_0x25e4e0['classes']),_0x272e5c));},{'priority':'highest'}),_0x32903f['descriptionFactory']['registerDescriptionCallback'](_0x1a5be6=>{if('insertion'!=_0x1a5be6['type']&&'deletion'!=_0x1a5be6['type'])return;const _0x4e78eb=_0x1a5be6['getContainedElement']();if(null!=_0x4e78eb&&_0x4e78eb['is']('element','table')){if('insertion'==_0x1a5be6['type']){const _0x13372a=_0x1a5be6['getItems']()['filter'](_0x19d638=>_0x19d638['is']('$textProxy'))['map'](_0x453322=>_0x453322['data']);if(_0x13372a['length'])return{'type':'insertion','content':o(_0x243313,'*Insert:*\x20%0',o(_0x243313,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x13372a['join']('\x20')+'\x22'))};}if('deletion'==_0x1a5be6['type']){const _0x40babd=_0x1a5be6['getItems']()['filter'](_0x301a6e=>_0x301a6e['is']('$textProxy'))['map'](_0x15a39e=>_0x15a39e['data']);if(_0x40babd['length'])return{'type':'deletion','content':o(_0x243313,'*Remove:*\x20%0',o(_0x243313,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x40babd['join']('\x20')+'\x22'))};}}}),_0x32903f['descriptionFactory']['registerDescriptionCallback'](_0x52f964=>{if('tableRow'==_0x52f964['subType']){const _0xeff11=_0x52f964['getItems']()['filter'](_0x2f90a2=>_0x2f90a2['is']('$textProxy'))['map'](_0x10772e=>_0x10772e['data']),_0x220aa1=this['_getSuggestionCoords'](_0x52f964),_0x599a59=_0x220aa1['maxRow']-_0x220aa1['minRow']+0x1;if('insertion'==_0x52f964['type'])return _0xeff11['length']?{'type':'insertion','content':o(_0x243313,'*Insert:*\x20%0',o(_0x243313,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x599a59,'\x22'+_0xeff11['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x243313,'*Insert:*\x20%0',o(_0x243313,'ELEMENT_TABLE_ROW',_0x599a59))};if('deletion'==_0x52f964['type'])return _0xeff11['length']?{'type':'deletion','content':o(_0x243313,'*Remove:*\x20%0',o(_0x243313,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x599a59,'\x22'+_0xeff11['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x243313,'*Remove:*\x20%0',o(_0x243313,'ELEMENT_TABLE_ROW',_0x599a59))};}if('tableColumn'==_0x52f964['subType']){const _0x3511cd=_0x52f964['getItems']()['filter'](_0x42aa56=>_0x42aa56['is']('$textProxy'))['map'](_0x34a9ce=>_0x34a9ce['data']),_0x1a9233=this['_getSuggestionCoords'](_0x52f964),_0x26bfd9=_0x1a9233['maxColumn']-_0x1a9233['minColumn']+0x1;if('insertion'==_0x52f964['type'])return _0x3511cd['length']?{'type':'insertion','content':o(_0x243313,'*Insert:*\x20%0',o(_0x243313,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x26bfd9,'\x22'+_0x3511cd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x243313,'*Insert:*\x20%0',o(_0x243313,'ELEMENT_TABLE_COLUMN',_0x26bfd9))};if('deletion'==_0x52f964['type'])return _0x3511cd['length']?{'type':'deletion','content':o(_0x243313,'*Remove:*\x20%0',o(_0x243313,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x26bfd9,'\x22'+_0x3511cd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x243313,'*Remove:*\x20%0',o(_0x243313,'ELEMENT_TABLE_COLUMN',_0x26bfd9))};}}),_0x32903f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x27b6ed),_0x32903f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x27b6ed),_0x32903f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2044af),_0x32903f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2044af),_0x32903f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x30fd58),_0x32903f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x30fd58),_0x32903f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2cbe89),_0x32903f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2cbe89);}['_acceptFormatSuggestionCallbackFactory'](){const _0x25f7ef=this['editor'],_0xea64c5=_0x25f7ef['model']['document']['selection'];return(_0x51c471,_0x5145ea)=>{_0x25f7ef['model']['change'](_0x1438c0=>{const {commandName:_0x4d66f2,commandParams:_0x3ffdfa}=_0x5145ea;let _0x1704d0=_0x51c471[0x0]['end']['nodeBefore'];_0x3ffdfa&&_0x3ffdfa[0x0]&&!0x1===_0x3ffdfa[0x0]['forceValue']&&(_0x1704d0=_0x51c471[0x0]['start']['nodeAfter']);const _0x3efe69=_0x1438c0['createRangeIn'](_0x1704d0);if('$graveyard'==_0x3efe69['root']['rootName'])return;const _0x379cfa=Array['from'](_0xea64c5['getRanges']())['map'](_0x48902e=>_0x512f92['fromRange'](_0x48902e));_0x1438c0['setSelection'](_0x3efe69),_0x25f7ef['commands']['get'](_0x4d66f2)['refresh'](),_0x3ffdfa['push']({'forceDefaultExecution':!0x0}),_0x25f7ef['execute'](_0x4d66f2,..._0x3ffdfa);const _0x37e5f6=_0x379cfa['filter'](_0x3ac95c=>'$graveyard'!=_0x3ac95c['root']['rootName']);_0x37e5f6['length']>0x0&&_0x1438c0['setSelection'](_0x37e5f6);for(const _0x4cf4be of _0x379cfa)_0x4cf4be['detach']();});};}['_getCoordsForCells'](_0x3e5bb3){const _0x14e146=this['editor']['plugins']['get']('TableUtils');let _0x3b4e95=Number['MAX_SAFE_INTEGER'],_0x3ab802=Number['MIN_SAFE_INTEGER'],_0x4ffab4=Number['MAX_SAFE_INTEGER'],_0x3a534c=Number['MIN_SAFE_INTEGER'];for(const _0x1c7bb9 of _0x3e5bb3){if('$graveyard'==_0x1c7bb9['root']['rootName'])continue;const {row:_0x31af56,column:_0xdd1392}=_0x14e146['getCellLocation'](_0x1c7bb9),_0x21b7d8=_0x1c7bb9['hasAttribute']('rowspan')?_0x1c7bb9['getAttribute']('rowspan')-0x1:0x0,_0x2c38a8=_0x1c7bb9['hasAttribute']('colspan')?_0x1c7bb9['getAttribute']('colspan')-0x1:0x0;_0x3b4e95=_0x31af56<_0x3b4e95?_0x31af56:_0x3b4e95,_0x3ab802=_0x31af56+_0x21b7d8>_0x3ab802?_0x31af56+_0x21b7d8:_0x3ab802,_0x4ffab4=_0xdd1392<_0x4ffab4?_0xdd1392:_0x4ffab4,_0x3a534c=_0xdd1392+_0x2c38a8>_0x3a534c?_0xdd1392+_0x2c38a8:_0x3a534c;}return{'minRow':_0x3b4e95,'maxRow':_0x3ab802,'minColumn':_0x4ffab4,'maxColumn':_0x3a534c};}['_setupColumnsRowsFixing'](){const _0x55d830=this['editor'],_0x5ddf17=_0x55d830['plugins']['get']('TrackChangesEditing'),_0x21a088=_0x55d830['plugins']['get']('TableUtils');_0x55d830['model']['document']['on']('change:data',()=>{const _0x1d4eae=Array['from'](_0x55d830['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x11ee0e,data:_0x9a57ee}of _0x1d4eae){const {group:_0x4f9e78,id:_0x1e1f15,subType:_0x3b55b9}=_0x5ddf17['_splitMarkerName'](_0x11ee0e);if('suggestion'!=_0x4f9e78)continue;if(null!=_0x9a57ee['oldRange'])continue;const _0x4a69a5=_0x5ddf17['getSuggestion'](_0x1e1f15);this['_tablePostFixingSubtypes']['includes'](_0x3b55b9)&&this['_tableSuggestions']['add'](_0x4a69a5);}},{'priority':'low'});const _0x5061cf=(_0x42169a,_0x3b1b65)=>{let _0x4465a3=!0x1;const _0x26e255=_0x3b1b65['createRangeOn'](_0x42169a),_0x253073=_0x42169a['findAncestor']('table'),_0x397196=_0x21a088['getCellLocation'](_0x42169a);for(const _0x51fc54 of this['_tableSuggestions']){const _0x21a653=_0x51fc54['subType'],_0x2c4c63=_0x21a653['startsWith']('tablePaste'),_0x3b0114=_0x21a653['substr'](_0x2c4c63?0xa:0x5),_0x56d1b6=_0x3b0114['toLowerCase'](),_0x1b1ee3=_0x56d1b6['substr'](0x0,0x3)+'span',_0xaa3d24='min'+_0x3b0114,_0x5a56f1='max'+_0x3b0114;if(!_0x51fc54['isInContent'])continue;if(_0x253073!=_0x51fc54['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x51fc54['isIntersectingWithRange'](_0x26e255))continue;const _0x5b7f64=_0x42169a['hasAttribute'](_0x1b1ee3)?_0x42169a['getAttribute'](_0x1b1ee3)-0x1:0x0,_0x12b5cd=this['_getSuggestionCoords'](_0x51fc54),_0x32c1b9=_0x12b5cd[_0xaa3d24],_0x178d30=_0x12b5cd[_0x5a56f1];_0x32c1b9<=_0x397196[_0x56d1b6]&&_0x397196[_0x56d1b6]+_0x5b7f64<=_0x178d30&&(_0x51fc54['addRange'](_0x26e255),_0x4465a3=!0x0);}return _0x4465a3;};_0x55d830['model']['document']['registerPostFixer'](_0x5118f3=>{let _0x48d543=!0x1;for(const _0x8ab446 of _0x55d830['model']['document']['differ']['getChanges']())if('insert'==_0x8ab446['type']){if('tableRow'==_0x8ab446['name']){for(const _0x37b57f of _0x8ab446['position']['nodeAfter']['getChildren']())_0x48d543=_0x48d543||_0x5061cf(_0x37b57f,_0x5118f3);}else'tableCell'==_0x8ab446['name']&&(_0x48d543=_0x48d543||_0x5061cf(_0x8ab446['position']['nodeAfter'],_0x5118f3));}return _0x48d543;});}['_getSuggestionCoords'](_0x581254){return this['_getCoordsForCells'](_0x581254['getRanges']()['map'](_0x95b994=>_0x95b994['start']['nodeAfter']));}}function Ne(_0x360267){return Array['from'](new Set(_0x360267)['values']());}class Nt extends _0x31ef78{static get['requires'](){return[Ct];}['afterInit'](){const _0x5c3432=this['editor'],_0x175263=_0x5c3432['model']['document']['selection'],_0x561b39=_0x5c3432['locale'];if(!_0x5c3432['plugins']['has']('TableEditing'))return;const _0x3cc1b0=_0x5c3432['plugins']['get']('TrackChangesEditing'),_0x308cf3=_0x5c3432['plugins']['get']('TableUtils'),_0x2cd0c3=_0x5c3432['plugins']['get'](Ct);_0x2cd0c3['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3cc1b0['enableCommand']('mergeTableCells',()=>{const _0x27b2f2=_0x308cf3['getSelectionAffectedTableCells'](_0x5c3432['model']['document']['selection']);_0x5c3432['model']['change'](()=>{_0x3cc1b0['markMultiRangeBlockFormat'](_0x27b2f2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5c3432['commands']['get']('mergeTableCells')['on']('execute',(_0x1f98f1,_0x162b40)=>{_0x5c3432['commands']['get']('trackChanges')['value']&&(_0x162b40['length']>0x0&&_0x162b40[_0x162b40['length']-0x1]&&_0x162b40[_0x162b40['length']-0x1]['forceDefaultExecution']||_0x3cc1b0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1f98f1['stop']());},{'priority':'highest'});for(const _0x13dd64 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4b639c=_0x5c3432['commands']['get'](_0x13dd64);_0x3cc1b0['enableCommand'](_0x13dd64,()=>{const _0x1743f0=_0x5c3432['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x53dc9c=>_0x53dc9c['is']('element','tableCell')),_0x418958=_0x4b639c['value'];_0x5c3432['model']['change'](()=>{_0x3cc1b0['markMultiRangeBlockFormat']([_0x1743f0,_0x418958],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2db528 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1f63c9=_0x5c3432['commands']['get'](_0x2db528);_0x3cc1b0['enableCommand'](_0x2db528,()=>{const _0xd7d879=_0x308cf3['getSelectionAffectedTableCells'](_0x5c3432['model']['document']['selection'])[0x0],_0x147379=_0xd7d879['findAncestor']('table'),{column:_0x32c3f9,row:_0x38fbc5}=_0x308cf3['getCellLocation'](_0xd7d879);let _0x4fffc7=[];if('horizontally'==_0x1f63c9['direction']){const _0x350145=_0x308cf3['createTableWalker'](_0x147379,{'startRow':_0x38fbc5,'endRow':_0x38fbc5,'includeAllSlots':!0x0});_0x4fffc7=Array['from'](_0x350145)['map'](_0x4e5300=>_0x4e5300['cell']);}else{const _0x3692dc=_0x308cf3['createTableWalker'](_0x147379,{'column':_0x32c3f9,'includeAllSlots':!0x0});_0x4fffc7=Array['from'](_0x3692dc)['map'](_0x19393a=>_0x19393a['cell']);}_0x5c3432['model']['change'](_0x1562f5=>{_0x3cc1b0['markBlockFormat'](_0x1562f5['createRangeOn'](_0xd7d879),{'commandName':_0x2db528,'commandParams':[]},_0x4fffc7,_0x2db528);});});}_0x3cc1b0['descriptionFactory']['registerDescriptionCallback'](_0x3a6ec3=>{if('formatBlock'!=_0x3a6ec3['type']&&'formatInline'!=_0x3a6ec3['type'])return;const {data:_0x53cc47}=_0x3a6ec3;return _0x53cc47&&'mergeTableCells'==_0x53cc47['commandName']?{'type':'format','content':o(_0x561b39,'*Merge\x20cells*')}:void 0x0;}),_0x3cc1b0['descriptionFactory']['registerDescriptionCallback'](_0x2f815e=>{if('formatBlock'!=_0x2f815e['type']&&'formatInline'!=_0x2f815e['type'])return;const {data:_0x51b149}=_0x2f815e;return _0x51b149?'splitTableCellVertically'==_0x51b149['commandName']?{'type':'format','content':o(_0x561b39,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x51b149['commandName']?{'type':'format','content':o(_0x561b39,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x357157=_0x2cd0c3['_acceptFormatSuggestionCallbackFactory']();for(const _0x411da0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3cc1b0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x411da0,'accept',_0x357157);for(const _0x5b6076 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3cc1b0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b6076,'accept',_0x357157);_0x3cc1b0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3de97f=>{_0x5c3432['model']['change'](_0x575b8e=>{const _0x2b54f2=Array['from'](_0x175263['getRanges']())['map'](_0x5a75d4=>_0x512f92['fromRange'](_0x5a75d4));_0x575b8e['setSelection'](_0x3de97f),_0x5c3432['commands']['get']('mergeTableCells')['refresh'](),_0x5c3432['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3f623d=_0x2b54f2['filter'](_0x9cd37=>'$graveyard'!=_0x9cd37['root']['rootName']);_0x3f623d['length']>0x0&&_0x575b8e['setSelection'](_0x3f623d);for(const _0x5a292f of _0x2b54f2)_0x5a292f['detach']();});});for(const _0x5092d1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x45c228=_0x5c3432['commands']['get'](_0x5092d1);_0x45c228['on']('set:isEnabled',(_0x467908,_0x5720df,_0x28ca19)=>{if(_0x28ca19){const _0x16c36b=_0x5c3432['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x150e5b=>_0x150e5b['is']('element','tableCell'));this['_areMergableCells'](_0x45c228['value'],_0x16c36b)||(_0x467908['return']=!0x1,_0x467908['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x142060=this['editor']['commands']['get']('mergeTableCells'),_0x507a97=this['editor']['plugins']['get']('TableUtils');if(!_0x142060['isEnabled'])return!0x1;const _0x5b77af=_0x507a97['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5a4db0 of _0x5b77af)for(const _0x4d12fd of _0x5b77af)if(_0x5a4db0!=_0x4d12fd&&!this['_areMergableCells'](_0x5a4db0,_0x4d12fd))return!0x1;return!0x0;}['_areMergableCells'](_0xe42baf,_0x43224c){const _0x1ca4c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e33da=this['editor']['model']['createRangeOn'](_0xe42baf),_0x4f0507=this['editor']['model']['createRangeOn'](_0x43224c),_0x3c4f25=new Set(),_0x37bc70=new Set();for(const _0x55e5fa of _0x1ca4c8['getSuggestions']())if(('insertion'==_0x55e5fa['type']||'deletion'==_0x55e5fa['type']||'mergeTableCells'==_0x55e5fa['subType'])&&_0x55e5fa['isInContent']){for(const _0x17186a of _0x55e5fa['getRanges']())_0x17186a['containsRange'](_0x5e33da,!0x0)&&_0x3c4f25['add'](_0x55e5fa['type']+':'+_0x55e5fa['author']['id']),_0x17186a['containsRange'](_0x4f0507,!0x0)&&_0x37bc70['add'](_0x55e5fa['type']+':'+_0x55e5fa['author']['id']);}if(_0x3c4f25['size']!=_0x37bc70['size'])return!0x1;for(const _0x4d7d29 of _0x3c4f25)if(!_0x37bc70['has'](_0x4d7d29))return!0x1;return!0x0;}}class Dt extends _0x31ef78{static get['requires'](){return[Ct];}['afterInit'](){const _0x12a706=this['editor'];if(!_0x12a706['plugins']['has']('TableEditing'))return;const _0x20d33a=_0x12a706['locale'],_0x240044=_0x12a706['plugins']['get']('TrackChangesEditing');_0x240044['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x240044['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x240044['registerBlockAttribute']('headingRows'),_0x240044['registerBlockAttribute']('headingColumns'),_0x240044['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x20d33a,'FORMAT_HEADER_ROW')),_0x240044['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x20d33a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xc0ef42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x573bd8=this['editor']['plugins']['get']('TableUtils'),_0x34c522=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0xbb11f3({showActiveMarker:_0x32a9ad=!0x0,setDataAttribute:_0x2ea1b1=!0x0}={}){return(_0x5df35f,_0x53f257,_0x502903)=>{const {type:_0x361c43,id:_0x5bdd2f}=_0xc0ef42['_splitMarkerName'](_0x53f257['markerName']),_0x54f3e1=_0xc0ef42['getSuggestion'](_0x5bdd2f),_0x472f8f=_0x54f3e1['data'];if('formatBlock'!=_0x54f3e1['type']||!_0x472f8f||'setTableColumnHeader'!=_0x472f8f['commandName'])return;if(_0x53f257['item'])return void _0x5df35f['stop']();if(!_0x502903['consumable']['consume'](_0x53f257['markerRange'],_0x5df35f['name']))return;const _0x77273d=_0x53f257['markerRange']['start']['nodeAfter'],_0x4c70ad=_0x53f257['markerRange']['end']['nodeBefore'],_0x4a68c3=_0x77273d['parent']['parent'],{column:_0x2cac4c}=_0x573bd8['getCellLocation'](_0x77273d),{column:_0x1b5f7b}=_0x573bd8['getCellLocation'](_0x4c70ad);for(let _0x474e60=_0x2cac4c;_0x474e60<=_0x1b5f7b;_0x474e60++){const _0x24c29d=_0x573bd8['createTableWalker'](_0x4a68c3,{'column':_0x474e60,'includeAllSlots':!0x1});for(const _0x198dc8 of _0x24c29d){const _0x2802de=_0x198dc8['cell'],_0xb7a7f4=_0x502903['mapper']['toViewElement'](_0x2802de);_0x502903['writer']['addClass']('ck-suggestion-marker-'+_0x361c43,_0xb7a7f4),_0x2ea1b1&&_0x502903['writer']['setAttribute']('data-suggestion',_0x5bdd2f,_0xb7a7f4),_0x502903['mapper']['bindElementToMarker'](_0xb7a7f4,_0x53f257['markerName']),_0x32a9ad&&(_0xc0ef42['activeMarkers']['includes'](_0x53f257['markerName'])?_0x502903['writer']['addClass']('ck-suggestion-marker--active',_0xb7a7f4):_0x502903['writer']['removeClass']('ck-suggestion-marker--active',_0xb7a7f4));}}};}_0xc0ef42['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x34c522),_0xc0ef42['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x34c522),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xbb11f3(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd52102,_0x2aabb3,_0x3fc0a1)=>{_0x3fc0a1['options']['showSuggestionHighlights']&&_0xbb11f3({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xd52102,_0x2aabb3,_0x3fc0a1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1aee66,_0x11bd70,_0xd567b5)=>{const {type:_0x5a1a29,id:_0x4d7b02}=_0xc0ef42['_splitMarkerName'](_0x11bd70['markerName']),_0x58b6fb=_0xc0ef42['getSuggestion'](_0x4d7b02),_0x422c7a=_0x58b6fb['data'];if('formatBlock'!=_0x58b6fb['type']||!_0x422c7a||'setTableColumnHeader'!=_0x422c7a['commandName'])return;const _0x37ae5f=_0xd567b5['mapper']['markerNameToElements'](_0x11bd70['markerName']);if(_0x37ae5f){for(const _0x499339 of _0x37ae5f)_0xd567b5['writer']['removeClass']('ck-suggestion-marker-'+_0x5a1a29,_0x499339),_0xd567b5['writer']['removeClass']('ck-suggestion-marker--active',_0x499339),_0xd567b5['writer']['removeAttribute']('data-suggestion',_0x499339),_0xd567b5['mapper']['unbindElementFromMarkerName'](_0x499339,_0x11bd70['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d80ae=this['editor'],_0x576cfd=_0x4d80ae['locale'];function _0x57b9ec(_0x46a0a5){return{'type':'format','content':o(_0x576cfd,'*Format:*\x20%0',_0x46a0a5)};}_0x4d80ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b4cae=>{if('formatBlock'!=_0x4b4cae['type'])return;const {data:_0x53c868}=_0x4b4cae;if(_0x53c868){if('setTableRowHeader'==_0x53c868['commandName']){const _0x5303f1=_0x53c868['commandParams'][0x0]['forceValue'];return _0x57b9ec(o(_0x576cfd,_0x5303f1?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x53c868['commandName']){const _0x54187d=_0x53c868['commandParams'][0x0]['forceValue'];return _0x57b9ec(o(_0x576cfd,_0x54187d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x26ea1e=>[_0x26ea1e,null]));class Mt extends _0x31ef78{static get['requires'](){return[Ct];}['afterInit'](){const _0x2421f5=this['editor'];if(!_0x2421f5['plugins']['has']('TableClipboard'))return;const _0x1ccefc=_0x2421f5['plugins']['get']('TrackChangesEditing'),_0x5cc511=_0x2421f5['plugins']['get']('TableUtils'),_0xfe86e1=_0x2421f5['plugins']['get'](Ct),_0x59246a=_0x2421f5['plugins']['get']('TableClipboard');_0xfe86e1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2421f5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2421f5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x46087d=null;_0x2421f5['model']['on']('insertContent',(_0x35c863,_0x2203f8)=>{const [_0x5070ed,_0x58a035]=_0x2203f8,_0x2379b9=_0x2203f8[_0x2203f8['length']-0x1];_0x2379b9&&_0x2379b9['forceDefaultExecution']||_0x1ccefc['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4f65c7,_0x1e2431,_0x494a4b,_0x359ffa,_0xb657d8){if(_0x1e2431&&!_0x1e2431['is']('documentSelection'))return!0x1;const _0xf9aaad=_0xb657d8['getTableIfOnlyTableInContent'](_0x4f65c7,_0x494a4b);if(!_0xf9aaad||!Ue(_0xf9aaad,void 0x0,_0x359ffa))return!0x1;const _0x3ab9d6=_0x359ffa['getSelectionAffectedTableCells'](_0x494a4b['document']['selection']);if(!_0x3ab9d6['length'])return!0x1;const _0x37fe6f=_0x3ab9d6[0x0]['findAncestor']('table'),_0x15bcd0=_0x359ffa['getRowIndexes'](_0x3ab9d6),_0x10657a=_0x359ffa['getColumnIndexes'](_0x3ab9d6),_0x116ce4={'startRow':_0x15bcd0['first'],'endRow':_0x15bcd0['last'],'startColumn':_0x10657a['first'],'endColumn':_0x10657a['last']};return 0x1==_0x3ab9d6['length']&&(_0x116ce4['endRow']+=_0x359ffa['getRows'](_0xf9aaad)-0x1,_0x116ce4['endColumn']+=_0x359ffa['getColumns'](_0xf9aaad)-0x1),Ue(_0x37fe6f,_0x116ce4,_0x359ffa);}(_0x5070ed,_0x58a035,_0x2421f5['model'],_0x5cc511,_0x59246a)&&(_0x35c863['stop'](),_0x46087d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2421f5['model']['change'](()=>{_0x2421f5['model']['insertContent'](_0x2203f8[0x0],_0x2203f8[0x1],_0x2203f8[0x2],{'forceDefaultExecution':!0x0});const _0x4f31f1=_0x2b97bd(),{rowInsertionRanges:_0x18d5ae,columnInsertionRanges:_0xf04e6b,insertionRanges:_0x4a374a,deletionRanges:_0x4576a9,cells:_0x51cc94}=_0x46087d;_0x18d5ae['length']&&_0x1ccefc['markMultiRangeInsertion'](_0x18d5ae,'tablePasteRow',{'tablePasteChainId':_0x4f31f1}),_0xf04e6b['length']&&_0x1ccefc['markMultiRangeInsertion'](_0xf04e6b,'tablePasteColumn',{'tablePasteChainId':_0x4f31f1}),_0x4a374a['length']&&(_0x1ccefc['markMultiRangeInsertion'](_0x4a374a,'tablePaste',{'tablePasteChainId':_0x4f31f1,'skipNestingCheck':!0x0}),_0x4a374a['forEach'](_0x37b561=>_0x37b561['detach']?.())),_0x4576a9['length']&&(_0x1ccefc['markMultiRangeDeletion'](_0x4576a9,'tablePaste',{'tablePasteChainId':_0x4f31f1,'skipNestingCheck':!0x0}),_0x4576a9['forEach'](_0x2e0bf1=>_0x2e0bf1['detach']?.()));const _0x48328c=_0x1ccefc['markMultiRangeBlockFormat'](_0x51cc94['map'](({element:_0x2baa8c})=>_0x2baa8c),{'formatGroupId':_0x2b97bd()},[],'tablePasteCell',{'tablePasteChainId':_0x4f31f1});if(_0x48328c){const _0x55ced5=_0x48328c['getMarkers'](),_0x1df6dd=[];for(const {element:_0xa883bc,attributes:_0x427dc7}of _0x51cc94){if(!_0x427dc7)continue;const _0x2147c6=_0x2421f5['model']['createRangeOn'](_0xa883bc),_0x36f191=_0x55ced5['find'](_0x1f8605=>_0x1f8605['getRange']()['isEqual'](_0x2147c6));_0x36f191&&_0x1df6dd['push']([_0x36f191['name'],_0x427dc7]);}_0x1df6dd['length']&&_0x48328c['setAttribute']('markerAttributes',Object['fromEntries'](_0x1df6dd));}_0x46087d=null;}));},{'priority':_0x5b2b34['high']+0xa}),_0x2421f5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x131560,_0xbfd59)=>{const [_0x6c1520,_0xdde773,,_0x1601ec]=_0xbfd59;if(!_0x46087d)return;_0x131560['stop']();const _0xa988c2=_0x6c1520['cell'],_0x6fb2fe=_0xdde773,_0x9c167=Oe(_0xa988c2),_0xcd2c9c=Oe(_0x6fb2fe);_0x131560['return']=_0xa988c2;let _0x420b54=null,_0x9c6e82=null;if(_0xcd2c9c||_0x9c167){if(_0x9c167&&!_0xcd2c9c){_0x1601ec['remove'](_0xa988c2['getChild'](0x0));for(const _0x3c0e of Array['from'](_0x6fb2fe['getChildren']()))_0x1601ec['insert'](_0x3c0e,_0xa988c2,'end');const _0x5cddaf=_0x46087d['rowInsertionIndexes']['includes'](_0x6c1520['row']),_0x5e5a5e=_0x46087d['columnInsertionIndexes']['includes'](_0x6c1520['column']);_0x5cddaf||_0x5e5a5e||(_0x420b54=_0x512f92['fromRange'](_0x1601ec['createRangeIn'](_0xa988c2)));}else _0xcd2c9c&&!_0x9c167&&(_0x9c6e82=_0x1601ec['createRangeIn'](_0xa988c2));}else{const _0x42a162=_0x1601ec['createElement']('tableCellSuggestion'),_0x327041=_0x1601ec['createElement']('tableCellSuggestion');_0x1601ec['wrap'](_0x1601ec['createRangeIn'](_0xa988c2),_0x327041),_0x1601ec['insert'](_0x42a162,_0xa988c2,0x0);for(const _0x3a1db5 of Array['from'](_0x6fb2fe['getChildren']()))_0x1601ec['insert'](_0x3a1db5,_0x42a162,'end');_0x420b54=_0x512f92['fromRange'](_0x1601ec['createRangeOn'](_0x42a162)),_0x9c6e82=_0x512f92['fromRange'](_0x1601ec['createRangeOn'](_0x327041));}const _0x342f28=Array['from'](_0x6fb2fe['getAttributes']())['filter'](([_0x2d9c11])=>Be['includes'](_0x2d9c11));_0x46087d['cells']['push']({'element':_0xa988c2,'attributes':_0x342f28['length']?Object['fromEntries'](_0x342f28):null}),_0x420b54&&_0x46087d['insertionRanges']['push'](_0x420b54),_0x9c6e82&&_0x46087d['deletionRanges']['push'](_0x9c6e82);},{'priority':'high'}),_0x5cc511['on']('insertColumns',(_0x1060a4,_0x107b1a)=>{const [_0x53637f,_0x43b3e4={}]=_0x107b1a;if(!_0x46087d)return;const _0x29cd96=_0x43b3e4['at']||0x0,_0x1a8a49=_0x43b3e4['columns']||0x1;_0x46087d['columnInsertionIndexes']=new Array(_0x1a8a49)['fill'](_0x29cd96)['map']((_0x42c064,_0x587402)=>_0x42c064+_0x587402);for(const {cell:_0x41c286}of _0x5cc511['createTableWalker'](_0x53637f,{'startColumn':_0x29cd96,'endColumn':_0x29cd96+_0x1a8a49-0x1}))_0x46087d['columnInsertionRanges']['push'](_0x2421f5['model']['createRangeOn'](_0x41c286));},{'priority':'low'}),_0x5cc511['on']('insertRows',(_0x1f049f,_0x25f96b)=>{const [_0x18615f,_0x5a5a76={}]=_0x25f96b;if(!_0x46087d)return;const _0x1bfd68=_0x5a5a76['at']||0x0,_0x1ccd42=_0x5a5a76['rows']||0x1;_0x46087d['rowInsertionIndexes']=new Array(_0x1ccd42)['fill'](_0x1bfd68)['map']((_0x49886d,_0x186322)=>_0x49886d+_0x186322);for(const {cell:_0x236bea}of _0x5cc511['createTableWalker'](_0x18615f,{'startRow':_0x1bfd68,'endRow':_0x1bfd68+_0x1ccd42-0x1}))_0x46087d['rowInsertionRanges']['push'](_0x2421f5['model']['createRangeOn'](_0x236bea));},{'priority':'low'}),_0x1ccefc['descriptionFactory']['registerDescriptionCallback'](_0x3c6529=>{if(_0x3c6529['subType']&&_0x3c6529['subType']['startsWith']('tablePaste'))return _0x3c6529['previous']?{}:{'type':'insertion','content':o(_0x2421f5['locale'],'*Replace\x20table\x20cells*')};});const _0x3aa8ea=()=>!0x1;for(const _0xb69ed1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1ccefc['_suggestionFactory']['registerCustomCallback']('insertion',_0xb69ed1,'join',_0x3aa8ea),_0x1ccefc['_suggestionFactory']['registerCustomCallback']('deletion',_0xb69ed1,'join',_0x3aa8ea),_0x1ccefc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xb69ed1,'join',_0x3aa8ea);_0x1ccefc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3aa8ea),_0x1ccefc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4bc446,_0x351c96,_0x46c432)=>{const _0x215f88=_0x4bc446['map'](_0x32ba32=>_0x32ba32['getContainedElement']())['filter'](_0x16bf1c=>_0x16bf1c),_0x5d6146=new Map(_0x215f88['map'](_0x11985a=>[_0x11985a,null]));if(_0x46087d){for(const {element:_0x1effe8,attributes:_0x47ac47}of _0x46087d['cells'])_0x47ac47&&_0x5d6146['set'](_0x1effe8,_0x47ac47);}else{if(_0x46c432&&_0x46c432['markerAttributes'])for(const [_0x2903a8,_0x5b120d]of Object['entries'](_0x46c432['markerAttributes'])){const _0x56aa6c=_0x2421f5['model']['markers']['get'](_0x2903a8),_0x5a4700=_0x56aa6c?_0x56aa6c['getRange']()['getContainedElement']():null;_0x5a4700&&_0x5d6146['set'](_0x5a4700,_0x5b120d);}}_0x2421f5['model']['change'](_0x28199f=>{for(const [_0x20565a,_0x42aa1a]of _0x5d6146)_0x28199f['setAttributes']({...xe,..._0x42aa1a},_0x20565a);});});const _0x57e8a7=(_0x41ec65,_0x553740)=>{_0x1ccefc['_suggestionFactory']['registerCustomCallback'](_0x41ec65,'tablePaste',_0x553740,(_0x1d46dd,_0x522b37,_0x427caa)=>{_0x2421f5['model']['change'](_0x5df85a=>{const _0x29b613=[];for(const _0x2676b7 of _0x1d46dd){const _0xd76ad7=_0x2676b7['start']['nodeAfter'];_0xd76ad7['is']('element','tableCellSuggestion')&&_0x29b613['push'](_0xd76ad7);}_0x1ccefc['_suggestionFactory']['getSuggestionCallback'](_0x41ec65,null,_0x553740)(_0x1d46dd,_0x522b37,_0x427caa);for(const _0x2903ce of _0x29b613)'$graveyard'!=_0x2903ce['root']['rootName']&&_0x5df85a['unwrap'](_0x2903ce);});});};_0x57e8a7('insertion','accept'),_0x57e8a7('insertion','discard'),_0x57e8a7('deletion','accept'),_0x57e8a7('deletion','discard'),_0x1ccefc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x44a423=>{const _0xf9afcc=_0x44a423['map'](_0x1f63cb=>_0x1f63cb['getContainedElement']()),_0x5e74e9=_0xf9afcc[0x0]['findAncestor']('table'),{minRow:_0x88a5f3,maxRow:_0x3f7c28}=_0xfe86e1['_getCoordsForCells'](_0xf9afcc);_0x5cc511['removeRows'](_0x5e74e9,{'at':_0x88a5f3,'rows':_0x3f7c28-_0x88a5f3+0x1});}),_0x1ccefc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x43418c=>{const _0x5bafe4=_0x43418c['map'](_0x2c37e8=>_0x2c37e8['getContainedElement']()),_0x2a0b7e=_0x5bafe4[0x0]['findAncestor']('table'),{minColumn:_0x482a0c,maxColumn:_0xf74ac5}=_0xfe86e1['_getCoordsForCells'](_0x5bafe4);_0x5cc511['removeColumns'](_0x2a0b7e,{'at':_0x482a0c,'columns':_0xf74ac5-_0x482a0c+0x1});});const _0x4ffd24=(_0x2ec7a9,_0xe57e8c)=>{if(!_0xe57e8c['subType']||!_0xe57e8c['subType']['startsWith']('tablePaste'))return;const _0x82ddc=_0xe57e8c['attributes']['tablePasteChainId'],_0x94b94f=_0x1ccefc['getSuggestions']()['filter'](_0x5e1fd9=>_0x5e1fd9['isInContent']&&_0x5e1fd9['attributes']&&_0x5e1fd9['attributes']['tablePasteChainId']==_0x82ddc);_0x94b94f['length']&&_0xe57e8c['getAllAdjacentSuggestions']()['length']!=_0x94b94f['length']&&_0x94b94f['reduce']((_0x3cd780,_0x249032)=>(_0x3cd780['next']=_0x249032,_0x249032['previous']=_0x3cd780,_0x249032));};function _0x35ab55(_0x3211fc,_0x428967=!0x0){const {id:_0x5d8a07,authorId:_0x160d43}=_0x1ccefc['_splitMarkerName'](_0x3211fc['markerName']),_0x38d868=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4df0d8=_0x1ccefc['activeMarkers']['includes'](_0x3211fc['markerName']);return _0x4df0d8&&_0x38d868['push']('ck-suggestion-marker--active'),{'classes':_0x38d868,'attributes':{'data-suggestion':_0x5d8a07,'data-author-id':_0x160d43},'priority':_0x4df0d8&&_0x428967?0xbc2:0xbb8};}_0x1ccefc['on']('suggestionLoaded',_0x4ffd24,{'priority':'high'}),_0x1ccefc['on']('suggestionUnloaded',_0x4ffd24,{'priority':'high'}),_0x2421f5['model']['document']['registerPostFixer'](()=>{let _0x1c98db=!0x1;const _0x332aa5=Array['from'](_0x2421f5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1e2ced,data:_0x1aebbf}of _0x332aa5){const {group:_0x48fcc8,type:_0x5f1d68,id:_0x3c1df0}=_0x1ccefc['_splitMarkerName'](_0x1e2ced);if('suggestion'!=_0x48fcc8||'deletion'!=_0x5f1d68||_0x1aebbf['oldRange'])continue;if(!_0x1ccefc['hasSuggestion'](_0x3c1df0))continue;const _0x3c38db=_0x1ccefc['getSuggestion'](_0x3c1df0)['getRanges'](),_0x509cd1=_0x2421f5['plugins']['get']('Users')['me'];for(const _0x60181e of _0x1ccefc['getSuggestions']()){if(!_0x60181e['isInContent']||_0x60181e['author']!=_0x509cd1)continue;if('formatBlock'!=_0x60181e['type']||'tablePasteCell'!=_0x60181e['subType'])continue;if(_0x60181e['getRanges']()['every'](_0x23907c=>_0x3c38db['some'](_0x496515=>_0x496515['containsRange'](_0x23907c,!0x0)))){for(const _0x2ab95f of _0x60181e['getAllAdjacentSuggestions']())_0x2ab95f['isInContent']&&(_0x2ab95f['discard'](),_0x1c98db=!0x0);}}}return _0x1c98db;}),_0x2421f5['model']['document']['registerPostFixer'](_0x45dc83=>{const _0x2467ca=_0x2421f5['commands']['get']('redo');if(!_0x2467ca||!_0x2467ca['_createdBatches']['has'](_0x45dc83['batch']))return!0x1;let _0x28e7ba=!0x1;const _0x1af9c9=_0x2421f5['plugins']['get']('Users')['me'],_0x1a3d59=_0x2421f5['model']['document']['differ']['getChanges'](),_0x22763e=Array['from'](_0x2421f5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5ac88c,data:_0x5b33d2})=>{const {group:_0x457eef,subType:_0x169205,authorId:_0x566b3e}=_0x1ccefc['_splitMarkerName'](_0x5ac88c);return'suggestion'==_0x457eef&&'tablePaste'==_0x169205&&_0x566b3e==_0x1af9c9['id']&&!_0x5b33d2['oldRange'];});for(const _0x41baae of _0x1a3d59){if('insert'!=_0x41baae['type']||'tableCellSuggestion'!=_0x41baae['name']||0x1!=_0x41baae['length'])continue;const _0x2730e9=_0x45dc83['createRange'](_0x41baae['position'],_0x41baae['position']['getShiftedBy'](0x1));if(!_0x22763e['find'](({data:_0x2e7efb})=>_0x2e7efb['newRange']['isEqual'](_0x2730e9))){for(const {name:_0x2dde56,data:_0x3de728}of _0x22763e)if(_0x2730e9['containsRange'](_0x3de728['newRange'])){_0x45dc83['updateMarker'](_0x2dde56,{'range':_0x2730e9}),_0x28e7ba=!0x0;break;}}}return _0x28e7ba;}),_0x2421f5['model']['document']['registerPostFixer'](_0x5732de=>{let _0x5db732=!0x1;const _0xe319f3=_0x2421f5['plugins']['get']('Users')['me'],_0x112d61=_0x1ccefc['getSuggestions']()['filter'](_0x444b68=>_0x444b68['isInContent']&&_0x444b68['author']==_0xe319f3),_0x20dfcc=new Set(),_0x29bcc3=new Set();for(const _0x3def07 of _0x112d61)if('tablePaste'==_0x3def07['subType'])for(const _0x201414 of _0x3def07['getMarkers']()){const _0x2b8cdf=_0x201414['getRange']()['getContainedElement']();if(_0x2b8cdf){if(_0x2b8cdf['is']('element','tableCellSuggestion')&&Oe(_0x2b8cdf)){_0x3def07['removeMarker'](_0x201414['name']),_0x20dfcc['add'](_0x2b8cdf),_0x5db732=!0x0;const _0x2decff=_0x2b8cdf['nextSibling'],_0x4e260a=_0x2b8cdf['previousSibling'],_0xafa5d3=_0x2decff&&_0x2decff['is']('element','tableCellSuggestion'),_0x503155=_0x4e260a&&_0x4e260a['is']('element','tableCellSuggestion');_0xafa5d3&&!_0x20dfcc['has'](_0x2decff)&&_0x29bcc3['add'](_0x2decff),_0x503155&&!_0x20dfcc['has'](_0x4e260a)&&_0x29bcc3['add'](_0x4e260a);}else _0x2b8cdf['is']('element','paragraph')&&_0x2b8cdf['isEmpty']&&(_0x3def07['removeMarker'](_0x201414['name']),_0x5db732=!0x0);}}else{if('tablePasteCell'==_0x3def07['subType']){if(!_0x3def07['attributes']||!_0x3def07['attributes']['tablePasteChainId'])continue;const _0x183d53=_0x3def07['attributes']['markerAttributes'];if(_0x183d53&&Object['keys'](_0x183d53)['length'])continue;const _0x23d778=_0x3def07['attributes']['tablePasteChainId'];let _0xd7baf6=!0x0,_0x19af31=!0x0;for(const _0x546e2c of _0x112d61)if(_0x546e2c['subType']&&_0x546e2c['subType']['startsWith']('tablePaste')){if(!_0x546e2c['attributes']['tablePasteChainId']){_0x19af31=!0x1;break;}if(_0x546e2c['id']!=_0x3def07['id']&&_0x546e2c['attributes']['tablePasteChainId']==_0x23d778){_0xd7baf6=!0x1;break;}}_0x19af31&&_0xd7baf6&&(_0x3def07['removeMarkers'](),_0x5db732=!0x0);}}for(const _0xb5e724 of _0x20dfcc)_0x5732de['remove'](_0xb5e724);for(const _0x1ed074 of _0x29bcc3)_0x5732de['unwrap'](_0x1ed074);return _0x5db732;}),_0x2421f5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xfc71f7=>_0x35ab55(_0xfc71f7),'converterPriority':'high'}),_0x2421f5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1d8b3e,_0x130036)=>_0x130036['options']['showSuggestionHighlights']?_0x35ab55(_0x1d8b3e,!0x1):null,'converterPriority':'high'});const _0x33a252=_0x2421f5['editing']['view'];this['listenTo'](_0x33a252['document'],'clipboardOutput',(_0x5456fe,_0x3c2c53)=>{const _0x6b9e01=[];for(const _0x3f9abe of _0x33a252['createRangeIn'](_0x3c2c53['content'])['getItems']())_0x3f9abe['is']('element','suggestion-td')&&_0x6b9e01['push'](_0x3f9abe);_0x33a252['change'](_0x4739b2=>{for(const _0x95bb71 of _0x6b9e01)_0x4739b2['move'](_0x4739b2['createRangeIn'](_0x95bb71),_0x4739b2['createPositionBefore'](_0x95bb71)),_0x4739b2['remove'](_0x95bb71);});});}}function Oe(_0x463616){if(_0x463616['isEmpty'])return!0x0;const _0x37766b=_0x463616['getChild'](0x0);return _0x37766b['is']('element','paragraph')&&_0x37766b['isEmpty'];}function Ue(_0x5dd8e9,_0x31a3e3={},_0x1ffe99){for(const {isAnchor:_0x38b3e9,cellHeight:_0x1c8f23,cellWidth:_0x34e6f4}of _0x1ffe99['createTableWalker'](_0x5dd8e9,{'includeAllSlots':!0x0,..._0x31a3e3}))if(!_0x38b3e9||0x1!=_0x1c8f23||0x1!=_0x34e6f4)return!0x1;return!0x0;}class $t extends _0x31ef78{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4c597c=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c597c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4c597c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4c597c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c597c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4c597c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4c597c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x431ab4,_0x2db3c8){const _0x8b547c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a0acf=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4932f9=_0x2db3c8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x42c1b7=_0x2a0acf['getColumnGroupElement'](_0x4932f9);let _0x38128d=_0x42c1b7?_0x2a0acf['getTableColumnsWidths'](_0x42c1b7):null,_0x5767da=_0x4932f9['getAttribute']('tableWidth')||null;const _0x1c46bc=_0x2db3c8['tableWidth']||_0x5767da,_0xc82042=_0x2db3c8['columnWidths']||_0x38128d,_0x2781b2=this['editor']['plugins']['get']('Users')['me'];for(const _0x58a83d of _0x8b547c['getSuggestions']()){const _0x27b36a=_0x58a83d['getContainedElement']();if('resizeTable'===_0x58a83d['subType']&&_0x27b36a===_0x4932f9){_0x58a83d['author']!==_0x2781b2&&_0x58a83d['discard']();const _0x4a5c24=_0x58a83d['data']['commandParams'];_0x5767da=_0x4a5c24[0x0]['tableWidth'],_0x38128d=_0x4a5c24[0x0]['columnWidths'];break;}}_0x431ab4({'table':_0x4932f9,'tableWidth':_0x1c46bc,'columnWidths':_0xc82042}),_0x8b547c['markBlockFormat'](_0x4932f9,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5767da,'columnWidths':_0x38128d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x250a44){if('formatBlock'!=_0x250a44['type']&&'formatInline'!=_0x250a44['type'])return;const {data:_0xc7e53f}=_0x250a44;if(_0xc7e53f&&'resizeTable'===_0xc7e53f['formatGroupId']){const _0x270eca='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x270eca)};}}}class Bt extends _0x31ef78{['afterInit'](){const _0xf93d76=this['editor'];_0xf93d76['plugins']['has']('Template')&&_0xf93d76['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x31ef78{['afterInit'](){const _0x53709=this['editor'];if(!_0x53709['commands']['get']('insertTableOfContents'))return;_0x53709['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x278348=_0x53709['plugins']['get']('TrackChangesEditing'),_0x31e68f=_0x53709['locale'];_0x278348['descriptionFactory']['registerElementLabel']('tableOfContents',_0x12442a=>o(_0x31e68f,'ELEMENT_TABLE_OF_CONTENTS',_0x12442a));}}class Rt extends _0x31ef78{['afterInit'](){const _0x362464=this['editor'];if(!_0x362464['plugins']['has']('Title'))return;const _0x2ea750=_0x362464['plugins']['get']('TrackChangesEditing');_0x2ea750['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x362464['locale'],'ELEMENT_TITLE')),_0x362464['model']['document']['registerPostFixer'](_0x2c393a=>{let _0x12457d=!0x1;const _0x4617eb=Array['from'](_0x362464['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x55fa8a,data:_0x438bad}of _0x4617eb){const {group:_0x3b80ec}=_0x2ea750['_splitMarkerName'](_0x55fa8a);if('suggestion'!==_0x3b80ec||!_0x438bad['newRange'])continue;const _0x4c7f39=_0x438bad['newRange'],_0x5d4509=_0x4c7f39['end']['nodeBefore'];if(!_0x5d4509||!_0x5d4509['is']('element','title-content'))continue;if(!_0x4c7f39['start']['isTouching'](_0x4c7f39['end']))continue;const _0x15d28c=_0x362464['model']['schema']['getNearestSelectionRange'](_0x4c7f39['end'],'forward');if(_0x15d28c&&_0x15d28c['isCollapsed']){const _0x4ff548=_0x2c393a['createRange'](_0x4c7f39['start'],_0x15d28c['start']);_0x4ff548['isEqual'](_0x4c7f39)||(_0x2c393a['updateMarker'](_0x55fa8a,{'range':_0x4ff548}),_0x12457d=!0x0);}_0x12457d||(_0x2c393a['removeMarker'](_0x55fa8a),_0x12457d=!0x0);}return _0x12457d;});}}class Tt extends _0x31ef78{['afterInit'](){const _0x3e5420=this['editor'],_0x42b392=_0x3e5420['plugins']['get']('TrackChangesEditing');_0x3e5420['plugins']['has']('Uploadcare')&&(_0x42b392['enableCommand']('uploadcare'),_0x3e5420['plugins']['has']('UploadcareImageEdit')&&(_0x42b392['enableCommand']('uploadcareImageEdit'),_0x42b392['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x42b392['registerBlockAttribute']('uploadcareImageId'),_0x42b392['descriptionFactory']['registerDescriptionCallback'](_0x29ca1d=>{if('attribute'!=_0x29ca1d['type'])return;const {data:_0x2d9115}=_0x29ca1d;return _0x2d9115&&'uploadcareImageId'==_0x2d9115['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x31ef78{['afterInit'](){const _0x27541a=this['editor'],_0xf90c87=_0x27541a['plugins']['get']('TrackChangesEditing');_0x27541a['plugins']['has']('UndoEditing')&&(_0xf90c87['enableCommand']('undo'),_0xf90c87['enableCommand']('redo'));}}class Et extends _0x31ef78{static get['requires'](){return[Ct];}['afterInit'](){const _0x3c6ec6=this['editor'];if(!_0x3c6ec6['plugins']['has']('TableCaptionEditing'))return;_0x3c6ec6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x31ef78{['tableProperties'];['tableCellProperties'];constructor(_0x534bff){super(_0x534bff),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 _0x41238c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xca7bc9 of this['tableProperties'])_0x41238c['enableCommand'](_0xca7bc9,(_0x46fa61,_0x341da0)=>{const _0x510df2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xca7bc9,[_0x510df2],this['tableProperties'],'tableProperties',_0x46fa61,_0x341da0);});_0x41238c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x41238c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41238c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3cdab2,_0x237e88)=>this['handleDiscardAction'](this['tableProperties'],_0x3cdab2,_0x237e88)),_0x41238c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x275a69 of this['tableCellProperties'])_0x41238c['enableCommand'](_0x275a69,(_0x596470,_0x68c37c)=>{const _0x1515a9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x275a69,_0x1515a9,this['tableCellProperties'],'tableCellProperties',_0x596470,_0x68c37c);});_0x41238c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x41238c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41238c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x59a958,_0x150e8a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x59a958,_0x150e8a)),_0x41238c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x41238c['descriptionFactory']['registerDescriptionCallback'](_0x541e98=>this['handleSuggestionDescription'](_0x541e98));}['_handlePropertyChange'](_0x30cf55,_0x1aeb14,_0x3492d4,_0x31db47,_0x42d740,_0x3b62a8){const _0x31f715=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3b62a8['batch'],()=>{for(const _0x59578c of _0x1aeb14){if(this['_getSuggestion'](_0x59578c,_0x31db47))_0x42d740(_0x3b62a8);else{const _0x307888={};for(const _0x494a77 of _0x3492d4){const _0x2fbe4a=_0x59578c['getAttribute'](_0x494a77);void 0x0!==_0x2fbe4a&&(_0x307888[_0x494a77]=_0x2fbe4a);}_0x42d740(_0x3b62a8),_0x31f715['markBlockFormat'](_0x59578c,{'commandParams':[_0x307888]},[],_0x31db47);}}});}['handleDiscardAction'](_0x1143f5,_0x2b734a,_0x59940d){const _0x4ec480=_0x2b734a[0x0]['start']['nodeAfter'],_0x43e43d=_0x59940d['commandParams'][0x0];this['editor']['model']['change'](_0xa11227=>{for(const _0x58f0e9 of _0x1143f5)void 0x0!==_0x43e43d[_0x58f0e9]?_0xa11227['setAttribute'](_0x58f0e9,_0x43e43d[_0x58f0e9],_0x4ec480):_0xa11227['removeAttribute'](_0x58f0e9,_0x4ec480);});}['handleSuggestionDescription'](_0x35d036){if(_0x35d036['data'])switch(_0x35d036['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'](_0x26e003,_0x40f750){const _0x5b3f2b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4f8fe4 of _0x5b3f2b['getSuggestions']({'skipNotAttached':!0x0})){const _0x31b0a3=_0x4f8fe4['getContainedElement']();if(_0x4f8fe4['subType']===_0x40f750&&_0x31b0a3===_0x26e003)return _0x4f8fe4;}return null;}}const m='$elementName';class p extends _0x31ef78{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5679ed,_0x44a324,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a0ded){super(_0x1a0ded),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x50c06a,_0x4cc38f,_0x2f0150,_0xca4a98)=>{this['_model']['change'](()=>{for(const _0xc73ed9 of[..._0xca4a98,..._0x2f0150])this['_model']['markers']['has'](_0xc73ed9)&&_0x1a0ded['editing']['reconvertMarker'](_0xc73ed9);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1a0ded['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(),_0x1a0ded['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1a0ded['config']['get']('trackChanges.trackFormatChanges'),_0x1a0ded['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1a0ded['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1a0ded,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x561e27=this['editor'],_0x385be6=(_0x4e3b0e,_0x588cd2)=>{if('attribute'!=_0x4e3b0e)return'ck-suggestion-marker-'+_0x4e3b0e;const _0x463a21=_0x588cd2['split']('|')[0x0];return this['_isBlockAttribute'](_0x463a21)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x561e27['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3bd56c=>{const {id:_0x19ba0a,authorId:_0x378bad,type:_0x4f4d18,subType:_0x3af002}=this['_splitMarkerName'](_0x3bd56c['markerName']),_0x4adc80=['ck-suggestion-marker',_0x385be6(_0x4f4d18,_0x3af002)];let _0x4ef340=0xbb8;return this['activeMarkers']['includes'](_0x3bd56c['markerName'])&&(_0x4adc80['push']('ck-suggestion-marker--active'),_0x4ef340=0xbc2),'deletion'==_0x4f4d18&&(_0x4ef340+=0x5),{'classes':_0x4adc80,'attributes':{'data-suggestion':_0x19ba0a,'data-author-id':_0x378bad},'priority':_0x4ef340};}}),_0x561e27['conversion']['for']('dataDowncast')['add'](_0x752680=>{_0x752680['on']('addMarker:suggestion',(_0x3734bb,_0x553600,_0x2936de)=>{if(!_0x2936de['options']['showSuggestionHighlights'])return;const _0x44d625=_0x553600['item'];if(!_0x44d625)return;const _0x1b58b4=_0x2936de['mapper']['toViewElement'](_0x44d625);_0x561e27['model']['schema']['isObject'](_0x44d625)&&_0x1b58b4&&!_0x1b58b4['getCustomProperty']('widget')&&_0x1b58b4['is']('containerElement')&&_0x4a8cca(_0x1b58b4,_0x2936de['writer']);},{'priority':'high'});}),_0x561e27['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2c6c90,_0x9934cf)=>{if(!_0x9934cf['options']['showSuggestionHighlights'])return null;const {type:_0x267b0f,subType:_0x3dd50e}=this['_splitMarkerName'](_0x2c6c90['markerName']);return{'classes':['ck-suggestion-marker',_0x385be6(_0x267b0f,_0x3dd50e)],'priority':0xbb8};}});const _0x26e0f7=({showActiveMarkers:_0x717042=!0x0,isAttributeSuggestion:_0x2f2678=!0x1}={})=>(_0x194238,_0xcafea1,_0x4df3d0)=>{if(!_0xcafea1['item'])return;const {id:_0x24d3ab,authorId:_0x268467}=this['_splitMarkerName'](_0xcafea1['markerName']);if(_0x2f2678){const _0x477d59=this['_suggestions']['get'](_0x24d3ab),_0x20c3fe=this['_getAttributeKey'](_0x477d59);if(!this['_isBlockAttribute'](_0x20c3fe))return;}if(_0xcafea1['item']['is']('selection'))return void _0x4df3d0['consumable']['consume'](_0xcafea1['item'],_0x194238['name']);const _0x3b7bcb=_0x4df3d0['mapper']['toViewElement'](_0xcafea1['item']);if(_0xcafea1['item']['is']('element')&&_0x561e27['model']['schema']['isBlock'](_0xcafea1['item'])&&!_0x3b7bcb['getCustomProperty']('addHighlight')){_0x4df3d0['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3b7bcb),_0x4df3d0['writer']['setAttribute']('data-suggestion',_0x24d3ab,_0x3b7bcb),_0x4df3d0['writer']['setAttribute']('data-author-id',_0x268467,_0x3b7bcb),_0x4df3d0['mapper']['bindElementToMarker'](_0x3b7bcb,_0xcafea1['markerName']),_0x717042&&(this['activeMarkers']['includes'](_0xcafea1['markerName'])?_0x4df3d0['writer']['addClass']('ck-suggestion-marker--active',_0x3b7bcb):_0x4df3d0['writer']['removeClass']('ck-suggestion-marker--active',_0x3b7bcb));for(const _0xcf5fd9 of _0x561e27['model']['createRangeIn'](_0xcafea1['item'])['getItems']())_0x4df3d0['consumable']['consume'](_0xcf5fd9,_0x194238['name']);_0x4df3d0['consumable']['consume'](_0xcafea1['item'],_0x194238['name']);}};_0x561e27['conversion']['for']('dataDowncast')['add'](_0x417409=>{_0x417409['on']('addMarker:suggestion:formatBlock',(_0x59d627,_0x47420b,_0x560f0d)=>{_0x560f0d['options']['showSuggestionHighlights']&&_0x26e0f7({'showActiveMarkers':!0x1})(_0x59d627,_0x47420b,_0x560f0d);},{'priority':'highest'});}),_0x561e27['conversion']['for']('dataDowncast')['add'](_0x384ac=>{_0x384ac['on']('addMarker:suggestion:attribute',(_0x41fbab,_0x21dbd3,_0x39b0e9)=>{_0x39b0e9['options']['showSuggestionHighlights']&&_0x26e0f7({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x41fbab,_0x21dbd3,_0x39b0e9);},{'priority':'highest'});}),_0x561e27['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x44eba9,_0x262421)=>_0x262421['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x44eba9['substr'](0xb)}}),_0x561e27['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x580f19,{writer:_0x4ebcbb})=>{let _0x24650a='suggestion:'+_0x580f19['getAttribute']('suggestion-type')+':'+_0x580f19['getAttribute']('id');return _0x580f19['getAttribute']('marker-count')&&(_0x24650a+=':'+_0x580f19['getAttribute']('marker-count')),_0x4ebcbb['createElement']('$marker',{'data-name':_0x24650a});}}),_0x561e27['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x561e27['conversion']['for']('editingDowncast')['add'](_0x536621=>{_0x536621['on']('addMarker:suggestion:formatBlock',_0x26e0f7(),{'priority':'high'});}),_0x561e27['conversion']['for']('editingDowncast')['add'](_0x52cc2e=>{_0x52cc2e['on']('addMarker:suggestion:attribute',_0x26e0f7({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x561e27['conversion']['for']('editingDowncast')['add'](_0x1c08d8=>{_0x1c08d8['on']('removeMarker:suggestion:formatBlock',(_0x18a932,_0xb423e9,_0x5ab5b8)=>{const _0x210ec7=_0x5ab5b8['mapper']['markerNameToElements'](_0xb423e9['markerName']);if(_0x210ec7){for(const _0x14fdb9 of _0x210ec7)_0x14fdb9['getCustomProperty']('addHighlight')||(_0x5ab5b8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x14fdb9),_0x5ab5b8['writer']['removeAttribute']('data-suggestion',_0x14fdb9),_0x5ab5b8['writer']['removeAttribute']('data-author-id',_0x14fdb9),_0x5ab5b8['mapper']['unbindElementFromMarkerName'](_0x14fdb9,_0xb423e9['markerName']));}},{'priority':'high'});}),_0x561e27['conversion']['for']('editingDowncast')['add'](_0x4bcfcc=>{_0x4bcfcc['on']('removeMarker:suggestion:attribute',(_0x291042,_0x26146c,_0x341fd7)=>{const _0x1ce554=_0x341fd7['mapper']['markerNameToElements'](_0x26146c['markerName']);if(!_0x1ce554)return;const {id:_0x241e9f}=this['_splitMarkerName'](_0x26146c['markerName']),_0x585f6f=this['_suggestions']['get'](_0x241e9f),_0x556d6b=this['_getAttributeKey'](_0x585f6f);if(this['_isBlockAttribute'](_0x556d6b)){for(const _0x45d3ec of _0x1ce554)_0x45d3ec['getCustomProperty']('addHighlight')||(_0x341fd7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x45d3ec),_0x341fd7['writer']['removeAttribute']('data-suggestion',_0x45d3ec),_0x341fd7['writer']['removeAttribute']('data-author-id',_0x45d3ec),_0x341fd7['mapper']['unbindElementFromMarkerName'](_0x45d3ec,_0x26146c['markerName']));}},{'priority':'high'});}),_0x561e27['model']['document']['registerPostFixer'](_0x64a017=>{let _0x339cf6=!0x1;const _0x5f129c=Array['from'](_0x561e27['model']['document']['differ']['getChangedMarkers']()),_0x4b3f5a=new Set();for(const {name:_0x538152,data:_0x5ba372}of _0x5f129c){const {group:_0x596d1b,type:_0x1c3a3b,subType:_0x48d4a8,id:_0x28ed4d}=this['_splitMarkerName'](_0x538152);if('suggestion'!==_0x596d1b)continue;const _0x3c5ea5=this['_suggestions']['get'](_0x28ed4d);if(null!=_0x5ba372['newRange']){'formatInline'==_0x1c3a3b&&(_0x339cf6=_0x339cf6||Lt(_0x5ba372['newRange'],_0x538152,_0x64a017,_0x561e27['model']['schema']));const _0x3485da='attribute'==_0x1c3a3b&&this['_isBlockAttribute'](_0x48d4a8['split']('|')[0x0]);if(_0x5ba372['newRange']['isCollapsed']||'$graveyard'==_0x5ba372['newRange']['root']['rootName']||'formatBlock'==_0x1c3a3b&&!Ht(_0x5ba372['newRange'])||_0x3485da&&!Ht(_0x5ba372['newRange'])||'deletion'==_0x1c3a3b&&!(!Ft(_0x21aa01=_0x5ba372['newRange'])&&!function(_0x3399c4){return _0x3399c4['start']['parent']==_0x3399c4['end']['nodeBefore']&&_0x3399c4['start']['isAtEnd'];}(_0x21aa01)))_0x64a017['removeMarker'](_0x538152),_0x339cf6=!0x0;else{if(!_0x3c5ea5||!_0x3c5ea5['isInContent'])continue;if(_0x5ba372['newRange']&&_0x5ba372['oldRange']&&_0x5ba372['newRange']['isEqual'](_0x5ba372['oldRange']))continue;_0x4b3f5a['add'](_0x3c5ea5);}}}var _0x21aa01;return _0x4b3f5a['size']>0x0&&(_0x339cf6=!!this['_joinWithAdjacentSuggestions'](_0x4b3f5a)||_0x339cf6),_0x339cf6;}),_0x561e27['model']['document']['registerPostFixer'](_0x18df38=>{let _0x56a803=!0x1;for(const _0x211960 of _0x561e27['model']['document']['differ']['getChanges']())if('insert'==_0x211960['type'])for(const _0x3de737 of this['_suggestions']['values']()){if(_0x3de737['isMultiRange']||!_0x3de737['isInContent'])continue;const _0x5867d4='formatBlock'==_0x3de737['type'],_0x981c83=this['_getAttributeKey'](_0x3de737),_0x19bc9f=_0x981c83&&this['_isBlockAttribute'](_0x981c83);if(!_0x5867d4&&!_0x19bc9f)continue;const _0x54fbfc=_0x3de737['getFirstRange']();if(_0x54fbfc['start']['parent']!=_0x54fbfc['end']['parent']&&!_0x54fbfc['end']['isAtEnd']){const _0x3c9545=_0x561e27['model']['createPositionAt'](_0x54fbfc['start']['nodeAfter'],'end'),_0x3221cd=_0x561e27['model']['createRange'](_0x54fbfc['start'],_0x3c9545);_0x18df38['updateMarker'](_0x3de737['getFirstMarker'](),{'range':_0x3221cd}),_0x56a803=!0x0;}}return _0x56a803;}),_0x561e27['model']['document']['registerPostFixer'](_0x3ec207=>this['_processAttributeChanges'](_0x3ec207)),_0x561e27['model']['document']['registerPostFixer'](_0x11cf40=>!_0x11cf40['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x11cf40)),_0x561e27['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x561e27['model']['document']['on']('change:data',(_0x363976,_0x769c45)=>{if(!_0x769c45['isLocal']||_0x769c45['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x12687c=_0x561e27['model']['document']['differ']['getChanges']();if(0x0==_0x12687c['length'])return;const _0x591994=[],_0xc584aa=_0x12687c['filter'](_0x2e7b13=>'attribute'==_0x2e7b13['type']),_0x21985c=_0x12687c['filter'](_0x11979b=>'insert'==_0x11979b['type']&&'$text'!=_0x11979b['name']);for(const _0x258e89 of _0xc584aa)this['_isRegisteredAttribute'](_0x258e89['attributeKey'])&&_0x591994['push']({'key':_0x258e89['attributeKey'],'newValue':_0x258e89['attributeNewValue'],'oldValue':_0x258e89['attributeOldValue'],'range':qt(_0x258e89['range'],_0x561e27['model'])});for(const _0x4f9f04 of _0x21985c){if('rename'!=_0x4f9f04['action']&&'refresh'!=_0x4f9f04['action'])continue;const _0x2e1da8=zt(_0x4f9f04['position']['nodeAfter'],_0x561e27['model']),_0x3defb1=_0x4f9f04['before'];'rename'==_0x4f9f04['action']&&_0x591994['push']({'key':m,'newValue':_0x4f9f04['name'],'oldValue':_0x3defb1['name'],'range':_0x2e1da8});for(const [_0x3671e3,_0x532e77]of _0x3defb1['attributes']){if(!this['_isRegisteredAttribute'](_0x3671e3))continue;const _0x214330=_0x4f9f04['attributes']['get'](_0x3671e3);_0x532e77!==_0x214330&&_0x591994['push']({'key':_0x3671e3,'newValue':_0x214330,'oldValue':_0x532e77,'range':_0x2e1da8});}for(const [_0x2535ea,_0x2de251]of _0x4f9f04['attributes'])this['_isRegisteredAttribute'](_0x2535ea)&&(_0x3defb1['attributes']['has'](_0x2535ea)||_0x591994['push']({'key':_0x2535ea,'newValue':_0x2de251,'oldValue':null,'range':_0x2e1da8}));}0x0!=_0x591994['length']&&_0x561e27['model']['enqueueChange'](_0x769c45,_0x155253=>{const _0x3a8908=_0x2b97bd();for(const {range:_0x287841,key:_0x5b4966,oldValue:_0x3903df,newValue:_0x483ac6}of _0x591994)this['markAttributeChange'](_0x287841,_0x5b4966,_0x3903df,_0x483ac6,{'groupId':_0x3a8908});this['_reduceExistingSuggestions'](_0x155253,_0x591994);});},{'priority':'lowest'}),_0x561e27['model']['markers']['on']('update:suggestion',(_0x3442f2,_0x38a3ec,_0x4570e4)=>{if(null==_0x4570e4){const {id:_0x1e33c8}=this['_splitMarkerName'](_0x38a3ec['name']),_0x3d206d=this['_suggestions']['get'](_0x1e33c8);_0x3d206d&&_0x3d206d['addMarkerName'](_0x38a3ec['name']);}}),_0x561e27['model']['document']['on']('change:data',()=>{const _0x3ceb79=Array['from'](_0x561e27['model']['document']['differ']['getChangedMarkers']())['filter'](_0x31eb90=>'suggestion'===this['_splitMarkerName'](_0x31eb90['name'])['group']);if(0x0===_0x3ceb79['length'])return;_0x3ceb79['sort']((_0x21acec,_0x33268f)=>{const _0x243472=_0x21acec['data']['oldRange'],_0xb18d61=_0x33268f['data']['oldRange'];return null===_0x243472&&null===_0xb18d61?0x0:null===_0x243472&&null!==_0xb18d61?-0x1:null!==_0x243472&&null===_0xb18d61?0x1:_0x243472['start']['isBefore'](_0xb18d61['start'])?-0x1:0x1;});const _0x33ebfa=new Set(),_0x55f634=new Set();for(const {name:_0x20ba03,data:_0x551858}of _0x3ceb79){const {id:_0x14de8a}=this['_splitMarkerName'](_0x20ba03);if(null===_0x551858['oldRange']){const _0x3014d0=this['_handleNewSuggestionMarker'](_0x20ba03);_0x55f634['add'](_0x3014d0);}else{const _0x365282=this['_suggestions']['get'](_0x14de8a);null!==_0x551858['newRange']||_0x365282['isInContent']?(_0x33ebfa['add'](_0x365282['head']),_0x55f634['add'](_0x365282)):this['_removeSuggestion'](_0x365282);}}_0x55f634['size']>0x0&&this['_refreshSuggestionsChain'](_0x55f634);for(const _0x2e5986 of _0x33ebfa)this['fire']('suggestionChanged',_0x2e5986);}),_0x561e27['model']['on']('applyOperation',(_0x499e5e,_0x2d6bb4)=>{const _0x480e19=_0x2d6bb4[0x0];if(!this['_suggestions']['size'])return;if(!_0x480e19['isDocumentOperation'])return;if(_0x480e19['batch']['isUndo']||!_0x480e19['batch']['isLocal'])return;let _0xaa8401,_0x42ade7;switch(_0x480e19['type']){case'insert':_0xaa8401=_0x561e27['model']['createPositionAt'](_0x480e19['position']),_0x42ade7=_0xaa8401['getShiftedBy'](_0x480e19['howMany']);break;case'split':_0xaa8401=_0x561e27['model']['createPositionAt'](_0x480e19['splitPosition']),_0x42ade7=_0x561e27['model']['createPositionAt'](_0x480e19['moveTargetPosition']);break;case'move':_0xaa8401=_0x561e27['model']['createPositionAt'](_0x480e19['targetPosition']),_0x42ade7=_0xaa8401['getShiftedBy'](_0x480e19['howMany']);break;default:return;}const _0x41ecb=_0x561e27['model']['createRange'](_0xaa8401,_0x42ade7);_0x561e27['model']['change'](()=>{for(const {suggestion:_0x453bf9,meta:_0x41f903}of this['_findSuggestions'](_0x41ecb)){if(_0x453bf9['isMultiRange'])continue;if('formatInline'==_0x453bf9['type'])continue;const _0x5b721d=this['_getAttributeKey'](_0x453bf9);if(_0x5b721d&&this['_isBlockAttribute'](_0x5b721d)&&'split'!=_0x480e19['type'])continue;const _0x180b42=_0x453bf9['data']&&_0x453bf9['data']['multipleBlocks'];('formatBlock'!=_0x453bf9['type']||'split'==_0x480e19['type']&&!_0x180b42)&&(_0x41f903['containsRangeInObject']||'insertion'==_0x453bf9['type']&&_0x41f903['isOwn']||_0x453bf9['getFirstRange']()['containsRange'](_0x41ecb)&&this['_breakSuggestionMarker'](_0x453bf9,_0xaa8401,_0x42ade7));}});},{'priority':'lowest'}),_0x561e27['model']['on']('deleteContent',(_0x5f3c12,_0x3e2945)=>{const _0xde34ba=_0x3e2945[0x0],_0x2b735b=_0x3e2945[0x1];if(_0x2b735b&&_0x2b735b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xde34ba['isCollapsed'])return;const _0x2f7214=_0x561e27['model']['schema'],{start:_0x49f490,end:_0x11ba68}=_0xde34ba['getFirstRange'](),_0x212575=_0x49f490['nodeAfter']&&_0x2f7214['isLimit'](_0x49f490['nodeAfter'])?null:_0x2f7214['getNearestSelectionRange'](_0x49f490,'forward'),_0x56fa68=_0x11ba68['nodeBefore']&&_0x2f7214['isLimit'](_0x11ba68['nodeBefore'])?null:_0x2f7214['getNearestSelectionRange'](_0x11ba68,'backward'),_0x50293c=_0x561e27['model']['createRange'](_0x212575?_0x212575['start']:_0x49f490,_0x56fa68?_0x56fa68['end']:_0x11ba68);_0x561e27['model']['change'](_0x2cde23=>{this['markDeletion'](_0x50293c);const _0x3126bc=_0x561e27['model']['schema']['getNearestSelectionRange'](_0x50293c['start']);_0xde34ba['is']('documentSelection')?_0x2cde23['setSelection'](_0x3126bc):_0xde34ba['setTo'](_0x3126bc);}),_0x5f3c12['stop']();},{'priority':_0x5b2b34['normal']+0xa}),_0x561e27['model']['on']('insertContent',(_0x3dd8ad,_0x115abf)=>{const _0x2be921=_0x115abf[_0x115abf['length']-0x1];_0x2be921&&_0x2be921['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x561e27['model']['change'](()=>{let _0x482df6=_0x561e27['model']['insertContent'](_0x115abf[0x0],_0x115abf[0x1],_0x115abf[0x2],{'forceDefaultExecution':!0x0});if(!_0x482df6)return;_0x3dd8ad['return']=_0x482df6['clone']();const _0x1ff912=_0x482df6['end']['nodeBefore'],_0xf97817=_0x561e27['model']['schema'];_0x1ff912&&_0xf97817['isBlock'](_0x1ff912)&&!_0xf97817['isObject'](_0x1ff912)&&(_0x482df6=_0x561e27['model']['createRange'](_0x482df6['start'],_0x561e27['model']['createPositionAt'](_0x1ff912,'end'))),this['markInsertion'](_0x482df6);}),_0x3dd8ad['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4537e9=new O(_0x561e27,this['_suggestions']);_0x561e27['commands']['add']('acceptSuggestion',_0x4537e9),this['enableCommand']('acceptSuggestion');const _0x416e2c=new R(_0x561e27,this['_suggestions']);_0x561e27['commands']['add']('discardSuggestion',_0x416e2c),this['enableCommand']('discardSuggestion'),_0x561e27['commands']['add']('acceptAllSuggestions',new x(_0x561e27,_0x4537e9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x561e27['commands']['add']('discardAllSuggestions',new x(_0x561e27,_0x416e2c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x561e27['commands']['add']('acceptSelectedSuggestions',new E(_0x561e27,_0x4537e9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x561e27['commands']['add']('discardSelectedSuggestions',new E(_0x561e27,_0x416e2c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x49b690=_0x561e27['plugins']['get']('CommentsRepository');this['listenTo'](_0x49b690,'addComment',(_0x114e25,{threadId:_0xd7b6ad})=>{const _0x1f3f49=this['_suggestions']['get'](_0xd7b6ad);_0x1f3f49&&_0x1f3f49['commentThread']&&0x1===_0x1f3f49['commentThread']['length']&&this['_updateSuggestionData'](_0xd7b6ad,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x49b690,'removeComment',(_0x17db1e,{threadId:_0x437956})=>{const _0x198a3f=this['_suggestions']['get'](_0x437956);_0x198a3f&&_0x198a3f['commentThread']&&!_0x198a3f['commentThread']['length']&&this['_updateSuggestionData'](_0x437956,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x39cfbc){const _0x491406=_0x498f3c([0x56,0x54,0x4c,0x39,0x43,0x51,0x64,0x36,0x50,0x57,0x73,0x37,0x72,0x4f,0x30,0x6e,0x78,0x59,0x44,0x4e,0x6b,0x70,0x41,0x34,0x67,0x4a,0x53,0x45,0x4d,0x58,0x6d,0x66,0x47,0x32,0x6c,0x42,0x48,0x6f,0x5a,0x31,0x76,0x6a,0x71,0x35,0x33,0x52,0x4b,0x63,0x79,0x61,0x77,0x74,0x49,0x46,0x38,0x75,0x68,0x62,0x69,0x65,0x55,0x7a]),_0x3575fb=0x6af856ac,_0x72a809=0x6aff0814^_0x3575fb,_0x37035a=window[_0x498f3c([0x44,0x61,0x74,0x65])][_0x498f3c([0x6e,0x6f,0x77])](),_0x40b8e1=_0x39cfbc[_0x498f3c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e2118=new window[(_0x498f3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x387217=>{_0x40b8e1[_0x498f3c([0x6f,0x6e,0x63,0x65])](_0x498f3c([0x72,0x65,0x61,0x64,0x79]),_0x387217);}),_0x33c795={[_0x498f3c([0x6b,0x74,0x79])]:_0x498f3c([0x45,0x43]),[_0x498f3c([0x75,0x73,0x65])]:_0x498f3c([0x73,0x69,0x67]),[_0x498f3c([0x63,0x72,0x76])]:_0x498f3c([0x50,0x2d,0x32,0x35,0x36]),[_0x498f3c([0x78])]:_0x498f3c([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]),[_0x498f3c([0x79])]:_0x498f3c([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]),[_0x498f3c([0x61,0x6c,0x67])]:_0x498f3c([0x45,0x53,0x32,0x35,0x36])},_0x56284f=_0x40b8e1[_0x498f3c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x498f3c([0x67,0x65,0x74])](_0x498f3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x13ba23(){let _0x1c81fa,_0x2114f0=null,_0x42e009=null;try{if(_0x56284f==_0x498f3c([0x47,0x50,0x4c]))return _0x498f3c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c81fa=_0x1fbdd5(),!_0x1c81fa)return _0x498f3c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c81fa[_0x498f3c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x42e009=_0x6c8f16(_0x1c81fa[_0x498f3c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c81fa[_0x498f3c([0x6a,0x74,0x69])])),await _0x47fe43()?_0x334308()?_0x49b9e9()?_0x498f3c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x110249()?(_0x1c81fa[_0x498f3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x498f3c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2114f0=_0x3ba106(_0x498f3c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1c81fa[_0x498f3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x498f3c([0x74,0x72,0x69,0x61,0x6c])&&(_0x2114f0=_0x3ba106(_0x498f3c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3c8a97()):_0x498f3c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x498f3c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x498f3c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5bacaf){return _0x498f3c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x49b9e9(){const _0x54ba54=[_0x498f3c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x498f3c([0x74,0x72,0x69,0x61,0x6c])][_0x498f3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c81fa[_0x498f3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x37035a/0x3e8:0xe10*_0x72a809;return _0x1c81fa[_0x498f3c([0x65,0x78,0x70])]<_0x54ba54;}function _0x334308(){const _0x1671b8=_0x1c81fa[_0x498f3c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1671b8)return!0x1;if(_0x1671b8[_0x498f3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x498f3c([0x2a])))return!0x0;if(_0x1671b8[_0x498f3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x498f3c([0x54,0x43])))return!0x0;if(_0x1671b8[_0x498f3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x498f3c([0x52,0x54,0x43]))){if(_0x41e912())return!0x0;if(_0xa5711d()||_0x2c0c75())return!0x0;}return!0x1;}function _0x110249(){const _0x28b92d=_0x1c81fa[_0x498f3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x28b92d||0x0==_0x28b92d[_0x498f3c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c75ae}=new URL(window[_0x498f3c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x28b92d[_0x498f3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c75ae))return!0x0;const _0x10b5f3=_0x1c75ae[_0x498f3c([0x73,0x70,0x6c,0x69,0x74])](_0x498f3c([0x2e]));return _0x28b92d[_0x498f3c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xabc105=>_0xabc105[_0x498f3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x498f3c([0x2a])))[_0x498f3c([0x6d,0x61,0x70])](_0x4dfb2c=>_0x4dfb2c[_0x498f3c([0x73,0x70,0x6c,0x69,0x74])](_0x498f3c([0x2e])))[_0x498f3c([0x73,0x6f,0x6d,0x65])](_0xf78be1=>_0x10b5f3[_0x498f3c([0x65,0x76,0x65,0x72,0x79])]((_0xf4b1be,_0x2a92c2)=>_0xf78be1[_0x2a92c2]===_0xf4b1be||_0xf78be1[_0x2a92c2]===_0x498f3c([0x2a])));}function _0x3c8a97(){return _0x2114f0&&_0x42e009?new window[(_0x498f3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bf0b2,_0x4cbc3b)=>{_0x2114f0[_0x498f3c([0x74,0x68,0x65,0x6e])](_0x4bf0b2,_0x4cbc3b),_0x42e009[_0x498f3c([0x74,0x68,0x65,0x6e])](_0x2d1809=>{_0x2d1809!=_0x498f3c([0x56,0x61,0x6c,0x69,0x64])&&_0x4bf0b2(_0x2d1809);},_0x4cbc3b);}):_0x2114f0||_0x42e009||_0x498f3c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x6c8f16(_0x5b9f97,_0x2061a4){return new window[(_0x498f3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5428be=>{if(_0x1f294f())return _0x5428be(_0x498f3c([0x56,0x61,0x6c,0x69,0x64]));_0x5a5ead(),_0x40b8e1[_0x498f3c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x498f3c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x472d3a=!0x1;const _0x91696a=_0x2b97bd();function _0x5b8d81(_0x5d86a6){return!!_0x5d86a6&&(typeof _0x5d86a6===_0x498f3c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5d86a6===_0x498f3c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5d86a6[_0x498f3c([0x74,0x68,0x65,0x6e])]===_0x498f3c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5d86a6[_0x498f3c([0x63,0x61,0x74,0x63,0x68])]===_0x498f3c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e76ff(_0x2c0588){_0x16f840(_0x2c0588)[_0x498f3c([0x74,0x68,0x65,0x6e])](_0x2b5df4=>{if(!_0x2b5df4||_0x2b5df4[_0x498f3c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x498f3c([0x6f,0x6b]))return _0x498f3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b486d(_0x44687a(_0x91696a+_0x2061a4))!=_0x2b5df4[_0x498f3c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x498f3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x498f3c([0x56,0x61,0x6c,0x69,0x64]);})[_0x498f3c([0x74,0x68,0x65,0x6e])](_0x4f43b2=>(_0x3b8af7(),_0x4f43b2),()=>{const _0x3928a0=_0x430fcc();return null==_0x3928a0?(_0x3b8af7(),_0x498f3c([0x56,0x61,0x6c,0x69,0x64])):_0x498f3c(_0x37035a-_0x3928a0>(0x4ef4d2ac^_0x3575fb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x498f3c([0x74,0x68,0x65,0x6e])](_0x5428be)[_0x498f3c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5428be(_0x498f3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d76e7=0x6aceb82c^_0x3575fb;function _0x3b8af7(){const _0x5cd233=_0x498f3c([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b486d(_0x44687a(_0x5b9f97)),_0x3843b9=_0x1089e0(_0x5b486d(window[_0x498f3c([0x4d,0x61,0x74,0x68])][_0x498f3c([0x63,0x65,0x69,0x6c])](_0x37035a/_0x5d76e7)));window[_0x498f3c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x498f3c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5cd233,_0x3843b9);}function _0x430fcc(){const _0x5ce109=_0x498f3c([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b486d(_0x44687a(_0x5b9f97)),_0x2352fd=window[_0x498f3c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x498f3c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ce109);return _0x2352fd?window[_0x498f3c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1089e0(_0x2352fd),0x10)*_0x5d76e7:null;}function _0x16f840(_0x11d813){return new window[(_0x498f3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b15d8,_0x1b2af8)=>{_0x11d813[_0x498f3c([0x74,0x68,0x65,0x6e])](_0x4b15d8,_0x1b2af8),window[_0x498f3c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b2af8,0x6af9826c^_0x3575fb);});}}_0x40b8e1[_0x498f3c([0x6f,0x6e])](_0x498f3c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f8253,_0x54f80f)=>{if(_0x54f80f[0x0]!=_0x5b9f97)return _0x5428be(_0x498f3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54f80f[0x1]={..._0x54f80f[0x1],[_0x498f3c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x91696a};},{[_0x498f3c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x498f3c([0x68,0x69,0x67,0x68])}),_0x40b8e1[_0x498f3c([0x6f,0x6e])](_0x498f3c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc65df0=>{_0x5b8d81(_0xc65df0[_0x498f3c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x472d3a=!0x0,_0x2e76ff(_0xc65df0[_0x498f3c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x498f3c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x498f3c([0x6c,0x6f,0x77])}),_0x1e2118[_0x498f3c([0x74,0x68,0x65,0x6e])](()=>{_0x472d3a||_0x5428be(_0x498f3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f294f(){return _0x40b8e1[_0x498f3c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x498f3c([0x76,0x69,0x65,0x77])][_0x498f3c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x498f3c([0x61,0x75,0x74,0x6f]);}function _0x5a5ead(){_0x40b8e1[_0x498f3c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x498f3c([0x76,0x69,0x65,0x77])][_0x498f3c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x498f3c([0x61,0x75,0x74,0x6f]);}}function _0x3ba106(_0x5e5138){const _0x56dec1=[new window[(_0x498f3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x270cfe=>setTimeout(_0x270cfe,0x6af16860^_0x3575fb)),_0x1e2118[_0x498f3c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x498f3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x305392=>{let _0x3daa58=0x0;_0x40b8e1[_0x498f3c([0x6d,0x6f,0x64,0x65,0x6c])][_0x498f3c([0x6f,0x6e])](_0x498f3c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x674a6c,_0x2a6018)=>{_0x2a6018[0x0][_0x498f3c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3daa58++,_0x3daa58==(0x6af85754^_0x3575fb)&&(_0x305392(),_0x674a6c[_0x498f3c([0x6f,0x66,0x66])]());});}))];return window[_0x498f3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x498f3c([0x72,0x61,0x63,0x65])](_0x56dec1)[_0x498f3c([0x74,0x68,0x65,0x6e])](()=>_0x5e5138);}async function _0x14b1f1(){await _0x1e2118,_0x40b8e1[_0x498f3c([0x6d,0x6f,0x64,0x65,0x6c])][_0x498f3c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8b6a30,_0x40b8e1[_0x498f3c([0x6d,0x6f,0x64,0x65,0x6c])][_0x498f3c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8b6a30,_0x40b8e1[_0x498f3c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x498f3c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x41e912(){return _0xd72d28(_0x498f3c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x24d78e(_0x498f3c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x498f3c([0x73,0x74,0x61,0x74,0x65])]==_0x498f3c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xa5711d(){return _0xd72d28(_0x498f3c([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 _0x2c0c75(){return _0xd72d28(_0x498f3c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x353a42(_0x51f610){const _0x4725e5=_0x244ff0();_0x40b8e1[_0x4725e5]=_0x498f3c([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x51f610,_0x51f610!=_0x498f3c([0x56,0x61,0x6c,0x69,0x64])&&_0x14b1f1();}function _0x244ff0(){const _0x1fa1a5=window[_0x498f3c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x498f3c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x498f3c([0x6e,0x6f,0x77])]())[_0x498f3c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x498f3c([0x2e]),'');let _0x13e9c4=_0x498f3c([0x56]);for(let _0x44cbab=0x0;_0x44cbab<_0x1fa1a5[_0x498f3c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44cbab+=0x2){let _0x1aebce=window[_0x498f3c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fa1a5[_0x498f3c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44cbab,_0x44cbab+0x2));_0x1aebce>=_0x491406[_0x498f3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1aebce-=_0x491406[_0x498f3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x13e9c4+=_0x491406[_0x1aebce];}return _0x13e9c4;}function _0x1fbdd5(){const _0xd9f3d5=_0x56284f[_0x498f3c([0x73,0x70,0x6c,0x69,0x74])](_0x498f3c([0x2e]));if(0x3!=_0xd9f3d5[_0x498f3c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a8bb5(_0xd9f3d5[0x1]);function _0x2a8bb5(_0x4e0a73){const _0x17c872=_0x271faa(_0x4e0a73);return _0x17c872&&_0x1d5d7e()?_0x17c872:null;function _0x1d5d7e(){const _0x47ea28=_0x17c872[_0x498f3c([0x6a,0x74,0x69])],_0xdc792d=window[_0x498f3c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47ea28[_0x498f3c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47ea28[_0x498f3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xae51b0={..._0x17c872,[_0x498f3c([0x6a,0x74,0x69])]:_0x47ea28[_0x498f3c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x47ea28[_0x498f3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xae51b0[_0x498f3c([0x76,0x63])],_0x44687a(_0xae51b0)==_0xdc792d;}}}async function _0x47fe43(){let _0x1581d5=!0x0;try{const _0x55655a=_0x56284f[_0x498f3c([0x73,0x70,0x6c,0x69,0x74])](_0x498f3c([0x2e])),[_0x5c8f54,_0x2e7233,_0x3370ce]=_0x55655a;return _0x28b97e(_0x5c8f54),await _0x42e6d3(_0x5c8f54,_0x2e7233,_0x3370ce),_0x1581d5;}catch(_0x44986e){return!0x1;}function _0x28b97e(_0x5e1e94){const _0x18f9ac=_0x271faa(_0x5e1e94);_0x18f9ac&&_0x18f9ac[_0x498f3c([0x61,0x6c,0x67])]==_0x498f3c([0x45,0x53,0x32,0x35,0x36])||(_0x1581d5=!0x1);}async function _0x42e6d3(_0x3c84f0,_0x21f5a3,_0x32044a){const _0x3fa6d4=window[_0x498f3c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x498f3c([0x66,0x72,0x6f,0x6d])](_0x166af3(_0x32044a),_0x4e295a=>_0x4e295a[_0x498f3c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3a99a7=new window[(_0x498f3c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x498f3c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3c84f0+_0x498f3c([0x2e])+_0x21f5a3),_0x3f2580=window[_0x498f3c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x498f3c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f2580)return;const _0x2c1ee1=await _0x3f2580[_0x498f3c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x498f3c([0x6a,0x77,0x6b]),_0x33c795,{[_0x498f3c([0x6e,0x61,0x6d,0x65])]:_0x498f3c([0x45,0x43,0x44,0x53,0x41]),[_0x498f3c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x498f3c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x498f3c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f2580[_0x498f3c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x498f3c([0x6e,0x61,0x6d,0x65])]:_0x498f3c([0x45,0x43,0x44,0x53,0x41]),[_0x498f3c([0x68,0x61,0x73,0x68])]:{[_0x498f3c([0x6e,0x61,0x6d,0x65])]:_0x498f3c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c1ee1,_0x3fa6d4,_0x3a99a7)||(_0x1581d5=!0x1);}}function _0x271faa(_0x52cbd7){return _0x52cbd7[_0x498f3c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x498f3c([0x65,0x79]))?JSON[_0x498f3c([0x70,0x61,0x72,0x73,0x65])](_0x166af3(_0x52cbd7)):null;}function _0x166af3(_0x5dadbf){return window[_0x498f3c([0x61,0x74,0x6f,0x62])](_0x5dadbf[_0x498f3c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x498f3c([0x2b]))[_0x498f3c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x498f3c([0x2f])));}function _0x44687a(_0x68ff30){let _0x54d91b=0x1505;function _0x1e9020(_0x5d206c){for(let _0x59390d=0x0;_0x59390d<_0x5d206c[_0x498f3c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59390d++){const _0x31cd97=_0x5d206c[_0x498f3c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x59390d);_0x54d91b=(_0x54d91b<<0x5)+_0x54d91b+_0x31cd97,_0x54d91b&=_0x54d91b;}}function _0x33c454(_0x3ceb68){Array[_0x498f3c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ceb68)?_0x3ceb68[_0x498f3c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33c454):_0x3ceb68&&typeof _0x3ceb68==_0x498f3c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x498f3c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ceb68)[_0x498f3c([0x73,0x6f,0x72,0x74])]()[_0x498f3c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x50f6bd,_0x268792])=>{_0x1e9020(_0x50f6bd),_0x33c454(_0x268792);}):_0x1e9020(window[_0x498f3c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ceb68));}return _0x33c454(_0x68ff30),_0x54d91b>>>0x0;}function _0x5b486d(_0x553d5a){return _0x553d5a[_0x498f3c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x498f3c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x498f3c([0x30]));}function _0x1089e0(_0x743f31){return _0x743f31[_0x498f3c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x498f3c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x498f3c([0x6a,0x6f,0x69,0x6e])]('');}function _0xd72d28(_0x3ab3fa){return _0x40b8e1[_0x498f3c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x498f3c([0x68,0x61,0x73])](_0x3ab3fa);}function _0x24d78e(_0x2b8c54){return _0x40b8e1[_0x498f3c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x498f3c([0x67,0x65,0x74])](_0x2b8c54);}function _0x8b6a30(){}function _0x498f3c(_0x5864a6){return _0x5864a6['map'](_0x3f041d=>String['fromCharCode'](_0x3f041d))['join']('');}_0x353a42(await _0x13ba23());}(this);}set['adapter'](_0x53fe27){if(this['_adapter'])throw new _0x1b7c5d('track-changes-adapter-already-set',this);this['_adapter']=_0x53fe27;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x24c00b=!0x1,toJSON:_0x4d5fa5=!0x1}={}){const _0x4fa24c=[];for(const _0x1e237a of this['_suggestions']['values']())_0x24c00b&&!_0x1e237a['isInContent']||_0x4fa24c['push'](_0x1e237a);return _0x4d5fa5?_0x4fa24c['map'](_0x50d944=>_0x50d944['toJSON']()):_0x4fa24c;}['getSuggestion'](_0x2a783f){const _0x2bf60e=this['_suggestions']['get'](_0x2a783f);if(!_0x2bf60e)throw new _0x1b7c5d('track-changes-suggestion-not-found',this);return _0x2bf60e;}['hasSuggestion'](_0x554517){return this['_suggestions']['has'](_0x554517);}['addSuggestionData'](_0x5bad38){const {authorId:_0x58d5d0,id:_0x163b49,attributes:_0x4ac7ca}=_0x5bad38,[_0x595291,_0x423e24]=_0x5bad38['type']['split'](':'),_0x52e85d=this['_suggestions']['get'](_0x163b49)||this['_createSuggestion'](_0x595291,_0x423e24,_0x163b49,_0x58d5d0,_0x4ac7ca);if(this['_addThreadToSuggestion'](_0x52e85d),this['_checkSuggestionCorrectness'](_0x52e85d,_0x595291,_0x423e24||null,_0x58d5d0),_0x52e85d['createdAt']=_0x5bad38['createdAt'],_0x52e85d['_isDataLoaded']=!0x0,_0x4ac7ca&&_0x4ac7ca['@external']){const _0x1afca8=_0x4ac7ca['@external'],_0x12f309=this['_getExternalAuthor'](_0x1afca8['authorName']);_0x52e85d['authoredAt']=_0x1afca8['createdAt'],_0x52e85d['author']=_0x12f309,_0x52e85d['isExternal']=!0x0;}else _0x52e85d['authoredAt']=_0x5bad38['createdAt'];switch(_0x5bad38['data']&&(_0x52e85d['data']=_0x5bad38['data']),_0x5bad38['attributes']&&(_0x52e85d['attributes']=_0x5bad38['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x52e85d['_saved']=!0x0),this['_suggestionState']['get'](_0x52e85d)){case'notReady':this['_suggestionState']['set'](_0x52e85d,'dataReady');break;case'markerReady':_0x52e85d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x52e85d])),this['_refreshSuggestionsChain'](new Set([_0x52e85d])),this['_suggestionState']['set'](_0x52e85d,'ready'),this['fire']('suggestionLoaded',_0x52e85d)):this['_suggestionState']['set'](_0x52e85d,'removed');}return _0x52e85d;}['acceptSuggestion'](_0x51080b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x596797 of _0x51080b['getAllAdjacentSuggestions']())_0x596797['accept']();});});}['discardSuggestion'](_0x417a56){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2074d5 of _0x417a56['getAllAdjacentSuggestions']())_0x2074d5['discard']();});});}['enableCommand'](_0xb3c9be,_0x13fcbe){const _0x405fab=this['editor']['commands']['get'](_0xb3c9be);if(!_0x405fab)throw new _0x1b7c5d('track-changes-command-not-found',this,{'commandName':_0xb3c9be});if(this['_enabledCommands']['has'](_0x405fab))throw new _0x1b7c5d('track-changes-enable-command-twice',this,{'commandName':_0xb3c9be});this['_enabledCommands']['add'](_0x405fab),_0x13fcbe&&_0x405fab['on']('execute',(_0x2cd112,_0x304089)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x304089['length']>0x0&&_0x304089[_0x304089['length']-0x1]&&_0x304089[_0x304089['length']-0x1]['forceDefaultExecution']?_0x304089['pop']():(_0x2cd112['return']=_0x13fcbe((..._0x539cd6)=>_0x405fab['execute'](..._0x539cd6,{'forceDefaultExecution':!0x0}),..._0x304089),_0x2cd112['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x209492){let _0x4c30e7,_0x355568;const _0x2fb1f5=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4c30e7=_0x209492();}catch(_0x4888aa){_0x355568=_0x4888aa;}return _0x2fb1f5||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x355568&&_0x1b7c5d['rethrowUnexpectedError'](_0x355568,this),_0x4c30e7;}['markInsertion'](_0x4337c2,_0x86b2e7=null,_0x12b3c8={}){if(_0x4337c2['isCollapsed'])return null;const _0x48cb2c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x34970c,meta:_0x2fb91c}of this['_findSuggestions'](_0x4337c2,'insertion'))if(_0x2fb91c['isOwn']){if(!_0x2fb91c['isNextTo']){if(_0x2fb91c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x34970c,_0x12b3c8))continue;return _0x34970c;}if(Qt(_0x34970c,_0x12b3c8))return _0x34970c;this['_breakSuggestionMarker'](_0x34970c,_0x4337c2['start'],_0x4337c2['end']);break;}if(_0x86b2e7==_0x34970c['subType']&&Qt(_0x34970c,_0x12b3c8)){const _0x41cdde=_0x34970c['getFirstRange']();return _0x41cdde['start']['isEqual'](_0x4337c2['end'])?this['_setSuggestionRange'](_0x34970c,this['_model']['createRange'](_0x4337c2['start'],_0x41cdde['end'])):this['_setSuggestionRange'](_0x34970c,this['_model']['createRange'](_0x41cdde['start'],_0x4337c2['end'])),_0x34970c;}}const _0x179a7d=_0x2b97bd(),_0x8b9693=_0x48cb2c['id'],_0x5e1d4b=_0x86b2e7?'insertion:'+_0x86b2e7:'insertion',_0x1559f7=this['_setSuggestionData']({'id':_0x179a7d,'type':_0x5e1d4b,'createdAt':new Date(),'authorId':_0x8b9693,'attributes':_0x12b3c8});return this['_addSuggestionMarker'](_0x5e1d4b,_0x179a7d,_0x8b9693,_0x4337c2),_0x1559f7;}['markMultiRangeInsertion'](_0x38781f,_0x1980ff='multi',_0x436c9d={}){const _0x2149c7=this['editor']['plugins']['get']('Users')['me'],_0x512a36=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1980ff,'join');for(const _0x4b5025 of this['getSuggestions']())if(_0x4b5025['author']['id']==_0x2149c7['id']&&'insertion'==_0x4b5025['type']&&_0x4b5025['subType']==_0x1980ff&&Qt(_0x4b5025,_0x436c9d)&&(_0x512a36(_0x4b5025['getRanges'](),_0x38781f)||_0x512a36(_0x38781f,_0x4b5025['getRanges']()))){for(const _0x13b64b of _0x38781f)_0x4b5025['addRange'](_0x13b64b);return _0x4b5025;}for(const {suggestion:_0x5a51b3,meta:_0x2eee75}of this['_findSuggestions'](_0x38781f,'insertion')){if(!_0x2eee75['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2eee75['containsRangeInObject'])continue;if(!Qt(_0x5a51b3,_0x436c9d))continue;let _0x47e785=!0x0;for(const _0x4d634c of _0x5a51b3['getRanges']())for(const _0x18d475 of _0x38781f)if(!_0x4d634c['containsRange'](_0x18d475)){_0x47e785=!0x1;break;}if(_0x47e785)return _0x5a51b3;}const _0x11b677=_0x2b97bd(),_0x1c41c3=_0x2149c7['id'],_0x30ceef='insertion:'+_0x1980ff,_0x3f8ca7=this['_setSuggestionData']({'id':_0x11b677,'type':_0x30ceef,'createdAt':new Date(),'authorId':_0x1c41c3,'attributes':_0x436c9d});for(const _0x31b77b of _0x38781f)this['_addSuggestionMarker'](_0x30ceef,_0x11b677,_0x1c41c3,_0x31b77b,u['getMultiRangeId']());return _0x3f8ca7;}['markInlineFormat'](_0x18c20d,_0x2f2c5b,_0x23164c=null,_0x175b2a={}){if(_0x23164c=_0x23164c||Jt(_0x2f2c5b),_0x18c20d['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xd21e91=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x23164c,'accept');return this['forceDefaultExecution'](()=>_0xd21e91([_0x18c20d],_0x2f2c5b,_0x175b2a)),null;}const _0x38da0c=this['editor']['plugins']['get']('Users')['me'],_0x392379=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xa34bb1,meta:_0x27ceaa}of this['_findSuggestions'](_0x18c20d,'insertion'))_0x27ceaa['isOwn']&&!_0x27ceaa['isInsideObject']&&_0x392379['push'](..._0xa34bb1['getRanges']());}const _0x4c05bd=function(_0x3d9d73,_0x29135a){const _0x5e20e0=[];for(const _0x715b0b of _0x29135a){const _0x534bbc=_0x3d9d73['getIntersection'](_0x715b0b);_0x534bbc&&_0x5e20e0['push'](_0x534bbc);}return _0x5e20e0;}(_0x18c20d,_0x392379),_0x36d16a=function(_0x576dbd,_0x261fd9){const _0x18a2aa=[_0x576dbd];for(const _0x1cc7a6 of _0x261fd9){let _0x5751a7=0x0;for(;_0x5751a7<_0x18a2aa['length'];){const _0x3b6e6a=_0x18a2aa[_0x5751a7]['getDifference'](_0x1cc7a6);_0x18a2aa['splice'](_0x5751a7,0x1,..._0x3b6e6a),_0x5751a7+=_0x3b6e6a['length'];}}return _0x18a2aa;}(_0x18c20d,_0x392379);_0x4c05bd['length']&&this['_model']['change'](()=>{for(const _0x1d0ee3 of _0x4c05bd){const _0x57524d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x23164c,'accept');this['forceDefaultExecution'](()=>_0x57524d([_0x1d0ee3],_0x2f2c5b,_0x175b2a));}});for(const _0x5ae369 of _0x36d16a){let _0x528dcf=null,_0x297adf=_0x5ae369['start'],_0x1dbb31=_0x5ae369['end'];for(const {suggestion:_0x3b9bfd,meta:_0x2fdb33}of this['_findSuggestions'](_0x5ae369,'formatInline')){if(!_0x2fdb33['isOwn'])continue;if(_0x3b9bfd['subType']!=_0x23164c)continue;if(!Qt(_0x3b9bfd,_0x175b2a))continue;const _0x396377=_0x3b9bfd['getFirstRange']();if(_0x396377['containsRange'](_0x5ae369,!0x0))return null;_0x297adf=_0x297adf['isBefore'](_0x396377['start'])?_0x297adf:_0x396377['start'],_0x1dbb31=_0x1dbb31['isAfter'](_0x396377['end'])?_0x1dbb31:_0x396377['end'],_0x528dcf?_0x396377['start']['isBefore'](_0x528dcf['getFirstRange']()['start'])?(_0x528dcf['removeMarkers'](),_0x528dcf=_0x3b9bfd):_0x3b9bfd['removeMarkers']():_0x528dcf=_0x3b9bfd;}const _0xe85b68=this['_model']['createRange'](_0x297adf,_0x1dbb31);if(_0x528dcf)this['_setSuggestionRange'](_0x528dcf,_0xe85b68);else{const _0x4202cb=_0x2b97bd(),_0xa7342d=_0x38da0c['id'];this['_setSuggestionData']({'id':_0x4202cb,'type':'formatInline:'+_0x23164c,'data':_0x2f2c5b,'createdAt':new Date(),'authorId':_0xa7342d,'attributes':_0x175b2a}),this['_addSuggestionMarker']('formatInline:'+_0x23164c,_0x4202cb,_0xa7342d,_0xe85b68);}}return null;}['markBlockFormat'](_0x8bedbf,_0x1d080b,_0x3edd18=[],_0x4973a7=null,_0x5a9acb={}){_0x1d080b['formatGroupId']||(_0x1d080b['formatGroupId']=_0x1d080b['commandName']),_0x1d080b['multipleBlocks']=_0x8bedbf['is']('range'),_0x4973a7=_0x4973a7||Jt(_0x1d080b);const _0x2c3a3c=_0x3edd18['map'](_0x3b8909=>zt(_0x3b8909,this['_model'])),_0x576ae8=_0x8bedbf['is']('range')?_0x8bedbf:zt(_0x8bedbf,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5a2bbc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4973a7,'accept');return this['forceDefaultExecution'](()=>_0x5a2bbc([_0x576ae8],_0x1d080b,_0x5a9acb)),null;}_0x2c3a3c['push'](_0x576ae8);let _0x5a68c7=!0x0;for(const _0x339d21 of _0x2c3a3c)if(!this['_rangeIsInLocalUserInsertion'](_0x339d21)){_0x5a68c7=!0x1;break;}if(_0x5a68c7&&'always'!==this['_trackFormatChanges']){const _0x15fdb4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4973a7,'accept');return this['forceDefaultExecution'](()=>_0x15fdb4([_0x576ae8],_0x1d080b,_0x5a9acb)),null;}let _0x2970a5=null,_0x37c742=_0x576ae8['start'],_0x4faa06=_0x576ae8['end'];for(const {suggestion:_0x5a6767,meta:_0x1f5b8f}of this['_findSuggestions'](_0x576ae8,'formatBlock')){if(!_0x1f5b8f['isOwn'])continue;if(_0x1f5b8f['isNextTo']||_0x1f5b8f['containsRangeInObject']||_0x1f5b8f['isInsideObject'])continue;if(_0x5a6767['data']['formatGroupId']!=_0x1d080b['formatGroupId'])continue;if(!Qt(_0x5a6767,_0x5a9acb))continue;const _0x3b86df=_0x5a6767['getFirstRange']();if(_0x5a6767['subType']==_0x4973a7){if(_0x3b86df['containsRange'](_0x576ae8,!0x0))return null;_0x37c742=_0x37c742['isBefore'](_0x3b86df['start'])?_0x37c742:_0x3b86df['start'],_0x4faa06=_0x4faa06['isAfter'](_0x3b86df['end'])?_0x4faa06:_0x3b86df['end'],_0x2970a5?_0x3b86df['start']['isBefore'](_0x2970a5['getFirstRange']()['start'])?(_0x2970a5['removeMarkers'](),_0x2970a5=_0x5a6767):_0x5a6767['removeMarkers']():_0x2970a5=_0x5a6767;}else{const _0x2cdd31=_0x576ae8['getIntersection'](_0x3b86df);this['_cutOutSuggestionMarker'](_0x5a6767,_0x2cdd31);}}const _0x31cc5f=this['editor']['plugins']['get']('Users')['me'],_0x5167fa=_0x2b97bd(),_0x104b0d=_0x31cc5f['id'];if(_0x2970a5)return this['_setSuggestionRange'](_0x2970a5,this['_model']['createRange'](_0x37c742,_0x4faa06)),_0x2970a5;{const _0x28d781=this['_setSuggestionData']({'id':_0x5167fa,'type':'formatBlock:'+_0x4973a7,'data':_0x1d080b,'createdAt':new Date(),'authorId':_0x104b0d,'attributes':_0x5a9acb});return this['_addSuggestionMarker']('formatBlock:'+_0x4973a7,_0x5167fa,_0x104b0d,this['_model']['createRange'](_0x37c742,_0x4faa06)),_0x28d781;}}['markMultiRangeBlockFormat'](_0x4d9982,_0x2691b2,_0x505be3=[],_0x53540a=null,_0x2db785={}){_0x2691b2['formatGroupId']||(_0x2691b2['formatGroupId']=_0x2691b2['commandName']);const _0x2afeb3=_0x4d9982[0x0];_0x2691b2['multipleBlocks']=_0x2afeb3['is']('range'),_0x53540a=_0x53540a||Jt(_0x2691b2);const _0x5597dc=_0x505be3['map'](_0x49076c=>zt(_0x49076c,this['_model'])),_0x13915b=_0x2afeb3['is']('range')?_0x4d9982:_0x4d9982['map'](_0x13bfe4=>zt(_0x13bfe4,this['_model']));if('never'===this['_trackFormatChanges']){const _0x226642=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53540a,'accept');return this['forceDefaultExecution'](()=>_0x226642(_0x13915b,_0x2691b2,_0x2db785)),null;}_0x5597dc['push'](..._0x13915b);let _0x2779c7=!0x0;for(const _0x276f49 of _0x5597dc)if(!this['_rangeIsInLocalUserInsertion'](_0x276f49)){_0x2779c7=!0x1;break;}if(_0x2779c7&&'always'!==this['_trackFormatChanges']){const _0x1523d0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53540a,'accept');return this['forceDefaultExecution'](()=>_0x1523d0(_0x13915b,_0x2691b2,_0x2db785)),null;}const _0x43f885=this['editor']['plugins']['get']('Users')['me'];for(const _0x838d0c of this['getSuggestions']()){if(_0x838d0c['author']['id']!=_0x43f885['id'])continue;if('formatBlock'!=_0x838d0c['type']||_0x838d0c['data']['formatGroupId']!=_0x2691b2['formatGroupId'])continue;if(!Qt(_0x838d0c,_0x2db785))continue;const _0xbdd3ab=_0x838d0c['subType']==_0x53540a;for(let _0x4982aa=0x0;_0x4982aa<_0x13915b['length'];_0x4982aa++){const _0x453d50=_0x13915b[_0x4982aa];for(const _0x586a1b of _0x838d0c['getMarkers']()){const _0x5a9665=_0x586a1b['getRange']();if(_0x453d50['isEqual'](_0x5a9665)){_0xbdd3ab?(_0x13915b['splice'](_0x4982aa,0x1),_0x4982aa--):_0x838d0c['removeMarker'](_0x586a1b['name']);break;}}}}if(0x0==_0x13915b['length'])return null;const _0x50f1d7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53540a,'join');for(const _0x2c1a61 of this['getSuggestions']())if(_0x2c1a61['author']['id']==_0x43f885['id']&&'formatBlock'==_0x2c1a61['type']&&_0x2c1a61['data']['formatGroupId']==_0x2691b2['formatGroupId']&&_0x2c1a61['subType']==_0x53540a&&Qt(_0x2c1a61,_0x2db785)&&(_0x50f1d7(_0x2c1a61['getRanges'](),_0x13915b)||_0x50f1d7(_0x13915b,_0x2c1a61['getRanges']()))){for(const _0x5f548f of _0x13915b)_0x2c1a61['addRange'](_0x5f548f);return _0x2c1a61;}const _0x56ed85=_0x2b97bd(),_0x39873d=_0x43f885['id'],_0x225a94='formatBlock:'+_0x53540a,_0x37b98e=this['_setSuggestionData']({'id':_0x56ed85,'type':_0x225a94,'data':_0x2691b2,'createdAt':new Date(),'authorId':_0x39873d,'attributes':_0x2db785});for(const _0xaea187 of _0x13915b)this['_addSuggestionMarker'](_0x225a94,_0x56ed85,_0x39873d,_0xaea187,u['getMultiRangeId']());return _0x37b98e;}['markDeletion'](_0x1c9276,_0x3a182a=null,_0x5169d2={}){if(_0x1c9276['isCollapsed'])return null;const _0x51d240=this['editor']['plugins']['get']('Users')['me'],_0x3f6ca9=new _0x512f92(_0x1c9276['start'],_0x1c9276['end']);for(const {suggestion:_0xd29af4,meta:_0x1c349f}of this['_findSuggestions'](_0x3f6ca9,'insertion'))if(_0x1c349f['isOwn']&&!_0x1c349f['isNextTo']){if(_0xd29af4['isMultiRange']){const _0x27bedb=_0xd29af4['getRanges']()['filter'](_0x38c935=>'$graveyard'!=_0x38c935['root']['rootName']);_0x27bedb['every'](_0x11b045=>_0x3f6ca9['containsRange'](_0x11b045,!0x0))&&_0xd29af4['discard']();if(_0x27bedb['some'](_0x19eac3=>_0x19eac3['containsRange'](_0x3f6ca9,!0x0))){const _0x17329b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a182a,'accept');return this['forceDefaultExecution'](()=>_0x17329b([_0x3f6ca9],null,_0x5169d2)),null;}}else{const _0x12a815=_0x3f6ca9['getIntersection'](_0xd29af4['getFirstRange']());null!==_0x12a815&&_0xd29af4['_onDiscard']([_0x12a815],null,_0x5169d2);}}if(_0x3f6ca9['detach'](),_0x3f6ca9['isCollapsed']||'$graveyard'==_0x3f6ca9['root']['rootName'])return null;let _0xcab48c=null,_0x5bf1e8=_0x3f6ca9['start'],_0x4b6621=_0x3f6ca9['end'];const _0x4aeef7=this['_findSuggestions'](_0x3f6ca9,'deletion');for(const {suggestion:_0x2f45db,meta:_0x57901a}of _0x4aeef7){const _0x3ccc11=this['_model']['createRange'](_0x5bf1e8,_0x4b6621);if(_0x57901a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x57901a['containsRangeInObject']&&!_0x57901a['isInsideObject'])){if(_0x2f45db['isMultiRange']){if(!Qt(_0x2f45db,_0x5169d2))continue;let _0x40e7f6=!0x0;for(const _0x146af3 of _0x2f45db['getRanges']()){if(_0x146af3['containsRange'](_0x3ccc11,!0x0))return _0x2f45db;_0x3ccc11['containsRange'](_0x146af3)||(_0x40e7f6=!0x1);}_0x40e7f6&&_0x2f45db['discard']();}else{const _0x32e86d=_0x2f45db['getFirstRange']();if(_0x32e86d['containsRange'](_0x3ccc11,!0x0))return _0x2f45db;if(!Qt(_0x2f45db,_0x5169d2)){_0x3ccc11['containsRange'](_0x32e86d)?_0x2f45db['removeMarkers']():_0x32e86d['containsPosition'](_0x5bf1e8)?_0x5bf1e8=_0x32e86d['end']:_0x32e86d['containsPosition'](_0x4b6621)&&(_0x4b6621=_0x32e86d['start']);continue;}_0x5bf1e8=_0x5bf1e8['isBefore'](_0x32e86d['start'])?_0x5bf1e8:_0x32e86d['start'],_0x4b6621=_0x4b6621['isAfter'](_0x32e86d['end'])?_0x4b6621:_0x32e86d['end'],_0x5169d2=Object['assign']({},_0x2f45db['attributes']),_0xcab48c?_0x32e86d['start']['isBefore'](_0xcab48c['getFirstRange']()['start'])?(_0xcab48c['removeMarkers'](),_0xcab48c=_0x2f45db):_0x2f45db['removeMarkers']():_0xcab48c=_0x2f45db;}}}if(_0xcab48c)return this['_setSuggestionRange'](_0xcab48c,this['_model']['createRange'](_0x5bf1e8,_0x4b6621)),_0xcab48c;{const _0x31d890=_0x2b97bd(),_0x466a5b=this['_model']['createRange'](_0x5bf1e8,_0x4b6621),_0x4796ef=_0x51d240['id'],_0x52c975=_0x3a182a?'deletion:'+_0x3a182a:'deletion',_0x1ec798=this['_setSuggestionData']({'id':_0x31d890,'type':_0x52c975,'createdAt':new Date(),'authorId':_0x4796ef,'attributes':_0x5169d2});return this['_addSuggestionMarker'](_0x52c975,_0x31d890,_0x4796ef,_0x466a5b),_0x1ec798;}}['markMultiRangeDeletion'](_0xb2d74c,_0x2de46f='multi',_0x4aedbf={}){const _0x5bc3e6=this['editor']['plugins']['get']('Users')['me'],_0x37ab1b=_0xb2d74c['map'](_0x2276a8=>new _0x512f92(_0x2276a8['start'],_0x2276a8['end'])),_0x2334be=new Set();for(const {suggestion:_0x423251,meta:_0x21f54c}of this['_findSuggestions'](_0x37ab1b,'insertion'))_0x21f54c['isOwn']&&!_0x21f54c['isNextTo']&&_0x2334be['add'](_0x423251);for(const _0x3d3583 of _0x2334be)if(_0x3d3583['isMultiRange']){const _0x5e3941=_0x3d3583['getRanges']();(!_0x3d3583['attributes']||!_0x3d3583['attributes']['skipNestingCheck'])&&(_0x5e3941['every'](_0x3153c1=>_0x37ab1b['some'](_0x205edf=>_0x205edf['containsRange'](_0x3153c1,!0x0)))&&_0x3d3583['discard']());if(_0x37ab1b['every'](_0x40aad3=>_0x5e3941['some'](_0x2aa021=>_0x2aa021['containsRange'](_0x40aad3,!0x0)))){const _0x442d0d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2de46f,'accept');return this['forceDefaultExecution'](()=>_0x442d0d(_0xb2d74c,null,_0x4aedbf)),null;}}else{const _0x50ad4a=_0x3d3583['getFirstRange']();_0x37ab1b['some'](_0x453cd0=>_0x453cd0['containsRange'](_0x50ad4a,!0x0))&&_0x3d3583['discard']();if(_0x37ab1b['every'](_0x321ca1=>_0x50ad4a['containsRange'](_0x321ca1,!0x0))){const _0x4bc057=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2de46f,'accept');return this['forceDefaultExecution'](()=>_0x4bc057(_0x37ab1b,null,_0x4aedbf)),null;}}const _0xa7ce59=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2de46f,'join');let _0x19a114=null;for(const _0xa9ab64 of this['getSuggestions']())if(_0xa9ab64['author']['id']==_0x5bc3e6['id']&&_0xa9ab64['isInContent']&&'deletion'==_0xa9ab64['type']&&_0xa9ab64['subType']==_0x2de46f&&Qt(_0xa9ab64,_0x4aedbf)&&(_0xa7ce59(_0xa9ab64['getRanges'](),_0x37ab1b)||_0xa7ce59(_0x37ab1b,_0xa9ab64['getRanges']()))){if(_0x19a114){if(_0xa9ab64['commentThread']&&_0xa9ab64['commentThread']['length'])continue;for(const _0x4869a3 of _0xa9ab64['getRanges']())_0x19a114['isIntersectingWithRange'](_0x4869a3)||_0x19a114['addRange'](_0x4869a3);_0xa9ab64['removeMarkers']();}else{_0x19a114=_0xa9ab64;for(const _0x50138c of _0x37ab1b)_0xa9ab64['isIntersectingWithRange'](_0x50138c)||_0xa9ab64['addRange'](_0x50138c);}}if(_0x19a114)return _0x19a114;_0x2334be['clear']();for(const {suggestion:_0x9d197b,meta:_0x2af155}of this['_findSuggestions'](_0x37ab1b,'deletion'))_0x2af155['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2af155['containsRangeInObject']&&!_0x2af155['isInsideObject'])&&Qt(_0x9d197b,_0x4aedbf)&&_0x2334be['add'](_0x9d197b);for(const _0x320260 of _0x2334be){const _0xaf5937=_0x320260['getRanges']();if(!_0x4aedbf||!_0x4aedbf['skipNestingCheck']){if(_0x37ab1b['every'](_0x47ea04=>_0xaf5937['some'](_0x250c63=>_0x250c63['containsRange'](_0x47ea04,!0x0))))return _0x320260;}(!_0x320260['attributes']||!_0x320260['attributes']['skipNestingCheck'])&&(_0xaf5937['every'](_0x571ed3=>_0x37ab1b['some'](_0xcc10ba=>_0xcc10ba['containsRange'](_0x571ed3,!0x0)))&&_0x320260['discard']());}const _0x4f120f=_0x2b97bd(),_0x5286ce=_0x5bc3e6['id'],_0x4d2fd8='deletion:'+_0x2de46f,_0x592c3c=this['_setSuggestionData']({'id':_0x4f120f,'type':_0x4d2fd8,'createdAt':new Date(),'authorId':_0x5286ce,'attributes':_0x4aedbf});for(const _0x98921d of _0x37ab1b)_0x98921d['detach'](),_0x98921d['isCollapsed']||'$graveyard'==_0x98921d['root']['rootName']||this['_addSuggestionMarker'](_0x4d2fd8,_0x4f120f,_0x5286ce,_0x98921d,u['getMultiRangeId']());return _0x592c3c;}['markAttributeChange'](_0x5bdf0c,_0xe8471,_0x289858,_0x3c0204,_0x3326cc){if(_0x5bdf0c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x8a1349=this['editor']['plugins']['get']('Users')['me']['id'],_0x301f90=Array['from'](this['_suggestions']['values']())['filter'](_0x50f2df=>'attribute'==_0x50f2df['type']&&_0x50f2df['data']['key']==_0xe8471&&_0x50f2df['isIntersectingWithRange'](_0x5bdf0c));if('default'===this['_trackFormatChanges']){const _0x341092=this['_findSuggestions'](_0x5bdf0c,'insertion')['filter'](({meta:_0x1a1e51})=>_0x1a1e51['isOwn']&&!_0x1a1e51['isInsideObject']&&!_0x1a1e51['isNextTo'])['map'](({suggestion:_0x558dd2})=>_0x558dd2);_0x301f90['unshift'](..._0x341092);}const _0x3fba82=new Map([[_0x5bdf0c,_0x289858]]);for(const _0x2e4cf1 of _0x301f90){const _0x397e5c='attribute'==_0x2e4cf1['type']?_0x2e4cf1['data']['oldValue']:void 0x0,_0x5c3c6c=_0x2e4cf1['getFirstRange'](),_0x17a7b1=Array['from'](_0x3fba82['keys']())['find'](_0x263f54=>_0x263f54['isIntersecting'](_0x5c3c6c));if(!_0x17a7b1)continue;const _0x39af71=_0x17a7b1['getDifference'](_0x5c3c6c);this['_isBlockAttribute'](_0xe8471)&&'insertion'==_0x2e4cf1['type']&&0x0!=_0x39af71['length']||(_0x3fba82['delete'](_0x17a7b1),_0x39af71['forEach'](_0x50f81c=>{_0x3fba82['set'](_0x50f81c,_0x289858);}),'insertion'!=_0x2e4cf1['type']&&_0x397e5c!=_0x3c0204&&_0x3fba82['set'](_0x17a7b1['getIntersection'](_0x5c3c6c),_0x397e5c));}const _0x2ba18b=[];for(const [_0x4a0e02,_0x303aac]of _0x3fba82){const _0x32de90=_0x2b97bd(),_0xa3fbcb={'key':_0xe8471,'oldValue':_0x303aac,'newValue':_0x3c0204};_0xe8471['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':_0xe8471});const _0x102b7e=('attribute:'+(_0xe8471+'|'+Jt({'newValue':_0x3c0204})))['substring'](0x0,0x3c),_0x1391c4=this['_setSuggestionData']({'id':_0x32de90,'type':_0x102b7e,'data':_0xa3fbcb,'createdAt':new Date(),'authorId':_0x8a1349,'attributes':_0x3326cc});_0x2ba18b['push'](_0x1391c4),this['_addSuggestionMarker'](_0x102b7e,_0x32de90,_0x8a1349,_0x4a0e02);}return _0x2ba18b;}['enableDefaultAttributesIntegration'](_0x1d1c78){this['enableCommand'](_0x1d1c78,(_0x3d452a,..._0x5ddc7e)=>{this['_recordAttributeChanges'](()=>{_0x3d452a(..._0x5ddc7e);});});}['registerBlockAttribute'](_0xe185f8){this['_blockAttributeKeys']['add'](_0xe185f8);}['registerInlineAttribute'](_0x282b01){this['_inlineAttributeKeys']['add'](_0x282b01);}['_getAttributeKey'](_0x1783a8){return'attribute'==_0x1783a8['type']?_0x1783a8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x28099b,_0x502c80){const _0x554540=_0x28099b['getFirstMarker']();this['_model']['change'](_0x134594=>{_0x134594['updateMarker'](_0x554540,{'range':_0x502c80});});}['_addThreadToSuggestion'](_0x483e10){const _0x4f2cfb=_0x483e10['id'],_0x598cf0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4f2cfb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x598cf0,'threadId':_0x4f2cfb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x580016=this['_commentsRepository']['getCommentThread'](_0x4f2cfb);_0x580016['unbind']('isRemovable'),_0x580016['isRemovable']=!0x1,_0x483e10['commentThread']=_0x580016;}['_checkSuggestionCorrectness'](_0x4c78a8,_0x4e7386,_0x2af5c0,_0x4c8046){if(_0x4c78a8['type']!=_0x4e7386||_0x4c78a8['subType']!=_0x2af5c0||_0x4c78a8['creator']['id']!=_0x4c8046)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1b7c5d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5a8b81,_0x48a09d){const _0x1e0750=_0x5a8b81['getFirstRange']();if(_0x48a09d['isEqual'](_0x1e0750))_0x5a8b81['removeMarkers']();else{if(_0x1e0750['containsRange'](_0x48a09d)){const _0x35e475=this['_model']['createPositionAt'](_0x48a09d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5a8b81,this['_model']['createRange'](_0x1e0750['start'],_0x35e475));const _0x11eb87=_0x2b97bd(),_0x1de177=_0x5a8b81['creator']['id'],_0x566f83=_0x5a8b81['type']+':'+_0x5a8b81['subType'];this['_setSuggestionData']({'id':_0x11eb87,'type':_0x566f83,'createdAt':new Date(),'authorId':_0x1de177,'data':_0x5a8b81['data'],'attributes':_0x5a8b81['attributes']});const _0xb8410a=this['_model']['createPositionAt'](_0x48a09d['end']['parent'],'after'),_0x38062c=this['_model']['createRange'](_0xb8410a,_0x1e0750['end']);this['_addSuggestionMarker'](_0x566f83,_0x11eb87,_0x1de177,_0x38062c);}else{if(_0x1e0750['containsPosition'](_0x48a09d['start'])){const _0x4fec65=this['_model']['createPositionAt'](_0x48a09d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5a8b81,this['_model']['createRange'](_0x1e0750['start'],_0x4fec65));}else{const _0xffbc45=this['_model']['createPositionAt'](_0x48a09d['end']['parent'],'after');this['_setSuggestionRange'](_0x5a8b81,this['_model']['createRange'](_0xffbc45,_0x1e0750['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1f1278){for(const {suggestion:_0x2d6f7e,meta:_0x34b1da}of this['_findSuggestions'](_0x1f1278,'insertion')){if(!_0x34b1da['isOwn'])continue;const _0x3a61c8=_0x2d6f7e['getRanges']();for(const _0x4dbf19 of _0x3a61c8)if(!_0x1f1278['getDifference'](_0x4dbf19)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xd93858){const _0x4e8d3b=this['editor']['plugins']['get']('Users')['getUser'](_0xd93858);if(!_0x4e8d3b)throw new _0x1b7c5d('track-changes-user-not-found',this);return _0x4e8d3b;}['_getExternalAuthor'](_0x3836cf){const _0xeb72dd=this['editor']['plugins']['get']('Users'),_0x5a74d7=_0x5d256d('external:'+_0x3836cf),_0x29f0b9=_0xeb72dd['getUser'](_0x5a74d7);return _0x29f0b9||_0xeb72dd['addUser']({'id':_0x5a74d7,'name':_0x3836cf});}['_createSuggestion'](_0x5169aa,_0x24354f,_0x7d7906,_0x4f1dc9,_0x2082e9){const _0x1f6b48=this['_getAuthorFromId'](_0x4f1dc9),_0x280cad=this['_suggestionFactory']['buildSuggestion'](_0x5169aa,_0x24354f,_0x7d7906,_0x1f6b48,_0x2082e9,_0x53a89a=>{this['_updateSuggestionData'](_0x7d7906,{'attributes':_0x53a89a});const _0xc4aa73=this['getSuggestion'](_0x7d7906);this['_joinWithAdjacentSuggestions'](new Set([_0xc4aa73])),this['_refreshSuggestionsChain'](new Set([_0xc4aa73]));});return this['listenTo'](_0x280cad,'accept',()=>{this['_updateSuggestionData'](_0x7d7906,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x280cad,'discard',()=>{this['_updateSuggestionData'](_0x7d7906,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x7d7906,_0x280cad),this['_suggestionState']['set'](_0x280cad,'notReady'),_0x280cad;}['_splitMarkerName'](_0x1f798f){const _0x396635=_0x1f798f['split'](':');return{'group':_0x396635[0x0],'type':_0x396635[0x1],'subType':_0x396635['length']>=0x5?_0x396635[0x2]:null,'id':_0x396635['length']<0x5?_0x396635[0x2]:_0x396635[0x3],'authorId':_0x396635['length']<0x5?_0x396635[0x3]:_0x396635[0x4],'markerCount':0x6==_0x396635['length']?_0x396635[0x5]:null};}['_breakSuggestionMarker'](_0x3a0fc8,_0x3d020d,_0x2fc9c2){const _0x5525bf=_0x3a0fc8['getFirstRange'](),_0x525931=_0x5525bf['start'],_0x21c762=_0x5525bf['end'];this['_setSuggestionRange'](_0x3a0fc8,this['_model']['createRange'](_0x525931,_0x3d020d));const _0x59243a=_0x2b97bd(),_0x22c33f=_0x3a0fc8['creator']['id'],_0x16e550=_0x3a0fc8['type']+(_0x3a0fc8['subType']?':'+_0x3a0fc8['subType']:'');this['_setSuggestionData']({'id':_0x59243a,'type':_0x16e550,'createdAt':new Date(),'authorId':_0x22c33f,'originalSuggestionId':_0x3a0fc8['id'],'attributes':_0x3a0fc8['attributes'],'data':_0x3a0fc8['data']});const _0x111e67=this['_getAttributeKey'](_0x3a0fc8);('formatBlock'==_0x3a0fc8['type']||_0x111e67&&this['_isBlockAttribute'](_0x111e67))&&(_0x2fc9c2=this['_model']['createPositionBefore'](_0x2fc9c2['parent'])),this['_addSuggestionMarker'](_0x16e550,_0x59243a,_0x22c33f,this['_model']['createRange'](_0x2fc9c2,_0x21c762));}['_findSuggestions'](_0x3efba2,_0x4a4c80=null){const _0x300ca7=[],_0x212049=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3efba2)||(_0x3efba2=[_0x3efba2]);for(const _0x25b366 of this['getSuggestions']()){if(!_0x25b366['isInContent'])continue;if(_0x4a4c80&&_0x25b366['type']!=_0x4a4c80)continue;let _0x304499=!0x1;for(const _0x4a0eb3 of _0x25b366['getRanges']()){for(const _0x5a46b9 of _0x3efba2){const _0x1b3836=_0x5a46b9['start']['isEqual'](_0x4a0eb3['end'])||_0x5a46b9['end']['isEqual'](_0x4a0eb3['start']);if(_0x1b3836||_0x5a46b9['getIntersection'](_0x4a0eb3)){const _0x386099=_0x5a46b9['containsRange'](_0x4a0eb3)&&Gt(this['_model']['schema'],_0x4a0eb3['start'],_0x5a46b9),_0x2ebb86=_0x4a0eb3['containsRange'](_0x5a46b9)&&Gt(this['_model']['schema'],_0x5a46b9['start'],_0x4a0eb3);_0x300ca7['push']({'suggestion':_0x25b366,'meta':{'isOwn':_0x212049==_0x25b366['author'],'isNextTo':_0x1b3836,'isInsideObject':_0x386099,'containsRangeInObject':_0x2ebb86}}),_0x304499=!0x0;break;}}if(_0x304499)break;}}return _0x300ca7;}['_addSuggestionMarker'](_0x4cdc55,_0x44b8dd,_0x11ce5b,_0x3307ed,_0x503eb7){this['_model']['change'](_0xe31d10=>{let _0x365a31='suggestion:'+_0x4cdc55+':'+_0x44b8dd+':'+_0x11ce5b;_0x503eb7&&(_0x365a31=_0x365a31+':'+_0x503eb7),_0xe31d10['addMarker'](_0x365a31,{'range':_0x3307ed,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1354ea){const _0x2182ea=_0x1354ea['previous'],_0x46369d=_0x1354ea['next'];_0x1354ea['previous']=null,_0x1354ea['next']=null,null!=_0x2182ea&&_0x2182ea['next']==_0x1354ea&&(_0x2182ea['next']=_0x46369d),null!=_0x46369d&&_0x46369d['previous']==_0x1354ea&&(_0x46369d['previous']=_0x2182ea),'ready'==this['_suggestionState']['get'](_0x1354ea)&&(this['_suggestionState']['set'](_0x1354ea,'removed'),this['fire']('suggestionUnloaded',_0x1354ea,_0x2182ea,_0x46369d));}['_setSuggestionData'](_0x2a8be7){const _0x57dd33=_0x2a8be7['id'],_0x3e01b7=this['addSuggestionData'](_0x2a8be7);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4a6bae=this['editor']['plugins']['get']('PendingActions'),_0x206c7f=_0x3e01b7['hasComments'],_0x3f2325=_0x3e01b7['subType']?_0x3e01b7['type']+':'+_0x3e01b7['subType']:_0x3e01b7['type'],_0x51313e=this['editor']['locale'],_0x530839=_0x4a6bae['add'](o(_0x51313e,'PENDING_ACTION_SUGGESTION')),_0xec23f8={'id':_0x57dd33,'type':_0x3f2325,'hasComments':_0x206c7f,'data':_0x2a8be7['data']||null,'originalSuggestionId':_0x2a8be7['originalSuggestionId']||null,'attributes':_0x3e01b7['attributes']};this['_adapter']['addSuggestion'](_0xec23f8)['then'](_0x1bd938=>{_0x3e01b7['_saved']=!0x0,_0x4a6bae['remove'](_0x530839),_0x1bd938&&_0x1bd938['createdAt']&&(this['_suggestions']['get'](_0x57dd33)['createdAt']=_0x1bd938['createdAt']);})['catch'](_0x142f79=>{throw _0x3121bc('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3e01b7['discard']();}),_0x3e01b7['stopListening'](),this['_suggestions']['delete'](_0x3e01b7['id']),this['_suggestionState']['delete'](_0x3e01b7),_0x142f79;});}return _0x3e01b7;}['_isBlockAttribute'](_0x134826){return this['_blockAttributeKeys']['has'](_0x134826);}['_updateSuggestionData'](_0x4d4cc3,_0x7c417f){const _0x463ae2=this['editor']['plugins']['get']('PendingActions'),_0x2de621=this['getSuggestion'](_0x4d4cc3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2de621['_saved']){const _0xaf157=_0x463ae2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4d4cc3,_0x7c417f)['then'](()=>{_0x463ae2['remove'](_0xaf157);});}else _0x2de621['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4d4cc3,_0x7c417f);});}}['_getSuggestionData'](_0x33ac8e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1b7c5d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x33ac8e);}['_handleNewSuggestionMarker'](_0x2e6580){const {id:_0x59e543,type:_0x1302d4,subType:_0xbb085c,authorId:_0x771e8}=this['_splitMarkerName'](_0x2e6580),_0x4b0cb4=this['_suggestions']['get'](_0x59e543)||this['_createSuggestion'](_0x1302d4,_0xbb085c,_0x59e543,_0x771e8,{});switch(this['_checkSuggestionCorrectness'](_0x4b0cb4,_0x1302d4,_0xbb085c,_0x771e8),this['_suggestionState']['get'](_0x4b0cb4)){case'notReady':this['_getSuggestionData'](_0x59e543)['then'](_0x58ded1=>{let _0x545370=Promise['resolve']();_0x58ded1['hasComments']&&(_0x545370=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x59e543})),_0x545370['then'](()=>{this['addSuggestionData'](_0x58ded1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4b0cb4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x59e543,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4b0cb4,'ready'),this['fire']('suggestionLoaded',_0x4b0cb4);break;case'ready':this['fire']('suggestionChanged',_0x4b0cb4);}return _0x4b0cb4['addMarkerName'](_0x2e6580),_0x4b0cb4;}['_refreshSuggestionsChain'](_0x21ad75){const _0x50676d=Array['from'](_0x21ad75),_0xcbd2a9=_0x50676d['filter'](_0x146e1d=>'attribute'==_0x146e1d['type']);this['_refreshAttributeSuggestionsChain'](_0xcbd2a9);const _0x27e769=_0x50676d['filter'](_0x47d0cc=>!_0x47d0cc['isMultiRange']&&'attribute'!=_0x47d0cc['type']),_0x1306d9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d20d8=>!_0x2d20d8['isMultiRange']&&'attribute'!=_0x2d20d8['type']),_0x45a438=_0x1306d9['filter'](_0x4a70c7=>!_0x21ad75['has'](_0x4a70c7)),_0x116da2=new Map(_0x1306d9['map'](_0x54720e=>[_0x54720e,this['_suggestionFactory']['getSuggestionCallback'](_0x54720e['type'],_0x54720e['subType'],'chain')])),_0x16438b=new Map(_0x1306d9['map'](_0x39937a=>[_0x39937a,_0x39937a['getFirstRange']()])),_0x10ea51=new Set(),_0x1f8cf6=new Set();for(let _0x53fe84=0x0;_0x53fe84<_0x27e769['length'];_0x53fe84++)_0x3ead71(_0x27e769[_0x53fe84],_0x27e769,_0x53fe84+0x1);for(let _0x55e63d=0x0;_0x55e63d<_0x27e769['length'];_0x55e63d++)_0x3ead71(_0x27e769[_0x55e63d],_0x45a438,0x0);const _0x334c70=new Set();for(let _0x23207b=0x0;_0x23207b<_0x27e769['length'];_0x23207b++){const _0x49dfec=_0x27e769[_0x23207b];!_0x1f8cf6['has'](_0x49dfec)&&_0x49dfec['previous']&&(_0x334c70['add'](_0x49dfec['previous']),_0x49dfec['previous']['next']===_0x49dfec&&(_0x49dfec['previous']['next']=null),_0x49dfec['previous']=null),!_0x10ea51['has'](_0x49dfec)&&_0x49dfec['next']&&(_0x334c70['add'](_0x49dfec['next']),_0x49dfec['next']['previous']===_0x49dfec&&(_0x49dfec['next']['previous']=null),_0x49dfec['next']=null);}function _0x3ead71(_0x55a2a8,_0x947199,_0xb641b8){for(let _0xac146a=_0xb641b8;_0xac146a<_0x947199['length'];_0xac146a++){const _0x2a874f=_0x553ea6(_0x55a2a8,_0x947199[_0xac146a]);_0x2a874f&&(_0x2a874f[0x0]['next']=_0x2a874f[0x1],_0x2a874f[0x1]['previous']=_0x2a874f[0x0],_0x10ea51['add'](_0x2a874f[0x0]),_0x1f8cf6['add'](_0x2a874f[0x1]));}}function _0x553ea6(_0x192bdd,_0x4bc596){if(_0x192bdd['author']['id']!==_0x4bc596['author']['id'])return null;const _0x2209f0=_0x116da2['get'](_0x192bdd)(_0x192bdd,_0x4bc596,_0x16438b['get'](_0x192bdd),_0x16438b['get'](_0x4bc596));if(!_0x2209f0)return null;return _0x116da2['get'](_0x4bc596)(_0x192bdd,_0x4bc596,_0x16438b['get'](_0x192bdd),_0x16438b['get'](_0x4bc596))?_0x2209f0[0x1]['commentThread']&&_0x2209f0[0x1]['commentThread']['length']?null:_0x2209f0:null;}_0x334c70['size']&&this['_refreshSuggestionsChain'](_0x334c70);}['_refreshAttributeSuggestionsChain'](_0x4fbfb3){if(0x0==_0x4fbfb3['length'])return;const _0x5b1400=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a39aa=>'attribute'==_0x2a39aa['type']&&_0x2a39aa['_isDataLoaded']),_0x5e2b2d=[],_0x1c94c0=new Map();for(const _0x4a7c0b of _0x5b1400){const _0x5a9a18=_0x5d256d(_0x4a7c0b['attributes']);_0x1c94c0['has'](_0x5a9a18)||(_0x1c94c0['set'](_0x5a9a18,_0x5e2b2d['length']),_0x5e2b2d['push']([]));const _0xab7c89=_0x1c94c0['get'](_0x5a9a18);_0x5e2b2d[_0xab7c89]['push'](_0x4a7c0b);}!(function(){_0x5e2b2d['sort']((_0x2f5fe4,_0x472967)=>{const _0x4fe121=_0x2f5fe4[0x0]['createdAt'],_0x3df54a=_0x472967[0x0]['createdAt'];return _0x4fe121==_0x3df54a?_0x2f5fe4[0x0]['attributes']['groupId']<_0x472967[0x0]['attributes']['groupId']?-0x1:0x1:_0x4fe121<_0x3df54a?-0x1:0x1;});for(const _0x39c7d5 of _0x5e2b2d)_0x39c7d5['sort']((_0x83d089,_0x3ab5b2)=>_0x83d089['id']<_0x3ab5b2['id']?-0x1:0x1);}());for(let _0xb02de8=0x0;_0xb02de8<_0x5e2b2d['length'];_0xb02de8++){if(0x0==_0x5e2b2d[_0xb02de8]['length'])continue;const _0x25483e=[];for(let _0x3a04cc=_0xb02de8+0x1;_0x3a04cc<_0x5e2b2d['length'];_0x3a04cc++)0x0!=_0x5e2b2d[_0x3a04cc]['length']&&_0x426a7b(_0x5e2b2d[_0xb02de8],_0x5e2b2d[_0x3a04cc])&&_0x25483e['push'](_0x3a04cc);for(const _0x37faac of _0x25483e)_0x5e2b2d[_0xb02de8]=_0x5e2b2d[_0xb02de8]['concat'](_0x5e2b2d[_0x37faac]),_0x5e2b2d[_0x37faac]=[];}for(const _0x2057e9 of _0x5e2b2d)for(let _0x1c3472=0x0;_0x1c3472<_0x2057e9['length'];_0x1c3472++){const _0xf97725=_0x2057e9[_0x1c3472+0x1]||null;_0x2057e9[_0x1c3472]['next']!==_0xf97725&&(_0x2057e9[_0x1c3472]['next']=_0xf97725);}for(const _0x1cebd5 of _0x5e2b2d)for(let _0x145250=0x0;_0x145250<_0x1cebd5['length'];_0x145250++){const _0x95f0ec=_0x1cebd5[_0x145250-0x1]||null;_0x1cebd5[_0x145250]['previous']!==_0x95f0ec&&(_0x1cebd5[_0x145250]['previous']=_0x95f0ec);}function _0x426a7b(_0x210fa4,_0x22302b){if(_0x210fa4[0x0]['attributes']['groupId']!==_0x22302b[0x0]['attributes']['groupId']&&_0x210fa4[0x0]['author']!==_0x22302b[0x0]['author'])return!0x1;if(!function(_0x2f10c2,_0x5ac58a){if(!_0x2f10c2['hasComments']&&!_0x5ac58a['hasComments'])return!0x0;if(_0x2f10c2['hasComments']&&_0x5ac58a['hasComments'])return!0x1;if(_0x2f10c2['hasComments']&&_0x5ac58a['createdAt']<_0x2f10c2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5ac58a['hasComments']&&_0x2f10c2['createdAt']<_0x5ac58a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x210fa4[0x0],_0x22302b[0x0]))return!0x1;const _0x58f16f=Vt(_0x210fa4[0x0]['attributes'],'groupId'),_0x378534=Vt(_0x22302b[0x0]['attributes'],'groupId');if(!_0x2deacb(_0x58f16f,_0x378534))return!0x1;return!!_0x210fa4['every'](_0xfd92e0=>_0x22302b['some'](_0x3efc9c=>_0xfd92e0['getFirstRange']()['isEqual'](_0x3efc9c['getFirstRange']())))&&_0x22302b['every'](_0x32882e=>_0x210fa4['some'](_0x240d5a=>_0x32882e['getFirstRange']()['isEqual'](_0x240d5a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x499da3){const _0x5d7003=Array['from'](_0x499da3),_0x409c57=this['getSuggestions']({'skipNotAttached':!0x0}),_0x17e58c=_0x409c57['filter'](_0x3714a8=>!_0x499da3['has'](_0x3714a8)),_0x983bba=new Map(_0x5d7003['map'](_0x2befe5=>[_0x2befe5,this['_suggestionFactory']['getSuggestionCallback'](_0x2befe5['type'],_0x2befe5['subType'],'join')])),_0x5df130=new Map(_0x409c57['map'](_0x3c266b=>[_0x3c266b,_0x3c266b['getRanges']()]));for(let _0x391838=0x0;_0x391838<_0x5d7003['length'];_0x391838++){if(_0xfcb836(this,_0x5d7003[_0x391838],_0x5d7003,_0x391838+0x1))return!0x0;}for(let _0x459101=0x0;_0x459101<_0x5d7003['length'];_0x459101++){if(_0xfcb836(this,_0x5d7003[_0x459101],_0x17e58c,0x0))return!0x0;}return!0x1;function _0xfcb836(_0x39e9b8,_0xf19200,_0x535501,_0x4bc108){for(let _0x2bdb06=_0x4bc108;_0x2bdb06<_0x535501['length'];_0x2bdb06++){const _0xe149c1=_0x535501[_0x2bdb06];if(_0xe149c1['type']!==_0xf19200['type']||_0xe149c1['author']['id']!==_0xf19200['author']['id']||_0xe149c1['subType']!==_0xf19200['subType'])continue;if(!Wt(_0xf19200,_0xe149c1))continue;if('attribute'==_0xf19200['type']&&_0xf19200['data']['oldValue']!=_0xe149c1['data']['oldValue'])continue;if('attribute'==_0xf19200['type']&&_0x39e9b8['_isBlockAttribute'](_0xf19200['data']['key']))continue;if('formatBlock'==_0xf19200['type']){const _0x3db307=_0x39e9b8['editor']['model'],_0x12d395=_0xf19200['getContainedElement']();if(_0x12d395&&(_0x3db307['schema']['isObject'](_0x12d395)||_0x3db307['schema']['isLimit'](_0x12d395)))continue;}const _0x4969b7=_0x983bba['get'](_0xf19200),_0x588370=_0x5df130['get'](_0xf19200),_0x389b43=_0x5df130['get'](_0xe149c1),_0x42cdb0=_0xf19200['commentThread']&&_0xf19200['commentThread']['length'],_0x3823da=_0xe149c1['commentThread']&&_0xe149c1['commentThread']['length'];if(!_0x42cdb0&&_0x4969b7(_0x389b43,_0x588370))return _0x39e9b8['_joinSuggestions'](_0xe149c1,_0xf19200),_0x5df130['delete'](_0xf19200),!0x0;if(!_0x3823da&&_0x4969b7(_0x588370,_0x389b43))return _0x39e9b8['_joinSuggestions'](_0xf19200,_0xe149c1),_0x5df130['delete'](_0xe149c1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x319c15,_0x379009){if(_0x319c15['isMultiRange']){for(const _0x15a70c of _0x379009['getRanges']())_0x319c15['addRange'](_0x15a70c);}else{const _0x1868aa=_0x379009['getFirstRange']()['end'];this['_setSuggestionRange'](_0x319c15,this['_model']['createRange'](_0x319c15['getFirstRange']()['start'],_0x1868aa));}_0x379009['removeMarkers']();}['_getMarkerAnnouncementText'](_0x251137,_0x2d43f8,_0x211a32){const _0x3832e9=_0x251137['startsWith']('format')||_0x251137['startsWith']('attribute')?'FORMATTING':_0x251137['toUpperCase']();return o(this['editor']['locale'],_0x2d43f8+'_'+_0x3832e9+'_SUGGESTION_ANNOUNCEMENT',_0x211a32);}['_initAriaMarkerChangeAnnouncements'](){const _0x1ff686=this['editor'];if(!_0x1ff686['ui'])return;const {ariaLiveAnnouncer:_0x3cef71}=_0x1ff686['ui'];_0x1019f3(this['_model'],({left:_0x4f69a4,entered:_0x4c9564})=>{for(const _0x2e4a76 of _0x4f69a4){const {group:_0x2f8254,type:_0x3dcd0d}=this['_splitMarkerName'](_0x2e4a76['name']);if('suggestion'===_0x2f8254){_0x3cef71['announce'](this['_getMarkerAnnouncementText'](_0x3dcd0d,'LEAVE'));break;}}for(const _0x5a9b24 of _0x4c9564){const {group:_0x1c4a6d,type:_0x5434d6}=this['_splitMarkerName'](_0x5a9b24['name']);if('suggestion'===_0x1c4a6d){_0x3cef71['announce'](this['_getMarkerAnnouncementText'](_0x5434d6,'ENTER',_0x5e6a96(_0x2629c9)));break;}}});}['_processAttributeChanges'](_0x40fba8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2bce03=this['editor'],_0x5239ae=_0x2bce03['model']['document']['differ']['getChanges']();if(0x0==_0x5239ae['length'])return!0x1;const _0x588f84=[],_0x513d8e=_0x5239ae['filter'](_0x206cf8=>'attribute'==_0x206cf8['type']),_0x101760=_0x5239ae['filter'](_0x182411=>'insert'==_0x182411['type']&&'$text'!=_0x182411['name']),_0x396326=_0x5239ae['filter'](_0x543422=>'remove'==_0x543422['type']&&'$text'!=_0x543422['name']);for(const _0x22a56c of _0x513d8e)_0x588f84['push']({'key':_0x22a56c['attributeKey'],'newValue':_0x22a56c['attributeNewValue'],'oldValue':_0x22a56c['attributeOldValue'],'range':qt(_0x22a56c['range'],_0x2bce03['model'])});for(const _0x2e2bfe of _0x101760){const _0x154d2e=_0x396326['find'](_0x4cd47d=>_0x4cd47d['position']['isEqual'](_0x2e2bfe['position']));_0x154d2e&&_0x588f84['push']({'key':m,'newValue':_0x2e2bfe['name'],'oldValue':_0x154d2e['name'],'range':_0x2bce03['model']['createRangeOn'](_0x2e2bfe['position']['nodeAfter'])});}return 0x0!=_0x588f84['length']&&this['_reduceExistingSuggestions'](_0x40fba8,_0x588f84);}['_processAttributeSuggestions'](_0x1cf9bc){let _0x49c1ee=!0x1;const _0x2ec8dd=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1d8cc2=>_0x1d8cc2['data']['newRange']&&_0x1d8cc2['name']['startsWith']('suggestion:attribute:'));for(const _0x24aa44 of _0x2ec8dd){const {subType:_0x2053a4,id:_0x375705}=this['_splitMarkerName'](_0x24aa44['name']),_0x5c9540=_0x2053a4['split']('|')[0x0];for(const _0x1ab30c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1ab30c['id']!=_0x375705&&'attribute'==_0x1ab30c['type']&&_0x1ab30c['data']&&_0x1ab30c['data']['key']==_0x5c9540&&_0x1ab30c['getFirstRange']()['isIntersecting'](_0x24aa44['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1ab30c,_0x24aa44['data']['newRange'],_0x1cf9bc),_0x49c1ee=!0x0);}return _0x49c1ee;}['_recordAttributeChanges'](_0x172bd7){this['_recordAttributeSuggestions']=!0x0,_0x172bd7();}['_isRegisteredAttribute'](_0x46bcb5){const _0x37fe24=this['_isBlockAttribute'](_0x46bcb5),_0x4fa42a=this['_inlineAttributeKeys']['has'](_0x46bcb5);return _0x37fe24||_0x4fa42a;}['_reduceExistingSuggestions'](_0x3f3e9f,_0x12905b){if(0x0==_0x12905b['length'])return!0x1;let _0x244898=!0x1;for(const _0x124fcd of _0x12905b){const _0x58ef06=this['_findSuggestions'](_0x124fcd['range'],'attribute')['filter'](_0x33fc1c=>!_0x33fc1c['meta']['isNextTo'])['map'](_0x524405=>_0x524405['suggestion']),_0x685aa6=_0x5d256d({'newValue':_0x124fcd['newValue']});_0x58ef06['filter'](_0x249c66=>{const [_0x18f2d7,_0x2e1fd9]=_0x249c66['subType']['split']('|');return _0x18f2d7==_0x124fcd['key']&&_0x2e1fd9!=_0x685aa6;})['forEach'](_0x48ffaf=>{this['_reduceSuggestionAttributeRange'](_0x48ffaf,_0x124fcd['range'],_0x3f3e9f),_0x244898=!0x0;});}return _0x244898;}['_reduceSuggestionAttributeRange'](_0x230129,_0x5e4e75,_0x5cd2b0){const _0x3263ed=_0x230129['getFirstRange']()['getDifference'](_0x5e4e75);0x0!==_0x3263ed['length']?0x1!==_0x3263ed['length']?this['_breakSuggestionMarker'](_0x230129,_0x5e4e75['start'],_0x5e4e75['end']):this['_setSuggestionRange'](_0x230129,_0x3263ed[0x0]):_0x5cd2b0['removeMarker'](_0x230129['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xc53891){this['_editor']=_0xc53891,this['_model']=_0xc53891['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3acc2a,_0x41b96f,_0x42de7d,_0x28b847,_0x4aa51b,_0x568a3d){return new u(this['_model'],{'type':_0x3acc2a,'subType':_0x41b96f,'id':_0x42de7d,'author':_0x28b847,'creator':_0x28b847,'attributes':_0x4aa51b,'onAttributesChange':_0x568a3d,'onAccept':(..._0x497c43)=>this['getSuggestionCallback'](_0x3acc2a,_0x41b96f,'accept')(..._0x497c43),'onDiscard':(..._0x4c4a6e)=>this['getSuggestionCallback'](_0x3acc2a,_0x41b96f,'discard')(..._0x4c4a6e)});}['registerCustomCallback'](_0x38ee18,_0x3ad8a2,_0x581a1d,_0x20db3b){const _0x4606e2=_0x38ee18+':'+_0x3ad8a2+':'+_0x581a1d;this['_customCallbacks']['set'](_0x4606e2,_0x20db3b);}['getSuggestionCallback'](_0x45ae01,_0x200815,_0x3f5c31){const _0x179f0b=_0x45ae01+':'+_0x200815+':'+_0x3f5c31;return this['_customCallbacks']['get'](_0x179f0b)||this['_defaultCallbacks']['get'](_0x45ae01+':'+_0x3f5c31);}['_registerDefaultCallbacks'](){const _0x458458=()=>!0x1,_0x534cf4=_0x16ee60=>{_0x16ee60['sort']((_0x5e81c0,_0x1e8220)=>_0x5e81c0['start']['isBefore'](_0x1e8220['start'])?0x1:-0x1),this['_model']['change'](_0xd8017c=>{for(const _0x4b3b1d of _0x16ee60){let _0x512772;_0x512772=_0x4b3b1d['end']['isAtEnd']&&_0x4b3b1d['end']['parent']==_0x4b3b1d['start']['nodeAfter']?_0xd8017c['createSelection'](_0x4b3b1d['start']['nodeAfter'],'on'):_0xd8017c['createSelection'](_0x4b3b1d),this['_model']['deleteContent'](_0x512772,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xe9f99e=(_0x133bbe,_0x1a5601)=>{_0x1a5601&&this['_model']['change'](_0x35fc57=>{const {commandName:_0x3c44ed,commandParams:_0x4dd395=[]}=_0x1a5601,_0x3f6793=_0x133bbe['map'](_0x5a0fe3=>(Ft(_0x5a0fe3)&&(_0x5a0fe3=this['_model']['createRange'](_0x5a0fe3['end'])),_0x5a0fe3))['filter'](_0x223fb2=>'$graveyard'!==_0x223fb2['root']['rootName']);if(_0x3f6793['length']<0x1)return;const _0x2c67d5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5ad5ea=>_0x512f92['fromRange'](_0x5ad5ea));_0x35fc57['setSelection'](_0x3f6793);for(const _0x3284a0 of this['_editor']['commands']['commands']())_0x3284a0['refresh']();_0x4dd395['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3c44ed,..._0x4dd395);const _0x5ae22b=_0x2c67d5['filter'](_0x50a251=>'$graveyard'!=_0x50a251['root']['rootName']);_0x5ae22b['length']>0x0&&_0x35fc57['setSelection'](_0x5ae22b);for(const _0x1b2980 of _0x2c67d5)_0x1b2980['detach']();});},_0x7f39cd=(_0x19385f,_0x22e7d9)=>0x1==_0x19385f['length']&&0x1==_0x22e7d9['length']&&_0x19385f[0x0]['end']['isEqual'](_0x22e7d9[0x0]['start']),_0x281ebe=(_0x4e05df,_0x139f90,_0x347c65,_0x423954)=>Kt(_0x4e05df,_0x139f90,_0x347c65,_0x423954)?[_0x4e05df,_0x139f90]:Kt(_0x139f90,_0x4e05df,_0x423954,_0x347c65)?[_0x139f90,_0x4e05df]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x458458),this['_defaultCallbacks']['set']('insertion:discard',_0x534cf4),this['_defaultCallbacks']['set']('insertion:join',_0x7f39cd),this['_defaultCallbacks']['set']('insertion:chain',_0x281ebe),this['_defaultCallbacks']['set']('deletion:accept',_0x534cf4),this['_defaultCallbacks']['set']('deletion:discard',_0x458458),this['_defaultCallbacks']['set']('deletion:join',_0x7f39cd),this['_defaultCallbacks']['set']('deletion:chain',_0x281ebe),this['_defaultCallbacks']['set']('formatInline:accept',_0xe9f99e),this['_defaultCallbacks']['set']('formatInline:discard',_0x458458),this['_defaultCallbacks']['set']('formatInline:join',_0x7f39cd),this['_defaultCallbacks']['set']('formatInline:chain',_0x458458),this['_defaultCallbacks']['set']('formatBlock:accept',_0xe9f99e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x458458),this['_defaultCallbacks']['set']('formatBlock:join',_0x7f39cd),this['_defaultCallbacks']['set']('formatBlock:chain',_0x458458),this['_defaultCallbacks']['set']('attribute:accept',_0x458458),this['_defaultCallbacks']['set']('attribute:discard',(_0x2bc219,_0x335b51)=>{if(!_0x335b51)return;const _0x1db615=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x224cde=>{if(_0x335b51['key']==m)for(const _0x136567 of _0x2bc219){const _0x3af51a=_0x136567['start']['nodeAfter'],_0x3b7ff8=_0x335b51['oldValue'];_0x224cde['rename'](_0x3af51a,_0x3b7ff8);}else{if(_0x1db615['_isBlockAttribute'](_0x335b51['key'])){for(const _0x507f90 of _0x2bc219)void 0x0!==_0x335b51['oldValue']?_0x224cde['setAttribute'](_0x335b51['key'],_0x335b51['oldValue'],_0x507f90['start']['nodeAfter']):_0x224cde['removeAttribute'](_0x335b51['key'],_0x507f90['start']['nodeAfter']);}else{for(const _0x545129 of _0x2bc219)_0x335b51['oldValue']?_0x224cde['setAttribute'](_0x335b51['key'],_0x335b51['oldValue'],_0x545129):_0x224cde['removeAttribute'](_0x335b51['key'],_0x545129);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x7f39cd);}}function Gt(_0x3b1770,_0x292670,_0x466eea){for(const _0x581a28 of _0x292670['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x581a28['root']==_0x581a28)return!0x1;if(!_0x466eea['containsItem'](_0x581a28))return!0x1;if(_0x3b1770['isObject'](_0x581a28)||_0x3b1770['isLimit'](_0x581a28))return!0x0;}return!0x1;}function Ft(_0x11f23f){return _0x11f23f['end']['parent']==_0x11f23f['start']['nodeAfter']&&_0x11f23f['end']['isAtStart'];}function Lt(_0x1deda4,_0x1c8b53,_0x479b76,_0x1fe6b3){const _0x44c605=_0x14f935=>!_0x14f935['item']['is']('$textProxy')&&!_0x1fe6b3['isObject'](_0x14f935['item']),_0x32b4fa=_0x1deda4['start']['getLastMatchingPosition'](_0x44c605),_0x324efc=_0x1deda4['end']['getLastMatchingPosition'](_0x44c605,{'direction':'backward'});return(!_0x1deda4['start']['isEqual'](_0x32b4fa)||!_0x1deda4['end']['isEqual'](_0x324efc))&&(_0x32b4fa['isBefore'](_0x324efc)?_0x479b76['updateMarker'](_0x1c8b53,{'range':_0x479b76['createRange'](_0x32b4fa,_0x324efc)}):_0x479b76['removeMarker'](_0x1c8b53),!0x0);}function Jt(_0x1d405d){return _0x5d256d(_0x1d405d);}function Ht(_0xb05409){const _0xe42708=_0xb05409['start']['nodeAfter'];return _0xe42708&&_0xe42708['is']('element');}function qt(_0x1e3cf5,_0x331e7c){return null==_0x1e3cf5['end']['nodeBefore']&&_0x1e3cf5['end']['parent']==_0x1e3cf5['start']['nodeAfter']?zt(_0x1e3cf5['start']['nodeAfter'],_0x331e7c):_0x1e3cf5;}function zt(_0x5bbb87,_0x47e36d){const _0x46dcd2=_0x47e36d['schema']['isObject'](_0x5bbb87)||_0x47e36d['schema']['isSelectable'](_0x5bbb87);return _0x47e36d['createRange'](_0x47e36d['createPositionAt'](_0x5bbb87,'before'),_0x46dcd2?_0x47e36d['createPositionAfter'](_0x5bbb87):_0x47e36d['createPositionAt'](_0x5bbb87,'end'));}function Kt(_0x146dbc,_0x46a977,_0x3347ef,_0x245928){return!!Wt(_0x146dbc,_0x46a977)&&_0x3347ef['end']['isEqual'](_0x245928['start']);}function Wt(_0x1750a8,_0x3b39d2){if(!_0x1750a8['_isDataLoaded']||!_0x3b39d2['_isDataLoaded'])return!0x1;const _0x41374e=new Set(Object['keys'](_0x1750a8['attributes'])),_0x540e04=new Set(Object['keys'](_0x3b39d2['attributes']));if(_0x41374e['delete']('groupId'),_0x540e04['delete']('groupId'),0x0==_0x41374e['size']&&0x0==_0x540e04['size'])return!0x0;if(_0x41374e['size']!=_0x540e04['size'])return!0x1;const _0x34674a={..._0x1750a8['attributes']},_0x33dc96={..._0x3b39d2['attributes']};return delete _0x34674a['groupId'],delete _0x33dc96['groupId'],JSON['stringify'](_0x34674a)==JSON['stringify'](_0x33dc96);}function Qt(_0xf862b,_0x353c17){const _0xb75b43=Xt(_0xf862b['attributes']),_0x478fd6=Xt(_0x353c17);if(!_0xf862b['_isDataLoaded'])return!0x1;for(const _0x5f18e0 of Object['keys'](_0x478fd6))if(!_0x2deacb(_0xb75b43[_0x5f18e0],_0x478fd6[_0x5f18e0]))return!0x1;return!0x0;}function Xt(_0x3c843a){const _0x2e58eb=Object['assign']({},_0x3c843a);return delete _0x2e58eb['skipNestingCheck'],delete _0x2e58eb['tablePasteChainId'],_0x2e58eb;}class Ce extends/* #__PURE__ -- @preserve */
25
+ _0x46282c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5cee19,_0x2acd6d,_0x45900f,_0x4466c6){super(),this['model']=_0x2acd6d,this['view']=_0x45900f,this['commentThreadController']=_0x4466c6,this['_editor']=_0x5cee19,this['_acceptCommand']=_0x5cee19['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5cee19['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3f765f,_0x46fce9)=>_0x3f765f||_0x46fce9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x14d37c=>_0x14d37c&&this['_editor']['model']['canEditAt'](_0x2acd6d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x596a28=>_0x596a28&&this['_editor']['model']['canEditAt'](_0x2acd6d['getRanges']())),this['_pendingAction']=null,_0x45900f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x45900f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x45900f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x45900f,'change:isDirty',()=>{_0x45900f['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 _0x4bc71e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4bc71e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x2e3b46{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xaa02f1,_0xecec89,_0x39fb39,_0x461926){super(_0xaa02f1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1a4149(_0xaa02f1,o(_0xaa02f1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xecec89['authoredAt']),this['bind']('authoredAt')['to'](_0xecec89),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',_0xecec89,'authoredAt',this,'descriptionParts',(_0x4d350e,_0x3697e2,_0xf1433c)=>{const _0x3a8bba=_0xf1433c['map'](_0x37014c=>cs(_0x37014c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4d350e-0x1,_0xecec89['author']['name'],_0x3697e2?_0x461926['formatDateTime'](_0x3697e2):'',new DOMParser()['parseFromString'](_0x3a8bba,'text/html')['body']['textContent']]);}),this['focusables']=new _0x27fc65(),this['focusTracker']=new _0x46d38e(),this['keystrokes']=new _0xae9dc2(),this['focusCycler']=new _0x34bb61({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1273b2=>_0x1273b2['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xecec89,this['_localUser']=_0x39fb39,this['_config']=_0x461926,_0x461926['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xe50e28(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x685953}=this['_config'];this['commentsListView']=new _0x685953(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',_0x35adc0=>_0x35adc0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x46087e,_0x239b7d)=>_0x46087e||!!_0x239b7d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2ac3a7}=this['_config'],_0x315e87=new _0x2ac3a7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1665e5=_0x315e87['commentInputView'];return _0x315e87['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1665e5,'value',(_0x2bb174,_0x2d516d,_0x336cfb)=>!!_0x336cfb||_0x2bb174&&!_0x2d516d),_0x1665e5['on']('submit',(_0xe926cb,_0x2f26c1)=>{this['fire']('addComment',_0x2f26c1),_0x1665e5['editor']['setData']('');}),_0x1665e5['on']('cancel',()=>this['focus']()),_0x1665e5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x315e87;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x39b48c,_0x5a9b4f,_0x15a93f,_0x3a0729){super(_0x39b48c,_0x5a9b4f,_0x15a93f,_0x3a0729),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5ca88a=>_0x5ca88a&&_0x5ca88a[0x0]?_0x5ca88a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x856a3b,_0x1376a0)=>{let _0x187a17='';for(const _0x1915ee of _0x856a3b)_0x187a17+='<p>'+cs(_0x1915ee['content'],_0x1915ee['color'])+'</p>';return _0x1376a0?_0x187a17:_0x42d3cb(_0x187a17,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3a0729['SuggestionView'](_0x39b48c,_0x5a9b4f,{'formatDateTime':_0x3a0729['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 _0x4bf5c5=this['bindTemplate'],_0x43eec5=[this['suggestionView']];return this['commentsListView']&&_0x43eec5['push'](this['commentsListView']),this['commentThreadInputView']&&_0x43eec5['push'](this['commentThreadInputView']),_0x43eec5['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4bf5c5['if']('isActive','ck-suggestion-wrapper--active'),_0x4bf5c5['to']('type',_0x375ccd=>'ck-suggestion-'+_0x375ccd),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':_0x4bf5c5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x43eec5};}['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 fe extends _0x2e3b46{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x511614,_0x21c669,_0xe7e5e8){super(_0x511614),this['_model']=_0x21c669,this['_config']=_0xe7e5e8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x21c669),this['acceptButton']=this['_createButton'](o(_0x511614,'Accept\x20suggestion'),_0x288ed7['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x511614,'Discard\x20suggestion'),_0x288ed7['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1adf5d(_0x511614,_0x21c669['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x27fc65([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x46d38e(),this['keystrokes']=new _0xae9dc2(),this['focusCycler']=new _0x34bb61({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5a8746=>_0x5a8746['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x520495=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x520495['innerHTML']=this['description'],this['on']('change:description',(_0x3e57a0,_0x6df180,_0x5d4b51)=>{_0x520495['innerHTML']=_0x5d4b51;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x53de2a=this['bindTemplate'],_0x585a57=[{'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':_0x53de2a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x53de2a['to']('authoredAt',_0x2a4dc3=>this['_config']['formatDateTime'](_0x2a4dc3))}]}]},{'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']&&_0x585a57['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':_0x585a57}]};}['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'](_0x3ee3b4,_0xb51c6c,_0x543775,_0x5640af,_0x22320b){const _0x16fc9f=new _0x5c5cc4(this['locale']);return _0x16fc9f['set']({'label':_0x3ee3b4,'icon':_0xb51c6c,'tooltip':!0x0,'tooltipPosition':_0x22320b}),_0x16fc9f['extendTemplate']({'attributes':{'class':_0x543775}}),_0x16fc9f['on']('execute',()=>{this['fire'](_0x5640af,this['_model']['id']);}),_0x16fc9f;}['_setupKeyboardNavigation'](){const _0x521164=this['element'];this['keystrokes']['listenTo'](_0x521164);for(const _0x3ec132 of this['focusables'])this['focusTracker']['add'](_0x3ec132['element']),this['keystrokes']['listenTo'](_0x3ec132['element']);this['keystrokes']['set']('enter',(_0x5213d2,_0x1191b6)=>{_0x521164===_0x5213d2['target']&&(this['focusCycler']['focusFirst'](),_0x1191b6());}),this['keystrokes']['set']('esc',(_0x2946a5,_0x9ed5d8)=>{_0x521164!==_0x2946a5['target']&&(this['focus'](),_0x9ed5d8());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x31ef78{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5679ed,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x579ec3){super(_0x579ec3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1cddc4=this['editor']['config'];_0x1cddc4['define']('trackChanges.SuggestionThreadView',pe),_0x1cddc4['define']('trackChanges.SuggestionView',fe),_0x1cddc4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1cddc4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x561302,_0x11acd3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x446546,_0x481d0c]of this['_handleControllerBuffer']){const _0x45a807=this['_suggestionToController']['has'](_0x446546);_0x45a807||_0x481d0c?_0x45a807&&_0x481d0c&&this['_destroyController'](_0x446546):this['_initializeController'](_0x446546);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x561302,_0x11acd3);}['init'](){const _0x356837=this['editor'],_0x3cbfc4=_0x356837['plugins']['get']('TrackChangesEditing'),_0x2ca83b=_0x356837['plugins']['get']('Annotations'),_0x2d7268=_0x356837['plugins']['get']('EditorAnnotations'),_0x576a5a=_0x356837['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2d7268['addSourceCollector'](()=>{const _0x483111=[];for(const [_0x2b3ff5,_0x592b48]of Array['from'](this['_suggestionToController'])){const _0x2a1341=_0x2b3ff5['getAllAdjacentSuggestions'](),_0x30729e=[];for(const _0x170f89 of _0x2a1341){if(!_0x170f89['isInContent'])continue;if(_0x170f89['isMultiRange']){_0x30729e['push'](..._0x170f89['getRanges']());continue;}const _0x36e59f=_0x170f89['getFirstRange']();if(_0x30729e['length']>0x0){const _0x2cf7b4=_0x30729e[0x0]['getJoined'](_0x36e59f);if(_0x2cf7b4){_0x30729e[0x0]=_0x2cf7b4;continue;}}_0x30729e['push'](_0x36e59f);}_0x483111['push']([_0x592b48['view'],_0x30729e]);}return _0x483111;}),this['listenTo'](_0x3cbfc4,'suggestionLoaded',(_0x294930,_0x350a85)=>{this['listenTo'](_0x350a85,'change:previous',(_0x2a9694,_0x266ed9,_0x2dca46,_0xb7d23f)=>{_0x350a85['isInContent']&&(null==_0x2dca46?(this['_updateController'](_0xb7d23f['head']),this['_handleSuggestionControllerDelayed'](_0x350a85,!0x1)):(this['_updateController'](_0x2dca46['head']),null==_0xb7d23f&&this['_handleSuggestionControllerDelayed'](_0x350a85,!0x0)));}),null!==_0x350a85['previous']?this['_updateController'](_0x350a85['head']):this['_handleSuggestionControllerDelayed'](_0x350a85,!0x1);}),this['listenTo'](_0x3cbfc4,'suggestionUnloaded',(_0x22d328,_0x17d5ba,_0x5093ee)=>{this['stopListening'](_0x17d5ba,'change:previous'),this['_handleControllerBuffer']['delete'](_0x17d5ba),this['_suggestionToController']['has'](_0x17d5ba)&&this['_destroyController'](_0x17d5ba),_0x5093ee&&this['_updateController'](_0x5093ee['head']);}),this['listenTo'](_0x3cbfc4,'suggestionChanged',(_0x51c5c8,_0x291e5d)=>{this['_updateController'](_0x291e5d);}),this['listenTo'](_0x2ca83b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x576a5a,'addComment',(_0x582b51,{threadId:_0x1f8127,isFromAdapter:_0x254678})=>{if(_0x254678||!_0x3cbfc4['hasSuggestion'](_0x1f8127))return;const _0x1e7593=_0x3cbfc4['getSuggestion'](_0x1f8127);this['_suggestionToController']['get'](_0x1e7593)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3b87ad=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3cc7b2;for(const _0x5a2e92 in _0x3b87ad){const _0x2897e9=_0x5a2e92,_0x9647a5=_0x3b87ad[_0x2897e9];if('trackChangesLicenseKeyValid'==_0x9647a5||'trackChangesLicenseKeyInvalid'==_0x9647a5||'trackChangesLicenseKeyExpired'==_0x9647a5||'trackChangesLicenseKeyDomainLimit'==_0x9647a5||'trackChangesLicenseKeyNotAllowed'==_0x9647a5||'trackChangesLicenseKeyEvaluationLimit'==_0x9647a5||'trackChangesLicenseKeyTrialLimit'==_0x9647a5||'trackChangesLicenseKeyUsageLimit'==_0x9647a5){delete _0x3b87ad[_0x2897e9],_0x3cc7b2=_0x9647a5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3cc7b2&&_0x3b87ad['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3cc7b2&&_0x3b87ad['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3cc7b2&&_0x3b87ad['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3cc7b2&&_0x3b87ad['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3cc7b2&&_0x3b87ad['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3cc7b2&&_0x3b87ad['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3cc7b2&&_0x3b87ad['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x189a60=this['editor']['plugins']['get']('Annotations'),_0x5b838a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x423f4b=Array['from'](_0x189a60['activeAnnotations'],_0x9ac2ee=>_0x9ac2ee['innerView'])['filter'](_0xef6e8a=>this['_viewToController']['has'](_0xef6e8a)),_0x294618=[];for(const _0x552ff3 of _0x423f4b){const _0x86fca2=this['_viewToController']['get'](_0x552ff3)['model']['getAllAdjacentSuggestions']();_0x294618['push'](..._0x86fca2['reduce']((_0x17b0b2,_0x527e9d)=>[..._0x17b0b2,..._0x527e9d['getMarkerNames']()],[]));}_0x5b838a['activeMarkers']=_0x294618;}['_addUIComponentsToFactory'](){const _0x1ccda0=this['editor'],_0x3a09e8=_0x1ccda0['locale'],_0x4b7e0e=o(_0x3a09e8,'Track\x20changes'),_0x1b98f2=new _0x11e5e0([{'type':'switchbutton','model':new _0x4f3a9a({'withText':!0x0,'isToggleable':!0x0,'label':_0x4b7e0e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4f3a9a({'withText':!0x0,'label':o(_0x3a09e8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4f3a9a({'withText':!0x0,'label':o(_0x3a09e8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4f3a9a({'withText':!0x0,'label':o(_0x3a09e8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4f3a9a({'withText':!0x0,'label':o(_0x3a09e8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1ccda0['plugins']['has']('TrackChangesPreview')&&_0x1b98f2['addMany']([{'type':'separator'},{'type':'button','model':new _0x4f3a9a({'withText':!0x0,'label':o(_0x3a09e8,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x385bab of _0x1b98f2)if(ke(_0x385bab)){const _0x1c008e=_0x1ccda0['commands']['get'](_0x385bab['model']['commandName']);_0x385bab['model']['bind']('isOn','isEnabled')['to'](_0x1c008e,'value','isEnabled');}_0x1ccda0['ui']['componentFactory']['add']('trackChanges',_0x784d9f=>this['_createToolbarButton'](_0x784d9f,_0x1b98f2,_0x4b7e0e)),_0x1ccda0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x49ca39=>this['_createMenuBarMenu'](_0x49ca39,_0x1b98f2,_0x4b7e0e));}['_createToolbarButton'](_0x47c6e5,_0x3263de,_0x44c0a6){const _0x10eca0=_0x1592d1(_0x47c6e5,_0x5b1b6a),_0x1d16aa=this['editor']['commands']['get']('trackChanges');_0x10eca0['buttonView']['set']({'tooltip':_0x44c0a6,'label':_0x44c0a6,'icon':we}),_0x10eca0['buttonView']['bind']('isOn')['to'](_0x1d16aa,'value'),_0x10eca0['buttonView']['on']('execute',()=>{_0x1d16aa['execute'](),this['editor']['editing']['view']['focus']();}),_0x18de6c(_0x10eca0,_0x3263de,{'role':'menu'});const _0x53efc9=[];for(const _0x16a8ea of _0x3263de)ke(_0x16a8ea)&&_0x53efc9['push'](this['editor']['commands']['get'](_0x16a8ea['model']['commandName']));const _0xe9c441=_0x10eca0['buttonView'];return _0xe9c441['actionView']['unbind']('isEnabled'),_0xe9c441['arrowView']['unbind']('isEnabled'),_0xe9c441['actionView']['bind']('isEnabled')['to'](_0x1d16aa,'isEnabled'),_0xe9c441['arrowView']['bind']('isEnabled')['toMany'](_0x53efc9,'isEnabled',(..._0xe613a4)=>_0xe613a4['some'](_0x481d8a=>_0x481d8a)),_0x10eca0['on']('execute',_0x137831=>{this['editor']['execute'](_0x137831['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x10eca0;}['_createMenuBarMenu'](_0x33ee35,_0x1a1cdc,_0xdb86b1){const _0x148278=new _0x32e87f(_0x33ee35),_0x100d3a=this['editor']['commands']['get']('trackChanges');_0x148278['buttonView']['set']({'label':_0xdb86b1,'icon':we});const _0x3d5171=new _0x2b0ae8(_0x33ee35);for(const _0x9e29dc of _0x1a1cdc){if('separator'==_0x9e29dc['type']){_0x3d5171['items']['add'](new _0x485996(_0x33ee35));continue;}const _0x1ccc4b=new _0x1b0316(_0x33ee35,_0x148278),_0x386bf2=new _0x582f64(_0x33ee35),_0x35c585=_0x9e29dc['model'];_0x386bf2['bind'](...Object['keys'](_0x35c585))['to'](_0x35c585),_0x386bf2['delegate']('execute')['to'](_0x148278),_0x386bf2['on']('execute',()=>{this['editor']['execute'](_0x35c585['commandName']),this['editor']['editing']['view']['focus']();}),_0x1ccc4b['children']['add'](_0x386bf2),_0x3d5171['items']['add'](_0x1ccc4b);}return _0x148278['bind']('isEnabled')['to'](_0x100d3a,'isEnabled'),_0x148278['panelView']['children']['add'](_0x3d5171),_0x148278;}['_initializeController'](_0x58d6a7){const _0x5cd6a0=this['editor'],_0x2bd78c=_0x5cd6a0['config'],_0x4d6f55=_0x5cd6a0['plugins']['get']('Annotations'),_0x5ac968=_0x5cd6a0['plugins']['get']('CommentsRepository'),_0x46f006=_0x5cd6a0['plugins']['get']('EditorAnnotations'),_0x360adf=_0x5cd6a0['plugins']['get'](_0x5679ed)['me'],_0x15d3e7=_0x2bd78c['get']('trackChanges')['SuggestionThreadView'],_0x4071f3=_0x2bd78c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x557952,CommentThreadInputView:_0xf5d8dd}=_0x5cd6a0['plugins']['get']('CommentsUI');let _0x5b9624,_0x274a43,_0x10454a;this['_annotationViews']['has'](_0x58d6a7['id'])?(_0x274a43=this['_annotationViews']['get'](_0x58d6a7['id']),_0x5b9624=_0x274a43['mainView']):(_0x5b9624=new _0x15d3e7(_0x5cd6a0['locale'],_0x58d6a7,_0x360adf,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2bd78c['get']('comments.editorConfig'),'licenseKey':_0x2bd78c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2bd78c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2bd78c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2bd78c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x494fed(_0x2bd78c['get']('locale')),'CommentView':_0x2bd78c['get']('comments')['CommentView'],'CommentsListView':_0x557952,'CommentThreadInputView':_0xf5d8dd,'SuggestionView':_0x4071f3}),_0x5b9624['suggestionView']['acceptButton']['on']('execute',()=>{_0x5cd6a0['editing']['view']['focus']();}),_0x5b9624['suggestionView']['discardButton']['on']('execute',()=>{_0x5cd6a0['editing']['view']['focus']();}),_0x274a43=_0x4d6f55['createAnnotationView'](this['editor']['locale'],_0x5b9624),_0x274a43['bind']('isDirty')['to'](_0x5b9624,'isDirty'),_0x274a43['bind']('length')['to'](_0x5b9624),_0x274a43['bind']('type')['to'](_0x5b9624,'type',_0x56ad9c=>'suggestion-'+_0x56ad9c),_0x5b9624['on']('escape',()=>{_0x10454a['fire']('escape');}),this['_annotationViews']['set'](_0x58d6a7['id'],_0x274a43));const _0x25c2b3=_0x5ac968['createCommentThreadController'](_0x58d6a7['commentThread'],_0x5b9624),_0x488217=new Ce(_0x5cd6a0,_0x58d6a7,_0x5b9624,_0x25c2b3),_0x559a15=_0x58d6a7['getAllAdjacentSuggestions']()['filter'](_0x4589cf=>_0x4589cf['isInContent']);_0x5b9624['descriptionParts']=_0x5cd6a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x559a15),this['_suggestionToController']['set'](_0x58d6a7,_0x488217),this['_viewToController']['set'](_0x5b9624,_0x488217),_0x10454a=_0x4d6f55['createAnnotation']({'view':_0x274a43,'target':()=>{const _0x21a303=[],_0x4d499a=_0x58d6a7['getAllAdjacentSuggestions']()['filter'](_0x3d0491=>_0x3d0491['isInContent']);for(const _0x425d01 of _0x4d499a)_0x21a303['push'](..._0x425d01['getMarkers']());return _0x35e003(_0x5cd6a0['editing'],_0x21a303);},'type':()=>'suggestion-'+_0x488217['view']['type']}),_0x5ac968['_bindAnnotationToEditors'](_0x5b9624,_0x10454a),_0x4d6f55['add'](_0x10454a),_0x46f006['registerAnnotation'](_0x10454a);}['_destroyController'](_0x5064a3){const _0x5bd573=this['editor']['plugins']['get']('CommentsRepository'),_0x568964=this['editor']['plugins']['get']('Annotations'),_0x12c104=this['_suggestionToController']['get'](_0x5064a3),_0x20fd8d=_0x12c104['view'],_0x2e86f7=_0x568964['getByInnerView'](_0x20fd8d);_0x5bd573['_unbindEditors'](_0x20fd8d),_0x2e86f7&&_0x568964['remove'](_0x2e86f7),this['_suggestionToController']['delete'](_0x5064a3),this['_viewToController']['delete'](_0x20fd8d),_0x12c104['destroy']();}['_updateController'](_0x937629){if(!_0x937629['isInContent']||!this['_suggestionToController']['has'](_0x937629))return;const _0x5a2044=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34a87a=this['_suggestionToController']['get'](_0x937629),_0x38a63c=_0x937629['getAllAdjacentSuggestions']();_0x34a87a['view']['descriptionParts']=_0x5a2044['descriptionFactory']['getDescriptions'](_0x38a63c);}['destroy'](){for(const _0x2c2f21 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2c2f21);for(const _0x18e30b of this['_annotationViews']['values']())_0x18e30b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x32ce52){return'model'in _0x32ce52;}class k extends _0x31ef78{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x58e7db){this['editor']['plugins']['get'](p)['adapter']=_0x58e7db;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x465407){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x465407);}['getSuggestions']({skipNotAttached:_0x23a510=!0x1,toJSON:_0xfce85e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x23a510,'toJSON':_0xfce85e});}['getSuggestion'](_0x211c3b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x211c3b);}}const w=['Pagination'];class T extends _0x31ef78{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x21554c=this['editor'];if(_0x21554c['config']['define']('trackChangesData.editorCreator',_0x1891e0=>{const _0xecfa2c=_0x21554c['model']['document']['getRootNames']()['reduce']((_0xa9e13b,_0x11858d)=>(_0xa9e13b[_0x11858d]='',_0xa9e13b),{});return _0x21554c['constructor']['create'](_0xecfa2c,_0x1891e0);}),'function'!=typeof _0x21554c['config']['get']('trackChangesData')['editorCreator'])throw new _0x1b7c5d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x591384){return N(this['editor'],!0x0,_0x591384);}['getDataWithDiscardedSuggestions'](_0x1e15cd){return N(this['editor'],!0x1,_0x1e15cd);}}class D extends _0x31ef78{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd29ea1){function _0xc53230(_0x2464c4){return _0x2464c4['map'](_0x138f16=>String['fromCharCode'](_0x138f16))['join']('');}super(_0xd29ea1),this['result']='end',_0xd29ea1[_0xc53230([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc53230([0x76,0x69,0x65,0x77])][_0xc53230([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc53230([0x61,0x75,0x74,0x6f]),_0xd29ea1[_0xc53230([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xc53230([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc53230([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xc53230([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xc53230([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 Fe(_0x285c49){return void 0x0!==_0x285c49['getRootsAttributes'];}async function N(_0x209ced,_0x37487d,_0x362c7c){const _0x2b2720=_0x560943(_0x209ced,w);_0x2b2720['plugins']['push'](p,D),_0x2b2720['rootsAttributes']=Fe(_0x209ced)?_0x209ced['getRootsAttributes']():void 0x0;const _0x57e678=document['createDocumentFragment'](),_0x48f154=_0x209ced['config']['get']('trackChangesData')['editorCreator'],_0x581750=await _0x48f154(_0x2b2720,()=>function(_0x5e485d){const _0x440c6f=document['createElement']('div');return _0x5e485d['appendChild'](_0x440c6f),_0x440c6f;}(_0x57e678));!function(_0x2d34b6,_0x4b176c){const _0xa26965=_0x2d34b6['model']['document']['getRootNames']()['reduce']((_0x2d58f5,_0x595953)=>(_0x2d58f5[_0x595953]=_0x2d34b6['data']['get']({'rootName':_0x595953}),_0x2d58f5),{}),_0x455290=_0x2d34b6['plugins']['get']('Users')['users']['map'](_0x599f42=>({'id':_0x599f42['id'],'name':_0x599f42['name']})),_0x592f9f=_0x2d34b6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x557848=_0x2d34b6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x30e92f=_0x4b176c['plugins']['get']('Users'),_0x47ecfc=_0x4b176c['plugins']['get']('TrackChangesEditing'),_0x4d437a=_0x4b176c['plugins']['get']('CommentsRepository');for(const _0x3c43a8 of _0x4d437a['getCommentThreads']())_0x3c43a8['remove']();for(const _0xfb2296 of _0x455290)_0x30e92f['getUser'](_0xfb2296['id'])||_0x30e92f['addUser'](_0xfb2296);_0x30e92f['me']||_0x30e92f['useAnonymousUser']();for(const _0x38294d of _0x557848)_0x4d437a['addCommentThread'](_0x38294d);for(const _0x9f6740 of _0x592f9f)_0x47ecfc['addSuggestionData'](_0x9f6740);_0x4b176c['data']['set'](_0xa26965);}(_0x209ced,_0x581750),_0x581750['execute'](_0x37487d?'acceptAllSuggestions':'discardAllSuggestions');const _0x2f7df2=Fe(_0x581750)?_0x581750['getFullData'](_0x362c7c):_0x581750['data']['get'](_0x362c7c);return await _0x581750['destroy'](),_0x2f7df2;}class Me extends _0x2e3b46{['options'];constructor(_0x4a5dc4,_0x3c802f){super(_0x4a5dc4),this['options']=_0x3c802f,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'](_0x1c8334,_0x14fbe5){if(!this['element'])return;const _0x5eac73=[];for(const [_0x370917,_0x21cbe0]of _0x1c8334){const _0x76f279=document['createElement']('div');_0x76f279['setAttribute']('data-ck-root-name',_0x370917),_0x76f279['className']=_0x21cbe0['classes']+'\x20ck-track-changes-preview__root-container',_0x76f279['innerHTML']=_0x21cbe0['content'],_0x5eac73['push'](_0x76f279);}_0x14fbe5(this['element'],_0x5eac73),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x15746f){super(_0x15746f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x118d41=this['editor'],_0x591778=_0x118d41['locale'],_0x4ce6a4=_0x118d41['plugins']['get']('Dialog');let _0x1ff6ba;const _0xe353a7=function(_0x2b6c35){const _0x4056b2={};if('editables'in _0x2b6c35['ui']['view']){for(const [_0x37b49b,_0x3689df]of Object['entries'](_0x2b6c35['ui']['view']['editables']))_0x4056b2[_0x37b49b]=_0x3689df['element'];}else _0x4056b2[_0x2b6c35['model']['document']['getRootNames']()[0x0]]=_0x2b6c35['ui']['view']['editable']['element'];return _0x4056b2;}(_0x118d41),_0x3c8da1=function(_0x3df1d5){let _0x545e28=0x0;for(const _0xe2f8d9 of Object['values'](_0x3df1d5))_0x545e28=Math['max'](_0x545e28,_0xe2f8d9['getBoundingClientRect']()['width']);let _0x25e2e2=0x0;for(const _0x2d117f of Object['values'](_0x3df1d5))_0x25e2e2+=_0x2d117f['getBoundingClientRect']()['height'];const _0x36fba8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5bf368=Math['min'](_0x25e2e2,_0x36fba8);return{'width':_0x545e28,'height':_0x5bf368};}(_0xe353a7);_0x4ce6a4['show']({'id':'finalContentPreview','title':o(_0x591778,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x591778,{'dialogRects':_0x3c8da1}),'onHide':()=>{_0x1ff6ba['detachFromDom']();},'onShow':()=>{_0x118d41['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2b5375=>{const _0x2349bc=this['_standarizeRootsData'](_0x2b5375,_0x118d41,_0xe353a7);_0x4ce6a4['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2349bc,_0x118d41['config']['get']('trackChanges.preview.renderFunction'));}),_0x1ff6ba=new _0x1a6e81(_0x591778,[_0x4ce6a4['view']]),_0x1ff6ba['attachToDom'](),_0x1ff6ba['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x118d41['once']('destroy',()=>{_0x1ff6ba['detachFromDom']();});const _0x4881f2=_0x4ce6a4['view']['headerView']['class'];_0x4ce6a4['view']['headerView']['class']=_0x4881f2?_0x4881f2+'\x20ck-reset_all':'ck-reset_all',_0x4ce6a4['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4ce6a4['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x471cbf=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x35353a=_0x471cbf['previewMode'],_0x24b7b5={};if('$labels'===_0x35353a){for(const _0xdcd10e of _0x471cbf['getMergeFieldsIds']())_0x24b7b5[_0xdcd10e]=_0x471cbf['getLabel'](_0xdcd10e)||_0xdcd10e;}else{const _0x241989='$defaultValues'===_0x35353a?_0x471cbf['getDefaultValues']():_0x471cbf['getDataSetValues'](_0x35353a,!0x0);for(const _0x2a4c8f of Object['entries'](_0x241989)){const [_0x1dfdea,_0x34b82d]=_0x2a4c8f;_0x24b7b5[_0x1dfdea]=null!==_0x34b82d?_0x34b82d:_0x471cbf['getLabel'](_0x1dfdea)||_0x1dfdea;}}return{'mergeFieldsData':_0x24b7b5};}['_standarizeRootsData'](_0x18149a,_0x42c3ac,_0x1ab75b){let _0x44607d;if('string'==typeof _0x18149a){const _0x52a59e=_0x42c3ac['model']['document']['getRootNames']()[0x0];_0x44607d={[_0x52a59e]:_0x18149a};}else _0x44607d=_0x18149a;const _0x508e05=this['_fixMediaEmbeds'](_0x44607d,_0x42c3ac),_0x599fe7=function(_0x58834e,_0x378d51){for(const [_0x45d1e9,_0x177c55]of _0x58834e)_0x177c55['classes']=_0x378d51[_0x45d1e9]['classList']['value']['replace']('ck-focused','');return _0x58834e;}(this['_sortRoots'](_0x42c3ac)['reduce']((_0x2d9d61,_0x306bd5)=>(_0x2d9d61['push']([_0x306bd5,{'content':_0x508e05[_0x306bd5],'classes':''}]),_0x2d9d61),[]),_0x1ab75b);return _0x599fe7;}['_fixMediaEmbeds'](_0x3d29f9,_0x4be8b4){if(!_0x4be8b4['plugins']['has']('MediaEmbedEditing'))return _0x3d29f9;const _0x1b3e70=_0x4be8b4['plugins']['get']('MediaEmbedEditing');for(const [_0xf60cf5,_0x15f036]of Object['entries'](_0x3d29f9)){const _0x20d9fa=document['createElement']('div');_0x20d9fa['innerHTML']=_0x15f036,(_0x20d9fa['querySelectorAll']('figure.media')['forEach'](_0x2fd96b=>{const _0x1000cd=_0x2fd96b['querySelector']('oembed');if(_0x1000cd){const _0x198926=_0x1000cd['getAttribute']('url');if(_0x198926){const _0x34b443=_0x1b3e70['registry']['getMediaViewElement'](new _0x3b179f(_0x4be8b4['editing']['view']['document']),_0x198926,{'elementName':'','renderForEditingView':!0x0}),_0x289e7a=document['createElement']('div');_0x289e7a['classList']['add']('ck-media__wrapper'),_0x34b443['render'](_0x289e7a,_0x4be8b4['editing']['view']['domConverter']),_0x1000cd['replaceWith'](_0x289e7a);}}}),_0x3d29f9[_0xf60cf5]=_0x20d9fa['innerHTML']);}return _0x3d29f9;}['_sortRoots'](_0x1bb431){if(!function(_0x41bd00){return void 0x0!==_0x41bd00['getRootsAttributes'];}(_0x1bb431))return _0x1bb431['model']['document']['getRootNames']();const _0x5b34e3=[],_0x3a80f9=new Map();for(const _0x35a1e4 of _0x1bb431['model']['document']['getRootNames']()){const _0x1990ec=_0x1bb431['editing']['view']['getDomRoot'](_0x35a1e4)['getClientRects']()['item'](0x0);_0x5b34e3['push'](_0x35a1e4),_0x3a80f9['set'](_0x35a1e4,_0x1990ec);}return _0x5b34e3['sort']((_0xf0b151,_0x55851c)=>{const _0x4386dc=_0x3a80f9['get'](_0xf0b151),_0x1dacdd=_0x3a80f9['get'](_0x55851c);return _0x4386dc['y']-_0x1dacdd['y']||_0x4386dc['x']-_0x1dacdd['x'];}),_0x5b34e3;}}class te extends _0x31ef78{static get['requires'](){return[T,_0x51f22f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d3bf1){super(_0x5d3bf1),_0x5d3bf1['commands']['add']('previewFinalContent',new re(this['editor'])),_0x5d3bf1['config']['define']('trackChanges.preview.renderFunction',(_0x4021f7,_0x16a4e3)=>{for(const _0x308575 of _0x16a4e3)_0x4021f7['appendChild'](_0x308575);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};