@ckeditor/ckeditor5-track-changes 47.4.0-alpha.0 → 47.4.0-alpha.2

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 (306) 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 +4 -4
  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/be.js +1 -1
  50. package/dist/translations/be.umd.js +1 -1
  51. package/dist/translations/bg.js +1 -1
  52. package/dist/translations/bg.umd.js +1 -1
  53. package/dist/translations/bn.js +1 -1
  54. package/dist/translations/bn.umd.js +1 -1
  55. package/dist/translations/bs.js +1 -1
  56. package/dist/translations/bs.umd.js +1 -1
  57. package/dist/translations/ca.js +1 -1
  58. package/dist/translations/ca.umd.js +1 -1
  59. package/dist/translations/cs.js +1 -1
  60. package/dist/translations/cs.umd.js +1 -1
  61. package/dist/translations/da.js +1 -1
  62. package/dist/translations/da.umd.js +1 -1
  63. package/dist/translations/de-ch.js +1 -1
  64. package/dist/translations/de-ch.umd.js +1 -1
  65. package/dist/translations/de.js +1 -1
  66. package/dist/translations/de.umd.js +1 -1
  67. package/dist/translations/el.js +1 -1
  68. package/dist/translations/el.umd.js +1 -1
  69. package/dist/translations/en-au.js +1 -1
  70. package/dist/translations/en-au.umd.js +1 -1
  71. package/dist/translations/en-gb.js +1 -1
  72. package/dist/translations/en-gb.umd.js +1 -1
  73. package/dist/translations/en.js +1 -1
  74. package/dist/translations/en.umd.js +1 -1
  75. package/dist/translations/eo.js +1 -1
  76. package/dist/translations/eo.umd.js +1 -1
  77. package/dist/translations/es-co.js +1 -1
  78. package/dist/translations/es-co.umd.js +1 -1
  79. package/dist/translations/es.js +1 -1
  80. package/dist/translations/es.umd.js +1 -1
  81. package/dist/translations/et.js +1 -1
  82. package/dist/translations/et.umd.js +1 -1
  83. package/dist/translations/eu.js +1 -1
  84. package/dist/translations/eu.umd.js +1 -1
  85. package/dist/translations/fa.js +1 -1
  86. package/dist/translations/fa.umd.js +1 -1
  87. package/dist/translations/fi.js +1 -1
  88. package/dist/translations/fi.umd.js +1 -1
  89. package/dist/translations/fr.js +1 -1
  90. package/dist/translations/fr.umd.js +1 -1
  91. package/dist/translations/gl.js +1 -1
  92. package/dist/translations/gl.umd.js +1 -1
  93. package/dist/translations/gu.js +1 -1
  94. package/dist/translations/gu.umd.js +1 -1
  95. package/dist/translations/he.js +1 -1
  96. package/dist/translations/he.umd.js +1 -1
  97. package/dist/translations/hi.js +1 -1
  98. package/dist/translations/hi.umd.js +1 -1
  99. package/dist/translations/hr.js +1 -1
  100. package/dist/translations/hr.umd.js +1 -1
  101. package/dist/translations/hu.js +1 -1
  102. package/dist/translations/hu.umd.js +1 -1
  103. package/dist/translations/hy.js +1 -1
  104. package/dist/translations/hy.umd.js +1 -1
  105. package/dist/translations/id.js +1 -1
  106. package/dist/translations/id.umd.js +1 -1
  107. package/dist/translations/it.js +1 -1
  108. package/dist/translations/it.umd.js +1 -1
  109. package/dist/translations/ja.js +1 -1
  110. package/dist/translations/ja.umd.js +1 -1
  111. package/dist/translations/jv.js +1 -1
  112. package/dist/translations/jv.umd.js +1 -1
  113. package/dist/translations/kk.js +1 -1
  114. package/dist/translations/kk.umd.js +1 -1
  115. package/dist/translations/km.js +1 -1
  116. package/dist/translations/km.umd.js +1 -1
  117. package/dist/translations/kn.js +1 -1
  118. package/dist/translations/kn.umd.js +1 -1
  119. package/dist/translations/ko.js +1 -1
  120. package/dist/translations/ko.umd.js +1 -1
  121. package/dist/translations/ku.js +1 -1
  122. package/dist/translations/ku.umd.js +1 -1
  123. package/dist/translations/lt.js +1 -1
  124. package/dist/translations/lt.umd.js +1 -1
  125. package/dist/translations/lv.js +1 -1
  126. package/dist/translations/lv.umd.js +1 -1
  127. package/dist/translations/ms.js +1 -1
  128. package/dist/translations/ms.umd.js +1 -1
  129. package/dist/translations/nb.js +1 -1
  130. package/dist/translations/nb.umd.js +1 -1
  131. package/dist/translations/ne.js +1 -1
  132. package/dist/translations/ne.umd.js +1 -1
  133. package/dist/translations/nl.js +1 -1
  134. package/dist/translations/nl.umd.js +1 -1
  135. package/dist/translations/no.js +1 -1
  136. package/dist/translations/no.umd.js +1 -1
  137. package/dist/translations/oc.js +1 -1
  138. package/dist/translations/oc.umd.js +1 -1
  139. package/dist/translations/pl.js +1 -1
  140. package/dist/translations/pl.umd.js +1 -1
  141. package/dist/translations/pt-br.js +1 -1
  142. package/dist/translations/pt-br.umd.js +1 -1
  143. package/dist/translations/pt.js +1 -1
  144. package/dist/translations/pt.umd.js +1 -1
  145. package/dist/translations/ro.js +1 -1
  146. package/dist/translations/ro.umd.js +1 -1
  147. package/dist/translations/ru.js +1 -1
  148. package/dist/translations/ru.umd.js +1 -1
  149. package/dist/translations/si.js +1 -1
  150. package/dist/translations/si.umd.js +1 -1
  151. package/dist/translations/sk.js +1 -1
  152. package/dist/translations/sk.umd.js +1 -1
  153. package/dist/translations/sl.js +1 -1
  154. package/dist/translations/sl.umd.js +1 -1
  155. package/dist/translations/sq.js +1 -1
  156. package/dist/translations/sq.umd.js +1 -1
  157. package/dist/translations/sr-latn.js +1 -1
  158. package/dist/translations/sr-latn.umd.js +1 -1
  159. package/dist/translations/sr.js +1 -1
  160. package/dist/translations/sr.umd.js +1 -1
  161. package/dist/translations/sv.js +1 -1
  162. package/dist/translations/sv.umd.js +1 -1
  163. package/dist/translations/th.js +1 -1
  164. package/dist/translations/th.umd.js +1 -1
  165. package/dist/translations/ti.js +1 -1
  166. package/dist/translations/ti.umd.js +1 -1
  167. package/dist/translations/tk.js +1 -1
  168. package/dist/translations/tk.umd.js +1 -1
  169. package/dist/translations/tr.js +1 -1
  170. package/dist/translations/tr.umd.js +1 -1
  171. package/dist/translations/tt.js +1 -1
  172. package/dist/translations/tt.umd.js +1 -1
  173. package/dist/translations/ug.js +1 -1
  174. package/dist/translations/ug.umd.js +1 -1
  175. package/dist/translations/uk.js +1 -1
  176. package/dist/translations/uk.umd.js +1 -1
  177. package/dist/translations/ur.js +1 -1
  178. package/dist/translations/ur.umd.js +1 -1
  179. package/dist/translations/uz.js +1 -1
  180. package/dist/translations/uz.umd.js +1 -1
  181. package/dist/translations/vi.js +1 -1
  182. package/dist/translations/vi.umd.js +1 -1
  183. package/dist/translations/zh-cn.js +1 -1
  184. package/dist/translations/zh-cn.umd.js +1 -1
  185. package/dist/translations/zh.js +1 -1
  186. package/dist/translations/zh.umd.js +1 -1
  187. package/lang/translations/ar.po +1 -1
  188. package/lang/translations/bg.po +1 -1
  189. package/lang/translations/bn.po +1 -1
  190. package/lang/translations/ca.po +1 -1
  191. package/lang/translations/cs.po +1 -1
  192. package/lang/translations/da.po +1 -1
  193. package/lang/translations/de.po +1 -1
  194. package/lang/translations/el.po +1 -1
  195. package/lang/translations/es.po +1 -1
  196. package/lang/translations/et.po +1 -1
  197. package/lang/translations/fi.po +1 -1
  198. package/lang/translations/fr.po +1 -1
  199. package/lang/translations/he.po +1 -1
  200. package/lang/translations/hi.po +1 -1
  201. package/lang/translations/hu.po +1 -1
  202. package/lang/translations/id.po +1 -1
  203. package/lang/translations/it.po +1 -1
  204. package/lang/translations/ja.po +1 -1
  205. package/lang/translations/ko.po +1 -1
  206. package/lang/translations/lt.po +1 -1
  207. package/lang/translations/lv.po +1 -1
  208. package/lang/translations/ms.po +1 -1
  209. package/lang/translations/nl.po +1 -1
  210. package/lang/translations/no.po +1 -1
  211. package/lang/translations/pl.po +1 -1
  212. package/lang/translations/pt-br.po +1 -1
  213. package/lang/translations/pt.po +1 -1
  214. package/lang/translations/ro.po +1 -1
  215. package/lang/translations/ru.po +1 -1
  216. package/lang/translations/sk.po +1 -1
  217. package/lang/translations/sr.po +1 -1
  218. package/lang/translations/sv.po +1 -1
  219. package/lang/translations/th.po +1 -1
  220. package/lang/translations/tr.po +1 -1
  221. package/lang/translations/uk.po +1 -1
  222. package/lang/translations/vi.po +1 -1
  223. package/lang/translations/zh-cn.po +1 -1
  224. package/lang/translations/zh.po +1 -1
  225. package/package.json +27 -27
  226. package/src/commands/acceptsuggestioncommand.js +1 -1
  227. package/src/commands/discardsuggestioncommand.js +1 -1
  228. package/src/commands/executeonallsuggestionscommand.js +1 -1
  229. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  230. package/src/commands/previewfinalcontentcommand.js +1 -1
  231. package/src/commands/trackchangescommand.js +1 -1
  232. package/src/index.js +1 -1
  233. package/src/integrations/ai.js +1 -1
  234. package/src/integrations/aiassistant.js +1 -1
  235. package/src/integrations/aiquickactions.js +1 -1
  236. package/src/integrations/alignment.js +1 -1
  237. package/src/integrations/basicstyles.js +1 -1
  238. package/src/integrations/blockquote.js +1 -1
  239. package/src/integrations/bookmark.js +1 -1
  240. package/src/integrations/casechange.js +1 -1
  241. package/src/integrations/ckbox.js +1 -1
  242. package/src/integrations/codeblock.js +1 -1
  243. package/src/integrations/comments.js +1 -1
  244. package/src/integrations/deletecommand.js +1 -1
  245. package/src/integrations/emoji.js +1 -1
  246. package/src/integrations/entercommand.js +1 -1
  247. package/src/integrations/findandreplace.js +1 -1
  248. package/src/integrations/font.js +1 -1
  249. package/src/integrations/footnotes.js +1 -1
  250. package/src/integrations/formatpainter.js +1 -1
  251. package/src/integrations/heading.js +1 -1
  252. package/src/integrations/highlight.js +1 -1
  253. package/src/integrations/horizontalline.js +1 -1
  254. package/src/integrations/htmlembed.js +1 -1
  255. package/src/integrations/image.js +1 -1
  256. package/src/integrations/imagereplace.js +1 -1
  257. package/src/integrations/imagestyle.js +1 -1
  258. package/src/integrations/importword.js +1 -1
  259. package/src/integrations/indent.js +1 -1
  260. package/src/integrations/inputcommand.js +1 -1
  261. package/src/integrations/legacylist.js +1 -1
  262. package/src/integrations/legacylistproperties.js +1 -1
  263. package/src/integrations/lineheight.js +1 -1
  264. package/src/integrations/link.js +1 -1
  265. package/src/integrations/list.js +1 -1
  266. package/src/integrations/listproperties.js +1 -1
  267. package/src/integrations/mediaembed.js +1 -1
  268. package/src/integrations/mention.js +1 -1
  269. package/src/integrations/mergefields.js +1 -1
  270. package/src/integrations/multilevellist.js +1 -1
  271. package/src/integrations/pagebreak.js +1 -1
  272. package/src/integrations/paragraph.js +1 -1
  273. package/src/integrations/removeformat.js +1 -1
  274. package/src/integrations/replacesourcecommand.js +1 -1
  275. package/src/integrations/restrictededitingmode.js +1 -1
  276. package/src/integrations/shiftentercommand.js +1 -1
  277. package/src/integrations/standardeditingmode.js +1 -1
  278. package/src/integrations/style.js +1 -1
  279. package/src/integrations/table.js +1 -1
  280. package/src/integrations/tablecaption.js +1 -1
  281. package/src/integrations/tableclipboard.js +2 -2
  282. package/src/integrations/tablecolumnresize.js +1 -1
  283. package/src/integrations/tableheadings.js +1 -1
  284. package/src/integrations/tablelayout.js +1 -1
  285. package/src/integrations/tablemergesplit.js +1 -1
  286. package/src/integrations/tableofcontents.js +1 -1
  287. package/src/integrations/tableproperties.js +1 -1
  288. package/src/integrations/template.js +1 -1
  289. package/src/integrations/title.js +1 -1
  290. package/src/integrations/undo.js +1 -1
  291. package/src/integrations/uploadcare.js +1 -1
  292. package/src/integrations/utils.js +1 -1
  293. package/src/suggestion.js +2 -2
  294. package/src/suggestiondescriptionfactory.js +1 -1
  295. package/src/trackchanges.js +1 -1
  296. package/src/trackchangesdata.js +1 -1
  297. package/src/trackchangesediting.js +1 -1
  298. package/src/trackchangespreview.js +1 -1
  299. package/src/trackchangesui.js +1 -1
  300. package/src/ui/suggestioncontroller.js +2 -2
  301. package/src/ui/view/basesuggestionthreadview.js +1 -1
  302. package/src/ui/view/suggestionthreadview.js +1 -1
  303. package/src/ui/view/suggestionview.js +1 -1
  304. package/src/ui/view/trackchangespreviewview.js +1 -1
  305. package/src/utils/common-translations.js +1 -1
  306. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x525f6e,Plugin as _0x53f614,PendingActions as _0x51f5e7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2c3652,ObservableMixin as _0x1a92a4,uid as _0x52b521,priorities as _0x537915,insertToPriorityArray as _0x4514a1,logWarning as _0x43e527,getEnvKeystrokeText as _0x32bdff,FocusTracker as _0x23571b,KeystrokeHandler as _0x168a13,Collection as _0x58fd42}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x509166,IconCancel as _0x3e3b38,IconTrackChanges as _0x3493ec}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1ca263,View as _0x5e9309,ViewCollection as _0x26cebe,FocusCycler as _0x6533f9,UIModel as _0x4514df,createDropdown as _0x49882a,SplitButtonView as _0x15a6e2,addListToDropdown as _0x2a2c70,MenuBarMenuView as _0x2e2c80,MenuBarMenuListView as _0x40be1b,ListSeparatorView as _0x59500b,MenuBarMenuListItemView as _0x5cf6e4,MenuBarMenuListItemButtonView as _0x2f9d47,BodyCollection as _0x4909b8,Dialog as _0x4dc2e2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4d34f8,DocumentCompare as _0x3df37f,hashObject as _0x5cd747,surroundingMarkersDetector as _0xf13ef2,FOCUS_ANNOTATION_KEYSTROKE as _0x1443b3,AriaDescriptionView as _0x11895a,setupThreadKeyboardNavigation as _0xc14415,trimHtml as _0x144e5a,UserView as _0x183fd4,LateFocusButtonView as _0x5845be,getDateTimeFormatter as _0x16bd3c,getAllMarkersDomElementsSorted as _0x19d68a,sanitizeEditorConfig as _0x4de210}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x5026dd,ModelLiveRange as _0x4960c7,ModelLivePosition as _0x3bbd7e,ViewDowncastWriter as _0x2f13cd}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x4987f3,set as _0x4be1c0,isEqual as _0x14f08f,unset as _0x501590,omit as Pt}from'es-toolkit/compat';import{Delete as _0x2cd0c7,Input as _0x1f8f58}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x279ea4}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x31b508}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x525f6e{['_enabledCommands'];constructor(_0x5ee523,_0x2f7696){super(_0x5ee523),this['_enabledCommands']=_0x2f7696,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 _0x48229d of this['editor']['commands']['commands']())_0x48229d['affectsData']&&!this['_enabledCommands']['has'](_0x48229d)&&_0x48229d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x422023 of this['editor']['commands']['commands']())_0x422023['affectsData']&&!this['_enabledCommands']['has'](_0x422023)&&_0x422023['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x525f6e{['_suggestions'];constructor(_0x1cea42,_0x3d51de){super(_0x1cea42),this['_suggestions']=_0x3d51de,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2897ad){const _0x3d0a65=this['_suggestions']['get'](_0x2897ad);if(!_0x3d0a65)throw new _0x2c3652('track-changes-accept-suggestion-not-found',this);const _0x3fd3e8=_0x3d0a65['getRanges']();this['editor']['model']['canEditAt'](_0x3fd3e8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3d0a65);}}class D extends _0x525f6e{['_suggestions'];constructor(_0x233223,_0x2fb29a){super(_0x233223),this['_suggestions']=_0x2fb29a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x53b2eb){const _0x4c0144=this['_suggestions']['get'](_0x53b2eb);if(!_0x4c0144)throw new _0x2c3652('track-changes-discard-suggestion-not-found',this);const _0x177e3f=_0x4c0144['getRanges']();this['editor']['model']['canEditAt'](_0x177e3f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4c0144);}}function ls(_0x4f3b0c,_0x42cbdc){let _0x282a99='';return _0x282a99+=_0x4f3b0c['split']('*')['map']((_0x3f3d8d,_0x5774a6)=>_0x5774a6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x3f3d8d)+'</span>':rn(_0x3f3d8d))['join'](''),_0x42cbdc&&(_0x282a99+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x42cbdc['value']+'\x22\x20title=\x22'+_0x42cbdc['title']+'\x22></span>'),_0x282a99;}function rn(_0x35c23){const _0x2bcbdf=document['createElement']('span');return _0x2bcbdf['innerText']=_0x35c23,_0x2bcbdf['innerHTML'];}function ts(_0x41ba15){return _0x41ba15['sort']((_0x1f03dc,_0x304413)=>'attribute'===_0x1f03dc['type']&&'attribute'!==_0x304413['type']?-0x1:'attribute'!==_0x1f03dc['type']&&'attribute'===_0x304413['type']?0x1:'deletion'==_0x1f03dc['type']&&'deletion'!=_0x304413['type']?-0x1:'deletion'!=_0x1f03dc['type']&&'deletion'==_0x304413['type']?0x1:0x0);}function to(_0x5ebe18,_0x223b48){let _0x347495,_0x2c077a=0x0;const _0x29e5a8=[],_0x3150f9=_0x223b48['schema'];for(;_0x2c077a<_0x5ebe18['length'];){const _0x33a6a0=_0x5ebe18[_0x2c077a],_0x17c40e=_0x5ebe18[_0x2c077a+0x1];_0x347495||(_0x347495=_0x223b48['createPositionBefore'](_0x33a6a0)),cn(_0x223b48,_0x33a6a0,_0x17c40e)||(_0x29e5a8['push'](_0x223b48['createRange'](_0x347495,_0x3150f9['isObject'](_0x33a6a0)?_0x223b48['createPositionAfter'](_0x33a6a0):_0x223b48['createPositionAt'](_0x33a6a0,'end'))),_0x347495=null),_0x2c077a++;}return _0x29e5a8;}function cn(_0x2e41cf,_0x1593c1,_0x5c6ab8){if(!_0x5c6ab8)return!0x1;const _0x5da510=_0x2e41cf['createPositionAfter'](_0x1593c1),_0xfef179=_0x2e41cf['createPositionBefore'](_0x5c6ab8);return _0x5da510['isTouching'](_0xfef179);}function rs(_0x114285,_0x3ff813,_0x146c88){for(;_0x146c88['length'];){const _0x20ba33=_0x146c88['splice'](0x0,0x64);_0x114285['change'](()=>{for(const _0x1ebdc6 of _0x20ba33)_0x1ebdc6['isInContent']&&_0x3ff813['execute'](_0x1ebdc6['id']);});}}class B extends _0x525f6e{['_command'];['_suggestions'];constructor(_0x186de3,_0x12227d,_0x287cb5){super(_0x186de3),this['_command']=_0x12227d,this['_suggestions']=_0x287cb5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1e9c45=Array['from'](this['_suggestions']['values']())['some'](_0x427889=>_0x427889['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1e9c45;}['execute'](){const _0x198b29=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3e8eef of _0x198b29){const _0x1df16d=_0x3e8eef['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1df16d))return;}rs(this['editor']['model'],this['_command'],_0x198b29);}}class O extends _0x525f6e{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1ca1b4,_0x4c6d78,_0x385f6f){super(_0x1ca1b4),this['_command']=_0x4c6d78,this['_suggestions']=_0x385f6f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x15dedf=this['editor']['model']['document']['selection'],_0x44adf9=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1bf6ee,_0x466ebd){const _0x41bcaa=Array['from'](_0x1bf6ee['getRanges']()),_0x5c64ef=new Set();for(const _0x595d27 of _0x466ebd)if(_0x595d27['isInContent']){for(const _0x4c789a of _0x41bcaa)for(const _0x3bd18c of _0x595d27['getRanges']())(_0x4c789a['isIntersecting'](_0x3bd18c)||_0x1bf6ee['isCollapsed']&&!_0x595d27['isMultiRange']&&_0x595d27['next']&&_0x3bd18c['end']['isTouching'](_0x4c789a['start']))&&_0x5c64ef['add'](_0x595d27);}return _0x5c64ef;}(_0x15dedf,_0x44adf9),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x20e8b0=ts(Array['from'](this['_selectedSuggestions']));for(const _0x43bb26 of _0x20e8b0){const _0x2436a5=_0x43bb26['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2436a5))return;}rs(this['editor']['model'],this['_command'],_0x20e8b0);}}class x extends/* #__PURE__ -- @preserve */
24
- _0x1a92a4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x45a65f,_0x5c4d6d){super(),this['id']=_0x5c4d6d['id'],this['type']=_0x5c4d6d['type'],this['subType']=_0x5c4d6d['subType']||null,this['author']=_0x5c4d6d['author'],this['creator']=_0x5c4d6d['creator']||_0x5c4d6d['author'],this['isExternal']=Boolean(_0x5c4d6d['attributes']&&_0x5c4d6d['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5c4d6d['originalSuggestionId']||null,this['_model']=_0x45a65f,this['_onAccept']=_0x5c4d6d['onAccept'],this['_onDiscard']=_0x5c4d6d['onDiscard'],this['_onAttributesChange']=_0x5c4d6d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5c4d6d['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 _0x43f6da=this;for(;_0x43f6da['previous'];)_0x43f6da=_0x43f6da['previous'];return _0x43f6da;}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'](_0x146ee4){this['_markerNames']['add'](_0x146ee4);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2c46ad=>this['_model']['markers']['get'](_0x2c46ad))['filter'](_0x2b1ce8=>_0x2b1ce8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3b25d4=>{for(const _0x19d83d of this['getMarkers']())_0x3b25d4['removeMarker'](_0x19d83d);}),this['_markerNames']['clear']();}['removeMarker'](_0x745c1f){this['_model']['change'](_0x50cd32=>{_0x50cd32['removeMarker'](_0x745c1f);}),this['_markerNames']['delete'](_0x745c1f);}['addRange'](_0x5ba87a){const _0x539adc='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x539adc),this['_model']['change'](_0x20b58a=>{_0x20b58a['addMarker'](_0x539adc,{'range':_0x5ba87a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5b7bec){for(const _0xaccd4f of this['getRanges']())if(_0xaccd4f['isIntersecting'](_0x5b7bec))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x498023=>_0x498023['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x408a89,_0x3f9213)=>[..._0x408a89,..._0x3f9213['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x191bbb=this['getRanges']();if(0x1!=_0x191bbb['length'])return null;const _0x56324f=_0x191bbb[0x0],_0x494336=_0x56324f['start']['nodeAfter'],_0x273627=_0x56324f['end']['nodeBefore'];return _0x494336 instanceof _0x5026dd?_0x494336!=_0x273627?null:_0x494336: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 _0x4f498b=[];let _0xad48ce=this['head'];for(;_0xad48ce;)_0x4f498b['push'](_0xad48ce),_0xad48ce=_0xad48ce['next'];return _0x4f498b;}['setAttribute'](_0x3da98e,_0x2bbd4f){const _0x194d24=_0x4987f3(this['attributes']);_0x4be1c0(_0x194d24,_0x3da98e,_0x2bbd4f),_0x14f08f(_0x194d24,this['attributes'])||(this['attributes']=_0x194d24,this['_onAttributesChange'](_0x194d24));}['removeAttribute'](_0x2fb8de){const _0x3baf88=_0x4987f3(this['attributes']);_0x501590(_0x3baf88,_0x2fb8de),_0x14f08f(_0x3baf88,this['attributes'])||(this['attributes']=_0x3baf88,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 _0x52b521()['substr'](0x1,0x5);}}function o(_0x3a3b79,_0x5849e2,_0x14e33b){const _0x2a51e5=_0x3a3b79['t'],t=_0x3a3b79['t'];switch(_0x5849e2){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',_0x14e33b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x14e33b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x14e33b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x14e33b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x14e33b);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',_0x14e33b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x14e33b);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',_0x14e33b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x14e33b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x14e33b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x14e33b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x14e33b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x14e33b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x14e33b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x14e33b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x14e33b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x14e33b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x14e33b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x14e33b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x14e33b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x14e33b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x14e33b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x14e33b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x14e33b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x14e33b);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'},_0x14e33b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x14e33b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x14e33b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x14e33b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x14e33b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x14e33b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x14e33b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x14e33b);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'},_0x14e33b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x14e33b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x14e33b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x14e33b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x14e33b);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'},_0x14e33b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x14e33b);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'},_0x14e33b);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x14e33b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x14e33b);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'},_0x14e33b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x14e33b);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'},_0x14e33b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x14e33b);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x14e33b);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x14e33b);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x14e33b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x14e33b);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'},_0x14e33b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x14e33b);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 _0x2a51e5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x14e33b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2a51e5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x14e33b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x14e33b);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'},_0x14e33b);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'},_0x14e33b);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'},_0x14e33b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5849e2;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x55e528,_0x1757ea){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x55e528,this['_locale']=_0x1757ea;}['getDescriptions'](_0x253338){const _0x152ae7=[],_0x7f96d8=new Set(),_0x171c71=new Set();for(let _0x5568f1=0x0;_0x5568f1<_0x253338['length'];_0x5568f1++){const _0x22ab63=_0x253338[_0x5568f1];if(!_0x22ab63['isInContent'])continue;const _0x32ca6d=this['_handleCustomCallbackDescription'](_0x22ab63);if(_0x32ca6d){if(null!=_0x22ab63['subType']){if(_0x7f96d8['has'](_0x22ab63['subType']))continue;_0x7f96d8['add'](_0x22ab63['subType']);}_0x152ae7['push'](_0x32ca6d);}else{if('attribute'==_0x22ab63['type']){const _0x16bb39=_0x22ab63['data']['key'];if(_0x171c71['has'](_0x16bb39))continue;_0x171c71['add'](_0x22ab63['data']['key']),_0x16bb39==m?this['_handleRenameSuggestionDescription'](_0x152ae7,_0x22ab63):this['_handleAttributeSuggestionDescription'](_0x152ae7,_0x22ab63);continue;}'insertion'!=_0x22ab63['type']&&'deletion'!=_0x22ab63['type']||this['_handleInsertRemoveSuggestionDescription'](_0x152ae7,_0x22ab63,_0x253338[_0x5568f1+0x1]);}}return this['_resolveDescriptionItems'](_0x152ae7);}['registerDescriptionCallback'](_0x4d2f7a){this['_customCallbacks']['push'](_0x4d2f7a);}['registerElementLabel'](_0x51029d,_0x1ab702,_0x15bb36=_0x537915['normal']){'function'==typeof _0x51029d?_0x4514a1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x51029d,'label':_0x1ab702,'priority':_0x15bb36}):this['_itemLabels']['set'](_0x51029d,_0x1ab702);}['registerAttributeLabel'](_0x3046e4,_0x28e334){this['_attributeLabels']['set'](_0x3046e4,_0x28e334);}['getItemLabel'](_0x207ab5,_0x3e395e=0x1){let _0xe4af37;for(const _0x39381e of this['_itemLabelsCallbacks'])if(_0x39381e['matchingCallback'](_0x207ab5)){_0xe4af37=_0x39381e['label'];break;}return _0xe4af37||(_0xe4af37=this['_itemLabels']['get'](_0x207ab5['name'])),_0xe4af37?_0xe4af37(_0x3e395e):0x1!==_0x3e395e?_0x3e395e+'\x20'+_0x207ab5['name']+'s':''+_0x207ab5['name'];}['_addDescriptionItems'](_0x397bd0,_0x312406){const _0x2d6a97=_0x312406['getFirstRange']()['getWalker'](),_0x28245b='insertion'==_0x312406['type']?'add':'remove';for(const _0x7696de of _0x2d6a97){const _0x28c1d9=_0x7696de['item'],_0x548fbb=_0x397bd0[_0x397bd0['length']-0x1];if(_0x28c1d9['is']('$textProxy'))_0x548fbb&&_0x548fbb['type']['indexOf']('Container')>-0x1&&_0x397bd0['pop'](),_0x548fbb&&'text'==_0x548fbb['type']?_0x548fbb[_0x28245b]+=_0x28c1d9['data']:_0x397bd0['push']({'type':'text','add':'add'==_0x28245b?_0x28c1d9['data']:'','remove':'remove'==_0x28245b?_0x28c1d9['data']:''});else{if(this['_schema']['isObject'](_0x28c1d9)){const _0x226226=_0x28c1d9;if(_0x548fbb&&_0x548fbb['type']['indexOf']('Container')>-0x1&&_0x397bd0['pop'](),'elementEnd'==_0x7696de['type'])continue;_0x548fbb&&_0x548fbb['type']==_0x28245b+'Object'&&_0x548fbb['element']['name']==_0x226226['name']?_0x548fbb['quantity']++:_0x397bd0['push']({'type':_0x28245b+'Object','element':_0x226226,'quantity':0x1}),_0x2d6a97['skip'](_0x4e75ba=>!('elementEnd'==_0x4e75ba['type']&&_0x4e75ba['item']==_0x28c1d9));}else{if(this['_schema']['checkChild'](_0x28c1d9,'$text')||_0x28c1d9['is']('element','softBreak')){const _0x1c7982=_0x28c1d9;if('add'==_0x28245b&&'elementStart'==_0x7696de['type']||'remove'==_0x28245b&&'elementEnd'==_0x7696de['type'])continue;if(_0x548fbb&&-0x1==_0x548fbb['type']['indexOf']('Container')){'text'==_0x548fbb['type']&&(_0x548fbb[_0x28245b]+='\x0a');continue;}let _0x107b14;if(_0x107b14='add'==_0x28245b?_0x1c7982['nextSibling']&&!this['_schema']['isObject'](_0x1c7982['nextSibling'])?_0x1c7982['nextSibling']:null:_0x1c7982['previousSibling']&&!this['_schema']['isObject'](_0x1c7982['previousSibling'])?_0x1c7982['previousSibling']:null,_0x1c7982['isEmpty']||_0x107b14&&_0x107b14['isEmpty']){const _0x476b08=_0x107b14&&_0x107b14['isEmpty']?_0x107b14:_0x1c7982;_0x548fbb&&_0x548fbb['type']==_0x28245b+'EmptyContainer'&&_0x548fbb['element']['name']==_0x476b08['name']?_0x548fbb['quantity']++:_0x397bd0['push']({'type':_0x28245b+'EmptyContainer','element':_0x476b08,'quantity':0x1});}else _0x397bd0['push']({'type':_0x28245b+'Container','element':_0x1c7982});}}}}}['_resolveDescriptionItems'](_0xd36da3){const _0x274164=this['_locale'],_0xcf2c59=[],_0x3dde17=[],_0x7465e1=[];for(const _0x453b09 of _0xd36da3)switch(_0x453b09['type']){case'text':if(_0x453b09['add']=_0x453b09['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x453b09['remove']=_0x453b09['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x453b09['add']&&''!=_0x453b09['remove']){_0xcf2c59['push']({'type':'replace','content':o(_0x274164,'REPLACE_TEXT',['\x22'+_0x453b09['remove']+'\x22','\x22'+_0x453b09['add']+'\x22'])});continue;}if(null!=_0x453b09['add']['match'](/^ +$/)){_0xcf2c59['push']({'type':'insertion','content':o(_0x274164,'*Insert:*\x20%0',o(_0x274164,'ELEMENT_SPACE',_0x453b09['add']['length']))});continue;}if(null!=_0x453b09['remove']['match'](/^ +$/)){_0xcf2c59['push']({'type':'deletion','content':o(_0x274164,'*Remove:*\x20%0',o(_0x274164,'ELEMENT_SPACE',_0x453b09['remove']['length']))});continue;}if(''!=_0x453b09['add']){_0xcf2c59['push']({'type':'insertion','content':o(_0x274164,'*Insert:*\x20%0','\x22'+_0x453b09['add']+'\x22')});continue;}_0xcf2c59['push']({'type':'deletion','content':o(_0x274164,'*Remove:*\x20%0','\x22'+_0x453b09['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xcf2c59['push']({'type':'insertion','content':o(_0x274164,'*Insert:*\x20%0',this['getItemLabel'](_0x453b09['element'],_0x453b09['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xcf2c59['push']({'type':'deletion','content':o(_0x274164,'*Remove:*\x20%0',this['getItemLabel'](_0x453b09['element'],_0x453b09['quantity']))});continue;case'addContainer':_0xcf2c59['push']({'type':'insertion','content':o(_0x274164,'*Split:*\x20%0',this['getItemLabel'](_0x453b09['element'],_0x453b09['quantity']))});continue;case'removeContainer':_0xcf2c59['push']({'type':'deletion','content':o(_0x274164,'*Merge:*\x20%0',this['getItemLabel'](_0x453b09['element'],_0x453b09['quantity']))});continue;case'addFormat':_0x3dde17['push'](_0x453b09['key']);continue;case'removeFormat':_0x7465e1['push'](_0x453b09['key']);continue;default:_0xcf2c59['push'](_0x453b09);}if(_0x3dde17['length']){const _0x26ea79=_0x3dde17['map'](_0x159282=>this['_attributeLabels']['has'](_0x159282)?this['_attributeLabels']['get'](_0x159282):_0x159282)['join'](',\x20');_0xcf2c59['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x26ea79)});}if(_0x7465e1['length']){const _0x146b3f=_0x7465e1['map'](_0x276756=>this['_attributeLabels']['has'](_0x276756)?this['_attributeLabels']['get'](_0x276756):_0x276756)['join'](',\x20');_0xcf2c59['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x146b3f)});}return _0xcf2c59;}['_handleCustomCallbackDescription'](_0x4f715a){for(const _0xa80cd8 of this['_customCallbacks']){const _0x3a1498=_0xa80cd8(_0x4f715a);if(_0x3a1498&&'type'in _0x3a1498)return _0x3a1498;}}['_handleAttributeSuggestionDescription'](_0x5c7b85,_0x43372f){const _0x3ddfea=_0x43372f['data'],_0x2020ef=void 0x0===_0x3ddfea['newValue']?'removeFormat':'addFormat';_0x5c7b85['push']({'type':_0x2020ef,'key':_0x3ddfea['key']});}['_handleRenameSuggestionDescription'](_0x503007,_0x57dcd4){_0x503007['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x57dcd4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x44d1ac,_0xab2873,_0xef65ec){if(this['_addDescriptionItems'](_0x44d1ac,_0xab2873),_0xef65ec&&_0xef65ec['getFirstRange']()&&!_0xab2873['getFirstRange']()['end']['isEqual'](_0xef65ec['getFirstRange']()['start'])){const _0x337986=_0x44d1ac[_0x44d1ac['length']-0x1],_0x3c7518='insertion'==_0xab2873['type']?'add':'remove';_0x337986&&'text'==_0x337986['type']&&(_0x337986[_0x3c7518]+='\x0a');}}}class R extends _0x53f614{['afterInit'](){const _0x238603=this['editor'],_0x43b44a=_0x238603['plugins']['get']('TrackChangesEditing');_0x238603['commands']['get']('showAIAssistant')&&_0x43b44a['enableCommand']('showAIAssistant');}}class T extends _0x53f614{['afterInit'](){const _0x21c423=this['editor'],_0x2cd98e=_0x21c423['plugins']['get']('TrackChangesEditing');_0x21c423['commands']['get']('toggleAi')&&_0x2cd98e['enableCommand']('toggleAi');}}class E extends _0x53f614{['afterInit'](){const _0xcd285c=this['editor'],_0x28f952=_0xcd285c['plugins']['get']('TrackChangesEditing');_0xcd285c['commands']['get']('aiQuickAction')&&_0x28f952['enableCommand']('aiQuickAction');}}class U extends _0x53f614{['afterInit'](){const _0x5dd781=this['editor'],_0xffcbcd=_0x5dd781['locale'];if(!_0x5dd781['plugins']['has']('AlignmentEditing'))return;const _0x3cf435=_0x5dd781['plugins']['get']('TrackChangesEditing');_0x3cf435['enableDefaultAttributesIntegration']('alignment'),_0x3cf435['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xffcbcd,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c826b=this['editor'],_0x72559a=_0x4c826b['locale'];_0x4c826b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b990b=>{if('formatBlock'!=_0x3b990b['type'])return;const {data:_0x1dbe7a}=_0x3b990b;if(_0x1dbe7a&&'alignment'==_0x1dbe7a['commandName']){const _0x484902=_0x1dbe7a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x72559a,'*Format:*\x20%0',function(_0x474142){switch(_0x474142){case'left':return o(_0x72559a,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x72559a,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x72559a,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x72559a,'FORMAT_JUSTIFY_TEXT');}}(_0x484902))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x53f614{['afterInit'](){const _0x3d8fe9=this['editor'],_0xa655b2=_0x3d8fe9['plugins']['get']('TrackChangesEditing'),_0x2e30b1=_0x3d8fe9['locale'];for(const _0x4070d2 of ti){if(!_0x3d8fe9['plugins']['has'](_0x4070d2))continue;const _0xf3230e=_0x4070d2['slice'](0x0,-0x7)['toLowerCase'](),_0x3a7b25='FORMAT_'+_0xf3230e['toUpperCase']();_0xa655b2['enableDefaultAttributesIntegration'](_0xf3230e),_0xa655b2['descriptionFactory']['registerAttributeLabel'](_0xf3230e,o(_0x2e30b1,_0x3a7b25));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2661a0=this['editor'],_0x20ff62=_0x2661a0['locale'],_0x9a9834=_0x2661a0['plugins']['get']('TrackChangesEditing');function _0x558cdb(_0x443cae,_0x1b9bc3){_0x9a9834['descriptionFactory']['registerDescriptionCallback'](_0x3f61ea=>{if('formatInline'!=_0x3f61ea['type'])return;const {data:_0x26bff5}=_0x3f61ea;return _0x26bff5&&_0x26bff5['commandName']===_0x443cae?_0x26bff5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x20ff62,'*Format:*\x20%0',_0x1b9bc3)}:{'type':'format','content':o(_0x20ff62,'*Remove\x20format:*\x20%0',_0x1b9bc3)}:void 0x0;});}_0x558cdb('bold',o(_0x20ff62,'FORMAT_BOLD')),_0x558cdb('italic',o(_0x20ff62,'FORMAT_ITALIC')),_0x558cdb('underline',o(_0x20ff62,'FORMAT_UNDERLINE')),_0x558cdb('code',o(_0x20ff62,'FORMAT_CODE')),_0x558cdb('strikethrough',o(_0x20ff62,'FORMAT_STRIKETHROUGH')),_0x558cdb('subscript',o(_0x20ff62,'FORMAT_SUBSCRIPT')),_0x558cdb('superscript',o(_0x20ff62,'FORMAT_SUPERSCRIPT'));}}class F extends _0x53f614{['afterInit'](){const _0x1e638a=this['editor'],_0x2b31c9=_0x1e638a['locale'];if(!_0x1e638a['plugins']['has']('BlockQuoteEditing'))return;const _0x3d0ed6=_0x1e638a['plugins']['get']('TrackChangesEditing'),_0x230386=this['editor']['commands']['get']('blockQuote');_0x3d0ed6['enableCommand']('blockQuote',(_0x36c305,_0x25a90f={})=>{const _0xc3f189=this['editor']['model']['document']['selection'],_0x2659e0=_0x25a90f&&void 0x0!==_0x25a90f['forceValue']?_0x25a90f['forceValue']:!_0x230386['value'];let _0xf5daa1=[];if(_0x2659e0){const _0x227ac4=Array['from'](_0xc3f189['getSelectedBlocks']())['filter'](_0x360c14=>oo(_0x360c14)||function(_0x4335f6,_0x1b4afa){const _0x1b4000=_0x1b4afa['checkChild'](_0x4335f6['parent'],'blockQuote'),_0x4163fb=_0x1b4afa['checkChild'](['$root','blockQuote'],_0x4335f6);return _0x1b4000&&_0x4163fb;}(_0x360c14,this['editor']['model']['schema']));_0xf5daa1=to(_0x227ac4,_0x1e638a['model']);}else{const _0x435fae=Array['from'](_0xc3f189['getSelectedBlocks']())['filter'](_0x435a2d=>oo(_0x435a2d));_0xf5daa1=to(_0x435fae,_0x1e638a['model']);}_0x1e638a['model']['change'](()=>{for(const _0x84e4bd of _0xf5daa1)_0x3d0ed6['markBlockFormat'](_0x84e4bd,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2659e0}]});});}),_0x3d0ed6['descriptionFactory']['registerDescriptionCallback'](_0x5a08f5=>{const {data:_0x3da522}=_0x5a08f5;if(_0x3da522&&'blockQuote'==_0x3da522['commandName']){const _0x27aab2=o(_0x2b31c9,'ELEMENT_BLOCK_QUOTE');return _0x3da522['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2b31c9,'*Set\x20format:*\x20%0',_0x27aab2)}:{'type':'format','content':o(_0x2b31c9,'*Remove\x20format:*\x20%0',_0x27aab2)};}});}}function oo(_0x47e7b7){return'blockQuote'==_0x47e7b7['parent']['name'];}class G extends _0x53f614{['afterInit'](){const _0xc2deac=this['editor'],_0x44bd05=_0xc2deac['locale'],_0x1a2594=_0xc2deac['plugins']['get']('TrackChangesEditing');_0xc2deac['plugins']['has']('BookmarkEditing')&&(_0x1a2594['enableCommand']('insertBookmark'),_0x1a2594['enableDefaultAttributesIntegration']('updateBookmark'),_0x1a2594['descriptionFactory']['registerDescriptionCallback'](_0x38fe46=>{if('insertion'!=_0x38fe46['type']&&'deletion'!=_0x38fe46['type']&&'attribute'!=_0x38fe46['type'])return;const _0x54393f=_0x38fe46['getContainedElement']();if(null==_0x54393f)return;if(!_0x54393f['is']('element','bookmark'))return;const _0x5119de=_0x54393f['getAttribute']('bookmarkId');if('insertion'==_0x38fe46['type'])return{'type':'insertion','content':o(_0x44bd05,'*Insert:*\x20%0','\x22'+_0x5119de+'\x22\x20'+o(_0x44bd05,'ELEMENT_BOOKMARK'))};if('deletion'==_0x38fe46['type'])return{'type':'deletion','content':o(_0x44bd05,'*Remove:*\x20%0','\x22'+_0x5119de+'\x22\x20'+o(_0x44bd05,'ELEMENT_BOOKMARK'))};const {data:_0x3e3a39}=_0x38fe46;if(!_0x3e3a39||'bookmarkId'!=_0x3e3a39['key'])return;return{'type':'format','content':o(_0x44bd05,'*Set\x20bookmark:*\x20%0','\x22'+_0x3e3a39['newValue']+'\x22')};}));}}class L extends _0x53f614{['afterInit'](){const _0x5953ff=this['editor'];_0x5953ff['plugins']['has']('CaseChange')&&(_0x5953ff['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5953ff['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5953ff['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x53f614{['afterInit'](){const _0x3993fd=this['editor'];_0x3993fd['commands']['get']('ckbox')&&_0x3993fd['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x53f614{['afterInit'](){const _0x594f0e=this['editor'];if(!_0x594f0e['plugins']['has']('CodeBlock'))return;const _0x2decb0=_0x594f0e['plugins']['get']('TrackChangesEditing'),_0x3a1d33=_0x594f0e['locale'],_0x449f09=_0x594f0e['config']['get']('codeBlock')['languages'],_0x1fb1b3=_0x594f0e['commands']['get']('codeBlock');_0x2decb0['enableCommand']('indentCodeBlock'),_0x2decb0['enableCommand']('outdentCodeBlock'),_0x2decb0['enableCommand']('codeBlock',(_0x426239,_0x539c71={})=>{const _0x2d5b49=_0x594f0e['model'],_0xce5c96=_0x594f0e['model']['document']['selection'],_0x16e29a=_0x539c71&&void 0x0!==_0x539c71['forceValue']?_0x539c71['forceValue']:!_0x1fb1b3['value'];let _0x1f95ba;_0x539c71['language']||(_0x539c71['language']=_0x449f09[0x0]['language']),_0x1f95ba=_0x16e29a?Array['from'](_0xce5c96['getSelectedBlocks']())['filter'](_0x50d471=>co(_0x50d471)||function(_0x5872f3,_0x5c1de5){if(_0x5872f3['is']('rootElement')||_0x5c1de5['isLimit'](_0x5872f3))return!0x1;return _0x5c1de5['checkChild'](_0x5872f3['parent'],'codeBlock');}(_0x50d471,_0x2d5b49['schema'])):Array['from'](_0xce5c96['getSelectedBlocks']())['filter'](_0x37ee15=>co(_0x37ee15));const _0xa2b557=to(_0x1f95ba,_0x2d5b49);_0x2d5b49['change'](()=>{for(const _0x33a5af of _0xa2b557)_0x2decb0['markBlockFormat'](_0x33a5af,{'commandName':'codeBlock','commandParams':[{..._0x539c71,'forceValue':_0x16e29a}],'formatGroupId':'blockName'});});}),(_0x2decb0['descriptionFactory']['registerElementLabel']('codeBlock',_0x59b357=>o(_0x3a1d33,'ELEMENT_CODE_BLOCK',_0x59b357)),_0x2decb0['descriptionFactory']['registerDescriptionCallback'](_0x5951bb=>{if('formatBlock'!=_0x5951bb['type'])return;const _0x33c0be=_0x3a1d33['t'],{data:_0x40e5b6}=_0x5951bb;if(!_0x40e5b6||'codeBlock'!=_0x40e5b6['commandName'])return;const _0x54b65c=_0x40e5b6['commandParams'][0x0]['language'],_0x4a0cce=_0x33c0be(_0x449f09['find'](_0x5a5253=>_0x5a5253['language']===_0x54b65c)['label'])['toLowerCase']();return _0x40e5b6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a1d33,'*Set\x20format:*\x20%0',o(_0x3a1d33,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4a0cce+')')}:{'type':'format','content':o(_0x3a1d33,'*Remove\x20format:*\x20%0',o(_0x3a1d33,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x169ac1){return'codeBlock'==_0x169ac1['name'];}class z extends _0x53f614{['afterInit'](){const _0x2686c5=this['editor'];if(!_0x2686c5['plugins']['has']('CommentsEditing'))return;_0x2686c5['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x53f614{static get['requires'](){return[_0x2cd0c7];}['init'](){const _0x2653c4=this['editor'],_0x215a44=_0x2653c4['plugins']['get']('TrackChangesEditing');_0x215a44['enableCommand']('delete');const _0x2f2a82=_0x2653c4['commands']['get']('deleteForward');_0x215a44['enableCommand']('deleteForward',(_0x30ccaf,_0x22a6cb={})=>{const _0x18838a=_0x2653c4['model']['createSelection'](_0x2653c4['model']['document']['selection']);_0x18838a['isCollapsed']&&_0x2653c4['model']['modifySelection'](_0x18838a,{'direction':'forward','unit':_0x22a6cb['unit']});const _0x1f0ab1=_0x18838a['getFirstRange'](),_0x28382c=_0x4960c7['fromRange'](_0x1f0ab1);let _0x26aeba;_0x30ccaf(_0x22a6cb),_0x26aeba='$graveyard'==_0x28382c['root']['rootName']?_0x2653c4['model']['createRange'](_0x1f0ab1['start']):_0x2653c4['model']['createRange'](_0x28382c['start'],_0x28382c['end']),_0x28382c['detach'](),_0x2653c4['model']['enqueueChange'](_0x2f2a82['buffer']['batch'],_0x35281b=>{_0x2f2a82['buffer']['lock'](),_0x35281b['setSelection'](_0x35281b['createRange'](_0x26aeba['end'])),_0x2f2a82['buffer']['unlock']();});});}}class W extends _0x53f614{['afterInit'](){const _0x261847=this['editor'];if(!_0x261847['plugins']['has']('ListEditing'))return;const _0x276343=_0x261847['locale'],_0x2b2c30=_0x261847['plugins']['get']('TrackChangesEditing'),_0x97fda0=_0x261847['plugins']['has']('TodoListEditing'),_0x41fb3f=!!_0x261847['config']['get']('list.multiBlock');function _0xb45b8e(_0x2c8370){return{'type':'format','content':''+o(_0x276343,'*Set\x20format:*\x20%0',_0x2c8370)};}function _0x3efeb2(_0x19529f){return{'type':'format','content':''+o(_0x276343,'*Remove\x20format:*\x20%0',_0x19529f)};}_0x2b2c30['enableDefaultAttributesIntegration']('numberedList'),_0x2b2c30['enableDefaultAttributesIntegration']('bulletedList'),_0x2b2c30['enableDefaultAttributesIntegration']('customNumberedList'),_0x2b2c30['enableDefaultAttributesIntegration']('customBulletedList'),_0x2b2c30['enableDefaultAttributesIntegration']('indentList'),_0x2b2c30['enableDefaultAttributesIntegration']('outdentList'),_0x2b2c30['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2b2c30['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x41fb3f&&(_0x2b2c30['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2b2c30['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x97fda0&&(_0x2b2c30['enableDefaultAttributesIntegration']('todoList'),_0x2b2c30['enableDefaultAttributesIntegration']('checkTodoList'),_0x2b2c30['descriptionFactory']['registerDescriptionCallback'](_0x258bec=>{const {data:_0xebeaa2}=_0x258bec;if(_0xebeaa2&&'todoListChecked'==_0xebeaa2['key'])return{'type':'format','content':_0xebeaa2['newValue']?o(_0x276343,'*Check\x20item*'):o(_0x276343,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1b935a=>{if(_0x1b935a['batch']['isUndo'])return!0x1;let _0xd140ae=!0x1;const _0x120957=_0x2b2c30['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x264e81=>'todoListChecked'===_0x2b2c30['_getAttributeKey'](_0x264e81));for(const _0x83ec2a of _0x120957){'todo'!=_0x83ec2a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2b2c30['_findSuggestions'](_0x83ec2a['getFirstRange'](),'attribute')['find'](_0x4e9cd0=>'listType'===_0x2b2c30['_getAttributeKey'](_0x4e9cd0['suggestion']))||(_0x1b935a['removeMarker'](_0x83ec2a['getFirstMarker']()),_0xd140ae=!0x0));}return _0xd140ae;})),_0x2b2c30['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x276343,'FORMAT_INDENT'));const _0x2b4a10={'type':'format','content':''};_0x2b2c30['descriptionFactory']['registerDescriptionCallback'](_0x42f5f4=>{const {data:_0x5f13af}=_0x42f5f4;if(!_0x5f13af||'listType'!=_0x5f13af['key'])return;let _0x4cb3b3=_0x42f5f4['head'];for(;_0x4cb3b3;){if(_0x4cb3b3['data']&&(('listStyle'==_0x4cb3b3['data']['key']||'listMarkerStyle'==_0x4cb3b3['data']['key'])&&(_0x4cb3b3['data']['newValue']&&'default'!=_0x4cb3b3['data']['newValue']||'default'!=_0x4cb3b3['data']['oldValue']&&!_0x5f13af['newValue'])||!_0x41fb3f&&_0x4cb3b3['data']['key']==m))return _0x2b4a10;_0x4cb3b3=_0x4cb3b3['next'];}if(null==_0x5f13af['newValue'])switch(_0x5f13af['oldValue']){case'bulleted':return _0x3efeb2(o(_0x276343,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3efeb2(o(_0x276343,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3efeb2(o(_0x276343,'ELEMENT_TODO_LIST'));}switch(_0x5f13af['newValue']){case'bulleted':return _0xb45b8e(o(_0x276343,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xb45b8e(o(_0x276343,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xb45b8e(o(_0x276343,'ELEMENT_TODO_LIST'));}}),_0x2b2c30['descriptionFactory']['registerDescriptionCallback'](_0xd68179=>{const {data:_0x121ab9}=_0xd68179;if(_0x121ab9&&'listIndent'==_0x121ab9['key'])return null==_0x121ab9['newValue']||null==_0x121ab9['oldValue']&&0x0==_0x121ab9['newValue']?_0x2b4a10:void 0x0;}),_0x2b2c30['descriptionFactory']['registerDescriptionCallback'](_0x1caf9c=>{if('attribute'!=_0x1caf9c['type'])return;const {data:_0x52cb4f}=_0x1caf9c;if(!_0x52cb4f||'listItemId'!=_0x52cb4f['key'])return;const _0x18f334=Te(_0x1caf9c);return'newValue'==_0x18f334?{'type':'format','content':o(_0x276343,'*Merge:*\x20list\x20item')}:'oldValue'==_0x18f334?{'type':'format','content':o(_0x276343,'*Split:*\x20list\x20item')}:_0x2b4a10;}),_0x261847['model']['document']['registerPostFixer'](_0x216ce7=>this['listItemIdFixer'](_0x216ce7)),_0x261847['model']['document']['registerPostFixer'](_0x39103f=>this['noTrackChangesFixer'](_0x39103f)),_0x261847['model']['document']['on']('change:data',(_0xb10fdc,_0x16abbf)=>{if(_0x16abbf['isUndo']||!_0x16abbf['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x25e5c8){if(_0x25e5c8['batch']['isUndo']||!_0x25e5c8['batch']['isLocal'])return!0x1;let _0x1dfbb7=!0x1;const _0x2d96fa=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc4f80=>_0xc4f80['data']&&'listItemId'==_0xc4f80['data']['key'])['filter'](_0x3b8cde=>_0x3b8cde['data']['newValue']&&_0x3b8cde['data']['oldValue']);for(const _0x218049 of _0x2d96fa)Te(_0x218049)||(_0x25e5c8['removeMarker'](_0x218049['getFirstMarker']()),_0x1dfbb7=!0x0);return _0x1dfbb7;}['noTrackChangesFixer'](_0x3c2774){if(_0x3c2774['batch']['isUndo']||!_0x3c2774['batch']['isLocal'])return!0x1;const _0xbcde48=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xbcde48['trackChangesCommand']['value'])return!0x1;let _0x51cedf=!0x1;const _0x58e690=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1323f=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xc0f0bb=>'attribute'==_0xc0f0bb['type'])['filter'](_0x25d28c=>_0x58e690['includes'](_0x25d28c['attributeKey']));if(0x0==_0x1323f['length'])return _0x51cedf;for(const _0x49110f of _0x1323f){const _0x163045=_0xbcde48['_findSuggestions'](_0x49110f['range'],'attribute')['filter'](_0x58bab5=>!_0x58bab5['meta']['isNextTo'])['map'](_0x5eb855=>_0x5eb855['suggestion'])['filter'](_0x550695=>{const _0x435365=_0xbcde48['_getAttributeKey'](_0x550695);return _0x58e690['includes'](_0x435365);});if(_0x163045['length']){for(const _0x838eef of _0x163045)_0x3c2774['removeMarker'](_0x838eef['getFirstMarker']());_0x51cedf=!0x0;}}return _0x51cedf;}['assureChains'](){const _0xddda54=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3bf9bc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2c64ee;const _0x277a6e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b82ce=>{if(_0x1b82ce['data']['oldRange']||!_0x1b82ce['data']['newRange'])return null;if(!_0x1b82ce['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xafc064}=_0xddda54['_splitMarkerName'](_0x1b82ce['name']);if(!_0xddda54['hasSuggestion'](_0xafc064))return null;const _0x597383=_0xddda54['getSuggestion'](_0xafc064);return _0x3bf9bc['includes'](_0x597383['data']['key']);})['map'](_0x4c6a88=>{const {id:_0x119e37}=_0xddda54['_splitMarkerName'](_0x4c6a88['name']),_0x766ec7=_0xddda54['getSuggestion'](_0x119e37);return _0x2c64ee=_0x766ec7['attributes']['groupId'],_0x766ec7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x277a6e['size'])return;const _0x41fec4=_0xddda54['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24b886=>'attribute'==_0x24b886['type']&&_0x24b886['data']&&_0x3bf9bc['includes'](_0x24b886['data']['key'])&&_0x24b886['attributes']['groupId']!=_0x2c64ee)['map'](_0x42b666=>({'listItem':_0x42b666['getFirstRange']()['start']['nodeAfter'],'groupId':_0x42b666['attributes']['groupId']})),_0x4e4ab3=new Set();for(const {groupId:_0x360cd5,listItem:_0x48b359}of _0x41fec4)_0x277a6e['has'](_0x48b359)&&_0x4e4ab3['add'](_0x360cd5);for(const _0x20f0f9 of _0xddda54['getSuggestions']())_0x4e4ab3['has'](_0x20f0f9['attributes']['groupId'])&&_0x20f0f9['setAttribute']('groupId',_0x2c64ee);}['_supportLegacySuggestions'](){const _0x495603=this['editor'],_0x26c1ea=_0x495603['locale'],_0x445259=_0x495603['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x445259['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1a55d2,_0x3fa511){const _0x2d8cd2=[];for(let _0xe4d28b of _0x1a55d2)_0xe4d28b['start']['nodeAfter']===_0xe4d28b['end']['parent']&&(_0xe4d28b=_0x495603['model']['createRange'](_0x495603['model']['createPositionAt'](_0xe4d28b['start']['nodeAfter'],0x0))),_0x2d8cd2['push'](_0xe4d28b);_0x495603['model']['change'](_0x2a8de4=>{const _0x18f4bd=_0x495603['model']['document']['selection'],_0x531e79=Array['from'](_0x18f4bd['getRanges']())['map'](_0x3412e4=>_0x4960c7['fromRange'](_0x3412e4));_0x2a8de4['setSelection'](_0x2d8cd2),_0x495603['commands']['get'](_0x3fa511['commandName'])['refresh'](),_0x3fa511['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x495603['execute'](_0x3fa511['commandName'],..._0x3fa511['commandParams']),_0x2a8de4['setSelection'](_0x531e79);for(const _0x182ca8 of _0x531e79)_0x182ca8['detach']();});}),_0x445259['descriptionFactory']['registerElementLabel'](function(_0x84c37c){const _0x5d5705=!_0x495603['model']['schema']['isObject'](_0x84c37c),_0x58953d=_0x84c37c['previousSibling'],_0x17f549=_0x84c37c['nextSibling'],_0x3822ad=_0x84c37c['getAttribute']('listItemId'),_0x3eec27=!_0x58953d||_0x58953d['getAttribute']('listItemId')!==_0x3822ad,_0x100c5d=!_0x17f549||_0x17f549['getAttribute']('listItemId')!==_0x3822ad;return _0x5d5705&&Boolean(_0x3822ad)&&_0x3eec27&&_0x100c5d;},_0x284494=>o(_0x26c1ea,'ELEMENT_LIST_ITEM',_0x284494));}['_registerLegacyDescription'](){const _0x364996=this['editor'],_0x52e694=_0x364996['locale'];function _0x13416a(_0x191821){const _0x5472b9=_0x364996['commands']['get']('bulletedList')['value'],_0x3986c5=_0x364996['commands']['get']('numberedList')['value'];return'numberedList'===_0x191821?_0x5472b9:_0x3986c5;}_0x364996['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1128b6){if('formatBlock'!=_0x1128b6['type'])return;const {data:_0xbbbd90}=_0x1128b6;if(!_0xbbbd90)return;let _0x1c3561,_0x314796,_0x3d09f4,_0x2b0bdd;switch(_0xbbbd90['commandName']){case'bulletedList':_0x3d09f4=_0xbbbd90['commandParams'][0x0]['forceValue'],_0x2b0bdd=_0x13416a(_0xbbbd90['commandName']),_0x1c3561=_0x3d09f4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2b0bdd&&_0x364996['config']['get']('list.multiBlock')||(_0x1c3561='*Change\x20to:*\x20%0'),_0x314796={'type':'format','content':o(_0x52e694,_0x1c3561,o(_0x52e694,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3d09f4=_0xbbbd90['commandParams'][0x0]['forceValue'],_0x2b0bdd=_0x13416a(_0xbbbd90['commandName']),_0x1c3561=_0x3d09f4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2b0bdd&&_0x364996['config']['get']('list.multiBlock')||(_0x1c3561='*Change\x20to:*\x20%0'),_0x314796={'type':'format','content':o(_0x52e694,_0x1c3561,o(_0x52e694,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1c3561='*Indent:*\x20%0',_0x314796={'type':'format','content':o(_0x52e694,_0x1c3561,o(_0x52e694,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1c3561=function(_0x28625b){const _0x2e1a6a=_0x28625b['getFirstRange']();let _0x35c037=_0x2e1a6a['start']['nodeAfter'];for(;_0x35c037&&_0x2e1a6a['containsItem'](_0x35c037);){if(_0x35c037['getAttribute']('listIndent')>0x0)return!0x1;_0x35c037=_0x35c037['nextSibling'];}return!0x0;}(_0x1128b6)?o(_0x52e694,'*Format:*\x20remove\x20from\x20%0',o(_0x52e694,function(_0x116d1b){return'ELEMENT_'+_0x116d1b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1128b6))):o(_0x52e694,'*Outdent:*\x20%0',o(_0x52e694,'ELEMENT_LIST_ITEM')),_0x314796={'type':'format','content':_0x1c3561};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xbbbd90['multipleBlocks']&&(_0x1c3561='*Merge:*\x20%0',_0x314796={'type':'deletion','content':o(_0x52e694,_0x1c3561,o(_0x52e694,'ELEMENT_LIST_ITEM'))});}return _0x314796;});}}function Te(_0x3df7f0){let _0x44e0fc=_0x3df7f0['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x44e0fc;){const _0x5b137a=_0x44e0fc['getAttribute']('listItemId');if(!_0x5b137a)return!0x1;if(_0x5b137a==_0x3df7f0['data']['newValue'])return'newValue';if(_0x5b137a==_0x3df7f0['data']['oldValue'])return'oldValue';_0x44e0fc=_0x44e0fc['previousSibling'];}return!0x1;}class H extends _0x53f614{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3d694e=this['editor']['config']['get']('list.properties'),_0x5ec91c=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d694e['styles']&&_0x5ec91c['enableDefaultAttributesIntegration']('listStyle'),_0x3d694e['reversed']&&_0x5ec91c['enableDefaultAttributesIntegration']('listReversed'),_0x3d694e['startIndex']&&_0x5ec91c['enableDefaultAttributesIntegration']('listStart');const _0x4c7539={'type':'format','content':''};_0x5ec91c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1ed9ee=this['editor']['locale'];_0x5ec91c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1ed9ee,'FORMAT_LIST_REVERSED')),_0x5ec91c['descriptionFactory']['registerDescriptionCallback'](_0x5a2046=>{const {data:_0x24e1de}=_0x5a2046;if(_0x24e1de&&'listReversed'==_0x24e1de['key'])return null==_0x24e1de['newValue']||0x0==_0x24e1de['newValue']&&null==_0x24e1de['oldValue']?_0x4c7539:void 0x0;}),_0x5ec91c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1ed9ee,'FORMAT_LIST_START')),_0x5ec91c['descriptionFactory']['registerDescriptionCallback'](_0x50c261=>{const {data:_0x25bd65}=_0x50c261;if(_0x25bd65&&'listStart'==_0x25bd65['key'])return null==_0x25bd65['newValue']||0x1==_0x25bd65['newValue']&&null==_0x25bd65['oldValue']?_0x4c7539:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x337ce1=>{if(_0x337ce1['batch']['isUndo'])return!0x1;let _0x3cbb42=!0x1;const _0x18dc54=_0x5ec91c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x584dea=>{const _0x52f4fb=_0x5ec91c['_getAttributeKey'](_0x584dea);return'listStart'==_0x52f4fb||'listReversed'==_0x52f4fb;});for(const _0x13c4b4 of _0x18dc54){const _0x26a3f4=_0x13c4b4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x26a3f4||'customNumbered'==_0x26a3f4)continue;_0x5ec91c['_findSuggestions'](_0x13c4b4['getFirstRange'](),'attribute')['find'](_0x44a5af=>'listType'==_0x5ec91c['_getAttributeKey'](_0x44a5af['suggestion']))||(_0x337ce1['removeMarker'](_0x13c4b4['getFirstMarker']()),_0x3cbb42=!0x0);}return _0x3cbb42;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1aaec5){const _0x3cde65=this['editor']['locale'],{data:_0x285fca}=_0x1aaec5,_0x5d9f00={'type':'format','content':''};if(!_0x285fca||'listStyle'!=_0x285fca['key'])return;if(!_0x285fca['oldValue'])return'default'==_0x285fca['newValue']?_0x5d9f00:{'type':'format','content':''+o(_0x3cde65,'*Set\x20format:*\x20%0',o(_0x3cde65,this['_getTranslationKeyForListStyle'](_0x285fca['newValue'])))};if(!_0x285fca['newValue']){if('default'==_0x285fca['oldValue'])return _0x5d9f00;let _0x19e2b3=_0x1aaec5['head'];for(;_0x19e2b3;){if(_0x19e2b3['data']&&'listType'==_0x19e2b3['data']['key']&&_0x19e2b3['data']['newValue'])return _0x5d9f00;_0x19e2b3=_0x19e2b3['next'];}return{'type':'format','content':''+o(_0x3cde65,'*Remove\x20format:*\x20%0',o(_0x3cde65,this['_getTranslationKeyForListStyle'](_0x285fca['oldValue'])))};}if('default'!=_0x285fca['newValue'])return{'type':'format','content':''+o(_0x3cde65,'*Set\x20format:*\x20%0',o(_0x3cde65,this['_getTranslationKeyForListStyle'](_0x285fca['newValue'])))};let _0x17bda3=_0x1aaec5['head'];for(;_0x17bda3;){if(_0x17bda3['data']&&'listType'==_0x17bda3['data']['key']&&_0x17bda3['data']['newValue']&&_0x17bda3['data']['oldValue'])return _0x5d9f00;_0x17bda3=_0x17bda3['next'];}return{'type':'format','content':o(_0x3cde65,'*Set\x20format:*\x20%0',o(_0x3cde65,'ELEMENT_'+_0x1aaec5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x54b56d=this['editor'],_0x2d4522=_0x54b56d['locale'];_0x54b56d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x637537=>{if('formatBlock'!=_0x637537['type'])return;const {data:_0x4d79db}=_0x637537;if(!_0x4d79db)return;let _0x5463e5,_0x5f11b4;switch(_0x4d79db['commandName']){case'listStyle':_0x5463e5='*Change\x20to:*\x20%0',_0x5f11b4={'type':'format','content':o(_0x2d4522,_0x5463e5,o(_0x2d4522,this['_getTranslationKeyForListStyle'](_0x4d79db['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5463e5=_0x4d79db['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5f11b4={'type':'format','content':o(_0x2d4522,_0x5463e5)};break;case'listStart':_0x5463e5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5f11b4={'type':'format','content':o(_0x2d4522,_0x5463e5,_0x4d79db['commandParams'][0x0]['startIndex'])};}return _0x5f11b4;});}['_getTranslationKeyForListStyle'](_0x34bb25){return'ELEMENT_'+function(_0x26a8b7){if(ye['includes'](_0x26a8b7))return'bulleted';if(Se['includes'](_0x26a8b7))return'numbered';return null;}(_0x34bb25)['toUpperCase']()+'_LIST_'+_0x34bb25['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x53f614{['afterInit'](){const _0x204d1d=this['editor'];_0x204d1d['commands']['get']('emoji')&&_0x204d1d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x53f614{static get['requires'](){return[_0x279ea4];}['init'](){const _0x24f37c=this['editor'],_0x44cedb=_0x24f37c['plugins']['get']('TrackChangesEditing'),_0x39904c=_0x24f37c['commands']['get']('enter');_0x44cedb['enableCommand']('enter',()=>{_0x24f37c['model']['change'](_0x117060=>{const _0xa194de=_0x24f37c['model']['document']['selection'],_0xc52bdf=_0xa194de['getFirstPosition'](),_0x26add2=_0x4960c7['fromRange'](_0xa194de['getFirstRange']());if(_0x39904c['enterBlock'](_0x117060)){const _0x320b54=_0x24f37c['model']['createPositionAt'](_0xc52bdf['parent']['nextSibling'],0x0),_0x28cffa=_0x117060['createRange'](_0xc52bdf,_0x320b54);_0x44cedb['markInsertion'](_0x28cffa);}else _0x117060['setSelection'](_0x117060['createRange'](_0x26add2['end']));_0x26add2['detach'](),_0x39904c['fire']('afterExecute',{'writer':_0x117060});});});}}class Y extends _0x53f614{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2b97ca=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b97ca['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2b97ca['enableCommand']('findNext'),_0x2b97ca['enableCommand']('findPrevious'),_0x2b97ca['enableCommand']('replace'),_0x2b97ca['enableCommand']('replaceAll');}['handleFindCommand'](_0x1f4dfd,_0x57553f,_0x1e7a0c={}){const _0x5b4764=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1f4dfd(_0x4bedac=>{let _0x42f852=('string'==typeof _0x57553f?_0x5b4764['findByTextCallback'](_0x57553f,_0x1e7a0c):_0x57553f)(_0x4bedac);Array['isArray'](_0x42f852)&&(_0x42f852={'results':_0x42f852,'searchText':'string'==typeof _0x57553f?_0x57553f:''});const _0x4e2523=_0x42f852['results']['filter'](_0x247d54=>!0x1===this['_isInDeletionRange'](_0x247d54,_0x4bedac['item']));return{..._0x42f852,'results':_0x4e2523};},_0x1e7a0c);}['_isInDeletionRange'](_0x47ec5a,_0x1db21d){const _0x8ca73b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1db21d,_0x47ec5a['start']),this['editor']['model']['createPositionAt'](_0x1db21d,_0x47ec5a['end']));for(const _0x2d658f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x8ca73b['getIntersection'](_0x2d658f['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x53f614{['afterInit'](){const _0x407a72=this['editor']['locale'],_0x133395=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3e287e,commandName:_0x35552c}of eo)this['editor']['plugins']['has'](_0x3e287e)&&_0x133395['enableDefaultAttributesIntegration'](_0x35552c);_0x133395['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x407a72,'FORMAT_FONT_SIZE')),_0x133395['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x407a72,'FORMAT_FONT_FAMILY')),_0x133395['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x407a72,'FORMAT_FONT_COLOR')),_0x133395['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x407a72,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe5a572=this['editor'],_0x2d78f0=_0xe5a572['locale'];_0xe5a572['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17282b=>{const _0x523564=_0x2d78f0['t'];if('formatInline'!=_0x17282b['type'])return;const {data:_0x2b056f}=_0x17282b;if(null!=_0x2b056f){if('fontSize'==_0x2b056f['commandName']){const _0x58539a=_0x2b056f['commandParams'][0x0]['value'];if(_0x58539a){const _0x2c203d=_0x523564(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x19386a=>_0x19386a['model']==_0x58539a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2d78f0,'*Set\x20font\x20size:*\x20%0',_0x2c203d)};}return{'type':'format','content':o(_0x2d78f0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2b056f['commandName']){const _0x2e7996=_0x2b056f['commandParams'][0x0]['value'];return _0x2e7996?{'type':'format','content':o(_0x2d78f0,'*Set\x20font\x20family:*\x20%0',_0x2e7996)}:{'type':'format','content':o(_0x2d78f0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2b056f['commandName']){const _0xdbdec6=_0x2b056f['commandParams'][0x0]['value'];if(_0xdbdec6){const _0x2ecc51=_0x1ca263(this['editor']['config']['get']('fontColor.colors'))['find'](_0x23c217=>_0x23c217['model']==_0xdbdec6);let _0x56a53d=_0xdbdec6,_0x12a03d='';return _0x2ecc51&&(_0x56a53d=_0x2ecc51['label'],_0x12a03d=_0x523564(_0x56a53d)['toLowerCase']()),{'type':'format','content':o(_0x2d78f0,'*Set\x20font\x20color:*\x20%0',_0x12a03d)['trim'](),'color':{'value':_0xdbdec6,'title':_0x12a03d||_0x56a53d}};}return{'type':'format','content':o(_0x2d78f0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2b056f['commandName']){const _0x4b01e4=_0x2b056f['commandParams'][0x0]['value'];if(_0x4b01e4){const _0x491e72=_0x1ca263(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x458563=>_0x458563['model']==_0x4b01e4);let _0x9047c=_0x4b01e4,_0x1469a4='';return _0x491e72&&(_0x9047c=_0x491e72['label'],_0x1469a4=_0x523564(_0x9047c)['toLowerCase']()),{'type':'format','content':o(_0x2d78f0,'*Set\x20font\x20background\x20color:*\x20%0',_0x1469a4)['trim'](),'color':{'value':_0x4b01e4,'title':_0x1469a4||_0x9047c}};}return{'type':'format','content':o(_0x2d78f0,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x53f614{['afterInit'](){const {plugins:_0xb0d92}=this['editor'];_0xb0d92['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0xb0d92['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0xcf9567,plugins:_0x1fbad3,commands:_0x1b3157}=this['editor'],_0x539464=_0x1fbad3['get']('TrackChangesEditing');_0x1b3157['get']('footnotesStyle')&&_0x539464['enableDefaultAttributesIntegration']('footnotesStyle'),_0x1b3157['get']('footnotesStart')&&_0x539464['enableDefaultAttributesIntegration']('footnotesStart'),_0x539464['registerBlockAttribute']('footnotesListStyle'),_0x539464['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0xcf9567,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x539464['registerBlockAttribute']('footnotesListStart'),_0x539464['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0xcf9567,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x3f804f=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x321c89,commands:_0x1db442}=this['editor'];_0x1db442['get']('insertFootnote')&&_0x3f804f['enableCommand']('insertFootnote'),_0x3f804f['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4fb37d=>o(_0x321c89,'ELEMENT_FOOTNOTE_REF',_0x4fb37d)),_0x3f804f['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x2c12e5=>o(_0x321c89,'ELEMENT_FOOTNOTE_DEFINITION',_0x2c12e5)),_0x3f804f['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3d8426=>o(_0x321c89,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3d8426));}}class nt extends _0x53f614{['afterInit'](){const _0x5c84e8=this['editor'],_0x3b0880=_0x5c84e8['plugins']['get']('TrackChangesEditing'),_0x263ec5=_0x5c84e8['commands']['get']('copyFormat'),_0x176df4=_0x5c84e8['commands']['get']('pasteFormat');_0x263ec5&&_0x176df4&&(_0x3b0880['enableDefaultAttributesIntegration']('pasteFormat'),_0x3b0880['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2431ff=this['editor'],_0xd3500b=_0x2431ff['locale'];_0x2431ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37fe93=>{if('formatBlock'!=_0x37fe93['type']&&'formatInline'!=_0x37fe93['type'])return;const {data:_0xc69b8a}=_0x37fe93;if(_0xc69b8a&&'pasteFormat'===_0xc69b8a['commandName']){const _0x3005eb=[],_0x2a2c8c=_0xc69b8a['commandParams'][0x0];for(const [_0x45cdea,_0x3d1e80]of Object['entries'](_0x2a2c8c))_0x3005eb['push'](ro(_0x2431ff,_0x45cdea,_0x3d1e80));return _0x3005eb['length']?{'type':'format','content':o(_0xd3500b,'*Set\x20format\x20to:*\x20%0',_0x3005eb['join'](',\x20'))}:{'type':'format','content':o(_0xd3500b,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x287d7a,_0x29dffb,_0x3230b3){const _0x478bec=_0x287d7a['locale']['t'],_0x263d0f=_0x29dffb['split'](/(?=[A-Z])/)['join']('\x20'),_0x131ef7=_0x478bec(_0x263d0f['charAt'](0x0)['toUpperCase']()+_0x263d0f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3230b3)return _0x131ef7;if('fontColor'===_0x29dffb||'fontBackgroundColor'===_0x29dffb){const _0x442c68=_0x1ca263(_0x287d7a['config']['get']('fontColor.colors'))['find'](_0x23b149=>_0x23b149['model']==_0x3230b3);return _0x131ef7+'\x20('+(_0x442c68?_0x478bec(_0x442c68['label'])['toLowerCase']():_0x3230b3)+')';}if('fontSize'===_0x29dffb&&isNaN(parseFloat(_0x3230b3))){const _0x302389=_0x287d7a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x287d7a['config']['get']('fontSize.options'))['find'](_0x33e380=>_0x33e380['model']==_0x3230b3);return _0x131ef7+'\x20('+(_0x302389?_0x478bec(_0x302389['title'])['toLowerCase']():_0x3230b3)+')';}return _0x131ef7+'\x20('+_0x3230b3+')';}class it extends _0x53f614{['_headingOptions'];['afterInit'](){const _0x50145d=this['editor'];if(!_0x50145d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x50145d['config']['get']('heading.options');const _0x521396=_0x50145d['locale'],_0x10d9eb=_0x50145d['plugins']['get']('TrackChangesEditing');_0x10d9eb['enableDefaultAttributesIntegration']('heading');for(const _0x3f2b55 of this['_headingOptions'])'paragraph'!=_0x3f2b55['model']&&_0x10d9eb['descriptionFactory']['registerElementLabel'](_0x3f2b55['model'],_0x40f393=>{const _0x4c2734=this['_getHeadingLevel'](_0x3f2b55['model']);return null!==_0x4c2734?_0x2353da(_0x40f393,_0x4c2734):_0x37ebfe(_0x40f393,_0x3f2b55['title']);});function _0x2353da(_0x186281,_0x2fd4bb){return o(_0x521396,'ELEMENT_HEADING',[_0x186281,_0x2fd4bb]);}function _0x37ebfe(_0x1d2c6d,_0x5945ae){return o(_0x521396,'ELEMENT_HEADING_CUSTOM',[_0x1d2c6d,_0x5945ae]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f2d73=this['editor'],_0x2c6691=_0x1f2d73['locale'];function _0x30db59(_0x198916,_0x26418a){return o(_0x2c6691,'ELEMENT_HEADING_CUSTOM',[_0x198916,_0x26418a]);}_0x1f2d73['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x350985=>{if('formatBlock'!=_0x350985['type'])return;const {data:_0x44219b}=_0x350985;if(_0x44219b&&'heading'==_0x44219b['commandName']){const _0x3fd361=_0x44219b['commandParams'][0x0]['value'],_0x511c2b=this['_getHeadingLevel'](_0x3fd361);if(null!==_0x511c2b)return{'type':'format','content':o(_0x2c6691,'*Change\x20to:*\x20%0',(_0x173664=0x1,_0x124b85=_0x511c2b,o(_0x2c6691,'ELEMENT_HEADING',[_0x173664,_0x124b85])))};const _0x22dbb5=this['_headingOptions']['find'](_0x40d27a=>_0x40d27a['model']===_0x3fd361)['title'];return{'type':'format','content':o(_0x2c6691,'*Change\x20to:*\x20%0',_0x30db59(0x1,_0x22dbb5))};}var _0x173664,_0x124b85;});}['_getHeadingLevel'](_0x12e737){const _0x3b69a8=_0x12e737['match'](/^heading(\d+)/);if(_0x3b69a8)return _0x3b69a8[0x1];const _0x1b51d7=this['_headingOptions']?.['find'](_0x7ad32f=>_0x7ad32f['model']==_0x12e737);if(_0x1b51d7&&_0x1b51d7['view']){const _0x3486ff=_0x1b51d7['view'],_0x10a943=(_0x3486ff['name']??_0x3486ff)['match'](/^h(\d+)/);if(_0x10a943)return _0x10a943[0x1];}return null;}}class et extends _0x53f614{['afterInit'](){const _0x507198=this['editor'];if(!_0x507198['plugins']['has']('HighlightEditing'))return;const _0x40c524=_0x507198['plugins']['get']('TrackChangesEditing'),_0x2439c8=_0x507198['locale'];_0x40c524['enableDefaultAttributesIntegration']('highlight'),_0x40c524['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2439c8,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35bbcb=this['editor'],_0x4b4dbc=_0x35bbcb['locale'];_0x35bbcb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24f334=>{if('formatInline'!=_0x24f334['type'])return;const {data:_0x4a332b}=_0x24f334;if(_0x4a332b&&'highlight'==_0x4a332b['commandName']){const _0x21b96c=_0x4b4dbc['t'],_0x44c557=_0x4a332b['commandParams'][0x0]['value'];if(_0x44c557){const _0x3508b2=_0x35bbcb['config']['get']('highlight.options')['find'](_0x40bd50=>_0x40bd50['model']==_0x44c557),_0x1e215e=_0x21b96c(_0x3508b2['title'])['toLowerCase']();return{'type':'format','content':o(_0x4b4dbc,'*Set\x20highlight:*\x20%0',_0x1e215e),'color':{'value':_0x3508b2['color'],'title':_0x3508b2['title']}};}return{'type':'format','content':o(_0x4b4dbc,'*Remove\x20highlight*',o(_0x4b4dbc,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x53f614{['afterInit'](){const _0x2a6614=this['editor'];if(!_0x2a6614['plugins']['has']('HorizontalLineEditing'))return;_0x2a6614['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x855e6b=_0x2a6614['plugins']['get']('TrackChangesEditing'),_0x2caa0a=_0x2a6614['locale'];_0x855e6b['descriptionFactory']['registerElementLabel']('horizontalLine',_0xca19aa=>o(_0x2caa0a,'ELEMENT_HORIZONTAL_LINE',_0xca19aa));}}class ot extends _0x53f614{['afterInit'](){const _0x4cbc4e=this['editor'];if(!_0x4cbc4e['plugins']['has']('HtmlEmbed'))return;const _0x9396c0=_0x4cbc4e['plugins']['get']('TrackChangesEditing'),_0xf0c26d=_0x4cbc4e['locale'];_0x9396c0['descriptionFactory']['registerElementLabel']('rawHtml',_0x19b7c5=>o(_0xf0c26d,'ELEMENT_HTML_EMBED',_0x19b7c5)),_0x9396c0['enableDefaultAttributesIntegration']('htmlEmbed'),_0x9396c0['descriptionFactory']['registerDescriptionCallback'](_0x30b845=>{if('attribute'!=_0x30b845['type'])return;const {data:_0x150300}=_0x30b845;if(_0x150300&&'value'==_0x150300['key']&&_0x30b845['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x156c36=o(_0xf0c26d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xf0c26d,'*Change\x20%0\x20content*',_0x156c36)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9ee8b7=this['editor'],_0xaecd60=_0x9ee8b7['locale'];_0x9ee8b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d5463=>{if('formatBlock'!=_0x4d5463['type'])return;const {data:_0x314eb6}=_0x4d5463;if(_0x314eb6&&'htmlEmbed'==_0x314eb6['commandName']){const _0x45df86=o(_0xaecd60,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xaecd60,'*Change\x20%0\x20content*',_0x45df86)};}});}}class rt extends _0x53f614{['afterInit'](){const _0x5d78ce=this['editor'];if(!_0x5d78ce['plugins']['has']('ImageEditing'))return;const _0x464fff=_0x5d78ce['plugins']['get']('TrackChangesEditing'),_0x3eba91=_0x5d78ce['plugins']['get']('ImageUtils'),_0x5c27f8=_0x5d78ce['locale'];_0x464fff['enableCommand']('insertImage'),_0x464fff['descriptionFactory']['registerElementLabel']('imageBlock',_0x23e4b1=>o(_0x5c27f8,'ELEMENT_IMAGE',_0x23e4b1)),_0x464fff['descriptionFactory']['registerElementLabel']('imageInline',_0x3d16c0=>o(_0x5c27f8,'ELEMENT_INLINE_IMAGE',_0x3d16c0)),_0x464fff['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5c27f8,'ELEMENT_CAPTION')),_0x5d78ce['plugins']['has']('ImageUploadEditing')&&_0x464fff['enableCommand']('uploadImage'),_0x5d78ce['plugins']['has']('ImageBlockEditing')&&_0x5d78ce['plugins']['has']('ImageInlineEditing')&&(_0x464fff['enableCommand']('imageTypeInline',(_0x13d521,_0x1e5ec3)=>{const _0x2c7479=_0x3eba91['getClosestSelectedImageElement'](_0x5d78ce['model']['document']['selection']);_0x5d78ce['model']['change'](()=>{_0x464fff['markBlockFormat'](_0x2c7479,{'commandName':'imageTypeInline','commandParams':[_0x1e5ec3]},[],'convertBlockImageToInline');});}),_0x464fff['enableCommand']('imageTypeBlock',(_0x35d3ad,_0x48833d)=>{_0x5d78ce['model']['change'](_0x5e3278=>{let _0x556982=_0x3eba91['getClosestSelectedImageElement'](_0x5d78ce['model']['document']['selection']),_0x4069a6=_0x5e3278['createRangeOn'](_0x556982);const _0x5e7428=_0x3bbd7e['fromPosition'](_0x4069a6['start'],'toPrevious'),_0x12d24e=_0x3bbd7e['fromPosition'](_0x4069a6['end'],'toNext');_0x464fff['forceDefaultExecution'](()=>_0x35d3ad(_0x48833d)),_0x556982=_0x3eba91['getClosestSelectedImageElement'](_0x5d78ce['model']['document']['selection']),_0x4069a6=_0x5e3278['createRangeOn'](_0x556982);const _0x3a86e6=_0x5e3278['createRange'](_0x5e7428,_0x12d24e);_0x5e7428['detach'](),_0x12d24e['detach'](),_0x464fff['markBlockFormat'](_0x556982,{'commandName':'imageTypeInline','commandParams':[_0x48833d]},[],'convertInlineImageToBlock'),_0x3a86e6['start']['isBefore'](_0x4069a6['start'])&&_0x464fff['markInsertion'](_0x5e3278['createRange'](_0x3a86e6['start'],_0x4069a6['start']),'convertInlineImageToBlock'),_0x4069a6['end']['isBefore'](_0x3a86e6['end'])&&_0x464fff['markInsertion'](_0x5e3278['createRange'](_0x4069a6['end'],_0x3a86e6['end']),'convertInlineImageToBlock');});}),_0x464fff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x464fff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x464fff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x464fff['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x464fff['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x464fff['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x12b0bf])=>{const _0x3cf3ab=_0x464fff['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2e5620=_0x12b0bf['start'],_0xa10907=_0x12b0bf['end'];const _0x357b55=_0x5d78ce['model']['schema']['getNearestSelectionRange'](_0x2e5620,'backward'),_0x586ae3=_0x5d78ce['model']['schema']['getNearestSelectionRange'](_0xa10907,'forward');_0x357b55['isCollapsed']&&(_0x2e5620=_0x357b55['start']),_0x586ae3['isCollapsed']&&(_0xa10907=_0x586ae3['end']),_0x3cf3ab([_0x5d78ce['model']['createRange'](_0x2e5620,_0xa10907)]);}),_0x464fff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x46eeff),_0x464fff['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x46eeff)),_0x5d78ce['plugins']['has']('ImageCaptionEditing')&&(_0x464fff['enableCommand']('toggleImageCaption',(_0xdfd057,_0x2d1f8c)=>{const _0x20a2ce=_0x5d78ce['plugins']['get']('ImageCaptionUtils');let _0x87b300=_0x3eba91['getClosestSelectedImageElement'](_0x5d78ce['model']['document']['selection']),_0x47c5a9=_0x20a2ce['getCaptionFromImageModelElement'](_0x87b300);_0x5d78ce['model']['change'](()=>{if(_0x47c5a9)return void _0x464fff['markDeletion'](_0x5d78ce['model']['createRangeOn'](_0x47c5a9));const _0x18859a=_0x3eba91['isBlockImage'](_0x87b300);_0xdfd057(_0x2d1f8c),_0x87b300=_0x3eba91['getClosestSelectedImageElement'](_0x5d78ce['model']['document']['selection']),_0x47c5a9=_0x20a2ce['getCaptionFromImageModelElement'](_0x87b300),_0x464fff['markInsertion'](_0x5d78ce['model']['createRangeOn'](_0x47c5a9),_0x18859a?null:'imageCaption');});}),_0x464fff['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x46eeff));const _0x36a73f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x222d03(_0x27bcb7,_0xb88671){const _0x55b683=_0x36a73f['findIndex'](({type:_0x3d0b18,subType:_0xb1745e})=>_0x27bcb7['type']==_0x3d0b18&&_0x27bcb7['subType']==_0xb1745e),_0x18e7c6=_0x36a73f['findIndex'](({type:_0x6ec8b0,subType:_0x3a257c})=>_0xb88671['type']==_0x6ec8b0&&_0xb88671['subType']==_0x3a257c);if(_0x55b683<0x0||_0x18e7c6<0x0)return!0x1;const _0x8052f8=_0x27bcb7['getFirstRange'](),_0x26403a=_0xb88671['getFirstRange']();if((0x0==_0x55b683||0x1==_0x55b683)&&0x2==_0x18e7c6&&_0x8052f8['isIntersecting'](_0x26403a))return!0x0;if(0x2==_0x55b683&&0x3==_0x18e7c6){const _0x223d0b=_0x464fff['_findSuggestions'](_0x8052f8,'insertion')['filter'](({suggestion:_0x3d65ff,meta:_0x5aaad1})=>_0x5aaad1['isOwn']&&'convertInlineImageToBlock'==_0x3d65ff['subType']);if(_0x223d0b['length']>0x1&&_0x26403a['end']['isEqual'](_0x8052f8['start']))return!0x0;if(0x1==_0x223d0b['length']&&(_0x8052f8['start']['isEqual'](_0x26403a['end'])||_0x8052f8['end']['isEqual'](_0x26403a['start'])))return!0x0;}if(0x3==_0x55b683&&0x3==_0x18e7c6&&_0x8052f8['start']['isBefore'](_0x26403a['start'])){const _0x6cae83=_0x8052f8['end']['nodeAfter'],_0x226bd9=_0x26403a['start']['nodeBefore'];return _0x3eba91['isBlockImage'](_0x6cae83)&&_0x6cae83===_0x226bd9;}return!0x1;}function _0x46eeff(_0x18919c,_0x495aba){return _0x222d03(_0x18919c,_0x495aba)?[_0x18919c,_0x495aba]:_0x222d03(_0x495aba,_0x18919c)?[_0x495aba,_0x18919c]:null;}_0x5d78ce['plugins']['has']('ImageResize')&&(_0x464fff['enableDefaultAttributesIntegration']('resizeImage'),_0x464fff['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5c27f8,'FORMAT_IMAGE_SIZE'))),_0x5d78ce['plugins']['has']('ImageTextAlternativeEditing')&&_0x464fff['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5d78ce['plugins']['has']('PictureEditing')&&_0x464fff['descriptionFactory']['registerDescriptionCallback'](_0x172bd9=>{if('attribute'!=_0x172bd9['type'])return;const {data:_0x6c79a5}=_0x172bd9;return _0x6c79a5&&'sources'==_0x6c79a5['key']?{'type':'format','content':''}:void 0x0;}),_0x5d78ce['plugins']['has']('ImageSizeAttributes')&&_0x464fff['descriptionFactory']['registerDescriptionCallback'](_0x49e97b=>{if('attribute'!=_0x49e97b['type'])return;const {data:_0x5b9f10}=_0x49e97b;return!_0x5b9f10||'width'!=_0x5b9f10['key']&&'height'!=_0x5b9f10['key']?void 0x0:{'type':'format','content':''};}),_0x464fff['descriptionFactory']['registerDescriptionCallback'](_0x32ab28=>{if(!!_0x36a73f['find'](({type:_0x279362,subType:_0x7b2ee6})=>_0x32ab28['type']==_0x279362&&_0x32ab28['subType']==_0x7b2ee6))return _0x32ab28['previous']?{}:void 0x0;}),_0x464fff['descriptionFactory']['registerDescriptionCallback'](_0x168f23=>{if('insertion'==_0x168f23['type']||'deletion'==_0x168f23['type']){const _0x5649bf=_0x168f23['getContainedElement']();if(_0x5649bf&&_0x5649bf['is']('element','caption'))return{'type':'insertion'==_0x168f23['type']?'addObject':'removeObject','element':_0x5649bf,'quantity':0x1};}}),_0x464fff['descriptionFactory']['registerDescriptionCallback'](_0x12b5b7=>'formatBlock'==_0x12b5b7['type']&&'convertInlineImageToBlock'==_0x12b5b7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x12b5b7['type']&&'convertBlockImageToInline'==_0x12b5b7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x464fff['descriptionFactory']['registerDescriptionCallback'](_0x5b6795=>{if('attribute'!=_0x5b6795['type'])return;const {data:_0x3119dc}=_0x5b6795;if(!_0x3119dc||'alt'!=_0x3119dc['key'])return;const _0x2794ca=_0x3119dc['newValue'];return _0x2794ca?{'type':'format','content':o(_0x5c27f8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2794ca+'\x22')}:{'type':'format','content':o(_0x5c27f8,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e4cb5=this['editor'],_0x4ddc61=_0x4e4cb5['locale'];_0x4e4cb5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9701a0=>{if('formatBlock'!=_0x9701a0['type']&&'formatInline'!=_0x9701a0['type'])return;const {data:_0x1d2782}=_0x9701a0;if(_0x1d2782){if('imageTextAlternative'==_0x1d2782['commandName']){const _0x24a423=_0x1d2782['commandParams'][0x0]['newValue'];return _0x24a423?{'type':'format','content':o(_0x4ddc61,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x24a423+'\x22')}:{'type':'format','content':o(_0x4ddc61,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1d2782['commandName']){const _0x5d93bb=_0x1d2782['commandParams'][0x0]['width'];return _0x5d93bb?{'type':'format','content':o(_0x4ddc61,'*Set\x20image\x20width:*\x20%0',_0x5d93bb)}:{'type':'format','content':o(_0x4ddc61,'*Reset\x20image\x20width*')};}}});}}class at extends _0x53f614{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x470c71=this['editor']['locale'],_0x5e661c=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e661c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5e661c['descriptionFactory']['registerDescriptionCallback'](_0x11186e=>{if('attribute'!=_0x11186e['type'])return;const {data:_0xb6e7ee}=_0x11186e;return _0xb6e7ee&&'src'==_0xb6e7ee['key']?_0xb6e7ee['newValue']&&_0xb6e7ee['oldValue']?{'type':'format','content':o(_0x470c71,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1d4705=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d4705['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1d4705['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d4705['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1d4705['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cb17f=this['editor'],_0x47f3a7=_0x1cb17f['locale'];_0x1cb17f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40061f=>{if('formatBlock'!=_0x40061f['type']&&'formatInline'!=_0x40061f['type'])return;const {data:_0x5d9c12}=_0x40061f;if(!_0x5d9c12||'replaceImageSource'!=_0x5d9c12['commandName'])return;return{'type':'format','content':o(_0x47f3a7,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x53f614{['afterInit'](){const _0x12cbca=this['editor'];if(!_0x12cbca['plugins']['has']('ImageStyleEditing'))return;const _0x5dbdc1=_0x12cbca['plugins']['get']('TrackChangesEditing'),_0x3737f2=_0x12cbca['plugins']['get']('ImageUtils'),_0xd7c819={};_0x5dbdc1['enableCommand']('imageStyle',(_0x4f9f8b,_0x58be1f)=>{const _0x938e27=_0x12cbca['plugins']['get']('Users')['me'],_0x2eefb8=_0x12cbca['commands']['get']('imageStyle');let _0x22a45c=_0x3737f2['getClosestSelectedImageElement'](_0x12cbca['model']['document']['selection']),_0x558391=_0x12cbca['model']['createRangeOn'](_0x22a45c),_0x346ea2=_0x2eefb8['value'];if(_0x346ea2==_0x58be1f['value'])return;const _0x5aa0ac={'commandName':'imageStyle','commandParams':[_0x58be1f],'formatGroupId':_0x52b521()};_0x12cbca['model']['change'](()=>{if(_0x5dbdc1['getSuggestions']()['filter'](_0x260d73=>_0x260d73['isInContent']&&_0x938e27==_0x260d73['author']&&('formatBlock'==_0x260d73['type']||'formatInline'==_0x260d73['type'])&&('imageStylePreApply'==_0x260d73['subType']||'imageStylePostApply'==_0x260d73['subType'])&&_0x260d73['getFirstRange']()['isEqual'](_0x558391))['forEach'](_0x47a1df=>_0x5dbdc1['discardSuggestion'](_0x47a1df['head'])),_0x22a45c=_0x3737f2['getClosestSelectedImageElement'](_0x12cbca['model']['document']['selection']),_0x558391=_0x12cbca['model']['createRangeOn'](_0x22a45c),_0x2eefb8['refresh'](),_0x12cbca['commands']['get']('imageTypeInline')['refresh'](),_0x12cbca['commands']['get']('imageTypeBlock')['refresh'](),_0x346ea2=_0x2eefb8['value'],_0x346ea2!=_0x58be1f['value'])return _0x3737f2['isInlineImage'](_0x22a45c)&&_0x2eefb8['shouldConvertImageType'](_0x58be1f['value'],_0x22a45c)?(_0x4f9f8b({..._0x58be1f,'setImageSizes':!0x1}),_0x22a45c=_0x3737f2['getClosestSelectedImageElement'](_0x12cbca['model']['document']['selection']),void _0x5dbdc1['markBlockFormat'](_0x22a45c,{..._0x5aa0ac,'commandReversedParams':[{'value':_0x346ea2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3737f2['isBlockImage'](_0x22a45c)?_0x5dbdc1['markBlockFormat'](_0x22a45c,_0x5aa0ac,[],'imageStylePostApply'):_0x5dbdc1['markInlineFormat'](_0x558391,_0x5aa0ac,'imageStylePostApply'));});});for(const _0x42cba0 of _0x12cbca['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xd7c819[_0x42cba0['name']]=_0x42cba0['title']['toLowerCase']();_0x5dbdc1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5dbdc1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5dbdc1['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5dbdc1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x132b7b])=>{_0x3737f2['setImageNaturalSizeAttributes'](_0x132b7b['getContainedElement']());}),_0x5dbdc1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4d7564,_0x453a24)=>{_0x5dbdc1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4d7564,{'commandName':_0x453a24['commandName'],'commandParams':_0x453a24['commandReversedParams']});}),_0x5dbdc1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xc14392,_0x38b834){if(_0x353dd0(_0xc14392,_0x38b834))return[_0xc14392,_0x38b834];if(_0x353dd0(_0x38b834,_0xc14392))return[_0x38b834,_0xc14392];return null;});const _0xb5e9ed=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x353dd0(_0x1d7505,_0x193139){const _0x3b3fc2=_0xb5e9ed['findIndex'](({type:_0x4ee2a1,subType:_0x5e96e4})=>_0x1d7505['type']==_0x4ee2a1&&_0x1d7505['subType']==_0x5e96e4),_0x5e7f5b=_0xb5e9ed['findIndex'](({type:_0x32dcad,subType:_0x16e62e})=>_0x193139['type']==_0x32dcad&&_0x193139['subType']==_0x16e62e);if(_0x3b3fc2<0x0||_0x5e7f5b<0x0)return!0x1;const _0x5881a4=_0x1d7505['getFirstRange'](),_0x1a3bd8=_0x193139['getFirstRange']();if((0x0==_0x3b3fc2||0x1==_0x3b3fc2)&&0x2==_0x5e7f5b&&_0x5881a4['isIntersecting'](_0x1a3bd8))return!0x0;if(0x2==_0x3b3fc2&&0x3==_0x5e7f5b){const _0x46b1fc=_0x5dbdc1['_findSuggestions'](_0x5881a4,'insertion')['filter'](({suggestion:_0x1949e0,meta:_0x8ce6a8})=>_0x8ce6a8['isOwn']&&'convertInlineImageToBlock'==_0x1949e0['subType']);if(_0x46b1fc['length']>0x1&&_0x1a3bd8['end']['isEqual'](_0x5881a4['start']))return!0x0;if(0x1==_0x46b1fc['length']&&(_0x5881a4['start']['isEqual'](_0x1a3bd8['end'])||_0x5881a4['end']['isEqual'](_0x1a3bd8['start'])))return!0x0;}if(0x3==_0x3b3fc2&&0x3==_0x5e7f5b&&_0x5881a4['start']['isBefore'](_0x1a3bd8['start'])){const _0x43a25e=_0x5881a4['end']['nodeAfter'],_0x49037c=_0x1a3bd8['start']['nodeBefore'];return _0x3737f2['isBlockImage'](_0x43a25e)&&_0x43a25e===_0x49037c;}return!0x1;}_0x12cbca['model']['document']['registerPostFixer'](()=>{let _0x56a425=!0x1;const _0x37dbc3=Array['from'](_0x12cbca['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa7e98b,data:_0x4ea74f}of _0x37dbc3){const {group:_0xc6ea77,type:_0x59826f,subType:_0x165f2e,id:_0x3b5727}=_0x5dbdc1['_splitMarkerName'](_0xa7e98b);if('suggestion'==_0xc6ea77&&_0x5dbdc1['hasSuggestion'](_0x3b5727)){if('formatBlock'==_0x59826f&&('imageStylePreApply'==_0x165f2e||'imageStylePostApply'==_0x165f2e)){const _0x20e52f=_0x5dbdc1['getSuggestion'](_0x3b5727);if(_0x4ea74f['newRange']){const _0xab6d49=_0x20e52f['getFirstRange']()['getContainedElement']();if(_0x3737f2['isBlockImage'](_0xab6d49))continue;_0x5dbdc1['discardSuggestion'](_0x20e52f),_0x56a425=!0x0;}}if('insertion'==_0x59826f&&'imageCaption'==_0x165f2e&&!_0x4ea74f['newRange']){const _0x48853=_0x5dbdc1['getSuggestion'](_0x3b5727);_0x48853['next']&&_0x48853['next']['isInContent']&&(_0x5dbdc1['discardSuggestion'](_0x48853['next']),_0x56a425=!0x0);}}}return _0x56a425;}),this['_registerLegacyDescription'](_0xd7c819);}['_registerLegacyDescription'](_0x4b2cfa){const _0x6cf266=this['editor'],_0x5ee0bc=_0x6cf266['locale'];_0x6cf266['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x414939=>{if('formatBlock'!=_0x414939['type']&&'formatInline'!=_0x414939['type'])return;const {data:_0x4ba4f6}=_0x414939;if(!_0x4ba4f6||'imageStyle'!=_0x4ba4f6['commandName'])return;const _0x40e987=_0x4ba4f6['commandParams'][0x0]['value'];return _0x5a4541('side'===_0x40e987?o(_0x5ee0bc,'FORMAT_SIDE_IMAGE'):_0x4b2cfa[_0x40e987]||_0x40e987);function _0x5a4541(_0xe4e1ad){return{'type':'format','content':o(_0x5ee0bc,'*Format:*\x20%0',_0xe4e1ad)};}});}}class ut extends _0x53f614{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4591d0){super(_0x4591d0),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xb3f05a=this['editor'],_0x384392=_0xb3f05a['commands']['get']('importWord'),_0xa1d2c3=_0xb3f05a['commands']['get']('trackChanges');_0x384392&&(_0x384392['on']('execute',(_0x24ec4c,[,_0x1ebd1d])=>{this['_trackChangesValueDuringImport']=_0xa1d2c3['value'],_0x1ebd1d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x384392,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x384392,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xa1d2c3['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xb3f05a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4b0da7,_0x298f61){const {suggestions:_0x59bdc7}=_0x298f61,_0x4fd601=this['editor']['commands']['get']('trackChanges'),_0x47c123=_0x4fd601['value'];this['_trackChangesValueDuringImport']!==_0x47c123&&(_0x4fd601['execute'](),this['_trackChangesExecuted']=!0x0),_0x59bdc7&&_0x59bdc7['forEach'](({id:_0x324c90,type:_0xb9ddcc,author:_0x34ca6a,created_at:_0x98241f})=>{const _0x4739cc={'id':_0x324c90,'type':_0xb9ddcc,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x34ca6a,'createdAt':_0x98241f?new Date(_0x98241f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4739cc);});}}class ft extends _0x53f614{['afterInit'](){const _0x356ed8=this['editor'],_0x5c3bde=_0x356ed8['plugins']['get']('TrackChangesEditing');if(_0x356ed8['plugins']['has']('IndentEditing')&&(_0x5c3bde['enableCommand']('indent'),_0x5c3bde['enableCommand']('outdent')),_0x356ed8['plugins']['has']('IndentBlock')){for(const _0x5bfabf of['indentBlock','outdentBlock'])_0x5c3bde['enableDefaultAttributesIntegration'](_0x5bfabf);}const _0x1f0f7c=_0x356ed8['locale'];_0x5c3bde['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1f0f7c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe143e2=this['editor'],_0x34ea7d=_0xe143e2['locale'],_0x4492dd=_0xe143e2['plugins']['get']('TrackChangesEditing');_0x4492dd['descriptionFactory']['registerDescriptionCallback'](_0x1fce48=>{if('formatBlock'!=_0x1fce48['type'])return;const {data:_0x227f18}=_0x1fce48;if(!_0x227f18)return;if('indentBlock'!=_0x227f18['commandName']&&'outdentBlock'!=_0x227f18['commandName'])return;const _0x342507=_0x1fce48['getItems']()[0x0],_0x10303c=_0x4492dd['descriptionFactory']['getItemLabel'](_0x342507);return'indentBlock'==_0x227f18['commandName']?{'type':'format','content':o(_0x34ea7d,'*Indent:*\x20%0',_0x10303c)}:'outdentBlock'==_0x227f18['commandName']?{'type':'format','content':o(_0x34ea7d,'*Outdent:*\x20%0',_0x10303c)}:void 0x0;});}}class ht extends _0x53f614{static get['requires'](){return[_0x1f8f58];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x53f614{['afterInit'](){const _0x55cce4=this['editor'];if(!_0x55cce4['plugins']['has']('LinkEditing'))return;const _0x4bdcba=_0x55cce4['plugins']['get']('TrackChangesEditing'),_0x18f3d3=_0x55cce4['commands']['get']('link');_0x4bdcba['enableDefaultAttributesIntegration']('link'),_0x4bdcba['enableDefaultAttributesIntegration']('unlink');for(const _0x5d33ad of _0x18f3d3['manualDecorators'])_0x4bdcba['descriptionFactory']['registerAttributeLabel'](_0x5d33ad['id'],'link\x20('+_0x5d33ad['label']['toLowerCase']()+')');_0x4bdcba['descriptionFactory']['registerDescriptionCallback'](_0x3a6122=>{if('attribute'!=_0x3a6122['type'])return;const {data:_0x1819a8}=_0x3a6122;if(!_0x1819a8||'linkHref'!=_0x1819a8['key'])return;const _0x4d9bcb=_0x1819a8['newValue'],_0x3bf478=_0x55cce4['locale'];return{'type':'format','content':null==_0x4d9bcb?o(_0x3bf478,'*Remove\x20link*'):o(_0x3bf478,'*Set\x20link:*\x20%0','\x22'+_0x4d9bcb+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x290e90=this['editor'],_0x491401=_0x290e90['locale'];_0x290e90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x251d81=>{if('formatInline'!=_0x251d81['type'])return;const {data:_0x1f6c85}=_0x251d81;if(_0x1f6c85){if('link'==_0x1f6c85['commandName']){const _0x28237d=_0x1f6c85['commandParams'][0x0];return{'type':'format','content':o(_0x491401,'*Set\x20link:*\x20%0','\x22'+_0x28237d+'\x22')};}return'unlink'==_0x1f6c85['commandName']?{'type':'format','content':o(_0x491401,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x53f614{['afterInit'](){const _0x3b50f4=this['editor'],_0x24bc83=_0x3b50f4['locale'];if(!_0x3b50f4['plugins']['has']('LegacyListEditing'))return;const _0x3865eb=_0x3b50f4['plugins']['get']('TrackChangesEditing'),_0x5e3210=_0x3b50f4['plugins']['has']('LegacyTodoListEditing');function _0x5ad259(_0x34557e){return()=>{const _0x511110=_0x3b50f4['model']['document']['selection'],_0x162079=_0x3b50f4['commands']['get'](_0x34557e);if(_0x162079['value'])return void _0x3b50f4['execute']('paragraph',{});const _0x48d847=_0x34557e['slice'](0x0,-0x4),_0x2a0fdb=function(_0xe54df1,_0x157a5b,_0x1434b2){let _0x148066=Array['from'](_0xe54df1)['filter'](_0xf581c2=>function(_0x5957bb,_0x2e1469){return _0x2e1469['checkChild'](_0x5957bb['parent'],'listItem')&&!_0x2e1469['isObject'](_0x5957bb);}(_0xf581c2,_0x1434b2));_0x148066=_0x148066['filter'](_0x17e66c=>!_0x17e66c['is']('element','listItem')||_0x17e66c['getAttribute']('listType')!=_0x157a5b);const _0x42b408=new Set();for(const _0x3a6042 of _0x148066)_0x3a6042['is']('element','listItem')?_0x42b408['add'](Le(_0x3a6042)):_0x42b408['add'](_0x3a6042);return Array['from'](_0x42b408);}(_0x511110['getSelectedBlocks'](),_0x48d847,_0x3b50f4['model']['schema']);_0x3b50f4['model']['change'](()=>{for(const _0x111be0 of _0x2a0fdb)_0x3865eb['markBlockFormat'](_0x111be0,{'commandName':_0x34557e,'commandParams':[{'forceValue':!_0x162079['value']}],'formatGroupId':'blockName'},Ee(_0x111be0));});};}function _0x416330(_0x165a03){return()=>{const _0x35b22d=function(_0x4aeb54){let _0x49f414=Array['from'](_0x4aeb54);const _0x2d44d1=_0x49f414['findIndex'](_0x57f4bb=>'listItem'!=_0x57f4bb['name']);return _0x2d44d1>-0x1&&(_0x49f414=_0x49f414['slice'](0x0,_0x2d44d1)),_0x49f414;}(_0x3b50f4['model']['document']['selection']['getSelectedBlocks']()),_0x8a93f3=_0x3b50f4['model']['createRange'](_0x3b50f4['model']['createPositionAt'](_0x35b22d[0x0],'before'),_0x3b50f4['model']['createPositionAt'](_0x35b22d[_0x35b22d['length']-0x1],'end'));_0x3b50f4['model']['change'](()=>{_0x3865eb['markBlockFormat'](_0x8a93f3,{'commandName':_0x165a03,'commandParams':[],'formatGroupId':'listIndent'},function(_0x101168){const _0x2857f9=new Set();for(const _0x4aee13 of _0x101168){let _0x3577c7=_0x4aee13['nextSibling'];for(;_0x3577c7&&_0x3577c7['getAttribute']('listIndent')>_0x4aee13['getAttribute']('listIndent');)_0x2857f9['add'](_0x3577c7),_0x3577c7=_0x3577c7['nextSibling'];}return Array['from'](_0x2857f9);}(_0x35b22d));});};}_0x3865eb['enableCommand']('numberedList',_0x5ad259('numberedList')),_0x3865eb['enableCommand']('bulletedList',_0x5ad259('bulletedList')),_0x5e3210&&_0x3865eb['enableCommand']('todoList',_0x5ad259('todoList')),_0x3865eb['enableCommand']('indentList',_0x416330('indentList')),_0x3865eb['enableCommand']('outdentList',_0x416330('outdentList')),_0x5e3210&&_0x3865eb['enableCommand']('checkTodoList',()=>{const _0x2da277=_0x3b50f4['commands']['get']('checkTodoList'),_0x116f60=Array['from'](_0x2da277['_selectedElements']);_0x116f60['filter'](_0x616dd3=>_0x616dd3['getAttribute']('todoListChecked')!=_0x2da277['value']),_0x3b50f4['model']['change'](()=>{for(const _0x801679 of _0x116f60)_0x3865eb['markBlockFormat'](_0x801679,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2da277['value']}]});});}),_0x3865eb['descriptionFactory']['registerElementLabel']('listItem',_0x56f179=>o(_0x24bc83,'ELEMENT_LIST_ITEM',_0x56f179)),_0x3865eb['descriptionFactory']['registerDescriptionCallback'](_0x295013=>{if('formatBlock'!=_0x295013['type']&&'formatInline'!=_0x295013['type'])return;const {data:_0x6959a6}=_0x295013;if(_0x6959a6){if('numberedList'==_0x6959a6['commandName']||'bulletedList'==_0x6959a6['commandName']||'todoList'==_0x6959a6['commandName'])switch(_0x6959a6['commandName']['replace']('List','')){case'bulleted':return _0x471bb0(o(_0x24bc83,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x471bb0(o(_0x24bc83,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x471bb0(o(_0x24bc83,'ELEMENT_TODO_LIST'));}if('indentList'==_0x6959a6['commandName'])return{'type':'format','content':o(_0x24bc83,'*Indent:*\x20%0',o(_0x24bc83,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x6959a6['commandName'])return{'type':'format','content':o(_0x24bc83,'*Outdent:*\x20%0',o(_0x24bc83,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x6959a6['commandName'])return _0x6959a6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x24bc83,'*Check\x20item*')}:{'type':'format','content':o(_0x24bc83,'*Uncheck\x20item*')};}function _0x471bb0(_0x229621){return{'type':'format','content':o(_0x24bc83,'*Change\x20to:*\x20%0',_0x229621)};}});}}function Le(_0x51e888){const _0x49f9fa=_0x51e888['getAttribute']('listIndent');if(0x0==_0x49f9fa)return _0x51e888;let _0x48b555=_0x51e888;for(;_0x51e888['previousSibling']&&_0x51e888['previousSibling']['is']('element','listItem');){const _0x41c2d4=_0x51e888['previousSibling']['getAttribute']('listIndent');if(_0x41c2d4==_0x49f9fa)_0x48b555=_0x51e888['previousSibling'];else{if(_0x41c2d4<_0x49f9fa)break;}_0x51e888=_0x51e888['previousSibling'];}return _0x48b555;}function Ee(_0x2ade54){const _0x2e7269=[];if(_0x2ade54['is']('element','listItem')&&_0x2ade54['getAttribute']('listIndent')>0x0){let _0x1fb5cc=_0x2ade54['nextSibling'];for(;_0x1fb5cc&&'listItem'==_0x1fb5cc['name']&&_0x1fb5cc['getAttribute']('listIndent')==_0x2ade54['getAttribute']('listIndent');)_0x2e7269['push'](_0x1fb5cc),_0x1fb5cc=_0x1fb5cc['nextSibling'];}return _0x2e7269;}class mt extends _0x53f614{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x33944a=this['editor']['config']['get']('list.properties'),_0x2cb581=this['editor']['plugins']['get']('TrackChangesEditing');_0x33944a['styles']&&_0x2cb581['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x33944a['reversed']&&_0x2cb581['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x33944a['startIndex']&&_0x2cb581['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2cb581['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x54905e,_0x605ee4={}){const _0x1829b4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a671f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1829b4['markMultiRangeBlockFormat'](_0x2a671f,{'commandName':'listStyle','commandParams':[{'type':_0x605ee4['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x562ebb,_0x265c12={}){const _0x1f6ca8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15df1c=this['_getSuggestionBlocks'](_0x1b7ef7=>_0x1b7ef7['is']('element','listItem')&&'numbered'===_0x1b7ef7['getAttribute']('listType'));if(_0x15df1c['length']<0x1)return;const _0x15166d=_0x15df1c['map'](_0x5a34b2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a34b2,'before'),this['editor']['model']['createPositionAt'](_0x5a34b2,0x0)));this['editor']['model']['change'](()=>{_0x1f6ca8['markMultiRangeBlockFormat'](_0x15166d,{'commandName':'listReversed','commandParams':[{'reversed':_0x265c12['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x10c922,_0x50e568={}){const _0x584662=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13825c=this['_getSuggestionBlocks'](_0x274cb4=>_0x274cb4['is']('element','listItem')&&'numbered'===_0x274cb4['getAttribute']('listType'));if(_0x13825c['length']<0x1)return;const _0x2db54a=_0x13825c['map'](_0x12f1e9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x12f1e9,'before'),this['editor']['model']['createPositionAt'](_0x12f1e9,0x0)));this['editor']['model']['change'](()=>{_0x584662['markMultiRangeBlockFormat'](_0x2db54a,{'commandName':'listStart','commandParams':[{'startIndex':_0x50e568['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x26320e){if('formatBlock'!=_0x26320e['type']&&'formatInline'!=_0x26320e['type'])return;const _0x3bb771=this['editor']['locale'],{data:_0x48eb86}=_0x26320e;if(!_0x48eb86)return;let _0x25412c,_0x4ae5e5;switch(_0x48eb86['commandName']){case'listStyle':_0x25412c='*Change\x20to:*\x20%0',_0x4ae5e5={'type':'format','content':o(_0x3bb771,_0x25412c,o(_0x3bb771,this['_getTranslationKeyForListStyle'](_0x48eb86['commandParams'][0x0]['type'])))};break;case'listReversed':_0x25412c=_0x48eb86['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4ae5e5={'type':'format','content':o(_0x3bb771,_0x25412c)};break;case'listStart':_0x25412c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4ae5e5={'type':'format','content':o(_0x3bb771,_0x25412c,_0x48eb86['commandParams'][0x0]['startIndex'])};}return _0x4ae5e5;}['_getSuggestionBlocksForListStyle'](){const _0x45e73e=this['editor']['plugins']['get']('LegacyListUtils');let _0x1ace20=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1ace20[0x0]?.['is']('element','listItem')&&_0x1ace20['unshift'](..._0x45e73e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1ace20[_0x1ace20['length']-0x1]?.['is']('element','listItem')&&_0x1ace20['push'](..._0x45e73e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1ace20=[...new Set(_0x1ace20)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1ace20=_0x1ace20['filter'](_0x287cc9=>_0x287cc9['is']('element','listItem'))),_0x1ace20;}['_getSuggestionBlocks'](_0x5be52a){const _0x231b96=this['editor']['plugins']['get']('LegacyListUtils');let _0x34acf8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5be52a)['map'](_0x842e28=>{const _0x36e0af=this['editor']['model']['createPositionAt'](_0x842e28,0x0);return[..._0x231b96['getSiblingNodes'](_0x36e0af,'backward'),..._0x231b96['getSiblingNodes'](_0x36e0af,'forward')];})['flat']();return _0x34acf8=[...new Set(_0x34acf8)],_0x34acf8;}['_getTranslationKeyForListStyle'](_0x53b884){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x53b884)||'default')['toUpperCase']()+'_LIST_'+_0x53b884['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x53f614{['afterInit'](){const _0x26c621=this['editor'];if(!_0x26c621['plugins']['has']('MediaEmbedEditing'))return;const _0x2eede7=_0x26c621['plugins']['get']('TrackChangesEditing'),_0x2d45cc=_0x26c621['locale'];_0x2eede7['enableCommand']('mediaEmbed'),_0x2eede7['descriptionFactory']['registerElementLabel']('media',_0x1ea19b=>o(_0x2d45cc,'ELEMENT_MEDIA',_0x1ea19b));}}class pt extends _0x53f614{['afterInit'](){const _0x5e12c6=this['editor'];_0x5e12c6['plugins']['has']('MentionEditing')&&_0x5e12c6['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x53f614{['afterInit'](){const _0x55b046=this['editor'];if(!_0x55b046['plugins']['has']('MergeFieldsEditing'))return;const _0x52ee18=_0x55b046['plugins']['get']('TrackChangesEditing'),_0x46eefa=_0x55b046['locale'];_0x52ee18['enableCommand']('insertMergeField'),_0x52ee18['enableCommand']('insertMergeFieldBlock'),_0x52ee18['enableCommand']('insertMergeFieldImage'),_0x52ee18['descriptionFactory']['registerElementLabel']('mergeField',_0x41e83b=>o(_0x46eefa,'ELEMENT_MERGE_FIELD',_0x41e83b)),_0x52ee18['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1109e0=>o(_0x46eefa,'ELEMENT_MERGE_FIELD',_0x1109e0)),_0x52ee18['descriptionFactory']['registerDescriptionCallback'](_0x37747e=>{if('insertion'!=_0x37747e['type']&&'deletion'!=_0x37747e['type'])return;const _0x2fa007=_0x37747e['getContainedElement']();if(null==_0x2fa007)return;const _0x28851f=_0x55b046['plugins']['get']('MergeFieldsEditing');let _0x2a236e;switch(_0x28851f['getMergeFieldType'](_0x2fa007)){case null:return;case'image':{const _0x481d07=_0x28851f['unwrapAffixes'](_0x2fa007['getAttribute']('src'));_0x2a236e=_0x28851f['getLabel'](_0x481d07)||_0x481d07;break;}default:{const _0x147de2=_0x2fa007['getAttribute']('id');_0x2a236e=_0x28851f['getLabel'](_0x147de2)||_0x147de2;break;}}return'insertion'==_0x37747e['type']?{'type':'insertion','content':o(_0x46eefa,'*Insert:*\x20%0','\x22'+_0x2a236e+'\x22\x20'+o(_0x46eefa,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x46eefa,'*Remove:*\x20%0','\x22'+_0x2a236e+'\x22\x20'+o(_0x46eefa,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x53f614{['afterInit'](){const _0x83ed91=this['editor'],_0x371e88=_0x83ed91['plugins']['get']('TrackChangesEditing');_0x83ed91['plugins']['has']('MultiLevelList')&&(_0x371e88['enableDefaultAttributesIntegration']('multiLevelList'),_0x371e88['descriptionFactory']['registerDescriptionCallback'](_0x16e3cb=>this['handleDescriptions'](_0x16e3cb)));}['handleDescriptions'](_0x5e6821){const _0x585cb2=this['editor']['locale'],{data:_0x437e9f}=_0x5e6821,_0x384afb={'type':'format','content':''};if(_0x437e9f&&'listMarkerStyle'==_0x437e9f['key']){if(!_0x437e9f['oldValue'])return{'type':'format','content':o(_0x585cb2,'*Set\x20format:*\x20%0',o(_0x585cb2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x437e9f['newValue']+')'};if(!_0x437e9f['newValue']){let _0x5679ac=_0x5e6821['head'];for(;_0x5679ac;){if(_0x5679ac['data']&&'listType'==_0x5679ac['data']['key']&&_0x5679ac['data']['newValue'])return _0x384afb;_0x5679ac=_0x5679ac['next'];}return{'type':'format','content':o(_0x585cb2,'*Remove\x20format:*\x20%0',o(_0x585cb2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x437e9f['oldValue']+')'};}}}}class bt extends _0x53f614{['afterInit'](){const _0x42ede7=this['editor'];if(!_0x42ede7['plugins']['has']('PageBreakEditing'))return;_0x42ede7['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x783666=_0x42ede7['plugins']['get']('TrackChangesEditing'),_0x987847=_0x42ede7['locale'];_0x783666['descriptionFactory']['registerElementLabel']('pageBreak',_0x5738c9=>o(_0x987847,'ELEMENT_PAGE_BREAK',_0x5738c9));}}class yt extends _0x53f614{['afterInit'](){const _0x2fdb32=this['editor'];if(!_0x2fdb32['plugins']['has']('Paragraph'))return;const _0x3b000d=_0x2fdb32['locale'],_0x376371=_0x2fdb32['plugins']['get']('TrackChangesEditing');_0x376371['descriptionFactory']['registerElementLabel']('paragraph',_0x36f0f5=>o(_0x3b000d,'ELEMENT_PARAGRAPH',_0x36f0f5)),_0x376371['enableDefaultAttributesIntegration']('paragraph'),_0x376371['enableCommand']('insertParagraph');const _0x43f64d=_0x376371['descriptionFactory'];_0x43f64d['registerDescriptionCallback'](_0x16d61c=>{if('insertion'!==_0x16d61c['type'])return;const {start:_0x23a494,end:_0x5a0443}=_0x16d61c['getFirstRange']();if(!_0x23a494['isTouching'](_0x5a0443)||!_0x23a494['nodeAfter'])return;const _0x159daf=_0x2fdb32['model']['schema'],_0x4798e9=_0x23a494['nodeAfter'];return _0x159daf['isBlock'](_0x4798e9)&&!_0x159daf['isLimit'](_0x4798e9)&&_0x159daf['checkChild'](_0x4798e9,'$text')?{'type':'insertion','content':o(_0x3b000d,'*Insert:*\x20%0',_0x43f64d['getItemLabel'](_0x4798e9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ed4a9=this['editor'],_0x3395d5=_0x5ed4a9['locale'];_0x5ed4a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5853fc=>{if('formatBlock'!=_0x5853fc['type'])return;const {data:_0x105b70}=_0x5853fc;return _0x105b70&&'paragraph'==_0x105b70['commandName']?{'type':'format','content':o(_0x3395d5,'*Change\x20to:*\x20%0',o(_0x3395d5,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x53f614{['afterInit'](){const _0x268689=this['editor'];_0x268689['commands']['get']('replaceSource')&&_0x268689['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x53f614{['afterInit'](){const _0x86c983=this['editor'];if(!_0x86c983['plugins']['has']('RemoveFormatEditing'))return;_0x86c983['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x122b9f=this['editor'];_0x122b9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12cde7=>{if('formatBlock'!=_0x12cde7['type']&&'formatInline'!=_0x12cde7['type'])return;const {data:_0x246c7f}=_0x12cde7;return _0x246c7f&&'removeFormat'==_0x246c7f['commandName']?{'type':'format','content':o(_0x122b9f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x53f614{['afterInit'](){const _0x4bb574=this['editor'];if(!_0x4bb574['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x288235=_0x4bb574['plugins']['get']('TrackChangesEditing');_0x288235['enableCommand']('goToPreviousRestrictedEditingException'),_0x288235['enableCommand']('goToNextRestrictedEditingException');const _0xe3607b=_0x4bb574['plugins']['get']('RestrictedEditingModeEditing');_0xe3607b['enableCommand']('trackChanges'),_0xe3607b['enableCommand']('acceptSuggestion'),_0xe3607b['enableCommand']('discardSuggestion'),_0xe3607b['enableCommand']('acceptAllSuggestions'),_0xe3607b['enableCommand']('discardAllSuggestions'),_0xe3607b['enableCommand']('acceptSelectedSuggestions'),_0xe3607b['enableCommand']('discardSelectedSuggestions');}}class At extends _0x53f614{['afterInit'](){const _0x1bc8e7=this['editor'];if(!_0x1bc8e7['plugins']['has']('ShiftEnter'))return;const _0x4eee1d=_0x1bc8e7['plugins']['get']('TrackChangesEditing');_0x4eee1d['enableCommand']('shiftEnter'),_0x4eee1d['descriptionFactory']['registerElementLabel']('softBreak',_0x4be32a=>o(_0x1bc8e7['locale'],'ELEMENT_LINE_BREAK',_0x4be32a));}}function an(_0x1938cd,_0x3789ac,_0x1cee46){const _0xd14a2=[];for(const _0x5e48b0 of _0x3789ac['getItems']())_0x5e48b0['hasAttribute'](_0x1938cd)&&_0xd14a2['push'](_0x1cee46['createRangeOn'](_0x5e48b0));return _0xd14a2;}class _t extends _0x53f614{['afterInit'](){const _0x27a39b=this['editor'],_0x4b3c0c=_0x27a39b['plugins']['get']('TrackChangesEditing');_0x27a39b['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x4b3c0c['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x37c06d=this['editor'],_0x81f32=_0x37c06d['model'],_0x57d39c=_0x37c06d['locale'],_0x1cf313=_0x37c06d['plugins']['get']('TrackChangesEditing'),_0x49c617='restrictedEditingException',_0x53b256=_0x37c06d['commands']['get'](_0x49c617);_0x1cf313['enableCommand'](_0x49c617,(_0x4fc66d,_0x3563f3={})=>{const _0x427fd2=_0x81f32['document']['selection'];if(_0x427fd2['isCollapsed'])return void _0x4fc66d(_0x3563f3);const _0x2d03c0=void 0x0!==_0x3563f3['forceValue']?_0x3563f3['forceValue']:!_0x53b256['value'];_0x81f32['change'](()=>{const _0x55a4a6=Array['from'](_0x427fd2['getRanges']());for(const _0x1a4a1a of _0x55a4a6){const _0x146939=_0x2d03c0?[_0x1a4a1a]:an(_0x49c617,_0x1a4a1a,_0x81f32);for(const _0x154b37 of _0x146939)_0x1cf313['markInlineFormat'](_0x154b37,{'commandName':_0x49c617,'commandParams':[{'forceValue':_0x2d03c0}]});}});}),_0x1cf313['descriptionFactory']['registerDescriptionCallback'](_0x9712f5=>{if('formatBlock'!=_0x9712f5['type']&&'formatInline'!=_0x9712f5['type'])return;const {data:_0x71e15e}=_0x9712f5;return _0x71e15e&&_0x71e15e['commandName']==_0x49c617?_0x71e15e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x57d39c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x57d39c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x2e389e=this['editor'],_0x4fd1df=_0x2e389e['locale'],_0x141a97=_0x2e389e['plugins']['get']('TrackChangesEditing'),_0x3581eb='restrictedEditingExceptionBlock',_0x141493=this['editor']['commands']['get'](_0x3581eb);_0x141a97['enableCommand'](_0x3581eb,(_0x3feffb,_0x4442c5={})=>{const _0x565ca8=this['editor']['model']['document']['selection'],_0x4c12f7=_0x4442c5&&void 0x0!==_0x4442c5['forceValue']?_0x4442c5['forceValue']:!_0x141493['value'];let _0x8604c9=[];if(_0x4c12f7){const _0x430ec9=Array['from'](_0x565ca8['getSelectedBlocks']())['filter'](_0x230f7a=>function(_0x275890){return!!_0x275890['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x230f7a)||function(_0x112364,_0x41a338){const _0x1da681=_0x41a338['createContext'](_0x112364['parent']);if(!_0x41a338['checkChild'](_0x1da681,'restrictedEditingException'))return!0x1;if(!_0x41a338['checkChild'](_0x1da681['push']('restrictedEditingException'),_0x112364))return!0x1;return!0x0;}(_0x230f7a,this['editor']['model']['schema']));_0x8604c9=to(_0x430ec9,_0x2e389e['model']);}else{const _0x3cfbf2=Array['from'](_0x565ca8['getSelectedBlocks']())['map'](_0x5edc85=>function(_0x1a12e4){let _0x454ce2=_0x1a12e4;for(;_0x454ce2['parent'];){if('restrictedEditingException'==_0x454ce2['parent']['name'])return _0x454ce2;_0x454ce2=_0x454ce2['parent'];}return null;}(_0x5edc85))['filter'](_0x5f59d7=>!!_0x5f59d7);_0x8604c9=to(_0x3cfbf2,_0x2e389e['model']);}_0x2e389e['model']['change'](()=>{for(const _0x1573ee of _0x8604c9)_0x141a97['markBlockFormat'](_0x1573ee,{'commandName':_0x3581eb,'commandParams':[{'forceValue':_0x4c12f7}]});});}),_0x141a97['descriptionFactory']['registerDescriptionCallback'](_0x2b1369=>{const {data:_0x41b2f0}=_0x2b1369;if(_0x41b2f0&&_0x41b2f0['commandName']==_0x3581eb)return _0x41b2f0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4fd1df,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4fd1df,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x53f614{['afterInit'](){const _0x1f2717=this['editor'];if(!_0x1f2717['plugins']['has']('Style')||!_0x1f2717['plugins']['has']('DataSchema'))return;const _0x2f2d78=_0x1f2717['plugins']['get']('TrackChangesEditing'),_0x51d21a=_0x1f2717['locale'],_0x1b7aec=_0x1f2717['config']['get']('style')||{},_0xd4b044=_0x1f2717['plugins']['get']('GeneralHtmlSupport'),_0x4619ce=_0x1f2717['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1f2717['plugins']['get']('DataSchema'),_0x1b7aec['definitions']);_0x2f2d78['enableDefaultAttributesIntegration']('style');const _0x24dc37=new Set();for(const _0x464cf7 of _0x4619ce['block']){const _0x449c11=_0xd4b044['getGhsAttributeNameForElement'](_0x464cf7['element']);_0x24dc37['add'](_0x449c11);}const _0x3f71d9=new Set();for(const _0x16f472 of _0x4619ce['inline']){const _0x26100a=_0xd4b044['getGhsAttributeNameForElement'](_0x16f472['element']);_0x3f71d9['add'](_0x26100a);for(const _0x5675bb of _0x16f472['ghsAttributes'])_0x3f71d9['add'](_0x5675bb);}for(const _0xd3a9ee of _0x24dc37)_0x2f2d78['descriptionFactory']['registerAttributeLabel'](_0xd3a9ee,o(_0x51d21a,'FORMAT_STYLE'));for(const _0x14c376 of _0x3f71d9)_0x2f2d78['descriptionFactory']['registerAttributeLabel'](_0x14c376,o(_0x51d21a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x555a82=this['editor'],_0xedb91d=_0x555a82['locale'];_0x555a82['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x511320=>{if('formatBlock'!=_0x511320['type']&&'formatInline'!=_0x511320['type'])return;const {data:_0x3abd5b}=_0x511320;return _0x3abd5b&&'style'===_0x3abd5b['commandName']?_0x3abd5b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xedb91d,'*Set\x20format:*\x20%0',_0x3abd5b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xedb91d,'*Remove\x20format:*\x20%0',_0x3abd5b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x53f614{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x46215b){super(_0x46215b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x228948=this['editor'],_0x475ef5=_0x228948['model']['document']['selection'];if(!_0x228948['plugins']['has']('TableEditing'))return;const _0x326909=_0x228948['locale'],_0x5cae9b=_0x228948['plugins']['get']('TrackChangesEditing'),_0x1250ae=_0x228948['plugins']['get']('TableUtils');_0x5cae9b['descriptionFactory']['registerElementLabel']('table',_0x43ecd2=>o(_0x326909,'ELEMENT_TABLE',_0x43ecd2)),this['_setupColumnsRowsFixing'](),_0x5cae9b['enableCommand']('insertTable'),_0x5cae9b['enableCommand']('selectTableRow'),_0x5cae9b['enableCommand']('selectTableColumn');for(const _0x4368e0 of['insertTableRowAbove','insertTableRowBelow']){const _0x50ef49=_0x228948['commands']['get'](_0x4368e0);_0x5cae9b['enableCommand'](_0x4368e0,_0x38e43e=>{_0x228948['model']['change'](_0x18de8e=>{_0x38e43e();const _0x5d9b0b='above'===_0x50ef49['order'],_0x15fb64=_0x1250ae['getSelectionAffectedTableCells'](_0x475ef5),_0x45cbc1=_0x1250ae['getRowIndexes'](_0x15fb64),_0xd160=_0x5d9b0b?_0x45cbc1['first']-0x1:_0x45cbc1['last']+0x1,_0x4b70aa=_0x15fb64[0x0]['findAncestor']('table'),_0x3bb81=_0x1250ae['createTableWalker'](_0x4b70aa,{'startRow':_0xd160,'endRow':_0xd160}),_0x58598f=Array['from'](_0x3bb81)['map'](_0x505b8e=>_0x18de8e['createRangeOn'](_0x505b8e['cell']));_0x5cae9b['markMultiRangeInsertion'](_0x58598f,'tableRow');});});}for(const _0x42df95 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1d948c=_0x228948['commands']['get'](_0x42df95);_0x5cae9b['enableCommand'](_0x42df95,_0x3e9f35=>{_0x228948['model']['change'](_0x519495=>{_0x3e9f35();const _0x381dce='left'===_0x1d948c['order'],_0x1e94e6=_0x1250ae['getSelectionAffectedTableCells'](_0x475ef5),_0x1a9aea=_0x1250ae['getColumnIndexes'](_0x1e94e6),_0x1532db=_0x381dce?_0x1a9aea['first']-0x1:_0x1a9aea['last']+0x1,_0x2a6536=_0x1e94e6[0x0]['findAncestor']('table'),_0x3814e1=_0x1250ae['createTableWalker'](_0x2a6536,{'startRow':0x0,'column':_0x1532db,'includeAllSlots':!0x1}),_0x20fc6d=Array['from'](_0x3814e1)['map'](_0x297ceb=>_0x519495['createRangeOn'](_0x297ceb['cell']));_0x5cae9b['markMultiRangeInsertion'](_0x20fc6d,'tableColumn');});});}for(const _0x4a91bf of['removeTableRow','removeTableColumn']){const _0x5bb5ff=_0x4a91bf['substr'](0xb),_0x5a25a0=_0x5bb5ff['toLowerCase'](),_0x141dfb=_0x5a25a0['substr'](0x0,0x3)+'span',_0x34e2a4='table'+_0x5bb5ff,_0x4ccc73='min'+_0x5bb5ff,_0x4e596f='max'+_0x5bb5ff;_0x5cae9b['enableCommand'](_0x4a91bf,()=>{_0x228948['model']['change'](_0x3968aa=>{const _0x30c5fe=_0x1250ae['getSelectionAffectedTableCells'](_0x475ef5),_0x4aff9a=_0x30c5fe[0x0]['findAncestor']('table');let _0xdbebeb;if('removeTableRow'==_0x4a91bf){const _0x562e45=_0x1250ae['getRowIndexes'](_0x30c5fe);_0xdbebeb={'startRow':_0x562e45['first'],'endRow':_0x562e45['last'],'includeAllSlots':!0x0};}else{const _0x1c9001=_0x1250ae['getColumnIndexes'](_0x30c5fe);_0xdbebeb={'startColumn':_0x1c9001['first'],'endColumn':_0x1c9001['last'],'includeAllSlots':!0x0};}const _0x3c470e=_0x1250ae['createTableWalker'](_0x4aff9a,_0xdbebeb),_0x16cb32=Array['from'](_0x3c470e)['map'](({cell:_0x5d4ec7})=>_0x5d4ec7),_0x305d3e=_e(_0x16cb32['filter'](_0x19d408=>_0x19d408['hasAttribute'](_0x141dfb))),_0x5d9422=_e(_0x16cb32['filter'](_0xba3056=>!_0xba3056['hasAttribute'](_0x141dfb)))['map'](_0x571262=>_0x3968aa['createRangeOn'](_0x571262)),_0x1ede0b=_0x5cae9b['markMultiRangeDeletion'](_0x5d9422,_0x34e2a4);if(_0x1ede0b&&('tableRow'==_0x1ede0b['subType']||'tableColumn'==_0x1ede0b['subType'])){const _0x3aac19=this['_getSuggestionCoords'](_0x1ede0b);for(const _0x13decd of _0x305d3e){const _0x227559=_0x3968aa['createRangeOn'](_0x13decd),_0x464254=_0x1250ae['getCellLocation'](_0x13decd),_0x1de26f=_0x13decd['getAttribute'](_0x141dfb)-0x1,_0x2bd504=_0x3aac19[_0x4ccc73],_0x341eb1=_0x3aac19[_0x4e596f];_0x2bd504<=_0x464254[_0x5a25a0]&&_0x464254[_0x5a25a0]+_0x1de26f<=_0x341eb1&&_0x1ede0b['addRange'](_0x227559);}}});});}function _0x522005(_0x453f35){const _0x5ccb0a=Array['from'](_0x475ef5['getRanges']())['map'](_0x3d029a=>_0x4960c7['fromRange'](_0x3d029a));_0x228948['model']['change'](_0x57e726=>{const _0x435112=_0x57e726['batch'];_0x453f35=_0x453f35['filter'](_0x1120d6=>'$graveyard'!=_0x1120d6['root']['rootName']),_0x57e726['setSelection'](_0x453f35),_0x228948['commands']['get']('removeTableRow')['refresh'](),_0x228948['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x228948['model']['enqueueChange'](()=>{_0x228948['model']['enqueueChange'](_0x435112,_0x14dfe7=>{const _0x4981fd=_0x5ccb0a['filter'](_0x416890=>'$graveyard'!=_0x416890['root']['rootName']);_0x4981fd['length']>0x0&&_0x14dfe7['setSelection'](_0x4981fd);for(const _0x5476fb of _0x5ccb0a)_0x5476fb['detach']();});});});}function _0x2859d1(_0x1e7861){_0x228948['model']['change'](_0x43632f=>{const _0x5dd6e6=Array['from'](_0x475ef5['getRanges']())['map'](_0x4c939a=>_0x4960c7['fromRange'](_0x4c939a)),_0x11d970=[];for(const _0x12d386 of _0x1e7861)for(const _0x51b75e of _0x12d386['getItems']({'shallow':!0x0}))_0x11d970['push'](_0x51b75e);for(const _0x295af4 of _0x11d970)'$graveyard'!=_0x295af4['root']['rootName']&&(_0x43632f['setSelection'](_0x43632f['createPositionAt'](_0x295af4,0x0)),_0x228948['commands']['get']('removeTableColumn')['refresh'](),_0x228948['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x146af1=_0x5dd6e6['filter'](_0x4d895c=>'$graveyard'!=_0x4d895c['root']['rootName']);_0x146af1['length']>0x0&&_0x43632f['setSelection'](_0x146af1);for(const _0x1f1f30 of _0x5dd6e6)_0x1f1f30['detach']();});}function _0x239bf8(_0xf70a0,_0x33654b){return _0x33654b['every'](_0x301289=>_0xf70a0['some'](_0x3375d7=>_0x3375d7['end']['isEqual'](_0x301289['start'])||_0x301289['end']['isEqual'](_0x3375d7['start'])));}function _0x1dc4e1(_0x4db7b9,_0x14e660){return!_0x4db7b9['some'](_0x331ea4=>_0x14e660['some'](_0x4d0fd5=>_0x331ea4['isIntersecting'](_0x4d0fd5)))&&_0x4db7b9['some'](_0x387a83=>_0x14e660['some'](_0x2e81bf=>_0x387a83['end']['isTouching'](_0x2e81bf['start'])));}_0x5cae9b['descriptionFactory']['registerDescriptionCallback'](_0x171a35=>{if('insertion'!=_0x171a35['type']&&'deletion'!=_0x171a35['type'])return;const _0xcdb693=_0x171a35['getContainedElement']();if(null!=_0xcdb693&&_0xcdb693['is']('element','table')){if('insertion'==_0x171a35['type']){const _0x156df4=_0x171a35['getItems']()['filter'](_0x116d3f=>_0x116d3f['is']('$textProxy'))['map'](_0x1c8f4a=>_0x1c8f4a['data']);if(_0x156df4['length'])return{'type':'insertion','content':o(_0x326909,'*Insert:*\x20%0',o(_0x326909,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x156df4['join']('\x20')+'\x22'))};}if('deletion'==_0x171a35['type']){const _0x3a066a=_0x171a35['getItems']()['filter'](_0x549da5=>_0x549da5['is']('$textProxy'))['map'](_0x184abc=>_0x184abc['data']);if(_0x3a066a['length'])return{'type':'deletion','content':o(_0x326909,'*Remove:*\x20%0',o(_0x326909,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a066a['join']('\x20')+'\x22'))};}}}),_0x5cae9b['descriptionFactory']['registerDescriptionCallback'](_0x1ad82d=>{if('tableRow'==_0x1ad82d['subType']){const _0x5b779f=_0x1ad82d['getItems']()['filter'](_0x304a1a=>_0x304a1a['is']('$textProxy'))['map'](_0x13ae0f=>_0x13ae0f['data']),_0x1788da=this['_getSuggestionCoords'](_0x1ad82d),_0x317a2b=_0x1788da['maxRow']-_0x1788da['minRow']+0x1;if('insertion'==_0x1ad82d['type'])return _0x5b779f['length']?{'type':'insertion','content':o(_0x326909,'*Insert:*\x20%0',o(_0x326909,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x317a2b,'\x22'+_0x5b779f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x326909,'*Insert:*\x20%0',o(_0x326909,'ELEMENT_TABLE_ROW',_0x317a2b))};if('deletion'==_0x1ad82d['type'])return _0x5b779f['length']?{'type':'deletion','content':o(_0x326909,'*Remove:*\x20%0',o(_0x326909,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x317a2b,'\x22'+_0x5b779f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x326909,'*Remove:*\x20%0',o(_0x326909,'ELEMENT_TABLE_ROW',_0x317a2b))};}if('tableColumn'==_0x1ad82d['subType']){const _0x40a6d0=_0x1ad82d['getItems']()['filter'](_0x1988c5=>_0x1988c5['is']('$textProxy'))['map'](_0x4ca896=>_0x4ca896['data']),_0x17cc8c=this['_getSuggestionCoords'](_0x1ad82d),_0x167888=_0x17cc8c['maxColumn']-_0x17cc8c['minColumn']+0x1;if('insertion'==_0x1ad82d['type'])return _0x40a6d0['length']?{'type':'insertion','content':o(_0x326909,'*Insert:*\x20%0',o(_0x326909,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x167888,'\x22'+_0x40a6d0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x326909,'*Insert:*\x20%0',o(_0x326909,'ELEMENT_TABLE_COLUMN',_0x167888))};if('deletion'==_0x1ad82d['type'])return _0x40a6d0['length']?{'type':'deletion','content':o(_0x326909,'*Remove:*\x20%0',o(_0x326909,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x167888,'\x22'+_0x40a6d0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x326909,'*Remove:*\x20%0',o(_0x326909,'ELEMENT_TABLE_COLUMN',_0x167888))};}}),_0x5cae9b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x522005),_0x5cae9b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x522005),_0x5cae9b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2859d1),_0x5cae9b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2859d1),_0x5cae9b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x239bf8),_0x5cae9b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x239bf8),_0x5cae9b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1dc4e1),_0x5cae9b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1dc4e1);}['_acceptFormatSuggestionCallbackFactory'](){const _0x836325=this['editor'],_0x30118b=_0x836325['model']['document']['selection'];return(_0x19e705,_0x1e5787)=>{_0x836325['model']['change'](_0x271250=>{const {commandName:_0xbbe90b,commandParams:_0x3b62a0}=_0x1e5787;let _0x4d9e78=_0x19e705[0x0]['end']['nodeBefore'];_0x3b62a0&&_0x3b62a0[0x0]&&!0x1===_0x3b62a0[0x0]['forceValue']&&(_0x4d9e78=_0x19e705[0x0]['start']['nodeAfter']);const _0x546b62=_0x271250['createRangeIn'](_0x4d9e78);if('$graveyard'==_0x546b62['root']['rootName'])return;const _0x403bc8=Array['from'](_0x30118b['getRanges']())['map'](_0x376675=>_0x4960c7['fromRange'](_0x376675));_0x271250['setSelection'](_0x546b62),_0x836325['commands']['get'](_0xbbe90b)['refresh'](),_0x3b62a0['push']({'forceDefaultExecution':!0x0}),_0x836325['execute'](_0xbbe90b,..._0x3b62a0);const _0x247b9a=_0x403bc8['filter'](_0x31f14f=>'$graveyard'!=_0x31f14f['root']['rootName']);_0x247b9a['length']>0x0&&_0x271250['setSelection'](_0x247b9a);for(const _0x2cbc95 of _0x403bc8)_0x2cbc95['detach']();});};}['_getCoordsForCells'](_0x511e0f){const _0x8f1509=this['editor']['plugins']['get']('TableUtils');let _0x6b32a=Number['MAX_SAFE_INTEGER'],_0x297263=Number['MIN_SAFE_INTEGER'],_0x1641e7=Number['MAX_SAFE_INTEGER'],_0x3ceff1=Number['MIN_SAFE_INTEGER'];for(const _0x363c05 of _0x511e0f){if('$graveyard'==_0x363c05['root']['rootName'])continue;const {row:_0x39fbae,column:_0x5dd582}=_0x8f1509['getCellLocation'](_0x363c05),_0x339ff0=_0x363c05['hasAttribute']('rowspan')?_0x363c05['getAttribute']('rowspan')-0x1:0x0,_0x3c9e10=_0x363c05['hasAttribute']('colspan')?_0x363c05['getAttribute']('colspan')-0x1:0x0;_0x6b32a=_0x39fbae<_0x6b32a?_0x39fbae:_0x6b32a,_0x297263=_0x39fbae+_0x339ff0>_0x297263?_0x39fbae+_0x339ff0:_0x297263,_0x1641e7=_0x5dd582<_0x1641e7?_0x5dd582:_0x1641e7,_0x3ceff1=_0x5dd582+_0x3c9e10>_0x3ceff1?_0x5dd582+_0x3c9e10:_0x3ceff1;}return{'minRow':_0x6b32a,'maxRow':_0x297263,'minColumn':_0x1641e7,'maxColumn':_0x3ceff1};}['_setupColumnsRowsFixing'](){const _0x413f70=this['editor'],_0x5a45a=_0x413f70['plugins']['get']('TrackChangesEditing'),_0x1496f1=_0x413f70['plugins']['get']('TableUtils');_0x413f70['model']['document']['on']('change:data',()=>{const _0x5767f6=Array['from'](_0x413f70['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xbc71ed,data:_0x535da0}of _0x5767f6){const {group:_0x21c064,id:_0x58ba3f,subType:_0x35cfb2}=_0x5a45a['_splitMarkerName'](_0xbc71ed);if('suggestion'!=_0x21c064)continue;if(null!=_0x535da0['oldRange'])continue;const _0x5ad924=_0x5a45a['getSuggestion'](_0x58ba3f);this['_tablePostFixingSubtypes']['includes'](_0x35cfb2)&&this['_tableSuggestions']['add'](_0x5ad924);}},{'priority':'low'});const _0x166313=(_0x4fd81f,_0x3898f8)=>{let _0x26aa71=!0x1;const _0xec0be3=_0x3898f8['createRangeOn'](_0x4fd81f),_0x361cfb=_0x4fd81f['findAncestor']('table'),_0xed72c3=_0x1496f1['getCellLocation'](_0x4fd81f);for(const _0x5034a6 of this['_tableSuggestions']){const _0xb61df2=_0x5034a6['subType'],_0x363c7e=_0xb61df2['startsWith']('tablePaste'),_0x2005f4=_0xb61df2['substr'](_0x363c7e?0xa:0x5),_0x3b5de7=_0x2005f4['toLowerCase'](),_0xc2665e=_0x3b5de7['substr'](0x0,0x3)+'span',_0xdb5697='min'+_0x2005f4,_0x6b3afb='max'+_0x2005f4;if(!_0x5034a6['isInContent'])continue;if(_0x361cfb!=_0x5034a6['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5034a6['isIntersectingWithRange'](_0xec0be3))continue;const _0x54ac09=_0x4fd81f['hasAttribute'](_0xc2665e)?_0x4fd81f['getAttribute'](_0xc2665e)-0x1:0x0,_0x2dec92=this['_getSuggestionCoords'](_0x5034a6),_0x2f4f64=_0x2dec92[_0xdb5697],_0x4ee366=_0x2dec92[_0x6b3afb];_0x2f4f64<=_0xed72c3[_0x3b5de7]&&_0xed72c3[_0x3b5de7]+_0x54ac09<=_0x4ee366&&(_0x5034a6['addRange'](_0xec0be3),_0x26aa71=!0x0);}return _0x26aa71;};_0x413f70['model']['document']['registerPostFixer'](_0x3b18eb=>{let _0x268da6=!0x1;for(const _0x12c947 of _0x413f70['model']['document']['differ']['getChanges']())if('insert'==_0x12c947['type']){if('tableRow'==_0x12c947['name']){for(const _0xee1c9c of _0x12c947['position']['nodeAfter']['getChildren']())_0x268da6=_0x268da6||_0x166313(_0xee1c9c,_0x3b18eb);}else'tableCell'==_0x12c947['name']&&(_0x268da6=_0x268da6||_0x166313(_0x12c947['position']['nodeAfter'],_0x3b18eb));}return _0x268da6;});}['_getSuggestionCoords'](_0x40deab){return this['_getCoordsForCells'](_0x40deab['getRanges']()['map'](_0xb98311=>_0xb98311['start']['nodeAfter']));}}function _e(_0x15dddb){return Array['from'](new Set(_0x15dddb)['values']());}class $t extends _0x53f614{static get['requires'](){return[Nt];}['afterInit'](){const _0x31aa91=this['editor'],_0x38f760=_0x31aa91['model']['document']['selection'],_0x5ab0ec=_0x31aa91['locale'];if(!_0x31aa91['plugins']['has']('TableEditing'))return;const _0x2d1690=_0x31aa91['plugins']['get']('TrackChangesEditing'),_0x5f394a=_0x31aa91['plugins']['get']('TableUtils'),_0x2ed1db=_0x31aa91['plugins']['get'](Nt);_0x2ed1db['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2d1690['enableCommand']('mergeTableCells',()=>{const _0x26382d=_0x5f394a['getSelectionAffectedTableCells'](_0x31aa91['model']['document']['selection']);_0x31aa91['model']['change'](()=>{_0x2d1690['markMultiRangeBlockFormat'](_0x26382d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x31aa91['commands']['get']('mergeTableCells')['on']('execute',(_0x1e6a33,_0x27ec31)=>{_0x31aa91['commands']['get']('trackChanges')['value']&&(_0x27ec31['length']>0x0&&_0x27ec31[_0x27ec31['length']-0x1]&&_0x27ec31[_0x27ec31['length']-0x1]['forceDefaultExecution']||_0x2d1690['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1e6a33['stop']());},{'priority':'highest'});for(const _0x2e493f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x289b89=_0x31aa91['commands']['get'](_0x2e493f);_0x2d1690['enableCommand'](_0x2e493f,()=>{const _0x244ecd=_0x31aa91['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x55a1fe=>_0x55a1fe['is']('element','tableCell')),_0x37df7b=_0x289b89['value'];_0x31aa91['model']['change'](()=>{_0x2d1690['markMultiRangeBlockFormat']([_0x244ecd,_0x37df7b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1e8239 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1227fb=_0x31aa91['commands']['get'](_0x1e8239);_0x2d1690['enableCommand'](_0x1e8239,()=>{const _0x2bd7f3=_0x5f394a['getSelectionAffectedTableCells'](_0x31aa91['model']['document']['selection'])[0x0],_0x51291b=_0x2bd7f3['findAncestor']('table'),{column:_0x335918,row:_0x53ebd5}=_0x5f394a['getCellLocation'](_0x2bd7f3);let _0x52408c=[];if('horizontally'==_0x1227fb['direction']){const _0x158746=_0x5f394a['createTableWalker'](_0x51291b,{'startRow':_0x53ebd5,'endRow':_0x53ebd5,'includeAllSlots':!0x0});_0x52408c=Array['from'](_0x158746)['map'](_0x1be95c=>_0x1be95c['cell']);}else{const _0x21e16f=_0x5f394a['createTableWalker'](_0x51291b,{'column':_0x335918,'includeAllSlots':!0x0});_0x52408c=Array['from'](_0x21e16f)['map'](_0x5236b1=>_0x5236b1['cell']);}_0x31aa91['model']['change'](_0x1ec6a5=>{_0x2d1690['markBlockFormat'](_0x1ec6a5['createRangeOn'](_0x2bd7f3),{'commandName':_0x1e8239,'commandParams':[]},_0x52408c,_0x1e8239);});});}_0x2d1690['descriptionFactory']['registerDescriptionCallback'](_0x244971=>{if('formatBlock'!=_0x244971['type']&&'formatInline'!=_0x244971['type'])return;const {data:_0x1ca2b2}=_0x244971;return _0x1ca2b2&&'mergeTableCells'==_0x1ca2b2['commandName']?{'type':'format','content':o(_0x5ab0ec,'*Merge\x20cells*')}:void 0x0;}),_0x2d1690['descriptionFactory']['registerDescriptionCallback'](_0x21b678=>{if('formatBlock'!=_0x21b678['type']&&'formatInline'!=_0x21b678['type'])return;const {data:_0x131539}=_0x21b678;return _0x131539?'splitTableCellVertically'==_0x131539['commandName']?{'type':'format','content':o(_0x5ab0ec,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x131539['commandName']?{'type':'format','content':o(_0x5ab0ec,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x35f8b2=_0x2ed1db['_acceptFormatSuggestionCallbackFactory']();for(const _0x3345ab of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2d1690['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3345ab,'accept',_0x35f8b2);for(const _0x497248 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2d1690['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x497248,'accept',_0x35f8b2);_0x2d1690['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3ae03d=>{_0x31aa91['model']['change'](_0x31f458=>{const _0x37fd64=Array['from'](_0x38f760['getRanges']())['map'](_0x4a29b2=>_0x4960c7['fromRange'](_0x4a29b2));_0x31f458['setSelection'](_0x3ae03d),_0x31aa91['commands']['get']('mergeTableCells')['refresh'](),_0x31aa91['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4d1f0a=_0x37fd64['filter'](_0x164e32=>'$graveyard'!=_0x164e32['root']['rootName']);_0x4d1f0a['length']>0x0&&_0x31f458['setSelection'](_0x4d1f0a);for(const _0x4cabf9 of _0x37fd64)_0x4cabf9['detach']();});});for(const _0x20f9b1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x32e21b=_0x31aa91['commands']['get'](_0x20f9b1);_0x32e21b['on']('set:isEnabled',(_0x155ee7,_0x4153b2,_0x18ef52)=>{if(_0x18ef52){const _0x529b04=_0x31aa91['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x45af8c=>_0x45af8c['is']('element','tableCell'));this['_areMergableCells'](_0x32e21b['value'],_0x529b04)||(_0x155ee7['return']=!0x1,_0x155ee7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x588701=this['editor']['commands']['get']('mergeTableCells'),_0x11ec30=this['editor']['plugins']['get']('TableUtils');if(!_0x588701['isEnabled'])return!0x1;const _0x9053cb=_0x11ec30['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2c8aea of _0x9053cb)for(const _0x149fcc of _0x9053cb)if(_0x2c8aea!=_0x149fcc&&!this['_areMergableCells'](_0x2c8aea,_0x149fcc))return!0x1;return!0x0;}['_areMergableCells'](_0x55659f,_0x191299){const _0x3c6325=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5186ec=this['editor']['model']['createRangeOn'](_0x55659f),_0x54138d=this['editor']['model']['createRangeOn'](_0x191299),_0x5f1e89=new Set(),_0x56bfec=new Set();for(const _0x2825dd of _0x3c6325['getSuggestions']())if(('insertion'==_0x2825dd['type']||'deletion'==_0x2825dd['type']||'mergeTableCells'==_0x2825dd['subType'])&&_0x2825dd['isInContent']){for(const _0x4adb94 of _0x2825dd['getRanges']())_0x4adb94['containsRange'](_0x5186ec,!0x0)&&_0x5f1e89['add'](_0x2825dd['type']+':'+_0x2825dd['author']['id']),_0x4adb94['containsRange'](_0x54138d,!0x0)&&_0x56bfec['add'](_0x2825dd['type']+':'+_0x2825dd['author']['id']);}if(_0x5f1e89['size']!=_0x56bfec['size'])return!0x1;for(const _0x377187 of _0x5f1e89)if(!_0x56bfec['has'](_0x377187))return!0x1;return!0x0;}}class vt extends _0x53f614{static get['requires'](){return[Nt];}['afterInit'](){const _0x42a3a6=this['editor'];if(!_0x42a3a6['plugins']['has']('TableEditing'))return;const _0x396a2a=_0x42a3a6['locale'],_0x4a50ee=_0x42a3a6['plugins']['get']('TrackChangesEditing');_0x4a50ee['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4a50ee['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4a50ee['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x396a2a,'FORMAT_HEADER_ROW')),_0x4a50ee['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x396a2a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x23f4d5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37723c=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x23f4d5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x37723c),_0x23f4d5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x37723c),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x597c4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51d08f=this['editor']['plugins']['get']('TableUtils');function _0x325247({showActiveMarker:_0x11d6d6=!0x0,setDataAttribute:_0x522a68=!0x0}={}){return(_0x191d6a,_0x46486d,_0x198fc9)=>{const {type:_0x157936,id:_0x3c9103}=_0x597c4f['_splitMarkerName'](_0x46486d['markerName']);if(!_0x597c4f['hasSuggestion'](_0x3c9103))return;const _0xfae75e=_0x597c4f['getSuggestion'](_0x3c9103),_0x19511b=_0xfae75e['data'];if('formatBlock'!=_0xfae75e['type']||!_0x19511b||'setTableColumnHeader'!=_0x19511b['commandName'])return;if(_0x46486d['item'])return void _0x191d6a['stop']();if(!_0x198fc9['consumable']['consume'](_0x46486d['markerRange'],_0x191d6a['name']))return;const _0x392d40=_0x46486d['markerRange']['start']['nodeAfter'],_0x26d060=_0x46486d['markerRange']['end']['nodeBefore'],_0x37ab1f=_0x392d40['parent']['parent'],{column:_0x4cadc1}=_0x51d08f['getCellLocation'](_0x392d40),{column:_0x53566d}=_0x51d08f['getCellLocation'](_0x26d060);for(let _0x616a4d=_0x4cadc1;_0x616a4d<=_0x53566d;_0x616a4d++){const _0xf766d7=_0x51d08f['createTableWalker'](_0x37ab1f,{'column':_0x616a4d,'includeAllSlots':!0x1});for(const _0x1eb835 of _0xf766d7){const _0x56714d=_0x1eb835['cell'],_0x10f0da=_0x198fc9['mapper']['toViewElement'](_0x56714d);_0x198fc9['writer']['addClass']('ck-suggestion-marker-'+_0x157936,_0x10f0da),_0x522a68&&_0x198fc9['writer']['setAttribute']('data-suggestion',_0x3c9103,_0x10f0da),_0x198fc9['mapper']['bindElementToMarker'](_0x10f0da,_0x46486d['markerName']),_0x11d6d6&&(_0x597c4f['activeMarkers']['includes'](_0x46486d['markerName'])?_0x198fc9['writer']['addClass']('ck-suggestion-marker--active',_0x10f0da):_0x198fc9['writer']['removeClass']('ck-suggestion-marker--active',_0x10f0da));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x325247(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x18f68a,_0x383f7e,_0x4bc753)=>{_0x4bc753['options']['showSuggestionHighlights']&&_0x325247({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x18f68a,_0x383f7e,_0x4bc753);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x13f866,_0x59a106,_0x159688)=>{const {type:_0x5c1553,id:_0x4f2d1d}=_0x597c4f['_splitMarkerName'](_0x59a106['markerName']);if(!_0x597c4f['hasSuggestion'](_0x4f2d1d))return;const _0x17607e=_0x597c4f['getSuggestion'](_0x4f2d1d),_0x5ebb59=_0x17607e['data'];if('formatBlock'!=_0x17607e['type']||!_0x5ebb59||'setTableColumnHeader'!=_0x5ebb59['commandName'])return;const _0x52f792=_0x159688['mapper']['markerNameToElements'](_0x59a106['markerName']);if(_0x52f792){for(const _0x1660ba of _0x52f792)_0x159688['writer']['removeClass']('ck-suggestion-marker-'+_0x5c1553,_0x1660ba),_0x159688['writer']['removeClass']('ck-suggestion-marker--active',_0x1660ba),_0x159688['writer']['removeAttribute']('data-suggestion',_0x1660ba),_0x159688['mapper']['unbindElementFromMarkerName'](_0x1660ba,_0x59a106['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x4a014b=this['editor'],_0x181d79=_0x4a014b['locale'];function _0x3cea7f(_0x1c605d){return{'type':'format','content':o(_0x181d79,'*Format:*\x20%0',_0x1c605d)};}_0x4a014b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x169e76=>{if('formatBlock'!=_0x169e76['type'])return;const {data:_0x19a014}=_0x169e76;if(_0x19a014){if('setTableRowHeader'==_0x19a014['commandName']){const _0x1bbf96=_0x19a014['commandParams'][0x0]['forceValue'];return _0x3cea7f(o(_0x181d79,_0x1bbf96?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x19a014['commandName']){const _0x35b6bd=_0x19a014['commandParams'][0x0]['forceValue'];return _0x3cea7f(o(_0x181d79,_0x35b6bd?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x53f614{['afterInit'](){const _0x692897=this['editor'],_0x4bbc34=_0x692897['locale'],_0x2902f5=_0x692897['plugins']['get']('TrackChangesEditing');function _0x2860b5(_0x59f87f){return{'type':'format','content':''+o(_0x4bbc34,'*Set\x20table\x20type:*\x20%0',_0x59f87f)};}_0x692897['plugins']['has']('TableLayout')&&(_0x2902f5['enableCommand']('insertTableLayout'),_0x2902f5['enableDefaultAttributesIntegration']('tableType'),_0x2902f5['descriptionFactory']['registerElementLabel'](_0x14834a=>_0x14834a['is']('element','table')&&'layout'===_0x14834a['getAttribute']('tableType'),_0x1a8cff=>o(_0x4bbc34,'ELEMENT_LAYOUT_TABLE',_0x1a8cff)),_0x2902f5['descriptionFactory']['registerDescriptionCallback'](_0x19b754=>{const {data:_0x59da3c}=_0x19b754;if(_0x59da3c&&'tableType'==_0x59da3c['key'])switch(_0x59da3c['newValue']){case'layout':return _0x2860b5(o(_0x4bbc34,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2860b5(o(_0x4bbc34,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Re['map'](_0x488f4f=>[_0x488f4f,null]));class Bt extends _0x53f614{static get['requires'](){return[Nt];}['afterInit'](){const _0x275c9e=this['editor'];if(!_0x275c9e['plugins']['has']('TableClipboard'))return;const _0x590e55=_0x275c9e['plugins']['get']('TrackChangesEditing'),_0x5b0aa1=_0x275c9e['plugins']['get']('TableUtils'),_0x3219da=_0x275c9e['plugins']['get'](Nt),_0x60b81d=_0x275c9e['plugins']['get']('TableClipboard'),_0x1c5037=_0x275c9e['plugins']['get']('TableSelection'),_0x4e5b2a=_0x275c9e['plugins']['get'](_0x31b508);_0x3219da['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x275c9e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x275c9e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5a9931=null,_0x519e50=!0x1;_0x4e5b2a['on']('contentInsertion',(_0x596bc7,_0x1e48d4)=>{_0x519e50='paste'===_0x1e48d4['method'];}),_0x275c9e['model']['on']('insertContent',(_0x338c72,_0x901f21)=>{if(!_0x519e50&&null===_0x1c5037['getSelectedTableCells']())return;const [_0x376934,_0x31359f]=_0x901f21,_0x29bdb5=_0x901f21[_0x901f21['length']-0x1];_0x29bdb5&&_0x29bdb5['forceDefaultExecution']||_0x590e55['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x6db818,_0x498bac,_0x22e28e,_0x3b20b1,_0x8d10fc){if(_0x498bac&&!_0x498bac['is']('documentSelection'))return!0x1;const _0x3cccb9=_0x8d10fc['getTableIfOnlyTableInContent'](_0x6db818,_0x22e28e);if(!_0x3cccb9||!Oe(_0x3cccb9,void 0x0,_0x3b20b1))return!0x1;const _0x516e6f=_0x3b20b1['getSelectionAffectedTableCells'](_0x22e28e['document']['selection']);if(!_0x516e6f['length'])return!0x1;const _0x223b3b=_0x516e6f[0x0]['findAncestor']('table'),_0x2bb2d0=_0x3b20b1['getRowIndexes'](_0x516e6f),_0x2dd28b=_0x3b20b1['getColumnIndexes'](_0x516e6f),_0xa24cd4={'startRow':_0x2bb2d0['first'],'endRow':_0x2bb2d0['last'],'startColumn':_0x2dd28b['first'],'endColumn':_0x2dd28b['last']};return 0x1==_0x516e6f['length']&&(_0xa24cd4['endRow']+=_0x3b20b1['getRows'](_0x3cccb9)-0x1,_0xa24cd4['endColumn']+=_0x3b20b1['getColumns'](_0x3cccb9)-0x1),Oe(_0x223b3b,_0xa24cd4,_0x3b20b1);}(_0x376934,_0x31359f,_0x275c9e['model'],_0x5b0aa1,_0x60b81d)&&(_0x338c72['stop'](),_0x5a9931={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x275c9e['model']['change'](()=>{_0x275c9e['model']['insertContent'](_0x901f21[0x0],_0x901f21[0x1],_0x901f21[0x2],{'forceDefaultExecution':!0x0});const _0x1e5486=_0x52b521(),{rowInsertionRanges:_0x5d8d48,columnInsertionRanges:_0x91194d,insertionRanges:_0x3720c6,deletionRanges:_0xc22f1a,cells:_0x38c3d0}=_0x5a9931;_0x5d8d48['length']&&_0x590e55['markMultiRangeInsertion'](_0x5d8d48,'tablePasteRow',{'tablePasteChainId':_0x1e5486}),_0x91194d['length']&&_0x590e55['markMultiRangeInsertion'](_0x91194d,'tablePasteColumn',{'tablePasteChainId':_0x1e5486}),_0x3720c6['length']&&(_0x590e55['markMultiRangeInsertion'](_0x3720c6,'tablePaste',{'tablePasteChainId':_0x1e5486,'skipNestingCheck':!0x0}),_0x3720c6['forEach'](_0x4bd9e2=>_0x4bd9e2['detach']?.())),_0xc22f1a['length']&&(_0x590e55['markMultiRangeDeletion'](_0xc22f1a,'tablePaste',{'tablePasteChainId':_0x1e5486,'skipNestingCheck':!0x0}),_0xc22f1a['forEach'](_0x36f200=>_0x36f200['detach']?.()));const _0x36f3b9=_0x590e55['markMultiRangeBlockFormat'](_0x38c3d0['map'](({element:_0x191b8a})=>_0x191b8a),{'formatGroupId':_0x52b521()},[],'tablePasteCell',{'tablePasteChainId':_0x1e5486});if(_0x36f3b9){const _0x5dd7a4=_0x36f3b9['getMarkers'](),_0x4760a6=[];for(const {element:_0x23d3fd,attributes:_0xbcc36f}of _0x38c3d0){if(!_0xbcc36f)continue;const _0x130629=_0x275c9e['model']['createRangeOn'](_0x23d3fd),_0x15b6d0=_0x5dd7a4['find'](_0x4360c4=>_0x4360c4['getRange']()['isEqual'](_0x130629));_0x15b6d0&&_0x4760a6['push']([_0x15b6d0['name'],_0xbcc36f]);}_0x4760a6['length']&&_0x36f3b9['setAttribute']('markerAttributes',Object['fromEntries'](_0x4760a6));}_0x5a9931=null;}));},{'priority':_0x537915['high']+0xa}),_0x4e5b2a['on']('contentInsertion',()=>{_0x519e50=!0x1;},{'priority':'lowest'}),_0x275c9e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x35af58,_0x55a3fc)=>{const [_0x334158,_0x5ecfe7,,_0x11bc48]=_0x55a3fc;if(!_0x5a9931)return;_0x35af58['stop']();const _0x538e4d=_0x334158['cell'],_0x169125=_0x5ecfe7,_0x3cb55c=Be(_0x538e4d),_0x2f45e3=Be(_0x169125);_0x35af58['return']=_0x538e4d;let _0x4356ba=null,_0x2d8930=null;if(_0x2f45e3||_0x3cb55c){if(_0x3cb55c&&!_0x2f45e3){_0x11bc48['remove'](_0x538e4d['getChild'](0x0));for(const _0x189418 of Array['from'](_0x169125['getChildren']()))_0x11bc48['insert'](_0x189418,_0x538e4d,'end');const _0x12a25e=_0x5a9931['rowInsertionIndexes']['includes'](_0x334158['row']),_0x3cf8f3=_0x5a9931['columnInsertionIndexes']['includes'](_0x334158['column']);_0x12a25e||_0x3cf8f3||(_0x4356ba=_0x4960c7['fromRange'](_0x11bc48['createRangeIn'](_0x538e4d)));}else _0x2f45e3&&!_0x3cb55c&&(_0x2d8930=_0x11bc48['createRangeIn'](_0x538e4d));}else{const _0x1c60aa=_0x11bc48['createElement']('tableCellSuggestion'),_0x2eeccf=_0x11bc48['createElement']('tableCellSuggestion');_0x11bc48['wrap'](_0x11bc48['createRangeIn'](_0x538e4d),_0x2eeccf),_0x11bc48['insert'](_0x1c60aa,_0x538e4d,0x0);for(const _0x1da0bc of Array['from'](_0x169125['getChildren']()))_0x11bc48['insert'](_0x1da0bc,_0x1c60aa,'end');_0x4356ba=_0x4960c7['fromRange'](_0x11bc48['createRangeOn'](_0x1c60aa)),_0x2d8930=_0x4960c7['fromRange'](_0x11bc48['createRangeOn'](_0x2eeccf));}const _0x4f065c=Array['from'](_0x169125['getAttributes']())['filter'](([_0x28cf64])=>Re['includes'](_0x28cf64));_0x5a9931['cells']['push']({'element':_0x538e4d,'attributes':_0x4f065c['length']?Object['fromEntries'](_0x4f065c):null}),_0x4356ba&&_0x5a9931['insertionRanges']['push'](_0x4356ba),_0x2d8930&&_0x5a9931['deletionRanges']['push'](_0x2d8930);},{'priority':'high'}),_0x5b0aa1['on']('insertColumns',(_0x20bf5f,_0x1e8722)=>{const [_0x157799,_0x3dc99e={}]=_0x1e8722;if(!_0x5a9931)return;const _0x4df16e=_0x3dc99e['at']||0x0,_0x187758=_0x3dc99e['columns']||0x1;_0x5a9931['columnInsertionIndexes']=new Array(_0x187758)['fill'](_0x4df16e)['map']((_0x94f235,_0x45fdeb)=>_0x94f235+_0x45fdeb);for(const {cell:_0x596643}of _0x5b0aa1['createTableWalker'](_0x157799,{'startColumn':_0x4df16e,'endColumn':_0x4df16e+_0x187758-0x1}))_0x5a9931['columnInsertionRanges']['push'](_0x275c9e['model']['createRangeOn'](_0x596643));},{'priority':'low'}),_0x5b0aa1['on']('insertRows',(_0x304f7e,_0x2d2782)=>{const [_0x54b2be,_0x564993={}]=_0x2d2782;if(!_0x5a9931)return;const _0x328665=_0x564993['at']||0x0,_0x1faa22=_0x564993['rows']||0x1;_0x5a9931['rowInsertionIndexes']=new Array(_0x1faa22)['fill'](_0x328665)['map']((_0x16738d,_0x3f4608)=>_0x16738d+_0x3f4608);for(const {cell:_0x404379}of _0x5b0aa1['createTableWalker'](_0x54b2be,{'startRow':_0x328665,'endRow':_0x328665+_0x1faa22-0x1}))_0x5a9931['rowInsertionRanges']['push'](_0x275c9e['model']['createRangeOn'](_0x404379));},{'priority':'low'}),_0x590e55['descriptionFactory']['registerDescriptionCallback'](_0x39d255=>{if(_0x39d255['subType']&&_0x39d255['subType']['startsWith']('tablePaste'))return _0x39d255['previous']?{}:{'type':'insertion','content':o(_0x275c9e['locale'],'*Replace\x20table\x20cells*')};});const _0x2cf07f=()=>!0x1;for(const _0x49bfb7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x590e55['_suggestionFactory']['registerCustomCallback']('insertion',_0x49bfb7,'join',_0x2cf07f),_0x590e55['_suggestionFactory']['registerCustomCallback']('deletion',_0x49bfb7,'join',_0x2cf07f),_0x590e55['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x49bfb7,'join',_0x2cf07f);_0x590e55['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2cf07f),_0x590e55['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x32178d,_0xe7d3a2,_0x3f4eed)=>{const _0x3b1deb=_0x32178d['map'](_0x5876bd=>_0x5876bd['getContainedElement']())['filter'](_0x3452d6=>_0x3452d6),_0x372fca=new Map(_0x3b1deb['map'](_0x17d186=>[_0x17d186,null]));if(_0x5a9931){for(const {element:_0x36204a,attributes:_0xcf2431}of _0x5a9931['cells'])_0xcf2431&&_0x372fca['set'](_0x36204a,_0xcf2431);}else{if(_0x3f4eed&&_0x3f4eed['markerAttributes'])for(const [_0x474626,_0x550a9d]of Object['entries'](_0x3f4eed['markerAttributes'])){const _0x1cd0d7=_0x275c9e['model']['markers']['get'](_0x474626),_0x1c759b=_0x1cd0d7?_0x1cd0d7['getRange']()['getContainedElement']():null;_0x1c759b&&_0x372fca['set'](_0x1c759b,_0x550a9d);}}_0x275c9e['model']['change'](_0x1ad8ae=>{for(const [_0x238b7e,_0x288453]of _0x372fca)_0x1ad8ae['setAttributes']({...Ae,..._0x288453},_0x238b7e);});});const _0x2e222a=(_0x51bfc0,_0x1be682)=>{_0x590e55['_suggestionFactory']['registerCustomCallback'](_0x51bfc0,'tablePaste',_0x1be682,(_0x238ee4,_0x24515d,_0xffad68)=>{_0x275c9e['model']['change'](_0x336d72=>{const _0x5c1ab6=[];for(const _0x533104 of _0x238ee4){const _0x3bff19=_0x533104['start']['nodeAfter'];_0x3bff19['is']('element','tableCellSuggestion')&&_0x5c1ab6['push'](_0x3bff19);}_0x590e55['_suggestionFactory']['getSuggestionCallback'](_0x51bfc0,null,_0x1be682)(_0x238ee4,_0x24515d,_0xffad68);for(const _0x581857 of _0x5c1ab6)'$graveyard'!=_0x581857['root']['rootName']&&_0x336d72['unwrap'](_0x581857);});});};_0x2e222a('insertion','accept'),_0x2e222a('insertion','discard'),_0x2e222a('deletion','accept'),_0x2e222a('deletion','discard'),_0x590e55['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x383adf=>{const _0x18ca9b=_0x383adf['map'](_0x1959a2=>_0x1959a2['getContainedElement']()),_0x369589=_0x18ca9b[0x0]['findAncestor']('table'),{minRow:_0x51a3c2,maxRow:_0x2d6c1b}=_0x3219da['_getCoordsForCells'](_0x18ca9b);_0x5b0aa1['removeRows'](_0x369589,{'at':_0x51a3c2,'rows':_0x2d6c1b-_0x51a3c2+0x1});}),_0x590e55['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x466144=>{const _0x1ad0e3=_0x466144['map'](_0x51bb2e=>_0x51bb2e['getContainedElement']()),_0x31a633=_0x1ad0e3[0x0]['findAncestor']('table'),{minColumn:_0xd73fcf,maxColumn:_0xe976a2}=_0x3219da['_getCoordsForCells'](_0x1ad0e3);_0x5b0aa1['removeColumns'](_0x31a633,{'at':_0xd73fcf,'columns':_0xe976a2-_0xd73fcf+0x1});});const _0x1145e3=(_0x8c3109,_0x41eb47)=>{if(!_0x41eb47['subType']||!_0x41eb47['subType']['startsWith']('tablePaste'))return;const _0x31893c=_0x41eb47['attributes']['tablePasteChainId'],_0x4f04e9=_0x590e55['getSuggestions']()['filter'](_0x393f03=>_0x393f03['isInContent']&&_0x393f03['attributes']&&_0x393f03['attributes']['tablePasteChainId']==_0x31893c);_0x4f04e9['length']&&_0x41eb47['getAllAdjacentSuggestions']()['length']!=_0x4f04e9['length']&&_0x4f04e9['reduce']((_0x582de6,_0x19d4c1)=>(_0x582de6['next']=_0x19d4c1,_0x19d4c1['previous']=_0x582de6,_0x19d4c1));};function _0x561088(_0x2b8ca1,_0x295719=!0x0){const {id:_0x283fca,authorId:_0x5ea4d1}=_0x590e55['_splitMarkerName'](_0x2b8ca1['markerName']),_0x2a6656=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2bfc5a=_0x590e55['activeMarkers']['includes'](_0x2b8ca1['markerName']);return _0x2bfc5a&&_0x2a6656['push']('ck-suggestion-marker--active'),{'classes':_0x2a6656,'attributes':{'data-suggestion':_0x283fca,'data-author-id':_0x5ea4d1},'priority':_0x2bfc5a&&_0x295719?0xbc2:0xbb8};}_0x590e55['on']('suggestionLoaded',_0x1145e3,{'priority':'high'}),_0x590e55['on']('suggestionUnloaded',_0x1145e3,{'priority':'high'}),_0x275c9e['model']['document']['registerPostFixer'](()=>{let _0x5b7cd4=!0x1;const _0x5e41de=Array['from'](_0x275c9e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x162977,data:_0x5ef066}of _0x5e41de){const {group:_0x701252,type:_0x3a3759,id:_0x40888d}=_0x590e55['_splitMarkerName'](_0x162977);if('suggestion'!=_0x701252||'deletion'!=_0x3a3759||_0x5ef066['oldRange'])continue;if(!_0x590e55['hasSuggestion'](_0x40888d))continue;const _0x17223c=_0x590e55['getSuggestion'](_0x40888d)['getRanges'](),_0x30379a=_0x275c9e['plugins']['get']('Users')['me'];for(const _0x48c5cf of _0x590e55['getSuggestions']()){if(!_0x48c5cf['isInContent']||_0x48c5cf['author']!=_0x30379a)continue;if('formatBlock'!=_0x48c5cf['type']||'tablePasteCell'!=_0x48c5cf['subType'])continue;if(_0x48c5cf['getRanges']()['every'](_0x39d3b8=>_0x17223c['some'](_0x3e8362=>_0x3e8362['containsRange'](_0x39d3b8,!0x0)))){for(const _0x14616b of _0x48c5cf['getAllAdjacentSuggestions']())_0x14616b['isInContent']&&(_0x14616b['discard'](),_0x5b7cd4=!0x0);}}}return _0x5b7cd4;}),_0x275c9e['model']['document']['registerPostFixer'](_0x16cab1=>{const _0x1a3ed4=_0x275c9e['commands']['get']('redo');if(!_0x1a3ed4||!_0x1a3ed4['_createdBatches']['has'](_0x16cab1['batch']))return!0x1;let _0x1b212b=!0x1;const _0xa9c5=_0x275c9e['plugins']['get']('Users')['me'],_0x346fc=_0x275c9e['model']['document']['differ']['getChanges'](),_0x193c52=Array['from'](_0x275c9e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x29357a,data:_0x2a8526})=>{const {group:_0x429d59,subType:_0x723814,authorId:_0xc163dc}=_0x590e55['_splitMarkerName'](_0x29357a);return'suggestion'==_0x429d59&&'tablePaste'==_0x723814&&_0xc163dc==_0xa9c5['id']&&!_0x2a8526['oldRange'];});for(const _0x1029d3 of _0x346fc){if('insert'!=_0x1029d3['type']||'tableCellSuggestion'!=_0x1029d3['name']||0x1!=_0x1029d3['length'])continue;const _0x5ec121=_0x16cab1['createRange'](_0x1029d3['position'],_0x1029d3['position']['getShiftedBy'](0x1));if(!_0x193c52['find'](({data:_0x578da4})=>_0x578da4['newRange']['isEqual'](_0x5ec121))){for(const {name:_0x17a9de,data:_0x3c629b}of _0x193c52)if(_0x5ec121['containsRange'](_0x3c629b['newRange'])){_0x16cab1['updateMarker'](_0x17a9de,{'range':_0x5ec121}),_0x1b212b=!0x0;break;}}}return _0x1b212b;}),_0x275c9e['model']['document']['registerPostFixer'](_0x37f1fd=>{let _0x3406f4=!0x1;const _0x26acb4=_0x275c9e['plugins']['get']('Users')['me'],_0x262bc9=_0x590e55['getSuggestions']()['filter'](_0x3fc1eb=>_0x3fc1eb['isInContent']&&_0x3fc1eb['author']==_0x26acb4),_0x5c6614=new Set(),_0x3e81db=new Set();for(const _0xa5b24e of _0x262bc9)if('tablePaste'==_0xa5b24e['subType'])for(const _0x80e147 of _0xa5b24e['getMarkers']()){const _0x1c60fc=_0x80e147['getRange']()['getContainedElement']();if(_0x1c60fc){if(_0x1c60fc['is']('element','tableCellSuggestion')&&Be(_0x1c60fc)){_0xa5b24e['removeMarker'](_0x80e147['name']),_0x5c6614['add'](_0x1c60fc),_0x3406f4=!0x0;const _0x27823d=_0x1c60fc['nextSibling'],_0x16b1df=_0x1c60fc['previousSibling'],_0x5be5dc=_0x27823d&&_0x27823d['is']('element','tableCellSuggestion'),_0x5dead1=_0x16b1df&&_0x16b1df['is']('element','tableCellSuggestion');_0x5be5dc&&!_0x5c6614['has'](_0x27823d)&&_0x3e81db['add'](_0x27823d),_0x5dead1&&!_0x5c6614['has'](_0x16b1df)&&_0x3e81db['add'](_0x16b1df);}else _0x1c60fc['is']('element','paragraph')&&_0x1c60fc['isEmpty']&&(_0xa5b24e['removeMarker'](_0x80e147['name']),_0x3406f4=!0x0);}}else{if('tablePasteCell'==_0xa5b24e['subType']){if(!_0xa5b24e['attributes']||!_0xa5b24e['attributes']['tablePasteChainId'])continue;const _0x10bdde=_0xa5b24e['attributes']['markerAttributes'];if(_0x10bdde&&Object['keys'](_0x10bdde)['length'])continue;const _0x43200c=_0xa5b24e['attributes']['tablePasteChainId'];let _0x153fec=!0x0,_0x7afdbf=!0x0;for(const _0x935a7 of _0x262bc9)if(_0x935a7['subType']&&_0x935a7['subType']['startsWith']('tablePaste')){if(!_0x935a7['attributes']['tablePasteChainId']){_0x7afdbf=!0x1;break;}if(_0x935a7['id']!=_0xa5b24e['id']&&_0x935a7['attributes']['tablePasteChainId']==_0x43200c){_0x153fec=!0x1;break;}}_0x7afdbf&&_0x153fec&&(_0xa5b24e['removeMarkers'](),_0x3406f4=!0x0);}}for(const _0x6b71ce of _0x5c6614)_0x37f1fd['remove'](_0x6b71ce);for(const _0x18877e of _0x3e81db)_0x37f1fd['unwrap'](_0x18877e);return _0x3406f4;}),_0x275c9e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x42c425=>_0x561088(_0x42c425),'converterPriority':'high'}),_0x275c9e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x477e77,_0x5e4601)=>_0x5e4601['options']['showSuggestionHighlights']?_0x561088(_0x477e77,!0x1):null,'converterPriority':'high'});const _0x2dd6da=_0x275c9e['editing']['view'];this['listenTo'](_0x2dd6da['document'],'clipboardOutput',(_0x1779c6,_0x1c6872)=>{const _0x17c659=[];for(const _0x34002d of _0x2dd6da['createRangeIn'](_0x1c6872['content'])['getItems']())_0x34002d['is']('element','suggestion-td')&&_0x17c659['push'](_0x34002d);_0x2dd6da['change'](_0x2fbd8c=>{for(const _0x1a5b41 of _0x17c659)_0x2fbd8c['move'](_0x2fbd8c['createRangeIn'](_0x1a5b41),_0x2fbd8c['createPositionBefore'](_0x1a5b41)),_0x2fbd8c['remove'](_0x1a5b41);});});}}function Be(_0x5a2a23){if(_0x5a2a23['isEmpty'])return!0x0;const _0x2b3305=_0x5a2a23['getChild'](0x0);return _0x2b3305['is']('element','paragraph')&&_0x2b3305['isEmpty'];}function Oe(_0x39af33,_0x121d31={},_0x374a9b){for(const {isAnchor:_0x4d59c8,cellHeight:_0x4dcbfc,cellWidth:_0xabc7da}of _0x374a9b['createTableWalker'](_0x39af33,{'includeAllSlots':!0x0,..._0x121d31}))if(!_0x4d59c8||0x1!=_0x4dcbfc||0x1!=_0xabc7da)return!0x1;return!0x0;}class Ot extends _0x53f614{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2a096d=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a096d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2a096d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2a096d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a096d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2a096d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2a096d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xbde327,_0x5f5cf8){const _0x59d3e6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x259895=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3ffdf1=_0x5f5cf8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2cf2a0=_0x259895['getColumnGroupElement'](_0x3ffdf1);let _0xc7e985=_0x2cf2a0?_0x259895['getTableColumnsWidths'](_0x2cf2a0):null,_0x32c3f9=_0x3ffdf1['getAttribute']('tableWidth')||null;const _0x5ad92e=_0x5f5cf8['tableWidth']||_0x32c3f9,_0x44f418=_0x5f5cf8['columnWidths']||_0xc7e985,_0x1f329d=this['editor']['plugins']['get']('Users')['me'];for(const _0x5a3861 of _0x59d3e6['getSuggestions']()){const _0x40e7bc=_0x5a3861['getContainedElement']();if('resizeTable'===_0x5a3861['subType']&&_0x40e7bc===_0x3ffdf1){_0x5a3861['author']!==_0x1f329d&&_0x5a3861['discard']();const _0x112a8e=_0x5a3861['data']['commandParams'];_0x32c3f9=_0x112a8e[0x0]['tableWidth'],_0xc7e985=_0x112a8e[0x0]['columnWidths'];break;}}_0xbde327({'table':_0x3ffdf1,'tableWidth':_0x5ad92e,'columnWidths':_0x44f418}),_0x59d3e6['markBlockFormat'](_0x3ffdf1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x32c3f9,'columnWidths':_0xc7e985}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x290fd8){if('formatBlock'!=_0x290fd8['type']&&'formatInline'!=_0x290fd8['type'])return;const {data:_0x7d04b9}=_0x290fd8;if(_0x7d04b9&&'resizeTable'===_0x7d04b9['formatGroupId']){const _0x59c937='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x59c937)};}}}class xt extends _0x53f614{['afterInit'](){const _0x64a424=this['editor'];_0x64a424['plugins']['has']('Template')&&_0x64a424['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x53f614{['afterInit'](){const _0x127e5d=this['editor'];if(!_0x127e5d['commands']['get']('insertTableOfContents'))return;_0x127e5d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x340e44=_0x127e5d['plugins']['get']('TrackChangesEditing'),_0xbe0953=_0x127e5d['locale'];_0x340e44['descriptionFactory']['registerElementLabel']('tableOfContents',_0x43c620=>o(_0xbe0953,'ELEMENT_TABLE_OF_CONTENTS',_0x43c620));}}class Rt extends _0x53f614{['afterInit'](){const _0x4850ca=this['editor'];if(!_0x4850ca['plugins']['has']('Title'))return;const _0x3e63d=_0x4850ca['plugins']['get']('TrackChangesEditing');_0x3e63d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4850ca['locale'],'ELEMENT_TITLE')),_0x4850ca['model']['document']['registerPostFixer'](_0x1e5982=>{let _0xb57402=!0x1;const _0x51aa9b=Array['from'](_0x4850ca['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x505a3f,data:_0xc0284c}of _0x51aa9b){const {group:_0x3abe54}=_0x3e63d['_splitMarkerName'](_0x505a3f);if('suggestion'!==_0x3abe54||!_0xc0284c['newRange'])continue;const _0xd8ad87=_0xc0284c['newRange'],_0x4f7876=_0xd8ad87['end']['nodeBefore'];if(!_0x4f7876||!_0x4f7876['is']('element','title-content'))continue;if(!_0xd8ad87['start']['isTouching'](_0xd8ad87['end']))continue;const _0x4fdda0=_0x4850ca['model']['schema']['getNearestSelectionRange'](_0xd8ad87['end'],'forward');if(_0x4fdda0&&_0x4fdda0['isCollapsed']){const _0x4646ef=_0x1e5982['createRange'](_0xd8ad87['start'],_0x4fdda0['start']);_0x4646ef['isEqual'](_0xd8ad87)||(_0x1e5982['updateMarker'](_0x505a3f,{'range':_0x4646ef}),_0xb57402=!0x0);}_0xb57402||(_0x1e5982['removeMarker'](_0x505a3f),_0xb57402=!0x0);}return _0xb57402;});}}class Tt extends _0x53f614{['afterInit'](){const _0x28fa66=this['editor'],_0x3ac9f1=_0x28fa66['plugins']['get']('TrackChangesEditing');_0x28fa66['plugins']['has']('Uploadcare')&&(_0x3ac9f1['enableCommand']('uploadcare'),_0x28fa66['plugins']['has']('UploadcareImageEdit')&&(_0x3ac9f1['enableCommand']('uploadcareImageEdit'),_0x3ac9f1['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3ac9f1['descriptionFactory']['registerDescriptionCallback'](_0x35ba7b=>{if('attribute'!=_0x35ba7b['type'])return;const {data:_0x473fea}=_0x35ba7b;return _0x473fea&&'uploadcareImageId'==_0x473fea['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x53f614{['afterInit'](){const _0x8a1c32=this['editor'],_0x3499bf=_0x8a1c32['plugins']['get']('TrackChangesEditing');_0x8a1c32['plugins']['has']('UndoEditing')&&(_0x3499bf['enableCommand']('undo'),_0x3499bf['enableCommand']('redo'));}}class Ut extends _0x53f614{static get['requires'](){return[Nt];}['afterInit'](){const _0x3305d9=this['editor'];if(!_0x3305d9['plugins']['has']('TableCaptionEditing'))return;_0x3305d9['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x53f614{['tableProperties'];['tableCellProperties'];constructor(_0x2e5beb){super(_0x2e5beb),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x2e5beb['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2e7a90=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3072b0 of this['tableProperties'])_0x2e7a90['enableCommand'](_0x3072b0,(_0x3cf2a2,_0x29b41c)=>{const _0x2a5558=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3072b0,[_0x2a5558],this['tableProperties'],'tableProperties',_0x3cf2a2,_0x29b41c);});_0x2e7a90['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2e7a90['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2e7a90['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xdf4c1a,_0x3df28a)=>this['handleDiscardAction'](this['tableProperties'],_0xdf4c1a,_0x3df28a)),_0x2e7a90['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x256f7c of this['tableCellProperties'])this['editor']['commands']['get'](_0x256f7c)&&_0x2e7a90['enableCommand'](_0x256f7c,(_0x4f47c2,_0x2931b6)=>{const _0x203154=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x256f7c,_0x203154,this['tableCellProperties'],'tableCellProperties',_0x4f47c2,_0x2931b6);});_0x2e7a90['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2e7a90['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2e7a90['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4c2ebb,_0xbb8e5e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4c2ebb,_0xbb8e5e)),_0x2e7a90['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&(_0x2e7a90['registerBlockAttribute']('tableCellType'),_0x2e7a90['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE')));}_0x2e7a90['descriptionFactory']['registerDescriptionCallback'](_0xece46b=>this['handleSuggestionDescription'](_0xece46b)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1d7290,_0x5b522f,_0x244cb3,_0x4f4714,_0x2109ba,_0x594800){const _0x30d925=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x594800['batch'],()=>{for(const _0x4d8ef4 of _0x5b522f){if(this['_getSuggestion'](_0x4d8ef4,_0x4f4714))_0x2109ba(_0x594800);else{const _0x35deee={};for(const _0x47ab91 of _0x244cb3){const _0x29453b=_0x4d8ef4['getAttribute'](_0x47ab91);void 0x0!==_0x29453b&&(_0x35deee[_0x47ab91]=_0x29453b);}_0x2109ba(_0x594800),_0x30d925['markBlockFormat'](_0x4d8ef4,{'commandParams':[_0x35deee]},[],_0x4f4714);}}});}['handleDiscardAction'](_0xfc344d,_0x572b05,_0x1ecd32){const _0x610a3b=_0x572b05[0x0]['start']['nodeAfter'],_0xbcdcb4=_0x1ecd32['commandParams'][0x0];this['editor']['model']['change'](_0x8959b7=>{for(const _0x2c0ce1 of _0xfc344d)void 0x0!==_0xbcdcb4[_0x2c0ce1]?_0x8959b7['setAttribute'](_0x2c0ce1,_0xbcdcb4[_0x2c0ce1],_0x610a3b):_0x8959b7['removeAttribute'](_0x2c0ce1,_0x610a3b);});}['handleSuggestionDescription'](_0x41e4ce){if(_0x41e4ce['data'])switch(_0x41e4ce['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'](_0x2bfef6,_0x468fb6){const _0x5ccd7b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1de9d8 of _0x5ccd7b['getSuggestions']({'skipNotAttached':!0x0})){const _0x447a81=_0x1de9d8['getContainedElement']();if(_0x1de9d8['subType']===_0x468fb6&&_0x447a81===_0x2bfef6)return _0x1de9d8;}return null;}['_registerTablePropertiesAttributes'](){const _0x925a02=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29afce=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x16d195 of _0x29afce){const _0x3cccfc=_0x16d195['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x925a02['descriptionFactory']['registerAttributeLabel'](_0x16d195,o(this['editor']['locale'],'FORMAT_'+_0x3cccfc));}}}class Ft extends _0x53f614{['afterInit'](){const _0x2dd538=this['editor'];if(!_0x2dd538['plugins']['has']('LineHeight'))return;const _0x12d788=_0x2dd538['plugins']['get']('TrackChangesEditing'),_0x276073=_0x2dd538['locale'];_0x12d788['enableDefaultAttributesIntegration']('lineHeight'),_0x12d788['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x276073,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x53f614{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x4d34f8,_0x51f5e7,_0x3df37f,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4fee52){super(_0x4fee52),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x29f06b,_0x5b3db0,_0x587ea6,_0x4f1948)=>{this['_model']['change'](()=>{for(const _0x12dbca of[..._0x4f1948,..._0x587ea6])this['_model']['markers']['has'](_0x12dbca)&&_0x4fee52['editing']['reconvertMarker'](_0x12dbca);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4fee52['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4fee52['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4fee52['config']['get']('trackChanges.trackFormatChanges'),_0x4fee52['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4fee52['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x4fee52,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x11e5f9=this['editor'];_0x11e5f9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x18623f,{writer:_0x44ea45})=>{let _0x442491='suggestion:'+_0x18623f['getAttribute']('suggestion-type')+':'+_0x18623f['getAttribute']('id');return _0x18623f['getAttribute']('marker-count')&&(_0x442491+=':'+_0x18623f['getAttribute']('marker-count')),_0x44ea45['createElement']('$marker',{'data-name':_0x442491});}}),_0x11e5f9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x11e5f9['model']['document']['registerPostFixer'](_0x3b3bb5=>{let _0x598ff7=!0x1;const _0x568fde=Array['from'](_0x11e5f9['model']['document']['differ']['getChangedMarkers']()),_0x5ec892=new Set();for(const {name:_0x2600e6,data:_0x4a6bad}of _0x568fde){const {group:_0x419202,type:_0x413fbd,subType:_0x391dc6,id:_0x1fde0e}=this['_splitMarkerName'](_0x2600e6);if('suggestion'!==_0x419202)continue;const _0x5c1ddc=_0x391dc6?'suggestion:'+_0x413fbd+':'+_0x391dc6+':'+_0x1fde0e:'suggestion:'+_0x413fbd+':'+_0x1fde0e,_0x8f759e=_0x11e5f9['model']['markers']['getMarkersGroup'](_0x5c1ddc),_0x3b2a7e=_0x11e5f9['model']['markers']['get'](_0x2600e6),_0x10b54d=this['_suggestions']['get'](_0x1fde0e);if(null!=_0x4a6bad['newRange']){'formatInline'==_0x413fbd&&(_0x598ff7=_0x598ff7||Wt(_0x4a6bad['newRange'],_0x2600e6,_0x3b3bb5,_0x11e5f9['model']['schema']));const _0xa0aa48='attribute'==_0x413fbd&&this['_isBlockAttribute'](_0x391dc6['split']('|')[0x0]),_0x228760='attribute'==_0x413fbd&&this['_isInlineAttribute'](_0x391dc6['split']('|')[0x0]);if(_0x4a6bad['newRange']['isCollapsed']||'$graveyard'==_0x4a6bad['newRange']['root']['rootName']||'formatBlock'==_0x413fbd&&!Qt(_0x4a6bad['newRange'])||_0xa0aa48&&!Qt(_0x4a6bad['newRange'])||_0x228760&&Xt(_0x4a6bad['newRange'])||'deletion'==_0x413fbd&&Xt(_0x4a6bad['newRange'])||_0x3b2a7e&&Yt(_0x3b2a7e,_0x8f759e))_0x3b3bb5['removeMarker'](_0x2600e6),_0x598ff7=!0x0;else{if(!_0x10b54d||!_0x10b54d['isInContent'])continue;if(_0x4a6bad['newRange']&&_0x4a6bad['oldRange']&&_0x4a6bad['newRange']['isEqual'](_0x4a6bad['oldRange']))continue;_0x5ec892['add'](_0x10b54d);}}}return _0x5ec892['size']>0x0&&(_0x598ff7=!!this['_joinWithAdjacentSuggestions'](_0x5ec892)||_0x598ff7),_0x598ff7;}),_0x11e5f9['model']['document']['registerPostFixer'](_0x3aeaa8=>{let _0x5b064c=!0x1;for(const _0x2d1c0e of _0x11e5f9['model']['document']['differ']['getChanges']())if('insert'==_0x2d1c0e['type'])for(const _0xa98d4 of this['_suggestions']['values']()){if(_0xa98d4['isMultiRange']||!_0xa98d4['isInContent'])continue;const _0x3fc2d4='formatBlock'==_0xa98d4['type'],_0x45c3c4=this['_getAttributeKey'](_0xa98d4),_0x1fc4f8=_0x45c3c4&&this['_isBlockAttribute'](_0x45c3c4);if(!_0x3fc2d4&&!_0x1fc4f8)continue;const _0x14b206=_0xa98d4['getFirstRange']();if(_0x14b206['start']['parent']!=_0x14b206['end']['parent']&&!_0x14b206['end']['isAtEnd']){const _0x22ae8b=_0x11e5f9['model']['createPositionAt'](_0x14b206['start']['nodeAfter'],'end'),_0x3319c4=_0x11e5f9['model']['createRange'](_0x14b206['start'],_0x22ae8b);_0x3aeaa8['updateMarker'](_0xa98d4['getFirstMarker'](),{'range':_0x3319c4}),_0x5b064c=!0x0;}}return _0x5b064c;}),_0x11e5f9['model']['document']['registerPostFixer'](_0x584052=>this['_processAttributeChanges'](_0x584052)),_0x11e5f9['model']['document']['registerPostFixer'](_0x3de1ff=>!_0x3de1ff['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3de1ff)),_0x11e5f9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x11e5f9['model']['document']['on']('change:data',(_0x10be28,_0xce6610)=>{if(!_0xce6610['isLocal']||_0xce6610['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x29d00d=_0x11e5f9['model']['document']['differ']['getChanges']();if(0x0==_0x29d00d['length'])return;const _0x2cb918=[],_0x53936d=_0x29d00d['filter'](_0x375f7c=>'attribute'==_0x375f7c['type']),_0xbbf3b1=_0x29d00d['filter'](_0x70d078=>'insert'==_0x70d078['type']&&'$text'!=_0x70d078['name']);for(const _0x865957 of _0x53936d)this['_isRegisteredAttribute'](_0x865957['attributeKey'])&&_0x2cb918['push']({'key':_0x865957['attributeKey'],'newValue':_0x865957['attributeNewValue'],'oldValue':_0x865957['attributeOldValue'],'range':Zt(_0x865957['range'],_0x11e5f9['model'])});for(const _0x41d7c7 of _0xbbf3b1){if('rename'!=_0x41d7c7['action']&&'refresh'!=_0x41d7c7['action'])continue;const _0x312e24=tn(_0x41d7c7['position']['nodeAfter'],_0x11e5f9['model']),_0x155e7f=_0x41d7c7['before'];'rename'==_0x41d7c7['action']&&_0x2cb918['push']({'key':m,'newValue':_0x41d7c7['name'],'oldValue':_0x155e7f['name'],'range':_0x312e24});for(const [_0xe837ac,_0x142eac]of _0x155e7f['attributes']){if(!this['_isRegisteredAttribute'](_0xe837ac))continue;const _0x3b4b42=_0x41d7c7['attributes']['get'](_0xe837ac);_0x142eac!==_0x3b4b42&&_0x2cb918['push']({'key':_0xe837ac,'newValue':_0x3b4b42,'oldValue':_0x142eac,'range':_0x312e24});}for(const [_0x5f4f33,_0x58e1f2]of _0x41d7c7['attributes'])this['_isRegisteredAttribute'](_0x5f4f33)&&(_0x155e7f['attributes']['has'](_0x5f4f33)||_0x2cb918['push']({'key':_0x5f4f33,'newValue':_0x58e1f2,'oldValue':null,'range':_0x312e24}));}0x0!=_0x2cb918['length']&&_0x11e5f9['model']['enqueueChange'](_0xce6610,_0x7a270f=>{const _0x4cd609=_0x52b521();for(const {range:_0x5d6df4,key:_0x13e54f,oldValue:_0x3266a7,newValue:_0x1969ee}of _0x2cb918)this['markAttributeChange'](_0x5d6df4,_0x13e54f,_0x3266a7,_0x1969ee,{'groupId':_0x4cd609});this['_reduceExistingSuggestions'](_0x7a270f,_0x2cb918);});},{'priority':'lowest'}),_0x11e5f9['model']['markers']['on']('update:suggestion',(_0x1eacf3,_0x3a7deb,_0x4cb8f9)=>{if(null==_0x4cb8f9){const {id:_0x4e9f05}=this['_splitMarkerName'](_0x3a7deb['name']),_0x129118=this['_suggestions']['get'](_0x4e9f05);_0x129118&&_0x129118['addMarkerName'](_0x3a7deb['name']);}}),_0x11e5f9['model']['document']['on']('change:data',()=>{const _0x51638f=Array['from'](_0x11e5f9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3cc64e=>'suggestion'===this['_splitMarkerName'](_0x3cc64e['name'])['group']);if(0x0===_0x51638f['length'])return;_0x51638f['sort']((_0x334c79,_0xc57c9c)=>{const _0x1d6db7=_0x334c79['data']['oldRange'],_0x418350=_0xc57c9c['data']['oldRange'];return null===_0x1d6db7&&null===_0x418350?0x0:null===_0x1d6db7&&null!==_0x418350?-0x1:null!==_0x1d6db7&&null===_0x418350?0x1:_0x1d6db7['start']['isBefore'](_0x418350['start'])?-0x1:0x1;});const _0x31e320=new Set(),_0x2320ca=new Set();for(const {name:_0x4323c9,data:_0xde676b}of _0x51638f){const {id:_0xcf8d04}=this['_splitMarkerName'](_0x4323c9);if(null===_0xde676b['oldRange']){const _0x43666c=this['_handleNewSuggestionMarker'](_0x4323c9);_0x2320ca['add'](_0x43666c);}else{const _0x14e36e=this['_suggestions']['get'](_0xcf8d04);null!==_0xde676b['newRange']||_0x14e36e['isInContent']?(_0x31e320['add'](_0x14e36e['head']),_0x2320ca['add'](_0x14e36e)):this['_removeSuggestion'](_0x14e36e);}}_0x2320ca['size']>0x0&&this['_refreshSuggestionsChain'](_0x2320ca);for(const _0x3a06c8 of _0x31e320)this['fire']('suggestionChanged',_0x3a06c8);}),_0x11e5f9['model']['on']('applyOperation',(_0x2b74de,_0x4b31e5)=>{const _0x211882=_0x4b31e5[0x0];if(!this['_suggestions']['size'])return;if(!_0x211882['isDocumentOperation'])return;if(_0x211882['batch']['isUndo']||!_0x211882['batch']['isLocal'])return;let _0x54ca2b,_0x5edffd;switch(_0x211882['type']){case'insert':_0x54ca2b=_0x11e5f9['model']['createPositionAt'](_0x211882['position']),_0x5edffd=_0x54ca2b['getShiftedBy'](_0x211882['howMany']);break;case'split':_0x54ca2b=_0x11e5f9['model']['createPositionAt'](_0x211882['splitPosition']),_0x5edffd=_0x11e5f9['model']['createPositionAt'](_0x211882['moveTargetPosition']);break;case'move':_0x54ca2b=_0x11e5f9['model']['createPositionAt'](_0x211882['targetPosition']),_0x5edffd=_0x54ca2b['getShiftedBy'](_0x211882['howMany']);break;default:return;}const _0x2b8925=_0x11e5f9['model']['createRange'](_0x54ca2b,_0x5edffd);_0x11e5f9['model']['change'](()=>{for(const {suggestion:_0x5d65ba,meta:_0x3c9815}of this['_findSuggestions'](_0x2b8925)){if(_0x5d65ba['isMultiRange'])continue;if('formatInline'==_0x5d65ba['type'])continue;const _0x233b83=this['_getAttributeKey'](_0x5d65ba);if(_0x233b83&&this['_isBlockAttribute'](_0x233b83)&&'split'!=_0x211882['type'])continue;const _0x4d1c2a=_0x5d65ba['data']&&_0x5d65ba['data']['multipleBlocks'];('formatBlock'!=_0x5d65ba['type']||'split'==_0x211882['type']&&!_0x4d1c2a)&&(_0x3c9815['containsRangeInObject']||'insertion'==_0x5d65ba['type']&&_0x3c9815['isOwn']||_0x5d65ba['getFirstRange']()['containsRange'](_0x2b8925)&&this['_breakSuggestionMarker'](_0x5d65ba,_0x54ca2b,_0x5edffd));}});},{'priority':'lowest'}),_0x11e5f9['model']['on']('deleteContent',(_0x2e4774,_0x2a062c)=>{const _0x3660b7=_0x2a062c[0x0],_0x3c8530=_0x2a062c[0x1];if(_0x3c8530&&_0x3c8530['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3660b7['isCollapsed'])return;const _0x23e8e5=_0x11e5f9['model']['schema'],{start:_0x3257d7,end:_0x1e0f72}=_0x3660b7['getFirstRange'](),_0x51c4ea=_0x3257d7['nodeAfter']&&_0x23e8e5['isLimit'](_0x3257d7['nodeAfter'])?null:_0x23e8e5['getNearestSelectionRange'](_0x3257d7,'forward'),_0x594aaa=_0x1e0f72['nodeBefore']&&_0x23e8e5['isLimit'](_0x1e0f72['nodeBefore'])?null:_0x23e8e5['getNearestSelectionRange'](_0x1e0f72,'backward'),_0x2d1191=_0x11e5f9['model']['createRange'](_0x51c4ea?_0x51c4ea['start']:_0x3257d7,_0x594aaa?_0x594aaa['end']:_0x1e0f72);_0x11e5f9['model']['change'](_0x3d9f95=>{this['markDeletion'](_0x2d1191);const _0x450e87=_0x11e5f9['model']['schema']['getNearestSelectionRange'](_0x2d1191['start']);_0x3660b7['is']('documentSelection')?_0x3d9f95['setSelection'](_0x450e87):_0x3660b7['setTo'](_0x450e87);}),_0x2e4774['stop']();},{'priority':_0x537915['normal']+0xa}),_0x11e5f9['model']['on']('insertContent',(_0x4d2dac,_0x13f223)=>{const _0x2ca9fb=_0x13f223[_0x13f223['length']-0x1];_0x2ca9fb&&_0x2ca9fb['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x11e5f9['model']['change'](()=>{let _0x2a3cee=_0x11e5f9['model']['insertContent'](_0x13f223[0x0],_0x13f223[0x1],_0x13f223[0x2],{'forceDefaultExecution':!0x0});if(!_0x2a3cee)return;_0x4d2dac['return']=_0x2a3cee['clone']();const _0x2b9e1b=_0x2a3cee['end']['nodeBefore'],_0x2a9ba4=_0x11e5f9['model']['schema'];_0x2b9e1b&&_0x2a9ba4['isBlock'](_0x2b9e1b)&&!_0x2a9ba4['isObject'](_0x2b9e1b)&&(_0x2a3cee=_0x11e5f9['model']['createRange'](_0x2a3cee['start'],_0x11e5f9['model']['createPositionAt'](_0x2b9e1b,'end'))),this['markInsertion'](_0x2a3cee);}),_0x4d2dac['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5049ab=new v(_0x11e5f9,this['_suggestions']);_0x11e5f9['commands']['add']('acceptSuggestion',_0x5049ab),this['enableCommand']('acceptSuggestion');const _0x1e4be5=new D(_0x11e5f9,this['_suggestions']);_0x11e5f9['commands']['add']('discardSuggestion',_0x1e4be5),this['enableCommand']('discardSuggestion'),_0x11e5f9['commands']['add']('acceptAllSuggestions',new B(_0x11e5f9,_0x5049ab,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x11e5f9['commands']['add']('discardAllSuggestions',new B(_0x11e5f9,_0x1e4be5,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x11e5f9['commands']['add']('acceptSelectedSuggestions',new O(_0x11e5f9,_0x5049ab,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x11e5f9['commands']['add']('discardSelectedSuggestions',new O(_0x11e5f9,_0x1e4be5,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x169ca1=_0x11e5f9['plugins']['get']('CommentsRepository');this['listenTo'](_0x169ca1,'addComment',(_0x561f7e,{threadId:_0xe4bc49})=>{const _0x4cd5cc=this['_suggestions']['get'](_0xe4bc49);_0x4cd5cc&&_0x4cd5cc['commentThread']&&0x1===_0x4cd5cc['commentThread']['length']&&this['_updateSuggestionData'](_0xe4bc49,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x169ca1,'removeComment',(_0x5dcfd2,{threadId:_0x156d99})=>{const _0x174b20=this['_suggestions']['get'](_0x156d99);_0x174b20&&_0x174b20['commentThread']&&!_0x174b20['commentThread']['length']&&this['_updateSuggestionData'](_0x156d99,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3f3c3e){const _0x50bb31=_0x25e622([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x152964=0x3d8d0df,_0x3686a2=0x3dfaee7^_0x152964,_0x1f9067=window[_0x25e622([0x44,0x61,0x74,0x65])][_0x25e622([0x6e,0x6f,0x77])](),_0x5d6830=_0x3f3c3e[_0x25e622([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x35c59a=new window[(_0x25e622([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39a8e8=>{_0x5d6830[_0x25e622([0x6f,0x6e,0x63,0x65])](_0x25e622([0x72,0x65,0x61,0x64,0x79]),_0x39a8e8);}),_0x1d084c={[_0x25e622([0x6b,0x74,0x79])]:_0x25e622([0x45,0x43]),[_0x25e622([0x75,0x73,0x65])]:_0x25e622([0x73,0x69,0x67]),[_0x25e622([0x63,0x72,0x76])]:_0x25e622([0x50,0x2d,0x32,0x35,0x36]),[_0x25e622([0x78])]:_0x25e622([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]),[_0x25e622([0x79])]:_0x25e622([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]),[_0x25e622([0x61,0x6c,0x67])]:_0x25e622([0x45,0x53,0x32,0x35,0x36])},_0x57bd38=_0x5d6830[_0x25e622([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x25e622([0x67,0x65,0x74])](_0x25e622([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x369311(){let _0x4b9e04,_0x10b282=null,_0x1f1ccb=null;try{if(_0x57bd38==_0x25e622([0x47,0x50,0x4c]))return _0x25e622([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b9e04=_0x54588b(),!_0x4b9e04)return _0x25e622([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b9e04[_0x25e622([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f1ccb=_0x3ac242(_0x4b9e04[_0x25e622([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b9e04[_0x25e622([0x6a,0x74,0x69])])),await _0x47f0cc()?_0x319f1f()?_0x49d2fa()?_0x25e622([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x376eb5()?(_0x4b9e04[_0x25e622([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25e622([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x10b282=_0x46cd0c(_0x25e622([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x395ee2()):_0x25e622([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x25e622([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x25e622([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x25e622([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x49d2fa(){const _0x5d0010=[_0x25e622([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x25e622([0x74,0x72,0x69,0x61,0x6c])][_0x25e622([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b9e04[_0x25e622([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f9067/0x3e8:0xe10*_0x3686a2;return _0x4b9e04[_0x25e622([0x65,0x78,0x70])]<_0x5d0010;}function _0x319f1f(){const _0x1598c6=_0x4b9e04[_0x25e622([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1598c6)return!0x1;if(_0x1598c6[_0x25e622([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25e622([0x2a])))return!0x0;if(_0x1598c6[_0x25e622([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25e622([0x54,0x43])))return!0x0;if(_0x1598c6[_0x25e622([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25e622([0x52,0x54,0x43]))){if(_0x1ab912())return!0x0;if(_0x4f397d()||_0x935746())return!0x0;}return!0x1;}function _0x376eb5(){const _0x1df2a2=_0x4b9e04[_0x25e622([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1df2a2||0x0==_0x1df2a2[_0x25e622([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d8afa}=new URL(window[_0x25e622([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1df2a2[_0x25e622([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d8afa))return!0x0;const _0x277972=_0x1d8afa[_0x25e622([0x73,0x70,0x6c,0x69,0x74])](_0x25e622([0x2e]));return _0x1df2a2[_0x25e622([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3eedca=>_0x3eedca[_0x25e622([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25e622([0x2a])))[_0x25e622([0x6d,0x61,0x70])](_0x41fde7=>_0x41fde7[_0x25e622([0x73,0x70,0x6c,0x69,0x74])](_0x25e622([0x2e])))[_0x25e622([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29ed13=>_0x29ed13[_0x25e622([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x277972[_0x25e622([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25e622([0x6d,0x61,0x70])](_0xd8f447=>Array(_0x277972[_0x25e622([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xd8f447[_0x25e622([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25e622([0x66,0x69,0x6c,0x6c])](_0xd8f447[0x0]===_0x25e622([0x2a])?_0x25e622([0x2a]):'')[_0x25e622([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xd8f447))[_0x25e622([0x73,0x6f,0x6d,0x65])](_0x1e9826=>_0x277972[_0x25e622([0x65,0x76,0x65,0x72,0x79])]((_0x47987f,_0x457be0)=>_0x1e9826[_0x457be0]===_0x47987f||_0x1e9826[_0x457be0]===_0x25e622([0x2a])));}function _0x395ee2(){return _0x10b282&&_0x1f1ccb?new window[(_0x25e622([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3cc70a,_0x16480a)=>{_0x10b282[_0x25e622([0x74,0x68,0x65,0x6e])](_0x3cc70a,_0x16480a),_0x1f1ccb[_0x25e622([0x74,0x68,0x65,0x6e])](_0x2af6cf=>{_0x2af6cf!=_0x25e622([0x56,0x61,0x6c,0x69,0x64])&&_0x3cc70a(_0x2af6cf);},_0x16480a);}):_0x10b282||_0x1f1ccb||_0x25e622([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ac242(_0xe1b422,_0x4eb6c7){return new window[(_0x25e622([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e07fe=>{if(_0x3327e6())return _0x4e07fe(_0x25e622([0x56,0x61,0x6c,0x69,0x64]));_0x16f338(),_0x5d6830[_0x25e622([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x25e622([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb5ba6d=!0x1;const _0x229d10=_0x52b521();function _0x26df76(_0x412566){return!!_0x412566&&(typeof _0x412566===_0x25e622([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x412566===_0x25e622([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x412566[_0x25e622([0x74,0x68,0x65,0x6e])]===_0x25e622([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x412566[_0x25e622([0x63,0x61,0x74,0x63,0x68])]===_0x25e622([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x23ddb2(_0x4bb2a3){_0x142b48(_0x4bb2a3)[_0x25e622([0x74,0x68,0x65,0x6e])](_0x2bfc68=>{if(!_0x2bfc68||_0x2bfc68[_0x25e622([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x25e622([0x6f,0x6b]))return _0x25e622([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2128a8(_0x513221(_0x229d10+_0x4eb6c7))!=_0x2bfc68[_0x25e622([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x25e622([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x25e622([0x56,0x61,0x6c,0x69,0x64]);})[_0x25e622([0x74,0x68,0x65,0x6e])](_0x2ea0bf=>(_0x2d4815(),_0x2ea0bf),()=>{const _0x1cab39=_0x47afcb();return null==_0x1cab39?(_0x2d4815(),_0x25e622([0x56,0x61,0x6c,0x69,0x64])):_0x25e622(_0x1f9067-_0x1cab39>(0x27d454df^_0x152964)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x25e622([0x74,0x68,0x65,0x6e])](_0x4e07fe)[_0x25e622([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e07fe(_0x25e622([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x53c4a7=0x3ee3e5f^_0x152964;function _0x2d4815(){const _0x2aac76=_0x25e622([0x6c,0x6c,0x63,0x74,0x2d])+_0x2128a8(_0x513221(_0xe1b422)),_0x41fa8d=_0x5bf500(_0x2128a8(window[_0x25e622([0x4d,0x61,0x74,0x68])][_0x25e622([0x63,0x65,0x69,0x6c])](_0x1f9067/_0x53c4a7)));window[_0x25e622([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25e622([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2aac76,_0x41fa8d);}function _0x47afcb(){const _0x3887ff=_0x25e622([0x6c,0x6c,0x63,0x74,0x2d])+_0x2128a8(_0x513221(_0xe1b422)),_0x35a322=window[_0x25e622([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25e622([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3887ff);return _0x35a322?window[_0x25e622([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bf500(_0x35a322),0x10)*_0x53c4a7:null;}function _0x142b48(_0xcfab49){return new window[(_0x25e622([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x411a53,_0x338a34)=>{_0xcfab49[_0x25e622([0x74,0x68,0x65,0x6e])](_0x411a53,_0x338a34),window[_0x25e622([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x338a34,0x3d9041f^_0x152964);});}}_0x5d6830[_0x25e622([0x6f,0x6e])](_0x25e622([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42f9c0,_0x3a204e)=>{if(_0x3a204e[0x0]!=_0xe1b422)return _0x4e07fe(_0x25e622([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3a204e[0x1]={..._0x3a204e[0x1],[_0x25e622([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x229d10};},{[_0x25e622([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25e622([0x68,0x69,0x67,0x68])}),_0x5d6830[_0x25e622([0x6f,0x6e])](_0x25e622([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x28976e=>{_0x26df76(_0x28976e[_0x25e622([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb5ba6d=!0x0,_0x23ddb2(_0x28976e[_0x25e622([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x25e622([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25e622([0x6c,0x6f,0x77])}),_0x35c59a[_0x25e622([0x74,0x68,0x65,0x6e])](()=>{_0xb5ba6d||_0x4e07fe(_0x25e622([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3327e6(){return _0x5d6830[_0x25e622([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25e622([0x76,0x69,0x65,0x77])][_0x25e622([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x25e622([0x61,0x75,0x74,0x6f]);}function _0x16f338(){_0x5d6830[_0x25e622([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25e622([0x76,0x69,0x65,0x77])][_0x25e622([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x25e622([0x61,0x75,0x74,0x6f]);}}function _0x46cd0c(_0x56f491){const _0x41dc5b=[new window[(_0x25e622([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d5e99=>setTimeout(_0x4d5e99,0x3d1ee13^_0x152964)),_0x35c59a[_0x25e622([0x74,0x68,0x65,0x6e])](()=>new window[(_0x25e622([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56483c=>{let _0x10d03a=0x0;_0x5d6830[_0x25e622([0x6d,0x6f,0x64,0x65,0x6c])][_0x25e622([0x6f,0x6e])](_0x25e622([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x453a73,_0x18c445)=>{_0x18c445[0x0][_0x25e622([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x10d03a++,_0x10d03a==(0x3d8d537^_0x152964)&&(_0x56483c(),_0x453a73[_0x25e622([0x6f,0x66,0x66])]());});}))];return window[_0x25e622([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x25e622([0x72,0x61,0x63,0x65])](_0x41dc5b)[_0x25e622([0x74,0x68,0x65,0x6e])](()=>_0x56f491);}async function _0x1dcb80(){await _0x35c59a,_0x5d6830[_0x25e622([0x6d,0x6f,0x64,0x65,0x6c])][_0x25e622([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38b1ba,_0x5d6830[_0x25e622([0x6d,0x6f,0x64,0x65,0x6c])][_0x25e622([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38b1ba,_0x5d6830[_0x25e622([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x25e622([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1ab912(){return _0x2a5e44(_0x25e622([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x41d346(_0x25e622([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x25e622([0x73,0x74,0x61,0x74,0x65])]==_0x25e622([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4f397d(){return _0x2a5e44(_0x25e622([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 _0x935746(){return _0x2a5e44(_0x25e622([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x14757e(_0x3f5117){const _0x2420dd=_0x10a961();_0x5d6830[_0x2420dd]=_0x25e622([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f5117,_0x3f5117!=_0x25e622([0x56,0x61,0x6c,0x69,0x64])&&_0x1dcb80();}function _0x10a961(){const _0x33c3c0=window[_0x25e622([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x25e622([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x25e622([0x6e,0x6f,0x77])]())[_0x25e622([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x25e622([0x2e]),'');let _0x5e9575=_0x25e622([0x52]);for(let _0x56c74b=0x0;_0x56c74b<_0x33c3c0[_0x25e622([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56c74b+=0x2){let _0x2ae9da=window[_0x25e622([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33c3c0[_0x25e622([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56c74b,_0x56c74b+0x2));_0x2ae9da>=_0x50bb31[_0x25e622([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ae9da-=_0x50bb31[_0x25e622([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5e9575+=_0x50bb31[_0x2ae9da];}return _0x5e9575;}function _0x54588b(){const _0x260a3d=_0x57bd38[_0x25e622([0x73,0x70,0x6c,0x69,0x74])](_0x25e622([0x2e]));if(0x3!=_0x260a3d[_0x25e622([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x506859(_0x260a3d[0x1]);function _0x506859(_0x28108a){const _0x344d4b=_0xbf3eb5(_0x28108a);return _0x344d4b&&_0x2c56ea()?_0x344d4b:null;function _0x2c56ea(){const _0x32ad9c=_0x344d4b[_0x25e622([0x6a,0x74,0x69])],_0x3a436d=window[_0x25e622([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32ad9c[_0x25e622([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32ad9c[_0x25e622([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7b7410={..._0x344d4b,[_0x25e622([0x6a,0x74,0x69])]:_0x32ad9c[_0x25e622([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x32ad9c[_0x25e622([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7b7410[_0x25e622([0x76,0x63])],_0x513221(_0x7b7410)==_0x3a436d;}}}async function _0x47f0cc(){let _0x16c7d6=!0x0;try{const _0x58a781=_0x57bd38[_0x25e622([0x73,0x70,0x6c,0x69,0x74])](_0x25e622([0x2e])),[_0x56d25e,_0xbc1aa8,_0x471800]=_0x58a781;return _0x77f6d(_0x56d25e),await _0x269f55(_0x56d25e,_0xbc1aa8,_0x471800),_0x16c7d6;}catch{return!0x1;}function _0x77f6d(_0x206b7c){const _0x530a9f=_0xbf3eb5(_0x206b7c);_0x530a9f&&_0x530a9f[_0x25e622([0x61,0x6c,0x67])]==_0x25e622([0x45,0x53,0x32,0x35,0x36])||(_0x16c7d6=!0x1);}async function _0x269f55(_0x3adb68,_0x40792b,_0x199264){const _0x23e318=window[_0x25e622([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x25e622([0x66,0x72,0x6f,0x6d])](_0x18365a(_0x199264),_0x36c6fc=>_0x36c6fc[_0x25e622([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x715b03=new window[(_0x25e622([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x25e622([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3adb68+_0x25e622([0x2e])+_0x40792b),_0x189ddb=window[_0x25e622([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x25e622([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x189ddb)return;const _0x1903a7=await _0x189ddb[_0x25e622([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x25e622([0x6a,0x77,0x6b]),_0x1d084c,{[_0x25e622([0x6e,0x61,0x6d,0x65])]:_0x25e622([0x45,0x43,0x44,0x53,0x41]),[_0x25e622([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x25e622([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x25e622([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x189ddb[_0x25e622([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x25e622([0x6e,0x61,0x6d,0x65])]:_0x25e622([0x45,0x43,0x44,0x53,0x41]),[_0x25e622([0x68,0x61,0x73,0x68])]:{[_0x25e622([0x6e,0x61,0x6d,0x65])]:_0x25e622([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1903a7,_0x23e318,_0x715b03)||(_0x16c7d6=!0x1);}}function _0xbf3eb5(_0x3c36fb){return _0x3c36fb[_0x25e622([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x25e622([0x65,0x79]))?JSON[_0x25e622([0x70,0x61,0x72,0x73,0x65])](_0x18365a(_0x3c36fb)):null;}function _0x18365a(_0x46486b){return window[_0x25e622([0x61,0x74,0x6f,0x62])](_0x46486b[_0x25e622([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x25e622([0x2b]))[_0x25e622([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x25e622([0x2f])));}function _0x513221(_0x538d95){let _0x5615d3=0x1505;function _0x11756d(_0x26f8ee){for(let _0xdc7d4e=0x0;_0xdc7d4e<_0x26f8ee[_0x25e622([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdc7d4e++){const _0x442af2=_0x26f8ee[_0x25e622([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xdc7d4e);_0x5615d3=(_0x5615d3<<0x5)+_0x5615d3+_0x442af2,_0x5615d3&=_0x5615d3;}}function _0x1a05e7(_0x9bfcc2){Array[_0x25e622([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9bfcc2)?_0x9bfcc2[_0x25e622([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a05e7):_0x9bfcc2&&typeof _0x9bfcc2==_0x25e622([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x25e622([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9bfcc2)[_0x25e622([0x73,0x6f,0x72,0x74])]()[_0x25e622([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1018b6,_0x542038])=>{_0x11756d(_0x1018b6),_0x1a05e7(_0x542038);}):_0x11756d(window[_0x25e622([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9bfcc2));}return _0x1a05e7(_0x538d95),_0x5615d3>>>0x0;}function _0x2128a8(_0x905115){return _0x905115[_0x25e622([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x25e622([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x25e622([0x30]));}function _0x5bf500(_0x154780){return _0x154780[_0x25e622([0x73,0x70,0x6c,0x69,0x74])]('')[_0x25e622([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x25e622([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a5e44(_0x2194a0){return _0x5d6830[_0x25e622([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x25e622([0x68,0x61,0x73])](_0x2194a0);}function _0x41d346(_0xf7adb4){return _0x5d6830[_0x25e622([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x25e622([0x67,0x65,0x74])](_0xf7adb4);}function _0x38b1ba(){}function _0x25e622(_0x29724a){return _0x29724a['map'](_0x3bfe56=>String['fromCharCode'](_0x3bfe56))['join']('');}_0x14757e(await _0x369311());}(this);}set['adapter'](_0x5be92e){if(this['_adapter'])throw new _0x2c3652('track-changes-adapter-already-set',this);this['_adapter']=_0x5be92e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2152bd=!0x1,toJSON:_0x2d1717=!0x1}={}){const _0x2c0fb6=[];for(const _0x43ea05 of this['_suggestions']['values']())_0x2152bd&&!_0x43ea05['isInContent']||_0x2c0fb6['push'](_0x43ea05);return _0x2d1717?_0x2c0fb6['map'](_0x155fa6=>_0x155fa6['toJSON']()):_0x2c0fb6;}['getSuggestion'](_0x25b74c){const _0x44e33d=this['_suggestions']['get'](_0x25b74c);if(!_0x44e33d)throw new _0x2c3652('track-changes-suggestion-not-found',this);return _0x44e33d;}['hasSuggestion'](_0x1f32fb){return this['_suggestions']['has'](_0x1f32fb);}['addSuggestionData'](_0x5d7ced){const {authorId:_0x456b80,id:_0x206295,originalSuggestionId:_0x3c2ee9,attributes:_0x22a505}=_0x5d7ced,[_0x47a593,_0x113230]=_0x5d7ced['type']['split'](':'),_0x174562=this['_suggestions']['get'](_0x206295)||this['_createSuggestion'](_0x47a593,_0x113230,_0x206295,_0x456b80,_0x22a505,_0x3c2ee9);if(this['_addThreadToSuggestion'](_0x174562),this['_checkSuggestionCorrectness'](_0x174562,_0x47a593,_0x113230||null,_0x456b80),_0x174562['createdAt']=_0x5d7ced['createdAt'],_0x174562['_isDataLoaded']=!0x0,_0x22a505&&_0x22a505['@external']){const _0x3d9928=_0x22a505['@external'],_0x1bd24e=this['_getExternalAuthor'](_0x3d9928['authorName']);_0x174562['authoredAt']=_0x3d9928['createdAt'],_0x174562['author']=_0x1bd24e,_0x174562['isExternal']=!0x0;}else _0x174562['authoredAt']=_0x5d7ced['createdAt'];switch(_0x5d7ced['data']&&(_0x174562['data']=_0x5d7ced['data']),_0x5d7ced['attributes']&&(_0x174562['attributes']=_0x5d7ced['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x174562['_saved']=!0x0),this['_suggestionState']['get'](_0x174562)){case'notReady':this['_suggestionState']['set'](_0x174562,'dataReady');break;case'markerReady':_0x174562['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x174562])),this['_refreshSuggestionsChain'](new Set([_0x174562])),this['_suggestionState']['set'](_0x174562,'ready'),this['fire']('suggestionLoaded',_0x174562)):this['_suggestionState']['set'](_0x174562,'removed');}return _0x174562;}['acceptSuggestion'](_0x37a22f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1dd3d9 of _0x37a22f['getAllAdjacentSuggestions']())_0x1dd3d9['accept']();});});}['discardSuggestion'](_0x1ac992){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x103c3f of _0x1ac992['getAllAdjacentSuggestions']())_0x103c3f['discard']();});});}['enableCommand'](_0x562c4b,_0x49b1b2){const _0x5cd0bc=this['editor']['commands']['get'](_0x562c4b);if(!_0x5cd0bc)throw new _0x2c3652('track-changes-command-not-found',this,{'commandName':_0x562c4b});if(this['_enabledCommands']['has'](_0x5cd0bc))throw new _0x2c3652('track-changes-enable-command-twice',this,{'commandName':_0x562c4b});this['_enabledCommands']['add'](_0x5cd0bc),_0x49b1b2&&_0x5cd0bc['on']('execute',(_0x4266ce,_0x17106b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x17106b['length']>0x0&&_0x17106b[_0x17106b['length']-0x1]&&_0x17106b[_0x17106b['length']-0x1]['forceDefaultExecution']?_0x17106b['pop']():(_0x4266ce['return']=_0x49b1b2((..._0x26796f)=>_0x5cd0bc['execute'](..._0x26796f,{'forceDefaultExecution':!0x0}),..._0x17106b),_0x4266ce['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5af835){let _0x2afcdf,_0x4354c2;const _0x4ff872=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2afcdf=_0x5af835();}catch(_0x566f9c){_0x4354c2=_0x566f9c;}return _0x4ff872||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4354c2&&_0x2c3652['rethrowUnexpectedError'](_0x4354c2,this),_0x2afcdf;}['markInsertion'](_0x5aebcf,_0x111565=null,_0x3b99a9={}){if(_0x5aebcf['isCollapsed'])return null;const _0x1e230d=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3b99a9['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x91cb35,meta:_0x404edd}of this['_findSuggestions'](_0x5aebcf,'insertion'))if(_0x404edd['isOwn']){if(!_0x404edd['isNextTo']){if(_0x404edd['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x91cb35,_0x3b99a9))continue;return _0x91cb35;}if(sn(_0x91cb35,_0x3b99a9))return _0x91cb35;this['_breakSuggestionMarker'](_0x91cb35,_0x5aebcf['start'],_0x5aebcf['end']);break;}if(_0x111565==_0x91cb35['subType']&&sn(_0x91cb35,_0x3b99a9)){const _0x211da6=_0x91cb35['getFirstRange']();return _0x211da6['start']['isEqual'](_0x5aebcf['end'])?this['_setSuggestionRange'](_0x91cb35,this['_model']['createRange'](_0x5aebcf['start'],_0x211da6['end'])):this['_setSuggestionRange'](_0x91cb35,this['_model']['createRange'](_0x211da6['start'],_0x5aebcf['end'])),_0x91cb35;}}const _0x3046fe=_0x52b521(),_0x171d2d=_0x1e230d['id'],_0x2541c2=_0x111565?'insertion:'+_0x111565:'insertion',_0x87fecb=this['_setSuggestionData']({'id':_0x3046fe,'type':_0x2541c2,'createdAt':new Date(),'authorId':_0x171d2d,'attributes':_0x3b99a9});return this['_addSuggestionMarker'](_0x2541c2,_0x3046fe,_0x171d2d,_0x5aebcf),_0x87fecb;}['markMultiRangeInsertion'](_0x2df938,_0x3558e0='multi',_0x5a9591={}){const _0xdcd151=this['editor']['plugins']['get']('Users')['me'],_0x3bc5df=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3558e0,'join');this['_trackingSessionId']&&(_0x5a9591['trackingSessionId']=this['_trackingSessionId']);for(const _0xc79de1 of this['getSuggestions']())if(_0xc79de1['author']['id']==_0xdcd151['id']&&'insertion'==_0xc79de1['type']&&_0xc79de1['subType']==_0x3558e0&&sn(_0xc79de1,_0x5a9591)&&(_0x3bc5df(_0xc79de1['getRanges'](),_0x2df938)||_0x3bc5df(_0x2df938,_0xc79de1['getRanges']()))){for(const _0x221781 of _0x2df938)_0xc79de1['addRange'](_0x221781);return _0xc79de1;}for(const {suggestion:_0x54e22b,meta:_0x408b26}of this['_findSuggestions'](_0x2df938,'insertion')){if(!_0x408b26['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x408b26['containsRangeInObject'])continue;if(!sn(_0x54e22b,_0x5a9591))continue;let _0x486652=!0x0;for(const _0x3f8a84 of _0x54e22b['getRanges']())for(const _0x3ac234 of _0x2df938)if(!_0x3f8a84['containsRange'](_0x3ac234)){_0x486652=!0x1;break;}if(_0x486652)return _0x54e22b;}const _0x459bc=_0x52b521(),_0x2c22b2=_0xdcd151['id'],_0x1739e7='insertion:'+_0x3558e0,_0x33285a=this['_setSuggestionData']({'id':_0x459bc,'type':_0x1739e7,'createdAt':new Date(),'authorId':_0x2c22b2,'attributes':_0x5a9591});for(const _0x56cac2 of _0x2df938)this['_addSuggestionMarker'](_0x1739e7,_0x459bc,_0x2c22b2,_0x56cac2,x['getMultiRangeId']());return _0x33285a;}['markInlineFormat'](_0x177f85,_0x1d0a22,_0x12b80f=null,_0x42c79c={}){if(_0x12b80f=_0x12b80f||Ht(_0x1d0a22),_0x177f85['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x42c79c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1569fb=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x12b80f,'accept');return this['forceDefaultExecution'](()=>_0x1569fb([_0x177f85],_0x1d0a22,_0x42c79c)),null;}const _0x263324=this['editor']['plugins']['get']('Users')['me'],_0x4ba467=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x7acad,meta:_0x59dfe0}of this['_findSuggestions'](_0x177f85,'insertion'))_0x59dfe0['isOwn']&&!_0x59dfe0['isInsideObject']&&_0x4ba467['push'](..._0x7acad['getRanges']());}const _0x5c759e=function(_0x5a2b86,_0x1b3433){const _0x10d85c=[];for(const _0xc62567 of _0x1b3433){const _0x4ab426=_0x5a2b86['getIntersection'](_0xc62567);_0x4ab426&&_0x10d85c['push'](_0x4ab426);}return _0x10d85c;}(_0x177f85,_0x4ba467),_0x3d3dea=function(_0x1842cd,_0x42fd43){const _0x56f6e3=[_0x1842cd];for(const _0x207779 of _0x42fd43){let _0x7cf95a=0x0;for(;_0x7cf95a<_0x56f6e3['length'];){const _0x104004=_0x56f6e3[_0x7cf95a]['getDifference'](_0x207779);_0x56f6e3['splice'](_0x7cf95a,0x1,..._0x104004),_0x7cf95a+=_0x104004['length'];}}return _0x56f6e3;}(_0x177f85,_0x4ba467);_0x5c759e['length']&&this['_model']['change'](()=>{for(const _0x447eac of _0x5c759e){const _0x3dc34b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x12b80f,'accept');this['forceDefaultExecution'](()=>_0x3dc34b([_0x447eac],_0x1d0a22,_0x42c79c));}});for(const _0x483d61 of _0x3d3dea){let _0x44a61b=null,_0x13d4ec=_0x483d61['start'],_0x5c04e1=_0x483d61['end'];for(const {suggestion:_0x3f1001,meta:_0x54bf2f}of this['_findSuggestions'](_0x483d61,'formatInline')){if(!_0x54bf2f['isOwn'])continue;if(_0x3f1001['subType']!=_0x12b80f)continue;if(!sn(_0x3f1001,_0x42c79c))continue;const _0x32ecc8=_0x3f1001['getFirstRange']();if(_0x32ecc8['containsRange'](_0x483d61,!0x0))return null;_0x13d4ec=_0x13d4ec['isBefore'](_0x32ecc8['start'])?_0x13d4ec:_0x32ecc8['start'],_0x5c04e1=_0x5c04e1['isAfter'](_0x32ecc8['end'])?_0x5c04e1:_0x32ecc8['end'],_0x44a61b?_0x32ecc8['start']['isBefore'](_0x44a61b['getFirstRange']()['start'])?(_0x44a61b['removeMarkers'](),_0x44a61b=_0x3f1001):_0x3f1001['removeMarkers']():_0x44a61b=_0x3f1001;}const _0x623bd5=this['_model']['createRange'](_0x13d4ec,_0x5c04e1);if(_0x44a61b)this['_setSuggestionRange'](_0x44a61b,_0x623bd5);else{const _0x571309=_0x52b521(),_0x1c65b9=_0x263324['id'];this['_setSuggestionData']({'id':_0x571309,'type':'formatInline:'+_0x12b80f,'data':_0x1d0a22,'createdAt':new Date(),'authorId':_0x1c65b9,'attributes':_0x42c79c}),this['_addSuggestionMarker']('formatInline:'+_0x12b80f,_0x571309,_0x1c65b9,_0x623bd5);}}return null;}['markBlockFormat'](_0x2a5823,_0x33129e,_0x17ad9b=[],_0x33b451=null,_0x1416f1={}){_0x33129e['formatGroupId']||(_0x33129e['formatGroupId']=_0x33129e['commandName']),_0x33129e['multipleBlocks']=_0x2a5823['is']('range'),_0x33b451=_0x33b451||Ht(_0x33129e);const _0x188b05=_0x17ad9b['map'](_0x1e3724=>tn(_0x1e3724,this['_model'])),_0x32d69e=_0x2a5823['is']('range')?_0x2a5823:tn(_0x2a5823,this['_model']);if(this['_trackingSessionId']&&(_0x1416f1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x45088c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33b451,'accept');return this['forceDefaultExecution'](()=>_0x45088c([_0x32d69e],_0x33129e,_0x1416f1)),null;}_0x188b05['push'](_0x32d69e);let _0x3c8faa=!0x0;for(const _0x4e7696 of _0x188b05)if(!this['_rangeIsInLocalUserInsertion'](_0x4e7696)){_0x3c8faa=!0x1;break;}if(_0x3c8faa&&'always'!==this['_trackFormatChanges']){const _0x9ade0c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33b451,'accept');return this['forceDefaultExecution'](()=>_0x9ade0c([_0x32d69e],_0x33129e,_0x1416f1)),null;}let _0x3459a2=null,_0x28e952=_0x32d69e['start'],_0x4518d4=_0x32d69e['end'];for(const {suggestion:_0x155bd1,meta:_0x24004b}of this['_findSuggestions'](_0x32d69e,'formatBlock')){if(!_0x24004b['isOwn'])continue;if(_0x24004b['isNextTo']||_0x24004b['containsRangeInObject']||_0x24004b['isInsideObject'])continue;if(_0x155bd1['data']['formatGroupId']!=_0x33129e['formatGroupId'])continue;if(!sn(_0x155bd1,_0x1416f1))continue;const _0x576ee9=_0x155bd1['getFirstRange']();if(_0x155bd1['subType']==_0x33b451){if(_0x576ee9['containsRange'](_0x32d69e,!0x0))return null;_0x28e952=_0x28e952['isBefore'](_0x576ee9['start'])?_0x28e952:_0x576ee9['start'],_0x4518d4=_0x4518d4['isAfter'](_0x576ee9['end'])?_0x4518d4:_0x576ee9['end'],_0x3459a2?_0x576ee9['start']['isBefore'](_0x3459a2['getFirstRange']()['start'])?(_0x3459a2['removeMarkers'](),_0x3459a2=_0x155bd1):_0x155bd1['removeMarkers']():_0x3459a2=_0x155bd1;}else{const _0x39e7c3=_0x32d69e['getIntersection'](_0x576ee9);this['_cutOutSuggestionMarker'](_0x155bd1,_0x39e7c3);}}const _0x1e2112=this['editor']['plugins']['get']('Users')['me'],_0x229344=_0x52b521(),_0x435e5c=_0x1e2112['id'];if(_0x3459a2)return this['_setSuggestionRange'](_0x3459a2,this['_model']['createRange'](_0x28e952,_0x4518d4)),_0x3459a2;{const _0x47999a=this['_setSuggestionData']({'id':_0x229344,'type':'formatBlock:'+_0x33b451,'data':_0x33129e,'createdAt':new Date(),'authorId':_0x435e5c,'attributes':_0x1416f1});return this['_addSuggestionMarker']('formatBlock:'+_0x33b451,_0x229344,_0x435e5c,this['_model']['createRange'](_0x28e952,_0x4518d4)),_0x47999a;}}['markMultiRangeBlockFormat'](_0xbad5e9,_0x320e5a,_0x3b7944=[],_0x2a8bf2=null,_0x171307={}){_0x320e5a['formatGroupId']||(_0x320e5a['formatGroupId']=_0x320e5a['commandName']);const _0x526772=_0xbad5e9[0x0];_0x320e5a['multipleBlocks']=_0x526772['is']('range'),_0x2a8bf2=_0x2a8bf2||Ht(_0x320e5a);const _0x26629f=_0x3b7944['map'](_0x5c8e16=>tn(_0x5c8e16,this['_model'])),_0xc88d05=_0x526772['is']('range')?_0xbad5e9:_0xbad5e9['map'](_0x2eeb86=>tn(_0x2eeb86,this['_model']));if(this['_trackingSessionId']&&(_0x171307['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4a65ed=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a8bf2,'accept');return this['forceDefaultExecution'](()=>_0x4a65ed(_0xc88d05,_0x320e5a,_0x171307)),null;}_0x26629f['push'](..._0xc88d05);let _0x3f363c=!0x0;for(const _0xd675f5 of _0x26629f)if(!this['_rangeIsInLocalUserInsertion'](_0xd675f5)){_0x3f363c=!0x1;break;}if(_0x3f363c&&'always'!==this['_trackFormatChanges']){const _0x128138=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a8bf2,'accept');return this['forceDefaultExecution'](()=>_0x128138(_0xc88d05,_0x320e5a,_0x171307)),null;}const _0x3bc551=this['editor']['plugins']['get']('Users')['me'];for(const _0x4a8e30 of this['getSuggestions']()){const _0x164167=_0x4a8e30['data'];if(_0x4a8e30['author']['id']!=_0x3bc551['id'])continue;if('formatBlock'!=_0x4a8e30['type']||_0x164167['formatGroupId']!=_0x320e5a['formatGroupId'])continue;if(!sn(_0x4a8e30,_0x171307))continue;const _0x10365f=_0x4a8e30['subType']==_0x2a8bf2;for(let _0x1f4947=0x0;_0x1f4947<_0xc88d05['length'];_0x1f4947++){const _0x4ca08f=_0xc88d05[_0x1f4947];for(const _0x2e93f1 of _0x4a8e30['getMarkers']()){const _0x3604b6=_0x2e93f1['getRange']();if(_0x4ca08f['isEqual'](_0x3604b6)){_0x10365f?(_0xc88d05['splice'](_0x1f4947,0x1),_0x1f4947--):_0x4a8e30['removeMarker'](_0x2e93f1['name']);break;}}}}if(0x0==_0xc88d05['length'])return null;const _0x29e8dd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a8bf2,'join');for(const _0x57d09d of this['getSuggestions']()){const _0x119bec=_0x57d09d['data'];if(_0x57d09d['author']['id']==_0x3bc551['id']&&('formatBlock'==_0x57d09d['type']&&_0x119bec['formatGroupId']==_0x320e5a['formatGroupId']&&_0x57d09d['subType']==_0x2a8bf2&&sn(_0x57d09d,_0x171307)&&(_0x29e8dd(_0x57d09d['getRanges'](),_0xc88d05)||_0x29e8dd(_0xc88d05,_0x57d09d['getRanges']())))){for(const _0x458d16 of _0xc88d05)_0x57d09d['addRange'](_0x458d16);return _0x57d09d;}}const _0xab7a8b=_0x52b521(),_0x2f5bd9=_0x3bc551['id'],_0x9ff860='formatBlock:'+_0x2a8bf2,_0x3d892f=this['_setSuggestionData']({'id':_0xab7a8b,'type':_0x9ff860,'data':_0x320e5a,'createdAt':new Date(),'authorId':_0x2f5bd9,'attributes':_0x171307});for(const _0x29852d of _0xc88d05)this['_addSuggestionMarker'](_0x9ff860,_0xab7a8b,_0x2f5bd9,_0x29852d,x['getMultiRangeId']());return _0x3d892f;}['markDeletion'](_0x4c9363,_0x2022a3=null,_0x4abb7d={}){if(_0x4c9363['isCollapsed'])return null;const _0x4ec63b=this['editor']['plugins']['get']('Users')['me'],_0x49f76d=new _0x4960c7(_0x4c9363['start'],_0x4c9363['end']);this['_trackingSessionId']&&(_0x4abb7d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5ee692,meta:_0x54a7a7}of this['_findSuggestions'](_0x49f76d,'insertion'))if(_0x54a7a7['isOwn']&&!_0x54a7a7['isNextTo']){if(_0x5ee692['isMultiRange']){const _0x462b85=_0x5ee692['getRanges']()['filter'](_0x5591ad=>'$graveyard'!=_0x5591ad['root']['rootName']);_0x462b85['every'](_0xc9eb8=>_0x49f76d['containsRange'](_0xc9eb8,!0x0))&&_0x5ee692['discard']();if(_0x462b85['some'](_0xf634f=>_0xf634f['containsRange'](_0x49f76d,!0x0))){const _0x55a73f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2022a3,'accept');return this['forceDefaultExecution'](()=>_0x55a73f([_0x49f76d],null,_0x4abb7d)),null;}}else{const _0x3c1062=_0x49f76d['getIntersection'](_0x5ee692['getFirstRange']());null!==_0x3c1062&&_0x5ee692['_onDiscard']([_0x3c1062],null,_0x4abb7d);}}if(_0x49f76d['detach'](),_0x49f76d['isCollapsed']||'$graveyard'==_0x49f76d['root']['rootName'])return null;let _0x478ff9=null,_0x70c10b=_0x49f76d['start'],_0x4ede87=_0x49f76d['end'];const _0x4ec81d=this['_findSuggestions'](_0x49f76d,'deletion');for(const {suggestion:_0x35a41b,meta:_0x5165ef}of _0x4ec81d){const _0x23569c=this['_model']['createRange'](_0x70c10b,_0x4ede87);if(_0x5165ef['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5165ef['containsRangeInObject']&&!_0x5165ef['isInsideObject'])){if(_0x35a41b['isMultiRange']){if(!sn(_0x35a41b,_0x4abb7d))continue;let _0x55181a=!0x0;for(const _0x57583a of _0x35a41b['getRanges']()){if(_0x57583a['containsRange'](_0x23569c,!0x0))return _0x35a41b;_0x23569c['containsRange'](_0x57583a)||(_0x55181a=!0x1);}_0x55181a&&_0x35a41b['discard']();}else{const _0x49c3b5=_0x35a41b['getFirstRange']();if(_0x49c3b5['containsRange'](_0x23569c,!0x0))return _0x35a41b;if(!sn(_0x35a41b,_0x4abb7d)){_0x23569c['containsRange'](_0x49c3b5)?_0x35a41b['removeMarkers']():_0x49c3b5['containsPosition'](_0x70c10b)?_0x70c10b=_0x49c3b5['end']:_0x49c3b5['containsPosition'](_0x4ede87)&&(_0x4ede87=_0x49c3b5['start']);continue;}_0x70c10b=_0x70c10b['isBefore'](_0x49c3b5['start'])?_0x70c10b:_0x49c3b5['start'],_0x4ede87=_0x4ede87['isAfter'](_0x49c3b5['end'])?_0x4ede87:_0x49c3b5['end'],_0x4abb7d=Object['assign']({},_0x35a41b['attributes']),_0x478ff9?_0x49c3b5['start']['isBefore'](_0x478ff9['getFirstRange']()['start'])?(_0x478ff9['removeMarkers'](),_0x478ff9=_0x35a41b):_0x35a41b['removeMarkers']():_0x478ff9=_0x35a41b;}}}if(_0x478ff9)return this['_setSuggestionRange'](_0x478ff9,this['_model']['createRange'](_0x70c10b,_0x4ede87)),_0x478ff9;{const _0x45696d=_0x52b521(),_0x34a1da=this['_model']['createRange'](_0x70c10b,_0x4ede87),_0x3bedd2=_0x4ec63b['id'],_0x10ed69=_0x2022a3?'deletion:'+_0x2022a3:'deletion',_0x3827f3=this['_setSuggestionData']({'id':_0x45696d,'type':_0x10ed69,'createdAt':new Date(),'authorId':_0x3bedd2,'attributes':_0x4abb7d});return this['_addSuggestionMarker'](_0x10ed69,_0x45696d,_0x3bedd2,_0x34a1da),_0x3827f3;}}['markMultiRangeDeletion'](_0x3c1db8,_0x23737b='multi',_0x42e682={}){const _0x214120=this['editor']['plugins']['get']('Users')['me'],_0x39628d=_0x3c1db8['map'](_0x12497d=>new _0x4960c7(_0x12497d['start'],_0x12497d['end'])),_0x3581d6=new Set();this['_trackingSessionId']&&(_0x42e682['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1c9fa3,meta:_0xd7ef50}of this['_findSuggestions'](_0x39628d,'insertion'))_0xd7ef50['isOwn']&&!_0xd7ef50['isNextTo']&&_0x3581d6['add'](_0x1c9fa3);for(const _0xab1c28 of _0x3581d6)if(_0xab1c28['isMultiRange']){const _0x41e12c=_0xab1c28['getRanges']();(!_0xab1c28['attributes']||!_0xab1c28['attributes']['skipNestingCheck'])&&(_0x41e12c['every'](_0x901c32=>_0x39628d['some'](_0x3ca0ee=>_0x3ca0ee['containsRange'](_0x901c32,!0x0)))&&_0xab1c28['discard']());if(_0x39628d['every'](_0x1029ae=>_0x41e12c['some'](_0x1ac504=>_0x1ac504['containsRange'](_0x1029ae,!0x0)))){const _0x179f47=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x23737b,'accept');return this['forceDefaultExecution'](()=>_0x179f47(_0x3c1db8,null,_0x42e682)),null;}}else{const _0x461aa3=_0xab1c28['getFirstRange']();_0x39628d['some'](_0x7730e5=>_0x7730e5['containsRange'](_0x461aa3,!0x0))&&_0xab1c28['discard']();if(_0x39628d['every'](_0x4e668b=>_0x461aa3['containsRange'](_0x4e668b,!0x0))){const _0x368460=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x23737b,'accept');return this['forceDefaultExecution'](()=>_0x368460(_0x39628d,null,_0x42e682)),null;}}const _0xd139ea=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x23737b,'join');let _0x1ff31b=null;for(const _0x43e2a1 of this['getSuggestions']())if(_0x43e2a1['author']['id']==_0x214120['id']&&_0x43e2a1['isInContent']&&'deletion'==_0x43e2a1['type']&&_0x43e2a1['subType']==_0x23737b&&sn(_0x43e2a1,_0x42e682)&&(_0xd139ea(_0x43e2a1['getRanges'](),_0x39628d)||_0xd139ea(_0x39628d,_0x43e2a1['getRanges']()))){if(_0x1ff31b){if(_0x43e2a1['commentThread']&&_0x43e2a1['commentThread']['length'])continue;for(const _0x53b161 of _0x43e2a1['getRanges']())_0x1ff31b['isIntersectingWithRange'](_0x53b161)||_0x1ff31b['addRange'](_0x53b161);_0x43e2a1['removeMarkers']();}else{_0x1ff31b=_0x43e2a1;for(const _0x4cbca6 of _0x39628d)_0x43e2a1['isIntersectingWithRange'](_0x4cbca6)||_0x43e2a1['addRange'](_0x4cbca6);}}if(_0x1ff31b)return _0x1ff31b;_0x3581d6['clear']();for(const {suggestion:_0x151ba8,meta:_0x4ad465}of this['_findSuggestions'](_0x39628d,'deletion'))_0x4ad465['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4ad465['containsRangeInObject']&&!_0x4ad465['isInsideObject'])&&sn(_0x151ba8,_0x42e682)&&_0x3581d6['add'](_0x151ba8);for(const _0x494e48 of _0x3581d6){const _0x340b8e=_0x494e48['getRanges']();if(!_0x42e682||!_0x42e682['skipNestingCheck']){if(_0x39628d['every'](_0x19f5c0=>_0x340b8e['some'](_0x5e7bd0=>_0x5e7bd0['containsRange'](_0x19f5c0,!0x0))))return _0x494e48;}(!_0x494e48['attributes']||!_0x494e48['attributes']['skipNestingCheck'])&&(_0x340b8e['every'](_0x3f993e=>_0x39628d['some'](_0x551b76=>_0x551b76['containsRange'](_0x3f993e,!0x0)))&&_0x494e48['discard']());}const _0x56cc2b=_0x52b521(),_0x518b36=_0x214120['id'],_0x1938f9='deletion:'+_0x23737b,_0x56be39=this['_setSuggestionData']({'id':_0x56cc2b,'type':_0x1938f9,'createdAt':new Date(),'authorId':_0x518b36,'attributes':_0x42e682});for(const _0x2c3100 of _0x39628d)_0x2c3100['detach'](),_0x2c3100['isCollapsed']||'$graveyard'==_0x2c3100['root']['rootName']||this['_addSuggestionMarker'](_0x1938f9,_0x56cc2b,_0x518b36,_0x2c3100,x['getMultiRangeId']());return _0x56be39;}['markAttributeChange'](_0x30c8d5,_0x3bb3e7,_0x26ca96,_0x433b92,_0x405b8c){if(_0x30c8d5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2eb81b=this['editor']['plugins']['get']('Users')['me']['id'],_0x284a69=Array['from'](this['_suggestions']['values']())['filter'](_0x395708=>'attribute'==_0x395708['type']&&_0x395708['data']['key']==_0x3bb3e7&&_0x395708['isIntersectingWithRange'](_0x30c8d5));if(this['_trackingSessionId']&&(_0x405b8c['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3d8890=this['_findSuggestions'](_0x30c8d5,'insertion')['filter'](({meta:_0x5db9c2})=>_0x5db9c2['isOwn']&&!_0x5db9c2['isInsideObject']&&!_0x5db9c2['isNextTo'])['map'](({suggestion:_0x113c94})=>_0x113c94);_0x284a69['unshift'](..._0x3d8890);}const _0x575d75=new Map([[_0x30c8d5,_0x26ca96]]);for(const _0x4f0979 of _0x284a69){const _0x5576c6='attribute'==_0x4f0979['type']?_0x4f0979['data']['oldValue']:void 0x0,_0x24f203=_0x4f0979['getFirstRange'](),_0x2b4e13=Array['from'](_0x575d75['keys']())['find'](_0x355357=>_0x355357['isIntersecting'](_0x24f203));if(!_0x2b4e13)continue;const _0x255b86=_0x2b4e13['getDifference'](_0x24f203);this['_isBlockAttribute'](_0x3bb3e7)&&'insertion'==_0x4f0979['type']&&0x0!=_0x255b86['length']||(_0x575d75['delete'](_0x2b4e13),_0x255b86['forEach'](_0x863c3=>{_0x575d75['set'](_0x863c3,_0x26ca96);}),'insertion'!=_0x4f0979['type']&&_0x5576c6!=_0x433b92&&_0x575d75['set'](_0x2b4e13['getIntersection'](_0x24f203),_0x5576c6));}const _0x5260e2=[];for(const [_0x110569,_0xa87114]of _0x575d75){const _0x4446ee=_0x52b521(),_0x3ae6de={'key':_0x3bb3e7,'oldValue':_0xa87114,'newValue':_0x433b92};_0x3bb3e7['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':_0x3bb3e7});const _0x14f246=('attribute:'+(_0x3bb3e7+'|'+Ht({'newValue':_0x433b92})))['substring'](0x0,0x3c),_0x2dcb12=this['_setSuggestionData']({'id':_0x4446ee,'type':_0x14f246,'data':_0x3ae6de,'createdAt':new Date(),'authorId':_0x2eb81b,'attributes':_0x405b8c});_0x5260e2['push'](_0x2dcb12),this['_addSuggestionMarker'](_0x14f246,_0x4446ee,_0x2eb81b,_0x110569);}return _0x5260e2;}['enableDefaultAttributesIntegration'](_0x316bb9){this['enableCommand'](_0x316bb9,(_0x583dde,..._0x27177b)=>{this['recordAttributeChanges'](()=>{_0x583dde(..._0x27177b);});});}['registerBlockAttribute'](_0x1afb9f){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x1afb9f);}['registerInlineAttribute'](_0x10fa38){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x10fa38);}['startTrackingSession'](_0x294c00){return this['_trackingSessionId']=void 0x0!==_0x294c00?_0x294c00:_0x52b521(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2849a4){return'attribute'==_0x2849a4['type']?_0x2849a4['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x13982d){if(0x0==_0x13982d['length'])return;const _0x4b3fa9=this['editor'],_0x2fff36=_0x4b3fa9['plugins']['get'](_0x3df37f),_0x15a9e8=[];_0x4b3fa9['model']['change'](_0x39f423=>{for(let _0x24454c=0x0;_0x24454c<_0x13982d['length'];_0x24454c++){const _0x12ae87=_0x13982d[_0x24454c];if(_0x12ae87['baseVersion']=_0x4b3fa9['model']['document']['version'],_0x12ae87['isDocumentOperation']=!0x0,_0x2fff36['isMarkedRemoveOperation'](_0x12ae87)){const _0x1057b1=Lt(_0x12ae87['newRange'],_0x4b3fa9['model']);_0x15a9e8['unshift'](_0x4960c7['fromRange'](_0x1057b1));}else switch(_0x12ae87['type']){case'rename':{const _0x4412bd=_0x12ae87['oldName'],_0x3d1f7b=_0x12ae87['newName'];if(_0x4412bd==_0x3d1f7b)break;_0x39f423['batch']['addOperation'](_0x12ae87),_0x4b3fa9['model']['applyOperation'](_0x12ae87);const _0xfd0e93='$elementName',_0x5b0207=_0x12ae87['position'],_0x237d4b=_0x4b3fa9['model']['createRange'](_0x5b0207,_0x4b3fa9['model']['createPositionAt'](_0x5b0207['nodeAfter'],'end'));this['markAttributeChange'](_0x237d4b,_0xfd0e93,_0x4412bd,_0x3d1f7b,{'groupId':_0x52b521()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x483d66=_0x12ae87['oldValue'],_0x4cda33=_0x12ae87['newValue'];if(_0x483d66==_0x4cda33)break;_0x39f423['batch']['addOperation'](_0x12ae87),_0x4b3fa9['model']['applyOperation'](_0x12ae87);const _0x45e225=_0x12ae87['key'];if(!this['_isRegisteredAttribute'](_0x45e225))break;const _0x15a4f1=Lt(_0x12ae87['range'],_0x4b3fa9['model']);this['markAttributeChange'](_0x15a4f1,_0x45e225,_0x483d66,_0x4cda33,{'groupId':_0x52b521()});break;}case'insert':{_0x39f423['batch']['addOperation'](_0x12ae87),_0x4b3fa9['model']['applyOperation'](_0x12ae87);if(_0x13982d[_0x24454c+0x1]&&'move'==_0x13982d[_0x24454c+0x1]['type'])break;const _0x4b953d=_0x12ae87['position'],_0x275b89=_0x12ae87['howMany'],_0x35c55d=Lt(_0x4b3fa9['model']['createRange'](_0x4b953d,_0x4b953d['getShiftedBy'](_0x275b89)),_0x4b3fa9['model']);this['markInsertion'](_0x35c55d);break;}case'split':{_0x39f423['batch']['addOperation'](_0x12ae87),_0x4b3fa9['model']['applyOperation'](_0x12ae87);const _0x45f23f=_0x12ae87['splitPosition'],_0x2c9c79=_0x12ae87['moveTargetPosition'];this['markInsertion'](_0x4b3fa9['model']['createRange'](_0x45f23f,_0x2c9c79));break;}case'move':case'remove':_0x39f423['batch']['addOperation'](_0x12ae87),_0x4b3fa9['model']['applyOperation'](_0x12ae87);}}for(const _0x44fb89 of _0x15a9e8)_0x44fb89['detach'](),this['markDeletion'](_0x44fb89);});}['_setSuggestionRange'](_0x32c9c3,_0x8a34f6){const _0x481f5=_0x32c9c3['getFirstMarker']();this['_model']['change'](_0x2f75de=>{_0x2f75de['updateMarker'](_0x481f5,{'range':_0x8a34f6});});}['_addThreadToSuggestion'](_0x49b64b){const _0x3cf6fa=_0x49b64b['id'],_0x4c17f5=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3cf6fa)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4c17f5,'threadId':_0x3cf6fa,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1f0423=this['_commentsRepository']['getCommentThread'](_0x3cf6fa);_0x1f0423['unbind']('isRemovable'),_0x1f0423['isRemovable']=!0x1,_0x49b64b['commentThread']=_0x1f0423;}['_checkSuggestionCorrectness'](_0x48b31e,_0x27aaa5,_0x1128ea,_0x56c474){if(_0x48b31e['type']!=_0x27aaa5||_0x48b31e['subType']!=_0x1128ea||_0x48b31e['creator']['id']!=_0x56c474)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2c3652('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1b5c20,_0x515b99){const _0x5aa275=_0x1b5c20['getFirstRange']();if(_0x515b99['isEqual'](_0x5aa275))_0x1b5c20['removeMarkers']();else{if(_0x5aa275['containsRange'](_0x515b99)){const _0x1ce6ef=this['_model']['createPositionAt'](_0x515b99['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1b5c20,this['_model']['createRange'](_0x5aa275['start'],_0x1ce6ef));const _0x44fac3=_0x52b521(),_0x4a7b93=_0x1b5c20['creator']['id'],_0x471163=_0x1b5c20['type']+':'+_0x1b5c20['subType'];this['_setSuggestionData']({'id':_0x44fac3,'type':_0x471163,'createdAt':new Date(),'authorId':_0x4a7b93,'data':_0x1b5c20['data'],'attributes':_0x1b5c20['attributes']});const _0x4a58a7=this['_model']['createPositionAt'](_0x515b99['end']['parent'],'after'),_0x245402=this['_model']['createRange'](_0x4a58a7,_0x5aa275['end']);this['_addSuggestionMarker'](_0x471163,_0x44fac3,_0x4a7b93,_0x245402);}else{if(_0x5aa275['containsPosition'](_0x515b99['start'])){const _0x59da58=this['_model']['createPositionAt'](_0x515b99['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1b5c20,this['_model']['createRange'](_0x5aa275['start'],_0x59da58));}else{const _0x14c098=this['_model']['createPositionAt'](_0x515b99['end']['parent'],'after');this['_setSuggestionRange'](_0x1b5c20,this['_model']['createRange'](_0x14c098,_0x5aa275['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1484f3){for(const {suggestion:_0x1e4934,meta:_0x3539fb}of this['_findSuggestions'](_0x1484f3,'insertion')){if(!_0x3539fb['isOwn'])continue;const _0xa36055=_0x1e4934['getRanges']();for(const _0xb36639 of _0xa36055)if(!_0x1484f3['getDifference'](_0xb36639)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x45cf48){return this['editor']['plugins']['get']('Users')['getUser'](_0x45cf48);}['_getExternalAuthor'](_0x332919){const _0x40ffab=this['editor']['plugins']['get']('Users'),_0xc28f27=_0x5cd747('external:'+_0x332919),_0x4a7e6a=_0x40ffab['getUser'](_0xc28f27);return _0x4a7e6a||_0x40ffab['addUser']({'id':_0xc28f27,'name':_0x332919});}['_createSuggestion'](_0x17847e,_0x3a935a,_0x4bf1bc,_0x3026d3,_0x3bc0e0,_0x570bc9){const _0x25cc07=this['_getAuthorFromId'](_0x3026d3);if(!_0x25cc07)throw new _0x2c3652('track-changes-user-not-found',this,{'authorId':_0x3026d3,'suggestionId':_0x4bf1bc});const _0x2a8476=this['_suggestionFactory']['buildSuggestion'](_0x17847e,_0x3a935a,_0x4bf1bc,_0x25cc07,_0x3bc0e0,_0x68365a=>{this['_updateSuggestionData'](_0x4bf1bc,{'attributes':_0x68365a});const _0x4e0dae=this['getSuggestion'](_0x4bf1bc);this['_joinWithAdjacentSuggestions'](new Set([_0x4e0dae])),this['_refreshSuggestionsChain'](new Set([_0x4e0dae]));},_0x570bc9);return this['listenTo'](_0x2a8476,'accept',()=>{this['_updateSuggestionData'](_0x4bf1bc,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2a8476,'discard',()=>{this['_updateSuggestionData'](_0x4bf1bc,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4bf1bc,_0x2a8476),this['_suggestionState']['set'](_0x2a8476,'notReady'),_0x2a8476;}['_splitMarkerName'](_0x3d8750){return Gt(_0x3d8750);}['_breakSuggestionMarker'](_0x5aeca8,_0x199115,_0x2ccc2f){const _0x2d4d7c=_0x5aeca8['getFirstRange'](),_0x377b22=_0x2d4d7c['start'],_0x40fd66=_0x2d4d7c['end'];this['_setSuggestionRange'](_0x5aeca8,this['_model']['createRange'](_0x377b22,_0x199115));const _0x2d8f72=_0x52b521(),_0xb49712=_0x5aeca8['creator']['id'],_0x424de5=_0x5aeca8['type']+(_0x5aeca8['subType']?':'+_0x5aeca8['subType']:'');this['_setSuggestionData']({'id':_0x2d8f72,'type':_0x424de5,'createdAt':new Date(),'authorId':_0xb49712,'originalSuggestionId':_0x5aeca8['_originalSuggestionId']||_0x5aeca8['id'],'attributes':_0x5aeca8['attributes'],'data':_0x5aeca8['data']});const _0x16cf08=this['_getAttributeKey'](_0x5aeca8);('formatBlock'==_0x5aeca8['type']||_0x16cf08&&this['_isBlockAttribute'](_0x16cf08))&&(_0x2ccc2f=this['_model']['createPositionBefore'](_0x2ccc2f['parent'])),this['_addSuggestionMarker'](_0x424de5,_0x2d8f72,_0xb49712,this['_model']['createRange'](_0x2ccc2f,_0x40fd66));}['_findSuggestions'](_0x6d2ae9,_0x21a042=null){const _0x419d65=[],_0x4e94ef=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x6d2ae9)||(_0x6d2ae9=[_0x6d2ae9]);for(const _0x1bc6d4 of this['getSuggestions']()){if(!_0x1bc6d4['isInContent'])continue;if(_0x21a042&&_0x1bc6d4['type']!=_0x21a042)continue;let _0x3cfa94=!0x1;for(const _0x11508c of _0x1bc6d4['getRanges']()){for(const _0x182ad2 of _0x6d2ae9){const _0xf026a8=_0x182ad2['start']['isEqual'](_0x11508c['end'])||_0x182ad2['end']['isEqual'](_0x11508c['start']);if(_0xf026a8||_0x182ad2['getIntersection'](_0x11508c)){const _0x2bcb92=_0x182ad2['containsRange'](_0x11508c)&&zt(this['_model']['schema'],_0x11508c['start'],_0x182ad2),_0x51fe20=_0x11508c['containsRange'](_0x182ad2)&&zt(this['_model']['schema'],_0x182ad2['start'],_0x11508c);_0x419d65['push']({'suggestion':_0x1bc6d4,'meta':{'isOwn':_0x4e94ef==_0x1bc6d4['author'],'isNextTo':_0xf026a8,'isInsideObject':_0x2bcb92,'containsRangeInObject':_0x51fe20}}),_0x3cfa94=!0x0;break;}}if(_0x3cfa94)break;}}return _0x419d65;}['_addSuggestionMarker'](_0x1c240f,_0x235d10,_0xde0ac6,_0x1f2046,_0x55012a){this['_model']['change'](_0x3208f9=>{let _0x4693d7='suggestion:'+_0x1c240f+':'+_0x235d10+':'+_0xde0ac6;_0x55012a&&(_0x4693d7=_0x4693d7+':'+_0x55012a),_0x3208f9['addMarker'](_0x4693d7,{'range':_0x1f2046,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2f9c96){const _0xb5ede9=_0x2f9c96['previous'],_0x378ea8=_0x2f9c96['next'];_0x2f9c96['previous']=null,_0x2f9c96['next']=null,null!=_0xb5ede9&&_0xb5ede9['next']==_0x2f9c96&&(_0xb5ede9['next']=_0x378ea8),null!=_0x378ea8&&_0x378ea8['previous']==_0x2f9c96&&(_0x378ea8['previous']=_0xb5ede9),'ready'==this['_suggestionState']['get'](_0x2f9c96)&&(this['_suggestionState']['set'](_0x2f9c96,'removed'),this['fire']('suggestionUnloaded',_0x2f9c96,_0xb5ede9,_0x378ea8));}['_setSuggestionData'](_0x2f32df){const _0x586156=_0x2f32df['id'],_0xf7913c=this['addSuggestionData'](_0x2f32df);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2a260c=this['editor']['plugins']['get']('PendingActions'),_0x44afd6=_0xf7913c['hasComments'],_0x1d9f6f=_0xf7913c['subType']?_0xf7913c['type']+':'+_0xf7913c['subType']:_0xf7913c['type'],_0x5278fa=this['editor']['locale'],_0x587e00=_0x2a260c['add'](o(_0x5278fa,'PENDING_ACTION_SUGGESTION')),_0x1450f0={'id':_0x586156,'type':_0x1d9f6f,'hasComments':_0x44afd6,'data':_0x2f32df['data']||null,'originalSuggestionId':_0x2f32df['originalSuggestionId']||null,'attributes':_0xf7913c['attributes']};this['_adapter']['addSuggestion'](_0x1450f0)['then'](_0x19e7f1=>{_0xf7913c['_saved']=!0x0,_0x2a260c['remove'](_0x587e00),_0x19e7f1&&_0x19e7f1['createdAt']&&(this['_suggestions']['get'](_0x586156)['createdAt']=_0x19e7f1['createdAt']);})['catch'](_0x4b88b9=>{throw _0x43e527('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xf7913c['discard']();}),_0xf7913c['stopListening'](),this['_suggestions']['delete'](_0xf7913c['id']),this['_suggestionState']['delete'](_0xf7913c),_0x4b88b9;});}return _0xf7913c;}['_isBlockAttribute'](_0xa25e46){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0xa25e46);}['_isInlineAttribute'](_0x33ca85){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x33ca85);}['_updateSuggestionData'](_0x33e219,_0x294458){const _0x1da85a=this['editor']['plugins']['get']('PendingActions'),_0x518d93=this['getSuggestion'](_0x33e219);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x518d93['_saved']){const _0xe79364=_0x1da85a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x33e219,_0x294458)['then'](()=>{_0x1da85a['remove'](_0xe79364);});}else _0x518d93['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x33e219,_0x294458);});}}['_getSuggestionData'](_0x59b7ac){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2c3652('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x59b7ac);}['_handleNewSuggestionMarker'](_0x5c4014){const {id:_0x1b13f0,type:_0x3f2150,subType:_0x19cb1e,authorId:_0x559e9d}=this['_splitMarkerName'](_0x5c4014),_0x2b1f14=this['_suggestions']['get'](_0x1b13f0)||this['_createSuggestion'](_0x3f2150,_0x19cb1e,_0x1b13f0,_0x559e9d,{});switch(this['_checkSuggestionCorrectness'](_0x2b1f14,_0x3f2150,_0x19cb1e,_0x559e9d),this['_suggestionState']['get'](_0x2b1f14)){case'notReady':this['_getSuggestionData'](_0x1b13f0)['then'](_0x59801c=>{let _0x3b3e3d=Promise['resolve']();_0x59801c['hasComments']&&(_0x3b3e3d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1b13f0})),_0x3b3e3d['then'](()=>{this['addSuggestionData'](_0x59801c)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2b1f14,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1b13f0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2b1f14,'ready'),this['fire']('suggestionLoaded',_0x2b1f14);break;case'ready':this['fire']('suggestionChanged',_0x2b1f14);}return _0x2b1f14['addMarkerName'](_0x5c4014),_0x2b1f14;}['_refreshSuggestionsChain'](_0x287997){const _0x11b2f6=Array['from'](_0x287997),_0x3dd23f=_0x11b2f6['filter'](_0x522dc8=>'attribute'==_0x522dc8['type']);this['_refreshAttributeSuggestionsChain'](_0x3dd23f);const _0x5d009c=_0x11b2f6['filter'](_0x194b1f=>!_0x194b1f['isMultiRange']&&'attribute'!=_0x194b1f['type']),_0x1d2f4e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57d083=>!_0x57d083['isMultiRange']&&'attribute'!=_0x57d083['type']),_0x99193a=_0x1d2f4e['filter'](_0x50d40a=>!_0x287997['has'](_0x50d40a)),_0x1cdbbc=new Map(_0x1d2f4e['map'](_0x44d8da=>[_0x44d8da,this['_suggestionFactory']['getSuggestionCallback'](_0x44d8da['type'],_0x44d8da['subType'],'chain')])),_0x3477e3=new Map(_0x1d2f4e['map'](_0x3f4fac=>[_0x3f4fac,_0x3f4fac['getFirstRange']()])),_0x55efeb=new Set(),_0x1617a9=new Set();for(let _0x390b20=0x0;_0x390b20<_0x5d009c['length'];_0x390b20++)_0x34a5e0(_0x5d009c[_0x390b20],_0x5d009c,_0x390b20+0x1);for(let _0x529eee=0x0;_0x529eee<_0x5d009c['length'];_0x529eee++)_0x34a5e0(_0x5d009c[_0x529eee],_0x99193a,0x0);const _0x22372e=new Set();for(let _0x4fe281=0x0;_0x4fe281<_0x5d009c['length'];_0x4fe281++){const _0x7b028=_0x5d009c[_0x4fe281];!_0x1617a9['has'](_0x7b028)&&_0x7b028['previous']&&(_0x22372e['add'](_0x7b028['previous']),_0x7b028['previous']['next']===_0x7b028&&(_0x7b028['previous']['next']=null),_0x7b028['previous']=null),!_0x55efeb['has'](_0x7b028)&&_0x7b028['next']&&(_0x22372e['add'](_0x7b028['next']),_0x7b028['next']['previous']===_0x7b028&&(_0x7b028['next']['previous']=null),_0x7b028['next']=null);}function _0x34a5e0(_0x17babf,_0x4359f8,_0x2b7b33){for(let _0x1dae8e=_0x2b7b33;_0x1dae8e<_0x4359f8['length'];_0x1dae8e++){const _0x4d194b=_0x20f728(_0x17babf,_0x4359f8[_0x1dae8e]);_0x4d194b&&(_0x4d194b[0x0]['next']=_0x4d194b[0x1],_0x4d194b[0x1]['previous']=_0x4d194b[0x0],_0x55efeb['add'](_0x4d194b[0x0]),_0x1617a9['add'](_0x4d194b[0x1]));}}function _0x20f728(_0x46ded0,_0x1213e4){if(_0x46ded0['author']['id']!==_0x1213e4['author']['id'])return null;const _0x1e36be=_0x1cdbbc['get'](_0x46ded0)(_0x46ded0,_0x1213e4,_0x3477e3['get'](_0x46ded0),_0x3477e3['get'](_0x1213e4));if(!_0x1e36be)return null;return _0x1cdbbc['get'](_0x1213e4)(_0x46ded0,_0x1213e4,_0x3477e3['get'](_0x46ded0),_0x3477e3['get'](_0x1213e4))?_0x1e36be[0x1]['commentThread']&&_0x1e36be[0x1]['commentThread']['length']?null:_0x1e36be:null;}_0x22372e['size']&&this['_refreshSuggestionsChain'](_0x22372e);}['_refreshAttributeSuggestionsChain'](_0x427693){if(0x0==_0x427693['length'])return;const _0x52d22a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x573edc=>'attribute'==_0x573edc['type']&&_0x573edc['_isDataLoaded']),_0x222cba=[],_0x5e2422=new Map();for(const _0x3afdb5 of _0x52d22a){const _0x151b33=_0x5cd747(_0x3afdb5['attributes']);_0x5e2422['has'](_0x151b33)||(_0x5e2422['set'](_0x151b33,_0x222cba['length']),_0x222cba['push']([]));const _0x4211fe=_0x5e2422['get'](_0x151b33);_0x222cba[_0x4211fe]['push'](_0x3afdb5);}!(function(){_0x222cba['sort']((_0x3d712e,_0x136908)=>{const _0x28fc45=_0x3d712e[0x0]['createdAt'],_0x59e4af=_0x136908[0x0]['createdAt'];return _0x28fc45==_0x59e4af?_0x3d712e[0x0]['attributes']['groupId']<_0x136908[0x0]['attributes']['groupId']?-0x1:0x1:_0x28fc45<_0x59e4af?-0x1:0x1;});for(const _0x33fc61 of _0x222cba)_0x33fc61['sort']((_0x24c10d,_0x30082e)=>_0x24c10d['id']<_0x30082e['id']?-0x1:0x1);}());for(let _0x29397d=0x0;_0x29397d<_0x222cba['length'];_0x29397d++){if(0x0==_0x222cba[_0x29397d]['length'])continue;const _0x950b95=[];for(let _0x26ae48=_0x29397d+0x1;_0x26ae48<_0x222cba['length'];_0x26ae48++)0x0!=_0x222cba[_0x26ae48]['length']&&_0x581e56(_0x222cba[_0x29397d],_0x222cba[_0x26ae48])&&_0x950b95['push'](_0x26ae48);for(const _0x3fddbc of _0x950b95)_0x222cba[_0x29397d]=_0x222cba[_0x29397d]['concat'](_0x222cba[_0x3fddbc]),_0x222cba[_0x3fddbc]=[];}for(const _0x48f46b of _0x222cba)for(let _0x51d057=0x0;_0x51d057<_0x48f46b['length'];_0x51d057++){const _0x29421a=_0x48f46b[_0x51d057+0x1]||null;_0x48f46b[_0x51d057]['next']!==_0x29421a&&(_0x48f46b[_0x51d057]['next']=_0x29421a);}for(const _0x30d134 of _0x222cba)for(let _0x11955c=0x0;_0x11955c<_0x30d134['length'];_0x11955c++){const _0x9dd1de=_0x30d134[_0x11955c-0x1]||null;_0x30d134[_0x11955c]['previous']!==_0x9dd1de&&(_0x30d134[_0x11955c]['previous']=_0x9dd1de);}function _0x581e56(_0x3fa067,_0x186496){if(_0x3fa067[0x0]['attributes']['groupId']!==_0x186496[0x0]['attributes']['groupId']&&_0x3fa067[0x0]['author']!==_0x186496[0x0]['author'])return!0x1;if(!function(_0xd7359f,_0xdf3ceb){if(!_0xd7359f['hasComments']&&!_0xdf3ceb['hasComments'])return!0x0;if(_0xd7359f['hasComments']&&_0xdf3ceb['hasComments'])return!0x1;if(_0xd7359f['hasComments']&&_0xdf3ceb['createdAt']<_0xd7359f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xdf3ceb['hasComments']&&_0xd7359f['createdAt']<_0xdf3ceb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3fa067[0x0],_0x186496[0x0]))return!0x1;const _0x1efc16=Pt(_0x3fa067[0x0]['attributes'],['groupId','trackingSessionId']),_0x1e2599=Pt(_0x186496[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x14f08f(_0x1efc16,_0x1e2599))return!0x1;if(_0x3fa067[0x0]['attributes']['groupId']==_0x186496[0x0]['attributes']['groupId'])return!0x0;if(_0x3fa067[0x0]['attributes']['trackingSessionId']!==_0x186496[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3fa067['every'](_0x199c63=>_0x186496['some'](_0x1f24a4=>_0x199c63['getFirstRange']()['isEqual'](_0x1f24a4['getFirstRange']())))&&_0x186496['every'](_0x276704=>_0x3fa067['some'](_0x44d666=>_0x276704['getFirstRange']()['isEqual'](_0x44d666['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x537eb9){const _0x1e51e4=Array['from'](_0x537eb9),_0x15a075=this['getSuggestions']({'skipNotAttached':!0x0}),_0x12c3a0=_0x15a075['filter'](_0x554857=>!_0x537eb9['has'](_0x554857)),_0xdc95fc=new Map(_0x1e51e4['map'](_0x2dd642=>[_0x2dd642,this['_suggestionFactory']['getSuggestionCallback'](_0x2dd642['type'],_0x2dd642['subType'],'join')])),_0x2c1185=new Map(_0x15a075['map'](_0x388dee=>[_0x388dee,_0x388dee['getRanges']()]));for(let _0x5f4124=0x0;_0x5f4124<_0x1e51e4['length'];_0x5f4124++){if(_0x263ab9(this,_0x1e51e4[_0x5f4124],_0x1e51e4,_0x5f4124+0x1))return!0x0;}for(let _0x7a9532=0x0;_0x7a9532<_0x1e51e4['length'];_0x7a9532++){if(_0x263ab9(this,_0x1e51e4[_0x7a9532],_0x12c3a0,0x0))return!0x0;}return!0x1;function _0x263ab9(_0x225428,_0x830a58,_0x21b426,_0x1cb386){for(let _0xd4659a=_0x1cb386;_0xd4659a<_0x21b426['length'];_0xd4659a++){const _0x5d5b1b=_0x21b426[_0xd4659a];if(_0x5d5b1b['type']!==_0x830a58['type']||_0x5d5b1b['author']['id']!==_0x830a58['author']['id']||_0x5d5b1b['subType']!==_0x830a58['subType'])continue;if(!en(_0x830a58,_0x5d5b1b))continue;if('attribute'==_0x830a58['type']&&_0x830a58['data']['oldValue']!=_0x5d5b1b['data']['oldValue'])continue;if('attribute'==_0x830a58['type']&&_0x225428['_isBlockAttribute'](_0x830a58['data']['key']))continue;if('formatBlock'==_0x830a58['type']){const _0x254191=_0x225428['editor']['model'],_0x2c2806=_0x830a58['getContainedElement']();if(_0x2c2806&&(_0x254191['schema']['isObject'](_0x2c2806)||_0x254191['schema']['isLimit'](_0x2c2806)))continue;}const _0x1a5144=_0xdc95fc['get'](_0x830a58),_0x27e541=_0x2c1185['get'](_0x830a58),_0x3b562c=_0x2c1185['get'](_0x5d5b1b),_0xe67ffc=_0x830a58['commentThread']&&_0x830a58['commentThread']['length'],_0x1ed91f=_0x5d5b1b['commentThread']&&_0x5d5b1b['commentThread']['length'];if(!_0xe67ffc&&_0x1a5144(_0x3b562c,_0x27e541))return _0x225428['_joinSuggestions'](_0x5d5b1b,_0x830a58),_0x2c1185['delete'](_0x830a58),!0x0;if(!_0x1ed91f&&_0x1a5144(_0x27e541,_0x3b562c))return _0x225428['_joinSuggestions'](_0x830a58,_0x5d5b1b),_0x2c1185['delete'](_0x5d5b1b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x24fa04,_0x59a962){if(_0x24fa04['isMultiRange']){for(const _0x2c6df7 of _0x59a962['getRanges']())_0x24fa04['addRange'](_0x2c6df7);}else{const _0x253994=_0x59a962['getFirstRange']()['end'];this['_setSuggestionRange'](_0x24fa04,this['_model']['createRange'](_0x24fa04['getFirstRange']()['start'],_0x253994));}_0x59a962['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4865ef,_0x4373fe,_0x5cf97a){const _0x10da77=_0x4865ef['startsWith']('format')||_0x4865ef['startsWith']('attribute')?'FORMATTING':_0x4865ef['toUpperCase']();return o(this['editor']['locale'],_0x4373fe+'_'+_0x10da77+'_SUGGESTION_ANNOUNCEMENT',_0x5cf97a);}['_initAriaMarkerChangeAnnouncements'](){const _0x555624=this['editor'];if(!_0x555624['ui'])return;const {ariaLiveAnnouncer:_0x1048ab}=_0x555624['ui'];_0xf13ef2(this['_model'],({left:_0x1c793d,entered:_0x16b6e4})=>{for(const _0x8a59bf of _0x1c793d){const {group:_0x1e243f,type:_0x3b0cf0}=this['_splitMarkerName'](_0x8a59bf['name']);if('suggestion'===_0x1e243f){_0x1048ab['announce'](this['_getMarkerAnnouncementText'](_0x3b0cf0,'LEAVE'));break;}}for(const _0x266343 of _0x16b6e4){const {group:_0x53c369,type:_0x1fa8ed}=this['_splitMarkerName'](_0x266343['name']);if('suggestion'===_0x53c369){_0x1048ab['announce'](this['_getMarkerAnnouncementText'](_0x1fa8ed,'ENTER',_0x32bdff(_0x1443b3)));break;}}});}['_processAttributeChanges'](_0xbbf497){if(this['_recordAttributeSuggestions'])return!0x1;const _0x451c82=this['editor'],_0x4edca8=_0x451c82['model']['document']['differ']['getChanges']();if(0x0==_0x4edca8['length'])return!0x1;const _0x1be053=[],_0x12dbcb=_0x4edca8['filter'](_0x31a527=>'attribute'==_0x31a527['type']),_0x288b4c=_0x4edca8['filter'](_0x27093a=>'insert'==_0x27093a['type']&&'$text'!=_0x27093a['name']),_0x122454=_0x4edca8['filter'](_0x38d0bd=>'remove'==_0x38d0bd['type']&&'$text'!=_0x38d0bd['name']);for(const _0x2c4aad of _0x12dbcb)_0x1be053['push']({'key':_0x2c4aad['attributeKey'],'newValue':_0x2c4aad['attributeNewValue'],'oldValue':_0x2c4aad['attributeOldValue'],'range':Zt(_0x2c4aad['range'],_0x451c82['model'])});for(const _0x182eaa of _0x288b4c){const _0x5c68f7=_0x122454['find'](_0x3d3d78=>_0x3d3d78['position']['isEqual'](_0x182eaa['position']));_0x5c68f7&&_0x1be053['push']({'key':m,'newValue':_0x182eaa['name'],'oldValue':_0x5c68f7['name'],'range':_0x451c82['model']['createRangeOn'](_0x182eaa['position']['nodeAfter'])});}return 0x0!=_0x1be053['length']&&this['_reduceExistingSuggestions'](_0xbbf497,_0x1be053);}['_processAttributeSuggestions'](_0x4c4541){let _0x3539ca=!0x1;const _0x224781=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x124e43=>_0x124e43['data']['newRange']&&_0x124e43['name']['startsWith']('suggestion:attribute:'));for(const _0x457be6 of _0x224781){const {subType:_0x1b4111,id:_0x21e18c}=this['_splitMarkerName'](_0x457be6['name']),_0x346e19=_0x1b4111['split']('|')[0x0];for(const _0x122466 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x122466['id']!=_0x21e18c&&'attribute'==_0x122466['type']&&_0x122466['data']&&_0x122466['data']['key']==_0x346e19&&_0x122466['getFirstRange']()['isIntersecting'](_0x457be6['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x122466,_0x457be6['data']['newRange'],_0x4c4541),_0x3539ca=!0x0);}return _0x3539ca;}['recordAttributeChanges'](_0x3263ba){this['_recordAttributeSuggestions']=!0x0,_0x3263ba();}['_isRegisteredAttribute'](_0x3889f7){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x3889f7);}['_reduceExistingSuggestions'](_0x1dc43c,_0xbc25cb){if(0x0==_0xbc25cb['length'])return!0x1;let _0xae65e6=!0x1;for(const _0x4a61df of _0xbc25cb){const _0x417801=this['_findSuggestions'](_0x4a61df['range'],'attribute')['filter'](_0x533a61=>!_0x533a61['meta']['isNextTo'])['map'](_0x1f61d5=>_0x1f61d5['suggestion']),_0x19c0da=_0x5cd747({'newValue':_0x4a61df['newValue']});_0x417801['filter'](_0x5085de=>{const [_0x39e584,_0x246ef1]=_0x5085de['subType']['split']('|');return _0x39e584==_0x4a61df['key']&&_0x246ef1!=_0x19c0da;})['forEach'](_0x3272be=>{this['_reduceSuggestionAttributeRange'](_0x3272be,_0x4a61df['range'],_0x1dc43c),_0xae65e6=!0x0;});}return _0xae65e6;}['_reduceSuggestionAttributeRange'](_0x45c6e8,_0x120743,_0x135a67){const _0x12e390=_0x45c6e8['getFirstRange']()['getDifference'](_0x120743);0x0!==_0x12e390['length']?0x1!==_0x12e390['length']?this['_breakSuggestionMarker'](_0x45c6e8,_0x120743['start'],_0x120743['end']):this['_setSuggestionRange'](_0x45c6e8,_0x12e390[0x0]):_0x135a67['removeMarker'](_0x45c6e8['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1d52b2){this['_editor']=_0x1d52b2,this['_model']=_0x1d52b2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1099f0,_0x17972d,_0x510645,_0x1d3e4b,_0x3811cb,_0x1aa80a,_0x4e7b4b){return new x(this['_model'],{'type':_0x1099f0,'subType':_0x17972d,'id':_0x510645,'originalSuggestionId':_0x4e7b4b,'author':_0x1d3e4b,'creator':_0x1d3e4b,'attributes':_0x3811cb,'onAttributesChange':_0x1aa80a,'onAccept':(..._0x50f38a)=>this['getSuggestionCallback'](_0x1099f0,_0x17972d,'accept')(..._0x50f38a),'onDiscard':(..._0x2e258b)=>this['getSuggestionCallback'](_0x1099f0,_0x17972d,'discard')(..._0x2e258b)});}['registerCustomCallback'](_0x36ee1a,_0x50bb22,_0x1566bd,_0x1133b4){const _0x1385d4=_0x36ee1a+':'+_0x50bb22+':'+_0x1566bd;this['_customCallbacks']['set'](_0x1385d4,_0x1133b4);}['getSuggestionCallback'](_0x1d4145,_0x74d0e9,_0x399832){const _0x49eae5=_0x1d4145+':'+_0x74d0e9+':'+_0x399832;return this['_customCallbacks']['get'](_0x49eae5)||this['_defaultCallbacks']['get'](_0x1d4145+':'+_0x399832);}['_registerDefaultCallbacks'](){const _0xfcc77b=()=>!0x1,_0x589030=_0x2c5b48=>{_0x2c5b48['sort']((_0x45a950,_0x545ef3)=>_0x45a950['start']['isBefore'](_0x545ef3['start'])?0x1:-0x1),this['_model']['change'](_0x3b8918=>{for(const _0x3b3893 of _0x2c5b48){let _0x408a3c;_0x408a3c=_0x3b3893['end']['isAtEnd']&&_0x3b3893['end']['parent']==_0x3b3893['start']['nodeAfter']?_0x3b8918['createSelection'](_0x3b3893['start']['nodeAfter'],'on'):_0x3b8918['createSelection'](_0x3b3893),this['_model']['deleteContent'](_0x408a3c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x46366c=(_0x1a9fe4,_0xe2b503)=>{_0xe2b503&&this['_model']['change'](_0x2b1acb=>{const {commandName:_0x376ac3,commandParams:_0x30446a=[]}=_0xe2b503,_0x569c5e=_0x1a9fe4['map'](_0x5e51b1=>(Kt(_0x5e51b1)&&(_0x5e51b1=this['_model']['createRange'](_0x5e51b1['end'])),_0x5e51b1))['filter'](_0x487501=>'$graveyard'!==_0x487501['root']['rootName']);if(_0x569c5e['length']<0x1)return;const _0x28615b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2259d5=>_0x4960c7['fromRange'](_0x2259d5));_0x2b1acb['setSelection'](_0x569c5e);for(const _0x2a068e of this['_editor']['commands']['commands']())_0x2a068e['refresh']();_0x30446a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x376ac3,..._0x30446a);const _0x5022b3=_0x28615b['filter'](_0x7fe3c2=>'$graveyard'!=_0x7fe3c2['root']['rootName']);_0x5022b3['length']>0x0&&_0x2b1acb['setSelection'](_0x5022b3);for(const _0x2d5ca1 of _0x28615b)_0x2d5ca1['detach']();});},_0x4ed703=(_0x3a6f37,_0x2eb95c)=>0x1==_0x3a6f37['length']&&0x1==_0x2eb95c['length']&&_0x3a6f37[0x0]['end']['isEqual'](_0x2eb95c[0x0]['start']),_0x436387=(_0x513064,_0x2b4c1a,_0xc7a33,_0x620aa8)=>nn(_0x513064,_0x2b4c1a,_0xc7a33,_0x620aa8)?[_0x513064,_0x2b4c1a]:nn(_0x2b4c1a,_0x513064,_0x620aa8,_0xc7a33)?[_0x2b4c1a,_0x513064]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xfcc77b),this['_defaultCallbacks']['set']('insertion:discard',_0x589030),this['_defaultCallbacks']['set']('insertion:join',_0x4ed703),this['_defaultCallbacks']['set']('insertion:chain',_0x436387),this['_defaultCallbacks']['set']('deletion:accept',_0x589030),this['_defaultCallbacks']['set']('deletion:discard',_0xfcc77b),this['_defaultCallbacks']['set']('deletion:join',_0x4ed703),this['_defaultCallbacks']['set']('deletion:chain',_0x436387),this['_defaultCallbacks']['set']('formatInline:accept',_0x46366c),this['_defaultCallbacks']['set']('formatInline:discard',_0xfcc77b),this['_defaultCallbacks']['set']('formatInline:join',_0x4ed703),this['_defaultCallbacks']['set']('formatInline:chain',_0xfcc77b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x46366c),this['_defaultCallbacks']['set']('formatBlock:discard',_0xfcc77b),this['_defaultCallbacks']['set']('formatBlock:join',_0x4ed703),this['_defaultCallbacks']['set']('formatBlock:chain',_0xfcc77b),this['_defaultCallbacks']['set']('attribute:accept',_0xfcc77b),this['_defaultCallbacks']['set']('attribute:discard',(_0x4ad538,_0x399923)=>{if(!_0x399923)return;const _0x403da6=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x807098=>{if(_0x399923['key']==m)for(const _0x3a3d7f of _0x4ad538){const _0x5c807a=_0x3a3d7f['start']['nodeAfter'],_0x41c3b3=_0x399923['oldValue'];_0x807098['rename'](_0x5c807a,_0x41c3b3);}else{if(_0x403da6['_isBlockAttribute'](_0x399923['key'])){for(const _0x17138b of _0x4ad538)void 0x0!==_0x399923['oldValue']?_0x807098['setAttribute'](_0x399923['key'],_0x399923['oldValue'],_0x17138b['start']['nodeAfter']):_0x807098['removeAttribute'](_0x399923['key'],_0x17138b['start']['nodeAfter']);}else{for(const _0x5bfc0c of _0x4ad538)_0x399923['oldValue']?_0x807098['setAttribute'](_0x399923['key'],_0x399923['oldValue'],_0x5bfc0c):_0x807098['removeAttribute'](_0x399923['key'],_0x5bfc0c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4ed703);}}function zt(_0x5b89d3,_0x3e9ede,_0x2b6715){for(const _0x12a352 of _0x3e9ede['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x12a352['root']==_0x12a352)return!0x1;if(!_0x2b6715['containsItem'](_0x12a352))return!0x1;if(_0x5b89d3['isObject'](_0x12a352)||_0x5b89d3['isLimit'](_0x12a352))return!0x0;}return!0x1;}function Kt(_0x2aeebf){return _0x2aeebf['end']['parent']==_0x2aeebf['start']['nodeAfter']&&_0x2aeebf['end']['isAtStart'];}function Wt(_0x54ce6b,_0x25507f,_0x4cb20f,_0x42b182){const _0x569c10=_0x14790d=>!_0x14790d['item']['is']('$textProxy')&&!_0x42b182['isObject'](_0x14790d['item']),_0x5a92bf=_0x54ce6b['start']['getLastMatchingPosition'](_0x569c10),_0x3a685f=_0x54ce6b['end']['getLastMatchingPosition'](_0x569c10,{'direction':'backward'});return(!_0x54ce6b['start']['isEqual'](_0x5a92bf)||!_0x54ce6b['end']['isEqual'](_0x3a685f))&&(_0x5a92bf['isBefore'](_0x3a685f)?_0x4cb20f['updateMarker'](_0x25507f,{'range':_0x4cb20f['createRange'](_0x5a92bf,_0x3a685f)}):_0x4cb20f['removeMarker'](_0x25507f),!0x0);}function Ht(_0xdf3fdd){return _0x5cd747(_0xdf3fdd);}function Qt(_0xfca02){const _0x5e76c1=_0xfca02['start']['nodeAfter'];return _0x5e76c1&&_0x5e76c1['is']('element');}function Xt(_0x3fea4e){return Kt(_0x3fea4e)||function(_0x38ad46){return _0x38ad46['start']['parent']==_0x38ad46['end']['nodeBefore']&&_0x38ad46['start']['isAtEnd'];}(_0x3fea4e);}function Yt(_0x37ff3b,_0x379bff){try{const _0x1aa46b=_0x37ff3b['getRange']();for(const _0x13b253 of _0x379bff)if(_0x37ff3b!==_0x13b253&&_0x1aa46b&&_0x1aa46b['isIntersecting'](_0x13b253['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x5b8c98,_0x55c669){return null==_0x5b8c98['end']['nodeBefore']&&_0x5b8c98['end']['parent']==_0x5b8c98['start']['nodeAfter']?tn(_0x5b8c98['start']['nodeAfter'],_0x55c669):_0x5b8c98;}function tn(_0x8057c8,_0x5b781f){const _0x4c94a1=_0x5b781f['schema']['isObject'](_0x8057c8)||_0x5b781f['schema']['isSelectable'](_0x8057c8);return _0x5b781f['createRange'](_0x5b781f['createPositionAt'](_0x8057c8,'before'),_0x4c94a1?_0x5b781f['createPositionAfter'](_0x8057c8):_0x5b781f['createPositionAt'](_0x8057c8,'end'));}function nn(_0x1f8704,_0x16e0ed,_0x4b0c41,_0xd1fa05){return!!en(_0x1f8704,_0x16e0ed)&&_0x4b0c41['end']['isEqual'](_0xd1fa05['start']);}function en(_0x39147c,_0x372e69){if(!_0x39147c['_isDataLoaded']||!_0x372e69['_isDataLoaded'])return!0x1;const _0x120b23=new Set(Object['keys'](_0x39147c['attributes'])),_0x536685=new Set(Object['keys'](_0x372e69['attributes']));if(_0x120b23['delete']('groupId'),_0x536685['delete']('groupId'),0x0==_0x120b23['size']&&0x0==_0x536685['size'])return!0x0;if(_0x120b23['size']!=_0x536685['size'])return!0x1;const _0x120ca6={..._0x39147c['attributes']},_0x1ee75c={..._0x372e69['attributes']};return delete _0x120ca6['groupId'],delete _0x1ee75c['groupId'],JSON['stringify'](_0x120ca6)==JSON['stringify'](_0x1ee75c);}function sn(_0x1112e8,_0x369b20){const _0x34ce57=on(_0x1112e8['attributes']),_0x291bbe=on(_0x369b20);if(!_0x1112e8['_isDataLoaded'])return!0x1;for(const _0x1dbc43 of Object['keys'](_0x291bbe))if(!_0x14f08f(_0x34ce57[_0x1dbc43],_0x291bbe[_0x1dbc43]))return!0x1;return!0x0;}function on(_0x2ef628){const _0x472d06=Object['assign']({},_0x2ef628);return delete _0x472d06['skipNestingCheck'],delete _0x472d06['tablePasteChainId'],_0x472d06;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x1a92a4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1da1fc,_0x12eba8,_0x1d9312,_0x504dab){super(),this['model']=_0x12eba8,this['view']=_0x1d9312,this['commentThreadController']=_0x504dab,this['_editor']=_0x1da1fc,this['_acceptCommand']=_0x1da1fc['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1da1fc['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x46f872,_0x373d3b)=>_0x46f872||_0x373d3b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4f6011=>_0x4f6011&&this['_editor']['model']['canEditAt'](_0x12eba8['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x535db0=>_0x535db0&&this['_editor']['model']['canEditAt'](_0x12eba8['getRanges']())),this['_pendingAction']=null,_0x1d9312['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1d9312,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1d9312,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1d9312,'change:isDirty',()=>{_0x1d9312['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 _0x383ac8=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x383ac8);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x5e9309{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x49cb1b,_0x199513,_0x17113f,_0x45ed2a){super(_0x49cb1b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x11895a(_0x49cb1b,o(_0x49cb1b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x199513['authoredAt']),this['bind']('authoredAt')['to'](_0x199513),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',_0x199513,'authoredAt',this,'descriptionParts',(_0x113bad,_0x42b0ef,_0x281f8a)=>{const _0x2813f0=_0x281f8a['map'](_0x6ab44f=>ls(_0x6ab44f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x113bad-0x1,_0x199513['author']['name'],_0x42b0ef?_0x45ed2a['formatDateTime'](_0x42b0ef):'',new DOMParser()['parseFromString'](_0x2813f0,'text/html')['body']['textContent']]);}),this['focusables']=new _0x26cebe(),this['focusTracker']=new _0x23571b(),this['keystrokes']=new _0x168a13(),this['focusCycler']=new _0x6533f9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x370ba2=>_0x370ba2['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x199513,this['_localUser']=_0x17113f,this['_config']=_0x45ed2a,_0x45ed2a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xc14415(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x521b2d}=this['_config'];this['commentsListView']=new _0x521b2d(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',_0x2262f1=>_0x2262f1+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3215de,_0x16cc0b)=>_0x3215de||!!_0x16cc0b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x116038}=this['_config'],_0x4614d4=new _0x116038(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x41fb16=_0x4614d4['commentInputView'];return _0x4614d4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x41fb16,'value',(_0x4aace7,_0x379e7a,_0x1211b9)=>!!_0x1211b9||_0x4aace7&&!_0x379e7a),_0x41fb16['on']('submit',(_0x2e9482,_0x169a51)=>{this['fire']('addComment',_0x169a51),_0x41fb16['editor']['setData']('');}),_0x41fb16['on']('cancel',()=>this['focus']()),_0x41fb16['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4614d4;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x422750,_0xf5d8bd,_0x3adfa9,_0x584980){super(_0x422750,_0xf5d8bd,_0x3adfa9,_0x584980),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x13d85a=>_0x13d85a&&_0x13d85a[0x0]?_0x13d85a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2fa9b0,_0x32b12e)=>{let _0x129a19='';for(const _0x5a6d6c of _0x2fa9b0)_0x129a19+='<p>'+ls(_0x5a6d6c['content'],_0x5a6d6c['color'])+'</p>';return _0x32b12e?_0x129a19:_0x144e5a(_0x129a19,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x584980['SuggestionView'](_0x422750,_0xf5d8bd,{'formatDateTime':_0x584980['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 _0x14a922=this['bindTemplate'],_0x20fa99=[this['suggestionView']];return this['commentsListView']&&_0x20fa99['push'](this['commentsListView']),this['commentThreadInputView']&&_0x20fa99['push'](this['commentThreadInputView']),_0x20fa99['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x14a922['if']('isActive','ck-suggestion-wrapper--active'),_0x14a922['to']('type',_0x5922b5=>'ck-suggestion-'+_0x5922b5),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':_0x14a922['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x20fa99};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x5e9309{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x184c76,_0x2747c0,_0x4fc92e){super(_0x184c76),this['_model']=_0x2747c0,this['_config']=_0x4fc92e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2747c0),this['acceptButton']=this['_createButton'](o(_0x184c76,'Accept\x20suggestion'),_0x509166,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x184c76,'Discard\x20suggestion'),_0x3e3b38,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x183fd4(_0x184c76,_0x2747c0['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x26cebe([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x23571b(),this['keystrokes']=new _0x168a13(),this['focusCycler']=new _0x6533f9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2712a9=>_0x2712a9['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x207dcc=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x207dcc['innerHTML']=this['description'],this['on']('change:description',(_0x511123,_0x1632cd,_0x4414a4)=>{_0x207dcc['innerHTML']=_0x4414a4;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xa331b1=this['bindTemplate'],_0x27f229=[{'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':_0xa331b1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xa331b1['to']('authoredAt',_0x4b62ea=>this['_config']['formatDateTime'](_0x4b62ea))}]}]},{'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']&&_0x27f229['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':_0x27f229}]};}['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'](_0x4460a0,_0x269214,_0x1e6899,_0x54b66b,_0xf32123){const _0x366564=new _0x5845be(this['locale']);return _0x366564['set']({'label':_0x4460a0,'icon':_0x269214,'tooltip':!0x0,'tooltipPosition':_0xf32123}),_0x366564['extendTemplate']({'attributes':{'class':_0x1e6899}}),_0x366564['on']('execute',()=>{this['fire'](_0x54b66b,this['_model']['id']);}),_0x366564;}['_setupKeyboardNavigation'](){const _0x4a691d=this['element'];this['keystrokes']['listenTo'](_0x4a691d);for(const _0xbf2205 of this['focusables'])this['focusTracker']['add'](_0xbf2205['element']),this['keystrokes']['listenTo'](_0xbf2205['element']);this['keystrokes']['set']('enter',(_0x2c9796,_0x4001bb)=>{_0x4a691d===_0x2c9796['target']&&(this['focusCycler']['focusFirst'](),_0x4001bb());}),this['keystrokes']['set']('esc',(_0xf91045,_0x4b089a)=>{_0x4a691d!==_0xf91045['target']&&(this['focus'](),_0x4b089a());});}}class u extends _0x53f614{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x4d34f8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14bca0){super(_0x14bca0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2e94bf=this['editor']['config'];_0x2e94bf['define']('trackChanges.SuggestionThreadView',fe),_0x2e94bf['define']('trackChanges.SuggestionView',we),_0x2e94bf['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2e94bf['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x598a51,_0x502bd6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4e3dbc,_0x731ee8]of this['_handleControllerBuffer']){const _0x16078e=this['_suggestionToController']['has'](_0x4e3dbc);_0x16078e||_0x731ee8?_0x16078e&&_0x731ee8&&this['_destroyController'](_0x4e3dbc):this['_initializeController'](_0x4e3dbc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x598a51,_0x502bd6);}['init'](){const _0x8dfdce=this['editor'],_0x412b14=_0x8dfdce['plugins']['get']('TrackChangesEditing'),_0x43d893=_0x8dfdce['plugins']['get']('Annotations'),_0x571233=_0x8dfdce['plugins']['get']('EditorAnnotations'),_0x22c535=_0x8dfdce['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x571233['addSourceCollector'](()=>{const _0x17ca38=[];for(const [_0x1997f6,_0x2a0d68]of Array['from'](this['_suggestionToController'])){const _0x2fe746=_0x1997f6['getAllAdjacentSuggestions'](),_0x4dbc60=[];for(const _0xc89ab5 of _0x2fe746){if(!_0xc89ab5['isInContent'])continue;if(_0xc89ab5['isMultiRange']){_0x4dbc60['push'](..._0xc89ab5['getRanges']());continue;}const _0x31a048=_0xc89ab5['getFirstRange']();if(_0x4dbc60['length']>0x0){const _0x37314a=_0x4dbc60[0x0]['getJoined'](_0x31a048);if(_0x37314a){_0x4dbc60[0x0]=_0x37314a;continue;}}_0x4dbc60['push'](_0x31a048);}_0x17ca38['push']([_0x2a0d68['view'],_0x4dbc60]);}return _0x17ca38;}),this['listenTo'](_0x412b14,'suggestionLoaded',(_0x2102bd,_0x30130e)=>{this['listenTo'](_0x30130e,'change:previous',(_0x398f3d,_0x19b603,_0x586634,_0x3475f6)=>{_0x30130e['isInContent']&&(null==_0x586634?(this['_updateController'](_0x3475f6['head']),this['_handleSuggestionControllerDelayed'](_0x30130e,!0x1)):(this['_updateController'](_0x586634['head']),null==_0x3475f6&&this['_handleSuggestionControllerDelayed'](_0x30130e,!0x0)));}),null!==_0x30130e['previous']?this['_updateController'](_0x30130e['head']):this['_handleSuggestionControllerDelayed'](_0x30130e,!0x1);}),this['listenTo'](_0x412b14,'suggestionUnloaded',(_0x120631,_0x771cda,_0x2a89e9)=>{this['stopListening'](_0x771cda,'change:previous'),this['_handleControllerBuffer']['delete'](_0x771cda),this['_suggestionToController']['has'](_0x771cda)&&this['_destroyController'](_0x771cda),_0x2a89e9&&this['_updateController'](_0x2a89e9['head']);}),this['listenTo'](_0x412b14,'suggestionChanged',(_0x377138,_0x6c6f9)=>{this['_updateController'](_0x6c6f9);}),this['listenTo'](_0x43d893,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x22c535,'addComment',(_0xa1c3f8,{threadId:_0x3fad27,isFromAdapter:_0x2e8d95})=>{if(_0x2e8d95||!_0x412b14['hasSuggestion'](_0x3fad27))return;const _0x14a2da=_0x412b14['getSuggestion'](_0x3fad27);this['_suggestionToController']['get'](_0x14a2da)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x145a25=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x32832b;for(const _0x588ab3 in _0x145a25){const _0x3d9c30=_0x588ab3,_0x134ff6=_0x145a25[_0x3d9c30];if('trackChangesLicenseKeyValid'==_0x134ff6||'trackChangesLicenseKeyInvalid'==_0x134ff6||'trackChangesLicenseKeyExpired'==_0x134ff6||'trackChangesLicenseKeyDomainLimit'==_0x134ff6||'trackChangesLicenseKeyNotAllowed'==_0x134ff6||'trackChangesLicenseKeyEvaluationLimit'==_0x134ff6||'trackChangesLicenseKeyUsageLimit'==_0x134ff6){delete _0x145a25[_0x3d9c30],_0x32832b=_0x134ff6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x32832b&&_0x145a25['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x32832b&&_0x145a25['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x32832b&&_0x145a25['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x32832b&&_0x145a25['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x32832b&&_0x145a25['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x32832b&&_0x145a25['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x57d835){const _0x1844f1=this['_suggestionToController']['get'](_0x57d835);if(!_0x1844f1)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x1844f1['view'])||null;}['getSuggestionForAnnotation'](_0x59dc48){const _0x40e2de=this['_viewToController']['get'](_0x59dc48['innerView']);return _0x40e2de?_0x40e2de['model']:null;}['_refreshActiveMarkers'](){const _0x67a127=this['editor']['plugins']['get']('Annotations'),_0xf4dc9a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f7161=Array['from'](_0x67a127['activeAnnotations'],_0x19983e=>_0x19983e['innerView'])['filter'](_0x4c8d7f=>this['_viewToController']['has'](_0x4c8d7f)),_0x3a7735=[];for(const _0x365a87 of _0x3f7161){const _0x22cbb3=this['_viewToController']['get'](_0x365a87)['model']['getAllAdjacentSuggestions']();_0x3a7735['push'](..._0x22cbb3['reduce']((_0x38e821,_0x37d5d6)=>[..._0x38e821,..._0x37d5d6['getMarkerNames']()],[]));}_0xf4dc9a['activeMarkers']=_0x3a7735;}['_addUIComponentsToFactory'](){const _0x3b4993=this['editor'],_0x402985=_0x3b4993['locale'],_0x27d289=o(_0x402985,'Track\x20changes'),_0x5651a5=new _0x58fd42([{'type':'switchbutton','model':new _0x4514df({'withText':!0x0,'isToggleable':!0x0,'label':_0x27d289,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4514df({'withText':!0x0,'label':o(_0x402985,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4514df({'withText':!0x0,'label':o(_0x402985,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4514df({'withText':!0x0,'label':o(_0x402985,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4514df({'withText':!0x0,'label':o(_0x402985,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3b4993['plugins']['has']('TrackChangesPreview')&&_0x5651a5['addMany']([{'type':'separator'},{'type':'button','model':new _0x4514df({'withText':!0x0,'label':o(_0x402985,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x40356b of _0x5651a5)if(ke(_0x40356b)){const _0x78963a=_0x3b4993['commands']['get'](_0x40356b['model']['commandName']);_0x40356b['model']['bind']('isOn','isEnabled')['to'](_0x78963a,'value','isEnabled');}_0x3b4993['ui']['componentFactory']['add']('trackChanges',_0x4d1b39=>this['_createToolbarButton'](_0x4d1b39,_0x5651a5,_0x27d289)),_0x3b4993['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3a53af=>this['_createMenuBarMenu'](_0x3a53af,_0x5651a5,_0x27d289));}['_createToolbarButton'](_0x3beb2a,_0x4ded98,_0x35f77a){const _0x12e80e=_0x49882a(_0x3beb2a,_0x15a6e2),_0x45f578=this['editor']['commands']['get']('trackChanges');_0x12e80e['buttonView']['set']({'tooltip':_0x35f77a,'label':_0x35f77a,'icon':_0x3493ec}),_0x12e80e['buttonView']['bind']('isOn')['to'](_0x45f578,'value'),_0x12e80e['buttonView']['on']('execute',()=>{_0x45f578['execute'](),this['editor']['editing']['view']['focus']();}),_0x2a2c70(_0x12e80e,_0x4ded98,{'role':'menu'});const _0x291184=[];for(const _0xf91458 of _0x4ded98)ke(_0xf91458)&&_0x291184['push'](this['editor']['commands']['get'](_0xf91458['model']['commandName']));const _0x489504=_0x12e80e['buttonView'];return _0x489504['actionView']['unbind']('isEnabled'),_0x489504['arrowView']['unbind']('isEnabled'),_0x489504['actionView']['bind']('isEnabled')['to'](_0x45f578,'isEnabled'),_0x489504['arrowView']['bind']('isEnabled')['toMany'](_0x291184,'isEnabled',(..._0x695f3)=>_0x695f3['some'](_0x399b06=>_0x399b06)),_0x12e80e['on']('execute',_0x54aeea=>{this['editor']['execute'](_0x54aeea['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x12e80e;}['_createMenuBarMenu'](_0x295e26,_0x3cbbc7,_0x23da3c){const _0x11cdca=new _0x2e2c80(_0x295e26),_0x315c24=this['editor']['commands']['get']('trackChanges');_0x11cdca['buttonView']['set']({'label':_0x23da3c,'icon':_0x3493ec});const _0x2e7aca=new _0x40be1b(_0x295e26);for(const _0x2af7fe of _0x3cbbc7){if('separator'==_0x2af7fe['type']){_0x2e7aca['items']['add'](new _0x59500b(_0x295e26));continue;}const _0x43a66a=new _0x5cf6e4(_0x295e26,_0x11cdca),_0x4366a6=new _0x2f9d47(_0x295e26),_0x461be6=_0x2af7fe['model'];_0x4366a6['bind'](...Object['keys'](_0x461be6))['to'](_0x461be6),_0x4366a6['delegate']('execute')['to'](_0x11cdca),_0x4366a6['on']('execute',()=>{this['editor']['execute'](_0x461be6['commandName']),this['editor']['editing']['view']['focus']();}),_0x43a66a['children']['add'](_0x4366a6),_0x2e7aca['items']['add'](_0x43a66a);}return _0x11cdca['bind']('isEnabled')['to'](_0x315c24,'isEnabled'),_0x11cdca['panelView']['children']['add'](_0x2e7aca),_0x11cdca;}['_initializeController'](_0x2f1f35){const _0x36a435=this['editor'],_0x101beb=_0x36a435['config'],_0xf34e5=_0x36a435['plugins']['get']('Annotations'),_0x5d8d95=_0x36a435['plugins']['get']('CommentsRepository'),_0x321b4d=_0x36a435['plugins']['get']('EditorAnnotations'),_0x42377d=_0x36a435['plugins']['get'](_0x4d34f8)['me'],_0x1126ac=_0x101beb['get']('trackChanges')['SuggestionThreadView'],_0x57ff2b=_0x101beb['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xd5541c,CommentThreadInputView:_0x468abf}=_0x36a435['plugins']['get']('CommentsUI');let _0x9940d8,_0x1e847e,_0x47c38b;this['_annotationViews']['has'](_0x2f1f35['id'])?(_0x1e847e=this['_annotationViews']['get'](_0x2f1f35['id']),_0x9940d8=_0x1e847e['mainView']):(_0x9940d8=new _0x1126ac(_0x36a435['locale'],_0x2f1f35,_0x42377d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x101beb['get']('comments.editorConfig'),'licenseKey':_0x101beb['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x101beb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x101beb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x101beb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x16bd3c(_0x101beb['get']('locale'),_0x36a435['locale']),'CommentView':_0x101beb['get']('comments')['CommentView'],'CommentsListView':_0xd5541c,'CommentThreadInputView':_0x468abf,'SuggestionView':_0x57ff2b}),_0x9940d8['suggestionView']['acceptButton']['on']('execute',()=>{_0x36a435['editing']['view']['focus']();}),_0x9940d8['suggestionView']['discardButton']['on']('execute',()=>{_0x36a435['editing']['view']['focus']();}),_0x1e847e=_0xf34e5['createAnnotationView'](this['editor']['locale'],_0x9940d8),_0x1e847e['bind']('isDirty')['to'](_0x9940d8,'isDirty'),_0x1e847e['bind']('length')['to'](_0x9940d8),_0x1e847e['bind']('type')['to'](_0x9940d8,'type',_0x4b21f2=>'suggestion-'+_0x4b21f2),_0x9940d8['on']('escape',()=>{_0x47c38b['fire']('escape');}),this['_annotationViews']['set'](_0x2f1f35['id'],_0x1e847e));const _0x4dd1f2=_0x5d8d95['createCommentThreadController'](_0x2f1f35['commentThread'],_0x9940d8),_0x204401=new pe(_0x36a435,_0x2f1f35,_0x9940d8,_0x4dd1f2),_0x5a0894=_0x2f1f35['getAllAdjacentSuggestions']()['filter'](_0x28dbe7=>_0x28dbe7['isInContent']);_0x9940d8['descriptionParts']=_0x36a435['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5a0894),this['_suggestionToController']['set'](_0x2f1f35,_0x204401),this['_viewToController']['set'](_0x9940d8,_0x204401);const _0x2b6ed6=()=>{const _0x21bbf5=[],_0x15f677=_0x2f1f35['getAllAdjacentSuggestions']()['filter'](_0x2d5305=>_0x2d5305['isInContent']);for(const _0x187aeb of _0x15f677)_0x21bbf5['push'](..._0x187aeb['getMarkers']());return _0x19d68a(_0x36a435['editing'],_0x21bbf5);};_0x47c38b=_0xf34e5['createAnnotation']({'view':_0x1e847e,'target':_0x2b6ed6,'type':()=>'suggestion-'+_0x204401['view']['type'],'isVisible':!!_0x2b6ed6()}),_0x5d8d95['_bindAnnotationToEditors'](_0x9940d8,_0x47c38b),_0xf34e5['add'](_0x47c38b),_0x321b4d['registerAnnotation'](_0x47c38b);}['_destroyController'](_0x94141f){const _0x5dc109=this['editor']['plugins']['get']('CommentsRepository'),_0x1a97cb=this['editor']['plugins']['get']('Annotations'),_0x525d25=this['_suggestionToController']['get'](_0x94141f),_0x289979=_0x525d25['view'],_0x38fa53=_0x1a97cb['getByInnerView'](_0x289979);_0x5dc109['_unbindEditors'](_0x289979),_0x38fa53&&_0x1a97cb['remove'](_0x38fa53),this['_suggestionToController']['delete'](_0x94141f),this['_viewToController']['delete'](_0x289979),_0x525d25['destroy']();}['_updateController'](_0x36ea80){if(!_0x36ea80['isInContent']||!this['_suggestionToController']['has'](_0x36ea80))return;const _0x2dc975=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f6ca8=this['_suggestionToController']['get'](_0x36ea80),_0x360ae9=_0x36ea80['getAllAdjacentSuggestions']();_0x2f6ca8['view']['descriptionParts']=_0x2dc975['descriptionFactory']['getDescriptions'](_0x360ae9);}['destroy'](){for(const _0x5a7f4c of this['_suggestionToController']['keys']())this['_destroyController'](_0x5a7f4c);for(const _0x600cea of this['_annotationViews']['values']())_0x600cea['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x40a5ac){return'model'in _0x40a5ac;}class Ne extends _0x53f614{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x39ce97){this['editor']['plugins']['get'](d)['adapter']=_0x39ce97;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x13fac4){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x13fac4);}['getSuggestions']({skipNotAttached:_0x49b9ee=!0x1,toJSON:_0x13b554=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x49b9ee,'toJSON':_0x13b554});}['getSuggestion'](_0x13a2e0){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x13a2e0);}}const p=['Pagination'];class re extends _0x53f614{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x30a38d=this['editor'];if(_0x30a38d['config']['define']('trackChangesData.editorCreator',_0x42cbff=>{const _0x1a1418=_0x30a38d['model']['document']['getRootNames']()['reduce']((_0x105ce7,_0x45efaf)=>(_0x105ce7[_0x45efaf]='',_0x105ce7),{});return _0x30a38d['constructor']['create'](_0x1a1418,_0x42cbff);}),'function'!=typeof _0x30a38d['config']['get']('trackChangesData')['editorCreator'])throw new _0x2c3652('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x502fb7){return P(this['editor'],!0x0,_0x502fb7);}['getDataWithDiscardedSuggestions'](_0x5a85de){return P(this['editor'],!0x1,_0x5a85de);}}class Fe extends _0x53f614{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b8fed){function _0x24d354(_0x5d8f79){return _0x5d8f79['map'](_0x5018fa=>String['fromCharCode'](_0x5018fa))['join']('');}super(_0x1b8fed),this['result']='end',_0x1b8fed[_0x24d354([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24d354([0x76,0x69,0x65,0x77])][_0x24d354([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24d354([0x61,0x75,0x74,0x6f]),_0x1b8fed[_0x24d354([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x24d354([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24d354([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x24d354([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x24d354([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 De(_0x4d7aa6){return void 0x0!==_0x4d7aa6['getRootsAttributes'];}async function P(_0x1d58f6,_0x2fb89f,_0x4f9aca){const _0x51507a=_0x4de210(_0x1d58f6,p);_0x51507a['plugins']['push'](d,Fe),_0x51507a['rootsAttributes']=De(_0x1d58f6)?_0x1d58f6['getRootsAttributes']():void 0x0;const _0x770607=document['createDocumentFragment'](),_0x184dc0=_0x1d58f6['config']['get']('trackChangesData')['editorCreator'],_0x6ab76a=await _0x184dc0(_0x51507a,()=>function(_0x309c63){const _0x5322e2=document['createElement']('div');return _0x309c63['appendChild'](_0x5322e2),_0x5322e2;}(_0x770607));!function(_0x198d87,_0x264b51){const _0x51857f=_0x198d87['model']['document']['getRootNames']()['reduce']((_0x3eb0bd,_0x2d6700)=>(_0x3eb0bd[_0x2d6700]=_0x198d87['data']['get']({'rootName':_0x2d6700}),_0x3eb0bd),{}),_0xf64d2c=_0x198d87['plugins']['get']('Users')['users']['map'](_0x305991=>({'id':_0x305991['id'],'name':_0x305991['name']})),_0xd23f3b=_0x198d87['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3db7c9=_0x198d87['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x44398a=_0x264b51['plugins']['get']('Users'),_0x23e30a=_0x264b51['plugins']['get']('TrackChangesEditing'),_0x618387=_0x264b51['plugins']['get']('CommentsRepository');for(const _0x3d00d9 of _0x618387['getCommentThreads']())_0x3d00d9['remove']();for(const _0x3a2067 of _0xf64d2c)_0x44398a['getUser'](_0x3a2067['id'])||_0x44398a['addUser'](_0x3a2067);_0x44398a['me']||_0x44398a['useAnonymousUser']();for(const _0x2e6b5c of _0x3db7c9)_0x618387['addCommentThread'](_0x2e6b5c);for(const _0x110ac0 of _0xd23f3b)_0x23e30a['addSuggestionData'](_0x110ac0);_0x264b51['data']['set'](_0x51857f);}(_0x1d58f6,_0x6ab76a),_0x6ab76a['execute'](_0x2fb89f?'acceptAllSuggestions':'discardAllSuggestions');const _0x335fc9=De(_0x6ab76a)?_0x6ab76a['getFullData'](_0x4f9aca):_0x6ab76a['data']['get'](_0x4f9aca);return await _0x6ab76a['destroy'](),_0x335fc9;}class Me extends _0x5e9309{['options'];constructor(_0x2d9bd2,_0x1662dc){super(_0x2d9bd2),this['options']=_0x1662dc,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'](_0x3171eb,_0x2fc883){if(!this['element'])return;const _0x4f7978=[];for(const [_0x9612d2,_0x8c74d8]of _0x3171eb){const _0x4710fe=document['createElement']('div');_0x4710fe['setAttribute']('data-ck-root-name',_0x9612d2),_0x4710fe['className']=_0x8c74d8['classes']+'\x20ck-track-changes-preview__root-container',_0x4710fe['innerHTML']=_0x8c74d8['content'],_0x4f7978['push'](_0x4710fe);}_0x2fc883(this['element'],_0x4f7978),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x525f6e{constructor(_0x26d842){super(_0x26d842),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x54e576=this['editor'],_0x5541c0=_0x54e576['locale'],_0x4b6d6c=_0x54e576['plugins']['get']('Dialog');let _0x31e9e1;const _0x280d34=function(_0x525468){const _0x1922ee={};if('editables'in _0x525468['ui']['view']){for(const [_0x33b92b,_0x389bb3]of Object['entries'](_0x525468['ui']['view']['editables']))_0x1922ee[_0x33b92b]=_0x389bb3['element'];}else _0x1922ee[_0x525468['model']['document']['getRootNames']()[0x0]]=_0x525468['ui']['view']['editable']['element'];return _0x1922ee;}(_0x54e576),_0x37235f=function(_0xfbdf3e){let _0x3c5190=0x0;for(const _0x3e19e4 of Object['values'](_0xfbdf3e))_0x3c5190=Math['max'](_0x3c5190,_0x3e19e4['getBoundingClientRect']()['width']);let _0x1f4cb3=0x0;for(const _0x696cf1 of Object['values'](_0xfbdf3e))_0x1f4cb3+=_0x696cf1['getBoundingClientRect']()['height'];const _0x5c437f=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x50d5e2=Math['min'](_0x1f4cb3,_0x5c437f);return{'width':_0x3c5190,'height':_0x50d5e2};}(_0x280d34);_0x4b6d6c['show']({'id':'finalContentPreview','title':o(_0x5541c0,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5541c0,{'dialogRects':_0x37235f}),'onHide':()=>{_0x31e9e1['detachFromDom']();},'onShow':()=>{_0x54e576['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xe0a3dd=>{const _0x14a8f7=this['_standarizeRootsData'](_0xe0a3dd,_0x54e576,_0x280d34);_0x4b6d6c['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x14a8f7,_0x54e576['config']['get']('trackChanges.preview.renderFunction'));}),_0x31e9e1=new _0x4909b8(_0x5541c0,[_0x4b6d6c['view']]),_0x31e9e1['attachToDom'](),_0x31e9e1['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x54e576['once']('destroy',()=>{_0x31e9e1['detachFromDom']();});const _0x229ea6=_0x4b6d6c['view']['headerView']['class'];_0x4b6d6c['view']['headerView']['class']=_0x229ea6?_0x229ea6+'\x20ck-reset_all':'ck-reset_all',_0x4b6d6c['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4b6d6c['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x187d68=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x21b29f=_0x187d68['previewMode'],_0x474293={};if('$labels'===_0x21b29f){for(const _0x45cdae of _0x187d68['getMergeFieldsIds']())_0x474293[_0x45cdae]=_0x187d68['getLabel'](_0x45cdae)||_0x45cdae;}else{const _0x4a5d15='$defaultValues'===_0x21b29f?_0x187d68['getDefaultValues']():_0x187d68['getDataSetValues'](_0x21b29f,!0x0);for(const _0x564e48 of Object['entries'](_0x4a5d15)){const [_0x383416,_0x1c430e]=_0x564e48;_0x474293[_0x383416]=null!==_0x1c430e?_0x1c430e:_0x187d68['getLabel'](_0x383416)||_0x383416;}}return{'mergeFieldsData':_0x474293};}['_standarizeRootsData'](_0x1f9282,_0x4755dd,_0x1eeb32){let _0x52c5e7;if('string'==typeof _0x1f9282){const _0x4bf433=_0x4755dd['model']['document']['getRootNames']()[0x0];_0x52c5e7={[_0x4bf433]:_0x1f9282};}else _0x52c5e7=_0x1f9282;const _0x468ad3=this['_fixMediaEmbeds'](_0x52c5e7,_0x4755dd),_0xdebdf9=function(_0xa2a40f,_0xa82e76){for(const [_0x49274e,_0x239c62]of _0xa2a40f)_0x239c62['classes']=_0xa82e76[_0x49274e]['classList']['value']['replace']('ck-focused','');return _0xa2a40f;}(this['_sortRoots'](_0x4755dd)['reduce']((_0x17ebf6,_0x31bf74)=>(_0x17ebf6['push']([_0x31bf74,{'content':_0x468ad3[_0x31bf74],'classes':''}]),_0x17ebf6),[]),_0x1eeb32);return _0xdebdf9;}['_fixMediaEmbeds'](_0x18169f,_0x5c9b87){if(!_0x5c9b87['plugins']['has']('MediaEmbedEditing'))return _0x18169f;const _0x5ed1ad=_0x5c9b87['plugins']['get']('MediaEmbedEditing');for(const [_0x1f11ff,_0x4c97b5]of Object['entries'](_0x18169f)){const _0x15e6e9=document['createElement']('div');_0x15e6e9['innerHTML']=_0x4c97b5,(_0x15e6e9['querySelectorAll']('figure.media')['forEach'](_0x4532d2=>{const _0x3088b8=_0x4532d2['querySelector']('oembed');if(_0x3088b8){const _0x39c5c8=_0x3088b8['getAttribute']('url');if(_0x39c5c8){const _0x888ccd=_0x5ed1ad['registry']['getMediaViewElement'](new _0x2f13cd(_0x5c9b87['editing']['view']['document']),_0x39c5c8,{'elementName':'','renderForEditingView':!0x0}),_0x47a9c0=document['createElement']('div');_0x47a9c0['classList']['add']('ck-media__wrapper'),_0x888ccd['render'](_0x47a9c0,_0x5c9b87['editing']['view']['domConverter']),_0x3088b8['replaceWith'](_0x47a9c0);}}}),_0x18169f[_0x1f11ff]=_0x15e6e9['innerHTML']);}return _0x18169f;}['_sortRoots'](_0x1ce78c){if(!function(_0xbd483c){return void 0x0!==_0xbd483c['getRootsAttributes'];}(_0x1ce78c))return _0x1ce78c['model']['document']['getRootNames']();const _0x1db767=[],_0x1755e5=new Map();for(const _0x220549 of _0x1ce78c['model']['document']['getRootNames']()){const _0x528ab7=_0x1ce78c['editing']['view']['getDomRoot'](_0x220549)['getClientRects']()['item'](0x0);_0x1db767['push'](_0x220549),_0x1755e5['set'](_0x220549,_0x528ab7);}return _0x1db767['sort']((_0x562673,_0x137925)=>{const _0x3bf2aa=_0x1755e5['get'](_0x562673),_0x2f75b7=_0x1755e5['get'](_0x137925);return _0x3bf2aa['y']-_0x2f75b7['y']||_0x3bf2aa['x']-_0x2f75b7['x'];}),_0x1db767;}}class Ue extends _0x53f614{static get['requires'](){return[re,_0x4dc2e2];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7403c9){super(_0x7403c9),_0x7403c9['commands']['add']('previewFinalContent',new te(this['editor'])),_0x7403c9['config']['define']('trackChanges.preview.renderFunction',(_0x4e1aef,_0x4ebcb6)=>{for(const _0x47e8cf of _0x4ebcb6)_0x4e1aef['appendChild'](_0x47e8cf);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x172e70,Plugin as _0x2e8ec7,PendingActions as _0x4f0225}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x69a1a8,ObservableMixin as _0x415f8e,uid as _0x367f2e,priorities as _0x15ca84,insertToPriorityArray as _0x5b0d44,logWarning as _0xc84ee6,getEnvKeystrokeText as _0x11ecdd,FocusTracker as _0x2df900,KeystrokeHandler as _0x154f7e,Collection as _0x5d7174}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x361933,IconCancel as _0xd627c5,IconTrackChanges as _0x2a95b3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3a4426,View as _0x26eb50,ViewCollection as _0x5cb37c,FocusCycler as _0x181476,UIModel as _0x41c3ed,createDropdown as _0x58c904,SplitButtonView as _0x78ba63,addListToDropdown as _0x49bcc1,MenuBarMenuView as _0x1e17a9,MenuBarMenuListView as _0x3c4cb6,ListSeparatorView as _0xa1db36,MenuBarMenuListItemView as _0x1ea383,MenuBarMenuListItemButtonView as _0x175cb2,BodyCollection as _0x3bd803,Dialog as _0x5b99f4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x9f1e39,DocumentCompare as _0x287d9f,hashObject as _0x3e6d3d,surroundingMarkersDetector as _0x202c5c,FOCUS_ANNOTATION_KEYSTROKE as _0x3d9514,AriaDescriptionView as _0x228b82,setupThreadKeyboardNavigation as _0x3a7830,trimHtml as _0x1e8c88,UserView as _0x126f1a,LateFocusButtonView as _0x51c3ab,getDateTimeFormatter as _0x5ec19a,getAllMarkersDomElementsSorted as _0x4c79a3,sanitizeEditorConfig as _0x2ccf16}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x3078e5,ModelLiveRange as _0x95b134,ModelLivePosition as _0x436e23,ViewDowncastWriter as _0x3975fc}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0xc85fec,set as _0x414125,isEqual as _0x4f47b1,unset as _0x42b22f,omit as Pt}from'es-toolkit/compat';import{Delete as _0x1a602b,Input as _0x25940f}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2e9ff3}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2d2859}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x172e70{['_enabledCommands'];constructor(_0x146d3a,_0x39719d){super(_0x146d3a),this['_enabledCommands']=_0x39719d,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 _0x1c976e of this['editor']['commands']['commands']())_0x1c976e['affectsData']&&!this['_enabledCommands']['has'](_0x1c976e)&&_0x1c976e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x19c3f7 of this['editor']['commands']['commands']())_0x19c3f7['affectsData']&&!this['_enabledCommands']['has'](_0x19c3f7)&&_0x19c3f7['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x172e70{['_suggestions'];constructor(_0x186025,_0x337f68){super(_0x186025),this['_suggestions']=_0x337f68,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x210a92){const _0x45e840=this['_suggestions']['get'](_0x210a92);if(!_0x45e840)throw new _0x69a1a8('track-changes-accept-suggestion-not-found',this);const _0x2d7b21=_0x45e840['getRanges']();this['editor']['model']['canEditAt'](_0x2d7b21)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x45e840);}}class D extends _0x172e70{['_suggestions'];constructor(_0x387dad,_0xc6ee60){super(_0x387dad),this['_suggestions']=_0xc6ee60,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x495ab1){const _0x4243e5=this['_suggestions']['get'](_0x495ab1);if(!_0x4243e5)throw new _0x69a1a8('track-changes-discard-suggestion-not-found',this);const _0x3a04e3=_0x4243e5['getRanges']();this['editor']['model']['canEditAt'](_0x3a04e3)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4243e5);}}function ls(_0x430fda,_0x1b3792){let _0x1dbede='';return _0x1dbede+=_0x430fda['split']('*')['map']((_0x1e44a3,_0x310db9)=>_0x310db9%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x1e44a3)+'</span>':rn(_0x1e44a3))['join'](''),_0x1b3792&&(_0x1dbede+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1b3792['value']+'\x22\x20title=\x22'+_0x1b3792['title']+'\x22></span>'),_0x1dbede;}function rn(_0x1893ff){const _0xed6e0=document['createElement']('span');return _0xed6e0['innerText']=_0x1893ff,_0xed6e0['innerHTML'];}function ts(_0x17e3c8){return _0x17e3c8['sort']((_0x1ad973,_0x234126)=>'attribute'===_0x1ad973['type']&&'attribute'!==_0x234126['type']?-0x1:'attribute'!==_0x1ad973['type']&&'attribute'===_0x234126['type']?0x1:'deletion'==_0x1ad973['type']&&'deletion'!=_0x234126['type']?-0x1:'deletion'!=_0x1ad973['type']&&'deletion'==_0x234126['type']?0x1:0x0);}function to(_0x38b424,_0x5c95cc){let _0x214ca8,_0xa0c7be=0x0;const _0xa1d7b8=[],_0x5a2980=_0x5c95cc['schema'];for(;_0xa0c7be<_0x38b424['length'];){const _0x35fb43=_0x38b424[_0xa0c7be],_0x2f67c3=_0x38b424[_0xa0c7be+0x1];_0x214ca8||(_0x214ca8=_0x5c95cc['createPositionBefore'](_0x35fb43)),cn(_0x5c95cc,_0x35fb43,_0x2f67c3)||(_0xa1d7b8['push'](_0x5c95cc['createRange'](_0x214ca8,_0x5a2980['isObject'](_0x35fb43)?_0x5c95cc['createPositionAfter'](_0x35fb43):_0x5c95cc['createPositionAt'](_0x35fb43,'end'))),_0x214ca8=null),_0xa0c7be++;}return _0xa1d7b8;}function cn(_0x1bbaa2,_0x220434,_0x12044a){if(!_0x12044a)return!0x1;const _0x4679e9=_0x1bbaa2['createPositionAfter'](_0x220434),_0x1b5df2=_0x1bbaa2['createPositionBefore'](_0x12044a);return _0x4679e9['isTouching'](_0x1b5df2);}function rs(_0x2175d6,_0xc6750f,_0xc5cde4){for(;_0xc5cde4['length'];){const _0x14ef2e=_0xc5cde4['splice'](0x0,0x64);_0x2175d6['change'](()=>{for(const _0x6fb14b of _0x14ef2e)_0x6fb14b['isInContent']&&_0xc6750f['execute'](_0x6fb14b['id']);});}}class B extends _0x172e70{['_command'];['_suggestions'];constructor(_0x158b88,_0x46b928,_0x356293){super(_0x158b88),this['_command']=_0x46b928,this['_suggestions']=_0x356293,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x56af4b=Array['from'](this['_suggestions']['values']())['some'](_0x4d1bd9=>_0x4d1bd9['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x56af4b;}['execute'](){const _0xe12a0c=ts(Array['from'](this['_suggestions']['values']()));for(const _0x383326 of _0xe12a0c){const _0xdb6031=_0x383326['getRanges']();if(!this['editor']['model']['canEditAt'](_0xdb6031))return;}rs(this['editor']['model'],this['_command'],_0xe12a0c);}}class O extends _0x172e70{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x481d41,_0x1dff79,_0x552fc4){super(_0x481d41),this['_command']=_0x1dff79,this['_suggestions']=_0x552fc4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x52f214=this['editor']['model']['document']['selection'],_0x2bd112=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x789435,_0x29b822){const _0x733ebb=Array['from'](_0x789435['getRanges']()),_0x58fc1b=new Set();for(const _0x5cfc21 of _0x29b822)if(_0x5cfc21['isInContent']){for(const _0x443112 of _0x733ebb)for(const _0x1ac797 of _0x5cfc21['getRanges']())(_0x443112['isIntersecting'](_0x1ac797)||_0x789435['isCollapsed']&&!_0x5cfc21['isMultiRange']&&_0x5cfc21['next']&&_0x1ac797['end']['isTouching'](_0x443112['start']))&&_0x58fc1b['add'](_0x5cfc21);}return _0x58fc1b;}(_0x52f214,_0x2bd112),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xc5efa5=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1aa6e2 of _0xc5efa5){const _0x2e6b37=_0x1aa6e2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2e6b37))return;}rs(this['editor']['model'],this['_command'],_0xc5efa5);}}class x extends/* #__PURE__ -- @preserve */
24
+ _0x415f8e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3cf003,_0x1c3bf2){super(),this['id']=_0x1c3bf2['id'],this['type']=_0x1c3bf2['type'],this['subType']=_0x1c3bf2['subType']||null,this['author']=_0x1c3bf2['author'],this['creator']=_0x1c3bf2['creator']||_0x1c3bf2['author'],this['isExternal']=Boolean(_0x1c3bf2['attributes']&&_0x1c3bf2['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1c3bf2['originalSuggestionId']||null,this['_model']=_0x3cf003,this['_onAccept']=_0x1c3bf2['onAccept'],this['_onDiscard']=_0x1c3bf2['onDiscard'],this['_onAttributesChange']=_0x1c3bf2['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1c3bf2['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 _0x3c2cbf=this;for(;_0x3c2cbf['previous'];)_0x3c2cbf=_0x3c2cbf['previous'];return _0x3c2cbf;}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'](_0x5f26ca){this['_markerNames']['add'](_0x5f26ca);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x310e95=>this['_model']['markers']['get'](_0x310e95))['filter'](_0x1f28a8=>_0x1f28a8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x562795=>{for(const _0x45df1d of this['getMarkers']())_0x562795['removeMarker'](_0x45df1d);}),this['_markerNames']['clear']();}['removeMarker'](_0x1d23f2){this['_model']['change'](_0x53b840=>{_0x53b840['removeMarker'](_0x1d23f2);}),this['_markerNames']['delete'](_0x1d23f2);}['addRange'](_0x2aafd9){const _0x334b71='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x334b71),this['_model']['change'](_0x59a568=>{_0x59a568['addMarker'](_0x334b71,{'range':_0x2aafd9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x288cac){for(const _0x3a4772 of this['getRanges']())if(_0x3a4772['isIntersecting'](_0x288cac))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x228aa3=>_0x228aa3['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x115ef5,_0x2de39b)=>[..._0x115ef5,..._0x2de39b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3b4fb7=this['getRanges']();if(0x1!=_0x3b4fb7['length'])return null;const _0x2d9ee0=_0x3b4fb7[0x0],_0x4cf5f9=_0x2d9ee0['start']['nodeAfter'],_0x4e2104=_0x2d9ee0['end']['nodeBefore'];return _0x4cf5f9 instanceof _0x3078e5?_0x4cf5f9!=_0x4e2104?null:_0x4cf5f9: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 _0x4e8fb1=[];let _0x1c2c9e=this['head'];for(;_0x1c2c9e;)_0x4e8fb1['push'](_0x1c2c9e),_0x1c2c9e=_0x1c2c9e['next'];return _0x4e8fb1;}['setAttribute'](_0x1133c0,_0x3f7a4e){const _0x380957=_0xc85fec(this['attributes']);_0x414125(_0x380957,_0x1133c0,_0x3f7a4e),_0x4f47b1(_0x380957,this['attributes'])||(this['attributes']=_0x380957,this['_onAttributesChange'](_0x380957));}['removeAttribute'](_0x556c34){const _0x39c68e=_0xc85fec(this['attributes']);_0x42b22f(_0x39c68e,_0x556c34),_0x4f47b1(_0x39c68e,this['attributes'])||(this['attributes']=_0x39c68e,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 _0x367f2e()['substr'](0x1,0x5);}}function o(_0x579f9d,_0x44a13d,_0x4c7eaf){const _0x4531d2=_0x579f9d['t'],t=_0x579f9d['t'];switch(_0x44a13d){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',_0x4c7eaf);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4c7eaf);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4c7eaf);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4c7eaf);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4c7eaf);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',_0x4c7eaf);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4c7eaf);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',_0x4c7eaf);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4c7eaf);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4c7eaf);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4c7eaf);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4c7eaf);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4c7eaf);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4c7eaf);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4c7eaf);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4c7eaf);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4c7eaf);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4c7eaf);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4c7eaf);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4c7eaf);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4c7eaf);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4c7eaf);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4c7eaf);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4c7eaf);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4c7eaf);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'},_0x4c7eaf);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4c7eaf);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4c7eaf);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4c7eaf);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4c7eaf);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4c7eaf);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4c7eaf);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4c7eaf);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'},_0x4c7eaf);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4c7eaf);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4c7eaf);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4c7eaf);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4c7eaf);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'},_0x4c7eaf);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4c7eaf);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'},_0x4c7eaf);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x4c7eaf);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4c7eaf);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'},_0x4c7eaf);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4c7eaf);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'},_0x4c7eaf);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4c7eaf);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x4c7eaf);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x4c7eaf);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x4c7eaf);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4c7eaf);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'},_0x4c7eaf);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4c7eaf);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 _0x4531d2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4c7eaf);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4531d2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4c7eaf);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4c7eaf);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'},_0x4c7eaf);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'},_0x4c7eaf);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'},_0x4c7eaf);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x44a13d;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xf387bf,_0x2fec10){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xf387bf,this['_locale']=_0x2fec10;}['getDescriptions'](_0x58d393){const _0x35e836=[],_0x44b22f=new Set(),_0x33b939=new Set();for(let _0x4e59db=0x0;_0x4e59db<_0x58d393['length'];_0x4e59db++){const _0xe828bf=_0x58d393[_0x4e59db];if(!_0xe828bf['isInContent'])continue;const _0x1a78b1=this['_handleCustomCallbackDescription'](_0xe828bf);if(_0x1a78b1){if(null!=_0xe828bf['subType']){if(_0x44b22f['has'](_0xe828bf['subType']))continue;_0x44b22f['add'](_0xe828bf['subType']);}_0x35e836['push'](_0x1a78b1);}else{if('attribute'==_0xe828bf['type']){const _0x3a1446=_0xe828bf['data']['key'];if(_0x33b939['has'](_0x3a1446))continue;_0x33b939['add'](_0xe828bf['data']['key']),_0x3a1446==m?this['_handleRenameSuggestionDescription'](_0x35e836,_0xe828bf):this['_handleAttributeSuggestionDescription'](_0x35e836,_0xe828bf);continue;}'insertion'!=_0xe828bf['type']&&'deletion'!=_0xe828bf['type']||this['_handleInsertRemoveSuggestionDescription'](_0x35e836,_0xe828bf,_0x58d393[_0x4e59db+0x1]);}}return this['_resolveDescriptionItems'](_0x35e836);}['registerDescriptionCallback'](_0x22d5d1){this['_customCallbacks']['push'](_0x22d5d1);}['registerElementLabel'](_0x44cf2e,_0x2b7c86,_0x595483=_0x15ca84['normal']){'function'==typeof _0x44cf2e?_0x5b0d44(this['_itemLabelsCallbacks'],{'matchingCallback':_0x44cf2e,'label':_0x2b7c86,'priority':_0x595483}):this['_itemLabels']['set'](_0x44cf2e,_0x2b7c86);}['registerAttributeLabel'](_0x1e269a,_0x4cc6d6){this['_attributeLabels']['set'](_0x1e269a,_0x4cc6d6);}['getItemLabel'](_0x2ae29d,_0x1fc83f=0x1){let _0x295bfb;for(const _0x52b252 of this['_itemLabelsCallbacks'])if(_0x52b252['matchingCallback'](_0x2ae29d)){_0x295bfb=_0x52b252['label'];break;}return _0x295bfb||(_0x295bfb=this['_itemLabels']['get'](_0x2ae29d['name'])),_0x295bfb?_0x295bfb(_0x1fc83f):0x1!==_0x1fc83f?_0x1fc83f+'\x20'+_0x2ae29d['name']+'s':''+_0x2ae29d['name'];}['_addDescriptionItems'](_0x400a46,_0x20c27c){const _0x315f5f=_0x20c27c['getFirstRange']()['getWalker'](),_0x3036c5='insertion'==_0x20c27c['type']?'add':'remove';for(const _0x587221 of _0x315f5f){const _0x569ca7=_0x587221['item'],_0x1fa1e7=_0x400a46[_0x400a46['length']-0x1];if(_0x569ca7['is']('$textProxy'))_0x1fa1e7&&_0x1fa1e7['type']['indexOf']('Container')>-0x1&&_0x400a46['pop'](),_0x1fa1e7&&'text'==_0x1fa1e7['type']?_0x1fa1e7[_0x3036c5]+=_0x569ca7['data']:_0x400a46['push']({'type':'text','add':'add'==_0x3036c5?_0x569ca7['data']:'','remove':'remove'==_0x3036c5?_0x569ca7['data']:''});else{if(this['_schema']['isObject'](_0x569ca7)){const _0x2d0190=_0x569ca7;if(_0x1fa1e7&&_0x1fa1e7['type']['indexOf']('Container')>-0x1&&_0x400a46['pop'](),'elementEnd'==_0x587221['type'])continue;_0x1fa1e7&&_0x1fa1e7['type']==_0x3036c5+'Object'&&_0x1fa1e7['element']['name']==_0x2d0190['name']?_0x1fa1e7['quantity']++:_0x400a46['push']({'type':_0x3036c5+'Object','element':_0x2d0190,'quantity':0x1}),_0x315f5f['skip'](_0x537ff0=>!('elementEnd'==_0x537ff0['type']&&_0x537ff0['item']==_0x569ca7));}else{if(this['_schema']['checkChild'](_0x569ca7,'$text')||_0x569ca7['is']('element','softBreak')){const _0x314249=_0x569ca7;if('add'==_0x3036c5&&'elementStart'==_0x587221['type']||'remove'==_0x3036c5&&'elementEnd'==_0x587221['type'])continue;if(_0x1fa1e7&&-0x1==_0x1fa1e7['type']['indexOf']('Container')){'text'==_0x1fa1e7['type']&&(_0x1fa1e7[_0x3036c5]+='\x0a');continue;}let _0x192412;if(_0x192412='add'==_0x3036c5?_0x314249['nextSibling']&&!this['_schema']['isObject'](_0x314249['nextSibling'])?_0x314249['nextSibling']:null:_0x314249['previousSibling']&&!this['_schema']['isObject'](_0x314249['previousSibling'])?_0x314249['previousSibling']:null,_0x314249['isEmpty']||_0x192412&&_0x192412['isEmpty']){const _0x2e4d43=_0x192412&&_0x192412['isEmpty']?_0x192412:_0x314249;_0x1fa1e7&&_0x1fa1e7['type']==_0x3036c5+'EmptyContainer'&&_0x1fa1e7['element']['name']==_0x2e4d43['name']?_0x1fa1e7['quantity']++:_0x400a46['push']({'type':_0x3036c5+'EmptyContainer','element':_0x2e4d43,'quantity':0x1});}else _0x400a46['push']({'type':_0x3036c5+'Container','element':_0x314249});}}}}}['_resolveDescriptionItems'](_0x410818){const _0x314fd9=this['_locale'],_0x4b7491=[],_0x39043b=[],_0x3b3813=[];for(const _0x5bfcff of _0x410818)switch(_0x5bfcff['type']){case'text':if(_0x5bfcff['add']=_0x5bfcff['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5bfcff['remove']=_0x5bfcff['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5bfcff['add']&&''!=_0x5bfcff['remove']){_0x4b7491['push']({'type':'replace','content':o(_0x314fd9,'REPLACE_TEXT',['\x22'+_0x5bfcff['remove']+'\x22','\x22'+_0x5bfcff['add']+'\x22'])});continue;}if(null!=_0x5bfcff['add']['match'](/^ +$/)){_0x4b7491['push']({'type':'insertion','content':o(_0x314fd9,'*Insert:*\x20%0',o(_0x314fd9,'ELEMENT_SPACE',_0x5bfcff['add']['length']))});continue;}if(null!=_0x5bfcff['remove']['match'](/^ +$/)){_0x4b7491['push']({'type':'deletion','content':o(_0x314fd9,'*Remove:*\x20%0',o(_0x314fd9,'ELEMENT_SPACE',_0x5bfcff['remove']['length']))});continue;}if(''!=_0x5bfcff['add']){_0x4b7491['push']({'type':'insertion','content':o(_0x314fd9,'*Insert:*\x20%0','\x22'+_0x5bfcff['add']+'\x22')});continue;}_0x4b7491['push']({'type':'deletion','content':o(_0x314fd9,'*Remove:*\x20%0','\x22'+_0x5bfcff['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4b7491['push']({'type':'insertion','content':o(_0x314fd9,'*Insert:*\x20%0',this['getItemLabel'](_0x5bfcff['element'],_0x5bfcff['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4b7491['push']({'type':'deletion','content':o(_0x314fd9,'*Remove:*\x20%0',this['getItemLabel'](_0x5bfcff['element'],_0x5bfcff['quantity']))});continue;case'addContainer':_0x4b7491['push']({'type':'insertion','content':o(_0x314fd9,'*Split:*\x20%0',this['getItemLabel'](_0x5bfcff['element'],_0x5bfcff['quantity']))});continue;case'removeContainer':_0x4b7491['push']({'type':'deletion','content':o(_0x314fd9,'*Merge:*\x20%0',this['getItemLabel'](_0x5bfcff['element'],_0x5bfcff['quantity']))});continue;case'addFormat':_0x39043b['push'](_0x5bfcff['key']);continue;case'removeFormat':_0x3b3813['push'](_0x5bfcff['key']);continue;default:_0x4b7491['push'](_0x5bfcff);}if(_0x39043b['length']){const _0x4cbbe3=_0x39043b['map'](_0x2aa4c9=>this['_attributeLabels']['has'](_0x2aa4c9)?this['_attributeLabels']['get'](_0x2aa4c9):_0x2aa4c9)['join'](',\x20');_0x4b7491['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4cbbe3)});}if(_0x3b3813['length']){const _0x2d1f98=_0x3b3813['map'](_0x44d016=>this['_attributeLabels']['has'](_0x44d016)?this['_attributeLabels']['get'](_0x44d016):_0x44d016)['join'](',\x20');_0x4b7491['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2d1f98)});}return _0x4b7491;}['_handleCustomCallbackDescription'](_0x1b216b){for(const _0x3e4b98 of this['_customCallbacks']){const _0x4639ca=_0x3e4b98(_0x1b216b);if(_0x4639ca&&'type'in _0x4639ca)return _0x4639ca;}}['_handleAttributeSuggestionDescription'](_0x5d41f2,_0x3974cf){const _0x898c2e=_0x3974cf['data'],_0xededf=void 0x0===_0x898c2e['newValue']?'removeFormat':'addFormat';_0x5d41f2['push']({'type':_0xededf,'key':_0x898c2e['key']});}['_handleRenameSuggestionDescription'](_0x40ec00,_0x304039){_0x40ec00['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x304039['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1a7b8d,_0x4c5673,_0x2f2205){if(this['_addDescriptionItems'](_0x1a7b8d,_0x4c5673),_0x2f2205&&_0x2f2205['getFirstRange']()&&!_0x4c5673['getFirstRange']()['end']['isEqual'](_0x2f2205['getFirstRange']()['start'])){const _0x12ed09=_0x1a7b8d[_0x1a7b8d['length']-0x1],_0x192583='insertion'==_0x4c5673['type']?'add':'remove';_0x12ed09&&'text'==_0x12ed09['type']&&(_0x12ed09[_0x192583]+='\x0a');}}}class R extends _0x2e8ec7{['afterInit'](){const _0x3d3bec=this['editor'],_0x2b59b9=_0x3d3bec['plugins']['get']('TrackChangesEditing');_0x3d3bec['commands']['get']('showAIAssistant')&&_0x2b59b9['enableCommand']('showAIAssistant');}}class T extends _0x2e8ec7{['afterInit'](){const _0x5d1b44=this['editor'],_0x6e43c=_0x5d1b44['plugins']['get']('TrackChangesEditing');_0x5d1b44['commands']['get']('toggleAi')&&_0x6e43c['enableCommand']('toggleAi');}}class E extends _0x2e8ec7{['afterInit'](){const _0x1fc944=this['editor'],_0x4af13f=_0x1fc944['plugins']['get']('TrackChangesEditing');_0x1fc944['commands']['get']('aiQuickAction')&&_0x4af13f['enableCommand']('aiQuickAction');}}class U extends _0x2e8ec7{['afterInit'](){const _0x9f68b9=this['editor'],_0x1bb723=_0x9f68b9['locale'];if(!_0x9f68b9['plugins']['has']('AlignmentEditing'))return;const _0x1edf62=_0x9f68b9['plugins']['get']('TrackChangesEditing');_0x1edf62['enableDefaultAttributesIntegration']('alignment'),_0x1edf62['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1bb723,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x277004=this['editor'],_0x5ade54=_0x277004['locale'];_0x277004['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49da5d=>{if('formatBlock'!=_0x49da5d['type'])return;const {data:_0x2020b9}=_0x49da5d;if(_0x2020b9&&'alignment'==_0x2020b9['commandName']){const _0x46e8e4=_0x2020b9['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5ade54,'*Format:*\x20%0',function(_0x19cabe){switch(_0x19cabe){case'left':return o(_0x5ade54,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5ade54,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5ade54,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5ade54,'FORMAT_JUSTIFY_TEXT');}}(_0x46e8e4))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x2e8ec7{['afterInit'](){const _0x2c3815=this['editor'],_0x11663b=_0x2c3815['plugins']['get']('TrackChangesEditing'),_0x3edced=_0x2c3815['locale'];for(const _0x5ce67c of ti){if(!_0x2c3815['plugins']['has'](_0x5ce67c))continue;const _0x24719d=_0x5ce67c['slice'](0x0,-0x7)['toLowerCase'](),_0x17f2b7='FORMAT_'+_0x24719d['toUpperCase']();_0x11663b['enableDefaultAttributesIntegration'](_0x24719d),_0x11663b['descriptionFactory']['registerAttributeLabel'](_0x24719d,o(_0x3edced,_0x17f2b7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b4ac3=this['editor'],_0x391fca=_0x5b4ac3['locale'],_0x4fb177=_0x5b4ac3['plugins']['get']('TrackChangesEditing');function _0x4c7f0e(_0xc93dbd,_0x27ba8f){_0x4fb177['descriptionFactory']['registerDescriptionCallback'](_0x32cfd2=>{if('formatInline'!=_0x32cfd2['type'])return;const {data:_0x26452a}=_0x32cfd2;return _0x26452a&&_0x26452a['commandName']===_0xc93dbd?_0x26452a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x391fca,'*Format:*\x20%0',_0x27ba8f)}:{'type':'format','content':o(_0x391fca,'*Remove\x20format:*\x20%0',_0x27ba8f)}:void 0x0;});}_0x4c7f0e('bold',o(_0x391fca,'FORMAT_BOLD')),_0x4c7f0e('italic',o(_0x391fca,'FORMAT_ITALIC')),_0x4c7f0e('underline',o(_0x391fca,'FORMAT_UNDERLINE')),_0x4c7f0e('code',o(_0x391fca,'FORMAT_CODE')),_0x4c7f0e('strikethrough',o(_0x391fca,'FORMAT_STRIKETHROUGH')),_0x4c7f0e('subscript',o(_0x391fca,'FORMAT_SUBSCRIPT')),_0x4c7f0e('superscript',o(_0x391fca,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2e8ec7{['afterInit'](){const _0x1efafa=this['editor'],_0x1daf95=_0x1efafa['locale'];if(!_0x1efafa['plugins']['has']('BlockQuoteEditing'))return;const _0x417a26=_0x1efafa['plugins']['get']('TrackChangesEditing'),_0x55883f=this['editor']['commands']['get']('blockQuote');_0x417a26['enableCommand']('blockQuote',(_0x439829,_0x5ed30a={})=>{const _0x316576=this['editor']['model']['document']['selection'],_0x15ab2b=_0x5ed30a&&void 0x0!==_0x5ed30a['forceValue']?_0x5ed30a['forceValue']:!_0x55883f['value'];let _0x4a5910=[];if(_0x15ab2b){const _0x1292ab=Array['from'](_0x316576['getSelectedBlocks']())['filter'](_0x4431a0=>oo(_0x4431a0)||function(_0x4e2e33,_0x12aba7){const _0x340dc2=_0x12aba7['checkChild'](_0x4e2e33['parent'],'blockQuote'),_0x430aa6=_0x12aba7['checkChild'](['$root','blockQuote'],_0x4e2e33);return _0x340dc2&&_0x430aa6;}(_0x4431a0,this['editor']['model']['schema']));_0x4a5910=to(_0x1292ab,_0x1efafa['model']);}else{const _0x35d251=Array['from'](_0x316576['getSelectedBlocks']())['filter'](_0x111fe1=>oo(_0x111fe1));_0x4a5910=to(_0x35d251,_0x1efafa['model']);}_0x1efafa['model']['change'](()=>{for(const _0x2b71e7 of _0x4a5910)_0x417a26['markBlockFormat'](_0x2b71e7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x15ab2b}]});});}),_0x417a26['descriptionFactory']['registerDescriptionCallback'](_0x58e91e=>{const {data:_0x1ddfd8}=_0x58e91e;if(_0x1ddfd8&&'blockQuote'==_0x1ddfd8['commandName']){const _0xcb3348=o(_0x1daf95,'ELEMENT_BLOCK_QUOTE');return _0x1ddfd8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1daf95,'*Set\x20format:*\x20%0',_0xcb3348)}:{'type':'format','content':o(_0x1daf95,'*Remove\x20format:*\x20%0',_0xcb3348)};}});}}function oo(_0x74184){return'blockQuote'==_0x74184['parent']['name'];}class G extends _0x2e8ec7{['afterInit'](){const _0x193f30=this['editor'],_0x38c460=_0x193f30['locale'],_0x544015=_0x193f30['plugins']['get']('TrackChangesEditing');_0x193f30['plugins']['has']('BookmarkEditing')&&(_0x544015['enableCommand']('insertBookmark'),_0x544015['enableDefaultAttributesIntegration']('updateBookmark'),_0x544015['descriptionFactory']['registerDescriptionCallback'](_0xaceaa2=>{if('insertion'!=_0xaceaa2['type']&&'deletion'!=_0xaceaa2['type']&&'attribute'!=_0xaceaa2['type'])return;const _0x452db6=_0xaceaa2['getContainedElement']();if(null==_0x452db6)return;if(!_0x452db6['is']('element','bookmark'))return;const _0x28e9cf=_0x452db6['getAttribute']('bookmarkId');if('insertion'==_0xaceaa2['type'])return{'type':'insertion','content':o(_0x38c460,'*Insert:*\x20%0','\x22'+_0x28e9cf+'\x22\x20'+o(_0x38c460,'ELEMENT_BOOKMARK'))};if('deletion'==_0xaceaa2['type'])return{'type':'deletion','content':o(_0x38c460,'*Remove:*\x20%0','\x22'+_0x28e9cf+'\x22\x20'+o(_0x38c460,'ELEMENT_BOOKMARK'))};const {data:_0xd68943}=_0xaceaa2;if(!_0xd68943||'bookmarkId'!=_0xd68943['key'])return;return{'type':'format','content':o(_0x38c460,'*Set\x20bookmark:*\x20%0','\x22'+_0xd68943['newValue']+'\x22')};}));}}class L extends _0x2e8ec7{['afterInit'](){const _0x397ea2=this['editor'];_0x397ea2['plugins']['has']('CaseChange')&&(_0x397ea2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x397ea2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x397ea2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x2e8ec7{['afterInit'](){const _0xf6407f=this['editor'];_0xf6407f['commands']['get']('ckbox')&&_0xf6407f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2e8ec7{['afterInit'](){const _0x35fa34=this['editor'];if(!_0x35fa34['plugins']['has']('CodeBlock'))return;const _0x116596=_0x35fa34['plugins']['get']('TrackChangesEditing'),_0x1dd015=_0x35fa34['locale'],_0x29f0c7=_0x35fa34['config']['get']('codeBlock')['languages'],_0x2a9db7=_0x35fa34['commands']['get']('codeBlock');_0x116596['enableCommand']('indentCodeBlock'),_0x116596['enableCommand']('outdentCodeBlock'),_0x116596['enableCommand']('codeBlock',(_0x5a222e,_0x17b529={})=>{const _0x215cd5=_0x35fa34['model'],_0x3ab267=_0x35fa34['model']['document']['selection'],_0x1b9ae7=_0x17b529&&void 0x0!==_0x17b529['forceValue']?_0x17b529['forceValue']:!_0x2a9db7['value'];let _0x420861;_0x17b529['language']||(_0x17b529['language']=_0x29f0c7[0x0]['language']),_0x420861=_0x1b9ae7?Array['from'](_0x3ab267['getSelectedBlocks']())['filter'](_0x160189=>co(_0x160189)||function(_0x13d86b,_0x2ecd9a){if(_0x13d86b['is']('rootElement')||_0x2ecd9a['isLimit'](_0x13d86b))return!0x1;return _0x2ecd9a['checkChild'](_0x13d86b['parent'],'codeBlock');}(_0x160189,_0x215cd5['schema'])):Array['from'](_0x3ab267['getSelectedBlocks']())['filter'](_0x1f21c5=>co(_0x1f21c5));const _0x13973=to(_0x420861,_0x215cd5);_0x215cd5['change'](()=>{for(const _0x5c6c7e of _0x13973)_0x116596['markBlockFormat'](_0x5c6c7e,{'commandName':'codeBlock','commandParams':[{..._0x17b529,'forceValue':_0x1b9ae7}],'formatGroupId':'blockName'});});}),(_0x116596['descriptionFactory']['registerElementLabel']('codeBlock',_0xd10f8=>o(_0x1dd015,'ELEMENT_CODE_BLOCK',_0xd10f8)),_0x116596['descriptionFactory']['registerDescriptionCallback'](_0x44cd1e=>{if('formatBlock'!=_0x44cd1e['type'])return;const _0x2a608d=_0x1dd015['t'],{data:_0x18196e}=_0x44cd1e;if(!_0x18196e||'codeBlock'!=_0x18196e['commandName'])return;const _0x9b98d2=_0x18196e['commandParams'][0x0]['language'],_0x28ba15=_0x2a608d(_0x29f0c7['find'](_0x3657d8=>_0x3657d8['language']===_0x9b98d2)['label'])['toLowerCase']();return _0x18196e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1dd015,'*Set\x20format:*\x20%0',o(_0x1dd015,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x28ba15+')')}:{'type':'format','content':o(_0x1dd015,'*Remove\x20format:*\x20%0',o(_0x1dd015,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3a1ba9){return'codeBlock'==_0x3a1ba9['name'];}class z extends _0x2e8ec7{['afterInit'](){const _0x51ba8e=this['editor'];if(!_0x51ba8e['plugins']['has']('CommentsEditing'))return;_0x51ba8e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x2e8ec7{static get['requires'](){return[_0x1a602b];}['init'](){const _0x565959=this['editor'],_0x4df21b=_0x565959['plugins']['get']('TrackChangesEditing');_0x4df21b['enableCommand']('delete');const _0x308eae=_0x565959['commands']['get']('deleteForward');_0x4df21b['enableCommand']('deleteForward',(_0x58011d,_0x2ca349={})=>{const _0x54c876=_0x565959['model']['createSelection'](_0x565959['model']['document']['selection']);_0x54c876['isCollapsed']&&_0x565959['model']['modifySelection'](_0x54c876,{'direction':'forward','unit':_0x2ca349['unit']});const _0x5ef818=_0x54c876['getFirstRange'](),_0x1c3163=_0x95b134['fromRange'](_0x5ef818);let _0x614c1;_0x58011d(_0x2ca349),_0x614c1='$graveyard'==_0x1c3163['root']['rootName']?_0x565959['model']['createRange'](_0x5ef818['start']):_0x565959['model']['createRange'](_0x1c3163['start'],_0x1c3163['end']),_0x1c3163['detach'](),_0x565959['model']['enqueueChange'](_0x308eae['buffer']['batch'],_0x289072=>{_0x308eae['buffer']['lock'](),_0x289072['setSelection'](_0x289072['createRange'](_0x614c1['end'])),_0x308eae['buffer']['unlock']();});});}}class W extends _0x2e8ec7{['afterInit'](){const _0xda8e1=this['editor'];if(!_0xda8e1['plugins']['has']('ListEditing'))return;const _0x19693d=_0xda8e1['locale'],_0x461e85=_0xda8e1['plugins']['get']('TrackChangesEditing'),_0x532a13=_0xda8e1['plugins']['has']('TodoListEditing'),_0x23825f=!!_0xda8e1['config']['get']('list.multiBlock');function _0x3a808e(_0x1eb071){return{'type':'format','content':''+o(_0x19693d,'*Set\x20format:*\x20%0',_0x1eb071)};}function _0x1b9351(_0x1b3b45){return{'type':'format','content':''+o(_0x19693d,'*Remove\x20format:*\x20%0',_0x1b3b45)};}_0x461e85['enableDefaultAttributesIntegration']('numberedList'),_0x461e85['enableDefaultAttributesIntegration']('bulletedList'),_0x461e85['enableDefaultAttributesIntegration']('customNumberedList'),_0x461e85['enableDefaultAttributesIntegration']('customBulletedList'),_0x461e85['enableDefaultAttributesIntegration']('indentList'),_0x461e85['enableDefaultAttributesIntegration']('outdentList'),_0x461e85['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x461e85['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x23825f&&(_0x461e85['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x461e85['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x532a13&&(_0x461e85['enableDefaultAttributesIntegration']('todoList'),_0x461e85['enableDefaultAttributesIntegration']('checkTodoList'),_0x461e85['descriptionFactory']['registerDescriptionCallback'](_0x26afdb=>{const {data:_0x1cad77}=_0x26afdb;if(_0x1cad77&&'todoListChecked'==_0x1cad77['key'])return{'type':'format','content':_0x1cad77['newValue']?o(_0x19693d,'*Check\x20item*'):o(_0x19693d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x24e52e=>{if(_0x24e52e['batch']['isUndo'])return!0x1;let _0x438ad6=!0x1;const _0xd62f6d=_0x461e85['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x301aa9=>'todoListChecked'===_0x461e85['_getAttributeKey'](_0x301aa9));for(const _0x469fcf of _0xd62f6d){'todo'!=_0x469fcf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x461e85['_findSuggestions'](_0x469fcf['getFirstRange'](),'attribute')['find'](_0x4c9366=>'listType'===_0x461e85['_getAttributeKey'](_0x4c9366['suggestion']))||(_0x24e52e['removeMarker'](_0x469fcf['getFirstMarker']()),_0x438ad6=!0x0));}return _0x438ad6;})),_0x461e85['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x19693d,'FORMAT_INDENT'));const _0x304fa9={'type':'format','content':''};_0x461e85['descriptionFactory']['registerDescriptionCallback'](_0x200a3f=>{const {data:_0x30463d}=_0x200a3f;if(!_0x30463d||'listType'!=_0x30463d['key'])return;let _0x17ae82=_0x200a3f['head'];for(;_0x17ae82;){if(_0x17ae82['data']&&(('listStyle'==_0x17ae82['data']['key']||'listMarkerStyle'==_0x17ae82['data']['key'])&&(_0x17ae82['data']['newValue']&&'default'!=_0x17ae82['data']['newValue']||'default'!=_0x17ae82['data']['oldValue']&&!_0x30463d['newValue'])||!_0x23825f&&_0x17ae82['data']['key']==m))return _0x304fa9;_0x17ae82=_0x17ae82['next'];}if(null==_0x30463d['newValue'])switch(_0x30463d['oldValue']){case'bulleted':return _0x1b9351(o(_0x19693d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b9351(o(_0x19693d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b9351(o(_0x19693d,'ELEMENT_TODO_LIST'));}switch(_0x30463d['newValue']){case'bulleted':return _0x3a808e(o(_0x19693d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a808e(o(_0x19693d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a808e(o(_0x19693d,'ELEMENT_TODO_LIST'));}}),_0x461e85['descriptionFactory']['registerDescriptionCallback'](_0x55c623=>{const {data:_0x19645b}=_0x55c623;if(_0x19645b&&'listIndent'==_0x19645b['key'])return null==_0x19645b['newValue']||null==_0x19645b['oldValue']&&0x0==_0x19645b['newValue']?_0x304fa9:void 0x0;}),_0x461e85['descriptionFactory']['registerDescriptionCallback'](_0x22becb=>{if('attribute'!=_0x22becb['type'])return;const {data:_0xc48d41}=_0x22becb;if(!_0xc48d41||'listItemId'!=_0xc48d41['key'])return;const _0x2a764e=Te(_0x22becb);return'newValue'==_0x2a764e?{'type':'format','content':o(_0x19693d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2a764e?{'type':'format','content':o(_0x19693d,'*Split:*\x20list\x20item')}:_0x304fa9;}),_0xda8e1['model']['document']['registerPostFixer'](_0x35e5fd=>this['listItemIdFixer'](_0x35e5fd)),_0xda8e1['model']['document']['registerPostFixer'](_0x4d50b7=>this['noTrackChangesFixer'](_0x4d50b7)),_0xda8e1['model']['document']['on']('change:data',(_0x354062,_0x20a84e)=>{if(_0x20a84e['isUndo']||!_0x20a84e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x57ab64){if(_0x57ab64['batch']['isUndo']||!_0x57ab64['batch']['isLocal'])return!0x1;let _0x21b63b=!0x1;const _0x555c00=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x390f57=>_0x390f57['data']&&'listItemId'==_0x390f57['data']['key'])['filter'](_0x511edb=>_0x511edb['data']['newValue']&&_0x511edb['data']['oldValue']);for(const _0x33cfbc of _0x555c00)Te(_0x33cfbc)||(_0x57ab64['removeMarker'](_0x33cfbc['getFirstMarker']()),_0x21b63b=!0x0);return _0x21b63b;}['noTrackChangesFixer'](_0x2e6b7e){if(_0x2e6b7e['batch']['isUndo']||!_0x2e6b7e['batch']['isLocal'])return!0x1;const _0x3c2036=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3c2036['trackChangesCommand']['value'])return!0x1;let _0x34ac28=!0x1;const _0x5510e6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1a50c7=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x58479c=>'attribute'==_0x58479c['type'])['filter'](_0x39c83b=>_0x5510e6['includes'](_0x39c83b['attributeKey']));if(0x0==_0x1a50c7['length'])return _0x34ac28;for(const _0x1f9697 of _0x1a50c7){const _0x43017d=_0x3c2036['_findSuggestions'](_0x1f9697['range'],'attribute')['filter'](_0xb42bfc=>!_0xb42bfc['meta']['isNextTo'])['map'](_0xa45cca=>_0xa45cca['suggestion'])['filter'](_0x3b43d1=>{const _0x4fd223=_0x3c2036['_getAttributeKey'](_0x3b43d1);return _0x5510e6['includes'](_0x4fd223);});if(_0x43017d['length']){for(const _0x5566a3 of _0x43017d)_0x2e6b7e['removeMarker'](_0x5566a3['getFirstMarker']());_0x34ac28=!0x0;}}return _0x34ac28;}['assureChains'](){const _0x17a66b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x403ced=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4039f2;const _0x1a1d72=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x10eba3=>{if(_0x10eba3['data']['oldRange']||!_0x10eba3['data']['newRange'])return null;if(!_0x10eba3['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x141b38}=_0x17a66b['_splitMarkerName'](_0x10eba3['name']);if(!_0x17a66b['hasSuggestion'](_0x141b38))return null;const _0x2f34ba=_0x17a66b['getSuggestion'](_0x141b38);return _0x403ced['includes'](_0x2f34ba['data']['key']);})['map'](_0x4e76b4=>{const {id:_0x2659fe}=_0x17a66b['_splitMarkerName'](_0x4e76b4['name']),_0x53410e=_0x17a66b['getSuggestion'](_0x2659fe);return _0x4039f2=_0x53410e['attributes']['groupId'],_0x53410e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1a1d72['size'])return;const _0x4d6450=_0x17a66b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48052b=>'attribute'==_0x48052b['type']&&_0x48052b['data']&&_0x403ced['includes'](_0x48052b['data']['key'])&&_0x48052b['attributes']['groupId']!=_0x4039f2)['map'](_0x142c7b=>({'listItem':_0x142c7b['getFirstRange']()['start']['nodeAfter'],'groupId':_0x142c7b['attributes']['groupId']})),_0x99a73f=new Set();for(const {groupId:_0x45cd90,listItem:_0x28527a}of _0x4d6450)_0x1a1d72['has'](_0x28527a)&&_0x99a73f['add'](_0x45cd90);for(const _0x33f733 of _0x17a66b['getSuggestions']())_0x99a73f['has'](_0x33f733['attributes']['groupId'])&&_0x33f733['setAttribute']('groupId',_0x4039f2);}['_supportLegacySuggestions'](){const _0x58471d=this['editor'],_0x4f0724=_0x58471d['locale'],_0x4e32dd=_0x58471d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4e32dd['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x16d727,_0x203aa8){const _0x363849=[];for(let _0x439f0b of _0x16d727)_0x439f0b['start']['nodeAfter']===_0x439f0b['end']['parent']&&(_0x439f0b=_0x58471d['model']['createRange'](_0x58471d['model']['createPositionAt'](_0x439f0b['start']['nodeAfter'],0x0))),_0x363849['push'](_0x439f0b);_0x58471d['model']['change'](_0x34b452=>{const _0x359bd9=_0x58471d['model']['document']['selection'],_0x41c430=Array['from'](_0x359bd9['getRanges']())['map'](_0x54e510=>_0x95b134['fromRange'](_0x54e510));_0x34b452['setSelection'](_0x363849),_0x58471d['commands']['get'](_0x203aa8['commandName'])['refresh'](),_0x203aa8['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x58471d['execute'](_0x203aa8['commandName'],..._0x203aa8['commandParams']),_0x34b452['setSelection'](_0x41c430);for(const _0x3397db of _0x41c430)_0x3397db['detach']();});}),_0x4e32dd['descriptionFactory']['registerElementLabel'](function(_0x172fcf){const _0x3826c0=!_0x58471d['model']['schema']['isObject'](_0x172fcf),_0x553f46=_0x172fcf['previousSibling'],_0x781f70=_0x172fcf['nextSibling'],_0x41b886=_0x172fcf['getAttribute']('listItemId'),_0x370551=!_0x553f46||_0x553f46['getAttribute']('listItemId')!==_0x41b886,_0x584b29=!_0x781f70||_0x781f70['getAttribute']('listItemId')!==_0x41b886;return _0x3826c0&&Boolean(_0x41b886)&&_0x370551&&_0x584b29;},_0x29b723=>o(_0x4f0724,'ELEMENT_LIST_ITEM',_0x29b723));}['_registerLegacyDescription'](){const _0x5f2143=this['editor'],_0xee144f=_0x5f2143['locale'];function _0x39de82(_0x3a1f33){const _0x4845b0=_0x5f2143['commands']['get']('bulletedList')['value'],_0x525f05=_0x5f2143['commands']['get']('numberedList')['value'];return'numberedList'===_0x3a1f33?_0x4845b0:_0x525f05;}_0x5f2143['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2c2764){if('formatBlock'!=_0x2c2764['type'])return;const {data:_0x190adc}=_0x2c2764;if(!_0x190adc)return;let _0x4cc398,_0x52d735,_0x565196,_0x25f08c;switch(_0x190adc['commandName']){case'bulletedList':_0x565196=_0x190adc['commandParams'][0x0]['forceValue'],_0x25f08c=_0x39de82(_0x190adc['commandName']),_0x4cc398=_0x565196?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x25f08c&&_0x5f2143['config']['get']('list.multiBlock')||(_0x4cc398='*Change\x20to:*\x20%0'),_0x52d735={'type':'format','content':o(_0xee144f,_0x4cc398,o(_0xee144f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x565196=_0x190adc['commandParams'][0x0]['forceValue'],_0x25f08c=_0x39de82(_0x190adc['commandName']),_0x4cc398=_0x565196?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x25f08c&&_0x5f2143['config']['get']('list.multiBlock')||(_0x4cc398='*Change\x20to:*\x20%0'),_0x52d735={'type':'format','content':o(_0xee144f,_0x4cc398,o(_0xee144f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4cc398='*Indent:*\x20%0',_0x52d735={'type':'format','content':o(_0xee144f,_0x4cc398,o(_0xee144f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4cc398=function(_0x2b3db1){const _0x1fceb2=_0x2b3db1['getFirstRange']();let _0x4e53b1=_0x1fceb2['start']['nodeAfter'];for(;_0x4e53b1&&_0x1fceb2['containsItem'](_0x4e53b1);){if(_0x4e53b1['getAttribute']('listIndent')>0x0)return!0x1;_0x4e53b1=_0x4e53b1['nextSibling'];}return!0x0;}(_0x2c2764)?o(_0xee144f,'*Format:*\x20remove\x20from\x20%0',o(_0xee144f,function(_0x3c6501){return'ELEMENT_'+_0x3c6501['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2c2764))):o(_0xee144f,'*Outdent:*\x20%0',o(_0xee144f,'ELEMENT_LIST_ITEM')),_0x52d735={'type':'format','content':_0x4cc398};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x190adc['multipleBlocks']&&(_0x4cc398='*Merge:*\x20%0',_0x52d735={'type':'deletion','content':o(_0xee144f,_0x4cc398,o(_0xee144f,'ELEMENT_LIST_ITEM'))});}return _0x52d735;});}}function Te(_0x439afd){let _0x301b2f=_0x439afd['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x301b2f;){const _0x30abe8=_0x301b2f['getAttribute']('listItemId');if(!_0x30abe8)return!0x1;if(_0x30abe8==_0x439afd['data']['newValue'])return'newValue';if(_0x30abe8==_0x439afd['data']['oldValue'])return'oldValue';_0x301b2f=_0x301b2f['previousSibling'];}return!0x1;}class H extends _0x2e8ec7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x498a65=this['editor']['config']['get']('list.properties'),_0x112481=this['editor']['plugins']['get']('TrackChangesEditing');_0x498a65['styles']&&_0x112481['enableDefaultAttributesIntegration']('listStyle'),_0x498a65['reversed']&&_0x112481['enableDefaultAttributesIntegration']('listReversed'),_0x498a65['startIndex']&&_0x112481['enableDefaultAttributesIntegration']('listStart');const _0x169bab={'type':'format','content':''};_0x112481['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5236da=this['editor']['locale'];_0x112481['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5236da,'FORMAT_LIST_REVERSED')),_0x112481['descriptionFactory']['registerDescriptionCallback'](_0x26d532=>{const {data:_0x458055}=_0x26d532;if(_0x458055&&'listReversed'==_0x458055['key'])return null==_0x458055['newValue']||0x0==_0x458055['newValue']&&null==_0x458055['oldValue']?_0x169bab:void 0x0;}),_0x112481['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5236da,'FORMAT_LIST_START')),_0x112481['descriptionFactory']['registerDescriptionCallback'](_0x245584=>{const {data:_0x4149c1}=_0x245584;if(_0x4149c1&&'listStart'==_0x4149c1['key'])return null==_0x4149c1['newValue']||0x1==_0x4149c1['newValue']&&null==_0x4149c1['oldValue']?_0x169bab:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5d8d88=>{if(_0x5d8d88['batch']['isUndo'])return!0x1;let _0x4bdba6=!0x1;const _0x5bce0=_0x112481['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53137b=>{const _0x584bab=_0x112481['_getAttributeKey'](_0x53137b);return'listStart'==_0x584bab||'listReversed'==_0x584bab;});for(const _0x597262 of _0x5bce0){const _0x37925c=_0x597262['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x37925c||'customNumbered'==_0x37925c)continue;_0x112481['_findSuggestions'](_0x597262['getFirstRange'](),'attribute')['find'](_0x6b955c=>'listType'==_0x112481['_getAttributeKey'](_0x6b955c['suggestion']))||(_0x5d8d88['removeMarker'](_0x597262['getFirstMarker']()),_0x4bdba6=!0x0);}return _0x4bdba6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x9be813){const _0x2e70fd=this['editor']['locale'],{data:_0x57704b}=_0x9be813,_0x1884e8={'type':'format','content':''};if(!_0x57704b||'listStyle'!=_0x57704b['key'])return;if(!_0x57704b['oldValue'])return'default'==_0x57704b['newValue']?_0x1884e8:{'type':'format','content':''+o(_0x2e70fd,'*Set\x20format:*\x20%0',o(_0x2e70fd,this['_getTranslationKeyForListStyle'](_0x57704b['newValue'])))};if(!_0x57704b['newValue']){if('default'==_0x57704b['oldValue'])return _0x1884e8;let _0xee3b67=_0x9be813['head'];for(;_0xee3b67;){if(_0xee3b67['data']&&'listType'==_0xee3b67['data']['key']&&_0xee3b67['data']['newValue'])return _0x1884e8;_0xee3b67=_0xee3b67['next'];}return{'type':'format','content':''+o(_0x2e70fd,'*Remove\x20format:*\x20%0',o(_0x2e70fd,this['_getTranslationKeyForListStyle'](_0x57704b['oldValue'])))};}if('default'!=_0x57704b['newValue'])return{'type':'format','content':''+o(_0x2e70fd,'*Set\x20format:*\x20%0',o(_0x2e70fd,this['_getTranslationKeyForListStyle'](_0x57704b['newValue'])))};let _0x15a150=_0x9be813['head'];for(;_0x15a150;){if(_0x15a150['data']&&'listType'==_0x15a150['data']['key']&&_0x15a150['data']['newValue']&&_0x15a150['data']['oldValue'])return _0x1884e8;_0x15a150=_0x15a150['next'];}return{'type':'format','content':o(_0x2e70fd,'*Set\x20format:*\x20%0',o(_0x2e70fd,'ELEMENT_'+_0x9be813['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3f9606=this['editor'],_0x185153=_0x3f9606['locale'];_0x3f9606['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d0665=>{if('formatBlock'!=_0x4d0665['type'])return;const {data:_0x59ac40}=_0x4d0665;if(!_0x59ac40)return;let _0x9e3505,_0x28bf82;switch(_0x59ac40['commandName']){case'listStyle':_0x9e3505='*Change\x20to:*\x20%0',_0x28bf82={'type':'format','content':o(_0x185153,_0x9e3505,o(_0x185153,this['_getTranslationKeyForListStyle'](_0x59ac40['commandParams'][0x0]['type'])))};break;case'listReversed':_0x9e3505=_0x59ac40['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x28bf82={'type':'format','content':o(_0x185153,_0x9e3505)};break;case'listStart':_0x9e3505='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x28bf82={'type':'format','content':o(_0x185153,_0x9e3505,_0x59ac40['commandParams'][0x0]['startIndex'])};}return _0x28bf82;});}['_getTranslationKeyForListStyle'](_0x66e48d){return'ELEMENT_'+function(_0x25f64f){if(ye['includes'](_0x25f64f))return'bulleted';if(Se['includes'](_0x25f64f))return'numbered';return null;}(_0x66e48d)['toUpperCase']()+'_LIST_'+_0x66e48d['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2e8ec7{['afterInit'](){const _0x4f4b3f=this['editor'];_0x4f4b3f['commands']['get']('emoji')&&_0x4f4b3f['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x2e8ec7{static get['requires'](){return[_0x2e9ff3];}['init'](){const _0x50d646=this['editor'],_0xfad4ae=_0x50d646['plugins']['get']('TrackChangesEditing'),_0x406dbe=_0x50d646['commands']['get']('enter');_0xfad4ae['enableCommand']('enter',()=>{_0x50d646['model']['change'](_0x1f2634=>{const _0x5e302c=_0x50d646['model']['document']['selection'],_0x37a438=_0x5e302c['getFirstPosition'](),_0x14557e=_0x95b134['fromRange'](_0x5e302c['getFirstRange']());if(_0x406dbe['enterBlock'](_0x1f2634)){const _0x4a4bcc=_0x50d646['model']['createPositionAt'](_0x37a438['parent']['nextSibling'],0x0),_0x54f488=_0x1f2634['createRange'](_0x37a438,_0x4a4bcc);_0xfad4ae['markInsertion'](_0x54f488);}else _0x1f2634['setSelection'](_0x1f2634['createRange'](_0x14557e['end']));_0x14557e['detach'](),_0x406dbe['fire']('afterExecute',{'writer':_0x1f2634});});});}}class Y extends _0x2e8ec7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x538b20=this['editor']['plugins']['get']('TrackChangesEditing');_0x538b20['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x538b20['enableCommand']('findNext'),_0x538b20['enableCommand']('findPrevious'),_0x538b20['enableCommand']('replace'),_0x538b20['enableCommand']('replaceAll');}['handleFindCommand'](_0x5097a2,_0x7e2da8,_0x124a21={}){const _0x4af772=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5097a2(_0x2efd92=>{let _0x3ed36e=('string'==typeof _0x7e2da8?_0x4af772['findByTextCallback'](_0x7e2da8,_0x124a21):_0x7e2da8)(_0x2efd92);Array['isArray'](_0x3ed36e)&&(_0x3ed36e={'results':_0x3ed36e,'searchText':'string'==typeof _0x7e2da8?_0x7e2da8:''});const _0x3d1466=_0x3ed36e['results']['filter'](_0x249d89=>!0x1===this['_isInDeletionRange'](_0x249d89,_0x2efd92['item']));return{..._0x3ed36e,'results':_0x3d1466};},_0x124a21);}['_isInDeletionRange'](_0x43d759,_0x113ebf){const _0x8e4b50=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x113ebf,_0x43d759['start']),this['editor']['model']['createPositionAt'](_0x113ebf,_0x43d759['end']));for(const _0x416391 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x8e4b50['getIntersection'](_0x416391['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x2e8ec7{['afterInit'](){const _0x518233=this['editor']['locale'],_0x47371c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5ad684,commandName:_0x42cd89}of eo)this['editor']['plugins']['has'](_0x5ad684)&&_0x47371c['enableDefaultAttributesIntegration'](_0x42cd89);_0x47371c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x518233,'FORMAT_FONT_SIZE')),_0x47371c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x518233,'FORMAT_FONT_FAMILY')),_0x47371c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x518233,'FORMAT_FONT_COLOR')),_0x47371c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x518233,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56dd65=this['editor'],_0x344b80=_0x56dd65['locale'];_0x56dd65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4580c0=>{const _0x8bb164=_0x344b80['t'];if('formatInline'!=_0x4580c0['type'])return;const {data:_0x4c254a}=_0x4580c0;if(null!=_0x4c254a){if('fontSize'==_0x4c254a['commandName']){const _0xce1cdc=_0x4c254a['commandParams'][0x0]['value'];if(_0xce1cdc){const _0x32d767=_0x8bb164(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x87af0d=>_0x87af0d['model']==_0xce1cdc)['title'])['toLowerCase']();return{'type':'format','content':o(_0x344b80,'*Set\x20font\x20size:*\x20%0',_0x32d767)};}return{'type':'format','content':o(_0x344b80,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4c254a['commandName']){const _0x783549=_0x4c254a['commandParams'][0x0]['value'];return _0x783549?{'type':'format','content':o(_0x344b80,'*Set\x20font\x20family:*\x20%0',_0x783549)}:{'type':'format','content':o(_0x344b80,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4c254a['commandName']){const _0x1685d7=_0x4c254a['commandParams'][0x0]['value'];if(_0x1685d7){const _0x2203fb=_0x3a4426(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3510cc=>_0x3510cc['model']==_0x1685d7);let _0x43ed43=_0x1685d7,_0x1d5874='';return _0x2203fb&&(_0x43ed43=_0x2203fb['label'],_0x1d5874=_0x8bb164(_0x43ed43)['toLowerCase']()),{'type':'format','content':o(_0x344b80,'*Set\x20font\x20color:*\x20%0',_0x1d5874)['trim'](),'color':{'value':_0x1685d7,'title':_0x1d5874||_0x43ed43}};}return{'type':'format','content':o(_0x344b80,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4c254a['commandName']){const _0x58226e=_0x4c254a['commandParams'][0x0]['value'];if(_0x58226e){const _0x47538c=_0x3a4426(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x188da4=>_0x188da4['model']==_0x58226e);let _0x444d60=_0x58226e,_0x462ef6='';return _0x47538c&&(_0x444d60=_0x47538c['label'],_0x462ef6=_0x8bb164(_0x444d60)['toLowerCase']()),{'type':'format','content':o(_0x344b80,'*Set\x20font\x20background\x20color:*\x20%0',_0x462ef6)['trim'](),'color':{'value':_0x58226e,'title':_0x462ef6||_0x444d60}};}return{'type':'format','content':o(_0x344b80,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x2e8ec7{['afterInit'](){const {plugins:_0x4dbc14}=this['editor'];_0x4dbc14['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x4dbc14['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x20b216,plugins:_0x1754d6,commands:_0x11f753}=this['editor'],_0x27dd77=_0x1754d6['get']('TrackChangesEditing');_0x11f753['get']('footnotesStyle')&&_0x27dd77['enableDefaultAttributesIntegration']('footnotesStyle'),_0x11f753['get']('footnotesStart')&&_0x27dd77['enableDefaultAttributesIntegration']('footnotesStart'),_0x27dd77['registerBlockAttribute']('footnotesListStyle'),_0x27dd77['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x20b216,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x27dd77['registerBlockAttribute']('footnotesListStart'),_0x27dd77['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x20b216,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x1af693=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5a78bb,commands:_0x3d50f1}=this['editor'];_0x3d50f1['get']('insertFootnote')&&_0x1af693['enableCommand']('insertFootnote'),_0x1af693['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4263a8=>o(_0x5a78bb,'ELEMENT_FOOTNOTE_REF',_0x4263a8)),_0x1af693['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x207794=>o(_0x5a78bb,'ELEMENT_FOOTNOTE_DEFINITION',_0x207794)),_0x1af693['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x135b2a=>o(_0x5a78bb,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x135b2a));}}class nt extends _0x2e8ec7{['afterInit'](){const _0x55e279=this['editor'],_0x4c0453=_0x55e279['plugins']['get']('TrackChangesEditing'),_0x30ee15=_0x55e279['commands']['get']('copyFormat'),_0x23abb8=_0x55e279['commands']['get']('pasteFormat');_0x30ee15&&_0x23abb8&&(_0x4c0453['enableDefaultAttributesIntegration']('pasteFormat'),_0x4c0453['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x58a513=this['editor'],_0x31e3f4=_0x58a513['locale'];_0x58a513['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d38f0=>{if('formatBlock'!=_0x1d38f0['type']&&'formatInline'!=_0x1d38f0['type'])return;const {data:_0x351df3}=_0x1d38f0;if(_0x351df3&&'pasteFormat'===_0x351df3['commandName']){const _0x20a85e=[],_0x3400d2=_0x351df3['commandParams'][0x0];for(const [_0x271252,_0x687d86]of Object['entries'](_0x3400d2))_0x20a85e['push'](ro(_0x58a513,_0x271252,_0x687d86));return _0x20a85e['length']?{'type':'format','content':o(_0x31e3f4,'*Set\x20format\x20to:*\x20%0',_0x20a85e['join'](',\x20'))}:{'type':'format','content':o(_0x31e3f4,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x35d55b,_0x514ae2,_0x74ce8d){const _0x218512=_0x35d55b['locale']['t'],_0x2d369e=_0x514ae2['split'](/(?=[A-Z])/)['join']('\x20'),_0x2fb2b3=_0x218512(_0x2d369e['charAt'](0x0)['toUpperCase']()+_0x2d369e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x74ce8d)return _0x2fb2b3;if('fontColor'===_0x514ae2||'fontBackgroundColor'===_0x514ae2){const _0x410908=_0x3a4426(_0x35d55b['config']['get']('fontColor.colors'))['find'](_0x3485fd=>_0x3485fd['model']==_0x74ce8d);return _0x2fb2b3+'\x20('+(_0x410908?_0x218512(_0x410908['label'])['toLowerCase']():_0x74ce8d)+')';}if('fontSize'===_0x514ae2&&isNaN(parseFloat(_0x74ce8d))){const _0x5bf1f3=_0x35d55b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x35d55b['config']['get']('fontSize.options'))['find'](_0x415f42=>_0x415f42['model']==_0x74ce8d);return _0x2fb2b3+'\x20('+(_0x5bf1f3?_0x218512(_0x5bf1f3['title'])['toLowerCase']():_0x74ce8d)+')';}return _0x2fb2b3+'\x20('+_0x74ce8d+')';}class it extends _0x2e8ec7{['_headingOptions'];['afterInit'](){const _0x27ffef=this['editor'];if(!_0x27ffef['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x27ffef['config']['get']('heading.options');const _0x119e39=_0x27ffef['locale'],_0x535999=_0x27ffef['plugins']['get']('TrackChangesEditing');_0x535999['enableDefaultAttributesIntegration']('heading');for(const _0x546c0a of this['_headingOptions'])'paragraph'!=_0x546c0a['model']&&_0x535999['descriptionFactory']['registerElementLabel'](_0x546c0a['model'],_0x19caac=>{const _0x27fced=this['_getHeadingLevel'](_0x546c0a['model']);return null!==_0x27fced?_0x21c619(_0x19caac,_0x27fced):_0x26a13c(_0x19caac,_0x546c0a['title']);});function _0x21c619(_0x22fbf5,_0x49a42a){return o(_0x119e39,'ELEMENT_HEADING',[_0x22fbf5,_0x49a42a]);}function _0x26a13c(_0x1cf151,_0x211ff0){return o(_0x119e39,'ELEMENT_HEADING_CUSTOM',[_0x1cf151,_0x211ff0]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x427487=this['editor'],_0x573f13=_0x427487['locale'];function _0x2950f1(_0x296484,_0x5d567a){return o(_0x573f13,'ELEMENT_HEADING_CUSTOM',[_0x296484,_0x5d567a]);}_0x427487['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f8214=>{if('formatBlock'!=_0x3f8214['type'])return;const {data:_0x4b06ad}=_0x3f8214;if(_0x4b06ad&&'heading'==_0x4b06ad['commandName']){const _0x28d8af=_0x4b06ad['commandParams'][0x0]['value'],_0x1e378a=this['_getHeadingLevel'](_0x28d8af);if(null!==_0x1e378a)return{'type':'format','content':o(_0x573f13,'*Change\x20to:*\x20%0',(_0x5bdcc6=0x1,_0x52edf2=_0x1e378a,o(_0x573f13,'ELEMENT_HEADING',[_0x5bdcc6,_0x52edf2])))};const _0x443f25=this['_headingOptions']['find'](_0x21703f=>_0x21703f['model']===_0x28d8af)['title'];return{'type':'format','content':o(_0x573f13,'*Change\x20to:*\x20%0',_0x2950f1(0x1,_0x443f25))};}var _0x5bdcc6,_0x52edf2;});}['_getHeadingLevel'](_0x1cf857){const _0x4b24a6=_0x1cf857['match'](/^heading(\d+)/);if(_0x4b24a6)return _0x4b24a6[0x1];const _0x53c8e9=this['_headingOptions']?.['find'](_0x5f2723=>_0x5f2723['model']==_0x1cf857);if(_0x53c8e9&&_0x53c8e9['view']){const _0x171718=_0x53c8e9['view'],_0x28be3c=(_0x171718['name']??_0x171718)['match'](/^h(\d+)/);if(_0x28be3c)return _0x28be3c[0x1];}return null;}}class et extends _0x2e8ec7{['afterInit'](){const _0x1fbd06=this['editor'];if(!_0x1fbd06['plugins']['has']('HighlightEditing'))return;const _0x169e59=_0x1fbd06['plugins']['get']('TrackChangesEditing'),_0x347a7d=_0x1fbd06['locale'];_0x169e59['enableDefaultAttributesIntegration']('highlight'),_0x169e59['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x347a7d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e1c47=this['editor'],_0x2e7263=_0x5e1c47['locale'];_0x5e1c47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3307e0=>{if('formatInline'!=_0x3307e0['type'])return;const {data:_0x118aaa}=_0x3307e0;if(_0x118aaa&&'highlight'==_0x118aaa['commandName']){const _0x4c9bd5=_0x2e7263['t'],_0x5350f9=_0x118aaa['commandParams'][0x0]['value'];if(_0x5350f9){const _0x12ecef=_0x5e1c47['config']['get']('highlight.options')['find'](_0x3076f4=>_0x3076f4['model']==_0x5350f9),_0x1ade2e=_0x4c9bd5(_0x12ecef['title'])['toLowerCase']();return{'type':'format','content':o(_0x2e7263,'*Set\x20highlight:*\x20%0',_0x1ade2e),'color':{'value':_0x12ecef['color'],'title':_0x12ecef['title']}};}return{'type':'format','content':o(_0x2e7263,'*Remove\x20highlight*',o(_0x2e7263,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2e8ec7{['afterInit'](){const _0x28cbc7=this['editor'];if(!_0x28cbc7['plugins']['has']('HorizontalLineEditing'))return;_0x28cbc7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1fdbe2=_0x28cbc7['plugins']['get']('TrackChangesEditing'),_0x521764=_0x28cbc7['locale'];_0x1fdbe2['descriptionFactory']['registerElementLabel']('horizontalLine',_0x58e013=>o(_0x521764,'ELEMENT_HORIZONTAL_LINE',_0x58e013));}}class ot extends _0x2e8ec7{['afterInit'](){const _0x5083cc=this['editor'];if(!_0x5083cc['plugins']['has']('HtmlEmbed'))return;const _0x53b51d=_0x5083cc['plugins']['get']('TrackChangesEditing'),_0x2d8f41=_0x5083cc['locale'];_0x53b51d['descriptionFactory']['registerElementLabel']('rawHtml',_0x153849=>o(_0x2d8f41,'ELEMENT_HTML_EMBED',_0x153849)),_0x53b51d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x53b51d['descriptionFactory']['registerDescriptionCallback'](_0x4b4077=>{if('attribute'!=_0x4b4077['type'])return;const {data:_0x26b03c}=_0x4b4077;if(_0x26b03c&&'value'==_0x26b03c['key']&&_0x4b4077['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x584236=o(_0x2d8f41,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2d8f41,'*Change\x20%0\x20content*',_0x584236)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12c5b1=this['editor'],_0x3a5c7b=_0x12c5b1['locale'];_0x12c5b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ea64c=>{if('formatBlock'!=_0x4ea64c['type'])return;const {data:_0x392ec9}=_0x4ea64c;if(_0x392ec9&&'htmlEmbed'==_0x392ec9['commandName']){const _0x15d289=o(_0x3a5c7b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3a5c7b,'*Change\x20%0\x20content*',_0x15d289)};}});}}class rt extends _0x2e8ec7{['afterInit'](){const _0x29616a=this['editor'];if(!_0x29616a['plugins']['has']('ImageEditing'))return;const _0x15ded1=_0x29616a['plugins']['get']('TrackChangesEditing'),_0x1df05f=_0x29616a['plugins']['get']('ImageUtils'),_0x3581f8=_0x29616a['locale'];_0x15ded1['enableCommand']('insertImage'),_0x15ded1['descriptionFactory']['registerElementLabel']('imageBlock',_0x4fc934=>o(_0x3581f8,'ELEMENT_IMAGE',_0x4fc934)),_0x15ded1['descriptionFactory']['registerElementLabel']('imageInline',_0x522ab2=>o(_0x3581f8,'ELEMENT_INLINE_IMAGE',_0x522ab2)),_0x15ded1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3581f8,'ELEMENT_CAPTION')),_0x29616a['plugins']['has']('ImageUploadEditing')&&_0x15ded1['enableCommand']('uploadImage'),_0x29616a['plugins']['has']('ImageBlockEditing')&&_0x29616a['plugins']['has']('ImageInlineEditing')&&(_0x15ded1['enableCommand']('imageTypeInline',(_0x9748ed,_0x54d243)=>{const _0x573492=_0x1df05f['getClosestSelectedImageElement'](_0x29616a['model']['document']['selection']);_0x29616a['model']['change'](()=>{_0x15ded1['markBlockFormat'](_0x573492,{'commandName':'imageTypeInline','commandParams':[_0x54d243]},[],'convertBlockImageToInline');});}),_0x15ded1['enableCommand']('imageTypeBlock',(_0x173d57,_0x607538)=>{_0x29616a['model']['change'](_0x4276a1=>{let _0xb1af39=_0x1df05f['getClosestSelectedImageElement'](_0x29616a['model']['document']['selection']),_0x485396=_0x4276a1['createRangeOn'](_0xb1af39);const _0x2ffa79=_0x436e23['fromPosition'](_0x485396['start'],'toPrevious'),_0x4c4cdf=_0x436e23['fromPosition'](_0x485396['end'],'toNext');_0x15ded1['forceDefaultExecution'](()=>_0x173d57(_0x607538)),_0xb1af39=_0x1df05f['getClosestSelectedImageElement'](_0x29616a['model']['document']['selection']),_0x485396=_0x4276a1['createRangeOn'](_0xb1af39);const _0x1a52d3=_0x4276a1['createRange'](_0x2ffa79,_0x4c4cdf);_0x2ffa79['detach'](),_0x4c4cdf['detach'](),_0x15ded1['markBlockFormat'](_0xb1af39,{'commandName':'imageTypeInline','commandParams':[_0x607538]},[],'convertInlineImageToBlock'),_0x1a52d3['start']['isBefore'](_0x485396['start'])&&_0x15ded1['markInsertion'](_0x4276a1['createRange'](_0x1a52d3['start'],_0x485396['start']),'convertInlineImageToBlock'),_0x485396['end']['isBefore'](_0x1a52d3['end'])&&_0x15ded1['markInsertion'](_0x4276a1['createRange'](_0x485396['end'],_0x1a52d3['end']),'convertInlineImageToBlock');});}),_0x15ded1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x15ded1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x15ded1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x15ded1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x15ded1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x15ded1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3b32b1])=>{const _0x189add=_0x15ded1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1a958b=_0x3b32b1['start'],_0x1bfec0=_0x3b32b1['end'];const _0x5bfda2=_0x29616a['model']['schema']['getNearestSelectionRange'](_0x1a958b,'backward'),_0x25c243=_0x29616a['model']['schema']['getNearestSelectionRange'](_0x1bfec0,'forward');_0x5bfda2['isCollapsed']&&(_0x1a958b=_0x5bfda2['start']),_0x25c243['isCollapsed']&&(_0x1bfec0=_0x25c243['end']),_0x189add([_0x29616a['model']['createRange'](_0x1a958b,_0x1bfec0)]);}),_0x15ded1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3a494a),_0x15ded1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3a494a)),_0x29616a['plugins']['has']('ImageCaptionEditing')&&(_0x15ded1['enableCommand']('toggleImageCaption',(_0x1b42b2,_0x248bd3)=>{const _0x2995c8=_0x29616a['plugins']['get']('ImageCaptionUtils');let _0x56594d=_0x1df05f['getClosestSelectedImageElement'](_0x29616a['model']['document']['selection']),_0x273329=_0x2995c8['getCaptionFromImageModelElement'](_0x56594d);_0x29616a['model']['change'](()=>{if(_0x273329)return void _0x15ded1['markDeletion'](_0x29616a['model']['createRangeOn'](_0x273329));const _0x14235f=_0x1df05f['isBlockImage'](_0x56594d);_0x1b42b2(_0x248bd3),_0x56594d=_0x1df05f['getClosestSelectedImageElement'](_0x29616a['model']['document']['selection']),_0x273329=_0x2995c8['getCaptionFromImageModelElement'](_0x56594d),_0x15ded1['markInsertion'](_0x29616a['model']['createRangeOn'](_0x273329),_0x14235f?null:'imageCaption');});}),_0x15ded1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3a494a));const _0x4da630=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x9c528(_0x11ff02,_0x201d9b){const _0x1f4ba8=_0x4da630['findIndex'](({type:_0x57b28f,subType:_0x2bb314})=>_0x11ff02['type']==_0x57b28f&&_0x11ff02['subType']==_0x2bb314),_0x48d346=_0x4da630['findIndex'](({type:_0x36a199,subType:_0x40e284})=>_0x201d9b['type']==_0x36a199&&_0x201d9b['subType']==_0x40e284);if(_0x1f4ba8<0x0||_0x48d346<0x0)return!0x1;const _0x11ff4e=_0x11ff02['getFirstRange'](),_0x225044=_0x201d9b['getFirstRange']();if((0x0==_0x1f4ba8||0x1==_0x1f4ba8)&&0x2==_0x48d346&&_0x11ff4e['isIntersecting'](_0x225044))return!0x0;if(0x2==_0x1f4ba8&&0x3==_0x48d346){const _0x5d1de8=_0x15ded1['_findSuggestions'](_0x11ff4e,'insertion')['filter'](({suggestion:_0xb7d8f7,meta:_0x4a4474})=>_0x4a4474['isOwn']&&'convertInlineImageToBlock'==_0xb7d8f7['subType']);if(_0x5d1de8['length']>0x1&&_0x225044['end']['isEqual'](_0x11ff4e['start']))return!0x0;if(0x1==_0x5d1de8['length']&&(_0x11ff4e['start']['isEqual'](_0x225044['end'])||_0x11ff4e['end']['isEqual'](_0x225044['start'])))return!0x0;}if(0x3==_0x1f4ba8&&0x3==_0x48d346&&_0x11ff4e['start']['isBefore'](_0x225044['start'])){const _0x192f10=_0x11ff4e['end']['nodeAfter'],_0x4048bf=_0x225044['start']['nodeBefore'];return _0x1df05f['isBlockImage'](_0x192f10)&&_0x192f10===_0x4048bf;}return!0x1;}function _0x3a494a(_0x50ea86,_0x5e40b5){return _0x9c528(_0x50ea86,_0x5e40b5)?[_0x50ea86,_0x5e40b5]:_0x9c528(_0x5e40b5,_0x50ea86)?[_0x5e40b5,_0x50ea86]:null;}_0x29616a['plugins']['has']('ImageResize')&&(_0x15ded1['enableDefaultAttributesIntegration']('resizeImage'),_0x15ded1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3581f8,'FORMAT_IMAGE_SIZE'))),_0x29616a['plugins']['has']('ImageTextAlternativeEditing')&&_0x15ded1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x29616a['plugins']['has']('PictureEditing')&&_0x15ded1['descriptionFactory']['registerDescriptionCallback'](_0x39c5ad=>{if('attribute'!=_0x39c5ad['type'])return;const {data:_0x288010}=_0x39c5ad;return _0x288010&&'sources'==_0x288010['key']?{'type':'format','content':''}:void 0x0;}),_0x29616a['plugins']['has']('ImageSizeAttributes')&&_0x15ded1['descriptionFactory']['registerDescriptionCallback'](_0x1f7d91=>{if('attribute'!=_0x1f7d91['type'])return;const {data:_0x3bf4f6}=_0x1f7d91;return!_0x3bf4f6||'width'!=_0x3bf4f6['key']&&'height'!=_0x3bf4f6['key']?void 0x0:{'type':'format','content':''};}),_0x15ded1['descriptionFactory']['registerDescriptionCallback'](_0x116f55=>{if(!!_0x4da630['find'](({type:_0x33f2fd,subType:_0xa979ed})=>_0x116f55['type']==_0x33f2fd&&_0x116f55['subType']==_0xa979ed))return _0x116f55['previous']?{}:void 0x0;}),_0x15ded1['descriptionFactory']['registerDescriptionCallback'](_0x152ed8=>{if('insertion'==_0x152ed8['type']||'deletion'==_0x152ed8['type']){const _0x3b7e54=_0x152ed8['getContainedElement']();if(_0x3b7e54&&_0x3b7e54['is']('element','caption'))return{'type':'insertion'==_0x152ed8['type']?'addObject':'removeObject','element':_0x3b7e54,'quantity':0x1};}}),_0x15ded1['descriptionFactory']['registerDescriptionCallback'](_0x3fbd9b=>'formatBlock'==_0x3fbd9b['type']&&'convertInlineImageToBlock'==_0x3fbd9b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3fbd9b['type']&&'convertBlockImageToInline'==_0x3fbd9b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x15ded1['descriptionFactory']['registerDescriptionCallback'](_0xece050=>{if('attribute'!=_0xece050['type'])return;const {data:_0x321ba7}=_0xece050;if(!_0x321ba7||'alt'!=_0x321ba7['key'])return;const _0x47aa2e=_0x321ba7['newValue'];return _0x47aa2e?{'type':'format','content':o(_0x3581f8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x47aa2e+'\x22')}:{'type':'format','content':o(_0x3581f8,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b0a25=this['editor'],_0x1f7c55=_0x1b0a25['locale'];_0x1b0a25['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x608710=>{if('formatBlock'!=_0x608710['type']&&'formatInline'!=_0x608710['type'])return;const {data:_0x18587d}=_0x608710;if(_0x18587d){if('imageTextAlternative'==_0x18587d['commandName']){const _0x2ebe6a=_0x18587d['commandParams'][0x0]['newValue'];return _0x2ebe6a?{'type':'format','content':o(_0x1f7c55,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2ebe6a+'\x22')}:{'type':'format','content':o(_0x1f7c55,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x18587d['commandName']){const _0x1f4543=_0x18587d['commandParams'][0x0]['width'];return _0x1f4543?{'type':'format','content':o(_0x1f7c55,'*Set\x20image\x20width:*\x20%0',_0x1f4543)}:{'type':'format','content':o(_0x1f7c55,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2e8ec7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x267f1d=this['editor']['locale'],_0x22c136=this['editor']['plugins']['get']('TrackChangesEditing');_0x22c136['enableDefaultAttributesIntegration']('replaceImageSource'),_0x22c136['descriptionFactory']['registerDescriptionCallback'](_0x43ae87=>{if('attribute'!=_0x43ae87['type'])return;const {data:_0x1efea9}=_0x43ae87;return _0x1efea9&&'src'==_0x1efea9['key']?_0x1efea9['newValue']&&_0x1efea9['oldValue']?{'type':'format','content':o(_0x267f1d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xb1f7c5=this['editor']['plugins']['get']('TrackChangesEditing');_0xb1f7c5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xb1f7c5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb1f7c5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xb1f7c5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a2933=this['editor'],_0x36e27a=_0x2a2933['locale'];_0x2a2933['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x461181=>{if('formatBlock'!=_0x461181['type']&&'formatInline'!=_0x461181['type'])return;const {data:_0x143b7c}=_0x461181;if(!_0x143b7c||'replaceImageSource'!=_0x143b7c['commandName'])return;return{'type':'format','content':o(_0x36e27a,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2e8ec7{['afterInit'](){const _0x4d5258=this['editor'];if(!_0x4d5258['plugins']['has']('ImageStyleEditing'))return;const _0x4fa751=_0x4d5258['plugins']['get']('TrackChangesEditing'),_0x3a0d50=_0x4d5258['plugins']['get']('ImageUtils'),_0x4482e6={};_0x4fa751['enableCommand']('imageStyle',(_0x403d1b,_0x1fe845)=>{const _0x533185=_0x4d5258['plugins']['get']('Users')['me'],_0x1dd6a4=_0x4d5258['commands']['get']('imageStyle');let _0x55cd7f=_0x3a0d50['getClosestSelectedImageElement'](_0x4d5258['model']['document']['selection']),_0x5c25da=_0x4d5258['model']['createRangeOn'](_0x55cd7f),_0x31e4eb=_0x1dd6a4['value'];if(_0x31e4eb==_0x1fe845['value'])return;const _0x53a4bb={'commandName':'imageStyle','commandParams':[_0x1fe845],'formatGroupId':_0x367f2e()};_0x4d5258['model']['change'](()=>{if(_0x4fa751['getSuggestions']()['filter'](_0x28ac28=>_0x28ac28['isInContent']&&_0x533185==_0x28ac28['author']&&('formatBlock'==_0x28ac28['type']||'formatInline'==_0x28ac28['type'])&&('imageStylePreApply'==_0x28ac28['subType']||'imageStylePostApply'==_0x28ac28['subType'])&&_0x28ac28['getFirstRange']()['isEqual'](_0x5c25da))['forEach'](_0x5c68c8=>_0x4fa751['discardSuggestion'](_0x5c68c8['head'])),_0x55cd7f=_0x3a0d50['getClosestSelectedImageElement'](_0x4d5258['model']['document']['selection']),_0x5c25da=_0x4d5258['model']['createRangeOn'](_0x55cd7f),_0x1dd6a4['refresh'](),_0x4d5258['commands']['get']('imageTypeInline')['refresh'](),_0x4d5258['commands']['get']('imageTypeBlock')['refresh'](),_0x31e4eb=_0x1dd6a4['value'],_0x31e4eb!=_0x1fe845['value'])return _0x3a0d50['isInlineImage'](_0x55cd7f)&&_0x1dd6a4['shouldConvertImageType'](_0x1fe845['value'],_0x55cd7f)?(_0x403d1b({..._0x1fe845,'setImageSizes':!0x1}),_0x55cd7f=_0x3a0d50['getClosestSelectedImageElement'](_0x4d5258['model']['document']['selection']),void _0x4fa751['markBlockFormat'](_0x55cd7f,{..._0x53a4bb,'commandReversedParams':[{'value':_0x31e4eb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3a0d50['isBlockImage'](_0x55cd7f)?_0x4fa751['markBlockFormat'](_0x55cd7f,_0x53a4bb,[],'imageStylePostApply'):_0x4fa751['markInlineFormat'](_0x5c25da,_0x53a4bb,'imageStylePostApply'));});});for(const _0x59a35d of _0x4d5258['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4482e6[_0x59a35d['name']]=_0x59a35d['title']['toLowerCase']();_0x4fa751['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4fa751['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4fa751['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4fa751['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x272bf2])=>{_0x3a0d50['setImageNaturalSizeAttributes'](_0x272bf2['getContainedElement']());}),_0x4fa751['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5e2cb6,_0x16d52a)=>{_0x4fa751['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5e2cb6,{'commandName':_0x16d52a['commandName'],'commandParams':_0x16d52a['commandReversedParams']});}),_0x4fa751['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x109a6a,_0x32bced){if(_0x5d0f49(_0x109a6a,_0x32bced))return[_0x109a6a,_0x32bced];if(_0x5d0f49(_0x32bced,_0x109a6a))return[_0x32bced,_0x109a6a];return null;});const _0xd0ede6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5d0f49(_0x2a496c,_0x3b101a){const _0x1688c8=_0xd0ede6['findIndex'](({type:_0x63e632,subType:_0x311e7e})=>_0x2a496c['type']==_0x63e632&&_0x2a496c['subType']==_0x311e7e),_0x2d46a5=_0xd0ede6['findIndex'](({type:_0x1f2603,subType:_0x307734})=>_0x3b101a['type']==_0x1f2603&&_0x3b101a['subType']==_0x307734);if(_0x1688c8<0x0||_0x2d46a5<0x0)return!0x1;const _0x56ac0c=_0x2a496c['getFirstRange'](),_0x16f75a=_0x3b101a['getFirstRange']();if((0x0==_0x1688c8||0x1==_0x1688c8)&&0x2==_0x2d46a5&&_0x56ac0c['isIntersecting'](_0x16f75a))return!0x0;if(0x2==_0x1688c8&&0x3==_0x2d46a5){const _0x13ef7a=_0x4fa751['_findSuggestions'](_0x56ac0c,'insertion')['filter'](({suggestion:_0x2a9c55,meta:_0x155362})=>_0x155362['isOwn']&&'convertInlineImageToBlock'==_0x2a9c55['subType']);if(_0x13ef7a['length']>0x1&&_0x16f75a['end']['isEqual'](_0x56ac0c['start']))return!0x0;if(0x1==_0x13ef7a['length']&&(_0x56ac0c['start']['isEqual'](_0x16f75a['end'])||_0x56ac0c['end']['isEqual'](_0x16f75a['start'])))return!0x0;}if(0x3==_0x1688c8&&0x3==_0x2d46a5&&_0x56ac0c['start']['isBefore'](_0x16f75a['start'])){const _0x5db90f=_0x56ac0c['end']['nodeAfter'],_0x596ae8=_0x16f75a['start']['nodeBefore'];return _0x3a0d50['isBlockImage'](_0x5db90f)&&_0x5db90f===_0x596ae8;}return!0x1;}_0x4d5258['model']['document']['registerPostFixer'](()=>{let _0x3bf4c9=!0x1;const _0x42470a=Array['from'](_0x4d5258['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25482e,data:_0x11efca}of _0x42470a){const {group:_0x403ae0,type:_0x3c248d,subType:_0x76a95b,id:_0x5d8f4e}=_0x4fa751['_splitMarkerName'](_0x25482e);if('suggestion'==_0x403ae0&&_0x4fa751['hasSuggestion'](_0x5d8f4e)){if('formatBlock'==_0x3c248d&&('imageStylePreApply'==_0x76a95b||'imageStylePostApply'==_0x76a95b)){const _0x56fc90=_0x4fa751['getSuggestion'](_0x5d8f4e);if(_0x11efca['newRange']){const _0x1feab2=_0x56fc90['getFirstRange']()['getContainedElement']();if(_0x3a0d50['isBlockImage'](_0x1feab2))continue;_0x4fa751['discardSuggestion'](_0x56fc90),_0x3bf4c9=!0x0;}}if('insertion'==_0x3c248d&&'imageCaption'==_0x76a95b&&!_0x11efca['newRange']){const _0x2fd15e=_0x4fa751['getSuggestion'](_0x5d8f4e);_0x2fd15e['next']&&_0x2fd15e['next']['isInContent']&&(_0x4fa751['discardSuggestion'](_0x2fd15e['next']),_0x3bf4c9=!0x0);}}}return _0x3bf4c9;}),this['_registerLegacyDescription'](_0x4482e6);}['_registerLegacyDescription'](_0x478d8c){const _0x5ebde6=this['editor'],_0x3446da=_0x5ebde6['locale'];_0x5ebde6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d6f5f=>{if('formatBlock'!=_0x1d6f5f['type']&&'formatInline'!=_0x1d6f5f['type'])return;const {data:_0x4af6e6}=_0x1d6f5f;if(!_0x4af6e6||'imageStyle'!=_0x4af6e6['commandName'])return;const _0x5205c3=_0x4af6e6['commandParams'][0x0]['value'];return _0x23c882('side'===_0x5205c3?o(_0x3446da,'FORMAT_SIDE_IMAGE'):_0x478d8c[_0x5205c3]||_0x5205c3);function _0x23c882(_0x1668cc){return{'type':'format','content':o(_0x3446da,'*Format:*\x20%0',_0x1668cc)};}});}}class ut extends _0x2e8ec7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x49505c){super(_0x49505c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4a1823=this['editor'],_0x980f53=_0x4a1823['commands']['get']('importWord'),_0x4f5d77=_0x4a1823['commands']['get']('trackChanges');_0x980f53&&(_0x980f53['on']('execute',(_0x4b051d,[,_0x47a8fc])=>{this['_trackChangesValueDuringImport']=_0x4f5d77['value'],_0x47a8fc['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x980f53,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x980f53,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4f5d77['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4a1823['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3a72fd,_0x3e8433){const {suggestions:_0x1be469}=_0x3e8433,_0x2258a5=this['editor']['commands']['get']('trackChanges'),_0x1dfd1a=_0x2258a5['value'];this['_trackChangesValueDuringImport']!==_0x1dfd1a&&(_0x2258a5['execute'](),this['_trackChangesExecuted']=!0x0),_0x1be469&&_0x1be469['forEach'](({id:_0x2ddcfc,type:_0x54466e,author:_0x2263ba,created_at:_0xcc08cb})=>{const _0x189ed8={'id':_0x2ddcfc,'type':_0x54466e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2263ba,'createdAt':_0xcc08cb?new Date(_0xcc08cb):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x189ed8);});}}class ft extends _0x2e8ec7{['afterInit'](){const _0x18a827=this['editor'],_0xaa2c55=_0x18a827['plugins']['get']('TrackChangesEditing');if(_0x18a827['plugins']['has']('IndentEditing')&&(_0xaa2c55['enableCommand']('indent'),_0xaa2c55['enableCommand']('outdent')),_0x18a827['plugins']['has']('IndentBlock')){for(const _0x3b4bbc of['indentBlock','outdentBlock'])_0xaa2c55['enableDefaultAttributesIntegration'](_0x3b4bbc);}const _0x904bae=_0x18a827['locale'];_0xaa2c55['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x904bae,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x789920=this['editor'],_0x115c63=_0x789920['locale'],_0x10bb24=_0x789920['plugins']['get']('TrackChangesEditing');_0x10bb24['descriptionFactory']['registerDescriptionCallback'](_0x1e65b5=>{if('formatBlock'!=_0x1e65b5['type'])return;const {data:_0x4c0df6}=_0x1e65b5;if(!_0x4c0df6)return;if('indentBlock'!=_0x4c0df6['commandName']&&'outdentBlock'!=_0x4c0df6['commandName'])return;const _0x465553=_0x1e65b5['getItems']()[0x0],_0x2e1348=_0x10bb24['descriptionFactory']['getItemLabel'](_0x465553);return'indentBlock'==_0x4c0df6['commandName']?{'type':'format','content':o(_0x115c63,'*Indent:*\x20%0',_0x2e1348)}:'outdentBlock'==_0x4c0df6['commandName']?{'type':'format','content':o(_0x115c63,'*Outdent:*\x20%0',_0x2e1348)}:void 0x0;});}}class ht extends _0x2e8ec7{static get['requires'](){return[_0x25940f];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2e8ec7{['afterInit'](){const _0x4658b0=this['editor'];if(!_0x4658b0['plugins']['has']('LinkEditing'))return;const _0x1b2776=_0x4658b0['plugins']['get']('TrackChangesEditing'),_0x5eca3b=_0x4658b0['commands']['get']('link');_0x1b2776['enableDefaultAttributesIntegration']('link'),_0x1b2776['enableDefaultAttributesIntegration']('unlink');for(const _0x56dbf9 of _0x5eca3b['manualDecorators'])_0x1b2776['descriptionFactory']['registerAttributeLabel'](_0x56dbf9['id'],'link\x20('+_0x56dbf9['label']['toLowerCase']()+')');_0x1b2776['descriptionFactory']['registerDescriptionCallback'](_0x225e3e=>{if('attribute'!=_0x225e3e['type'])return;const {data:_0x293560}=_0x225e3e;if(!_0x293560||'linkHref'!=_0x293560['key'])return;const _0x5752b6=_0x293560['newValue'],_0x3a6058=_0x4658b0['locale'];return{'type':'format','content':null==_0x5752b6?o(_0x3a6058,'*Remove\x20link*'):o(_0x3a6058,'*Set\x20link:*\x20%0','\x22'+_0x5752b6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdcdcd=this['editor'],_0x3ab863=_0xdcdcd['locale'];_0xdcdcd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x530ef7=>{if('formatInline'!=_0x530ef7['type'])return;const {data:_0x16a53a}=_0x530ef7;if(_0x16a53a){if('link'==_0x16a53a['commandName']){const _0x58f4f5=_0x16a53a['commandParams'][0x0];return{'type':'format','content':o(_0x3ab863,'*Set\x20link:*\x20%0','\x22'+_0x58f4f5+'\x22')};}return'unlink'==_0x16a53a['commandName']?{'type':'format','content':o(_0x3ab863,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2e8ec7{['afterInit'](){const _0x432aaf=this['editor'],_0xbf482f=_0x432aaf['locale'];if(!_0x432aaf['plugins']['has']('LegacyListEditing'))return;const _0x5778a0=_0x432aaf['plugins']['get']('TrackChangesEditing'),_0x39813f=_0x432aaf['plugins']['has']('LegacyTodoListEditing');function _0x3d9b43(_0x6839bc){return()=>{const _0x5a3525=_0x432aaf['model']['document']['selection'],_0x17d007=_0x432aaf['commands']['get'](_0x6839bc);if(_0x17d007['value'])return void _0x432aaf['execute']('paragraph',{});const _0x2b1d34=_0x6839bc['slice'](0x0,-0x4),_0x38a0c7=function(_0x1f79bb,_0x3daa22,_0x3729a4){let _0x5829b0=Array['from'](_0x1f79bb)['filter'](_0x35e361=>function(_0x15867a,_0x3b7810){return _0x3b7810['checkChild'](_0x15867a['parent'],'listItem')&&!_0x3b7810['isObject'](_0x15867a);}(_0x35e361,_0x3729a4));_0x5829b0=_0x5829b0['filter'](_0x59aa5d=>!_0x59aa5d['is']('element','listItem')||_0x59aa5d['getAttribute']('listType')!=_0x3daa22);const _0x28aa4e=new Set();for(const _0x16402c of _0x5829b0)_0x16402c['is']('element','listItem')?_0x28aa4e['add'](Le(_0x16402c)):_0x28aa4e['add'](_0x16402c);return Array['from'](_0x28aa4e);}(_0x5a3525['getSelectedBlocks'](),_0x2b1d34,_0x432aaf['model']['schema']);_0x432aaf['model']['change'](()=>{for(const _0x41daec of _0x38a0c7)_0x5778a0['markBlockFormat'](_0x41daec,{'commandName':_0x6839bc,'commandParams':[{'forceValue':!_0x17d007['value']}],'formatGroupId':'blockName'},Ee(_0x41daec));});};}function _0x15d3f9(_0x1859aa){return()=>{const _0x491f0e=function(_0xe732c2){let _0x2bc189=Array['from'](_0xe732c2);const _0x234d96=_0x2bc189['findIndex'](_0x4dfe03=>'listItem'!=_0x4dfe03['name']);return _0x234d96>-0x1&&(_0x2bc189=_0x2bc189['slice'](0x0,_0x234d96)),_0x2bc189;}(_0x432aaf['model']['document']['selection']['getSelectedBlocks']()),_0x50190f=_0x432aaf['model']['createRange'](_0x432aaf['model']['createPositionAt'](_0x491f0e[0x0],'before'),_0x432aaf['model']['createPositionAt'](_0x491f0e[_0x491f0e['length']-0x1],'end'));_0x432aaf['model']['change'](()=>{_0x5778a0['markBlockFormat'](_0x50190f,{'commandName':_0x1859aa,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4b93b9){const _0x2343a2=new Set();for(const _0x4f259e of _0x4b93b9){let _0x468abc=_0x4f259e['nextSibling'];for(;_0x468abc&&_0x468abc['getAttribute']('listIndent')>_0x4f259e['getAttribute']('listIndent');)_0x2343a2['add'](_0x468abc),_0x468abc=_0x468abc['nextSibling'];}return Array['from'](_0x2343a2);}(_0x491f0e));});};}_0x5778a0['enableCommand']('numberedList',_0x3d9b43('numberedList')),_0x5778a0['enableCommand']('bulletedList',_0x3d9b43('bulletedList')),_0x39813f&&_0x5778a0['enableCommand']('todoList',_0x3d9b43('todoList')),_0x5778a0['enableCommand']('indentList',_0x15d3f9('indentList')),_0x5778a0['enableCommand']('outdentList',_0x15d3f9('outdentList')),_0x39813f&&_0x5778a0['enableCommand']('checkTodoList',()=>{const _0x4a951e=_0x432aaf['commands']['get']('checkTodoList'),_0x5491e1=Array['from'](_0x4a951e['_selectedElements']);_0x5491e1['filter'](_0x402257=>_0x402257['getAttribute']('todoListChecked')!=_0x4a951e['value']),_0x432aaf['model']['change'](()=>{for(const _0xdbca7e of _0x5491e1)_0x5778a0['markBlockFormat'](_0xdbca7e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4a951e['value']}]});});}),_0x5778a0['descriptionFactory']['registerElementLabel']('listItem',_0x3dcb6a=>o(_0xbf482f,'ELEMENT_LIST_ITEM',_0x3dcb6a)),_0x5778a0['descriptionFactory']['registerDescriptionCallback'](_0x41144a=>{if('formatBlock'!=_0x41144a['type']&&'formatInline'!=_0x41144a['type'])return;const {data:_0x599355}=_0x41144a;if(_0x599355){if('numberedList'==_0x599355['commandName']||'bulletedList'==_0x599355['commandName']||'todoList'==_0x599355['commandName'])switch(_0x599355['commandName']['replace']('List','')){case'bulleted':return _0x44b7bc(o(_0xbf482f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x44b7bc(o(_0xbf482f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x44b7bc(o(_0xbf482f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x599355['commandName'])return{'type':'format','content':o(_0xbf482f,'*Indent:*\x20%0',o(_0xbf482f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x599355['commandName'])return{'type':'format','content':o(_0xbf482f,'*Outdent:*\x20%0',o(_0xbf482f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x599355['commandName'])return _0x599355['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xbf482f,'*Check\x20item*')}:{'type':'format','content':o(_0xbf482f,'*Uncheck\x20item*')};}function _0x44b7bc(_0x54924b){return{'type':'format','content':o(_0xbf482f,'*Change\x20to:*\x20%0',_0x54924b)};}});}}function Le(_0x155636){const _0x4be0c2=_0x155636['getAttribute']('listIndent');if(0x0==_0x4be0c2)return _0x155636;let _0xac87fc=_0x155636;for(;_0x155636['previousSibling']&&_0x155636['previousSibling']['is']('element','listItem');){const _0x3aefa0=_0x155636['previousSibling']['getAttribute']('listIndent');if(_0x3aefa0==_0x4be0c2)_0xac87fc=_0x155636['previousSibling'];else{if(_0x3aefa0<_0x4be0c2)break;}_0x155636=_0x155636['previousSibling'];}return _0xac87fc;}function Ee(_0x64f3fa){const _0x2b1171=[];if(_0x64f3fa['is']('element','listItem')&&_0x64f3fa['getAttribute']('listIndent')>0x0){let _0x46880a=_0x64f3fa['nextSibling'];for(;_0x46880a&&'listItem'==_0x46880a['name']&&_0x46880a['getAttribute']('listIndent')==_0x64f3fa['getAttribute']('listIndent');)_0x2b1171['push'](_0x46880a),_0x46880a=_0x46880a['nextSibling'];}return _0x2b1171;}class mt extends _0x2e8ec7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2959fa=this['editor']['config']['get']('list.properties'),_0xf51d65=this['editor']['plugins']['get']('TrackChangesEditing');_0x2959fa['styles']&&_0xf51d65['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2959fa['reversed']&&_0xf51d65['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2959fa['startIndex']&&_0xf51d65['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xf51d65['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3683cb,_0x5b3579={}){const _0xd02ba0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17b0ae=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xd02ba0['markMultiRangeBlockFormat'](_0x17b0ae,{'commandName':'listStyle','commandParams':[{'type':_0x5b3579['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x41fc58,_0x3295a3={}){const _0x3ced54=this['editor']['plugins']['get']('TrackChangesEditing'),_0x252e98=this['_getSuggestionBlocks'](_0x4e1ce2=>_0x4e1ce2['is']('element','listItem')&&'numbered'===_0x4e1ce2['getAttribute']('listType'));if(_0x252e98['length']<0x1)return;const _0x43f199=_0x252e98['map'](_0x2b671e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2b671e,'before'),this['editor']['model']['createPositionAt'](_0x2b671e,0x0)));this['editor']['model']['change'](()=>{_0x3ced54['markMultiRangeBlockFormat'](_0x43f199,{'commandName':'listReversed','commandParams':[{'reversed':_0x3295a3['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x218194,_0x18178e={}){const _0x15d0c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x367890=this['_getSuggestionBlocks'](_0x2c1b1f=>_0x2c1b1f['is']('element','listItem')&&'numbered'===_0x2c1b1f['getAttribute']('listType'));if(_0x367890['length']<0x1)return;const _0x1f32af=_0x367890['map'](_0x161a58=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x161a58,'before'),this['editor']['model']['createPositionAt'](_0x161a58,0x0)));this['editor']['model']['change'](()=>{_0x15d0c8['markMultiRangeBlockFormat'](_0x1f32af,{'commandName':'listStart','commandParams':[{'startIndex':_0x18178e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x11557a){if('formatBlock'!=_0x11557a['type']&&'formatInline'!=_0x11557a['type'])return;const _0x4efb92=this['editor']['locale'],{data:_0x3afda3}=_0x11557a;if(!_0x3afda3)return;let _0x1db8a9,_0x533f63;switch(_0x3afda3['commandName']){case'listStyle':_0x1db8a9='*Change\x20to:*\x20%0',_0x533f63={'type':'format','content':o(_0x4efb92,_0x1db8a9,o(_0x4efb92,this['_getTranslationKeyForListStyle'](_0x3afda3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1db8a9=_0x3afda3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x533f63={'type':'format','content':o(_0x4efb92,_0x1db8a9)};break;case'listStart':_0x1db8a9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x533f63={'type':'format','content':o(_0x4efb92,_0x1db8a9,_0x3afda3['commandParams'][0x0]['startIndex'])};}return _0x533f63;}['_getSuggestionBlocksForListStyle'](){const _0x4b3a23=this['editor']['plugins']['get']('LegacyListUtils');let _0x4fad2b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4fad2b[0x0]?.['is']('element','listItem')&&_0x4fad2b['unshift'](..._0x4b3a23['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4fad2b[_0x4fad2b['length']-0x1]?.['is']('element','listItem')&&_0x4fad2b['push'](..._0x4b3a23['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4fad2b=[...new Set(_0x4fad2b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4fad2b=_0x4fad2b['filter'](_0x5eb91e=>_0x5eb91e['is']('element','listItem'))),_0x4fad2b;}['_getSuggestionBlocks'](_0x6bb2cd){const _0x288eb1=this['editor']['plugins']['get']('LegacyListUtils');let _0x1ac0c7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x6bb2cd)['map'](_0x2a7fb6=>{const _0x545c7a=this['editor']['model']['createPositionAt'](_0x2a7fb6,0x0);return[..._0x288eb1['getSiblingNodes'](_0x545c7a,'backward'),..._0x288eb1['getSiblingNodes'](_0x545c7a,'forward')];})['flat']();return _0x1ac0c7=[...new Set(_0x1ac0c7)],_0x1ac0c7;}['_getTranslationKeyForListStyle'](_0x10519e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x10519e)||'default')['toUpperCase']()+'_LIST_'+_0x10519e['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2e8ec7{['afterInit'](){const _0x5ddba9=this['editor'];if(!_0x5ddba9['plugins']['has']('MediaEmbedEditing'))return;const _0x1d02ea=_0x5ddba9['plugins']['get']('TrackChangesEditing'),_0x359ea9=_0x5ddba9['locale'];_0x1d02ea['enableCommand']('mediaEmbed'),_0x1d02ea['descriptionFactory']['registerElementLabel']('media',_0x181c16=>o(_0x359ea9,'ELEMENT_MEDIA',_0x181c16));}}class pt extends _0x2e8ec7{['afterInit'](){const _0x23ca51=this['editor'];_0x23ca51['plugins']['has']('MentionEditing')&&_0x23ca51['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2e8ec7{['afterInit'](){const _0xe27462=this['editor'];if(!_0xe27462['plugins']['has']('MergeFieldsEditing'))return;const _0x304d39=_0xe27462['plugins']['get']('TrackChangesEditing'),_0x718c4d=_0xe27462['locale'];_0x304d39['enableCommand']('insertMergeField'),_0x304d39['enableCommand']('insertMergeFieldBlock'),_0x304d39['enableCommand']('insertMergeFieldImage'),_0x304d39['descriptionFactory']['registerElementLabel']('mergeField',_0x4aa880=>o(_0x718c4d,'ELEMENT_MERGE_FIELD',_0x4aa880)),_0x304d39['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x14e8fd=>o(_0x718c4d,'ELEMENT_MERGE_FIELD',_0x14e8fd)),_0x304d39['descriptionFactory']['registerDescriptionCallback'](_0x7964b1=>{if('insertion'!=_0x7964b1['type']&&'deletion'!=_0x7964b1['type'])return;const _0x22dafd=_0x7964b1['getContainedElement']();if(null==_0x22dafd)return;const _0x5006c9=_0xe27462['plugins']['get']('MergeFieldsEditing');let _0x41c360;switch(_0x5006c9['getMergeFieldType'](_0x22dafd)){case null:return;case'image':{const _0x122025=_0x5006c9['unwrapAffixes'](_0x22dafd['getAttribute']('src'));_0x41c360=_0x5006c9['getLabel'](_0x122025)||_0x122025;break;}default:{const _0x180743=_0x22dafd['getAttribute']('id');_0x41c360=_0x5006c9['getLabel'](_0x180743)||_0x180743;break;}}return'insertion'==_0x7964b1['type']?{'type':'insertion','content':o(_0x718c4d,'*Insert:*\x20%0','\x22'+_0x41c360+'\x22\x20'+o(_0x718c4d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x718c4d,'*Remove:*\x20%0','\x22'+_0x41c360+'\x22\x20'+o(_0x718c4d,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2e8ec7{['afterInit'](){const _0x3d7ac1=this['editor'],_0x95153=_0x3d7ac1['plugins']['get']('TrackChangesEditing');_0x3d7ac1['plugins']['has']('MultiLevelList')&&(_0x95153['enableDefaultAttributesIntegration']('multiLevelList'),_0x95153['descriptionFactory']['registerDescriptionCallback'](_0x4964d0=>this['handleDescriptions'](_0x4964d0)));}['handleDescriptions'](_0x2f3d5e){const _0x576e44=this['editor']['locale'],{data:_0x11b7a8}=_0x2f3d5e,_0x48dc5a={'type':'format','content':''};if(_0x11b7a8&&'listMarkerStyle'==_0x11b7a8['key']){if(!_0x11b7a8['oldValue'])return{'type':'format','content':o(_0x576e44,'*Set\x20format:*\x20%0',o(_0x576e44,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x11b7a8['newValue']+')'};if(!_0x11b7a8['newValue']){let _0x53739f=_0x2f3d5e['head'];for(;_0x53739f;){if(_0x53739f['data']&&'listType'==_0x53739f['data']['key']&&_0x53739f['data']['newValue'])return _0x48dc5a;_0x53739f=_0x53739f['next'];}return{'type':'format','content':o(_0x576e44,'*Remove\x20format:*\x20%0',o(_0x576e44,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x11b7a8['oldValue']+')'};}}}}class bt extends _0x2e8ec7{['afterInit'](){const _0x2fc573=this['editor'];if(!_0x2fc573['plugins']['has']('PageBreakEditing'))return;_0x2fc573['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1c87ff=_0x2fc573['plugins']['get']('TrackChangesEditing'),_0x35c6e5=_0x2fc573['locale'];_0x1c87ff['descriptionFactory']['registerElementLabel']('pageBreak',_0x371fbc=>o(_0x35c6e5,'ELEMENT_PAGE_BREAK',_0x371fbc));}}class yt extends _0x2e8ec7{['afterInit'](){const _0x11c968=this['editor'];if(!_0x11c968['plugins']['has']('Paragraph'))return;const _0x2b1eb4=_0x11c968['locale'],_0x2d7f03=_0x11c968['plugins']['get']('TrackChangesEditing');_0x2d7f03['descriptionFactory']['registerElementLabel']('paragraph',_0xe71a2e=>o(_0x2b1eb4,'ELEMENT_PARAGRAPH',_0xe71a2e)),_0x2d7f03['enableDefaultAttributesIntegration']('paragraph'),_0x2d7f03['enableCommand']('insertParagraph');const _0x217e21=_0x2d7f03['descriptionFactory'];_0x217e21['registerDescriptionCallback'](_0x5ca6c0=>{if('insertion'!==_0x5ca6c0['type'])return;const {start:_0x514be8,end:_0xe92933}=_0x5ca6c0['getFirstRange']();if(!_0x514be8['isTouching'](_0xe92933)||!_0x514be8['nodeAfter'])return;const _0x3fde56=_0x11c968['model']['schema'],_0x1a5ed1=_0x514be8['nodeAfter'];return _0x3fde56['isBlock'](_0x1a5ed1)&&!_0x3fde56['isLimit'](_0x1a5ed1)&&_0x3fde56['checkChild'](_0x1a5ed1,'$text')?{'type':'insertion','content':o(_0x2b1eb4,'*Insert:*\x20%0',_0x217e21['getItemLabel'](_0x1a5ed1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3de124=this['editor'],_0x23a695=_0x3de124['locale'];_0x3de124['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31731b=>{if('formatBlock'!=_0x31731b['type'])return;const {data:_0x3c78aa}=_0x31731b;return _0x3c78aa&&'paragraph'==_0x3c78aa['commandName']?{'type':'format','content':o(_0x23a695,'*Change\x20to:*\x20%0',o(_0x23a695,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x2e8ec7{['afterInit'](){const _0x3249d3=this['editor'];_0x3249d3['commands']['get']('replaceSource')&&_0x3249d3['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2e8ec7{['afterInit'](){const _0x54d8d4=this['editor'];if(!_0x54d8d4['plugins']['has']('RemoveFormatEditing'))return;_0x54d8d4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x222ab1=this['editor'];_0x222ab1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b6695=>{if('formatBlock'!=_0x1b6695['type']&&'formatInline'!=_0x1b6695['type'])return;const {data:_0x579cb8}=_0x1b6695;return _0x579cb8&&'removeFormat'==_0x579cb8['commandName']?{'type':'format','content':o(_0x222ab1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x2e8ec7{['afterInit'](){const _0x5da75d=this['editor'];if(!_0x5da75d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x480668=_0x5da75d['plugins']['get']('TrackChangesEditing');_0x480668['enableCommand']('goToPreviousRestrictedEditingException'),_0x480668['enableCommand']('goToNextRestrictedEditingException');const _0xe0657=_0x5da75d['plugins']['get']('RestrictedEditingModeEditing');_0xe0657['enableCommand']('trackChanges'),_0xe0657['enableCommand']('acceptSuggestion'),_0xe0657['enableCommand']('discardSuggestion'),_0xe0657['enableCommand']('acceptAllSuggestions'),_0xe0657['enableCommand']('discardAllSuggestions'),_0xe0657['enableCommand']('acceptSelectedSuggestions'),_0xe0657['enableCommand']('discardSelectedSuggestions');}}class At extends _0x2e8ec7{['afterInit'](){const _0x12e945=this['editor'];if(!_0x12e945['plugins']['has']('ShiftEnter'))return;const _0x11bc04=_0x12e945['plugins']['get']('TrackChangesEditing');_0x11bc04['enableCommand']('shiftEnter'),_0x11bc04['descriptionFactory']['registerElementLabel']('softBreak',_0x19a213=>o(_0x12e945['locale'],'ELEMENT_LINE_BREAK',_0x19a213));}}function an(_0x1e7d15,_0x43bbb2,_0xd365c8){const _0x16cc8b=[];for(const _0x42f839 of _0x43bbb2['getItems']())_0x42f839['hasAttribute'](_0x1e7d15)&&_0x16cc8b['push'](_0xd365c8['createRangeOn'](_0x42f839));return _0x16cc8b;}class _t extends _0x2e8ec7{['afterInit'](){const _0xd77009=this['editor'],_0x58f852=_0xd77009['plugins']['get']('TrackChangesEditing');_0xd77009['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x58f852['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x12151c=this['editor'],_0x2fbb03=_0x12151c['model'],_0x4a088e=_0x12151c['locale'],_0x195ef7=_0x12151c['plugins']['get']('TrackChangesEditing'),_0x206811='restrictedEditingException',_0x17d440=_0x12151c['commands']['get'](_0x206811);_0x195ef7['enableCommand'](_0x206811,(_0x347538,_0x27acf5={})=>{const _0x35db89=_0x2fbb03['document']['selection'];if(_0x35db89['isCollapsed'])return void _0x347538(_0x27acf5);const _0xb1f425=void 0x0!==_0x27acf5['forceValue']?_0x27acf5['forceValue']:!_0x17d440['value'];_0x2fbb03['change'](()=>{const _0xc76a83=Array['from'](_0x35db89['getRanges']());for(const _0x3e76e5 of _0xc76a83){const _0x1878b1=_0xb1f425?[_0x3e76e5]:an(_0x206811,_0x3e76e5,_0x2fbb03);for(const _0x42cad6 of _0x1878b1)_0x195ef7['markInlineFormat'](_0x42cad6,{'commandName':_0x206811,'commandParams':[{'forceValue':_0xb1f425}]});}});}),_0x195ef7['descriptionFactory']['registerDescriptionCallback'](_0x422af0=>{if('formatBlock'!=_0x422af0['type']&&'formatInline'!=_0x422af0['type'])return;const {data:_0x2caf60}=_0x422af0;return _0x2caf60&&_0x2caf60['commandName']==_0x206811?_0x2caf60['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a088e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4a088e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x32a0e8=this['editor'],_0x53578e=_0x32a0e8['locale'],_0x4e01ff=_0x32a0e8['plugins']['get']('TrackChangesEditing'),_0x5ed0fe='restrictedEditingExceptionBlock',_0x4e6b97=this['editor']['commands']['get'](_0x5ed0fe);_0x4e01ff['enableCommand'](_0x5ed0fe,(_0x13b1ff,_0x180918={})=>{const _0xdd5a28=this['editor']['model']['document']['selection'],_0x4d1aef=_0x180918&&void 0x0!==_0x180918['forceValue']?_0x180918['forceValue']:!_0x4e6b97['value'];let _0x5e23be=[];if(_0x4d1aef){const _0x330475=Array['from'](_0xdd5a28['getSelectedBlocks']())['filter'](_0x25e7da=>function(_0x5cebc6){return!!_0x5cebc6['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x25e7da)||function(_0x584fb4,_0x245389){const _0x10d1f9=_0x245389['createContext'](_0x584fb4['parent']);if(!_0x245389['checkChild'](_0x10d1f9,'restrictedEditingException'))return!0x1;if(!_0x245389['checkChild'](_0x10d1f9['push']('restrictedEditingException'),_0x584fb4))return!0x1;return!0x0;}(_0x25e7da,this['editor']['model']['schema']));_0x5e23be=to(_0x330475,_0x32a0e8['model']);}else{const _0x4aa262=Array['from'](_0xdd5a28['getSelectedBlocks']())['map'](_0x390b81=>function(_0x49e6c3){let _0x546e90=_0x49e6c3;for(;_0x546e90['parent'];){if('restrictedEditingException'==_0x546e90['parent']['name'])return _0x546e90;_0x546e90=_0x546e90['parent'];}return null;}(_0x390b81))['filter'](_0xdceddf=>!!_0xdceddf);_0x5e23be=to(_0x4aa262,_0x32a0e8['model']);}_0x32a0e8['model']['change'](()=>{for(const _0x38aa51 of _0x5e23be)_0x4e01ff['markBlockFormat'](_0x38aa51,{'commandName':_0x5ed0fe,'commandParams':[{'forceValue':_0x4d1aef}]});});}),_0x4e01ff['descriptionFactory']['registerDescriptionCallback'](_0x1e6531=>{const {data:_0x58c543}=_0x1e6531;if(_0x58c543&&_0x58c543['commandName']==_0x5ed0fe)return _0x58c543['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53578e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x53578e,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x2e8ec7{['afterInit'](){const _0x47bfa1=this['editor'];if(!_0x47bfa1['plugins']['has']('Style')||!_0x47bfa1['plugins']['has']('DataSchema'))return;const _0x485dcf=_0x47bfa1['plugins']['get']('TrackChangesEditing'),_0x4175da=_0x47bfa1['locale'],_0x1944a4=_0x47bfa1['config']['get']('style')||{},_0x4a4689=_0x47bfa1['plugins']['get']('GeneralHtmlSupport'),_0xecd27=_0x47bfa1['plugins']['get']('StyleUtils')['normalizeConfig'](_0x47bfa1['plugins']['get']('DataSchema'),_0x1944a4['definitions']);_0x485dcf['enableDefaultAttributesIntegration']('style');const _0xbb3ba2=new Set();for(const _0x56d209 of _0xecd27['block']){const _0x4cf139=_0x4a4689['getGhsAttributeNameForElement'](_0x56d209['element']);_0xbb3ba2['add'](_0x4cf139);}const _0xa94b3b=new Set();for(const _0x3543b3 of _0xecd27['inline']){const _0x54e413=_0x4a4689['getGhsAttributeNameForElement'](_0x3543b3['element']);_0xa94b3b['add'](_0x54e413);for(const _0x283f70 of _0x3543b3['ghsAttributes'])_0xa94b3b['add'](_0x283f70);}for(const _0x2c21d5 of _0xbb3ba2)_0x485dcf['descriptionFactory']['registerAttributeLabel'](_0x2c21d5,o(_0x4175da,'FORMAT_STYLE'));for(const _0x58c607 of _0xa94b3b)_0x485dcf['descriptionFactory']['registerAttributeLabel'](_0x58c607,o(_0x4175da,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56a051=this['editor'],_0x466f15=_0x56a051['locale'];_0x56a051['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bfd75=>{if('formatBlock'!=_0x3bfd75['type']&&'formatInline'!=_0x3bfd75['type'])return;const {data:_0x472ea7}=_0x3bfd75;return _0x472ea7&&'style'===_0x472ea7['commandName']?_0x472ea7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x466f15,'*Set\x20format:*\x20%0',_0x472ea7['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x466f15,'*Remove\x20format:*\x20%0',_0x472ea7['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x2e8ec7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x34bc55){super(_0x34bc55),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x417b50=this['editor'],_0x2e7a6b=_0x417b50['model']['document']['selection'];if(!_0x417b50['plugins']['has']('TableEditing'))return;const _0x45ff4b=_0x417b50['locale'],_0x2c825e=_0x417b50['plugins']['get']('TrackChangesEditing'),_0x46bae2=_0x417b50['plugins']['get']('TableUtils');_0x2c825e['descriptionFactory']['registerElementLabel']('table',_0x2cd459=>o(_0x45ff4b,'ELEMENT_TABLE',_0x2cd459)),this['_setupColumnsRowsFixing'](),_0x2c825e['enableCommand']('insertTable'),_0x2c825e['enableCommand']('selectTableRow'),_0x2c825e['enableCommand']('selectTableColumn');for(const _0x2e1012 of['insertTableRowAbove','insertTableRowBelow']){const _0x55b187=_0x417b50['commands']['get'](_0x2e1012);_0x2c825e['enableCommand'](_0x2e1012,_0x533fad=>{_0x417b50['model']['change'](_0x1cfb5c=>{_0x533fad();const _0x25f6ef='above'===_0x55b187['order'],_0x2f500d=_0x46bae2['getSelectionAffectedTableCells'](_0x2e7a6b),_0x15ca15=_0x46bae2['getRowIndexes'](_0x2f500d),_0x343d49=_0x25f6ef?_0x15ca15['first']-0x1:_0x15ca15['last']+0x1,_0x4df0fc=_0x2f500d[0x0]['findAncestor']('table'),_0xc90e50=_0x46bae2['createTableWalker'](_0x4df0fc,{'startRow':_0x343d49,'endRow':_0x343d49}),_0x212cec=Array['from'](_0xc90e50)['map'](_0x33b234=>_0x1cfb5c['createRangeOn'](_0x33b234['cell']));_0x2c825e['markMultiRangeInsertion'](_0x212cec,'tableRow');});});}for(const _0x56153a of['insertTableColumnLeft','insertTableColumnRight']){const _0x3a2320=_0x417b50['commands']['get'](_0x56153a);_0x2c825e['enableCommand'](_0x56153a,_0x4cd6cb=>{_0x417b50['model']['change'](_0x6167c9=>{_0x4cd6cb();const _0x3147cc='left'===_0x3a2320['order'],_0x2f728f=_0x46bae2['getSelectionAffectedTableCells'](_0x2e7a6b),_0x33aef7=_0x46bae2['getColumnIndexes'](_0x2f728f),_0x597eec=_0x3147cc?_0x33aef7['first']-0x1:_0x33aef7['last']+0x1,_0x5dd64b=_0x2f728f[0x0]['findAncestor']('table'),_0x17fa74=_0x46bae2['createTableWalker'](_0x5dd64b,{'startRow':0x0,'column':_0x597eec,'includeAllSlots':!0x1}),_0xc9fbd3=Array['from'](_0x17fa74)['map'](_0x77430c=>_0x6167c9['createRangeOn'](_0x77430c['cell']));_0x2c825e['markMultiRangeInsertion'](_0xc9fbd3,'tableColumn');});});}for(const _0x23aa42 of['removeTableRow','removeTableColumn']){const _0x56dca3=_0x23aa42['substr'](0xb),_0x51ee53=_0x56dca3['toLowerCase'](),_0x35c526=_0x51ee53['substr'](0x0,0x3)+'span',_0x43f7ca='table'+_0x56dca3,_0x54cea0='min'+_0x56dca3,_0x29606b='max'+_0x56dca3;_0x2c825e['enableCommand'](_0x23aa42,()=>{_0x417b50['model']['change'](_0x5c2a57=>{const _0x38fc0f=_0x46bae2['getSelectionAffectedTableCells'](_0x2e7a6b),_0x1e2013=_0x38fc0f[0x0]['findAncestor']('table');let _0x19f196;if('removeTableRow'==_0x23aa42){const _0x927d35=_0x46bae2['getRowIndexes'](_0x38fc0f);_0x19f196={'startRow':_0x927d35['first'],'endRow':_0x927d35['last'],'includeAllSlots':!0x0};}else{const _0x4d6a84=_0x46bae2['getColumnIndexes'](_0x38fc0f);_0x19f196={'startColumn':_0x4d6a84['first'],'endColumn':_0x4d6a84['last'],'includeAllSlots':!0x0};}const _0x35e36d=_0x46bae2['createTableWalker'](_0x1e2013,_0x19f196),_0x56315d=Array['from'](_0x35e36d)['map'](({cell:_0x3d1635})=>_0x3d1635),_0xf58519=_e(_0x56315d['filter'](_0x273515=>_0x273515['hasAttribute'](_0x35c526))),_0x1081e7=_e(_0x56315d['filter'](_0x349827=>!_0x349827['hasAttribute'](_0x35c526)))['map'](_0x154d03=>_0x5c2a57['createRangeOn'](_0x154d03)),_0x1cc1a1=_0x2c825e['markMultiRangeDeletion'](_0x1081e7,_0x43f7ca);if(_0x1cc1a1&&('tableRow'==_0x1cc1a1['subType']||'tableColumn'==_0x1cc1a1['subType'])){const _0x36d679=this['_getSuggestionCoords'](_0x1cc1a1);for(const _0x52b5b0 of _0xf58519){const _0x37fc4b=_0x5c2a57['createRangeOn'](_0x52b5b0),_0x160eaf=_0x46bae2['getCellLocation'](_0x52b5b0),_0x9b2f29=_0x52b5b0['getAttribute'](_0x35c526)-0x1,_0x47a5e4=_0x36d679[_0x54cea0],_0x40709d=_0x36d679[_0x29606b];_0x47a5e4<=_0x160eaf[_0x51ee53]&&_0x160eaf[_0x51ee53]+_0x9b2f29<=_0x40709d&&_0x1cc1a1['addRange'](_0x37fc4b);}}});});}function _0x1c7b0d(_0x4778ce){const _0x593381=Array['from'](_0x2e7a6b['getRanges']())['map'](_0x1c3e13=>_0x95b134['fromRange'](_0x1c3e13));_0x417b50['model']['change'](_0x50224b=>{const _0x5ba18c=_0x50224b['batch'];_0x4778ce=_0x4778ce['filter'](_0x226369=>'$graveyard'!=_0x226369['root']['rootName']),_0x50224b['setSelection'](_0x4778ce),_0x417b50['commands']['get']('removeTableRow')['refresh'](),_0x417b50['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x417b50['model']['enqueueChange'](()=>{_0x417b50['model']['enqueueChange'](_0x5ba18c,_0x1d805a=>{const _0x1e6dfb=_0x593381['filter'](_0x115c12=>'$graveyard'!=_0x115c12['root']['rootName']);_0x1e6dfb['length']>0x0&&_0x1d805a['setSelection'](_0x1e6dfb);for(const _0x1d7734 of _0x593381)_0x1d7734['detach']();});});});}function _0x21c67(_0x44b43f){_0x417b50['model']['change'](_0x27ab7b=>{const _0x44e6c7=Array['from'](_0x2e7a6b['getRanges']())['map'](_0x21b461=>_0x95b134['fromRange'](_0x21b461)),_0x2c432f=[];for(const _0x5a1bac of _0x44b43f)for(const _0x102cad of _0x5a1bac['getItems']({'shallow':!0x0}))_0x2c432f['push'](_0x102cad);for(const _0x32110e of _0x2c432f)'$graveyard'!=_0x32110e['root']['rootName']&&(_0x27ab7b['setSelection'](_0x27ab7b['createPositionAt'](_0x32110e,0x0)),_0x417b50['commands']['get']('removeTableColumn')['refresh'](),_0x417b50['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x16f00b=_0x44e6c7['filter'](_0x5395d6=>'$graveyard'!=_0x5395d6['root']['rootName']);_0x16f00b['length']>0x0&&_0x27ab7b['setSelection'](_0x16f00b);for(const _0x403826 of _0x44e6c7)_0x403826['detach']();});}function _0x3bf014(_0x182834,_0x15f321){return _0x15f321['every'](_0x5ac86b=>_0x182834['some'](_0x8a3bcd=>_0x8a3bcd['end']['isEqual'](_0x5ac86b['start'])||_0x5ac86b['end']['isEqual'](_0x8a3bcd['start'])));}function _0x35e0df(_0x8a6b99,_0x3da66d){return!_0x8a6b99['some'](_0x5399b5=>_0x3da66d['some'](_0x2bd9d3=>_0x5399b5['isIntersecting'](_0x2bd9d3)))&&_0x8a6b99['some'](_0x31bba3=>_0x3da66d['some'](_0x4a2c48=>_0x31bba3['end']['isTouching'](_0x4a2c48['start'])));}_0x2c825e['descriptionFactory']['registerDescriptionCallback'](_0x1e8244=>{if('insertion'!=_0x1e8244['type']&&'deletion'!=_0x1e8244['type'])return;const _0x297020=_0x1e8244['getContainedElement']();if(null!=_0x297020&&_0x297020['is']('element','table')){if('insertion'==_0x1e8244['type']){const _0x587fea=_0x1e8244['getItems']()['filter'](_0xcc98de=>_0xcc98de['is']('$textProxy'))['map'](_0x1e07af=>_0x1e07af['data']);if(_0x587fea['length'])return{'type':'insertion','content':o(_0x45ff4b,'*Insert:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x587fea['join']('\x20')+'\x22'))};}if('deletion'==_0x1e8244['type']){const _0x2d6c0f=_0x1e8244['getItems']()['filter'](_0x180950=>_0x180950['is']('$textProxy'))['map'](_0x124f52=>_0x124f52['data']);if(_0x2d6c0f['length'])return{'type':'deletion','content':o(_0x45ff4b,'*Remove:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2d6c0f['join']('\x20')+'\x22'))};}}}),_0x2c825e['descriptionFactory']['registerDescriptionCallback'](_0x52d5a0=>{if('tableRow'==_0x52d5a0['subType']){const _0x197451=_0x52d5a0['getItems']()['filter'](_0x331bd2=>_0x331bd2['is']('$textProxy'))['map'](_0xfec373=>_0xfec373['data']),_0x33aa65=this['_getSuggestionCoords'](_0x52d5a0),_0x5caab5=_0x33aa65['maxRow']-_0x33aa65['minRow']+0x1;if('insertion'==_0x52d5a0['type'])return _0x197451['length']?{'type':'insertion','content':o(_0x45ff4b,'*Insert:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5caab5,'\x22'+_0x197451['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x45ff4b,'*Insert:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_ROW',_0x5caab5))};if('deletion'==_0x52d5a0['type'])return _0x197451['length']?{'type':'deletion','content':o(_0x45ff4b,'*Remove:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5caab5,'\x22'+_0x197451['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x45ff4b,'*Remove:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_ROW',_0x5caab5))};}if('tableColumn'==_0x52d5a0['subType']){const _0x3a4184=_0x52d5a0['getItems']()['filter'](_0x26e764=>_0x26e764['is']('$textProxy'))['map'](_0x3820fa=>_0x3820fa['data']),_0x3681d3=this['_getSuggestionCoords'](_0x52d5a0),_0x3b0ce2=_0x3681d3['maxColumn']-_0x3681d3['minColumn']+0x1;if('insertion'==_0x52d5a0['type'])return _0x3a4184['length']?{'type':'insertion','content':o(_0x45ff4b,'*Insert:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b0ce2,'\x22'+_0x3a4184['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x45ff4b,'*Insert:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_COLUMN',_0x3b0ce2))};if('deletion'==_0x52d5a0['type'])return _0x3a4184['length']?{'type':'deletion','content':o(_0x45ff4b,'*Remove:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b0ce2,'\x22'+_0x3a4184['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x45ff4b,'*Remove:*\x20%0',o(_0x45ff4b,'ELEMENT_TABLE_COLUMN',_0x3b0ce2))};}}),_0x2c825e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1c7b0d),_0x2c825e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1c7b0d),_0x2c825e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x21c67),_0x2c825e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x21c67),_0x2c825e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3bf014),_0x2c825e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3bf014),_0x2c825e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x35e0df),_0x2c825e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x35e0df);}['_acceptFormatSuggestionCallbackFactory'](){const _0x77fe9d=this['editor'],_0x2c773d=_0x77fe9d['model']['document']['selection'];return(_0x17483c,_0x3f00be)=>{_0x77fe9d['model']['change'](_0x1b2f7b=>{const {commandName:_0x575e40,commandParams:_0x15f1ec}=_0x3f00be;let _0x3a5ccb=_0x17483c[0x0]['end']['nodeBefore'];_0x15f1ec&&_0x15f1ec[0x0]&&!0x1===_0x15f1ec[0x0]['forceValue']&&(_0x3a5ccb=_0x17483c[0x0]['start']['nodeAfter']);const _0x37ec5f=_0x1b2f7b['createRangeIn'](_0x3a5ccb);if('$graveyard'==_0x37ec5f['root']['rootName'])return;const _0x336c00=Array['from'](_0x2c773d['getRanges']())['map'](_0x450ca7=>_0x95b134['fromRange'](_0x450ca7));_0x1b2f7b['setSelection'](_0x37ec5f),_0x77fe9d['commands']['get'](_0x575e40)['refresh'](),_0x15f1ec['push']({'forceDefaultExecution':!0x0}),_0x77fe9d['execute'](_0x575e40,..._0x15f1ec);const _0x11efdb=_0x336c00['filter'](_0x2347fc=>'$graveyard'!=_0x2347fc['root']['rootName']);_0x11efdb['length']>0x0&&_0x1b2f7b['setSelection'](_0x11efdb);for(const _0x271cd2 of _0x336c00)_0x271cd2['detach']();});};}['_getCoordsForCells'](_0x71e1f2){const _0x4f6d41=this['editor']['plugins']['get']('TableUtils');let _0x422d23=Number['MAX_SAFE_INTEGER'],_0x2f8114=Number['MIN_SAFE_INTEGER'],_0x4a9506=Number['MAX_SAFE_INTEGER'],_0x491af2=Number['MIN_SAFE_INTEGER'];for(const _0x244913 of _0x71e1f2){if('$graveyard'==_0x244913['root']['rootName'])continue;const {row:_0x3ef0f6,column:_0x404b7a}=_0x4f6d41['getCellLocation'](_0x244913),_0x471816=_0x244913['hasAttribute']('rowspan')?_0x244913['getAttribute']('rowspan')-0x1:0x0,_0x4e3d68=_0x244913['hasAttribute']('colspan')?_0x244913['getAttribute']('colspan')-0x1:0x0;_0x422d23=_0x3ef0f6<_0x422d23?_0x3ef0f6:_0x422d23,_0x2f8114=_0x3ef0f6+_0x471816>_0x2f8114?_0x3ef0f6+_0x471816:_0x2f8114,_0x4a9506=_0x404b7a<_0x4a9506?_0x404b7a:_0x4a9506,_0x491af2=_0x404b7a+_0x4e3d68>_0x491af2?_0x404b7a+_0x4e3d68:_0x491af2;}return{'minRow':_0x422d23,'maxRow':_0x2f8114,'minColumn':_0x4a9506,'maxColumn':_0x491af2};}['_setupColumnsRowsFixing'](){const _0x1f246e=this['editor'],_0x35d5ab=_0x1f246e['plugins']['get']('TrackChangesEditing'),_0x1da149=_0x1f246e['plugins']['get']('TableUtils');_0x1f246e['model']['document']['on']('change:data',()=>{const _0x28e9e4=Array['from'](_0x1f246e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x463e84,data:_0x21f046}of _0x28e9e4){const {group:_0x133cf7,id:_0x40489f,subType:_0x31b6e6}=_0x35d5ab['_splitMarkerName'](_0x463e84);if('suggestion'!=_0x133cf7)continue;if(null!=_0x21f046['oldRange'])continue;const _0x48dfd1=_0x35d5ab['getSuggestion'](_0x40489f);this['_tablePostFixingSubtypes']['includes'](_0x31b6e6)&&this['_tableSuggestions']['add'](_0x48dfd1);}},{'priority':'low'});const _0x2de3ec=(_0x3e342c,_0x2998e4)=>{let _0x11f817=!0x1;const _0x53adff=_0x2998e4['createRangeOn'](_0x3e342c),_0x440dfa=_0x3e342c['findAncestor']('table'),_0x13e97=_0x1da149['getCellLocation'](_0x3e342c);for(const _0x56f778 of this['_tableSuggestions']){const _0x1e0278=_0x56f778['subType'],_0x4caa90=_0x1e0278['startsWith']('tablePaste'),_0x5e67a0=_0x1e0278['substr'](_0x4caa90?0xa:0x5),_0x20925a=_0x5e67a0['toLowerCase'](),_0x374549=_0x20925a['substr'](0x0,0x3)+'span',_0x1a4d63='min'+_0x5e67a0,_0x38ef5f='max'+_0x5e67a0;if(!_0x56f778['isInContent'])continue;if(_0x440dfa!=_0x56f778['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x56f778['isIntersectingWithRange'](_0x53adff))continue;const _0x4c419b=_0x3e342c['hasAttribute'](_0x374549)?_0x3e342c['getAttribute'](_0x374549)-0x1:0x0,_0x52c321=this['_getSuggestionCoords'](_0x56f778),_0x5d8e3c=_0x52c321[_0x1a4d63],_0x2578ee=_0x52c321[_0x38ef5f];_0x5d8e3c<=_0x13e97[_0x20925a]&&_0x13e97[_0x20925a]+_0x4c419b<=_0x2578ee&&(_0x56f778['addRange'](_0x53adff),_0x11f817=!0x0);}return _0x11f817;};_0x1f246e['model']['document']['registerPostFixer'](_0x54e7e4=>{let _0x566d2d=!0x1;for(const _0x2503ec of _0x1f246e['model']['document']['differ']['getChanges']())if('insert'==_0x2503ec['type']){if('tableRow'==_0x2503ec['name']){for(const _0x47bcc8 of _0x2503ec['position']['nodeAfter']['getChildren']())_0x566d2d=_0x566d2d||_0x2de3ec(_0x47bcc8,_0x54e7e4);}else'tableCell'==_0x2503ec['name']&&(_0x566d2d=_0x566d2d||_0x2de3ec(_0x2503ec['position']['nodeAfter'],_0x54e7e4));}return _0x566d2d;});}['_getSuggestionCoords'](_0x2262dd){return this['_getCoordsForCells'](_0x2262dd['getRanges']()['map'](_0x5b47ae=>_0x5b47ae['start']['nodeAfter']));}}function _e(_0x2741f4){return Array['from'](new Set(_0x2741f4)['values']());}class $t extends _0x2e8ec7{static get['requires'](){return[Nt];}['afterInit'](){const _0x1db2bd=this['editor'],_0x5664cb=_0x1db2bd['model']['document']['selection'],_0x1ae81e=_0x1db2bd['locale'];if(!_0x1db2bd['plugins']['has']('TableEditing'))return;const _0x22c9cf=_0x1db2bd['plugins']['get']('TrackChangesEditing'),_0x54b967=_0x1db2bd['plugins']['get']('TableUtils'),_0x2dc8ae=_0x1db2bd['plugins']['get'](Nt);_0x2dc8ae['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x22c9cf['enableCommand']('mergeTableCells',()=>{const _0x325ae6=_0x54b967['getSelectionAffectedTableCells'](_0x1db2bd['model']['document']['selection']);_0x1db2bd['model']['change'](()=>{_0x22c9cf['markMultiRangeBlockFormat'](_0x325ae6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1db2bd['commands']['get']('mergeTableCells')['on']('execute',(_0x4e1da1,_0x130f00)=>{_0x1db2bd['commands']['get']('trackChanges')['value']&&(_0x130f00['length']>0x0&&_0x130f00[_0x130f00['length']-0x1]&&_0x130f00[_0x130f00['length']-0x1]['forceDefaultExecution']||_0x22c9cf['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4e1da1['stop']());},{'priority':'highest'});for(const _0x349325 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2ee855=_0x1db2bd['commands']['get'](_0x349325);_0x22c9cf['enableCommand'](_0x349325,()=>{const _0xbc3775=_0x1db2bd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x25905d=>_0x25905d['is']('element','tableCell')),_0x2ae37d=_0x2ee855['value'];_0x1db2bd['model']['change'](()=>{_0x22c9cf['markMultiRangeBlockFormat']([_0xbc3775,_0x2ae37d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x435710 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x179231=_0x1db2bd['commands']['get'](_0x435710);_0x22c9cf['enableCommand'](_0x435710,()=>{const _0x158f88=_0x54b967['getSelectionAffectedTableCells'](_0x1db2bd['model']['document']['selection'])[0x0],_0xfcdd44=_0x158f88['findAncestor']('table'),{column:_0x3d7ea8,row:_0x1df77f}=_0x54b967['getCellLocation'](_0x158f88);let _0x4693f5=[];if('horizontally'==_0x179231['direction']){const _0x43c831=_0x54b967['createTableWalker'](_0xfcdd44,{'startRow':_0x1df77f,'endRow':_0x1df77f,'includeAllSlots':!0x0});_0x4693f5=Array['from'](_0x43c831)['map'](_0x53360e=>_0x53360e['cell']);}else{const _0x1966a7=_0x54b967['createTableWalker'](_0xfcdd44,{'column':_0x3d7ea8,'includeAllSlots':!0x0});_0x4693f5=Array['from'](_0x1966a7)['map'](_0x38bce2=>_0x38bce2['cell']);}_0x1db2bd['model']['change'](_0x2569aa=>{_0x22c9cf['markBlockFormat'](_0x2569aa['createRangeOn'](_0x158f88),{'commandName':_0x435710,'commandParams':[]},_0x4693f5,_0x435710);});});}_0x22c9cf['descriptionFactory']['registerDescriptionCallback'](_0x40a305=>{if('formatBlock'!=_0x40a305['type']&&'formatInline'!=_0x40a305['type'])return;const {data:_0x55b392}=_0x40a305;return _0x55b392&&'mergeTableCells'==_0x55b392['commandName']?{'type':'format','content':o(_0x1ae81e,'*Merge\x20cells*')}:void 0x0;}),_0x22c9cf['descriptionFactory']['registerDescriptionCallback'](_0x1a538=>{if('formatBlock'!=_0x1a538['type']&&'formatInline'!=_0x1a538['type'])return;const {data:_0x158bdb}=_0x1a538;return _0x158bdb?'splitTableCellVertically'==_0x158bdb['commandName']?{'type':'format','content':o(_0x1ae81e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x158bdb['commandName']?{'type':'format','content':o(_0x1ae81e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xa33850=_0x2dc8ae['_acceptFormatSuggestionCallbackFactory']();for(const _0x4ca541 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x22c9cf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ca541,'accept',_0xa33850);for(const _0x3483b4 of['splitTableCellVertically','splitTableCellHorizontally'])_0x22c9cf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3483b4,'accept',_0xa33850);_0x22c9cf['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x52d64b=>{_0x1db2bd['model']['change'](_0x76b23a=>{const _0x159a89=Array['from'](_0x5664cb['getRanges']())['map'](_0x2a9c2f=>_0x95b134['fromRange'](_0x2a9c2f));_0x76b23a['setSelection'](_0x52d64b),_0x1db2bd['commands']['get']('mergeTableCells')['refresh'](),_0x1db2bd['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2d42e3=_0x159a89['filter'](_0x3cf7e1=>'$graveyard'!=_0x3cf7e1['root']['rootName']);_0x2d42e3['length']>0x0&&_0x76b23a['setSelection'](_0x2d42e3);for(const _0x3f370e of _0x159a89)_0x3f370e['detach']();});});for(const _0x3ac898 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x443751=_0x1db2bd['commands']['get'](_0x3ac898);_0x443751['on']('set:isEnabled',(_0x189141,_0x2ff0d5,_0x1c07e4)=>{if(_0x1c07e4){const _0x26a7b4=_0x1db2bd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x188b9c=>_0x188b9c['is']('element','tableCell'));this['_areMergableCells'](_0x443751['value'],_0x26a7b4)||(_0x189141['return']=!0x1,_0x189141['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x249577=this['editor']['commands']['get']('mergeTableCells'),_0x781d23=this['editor']['plugins']['get']('TableUtils');if(!_0x249577['isEnabled'])return!0x1;const _0x46f6d3=_0x781d23['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x845b35 of _0x46f6d3)for(const _0x3d88ae of _0x46f6d3)if(_0x845b35!=_0x3d88ae&&!this['_areMergableCells'](_0x845b35,_0x3d88ae))return!0x1;return!0x0;}['_areMergableCells'](_0x5e5d42,_0x1b00b4){const _0x3974bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x272e73=this['editor']['model']['createRangeOn'](_0x5e5d42),_0x5146c6=this['editor']['model']['createRangeOn'](_0x1b00b4),_0x3789ae=new Set(),_0x1d50e1=new Set();for(const _0x567989 of _0x3974bb['getSuggestions']())if(('insertion'==_0x567989['type']||'deletion'==_0x567989['type']||'mergeTableCells'==_0x567989['subType'])&&_0x567989['isInContent']){for(const _0x36b4c7 of _0x567989['getRanges']())_0x36b4c7['containsRange'](_0x272e73,!0x0)&&_0x3789ae['add'](_0x567989['type']+':'+_0x567989['author']['id']),_0x36b4c7['containsRange'](_0x5146c6,!0x0)&&_0x1d50e1['add'](_0x567989['type']+':'+_0x567989['author']['id']);}if(_0x3789ae['size']!=_0x1d50e1['size'])return!0x1;for(const _0x513c01 of _0x3789ae)if(!_0x1d50e1['has'](_0x513c01))return!0x1;return!0x0;}}class vt extends _0x2e8ec7{static get['requires'](){return[Nt];}['afterInit'](){const _0x4d224e=this['editor'];if(!_0x4d224e['plugins']['has']('TableEditing'))return;const _0x181fb3=_0x4d224e['locale'],_0x2f357f=_0x4d224e['plugins']['get']('TrackChangesEditing');_0x2f357f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2f357f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2f357f['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x181fb3,'FORMAT_HEADER_ROW')),_0x2f357f['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x181fb3,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1dd134=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20cbcf=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x1dd134['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x20cbcf),_0x1dd134['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x20cbcf),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0xb24f9a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x69c134=this['editor']['plugins']['get']('TableUtils');function _0x38a128({showActiveMarker:_0xa21daa=!0x0,setDataAttribute:_0x43cc3a=!0x0}={}){return(_0x542bf3,_0x19eba7,_0x199b21)=>{const {type:_0x258116,id:_0x592cbb}=_0xb24f9a['_splitMarkerName'](_0x19eba7['markerName']);if(!_0xb24f9a['hasSuggestion'](_0x592cbb))return;const _0x2db62e=_0xb24f9a['getSuggestion'](_0x592cbb),_0x188c73=_0x2db62e['data'];if('formatBlock'!=_0x2db62e['type']||!_0x188c73||'setTableColumnHeader'!=_0x188c73['commandName'])return;if(_0x19eba7['item'])return void _0x542bf3['stop']();if(!_0x199b21['consumable']['consume'](_0x19eba7['markerRange'],_0x542bf3['name']))return;const _0x497c92=_0x19eba7['markerRange']['start']['nodeAfter'],_0x33f66=_0x19eba7['markerRange']['end']['nodeBefore'],_0x1bea58=_0x497c92['parent']['parent'],{column:_0x1c65c4}=_0x69c134['getCellLocation'](_0x497c92),{column:_0x16a1ca}=_0x69c134['getCellLocation'](_0x33f66);for(let _0x5f1bce=_0x1c65c4;_0x5f1bce<=_0x16a1ca;_0x5f1bce++){const _0x58dd85=_0x69c134['createTableWalker'](_0x1bea58,{'column':_0x5f1bce,'includeAllSlots':!0x1});for(const _0x4fca84 of _0x58dd85){const _0x5555bb=_0x4fca84['cell'],_0x143d91=_0x199b21['mapper']['toViewElement'](_0x5555bb);_0x199b21['writer']['addClass']('ck-suggestion-marker-'+_0x258116,_0x143d91),_0x43cc3a&&_0x199b21['writer']['setAttribute']('data-suggestion',_0x592cbb,_0x143d91),_0x199b21['mapper']['bindElementToMarker'](_0x143d91,_0x19eba7['markerName']),_0xa21daa&&(_0xb24f9a['activeMarkers']['includes'](_0x19eba7['markerName'])?_0x199b21['writer']['addClass']('ck-suggestion-marker--active',_0x143d91):_0x199b21['writer']['removeClass']('ck-suggestion-marker--active',_0x143d91));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x38a128(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e31d9,_0x46d44a,_0x5f339e)=>{_0x5f339e['options']['showSuggestionHighlights']&&_0x38a128({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1e31d9,_0x46d44a,_0x5f339e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x14272b,_0x11b467,_0x215935)=>{const {type:_0x832924,id:_0x20f1a8}=_0xb24f9a['_splitMarkerName'](_0x11b467['markerName']);if(!_0xb24f9a['hasSuggestion'](_0x20f1a8))return;const _0x34f16b=_0xb24f9a['getSuggestion'](_0x20f1a8),_0x7726b4=_0x34f16b['data'];if('formatBlock'!=_0x34f16b['type']||!_0x7726b4||'setTableColumnHeader'!=_0x7726b4['commandName'])return;const _0x49ac1d=_0x215935['mapper']['markerNameToElements'](_0x11b467['markerName']);if(_0x49ac1d){for(const _0x201e39 of _0x49ac1d)_0x215935['writer']['removeClass']('ck-suggestion-marker-'+_0x832924,_0x201e39),_0x215935['writer']['removeClass']('ck-suggestion-marker--active',_0x201e39),_0x215935['writer']['removeAttribute']('data-suggestion',_0x201e39),_0x215935['mapper']['unbindElementFromMarkerName'](_0x201e39,_0x11b467['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x148647=this['editor'],_0x53a2a8=_0x148647['locale'];function _0x36dcbe(_0x2c96de){return{'type':'format','content':o(_0x53a2a8,'*Format:*\x20%0',_0x2c96de)};}_0x148647['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fe44f=>{if('formatBlock'!=_0x1fe44f['type'])return;const {data:_0x209195}=_0x1fe44f;if(_0x209195){if('setTableRowHeader'==_0x209195['commandName']){const _0x5a833b=_0x209195['commandParams'][0x0]['forceValue'];return _0x36dcbe(o(_0x53a2a8,_0x5a833b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x209195['commandName']){const _0x282ce9=_0x209195['commandParams'][0x0]['forceValue'];return _0x36dcbe(o(_0x53a2a8,_0x282ce9?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x2e8ec7{['afterInit'](){const _0x10b1e1=this['editor'],_0x2e232e=_0x10b1e1['locale'],_0x357e59=_0x10b1e1['plugins']['get']('TrackChangesEditing');function _0x584096(_0x38a9ed){return{'type':'format','content':''+o(_0x2e232e,'*Set\x20table\x20type:*\x20%0',_0x38a9ed)};}_0x10b1e1['plugins']['has']('TableLayout')&&(_0x357e59['enableCommand']('insertTableLayout'),_0x357e59['enableDefaultAttributesIntegration']('tableType'),_0x357e59['descriptionFactory']['registerElementLabel'](_0x3a28b6=>_0x3a28b6['is']('element','table')&&'layout'===_0x3a28b6['getAttribute']('tableType'),_0x1db4d0=>o(_0x2e232e,'ELEMENT_LAYOUT_TABLE',_0x1db4d0)),_0x357e59['descriptionFactory']['registerDescriptionCallback'](_0x4ee433=>{const {data:_0x789134}=_0x4ee433;if(_0x789134&&'tableType'==_0x789134['key'])switch(_0x789134['newValue']){case'layout':return _0x584096(o(_0x2e232e,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x584096(o(_0x2e232e,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Re['map'](_0x1d5ea9=>[_0x1d5ea9,null]));class Bt extends _0x2e8ec7{static get['requires'](){return[Nt];}['afterInit'](){const _0x383cfa=this['editor'];if(!_0x383cfa['plugins']['has']('TableClipboard'))return;const _0x26b41d=_0x383cfa['plugins']['get']('TrackChangesEditing'),_0x3cceb7=_0x383cfa['plugins']['get']('TableUtils'),_0x575ccb=_0x383cfa['plugins']['get'](Nt),_0x3f3e2f=_0x383cfa['plugins']['get']('TableClipboard'),_0x38827c=_0x383cfa['plugins']['get']('TableSelection'),_0x3ee1ae=_0x383cfa['plugins']['get'](_0x2d2859);_0x575ccb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x383cfa['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x383cfa['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1ea4a7=null,_0x33be89=!0x1;_0x3ee1ae['on']('contentInsertion',(_0x424b87,_0x4a661b)=>{_0x33be89='paste'===_0x4a661b['method'];}),_0x383cfa['model']['on']('insertContent',(_0x3f7828,_0x4f35c2)=>{if(!_0x33be89&&null===_0x38827c['getSelectedTableCells']())return;const [_0x42b2d3,_0x169beb]=_0x4f35c2,_0x4f8f6c=_0x4f35c2[_0x4f35c2['length']-0x1];_0x4f8f6c&&_0x4f8f6c['forceDefaultExecution']||_0x26b41d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5cf96f,_0x46dd6b,_0x47d6ac,_0x28da2b,_0x30f309){if(_0x46dd6b&&!_0x46dd6b['is']('documentSelection'))return!0x1;const _0x1bbc3b=_0x30f309['getTableIfOnlyTableInContent'](_0x5cf96f,_0x47d6ac);if(!_0x1bbc3b||!Oe(_0x1bbc3b,void 0x0,_0x28da2b))return!0x1;const _0x3c145e=_0x28da2b['getSelectionAffectedTableCells'](_0x47d6ac['document']['selection']);if(!_0x3c145e['length'])return!0x1;const _0x3dfff7=_0x3c145e[0x0]['findAncestor']('table'),_0x4a4516=_0x28da2b['getRowIndexes'](_0x3c145e),_0x5cf933=_0x28da2b['getColumnIndexes'](_0x3c145e),_0x4f1f33={'startRow':_0x4a4516['first'],'endRow':_0x4a4516['last'],'startColumn':_0x5cf933['first'],'endColumn':_0x5cf933['last']};return 0x1==_0x3c145e['length']&&(_0x4f1f33['endRow']+=_0x28da2b['getRows'](_0x1bbc3b)-0x1,_0x4f1f33['endColumn']+=_0x28da2b['getColumns'](_0x1bbc3b)-0x1),Oe(_0x3dfff7,_0x4f1f33,_0x28da2b);}(_0x42b2d3,_0x169beb,_0x383cfa['model'],_0x3cceb7,_0x3f3e2f)&&(_0x3f7828['stop'](),_0x1ea4a7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x383cfa['model']['change'](()=>{_0x383cfa['model']['insertContent'](_0x4f35c2[0x0],_0x4f35c2[0x1],_0x4f35c2[0x2],{'forceDefaultExecution':!0x0});const _0x270632=_0x367f2e(),{rowInsertionRanges:_0x4a8acc,columnInsertionRanges:_0x279be8,insertionRanges:_0x595869,deletionRanges:_0x3277f7,cells:_0x5aae4e}=_0x1ea4a7;_0x4a8acc['length']&&_0x26b41d['markMultiRangeInsertion'](_0x4a8acc,'tablePasteRow',{'tablePasteChainId':_0x270632}),_0x279be8['length']&&_0x26b41d['markMultiRangeInsertion'](_0x279be8,'tablePasteColumn',{'tablePasteChainId':_0x270632}),_0x595869['length']&&(_0x26b41d['markMultiRangeInsertion'](_0x595869,'tablePaste',{'tablePasteChainId':_0x270632,'skipNestingCheck':!0x0}),_0x595869['forEach'](_0x9c415=>_0x9c415['detach']?.())),_0x3277f7['length']&&(_0x26b41d['markMultiRangeDeletion'](_0x3277f7,'tablePaste',{'tablePasteChainId':_0x270632,'skipNestingCheck':!0x0}),_0x3277f7['forEach'](_0x2f051f=>_0x2f051f['detach']?.()));const _0x1ab134=_0x26b41d['markMultiRangeBlockFormat'](_0x5aae4e['map'](({element:_0x3f2d70})=>_0x3f2d70),{'formatGroupId':_0x367f2e()},[],'tablePasteCell',{'tablePasteChainId':_0x270632});if(_0x1ab134){const _0x579e94=_0x1ab134['getMarkers'](),_0x2c66d0=[];for(const {element:_0x16d731,attributes:_0xcf1437}of _0x5aae4e){if(!_0xcf1437)continue;const _0x464fed=_0x383cfa['model']['createRangeOn'](_0x16d731),_0x12c864=_0x579e94['find'](_0x3c71f8=>_0x3c71f8['getRange']()['isEqual'](_0x464fed));_0x12c864&&_0x2c66d0['push']([_0x12c864['name'],_0xcf1437]);}_0x2c66d0['length']&&_0x1ab134['setAttribute']('markerAttributes',Object['fromEntries'](_0x2c66d0));}_0x1ea4a7=null;}));},{'priority':_0x15ca84['high']+0xa}),_0x3ee1ae['on']('contentInsertion',()=>{_0x33be89=!0x1;},{'priority':'lowest'}),_0x383cfa['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5cf6e5,_0x557a0a)=>{const [_0x54051f,_0xdcb4c3,,_0x400680]=_0x557a0a;if(!_0x1ea4a7)return;_0x5cf6e5['stop']();const _0x472f15=_0x54051f['cell'],_0x2e2e25=_0xdcb4c3,_0x2f0164=Be(_0x472f15),_0x5c2c6b=Be(_0x2e2e25);_0x5cf6e5['return']=_0x472f15;let _0x52eb94=null,_0x19d155=null;if(_0x5c2c6b||_0x2f0164){if(_0x2f0164&&!_0x5c2c6b){_0x400680['remove'](_0x472f15['getChild'](0x0));for(const _0x15a772 of Array['from'](_0x2e2e25['getChildren']()))_0x400680['insert'](_0x15a772,_0x472f15,'end');const _0x5bd327=_0x1ea4a7['rowInsertionIndexes']['includes'](_0x54051f['row']),_0x38e6b4=_0x1ea4a7['columnInsertionIndexes']['includes'](_0x54051f['column']);_0x5bd327||_0x38e6b4||(_0x52eb94=_0x95b134['fromRange'](_0x400680['createRangeIn'](_0x472f15)));}else _0x5c2c6b&&!_0x2f0164&&(_0x19d155=_0x400680['createRangeIn'](_0x472f15));}else{const _0x3bb874=_0x400680['createElement']('tableCellSuggestion'),_0x48560d=_0x400680['createElement']('tableCellSuggestion');_0x400680['wrap'](_0x400680['createRangeIn'](_0x472f15),_0x48560d),_0x400680['insert'](_0x3bb874,_0x472f15,0x0);for(const _0x292662 of Array['from'](_0x2e2e25['getChildren']()))_0x400680['insert'](_0x292662,_0x3bb874,'end');_0x52eb94=_0x95b134['fromRange'](_0x400680['createRangeOn'](_0x3bb874)),_0x19d155=_0x95b134['fromRange'](_0x400680['createRangeOn'](_0x48560d));}const _0x510f58=Array['from'](_0x2e2e25['getAttributes']())['filter'](([_0xf68c4])=>Re['includes'](_0xf68c4));_0x1ea4a7['cells']['push']({'element':_0x472f15,'attributes':_0x510f58['length']?Object['fromEntries'](_0x510f58):null}),_0x52eb94&&_0x1ea4a7['insertionRanges']['push'](_0x52eb94),_0x19d155&&_0x1ea4a7['deletionRanges']['push'](_0x19d155);},{'priority':'high'}),_0x3cceb7['on']('insertColumns',(_0x254b9a,_0x487169)=>{const [_0x2d80dd,_0x1c89ea={}]=_0x487169;if(!_0x1ea4a7)return;const _0x2e1255=_0x1c89ea['at']||0x0,_0x194e6d=_0x1c89ea['columns']||0x1;_0x1ea4a7['columnInsertionIndexes']=new Array(_0x194e6d)['fill'](_0x2e1255)['map']((_0x8c89f4,_0x29acfd)=>_0x8c89f4+_0x29acfd);for(const {cell:_0x3a3a33}of _0x3cceb7['createTableWalker'](_0x2d80dd,{'startColumn':_0x2e1255,'endColumn':_0x2e1255+_0x194e6d-0x1}))_0x1ea4a7['columnInsertionRanges']['push'](_0x383cfa['model']['createRangeOn'](_0x3a3a33));},{'priority':'low'}),_0x3cceb7['on']('insertRows',(_0x51c59d,_0x3ce445)=>{const [_0x1c8dde,_0x4ca6ac={}]=_0x3ce445;if(!_0x1ea4a7)return;const _0x469132=_0x4ca6ac['at']||0x0,_0x5965d8=_0x4ca6ac['rows']||0x1;_0x1ea4a7['rowInsertionIndexes']=new Array(_0x5965d8)['fill'](_0x469132)['map']((_0x3626f0,_0x4c862c)=>_0x3626f0+_0x4c862c);for(const {cell:_0x50e193}of _0x3cceb7['createTableWalker'](_0x1c8dde,{'startRow':_0x469132,'endRow':_0x469132+_0x5965d8-0x1}))_0x1ea4a7['rowInsertionRanges']['push'](_0x383cfa['model']['createRangeOn'](_0x50e193));},{'priority':'low'}),_0x26b41d['descriptionFactory']['registerDescriptionCallback'](_0x5eff9d=>{if(_0x5eff9d['subType']&&_0x5eff9d['subType']['startsWith']('tablePaste'))return _0x5eff9d['previous']?{}:{'type':'insertion','content':o(_0x383cfa['locale'],'*Replace\x20table\x20cells*')};});const _0x197d66=()=>!0x1;for(const _0x3b81a1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x26b41d['_suggestionFactory']['registerCustomCallback']('insertion',_0x3b81a1,'join',_0x197d66),_0x26b41d['_suggestionFactory']['registerCustomCallback']('deletion',_0x3b81a1,'join',_0x197d66),_0x26b41d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3b81a1,'join',_0x197d66);_0x26b41d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x197d66),_0x26b41d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xdea8ad,_0x248ab7,_0x3e33d9)=>{const _0x4527d1=_0xdea8ad['map'](_0x50a16c=>_0x50a16c['getContainedElement']())['filter'](_0x507524=>_0x507524),_0x28e82c=new Map(_0x4527d1['map'](_0x424014=>[_0x424014,null]));if(_0x1ea4a7){for(const {element:_0x41ab23,attributes:_0x29cc86}of _0x1ea4a7['cells'])_0x29cc86&&_0x28e82c['set'](_0x41ab23,_0x29cc86);}else{if(_0x3e33d9&&_0x3e33d9['markerAttributes'])for(const [_0x16beb4,_0x12b9c4]of Object['entries'](_0x3e33d9['markerAttributes'])){const _0x3a5a2a=_0x383cfa['model']['markers']['get'](_0x16beb4),_0x225b91=_0x3a5a2a?_0x3a5a2a['getRange']()['getContainedElement']():null;_0x225b91&&_0x28e82c['set'](_0x225b91,_0x12b9c4);}}_0x383cfa['model']['change'](_0x17d6bc=>{for(const [_0xb1057a,_0x127bd2]of _0x28e82c)_0x17d6bc['setAttributes']({...Ae,..._0x127bd2},_0xb1057a);});});const _0x2453ae=(_0x282c0d,_0x2433c5)=>{_0x26b41d['_suggestionFactory']['registerCustomCallback'](_0x282c0d,'tablePaste',_0x2433c5,(_0x415d4c,_0x1b6d31,_0xe60403)=>{_0x383cfa['model']['change'](_0x6139ac=>{const _0x112a46=[];for(const _0x124c30 of _0x415d4c){const _0x2f5ac2=_0x124c30['start']['nodeAfter'];_0x2f5ac2['is']('element','tableCellSuggestion')&&_0x112a46['push'](_0x2f5ac2);}_0x26b41d['_suggestionFactory']['getSuggestionCallback'](_0x282c0d,null,_0x2433c5)(_0x415d4c,_0x1b6d31,_0xe60403);for(const _0x57b7a5 of _0x112a46)'$graveyard'!=_0x57b7a5['root']['rootName']&&_0x6139ac['unwrap'](_0x57b7a5);});});};_0x2453ae('insertion','accept'),_0x2453ae('insertion','discard'),_0x2453ae('deletion','accept'),_0x2453ae('deletion','discard'),_0x26b41d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1ae825=>{const _0x422638=_0x1ae825['map'](_0x5dc80b=>_0x5dc80b['getContainedElement']()),_0x4ef9dc=_0x422638[0x0]['findAncestor']('table'),{minRow:_0x5152bb,maxRow:_0x2ae741}=_0x575ccb['_getCoordsForCells'](_0x422638);_0x3cceb7['removeRows'](_0x4ef9dc,{'at':_0x5152bb,'rows':_0x2ae741-_0x5152bb+0x1});}),_0x26b41d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x27febe=>{const _0x3e876a=_0x27febe['map'](_0x32b36d=>_0x32b36d['getContainedElement']()),_0x3a9488=_0x3e876a[0x0]['findAncestor']('table'),{minColumn:_0x3de7fd,maxColumn:_0x23673a}=_0x575ccb['_getCoordsForCells'](_0x3e876a);_0x3cceb7['removeColumns'](_0x3a9488,{'at':_0x3de7fd,'columns':_0x23673a-_0x3de7fd+0x1});});const _0x425919=(_0x574018,_0x3728ca)=>{if(!_0x3728ca['subType']||!_0x3728ca['subType']['startsWith']('tablePaste'))return;const _0x481f96=_0x3728ca['attributes']['tablePasteChainId'],_0x2dbaea=_0x26b41d['getSuggestions']()['filter'](_0x5743cf=>_0x5743cf['isInContent']&&_0x5743cf['attributes']&&_0x5743cf['attributes']['tablePasteChainId']==_0x481f96);_0x2dbaea['length']&&_0x3728ca['getAllAdjacentSuggestions']()['length']!=_0x2dbaea['length']&&_0x2dbaea['reduce']((_0x2f0d17,_0x423880)=>(_0x2f0d17['next']=_0x423880,_0x423880['previous']=_0x2f0d17,_0x423880));};function _0x5ee807(_0x5b578a,_0x24888d=!0x0){const {id:_0x271abd,authorId:_0x4b3dd9}=_0x26b41d['_splitMarkerName'](_0x5b578a['markerName']),_0x461488=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1ef357=_0x26b41d['activeMarkers']['includes'](_0x5b578a['markerName']);return _0x1ef357&&_0x461488['push']('ck-suggestion-marker--active'),{'classes':_0x461488,'attributes':{'data-suggestion':_0x271abd,'data-author-id':_0x4b3dd9},'priority':_0x1ef357&&_0x24888d?0xbc2:0xbb8};}_0x26b41d['on']('suggestionLoaded',_0x425919,{'priority':'high'}),_0x26b41d['on']('suggestionUnloaded',_0x425919,{'priority':'high'}),_0x383cfa['model']['document']['registerPostFixer'](()=>{let _0x363133=!0x1;const _0x1d4293=Array['from'](_0x383cfa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x547da0,data:_0xc17a7f}of _0x1d4293){const {group:_0x98bc6f,type:_0x1871ee,id:_0x74be6b}=_0x26b41d['_splitMarkerName'](_0x547da0);if('suggestion'!=_0x98bc6f||'deletion'!=_0x1871ee||_0xc17a7f['oldRange'])continue;if(!_0x26b41d['hasSuggestion'](_0x74be6b))continue;const _0x1aa65e=_0x26b41d['getSuggestion'](_0x74be6b)['getRanges'](),_0x497dd3=_0x383cfa['plugins']['get']('Users')['me'];for(const _0x3497a8 of _0x26b41d['getSuggestions']()){if(!_0x3497a8['isInContent']||_0x3497a8['author']!=_0x497dd3)continue;if('formatBlock'!=_0x3497a8['type']||'tablePasteCell'!=_0x3497a8['subType'])continue;if(_0x3497a8['getRanges']()['every'](_0x34a5ee=>_0x1aa65e['some'](_0x33d632=>_0x33d632['containsRange'](_0x34a5ee,!0x0)))){for(const _0x530970 of _0x3497a8['getAllAdjacentSuggestions']())_0x530970['isInContent']&&(_0x530970['discard'](),_0x363133=!0x0);}}}return _0x363133;}),_0x383cfa['model']['document']['registerPostFixer'](_0x143882=>{const _0x4ed60c=_0x383cfa['commands']['get']('redo');if(!_0x4ed60c||!_0x4ed60c['_createdBatches']['has'](_0x143882['batch']))return!0x1;let _0x32ed00=!0x1;const _0x1f3d25=_0x383cfa['plugins']['get']('Users')['me'],_0x4b9cef=_0x383cfa['model']['document']['differ']['getChanges'](),_0x4d9f74=Array['from'](_0x383cfa['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3a04d8,data:_0xa2aad1})=>{const {group:_0x3de23a,subType:_0x29aacb,authorId:_0x43a6a0}=_0x26b41d['_splitMarkerName'](_0x3a04d8);return'suggestion'==_0x3de23a&&'tablePaste'==_0x29aacb&&_0x43a6a0==_0x1f3d25['id']&&!_0xa2aad1['oldRange'];});for(const _0x223b25 of _0x4b9cef){if('insert'!=_0x223b25['type']||'tableCellSuggestion'!=_0x223b25['name']||0x1!=_0x223b25['length'])continue;const _0x68bb11=_0x143882['createRange'](_0x223b25['position'],_0x223b25['position']['getShiftedBy'](0x1));if(!_0x4d9f74['find'](({data:_0x662aa4})=>_0x662aa4['newRange']['isEqual'](_0x68bb11))){for(const {name:_0x373d9a,data:_0x531b8d}of _0x4d9f74)if(_0x68bb11['containsRange'](_0x531b8d['newRange'])){_0x143882['updateMarker'](_0x373d9a,{'range':_0x68bb11}),_0x32ed00=!0x0;break;}}}return _0x32ed00;}),_0x383cfa['model']['document']['registerPostFixer'](_0x5612ca=>{let _0x362c05=!0x1;const _0x5156ad=_0x383cfa['plugins']['get']('Users')['me'],_0x5df780=_0x26b41d['getSuggestions']()['filter'](_0x20959c=>_0x20959c['isInContent']&&_0x20959c['author']==_0x5156ad),_0x59343a=new Set(),_0x5e516f=new Set();for(const _0x2edf06 of _0x5df780)if('tablePaste'==_0x2edf06['subType'])for(const _0x49ffd0 of _0x2edf06['getMarkers']()){const _0x1dfdf9=_0x49ffd0['getRange']()['getContainedElement']();if(_0x1dfdf9){if(_0x1dfdf9['is']('element','tableCellSuggestion')&&Be(_0x1dfdf9)){_0x2edf06['removeMarker'](_0x49ffd0['name']),_0x59343a['add'](_0x1dfdf9),_0x362c05=!0x0;const _0x22e1d5=_0x1dfdf9['nextSibling'],_0x3b10be=_0x1dfdf9['previousSibling'],_0x1b50b9=_0x22e1d5&&_0x22e1d5['is']('element','tableCellSuggestion'),_0x13a0fa=_0x3b10be&&_0x3b10be['is']('element','tableCellSuggestion');_0x1b50b9&&!_0x59343a['has'](_0x22e1d5)&&_0x5e516f['add'](_0x22e1d5),_0x13a0fa&&!_0x59343a['has'](_0x3b10be)&&_0x5e516f['add'](_0x3b10be);}else _0x1dfdf9['is']('element','paragraph')&&_0x1dfdf9['isEmpty']&&(_0x2edf06['removeMarker'](_0x49ffd0['name']),_0x362c05=!0x0);}}else{if('tablePasteCell'==_0x2edf06['subType']){if(!_0x2edf06['attributes']||!_0x2edf06['attributes']['tablePasteChainId'])continue;const _0xc97406=_0x2edf06['attributes']['markerAttributes'];if(_0xc97406&&Object['keys'](_0xc97406)['length'])continue;const _0x24f09=_0x2edf06['attributes']['tablePasteChainId'];let _0x1813d2=!0x0,_0x2ac99e=!0x0;for(const _0x3e2de2 of _0x5df780)if(_0x3e2de2['subType']&&_0x3e2de2['subType']['startsWith']('tablePaste')){if(!_0x3e2de2['attributes']['tablePasteChainId']){_0x2ac99e=!0x1;break;}if(_0x3e2de2['id']!=_0x2edf06['id']&&_0x3e2de2['attributes']['tablePasteChainId']==_0x24f09){_0x1813d2=!0x1;break;}}_0x2ac99e&&_0x1813d2&&(_0x2edf06['removeMarkers'](),_0x362c05=!0x0);}}for(const _0x4cc29b of _0x59343a)_0x5612ca['remove'](_0x4cc29b);for(const _0x4e0557 of _0x5e516f)_0x5612ca['unwrap'](_0x4e0557);return _0x362c05;}),_0x383cfa['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x242972=>_0x5ee807(_0x242972),'converterPriority':'high'}),_0x383cfa['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1ddf6e,_0x3f60af)=>_0x3f60af['options']['showSuggestionHighlights']?_0x5ee807(_0x1ddf6e,!0x1):null,'converterPriority':'high'});const _0x1fcd0a=_0x383cfa['editing']['view'];this['listenTo'](_0x1fcd0a['document'],'clipboardOutput',(_0x3577fe,_0x1b8ea6)=>{const _0x6fcef6=[];for(const _0x4fb3c5 of _0x1fcd0a['createRangeIn'](_0x1b8ea6['content'])['getItems']())_0x4fb3c5['is']('element','suggestion-td')&&_0x6fcef6['push'](_0x4fb3c5);_0x1fcd0a['change'](_0x1309f3=>{for(const _0x32b80f of _0x6fcef6)_0x1309f3['move'](_0x1309f3['createRangeIn'](_0x32b80f),_0x1309f3['createPositionBefore'](_0x32b80f)),_0x1309f3['remove'](_0x32b80f);});});}}function Be(_0x40cabc){if(_0x40cabc['isEmpty'])return!0x0;const _0x29f034=_0x40cabc['getChild'](0x0);return _0x29f034['is']('element','paragraph')&&_0x29f034['isEmpty'];}function Oe(_0x4690df,_0x5f59ab={},_0x5c8fff){for(const {isAnchor:_0x5ad327,cellHeight:_0x51d634,cellWidth:_0x41241e}of _0x5c8fff['createTableWalker'](_0x4690df,{'includeAllSlots':!0x0,..._0x5f59ab}))if(!_0x5ad327||0x1!=_0x51d634||0x1!=_0x41241e)return!0x1;return!0x0;}class Ot extends _0x2e8ec7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x49d158=this['editor']['plugins']['get']('TrackChangesEditing');_0x49d158['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x49d158['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x49d158['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49d158['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x49d158['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x49d158['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x18b470,_0x11b250){const _0x211f83=this['editor']['plugins']['get']('TrackChangesEditing'),_0x148a1f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x22c270=_0x11b250['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1a4259=_0x148a1f['getColumnGroupElement'](_0x22c270);let _0x2ac595=_0x1a4259?_0x148a1f['getTableColumnsWidths'](_0x1a4259):null,_0x51be93=_0x22c270['getAttribute']('tableWidth')||null;const _0x246e2b=_0x11b250['tableWidth']||_0x51be93,_0x2bb44b=_0x11b250['columnWidths']||_0x2ac595,_0x5bda4d=this['editor']['plugins']['get']('Users')['me'];for(const _0x4958a5 of _0x211f83['getSuggestions']()){const _0x56f562=_0x4958a5['getContainedElement']();if('resizeTable'===_0x4958a5['subType']&&_0x56f562===_0x22c270){_0x4958a5['author']!==_0x5bda4d&&_0x4958a5['discard']();const _0x372a50=_0x4958a5['data']['commandParams'];_0x51be93=_0x372a50[0x0]['tableWidth'],_0x2ac595=_0x372a50[0x0]['columnWidths'];break;}}_0x18b470({'table':_0x22c270,'tableWidth':_0x246e2b,'columnWidths':_0x2bb44b}),_0x211f83['markBlockFormat'](_0x22c270,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x51be93,'columnWidths':_0x2ac595}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x524640){if('formatBlock'!=_0x524640['type']&&'formatInline'!=_0x524640['type'])return;const {data:_0x27bcb4}=_0x524640;if(_0x27bcb4&&'resizeTable'===_0x27bcb4['formatGroupId']){const _0x3a394f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3a394f)};}}}class xt extends _0x2e8ec7{['afterInit'](){const _0x4537ff=this['editor'];_0x4537ff['plugins']['has']('Template')&&_0x4537ff['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2e8ec7{['afterInit'](){const _0x376c21=this['editor'];if(!_0x376c21['commands']['get']('insertTableOfContents'))return;_0x376c21['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5de0bc=_0x376c21['plugins']['get']('TrackChangesEditing'),_0x55c4c4=_0x376c21['locale'];_0x5de0bc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x254cbf=>o(_0x55c4c4,'ELEMENT_TABLE_OF_CONTENTS',_0x254cbf));}}class Rt extends _0x2e8ec7{['afterInit'](){const _0x1fef90=this['editor'];if(!_0x1fef90['plugins']['has']('Title'))return;const _0x5ebd2a=_0x1fef90['plugins']['get']('TrackChangesEditing');_0x5ebd2a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1fef90['locale'],'ELEMENT_TITLE')),_0x1fef90['model']['document']['registerPostFixer'](_0x48f7da=>{let _0x353beb=!0x1;const _0x16315f=Array['from'](_0x1fef90['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb01a70,data:_0xb5c710}of _0x16315f){const {group:_0x226a5f}=_0x5ebd2a['_splitMarkerName'](_0xb01a70);if('suggestion'!==_0x226a5f||!_0xb5c710['newRange'])continue;const _0x2be23a=_0xb5c710['newRange'],_0x5947e9=_0x2be23a['end']['nodeBefore'];if(!_0x5947e9||!_0x5947e9['is']('element','title-content'))continue;if(!_0x2be23a['start']['isTouching'](_0x2be23a['end']))continue;const _0x3fddd1=_0x1fef90['model']['schema']['getNearestSelectionRange'](_0x2be23a['end'],'forward');if(_0x3fddd1&&_0x3fddd1['isCollapsed']){const _0x480c20=_0x48f7da['createRange'](_0x2be23a['start'],_0x3fddd1['start']);_0x480c20['isEqual'](_0x2be23a)||(_0x48f7da['updateMarker'](_0xb01a70,{'range':_0x480c20}),_0x353beb=!0x0);}_0x353beb||(_0x48f7da['removeMarker'](_0xb01a70),_0x353beb=!0x0);}return _0x353beb;});}}class Tt extends _0x2e8ec7{['afterInit'](){const _0x406438=this['editor'],_0x27e7e9=_0x406438['plugins']['get']('TrackChangesEditing');_0x406438['plugins']['has']('Uploadcare')&&(_0x27e7e9['enableCommand']('uploadcare'),_0x406438['plugins']['has']('UploadcareImageEdit')&&(_0x27e7e9['enableCommand']('uploadcareImageEdit'),_0x27e7e9['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x27e7e9['descriptionFactory']['registerDescriptionCallback'](_0xb258ba=>{if('attribute'!=_0xb258ba['type'])return;const {data:_0x2958b0}=_0xb258ba;return _0x2958b0&&'uploadcareImageId'==_0x2958b0['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x2e8ec7{['afterInit'](){const _0x92c274=this['editor'],_0x2cdd25=_0x92c274['plugins']['get']('TrackChangesEditing');_0x92c274['plugins']['has']('UndoEditing')&&(_0x2cdd25['enableCommand']('undo'),_0x2cdd25['enableCommand']('redo'));}}class Ut extends _0x2e8ec7{static get['requires'](){return[Nt];}['afterInit'](){const _0x33d5c6=this['editor'];if(!_0x33d5c6['plugins']['has']('TableCaptionEditing'))return;_0x33d5c6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x2e8ec7{['tableProperties'];['tableCellProperties'];constructor(_0xbbd70){super(_0xbbd70),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0xbbd70['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x577c84=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2b9785 of this['tableProperties'])_0x577c84['enableCommand'](_0x2b9785,(_0x5dbcaf,_0x44e891)=>{const _0x3f3c2f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2b9785,[_0x3f3c2f],this['tableProperties'],'tableProperties',_0x5dbcaf,_0x44e891);});_0x577c84['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x577c84['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x577c84['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x219e03,_0x57bbec)=>this['handleDiscardAction'](this['tableProperties'],_0x219e03,_0x57bbec)),_0x577c84['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xf469b6 of this['tableCellProperties'])this['editor']['commands']['get'](_0xf469b6)&&_0x577c84['enableCommand'](_0xf469b6,(_0xd25cc5,_0x1c1904)=>{const _0x5d638e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xf469b6,_0x5d638e,this['tableCellProperties'],'tableCellProperties',_0xd25cc5,_0x1c1904);});_0x577c84['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x577c84['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x577c84['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2fd957,_0x50ab70)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2fd957,_0x50ab70)),_0x577c84['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&(_0x577c84['registerBlockAttribute']('tableCellType'),_0x577c84['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE')));}_0x577c84['descriptionFactory']['registerDescriptionCallback'](_0x4b1466=>this['handleSuggestionDescription'](_0x4b1466)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x476ea3,_0x495ff1,_0x43d86a,_0x56919d,_0x589e1b,_0x5164b8){const _0x126508=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5164b8['batch'],()=>{for(const _0x4b52f3 of _0x495ff1){if(this['_getSuggestion'](_0x4b52f3,_0x56919d))_0x589e1b(_0x5164b8);else{const _0x7c2e9b={};for(const _0x3200e8 of _0x43d86a){const _0x3d308c=_0x4b52f3['getAttribute'](_0x3200e8);void 0x0!==_0x3d308c&&(_0x7c2e9b[_0x3200e8]=_0x3d308c);}_0x589e1b(_0x5164b8),_0x126508['markBlockFormat'](_0x4b52f3,{'commandParams':[_0x7c2e9b]},[],_0x56919d);}}});}['handleDiscardAction'](_0x2d919d,_0x278a42,_0x1f7874){const _0x209e73=_0x278a42[0x0]['start']['nodeAfter'],_0x503fd6=_0x1f7874['commandParams'][0x0];this['editor']['model']['change'](_0x52693e=>{for(const _0x219eda of _0x2d919d)void 0x0!==_0x503fd6[_0x219eda]?_0x52693e['setAttribute'](_0x219eda,_0x503fd6[_0x219eda],_0x209e73):_0x52693e['removeAttribute'](_0x219eda,_0x209e73);});}['handleSuggestionDescription'](_0x34bac2){if(_0x34bac2['data'])switch(_0x34bac2['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'](_0x1137c0,_0x67bb68){const _0x333155=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5c533d of _0x333155['getSuggestions']({'skipNotAttached':!0x0})){const _0x14192b=_0x5c533d['getContainedElement']();if(_0x5c533d['subType']===_0x67bb68&&_0x14192b===_0x1137c0)return _0x5c533d;}return null;}['_registerTablePropertiesAttributes'](){const _0x34703b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39bcf4=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4a6f2f of _0x39bcf4){const _0x36db73=_0x4a6f2f['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x34703b['descriptionFactory']['registerAttributeLabel'](_0x4a6f2f,o(this['editor']['locale'],'FORMAT_'+_0x36db73));}}}class Ft extends _0x2e8ec7{['afterInit'](){const _0x459220=this['editor'];if(!_0x459220['plugins']['has']('LineHeight'))return;const _0x5303d9=_0x459220['plugins']['get']('TrackChangesEditing'),_0x56fac4=_0x459220['locale'];_0x5303d9['enableDefaultAttributesIntegration']('lineHeight'),_0x5303d9['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x56fac4,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2e8ec7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x9f1e39,_0x4f0225,_0x287d9f,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a5594){super(_0x4a5594),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x282157,_0xa0a7ce,_0x536bf6,_0x24911c)=>{this['_model']['change'](()=>{for(const _0x10f0a6 of[..._0x24911c,..._0x536bf6])this['_model']['markers']['has'](_0x10f0a6)&&_0x4a5594['editing']['reconvertMarker'](_0x10f0a6);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4a5594['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4a5594['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4a5594['config']['get']('trackChanges.trackFormatChanges'),_0x4a5594['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4a5594['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x4a5594,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x33b2e1=this['editor'];_0x33b2e1['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x50ed21,{writer:_0xb252c7})=>{let _0x582753='suggestion:'+_0x50ed21['getAttribute']('suggestion-type')+':'+_0x50ed21['getAttribute']('id');return _0x50ed21['getAttribute']('marker-count')&&(_0x582753+=':'+_0x50ed21['getAttribute']('marker-count')),_0xb252c7['createElement']('$marker',{'data-name':_0x582753});}}),_0x33b2e1['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x33b2e1['model']['document']['registerPostFixer'](_0x1b96aa=>{let _0x12cce3=!0x1;const _0x488294=Array['from'](_0x33b2e1['model']['document']['differ']['getChangedMarkers']()),_0x4c5893=new Set();for(const {name:_0x51ae94,data:_0x5b1696}of _0x488294){const {group:_0xf72ef5,type:_0x1706c9,subType:_0x4e50bf,id:_0x42b9e8}=this['_splitMarkerName'](_0x51ae94);if('suggestion'!==_0xf72ef5)continue;const _0x12a913=_0x4e50bf?'suggestion:'+_0x1706c9+':'+_0x4e50bf+':'+_0x42b9e8:'suggestion:'+_0x1706c9+':'+_0x42b9e8,_0x6d05fa=_0x33b2e1['model']['markers']['getMarkersGroup'](_0x12a913),_0x356644=_0x33b2e1['model']['markers']['get'](_0x51ae94),_0x427d66=this['_suggestions']['get'](_0x42b9e8);if(null!=_0x5b1696['newRange']){'formatInline'==_0x1706c9&&(_0x12cce3=_0x12cce3||Wt(_0x5b1696['newRange'],_0x51ae94,_0x1b96aa,_0x33b2e1['model']['schema']));const _0xf930cf='attribute'==_0x1706c9&&this['_isBlockAttribute'](_0x4e50bf['split']('|')[0x0]),_0x4807ed='attribute'==_0x1706c9&&this['_isInlineAttribute'](_0x4e50bf['split']('|')[0x0]);if(_0x5b1696['newRange']['isCollapsed']||'$graveyard'==_0x5b1696['newRange']['root']['rootName']||'formatBlock'==_0x1706c9&&!Qt(_0x5b1696['newRange'])||_0xf930cf&&!Qt(_0x5b1696['newRange'])||_0x4807ed&&Xt(_0x5b1696['newRange'])||'deletion'==_0x1706c9&&Xt(_0x5b1696['newRange'])||_0x356644&&Yt(_0x356644,_0x6d05fa))_0x1b96aa['removeMarker'](_0x51ae94),_0x12cce3=!0x0;else{if(!_0x427d66||!_0x427d66['isInContent'])continue;if(_0x5b1696['newRange']&&_0x5b1696['oldRange']&&_0x5b1696['newRange']['isEqual'](_0x5b1696['oldRange']))continue;_0x4c5893['add'](_0x427d66);}}}return _0x4c5893['size']>0x0&&(_0x12cce3=!!this['_joinWithAdjacentSuggestions'](_0x4c5893)||_0x12cce3),_0x12cce3;}),_0x33b2e1['model']['document']['registerPostFixer'](_0xf9e00e=>{let _0x563b5e=!0x1;for(const _0xdf5f3 of _0x33b2e1['model']['document']['differ']['getChanges']())if('insert'==_0xdf5f3['type'])for(const _0x3f8c4b of this['_suggestions']['values']()){if(_0x3f8c4b['isMultiRange']||!_0x3f8c4b['isInContent'])continue;const _0x3dd477='formatBlock'==_0x3f8c4b['type'],_0x105ed2=this['_getAttributeKey'](_0x3f8c4b),_0x2c4945=_0x105ed2&&this['_isBlockAttribute'](_0x105ed2);if(!_0x3dd477&&!_0x2c4945)continue;const _0x55395d=_0x3f8c4b['getFirstRange']();if(_0x55395d['start']['parent']!=_0x55395d['end']['parent']&&!_0x55395d['end']['isAtEnd']){const _0x7a13e4=_0x33b2e1['model']['createPositionAt'](_0x55395d['start']['nodeAfter'],'end'),_0x1ef05d=_0x33b2e1['model']['createRange'](_0x55395d['start'],_0x7a13e4);_0xf9e00e['updateMarker'](_0x3f8c4b['getFirstMarker'](),{'range':_0x1ef05d}),_0x563b5e=!0x0;}}return _0x563b5e;}),_0x33b2e1['model']['document']['registerPostFixer'](_0x362242=>this['_processAttributeChanges'](_0x362242)),_0x33b2e1['model']['document']['registerPostFixer'](_0x5e138d=>!_0x5e138d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5e138d)),_0x33b2e1['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x33b2e1['model']['document']['on']('change:data',(_0x3ae5b1,_0x4d3d58)=>{if(!_0x4d3d58['isLocal']||_0x4d3d58['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xb12279=_0x33b2e1['model']['document']['differ']['getChanges']();if(0x0==_0xb12279['length'])return;const _0x1d7ca1=[],_0x294ac0=_0xb12279['filter'](_0x4ba45e=>'attribute'==_0x4ba45e['type']),_0x16ceb7=_0xb12279['filter'](_0x38aaf7=>'insert'==_0x38aaf7['type']&&'$text'!=_0x38aaf7['name']);for(const _0x18c4c7 of _0x294ac0)this['_isRegisteredAttribute'](_0x18c4c7['attributeKey'])&&_0x1d7ca1['push']({'key':_0x18c4c7['attributeKey'],'newValue':_0x18c4c7['attributeNewValue'],'oldValue':_0x18c4c7['attributeOldValue'],'range':Zt(_0x18c4c7['range'],_0x33b2e1['model'])});for(const _0x3e21e0 of _0x16ceb7){if('rename'!=_0x3e21e0['action']&&'refresh'!=_0x3e21e0['action'])continue;const _0x30c96e=tn(_0x3e21e0['position']['nodeAfter'],_0x33b2e1['model']),_0x5d4424=_0x3e21e0['before'];'rename'==_0x3e21e0['action']&&_0x1d7ca1['push']({'key':m,'newValue':_0x3e21e0['name'],'oldValue':_0x5d4424['name'],'range':_0x30c96e});for(const [_0x39c450,_0x4b9871]of _0x5d4424['attributes']){if(!this['_isRegisteredAttribute'](_0x39c450))continue;const _0x1391c0=_0x3e21e0['attributes']['get'](_0x39c450);_0x4b9871!==_0x1391c0&&_0x1d7ca1['push']({'key':_0x39c450,'newValue':_0x1391c0,'oldValue':_0x4b9871,'range':_0x30c96e});}for(const [_0xfbdc89,_0x3a439c]of _0x3e21e0['attributes'])this['_isRegisteredAttribute'](_0xfbdc89)&&(_0x5d4424['attributes']['has'](_0xfbdc89)||_0x1d7ca1['push']({'key':_0xfbdc89,'newValue':_0x3a439c,'oldValue':null,'range':_0x30c96e}));}0x0!=_0x1d7ca1['length']&&_0x33b2e1['model']['enqueueChange'](_0x4d3d58,_0x2e5ea9=>{const _0x3ab489=_0x367f2e();for(const {range:_0x52f910,key:_0x5ed7df,oldValue:_0x10382b,newValue:_0x31f5a2}of _0x1d7ca1)this['markAttributeChange'](_0x52f910,_0x5ed7df,_0x10382b,_0x31f5a2,{'groupId':_0x3ab489});this['_reduceExistingSuggestions'](_0x2e5ea9,_0x1d7ca1);});},{'priority':'lowest'}),_0x33b2e1['model']['markers']['on']('update:suggestion',(_0x4a8fa9,_0x1f034c,_0x17e3ca)=>{if(null==_0x17e3ca){const {id:_0x2db91a}=this['_splitMarkerName'](_0x1f034c['name']),_0x25dc13=this['_suggestions']['get'](_0x2db91a);_0x25dc13&&_0x25dc13['addMarkerName'](_0x1f034c['name']);}}),_0x33b2e1['model']['document']['on']('change:data',()=>{const _0x9ad3ef=Array['from'](_0x33b2e1['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5f4d6d=>'suggestion'===this['_splitMarkerName'](_0x5f4d6d['name'])['group']);if(0x0===_0x9ad3ef['length'])return;_0x9ad3ef['sort']((_0x271b16,_0x494d37)=>{const _0x183657=_0x271b16['data']['oldRange'],_0x45c1c8=_0x494d37['data']['oldRange'];return null===_0x183657&&null===_0x45c1c8?0x0:null===_0x183657&&null!==_0x45c1c8?-0x1:null!==_0x183657&&null===_0x45c1c8?0x1:_0x183657['start']['isBefore'](_0x45c1c8['start'])?-0x1:0x1;});const _0x4209e1=new Set(),_0x581b0e=new Set();for(const {name:_0x1bc40f,data:_0x44505e}of _0x9ad3ef){const {id:_0x2a5041}=this['_splitMarkerName'](_0x1bc40f);if(null===_0x44505e['oldRange']){const _0x15264b=this['_handleNewSuggestionMarker'](_0x1bc40f);_0x581b0e['add'](_0x15264b);}else{const _0x22de80=this['_suggestions']['get'](_0x2a5041);null!==_0x44505e['newRange']||_0x22de80['isInContent']?(_0x4209e1['add'](_0x22de80['head']),_0x581b0e['add'](_0x22de80)):this['_removeSuggestion'](_0x22de80);}}_0x581b0e['size']>0x0&&this['_refreshSuggestionsChain'](_0x581b0e);for(const _0x29b6a9 of _0x4209e1)this['fire']('suggestionChanged',_0x29b6a9);}),_0x33b2e1['model']['on']('applyOperation',(_0x1db19f,_0x17ee0d)=>{const _0x35091d=_0x17ee0d[0x0];if(!this['_suggestions']['size'])return;if(!_0x35091d['isDocumentOperation'])return;if(_0x35091d['batch']['isUndo']||!_0x35091d['batch']['isLocal'])return;let _0x17598c,_0x54f168;switch(_0x35091d['type']){case'insert':_0x17598c=_0x33b2e1['model']['createPositionAt'](_0x35091d['position']),_0x54f168=_0x17598c['getShiftedBy'](_0x35091d['howMany']);break;case'split':_0x17598c=_0x33b2e1['model']['createPositionAt'](_0x35091d['splitPosition']),_0x54f168=_0x33b2e1['model']['createPositionAt'](_0x35091d['moveTargetPosition']);break;case'move':_0x17598c=_0x33b2e1['model']['createPositionAt'](_0x35091d['targetPosition']),_0x54f168=_0x17598c['getShiftedBy'](_0x35091d['howMany']);break;default:return;}const _0x2a4033=_0x33b2e1['model']['createRange'](_0x17598c,_0x54f168);_0x33b2e1['model']['change'](()=>{for(const {suggestion:_0x1af9be,meta:_0x18d8c5}of this['_findSuggestions'](_0x2a4033)){if(_0x1af9be['isMultiRange'])continue;if('formatInline'==_0x1af9be['type'])continue;const _0x3800b4=this['_getAttributeKey'](_0x1af9be);if(_0x3800b4&&this['_isBlockAttribute'](_0x3800b4)&&'split'!=_0x35091d['type'])continue;const _0x305d7b=_0x1af9be['data']&&_0x1af9be['data']['multipleBlocks'];('formatBlock'!=_0x1af9be['type']||'split'==_0x35091d['type']&&!_0x305d7b)&&(_0x18d8c5['containsRangeInObject']||'insertion'==_0x1af9be['type']&&_0x18d8c5['isOwn']||_0x1af9be['getFirstRange']()['containsRange'](_0x2a4033)&&this['_breakSuggestionMarker'](_0x1af9be,_0x17598c,_0x54f168));}});},{'priority':'lowest'}),_0x33b2e1['model']['on']('deleteContent',(_0x6e1fbe,_0x3b0115)=>{const _0x5c452c=_0x3b0115[0x0],_0xc664f4=_0x3b0115[0x1];if(_0xc664f4&&_0xc664f4['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5c452c['isCollapsed'])return;const _0x1a33a5=_0x33b2e1['model']['schema'],{start:_0x541801,end:_0x152954}=_0x5c452c['getFirstRange'](),_0x158648=_0x541801['nodeAfter']&&_0x1a33a5['isLimit'](_0x541801['nodeAfter'])?null:_0x1a33a5['getNearestSelectionRange'](_0x541801,'forward'),_0x53f94c=_0x152954['nodeBefore']&&_0x1a33a5['isLimit'](_0x152954['nodeBefore'])?null:_0x1a33a5['getNearestSelectionRange'](_0x152954,'backward'),_0x6f01d9=_0x33b2e1['model']['createRange'](_0x158648?_0x158648['start']:_0x541801,_0x53f94c?_0x53f94c['end']:_0x152954);_0x33b2e1['model']['change'](_0x521de8=>{this['markDeletion'](_0x6f01d9);const _0x3efcfc=_0x33b2e1['model']['schema']['getNearestSelectionRange'](_0x6f01d9['start']);_0x5c452c['is']('documentSelection')?_0x521de8['setSelection'](_0x3efcfc):_0x5c452c['setTo'](_0x3efcfc);}),_0x6e1fbe['stop']();},{'priority':_0x15ca84['normal']+0xa}),_0x33b2e1['model']['on']('insertContent',(_0x3051d4,_0x492d61)=>{const _0x4efc57=_0x492d61[_0x492d61['length']-0x1];_0x4efc57&&_0x4efc57['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x33b2e1['model']['change'](()=>{let _0x3375f1=_0x33b2e1['model']['insertContent'](_0x492d61[0x0],_0x492d61[0x1],_0x492d61[0x2],{'forceDefaultExecution':!0x0});if(!_0x3375f1)return;_0x3051d4['return']=_0x3375f1['clone']();const _0x712585=_0x3375f1['end']['nodeBefore'],_0x5ec75a=_0x33b2e1['model']['schema'];_0x712585&&_0x5ec75a['isBlock'](_0x712585)&&!_0x5ec75a['isObject'](_0x712585)&&(_0x3375f1=_0x33b2e1['model']['createRange'](_0x3375f1['start'],_0x33b2e1['model']['createPositionAt'](_0x712585,'end'))),this['markInsertion'](_0x3375f1);}),_0x3051d4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1d1015=new v(_0x33b2e1,this['_suggestions']);_0x33b2e1['commands']['add']('acceptSuggestion',_0x1d1015),this['enableCommand']('acceptSuggestion');const _0x2e6292=new D(_0x33b2e1,this['_suggestions']);_0x33b2e1['commands']['add']('discardSuggestion',_0x2e6292),this['enableCommand']('discardSuggestion'),_0x33b2e1['commands']['add']('acceptAllSuggestions',new B(_0x33b2e1,_0x1d1015,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x33b2e1['commands']['add']('discardAllSuggestions',new B(_0x33b2e1,_0x2e6292,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x33b2e1['commands']['add']('acceptSelectedSuggestions',new O(_0x33b2e1,_0x1d1015,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x33b2e1['commands']['add']('discardSelectedSuggestions',new O(_0x33b2e1,_0x2e6292,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x29098e=_0x33b2e1['plugins']['get']('CommentsRepository');this['listenTo'](_0x29098e,'addComment',(_0x3ff811,{threadId:_0xfdcb66})=>{const _0x4ce825=this['_suggestions']['get'](_0xfdcb66);_0x4ce825&&_0x4ce825['commentThread']&&0x1===_0x4ce825['commentThread']['length']&&this['_updateSuggestionData'](_0xfdcb66,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x29098e,'removeComment',(_0x521beb,{threadId:_0x1f0f8d})=>{const _0x2f8aff=this['_suggestions']['get'](_0x1f0f8d);_0x2f8aff&&_0x2f8aff['commentThread']&&!_0x2f8aff['commentThread']['length']&&this['_updateSuggestionData'](_0x1f0f8d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x398cf1){const _0x2b7a69=_0x29e649([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x54afb4=0x3d8d0df,_0x19a82d=0x3dfaeb7^_0x54afb4,_0x5c8ebe=window[_0x29e649([0x44,0x61,0x74,0x65])][_0x29e649([0x6e,0x6f,0x77])](),_0x31af40=_0x398cf1[_0x29e649([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x22bc78=new window[(_0x29e649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ead47=>{_0x31af40[_0x29e649([0x6f,0x6e,0x63,0x65])](_0x29e649([0x72,0x65,0x61,0x64,0x79]),_0x2ead47);}),_0x386e54={[_0x29e649([0x6b,0x74,0x79])]:_0x29e649([0x45,0x43]),[_0x29e649([0x75,0x73,0x65])]:_0x29e649([0x73,0x69,0x67]),[_0x29e649([0x63,0x72,0x76])]:_0x29e649([0x50,0x2d,0x32,0x35,0x36]),[_0x29e649([0x78])]:_0x29e649([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]),[_0x29e649([0x79])]:_0x29e649([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]),[_0x29e649([0x61,0x6c,0x67])]:_0x29e649([0x45,0x53,0x32,0x35,0x36])},_0x3b4d1f=_0x31af40[_0x29e649([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x29e649([0x67,0x65,0x74])](_0x29e649([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e9ac6(){let _0x3e5d57,_0x5a03a0=null,_0xf6262=null;try{if(_0x3b4d1f==_0x29e649([0x47,0x50,0x4c]))return _0x29e649([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e5d57=_0x2a423d(),!_0x3e5d57)return _0x29e649([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e5d57[_0x29e649([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf6262=_0x537655(_0x3e5d57[_0x29e649([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e5d57[_0x29e649([0x6a,0x74,0x69])])),await _0xd26fbe()?_0x295298()?_0x2ffa9b()?_0x29e649([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4f04d8()?(_0x3e5d57[_0x29e649([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29e649([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5a03a0=_0x4565b0(_0x29e649([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x23cb28()):_0x29e649([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x29e649([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x29e649([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x29e649([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ffa9b(){const _0x1e2d26=[_0x29e649([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x29e649([0x74,0x72,0x69,0x61,0x6c])][_0x29e649([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e5d57[_0x29e649([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5c8ebe/0x3e8:0xe10*_0x19a82d;return _0x3e5d57[_0x29e649([0x65,0x78,0x70])]<_0x1e2d26;}function _0x295298(){const _0x4182ed=_0x3e5d57[_0x29e649([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4182ed)return!0x1;if(_0x4182ed[_0x29e649([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29e649([0x2a])))return!0x0;if(_0x4182ed[_0x29e649([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29e649([0x54,0x43])))return!0x0;if(_0x4182ed[_0x29e649([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29e649([0x52,0x54,0x43]))){if(_0x5f2d0e())return!0x0;if(_0x32445b()||_0xb5b364())return!0x0;}return!0x1;}function _0x4f04d8(){const _0x29d828=_0x3e5d57[_0x29e649([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x29d828||0x0==_0x29d828[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b5207}=new URL(window[_0x29e649([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x29d828[_0x29e649([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b5207))return!0x0;const _0x1a4aef=_0x1b5207[_0x29e649([0x73,0x70,0x6c,0x69,0x74])](_0x29e649([0x2e]));return _0x29d828[_0x29e649([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe18c5=>_0xe18c5[_0x29e649([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29e649([0x2a])))[_0x29e649([0x6d,0x61,0x70])](_0x1d93a4=>_0x1d93a4[_0x29e649([0x73,0x70,0x6c,0x69,0x74])](_0x29e649([0x2e])))[_0x29e649([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x104884=>_0x104884[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1a4aef[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29e649([0x6d,0x61,0x70])](_0x51c043=>Array(_0x1a4aef[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x51c043[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29e649([0x66,0x69,0x6c,0x6c])](_0x51c043[0x0]===_0x29e649([0x2a])?_0x29e649([0x2a]):'')[_0x29e649([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x51c043))[_0x29e649([0x73,0x6f,0x6d,0x65])](_0x2f6d6d=>_0x1a4aef[_0x29e649([0x65,0x76,0x65,0x72,0x79])]((_0x199c62,_0x2651f2)=>_0x2f6d6d[_0x2651f2]===_0x199c62||_0x2f6d6d[_0x2651f2]===_0x29e649([0x2a])));}function _0x23cb28(){return _0x5a03a0&&_0xf6262?new window[(_0x29e649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x236e84,_0x7af2ef)=>{_0x5a03a0[_0x29e649([0x74,0x68,0x65,0x6e])](_0x236e84,_0x7af2ef),_0xf6262[_0x29e649([0x74,0x68,0x65,0x6e])](_0x26b761=>{_0x26b761!=_0x29e649([0x56,0x61,0x6c,0x69,0x64])&&_0x236e84(_0x26b761);},_0x7af2ef);}):_0x5a03a0||_0xf6262||_0x29e649([0x56,0x61,0x6c,0x69,0x64]);}}function _0x537655(_0x352aed,_0x12e164){return new window[(_0x29e649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f62ca=>{if(_0x1b602f())return _0x4f62ca(_0x29e649([0x56,0x61,0x6c,0x69,0x64]));_0x22a9ae(),_0x31af40[_0x29e649([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x29e649([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17cf64=!0x1;const _0x179a72=_0x367f2e();function _0x137ca0(_0x5af822){return!!_0x5af822&&(typeof _0x5af822===_0x29e649([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5af822===_0x29e649([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5af822[_0x29e649([0x74,0x68,0x65,0x6e])]===_0x29e649([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5af822[_0x29e649([0x63,0x61,0x74,0x63,0x68])]===_0x29e649([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4aab75(_0xaa0eb2){_0x2ed143(_0xaa0eb2)[_0x29e649([0x74,0x68,0x65,0x6e])](_0x263df7=>{if(!_0x263df7||_0x263df7[_0x29e649([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x29e649([0x6f,0x6b]))return _0x29e649([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3584b9(_0x226d6c(_0x179a72+_0x12e164))!=_0x263df7[_0x29e649([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x29e649([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x29e649([0x56,0x61,0x6c,0x69,0x64]);})[_0x29e649([0x74,0x68,0x65,0x6e])](_0x3d4703=>(_0x51cbdf(),_0x3d4703),()=>{const _0x22f261=_0x51f01d();return null==_0x22f261?(_0x51cbdf(),_0x29e649([0x56,0x61,0x6c,0x69,0x64])):_0x29e649(_0x5c8ebe-_0x22f261>(0x27d454df^_0x54afb4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x29e649([0x74,0x68,0x65,0x6e])](_0x4f62ca)[_0x29e649([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f62ca(_0x29e649([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x217177=0x3ee3e5f^_0x54afb4;function _0x51cbdf(){const _0x2eaddc=_0x29e649([0x6c,0x6c,0x63,0x74,0x2d])+_0x3584b9(_0x226d6c(_0x352aed)),_0x27dafe=_0x37a9b8(_0x3584b9(window[_0x29e649([0x4d,0x61,0x74,0x68])][_0x29e649([0x63,0x65,0x69,0x6c])](_0x5c8ebe/_0x217177)));window[_0x29e649([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29e649([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2eaddc,_0x27dafe);}function _0x51f01d(){const _0x274d68=_0x29e649([0x6c,0x6c,0x63,0x74,0x2d])+_0x3584b9(_0x226d6c(_0x352aed)),_0x397313=window[_0x29e649([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29e649([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x274d68);return _0x397313?window[_0x29e649([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37a9b8(_0x397313),0x10)*_0x217177:null;}function _0x2ed143(_0x4e53ee){return new window[(_0x29e649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x334bdc,_0x45b604)=>{_0x4e53ee[_0x29e649([0x74,0x68,0x65,0x6e])](_0x334bdc,_0x45b604),window[_0x29e649([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x45b604,0x3d9041f^_0x54afb4);});}}_0x31af40[_0x29e649([0x6f,0x6e])](_0x29e649([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15c39c,_0x3e974f)=>{if(_0x3e974f[0x0]!=_0x352aed)return _0x4f62ca(_0x29e649([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e974f[0x1]={..._0x3e974f[0x1],[_0x29e649([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x179a72};},{[_0x29e649([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29e649([0x68,0x69,0x67,0x68])}),_0x31af40[_0x29e649([0x6f,0x6e])](_0x29e649([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10b063=>{_0x137ca0(_0x10b063[_0x29e649([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17cf64=!0x0,_0x4aab75(_0x10b063[_0x29e649([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x29e649([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29e649([0x6c,0x6f,0x77])}),_0x22bc78[_0x29e649([0x74,0x68,0x65,0x6e])](()=>{_0x17cf64||_0x4f62ca(_0x29e649([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b602f(){return _0x31af40[_0x29e649([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29e649([0x76,0x69,0x65,0x77])][_0x29e649([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x29e649([0x61,0x75,0x74,0x6f]);}function _0x22a9ae(){_0x31af40[_0x29e649([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29e649([0x76,0x69,0x65,0x77])][_0x29e649([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29e649([0x61,0x75,0x74,0x6f]);}}function _0x4565b0(_0x4fd739){const _0x3fb38a=[new window[(_0x29e649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x579e92=>setTimeout(_0x579e92,0x3d1ee13^_0x54afb4)),_0x22bc78[_0x29e649([0x74,0x68,0x65,0x6e])](()=>new window[(_0x29e649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40e115=>{let _0x221015=0x0;_0x31af40[_0x29e649([0x6d,0x6f,0x64,0x65,0x6c])][_0x29e649([0x6f,0x6e])](_0x29e649([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x546e4e,_0xb1bb19)=>{_0xb1bb19[0x0][_0x29e649([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x221015++,_0x221015==(0x3d8d537^_0x54afb4)&&(_0x40e115(),_0x546e4e[_0x29e649([0x6f,0x66,0x66])]());});}))];return window[_0x29e649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29e649([0x72,0x61,0x63,0x65])](_0x3fb38a)[_0x29e649([0x74,0x68,0x65,0x6e])](()=>_0x4fd739);}async function _0x39f888(){await _0x22bc78,_0x31af40[_0x29e649([0x6d,0x6f,0x64,0x65,0x6c])][_0x29e649([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x39377d,_0x31af40[_0x29e649([0x6d,0x6f,0x64,0x65,0x6c])][_0x29e649([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x39377d,_0x31af40[_0x29e649([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x29e649([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f2d0e(){return _0x28c8d0(_0x29e649([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x19e286(_0x29e649([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x29e649([0x73,0x74,0x61,0x74,0x65])]==_0x29e649([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x32445b(){return _0x28c8d0(_0x29e649([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 _0xb5b364(){return _0x28c8d0(_0x29e649([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x45502d(_0x1e94c5){const _0xf613e6=_0x2876f9();_0x31af40[_0xf613e6]=_0x29e649([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1e94c5,_0x1e94c5!=_0x29e649([0x56,0x61,0x6c,0x69,0x64])&&_0x39f888();}function _0x2876f9(){const _0x1ba59d=window[_0x29e649([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x29e649([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x29e649([0x6e,0x6f,0x77])]())[_0x29e649([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x29e649([0x2e]),'');let _0x5db2ab=_0x29e649([0x52]);for(let _0x3ba43d=0x0;_0x3ba43d<_0x1ba59d[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ba43d+=0x2){let _0x3d011c=window[_0x29e649([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ba59d[_0x29e649([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ba43d,_0x3ba43d+0x2));_0x3d011c>=_0x2b7a69[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3d011c-=_0x2b7a69[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5db2ab+=_0x2b7a69[_0x3d011c];}return _0x5db2ab;}function _0x2a423d(){const _0x4650b2=_0x3b4d1f[_0x29e649([0x73,0x70,0x6c,0x69,0x74])](_0x29e649([0x2e]));if(0x3!=_0x4650b2[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e216e(_0x4650b2[0x1]);function _0x5e216e(_0x1e52e0){const _0x3ad83e=_0x41c54e(_0x1e52e0);return _0x3ad83e&&_0x191e4b()?_0x3ad83e:null;function _0x191e4b(){const _0x19cac8=_0x3ad83e[_0x29e649([0x6a,0x74,0x69])],_0x290318=window[_0x29e649([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19cac8[_0x29e649([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19cac8[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d89af={..._0x3ad83e,[_0x29e649([0x6a,0x74,0x69])]:_0x19cac8[_0x29e649([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x19cac8[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d89af[_0x29e649([0x76,0x63])],_0x226d6c(_0x2d89af)==_0x290318;}}}async function _0xd26fbe(){let _0x6c51a5=!0x0;try{const _0x139e20=_0x3b4d1f[_0x29e649([0x73,0x70,0x6c,0x69,0x74])](_0x29e649([0x2e])),[_0x5e4415,_0x1da3d9,_0x8ba568]=_0x139e20;return _0x317d6a(_0x5e4415),await _0x20c549(_0x5e4415,_0x1da3d9,_0x8ba568),_0x6c51a5;}catch{return!0x1;}function _0x317d6a(_0xb956bd){const _0x1d24b8=_0x41c54e(_0xb956bd);_0x1d24b8&&_0x1d24b8[_0x29e649([0x61,0x6c,0x67])]==_0x29e649([0x45,0x53,0x32,0x35,0x36])||(_0x6c51a5=!0x1);}async function _0x20c549(_0x5838c2,_0x58002b,_0x158575){const _0x2ec76d=window[_0x29e649([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x29e649([0x66,0x72,0x6f,0x6d])](_0x51c8f0(_0x158575),_0x1e040f=>_0x1e040f[_0x29e649([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x467741=new window[(_0x29e649([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x29e649([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5838c2+_0x29e649([0x2e])+_0x58002b),_0x5306c7=window[_0x29e649([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x29e649([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5306c7)return;const _0x48b6cf=await _0x5306c7[_0x29e649([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x29e649([0x6a,0x77,0x6b]),_0x386e54,{[_0x29e649([0x6e,0x61,0x6d,0x65])]:_0x29e649([0x45,0x43,0x44,0x53,0x41]),[_0x29e649([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x29e649([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x29e649([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5306c7[_0x29e649([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x29e649([0x6e,0x61,0x6d,0x65])]:_0x29e649([0x45,0x43,0x44,0x53,0x41]),[_0x29e649([0x68,0x61,0x73,0x68])]:{[_0x29e649([0x6e,0x61,0x6d,0x65])]:_0x29e649([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48b6cf,_0x2ec76d,_0x467741)||(_0x6c51a5=!0x1);}}function _0x41c54e(_0x24d31c){return _0x24d31c[_0x29e649([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x29e649([0x65,0x79]))?JSON[_0x29e649([0x70,0x61,0x72,0x73,0x65])](_0x51c8f0(_0x24d31c)):null;}function _0x51c8f0(_0x3ab699){return window[_0x29e649([0x61,0x74,0x6f,0x62])](_0x3ab699[_0x29e649([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x29e649([0x2b]))[_0x29e649([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x29e649([0x2f])));}function _0x226d6c(_0x522077){let _0x23f858=0x1505;function _0x1ca2f4(_0x48fa44){for(let _0x577391=0x0;_0x577391<_0x48fa44[_0x29e649([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x577391++){const _0x348d7f=_0x48fa44[_0x29e649([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x577391);_0x23f858=(_0x23f858<<0x5)+_0x23f858+_0x348d7f,_0x23f858&=_0x23f858;}}function _0x1493b6(_0x1e70c6){Array[_0x29e649([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e70c6)?_0x1e70c6[_0x29e649([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1493b6):_0x1e70c6&&typeof _0x1e70c6==_0x29e649([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x29e649([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e70c6)[_0x29e649([0x73,0x6f,0x72,0x74])]()[_0x29e649([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5046d5,_0x5db49f])=>{_0x1ca2f4(_0x5046d5),_0x1493b6(_0x5db49f);}):_0x1ca2f4(window[_0x29e649([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e70c6));}return _0x1493b6(_0x522077),_0x23f858>>>0x0;}function _0x3584b9(_0x19b54a){return _0x19b54a[_0x29e649([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x29e649([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x29e649([0x30]));}function _0x37a9b8(_0x20650a){return _0x20650a[_0x29e649([0x73,0x70,0x6c,0x69,0x74])]('')[_0x29e649([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x29e649([0x6a,0x6f,0x69,0x6e])]('');}function _0x28c8d0(_0x12a09b){return _0x31af40[_0x29e649([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29e649([0x68,0x61,0x73])](_0x12a09b);}function _0x19e286(_0x6e86d2){return _0x31af40[_0x29e649([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29e649([0x67,0x65,0x74])](_0x6e86d2);}function _0x39377d(){}function _0x29e649(_0x5e273c){return _0x5e273c['map'](_0x2cd758=>String['fromCharCode'](_0x2cd758))['join']('');}_0x45502d(await _0x3e9ac6());}(this);}set['adapter'](_0x2b6093){if(this['_adapter'])throw new _0x69a1a8('track-changes-adapter-already-set',this);this['_adapter']=_0x2b6093;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2cb245=!0x1,toJSON:_0x3f659c=!0x1}={}){const _0x3b79a6=[];for(const _0x35e53d of this['_suggestions']['values']())_0x2cb245&&!_0x35e53d['isInContent']||_0x3b79a6['push'](_0x35e53d);return _0x3f659c?_0x3b79a6['map'](_0x42c052=>_0x42c052['toJSON']()):_0x3b79a6;}['getSuggestion'](_0x1fb332){const _0x35f2a8=this['_suggestions']['get'](_0x1fb332);if(!_0x35f2a8)throw new _0x69a1a8('track-changes-suggestion-not-found',this);return _0x35f2a8;}['hasSuggestion'](_0x5af787){return this['_suggestions']['has'](_0x5af787);}['addSuggestionData'](_0x3527f6){const {authorId:_0x2d7eef,id:_0x38ac86,originalSuggestionId:_0x46a411,attributes:_0x563032}=_0x3527f6,[_0x19a2b3,_0x4aef2a]=_0x3527f6['type']['split'](':'),_0x21c55b=this['_suggestions']['get'](_0x38ac86)||this['_createSuggestion'](_0x19a2b3,_0x4aef2a,_0x38ac86,_0x2d7eef,_0x563032,_0x46a411);if(this['_addThreadToSuggestion'](_0x21c55b),this['_checkSuggestionCorrectness'](_0x21c55b,_0x19a2b3,_0x4aef2a||null,_0x2d7eef),_0x21c55b['createdAt']=_0x3527f6['createdAt'],_0x21c55b['_isDataLoaded']=!0x0,_0x563032&&_0x563032['@external']){const _0x5c729a=_0x563032['@external'],_0x58497e=this['_getExternalAuthor'](_0x5c729a['authorName']);_0x21c55b['authoredAt']=_0x5c729a['createdAt'],_0x21c55b['author']=_0x58497e,_0x21c55b['isExternal']=!0x0;}else _0x21c55b['authoredAt']=_0x3527f6['createdAt'];switch(_0x3527f6['data']&&(_0x21c55b['data']=_0x3527f6['data']),_0x3527f6['attributes']&&(_0x21c55b['attributes']=_0x3527f6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x21c55b['_saved']=!0x0),this['_suggestionState']['get'](_0x21c55b)){case'notReady':this['_suggestionState']['set'](_0x21c55b,'dataReady');break;case'markerReady':_0x21c55b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x21c55b])),this['_refreshSuggestionsChain'](new Set([_0x21c55b])),this['_suggestionState']['set'](_0x21c55b,'ready'),this['fire']('suggestionLoaded',_0x21c55b)):this['_suggestionState']['set'](_0x21c55b,'removed');}return _0x21c55b;}['acceptSuggestion'](_0x153df5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3556e0 of _0x153df5['getAllAdjacentSuggestions']())_0x3556e0['accept']();});});}['discardSuggestion'](_0x1dbdae){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2e5080 of _0x1dbdae['getAllAdjacentSuggestions']())_0x2e5080['discard']();});});}['enableCommand'](_0x42b36d,_0x582c79){const _0x106d08=this['editor']['commands']['get'](_0x42b36d);if(!_0x106d08)throw new _0x69a1a8('track-changes-command-not-found',this,{'commandName':_0x42b36d});if(this['_enabledCommands']['has'](_0x106d08))throw new _0x69a1a8('track-changes-enable-command-twice',this,{'commandName':_0x42b36d});this['_enabledCommands']['add'](_0x106d08),_0x582c79&&_0x106d08['on']('execute',(_0x50af31,_0x39ad32)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x39ad32['length']>0x0&&_0x39ad32[_0x39ad32['length']-0x1]&&_0x39ad32[_0x39ad32['length']-0x1]['forceDefaultExecution']?_0x39ad32['pop']():(_0x50af31['return']=_0x582c79((..._0x40c1f4)=>_0x106d08['execute'](..._0x40c1f4,{'forceDefaultExecution':!0x0}),..._0x39ad32),_0x50af31['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x444ccf){let _0x3354b4,_0x30324e;const _0x403e78=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3354b4=_0x444ccf();}catch(_0x4e0541){_0x30324e=_0x4e0541;}return _0x403e78||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x30324e&&_0x69a1a8['rethrowUnexpectedError'](_0x30324e,this),_0x3354b4;}['markInsertion'](_0x1da9bc,_0x5b59b1=null,_0x454dbc={}){if(_0x1da9bc['isCollapsed'])return null;const _0x4b62bd=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x454dbc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x17a95f,meta:_0x22e82f}of this['_findSuggestions'](_0x1da9bc,'insertion'))if(_0x22e82f['isOwn']){if(!_0x22e82f['isNextTo']){if(_0x22e82f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x17a95f,_0x454dbc))continue;return _0x17a95f;}if(sn(_0x17a95f,_0x454dbc))return _0x17a95f;this['_breakSuggestionMarker'](_0x17a95f,_0x1da9bc['start'],_0x1da9bc['end']);break;}if(_0x5b59b1==_0x17a95f['subType']&&sn(_0x17a95f,_0x454dbc)){const _0x2a0613=_0x17a95f['getFirstRange']();return _0x2a0613['start']['isEqual'](_0x1da9bc['end'])?this['_setSuggestionRange'](_0x17a95f,this['_model']['createRange'](_0x1da9bc['start'],_0x2a0613['end'])):this['_setSuggestionRange'](_0x17a95f,this['_model']['createRange'](_0x2a0613['start'],_0x1da9bc['end'])),_0x17a95f;}}const _0x584c8d=_0x367f2e(),_0x2351da=_0x4b62bd['id'],_0x3d2a4a=_0x5b59b1?'insertion:'+_0x5b59b1:'insertion',_0x503819=this['_setSuggestionData']({'id':_0x584c8d,'type':_0x3d2a4a,'createdAt':new Date(),'authorId':_0x2351da,'attributes':_0x454dbc});return this['_addSuggestionMarker'](_0x3d2a4a,_0x584c8d,_0x2351da,_0x1da9bc),_0x503819;}['markMultiRangeInsertion'](_0x6c9d06,_0x17fb39='multi',_0x54cbf1={}){const _0x26f71a=this['editor']['plugins']['get']('Users')['me'],_0x1456d6=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x17fb39,'join');this['_trackingSessionId']&&(_0x54cbf1['trackingSessionId']=this['_trackingSessionId']);for(const _0x36842d of this['getSuggestions']())if(_0x36842d['author']['id']==_0x26f71a['id']&&'insertion'==_0x36842d['type']&&_0x36842d['subType']==_0x17fb39&&sn(_0x36842d,_0x54cbf1)&&(_0x1456d6(_0x36842d['getRanges'](),_0x6c9d06)||_0x1456d6(_0x6c9d06,_0x36842d['getRanges']()))){for(const _0x542087 of _0x6c9d06)_0x36842d['addRange'](_0x542087);return _0x36842d;}for(const {suggestion:_0x214134,meta:_0xebeaec}of this['_findSuggestions'](_0x6c9d06,'insertion')){if(!_0xebeaec['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xebeaec['containsRangeInObject'])continue;if(!sn(_0x214134,_0x54cbf1))continue;let _0x2cfd02=!0x0;for(const _0x593166 of _0x214134['getRanges']())for(const _0x183b1d of _0x6c9d06)if(!_0x593166['containsRange'](_0x183b1d)){_0x2cfd02=!0x1;break;}if(_0x2cfd02)return _0x214134;}const _0x295e66=_0x367f2e(),_0x25ac37=_0x26f71a['id'],_0x3cf4b2='insertion:'+_0x17fb39,_0x2f00b4=this['_setSuggestionData']({'id':_0x295e66,'type':_0x3cf4b2,'createdAt':new Date(),'authorId':_0x25ac37,'attributes':_0x54cbf1});for(const _0x551c08 of _0x6c9d06)this['_addSuggestionMarker'](_0x3cf4b2,_0x295e66,_0x25ac37,_0x551c08,x['getMultiRangeId']());return _0x2f00b4;}['markInlineFormat'](_0x495ee7,_0x116bc5,_0x4fc003=null,_0x13683e={}){if(_0x4fc003=_0x4fc003||Ht(_0x116bc5),_0x495ee7['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x13683e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x518368=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4fc003,'accept');return this['forceDefaultExecution'](()=>_0x518368([_0x495ee7],_0x116bc5,_0x13683e)),null;}const _0x427cbb=this['editor']['plugins']['get']('Users')['me'],_0x468d0a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3ef9ed,meta:_0x5dca7a}of this['_findSuggestions'](_0x495ee7,'insertion'))_0x5dca7a['isOwn']&&!_0x5dca7a['isInsideObject']&&_0x468d0a['push'](..._0x3ef9ed['getRanges']());}const _0x1de4ba=function(_0x519f8d,_0x561a12){const _0x22ef04=[];for(const _0x47e6ba of _0x561a12){const _0x478036=_0x519f8d['getIntersection'](_0x47e6ba);_0x478036&&_0x22ef04['push'](_0x478036);}return _0x22ef04;}(_0x495ee7,_0x468d0a),_0x5066a2=function(_0x379c3e,_0x18daf7){const _0x201d31=[_0x379c3e];for(const _0x3e6b7c of _0x18daf7){let _0xca4472=0x0;for(;_0xca4472<_0x201d31['length'];){const _0x288c5a=_0x201d31[_0xca4472]['getDifference'](_0x3e6b7c);_0x201d31['splice'](_0xca4472,0x1,..._0x288c5a),_0xca4472+=_0x288c5a['length'];}}return _0x201d31;}(_0x495ee7,_0x468d0a);_0x1de4ba['length']&&this['_model']['change'](()=>{for(const _0x570a97 of _0x1de4ba){const _0x4d1e70=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4fc003,'accept');this['forceDefaultExecution'](()=>_0x4d1e70([_0x570a97],_0x116bc5,_0x13683e));}});for(const _0x7abce9 of _0x5066a2){let _0x22edfc=null,_0x12fd6f=_0x7abce9['start'],_0x2f96ae=_0x7abce9['end'];for(const {suggestion:_0xf05f06,meta:_0x377dfd}of this['_findSuggestions'](_0x7abce9,'formatInline')){if(!_0x377dfd['isOwn'])continue;if(_0xf05f06['subType']!=_0x4fc003)continue;if(!sn(_0xf05f06,_0x13683e))continue;const _0x716b0a=_0xf05f06['getFirstRange']();if(_0x716b0a['containsRange'](_0x7abce9,!0x0))return null;_0x12fd6f=_0x12fd6f['isBefore'](_0x716b0a['start'])?_0x12fd6f:_0x716b0a['start'],_0x2f96ae=_0x2f96ae['isAfter'](_0x716b0a['end'])?_0x2f96ae:_0x716b0a['end'],_0x22edfc?_0x716b0a['start']['isBefore'](_0x22edfc['getFirstRange']()['start'])?(_0x22edfc['removeMarkers'](),_0x22edfc=_0xf05f06):_0xf05f06['removeMarkers']():_0x22edfc=_0xf05f06;}const _0x2e6f63=this['_model']['createRange'](_0x12fd6f,_0x2f96ae);if(_0x22edfc)this['_setSuggestionRange'](_0x22edfc,_0x2e6f63);else{const _0x16bfc8=_0x367f2e(),_0xd72dd8=_0x427cbb['id'];this['_setSuggestionData']({'id':_0x16bfc8,'type':'formatInline:'+_0x4fc003,'data':_0x116bc5,'createdAt':new Date(),'authorId':_0xd72dd8,'attributes':_0x13683e}),this['_addSuggestionMarker']('formatInline:'+_0x4fc003,_0x16bfc8,_0xd72dd8,_0x2e6f63);}}return null;}['markBlockFormat'](_0x33c5bb,_0x1b74b0,_0x3154a1=[],_0x1e0c5e=null,_0x1c8ccf={}){_0x1b74b0['formatGroupId']||(_0x1b74b0['formatGroupId']=_0x1b74b0['commandName']),_0x1b74b0['multipleBlocks']=_0x33c5bb['is']('range'),_0x1e0c5e=_0x1e0c5e||Ht(_0x1b74b0);const _0x199883=_0x3154a1['map'](_0x17ec91=>tn(_0x17ec91,this['_model'])),_0x2ff31d=_0x33c5bb['is']('range')?_0x33c5bb:tn(_0x33c5bb,this['_model']);if(this['_trackingSessionId']&&(_0x1c8ccf['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c7888=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e0c5e,'accept');return this['forceDefaultExecution'](()=>_0x2c7888([_0x2ff31d],_0x1b74b0,_0x1c8ccf)),null;}_0x199883['push'](_0x2ff31d);let _0x2d3118=!0x0;for(const _0x5dc1eb of _0x199883)if(!this['_rangeIsInLocalUserInsertion'](_0x5dc1eb)){_0x2d3118=!0x1;break;}if(_0x2d3118&&'always'!==this['_trackFormatChanges']){const _0x405630=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e0c5e,'accept');return this['forceDefaultExecution'](()=>_0x405630([_0x2ff31d],_0x1b74b0,_0x1c8ccf)),null;}let _0x312e09=null,_0x4bfda1=_0x2ff31d['start'],_0x41994b=_0x2ff31d['end'];for(const {suggestion:_0x2bedcd,meta:_0x312464}of this['_findSuggestions'](_0x2ff31d,'formatBlock')){if(!_0x312464['isOwn'])continue;if(_0x312464['isNextTo']||_0x312464['containsRangeInObject']||_0x312464['isInsideObject'])continue;if(_0x2bedcd['data']['formatGroupId']!=_0x1b74b0['formatGroupId'])continue;if(!sn(_0x2bedcd,_0x1c8ccf))continue;const _0x141fcb=_0x2bedcd['getFirstRange']();if(_0x2bedcd['subType']==_0x1e0c5e){if(_0x141fcb['containsRange'](_0x2ff31d,!0x0))return null;_0x4bfda1=_0x4bfda1['isBefore'](_0x141fcb['start'])?_0x4bfda1:_0x141fcb['start'],_0x41994b=_0x41994b['isAfter'](_0x141fcb['end'])?_0x41994b:_0x141fcb['end'],_0x312e09?_0x141fcb['start']['isBefore'](_0x312e09['getFirstRange']()['start'])?(_0x312e09['removeMarkers'](),_0x312e09=_0x2bedcd):_0x2bedcd['removeMarkers']():_0x312e09=_0x2bedcd;}else{const _0x3bd7c3=_0x2ff31d['getIntersection'](_0x141fcb);this['_cutOutSuggestionMarker'](_0x2bedcd,_0x3bd7c3);}}const _0x38a32d=this['editor']['plugins']['get']('Users')['me'],_0x44eb16=_0x367f2e(),_0x3c89c8=_0x38a32d['id'];if(_0x312e09)return this['_setSuggestionRange'](_0x312e09,this['_model']['createRange'](_0x4bfda1,_0x41994b)),_0x312e09;{const _0x461b99=this['_setSuggestionData']({'id':_0x44eb16,'type':'formatBlock:'+_0x1e0c5e,'data':_0x1b74b0,'createdAt':new Date(),'authorId':_0x3c89c8,'attributes':_0x1c8ccf});return this['_addSuggestionMarker']('formatBlock:'+_0x1e0c5e,_0x44eb16,_0x3c89c8,this['_model']['createRange'](_0x4bfda1,_0x41994b)),_0x461b99;}}['markMultiRangeBlockFormat'](_0x1eab50,_0x4c0bf2,_0x333675=[],_0x349942=null,_0x2a01bf={}){_0x4c0bf2['formatGroupId']||(_0x4c0bf2['formatGroupId']=_0x4c0bf2['commandName']);const _0x4242a6=_0x1eab50[0x0];_0x4c0bf2['multipleBlocks']=_0x4242a6['is']('range'),_0x349942=_0x349942||Ht(_0x4c0bf2);const _0x41e27d=_0x333675['map'](_0x423f00=>tn(_0x423f00,this['_model'])),_0x3fb192=_0x4242a6['is']('range')?_0x1eab50:_0x1eab50['map'](_0x5b71c0=>tn(_0x5b71c0,this['_model']));if(this['_trackingSessionId']&&(_0x2a01bf['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x976f71=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x349942,'accept');return this['forceDefaultExecution'](()=>_0x976f71(_0x3fb192,_0x4c0bf2,_0x2a01bf)),null;}_0x41e27d['push'](..._0x3fb192);let _0x5754f2=!0x0;for(const _0x5aeae4 of _0x41e27d)if(!this['_rangeIsInLocalUserInsertion'](_0x5aeae4)){_0x5754f2=!0x1;break;}if(_0x5754f2&&'always'!==this['_trackFormatChanges']){const _0x379c7f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x349942,'accept');return this['forceDefaultExecution'](()=>_0x379c7f(_0x3fb192,_0x4c0bf2,_0x2a01bf)),null;}const _0x393299=this['editor']['plugins']['get']('Users')['me'];for(const _0x47a3e2 of this['getSuggestions']()){const _0x539854=_0x47a3e2['data'];if(_0x47a3e2['author']['id']!=_0x393299['id'])continue;if('formatBlock'!=_0x47a3e2['type']||_0x539854['formatGroupId']!=_0x4c0bf2['formatGroupId'])continue;if(!sn(_0x47a3e2,_0x2a01bf))continue;const _0x289406=_0x47a3e2['subType']==_0x349942;for(let _0x333032=0x0;_0x333032<_0x3fb192['length'];_0x333032++){const _0x1ef5af=_0x3fb192[_0x333032];for(const _0x30e0c5 of _0x47a3e2['getMarkers']()){const _0x5bc919=_0x30e0c5['getRange']();if(_0x1ef5af['isEqual'](_0x5bc919)){_0x289406?(_0x3fb192['splice'](_0x333032,0x1),_0x333032--):_0x47a3e2['removeMarker'](_0x30e0c5['name']);break;}}}}if(0x0==_0x3fb192['length'])return null;const _0x4f61ea=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x349942,'join');for(const _0x13cedd of this['getSuggestions']()){const _0x3789d7=_0x13cedd['data'];if(_0x13cedd['author']['id']==_0x393299['id']&&('formatBlock'==_0x13cedd['type']&&_0x3789d7['formatGroupId']==_0x4c0bf2['formatGroupId']&&_0x13cedd['subType']==_0x349942&&sn(_0x13cedd,_0x2a01bf)&&(_0x4f61ea(_0x13cedd['getRanges'](),_0x3fb192)||_0x4f61ea(_0x3fb192,_0x13cedd['getRanges']())))){for(const _0x3f1b79 of _0x3fb192)_0x13cedd['addRange'](_0x3f1b79);return _0x13cedd;}}const _0x265c08=_0x367f2e(),_0x56bbe9=_0x393299['id'],_0x54bc49='formatBlock:'+_0x349942,_0x32bf42=this['_setSuggestionData']({'id':_0x265c08,'type':_0x54bc49,'data':_0x4c0bf2,'createdAt':new Date(),'authorId':_0x56bbe9,'attributes':_0x2a01bf});for(const _0x164095 of _0x3fb192)this['_addSuggestionMarker'](_0x54bc49,_0x265c08,_0x56bbe9,_0x164095,x['getMultiRangeId']());return _0x32bf42;}['markDeletion'](_0x46662f,_0x2cee6e=null,_0x9c4508={}){if(_0x46662f['isCollapsed'])return null;const _0x47d516=this['editor']['plugins']['get']('Users')['me'],_0x419853=new _0x95b134(_0x46662f['start'],_0x46662f['end']);this['_trackingSessionId']&&(_0x9c4508['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1ef16a,meta:_0x23fb07}of this['_findSuggestions'](_0x419853,'insertion'))if(_0x23fb07['isOwn']&&!_0x23fb07['isNextTo']){if(_0x1ef16a['isMultiRange']){const _0x40bc38=_0x1ef16a['getRanges']()['filter'](_0x2f0f21=>'$graveyard'!=_0x2f0f21['root']['rootName']);_0x40bc38['every'](_0x3f3c20=>_0x419853['containsRange'](_0x3f3c20,!0x0))&&_0x1ef16a['discard']();if(_0x40bc38['some'](_0x15f800=>_0x15f800['containsRange'](_0x419853,!0x0))){const _0x1eeb5e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2cee6e,'accept');return this['forceDefaultExecution'](()=>_0x1eeb5e([_0x419853],null,_0x9c4508)),null;}}else{const _0x3dc154=_0x419853['getIntersection'](_0x1ef16a['getFirstRange']());null!==_0x3dc154&&_0x1ef16a['_onDiscard']([_0x3dc154],null,_0x9c4508);}}if(_0x419853['detach'](),_0x419853['isCollapsed']||'$graveyard'==_0x419853['root']['rootName'])return null;let _0x8d168a=null,_0x2ddce8=_0x419853['start'],_0x369965=_0x419853['end'];const _0x51ac3e=this['_findSuggestions'](_0x419853,'deletion');for(const {suggestion:_0x3f2efa,meta:_0x53c0ad}of _0x51ac3e){const _0x5b829a=this['_model']['createRange'](_0x2ddce8,_0x369965);if(_0x53c0ad['isOwn']&&(this['_mergeNestedSuggestions']||!_0x53c0ad['containsRangeInObject']&&!_0x53c0ad['isInsideObject'])){if(_0x3f2efa['isMultiRange']){if(!sn(_0x3f2efa,_0x9c4508))continue;let _0x4a1045=!0x0;for(const _0x45f204 of _0x3f2efa['getRanges']()){if(_0x45f204['containsRange'](_0x5b829a,!0x0))return _0x3f2efa;_0x5b829a['containsRange'](_0x45f204)||(_0x4a1045=!0x1);}_0x4a1045&&_0x3f2efa['discard']();}else{const _0x16e430=_0x3f2efa['getFirstRange']();if(_0x16e430['containsRange'](_0x5b829a,!0x0))return _0x3f2efa;if(!sn(_0x3f2efa,_0x9c4508)){_0x5b829a['containsRange'](_0x16e430)?_0x3f2efa['removeMarkers']():_0x16e430['containsPosition'](_0x2ddce8)?_0x2ddce8=_0x16e430['end']:_0x16e430['containsPosition'](_0x369965)&&(_0x369965=_0x16e430['start']);continue;}_0x2ddce8=_0x2ddce8['isBefore'](_0x16e430['start'])?_0x2ddce8:_0x16e430['start'],_0x369965=_0x369965['isAfter'](_0x16e430['end'])?_0x369965:_0x16e430['end'],_0x9c4508=Object['assign']({},_0x3f2efa['attributes']),_0x8d168a?_0x16e430['start']['isBefore'](_0x8d168a['getFirstRange']()['start'])?(_0x8d168a['removeMarkers'](),_0x8d168a=_0x3f2efa):_0x3f2efa['removeMarkers']():_0x8d168a=_0x3f2efa;}}}if(_0x8d168a)return this['_setSuggestionRange'](_0x8d168a,this['_model']['createRange'](_0x2ddce8,_0x369965)),_0x8d168a;{const _0x2d8fba=_0x367f2e(),_0x5335fc=this['_model']['createRange'](_0x2ddce8,_0x369965),_0x3b0a6c=_0x47d516['id'],_0x3ca399=_0x2cee6e?'deletion:'+_0x2cee6e:'deletion',_0x2d66bb=this['_setSuggestionData']({'id':_0x2d8fba,'type':_0x3ca399,'createdAt':new Date(),'authorId':_0x3b0a6c,'attributes':_0x9c4508});return this['_addSuggestionMarker'](_0x3ca399,_0x2d8fba,_0x3b0a6c,_0x5335fc),_0x2d66bb;}}['markMultiRangeDeletion'](_0x5a3769,_0x581db8='multi',_0x11ace7={}){const _0x2254e9=this['editor']['plugins']['get']('Users')['me'],_0x2d4428=_0x5a3769['map'](_0x1ef1c1=>new _0x95b134(_0x1ef1c1['start'],_0x1ef1c1['end'])),_0x44f32f=new Set();this['_trackingSessionId']&&(_0x11ace7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2904ec,meta:_0x37cddd}of this['_findSuggestions'](_0x2d4428,'insertion'))_0x37cddd['isOwn']&&!_0x37cddd['isNextTo']&&_0x44f32f['add'](_0x2904ec);for(const _0x3fd997 of _0x44f32f)if(_0x3fd997['isMultiRange']){const _0x4ca3ee=_0x3fd997['getRanges']();(!_0x3fd997['attributes']||!_0x3fd997['attributes']['skipNestingCheck'])&&(_0x4ca3ee['every'](_0x38eaf2=>_0x2d4428['some'](_0x3eff06=>_0x3eff06['containsRange'](_0x38eaf2,!0x0)))&&_0x3fd997['discard']());if(_0x2d4428['every'](_0x3262c9=>_0x4ca3ee['some'](_0x57ab6e=>_0x57ab6e['containsRange'](_0x3262c9,!0x0)))){const _0x433665=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x581db8,'accept');return this['forceDefaultExecution'](()=>_0x433665(_0x5a3769,null,_0x11ace7)),null;}}else{const _0x13d2cc=_0x3fd997['getFirstRange']();_0x2d4428['some'](_0x4bad46=>_0x4bad46['containsRange'](_0x13d2cc,!0x0))&&_0x3fd997['discard']();if(_0x2d4428['every'](_0x5a1f01=>_0x13d2cc['containsRange'](_0x5a1f01,!0x0))){const _0x9ffd2f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x581db8,'accept');return this['forceDefaultExecution'](()=>_0x9ffd2f(_0x2d4428,null,_0x11ace7)),null;}}const _0xd96da0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x581db8,'join');let _0xcec512=null;for(const _0x12fad8 of this['getSuggestions']())if(_0x12fad8['author']['id']==_0x2254e9['id']&&_0x12fad8['isInContent']&&'deletion'==_0x12fad8['type']&&_0x12fad8['subType']==_0x581db8&&sn(_0x12fad8,_0x11ace7)&&(_0xd96da0(_0x12fad8['getRanges'](),_0x2d4428)||_0xd96da0(_0x2d4428,_0x12fad8['getRanges']()))){if(_0xcec512){if(_0x12fad8['commentThread']&&_0x12fad8['commentThread']['length'])continue;for(const _0x3484f7 of _0x12fad8['getRanges']())_0xcec512['isIntersectingWithRange'](_0x3484f7)||_0xcec512['addRange'](_0x3484f7);_0x12fad8['removeMarkers']();}else{_0xcec512=_0x12fad8;for(const _0x2c9d14 of _0x2d4428)_0x12fad8['isIntersectingWithRange'](_0x2c9d14)||_0x12fad8['addRange'](_0x2c9d14);}}if(_0xcec512)return _0xcec512;_0x44f32f['clear']();for(const {suggestion:_0x3bd94d,meta:_0x125de4}of this['_findSuggestions'](_0x2d4428,'deletion'))_0x125de4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x125de4['containsRangeInObject']&&!_0x125de4['isInsideObject'])&&sn(_0x3bd94d,_0x11ace7)&&_0x44f32f['add'](_0x3bd94d);for(const _0x32b2a4 of _0x44f32f){const _0x1efbfb=_0x32b2a4['getRanges']();if(!_0x11ace7||!_0x11ace7['skipNestingCheck']){if(_0x2d4428['every'](_0x23de9c=>_0x1efbfb['some'](_0x5a0e59=>_0x5a0e59['containsRange'](_0x23de9c,!0x0))))return _0x32b2a4;}(!_0x32b2a4['attributes']||!_0x32b2a4['attributes']['skipNestingCheck'])&&(_0x1efbfb['every'](_0xa1d23c=>_0x2d4428['some'](_0xd9ce87=>_0xd9ce87['containsRange'](_0xa1d23c,!0x0)))&&_0x32b2a4['discard']());}const _0x452fa7=_0x367f2e(),_0x31ae91=_0x2254e9['id'],_0x113bc6='deletion:'+_0x581db8,_0x5648e3=this['_setSuggestionData']({'id':_0x452fa7,'type':_0x113bc6,'createdAt':new Date(),'authorId':_0x31ae91,'attributes':_0x11ace7});for(const _0x7cf02f of _0x2d4428)_0x7cf02f['detach'](),_0x7cf02f['isCollapsed']||'$graveyard'==_0x7cf02f['root']['rootName']||this['_addSuggestionMarker'](_0x113bc6,_0x452fa7,_0x31ae91,_0x7cf02f,x['getMultiRangeId']());return _0x5648e3;}['markAttributeChange'](_0x2fbdf5,_0x58fac5,_0x3e9176,_0x121ea0,_0x5b55fe){if(_0x2fbdf5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x53bc17=this['editor']['plugins']['get']('Users')['me']['id'],_0x5eedee=Array['from'](this['_suggestions']['values']())['filter'](_0x472ed1=>'attribute'==_0x472ed1['type']&&_0x472ed1['data']['key']==_0x58fac5&&_0x472ed1['isIntersectingWithRange'](_0x2fbdf5));if(this['_trackingSessionId']&&(_0x5b55fe['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x208281=this['_findSuggestions'](_0x2fbdf5,'insertion')['filter'](({meta:_0x3d4db4})=>_0x3d4db4['isOwn']&&!_0x3d4db4['isInsideObject']&&!_0x3d4db4['isNextTo'])['map'](({suggestion:_0x43ec02})=>_0x43ec02);_0x5eedee['unshift'](..._0x208281);}const _0xc1f7b2=new Map([[_0x2fbdf5,_0x3e9176]]);for(const _0x5ce703 of _0x5eedee){const _0x343850='attribute'==_0x5ce703['type']?_0x5ce703['data']['oldValue']:void 0x0,_0x5f0ada=_0x5ce703['getFirstRange'](),_0x27df3a=Array['from'](_0xc1f7b2['keys']())['find'](_0x2ada1b=>_0x2ada1b['isIntersecting'](_0x5f0ada));if(!_0x27df3a)continue;const _0x19c4dc=_0x27df3a['getDifference'](_0x5f0ada);this['_isBlockAttribute'](_0x58fac5)&&'insertion'==_0x5ce703['type']&&0x0!=_0x19c4dc['length']||(_0xc1f7b2['delete'](_0x27df3a),_0x19c4dc['forEach'](_0x43c077=>{_0xc1f7b2['set'](_0x43c077,_0x3e9176);}),'insertion'!=_0x5ce703['type']&&_0x343850!=_0x121ea0&&_0xc1f7b2['set'](_0x27df3a['getIntersection'](_0x5f0ada),_0x343850));}const _0x5647a7=[];for(const [_0x22ba9c,_0xfb77ec]of _0xc1f7b2){const _0x3e815c=_0x367f2e(),_0x3691ef={'key':_0x58fac5,'oldValue':_0xfb77ec,'newValue':_0x121ea0};_0x58fac5['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':_0x58fac5});const _0x21811d=('attribute:'+(_0x58fac5+'|'+Ht({'newValue':_0x121ea0})))['substring'](0x0,0x3c),_0x3ae76a=this['_setSuggestionData']({'id':_0x3e815c,'type':_0x21811d,'data':_0x3691ef,'createdAt':new Date(),'authorId':_0x53bc17,'attributes':_0x5b55fe});_0x5647a7['push'](_0x3ae76a),this['_addSuggestionMarker'](_0x21811d,_0x3e815c,_0x53bc17,_0x22ba9c);}return _0x5647a7;}['enableDefaultAttributesIntegration'](_0x4af089){this['enableCommand'](_0x4af089,(_0xd6786f,..._0x56f2d1)=>{this['recordAttributeChanges'](()=>{_0xd6786f(..._0x56f2d1);});});}['registerBlockAttribute'](_0xcb563f){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0xcb563f);}['registerInlineAttribute'](_0x5d7d33){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x5d7d33);}['startTrackingSession'](_0x38faea){return this['_trackingSessionId']=void 0x0!==_0x38faea?_0x38faea:_0x367f2e(),this['_trackingSessionId'];}['_getAttributeKey'](_0x539d91){return'attribute'==_0x539d91['type']?_0x539d91['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x5c1b24){if(0x0==_0x5c1b24['length'])return;const _0x1ca54=this['editor'],_0x3dd442=_0x1ca54['plugins']['get'](_0x287d9f),_0x4ca2b3=[];_0x1ca54['model']['change'](_0x1b15dc=>{for(let _0x47b6f7=0x0;_0x47b6f7<_0x5c1b24['length'];_0x47b6f7++){const _0x478859=_0x5c1b24[_0x47b6f7];if(_0x478859['baseVersion']=_0x1ca54['model']['document']['version'],_0x478859['isDocumentOperation']=!0x0,_0x3dd442['isMarkedRemoveOperation'](_0x478859)){const _0x31d1ab=Lt(_0x478859['newRange'],_0x1ca54['model']);_0x4ca2b3['unshift'](_0x95b134['fromRange'](_0x31d1ab));}else switch(_0x478859['type']){case'rename':{const _0x5b10eb=_0x478859['oldName'],_0x52e448=_0x478859['newName'];if(_0x5b10eb==_0x52e448)break;_0x1b15dc['batch']['addOperation'](_0x478859),_0x1ca54['model']['applyOperation'](_0x478859);const _0x37ada5='$elementName',_0x5e7002=_0x478859['position'],_0x5406bb=_0x1ca54['model']['createRange'](_0x5e7002,_0x1ca54['model']['createPositionAt'](_0x5e7002['nodeAfter'],'end'));this['markAttributeChange'](_0x5406bb,_0x37ada5,_0x5b10eb,_0x52e448,{'groupId':_0x367f2e()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1d3153=_0x478859['oldValue'],_0x5223b4=_0x478859['newValue'];if(_0x1d3153==_0x5223b4)break;_0x1b15dc['batch']['addOperation'](_0x478859),_0x1ca54['model']['applyOperation'](_0x478859);const _0x2f48d0=_0x478859['key'];if(!this['_isRegisteredAttribute'](_0x2f48d0))break;const _0x4dc32e=Lt(_0x478859['range'],_0x1ca54['model']);this['markAttributeChange'](_0x4dc32e,_0x2f48d0,_0x1d3153,_0x5223b4,{'groupId':_0x367f2e()});break;}case'insert':{_0x1b15dc['batch']['addOperation'](_0x478859),_0x1ca54['model']['applyOperation'](_0x478859);if(_0x5c1b24[_0x47b6f7+0x1]&&'move'==_0x5c1b24[_0x47b6f7+0x1]['type'])break;const _0x43531b=_0x478859['position'],_0xa7f354=_0x478859['howMany'],_0x264e5e=Lt(_0x1ca54['model']['createRange'](_0x43531b,_0x43531b['getShiftedBy'](_0xa7f354)),_0x1ca54['model']);this['markInsertion'](_0x264e5e);break;}case'split':{_0x1b15dc['batch']['addOperation'](_0x478859),_0x1ca54['model']['applyOperation'](_0x478859);const _0x439c39=_0x478859['splitPosition'],_0x5d1bea=_0x478859['moveTargetPosition'];this['markInsertion'](_0x1ca54['model']['createRange'](_0x439c39,_0x5d1bea));break;}case'move':case'remove':_0x1b15dc['batch']['addOperation'](_0x478859),_0x1ca54['model']['applyOperation'](_0x478859);}}for(const _0x433038 of _0x4ca2b3)_0x433038['detach'](),this['markDeletion'](_0x433038);});}['_setSuggestionRange'](_0x42ada8,_0x59430c){const _0x1dd4e2=_0x42ada8['getFirstMarker']();this['_model']['change'](_0x29b99d=>{_0x29b99d['updateMarker'](_0x1dd4e2,{'range':_0x59430c});});}['_addThreadToSuggestion'](_0x37dfd1){const _0x1f3f48=_0x37dfd1['id'],_0x3b6a60=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1f3f48)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3b6a60,'threadId':_0x1f3f48,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3f0eda=this['_commentsRepository']['getCommentThread'](_0x1f3f48);_0x3f0eda['unbind']('isRemovable'),_0x3f0eda['isRemovable']=!0x1,_0x37dfd1['commentThread']=_0x3f0eda;}['_checkSuggestionCorrectness'](_0x5bc975,_0x1b4dca,_0x1d1160,_0x15d9bb){if(_0x5bc975['type']!=_0x1b4dca||_0x5bc975['subType']!=_0x1d1160||_0x5bc975['creator']['id']!=_0x15d9bb)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x69a1a8('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5d8874,_0x213191){const _0x34ab7e=_0x5d8874['getFirstRange']();if(_0x213191['isEqual'](_0x34ab7e))_0x5d8874['removeMarkers']();else{if(_0x34ab7e['containsRange'](_0x213191)){const _0x298155=this['_model']['createPositionAt'](_0x213191['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5d8874,this['_model']['createRange'](_0x34ab7e['start'],_0x298155));const _0x45d73a=_0x367f2e(),_0x3e6288=_0x5d8874['creator']['id'],_0x5d3818=_0x5d8874['type']+':'+_0x5d8874['subType'];this['_setSuggestionData']({'id':_0x45d73a,'type':_0x5d3818,'createdAt':new Date(),'authorId':_0x3e6288,'data':_0x5d8874['data'],'attributes':_0x5d8874['attributes']});const _0x16b759=this['_model']['createPositionAt'](_0x213191['end']['parent'],'after'),_0x3c3405=this['_model']['createRange'](_0x16b759,_0x34ab7e['end']);this['_addSuggestionMarker'](_0x5d3818,_0x45d73a,_0x3e6288,_0x3c3405);}else{if(_0x34ab7e['containsPosition'](_0x213191['start'])){const _0x495159=this['_model']['createPositionAt'](_0x213191['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5d8874,this['_model']['createRange'](_0x34ab7e['start'],_0x495159));}else{const _0xf169f3=this['_model']['createPositionAt'](_0x213191['end']['parent'],'after');this['_setSuggestionRange'](_0x5d8874,this['_model']['createRange'](_0xf169f3,_0x34ab7e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x535c49){for(const {suggestion:_0x2a40a4,meta:_0x16063c}of this['_findSuggestions'](_0x535c49,'insertion')){if(!_0x16063c['isOwn'])continue;const _0xa33a17=_0x2a40a4['getRanges']();for(const _0xa7c106 of _0xa33a17)if(!_0x535c49['getDifference'](_0xa7c106)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5e95b3){return this['editor']['plugins']['get']('Users')['getUser'](_0x5e95b3);}['_getExternalAuthor'](_0x2b81f4){const _0x4b61d8=this['editor']['plugins']['get']('Users'),_0x3910e5=_0x3e6d3d('external:'+_0x2b81f4),_0x5bcd59=_0x4b61d8['getUser'](_0x3910e5);return _0x5bcd59||_0x4b61d8['addUser']({'id':_0x3910e5,'name':_0x2b81f4});}['_createSuggestion'](_0x107f85,_0x4a3098,_0x43eb15,_0x2014c5,_0xd14a80,_0x402ff4){const _0x5e3781=this['_getAuthorFromId'](_0x2014c5);if(!_0x5e3781)throw new _0x69a1a8('track-changes-user-not-found',this,{'authorId':_0x2014c5,'suggestionId':_0x43eb15});const _0x2215cc=this['_suggestionFactory']['buildSuggestion'](_0x107f85,_0x4a3098,_0x43eb15,_0x5e3781,_0xd14a80,_0x2856e0=>{this['_updateSuggestionData'](_0x43eb15,{'attributes':_0x2856e0});const _0x1b5948=this['getSuggestion'](_0x43eb15);this['_joinWithAdjacentSuggestions'](new Set([_0x1b5948])),this['_refreshSuggestionsChain'](new Set([_0x1b5948]));},_0x402ff4);return this['listenTo'](_0x2215cc,'accept',()=>{this['_updateSuggestionData'](_0x43eb15,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2215cc,'discard',()=>{this['_updateSuggestionData'](_0x43eb15,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x43eb15,_0x2215cc),this['_suggestionState']['set'](_0x2215cc,'notReady'),_0x2215cc;}['_splitMarkerName'](_0x582377){return Gt(_0x582377);}['_breakSuggestionMarker'](_0x544ff9,_0xb61cf7,_0x22ef82){const _0x3da7c9=_0x544ff9['getFirstRange'](),_0x2e2da1=_0x3da7c9['start'],_0x3636a1=_0x3da7c9['end'];this['_setSuggestionRange'](_0x544ff9,this['_model']['createRange'](_0x2e2da1,_0xb61cf7));const _0x50f7cd=_0x367f2e(),_0xdeff48=_0x544ff9['creator']['id'],_0x10d017=_0x544ff9['type']+(_0x544ff9['subType']?':'+_0x544ff9['subType']:'');this['_setSuggestionData']({'id':_0x50f7cd,'type':_0x10d017,'createdAt':new Date(),'authorId':_0xdeff48,'originalSuggestionId':_0x544ff9['_originalSuggestionId']||_0x544ff9['id'],'attributes':_0x544ff9['attributes'],'data':_0x544ff9['data']});const _0x3b6598=this['_getAttributeKey'](_0x544ff9);('formatBlock'==_0x544ff9['type']||_0x3b6598&&this['_isBlockAttribute'](_0x3b6598))&&(_0x22ef82=this['_model']['createPositionBefore'](_0x22ef82['parent'])),this['_addSuggestionMarker'](_0x10d017,_0x50f7cd,_0xdeff48,this['_model']['createRange'](_0x22ef82,_0x3636a1));}['_findSuggestions'](_0x2c3f1d,_0xa2c3dc=null){const _0xc86683=[],_0x4c8459=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2c3f1d)||(_0x2c3f1d=[_0x2c3f1d]);for(const _0x117ff6 of this['getSuggestions']()){if(!_0x117ff6['isInContent'])continue;if(_0xa2c3dc&&_0x117ff6['type']!=_0xa2c3dc)continue;let _0xe24894=!0x1;for(const _0xc10616 of _0x117ff6['getRanges']()){for(const _0x331211 of _0x2c3f1d){const _0xfd8b30=_0x331211['start']['isEqual'](_0xc10616['end'])||_0x331211['end']['isEqual'](_0xc10616['start']);if(_0xfd8b30||_0x331211['getIntersection'](_0xc10616)){const _0x2b0ae4=_0x331211['containsRange'](_0xc10616)&&zt(this['_model']['schema'],_0xc10616['start'],_0x331211),_0x24d52c=_0xc10616['containsRange'](_0x331211)&&zt(this['_model']['schema'],_0x331211['start'],_0xc10616);_0xc86683['push']({'suggestion':_0x117ff6,'meta':{'isOwn':_0x4c8459==_0x117ff6['author'],'isNextTo':_0xfd8b30,'isInsideObject':_0x2b0ae4,'containsRangeInObject':_0x24d52c}}),_0xe24894=!0x0;break;}}if(_0xe24894)break;}}return _0xc86683;}['_addSuggestionMarker'](_0x367232,_0x238f50,_0x3217fd,_0xe130e3,_0x2e0b32){this['_model']['change'](_0x4e954d=>{let _0x52be1='suggestion:'+_0x367232+':'+_0x238f50+':'+_0x3217fd;_0x2e0b32&&(_0x52be1=_0x52be1+':'+_0x2e0b32),_0x4e954d['addMarker'](_0x52be1,{'range':_0xe130e3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x310e09){const _0x1165ac=_0x310e09['previous'],_0x110da4=_0x310e09['next'];_0x310e09['previous']=null,_0x310e09['next']=null,null!=_0x1165ac&&_0x1165ac['next']==_0x310e09&&(_0x1165ac['next']=_0x110da4),null!=_0x110da4&&_0x110da4['previous']==_0x310e09&&(_0x110da4['previous']=_0x1165ac),'ready'==this['_suggestionState']['get'](_0x310e09)&&(this['_suggestionState']['set'](_0x310e09,'removed'),this['fire']('suggestionUnloaded',_0x310e09,_0x1165ac,_0x110da4));}['_setSuggestionData'](_0x4102c5){const _0x2100e1=_0x4102c5['id'],_0xd3c369=this['addSuggestionData'](_0x4102c5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2c5e28=this['editor']['plugins']['get']('PendingActions'),_0x9eb86b=_0xd3c369['hasComments'],_0x401fc6=_0xd3c369['subType']?_0xd3c369['type']+':'+_0xd3c369['subType']:_0xd3c369['type'],_0x5e7fc0=this['editor']['locale'],_0x97a9ff=_0x2c5e28['add'](o(_0x5e7fc0,'PENDING_ACTION_SUGGESTION')),_0x6382a3={'id':_0x2100e1,'type':_0x401fc6,'hasComments':_0x9eb86b,'data':_0x4102c5['data']||null,'originalSuggestionId':_0x4102c5['originalSuggestionId']||null,'attributes':_0xd3c369['attributes']};this['_adapter']['addSuggestion'](_0x6382a3)['then'](_0x2ae443=>{_0xd3c369['_saved']=!0x0,_0x2c5e28['remove'](_0x97a9ff),_0x2ae443&&_0x2ae443['createdAt']&&(this['_suggestions']['get'](_0x2100e1)['createdAt']=_0x2ae443['createdAt']);})['catch'](_0x305799=>{throw _0xc84ee6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xd3c369['discard']();}),_0xd3c369['stopListening'](),this['_suggestions']['delete'](_0xd3c369['id']),this['_suggestionState']['delete'](_0xd3c369),_0x305799;});}return _0xd3c369;}['_isBlockAttribute'](_0x2b4bfb){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x2b4bfb);}['_isInlineAttribute'](_0x31f395){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x31f395);}['_updateSuggestionData'](_0x4987f9,_0x8a7858){const _0xd043da=this['editor']['plugins']['get']('PendingActions'),_0x55610a=this['getSuggestion'](_0x4987f9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x55610a['_saved']){const _0x3c2653=_0xd043da['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4987f9,_0x8a7858)['then'](()=>{_0xd043da['remove'](_0x3c2653);});}else _0x55610a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4987f9,_0x8a7858);});}}['_getSuggestionData'](_0x1ce6a2){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x69a1a8('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1ce6a2);}['_handleNewSuggestionMarker'](_0x199434){const {id:_0x1fa54b,type:_0x972ed6,subType:_0x45fe4b,authorId:_0x8b1fb0}=this['_splitMarkerName'](_0x199434),_0x5635b9=this['_suggestions']['get'](_0x1fa54b)||this['_createSuggestion'](_0x972ed6,_0x45fe4b,_0x1fa54b,_0x8b1fb0,{});switch(this['_checkSuggestionCorrectness'](_0x5635b9,_0x972ed6,_0x45fe4b,_0x8b1fb0),this['_suggestionState']['get'](_0x5635b9)){case'notReady':this['_getSuggestionData'](_0x1fa54b)['then'](_0xc27681=>{let _0x5df85d=Promise['resolve']();_0xc27681['hasComments']&&(_0x5df85d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1fa54b})),_0x5df85d['then'](()=>{this['addSuggestionData'](_0xc27681)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5635b9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1fa54b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5635b9,'ready'),this['fire']('suggestionLoaded',_0x5635b9);break;case'ready':this['fire']('suggestionChanged',_0x5635b9);}return _0x5635b9['addMarkerName'](_0x199434),_0x5635b9;}['_refreshSuggestionsChain'](_0x4a80e6){const _0x3f8b89=Array['from'](_0x4a80e6),_0x23d722=_0x3f8b89['filter'](_0x331606=>'attribute'==_0x331606['type']);this['_refreshAttributeSuggestionsChain'](_0x23d722);const _0x48003f=_0x3f8b89['filter'](_0x5cb8dd=>!_0x5cb8dd['isMultiRange']&&'attribute'!=_0x5cb8dd['type']),_0x50c060=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2383dc=>!_0x2383dc['isMultiRange']&&'attribute'!=_0x2383dc['type']),_0xd52cab=_0x50c060['filter'](_0x537577=>!_0x4a80e6['has'](_0x537577)),_0x2cac1b=new Map(_0x50c060['map'](_0x452ea5=>[_0x452ea5,this['_suggestionFactory']['getSuggestionCallback'](_0x452ea5['type'],_0x452ea5['subType'],'chain')])),_0x1d5567=new Map(_0x50c060['map'](_0x1e9cd9=>[_0x1e9cd9,_0x1e9cd9['getFirstRange']()])),_0x1a4554=new Set(),_0x43929e=new Set();for(let _0x8700d1=0x0;_0x8700d1<_0x48003f['length'];_0x8700d1++)_0x41399f(_0x48003f[_0x8700d1],_0x48003f,_0x8700d1+0x1);for(let _0x12ed41=0x0;_0x12ed41<_0x48003f['length'];_0x12ed41++)_0x41399f(_0x48003f[_0x12ed41],_0xd52cab,0x0);const _0x8df946=new Set();for(let _0x31f3af=0x0;_0x31f3af<_0x48003f['length'];_0x31f3af++){const _0x359468=_0x48003f[_0x31f3af];!_0x43929e['has'](_0x359468)&&_0x359468['previous']&&(_0x8df946['add'](_0x359468['previous']),_0x359468['previous']['next']===_0x359468&&(_0x359468['previous']['next']=null),_0x359468['previous']=null),!_0x1a4554['has'](_0x359468)&&_0x359468['next']&&(_0x8df946['add'](_0x359468['next']),_0x359468['next']['previous']===_0x359468&&(_0x359468['next']['previous']=null),_0x359468['next']=null);}function _0x41399f(_0x4c1574,_0x26c647,_0x43bf71){for(let _0x24c925=_0x43bf71;_0x24c925<_0x26c647['length'];_0x24c925++){const _0x4cf5b6=_0x5b63d9(_0x4c1574,_0x26c647[_0x24c925]);_0x4cf5b6&&(_0x4cf5b6[0x0]['next']=_0x4cf5b6[0x1],_0x4cf5b6[0x1]['previous']=_0x4cf5b6[0x0],_0x1a4554['add'](_0x4cf5b6[0x0]),_0x43929e['add'](_0x4cf5b6[0x1]));}}function _0x5b63d9(_0x595878,_0x6a63e6){if(_0x595878['author']['id']!==_0x6a63e6['author']['id'])return null;const _0x55f092=_0x2cac1b['get'](_0x595878)(_0x595878,_0x6a63e6,_0x1d5567['get'](_0x595878),_0x1d5567['get'](_0x6a63e6));if(!_0x55f092)return null;return _0x2cac1b['get'](_0x6a63e6)(_0x595878,_0x6a63e6,_0x1d5567['get'](_0x595878),_0x1d5567['get'](_0x6a63e6))?_0x55f092[0x1]['commentThread']&&_0x55f092[0x1]['commentThread']['length']?null:_0x55f092:null;}_0x8df946['size']&&this['_refreshSuggestionsChain'](_0x8df946);}['_refreshAttributeSuggestionsChain'](_0x159135){if(0x0==_0x159135['length'])return;const _0x2ca215=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21e8f0=>'attribute'==_0x21e8f0['type']&&_0x21e8f0['_isDataLoaded']),_0x5e2650=[],_0x1d14cb=new Map();for(const _0x21f0d0 of _0x2ca215){const _0x10cff5=_0x3e6d3d(_0x21f0d0['attributes']);_0x1d14cb['has'](_0x10cff5)||(_0x1d14cb['set'](_0x10cff5,_0x5e2650['length']),_0x5e2650['push']([]));const _0x186168=_0x1d14cb['get'](_0x10cff5);_0x5e2650[_0x186168]['push'](_0x21f0d0);}!(function(){_0x5e2650['sort']((_0x1ac535,_0x200a59)=>{const _0x93a3fd=_0x1ac535[0x0]['createdAt'],_0xcc7570=_0x200a59[0x0]['createdAt'];return _0x93a3fd==_0xcc7570?_0x1ac535[0x0]['attributes']['groupId']<_0x200a59[0x0]['attributes']['groupId']?-0x1:0x1:_0x93a3fd<_0xcc7570?-0x1:0x1;});for(const _0x4f539a of _0x5e2650)_0x4f539a['sort']((_0x35f484,_0x55824c)=>_0x35f484['id']<_0x55824c['id']?-0x1:0x1);}());for(let _0x39366f=0x0;_0x39366f<_0x5e2650['length'];_0x39366f++){if(0x0==_0x5e2650[_0x39366f]['length'])continue;const _0x2f41d5=[];for(let _0x2ad53e=_0x39366f+0x1;_0x2ad53e<_0x5e2650['length'];_0x2ad53e++)0x0!=_0x5e2650[_0x2ad53e]['length']&&_0x18d75a(_0x5e2650[_0x39366f],_0x5e2650[_0x2ad53e])&&_0x2f41d5['push'](_0x2ad53e);for(const _0x5516bc of _0x2f41d5)_0x5e2650[_0x39366f]=_0x5e2650[_0x39366f]['concat'](_0x5e2650[_0x5516bc]),_0x5e2650[_0x5516bc]=[];}for(const _0x4d6e8c of _0x5e2650)for(let _0x44fe64=0x0;_0x44fe64<_0x4d6e8c['length'];_0x44fe64++){const _0x40cc54=_0x4d6e8c[_0x44fe64+0x1]||null;_0x4d6e8c[_0x44fe64]['next']!==_0x40cc54&&(_0x4d6e8c[_0x44fe64]['next']=_0x40cc54);}for(const _0x4ab7c8 of _0x5e2650)for(let _0x40599a=0x0;_0x40599a<_0x4ab7c8['length'];_0x40599a++){const _0x467648=_0x4ab7c8[_0x40599a-0x1]||null;_0x4ab7c8[_0x40599a]['previous']!==_0x467648&&(_0x4ab7c8[_0x40599a]['previous']=_0x467648);}function _0x18d75a(_0x46a5a5,_0x50f7e7){if(_0x46a5a5[0x0]['attributes']['groupId']!==_0x50f7e7[0x0]['attributes']['groupId']&&_0x46a5a5[0x0]['author']!==_0x50f7e7[0x0]['author'])return!0x1;if(!function(_0x370712,_0x2da694){if(!_0x370712['hasComments']&&!_0x2da694['hasComments'])return!0x0;if(_0x370712['hasComments']&&_0x2da694['hasComments'])return!0x1;if(_0x370712['hasComments']&&_0x2da694['createdAt']<_0x370712['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2da694['hasComments']&&_0x370712['createdAt']<_0x2da694['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x46a5a5[0x0],_0x50f7e7[0x0]))return!0x1;const _0x3f69ef=Pt(_0x46a5a5[0x0]['attributes'],['groupId','trackingSessionId']),_0x1f4757=Pt(_0x50f7e7[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4f47b1(_0x3f69ef,_0x1f4757))return!0x1;if(_0x46a5a5[0x0]['attributes']['groupId']==_0x50f7e7[0x0]['attributes']['groupId'])return!0x0;if(_0x46a5a5[0x0]['attributes']['trackingSessionId']!==_0x50f7e7[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x46a5a5['every'](_0x4f7d1e=>_0x50f7e7['some'](_0x274095=>_0x4f7d1e['getFirstRange']()['isEqual'](_0x274095['getFirstRange']())))&&_0x50f7e7['every'](_0x508269=>_0x46a5a5['some'](_0x5df140=>_0x508269['getFirstRange']()['isEqual'](_0x5df140['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x263e93){const _0x39b9aa=Array['from'](_0x263e93),_0x487685=this['getSuggestions']({'skipNotAttached':!0x0}),_0x259a47=_0x487685['filter'](_0x43e407=>!_0x263e93['has'](_0x43e407)),_0x19c4b0=new Map(_0x39b9aa['map'](_0x505336=>[_0x505336,this['_suggestionFactory']['getSuggestionCallback'](_0x505336['type'],_0x505336['subType'],'join')])),_0x1f440f=new Map(_0x487685['map'](_0x38b116=>[_0x38b116,_0x38b116['getRanges']()]));for(let _0x31b1c3=0x0;_0x31b1c3<_0x39b9aa['length'];_0x31b1c3++){if(_0xf56019(this,_0x39b9aa[_0x31b1c3],_0x39b9aa,_0x31b1c3+0x1))return!0x0;}for(let _0x508449=0x0;_0x508449<_0x39b9aa['length'];_0x508449++){if(_0xf56019(this,_0x39b9aa[_0x508449],_0x259a47,0x0))return!0x0;}return!0x1;function _0xf56019(_0x4c183c,_0x27b471,_0x36828a,_0x391bc0){for(let _0x30ae92=_0x391bc0;_0x30ae92<_0x36828a['length'];_0x30ae92++){const _0x42b7e2=_0x36828a[_0x30ae92];if(_0x42b7e2['type']!==_0x27b471['type']||_0x42b7e2['author']['id']!==_0x27b471['author']['id']||_0x42b7e2['subType']!==_0x27b471['subType'])continue;if(!en(_0x27b471,_0x42b7e2))continue;if('attribute'==_0x27b471['type']&&_0x27b471['data']['oldValue']!=_0x42b7e2['data']['oldValue'])continue;if('attribute'==_0x27b471['type']&&_0x4c183c['_isBlockAttribute'](_0x27b471['data']['key']))continue;if('formatBlock'==_0x27b471['type']){const _0x37062d=_0x4c183c['editor']['model'],_0x228e64=_0x27b471['getContainedElement']();if(_0x228e64&&(_0x37062d['schema']['isObject'](_0x228e64)||_0x37062d['schema']['isLimit'](_0x228e64)))continue;}const _0x2160c1=_0x19c4b0['get'](_0x27b471),_0x1b994b=_0x1f440f['get'](_0x27b471),_0x44fb24=_0x1f440f['get'](_0x42b7e2),_0x46ea79=_0x27b471['commentThread']&&_0x27b471['commentThread']['length'],_0x5c5382=_0x42b7e2['commentThread']&&_0x42b7e2['commentThread']['length'];if(!_0x46ea79&&_0x2160c1(_0x44fb24,_0x1b994b))return _0x4c183c['_joinSuggestions'](_0x42b7e2,_0x27b471),_0x1f440f['delete'](_0x27b471),!0x0;if(!_0x5c5382&&_0x2160c1(_0x1b994b,_0x44fb24))return _0x4c183c['_joinSuggestions'](_0x27b471,_0x42b7e2),_0x1f440f['delete'](_0x42b7e2),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4fea5c,_0x500df2){if(_0x4fea5c['isMultiRange']){for(const _0xd99fd8 of _0x500df2['getRanges']())_0x4fea5c['addRange'](_0xd99fd8);}else{const _0x247d41=_0x500df2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4fea5c,this['_model']['createRange'](_0x4fea5c['getFirstRange']()['start'],_0x247d41));}_0x500df2['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4fe857,_0x1279db,_0x31a195){const _0x3add6c=_0x4fe857['startsWith']('format')||_0x4fe857['startsWith']('attribute')?'FORMATTING':_0x4fe857['toUpperCase']();return o(this['editor']['locale'],_0x1279db+'_'+_0x3add6c+'_SUGGESTION_ANNOUNCEMENT',_0x31a195);}['_initAriaMarkerChangeAnnouncements'](){const _0x86ccb6=this['editor'];if(!_0x86ccb6['ui'])return;const {ariaLiveAnnouncer:_0x156983}=_0x86ccb6['ui'];_0x202c5c(this['_model'],({left:_0x4168a8,entered:_0x20025e})=>{for(const _0x15db76 of _0x4168a8){const {group:_0x4565fd,type:_0x310704}=this['_splitMarkerName'](_0x15db76['name']);if('suggestion'===_0x4565fd){_0x156983['announce'](this['_getMarkerAnnouncementText'](_0x310704,'LEAVE'));break;}}for(const _0xb32d55 of _0x20025e){const {group:_0x4d91bc,type:_0xdb8fd4}=this['_splitMarkerName'](_0xb32d55['name']);if('suggestion'===_0x4d91bc){_0x156983['announce'](this['_getMarkerAnnouncementText'](_0xdb8fd4,'ENTER',_0x11ecdd(_0x3d9514)));break;}}});}['_processAttributeChanges'](_0x45fad8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x14cddb=this['editor'],_0x49f364=_0x14cddb['model']['document']['differ']['getChanges']();if(0x0==_0x49f364['length'])return!0x1;const _0x354b6b=[],_0x3b2bee=_0x49f364['filter'](_0x2ec446=>'attribute'==_0x2ec446['type']),_0x36b334=_0x49f364['filter'](_0x20cc13=>'insert'==_0x20cc13['type']&&'$text'!=_0x20cc13['name']),_0x4b357d=_0x49f364['filter'](_0x54eaf5=>'remove'==_0x54eaf5['type']&&'$text'!=_0x54eaf5['name']);for(const _0x36ee2f of _0x3b2bee)_0x354b6b['push']({'key':_0x36ee2f['attributeKey'],'newValue':_0x36ee2f['attributeNewValue'],'oldValue':_0x36ee2f['attributeOldValue'],'range':Zt(_0x36ee2f['range'],_0x14cddb['model'])});for(const _0x53b3d2 of _0x36b334){const _0x1c3da0=_0x4b357d['find'](_0x1a5cb7=>_0x1a5cb7['position']['isEqual'](_0x53b3d2['position']));_0x1c3da0&&_0x354b6b['push']({'key':m,'newValue':_0x53b3d2['name'],'oldValue':_0x1c3da0['name'],'range':_0x14cddb['model']['createRangeOn'](_0x53b3d2['position']['nodeAfter'])});}return 0x0!=_0x354b6b['length']&&this['_reduceExistingSuggestions'](_0x45fad8,_0x354b6b);}['_processAttributeSuggestions'](_0x59f034){let _0x111af5=!0x1;const _0x32d730=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x88ca5=>_0x88ca5['data']['newRange']&&_0x88ca5['name']['startsWith']('suggestion:attribute:'));for(const _0x602392 of _0x32d730){const {subType:_0x306c66,id:_0x36030d}=this['_splitMarkerName'](_0x602392['name']),_0x2871e4=_0x306c66['split']('|')[0x0];for(const _0x1fa21a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1fa21a['id']!=_0x36030d&&'attribute'==_0x1fa21a['type']&&_0x1fa21a['data']&&_0x1fa21a['data']['key']==_0x2871e4&&_0x1fa21a['getFirstRange']()['isIntersecting'](_0x602392['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1fa21a,_0x602392['data']['newRange'],_0x59f034),_0x111af5=!0x0);}return _0x111af5;}['recordAttributeChanges'](_0x35700c){this['_recordAttributeSuggestions']=!0x0,_0x35700c();}['_isRegisteredAttribute'](_0x2abcf2){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x2abcf2);}['_reduceExistingSuggestions'](_0x2a7f9d,_0x1f751b){if(0x0==_0x1f751b['length'])return!0x1;let _0x26d3ab=!0x1;for(const _0x3e547e of _0x1f751b){const _0x3a08a2=this['_findSuggestions'](_0x3e547e['range'],'attribute')['filter'](_0xb3c81f=>!_0xb3c81f['meta']['isNextTo'])['map'](_0x551474=>_0x551474['suggestion']),_0x3c2ef0=_0x3e6d3d({'newValue':_0x3e547e['newValue']});_0x3a08a2['filter'](_0x5a4b65=>{const [_0x33d5de,_0x2b76aa]=_0x5a4b65['subType']['split']('|');return _0x33d5de==_0x3e547e['key']&&_0x2b76aa!=_0x3c2ef0;})['forEach'](_0x3d7d32=>{this['_reduceSuggestionAttributeRange'](_0x3d7d32,_0x3e547e['range'],_0x2a7f9d),_0x26d3ab=!0x0;});}return _0x26d3ab;}['_reduceSuggestionAttributeRange'](_0x79d9f2,_0x485b0a,_0x4ee745){const _0xd0faff=_0x79d9f2['getFirstRange']()['getDifference'](_0x485b0a);0x0!==_0xd0faff['length']?0x1!==_0xd0faff['length']?this['_breakSuggestionMarker'](_0x79d9f2,_0x485b0a['start'],_0x485b0a['end']):this['_setSuggestionRange'](_0x79d9f2,_0xd0faff[0x0]):_0x4ee745['removeMarker'](_0x79d9f2['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x9d14b){this['_editor']=_0x9d14b,this['_model']=_0x9d14b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x9e4fec,_0x23df1e,_0x26fd70,_0x1cc4cb,_0x2e5edf,_0x2a6f75,_0x38fce5){return new x(this['_model'],{'type':_0x9e4fec,'subType':_0x23df1e,'id':_0x26fd70,'originalSuggestionId':_0x38fce5,'author':_0x1cc4cb,'creator':_0x1cc4cb,'attributes':_0x2e5edf,'onAttributesChange':_0x2a6f75,'onAccept':(..._0x1edc32)=>this['getSuggestionCallback'](_0x9e4fec,_0x23df1e,'accept')(..._0x1edc32),'onDiscard':(..._0x46a045)=>this['getSuggestionCallback'](_0x9e4fec,_0x23df1e,'discard')(..._0x46a045)});}['registerCustomCallback'](_0x1d5b99,_0x1d1bdb,_0x1fbafe,_0x237b66){const _0x1a83d2=_0x1d5b99+':'+_0x1d1bdb+':'+_0x1fbafe;this['_customCallbacks']['set'](_0x1a83d2,_0x237b66);}['getSuggestionCallback'](_0x251fac,_0x2534e4,_0x382946){const _0x11a304=_0x251fac+':'+_0x2534e4+':'+_0x382946;return this['_customCallbacks']['get'](_0x11a304)||this['_defaultCallbacks']['get'](_0x251fac+':'+_0x382946);}['_registerDefaultCallbacks'](){const _0x9b2a08=()=>!0x1,_0x3f643f=_0x4420df=>{_0x4420df['sort']((_0x570d2d,_0x25ade9)=>_0x570d2d['start']['isBefore'](_0x25ade9['start'])?0x1:-0x1),this['_model']['change'](_0x137986=>{for(const _0x7d8fda of _0x4420df){let _0x2a8152;_0x2a8152=_0x7d8fda['end']['isAtEnd']&&_0x7d8fda['end']['parent']==_0x7d8fda['start']['nodeAfter']?_0x137986['createSelection'](_0x7d8fda['start']['nodeAfter'],'on'):_0x137986['createSelection'](_0x7d8fda),this['_model']['deleteContent'](_0x2a8152,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3a6194=(_0x3e0e5c,_0x483021)=>{_0x483021&&this['_model']['change'](_0x1d1118=>{const {commandName:_0x347cd2,commandParams:_0x56df2d=[]}=_0x483021,_0x3ae72b=_0x3e0e5c['map'](_0x3f80ec=>(Kt(_0x3f80ec)&&(_0x3f80ec=this['_model']['createRange'](_0x3f80ec['end'])),_0x3f80ec))['filter'](_0x13d807=>'$graveyard'!==_0x13d807['root']['rootName']);if(_0x3ae72b['length']<0x1)return;const _0x449980=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2ecf0c=>_0x95b134['fromRange'](_0x2ecf0c));_0x1d1118['setSelection'](_0x3ae72b);for(const _0x23fdc7 of this['_editor']['commands']['commands']())_0x23fdc7['refresh']();_0x56df2d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x347cd2,..._0x56df2d);const _0x3c21f8=_0x449980['filter'](_0x570849=>'$graveyard'!=_0x570849['root']['rootName']);_0x3c21f8['length']>0x0&&_0x1d1118['setSelection'](_0x3c21f8);for(const _0x46e67a of _0x449980)_0x46e67a['detach']();});},_0x1bad95=(_0x2d6371,_0x5b5cc8)=>0x1==_0x2d6371['length']&&0x1==_0x5b5cc8['length']&&_0x2d6371[0x0]['end']['isEqual'](_0x5b5cc8[0x0]['start']),_0x2c633b=(_0x4aaa48,_0x2c7563,_0x2b65b5,_0x52bf37)=>nn(_0x4aaa48,_0x2c7563,_0x2b65b5,_0x52bf37)?[_0x4aaa48,_0x2c7563]:nn(_0x2c7563,_0x4aaa48,_0x52bf37,_0x2b65b5)?[_0x2c7563,_0x4aaa48]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x9b2a08),this['_defaultCallbacks']['set']('insertion:discard',_0x3f643f),this['_defaultCallbacks']['set']('insertion:join',_0x1bad95),this['_defaultCallbacks']['set']('insertion:chain',_0x2c633b),this['_defaultCallbacks']['set']('deletion:accept',_0x3f643f),this['_defaultCallbacks']['set']('deletion:discard',_0x9b2a08),this['_defaultCallbacks']['set']('deletion:join',_0x1bad95),this['_defaultCallbacks']['set']('deletion:chain',_0x2c633b),this['_defaultCallbacks']['set']('formatInline:accept',_0x3a6194),this['_defaultCallbacks']['set']('formatInline:discard',_0x9b2a08),this['_defaultCallbacks']['set']('formatInline:join',_0x1bad95),this['_defaultCallbacks']['set']('formatInline:chain',_0x9b2a08),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3a6194),this['_defaultCallbacks']['set']('formatBlock:discard',_0x9b2a08),this['_defaultCallbacks']['set']('formatBlock:join',_0x1bad95),this['_defaultCallbacks']['set']('formatBlock:chain',_0x9b2a08),this['_defaultCallbacks']['set']('attribute:accept',_0x9b2a08),this['_defaultCallbacks']['set']('attribute:discard',(_0x5c2913,_0x38d0f8)=>{if(!_0x38d0f8)return;const _0x418f89=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x572c30=>{if(_0x38d0f8['key']==m)for(const _0xe9390f of _0x5c2913){const _0x5120be=_0xe9390f['start']['nodeAfter'],_0x1fccdb=_0x38d0f8['oldValue'];_0x572c30['rename'](_0x5120be,_0x1fccdb);}else{if(_0x418f89['_isBlockAttribute'](_0x38d0f8['key'])){for(const _0x3df424 of _0x5c2913)void 0x0!==_0x38d0f8['oldValue']?_0x572c30['setAttribute'](_0x38d0f8['key'],_0x38d0f8['oldValue'],_0x3df424['start']['nodeAfter']):_0x572c30['removeAttribute'](_0x38d0f8['key'],_0x3df424['start']['nodeAfter']);}else{for(const _0x4d07bc of _0x5c2913)_0x38d0f8['oldValue']?_0x572c30['setAttribute'](_0x38d0f8['key'],_0x38d0f8['oldValue'],_0x4d07bc):_0x572c30['removeAttribute'](_0x38d0f8['key'],_0x4d07bc);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1bad95);}}function zt(_0x2c4c96,_0x148694,_0x808955){for(const _0x52934f of _0x148694['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x52934f['root']==_0x52934f)return!0x1;if(!_0x808955['containsItem'](_0x52934f))return!0x1;if(_0x2c4c96['isObject'](_0x52934f)||_0x2c4c96['isLimit'](_0x52934f))return!0x0;}return!0x1;}function Kt(_0x39111c){return _0x39111c['end']['parent']==_0x39111c['start']['nodeAfter']&&_0x39111c['end']['isAtStart'];}function Wt(_0x41dc0f,_0x366934,_0x681c4c,_0x494b23){const _0x45aefa=_0x51c508=>!_0x51c508['item']['is']('$textProxy')&&!_0x494b23['isObject'](_0x51c508['item']),_0x4cc8c6=_0x41dc0f['start']['getLastMatchingPosition'](_0x45aefa),_0x49ac67=_0x41dc0f['end']['getLastMatchingPosition'](_0x45aefa,{'direction':'backward'});return(!_0x41dc0f['start']['isEqual'](_0x4cc8c6)||!_0x41dc0f['end']['isEqual'](_0x49ac67))&&(_0x4cc8c6['isBefore'](_0x49ac67)?_0x681c4c['updateMarker'](_0x366934,{'range':_0x681c4c['createRange'](_0x4cc8c6,_0x49ac67)}):_0x681c4c['removeMarker'](_0x366934),!0x0);}function Ht(_0x53ed6d){return _0x3e6d3d(_0x53ed6d);}function Qt(_0x4e62c4){const _0x315b79=_0x4e62c4['start']['nodeAfter'];return _0x315b79&&_0x315b79['is']('element');}function Xt(_0x25a66a){return Kt(_0x25a66a)||function(_0xfef073){return _0xfef073['start']['parent']==_0xfef073['end']['nodeBefore']&&_0xfef073['start']['isAtEnd'];}(_0x25a66a);}function Yt(_0x1e4745,_0x157916){try{const _0x737cdd=_0x1e4745['getRange']();for(const _0x3413e4 of _0x157916)if(_0x1e4745!==_0x3413e4&&_0x737cdd&&_0x737cdd['isIntersecting'](_0x3413e4['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x2c32c9,_0x5ae312){return null==_0x2c32c9['end']['nodeBefore']&&_0x2c32c9['end']['parent']==_0x2c32c9['start']['nodeAfter']?tn(_0x2c32c9['start']['nodeAfter'],_0x5ae312):_0x2c32c9;}function tn(_0x2ed310,_0x5a3751){const _0x53aec1=_0x5a3751['schema']['isObject'](_0x2ed310)||_0x5a3751['schema']['isSelectable'](_0x2ed310);return _0x5a3751['createRange'](_0x5a3751['createPositionAt'](_0x2ed310,'before'),_0x53aec1?_0x5a3751['createPositionAfter'](_0x2ed310):_0x5a3751['createPositionAt'](_0x2ed310,'end'));}function nn(_0x23bf0e,_0x50f9fc,_0xfa2e32,_0x3c251e){return!!en(_0x23bf0e,_0x50f9fc)&&_0xfa2e32['end']['isEqual'](_0x3c251e['start']);}function en(_0x1d7980,_0x7bbffd){if(!_0x1d7980['_isDataLoaded']||!_0x7bbffd['_isDataLoaded'])return!0x1;const _0x42d25c=new Set(Object['keys'](_0x1d7980['attributes'])),_0x4e4f47=new Set(Object['keys'](_0x7bbffd['attributes']));if(_0x42d25c['delete']('groupId'),_0x4e4f47['delete']('groupId'),0x0==_0x42d25c['size']&&0x0==_0x4e4f47['size'])return!0x0;if(_0x42d25c['size']!=_0x4e4f47['size'])return!0x1;const _0xf313f2={..._0x1d7980['attributes']},_0x92d1dc={..._0x7bbffd['attributes']};return delete _0xf313f2['groupId'],delete _0x92d1dc['groupId'],JSON['stringify'](_0xf313f2)==JSON['stringify'](_0x92d1dc);}function sn(_0x2315ba,_0x1029d1){const _0x56da28=on(_0x2315ba['attributes']),_0x33ba27=on(_0x1029d1);if(!_0x2315ba['_isDataLoaded'])return!0x1;for(const _0x3d0e53 of Object['keys'](_0x33ba27))if(!_0x4f47b1(_0x56da28[_0x3d0e53],_0x33ba27[_0x3d0e53]))return!0x1;return!0x0;}function on(_0x26ba74){const _0x7146f4=Object['assign']({},_0x26ba74);return delete _0x7146f4['skipNestingCheck'],delete _0x7146f4['tablePasteChainId'],_0x7146f4;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x415f8e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x568da3,_0x5de3f9,_0x5f53d5,_0x5524a6){super(),this['model']=_0x5de3f9,this['view']=_0x5f53d5,this['commentThreadController']=_0x5524a6,this['_editor']=_0x568da3,this['_acceptCommand']=_0x568da3['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x568da3['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3105b2,_0x228d7d)=>_0x3105b2||_0x228d7d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4286f0=>_0x4286f0&&this['_editor']['model']['canEditAt'](_0x5de3f9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4eced5=>_0x4eced5&&this['_editor']['model']['canEditAt'](_0x5de3f9['getRanges']())),this['_pendingAction']=null,_0x5f53d5['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5f53d5,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5f53d5,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5f53d5,'change:isDirty',()=>{_0x5f53d5['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 _0x4d81f7=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4d81f7);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x26eb50{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4860ad,_0x5d21e8,_0x2060ef,_0x1baeb1){super(_0x4860ad),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x228b82(_0x4860ad,o(_0x4860ad,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5d21e8['authoredAt']),this['bind']('authoredAt')['to'](_0x5d21e8),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',_0x5d21e8,'authoredAt',this,'descriptionParts',(_0x1061d9,_0x31e47d,_0xbc4bbc)=>{const _0x16cd4e=_0xbc4bbc['map'](_0x4c06f5=>ls(_0x4c06f5['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1061d9-0x1,_0x5d21e8['author']['name'],_0x31e47d?_0x1baeb1['formatDateTime'](_0x31e47d):'',new DOMParser()['parseFromString'](_0x16cd4e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5cb37c(),this['focusTracker']=new _0x2df900(),this['keystrokes']=new _0x154f7e(),this['focusCycler']=new _0x181476({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4717c1=>_0x4717c1['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5d21e8,this['_localUser']=_0x2060ef,this['_config']=_0x1baeb1,_0x1baeb1['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3a7830(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xd92bc8}=this['_config'];this['commentsListView']=new _0xd92bc8(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',_0x43f92b=>_0x43f92b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x584030,_0x208e59)=>_0x584030||!!_0x208e59);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x10c383}=this['_config'],_0x5efcff=new _0x10c383(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2d7233=_0x5efcff['commentInputView'];return _0x5efcff['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2d7233,'value',(_0x54fe96,_0x28fc36,_0x4d25e9)=>!!_0x4d25e9||_0x54fe96&&!_0x28fc36),_0x2d7233['on']('submit',(_0x37b343,_0x1fd124)=>{this['fire']('addComment',_0x1fd124),_0x2d7233['editor']['setData']('');}),_0x2d7233['on']('cancel',()=>this['focus']()),_0x2d7233['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5efcff;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x3ebca4,_0x36d04a,_0x5c7e83,_0x2561bb){super(_0x3ebca4,_0x36d04a,_0x5c7e83,_0x2561bb),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x482744=>_0x482744&&_0x482744[0x0]?_0x482744[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5b3db6,_0x1dce8c)=>{let _0x5ecd9e='';for(const _0x1ab390 of _0x5b3db6)_0x5ecd9e+='<p>'+ls(_0x1ab390['content'],_0x1ab390['color'])+'</p>';return _0x1dce8c?_0x5ecd9e:_0x1e8c88(_0x5ecd9e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2561bb['SuggestionView'](_0x3ebca4,_0x36d04a,{'formatDateTime':_0x2561bb['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 _0x400560=this['bindTemplate'],_0x427b8d=[this['suggestionView']];return this['commentsListView']&&_0x427b8d['push'](this['commentsListView']),this['commentThreadInputView']&&_0x427b8d['push'](this['commentThreadInputView']),_0x427b8d['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x400560['if']('isActive','ck-suggestion-wrapper--active'),_0x400560['to']('type',_0x2cd31e=>'ck-suggestion-'+_0x2cd31e),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':_0x400560['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x427b8d};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x26eb50{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1f5060,_0x1e34e2,_0x2604a0){super(_0x1f5060),this['_model']=_0x1e34e2,this['_config']=_0x2604a0,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1e34e2),this['acceptButton']=this['_createButton'](o(_0x1f5060,'Accept\x20suggestion'),_0x361933,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1f5060,'Discard\x20suggestion'),_0xd627c5,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x126f1a(_0x1f5060,_0x1e34e2['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5cb37c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2df900(),this['keystrokes']=new _0x154f7e(),this['focusCycler']=new _0x181476({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2f9320=>_0x2f9320['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4e83dc=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4e83dc['innerHTML']=this['description'],this['on']('change:description',(_0x333604,_0x12798b,_0x51f107)=>{_0x4e83dc['innerHTML']=_0x51f107;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x220165=this['bindTemplate'],_0x4c85c2=[{'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':_0x220165['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x220165['to']('authoredAt',_0x201827=>this['_config']['formatDateTime'](_0x201827))}]}]},{'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']&&_0x4c85c2['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':_0x4c85c2}]};}['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'](_0x428582,_0x40d493,_0x54b141,_0xc7f8aa,_0x10a2b3){const _0x10e9e2=new _0x51c3ab(this['locale']);return _0x10e9e2['set']({'label':_0x428582,'icon':_0x40d493,'tooltip':!0x0,'tooltipPosition':_0x10a2b3}),_0x10e9e2['extendTemplate']({'attributes':{'class':_0x54b141}}),_0x10e9e2['on']('execute',()=>{this['fire'](_0xc7f8aa,this['_model']['id']);}),_0x10e9e2;}['_setupKeyboardNavigation'](){const _0x49419b=this['element'];this['keystrokes']['listenTo'](_0x49419b);for(const _0xfe2bd9 of this['focusables'])this['focusTracker']['add'](_0xfe2bd9['element']),this['keystrokes']['listenTo'](_0xfe2bd9['element']);this['keystrokes']['set']('enter',(_0x541158,_0x24331c)=>{_0x49419b===_0x541158['target']&&(this['focusCycler']['focusFirst'](),_0x24331c());}),this['keystrokes']['set']('esc',(_0x1f2672,_0x1c031b)=>{_0x49419b!==_0x1f2672['target']&&(this['focus'](),_0x1c031b());});}}class u extends _0x2e8ec7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x9f1e39,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35ee45){super(_0x35ee45),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3f5897=this['editor']['config'];_0x3f5897['define']('trackChanges.SuggestionThreadView',fe),_0x3f5897['define']('trackChanges.SuggestionView',we),_0x3f5897['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3f5897['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x515f0e,_0x46fd5f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1548a2,_0x1a365a]of this['_handleControllerBuffer']){const _0x1a97be=this['_suggestionToController']['has'](_0x1548a2);_0x1a97be||_0x1a365a?_0x1a97be&&_0x1a365a&&this['_destroyController'](_0x1548a2):this['_initializeController'](_0x1548a2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x515f0e,_0x46fd5f);}['init'](){const _0x4ac921=this['editor'],_0x3d603f=_0x4ac921['plugins']['get']('TrackChangesEditing'),_0x3291f9=_0x4ac921['plugins']['get']('Annotations'),_0xc7c0a=_0x4ac921['plugins']['get']('EditorAnnotations'),_0x4ee2af=_0x4ac921['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xc7c0a['addSourceCollector'](()=>{const _0x199c18=[];for(const [_0x3bc9b0,_0x31a923]of Array['from'](this['_suggestionToController'])){const _0x469a63=_0x3bc9b0['getAllAdjacentSuggestions'](),_0x1c39c1=[];for(const _0x17f794 of _0x469a63){if(!_0x17f794['isInContent'])continue;if(_0x17f794['isMultiRange']){_0x1c39c1['push'](..._0x17f794['getRanges']());continue;}const _0x105788=_0x17f794['getFirstRange']();if(_0x1c39c1['length']>0x0){const _0x4005f3=_0x1c39c1[0x0]['getJoined'](_0x105788);if(_0x4005f3){_0x1c39c1[0x0]=_0x4005f3;continue;}}_0x1c39c1['push'](_0x105788);}_0x199c18['push']([_0x31a923['view'],_0x1c39c1]);}return _0x199c18;}),this['listenTo'](_0x3d603f,'suggestionLoaded',(_0x46ae3c,_0x57a4b7)=>{this['listenTo'](_0x57a4b7,'change:previous',(_0x33da8f,_0x3fec7e,_0x1b7584,_0x4b73be)=>{_0x57a4b7['isInContent']&&(null==_0x1b7584?(this['_updateController'](_0x4b73be['head']),this['_handleSuggestionControllerDelayed'](_0x57a4b7,!0x1)):(this['_updateController'](_0x1b7584['head']),null==_0x4b73be&&this['_handleSuggestionControllerDelayed'](_0x57a4b7,!0x0)));}),null!==_0x57a4b7['previous']?this['_updateController'](_0x57a4b7['head']):this['_handleSuggestionControllerDelayed'](_0x57a4b7,!0x1);}),this['listenTo'](_0x3d603f,'suggestionUnloaded',(_0xbab2c0,_0x5687f9,_0x523557)=>{this['stopListening'](_0x5687f9,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5687f9),this['_suggestionToController']['has'](_0x5687f9)&&this['_destroyController'](_0x5687f9),_0x523557&&this['_updateController'](_0x523557['head']);}),this['listenTo'](_0x3d603f,'suggestionChanged',(_0x4ae9f1,_0x336911)=>{this['_updateController'](_0x336911);}),this['listenTo'](_0x3291f9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4ee2af,'addComment',(_0x1f0c05,{threadId:_0x378c8f,isFromAdapter:_0x5c9bb1})=>{if(_0x5c9bb1||!_0x3d603f['hasSuggestion'](_0x378c8f))return;const _0x26415f=_0x3d603f['getSuggestion'](_0x378c8f);this['_suggestionToController']['get'](_0x26415f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1d24bf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5672e3;for(const _0x3bad9c in _0x1d24bf){const _0x55faff=_0x3bad9c,_0x5c8f86=_0x1d24bf[_0x55faff];if('trackChangesLicenseKeyValid'==_0x5c8f86||'trackChangesLicenseKeyInvalid'==_0x5c8f86||'trackChangesLicenseKeyExpired'==_0x5c8f86||'trackChangesLicenseKeyDomainLimit'==_0x5c8f86||'trackChangesLicenseKeyNotAllowed'==_0x5c8f86||'trackChangesLicenseKeyEvaluationLimit'==_0x5c8f86||'trackChangesLicenseKeyUsageLimit'==_0x5c8f86){delete _0x1d24bf[_0x55faff],_0x5672e3=_0x5c8f86,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5672e3&&_0x1d24bf['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5672e3&&_0x1d24bf['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5672e3&&_0x1d24bf['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5672e3&&_0x1d24bf['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5672e3&&_0x1d24bf['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5672e3&&_0x1d24bf['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x252050){const _0x23db25=this['_suggestionToController']['get'](_0x252050);if(!_0x23db25)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x23db25['view'])||null;}['getSuggestionForAnnotation'](_0x59971c){const _0x2e283a=this['_viewToController']['get'](_0x59971c['innerView']);return _0x2e283a?_0x2e283a['model']:null;}['_refreshActiveMarkers'](){const _0xe63d7d=this['editor']['plugins']['get']('Annotations'),_0x5505d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0xac1bd=Array['from'](_0xe63d7d['activeAnnotations'],_0x258127=>_0x258127['innerView'])['filter'](_0x32e6d6=>this['_viewToController']['has'](_0x32e6d6)),_0x4d234e=[];for(const _0x201aa9 of _0xac1bd){const _0x488e4c=this['_viewToController']['get'](_0x201aa9)['model']['getAllAdjacentSuggestions']();_0x4d234e['push'](..._0x488e4c['reduce']((_0x37868b,_0x823fd4)=>[..._0x37868b,..._0x823fd4['getMarkerNames']()],[]));}_0x5505d6['activeMarkers']=_0x4d234e;}['_addUIComponentsToFactory'](){const _0x9d20dd=this['editor'],_0x22aa3f=_0x9d20dd['locale'],_0x4c3020=o(_0x22aa3f,'Track\x20changes'),_0x439064=new _0x5d7174([{'type':'switchbutton','model':new _0x41c3ed({'withText':!0x0,'isToggleable':!0x0,'label':_0x4c3020,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x41c3ed({'withText':!0x0,'label':o(_0x22aa3f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41c3ed({'withText':!0x0,'label':o(_0x22aa3f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41c3ed({'withText':!0x0,'label':o(_0x22aa3f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41c3ed({'withText':!0x0,'label':o(_0x22aa3f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x9d20dd['plugins']['has']('TrackChangesPreview')&&_0x439064['addMany']([{'type':'separator'},{'type':'button','model':new _0x41c3ed({'withText':!0x0,'label':o(_0x22aa3f,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x217559 of _0x439064)if(ke(_0x217559)){const _0x25b31e=_0x9d20dd['commands']['get'](_0x217559['model']['commandName']);_0x217559['model']['bind']('isOn','isEnabled')['to'](_0x25b31e,'value','isEnabled');}_0x9d20dd['ui']['componentFactory']['add']('trackChanges',_0x50aac5=>this['_createToolbarButton'](_0x50aac5,_0x439064,_0x4c3020)),_0x9d20dd['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2091e8=>this['_createMenuBarMenu'](_0x2091e8,_0x439064,_0x4c3020));}['_createToolbarButton'](_0x53daec,_0x401344,_0x2c98e3){const _0x16ffaf=_0x58c904(_0x53daec,_0x78ba63),_0x548580=this['editor']['commands']['get']('trackChanges');_0x16ffaf['buttonView']['set']({'tooltip':_0x2c98e3,'label':_0x2c98e3,'icon':_0x2a95b3}),_0x16ffaf['buttonView']['bind']('isOn')['to'](_0x548580,'value'),_0x16ffaf['buttonView']['on']('execute',()=>{_0x548580['execute'](),this['editor']['editing']['view']['focus']();}),_0x49bcc1(_0x16ffaf,_0x401344,{'role':'menu'});const _0x2fe4cf=[];for(const _0x2a7314 of _0x401344)ke(_0x2a7314)&&_0x2fe4cf['push'](this['editor']['commands']['get'](_0x2a7314['model']['commandName']));const _0x2a44da=_0x16ffaf['buttonView'];return _0x2a44da['actionView']['unbind']('isEnabled'),_0x2a44da['arrowView']['unbind']('isEnabled'),_0x2a44da['actionView']['bind']('isEnabled')['to'](_0x548580,'isEnabled'),_0x2a44da['arrowView']['bind']('isEnabled')['toMany'](_0x2fe4cf,'isEnabled',(..._0x5c7021)=>_0x5c7021['some'](_0x4aed57=>_0x4aed57)),_0x16ffaf['on']('execute',_0x36b3b9=>{this['editor']['execute'](_0x36b3b9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x16ffaf;}['_createMenuBarMenu'](_0x24c025,_0x356a4e,_0x4d259e){const _0x42f135=new _0x1e17a9(_0x24c025),_0x43c9c8=this['editor']['commands']['get']('trackChanges');_0x42f135['buttonView']['set']({'label':_0x4d259e,'icon':_0x2a95b3});const _0x2ec9aa=new _0x3c4cb6(_0x24c025);for(const _0x44ae97 of _0x356a4e){if('separator'==_0x44ae97['type']){_0x2ec9aa['items']['add'](new _0xa1db36(_0x24c025));continue;}const _0x22d12c=new _0x1ea383(_0x24c025,_0x42f135),_0x4f40aa=new _0x175cb2(_0x24c025),_0x1ba8c5=_0x44ae97['model'];_0x4f40aa['bind'](...Object['keys'](_0x1ba8c5))['to'](_0x1ba8c5),_0x4f40aa['delegate']('execute')['to'](_0x42f135),_0x4f40aa['on']('execute',()=>{this['editor']['execute'](_0x1ba8c5['commandName']),this['editor']['editing']['view']['focus']();}),_0x22d12c['children']['add'](_0x4f40aa),_0x2ec9aa['items']['add'](_0x22d12c);}return _0x42f135['bind']('isEnabled')['to'](_0x43c9c8,'isEnabled'),_0x42f135['panelView']['children']['add'](_0x2ec9aa),_0x42f135;}['_initializeController'](_0x228838){const _0x2e0140=this['editor'],_0x21594e=_0x2e0140['config'],_0x156334=_0x2e0140['plugins']['get']('Annotations'),_0x3b421e=_0x2e0140['plugins']['get']('CommentsRepository'),_0x20526d=_0x2e0140['plugins']['get']('EditorAnnotations'),_0x43c13a=_0x2e0140['plugins']['get'](_0x9f1e39)['me'],_0x1ac05e=_0x21594e['get']('trackChanges')['SuggestionThreadView'],_0x42bf5c=_0x21594e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1ee7c0,CommentThreadInputView:_0x23abca}=_0x2e0140['plugins']['get']('CommentsUI');let _0x26c066,_0x10d83a,_0x46dc7e;this['_annotationViews']['has'](_0x228838['id'])?(_0x10d83a=this['_annotationViews']['get'](_0x228838['id']),_0x26c066=_0x10d83a['mainView']):(_0x26c066=new _0x1ac05e(_0x2e0140['locale'],_0x228838,_0x43c13a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x21594e['get']('comments.editorConfig'),'licenseKey':_0x21594e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x21594e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x21594e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x21594e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5ec19a(_0x21594e['get']('locale'),_0x2e0140['locale']),'CommentView':_0x21594e['get']('comments')['CommentView'],'CommentsListView':_0x1ee7c0,'CommentThreadInputView':_0x23abca,'SuggestionView':_0x42bf5c}),_0x26c066['suggestionView']['acceptButton']['on']('execute',()=>{_0x2e0140['editing']['view']['focus']();}),_0x26c066['suggestionView']['discardButton']['on']('execute',()=>{_0x2e0140['editing']['view']['focus']();}),_0x10d83a=_0x156334['createAnnotationView'](this['editor']['locale'],_0x26c066),_0x10d83a['bind']('isDirty')['to'](_0x26c066,'isDirty'),_0x10d83a['bind']('length')['to'](_0x26c066),_0x10d83a['bind']('type')['to'](_0x26c066,'type',_0x550d1c=>'suggestion-'+_0x550d1c),_0x26c066['on']('escape',()=>{_0x46dc7e['fire']('escape');}),this['_annotationViews']['set'](_0x228838['id'],_0x10d83a));const _0x455485=_0x3b421e['createCommentThreadController'](_0x228838['commentThread'],_0x26c066),_0x5514e9=new pe(_0x2e0140,_0x228838,_0x26c066,_0x455485),_0x5d5976=_0x228838['getAllAdjacentSuggestions']()['filter'](_0x3b7ead=>_0x3b7ead['isInContent']);_0x26c066['descriptionParts']=_0x2e0140['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5d5976),this['_suggestionToController']['set'](_0x228838,_0x5514e9),this['_viewToController']['set'](_0x26c066,_0x5514e9);const _0x19cc56=()=>{const _0x12a6a2=[],_0x4fd915=_0x228838['getAllAdjacentSuggestions']()['filter'](_0x5bec34=>_0x5bec34['isInContent']);for(const _0x35ea17 of _0x4fd915)_0x12a6a2['push'](..._0x35ea17['getMarkers']());return _0x4c79a3(_0x2e0140['editing'],_0x12a6a2);};_0x46dc7e=_0x156334['createAnnotation']({'view':_0x10d83a,'target':_0x19cc56,'type':()=>'suggestion-'+_0x5514e9['view']['type'],'isVisible':!!_0x19cc56()}),_0x3b421e['_bindAnnotationToEditors'](_0x26c066,_0x46dc7e),_0x156334['add'](_0x46dc7e),_0x20526d['registerAnnotation'](_0x46dc7e);}['_destroyController'](_0x4ba314){const _0x27bbef=this['editor']['plugins']['get']('CommentsRepository'),_0x1a722b=this['editor']['plugins']['get']('Annotations'),_0x590954=this['_suggestionToController']['get'](_0x4ba314),_0xb06f44=_0x590954['view'],_0x3f6789=_0x1a722b['getByInnerView'](_0xb06f44);_0x27bbef['_unbindEditors'](_0xb06f44),_0x3f6789&&_0x1a722b['remove'](_0x3f6789),this['_suggestionToController']['delete'](_0x4ba314),this['_viewToController']['delete'](_0xb06f44),_0x590954['destroy']();}['_updateController'](_0x25f177){if(!_0x25f177['isInContent']||!this['_suggestionToController']['has'](_0x25f177))return;const _0x4d3864=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ea268=this['_suggestionToController']['get'](_0x25f177),_0xe79264=_0x25f177['getAllAdjacentSuggestions']();_0x3ea268['view']['descriptionParts']=_0x4d3864['descriptionFactory']['getDescriptions'](_0xe79264);}['destroy'](){for(const _0x3f8389 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3f8389);for(const _0x2bf130 of this['_annotationViews']['values']())_0x2bf130['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x41bcb5){return'model'in _0x41bcb5;}class Ne extends _0x2e8ec7{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x497b44){this['editor']['plugins']['get'](d)['adapter']=_0x497b44;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x53985d){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x53985d);}['getSuggestions']({skipNotAttached:_0x21e013=!0x1,toJSON:_0x48038d=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x21e013,'toJSON':_0x48038d});}['getSuggestion'](_0x12f8c6){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x12f8c6);}}const p=['Pagination'];class re extends _0x2e8ec7{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xe57d79=this['editor'];if(_0xe57d79['config']['define']('trackChangesData.editorCreator',_0x462099=>{const _0x217329=_0xe57d79['model']['document']['getRootNames']()['reduce']((_0x2f7a58,_0x424f4d)=>(_0x2f7a58[_0x424f4d]='',_0x2f7a58),{});return _0xe57d79['constructor']['create'](_0x217329,_0x462099);}),'function'!=typeof _0xe57d79['config']['get']('trackChangesData')['editorCreator'])throw new _0x69a1a8('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x473521){return P(this['editor'],!0x0,_0x473521);}['getDataWithDiscardedSuggestions'](_0x5307cd){return P(this['editor'],!0x1,_0x5307cd);}}class Fe extends _0x2e8ec7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10fdb7){function _0x2563bb(_0x2bdcfc){return _0x2bdcfc['map'](_0x43d235=>String['fromCharCode'](_0x43d235))['join']('');}super(_0x10fdb7),this['result']='end',_0x10fdb7[_0x2563bb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2563bb([0x76,0x69,0x65,0x77])][_0x2563bb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2563bb([0x61,0x75,0x74,0x6f]),_0x10fdb7[_0x2563bb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2563bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2563bb([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2563bb([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2563bb([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 De(_0x4b7658){return void 0x0!==_0x4b7658['getRootsAttributes'];}async function P(_0x491796,_0x43c5e9,_0x4bd136){const _0xfd545=_0x2ccf16(_0x491796,p);_0xfd545['plugins']['push'](d,Fe),_0xfd545['rootsAttributes']=De(_0x491796)?_0x491796['getRootsAttributes']():void 0x0;const _0x284d72=document['createDocumentFragment'](),_0x2b1a08=_0x491796['config']['get']('trackChangesData')['editorCreator'],_0xa82f4d=await _0x2b1a08(_0xfd545,()=>function(_0x35a277){const _0x334a1a=document['createElement']('div');return _0x35a277['appendChild'](_0x334a1a),_0x334a1a;}(_0x284d72));!function(_0x160892,_0x95af8e){const _0x3be4e2=_0x160892['model']['document']['getRootNames']()['reduce']((_0x2d2cd3,_0x453922)=>(_0x2d2cd3[_0x453922]=_0x160892['data']['get']({'rootName':_0x453922}),_0x2d2cd3),{}),_0x49f88e=_0x160892['plugins']['get']('Users')['users']['map'](_0x347d88=>({'id':_0x347d88['id'],'name':_0x347d88['name']})),_0x1150f0=_0x160892['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x519bd4=_0x160892['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x44ae5e=_0x95af8e['plugins']['get']('Users'),_0x4c0eca=_0x95af8e['plugins']['get']('TrackChangesEditing'),_0x1a3e1d=_0x95af8e['plugins']['get']('CommentsRepository');for(const _0xa50688 of _0x1a3e1d['getCommentThreads']())_0xa50688['remove']();for(const _0x270f3 of _0x49f88e)_0x44ae5e['getUser'](_0x270f3['id'])||_0x44ae5e['addUser'](_0x270f3);_0x44ae5e['me']||_0x44ae5e['useAnonymousUser']();for(const _0x9b0b0c of _0x519bd4)_0x1a3e1d['addCommentThread'](_0x9b0b0c);for(const _0x489ceb of _0x1150f0)_0x4c0eca['addSuggestionData'](_0x489ceb);_0x95af8e['data']['set'](_0x3be4e2);}(_0x491796,_0xa82f4d),_0xa82f4d['execute'](_0x43c5e9?'acceptAllSuggestions':'discardAllSuggestions');const _0x41e87b=De(_0xa82f4d)?_0xa82f4d['getFullData'](_0x4bd136):_0xa82f4d['data']['get'](_0x4bd136);return await _0xa82f4d['destroy'](),_0x41e87b;}class Me extends _0x26eb50{['options'];constructor(_0x1ba1b8,_0x5c264c){super(_0x1ba1b8),this['options']=_0x5c264c,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'](_0x364bfc,_0x2be7f2){if(!this['element'])return;const _0x10973e=[];for(const [_0x4010dc,_0x594560]of _0x364bfc){const _0x1d921f=document['createElement']('div');_0x1d921f['setAttribute']('data-ck-root-name',_0x4010dc),_0x1d921f['className']=_0x594560['classes']+'\x20ck-track-changes-preview__root-container',_0x1d921f['innerHTML']=_0x594560['content'],_0x10973e['push'](_0x1d921f);}_0x2be7f2(this['element'],_0x10973e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x172e70{constructor(_0x2690fa){super(_0x2690fa),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x493f78=this['editor'],_0x3ccbe5=_0x493f78['locale'],_0x5de343=_0x493f78['plugins']['get']('Dialog');let _0x3d5d6c;const _0x5a8f59=function(_0x3aee66){const _0x2dc185={};if('editables'in _0x3aee66['ui']['view']){for(const [_0x667e21,_0x583e43]of Object['entries'](_0x3aee66['ui']['view']['editables']))_0x2dc185[_0x667e21]=_0x583e43['element'];}else _0x2dc185[_0x3aee66['model']['document']['getRootNames']()[0x0]]=_0x3aee66['ui']['view']['editable']['element'];return _0x2dc185;}(_0x493f78),_0x350160=function(_0x5d5e84){let _0x315250=0x0;for(const _0x395d7c of Object['values'](_0x5d5e84))_0x315250=Math['max'](_0x315250,_0x395d7c['getBoundingClientRect']()['width']);let _0x220b03=0x0;for(const _0x33743d of Object['values'](_0x5d5e84))_0x220b03+=_0x33743d['getBoundingClientRect']()['height'];const _0x46c983=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1a4ac5=Math['min'](_0x220b03,_0x46c983);return{'width':_0x315250,'height':_0x1a4ac5};}(_0x5a8f59);_0x5de343['show']({'id':'finalContentPreview','title':o(_0x3ccbe5,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3ccbe5,{'dialogRects':_0x350160}),'onHide':()=>{_0x3d5d6c['detachFromDom']();},'onShow':()=>{_0x493f78['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x298534=>{const _0x2a04f0=this['_standarizeRootsData'](_0x298534,_0x493f78,_0x5a8f59);_0x5de343['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2a04f0,_0x493f78['config']['get']('trackChanges.preview.renderFunction'));}),_0x3d5d6c=new _0x3bd803(_0x3ccbe5,[_0x5de343['view']]),_0x3d5d6c['attachToDom'](),_0x3d5d6c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x493f78['once']('destroy',()=>{_0x3d5d6c['detachFromDom']();});const _0x2f3818=_0x5de343['view']['headerView']['class'];_0x5de343['view']['headerView']['class']=_0x2f3818?_0x2f3818+'\x20ck-reset_all':'ck-reset_all',_0x5de343['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5de343['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x57922e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x204939=_0x57922e['previewMode'],_0x3902d9={};if('$labels'===_0x204939){for(const _0x13e780 of _0x57922e['getMergeFieldsIds']())_0x3902d9[_0x13e780]=_0x57922e['getLabel'](_0x13e780)||_0x13e780;}else{const _0x9492aa='$defaultValues'===_0x204939?_0x57922e['getDefaultValues']():_0x57922e['getDataSetValues'](_0x204939,!0x0);for(const _0x1bcc8f of Object['entries'](_0x9492aa)){const [_0x1607ac,_0x2f0125]=_0x1bcc8f;_0x3902d9[_0x1607ac]=null!==_0x2f0125?_0x2f0125:_0x57922e['getLabel'](_0x1607ac)||_0x1607ac;}}return{'mergeFieldsData':_0x3902d9};}['_standarizeRootsData'](_0x285534,_0x1d46b8,_0x4595ef){let _0x32e6bc;if('string'==typeof _0x285534){const _0x54b601=_0x1d46b8['model']['document']['getRootNames']()[0x0];_0x32e6bc={[_0x54b601]:_0x285534};}else _0x32e6bc=_0x285534;const _0x29785f=this['_fixMediaEmbeds'](_0x32e6bc,_0x1d46b8),_0x36abf2=function(_0xb5e49f,_0x4ccf56){for(const [_0x1adb22,_0x257f4b]of _0xb5e49f)_0x257f4b['classes']=_0x4ccf56[_0x1adb22]['classList']['value']['replace']('ck-focused','');return _0xb5e49f;}(this['_sortRoots'](_0x1d46b8)['reduce']((_0x4206ba,_0x10d91a)=>(_0x4206ba['push']([_0x10d91a,{'content':_0x29785f[_0x10d91a],'classes':''}]),_0x4206ba),[]),_0x4595ef);return _0x36abf2;}['_fixMediaEmbeds'](_0x210e35,_0x5bc1f0){if(!_0x5bc1f0['plugins']['has']('MediaEmbedEditing'))return _0x210e35;const _0x982ef4=_0x5bc1f0['plugins']['get']('MediaEmbedEditing');for(const [_0x3daab8,_0x57e502]of Object['entries'](_0x210e35)){const _0xbc9291=document['createElement']('div');_0xbc9291['innerHTML']=_0x57e502,(_0xbc9291['querySelectorAll']('figure.media')['forEach'](_0x50e4ec=>{const _0x3f0a30=_0x50e4ec['querySelector']('oembed');if(_0x3f0a30){const _0x5cd286=_0x3f0a30['getAttribute']('url');if(_0x5cd286){const _0x4707cb=_0x982ef4['registry']['getMediaViewElement'](new _0x3975fc(_0x5bc1f0['editing']['view']['document']),_0x5cd286,{'elementName':'','renderForEditingView':!0x0}),_0x34dade=document['createElement']('div');_0x34dade['classList']['add']('ck-media__wrapper'),_0x4707cb['render'](_0x34dade,_0x5bc1f0['editing']['view']['domConverter']),_0x3f0a30['replaceWith'](_0x34dade);}}}),_0x210e35[_0x3daab8]=_0xbc9291['innerHTML']);}return _0x210e35;}['_sortRoots'](_0x30442f){if(!function(_0x9b3e2b){return void 0x0!==_0x9b3e2b['getRootsAttributes'];}(_0x30442f))return _0x30442f['model']['document']['getRootNames']();const _0x25bb72=[],_0x50742d=new Map();for(const _0xa4eb24 of _0x30442f['model']['document']['getRootNames']()){const _0x4b69ce=_0x30442f['editing']['view']['getDomRoot'](_0xa4eb24)['getClientRects']()['item'](0x0);_0x25bb72['push'](_0xa4eb24),_0x50742d['set'](_0xa4eb24,_0x4b69ce);}return _0x25bb72['sort']((_0x2b4595,_0x32ef3c)=>{const _0x1997fa=_0x50742d['get'](_0x2b4595),_0x3d082c=_0x50742d['get'](_0x32ef3c);return _0x1997fa['y']-_0x3d082c['y']||_0x1997fa['x']-_0x3d082c['x'];}),_0x25bb72;}}class Ue extends _0x2e8ec7{static get['requires'](){return[re,_0x5b99f4];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45f70d){super(_0x45f70d),_0x45f70d['commands']['add']('previewFinalContent',new te(this['editor'])),_0x45f70d['config']['define']('trackChanges.preview.renderFunction',(_0x4e546c,_0x397324)=>{for(const _0x4b9d04 of _0x397324)_0x4e546c['appendChild'](_0x4b9d04);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};