@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250306.0 → 0.0.0-nightly-20250307.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +26 -26
  148. package/src/commands/acceptsuggestioncommand.js +1 -1
  149. package/src/commands/discardsuggestioncommand.js +1 -1
  150. package/src/commands/executeonallsuggestionscommand.js +1 -1
  151. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  152. package/src/commands/previewfinalcontentcommand.js +1 -1
  153. package/src/commands/trackchangescommand.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/integrations/aiassistant.js +1 -1
  156. package/src/integrations/alignment.js +1 -1
  157. package/src/integrations/basicstyles.js +1 -1
  158. package/src/integrations/blockquote.js +1 -1
  159. package/src/integrations/bookmark.js +1 -1
  160. package/src/integrations/casechange.js +1 -1
  161. package/src/integrations/ckbox.js +1 -1
  162. package/src/integrations/codeblock.js +1 -1
  163. package/src/integrations/comments.js +1 -1
  164. package/src/integrations/deletecommand.js +1 -1
  165. package/src/integrations/emoji.js +1 -1
  166. package/src/integrations/entercommand.js +1 -1
  167. package/src/integrations/findandreplace.js +1 -1
  168. package/src/integrations/font.js +1 -1
  169. package/src/integrations/formatpainter.js +1 -1
  170. package/src/integrations/heading.js +1 -1
  171. package/src/integrations/highlight.js +1 -1
  172. package/src/integrations/horizontalline.js +1 -1
  173. package/src/integrations/htmlembed.js +1 -1
  174. package/src/integrations/image.js +1 -1
  175. package/src/integrations/imagereplace.js +1 -1
  176. package/src/integrations/imagestyle.js +1 -1
  177. package/src/integrations/importword.js +1 -1
  178. package/src/integrations/indent.js +1 -1
  179. package/src/integrations/inputcommand.js +1 -1
  180. package/src/integrations/legacylist.js +1 -1
  181. package/src/integrations/legacylistproperties.js +1 -1
  182. package/src/integrations/link.js +1 -1
  183. package/src/integrations/list.js +1 -1
  184. package/src/integrations/listproperties.js +1 -1
  185. package/src/integrations/mediaembed.js +1 -1
  186. package/src/integrations/mention.js +1 -1
  187. package/src/integrations/mergefields.js +1 -1
  188. package/src/integrations/multilevellist.js +1 -1
  189. package/src/integrations/pagebreak.js +1 -1
  190. package/src/integrations/paragraph.js +1 -1
  191. package/src/integrations/removeformat.js +1 -1
  192. package/src/integrations/replacesourcecommand.js +1 -1
  193. package/src/integrations/restrictededitingmode.js +1 -1
  194. package/src/integrations/shiftentercommand.js +1 -1
  195. package/src/integrations/standardeditingmode.js +1 -1
  196. package/src/integrations/style.js +1 -1
  197. package/src/integrations/table.js +1 -1
  198. package/src/integrations/tablecaption.js +1 -1
  199. package/src/integrations/tableclipboard.js +1 -1
  200. package/src/integrations/tablecolumnresize.js +1 -1
  201. package/src/integrations/tableheadings.js +1 -1
  202. package/src/integrations/tablemergesplit.js +1 -1
  203. package/src/integrations/tableofcontents.js +1 -1
  204. package/src/integrations/tableproperties.js +1 -1
  205. package/src/integrations/template.js +1 -1
  206. package/src/integrations/title.js +1 -1
  207. package/src/integrations/undo.js +1 -1
  208. package/src/integrations/uploadcare.js +1 -1
  209. package/src/integrations/utils.js +1 -1
  210. package/src/suggestion.js +2 -2
  211. package/src/suggestiondescriptionfactory.js +1 -1
  212. package/src/trackchanges.js +1 -1
  213. package/src/trackchangesdata.js +1 -1
  214. package/src/trackchangesediting.js +1 -1
  215. package/src/trackchangespreview.js +1 -1
  216. package/src/trackchangesui.js +1 -1
  217. package/src/ui/suggestioncontroller.js +2 -2
  218. package/src/ui/view/basesuggestionthreadview.js +1 -1
  219. package/src/ui/view/suggestionthreadview.js +1 -1
  220. package/src/ui/view/suggestionview.js +1 -1
  221. package/src/ui/view/trackchangespreviewview.js +1 -1
  222. package/src/utils/common-translations.js +1 -1
  223. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x514cdc,Plugin as _0x450ea2,PendingActions as _0x4993d3}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5b7c7b,ObservableMixin as _0x2b3849,uid as _0x38e031,priorities as _0x1f8415,insertToPriorityArray as _0xb5c120,logWarning as _0x13e65f,getEnvKeystrokeText as _0x46c94e,FocusTracker as _0x2f94c3,KeystrokeHandler as _0x4bf129,Collection as _0x11be61}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x20edf4,IconCancel as _0x4b9d10,IconTrackChanges as _0x4433fb}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x32d138,View as _0xb14a3e,ViewCollection as _0x26630c,FocusCycler as _0x51661a,ViewModel as _0x59e6bd,createDropdown as _0x30f08a,SplitButtonView as _0x2174b2,addListToDropdown as _0x1f4d4a,MenuBarMenuView as _0x4e0436,MenuBarMenuListView as _0x13460c,ListSeparatorView as _0x50f2e5,MenuBarMenuListItemView as _0x150d14,MenuBarMenuListItemButtonView as _0x1f9627,BodyCollection as _0x34ef24,Dialog as _0x2da088}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x40ec95,hashObject as _0x12085e,surroundingMarkersDetector as _0x512444,FOCUS_ANNOTATION_KEYSTROKE as _0x35e877,AriaDescriptionView as _0x2728d9,setupThreadKeyboardNavigation as _0x29f052,trimHtml as ti,UserView as _0x4d6db7,LateFocusButtonView as _0xcd0f07,getDateTimeFormatter as _0x13bcbf,getAllMarkersDomElementsSorted as _0x48eb5b,sanitizeEditorConfig as _0x198465}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5d975e,LiveRange as _0xb23b08,LivePosition as _0x32ad90,DowncastWriter as _0x27fa9f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xfbe412,toWidget as _0xbf85c7}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x10fa71,set as _0x4a94f9,isEqual as _0x66bff4,unset as _0x25cc79,omit as Vt}from'es-toolkit/compat';import{Delete as _0x528e79,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1a0c99,ShiftEnter as _0x31a256}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x514cdc{['_enabledCommands'];constructor(_0x23fad1,_0x2c60ca){super(_0x23fad1),this['_enabledCommands']=_0x2c60ca,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 _0x249d63 of this['editor']['commands']['commands']())_0x249d63['affectsData']&&!this['_enabledCommands']['has'](_0x249d63)&&_0x249d63['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x742389 of this['editor']['commands']['commands']())_0x742389['affectsData']&&!this['_enabledCommands']['has'](_0x742389)&&_0x742389['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x514cdc{['_suggestions'];constructor(_0x3adfaf,_0x16def2){super(_0x3adfaf),this['_suggestions']=_0x16def2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4685d7){const _0x4b4b63=this['_suggestions']['get'](_0x4685d7);if(!_0x4b4b63)throw new _0x5b7c7b('track-changes-accept-suggestion-not-found',this);const _0x5af500=_0x4b4b63['getRanges']();this['editor']['model']['canEditAt'](_0x5af500)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4b4b63);}}class R extends _0x514cdc{['_suggestions'];constructor(_0x99ed1f,_0x283358){super(_0x99ed1f),this['_suggestions']=_0x283358,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x570daa){const _0x130ce7=this['_suggestions']['get'](_0x570daa);if(!_0x130ce7)throw new _0x5b7c7b('track-changes-discard-suggestion-not-found',this);const _0x278d2e=_0x130ce7['getRanges']();this['editor']['model']['canEditAt'](_0x278d2e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x130ce7);}}function ls(_0x55e972,_0x1607f7){let _0x1462e1='';return _0x1462e1+=_0x55e972['split']('*')['map']((_0x3888c2,_0x31aab1)=>_0x31aab1%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x3888c2)+'</span>':nn(_0x3888c2))['join'](''),_0x1607f7&&(_0x1462e1+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1607f7['value']+'\x22\x20title=\x22'+_0x1607f7['title']+'\x22></span>'),_0x1462e1;}function nn(_0x4b1d4a){const _0x6db498=document['createElement']('span');return _0x6db498['innerText']=_0x4b1d4a,_0x6db498['innerHTML'];}function ts(_0x2c4a6d){return _0x2c4a6d['sort']((_0x4483fa,_0x4d6264)=>'deletion'==_0x4483fa['type']&&'deletion'!=_0x4d6264['type']?-0x1:'deletion'!=_0x4483fa['type']&&'deletion'==_0x4d6264['type']?0x1:0x0);}function Zt(_0x3ca917,_0x3d5672){let _0x15ac5f,_0x713c48=0x0;const _0x20183e=[],_0xc78b81=_0x3d5672['schema'];for(;_0x713c48<_0x3ca917['length'];){const _0x55ecd7=_0x3ca917[_0x713c48],_0x4ad699=_0x3ca917[_0x713c48+0x1];_0x15ac5f||(_0x15ac5f=_0x3d5672['createPositionBefore'](_0x55ecd7)),on(_0x3d5672,_0x55ecd7,_0x4ad699)||(_0x20183e['push'](_0x3d5672['createRange'](_0x15ac5f,_0xc78b81['isObject'](_0x55ecd7)?_0x3d5672['createPositionAfter'](_0x55ecd7):_0x3d5672['createPositionAt'](_0x55ecd7,'end'))),_0x15ac5f=null),_0x713c48++;}return _0x20183e;}function on(_0x71ed2f,_0x769ef4,_0x548a45){if(!_0x548a45)return!0x1;const _0x42be9b=_0x71ed2f['createPositionAfter'](_0x769ef4),_0x3984dc=_0x71ed2f['createPositionBefore'](_0x548a45);return _0x42be9b['isTouching'](_0x3984dc);}function rs(_0x31c80f,_0x1fc07e,_0x7f449){for(;_0x7f449['length'];){const _0x11a1cf=_0x7f449['splice'](0x0,0x64);_0x31c80f['change'](()=>{for(const _0x16a5d8 of _0x11a1cf)_0x16a5d8['isInContent']&&_0x1fc07e['execute'](_0x16a5d8['id']);});}}class x extends _0x514cdc{['_command'];['_suggestions'];constructor(_0x42dc47,_0x5e7432,_0x1a60c9){super(_0x42dc47),this['_command']=_0x5e7432,this['_suggestions']=_0x1a60c9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1ffc52=Array['from'](this['_suggestions']['values']())['some'](_0x2d88c5=>_0x2d88c5['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1ffc52;}['execute'](){const _0x1752ee=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3053db of _0x1752ee){const _0x28459c=_0x3053db['getRanges']();if(!this['editor']['model']['canEditAt'](_0x28459c))return;}rs(this['editor']['model'],this['_command'],_0x1752ee);}}class E extends _0x514cdc{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x294d2d,_0x2cc09b,_0x35acb9){super(_0x294d2d),this['_command']=_0x2cc09b,this['_suggestions']=_0x35acb9,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4c8a0c=this['editor']['model']['document']['selection'],_0x2c7bd0=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2596a4,_0x15f97e){const _0x342f91=Array['from'](_0x2596a4['getRanges']()),_0x311575=new Set();for(const _0x43e079 of _0x15f97e)if(_0x43e079['isInContent']){for(const _0x41be81 of _0x342f91)for(const _0x2fe4d3 of _0x43e079['getRanges']())(_0x41be81['isIntersecting'](_0x2fe4d3)||_0x2596a4['isCollapsed']&&!_0x43e079['isMultiRange']&&_0x43e079['next']&&_0x2fe4d3['end']['isTouching'](_0x41be81['start']))&&_0x311575['add'](_0x43e079);}return _0x311575;}(_0x4c8a0c,_0x2c7bd0),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2db37b=ts(Array['from'](this['_selectedSuggestions']));for(const _0x56a577 of _0x2db37b){const _0xe04cee=_0x56a577['getRanges']();if(!this['editor']['model']['canEditAt'](_0xe04cee))return;}rs(this['editor']['model'],this['_command'],_0x2db37b);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x2b3849(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x260162,_0x11fca6){super(),this['id']=_0x11fca6['id'],this['type']=_0x11fca6['type'],this['subType']=_0x11fca6['subType']||null,this['author']=_0x11fca6['author'],this['creator']=_0x11fca6['creator']||_0x11fca6['author'],this['isExternal']=Boolean(_0x11fca6['attributes']&&_0x11fca6['attributes']['@external']),this['data']=null,this['_model']=_0x260162,this['_onAccept']=_0x11fca6['onAccept'],this['_onDiscard']=_0x11fca6['onDiscard'],this['_onAttributesChange']=_0x11fca6['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x11fca6['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 _0x127242=this;for(;_0x127242['previous'];)_0x127242=_0x127242['previous'];return _0x127242;}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'](_0x40ad62){this['_markerNames']['add'](_0x40ad62);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x57509d=>this['_model']['markers']['get'](_0x57509d))['filter'](_0x168434=>_0x168434);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5f368a=>{for(const _0x148868 of this['getMarkers']())_0x5f368a['removeMarker'](_0x148868);}),this['_markerNames']['clear']();}['removeMarker'](_0xebfc05){this['_model']['change'](_0x5f0920=>{_0x5f0920['removeMarker'](_0xebfc05);}),this['_markerNames']['delete'](_0xebfc05);}['addRange'](_0x947e60){const _0x58d1e1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x58d1e1),this['_model']['change'](_0x3fc950=>{_0x3fc950['addMarker'](_0x58d1e1,{'range':_0x947e60,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2ac0b8){for(const _0x4cba9e of this['getRanges']())if(_0x4cba9e['isIntersecting'](_0x2ac0b8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xe862e9=>_0xe862e9['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x336f1c,_0xf72c8a)=>[..._0x336f1c,..._0xf72c8a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x348f2e=this['getRanges']();if(0x1!=_0x348f2e['length'])return null;const _0x48d014=_0x348f2e[0x0],_0x252021=_0x48d014['start']['nodeAfter'],_0x413449=_0x48d014['end']['nodeBefore'];return _0x252021 instanceof _0x5d975e?_0x252021!=_0x413449?null:_0x252021: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 _0x43da4b=[];let _0xda409=this['head'];for(;_0xda409;)_0x43da4b['push'](_0xda409),_0xda409=_0xda409['next'];return _0x43da4b;}['setAttribute'](_0x20fe30,_0x18aada){const _0x50ffa2=_0x10fa71(this['attributes']);_0x4a94f9(_0x50ffa2,_0x20fe30,_0x18aada),_0x66bff4(_0x50ffa2,this['attributes'])||(this['attributes']=_0x50ffa2,this['_onAttributesChange'](_0x50ffa2));}['removeAttribute'](_0x5199ed){const _0x585cce=_0x10fa71(this['attributes']);_0x25cc79(_0x585cce,_0x5199ed),_0x66bff4(_0x585cce,this['attributes'])||(this['attributes']=_0x585cce,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 _0x38e031()['substr'](0x1,0x5);}}function c(_0x3e79f5,_0x2bfca4,_0x42616b){const _0x4e63ef=_0x3e79f5['t'],t=_0x3e79f5['t'];switch(_0x2bfca4){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',_0x42616b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x42616b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x42616b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x42616b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x42616b);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',_0x42616b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x42616b);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',_0x42616b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x42616b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x42616b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x42616b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x42616b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x42616b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x42616b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x42616b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x42616b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x42616b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x42616b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x42616b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x42616b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x42616b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x42616b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x42616b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x42616b);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'},_0x42616b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x42616b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x42616b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x42616b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x42616b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x42616b);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'},_0x42616b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x42616b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x42616b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x42616b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x42616b);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'},_0x42616b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x42616b);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'},_0x42616b);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x42616b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x42616b);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'},_0x42616b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x42616b);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'},_0x42616b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x42616b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x42616b);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'},_0x42616b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x42616b);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 _0x4e63ef({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x42616b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4e63ef({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x42616b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x42616b);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'},_0x42616b);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'},_0x42616b);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'},_0x42616b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2bfca4;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x24245f,_0x277a88){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x24245f,this['_locale']=_0x277a88;}['getDescriptions'](_0x26cd4d){const _0x5d0ece=[],_0x212dd9=new Set(),_0x3f0d9f=new Set();for(let _0x3fab59=0x0;_0x3fab59<_0x26cd4d['length'];_0x3fab59++){const _0x4dfdd4=_0x26cd4d[_0x3fab59];if(!_0x4dfdd4['isInContent'])continue;const _0x3ad836=this['_handleCustomCallbackDescription'](_0x4dfdd4);if(_0x3ad836){if(null!=_0x4dfdd4['subType']){if(_0x212dd9['has'](_0x4dfdd4['subType']))continue;_0x212dd9['add'](_0x4dfdd4['subType']);}_0x5d0ece['push'](_0x3ad836);}else{if('attribute'!=_0x4dfdd4['type'])'insertion'!=_0x4dfdd4['type']&&'deletion'!=_0x4dfdd4['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5d0ece,_0x4dfdd4,_0x26cd4d[_0x3fab59+0x1]);else{const _0x22b74e=_0x4dfdd4['data']['key'];if(_0x3f0d9f['has'](_0x22b74e))continue;_0x3f0d9f['add'](_0x4dfdd4['data']['key']),_0x22b74e==u?this['_handleRenameSuggestionDescription'](_0x5d0ece,_0x4dfdd4):this['_handleAttributeSuggestionDescription'](_0x5d0ece,_0x4dfdd4);}}}return this['_resolveDescriptionItems'](_0x5d0ece);}['registerDescriptionCallback'](_0x5a2246){this['_customCallbacks']['push'](_0x5a2246);}['registerElementLabel'](_0x2ab2f4,_0x454249,_0x197fb2=_0x1f8415['normal']){'function'==typeof _0x2ab2f4?_0xb5c120(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2ab2f4,'label':_0x454249,'priority':_0x197fb2}):this['_itemLabels']['set'](_0x2ab2f4,_0x454249);}['registerAttributeLabel'](_0x26c236,_0x3c5fa0){this['_attributeLabels']['set'](_0x26c236,_0x3c5fa0);}['getItemLabel'](_0x4f4a0b,_0x5e1e66=0x1){let _0xc8e5b6;for(const _0x448667 of this['_itemLabelsCallbacks'])if(_0x448667['matchingCallback'](_0x4f4a0b)){_0xc8e5b6=_0x448667['label'];break;}return _0xc8e5b6||(_0xc8e5b6=this['_itemLabels']['get'](_0x4f4a0b['name'])),_0xc8e5b6?_0xc8e5b6(_0x5e1e66):0x1!==_0x5e1e66?_0x5e1e66+'\x20'+_0x4f4a0b['name']+'s':''+_0x4f4a0b['name'];}['_addDescriptionItems'](_0x314c9,_0x14a130){const _0x3a5d3f=_0x14a130['getFirstRange']()['getWalker'](),_0x5c92f6='insertion'==_0x14a130['type']?'add':'remove';for(const _0x59079b of _0x3a5d3f){const _0x51fa28=_0x59079b['item'],_0x13fd8e=_0x314c9[_0x314c9['length']-0x1];if(_0x51fa28['is']('$textProxy'))_0x13fd8e&&_0x13fd8e['type']['indexOf']('Container')>-0x1&&_0x314c9['pop'](),_0x13fd8e&&'text'==_0x13fd8e['type']?_0x13fd8e[_0x5c92f6]+=_0x51fa28['data']:_0x314c9['push']({'type':'text','add':'add'==_0x5c92f6?_0x51fa28['data']:'','remove':'remove'==_0x5c92f6?_0x51fa28['data']:''});else{if(this['_schema']['isObject'](_0x51fa28)){const _0x171c2c=_0x51fa28;if(_0x13fd8e&&_0x13fd8e['type']['indexOf']('Container')>-0x1&&_0x314c9['pop'](),'elementEnd'==_0x59079b['type'])continue;_0x13fd8e&&_0x13fd8e['type']==_0x5c92f6+'Object'&&_0x13fd8e['element']['name']==_0x171c2c['name']?_0x13fd8e['quantity']++:_0x314c9['push']({'type':_0x5c92f6+'Object','element':_0x171c2c,'quantity':0x1}),_0x3a5d3f['skip'](_0x4086b4=>!('elementEnd'==_0x4086b4['type']&&_0x4086b4['item']==_0x51fa28));}else{if(this['_schema']['checkChild'](_0x51fa28,'$text')||_0x51fa28['is']('element','softBreak')){const _0x3ceb84=_0x51fa28;if('add'==_0x5c92f6&&'elementStart'==_0x59079b['type']||'remove'==_0x5c92f6&&'elementEnd'==_0x59079b['type'])continue;if(_0x13fd8e&&-0x1==_0x13fd8e['type']['indexOf']('Container')){'text'==_0x13fd8e['type']&&(_0x13fd8e[_0x5c92f6]+='\x0a');continue;}let _0x24e1ff;if(_0x24e1ff='add'==_0x5c92f6?_0x3ceb84['nextSibling']&&!this['_schema']['isObject'](_0x3ceb84['nextSibling'])?_0x3ceb84['nextSibling']:null:_0x3ceb84['previousSibling']&&!this['_schema']['isObject'](_0x3ceb84['previousSibling'])?_0x3ceb84['previousSibling']:null,_0x3ceb84['isEmpty']||_0x24e1ff&&_0x24e1ff['isEmpty']){const _0x1a2b83=_0x24e1ff&&_0x24e1ff['isEmpty']?_0x24e1ff:_0x3ceb84;_0x13fd8e&&_0x13fd8e['type']==_0x5c92f6+'EmptyContainer'&&_0x13fd8e['element']['name']==_0x1a2b83['name']?_0x13fd8e['quantity']++:_0x314c9['push']({'type':_0x5c92f6+'EmptyContainer','element':_0x1a2b83,'quantity':0x1});}else _0x314c9['push']({'type':_0x5c92f6+'Container','element':_0x3ceb84});}}}}}['_resolveDescriptionItems'](_0x551553){const _0x1f5540=this['_locale'],_0x4fa2ae=[],_0x2caa2f=[],_0x54195f=[];for(const _0x13246b of _0x551553)switch(_0x13246b['type']){case'text':if(_0x13246b['add']=_0x13246b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x13246b['remove']=_0x13246b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x13246b['add']&&''!=_0x13246b['remove']){_0x4fa2ae['push']({'type':'replace','content':c(_0x1f5540,'REPLACE_TEXT',['\x22'+_0x13246b['remove']+'\x22','\x22'+_0x13246b['add']+'\x22'])});continue;}if(null!=_0x13246b['add']['match'](/^ +$/)){_0x4fa2ae['push']({'type':'insertion','content':c(_0x1f5540,'*Insert:*\x20%0',c(_0x1f5540,'ELEMENT_SPACE',_0x13246b['add']['length']))});continue;}if(null!=_0x13246b['remove']['match'](/^ +$/)){_0x4fa2ae['push']({'type':'deletion','content':c(_0x1f5540,'*Remove:*\x20%0',c(_0x1f5540,'ELEMENT_SPACE',_0x13246b['remove']['length']))});continue;}if(''!=_0x13246b['add']){_0x4fa2ae['push']({'type':'insertion','content':c(_0x1f5540,'*Insert:*\x20%0','\x22'+_0x13246b['add']+'\x22')});continue;}_0x4fa2ae['push']({'type':'deletion','content':c(_0x1f5540,'*Remove:*\x20%0','\x22'+_0x13246b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4fa2ae['push']({'type':'insertion','content':c(_0x1f5540,'*Insert:*\x20%0',this['getItemLabel'](_0x13246b['element'],_0x13246b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4fa2ae['push']({'type':'deletion','content':c(_0x1f5540,'*Remove:*\x20%0',this['getItemLabel'](_0x13246b['element'],_0x13246b['quantity']))});continue;case'addContainer':_0x4fa2ae['push']({'type':'insertion','content':c(_0x1f5540,'*Split:*\x20%0',this['getItemLabel'](_0x13246b['element'],_0x13246b['quantity']))});continue;case'removeContainer':_0x4fa2ae['push']({'type':'deletion','content':c(_0x1f5540,'*Merge:*\x20%0',this['getItemLabel'](_0x13246b['element'],_0x13246b['quantity']))});continue;case'addFormat':_0x2caa2f['push'](_0x13246b['key']);continue;case'removeFormat':_0x54195f['push'](_0x13246b['key']);continue;default:_0x4fa2ae['push'](_0x13246b);}if(_0x2caa2f['length']){const _0x5a0699=_0x2caa2f['map'](_0x1c7d3b=>this['_attributeLabels']['has'](_0x1c7d3b)?this['_attributeLabels']['get'](_0x1c7d3b):_0x1c7d3b)['join'](',\x20');_0x4fa2ae['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x5a0699)});}if(_0x54195f['length']){const _0x2e15fb=_0x54195f['map'](_0x42d280=>this['_attributeLabels']['has'](_0x42d280)?this['_attributeLabels']['get'](_0x42d280):_0x42d280)['join'](',\x20');_0x4fa2ae['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x2e15fb)});}return _0x4fa2ae;}['_handleCustomCallbackDescription'](_0x57d3be){for(const _0x25d58e of this['_customCallbacks']){const _0x1a4005=_0x25d58e(_0x57d3be);if(_0x1a4005&&'type'in _0x1a4005)return _0x1a4005;}}['_handleAttributeSuggestionDescription'](_0xc794e3,_0x5281a2){const _0x53c26c=_0x5281a2['data'],_0x2c690a=void 0x0===_0x53c26c['newValue']?'removeFormat':'addFormat';_0xc794e3['push']({'type':_0x2c690a,'key':_0x53c26c['key']});}['_handleRenameSuggestionDescription'](_0x546ce1,_0x293978){_0x546ce1['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x293978['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x7fddb5,_0x49c1b5,_0x3ea56a){if(this['_addDescriptionItems'](_0x7fddb5,_0x49c1b5),_0x3ea56a&&_0x3ea56a['getFirstRange']()&&!_0x49c1b5['getFirstRange']()['end']['isEqual'](_0x3ea56a['getFirstRange']()['start'])){const _0x47bd3c=_0x7fddb5[_0x7fddb5['length']-0x1],_0x51edf3='insertion'==_0x49c1b5['type']?'add':'remove';_0x47bd3c&&'text'==_0x47bd3c['type']&&(_0x47bd3c[_0x51edf3]+='\x0a');}}}class U extends _0x450ea2{['afterInit'](){const _0x35fec6=this['editor'],_0x5f1512=_0x35fec6['plugins']['get']('TrackChangesEditing');_0x35fec6['commands']['get']('showAIAssistant')&&_0x5f1512['enableCommand']('showAIAssistant');}}class V extends _0x450ea2{['afterInit'](){const _0x3f3f2c=this['editor'],_0x2cb98e=_0x3f3f2c['locale'];if(!_0x3f3f2c['plugins']['has']('AlignmentEditing'))return;const _0x12489c=_0x3f3f2c['plugins']['get']('TrackChangesEditing');_0x12489c['enableDefaultAttributesIntegration']('alignment'),_0x12489c['registerBlockAttribute']('alignment'),_0x12489c['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x2cb98e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x557d17=this['editor'],_0x1af1b0=_0x557d17['locale'];_0x557d17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59236d=>{if('formatBlock'!=_0x59236d['type'])return;const {data:_0xfc828c}=_0x59236d;if(_0xfc828c&&'alignment'==_0xfc828c['commandName']){const _0xb960ef=_0xfc828c['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1af1b0,'*Format:*\x20%0',function(_0xa06267){switch(_0xa06267){case'left':return c(_0x1af1b0,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1af1b0,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1af1b0,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1af1b0,'FORMAT_JUSTIFY_TEXT');}}(_0xb960ef))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x450ea2{['afterInit'](){const _0x3d8e67=this['editor'],_0x49c1dc=_0x3d8e67['plugins']['get']('TrackChangesEditing'),_0x536a24=_0x3d8e67['locale'];for(const _0x3cde59 of Yt){if(!_0x3d8e67['plugins']['has'](_0x3cde59))continue;const _0x1232ed=_0x3cde59['slice'](0x0,-0x7)['toLowerCase'](),_0x21d69e='FORMAT_'+_0x1232ed['toUpperCase']();_0x49c1dc['enableDefaultAttributesIntegration'](_0x1232ed),_0x49c1dc['registerInlineAttribute'](_0x1232ed),_0x49c1dc['descriptionFactory']['registerAttributeLabel'](_0x1232ed,c(_0x536a24,_0x21d69e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bf4e5=this['editor'],_0x24db78=_0x1bf4e5['locale'],_0x37a812=_0x1bf4e5['plugins']['get']('TrackChangesEditing');function _0x53fc1a(_0x525ab1,_0x19fd81){_0x37a812['descriptionFactory']['registerDescriptionCallback'](_0x9707fd=>{if('formatInline'!=_0x9707fd['type'])return;const {data:_0x18c31f}=_0x9707fd;return _0x18c31f&&_0x18c31f['commandName']===_0x525ab1?_0x18c31f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x24db78,'*Format:*\x20%0',_0x19fd81)}:{'type':'format','content':c(_0x24db78,'*Remove\x20format:*\x20%0',_0x19fd81)}:void 0x0;});}_0x53fc1a('bold',c(_0x24db78,'FORMAT_BOLD')),_0x53fc1a('italic',c(_0x24db78,'FORMAT_ITALIC')),_0x53fc1a('underline',c(_0x24db78,'FORMAT_UNDERLINE')),_0x53fc1a('code',c(_0x24db78,'FORMAT_CODE')),_0x53fc1a('strikethrough',c(_0x24db78,'FORMAT_STRIKETHROUGH')),_0x53fc1a('subscript',c(_0x24db78,'FORMAT_SUBSCRIPT')),_0x53fc1a('superscript',c(_0x24db78,'FORMAT_SUPERSCRIPT'));}}class G extends _0x450ea2{['afterInit'](){const _0x3ef0cb=this['editor'],_0x299f28=_0x3ef0cb['locale'];if(!_0x3ef0cb['plugins']['has']('BlockQuoteEditing'))return;const _0x3d3d94=_0x3ef0cb['plugins']['get']('TrackChangesEditing'),_0x200ffe=this['editor']['commands']['get']('blockQuote');_0x3d3d94['enableCommand']('blockQuote',(_0x21a88e,_0x5a0718={})=>{const _0x485c4f=this['editor']['model']['document']['selection'],_0x1aaf2b=_0x5a0718&&void 0x0!==_0x5a0718['forceValue']?_0x5a0718['forceValue']:!_0x200ffe['value'];let _0x6a9d29=[];if(_0x1aaf2b){const _0x5502c6=Array['from'](_0x485c4f['getSelectedBlocks']())['filter'](_0x1eb874=>to(_0x1eb874)||function(_0x166e5e,_0x2fc46e){const _0x3787b8=_0x2fc46e['checkChild'](_0x166e5e['parent'],'blockQuote'),_0x23577c=_0x2fc46e['checkChild'](['$root','blockQuote'],_0x166e5e);return _0x3787b8&&_0x23577c;}(_0x1eb874,this['editor']['model']['schema']));_0x6a9d29=Zt(_0x5502c6,_0x3ef0cb['model']);}else{const _0x54ee3a=Array['from'](_0x485c4f['getSelectedBlocks']())['filter'](_0x13342f=>to(_0x13342f));_0x6a9d29=Zt(_0x54ee3a,_0x3ef0cb['model']);}_0x3ef0cb['model']['change'](()=>{for(const _0x35eeff of _0x6a9d29)_0x3d3d94['markBlockFormat'](_0x35eeff,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1aaf2b}]});});}),_0x3d3d94['descriptionFactory']['registerDescriptionCallback'](_0x10e073=>{const {data:_0x9d463}=_0x10e073;if(_0x9d463&&'blockQuote'==_0x9d463['commandName']){const _0x59e01c=c(_0x299f28,'ELEMENT_BLOCK_QUOTE');return _0x9d463['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x299f28,'*Set\x20format:*\x20%0',_0x59e01c)}:{'type':'format','content':c(_0x299f28,'*Remove\x20format:*\x20%0',_0x59e01c)};}});}}function to(_0x291a71){return'blockQuote'==_0x291a71['parent']['name'];}class L extends _0x450ea2{['afterInit'](){const _0x2f8e50=this['editor'],_0x4b8fda=_0x2f8e50['locale'],_0x4445f0=_0x2f8e50['plugins']['get']('TrackChangesEditing');_0x2f8e50['plugins']['has']('BookmarkEditing')&&(_0x4445f0['enableCommand']('insertBookmark'),_0x4445f0['enableDefaultAttributesIntegration']('updateBookmark'),_0x4445f0['registerBlockAttribute']('bookmarkId'),_0x4445f0['descriptionFactory']['registerDescriptionCallback'](_0x304ae8=>{if('insertion'!=_0x304ae8['type']&&'deletion'!=_0x304ae8['type']&&'attribute'!=_0x304ae8['type'])return;const _0x4d09eb=_0x304ae8['getContainedElement']();if(null==_0x4d09eb)return;if(!_0x4d09eb['is']('element','bookmark'))return;const _0x3e5bb2=_0x4d09eb['getAttribute']('bookmarkId');if('insertion'==_0x304ae8['type'])return{'type':'insertion','content':c(_0x4b8fda,'*Insert:*\x20%0','\x22'+_0x3e5bb2+'\x22\x20'+c(_0x4b8fda,'ELEMENT_BOOKMARK'))};if('deletion'==_0x304ae8['type'])return{'type':'deletion','content':c(_0x4b8fda,'*Remove:*\x20%0','\x22'+_0x3e5bb2+'\x22\x20'+c(_0x4b8fda,'ELEMENT_BOOKMARK'))};const {data:_0x17f1db}=_0x304ae8;if(!_0x17f1db||'bookmarkId'!=_0x17f1db['key'])return;return{'type':'format','content':c(_0x4b8fda,'*Set\x20bookmark:*\x20%0','\x22'+_0x17f1db['newValue']+'\x22')};}));}}class J extends _0x450ea2{['afterInit'](){const _0x341c5a=this['editor'];_0x341c5a['plugins']['has']('CaseChange')&&(_0x341c5a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x341c5a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x341c5a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x450ea2{['afterInit'](){const _0x37fd84=this['editor'];_0x37fd84['commands']['get']('ckbox')&&_0x37fd84['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x450ea2{['afterInit'](){const _0xf3b3c5=this['editor'];if(!_0xf3b3c5['plugins']['has']('CodeBlock'))return;const _0x4bc0ff=_0xf3b3c5['plugins']['get']('TrackChangesEditing'),_0x4daef1=_0xf3b3c5['locale'],_0x199cae=_0xf3b3c5['config']['get']('codeBlock')['languages'],_0x2746d4=_0xf3b3c5['commands']['get']('codeBlock');_0x4bc0ff['enableCommand']('indentCodeBlock'),_0x4bc0ff['enableCommand']('outdentCodeBlock'),_0x4bc0ff['enableCommand']('codeBlock',(_0x404d49,_0x48b4ce={})=>{const _0x7a2a0a=_0xf3b3c5['model'],_0x2bafbf=_0xf3b3c5['model']['document']['selection'],_0x2f98e0=_0x48b4ce&&void 0x0!==_0x48b4ce['forceValue']?_0x48b4ce['forceValue']:!_0x2746d4['value'];let _0x3e5a36;_0x48b4ce['language']||(_0x48b4ce['language']=_0x199cae[0x0]['language']),_0x3e5a36=_0x2f98e0?Array['from'](_0x2bafbf['getSelectedBlocks']())['filter'](_0x246fdb=>oo(_0x246fdb)||function(_0x1cd4c0,_0x25b684){if(_0x1cd4c0['is']('rootElement')||_0x25b684['isLimit'](_0x1cd4c0))return!0x1;return _0x25b684['checkChild'](_0x1cd4c0['parent'],'codeBlock');}(_0x246fdb,_0x7a2a0a['schema'])):Array['from'](_0x2bafbf['getSelectedBlocks']())['filter'](_0x4741a8=>oo(_0x4741a8));const _0x401396=Zt(_0x3e5a36,_0x7a2a0a);_0x7a2a0a['change'](()=>{for(const _0x28146c of _0x401396)_0x4bc0ff['markBlockFormat'](_0x28146c,{'commandName':'codeBlock','commandParams':[{..._0x48b4ce,'forceValue':_0x2f98e0}],'formatGroupId':'blockName'});});}),(_0x4bc0ff['descriptionFactory']['registerElementLabel']('codeBlock',_0x2a3aa0=>c(_0x4daef1,'ELEMENT_CODE_BLOCK',_0x2a3aa0)),_0x4bc0ff['descriptionFactory']['registerDescriptionCallback'](_0x56de9b=>{if('formatBlock'!=_0x56de9b['type'])return;const _0x43338a=_0x4daef1['t'],{data:_0x1cfed8}=_0x56de9b;if(!_0x1cfed8||'codeBlock'!=_0x1cfed8['commandName'])return;const _0x4dc190=_0x1cfed8['commandParams'][0x0]['language'],_0x427252=_0x43338a(_0x199cae['find'](_0x3d89d9=>_0x3d89d9['language']===_0x4dc190)['label'])['toLowerCase']();return _0x1cfed8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4daef1,'*Set\x20format:*\x20%0',c(_0x4daef1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x427252+')')}:{'type':'format','content':c(_0x4daef1,'*Remove\x20format:*\x20%0',c(_0x4daef1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x62dbae){return'codeBlock'==_0x62dbae['name'];}class q extends _0x450ea2{['afterInit'](){const _0x365653=this['editor'];if(!_0x365653['plugins']['has']('CommentsEditing'))return;_0x365653['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x8e274c,_0x166962,_0x7a3c43){const _0x249228=[];for(const _0x459b42 of _0x166962['getItems']())_0x459b42['hasAttribute'](_0x8e274c)&&_0x249228['push'](_0x7a3c43['createRangeOn'](_0x459b42));return _0x249228;}function De(_0x108005,_0xa8c791,{showActiveMarker:_0x226fa7=!0x0}={}){const _0x7edc37=_0x108005['plugins']['get']('TrackChangesEditing');return(_0x3530e4,_0x22633a,_0x1e483d)=>{if(!_0x1e483d['consumable']['test'](_0x22633a['markerRange'],_0x3530e4['name']))return;const _0x54e54a=_0x22633a['markerRange']['getWalker'](),_0x28732b=_0x22633a['markerRange']['start'],_0x1cddfd=_0x108005['model']['schema'];let _0x294217=null,_0x203e8a=null,_0x377c60=!0x1,_0x70c218=!0x1;for(const _0x10c7e7 of _0x54e54a){const _0x49f581=_0x10c7e7['item'];_0x377c60=_0x377c60||_0x1cddfd['isContent'](_0x49f581);const _0x4075cc=_0x1e483d['mapper']['toViewElement'](_0x49f581);if(_0x4075cc&&_0x4075cc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x10c7e7['type']&&(_0x1cddfd['isBlock'](_0x49f581)&&!_0x1cddfd['isLimit'](_0x49f581)&&(_0x49f581['nextSibling']||_0x28732b['isAtEnd']?_0x294217&&_0x294217['parent']==_0x49f581||(_0x294217=_0x49f581,_0x3152bc(_0x10c7e7['previousPosition']),_0x70c218=!0x0):_0x203e8a=_0x203e8a||_0x10c7e7['previousPosition']));}function _0x3152bc(_0x4a15ff){const {authorId:_0x43fc9d}=_0x7edc37['_splitMarkerName'](_0x22633a['markerName']),_0xef8409=_0x1e483d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xa8c791,'data-author-id':_0x43fc9d}),_0x4fb458=_0x1e483d['mapper']['toViewPosition'](_0x4a15ff);_0x226fa7&&_0x7edc37['activeMarkers']['includes'](_0x22633a['markerName'])&&_0x1e483d['writer']['addClass']('ck-suggestion-marker--active',_0xef8409),_0x1e483d['writer']['insert'](_0x4fb458,_0xef8409),_0x1e483d['mapper']['bindElementToMarker'](_0xef8409,_0x22633a['markerName']);}_0x377c60||_0x70c218||!_0x203e8a||_0x3152bc(_0x203e8a);};}class z extends _0x450ea2{static get['requires'](){return[_0x528e79];}['init'](){const _0x42b7fc=this['editor'],_0x1b7cd3=_0x42b7fc['plugins']['get']('TrackChangesEditing');_0x1b7cd3['enableCommand']('delete');const _0x41e67c=_0x42b7fc['commands']['get']('deleteForward');_0x1b7cd3['enableCommand']('deleteForward',(_0x1189bd,_0x3332e8={})=>{const _0x166599=_0x42b7fc['model']['createSelection'](_0x42b7fc['model']['document']['selection']);_0x166599['isCollapsed']&&_0x42b7fc['model']['modifySelection'](_0x166599,{'direction':'forward','unit':_0x3332e8['unit']});const _0x1f4d7e=_0x166599['getFirstRange'](),_0x162ba6=_0xb23b08['fromRange'](_0x1f4d7e);let _0x736ac5;_0x1189bd(_0x3332e8),_0x736ac5='$graveyard'==_0x162ba6['root']['rootName']?_0x42b7fc['model']['createRange'](_0x1f4d7e['start']):_0x42b7fc['model']['createRange'](_0x162ba6['start'],_0x162ba6['end']),_0x162ba6['detach'](),_0x42b7fc['model']['enqueueChange'](_0x41e67c['buffer']['batch'],_0x36d635=>{_0x41e67c['buffer']['lock'](),_0x36d635['setSelection'](_0x36d635['createRange'](_0x736ac5['end'])),_0x41e67c['buffer']['unlock']();});}),_0x42b7fc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x42b7fc,'merge'),{'priority':'high'}),_0x42b7fc['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4b1124,_0x39e72d,_0x5bb57c)=>{_0x5bb57c['options']['showSuggestionHighlights']&&De(_0x42b7fc,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4b1124,_0x39e72d,_0x5bb57c);},{'priority':'high'}),_0x42b7fc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x197c9a,_0x7bd02d,_0x1ef075)=>{const _0x4f5b38=_0x1ef075['mapper']['markerNameToElements'](_0x7bd02d['markerName']);if(_0x4f5b38){for(const _0x1d31b1 of _0x4f5b38)_0x1d31b1['is']('uiElement')&&(_0x1ef075['mapper']['unbindElementFromMarkerName'](_0x1d31b1,_0x7bd02d['markerName']),_0x1ef075['writer']['remove'](_0x1d31b1));}},{'priority':'high'});}}class W extends _0x450ea2{['afterInit'](){const _0x2321ee=this['editor'];if(!_0x2321ee['plugins']['has']('ListEditing'))return;const _0x481e16=_0x2321ee['locale'],_0x45caf5=_0x2321ee['plugins']['get']('TrackChangesEditing'),_0x1dc667=_0x2321ee['plugins']['has']('TodoListEditing'),_0x52fb35=!!_0x2321ee['config']['get']('list.multiBlock');function _0x3f2ff7(_0x386bc9){return{'type':'format','content':''+c(_0x481e16,'*Set\x20format:*\x20%0',_0x386bc9)};}function _0x40ac9e(_0x223399){return{'type':'format','content':''+c(_0x481e16,'*Remove\x20format:*\x20%0',_0x223399)};}_0x45caf5['enableDefaultAttributesIntegration']('numberedList'),_0x45caf5['enableDefaultAttributesIntegration']('bulletedList'),_0x45caf5['enableDefaultAttributesIntegration']('customNumberedList'),_0x45caf5['enableDefaultAttributesIntegration']('customBulletedList'),_0x45caf5['enableDefaultAttributesIntegration']('indentList'),_0x45caf5['enableDefaultAttributesIntegration']('outdentList'),_0x45caf5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x45caf5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x45caf5['registerBlockAttribute']('listItemId'),_0x45caf5['registerBlockAttribute']('listType'),_0x45caf5['registerBlockAttribute']('listIndent'),_0x52fb35&&(_0x45caf5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x45caf5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1dc667&&(_0x45caf5['enableDefaultAttributesIntegration']('todoList'),_0x45caf5['enableDefaultAttributesIntegration']('checkTodoList'),_0x45caf5['registerBlockAttribute']('todoListChecked'),_0x45caf5['descriptionFactory']['registerDescriptionCallback'](_0x47a4a1=>{const {data:_0x25773e}=_0x47a4a1;if(_0x25773e&&'todoListChecked'==_0x25773e['key'])return{'type':'format','content':_0x25773e['newValue']?c(_0x481e16,'*Check\x20item*'):c(_0x481e16,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x35b70f=>{if(_0x35b70f['batch']['isUndo'])return!0x1;let _0x2c5b2c=!0x1;const _0x40b2b6=_0x45caf5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x131874=>'todoListChecked'===_0x45caf5['_getAttributeKey'](_0x131874));for(const _0x153b10 of _0x40b2b6){'todo'!=_0x153b10['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x45caf5['_findSuggestions'](_0x153b10['getFirstRange'](),'attribute')['find'](_0x1524ff=>'listType'===_0x45caf5['_getAttributeKey'](_0x1524ff['suggestion']))||(_0x35b70f['removeMarker'](_0x153b10['getFirstMarker']()),_0x2c5b2c=!0x0));}return _0x2c5b2c;})),_0x45caf5['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x481e16,'FORMAT_INDENT'));const _0x5731a8={'type':'format','content':''};_0x45caf5['descriptionFactory']['registerDescriptionCallback'](_0x174b50=>{const {data:_0x331c1a}=_0x174b50;if(!_0x331c1a||'listType'!=_0x331c1a['key'])return;let _0x2c25ca=_0x174b50['head'];for(;_0x2c25ca;){if(_0x2c25ca['data']&&(('listStyle'==_0x2c25ca['data']['key']||'listMarkerStyle'==_0x2c25ca['data']['key'])&&(_0x2c25ca['data']['newValue']&&'default'!=_0x2c25ca['data']['newValue']||'default'!=_0x2c25ca['data']['oldValue']&&!_0x331c1a['newValue'])||!_0x52fb35&&_0x2c25ca['data']['key']==u))return _0x5731a8;_0x2c25ca=_0x2c25ca['next'];}if(null==_0x331c1a['newValue'])switch(_0x331c1a['oldValue']){case'bulleted':return _0x40ac9e(c(_0x481e16,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x40ac9e(c(_0x481e16,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x40ac9e(c(_0x481e16,'ELEMENT_TODO_LIST'));}switch(_0x331c1a['newValue']){case'bulleted':return _0x3f2ff7(c(_0x481e16,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3f2ff7(c(_0x481e16,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3f2ff7(c(_0x481e16,'ELEMENT_TODO_LIST'));}}),_0x45caf5['descriptionFactory']['registerDescriptionCallback'](_0x10f210=>{const {data:_0x2a91ea}=_0x10f210;if(_0x2a91ea&&'listIndent'==_0x2a91ea['key'])return null==_0x2a91ea['newValue']||null==_0x2a91ea['oldValue']&&0x0==_0x2a91ea['newValue']?_0x5731a8:void 0x0;}),_0x45caf5['descriptionFactory']['registerDescriptionCallback'](_0x2f9ae5=>{if('attribute'!=_0x2f9ae5['type'])return;const {data:_0x517031}=_0x2f9ae5;if(!_0x517031||'listItemId'!=_0x517031['key'])return;const _0x1b2903=Te(_0x2f9ae5);return'newValue'==_0x1b2903?{'type':'format','content':c(_0x481e16,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1b2903?{'type':'format','content':c(_0x481e16,'*Split:*\x20list\x20item')}:_0x5731a8;}),_0x2321ee['model']['document']['registerPostFixer'](_0x4a2933=>this['listItemIdFixer'](_0x4a2933)),_0x2321ee['model']['document']['registerPostFixer'](_0x4f9938=>this['noTrackChangesFixer'](_0x4f9938)),_0x2321ee['model']['document']['on']('change:data',(_0x5a3a30,_0x1e70d8)=>{if(_0x1e70d8['isUndo']||!_0x1e70d8['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1df98c){if(_0x1df98c['batch']['isUndo']||!_0x1df98c['batch']['isLocal'])return!0x1;let _0x40c554=!0x1;const _0x88c0b4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6058f7=>_0x6058f7['data']&&'listItemId'==_0x6058f7['data']['key'])['filter'](_0x5a30cb=>_0x5a30cb['data']['newValue']&&_0x5a30cb['data']['oldValue']);for(const _0x489ea7 of _0x88c0b4)Te(_0x489ea7)||(_0x1df98c['removeMarker'](_0x489ea7['getFirstMarker']()),_0x40c554=!0x0);return _0x40c554;}['noTrackChangesFixer'](_0xab9653){if(_0xab9653['batch']['isUndo']||!_0xab9653['batch']['isLocal'])return!0x1;const _0x28454d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x28454d['trackChangesCommand']['value'])return!0x1;let _0xd6ede5=!0x1;const _0x23810b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4f38b7=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1c6a91=>'attribute'==_0x1c6a91['type'])['filter'](_0xe292f6=>_0x23810b['includes'](_0xe292f6['attributeKey']));if(0x0==_0x4f38b7['length'])return _0xd6ede5;for(const _0x158dd3 of _0x4f38b7){const _0x47af8d=_0x28454d['_findSuggestions'](_0x158dd3['range'],'attribute')['filter'](_0x3004b4=>!_0x3004b4['meta']['isNextTo'])['map'](_0x1d4deb=>_0x1d4deb['suggestion'])['filter'](_0x43ad9c=>{const _0x3b6ddb=_0x28454d['_getAttributeKey'](_0x43ad9c);return _0x23810b['includes'](_0x3b6ddb);});if(_0x47af8d['length']){for(const _0x38a232 of _0x47af8d)_0xab9653['removeMarker'](_0x38a232['getFirstMarker']());_0xd6ede5=!0x0;}}return _0xd6ede5;}['assureChains'](){const _0x58ba41=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f2b24=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2622fe;const _0x12a3be=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x84d610=>{if(_0x84d610['data']['oldRange']||!_0x84d610['data']['newRange'])return null;if(!_0x84d610['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4d566b}=_0x58ba41['_splitMarkerName'](_0x84d610['name']);if(!_0x58ba41['hasSuggestion'](_0x4d566b))return null;const _0x50cf40=_0x58ba41['getSuggestion'](_0x4d566b);return _0x2f2b24['includes'](_0x50cf40['data']['key']);})['map'](_0x5a4b0d=>{const {id:_0x2ae821}=_0x58ba41['_splitMarkerName'](_0x5a4b0d['name']),_0x51b746=_0x58ba41['getSuggestion'](_0x2ae821);return _0x2622fe=_0x51b746['attributes']['groupId'],_0x51b746['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x12a3be['size'])return;const _0x88ab33=_0x58ba41['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6ac910=>'attribute'==_0x6ac910['type']&&_0x6ac910['data']&&_0x2f2b24['includes'](_0x6ac910['data']['key'])&&_0x6ac910['attributes']['groupId']!=_0x2622fe)['map'](_0x275bd7=>({'listItem':_0x275bd7['getFirstRange']()['start']['nodeAfter'],'groupId':_0x275bd7['attributes']['groupId']})),_0x32fdbb=new Set();for(const {groupId:_0xae2511,listItem:_0x2f7e41}of _0x88ab33)_0x12a3be['has'](_0x2f7e41)&&_0x32fdbb['add'](_0xae2511);for(const _0x34fae4 of _0x58ba41['getSuggestions']())_0x32fdbb['has'](_0x34fae4['attributes']['groupId'])&&_0x34fae4['setAttribute']('groupId',_0x2622fe);}['_supportLegacySuggestions'](){const _0x3f8f3d=this['editor'],_0x33b317=_0x3f8f3d['locale'],_0x472c53=_0x3f8f3d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x472c53['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x25e97e,_0x4405c5){const _0x125c06=[];for(let _0x2b944a of _0x25e97e)_0x2b944a['start']['nodeAfter']===_0x2b944a['end']['parent']&&(_0x2b944a=_0x3f8f3d['model']['createRange'](_0x3f8f3d['model']['createPositionAt'](_0x2b944a['start']['nodeAfter'],0x0))),_0x125c06['push'](_0x2b944a);_0x3f8f3d['model']['change'](_0x38bf9b=>{const _0x10bfc5=_0x3f8f3d['model']['document']['selection'],_0x34a157=Array['from'](_0x10bfc5['getRanges']())['map'](_0x2ffe2a=>_0xb23b08['fromRange'](_0x2ffe2a));_0x38bf9b['setSelection'](_0x125c06),_0x3f8f3d['commands']['get'](_0x4405c5['commandName'])['refresh'](),_0x4405c5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3f8f3d['execute'](_0x4405c5['commandName'],..._0x4405c5['commandParams']),_0x38bf9b['setSelection'](_0x34a157);for(const _0xed8ca1 of _0x34a157)_0xed8ca1['detach']();});}),_0x472c53['descriptionFactory']['registerElementLabel'](function(_0x367667){const _0x176d4d=!_0x3f8f3d['model']['schema']['isObject'](_0x367667),_0x492a18=_0x367667['previousSibling'],_0x8105e5=_0x367667['nextSibling'],_0x2597e5=_0x367667['getAttribute']('listItemId'),_0x23427a=!_0x492a18||_0x492a18['getAttribute']('listItemId')!==_0x2597e5,_0x2cea3b=!_0x8105e5||_0x8105e5['getAttribute']('listItemId')!==_0x2597e5;return _0x176d4d&&Boolean(_0x2597e5)&&_0x23427a&&_0x2cea3b;},_0x2fa0be=>c(_0x33b317,'ELEMENT_LIST_ITEM',_0x2fa0be));}['_registerLegacyDescription'](){const _0x2c7d90=this['editor'],_0x4dddc0=_0x2c7d90['locale'];function _0xd6dcfe(_0x2e5366){const _0x36416e=_0x2c7d90['commands']['get']('bulletedList')['value'],_0x3b8274=_0x2c7d90['commands']['get']('numberedList')['value'];return'numberedList'===_0x2e5366?_0x36416e:_0x3b8274;}_0x2c7d90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x249e33){if('formatBlock'!=_0x249e33['type'])return;const {data:_0x31149a}=_0x249e33;if(!_0x31149a)return;let _0x51c62a,_0x5c968b,_0x2717b1,_0x5dd00b;switch(_0x31149a['commandName']){case'bulletedList':_0x2717b1=_0x31149a['commandParams'][0x0]['forceValue'],_0x5dd00b=_0xd6dcfe(_0x31149a['commandName']),_0x51c62a=_0x2717b1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5dd00b&&_0x2c7d90['config']['get']('list.multiBlock')||(_0x51c62a='*Change\x20to:*\x20%0'),_0x5c968b={'type':'format','content':c(_0x4dddc0,_0x51c62a,c(_0x4dddc0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2717b1=_0x31149a['commandParams'][0x0]['forceValue'],_0x5dd00b=_0xd6dcfe(_0x31149a['commandName']),_0x51c62a=_0x2717b1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5dd00b&&_0x2c7d90['config']['get']('list.multiBlock')||(_0x51c62a='*Change\x20to:*\x20%0'),_0x5c968b={'type':'format','content':c(_0x4dddc0,_0x51c62a,c(_0x4dddc0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x51c62a='*Indent:*\x20%0',_0x5c968b={'type':'format','content':c(_0x4dddc0,_0x51c62a,c(_0x4dddc0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x51c62a=function(_0x116ebd){const _0x5bc832=_0x116ebd['getFirstRange']();let _0x1959e2=_0x5bc832['start']['nodeAfter'];for(;_0x1959e2&&_0x5bc832['containsItem'](_0x1959e2);){if(_0x1959e2['getAttribute']('listIndent')>0x0)return!0x1;_0x1959e2=_0x1959e2['nextSibling'];}return!0x0;}(_0x249e33)?c(_0x4dddc0,'*Format:*\x20remove\x20from\x20%0',c(_0x4dddc0,function(_0x44d1ca){return'ELEMENT_'+_0x44d1ca['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x249e33))):c(_0x4dddc0,'*Outdent:*\x20%0',c(_0x4dddc0,'ELEMENT_LIST_ITEM')),_0x5c968b={'type':'format','content':_0x51c62a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x31149a['multipleBlocks']&&(_0x51c62a='*Merge:*\x20%0',_0x5c968b={'type':'deletion','content':c(_0x4dddc0,_0x51c62a,c(_0x4dddc0,'ELEMENT_LIST_ITEM'))});}return _0x5c968b;});}}function Te(_0x189214){let _0x443a0c=_0x189214['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x443a0c;){const _0x321bfb=_0x443a0c['getAttribute']('listItemId');if(!_0x321bfb)return!0x1;if(_0x321bfb==_0x189214['data']['newValue'])return'newValue';if(_0x321bfb==_0x189214['data']['oldValue'])return'oldValue';_0x443a0c=_0x443a0c['previousSibling'];}return!0x1;}class Se extends _0x450ea2{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5570b1=this['editor']['config']['get']('list.properties'),_0x580f86=this['editor']['plugins']['get']('TrackChangesEditing');_0x5570b1['styles']&&(_0x580f86['enableDefaultAttributesIntegration']('listStyle'),_0x580f86['registerBlockAttribute']('listStyle')),_0x5570b1['reversed']&&(_0x580f86['enableDefaultAttributesIntegration']('listReversed'),_0x580f86['registerBlockAttribute']('listReversed')),_0x5570b1['startIndex']&&(_0x580f86['enableDefaultAttributesIntegration']('listStart'),_0x580f86['registerBlockAttribute']('listStart'));const _0x3ca06e={'type':'format','content':''};_0x580f86['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3f0621=this['editor']['locale'];_0x580f86['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3f0621,'FORMAT_LIST_REVERSED')),_0x580f86['descriptionFactory']['registerDescriptionCallback'](_0x113103=>{const {data:_0x196461}=_0x113103;if(_0x196461&&'listReversed'==_0x196461['key'])return null==_0x196461['newValue']||0x0==_0x196461['newValue']&&null==_0x196461['oldValue']?_0x3ca06e:void 0x0;}),_0x580f86['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3f0621,'FORMAT_LIST_START')),_0x580f86['descriptionFactory']['registerDescriptionCallback'](_0x319e37=>{const {data:_0x504b16}=_0x319e37;if(_0x504b16&&'listStart'==_0x504b16['key'])return null==_0x504b16['newValue']||0x1==_0x504b16['newValue']&&null==_0x504b16['oldValue']?_0x3ca06e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5534d1=>{if(_0x5534d1['batch']['isUndo'])return!0x1;let _0x2126c0=!0x1;const _0x4c0752=_0x580f86['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22eda9=>{const _0x15edba=_0x580f86['_getAttributeKey'](_0x22eda9);return'listStart'==_0x15edba||'listReversed'==_0x15edba;});for(const _0x450936 of _0x4c0752){const _0x27f961=_0x450936['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x27f961||'customNumbered'==_0x27f961)continue;_0x580f86['_findSuggestions'](_0x450936['getFirstRange'](),'attribute')['find'](_0x416405=>'listType'==_0x580f86['_getAttributeKey'](_0x416405['suggestion']))||(_0x5534d1['removeMarker'](_0x450936['getFirstMarker']()),_0x2126c0=!0x0);}return _0x2126c0;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x440ce3){const _0x245098=this['editor']['locale'],{data:_0x61a0e4}=_0x440ce3,_0x959156={'type':'format','content':''};if(!_0x61a0e4||'listStyle'!=_0x61a0e4['key'])return;if(!_0x61a0e4['oldValue'])return'default'==_0x61a0e4['newValue']?_0x959156:{'type':'format','content':''+c(_0x245098,'*Set\x20format:*\x20%0',c(_0x245098,this['_getTranslationKeyForListStyle'](_0x61a0e4['newValue'])))};if(!_0x61a0e4['newValue']){if('default'==_0x61a0e4['oldValue'])return _0x959156;let _0x2559c9=_0x440ce3['head'];for(;_0x2559c9;){if(_0x2559c9['data']&&'listType'==_0x2559c9['data']['key']&&_0x2559c9['data']['newValue'])return _0x959156;_0x2559c9=_0x2559c9['next'];}return{'type':'format','content':''+c(_0x245098,'*Remove\x20format:*\x20%0',c(_0x245098,this['_getTranslationKeyForListStyle'](_0x61a0e4['oldValue'])))};}if('default'!=_0x61a0e4['newValue'])return{'type':'format','content':''+c(_0x245098,'*Set\x20format:*\x20%0',c(_0x245098,this['_getTranslationKeyForListStyle'](_0x61a0e4['newValue'])))};let _0x394060=_0x440ce3['head'];for(;_0x394060;){if(_0x394060['data']&&'listType'==_0x394060['data']['key']&&_0x394060['data']['newValue']&&_0x394060['data']['oldValue'])return _0x959156;_0x394060=_0x394060['next'];}return{'type':'format','content':c(_0x245098,'*Set\x20format:*\x20%0',c(_0x245098,'ELEMENT_'+_0x440ce3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4fae2c=this['editor'],_0x54e1b4=_0x4fae2c['locale'];_0x4fae2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55482a=>{if('formatBlock'!=_0x55482a['type'])return;const {data:_0x3387a4}=_0x55482a;if(!_0x3387a4)return;let _0x2beaf3,_0x5c884b;switch(_0x3387a4['commandName']){case'listStyle':_0x2beaf3='*Change\x20to:*\x20%0',_0x5c884b={'type':'format','content':c(_0x54e1b4,_0x2beaf3,c(_0x54e1b4,this['_getTranslationKeyForListStyle'](_0x3387a4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2beaf3=_0x3387a4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5c884b={'type':'format','content':c(_0x54e1b4,_0x2beaf3)};break;case'listStart':_0x2beaf3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5c884b={'type':'format','content':c(_0x54e1b4,_0x2beaf3,_0x3387a4['commandParams'][0x0]['startIndex'])};}return _0x5c884b;});}['_getTranslationKeyForListStyle'](_0x216b9d){return'ELEMENT_'+function(_0x2671be){if(_e['includes'](_0x2671be))return'bulleted';if(Re['includes'](_0x2671be))return'numbered';return null;}(_0x216b9d)['toUpperCase']()+'_LIST_'+_0x216b9d['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x450ea2{['afterInit'](){const _0x3b3226=this['editor'];_0x3b3226['commands']['get']('emoji')&&_0x3b3226['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x450ea2{static get['requires'](){return[_0x1a0c99];}['init'](){const _0x39d4ac=this['editor'],_0x1cf272=_0x39d4ac['plugins']['get']('TrackChangesEditing'),_0x58cfb6=_0x39d4ac['commands']['get']('enter');_0x1cf272['enableCommand']('enter',()=>{_0x39d4ac['model']['change'](_0x414783=>{const _0x1bdcf7=_0x39d4ac['model']['document']['selection'],_0xb7717e=_0x1bdcf7['getFirstPosition'](),_0x3e3b0f=_0xb23b08['fromRange'](_0x1bdcf7['getFirstRange']());if(_0x58cfb6['enterBlock'](_0x414783)){const _0x46d1d2=_0x39d4ac['model']['createPositionAt'](_0xb7717e['parent']['nextSibling'],0x0),_0x4a2f78=_0x414783['createRange'](_0xb7717e,_0x46d1d2);_0x1cf272['markInsertion'](_0x4a2f78);}else _0x414783['setSelection'](_0x414783['createRange'](_0x3e3b0f['end']));_0x3e3b0f['detach'](),_0x58cfb6['fire']('afterExecute',{'writer':_0x414783});});}),_0x39d4ac['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x39d4ac,'split'),{'priority':'high'}),_0x39d4ac['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x57acc0,_0x431d33,_0x56901d)=>{const _0x1bd6fd=_0x56901d['mapper']['markerNameToElements'](_0x431d33['markerName']);if(_0x1bd6fd){for(const _0x3c4cbe of _0x1bd6fd)_0x3c4cbe['hasClass']('ck-suggestion-marker-split')&&(_0x56901d['mapper']['unbindElementFromMarkerName'](_0x3c4cbe,_0x431d33['markerName']),_0x56901d['writer']['remove'](_0x3c4cbe));}},{'priority':'high'}),_0x39d4ac['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x49cc02,_0xafab53,_0x2234d7)=>{_0x2234d7['options']['showSuggestionHighlights']&&De(_0x39d4ac,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x49cc02,_0xafab53,_0x2234d7);},{'priority':'high'});}}class Z extends _0x450ea2{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5d0880=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d0880['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5d0880['enableCommand']('findNext'),_0x5d0880['enableCommand']('findPrevious'),_0x5d0880['enableCommand']('replace'),_0x5d0880['enableCommand']('replaceAll');}['handleFindCommand'](_0x4add1c,_0xd513be,_0x3d2d16={}){const _0x4c712a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4add1c(_0x308378=>{let _0x330e4a=('string'==typeof _0xd513be?_0x4c712a['findByTextCallback'](_0xd513be,_0x3d2d16):_0xd513be)(_0x308378);Array['isArray'](_0x330e4a)&&(_0x330e4a={'results':_0x330e4a,'searchText':'string'==typeof _0xd513be?_0xd513be:''});const _0x326b4c=_0x330e4a['results']['filter'](_0x4563a5=>!0x1===this['_isInDeletionRange'](_0x4563a5,_0x308378['item']));return{..._0x330e4a,'results':_0x326b4c};},_0x3d2d16);}['_isInDeletionRange'](_0x711237,_0x5a5c68){const _0xe26eda=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a5c68,_0x711237['start']),this['editor']['model']['createPositionAt'](_0x5a5c68,_0x711237['end']));for(const _0x4bd7c8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xe26eda['getIntersection'](_0x4bd7c8['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x450ea2{['afterInit'](){const _0x1d2b2d=this['editor']['locale'],_0x1c7bc1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x16c36,commandName:_0x2689a1}of eo)this['editor']['plugins']['has'](_0x16c36)&&(_0x1c7bc1['enableDefaultAttributesIntegration'](_0x2689a1),_0x1c7bc1['registerInlineAttribute'](_0x2689a1));_0x1c7bc1['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x1d2b2d,'FORMAT_FONT_SIZE')),_0x1c7bc1['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x1d2b2d,'FORMAT_FONT_FAMILY')),_0x1c7bc1['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x1d2b2d,'FORMAT_FONT_COLOR')),_0x1c7bc1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x1d2b2d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59c3e6=this['editor'],_0x3c27c3=_0x59c3e6['locale'];_0x59c3e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bb63b=>{const _0x505916=_0x3c27c3['t'];if('formatInline'!=_0x2bb63b['type'])return;const {data:_0x4276e1}=_0x2bb63b;if(null!=_0x4276e1){if('fontSize'==_0x4276e1['commandName']){const _0x10f24d=_0x4276e1['commandParams'][0x0]['value'];if(_0x10f24d){const _0x3ab910=_0x505916(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x391ce2=>_0x391ce2['model']==_0x10f24d)['title'])['toLowerCase']();return{'type':'format','content':c(_0x3c27c3,'*Set\x20font\x20size:*\x20%0',_0x3ab910)};}return{'type':'format','content':c(_0x3c27c3,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4276e1['commandName']){const _0x47d09d=_0x4276e1['commandParams'][0x0]['value'];return _0x47d09d?{'type':'format','content':c(_0x3c27c3,'*Set\x20font\x20family:*\x20%0',_0x47d09d)}:{'type':'format','content':c(_0x3c27c3,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4276e1['commandName']){const _0x53bd90=_0x4276e1['commandParams'][0x0]['value'];if(_0x53bd90){const _0x2610e6=_0x32d138(this['editor']['config']['get']('fontColor.colors'))['find'](_0x505ca9=>_0x505ca9['model']==_0x53bd90);let _0x8e3133=_0x53bd90,_0x27694f='';return _0x2610e6&&(_0x8e3133=_0x2610e6['label'],_0x27694f=_0x505916(_0x8e3133)['toLowerCase']()),{'type':'format','content':c(_0x3c27c3,'*Set\x20font\x20color:*\x20%0',_0x27694f)['trim'](),'color':{'value':_0x53bd90,'title':_0x27694f||_0x8e3133}};}return{'type':'format','content':c(_0x3c27c3,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4276e1['commandName']){const _0x3354d6=_0x4276e1['commandParams'][0x0]['value'];if(_0x3354d6){const _0x20d38f=_0x32d138(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x374403=>_0x374403['model']==_0x3354d6);let _0x1d5ac1=_0x3354d6,_0x46a3c8='';return _0x20d38f&&(_0x1d5ac1=_0x20d38f['label'],_0x46a3c8=_0x505916(_0x1d5ac1)['toLowerCase']()),{'type':'format','content':c(_0x3c27c3,'*Set\x20font\x20background\x20color:*\x20%0',_0x46a3c8)['trim'](),'color':{'value':_0x3354d6,'title':_0x46a3c8||_0x1d5ac1}};}return{'type':'format','content':c(_0x3c27c3,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x450ea2{['afterInit'](){const _0x211598=this['editor'],_0xb1623b=_0x211598['plugins']['get']('TrackChangesEditing'),_0xfc2b52=_0x211598['commands']['get']('copyFormat'),_0x21e6d6=_0x211598['commands']['get']('pasteFormat');_0xfc2b52&&_0x21e6d6&&(_0xb1623b['enableDefaultAttributesIntegration']('pasteFormat'),_0xb1623b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x246ea2=this['editor'],_0xa9fbd6=_0x246ea2['locale'];_0x246ea2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36e432=>{if('formatBlock'!=_0x36e432['type']&&'formatInline'!=_0x36e432['type'])return;const {data:_0x307b31}=_0x36e432;if(_0x307b31&&'pasteFormat'===_0x307b31['commandName']){const _0x3c8efd=[],_0x57444f=_0x307b31['commandParams'][0x0];for(const [_0x2ea8be,_0x2148df]of Object['entries'](_0x57444f))_0x3c8efd['push'](ro(_0x246ea2,_0x2ea8be,_0x2148df));return _0x3c8efd['length']?{'type':'format','content':c(_0xa9fbd6,'*Set\x20format\x20to:*\x20%0',_0x3c8efd['join'](',\x20'))}:{'type':'format','content':c(_0xa9fbd6,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x41c427,_0x1712c8,_0x1eaa41){const _0x2cd4c6=_0x41c427['locale']['t'],_0x422cb6=_0x1712c8['split'](/(?=[A-Z])/)['join']('\x20'),_0x542cdf=_0x2cd4c6(_0x422cb6['charAt'](0x0)['toUpperCase']()+_0x422cb6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1eaa41)return _0x542cdf;if('fontColor'===_0x1712c8||'fontBackgroundColor'===_0x1712c8){const _0x8c8b4d=_0x32d138(_0x41c427['config']['get']('fontColor.colors'))['find'](_0x4e7034=>_0x4e7034['model']==_0x1eaa41);return _0x542cdf+'\x20('+(_0x8c8b4d?_0x2cd4c6(_0x8c8b4d['label'])['toLowerCase']():_0x1eaa41)+')';}if('fontSize'===_0x1712c8&&isNaN(parseFloat(_0x1eaa41))){const _0x377979=_0x41c427['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x41c427['config']['get']('fontSize.options'))['find'](_0x396488=>_0x396488['model']==_0x1eaa41);return _0x542cdf+'\x20('+(_0x377979?_0x2cd4c6(_0x377979['title'])['toLowerCase']():_0x1eaa41)+')';}return _0x542cdf+'\x20('+_0x1eaa41+')';}class nt extends _0x450ea2{['_headingOptions'];['afterInit'](){const _0x42c07c=this['editor'];if(!_0x42c07c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x42c07c['config']['get']('heading.options');const _0x5dec8a=_0x42c07c['locale'],_0x4e6f20=_0x42c07c['plugins']['get']('TrackChangesEditing');_0x4e6f20['enableDefaultAttributesIntegration']('heading');for(const _0x6be3a0 of this['_headingOptions'])'paragraph'!=_0x6be3a0['model']&&_0x4e6f20['descriptionFactory']['registerElementLabel'](_0x6be3a0['model'],_0x4d00dd=>{const _0x31b9b3=this['_getHeadingLevel'](_0x6be3a0['model']);return null!==_0x31b9b3?_0x33a9b1(_0x4d00dd,_0x31b9b3):_0x17152b(_0x4d00dd,_0x6be3a0['title']);});function _0x33a9b1(_0x39876e,_0x3ca27d){return c(_0x5dec8a,'ELEMENT_HEADING',[_0x39876e,_0x3ca27d]);}function _0x17152b(_0x10e5f2,_0x322a68){return c(_0x5dec8a,'ELEMENT_HEADING_CUSTOM',[_0x10e5f2,_0x322a68]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2eb477=this['editor'],_0x1bd4f4=_0x2eb477['locale'];function _0x11c798(_0x18cdc1,_0x56d4ff){return c(_0x1bd4f4,'ELEMENT_HEADING_CUSTOM',[_0x18cdc1,_0x56d4ff]);}_0x2eb477['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x381712=>{if('formatBlock'!=_0x381712['type'])return;const {data:_0x4c1be4}=_0x381712;if(_0x4c1be4&&'heading'==_0x4c1be4['commandName']){const _0x3a7d1c=_0x4c1be4['commandParams'][0x0]['value'],_0xf9f53a=this['_getHeadingLevel'](_0x3a7d1c);if(null!==_0xf9f53a)return{'type':'format','content':c(_0x1bd4f4,'*Change\x20to:*\x20%0',(_0xa67b5f=0x1,_0x149d29=_0xf9f53a,c(_0x1bd4f4,'ELEMENT_HEADING',[_0xa67b5f,_0x149d29])))};const _0x377f27=this['_headingOptions']['find'](_0x2b78d2=>_0x2b78d2['model']===_0x3a7d1c)['title'];return{'type':'format','content':c(_0x1bd4f4,'*Change\x20to:*\x20%0',_0x11c798(0x1,_0x377f27))};}var _0xa67b5f,_0x149d29;});}['_getHeadingLevel'](_0x235e57){const _0x60dfa7=_0x235e57['match'](/^heading(\d+)/);if(_0x60dfa7)return _0x60dfa7[0x1];const _0x16f45f=this['_headingOptions']?.['find'](_0xcde9e8=>_0xcde9e8['model']==_0x235e57);if(_0x16f45f&&_0x16f45f['view']){const _0x77b2b9=_0x16f45f['view'],_0xb358ae=(_0x77b2b9['name']??_0x77b2b9)['match'](/^h(\d+)/);if(_0xb358ae)return _0xb358ae[0x1];}return null;}}class it extends _0x450ea2{['afterInit'](){const _0x246733=this['editor'];if(!_0x246733['plugins']['has']('HighlightEditing'))return;const _0x19ce52=_0x246733['plugins']['get']('TrackChangesEditing'),_0x4f9152=_0x246733['locale'];_0x19ce52['enableDefaultAttributesIntegration']('highlight'),_0x19ce52['registerInlineAttribute']('highlight'),_0x19ce52['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x4f9152,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43def9=this['editor'],_0x237583=_0x43def9['locale'];_0x43def9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ceffb=>{if('formatInline'!=_0x3ceffb['type'])return;const {data:_0x229e8e}=_0x3ceffb;if(_0x229e8e&&'highlight'==_0x229e8e['commandName']){const _0x59141e=_0x237583['t'],_0x1620ea=_0x229e8e['commandParams'][0x0]['value'];if(_0x1620ea){const _0x8d98b=_0x43def9['config']['get']('highlight.options')['find'](_0x272955=>_0x272955['model']==_0x1620ea),_0x56dd36=_0x59141e(_0x8d98b['title'])['toLowerCase']();return{'type':'format','content':c(_0x237583,'*Set\x20highlight:*\x20%0',_0x56dd36),'color':{'value':_0x8d98b['color'],'title':_0x8d98b['title']}};}return{'type':'format','content':c(_0x237583,'*Remove\x20highlight*',c(_0x237583,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x450ea2{['afterInit'](){const _0x412472=this['editor'];if(!_0x412472['plugins']['has']('HorizontalLineEditing'))return;_0x412472['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x275998=_0x412472['plugins']['get']('TrackChangesEditing'),_0x38fbd5=_0x412472['locale'];_0x275998['descriptionFactory']['registerElementLabel']('horizontalLine',_0x331fc0=>c(_0x38fbd5,'ELEMENT_HORIZONTAL_LINE',_0x331fc0)),_0x412472['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x443366,{writer:_0x4946b1,options:_0x305eba})=>{if(!_0x305eba['showSuggestionHighlights'])return null;const _0x4674eb=_0x4946b1['createContainerElement']('div'),_0x5755cf=_0x4946b1['createEmptyElement']('hr');return _0x4946b1['addClass']('ck-horizontal-line',_0x4674eb),_0x4946b1['insert'](_0x4946b1['createPositionAt'](_0x4674eb,0x0),_0x5755cf),_0x4674eb;},'converterPriority':'high'});}}class ot extends _0x450ea2{['afterInit'](){const _0x3d6c61=this['editor'];if(!_0x3d6c61['plugins']['has']('HtmlEmbed'))return;const _0xc40d8b=_0x3d6c61['plugins']['get']('TrackChangesEditing'),_0xe1e6c8=_0x3d6c61['locale'];_0xc40d8b['descriptionFactory']['registerElementLabel']('rawHtml',_0x4cd557=>c(_0xe1e6c8,'ELEMENT_HTML_EMBED',_0x4cd557)),_0xc40d8b['enableDefaultAttributesIntegration']('htmlEmbed'),_0xc40d8b['registerBlockAttribute']('value'),_0xc40d8b['descriptionFactory']['registerDescriptionCallback'](_0x47af1a=>{if('attribute'!=_0x47af1a['type'])return;const {data:_0x2be938}=_0x47af1a;if(_0x2be938&&'value'==_0x2be938['key']&&_0x47af1a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4db089=c(_0xe1e6c8,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0xe1e6c8,'*Change\x20%0\x20content*',_0x4db089)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cb99a=this['editor'],_0x732eb1=_0x4cb99a['locale'];_0x4cb99a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b327f=>{if('formatBlock'!=_0x1b327f['type'])return;const {data:_0x32edd0}=_0x1b327f;if(_0x32edd0&&'htmlEmbed'==_0x32edd0['commandName']){const _0x4b0da2=c(_0x732eb1,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x732eb1,'*Change\x20%0\x20content*',_0x4b0da2)};}});}}class rt extends _0x450ea2{['afterInit'](){const _0x40e3cc=this['editor'];if(!_0x40e3cc['plugins']['has']('ImageEditing'))return;const _0x58c0e2=_0x40e3cc['plugins']['get']('TrackChangesEditing'),_0x531eb7=_0x40e3cc['plugins']['get']('ImageUtils'),_0x1cb87a=_0x40e3cc['locale'];_0x58c0e2['enableCommand']('insertImage'),_0x58c0e2['descriptionFactory']['registerElementLabel']('imageBlock',_0x102d3d=>c(_0x1cb87a,'ELEMENT_IMAGE',_0x102d3d)),_0x58c0e2['descriptionFactory']['registerElementLabel']('imageInline',_0x3a432e=>c(_0x1cb87a,'ELEMENT_INLINE_IMAGE',_0x3a432e)),_0x58c0e2['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x1cb87a,'ELEMENT_CAPTION')),_0x40e3cc['plugins']['has']('ImageUploadEditing')&&_0x58c0e2['enableCommand']('uploadImage'),_0x40e3cc['plugins']['has']('ImageBlockEditing')&&_0x40e3cc['plugins']['has']('ImageInlineEditing')&&(_0x58c0e2['enableCommand']('imageTypeInline',(_0x5a6d04,_0x37aae0)=>{const _0x3fd7f4=_0x531eb7['getClosestSelectedImageElement'](_0x40e3cc['model']['document']['selection']);_0x40e3cc['model']['change'](()=>{_0x58c0e2['markBlockFormat'](_0x3fd7f4,{'commandName':'imageTypeInline','commandParams':[_0x37aae0]},[],'convertBlockImageToInline');});}),_0x58c0e2['enableCommand']('imageTypeBlock',(_0x48b75d,_0x2a5ea3)=>{_0x40e3cc['model']['change'](_0x42eda8=>{let _0x149e02=_0x531eb7['getClosestSelectedImageElement'](_0x40e3cc['model']['document']['selection']),_0x44c89a=_0x42eda8['createRangeOn'](_0x149e02);const _0x35acdb=_0x32ad90['fromPosition'](_0x44c89a['start'],'toPrevious'),_0x4f94c2=_0x32ad90['fromPosition'](_0x44c89a['end'],'toNext');_0x58c0e2['forceDefaultExecution'](()=>_0x48b75d(_0x2a5ea3)),_0x149e02=_0x531eb7['getClosestSelectedImageElement'](_0x40e3cc['model']['document']['selection']),_0x44c89a=_0x42eda8['createRangeOn'](_0x149e02);const _0x37dcd3=_0x42eda8['createRange'](_0x35acdb,_0x4f94c2);_0x35acdb['detach'](),_0x4f94c2['detach'](),_0x58c0e2['markBlockFormat'](_0x149e02,{'commandName':'imageTypeInline','commandParams':[_0x2a5ea3]},[],'convertInlineImageToBlock'),_0x37dcd3['start']['isBefore'](_0x44c89a['start'])&&_0x58c0e2['markInsertion'](_0x42eda8['createRange'](_0x37dcd3['start'],_0x44c89a['start']),'convertInlineImageToBlock'),_0x44c89a['end']['isBefore'](_0x37dcd3['end'])&&_0x58c0e2['markInsertion'](_0x42eda8['createRange'](_0x44c89a['end'],_0x37dcd3['end']),'convertInlineImageToBlock');});}),_0x58c0e2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x58c0e2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x58c0e2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x58c0e2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x58c0e2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x58c0e2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x19ae6e])=>{const _0x20fca7=_0x58c0e2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3b9d01=_0x19ae6e['start'],_0x44e978=_0x19ae6e['end'];const _0x210083=_0x40e3cc['model']['schema']['getNearestSelectionRange'](_0x3b9d01,'backward'),_0x14b8f9=_0x40e3cc['model']['schema']['getNearestSelectionRange'](_0x44e978,'forward');_0x210083['isCollapsed']&&(_0x3b9d01=_0x210083['start']),_0x14b8f9['isCollapsed']&&(_0x44e978=_0x14b8f9['end']),_0x20fca7([_0x40e3cc['model']['createRange'](_0x3b9d01,_0x44e978)]);}),_0x58c0e2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x114534),_0x58c0e2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x114534)),_0x40e3cc['plugins']['has']('ImageCaptionEditing')&&(_0x58c0e2['enableCommand']('toggleImageCaption',(_0x1ea835,_0x3689e5)=>{const _0x9203ef=_0x40e3cc['plugins']['get']('ImageCaptionUtils');let _0x31b549=_0x531eb7['getClosestSelectedImageElement'](_0x40e3cc['model']['document']['selection']),_0x3d5066=_0x9203ef['getCaptionFromImageModelElement'](_0x31b549);_0x40e3cc['model']['change'](()=>{if(_0x3d5066)return void _0x58c0e2['markDeletion'](_0x40e3cc['model']['createRangeOn'](_0x3d5066));const _0x515f68=_0x531eb7['isBlockImage'](_0x31b549);_0x1ea835(_0x3689e5),_0x31b549=_0x531eb7['getClosestSelectedImageElement'](_0x40e3cc['model']['document']['selection']),_0x3d5066=_0x9203ef['getCaptionFromImageModelElement'](_0x31b549),_0x58c0e2['markInsertion'](_0x40e3cc['model']['createRangeOn'](_0x3d5066),_0x515f68?null:'imageCaption');});}),_0x58c0e2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x114534));const _0x11135b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1dbee2(_0x155df7,_0x30b988){const _0x2eed23=_0x11135b['findIndex'](({type:_0x51f87e,subType:_0x154b9d})=>_0x155df7['type']==_0x51f87e&&_0x155df7['subType']==_0x154b9d),_0x1c312c=_0x11135b['findIndex'](({type:_0x4030b6,subType:_0x1e0742})=>_0x30b988['type']==_0x4030b6&&_0x30b988['subType']==_0x1e0742);if(_0x2eed23<0x0||_0x1c312c<0x0)return!0x1;const _0x4046b4=_0x155df7['getFirstRange'](),_0x2fc312=_0x30b988['getFirstRange']();if((0x0==_0x2eed23||0x1==_0x2eed23)&&0x2==_0x1c312c&&_0x4046b4['isIntersecting'](_0x2fc312))return!0x0;if(0x2==_0x2eed23&&0x3==_0x1c312c){const _0x38c1cc=_0x58c0e2['_findSuggestions'](_0x4046b4,'insertion')['filter'](({suggestion:_0x231b1e,meta:_0x421aa5})=>_0x421aa5['isOwn']&&'convertInlineImageToBlock'==_0x231b1e['subType']);if(_0x38c1cc['length']>0x1&&_0x2fc312['end']['isEqual'](_0x4046b4['start']))return!0x0;if(0x1==_0x38c1cc['length']&&(_0x4046b4['start']['isEqual'](_0x2fc312['end'])||_0x4046b4['end']['isEqual'](_0x2fc312['start'])))return!0x0;}if(0x3==_0x2eed23&&0x3==_0x1c312c&&_0x4046b4['start']['isBefore'](_0x2fc312['start'])){const _0x2e1d02=_0x4046b4['end']['nodeAfter'],_0x1fa0eb=_0x2fc312['start']['nodeBefore'];return _0x531eb7['isBlockImage'](_0x2e1d02)&&_0x2e1d02===_0x1fa0eb;}return!0x1;}function _0x114534(_0x13b214,_0x3f1e8c){return _0x1dbee2(_0x13b214,_0x3f1e8c)?[_0x13b214,_0x3f1e8c]:_0x1dbee2(_0x3f1e8c,_0x13b214)?[_0x3f1e8c,_0x13b214]:null;}_0x40e3cc['plugins']['has']('ImageResize')&&(_0x58c0e2['enableDefaultAttributesIntegration']('resizeImage'),_0x58c0e2['registerBlockAttribute']('resizedWidth'),_0x58c0e2['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x1cb87a,'FORMAT_IMAGE_SIZE'))),_0x40e3cc['plugins']['has']('ImageTextAlternativeEditing')&&(_0x58c0e2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x58c0e2['registerBlockAttribute']('alt')),_0x40e3cc['plugins']['has']('PictureEditing')&&(_0x58c0e2['registerBlockAttribute']('sources'),_0x58c0e2['descriptionFactory']['registerDescriptionCallback'](_0x3e97b0=>{if('attribute'!=_0x3e97b0['type'])return;const {data:_0x383997}=_0x3e97b0;return _0x383997&&'sources'==_0x383997['key']?{'type':'format','content':''}:void 0x0;})),_0x40e3cc['plugins']['has']('ImageSizeAttributes')&&(_0x58c0e2['registerBlockAttribute']('width'),_0x58c0e2['registerBlockAttribute']('height'),_0x58c0e2['descriptionFactory']['registerDescriptionCallback'](_0x3e49eb=>{if('attribute'!=_0x3e49eb['type'])return;const {data:_0x5af3ec}=_0x3e49eb;return!_0x5af3ec||'width'!=_0x5af3ec['key']&&'height'!=_0x5af3ec['key']?void 0x0:{'type':'format','content':''};})),_0x58c0e2['descriptionFactory']['registerDescriptionCallback'](_0x4e17db=>{if(!!_0x11135b['find'](({type:_0x5a8cc0,subType:_0x52a0fc})=>_0x4e17db['type']==_0x5a8cc0&&_0x4e17db['subType']==_0x52a0fc))return _0x4e17db['previous']?{}:void 0x0;}),_0x58c0e2['descriptionFactory']['registerDescriptionCallback'](_0x3697c0=>{if('insertion'==_0x3697c0['type']||'deletion'==_0x3697c0['type']){const _0x5b4aaf=_0x3697c0['getContainedElement']();if(_0x5b4aaf&&_0x5b4aaf['is']('element','caption'))return{'type':'insertion'==_0x3697c0['type']?'addObject':'removeObject','element':_0x5b4aaf,'quantity':0x1};}}),_0x58c0e2['descriptionFactory']['registerDescriptionCallback'](_0x342893=>'formatBlock'==_0x342893['type']&&'convertInlineImageToBlock'==_0x342893['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x342893['type']&&'convertBlockImageToInline'==_0x342893['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x58c0e2['descriptionFactory']['registerDescriptionCallback'](_0x3d071f=>{if('attribute'!=_0x3d071f['type'])return;const {data:_0x2e7e38}=_0x3d071f;if(!_0x2e7e38||'alt'!=_0x2e7e38['key'])return;const _0x25d2e2=_0x2e7e38['newValue'];return _0x25d2e2?{'type':'format','content':c(_0x1cb87a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x25d2e2+'\x22')}:{'type':'format','content':c(_0x1cb87a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6cc9dc=this['editor'],_0x41c055=_0x6cc9dc['locale'];_0x6cc9dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b4805=>{if('formatBlock'!=_0x3b4805['type']&&'formatInline'!=_0x3b4805['type'])return;const {data:_0x33ff2a}=_0x3b4805;if(_0x33ff2a){if('imageTextAlternative'==_0x33ff2a['commandName']){const _0x2f8301=_0x33ff2a['commandParams'][0x0]['newValue'];return _0x2f8301?{'type':'format','content':c(_0x41c055,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2f8301+'\x22')}:{'type':'format','content':c(_0x41c055,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x33ff2a['commandName']){const _0x26e177=_0x33ff2a['commandParams'][0x0]['width'];return _0x26e177?{'type':'format','content':c(_0x41c055,'*Set\x20image\x20width:*\x20%0',_0x26e177)}:{'type':'format','content':c(_0x41c055,'*Reset\x20image\x20width*')};}}});}}class at extends _0x450ea2{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x28acfd=this['editor']['locale'],_0x1c9589=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c9589['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1c9589['registerBlockAttribute']('src'),_0x1c9589['descriptionFactory']['registerDescriptionCallback'](_0xe29f90=>{if('attribute'!=_0xe29f90['type'])return;const {data:_0x5e4be2}=_0xe29f90;return _0x5e4be2&&'src'==_0x5e4be2['key']?_0x5e4be2['newValue']&&_0x5e4be2['oldValue']?{'type':'format','content':c(_0x28acfd,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xdb33ff=this['editor']['plugins']['get']('TrackChangesEditing');_0xdb33ff['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xdb33ff['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xdb33ff['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xdb33ff['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d7f1d=this['editor'],_0x312431=_0x1d7f1d['locale'];_0x1d7f1d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dda48=>{if('formatBlock'!=_0x3dda48['type']&&'formatInline'!=_0x3dda48['type'])return;const {data:_0x3c0e50}=_0x3dda48;if(!_0x3c0e50||'replaceImageSource'!=_0x3c0e50['commandName'])return;return{'type':'format','content':c(_0x312431,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x450ea2{['afterInit'](){const _0x25c2ab=this['editor'];if(!_0x25c2ab['plugins']['has']('ImageStyleEditing'))return;const _0x308c93=_0x25c2ab['plugins']['get']('TrackChangesEditing'),_0x50ae78=_0x25c2ab['plugins']['get']('ImageUtils'),_0x39c593={};_0x308c93['enableCommand']('imageStyle',(_0x334e0f,_0x12bb17)=>{const _0x4cbce9=_0x25c2ab['plugins']['get']('Users')['me'],_0x1da616=_0x25c2ab['commands']['get']('imageStyle');let _0x522c89=_0x50ae78['getClosestSelectedImageElement'](_0x25c2ab['model']['document']['selection']),_0x3daf87=_0x25c2ab['model']['createRangeOn'](_0x522c89),_0x3e6763=_0x1da616['value'];if(_0x3e6763==_0x12bb17['value'])return;const _0x4d2a3c={'commandName':'imageStyle','commandParams':[_0x12bb17],'formatGroupId':_0x38e031()};_0x25c2ab['model']['change'](()=>{if(_0x308c93['getSuggestions']()['filter'](_0x477ebb=>_0x477ebb['isInContent']&&_0x4cbce9==_0x477ebb['author']&&('formatBlock'==_0x477ebb['type']||'formatInline'==_0x477ebb['type'])&&('imageStylePreApply'==_0x477ebb['subType']||'imageStylePostApply'==_0x477ebb['subType'])&&_0x477ebb['getFirstRange']()['isEqual'](_0x3daf87))['forEach'](_0x55867f=>_0x308c93['discardSuggestion'](_0x55867f['head'])),_0x522c89=_0x50ae78['getClosestSelectedImageElement'](_0x25c2ab['model']['document']['selection']),_0x3daf87=_0x25c2ab['model']['createRangeOn'](_0x522c89),_0x1da616['refresh'](),_0x25c2ab['commands']['get']('imageTypeInline')['refresh'](),_0x25c2ab['commands']['get']('imageTypeBlock')['refresh'](),_0x3e6763=_0x1da616['value'],_0x3e6763!=_0x12bb17['value'])return _0x50ae78['isInlineImage'](_0x522c89)&&_0x1da616['shouldConvertImageType'](_0x12bb17['value'],_0x522c89)?(_0x334e0f({..._0x12bb17,'setImageSizes':!0x1}),_0x522c89=_0x50ae78['getClosestSelectedImageElement'](_0x25c2ab['model']['document']['selection']),void _0x308c93['markBlockFormat'](_0x522c89,{..._0x4d2a3c,'commandReversedParams':[{'value':_0x3e6763||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x50ae78['isBlockImage'](_0x522c89)?_0x308c93['markBlockFormat'](_0x522c89,_0x4d2a3c,[],'imageStylePostApply'):_0x308c93['markInlineFormat'](_0x3daf87,_0x4d2a3c,'imageStylePostApply'));});});for(const _0x4869af of _0x25c2ab['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x39c593[_0x4869af['name']]=_0x4869af['title']['toLowerCase']();_0x308c93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x308c93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x308c93['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x308c93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4e3f29])=>{_0x50ae78['setImageNaturalSizeAttributes'](_0x4e3f29['getContainedElement']());}),_0x308c93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3eb14f,_0x314ce8)=>{_0x308c93['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3eb14f,{'commandName':_0x314ce8['commandName'],'commandParams':_0x314ce8['commandReversedParams']});}),_0x308c93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x129cb7,_0x5c3019){if(_0x3ca432(_0x129cb7,_0x5c3019))return[_0x129cb7,_0x5c3019];if(_0x3ca432(_0x5c3019,_0x129cb7))return[_0x5c3019,_0x129cb7];return null;});const _0x3138e7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3ca432(_0x5bb536,_0x479f31){const _0x46f7d6=_0x3138e7['findIndex'](({type:_0x2abd93,subType:_0x3dcf6e})=>_0x5bb536['type']==_0x2abd93&&_0x5bb536['subType']==_0x3dcf6e),_0x58ef20=_0x3138e7['findIndex'](({type:_0x5279d4,subType:_0x36c0fd})=>_0x479f31['type']==_0x5279d4&&_0x479f31['subType']==_0x36c0fd);if(_0x46f7d6<0x0||_0x58ef20<0x0)return!0x1;const _0x438936=_0x5bb536['getFirstRange'](),_0x29bb5e=_0x479f31['getFirstRange']();if((0x0==_0x46f7d6||0x1==_0x46f7d6)&&0x2==_0x58ef20&&_0x438936['isIntersecting'](_0x29bb5e))return!0x0;if(0x2==_0x46f7d6&&0x3==_0x58ef20){const _0x3c360d=_0x308c93['_findSuggestions'](_0x438936,'insertion')['filter'](({suggestion:_0x17f1e9,meta:_0x462834})=>_0x462834['isOwn']&&'convertInlineImageToBlock'==_0x17f1e9['subType']);if(_0x3c360d['length']>0x1&&_0x29bb5e['end']['isEqual'](_0x438936['start']))return!0x0;if(0x1==_0x3c360d['length']&&(_0x438936['start']['isEqual'](_0x29bb5e['end'])||_0x438936['end']['isEqual'](_0x29bb5e['start'])))return!0x0;}if(0x3==_0x46f7d6&&0x3==_0x58ef20&&_0x438936['start']['isBefore'](_0x29bb5e['start'])){const _0x1ba51c=_0x438936['end']['nodeAfter'],_0x15bb6f=_0x29bb5e['start']['nodeBefore'];return _0x50ae78['isBlockImage'](_0x1ba51c)&&_0x1ba51c===_0x15bb6f;}return!0x1;}_0x25c2ab['model']['document']['registerPostFixer'](()=>{let _0xa74bad=!0x1;const _0x50e918=Array['from'](_0x25c2ab['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23c995,data:_0x5ddb1f}of _0x50e918){const {group:_0x7df9b9,type:_0x100ff9,subType:_0xcea1a9,id:_0x2da52f}=_0x308c93['_splitMarkerName'](_0x23c995);if('suggestion'==_0x7df9b9&&_0x308c93['hasSuggestion'](_0x2da52f)){if('formatBlock'==_0x100ff9&&('imageStylePreApply'==_0xcea1a9||'imageStylePostApply'==_0xcea1a9)){const _0x3bee9b=_0x308c93['getSuggestion'](_0x2da52f);if(_0x5ddb1f['newRange']){const _0xb5af9a=_0x3bee9b['getFirstRange']()['getContainedElement']();if(_0x50ae78['isBlockImage'](_0xb5af9a))continue;_0x308c93['discardSuggestion'](_0x3bee9b),_0xa74bad=!0x0;}}if('insertion'==_0x100ff9&&'imageCaption'==_0xcea1a9&&!_0x5ddb1f['newRange']){const _0x479c08=_0x308c93['getSuggestion'](_0x2da52f);_0x479c08['next']&&_0x479c08['next']['isInContent']&&(_0x308c93['discardSuggestion'](_0x479c08['next']),_0xa74bad=!0x0);}}}return _0xa74bad;}),this['_registerLegacyDescription'](_0x39c593);}['_registerLegacyDescription'](_0x646932){const _0x3e1181=this['editor'],_0x531071=_0x3e1181['locale'];_0x3e1181['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9ed246=>{if('formatBlock'!=_0x9ed246['type']&&'formatInline'!=_0x9ed246['type'])return;const {data:_0x17da64}=_0x9ed246;if(!_0x17da64||'imageStyle'!=_0x17da64['commandName'])return;const _0x524c28=_0x17da64['commandParams'][0x0]['value'];return _0x1daffd('side'===_0x524c28?c(_0x531071,'FORMAT_SIDE_IMAGE'):_0x646932[_0x524c28]||_0x524c28);function _0x1daffd(_0x19dcc1){return{'type':'format','content':c(_0x531071,'*Format:*\x20%0',_0x19dcc1)};}});}}class ut extends _0x450ea2{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x191ed2){super(_0x191ed2),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x26b6f9=this['editor'],_0x33bffa=_0x26b6f9['commands']['get']('importWord'),_0x336f1e=_0x26b6f9['commands']['get']('trackChanges');_0x33bffa&&(_0x33bffa['on']('execute',(_0x1f92a8,[,_0x11609b])=>{this['_trackChangesValueDuringImport']=_0x336f1e['value'],_0x11609b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x33bffa,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x33bffa,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x336f1e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x26b6f9['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x41ec3d,_0x9d6458){const {suggestions:_0x913bdb}=_0x9d6458,_0x3d36af=this['editor']['commands']['get']('trackChanges'),_0x22710d=_0x3d36af['value'];this['_trackChangesValueDuringImport']!==_0x22710d&&(_0x3d36af['execute'](),this['_trackChangesExecuted']=!0x0),_0x913bdb&&_0x913bdb['forEach'](({id:_0x34d07c,type:_0x843bc4,author:_0x3a3c09,created_at:_0x355ec4})=>{const _0x50f291={'id':_0x34d07c,'type':_0x843bc4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3a3c09,'createdAt':_0x355ec4?new Date(_0x355ec4):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x50f291);});}}class ft extends _0x450ea2{['afterInit'](){const _0x16aef6=this['editor'],_0x3162fc=_0x16aef6['plugins']['get']('TrackChangesEditing');if(_0x16aef6['plugins']['has']('IndentEditing')&&(_0x3162fc['enableCommand']('indent'),_0x3162fc['enableCommand']('outdent')),_0x16aef6['plugins']['has']('IndentBlock')){for(const _0x2b1c26 of['indentBlock','outdentBlock'])_0x3162fc['enableDefaultAttributesIntegration'](_0x2b1c26);}const _0x520dcb=_0x16aef6['locale'];_0x3162fc['registerBlockAttribute']('blockIndent'),_0x3162fc['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x520dcb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cd6e0=this['editor'],_0x5c0bd3=_0x4cd6e0['locale'],_0xc558ec=_0x4cd6e0['plugins']['get']('TrackChangesEditing');_0xc558ec['descriptionFactory']['registerDescriptionCallback'](_0x18ce3f=>{if('formatBlock'!=_0x18ce3f['type'])return;const {data:_0x18d7c4}=_0x18ce3f;if(!_0x18d7c4)return;if('indentBlock'!=_0x18d7c4['commandName']&&'outdentBlock'!=_0x18d7c4['commandName'])return;const _0x3e1e88=_0x18ce3f['getItems']()[0x0],_0x2f1946=_0xc558ec['descriptionFactory']['getItemLabel'](_0x3e1e88);return'indentBlock'==_0x18d7c4['commandName']?{'type':'format','content':c(_0x5c0bd3,'*Indent:*\x20%0',_0x2f1946)}:'outdentBlock'==_0x18d7c4['commandName']?{'type':'format','content':c(_0x5c0bd3,'*Outdent:*\x20%0',_0x2f1946)}:void 0x0;});}}class ht extends _0x450ea2{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x450ea2{['afterInit'](){const _0x5152d3=this['editor'];if(!_0x5152d3['plugins']['has']('LinkEditing'))return;const _0x28f640=_0x5152d3['plugins']['get']('TrackChangesEditing'),_0x2d4bae=_0x5152d3['commands']['get']('link');_0x28f640['enableDefaultAttributesIntegration']('link'),_0x28f640['enableDefaultAttributesIntegration']('unlink'),_0x28f640['registerInlineAttribute']('linkHref');for(const _0x4e478a of _0x2d4bae['manualDecorators'])_0x28f640['registerInlineAttribute'](_0x4e478a['id']),_0x28f640['descriptionFactory']['registerAttributeLabel'](_0x4e478a['id'],'link\x20('+_0x4e478a['label']['toLowerCase']()+')');_0x28f640['descriptionFactory']['registerDescriptionCallback'](_0x116434=>{if('attribute'!=_0x116434['type'])return;const {data:_0x1fc701}=_0x116434;if(!_0x1fc701||'linkHref'!=_0x1fc701['key'])return;const _0x3f7708=_0x1fc701['newValue'],_0x145980=_0x5152d3['locale'];return{'type':'format','content':null==_0x3f7708?c(_0x145980,'*Remove\x20link*'):c(_0x145980,'*Set\x20link:*\x20%0','\x22'+_0x3f7708+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e671c=this['editor'],_0x15e856=_0x5e671c['locale'];_0x5e671c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52d4a4=>{if('formatInline'!=_0x52d4a4['type'])return;const {data:_0x1dadd5}=_0x52d4a4;if(_0x1dadd5){if('link'==_0x1dadd5['commandName']){const _0x59c7ae=_0x1dadd5['commandParams'][0x0];return{'type':'format','content':c(_0x15e856,'*Set\x20link:*\x20%0','\x22'+_0x59c7ae+'\x22')};}return'unlink'==_0x1dadd5['commandName']?{'type':'format','content':c(_0x15e856,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x450ea2{['afterInit'](){const _0x6a12dc=this['editor'],_0x270b9d=_0x6a12dc['locale'];if(!_0x6a12dc['plugins']['has']('LegacyListEditing'))return;const _0x287032=_0x6a12dc['plugins']['get']('TrackChangesEditing'),_0x5ebcf2=_0x6a12dc['plugins']['has']('LegacyTodoListEditing');function _0x118cc0(_0xf59b6a){return()=>{const _0x3fe485=_0x6a12dc['model']['document']['selection'],_0x4ffd60=_0x6a12dc['commands']['get'](_0xf59b6a);if(_0x4ffd60['value'])return void _0x6a12dc['execute']('paragraph',{});const _0x25bdeb=_0xf59b6a['slice'](0x0,-0x4),_0x20ca12=function(_0x1fb706,_0xdec446,_0x264975){let _0x2a8a52=Array['from'](_0x1fb706)['filter'](_0x8eee9a=>function(_0x3d2bd5,_0x596697){return _0x596697['checkChild'](_0x3d2bd5['parent'],'listItem')&&!_0x596697['isObject'](_0x3d2bd5);}(_0x8eee9a,_0x264975));_0x2a8a52=_0x2a8a52['filter'](_0x9674e4=>!_0x9674e4['is']('element','listItem')||_0x9674e4['getAttribute']('listType')!=_0xdec446);const _0x22910a=new Set();for(const _0x3cdaf2 of _0x2a8a52)_0x3cdaf2['is']('element','listItem')?_0x22910a['add'](Le(_0x3cdaf2)):_0x22910a['add'](_0x3cdaf2);return Array['from'](_0x22910a);}(_0x3fe485['getSelectedBlocks'](),_0x25bdeb,_0x6a12dc['model']['schema']);_0x6a12dc['model']['change'](()=>{for(const _0xec93ed of _0x20ca12)_0x287032['markBlockFormat'](_0xec93ed,{'commandName':_0xf59b6a,'commandParams':[{'forceValue':!_0x4ffd60['value']}],'formatGroupId':'blockName'},Ee(_0xec93ed));});};}function _0xed9cc2(_0x43ea95){return()=>{const _0x42f548=function(_0x37ec81){let _0x1a9a64=Array['from'](_0x37ec81);const _0xf6cacd=_0x1a9a64['findIndex'](_0x4da141=>'listItem'!=_0x4da141['name']);return _0xf6cacd>-0x1&&(_0x1a9a64=_0x1a9a64['slice'](0x0,_0xf6cacd)),_0x1a9a64;}(_0x6a12dc['model']['document']['selection']['getSelectedBlocks']()),_0x5ec363=_0x6a12dc['model']['createRange'](_0x6a12dc['model']['createPositionAt'](_0x42f548[0x0],'before'),_0x6a12dc['model']['createPositionAt'](_0x42f548[_0x42f548['length']-0x1],'end'));_0x6a12dc['model']['change'](()=>{_0x287032['markBlockFormat'](_0x5ec363,{'commandName':_0x43ea95,'commandParams':[],'formatGroupId':'listIndent'},function(_0x25e0c6){const _0x51313a=new Set();for(const _0x875823 of _0x25e0c6){let _0x47c511=_0x875823['nextSibling'];for(;_0x47c511&&_0x47c511['getAttribute']('listIndent')>_0x875823['getAttribute']('listIndent');)_0x51313a['add'](_0x47c511),_0x47c511=_0x47c511['nextSibling'];}return Array['from'](_0x51313a);}(_0x42f548));});};}_0x287032['enableCommand']('numberedList',_0x118cc0('numberedList')),_0x287032['enableCommand']('bulletedList',_0x118cc0('bulletedList')),_0x5ebcf2&&_0x287032['enableCommand']('todoList',_0x118cc0('todoList')),_0x287032['enableCommand']('indentList',_0xed9cc2('indentList')),_0x287032['enableCommand']('outdentList',_0xed9cc2('outdentList')),_0x5ebcf2&&_0x287032['enableCommand']('checkTodoList',()=>{const _0x4877d8=_0x6a12dc['commands']['get']('checkTodoList'),_0x37e527=Array['from'](_0x4877d8['_selectedElements']);_0x37e527['filter'](_0x45dbe0=>_0x45dbe0['getAttribute']('todoListChecked')!=_0x4877d8['value']),_0x6a12dc['model']['change'](()=>{for(const _0xec37a8 of _0x37e527)_0x287032['markBlockFormat'](_0xec37a8,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4877d8['value']}]});});}),_0x287032['descriptionFactory']['registerElementLabel']('listItem',_0x4e7495=>c(_0x270b9d,'ELEMENT_LIST_ITEM',_0x4e7495)),_0x287032['descriptionFactory']['registerDescriptionCallback'](_0x29a711=>{if('formatBlock'!=_0x29a711['type']&&'formatInline'!=_0x29a711['type'])return;const {data:_0x10e31f}=_0x29a711;if(_0x10e31f){if('numberedList'==_0x10e31f['commandName']||'bulletedList'==_0x10e31f['commandName']||'todoList'==_0x10e31f['commandName'])switch(_0x10e31f['commandName']['replace']('List','')){case'bulleted':return _0x287408(c(_0x270b9d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x287408(c(_0x270b9d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x287408(c(_0x270b9d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x10e31f['commandName'])return{'type':'format','content':c(_0x270b9d,'*Indent:*\x20%0',c(_0x270b9d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x10e31f['commandName'])return{'type':'format','content':c(_0x270b9d,'*Outdent:*\x20%0',c(_0x270b9d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x10e31f['commandName'])return _0x10e31f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x270b9d,'*Check\x20item*')}:{'type':'format','content':c(_0x270b9d,'*Uncheck\x20item*')};}function _0x287408(_0x308285){return{'type':'format','content':c(_0x270b9d,'*Change\x20to:*\x20%0',_0x308285)};}});}}function Le(_0x25fb08){const _0x348dd2=_0x25fb08['getAttribute']('listIndent');if(0x0==_0x348dd2)return _0x25fb08;let _0x179ef0=_0x25fb08;for(;_0x25fb08['previousSibling']&&_0x25fb08['previousSibling']['is']('element','listItem');){const _0x20c059=_0x25fb08['previousSibling']['getAttribute']('listIndent');if(_0x20c059==_0x348dd2)_0x179ef0=_0x25fb08['previousSibling'];else{if(_0x20c059<_0x348dd2)break;}_0x25fb08=_0x25fb08['previousSibling'];}return _0x179ef0;}function Ee(_0x195020){const _0x9d8bfe=[];if(_0x195020['is']('element','listItem')&&_0x195020['getAttribute']('listIndent')>0x0){let _0x4456e5=_0x195020['nextSibling'];for(;_0x4456e5&&'listItem'==_0x4456e5['name']&&_0x4456e5['getAttribute']('listIndent')==_0x195020['getAttribute']('listIndent');)_0x9d8bfe['push'](_0x4456e5),_0x4456e5=_0x4456e5['nextSibling'];}return _0x9d8bfe;}class Q extends _0x450ea2{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x27f3ef=this['editor']['config']['get']('list.properties'),_0x394ef1=this['editor']['plugins']['get']('TrackChangesEditing');_0x27f3ef['styles']&&_0x394ef1['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x27f3ef['reversed']&&_0x394ef1['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x27f3ef['startIndex']&&_0x394ef1['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x394ef1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x511653,_0x41cb4f={}){const _0x53237c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33be5e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x53237c['markMultiRangeBlockFormat'](_0x33be5e,{'commandName':'listStyle','commandParams':[{'type':_0x41cb4f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1d20d3,_0x3b2c41={}){const _0x5bf1ff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58062f=this['_getSuggestionBlocks'](_0x47a3b6=>_0x47a3b6['is']('element','listItem')&&'numbered'===_0x47a3b6['getAttribute']('listType'));if(_0x58062f['length']<0x1)return;const _0x1f7d77=_0x58062f['map'](_0x4d8e25=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4d8e25,'before'),this['editor']['model']['createPositionAt'](_0x4d8e25,0x0)));this['editor']['model']['change'](()=>{_0x5bf1ff['markMultiRangeBlockFormat'](_0x1f7d77,{'commandName':'listReversed','commandParams':[{'reversed':_0x3b2c41['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x360871,_0x1a11ee={}){const _0x26b81b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26702f=this['_getSuggestionBlocks'](_0x182ca1=>_0x182ca1['is']('element','listItem')&&'numbered'===_0x182ca1['getAttribute']('listType'));if(_0x26702f['length']<0x1)return;const _0x48a1bb=_0x26702f['map'](_0x3a7e9a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a7e9a,'before'),this['editor']['model']['createPositionAt'](_0x3a7e9a,0x0)));this['editor']['model']['change'](()=>{_0x26b81b['markMultiRangeBlockFormat'](_0x48a1bb,{'commandName':'listStart','commandParams':[{'startIndex':_0x1a11ee['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x885058){if('formatBlock'!=_0x885058['type']&&'formatInline'!=_0x885058['type'])return;const _0x5d6c0f=this['editor']['locale'],{data:_0x50199b}=_0x885058;if(!_0x50199b)return;let _0x1314c8,_0x575a07;switch(_0x50199b['commandName']){case'listStyle':_0x1314c8='*Change\x20to:*\x20%0',_0x575a07={'type':'format','content':c(_0x5d6c0f,_0x1314c8,c(_0x5d6c0f,this['_getTranslationKeyForListStyle'](_0x50199b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1314c8=_0x50199b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x575a07={'type':'format','content':c(_0x5d6c0f,_0x1314c8)};break;case'listStart':_0x1314c8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x575a07={'type':'format','content':c(_0x5d6c0f,_0x1314c8,_0x50199b['commandParams'][0x0]['startIndex'])};}return _0x575a07;}['_getSuggestionBlocksForListStyle'](){const _0x335592=this['editor']['plugins']['get']('LegacyListUtils');let _0x5084ab=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5084ab[0x0]?.['is']('element','listItem')&&_0x5084ab['unshift'](..._0x335592['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5084ab[_0x5084ab['length']-0x1]?.['is']('element','listItem')&&_0x5084ab['push'](..._0x335592['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5084ab=[...new Set(_0x5084ab)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5084ab=_0x5084ab['filter'](_0xff630f=>_0xff630f['is']('element','listItem'))),_0x5084ab;}['_getSuggestionBlocks'](_0x5f2df7){const _0x4a68a2=this['editor']['plugins']['get']('LegacyListUtils');let _0x392935=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5f2df7)['map'](_0x4e525d=>{const _0x422f5c=this['editor']['model']['createPositionAt'](_0x4e525d,0x0);return[..._0x4a68a2['getSiblingNodes'](_0x422f5c,'backward'),..._0x4a68a2['getSiblingNodes'](_0x422f5c,'forward')];})['flat']();return _0x392935=[...new Set(_0x392935)],_0x392935;}['_getTranslationKeyForListStyle'](_0x463a30){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x463a30)||'default')['toUpperCase']()+'_LIST_'+_0x463a30['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x450ea2{['afterInit'](){const _0x1d99cb=this['editor'];if(!_0x1d99cb['plugins']['has']('MediaEmbedEditing'))return;const _0x2c4a12=_0x1d99cb['plugins']['get']('TrackChangesEditing'),_0x5e0736=_0x1d99cb['locale'];_0x2c4a12['enableCommand']('mediaEmbed'),_0x2c4a12['descriptionFactory']['registerElementLabel']('media',_0x29727c=>c(_0x5e0736,'ELEMENT_MEDIA',_0x29727c)),_0x1d99cb['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x488a64,{writer:_0x5276dd,options:_0x490e14})=>{if(_0x490e14['showSuggestionHighlights'])return _0x5276dd['createEmptyElement']('div');},'converterPriority':'high'}),_0x1d99cb['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4cae7b,_0x52e6d8,_0x57b299)=>{_0x57b299['options']['showSuggestionHighlights']&&_0x4cae7b['stop']();},{'priority':'high'});}}class pt extends _0x450ea2{['afterInit'](){const _0xa576fb=this['editor'];_0xa576fb['plugins']['has']('MentionEditing')&&_0xa576fb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x450ea2{['afterInit'](){const _0x5cb235=this['editor'];if(!_0x5cb235['plugins']['has']('MergeFieldsEditing'))return;const _0x3caa1c=_0x5cb235['plugins']['get']('TrackChangesEditing'),_0x1e9f3b=_0x5cb235['locale'];_0x3caa1c['enableCommand']('insertMergeField'),_0x3caa1c['enableCommand']('insertMergeFieldBlock'),_0x3caa1c['enableCommand']('insertMergeFieldImage'),_0x3caa1c['descriptionFactory']['registerElementLabel']('mergeField',_0x1c1130=>c(_0x1e9f3b,'ELEMENT_MERGE_FIELD',_0x1c1130)),_0x3caa1c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x515d5b=>c(_0x1e9f3b,'ELEMENT_MERGE_FIELD',_0x515d5b)),_0x3caa1c['descriptionFactory']['registerDescriptionCallback'](_0x521d04=>{if('insertion'!=_0x521d04['type']&&'deletion'!=_0x521d04['type'])return;const _0x4b019e=_0x521d04['getContainedElement']();if(null==_0x4b019e)return;const _0xb12410=_0x5cb235['plugins']['get']('MergeFieldsEditing');let _0x5c885f;switch(_0xb12410['getMergeFieldType'](_0x4b019e)){case null:return;case'image':{const _0x55c9c7=_0xb12410['unwrapAffixes'](_0x4b019e['getAttribute']('src'));_0x5c885f=_0xb12410['getLabel'](_0x55c9c7)||_0x55c9c7;break;}default:{const _0x54579c=_0x4b019e['getAttribute']('id');_0x5c885f=_0xb12410['getLabel'](_0x54579c)||_0x54579c;break;}}return'insertion'==_0x521d04['type']?{'type':'insertion','content':c(_0x1e9f3b,'*Insert:*\x20%0','\x22'+_0x5c885f+'\x22\x20'+c(_0x1e9f3b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x1e9f3b,'*Remove:*\x20%0','\x22'+_0x5c885f+'\x22\x20'+c(_0x1e9f3b,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x450ea2{['afterInit'](){const _0x25b1ea=this['editor'],_0x560370=_0x25b1ea['plugins']['get']('TrackChangesEditing');_0x25b1ea['plugins']['has']('MultiLevelList')&&(_0x560370['enableDefaultAttributesIntegration']('multiLevelList'),_0x560370['registerBlockAttribute']('listMarkerStyle'),_0x560370['descriptionFactory']['registerDescriptionCallback'](_0x4526ec=>this['handleDescriptions'](_0x4526ec)));}['handleDescriptions'](_0x4f8224){const _0x3de414=this['editor']['locale'],{data:_0x43a854}=_0x4f8224,_0x105dbe={'type':'format','content':''};if(_0x43a854&&'listMarkerStyle'==_0x43a854['key']){if(!_0x43a854['oldValue'])return{'type':'format','content':c(_0x3de414,'*Set\x20format:*\x20%0',c(_0x3de414,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x43a854['newValue']+')'};if(!_0x43a854['newValue']){let _0x3ce38b=_0x4f8224['head'];for(;_0x3ce38b;){if(_0x3ce38b['data']&&'listType'==_0x3ce38b['data']['key']&&_0x3ce38b['data']['newValue'])return _0x105dbe;_0x3ce38b=_0x3ce38b['next'];}return{'type':'format','content':c(_0x3de414,'*Remove\x20format:*\x20%0',c(_0x3de414,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x43a854['oldValue']+')'};}}}}class bt extends _0x450ea2{['afterInit'](){const _0xb72703=this['editor'];if(!_0xb72703['plugins']['has']('PageBreakEditing'))return;_0xb72703['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x344cfc=_0xb72703['plugins']['get']('TrackChangesEditing'),_0x285d21=_0xb72703['locale'];_0x344cfc['descriptionFactory']['registerElementLabel']('pageBreak',_0x2bcb7b=>c(_0x285d21,'ELEMENT_PAGE_BREAK',_0x2bcb7b));}}class yt extends _0x450ea2{['afterInit'](){const _0x7240d=this['editor'];if(!_0x7240d['plugins']['has']('Paragraph'))return;const _0x213f64=_0x7240d['locale'],_0x178fa6=_0x7240d['plugins']['get']('TrackChangesEditing');_0x178fa6['descriptionFactory']['registerElementLabel']('paragraph',_0xd6e68e=>c(_0x213f64,'ELEMENT_PARAGRAPH',_0xd6e68e)),_0x178fa6['enableDefaultAttributesIntegration']('paragraph'),_0x178fa6['enableCommand']('insertParagraph'),_0x7240d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x7240d),{'priority':'highest'}),_0x7240d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x13ce30,_0x4a6ad4,_0x4a614d)=>{_0x4a614d['options']['showSuggestionHighlights']&&nr(_0x7240d,{'showActiveMarker':!0x1})(_0x13ce30,_0x4a6ad4,_0x4a614d);},{'priority':'highest'});const _0x10dc1a=_0x178fa6['descriptionFactory'];_0x10dc1a['registerDescriptionCallback'](_0x461762=>{if('insertion'!==_0x461762['type'])return;const {start:_0x4d5212,end:_0x302d0a}=_0x461762['getFirstRange']();if(!_0x4d5212['isTouching'](_0x302d0a)||!_0x4d5212['nodeAfter'])return;const _0x3c042d=_0x7240d['model']['schema'],_0x2412fd=_0x4d5212['nodeAfter'];return _0x3c042d['isBlock'](_0x2412fd)&&!_0x3c042d['isLimit'](_0x2412fd)&&_0x3c042d['checkChild'](_0x2412fd,'$text')?{'type':'insertion','content':c(_0x213f64,'*Insert:*\x20%0',_0x10dc1a['getItemLabel'](_0x2412fd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3305f1=this['editor'],_0x3b3ee6=_0x3305f1['locale'];_0x3305f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29f70=>{if('formatBlock'!=_0x29f70['type'])return;const {data:_0x77b599}=_0x29f70;return _0x77b599&&'paragraph'==_0x77b599['commandName']?{'type':'format','content':c(_0x3b3ee6,'*Change\x20to:*\x20%0',c(_0x3b3ee6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x26c317,{showActiveMarker:_0x224a69=!0x0}={}){return(_0x1676bf,_0x4d3418,_0x3f11af)=>{const _0x3ca696=_0x26c317['plugins']['get']('TrackChangesEditing'),_0x463e32=_0x4d3418['markerRange']['start'],_0x37e752=_0x4d3418['markerRange']['end'],_0x506b92=_0x26c317['model']['schema'];if(!_0x463e32['isTouching'](_0x37e752)||!_0x463e32['nodeAfter'])return;const _0x3b280b=_0x463e32['nodeAfter'];if(_0x506b92['isBlock'](_0x3b280b)&&!_0x506b92['isLimit'](_0x3b280b)&&_0x506b92['checkChild'](_0x3b280b,'$text')){if(!_0x3f11af['consumable']['consume'](_0x4d3418['markerRange'],_0x1676bf['name']))return;const {authorId:_0x52c491}=_0x3ca696['_splitMarkerName'](_0x4d3418['markerName']),_0x2f1505=_0x3f11af['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x52c491}),_0x5dd346=_0x3f11af['mapper']['toViewPosition'](_0x37e752);_0x224a69&&_0x3ca696['activeMarkers']['includes'](_0x4d3418['markerName'])&&_0x3f11af['writer']['addClass']('ck-suggestion-marker--active',_0x2f1505),_0x3f11af['writer']['insert'](_0x5dd346,_0x2f1505),_0x3f11af['mapper']['bindElementToMarker'](_0x2f1505,_0x4d3418['markerName']);}};}class jt extends _0x450ea2{['afterInit'](){const _0x4ff8b6=this['editor'];_0x4ff8b6['commands']['get']('replaceSource')&&_0x4ff8b6['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x450ea2{['afterInit'](){const _0x466172=this['editor'];if(!_0x466172['plugins']['has']('RemoveFormatEditing'))return;_0x466172['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43f6de=this['editor'];_0x43f6de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x173643=>{if('formatBlock'!=_0x173643['type']&&'formatInline'!=_0x173643['type'])return;const {data:_0x5e3f74}=_0x173643;return _0x5e3f74&&'removeFormat'==_0x5e3f74['commandName']?{'type':'format','content':c(_0x43f6de['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x450ea2{['afterInit'](){const _0x189938=this['editor'];if(!_0x189938['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x22fede=_0x189938['plugins']['get']('TrackChangesEditing');_0x22fede['enableCommand']('goToPreviousRestrictedEditingException'),_0x22fede['enableCommand']('goToNextRestrictedEditingException');const _0x461d1d=_0x189938['plugins']['get']('RestrictedEditingModeEditing');_0x461d1d['enableCommand']('trackChanges'),_0x461d1d['enableCommand']('acceptSuggestion'),_0x461d1d['enableCommand']('discardSuggestion'),_0x461d1d['enableCommand']('acceptAllSuggestions'),_0x461d1d['enableCommand']('discardAllSuggestions'),_0x461d1d['enableCommand']('acceptSelectedSuggestions'),_0x461d1d['enableCommand']('discardSelectedSuggestions');}}class It extends _0x450ea2{static get['requires'](){return[_0x31a256];}['init'](){const _0x43ca1f=this['editor'],_0x5aa63e=_0x43ca1f['plugins']['get']('TrackChangesEditing');_0x5aa63e['enableCommand']('shiftEnter'),_0x43ca1f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x43ca1f),{'priority':'high'}),_0x43ca1f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x43ca1f),{'priority':'high'}),_0x43ca1f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x561b74,_0xc968f7,_0x40477d)=>{_0x40477d['options']['showSuggestionHighlights']&&je(_0x43ca1f,{'showActiveMarker':!0x1})(_0x561b74,_0xc968f7,_0x40477d);}),_0x5aa63e['descriptionFactory']['registerElementLabel']('softBreak',_0x32f0b7=>c(_0x43ca1f['locale'],'ELEMENT_LINE_BREAK',_0x32f0b7));}}function je(_0x56b857,{showActiveMarker:_0x412153=!0x0}={}){return(_0x219b96,_0x5170e0,_0x360378)=>{const _0x16cbc6=_0x56b857['plugins']['get']('TrackChangesEditing');if(!_0x360378['consumable']['test'](_0x5170e0['markerRange'],_0x219b96['name']))return;const _0x2b6537=_0x56b857['model'];for(const _0x2087ed of _0x5170e0['markerRange']['getItems']()){if(!_0x2087ed['is']('element','softBreak'))continue;const _0x5e8139='deletion'==_0x5170e0['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1c4b3e}=_0x16cbc6['_splitMarkerName'](_0x5170e0['markerName']),_0x3eb04b=_0x360378['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5e8139,'data-author-id':_0x1c4b3e}),_0x359412=_0x360378['mapper']['toViewPosition'](_0x2b6537['createPositionBefore'](_0x2087ed));_0x412153&&_0x16cbc6['activeMarkers']['includes'](_0x5170e0['markerName'])&&_0x360378['writer']['addClass']('ck-suggestion-marker--active',_0x3eb04b),_0x360378['writer']['insert'](_0x359412,_0x3eb04b),_0x360378['mapper']['bindElementToMarker'](_0x3eb04b,_0x5170e0['markerName']);}};}class _t extends _0x450ea2{['afterInit'](){const _0x240e19=this['editor'],_0x391b2f=_0x240e19['model'],_0x2262a8=_0x240e19['locale'];if(!_0x240e19['plugins']['has']('StandardEditingModeEditing'))return;const _0x267325=_0x240e19['plugins']['get']('TrackChangesEditing'),_0x316b49='restrictedEditingException',_0x383c9b=_0x240e19['commands']['get'](_0x316b49);_0x267325['enableCommand'](_0x316b49,(_0xf14d30,_0x4242fc={})=>{const _0x413bd3=_0x391b2f['document']['selection'];if(_0x413bd3['isCollapsed'])return void _0xf14d30(_0x4242fc);const _0x513798=void 0x0!==_0x4242fc['forceValue']?_0x4242fc['forceValue']:!_0x383c9b['value'];_0x391b2f['change'](()=>{const _0xb660e0=Array['from'](_0x413bd3['getRanges']());for(const _0x43fe3d of _0xb660e0){const _0x438b22=_0x513798?[_0x43fe3d]:io(_0x316b49,_0x43fe3d,_0x391b2f);for(const _0x3f6714 of _0x438b22)_0x267325['markInlineFormat'](_0x3f6714,{'commandName':_0x316b49,'commandParams':[{'forceValue':_0x513798}]});}});}),_0x267325['descriptionFactory']['registerDescriptionCallback'](_0x2c50e5=>{if('formatBlock'!=_0x2c50e5['type']&&'formatInline'!=_0x2c50e5['type'])return;const {data:_0x240f1d}=_0x2c50e5;return _0x240f1d&&_0x240f1d['commandName']==_0x316b49?_0x240f1d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2262a8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x2262a8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x450ea2{['afterInit'](){const _0x47a1c4=this['editor'];if(!_0x47a1c4['plugins']['has']('Style')||!_0x47a1c4['plugins']['has']('DataSchema'))return;const _0x4fe96d=_0x47a1c4['plugins']['get']('TrackChangesEditing'),_0x34db42=_0x47a1c4['locale'],_0x389e93=_0x47a1c4['config']['get']('style')||{},_0x54da3c=_0x47a1c4['plugins']['get']('GeneralHtmlSupport'),_0x5bea96=_0x47a1c4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x47a1c4['plugins']['get']('DataSchema'),_0x389e93['definitions']);_0x4fe96d['enableDefaultAttributesIntegration']('style');const _0x5b5f5f=new Set();for(const _0x3c7cf5 of _0x5bea96['block']){const _0x302940=_0x54da3c['getGhsAttributeNameForElement'](_0x3c7cf5['element']);_0x5b5f5f['add'](_0x302940);}const _0x19538b=new Set();for(const _0x30b489 of _0x5bea96['inline']){const _0x4317b0=_0x54da3c['getGhsAttributeNameForElement'](_0x30b489['element']);_0x19538b['add'](_0x4317b0);for(const _0x1f0903 of _0x30b489['ghsAttributes'])_0x19538b['add'](_0x1f0903);}for(const _0x10217e of _0x5b5f5f)_0x4fe96d['registerBlockAttribute'](_0x10217e),_0x4fe96d['descriptionFactory']['registerAttributeLabel'](_0x10217e,c(_0x34db42,'FORMAT_STYLE'));for(const _0xce1671 of _0x19538b)_0x4fe96d['registerInlineAttribute'](_0xce1671),_0x4fe96d['descriptionFactory']['registerAttributeLabel'](_0xce1671,c(_0x34db42,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x105c07=this['editor'],_0x32fa81=_0x105c07['locale'];_0x105c07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x169fba=>{if('formatBlock'!=_0x169fba['type']&&'formatInline'!=_0x169fba['type'])return;const {data:_0x1f2b95}=_0x169fba;return _0x1f2b95&&'style'===_0x1f2b95['commandName']?_0x1f2b95['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x32fa81,'*Set\x20format:*\x20%0',_0x1f2b95['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x32fa81,'*Remove\x20format:*\x20%0',_0x1f2b95['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x450ea2{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x27b3b4){super(_0x27b3b4),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1ddd96=this['editor'],_0x27fb78=_0x1ddd96['model']['document']['selection'];if(!_0x1ddd96['plugins']['has']('TableEditing'))return;const _0x232a59=_0x1ddd96['locale'],_0x1b1226=_0x1ddd96['plugins']['get']('TrackChangesEditing'),_0x5b7798=_0x1ddd96['plugins']['get']('TableUtils');_0x1b1226['descriptionFactory']['registerElementLabel']('table',_0x2ad875=>c(_0x232a59,'ELEMENT_TABLE',_0x2ad875)),this['_setupColumnsRowsFixing'](),_0x1b1226['enableCommand']('insertTable'),_0x1b1226['enableCommand']('selectTableRow'),_0x1b1226['enableCommand']('selectTableColumn');for(const _0x3706f7 of['insertTableRowAbove','insertTableRowBelow']){const _0x5698d4=_0x1ddd96['commands']['get'](_0x3706f7);_0x1b1226['enableCommand'](_0x3706f7,_0x265599=>{_0x1ddd96['model']['change'](_0x3d4c4d=>{_0x265599();const _0xc5b54='above'===_0x5698d4['order'],_0x1a745a=_0x5b7798['getSelectionAffectedTableCells'](_0x27fb78),_0x2c1519=_0x5b7798['getRowIndexes'](_0x1a745a),_0x42dd04=_0xc5b54?_0x2c1519['first']-0x1:_0x2c1519['last']+0x1,_0x238a5b=_0x1a745a[0x0]['findAncestor']('table'),_0x2c7c6a=_0x5b7798['createTableWalker'](_0x238a5b,{'startRow':_0x42dd04,'endRow':_0x42dd04}),_0x42cfa8=Array['from'](_0x2c7c6a)['map'](_0x4a998d=>_0x3d4c4d['createRangeOn'](_0x4a998d['cell']));_0x1b1226['markMultiRangeInsertion'](_0x42cfa8,'tableRow');});});}for(const _0xec9d25 of['insertTableColumnLeft','insertTableColumnRight']){const _0x166e27=_0x1ddd96['commands']['get'](_0xec9d25);_0x1b1226['enableCommand'](_0xec9d25,_0x493eab=>{_0x1ddd96['model']['change'](_0x7a5ffe=>{_0x493eab();const _0x465389='left'===_0x166e27['order'],_0x2798a3=_0x5b7798['getSelectionAffectedTableCells'](_0x27fb78),_0x35597c=_0x5b7798['getColumnIndexes'](_0x2798a3),_0x2dee37=_0x465389?_0x35597c['first']-0x1:_0x35597c['last']+0x1,_0x424301=_0x2798a3[0x0]['findAncestor']('table'),_0x5abdd6=_0x5b7798['createTableWalker'](_0x424301,{'startRow':0x0,'column':_0x2dee37,'includeAllSlots':!0x1}),_0x44f1e3=Array['from'](_0x5abdd6)['map'](_0x22407c=>_0x7a5ffe['createRangeOn'](_0x22407c['cell']));_0x1b1226['markMultiRangeInsertion'](_0x44f1e3,'tableColumn');});});}for(const _0x12e096 of['removeTableRow','removeTableColumn']){const _0x33f9cf=_0x12e096['substr'](0xb),_0x33c9ba=_0x33f9cf['toLowerCase'](),_0x563593=_0x33c9ba['substr'](0x0,0x3)+'span',_0x1de530='table'+_0x33f9cf,_0xdc1371='min'+_0x33f9cf,_0x1c43e4='max'+_0x33f9cf;_0x1b1226['enableCommand'](_0x12e096,()=>{_0x1ddd96['model']['change'](_0x188078=>{const _0x5c385a=_0x5b7798['getSelectionAffectedTableCells'](_0x27fb78),_0x234d69=_0x5c385a[0x0]['findAncestor']('table');let _0x59177a;if('removeTableRow'==_0x12e096){const _0x1eaca5=_0x5b7798['getRowIndexes'](_0x5c385a);_0x59177a={'startRow':_0x1eaca5['first'],'endRow':_0x1eaca5['last'],'includeAllSlots':!0x0};}else{const _0x718cf3=_0x5b7798['getColumnIndexes'](_0x5c385a);_0x59177a={'startColumn':_0x718cf3['first'],'endColumn':_0x718cf3['last'],'includeAllSlots':!0x0};}const _0x380cce=_0x5b7798['createTableWalker'](_0x234d69,_0x59177a),_0x2507b7=Array['from'](_0x380cce)['map'](({cell:_0x22d331})=>_0x22d331),_0x4b4dbe=Ne(_0x2507b7['filter'](_0x165b95=>_0x165b95['hasAttribute'](_0x563593))),_0x2a147b=Ne(_0x2507b7['filter'](_0x48c82f=>!_0x48c82f['hasAttribute'](_0x563593)))['map'](_0x49b0e9=>_0x188078['createRangeOn'](_0x49b0e9)),_0x68f62f=_0x1b1226['markMultiRangeDeletion'](_0x2a147b,_0x1de530);if(_0x68f62f&&('tableRow'==_0x68f62f['subType']||'tableColumn'==_0x68f62f['subType'])){const _0x511772=this['_getSuggestionCoords'](_0x68f62f);for(const _0x17857a of _0x4b4dbe){const _0x25f430=_0x188078['createRangeOn'](_0x17857a),_0x12c2ad=_0x5b7798['getCellLocation'](_0x17857a),_0x5e3a72=_0x17857a['getAttribute'](_0x563593)-0x1,_0x5ca01a=_0x511772[_0xdc1371],_0x2210fd=_0x511772[_0x1c43e4];_0x5ca01a<=_0x12c2ad[_0x33c9ba]&&_0x12c2ad[_0x33c9ba]+_0x5e3a72<=_0x2210fd&&_0x68f62f['addRange'](_0x25f430);}}});});}function _0x448770(_0x157bfb){const _0x6faa3=Array['from'](_0x27fb78['getRanges']())['map'](_0x3995a3=>_0xb23b08['fromRange'](_0x3995a3));_0x1ddd96['model']['change'](_0x13ffd4=>{const _0x307a94=_0x13ffd4['batch'];_0x157bfb=_0x157bfb['filter'](_0x22fdb8=>'$graveyard'!=_0x22fdb8['root']['rootName']),_0x13ffd4['setSelection'](_0x157bfb),_0x1ddd96['commands']['get']('removeTableRow')['refresh'](),_0x1ddd96['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1ddd96['model']['enqueueChange'](()=>{_0x1ddd96['model']['enqueueChange'](_0x307a94,_0x59ec32=>{const _0x150336=_0x6faa3['filter'](_0x5191e4=>'$graveyard'!=_0x5191e4['root']['rootName']);_0x150336['length']>0x0&&_0x59ec32['setSelection'](_0x150336);for(const _0x75957f of _0x6faa3)_0x75957f['detach']();});});});}function _0x34bb45(_0x5900d1){_0x1ddd96['model']['change'](_0x58ed1e=>{const _0x13e8f4=Array['from'](_0x27fb78['getRanges']())['map'](_0x323b48=>_0xb23b08['fromRange'](_0x323b48)),_0x4c13bb=[];for(const _0x546f60 of _0x5900d1)for(const _0x113b3b of _0x546f60['getItems']({'shallow':!0x0}))_0x4c13bb['push'](_0x113b3b);for(const _0x300b97 of _0x4c13bb)'$graveyard'!=_0x300b97['root']['rootName']&&(_0x58ed1e['setSelection'](_0x58ed1e['createPositionAt'](_0x300b97,0x0)),_0x1ddd96['commands']['get']('removeTableColumn')['refresh'](),_0x1ddd96['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x15136c=_0x13e8f4['filter'](_0x4fb6fc=>'$graveyard'!=_0x4fb6fc['root']['rootName']);_0x15136c['length']>0x0&&_0x58ed1e['setSelection'](_0x15136c);for(const _0x1bfb22 of _0x13e8f4)_0x1bfb22['detach']();});}function _0xfcf948(_0x59645d,_0x55f095){return _0x55f095['every'](_0x495ab7=>_0x59645d['some'](_0x2d8f85=>_0x2d8f85['end']['isEqual'](_0x495ab7['start'])||_0x495ab7['end']['isEqual'](_0x2d8f85['start'])));}function _0x541c5c(_0x253e7e,_0x7444cc){return!_0x253e7e['some'](_0x58a2d6=>_0x7444cc['some'](_0x56a266=>_0x58a2d6['isIntersecting'](_0x56a266)))&&_0x253e7e['some'](_0x18e63a=>_0x7444cc['some'](_0x2de2b5=>_0x18e63a['end']['isTouching'](_0x2de2b5['start'])));}_0x1ddd96['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2de89a,_0x258278,_0x4d0006)=>{if(!_0x4d0006['options']['showSuggestionHighlights'])return;const _0x3d8993=_0x258278['item'];if(!_0x3d8993)return;const _0x35be47=_0x4d0006['mapper']['toViewElement'](_0x3d8993);function _0x57148b(_0x305e50){return Array['isArray'](_0x305e50)?_0x305e50:[_0x305e50];}_0x35be47&&'tableCell'===_0x3d8993['name']&&_0xfbe412(_0x35be47,_0x4d0006['writer'],(_0x5083dc,_0x10f8ef,_0x517a9f)=>_0x517a9f['addClass'](_0x57148b(_0x10f8ef['classes']),_0x5083dc),(_0x286034,_0x569f50,_0x2452ab)=>_0x2452ab['removeClass'](_0x57148b(_0x569f50['classes']),_0x286034));},{'priority':'highest'}),_0x1b1226['descriptionFactory']['registerDescriptionCallback'](_0x31cce9=>{if('insertion'!=_0x31cce9['type']&&'deletion'!=_0x31cce9['type'])return;const _0x33a0f3=_0x31cce9['getContainedElement']();if(null!=_0x33a0f3&&_0x33a0f3['is']('element','table')){if('insertion'==_0x31cce9['type']){const _0x38820d=_0x31cce9['getItems']()['filter'](_0x20697a=>_0x20697a['is']('$textProxy'))['map'](_0x41ecf8=>_0x41ecf8['data']);if(_0x38820d['length'])return{'type':'insertion','content':c(_0x232a59,'*Insert:*\x20%0',c(_0x232a59,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x38820d['join']('\x20')+'\x22'))};}if('deletion'==_0x31cce9['type']){const _0x4b6b5b=_0x31cce9['getItems']()['filter'](_0x38b5a4=>_0x38b5a4['is']('$textProxy'))['map'](_0x4d5ea1=>_0x4d5ea1['data']);if(_0x4b6b5b['length'])return{'type':'deletion','content':c(_0x232a59,'*Remove:*\x20%0',c(_0x232a59,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4b6b5b['join']('\x20')+'\x22'))};}}}),_0x1b1226['descriptionFactory']['registerDescriptionCallback'](_0x3619f6=>{if('tableRow'==_0x3619f6['subType']){const _0x2798f9=_0x3619f6['getItems']()['filter'](_0x22b68b=>_0x22b68b['is']('$textProxy'))['map'](_0x180472=>_0x180472['data']),_0x2cc21a=this['_getSuggestionCoords'](_0x3619f6),_0x5f2011=_0x2cc21a['maxRow']-_0x2cc21a['minRow']+0x1;if('insertion'==_0x3619f6['type'])return _0x2798f9['length']?{'type':'insertion','content':c(_0x232a59,'*Insert:*\x20%0',c(_0x232a59,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5f2011,'\x22'+_0x2798f9['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x232a59,'*Insert:*\x20%0',c(_0x232a59,'ELEMENT_TABLE_ROW',_0x5f2011))};if('deletion'==_0x3619f6['type'])return _0x2798f9['length']?{'type':'deletion','content':c(_0x232a59,'*Remove:*\x20%0',c(_0x232a59,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5f2011,'\x22'+_0x2798f9['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x232a59,'*Remove:*\x20%0',c(_0x232a59,'ELEMENT_TABLE_ROW',_0x5f2011))};}if('tableColumn'==_0x3619f6['subType']){const _0x4289a4=_0x3619f6['getItems']()['filter'](_0x3e419a=>_0x3e419a['is']('$textProxy'))['map'](_0x55f767=>_0x55f767['data']),_0xaebda4=this['_getSuggestionCoords'](_0x3619f6),_0x44ec4b=_0xaebda4['maxColumn']-_0xaebda4['minColumn']+0x1;if('insertion'==_0x3619f6['type'])return _0x4289a4['length']?{'type':'insertion','content':c(_0x232a59,'*Insert:*\x20%0',c(_0x232a59,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x44ec4b,'\x22'+_0x4289a4['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x232a59,'*Insert:*\x20%0',c(_0x232a59,'ELEMENT_TABLE_COLUMN',_0x44ec4b))};if('deletion'==_0x3619f6['type'])return _0x4289a4['length']?{'type':'deletion','content':c(_0x232a59,'*Remove:*\x20%0',c(_0x232a59,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x44ec4b,'\x22'+_0x4289a4['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x232a59,'*Remove:*\x20%0',c(_0x232a59,'ELEMENT_TABLE_COLUMN',_0x44ec4b))};}}),_0x1b1226['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x448770),_0x1b1226['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x448770),_0x1b1226['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x34bb45),_0x1b1226['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x34bb45),_0x1b1226['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xfcf948),_0x1b1226['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xfcf948),_0x1b1226['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x541c5c),_0x1b1226['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x541c5c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4f206b=this['editor'],_0x204b2f=_0x4f206b['model']['document']['selection'];return(_0x4bfa30,_0x19ba25)=>{_0x4f206b['model']['change'](_0x4e3f28=>{const {commandName:_0x1f23ba,commandParams:_0x14c4f1}=_0x19ba25;let _0x469439=_0x4bfa30[0x0]['end']['nodeBefore'];_0x14c4f1&&_0x14c4f1[0x0]&&!0x1===_0x14c4f1[0x0]['forceValue']&&(_0x469439=_0x4bfa30[0x0]['start']['nodeAfter']);const _0x48fe23=_0x4e3f28['createRangeIn'](_0x469439);if('$graveyard'==_0x48fe23['root']['rootName'])return;const _0x2be04e=Array['from'](_0x204b2f['getRanges']())['map'](_0x5826e7=>_0xb23b08['fromRange'](_0x5826e7));_0x4e3f28['setSelection'](_0x48fe23),_0x4f206b['commands']['get'](_0x1f23ba)['refresh'](),_0x14c4f1['push']({'forceDefaultExecution':!0x0}),_0x4f206b['execute'](_0x1f23ba,..._0x14c4f1);const _0x14fec9=_0x2be04e['filter'](_0x2ea843=>'$graveyard'!=_0x2ea843['root']['rootName']);_0x14fec9['length']>0x0&&_0x4e3f28['setSelection'](_0x14fec9);for(const _0xecefcc of _0x2be04e)_0xecefcc['detach']();});};}['_getCoordsForCells'](_0x348747){const _0x56211b=this['editor']['plugins']['get']('TableUtils');let _0x42e07c=Number['MAX_SAFE_INTEGER'],_0x4e8160=Number['MIN_SAFE_INTEGER'],_0x55db77=Number['MAX_SAFE_INTEGER'],_0xb2966a=Number['MIN_SAFE_INTEGER'];for(const _0x16dfbc of _0x348747){if('$graveyard'==_0x16dfbc['root']['rootName'])continue;const {row:_0x2ac9a4,column:_0x504946}=_0x56211b['getCellLocation'](_0x16dfbc),_0x5c6541=_0x16dfbc['hasAttribute']('rowspan')?_0x16dfbc['getAttribute']('rowspan')-0x1:0x0,_0x17cb96=_0x16dfbc['hasAttribute']('colspan')?_0x16dfbc['getAttribute']('colspan')-0x1:0x0;_0x42e07c=_0x2ac9a4<_0x42e07c?_0x2ac9a4:_0x42e07c,_0x4e8160=_0x2ac9a4+_0x5c6541>_0x4e8160?_0x2ac9a4+_0x5c6541:_0x4e8160,_0x55db77=_0x504946<_0x55db77?_0x504946:_0x55db77,_0xb2966a=_0x504946+_0x17cb96>_0xb2966a?_0x504946+_0x17cb96:_0xb2966a;}return{'minRow':_0x42e07c,'maxRow':_0x4e8160,'minColumn':_0x55db77,'maxColumn':_0xb2966a};}['_setupColumnsRowsFixing'](){const _0x51b4b1=this['editor'],_0x15e6d5=_0x51b4b1['plugins']['get']('TrackChangesEditing'),_0x5f11ba=_0x51b4b1['plugins']['get']('TableUtils');_0x51b4b1['model']['document']['on']('change:data',()=>{const _0x55ccd0=Array['from'](_0x51b4b1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5419d9,data:_0x25c218}of _0x55ccd0){const {group:_0x475acc,id:_0x1c973c,subType:_0x5c22ea}=_0x15e6d5['_splitMarkerName'](_0x5419d9);if('suggestion'!=_0x475acc)continue;if(null!=_0x25c218['oldRange'])continue;const _0x29333a=_0x15e6d5['getSuggestion'](_0x1c973c);this['_tablePostFixingSubtypes']['includes'](_0x5c22ea)&&this['_tableSuggestions']['add'](_0x29333a);}},{'priority':'low'});const _0x1ef4a4=(_0x2c0760,_0x58c2df)=>{let _0x1ccab9=!0x1;const _0x2b0d22=_0x58c2df['createRangeOn'](_0x2c0760),_0x12ae61=_0x2c0760['findAncestor']('table'),_0x4e9396=_0x5f11ba['getCellLocation'](_0x2c0760);for(const _0x2ca552 of this['_tableSuggestions']){const _0x21d120=_0x2ca552['subType'],_0x3cfbf9=_0x21d120['startsWith']('tablePaste'),_0x392086=_0x21d120['substr'](_0x3cfbf9?0xa:0x5),_0x290696=_0x392086['toLowerCase'](),_0x582f4f=_0x290696['substr'](0x0,0x3)+'span',_0x4f5d51='min'+_0x392086,_0x1f03b5='max'+_0x392086;if(!_0x2ca552['isInContent'])continue;if(_0x12ae61!=_0x2ca552['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2ca552['isIntersectingWithRange'](_0x2b0d22))continue;const _0x15cd19=_0x2c0760['hasAttribute'](_0x582f4f)?_0x2c0760['getAttribute'](_0x582f4f)-0x1:0x0,_0x207bf2=this['_getSuggestionCoords'](_0x2ca552),_0x1621d3=_0x207bf2[_0x4f5d51],_0x251dc4=_0x207bf2[_0x1f03b5];_0x1621d3<=_0x4e9396[_0x290696]&&_0x4e9396[_0x290696]+_0x15cd19<=_0x251dc4&&(_0x2ca552['addRange'](_0x2b0d22),_0x1ccab9=!0x0);}return _0x1ccab9;};_0x51b4b1['model']['document']['registerPostFixer'](_0xd59e8a=>{let _0x37dca2=!0x1;for(const _0xcf3ae4 of _0x51b4b1['model']['document']['differ']['getChanges']())if('insert'==_0xcf3ae4['type']){if('tableRow'==_0xcf3ae4['name']){for(const _0x49be55 of _0xcf3ae4['position']['nodeAfter']['getChildren']())_0x37dca2=_0x37dca2||_0x1ef4a4(_0x49be55,_0xd59e8a);}else'tableCell'==_0xcf3ae4['name']&&(_0x37dca2=_0x37dca2||_0x1ef4a4(_0xcf3ae4['position']['nodeAfter'],_0xd59e8a));}return _0x37dca2;});}['_getSuggestionCoords'](_0x418ff3){return this['_getCoordsForCells'](_0x418ff3['getRanges']()['map'](_0x9543cd=>_0x9543cd['start']['nodeAfter']));}}function Ne(_0x2e33f7){return Array['from'](new Set(_0x2e33f7)['values']());}class Nt extends _0x450ea2{static get['requires'](){return[Ct];}['afterInit'](){const _0x582886=this['editor'],_0xfc697d=_0x582886['model']['document']['selection'],_0x452589=_0x582886['locale'];if(!_0x582886['plugins']['has']('TableEditing'))return;const _0x56a458=_0x582886['plugins']['get']('TrackChangesEditing'),_0x1ca4df=_0x582886['plugins']['get']('TableUtils'),_0x10975a=_0x582886['plugins']['get'](Ct);_0x10975a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x56a458['enableCommand']('mergeTableCells',()=>{const _0x2bc3b3=_0x1ca4df['getSelectionAffectedTableCells'](_0x582886['model']['document']['selection']);_0x582886['model']['change'](()=>{_0x56a458['markMultiRangeBlockFormat'](_0x2bc3b3,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x582886['commands']['get']('mergeTableCells')['on']('execute',(_0x27ab15,_0x5ccc90)=>{_0x582886['commands']['get']('trackChanges')['value']&&(_0x5ccc90['length']>0x0&&_0x5ccc90[_0x5ccc90['length']-0x1]&&_0x5ccc90[_0x5ccc90['length']-0x1]['forceDefaultExecution']||_0x56a458['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x27ab15['stop']());},{'priority':'highest'});for(const _0x22be2b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1c0ed0=_0x582886['commands']['get'](_0x22be2b);_0x56a458['enableCommand'](_0x22be2b,()=>{const _0x163c80=_0x582886['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x46f4e1=>_0x46f4e1['is']('element','tableCell')),_0x19e86e=_0x1c0ed0['value'];_0x582886['model']['change'](()=>{_0x56a458['markMultiRangeBlockFormat']([_0x163c80,_0x19e86e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x157645 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x56e966=_0x582886['commands']['get'](_0x157645);_0x56a458['enableCommand'](_0x157645,()=>{const _0x4ec26f=_0x1ca4df['getSelectionAffectedTableCells'](_0x582886['model']['document']['selection'])[0x0],_0x7e99af=_0x4ec26f['findAncestor']('table'),{column:_0x12897d,row:_0x13d43e}=_0x1ca4df['getCellLocation'](_0x4ec26f);let _0x21ede7=[];if('horizontally'==_0x56e966['direction']){const _0x5b5445=_0x1ca4df['createTableWalker'](_0x7e99af,{'startRow':_0x13d43e,'endRow':_0x13d43e,'includeAllSlots':!0x0});_0x21ede7=Array['from'](_0x5b5445)['map'](_0x446c3f=>_0x446c3f['cell']);}else{const _0x26ff36=_0x1ca4df['createTableWalker'](_0x7e99af,{'column':_0x12897d,'includeAllSlots':!0x0});_0x21ede7=Array['from'](_0x26ff36)['map'](_0x4c83b6=>_0x4c83b6['cell']);}_0x582886['model']['change'](_0x402c7c=>{_0x56a458['markBlockFormat'](_0x402c7c['createRangeOn'](_0x4ec26f),{'commandName':_0x157645,'commandParams':[]},_0x21ede7,_0x157645);});});}_0x56a458['descriptionFactory']['registerDescriptionCallback'](_0xbd71af=>{if('formatBlock'!=_0xbd71af['type']&&'formatInline'!=_0xbd71af['type'])return;const {data:_0xa46270}=_0xbd71af;return _0xa46270&&'mergeTableCells'==_0xa46270['commandName']?{'type':'format','content':c(_0x452589,'*Merge\x20cells*')}:void 0x0;}),_0x56a458['descriptionFactory']['registerDescriptionCallback'](_0x2fd96c=>{if('formatBlock'!=_0x2fd96c['type']&&'formatInline'!=_0x2fd96c['type'])return;const {data:_0x78a799}=_0x2fd96c;return _0x78a799?'splitTableCellVertically'==_0x78a799['commandName']?{'type':'format','content':c(_0x452589,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x78a799['commandName']?{'type':'format','content':c(_0x452589,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5de9a2=_0x10975a['_acceptFormatSuggestionCallbackFactory']();for(const _0x1d8fea of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x56a458['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1d8fea,'accept',_0x5de9a2);for(const _0x58e0a2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x56a458['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x58e0a2,'accept',_0x5de9a2);_0x56a458['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x587194=>{_0x582886['model']['change'](_0x25fae5=>{const _0x5ce547=Array['from'](_0xfc697d['getRanges']())['map'](_0xb61f7b=>_0xb23b08['fromRange'](_0xb61f7b));_0x25fae5['setSelection'](_0x587194),_0x582886['commands']['get']('mergeTableCells')['refresh'](),_0x582886['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3de1dc=_0x5ce547['filter'](_0xc68466=>'$graveyard'!=_0xc68466['root']['rootName']);_0x3de1dc['length']>0x0&&_0x25fae5['setSelection'](_0x3de1dc);for(const _0x38b92c of _0x5ce547)_0x38b92c['detach']();});});for(const _0x22a78a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4ed80f=_0x582886['commands']['get'](_0x22a78a);_0x4ed80f['on']('set:isEnabled',(_0x59c7b3,_0x4a0c55,_0x49a8cc)=>{if(_0x49a8cc){const _0xa3588c=_0x582886['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x127268=>_0x127268['is']('element','tableCell'));this['_areMergableCells'](_0x4ed80f['value'],_0xa3588c)||(_0x59c7b3['return']=!0x1,_0x59c7b3['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2a69db=this['editor']['commands']['get']('mergeTableCells'),_0x4c1cdf=this['editor']['plugins']['get']('TableUtils');if(!_0x2a69db['isEnabled'])return!0x1;const _0x308cbf=_0x4c1cdf['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x26a0bf of _0x308cbf)for(const _0x499cbd of _0x308cbf)if(_0x26a0bf!=_0x499cbd&&!this['_areMergableCells'](_0x26a0bf,_0x499cbd))return!0x1;return!0x0;}['_areMergableCells'](_0x41a194,_0x51dcff){const _0x282853=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5aeb88=this['editor']['model']['createRangeOn'](_0x41a194),_0x3239da=this['editor']['model']['createRangeOn'](_0x51dcff),_0x1e2bdb=new Set(),_0x53cc62=new Set();for(const _0x5604da of _0x282853['getSuggestions']())if(('insertion'==_0x5604da['type']||'deletion'==_0x5604da['type']||'mergeTableCells'==_0x5604da['subType'])&&_0x5604da['isInContent']){for(const _0x4092e2 of _0x5604da['getRanges']())_0x4092e2['containsRange'](_0x5aeb88,!0x0)&&_0x1e2bdb['add'](_0x5604da['type']+':'+_0x5604da['author']['id']),_0x4092e2['containsRange'](_0x3239da,!0x0)&&_0x53cc62['add'](_0x5604da['type']+':'+_0x5604da['author']['id']);}if(_0x1e2bdb['size']!=_0x53cc62['size'])return!0x1;for(const _0x17f767 of _0x1e2bdb)if(!_0x53cc62['has'](_0x17f767))return!0x1;return!0x0;}}class Dt extends _0x450ea2{static get['requires'](){return[Ct];}['afterInit'](){const _0x59ccb5=this['editor'];if(!_0x59ccb5['plugins']['has']('TableEditing'))return;const _0x20f2c0=_0x59ccb5['locale'],_0x539057=_0x59ccb5['plugins']['get']('TrackChangesEditing');_0x539057['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x539057['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x539057['registerBlockAttribute']('headingRows'),_0x539057['registerBlockAttribute']('headingColumns'),_0x539057['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x20f2c0,'FORMAT_HEADER_ROW')),_0x539057['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x20f2c0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x395912=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25a382=this['editor']['plugins']['get']('TableUtils'),_0x1f2913=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x4cc942({showActiveMarker:_0x3206cf=!0x0,setDataAttribute:_0x4428ef=!0x0}={}){return(_0x2e5f1a,_0x3b8a4b,_0x578b03)=>{const {type:_0x236fbf,id:_0x1ce9e6}=_0x395912['_splitMarkerName'](_0x3b8a4b['markerName']),_0x2d36a6=_0x395912['getSuggestion'](_0x1ce9e6),_0x384c4f=_0x2d36a6['data'];if('formatBlock'!=_0x2d36a6['type']||!_0x384c4f||'setTableColumnHeader'!=_0x384c4f['commandName'])return;if(_0x3b8a4b['item'])return void _0x2e5f1a['stop']();if(!_0x578b03['consumable']['consume'](_0x3b8a4b['markerRange'],_0x2e5f1a['name']))return;const _0x17e17c=_0x3b8a4b['markerRange']['start']['nodeAfter'],_0x221262=_0x3b8a4b['markerRange']['end']['nodeBefore'],_0x3ed5df=_0x17e17c['parent']['parent'],{column:_0x35476b}=_0x25a382['getCellLocation'](_0x17e17c),{column:_0x53aa40}=_0x25a382['getCellLocation'](_0x221262);for(let _0x2c679b=_0x35476b;_0x2c679b<=_0x53aa40;_0x2c679b++){const _0x14e64c=_0x25a382['createTableWalker'](_0x3ed5df,{'column':_0x2c679b,'includeAllSlots':!0x1});for(const _0x4ca0f1 of _0x14e64c){const _0x1cf658=_0x4ca0f1['cell'],_0x388265=_0x578b03['mapper']['toViewElement'](_0x1cf658);_0x578b03['writer']['addClass']('ck-suggestion-marker-'+_0x236fbf,_0x388265),_0x4428ef&&_0x578b03['writer']['setAttribute']('data-suggestion',_0x1ce9e6,_0x388265),_0x578b03['mapper']['bindElementToMarker'](_0x388265,_0x3b8a4b['markerName']),_0x3206cf&&(_0x395912['activeMarkers']['includes'](_0x3b8a4b['markerName'])?_0x578b03['writer']['addClass']('ck-suggestion-marker--active',_0x388265):_0x578b03['writer']['removeClass']('ck-suggestion-marker--active',_0x388265));}}};}_0x395912['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1f2913),_0x395912['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1f2913),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4cc942(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x106ee0,_0x50775e,_0x38f7f1)=>{_0x38f7f1['options']['showSuggestionHighlights']&&_0x4cc942({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x106ee0,_0x50775e,_0x38f7f1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1173db,_0x3934b3,_0x5aedb0)=>{const {type:_0x49f01f,id:_0x29df57}=_0x395912['_splitMarkerName'](_0x3934b3['markerName']),_0x3427da=_0x395912['getSuggestion'](_0x29df57),_0x32096f=_0x3427da['data'];if('formatBlock'!=_0x3427da['type']||!_0x32096f||'setTableColumnHeader'!=_0x32096f['commandName'])return;const _0x57fe04=_0x5aedb0['mapper']['markerNameToElements'](_0x3934b3['markerName']);if(_0x57fe04){for(const _0x521e1d of _0x57fe04)_0x5aedb0['writer']['removeClass']('ck-suggestion-marker-'+_0x49f01f,_0x521e1d),_0x5aedb0['writer']['removeClass']('ck-suggestion-marker--active',_0x521e1d),_0x5aedb0['writer']['removeAttribute']('data-suggestion',_0x521e1d),_0x5aedb0['mapper']['unbindElementFromMarkerName'](_0x521e1d,_0x3934b3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c7555=this['editor'],_0x4e9c53=_0x3c7555['locale'];function _0x517e30(_0x36e23f){return{'type':'format','content':c(_0x4e9c53,'*Format:*\x20%0',_0x36e23f)};}_0x3c7555['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40588f=>{if('formatBlock'!=_0x40588f['type'])return;const {data:_0x1d3819}=_0x40588f;if(_0x1d3819){if('setTableRowHeader'==_0x1d3819['commandName']){const _0x461866=_0x1d3819['commandParams'][0x0]['forceValue'];return _0x517e30(c(_0x4e9c53,_0x461866?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1d3819['commandName']){const _0x144360=_0x1d3819['commandParams'][0x0]['forceValue'];return _0x517e30(c(_0x4e9c53,_0x144360?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x23036b=>[_0x23036b,null]));class Mt extends _0x450ea2{static get['requires'](){return[Ct];}['afterInit'](){const _0x52b84c=this['editor'];if(!_0x52b84c['plugins']['has']('TableClipboard'))return;const _0x5b3251=_0x52b84c['plugins']['get']('TrackChangesEditing'),_0x760275=_0x52b84c['plugins']['get']('TableUtils'),_0x155e33=_0x52b84c['plugins']['get'](Ct),_0x508839=_0x52b84c['plugins']['get']('TableClipboard');_0x155e33['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x52b84c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x52b84c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x291124=null;_0x52b84c['model']['on']('insertContent',(_0x2708d9,_0x271a4d)=>{const [_0x355fdb,_0x465adc]=_0x271a4d,_0x132050=_0x271a4d[_0x271a4d['length']-0x1];_0x132050&&_0x132050['forceDefaultExecution']||_0x5b3251['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x141807,_0x485290,_0x29227f,_0x3520fe,_0x3c21d2){if(_0x485290&&!_0x485290['is']('documentSelection'))return!0x1;const _0x5cfe28=_0x3c21d2['getTableIfOnlyTableInContent'](_0x141807,_0x29227f);if(!_0x5cfe28||!Ue(_0x5cfe28,void 0x0,_0x3520fe))return!0x1;const _0x2e33a8=_0x3520fe['getSelectionAffectedTableCells'](_0x29227f['document']['selection']);if(!_0x2e33a8['length'])return!0x1;const _0x18dd10=_0x2e33a8[0x0]['findAncestor']('table'),_0x204b27=_0x3520fe['getRowIndexes'](_0x2e33a8),_0x56b9dc=_0x3520fe['getColumnIndexes'](_0x2e33a8),_0x3c9295={'startRow':_0x204b27['first'],'endRow':_0x204b27['last'],'startColumn':_0x56b9dc['first'],'endColumn':_0x56b9dc['last']};return 0x1==_0x2e33a8['length']&&(_0x3c9295['endRow']+=_0x3520fe['getRows'](_0x5cfe28)-0x1,_0x3c9295['endColumn']+=_0x3520fe['getColumns'](_0x5cfe28)-0x1),Ue(_0x18dd10,_0x3c9295,_0x3520fe);}(_0x355fdb,_0x465adc,_0x52b84c['model'],_0x760275,_0x508839)&&(_0x2708d9['stop'](),_0x291124={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x52b84c['model']['change'](()=>{_0x52b84c['model']['insertContent'](_0x271a4d[0x0],_0x271a4d[0x1],_0x271a4d[0x2],{'forceDefaultExecution':!0x0});const _0x299676=_0x38e031(),{rowInsertionRanges:_0x5d3a73,columnInsertionRanges:_0x248180,insertionRanges:_0x1e2608,deletionRanges:_0x53d87c,cells:_0x268e5f}=_0x291124;_0x5d3a73['length']&&_0x5b3251['markMultiRangeInsertion'](_0x5d3a73,'tablePasteRow',{'tablePasteChainId':_0x299676}),_0x248180['length']&&_0x5b3251['markMultiRangeInsertion'](_0x248180,'tablePasteColumn',{'tablePasteChainId':_0x299676}),_0x1e2608['length']&&(_0x5b3251['markMultiRangeInsertion'](_0x1e2608,'tablePaste',{'tablePasteChainId':_0x299676,'skipNestingCheck':!0x0}),_0x1e2608['forEach'](_0x30d8ec=>_0x30d8ec['detach']?.())),_0x53d87c['length']&&(_0x5b3251['markMultiRangeDeletion'](_0x53d87c,'tablePaste',{'tablePasteChainId':_0x299676,'skipNestingCheck':!0x0}),_0x53d87c['forEach'](_0x28fbd5=>_0x28fbd5['detach']?.()));const _0x2b5dca=_0x5b3251['markMultiRangeBlockFormat'](_0x268e5f['map'](({element:_0x747ab7})=>_0x747ab7),{'formatGroupId':_0x38e031()},[],'tablePasteCell',{'tablePasteChainId':_0x299676});if(_0x2b5dca){const _0x2e1321=_0x2b5dca['getMarkers'](),_0x3fceaf=[];for(const {element:_0x40dabc,attributes:_0x252ef6}of _0x268e5f){if(!_0x252ef6)continue;const _0x74220f=_0x52b84c['model']['createRangeOn'](_0x40dabc),_0x305c87=_0x2e1321['find'](_0x52c6a4=>_0x52c6a4['getRange']()['isEqual'](_0x74220f));_0x305c87&&_0x3fceaf['push']([_0x305c87['name'],_0x252ef6]);}_0x3fceaf['length']&&_0x2b5dca['setAttribute']('markerAttributes',Object['fromEntries'](_0x3fceaf));}_0x291124=null;}));},{'priority':_0x1f8415['high']+0xa}),_0x52b84c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5a848f,_0x15dc69)=>{const [_0x1ed287,_0x1e3795,,_0x2ad427]=_0x15dc69;if(!_0x291124)return;_0x5a848f['stop']();const _0x57d11d=_0x1ed287['cell'],_0x5ce3db=_0x1e3795,_0x5e6c3e=Oe(_0x57d11d),_0x378c1c=Oe(_0x5ce3db);_0x5a848f['return']=_0x57d11d;let _0x3ec790=null,_0x1a4ba2=null;if(_0x378c1c||_0x5e6c3e){if(_0x5e6c3e&&!_0x378c1c){_0x2ad427['remove'](_0x57d11d['getChild'](0x0));for(const _0x576148 of Array['from'](_0x5ce3db['getChildren']()))_0x2ad427['insert'](_0x576148,_0x57d11d,'end');const _0x45d85b=_0x291124['rowInsertionIndexes']['includes'](_0x1ed287['row']),_0x232f2d=_0x291124['columnInsertionIndexes']['includes'](_0x1ed287['column']);_0x45d85b||_0x232f2d||(_0x3ec790=_0xb23b08['fromRange'](_0x2ad427['createRangeIn'](_0x57d11d)));}else _0x378c1c&&!_0x5e6c3e&&(_0x1a4ba2=_0x2ad427['createRangeIn'](_0x57d11d));}else{const _0x534456=_0x2ad427['createElement']('tableCellSuggestion'),_0x2d2960=_0x2ad427['createElement']('tableCellSuggestion');_0x2ad427['wrap'](_0x2ad427['createRangeIn'](_0x57d11d),_0x2d2960),_0x2ad427['insert'](_0x534456,_0x57d11d,0x0);for(const _0x37bbf1 of Array['from'](_0x5ce3db['getChildren']()))_0x2ad427['insert'](_0x37bbf1,_0x534456,'end');_0x3ec790=_0xb23b08['fromRange'](_0x2ad427['createRangeOn'](_0x534456)),_0x1a4ba2=_0xb23b08['fromRange'](_0x2ad427['createRangeOn'](_0x2d2960));}const _0x37d7e5=Array['from'](_0x5ce3db['getAttributes']())['filter'](([_0x52f334])=>Be['includes'](_0x52f334));_0x291124['cells']['push']({'element':_0x57d11d,'attributes':_0x37d7e5['length']?Object['fromEntries'](_0x37d7e5):null}),_0x3ec790&&_0x291124['insertionRanges']['push'](_0x3ec790),_0x1a4ba2&&_0x291124['deletionRanges']['push'](_0x1a4ba2);},{'priority':'high'}),_0x760275['on']('insertColumns',(_0x3da53d,_0x161c3e)=>{const [_0x26cf3f,_0x1b8859={}]=_0x161c3e;if(!_0x291124)return;const _0x3dd4c7=_0x1b8859['at']||0x0,_0x3295bf=_0x1b8859['columns']||0x1;_0x291124['columnInsertionIndexes']=new Array(_0x3295bf)['fill'](_0x3dd4c7)['map']((_0x397607,_0x57462f)=>_0x397607+_0x57462f);for(const {cell:_0xd2bc89}of _0x760275['createTableWalker'](_0x26cf3f,{'startColumn':_0x3dd4c7,'endColumn':_0x3dd4c7+_0x3295bf-0x1}))_0x291124['columnInsertionRanges']['push'](_0x52b84c['model']['createRangeOn'](_0xd2bc89));},{'priority':'low'}),_0x760275['on']('insertRows',(_0x4279c3,_0x195377)=>{const [_0x283b6e,_0xf42f95={}]=_0x195377;if(!_0x291124)return;const _0x423524=_0xf42f95['at']||0x0,_0x1b25a1=_0xf42f95['rows']||0x1;_0x291124['rowInsertionIndexes']=new Array(_0x1b25a1)['fill'](_0x423524)['map']((_0x29bd42,_0x2fa916)=>_0x29bd42+_0x2fa916);for(const {cell:_0x390b5f}of _0x760275['createTableWalker'](_0x283b6e,{'startRow':_0x423524,'endRow':_0x423524+_0x1b25a1-0x1}))_0x291124['rowInsertionRanges']['push'](_0x52b84c['model']['createRangeOn'](_0x390b5f));},{'priority':'low'}),_0x5b3251['descriptionFactory']['registerDescriptionCallback'](_0x5387e5=>{if(_0x5387e5['subType']&&_0x5387e5['subType']['startsWith']('tablePaste'))return _0x5387e5['previous']?{}:{'type':'insertion','content':c(_0x52b84c['locale'],'*Replace\x20table\x20cells*')};});const _0x5b5064=()=>!0x1;for(const _0x18dc3c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5b3251['_suggestionFactory']['registerCustomCallback']('insertion',_0x18dc3c,'join',_0x5b5064),_0x5b3251['_suggestionFactory']['registerCustomCallback']('deletion',_0x18dc3c,'join',_0x5b5064),_0x5b3251['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x18dc3c,'join',_0x5b5064);_0x5b3251['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5b5064),_0x5b3251['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x572d58,_0x575ad6,_0x24412f)=>{const _0x470cc2=_0x572d58['map'](_0x333ee2=>_0x333ee2['getContainedElement']())['filter'](_0x5089cb=>_0x5089cb),_0x296324=new Map(_0x470cc2['map'](_0x27ad22=>[_0x27ad22,null]));if(_0x291124){for(const {element:_0x112eab,attributes:_0x441bcf}of _0x291124['cells'])_0x441bcf&&_0x296324['set'](_0x112eab,_0x441bcf);}else{if(_0x24412f&&_0x24412f['markerAttributes'])for(const [_0x48871d,_0x5e6cba]of Object['entries'](_0x24412f['markerAttributes'])){const _0x22af4b=_0x52b84c['model']['markers']['get'](_0x48871d),_0x2531c9=_0x22af4b?_0x22af4b['getRange']()['getContainedElement']():null;_0x2531c9&&_0x296324['set'](_0x2531c9,_0x5e6cba);}}_0x52b84c['model']['change'](_0x13579d=>{for(const [_0x4645f9,_0x331bb4]of _0x296324)_0x13579d['setAttributes']({...xe,..._0x331bb4},_0x4645f9);});});const _0x273380=(_0x223918,_0x1c4561)=>{_0x5b3251['_suggestionFactory']['registerCustomCallback'](_0x223918,'tablePaste',_0x1c4561,(_0x2cdb53,_0x25b266,_0x1aa9e8)=>{_0x52b84c['model']['change'](_0x150230=>{const _0x3a8eb3=[];for(const _0x84a80b of _0x2cdb53){const _0x1c92fb=_0x84a80b['start']['nodeAfter'];_0x1c92fb['is']('element','tableCellSuggestion')&&_0x3a8eb3['push'](_0x1c92fb);}_0x5b3251['_suggestionFactory']['getSuggestionCallback'](_0x223918,null,_0x1c4561)(_0x2cdb53,_0x25b266,_0x1aa9e8);for(const _0x341362 of _0x3a8eb3)'$graveyard'!=_0x341362['root']['rootName']&&_0x150230['unwrap'](_0x341362);});});};_0x273380('insertion','accept'),_0x273380('insertion','discard'),_0x273380('deletion','accept'),_0x273380('deletion','discard'),_0x5b3251['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x12afd1=>{const _0x336ebd=_0x12afd1['map'](_0x555d15=>_0x555d15['getContainedElement']()),_0xbcff77=_0x336ebd[0x0]['findAncestor']('table'),{minRow:_0x140a6f,maxRow:_0x213f39}=_0x155e33['_getCoordsForCells'](_0x336ebd);_0x760275['removeRows'](_0xbcff77,{'at':_0x140a6f,'rows':_0x213f39-_0x140a6f+0x1});}),_0x5b3251['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x14f74a=>{const _0x1e31eb=_0x14f74a['map'](_0x287d9f=>_0x287d9f['getContainedElement']()),_0x5886a3=_0x1e31eb[0x0]['findAncestor']('table'),{minColumn:_0x4e60cf,maxColumn:_0x1361d6}=_0x155e33['_getCoordsForCells'](_0x1e31eb);_0x760275['removeColumns'](_0x5886a3,{'at':_0x4e60cf,'columns':_0x1361d6-_0x4e60cf+0x1});});const _0x4049f7=(_0x538ed9,_0x40da62)=>{if(!_0x40da62['subType']||!_0x40da62['subType']['startsWith']('tablePaste'))return;const _0xb561e=_0x40da62['attributes']['tablePasteChainId'],_0x1fb206=_0x5b3251['getSuggestions']()['filter'](_0x446946=>_0x446946['isInContent']&&_0x446946['attributes']&&_0x446946['attributes']['tablePasteChainId']==_0xb561e);_0x1fb206['length']&&_0x40da62['getAllAdjacentSuggestions']()['length']!=_0x1fb206['length']&&_0x1fb206['reduce']((_0xd798fe,_0x4eddb3)=>(_0xd798fe['next']=_0x4eddb3,_0x4eddb3['previous']=_0xd798fe,_0x4eddb3));};function _0x4d3c10(_0x26d001,_0x2fa436=!0x0){const {id:_0x7e8081,authorId:_0x29da1e}=_0x5b3251['_splitMarkerName'](_0x26d001['markerName']),_0x512001=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2d0699=_0x5b3251['activeMarkers']['includes'](_0x26d001['markerName']);return _0x2d0699&&_0x512001['push']('ck-suggestion-marker--active'),{'classes':_0x512001,'attributes':{'data-suggestion':_0x7e8081,'data-author-id':_0x29da1e},'priority':_0x2d0699&&_0x2fa436?0xbc2:0xbb8};}_0x5b3251['on']('suggestionLoaded',_0x4049f7,{'priority':'high'}),_0x5b3251['on']('suggestionUnloaded',_0x4049f7,{'priority':'high'}),_0x52b84c['model']['document']['registerPostFixer'](()=>{let _0x354ba5=!0x1;const _0x4b836b=Array['from'](_0x52b84c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5ca214,data:_0x354acf}of _0x4b836b){const {group:_0x43b23d,type:_0x35e228,id:_0x9b107e}=_0x5b3251['_splitMarkerName'](_0x5ca214);if('suggestion'!=_0x43b23d||'deletion'!=_0x35e228||_0x354acf['oldRange'])continue;if(!_0x5b3251['hasSuggestion'](_0x9b107e))continue;const _0x2a327e=_0x5b3251['getSuggestion'](_0x9b107e)['getRanges'](),_0x39e516=_0x52b84c['plugins']['get']('Users')['me'];for(const _0x3c0d52 of _0x5b3251['getSuggestions']()){if(!_0x3c0d52['isInContent']||_0x3c0d52['author']!=_0x39e516)continue;if('formatBlock'!=_0x3c0d52['type']||'tablePasteCell'!=_0x3c0d52['subType'])continue;if(_0x3c0d52['getRanges']()['every'](_0x4026a6=>_0x2a327e['some'](_0x55229b=>_0x55229b['containsRange'](_0x4026a6,!0x0)))){for(const _0x15cd5f of _0x3c0d52['getAllAdjacentSuggestions']())_0x15cd5f['isInContent']&&(_0x15cd5f['discard'](),_0x354ba5=!0x0);}}}return _0x354ba5;}),_0x52b84c['model']['document']['registerPostFixer'](_0x1c5e65=>{const _0x4faee8=_0x52b84c['commands']['get']('redo');if(!_0x4faee8||!_0x4faee8['_createdBatches']['has'](_0x1c5e65['batch']))return!0x1;let _0x5120e5=!0x1;const _0x285da6=_0x52b84c['plugins']['get']('Users')['me'],_0x5107c8=_0x52b84c['model']['document']['differ']['getChanges'](),_0x17707c=Array['from'](_0x52b84c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x29087f,data:_0x5bd4f5})=>{const {group:_0x25d7d1,subType:_0x3b8341,authorId:_0x381bd7}=_0x5b3251['_splitMarkerName'](_0x29087f);return'suggestion'==_0x25d7d1&&'tablePaste'==_0x3b8341&&_0x381bd7==_0x285da6['id']&&!_0x5bd4f5['oldRange'];});for(const _0x38d67e of _0x5107c8){if('insert'!=_0x38d67e['type']||'tableCellSuggestion'!=_0x38d67e['name']||0x1!=_0x38d67e['length'])continue;const _0x39dc87=_0x1c5e65['createRange'](_0x38d67e['position'],_0x38d67e['position']['getShiftedBy'](0x1));if(!_0x17707c['find'](({data:_0x1a27b9})=>_0x1a27b9['newRange']['isEqual'](_0x39dc87))){for(const {name:_0x453fd8,data:_0x7f3b5a}of _0x17707c)if(_0x39dc87['containsRange'](_0x7f3b5a['newRange'])){_0x1c5e65['updateMarker'](_0x453fd8,{'range':_0x39dc87}),_0x5120e5=!0x0;break;}}}return _0x5120e5;}),_0x52b84c['model']['document']['registerPostFixer'](_0x42597f=>{let _0x3cd043=!0x1;const _0x47d843=_0x52b84c['plugins']['get']('Users')['me'],_0x46de19=_0x5b3251['getSuggestions']()['filter'](_0x1ecff7=>_0x1ecff7['isInContent']&&_0x1ecff7['author']==_0x47d843),_0x324270=new Set(),_0x47bd50=new Set();for(const _0x4e8710 of _0x46de19)if('tablePaste'==_0x4e8710['subType'])for(const _0x4fcb49 of _0x4e8710['getMarkers']()){const _0x55e73a=_0x4fcb49['getRange']()['getContainedElement']();if(_0x55e73a){if(_0x55e73a['is']('element','tableCellSuggestion')&&Oe(_0x55e73a)){_0x4e8710['removeMarker'](_0x4fcb49['name']),_0x324270['add'](_0x55e73a),_0x3cd043=!0x0;const _0x2c5eed=_0x55e73a['nextSibling'],_0x347d93=_0x55e73a['previousSibling'],_0x5635b3=_0x2c5eed&&_0x2c5eed['is']('element','tableCellSuggestion'),_0x33c4cb=_0x347d93&&_0x347d93['is']('element','tableCellSuggestion');_0x5635b3&&!_0x324270['has'](_0x2c5eed)&&_0x47bd50['add'](_0x2c5eed),_0x33c4cb&&!_0x324270['has'](_0x347d93)&&_0x47bd50['add'](_0x347d93);}else _0x55e73a['is']('element','paragraph')&&_0x55e73a['isEmpty']&&(_0x4e8710['removeMarker'](_0x4fcb49['name']),_0x3cd043=!0x0);}}else{if('tablePasteCell'==_0x4e8710['subType']){if(!_0x4e8710['attributes']||!_0x4e8710['attributes']['tablePasteChainId'])continue;const _0x558746=_0x4e8710['attributes']['markerAttributes'];if(_0x558746&&Object['keys'](_0x558746)['length'])continue;const _0x3f590e=_0x4e8710['attributes']['tablePasteChainId'];let _0x132506=!0x0,_0x327036=!0x0;for(const _0x44b572 of _0x46de19)if(_0x44b572['subType']&&_0x44b572['subType']['startsWith']('tablePaste')){if(!_0x44b572['attributes']['tablePasteChainId']){_0x327036=!0x1;break;}if(_0x44b572['id']!=_0x4e8710['id']&&_0x44b572['attributes']['tablePasteChainId']==_0x3f590e){_0x132506=!0x1;break;}}_0x327036&&_0x132506&&(_0x4e8710['removeMarkers'](),_0x3cd043=!0x0);}}for(const _0x396232 of _0x324270)_0x42597f['remove'](_0x396232);for(const _0x1a1f75 of _0x47bd50)_0x42597f['unwrap'](_0x1a1f75);return _0x3cd043;}),_0x52b84c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x40a0da=>_0x4d3c10(_0x40a0da),'converterPriority':'high'}),_0x52b84c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1418da,_0x357a07)=>_0x357a07['options']['showSuggestionHighlights']?_0x4d3c10(_0x1418da,!0x1):null,'converterPriority':'high'});const _0x3d3f0c=_0x52b84c['editing']['view'];this['listenTo'](_0x3d3f0c['document'],'clipboardOutput',(_0x35188b,_0x2eab2a)=>{const _0x1a02d8=[];for(const _0x3b174b of _0x3d3f0c['createRangeIn'](_0x2eab2a['content'])['getItems']())_0x3b174b['is']('element','suggestion-td')&&_0x1a02d8['push'](_0x3b174b);_0x3d3f0c['change'](_0x378a2c=>{for(const _0x413fbb of _0x1a02d8)_0x378a2c['move'](_0x378a2c['createRangeIn'](_0x413fbb),_0x378a2c['createPositionBefore'](_0x413fbb)),_0x378a2c['remove'](_0x413fbb);});});}}function Oe(_0x452008){if(_0x452008['isEmpty'])return!0x0;const _0x2a305d=_0x452008['getChild'](0x0);return _0x2a305d['is']('element','paragraph')&&_0x2a305d['isEmpty'];}function Ue(_0x5f49c6,_0x5c4dfa={},_0x2657cc){for(const {isAnchor:_0x39d751,cellHeight:_0x29a9bc,cellWidth:_0x431514}of _0x2657cc['createTableWalker'](_0x5f49c6,{'includeAllSlots':!0x0,..._0x5c4dfa}))if(!_0x39d751||0x1!=_0x29a9bc||0x1!=_0x431514)return!0x1;return!0x0;}class $t extends _0x450ea2{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1713a6=this['editor']['plugins']['get']('TrackChangesEditing');_0x1713a6['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1713a6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1713a6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1713a6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1713a6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1713a6['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x107540,_0x36ebc8){const _0xc1739=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fb753=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x254116=_0x36ebc8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x14cbac=_0x4fb753['getColumnGroupElement'](_0x254116);let _0x3afe90=_0x14cbac?_0x4fb753['getTableColumnsWidths'](_0x14cbac):null,_0x3024f1=_0x254116['getAttribute']('tableWidth')||null;const _0x51c330=_0x36ebc8['tableWidth']||_0x3024f1,_0x3bb474=_0x36ebc8['columnWidths']||_0x3afe90,_0x319df3=this['editor']['plugins']['get']('Users')['me'];for(const _0x58e531 of _0xc1739['getSuggestions']()){const _0x5d7273=_0x58e531['getContainedElement']();if('resizeTable'===_0x58e531['subType']&&_0x5d7273===_0x254116){_0x58e531['author']!==_0x319df3&&_0x58e531['discard']();const _0x646be5=_0x58e531['data']['commandParams'];_0x3024f1=_0x646be5[0x0]['tableWidth'],_0x3afe90=_0x646be5[0x0]['columnWidths'];break;}}_0x107540({'table':_0x254116,'tableWidth':_0x51c330,'columnWidths':_0x3bb474}),_0xc1739['markBlockFormat'](_0x254116,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3024f1,'columnWidths':_0x3afe90}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3afba4){if('formatBlock'!=_0x3afba4['type']&&'formatInline'!=_0x3afba4['type'])return;const {data:_0x4989b7}=_0x3afba4;if(_0x4989b7&&'resizeTable'===_0x4989b7['formatGroupId']){const _0x13f8ce='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x13f8ce)};}}}class Bt extends _0x450ea2{['afterInit'](){const _0x545233=this['editor'];_0x545233['plugins']['has']('Template')&&_0x545233['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x450ea2{['afterInit'](){const _0x197c0d=this['editor'];if(!_0x197c0d['commands']['get']('insertTableOfContents'))return;_0x197c0d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1c4d22=_0x197c0d['plugins']['get']('TrackChangesEditing'),_0x5eef6d=_0x197c0d['locale'];_0x1c4d22['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3bd074=>c(_0x5eef6d,'ELEMENT_TABLE_OF_CONTENTS',_0x3bd074));}}class Rt extends _0x450ea2{['afterInit'](){const _0x40f02b=this['editor'];if(!_0x40f02b['plugins']['has']('Title'))return;const _0x2efcf5=_0x40f02b['plugins']['get']('TrackChangesEditing');_0x2efcf5['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x40f02b['locale'],'ELEMENT_TITLE')),_0x40f02b['model']['document']['registerPostFixer'](_0x4bc11a=>{let _0x2b13e5=!0x1;const _0x50cd86=Array['from'](_0x40f02b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21e489,data:_0x3511e6}of _0x50cd86){const {group:_0x16f932}=_0x2efcf5['_splitMarkerName'](_0x21e489);if('suggestion'!==_0x16f932||!_0x3511e6['newRange'])continue;const _0x574154=_0x3511e6['newRange'],_0x252f95=_0x574154['end']['nodeBefore'];if(!_0x252f95||!_0x252f95['is']('element','title-content'))continue;if(!_0x574154['start']['isTouching'](_0x574154['end']))continue;const _0x4e8a40=_0x40f02b['model']['schema']['getNearestSelectionRange'](_0x574154['end'],'forward');if(_0x4e8a40&&_0x4e8a40['isCollapsed']){const _0x290dd4=_0x4bc11a['createRange'](_0x574154['start'],_0x4e8a40['start']);_0x290dd4['isEqual'](_0x574154)||(_0x4bc11a['updateMarker'](_0x21e489,{'range':_0x290dd4}),_0x2b13e5=!0x0);}_0x2b13e5||(_0x4bc11a['removeMarker'](_0x21e489),_0x2b13e5=!0x0);}return _0x2b13e5;});}}class xt extends _0x450ea2{['afterInit'](){const _0x348fee=this['editor'],_0x318beb=_0x348fee['plugins']['get']('TrackChangesEditing');_0x348fee['plugins']['has']('Uploadcare')&&(_0x318beb['enableCommand']('uploadcare'),_0x348fee['plugins']['has']('UploadcareImageEdit')&&(_0x318beb['enableCommand']('uploadcareImageEdit'),_0x318beb['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x318beb['registerBlockAttribute']('uploadcareImageId'),_0x318beb['descriptionFactory']['registerDescriptionCallback'](_0x5f4fb2=>{if('attribute'!=_0x5f4fb2['type'])return;const {data:_0x858e31}=_0x5f4fb2;return _0x858e31&&'uploadcareImageId'==_0x858e31['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x450ea2{['afterInit'](){const _0x5cf07c=this['editor'],_0x227f39=_0x5cf07c['plugins']['get']('TrackChangesEditing');_0x5cf07c['plugins']['has']('UndoEditing')&&(_0x227f39['enableCommand']('undo'),_0x227f39['enableCommand']('redo'));}}class Et extends _0x450ea2{static get['requires'](){return[Ct];}['afterInit'](){const _0x589b31=this['editor'];if(!_0x589b31['plugins']['has']('TableCaptionEditing'))return;_0x589b31['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x450ea2{['tableProperties'];['tableCellProperties'];constructor(_0x51c7a5){super(_0x51c7a5),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x12066e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xf4c7b9 of this['tableProperties'])_0x12066e['enableCommand'](_0xf4c7b9,(_0x28f57b,_0x1b3e3c)=>{const _0x50b798=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xf4c7b9,[_0x50b798],this['tableProperties'],'tableProperties',_0x28f57b,_0x1b3e3c);});_0x12066e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x12066e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x12066e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3310c8,_0xacadf3)=>this['handleDiscardAction'](this['tableProperties'],_0x3310c8,_0xacadf3)),_0x12066e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x582f6c of this['tableCellProperties'])_0x12066e['enableCommand'](_0x582f6c,(_0x42b0a7,_0x6654b4)=>{const _0x1aea98=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x582f6c,_0x1aea98,this['tableCellProperties'],'tableCellProperties',_0x42b0a7,_0x6654b4);});_0x12066e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x12066e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x12066e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5365af,_0x237f0f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5365af,_0x237f0f)),_0x12066e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x12066e['descriptionFactory']['registerDescriptionCallback'](_0x1ae583=>this['handleSuggestionDescription'](_0x1ae583));}['_handlePropertyChange'](_0x4efcaf,_0x19e7e9,_0x545861,_0x4cfd74,_0x30e239,_0x3a13fe){const _0x3102ae=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3a13fe['batch'],()=>{for(const _0x501b5c of _0x19e7e9){if(this['_getSuggestion'](_0x501b5c,_0x4cfd74))_0x30e239(_0x3a13fe);else{const _0x5b2c63={};for(const _0x39f3c2 of _0x545861){const _0x48858e=_0x501b5c['getAttribute'](_0x39f3c2);void 0x0!==_0x48858e&&(_0x5b2c63[_0x39f3c2]=_0x48858e);}_0x30e239(_0x3a13fe),_0x3102ae['markBlockFormat'](_0x501b5c,{'commandParams':[_0x5b2c63]},[],_0x4cfd74);}}});}['handleDiscardAction'](_0x561cbc,_0xfcb7f,_0x160ed3){const _0x4dc0fc=_0xfcb7f[0x0]['start']['nodeAfter'],_0x556cb1=_0x160ed3['commandParams'][0x0];this['editor']['model']['change'](_0x1376ae=>{for(const _0x427d69 of _0x561cbc)void 0x0!==_0x556cb1[_0x427d69]?_0x1376ae['setAttribute'](_0x427d69,_0x556cb1[_0x427d69],_0x4dc0fc):_0x1376ae['removeAttribute'](_0x427d69,_0x4dc0fc);});}['handleSuggestionDescription'](_0x15202c){if(_0x15202c['data'])switch(_0x15202c['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1795f7,_0x514860){const _0x28e4c3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2b64b8 of _0x28e4c3['getSuggestions']({'skipNotAttached':!0x0})){const _0x3d0cd5=_0x2b64b8['getContainedElement']();if(_0x2b64b8['subType']===_0x514860&&_0x3d0cd5===_0x1795f7)return _0x2b64b8;}return null;}}const u='$elementName';class p extends _0x450ea2{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x40ec95,_0x4993d3,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa0d1df){super(_0xa0d1df),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x269013,_0x56a7fe,_0x18206b,_0x46c2dd)=>{this['_model']['change'](()=>{for(const _0x1f2286 of[..._0x46c2dd,..._0x18206b])this['_model']['markers']['has'](_0x1f2286)&&_0xa0d1df['editing']['reconvertMarker'](_0x1f2286);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xa0d1df['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0xa0d1df['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xa0d1df['config']['get']('trackChanges.trackFormatChanges'),_0xa0d1df['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xa0d1df['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xa0d1df,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x11a00f=this['editor'],_0x256478=(_0x2fc46d,_0x40ae5f)=>{if('attribute'!=_0x2fc46d)return'ck-suggestion-marker-'+_0x2fc46d;const _0x46d3ae=_0x40ae5f['split']('|')[0x0];return this['_isBlockAttribute'](_0x46d3ae)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x11a00f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2d529a=>{const {id:_0x4ff814,authorId:_0x4d9800,type:_0xf87441,subType:_0x593a15}=this['_splitMarkerName'](_0x2d529a['markerName']),_0x1a8077=['ck-suggestion-marker',_0x256478(_0xf87441,_0x593a15)];let _0x51faf1=0xbb8;return this['activeMarkers']['includes'](_0x2d529a['markerName'])&&(_0x1a8077['push']('ck-suggestion-marker--active'),_0x51faf1=0xbc2),'deletion'==_0xf87441&&(_0x51faf1+=0x5),{'classes':_0x1a8077,'attributes':{'data-suggestion':_0x4ff814,'data-author-id':_0x4d9800},'priority':_0x51faf1};}}),_0x11a00f['conversion']['for']('dataDowncast')['add'](_0x4aa02f=>{_0x4aa02f['on']('addMarker:suggestion',(_0x52c338,_0x328bec,_0x1e7501)=>{if(!_0x1e7501['options']['showSuggestionHighlights'])return;const _0x7ad0a6=_0x328bec['item'];if(!_0x7ad0a6)return;const _0x3e6917=_0x1e7501['mapper']['toViewElement'](_0x7ad0a6);_0x11a00f['model']['schema']['isObject'](_0x7ad0a6)&&_0x3e6917&&!_0x3e6917['getCustomProperty']('widget')&&_0x3e6917['is']('containerElement')&&_0xbf85c7(_0x3e6917,_0x1e7501['writer']);},{'priority':'high'});}),_0x11a00f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x54e4c7,_0x2a7af5)=>{if(!_0x2a7af5['options']['showSuggestionHighlights'])return null;const {type:_0x3298f8,subType:_0x417b89}=this['_splitMarkerName'](_0x54e4c7['markerName']);return{'classes':['ck-suggestion-marker',_0x256478(_0x3298f8,_0x417b89)],'priority':0xbb8};}});const _0x5bca22=({showActiveMarkers:_0xb89ae6=!0x0,isAttributeSuggestion:_0x36cf11=!0x1}={})=>(_0x2e8100,_0x1ae211,_0xdb968)=>{if(!_0x1ae211['item'])return;const {id:_0x22d774,authorId:_0xccd024}=this['_splitMarkerName'](_0x1ae211['markerName']);if(_0x36cf11){const _0x278d31=this['_suggestions']['get'](_0x22d774),_0x4ceb8a=this['_getAttributeKey'](_0x278d31);if(!this['_isBlockAttribute'](_0x4ceb8a))return;}if(_0x1ae211['item']['is']('selection'))return void _0xdb968['consumable']['consume'](_0x1ae211['item'],_0x2e8100['name']);const _0x3cc415=_0xdb968['mapper']['toViewElement'](_0x1ae211['item']);if(_0x1ae211['item']['is']('element')&&_0x11a00f['model']['schema']['isBlock'](_0x1ae211['item'])&&!_0x3cc415['getCustomProperty']('addHighlight')){_0xdb968['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3cc415),_0xdb968['writer']['setAttribute']('data-suggestion',_0x22d774,_0x3cc415),_0xdb968['writer']['setAttribute']('data-author-id',_0xccd024,_0x3cc415),_0xdb968['mapper']['bindElementToMarker'](_0x3cc415,_0x1ae211['markerName']),_0xb89ae6&&(this['activeMarkers']['includes'](_0x1ae211['markerName'])?_0xdb968['writer']['addClass']('ck-suggestion-marker--active',_0x3cc415):_0xdb968['writer']['removeClass']('ck-suggestion-marker--active',_0x3cc415));for(const _0x4a27cd of _0x11a00f['model']['createRangeIn'](_0x1ae211['item'])['getItems']())_0xdb968['consumable']['consume'](_0x4a27cd,_0x2e8100['name']);_0xdb968['consumable']['consume'](_0x1ae211['item'],_0x2e8100['name']);}};_0x11a00f['conversion']['for']('dataDowncast')['add'](_0x321158=>{_0x321158['on']('addMarker:suggestion:formatBlock',(_0x268e72,_0x2d49fe,_0x1d36de)=>{_0x1d36de['options']['showSuggestionHighlights']&&_0x5bca22({'showActiveMarkers':!0x1})(_0x268e72,_0x2d49fe,_0x1d36de);},{'priority':'highest'});}),_0x11a00f['conversion']['for']('dataDowncast')['add'](_0x29de32=>{_0x29de32['on']('addMarker:suggestion:attribute',(_0x58809d,_0x3013b0,_0x255892)=>{_0x255892['options']['showSuggestionHighlights']&&_0x5bca22({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x58809d,_0x3013b0,_0x255892);},{'priority':'highest'});}),_0x11a00f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x353716,_0xc0f0e5)=>_0xc0f0e5['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x353716['substr'](0xb)}}),_0x11a00f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x557328,{writer:_0x14a78b})=>{let _0x392888='suggestion:'+_0x557328['getAttribute']('suggestion-type')+':'+_0x557328['getAttribute']('id');return _0x557328['getAttribute']('marker-count')&&(_0x392888+=':'+_0x557328['getAttribute']('marker-count')),_0x14a78b['createElement']('$marker',{'data-name':_0x392888});}}),_0x11a00f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x11a00f['conversion']['for']('editingDowncast')['add'](_0x23aaa1=>{_0x23aaa1['on']('addMarker:suggestion:formatBlock',_0x5bca22(),{'priority':'high'});}),_0x11a00f['conversion']['for']('editingDowncast')['add'](_0x53eff9=>{_0x53eff9['on']('addMarker:suggestion:attribute',_0x5bca22({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x11a00f['conversion']['for']('editingDowncast')['add'](_0x5af83f=>{_0x5af83f['on']('removeMarker:suggestion:formatBlock',(_0x432d30,_0xb8abce,_0x370d0a)=>{const _0x20361a=_0x370d0a['mapper']['markerNameToElements'](_0xb8abce['markerName']);if(_0x20361a){for(const _0x11fd17 of _0x20361a)_0x11fd17['getCustomProperty']('addHighlight')||(_0x370d0a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x11fd17),_0x370d0a['writer']['removeAttribute']('data-suggestion',_0x11fd17),_0x370d0a['writer']['removeAttribute']('data-author-id',_0x11fd17),_0x370d0a['mapper']['unbindElementFromMarkerName'](_0x11fd17,_0xb8abce['markerName']));}},{'priority':'high'});}),_0x11a00f['conversion']['for']('editingDowncast')['add'](_0xa32ce2=>{_0xa32ce2['on']('removeMarker:suggestion:attribute',(_0x30436e,_0x32b2b4,_0x57785a)=>{const _0x472a3f=_0x57785a['mapper']['markerNameToElements'](_0x32b2b4['markerName']);if(!_0x472a3f)return;const {id:_0x3afd91}=this['_splitMarkerName'](_0x32b2b4['markerName']),_0x5f1d88=this['_suggestions']['get'](_0x3afd91),_0x1ace09=this['_getAttributeKey'](_0x5f1d88);if(this['_isBlockAttribute'](_0x1ace09)){for(const _0x33e62b of _0x472a3f)_0x33e62b['getCustomProperty']('addHighlight')||(_0x57785a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x33e62b),_0x57785a['writer']['removeAttribute']('data-suggestion',_0x33e62b),_0x57785a['writer']['removeAttribute']('data-author-id',_0x33e62b),_0x57785a['mapper']['unbindElementFromMarkerName'](_0x33e62b,_0x32b2b4['markerName']));}},{'priority':'high'});}),_0x11a00f['model']['document']['registerPostFixer'](_0x1ec409=>{let _0x377aff=!0x1;const _0xd11873=Array['from'](_0x11a00f['model']['document']['differ']['getChangedMarkers']()),_0x18db65=new Set();for(const {name:_0x1731f7,data:_0x4410f6}of _0xd11873){const {group:_0x1dddd2,type:_0x20f2d3,subType:_0x53b3c9,id:_0x316218}=this['_splitMarkerName'](_0x1731f7);if('suggestion'!==_0x1dddd2)continue;const _0x4ee008=this['_suggestions']['get'](_0x316218);if(null!=_0x4410f6['newRange']){'formatInline'==_0x20f2d3&&(_0x377aff=_0x377aff||Lt(_0x4410f6['newRange'],_0x1731f7,_0x1ec409,_0x11a00f['model']['schema']));const _0x16637e='attribute'==_0x20f2d3&&this['_isBlockAttribute'](_0x53b3c9['split']('|')[0x0]);if(_0x4410f6['newRange']['isCollapsed']||'$graveyard'==_0x4410f6['newRange']['root']['rootName']||'formatBlock'==_0x20f2d3&&!Kt(_0x4410f6['newRange'])||_0x16637e&&!Kt(_0x4410f6['newRange'])||'deletion'==_0x20f2d3&&!(!Gt(_0x304f2c=_0x4410f6['newRange'])&&!function(_0x2b0e33){return _0x2b0e33['start']['parent']==_0x2b0e33['end']['nodeBefore']&&_0x2b0e33['start']['isAtEnd'];}(_0x304f2c)))_0x1ec409['removeMarker'](_0x1731f7),_0x377aff=!0x0;else{if(!_0x4ee008||!_0x4ee008['isInContent'])continue;if(_0x4410f6['newRange']&&_0x4410f6['oldRange']&&_0x4410f6['newRange']['isEqual'](_0x4410f6['oldRange']))continue;_0x18db65['add'](_0x4ee008);}}}var _0x304f2c;return _0x18db65['size']>0x0&&(_0x377aff=!!this['_joinWithAdjacentSuggestions'](_0x18db65)||_0x377aff),_0x377aff;}),_0x11a00f['model']['document']['registerPostFixer'](_0x178eff=>{let _0x37d3e1=!0x1;for(const _0x267283 of _0x11a00f['model']['document']['differ']['getChanges']())if('insert'==_0x267283['type'])for(const _0x2ac98a of this['_suggestions']['values']()){if(_0x2ac98a['isMultiRange']||!_0x2ac98a['isInContent'])continue;const _0x347997='formatBlock'==_0x2ac98a['type'],_0x4fd148=this['_getAttributeKey'](_0x2ac98a),_0x530197=_0x4fd148&&this['_isBlockAttribute'](_0x4fd148);if(!_0x347997&&!_0x530197)continue;const _0xb8cf18=_0x2ac98a['getFirstRange']();if(_0xb8cf18['start']['parent']!=_0xb8cf18['end']['parent']&&!_0xb8cf18['end']['isAtEnd']){const _0x1be142=_0x11a00f['model']['createPositionAt'](_0xb8cf18['start']['nodeAfter'],'end'),_0x3af9a2=_0x11a00f['model']['createRange'](_0xb8cf18['start'],_0x1be142);_0x178eff['updateMarker'](_0x2ac98a['getFirstMarker'](),{'range':_0x3af9a2}),_0x37d3e1=!0x0;}}return _0x37d3e1;}),_0x11a00f['model']['document']['registerPostFixer'](_0x3c5354=>this['_processAttributeChanges'](_0x3c5354)),_0x11a00f['model']['document']['registerPostFixer'](_0x263cbd=>!_0x263cbd['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x263cbd)),_0x11a00f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x11a00f['model']['document']['on']('change:data',(_0x20d450,_0x3a7d68)=>{if(!_0x3a7d68['isLocal']||_0x3a7d68['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1a6fb4=_0x11a00f['model']['document']['differ']['getChanges']();if(0x0==_0x1a6fb4['length'])return;const _0x5470fc=[],_0x5990a6=_0x1a6fb4['filter'](_0xa9ddf2=>'attribute'==_0xa9ddf2['type']),_0x1252a1=_0x1a6fb4['filter'](_0x37a063=>'insert'==_0x37a063['type']&&'$text'!=_0x37a063['name']);for(const _0x8a2274 of _0x5990a6)this['_isRegisteredAttribute'](_0x8a2274['attributeKey'])&&_0x5470fc['push']({'key':_0x8a2274['attributeKey'],'newValue':_0x8a2274['attributeNewValue'],'oldValue':_0x8a2274['attributeOldValue'],'range':Ht(_0x8a2274['range'],_0x11a00f['model'])});for(const _0x239fdd of _0x1252a1){if('rename'!=_0x239fdd['action']&&'refresh'!=_0x239fdd['action'])continue;const _0x7da605=qt(_0x239fdd['position']['nodeAfter'],_0x11a00f['model']),_0x2e8aad=_0x239fdd['before'];'rename'==_0x239fdd['action']&&_0x5470fc['push']({'key':u,'newValue':_0x239fdd['name'],'oldValue':_0x2e8aad['name'],'range':_0x7da605});for(const [_0x1d5dd2,_0x512896]of _0x2e8aad['attributes']){if(!this['_isRegisteredAttribute'](_0x1d5dd2))continue;const _0x43e606=_0x239fdd['attributes']['get'](_0x1d5dd2);_0x512896!==_0x43e606&&_0x5470fc['push']({'key':_0x1d5dd2,'newValue':_0x43e606,'oldValue':_0x512896,'range':_0x7da605});}for(const [_0x3a5820,_0x4ddad8]of _0x239fdd['attributes'])this['_isRegisteredAttribute'](_0x3a5820)&&(_0x2e8aad['attributes']['has'](_0x3a5820)||_0x5470fc['push']({'key':_0x3a5820,'newValue':_0x4ddad8,'oldValue':null,'range':_0x7da605}));}0x0!=_0x5470fc['length']&&_0x11a00f['model']['enqueueChange'](_0x3a7d68,_0x4faf61=>{const _0x1faf1c=_0x38e031();for(const {range:_0x475250,key:_0x19118d,oldValue:_0x458827,newValue:_0x586bf7}of _0x5470fc)this['markAttributeChange'](_0x475250,_0x19118d,_0x458827,_0x586bf7,{'groupId':_0x1faf1c});this['_reduceExistingSuggestions'](_0x4faf61,_0x5470fc);});},{'priority':'lowest'}),_0x11a00f['model']['markers']['on']('update:suggestion',(_0x2e824b,_0x24aad2,_0x10c266)=>{if(null==_0x10c266){const {id:_0x195f93}=this['_splitMarkerName'](_0x24aad2['name']),_0x256a3f=this['_suggestions']['get'](_0x195f93);_0x256a3f&&_0x256a3f['addMarkerName'](_0x24aad2['name']);}}),_0x11a00f['model']['document']['on']('change:data',()=>{const _0x2d5c0a=Array['from'](_0x11a00f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2c0da2=>'suggestion'===this['_splitMarkerName'](_0x2c0da2['name'])['group']);if(0x0===_0x2d5c0a['length'])return;_0x2d5c0a['sort']((_0x3deb52,_0x40e765)=>{const _0xb5426=_0x3deb52['data']['oldRange'],_0x3a0fa5=_0x40e765['data']['oldRange'];return null===_0xb5426&&null===_0x3a0fa5?0x0:null===_0xb5426&&null!==_0x3a0fa5?-0x1:null!==_0xb5426&&null===_0x3a0fa5?0x1:_0xb5426['start']['isBefore'](_0x3a0fa5['start'])?-0x1:0x1;});const _0x47bf6b=new Set(),_0x2e0f53=new Set();for(const {name:_0x291b00,data:_0x4727d4}of _0x2d5c0a){const {id:_0x41e9e8}=this['_splitMarkerName'](_0x291b00);if(null===_0x4727d4['oldRange']){const _0x8627c0=this['_handleNewSuggestionMarker'](_0x291b00);_0x2e0f53['add'](_0x8627c0);}else{const _0x1227a9=this['_suggestions']['get'](_0x41e9e8);null!==_0x4727d4['newRange']||_0x1227a9['isInContent']?(_0x47bf6b['add'](_0x1227a9['head']),_0x2e0f53['add'](_0x1227a9)):this['_removeSuggestion'](_0x1227a9);}}_0x2e0f53['size']>0x0&&this['_refreshSuggestionsChain'](_0x2e0f53);for(const _0x47a879 of _0x47bf6b)this['fire']('suggestionChanged',_0x47a879);}),_0x11a00f['model']['on']('applyOperation',(_0x4713c9,_0x564f23)=>{const _0x4d7668=_0x564f23[0x0];if(!this['_suggestions']['size'])return;if(!_0x4d7668['isDocumentOperation'])return;if(_0x4d7668['batch']['isUndo']||!_0x4d7668['batch']['isLocal'])return;let _0x3ba014,_0x3070cb;switch(_0x4d7668['type']){case'insert':_0x3ba014=_0x11a00f['model']['createPositionAt'](_0x4d7668['position']),_0x3070cb=_0x3ba014['getShiftedBy'](_0x4d7668['howMany']);break;case'split':_0x3ba014=_0x11a00f['model']['createPositionAt'](_0x4d7668['splitPosition']),_0x3070cb=_0x11a00f['model']['createPositionAt'](_0x4d7668['moveTargetPosition']);break;case'move':_0x3ba014=_0x11a00f['model']['createPositionAt'](_0x4d7668['targetPosition']),_0x3070cb=_0x3ba014['getShiftedBy'](_0x4d7668['howMany']);break;default:return;}const _0x4890d7=_0x11a00f['model']['createRange'](_0x3ba014,_0x3070cb);_0x11a00f['model']['change'](()=>{for(const {suggestion:_0x526c3f,meta:_0x3567ef}of this['_findSuggestions'](_0x4890d7)){if(_0x526c3f['isMultiRange'])continue;if('formatInline'==_0x526c3f['type'])continue;const _0x2bf150=this['_getAttributeKey'](_0x526c3f);if(_0x2bf150&&this['_isBlockAttribute'](_0x2bf150)&&'split'!=_0x4d7668['type'])continue;const _0x42fbd0=_0x526c3f['data']&&_0x526c3f['data']['multipleBlocks'];('formatBlock'!=_0x526c3f['type']||'split'==_0x4d7668['type']&&!_0x42fbd0)&&(_0x3567ef['containsRangeInObject']||'insertion'==_0x526c3f['type']&&_0x3567ef['isOwn']||_0x526c3f['getFirstRange']()['containsRange'](_0x4890d7)&&this['_breakSuggestionMarker'](_0x526c3f,_0x3ba014,_0x3070cb));}});},{'priority':'lowest'}),_0x11a00f['model']['on']('deleteContent',(_0x1539dc,_0x4e186f)=>{const _0x27ea2c=_0x4e186f[0x0],_0x511563=_0x4e186f[0x1];if(_0x511563&&_0x511563['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x27ea2c['isCollapsed'])return;const _0x46abae=_0x11a00f['model']['schema'],{start:_0x382cbe,end:_0x1ff9ea}=_0x27ea2c['getFirstRange'](),_0x3ada9a=_0x382cbe['nodeAfter']&&_0x46abae['isLimit'](_0x382cbe['nodeAfter'])?null:_0x46abae['getNearestSelectionRange'](_0x382cbe,'forward'),_0x353220=_0x1ff9ea['nodeBefore']&&_0x46abae['isLimit'](_0x1ff9ea['nodeBefore'])?null:_0x46abae['getNearestSelectionRange'](_0x1ff9ea,'backward'),_0x30b890=_0x11a00f['model']['createRange'](_0x3ada9a?_0x3ada9a['start']:_0x382cbe,_0x353220?_0x353220['end']:_0x1ff9ea);_0x11a00f['model']['change'](_0x20af26=>{this['markDeletion'](_0x30b890);const _0x495c7a=_0x11a00f['model']['schema']['getNearestSelectionRange'](_0x30b890['start']);_0x27ea2c['is']('documentSelection')?_0x20af26['setSelection'](_0x495c7a):_0x27ea2c['setTo'](_0x495c7a);}),_0x1539dc['stop']();},{'priority':_0x1f8415['normal']+0xa}),_0x11a00f['model']['on']('insertContent',(_0x466201,_0xd07d22)=>{const _0x4b4b0d=_0xd07d22[_0xd07d22['length']-0x1];_0x4b4b0d&&_0x4b4b0d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x11a00f['model']['change'](()=>{let _0x545d29=_0x11a00f['model']['insertContent'](_0xd07d22[0x0],_0xd07d22[0x1],_0xd07d22[0x2],{'forceDefaultExecution':!0x0});if(!_0x545d29)return;_0x466201['return']=_0x545d29['clone']();const _0x5aca0e=_0x545d29['end']['nodeBefore'],_0x12275b=_0x11a00f['model']['schema'];_0x5aca0e&&_0x12275b['isBlock'](_0x5aca0e)&&!_0x12275b['isObject'](_0x5aca0e)&&(_0x545d29=_0x11a00f['model']['createRange'](_0x545d29['start'],_0x11a00f['model']['createPositionAt'](_0x5aca0e,'end'))),this['markInsertion'](_0x545d29);}),_0x466201['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x17e618=new O(_0x11a00f,this['_suggestions']);_0x11a00f['commands']['add']('acceptSuggestion',_0x17e618),this['enableCommand']('acceptSuggestion');const _0x5c046e=new R(_0x11a00f,this['_suggestions']);_0x11a00f['commands']['add']('discardSuggestion',_0x5c046e),this['enableCommand']('discardSuggestion'),_0x11a00f['commands']['add']('acceptAllSuggestions',new x(_0x11a00f,_0x17e618,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x11a00f['commands']['add']('discardAllSuggestions',new x(_0x11a00f,_0x5c046e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x11a00f['commands']['add']('acceptSelectedSuggestions',new E(_0x11a00f,_0x17e618,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x11a00f['commands']['add']('discardSelectedSuggestions',new E(_0x11a00f,_0x5c046e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2aeb68=_0x11a00f['plugins']['get']('CommentsRepository');this['listenTo'](_0x2aeb68,'addComment',(_0x58af5d,{threadId:_0x3ead06})=>{const _0x9dc195=this['_suggestions']['get'](_0x3ead06);_0x9dc195&&_0x9dc195['commentThread']&&0x1===_0x9dc195['commentThread']['length']&&this['_updateSuggestionData'](_0x3ead06,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2aeb68,'removeComment',(_0x4524e5,{threadId:_0x366e4f})=>{const _0x44b40f=this['_suggestions']['get'](_0x366e4f);_0x44b40f&&_0x44b40f['commentThread']&&!_0x44b40f['commentThread']['length']&&this['_updateSuggestionData'](_0x366e4f,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x281252){const _0x12e3be=_0x31a706([0x37,0x30,0x43,0x69,0x76,0x45,0x31,0x34,0x68,0x46,0x49,0x73,0x38,0x72,0x52,0x55,0x62,0x61,0x47,0x65,0x42,0x74,0x75,0x5a,0x4d,0x63,0x70,0x53,0x4f,0x54,0x32,0x64,0x6c,0x36,0x4c,0x50,0x78,0x51,0x6f,0x71,0x7a,0x44,0x6b,0x4a,0x6a,0x59,0x66,0x6d,0x35,0x41,0x39,0x58,0x4b,0x79,0x48,0x6e,0x56,0x77,0x33,0x67,0x4e,0x57]),_0xeaaf6e=0x133d8296,_0x27c22b=0x133ae3ce^_0xeaaf6e,_0x4bd05a=window[_0x31a706([0x44,0x61,0x74,0x65])][_0x31a706([0x6e,0x6f,0x77])](),_0x1e04db=_0x281252[_0x31a706([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x141d6a=new window[(_0x31a706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1abe06=>{_0x1e04db[_0x31a706([0x6f,0x6e,0x63,0x65])](_0x31a706([0x72,0x65,0x61,0x64,0x79]),_0x1abe06);}),_0x5cb2a6={[_0x31a706([0x6b,0x74,0x79])]:_0x31a706([0x45,0x43]),[_0x31a706([0x75,0x73,0x65])]:_0x31a706([0x73,0x69,0x67]),[_0x31a706([0x63,0x72,0x76])]:_0x31a706([0x50,0x2d,0x32,0x35,0x36]),[_0x31a706([0x78])]:_0x31a706([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]),[_0x31a706([0x79])]:_0x31a706([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]),[_0x31a706([0x61,0x6c,0x67])]:_0x31a706([0x45,0x53,0x32,0x35,0x36])},_0x36697d=_0x1e04db[_0x31a706([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x31a706([0x67,0x65,0x74])](_0x31a706([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3fd6e7(){let _0x411235,_0xab01e3=null,_0x5b4bdf=null;try{if(_0x36697d==_0x31a706([0x47,0x50,0x4c]))return _0x31a706([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x411235=_0x48dfbb(),!_0x411235)return _0x31a706([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x411235[_0x31a706([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b4bdf=_0x147983(_0x411235[_0x31a706([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x411235[_0x31a706([0x6a,0x74,0x69])])),await _0x3c8e79()?_0x12bcdd()?_0x56e865()?_0x31a706([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x568417()?(_0x411235[_0x31a706([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31a706([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xab01e3=_0x4067e3(_0x31a706([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x411235[_0x31a706([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31a706([0x74,0x72,0x69,0x61,0x6c])&&(_0xab01e3=_0x4067e3(_0x31a706([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3bed46()):_0x31a706([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x31a706([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x31a706([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x19583b){return _0x31a706([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x56e865(){const _0x22f631=[_0x31a706([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x31a706([0x74,0x72,0x69,0x61,0x6c])][_0x31a706([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x411235[_0x31a706([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4bd05a/0x3e8:0xe10*_0x27c22b;return _0x411235[_0x31a706([0x65,0x78,0x70])]<_0x22f631;}function _0x12bcdd(){const _0x2d8254=_0x411235[_0x31a706([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2d8254)return!0x1;if(_0x2d8254[_0x31a706([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31a706([0x2a])))return!0x0;if(_0x2d8254[_0x31a706([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31a706([0x54,0x43])))return!0x0;if(_0x2d8254[_0x31a706([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31a706([0x52,0x54,0x43]))){if(_0x16588c())return!0x0;if(_0x576731()||_0x2e5c89())return!0x0;}return!0x1;}function _0x568417(){const _0x9bd4bc=_0x411235[_0x31a706([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9bd4bc||0x0==_0x9bd4bc[_0x31a706([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xacc715}=new URL(window[_0x31a706([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9bd4bc[_0x31a706([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xacc715))return!0x0;const _0x189ee6=_0xacc715[_0x31a706([0x73,0x70,0x6c,0x69,0x74])](_0x31a706([0x2e]));return _0x9bd4bc[_0x31a706([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x103986=>_0x103986[_0x31a706([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31a706([0x2a])))[_0x31a706([0x6d,0x61,0x70])](_0x227b9c=>_0x227b9c[_0x31a706([0x73,0x70,0x6c,0x69,0x74])](_0x31a706([0x2e])))[_0x31a706([0x73,0x6f,0x6d,0x65])](_0x22f4fb=>_0x189ee6[_0x31a706([0x65,0x76,0x65,0x72,0x79])]((_0x118499,_0x5c7dec)=>_0x22f4fb[_0x5c7dec]===_0x118499||_0x22f4fb[_0x5c7dec]===_0x31a706([0x2a])));}function _0x3bed46(){return _0xab01e3&&_0x5b4bdf?new window[(_0x31a706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4377f2,_0x593b1b)=>{_0xab01e3[_0x31a706([0x74,0x68,0x65,0x6e])](_0x4377f2,_0x593b1b),_0x5b4bdf[_0x31a706([0x74,0x68,0x65,0x6e])](_0xc4e5f9=>{_0xc4e5f9!=_0x31a706([0x56,0x61,0x6c,0x69,0x64])&&_0x4377f2(_0xc4e5f9);},_0x593b1b);}):_0xab01e3||_0x5b4bdf||_0x31a706([0x56,0x61,0x6c,0x69,0x64]);}}function _0x147983(_0x21856e,_0x2786cc){return new window[(_0x31a706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e62bd=>{if(_0x593bd2())return _0x4e62bd(_0x31a706([0x56,0x61,0x6c,0x69,0x64]));_0x9fc813(),_0x1e04db[_0x31a706([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x31a706([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x12fea8=!0x1;const _0x16f851=_0x38e031();function _0x2b2410(_0x5183c2){return!!_0x5183c2&&(typeof _0x5183c2===_0x31a706([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5183c2===_0x31a706([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5183c2[_0x31a706([0x74,0x68,0x65,0x6e])]===_0x31a706([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5183c2[_0x31a706([0x63,0x61,0x74,0x63,0x68])]===_0x31a706([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c0c0d(_0xdbb9a9){_0x2afd0b(_0xdbb9a9)[_0x31a706([0x74,0x68,0x65,0x6e])](_0x2aa45d=>{if(!_0x2aa45d||_0x2aa45d[_0x31a706([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x31a706([0x6f,0x6b]))return _0x31a706([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x593ef4(_0x431b7c(_0x16f851+_0x2786cc))!=_0x2aa45d[_0x31a706([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x31a706([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x31a706([0x56,0x61,0x6c,0x69,0x64]);})[_0x31a706([0x74,0x68,0x65,0x6e])](_0xb1d43=>(_0xda5250(),_0xb1d43),()=>{const _0x1fcbeb=_0xdc75c();return null==_0x1fcbeb?(_0xda5250(),_0x31a706([0x56,0x61,0x6c,0x69,0x64])):_0x31a706(_0x4bd05a-_0x1fcbeb>(0x37310696^_0xeaaf6e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x31a706([0x74,0x68,0x65,0x6e])](_0x4e62bd)[_0x31a706([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e62bd(_0x31a706([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13bf8d=0x130b6c16^_0xeaaf6e;function _0xda5250(){const _0x57d54b=_0x31a706([0x6c,0x6c,0x63,0x74,0x2d])+_0x593ef4(_0x431b7c(_0x21856e)),_0x794425=_0xc3f13c(_0x593ef4(window[_0x31a706([0x4d,0x61,0x74,0x68])][_0x31a706([0x63,0x65,0x69,0x6c])](_0x4bd05a/_0x13bf8d)));window[_0x31a706([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31a706([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57d54b,_0x794425);}function _0xdc75c(){const _0x341a1b=_0x31a706([0x6c,0x6c,0x63,0x74,0x2d])+_0x593ef4(_0x431b7c(_0x21856e)),_0x19777a=window[_0x31a706([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31a706([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x341a1b);return _0x19777a?window[_0x31a706([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc3f13c(_0x19777a),0x10)*_0x13bf8d:null;}function _0x2afd0b(_0x326954){return new window[(_0x31a706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52a13a,_0x5c54e5)=>{_0x326954[_0x31a706([0x74,0x68,0x65,0x6e])](_0x52a13a,_0x5c54e5),window[_0x31a706([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5c54e5,0x133c5656^_0xeaaf6e);});}}_0x1e04db[_0x31a706([0x6f,0x6e])](_0x31a706([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2299ce,_0x7319ce)=>{if(_0x7319ce[0x0]!=_0x21856e)return _0x4e62bd(_0x31a706([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x7319ce[0x1]={..._0x7319ce[0x1],[_0x31a706([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16f851};},{[_0x31a706([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31a706([0x68,0x69,0x67,0x68])}),_0x1e04db[_0x31a706([0x6f,0x6e])](_0x31a706([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x464a91=>{_0x2b2410(_0x464a91[_0x31a706([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x12fea8=!0x0,_0x4c0c0d(_0x464a91[_0x31a706([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x31a706([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31a706([0x6c,0x6f,0x77])}),_0x141d6a[_0x31a706([0x74,0x68,0x65,0x6e])](()=>{_0x12fea8||_0x4e62bd(_0x31a706([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x593bd2(){return _0x1e04db[_0x31a706([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31a706([0x76,0x69,0x65,0x77])][_0x31a706([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x31a706([0x61,0x75,0x74,0x6f]);}function _0x9fc813(){_0x1e04db[_0x31a706([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31a706([0x76,0x69,0x65,0x77])][_0x31a706([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31a706([0x61,0x75,0x74,0x6f]);}}function _0x4067e3(_0x22bebf){const _0x190c86=[new window[(_0x31a706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2627dd=>setTimeout(_0x2627dd,0x1334bc5a^_0xeaaf6e)),_0x141d6a[_0x31a706([0x74,0x68,0x65,0x6e])](()=>new window[(_0x31a706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x274946=>{let _0x2610ec=0x0;_0x1e04db[_0x31a706([0x6d,0x6f,0x64,0x65,0x6c])][_0x31a706([0x6f,0x6e])](_0x31a706([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x28f85c,_0x202c87)=>{_0x202c87[0x0][_0x31a706([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2610ec++,_0x2610ec==(0x133d836e^_0xeaaf6e)&&(_0x274946(),_0x28f85c[_0x31a706([0x6f,0x66,0x66])]());});}))];return window[_0x31a706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31a706([0x72,0x61,0x63,0x65])](_0x190c86)[_0x31a706([0x74,0x68,0x65,0x6e])](()=>_0x22bebf);}async function _0x23010d(){await _0x141d6a,_0x1e04db[_0x31a706([0x6d,0x6f,0x64,0x65,0x6c])][_0x31a706([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c5dd8,_0x1e04db[_0x31a706([0x6d,0x6f,0x64,0x65,0x6c])][_0x31a706([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c5dd8,_0x1e04db[_0x31a706([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x31a706([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16588c(){return _0x62681f(_0x31a706([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1fb544(_0x31a706([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x31a706([0x73,0x74,0x61,0x74,0x65])]==_0x31a706([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x576731(){return _0x62681f(_0x31a706([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 _0x2e5c89(){return _0x62681f(_0x31a706([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x44fedb(_0x1b9bf4){const _0x4c9ca3=_0x5b8fd4();_0x1e04db[_0x4c9ca3]=_0x31a706([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1b9bf4,_0x1b9bf4!=_0x31a706([0x56,0x61,0x6c,0x69,0x64])&&_0x23010d();}function _0x5b8fd4(){const _0x17150c=window[_0x31a706([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x31a706([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x31a706([0x6e,0x6f,0x77])]())[_0x31a706([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x31a706([0x2e]),'');let _0x5cfe6c=_0x31a706([0x43]);for(let _0x49fb01=0x0;_0x49fb01<_0x17150c[_0x31a706([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49fb01+=0x2){let _0x418cbe=window[_0x31a706([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17150c[_0x31a706([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49fb01,_0x49fb01+0x2));_0x418cbe>=_0x12e3be[_0x31a706([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x418cbe-=_0x12e3be[_0x31a706([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5cfe6c+=_0x12e3be[_0x418cbe];}return _0x5cfe6c;}function _0x48dfbb(){const _0x1f0b72=_0x36697d[_0x31a706([0x73,0x70,0x6c,0x69,0x74])](_0x31a706([0x2e]));if(0x3!=_0x1f0b72[_0x31a706([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x66a7bd(_0x1f0b72[0x1]);function _0x66a7bd(_0x43750b){const _0x4d119b=_0x1d3b98(_0x43750b);return _0x4d119b&&_0x249950()?_0x4d119b:null;function _0x249950(){const _0x52f174=_0x4d119b[_0x31a706([0x6a,0x74,0x69])],_0x3f20c8=window[_0x31a706([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52f174[_0x31a706([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52f174[_0x31a706([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5c957b={..._0x4d119b,[_0x31a706([0x6a,0x74,0x69])]:_0x52f174[_0x31a706([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x52f174[_0x31a706([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5c957b[_0x31a706([0x76,0x63])],_0x431b7c(_0x5c957b)==_0x3f20c8;}}}async function _0x3c8e79(){let _0x59ffbf=!0x0;try{const _0x28d7bd=_0x36697d[_0x31a706([0x73,0x70,0x6c,0x69,0x74])](_0x31a706([0x2e])),[_0x4baef3,_0x11ec71,_0x4d0ec7]=_0x28d7bd;return _0x5a2d02(_0x4baef3),await _0x2157fb(_0x4baef3,_0x11ec71,_0x4d0ec7),_0x59ffbf;}catch(_0x5a6031){return!0x1;}function _0x5a2d02(_0x11f88f){const _0x35dabf=_0x1d3b98(_0x11f88f);_0x35dabf&&_0x35dabf[_0x31a706([0x61,0x6c,0x67])]==_0x31a706([0x45,0x53,0x32,0x35,0x36])||(_0x59ffbf=!0x1);}async function _0x2157fb(_0x4cfbdc,_0x62dc8c,_0x3e56cf){const _0x59fc=window[_0x31a706([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x31a706([0x66,0x72,0x6f,0x6d])](_0x150690(_0x3e56cf),_0x1bfb7c=>_0x1bfb7c[_0x31a706([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3dfd59=new window[(_0x31a706([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x31a706([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4cfbdc+_0x31a706([0x2e])+_0x62dc8c),_0x222a45=window[_0x31a706([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x31a706([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x222a45)return;const _0x68f736=await _0x222a45[_0x31a706([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x31a706([0x6a,0x77,0x6b]),_0x5cb2a6,{[_0x31a706([0x6e,0x61,0x6d,0x65])]:_0x31a706([0x45,0x43,0x44,0x53,0x41]),[_0x31a706([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x31a706([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x31a706([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x222a45[_0x31a706([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x31a706([0x6e,0x61,0x6d,0x65])]:_0x31a706([0x45,0x43,0x44,0x53,0x41]),[_0x31a706([0x68,0x61,0x73,0x68])]:{[_0x31a706([0x6e,0x61,0x6d,0x65])]:_0x31a706([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x68f736,_0x59fc,_0x3dfd59)||(_0x59ffbf=!0x1);}}function _0x1d3b98(_0x42ff30){return _0x42ff30[_0x31a706([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x31a706([0x65,0x79]))?JSON[_0x31a706([0x70,0x61,0x72,0x73,0x65])](_0x150690(_0x42ff30)):null;}function _0x150690(_0x1c6df8){return window[_0x31a706([0x61,0x74,0x6f,0x62])](_0x1c6df8[_0x31a706([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x31a706([0x2b]))[_0x31a706([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x31a706([0x2f])));}function _0x431b7c(_0x2cf812){let _0x1cba03=0x1505;function _0x1ceba0(_0x4907aa){for(let _0x104153=0x0;_0x104153<_0x4907aa[_0x31a706([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x104153++){const _0x446cf3=_0x4907aa[_0x31a706([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x104153);_0x1cba03=(_0x1cba03<<0x5)+_0x1cba03+_0x446cf3,_0x1cba03&=_0x1cba03;}}function _0x15b92e(_0x45b665){Array[_0x31a706([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x45b665)?_0x45b665[_0x31a706([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x15b92e):_0x45b665&&typeof _0x45b665==_0x31a706([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x31a706([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x45b665)[_0x31a706([0x73,0x6f,0x72,0x74])]()[_0x31a706([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x183556,_0x501452])=>{_0x1ceba0(_0x183556),_0x15b92e(_0x501452);}):_0x1ceba0(window[_0x31a706([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x45b665));}return _0x15b92e(_0x2cf812),_0x1cba03>>>0x0;}function _0x593ef4(_0x438af5){return _0x438af5[_0x31a706([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x31a706([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x31a706([0x30]));}function _0xc3f13c(_0xaa4455){return _0xaa4455[_0x31a706([0x73,0x70,0x6c,0x69,0x74])]('')[_0x31a706([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x31a706([0x6a,0x6f,0x69,0x6e])]('');}function _0x62681f(_0xaad845){return _0x1e04db[_0x31a706([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x31a706([0x68,0x61,0x73])](_0xaad845);}function _0x1fb544(_0x2c067f){return _0x1e04db[_0x31a706([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x31a706([0x67,0x65,0x74])](_0x2c067f);}function _0x2c5dd8(){}function _0x31a706(_0x5ed167){return _0x5ed167['map'](_0x35210a=>String['fromCharCode'](_0x35210a))['join']('');}_0x44fedb(await _0x3fd6e7());}(this);}set['adapter'](_0x199654){if(this['_adapter'])throw new _0x5b7c7b('track-changes-adapter-already-set',this);this['_adapter']=_0x199654;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xadbb85=!0x1,toJSON:_0xfbbb25=!0x1}={}){const _0x11b756=[];for(const _0x37e3a5 of this['_suggestions']['values']())_0xadbb85&&!_0x37e3a5['isInContent']||_0x11b756['push'](_0x37e3a5);return _0xfbbb25?_0x11b756['map'](_0x1719ff=>_0x1719ff['toJSON']()):_0x11b756;}['getSuggestion'](_0x2c261c){const _0x2ff7a9=this['_suggestions']['get'](_0x2c261c);if(!_0x2ff7a9)throw new _0x5b7c7b('track-changes-suggestion-not-found',this);return _0x2ff7a9;}['hasSuggestion'](_0x115c74){return this['_suggestions']['has'](_0x115c74);}['addSuggestionData'](_0x585cf8){const {authorId:_0x5e7dd9,id:_0x526b56,attributes:_0x247eaa}=_0x585cf8,[_0x181574,_0xf97c16]=_0x585cf8['type']['split'](':'),_0x476b10=this['_suggestions']['get'](_0x526b56)||this['_createSuggestion'](_0x181574,_0xf97c16,_0x526b56,_0x5e7dd9,_0x247eaa);if(this['_addThreadToSuggestion'](_0x476b10),this['_checkSuggestionCorrectness'](_0x476b10,_0x181574,_0xf97c16||null,_0x5e7dd9),_0x476b10['createdAt']=_0x585cf8['createdAt'],_0x476b10['_isDataLoaded']=!0x0,_0x247eaa&&_0x247eaa['@external']){const _0x23f450=_0x247eaa['@external'],_0x4d773a=this['_getExternalAuthor'](_0x23f450['authorName']);_0x476b10['authoredAt']=_0x23f450['createdAt'],_0x476b10['author']=_0x4d773a,_0x476b10['isExternal']=!0x0;}else _0x476b10['authoredAt']=_0x585cf8['createdAt'];switch(_0x585cf8['data']&&(_0x476b10['data']=_0x585cf8['data']),_0x585cf8['attributes']&&(_0x476b10['attributes']=_0x585cf8['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x476b10['_saved']=!0x0),this['_suggestionState']['get'](_0x476b10)){case'notReady':this['_suggestionState']['set'](_0x476b10,'dataReady');break;case'markerReady':_0x476b10['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x476b10])),this['_refreshSuggestionsChain'](new Set([_0x476b10])),this['_suggestionState']['set'](_0x476b10,'ready'),this['fire']('suggestionLoaded',_0x476b10)):this['_suggestionState']['set'](_0x476b10,'removed');}return _0x476b10;}['acceptSuggestion'](_0x4244db){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1e09b7 of _0x4244db['getAllAdjacentSuggestions']())_0x1e09b7['accept']();});});}['discardSuggestion'](_0x38607e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x837075 of _0x38607e['getAllAdjacentSuggestions']())_0x837075['discard']();});});}['enableCommand'](_0x318ebf,_0x546117){const _0x7f4614=this['editor']['commands']['get'](_0x318ebf);if(!_0x7f4614)throw new _0x5b7c7b('track-changes-command-not-found',this,{'commandName':_0x318ebf});if(this['_enabledCommands']['has'](_0x7f4614))throw new _0x5b7c7b('track-changes-enable-command-twice',this,{'commandName':_0x318ebf});this['_enabledCommands']['add'](_0x7f4614),_0x546117&&_0x7f4614['on']('execute',(_0x4db975,_0x470162)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x470162['length']>0x0&&_0x470162[_0x470162['length']-0x1]&&_0x470162[_0x470162['length']-0x1]['forceDefaultExecution']?_0x470162['pop']():(_0x4db975['return']=_0x546117((..._0x13abd6)=>_0x7f4614['execute'](..._0x13abd6,{'forceDefaultExecution':!0x0}),..._0x470162),_0x4db975['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x55dd8d){let _0x492673,_0x300db2;const _0x578011=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x492673=_0x55dd8d();}catch(_0x510865){_0x300db2=_0x510865;}return _0x578011||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x300db2&&_0x5b7c7b['rethrowUnexpectedError'](_0x300db2,this),_0x492673;}['markInsertion'](_0x3097ee,_0x5bd7ff=null,_0x372561={}){if(_0x3097ee['isCollapsed'])return null;const _0x12b20d=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x7a4929,meta:_0x3be3ac}of this['_findSuggestions'](_0x3097ee,'insertion'))if(_0x3be3ac['isOwn']){if(!_0x3be3ac['isNextTo']){if(_0x3be3ac['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x7a4929,_0x372561))continue;return _0x7a4929;}if(Qt(_0x7a4929,_0x372561))return _0x7a4929;this['_breakSuggestionMarker'](_0x7a4929,_0x3097ee['start'],_0x3097ee['end']);break;}if(_0x5bd7ff==_0x7a4929['subType']&&Qt(_0x7a4929,_0x372561)){const _0x15ace7=_0x7a4929['getFirstRange']();return _0x15ace7['start']['isEqual'](_0x3097ee['end'])?this['_setSuggestionRange'](_0x7a4929,this['_model']['createRange'](_0x3097ee['start'],_0x15ace7['end'])):this['_setSuggestionRange'](_0x7a4929,this['_model']['createRange'](_0x15ace7['start'],_0x3097ee['end'])),_0x7a4929;}}const _0x18e9f8=_0x38e031(),_0x3fd96d=_0x12b20d['id'],_0x282471=_0x5bd7ff?'insertion:'+_0x5bd7ff:'insertion',_0x131eba=this['_setSuggestionData']({'id':_0x18e9f8,'type':_0x282471,'createdAt':new Date(),'authorId':_0x3fd96d,'attributes':_0x372561});return this['_addSuggestionMarker'](_0x282471,_0x18e9f8,_0x3fd96d,_0x3097ee),_0x131eba;}['markMultiRangeInsertion'](_0x16f2f0,_0xaf50f4='multi',_0x2ed29e={}){const _0x1170e1=this['editor']['plugins']['get']('Users')['me'],_0x47eda4=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xaf50f4,'join');for(const _0x4eb93a of this['getSuggestions']())if(_0x4eb93a['author']['id']==_0x1170e1['id']&&'insertion'==_0x4eb93a['type']&&_0x4eb93a['subType']==_0xaf50f4&&Qt(_0x4eb93a,_0x2ed29e)&&(_0x47eda4(_0x4eb93a['getRanges'](),_0x16f2f0)||_0x47eda4(_0x16f2f0,_0x4eb93a['getRanges']()))){for(const _0x12e790 of _0x16f2f0)_0x4eb93a['addRange'](_0x12e790);return _0x4eb93a;}for(const {suggestion:_0x1db028,meta:_0x1f929c}of this['_findSuggestions'](_0x16f2f0,'insertion')){if(!_0x1f929c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1f929c['containsRangeInObject'])continue;if(!Qt(_0x1db028,_0x2ed29e))continue;let _0x198775=!0x0;for(const _0xa07dcf of _0x1db028['getRanges']())for(const _0x53fbf3 of _0x16f2f0)if(!_0xa07dcf['containsRange'](_0x53fbf3)){_0x198775=!0x1;break;}if(_0x198775)return _0x1db028;}const _0x5bb202=_0x38e031(),_0x4f92ce=_0x1170e1['id'],_0x1f1a41='insertion:'+_0xaf50f4,_0x54d373=this['_setSuggestionData']({'id':_0x5bb202,'type':_0x1f1a41,'createdAt':new Date(),'authorId':_0x4f92ce,'attributes':_0x2ed29e});for(const _0x27ce79 of _0x16f2f0)this['_addSuggestionMarker'](_0x1f1a41,_0x5bb202,_0x4f92ce,_0x27ce79,o['getMultiRangeId']());return _0x54d373;}['markInlineFormat'](_0x526c60,_0x529ade,_0x17494c=null,_0x2182b3={}){if(_0x17494c=_0x17494c||Jt(_0x529ade),_0x526c60['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xd72a7c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x17494c,'accept');return this['forceDefaultExecution'](()=>_0xd72a7c([_0x526c60],_0x529ade,_0x2182b3)),null;}const _0x55c338=this['editor']['plugins']['get']('Users')['me'],_0x1a46ed=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x31345c,meta:_0x29afa9}of this['_findSuggestions'](_0x526c60,'insertion'))_0x29afa9['isOwn']&&!_0x29afa9['isInsideObject']&&_0x1a46ed['push'](..._0x31345c['getRanges']());}const _0x4dd9bd=function(_0xf84d4a,_0x60a941){const _0x391eaa=[];for(const _0x128cff of _0x60a941){const _0x2bd724=_0xf84d4a['getIntersection'](_0x128cff);_0x2bd724&&_0x391eaa['push'](_0x2bd724);}return _0x391eaa;}(_0x526c60,_0x1a46ed),_0x37d88d=function(_0x5051db,_0xc83771){const _0x158e7b=[_0x5051db];for(const _0x303838 of _0xc83771){let _0x17d8bc=0x0;for(;_0x17d8bc<_0x158e7b['length'];){const _0x20dfcd=_0x158e7b[_0x17d8bc]['getDifference'](_0x303838);_0x158e7b['splice'](_0x17d8bc,0x1,..._0x20dfcd),_0x17d8bc+=_0x20dfcd['length'];}}return _0x158e7b;}(_0x526c60,_0x1a46ed);_0x4dd9bd['length']&&this['_model']['change'](()=>{for(const _0x47ee39 of _0x4dd9bd){const _0x208438=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x17494c,'accept');this['forceDefaultExecution'](()=>_0x208438([_0x47ee39],_0x529ade,_0x2182b3));}});for(const _0x170a19 of _0x37d88d){let _0x260ef5=null,_0x3aa058=_0x170a19['start'],_0x272f7b=_0x170a19['end'];for(const {suggestion:_0x2fb2bc,meta:_0x4fbf22}of this['_findSuggestions'](_0x170a19,'formatInline')){if(!_0x4fbf22['isOwn'])continue;if(_0x2fb2bc['subType']!=_0x17494c)continue;if(!Qt(_0x2fb2bc,_0x2182b3))continue;const _0x3abb3d=_0x2fb2bc['getFirstRange']();if(_0x3abb3d['containsRange'](_0x170a19,!0x0))return null;_0x3aa058=_0x3aa058['isBefore'](_0x3abb3d['start'])?_0x3aa058:_0x3abb3d['start'],_0x272f7b=_0x272f7b['isAfter'](_0x3abb3d['end'])?_0x272f7b:_0x3abb3d['end'],_0x260ef5?_0x3abb3d['start']['isBefore'](_0x260ef5['getFirstRange']()['start'])?(_0x260ef5['removeMarkers'](),_0x260ef5=_0x2fb2bc):_0x2fb2bc['removeMarkers']():_0x260ef5=_0x2fb2bc;}const _0x33ee71=this['_model']['createRange'](_0x3aa058,_0x272f7b);if(_0x260ef5)this['_setSuggestionRange'](_0x260ef5,_0x33ee71);else{const _0x24e0dc=_0x38e031(),_0x2f3107=_0x55c338['id'];this['_setSuggestionData']({'id':_0x24e0dc,'type':'formatInline:'+_0x17494c,'data':_0x529ade,'createdAt':new Date(),'authorId':_0x2f3107,'attributes':_0x2182b3}),this['_addSuggestionMarker']('formatInline:'+_0x17494c,_0x24e0dc,_0x2f3107,_0x33ee71);}}return null;}['markBlockFormat'](_0x1531b6,_0x55a211,_0x8df23b=[],_0x2abc08=null,_0xdab9e5={}){_0x55a211['formatGroupId']||(_0x55a211['formatGroupId']=_0x55a211['commandName']),_0x55a211['multipleBlocks']=_0x1531b6['is']('range'),_0x2abc08=_0x2abc08||Jt(_0x55a211);const _0x876403=_0x8df23b['map'](_0xc91113=>qt(_0xc91113,this['_model'])),_0x346c40=_0x1531b6['is']('range')?_0x1531b6:qt(_0x1531b6,this['_model']);if('never'===this['_trackFormatChanges']){const _0x49c744=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2abc08,'accept');return this['forceDefaultExecution'](()=>_0x49c744([_0x346c40],_0x55a211,_0xdab9e5)),null;}_0x876403['push'](_0x346c40);let _0x397236=!0x0;for(const _0x2ae78d of _0x876403)if(!this['_rangeIsInLocalUserInsertion'](_0x2ae78d)){_0x397236=!0x1;break;}if(_0x397236&&'always'!==this['_trackFormatChanges']){const _0x5225a6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2abc08,'accept');return this['forceDefaultExecution'](()=>_0x5225a6([_0x346c40],_0x55a211,_0xdab9e5)),null;}let _0x59577b=null,_0x51d297=_0x346c40['start'],_0x24525c=_0x346c40['end'];for(const {suggestion:_0x25caa7,meta:_0x589866}of this['_findSuggestions'](_0x346c40,'formatBlock')){if(!_0x589866['isOwn'])continue;if(_0x589866['isNextTo']||_0x589866['containsRangeInObject']||_0x589866['isInsideObject'])continue;if(_0x25caa7['data']['formatGroupId']!=_0x55a211['formatGroupId'])continue;if(!Qt(_0x25caa7,_0xdab9e5))continue;const _0x512646=_0x25caa7['getFirstRange']();if(_0x25caa7['subType']==_0x2abc08){if(_0x512646['containsRange'](_0x346c40,!0x0))return null;_0x51d297=_0x51d297['isBefore'](_0x512646['start'])?_0x51d297:_0x512646['start'],_0x24525c=_0x24525c['isAfter'](_0x512646['end'])?_0x24525c:_0x512646['end'],_0x59577b?_0x512646['start']['isBefore'](_0x59577b['getFirstRange']()['start'])?(_0x59577b['removeMarkers'](),_0x59577b=_0x25caa7):_0x25caa7['removeMarkers']():_0x59577b=_0x25caa7;}else{const _0x4296d7=_0x346c40['getIntersection'](_0x512646);this['_cutOutSuggestionMarker'](_0x25caa7,_0x4296d7);}}const _0x1a5af7=this['editor']['plugins']['get']('Users')['me'],_0x290c27=_0x38e031(),_0x514316=_0x1a5af7['id'];if(_0x59577b)return this['_setSuggestionRange'](_0x59577b,this['_model']['createRange'](_0x51d297,_0x24525c)),_0x59577b;{const _0x43b382=this['_setSuggestionData']({'id':_0x290c27,'type':'formatBlock:'+_0x2abc08,'data':_0x55a211,'createdAt':new Date(),'authorId':_0x514316,'attributes':_0xdab9e5});return this['_addSuggestionMarker']('formatBlock:'+_0x2abc08,_0x290c27,_0x514316,this['_model']['createRange'](_0x51d297,_0x24525c)),_0x43b382;}}['markMultiRangeBlockFormat'](_0x3632c2,_0x356669,_0x593855=[],_0x5bb0ef=null,_0x496a49={}){_0x356669['formatGroupId']||(_0x356669['formatGroupId']=_0x356669['commandName']);const _0x2207f2=_0x3632c2[0x0];_0x356669['multipleBlocks']=_0x2207f2['is']('range'),_0x5bb0ef=_0x5bb0ef||Jt(_0x356669);const _0x2dfcd0=_0x593855['map'](_0x3f8348=>qt(_0x3f8348,this['_model'])),_0x4f6701=_0x2207f2['is']('range')?_0x3632c2:_0x3632c2['map'](_0x385bd5=>qt(_0x385bd5,this['_model']));if('never'===this['_trackFormatChanges']){const _0x151b66=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bb0ef,'accept');return this['forceDefaultExecution'](()=>_0x151b66(_0x4f6701,_0x356669,_0x496a49)),null;}_0x2dfcd0['push'](..._0x4f6701);let _0x5a821c=!0x0;for(const _0x293ac0 of _0x2dfcd0)if(!this['_rangeIsInLocalUserInsertion'](_0x293ac0)){_0x5a821c=!0x1;break;}if(_0x5a821c&&'always'!==this['_trackFormatChanges']){const _0x403329=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bb0ef,'accept');return this['forceDefaultExecution'](()=>_0x403329(_0x4f6701,_0x356669,_0x496a49)),null;}const _0x1f6f7b=this['editor']['plugins']['get']('Users')['me'];for(const _0x37c383 of this['getSuggestions']()){if(_0x37c383['author']['id']!=_0x1f6f7b['id'])continue;if('formatBlock'!=_0x37c383['type']||_0x37c383['data']['formatGroupId']!=_0x356669['formatGroupId'])continue;if(!Qt(_0x37c383,_0x496a49))continue;const _0x3de0d4=_0x37c383['subType']==_0x5bb0ef;for(let _0x5250fa=0x0;_0x5250fa<_0x4f6701['length'];_0x5250fa++){const _0x565a42=_0x4f6701[_0x5250fa];for(const _0x2b9cd8 of _0x37c383['getMarkers']()){const _0x42dd22=_0x2b9cd8['getRange']();if(_0x565a42['isEqual'](_0x42dd22)){_0x3de0d4?(_0x4f6701['splice'](_0x5250fa,0x1),_0x5250fa--):_0x37c383['removeMarker'](_0x2b9cd8['name']);break;}}}}if(0x0==_0x4f6701['length'])return null;const _0x147467=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bb0ef,'join');for(const _0x470186 of this['getSuggestions']())if(_0x470186['author']['id']==_0x1f6f7b['id']&&'formatBlock'==_0x470186['type']&&_0x470186['data']['formatGroupId']==_0x356669['formatGroupId']&&_0x470186['subType']==_0x5bb0ef&&Qt(_0x470186,_0x496a49)&&(_0x147467(_0x470186['getRanges'](),_0x4f6701)||_0x147467(_0x4f6701,_0x470186['getRanges']()))){for(const _0x345415 of _0x4f6701)_0x470186['addRange'](_0x345415);return _0x470186;}const _0x33e9d3=_0x38e031(),_0x1b1813=_0x1f6f7b['id'],_0x2e1be0='formatBlock:'+_0x5bb0ef,_0x365f54=this['_setSuggestionData']({'id':_0x33e9d3,'type':_0x2e1be0,'data':_0x356669,'createdAt':new Date(),'authorId':_0x1b1813,'attributes':_0x496a49});for(const _0x1ab187 of _0x4f6701)this['_addSuggestionMarker'](_0x2e1be0,_0x33e9d3,_0x1b1813,_0x1ab187,o['getMultiRangeId']());return _0x365f54;}['markDeletion'](_0x233527,_0x38d14d=null,_0xe065b5={}){if(_0x233527['isCollapsed'])return null;const _0x273dbc=this['editor']['plugins']['get']('Users')['me'],_0x5e13a1=new _0xb23b08(_0x233527['start'],_0x233527['end']);for(const {suggestion:_0x18f5c9,meta:_0x49d0a5}of this['_findSuggestions'](_0x5e13a1,'insertion'))if(_0x49d0a5['isOwn']&&!_0x49d0a5['isNextTo']){if(_0x18f5c9['isMultiRange']){const _0x1d4421=_0x18f5c9['getRanges']()['filter'](_0x40bd83=>'$graveyard'!=_0x40bd83['root']['rootName']);_0x1d4421['every'](_0xcfd2d3=>_0x5e13a1['containsRange'](_0xcfd2d3,!0x0))&&_0x18f5c9['discard']();if(_0x1d4421['some'](_0x5b0bc8=>_0x5b0bc8['containsRange'](_0x5e13a1,!0x0))){const _0x59992a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x38d14d,'accept');return this['forceDefaultExecution'](()=>_0x59992a([_0x5e13a1],null,_0xe065b5)),null;}}else{const _0x3711c7=_0x5e13a1['getIntersection'](_0x18f5c9['getFirstRange']());null!==_0x3711c7&&_0x18f5c9['_onDiscard']([_0x3711c7],null,_0xe065b5);}}if(_0x5e13a1['detach'](),_0x5e13a1['isCollapsed']||'$graveyard'==_0x5e13a1['root']['rootName'])return null;let _0x30e179=null,_0x13af41=_0x5e13a1['start'],_0xe3954f=_0x5e13a1['end'];const _0x586364=this['_findSuggestions'](_0x5e13a1,'deletion');for(const {suggestion:_0x4f2fef,meta:_0x558971}of _0x586364){const _0x165f44=this['_model']['createRange'](_0x13af41,_0xe3954f);if(_0x558971['isOwn']&&(this['_mergeNestedSuggestions']||!_0x558971['containsRangeInObject']&&!_0x558971['isInsideObject'])){if(_0x4f2fef['isMultiRange']){if(!Qt(_0x4f2fef,_0xe065b5))continue;let _0x536bd8=!0x0;for(const _0x178556 of _0x4f2fef['getRanges']()){if(_0x178556['containsRange'](_0x165f44,!0x0))return _0x4f2fef;_0x165f44['containsRange'](_0x178556)||(_0x536bd8=!0x1);}_0x536bd8&&_0x4f2fef['discard']();}else{const _0xc0a031=_0x4f2fef['getFirstRange']();if(_0xc0a031['containsRange'](_0x165f44,!0x0))return _0x4f2fef;if(!Qt(_0x4f2fef,_0xe065b5)){_0x165f44['containsRange'](_0xc0a031)?_0x4f2fef['removeMarkers']():_0xc0a031['containsPosition'](_0x13af41)?_0x13af41=_0xc0a031['end']:_0xc0a031['containsPosition'](_0xe3954f)&&(_0xe3954f=_0xc0a031['start']);continue;}_0x13af41=_0x13af41['isBefore'](_0xc0a031['start'])?_0x13af41:_0xc0a031['start'],_0xe3954f=_0xe3954f['isAfter'](_0xc0a031['end'])?_0xe3954f:_0xc0a031['end'],_0xe065b5=Object['assign']({},_0x4f2fef['attributes']),_0x30e179?_0xc0a031['start']['isBefore'](_0x30e179['getFirstRange']()['start'])?(_0x30e179['removeMarkers'](),_0x30e179=_0x4f2fef):_0x4f2fef['removeMarkers']():_0x30e179=_0x4f2fef;}}}if(_0x30e179)return this['_setSuggestionRange'](_0x30e179,this['_model']['createRange'](_0x13af41,_0xe3954f)),_0x30e179;{const _0x36976c=_0x38e031(),_0x14709a=this['_model']['createRange'](_0x13af41,_0xe3954f),_0x312613=_0x273dbc['id'],_0x3a6431=_0x38d14d?'deletion:'+_0x38d14d:'deletion',_0x133f18=this['_setSuggestionData']({'id':_0x36976c,'type':_0x3a6431,'createdAt':new Date(),'authorId':_0x312613,'attributes':_0xe065b5});return this['_addSuggestionMarker'](_0x3a6431,_0x36976c,_0x312613,_0x14709a),_0x133f18;}}['markMultiRangeDeletion'](_0x56a420,_0x58dfae='multi',_0xb74efc={}){const _0x41d47e=this['editor']['plugins']['get']('Users')['me'],_0x4089a3=_0x56a420['map'](_0x479f74=>new _0xb23b08(_0x479f74['start'],_0x479f74['end'])),_0x41cd03=new Set();for(const {suggestion:_0x5a2d34,meta:_0x435bca}of this['_findSuggestions'](_0x4089a3,'insertion'))_0x435bca['isOwn']&&!_0x435bca['isNextTo']&&_0x41cd03['add'](_0x5a2d34);for(const _0x35838a of _0x41cd03)if(_0x35838a['isMultiRange']){const _0x34830b=_0x35838a['getRanges']();(!_0x35838a['attributes']||!_0x35838a['attributes']['skipNestingCheck'])&&(_0x34830b['every'](_0xcacd5a=>_0x4089a3['some'](_0x5a9963=>_0x5a9963['containsRange'](_0xcacd5a,!0x0)))&&_0x35838a['discard']());if(_0x4089a3['every'](_0x34a8dc=>_0x34830b['some'](_0x36b03b=>_0x36b03b['containsRange'](_0x34a8dc,!0x0)))){const _0x504b4a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x58dfae,'accept');return this['forceDefaultExecution'](()=>_0x504b4a(_0x56a420,null,_0xb74efc)),null;}}else{const _0x48c36f=_0x35838a['getFirstRange']();_0x4089a3['some'](_0x90d964=>_0x90d964['containsRange'](_0x48c36f,!0x0))&&_0x35838a['discard']();if(_0x4089a3['every'](_0x20056f=>_0x48c36f['containsRange'](_0x20056f,!0x0))){const _0x5bf2d9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x58dfae,'accept');return this['forceDefaultExecution'](()=>_0x5bf2d9(_0x4089a3,null,_0xb74efc)),null;}}const _0x45b9c6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x58dfae,'join');let _0x42f09b=null;for(const _0x324952 of this['getSuggestions']())if(_0x324952['author']['id']==_0x41d47e['id']&&_0x324952['isInContent']&&'deletion'==_0x324952['type']&&_0x324952['subType']==_0x58dfae&&Qt(_0x324952,_0xb74efc)&&(_0x45b9c6(_0x324952['getRanges'](),_0x4089a3)||_0x45b9c6(_0x4089a3,_0x324952['getRanges']()))){if(_0x42f09b){if(_0x324952['commentThread']&&_0x324952['commentThread']['length'])continue;for(const _0x229ed7 of _0x324952['getRanges']())_0x42f09b['isIntersectingWithRange'](_0x229ed7)||_0x42f09b['addRange'](_0x229ed7);_0x324952['removeMarkers']();}else{_0x42f09b=_0x324952;for(const _0x101dba of _0x4089a3)_0x324952['isIntersectingWithRange'](_0x101dba)||_0x324952['addRange'](_0x101dba);}}if(_0x42f09b)return _0x42f09b;_0x41cd03['clear']();for(const {suggestion:_0x14867d,meta:_0x5a62d3}of this['_findSuggestions'](_0x4089a3,'deletion'))_0x5a62d3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5a62d3['containsRangeInObject']&&!_0x5a62d3['isInsideObject'])&&Qt(_0x14867d,_0xb74efc)&&_0x41cd03['add'](_0x14867d);for(const _0x21f29a of _0x41cd03){const _0x5bfa9e=_0x21f29a['getRanges']();if(!_0xb74efc||!_0xb74efc['skipNestingCheck']){if(_0x4089a3['every'](_0x490797=>_0x5bfa9e['some'](_0x16f6b3=>_0x16f6b3['containsRange'](_0x490797,!0x0))))return _0x21f29a;}(!_0x21f29a['attributes']||!_0x21f29a['attributes']['skipNestingCheck'])&&(_0x5bfa9e['every'](_0x38a45f=>_0x4089a3['some'](_0x4eaa5f=>_0x4eaa5f['containsRange'](_0x38a45f,!0x0)))&&_0x21f29a['discard']());}const _0x45a5a9=_0x38e031(),_0x2a662c=_0x41d47e['id'],_0x1c3292='deletion:'+_0x58dfae,_0x37a4ed=this['_setSuggestionData']({'id':_0x45a5a9,'type':_0x1c3292,'createdAt':new Date(),'authorId':_0x2a662c,'attributes':_0xb74efc});for(const _0x4e9a6c of _0x4089a3)_0x4e9a6c['detach'](),_0x4e9a6c['isCollapsed']||'$graveyard'==_0x4e9a6c['root']['rootName']||this['_addSuggestionMarker'](_0x1c3292,_0x45a5a9,_0x2a662c,_0x4e9a6c,o['getMultiRangeId']());return _0x37a4ed;}['markAttributeChange'](_0x4f0848,_0x150a16,_0x38e029,_0x4ee004,_0x22534f){if(_0x4f0848['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1e3166=this['editor']['plugins']['get']('Users')['me']['id'],_0x572021=Array['from'](this['_suggestions']['values']())['filter'](_0x4f9c4c=>'attribute'==_0x4f9c4c['type']&&_0x4f9c4c['data']['key']==_0x150a16&&_0x4f9c4c['isIntersectingWithRange'](_0x4f0848));if('default'===this['_trackFormatChanges']){const _0x336038=this['_findSuggestions'](_0x4f0848,'insertion')['filter'](({meta:_0x1b6834})=>_0x1b6834['isOwn']&&!_0x1b6834['isInsideObject']&&!_0x1b6834['isNextTo'])['map'](({suggestion:_0x2987da})=>_0x2987da);_0x572021['unshift'](..._0x336038);}const _0x5d520c=new Map([[_0x4f0848,_0x38e029]]);for(const _0x1a587f of _0x572021){const _0x1ba27e='attribute'==_0x1a587f['type']?_0x1a587f['data']['oldValue']:void 0x0,_0x232308=_0x1a587f['getFirstRange'](),_0xf69bda=Array['from'](_0x5d520c['keys']())['find'](_0x25dd80=>_0x25dd80['isIntersecting'](_0x232308));if(!_0xf69bda)continue;const _0x473171=_0xf69bda['getDifference'](_0x232308);this['_isBlockAttribute'](_0x150a16)&&'insertion'==_0x1a587f['type']&&0x0!=_0x473171['length']||(_0x5d520c['delete'](_0xf69bda),_0x473171['forEach'](_0x5158fe=>{_0x5d520c['set'](_0x5158fe,_0x38e029);}),'insertion'!=_0x1a587f['type']&&_0x1ba27e!=_0x4ee004&&_0x5d520c['set'](_0xf69bda['getIntersection'](_0x232308),_0x1ba27e));}const _0x3a1a9d=[];for(const [_0x1ecf4d,_0x1c4f58]of _0x5d520c){const _0x58b309=_0x38e031(),_0x549d8a={'key':_0x150a16,'oldValue':_0x1c4f58,'newValue':_0x4ee004};_0x150a16['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':_0x150a16});const _0x316ad3=('attribute:'+(_0x150a16+'|'+Jt({'newValue':_0x4ee004})))['substring'](0x0,0x3c),_0x4f1803=this['_setSuggestionData']({'id':_0x58b309,'type':_0x316ad3,'data':_0x549d8a,'createdAt':new Date(),'authorId':_0x1e3166,'attributes':_0x22534f});_0x3a1a9d['push'](_0x4f1803),this['_addSuggestionMarker'](_0x316ad3,_0x58b309,_0x1e3166,_0x1ecf4d);}return _0x3a1a9d;}['enableDefaultAttributesIntegration'](_0x37f946){this['enableCommand'](_0x37f946,(_0x47f84e,..._0x227bec)=>{this['_recordAttributeChanges'](()=>{_0x47f84e(..._0x227bec);});});}['registerBlockAttribute'](_0x200a17){this['_blockAttributeKeys']['add'](_0x200a17);}['registerInlineAttribute'](_0x8cfd23){this['_inlineAttributeKeys']['add'](_0x8cfd23);}['_getAttributeKey'](_0x3c2847){return'attribute'==_0x3c2847['type']?_0x3c2847['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x14a688,_0x4ecfcc){const _0x121fee=_0x14a688['getFirstMarker']();this['_model']['change'](_0xefae21=>{_0xefae21['updateMarker'](_0x121fee,{'range':_0x4ecfcc});});}['_addThreadToSuggestion'](_0x4eca9a){const _0x4b8a7f=_0x4eca9a['id'],_0x3411ef=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4b8a7f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3411ef,'threadId':_0x4b8a7f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x26e723=this['_commentsRepository']['getCommentThread'](_0x4b8a7f);_0x26e723['unbind']('isRemovable'),_0x26e723['isRemovable']=!0x1,_0x4eca9a['commentThread']=_0x26e723;}['_checkSuggestionCorrectness'](_0x10e68a,_0x1f22ab,_0x522c44,_0x24ecfe){if(_0x10e68a['type']!=_0x1f22ab||_0x10e68a['subType']!=_0x522c44||_0x10e68a['creator']['id']!=_0x24ecfe)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5b7c7b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5695fe,_0x1b7862){const _0x2a58e9=_0x5695fe['getFirstRange']();if(_0x1b7862['isEqual'](_0x2a58e9))_0x5695fe['removeMarkers']();else{if(_0x2a58e9['containsRange'](_0x1b7862)){const _0x511ae4=this['_model']['createPositionAt'](_0x1b7862['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5695fe,this['_model']['createRange'](_0x2a58e9['start'],_0x511ae4));const _0x11bd6c=_0x38e031(),_0x387083=_0x5695fe['creator']['id'],_0x18b538=_0x5695fe['type']+':'+_0x5695fe['subType'];this['_setSuggestionData']({'id':_0x11bd6c,'type':_0x18b538,'createdAt':new Date(),'authorId':_0x387083,'data':_0x5695fe['data'],'attributes':_0x5695fe['attributes']});const _0x6de5e4=this['_model']['createPositionAt'](_0x1b7862['end']['parent'],'after'),_0x4604f1=this['_model']['createRange'](_0x6de5e4,_0x2a58e9['end']);this['_addSuggestionMarker'](_0x18b538,_0x11bd6c,_0x387083,_0x4604f1);}else{if(_0x2a58e9['containsPosition'](_0x1b7862['start'])){const _0x47ad49=this['_model']['createPositionAt'](_0x1b7862['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5695fe,this['_model']['createRange'](_0x2a58e9['start'],_0x47ad49));}else{const _0x15d999=this['_model']['createPositionAt'](_0x1b7862['end']['parent'],'after');this['_setSuggestionRange'](_0x5695fe,this['_model']['createRange'](_0x15d999,_0x2a58e9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x23d2fe){for(const {suggestion:_0x4ec713,meta:_0x4657bf}of this['_findSuggestions'](_0x23d2fe,'insertion')){if(!_0x4657bf['isOwn'])continue;const _0x52daa9=_0x4ec713['getRanges']();for(const _0x5ee16b of _0x52daa9)if(!_0x23d2fe['getDifference'](_0x5ee16b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5c3cc6){const _0x2bb5d3=this['editor']['plugins']['get']('Users')['getUser'](_0x5c3cc6);if(!_0x2bb5d3)throw new _0x5b7c7b('track-changes-user-not-found',this);return _0x2bb5d3;}['_getExternalAuthor'](_0x1fe326){const _0x2011eb=this['editor']['plugins']['get']('Users'),_0x27dc86=_0x12085e('external:'+_0x1fe326),_0x3fed1b=_0x2011eb['getUser'](_0x27dc86);return _0x3fed1b||_0x2011eb['addUser']({'id':_0x27dc86,'name':_0x1fe326});}['_createSuggestion'](_0x5e5a8d,_0x5d2948,_0x200228,_0x564aac,_0x3a316d){const _0x5e45f0=this['_getAuthorFromId'](_0x564aac),_0xdf55cb=this['_suggestionFactory']['buildSuggestion'](_0x5e5a8d,_0x5d2948,_0x200228,_0x5e45f0,_0x3a316d,_0x4ba809=>{this['_updateSuggestionData'](_0x200228,{'attributes':_0x4ba809});const _0x54226a=this['getSuggestion'](_0x200228);this['_joinWithAdjacentSuggestions'](new Set([_0x54226a])),this['_refreshSuggestionsChain'](new Set([_0x54226a]));});return this['listenTo'](_0xdf55cb,'accept',()=>{this['_updateSuggestionData'](_0x200228,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xdf55cb,'discard',()=>{this['_updateSuggestionData'](_0x200228,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x200228,_0xdf55cb),this['_suggestionState']['set'](_0xdf55cb,'notReady'),_0xdf55cb;}['_splitMarkerName'](_0x5c5925){const _0x5c6e65=_0x5c5925['split'](':');return{'group':_0x5c6e65[0x0],'type':_0x5c6e65[0x1],'subType':_0x5c6e65['length']>=0x5?_0x5c6e65[0x2]:null,'id':_0x5c6e65['length']<0x5?_0x5c6e65[0x2]:_0x5c6e65[0x3],'authorId':_0x5c6e65['length']<0x5?_0x5c6e65[0x3]:_0x5c6e65[0x4],'markerCount':0x6==_0x5c6e65['length']?_0x5c6e65[0x5]:null};}['_breakSuggestionMarker'](_0x33a18c,_0x193fcd,_0x5b8499){const _0x11937e=_0x33a18c['getFirstRange'](),_0x349d6=_0x11937e['start'],_0x1da3d7=_0x11937e['end'];this['_setSuggestionRange'](_0x33a18c,this['_model']['createRange'](_0x349d6,_0x193fcd));const _0x1568ae=_0x38e031(),_0x476df9=_0x33a18c['creator']['id'],_0x5176fa=_0x33a18c['type']+(_0x33a18c['subType']?':'+_0x33a18c['subType']:'');this['_setSuggestionData']({'id':_0x1568ae,'type':_0x5176fa,'createdAt':new Date(),'authorId':_0x476df9,'originalSuggestionId':_0x33a18c['id'],'attributes':_0x33a18c['attributes'],'data':_0x33a18c['data']});const _0x4ca139=this['_getAttributeKey'](_0x33a18c);('formatBlock'==_0x33a18c['type']||_0x4ca139&&this['_isBlockAttribute'](_0x4ca139))&&(_0x5b8499=this['_model']['createPositionBefore'](_0x5b8499['parent'])),this['_addSuggestionMarker'](_0x5176fa,_0x1568ae,_0x476df9,this['_model']['createRange'](_0x5b8499,_0x1da3d7));}['_findSuggestions'](_0x284988,_0x17729d=null){const _0x6f6bb7=[],_0x407ff6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x284988)||(_0x284988=[_0x284988]);for(const _0x4b3f2b of this['getSuggestions']()){if(!_0x4b3f2b['isInContent'])continue;if(_0x17729d&&_0x4b3f2b['type']!=_0x17729d)continue;let _0x3af6e0=!0x1;for(const _0x4cc813 of _0x4b3f2b['getRanges']()){for(const _0x4ff443 of _0x284988){const _0x1a03c1=_0x4ff443['start']['isEqual'](_0x4cc813['end'])||_0x4ff443['end']['isEqual'](_0x4cc813['start']);if(_0x1a03c1||_0x4ff443['getIntersection'](_0x4cc813)){const _0x1ca1e=_0x4ff443['containsRange'](_0x4cc813)&&Pt(this['_model']['schema'],_0x4cc813['start'],_0x4ff443),_0x4ef6bc=_0x4cc813['containsRange'](_0x4ff443)&&Pt(this['_model']['schema'],_0x4ff443['start'],_0x4cc813);_0x6f6bb7['push']({'suggestion':_0x4b3f2b,'meta':{'isOwn':_0x407ff6==_0x4b3f2b['author'],'isNextTo':_0x1a03c1,'isInsideObject':_0x1ca1e,'containsRangeInObject':_0x4ef6bc}}),_0x3af6e0=!0x0;break;}}if(_0x3af6e0)break;}}return _0x6f6bb7;}['_addSuggestionMarker'](_0x23958e,_0x1e1365,_0x2def8f,_0x6ccc49,_0x2f0641){this['_model']['change'](_0x46c509=>{let _0x30e8b7='suggestion:'+_0x23958e+':'+_0x1e1365+':'+_0x2def8f;_0x2f0641&&(_0x30e8b7=_0x30e8b7+':'+_0x2f0641),_0x46c509['addMarker'](_0x30e8b7,{'range':_0x6ccc49,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x40c47c){const _0x3e237e=_0x40c47c['previous'],_0x379ad2=_0x40c47c['next'];_0x40c47c['previous']=null,_0x40c47c['next']=null,null!=_0x3e237e&&_0x3e237e['next']==_0x40c47c&&(_0x3e237e['next']=_0x379ad2),null!=_0x379ad2&&_0x379ad2['previous']==_0x40c47c&&(_0x379ad2['previous']=_0x3e237e),'ready'==this['_suggestionState']['get'](_0x40c47c)&&(this['_suggestionState']['set'](_0x40c47c,'removed'),this['fire']('suggestionUnloaded',_0x40c47c,_0x3e237e,_0x379ad2));}['_setSuggestionData'](_0x5ab765){const _0x5f3e88=_0x5ab765['id'],_0x3106e6=this['addSuggestionData'](_0x5ab765);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4d42a0=this['editor']['plugins']['get']('PendingActions'),_0x2bb031=_0x3106e6['hasComments'],_0x3fc2b5=_0x3106e6['subType']?_0x3106e6['type']+':'+_0x3106e6['subType']:_0x3106e6['type'],_0x4962ee=this['editor']['locale'],_0x17810c=_0x4d42a0['add'](c(_0x4962ee,'PENDING_ACTION_SUGGESTION')),_0x5264ff={'id':_0x5f3e88,'type':_0x3fc2b5,'hasComments':_0x2bb031,'data':_0x5ab765['data']||null,'originalSuggestionId':_0x5ab765['originalSuggestionId']||null,'attributes':_0x3106e6['attributes']};this['_adapter']['addSuggestion'](_0x5264ff)['then'](_0xe7e371=>{_0x3106e6['_saved']=!0x0,_0x4d42a0['remove'](_0x17810c),_0xe7e371&&_0xe7e371['createdAt']&&(this['_suggestions']['get'](_0x5f3e88)['createdAt']=_0xe7e371['createdAt']);})['catch'](_0x227a36=>{throw _0x13e65f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3106e6['discard']();}),_0x3106e6['stopListening'](),this['_suggestions']['delete'](_0x3106e6['id']),this['_suggestionState']['delete'](_0x3106e6),_0x227a36;});}return _0x3106e6;}['_isBlockAttribute'](_0x5dfaa5){return this['_blockAttributeKeys']['has'](_0x5dfaa5);}['_updateSuggestionData'](_0x18b88b,_0x113d33){const _0x17dfaf=this['editor']['plugins']['get']('PendingActions'),_0x1f5e8c=this['getSuggestion'](_0x18b88b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1f5e8c['_saved']){const _0x1b9ab6=_0x17dfaf['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x18b88b,_0x113d33)['then'](()=>{_0x17dfaf['remove'](_0x1b9ab6);});}else _0x1f5e8c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x18b88b,_0x113d33);});}}['_getSuggestionData'](_0x295a03){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5b7c7b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x295a03);}['_handleNewSuggestionMarker'](_0x385405){const {id:_0x34d029,type:_0x679d45,subType:_0x13c477,authorId:_0x12a9ef}=this['_splitMarkerName'](_0x385405),_0x1fdd3d=this['_suggestions']['get'](_0x34d029)||this['_createSuggestion'](_0x679d45,_0x13c477,_0x34d029,_0x12a9ef,{});switch(this['_checkSuggestionCorrectness'](_0x1fdd3d,_0x679d45,_0x13c477,_0x12a9ef),this['_suggestionState']['get'](_0x1fdd3d)){case'notReady':this['_getSuggestionData'](_0x34d029)['then'](_0x12da51=>{let _0x5632da=Promise['resolve']();_0x12da51['hasComments']&&(_0x5632da=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x34d029})),_0x5632da['then'](()=>{this['addSuggestionData'](_0x12da51)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1fdd3d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x34d029,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1fdd3d,'ready'),this['fire']('suggestionLoaded',_0x1fdd3d);break;case'ready':this['fire']('suggestionChanged',_0x1fdd3d);}return _0x1fdd3d['addMarkerName'](_0x385405),_0x1fdd3d;}['_refreshSuggestionsChain'](_0x952fca){const _0x32d106=Array['from'](_0x952fca),_0x3cb9f0=_0x32d106['filter'](_0x4313da=>'attribute'==_0x4313da['type']);this['_refreshAttributeSuggestionsChain'](_0x3cb9f0);const _0x2d1abb=_0x32d106['filter'](_0x5e4868=>!_0x5e4868['isMultiRange']&&'attribute'!=_0x5e4868['type']),_0x1214f1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f1d51=>!_0x3f1d51['isMultiRange']&&'attribute'!=_0x3f1d51['type']),_0x5f5053=_0x1214f1['filter'](_0x565100=>!_0x952fca['has'](_0x565100)),_0x1772db=new Map(_0x1214f1['map'](_0x14c38f=>[_0x14c38f,this['_suggestionFactory']['getSuggestionCallback'](_0x14c38f['type'],_0x14c38f['subType'],'chain')])),_0x252659=new Map(_0x1214f1['map'](_0x8223e9=>[_0x8223e9,_0x8223e9['getFirstRange']()])),_0x29524f=new Set(),_0x9723c0=new Set();for(let _0x4f24aa=0x0;_0x4f24aa<_0x2d1abb['length'];_0x4f24aa++)_0x34cbdf(_0x2d1abb[_0x4f24aa],_0x2d1abb,_0x4f24aa+0x1);for(let _0x4e33b8=0x0;_0x4e33b8<_0x2d1abb['length'];_0x4e33b8++)_0x34cbdf(_0x2d1abb[_0x4e33b8],_0x5f5053,0x0);const _0x15447a=new Set();for(let _0xc20a5d=0x0;_0xc20a5d<_0x2d1abb['length'];_0xc20a5d++){const _0x4f2420=_0x2d1abb[_0xc20a5d];!_0x9723c0['has'](_0x4f2420)&&_0x4f2420['previous']&&(_0x15447a['add'](_0x4f2420['previous']),_0x4f2420['previous']['next']===_0x4f2420&&(_0x4f2420['previous']['next']=null),_0x4f2420['previous']=null),!_0x29524f['has'](_0x4f2420)&&_0x4f2420['next']&&(_0x15447a['add'](_0x4f2420['next']),_0x4f2420['next']['previous']===_0x4f2420&&(_0x4f2420['next']['previous']=null),_0x4f2420['next']=null);}function _0x34cbdf(_0x236578,_0x47e264,_0x470ff3){for(let _0x3f35bf=_0x470ff3;_0x3f35bf<_0x47e264['length'];_0x3f35bf++){const _0x1db7ce=_0x442509(_0x236578,_0x47e264[_0x3f35bf]);_0x1db7ce&&(_0x1db7ce[0x0]['next']=_0x1db7ce[0x1],_0x1db7ce[0x1]['previous']=_0x1db7ce[0x0],_0x29524f['add'](_0x1db7ce[0x0]),_0x9723c0['add'](_0x1db7ce[0x1]));}}function _0x442509(_0x28f6b6,_0x388749){if(_0x28f6b6['author']['id']!==_0x388749['author']['id'])return null;const _0x399478=_0x1772db['get'](_0x28f6b6)(_0x28f6b6,_0x388749,_0x252659['get'](_0x28f6b6),_0x252659['get'](_0x388749));if(!_0x399478)return null;return _0x1772db['get'](_0x388749)(_0x28f6b6,_0x388749,_0x252659['get'](_0x28f6b6),_0x252659['get'](_0x388749))?_0x399478[0x1]['commentThread']&&_0x399478[0x1]['commentThread']['length']?null:_0x399478:null;}_0x15447a['size']&&this['_refreshSuggestionsChain'](_0x15447a);}['_refreshAttributeSuggestionsChain'](_0x2df637){if(0x0==_0x2df637['length'])return;const _0x188096=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x128736=>'attribute'==_0x128736['type']&&_0x128736['_isDataLoaded']),_0x2b8013=[],_0x1c9eb1=new Map();for(const _0x21563f of _0x188096){const _0x31ccd7=_0x12085e(_0x21563f['attributes']);_0x1c9eb1['has'](_0x31ccd7)||(_0x1c9eb1['set'](_0x31ccd7,_0x2b8013['length']),_0x2b8013['push']([]));const _0x328bf4=_0x1c9eb1['get'](_0x31ccd7);_0x2b8013[_0x328bf4]['push'](_0x21563f);}!(function(){_0x2b8013['sort']((_0x495dbb,_0x102b57)=>{const _0x22a17f=_0x495dbb[0x0]['createdAt'],_0x5957aa=_0x102b57[0x0]['createdAt'];return _0x22a17f==_0x5957aa?_0x495dbb[0x0]['attributes']['groupId']<_0x102b57[0x0]['attributes']['groupId']?-0x1:0x1:_0x22a17f<_0x5957aa?-0x1:0x1;});for(const _0xbb13b9 of _0x2b8013)_0xbb13b9['sort']((_0x9ee48f,_0x422e6b)=>_0x9ee48f['id']<_0x422e6b['id']?-0x1:0x1);}());for(let _0x249359=0x0;_0x249359<_0x2b8013['length'];_0x249359++){if(0x0==_0x2b8013[_0x249359]['length'])continue;const _0x3ffe77=[];for(let _0x408fb2=_0x249359+0x1;_0x408fb2<_0x2b8013['length'];_0x408fb2++)0x0!=_0x2b8013[_0x408fb2]['length']&&_0x1ff33b(_0x2b8013[_0x249359],_0x2b8013[_0x408fb2])&&_0x3ffe77['push'](_0x408fb2);for(const _0x3885a2 of _0x3ffe77)_0x2b8013[_0x249359]=_0x2b8013[_0x249359]['concat'](_0x2b8013[_0x3885a2]),_0x2b8013[_0x3885a2]=[];}for(const _0x423e0c of _0x2b8013)for(let _0x1cde50=0x0;_0x1cde50<_0x423e0c['length'];_0x1cde50++){const _0x143449=_0x423e0c[_0x1cde50+0x1]||null;_0x423e0c[_0x1cde50]['next']!==_0x143449&&(_0x423e0c[_0x1cde50]['next']=_0x143449);}for(const _0xf5fde0 of _0x2b8013)for(let _0x549777=0x0;_0x549777<_0xf5fde0['length'];_0x549777++){const _0x2857a6=_0xf5fde0[_0x549777-0x1]||null;_0xf5fde0[_0x549777]['previous']!==_0x2857a6&&(_0xf5fde0[_0x549777]['previous']=_0x2857a6);}function _0x1ff33b(_0x80629f,_0x45730f){if(_0x80629f[0x0]['attributes']['groupId']!==_0x45730f[0x0]['attributes']['groupId']&&_0x80629f[0x0]['author']!==_0x45730f[0x0]['author'])return!0x1;if(!function(_0x568619,_0x30a464){if(!_0x568619['hasComments']&&!_0x30a464['hasComments'])return!0x0;if(_0x568619['hasComments']&&_0x30a464['hasComments'])return!0x1;if(_0x568619['hasComments']&&_0x30a464['createdAt']<_0x568619['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x30a464['hasComments']&&_0x568619['createdAt']<_0x30a464['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x80629f[0x0],_0x45730f[0x0]))return!0x1;const _0x53a5a7=Vt(_0x80629f[0x0]['attributes'],'groupId'),_0x4c9199=Vt(_0x45730f[0x0]['attributes'],'groupId');if(!_0x66bff4(_0x53a5a7,_0x4c9199))return!0x1;return!!_0x80629f['every'](_0x425903=>_0x45730f['some'](_0x50d847=>_0x425903['getFirstRange']()['isEqual'](_0x50d847['getFirstRange']())))&&_0x45730f['every'](_0x209510=>_0x80629f['some'](_0x5412a7=>_0x209510['getFirstRange']()['isEqual'](_0x5412a7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1fc0ff){const _0x4babdf=Array['from'](_0x1fc0ff),_0x27caf6=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4f2399=_0x27caf6['filter'](_0x53e0f9=>!_0x1fc0ff['has'](_0x53e0f9)),_0xdd281b=new Map(_0x4babdf['map'](_0x4d7aa0=>[_0x4d7aa0,this['_suggestionFactory']['getSuggestionCallback'](_0x4d7aa0['type'],_0x4d7aa0['subType'],'join')])),_0x4a814d=new Map(_0x27caf6['map'](_0x435e6d=>[_0x435e6d,_0x435e6d['getRanges']()]));for(let _0x50ea80=0x0;_0x50ea80<_0x4babdf['length'];_0x50ea80++){if(_0x4d85d5(this,_0x4babdf[_0x50ea80],_0x4babdf,_0x50ea80+0x1))return!0x0;}for(let _0x12fb83=0x0;_0x12fb83<_0x4babdf['length'];_0x12fb83++){if(_0x4d85d5(this,_0x4babdf[_0x12fb83],_0x4f2399,0x0))return!0x0;}return!0x1;function _0x4d85d5(_0x47936b,_0x446bf1,_0x190096,_0x3c24f9){for(let _0x2c67ae=_0x3c24f9;_0x2c67ae<_0x190096['length'];_0x2c67ae++){const _0x4ad2f4=_0x190096[_0x2c67ae];if(_0x4ad2f4['type']!==_0x446bf1['type']||_0x4ad2f4['author']['id']!==_0x446bf1['author']['id']||_0x4ad2f4['subType']!==_0x446bf1['subType'])continue;if(!Wt(_0x446bf1,_0x4ad2f4))continue;if('attribute'==_0x446bf1['type']&&_0x446bf1['data']['oldValue']!=_0x4ad2f4['data']['oldValue'])continue;if('attribute'==_0x446bf1['type']&&_0x47936b['_isBlockAttribute'](_0x446bf1['data']['key']))continue;if('formatBlock'==_0x446bf1['type']){const _0x1c1bbb=_0x47936b['editor']['model'],_0x585fff=_0x446bf1['getContainedElement']();if(_0x585fff&&(_0x1c1bbb['schema']['isObject'](_0x585fff)||_0x1c1bbb['schema']['isLimit'](_0x585fff)))continue;}const _0x3df426=_0xdd281b['get'](_0x446bf1),_0x3ccda2=_0x4a814d['get'](_0x446bf1),_0x4d0652=_0x4a814d['get'](_0x4ad2f4),_0x5ad705=_0x446bf1['commentThread']&&_0x446bf1['commentThread']['length'],_0x1fa83c=_0x4ad2f4['commentThread']&&_0x4ad2f4['commentThread']['length'];if(!_0x5ad705&&_0x3df426(_0x4d0652,_0x3ccda2))return _0x47936b['_joinSuggestions'](_0x4ad2f4,_0x446bf1),_0x4a814d['delete'](_0x446bf1),!0x0;if(!_0x1fa83c&&_0x3df426(_0x3ccda2,_0x4d0652))return _0x47936b['_joinSuggestions'](_0x446bf1,_0x4ad2f4),_0x4a814d['delete'](_0x4ad2f4),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3ce0c6,_0x2bddb2){if(_0x3ce0c6['isMultiRange']){for(const _0x335aaa of _0x2bddb2['getRanges']())_0x3ce0c6['addRange'](_0x335aaa);}else{const _0x696a54=_0x2bddb2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3ce0c6,this['_model']['createRange'](_0x3ce0c6['getFirstRange']()['start'],_0x696a54));}_0x2bddb2['removeMarkers']();}['_getMarkerAnnouncementText'](_0x27ee04,_0x4e9d8f,_0x37f9bd){const _0x44363a=_0x27ee04['startsWith']('format')||_0x27ee04['startsWith']('attribute')?'FORMATTING':_0x27ee04['toUpperCase']();return c(this['editor']['locale'],_0x4e9d8f+'_'+_0x44363a+'_SUGGESTION_ANNOUNCEMENT',_0x37f9bd);}['_initAriaMarkerChangeAnnouncements'](){const _0x38a8f7=this['editor'];if(!_0x38a8f7['ui'])return;const {ariaLiveAnnouncer:_0x41f5ba}=_0x38a8f7['ui'];_0x512444(this['_model'],({left:_0x3641b9,entered:_0x40e890})=>{for(const _0x427065 of _0x3641b9){const {group:_0x1f0348,type:_0x355641}=this['_splitMarkerName'](_0x427065['name']);if('suggestion'===_0x1f0348){_0x41f5ba['announce'](this['_getMarkerAnnouncementText'](_0x355641,'LEAVE'));break;}}for(const _0x55981b of _0x40e890){const {group:_0x1ec78b,type:_0x28805d}=this['_splitMarkerName'](_0x55981b['name']);if('suggestion'===_0x1ec78b){_0x41f5ba['announce'](this['_getMarkerAnnouncementText'](_0x28805d,'ENTER',_0x46c94e(_0x35e877)));break;}}});}['_processAttributeChanges'](_0x240013){if(this['_recordAttributeSuggestions'])return!0x1;const _0x39554a=this['editor'],_0x2788f4=_0x39554a['model']['document']['differ']['getChanges']();if(0x0==_0x2788f4['length'])return!0x1;const _0x3cceab=[],_0x1d3f10=_0x2788f4['filter'](_0x2e6420=>'attribute'==_0x2e6420['type']),_0x10872b=_0x2788f4['filter'](_0x47625e=>'insert'==_0x47625e['type']&&'$text'!=_0x47625e['name']),_0x170127=_0x2788f4['filter'](_0x2291ad=>'remove'==_0x2291ad['type']&&'$text'!=_0x2291ad['name']);for(const _0x152809 of _0x1d3f10)_0x3cceab['push']({'key':_0x152809['attributeKey'],'newValue':_0x152809['attributeNewValue'],'oldValue':_0x152809['attributeOldValue'],'range':Ht(_0x152809['range'],_0x39554a['model'])});for(const _0x169e7b of _0x10872b){const _0x352037=_0x170127['find'](_0x5c0cb8=>_0x5c0cb8['position']['isEqual'](_0x169e7b['position']));_0x352037&&_0x3cceab['push']({'key':u,'newValue':_0x169e7b['name'],'oldValue':_0x352037['name'],'range':_0x39554a['model']['createRangeOn'](_0x169e7b['position']['nodeAfter'])});}return 0x0!=_0x3cceab['length']&&this['_reduceExistingSuggestions'](_0x240013,_0x3cceab);}['_processAttributeSuggestions'](_0x30de72){let _0x35e7e0=!0x1;const _0x146003=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x50ae62=>_0x50ae62['data']['newRange']&&_0x50ae62['name']['startsWith']('suggestion:attribute:'));for(const _0x24db46 of _0x146003){const {subType:_0x6bb940,id:_0x5ef4ce}=this['_splitMarkerName'](_0x24db46['name']),_0x3ec9d8=_0x6bb940['split']('|')[0x0];for(const _0xd74ee5 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xd74ee5['id']!=_0x5ef4ce&&'attribute'==_0xd74ee5['type']&&_0xd74ee5['data']&&_0xd74ee5['data']['key']==_0x3ec9d8&&_0xd74ee5['getFirstRange']()['isIntersecting'](_0x24db46['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xd74ee5,_0x24db46['data']['newRange'],_0x30de72),_0x35e7e0=!0x0);}return _0x35e7e0;}['_recordAttributeChanges'](_0x5d0773){this['_recordAttributeSuggestions']=!0x0,_0x5d0773();}['_isRegisteredAttribute'](_0xd378de){const _0x5572db=this['_isBlockAttribute'](_0xd378de),_0x29ff9b=this['_inlineAttributeKeys']['has'](_0xd378de);return _0x5572db||_0x29ff9b;}['_reduceExistingSuggestions'](_0x8aa6a3,_0x12949a){if(0x0==_0x12949a['length'])return!0x1;let _0x3dbf72=!0x1;for(const _0x4a88dc of _0x12949a){const _0x4a878f=this['_findSuggestions'](_0x4a88dc['range'],'attribute')['filter'](_0x1355e8=>!_0x1355e8['meta']['isNextTo'])['map'](_0x3a93b2=>_0x3a93b2['suggestion']),_0x409c69=_0x12085e({'newValue':_0x4a88dc['newValue']});_0x4a878f['filter'](_0x30e668=>{const [_0x1d2725,_0x22fee2]=_0x30e668['subType']['split']('|');return _0x1d2725==_0x4a88dc['key']&&_0x22fee2!=_0x409c69;})['forEach'](_0x2caa30=>{this['_reduceSuggestionAttributeRange'](_0x2caa30,_0x4a88dc['range'],_0x8aa6a3),_0x3dbf72=!0x0;});}return _0x3dbf72;}['_reduceSuggestionAttributeRange'](_0x8fbd3b,_0x54c364,_0x3c888c){const _0x55f5e9=_0x8fbd3b['getFirstRange']()['getDifference'](_0x54c364);0x0!==_0x55f5e9['length']?0x1!==_0x55f5e9['length']?this['_breakSuggestionMarker'](_0x8fbd3b,_0x54c364['start'],_0x54c364['end']):this['_setSuggestionRange'](_0x8fbd3b,_0x55f5e9[0x0]):_0x3c888c['removeMarker'](_0x8fbd3b['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4d4cf8){this['_editor']=_0x4d4cf8,this['_model']=_0x4d4cf8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3c54b1,_0x13e9a1,_0x57bf4e,_0xbab2b4,_0x25b07a,_0x47e711){return new o(this['_model'],{'type':_0x3c54b1,'subType':_0x13e9a1,'id':_0x57bf4e,'author':_0xbab2b4,'creator':_0xbab2b4,'attributes':_0x25b07a,'onAttributesChange':_0x47e711,'onAccept':(..._0x25574d)=>this['getSuggestionCallback'](_0x3c54b1,_0x13e9a1,'accept')(..._0x25574d),'onDiscard':(..._0x558b99)=>this['getSuggestionCallback'](_0x3c54b1,_0x13e9a1,'discard')(..._0x558b99)});}['registerCustomCallback'](_0x4f2229,_0x1c4b7a,_0x53935f,_0x85b565){const _0x4fae80=_0x4f2229+':'+_0x1c4b7a+':'+_0x53935f;this['_customCallbacks']['set'](_0x4fae80,_0x85b565);}['getSuggestionCallback'](_0x159f69,_0x475800,_0x4ffaff){const _0x1ca694=_0x159f69+':'+_0x475800+':'+_0x4ffaff;return this['_customCallbacks']['get'](_0x1ca694)||this['_defaultCallbacks']['get'](_0x159f69+':'+_0x4ffaff);}['_registerDefaultCallbacks'](){const _0x14b715=()=>!0x1,_0x26196e=_0xe4b8e1=>{_0xe4b8e1['sort']((_0x3c72f1,_0x44c9cb)=>_0x3c72f1['start']['isBefore'](_0x44c9cb['start'])?0x1:-0x1),this['_model']['change'](_0xba30aa=>{for(const _0x5e078b of _0xe4b8e1){let _0x301cb7;_0x301cb7=_0x5e078b['end']['isAtEnd']&&_0x5e078b['end']['parent']==_0x5e078b['start']['nodeAfter']?_0xba30aa['createSelection'](_0x5e078b['start']['nodeAfter'],'on'):_0xba30aa['createSelection'](_0x5e078b),this['_model']['deleteContent'](_0x301cb7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x258d43=(_0x52aa74,_0x42a856)=>{_0x42a856&&this['_model']['change'](_0x4179ec=>{const {commandName:_0x1dbf96,commandParams:_0xd4b83f=[]}=_0x42a856,_0x21c80a=_0x52aa74['map'](_0x58abf0=>(Gt(_0x58abf0)&&(_0x58abf0=this['_model']['createRange'](_0x58abf0['end'])),_0x58abf0))['filter'](_0x2cb7b3=>'$graveyard'!==_0x2cb7b3['root']['rootName']);if(_0x21c80a['length']<0x1)return;const _0x31f3cf=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4574bb=>_0xb23b08['fromRange'](_0x4574bb));_0x4179ec['setSelection'](_0x21c80a);for(const _0x2a0823 of this['_editor']['commands']['commands']())_0x2a0823['refresh']();_0xd4b83f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1dbf96,..._0xd4b83f);const _0x3de371=_0x31f3cf['filter'](_0xe5eba=>'$graveyard'!=_0xe5eba['root']['rootName']);_0x3de371['length']>0x0&&_0x4179ec['setSelection'](_0x3de371);for(const _0x16e7c3 of _0x31f3cf)_0x16e7c3['detach']();});},_0x54b9c8=(_0x125fbf,_0xb55207)=>0x1==_0x125fbf['length']&&0x1==_0xb55207['length']&&_0x125fbf[0x0]['end']['isEqual'](_0xb55207[0x0]['start']),_0x540ac8=(_0xbafb98,_0x37041b,_0x1fa88b,_0x3be80f)=>zt(_0xbafb98,_0x37041b,_0x1fa88b,_0x3be80f)?[_0xbafb98,_0x37041b]:zt(_0x37041b,_0xbafb98,_0x3be80f,_0x1fa88b)?[_0x37041b,_0xbafb98]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x14b715),this['_defaultCallbacks']['set']('insertion:discard',_0x26196e),this['_defaultCallbacks']['set']('insertion:join',_0x54b9c8),this['_defaultCallbacks']['set']('insertion:chain',_0x540ac8),this['_defaultCallbacks']['set']('deletion:accept',_0x26196e),this['_defaultCallbacks']['set']('deletion:discard',_0x14b715),this['_defaultCallbacks']['set']('deletion:join',_0x54b9c8),this['_defaultCallbacks']['set']('deletion:chain',_0x540ac8),this['_defaultCallbacks']['set']('formatInline:accept',_0x258d43),this['_defaultCallbacks']['set']('formatInline:discard',_0x14b715),this['_defaultCallbacks']['set']('formatInline:join',_0x54b9c8),this['_defaultCallbacks']['set']('formatInline:chain',_0x14b715),this['_defaultCallbacks']['set']('formatBlock:accept',_0x258d43),this['_defaultCallbacks']['set']('formatBlock:discard',_0x14b715),this['_defaultCallbacks']['set']('formatBlock:join',_0x54b9c8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x14b715),this['_defaultCallbacks']['set']('attribute:accept',_0x14b715),this['_defaultCallbacks']['set']('attribute:discard',(_0x317ea4,_0x56bbf2)=>{if(!_0x56bbf2)return;const _0x36d960=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x15a504=>{if(_0x56bbf2['key']==u)for(const _0x176cbc of _0x317ea4){const _0xbb7c40=_0x176cbc['start']['nodeAfter'],_0x284b1b=_0x56bbf2['oldValue'];_0x15a504['rename'](_0xbb7c40,_0x284b1b);}else{if(_0x36d960['_isBlockAttribute'](_0x56bbf2['key'])){for(const _0x1dde68 of _0x317ea4)void 0x0!==_0x56bbf2['oldValue']?_0x15a504['setAttribute'](_0x56bbf2['key'],_0x56bbf2['oldValue'],_0x1dde68['start']['nodeAfter']):_0x15a504['removeAttribute'](_0x56bbf2['key'],_0x1dde68['start']['nodeAfter']);}else{for(const _0xd742cb of _0x317ea4)_0x56bbf2['oldValue']?_0x15a504['setAttribute'](_0x56bbf2['key'],_0x56bbf2['oldValue'],_0xd742cb):_0x15a504['removeAttribute'](_0x56bbf2['key'],_0xd742cb);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x54b9c8);}}function Pt(_0x5a9f88,_0xc70a2b,_0x5a24d7){for(const _0x5cc8f6 of _0xc70a2b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5cc8f6['root']==_0x5cc8f6)return!0x1;if(!_0x5a24d7['containsItem'](_0x5cc8f6))return!0x1;if(_0x5a9f88['isObject'](_0x5cc8f6)||_0x5a9f88['isLimit'](_0x5cc8f6))return!0x0;}return!0x1;}function Gt(_0x1535a1){return _0x1535a1['end']['parent']==_0x1535a1['start']['nodeAfter']&&_0x1535a1['end']['isAtStart'];}function Lt(_0x10a0c8,_0x19814e,_0x5b722c,_0x130f48){const _0x1b05d8=_0x2ef230=>!_0x2ef230['item']['is']('$textProxy')&&!_0x130f48['isObject'](_0x2ef230['item']),_0x192d06=_0x10a0c8['start']['getLastMatchingPosition'](_0x1b05d8),_0x1915e5=_0x10a0c8['end']['getLastMatchingPosition'](_0x1b05d8,{'direction':'backward'});return(!_0x10a0c8['start']['isEqual'](_0x192d06)||!_0x10a0c8['end']['isEqual'](_0x1915e5))&&(_0x192d06['isBefore'](_0x1915e5)?_0x5b722c['updateMarker'](_0x19814e,{'range':_0x5b722c['createRange'](_0x192d06,_0x1915e5)}):_0x5b722c['removeMarker'](_0x19814e),!0x0);}function Jt(_0x111bef){return _0x12085e(_0x111bef);}function Kt(_0x46be96){const _0x3499f8=_0x46be96['start']['nodeAfter'];return _0x3499f8&&_0x3499f8['is']('element');}function Ht(_0x175064,_0x436c00){return null==_0x175064['end']['nodeBefore']&&_0x175064['end']['parent']==_0x175064['start']['nodeAfter']?qt(_0x175064['start']['nodeAfter'],_0x436c00):_0x175064;}function qt(_0x2080d0,_0x535d2c){const _0x15b051=_0x535d2c['schema']['isObject'](_0x2080d0)||_0x535d2c['schema']['isSelectable'](_0x2080d0);return _0x535d2c['createRange'](_0x535d2c['createPositionAt'](_0x2080d0,'before'),_0x15b051?_0x535d2c['createPositionAfter'](_0x2080d0):_0x535d2c['createPositionAt'](_0x2080d0,'end'));}function zt(_0x1b949d,_0x46cc98,_0x5d50bb,_0x3ba13b){return!!Wt(_0x1b949d,_0x46cc98)&&_0x5d50bb['end']['isEqual'](_0x3ba13b['start']);}function Wt(_0x1e66d0,_0x290711){if(!_0x1e66d0['_isDataLoaded']||!_0x290711['_isDataLoaded'])return!0x1;const _0x53b346=new Set(Object['keys'](_0x1e66d0['attributes'])),_0x1ed500=new Set(Object['keys'](_0x290711['attributes']));if(_0x53b346['delete']('groupId'),_0x1ed500['delete']('groupId'),0x0==_0x53b346['size']&&0x0==_0x1ed500['size'])return!0x0;if(_0x53b346['size']!=_0x1ed500['size'])return!0x1;const _0x33f59c={..._0x1e66d0['attributes']},_0x1ea6b9={..._0x290711['attributes']};return delete _0x33f59c['groupId'],delete _0x1ea6b9['groupId'],JSON['stringify'](_0x33f59c)==JSON['stringify'](_0x1ea6b9);}function Qt(_0x46e1a3,_0x41b529){const _0x3b5b90=Xt(_0x46e1a3['attributes']),_0x26f672=Xt(_0x41b529);if(!_0x46e1a3['_isDataLoaded'])return!0x1;for(const _0x2346a3 of Object['keys'](_0x26f672))if(!_0x66bff4(_0x3b5b90[_0x2346a3],_0x26f672[_0x2346a3]))return!0x1;return!0x0;}function Xt(_0x444641){const _0x542441=Object['assign']({},_0x444641);return delete _0x542441['skipNestingCheck'],delete _0x542441['tablePasteChainId'],_0x542441;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x2b3849(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x54074c,_0x5cc91d,_0x2ed10d,_0x5fdb72){super(),this['model']=_0x5cc91d,this['view']=_0x2ed10d,this['commentThreadController']=_0x5fdb72,this['_editor']=_0x54074c,this['_acceptCommand']=_0x54074c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x54074c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5ec2ed,_0x33d8a0)=>_0x5ec2ed||_0x33d8a0),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x20ebb7=>_0x20ebb7&&this['_editor']['model']['canEditAt'](_0x5cc91d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x43c7b2=>_0x43c7b2&&this['_editor']['model']['canEditAt'](_0x5cc91d['getRanges']())),this['_pendingAction']=null,_0x2ed10d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2ed10d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2ed10d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2ed10d,'change:isDirty',()=>{_0x2ed10d['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 _0xec72b5=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xec72b5);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0xb14a3e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x28d46d,_0x10fa6d,_0x2aae0f,_0x4281ce){super(_0x28d46d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2728d9(_0x28d46d,c(_0x28d46d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x10fa6d['authoredAt']),this['bind']('authoredAt')['to'](_0x10fa6d),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',_0x10fa6d,'authoredAt',this,'descriptionParts',(_0x365bb7,_0x10f6c7,_0x19dbb3)=>{const _0x32ea9a=_0x19dbb3['map'](_0x486c45=>ls(_0x486c45['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x365bb7-0x1,_0x10fa6d['author']['name'],_0x10f6c7?_0x4281ce['formatDateTime'](_0x10f6c7):'',new DOMParser()['parseFromString'](_0x32ea9a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x26630c(),this['focusTracker']=new _0x2f94c3(),this['keystrokes']=new _0x4bf129(),this['focusCycler']=new _0x51661a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1fa1c4=>_0x1fa1c4['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x10fa6d,this['_localUser']=_0x2aae0f,this['_config']=_0x4281ce,_0x4281ce['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x29f052(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4d3311}=this['_config'];this['commentsListView']=new _0x4d3311(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',_0x4747c4=>_0x4747c4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2f0091,_0x1c38ef)=>_0x2f0091||!!_0x1c38ef);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3acc29}=this['_config'],_0x4653c0=new _0x3acc29(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4cb811=_0x4653c0['commentInputView'];return _0x4653c0['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4cb811,'value',(_0x46a109,_0x469b74,_0xf34ed7)=>!!_0xf34ed7||_0x46a109&&!_0x469b74),_0x4cb811['on']('submit',(_0x1944c1,_0x2b328d)=>{this['fire']('addComment',_0x2b328d),_0x4cb811['editor']['setData']('');}),_0x4cb811['on']('cancel',()=>this['focus']()),_0x4cb811['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4653c0;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1ad0d5,_0xe14f75,_0x19a354,_0x4cba67){super(_0x1ad0d5,_0xe14f75,_0x19a354,_0x4cba67),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3e4cff=>_0x3e4cff&&_0x3e4cff[0x0]?_0x3e4cff[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x41efd8,_0x505ffb)=>{let _0x33ec6a='';for(const _0x2b370b of _0x41efd8)_0x33ec6a+='<p>'+ls(_0x2b370b['content'],_0x2b370b['color'])+'</p>';return _0x505ffb?_0x33ec6a:ti(_0x33ec6a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4cba67['SuggestionView'](_0x1ad0d5,_0xe14f75,{'formatDateTime':_0x4cba67['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 _0x3892e2=this['bindTemplate'],_0x3fed4b=[this['suggestionView']];return this['commentsListView']&&_0x3fed4b['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3fed4b['push'](this['commentThreadInputView']),_0x3fed4b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3892e2['if']('isActive','ck-suggestion-wrapper--active'),_0x3892e2['to']('type',_0x168cc6=>'ck-suggestion-'+_0x168cc6),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':_0x3892e2['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3fed4b};}['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 _0xb14a3e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xd96429,_0x389d3d,_0x16becf){super(_0xd96429),this['_model']=_0x389d3d,this['_config']=_0x16becf,this['set']('description',''),this['bind']('authoredAt')['to'](_0x389d3d),this['acceptButton']=this['_createButton'](c(_0xd96429,'Accept\x20suggestion'),_0x20edf4,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0xd96429,'Discard\x20suggestion'),_0x4b9d10,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4d6db7(_0xd96429,_0x389d3d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x26630c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2f94c3(),this['keystrokes']=new _0x4bf129(),this['focusCycler']=new _0x51661a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x47b224=>_0x47b224['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5321b4=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5321b4['innerHTML']=this['description'],this['on']('change:description',(_0x3983a9,_0x248cd3,_0x155d59)=>{_0x5321b4['innerHTML']=_0x155d59;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x95f85=this['bindTemplate'],_0x29cab=[{'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':_0x95f85['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x95f85['to']('authoredAt',_0x45e7c7=>this['_config']['formatDateTime'](_0x45e7c7))}]}]},{'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']&&_0x29cab['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':_0x29cab}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xb6ebba,_0x4068b5,_0x18db04,_0x3e3c38,_0x1b4c27){const _0x19966f=new _0xcd0f07(this['locale']);return _0x19966f['set']({'label':_0xb6ebba,'icon':_0x4068b5,'tooltip':!0x0,'tooltipPosition':_0x1b4c27}),_0x19966f['extendTemplate']({'attributes':{'class':_0x18db04}}),_0x19966f['on']('execute',()=>{this['fire'](_0x3e3c38,this['_model']['id']);}),_0x19966f;}['_setupKeyboardNavigation'](){const _0x4256a3=this['element'];this['keystrokes']['listenTo'](_0x4256a3);for(const _0x19ca3d of this['focusables'])this['focusTracker']['add'](_0x19ca3d['element']),this['keystrokes']['listenTo'](_0x19ca3d['element']);this['keystrokes']['set']('enter',(_0x467ebe,_0x1efb57)=>{_0x4256a3===_0x467ebe['target']&&(this['focusCycler']['focusFirst'](),_0x1efb57());}),this['keystrokes']['set']('esc',(_0x3bbac8,_0x18efed)=>{_0x4256a3!==_0x3bbac8['target']&&(this['focus'](),_0x18efed());});}}class d extends _0x450ea2{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x40ec95,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5970f3){super(_0x5970f3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x151bb4=this['editor']['config'];_0x151bb4['define']('trackChanges.SuggestionThreadView',fe),_0x151bb4['define']('trackChanges.SuggestionView',we),_0x151bb4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x151bb4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x57e920,_0x1d2fe7){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x9949fa,_0x5b38ce]of this['_handleControllerBuffer']){const _0x47d7e2=this['_suggestionToController']['has'](_0x9949fa);_0x47d7e2||_0x5b38ce?_0x47d7e2&&_0x5b38ce&&this['_destroyController'](_0x9949fa):this['_initializeController'](_0x9949fa);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x57e920,_0x1d2fe7);}['init'](){const _0x14fbf4=this['editor'],_0x33369e=_0x14fbf4['plugins']['get']('TrackChangesEditing'),_0x5e7c15=_0x14fbf4['plugins']['get']('Annotations'),_0xf9d631=_0x14fbf4['plugins']['get']('EditorAnnotations'),_0x5e5930=_0x14fbf4['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xf9d631['addSourceCollector'](()=>{const _0x227f58=[];for(const [_0x52f003,_0x56c735]of Array['from'](this['_suggestionToController'])){const _0xd47bb1=_0x52f003['getAllAdjacentSuggestions'](),_0xfbfddb=[];for(const _0xc20be0 of _0xd47bb1){if(!_0xc20be0['isInContent'])continue;if(_0xc20be0['isMultiRange']){_0xfbfddb['push'](..._0xc20be0['getRanges']());continue;}const _0x2f1a06=_0xc20be0['getFirstRange']();if(_0xfbfddb['length']>0x0){const _0x1d58e4=_0xfbfddb[0x0]['getJoined'](_0x2f1a06);if(_0x1d58e4){_0xfbfddb[0x0]=_0x1d58e4;continue;}}_0xfbfddb['push'](_0x2f1a06);}_0x227f58['push']([_0x56c735['view'],_0xfbfddb]);}return _0x227f58;}),this['listenTo'](_0x33369e,'suggestionLoaded',(_0x26087f,_0x31c938)=>{this['listenTo'](_0x31c938,'change:previous',(_0x4a8014,_0xe2d0a6,_0x49e687,_0x5e0198)=>{_0x31c938['isInContent']&&(null==_0x49e687?(this['_updateController'](_0x5e0198['head']),this['_handleSuggestionControllerDelayed'](_0x31c938,!0x1)):(this['_updateController'](_0x49e687['head']),null==_0x5e0198&&this['_handleSuggestionControllerDelayed'](_0x31c938,!0x0)));}),null!==_0x31c938['previous']?this['_updateController'](_0x31c938['head']):this['_handleSuggestionControllerDelayed'](_0x31c938,!0x1);}),this['listenTo'](_0x33369e,'suggestionUnloaded',(_0x551a8d,_0x7a3418,_0x1bdd7c)=>{this['stopListening'](_0x7a3418,'change:previous'),this['_handleControllerBuffer']['delete'](_0x7a3418),this['_suggestionToController']['has'](_0x7a3418)&&this['_destroyController'](_0x7a3418),_0x1bdd7c&&this['_updateController'](_0x1bdd7c['head']);}),this['listenTo'](_0x33369e,'suggestionChanged',(_0x5b4fed,_0x45f589)=>{this['_updateController'](_0x45f589);}),this['listenTo'](_0x5e7c15,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5e5930,'addComment',(_0x29d792,{threadId:_0x33cc28,isFromAdapter:_0x308a12})=>{if(_0x308a12||!_0x33369e['hasSuggestion'](_0x33cc28))return;const _0x4b9cbc=_0x33369e['getSuggestion'](_0x33cc28);this['_suggestionToController']['get'](_0x4b9cbc)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x24e7a9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5d9d54;for(const _0x2f9599 in _0x24e7a9){const _0x53489f=_0x2f9599,_0x4ebe26=_0x24e7a9[_0x53489f];if('trackChangesLicenseKeyValid'==_0x4ebe26||'trackChangesLicenseKeyInvalid'==_0x4ebe26||'trackChangesLicenseKeyExpired'==_0x4ebe26||'trackChangesLicenseKeyDomainLimit'==_0x4ebe26||'trackChangesLicenseKeyNotAllowed'==_0x4ebe26||'trackChangesLicenseKeyEvaluationLimit'==_0x4ebe26||'trackChangesLicenseKeyTrialLimit'==_0x4ebe26||'trackChangesLicenseKeyUsageLimit'==_0x4ebe26){delete _0x24e7a9[_0x53489f],_0x5d9d54=_0x4ebe26,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5d9d54&&_0x24e7a9['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5d9d54&&_0x24e7a9['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5d9d54&&_0x24e7a9['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5d9d54&&_0x24e7a9['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5d9d54&&_0x24e7a9['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5d9d54&&_0x24e7a9['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5d9d54&&_0x24e7a9['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5230e8=this['editor']['plugins']['get']('Annotations'),_0x1a6e94=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fcd44=Array['from'](_0x5230e8['activeAnnotations'],_0x207ceb=>_0x207ceb['innerView'])['filter'](_0x38f1b3=>this['_viewToController']['has'](_0x38f1b3)),_0x1c654e=[];for(const _0x317607 of _0x1fcd44){const _0x2b5ee8=this['_viewToController']['get'](_0x317607)['model']['getAllAdjacentSuggestions']();_0x1c654e['push'](..._0x2b5ee8['reduce']((_0x4a2581,_0x121026)=>[..._0x4a2581,..._0x121026['getMarkerNames']()],[]));}_0x1a6e94['activeMarkers']=_0x1c654e;}['_addUIComponentsToFactory'](){const _0x6fc7e8=this['editor'],_0x9198be=_0x6fc7e8['locale'],_0x4e603a=c(_0x9198be,'Track\x20changes'),_0x45d38d=new _0x11be61([{'type':'switchbutton','model':new _0x59e6bd({'withText':!0x0,'isToggleable':!0x0,'label':_0x4e603a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x59e6bd({'withText':!0x0,'label':c(_0x9198be,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x59e6bd({'withText':!0x0,'label':c(_0x9198be,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x59e6bd({'withText':!0x0,'label':c(_0x9198be,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x59e6bd({'withText':!0x0,'label':c(_0x9198be,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x6fc7e8['plugins']['has']('TrackChangesPreview')&&_0x45d38d['addMany']([{'type':'separator'},{'type':'button','model':new _0x59e6bd({'withText':!0x0,'label':c(_0x9198be,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x209b2c of _0x45d38d)if(ke(_0x209b2c)){const _0x41c998=_0x6fc7e8['commands']['get'](_0x209b2c['model']['commandName']);_0x209b2c['model']['bind']('isOn','isEnabled')['to'](_0x41c998,'value','isEnabled');}_0x6fc7e8['ui']['componentFactory']['add']('trackChanges',_0x5054ed=>this['_createToolbarButton'](_0x5054ed,_0x45d38d,_0x4e603a)),_0x6fc7e8['ui']['componentFactory']['add']('menuBar:trackChanges',_0x28b918=>this['_createMenuBarMenu'](_0x28b918,_0x45d38d,_0x4e603a));}['_createToolbarButton'](_0x30d6a5,_0x582a74,_0x398e2){const _0x301f58=_0x30f08a(_0x30d6a5,_0x2174b2),_0x26f54b=this['editor']['commands']['get']('trackChanges');_0x301f58['buttonView']['set']({'tooltip':_0x398e2,'label':_0x398e2,'icon':_0x4433fb}),_0x301f58['buttonView']['bind']('isOn')['to'](_0x26f54b,'value'),_0x301f58['buttonView']['on']('execute',()=>{_0x26f54b['execute'](),this['editor']['editing']['view']['focus']();}),_0x1f4d4a(_0x301f58,_0x582a74,{'role':'menu'});const _0x56c668=[];for(const _0x5b0028 of _0x582a74)ke(_0x5b0028)&&_0x56c668['push'](this['editor']['commands']['get'](_0x5b0028['model']['commandName']));const _0x5e65d2=_0x301f58['buttonView'];return _0x5e65d2['actionView']['unbind']('isEnabled'),_0x5e65d2['arrowView']['unbind']('isEnabled'),_0x5e65d2['actionView']['bind']('isEnabled')['to'](_0x26f54b,'isEnabled'),_0x5e65d2['arrowView']['bind']('isEnabled')['toMany'](_0x56c668,'isEnabled',(..._0x424239)=>_0x424239['some'](_0x14ac32=>_0x14ac32)),_0x301f58['on']('execute',_0x4b77b4=>{this['editor']['execute'](_0x4b77b4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x301f58;}['_createMenuBarMenu'](_0x5855b8,_0x237910,_0x2a8629){const _0x34bff8=new _0x4e0436(_0x5855b8),_0x154307=this['editor']['commands']['get']('trackChanges');_0x34bff8['buttonView']['set']({'label':_0x2a8629,'icon':_0x4433fb});const _0x38e09d=new _0x13460c(_0x5855b8);for(const _0x3e7b68 of _0x237910){if('separator'==_0x3e7b68['type']){_0x38e09d['items']['add'](new _0x50f2e5(_0x5855b8));continue;}const _0x57127b=new _0x150d14(_0x5855b8,_0x34bff8),_0x24ce4e=new _0x1f9627(_0x5855b8),_0x55b125=_0x3e7b68['model'];_0x24ce4e['bind'](...Object['keys'](_0x55b125))['to'](_0x55b125),_0x24ce4e['delegate']('execute')['to'](_0x34bff8),_0x24ce4e['on']('execute',()=>{this['editor']['execute'](_0x55b125['commandName']),this['editor']['editing']['view']['focus']();}),_0x57127b['children']['add'](_0x24ce4e),_0x38e09d['items']['add'](_0x57127b);}return _0x34bff8['bind']('isEnabled')['to'](_0x154307,'isEnabled'),_0x34bff8['panelView']['children']['add'](_0x38e09d),_0x34bff8;}['_initializeController'](_0x248eeb){const _0x4a21fa=this['editor'],_0x10bd3e=_0x4a21fa['config'],_0x5ecf69=_0x4a21fa['plugins']['get']('Annotations'),_0x1715f9=_0x4a21fa['plugins']['get']('CommentsRepository'),_0x461880=_0x4a21fa['plugins']['get']('EditorAnnotations'),_0x1ace9f=_0x4a21fa['plugins']['get'](_0x40ec95)['me'],_0x49b298=_0x10bd3e['get']('trackChanges')['SuggestionThreadView'],_0x536d42=_0x10bd3e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x36b084,CommentThreadInputView:_0x338c60}=_0x4a21fa['plugins']['get']('CommentsUI');let _0x358e43,_0x1a3db0,_0x53616f;this['_annotationViews']['has'](_0x248eeb['id'])?(_0x1a3db0=this['_annotationViews']['get'](_0x248eeb['id']),_0x358e43=_0x1a3db0['mainView']):(_0x358e43=new _0x49b298(_0x4a21fa['locale'],_0x248eeb,_0x1ace9f,{'disableComments':this['_disableComments'],'editorConfig':{..._0x10bd3e['get']('comments.editorConfig'),'licenseKey':_0x10bd3e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x10bd3e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x10bd3e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x10bd3e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x13bcbf(_0x10bd3e['get']('locale')),'CommentView':_0x10bd3e['get']('comments')['CommentView'],'CommentsListView':_0x36b084,'CommentThreadInputView':_0x338c60,'SuggestionView':_0x536d42}),_0x358e43['suggestionView']['acceptButton']['on']('execute',()=>{_0x4a21fa['editing']['view']['focus']();}),_0x358e43['suggestionView']['discardButton']['on']('execute',()=>{_0x4a21fa['editing']['view']['focus']();}),_0x1a3db0=_0x5ecf69['createAnnotationView'](this['editor']['locale'],_0x358e43),_0x1a3db0['bind']('isDirty')['to'](_0x358e43,'isDirty'),_0x1a3db0['bind']('length')['to'](_0x358e43),_0x1a3db0['bind']('type')['to'](_0x358e43,'type',_0x48a697=>'suggestion-'+_0x48a697),_0x358e43['on']('escape',()=>{_0x53616f['fire']('escape');}),this['_annotationViews']['set'](_0x248eeb['id'],_0x1a3db0));const _0x215804=_0x1715f9['createCommentThreadController'](_0x248eeb['commentThread'],_0x358e43),_0x3996e7=new pe(_0x4a21fa,_0x248eeb,_0x358e43,_0x215804),_0x2c62b2=_0x248eeb['getAllAdjacentSuggestions']()['filter'](_0xd667e7=>_0xd667e7['isInContent']);_0x358e43['descriptionParts']=_0x4a21fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2c62b2),this['_suggestionToController']['set'](_0x248eeb,_0x3996e7),this['_viewToController']['set'](_0x358e43,_0x3996e7),_0x53616f=_0x5ecf69['createAnnotation']({'view':_0x1a3db0,'target':()=>{const _0x1c80aa=[],_0x32ff67=_0x248eeb['getAllAdjacentSuggestions']()['filter'](_0x328953=>_0x328953['isInContent']);for(const _0x19d0cd of _0x32ff67)_0x1c80aa['push'](..._0x19d0cd['getMarkers']());return _0x48eb5b(_0x4a21fa['editing'],_0x1c80aa);},'type':()=>'suggestion-'+_0x3996e7['view']['type']}),_0x1715f9['_bindAnnotationToEditors'](_0x358e43,_0x53616f),_0x5ecf69['add'](_0x53616f),_0x461880['registerAnnotation'](_0x53616f);}['_destroyController'](_0x32d449){const _0x106f86=this['editor']['plugins']['get']('CommentsRepository'),_0x21d23a=this['editor']['plugins']['get']('Annotations'),_0x15f8bf=this['_suggestionToController']['get'](_0x32d449),_0x1b45cc=_0x15f8bf['view'],_0x45bd2d=_0x21d23a['getByInnerView'](_0x1b45cc);_0x106f86['_unbindEditors'](_0x1b45cc),_0x45bd2d&&_0x21d23a['remove'](_0x45bd2d),this['_suggestionToController']['delete'](_0x32d449),this['_viewToController']['delete'](_0x1b45cc),_0x15f8bf['destroy']();}['_updateController'](_0x1677d8){if(!_0x1677d8['isInContent']||!this['_suggestionToController']['has'](_0x1677d8))return;const _0x47fbde=this['editor']['plugins']['get']('TrackChangesEditing'),_0x111500=this['_suggestionToController']['get'](_0x1677d8),_0x316801=_0x1677d8['getAllAdjacentSuggestions']();_0x111500['view']['descriptionParts']=_0x47fbde['descriptionFactory']['getDescriptions'](_0x316801);}['destroy'](){for(const _0xb9aa50 of this['_suggestionToController']['keys']())this['_destroyController'](_0xb9aa50);for(const _0x4f3fa8 of this['_annotationViews']['values']())_0x4f3fa8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3b631e){return'model'in _0x3b631e;}class k extends _0x450ea2{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x53ea04){this['editor']['plugins']['get'](p)['adapter']=_0x53ea04;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x7aa3ea){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x7aa3ea);}['getSuggestions']({skipNotAttached:_0x344e70=!0x1,toJSON:_0x48f7f0=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x344e70,'toJSON':_0x48f7f0});}['getSuggestion'](_0x5457d8){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5457d8);}}const w=['Pagination'];class T extends _0x450ea2{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x604357=this['editor'];if(_0x604357['config']['define']('trackChangesData.editorCreator',_0x5db6e6=>{const _0x5c2e5d=_0x604357['model']['document']['getRootNames']()['reduce']((_0x3085b6,_0x399a5b)=>(_0x3085b6[_0x399a5b]='',_0x3085b6),{});return _0x604357['constructor']['create'](_0x5c2e5d,_0x5db6e6);}),'function'!=typeof _0x604357['config']['get']('trackChangesData')['editorCreator'])throw new _0x5b7c7b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2cddd4){return N(this['editor'],!0x0,_0x2cddd4);}['getDataWithDiscardedSuggestions'](_0x45f540){return N(this['editor'],!0x1,_0x45f540);}}class D extends _0x450ea2{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x272558){function _0xb79c23(_0x44bfc8){return _0x44bfc8['map'](_0x4769e0=>String['fromCharCode'](_0x4769e0))['join']('');}super(_0x272558),this['result']='end',_0x272558[_0xb79c23([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb79c23([0x76,0x69,0x65,0x77])][_0xb79c23([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb79c23([0x61,0x75,0x74,0x6f]),_0x272558[_0xb79c23([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xb79c23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb79c23([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xb79c23([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xb79c23([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x35c48c){return void 0x0!==_0x35c48c['getRootsAttributes'];}async function N(_0x4476f6,_0x4cb78c,_0x1d8d66){const _0x3ae8a1=_0x198465(_0x4476f6,w);_0x3ae8a1['plugins']['push'](p,D),_0x3ae8a1['rootsAttributes']=Fe(_0x4476f6)?_0x4476f6['getRootsAttributes']():void 0x0;const _0x4c6d2d=document['createDocumentFragment'](),_0x4ac8e0=_0x4476f6['config']['get']('trackChangesData')['editorCreator'],_0x287453=await _0x4ac8e0(_0x3ae8a1,()=>function(_0x58e87f){const _0x1cfd75=document['createElement']('div');return _0x58e87f['appendChild'](_0x1cfd75),_0x1cfd75;}(_0x4c6d2d));!function(_0x492cc1,_0x23eef4){const _0x5bc64d=_0x492cc1['model']['document']['getRootNames']()['reduce']((_0x57bad7,_0x3c31e9)=>(_0x57bad7[_0x3c31e9]=_0x492cc1['data']['get']({'rootName':_0x3c31e9}),_0x57bad7),{}),_0x258cc5=_0x492cc1['plugins']['get']('Users')['users']['map'](_0x3ce99d=>({'id':_0x3ce99d['id'],'name':_0x3ce99d['name']})),_0xeddc5f=_0x492cc1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xe7825f=_0x492cc1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xa4bcba=_0x23eef4['plugins']['get']('Users'),_0x314a27=_0x23eef4['plugins']['get']('TrackChangesEditing'),_0x3cc95c=_0x23eef4['plugins']['get']('CommentsRepository');for(const _0x4b8681 of _0x3cc95c['getCommentThreads']())_0x4b8681['remove']();for(const _0x31000d of _0x258cc5)_0xa4bcba['getUser'](_0x31000d['id'])||_0xa4bcba['addUser'](_0x31000d);_0xa4bcba['me']||_0xa4bcba['useAnonymousUser']();for(const _0x164462 of _0xe7825f)_0x3cc95c['addCommentThread'](_0x164462);for(const _0x1377c0 of _0xeddc5f)_0x314a27['addSuggestionData'](_0x1377c0);_0x23eef4['data']['set'](_0x5bc64d);}(_0x4476f6,_0x287453),_0x287453['execute'](_0x4cb78c?'acceptAllSuggestions':'discardAllSuggestions');const _0x34f65d=Fe(_0x287453)?_0x287453['getFullData'](_0x1d8d66):_0x287453['data']['get'](_0x1d8d66);return await _0x287453['destroy'](),_0x34f65d;}class Me extends _0xb14a3e{['options'];constructor(_0x3251e9,_0x3a7ce9){super(_0x3251e9),this['options']=_0x3a7ce9,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'](_0x41c685,_0x3de144){if(!this['element'])return;const _0x194ede=[];for(const [_0xb671d6,_0x2f5fa8]of _0x41c685){const _0x120de4=document['createElement']('div');_0x120de4['setAttribute']('data-ck-root-name',_0xb671d6),_0x120de4['className']=_0x2f5fa8['classes']+'\x20ck-track-changes-preview__root-container',_0x120de4['innerHTML']=_0x2f5fa8['content'],_0x194ede['push'](_0x120de4);}_0x3de144(this['element'],_0x194ede),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x514cdc{constructor(_0x4e7d08){super(_0x4e7d08),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1720fc=this['editor'],_0x4b76ce=_0x1720fc['locale'],_0x2f8c04=_0x1720fc['plugins']['get']('Dialog');let _0xc00f81;const _0x3865e4=function(_0x39299f){const _0x5617b6={};if('editables'in _0x39299f['ui']['view']){for(const [_0x590634,_0x5c5f66]of Object['entries'](_0x39299f['ui']['view']['editables']))_0x5617b6[_0x590634]=_0x5c5f66['element'];}else _0x5617b6[_0x39299f['model']['document']['getRootNames']()[0x0]]=_0x39299f['ui']['view']['editable']['element'];return _0x5617b6;}(_0x1720fc),_0x359ca6=function(_0x5b0f67){let _0x35164f=0x0;for(const _0x2648e2 of Object['values'](_0x5b0f67))_0x35164f=Math['max'](_0x35164f,_0x2648e2['getBoundingClientRect']()['width']);let _0x3edf9e=0x0;for(const _0x1d2b97 of Object['values'](_0x5b0f67))_0x3edf9e+=_0x1d2b97['getBoundingClientRect']()['height'];const _0x9389bc=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xfa56d3=Math['min'](_0x3edf9e,_0x9389bc);return{'width':_0x35164f,'height':_0xfa56d3};}(_0x3865e4);_0x2f8c04['show']({'id':'finalContentPreview','title':c(_0x4b76ce,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x4b76ce,{'dialogRects':_0x359ca6}),'onHide':()=>{_0xc00f81['detachFromDom']();},'onShow':()=>{_0x1720fc['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3cfde6=>{const _0x2c0297=this['_standarizeRootsData'](_0x3cfde6,_0x1720fc,_0x3865e4);_0x2f8c04['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2c0297,_0x1720fc['config']['get']('trackChanges.preview.renderFunction'));}),_0xc00f81=new _0x34ef24(_0x4b76ce,[_0x2f8c04['view']]),_0xc00f81['attachToDom'](),_0xc00f81['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1720fc['once']('destroy',()=>{_0xc00f81['detachFromDom']();});const _0x106ff6=_0x2f8c04['view']['headerView']['class'];_0x2f8c04['view']['headerView']['class']=_0x106ff6?_0x106ff6+'\x20ck-reset_all':'ck-reset_all',_0x2f8c04['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2f8c04['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x39a1a7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x178e8c=_0x39a1a7['previewMode'],_0x5d0dc0={};if('$labels'===_0x178e8c){for(const _0xec0dc8 of _0x39a1a7['getMergeFieldsIds']())_0x5d0dc0[_0xec0dc8]=_0x39a1a7['getLabel'](_0xec0dc8)||_0xec0dc8;}else{const _0x436d2d='$defaultValues'===_0x178e8c?_0x39a1a7['getDefaultValues']():_0x39a1a7['getDataSetValues'](_0x178e8c,!0x0);for(const _0x4fa21f of Object['entries'](_0x436d2d)){const [_0x59fd7b,_0x398416]=_0x4fa21f;_0x5d0dc0[_0x59fd7b]=null!==_0x398416?_0x398416:_0x39a1a7['getLabel'](_0x59fd7b)||_0x59fd7b;}}return{'mergeFieldsData':_0x5d0dc0};}['_standarizeRootsData'](_0x1dbb4b,_0x4c2c82,_0x4af6e2){let _0x5e16b;if('string'==typeof _0x1dbb4b){const _0x41c0a4=_0x4c2c82['model']['document']['getRootNames']()[0x0];_0x5e16b={[_0x41c0a4]:_0x1dbb4b};}else _0x5e16b=_0x1dbb4b;const _0x43a69a=this['_fixMediaEmbeds'](_0x5e16b,_0x4c2c82),_0x39913a=function(_0x9f6290,_0x16d563){for(const [_0x3097f7,_0x545258]of _0x9f6290)_0x545258['classes']=_0x16d563[_0x3097f7]['classList']['value']['replace']('ck-focused','');return _0x9f6290;}(this['_sortRoots'](_0x4c2c82)['reduce']((_0x25d7ba,_0x21c3cb)=>(_0x25d7ba['push']([_0x21c3cb,{'content':_0x43a69a[_0x21c3cb],'classes':''}]),_0x25d7ba),[]),_0x4af6e2);return _0x39913a;}['_fixMediaEmbeds'](_0x4af2f5,_0x38335f){if(!_0x38335f['plugins']['has']('MediaEmbedEditing'))return _0x4af2f5;const _0x3a49e9=_0x38335f['plugins']['get']('MediaEmbedEditing');for(const [_0x3f4acd,_0x2aeaf8]of Object['entries'](_0x4af2f5)){const _0x2a0971=document['createElement']('div');_0x2a0971['innerHTML']=_0x2aeaf8,(_0x2a0971['querySelectorAll']('figure.media')['forEach'](_0x515e99=>{const _0x53d65d=_0x515e99['querySelector']('oembed');if(_0x53d65d){const _0x376862=_0x53d65d['getAttribute']('url');if(_0x376862){const _0x29880d=_0x3a49e9['registry']['getMediaViewElement'](new _0x27fa9f(_0x38335f['editing']['view']['document']),_0x376862,{'elementName':'','renderForEditingView':!0x0}),_0x53a092=document['createElement']('div');_0x53a092['classList']['add']('ck-media__wrapper'),_0x29880d['render'](_0x53a092,_0x38335f['editing']['view']['domConverter']),_0x53d65d['replaceWith'](_0x53a092);}}}),_0x4af2f5[_0x3f4acd]=_0x2a0971['innerHTML']);}return _0x4af2f5;}['_sortRoots'](_0xc6af71){if(!function(_0x2ab015){return void 0x0!==_0x2ab015['getRootsAttributes'];}(_0xc6af71))return _0xc6af71['model']['document']['getRootNames']();const _0x41365e=[],_0x52dd48=new Map();for(const _0x579786 of _0xc6af71['model']['document']['getRootNames']()){const _0x3f599c=_0xc6af71['editing']['view']['getDomRoot'](_0x579786)['getClientRects']()['item'](0x0);_0x41365e['push'](_0x579786),_0x52dd48['set'](_0x579786,_0x3f599c);}return _0x41365e['sort']((_0x56614a,_0x756095)=>{const _0x3aa29f=_0x52dd48['get'](_0x56614a),_0x212d7a=_0x52dd48['get'](_0x756095);return _0x3aa29f['y']-_0x212d7a['y']||_0x3aa29f['x']-_0x212d7a['x'];}),_0x41365e;}}class te extends _0x450ea2{static get['requires'](){return[T,_0x2da088];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7240fc){super(_0x7240fc),_0x7240fc['commands']['add']('previewFinalContent',new re(this['editor'])),_0x7240fc['config']['define']('trackChanges.preview.renderFunction',(_0x2a3733,_0x344ca5)=>{for(const _0x1e59c4 of _0x344ca5)_0x2a3733['appendChild'](_0x1e59c4);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x339021,Plugin as _0x54e516,PendingActions as _0x5cb8b7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1a1d2d,ObservableMixin as _0x1f73ca,uid as _0x5310dd,priorities as _0x2800bb,insertToPriorityArray as _0x33918d,logWarning as _0x5b3cf6,getEnvKeystrokeText as _0x5f531a,FocusTracker as _0xc2e669,KeystrokeHandler as _0x5188e6,Collection as _0x2e0cef}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x35d65b,IconCancel as _0x12bc4e,IconTrackChanges as _0xd8a762}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1f08af,View as _0x1d3524,ViewCollection as _0x10e58e,FocusCycler as _0x279a0f,ViewModel as _0x4e4f6a,createDropdown as _0x56e766,SplitButtonView as _0x5c40a3,addListToDropdown as _0x3efabf,MenuBarMenuView as _0x1aee17,MenuBarMenuListView as _0x2d7c81,ListSeparatorView as _0x36879a,MenuBarMenuListItemView as _0x4592f0,MenuBarMenuListItemButtonView as _0x89f640,BodyCollection as _0x36cf22,Dialog as _0x7a5ccd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x25323f,hashObject as _0x52257a,surroundingMarkersDetector as _0x492d76,FOCUS_ANNOTATION_KEYSTROKE as _0x295ed7,AriaDescriptionView as _0xa50ecc,setupThreadKeyboardNavigation as _0x82ff32,trimHtml as ti,UserView as _0xecee32,LateFocusButtonView as _0x2f4a77,getDateTimeFormatter as _0x31fc8e,getAllMarkersDomElementsSorted as _0x1cd5aa,sanitizeEditorConfig as _0x3a3895}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x27bc06,LiveRange as _0x6b53b6,LivePosition as _0x5f2a4a,DowncastWriter as _0x162b19}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x63d294,toWidget as _0x2b5ac0}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x6a5ce,set as _0x4e20bb,isEqual as _0x14f7b8,unset as _0x5e6601,omit as Vt}from'es-toolkit/compat';import{Delete as _0x2df60f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x188e6c,ShiftEnter as _0x234e13}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x339021{['_enabledCommands'];constructor(_0x1bd0fb,_0x2a3ba2){super(_0x1bd0fb),this['_enabledCommands']=_0x2a3ba2,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 _0xc8d74e of this['editor']['commands']['commands']())_0xc8d74e['affectsData']&&!this['_enabledCommands']['has'](_0xc8d74e)&&_0xc8d74e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1424ad of this['editor']['commands']['commands']())_0x1424ad['affectsData']&&!this['_enabledCommands']['has'](_0x1424ad)&&_0x1424ad['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x339021{['_suggestions'];constructor(_0x50fb57,_0x39e0c5){super(_0x50fb57),this['_suggestions']=_0x39e0c5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xaf32da){const _0x2ea87e=this['_suggestions']['get'](_0xaf32da);if(!_0x2ea87e)throw new _0x1a1d2d('track-changes-accept-suggestion-not-found',this);const _0x245d01=_0x2ea87e['getRanges']();this['editor']['model']['canEditAt'](_0x245d01)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2ea87e);}}class R extends _0x339021{['_suggestions'];constructor(_0x41a300,_0x7f9379){super(_0x41a300),this['_suggestions']=_0x7f9379,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x57f837){const _0x56713a=this['_suggestions']['get'](_0x57f837);if(!_0x56713a)throw new _0x1a1d2d('track-changes-discard-suggestion-not-found',this);const _0x2868d5=_0x56713a['getRanges']();this['editor']['model']['canEditAt'](_0x2868d5)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x56713a);}}function ls(_0x5064cd,_0x55d046){let _0x224d04='';return _0x224d04+=_0x5064cd['split']('*')['map']((_0x35b9e9,_0x4cca93)=>_0x4cca93%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x35b9e9)+'</span>':nn(_0x35b9e9))['join'](''),_0x55d046&&(_0x224d04+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x55d046['value']+'\x22\x20title=\x22'+_0x55d046['title']+'\x22></span>'),_0x224d04;}function nn(_0xb70e70){const _0x19e495=document['createElement']('span');return _0x19e495['innerText']=_0xb70e70,_0x19e495['innerHTML'];}function ts(_0x5b4072){return _0x5b4072['sort']((_0x25fbcc,_0x16855d)=>'deletion'==_0x25fbcc['type']&&'deletion'!=_0x16855d['type']?-0x1:'deletion'!=_0x25fbcc['type']&&'deletion'==_0x16855d['type']?0x1:0x0);}function Zt(_0x302872,_0x167e4f){let _0x514081,_0x37c761=0x0;const _0x3a09ee=[],_0x56beb1=_0x167e4f['schema'];for(;_0x37c761<_0x302872['length'];){const _0x4e49a8=_0x302872[_0x37c761],_0x22eac5=_0x302872[_0x37c761+0x1];_0x514081||(_0x514081=_0x167e4f['createPositionBefore'](_0x4e49a8)),on(_0x167e4f,_0x4e49a8,_0x22eac5)||(_0x3a09ee['push'](_0x167e4f['createRange'](_0x514081,_0x56beb1['isObject'](_0x4e49a8)?_0x167e4f['createPositionAfter'](_0x4e49a8):_0x167e4f['createPositionAt'](_0x4e49a8,'end'))),_0x514081=null),_0x37c761++;}return _0x3a09ee;}function on(_0x42525e,_0x452977,_0x3b51c0){if(!_0x3b51c0)return!0x1;const _0x42f5f4=_0x42525e['createPositionAfter'](_0x452977),_0x8f397a=_0x42525e['createPositionBefore'](_0x3b51c0);return _0x42f5f4['isTouching'](_0x8f397a);}function rs(_0x21ad31,_0x25830a,_0x1d393e){for(;_0x1d393e['length'];){const _0x2f1885=_0x1d393e['splice'](0x0,0x64);_0x21ad31['change'](()=>{for(const _0xad5de5 of _0x2f1885)_0xad5de5['isInContent']&&_0x25830a['execute'](_0xad5de5['id']);});}}class x extends _0x339021{['_command'];['_suggestions'];constructor(_0x55adde,_0x5dda6c,_0xc1d87c){super(_0x55adde),this['_command']=_0x5dda6c,this['_suggestions']=_0xc1d87c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2c876c=Array['from'](this['_suggestions']['values']())['some'](_0x361d94=>_0x361d94['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2c876c;}['execute'](){const _0x3a077a=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3bf183 of _0x3a077a){const _0x577d01=_0x3bf183['getRanges']();if(!this['editor']['model']['canEditAt'](_0x577d01))return;}rs(this['editor']['model'],this['_command'],_0x3a077a);}}class E extends _0x339021{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xd61ae8,_0x1f4d19,_0x36487e){super(_0xd61ae8),this['_command']=_0x1f4d19,this['_suggestions']=_0x36487e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xf2ae9d=this['editor']['model']['document']['selection'],_0x3e1164=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x40893b,_0x30513a){const _0x376647=Array['from'](_0x40893b['getRanges']()),_0xafb41e=new Set();for(const _0xe27cad of _0x30513a)if(_0xe27cad['isInContent']){for(const _0xe4d634 of _0x376647)for(const _0x36b3c7 of _0xe27cad['getRanges']())(_0xe4d634['isIntersecting'](_0x36b3c7)||_0x40893b['isCollapsed']&&!_0xe27cad['isMultiRange']&&_0xe27cad['next']&&_0x36b3c7['end']['isTouching'](_0xe4d634['start']))&&_0xafb41e['add'](_0xe27cad);}return _0xafb41e;}(_0xf2ae9d,_0x3e1164),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4a770e=ts(Array['from'](this['_selectedSuggestions']));for(const _0x37fa16 of _0x4a770e){const _0x484cb4=_0x37fa16['getRanges']();if(!this['editor']['model']['canEditAt'](_0x484cb4))return;}rs(this['editor']['model'],this['_command'],_0x4a770e);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x1f73ca(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x18f43a,_0x5064dd){super(),this['id']=_0x5064dd['id'],this['type']=_0x5064dd['type'],this['subType']=_0x5064dd['subType']||null,this['author']=_0x5064dd['author'],this['creator']=_0x5064dd['creator']||_0x5064dd['author'],this['isExternal']=Boolean(_0x5064dd['attributes']&&_0x5064dd['attributes']['@external']),this['data']=null,this['_model']=_0x18f43a,this['_onAccept']=_0x5064dd['onAccept'],this['_onDiscard']=_0x5064dd['onDiscard'],this['_onAttributesChange']=_0x5064dd['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5064dd['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 _0x352eb2=this;for(;_0x352eb2['previous'];)_0x352eb2=_0x352eb2['previous'];return _0x352eb2;}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'](_0x1c5bbc){this['_markerNames']['add'](_0x1c5bbc);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x9dae32=>this['_model']['markers']['get'](_0x9dae32))['filter'](_0x1351b7=>_0x1351b7);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3b7733=>{for(const _0x2982cf of this['getMarkers']())_0x3b7733['removeMarker'](_0x2982cf);}),this['_markerNames']['clear']();}['removeMarker'](_0x116504){this['_model']['change'](_0x5d4c82=>{_0x5d4c82['removeMarker'](_0x116504);}),this['_markerNames']['delete'](_0x116504);}['addRange'](_0x30a89d){const _0x99073b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x99073b),this['_model']['change'](_0x29e695=>{_0x29e695['addMarker'](_0x99073b,{'range':_0x30a89d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3da057){for(const _0xb35ed7 of this['getRanges']())if(_0xb35ed7['isIntersecting'](_0x3da057))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x522bb4=>_0x522bb4['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x147791,_0x1fe7dc)=>[..._0x147791,..._0x1fe7dc['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x967300=this['getRanges']();if(0x1!=_0x967300['length'])return null;const _0x3c8b4b=_0x967300[0x0],_0x4b2683=_0x3c8b4b['start']['nodeAfter'],_0x13d60a=_0x3c8b4b['end']['nodeBefore'];return _0x4b2683 instanceof _0x27bc06?_0x4b2683!=_0x13d60a?null:_0x4b2683: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 _0x2d8656=[];let _0x324c30=this['head'];for(;_0x324c30;)_0x2d8656['push'](_0x324c30),_0x324c30=_0x324c30['next'];return _0x2d8656;}['setAttribute'](_0x12578a,_0x1a9594){const _0xf4b7b4=_0x6a5ce(this['attributes']);_0x4e20bb(_0xf4b7b4,_0x12578a,_0x1a9594),_0x14f7b8(_0xf4b7b4,this['attributes'])||(this['attributes']=_0xf4b7b4,this['_onAttributesChange'](_0xf4b7b4));}['removeAttribute'](_0x2c8028){const _0x137ce6=_0x6a5ce(this['attributes']);_0x5e6601(_0x137ce6,_0x2c8028),_0x14f7b8(_0x137ce6,this['attributes'])||(this['attributes']=_0x137ce6,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 _0x5310dd()['substr'](0x1,0x5);}}function c(_0x187131,_0x4ef276,_0x50d876){const _0x4fd597=_0x187131['t'],t=_0x187131['t'];switch(_0x4ef276){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',_0x50d876);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x50d876);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x50d876);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x50d876);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x50d876);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',_0x50d876);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x50d876);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',_0x50d876);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x50d876);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x50d876);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x50d876);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x50d876);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x50d876);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x50d876);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x50d876);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x50d876);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x50d876);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x50d876);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x50d876);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x50d876);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x50d876);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x50d876);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x50d876);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x50d876);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'},_0x50d876);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x50d876);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x50d876);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x50d876);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x50d876);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x50d876);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'},_0x50d876);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x50d876);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x50d876);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x50d876);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x50d876);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'},_0x50d876);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x50d876);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'},_0x50d876);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x50d876);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x50d876);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'},_0x50d876);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x50d876);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'},_0x50d876);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x50d876);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x50d876);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'},_0x50d876);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x50d876);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 _0x4fd597({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x50d876);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4fd597({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x50d876);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x50d876);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'},_0x50d876);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'},_0x50d876);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'},_0x50d876);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4ef276;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x55444a,_0x4b108c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x55444a,this['_locale']=_0x4b108c;}['getDescriptions'](_0x34b855){const _0x49983a=[],_0x280062=new Set(),_0x44ac03=new Set();for(let _0x41b852=0x0;_0x41b852<_0x34b855['length'];_0x41b852++){const _0x5919b3=_0x34b855[_0x41b852];if(!_0x5919b3['isInContent'])continue;const _0x1877de=this['_handleCustomCallbackDescription'](_0x5919b3);if(_0x1877de){if(null!=_0x5919b3['subType']){if(_0x280062['has'](_0x5919b3['subType']))continue;_0x280062['add'](_0x5919b3['subType']);}_0x49983a['push'](_0x1877de);}else{if('attribute'!=_0x5919b3['type'])'insertion'!=_0x5919b3['type']&&'deletion'!=_0x5919b3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x49983a,_0x5919b3,_0x34b855[_0x41b852+0x1]);else{const _0x13a2ce=_0x5919b3['data']['key'];if(_0x44ac03['has'](_0x13a2ce))continue;_0x44ac03['add'](_0x5919b3['data']['key']),_0x13a2ce==u?this['_handleRenameSuggestionDescription'](_0x49983a,_0x5919b3):this['_handleAttributeSuggestionDescription'](_0x49983a,_0x5919b3);}}}return this['_resolveDescriptionItems'](_0x49983a);}['registerDescriptionCallback'](_0x22d146){this['_customCallbacks']['push'](_0x22d146);}['registerElementLabel'](_0xf6e3f,_0x1112a0,_0x16b30b=_0x2800bb['normal']){'function'==typeof _0xf6e3f?_0x33918d(this['_itemLabelsCallbacks'],{'matchingCallback':_0xf6e3f,'label':_0x1112a0,'priority':_0x16b30b}):this['_itemLabels']['set'](_0xf6e3f,_0x1112a0);}['registerAttributeLabel'](_0x313001,_0xda37b1){this['_attributeLabels']['set'](_0x313001,_0xda37b1);}['getItemLabel'](_0x59dfeb,_0x15dc1c=0x1){let _0x2be99a;for(const _0x48a3f9 of this['_itemLabelsCallbacks'])if(_0x48a3f9['matchingCallback'](_0x59dfeb)){_0x2be99a=_0x48a3f9['label'];break;}return _0x2be99a||(_0x2be99a=this['_itemLabels']['get'](_0x59dfeb['name'])),_0x2be99a?_0x2be99a(_0x15dc1c):0x1!==_0x15dc1c?_0x15dc1c+'\x20'+_0x59dfeb['name']+'s':''+_0x59dfeb['name'];}['_addDescriptionItems'](_0x4f0f29,_0x4aa198){const _0x2b22cd=_0x4aa198['getFirstRange']()['getWalker'](),_0x91aa22='insertion'==_0x4aa198['type']?'add':'remove';for(const _0x1c5e21 of _0x2b22cd){const _0x385214=_0x1c5e21['item'],_0x5f30a3=_0x4f0f29[_0x4f0f29['length']-0x1];if(_0x385214['is']('$textProxy'))_0x5f30a3&&_0x5f30a3['type']['indexOf']('Container')>-0x1&&_0x4f0f29['pop'](),_0x5f30a3&&'text'==_0x5f30a3['type']?_0x5f30a3[_0x91aa22]+=_0x385214['data']:_0x4f0f29['push']({'type':'text','add':'add'==_0x91aa22?_0x385214['data']:'','remove':'remove'==_0x91aa22?_0x385214['data']:''});else{if(this['_schema']['isObject'](_0x385214)){const _0xb4d4ea=_0x385214;if(_0x5f30a3&&_0x5f30a3['type']['indexOf']('Container')>-0x1&&_0x4f0f29['pop'](),'elementEnd'==_0x1c5e21['type'])continue;_0x5f30a3&&_0x5f30a3['type']==_0x91aa22+'Object'&&_0x5f30a3['element']['name']==_0xb4d4ea['name']?_0x5f30a3['quantity']++:_0x4f0f29['push']({'type':_0x91aa22+'Object','element':_0xb4d4ea,'quantity':0x1}),_0x2b22cd['skip'](_0x2680eb=>!('elementEnd'==_0x2680eb['type']&&_0x2680eb['item']==_0x385214));}else{if(this['_schema']['checkChild'](_0x385214,'$text')||_0x385214['is']('element','softBreak')){const _0x443f49=_0x385214;if('add'==_0x91aa22&&'elementStart'==_0x1c5e21['type']||'remove'==_0x91aa22&&'elementEnd'==_0x1c5e21['type'])continue;if(_0x5f30a3&&-0x1==_0x5f30a3['type']['indexOf']('Container')){'text'==_0x5f30a3['type']&&(_0x5f30a3[_0x91aa22]+='\x0a');continue;}let _0x55b93c;if(_0x55b93c='add'==_0x91aa22?_0x443f49['nextSibling']&&!this['_schema']['isObject'](_0x443f49['nextSibling'])?_0x443f49['nextSibling']:null:_0x443f49['previousSibling']&&!this['_schema']['isObject'](_0x443f49['previousSibling'])?_0x443f49['previousSibling']:null,_0x443f49['isEmpty']||_0x55b93c&&_0x55b93c['isEmpty']){const _0x262032=_0x55b93c&&_0x55b93c['isEmpty']?_0x55b93c:_0x443f49;_0x5f30a3&&_0x5f30a3['type']==_0x91aa22+'EmptyContainer'&&_0x5f30a3['element']['name']==_0x262032['name']?_0x5f30a3['quantity']++:_0x4f0f29['push']({'type':_0x91aa22+'EmptyContainer','element':_0x262032,'quantity':0x1});}else _0x4f0f29['push']({'type':_0x91aa22+'Container','element':_0x443f49});}}}}}['_resolveDescriptionItems'](_0x4823b5){const _0x5a2c4b=this['_locale'],_0x28c703=[],_0x175b2f=[],_0x2fe0d0=[];for(const _0x282f74 of _0x4823b5)switch(_0x282f74['type']){case'text':if(_0x282f74['add']=_0x282f74['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x282f74['remove']=_0x282f74['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x282f74['add']&&''!=_0x282f74['remove']){_0x28c703['push']({'type':'replace','content':c(_0x5a2c4b,'REPLACE_TEXT',['\x22'+_0x282f74['remove']+'\x22','\x22'+_0x282f74['add']+'\x22'])});continue;}if(null!=_0x282f74['add']['match'](/^ +$/)){_0x28c703['push']({'type':'insertion','content':c(_0x5a2c4b,'*Insert:*\x20%0',c(_0x5a2c4b,'ELEMENT_SPACE',_0x282f74['add']['length']))});continue;}if(null!=_0x282f74['remove']['match'](/^ +$/)){_0x28c703['push']({'type':'deletion','content':c(_0x5a2c4b,'*Remove:*\x20%0',c(_0x5a2c4b,'ELEMENT_SPACE',_0x282f74['remove']['length']))});continue;}if(''!=_0x282f74['add']){_0x28c703['push']({'type':'insertion','content':c(_0x5a2c4b,'*Insert:*\x20%0','\x22'+_0x282f74['add']+'\x22')});continue;}_0x28c703['push']({'type':'deletion','content':c(_0x5a2c4b,'*Remove:*\x20%0','\x22'+_0x282f74['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x28c703['push']({'type':'insertion','content':c(_0x5a2c4b,'*Insert:*\x20%0',this['getItemLabel'](_0x282f74['element'],_0x282f74['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x28c703['push']({'type':'deletion','content':c(_0x5a2c4b,'*Remove:*\x20%0',this['getItemLabel'](_0x282f74['element'],_0x282f74['quantity']))});continue;case'addContainer':_0x28c703['push']({'type':'insertion','content':c(_0x5a2c4b,'*Split:*\x20%0',this['getItemLabel'](_0x282f74['element'],_0x282f74['quantity']))});continue;case'removeContainer':_0x28c703['push']({'type':'deletion','content':c(_0x5a2c4b,'*Merge:*\x20%0',this['getItemLabel'](_0x282f74['element'],_0x282f74['quantity']))});continue;case'addFormat':_0x175b2f['push'](_0x282f74['key']);continue;case'removeFormat':_0x2fe0d0['push'](_0x282f74['key']);continue;default:_0x28c703['push'](_0x282f74);}if(_0x175b2f['length']){const _0x5c3232=_0x175b2f['map'](_0x30a5dd=>this['_attributeLabels']['has'](_0x30a5dd)?this['_attributeLabels']['get'](_0x30a5dd):_0x30a5dd)['join'](',\x20');_0x28c703['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x5c3232)});}if(_0x2fe0d0['length']){const _0x3665ad=_0x2fe0d0['map'](_0x5d3abe=>this['_attributeLabels']['has'](_0x5d3abe)?this['_attributeLabels']['get'](_0x5d3abe):_0x5d3abe)['join'](',\x20');_0x28c703['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x3665ad)});}return _0x28c703;}['_handleCustomCallbackDescription'](_0x581997){for(const _0x5c7e05 of this['_customCallbacks']){const _0x5cef61=_0x5c7e05(_0x581997);if(_0x5cef61&&'type'in _0x5cef61)return _0x5cef61;}}['_handleAttributeSuggestionDescription'](_0x54b160,_0x5a1354){const _0x394ce4=_0x5a1354['data'],_0x21cddd=void 0x0===_0x394ce4['newValue']?'removeFormat':'addFormat';_0x54b160['push']({'type':_0x21cddd,'key':_0x394ce4['key']});}['_handleRenameSuggestionDescription'](_0x164e18,_0x408d1e){_0x164e18['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x408d1e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xfdb9b3,_0x2aa70e,_0xd279ab){if(this['_addDescriptionItems'](_0xfdb9b3,_0x2aa70e),_0xd279ab&&_0xd279ab['getFirstRange']()&&!_0x2aa70e['getFirstRange']()['end']['isEqual'](_0xd279ab['getFirstRange']()['start'])){const _0x49912e=_0xfdb9b3[_0xfdb9b3['length']-0x1],_0x5ba878='insertion'==_0x2aa70e['type']?'add':'remove';_0x49912e&&'text'==_0x49912e['type']&&(_0x49912e[_0x5ba878]+='\x0a');}}}class U extends _0x54e516{['afterInit'](){const _0x4df0c1=this['editor'],_0x3c8605=_0x4df0c1['plugins']['get']('TrackChangesEditing');_0x4df0c1['commands']['get']('showAIAssistant')&&_0x3c8605['enableCommand']('showAIAssistant');}}class V extends _0x54e516{['afterInit'](){const _0x5bcb7a=this['editor'],_0x27c914=_0x5bcb7a['locale'];if(!_0x5bcb7a['plugins']['has']('AlignmentEditing'))return;const _0x38cb29=_0x5bcb7a['plugins']['get']('TrackChangesEditing');_0x38cb29['enableDefaultAttributesIntegration']('alignment'),_0x38cb29['registerBlockAttribute']('alignment'),_0x38cb29['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x27c914,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b9f13=this['editor'],_0x11f74f=_0x3b9f13['locale'];_0x3b9f13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ae088=>{if('formatBlock'!=_0x4ae088['type'])return;const {data:_0xe2b854}=_0x4ae088;if(_0xe2b854&&'alignment'==_0xe2b854['commandName']){const _0x2b7b5d=_0xe2b854['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x11f74f,'*Format:*\x20%0',function(_0x2a1dcc){switch(_0x2a1dcc){case'left':return c(_0x11f74f,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x11f74f,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x11f74f,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x11f74f,'FORMAT_JUSTIFY_TEXT');}}(_0x2b7b5d))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x54e516{['afterInit'](){const _0x13604a=this['editor'],_0xd94fcb=_0x13604a['plugins']['get']('TrackChangesEditing'),_0x3444f4=_0x13604a['locale'];for(const _0x21dd72 of Yt){if(!_0x13604a['plugins']['has'](_0x21dd72))continue;const _0x1d346a=_0x21dd72['slice'](0x0,-0x7)['toLowerCase'](),_0x33c7ea='FORMAT_'+_0x1d346a['toUpperCase']();_0xd94fcb['enableDefaultAttributesIntegration'](_0x1d346a),_0xd94fcb['registerInlineAttribute'](_0x1d346a),_0xd94fcb['descriptionFactory']['registerAttributeLabel'](_0x1d346a,c(_0x3444f4,_0x33c7ea));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54528d=this['editor'],_0xcd0815=_0x54528d['locale'],_0x34b329=_0x54528d['plugins']['get']('TrackChangesEditing');function _0x2e1ec8(_0x4a2c71,_0x2d2aea){_0x34b329['descriptionFactory']['registerDescriptionCallback'](_0x3db755=>{if('formatInline'!=_0x3db755['type'])return;const {data:_0x4a4067}=_0x3db755;return _0x4a4067&&_0x4a4067['commandName']===_0x4a2c71?_0x4a4067['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xcd0815,'*Format:*\x20%0',_0x2d2aea)}:{'type':'format','content':c(_0xcd0815,'*Remove\x20format:*\x20%0',_0x2d2aea)}:void 0x0;});}_0x2e1ec8('bold',c(_0xcd0815,'FORMAT_BOLD')),_0x2e1ec8('italic',c(_0xcd0815,'FORMAT_ITALIC')),_0x2e1ec8('underline',c(_0xcd0815,'FORMAT_UNDERLINE')),_0x2e1ec8('code',c(_0xcd0815,'FORMAT_CODE')),_0x2e1ec8('strikethrough',c(_0xcd0815,'FORMAT_STRIKETHROUGH')),_0x2e1ec8('subscript',c(_0xcd0815,'FORMAT_SUBSCRIPT')),_0x2e1ec8('superscript',c(_0xcd0815,'FORMAT_SUPERSCRIPT'));}}class G extends _0x54e516{['afterInit'](){const _0x26df81=this['editor'],_0xacf354=_0x26df81['locale'];if(!_0x26df81['plugins']['has']('BlockQuoteEditing'))return;const _0x2dedab=_0x26df81['plugins']['get']('TrackChangesEditing'),_0x48a969=this['editor']['commands']['get']('blockQuote');_0x2dedab['enableCommand']('blockQuote',(_0x5a13d0,_0x4978f4={})=>{const _0x2a21f0=this['editor']['model']['document']['selection'],_0x557aa5=_0x4978f4&&void 0x0!==_0x4978f4['forceValue']?_0x4978f4['forceValue']:!_0x48a969['value'];let _0x54910f=[];if(_0x557aa5){const _0x2200a0=Array['from'](_0x2a21f0['getSelectedBlocks']())['filter'](_0x38897b=>to(_0x38897b)||function(_0x25f992,_0x3f69b6){const _0x5c98ee=_0x3f69b6['checkChild'](_0x25f992['parent'],'blockQuote'),_0x3980ce=_0x3f69b6['checkChild'](['$root','blockQuote'],_0x25f992);return _0x5c98ee&&_0x3980ce;}(_0x38897b,this['editor']['model']['schema']));_0x54910f=Zt(_0x2200a0,_0x26df81['model']);}else{const _0x7a984a=Array['from'](_0x2a21f0['getSelectedBlocks']())['filter'](_0x4e6b80=>to(_0x4e6b80));_0x54910f=Zt(_0x7a984a,_0x26df81['model']);}_0x26df81['model']['change'](()=>{for(const _0x516101 of _0x54910f)_0x2dedab['markBlockFormat'](_0x516101,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x557aa5}]});});}),_0x2dedab['descriptionFactory']['registerDescriptionCallback'](_0x55312d=>{const {data:_0x465cbb}=_0x55312d;if(_0x465cbb&&'blockQuote'==_0x465cbb['commandName']){const _0x2588c1=c(_0xacf354,'ELEMENT_BLOCK_QUOTE');return _0x465cbb['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xacf354,'*Set\x20format:*\x20%0',_0x2588c1)}:{'type':'format','content':c(_0xacf354,'*Remove\x20format:*\x20%0',_0x2588c1)};}});}}function to(_0x15754c){return'blockQuote'==_0x15754c['parent']['name'];}class L extends _0x54e516{['afterInit'](){const _0x2fd2bf=this['editor'],_0x5f5444=_0x2fd2bf['locale'],_0x16b2b4=_0x2fd2bf['plugins']['get']('TrackChangesEditing');_0x2fd2bf['plugins']['has']('BookmarkEditing')&&(_0x16b2b4['enableCommand']('insertBookmark'),_0x16b2b4['enableDefaultAttributesIntegration']('updateBookmark'),_0x16b2b4['registerBlockAttribute']('bookmarkId'),_0x16b2b4['descriptionFactory']['registerDescriptionCallback'](_0xd9294=>{if('insertion'!=_0xd9294['type']&&'deletion'!=_0xd9294['type']&&'attribute'!=_0xd9294['type'])return;const _0xe68bb9=_0xd9294['getContainedElement']();if(null==_0xe68bb9)return;if(!_0xe68bb9['is']('element','bookmark'))return;const _0x363d57=_0xe68bb9['getAttribute']('bookmarkId');if('insertion'==_0xd9294['type'])return{'type':'insertion','content':c(_0x5f5444,'*Insert:*\x20%0','\x22'+_0x363d57+'\x22\x20'+c(_0x5f5444,'ELEMENT_BOOKMARK'))};if('deletion'==_0xd9294['type'])return{'type':'deletion','content':c(_0x5f5444,'*Remove:*\x20%0','\x22'+_0x363d57+'\x22\x20'+c(_0x5f5444,'ELEMENT_BOOKMARK'))};const {data:_0x42d126}=_0xd9294;if(!_0x42d126||'bookmarkId'!=_0x42d126['key'])return;return{'type':'format','content':c(_0x5f5444,'*Set\x20bookmark:*\x20%0','\x22'+_0x42d126['newValue']+'\x22')};}));}}class J extends _0x54e516{['afterInit'](){const _0x4b6545=this['editor'];_0x4b6545['plugins']['has']('CaseChange')&&(_0x4b6545['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4b6545['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4b6545['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x54e516{['afterInit'](){const _0x132cf5=this['editor'];_0x132cf5['commands']['get']('ckbox')&&_0x132cf5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x54e516{['afterInit'](){const _0x41be2c=this['editor'];if(!_0x41be2c['plugins']['has']('CodeBlock'))return;const _0x4c8819=_0x41be2c['plugins']['get']('TrackChangesEditing'),_0x1d4e6b=_0x41be2c['locale'],_0x9038a9=_0x41be2c['config']['get']('codeBlock')['languages'],_0xa5f17=_0x41be2c['commands']['get']('codeBlock');_0x4c8819['enableCommand']('indentCodeBlock'),_0x4c8819['enableCommand']('outdentCodeBlock'),_0x4c8819['enableCommand']('codeBlock',(_0x1053d7,_0x1e5264={})=>{const _0xb07d28=_0x41be2c['model'],_0x21a124=_0x41be2c['model']['document']['selection'],_0x248029=_0x1e5264&&void 0x0!==_0x1e5264['forceValue']?_0x1e5264['forceValue']:!_0xa5f17['value'];let _0x4fb890;_0x1e5264['language']||(_0x1e5264['language']=_0x9038a9[0x0]['language']),_0x4fb890=_0x248029?Array['from'](_0x21a124['getSelectedBlocks']())['filter'](_0x73bfcd=>oo(_0x73bfcd)||function(_0x4457fb,_0x432006){if(_0x4457fb['is']('rootElement')||_0x432006['isLimit'](_0x4457fb))return!0x1;return _0x432006['checkChild'](_0x4457fb['parent'],'codeBlock');}(_0x73bfcd,_0xb07d28['schema'])):Array['from'](_0x21a124['getSelectedBlocks']())['filter'](_0x34b965=>oo(_0x34b965));const _0x57bc71=Zt(_0x4fb890,_0xb07d28);_0xb07d28['change'](()=>{for(const _0x3efd9d of _0x57bc71)_0x4c8819['markBlockFormat'](_0x3efd9d,{'commandName':'codeBlock','commandParams':[{..._0x1e5264,'forceValue':_0x248029}],'formatGroupId':'blockName'});});}),(_0x4c8819['descriptionFactory']['registerElementLabel']('codeBlock',_0xb90e13=>c(_0x1d4e6b,'ELEMENT_CODE_BLOCK',_0xb90e13)),_0x4c8819['descriptionFactory']['registerDescriptionCallback'](_0x250b53=>{if('formatBlock'!=_0x250b53['type'])return;const _0x27be56=_0x1d4e6b['t'],{data:_0x151e0a}=_0x250b53;if(!_0x151e0a||'codeBlock'!=_0x151e0a['commandName'])return;const _0x2fe561=_0x151e0a['commandParams'][0x0]['language'],_0x52abc8=_0x27be56(_0x9038a9['find'](_0xb26b59=>_0xb26b59['language']===_0x2fe561)['label'])['toLowerCase']();return _0x151e0a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1d4e6b,'*Set\x20format:*\x20%0',c(_0x1d4e6b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x52abc8+')')}:{'type':'format','content':c(_0x1d4e6b,'*Remove\x20format:*\x20%0',c(_0x1d4e6b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x2b2d4f){return'codeBlock'==_0x2b2d4f['name'];}class q extends _0x54e516{['afterInit'](){const _0x2fa257=this['editor'];if(!_0x2fa257['plugins']['has']('CommentsEditing'))return;_0x2fa257['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x70a83b,_0x4e329f,_0xbbc976){const _0x17643b=[];for(const _0x5037fb of _0x4e329f['getItems']())_0x5037fb['hasAttribute'](_0x70a83b)&&_0x17643b['push'](_0xbbc976['createRangeOn'](_0x5037fb));return _0x17643b;}function De(_0x32981e,_0x3a3275,{showActiveMarker:_0x5df6e9=!0x0}={}){const _0x491807=_0x32981e['plugins']['get']('TrackChangesEditing');return(_0x39117f,_0x442e45,_0x93903c)=>{if(!_0x93903c['consumable']['test'](_0x442e45['markerRange'],_0x39117f['name']))return;const _0x180556=_0x442e45['markerRange']['getWalker'](),_0x1ee0e4=_0x442e45['markerRange']['start'],_0x40ac2e=_0x32981e['model']['schema'];let _0x2590d5=null,_0x42954b=null,_0x5a3a14=!0x1,_0x15a723=!0x1;for(const _0x13b583 of _0x180556){const _0x462a92=_0x13b583['item'];_0x5a3a14=_0x5a3a14||_0x40ac2e['isContent'](_0x462a92);const _0x49d3a4=_0x93903c['mapper']['toViewElement'](_0x462a92);if(_0x49d3a4&&_0x49d3a4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x13b583['type']&&(_0x40ac2e['isBlock'](_0x462a92)&&!_0x40ac2e['isLimit'](_0x462a92)&&(_0x462a92['nextSibling']||_0x1ee0e4['isAtEnd']?_0x2590d5&&_0x2590d5['parent']==_0x462a92||(_0x2590d5=_0x462a92,_0x5e3c23(_0x13b583['previousPosition']),_0x15a723=!0x0):_0x42954b=_0x42954b||_0x13b583['previousPosition']));}function _0x5e3c23(_0x4d499c){const {authorId:_0x4479c6}=_0x491807['_splitMarkerName'](_0x442e45['markerName']),_0x469cbe=_0x93903c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a3275,'data-author-id':_0x4479c6}),_0x409f43=_0x93903c['mapper']['toViewPosition'](_0x4d499c);_0x5df6e9&&_0x491807['activeMarkers']['includes'](_0x442e45['markerName'])&&_0x93903c['writer']['addClass']('ck-suggestion-marker--active',_0x469cbe),_0x93903c['writer']['insert'](_0x409f43,_0x469cbe),_0x93903c['mapper']['bindElementToMarker'](_0x469cbe,_0x442e45['markerName']);}_0x5a3a14||_0x15a723||!_0x42954b||_0x5e3c23(_0x42954b);};}class z extends _0x54e516{static get['requires'](){return[_0x2df60f];}['init'](){const _0x42d46c=this['editor'],_0x1e986e=_0x42d46c['plugins']['get']('TrackChangesEditing');_0x1e986e['enableCommand']('delete');const _0x35473e=_0x42d46c['commands']['get']('deleteForward');_0x1e986e['enableCommand']('deleteForward',(_0x54a6d8,_0x4d6572={})=>{const _0x14d6e4=_0x42d46c['model']['createSelection'](_0x42d46c['model']['document']['selection']);_0x14d6e4['isCollapsed']&&_0x42d46c['model']['modifySelection'](_0x14d6e4,{'direction':'forward','unit':_0x4d6572['unit']});const _0x4e95b1=_0x14d6e4['getFirstRange'](),_0x41c475=_0x6b53b6['fromRange'](_0x4e95b1);let _0x173fc8;_0x54a6d8(_0x4d6572),_0x173fc8='$graveyard'==_0x41c475['root']['rootName']?_0x42d46c['model']['createRange'](_0x4e95b1['start']):_0x42d46c['model']['createRange'](_0x41c475['start'],_0x41c475['end']),_0x41c475['detach'](),_0x42d46c['model']['enqueueChange'](_0x35473e['buffer']['batch'],_0x2e5fbc=>{_0x35473e['buffer']['lock'](),_0x2e5fbc['setSelection'](_0x2e5fbc['createRange'](_0x173fc8['end'])),_0x35473e['buffer']['unlock']();});}),_0x42d46c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x42d46c,'merge'),{'priority':'high'}),_0x42d46c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3e2814,_0x117fde,_0x52b11d)=>{_0x52b11d['options']['showSuggestionHighlights']&&De(_0x42d46c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3e2814,_0x117fde,_0x52b11d);},{'priority':'high'}),_0x42d46c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x489cb3,_0x138155,_0x38367a)=>{const _0x38ef57=_0x38367a['mapper']['markerNameToElements'](_0x138155['markerName']);if(_0x38ef57){for(const _0x515334 of _0x38ef57)_0x515334['is']('uiElement')&&(_0x38367a['mapper']['unbindElementFromMarkerName'](_0x515334,_0x138155['markerName']),_0x38367a['writer']['remove'](_0x515334));}},{'priority':'high'});}}class W extends _0x54e516{['afterInit'](){const _0x51320a=this['editor'];if(!_0x51320a['plugins']['has']('ListEditing'))return;const _0x249b7b=_0x51320a['locale'],_0x463ec9=_0x51320a['plugins']['get']('TrackChangesEditing'),_0x36cca9=_0x51320a['plugins']['has']('TodoListEditing'),_0x4961ea=!!_0x51320a['config']['get']('list.multiBlock');function _0x205899(_0x1b282e){return{'type':'format','content':''+c(_0x249b7b,'*Set\x20format:*\x20%0',_0x1b282e)};}function _0x3c8f83(_0x594079){return{'type':'format','content':''+c(_0x249b7b,'*Remove\x20format:*\x20%0',_0x594079)};}_0x463ec9['enableDefaultAttributesIntegration']('numberedList'),_0x463ec9['enableDefaultAttributesIntegration']('bulletedList'),_0x463ec9['enableDefaultAttributesIntegration']('customNumberedList'),_0x463ec9['enableDefaultAttributesIntegration']('customBulletedList'),_0x463ec9['enableDefaultAttributesIntegration']('indentList'),_0x463ec9['enableDefaultAttributesIntegration']('outdentList'),_0x463ec9['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x463ec9['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x463ec9['registerBlockAttribute']('listItemId'),_0x463ec9['registerBlockAttribute']('listType'),_0x463ec9['registerBlockAttribute']('listIndent'),_0x4961ea&&(_0x463ec9['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x463ec9['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x36cca9&&(_0x463ec9['enableDefaultAttributesIntegration']('todoList'),_0x463ec9['enableDefaultAttributesIntegration']('checkTodoList'),_0x463ec9['registerBlockAttribute']('todoListChecked'),_0x463ec9['descriptionFactory']['registerDescriptionCallback'](_0x1d5941=>{const {data:_0x1bc5e4}=_0x1d5941;if(_0x1bc5e4&&'todoListChecked'==_0x1bc5e4['key'])return{'type':'format','content':_0x1bc5e4['newValue']?c(_0x249b7b,'*Check\x20item*'):c(_0x249b7b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x506d79=>{if(_0x506d79['batch']['isUndo'])return!0x1;let _0x2cf2e4=!0x1;const _0x2e1e9f=_0x463ec9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x156659=>'todoListChecked'===_0x463ec9['_getAttributeKey'](_0x156659));for(const _0x5085b0 of _0x2e1e9f){'todo'!=_0x5085b0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x463ec9['_findSuggestions'](_0x5085b0['getFirstRange'](),'attribute')['find'](_0x46be1b=>'listType'===_0x463ec9['_getAttributeKey'](_0x46be1b['suggestion']))||(_0x506d79['removeMarker'](_0x5085b0['getFirstMarker']()),_0x2cf2e4=!0x0));}return _0x2cf2e4;})),_0x463ec9['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x249b7b,'FORMAT_INDENT'));const _0x1e3590={'type':'format','content':''};_0x463ec9['descriptionFactory']['registerDescriptionCallback'](_0x1f0189=>{const {data:_0x1c684e}=_0x1f0189;if(!_0x1c684e||'listType'!=_0x1c684e['key'])return;let _0xf96e6b=_0x1f0189['head'];for(;_0xf96e6b;){if(_0xf96e6b['data']&&(('listStyle'==_0xf96e6b['data']['key']||'listMarkerStyle'==_0xf96e6b['data']['key'])&&(_0xf96e6b['data']['newValue']&&'default'!=_0xf96e6b['data']['newValue']||'default'!=_0xf96e6b['data']['oldValue']&&!_0x1c684e['newValue'])||!_0x4961ea&&_0xf96e6b['data']['key']==u))return _0x1e3590;_0xf96e6b=_0xf96e6b['next'];}if(null==_0x1c684e['newValue'])switch(_0x1c684e['oldValue']){case'bulleted':return _0x3c8f83(c(_0x249b7b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c8f83(c(_0x249b7b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c8f83(c(_0x249b7b,'ELEMENT_TODO_LIST'));}switch(_0x1c684e['newValue']){case'bulleted':return _0x205899(c(_0x249b7b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x205899(c(_0x249b7b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x205899(c(_0x249b7b,'ELEMENT_TODO_LIST'));}}),_0x463ec9['descriptionFactory']['registerDescriptionCallback'](_0x232750=>{const {data:_0x461334}=_0x232750;if(_0x461334&&'listIndent'==_0x461334['key'])return null==_0x461334['newValue']||null==_0x461334['oldValue']&&0x0==_0x461334['newValue']?_0x1e3590:void 0x0;}),_0x463ec9['descriptionFactory']['registerDescriptionCallback'](_0x1f0b57=>{if('attribute'!=_0x1f0b57['type'])return;const {data:_0x3a4843}=_0x1f0b57;if(!_0x3a4843||'listItemId'!=_0x3a4843['key'])return;const _0x48928c=Te(_0x1f0b57);return'newValue'==_0x48928c?{'type':'format','content':c(_0x249b7b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x48928c?{'type':'format','content':c(_0x249b7b,'*Split:*\x20list\x20item')}:_0x1e3590;}),_0x51320a['model']['document']['registerPostFixer'](_0x26e947=>this['listItemIdFixer'](_0x26e947)),_0x51320a['model']['document']['registerPostFixer'](_0x7e678d=>this['noTrackChangesFixer'](_0x7e678d)),_0x51320a['model']['document']['on']('change:data',(_0x40c398,_0x402857)=>{if(_0x402857['isUndo']||!_0x402857['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x460212){if(_0x460212['batch']['isUndo']||!_0x460212['batch']['isLocal'])return!0x1;let _0x552d4e=!0x1;const _0x2e55d4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ec905=>_0x3ec905['data']&&'listItemId'==_0x3ec905['data']['key'])['filter'](_0x4f2456=>_0x4f2456['data']['newValue']&&_0x4f2456['data']['oldValue']);for(const _0x4465bb of _0x2e55d4)Te(_0x4465bb)||(_0x460212['removeMarker'](_0x4465bb['getFirstMarker']()),_0x552d4e=!0x0);return _0x552d4e;}['noTrackChangesFixer'](_0x3ea00f){if(_0x3ea00f['batch']['isUndo']||!_0x3ea00f['batch']['isLocal'])return!0x1;const _0x568211=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x568211['trackChangesCommand']['value'])return!0x1;let _0x4e27a3=!0x1;const _0xb47a8a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1e9966=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x28f3e5=>'attribute'==_0x28f3e5['type'])['filter'](_0x4fa606=>_0xb47a8a['includes'](_0x4fa606['attributeKey']));if(0x0==_0x1e9966['length'])return _0x4e27a3;for(const _0x4f7dd4 of _0x1e9966){const _0x431f50=_0x568211['_findSuggestions'](_0x4f7dd4['range'],'attribute')['filter'](_0x37528a=>!_0x37528a['meta']['isNextTo'])['map'](_0x56ba13=>_0x56ba13['suggestion'])['filter'](_0x3c1342=>{const _0x372d7e=_0x568211['_getAttributeKey'](_0x3c1342);return _0xb47a8a['includes'](_0x372d7e);});if(_0x431f50['length']){for(const _0x2975a0 of _0x431f50)_0x3ea00f['removeMarker'](_0x2975a0['getFirstMarker']());_0x4e27a3=!0x0;}}return _0x4e27a3;}['assureChains'](){const _0x131ec3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x567eb5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x19a234;const _0x3143aa=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5d652f=>{if(_0x5d652f['data']['oldRange']||!_0x5d652f['data']['newRange'])return null;if(!_0x5d652f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x13768a}=_0x131ec3['_splitMarkerName'](_0x5d652f['name']);if(!_0x131ec3['hasSuggestion'](_0x13768a))return null;const _0x4ac01d=_0x131ec3['getSuggestion'](_0x13768a);return _0x567eb5['includes'](_0x4ac01d['data']['key']);})['map'](_0xc6cd97=>{const {id:_0x3a85c2}=_0x131ec3['_splitMarkerName'](_0xc6cd97['name']),_0x15bc85=_0x131ec3['getSuggestion'](_0x3a85c2);return _0x19a234=_0x15bc85['attributes']['groupId'],_0x15bc85['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3143aa['size'])return;const _0x29d59c=_0x131ec3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x588231=>'attribute'==_0x588231['type']&&_0x588231['data']&&_0x567eb5['includes'](_0x588231['data']['key'])&&_0x588231['attributes']['groupId']!=_0x19a234)['map'](_0x5dbfc0=>({'listItem':_0x5dbfc0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5dbfc0['attributes']['groupId']})),_0x2e4ce=new Set();for(const {groupId:_0x5e5c6f,listItem:_0x2938c6}of _0x29d59c)_0x3143aa['has'](_0x2938c6)&&_0x2e4ce['add'](_0x5e5c6f);for(const _0x7efa08 of _0x131ec3['getSuggestions']())_0x2e4ce['has'](_0x7efa08['attributes']['groupId'])&&_0x7efa08['setAttribute']('groupId',_0x19a234);}['_supportLegacySuggestions'](){const _0xa344ae=this['editor'],_0x24fbf2=_0xa344ae['locale'],_0x487bf0=_0xa344ae['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x487bf0['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3a8765,_0x147bfe){const _0x4d885b=[];for(let _0x5993aa of _0x3a8765)_0x5993aa['start']['nodeAfter']===_0x5993aa['end']['parent']&&(_0x5993aa=_0xa344ae['model']['createRange'](_0xa344ae['model']['createPositionAt'](_0x5993aa['start']['nodeAfter'],0x0))),_0x4d885b['push'](_0x5993aa);_0xa344ae['model']['change'](_0x122114=>{const _0x58830a=_0xa344ae['model']['document']['selection'],_0x67f8d2=Array['from'](_0x58830a['getRanges']())['map'](_0x4d6662=>_0x6b53b6['fromRange'](_0x4d6662));_0x122114['setSelection'](_0x4d885b),_0xa344ae['commands']['get'](_0x147bfe['commandName'])['refresh'](),_0x147bfe['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xa344ae['execute'](_0x147bfe['commandName'],..._0x147bfe['commandParams']),_0x122114['setSelection'](_0x67f8d2);for(const _0x251f6a of _0x67f8d2)_0x251f6a['detach']();});}),_0x487bf0['descriptionFactory']['registerElementLabel'](function(_0x491474){const _0x51fe30=!_0xa344ae['model']['schema']['isObject'](_0x491474),_0xfc517a=_0x491474['previousSibling'],_0x4eb874=_0x491474['nextSibling'],_0x2ca5f3=_0x491474['getAttribute']('listItemId'),_0x547167=!_0xfc517a||_0xfc517a['getAttribute']('listItemId')!==_0x2ca5f3,_0x447cb1=!_0x4eb874||_0x4eb874['getAttribute']('listItemId')!==_0x2ca5f3;return _0x51fe30&&Boolean(_0x2ca5f3)&&_0x547167&&_0x447cb1;},_0x4b9562=>c(_0x24fbf2,'ELEMENT_LIST_ITEM',_0x4b9562));}['_registerLegacyDescription'](){const _0x1d7802=this['editor'],_0x51d5db=_0x1d7802['locale'];function _0x2f621e(_0x41d96f){const _0x10a3ad=_0x1d7802['commands']['get']('bulletedList')['value'],_0x5385ba=_0x1d7802['commands']['get']('numberedList')['value'];return'numberedList'===_0x41d96f?_0x10a3ad:_0x5385ba;}_0x1d7802['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3f8c01){if('formatBlock'!=_0x3f8c01['type'])return;const {data:_0x42c00c}=_0x3f8c01;if(!_0x42c00c)return;let _0x54145e,_0x2cede8,_0x125f50,_0x5650e8;switch(_0x42c00c['commandName']){case'bulletedList':_0x125f50=_0x42c00c['commandParams'][0x0]['forceValue'],_0x5650e8=_0x2f621e(_0x42c00c['commandName']),_0x54145e=_0x125f50?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5650e8&&_0x1d7802['config']['get']('list.multiBlock')||(_0x54145e='*Change\x20to:*\x20%0'),_0x2cede8={'type':'format','content':c(_0x51d5db,_0x54145e,c(_0x51d5db,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x125f50=_0x42c00c['commandParams'][0x0]['forceValue'],_0x5650e8=_0x2f621e(_0x42c00c['commandName']),_0x54145e=_0x125f50?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5650e8&&_0x1d7802['config']['get']('list.multiBlock')||(_0x54145e='*Change\x20to:*\x20%0'),_0x2cede8={'type':'format','content':c(_0x51d5db,_0x54145e,c(_0x51d5db,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x54145e='*Indent:*\x20%0',_0x2cede8={'type':'format','content':c(_0x51d5db,_0x54145e,c(_0x51d5db,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x54145e=function(_0x3abb90){const _0x56892a=_0x3abb90['getFirstRange']();let _0x4a003e=_0x56892a['start']['nodeAfter'];for(;_0x4a003e&&_0x56892a['containsItem'](_0x4a003e);){if(_0x4a003e['getAttribute']('listIndent')>0x0)return!0x1;_0x4a003e=_0x4a003e['nextSibling'];}return!0x0;}(_0x3f8c01)?c(_0x51d5db,'*Format:*\x20remove\x20from\x20%0',c(_0x51d5db,function(_0x25558a){return'ELEMENT_'+_0x25558a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3f8c01))):c(_0x51d5db,'*Outdent:*\x20%0',c(_0x51d5db,'ELEMENT_LIST_ITEM')),_0x2cede8={'type':'format','content':_0x54145e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x42c00c['multipleBlocks']&&(_0x54145e='*Merge:*\x20%0',_0x2cede8={'type':'deletion','content':c(_0x51d5db,_0x54145e,c(_0x51d5db,'ELEMENT_LIST_ITEM'))});}return _0x2cede8;});}}function Te(_0x2ee48d){let _0x27a74f=_0x2ee48d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x27a74f;){const _0x4ccc55=_0x27a74f['getAttribute']('listItemId');if(!_0x4ccc55)return!0x1;if(_0x4ccc55==_0x2ee48d['data']['newValue'])return'newValue';if(_0x4ccc55==_0x2ee48d['data']['oldValue'])return'oldValue';_0x27a74f=_0x27a74f['previousSibling'];}return!0x1;}class Se extends _0x54e516{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x58fe5a=this['editor']['config']['get']('list.properties'),_0xb174b1=this['editor']['plugins']['get']('TrackChangesEditing');_0x58fe5a['styles']&&(_0xb174b1['enableDefaultAttributesIntegration']('listStyle'),_0xb174b1['registerBlockAttribute']('listStyle')),_0x58fe5a['reversed']&&(_0xb174b1['enableDefaultAttributesIntegration']('listReversed'),_0xb174b1['registerBlockAttribute']('listReversed')),_0x58fe5a['startIndex']&&(_0xb174b1['enableDefaultAttributesIntegration']('listStart'),_0xb174b1['registerBlockAttribute']('listStart'));const _0x19822e={'type':'format','content':''};_0xb174b1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x229fa4=this['editor']['locale'];_0xb174b1['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x229fa4,'FORMAT_LIST_REVERSED')),_0xb174b1['descriptionFactory']['registerDescriptionCallback'](_0x1b7514=>{const {data:_0x2fbd86}=_0x1b7514;if(_0x2fbd86&&'listReversed'==_0x2fbd86['key'])return null==_0x2fbd86['newValue']||0x0==_0x2fbd86['newValue']&&null==_0x2fbd86['oldValue']?_0x19822e:void 0x0;}),_0xb174b1['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x229fa4,'FORMAT_LIST_START')),_0xb174b1['descriptionFactory']['registerDescriptionCallback'](_0xd167dd=>{const {data:_0x200840}=_0xd167dd;if(_0x200840&&'listStart'==_0x200840['key'])return null==_0x200840['newValue']||0x1==_0x200840['newValue']&&null==_0x200840['oldValue']?_0x19822e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x54823e=>{if(_0x54823e['batch']['isUndo'])return!0x1;let _0x88c17=!0x1;const _0x315b7c=_0xb174b1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f82b8=>{const _0x38183c=_0xb174b1['_getAttributeKey'](_0x4f82b8);return'listStart'==_0x38183c||'listReversed'==_0x38183c;});for(const _0xb75c23 of _0x315b7c){const _0x3d39d8=_0xb75c23['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3d39d8||'customNumbered'==_0x3d39d8)continue;_0xb174b1['_findSuggestions'](_0xb75c23['getFirstRange'](),'attribute')['find'](_0x25d09d=>'listType'==_0xb174b1['_getAttributeKey'](_0x25d09d['suggestion']))||(_0x54823e['removeMarker'](_0xb75c23['getFirstMarker']()),_0x88c17=!0x0);}return _0x88c17;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x540d0d){const _0x4ad1ec=this['editor']['locale'],{data:_0x2592ac}=_0x540d0d,_0xb9c62={'type':'format','content':''};if(!_0x2592ac||'listStyle'!=_0x2592ac['key'])return;if(!_0x2592ac['oldValue'])return'default'==_0x2592ac['newValue']?_0xb9c62:{'type':'format','content':''+c(_0x4ad1ec,'*Set\x20format:*\x20%0',c(_0x4ad1ec,this['_getTranslationKeyForListStyle'](_0x2592ac['newValue'])))};if(!_0x2592ac['newValue']){if('default'==_0x2592ac['oldValue'])return _0xb9c62;let _0x589e2a=_0x540d0d['head'];for(;_0x589e2a;){if(_0x589e2a['data']&&'listType'==_0x589e2a['data']['key']&&_0x589e2a['data']['newValue'])return _0xb9c62;_0x589e2a=_0x589e2a['next'];}return{'type':'format','content':''+c(_0x4ad1ec,'*Remove\x20format:*\x20%0',c(_0x4ad1ec,this['_getTranslationKeyForListStyle'](_0x2592ac['oldValue'])))};}if('default'!=_0x2592ac['newValue'])return{'type':'format','content':''+c(_0x4ad1ec,'*Set\x20format:*\x20%0',c(_0x4ad1ec,this['_getTranslationKeyForListStyle'](_0x2592ac['newValue'])))};let _0x51de1f=_0x540d0d['head'];for(;_0x51de1f;){if(_0x51de1f['data']&&'listType'==_0x51de1f['data']['key']&&_0x51de1f['data']['newValue']&&_0x51de1f['data']['oldValue'])return _0xb9c62;_0x51de1f=_0x51de1f['next'];}return{'type':'format','content':c(_0x4ad1ec,'*Set\x20format:*\x20%0',c(_0x4ad1ec,'ELEMENT_'+_0x540d0d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x328ffd=this['editor'],_0x4bed79=_0x328ffd['locale'];_0x328ffd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48b06b=>{if('formatBlock'!=_0x48b06b['type'])return;const {data:_0x30531b}=_0x48b06b;if(!_0x30531b)return;let _0x45fbf8,_0xfe63e7;switch(_0x30531b['commandName']){case'listStyle':_0x45fbf8='*Change\x20to:*\x20%0',_0xfe63e7={'type':'format','content':c(_0x4bed79,_0x45fbf8,c(_0x4bed79,this['_getTranslationKeyForListStyle'](_0x30531b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x45fbf8=_0x30531b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xfe63e7={'type':'format','content':c(_0x4bed79,_0x45fbf8)};break;case'listStart':_0x45fbf8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xfe63e7={'type':'format','content':c(_0x4bed79,_0x45fbf8,_0x30531b['commandParams'][0x0]['startIndex'])};}return _0xfe63e7;});}['_getTranslationKeyForListStyle'](_0x1ce6da){return'ELEMENT_'+function(_0xbec727){if(_e['includes'](_0xbec727))return'bulleted';if(Re['includes'](_0xbec727))return'numbered';return null;}(_0x1ce6da)['toUpperCase']()+'_LIST_'+_0x1ce6da['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x54e516{['afterInit'](){const _0x4f0808=this['editor'];_0x4f0808['commands']['get']('emoji')&&_0x4f0808['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x54e516{static get['requires'](){return[_0x188e6c];}['init'](){const _0x5d67e8=this['editor'],_0x4af2b1=_0x5d67e8['plugins']['get']('TrackChangesEditing'),_0x4d1dc2=_0x5d67e8['commands']['get']('enter');_0x4af2b1['enableCommand']('enter',()=>{_0x5d67e8['model']['change'](_0x59a6aa=>{const _0x30f200=_0x5d67e8['model']['document']['selection'],_0x49b0ab=_0x30f200['getFirstPosition'](),_0x52aa46=_0x6b53b6['fromRange'](_0x30f200['getFirstRange']());if(_0x4d1dc2['enterBlock'](_0x59a6aa)){const _0x3f6c34=_0x5d67e8['model']['createPositionAt'](_0x49b0ab['parent']['nextSibling'],0x0),_0x15891a=_0x59a6aa['createRange'](_0x49b0ab,_0x3f6c34);_0x4af2b1['markInsertion'](_0x15891a);}else _0x59a6aa['setSelection'](_0x59a6aa['createRange'](_0x52aa46['end']));_0x52aa46['detach'](),_0x4d1dc2['fire']('afterExecute',{'writer':_0x59a6aa});});}),_0x5d67e8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x5d67e8,'split'),{'priority':'high'}),_0x5d67e8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x340f7a,_0x116936,_0x2a4f59)=>{const _0x5972ea=_0x2a4f59['mapper']['markerNameToElements'](_0x116936['markerName']);if(_0x5972ea){for(const _0x658fcc of _0x5972ea)_0x658fcc['hasClass']('ck-suggestion-marker-split')&&(_0x2a4f59['mapper']['unbindElementFromMarkerName'](_0x658fcc,_0x116936['markerName']),_0x2a4f59['writer']['remove'](_0x658fcc));}},{'priority':'high'}),_0x5d67e8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x390ca0,_0x3896d1,_0x52ee20)=>{_0x52ee20['options']['showSuggestionHighlights']&&De(_0x5d67e8,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x390ca0,_0x3896d1,_0x52ee20);},{'priority':'high'});}}class Z extends _0x54e516{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3d9ceb=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d9ceb['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3d9ceb['enableCommand']('findNext'),_0x3d9ceb['enableCommand']('findPrevious'),_0x3d9ceb['enableCommand']('replace'),_0x3d9ceb['enableCommand']('replaceAll');}['handleFindCommand'](_0x377ba4,_0x2ce9dd,_0x2b6d3b={}){const _0x1fda50=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x377ba4(_0x14113d=>{let _0x5e0eb1=('string'==typeof _0x2ce9dd?_0x1fda50['findByTextCallback'](_0x2ce9dd,_0x2b6d3b):_0x2ce9dd)(_0x14113d);Array['isArray'](_0x5e0eb1)&&(_0x5e0eb1={'results':_0x5e0eb1,'searchText':'string'==typeof _0x2ce9dd?_0x2ce9dd:''});const _0x41b709=_0x5e0eb1['results']['filter'](_0x20f875=>!0x1===this['_isInDeletionRange'](_0x20f875,_0x14113d['item']));return{..._0x5e0eb1,'results':_0x41b709};},_0x2b6d3b);}['_isInDeletionRange'](_0x2a4276,_0x24b92c){const _0x50012e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24b92c,_0x2a4276['start']),this['editor']['model']['createPositionAt'](_0x24b92c,_0x2a4276['end']));for(const _0x50f012 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x50012e['getIntersection'](_0x50f012['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x54e516{['afterInit'](){const _0x439ad8=this['editor']['locale'],_0x2a18ee=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xf22c72,commandName:_0x314c97}of eo)this['editor']['plugins']['has'](_0xf22c72)&&(_0x2a18ee['enableDefaultAttributesIntegration'](_0x314c97),_0x2a18ee['registerInlineAttribute'](_0x314c97));_0x2a18ee['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x439ad8,'FORMAT_FONT_SIZE')),_0x2a18ee['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x439ad8,'FORMAT_FONT_FAMILY')),_0x2a18ee['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x439ad8,'FORMAT_FONT_COLOR')),_0x2a18ee['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x439ad8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b1bb8=this['editor'],_0x3e296f=_0x4b1bb8['locale'];_0x4b1bb8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x348e56=>{const _0x274b50=_0x3e296f['t'];if('formatInline'!=_0x348e56['type'])return;const {data:_0x2ca4f6}=_0x348e56;if(null!=_0x2ca4f6){if('fontSize'==_0x2ca4f6['commandName']){const _0x136aa3=_0x2ca4f6['commandParams'][0x0]['value'];if(_0x136aa3){const _0x2ae783=_0x274b50(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2f520e=>_0x2f520e['model']==_0x136aa3)['title'])['toLowerCase']();return{'type':'format','content':c(_0x3e296f,'*Set\x20font\x20size:*\x20%0',_0x2ae783)};}return{'type':'format','content':c(_0x3e296f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2ca4f6['commandName']){const _0x42fa0f=_0x2ca4f6['commandParams'][0x0]['value'];return _0x42fa0f?{'type':'format','content':c(_0x3e296f,'*Set\x20font\x20family:*\x20%0',_0x42fa0f)}:{'type':'format','content':c(_0x3e296f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2ca4f6['commandName']){const _0x43b5a2=_0x2ca4f6['commandParams'][0x0]['value'];if(_0x43b5a2){const _0x332f61=_0x1f08af(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5196ff=>_0x5196ff['model']==_0x43b5a2);let _0x416a01=_0x43b5a2,_0x37b5b8='';return _0x332f61&&(_0x416a01=_0x332f61['label'],_0x37b5b8=_0x274b50(_0x416a01)['toLowerCase']()),{'type':'format','content':c(_0x3e296f,'*Set\x20font\x20color:*\x20%0',_0x37b5b8)['trim'](),'color':{'value':_0x43b5a2,'title':_0x37b5b8||_0x416a01}};}return{'type':'format','content':c(_0x3e296f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2ca4f6['commandName']){const _0x3375c0=_0x2ca4f6['commandParams'][0x0]['value'];if(_0x3375c0){const _0xe46e00=_0x1f08af(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5b9f5c=>_0x5b9f5c['model']==_0x3375c0);let _0x2d90f8=_0x3375c0,_0x520cd6='';return _0xe46e00&&(_0x2d90f8=_0xe46e00['label'],_0x520cd6=_0x274b50(_0x2d90f8)['toLowerCase']()),{'type':'format','content':c(_0x3e296f,'*Set\x20font\x20background\x20color:*\x20%0',_0x520cd6)['trim'](),'color':{'value':_0x3375c0,'title':_0x520cd6||_0x2d90f8}};}return{'type':'format','content':c(_0x3e296f,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x54e516{['afterInit'](){const _0x2b261b=this['editor'],_0x2df8c2=_0x2b261b['plugins']['get']('TrackChangesEditing'),_0x1d258d=_0x2b261b['commands']['get']('copyFormat'),_0xcc9435=_0x2b261b['commands']['get']('pasteFormat');_0x1d258d&&_0xcc9435&&(_0x2df8c2['enableDefaultAttributesIntegration']('pasteFormat'),_0x2df8c2['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x130bc9=this['editor'],_0x18f523=_0x130bc9['locale'];_0x130bc9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49612c=>{if('formatBlock'!=_0x49612c['type']&&'formatInline'!=_0x49612c['type'])return;const {data:_0xd449eb}=_0x49612c;if(_0xd449eb&&'pasteFormat'===_0xd449eb['commandName']){const _0xe55b59=[],_0x49a1d5=_0xd449eb['commandParams'][0x0];for(const [_0x29697e,_0x3b9588]of Object['entries'](_0x49a1d5))_0xe55b59['push'](ro(_0x130bc9,_0x29697e,_0x3b9588));return _0xe55b59['length']?{'type':'format','content':c(_0x18f523,'*Set\x20format\x20to:*\x20%0',_0xe55b59['join'](',\x20'))}:{'type':'format','content':c(_0x18f523,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3a4ddf,_0x45e11b,_0x1d29e3){const _0x47344a=_0x3a4ddf['locale']['t'],_0xf29f4b=_0x45e11b['split'](/(?=[A-Z])/)['join']('\x20'),_0x3dcac7=_0x47344a(_0xf29f4b['charAt'](0x0)['toUpperCase']()+_0xf29f4b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1d29e3)return _0x3dcac7;if('fontColor'===_0x45e11b||'fontBackgroundColor'===_0x45e11b){const _0x59dad3=_0x1f08af(_0x3a4ddf['config']['get']('fontColor.colors'))['find'](_0x12c41a=>_0x12c41a['model']==_0x1d29e3);return _0x3dcac7+'\x20('+(_0x59dad3?_0x47344a(_0x59dad3['label'])['toLowerCase']():_0x1d29e3)+')';}if('fontSize'===_0x45e11b&&isNaN(parseFloat(_0x1d29e3))){const _0x48714b=_0x3a4ddf['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3a4ddf['config']['get']('fontSize.options'))['find'](_0x139e68=>_0x139e68['model']==_0x1d29e3);return _0x3dcac7+'\x20('+(_0x48714b?_0x47344a(_0x48714b['title'])['toLowerCase']():_0x1d29e3)+')';}return _0x3dcac7+'\x20('+_0x1d29e3+')';}class nt extends _0x54e516{['_headingOptions'];['afterInit'](){const _0x4e1cd9=this['editor'];if(!_0x4e1cd9['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4e1cd9['config']['get']('heading.options');const _0x2a54d7=_0x4e1cd9['locale'],_0x335325=_0x4e1cd9['plugins']['get']('TrackChangesEditing');_0x335325['enableDefaultAttributesIntegration']('heading');for(const _0x17f254 of this['_headingOptions'])'paragraph'!=_0x17f254['model']&&_0x335325['descriptionFactory']['registerElementLabel'](_0x17f254['model'],_0x294671=>{const _0x134ee3=this['_getHeadingLevel'](_0x17f254['model']);return null!==_0x134ee3?_0x1ee86e(_0x294671,_0x134ee3):_0x423a8b(_0x294671,_0x17f254['title']);});function _0x1ee86e(_0x20a719,_0x299e98){return c(_0x2a54d7,'ELEMENT_HEADING',[_0x20a719,_0x299e98]);}function _0x423a8b(_0x2b1a2c,_0xd02ea4){return c(_0x2a54d7,'ELEMENT_HEADING_CUSTOM',[_0x2b1a2c,_0xd02ea4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20f6c7=this['editor'],_0x2cea5a=_0x20f6c7['locale'];function _0x325fcd(_0x29b94b,_0x515b18){return c(_0x2cea5a,'ELEMENT_HEADING_CUSTOM',[_0x29b94b,_0x515b18]);}_0x20f6c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178c73=>{if('formatBlock'!=_0x178c73['type'])return;const {data:_0xd3e04b}=_0x178c73;if(_0xd3e04b&&'heading'==_0xd3e04b['commandName']){const _0x3d4079=_0xd3e04b['commandParams'][0x0]['value'],_0x1061e9=this['_getHeadingLevel'](_0x3d4079);if(null!==_0x1061e9)return{'type':'format','content':c(_0x2cea5a,'*Change\x20to:*\x20%0',(_0x3cb013=0x1,_0x11bea7=_0x1061e9,c(_0x2cea5a,'ELEMENT_HEADING',[_0x3cb013,_0x11bea7])))};const _0x50de85=this['_headingOptions']['find'](_0x3e71f9=>_0x3e71f9['model']===_0x3d4079)['title'];return{'type':'format','content':c(_0x2cea5a,'*Change\x20to:*\x20%0',_0x325fcd(0x1,_0x50de85))};}var _0x3cb013,_0x11bea7;});}['_getHeadingLevel'](_0x4a636b){const _0x3a7f99=_0x4a636b['match'](/^heading(\d+)/);if(_0x3a7f99)return _0x3a7f99[0x1];const _0x1d12d3=this['_headingOptions']?.['find'](_0x2dceea=>_0x2dceea['model']==_0x4a636b);if(_0x1d12d3&&_0x1d12d3['view']){const _0x208ded=_0x1d12d3['view'],_0x5c76ab=(_0x208ded['name']??_0x208ded)['match'](/^h(\d+)/);if(_0x5c76ab)return _0x5c76ab[0x1];}return null;}}class it extends _0x54e516{['afterInit'](){const _0x4b9431=this['editor'];if(!_0x4b9431['plugins']['has']('HighlightEditing'))return;const _0x5379cd=_0x4b9431['plugins']['get']('TrackChangesEditing'),_0x553f8c=_0x4b9431['locale'];_0x5379cd['enableDefaultAttributesIntegration']('highlight'),_0x5379cd['registerInlineAttribute']('highlight'),_0x5379cd['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x553f8c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ccf72=this['editor'],_0x19b130=_0x2ccf72['locale'];_0x2ccf72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4741f5=>{if('formatInline'!=_0x4741f5['type'])return;const {data:_0x29abfd}=_0x4741f5;if(_0x29abfd&&'highlight'==_0x29abfd['commandName']){const _0x36bdd0=_0x19b130['t'],_0x109dcd=_0x29abfd['commandParams'][0x0]['value'];if(_0x109dcd){const _0x5a206a=_0x2ccf72['config']['get']('highlight.options')['find'](_0x34c732=>_0x34c732['model']==_0x109dcd),_0x3198f0=_0x36bdd0(_0x5a206a['title'])['toLowerCase']();return{'type':'format','content':c(_0x19b130,'*Set\x20highlight:*\x20%0',_0x3198f0),'color':{'value':_0x5a206a['color'],'title':_0x5a206a['title']}};}return{'type':'format','content':c(_0x19b130,'*Remove\x20highlight*',c(_0x19b130,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x54e516{['afterInit'](){const _0x1346f5=this['editor'];if(!_0x1346f5['plugins']['has']('HorizontalLineEditing'))return;_0x1346f5['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5ec215=_0x1346f5['plugins']['get']('TrackChangesEditing'),_0x473541=_0x1346f5['locale'];_0x5ec215['descriptionFactory']['registerElementLabel']('horizontalLine',_0x932b7f=>c(_0x473541,'ELEMENT_HORIZONTAL_LINE',_0x932b7f)),_0x1346f5['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4dd9db,{writer:_0x1eb596,options:_0x4fcc0b})=>{if(!_0x4fcc0b['showSuggestionHighlights'])return null;const _0x4cc111=_0x1eb596['createContainerElement']('div'),_0x3a4b40=_0x1eb596['createEmptyElement']('hr');return _0x1eb596['addClass']('ck-horizontal-line',_0x4cc111),_0x1eb596['insert'](_0x1eb596['createPositionAt'](_0x4cc111,0x0),_0x3a4b40),_0x4cc111;},'converterPriority':'high'});}}class ot extends _0x54e516{['afterInit'](){const _0x445d07=this['editor'];if(!_0x445d07['plugins']['has']('HtmlEmbed'))return;const _0x479464=_0x445d07['plugins']['get']('TrackChangesEditing'),_0x589d62=_0x445d07['locale'];_0x479464['descriptionFactory']['registerElementLabel']('rawHtml',_0x4124a5=>c(_0x589d62,'ELEMENT_HTML_EMBED',_0x4124a5)),_0x479464['enableDefaultAttributesIntegration']('htmlEmbed'),_0x479464['registerBlockAttribute']('value'),_0x479464['descriptionFactory']['registerDescriptionCallback'](_0x4a361d=>{if('attribute'!=_0x4a361d['type'])return;const {data:_0x2ee5a5}=_0x4a361d;if(_0x2ee5a5&&'value'==_0x2ee5a5['key']&&_0x4a361d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xa547b6=c(_0x589d62,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x589d62,'*Change\x20%0\x20content*',_0xa547b6)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56e3ba=this['editor'],_0x37a2bf=_0x56e3ba['locale'];_0x56e3ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54b2b9=>{if('formatBlock'!=_0x54b2b9['type'])return;const {data:_0x568d2f}=_0x54b2b9;if(_0x568d2f&&'htmlEmbed'==_0x568d2f['commandName']){const _0x5c2b97=c(_0x37a2bf,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x37a2bf,'*Change\x20%0\x20content*',_0x5c2b97)};}});}}class rt extends _0x54e516{['afterInit'](){const _0x50b853=this['editor'];if(!_0x50b853['plugins']['has']('ImageEditing'))return;const _0x1b4885=_0x50b853['plugins']['get']('TrackChangesEditing'),_0x2c0f96=_0x50b853['plugins']['get']('ImageUtils'),_0xec6e6f=_0x50b853['locale'];_0x1b4885['enableCommand']('insertImage'),_0x1b4885['descriptionFactory']['registerElementLabel']('imageBlock',_0xe117a3=>c(_0xec6e6f,'ELEMENT_IMAGE',_0xe117a3)),_0x1b4885['descriptionFactory']['registerElementLabel']('imageInline',_0x3b99f7=>c(_0xec6e6f,'ELEMENT_INLINE_IMAGE',_0x3b99f7)),_0x1b4885['descriptionFactory']['registerElementLabel']('caption',()=>c(_0xec6e6f,'ELEMENT_CAPTION')),_0x50b853['plugins']['has']('ImageUploadEditing')&&_0x1b4885['enableCommand']('uploadImage'),_0x50b853['plugins']['has']('ImageBlockEditing')&&_0x50b853['plugins']['has']('ImageInlineEditing')&&(_0x1b4885['enableCommand']('imageTypeInline',(_0x2a1f49,_0x209f78)=>{const _0x53b23c=_0x2c0f96['getClosestSelectedImageElement'](_0x50b853['model']['document']['selection']);_0x50b853['model']['change'](()=>{_0x1b4885['markBlockFormat'](_0x53b23c,{'commandName':'imageTypeInline','commandParams':[_0x209f78]},[],'convertBlockImageToInline');});}),_0x1b4885['enableCommand']('imageTypeBlock',(_0xbe2552,_0x5b4523)=>{_0x50b853['model']['change'](_0x58b183=>{let _0x2d4b85=_0x2c0f96['getClosestSelectedImageElement'](_0x50b853['model']['document']['selection']),_0x6d213=_0x58b183['createRangeOn'](_0x2d4b85);const _0x37fab1=_0x5f2a4a['fromPosition'](_0x6d213['start'],'toPrevious'),_0x5943fe=_0x5f2a4a['fromPosition'](_0x6d213['end'],'toNext');_0x1b4885['forceDefaultExecution'](()=>_0xbe2552(_0x5b4523)),_0x2d4b85=_0x2c0f96['getClosestSelectedImageElement'](_0x50b853['model']['document']['selection']),_0x6d213=_0x58b183['createRangeOn'](_0x2d4b85);const _0x4cc52d=_0x58b183['createRange'](_0x37fab1,_0x5943fe);_0x37fab1['detach'](),_0x5943fe['detach'](),_0x1b4885['markBlockFormat'](_0x2d4b85,{'commandName':'imageTypeInline','commandParams':[_0x5b4523]},[],'convertInlineImageToBlock'),_0x4cc52d['start']['isBefore'](_0x6d213['start'])&&_0x1b4885['markInsertion'](_0x58b183['createRange'](_0x4cc52d['start'],_0x6d213['start']),'convertInlineImageToBlock'),_0x6d213['end']['isBefore'](_0x4cc52d['end'])&&_0x1b4885['markInsertion'](_0x58b183['createRange'](_0x6d213['end'],_0x4cc52d['end']),'convertInlineImageToBlock');});}),_0x1b4885['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1b4885['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1b4885['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1b4885['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1b4885['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1b4885['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5dd896])=>{const _0x38d622=_0x1b4885['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x59294d=_0x5dd896['start'],_0x1077a2=_0x5dd896['end'];const _0x51e011=_0x50b853['model']['schema']['getNearestSelectionRange'](_0x59294d,'backward'),_0x43888b=_0x50b853['model']['schema']['getNearestSelectionRange'](_0x1077a2,'forward');_0x51e011['isCollapsed']&&(_0x59294d=_0x51e011['start']),_0x43888b['isCollapsed']&&(_0x1077a2=_0x43888b['end']),_0x38d622([_0x50b853['model']['createRange'](_0x59294d,_0x1077a2)]);}),_0x1b4885['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1784b8),_0x1b4885['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1784b8)),_0x50b853['plugins']['has']('ImageCaptionEditing')&&(_0x1b4885['enableCommand']('toggleImageCaption',(_0xd66e9d,_0x478354)=>{const _0x1bd7dc=_0x50b853['plugins']['get']('ImageCaptionUtils');let _0x4e292d=_0x2c0f96['getClosestSelectedImageElement'](_0x50b853['model']['document']['selection']),_0x52ded6=_0x1bd7dc['getCaptionFromImageModelElement'](_0x4e292d);_0x50b853['model']['change'](()=>{if(_0x52ded6)return void _0x1b4885['markDeletion'](_0x50b853['model']['createRangeOn'](_0x52ded6));const _0x47b6f6=_0x2c0f96['isBlockImage'](_0x4e292d);_0xd66e9d(_0x478354),_0x4e292d=_0x2c0f96['getClosestSelectedImageElement'](_0x50b853['model']['document']['selection']),_0x52ded6=_0x1bd7dc['getCaptionFromImageModelElement'](_0x4e292d),_0x1b4885['markInsertion'](_0x50b853['model']['createRangeOn'](_0x52ded6),_0x47b6f6?null:'imageCaption');});}),_0x1b4885['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1784b8));const _0xe0b9a5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x435095(_0x58b1ee,_0x5346d2){const _0x57381a=_0xe0b9a5['findIndex'](({type:_0x45fe3c,subType:_0x3accb2})=>_0x58b1ee['type']==_0x45fe3c&&_0x58b1ee['subType']==_0x3accb2),_0x74494f=_0xe0b9a5['findIndex'](({type:_0x4a58f2,subType:_0x10f4a3})=>_0x5346d2['type']==_0x4a58f2&&_0x5346d2['subType']==_0x10f4a3);if(_0x57381a<0x0||_0x74494f<0x0)return!0x1;const _0x383ff5=_0x58b1ee['getFirstRange'](),_0x1eced9=_0x5346d2['getFirstRange']();if((0x0==_0x57381a||0x1==_0x57381a)&&0x2==_0x74494f&&_0x383ff5['isIntersecting'](_0x1eced9))return!0x0;if(0x2==_0x57381a&&0x3==_0x74494f){const _0x47f0c9=_0x1b4885['_findSuggestions'](_0x383ff5,'insertion')['filter'](({suggestion:_0x398807,meta:_0x2a2802})=>_0x2a2802['isOwn']&&'convertInlineImageToBlock'==_0x398807['subType']);if(_0x47f0c9['length']>0x1&&_0x1eced9['end']['isEqual'](_0x383ff5['start']))return!0x0;if(0x1==_0x47f0c9['length']&&(_0x383ff5['start']['isEqual'](_0x1eced9['end'])||_0x383ff5['end']['isEqual'](_0x1eced9['start'])))return!0x0;}if(0x3==_0x57381a&&0x3==_0x74494f&&_0x383ff5['start']['isBefore'](_0x1eced9['start'])){const _0x2140c5=_0x383ff5['end']['nodeAfter'],_0x3c6c63=_0x1eced9['start']['nodeBefore'];return _0x2c0f96['isBlockImage'](_0x2140c5)&&_0x2140c5===_0x3c6c63;}return!0x1;}function _0x1784b8(_0x3d7d27,_0x14078d){return _0x435095(_0x3d7d27,_0x14078d)?[_0x3d7d27,_0x14078d]:_0x435095(_0x14078d,_0x3d7d27)?[_0x14078d,_0x3d7d27]:null;}_0x50b853['plugins']['has']('ImageResize')&&(_0x1b4885['enableDefaultAttributesIntegration']('resizeImage'),_0x1b4885['registerBlockAttribute']('resizedWidth'),_0x1b4885['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0xec6e6f,'FORMAT_IMAGE_SIZE'))),_0x50b853['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1b4885['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1b4885['registerBlockAttribute']('alt')),_0x50b853['plugins']['has']('PictureEditing')&&(_0x1b4885['registerBlockAttribute']('sources'),_0x1b4885['descriptionFactory']['registerDescriptionCallback'](_0x1cc340=>{if('attribute'!=_0x1cc340['type'])return;const {data:_0x5cbd6e}=_0x1cc340;return _0x5cbd6e&&'sources'==_0x5cbd6e['key']?{'type':'format','content':''}:void 0x0;})),_0x50b853['plugins']['has']('ImageSizeAttributes')&&(_0x1b4885['registerBlockAttribute']('width'),_0x1b4885['registerBlockAttribute']('height'),_0x1b4885['descriptionFactory']['registerDescriptionCallback'](_0x35203a=>{if('attribute'!=_0x35203a['type'])return;const {data:_0x91d6c6}=_0x35203a;return!_0x91d6c6||'width'!=_0x91d6c6['key']&&'height'!=_0x91d6c6['key']?void 0x0:{'type':'format','content':''};})),_0x1b4885['descriptionFactory']['registerDescriptionCallback'](_0x53a08c=>{if(!!_0xe0b9a5['find'](({type:_0x5973fa,subType:_0x56c994})=>_0x53a08c['type']==_0x5973fa&&_0x53a08c['subType']==_0x56c994))return _0x53a08c['previous']?{}:void 0x0;}),_0x1b4885['descriptionFactory']['registerDescriptionCallback'](_0x731ce1=>{if('insertion'==_0x731ce1['type']||'deletion'==_0x731ce1['type']){const _0x3d7fc0=_0x731ce1['getContainedElement']();if(_0x3d7fc0&&_0x3d7fc0['is']('element','caption'))return{'type':'insertion'==_0x731ce1['type']?'addObject':'removeObject','element':_0x3d7fc0,'quantity':0x1};}}),_0x1b4885['descriptionFactory']['registerDescriptionCallback'](_0x1ac9d4=>'formatBlock'==_0x1ac9d4['type']&&'convertInlineImageToBlock'==_0x1ac9d4['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1ac9d4['type']&&'convertBlockImageToInline'==_0x1ac9d4['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1b4885['descriptionFactory']['registerDescriptionCallback'](_0x5d8f14=>{if('attribute'!=_0x5d8f14['type'])return;const {data:_0x552a8c}=_0x5d8f14;if(!_0x552a8c||'alt'!=_0x552a8c['key'])return;const _0x4348f0=_0x552a8c['newValue'];return _0x4348f0?{'type':'format','content':c(_0xec6e6f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4348f0+'\x22')}:{'type':'format','content':c(_0xec6e6f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5deea2=this['editor'],_0x46b111=_0x5deea2['locale'];_0x5deea2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e4698=>{if('formatBlock'!=_0x5e4698['type']&&'formatInline'!=_0x5e4698['type'])return;const {data:_0x4b8706}=_0x5e4698;if(_0x4b8706){if('imageTextAlternative'==_0x4b8706['commandName']){const _0x1366c2=_0x4b8706['commandParams'][0x0]['newValue'];return _0x1366c2?{'type':'format','content':c(_0x46b111,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1366c2+'\x22')}:{'type':'format','content':c(_0x46b111,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4b8706['commandName']){const _0x26e7c3=_0x4b8706['commandParams'][0x0]['width'];return _0x26e7c3?{'type':'format','content':c(_0x46b111,'*Set\x20image\x20width:*\x20%0',_0x26e7c3)}:{'type':'format','content':c(_0x46b111,'*Reset\x20image\x20width*')};}}});}}class at extends _0x54e516{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x7da5d5=this['editor']['locale'],_0x1545ac=this['editor']['plugins']['get']('TrackChangesEditing');_0x1545ac['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1545ac['registerBlockAttribute']('src'),_0x1545ac['descriptionFactory']['registerDescriptionCallback'](_0xa11b84=>{if('attribute'!=_0xa11b84['type'])return;const {data:_0xe0ca60}=_0xa11b84;return _0xe0ca60&&'src'==_0xe0ca60['key']?_0xe0ca60['newValue']&&_0xe0ca60['oldValue']?{'type':'format','content':c(_0x7da5d5,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1d7f65=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d7f65['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1d7f65['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d7f65['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1d7f65['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36f852=this['editor'],_0x175362=_0x36f852['locale'];_0x36f852['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x124387=>{if('formatBlock'!=_0x124387['type']&&'formatInline'!=_0x124387['type'])return;const {data:_0x3b2603}=_0x124387;if(!_0x3b2603||'replaceImageSource'!=_0x3b2603['commandName'])return;return{'type':'format','content':c(_0x175362,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x54e516{['afterInit'](){const _0x581a89=this['editor'];if(!_0x581a89['plugins']['has']('ImageStyleEditing'))return;const _0x3fdd93=_0x581a89['plugins']['get']('TrackChangesEditing'),_0x45b710=_0x581a89['plugins']['get']('ImageUtils'),_0x4384f3={};_0x3fdd93['enableCommand']('imageStyle',(_0x4df839,_0x1aa050)=>{const _0x36b5b6=_0x581a89['plugins']['get']('Users')['me'],_0x2a5bc4=_0x581a89['commands']['get']('imageStyle');let _0x11937d=_0x45b710['getClosestSelectedImageElement'](_0x581a89['model']['document']['selection']),_0x20386b=_0x581a89['model']['createRangeOn'](_0x11937d),_0x4133a3=_0x2a5bc4['value'];if(_0x4133a3==_0x1aa050['value'])return;const _0x236af4={'commandName':'imageStyle','commandParams':[_0x1aa050],'formatGroupId':_0x5310dd()};_0x581a89['model']['change'](()=>{if(_0x3fdd93['getSuggestions']()['filter'](_0x29a050=>_0x29a050['isInContent']&&_0x36b5b6==_0x29a050['author']&&('formatBlock'==_0x29a050['type']||'formatInline'==_0x29a050['type'])&&('imageStylePreApply'==_0x29a050['subType']||'imageStylePostApply'==_0x29a050['subType'])&&_0x29a050['getFirstRange']()['isEqual'](_0x20386b))['forEach'](_0x4044ac=>_0x3fdd93['discardSuggestion'](_0x4044ac['head'])),_0x11937d=_0x45b710['getClosestSelectedImageElement'](_0x581a89['model']['document']['selection']),_0x20386b=_0x581a89['model']['createRangeOn'](_0x11937d),_0x2a5bc4['refresh'](),_0x581a89['commands']['get']('imageTypeInline')['refresh'](),_0x581a89['commands']['get']('imageTypeBlock')['refresh'](),_0x4133a3=_0x2a5bc4['value'],_0x4133a3!=_0x1aa050['value'])return _0x45b710['isInlineImage'](_0x11937d)&&_0x2a5bc4['shouldConvertImageType'](_0x1aa050['value'],_0x11937d)?(_0x4df839({..._0x1aa050,'setImageSizes':!0x1}),_0x11937d=_0x45b710['getClosestSelectedImageElement'](_0x581a89['model']['document']['selection']),void _0x3fdd93['markBlockFormat'](_0x11937d,{..._0x236af4,'commandReversedParams':[{'value':_0x4133a3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x45b710['isBlockImage'](_0x11937d)?_0x3fdd93['markBlockFormat'](_0x11937d,_0x236af4,[],'imageStylePostApply'):_0x3fdd93['markInlineFormat'](_0x20386b,_0x236af4,'imageStylePostApply'));});});for(const _0x248ca7 of _0x581a89['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4384f3[_0x248ca7['name']]=_0x248ca7['title']['toLowerCase']();_0x3fdd93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3fdd93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3fdd93['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3fdd93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3ad40f])=>{_0x45b710['setImageNaturalSizeAttributes'](_0x3ad40f['getContainedElement']());}),_0x3fdd93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5d851f,_0x4e1a66)=>{_0x3fdd93['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5d851f,{'commandName':_0x4e1a66['commandName'],'commandParams':_0x4e1a66['commandReversedParams']});}),_0x3fdd93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5654d2,_0x8fc1c0){if(_0x5e9737(_0x5654d2,_0x8fc1c0))return[_0x5654d2,_0x8fc1c0];if(_0x5e9737(_0x8fc1c0,_0x5654d2))return[_0x8fc1c0,_0x5654d2];return null;});const _0x4a5d32=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5e9737(_0x1a7b97,_0x59d1ed){const _0x1f6689=_0x4a5d32['findIndex'](({type:_0x14e55a,subType:_0x345029})=>_0x1a7b97['type']==_0x14e55a&&_0x1a7b97['subType']==_0x345029),_0x581375=_0x4a5d32['findIndex'](({type:_0x1806ff,subType:_0x3ebfd0})=>_0x59d1ed['type']==_0x1806ff&&_0x59d1ed['subType']==_0x3ebfd0);if(_0x1f6689<0x0||_0x581375<0x0)return!0x1;const _0x4d9001=_0x1a7b97['getFirstRange'](),_0x4dd7bf=_0x59d1ed['getFirstRange']();if((0x0==_0x1f6689||0x1==_0x1f6689)&&0x2==_0x581375&&_0x4d9001['isIntersecting'](_0x4dd7bf))return!0x0;if(0x2==_0x1f6689&&0x3==_0x581375){const _0xca8079=_0x3fdd93['_findSuggestions'](_0x4d9001,'insertion')['filter'](({suggestion:_0x4842d2,meta:_0x3da657})=>_0x3da657['isOwn']&&'convertInlineImageToBlock'==_0x4842d2['subType']);if(_0xca8079['length']>0x1&&_0x4dd7bf['end']['isEqual'](_0x4d9001['start']))return!0x0;if(0x1==_0xca8079['length']&&(_0x4d9001['start']['isEqual'](_0x4dd7bf['end'])||_0x4d9001['end']['isEqual'](_0x4dd7bf['start'])))return!0x0;}if(0x3==_0x1f6689&&0x3==_0x581375&&_0x4d9001['start']['isBefore'](_0x4dd7bf['start'])){const _0x58e256=_0x4d9001['end']['nodeAfter'],_0x568668=_0x4dd7bf['start']['nodeBefore'];return _0x45b710['isBlockImage'](_0x58e256)&&_0x58e256===_0x568668;}return!0x1;}_0x581a89['model']['document']['registerPostFixer'](()=>{let _0x370213=!0x1;const _0x4a3b35=Array['from'](_0x581a89['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43703d,data:_0x3f10a7}of _0x4a3b35){const {group:_0x5e508e,type:_0x5ede1e,subType:_0x29ed4a,id:_0x27af7f}=_0x3fdd93['_splitMarkerName'](_0x43703d);if('suggestion'==_0x5e508e&&_0x3fdd93['hasSuggestion'](_0x27af7f)){if('formatBlock'==_0x5ede1e&&('imageStylePreApply'==_0x29ed4a||'imageStylePostApply'==_0x29ed4a)){const _0x20a519=_0x3fdd93['getSuggestion'](_0x27af7f);if(_0x3f10a7['newRange']){const _0x1341e2=_0x20a519['getFirstRange']()['getContainedElement']();if(_0x45b710['isBlockImage'](_0x1341e2))continue;_0x3fdd93['discardSuggestion'](_0x20a519),_0x370213=!0x0;}}if('insertion'==_0x5ede1e&&'imageCaption'==_0x29ed4a&&!_0x3f10a7['newRange']){const _0x22ce69=_0x3fdd93['getSuggestion'](_0x27af7f);_0x22ce69['next']&&_0x22ce69['next']['isInContent']&&(_0x3fdd93['discardSuggestion'](_0x22ce69['next']),_0x370213=!0x0);}}}return _0x370213;}),this['_registerLegacyDescription'](_0x4384f3);}['_registerLegacyDescription'](_0x5933a3){const _0x4d8cdf=this['editor'],_0xaa817a=_0x4d8cdf['locale'];_0x4d8cdf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47f28a=>{if('formatBlock'!=_0x47f28a['type']&&'formatInline'!=_0x47f28a['type'])return;const {data:_0xd01ca6}=_0x47f28a;if(!_0xd01ca6||'imageStyle'!=_0xd01ca6['commandName'])return;const _0xf8c97c=_0xd01ca6['commandParams'][0x0]['value'];return _0x412262('side'===_0xf8c97c?c(_0xaa817a,'FORMAT_SIDE_IMAGE'):_0x5933a3[_0xf8c97c]||_0xf8c97c);function _0x412262(_0x2b4151){return{'type':'format','content':c(_0xaa817a,'*Format:*\x20%0',_0x2b4151)};}});}}class ut extends _0x54e516{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3b45a5){super(_0x3b45a5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1d9c0a=this['editor'],_0x3deca9=_0x1d9c0a['commands']['get']('importWord'),_0x411a12=_0x1d9c0a['commands']['get']('trackChanges');_0x3deca9&&(_0x3deca9['on']('execute',(_0x2c0852,[,_0x19a8a5])=>{this['_trackChangesValueDuringImport']=_0x411a12['value'],_0x19a8a5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3deca9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3deca9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x411a12['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1d9c0a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3ffd72,_0x375a00){const {suggestions:_0x11da7d}=_0x375a00,_0x3033d5=this['editor']['commands']['get']('trackChanges'),_0x4cc731=_0x3033d5['value'];this['_trackChangesValueDuringImport']!==_0x4cc731&&(_0x3033d5['execute'](),this['_trackChangesExecuted']=!0x0),_0x11da7d&&_0x11da7d['forEach'](({id:_0x3337de,type:_0x394838,author:_0x2bbe62,created_at:_0x56f334})=>{const _0x4030ac={'id':_0x3337de,'type':_0x394838,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2bbe62,'createdAt':_0x56f334?new Date(_0x56f334):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4030ac);});}}class ft extends _0x54e516{['afterInit'](){const _0x1ac5c5=this['editor'],_0x4b4b63=_0x1ac5c5['plugins']['get']('TrackChangesEditing');if(_0x1ac5c5['plugins']['has']('IndentEditing')&&(_0x4b4b63['enableCommand']('indent'),_0x4b4b63['enableCommand']('outdent')),_0x1ac5c5['plugins']['has']('IndentBlock')){for(const _0x1a6c77 of['indentBlock','outdentBlock'])_0x4b4b63['enableDefaultAttributesIntegration'](_0x1a6c77);}const _0x513c16=_0x1ac5c5['locale'];_0x4b4b63['registerBlockAttribute']('blockIndent'),_0x4b4b63['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x513c16,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x500f3f=this['editor'],_0x5cbb10=_0x500f3f['locale'],_0x11fc01=_0x500f3f['plugins']['get']('TrackChangesEditing');_0x11fc01['descriptionFactory']['registerDescriptionCallback'](_0x1c5939=>{if('formatBlock'!=_0x1c5939['type'])return;const {data:_0x2cfd5b}=_0x1c5939;if(!_0x2cfd5b)return;if('indentBlock'!=_0x2cfd5b['commandName']&&'outdentBlock'!=_0x2cfd5b['commandName'])return;const _0xed8370=_0x1c5939['getItems']()[0x0],_0x2403c0=_0x11fc01['descriptionFactory']['getItemLabel'](_0xed8370);return'indentBlock'==_0x2cfd5b['commandName']?{'type':'format','content':c(_0x5cbb10,'*Indent:*\x20%0',_0x2403c0)}:'outdentBlock'==_0x2cfd5b['commandName']?{'type':'format','content':c(_0x5cbb10,'*Outdent:*\x20%0',_0x2403c0)}:void 0x0;});}}class ht extends _0x54e516{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x54e516{['afterInit'](){const _0x10e3cd=this['editor'];if(!_0x10e3cd['plugins']['has']('LinkEditing'))return;const _0x353522=_0x10e3cd['plugins']['get']('TrackChangesEditing'),_0x26b3d2=_0x10e3cd['commands']['get']('link');_0x353522['enableDefaultAttributesIntegration']('link'),_0x353522['enableDefaultAttributesIntegration']('unlink'),_0x353522['registerInlineAttribute']('linkHref');for(const _0x3689e4 of _0x26b3d2['manualDecorators'])_0x353522['registerInlineAttribute'](_0x3689e4['id']),_0x353522['descriptionFactory']['registerAttributeLabel'](_0x3689e4['id'],'link\x20('+_0x3689e4['label']['toLowerCase']()+')');_0x353522['descriptionFactory']['registerDescriptionCallback'](_0x1749fe=>{if('attribute'!=_0x1749fe['type'])return;const {data:_0x356445}=_0x1749fe;if(!_0x356445||'linkHref'!=_0x356445['key'])return;const _0x7d1b44=_0x356445['newValue'],_0x1dff5a=_0x10e3cd['locale'];return{'type':'format','content':null==_0x7d1b44?c(_0x1dff5a,'*Remove\x20link*'):c(_0x1dff5a,'*Set\x20link:*\x20%0','\x22'+_0x7d1b44+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cf27c=this['editor'],_0x5473f2=_0x1cf27c['locale'];_0x1cf27c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dbc20=>{if('formatInline'!=_0x3dbc20['type'])return;const {data:_0x3bc987}=_0x3dbc20;if(_0x3bc987){if('link'==_0x3bc987['commandName']){const _0x1f7ef6=_0x3bc987['commandParams'][0x0];return{'type':'format','content':c(_0x5473f2,'*Set\x20link:*\x20%0','\x22'+_0x1f7ef6+'\x22')};}return'unlink'==_0x3bc987['commandName']?{'type':'format','content':c(_0x5473f2,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x54e516{['afterInit'](){const _0x2f4ece=this['editor'],_0x25c4ba=_0x2f4ece['locale'];if(!_0x2f4ece['plugins']['has']('LegacyListEditing'))return;const _0x45ad6c=_0x2f4ece['plugins']['get']('TrackChangesEditing'),_0xe3bd95=_0x2f4ece['plugins']['has']('LegacyTodoListEditing');function _0x2a4df8(_0x37b33c){return()=>{const _0x584051=_0x2f4ece['model']['document']['selection'],_0x745e04=_0x2f4ece['commands']['get'](_0x37b33c);if(_0x745e04['value'])return void _0x2f4ece['execute']('paragraph',{});const _0x293f19=_0x37b33c['slice'](0x0,-0x4),_0x555129=function(_0x105e07,_0x2ec108,_0x4daf81){let _0x2ed37f=Array['from'](_0x105e07)['filter'](_0x192a7a=>function(_0x4f5023,_0x49fd04){return _0x49fd04['checkChild'](_0x4f5023['parent'],'listItem')&&!_0x49fd04['isObject'](_0x4f5023);}(_0x192a7a,_0x4daf81));_0x2ed37f=_0x2ed37f['filter'](_0x2f4f3b=>!_0x2f4f3b['is']('element','listItem')||_0x2f4f3b['getAttribute']('listType')!=_0x2ec108);const _0x5e9fea=new Set();for(const _0x3928d2 of _0x2ed37f)_0x3928d2['is']('element','listItem')?_0x5e9fea['add'](Le(_0x3928d2)):_0x5e9fea['add'](_0x3928d2);return Array['from'](_0x5e9fea);}(_0x584051['getSelectedBlocks'](),_0x293f19,_0x2f4ece['model']['schema']);_0x2f4ece['model']['change'](()=>{for(const _0x1b859b of _0x555129)_0x45ad6c['markBlockFormat'](_0x1b859b,{'commandName':_0x37b33c,'commandParams':[{'forceValue':!_0x745e04['value']}],'formatGroupId':'blockName'},Ee(_0x1b859b));});};}function _0x241079(_0xfe8c57){return()=>{const _0x2a929b=function(_0x291ac9){let _0x3324b8=Array['from'](_0x291ac9);const _0x4a106d=_0x3324b8['findIndex'](_0x2fff79=>'listItem'!=_0x2fff79['name']);return _0x4a106d>-0x1&&(_0x3324b8=_0x3324b8['slice'](0x0,_0x4a106d)),_0x3324b8;}(_0x2f4ece['model']['document']['selection']['getSelectedBlocks']()),_0x1d3e55=_0x2f4ece['model']['createRange'](_0x2f4ece['model']['createPositionAt'](_0x2a929b[0x0],'before'),_0x2f4ece['model']['createPositionAt'](_0x2a929b[_0x2a929b['length']-0x1],'end'));_0x2f4ece['model']['change'](()=>{_0x45ad6c['markBlockFormat'](_0x1d3e55,{'commandName':_0xfe8c57,'commandParams':[],'formatGroupId':'listIndent'},function(_0x338abd){const _0x5bfe51=new Set();for(const _0x2f67c4 of _0x338abd){let _0x52975e=_0x2f67c4['nextSibling'];for(;_0x52975e&&_0x52975e['getAttribute']('listIndent')>_0x2f67c4['getAttribute']('listIndent');)_0x5bfe51['add'](_0x52975e),_0x52975e=_0x52975e['nextSibling'];}return Array['from'](_0x5bfe51);}(_0x2a929b));});};}_0x45ad6c['enableCommand']('numberedList',_0x2a4df8('numberedList')),_0x45ad6c['enableCommand']('bulletedList',_0x2a4df8('bulletedList')),_0xe3bd95&&_0x45ad6c['enableCommand']('todoList',_0x2a4df8('todoList')),_0x45ad6c['enableCommand']('indentList',_0x241079('indentList')),_0x45ad6c['enableCommand']('outdentList',_0x241079('outdentList')),_0xe3bd95&&_0x45ad6c['enableCommand']('checkTodoList',()=>{const _0x19e0f1=_0x2f4ece['commands']['get']('checkTodoList'),_0x545458=Array['from'](_0x19e0f1['_selectedElements']);_0x545458['filter'](_0x3c82fc=>_0x3c82fc['getAttribute']('todoListChecked')!=_0x19e0f1['value']),_0x2f4ece['model']['change'](()=>{for(const _0x3d377f of _0x545458)_0x45ad6c['markBlockFormat'](_0x3d377f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x19e0f1['value']}]});});}),_0x45ad6c['descriptionFactory']['registerElementLabel']('listItem',_0x355fdc=>c(_0x25c4ba,'ELEMENT_LIST_ITEM',_0x355fdc)),_0x45ad6c['descriptionFactory']['registerDescriptionCallback'](_0x442e5f=>{if('formatBlock'!=_0x442e5f['type']&&'formatInline'!=_0x442e5f['type'])return;const {data:_0x4b3ca8}=_0x442e5f;if(_0x4b3ca8){if('numberedList'==_0x4b3ca8['commandName']||'bulletedList'==_0x4b3ca8['commandName']||'todoList'==_0x4b3ca8['commandName'])switch(_0x4b3ca8['commandName']['replace']('List','')){case'bulleted':return _0x136aab(c(_0x25c4ba,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x136aab(c(_0x25c4ba,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x136aab(c(_0x25c4ba,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4b3ca8['commandName'])return{'type':'format','content':c(_0x25c4ba,'*Indent:*\x20%0',c(_0x25c4ba,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4b3ca8['commandName'])return{'type':'format','content':c(_0x25c4ba,'*Outdent:*\x20%0',c(_0x25c4ba,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4b3ca8['commandName'])return _0x4b3ca8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x25c4ba,'*Check\x20item*')}:{'type':'format','content':c(_0x25c4ba,'*Uncheck\x20item*')};}function _0x136aab(_0x3549e3){return{'type':'format','content':c(_0x25c4ba,'*Change\x20to:*\x20%0',_0x3549e3)};}});}}function Le(_0x185305){const _0x3f4edd=_0x185305['getAttribute']('listIndent');if(0x0==_0x3f4edd)return _0x185305;let _0x2aeed7=_0x185305;for(;_0x185305['previousSibling']&&_0x185305['previousSibling']['is']('element','listItem');){const _0x10a1a4=_0x185305['previousSibling']['getAttribute']('listIndent');if(_0x10a1a4==_0x3f4edd)_0x2aeed7=_0x185305['previousSibling'];else{if(_0x10a1a4<_0x3f4edd)break;}_0x185305=_0x185305['previousSibling'];}return _0x2aeed7;}function Ee(_0x3050d4){const _0x2327da=[];if(_0x3050d4['is']('element','listItem')&&_0x3050d4['getAttribute']('listIndent')>0x0){let _0x5f2bfe=_0x3050d4['nextSibling'];for(;_0x5f2bfe&&'listItem'==_0x5f2bfe['name']&&_0x5f2bfe['getAttribute']('listIndent')==_0x3050d4['getAttribute']('listIndent');)_0x2327da['push'](_0x5f2bfe),_0x5f2bfe=_0x5f2bfe['nextSibling'];}return _0x2327da;}class Q extends _0x54e516{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5e09b2=this['editor']['config']['get']('list.properties'),_0x4eb49f=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e09b2['styles']&&_0x4eb49f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5e09b2['reversed']&&_0x4eb49f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5e09b2['startIndex']&&_0x4eb49f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4eb49f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x175a06,_0x56e36c={}){const _0x40f9c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x502e25=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x40f9c1['markMultiRangeBlockFormat'](_0x502e25,{'commandName':'listStyle','commandParams':[{'type':_0x56e36c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x39dc12,_0x5c70f5={}){const _0x405832=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27daa3=this['_getSuggestionBlocks'](_0x28e00e=>_0x28e00e['is']('element','listItem')&&'numbered'===_0x28e00e['getAttribute']('listType'));if(_0x27daa3['length']<0x1)return;const _0x448063=_0x27daa3['map'](_0x3be051=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3be051,'before'),this['editor']['model']['createPositionAt'](_0x3be051,0x0)));this['editor']['model']['change'](()=>{_0x405832['markMultiRangeBlockFormat'](_0x448063,{'commandName':'listReversed','commandParams':[{'reversed':_0x5c70f5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x33151f,_0x154e90={}){const _0x3ee840=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4eec60=this['_getSuggestionBlocks'](_0x42c0c0=>_0x42c0c0['is']('element','listItem')&&'numbered'===_0x42c0c0['getAttribute']('listType'));if(_0x4eec60['length']<0x1)return;const _0x414ccc=_0x4eec60['map'](_0x395f93=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x395f93,'before'),this['editor']['model']['createPositionAt'](_0x395f93,0x0)));this['editor']['model']['change'](()=>{_0x3ee840['markMultiRangeBlockFormat'](_0x414ccc,{'commandName':'listStart','commandParams':[{'startIndex':_0x154e90['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x6827cd){if('formatBlock'!=_0x6827cd['type']&&'formatInline'!=_0x6827cd['type'])return;const _0x4c7202=this['editor']['locale'],{data:_0x2e8d91}=_0x6827cd;if(!_0x2e8d91)return;let _0x364a95,_0x14f1ec;switch(_0x2e8d91['commandName']){case'listStyle':_0x364a95='*Change\x20to:*\x20%0',_0x14f1ec={'type':'format','content':c(_0x4c7202,_0x364a95,c(_0x4c7202,this['_getTranslationKeyForListStyle'](_0x2e8d91['commandParams'][0x0]['type'])))};break;case'listReversed':_0x364a95=_0x2e8d91['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x14f1ec={'type':'format','content':c(_0x4c7202,_0x364a95)};break;case'listStart':_0x364a95='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x14f1ec={'type':'format','content':c(_0x4c7202,_0x364a95,_0x2e8d91['commandParams'][0x0]['startIndex'])};}return _0x14f1ec;}['_getSuggestionBlocksForListStyle'](){const _0xa05aba=this['editor']['plugins']['get']('LegacyListUtils');let _0x392dc8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x392dc8[0x0]?.['is']('element','listItem')&&_0x392dc8['unshift'](..._0xa05aba['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x392dc8[_0x392dc8['length']-0x1]?.['is']('element','listItem')&&_0x392dc8['push'](..._0xa05aba['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x392dc8=[...new Set(_0x392dc8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x392dc8=_0x392dc8['filter'](_0x113a83=>_0x113a83['is']('element','listItem'))),_0x392dc8;}['_getSuggestionBlocks'](_0x383697){const _0xddde37=this['editor']['plugins']['get']('LegacyListUtils');let _0x3f40bd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x383697)['map'](_0x49403b=>{const _0x464718=this['editor']['model']['createPositionAt'](_0x49403b,0x0);return[..._0xddde37['getSiblingNodes'](_0x464718,'backward'),..._0xddde37['getSiblingNodes'](_0x464718,'forward')];})['flat']();return _0x3f40bd=[...new Set(_0x3f40bd)],_0x3f40bd;}['_getTranslationKeyForListStyle'](_0x431ecc){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x431ecc)||'default')['toUpperCase']()+'_LIST_'+_0x431ecc['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x54e516{['afterInit'](){const _0x3432e5=this['editor'];if(!_0x3432e5['plugins']['has']('MediaEmbedEditing'))return;const _0x59621e=_0x3432e5['plugins']['get']('TrackChangesEditing'),_0x1d952e=_0x3432e5['locale'];_0x59621e['enableCommand']('mediaEmbed'),_0x59621e['descriptionFactory']['registerElementLabel']('media',_0x59205c=>c(_0x1d952e,'ELEMENT_MEDIA',_0x59205c)),_0x3432e5['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1ec68b,{writer:_0x575d20,options:_0x5d05c8})=>{if(_0x5d05c8['showSuggestionHighlights'])return _0x575d20['createEmptyElement']('div');},'converterPriority':'high'}),_0x3432e5['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3647cd,_0x2ad2b7,_0x11ef59)=>{_0x11ef59['options']['showSuggestionHighlights']&&_0x3647cd['stop']();},{'priority':'high'});}}class pt extends _0x54e516{['afterInit'](){const _0x5302b9=this['editor'];_0x5302b9['plugins']['has']('MentionEditing')&&_0x5302b9['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x54e516{['afterInit'](){const _0x2acb6a=this['editor'];if(!_0x2acb6a['plugins']['has']('MergeFieldsEditing'))return;const _0x439ef0=_0x2acb6a['plugins']['get']('TrackChangesEditing'),_0x1b6497=_0x2acb6a['locale'];_0x439ef0['enableCommand']('insertMergeField'),_0x439ef0['enableCommand']('insertMergeFieldBlock'),_0x439ef0['enableCommand']('insertMergeFieldImage'),_0x439ef0['descriptionFactory']['registerElementLabel']('mergeField',_0x244b31=>c(_0x1b6497,'ELEMENT_MERGE_FIELD',_0x244b31)),_0x439ef0['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2bbd38=>c(_0x1b6497,'ELEMENT_MERGE_FIELD',_0x2bbd38)),_0x439ef0['descriptionFactory']['registerDescriptionCallback'](_0x1e98fb=>{if('insertion'!=_0x1e98fb['type']&&'deletion'!=_0x1e98fb['type'])return;const _0x4ed6e8=_0x1e98fb['getContainedElement']();if(null==_0x4ed6e8)return;const _0xdff7ee=_0x2acb6a['plugins']['get']('MergeFieldsEditing');let _0x2320c7;switch(_0xdff7ee['getMergeFieldType'](_0x4ed6e8)){case null:return;case'image':{const _0x369fd0=_0xdff7ee['unwrapAffixes'](_0x4ed6e8['getAttribute']('src'));_0x2320c7=_0xdff7ee['getLabel'](_0x369fd0)||_0x369fd0;break;}default:{const _0x48ba6b=_0x4ed6e8['getAttribute']('id');_0x2320c7=_0xdff7ee['getLabel'](_0x48ba6b)||_0x48ba6b;break;}}return'insertion'==_0x1e98fb['type']?{'type':'insertion','content':c(_0x1b6497,'*Insert:*\x20%0','\x22'+_0x2320c7+'\x22\x20'+c(_0x1b6497,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x1b6497,'*Remove:*\x20%0','\x22'+_0x2320c7+'\x22\x20'+c(_0x1b6497,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x54e516{['afterInit'](){const _0x395a80=this['editor'],_0x3e4a6a=_0x395a80['plugins']['get']('TrackChangesEditing');_0x395a80['plugins']['has']('MultiLevelList')&&(_0x3e4a6a['enableDefaultAttributesIntegration']('multiLevelList'),_0x3e4a6a['registerBlockAttribute']('listMarkerStyle'),_0x3e4a6a['descriptionFactory']['registerDescriptionCallback'](_0x29122a=>this['handleDescriptions'](_0x29122a)));}['handleDescriptions'](_0x292118){const _0x46b1af=this['editor']['locale'],{data:_0x21b92c}=_0x292118,_0x1b578f={'type':'format','content':''};if(_0x21b92c&&'listMarkerStyle'==_0x21b92c['key']){if(!_0x21b92c['oldValue'])return{'type':'format','content':c(_0x46b1af,'*Set\x20format:*\x20%0',c(_0x46b1af,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x21b92c['newValue']+')'};if(!_0x21b92c['newValue']){let _0x6beec2=_0x292118['head'];for(;_0x6beec2;){if(_0x6beec2['data']&&'listType'==_0x6beec2['data']['key']&&_0x6beec2['data']['newValue'])return _0x1b578f;_0x6beec2=_0x6beec2['next'];}return{'type':'format','content':c(_0x46b1af,'*Remove\x20format:*\x20%0',c(_0x46b1af,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x21b92c['oldValue']+')'};}}}}class bt extends _0x54e516{['afterInit'](){const _0x3285d9=this['editor'];if(!_0x3285d9['plugins']['has']('PageBreakEditing'))return;_0x3285d9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2205d4=_0x3285d9['plugins']['get']('TrackChangesEditing'),_0x4e5f6b=_0x3285d9['locale'];_0x2205d4['descriptionFactory']['registerElementLabel']('pageBreak',_0x24a536=>c(_0x4e5f6b,'ELEMENT_PAGE_BREAK',_0x24a536));}}class yt extends _0x54e516{['afterInit'](){const _0x2d46fe=this['editor'];if(!_0x2d46fe['plugins']['has']('Paragraph'))return;const _0x164f2b=_0x2d46fe['locale'],_0x6bbb4c=_0x2d46fe['plugins']['get']('TrackChangesEditing');_0x6bbb4c['descriptionFactory']['registerElementLabel']('paragraph',_0x4772ed=>c(_0x164f2b,'ELEMENT_PARAGRAPH',_0x4772ed)),_0x6bbb4c['enableDefaultAttributesIntegration']('paragraph'),_0x6bbb4c['enableCommand']('insertParagraph'),_0x2d46fe['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2d46fe),{'priority':'highest'}),_0x2d46fe['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xdab8cb,_0x163797,_0x579a89)=>{_0x579a89['options']['showSuggestionHighlights']&&nr(_0x2d46fe,{'showActiveMarker':!0x1})(_0xdab8cb,_0x163797,_0x579a89);},{'priority':'highest'});const _0x5d6b35=_0x6bbb4c['descriptionFactory'];_0x5d6b35['registerDescriptionCallback'](_0x506297=>{if('insertion'!==_0x506297['type'])return;const {start:_0x3c6f64,end:_0x33ab9d}=_0x506297['getFirstRange']();if(!_0x3c6f64['isTouching'](_0x33ab9d)||!_0x3c6f64['nodeAfter'])return;const _0x2fb320=_0x2d46fe['model']['schema'],_0x414a5c=_0x3c6f64['nodeAfter'];return _0x2fb320['isBlock'](_0x414a5c)&&!_0x2fb320['isLimit'](_0x414a5c)&&_0x2fb320['checkChild'](_0x414a5c,'$text')?{'type':'insertion','content':c(_0x164f2b,'*Insert:*\x20%0',_0x5d6b35['getItemLabel'](_0x414a5c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x398dd5=this['editor'],_0x1768bd=_0x398dd5['locale'];_0x398dd5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ebbb8=>{if('formatBlock'!=_0x5ebbb8['type'])return;const {data:_0x1c5eff}=_0x5ebbb8;return _0x1c5eff&&'paragraph'==_0x1c5eff['commandName']?{'type':'format','content':c(_0x1768bd,'*Change\x20to:*\x20%0',c(_0x1768bd,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x34082d,{showActiveMarker:_0x74b031=!0x0}={}){return(_0x52537,_0x1b7b80,_0x23c0c8)=>{const _0x272420=_0x34082d['plugins']['get']('TrackChangesEditing'),_0x354e2a=_0x1b7b80['markerRange']['start'],_0x767106=_0x1b7b80['markerRange']['end'],_0x23648c=_0x34082d['model']['schema'];if(!_0x354e2a['isTouching'](_0x767106)||!_0x354e2a['nodeAfter'])return;const _0x470616=_0x354e2a['nodeAfter'];if(_0x23648c['isBlock'](_0x470616)&&!_0x23648c['isLimit'](_0x470616)&&_0x23648c['checkChild'](_0x470616,'$text')){if(!_0x23c0c8['consumable']['consume'](_0x1b7b80['markerRange'],_0x52537['name']))return;const {authorId:_0x3f89fd}=_0x272420['_splitMarkerName'](_0x1b7b80['markerName']),_0x50c60c=_0x23c0c8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3f89fd}),_0x350cea=_0x23c0c8['mapper']['toViewPosition'](_0x767106);_0x74b031&&_0x272420['activeMarkers']['includes'](_0x1b7b80['markerName'])&&_0x23c0c8['writer']['addClass']('ck-suggestion-marker--active',_0x50c60c),_0x23c0c8['writer']['insert'](_0x350cea,_0x50c60c),_0x23c0c8['mapper']['bindElementToMarker'](_0x50c60c,_0x1b7b80['markerName']);}};}class jt extends _0x54e516{['afterInit'](){const _0x460827=this['editor'];_0x460827['commands']['get']('replaceSource')&&_0x460827['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x54e516{['afterInit'](){const _0x2165d7=this['editor'];if(!_0x2165d7['plugins']['has']('RemoveFormatEditing'))return;_0x2165d7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3027bd=this['editor'];_0x3027bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47ce44=>{if('formatBlock'!=_0x47ce44['type']&&'formatInline'!=_0x47ce44['type'])return;const {data:_0x39d965}=_0x47ce44;return _0x39d965&&'removeFormat'==_0x39d965['commandName']?{'type':'format','content':c(_0x3027bd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x54e516{['afterInit'](){const _0x295b5c=this['editor'];if(!_0x295b5c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x64d6c6=_0x295b5c['plugins']['get']('TrackChangesEditing');_0x64d6c6['enableCommand']('goToPreviousRestrictedEditingException'),_0x64d6c6['enableCommand']('goToNextRestrictedEditingException');const _0x290e76=_0x295b5c['plugins']['get']('RestrictedEditingModeEditing');_0x290e76['enableCommand']('trackChanges'),_0x290e76['enableCommand']('acceptSuggestion'),_0x290e76['enableCommand']('discardSuggestion'),_0x290e76['enableCommand']('acceptAllSuggestions'),_0x290e76['enableCommand']('discardAllSuggestions'),_0x290e76['enableCommand']('acceptSelectedSuggestions'),_0x290e76['enableCommand']('discardSelectedSuggestions');}}class It extends _0x54e516{static get['requires'](){return[_0x234e13];}['init'](){const _0x470e33=this['editor'],_0x590c7c=_0x470e33['plugins']['get']('TrackChangesEditing');_0x590c7c['enableCommand']('shiftEnter'),_0x470e33['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x470e33),{'priority':'high'}),_0x470e33['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x470e33),{'priority':'high'}),_0x470e33['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe1a9c8,_0x4f1582,_0x1711d5)=>{_0x1711d5['options']['showSuggestionHighlights']&&je(_0x470e33,{'showActiveMarker':!0x1})(_0xe1a9c8,_0x4f1582,_0x1711d5);}),_0x590c7c['descriptionFactory']['registerElementLabel']('softBreak',_0x401d11=>c(_0x470e33['locale'],'ELEMENT_LINE_BREAK',_0x401d11));}}function je(_0x30a66e,{showActiveMarker:_0x197c2c=!0x0}={}){return(_0x2fa739,_0xd454d5,_0xb88249)=>{const _0x64fb9=_0x30a66e['plugins']['get']('TrackChangesEditing');if(!_0xb88249['consumable']['test'](_0xd454d5['markerRange'],_0x2fa739['name']))return;const _0x180f69=_0x30a66e['model'];for(const _0xb717de of _0xd454d5['markerRange']['getItems']()){if(!_0xb717de['is']('element','softBreak'))continue;const _0x1ee932='deletion'==_0xd454d5['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x381a1f}=_0x64fb9['_splitMarkerName'](_0xd454d5['markerName']),_0x29cce5=_0xb88249['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1ee932,'data-author-id':_0x381a1f}),_0x48855d=_0xb88249['mapper']['toViewPosition'](_0x180f69['createPositionBefore'](_0xb717de));_0x197c2c&&_0x64fb9['activeMarkers']['includes'](_0xd454d5['markerName'])&&_0xb88249['writer']['addClass']('ck-suggestion-marker--active',_0x29cce5),_0xb88249['writer']['insert'](_0x48855d,_0x29cce5),_0xb88249['mapper']['bindElementToMarker'](_0x29cce5,_0xd454d5['markerName']);}};}class _t extends _0x54e516{['afterInit'](){const _0xd3420a=this['editor'],_0x136536=_0xd3420a['model'],_0x58932a=_0xd3420a['locale'];if(!_0xd3420a['plugins']['has']('StandardEditingModeEditing'))return;const _0x2251d5=_0xd3420a['plugins']['get']('TrackChangesEditing'),_0x57c475='restrictedEditingException',_0x6e1c93=_0xd3420a['commands']['get'](_0x57c475);_0x2251d5['enableCommand'](_0x57c475,(_0x1b6e96,_0x4ce493={})=>{const _0x2b4c96=_0x136536['document']['selection'];if(_0x2b4c96['isCollapsed'])return void _0x1b6e96(_0x4ce493);const _0x5028a8=void 0x0!==_0x4ce493['forceValue']?_0x4ce493['forceValue']:!_0x6e1c93['value'];_0x136536['change'](()=>{const _0x1ea533=Array['from'](_0x2b4c96['getRanges']());for(const _0x1ef7d9 of _0x1ea533){const _0x585777=_0x5028a8?[_0x1ef7d9]:io(_0x57c475,_0x1ef7d9,_0x136536);for(const _0x1aaa87 of _0x585777)_0x2251d5['markInlineFormat'](_0x1aaa87,{'commandName':_0x57c475,'commandParams':[{'forceValue':_0x5028a8}]});}});}),_0x2251d5['descriptionFactory']['registerDescriptionCallback'](_0x4c3b46=>{if('formatBlock'!=_0x4c3b46['type']&&'formatInline'!=_0x4c3b46['type'])return;const {data:_0x5dfcbe}=_0x4c3b46;return _0x5dfcbe&&_0x5dfcbe['commandName']==_0x57c475?_0x5dfcbe['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x58932a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x58932a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x54e516{['afterInit'](){const _0x275a70=this['editor'];if(!_0x275a70['plugins']['has']('Style')||!_0x275a70['plugins']['has']('DataSchema'))return;const _0x14f997=_0x275a70['plugins']['get']('TrackChangesEditing'),_0x4a1bdc=_0x275a70['locale'],_0x41ccdd=_0x275a70['config']['get']('style')||{},_0x3e03b8=_0x275a70['plugins']['get']('GeneralHtmlSupport'),_0xdbff85=_0x275a70['plugins']['get']('StyleUtils')['normalizeConfig'](_0x275a70['plugins']['get']('DataSchema'),_0x41ccdd['definitions']);_0x14f997['enableDefaultAttributesIntegration']('style');const _0x4e50ed=new Set();for(const _0x4ab677 of _0xdbff85['block']){const _0x178a56=_0x3e03b8['getGhsAttributeNameForElement'](_0x4ab677['element']);_0x4e50ed['add'](_0x178a56);}const _0x7b19e8=new Set();for(const _0x42a256 of _0xdbff85['inline']){const _0x15a200=_0x3e03b8['getGhsAttributeNameForElement'](_0x42a256['element']);_0x7b19e8['add'](_0x15a200);for(const _0x21850c of _0x42a256['ghsAttributes'])_0x7b19e8['add'](_0x21850c);}for(const _0x418751 of _0x4e50ed)_0x14f997['registerBlockAttribute'](_0x418751),_0x14f997['descriptionFactory']['registerAttributeLabel'](_0x418751,c(_0x4a1bdc,'FORMAT_STYLE'));for(const _0x574826 of _0x7b19e8)_0x14f997['registerInlineAttribute'](_0x574826),_0x14f997['descriptionFactory']['registerAttributeLabel'](_0x574826,c(_0x4a1bdc,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46c24b=this['editor'],_0x507c62=_0x46c24b['locale'];_0x46c24b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bd029=>{if('formatBlock'!=_0x1bd029['type']&&'formatInline'!=_0x1bd029['type'])return;const {data:_0xc1b25f}=_0x1bd029;return _0xc1b25f&&'style'===_0xc1b25f['commandName']?_0xc1b25f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x507c62,'*Set\x20format:*\x20%0',_0xc1b25f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x507c62,'*Remove\x20format:*\x20%0',_0xc1b25f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x54e516{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4522f4){super(_0x4522f4),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3dce3d=this['editor'],_0xad29da=_0x3dce3d['model']['document']['selection'];if(!_0x3dce3d['plugins']['has']('TableEditing'))return;const _0x1bad00=_0x3dce3d['locale'],_0x28abe2=_0x3dce3d['plugins']['get']('TrackChangesEditing'),_0x43c3df=_0x3dce3d['plugins']['get']('TableUtils');_0x28abe2['descriptionFactory']['registerElementLabel']('table',_0x46bbf8=>c(_0x1bad00,'ELEMENT_TABLE',_0x46bbf8)),this['_setupColumnsRowsFixing'](),_0x28abe2['enableCommand']('insertTable'),_0x28abe2['enableCommand']('selectTableRow'),_0x28abe2['enableCommand']('selectTableColumn');for(const _0x468bc4 of['insertTableRowAbove','insertTableRowBelow']){const _0x45d9e4=_0x3dce3d['commands']['get'](_0x468bc4);_0x28abe2['enableCommand'](_0x468bc4,_0x466a40=>{_0x3dce3d['model']['change'](_0x4ee05e=>{_0x466a40();const _0x6f4ffa='above'===_0x45d9e4['order'],_0x57ab84=_0x43c3df['getSelectionAffectedTableCells'](_0xad29da),_0x4b25be=_0x43c3df['getRowIndexes'](_0x57ab84),_0x370e=_0x6f4ffa?_0x4b25be['first']-0x1:_0x4b25be['last']+0x1,_0x4154e0=_0x57ab84[0x0]['findAncestor']('table'),_0x2b4e9d=_0x43c3df['createTableWalker'](_0x4154e0,{'startRow':_0x370e,'endRow':_0x370e}),_0xd1d777=Array['from'](_0x2b4e9d)['map'](_0x52dd98=>_0x4ee05e['createRangeOn'](_0x52dd98['cell']));_0x28abe2['markMultiRangeInsertion'](_0xd1d777,'tableRow');});});}for(const _0x56fb0c of['insertTableColumnLeft','insertTableColumnRight']){const _0x4d17e0=_0x3dce3d['commands']['get'](_0x56fb0c);_0x28abe2['enableCommand'](_0x56fb0c,_0x109f3e=>{_0x3dce3d['model']['change'](_0x3ccff8=>{_0x109f3e();const _0xcc0f5f='left'===_0x4d17e0['order'],_0xbc7ed0=_0x43c3df['getSelectionAffectedTableCells'](_0xad29da),_0x2e88d9=_0x43c3df['getColumnIndexes'](_0xbc7ed0),_0x3dc501=_0xcc0f5f?_0x2e88d9['first']-0x1:_0x2e88d9['last']+0x1,_0x4bd094=_0xbc7ed0[0x0]['findAncestor']('table'),_0x35264a=_0x43c3df['createTableWalker'](_0x4bd094,{'startRow':0x0,'column':_0x3dc501,'includeAllSlots':!0x1}),_0x43552d=Array['from'](_0x35264a)['map'](_0xc9554a=>_0x3ccff8['createRangeOn'](_0xc9554a['cell']));_0x28abe2['markMultiRangeInsertion'](_0x43552d,'tableColumn');});});}for(const _0x269604 of['removeTableRow','removeTableColumn']){const _0x3b169c=_0x269604['substr'](0xb),_0x5f1610=_0x3b169c['toLowerCase'](),_0x1d66bc=_0x5f1610['substr'](0x0,0x3)+'span',_0x1a95d3='table'+_0x3b169c,_0x21cc06='min'+_0x3b169c,_0x16d055='max'+_0x3b169c;_0x28abe2['enableCommand'](_0x269604,()=>{_0x3dce3d['model']['change'](_0x4e8ed7=>{const _0x6e002b=_0x43c3df['getSelectionAffectedTableCells'](_0xad29da),_0x4b1a4c=_0x6e002b[0x0]['findAncestor']('table');let _0x13ba22;if('removeTableRow'==_0x269604){const _0x613953=_0x43c3df['getRowIndexes'](_0x6e002b);_0x13ba22={'startRow':_0x613953['first'],'endRow':_0x613953['last'],'includeAllSlots':!0x0};}else{const _0x356d6b=_0x43c3df['getColumnIndexes'](_0x6e002b);_0x13ba22={'startColumn':_0x356d6b['first'],'endColumn':_0x356d6b['last'],'includeAllSlots':!0x0};}const _0x51c12c=_0x43c3df['createTableWalker'](_0x4b1a4c,_0x13ba22),_0x584cd8=Array['from'](_0x51c12c)['map'](({cell:_0x268e3a})=>_0x268e3a),_0x468a61=Ne(_0x584cd8['filter'](_0x2a116c=>_0x2a116c['hasAttribute'](_0x1d66bc))),_0xe3ee6e=Ne(_0x584cd8['filter'](_0x2ebb37=>!_0x2ebb37['hasAttribute'](_0x1d66bc)))['map'](_0x2f17a9=>_0x4e8ed7['createRangeOn'](_0x2f17a9)),_0x2d82da=_0x28abe2['markMultiRangeDeletion'](_0xe3ee6e,_0x1a95d3);if(_0x2d82da&&('tableRow'==_0x2d82da['subType']||'tableColumn'==_0x2d82da['subType'])){const _0x1c8467=this['_getSuggestionCoords'](_0x2d82da);for(const _0x20ad8a of _0x468a61){const _0x442cf4=_0x4e8ed7['createRangeOn'](_0x20ad8a),_0x44170c=_0x43c3df['getCellLocation'](_0x20ad8a),_0x76d9d0=_0x20ad8a['getAttribute'](_0x1d66bc)-0x1,_0x16116c=_0x1c8467[_0x21cc06],_0x1e8c00=_0x1c8467[_0x16d055];_0x16116c<=_0x44170c[_0x5f1610]&&_0x44170c[_0x5f1610]+_0x76d9d0<=_0x1e8c00&&_0x2d82da['addRange'](_0x442cf4);}}});});}function _0x42db65(_0x33fcf){const _0x5662c1=Array['from'](_0xad29da['getRanges']())['map'](_0x4228c0=>_0x6b53b6['fromRange'](_0x4228c0));_0x3dce3d['model']['change'](_0x58a7ea=>{const _0x4c0dcb=_0x58a7ea['batch'];_0x33fcf=_0x33fcf['filter'](_0xf04095=>'$graveyard'!=_0xf04095['root']['rootName']),_0x58a7ea['setSelection'](_0x33fcf),_0x3dce3d['commands']['get']('removeTableRow')['refresh'](),_0x3dce3d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3dce3d['model']['enqueueChange'](()=>{_0x3dce3d['model']['enqueueChange'](_0x4c0dcb,_0x56cfe7=>{const _0x1a58ae=_0x5662c1['filter'](_0x33af8f=>'$graveyard'!=_0x33af8f['root']['rootName']);_0x1a58ae['length']>0x0&&_0x56cfe7['setSelection'](_0x1a58ae);for(const _0x5c4569 of _0x5662c1)_0x5c4569['detach']();});});});}function _0x445929(_0xbee443){_0x3dce3d['model']['change'](_0x38060b=>{const _0x3f3855=Array['from'](_0xad29da['getRanges']())['map'](_0x26706f=>_0x6b53b6['fromRange'](_0x26706f)),_0x5deced=[];for(const _0x486667 of _0xbee443)for(const _0x531095 of _0x486667['getItems']({'shallow':!0x0}))_0x5deced['push'](_0x531095);for(const _0x220bbd of _0x5deced)'$graveyard'!=_0x220bbd['root']['rootName']&&(_0x38060b['setSelection'](_0x38060b['createPositionAt'](_0x220bbd,0x0)),_0x3dce3d['commands']['get']('removeTableColumn')['refresh'](),_0x3dce3d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x15f97a=_0x3f3855['filter'](_0x289df5=>'$graveyard'!=_0x289df5['root']['rootName']);_0x15f97a['length']>0x0&&_0x38060b['setSelection'](_0x15f97a);for(const _0xa6f4fc of _0x3f3855)_0xa6f4fc['detach']();});}function _0x345d84(_0xdc1fbd,_0x5e0716){return _0x5e0716['every'](_0x5ec983=>_0xdc1fbd['some'](_0x8ea47c=>_0x8ea47c['end']['isEqual'](_0x5ec983['start'])||_0x5ec983['end']['isEqual'](_0x8ea47c['start'])));}function _0x5cc46c(_0x14846b,_0x2cd9ba){return!_0x14846b['some'](_0xf47474=>_0x2cd9ba['some'](_0x31af85=>_0xf47474['isIntersecting'](_0x31af85)))&&_0x14846b['some'](_0x5df7f7=>_0x2cd9ba['some'](_0x126dac=>_0x5df7f7['end']['isTouching'](_0x126dac['start'])));}_0x3dce3d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x279365,_0x334999,_0x3d71e9)=>{if(!_0x3d71e9['options']['showSuggestionHighlights'])return;const _0x33e9cc=_0x334999['item'];if(!_0x33e9cc)return;const _0x52f529=_0x3d71e9['mapper']['toViewElement'](_0x33e9cc);function _0xe60cac(_0x5eef72){return Array['isArray'](_0x5eef72)?_0x5eef72:[_0x5eef72];}_0x52f529&&'tableCell'===_0x33e9cc['name']&&_0x63d294(_0x52f529,_0x3d71e9['writer'],(_0x3197b3,_0x144e8d,_0x2bf1d3)=>_0x2bf1d3['addClass'](_0xe60cac(_0x144e8d['classes']),_0x3197b3),(_0x21a52d,_0x17d09e,_0x30afdb)=>_0x30afdb['removeClass'](_0xe60cac(_0x17d09e['classes']),_0x21a52d));},{'priority':'highest'}),_0x28abe2['descriptionFactory']['registerDescriptionCallback'](_0x4df445=>{if('insertion'!=_0x4df445['type']&&'deletion'!=_0x4df445['type'])return;const _0x377ac2=_0x4df445['getContainedElement']();if(null!=_0x377ac2&&_0x377ac2['is']('element','table')){if('insertion'==_0x4df445['type']){const _0x561206=_0x4df445['getItems']()['filter'](_0x10c621=>_0x10c621['is']('$textProxy'))['map'](_0x3901dc=>_0x3901dc['data']);if(_0x561206['length'])return{'type':'insertion','content':c(_0x1bad00,'*Insert:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x561206['join']('\x20')+'\x22'))};}if('deletion'==_0x4df445['type']){const _0x21ad63=_0x4df445['getItems']()['filter'](_0x22b1ff=>_0x22b1ff['is']('$textProxy'))['map'](_0x58ce8c=>_0x58ce8c['data']);if(_0x21ad63['length'])return{'type':'deletion','content':c(_0x1bad00,'*Remove:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x21ad63['join']('\x20')+'\x22'))};}}}),_0x28abe2['descriptionFactory']['registerDescriptionCallback'](_0x2a0abc=>{if('tableRow'==_0x2a0abc['subType']){const _0xaa9b78=_0x2a0abc['getItems']()['filter'](_0x115684=>_0x115684['is']('$textProxy'))['map'](_0x535aa3=>_0x535aa3['data']),_0xa5dee=this['_getSuggestionCoords'](_0x2a0abc),_0x1ed3cd=_0xa5dee['maxRow']-_0xa5dee['minRow']+0x1;if('insertion'==_0x2a0abc['type'])return _0xaa9b78['length']?{'type':'insertion','content':c(_0x1bad00,'*Insert:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1ed3cd,'\x22'+_0xaa9b78['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1bad00,'*Insert:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_ROW',_0x1ed3cd))};if('deletion'==_0x2a0abc['type'])return _0xaa9b78['length']?{'type':'deletion','content':c(_0x1bad00,'*Remove:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1ed3cd,'\x22'+_0xaa9b78['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1bad00,'*Remove:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_ROW',_0x1ed3cd))};}if('tableColumn'==_0x2a0abc['subType']){const _0x11cbe1=_0x2a0abc['getItems']()['filter'](_0x216425=>_0x216425['is']('$textProxy'))['map'](_0x2e9fba=>_0x2e9fba['data']),_0x55c22a=this['_getSuggestionCoords'](_0x2a0abc),_0x35c5ba=_0x55c22a['maxColumn']-_0x55c22a['minColumn']+0x1;if('insertion'==_0x2a0abc['type'])return _0x11cbe1['length']?{'type':'insertion','content':c(_0x1bad00,'*Insert:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x35c5ba,'\x22'+_0x11cbe1['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1bad00,'*Insert:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_COLUMN',_0x35c5ba))};if('deletion'==_0x2a0abc['type'])return _0x11cbe1['length']?{'type':'deletion','content':c(_0x1bad00,'*Remove:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x35c5ba,'\x22'+_0x11cbe1['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1bad00,'*Remove:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_COLUMN',_0x35c5ba))};}}),_0x28abe2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x42db65),_0x28abe2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x42db65),_0x28abe2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x445929),_0x28abe2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x445929),_0x28abe2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x345d84),_0x28abe2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x345d84),_0x28abe2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5cc46c),_0x28abe2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5cc46c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x33671b=this['editor'],_0x68625d=_0x33671b['model']['document']['selection'];return(_0x238dfd,_0x1d2b9a)=>{_0x33671b['model']['change'](_0xf235fb=>{const {commandName:_0x50a967,commandParams:_0x5d5445}=_0x1d2b9a;let _0x7ae8bd=_0x238dfd[0x0]['end']['nodeBefore'];_0x5d5445&&_0x5d5445[0x0]&&!0x1===_0x5d5445[0x0]['forceValue']&&(_0x7ae8bd=_0x238dfd[0x0]['start']['nodeAfter']);const _0x5b9fac=_0xf235fb['createRangeIn'](_0x7ae8bd);if('$graveyard'==_0x5b9fac['root']['rootName'])return;const _0x260b5=Array['from'](_0x68625d['getRanges']())['map'](_0x5d12ee=>_0x6b53b6['fromRange'](_0x5d12ee));_0xf235fb['setSelection'](_0x5b9fac),_0x33671b['commands']['get'](_0x50a967)['refresh'](),_0x5d5445['push']({'forceDefaultExecution':!0x0}),_0x33671b['execute'](_0x50a967,..._0x5d5445);const _0x54fc91=_0x260b5['filter'](_0x6b3759=>'$graveyard'!=_0x6b3759['root']['rootName']);_0x54fc91['length']>0x0&&_0xf235fb['setSelection'](_0x54fc91);for(const _0x29c578 of _0x260b5)_0x29c578['detach']();});};}['_getCoordsForCells'](_0x9ecf06){const _0x395b28=this['editor']['plugins']['get']('TableUtils');let _0x236a77=Number['MAX_SAFE_INTEGER'],_0x5355f4=Number['MIN_SAFE_INTEGER'],_0x11f2bb=Number['MAX_SAFE_INTEGER'],_0x201cc8=Number['MIN_SAFE_INTEGER'];for(const _0x4272cd of _0x9ecf06){if('$graveyard'==_0x4272cd['root']['rootName'])continue;const {row:_0x331d03,column:_0x1cc977}=_0x395b28['getCellLocation'](_0x4272cd),_0x4b7c3e=_0x4272cd['hasAttribute']('rowspan')?_0x4272cd['getAttribute']('rowspan')-0x1:0x0,_0x5059dc=_0x4272cd['hasAttribute']('colspan')?_0x4272cd['getAttribute']('colspan')-0x1:0x0;_0x236a77=_0x331d03<_0x236a77?_0x331d03:_0x236a77,_0x5355f4=_0x331d03+_0x4b7c3e>_0x5355f4?_0x331d03+_0x4b7c3e:_0x5355f4,_0x11f2bb=_0x1cc977<_0x11f2bb?_0x1cc977:_0x11f2bb,_0x201cc8=_0x1cc977+_0x5059dc>_0x201cc8?_0x1cc977+_0x5059dc:_0x201cc8;}return{'minRow':_0x236a77,'maxRow':_0x5355f4,'minColumn':_0x11f2bb,'maxColumn':_0x201cc8};}['_setupColumnsRowsFixing'](){const _0x473546=this['editor'],_0x1ea255=_0x473546['plugins']['get']('TrackChangesEditing'),_0x2ab439=_0x473546['plugins']['get']('TableUtils');_0x473546['model']['document']['on']('change:data',()=>{const _0x10453b=Array['from'](_0x473546['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x279521,data:_0x4c8ace}of _0x10453b){const {group:_0x307b30,id:_0x3a7ce3,subType:_0x3efc31}=_0x1ea255['_splitMarkerName'](_0x279521);if('suggestion'!=_0x307b30)continue;if(null!=_0x4c8ace['oldRange'])continue;const _0x328204=_0x1ea255['getSuggestion'](_0x3a7ce3);this['_tablePostFixingSubtypes']['includes'](_0x3efc31)&&this['_tableSuggestions']['add'](_0x328204);}},{'priority':'low'});const _0x2c3700=(_0x1ca25e,_0x38929d)=>{let _0x29d262=!0x1;const _0x3930a1=_0x38929d['createRangeOn'](_0x1ca25e),_0x179467=_0x1ca25e['findAncestor']('table'),_0x1abe0f=_0x2ab439['getCellLocation'](_0x1ca25e);for(const _0x5944eb of this['_tableSuggestions']){const _0x468dba=_0x5944eb['subType'],_0xa7a532=_0x468dba['startsWith']('tablePaste'),_0x212657=_0x468dba['substr'](_0xa7a532?0xa:0x5),_0x57fea7=_0x212657['toLowerCase'](),_0x19e70a=_0x57fea7['substr'](0x0,0x3)+'span',_0x277d84='min'+_0x212657,_0x2f0ade='max'+_0x212657;if(!_0x5944eb['isInContent'])continue;if(_0x179467!=_0x5944eb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5944eb['isIntersectingWithRange'](_0x3930a1))continue;const _0xc866aa=_0x1ca25e['hasAttribute'](_0x19e70a)?_0x1ca25e['getAttribute'](_0x19e70a)-0x1:0x0,_0x4202b6=this['_getSuggestionCoords'](_0x5944eb),_0x3ce6ac=_0x4202b6[_0x277d84],_0x446cf9=_0x4202b6[_0x2f0ade];_0x3ce6ac<=_0x1abe0f[_0x57fea7]&&_0x1abe0f[_0x57fea7]+_0xc866aa<=_0x446cf9&&(_0x5944eb['addRange'](_0x3930a1),_0x29d262=!0x0);}return _0x29d262;};_0x473546['model']['document']['registerPostFixer'](_0x558f6e=>{let _0x3243d8=!0x1;for(const _0xd3e8a3 of _0x473546['model']['document']['differ']['getChanges']())if('insert'==_0xd3e8a3['type']){if('tableRow'==_0xd3e8a3['name']){for(const _0x54c9a6 of _0xd3e8a3['position']['nodeAfter']['getChildren']())_0x3243d8=_0x3243d8||_0x2c3700(_0x54c9a6,_0x558f6e);}else'tableCell'==_0xd3e8a3['name']&&(_0x3243d8=_0x3243d8||_0x2c3700(_0xd3e8a3['position']['nodeAfter'],_0x558f6e));}return _0x3243d8;});}['_getSuggestionCoords'](_0x55a51e){return this['_getCoordsForCells'](_0x55a51e['getRanges']()['map'](_0x5ee454=>_0x5ee454['start']['nodeAfter']));}}function Ne(_0x4994a3){return Array['from'](new Set(_0x4994a3)['values']());}class Nt extends _0x54e516{static get['requires'](){return[Ct];}['afterInit'](){const _0x16f874=this['editor'],_0x1cfe17=_0x16f874['model']['document']['selection'],_0x189cec=_0x16f874['locale'];if(!_0x16f874['plugins']['has']('TableEditing'))return;const _0x2cdd17=_0x16f874['plugins']['get']('TrackChangesEditing'),_0x4a81c7=_0x16f874['plugins']['get']('TableUtils'),_0xfb8382=_0x16f874['plugins']['get'](Ct);_0xfb8382['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2cdd17['enableCommand']('mergeTableCells',()=>{const _0x339f00=_0x4a81c7['getSelectionAffectedTableCells'](_0x16f874['model']['document']['selection']);_0x16f874['model']['change'](()=>{_0x2cdd17['markMultiRangeBlockFormat'](_0x339f00,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x16f874['commands']['get']('mergeTableCells')['on']('execute',(_0x420ff3,_0x564416)=>{_0x16f874['commands']['get']('trackChanges')['value']&&(_0x564416['length']>0x0&&_0x564416[_0x564416['length']-0x1]&&_0x564416[_0x564416['length']-0x1]['forceDefaultExecution']||_0x2cdd17['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x420ff3['stop']());},{'priority':'highest'});for(const _0x18be57 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x31a9a9=_0x16f874['commands']['get'](_0x18be57);_0x2cdd17['enableCommand'](_0x18be57,()=>{const _0x4ce0da=_0x16f874['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x39e6ac=>_0x39e6ac['is']('element','tableCell')),_0x43fa91=_0x31a9a9['value'];_0x16f874['model']['change'](()=>{_0x2cdd17['markMultiRangeBlockFormat']([_0x4ce0da,_0x43fa91],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x15f509 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3caca8=_0x16f874['commands']['get'](_0x15f509);_0x2cdd17['enableCommand'](_0x15f509,()=>{const _0x301596=_0x4a81c7['getSelectionAffectedTableCells'](_0x16f874['model']['document']['selection'])[0x0],_0x2d3091=_0x301596['findAncestor']('table'),{column:_0x26dd1c,row:_0x4cf5cc}=_0x4a81c7['getCellLocation'](_0x301596);let _0x4a9622=[];if('horizontally'==_0x3caca8['direction']){const _0x50c070=_0x4a81c7['createTableWalker'](_0x2d3091,{'startRow':_0x4cf5cc,'endRow':_0x4cf5cc,'includeAllSlots':!0x0});_0x4a9622=Array['from'](_0x50c070)['map'](_0x5d32da=>_0x5d32da['cell']);}else{const _0x354c5c=_0x4a81c7['createTableWalker'](_0x2d3091,{'column':_0x26dd1c,'includeAllSlots':!0x0});_0x4a9622=Array['from'](_0x354c5c)['map'](_0x42c882=>_0x42c882['cell']);}_0x16f874['model']['change'](_0x14452b=>{_0x2cdd17['markBlockFormat'](_0x14452b['createRangeOn'](_0x301596),{'commandName':_0x15f509,'commandParams':[]},_0x4a9622,_0x15f509);});});}_0x2cdd17['descriptionFactory']['registerDescriptionCallback'](_0x29adb6=>{if('formatBlock'!=_0x29adb6['type']&&'formatInline'!=_0x29adb6['type'])return;const {data:_0x189612}=_0x29adb6;return _0x189612&&'mergeTableCells'==_0x189612['commandName']?{'type':'format','content':c(_0x189cec,'*Merge\x20cells*')}:void 0x0;}),_0x2cdd17['descriptionFactory']['registerDescriptionCallback'](_0x75c29e=>{if('formatBlock'!=_0x75c29e['type']&&'formatInline'!=_0x75c29e['type'])return;const {data:_0x49d675}=_0x75c29e;return _0x49d675?'splitTableCellVertically'==_0x49d675['commandName']?{'type':'format','content':c(_0x189cec,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x49d675['commandName']?{'type':'format','content':c(_0x189cec,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x40d4fb=_0xfb8382['_acceptFormatSuggestionCallbackFactory']();for(const _0xcc93db of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2cdd17['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xcc93db,'accept',_0x40d4fb);for(const _0x320b14 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2cdd17['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x320b14,'accept',_0x40d4fb);_0x2cdd17['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x446311=>{_0x16f874['model']['change'](_0x465ce3=>{const _0x4ff0f9=Array['from'](_0x1cfe17['getRanges']())['map'](_0x159b8a=>_0x6b53b6['fromRange'](_0x159b8a));_0x465ce3['setSelection'](_0x446311),_0x16f874['commands']['get']('mergeTableCells')['refresh'](),_0x16f874['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x138eb1=_0x4ff0f9['filter'](_0x3d142b=>'$graveyard'!=_0x3d142b['root']['rootName']);_0x138eb1['length']>0x0&&_0x465ce3['setSelection'](_0x138eb1);for(const _0x164206 of _0x4ff0f9)_0x164206['detach']();});});for(const _0x508bad of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x18249e=_0x16f874['commands']['get'](_0x508bad);_0x18249e['on']('set:isEnabled',(_0x569ebe,_0x1587a3,_0x303f0b)=>{if(_0x303f0b){const _0x444d01=_0x16f874['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d77cb=>_0x2d77cb['is']('element','tableCell'));this['_areMergableCells'](_0x18249e['value'],_0x444d01)||(_0x569ebe['return']=!0x1,_0x569ebe['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x15d2a8=this['editor']['commands']['get']('mergeTableCells'),_0xe898c4=this['editor']['plugins']['get']('TableUtils');if(!_0x15d2a8['isEnabled'])return!0x1;const _0x98e43a=_0xe898c4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x161a4b of _0x98e43a)for(const _0x557d56 of _0x98e43a)if(_0x161a4b!=_0x557d56&&!this['_areMergableCells'](_0x161a4b,_0x557d56))return!0x1;return!0x0;}['_areMergableCells'](_0x573c36,_0x2a9d78){const _0x344515=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e422f=this['editor']['model']['createRangeOn'](_0x573c36),_0x21ec30=this['editor']['model']['createRangeOn'](_0x2a9d78),_0x48fcce=new Set(),_0x6f1efb=new Set();for(const _0x259e81 of _0x344515['getSuggestions']())if(('insertion'==_0x259e81['type']||'deletion'==_0x259e81['type']||'mergeTableCells'==_0x259e81['subType'])&&_0x259e81['isInContent']){for(const _0x532854 of _0x259e81['getRanges']())_0x532854['containsRange'](_0x1e422f,!0x0)&&_0x48fcce['add'](_0x259e81['type']+':'+_0x259e81['author']['id']),_0x532854['containsRange'](_0x21ec30,!0x0)&&_0x6f1efb['add'](_0x259e81['type']+':'+_0x259e81['author']['id']);}if(_0x48fcce['size']!=_0x6f1efb['size'])return!0x1;for(const _0x19489b of _0x48fcce)if(!_0x6f1efb['has'](_0x19489b))return!0x1;return!0x0;}}class Dt extends _0x54e516{static get['requires'](){return[Ct];}['afterInit'](){const _0x1d7eb9=this['editor'];if(!_0x1d7eb9['plugins']['has']('TableEditing'))return;const _0x258e30=_0x1d7eb9['locale'],_0x103a0d=_0x1d7eb9['plugins']['get']('TrackChangesEditing');_0x103a0d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x103a0d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x103a0d['registerBlockAttribute']('headingRows'),_0x103a0d['registerBlockAttribute']('headingColumns'),_0x103a0d['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x258e30,'FORMAT_HEADER_ROW')),_0x103a0d['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x258e30,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x23c6ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4dfa16=this['editor']['plugins']['get']('TableUtils'),_0x2744a5=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x46d97a({showActiveMarker:_0x2055c3=!0x0,setDataAttribute:_0x42b2e5=!0x0}={}){return(_0x12dd40,_0x32456f,_0x5e20a4)=>{const {type:_0x1a5bff,id:_0x8300cb}=_0x23c6ca['_splitMarkerName'](_0x32456f['markerName']),_0xbc0a55=_0x23c6ca['getSuggestion'](_0x8300cb),_0x2e9699=_0xbc0a55['data'];if('formatBlock'!=_0xbc0a55['type']||!_0x2e9699||'setTableColumnHeader'!=_0x2e9699['commandName'])return;if(_0x32456f['item'])return void _0x12dd40['stop']();if(!_0x5e20a4['consumable']['consume'](_0x32456f['markerRange'],_0x12dd40['name']))return;const _0x51bc1a=_0x32456f['markerRange']['start']['nodeAfter'],_0x19875b=_0x32456f['markerRange']['end']['nodeBefore'],_0x3b242d=_0x51bc1a['parent']['parent'],{column:_0x134a9f}=_0x4dfa16['getCellLocation'](_0x51bc1a),{column:_0x1b090a}=_0x4dfa16['getCellLocation'](_0x19875b);for(let _0x2749f6=_0x134a9f;_0x2749f6<=_0x1b090a;_0x2749f6++){const _0x1bb56e=_0x4dfa16['createTableWalker'](_0x3b242d,{'column':_0x2749f6,'includeAllSlots':!0x1});for(const _0xff811d of _0x1bb56e){const _0x55d971=_0xff811d['cell'],_0x4786d2=_0x5e20a4['mapper']['toViewElement'](_0x55d971);_0x5e20a4['writer']['addClass']('ck-suggestion-marker-'+_0x1a5bff,_0x4786d2),_0x42b2e5&&_0x5e20a4['writer']['setAttribute']('data-suggestion',_0x8300cb,_0x4786d2),_0x5e20a4['mapper']['bindElementToMarker'](_0x4786d2,_0x32456f['markerName']),_0x2055c3&&(_0x23c6ca['activeMarkers']['includes'](_0x32456f['markerName'])?_0x5e20a4['writer']['addClass']('ck-suggestion-marker--active',_0x4786d2):_0x5e20a4['writer']['removeClass']('ck-suggestion-marker--active',_0x4786d2));}}};}_0x23c6ca['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2744a5),_0x23c6ca['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2744a5),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x46d97a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d595f,_0x2359f3,_0x2f5695)=>{_0x2f5695['options']['showSuggestionHighlights']&&_0x46d97a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2d595f,_0x2359f3,_0x2f5695);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4d32c6,_0x34d5d3,_0x1a62f9)=>{const {type:_0x1a7cd7,id:_0x411ecf}=_0x23c6ca['_splitMarkerName'](_0x34d5d3['markerName']),_0x8a031e=_0x23c6ca['getSuggestion'](_0x411ecf),_0x1fcbb0=_0x8a031e['data'];if('formatBlock'!=_0x8a031e['type']||!_0x1fcbb0||'setTableColumnHeader'!=_0x1fcbb0['commandName'])return;const _0x452d5a=_0x1a62f9['mapper']['markerNameToElements'](_0x34d5d3['markerName']);if(_0x452d5a){for(const _0x33ddf4 of _0x452d5a)_0x1a62f9['writer']['removeClass']('ck-suggestion-marker-'+_0x1a7cd7,_0x33ddf4),_0x1a62f9['writer']['removeClass']('ck-suggestion-marker--active',_0x33ddf4),_0x1a62f9['writer']['removeAttribute']('data-suggestion',_0x33ddf4),_0x1a62f9['mapper']['unbindElementFromMarkerName'](_0x33ddf4,_0x34d5d3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bba6f=this['editor'],_0x4b30f4=_0x3bba6f['locale'];function _0x5d333e(_0x3d2517){return{'type':'format','content':c(_0x4b30f4,'*Format:*\x20%0',_0x3d2517)};}_0x3bba6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38d3f4=>{if('formatBlock'!=_0x38d3f4['type'])return;const {data:_0x516279}=_0x38d3f4;if(_0x516279){if('setTableRowHeader'==_0x516279['commandName']){const _0x112282=_0x516279['commandParams'][0x0]['forceValue'];return _0x5d333e(c(_0x4b30f4,_0x112282?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x516279['commandName']){const _0x369a18=_0x516279['commandParams'][0x0]['forceValue'];return _0x5d333e(c(_0x4b30f4,_0x369a18?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x593270=>[_0x593270,null]));class Mt extends _0x54e516{static get['requires'](){return[Ct];}['afterInit'](){const _0x3c0d57=this['editor'];if(!_0x3c0d57['plugins']['has']('TableClipboard'))return;const _0x417ed4=_0x3c0d57['plugins']['get']('TrackChangesEditing'),_0x36ce93=_0x3c0d57['plugins']['get']('TableUtils'),_0x3a5d4f=_0x3c0d57['plugins']['get'](Ct),_0x5b2b9d=_0x3c0d57['plugins']['get']('TableClipboard');_0x3a5d4f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3c0d57['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3c0d57['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x36d71f=null;_0x3c0d57['model']['on']('insertContent',(_0x397315,_0x2c689e)=>{const [_0x46e92b,_0x53a959]=_0x2c689e,_0x14a6fe=_0x2c689e[_0x2c689e['length']-0x1];_0x14a6fe&&_0x14a6fe['forceDefaultExecution']||_0x417ed4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xf9ff36,_0x363ab6,_0x6767a0,_0x435ed3,_0x34411b){if(_0x363ab6&&!_0x363ab6['is']('documentSelection'))return!0x1;const _0x26d85e=_0x34411b['getTableIfOnlyTableInContent'](_0xf9ff36,_0x6767a0);if(!_0x26d85e||!Ue(_0x26d85e,void 0x0,_0x435ed3))return!0x1;const _0x34e2ef=_0x435ed3['getSelectionAffectedTableCells'](_0x6767a0['document']['selection']);if(!_0x34e2ef['length'])return!0x1;const _0x4f61ca=_0x34e2ef[0x0]['findAncestor']('table'),_0x91d11f=_0x435ed3['getRowIndexes'](_0x34e2ef),_0x1f6001=_0x435ed3['getColumnIndexes'](_0x34e2ef),_0x5dfe6c={'startRow':_0x91d11f['first'],'endRow':_0x91d11f['last'],'startColumn':_0x1f6001['first'],'endColumn':_0x1f6001['last']};return 0x1==_0x34e2ef['length']&&(_0x5dfe6c['endRow']+=_0x435ed3['getRows'](_0x26d85e)-0x1,_0x5dfe6c['endColumn']+=_0x435ed3['getColumns'](_0x26d85e)-0x1),Ue(_0x4f61ca,_0x5dfe6c,_0x435ed3);}(_0x46e92b,_0x53a959,_0x3c0d57['model'],_0x36ce93,_0x5b2b9d)&&(_0x397315['stop'](),_0x36d71f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3c0d57['model']['change'](()=>{_0x3c0d57['model']['insertContent'](_0x2c689e[0x0],_0x2c689e[0x1],_0x2c689e[0x2],{'forceDefaultExecution':!0x0});const _0x506bd0=_0x5310dd(),{rowInsertionRanges:_0x50af2a,columnInsertionRanges:_0x5c52a8,insertionRanges:_0x3fdfd9,deletionRanges:_0x3e9b2d,cells:_0x136596}=_0x36d71f;_0x50af2a['length']&&_0x417ed4['markMultiRangeInsertion'](_0x50af2a,'tablePasteRow',{'tablePasteChainId':_0x506bd0}),_0x5c52a8['length']&&_0x417ed4['markMultiRangeInsertion'](_0x5c52a8,'tablePasteColumn',{'tablePasteChainId':_0x506bd0}),_0x3fdfd9['length']&&(_0x417ed4['markMultiRangeInsertion'](_0x3fdfd9,'tablePaste',{'tablePasteChainId':_0x506bd0,'skipNestingCheck':!0x0}),_0x3fdfd9['forEach'](_0x1c7bc5=>_0x1c7bc5['detach']?.())),_0x3e9b2d['length']&&(_0x417ed4['markMultiRangeDeletion'](_0x3e9b2d,'tablePaste',{'tablePasteChainId':_0x506bd0,'skipNestingCheck':!0x0}),_0x3e9b2d['forEach'](_0x5e2a85=>_0x5e2a85['detach']?.()));const _0x5aac76=_0x417ed4['markMultiRangeBlockFormat'](_0x136596['map'](({element:_0x50c006})=>_0x50c006),{'formatGroupId':_0x5310dd()},[],'tablePasteCell',{'tablePasteChainId':_0x506bd0});if(_0x5aac76){const _0x24043c=_0x5aac76['getMarkers'](),_0x1b890f=[];for(const {element:_0x2ab80d,attributes:_0x59def1}of _0x136596){if(!_0x59def1)continue;const _0x5351de=_0x3c0d57['model']['createRangeOn'](_0x2ab80d),_0x8055f6=_0x24043c['find'](_0x5c71fe=>_0x5c71fe['getRange']()['isEqual'](_0x5351de));_0x8055f6&&_0x1b890f['push']([_0x8055f6['name'],_0x59def1]);}_0x1b890f['length']&&_0x5aac76['setAttribute']('markerAttributes',Object['fromEntries'](_0x1b890f));}_0x36d71f=null;}));},{'priority':_0x2800bb['high']+0xa}),_0x3c0d57['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4649f3,_0x42c700)=>{const [_0x3bac00,_0x5b588b,,_0x53c5fb]=_0x42c700;if(!_0x36d71f)return;_0x4649f3['stop']();const _0x37acf5=_0x3bac00['cell'],_0x30f77b=_0x5b588b,_0x58cdb6=Oe(_0x37acf5),_0x368b2e=Oe(_0x30f77b);_0x4649f3['return']=_0x37acf5;let _0x512c77=null,_0x46c362=null;if(_0x368b2e||_0x58cdb6){if(_0x58cdb6&&!_0x368b2e){_0x53c5fb['remove'](_0x37acf5['getChild'](0x0));for(const _0x698492 of Array['from'](_0x30f77b['getChildren']()))_0x53c5fb['insert'](_0x698492,_0x37acf5,'end');const _0x5287ea=_0x36d71f['rowInsertionIndexes']['includes'](_0x3bac00['row']),_0x53ad88=_0x36d71f['columnInsertionIndexes']['includes'](_0x3bac00['column']);_0x5287ea||_0x53ad88||(_0x512c77=_0x6b53b6['fromRange'](_0x53c5fb['createRangeIn'](_0x37acf5)));}else _0x368b2e&&!_0x58cdb6&&(_0x46c362=_0x53c5fb['createRangeIn'](_0x37acf5));}else{const _0x2bf929=_0x53c5fb['createElement']('tableCellSuggestion'),_0x4d6c06=_0x53c5fb['createElement']('tableCellSuggestion');_0x53c5fb['wrap'](_0x53c5fb['createRangeIn'](_0x37acf5),_0x4d6c06),_0x53c5fb['insert'](_0x2bf929,_0x37acf5,0x0);for(const _0x1dac04 of Array['from'](_0x30f77b['getChildren']()))_0x53c5fb['insert'](_0x1dac04,_0x2bf929,'end');_0x512c77=_0x6b53b6['fromRange'](_0x53c5fb['createRangeOn'](_0x2bf929)),_0x46c362=_0x6b53b6['fromRange'](_0x53c5fb['createRangeOn'](_0x4d6c06));}const _0x3b90fe=Array['from'](_0x30f77b['getAttributes']())['filter'](([_0x4a4a3c])=>Be['includes'](_0x4a4a3c));_0x36d71f['cells']['push']({'element':_0x37acf5,'attributes':_0x3b90fe['length']?Object['fromEntries'](_0x3b90fe):null}),_0x512c77&&_0x36d71f['insertionRanges']['push'](_0x512c77),_0x46c362&&_0x36d71f['deletionRanges']['push'](_0x46c362);},{'priority':'high'}),_0x36ce93['on']('insertColumns',(_0x398cbe,_0x2c0855)=>{const [_0x32d4d2,_0x250bb4={}]=_0x2c0855;if(!_0x36d71f)return;const _0x2dc524=_0x250bb4['at']||0x0,_0x51aed9=_0x250bb4['columns']||0x1;_0x36d71f['columnInsertionIndexes']=new Array(_0x51aed9)['fill'](_0x2dc524)['map']((_0x4255bc,_0x40eae7)=>_0x4255bc+_0x40eae7);for(const {cell:_0x3ecffa}of _0x36ce93['createTableWalker'](_0x32d4d2,{'startColumn':_0x2dc524,'endColumn':_0x2dc524+_0x51aed9-0x1}))_0x36d71f['columnInsertionRanges']['push'](_0x3c0d57['model']['createRangeOn'](_0x3ecffa));},{'priority':'low'}),_0x36ce93['on']('insertRows',(_0x368771,_0x2a1c9b)=>{const [_0x394a3b,_0x46ce80={}]=_0x2a1c9b;if(!_0x36d71f)return;const _0x226871=_0x46ce80['at']||0x0,_0x59a2b9=_0x46ce80['rows']||0x1;_0x36d71f['rowInsertionIndexes']=new Array(_0x59a2b9)['fill'](_0x226871)['map']((_0x4f0179,_0x4335d1)=>_0x4f0179+_0x4335d1);for(const {cell:_0x5e8dbf}of _0x36ce93['createTableWalker'](_0x394a3b,{'startRow':_0x226871,'endRow':_0x226871+_0x59a2b9-0x1}))_0x36d71f['rowInsertionRanges']['push'](_0x3c0d57['model']['createRangeOn'](_0x5e8dbf));},{'priority':'low'}),_0x417ed4['descriptionFactory']['registerDescriptionCallback'](_0x1235de=>{if(_0x1235de['subType']&&_0x1235de['subType']['startsWith']('tablePaste'))return _0x1235de['previous']?{}:{'type':'insertion','content':c(_0x3c0d57['locale'],'*Replace\x20table\x20cells*')};});const _0x50a128=()=>!0x1;for(const _0x51926b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x417ed4['_suggestionFactory']['registerCustomCallback']('insertion',_0x51926b,'join',_0x50a128),_0x417ed4['_suggestionFactory']['registerCustomCallback']('deletion',_0x51926b,'join',_0x50a128),_0x417ed4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x51926b,'join',_0x50a128);_0x417ed4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x50a128),_0x417ed4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3994d3,_0x3755e5,_0x4f4018)=>{const _0x23f182=_0x3994d3['map'](_0x55f569=>_0x55f569['getContainedElement']())['filter'](_0x3e0522=>_0x3e0522),_0x3dfcd8=new Map(_0x23f182['map'](_0x16059f=>[_0x16059f,null]));if(_0x36d71f){for(const {element:_0x420b9e,attributes:_0x53cee3}of _0x36d71f['cells'])_0x53cee3&&_0x3dfcd8['set'](_0x420b9e,_0x53cee3);}else{if(_0x4f4018&&_0x4f4018['markerAttributes'])for(const [_0x1cbc5b,_0x1d81d2]of Object['entries'](_0x4f4018['markerAttributes'])){const _0x52e044=_0x3c0d57['model']['markers']['get'](_0x1cbc5b),_0x12f7d9=_0x52e044?_0x52e044['getRange']()['getContainedElement']():null;_0x12f7d9&&_0x3dfcd8['set'](_0x12f7d9,_0x1d81d2);}}_0x3c0d57['model']['change'](_0x3c28be=>{for(const [_0x3105b9,_0x5d71c1]of _0x3dfcd8)_0x3c28be['setAttributes']({...xe,..._0x5d71c1},_0x3105b9);});});const _0x26af16=(_0x2aebd4,_0x307705)=>{_0x417ed4['_suggestionFactory']['registerCustomCallback'](_0x2aebd4,'tablePaste',_0x307705,(_0x167e3e,_0x35bab5,_0x302706)=>{_0x3c0d57['model']['change'](_0x4e2f07=>{const _0x11bc43=[];for(const _0x29e830 of _0x167e3e){const _0x45383c=_0x29e830['start']['nodeAfter'];_0x45383c['is']('element','tableCellSuggestion')&&_0x11bc43['push'](_0x45383c);}_0x417ed4['_suggestionFactory']['getSuggestionCallback'](_0x2aebd4,null,_0x307705)(_0x167e3e,_0x35bab5,_0x302706);for(const _0x1f794a of _0x11bc43)'$graveyard'!=_0x1f794a['root']['rootName']&&_0x4e2f07['unwrap'](_0x1f794a);});});};_0x26af16('insertion','accept'),_0x26af16('insertion','discard'),_0x26af16('deletion','accept'),_0x26af16('deletion','discard'),_0x417ed4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x56a900=>{const _0x2b56d0=_0x56a900['map'](_0x92b069=>_0x92b069['getContainedElement']()),_0x158c28=_0x2b56d0[0x0]['findAncestor']('table'),{minRow:_0x495106,maxRow:_0x47793e}=_0x3a5d4f['_getCoordsForCells'](_0x2b56d0);_0x36ce93['removeRows'](_0x158c28,{'at':_0x495106,'rows':_0x47793e-_0x495106+0x1});}),_0x417ed4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x480e9a=>{const _0x6a1677=_0x480e9a['map'](_0x288893=>_0x288893['getContainedElement']()),_0x69e176=_0x6a1677[0x0]['findAncestor']('table'),{minColumn:_0x23d9df,maxColumn:_0x168ff0}=_0x3a5d4f['_getCoordsForCells'](_0x6a1677);_0x36ce93['removeColumns'](_0x69e176,{'at':_0x23d9df,'columns':_0x168ff0-_0x23d9df+0x1});});const _0x1d79f1=(_0x205450,_0x525376)=>{if(!_0x525376['subType']||!_0x525376['subType']['startsWith']('tablePaste'))return;const _0x5b96e2=_0x525376['attributes']['tablePasteChainId'],_0x3beac1=_0x417ed4['getSuggestions']()['filter'](_0x33a56b=>_0x33a56b['isInContent']&&_0x33a56b['attributes']&&_0x33a56b['attributes']['tablePasteChainId']==_0x5b96e2);_0x3beac1['length']&&_0x525376['getAllAdjacentSuggestions']()['length']!=_0x3beac1['length']&&_0x3beac1['reduce']((_0xd4bcbf,_0x45776f)=>(_0xd4bcbf['next']=_0x45776f,_0x45776f['previous']=_0xd4bcbf,_0x45776f));};function _0x1f763d(_0x444160,_0x33b2ba=!0x0){const {id:_0x728fba,authorId:_0xe11c63}=_0x417ed4['_splitMarkerName'](_0x444160['markerName']),_0x4d13c1=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x494dc2=_0x417ed4['activeMarkers']['includes'](_0x444160['markerName']);return _0x494dc2&&_0x4d13c1['push']('ck-suggestion-marker--active'),{'classes':_0x4d13c1,'attributes':{'data-suggestion':_0x728fba,'data-author-id':_0xe11c63},'priority':_0x494dc2&&_0x33b2ba?0xbc2:0xbb8};}_0x417ed4['on']('suggestionLoaded',_0x1d79f1,{'priority':'high'}),_0x417ed4['on']('suggestionUnloaded',_0x1d79f1,{'priority':'high'}),_0x3c0d57['model']['document']['registerPostFixer'](()=>{let _0x3863fc=!0x1;const _0x41a261=Array['from'](_0x3c0d57['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x147ef6,data:_0x23c08d}of _0x41a261){const {group:_0x15ee5b,type:_0x2feadf,id:_0x3e2ca0}=_0x417ed4['_splitMarkerName'](_0x147ef6);if('suggestion'!=_0x15ee5b||'deletion'!=_0x2feadf||_0x23c08d['oldRange'])continue;if(!_0x417ed4['hasSuggestion'](_0x3e2ca0))continue;const _0x306b77=_0x417ed4['getSuggestion'](_0x3e2ca0)['getRanges'](),_0xf22f22=_0x3c0d57['plugins']['get']('Users')['me'];for(const _0x306831 of _0x417ed4['getSuggestions']()){if(!_0x306831['isInContent']||_0x306831['author']!=_0xf22f22)continue;if('formatBlock'!=_0x306831['type']||'tablePasteCell'!=_0x306831['subType'])continue;if(_0x306831['getRanges']()['every'](_0x5cd5b0=>_0x306b77['some'](_0x537f5e=>_0x537f5e['containsRange'](_0x5cd5b0,!0x0)))){for(const _0x2a53a9 of _0x306831['getAllAdjacentSuggestions']())_0x2a53a9['isInContent']&&(_0x2a53a9['discard'](),_0x3863fc=!0x0);}}}return _0x3863fc;}),_0x3c0d57['model']['document']['registerPostFixer'](_0x5768e0=>{const _0x49b519=_0x3c0d57['commands']['get']('redo');if(!_0x49b519||!_0x49b519['_createdBatches']['has'](_0x5768e0['batch']))return!0x1;let _0x216185=!0x1;const _0xa23237=_0x3c0d57['plugins']['get']('Users')['me'],_0x52d263=_0x3c0d57['model']['document']['differ']['getChanges'](),_0x5124ec=Array['from'](_0x3c0d57['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4693ba,data:_0x56d024})=>{const {group:_0x20e584,subType:_0x4301ad,authorId:_0x4ab268}=_0x417ed4['_splitMarkerName'](_0x4693ba);return'suggestion'==_0x20e584&&'tablePaste'==_0x4301ad&&_0x4ab268==_0xa23237['id']&&!_0x56d024['oldRange'];});for(const _0x35a309 of _0x52d263){if('insert'!=_0x35a309['type']||'tableCellSuggestion'!=_0x35a309['name']||0x1!=_0x35a309['length'])continue;const _0x326979=_0x5768e0['createRange'](_0x35a309['position'],_0x35a309['position']['getShiftedBy'](0x1));if(!_0x5124ec['find'](({data:_0x54e454})=>_0x54e454['newRange']['isEqual'](_0x326979))){for(const {name:_0x461ce0,data:_0x2e9df0}of _0x5124ec)if(_0x326979['containsRange'](_0x2e9df0['newRange'])){_0x5768e0['updateMarker'](_0x461ce0,{'range':_0x326979}),_0x216185=!0x0;break;}}}return _0x216185;}),_0x3c0d57['model']['document']['registerPostFixer'](_0x1147f1=>{let _0x468758=!0x1;const _0x538c96=_0x3c0d57['plugins']['get']('Users')['me'],_0x15ced6=_0x417ed4['getSuggestions']()['filter'](_0x426a27=>_0x426a27['isInContent']&&_0x426a27['author']==_0x538c96),_0x3cc81b=new Set(),_0x254a6b=new Set();for(const _0x2bb7c4 of _0x15ced6)if('tablePaste'==_0x2bb7c4['subType'])for(const _0x218e21 of _0x2bb7c4['getMarkers']()){const _0x470ed5=_0x218e21['getRange']()['getContainedElement']();if(_0x470ed5){if(_0x470ed5['is']('element','tableCellSuggestion')&&Oe(_0x470ed5)){_0x2bb7c4['removeMarker'](_0x218e21['name']),_0x3cc81b['add'](_0x470ed5),_0x468758=!0x0;const _0x523e6f=_0x470ed5['nextSibling'],_0xab002b=_0x470ed5['previousSibling'],_0x13efb2=_0x523e6f&&_0x523e6f['is']('element','tableCellSuggestion'),_0x4ce264=_0xab002b&&_0xab002b['is']('element','tableCellSuggestion');_0x13efb2&&!_0x3cc81b['has'](_0x523e6f)&&_0x254a6b['add'](_0x523e6f),_0x4ce264&&!_0x3cc81b['has'](_0xab002b)&&_0x254a6b['add'](_0xab002b);}else _0x470ed5['is']('element','paragraph')&&_0x470ed5['isEmpty']&&(_0x2bb7c4['removeMarker'](_0x218e21['name']),_0x468758=!0x0);}}else{if('tablePasteCell'==_0x2bb7c4['subType']){if(!_0x2bb7c4['attributes']||!_0x2bb7c4['attributes']['tablePasteChainId'])continue;const _0x2e3eaf=_0x2bb7c4['attributes']['markerAttributes'];if(_0x2e3eaf&&Object['keys'](_0x2e3eaf)['length'])continue;const _0x2ecf09=_0x2bb7c4['attributes']['tablePasteChainId'];let _0x4c4d60=!0x0,_0x367165=!0x0;for(const _0x18db75 of _0x15ced6)if(_0x18db75['subType']&&_0x18db75['subType']['startsWith']('tablePaste')){if(!_0x18db75['attributes']['tablePasteChainId']){_0x367165=!0x1;break;}if(_0x18db75['id']!=_0x2bb7c4['id']&&_0x18db75['attributes']['tablePasteChainId']==_0x2ecf09){_0x4c4d60=!0x1;break;}}_0x367165&&_0x4c4d60&&(_0x2bb7c4['removeMarkers'](),_0x468758=!0x0);}}for(const _0x3d80e1 of _0x3cc81b)_0x1147f1['remove'](_0x3d80e1);for(const _0x1d3c5e of _0x254a6b)_0x1147f1['unwrap'](_0x1d3c5e);return _0x468758;}),_0x3c0d57['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x56a836=>_0x1f763d(_0x56a836),'converterPriority':'high'}),_0x3c0d57['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x178470,_0x38f9b7)=>_0x38f9b7['options']['showSuggestionHighlights']?_0x1f763d(_0x178470,!0x1):null,'converterPriority':'high'});const _0x27a881=_0x3c0d57['editing']['view'];this['listenTo'](_0x27a881['document'],'clipboardOutput',(_0xa38c5d,_0x3b5b82)=>{const _0xf563d9=[];for(const _0xa5d82f of _0x27a881['createRangeIn'](_0x3b5b82['content'])['getItems']())_0xa5d82f['is']('element','suggestion-td')&&_0xf563d9['push'](_0xa5d82f);_0x27a881['change'](_0x540864=>{for(const _0xdbac5a of _0xf563d9)_0x540864['move'](_0x540864['createRangeIn'](_0xdbac5a),_0x540864['createPositionBefore'](_0xdbac5a)),_0x540864['remove'](_0xdbac5a);});});}}function Oe(_0xf166b4){if(_0xf166b4['isEmpty'])return!0x0;const _0xa19683=_0xf166b4['getChild'](0x0);return _0xa19683['is']('element','paragraph')&&_0xa19683['isEmpty'];}function Ue(_0x89ffb9,_0x33538a={},_0x18395b){for(const {isAnchor:_0x4cb5c3,cellHeight:_0x1dc547,cellWidth:_0x57f88d}of _0x18395b['createTableWalker'](_0x89ffb9,{'includeAllSlots':!0x0,..._0x33538a}))if(!_0x4cb5c3||0x1!=_0x1dc547||0x1!=_0x57f88d)return!0x1;return!0x0;}class $t extends _0x54e516{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x37afda=this['editor']['plugins']['get']('TrackChangesEditing');_0x37afda['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x37afda['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x37afda['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x37afda['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x37afda['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x37afda['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x87ed47,_0x36fc61){const _0x2c46e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c0cc6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x11828f=_0x36fc61['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2be5c7=_0x2c0cc6['getColumnGroupElement'](_0x11828f);let _0x146d30=_0x2be5c7?_0x2c0cc6['getTableColumnsWidths'](_0x2be5c7):null,_0x4e5401=_0x11828f['getAttribute']('tableWidth')||null;const _0x315e7f=_0x36fc61['tableWidth']||_0x4e5401,_0x4e9b60=_0x36fc61['columnWidths']||_0x146d30,_0x11824e=this['editor']['plugins']['get']('Users')['me'];for(const _0x48e76a of _0x2c46e5['getSuggestions']()){const _0x1daa20=_0x48e76a['getContainedElement']();if('resizeTable'===_0x48e76a['subType']&&_0x1daa20===_0x11828f){_0x48e76a['author']!==_0x11824e&&_0x48e76a['discard']();const _0x42bcec=_0x48e76a['data']['commandParams'];_0x4e5401=_0x42bcec[0x0]['tableWidth'],_0x146d30=_0x42bcec[0x0]['columnWidths'];break;}}_0x87ed47({'table':_0x11828f,'tableWidth':_0x315e7f,'columnWidths':_0x4e9b60}),_0x2c46e5['markBlockFormat'](_0x11828f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4e5401,'columnWidths':_0x146d30}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x54d51e){if('formatBlock'!=_0x54d51e['type']&&'formatInline'!=_0x54d51e['type'])return;const {data:_0x1d7a56}=_0x54d51e;if(_0x1d7a56&&'resizeTable'===_0x1d7a56['formatGroupId']){const _0x384960='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x384960)};}}}class Bt extends _0x54e516{['afterInit'](){const _0x310a83=this['editor'];_0x310a83['plugins']['has']('Template')&&_0x310a83['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x54e516{['afterInit'](){const _0x19a4e4=this['editor'];if(!_0x19a4e4['commands']['get']('insertTableOfContents'))return;_0x19a4e4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x123976=_0x19a4e4['plugins']['get']('TrackChangesEditing'),_0x3a2b4c=_0x19a4e4['locale'];_0x123976['descriptionFactory']['registerElementLabel']('tableOfContents',_0x478182=>c(_0x3a2b4c,'ELEMENT_TABLE_OF_CONTENTS',_0x478182));}}class Rt extends _0x54e516{['afterInit'](){const _0x1509bf=this['editor'];if(!_0x1509bf['plugins']['has']('Title'))return;const _0x1d051f=_0x1509bf['plugins']['get']('TrackChangesEditing');_0x1d051f['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x1509bf['locale'],'ELEMENT_TITLE')),_0x1509bf['model']['document']['registerPostFixer'](_0x26ce2a=>{let _0x1e2dfc=!0x1;const _0x4f0d81=Array['from'](_0x1509bf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3743f8,data:_0x555a27}of _0x4f0d81){const {group:_0x29de50}=_0x1d051f['_splitMarkerName'](_0x3743f8);if('suggestion'!==_0x29de50||!_0x555a27['newRange'])continue;const _0x5a923b=_0x555a27['newRange'],_0x2e0096=_0x5a923b['end']['nodeBefore'];if(!_0x2e0096||!_0x2e0096['is']('element','title-content'))continue;if(!_0x5a923b['start']['isTouching'](_0x5a923b['end']))continue;const _0x599c77=_0x1509bf['model']['schema']['getNearestSelectionRange'](_0x5a923b['end'],'forward');if(_0x599c77&&_0x599c77['isCollapsed']){const _0x533b33=_0x26ce2a['createRange'](_0x5a923b['start'],_0x599c77['start']);_0x533b33['isEqual'](_0x5a923b)||(_0x26ce2a['updateMarker'](_0x3743f8,{'range':_0x533b33}),_0x1e2dfc=!0x0);}_0x1e2dfc||(_0x26ce2a['removeMarker'](_0x3743f8),_0x1e2dfc=!0x0);}return _0x1e2dfc;});}}class xt extends _0x54e516{['afterInit'](){const _0x1c0bc3=this['editor'],_0x3cf4f8=_0x1c0bc3['plugins']['get']('TrackChangesEditing');_0x1c0bc3['plugins']['has']('Uploadcare')&&(_0x3cf4f8['enableCommand']('uploadcare'),_0x1c0bc3['plugins']['has']('UploadcareImageEdit')&&(_0x3cf4f8['enableCommand']('uploadcareImageEdit'),_0x3cf4f8['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3cf4f8['registerBlockAttribute']('uploadcareImageId'),_0x3cf4f8['descriptionFactory']['registerDescriptionCallback'](_0x19775f=>{if('attribute'!=_0x19775f['type'])return;const {data:_0xa4f5c0}=_0x19775f;return _0xa4f5c0&&'uploadcareImageId'==_0xa4f5c0['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x54e516{['afterInit'](){const _0x313f25=this['editor'],_0x1d7a6b=_0x313f25['plugins']['get']('TrackChangesEditing');_0x313f25['plugins']['has']('UndoEditing')&&(_0x1d7a6b['enableCommand']('undo'),_0x1d7a6b['enableCommand']('redo'));}}class Et extends _0x54e516{static get['requires'](){return[Ct];}['afterInit'](){const _0x1b9650=this['editor'];if(!_0x1b9650['plugins']['has']('TableCaptionEditing'))return;_0x1b9650['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x54e516{['tableProperties'];['tableCellProperties'];constructor(_0x103880){super(_0x103880),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x34940b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2f6621 of this['tableProperties'])_0x34940b['enableCommand'](_0x2f6621,(_0x6f244e,_0x133526)=>{const _0x596914=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2f6621,[_0x596914],this['tableProperties'],'tableProperties',_0x6f244e,_0x133526);});_0x34940b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x34940b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34940b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3e786c,_0xe7a2f0)=>this['handleDiscardAction'](this['tableProperties'],_0x3e786c,_0xe7a2f0)),_0x34940b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xc8ab38 of this['tableCellProperties'])_0x34940b['enableCommand'](_0xc8ab38,(_0x2b3db3,_0x353a2d)=>{const _0x9f2226=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xc8ab38,_0x9f2226,this['tableCellProperties'],'tableCellProperties',_0x2b3db3,_0x353a2d);});_0x34940b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x34940b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34940b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2b8c07,_0x1074d5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2b8c07,_0x1074d5)),_0x34940b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x34940b['descriptionFactory']['registerDescriptionCallback'](_0x39809f=>this['handleSuggestionDescription'](_0x39809f));}['_handlePropertyChange'](_0x36d99a,_0x314aa9,_0x479580,_0x222a44,_0x36961a,_0x5add81){const _0x1d3485=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5add81['batch'],()=>{for(const _0x43996c of _0x314aa9){if(this['_getSuggestion'](_0x43996c,_0x222a44))_0x36961a(_0x5add81);else{const _0x2a2260={};for(const _0x3f3572 of _0x479580){const _0x261840=_0x43996c['getAttribute'](_0x3f3572);void 0x0!==_0x261840&&(_0x2a2260[_0x3f3572]=_0x261840);}_0x36961a(_0x5add81),_0x1d3485['markBlockFormat'](_0x43996c,{'commandParams':[_0x2a2260]},[],_0x222a44);}}});}['handleDiscardAction'](_0x3c4070,_0x3a1e4,_0x2cc784){const _0x4d7c48=_0x3a1e4[0x0]['start']['nodeAfter'],_0x574e9f=_0x2cc784['commandParams'][0x0];this['editor']['model']['change'](_0x32f683=>{for(const _0x5d1041 of _0x3c4070)void 0x0!==_0x574e9f[_0x5d1041]?_0x32f683['setAttribute'](_0x5d1041,_0x574e9f[_0x5d1041],_0x4d7c48):_0x32f683['removeAttribute'](_0x5d1041,_0x4d7c48);});}['handleSuggestionDescription'](_0x1fcde6){if(_0x1fcde6['data'])switch(_0x1fcde6['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xe58193,_0x2a39b2){const _0x1898d1=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1f69e5 of _0x1898d1['getSuggestions']({'skipNotAttached':!0x0})){const _0x38350e=_0x1f69e5['getContainedElement']();if(_0x1f69e5['subType']===_0x2a39b2&&_0x38350e===_0xe58193)return _0x1f69e5;}return null;}}const u='$elementName';class p extends _0x54e516{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x25323f,_0x5cb8b7,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57f53e){super(_0x57f53e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3f9304,_0x12b8e0,_0x3d7813,_0x387fc2)=>{this['_model']['change'](()=>{for(const _0x514a79 of[..._0x387fc2,..._0x3d7813])this['_model']['markers']['has'](_0x514a79)&&_0x57f53e['editing']['reconvertMarker'](_0x514a79);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x57f53e['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x57f53e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x57f53e['config']['get']('trackChanges.trackFormatChanges'),_0x57f53e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x57f53e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x57f53e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x236a90=this['editor'],_0x522909=(_0x5cfb83,_0x554f57)=>{if('attribute'!=_0x5cfb83)return'ck-suggestion-marker-'+_0x5cfb83;const _0x21e6a1=_0x554f57['split']('|')[0x0];return this['_isBlockAttribute'](_0x21e6a1)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x236a90['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4f1f66=>{const {id:_0x33d03c,authorId:_0x4d1cd8,type:_0x56cb5c,subType:_0xcbce7f}=this['_splitMarkerName'](_0x4f1f66['markerName']),_0x2c8ba9=['ck-suggestion-marker',_0x522909(_0x56cb5c,_0xcbce7f)];let _0x7cbba8=0xbb8;return this['activeMarkers']['includes'](_0x4f1f66['markerName'])&&(_0x2c8ba9['push']('ck-suggestion-marker--active'),_0x7cbba8=0xbc2),'deletion'==_0x56cb5c&&(_0x7cbba8+=0x5),{'classes':_0x2c8ba9,'attributes':{'data-suggestion':_0x33d03c,'data-author-id':_0x4d1cd8},'priority':_0x7cbba8};}}),_0x236a90['conversion']['for']('dataDowncast')['add'](_0x1954dc=>{_0x1954dc['on']('addMarker:suggestion',(_0x567562,_0x438616,_0x8da66c)=>{if(!_0x8da66c['options']['showSuggestionHighlights'])return;const _0x29e4c9=_0x438616['item'];if(!_0x29e4c9)return;const _0x50dcc5=_0x8da66c['mapper']['toViewElement'](_0x29e4c9);_0x236a90['model']['schema']['isObject'](_0x29e4c9)&&_0x50dcc5&&!_0x50dcc5['getCustomProperty']('widget')&&_0x50dcc5['is']('containerElement')&&_0x2b5ac0(_0x50dcc5,_0x8da66c['writer']);},{'priority':'high'});}),_0x236a90['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2418f6,_0x28a411)=>{if(!_0x28a411['options']['showSuggestionHighlights'])return null;const {type:_0x2addab,subType:_0x20be98}=this['_splitMarkerName'](_0x2418f6['markerName']);return{'classes':['ck-suggestion-marker',_0x522909(_0x2addab,_0x20be98)],'priority':0xbb8};}});const _0x516a6e=({showActiveMarkers:_0x47d27c=!0x0,isAttributeSuggestion:_0x5efb22=!0x1}={})=>(_0x6e2367,_0x3efe9b,_0x24a084)=>{if(!_0x3efe9b['item'])return;const {id:_0x34dfae,authorId:_0x253e1}=this['_splitMarkerName'](_0x3efe9b['markerName']);if(_0x5efb22){const _0x279f44=this['_suggestions']['get'](_0x34dfae),_0x4d2829=this['_getAttributeKey'](_0x279f44);if(!this['_isBlockAttribute'](_0x4d2829))return;}if(_0x3efe9b['item']['is']('selection'))return void _0x24a084['consumable']['consume'](_0x3efe9b['item'],_0x6e2367['name']);const _0x2dfa0a=_0x24a084['mapper']['toViewElement'](_0x3efe9b['item']);if(_0x3efe9b['item']['is']('element')&&_0x236a90['model']['schema']['isBlock'](_0x3efe9b['item'])&&!_0x2dfa0a['getCustomProperty']('addHighlight')){_0x24a084['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2dfa0a),_0x24a084['writer']['setAttribute']('data-suggestion',_0x34dfae,_0x2dfa0a),_0x24a084['writer']['setAttribute']('data-author-id',_0x253e1,_0x2dfa0a),_0x24a084['mapper']['bindElementToMarker'](_0x2dfa0a,_0x3efe9b['markerName']),_0x47d27c&&(this['activeMarkers']['includes'](_0x3efe9b['markerName'])?_0x24a084['writer']['addClass']('ck-suggestion-marker--active',_0x2dfa0a):_0x24a084['writer']['removeClass']('ck-suggestion-marker--active',_0x2dfa0a));for(const _0x57d39d of _0x236a90['model']['createRangeIn'](_0x3efe9b['item'])['getItems']())_0x24a084['consumable']['consume'](_0x57d39d,_0x6e2367['name']);_0x24a084['consumable']['consume'](_0x3efe9b['item'],_0x6e2367['name']);}};_0x236a90['conversion']['for']('dataDowncast')['add'](_0xfe0c82=>{_0xfe0c82['on']('addMarker:suggestion:formatBlock',(_0x33b300,_0x19cc47,_0x1edae9)=>{_0x1edae9['options']['showSuggestionHighlights']&&_0x516a6e({'showActiveMarkers':!0x1})(_0x33b300,_0x19cc47,_0x1edae9);},{'priority':'highest'});}),_0x236a90['conversion']['for']('dataDowncast')['add'](_0x2e9bad=>{_0x2e9bad['on']('addMarker:suggestion:attribute',(_0x104054,_0x5438c5,_0x38f92a)=>{_0x38f92a['options']['showSuggestionHighlights']&&_0x516a6e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x104054,_0x5438c5,_0x38f92a);},{'priority':'highest'});}),_0x236a90['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3849c7,_0x4be598)=>_0x4be598['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3849c7['substr'](0xb)}}),_0x236a90['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x387a16,{writer:_0x4649bb})=>{let _0x32f2ec='suggestion:'+_0x387a16['getAttribute']('suggestion-type')+':'+_0x387a16['getAttribute']('id');return _0x387a16['getAttribute']('marker-count')&&(_0x32f2ec+=':'+_0x387a16['getAttribute']('marker-count')),_0x4649bb['createElement']('$marker',{'data-name':_0x32f2ec});}}),_0x236a90['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x236a90['conversion']['for']('editingDowncast')['add'](_0x1920eb=>{_0x1920eb['on']('addMarker:suggestion:formatBlock',_0x516a6e(),{'priority':'high'});}),_0x236a90['conversion']['for']('editingDowncast')['add'](_0x265c97=>{_0x265c97['on']('addMarker:suggestion:attribute',_0x516a6e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x236a90['conversion']['for']('editingDowncast')['add'](_0x470f64=>{_0x470f64['on']('removeMarker:suggestion:formatBlock',(_0xdfa3b4,_0x5a38b9,_0x476001)=>{const _0x4c1e4e=_0x476001['mapper']['markerNameToElements'](_0x5a38b9['markerName']);if(_0x4c1e4e){for(const _0x21ad1b of _0x4c1e4e)_0x21ad1b['getCustomProperty']('addHighlight')||(_0x476001['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x21ad1b),_0x476001['writer']['removeAttribute']('data-suggestion',_0x21ad1b),_0x476001['writer']['removeAttribute']('data-author-id',_0x21ad1b),_0x476001['mapper']['unbindElementFromMarkerName'](_0x21ad1b,_0x5a38b9['markerName']));}},{'priority':'high'});}),_0x236a90['conversion']['for']('editingDowncast')['add'](_0x226007=>{_0x226007['on']('removeMarker:suggestion:attribute',(_0x3aa953,_0x47cccd,_0xc172ef)=>{const _0x13be75=_0xc172ef['mapper']['markerNameToElements'](_0x47cccd['markerName']);if(!_0x13be75)return;const {id:_0x3499d9}=this['_splitMarkerName'](_0x47cccd['markerName']),_0x56c703=this['_suggestions']['get'](_0x3499d9),_0x7f952b=this['_getAttributeKey'](_0x56c703);if(this['_isBlockAttribute'](_0x7f952b)){for(const _0x3ab2e0 of _0x13be75)_0x3ab2e0['getCustomProperty']('addHighlight')||(_0xc172ef['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3ab2e0),_0xc172ef['writer']['removeAttribute']('data-suggestion',_0x3ab2e0),_0xc172ef['writer']['removeAttribute']('data-author-id',_0x3ab2e0),_0xc172ef['mapper']['unbindElementFromMarkerName'](_0x3ab2e0,_0x47cccd['markerName']));}},{'priority':'high'});}),_0x236a90['model']['document']['registerPostFixer'](_0x48ce19=>{let _0x286aeb=!0x1;const _0x50aae7=Array['from'](_0x236a90['model']['document']['differ']['getChangedMarkers']()),_0x377b46=new Set();for(const {name:_0x47fc23,data:_0x26fa5e}of _0x50aae7){const {group:_0x390df0,type:_0x2a9ee1,subType:_0x1638fe,id:_0xfacd4d}=this['_splitMarkerName'](_0x47fc23);if('suggestion'!==_0x390df0)continue;const _0x27bcde=this['_suggestions']['get'](_0xfacd4d);if(null!=_0x26fa5e['newRange']){'formatInline'==_0x2a9ee1&&(_0x286aeb=_0x286aeb||Lt(_0x26fa5e['newRange'],_0x47fc23,_0x48ce19,_0x236a90['model']['schema']));const _0x707966='attribute'==_0x2a9ee1&&this['_isBlockAttribute'](_0x1638fe['split']('|')[0x0]);if(_0x26fa5e['newRange']['isCollapsed']||'$graveyard'==_0x26fa5e['newRange']['root']['rootName']||'formatBlock'==_0x2a9ee1&&!Kt(_0x26fa5e['newRange'])||_0x707966&&!Kt(_0x26fa5e['newRange'])||'deletion'==_0x2a9ee1&&!(!Gt(_0x229c80=_0x26fa5e['newRange'])&&!function(_0x1c981a){return _0x1c981a['start']['parent']==_0x1c981a['end']['nodeBefore']&&_0x1c981a['start']['isAtEnd'];}(_0x229c80)))_0x48ce19['removeMarker'](_0x47fc23),_0x286aeb=!0x0;else{if(!_0x27bcde||!_0x27bcde['isInContent'])continue;if(_0x26fa5e['newRange']&&_0x26fa5e['oldRange']&&_0x26fa5e['newRange']['isEqual'](_0x26fa5e['oldRange']))continue;_0x377b46['add'](_0x27bcde);}}}var _0x229c80;return _0x377b46['size']>0x0&&(_0x286aeb=!!this['_joinWithAdjacentSuggestions'](_0x377b46)||_0x286aeb),_0x286aeb;}),_0x236a90['model']['document']['registerPostFixer'](_0x241db6=>{let _0x2214e0=!0x1;for(const _0xfff78e of _0x236a90['model']['document']['differ']['getChanges']())if('insert'==_0xfff78e['type'])for(const _0x100b13 of this['_suggestions']['values']()){if(_0x100b13['isMultiRange']||!_0x100b13['isInContent'])continue;const _0x34d917='formatBlock'==_0x100b13['type'],_0x3a76c8=this['_getAttributeKey'](_0x100b13),_0x38d5b1=_0x3a76c8&&this['_isBlockAttribute'](_0x3a76c8);if(!_0x34d917&&!_0x38d5b1)continue;const _0x5a6a38=_0x100b13['getFirstRange']();if(_0x5a6a38['start']['parent']!=_0x5a6a38['end']['parent']&&!_0x5a6a38['end']['isAtEnd']){const _0x1c3f91=_0x236a90['model']['createPositionAt'](_0x5a6a38['start']['nodeAfter'],'end'),_0x1ee40a=_0x236a90['model']['createRange'](_0x5a6a38['start'],_0x1c3f91);_0x241db6['updateMarker'](_0x100b13['getFirstMarker'](),{'range':_0x1ee40a}),_0x2214e0=!0x0;}}return _0x2214e0;}),_0x236a90['model']['document']['registerPostFixer'](_0x19aeb2=>this['_processAttributeChanges'](_0x19aeb2)),_0x236a90['model']['document']['registerPostFixer'](_0x594003=>!_0x594003['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x594003)),_0x236a90['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x236a90['model']['document']['on']('change:data',(_0x817efe,_0xfee1a8)=>{if(!_0xfee1a8['isLocal']||_0xfee1a8['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x26a1e6=_0x236a90['model']['document']['differ']['getChanges']();if(0x0==_0x26a1e6['length'])return;const _0x341607=[],_0xe957e6=_0x26a1e6['filter'](_0x2fcc89=>'attribute'==_0x2fcc89['type']),_0x515572=_0x26a1e6['filter'](_0x3a950a=>'insert'==_0x3a950a['type']&&'$text'!=_0x3a950a['name']);for(const _0x5a6c87 of _0xe957e6)this['_isRegisteredAttribute'](_0x5a6c87['attributeKey'])&&_0x341607['push']({'key':_0x5a6c87['attributeKey'],'newValue':_0x5a6c87['attributeNewValue'],'oldValue':_0x5a6c87['attributeOldValue'],'range':Ht(_0x5a6c87['range'],_0x236a90['model'])});for(const _0x5dec17 of _0x515572){if('rename'!=_0x5dec17['action']&&'refresh'!=_0x5dec17['action'])continue;const _0x49619f=qt(_0x5dec17['position']['nodeAfter'],_0x236a90['model']),_0x49560e=_0x5dec17['before'];'rename'==_0x5dec17['action']&&_0x341607['push']({'key':u,'newValue':_0x5dec17['name'],'oldValue':_0x49560e['name'],'range':_0x49619f});for(const [_0x5e923e,_0x2905d8]of _0x49560e['attributes']){if(!this['_isRegisteredAttribute'](_0x5e923e))continue;const _0x542361=_0x5dec17['attributes']['get'](_0x5e923e);_0x2905d8!==_0x542361&&_0x341607['push']({'key':_0x5e923e,'newValue':_0x542361,'oldValue':_0x2905d8,'range':_0x49619f});}for(const [_0x2db9fe,_0x1f736d]of _0x5dec17['attributes'])this['_isRegisteredAttribute'](_0x2db9fe)&&(_0x49560e['attributes']['has'](_0x2db9fe)||_0x341607['push']({'key':_0x2db9fe,'newValue':_0x1f736d,'oldValue':null,'range':_0x49619f}));}0x0!=_0x341607['length']&&_0x236a90['model']['enqueueChange'](_0xfee1a8,_0x495381=>{const _0x1b1022=_0x5310dd();for(const {range:_0x12812e,key:_0x2f961a,oldValue:_0x3a83c5,newValue:_0x468c}of _0x341607)this['markAttributeChange'](_0x12812e,_0x2f961a,_0x3a83c5,_0x468c,{'groupId':_0x1b1022});this['_reduceExistingSuggestions'](_0x495381,_0x341607);});},{'priority':'lowest'}),_0x236a90['model']['markers']['on']('update:suggestion',(_0x1defa4,_0x1d5d91,_0x52b951)=>{if(null==_0x52b951){const {id:_0x17afca}=this['_splitMarkerName'](_0x1d5d91['name']),_0x3c901f=this['_suggestions']['get'](_0x17afca);_0x3c901f&&_0x3c901f['addMarkerName'](_0x1d5d91['name']);}}),_0x236a90['model']['document']['on']('change:data',()=>{const _0x950b78=Array['from'](_0x236a90['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5c5051=>'suggestion'===this['_splitMarkerName'](_0x5c5051['name'])['group']);if(0x0===_0x950b78['length'])return;_0x950b78['sort']((_0x1989f3,_0x14ff54)=>{const _0x38606a=_0x1989f3['data']['oldRange'],_0x259a00=_0x14ff54['data']['oldRange'];return null===_0x38606a&&null===_0x259a00?0x0:null===_0x38606a&&null!==_0x259a00?-0x1:null!==_0x38606a&&null===_0x259a00?0x1:_0x38606a['start']['isBefore'](_0x259a00['start'])?-0x1:0x1;});const _0x149475=new Set(),_0x47258d=new Set();for(const {name:_0x30ca30,data:_0x197749}of _0x950b78){const {id:_0x23fadd}=this['_splitMarkerName'](_0x30ca30);if(null===_0x197749['oldRange']){const _0x55fcc8=this['_handleNewSuggestionMarker'](_0x30ca30);_0x47258d['add'](_0x55fcc8);}else{const _0x499246=this['_suggestions']['get'](_0x23fadd);null!==_0x197749['newRange']||_0x499246['isInContent']?(_0x149475['add'](_0x499246['head']),_0x47258d['add'](_0x499246)):this['_removeSuggestion'](_0x499246);}}_0x47258d['size']>0x0&&this['_refreshSuggestionsChain'](_0x47258d);for(const _0x37bec2 of _0x149475)this['fire']('suggestionChanged',_0x37bec2);}),_0x236a90['model']['on']('applyOperation',(_0x50cfbd,_0x5c07f0)=>{const _0x1c34cd=_0x5c07f0[0x0];if(!this['_suggestions']['size'])return;if(!_0x1c34cd['isDocumentOperation'])return;if(_0x1c34cd['batch']['isUndo']||!_0x1c34cd['batch']['isLocal'])return;let _0x599fb0,_0x1e10e8;switch(_0x1c34cd['type']){case'insert':_0x599fb0=_0x236a90['model']['createPositionAt'](_0x1c34cd['position']),_0x1e10e8=_0x599fb0['getShiftedBy'](_0x1c34cd['howMany']);break;case'split':_0x599fb0=_0x236a90['model']['createPositionAt'](_0x1c34cd['splitPosition']),_0x1e10e8=_0x236a90['model']['createPositionAt'](_0x1c34cd['moveTargetPosition']);break;case'move':_0x599fb0=_0x236a90['model']['createPositionAt'](_0x1c34cd['targetPosition']),_0x1e10e8=_0x599fb0['getShiftedBy'](_0x1c34cd['howMany']);break;default:return;}const _0x394e27=_0x236a90['model']['createRange'](_0x599fb0,_0x1e10e8);_0x236a90['model']['change'](()=>{for(const {suggestion:_0x2911c8,meta:_0xc98454}of this['_findSuggestions'](_0x394e27)){if(_0x2911c8['isMultiRange'])continue;if('formatInline'==_0x2911c8['type'])continue;const _0x37fe9d=this['_getAttributeKey'](_0x2911c8);if(_0x37fe9d&&this['_isBlockAttribute'](_0x37fe9d)&&'split'!=_0x1c34cd['type'])continue;const _0x4e343d=_0x2911c8['data']&&_0x2911c8['data']['multipleBlocks'];('formatBlock'!=_0x2911c8['type']||'split'==_0x1c34cd['type']&&!_0x4e343d)&&(_0xc98454['containsRangeInObject']||'insertion'==_0x2911c8['type']&&_0xc98454['isOwn']||_0x2911c8['getFirstRange']()['containsRange'](_0x394e27)&&this['_breakSuggestionMarker'](_0x2911c8,_0x599fb0,_0x1e10e8));}});},{'priority':'lowest'}),_0x236a90['model']['on']('deleteContent',(_0x4bddc1,_0x4702b0)=>{const _0x363f04=_0x4702b0[0x0],_0x1b9db5=_0x4702b0[0x1];if(_0x1b9db5&&_0x1b9db5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x363f04['isCollapsed'])return;const _0x1c2083=_0x236a90['model']['schema'],{start:_0x1be308,end:_0x7b1e8b}=_0x363f04['getFirstRange'](),_0x2bcc15=_0x1be308['nodeAfter']&&_0x1c2083['isLimit'](_0x1be308['nodeAfter'])?null:_0x1c2083['getNearestSelectionRange'](_0x1be308,'forward'),_0x2f5ff0=_0x7b1e8b['nodeBefore']&&_0x1c2083['isLimit'](_0x7b1e8b['nodeBefore'])?null:_0x1c2083['getNearestSelectionRange'](_0x7b1e8b,'backward'),_0x446ded=_0x236a90['model']['createRange'](_0x2bcc15?_0x2bcc15['start']:_0x1be308,_0x2f5ff0?_0x2f5ff0['end']:_0x7b1e8b);_0x236a90['model']['change'](_0x458d9f=>{this['markDeletion'](_0x446ded);const _0x3a29b3=_0x236a90['model']['schema']['getNearestSelectionRange'](_0x446ded['start']);_0x363f04['is']('documentSelection')?_0x458d9f['setSelection'](_0x3a29b3):_0x363f04['setTo'](_0x3a29b3);}),_0x4bddc1['stop']();},{'priority':_0x2800bb['normal']+0xa}),_0x236a90['model']['on']('insertContent',(_0x5dcf42,_0x3fe036)=>{const _0x57db29=_0x3fe036[_0x3fe036['length']-0x1];_0x57db29&&_0x57db29['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x236a90['model']['change'](()=>{let _0x5c55cb=_0x236a90['model']['insertContent'](_0x3fe036[0x0],_0x3fe036[0x1],_0x3fe036[0x2],{'forceDefaultExecution':!0x0});if(!_0x5c55cb)return;_0x5dcf42['return']=_0x5c55cb['clone']();const _0x3582e4=_0x5c55cb['end']['nodeBefore'],_0x319783=_0x236a90['model']['schema'];_0x3582e4&&_0x319783['isBlock'](_0x3582e4)&&!_0x319783['isObject'](_0x3582e4)&&(_0x5c55cb=_0x236a90['model']['createRange'](_0x5c55cb['start'],_0x236a90['model']['createPositionAt'](_0x3582e4,'end'))),this['markInsertion'](_0x5c55cb);}),_0x5dcf42['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3116e3=new O(_0x236a90,this['_suggestions']);_0x236a90['commands']['add']('acceptSuggestion',_0x3116e3),this['enableCommand']('acceptSuggestion');const _0x234b66=new R(_0x236a90,this['_suggestions']);_0x236a90['commands']['add']('discardSuggestion',_0x234b66),this['enableCommand']('discardSuggestion'),_0x236a90['commands']['add']('acceptAllSuggestions',new x(_0x236a90,_0x3116e3,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x236a90['commands']['add']('discardAllSuggestions',new x(_0x236a90,_0x234b66,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x236a90['commands']['add']('acceptSelectedSuggestions',new E(_0x236a90,_0x3116e3,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x236a90['commands']['add']('discardSelectedSuggestions',new E(_0x236a90,_0x234b66,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x423afa=_0x236a90['plugins']['get']('CommentsRepository');this['listenTo'](_0x423afa,'addComment',(_0xe31801,{threadId:_0x1d6670})=>{const _0x2c6895=this['_suggestions']['get'](_0x1d6670);_0x2c6895&&_0x2c6895['commentThread']&&0x1===_0x2c6895['commentThread']['length']&&this['_updateSuggestionData'](_0x1d6670,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x423afa,'removeComment',(_0x4b628c,{threadId:_0x3b4c81})=>{const _0x359385=this['_suggestions']['get'](_0x3b4c81);_0x359385&&_0x359385['commentThread']&&!_0x359385['commentThread']['length']&&this['_updateSuggestionData'](_0x3b4c81,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x37e4e8){const _0x31e2fa=_0xa6eea0([0x75,0x64,0x35,0x7a,0x42,0x6d,0x56,0x62,0x50,0x59,0x63,0x43,0x4b,0x30,0x33,0x46,0x4a,0x37,0x6b,0x78,0x76,0x52,0x45,0x53,0x72,0x65,0x47,0x69,0x41,0x66,0x6f,0x39,0x68,0x5a,0x6a,0x36,0x55,0x38,0x54,0x74,0x73,0x67,0x71,0x49,0x77,0x61,0x34,0x79,0x6c,0x4e,0x51,0x4f,0x4c,0x6e,0x48,0x44,0x31,0x70,0x32,0x57,0x4d,0x58]),_0x5aa0c4=0x7b2916ff,_0x2dd4f3=0x7b2e778f^_0x5aa0c4,_0x1cadef=window[_0xa6eea0([0x44,0x61,0x74,0x65])][_0xa6eea0([0x6e,0x6f,0x77])](),_0xd0c284=_0x37e4e8[_0xa6eea0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5da2b3=new window[(_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x316eb4=>{_0xd0c284[_0xa6eea0([0x6f,0x6e,0x63,0x65])](_0xa6eea0([0x72,0x65,0x61,0x64,0x79]),_0x316eb4);}),_0x42f385={[_0xa6eea0([0x6b,0x74,0x79])]:_0xa6eea0([0x45,0x43]),[_0xa6eea0([0x75,0x73,0x65])]:_0xa6eea0([0x73,0x69,0x67]),[_0xa6eea0([0x63,0x72,0x76])]:_0xa6eea0([0x50,0x2d,0x32,0x35,0x36]),[_0xa6eea0([0x78])]:_0xa6eea0([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]),[_0xa6eea0([0x79])]:_0xa6eea0([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]),[_0xa6eea0([0x61,0x6c,0x67])]:_0xa6eea0([0x45,0x53,0x32,0x35,0x36])},_0x401b28=_0xd0c284[_0xa6eea0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa6eea0([0x67,0x65,0x74])](_0xa6eea0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5caf6c(){let _0x12e867,_0x5728a6=null,_0x89cdc4=null;try{if(_0x401b28==_0xa6eea0([0x47,0x50,0x4c]))return _0xa6eea0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12e867=_0x354e53(),!_0x12e867)return _0xa6eea0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x12e867[_0xa6eea0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x89cdc4=_0xde57c(_0x12e867[_0xa6eea0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12e867[_0xa6eea0([0x6a,0x74,0x69])])),await _0x2a8956()?_0x1cbec8()?_0x1b3397()?_0xa6eea0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x579f87()?(_0x12e867[_0xa6eea0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa6eea0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5728a6=_0x5bbbd9(_0xa6eea0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x12e867[_0xa6eea0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa6eea0([0x74,0x72,0x69,0x61,0x6c])&&(_0x5728a6=_0x5bbbd9(_0xa6eea0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5f4cdc()):_0xa6eea0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa6eea0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa6eea0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x558fdc){return _0xa6eea0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1b3397(){const _0x4930b0=[_0xa6eea0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa6eea0([0x74,0x72,0x69,0x61,0x6c])][_0xa6eea0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12e867[_0xa6eea0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1cadef/0x3e8:0xe10*_0x2dd4f3;return _0x12e867[_0xa6eea0([0x65,0x78,0x70])]<_0x4930b0;}function _0x1cbec8(){const _0x5773b4=_0x12e867[_0xa6eea0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5773b4)return!0x1;if(_0x5773b4[_0xa6eea0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa6eea0([0x2a])))return!0x0;if(_0x5773b4[_0xa6eea0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa6eea0([0x54,0x43])))return!0x0;if(_0x5773b4[_0xa6eea0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa6eea0([0x52,0x54,0x43]))){if(_0x4b05de())return!0x0;if(_0x221bc5()||_0x4d69ae())return!0x0;}return!0x1;}function _0x579f87(){const _0x2d3816=_0x12e867[_0xa6eea0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2d3816||0x0==_0x2d3816[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xfd627f}=new URL(window[_0xa6eea0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2d3816[_0xa6eea0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfd627f))return!0x0;const _0x56441d=_0xfd627f[_0xa6eea0([0x73,0x70,0x6c,0x69,0x74])](_0xa6eea0([0x2e]));return _0x2d3816[_0xa6eea0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52719f=>_0x52719f[_0xa6eea0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa6eea0([0x2a])))[_0xa6eea0([0x6d,0x61,0x70])](_0x121486=>_0x121486[_0xa6eea0([0x73,0x70,0x6c,0x69,0x74])](_0xa6eea0([0x2e])))[_0xa6eea0([0x73,0x6f,0x6d,0x65])](_0x5218ae=>_0x56441d[_0xa6eea0([0x65,0x76,0x65,0x72,0x79])]((_0x40dee6,_0x118580)=>_0x5218ae[_0x118580]===_0x40dee6||_0x5218ae[_0x118580]===_0xa6eea0([0x2a])));}function _0x5f4cdc(){return _0x5728a6&&_0x89cdc4?new window[(_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d616a,_0x3ae4ae)=>{_0x5728a6[_0xa6eea0([0x74,0x68,0x65,0x6e])](_0x4d616a,_0x3ae4ae),_0x89cdc4[_0xa6eea0([0x74,0x68,0x65,0x6e])](_0x100ebf=>{_0x100ebf!=_0xa6eea0([0x56,0x61,0x6c,0x69,0x64])&&_0x4d616a(_0x100ebf);},_0x3ae4ae);}):_0x5728a6||_0x89cdc4||_0xa6eea0([0x56,0x61,0x6c,0x69,0x64]);}}function _0xde57c(_0x15476d,_0x5547ef){return new window[(_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b4b94=>{if(_0x523334())return _0x5b4b94(_0xa6eea0([0x56,0x61,0x6c,0x69,0x64]));_0x877937(),_0xd0c284[_0xa6eea0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa6eea0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f7fc9=!0x1;const _0x253e4a=_0x5310dd();function _0x4e1ece(_0x5e4901){return!!_0x5e4901&&(typeof _0x5e4901===_0xa6eea0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e4901===_0xa6eea0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e4901[_0xa6eea0([0x74,0x68,0x65,0x6e])]===_0xa6eea0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e4901[_0xa6eea0([0x63,0x61,0x74,0x63,0x68])]===_0xa6eea0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1a2025(_0x18fdcb){_0x37172b(_0x18fdcb)[_0xa6eea0([0x74,0x68,0x65,0x6e])](_0x47c4ec=>{if(!_0x47c4ec||_0x47c4ec[_0xa6eea0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa6eea0([0x6f,0x6b]))return _0xa6eea0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x23654b(_0x40b67e(_0x253e4a+_0x5547ef))!=_0x47c4ec[_0xa6eea0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa6eea0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa6eea0([0x56,0x61,0x6c,0x69,0x64]);})[_0xa6eea0([0x74,0x68,0x65,0x6e])](_0x4a7902=>(_0x44634a(),_0x4a7902),()=>{const _0x2c90d7=_0x54e77d();return null==_0x2c90d7?(_0x44634a(),_0xa6eea0([0x56,0x61,0x6c,0x69,0x64])):_0xa6eea0(_0x1cadef-_0x2c90d7>(0x5f2592ff^_0x5aa0c4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa6eea0([0x74,0x68,0x65,0x6e])](_0x5b4b94)[_0xa6eea0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b4b94(_0xa6eea0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xef70db=0x7b1ff87f^_0x5aa0c4;function _0x44634a(){const _0x5bffc3=_0xa6eea0([0x6c,0x6c,0x63,0x74,0x2d])+_0x23654b(_0x40b67e(_0x15476d)),_0x26cd65=_0x4b294a(_0x23654b(window[_0xa6eea0([0x4d,0x61,0x74,0x68])][_0xa6eea0([0x63,0x65,0x69,0x6c])](_0x1cadef/_0xef70db)));window[_0xa6eea0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa6eea0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bffc3,_0x26cd65);}function _0x54e77d(){const _0x32736f=_0xa6eea0([0x6c,0x6c,0x63,0x74,0x2d])+_0x23654b(_0x40b67e(_0x15476d)),_0x3a40ac=window[_0xa6eea0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa6eea0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32736f);return _0x3a40ac?window[_0xa6eea0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b294a(_0x3a40ac),0x10)*_0xef70db:null;}function _0x37172b(_0x44fdaf){return new window[(_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x100df5,_0x433f97)=>{_0x44fdaf[_0xa6eea0([0x74,0x68,0x65,0x6e])](_0x100df5,_0x433f97),window[_0xa6eea0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x433f97,0x7b28c23f^_0x5aa0c4);});}}_0xd0c284[_0xa6eea0([0x6f,0x6e])](_0xa6eea0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5af6d0,_0xa45a6f)=>{if(_0xa45a6f[0x0]!=_0x15476d)return _0x5b4b94(_0xa6eea0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa45a6f[0x1]={..._0xa45a6f[0x1],[_0xa6eea0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x253e4a};},{[_0xa6eea0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa6eea0([0x68,0x69,0x67,0x68])}),_0xd0c284[_0xa6eea0([0x6f,0x6e])](_0xa6eea0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55ffac=>{_0x4e1ece(_0x55ffac[_0xa6eea0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f7fc9=!0x0,_0x1a2025(_0x55ffac[_0xa6eea0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa6eea0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa6eea0([0x6c,0x6f,0x77])}),_0x5da2b3[_0xa6eea0([0x74,0x68,0x65,0x6e])](()=>{_0x2f7fc9||_0x5b4b94(_0xa6eea0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x523334(){return _0xd0c284[_0xa6eea0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa6eea0([0x76,0x69,0x65,0x77])][_0xa6eea0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa6eea0([0x61,0x75,0x74,0x6f]);}function _0x877937(){_0xd0c284[_0xa6eea0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa6eea0([0x76,0x69,0x65,0x77])][_0xa6eea0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa6eea0([0x61,0x75,0x74,0x6f]);}}function _0x5bbbd9(_0x33715f){const _0xd27d2=[new window[(_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16dd2a=>setTimeout(_0x16dd2a,0x7b202833^_0x5aa0c4)),_0x5da2b3[_0xa6eea0([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d6a02=>{let _0x3f0015=0x0;_0xd0c284[_0xa6eea0([0x6d,0x6f,0x64,0x65,0x6c])][_0xa6eea0([0x6f,0x6e])](_0xa6eea0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x51e4d9,_0x259972)=>{_0x259972[0x0][_0xa6eea0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f0015++,_0x3f0015==(0x7b291707^_0x5aa0c4)&&(_0x1d6a02(),_0x51e4d9[_0xa6eea0([0x6f,0x66,0x66])]());});}))];return window[_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa6eea0([0x72,0x61,0x63,0x65])](_0xd27d2)[_0xa6eea0([0x74,0x68,0x65,0x6e])](()=>_0x33715f);}async function _0x5ec952(){await _0x5da2b3,_0xd0c284[_0xa6eea0([0x6d,0x6f,0x64,0x65,0x6c])][_0xa6eea0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x480e34,_0xd0c284[_0xa6eea0([0x6d,0x6f,0x64,0x65,0x6c])][_0xa6eea0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x480e34,_0xd0c284[_0xa6eea0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa6eea0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b05de(){return _0x408f3c(_0xa6eea0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x88f8bc(_0xa6eea0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xa6eea0([0x73,0x74,0x61,0x74,0x65])]==_0xa6eea0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x221bc5(){return _0x408f3c(_0xa6eea0([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 _0x4d69ae(){return _0x408f3c(_0xa6eea0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x36621a(_0x3ddcd0){const _0x2ed4b1=_0x2b4f48();_0xd0c284[_0x2ed4b1]=_0xa6eea0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ddcd0,_0x3ddcd0!=_0xa6eea0([0x56,0x61,0x6c,0x69,0x64])&&_0x5ec952();}function _0x2b4f48(){const _0x21c420=window[_0xa6eea0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa6eea0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa6eea0([0x6e,0x6f,0x77])]())[_0xa6eea0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa6eea0([0x2e]),'');let _0x103c15=_0xa6eea0([0x75]);for(let _0xf57cf1=0x0;_0xf57cf1<_0x21c420[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf57cf1+=0x2){let _0x3259ec=window[_0xa6eea0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21c420[_0xa6eea0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf57cf1,_0xf57cf1+0x2));_0x3259ec>=_0x31e2fa[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3259ec-=_0x31e2fa[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x103c15+=_0x31e2fa[_0x3259ec];}return _0x103c15;}function _0x354e53(){const _0x492902=_0x401b28[_0xa6eea0([0x73,0x70,0x6c,0x69,0x74])](_0xa6eea0([0x2e]));if(0x3!=_0x492902[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1632d3(_0x492902[0x1]);function _0x1632d3(_0x21a1eb){const _0x2e517c=_0x56a300(_0x21a1eb);return _0x2e517c&&_0x129165()?_0x2e517c:null;function _0x129165(){const _0x5375e9=_0x2e517c[_0xa6eea0([0x6a,0x74,0x69])],_0x18f7c0=window[_0xa6eea0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5375e9[_0xa6eea0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5375e9[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x59f8ee={..._0x2e517c,[_0xa6eea0([0x6a,0x74,0x69])]:_0x5375e9[_0xa6eea0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5375e9[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x59f8ee[_0xa6eea0([0x76,0x63])],_0x40b67e(_0x59f8ee)==_0x18f7c0;}}}async function _0x2a8956(){let _0x1fdc24=!0x0;try{const _0x521d73=_0x401b28[_0xa6eea0([0x73,0x70,0x6c,0x69,0x74])](_0xa6eea0([0x2e])),[_0x2df4f8,_0x3c9d3d,_0x3e56b7]=_0x521d73;return _0xfcb90e(_0x2df4f8),await _0x5e060d(_0x2df4f8,_0x3c9d3d,_0x3e56b7),_0x1fdc24;}catch(_0x169310){return!0x1;}function _0xfcb90e(_0x51d507){const _0x1b3bc4=_0x56a300(_0x51d507);_0x1b3bc4&&_0x1b3bc4[_0xa6eea0([0x61,0x6c,0x67])]==_0xa6eea0([0x45,0x53,0x32,0x35,0x36])||(_0x1fdc24=!0x1);}async function _0x5e060d(_0x32f26e,_0x502ad7,_0x380f61){const _0x4bf594=window[_0xa6eea0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa6eea0([0x66,0x72,0x6f,0x6d])](_0xc00f3c(_0x380f61),_0x499bbe=>_0x499bbe[_0xa6eea0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5b0e1e=new window[(_0xa6eea0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa6eea0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32f26e+_0xa6eea0([0x2e])+_0x502ad7),_0x2cf1a5=window[_0xa6eea0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa6eea0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2cf1a5)return;const _0x40c62e=await _0x2cf1a5[_0xa6eea0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa6eea0([0x6a,0x77,0x6b]),_0x42f385,{[_0xa6eea0([0x6e,0x61,0x6d,0x65])]:_0xa6eea0([0x45,0x43,0x44,0x53,0x41]),[_0xa6eea0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa6eea0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa6eea0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2cf1a5[_0xa6eea0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa6eea0([0x6e,0x61,0x6d,0x65])]:_0xa6eea0([0x45,0x43,0x44,0x53,0x41]),[_0xa6eea0([0x68,0x61,0x73,0x68])]:{[_0xa6eea0([0x6e,0x61,0x6d,0x65])]:_0xa6eea0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40c62e,_0x4bf594,_0x5b0e1e)||(_0x1fdc24=!0x1);}}function _0x56a300(_0x5672a6){return _0x5672a6[_0xa6eea0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa6eea0([0x65,0x79]))?JSON[_0xa6eea0([0x70,0x61,0x72,0x73,0x65])](_0xc00f3c(_0x5672a6)):null;}function _0xc00f3c(_0x19fe66){return window[_0xa6eea0([0x61,0x74,0x6f,0x62])](_0x19fe66[_0xa6eea0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa6eea0([0x2b]))[_0xa6eea0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa6eea0([0x2f])));}function _0x40b67e(_0x17f337){let _0x3ea4ec=0x1505;function _0x58f403(_0x5e7928){for(let _0x5199e6=0x0;_0x5199e6<_0x5e7928[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5199e6++){const _0x502051=_0x5e7928[_0xa6eea0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5199e6);_0x3ea4ec=(_0x3ea4ec<<0x5)+_0x3ea4ec+_0x502051,_0x3ea4ec&=_0x3ea4ec;}}function _0x326b04(_0x3816fa){Array[_0xa6eea0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3816fa)?_0x3816fa[_0xa6eea0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x326b04):_0x3816fa&&typeof _0x3816fa==_0xa6eea0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa6eea0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3816fa)[_0xa6eea0([0x73,0x6f,0x72,0x74])]()[_0xa6eea0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29bac8,_0x3ac13e])=>{_0x58f403(_0x29bac8),_0x326b04(_0x3ac13e);}):_0x58f403(window[_0xa6eea0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3816fa));}return _0x326b04(_0x17f337),_0x3ea4ec>>>0x0;}function _0x23654b(_0x3aef36){return _0x3aef36[_0xa6eea0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa6eea0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa6eea0([0x30]));}function _0x4b294a(_0x128154){return _0x128154[_0xa6eea0([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa6eea0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa6eea0([0x6a,0x6f,0x69,0x6e])]('');}function _0x408f3c(_0x454c7c){return _0xd0c284[_0xa6eea0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa6eea0([0x68,0x61,0x73])](_0x454c7c);}function _0x88f8bc(_0x2b1fc7){return _0xd0c284[_0xa6eea0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa6eea0([0x67,0x65,0x74])](_0x2b1fc7);}function _0x480e34(){}function _0xa6eea0(_0x326191){return _0x326191['map'](_0x3a8b00=>String['fromCharCode'](_0x3a8b00))['join']('');}_0x36621a(await _0x5caf6c());}(this);}set['adapter'](_0x41d23a){if(this['_adapter'])throw new _0x1a1d2d('track-changes-adapter-already-set',this);this['_adapter']=_0x41d23a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2127fc=!0x1,toJSON:_0x117964=!0x1}={}){const _0x7fd0e3=[];for(const _0xd40bff of this['_suggestions']['values']())_0x2127fc&&!_0xd40bff['isInContent']||_0x7fd0e3['push'](_0xd40bff);return _0x117964?_0x7fd0e3['map'](_0x334b0b=>_0x334b0b['toJSON']()):_0x7fd0e3;}['getSuggestion'](_0x3c1f81){const _0x4ac7ce=this['_suggestions']['get'](_0x3c1f81);if(!_0x4ac7ce)throw new _0x1a1d2d('track-changes-suggestion-not-found',this);return _0x4ac7ce;}['hasSuggestion'](_0x5ae0fa){return this['_suggestions']['has'](_0x5ae0fa);}['addSuggestionData'](_0x5d46bf){const {authorId:_0x119b60,id:_0x29998c,attributes:_0x4c6886}=_0x5d46bf,[_0x39ae9e,_0x34d1e7]=_0x5d46bf['type']['split'](':'),_0x619df7=this['_suggestions']['get'](_0x29998c)||this['_createSuggestion'](_0x39ae9e,_0x34d1e7,_0x29998c,_0x119b60,_0x4c6886);if(this['_addThreadToSuggestion'](_0x619df7),this['_checkSuggestionCorrectness'](_0x619df7,_0x39ae9e,_0x34d1e7||null,_0x119b60),_0x619df7['createdAt']=_0x5d46bf['createdAt'],_0x619df7['_isDataLoaded']=!0x0,_0x4c6886&&_0x4c6886['@external']){const _0xdd609a=_0x4c6886['@external'],_0x58b3a8=this['_getExternalAuthor'](_0xdd609a['authorName']);_0x619df7['authoredAt']=_0xdd609a['createdAt'],_0x619df7['author']=_0x58b3a8,_0x619df7['isExternal']=!0x0;}else _0x619df7['authoredAt']=_0x5d46bf['createdAt'];switch(_0x5d46bf['data']&&(_0x619df7['data']=_0x5d46bf['data']),_0x5d46bf['attributes']&&(_0x619df7['attributes']=_0x5d46bf['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x619df7['_saved']=!0x0),this['_suggestionState']['get'](_0x619df7)){case'notReady':this['_suggestionState']['set'](_0x619df7,'dataReady');break;case'markerReady':_0x619df7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x619df7])),this['_refreshSuggestionsChain'](new Set([_0x619df7])),this['_suggestionState']['set'](_0x619df7,'ready'),this['fire']('suggestionLoaded',_0x619df7)):this['_suggestionState']['set'](_0x619df7,'removed');}return _0x619df7;}['acceptSuggestion'](_0x2be8bd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1b8019 of _0x2be8bd['getAllAdjacentSuggestions']())_0x1b8019['accept']();});});}['discardSuggestion'](_0x1256c1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2c2457 of _0x1256c1['getAllAdjacentSuggestions']())_0x2c2457['discard']();});});}['enableCommand'](_0xf1f57f,_0x265c06){const _0x3afe87=this['editor']['commands']['get'](_0xf1f57f);if(!_0x3afe87)throw new _0x1a1d2d('track-changes-command-not-found',this,{'commandName':_0xf1f57f});if(this['_enabledCommands']['has'](_0x3afe87))throw new _0x1a1d2d('track-changes-enable-command-twice',this,{'commandName':_0xf1f57f});this['_enabledCommands']['add'](_0x3afe87),_0x265c06&&_0x3afe87['on']('execute',(_0x2c7133,_0x5279ef)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5279ef['length']>0x0&&_0x5279ef[_0x5279ef['length']-0x1]&&_0x5279ef[_0x5279ef['length']-0x1]['forceDefaultExecution']?_0x5279ef['pop']():(_0x2c7133['return']=_0x265c06((..._0x3acf78)=>_0x3afe87['execute'](..._0x3acf78,{'forceDefaultExecution':!0x0}),..._0x5279ef),_0x2c7133['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x50ad5f){let _0x184f8b,_0x19598e;const _0x766175=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x184f8b=_0x50ad5f();}catch(_0x58bdf5){_0x19598e=_0x58bdf5;}return _0x766175||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x19598e&&_0x1a1d2d['rethrowUnexpectedError'](_0x19598e,this),_0x184f8b;}['markInsertion'](_0x167660,_0x293554=null,_0x1f9877={}){if(_0x167660['isCollapsed'])return null;const _0x169d90=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x44761c,meta:_0x17bd33}of this['_findSuggestions'](_0x167660,'insertion'))if(_0x17bd33['isOwn']){if(!_0x17bd33['isNextTo']){if(_0x17bd33['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x44761c,_0x1f9877))continue;return _0x44761c;}if(Qt(_0x44761c,_0x1f9877))return _0x44761c;this['_breakSuggestionMarker'](_0x44761c,_0x167660['start'],_0x167660['end']);break;}if(_0x293554==_0x44761c['subType']&&Qt(_0x44761c,_0x1f9877)){const _0x852b73=_0x44761c['getFirstRange']();return _0x852b73['start']['isEqual'](_0x167660['end'])?this['_setSuggestionRange'](_0x44761c,this['_model']['createRange'](_0x167660['start'],_0x852b73['end'])):this['_setSuggestionRange'](_0x44761c,this['_model']['createRange'](_0x852b73['start'],_0x167660['end'])),_0x44761c;}}const _0x16629a=_0x5310dd(),_0x204e89=_0x169d90['id'],_0x3e14de=_0x293554?'insertion:'+_0x293554:'insertion',_0x17f822=this['_setSuggestionData']({'id':_0x16629a,'type':_0x3e14de,'createdAt':new Date(),'authorId':_0x204e89,'attributes':_0x1f9877});return this['_addSuggestionMarker'](_0x3e14de,_0x16629a,_0x204e89,_0x167660),_0x17f822;}['markMultiRangeInsertion'](_0x4e075e,_0xe20009='multi',_0x5aa0a0={}){const _0x520075=this['editor']['plugins']['get']('Users')['me'],_0x2c87bf=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xe20009,'join');for(const _0x115ec6 of this['getSuggestions']())if(_0x115ec6['author']['id']==_0x520075['id']&&'insertion'==_0x115ec6['type']&&_0x115ec6['subType']==_0xe20009&&Qt(_0x115ec6,_0x5aa0a0)&&(_0x2c87bf(_0x115ec6['getRanges'](),_0x4e075e)||_0x2c87bf(_0x4e075e,_0x115ec6['getRanges']()))){for(const _0x9de5a of _0x4e075e)_0x115ec6['addRange'](_0x9de5a);return _0x115ec6;}for(const {suggestion:_0x383e76,meta:_0x1dd3ef}of this['_findSuggestions'](_0x4e075e,'insertion')){if(!_0x1dd3ef['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1dd3ef['containsRangeInObject'])continue;if(!Qt(_0x383e76,_0x5aa0a0))continue;let _0x1d3817=!0x0;for(const _0x56e40d of _0x383e76['getRanges']())for(const _0x144a09 of _0x4e075e)if(!_0x56e40d['containsRange'](_0x144a09)){_0x1d3817=!0x1;break;}if(_0x1d3817)return _0x383e76;}const _0x373d11=_0x5310dd(),_0x3f83cd=_0x520075['id'],_0x3bd74e='insertion:'+_0xe20009,_0x5860fc=this['_setSuggestionData']({'id':_0x373d11,'type':_0x3bd74e,'createdAt':new Date(),'authorId':_0x3f83cd,'attributes':_0x5aa0a0});for(const _0x4a7c0d of _0x4e075e)this['_addSuggestionMarker'](_0x3bd74e,_0x373d11,_0x3f83cd,_0x4a7c0d,o['getMultiRangeId']());return _0x5860fc;}['markInlineFormat'](_0x3d241a,_0x64f01e,_0x2a92a2=null,_0x48bf66={}){if(_0x2a92a2=_0x2a92a2||Jt(_0x64f01e),_0x3d241a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1b3a55=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a92a2,'accept');return this['forceDefaultExecution'](()=>_0x1b3a55([_0x3d241a],_0x64f01e,_0x48bf66)),null;}const _0xd25a22=this['editor']['plugins']['get']('Users')['me'],_0x605baf=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2b2b1b,meta:_0x55948b}of this['_findSuggestions'](_0x3d241a,'insertion'))_0x55948b['isOwn']&&!_0x55948b['isInsideObject']&&_0x605baf['push'](..._0x2b2b1b['getRanges']());}const _0x1ff405=function(_0x25a65b,_0x3f2994){const _0x2a24d6=[];for(const _0x53b583 of _0x3f2994){const _0x2a91e8=_0x25a65b['getIntersection'](_0x53b583);_0x2a91e8&&_0x2a24d6['push'](_0x2a91e8);}return _0x2a24d6;}(_0x3d241a,_0x605baf),_0x2903fe=function(_0x51ec71,_0x4bb93b){const _0x448b56=[_0x51ec71];for(const _0x572adc of _0x4bb93b){let _0x4ccfd0=0x0;for(;_0x4ccfd0<_0x448b56['length'];){const _0x32f6d0=_0x448b56[_0x4ccfd0]['getDifference'](_0x572adc);_0x448b56['splice'](_0x4ccfd0,0x1,..._0x32f6d0),_0x4ccfd0+=_0x32f6d0['length'];}}return _0x448b56;}(_0x3d241a,_0x605baf);_0x1ff405['length']&&this['_model']['change'](()=>{for(const _0x187c7a of _0x1ff405){const _0x5de269=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a92a2,'accept');this['forceDefaultExecution'](()=>_0x5de269([_0x187c7a],_0x64f01e,_0x48bf66));}});for(const _0x5013e4 of _0x2903fe){let _0x4e53ea=null,_0x35324c=_0x5013e4['start'],_0x3daebc=_0x5013e4['end'];for(const {suggestion:_0x19b918,meta:_0x2e757e}of this['_findSuggestions'](_0x5013e4,'formatInline')){if(!_0x2e757e['isOwn'])continue;if(_0x19b918['subType']!=_0x2a92a2)continue;if(!Qt(_0x19b918,_0x48bf66))continue;const _0x37d60d=_0x19b918['getFirstRange']();if(_0x37d60d['containsRange'](_0x5013e4,!0x0))return null;_0x35324c=_0x35324c['isBefore'](_0x37d60d['start'])?_0x35324c:_0x37d60d['start'],_0x3daebc=_0x3daebc['isAfter'](_0x37d60d['end'])?_0x3daebc:_0x37d60d['end'],_0x4e53ea?_0x37d60d['start']['isBefore'](_0x4e53ea['getFirstRange']()['start'])?(_0x4e53ea['removeMarkers'](),_0x4e53ea=_0x19b918):_0x19b918['removeMarkers']():_0x4e53ea=_0x19b918;}const _0x3103e6=this['_model']['createRange'](_0x35324c,_0x3daebc);if(_0x4e53ea)this['_setSuggestionRange'](_0x4e53ea,_0x3103e6);else{const _0x3e8dae=_0x5310dd(),_0x1eba0b=_0xd25a22['id'];this['_setSuggestionData']({'id':_0x3e8dae,'type':'formatInline:'+_0x2a92a2,'data':_0x64f01e,'createdAt':new Date(),'authorId':_0x1eba0b,'attributes':_0x48bf66}),this['_addSuggestionMarker']('formatInline:'+_0x2a92a2,_0x3e8dae,_0x1eba0b,_0x3103e6);}}return null;}['markBlockFormat'](_0x58fb13,_0x34f1c9,_0xfdb31b=[],_0x49378e=null,_0x57f86b={}){_0x34f1c9['formatGroupId']||(_0x34f1c9['formatGroupId']=_0x34f1c9['commandName']),_0x34f1c9['multipleBlocks']=_0x58fb13['is']('range'),_0x49378e=_0x49378e||Jt(_0x34f1c9);const _0x5db68e=_0xfdb31b['map'](_0x4186ec=>qt(_0x4186ec,this['_model'])),_0x4ab831=_0x58fb13['is']('range')?_0x58fb13:qt(_0x58fb13,this['_model']);if('never'===this['_trackFormatChanges']){const _0x22c37f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49378e,'accept');return this['forceDefaultExecution'](()=>_0x22c37f([_0x4ab831],_0x34f1c9,_0x57f86b)),null;}_0x5db68e['push'](_0x4ab831);let _0x221a81=!0x0;for(const _0x5caf3d of _0x5db68e)if(!this['_rangeIsInLocalUserInsertion'](_0x5caf3d)){_0x221a81=!0x1;break;}if(_0x221a81&&'always'!==this['_trackFormatChanges']){const _0x3d14e3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49378e,'accept');return this['forceDefaultExecution'](()=>_0x3d14e3([_0x4ab831],_0x34f1c9,_0x57f86b)),null;}let _0x22dc74=null,_0x309ebd=_0x4ab831['start'],_0x43a2ac=_0x4ab831['end'];for(const {suggestion:_0x4847ee,meta:_0x23f133}of this['_findSuggestions'](_0x4ab831,'formatBlock')){if(!_0x23f133['isOwn'])continue;if(_0x23f133['isNextTo']||_0x23f133['containsRangeInObject']||_0x23f133['isInsideObject'])continue;if(_0x4847ee['data']['formatGroupId']!=_0x34f1c9['formatGroupId'])continue;if(!Qt(_0x4847ee,_0x57f86b))continue;const _0x319358=_0x4847ee['getFirstRange']();if(_0x4847ee['subType']==_0x49378e){if(_0x319358['containsRange'](_0x4ab831,!0x0))return null;_0x309ebd=_0x309ebd['isBefore'](_0x319358['start'])?_0x309ebd:_0x319358['start'],_0x43a2ac=_0x43a2ac['isAfter'](_0x319358['end'])?_0x43a2ac:_0x319358['end'],_0x22dc74?_0x319358['start']['isBefore'](_0x22dc74['getFirstRange']()['start'])?(_0x22dc74['removeMarkers'](),_0x22dc74=_0x4847ee):_0x4847ee['removeMarkers']():_0x22dc74=_0x4847ee;}else{const _0x1fc634=_0x4ab831['getIntersection'](_0x319358);this['_cutOutSuggestionMarker'](_0x4847ee,_0x1fc634);}}const _0x544d01=this['editor']['plugins']['get']('Users')['me'],_0x503934=_0x5310dd(),_0x4c196c=_0x544d01['id'];if(_0x22dc74)return this['_setSuggestionRange'](_0x22dc74,this['_model']['createRange'](_0x309ebd,_0x43a2ac)),_0x22dc74;{const _0x476907=this['_setSuggestionData']({'id':_0x503934,'type':'formatBlock:'+_0x49378e,'data':_0x34f1c9,'createdAt':new Date(),'authorId':_0x4c196c,'attributes':_0x57f86b});return this['_addSuggestionMarker']('formatBlock:'+_0x49378e,_0x503934,_0x4c196c,this['_model']['createRange'](_0x309ebd,_0x43a2ac)),_0x476907;}}['markMultiRangeBlockFormat'](_0x4aaf37,_0x233318,_0xfa9aed=[],_0x80ab8b=null,_0x5839ca={}){_0x233318['formatGroupId']||(_0x233318['formatGroupId']=_0x233318['commandName']);const _0x3c2143=_0x4aaf37[0x0];_0x233318['multipleBlocks']=_0x3c2143['is']('range'),_0x80ab8b=_0x80ab8b||Jt(_0x233318);const _0xc95c02=_0xfa9aed['map'](_0x467b07=>qt(_0x467b07,this['_model'])),_0x26743d=_0x3c2143['is']('range')?_0x4aaf37:_0x4aaf37['map'](_0x328bc8=>qt(_0x328bc8,this['_model']));if('never'===this['_trackFormatChanges']){const _0x5792f8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x80ab8b,'accept');return this['forceDefaultExecution'](()=>_0x5792f8(_0x26743d,_0x233318,_0x5839ca)),null;}_0xc95c02['push'](..._0x26743d);let _0x391c69=!0x0;for(const _0x5c1422 of _0xc95c02)if(!this['_rangeIsInLocalUserInsertion'](_0x5c1422)){_0x391c69=!0x1;break;}if(_0x391c69&&'always'!==this['_trackFormatChanges']){const _0x576efb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x80ab8b,'accept');return this['forceDefaultExecution'](()=>_0x576efb(_0x26743d,_0x233318,_0x5839ca)),null;}const _0x494107=this['editor']['plugins']['get']('Users')['me'];for(const _0x20202c of this['getSuggestions']()){if(_0x20202c['author']['id']!=_0x494107['id'])continue;if('formatBlock'!=_0x20202c['type']||_0x20202c['data']['formatGroupId']!=_0x233318['formatGroupId'])continue;if(!Qt(_0x20202c,_0x5839ca))continue;const _0x3032eb=_0x20202c['subType']==_0x80ab8b;for(let _0x5a8002=0x0;_0x5a8002<_0x26743d['length'];_0x5a8002++){const _0xce2284=_0x26743d[_0x5a8002];for(const _0x41e707 of _0x20202c['getMarkers']()){const _0x477287=_0x41e707['getRange']();if(_0xce2284['isEqual'](_0x477287)){_0x3032eb?(_0x26743d['splice'](_0x5a8002,0x1),_0x5a8002--):_0x20202c['removeMarker'](_0x41e707['name']);break;}}}}if(0x0==_0x26743d['length'])return null;const _0x337508=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x80ab8b,'join');for(const _0x56e0f0 of this['getSuggestions']())if(_0x56e0f0['author']['id']==_0x494107['id']&&'formatBlock'==_0x56e0f0['type']&&_0x56e0f0['data']['formatGroupId']==_0x233318['formatGroupId']&&_0x56e0f0['subType']==_0x80ab8b&&Qt(_0x56e0f0,_0x5839ca)&&(_0x337508(_0x56e0f0['getRanges'](),_0x26743d)||_0x337508(_0x26743d,_0x56e0f0['getRanges']()))){for(const _0x3346dd of _0x26743d)_0x56e0f0['addRange'](_0x3346dd);return _0x56e0f0;}const _0x5efbd0=_0x5310dd(),_0x47cfe4=_0x494107['id'],_0x4f1fce='formatBlock:'+_0x80ab8b,_0x1403ba=this['_setSuggestionData']({'id':_0x5efbd0,'type':_0x4f1fce,'data':_0x233318,'createdAt':new Date(),'authorId':_0x47cfe4,'attributes':_0x5839ca});for(const _0x533b2b of _0x26743d)this['_addSuggestionMarker'](_0x4f1fce,_0x5efbd0,_0x47cfe4,_0x533b2b,o['getMultiRangeId']());return _0x1403ba;}['markDeletion'](_0x2c6bc1,_0x429e89=null,_0x2f2771={}){if(_0x2c6bc1['isCollapsed'])return null;const _0x290f55=this['editor']['plugins']['get']('Users')['me'],_0x31b282=new _0x6b53b6(_0x2c6bc1['start'],_0x2c6bc1['end']);for(const {suggestion:_0x3bde4e,meta:_0x4f4cfd}of this['_findSuggestions'](_0x31b282,'insertion'))if(_0x4f4cfd['isOwn']&&!_0x4f4cfd['isNextTo']){if(_0x3bde4e['isMultiRange']){const _0x1e9544=_0x3bde4e['getRanges']()['filter'](_0x24c492=>'$graveyard'!=_0x24c492['root']['rootName']);_0x1e9544['every'](_0x53b61a=>_0x31b282['containsRange'](_0x53b61a,!0x0))&&_0x3bde4e['discard']();if(_0x1e9544['some'](_0x2dc023=>_0x2dc023['containsRange'](_0x31b282,!0x0))){const _0x32d65c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x429e89,'accept');return this['forceDefaultExecution'](()=>_0x32d65c([_0x31b282],null,_0x2f2771)),null;}}else{const _0x27fa59=_0x31b282['getIntersection'](_0x3bde4e['getFirstRange']());null!==_0x27fa59&&_0x3bde4e['_onDiscard']([_0x27fa59],null,_0x2f2771);}}if(_0x31b282['detach'](),_0x31b282['isCollapsed']||'$graveyard'==_0x31b282['root']['rootName'])return null;let _0x8819a3=null,_0x33b4dd=_0x31b282['start'],_0x3bccca=_0x31b282['end'];const _0x3701f9=this['_findSuggestions'](_0x31b282,'deletion');for(const {suggestion:_0x4396b3,meta:_0x5170f2}of _0x3701f9){const _0x5d1daf=this['_model']['createRange'](_0x33b4dd,_0x3bccca);if(_0x5170f2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5170f2['containsRangeInObject']&&!_0x5170f2['isInsideObject'])){if(_0x4396b3['isMultiRange']){if(!Qt(_0x4396b3,_0x2f2771))continue;let _0x2e8222=!0x0;for(const _0x673414 of _0x4396b3['getRanges']()){if(_0x673414['containsRange'](_0x5d1daf,!0x0))return _0x4396b3;_0x5d1daf['containsRange'](_0x673414)||(_0x2e8222=!0x1);}_0x2e8222&&_0x4396b3['discard']();}else{const _0x3cd471=_0x4396b3['getFirstRange']();if(_0x3cd471['containsRange'](_0x5d1daf,!0x0))return _0x4396b3;if(!Qt(_0x4396b3,_0x2f2771)){_0x5d1daf['containsRange'](_0x3cd471)?_0x4396b3['removeMarkers']():_0x3cd471['containsPosition'](_0x33b4dd)?_0x33b4dd=_0x3cd471['end']:_0x3cd471['containsPosition'](_0x3bccca)&&(_0x3bccca=_0x3cd471['start']);continue;}_0x33b4dd=_0x33b4dd['isBefore'](_0x3cd471['start'])?_0x33b4dd:_0x3cd471['start'],_0x3bccca=_0x3bccca['isAfter'](_0x3cd471['end'])?_0x3bccca:_0x3cd471['end'],_0x2f2771=Object['assign']({},_0x4396b3['attributes']),_0x8819a3?_0x3cd471['start']['isBefore'](_0x8819a3['getFirstRange']()['start'])?(_0x8819a3['removeMarkers'](),_0x8819a3=_0x4396b3):_0x4396b3['removeMarkers']():_0x8819a3=_0x4396b3;}}}if(_0x8819a3)return this['_setSuggestionRange'](_0x8819a3,this['_model']['createRange'](_0x33b4dd,_0x3bccca)),_0x8819a3;{const _0x2fdfaf=_0x5310dd(),_0xe0c4f2=this['_model']['createRange'](_0x33b4dd,_0x3bccca),_0x483b7d=_0x290f55['id'],_0x3dfebd=_0x429e89?'deletion:'+_0x429e89:'deletion',_0x39ad86=this['_setSuggestionData']({'id':_0x2fdfaf,'type':_0x3dfebd,'createdAt':new Date(),'authorId':_0x483b7d,'attributes':_0x2f2771});return this['_addSuggestionMarker'](_0x3dfebd,_0x2fdfaf,_0x483b7d,_0xe0c4f2),_0x39ad86;}}['markMultiRangeDeletion'](_0x86c96,_0x46bdd3='multi',_0x7c0232={}){const _0x30d170=this['editor']['plugins']['get']('Users')['me'],_0x201aeb=_0x86c96['map'](_0x16eda5=>new _0x6b53b6(_0x16eda5['start'],_0x16eda5['end'])),_0xb72fd4=new Set();for(const {suggestion:_0x2a3ac8,meta:_0x1c0af3}of this['_findSuggestions'](_0x201aeb,'insertion'))_0x1c0af3['isOwn']&&!_0x1c0af3['isNextTo']&&_0xb72fd4['add'](_0x2a3ac8);for(const _0x22c394 of _0xb72fd4)if(_0x22c394['isMultiRange']){const _0x3cafb1=_0x22c394['getRanges']();(!_0x22c394['attributes']||!_0x22c394['attributes']['skipNestingCheck'])&&(_0x3cafb1['every'](_0x1ef503=>_0x201aeb['some'](_0x53088a=>_0x53088a['containsRange'](_0x1ef503,!0x0)))&&_0x22c394['discard']());if(_0x201aeb['every'](_0x211af7=>_0x3cafb1['some'](_0x3786f1=>_0x3786f1['containsRange'](_0x211af7,!0x0)))){const _0x2479e3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46bdd3,'accept');return this['forceDefaultExecution'](()=>_0x2479e3(_0x86c96,null,_0x7c0232)),null;}}else{const _0x39b1fc=_0x22c394['getFirstRange']();_0x201aeb['some'](_0x455e2b=>_0x455e2b['containsRange'](_0x39b1fc,!0x0))&&_0x22c394['discard']();if(_0x201aeb['every'](_0x43d771=>_0x39b1fc['containsRange'](_0x43d771,!0x0))){const _0x2753f0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46bdd3,'accept');return this['forceDefaultExecution'](()=>_0x2753f0(_0x201aeb,null,_0x7c0232)),null;}}const _0x58d513=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46bdd3,'join');let _0x37e6db=null;for(const _0x16e858 of this['getSuggestions']())if(_0x16e858['author']['id']==_0x30d170['id']&&_0x16e858['isInContent']&&'deletion'==_0x16e858['type']&&_0x16e858['subType']==_0x46bdd3&&Qt(_0x16e858,_0x7c0232)&&(_0x58d513(_0x16e858['getRanges'](),_0x201aeb)||_0x58d513(_0x201aeb,_0x16e858['getRanges']()))){if(_0x37e6db){if(_0x16e858['commentThread']&&_0x16e858['commentThread']['length'])continue;for(const _0x4ee853 of _0x16e858['getRanges']())_0x37e6db['isIntersectingWithRange'](_0x4ee853)||_0x37e6db['addRange'](_0x4ee853);_0x16e858['removeMarkers']();}else{_0x37e6db=_0x16e858;for(const _0x287ca2 of _0x201aeb)_0x16e858['isIntersectingWithRange'](_0x287ca2)||_0x16e858['addRange'](_0x287ca2);}}if(_0x37e6db)return _0x37e6db;_0xb72fd4['clear']();for(const {suggestion:_0x1ff578,meta:_0x28d01e}of this['_findSuggestions'](_0x201aeb,'deletion'))_0x28d01e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x28d01e['containsRangeInObject']&&!_0x28d01e['isInsideObject'])&&Qt(_0x1ff578,_0x7c0232)&&_0xb72fd4['add'](_0x1ff578);for(const _0x531d36 of _0xb72fd4){const _0xd9becf=_0x531d36['getRanges']();if(!_0x7c0232||!_0x7c0232['skipNestingCheck']){if(_0x201aeb['every'](_0x200d50=>_0xd9becf['some'](_0x5f13f5=>_0x5f13f5['containsRange'](_0x200d50,!0x0))))return _0x531d36;}(!_0x531d36['attributes']||!_0x531d36['attributes']['skipNestingCheck'])&&(_0xd9becf['every'](_0x45de7e=>_0x201aeb['some'](_0x38ed83=>_0x38ed83['containsRange'](_0x45de7e,!0x0)))&&_0x531d36['discard']());}const _0x3fcb93=_0x5310dd(),_0x323358=_0x30d170['id'],_0x5e7060='deletion:'+_0x46bdd3,_0x281c60=this['_setSuggestionData']({'id':_0x3fcb93,'type':_0x5e7060,'createdAt':new Date(),'authorId':_0x323358,'attributes':_0x7c0232});for(const _0x3a087 of _0x201aeb)_0x3a087['detach'](),_0x3a087['isCollapsed']||'$graveyard'==_0x3a087['root']['rootName']||this['_addSuggestionMarker'](_0x5e7060,_0x3fcb93,_0x323358,_0x3a087,o['getMultiRangeId']());return _0x281c60;}['markAttributeChange'](_0x26ff1d,_0x4e013e,_0x149536,_0x2c93d9,_0x3c3e50){if(_0x26ff1d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x464b10=this['editor']['plugins']['get']('Users')['me']['id'],_0x18b6a3=Array['from'](this['_suggestions']['values']())['filter'](_0x3ebb3c=>'attribute'==_0x3ebb3c['type']&&_0x3ebb3c['data']['key']==_0x4e013e&&_0x3ebb3c['isIntersectingWithRange'](_0x26ff1d));if('default'===this['_trackFormatChanges']){const _0x1314bf=this['_findSuggestions'](_0x26ff1d,'insertion')['filter'](({meta:_0x121273})=>_0x121273['isOwn']&&!_0x121273['isInsideObject']&&!_0x121273['isNextTo'])['map'](({suggestion:_0x4c661c})=>_0x4c661c);_0x18b6a3['unshift'](..._0x1314bf);}const _0x389173=new Map([[_0x26ff1d,_0x149536]]);for(const _0x5d26cd of _0x18b6a3){const _0x112dfe='attribute'==_0x5d26cd['type']?_0x5d26cd['data']['oldValue']:void 0x0,_0x123ae8=_0x5d26cd['getFirstRange'](),_0x1ebfed=Array['from'](_0x389173['keys']())['find'](_0x453b42=>_0x453b42['isIntersecting'](_0x123ae8));if(!_0x1ebfed)continue;const _0x2e1e1d=_0x1ebfed['getDifference'](_0x123ae8);this['_isBlockAttribute'](_0x4e013e)&&'insertion'==_0x5d26cd['type']&&0x0!=_0x2e1e1d['length']||(_0x389173['delete'](_0x1ebfed),_0x2e1e1d['forEach'](_0x137029=>{_0x389173['set'](_0x137029,_0x149536);}),'insertion'!=_0x5d26cd['type']&&_0x112dfe!=_0x2c93d9&&_0x389173['set'](_0x1ebfed['getIntersection'](_0x123ae8),_0x112dfe));}const _0x56461a=[];for(const [_0x200abc,_0x830fa5]of _0x389173){const _0x3d7065=_0x5310dd(),_0x47d6f2={'key':_0x4e013e,'oldValue':_0x830fa5,'newValue':_0x2c93d9};_0x4e013e['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':_0x4e013e});const _0x9afdf6=('attribute:'+(_0x4e013e+'|'+Jt({'newValue':_0x2c93d9})))['substring'](0x0,0x3c),_0x190ffb=this['_setSuggestionData']({'id':_0x3d7065,'type':_0x9afdf6,'data':_0x47d6f2,'createdAt':new Date(),'authorId':_0x464b10,'attributes':_0x3c3e50});_0x56461a['push'](_0x190ffb),this['_addSuggestionMarker'](_0x9afdf6,_0x3d7065,_0x464b10,_0x200abc);}return _0x56461a;}['enableDefaultAttributesIntegration'](_0xaadeb){this['enableCommand'](_0xaadeb,(_0x22e6f7,..._0x29af37)=>{this['_recordAttributeChanges'](()=>{_0x22e6f7(..._0x29af37);});});}['registerBlockAttribute'](_0x854fab){this['_blockAttributeKeys']['add'](_0x854fab);}['registerInlineAttribute'](_0x25c1c7){this['_inlineAttributeKeys']['add'](_0x25c1c7);}['_getAttributeKey'](_0x12e146){return'attribute'==_0x12e146['type']?_0x12e146['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5ab58a,_0x45cb96){const _0x5a53f4=_0x5ab58a['getFirstMarker']();this['_model']['change'](_0x2385d5=>{_0x2385d5['updateMarker'](_0x5a53f4,{'range':_0x45cb96});});}['_addThreadToSuggestion'](_0x48ccc6){const _0x47b1dc=_0x48ccc6['id'],_0x10107f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x47b1dc)||this['_commentsRepository']['addCommentThread']({'channelId':_0x10107f,'threadId':_0x47b1dc,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2aaa9b=this['_commentsRepository']['getCommentThread'](_0x47b1dc);_0x2aaa9b['unbind']('isRemovable'),_0x2aaa9b['isRemovable']=!0x1,_0x48ccc6['commentThread']=_0x2aaa9b;}['_checkSuggestionCorrectness'](_0x2a86f1,_0x3f1baa,_0x56b95c,_0x487cc1){if(_0x2a86f1['type']!=_0x3f1baa||_0x2a86f1['subType']!=_0x56b95c||_0x2a86f1['creator']['id']!=_0x487cc1)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1a1d2d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5a7e48,_0x1a75eb){const _0x38eb3d=_0x5a7e48['getFirstRange']();if(_0x1a75eb['isEqual'](_0x38eb3d))_0x5a7e48['removeMarkers']();else{if(_0x38eb3d['containsRange'](_0x1a75eb)){const _0x187178=this['_model']['createPositionAt'](_0x1a75eb['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5a7e48,this['_model']['createRange'](_0x38eb3d['start'],_0x187178));const _0x1a0e31=_0x5310dd(),_0x20db5b=_0x5a7e48['creator']['id'],_0x16d8a7=_0x5a7e48['type']+':'+_0x5a7e48['subType'];this['_setSuggestionData']({'id':_0x1a0e31,'type':_0x16d8a7,'createdAt':new Date(),'authorId':_0x20db5b,'data':_0x5a7e48['data'],'attributes':_0x5a7e48['attributes']});const _0x4e39c1=this['_model']['createPositionAt'](_0x1a75eb['end']['parent'],'after'),_0x5c3bc7=this['_model']['createRange'](_0x4e39c1,_0x38eb3d['end']);this['_addSuggestionMarker'](_0x16d8a7,_0x1a0e31,_0x20db5b,_0x5c3bc7);}else{if(_0x38eb3d['containsPosition'](_0x1a75eb['start'])){const _0x57d018=this['_model']['createPositionAt'](_0x1a75eb['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5a7e48,this['_model']['createRange'](_0x38eb3d['start'],_0x57d018));}else{const _0x539997=this['_model']['createPositionAt'](_0x1a75eb['end']['parent'],'after');this['_setSuggestionRange'](_0x5a7e48,this['_model']['createRange'](_0x539997,_0x38eb3d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x54fa05){for(const {suggestion:_0x42c95e,meta:_0x60f03a}of this['_findSuggestions'](_0x54fa05,'insertion')){if(!_0x60f03a['isOwn'])continue;const _0x362c95=_0x42c95e['getRanges']();for(const _0x562c76 of _0x362c95)if(!_0x54fa05['getDifference'](_0x562c76)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x11a5e4){const _0x2e47ca=this['editor']['plugins']['get']('Users')['getUser'](_0x11a5e4);if(!_0x2e47ca)throw new _0x1a1d2d('track-changes-user-not-found',this);return _0x2e47ca;}['_getExternalAuthor'](_0x53ee23){const _0x22c421=this['editor']['plugins']['get']('Users'),_0x29b091=_0x52257a('external:'+_0x53ee23),_0x5359a5=_0x22c421['getUser'](_0x29b091);return _0x5359a5||_0x22c421['addUser']({'id':_0x29b091,'name':_0x53ee23});}['_createSuggestion'](_0x17b2db,_0x29ff9d,_0xa5de4,_0x3aca9b,_0x4c99ca){const _0x36a9c8=this['_getAuthorFromId'](_0x3aca9b),_0x16759d=this['_suggestionFactory']['buildSuggestion'](_0x17b2db,_0x29ff9d,_0xa5de4,_0x36a9c8,_0x4c99ca,_0x39ee8d=>{this['_updateSuggestionData'](_0xa5de4,{'attributes':_0x39ee8d});const _0x3b2879=this['getSuggestion'](_0xa5de4);this['_joinWithAdjacentSuggestions'](new Set([_0x3b2879])),this['_refreshSuggestionsChain'](new Set([_0x3b2879]));});return this['listenTo'](_0x16759d,'accept',()=>{this['_updateSuggestionData'](_0xa5de4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x16759d,'discard',()=>{this['_updateSuggestionData'](_0xa5de4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xa5de4,_0x16759d),this['_suggestionState']['set'](_0x16759d,'notReady'),_0x16759d;}['_splitMarkerName'](_0x3b9143){const _0x3bb2d0=_0x3b9143['split'](':');return{'group':_0x3bb2d0[0x0],'type':_0x3bb2d0[0x1],'subType':_0x3bb2d0['length']>=0x5?_0x3bb2d0[0x2]:null,'id':_0x3bb2d0['length']<0x5?_0x3bb2d0[0x2]:_0x3bb2d0[0x3],'authorId':_0x3bb2d0['length']<0x5?_0x3bb2d0[0x3]:_0x3bb2d0[0x4],'markerCount':0x6==_0x3bb2d0['length']?_0x3bb2d0[0x5]:null};}['_breakSuggestionMarker'](_0x378108,_0x3c6ad3,_0x1fa4e2){const _0x29f15c=_0x378108['getFirstRange'](),_0x58fe9b=_0x29f15c['start'],_0xe5c84c=_0x29f15c['end'];this['_setSuggestionRange'](_0x378108,this['_model']['createRange'](_0x58fe9b,_0x3c6ad3));const _0x2e3471=_0x5310dd(),_0x48bf52=_0x378108['creator']['id'],_0x2fa9f9=_0x378108['type']+(_0x378108['subType']?':'+_0x378108['subType']:'');this['_setSuggestionData']({'id':_0x2e3471,'type':_0x2fa9f9,'createdAt':new Date(),'authorId':_0x48bf52,'originalSuggestionId':_0x378108['id'],'attributes':_0x378108['attributes'],'data':_0x378108['data']});const _0x28e127=this['_getAttributeKey'](_0x378108);('formatBlock'==_0x378108['type']||_0x28e127&&this['_isBlockAttribute'](_0x28e127))&&(_0x1fa4e2=this['_model']['createPositionBefore'](_0x1fa4e2['parent'])),this['_addSuggestionMarker'](_0x2fa9f9,_0x2e3471,_0x48bf52,this['_model']['createRange'](_0x1fa4e2,_0xe5c84c));}['_findSuggestions'](_0x3e3096,_0x344dd4=null){const _0x53a29a=[],_0x48968c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3e3096)||(_0x3e3096=[_0x3e3096]);for(const _0x57daa0 of this['getSuggestions']()){if(!_0x57daa0['isInContent'])continue;if(_0x344dd4&&_0x57daa0['type']!=_0x344dd4)continue;let _0x1a00c2=!0x1;for(const _0x537ad5 of _0x57daa0['getRanges']()){for(const _0x1868ec of _0x3e3096){const _0x5003c6=_0x1868ec['start']['isEqual'](_0x537ad5['end'])||_0x1868ec['end']['isEqual'](_0x537ad5['start']);if(_0x5003c6||_0x1868ec['getIntersection'](_0x537ad5)){const _0x208f34=_0x1868ec['containsRange'](_0x537ad5)&&Pt(this['_model']['schema'],_0x537ad5['start'],_0x1868ec),_0x4f7532=_0x537ad5['containsRange'](_0x1868ec)&&Pt(this['_model']['schema'],_0x1868ec['start'],_0x537ad5);_0x53a29a['push']({'suggestion':_0x57daa0,'meta':{'isOwn':_0x48968c==_0x57daa0['author'],'isNextTo':_0x5003c6,'isInsideObject':_0x208f34,'containsRangeInObject':_0x4f7532}}),_0x1a00c2=!0x0;break;}}if(_0x1a00c2)break;}}return _0x53a29a;}['_addSuggestionMarker'](_0x1eea14,_0x141dcc,_0x418636,_0x3237e5,_0x3b3781){this['_model']['change'](_0x59514f=>{let _0x5b0162='suggestion:'+_0x1eea14+':'+_0x141dcc+':'+_0x418636;_0x3b3781&&(_0x5b0162=_0x5b0162+':'+_0x3b3781),_0x59514f['addMarker'](_0x5b0162,{'range':_0x3237e5,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x255bb0){const _0x55fdee=_0x255bb0['previous'],_0xab93eb=_0x255bb0['next'];_0x255bb0['previous']=null,_0x255bb0['next']=null,null!=_0x55fdee&&_0x55fdee['next']==_0x255bb0&&(_0x55fdee['next']=_0xab93eb),null!=_0xab93eb&&_0xab93eb['previous']==_0x255bb0&&(_0xab93eb['previous']=_0x55fdee),'ready'==this['_suggestionState']['get'](_0x255bb0)&&(this['_suggestionState']['set'](_0x255bb0,'removed'),this['fire']('suggestionUnloaded',_0x255bb0,_0x55fdee,_0xab93eb));}['_setSuggestionData'](_0x3c37f1){const _0x7261e0=_0x3c37f1['id'],_0x40bf5e=this['addSuggestionData'](_0x3c37f1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x36c92a=this['editor']['plugins']['get']('PendingActions'),_0x47b33b=_0x40bf5e['hasComments'],_0x2c0418=_0x40bf5e['subType']?_0x40bf5e['type']+':'+_0x40bf5e['subType']:_0x40bf5e['type'],_0x104926=this['editor']['locale'],_0x5332bd=_0x36c92a['add'](c(_0x104926,'PENDING_ACTION_SUGGESTION')),_0x6b294f={'id':_0x7261e0,'type':_0x2c0418,'hasComments':_0x47b33b,'data':_0x3c37f1['data']||null,'originalSuggestionId':_0x3c37f1['originalSuggestionId']||null,'attributes':_0x40bf5e['attributes']};this['_adapter']['addSuggestion'](_0x6b294f)['then'](_0x28b077=>{_0x40bf5e['_saved']=!0x0,_0x36c92a['remove'](_0x5332bd),_0x28b077&&_0x28b077['createdAt']&&(this['_suggestions']['get'](_0x7261e0)['createdAt']=_0x28b077['createdAt']);})['catch'](_0x1d6ae0=>{throw _0x5b3cf6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x40bf5e['discard']();}),_0x40bf5e['stopListening'](),this['_suggestions']['delete'](_0x40bf5e['id']),this['_suggestionState']['delete'](_0x40bf5e),_0x1d6ae0;});}return _0x40bf5e;}['_isBlockAttribute'](_0x4a5a9f){return this['_blockAttributeKeys']['has'](_0x4a5a9f);}['_updateSuggestionData'](_0x3e8798,_0x3a0111){const _0x18cce9=this['editor']['plugins']['get']('PendingActions'),_0x2ff6f9=this['getSuggestion'](_0x3e8798);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2ff6f9['_saved']){const _0x4dc9f7=_0x18cce9['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3e8798,_0x3a0111)['then'](()=>{_0x18cce9['remove'](_0x4dc9f7);});}else _0x2ff6f9['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3e8798,_0x3a0111);});}}['_getSuggestionData'](_0x495bf1){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1a1d2d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x495bf1);}['_handleNewSuggestionMarker'](_0xf09a2c){const {id:_0x44efe6,type:_0x113004,subType:_0x2b9f02,authorId:_0x3c89b4}=this['_splitMarkerName'](_0xf09a2c),_0x1acabc=this['_suggestions']['get'](_0x44efe6)||this['_createSuggestion'](_0x113004,_0x2b9f02,_0x44efe6,_0x3c89b4,{});switch(this['_checkSuggestionCorrectness'](_0x1acabc,_0x113004,_0x2b9f02,_0x3c89b4),this['_suggestionState']['get'](_0x1acabc)){case'notReady':this['_getSuggestionData'](_0x44efe6)['then'](_0x4ae674=>{let _0x104fea=Promise['resolve']();_0x4ae674['hasComments']&&(_0x104fea=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x44efe6})),_0x104fea['then'](()=>{this['addSuggestionData'](_0x4ae674)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1acabc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x44efe6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1acabc,'ready'),this['fire']('suggestionLoaded',_0x1acabc);break;case'ready':this['fire']('suggestionChanged',_0x1acabc);}return _0x1acabc['addMarkerName'](_0xf09a2c),_0x1acabc;}['_refreshSuggestionsChain'](_0x417448){const _0x16dafc=Array['from'](_0x417448),_0x59d9cd=_0x16dafc['filter'](_0x17d3a8=>'attribute'==_0x17d3a8['type']);this['_refreshAttributeSuggestionsChain'](_0x59d9cd);const _0x50ebbb=_0x16dafc['filter'](_0x1769cf=>!_0x1769cf['isMultiRange']&&'attribute'!=_0x1769cf['type']),_0x51f4f1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ddd9b=>!_0x3ddd9b['isMultiRange']&&'attribute'!=_0x3ddd9b['type']),_0x36e39e=_0x51f4f1['filter'](_0x527423=>!_0x417448['has'](_0x527423)),_0x5ea752=new Map(_0x51f4f1['map'](_0x2c594a=>[_0x2c594a,this['_suggestionFactory']['getSuggestionCallback'](_0x2c594a['type'],_0x2c594a['subType'],'chain')])),_0x236aea=new Map(_0x51f4f1['map'](_0x12b2ae=>[_0x12b2ae,_0x12b2ae['getFirstRange']()])),_0xeebfee=new Set(),_0x14ff1a=new Set();for(let _0x9fcaab=0x0;_0x9fcaab<_0x50ebbb['length'];_0x9fcaab++)_0x5b4910(_0x50ebbb[_0x9fcaab],_0x50ebbb,_0x9fcaab+0x1);for(let _0x7f582c=0x0;_0x7f582c<_0x50ebbb['length'];_0x7f582c++)_0x5b4910(_0x50ebbb[_0x7f582c],_0x36e39e,0x0);const _0x55c713=new Set();for(let _0xf4ccf7=0x0;_0xf4ccf7<_0x50ebbb['length'];_0xf4ccf7++){const _0x4a9909=_0x50ebbb[_0xf4ccf7];!_0x14ff1a['has'](_0x4a9909)&&_0x4a9909['previous']&&(_0x55c713['add'](_0x4a9909['previous']),_0x4a9909['previous']['next']===_0x4a9909&&(_0x4a9909['previous']['next']=null),_0x4a9909['previous']=null),!_0xeebfee['has'](_0x4a9909)&&_0x4a9909['next']&&(_0x55c713['add'](_0x4a9909['next']),_0x4a9909['next']['previous']===_0x4a9909&&(_0x4a9909['next']['previous']=null),_0x4a9909['next']=null);}function _0x5b4910(_0x4df69e,_0x347c4a,_0x4fb7ab){for(let _0x3883c2=_0x4fb7ab;_0x3883c2<_0x347c4a['length'];_0x3883c2++){const _0x5e01b1=_0x4dcd6e(_0x4df69e,_0x347c4a[_0x3883c2]);_0x5e01b1&&(_0x5e01b1[0x0]['next']=_0x5e01b1[0x1],_0x5e01b1[0x1]['previous']=_0x5e01b1[0x0],_0xeebfee['add'](_0x5e01b1[0x0]),_0x14ff1a['add'](_0x5e01b1[0x1]));}}function _0x4dcd6e(_0x21ff1b,_0x1b3556){if(_0x21ff1b['author']['id']!==_0x1b3556['author']['id'])return null;const _0x25cf2c=_0x5ea752['get'](_0x21ff1b)(_0x21ff1b,_0x1b3556,_0x236aea['get'](_0x21ff1b),_0x236aea['get'](_0x1b3556));if(!_0x25cf2c)return null;return _0x5ea752['get'](_0x1b3556)(_0x21ff1b,_0x1b3556,_0x236aea['get'](_0x21ff1b),_0x236aea['get'](_0x1b3556))?_0x25cf2c[0x1]['commentThread']&&_0x25cf2c[0x1]['commentThread']['length']?null:_0x25cf2c:null;}_0x55c713['size']&&this['_refreshSuggestionsChain'](_0x55c713);}['_refreshAttributeSuggestionsChain'](_0x45bde0){if(0x0==_0x45bde0['length'])return;const _0x374d2b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48adf3=>'attribute'==_0x48adf3['type']&&_0x48adf3['_isDataLoaded']),_0x49ec49=[],_0x2ca34f=new Map();for(const _0x5ec4c7 of _0x374d2b){const _0x31decf=_0x52257a(_0x5ec4c7['attributes']);_0x2ca34f['has'](_0x31decf)||(_0x2ca34f['set'](_0x31decf,_0x49ec49['length']),_0x49ec49['push']([]));const _0x504399=_0x2ca34f['get'](_0x31decf);_0x49ec49[_0x504399]['push'](_0x5ec4c7);}!(function(){_0x49ec49['sort']((_0x2cf2d4,_0x23c181)=>{const _0x3361e1=_0x2cf2d4[0x0]['createdAt'],_0x4cbf03=_0x23c181[0x0]['createdAt'];return _0x3361e1==_0x4cbf03?_0x2cf2d4[0x0]['attributes']['groupId']<_0x23c181[0x0]['attributes']['groupId']?-0x1:0x1:_0x3361e1<_0x4cbf03?-0x1:0x1;});for(const _0x49b92e of _0x49ec49)_0x49b92e['sort']((_0x41fc08,_0xa28063)=>_0x41fc08['id']<_0xa28063['id']?-0x1:0x1);}());for(let _0x67fc89=0x0;_0x67fc89<_0x49ec49['length'];_0x67fc89++){if(0x0==_0x49ec49[_0x67fc89]['length'])continue;const _0x52420c=[];for(let _0x305689=_0x67fc89+0x1;_0x305689<_0x49ec49['length'];_0x305689++)0x0!=_0x49ec49[_0x305689]['length']&&_0x2cbb34(_0x49ec49[_0x67fc89],_0x49ec49[_0x305689])&&_0x52420c['push'](_0x305689);for(const _0x730e60 of _0x52420c)_0x49ec49[_0x67fc89]=_0x49ec49[_0x67fc89]['concat'](_0x49ec49[_0x730e60]),_0x49ec49[_0x730e60]=[];}for(const _0x1b919f of _0x49ec49)for(let _0x287424=0x0;_0x287424<_0x1b919f['length'];_0x287424++){const _0x562448=_0x1b919f[_0x287424+0x1]||null;_0x1b919f[_0x287424]['next']!==_0x562448&&(_0x1b919f[_0x287424]['next']=_0x562448);}for(const _0x57fd58 of _0x49ec49)for(let _0x5ef507=0x0;_0x5ef507<_0x57fd58['length'];_0x5ef507++){const _0xc8dc11=_0x57fd58[_0x5ef507-0x1]||null;_0x57fd58[_0x5ef507]['previous']!==_0xc8dc11&&(_0x57fd58[_0x5ef507]['previous']=_0xc8dc11);}function _0x2cbb34(_0x30f947,_0x3d5dc7){if(_0x30f947[0x0]['attributes']['groupId']!==_0x3d5dc7[0x0]['attributes']['groupId']&&_0x30f947[0x0]['author']!==_0x3d5dc7[0x0]['author'])return!0x1;if(!function(_0x55151e,_0x2c8cdb){if(!_0x55151e['hasComments']&&!_0x2c8cdb['hasComments'])return!0x0;if(_0x55151e['hasComments']&&_0x2c8cdb['hasComments'])return!0x1;if(_0x55151e['hasComments']&&_0x2c8cdb['createdAt']<_0x55151e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2c8cdb['hasComments']&&_0x55151e['createdAt']<_0x2c8cdb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x30f947[0x0],_0x3d5dc7[0x0]))return!0x1;const _0xa488ea=Vt(_0x30f947[0x0]['attributes'],'groupId'),_0x46fa8c=Vt(_0x3d5dc7[0x0]['attributes'],'groupId');if(!_0x14f7b8(_0xa488ea,_0x46fa8c))return!0x1;return!!_0x30f947['every'](_0x14421a=>_0x3d5dc7['some'](_0x2957c8=>_0x14421a['getFirstRange']()['isEqual'](_0x2957c8['getFirstRange']())))&&_0x3d5dc7['every'](_0xa4377=>_0x30f947['some'](_0x172d0d=>_0xa4377['getFirstRange']()['isEqual'](_0x172d0d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x571b7a){const _0x1ab6df=Array['from'](_0x571b7a),_0x398bc2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x181d54=_0x398bc2['filter'](_0x785dba=>!_0x571b7a['has'](_0x785dba)),_0x1b6f15=new Map(_0x1ab6df['map'](_0x32beb7=>[_0x32beb7,this['_suggestionFactory']['getSuggestionCallback'](_0x32beb7['type'],_0x32beb7['subType'],'join')])),_0x252555=new Map(_0x398bc2['map'](_0xf616dc=>[_0xf616dc,_0xf616dc['getRanges']()]));for(let _0x39edf1=0x0;_0x39edf1<_0x1ab6df['length'];_0x39edf1++){if(_0x301188(this,_0x1ab6df[_0x39edf1],_0x1ab6df,_0x39edf1+0x1))return!0x0;}for(let _0x42d9c6=0x0;_0x42d9c6<_0x1ab6df['length'];_0x42d9c6++){if(_0x301188(this,_0x1ab6df[_0x42d9c6],_0x181d54,0x0))return!0x0;}return!0x1;function _0x301188(_0x31ad1f,_0x4f7ed1,_0x4a92f7,_0x109d5c){for(let _0x1bdda9=_0x109d5c;_0x1bdda9<_0x4a92f7['length'];_0x1bdda9++){const _0xee0e31=_0x4a92f7[_0x1bdda9];if(_0xee0e31['type']!==_0x4f7ed1['type']||_0xee0e31['author']['id']!==_0x4f7ed1['author']['id']||_0xee0e31['subType']!==_0x4f7ed1['subType'])continue;if(!Wt(_0x4f7ed1,_0xee0e31))continue;if('attribute'==_0x4f7ed1['type']&&_0x4f7ed1['data']['oldValue']!=_0xee0e31['data']['oldValue'])continue;if('attribute'==_0x4f7ed1['type']&&_0x31ad1f['_isBlockAttribute'](_0x4f7ed1['data']['key']))continue;if('formatBlock'==_0x4f7ed1['type']){const _0x35e730=_0x31ad1f['editor']['model'],_0x1943c5=_0x4f7ed1['getContainedElement']();if(_0x1943c5&&(_0x35e730['schema']['isObject'](_0x1943c5)||_0x35e730['schema']['isLimit'](_0x1943c5)))continue;}const _0x14f6f9=_0x1b6f15['get'](_0x4f7ed1),_0x4790e5=_0x252555['get'](_0x4f7ed1),_0x4e2145=_0x252555['get'](_0xee0e31),_0x3766f2=_0x4f7ed1['commentThread']&&_0x4f7ed1['commentThread']['length'],_0x33e50c=_0xee0e31['commentThread']&&_0xee0e31['commentThread']['length'];if(!_0x3766f2&&_0x14f6f9(_0x4e2145,_0x4790e5))return _0x31ad1f['_joinSuggestions'](_0xee0e31,_0x4f7ed1),_0x252555['delete'](_0x4f7ed1),!0x0;if(!_0x33e50c&&_0x14f6f9(_0x4790e5,_0x4e2145))return _0x31ad1f['_joinSuggestions'](_0x4f7ed1,_0xee0e31),_0x252555['delete'](_0xee0e31),!0x0;}return!0x1;}}['_joinSuggestions'](_0x48587e,_0x4f0a86){if(_0x48587e['isMultiRange']){for(const _0x5959fe of _0x4f0a86['getRanges']())_0x48587e['addRange'](_0x5959fe);}else{const _0x397a88=_0x4f0a86['getFirstRange']()['end'];this['_setSuggestionRange'](_0x48587e,this['_model']['createRange'](_0x48587e['getFirstRange']()['start'],_0x397a88));}_0x4f0a86['removeMarkers']();}['_getMarkerAnnouncementText'](_0x78d68d,_0x5d2bce,_0x2ef3ef){const _0x38362e=_0x78d68d['startsWith']('format')||_0x78d68d['startsWith']('attribute')?'FORMATTING':_0x78d68d['toUpperCase']();return c(this['editor']['locale'],_0x5d2bce+'_'+_0x38362e+'_SUGGESTION_ANNOUNCEMENT',_0x2ef3ef);}['_initAriaMarkerChangeAnnouncements'](){const _0x4826ef=this['editor'];if(!_0x4826ef['ui'])return;const {ariaLiveAnnouncer:_0x1862c3}=_0x4826ef['ui'];_0x492d76(this['_model'],({left:_0x324b89,entered:_0x4d7bd4})=>{for(const _0x3a450f of _0x324b89){const {group:_0x2f5c6a,type:_0x87a2c2}=this['_splitMarkerName'](_0x3a450f['name']);if('suggestion'===_0x2f5c6a){_0x1862c3['announce'](this['_getMarkerAnnouncementText'](_0x87a2c2,'LEAVE'));break;}}for(const _0xe8455 of _0x4d7bd4){const {group:_0x13f74a,type:_0x49a2c6}=this['_splitMarkerName'](_0xe8455['name']);if('suggestion'===_0x13f74a){_0x1862c3['announce'](this['_getMarkerAnnouncementText'](_0x49a2c6,'ENTER',_0x5f531a(_0x295ed7)));break;}}});}['_processAttributeChanges'](_0xc1e6fb){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1f009e=this['editor'],_0x1a312a=_0x1f009e['model']['document']['differ']['getChanges']();if(0x0==_0x1a312a['length'])return!0x1;const _0x13e79f=[],_0xb3cc9c=_0x1a312a['filter'](_0x5a2c48=>'attribute'==_0x5a2c48['type']),_0x13484e=_0x1a312a['filter'](_0x4e4bcf=>'insert'==_0x4e4bcf['type']&&'$text'!=_0x4e4bcf['name']),_0x24f756=_0x1a312a['filter'](_0x5a0ea2=>'remove'==_0x5a0ea2['type']&&'$text'!=_0x5a0ea2['name']);for(const _0x4d3e56 of _0xb3cc9c)_0x13e79f['push']({'key':_0x4d3e56['attributeKey'],'newValue':_0x4d3e56['attributeNewValue'],'oldValue':_0x4d3e56['attributeOldValue'],'range':Ht(_0x4d3e56['range'],_0x1f009e['model'])});for(const _0x1c7a4f of _0x13484e){const _0x4567b9=_0x24f756['find'](_0x2d5880=>_0x2d5880['position']['isEqual'](_0x1c7a4f['position']));_0x4567b9&&_0x13e79f['push']({'key':u,'newValue':_0x1c7a4f['name'],'oldValue':_0x4567b9['name'],'range':_0x1f009e['model']['createRangeOn'](_0x1c7a4f['position']['nodeAfter'])});}return 0x0!=_0x13e79f['length']&&this['_reduceExistingSuggestions'](_0xc1e6fb,_0x13e79f);}['_processAttributeSuggestions'](_0x1f2349){let _0x4300b7=!0x1;const _0x16b392=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x336d98=>_0x336d98['data']['newRange']&&_0x336d98['name']['startsWith']('suggestion:attribute:'));for(const _0x34469c of _0x16b392){const {subType:_0x531aa7,id:_0x445525}=this['_splitMarkerName'](_0x34469c['name']),_0x566817=_0x531aa7['split']('|')[0x0];for(const _0x5359dd of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5359dd['id']!=_0x445525&&'attribute'==_0x5359dd['type']&&_0x5359dd['data']&&_0x5359dd['data']['key']==_0x566817&&_0x5359dd['getFirstRange']()['isIntersecting'](_0x34469c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5359dd,_0x34469c['data']['newRange'],_0x1f2349),_0x4300b7=!0x0);}return _0x4300b7;}['_recordAttributeChanges'](_0x2c9cc3){this['_recordAttributeSuggestions']=!0x0,_0x2c9cc3();}['_isRegisteredAttribute'](_0x1a942e){const _0x241ee7=this['_isBlockAttribute'](_0x1a942e),_0x2c61c8=this['_inlineAttributeKeys']['has'](_0x1a942e);return _0x241ee7||_0x2c61c8;}['_reduceExistingSuggestions'](_0x445186,_0x57d3b5){if(0x0==_0x57d3b5['length'])return!0x1;let _0x215001=!0x1;for(const _0x5529d9 of _0x57d3b5){const _0xb939d7=this['_findSuggestions'](_0x5529d9['range'],'attribute')['filter'](_0x1e8106=>!_0x1e8106['meta']['isNextTo'])['map'](_0x29eb70=>_0x29eb70['suggestion']),_0x470d6b=_0x52257a({'newValue':_0x5529d9['newValue']});_0xb939d7['filter'](_0x32dc25=>{const [_0x368e1b,_0x49daac]=_0x32dc25['subType']['split']('|');return _0x368e1b==_0x5529d9['key']&&_0x49daac!=_0x470d6b;})['forEach'](_0x111a95=>{this['_reduceSuggestionAttributeRange'](_0x111a95,_0x5529d9['range'],_0x445186),_0x215001=!0x0;});}return _0x215001;}['_reduceSuggestionAttributeRange'](_0x2fd416,_0x2efe6d,_0x540bbf){const _0x3ef289=_0x2fd416['getFirstRange']()['getDifference'](_0x2efe6d);0x0!==_0x3ef289['length']?0x1!==_0x3ef289['length']?this['_breakSuggestionMarker'](_0x2fd416,_0x2efe6d['start'],_0x2efe6d['end']):this['_setSuggestionRange'](_0x2fd416,_0x3ef289[0x0]):_0x540bbf['removeMarker'](_0x2fd416['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x298275){this['_editor']=_0x298275,this['_model']=_0x298275['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xb525f3,_0x414f3c,_0x1048d8,_0x2cf7b0,_0x581797,_0x4ce114){return new o(this['_model'],{'type':_0xb525f3,'subType':_0x414f3c,'id':_0x1048d8,'author':_0x2cf7b0,'creator':_0x2cf7b0,'attributes':_0x581797,'onAttributesChange':_0x4ce114,'onAccept':(..._0x1021f6)=>this['getSuggestionCallback'](_0xb525f3,_0x414f3c,'accept')(..._0x1021f6),'onDiscard':(..._0x3e2c03)=>this['getSuggestionCallback'](_0xb525f3,_0x414f3c,'discard')(..._0x3e2c03)});}['registerCustomCallback'](_0x3b4ff5,_0x44a51b,_0x221312,_0x4a1e4f){const _0x22738f=_0x3b4ff5+':'+_0x44a51b+':'+_0x221312;this['_customCallbacks']['set'](_0x22738f,_0x4a1e4f);}['getSuggestionCallback'](_0x274e23,_0x13a3dd,_0x12ff8e){const _0x8a21d5=_0x274e23+':'+_0x13a3dd+':'+_0x12ff8e;return this['_customCallbacks']['get'](_0x8a21d5)||this['_defaultCallbacks']['get'](_0x274e23+':'+_0x12ff8e);}['_registerDefaultCallbacks'](){const _0x3b1fa8=()=>!0x1,_0x26d747=_0x11d751=>{_0x11d751['sort']((_0x23b4c3,_0x134d8b)=>_0x23b4c3['start']['isBefore'](_0x134d8b['start'])?0x1:-0x1),this['_model']['change'](_0x40f1fa=>{for(const _0x49f0bf of _0x11d751){let _0x2eabf2;_0x2eabf2=_0x49f0bf['end']['isAtEnd']&&_0x49f0bf['end']['parent']==_0x49f0bf['start']['nodeAfter']?_0x40f1fa['createSelection'](_0x49f0bf['start']['nodeAfter'],'on'):_0x40f1fa['createSelection'](_0x49f0bf),this['_model']['deleteContent'](_0x2eabf2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x597225=(_0x147b8f,_0xf7c17f)=>{_0xf7c17f&&this['_model']['change'](_0x53b0ea=>{const {commandName:_0x31b34d,commandParams:_0x3fd41a=[]}=_0xf7c17f,_0x5e21a7=_0x147b8f['map'](_0x34de76=>(Gt(_0x34de76)&&(_0x34de76=this['_model']['createRange'](_0x34de76['end'])),_0x34de76))['filter'](_0x5cda2a=>'$graveyard'!==_0x5cda2a['root']['rootName']);if(_0x5e21a7['length']<0x1)return;const _0x55e436=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x45329d=>_0x6b53b6['fromRange'](_0x45329d));_0x53b0ea['setSelection'](_0x5e21a7);for(const _0x47ca9b of this['_editor']['commands']['commands']())_0x47ca9b['refresh']();_0x3fd41a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x31b34d,..._0x3fd41a);const _0x37039a=_0x55e436['filter'](_0x1c713b=>'$graveyard'!=_0x1c713b['root']['rootName']);_0x37039a['length']>0x0&&_0x53b0ea['setSelection'](_0x37039a);for(const _0x127e35 of _0x55e436)_0x127e35['detach']();});},_0x152216=(_0x389eff,_0x418f2a)=>0x1==_0x389eff['length']&&0x1==_0x418f2a['length']&&_0x389eff[0x0]['end']['isEqual'](_0x418f2a[0x0]['start']),_0x523d0b=(_0x4727b7,_0x1acb8d,_0x299167,_0x4bb721)=>zt(_0x4727b7,_0x1acb8d,_0x299167,_0x4bb721)?[_0x4727b7,_0x1acb8d]:zt(_0x1acb8d,_0x4727b7,_0x4bb721,_0x299167)?[_0x1acb8d,_0x4727b7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3b1fa8),this['_defaultCallbacks']['set']('insertion:discard',_0x26d747),this['_defaultCallbacks']['set']('insertion:join',_0x152216),this['_defaultCallbacks']['set']('insertion:chain',_0x523d0b),this['_defaultCallbacks']['set']('deletion:accept',_0x26d747),this['_defaultCallbacks']['set']('deletion:discard',_0x3b1fa8),this['_defaultCallbacks']['set']('deletion:join',_0x152216),this['_defaultCallbacks']['set']('deletion:chain',_0x523d0b),this['_defaultCallbacks']['set']('formatInline:accept',_0x597225),this['_defaultCallbacks']['set']('formatInline:discard',_0x3b1fa8),this['_defaultCallbacks']['set']('formatInline:join',_0x152216),this['_defaultCallbacks']['set']('formatInline:chain',_0x3b1fa8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x597225),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3b1fa8),this['_defaultCallbacks']['set']('formatBlock:join',_0x152216),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3b1fa8),this['_defaultCallbacks']['set']('attribute:accept',_0x3b1fa8),this['_defaultCallbacks']['set']('attribute:discard',(_0x436b3a,_0x279568)=>{if(!_0x279568)return;const _0x41ce90=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2983fd=>{if(_0x279568['key']==u)for(const _0x3b2683 of _0x436b3a){const _0xc54ba4=_0x3b2683['start']['nodeAfter'],_0x5069ff=_0x279568['oldValue'];_0x2983fd['rename'](_0xc54ba4,_0x5069ff);}else{if(_0x41ce90['_isBlockAttribute'](_0x279568['key'])){for(const _0x527fc1 of _0x436b3a)void 0x0!==_0x279568['oldValue']?_0x2983fd['setAttribute'](_0x279568['key'],_0x279568['oldValue'],_0x527fc1['start']['nodeAfter']):_0x2983fd['removeAttribute'](_0x279568['key'],_0x527fc1['start']['nodeAfter']);}else{for(const _0x4037a1 of _0x436b3a)_0x279568['oldValue']?_0x2983fd['setAttribute'](_0x279568['key'],_0x279568['oldValue'],_0x4037a1):_0x2983fd['removeAttribute'](_0x279568['key'],_0x4037a1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x152216);}}function Pt(_0xc7906b,_0x26d94c,_0x35a008){for(const _0x5a7276 of _0x26d94c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5a7276['root']==_0x5a7276)return!0x1;if(!_0x35a008['containsItem'](_0x5a7276))return!0x1;if(_0xc7906b['isObject'](_0x5a7276)||_0xc7906b['isLimit'](_0x5a7276))return!0x0;}return!0x1;}function Gt(_0x546605){return _0x546605['end']['parent']==_0x546605['start']['nodeAfter']&&_0x546605['end']['isAtStart'];}function Lt(_0x5a8e55,_0x17d046,_0x101fe7,_0x2c33ba){const _0x2f57dd=_0x71dbc4=>!_0x71dbc4['item']['is']('$textProxy')&&!_0x2c33ba['isObject'](_0x71dbc4['item']),_0x3f30c7=_0x5a8e55['start']['getLastMatchingPosition'](_0x2f57dd),_0x50b724=_0x5a8e55['end']['getLastMatchingPosition'](_0x2f57dd,{'direction':'backward'});return(!_0x5a8e55['start']['isEqual'](_0x3f30c7)||!_0x5a8e55['end']['isEqual'](_0x50b724))&&(_0x3f30c7['isBefore'](_0x50b724)?_0x101fe7['updateMarker'](_0x17d046,{'range':_0x101fe7['createRange'](_0x3f30c7,_0x50b724)}):_0x101fe7['removeMarker'](_0x17d046),!0x0);}function Jt(_0x592e1d){return _0x52257a(_0x592e1d);}function Kt(_0x5763d8){const _0x4de1a2=_0x5763d8['start']['nodeAfter'];return _0x4de1a2&&_0x4de1a2['is']('element');}function Ht(_0x50c932,_0x44cca1){return null==_0x50c932['end']['nodeBefore']&&_0x50c932['end']['parent']==_0x50c932['start']['nodeAfter']?qt(_0x50c932['start']['nodeAfter'],_0x44cca1):_0x50c932;}function qt(_0x47b298,_0x136b8b){const _0x6f71f4=_0x136b8b['schema']['isObject'](_0x47b298)||_0x136b8b['schema']['isSelectable'](_0x47b298);return _0x136b8b['createRange'](_0x136b8b['createPositionAt'](_0x47b298,'before'),_0x6f71f4?_0x136b8b['createPositionAfter'](_0x47b298):_0x136b8b['createPositionAt'](_0x47b298,'end'));}function zt(_0x3d0438,_0x4732a3,_0x5e0635,_0xde191d){return!!Wt(_0x3d0438,_0x4732a3)&&_0x5e0635['end']['isEqual'](_0xde191d['start']);}function Wt(_0x548420,_0x1580d7){if(!_0x548420['_isDataLoaded']||!_0x1580d7['_isDataLoaded'])return!0x1;const _0xa93a0=new Set(Object['keys'](_0x548420['attributes'])),_0x53781c=new Set(Object['keys'](_0x1580d7['attributes']));if(_0xa93a0['delete']('groupId'),_0x53781c['delete']('groupId'),0x0==_0xa93a0['size']&&0x0==_0x53781c['size'])return!0x0;if(_0xa93a0['size']!=_0x53781c['size'])return!0x1;const _0x90eb32={..._0x548420['attributes']},_0x255736={..._0x1580d7['attributes']};return delete _0x90eb32['groupId'],delete _0x255736['groupId'],JSON['stringify'](_0x90eb32)==JSON['stringify'](_0x255736);}function Qt(_0x44b136,_0x402039){const _0x21905b=Xt(_0x44b136['attributes']),_0x200556=Xt(_0x402039);if(!_0x44b136['_isDataLoaded'])return!0x1;for(const _0x4fae30 of Object['keys'](_0x200556))if(!_0x14f7b8(_0x21905b[_0x4fae30],_0x200556[_0x4fae30]))return!0x1;return!0x0;}function Xt(_0xe56fc9){const _0x5a5d21=Object['assign']({},_0xe56fc9);return delete _0x5a5d21['skipNestingCheck'],delete _0x5a5d21['tablePasteChainId'],_0x5a5d21;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x1f73ca(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x138465,_0x4bad6b,_0x11fed1,_0x338f64){super(),this['model']=_0x4bad6b,this['view']=_0x11fed1,this['commentThreadController']=_0x338f64,this['_editor']=_0x138465,this['_acceptCommand']=_0x138465['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x138465['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x177990,_0x4e219e)=>_0x177990||_0x4e219e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x590079=>_0x590079&&this['_editor']['model']['canEditAt'](_0x4bad6b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x730845=>_0x730845&&this['_editor']['model']['canEditAt'](_0x4bad6b['getRanges']())),this['_pendingAction']=null,_0x11fed1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x11fed1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x11fed1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x11fed1,'change:isDirty',()=>{_0x11fed1['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 _0x1b5344=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1b5344);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1d3524{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5efcfa,_0x3fd104,_0x4da3e8,_0x1a8747){super(_0x5efcfa),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xa50ecc(_0x5efcfa,c(_0x5efcfa,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3fd104['authoredAt']),this['bind']('authoredAt')['to'](_0x3fd104),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',_0x3fd104,'authoredAt',this,'descriptionParts',(_0x3696c5,_0x202f9a,_0x334543)=>{const _0x5e31fd=_0x334543['map'](_0x24e203=>ls(_0x24e203['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3696c5-0x1,_0x3fd104['author']['name'],_0x202f9a?_0x1a8747['formatDateTime'](_0x202f9a):'',new DOMParser()['parseFromString'](_0x5e31fd,'text/html')['body']['textContent']]);}),this['focusables']=new _0x10e58e(),this['focusTracker']=new _0xc2e669(),this['keystrokes']=new _0x5188e6(),this['focusCycler']=new _0x279a0f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x574cef=>_0x574cef['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3fd104,this['_localUser']=_0x4da3e8,this['_config']=_0x1a8747,_0x1a8747['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x82ff32(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x397c0a}=this['_config'];this['commentsListView']=new _0x397c0a(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',_0x17e14e=>_0x17e14e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x40dc1f,_0x5e16ad)=>_0x40dc1f||!!_0x5e16ad);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4ab846}=this['_config'],_0x3c0d55=new _0x4ab846(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xf2a2f=_0x3c0d55['commentInputView'];return _0x3c0d55['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xf2a2f,'value',(_0x2076f1,_0x1abf3f,_0x480261)=>!!_0x480261||_0x2076f1&&!_0x1abf3f),_0xf2a2f['on']('submit',(_0xca709c,_0x205cf0)=>{this['fire']('addComment',_0x205cf0),_0xf2a2f['editor']['setData']('');}),_0xf2a2f['on']('cancel',()=>this['focus']()),_0xf2a2f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3c0d55;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x43d9cf,_0x1b67de,_0x411ff2,_0x1b7584){super(_0x43d9cf,_0x1b67de,_0x411ff2,_0x1b7584),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x346671=>_0x346671&&_0x346671[0x0]?_0x346671[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3acfc8,_0x4039a6)=>{let _0x2c3e4a='';for(const _0x2ad023 of _0x3acfc8)_0x2c3e4a+='<p>'+ls(_0x2ad023['content'],_0x2ad023['color'])+'</p>';return _0x4039a6?_0x2c3e4a:ti(_0x2c3e4a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1b7584['SuggestionView'](_0x43d9cf,_0x1b67de,{'formatDateTime':_0x1b7584['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 _0x583ce0=this['bindTemplate'],_0x4c6823=[this['suggestionView']];return this['commentsListView']&&_0x4c6823['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4c6823['push'](this['commentThreadInputView']),_0x4c6823['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x583ce0['if']('isActive','ck-suggestion-wrapper--active'),_0x583ce0['to']('type',_0x3d3331=>'ck-suggestion-'+_0x3d3331),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':_0x583ce0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4c6823};}['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 _0x1d3524{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4c3d06,_0x53d039,_0x5ec176){super(_0x4c3d06),this['_model']=_0x53d039,this['_config']=_0x5ec176,this['set']('description',''),this['bind']('authoredAt')['to'](_0x53d039),this['acceptButton']=this['_createButton'](c(_0x4c3d06,'Accept\x20suggestion'),_0x35d65b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x4c3d06,'Discard\x20suggestion'),_0x12bc4e,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xecee32(_0x4c3d06,_0x53d039['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x10e58e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xc2e669(),this['keystrokes']=new _0x5188e6(),this['focusCycler']=new _0x279a0f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x23e813=>_0x23e813['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2392b4=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2392b4['innerHTML']=this['description'],this['on']('change:description',(_0x48f625,_0x15b37f,_0x3012d8)=>{_0x2392b4['innerHTML']=_0x3012d8;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x400184=this['bindTemplate'],_0x516ddd=[{'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':_0x400184['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x400184['to']('authoredAt',_0x46219a=>this['_config']['formatDateTime'](_0x46219a))}]}]},{'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']&&_0x516ddd['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':_0x516ddd}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5c010e,_0x593078,_0x207e0f,_0x7d77a,_0x32994e){const _0x16942d=new _0x2f4a77(this['locale']);return _0x16942d['set']({'label':_0x5c010e,'icon':_0x593078,'tooltip':!0x0,'tooltipPosition':_0x32994e}),_0x16942d['extendTemplate']({'attributes':{'class':_0x207e0f}}),_0x16942d['on']('execute',()=>{this['fire'](_0x7d77a,this['_model']['id']);}),_0x16942d;}['_setupKeyboardNavigation'](){const _0x2863b9=this['element'];this['keystrokes']['listenTo'](_0x2863b9);for(const _0x191588 of this['focusables'])this['focusTracker']['add'](_0x191588['element']),this['keystrokes']['listenTo'](_0x191588['element']);this['keystrokes']['set']('enter',(_0x5195b0,_0x5e306e)=>{_0x2863b9===_0x5195b0['target']&&(this['focusCycler']['focusFirst'](),_0x5e306e());}),this['keystrokes']['set']('esc',(_0x563d99,_0x460757)=>{_0x2863b9!==_0x563d99['target']&&(this['focus'](),_0x460757());});}}class d extends _0x54e516{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x25323f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a8b6c){super(_0x1a8b6c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xda7927=this['editor']['config'];_0xda7927['define']('trackChanges.SuggestionThreadView',fe),_0xda7927['define']('trackChanges.SuggestionView',we),_0xda7927['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xda7927['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x394fc4,_0x4f1f25){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1d1bf2,_0x164bd8]of this['_handleControllerBuffer']){const _0x5acc99=this['_suggestionToController']['has'](_0x1d1bf2);_0x5acc99||_0x164bd8?_0x5acc99&&_0x164bd8&&this['_destroyController'](_0x1d1bf2):this['_initializeController'](_0x1d1bf2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x394fc4,_0x4f1f25);}['init'](){const _0x500011=this['editor'],_0x45850b=_0x500011['plugins']['get']('TrackChangesEditing'),_0x1bed96=_0x500011['plugins']['get']('Annotations'),_0x14fb3b=_0x500011['plugins']['get']('EditorAnnotations'),_0x20793a=_0x500011['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x14fb3b['addSourceCollector'](()=>{const _0x65493c=[];for(const [_0x55eb1c,_0x2a9050]of Array['from'](this['_suggestionToController'])){const _0x1525db=_0x55eb1c['getAllAdjacentSuggestions'](),_0x3152bc=[];for(const _0x2d16e9 of _0x1525db){if(!_0x2d16e9['isInContent'])continue;if(_0x2d16e9['isMultiRange']){_0x3152bc['push'](..._0x2d16e9['getRanges']());continue;}const _0x47b2e9=_0x2d16e9['getFirstRange']();if(_0x3152bc['length']>0x0){const _0x4cee85=_0x3152bc[0x0]['getJoined'](_0x47b2e9);if(_0x4cee85){_0x3152bc[0x0]=_0x4cee85;continue;}}_0x3152bc['push'](_0x47b2e9);}_0x65493c['push']([_0x2a9050['view'],_0x3152bc]);}return _0x65493c;}),this['listenTo'](_0x45850b,'suggestionLoaded',(_0xbb7b25,_0x1965b9)=>{this['listenTo'](_0x1965b9,'change:previous',(_0x328e37,_0x16a004,_0x540536,_0x326c57)=>{_0x1965b9['isInContent']&&(null==_0x540536?(this['_updateController'](_0x326c57['head']),this['_handleSuggestionControllerDelayed'](_0x1965b9,!0x1)):(this['_updateController'](_0x540536['head']),null==_0x326c57&&this['_handleSuggestionControllerDelayed'](_0x1965b9,!0x0)));}),null!==_0x1965b9['previous']?this['_updateController'](_0x1965b9['head']):this['_handleSuggestionControllerDelayed'](_0x1965b9,!0x1);}),this['listenTo'](_0x45850b,'suggestionUnloaded',(_0x5cea6a,_0x2b1da8,_0x5a3e02)=>{this['stopListening'](_0x2b1da8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2b1da8),this['_suggestionToController']['has'](_0x2b1da8)&&this['_destroyController'](_0x2b1da8),_0x5a3e02&&this['_updateController'](_0x5a3e02['head']);}),this['listenTo'](_0x45850b,'suggestionChanged',(_0x4a0794,_0x5d6f85)=>{this['_updateController'](_0x5d6f85);}),this['listenTo'](_0x1bed96,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x20793a,'addComment',(_0x1ed433,{threadId:_0x1ce766,isFromAdapter:_0x1dd39e})=>{if(_0x1dd39e||!_0x45850b['hasSuggestion'](_0x1ce766))return;const _0x52c591=_0x45850b['getSuggestion'](_0x1ce766);this['_suggestionToController']['get'](_0x52c591)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x50dbb8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3919e6;for(const _0x2bc92f in _0x50dbb8){const _0x24d510=_0x2bc92f,_0x31b777=_0x50dbb8[_0x24d510];if('trackChangesLicenseKeyValid'==_0x31b777||'trackChangesLicenseKeyInvalid'==_0x31b777||'trackChangesLicenseKeyExpired'==_0x31b777||'trackChangesLicenseKeyDomainLimit'==_0x31b777||'trackChangesLicenseKeyNotAllowed'==_0x31b777||'trackChangesLicenseKeyEvaluationLimit'==_0x31b777||'trackChangesLicenseKeyTrialLimit'==_0x31b777||'trackChangesLicenseKeyUsageLimit'==_0x31b777){delete _0x50dbb8[_0x24d510],_0x3919e6=_0x31b777,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3919e6&&_0x50dbb8['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3919e6&&_0x50dbb8['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3919e6&&_0x50dbb8['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3919e6&&_0x50dbb8['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3919e6&&_0x50dbb8['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3919e6&&_0x50dbb8['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3919e6&&_0x50dbb8['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x588185=this['editor']['plugins']['get']('Annotations'),_0x17645b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a431f=Array['from'](_0x588185['activeAnnotations'],_0x4f26b3=>_0x4f26b3['innerView'])['filter'](_0x1e7b62=>this['_viewToController']['has'](_0x1e7b62)),_0x5de93d=[];for(const _0x2fdb8b of _0x3a431f){const _0xc7b842=this['_viewToController']['get'](_0x2fdb8b)['model']['getAllAdjacentSuggestions']();_0x5de93d['push'](..._0xc7b842['reduce']((_0x209820,_0x585b24)=>[..._0x209820,..._0x585b24['getMarkerNames']()],[]));}_0x17645b['activeMarkers']=_0x5de93d;}['_addUIComponentsToFactory'](){const _0x3f461e=this['editor'],_0xcf1027=_0x3f461e['locale'],_0x4fc038=c(_0xcf1027,'Track\x20changes'),_0x29b82c=new _0x2e0cef([{'type':'switchbutton','model':new _0x4e4f6a({'withText':!0x0,'isToggleable':!0x0,'label':_0x4fc038,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4e4f6a({'withText':!0x0,'label':c(_0xcf1027,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4e4f6a({'withText':!0x0,'label':c(_0xcf1027,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4e4f6a({'withText':!0x0,'label':c(_0xcf1027,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4e4f6a({'withText':!0x0,'label':c(_0xcf1027,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3f461e['plugins']['has']('TrackChangesPreview')&&_0x29b82c['addMany']([{'type':'separator'},{'type':'button','model':new _0x4e4f6a({'withText':!0x0,'label':c(_0xcf1027,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x19072c of _0x29b82c)if(ke(_0x19072c)){const _0x360bee=_0x3f461e['commands']['get'](_0x19072c['model']['commandName']);_0x19072c['model']['bind']('isOn','isEnabled')['to'](_0x360bee,'value','isEnabled');}_0x3f461e['ui']['componentFactory']['add']('trackChanges',_0x1d0388=>this['_createToolbarButton'](_0x1d0388,_0x29b82c,_0x4fc038)),_0x3f461e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x21640a=>this['_createMenuBarMenu'](_0x21640a,_0x29b82c,_0x4fc038));}['_createToolbarButton'](_0xb14fb7,_0x5189f7,_0x21d81c){const _0x5eae1f=_0x56e766(_0xb14fb7,_0x5c40a3),_0x5c7cb4=this['editor']['commands']['get']('trackChanges');_0x5eae1f['buttonView']['set']({'tooltip':_0x21d81c,'label':_0x21d81c,'icon':_0xd8a762}),_0x5eae1f['buttonView']['bind']('isOn')['to'](_0x5c7cb4,'value'),_0x5eae1f['buttonView']['on']('execute',()=>{_0x5c7cb4['execute'](),this['editor']['editing']['view']['focus']();}),_0x3efabf(_0x5eae1f,_0x5189f7,{'role':'menu'});const _0x423edc=[];for(const _0x2549ca of _0x5189f7)ke(_0x2549ca)&&_0x423edc['push'](this['editor']['commands']['get'](_0x2549ca['model']['commandName']));const _0x531684=_0x5eae1f['buttonView'];return _0x531684['actionView']['unbind']('isEnabled'),_0x531684['arrowView']['unbind']('isEnabled'),_0x531684['actionView']['bind']('isEnabled')['to'](_0x5c7cb4,'isEnabled'),_0x531684['arrowView']['bind']('isEnabled')['toMany'](_0x423edc,'isEnabled',(..._0x46ab7f)=>_0x46ab7f['some'](_0xc82994=>_0xc82994)),_0x5eae1f['on']('execute',_0x24539c=>{this['editor']['execute'](_0x24539c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5eae1f;}['_createMenuBarMenu'](_0x46a053,_0x2d498a,_0x1714b5){const _0x3ebaf4=new _0x1aee17(_0x46a053),_0x1b5bc7=this['editor']['commands']['get']('trackChanges');_0x3ebaf4['buttonView']['set']({'label':_0x1714b5,'icon':_0xd8a762});const _0x36a975=new _0x2d7c81(_0x46a053);for(const _0x593f76 of _0x2d498a){if('separator'==_0x593f76['type']){_0x36a975['items']['add'](new _0x36879a(_0x46a053));continue;}const _0x276e36=new _0x4592f0(_0x46a053,_0x3ebaf4),_0x33b7c7=new _0x89f640(_0x46a053),_0x10d4fb=_0x593f76['model'];_0x33b7c7['bind'](...Object['keys'](_0x10d4fb))['to'](_0x10d4fb),_0x33b7c7['delegate']('execute')['to'](_0x3ebaf4),_0x33b7c7['on']('execute',()=>{this['editor']['execute'](_0x10d4fb['commandName']),this['editor']['editing']['view']['focus']();}),_0x276e36['children']['add'](_0x33b7c7),_0x36a975['items']['add'](_0x276e36);}return _0x3ebaf4['bind']('isEnabled')['to'](_0x1b5bc7,'isEnabled'),_0x3ebaf4['panelView']['children']['add'](_0x36a975),_0x3ebaf4;}['_initializeController'](_0x84336c){const _0x4e91bc=this['editor'],_0x2a4e4b=_0x4e91bc['config'],_0x3b6817=_0x4e91bc['plugins']['get']('Annotations'),_0x1fac0a=_0x4e91bc['plugins']['get']('CommentsRepository'),_0x17d464=_0x4e91bc['plugins']['get']('EditorAnnotations'),_0x4978f1=_0x4e91bc['plugins']['get'](_0x25323f)['me'],_0x2dc753=_0x2a4e4b['get']('trackChanges')['SuggestionThreadView'],_0x4a2187=_0x2a4e4b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x23fa84,CommentThreadInputView:_0x56c5b0}=_0x4e91bc['plugins']['get']('CommentsUI');let _0x361464,_0x116799,_0x3834a1;this['_annotationViews']['has'](_0x84336c['id'])?(_0x116799=this['_annotationViews']['get'](_0x84336c['id']),_0x361464=_0x116799['mainView']):(_0x361464=new _0x2dc753(_0x4e91bc['locale'],_0x84336c,_0x4978f1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2a4e4b['get']('comments.editorConfig'),'licenseKey':_0x2a4e4b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2a4e4b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2a4e4b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2a4e4b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x31fc8e(_0x2a4e4b['get']('locale')),'CommentView':_0x2a4e4b['get']('comments')['CommentView'],'CommentsListView':_0x23fa84,'CommentThreadInputView':_0x56c5b0,'SuggestionView':_0x4a2187}),_0x361464['suggestionView']['acceptButton']['on']('execute',()=>{_0x4e91bc['editing']['view']['focus']();}),_0x361464['suggestionView']['discardButton']['on']('execute',()=>{_0x4e91bc['editing']['view']['focus']();}),_0x116799=_0x3b6817['createAnnotationView'](this['editor']['locale'],_0x361464),_0x116799['bind']('isDirty')['to'](_0x361464,'isDirty'),_0x116799['bind']('length')['to'](_0x361464),_0x116799['bind']('type')['to'](_0x361464,'type',_0x3201ab=>'suggestion-'+_0x3201ab),_0x361464['on']('escape',()=>{_0x3834a1['fire']('escape');}),this['_annotationViews']['set'](_0x84336c['id'],_0x116799));const _0x1ec94c=_0x1fac0a['createCommentThreadController'](_0x84336c['commentThread'],_0x361464),_0x35cdfa=new pe(_0x4e91bc,_0x84336c,_0x361464,_0x1ec94c),_0x3ee3c8=_0x84336c['getAllAdjacentSuggestions']()['filter'](_0x542498=>_0x542498['isInContent']);_0x361464['descriptionParts']=_0x4e91bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3ee3c8),this['_suggestionToController']['set'](_0x84336c,_0x35cdfa),this['_viewToController']['set'](_0x361464,_0x35cdfa),_0x3834a1=_0x3b6817['createAnnotation']({'view':_0x116799,'target':()=>{const _0x1aa890=[],_0x19d2e3=_0x84336c['getAllAdjacentSuggestions']()['filter'](_0x31bba0=>_0x31bba0['isInContent']);for(const _0x5cb6bf of _0x19d2e3)_0x1aa890['push'](..._0x5cb6bf['getMarkers']());return _0x1cd5aa(_0x4e91bc['editing'],_0x1aa890);},'type':()=>'suggestion-'+_0x35cdfa['view']['type']}),_0x1fac0a['_bindAnnotationToEditors'](_0x361464,_0x3834a1),_0x3b6817['add'](_0x3834a1),_0x17d464['registerAnnotation'](_0x3834a1);}['_destroyController'](_0x5e4fa0){const _0xbaa07c=this['editor']['plugins']['get']('CommentsRepository'),_0x46b779=this['editor']['plugins']['get']('Annotations'),_0x379604=this['_suggestionToController']['get'](_0x5e4fa0),_0x27bdc1=_0x379604['view'],_0x18ee01=_0x46b779['getByInnerView'](_0x27bdc1);_0xbaa07c['_unbindEditors'](_0x27bdc1),_0x18ee01&&_0x46b779['remove'](_0x18ee01),this['_suggestionToController']['delete'](_0x5e4fa0),this['_viewToController']['delete'](_0x27bdc1),_0x379604['destroy']();}['_updateController'](_0x26e460){if(!_0x26e460['isInContent']||!this['_suggestionToController']['has'](_0x26e460))return;const _0x34f603=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3600af=this['_suggestionToController']['get'](_0x26e460),_0x5a4f6e=_0x26e460['getAllAdjacentSuggestions']();_0x3600af['view']['descriptionParts']=_0x34f603['descriptionFactory']['getDescriptions'](_0x5a4f6e);}['destroy'](){for(const _0x35b041 of this['_suggestionToController']['keys']())this['_destroyController'](_0x35b041);for(const _0x2573cc of this['_annotationViews']['values']())_0x2573cc['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xc30b38){return'model'in _0xc30b38;}class k extends _0x54e516{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x504270){this['editor']['plugins']['get'](p)['adapter']=_0x504270;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3da1ac){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3da1ac);}['getSuggestions']({skipNotAttached:_0x258b96=!0x1,toJSON:_0x11a7aa=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x258b96,'toJSON':_0x11a7aa});}['getSuggestion'](_0xc31a46){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xc31a46);}}const w=['Pagination'];class T extends _0x54e516{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1b3ce8=this['editor'];if(_0x1b3ce8['config']['define']('trackChangesData.editorCreator',_0x2b1cdb=>{const _0x3a850d=_0x1b3ce8['model']['document']['getRootNames']()['reduce']((_0xdb57fa,_0x28fcf8)=>(_0xdb57fa[_0x28fcf8]='',_0xdb57fa),{});return _0x1b3ce8['constructor']['create'](_0x3a850d,_0x2b1cdb);}),'function'!=typeof _0x1b3ce8['config']['get']('trackChangesData')['editorCreator'])throw new _0x1a1d2d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x6c22bc){return N(this['editor'],!0x0,_0x6c22bc);}['getDataWithDiscardedSuggestions'](_0x29975b){return N(this['editor'],!0x1,_0x29975b);}}class D extends _0x54e516{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56190f){function _0x504eab(_0x516c06){return _0x516c06['map'](_0x4e23df=>String['fromCharCode'](_0x4e23df))['join']('');}super(_0x56190f),this['result']='end',_0x56190f[_0x504eab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x504eab([0x76,0x69,0x65,0x77])][_0x504eab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x504eab([0x61,0x75,0x74,0x6f]),_0x56190f[_0x504eab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x504eab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x504eab([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x504eab([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x504eab([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x4eb909){return void 0x0!==_0x4eb909['getRootsAttributes'];}async function N(_0x4acc15,_0x2335fe,_0x344d4e){const _0xfaf3af=_0x3a3895(_0x4acc15,w);_0xfaf3af['plugins']['push'](p,D),_0xfaf3af['rootsAttributes']=Fe(_0x4acc15)?_0x4acc15['getRootsAttributes']():void 0x0;const _0x9259e8=document['createDocumentFragment'](),_0x23f7be=_0x4acc15['config']['get']('trackChangesData')['editorCreator'],_0x18a595=await _0x23f7be(_0xfaf3af,()=>function(_0x285b33){const _0x191604=document['createElement']('div');return _0x285b33['appendChild'](_0x191604),_0x191604;}(_0x9259e8));!function(_0x5dc601,_0x4d0445){const _0x37911a=_0x5dc601['model']['document']['getRootNames']()['reduce']((_0xec86aa,_0x2d7908)=>(_0xec86aa[_0x2d7908]=_0x5dc601['data']['get']({'rootName':_0x2d7908}),_0xec86aa),{}),_0x229b56=_0x5dc601['plugins']['get']('Users')['users']['map'](_0x40c6fc=>({'id':_0x40c6fc['id'],'name':_0x40c6fc['name']})),_0x106864=_0x5dc601['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x149ccd=_0x5dc601['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x110776=_0x4d0445['plugins']['get']('Users'),_0x24c2ed=_0x4d0445['plugins']['get']('TrackChangesEditing'),_0x40cefd=_0x4d0445['plugins']['get']('CommentsRepository');for(const _0x53e7d4 of _0x40cefd['getCommentThreads']())_0x53e7d4['remove']();for(const _0x15627f of _0x229b56)_0x110776['getUser'](_0x15627f['id'])||_0x110776['addUser'](_0x15627f);_0x110776['me']||_0x110776['useAnonymousUser']();for(const _0x505f5c of _0x149ccd)_0x40cefd['addCommentThread'](_0x505f5c);for(const _0x15b863 of _0x106864)_0x24c2ed['addSuggestionData'](_0x15b863);_0x4d0445['data']['set'](_0x37911a);}(_0x4acc15,_0x18a595),_0x18a595['execute'](_0x2335fe?'acceptAllSuggestions':'discardAllSuggestions');const _0x97e301=Fe(_0x18a595)?_0x18a595['getFullData'](_0x344d4e):_0x18a595['data']['get'](_0x344d4e);return await _0x18a595['destroy'](),_0x97e301;}class Me extends _0x1d3524{['options'];constructor(_0x271eb3,_0x1d6d3a){super(_0x271eb3),this['options']=_0x1d6d3a,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'](_0x234434,_0x5e87e5){if(!this['element'])return;const _0x3b5e36=[];for(const [_0x42eeca,_0x9e5758]of _0x234434){const _0x5586d3=document['createElement']('div');_0x5586d3['setAttribute']('data-ck-root-name',_0x42eeca),_0x5586d3['className']=_0x9e5758['classes']+'\x20ck-track-changes-preview__root-container',_0x5586d3['innerHTML']=_0x9e5758['content'],_0x3b5e36['push'](_0x5586d3);}_0x5e87e5(this['element'],_0x3b5e36),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x339021{constructor(_0x4c9206){super(_0x4c9206),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4c2e03=this['editor'],_0x25a92a=_0x4c2e03['locale'],_0x5ae96f=_0x4c2e03['plugins']['get']('Dialog');let _0x26935d;const _0xfdaab7=function(_0x1c75af){const _0x3b3523={};if('editables'in _0x1c75af['ui']['view']){for(const [_0x54edcc,_0x2db791]of Object['entries'](_0x1c75af['ui']['view']['editables']))_0x3b3523[_0x54edcc]=_0x2db791['element'];}else _0x3b3523[_0x1c75af['model']['document']['getRootNames']()[0x0]]=_0x1c75af['ui']['view']['editable']['element'];return _0x3b3523;}(_0x4c2e03),_0x18f08d=function(_0x50210a){let _0x167956=0x0;for(const _0x48fc4d of Object['values'](_0x50210a))_0x167956=Math['max'](_0x167956,_0x48fc4d['getBoundingClientRect']()['width']);let _0x1ad214=0x0;for(const _0x37c7fe of Object['values'](_0x50210a))_0x1ad214+=_0x37c7fe['getBoundingClientRect']()['height'];const _0xc6f730=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x262dc2=Math['min'](_0x1ad214,_0xc6f730);return{'width':_0x167956,'height':_0x262dc2};}(_0xfdaab7);_0x5ae96f['show']({'id':'finalContentPreview','title':c(_0x25a92a,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x25a92a,{'dialogRects':_0x18f08d}),'onHide':()=>{_0x26935d['detachFromDom']();},'onShow':()=>{_0x4c2e03['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x57b65c=>{const _0x31e62a=this['_standarizeRootsData'](_0x57b65c,_0x4c2e03,_0xfdaab7);_0x5ae96f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x31e62a,_0x4c2e03['config']['get']('trackChanges.preview.renderFunction'));}),_0x26935d=new _0x36cf22(_0x25a92a,[_0x5ae96f['view']]),_0x26935d['attachToDom'](),_0x26935d['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4c2e03['once']('destroy',()=>{_0x26935d['detachFromDom']();});const _0x5e1a21=_0x5ae96f['view']['headerView']['class'];_0x5ae96f['view']['headerView']['class']=_0x5e1a21?_0x5e1a21+'\x20ck-reset_all':'ck-reset_all',_0x5ae96f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5ae96f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x525773=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x48d997=_0x525773['previewMode'],_0x2fe4c4={};if('$labels'===_0x48d997){for(const _0x2ba6a5 of _0x525773['getMergeFieldsIds']())_0x2fe4c4[_0x2ba6a5]=_0x525773['getLabel'](_0x2ba6a5)||_0x2ba6a5;}else{const _0x4ebb07='$defaultValues'===_0x48d997?_0x525773['getDefaultValues']():_0x525773['getDataSetValues'](_0x48d997,!0x0);for(const _0x29a617 of Object['entries'](_0x4ebb07)){const [_0x14961d,_0x4c7a97]=_0x29a617;_0x2fe4c4[_0x14961d]=null!==_0x4c7a97?_0x4c7a97:_0x525773['getLabel'](_0x14961d)||_0x14961d;}}return{'mergeFieldsData':_0x2fe4c4};}['_standarizeRootsData'](_0x1bf31d,_0x1a8131,_0x499892){let _0x9a7f03;if('string'==typeof _0x1bf31d){const _0x47bff7=_0x1a8131['model']['document']['getRootNames']()[0x0];_0x9a7f03={[_0x47bff7]:_0x1bf31d};}else _0x9a7f03=_0x1bf31d;const _0x1a8454=this['_fixMediaEmbeds'](_0x9a7f03,_0x1a8131),_0x42d372=function(_0x17ce85,_0x3d7f10){for(const [_0x535b86,_0x2dd2c0]of _0x17ce85)_0x2dd2c0['classes']=_0x3d7f10[_0x535b86]['classList']['value']['replace']('ck-focused','');return _0x17ce85;}(this['_sortRoots'](_0x1a8131)['reduce']((_0x4ab4d2,_0x19ae69)=>(_0x4ab4d2['push']([_0x19ae69,{'content':_0x1a8454[_0x19ae69],'classes':''}]),_0x4ab4d2),[]),_0x499892);return _0x42d372;}['_fixMediaEmbeds'](_0x1b561a,_0x5b4309){if(!_0x5b4309['plugins']['has']('MediaEmbedEditing'))return _0x1b561a;const _0x26b909=_0x5b4309['plugins']['get']('MediaEmbedEditing');for(const [_0x295c07,_0x2144cd]of Object['entries'](_0x1b561a)){const _0x35b78a=document['createElement']('div');_0x35b78a['innerHTML']=_0x2144cd,(_0x35b78a['querySelectorAll']('figure.media')['forEach'](_0x3b3ca4=>{const _0x553701=_0x3b3ca4['querySelector']('oembed');if(_0x553701){const _0x4d602b=_0x553701['getAttribute']('url');if(_0x4d602b){const _0x441745=_0x26b909['registry']['getMediaViewElement'](new _0x162b19(_0x5b4309['editing']['view']['document']),_0x4d602b,{'elementName':'','renderForEditingView':!0x0}),_0x519d67=document['createElement']('div');_0x519d67['classList']['add']('ck-media__wrapper'),_0x441745['render'](_0x519d67,_0x5b4309['editing']['view']['domConverter']),_0x553701['replaceWith'](_0x519d67);}}}),_0x1b561a[_0x295c07]=_0x35b78a['innerHTML']);}return _0x1b561a;}['_sortRoots'](_0x1d9e88){if(!function(_0x3c1480){return void 0x0!==_0x3c1480['getRootsAttributes'];}(_0x1d9e88))return _0x1d9e88['model']['document']['getRootNames']();const _0x331ad4=[],_0x13c807=new Map();for(const _0x386ec9 of _0x1d9e88['model']['document']['getRootNames']()){const _0xf1a4f=_0x1d9e88['editing']['view']['getDomRoot'](_0x386ec9)['getClientRects']()['item'](0x0);_0x331ad4['push'](_0x386ec9),_0x13c807['set'](_0x386ec9,_0xf1a4f);}return _0x331ad4['sort']((_0x310132,_0x25d822)=>{const _0x20ce32=_0x13c807['get'](_0x310132),_0x3c217c=_0x13c807['get'](_0x25d822);return _0x20ce32['y']-_0x3c217c['y']||_0x20ce32['x']-_0x3c217c['x'];}),_0x331ad4;}}class te extends _0x54e516{static get['requires'](){return[T,_0x7a5ccd];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f0b56){super(_0x4f0b56),_0x4f0b56['commands']['add']('previewFinalContent',new re(this['editor'])),_0x4f0b56['config']['define']('trackChanges.preview.renderFunction',(_0x5031a9,_0x3e4963)=>{for(const _0x3a6c5e of _0x3e4963)_0x5031a9['appendChild'](_0x3a6c5e);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};