@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250526.0 → 0.0.0-nightly-20250527.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 (226) 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/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/aiassistant.js +1 -1
  158. package/src/integrations/alignment.js +1 -1
  159. package/src/integrations/basicstyles.js +1 -1
  160. package/src/integrations/blockquote.js +1 -1
  161. package/src/integrations/bookmark.js +1 -1
  162. package/src/integrations/casechange.js +1 -1
  163. package/src/integrations/ckbox.js +1 -1
  164. package/src/integrations/codeblock.js +1 -1
  165. package/src/integrations/comments.js +1 -1
  166. package/src/integrations/deletecommand.js +1 -1
  167. package/src/integrations/emoji.js +1 -1
  168. package/src/integrations/entercommand.js +1 -1
  169. package/src/integrations/findandreplace.js +1 -1
  170. package/src/integrations/font.js +1 -1
  171. package/src/integrations/formatpainter.js +1 -1
  172. package/src/integrations/heading.js +1 -1
  173. package/src/integrations/highlight.js +1 -1
  174. package/src/integrations/horizontalline.js +1 -1
  175. package/src/integrations/htmlembed.js +1 -1
  176. package/src/integrations/image.js +1 -1
  177. package/src/integrations/imagereplace.js +1 -1
  178. package/src/integrations/imagestyle.js +1 -1
  179. package/src/integrations/importword.js +1 -1
  180. package/src/integrations/indent.js +1 -1
  181. package/src/integrations/inputcommand.js +1 -1
  182. package/src/integrations/legacylist.js +1 -1
  183. package/src/integrations/legacylistproperties.js +1 -1
  184. package/src/integrations/link.js +1 -1
  185. package/src/integrations/list.js +1 -1
  186. package/src/integrations/listproperties.js +1 -1
  187. package/src/integrations/mediaembed.js +1 -1
  188. package/src/integrations/mention.js +1 -1
  189. package/src/integrations/mergefields.js +1 -1
  190. package/src/integrations/multilevellist.js +1 -1
  191. package/src/integrations/pagebreak.js +1 -1
  192. package/src/integrations/paragraph.js +1 -1
  193. package/src/integrations/removeformat.js +1 -1
  194. package/src/integrations/replacesourcecommand.js +1 -1
  195. package/src/integrations/restrictededitingmode.js +1 -1
  196. package/src/integrations/shiftentercommand.js +1 -1
  197. package/src/integrations/standardeditingmode.js +1 -1
  198. package/src/integrations/style.js +1 -1
  199. package/src/integrations/table.js +1 -1
  200. package/src/integrations/tablecaption.js +1 -1
  201. package/src/integrations/tableclipboard.js +1 -1
  202. package/src/integrations/tablecolumnresize.js +1 -1
  203. package/src/integrations/tableheadings.js +1 -1
  204. package/src/integrations/tablelayout.js +1 -1
  205. package/src/integrations/tablemergesplit.js +1 -1
  206. package/src/integrations/tableofcontents.js +1 -1
  207. package/src/integrations/tableproperties.js +1 -1
  208. package/src/integrations/template.js +1 -1
  209. package/src/integrations/title.js +1 -1
  210. package/src/integrations/undo.js +1 -1
  211. package/src/integrations/uploadcare.js +1 -1
  212. package/src/integrations/utils.js +1 -1
  213. package/src/suggestion.js +2 -2
  214. package/src/suggestiondescriptionfactory.js +1 -1
  215. package/src/trackchanges.js +1 -1
  216. package/src/trackchangesdata.js +1 -1
  217. package/src/trackchangesediting.js +1 -1
  218. package/src/trackchangespreview.js +1 -1
  219. package/src/trackchangesui.js +1 -1
  220. package/src/ui/suggestioncontroller.js +2 -2
  221. package/src/ui/view/basesuggestionthreadview.js +1 -1
  222. package/src/ui/view/suggestionthreadview.js +1 -1
  223. package/src/ui/view/suggestionview.js +1 -1
  224. package/src/ui/view/trackchangespreviewview.js +1 -1
  225. package/src/utils/common-translations.js +1 -1
  226. 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 _0x1e86e5,Plugin as _0x577ae7,PendingActions as _0x5b2277}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3bf293,ObservableMixin as _0x4b5d5f,uid as _0x147536,priorities as _0x359a13,insertToPriorityArray as _0x298e16,toArray as _0x5894de,logWarning as _0x2257ec,getEnvKeystrokeText as _0x5670bc,FocusTracker as _0x5d45b2,KeystrokeHandler as _0x5b4e17,Collection as _0x2d3f2d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x42c957,IconCancel as _0x3172ec,IconTrackChanges as _0x263ea4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1a6ad8,View as _0x36af6d,ViewCollection as _0x3d953b,FocusCycler as _0x582a27,ViewModel as _0x41a0e2,createDropdown as _0x49273c,SplitButtonView as _0x4bcb62,addListToDropdown as _0x45854c,MenuBarMenuView as _0x34d256,MenuBarMenuListView as _0x1706ac,ListSeparatorView as _0x475808,MenuBarMenuListItemView as _0x359a6c,MenuBarMenuListItemButtonView as _0x94c5e9,BodyCollection as _0x45ffab,Dialog as _0x19d789}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x671950,hashObject as _0x39cd73,surroundingMarkersDetector as _0x41b32b,FOCUS_ANNOTATION_KEYSTROKE as _0x3938eb,AriaDescriptionView as _0x1c3831,setupThreadKeyboardNavigation as _0x29d324,trimHtml as ti,UserView as _0x46ccea,LateFocusButtonView as _0x51bdbf,getDateTimeFormatter as _0x49779c,getAllMarkersDomElementsSorted as _0x2a17b3,sanitizeEditorConfig as _0x4ffdbb}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x59b063,LiveRange as _0x3a5e87,LivePosition as _0x303748,DowncastWriter as _0x25b75f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x231675,toWidget as _0x185ea5}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x27f738,set as _0x178863,isEqual as _0xe83722,unset as _0x359ae2,omit as Ft}from'es-toolkit/compat';import{Delete as _0x5c99b2,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x530fc1}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1a1079}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x1e86e5{['_enabledCommands'];constructor(_0x14c588,_0x25cc5f){super(_0x14c588),this['_enabledCommands']=_0x25cc5f,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 _0x28628c of this['editor']['commands']['commands']())_0x28628c['affectsData']&&!this['_enabledCommands']['has'](_0x28628c)&&_0x28628c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xe40638 of this['editor']['commands']['commands']())_0xe40638['affectsData']&&!this['_enabledCommands']['has'](_0xe40638)&&_0xe40638['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x1e86e5{['_suggestions'];constructor(_0x2c6a43,_0x32cc39){super(_0x2c6a43),this['_suggestions']=_0x32cc39,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2717a1){const _0x56d898=this['_suggestions']['get'](_0x2717a1);if(!_0x56d898)throw new _0x3bf293('track-changes-accept-suggestion-not-found',this);const _0x5f2975=_0x56d898['getRanges']();this['editor']['model']['canEditAt'](_0x5f2975)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x56d898);}}class O extends _0x1e86e5{['_suggestions'];constructor(_0x3a92cb,_0x575ca2){super(_0x3a92cb),this['_suggestions']=_0x575ca2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5979b7){const _0x319d2c=this['_suggestions']['get'](_0x5979b7);if(!_0x319d2c)throw new _0x3bf293('track-changes-discard-suggestion-not-found',this);const _0x5a105b=_0x319d2c['getRanges']();this['editor']['model']['canEditAt'](_0x5a105b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x319d2c);}}function ls(_0x25d0a3,_0x741ad){let _0xe1ba3d='';return _0xe1ba3d+=_0x25d0a3['split']('*')['map']((_0x512ae2,_0x5c4344)=>_0x5c4344%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x512ae2)+'</span>':nn(_0x512ae2))['join'](''),_0x741ad&&(_0xe1ba3d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x741ad['value']+'\x22\x20title=\x22'+_0x741ad['title']+'\x22></span>'),_0xe1ba3d;}function nn(_0x283060){const _0x5bc0e2=document['createElement']('span');return _0x5bc0e2['innerText']=_0x283060,_0x5bc0e2['innerHTML'];}function ts(_0x63917f){return _0x63917f['sort']((_0x5b279f,_0x5f5add)=>'deletion'==_0x5b279f['type']&&'deletion'!=_0x5f5add['type']?-0x1:'deletion'!=_0x5b279f['type']&&'deletion'==_0x5f5add['type']?0x1:0x0);}function to(_0x329275,_0x3a7a56){let _0x5b2647,_0x339601=0x0;const _0x502831=[],_0x30090=_0x3a7a56['schema'];for(;_0x339601<_0x329275['length'];){const _0x249992=_0x329275[_0x339601],_0x1b8eec=_0x329275[_0x339601+0x1];_0x5b2647||(_0x5b2647=_0x3a7a56['createPositionBefore'](_0x249992)),on(_0x3a7a56,_0x249992,_0x1b8eec)||(_0x502831['push'](_0x3a7a56['createRange'](_0x5b2647,_0x30090['isObject'](_0x249992)?_0x3a7a56['createPositionAfter'](_0x249992):_0x3a7a56['createPositionAt'](_0x249992,'end'))),_0x5b2647=null),_0x339601++;}return _0x502831;}function on(_0x155d99,_0x297d6c,_0x358255){if(!_0x358255)return!0x1;const _0x18c789=_0x155d99['createPositionAfter'](_0x297d6c),_0x3c9ce0=_0x155d99['createPositionBefore'](_0x358255);return _0x18c789['isTouching'](_0x3c9ce0);}function rs(_0x5bc5e0,_0x71d519,_0x2e2875){for(;_0x2e2875['length'];){const _0x28cc25=_0x2e2875['splice'](0x0,0x64);_0x5bc5e0['change'](()=>{for(const _0x294938 of _0x28cc25)_0x294938['isInContent']&&_0x71d519['execute'](_0x294938['id']);});}}class R extends _0x1e86e5{['_command'];['_suggestions'];constructor(_0x22004,_0x270de6,_0xed9bee){super(_0x22004),this['_command']=_0x270de6,this['_suggestions']=_0xed9bee,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4e585f=Array['from'](this['_suggestions']['values']())['some'](_0x56ccec=>_0x56ccec['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4e585f;}['execute'](){const _0x15ad8a=ts(Array['from'](this['_suggestions']['values']()));for(const _0xa08e4c of _0x15ad8a){const _0x5c57f1=_0xa08e4c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5c57f1))return;}rs(this['editor']['model'],this['_command'],_0x15ad8a);}}class E extends _0x1e86e5{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3c0f49,_0x8cad6c,_0x1d20de){super(_0x3c0f49),this['_command']=_0x8cad6c,this['_suggestions']=_0x1d20de,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x46bd7e=this['editor']['model']['document']['selection'],_0xa1f397=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x11eadf,_0x3d246f){const _0x2425a6=Array['from'](_0x11eadf['getRanges']()),_0x4e4f5a=new Set();for(const _0x12a43f of _0x3d246f)if(_0x12a43f['isInContent']){for(const _0xb348a4 of _0x2425a6)for(const _0x2154c0 of _0x12a43f['getRanges']())(_0xb348a4['isIntersecting'](_0x2154c0)||_0x11eadf['isCollapsed']&&!_0x12a43f['isMultiRange']&&_0x12a43f['next']&&_0x2154c0['end']['isTouching'](_0xb348a4['start']))&&_0x4e4f5a['add'](_0x12a43f);}return _0x4e4f5a;}(_0x46bd7e,_0xa1f397),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x401384=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3295f9 of _0x401384){const _0x4b5f0d=_0x3295f9['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b5f0d))return;}rs(this['editor']['model'],this['_command'],_0x401384);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x4b5d5f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2f862a,_0x1f97c0){super(),this['id']=_0x1f97c0['id'],this['type']=_0x1f97c0['type'],this['subType']=_0x1f97c0['subType']||null,this['author']=_0x1f97c0['author'],this['creator']=_0x1f97c0['creator']||_0x1f97c0['author'],this['isExternal']=Boolean(_0x1f97c0['attributes']&&_0x1f97c0['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1f97c0['originalSuggestionId']||null,this['_model']=_0x2f862a,this['_onAccept']=_0x1f97c0['onAccept'],this['_onDiscard']=_0x1f97c0['onDiscard'],this['_onAttributesChange']=_0x1f97c0['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1f97c0['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 _0x2d9610=this;for(;_0x2d9610['previous'];)_0x2d9610=_0x2d9610['previous'];return _0x2d9610;}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'](_0x43e724){this['_markerNames']['add'](_0x43e724);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x470b58=>this['_model']['markers']['get'](_0x470b58))['filter'](_0x1d93dc=>_0x1d93dc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x22ca54=>{for(const _0x45d212 of this['getMarkers']())_0x22ca54['removeMarker'](_0x45d212);}),this['_markerNames']['clear']();}['removeMarker'](_0x5e87f4){this['_model']['change'](_0x535b6e=>{_0x535b6e['removeMarker'](_0x5e87f4);}),this['_markerNames']['delete'](_0x5e87f4);}['addRange'](_0x2e39a7){const _0x1ee3ed='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x1ee3ed),this['_model']['change'](_0x1db5d8=>{_0x1db5d8['addMarker'](_0x1ee3ed,{'range':_0x2e39a7,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x416933){for(const _0x12b84d of this['getRanges']())if(_0x12b84d['isIntersecting'](_0x416933))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x434c72=>_0x434c72['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4c03f3,_0x30c253)=>[..._0x4c03f3,..._0x30c253['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3df1bc=this['getRanges']();if(0x1!=_0x3df1bc['length'])return null;const _0x303316=_0x3df1bc[0x0],_0x20ca08=_0x303316['start']['nodeAfter'],_0x2610ce=_0x303316['end']['nodeBefore'];return _0x20ca08 instanceof _0x59b063?_0x20ca08!=_0x2610ce?null:_0x20ca08: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 _0x216136=[];let _0x2dd61c=this['head'];for(;_0x2dd61c;)_0x216136['push'](_0x2dd61c),_0x2dd61c=_0x2dd61c['next'];return _0x216136;}['setAttribute'](_0x1234be,_0x431973){const _0x1e04e8=_0x27f738(this['attributes']);_0x178863(_0x1e04e8,_0x1234be,_0x431973),_0xe83722(_0x1e04e8,this['attributes'])||(this['attributes']=_0x1e04e8,this['_onAttributesChange'](_0x1e04e8));}['removeAttribute'](_0x229aae){const _0x16f4a4=_0x27f738(this['attributes']);_0x359ae2(_0x16f4a4,_0x229aae),_0xe83722(_0x16f4a4,this['attributes'])||(this['attributes']=_0x16f4a4,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 _0x147536()['substr'](0x1,0x5);}}function c(_0xec919f,_0x3ff208,_0x5d693c){const _0x496427=_0xec919f['t'],t=_0xec919f['t'];switch(_0x3ff208){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',_0x5d693c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5d693c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5d693c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5d693c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5d693c);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',_0x5d693c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5d693c);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',_0x5d693c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5d693c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5d693c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5d693c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5d693c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5d693c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5d693c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5d693c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5d693c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5d693c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5d693c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5d693c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5d693c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5d693c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5d693c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5d693c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5d693c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5d693c);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'},_0x5d693c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5d693c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5d693c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5d693c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5d693c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5d693c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5d693c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5d693c);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'},_0x5d693c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5d693c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5d693c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5d693c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5d693c);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'},_0x5d693c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5d693c);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'},_0x5d693c);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'},_0x5d693c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5d693c);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'},_0x5d693c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5d693c);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'},_0x5d693c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5d693c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5d693c);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'},_0x5d693c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5d693c);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 _0x496427({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5d693c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x496427({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5d693c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5d693c);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'},_0x5d693c);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'},_0x5d693c);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'},_0x5d693c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3ff208;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x107d3d,_0x3f2f01){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x107d3d,this['_locale']=_0x3f2f01;}['getDescriptions'](_0x447f4c){const _0x43a2f9=[],_0x180834=new Set(),_0x3db9b7=new Set();for(let _0xd2e39e=0x0;_0xd2e39e<_0x447f4c['length'];_0xd2e39e++){const _0x2be7ca=_0x447f4c[_0xd2e39e];if(!_0x2be7ca['isInContent'])continue;const _0xb56d76=this['_handleCustomCallbackDescription'](_0x2be7ca);if(_0xb56d76){if(null!=_0x2be7ca['subType']){if(_0x180834['has'](_0x2be7ca['subType']))continue;_0x180834['add'](_0x2be7ca['subType']);}_0x43a2f9['push'](_0xb56d76);}else{if('attribute'!=_0x2be7ca['type'])'insertion'!=_0x2be7ca['type']&&'deletion'!=_0x2be7ca['type']||this['_handleInsertRemoveSuggestionDescription'](_0x43a2f9,_0x2be7ca,_0x447f4c[_0xd2e39e+0x1]);else{const _0x13c8f8=_0x2be7ca['data']['key'];if(_0x3db9b7['has'](_0x13c8f8))continue;_0x3db9b7['add'](_0x2be7ca['data']['key']),_0x13c8f8==u?this['_handleRenameSuggestionDescription'](_0x43a2f9,_0x2be7ca):this['_handleAttributeSuggestionDescription'](_0x43a2f9,_0x2be7ca);}}}return this['_resolveDescriptionItems'](_0x43a2f9);}['registerDescriptionCallback'](_0x145ae6){this['_customCallbacks']['push'](_0x145ae6);}['registerElementLabel'](_0x374ce2,_0x1fb142,_0x589e10=_0x359a13['normal']){'function'==typeof _0x374ce2?_0x298e16(this['_itemLabelsCallbacks'],{'matchingCallback':_0x374ce2,'label':_0x1fb142,'priority':_0x589e10}):this['_itemLabels']['set'](_0x374ce2,_0x1fb142);}['registerAttributeLabel'](_0x52d5bd,_0x1d0e6b){this['_attributeLabels']['set'](_0x52d5bd,_0x1d0e6b);}['getItemLabel'](_0x328a5f,_0x4a64d8=0x1){let _0x1f001f;for(const _0x61d669 of this['_itemLabelsCallbacks'])if(_0x61d669['matchingCallback'](_0x328a5f)){_0x1f001f=_0x61d669['label'];break;}return _0x1f001f||(_0x1f001f=this['_itemLabels']['get'](_0x328a5f['name'])),_0x1f001f?_0x1f001f(_0x4a64d8):0x1!==_0x4a64d8?_0x4a64d8+'\x20'+_0x328a5f['name']+'s':''+_0x328a5f['name'];}['_addDescriptionItems'](_0x3b03e1,_0x264826){const _0x226430=_0x264826['getFirstRange']()['getWalker'](),_0x4b4188='insertion'==_0x264826['type']?'add':'remove';for(const _0x3c141c of _0x226430){const _0x29b6dd=_0x3c141c['item'],_0x870240=_0x3b03e1[_0x3b03e1['length']-0x1];if(_0x29b6dd['is']('$textProxy'))_0x870240&&_0x870240['type']['indexOf']('Container')>-0x1&&_0x3b03e1['pop'](),_0x870240&&'text'==_0x870240['type']?_0x870240[_0x4b4188]+=_0x29b6dd['data']:_0x3b03e1['push']({'type':'text','add':'add'==_0x4b4188?_0x29b6dd['data']:'','remove':'remove'==_0x4b4188?_0x29b6dd['data']:''});else{if(this['_schema']['isObject'](_0x29b6dd)){const _0x344ea1=_0x29b6dd;if(_0x870240&&_0x870240['type']['indexOf']('Container')>-0x1&&_0x3b03e1['pop'](),'elementEnd'==_0x3c141c['type'])continue;_0x870240&&_0x870240['type']==_0x4b4188+'Object'&&_0x870240['element']['name']==_0x344ea1['name']?_0x870240['quantity']++:_0x3b03e1['push']({'type':_0x4b4188+'Object','element':_0x344ea1,'quantity':0x1}),_0x226430['skip'](_0x590006=>!('elementEnd'==_0x590006['type']&&_0x590006['item']==_0x29b6dd));}else{if(this['_schema']['checkChild'](_0x29b6dd,'$text')||_0x29b6dd['is']('element','softBreak')){const _0x3dbb09=_0x29b6dd;if('add'==_0x4b4188&&'elementStart'==_0x3c141c['type']||'remove'==_0x4b4188&&'elementEnd'==_0x3c141c['type'])continue;if(_0x870240&&-0x1==_0x870240['type']['indexOf']('Container')){'text'==_0x870240['type']&&(_0x870240[_0x4b4188]+='\x0a');continue;}let _0x438a93;if(_0x438a93='add'==_0x4b4188?_0x3dbb09['nextSibling']&&!this['_schema']['isObject'](_0x3dbb09['nextSibling'])?_0x3dbb09['nextSibling']:null:_0x3dbb09['previousSibling']&&!this['_schema']['isObject'](_0x3dbb09['previousSibling'])?_0x3dbb09['previousSibling']:null,_0x3dbb09['isEmpty']||_0x438a93&&_0x438a93['isEmpty']){const _0x24e6cb=_0x438a93&&_0x438a93['isEmpty']?_0x438a93:_0x3dbb09;_0x870240&&_0x870240['type']==_0x4b4188+'EmptyContainer'&&_0x870240['element']['name']==_0x24e6cb['name']?_0x870240['quantity']++:_0x3b03e1['push']({'type':_0x4b4188+'EmptyContainer','element':_0x24e6cb,'quantity':0x1});}else _0x3b03e1['push']({'type':_0x4b4188+'Container','element':_0x3dbb09});}}}}}['_resolveDescriptionItems'](_0x8a2212){const _0x4e24e8=this['_locale'],_0x5450d1=[],_0x1167b9=[],_0x13b2ab=[];for(const _0x283f56 of _0x8a2212)switch(_0x283f56['type']){case'text':if(_0x283f56['add']=_0x283f56['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x283f56['remove']=_0x283f56['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x283f56['add']&&''!=_0x283f56['remove']){_0x5450d1['push']({'type':'replace','content':c(_0x4e24e8,'REPLACE_TEXT',['\x22'+_0x283f56['remove']+'\x22','\x22'+_0x283f56['add']+'\x22'])});continue;}if(null!=_0x283f56['add']['match'](/^ +$/)){_0x5450d1['push']({'type':'insertion','content':c(_0x4e24e8,'*Insert:*\x20%0',c(_0x4e24e8,'ELEMENT_SPACE',_0x283f56['add']['length']))});continue;}if(null!=_0x283f56['remove']['match'](/^ +$/)){_0x5450d1['push']({'type':'deletion','content':c(_0x4e24e8,'*Remove:*\x20%0',c(_0x4e24e8,'ELEMENT_SPACE',_0x283f56['remove']['length']))});continue;}if(''!=_0x283f56['add']){_0x5450d1['push']({'type':'insertion','content':c(_0x4e24e8,'*Insert:*\x20%0','\x22'+_0x283f56['add']+'\x22')});continue;}_0x5450d1['push']({'type':'deletion','content':c(_0x4e24e8,'*Remove:*\x20%0','\x22'+_0x283f56['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5450d1['push']({'type':'insertion','content':c(_0x4e24e8,'*Insert:*\x20%0',this['getItemLabel'](_0x283f56['element'],_0x283f56['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5450d1['push']({'type':'deletion','content':c(_0x4e24e8,'*Remove:*\x20%0',this['getItemLabel'](_0x283f56['element'],_0x283f56['quantity']))});continue;case'addContainer':_0x5450d1['push']({'type':'insertion','content':c(_0x4e24e8,'*Split:*\x20%0',this['getItemLabel'](_0x283f56['element'],_0x283f56['quantity']))});continue;case'removeContainer':_0x5450d1['push']({'type':'deletion','content':c(_0x4e24e8,'*Merge:*\x20%0',this['getItemLabel'](_0x283f56['element'],_0x283f56['quantity']))});continue;case'addFormat':_0x1167b9['push'](_0x283f56['key']);continue;case'removeFormat':_0x13b2ab['push'](_0x283f56['key']);continue;default:_0x5450d1['push'](_0x283f56);}if(_0x1167b9['length']){const _0x374d6a=_0x1167b9['map'](_0x4c1eec=>this['_attributeLabels']['has'](_0x4c1eec)?this['_attributeLabels']['get'](_0x4c1eec):_0x4c1eec)['join'](',\x20');_0x5450d1['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x374d6a)});}if(_0x13b2ab['length']){const _0x547beb=_0x13b2ab['map'](_0x195603=>this['_attributeLabels']['has'](_0x195603)?this['_attributeLabels']['get'](_0x195603):_0x195603)['join'](',\x20');_0x5450d1['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x547beb)});}return _0x5450d1;}['_handleCustomCallbackDescription'](_0x34a698){for(const _0x2572cd of this['_customCallbacks']){const _0x228266=_0x2572cd(_0x34a698);if(_0x228266&&'type'in _0x228266)return _0x228266;}}['_handleAttributeSuggestionDescription'](_0x1d381e,_0x208416){const _0x3a2582=_0x208416['data'],_0xaa9855=void 0x0===_0x3a2582['newValue']?'removeFormat':'addFormat';_0x1d381e['push']({'type':_0xaa9855,'key':_0x3a2582['key']});}['_handleRenameSuggestionDescription'](_0x172ba4,_0x534db0){_0x172ba4['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x534db0['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x597dfd,_0x49842e,_0xded55f){if(this['_addDescriptionItems'](_0x597dfd,_0x49842e),_0xded55f&&_0xded55f['getFirstRange']()&&!_0x49842e['getFirstRange']()['end']['isEqual'](_0xded55f['getFirstRange']()['start'])){const _0x5f4732=_0x597dfd[_0x597dfd['length']-0x1],_0x389d86='insertion'==_0x49842e['type']?'add':'remove';_0x5f4732&&'text'==_0x5f4732['type']&&(_0x5f4732[_0x389d86]+='\x0a');}}}class U extends _0x577ae7{['afterInit'](){const _0x1333bb=this['editor'],_0x1a0795=_0x1333bb['plugins']['get']('TrackChangesEditing');_0x1333bb['commands']['get']('showAIAssistant')&&_0x1a0795['enableCommand']('showAIAssistant');}}class V extends _0x577ae7{['afterInit'](){const _0x557280=this['editor'],_0xec852d=_0x557280['locale'];if(!_0x557280['plugins']['has']('AlignmentEditing'))return;const _0x41e2c6=_0x557280['plugins']['get']('TrackChangesEditing');_0x41e2c6['enableDefaultAttributesIntegration']('alignment'),_0x41e2c6['registerBlockAttribute']('alignment'),_0x41e2c6['descriptionFactory']['registerAttributeLabel']('alignment',c(_0xec852d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a9a5b=this['editor'],_0x5a5be3=_0x5a9a5b['locale'];_0x5a9a5b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56c3b5=>{if('formatBlock'!=_0x56c3b5['type'])return;const {data:_0x1afbe1}=_0x56c3b5;if(_0x1afbe1&&'alignment'==_0x1afbe1['commandName']){const _0x4e131a=_0x1afbe1['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x5a5be3,'*Format:*\x20%0',function(_0x5c3a6){switch(_0x5c3a6){case'left':return c(_0x5a5be3,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x5a5be3,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x5a5be3,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x5a5be3,'FORMAT_JUSTIFY_TEXT');}}(_0x4e131a))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x577ae7{['afterInit'](){const _0x3ba60b=this['editor'],_0x250b3b=_0x3ba60b['plugins']['get']('TrackChangesEditing'),_0x51a983=_0x3ba60b['locale'];for(const _0x123971 of Zt){if(!_0x3ba60b['plugins']['has'](_0x123971))continue;const _0x15c958=_0x123971['slice'](0x0,-0x7)['toLowerCase'](),_0x2e6fb2='FORMAT_'+_0x15c958['toUpperCase']();_0x250b3b['enableDefaultAttributesIntegration'](_0x15c958),_0x250b3b['registerInlineAttribute'](_0x15c958),_0x250b3b['descriptionFactory']['registerAttributeLabel'](_0x15c958,c(_0x51a983,_0x2e6fb2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21d6b9=this['editor'],_0x37dfd1=_0x21d6b9['locale'],_0xd7c69d=_0x21d6b9['plugins']['get']('TrackChangesEditing');function _0x2af864(_0x3b76ab,_0x45be6a){_0xd7c69d['descriptionFactory']['registerDescriptionCallback'](_0x55d64b=>{if('formatInline'!=_0x55d64b['type'])return;const {data:_0x34ca1d}=_0x55d64b;return _0x34ca1d&&_0x34ca1d['commandName']===_0x3b76ab?_0x34ca1d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x37dfd1,'*Format:*\x20%0',_0x45be6a)}:{'type':'format','content':c(_0x37dfd1,'*Remove\x20format:*\x20%0',_0x45be6a)}:void 0x0;});}_0x2af864('bold',c(_0x37dfd1,'FORMAT_BOLD')),_0x2af864('italic',c(_0x37dfd1,'FORMAT_ITALIC')),_0x2af864('underline',c(_0x37dfd1,'FORMAT_UNDERLINE')),_0x2af864('code',c(_0x37dfd1,'FORMAT_CODE')),_0x2af864('strikethrough',c(_0x37dfd1,'FORMAT_STRIKETHROUGH')),_0x2af864('subscript',c(_0x37dfd1,'FORMAT_SUBSCRIPT')),_0x2af864('superscript',c(_0x37dfd1,'FORMAT_SUPERSCRIPT'));}}class G extends _0x577ae7{['afterInit'](){const _0x5d321b=this['editor'],_0x29bf56=_0x5d321b['locale'];if(!_0x5d321b['plugins']['has']('BlockQuoteEditing'))return;const _0x9d84ac=_0x5d321b['plugins']['get']('TrackChangesEditing'),_0x1a6cb5=this['editor']['commands']['get']('blockQuote');_0x9d84ac['enableCommand']('blockQuote',(_0x5726a1,_0x82cf2f={})=>{const _0x4e0c88=this['editor']['model']['document']['selection'],_0xc5f788=_0x82cf2f&&void 0x0!==_0x82cf2f['forceValue']?_0x82cf2f['forceValue']:!_0x1a6cb5['value'];let _0x3cd731=[];if(_0xc5f788){const _0x3e7034=Array['from'](_0x4e0c88['getSelectedBlocks']())['filter'](_0x2b7bd8=>oo(_0x2b7bd8)||function(_0x3c8392,_0x48cc06){const _0x524e6f=_0x48cc06['checkChild'](_0x3c8392['parent'],'blockQuote'),_0x3eedbc=_0x48cc06['checkChild'](['$root','blockQuote'],_0x3c8392);return _0x524e6f&&_0x3eedbc;}(_0x2b7bd8,this['editor']['model']['schema']));_0x3cd731=to(_0x3e7034,_0x5d321b['model']);}else{const _0x36f02f=Array['from'](_0x4e0c88['getSelectedBlocks']())['filter'](_0x107283=>oo(_0x107283));_0x3cd731=to(_0x36f02f,_0x5d321b['model']);}_0x5d321b['model']['change'](()=>{for(const _0x181653 of _0x3cd731)_0x9d84ac['markBlockFormat'](_0x181653,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xc5f788}]});});}),_0x9d84ac['descriptionFactory']['registerDescriptionCallback'](_0xdea76b=>{const {data:_0x24fddd}=_0xdea76b;if(_0x24fddd&&'blockQuote'==_0x24fddd['commandName']){const _0x367e18=c(_0x29bf56,'ELEMENT_BLOCK_QUOTE');return _0x24fddd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x29bf56,'*Set\x20format:*\x20%0',_0x367e18)}:{'type':'format','content':c(_0x29bf56,'*Remove\x20format:*\x20%0',_0x367e18)};}});}}function oo(_0x4e266c){return'blockQuote'==_0x4e266c['parent']['name'];}class L extends _0x577ae7{['afterInit'](){const _0x3d5cb5=this['editor'],_0x3dc3f9=_0x3d5cb5['locale'],_0x1a5919=_0x3d5cb5['plugins']['get']('TrackChangesEditing');_0x3d5cb5['plugins']['has']('BookmarkEditing')&&(_0x1a5919['enableCommand']('insertBookmark'),_0x1a5919['enableDefaultAttributesIntegration']('updateBookmark'),_0x1a5919['registerBlockAttribute']('bookmarkId'),_0x1a5919['descriptionFactory']['registerDescriptionCallback'](_0x5b1612=>{if('insertion'!=_0x5b1612['type']&&'deletion'!=_0x5b1612['type']&&'attribute'!=_0x5b1612['type'])return;const _0xdef4ed=_0x5b1612['getContainedElement']();if(null==_0xdef4ed)return;if(!_0xdef4ed['is']('element','bookmark'))return;const _0x33944f=_0xdef4ed['getAttribute']('bookmarkId');if('insertion'==_0x5b1612['type'])return{'type':'insertion','content':c(_0x3dc3f9,'*Insert:*\x20%0','\x22'+_0x33944f+'\x22\x20'+c(_0x3dc3f9,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5b1612['type'])return{'type':'deletion','content':c(_0x3dc3f9,'*Remove:*\x20%0','\x22'+_0x33944f+'\x22\x20'+c(_0x3dc3f9,'ELEMENT_BOOKMARK'))};const {data:_0x3d14d4}=_0x5b1612;if(!_0x3d14d4||'bookmarkId'!=_0x3d14d4['key'])return;return{'type':'format','content':c(_0x3dc3f9,'*Set\x20bookmark:*\x20%0','\x22'+_0x3d14d4['newValue']+'\x22')};}));}}class J extends _0x577ae7{['afterInit'](){const _0x25aa7d=this['editor'];_0x25aa7d['plugins']['has']('CaseChange')&&(_0x25aa7d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x25aa7d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x25aa7d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x577ae7{['afterInit'](){const _0x5d2240=this['editor'];_0x5d2240['commands']['get']('ckbox')&&_0x5d2240['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x577ae7{['afterInit'](){const _0x4da2ec=this['editor'];if(!_0x4da2ec['plugins']['has']('CodeBlock'))return;const _0x2f6da1=_0x4da2ec['plugins']['get']('TrackChangesEditing'),_0x250b04=_0x4da2ec['locale'],_0x60c1db=_0x4da2ec['config']['get']('codeBlock')['languages'],_0x1e58eb=_0x4da2ec['commands']['get']('codeBlock');_0x2f6da1['enableCommand']('indentCodeBlock'),_0x2f6da1['enableCommand']('outdentCodeBlock'),_0x2f6da1['enableCommand']('codeBlock',(_0x2f7ad6,_0x3b03e5={})=>{const _0xf8ded7=_0x4da2ec['model'],_0x1f5206=_0x4da2ec['model']['document']['selection'],_0x3de7d8=_0x3b03e5&&void 0x0!==_0x3b03e5['forceValue']?_0x3b03e5['forceValue']:!_0x1e58eb['value'];let _0x2f9457;_0x3b03e5['language']||(_0x3b03e5['language']=_0x60c1db[0x0]['language']),_0x2f9457=_0x3de7d8?Array['from'](_0x1f5206['getSelectedBlocks']())['filter'](_0x4a5742=>eo(_0x4a5742)||function(_0x26649a,_0xecaa2a){if(_0x26649a['is']('rootElement')||_0xecaa2a['isLimit'](_0x26649a))return!0x1;return _0xecaa2a['checkChild'](_0x26649a['parent'],'codeBlock');}(_0x4a5742,_0xf8ded7['schema'])):Array['from'](_0x1f5206['getSelectedBlocks']())['filter'](_0x1ace0b=>eo(_0x1ace0b));const _0x2b756a=to(_0x2f9457,_0xf8ded7);_0xf8ded7['change'](()=>{for(const _0x26cbfd of _0x2b756a)_0x2f6da1['markBlockFormat'](_0x26cbfd,{'commandName':'codeBlock','commandParams':[{..._0x3b03e5,'forceValue':_0x3de7d8}],'formatGroupId':'blockName'});});}),(_0x2f6da1['descriptionFactory']['registerElementLabel']('codeBlock',_0x273f4c=>c(_0x250b04,'ELEMENT_CODE_BLOCK',_0x273f4c)),_0x2f6da1['descriptionFactory']['registerDescriptionCallback'](_0x491d1b=>{if('formatBlock'!=_0x491d1b['type'])return;const _0x4abaf0=_0x250b04['t'],{data:_0x4d89c6}=_0x491d1b;if(!_0x4d89c6||'codeBlock'!=_0x4d89c6['commandName'])return;const _0x1866d8=_0x4d89c6['commandParams'][0x0]['language'],_0x36828d=_0x4abaf0(_0x60c1db['find'](_0x1596ae=>_0x1596ae['language']===_0x1866d8)['label'])['toLowerCase']();return _0x4d89c6['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x250b04,'*Set\x20format:*\x20%0',c(_0x250b04,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x36828d+')')}:{'type':'format','content':c(_0x250b04,'*Remove\x20format:*\x20%0',c(_0x250b04,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x34fdb0){return'codeBlock'==_0x34fdb0['name'];}class q extends _0x577ae7{['afterInit'](){const _0x2ead1f=this['editor'];if(!_0x2ead1f['plugins']['has']('CommentsEditing'))return;_0x2ead1f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x28dfb2,_0x514be6,_0x241703){const _0x40707d=[];for(const _0x12c998 of _0x514be6['getItems']())_0x12c998['hasAttribute'](_0x28dfb2)&&_0x40707d['push'](_0x241703['createRangeOn'](_0x12c998));return _0x40707d;}function Fe(_0x4e1919,_0x4617e5,{showActiveMarker:_0x1f848d=!0x0}={}){const _0x201816=_0x4e1919['plugins']['get']('TrackChangesEditing');return(_0x6f8413,_0x4062b4,_0x5d6ac3)=>{if(!_0x5d6ac3['consumable']['test'](_0x4062b4['markerRange'],_0x6f8413['name']))return;const _0x3fe3e4=_0x4062b4['markerRange']['getWalker'](),_0x1dfd15=_0x4062b4['markerRange']['start'],_0x379231=_0x4e1919['model']['schema'];let _0x540d58=null,_0x5a7eb1=null,_0x91267f=!0x1,_0x19e4df=!0x1;for(const _0x1730e0 of _0x3fe3e4){const _0x252b50=_0x1730e0['item'];_0x91267f=_0x91267f||_0x379231['isContent'](_0x252b50);const _0xbb234e=_0x5d6ac3['mapper']['toViewElement'](_0x252b50);if(_0xbb234e&&_0xbb234e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1730e0['type']&&(_0x379231['isBlock'](_0x252b50)&&!_0x379231['isLimit'](_0x252b50)&&(_0x252b50['nextSibling']||_0x1dfd15['isAtEnd']?_0x540d58&&_0x540d58['parent']==_0x252b50||(_0x540d58=_0x252b50,_0x229a01(_0x1730e0['previousPosition']),_0x19e4df=!0x0):_0x5a7eb1=_0x5a7eb1||_0x1730e0['previousPosition']));}function _0x229a01(_0x1c5dd6){const {id:_0x123573,authorId:_0x53e571}=_0x201816['_splitMarkerName'](_0x4062b4['markerName']),_0x3024bb=_0x5d6ac3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4617e5,'data-suggestion':_0x123573,'data-author-id':_0x53e571}),_0x45a22e=_0x5d6ac3['mapper']['toViewPosition'](_0x1c5dd6);_0x1f848d&&_0x201816['activeMarkers']['includes'](_0x4062b4['markerName'])&&_0x5d6ac3['writer']['addClass']('ck-suggestion-marker--active',_0x3024bb),_0x5d6ac3['writer']['insert'](_0x45a22e,_0x3024bb),_0x5d6ac3['mapper']['bindElementToMarker'](_0x3024bb,_0x4062b4['markerName']);}_0x91267f||_0x19e4df||!_0x5a7eb1||_0x229a01(_0x5a7eb1);};}class z extends _0x577ae7{static get['requires'](){return[_0x5c99b2];}['init'](){const _0x236b80=this['editor'],_0x3ebadc=_0x236b80['plugins']['get']('TrackChangesEditing');_0x3ebadc['enableCommand']('delete');const _0x5c0506=_0x236b80['commands']['get']('deleteForward');_0x3ebadc['enableCommand']('deleteForward',(_0x288142,_0x3da074={})=>{const _0x2e86b4=_0x236b80['model']['createSelection'](_0x236b80['model']['document']['selection']);_0x2e86b4['isCollapsed']&&_0x236b80['model']['modifySelection'](_0x2e86b4,{'direction':'forward','unit':_0x3da074['unit']});const _0x19eea5=_0x2e86b4['getFirstRange'](),_0x4f1c46=_0x3a5e87['fromRange'](_0x19eea5);let _0x3f4861;_0x288142(_0x3da074),_0x3f4861='$graveyard'==_0x4f1c46['root']['rootName']?_0x236b80['model']['createRange'](_0x19eea5['start']):_0x236b80['model']['createRange'](_0x4f1c46['start'],_0x4f1c46['end']),_0x4f1c46['detach'](),_0x236b80['model']['enqueueChange'](_0x5c0506['buffer']['batch'],_0x38b3b7=>{_0x5c0506['buffer']['lock'](),_0x38b3b7['setSelection'](_0x38b3b7['createRange'](_0x3f4861['end'])),_0x5c0506['buffer']['unlock']();});}),_0x236b80['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x236b80,'merge'),{'priority':'high'}),_0x236b80['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x53f76f,_0x30b426,_0x45888f)=>{_0x45888f['options']['showSuggestionHighlights']&&Fe(_0x236b80,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x53f76f,_0x30b426,_0x45888f);},{'priority':'high'}),_0x236b80['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x113a99,_0x59996d,_0x2fce2c)=>{const _0x50a5ef=_0x2fce2c['mapper']['markerNameToElements'](_0x59996d['markerName']);if(_0x50a5ef){for(const _0x397976 of _0x50a5ef)_0x397976['is']('uiElement')&&(_0x2fce2c['mapper']['unbindElementFromMarkerName'](_0x397976,_0x59996d['markerName']),_0x2fce2c['writer']['remove'](_0x397976));}},{'priority':'high'});}}class W extends _0x577ae7{['afterInit'](){const _0x5947a=this['editor'];if(!_0x5947a['plugins']['has']('ListEditing'))return;const _0x2c3729=_0x5947a['locale'],_0x2ac062=_0x5947a['plugins']['get']('TrackChangesEditing'),_0x504352=_0x5947a['plugins']['has']('TodoListEditing'),_0x58f564=!!_0x5947a['config']['get']('list.multiBlock');function _0x351338(_0x5bfcef){return{'type':'format','content':''+c(_0x2c3729,'*Set\x20format:*\x20%0',_0x5bfcef)};}function _0x18e5bd(_0x1768c0){return{'type':'format','content':''+c(_0x2c3729,'*Remove\x20format:*\x20%0',_0x1768c0)};}_0x2ac062['enableDefaultAttributesIntegration']('numberedList'),_0x2ac062['enableDefaultAttributesIntegration']('bulletedList'),_0x2ac062['enableDefaultAttributesIntegration']('customNumberedList'),_0x2ac062['enableDefaultAttributesIntegration']('customBulletedList'),_0x2ac062['enableDefaultAttributesIntegration']('indentList'),_0x2ac062['enableDefaultAttributesIntegration']('outdentList'),_0x2ac062['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2ac062['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2ac062['registerBlockAttribute']('listItemId'),_0x2ac062['registerBlockAttribute']('listType'),_0x2ac062['registerBlockAttribute']('listIndent'),_0x58f564&&(_0x2ac062['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2ac062['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x504352&&(_0x2ac062['enableDefaultAttributesIntegration']('todoList'),_0x2ac062['enableDefaultAttributesIntegration']('checkTodoList'),_0x2ac062['registerBlockAttribute']('todoListChecked'),_0x2ac062['descriptionFactory']['registerDescriptionCallback'](_0x4f4fc0=>{const {data:_0x533794}=_0x4f4fc0;if(_0x533794&&'todoListChecked'==_0x533794['key'])return{'type':'format','content':_0x533794['newValue']?c(_0x2c3729,'*Check\x20item*'):c(_0x2c3729,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x48a8d2=>{if(_0x48a8d2['batch']['isUndo'])return!0x1;let _0x4f1dd0=!0x1;const _0x138a3d=_0x2ac062['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x150369=>'todoListChecked'===_0x2ac062['_getAttributeKey'](_0x150369));for(const _0x41fc09 of _0x138a3d){'todo'!=_0x41fc09['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2ac062['_findSuggestions'](_0x41fc09['getFirstRange'](),'attribute')['find'](_0xfcc173=>'listType'===_0x2ac062['_getAttributeKey'](_0xfcc173['suggestion']))||(_0x48a8d2['removeMarker'](_0x41fc09['getFirstMarker']()),_0x4f1dd0=!0x0));}return _0x4f1dd0;})),_0x2ac062['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x2c3729,'FORMAT_INDENT'));const _0x26ef08={'type':'format','content':''};_0x2ac062['descriptionFactory']['registerDescriptionCallback'](_0xfcf2f9=>{const {data:_0x710e99}=_0xfcf2f9;if(!_0x710e99||'listType'!=_0x710e99['key'])return;let _0x540818=_0xfcf2f9['head'];for(;_0x540818;){if(_0x540818['data']&&(('listStyle'==_0x540818['data']['key']||'listMarkerStyle'==_0x540818['data']['key'])&&(_0x540818['data']['newValue']&&'default'!=_0x540818['data']['newValue']||'default'!=_0x540818['data']['oldValue']&&!_0x710e99['newValue'])||!_0x58f564&&_0x540818['data']['key']==u))return _0x26ef08;_0x540818=_0x540818['next'];}if(null==_0x710e99['newValue'])switch(_0x710e99['oldValue']){case'bulleted':return _0x18e5bd(c(_0x2c3729,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x18e5bd(c(_0x2c3729,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x18e5bd(c(_0x2c3729,'ELEMENT_TODO_LIST'));}switch(_0x710e99['newValue']){case'bulleted':return _0x351338(c(_0x2c3729,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x351338(c(_0x2c3729,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x351338(c(_0x2c3729,'ELEMENT_TODO_LIST'));}}),_0x2ac062['descriptionFactory']['registerDescriptionCallback'](_0x22219f=>{const {data:_0x39662f}=_0x22219f;if(_0x39662f&&'listIndent'==_0x39662f['key'])return null==_0x39662f['newValue']||null==_0x39662f['oldValue']&&0x0==_0x39662f['newValue']?_0x26ef08:void 0x0;}),_0x2ac062['descriptionFactory']['registerDescriptionCallback'](_0x2401c3=>{if('attribute'!=_0x2401c3['type'])return;const {data:_0x2ae760}=_0x2401c3;if(!_0x2ae760||'listItemId'!=_0x2ae760['key'])return;const _0x5dedec=Te(_0x2401c3);return'newValue'==_0x5dedec?{'type':'format','content':c(_0x2c3729,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5dedec?{'type':'format','content':c(_0x2c3729,'*Split:*\x20list\x20item')}:_0x26ef08;}),_0x5947a['model']['document']['registerPostFixer'](_0xbe8130=>this['listItemIdFixer'](_0xbe8130)),_0x5947a['model']['document']['registerPostFixer'](_0x405489=>this['noTrackChangesFixer'](_0x405489)),_0x5947a['model']['document']['on']('change:data',(_0x2f4b90,_0x88f0a1)=>{if(_0x88f0a1['isUndo']||!_0x88f0a1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5e3eaf){if(_0x5e3eaf['batch']['isUndo']||!_0x5e3eaf['batch']['isLocal'])return!0x1;let _0x379355=!0x1;const _0x5752c3=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x216cba=>_0x216cba['data']&&'listItemId'==_0x216cba['data']['key'])['filter'](_0xb19590=>_0xb19590['data']['newValue']&&_0xb19590['data']['oldValue']);for(const _0xc21473 of _0x5752c3)Te(_0xc21473)||(_0x5e3eaf['removeMarker'](_0xc21473['getFirstMarker']()),_0x379355=!0x0);return _0x379355;}['noTrackChangesFixer'](_0x13e51b){if(_0x13e51b['batch']['isUndo']||!_0x13e51b['batch']['isLocal'])return!0x1;const _0x1ddf11=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1ddf11['trackChangesCommand']['value'])return!0x1;let _0x39ff0a=!0x1;const _0xae3428=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4404a2=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xb25d2d=>'attribute'==_0xb25d2d['type'])['filter'](_0x600112=>_0xae3428['includes'](_0x600112['attributeKey']));if(0x0==_0x4404a2['length'])return _0x39ff0a;for(const _0x7e6714 of _0x4404a2){const _0x55028a=_0x1ddf11['_findSuggestions'](_0x7e6714['range'],'attribute')['filter'](_0x3cd44b=>!_0x3cd44b['meta']['isNextTo'])['map'](_0xcb4054=>_0xcb4054['suggestion'])['filter'](_0x191dcf=>{const _0x280947=_0x1ddf11['_getAttributeKey'](_0x191dcf);return _0xae3428['includes'](_0x280947);});if(_0x55028a['length']){for(const _0x1fe917 of _0x55028a)_0x13e51b['removeMarker'](_0x1fe917['getFirstMarker']());_0x39ff0a=!0x0;}}return _0x39ff0a;}['assureChains'](){const _0x24f75e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3eae72=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4f6d75;const _0x1643f5=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b4d9e=>{if(_0x1b4d9e['data']['oldRange']||!_0x1b4d9e['data']['newRange'])return null;if(!_0x1b4d9e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1ffda8}=_0x24f75e['_splitMarkerName'](_0x1b4d9e['name']);if(!_0x24f75e['hasSuggestion'](_0x1ffda8))return null;const _0x20417c=_0x24f75e['getSuggestion'](_0x1ffda8);return _0x3eae72['includes'](_0x20417c['data']['key']);})['map'](_0x10b8c9=>{const {id:_0x5313f1}=_0x24f75e['_splitMarkerName'](_0x10b8c9['name']),_0xf5f052=_0x24f75e['getSuggestion'](_0x5313f1);return _0x4f6d75=_0xf5f052['attributes']['groupId'],_0xf5f052['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1643f5['size'])return;const _0x2778df=_0x24f75e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40b249=>'attribute'==_0x40b249['type']&&_0x40b249['data']&&_0x3eae72['includes'](_0x40b249['data']['key'])&&_0x40b249['attributes']['groupId']!=_0x4f6d75)['map'](_0x37c393=>({'listItem':_0x37c393['getFirstRange']()['start']['nodeAfter'],'groupId':_0x37c393['attributes']['groupId']})),_0x32a0cb=new Set();for(const {groupId:_0xb246ee,listItem:_0x17dd5a}of _0x2778df)_0x1643f5['has'](_0x17dd5a)&&_0x32a0cb['add'](_0xb246ee);for(const _0x5b71cc of _0x24f75e['getSuggestions']())_0x32a0cb['has'](_0x5b71cc['attributes']['groupId'])&&_0x5b71cc['setAttribute']('groupId',_0x4f6d75);}['_supportLegacySuggestions'](){const _0x5f228a=this['editor'],_0x4c34d6=_0x5f228a['locale'],_0xcfadee=_0x5f228a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xcfadee['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4a10c1,_0x4fe5b7){const _0x226cbb=[];for(let _0x25b3af of _0x4a10c1)_0x25b3af['start']['nodeAfter']===_0x25b3af['end']['parent']&&(_0x25b3af=_0x5f228a['model']['createRange'](_0x5f228a['model']['createPositionAt'](_0x25b3af['start']['nodeAfter'],0x0))),_0x226cbb['push'](_0x25b3af);_0x5f228a['model']['change'](_0x57c0ab=>{const _0x122856=_0x5f228a['model']['document']['selection'],_0x38b97f=Array['from'](_0x122856['getRanges']())['map'](_0x597037=>_0x3a5e87['fromRange'](_0x597037));_0x57c0ab['setSelection'](_0x226cbb),_0x5f228a['commands']['get'](_0x4fe5b7['commandName'])['refresh'](),_0x4fe5b7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5f228a['execute'](_0x4fe5b7['commandName'],..._0x4fe5b7['commandParams']),_0x57c0ab['setSelection'](_0x38b97f);for(const _0xf54159 of _0x38b97f)_0xf54159['detach']();});}),_0xcfadee['descriptionFactory']['registerElementLabel'](function(_0x324c82){const _0x540893=!_0x5f228a['model']['schema']['isObject'](_0x324c82),_0x1c3057=_0x324c82['previousSibling'],_0x82670e=_0x324c82['nextSibling'],_0xa23e91=_0x324c82['getAttribute']('listItemId'),_0x43b81f=!_0x1c3057||_0x1c3057['getAttribute']('listItemId')!==_0xa23e91,_0x30dafc=!_0x82670e||_0x82670e['getAttribute']('listItemId')!==_0xa23e91;return _0x540893&&Boolean(_0xa23e91)&&_0x43b81f&&_0x30dafc;},_0x863b0f=>c(_0x4c34d6,'ELEMENT_LIST_ITEM',_0x863b0f));}['_registerLegacyDescription'](){const _0x542312=this['editor'],_0x30d854=_0x542312['locale'];function _0xa91834(_0x3f095f){const _0x1bf027=_0x542312['commands']['get']('bulletedList')['value'],_0x22fc83=_0x542312['commands']['get']('numberedList')['value'];return'numberedList'===_0x3f095f?_0x1bf027:_0x22fc83;}_0x542312['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4f93d2){if('formatBlock'!=_0x4f93d2['type'])return;const {data:_0x46e0aa}=_0x4f93d2;if(!_0x46e0aa)return;let _0x203d67,_0x1eb523,_0x5ee646,_0x5b1d95;switch(_0x46e0aa['commandName']){case'bulletedList':_0x5ee646=_0x46e0aa['commandParams'][0x0]['forceValue'],_0x5b1d95=_0xa91834(_0x46e0aa['commandName']),_0x203d67=_0x5ee646?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5b1d95&&_0x542312['config']['get']('list.multiBlock')||(_0x203d67='*Change\x20to:*\x20%0'),_0x1eb523={'type':'format','content':c(_0x30d854,_0x203d67,c(_0x30d854,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5ee646=_0x46e0aa['commandParams'][0x0]['forceValue'],_0x5b1d95=_0xa91834(_0x46e0aa['commandName']),_0x203d67=_0x5ee646?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5b1d95&&_0x542312['config']['get']('list.multiBlock')||(_0x203d67='*Change\x20to:*\x20%0'),_0x1eb523={'type':'format','content':c(_0x30d854,_0x203d67,c(_0x30d854,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x203d67='*Indent:*\x20%0',_0x1eb523={'type':'format','content':c(_0x30d854,_0x203d67,c(_0x30d854,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x203d67=function(_0x2a68db){const _0x4bfb92=_0x2a68db['getFirstRange']();let _0x4c630a=_0x4bfb92['start']['nodeAfter'];for(;_0x4c630a&&_0x4bfb92['containsItem'](_0x4c630a);){if(_0x4c630a['getAttribute']('listIndent')>0x0)return!0x1;_0x4c630a=_0x4c630a['nextSibling'];}return!0x0;}(_0x4f93d2)?c(_0x30d854,'*Format:*\x20remove\x20from\x20%0',c(_0x30d854,function(_0x4a2555){return'ELEMENT_'+_0x4a2555['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4f93d2))):c(_0x30d854,'*Outdent:*\x20%0',c(_0x30d854,'ELEMENT_LIST_ITEM')),_0x1eb523={'type':'format','content':_0x203d67};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x46e0aa['multipleBlocks']&&(_0x203d67='*Merge:*\x20%0',_0x1eb523={'type':'deletion','content':c(_0x30d854,_0x203d67,c(_0x30d854,'ELEMENT_LIST_ITEM'))});}return _0x1eb523;});}}function Te(_0x1fb6c4){let _0x183eb5=_0x1fb6c4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x183eb5;){const _0x4273d2=_0x183eb5['getAttribute']('listItemId');if(!_0x4273d2)return!0x1;if(_0x4273d2==_0x1fb6c4['data']['newValue'])return'newValue';if(_0x4273d2==_0x1fb6c4['data']['oldValue'])return'oldValue';_0x183eb5=_0x183eb5['previousSibling'];}return!0x1;}class Se extends _0x577ae7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xeffdae=this['editor']['config']['get']('list.properties'),_0x2a5422=this['editor']['plugins']['get']('TrackChangesEditing');_0xeffdae['styles']&&(_0x2a5422['enableDefaultAttributesIntegration']('listStyle'),_0x2a5422['registerBlockAttribute']('listStyle')),_0xeffdae['reversed']&&(_0x2a5422['enableDefaultAttributesIntegration']('listReversed'),_0x2a5422['registerBlockAttribute']('listReversed')),_0xeffdae['startIndex']&&(_0x2a5422['enableDefaultAttributesIntegration']('listStart'),_0x2a5422['registerBlockAttribute']('listStart'));const _0x1cce8a={'type':'format','content':''};_0x2a5422['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x29fb54=this['editor']['locale'];_0x2a5422['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x29fb54,'FORMAT_LIST_REVERSED')),_0x2a5422['descriptionFactory']['registerDescriptionCallback'](_0x3cd61f=>{const {data:_0x4a29e9}=_0x3cd61f;if(_0x4a29e9&&'listReversed'==_0x4a29e9['key'])return null==_0x4a29e9['newValue']||0x0==_0x4a29e9['newValue']&&null==_0x4a29e9['oldValue']?_0x1cce8a:void 0x0;}),_0x2a5422['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x29fb54,'FORMAT_LIST_START')),_0x2a5422['descriptionFactory']['registerDescriptionCallback'](_0x421aa9=>{const {data:_0x5c7c76}=_0x421aa9;if(_0x5c7c76&&'listStart'==_0x5c7c76['key'])return null==_0x5c7c76['newValue']||0x1==_0x5c7c76['newValue']&&null==_0x5c7c76['oldValue']?_0x1cce8a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3e0488=>{if(_0x3e0488['batch']['isUndo'])return!0x1;let _0x1fab22=!0x1;const _0x8c4348=_0x2a5422['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x368677=>{const _0x5dd125=_0x2a5422['_getAttributeKey'](_0x368677);return'listStart'==_0x5dd125||'listReversed'==_0x5dd125;});for(const _0x314cdb of _0x8c4348){const _0x2ba4a5=_0x314cdb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2ba4a5||'customNumbered'==_0x2ba4a5)continue;_0x2a5422['_findSuggestions'](_0x314cdb['getFirstRange'](),'attribute')['find'](_0x2ceb08=>'listType'==_0x2a5422['_getAttributeKey'](_0x2ceb08['suggestion']))||(_0x3e0488['removeMarker'](_0x314cdb['getFirstMarker']()),_0x1fab22=!0x0);}return _0x1fab22;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x33db75){const _0x692f76=this['editor']['locale'],{data:_0x241472}=_0x33db75,_0x3f4da4={'type':'format','content':''};if(!_0x241472||'listStyle'!=_0x241472['key'])return;if(!_0x241472['oldValue'])return'default'==_0x241472['newValue']?_0x3f4da4:{'type':'format','content':''+c(_0x692f76,'*Set\x20format:*\x20%0',c(_0x692f76,this['_getTranslationKeyForListStyle'](_0x241472['newValue'])))};if(!_0x241472['newValue']){if('default'==_0x241472['oldValue'])return _0x3f4da4;let _0x3a4712=_0x33db75['head'];for(;_0x3a4712;){if(_0x3a4712['data']&&'listType'==_0x3a4712['data']['key']&&_0x3a4712['data']['newValue'])return _0x3f4da4;_0x3a4712=_0x3a4712['next'];}return{'type':'format','content':''+c(_0x692f76,'*Remove\x20format:*\x20%0',c(_0x692f76,this['_getTranslationKeyForListStyle'](_0x241472['oldValue'])))};}if('default'!=_0x241472['newValue'])return{'type':'format','content':''+c(_0x692f76,'*Set\x20format:*\x20%0',c(_0x692f76,this['_getTranslationKeyForListStyle'](_0x241472['newValue'])))};let _0x38d20c=_0x33db75['head'];for(;_0x38d20c;){if(_0x38d20c['data']&&'listType'==_0x38d20c['data']['key']&&_0x38d20c['data']['newValue']&&_0x38d20c['data']['oldValue'])return _0x3f4da4;_0x38d20c=_0x38d20c['next'];}return{'type':'format','content':c(_0x692f76,'*Set\x20format:*\x20%0',c(_0x692f76,'ELEMENT_'+_0x33db75['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3d059d=this['editor'],_0x16e6b2=_0x3d059d['locale'];_0x3d059d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58250e=>{if('formatBlock'!=_0x58250e['type'])return;const {data:_0x2639f7}=_0x58250e;if(!_0x2639f7)return;let _0x796948,_0x3e3fa9;switch(_0x2639f7['commandName']){case'listStyle':_0x796948='*Change\x20to:*\x20%0',_0x3e3fa9={'type':'format','content':c(_0x16e6b2,_0x796948,c(_0x16e6b2,this['_getTranslationKeyForListStyle'](_0x2639f7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x796948=_0x2639f7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3e3fa9={'type':'format','content':c(_0x16e6b2,_0x796948)};break;case'listStart':_0x796948='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3e3fa9={'type':'format','content':c(_0x16e6b2,_0x796948,_0x2639f7['commandParams'][0x0]['startIndex'])};}return _0x3e3fa9;});}['_getTranslationKeyForListStyle'](_0x13ced7){return'ELEMENT_'+function(_0x4984ba){if(_e['includes'](_0x4984ba))return'bulleted';if(Re['includes'](_0x4984ba))return'numbered';return null;}(_0x13ced7)['toUpperCase']()+'_LIST_'+_0x13ced7['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x577ae7{['afterInit'](){const _0x4d2bbd=this['editor'];_0x4d2bbd['commands']['get']('emoji')&&_0x4d2bbd['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x577ae7{static get['requires'](){return[_0x530fc1];}['init'](){const _0x1d6f3d=this['editor'],_0x3063e2=_0x1d6f3d['plugins']['get']('TrackChangesEditing'),_0x257239=_0x1d6f3d['commands']['get']('enter');_0x3063e2['enableCommand']('enter',()=>{_0x1d6f3d['model']['change'](_0x57f702=>{const _0x1bc125=_0x1d6f3d['model']['document']['selection'],_0x382783=_0x1bc125['getFirstPosition'](),_0x3f42dc=_0x3a5e87['fromRange'](_0x1bc125['getFirstRange']());if(_0x257239['enterBlock'](_0x57f702)){const _0x1c924f=_0x1d6f3d['model']['createPositionAt'](_0x382783['parent']['nextSibling'],0x0),_0x47b831=_0x57f702['createRange'](_0x382783,_0x1c924f);_0x3063e2['markInsertion'](_0x47b831);}else _0x57f702['setSelection'](_0x57f702['createRange'](_0x3f42dc['end']));_0x3f42dc['detach'](),_0x257239['fire']('afterExecute',{'writer':_0x57f702});});}),_0x1d6f3d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x1d6f3d,'split'),{'priority':'high'}),_0x1d6f3d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x47f714,_0x3e889a,_0x2ac779)=>{const _0x5afb27=_0x2ac779['mapper']['markerNameToElements'](_0x3e889a['markerName']);if(_0x5afb27){for(const _0x5d6993 of _0x5afb27)_0x5d6993['hasClass']('ck-suggestion-marker-split')&&(_0x2ac779['mapper']['unbindElementFromMarkerName'](_0x5d6993,_0x3e889a['markerName']),_0x2ac779['writer']['remove'](_0x5d6993));}},{'priority':'high'}),_0x1d6f3d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x198909,_0x5970d2,_0x5dcef0)=>{_0x5dcef0['options']['showSuggestionHighlights']&&Fe(_0x1d6f3d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x198909,_0x5970d2,_0x5dcef0);},{'priority':'high'});}}class Z extends _0x577ae7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x401dae=this['editor']['plugins']['get']('TrackChangesEditing');_0x401dae['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x401dae['enableCommand']('findNext'),_0x401dae['enableCommand']('findPrevious'),_0x401dae['enableCommand']('replace'),_0x401dae['enableCommand']('replaceAll');}['handleFindCommand'](_0x2669ce,_0x324b8b,_0x52a9ca={}){const _0x56c4ea=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2669ce(_0x5b851c=>{let _0x4f8376=('string'==typeof _0x324b8b?_0x56c4ea['findByTextCallback'](_0x324b8b,_0x52a9ca):_0x324b8b)(_0x5b851c);Array['isArray'](_0x4f8376)&&(_0x4f8376={'results':_0x4f8376,'searchText':'string'==typeof _0x324b8b?_0x324b8b:''});const _0x55d7b1=_0x4f8376['results']['filter'](_0x57b572=>!0x1===this['_isInDeletionRange'](_0x57b572,_0x5b851c['item']));return{..._0x4f8376,'results':_0x55d7b1};},_0x52a9ca);}['_isInDeletionRange'](_0x252f2c,_0x4484fe){const _0x57d9f0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4484fe,_0x252f2c['start']),this['editor']['model']['createPositionAt'](_0x4484fe,_0x252f2c['end']));for(const _0xb4f928 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x57d9f0['getIntersection'](_0xb4f928['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x577ae7{['afterInit'](){const _0x43781c=this['editor']['locale'],_0x450b8d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1bfa0e,commandName:_0x6578a9}of ro)this['editor']['plugins']['has'](_0x1bfa0e)&&(_0x450b8d['enableDefaultAttributesIntegration'](_0x6578a9),_0x450b8d['registerInlineAttribute'](_0x6578a9));_0x450b8d['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x43781c,'FORMAT_FONT_SIZE')),_0x450b8d['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x43781c,'FORMAT_FONT_FAMILY')),_0x450b8d['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x43781c,'FORMAT_FONT_COLOR')),_0x450b8d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x43781c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36e8ec=this['editor'],_0x50fa8a=_0x36e8ec['locale'];_0x36e8ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b32f5=>{const _0x1bc1a3=_0x50fa8a['t'];if('formatInline'!=_0x4b32f5['type'])return;const {data:_0x468a6f}=_0x4b32f5;if(null!=_0x468a6f){if('fontSize'==_0x468a6f['commandName']){const _0x4e1cef=_0x468a6f['commandParams'][0x0]['value'];if(_0x4e1cef){const _0x2190e1=_0x1bc1a3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2fd64d=>_0x2fd64d['model']==_0x4e1cef)['title'])['toLowerCase']();return{'type':'format','content':c(_0x50fa8a,'*Set\x20font\x20size:*\x20%0',_0x2190e1)};}return{'type':'format','content':c(_0x50fa8a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x468a6f['commandName']){const _0x38228e=_0x468a6f['commandParams'][0x0]['value'];return _0x38228e?{'type':'format','content':c(_0x50fa8a,'*Set\x20font\x20family:*\x20%0',_0x38228e)}:{'type':'format','content':c(_0x50fa8a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x468a6f['commandName']){const _0x2b0c86=_0x468a6f['commandParams'][0x0]['value'];if(_0x2b0c86){const _0x139826=_0x1a6ad8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1e2a64=>_0x1e2a64['model']==_0x2b0c86);let _0x22cf50=_0x2b0c86,_0x55dc7a='';return _0x139826&&(_0x22cf50=_0x139826['label'],_0x55dc7a=_0x1bc1a3(_0x22cf50)['toLowerCase']()),{'type':'format','content':c(_0x50fa8a,'*Set\x20font\x20color:*\x20%0',_0x55dc7a)['trim'](),'color':{'value':_0x2b0c86,'title':_0x55dc7a||_0x22cf50}};}return{'type':'format','content':c(_0x50fa8a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x468a6f['commandName']){const _0x27967b=_0x468a6f['commandParams'][0x0]['value'];if(_0x27967b){const _0x379985=_0x1a6ad8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x311936=>_0x311936['model']==_0x27967b);let _0x210162=_0x27967b,_0x418be2='';return _0x379985&&(_0x210162=_0x379985['label'],_0x418be2=_0x1bc1a3(_0x210162)['toLowerCase']()),{'type':'format','content':c(_0x50fa8a,'*Set\x20font\x20background\x20color:*\x20%0',_0x418be2)['trim'](),'color':{'value':_0x27967b,'title':_0x418be2||_0x210162}};}return{'type':'format','content':c(_0x50fa8a,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x577ae7{['afterInit'](){const _0x37f908=this['editor'],_0x5066b5=_0x37f908['plugins']['get']('TrackChangesEditing'),_0x49d446=_0x37f908['commands']['get']('copyFormat'),_0x8a7fe=_0x37f908['commands']['get']('pasteFormat');_0x49d446&&_0x8a7fe&&(_0x5066b5['enableDefaultAttributesIntegration']('pasteFormat'),_0x5066b5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x103b17=this['editor'],_0x57238e=_0x103b17['locale'];_0x103b17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x466c04=>{if('formatBlock'!=_0x466c04['type']&&'formatInline'!=_0x466c04['type'])return;const {data:_0x345de1}=_0x466c04;if(_0x345de1&&'pasteFormat'===_0x345de1['commandName']){const _0x375a96=[],_0x4f3482=_0x345de1['commandParams'][0x0];for(const [_0x547a4e,_0x3d4b52]of Object['entries'](_0x4f3482))_0x375a96['push'](so(_0x103b17,_0x547a4e,_0x3d4b52));return _0x375a96['length']?{'type':'format','content':c(_0x57238e,'*Set\x20format\x20to:*\x20%0',_0x375a96['join'](',\x20'))}:{'type':'format','content':c(_0x57238e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x89d8d2,_0x315ef3,_0x478f1e){const _0x12a954=_0x89d8d2['locale']['t'],_0x52d316=_0x315ef3['split'](/(?=[A-Z])/)['join']('\x20'),_0x357729=_0x12a954(_0x52d316['charAt'](0x0)['toUpperCase']()+_0x52d316['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x478f1e)return _0x357729;if('fontColor'===_0x315ef3||'fontBackgroundColor'===_0x315ef3){const _0x2d35db=_0x1a6ad8(_0x89d8d2['config']['get']('fontColor.colors'))['find'](_0x15b948=>_0x15b948['model']==_0x478f1e);return _0x357729+'\x20('+(_0x2d35db?_0x12a954(_0x2d35db['label'])['toLowerCase']():_0x478f1e)+')';}if('fontSize'===_0x315ef3&&isNaN(parseFloat(_0x478f1e))){const _0x4d6cf1=_0x89d8d2['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x89d8d2['config']['get']('fontSize.options'))['find'](_0x12cb7a=>_0x12cb7a['model']==_0x478f1e);return _0x357729+'\x20('+(_0x4d6cf1?_0x12a954(_0x4d6cf1['title'])['toLowerCase']():_0x478f1e)+')';}return _0x357729+'\x20('+_0x478f1e+')';}class et extends _0x577ae7{['_headingOptions'];['afterInit'](){const _0x9ef821=this['editor'];if(!_0x9ef821['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x9ef821['config']['get']('heading.options');const _0x5e763a=_0x9ef821['locale'],_0xab3b92=_0x9ef821['plugins']['get']('TrackChangesEditing');_0xab3b92['enableDefaultAttributesIntegration']('heading');for(const _0x598285 of this['_headingOptions'])'paragraph'!=_0x598285['model']&&_0xab3b92['descriptionFactory']['registerElementLabel'](_0x598285['model'],_0x310ada=>{const _0x127566=this['_getHeadingLevel'](_0x598285['model']);return null!==_0x127566?_0x35e3f5(_0x310ada,_0x127566):_0x52ed4b(_0x310ada,_0x598285['title']);});function _0x35e3f5(_0x150c95,_0x57688d){return c(_0x5e763a,'ELEMENT_HEADING',[_0x150c95,_0x57688d]);}function _0x52ed4b(_0x11f9b8,_0x2e9099){return c(_0x5e763a,'ELEMENT_HEADING_CUSTOM',[_0x11f9b8,_0x2e9099]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46d97a=this['editor'],_0x8e4c65=_0x46d97a['locale'];function _0x14ca91(_0x37840c,_0x18551c){return c(_0x8e4c65,'ELEMENT_HEADING_CUSTOM',[_0x37840c,_0x18551c]);}_0x46d97a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c1f72=>{if('formatBlock'!=_0x3c1f72['type'])return;const {data:_0x25dfdc}=_0x3c1f72;if(_0x25dfdc&&'heading'==_0x25dfdc['commandName']){const _0xb003f4=_0x25dfdc['commandParams'][0x0]['value'],_0x15ef22=this['_getHeadingLevel'](_0xb003f4);if(null!==_0x15ef22)return{'type':'format','content':c(_0x8e4c65,'*Change\x20to:*\x20%0',(_0x1d2ac0=0x1,_0x25dfd4=_0x15ef22,c(_0x8e4c65,'ELEMENT_HEADING',[_0x1d2ac0,_0x25dfd4])))};const _0x2ff089=this['_headingOptions']['find'](_0x4d5a3d=>_0x4d5a3d['model']===_0xb003f4)['title'];return{'type':'format','content':c(_0x8e4c65,'*Change\x20to:*\x20%0',_0x14ca91(0x1,_0x2ff089))};}var _0x1d2ac0,_0x25dfd4;});}['_getHeadingLevel'](_0x177382){const _0x234db8=_0x177382['match'](/^heading(\d+)/);if(_0x234db8)return _0x234db8[0x1];const _0xa290a3=this['_headingOptions']?.['find'](_0x4d485c=>_0x4d485c['model']==_0x177382);if(_0xa290a3&&_0xa290a3['view']){const _0x43db38=_0xa290a3['view'],_0x51488b=(_0x43db38['name']??_0x43db38)['match'](/^h(\d+)/);if(_0x51488b)return _0x51488b[0x1];}return null;}}class nt extends _0x577ae7{['afterInit'](){const _0x3c0d28=this['editor'];if(!_0x3c0d28['plugins']['has']('HighlightEditing'))return;const _0x11cb11=_0x3c0d28['plugins']['get']('TrackChangesEditing'),_0x364664=_0x3c0d28['locale'];_0x11cb11['enableDefaultAttributesIntegration']('highlight'),_0x11cb11['registerInlineAttribute']('highlight'),_0x11cb11['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x364664,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27d98f=this['editor'],_0x58ce60=_0x27d98f['locale'];_0x27d98f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2221fb=>{if('formatInline'!=_0x2221fb['type'])return;const {data:_0x47e93f}=_0x2221fb;if(_0x47e93f&&'highlight'==_0x47e93f['commandName']){const _0x544071=_0x58ce60['t'],_0x71491c=_0x47e93f['commandParams'][0x0]['value'];if(_0x71491c){const _0x48c2c7=_0x27d98f['config']['get']('highlight.options')['find'](_0x33f243=>_0x33f243['model']==_0x71491c),_0x2ba268=_0x544071(_0x48c2c7['title'])['toLowerCase']();return{'type':'format','content':c(_0x58ce60,'*Set\x20highlight:*\x20%0',_0x2ba268),'color':{'value':_0x48c2c7['color'],'title':_0x48c2c7['title']}};}return{'type':'format','content':c(_0x58ce60,'*Remove\x20highlight*',c(_0x58ce60,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x577ae7{['afterInit'](){const _0x212b98=this['editor'];if(!_0x212b98['plugins']['has']('HorizontalLineEditing'))return;_0x212b98['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2632f2=_0x212b98['plugins']['get']('TrackChangesEditing'),_0x3671c6=_0x212b98['locale'];_0x2632f2['descriptionFactory']['registerElementLabel']('horizontalLine',_0x32dd01=>c(_0x3671c6,'ELEMENT_HORIZONTAL_LINE',_0x32dd01)),_0x212b98['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2dbb46,{writer:_0x4279ec,options:_0xaa9c06})=>{if(!_0xaa9c06['showSuggestionHighlights'])return null;const _0x2fbc0e=_0x4279ec['createContainerElement']('div'),_0x1b558a=_0x4279ec['createEmptyElement']('hr');return _0x4279ec['addClass']('ck-horizontal-line',_0x2fbc0e),_0x4279ec['insert'](_0x4279ec['createPositionAt'](_0x2fbc0e,0x0),_0x1b558a),_0x2fbc0e;},'converterPriority':'high'});}}class ot extends _0x577ae7{['afterInit'](){const _0x5c9469=this['editor'];if(!_0x5c9469['plugins']['has']('HtmlEmbed'))return;const _0x58b4fc=_0x5c9469['plugins']['get']('TrackChangesEditing'),_0x35f889=_0x5c9469['locale'];_0x58b4fc['descriptionFactory']['registerElementLabel']('rawHtml',_0x23d3c5=>c(_0x35f889,'ELEMENT_HTML_EMBED',_0x23d3c5)),_0x58b4fc['enableDefaultAttributesIntegration']('htmlEmbed'),_0x58b4fc['registerBlockAttribute']('value'),_0x58b4fc['descriptionFactory']['registerDescriptionCallback'](_0x15c083=>{if('attribute'!=_0x15c083['type'])return;const {data:_0x2e5f33}=_0x15c083;if(_0x2e5f33&&'value'==_0x2e5f33['key']&&_0x15c083['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x338b28=c(_0x35f889,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x35f889,'*Change\x20%0\x20content*',_0x338b28)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x223c5e=this['editor'],_0x1c75c9=_0x223c5e['locale'];_0x223c5e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cb24b=>{if('formatBlock'!=_0x4cb24b['type'])return;const {data:_0x4a5421}=_0x4cb24b;if(_0x4a5421&&'htmlEmbed'==_0x4a5421['commandName']){const _0x1a0a11=c(_0x1c75c9,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1c75c9,'*Change\x20%0\x20content*',_0x1a0a11)};}});}}class rt extends _0x577ae7{['afterInit'](){const _0x2d221b=this['editor'];if(!_0x2d221b['plugins']['has']('ImageEditing'))return;const _0x5b9a39=_0x2d221b['plugins']['get']('TrackChangesEditing'),_0x42bad2=_0x2d221b['plugins']['get']('ImageUtils'),_0x52f0e6=_0x2d221b['locale'];_0x5b9a39['enableCommand']('insertImage'),_0x5b9a39['descriptionFactory']['registerElementLabel']('imageBlock',_0x1c67a3=>c(_0x52f0e6,'ELEMENT_IMAGE',_0x1c67a3)),_0x5b9a39['descriptionFactory']['registerElementLabel']('imageInline',_0x4ffc51=>c(_0x52f0e6,'ELEMENT_INLINE_IMAGE',_0x4ffc51)),_0x5b9a39['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x52f0e6,'ELEMENT_CAPTION')),_0x2d221b['plugins']['has']('ImageUploadEditing')&&_0x5b9a39['enableCommand']('uploadImage'),_0x2d221b['plugins']['has']('ImageBlockEditing')&&_0x2d221b['plugins']['has']('ImageInlineEditing')&&(_0x5b9a39['enableCommand']('imageTypeInline',(_0x335191,_0x3eafb2)=>{const _0x3275fd=_0x42bad2['getClosestSelectedImageElement'](_0x2d221b['model']['document']['selection']);_0x2d221b['model']['change'](()=>{_0x5b9a39['markBlockFormat'](_0x3275fd,{'commandName':'imageTypeInline','commandParams':[_0x3eafb2]},[],'convertBlockImageToInline');});}),_0x5b9a39['enableCommand']('imageTypeBlock',(_0x4add26,_0x51894d)=>{_0x2d221b['model']['change'](_0x4cefd2=>{let _0x46dee4=_0x42bad2['getClosestSelectedImageElement'](_0x2d221b['model']['document']['selection']),_0x16c6d5=_0x4cefd2['createRangeOn'](_0x46dee4);const _0x41ec38=_0x303748['fromPosition'](_0x16c6d5['start'],'toPrevious'),_0x184870=_0x303748['fromPosition'](_0x16c6d5['end'],'toNext');_0x5b9a39['forceDefaultExecution'](()=>_0x4add26(_0x51894d)),_0x46dee4=_0x42bad2['getClosestSelectedImageElement'](_0x2d221b['model']['document']['selection']),_0x16c6d5=_0x4cefd2['createRangeOn'](_0x46dee4);const _0x139269=_0x4cefd2['createRange'](_0x41ec38,_0x184870);_0x41ec38['detach'](),_0x184870['detach'](),_0x5b9a39['markBlockFormat'](_0x46dee4,{'commandName':'imageTypeInline','commandParams':[_0x51894d]},[],'convertInlineImageToBlock'),_0x139269['start']['isBefore'](_0x16c6d5['start'])&&_0x5b9a39['markInsertion'](_0x4cefd2['createRange'](_0x139269['start'],_0x16c6d5['start']),'convertInlineImageToBlock'),_0x16c6d5['end']['isBefore'](_0x139269['end'])&&_0x5b9a39['markInsertion'](_0x4cefd2['createRange'](_0x16c6d5['end'],_0x139269['end']),'convertInlineImageToBlock');});}),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5b9a39['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3c02db])=>{const _0x57fd14=_0x5b9a39['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x10e745=_0x3c02db['start'],_0xb0fcd0=_0x3c02db['end'];const _0x173a19=_0x2d221b['model']['schema']['getNearestSelectionRange'](_0x10e745,'backward'),_0xb327ca=_0x2d221b['model']['schema']['getNearestSelectionRange'](_0xb0fcd0,'forward');_0x173a19['isCollapsed']&&(_0x10e745=_0x173a19['start']),_0xb327ca['isCollapsed']&&(_0xb0fcd0=_0xb327ca['end']),_0x57fd14([_0x2d221b['model']['createRange'](_0x10e745,_0xb0fcd0)]);}),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x454921),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x454921)),_0x2d221b['plugins']['has']('ImageCaptionEditing')&&(_0x5b9a39['enableCommand']('toggleImageCaption',(_0x577c28,_0x30486a)=>{const _0x771cf0=_0x2d221b['plugins']['get']('ImageCaptionUtils');let _0x128d2e=_0x42bad2['getClosestSelectedImageElement'](_0x2d221b['model']['document']['selection']),_0x194de3=_0x771cf0['getCaptionFromImageModelElement'](_0x128d2e);_0x2d221b['model']['change'](()=>{if(_0x194de3)return void _0x5b9a39['markDeletion'](_0x2d221b['model']['createRangeOn'](_0x194de3));const _0x509203=_0x42bad2['isBlockImage'](_0x128d2e);_0x577c28(_0x30486a),_0x128d2e=_0x42bad2['getClosestSelectedImageElement'](_0x2d221b['model']['document']['selection']),_0x194de3=_0x771cf0['getCaptionFromImageModelElement'](_0x128d2e),_0x5b9a39['markInsertion'](_0x2d221b['model']['createRangeOn'](_0x194de3),_0x509203?null:'imageCaption');});}),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x454921));const _0x361512=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x56ceb6(_0x3caf7c,_0x11a1b5){const _0x5a558b=_0x361512['findIndex'](({type:_0x1bf311,subType:_0x511f77})=>_0x3caf7c['type']==_0x1bf311&&_0x3caf7c['subType']==_0x511f77),_0x4fdcfc=_0x361512['findIndex'](({type:_0xada7b7,subType:_0x40f0fb})=>_0x11a1b5['type']==_0xada7b7&&_0x11a1b5['subType']==_0x40f0fb);if(_0x5a558b<0x0||_0x4fdcfc<0x0)return!0x1;const _0x12d9e4=_0x3caf7c['getFirstRange'](),_0x24154c=_0x11a1b5['getFirstRange']();if((0x0==_0x5a558b||0x1==_0x5a558b)&&0x2==_0x4fdcfc&&_0x12d9e4['isIntersecting'](_0x24154c))return!0x0;if(0x2==_0x5a558b&&0x3==_0x4fdcfc){const _0x23cb3b=_0x5b9a39['_findSuggestions'](_0x12d9e4,'insertion')['filter'](({suggestion:_0x3facbb,meta:_0x24d513})=>_0x24d513['isOwn']&&'convertInlineImageToBlock'==_0x3facbb['subType']);if(_0x23cb3b['length']>0x1&&_0x24154c['end']['isEqual'](_0x12d9e4['start']))return!0x0;if(0x1==_0x23cb3b['length']&&(_0x12d9e4['start']['isEqual'](_0x24154c['end'])||_0x12d9e4['end']['isEqual'](_0x24154c['start'])))return!0x0;}if(0x3==_0x5a558b&&0x3==_0x4fdcfc&&_0x12d9e4['start']['isBefore'](_0x24154c['start'])){const _0x2b464d=_0x12d9e4['end']['nodeAfter'],_0x1044ab=_0x24154c['start']['nodeBefore'];return _0x42bad2['isBlockImage'](_0x2b464d)&&_0x2b464d===_0x1044ab;}return!0x1;}function _0x454921(_0x2df606,_0x5026cd){return _0x56ceb6(_0x2df606,_0x5026cd)?[_0x2df606,_0x5026cd]:_0x56ceb6(_0x5026cd,_0x2df606)?[_0x5026cd,_0x2df606]:null;}_0x2d221b['plugins']['has']('ImageResize')&&(_0x5b9a39['enableDefaultAttributesIntegration']('resizeImage'),_0x5b9a39['registerBlockAttribute']('resizedWidth'),_0x5b9a39['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x52f0e6,'FORMAT_IMAGE_SIZE'))),_0x2d221b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5b9a39['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5b9a39['registerBlockAttribute']('alt')),_0x2d221b['plugins']['has']('PictureEditing')&&(_0x5b9a39['registerBlockAttribute']('sources'),_0x5b9a39['descriptionFactory']['registerDescriptionCallback'](_0x2acd8a=>{if('attribute'!=_0x2acd8a['type'])return;const {data:_0x4fa5e4}=_0x2acd8a;return _0x4fa5e4&&'sources'==_0x4fa5e4['key']?{'type':'format','content':''}:void 0x0;})),_0x2d221b['plugins']['has']('ImageSizeAttributes')&&(_0x5b9a39['registerBlockAttribute']('width'),_0x5b9a39['registerBlockAttribute']('height'),_0x5b9a39['descriptionFactory']['registerDescriptionCallback'](_0x5479d0=>{if('attribute'!=_0x5479d0['type'])return;const {data:_0x453831}=_0x5479d0;return!_0x453831||'width'!=_0x453831['key']&&'height'!=_0x453831['key']?void 0x0:{'type':'format','content':''};})),_0x5b9a39['descriptionFactory']['registerDescriptionCallback'](_0x25bfe4=>{if(!!_0x361512['find'](({type:_0x3a497b,subType:_0x4db878})=>_0x25bfe4['type']==_0x3a497b&&_0x25bfe4['subType']==_0x4db878))return _0x25bfe4['previous']?{}:void 0x0;}),_0x5b9a39['descriptionFactory']['registerDescriptionCallback'](_0x2a5534=>{if('insertion'==_0x2a5534['type']||'deletion'==_0x2a5534['type']){const _0x121ebb=_0x2a5534['getContainedElement']();if(_0x121ebb&&_0x121ebb['is']('element','caption'))return{'type':'insertion'==_0x2a5534['type']?'addObject':'removeObject','element':_0x121ebb,'quantity':0x1};}}),_0x5b9a39['descriptionFactory']['registerDescriptionCallback'](_0xd2386e=>'formatBlock'==_0xd2386e['type']&&'convertInlineImageToBlock'==_0xd2386e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xd2386e['type']&&'convertBlockImageToInline'==_0xd2386e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5b9a39['descriptionFactory']['registerDescriptionCallback'](_0x398bd2=>{if('attribute'!=_0x398bd2['type'])return;const {data:_0x3299b0}=_0x398bd2;if(!_0x3299b0||'alt'!=_0x3299b0['key'])return;const _0x534579=_0x3299b0['newValue'];return _0x534579?{'type':'format','content':c(_0x52f0e6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x534579+'\x22')}:{'type':'format','content':c(_0x52f0e6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3be477=this['editor'],_0x34ea13=_0x3be477['locale'];_0x3be477['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30693f=>{if('formatBlock'!=_0x30693f['type']&&'formatInline'!=_0x30693f['type'])return;const {data:_0x274ddd}=_0x30693f;if(_0x274ddd){if('imageTextAlternative'==_0x274ddd['commandName']){const _0x35efd0=_0x274ddd['commandParams'][0x0]['newValue'];return _0x35efd0?{'type':'format','content':c(_0x34ea13,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x35efd0+'\x22')}:{'type':'format','content':c(_0x34ea13,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x274ddd['commandName']){const _0x4e6b65=_0x274ddd['commandParams'][0x0]['width'];return _0x4e6b65?{'type':'format','content':c(_0x34ea13,'*Set\x20image\x20width:*\x20%0',_0x4e6b65)}:{'type':'format','content':c(_0x34ea13,'*Reset\x20image\x20width*')};}}});}}class at extends _0x577ae7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x466565=this['editor']['locale'],_0x59025a=this['editor']['plugins']['get']('TrackChangesEditing');_0x59025a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x59025a['registerBlockAttribute']('src'),_0x59025a['descriptionFactory']['registerDescriptionCallback'](_0x12d17f=>{if('attribute'!=_0x12d17f['type'])return;const {data:_0x347867}=_0x12d17f;return _0x347867&&'src'==_0x347867['key']?_0x347867['newValue']&&_0x347867['oldValue']?{'type':'format','content':c(_0x466565,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4cdb5f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4cdb5f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4cdb5f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4cdb5f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4cdb5f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x597b22=this['editor'],_0x1b0081=_0x597b22['locale'];_0x597b22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7bce68=>{if('formatBlock'!=_0x7bce68['type']&&'formatInline'!=_0x7bce68['type'])return;const {data:_0x14b9b}=_0x7bce68;if(!_0x14b9b||'replaceImageSource'!=_0x14b9b['commandName'])return;return{'type':'format','content':c(_0x1b0081,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x577ae7{['afterInit'](){const _0x563862=this['editor'];if(!_0x563862['plugins']['has']('ImageStyleEditing'))return;const _0x429077=_0x563862['plugins']['get']('TrackChangesEditing'),_0x3b3fb3=_0x563862['plugins']['get']('ImageUtils'),_0x368208={};_0x429077['enableCommand']('imageStyle',(_0x1c7b4e,_0x506783)=>{const _0x48cbc9=_0x563862['plugins']['get']('Users')['me'],_0x2be0dc=_0x563862['commands']['get']('imageStyle');let _0x489ce6=_0x3b3fb3['getClosestSelectedImageElement'](_0x563862['model']['document']['selection']),_0x538ed2=_0x563862['model']['createRangeOn'](_0x489ce6),_0x5643c2=_0x2be0dc['value'];if(_0x5643c2==_0x506783['value'])return;const _0x405699={'commandName':'imageStyle','commandParams':[_0x506783],'formatGroupId':_0x147536()};_0x563862['model']['change'](()=>{if(_0x429077['getSuggestions']()['filter'](_0xea17e7=>_0xea17e7['isInContent']&&_0x48cbc9==_0xea17e7['author']&&('formatBlock'==_0xea17e7['type']||'formatInline'==_0xea17e7['type'])&&('imageStylePreApply'==_0xea17e7['subType']||'imageStylePostApply'==_0xea17e7['subType'])&&_0xea17e7['getFirstRange']()['isEqual'](_0x538ed2))['forEach'](_0x4a62e2=>_0x429077['discardSuggestion'](_0x4a62e2['head'])),_0x489ce6=_0x3b3fb3['getClosestSelectedImageElement'](_0x563862['model']['document']['selection']),_0x538ed2=_0x563862['model']['createRangeOn'](_0x489ce6),_0x2be0dc['refresh'](),_0x563862['commands']['get']('imageTypeInline')['refresh'](),_0x563862['commands']['get']('imageTypeBlock')['refresh'](),_0x5643c2=_0x2be0dc['value'],_0x5643c2!=_0x506783['value'])return _0x3b3fb3['isInlineImage'](_0x489ce6)&&_0x2be0dc['shouldConvertImageType'](_0x506783['value'],_0x489ce6)?(_0x1c7b4e({..._0x506783,'setImageSizes':!0x1}),_0x489ce6=_0x3b3fb3['getClosestSelectedImageElement'](_0x563862['model']['document']['selection']),void _0x429077['markBlockFormat'](_0x489ce6,{..._0x405699,'commandReversedParams':[{'value':_0x5643c2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3b3fb3['isBlockImage'](_0x489ce6)?_0x429077['markBlockFormat'](_0x489ce6,_0x405699,[],'imageStylePostApply'):_0x429077['markInlineFormat'](_0x538ed2,_0x405699,'imageStylePostApply'));});});for(const _0x3d356e of _0x563862['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x368208[_0x3d356e['name']]=_0x3d356e['title']['toLowerCase']();_0x429077['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x429077['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x429077['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x429077['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2d535d])=>{_0x3b3fb3['setImageNaturalSizeAttributes'](_0x2d535d['getContainedElement']());}),_0x429077['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2bc90b,_0x184c2e)=>{_0x429077['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2bc90b,{'commandName':_0x184c2e['commandName'],'commandParams':_0x184c2e['commandReversedParams']});}),_0x429077['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2b6271,_0x3ba11f){if(_0x5e9118(_0x2b6271,_0x3ba11f))return[_0x2b6271,_0x3ba11f];if(_0x5e9118(_0x3ba11f,_0x2b6271))return[_0x3ba11f,_0x2b6271];return null;});const _0x231312=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5e9118(_0x471442,_0x5c2af6){const _0xbc5248=_0x231312['findIndex'](({type:_0x533d08,subType:_0x61cff6})=>_0x471442['type']==_0x533d08&&_0x471442['subType']==_0x61cff6),_0x2a1b37=_0x231312['findIndex'](({type:_0xc9d126,subType:_0x1f315a})=>_0x5c2af6['type']==_0xc9d126&&_0x5c2af6['subType']==_0x1f315a);if(_0xbc5248<0x0||_0x2a1b37<0x0)return!0x1;const _0x550446=_0x471442['getFirstRange'](),_0x2e6094=_0x5c2af6['getFirstRange']();if((0x0==_0xbc5248||0x1==_0xbc5248)&&0x2==_0x2a1b37&&_0x550446['isIntersecting'](_0x2e6094))return!0x0;if(0x2==_0xbc5248&&0x3==_0x2a1b37){const _0x4787ba=_0x429077['_findSuggestions'](_0x550446,'insertion')['filter'](({suggestion:_0x149904,meta:_0xbf7d58})=>_0xbf7d58['isOwn']&&'convertInlineImageToBlock'==_0x149904['subType']);if(_0x4787ba['length']>0x1&&_0x2e6094['end']['isEqual'](_0x550446['start']))return!0x0;if(0x1==_0x4787ba['length']&&(_0x550446['start']['isEqual'](_0x2e6094['end'])||_0x550446['end']['isEqual'](_0x2e6094['start'])))return!0x0;}if(0x3==_0xbc5248&&0x3==_0x2a1b37&&_0x550446['start']['isBefore'](_0x2e6094['start'])){const _0x5ae04c=_0x550446['end']['nodeAfter'],_0x245629=_0x2e6094['start']['nodeBefore'];return _0x3b3fb3['isBlockImage'](_0x5ae04c)&&_0x5ae04c===_0x245629;}return!0x1;}_0x563862['model']['document']['registerPostFixer'](()=>{let _0x2061ec=!0x1;const _0x465fe8=Array['from'](_0x563862['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x102173,data:_0x4440a2}of _0x465fe8){const {group:_0x481da7,type:_0x33104a,subType:_0x4f78d8,id:_0x33ce9e}=_0x429077['_splitMarkerName'](_0x102173);if('suggestion'==_0x481da7&&_0x429077['hasSuggestion'](_0x33ce9e)){if('formatBlock'==_0x33104a&&('imageStylePreApply'==_0x4f78d8||'imageStylePostApply'==_0x4f78d8)){const _0x34cbe6=_0x429077['getSuggestion'](_0x33ce9e);if(_0x4440a2['newRange']){const _0x5a6a87=_0x34cbe6['getFirstRange']()['getContainedElement']();if(_0x3b3fb3['isBlockImage'](_0x5a6a87))continue;_0x429077['discardSuggestion'](_0x34cbe6),_0x2061ec=!0x0;}}if('insertion'==_0x33104a&&'imageCaption'==_0x4f78d8&&!_0x4440a2['newRange']){const _0x283534=_0x429077['getSuggestion'](_0x33ce9e);_0x283534['next']&&_0x283534['next']['isInContent']&&(_0x429077['discardSuggestion'](_0x283534['next']),_0x2061ec=!0x0);}}}return _0x2061ec;}),this['_registerLegacyDescription'](_0x368208);}['_registerLegacyDescription'](_0x5f4fa5){const _0x17732e=this['editor'],_0x5b00ca=_0x17732e['locale'];_0x17732e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c9507=>{if('formatBlock'!=_0x3c9507['type']&&'formatInline'!=_0x3c9507['type'])return;const {data:_0x3c3a04}=_0x3c9507;if(!_0x3c3a04||'imageStyle'!=_0x3c3a04['commandName'])return;const _0x161279=_0x3c3a04['commandParams'][0x0]['value'];return _0x508371('side'===_0x161279?c(_0x5b00ca,'FORMAT_SIDE_IMAGE'):_0x5f4fa5[_0x161279]||_0x161279);function _0x508371(_0x2e7407){return{'type':'format','content':c(_0x5b00ca,'*Format:*\x20%0',_0x2e7407)};}});}}class ut extends _0x577ae7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2f5201){super(_0x2f5201),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x30c698=this['editor'],_0x5d69e2=_0x30c698['commands']['get']('importWord'),_0x1e71d5=_0x30c698['commands']['get']('trackChanges');_0x5d69e2&&(_0x5d69e2['on']('execute',(_0xfd6a9,[,_0x527f6f])=>{this['_trackChangesValueDuringImport']=_0x1e71d5['value'],_0x527f6f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5d69e2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5d69e2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1e71d5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x30c698['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x339552,_0x355ad1){const {suggestions:_0x58e7de}=_0x355ad1,_0x566a0c=this['editor']['commands']['get']('trackChanges'),_0x54f7eb=_0x566a0c['value'];this['_trackChangesValueDuringImport']!==_0x54f7eb&&(_0x566a0c['execute'](),this['_trackChangesExecuted']=!0x0),_0x58e7de&&_0x58e7de['forEach'](({id:_0x4855c0,type:_0x12054a,author:_0x30ad7b,created_at:_0x64b69a})=>{const _0x360680={'id':_0x4855c0,'type':_0x12054a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x30ad7b,'createdAt':_0x64b69a?new Date(_0x64b69a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x360680);});}}class ft extends _0x577ae7{['afterInit'](){const _0x3b6496=this['editor'],_0x355876=_0x3b6496['plugins']['get']('TrackChangesEditing');if(_0x3b6496['plugins']['has']('IndentEditing')&&(_0x355876['enableCommand']('indent'),_0x355876['enableCommand']('outdent')),_0x3b6496['plugins']['has']('IndentBlock')){for(const _0x8db10c of['indentBlock','outdentBlock'])_0x355876['enableDefaultAttributesIntegration'](_0x8db10c);}const _0x5b6b09=_0x3b6496['locale'];_0x355876['registerBlockAttribute']('blockIndent'),_0x355876['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5b6b09,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x300db0=this['editor'],_0x4f46dc=_0x300db0['locale'],_0x134af8=_0x300db0['plugins']['get']('TrackChangesEditing');_0x134af8['descriptionFactory']['registerDescriptionCallback'](_0x3232d5=>{if('formatBlock'!=_0x3232d5['type'])return;const {data:_0x9b9d6c}=_0x3232d5;if(!_0x9b9d6c)return;if('indentBlock'!=_0x9b9d6c['commandName']&&'outdentBlock'!=_0x9b9d6c['commandName'])return;const _0x5abc1b=_0x3232d5['getItems']()[0x0],_0x6867b3=_0x134af8['descriptionFactory']['getItemLabel'](_0x5abc1b);return'indentBlock'==_0x9b9d6c['commandName']?{'type':'format','content':c(_0x4f46dc,'*Indent:*\x20%0',_0x6867b3)}:'outdentBlock'==_0x9b9d6c['commandName']?{'type':'format','content':c(_0x4f46dc,'*Outdent:*\x20%0',_0x6867b3)}:void 0x0;});}}class ht extends _0x577ae7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x577ae7{['afterInit'](){const _0x2869e2=this['editor'];if(!_0x2869e2['plugins']['has']('LinkEditing'))return;const _0x144ae2=_0x2869e2['plugins']['get']('TrackChangesEditing'),_0x1002d7=_0x2869e2['commands']['get']('link');_0x144ae2['enableDefaultAttributesIntegration']('link'),_0x144ae2['enableDefaultAttributesIntegration']('unlink'),_0x144ae2['registerInlineAttribute']('linkHref');for(const _0x43a8c7 of _0x1002d7['manualDecorators'])_0x144ae2['registerInlineAttribute'](_0x43a8c7['id']),_0x144ae2['descriptionFactory']['registerAttributeLabel'](_0x43a8c7['id'],'link\x20('+_0x43a8c7['label']['toLowerCase']()+')');_0x144ae2['descriptionFactory']['registerDescriptionCallback'](_0x3251da=>{if('attribute'!=_0x3251da['type'])return;const {data:_0x52a83b}=_0x3251da;if(!_0x52a83b||'linkHref'!=_0x52a83b['key'])return;const _0x4ac586=_0x52a83b['newValue'],_0x2043a9=_0x2869e2['locale'];return{'type':'format','content':null==_0x4ac586?c(_0x2043a9,'*Remove\x20link*'):c(_0x2043a9,'*Set\x20link:*\x20%0','\x22'+_0x4ac586+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2979b1=this['editor'],_0x413ff7=_0x2979b1['locale'];_0x2979b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x789deb=>{if('formatInline'!=_0x789deb['type'])return;const {data:_0xfdaa15}=_0x789deb;if(_0xfdaa15){if('link'==_0xfdaa15['commandName']){const _0x1e8809=_0xfdaa15['commandParams'][0x0];return{'type':'format','content':c(_0x413ff7,'*Set\x20link:*\x20%0','\x22'+_0x1e8809+'\x22')};}return'unlink'==_0xfdaa15['commandName']?{'type':'format','content':c(_0x413ff7,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x577ae7{['afterInit'](){const _0x1c515d=this['editor'],_0x47f2d6=_0x1c515d['locale'];if(!_0x1c515d['plugins']['has']('LegacyListEditing'))return;const _0x403b71=_0x1c515d['plugins']['get']('TrackChangesEditing'),_0x10bdd3=_0x1c515d['plugins']['has']('LegacyTodoListEditing');function _0x15f939(_0x4fd3f3){return()=>{const _0x4c32d4=_0x1c515d['model']['document']['selection'],_0x5998d6=_0x1c515d['commands']['get'](_0x4fd3f3);if(_0x5998d6['value'])return void _0x1c515d['execute']('paragraph',{});const _0x27f2ee=_0x4fd3f3['slice'](0x0,-0x4),_0x3f9b8a=function(_0x4e6a20,_0x4c6764,_0x4e9d1d){let _0x376ab0=Array['from'](_0x4e6a20)['filter'](_0x541a5d=>function(_0xac1659,_0x45c31f){return _0x45c31f['checkChild'](_0xac1659['parent'],'listItem')&&!_0x45c31f['isObject'](_0xac1659);}(_0x541a5d,_0x4e9d1d));_0x376ab0=_0x376ab0['filter'](_0x59d80b=>!_0x59d80b['is']('element','listItem')||_0x59d80b['getAttribute']('listType')!=_0x4c6764);const _0x4510b2=new Set();for(const _0x1176e7 of _0x376ab0)_0x1176e7['is']('element','listItem')?_0x4510b2['add'](Le(_0x1176e7)):_0x4510b2['add'](_0x1176e7);return Array['from'](_0x4510b2);}(_0x4c32d4['getSelectedBlocks'](),_0x27f2ee,_0x1c515d['model']['schema']);_0x1c515d['model']['change'](()=>{for(const _0x5233e4 of _0x3f9b8a)_0x403b71['markBlockFormat'](_0x5233e4,{'commandName':_0x4fd3f3,'commandParams':[{'forceValue':!_0x5998d6['value']}],'formatGroupId':'blockName'},Ee(_0x5233e4));});};}function _0x29bd2(_0x247bcd){return()=>{const _0x10421a=function(_0x1494f9){let _0x1dc843=Array['from'](_0x1494f9);const _0x502bfa=_0x1dc843['findIndex'](_0x5b2b31=>'listItem'!=_0x5b2b31['name']);return _0x502bfa>-0x1&&(_0x1dc843=_0x1dc843['slice'](0x0,_0x502bfa)),_0x1dc843;}(_0x1c515d['model']['document']['selection']['getSelectedBlocks']()),_0x4a493f=_0x1c515d['model']['createRange'](_0x1c515d['model']['createPositionAt'](_0x10421a[0x0],'before'),_0x1c515d['model']['createPositionAt'](_0x10421a[_0x10421a['length']-0x1],'end'));_0x1c515d['model']['change'](()=>{_0x403b71['markBlockFormat'](_0x4a493f,{'commandName':_0x247bcd,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5b1b3e){const _0x33983e=new Set();for(const _0x307289 of _0x5b1b3e){let _0x26d852=_0x307289['nextSibling'];for(;_0x26d852&&_0x26d852['getAttribute']('listIndent')>_0x307289['getAttribute']('listIndent');)_0x33983e['add'](_0x26d852),_0x26d852=_0x26d852['nextSibling'];}return Array['from'](_0x33983e);}(_0x10421a));});};}_0x403b71['enableCommand']('numberedList',_0x15f939('numberedList')),_0x403b71['enableCommand']('bulletedList',_0x15f939('bulletedList')),_0x10bdd3&&_0x403b71['enableCommand']('todoList',_0x15f939('todoList')),_0x403b71['enableCommand']('indentList',_0x29bd2('indentList')),_0x403b71['enableCommand']('outdentList',_0x29bd2('outdentList')),_0x10bdd3&&_0x403b71['enableCommand']('checkTodoList',()=>{const _0x57ebe2=_0x1c515d['commands']['get']('checkTodoList'),_0x2b5061=Array['from'](_0x57ebe2['_selectedElements']);_0x2b5061['filter'](_0xecf996=>_0xecf996['getAttribute']('todoListChecked')!=_0x57ebe2['value']),_0x1c515d['model']['change'](()=>{for(const _0x351242 of _0x2b5061)_0x403b71['markBlockFormat'](_0x351242,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x57ebe2['value']}]});});}),_0x403b71['descriptionFactory']['registerElementLabel']('listItem',_0x3f2dd2=>c(_0x47f2d6,'ELEMENT_LIST_ITEM',_0x3f2dd2)),_0x403b71['descriptionFactory']['registerDescriptionCallback'](_0x608893=>{if('formatBlock'!=_0x608893['type']&&'formatInline'!=_0x608893['type'])return;const {data:_0x5bee6b}=_0x608893;if(_0x5bee6b){if('numberedList'==_0x5bee6b['commandName']||'bulletedList'==_0x5bee6b['commandName']||'todoList'==_0x5bee6b['commandName'])switch(_0x5bee6b['commandName']['replace']('List','')){case'bulleted':return _0x47f516(c(_0x47f2d6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x47f516(c(_0x47f2d6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x47f516(c(_0x47f2d6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5bee6b['commandName'])return{'type':'format','content':c(_0x47f2d6,'*Indent:*\x20%0',c(_0x47f2d6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5bee6b['commandName'])return{'type':'format','content':c(_0x47f2d6,'*Outdent:*\x20%0',c(_0x47f2d6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5bee6b['commandName'])return _0x5bee6b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x47f2d6,'*Check\x20item*')}:{'type':'format','content':c(_0x47f2d6,'*Uncheck\x20item*')};}function _0x47f516(_0x61bc59){return{'type':'format','content':c(_0x47f2d6,'*Change\x20to:*\x20%0',_0x61bc59)};}});}}function Le(_0x2750a3){const _0xdb0ab4=_0x2750a3['getAttribute']('listIndent');if(0x0==_0xdb0ab4)return _0x2750a3;let _0x137133=_0x2750a3;for(;_0x2750a3['previousSibling']&&_0x2750a3['previousSibling']['is']('element','listItem');){const _0x47d5e6=_0x2750a3['previousSibling']['getAttribute']('listIndent');if(_0x47d5e6==_0xdb0ab4)_0x137133=_0x2750a3['previousSibling'];else{if(_0x47d5e6<_0xdb0ab4)break;}_0x2750a3=_0x2750a3['previousSibling'];}return _0x137133;}function Ee(_0x43c7bb){const _0x5de819=[];if(_0x43c7bb['is']('element','listItem')&&_0x43c7bb['getAttribute']('listIndent')>0x0){let _0x1fa4a1=_0x43c7bb['nextSibling'];for(;_0x1fa4a1&&'listItem'==_0x1fa4a1['name']&&_0x1fa4a1['getAttribute']('listIndent')==_0x43c7bb['getAttribute']('listIndent');)_0x5de819['push'](_0x1fa4a1),_0x1fa4a1=_0x1fa4a1['nextSibling'];}return _0x5de819;}class Q extends _0x577ae7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5406c9=this['editor']['config']['get']('list.properties'),_0x23743e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5406c9['styles']&&_0x23743e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5406c9['reversed']&&_0x23743e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5406c9['startIndex']&&_0x23743e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x23743e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1f0d5e,_0xe8bd43={}){const _0x345420=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e43b5=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x345420['markMultiRangeBlockFormat'](_0x2e43b5,{'commandName':'listStyle','commandParams':[{'type':_0xe8bd43['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5088a3,_0xcf236={}){const _0x5836ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d43e3=this['_getSuggestionBlocks'](_0xa3dada=>_0xa3dada['is']('element','listItem')&&'numbered'===_0xa3dada['getAttribute']('listType'));if(_0x5d43e3['length']<0x1)return;const _0x4140a4=_0x5d43e3['map'](_0x4f71c9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f71c9,'before'),this['editor']['model']['createPositionAt'](_0x4f71c9,0x0)));this['editor']['model']['change'](()=>{_0x5836ae['markMultiRangeBlockFormat'](_0x4140a4,{'commandName':'listReversed','commandParams':[{'reversed':_0xcf236['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3b24e0,_0x216a3c={}){const _0x4c6eff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x514c43=this['_getSuggestionBlocks'](_0x3dd2f3=>_0x3dd2f3['is']('element','listItem')&&'numbered'===_0x3dd2f3['getAttribute']('listType'));if(_0x514c43['length']<0x1)return;const _0x152226=_0x514c43['map'](_0x2efad7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2efad7,'before'),this['editor']['model']['createPositionAt'](_0x2efad7,0x0)));this['editor']['model']['change'](()=>{_0x4c6eff['markMultiRangeBlockFormat'](_0x152226,{'commandName':'listStart','commandParams':[{'startIndex':_0x216a3c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xf730f4){if('formatBlock'!=_0xf730f4['type']&&'formatInline'!=_0xf730f4['type'])return;const _0xa91fd2=this['editor']['locale'],{data:_0x3619d8}=_0xf730f4;if(!_0x3619d8)return;let _0x14f3d1,_0x118a44;switch(_0x3619d8['commandName']){case'listStyle':_0x14f3d1='*Change\x20to:*\x20%0',_0x118a44={'type':'format','content':c(_0xa91fd2,_0x14f3d1,c(_0xa91fd2,this['_getTranslationKeyForListStyle'](_0x3619d8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x14f3d1=_0x3619d8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x118a44={'type':'format','content':c(_0xa91fd2,_0x14f3d1)};break;case'listStart':_0x14f3d1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x118a44={'type':'format','content':c(_0xa91fd2,_0x14f3d1,_0x3619d8['commandParams'][0x0]['startIndex'])};}return _0x118a44;}['_getSuggestionBlocksForListStyle'](){const _0xda3105=this['editor']['plugins']['get']('LegacyListUtils');let _0xa88fb2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xa88fb2[0x0]?.['is']('element','listItem')&&_0xa88fb2['unshift'](..._0xda3105['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xa88fb2[_0xa88fb2['length']-0x1]?.['is']('element','listItem')&&_0xa88fb2['push'](..._0xda3105['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xa88fb2=[...new Set(_0xa88fb2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xa88fb2=_0xa88fb2['filter'](_0x55f8c6=>_0x55f8c6['is']('element','listItem'))),_0xa88fb2;}['_getSuggestionBlocks'](_0x58359c){const _0x3c86f3=this['editor']['plugins']['get']('LegacyListUtils');let _0x428476=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x58359c)['map'](_0x2ef31d=>{const _0x3c9a73=this['editor']['model']['createPositionAt'](_0x2ef31d,0x0);return[..._0x3c86f3['getSiblingNodes'](_0x3c9a73,'backward'),..._0x3c86f3['getSiblingNodes'](_0x3c9a73,'forward')];})['flat']();return _0x428476=[...new Set(_0x428476)],_0x428476;}['_getTranslationKeyForListStyle'](_0x301514){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x301514)||'default')['toUpperCase']()+'_LIST_'+_0x301514['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x577ae7{['afterInit'](){const _0x23073e=this['editor'];if(!_0x23073e['plugins']['has']('MediaEmbedEditing'))return;const _0x50e6fc=_0x23073e['plugins']['get']('TrackChangesEditing'),_0x2efd2f=_0x23073e['locale'];_0x50e6fc['enableCommand']('mediaEmbed'),_0x50e6fc['descriptionFactory']['registerElementLabel']('media',_0x252c62=>c(_0x2efd2f,'ELEMENT_MEDIA',_0x252c62)),_0x23073e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3ceda5,{writer:_0x17dbcd,options:_0x2eb470})=>{if(_0x2eb470['showSuggestionHighlights'])return _0x17dbcd['createEmptyElement']('div');},'converterPriority':'high'}),_0x23073e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x29a367,_0x1e31b2,_0x37be25)=>{_0x37be25['options']['showSuggestionHighlights']&&_0x29a367['stop']();},{'priority':'high'});}}class pt extends _0x577ae7{['afterInit'](){const _0x628850=this['editor'];_0x628850['plugins']['has']('MentionEditing')&&_0x628850['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x577ae7{['afterInit'](){const _0x2ae281=this['editor'];if(!_0x2ae281['plugins']['has']('MergeFieldsEditing'))return;const _0x5bdf0f=_0x2ae281['plugins']['get']('TrackChangesEditing'),_0x3b13d9=_0x2ae281['locale'];_0x5bdf0f['enableCommand']('insertMergeField'),_0x5bdf0f['enableCommand']('insertMergeFieldBlock'),_0x5bdf0f['enableCommand']('insertMergeFieldImage'),_0x5bdf0f['descriptionFactory']['registerElementLabel']('mergeField',_0x2cdd6a=>c(_0x3b13d9,'ELEMENT_MERGE_FIELD',_0x2cdd6a)),_0x5bdf0f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4f65cf=>c(_0x3b13d9,'ELEMENT_MERGE_FIELD',_0x4f65cf)),_0x5bdf0f['descriptionFactory']['registerDescriptionCallback'](_0x405df0=>{if('insertion'!=_0x405df0['type']&&'deletion'!=_0x405df0['type'])return;const _0x2d0ea0=_0x405df0['getContainedElement']();if(null==_0x2d0ea0)return;const _0x342d98=_0x2ae281['plugins']['get']('MergeFieldsEditing');let _0x6fcdb3;switch(_0x342d98['getMergeFieldType'](_0x2d0ea0)){case null:return;case'image':{const _0x1d20af=_0x342d98['unwrapAffixes'](_0x2d0ea0['getAttribute']('src'));_0x6fcdb3=_0x342d98['getLabel'](_0x1d20af)||_0x1d20af;break;}default:{const _0x4194b3=_0x2d0ea0['getAttribute']('id');_0x6fcdb3=_0x342d98['getLabel'](_0x4194b3)||_0x4194b3;break;}}return'insertion'==_0x405df0['type']?{'type':'insertion','content':c(_0x3b13d9,'*Insert:*\x20%0','\x22'+_0x6fcdb3+'\x22\x20'+c(_0x3b13d9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3b13d9,'*Remove:*\x20%0','\x22'+_0x6fcdb3+'\x22\x20'+c(_0x3b13d9,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x577ae7{['afterInit'](){const _0x108335=this['editor'],_0x13e700=_0x108335['plugins']['get']('TrackChangesEditing');_0x108335['plugins']['has']('MultiLevelList')&&(_0x13e700['enableDefaultAttributesIntegration']('multiLevelList'),_0x13e700['registerBlockAttribute']('listMarkerStyle'),_0x13e700['descriptionFactory']['registerDescriptionCallback'](_0xdbc52e=>this['handleDescriptions'](_0xdbc52e)));}['handleDescriptions'](_0x211b71){const _0x254191=this['editor']['locale'],{data:_0x4b16e1}=_0x211b71,_0xca4e82={'type':'format','content':''};if(_0x4b16e1&&'listMarkerStyle'==_0x4b16e1['key']){if(!_0x4b16e1['oldValue'])return{'type':'format','content':c(_0x254191,'*Set\x20format:*\x20%0',c(_0x254191,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4b16e1['newValue']+')'};if(!_0x4b16e1['newValue']){let _0x255921=_0x211b71['head'];for(;_0x255921;){if(_0x255921['data']&&'listType'==_0x255921['data']['key']&&_0x255921['data']['newValue'])return _0xca4e82;_0x255921=_0x255921['next'];}return{'type':'format','content':c(_0x254191,'*Remove\x20format:*\x20%0',c(_0x254191,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4b16e1['oldValue']+')'};}}}}class bt extends _0x577ae7{['afterInit'](){const _0x5e2772=this['editor'];if(!_0x5e2772['plugins']['has']('PageBreakEditing'))return;_0x5e2772['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x555ad2=_0x5e2772['plugins']['get']('TrackChangesEditing'),_0x5dc9f2=_0x5e2772['locale'];_0x555ad2['descriptionFactory']['registerElementLabel']('pageBreak',_0x356878=>c(_0x5dc9f2,'ELEMENT_PAGE_BREAK',_0x356878));}}class yt extends _0x577ae7{['afterInit'](){const _0x2c398a=this['editor'];if(!_0x2c398a['plugins']['has']('Paragraph'))return;const _0x4f3614=_0x2c398a['locale'],_0x5f055f=_0x2c398a['plugins']['get']('TrackChangesEditing');_0x5f055f['descriptionFactory']['registerElementLabel']('paragraph',_0x4feced=>c(_0x4f3614,'ELEMENT_PARAGRAPH',_0x4feced)),_0x5f055f['enableDefaultAttributesIntegration']('paragraph'),_0x5f055f['enableCommand']('insertParagraph'),_0x2c398a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2c398a),{'priority':'highest'}),_0x2c398a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4a9710,_0x1e77c5,_0x213b75)=>{_0x213b75['options']['showSuggestionHighlights']&&nr(_0x2c398a,{'showActiveMarker':!0x1})(_0x4a9710,_0x1e77c5,_0x213b75);},{'priority':'highest'});const _0x578d2a=_0x5f055f['descriptionFactory'];_0x578d2a['registerDescriptionCallback'](_0x38b9c0=>{if('insertion'!==_0x38b9c0['type'])return;const {start:_0x5161d0,end:_0x558212}=_0x38b9c0['getFirstRange']();if(!_0x5161d0['isTouching'](_0x558212)||!_0x5161d0['nodeAfter'])return;const _0x261e06=_0x2c398a['model']['schema'],_0x4d9476=_0x5161d0['nodeAfter'];return _0x261e06['isBlock'](_0x4d9476)&&!_0x261e06['isLimit'](_0x4d9476)&&_0x261e06['checkChild'](_0x4d9476,'$text')?{'type':'insertion','content':c(_0x4f3614,'*Insert:*\x20%0',_0x578d2a['getItemLabel'](_0x4d9476,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1df15c=this['editor'],_0x4972ec=_0x1df15c['locale'];_0x1df15c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x169b4d=>{if('formatBlock'!=_0x169b4d['type'])return;const {data:_0x37543b}=_0x169b4d;return _0x37543b&&'paragraph'==_0x37543b['commandName']?{'type':'format','content':c(_0x4972ec,'*Change\x20to:*\x20%0',c(_0x4972ec,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1ba5ab,{showActiveMarker:_0x3ddc6b=!0x0}={}){return(_0x3cc3ab,_0x3afb79,_0x87b40c)=>{const _0x26da06=_0x1ba5ab['plugins']['get']('TrackChangesEditing'),_0x5819b4=_0x3afb79['markerRange']['start'],_0x2113e2=_0x3afb79['markerRange']['end'],_0x19c203=_0x1ba5ab['model']['schema'];if(!_0x5819b4['isTouching'](_0x2113e2)||!_0x5819b4['nodeAfter'])return;const _0x202b43=_0x5819b4['nodeAfter'];if(_0x19c203['isBlock'](_0x202b43)&&!_0x19c203['isLimit'](_0x202b43)&&_0x19c203['checkChild'](_0x202b43,'$text')){if(!_0x87b40c['consumable']['consume'](_0x3afb79['markerRange'],_0x3cc3ab['name']))return;const {id:_0x414043,authorId:_0x35b238}=_0x26da06['_splitMarkerName'](_0x3afb79['markerName']),_0x126f3c=_0x87b40c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x414043,'data-author-id':_0x35b238}),_0x2f2c51=_0x87b40c['mapper']['toViewPosition'](_0x2113e2);_0x3ddc6b&&_0x26da06['activeMarkers']['includes'](_0x3afb79['markerName'])&&_0x87b40c['writer']['addClass']('ck-suggestion-marker--active',_0x126f3c),_0x87b40c['writer']['insert'](_0x2f2c51,_0x126f3c),_0x87b40c['mapper']['bindElementToMarker'](_0x126f3c,_0x3afb79['markerName']);}};}class St extends _0x577ae7{['afterInit'](){const _0x40b035=this['editor'];_0x40b035['commands']['get']('replaceSource')&&_0x40b035['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x577ae7{['afterInit'](){const _0x3754c6=this['editor'];if(!_0x3754c6['plugins']['has']('RemoveFormatEditing'))return;_0x3754c6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4169b2=this['editor'];_0x4169b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x655fad=>{if('formatBlock'!=_0x655fad['type']&&'formatInline'!=_0x655fad['type'])return;const {data:_0x1b8235}=_0x655fad;return _0x1b8235&&'removeFormat'==_0x1b8235['commandName']?{'type':'format','content':c(_0x4169b2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x577ae7{['afterInit'](){const _0x47eea1=this['editor'];if(!_0x47eea1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x19f7bf=_0x47eea1['plugins']['get']('TrackChangesEditing');_0x19f7bf['enableCommand']('goToPreviousRestrictedEditingException'),_0x19f7bf['enableCommand']('goToNextRestrictedEditingException');const _0x2ca051=_0x47eea1['plugins']['get']('RestrictedEditingModeEditing');_0x2ca051['enableCommand']('trackChanges'),_0x2ca051['enableCommand']('acceptSuggestion'),_0x2ca051['enableCommand']('discardSuggestion'),_0x2ca051['enableCommand']('acceptAllSuggestions'),_0x2ca051['enableCommand']('discardAllSuggestions'),_0x2ca051['enableCommand']('acceptSelectedSuggestions'),_0x2ca051['enableCommand']('discardSelectedSuggestions');}}class At extends _0x577ae7{['afterInit'](){const _0x3767cc=this['editor'];if(!_0x3767cc['plugins']['has']('ShiftEnter'))return;const _0x1884bb=_0x3767cc['plugins']['get']('TrackChangesEditing');_0x1884bb['enableCommand']('shiftEnter'),_0x3767cc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3767cc),{'priority':'high'}),_0x3767cc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3767cc),{'priority':'high'}),_0x3767cc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5284fe,_0x484c3e,_0x49aaa4)=>{_0x49aaa4['options']['showSuggestionHighlights']&&je(_0x3767cc,{'showActiveMarker':!0x1})(_0x5284fe,_0x484c3e,_0x49aaa4);}),_0x1884bb['descriptionFactory']['registerElementLabel']('softBreak',_0xc41edc=>c(_0x3767cc['locale'],'ELEMENT_LINE_BREAK',_0xc41edc));}}function je(_0x3290e9,{showActiveMarker:_0x19a3b1=!0x0}={}){return(_0x2c1f8a,_0x266c02,_0x469226)=>{const _0x5d31ac=_0x3290e9['plugins']['get']('TrackChangesEditing');if(!_0x469226['consumable']['test'](_0x266c02['markerRange'],_0x2c1f8a['name']))return;const _0x5101df=_0x3290e9['model'];for(const _0x2d366d of _0x266c02['markerRange']['getItems']()){if(!_0x2d366d['is']('element','softBreak'))continue;const _0x2d03eb='deletion'==_0x266c02['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2c14cc,authorId:_0x13512e}=_0x5d31ac['_splitMarkerName'](_0x266c02['markerName']),_0x63594a=_0x469226['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2d03eb,'data-suggestion':_0x2c14cc,'data-author-id':_0x13512e}),_0x28d266=_0x469226['mapper']['toViewPosition'](_0x5101df['createPositionBefore'](_0x2d366d));_0x19a3b1&&_0x5d31ac['activeMarkers']['includes'](_0x266c02['markerName'])&&_0x469226['writer']['addClass']('ck-suggestion-marker--active',_0x63594a),_0x469226['writer']['insert'](_0x28d266,_0x63594a),_0x469226['mapper']['bindElementToMarker'](_0x63594a,_0x266c02['markerName']);}};}class _t extends _0x577ae7{['afterInit'](){const _0x172039=this['editor'],_0x45161d=_0x172039['model'],_0x46f8d8=_0x172039['locale'];if(!_0x172039['plugins']['has']('StandardEditingModeEditing'))return;const _0x102b5a=_0x172039['plugins']['get']('TrackChangesEditing'),_0x1fa80a='restrictedEditingException',_0x1c2e4e=_0x172039['commands']['get'](_0x1fa80a);_0x102b5a['enableCommand'](_0x1fa80a,(_0x160841,_0x1daa7b={})=>{const _0xa9f755=_0x45161d['document']['selection'];if(_0xa9f755['isCollapsed'])return void _0x160841(_0x1daa7b);const _0xec23f5=void 0x0!==_0x1daa7b['forceValue']?_0x1daa7b['forceValue']:!_0x1c2e4e['value'];_0x45161d['change'](()=>{const _0x3624ce=Array['from'](_0xa9f755['getRanges']());for(const _0x5f17ea of _0x3624ce){const _0x21a01b=_0xec23f5?[_0x5f17ea]:io(_0x1fa80a,_0x5f17ea,_0x45161d);for(const _0x4ef508 of _0x21a01b)_0x102b5a['markInlineFormat'](_0x4ef508,{'commandName':_0x1fa80a,'commandParams':[{'forceValue':_0xec23f5}]});}});}),_0x102b5a['descriptionFactory']['registerDescriptionCallback'](_0x3edc9f=>{if('formatBlock'!=_0x3edc9f['type']&&'formatInline'!=_0x3edc9f['type'])return;const {data:_0x1e9c77}=_0x3edc9f;return _0x1e9c77&&_0x1e9c77['commandName']==_0x1fa80a?_0x1e9c77['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x46f8d8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x46f8d8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x577ae7{['afterInit'](){const _0x166570=this['editor'];if(!_0x166570['plugins']['has']('Style')||!_0x166570['plugins']['has']('DataSchema'))return;const _0x2266f0=_0x166570['plugins']['get']('TrackChangesEditing'),_0x168a9a=_0x166570['locale'],_0x43e039=_0x166570['config']['get']('style')||{},_0x565f04=_0x166570['plugins']['get']('GeneralHtmlSupport'),_0x2d3d0d=_0x166570['plugins']['get']('StyleUtils')['normalizeConfig'](_0x166570['plugins']['get']('DataSchema'),_0x43e039['definitions']);_0x2266f0['enableDefaultAttributesIntegration']('style');const _0x33caba=new Set();for(const _0x19d815 of _0x2d3d0d['block']){const _0x352adc=_0x565f04['getGhsAttributeNameForElement'](_0x19d815['element']);_0x33caba['add'](_0x352adc);}const _0x1cec18=new Set();for(const _0x5e4d7a of _0x2d3d0d['inline']){const _0x3d2eaa=_0x565f04['getGhsAttributeNameForElement'](_0x5e4d7a['element']);_0x1cec18['add'](_0x3d2eaa);for(const _0x4f0a19 of _0x5e4d7a['ghsAttributes'])_0x1cec18['add'](_0x4f0a19);}for(const _0x1e15ec of _0x33caba)_0x2266f0['registerBlockAttribute'](_0x1e15ec),_0x2266f0['descriptionFactory']['registerAttributeLabel'](_0x1e15ec,c(_0x168a9a,'FORMAT_STYLE'));for(const _0x4a8bc6 of _0x1cec18)_0x2266f0['registerInlineAttribute'](_0x4a8bc6),_0x2266f0['descriptionFactory']['registerAttributeLabel'](_0x4a8bc6,c(_0x168a9a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15d74d=this['editor'],_0x3d8e9f=_0x15d74d['locale'];_0x15d74d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf01857=>{if('formatBlock'!=_0xf01857['type']&&'formatInline'!=_0xf01857['type'])return;const {data:_0x356df8}=_0xf01857;return _0x356df8&&'style'===_0x356df8['commandName']?_0x356df8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3d8e9f,'*Set\x20format:*\x20%0',_0x356df8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x3d8e9f,'*Remove\x20format:*\x20%0',_0x356df8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x577ae7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x45f30a){super(_0x45f30a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4ac5b3=this['editor'],_0x539c07=_0x4ac5b3['model']['document']['selection'];if(!_0x4ac5b3['plugins']['has']('TableEditing'))return;const _0x6f1c7=_0x4ac5b3['locale'],_0x22060a=_0x4ac5b3['plugins']['get']('TrackChangesEditing'),_0x5ed4c4=_0x4ac5b3['plugins']['get']('TableUtils');_0x22060a['descriptionFactory']['registerElementLabel']('table',_0x1373e7=>c(_0x6f1c7,'ELEMENT_TABLE',_0x1373e7)),this['_setupColumnsRowsFixing'](),_0x22060a['enableCommand']('insertTable'),_0x22060a['enableCommand']('selectTableRow'),_0x22060a['enableCommand']('selectTableColumn');for(const _0x5df13c of['insertTableRowAbove','insertTableRowBelow']){const _0x262182=_0x4ac5b3['commands']['get'](_0x5df13c);_0x22060a['enableCommand'](_0x5df13c,_0x4abc98=>{_0x4ac5b3['model']['change'](_0x389cc0=>{_0x4abc98();const _0x218b5c='above'===_0x262182['order'],_0x37d333=_0x5ed4c4['getSelectionAffectedTableCells'](_0x539c07),_0x2ec529=_0x5ed4c4['getRowIndexes'](_0x37d333),_0x3391d3=_0x218b5c?_0x2ec529['first']-0x1:_0x2ec529['last']+0x1,_0xed1a4b=_0x37d333[0x0]['findAncestor']('table'),_0x48f470=_0x5ed4c4['createTableWalker'](_0xed1a4b,{'startRow':_0x3391d3,'endRow':_0x3391d3}),_0x4f45e0=Array['from'](_0x48f470)['map'](_0xfec156=>_0x389cc0['createRangeOn'](_0xfec156['cell']));_0x22060a['markMultiRangeInsertion'](_0x4f45e0,'tableRow');});});}for(const _0xbad47f of['insertTableColumnLeft','insertTableColumnRight']){const _0x79cb06=_0x4ac5b3['commands']['get'](_0xbad47f);_0x22060a['enableCommand'](_0xbad47f,_0x43041f=>{_0x4ac5b3['model']['change'](_0x2a9418=>{_0x43041f();const _0x58da67='left'===_0x79cb06['order'],_0x3251d2=_0x5ed4c4['getSelectionAffectedTableCells'](_0x539c07),_0x3e9ec7=_0x5ed4c4['getColumnIndexes'](_0x3251d2),_0x3a5623=_0x58da67?_0x3e9ec7['first']-0x1:_0x3e9ec7['last']+0x1,_0x5f3b65=_0x3251d2[0x0]['findAncestor']('table'),_0x530a14=_0x5ed4c4['createTableWalker'](_0x5f3b65,{'startRow':0x0,'column':_0x3a5623,'includeAllSlots':!0x1}),_0x32c2ac=Array['from'](_0x530a14)['map'](_0x36dc1e=>_0x2a9418['createRangeOn'](_0x36dc1e['cell']));_0x22060a['markMultiRangeInsertion'](_0x32c2ac,'tableColumn');});});}for(const _0x38d894 of['removeTableRow','removeTableColumn']){const _0x931bb3=_0x38d894['substr'](0xb),_0x1247ce=_0x931bb3['toLowerCase'](),_0xb32cfc=_0x1247ce['substr'](0x0,0x3)+'span',_0x566fab='table'+_0x931bb3,_0x1a55ec='min'+_0x931bb3,_0x53b3a9='max'+_0x931bb3;_0x22060a['enableCommand'](_0x38d894,()=>{_0x4ac5b3['model']['change'](_0x50eeaf=>{const _0x3aaefd=_0x5ed4c4['getSelectionAffectedTableCells'](_0x539c07),_0x5dd29e=_0x3aaefd[0x0]['findAncestor']('table');let _0x239d66;if('removeTableRow'==_0x38d894){const _0x1399ba=_0x5ed4c4['getRowIndexes'](_0x3aaefd);_0x239d66={'startRow':_0x1399ba['first'],'endRow':_0x1399ba['last'],'includeAllSlots':!0x0};}else{const _0x1d8dd1=_0x5ed4c4['getColumnIndexes'](_0x3aaefd);_0x239d66={'startColumn':_0x1d8dd1['first'],'endColumn':_0x1d8dd1['last'],'includeAllSlots':!0x0};}const _0x2affd1=_0x5ed4c4['createTableWalker'](_0x5dd29e,_0x239d66),_0x275abc=Array['from'](_0x2affd1)['map'](({cell:_0x5dbbf7})=>_0x5dbbf7),_0x146e23=xe(_0x275abc['filter'](_0x123ebe=>_0x123ebe['hasAttribute'](_0xb32cfc))),_0x2cd40d=xe(_0x275abc['filter'](_0x5214f6=>!_0x5214f6['hasAttribute'](_0xb32cfc)))['map'](_0x613ae4=>_0x50eeaf['createRangeOn'](_0x613ae4)),_0x4cea0f=_0x22060a['markMultiRangeDeletion'](_0x2cd40d,_0x566fab);if(_0x4cea0f&&('tableRow'==_0x4cea0f['subType']||'tableColumn'==_0x4cea0f['subType'])){const _0x1addcf=this['_getSuggestionCoords'](_0x4cea0f);for(const _0x10aa57 of _0x146e23){const _0x1d9ce3=_0x50eeaf['createRangeOn'](_0x10aa57),_0x1ca20b=_0x5ed4c4['getCellLocation'](_0x10aa57),_0x252e12=_0x10aa57['getAttribute'](_0xb32cfc)-0x1,_0x56aac3=_0x1addcf[_0x1a55ec],_0x2c1666=_0x1addcf[_0x53b3a9];_0x56aac3<=_0x1ca20b[_0x1247ce]&&_0x1ca20b[_0x1247ce]+_0x252e12<=_0x2c1666&&_0x4cea0f['addRange'](_0x1d9ce3);}}});});}function _0x32b595(_0x4ebbda){const _0x50654a=Array['from'](_0x539c07['getRanges']())['map'](_0x31bcbf=>_0x3a5e87['fromRange'](_0x31bcbf));_0x4ac5b3['model']['change'](_0x2f8b63=>{const _0x2b47fc=_0x2f8b63['batch'];_0x4ebbda=_0x4ebbda['filter'](_0x2a30e5=>'$graveyard'!=_0x2a30e5['root']['rootName']),_0x2f8b63['setSelection'](_0x4ebbda),_0x4ac5b3['commands']['get']('removeTableRow')['refresh'](),_0x4ac5b3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4ac5b3['model']['enqueueChange'](()=>{_0x4ac5b3['model']['enqueueChange'](_0x2b47fc,_0x297126=>{const _0x11942b=_0x50654a['filter'](_0x26af0d=>'$graveyard'!=_0x26af0d['root']['rootName']);_0x11942b['length']>0x0&&_0x297126['setSelection'](_0x11942b);for(const _0x251d41 of _0x50654a)_0x251d41['detach']();});});});}function _0x580c4a(_0x305bfb){_0x4ac5b3['model']['change'](_0x5df0f5=>{const _0x1d7958=Array['from'](_0x539c07['getRanges']())['map'](_0x3e04ea=>_0x3a5e87['fromRange'](_0x3e04ea)),_0x148c25=[];for(const _0x2c88b9 of _0x305bfb)for(const _0x309708 of _0x2c88b9['getItems']({'shallow':!0x0}))_0x148c25['push'](_0x309708);for(const _0x19e084 of _0x148c25)'$graveyard'!=_0x19e084['root']['rootName']&&(_0x5df0f5['setSelection'](_0x5df0f5['createPositionAt'](_0x19e084,0x0)),_0x4ac5b3['commands']['get']('removeTableColumn')['refresh'](),_0x4ac5b3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4d21da=_0x1d7958['filter'](_0x1462b7=>'$graveyard'!=_0x1462b7['root']['rootName']);_0x4d21da['length']>0x0&&_0x5df0f5['setSelection'](_0x4d21da);for(const _0x2b1f82 of _0x1d7958)_0x2b1f82['detach']();});}function _0x125281(_0x494051,_0x538946){return _0x538946['every'](_0x2c0924=>_0x494051['some'](_0xb860f7=>_0xb860f7['end']['isEqual'](_0x2c0924['start'])||_0x2c0924['end']['isEqual'](_0xb860f7['start'])));}function _0x10106e(_0x52dae3,_0x2e4811){return!_0x52dae3['some'](_0x5e4ee3=>_0x2e4811['some'](_0x4a939=>_0x5e4ee3['isIntersecting'](_0x4a939)))&&_0x52dae3['some'](_0x1b7534=>_0x2e4811['some'](_0x3d1e23=>_0x1b7534['end']['isTouching'](_0x3d1e23['start'])));}_0x4ac5b3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a0c3e,_0x25c71a,_0x424cbd)=>{if(!_0x424cbd['options']['showSuggestionHighlights'])return;const _0x22ca0f=_0x25c71a['item'];if(!_0x22ca0f||!_0x22ca0f['is']('element','tableCell'))return;const _0x282c52=_0x424cbd['mapper']['toViewElement'](_0x22ca0f);if(_0x282c52){const {id:_0x5e02fb,authorId:_0x435dc9}=_0x22060a['_splitMarkerName'](_0x25c71a['markerName']);_0x231675(_0x282c52,_0x424cbd['writer'],(_0x5b5d82,_0x2a9ed8,_0x4b11d5)=>{_0x4b11d5['addClass'](_0x5894de(_0x2a9ed8['classes']),_0x5b5d82),_0x4b11d5['setAttribute']('data-suggestion-id',_0x5e02fb,_0x5b5d82),_0x4b11d5['setAttribute']('data-author-id',_0x435dc9,_0x5b5d82);},(_0x3fc512,_0x3399ba,_0x408542)=>{_0x408542['removeClass'](_0x5894de(_0x3399ba['classes']),_0x3fc512),_0x408542['removeAttribute']('data-suggestion-id',_0x3fc512),_0x408542['removeAttribute']('data-author-id',_0x3fc512);});}},{'priority':'highest'}),_0x22060a['descriptionFactory']['registerDescriptionCallback'](_0x3ed7a2=>{if('insertion'!=_0x3ed7a2['type']&&'deletion'!=_0x3ed7a2['type'])return;const _0x106ef8=_0x3ed7a2['getContainedElement']();if(null!=_0x106ef8&&_0x106ef8['is']('element','table')){if('insertion'==_0x3ed7a2['type']){const _0x554a4d=_0x3ed7a2['getItems']()['filter'](_0x6fb1ab=>_0x6fb1ab['is']('$textProxy'))['map'](_0x16d152=>_0x16d152['data']);if(_0x554a4d['length'])return{'type':'insertion','content':c(_0x6f1c7,'*Insert:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x554a4d['join']('\x20')+'\x22'))};}if('deletion'==_0x3ed7a2['type']){const _0xdebf9e=_0x3ed7a2['getItems']()['filter'](_0x2f6624=>_0x2f6624['is']('$textProxy'))['map'](_0x3bc3b5=>_0x3bc3b5['data']);if(_0xdebf9e['length'])return{'type':'deletion','content':c(_0x6f1c7,'*Remove:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xdebf9e['join']('\x20')+'\x22'))};}}}),_0x22060a['descriptionFactory']['registerDescriptionCallback'](_0x4193db=>{if('tableRow'==_0x4193db['subType']){const _0x2f15db=_0x4193db['getItems']()['filter'](_0xaad521=>_0xaad521['is']('$textProxy'))['map'](_0x18a282=>_0x18a282['data']),_0x57c3a2=this['_getSuggestionCoords'](_0x4193db),_0x4e878a=_0x57c3a2['maxRow']-_0x57c3a2['minRow']+0x1;if('insertion'==_0x4193db['type'])return _0x2f15db['length']?{'type':'insertion','content':c(_0x6f1c7,'*Insert:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4e878a,'\x22'+_0x2f15db['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x6f1c7,'*Insert:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_ROW',_0x4e878a))};if('deletion'==_0x4193db['type'])return _0x2f15db['length']?{'type':'deletion','content':c(_0x6f1c7,'*Remove:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4e878a,'\x22'+_0x2f15db['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x6f1c7,'*Remove:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_ROW',_0x4e878a))};}if('tableColumn'==_0x4193db['subType']){const _0x3f264e=_0x4193db['getItems']()['filter'](_0x12903f=>_0x12903f['is']('$textProxy'))['map'](_0x545653=>_0x545653['data']),_0x1990de=this['_getSuggestionCoords'](_0x4193db),_0x34cae3=_0x1990de['maxColumn']-_0x1990de['minColumn']+0x1;if('insertion'==_0x4193db['type'])return _0x3f264e['length']?{'type':'insertion','content':c(_0x6f1c7,'*Insert:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34cae3,'\x22'+_0x3f264e['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x6f1c7,'*Insert:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_COLUMN',_0x34cae3))};if('deletion'==_0x4193db['type'])return _0x3f264e['length']?{'type':'deletion','content':c(_0x6f1c7,'*Remove:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34cae3,'\x22'+_0x3f264e['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x6f1c7,'*Remove:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_COLUMN',_0x34cae3))};}}),_0x22060a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x32b595),_0x22060a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x32b595),_0x22060a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x580c4a),_0x22060a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x580c4a),_0x22060a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x125281),_0x22060a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x125281),_0x22060a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x10106e),_0x22060a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x10106e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2f6d12=this['editor'],_0x143cf9=_0x2f6d12['model']['document']['selection'];return(_0x2f0d7e,_0x51e4a9)=>{_0x2f6d12['model']['change'](_0x4ba888=>{const {commandName:_0xa66126,commandParams:_0x31c232}=_0x51e4a9;let _0x20b5f5=_0x2f0d7e[0x0]['end']['nodeBefore'];_0x31c232&&_0x31c232[0x0]&&!0x1===_0x31c232[0x0]['forceValue']&&(_0x20b5f5=_0x2f0d7e[0x0]['start']['nodeAfter']);const _0x57d748=_0x4ba888['createRangeIn'](_0x20b5f5);if('$graveyard'==_0x57d748['root']['rootName'])return;const _0x3b353b=Array['from'](_0x143cf9['getRanges']())['map'](_0x819014=>_0x3a5e87['fromRange'](_0x819014));_0x4ba888['setSelection'](_0x57d748),_0x2f6d12['commands']['get'](_0xa66126)['refresh'](),_0x31c232['push']({'forceDefaultExecution':!0x0}),_0x2f6d12['execute'](_0xa66126,..._0x31c232);const _0x2393ef=_0x3b353b['filter'](_0x32896a=>'$graveyard'!=_0x32896a['root']['rootName']);_0x2393ef['length']>0x0&&_0x4ba888['setSelection'](_0x2393ef);for(const _0x4f679f of _0x3b353b)_0x4f679f['detach']();});};}['_getCoordsForCells'](_0x2e512c){const _0x5491d7=this['editor']['plugins']['get']('TableUtils');let _0x10a7b8=Number['MAX_SAFE_INTEGER'],_0x1988f8=Number['MIN_SAFE_INTEGER'],_0x3f1856=Number['MAX_SAFE_INTEGER'],_0x5f0488=Number['MIN_SAFE_INTEGER'];for(const _0x37f6e2 of _0x2e512c){if('$graveyard'==_0x37f6e2['root']['rootName'])continue;const {row:_0x5a1b30,column:_0x309435}=_0x5491d7['getCellLocation'](_0x37f6e2),_0x2c391d=_0x37f6e2['hasAttribute']('rowspan')?_0x37f6e2['getAttribute']('rowspan')-0x1:0x0,_0x3bc7b8=_0x37f6e2['hasAttribute']('colspan')?_0x37f6e2['getAttribute']('colspan')-0x1:0x0;_0x10a7b8=_0x5a1b30<_0x10a7b8?_0x5a1b30:_0x10a7b8,_0x1988f8=_0x5a1b30+_0x2c391d>_0x1988f8?_0x5a1b30+_0x2c391d:_0x1988f8,_0x3f1856=_0x309435<_0x3f1856?_0x309435:_0x3f1856,_0x5f0488=_0x309435+_0x3bc7b8>_0x5f0488?_0x309435+_0x3bc7b8:_0x5f0488;}return{'minRow':_0x10a7b8,'maxRow':_0x1988f8,'minColumn':_0x3f1856,'maxColumn':_0x5f0488};}['_setupColumnsRowsFixing'](){const _0xc551a=this['editor'],_0x1206d7=_0xc551a['plugins']['get']('TrackChangesEditing'),_0x1668ba=_0xc551a['plugins']['get']('TableUtils');_0xc551a['model']['document']['on']('change:data',()=>{const _0x509fee=Array['from'](_0xc551a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b3333,data:_0x3ec0f7}of _0x509fee){const {group:_0x8e4cfa,id:_0x3134ba,subType:_0x488d61}=_0x1206d7['_splitMarkerName'](_0x3b3333);if('suggestion'!=_0x8e4cfa)continue;if(null!=_0x3ec0f7['oldRange'])continue;const _0x6eb214=_0x1206d7['getSuggestion'](_0x3134ba);this['_tablePostFixingSubtypes']['includes'](_0x488d61)&&this['_tableSuggestions']['add'](_0x6eb214);}},{'priority':'low'});const _0x2b1225=(_0x393483,_0x826c45)=>{let _0x592e99=!0x1;const _0x22c152=_0x826c45['createRangeOn'](_0x393483),_0x4787be=_0x393483['findAncestor']('table'),_0x45e5bc=_0x1668ba['getCellLocation'](_0x393483);for(const _0xaedc25 of this['_tableSuggestions']){const _0x551296=_0xaedc25['subType'],_0x31b4c1=_0x551296['startsWith']('tablePaste'),_0x5e6eb3=_0x551296['substr'](_0x31b4c1?0xa:0x5),_0x3f70a3=_0x5e6eb3['toLowerCase'](),_0x2d2a96=_0x3f70a3['substr'](0x0,0x3)+'span',_0x5e3063='min'+_0x5e6eb3,_0x457b7b='max'+_0x5e6eb3;if(!_0xaedc25['isInContent'])continue;if(_0x4787be!=_0xaedc25['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xaedc25['isIntersectingWithRange'](_0x22c152))continue;const _0x3e8a83=_0x393483['hasAttribute'](_0x2d2a96)?_0x393483['getAttribute'](_0x2d2a96)-0x1:0x0,_0x5a0f33=this['_getSuggestionCoords'](_0xaedc25),_0x388f6c=_0x5a0f33[_0x5e3063],_0xfa2958=_0x5a0f33[_0x457b7b];_0x388f6c<=_0x45e5bc[_0x3f70a3]&&_0x45e5bc[_0x3f70a3]+_0x3e8a83<=_0xfa2958&&(_0xaedc25['addRange'](_0x22c152),_0x592e99=!0x0);}return _0x592e99;};_0xc551a['model']['document']['registerPostFixer'](_0x2e9727=>{let _0x1e4833=!0x1;for(const _0x20a2ef of _0xc551a['model']['document']['differ']['getChanges']())if('insert'==_0x20a2ef['type']){if('tableRow'==_0x20a2ef['name']){for(const _0x32a1ba of _0x20a2ef['position']['nodeAfter']['getChildren']())_0x1e4833=_0x1e4833||_0x2b1225(_0x32a1ba,_0x2e9727);}else'tableCell'==_0x20a2ef['name']&&(_0x1e4833=_0x1e4833||_0x2b1225(_0x20a2ef['position']['nodeAfter'],_0x2e9727));}return _0x1e4833;});}['_getSuggestionCoords'](_0x125d5e){return this['_getCoordsForCells'](_0x125d5e['getRanges']()['map'](_0x2a87df=>_0x2a87df['start']['nodeAfter']));}}function xe(_0x13889e){return Array['from'](new Set(_0x13889e)['values']());}class Nt extends _0x577ae7{static get['requires'](){return[Ct];}['afterInit'](){const _0x347354=this['editor'],_0x1e463c=_0x347354['model']['document']['selection'],_0x25f0ec=_0x347354['locale'];if(!_0x347354['plugins']['has']('TableEditing'))return;const _0x22346d=_0x347354['plugins']['get']('TrackChangesEditing'),_0xd9ffc0=_0x347354['plugins']['get']('TableUtils'),_0xe9e17f=_0x347354['plugins']['get'](Ct);_0xe9e17f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x22346d['enableCommand']('mergeTableCells',()=>{const _0x4056b1=_0xd9ffc0['getSelectionAffectedTableCells'](_0x347354['model']['document']['selection']);_0x347354['model']['change'](()=>{_0x22346d['markMultiRangeBlockFormat'](_0x4056b1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x347354['commands']['get']('mergeTableCells')['on']('execute',(_0x6eca01,_0x275c47)=>{_0x347354['commands']['get']('trackChanges')['value']&&(_0x275c47['length']>0x0&&_0x275c47[_0x275c47['length']-0x1]&&_0x275c47[_0x275c47['length']-0x1]['forceDefaultExecution']||_0x22346d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x6eca01['stop']());},{'priority':'highest'});for(const _0x1ed8bd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4d38bd=_0x347354['commands']['get'](_0x1ed8bd);_0x22346d['enableCommand'](_0x1ed8bd,()=>{const _0x1ff74e=_0x347354['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x541495=>_0x541495['is']('element','tableCell')),_0x5c54d8=_0x4d38bd['value'];_0x347354['model']['change'](()=>{_0x22346d['markMultiRangeBlockFormat']([_0x1ff74e,_0x5c54d8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3f06b4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x42e9ee=_0x347354['commands']['get'](_0x3f06b4);_0x22346d['enableCommand'](_0x3f06b4,()=>{const _0x298267=_0xd9ffc0['getSelectionAffectedTableCells'](_0x347354['model']['document']['selection'])[0x0],_0xb98314=_0x298267['findAncestor']('table'),{column:_0x12390e,row:_0x1fd7cf}=_0xd9ffc0['getCellLocation'](_0x298267);let _0x431f3b=[];if('horizontally'==_0x42e9ee['direction']){const _0x2ae537=_0xd9ffc0['createTableWalker'](_0xb98314,{'startRow':_0x1fd7cf,'endRow':_0x1fd7cf,'includeAllSlots':!0x0});_0x431f3b=Array['from'](_0x2ae537)['map'](_0x1dd5c2=>_0x1dd5c2['cell']);}else{const _0x248d41=_0xd9ffc0['createTableWalker'](_0xb98314,{'column':_0x12390e,'includeAllSlots':!0x0});_0x431f3b=Array['from'](_0x248d41)['map'](_0x4e97fd=>_0x4e97fd['cell']);}_0x347354['model']['change'](_0x355c97=>{_0x22346d['markBlockFormat'](_0x355c97['createRangeOn'](_0x298267),{'commandName':_0x3f06b4,'commandParams':[]},_0x431f3b,_0x3f06b4);});});}_0x22346d['descriptionFactory']['registerDescriptionCallback'](_0x3e1113=>{if('formatBlock'!=_0x3e1113['type']&&'formatInline'!=_0x3e1113['type'])return;const {data:_0x2fac30}=_0x3e1113;return _0x2fac30&&'mergeTableCells'==_0x2fac30['commandName']?{'type':'format','content':c(_0x25f0ec,'*Merge\x20cells*')}:void 0x0;}),_0x22346d['descriptionFactory']['registerDescriptionCallback'](_0x4dc60c=>{if('formatBlock'!=_0x4dc60c['type']&&'formatInline'!=_0x4dc60c['type'])return;const {data:_0x140299}=_0x4dc60c;return _0x140299?'splitTableCellVertically'==_0x140299['commandName']?{'type':'format','content':c(_0x25f0ec,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x140299['commandName']?{'type':'format','content':c(_0x25f0ec,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5d68bd=_0xe9e17f['_acceptFormatSuggestionCallbackFactory']();for(const _0x3c8e39 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x22346d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3c8e39,'accept',_0x5d68bd);for(const _0x595984 of['splitTableCellVertically','splitTableCellHorizontally'])_0x22346d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x595984,'accept',_0x5d68bd);_0x22346d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x475f1a=>{_0x347354['model']['change'](_0x4a4a67=>{const _0x2c690b=Array['from'](_0x1e463c['getRanges']())['map'](_0x12736e=>_0x3a5e87['fromRange'](_0x12736e));_0x4a4a67['setSelection'](_0x475f1a),_0x347354['commands']['get']('mergeTableCells')['refresh'](),_0x347354['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x47c956=_0x2c690b['filter'](_0x4413a3=>'$graveyard'!=_0x4413a3['root']['rootName']);_0x47c956['length']>0x0&&_0x4a4a67['setSelection'](_0x47c956);for(const _0xdd1280 of _0x2c690b)_0xdd1280['detach']();});});for(const _0x3c0d52 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x465859=_0x347354['commands']['get'](_0x3c0d52);_0x465859['on']('set:isEnabled',(_0x442075,_0x2e2a28,_0xdc49c2)=>{if(_0xdc49c2){const _0x7aa78b=_0x347354['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x47aec6=>_0x47aec6['is']('element','tableCell'));this['_areMergableCells'](_0x465859['value'],_0x7aa78b)||(_0x442075['return']=!0x1,_0x442075['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x44a837=this['editor']['commands']['get']('mergeTableCells'),_0x9bee34=this['editor']['plugins']['get']('TableUtils');if(!_0x44a837['isEnabled'])return!0x1;const _0x3af995=_0x9bee34['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3d0481 of _0x3af995)for(const _0x17af20 of _0x3af995)if(_0x3d0481!=_0x17af20&&!this['_areMergableCells'](_0x3d0481,_0x17af20))return!0x1;return!0x0;}['_areMergableCells'](_0x21daeb,_0x207c8f){const _0x385d39=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dd60f=this['editor']['model']['createRangeOn'](_0x21daeb),_0x5d0e79=this['editor']['model']['createRangeOn'](_0x207c8f),_0xa8c6c3=new Set(),_0x15c288=new Set();for(const _0x13d615 of _0x385d39['getSuggestions']())if(('insertion'==_0x13d615['type']||'deletion'==_0x13d615['type']||'mergeTableCells'==_0x13d615['subType'])&&_0x13d615['isInContent']){for(const _0x2c92a4 of _0x13d615['getRanges']())_0x2c92a4['containsRange'](_0x5dd60f,!0x0)&&_0xa8c6c3['add'](_0x13d615['type']+':'+_0x13d615['author']['id']),_0x2c92a4['containsRange'](_0x5d0e79,!0x0)&&_0x15c288['add'](_0x13d615['type']+':'+_0x13d615['author']['id']);}if(_0xa8c6c3['size']!=_0x15c288['size'])return!0x1;for(const _0x3829a9 of _0xa8c6c3)if(!_0x15c288['has'](_0x3829a9))return!0x1;return!0x0;}}class Dt extends _0x577ae7{static get['requires'](){return[Ct];}['afterInit'](){const _0x11d837=this['editor'];if(!_0x11d837['plugins']['has']('TableEditing'))return;const _0x592ac7=_0x11d837['locale'],_0x2b0229=_0x11d837['plugins']['get']('TrackChangesEditing');_0x2b0229['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2b0229['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2b0229['registerBlockAttribute']('headingRows'),_0x2b0229['registerBlockAttribute']('headingColumns'),_0x2b0229['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x592ac7,'FORMAT_HEADER_ROW')),_0x2b0229['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x592ac7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5b22a3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f0dd1=this['editor']['plugins']['get']('TableUtils'),_0x578104=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x1c1f52({showActiveMarker:_0x4fdbac=!0x0,setDataAttribute:_0x2cf2b8=!0x0}={}){return(_0x17d4a8,_0x2dcc72,_0x101f3a)=>{const {type:_0x24da2c,id:_0x2e358e}=_0x5b22a3['_splitMarkerName'](_0x2dcc72['markerName']),_0x8988c=_0x5b22a3['getSuggestion'](_0x2e358e),_0x2cf9a7=_0x8988c['data'];if('formatBlock'!=_0x8988c['type']||!_0x2cf9a7||'setTableColumnHeader'!=_0x2cf9a7['commandName'])return;if(_0x2dcc72['item'])return void _0x17d4a8['stop']();if(!_0x101f3a['consumable']['consume'](_0x2dcc72['markerRange'],_0x17d4a8['name']))return;const _0x1abff4=_0x2dcc72['markerRange']['start']['nodeAfter'],_0x44b970=_0x2dcc72['markerRange']['end']['nodeBefore'],_0x505c65=_0x1abff4['parent']['parent'],{column:_0x56bce4}=_0x5f0dd1['getCellLocation'](_0x1abff4),{column:_0x53be3c}=_0x5f0dd1['getCellLocation'](_0x44b970);for(let _0x1b97d7=_0x56bce4;_0x1b97d7<=_0x53be3c;_0x1b97d7++){const _0x2960b0=_0x5f0dd1['createTableWalker'](_0x505c65,{'column':_0x1b97d7,'includeAllSlots':!0x1});for(const _0x4fdc3b of _0x2960b0){const _0x596b4d=_0x4fdc3b['cell'],_0x1265fb=_0x101f3a['mapper']['toViewElement'](_0x596b4d);_0x101f3a['writer']['addClass']('ck-suggestion-marker-'+_0x24da2c,_0x1265fb),_0x2cf2b8&&_0x101f3a['writer']['setAttribute']('data-suggestion',_0x2e358e,_0x1265fb),_0x101f3a['mapper']['bindElementToMarker'](_0x1265fb,_0x2dcc72['markerName']),_0x4fdbac&&(_0x5b22a3['activeMarkers']['includes'](_0x2dcc72['markerName'])?_0x101f3a['writer']['addClass']('ck-suggestion-marker--active',_0x1265fb):_0x101f3a['writer']['removeClass']('ck-suggestion-marker--active',_0x1265fb));}}};}_0x5b22a3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x578104),_0x5b22a3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x578104),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1c1f52(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1f5ccc,_0x46fc50,_0x4f68cc)=>{_0x4f68cc['options']['showSuggestionHighlights']&&_0x1c1f52({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1f5ccc,_0x46fc50,_0x4f68cc);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x46c538,_0xc8ac9e,_0x1ecf1c)=>{const {type:_0x56a7e3,id:_0x15f219}=_0x5b22a3['_splitMarkerName'](_0xc8ac9e['markerName']),_0x3d3405=_0x5b22a3['getSuggestion'](_0x15f219),_0x4f53ba=_0x3d3405['data'];if('formatBlock'!=_0x3d3405['type']||!_0x4f53ba||'setTableColumnHeader'!=_0x4f53ba['commandName'])return;const _0x4c66bc=_0x1ecf1c['mapper']['markerNameToElements'](_0xc8ac9e['markerName']);if(_0x4c66bc){for(const _0x1d013e of _0x4c66bc)_0x1ecf1c['writer']['removeClass']('ck-suggestion-marker-'+_0x56a7e3,_0x1d013e),_0x1ecf1c['writer']['removeClass']('ck-suggestion-marker--active',_0x1d013e),_0x1ecf1c['writer']['removeAttribute']('data-suggestion',_0x1d013e),_0x1ecf1c['mapper']['unbindElementFromMarkerName'](_0x1d013e,_0xc8ac9e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48e251=this['editor'],_0x16b15f=_0x48e251['locale'];function _0x27cc4b(_0x2c7acd){return{'type':'format','content':c(_0x16b15f,'*Format:*\x20%0',_0x2c7acd)};}_0x48e251['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2747d7=>{if('formatBlock'!=_0x2747d7['type'])return;const {data:_0x506546}=_0x2747d7;if(_0x506546){if('setTableRowHeader'==_0x506546['commandName']){const _0x4f115d=_0x506546['commandParams'][0x0]['forceValue'];return _0x27cc4b(c(_0x16b15f,_0x4f115d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x506546['commandName']){const _0x4e94fb=_0x506546['commandParams'][0x0]['forceValue'];return _0x27cc4b(c(_0x16b15f,_0x4e94fb?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x577ae7{['afterInit'](){const _0x2d4cdd=this['editor'],_0x488595=_0x2d4cdd['locale'],_0x15d847=_0x2d4cdd['plugins']['get']('TrackChangesEditing');function _0x59095d(_0x4e896d){return{'type':'format','content':''+c(_0x488595,'*Set\x20table\x20type:*\x20%0',_0x4e896d)};}_0x2d4cdd['plugins']['has']('TableLayout')&&(_0x15d847['enableCommand']('insertTableLayout'),_0x15d847['enableDefaultAttributesIntegration']('tableType'),_0x15d847['registerBlockAttribute']('tableType'),_0x15d847['descriptionFactory']['registerElementLabel'](_0x3e6f9f=>_0x3e6f9f['is']('element','table')&&'layout'===_0x3e6f9f['getAttribute']('tableType'),_0x442728=>c(_0x488595,'ELEMENT_LAYOUT_TABLE',_0x442728)),_0x15d847['descriptionFactory']['registerDescriptionCallback'](_0x5924e8=>{const {data:_0x49a09e}=_0x5924e8;if(_0x49a09e&&'tableType'==_0x49a09e['key'])switch(_0x49a09e['newValue']){case'layout':return _0x59095d(c(_0x488595,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x59095d(c(_0x488595,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x26639e=>[_0x26639e,null]));class $t extends _0x577ae7{static get['requires'](){return[Ct];}['afterInit'](){const _0x482315=this['editor'];if(!_0x482315['plugins']['has']('TableClipboard'))return;const _0x4b7845=_0x482315['plugins']['get']('TrackChangesEditing'),_0x48540a=_0x482315['plugins']['get']('TableUtils'),_0x22ee83=_0x482315['plugins']['get'](Ct),_0xe4392f=_0x482315['plugins']['get']('TableClipboard'),_0x5503f5=_0x482315['plugins']['get']('TableSelection'),_0x1df8d3=_0x482315['plugins']['get'](_0x1a1079);_0x22ee83['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x482315['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x482315['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4a1783=null,_0x288cac=!0x1;_0x1df8d3['on']('contentInsertion',(_0x109d89,_0x33dcbf)=>{_0x288cac='paste'===_0x33dcbf['method'];}),_0x482315['model']['on']('insertContent',(_0x18adb0,_0x215d8a)=>{if(!_0x288cac&&null===_0x5503f5['getSelectedTableCells']())return;const [_0x361e3f,_0x2489e7]=_0x215d8a,_0x4c182f=_0x215d8a[_0x215d8a['length']-0x1];_0x4c182f&&_0x4c182f['forceDefaultExecution']||_0x4b7845['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3449ff,_0x14bfd9,_0x4668bd,_0x5b2f68,_0x4eb0b5){if(_0x14bfd9&&!_0x14bfd9['is']('documentSelection'))return!0x1;const _0x40c5cf=_0x4eb0b5['getTableIfOnlyTableInContent'](_0x3449ff,_0x4668bd);if(!_0x40c5cf||!He(_0x40c5cf,void 0x0,_0x5b2f68))return!0x1;const _0x10578e=_0x5b2f68['getSelectionAffectedTableCells'](_0x4668bd['document']['selection']);if(!_0x10578e['length'])return!0x1;const _0x1ee938=_0x10578e[0x0]['findAncestor']('table'),_0x36ab6d=_0x5b2f68['getRowIndexes'](_0x10578e),_0x32ec32=_0x5b2f68['getColumnIndexes'](_0x10578e),_0x48c56a={'startRow':_0x36ab6d['first'],'endRow':_0x36ab6d['last'],'startColumn':_0x32ec32['first'],'endColumn':_0x32ec32['last']};return 0x1==_0x10578e['length']&&(_0x48c56a['endRow']+=_0x5b2f68['getRows'](_0x40c5cf)-0x1,_0x48c56a['endColumn']+=_0x5b2f68['getColumns'](_0x40c5cf)-0x1),He(_0x1ee938,_0x48c56a,_0x5b2f68);}(_0x361e3f,_0x2489e7,_0x482315['model'],_0x48540a,_0xe4392f)&&(_0x18adb0['stop'](),_0x4a1783={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x482315['model']['change'](()=>{_0x482315['model']['insertContent'](_0x215d8a[0x0],_0x215d8a[0x1],_0x215d8a[0x2],{'forceDefaultExecution':!0x0});const _0x1c6f94=_0x147536(),{rowInsertionRanges:_0x33d819,columnInsertionRanges:_0x36f52b,insertionRanges:_0x114ce6,deletionRanges:_0x30bf25,cells:_0x1a5ce9}=_0x4a1783;_0x33d819['length']&&_0x4b7845['markMultiRangeInsertion'](_0x33d819,'tablePasteRow',{'tablePasteChainId':_0x1c6f94}),_0x36f52b['length']&&_0x4b7845['markMultiRangeInsertion'](_0x36f52b,'tablePasteColumn',{'tablePasteChainId':_0x1c6f94}),_0x114ce6['length']&&(_0x4b7845['markMultiRangeInsertion'](_0x114ce6,'tablePaste',{'tablePasteChainId':_0x1c6f94,'skipNestingCheck':!0x0}),_0x114ce6['forEach'](_0x1db514=>_0x1db514['detach']?.())),_0x30bf25['length']&&(_0x4b7845['markMultiRangeDeletion'](_0x30bf25,'tablePaste',{'tablePasteChainId':_0x1c6f94,'skipNestingCheck':!0x0}),_0x30bf25['forEach'](_0x3dff41=>_0x3dff41['detach']?.()));const _0x4b8304=_0x4b7845['markMultiRangeBlockFormat'](_0x1a5ce9['map'](({element:_0x5833f0})=>_0x5833f0),{'formatGroupId':_0x147536()},[],'tablePasteCell',{'tablePasteChainId':_0x1c6f94});if(_0x4b8304){const _0x26133b=_0x4b8304['getMarkers'](),_0x2d4047=[];for(const {element:_0x28f981,attributes:_0x4610be}of _0x1a5ce9){if(!_0x4610be)continue;const _0x5893d6=_0x482315['model']['createRangeOn'](_0x28f981),_0x2836f6=_0x26133b['find'](_0x424e78=>_0x424e78['getRange']()['isEqual'](_0x5893d6));_0x2836f6&&_0x2d4047['push']([_0x2836f6['name'],_0x4610be]);}_0x2d4047['length']&&_0x4b8304['setAttribute']('markerAttributes',Object['fromEntries'](_0x2d4047));}_0x4a1783=null;}));},{'priority':_0x359a13['high']+0xa}),_0x1df8d3['on']('contentInsertion',()=>{_0x288cac=!0x1;},{'priority':'lowest'}),_0x482315['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3631bc,_0x425a07)=>{const [_0x263c9b,_0x155c79,,_0x1e7e6d]=_0x425a07;if(!_0x4a1783)return;_0x3631bc['stop']();const _0x122ba0=_0x263c9b['cell'],_0x14bb31=_0x155c79,_0x158a98=De(_0x122ba0),_0x2ba8c1=De(_0x14bb31);_0x3631bc['return']=_0x122ba0;let _0x2387b5=null,_0x2e49ff=null;if(_0x2ba8c1||_0x158a98){if(_0x158a98&&!_0x2ba8c1){_0x1e7e6d['remove'](_0x122ba0['getChild'](0x0));for(const _0x467aa0 of Array['from'](_0x14bb31['getChildren']()))_0x1e7e6d['insert'](_0x467aa0,_0x122ba0,'end');const _0x2f4883=_0x4a1783['rowInsertionIndexes']['includes'](_0x263c9b['row']),_0x4c3a66=_0x4a1783['columnInsertionIndexes']['includes'](_0x263c9b['column']);_0x2f4883||_0x4c3a66||(_0x2387b5=_0x3a5e87['fromRange'](_0x1e7e6d['createRangeIn'](_0x122ba0)));}else _0x2ba8c1&&!_0x158a98&&(_0x2e49ff=_0x1e7e6d['createRangeIn'](_0x122ba0));}else{const _0x3025be=_0x1e7e6d['createElement']('tableCellSuggestion'),_0x2db82c=_0x1e7e6d['createElement']('tableCellSuggestion');_0x1e7e6d['wrap'](_0x1e7e6d['createRangeIn'](_0x122ba0),_0x2db82c),_0x1e7e6d['insert'](_0x3025be,_0x122ba0,0x0);for(const _0x25a504 of Array['from'](_0x14bb31['getChildren']()))_0x1e7e6d['insert'](_0x25a504,_0x3025be,'end');_0x2387b5=_0x3a5e87['fromRange'](_0x1e7e6d['createRangeOn'](_0x3025be)),_0x2e49ff=_0x3a5e87['fromRange'](_0x1e7e6d['createRangeOn'](_0x2db82c));}const _0x191292=Array['from'](_0x14bb31['getAttributes']())['filter'](([_0x338087])=>Oe['includes'](_0x338087));_0x4a1783['cells']['push']({'element':_0x122ba0,'attributes':_0x191292['length']?Object['fromEntries'](_0x191292):null}),_0x2387b5&&_0x4a1783['insertionRanges']['push'](_0x2387b5),_0x2e49ff&&_0x4a1783['deletionRanges']['push'](_0x2e49ff);},{'priority':'high'}),_0x48540a['on']('insertColumns',(_0x4975a5,_0x364fb4)=>{const [_0x4c790c,_0x2a9714={}]=_0x364fb4;if(!_0x4a1783)return;const _0x507b5d=_0x2a9714['at']||0x0,_0x228103=_0x2a9714['columns']||0x1;_0x4a1783['columnInsertionIndexes']=new Array(_0x228103)['fill'](_0x507b5d)['map']((_0x83bbd5,_0x2353ed)=>_0x83bbd5+_0x2353ed);for(const {cell:_0x5e069e}of _0x48540a['createTableWalker'](_0x4c790c,{'startColumn':_0x507b5d,'endColumn':_0x507b5d+_0x228103-0x1}))_0x4a1783['columnInsertionRanges']['push'](_0x482315['model']['createRangeOn'](_0x5e069e));},{'priority':'low'}),_0x48540a['on']('insertRows',(_0xc2e3f8,_0x13a7b1)=>{const [_0x376d6c,_0x2c16db={}]=_0x13a7b1;if(!_0x4a1783)return;const _0x277346=_0x2c16db['at']||0x0,_0x445e80=_0x2c16db['rows']||0x1;_0x4a1783['rowInsertionIndexes']=new Array(_0x445e80)['fill'](_0x277346)['map']((_0x5304ec,_0x590a9f)=>_0x5304ec+_0x590a9f);for(const {cell:_0x165aef}of _0x48540a['createTableWalker'](_0x376d6c,{'startRow':_0x277346,'endRow':_0x277346+_0x445e80-0x1}))_0x4a1783['rowInsertionRanges']['push'](_0x482315['model']['createRangeOn'](_0x165aef));},{'priority':'low'}),_0x4b7845['descriptionFactory']['registerDescriptionCallback'](_0x3b6ea4=>{if(_0x3b6ea4['subType']&&_0x3b6ea4['subType']['startsWith']('tablePaste'))return _0x3b6ea4['previous']?{}:{'type':'insertion','content':c(_0x482315['locale'],'*Replace\x20table\x20cells*')};});const _0x2d1b10=()=>!0x1;for(const _0x53d305 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4b7845['_suggestionFactory']['registerCustomCallback']('insertion',_0x53d305,'join',_0x2d1b10),_0x4b7845['_suggestionFactory']['registerCustomCallback']('deletion',_0x53d305,'join',_0x2d1b10),_0x4b7845['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53d305,'join',_0x2d1b10);_0x4b7845['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2d1b10),_0x4b7845['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4e5ead,_0x23103c,_0x434dd4)=>{const _0x464960=_0x4e5ead['map'](_0x32eb01=>_0x32eb01['getContainedElement']())['filter'](_0x5e3f08=>_0x5e3f08),_0x10f492=new Map(_0x464960['map'](_0x4ee15e=>[_0x4ee15e,null]));if(_0x4a1783){for(const {element:_0x4da365,attributes:_0x423135}of _0x4a1783['cells'])_0x423135&&_0x10f492['set'](_0x4da365,_0x423135);}else{if(_0x434dd4&&_0x434dd4['markerAttributes'])for(const [_0x56a5ba,_0x1fedcd]of Object['entries'](_0x434dd4['markerAttributes'])){const _0x570efe=_0x482315['model']['markers']['get'](_0x56a5ba),_0x517013=_0x570efe?_0x570efe['getRange']()['getContainedElement']():null;_0x517013&&_0x10f492['set'](_0x517013,_0x1fedcd);}}_0x482315['model']['change'](_0x4fb462=>{for(const [_0x127890,_0x185169]of _0x10f492)_0x4fb462['setAttributes']({...Ue,..._0x185169},_0x127890);});});const _0x3e7ea8=(_0x20fb9e,_0x124048)=>{_0x4b7845['_suggestionFactory']['registerCustomCallback'](_0x20fb9e,'tablePaste',_0x124048,(_0x35c77b,_0x56803f,_0x3f32ca)=>{_0x482315['model']['change'](_0x44d2c1=>{const _0x4bf245=[];for(const _0x208280 of _0x35c77b){const _0xbbe588=_0x208280['start']['nodeAfter'];_0xbbe588['is']('element','tableCellSuggestion')&&_0x4bf245['push'](_0xbbe588);}_0x4b7845['_suggestionFactory']['getSuggestionCallback'](_0x20fb9e,null,_0x124048)(_0x35c77b,_0x56803f,_0x3f32ca);for(const _0x4366fa of _0x4bf245)'$graveyard'!=_0x4366fa['root']['rootName']&&_0x44d2c1['unwrap'](_0x4366fa);});});};_0x3e7ea8('insertion','accept'),_0x3e7ea8('insertion','discard'),_0x3e7ea8('deletion','accept'),_0x3e7ea8('deletion','discard'),_0x4b7845['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x28ad65=>{const _0x259f3b=_0x28ad65['map'](_0x3da087=>_0x3da087['getContainedElement']()),_0x3156c5=_0x259f3b[0x0]['findAncestor']('table'),{minRow:_0x26020a,maxRow:_0x408add}=_0x22ee83['_getCoordsForCells'](_0x259f3b);_0x48540a['removeRows'](_0x3156c5,{'at':_0x26020a,'rows':_0x408add-_0x26020a+0x1});}),_0x4b7845['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4fac39=>{const _0x4ba7fc=_0x4fac39['map'](_0x43bfef=>_0x43bfef['getContainedElement']()),_0x147018=_0x4ba7fc[0x0]['findAncestor']('table'),{minColumn:_0xaa3fbd,maxColumn:_0x595f5c}=_0x22ee83['_getCoordsForCells'](_0x4ba7fc);_0x48540a['removeColumns'](_0x147018,{'at':_0xaa3fbd,'columns':_0x595f5c-_0xaa3fbd+0x1});});const _0x4244ef=(_0x17ba97,_0x54ec65)=>{if(!_0x54ec65['subType']||!_0x54ec65['subType']['startsWith']('tablePaste'))return;const _0xd6ff20=_0x54ec65['attributes']['tablePasteChainId'],_0x27ce05=_0x4b7845['getSuggestions']()['filter'](_0x4a6eea=>_0x4a6eea['isInContent']&&_0x4a6eea['attributes']&&_0x4a6eea['attributes']['tablePasteChainId']==_0xd6ff20);_0x27ce05['length']&&_0x54ec65['getAllAdjacentSuggestions']()['length']!=_0x27ce05['length']&&_0x27ce05['reduce']((_0x45ef64,_0x5184ac)=>(_0x45ef64['next']=_0x5184ac,_0x5184ac['previous']=_0x45ef64,_0x5184ac));};function _0x44c5b1(_0x11e603,_0x552794=!0x0){const {id:_0x36360a,authorId:_0x3df594}=_0x4b7845['_splitMarkerName'](_0x11e603['markerName']),_0x3bc4cb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xb426c=_0x4b7845['activeMarkers']['includes'](_0x11e603['markerName']);return _0xb426c&&_0x3bc4cb['push']('ck-suggestion-marker--active'),{'classes':_0x3bc4cb,'attributes':{'data-suggestion':_0x36360a,'data-author-id':_0x3df594},'priority':_0xb426c&&_0x552794?0xbc2:0xbb8};}_0x4b7845['on']('suggestionLoaded',_0x4244ef,{'priority':'high'}),_0x4b7845['on']('suggestionUnloaded',_0x4244ef,{'priority':'high'}),_0x482315['model']['document']['registerPostFixer'](()=>{let _0x44c7ba=!0x1;const _0x56bc52=Array['from'](_0x482315['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5dd80c,data:_0x72037}of _0x56bc52){const {group:_0x2689b2,type:_0xb22cc,id:_0x37874b}=_0x4b7845['_splitMarkerName'](_0x5dd80c);if('suggestion'!=_0x2689b2||'deletion'!=_0xb22cc||_0x72037['oldRange'])continue;if(!_0x4b7845['hasSuggestion'](_0x37874b))continue;const _0x39ffef=_0x4b7845['getSuggestion'](_0x37874b)['getRanges'](),_0x279827=_0x482315['plugins']['get']('Users')['me'];for(const _0x442f44 of _0x4b7845['getSuggestions']()){if(!_0x442f44['isInContent']||_0x442f44['author']!=_0x279827)continue;if('formatBlock'!=_0x442f44['type']||'tablePasteCell'!=_0x442f44['subType'])continue;if(_0x442f44['getRanges']()['every'](_0xb0449f=>_0x39ffef['some'](_0x2bb75c=>_0x2bb75c['containsRange'](_0xb0449f,!0x0)))){for(const _0x15c7a8 of _0x442f44['getAllAdjacentSuggestions']())_0x15c7a8['isInContent']&&(_0x15c7a8['discard'](),_0x44c7ba=!0x0);}}}return _0x44c7ba;}),_0x482315['model']['document']['registerPostFixer'](_0x3b976b=>{const _0x2b3876=_0x482315['commands']['get']('redo');if(!_0x2b3876||!_0x2b3876['_createdBatches']['has'](_0x3b976b['batch']))return!0x1;let _0x475018=!0x1;const _0x261858=_0x482315['plugins']['get']('Users')['me'],_0xa4cd5b=_0x482315['model']['document']['differ']['getChanges'](),_0x7f9876=Array['from'](_0x482315['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5e865e,data:_0x49a209})=>{const {group:_0x4881ef,subType:_0x5f55fa,authorId:_0x3faabe}=_0x4b7845['_splitMarkerName'](_0x5e865e);return'suggestion'==_0x4881ef&&'tablePaste'==_0x5f55fa&&_0x3faabe==_0x261858['id']&&!_0x49a209['oldRange'];});for(const _0x51d82b of _0xa4cd5b){if('insert'!=_0x51d82b['type']||'tableCellSuggestion'!=_0x51d82b['name']||0x1!=_0x51d82b['length'])continue;const _0x5ec61e=_0x3b976b['createRange'](_0x51d82b['position'],_0x51d82b['position']['getShiftedBy'](0x1));if(!_0x7f9876['find'](({data:_0x317001})=>_0x317001['newRange']['isEqual'](_0x5ec61e))){for(const {name:_0x2b3e42,data:_0x1d6175}of _0x7f9876)if(_0x5ec61e['containsRange'](_0x1d6175['newRange'])){_0x3b976b['updateMarker'](_0x2b3e42,{'range':_0x5ec61e}),_0x475018=!0x0;break;}}}return _0x475018;}),_0x482315['model']['document']['registerPostFixer'](_0x18ae18=>{let _0x2cc0c6=!0x1;const _0x48b6d8=_0x482315['plugins']['get']('Users')['me'],_0xbf9754=_0x4b7845['getSuggestions']()['filter'](_0x1c2ab0=>_0x1c2ab0['isInContent']&&_0x1c2ab0['author']==_0x48b6d8),_0x13fd81=new Set(),_0x8c564b=new Set();for(const _0x185b4e of _0xbf9754)if('tablePaste'==_0x185b4e['subType'])for(const _0x47c615 of _0x185b4e['getMarkers']()){const _0x49d5d4=_0x47c615['getRange']()['getContainedElement']();if(_0x49d5d4){if(_0x49d5d4['is']('element','tableCellSuggestion')&&De(_0x49d5d4)){_0x185b4e['removeMarker'](_0x47c615['name']),_0x13fd81['add'](_0x49d5d4),_0x2cc0c6=!0x0;const _0x3b391a=_0x49d5d4['nextSibling'],_0x2bc5e5=_0x49d5d4['previousSibling'],_0x9517db=_0x3b391a&&_0x3b391a['is']('element','tableCellSuggestion'),_0x3cf6c9=_0x2bc5e5&&_0x2bc5e5['is']('element','tableCellSuggestion');_0x9517db&&!_0x13fd81['has'](_0x3b391a)&&_0x8c564b['add'](_0x3b391a),_0x3cf6c9&&!_0x13fd81['has'](_0x2bc5e5)&&_0x8c564b['add'](_0x2bc5e5);}else _0x49d5d4['is']('element','paragraph')&&_0x49d5d4['isEmpty']&&(_0x185b4e['removeMarker'](_0x47c615['name']),_0x2cc0c6=!0x0);}}else{if('tablePasteCell'==_0x185b4e['subType']){if(!_0x185b4e['attributes']||!_0x185b4e['attributes']['tablePasteChainId'])continue;const _0x371a45=_0x185b4e['attributes']['markerAttributes'];if(_0x371a45&&Object['keys'](_0x371a45)['length'])continue;const _0x3c7085=_0x185b4e['attributes']['tablePasteChainId'];let _0x39f39d=!0x0,_0x27a8d2=!0x0;for(const _0x12edce of _0xbf9754)if(_0x12edce['subType']&&_0x12edce['subType']['startsWith']('tablePaste')){if(!_0x12edce['attributes']['tablePasteChainId']){_0x27a8d2=!0x1;break;}if(_0x12edce['id']!=_0x185b4e['id']&&_0x12edce['attributes']['tablePasteChainId']==_0x3c7085){_0x39f39d=!0x1;break;}}_0x27a8d2&&_0x39f39d&&(_0x185b4e['removeMarkers'](),_0x2cc0c6=!0x0);}}for(const _0x2e13c of _0x13fd81)_0x18ae18['remove'](_0x2e13c);for(const _0x457320 of _0x8c564b)_0x18ae18['unwrap'](_0x457320);return _0x2cc0c6;}),_0x482315['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x445338=>_0x44c5b1(_0x445338),'converterPriority':'high'}),_0x482315['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x36d93e,_0x218b00)=>_0x218b00['options']['showSuggestionHighlights']?_0x44c5b1(_0x36d93e,!0x1):null,'converterPriority':'high'});const _0x5a594b=_0x482315['editing']['view'];this['listenTo'](_0x5a594b['document'],'clipboardOutput',(_0x4f5ab8,_0x8e1bf7)=>{const _0x369c84=[];for(const _0x592bba of _0x5a594b['createRangeIn'](_0x8e1bf7['content'])['getItems']())_0x592bba['is']('element','suggestion-td')&&_0x369c84['push'](_0x592bba);_0x5a594b['change'](_0x52c30c=>{for(const _0x1175b6 of _0x369c84)_0x52c30c['move'](_0x52c30c['createRangeIn'](_0x1175b6),_0x52c30c['createPositionBefore'](_0x1175b6)),_0x52c30c['remove'](_0x1175b6);});});}}function De(_0x1bffc4){if(_0x1bffc4['isEmpty'])return!0x0;const _0x4d859a=_0x1bffc4['getChild'](0x0);return _0x4d859a['is']('element','paragraph')&&_0x4d859a['isEmpty'];}function He(_0x174139,_0x515151={},_0x4f9ff6){for(const {isAnchor:_0x4afadb,cellHeight:_0x4d045f,cellWidth:_0x5394e3}of _0x4f9ff6['createTableWalker'](_0x174139,{'includeAllSlots':!0x0,..._0x515151}))if(!_0x4afadb||0x1!=_0x4d045f||0x1!=_0x5394e3)return!0x1;return!0x0;}class Bt extends _0x577ae7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x44e2e8=this['editor']['plugins']['get']('TrackChangesEditing');_0x44e2e8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x44e2e8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x44e2e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44e2e8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x44e2e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x44e2e8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3f5745,_0x4a75ea){const _0x6e7c3d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26411e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x50b92e=_0x4a75ea['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5ac6d3=_0x26411e['getColumnGroupElement'](_0x50b92e);let _0x5b104c=_0x5ac6d3?_0x26411e['getTableColumnsWidths'](_0x5ac6d3):null,_0xabc62=_0x50b92e['getAttribute']('tableWidth')||null;const _0x41f834=_0x4a75ea['tableWidth']||_0xabc62,_0x42f5ea=_0x4a75ea['columnWidths']||_0x5b104c,_0x3a4623=this['editor']['plugins']['get']('Users')['me'];for(const _0x9450f4 of _0x6e7c3d['getSuggestions']()){const _0x521f87=_0x9450f4['getContainedElement']();if('resizeTable'===_0x9450f4['subType']&&_0x521f87===_0x50b92e){_0x9450f4['author']!==_0x3a4623&&_0x9450f4['discard']();const _0x1a1d7c=_0x9450f4['data']['commandParams'];_0xabc62=_0x1a1d7c[0x0]['tableWidth'],_0x5b104c=_0x1a1d7c[0x0]['columnWidths'];break;}}_0x3f5745({'table':_0x50b92e,'tableWidth':_0x41f834,'columnWidths':_0x42f5ea}),_0x6e7c3d['markBlockFormat'](_0x50b92e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xabc62,'columnWidths':_0x5b104c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x46f11f){if('formatBlock'!=_0x46f11f['type']&&'formatInline'!=_0x46f11f['type'])return;const {data:_0x2e6c12}=_0x46f11f;if(_0x2e6c12&&'resizeTable'===_0x2e6c12['formatGroupId']){const _0x2a9281='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x2a9281)};}}}class xt extends _0x577ae7{['afterInit'](){const _0x5cff8f=this['editor'];_0x5cff8f['plugins']['has']('Template')&&_0x5cff8f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x577ae7{['afterInit'](){const _0x2aa0ac=this['editor'];if(!_0x2aa0ac['commands']['get']('insertTableOfContents'))return;_0x2aa0ac['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x49b723=_0x2aa0ac['plugins']['get']('TrackChangesEditing'),_0x2ffa7d=_0x2aa0ac['locale'];_0x49b723['descriptionFactory']['registerElementLabel']('tableOfContents',_0x342409=>c(_0x2ffa7d,'ELEMENT_TABLE_OF_CONTENTS',_0x342409));}}class Rt extends _0x577ae7{['afterInit'](){const _0x5d02c8=this['editor'];if(!_0x5d02c8['plugins']['has']('Title'))return;const _0x4327e7=_0x5d02c8['plugins']['get']('TrackChangesEditing');_0x4327e7['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x5d02c8['locale'],'ELEMENT_TITLE')),_0x5d02c8['model']['document']['registerPostFixer'](_0xea1760=>{let _0x204729=!0x1;const _0x33fe4e=Array['from'](_0x5d02c8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x238675,data:_0x34afc0}of _0x33fe4e){const {group:_0x33ae50}=_0x4327e7['_splitMarkerName'](_0x238675);if('suggestion'!==_0x33ae50||!_0x34afc0['newRange'])continue;const _0x120f65=_0x34afc0['newRange'],_0x1fe050=_0x120f65['end']['nodeBefore'];if(!_0x1fe050||!_0x1fe050['is']('element','title-content'))continue;if(!_0x120f65['start']['isTouching'](_0x120f65['end']))continue;const _0xc7d45e=_0x5d02c8['model']['schema']['getNearestSelectionRange'](_0x120f65['end'],'forward');if(_0xc7d45e&&_0xc7d45e['isCollapsed']){const _0x3d8da5=_0xea1760['createRange'](_0x120f65['start'],_0xc7d45e['start']);_0x3d8da5['isEqual'](_0x120f65)||(_0xea1760['updateMarker'](_0x238675,{'range':_0x3d8da5}),_0x204729=!0x0);}_0x204729||(_0xea1760['removeMarker'](_0x238675),_0x204729=!0x0);}return _0x204729;});}}class Tt extends _0x577ae7{['afterInit'](){const _0x2db689=this['editor'],_0xcc23ce=_0x2db689['plugins']['get']('TrackChangesEditing');_0x2db689['plugins']['has']('Uploadcare')&&(_0xcc23ce['enableCommand']('uploadcare'),_0x2db689['plugins']['has']('UploadcareImageEdit')&&(_0xcc23ce['enableCommand']('uploadcareImageEdit'),_0xcc23ce['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xcc23ce['registerBlockAttribute']('uploadcareImageId'),_0xcc23ce['descriptionFactory']['registerDescriptionCallback'](_0x1d0fe1=>{if('attribute'!=_0x1d0fe1['type'])return;const {data:_0x4dd513}=_0x1d0fe1;return _0x4dd513&&'uploadcareImageId'==_0x4dd513['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x577ae7{['afterInit'](){const _0x4dcacf=this['editor'],_0xcb3e45=_0x4dcacf['plugins']['get']('TrackChangesEditing');_0x4dcacf['plugins']['has']('UndoEditing')&&(_0xcb3e45['enableCommand']('undo'),_0xcb3e45['enableCommand']('redo'));}}class Ut extends _0x577ae7{static get['requires'](){return[Ct];}['afterInit'](){const _0xbf0edf=this['editor'];if(!_0xbf0edf['plugins']['has']('TableCaptionEditing'))return;_0xbf0edf['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x577ae7{['tableProperties'];['tableCellProperties'];constructor(_0x2b9df7){super(_0x2b9df7),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 _0x100a4b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x29da46 of this['tableProperties'])_0x100a4b['enableCommand'](_0x29da46,(_0x417037,_0x19182c)=>{const _0x4b1de6=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x29da46,[_0x4b1de6],this['tableProperties'],'tableProperties',_0x417037,_0x19182c);});_0x100a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x100a4b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x100a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x651dcc,_0x6585d2)=>this['handleDiscardAction'](this['tableProperties'],_0x651dcc,_0x6585d2)),_0x100a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x54644d of this['tableCellProperties'])_0x100a4b['enableCommand'](_0x54644d,(_0x75eea,_0x2dc508)=>{const _0x240419=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x54644d,_0x240419,this['tableCellProperties'],'tableCellProperties',_0x75eea,_0x2dc508);});_0x100a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x100a4b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x100a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4f56c3,_0x2e27aa)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4f56c3,_0x2e27aa)),_0x100a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x100a4b['descriptionFactory']['registerDescriptionCallback'](_0x2cf8d1=>this['handleSuggestionDescription'](_0x2cf8d1));}['_handlePropertyChange'](_0x425a08,_0xace2f,_0x2f167b,_0x1e591c,_0x1f6705,_0x6e5ad9){const _0x2914cc=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x6e5ad9['batch'],()=>{for(const _0x53ee39 of _0xace2f){if(this['_getSuggestion'](_0x53ee39,_0x1e591c))_0x1f6705(_0x6e5ad9);else{const _0xd8f756={};for(const _0x46fc76 of _0x2f167b){const _0x7c9114=_0x53ee39['getAttribute'](_0x46fc76);void 0x0!==_0x7c9114&&(_0xd8f756[_0x46fc76]=_0x7c9114);}_0x1f6705(_0x6e5ad9),_0x2914cc['markBlockFormat'](_0x53ee39,{'commandParams':[_0xd8f756]},[],_0x1e591c);}}});}['handleDiscardAction'](_0x3dc3f5,_0x2b0ffd,_0x243439){const _0x5afea0=_0x2b0ffd[0x0]['start']['nodeAfter'],_0x43f4b6=_0x243439['commandParams'][0x0];this['editor']['model']['change'](_0x16eea1=>{for(const _0x43385e of _0x3dc3f5)void 0x0!==_0x43f4b6[_0x43385e]?_0x16eea1['setAttribute'](_0x43385e,_0x43f4b6[_0x43385e],_0x5afea0):_0x16eea1['removeAttribute'](_0x43385e,_0x5afea0);});}['handleSuggestionDescription'](_0x31c856){if(_0x31c856['data'])switch(_0x31c856['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'](_0x966b90,_0x1ba077){const _0x25c3b0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x44f175 of _0x25c3b0['getSuggestions']({'skipNotAttached':!0x0})){const _0x2f584a=_0x44f175['getContainedElement']();if(_0x44f175['subType']===_0x1ba077&&_0x2f584a===_0x966b90)return _0x44f175;}return null;}}const u='$elementName';class p extends _0x577ae7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x671950,_0x5b2277,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b03d1){super(_0x5b03d1),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x574459,_0x3ce543,_0x242d77,_0x13c2d6)=>{this['_model']['change'](()=>{for(const _0x22dec6 of[..._0x13c2d6,..._0x242d77])this['_model']['markers']['has'](_0x22dec6)&&_0x5b03d1['editing']['reconvertMarker'](_0x22dec6);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5b03d1['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(),_0x5b03d1['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5b03d1['config']['get']('trackChanges.trackFormatChanges'),_0x5b03d1['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5b03d1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5b03d1,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5e138f=this['editor'],_0x288406=(_0x168a50,_0x4de13a)=>{if('attribute'!=_0x168a50)return'ck-suggestion-marker-'+_0x168a50;const _0xe871c4=_0x4de13a['split']('|')[0x0];return this['_isBlockAttribute'](_0xe871c4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5e138f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1240f8=>{const {id:_0x4363e2,authorId:_0x34cc61,type:_0x496a3d,subType:_0x34672c}=this['_splitMarkerName'](_0x1240f8['markerName']),_0x1b306c=['ck-suggestion-marker',_0x288406(_0x496a3d,_0x34672c)];let _0x47f62b=0xbb8;return this['activeMarkers']['includes'](_0x1240f8['markerName'])&&(_0x1b306c['push']('ck-suggestion-marker--active'),_0x47f62b=0xbc2),'deletion'==_0x496a3d&&(_0x47f62b+=0x5),{'classes':_0x1b306c,'attributes':{'data-suggestion':_0x4363e2,'data-author-id':_0x34cc61},'priority':_0x47f62b};}}),_0x5e138f['conversion']['for']('dataDowncast')['add'](_0x46a0f9=>{_0x46a0f9['on']('addMarker:suggestion',(_0x10556e,_0x466085,_0x279d7c)=>{if(!_0x279d7c['options']['showSuggestionHighlights'])return;const _0x3cd98c=_0x466085['item'];if(!_0x3cd98c)return;const _0x520748=_0x279d7c['mapper']['toViewElement'](_0x3cd98c);_0x5e138f['model']['schema']['isObject'](_0x3cd98c)&&_0x520748&&!_0x520748['getCustomProperty']('widget')&&_0x520748['is']('containerElement')&&_0x185ea5(_0x520748,_0x279d7c['writer']);},{'priority':'high'});}),_0x5e138f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5c6146,_0x5b599e)=>{if(!_0x5b599e['options']['showSuggestionHighlights'])return null;const {id:_0x5b6fdf,authorId:_0x31d5e0,type:_0x1f4112,subType:_0x1eed32}=this['_splitMarkerName'](_0x5c6146['markerName']);return{'classes':['ck-suggestion-marker',_0x288406(_0x1f4112,_0x1eed32)],'priority':0xbb8,'attributes':{'data-suggestion':_0x5b6fdf,'data-author-id':_0x31d5e0}};}});const _0x14de9f=({showActiveMarkers:_0x37cb31=!0x0,isAttributeSuggestion:_0x10716d=!0x1}={})=>(_0x32d08f,_0x1c95e5,_0x4d337e)=>{if(!_0x1c95e5['item'])return;const {id:_0x1365dd,authorId:_0x4779ad}=this['_splitMarkerName'](_0x1c95e5['markerName']);if(_0x10716d){const _0x38e283=this['_suggestions']['get'](_0x1365dd),_0x1ef158=this['_getAttributeKey'](_0x38e283);if(!this['_isBlockAttribute'](_0x1ef158))return;}if(_0x1c95e5['item']['is']('selection'))return void _0x4d337e['consumable']['consume'](_0x1c95e5['item'],_0x32d08f['name']);const _0x3a4c8e=_0x4d337e['mapper']['toViewElement'](_0x1c95e5['item']);if(_0x1c95e5['item']['is']('element')&&_0x5e138f['model']['schema']['isBlock'](_0x1c95e5['item'])&&!_0x3a4c8e['getCustomProperty']('addHighlight')){_0x4d337e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3a4c8e),_0x4d337e['writer']['setAttribute']('data-suggestion',_0x1365dd,_0x3a4c8e),_0x4d337e['writer']['setAttribute']('data-author-id',_0x4779ad,_0x3a4c8e),_0x4d337e['mapper']['bindElementToMarker'](_0x3a4c8e,_0x1c95e5['markerName']),_0x37cb31&&(this['activeMarkers']['includes'](_0x1c95e5['markerName'])?_0x4d337e['writer']['addClass']('ck-suggestion-marker--active',_0x3a4c8e):_0x4d337e['writer']['removeClass']('ck-suggestion-marker--active',_0x3a4c8e));for(const _0x2212b0 of _0x5e138f['model']['createRangeIn'](_0x1c95e5['item'])['getItems']())_0x4d337e['consumable']['consume'](_0x2212b0,_0x32d08f['name']);_0x4d337e['consumable']['consume'](_0x1c95e5['item'],_0x32d08f['name']);}};_0x5e138f['conversion']['for']('dataDowncast')['add'](_0x1e474e=>{_0x1e474e['on']('addMarker:suggestion:formatBlock',(_0x292d39,_0x1a4df9,_0x4f7050)=>{_0x4f7050['options']['showSuggestionHighlights']&&_0x14de9f({'showActiveMarkers':!0x1})(_0x292d39,_0x1a4df9,_0x4f7050);},{'priority':'highest'});}),_0x5e138f['conversion']['for']('dataDowncast')['add'](_0x108e17=>{_0x108e17['on']('addMarker:suggestion:attribute',(_0x319747,_0x58aefd,_0x454d28)=>{_0x454d28['options']['showSuggestionHighlights']&&_0x14de9f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x319747,_0x58aefd,_0x454d28);},{'priority':'highest'});}),_0x5e138f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x13bc4a,_0x354863)=>{if(_0x354863['options']['showSuggestionHighlights']){const {id:_0x5a4563,authorId:_0x2501f5}=this['_splitMarkerName'](_0x13bc4a);return _0x13bc4a['includes'](':split')||_0x13bc4a['includes'](':merge')?{'group':'suggestion','name':_0x13bc4a['substr'](0xb),'attributes':{'data-suggestion':_0x5a4563,'data-author-id':_0x2501f5}}:null;}return{'group':'suggestion','name':_0x13bc4a['substr'](0xb)};}}),_0x5e138f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4b367f,{writer:_0x1cdbc1})=>{let _0x43ce91='suggestion:'+_0x4b367f['getAttribute']('suggestion-type')+':'+_0x4b367f['getAttribute']('id');return _0x4b367f['getAttribute']('marker-count')&&(_0x43ce91+=':'+_0x4b367f['getAttribute']('marker-count')),_0x1cdbc1['createElement']('$marker',{'data-name':_0x43ce91});}}),_0x5e138f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5e138f['conversion']['for']('editingDowncast')['add'](_0x3061d1=>{_0x3061d1['on']('addMarker:suggestion:formatBlock',_0x14de9f(),{'priority':'high'});}),_0x5e138f['conversion']['for']('editingDowncast')['add'](_0x374afe=>{_0x374afe['on']('addMarker:suggestion:attribute',_0x14de9f({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5e138f['conversion']['for']('editingDowncast')['add'](_0x5e3a97=>{_0x5e3a97['on']('removeMarker:suggestion:formatBlock',(_0xf1caac,_0x52a823,_0x204e44)=>{const _0x1d446f=_0x204e44['mapper']['markerNameToElements'](_0x52a823['markerName']);if(_0x1d446f){for(const _0x29b015 of _0x1d446f)_0x29b015['getCustomProperty']('addHighlight')||(_0x204e44['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x29b015),_0x204e44['writer']['removeAttribute']('data-suggestion',_0x29b015),_0x204e44['writer']['removeAttribute']('data-author-id',_0x29b015),_0x204e44['mapper']['unbindElementFromMarkerName'](_0x29b015,_0x52a823['markerName']));}},{'priority':'high'});}),_0x5e138f['conversion']['for']('editingDowncast')['add'](_0x131a3b=>{_0x131a3b['on']('removeMarker:suggestion:attribute',(_0x18210f,_0x512445,_0x3db629)=>{const _0x43a3f9=_0x3db629['mapper']['markerNameToElements'](_0x512445['markerName']);if(!_0x43a3f9)return;const {id:_0x525e06}=this['_splitMarkerName'](_0x512445['markerName']),_0x5f031d=this['_suggestions']['get'](_0x525e06),_0x6b5fe1=this['_getAttributeKey'](_0x5f031d);if(this['_isBlockAttribute'](_0x6b5fe1)){for(const _0x9ba0d4 of _0x43a3f9)_0x9ba0d4['getCustomProperty']('addHighlight')||(_0x3db629['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x9ba0d4),_0x3db629['writer']['removeAttribute']('data-suggestion',_0x9ba0d4),_0x3db629['writer']['removeAttribute']('data-author-id',_0x9ba0d4),_0x3db629['mapper']['unbindElementFromMarkerName'](_0x9ba0d4,_0x512445['markerName']));}},{'priority':'high'});}),_0x5e138f['model']['document']['registerPostFixer'](_0x14cfb2=>{let _0x5d0c30=!0x1;const _0x2b2326=Array['from'](_0x5e138f['model']['document']['differ']['getChangedMarkers']()),_0x2714dc=new Set();for(const {name:_0x3422e6,data:_0x2eebdd}of _0x2b2326){const {group:_0x565153,type:_0x453042,subType:_0x3e631a,id:_0x2e84ef}=this['_splitMarkerName'](_0x3422e6);if('suggestion'!==_0x565153)continue;const _0x4f62c6=this['_suggestions']['get'](_0x2e84ef);if(null!=_0x2eebdd['newRange']){'formatInline'==_0x453042&&(_0x5d0c30=_0x5d0c30||Jt(_0x2eebdd['newRange'],_0x3422e6,_0x14cfb2,_0x5e138f['model']['schema']));const _0x2e79cd='attribute'==_0x453042&&this['_isBlockAttribute'](_0x3e631a['split']('|')[0x0]);if(_0x2eebdd['newRange']['isCollapsed']||'$graveyard'==_0x2eebdd['newRange']['root']['rootName']||'formatBlock'==_0x453042&&!Ht(_0x2eebdd['newRange'])||_0x2e79cd&&!Ht(_0x2eebdd['newRange'])||'deletion'==_0x453042&&!(!Lt(_0x24e32a=_0x2eebdd['newRange'])&&!function(_0x5e3662){return _0x5e3662['start']['parent']==_0x5e3662['end']['nodeBefore']&&_0x5e3662['start']['isAtEnd'];}(_0x24e32a)))_0x14cfb2['removeMarker'](_0x3422e6),_0x5d0c30=!0x0;else{if(!_0x4f62c6||!_0x4f62c6['isInContent'])continue;if(_0x2eebdd['newRange']&&_0x2eebdd['oldRange']&&_0x2eebdd['newRange']['isEqual'](_0x2eebdd['oldRange']))continue;_0x2714dc['add'](_0x4f62c6);}}}var _0x24e32a;return _0x2714dc['size']>0x0&&(_0x5d0c30=!!this['_joinWithAdjacentSuggestions'](_0x2714dc)||_0x5d0c30),_0x5d0c30;}),_0x5e138f['model']['document']['registerPostFixer'](_0x1aca30=>{let _0x34e122=!0x1;for(const _0x1abe54 of _0x5e138f['model']['document']['differ']['getChanges']())if('insert'==_0x1abe54['type'])for(const _0x2b7568 of this['_suggestions']['values']()){if(_0x2b7568['isMultiRange']||!_0x2b7568['isInContent'])continue;const _0x221baa='formatBlock'==_0x2b7568['type'],_0xb4aef8=this['_getAttributeKey'](_0x2b7568),_0xac3e00=_0xb4aef8&&this['_isBlockAttribute'](_0xb4aef8);if(!_0x221baa&&!_0xac3e00)continue;const _0x5a6ad7=_0x2b7568['getFirstRange']();if(_0x5a6ad7['start']['parent']!=_0x5a6ad7['end']['parent']&&!_0x5a6ad7['end']['isAtEnd']){const _0x76cd54=_0x5e138f['model']['createPositionAt'](_0x5a6ad7['start']['nodeAfter'],'end'),_0x3383e5=_0x5e138f['model']['createRange'](_0x5a6ad7['start'],_0x76cd54);_0x1aca30['updateMarker'](_0x2b7568['getFirstMarker'](),{'range':_0x3383e5}),_0x34e122=!0x0;}}return _0x34e122;}),_0x5e138f['model']['document']['registerPostFixer'](_0x14fad1=>this['_processAttributeChanges'](_0x14fad1)),_0x5e138f['model']['document']['registerPostFixer'](_0x147510=>!_0x147510['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x147510)),_0x5e138f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5e138f['model']['document']['on']('change:data',(_0x20f509,_0x44042a)=>{if(!_0x44042a['isLocal']||_0x44042a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xa53726=_0x5e138f['model']['document']['differ']['getChanges']();if(0x0==_0xa53726['length'])return;const _0x5b21e1=[],_0x3871fc=_0xa53726['filter'](_0x39676c=>'attribute'==_0x39676c['type']),_0x5491ce=_0xa53726['filter'](_0x2e6b6=>'insert'==_0x2e6b6['type']&&'$text'!=_0x2e6b6['name']);for(const _0x242aff of _0x3871fc)this['_isRegisteredAttribute'](_0x242aff['attributeKey'])&&_0x5b21e1['push']({'key':_0x242aff['attributeKey'],'newValue':_0x242aff['attributeNewValue'],'oldValue':_0x242aff['attributeOldValue'],'range':qt(_0x242aff['range'],_0x5e138f['model'])});for(const _0x212754 of _0x5491ce){if('rename'!=_0x212754['action']&&'refresh'!=_0x212754['action'])continue;const _0x1741bb=zt(_0x212754['position']['nodeAfter'],_0x5e138f['model']),_0x37b56e=_0x212754['before'];'rename'==_0x212754['action']&&_0x5b21e1['push']({'key':u,'newValue':_0x212754['name'],'oldValue':_0x37b56e['name'],'range':_0x1741bb});for(const [_0xa1df9f,_0x544cc6]of _0x37b56e['attributes']){if(!this['_isRegisteredAttribute'](_0xa1df9f))continue;const _0x19de02=_0x212754['attributes']['get'](_0xa1df9f);_0x544cc6!==_0x19de02&&_0x5b21e1['push']({'key':_0xa1df9f,'newValue':_0x19de02,'oldValue':_0x544cc6,'range':_0x1741bb});}for(const [_0x3efc7d,_0x7547fd]of _0x212754['attributes'])this['_isRegisteredAttribute'](_0x3efc7d)&&(_0x37b56e['attributes']['has'](_0x3efc7d)||_0x5b21e1['push']({'key':_0x3efc7d,'newValue':_0x7547fd,'oldValue':null,'range':_0x1741bb}));}0x0!=_0x5b21e1['length']&&_0x5e138f['model']['enqueueChange'](_0x44042a,_0x486860=>{const _0x2d7f24=_0x147536();for(const {range:_0x196255,key:_0x4f7637,oldValue:_0xf6e441,newValue:_0x199714}of _0x5b21e1)this['markAttributeChange'](_0x196255,_0x4f7637,_0xf6e441,_0x199714,{'groupId':_0x2d7f24});this['_reduceExistingSuggestions'](_0x486860,_0x5b21e1);});},{'priority':'lowest'}),_0x5e138f['model']['markers']['on']('update:suggestion',(_0x2bfded,_0xa52872,_0x3b8fea)=>{if(null==_0x3b8fea){const {id:_0x15be2c}=this['_splitMarkerName'](_0xa52872['name']),_0x431b85=this['_suggestions']['get'](_0x15be2c);_0x431b85&&_0x431b85['addMarkerName'](_0xa52872['name']);}}),_0x5e138f['model']['document']['on']('change:data',()=>{const _0x3dd294=Array['from'](_0x5e138f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x476cd7=>'suggestion'===this['_splitMarkerName'](_0x476cd7['name'])['group']);if(0x0===_0x3dd294['length'])return;_0x3dd294['sort']((_0x4ea16b,_0x33cdbe)=>{const _0x2d47cb=_0x4ea16b['data']['oldRange'],_0xf8a3be=_0x33cdbe['data']['oldRange'];return null===_0x2d47cb&&null===_0xf8a3be?0x0:null===_0x2d47cb&&null!==_0xf8a3be?-0x1:null!==_0x2d47cb&&null===_0xf8a3be?0x1:_0x2d47cb['start']['isBefore'](_0xf8a3be['start'])?-0x1:0x1;});const _0x441817=new Set(),_0x1b3d6d=new Set();for(const {name:_0x33c698,data:_0x4f40de}of _0x3dd294){const {id:_0x2f5f56}=this['_splitMarkerName'](_0x33c698);if(null===_0x4f40de['oldRange']){const _0x14ebb3=this['_handleNewSuggestionMarker'](_0x33c698);_0x1b3d6d['add'](_0x14ebb3);}else{const _0x46f77d=this['_suggestions']['get'](_0x2f5f56);null!==_0x4f40de['newRange']||_0x46f77d['isInContent']?(_0x441817['add'](_0x46f77d['head']),_0x1b3d6d['add'](_0x46f77d)):this['_removeSuggestion'](_0x46f77d);}}_0x1b3d6d['size']>0x0&&this['_refreshSuggestionsChain'](_0x1b3d6d);for(const _0x1b4b03 of _0x441817)this['fire']('suggestionChanged',_0x1b4b03);}),_0x5e138f['model']['on']('applyOperation',(_0x10d258,_0x6d558d)=>{const _0x48ab44=_0x6d558d[0x0];if(!this['_suggestions']['size'])return;if(!_0x48ab44['isDocumentOperation'])return;if(_0x48ab44['batch']['isUndo']||!_0x48ab44['batch']['isLocal'])return;let _0x2b07b6,_0x27d1fa;switch(_0x48ab44['type']){case'insert':_0x2b07b6=_0x5e138f['model']['createPositionAt'](_0x48ab44['position']),_0x27d1fa=_0x2b07b6['getShiftedBy'](_0x48ab44['howMany']);break;case'split':_0x2b07b6=_0x5e138f['model']['createPositionAt'](_0x48ab44['splitPosition']),_0x27d1fa=_0x5e138f['model']['createPositionAt'](_0x48ab44['moveTargetPosition']);break;case'move':_0x2b07b6=_0x5e138f['model']['createPositionAt'](_0x48ab44['targetPosition']),_0x27d1fa=_0x2b07b6['getShiftedBy'](_0x48ab44['howMany']);break;default:return;}const _0x9c981b=_0x5e138f['model']['createRange'](_0x2b07b6,_0x27d1fa);_0x5e138f['model']['change'](()=>{for(const {suggestion:_0x29806e,meta:_0x172cac}of this['_findSuggestions'](_0x9c981b)){if(_0x29806e['isMultiRange'])continue;if('formatInline'==_0x29806e['type'])continue;const _0x3a586d=this['_getAttributeKey'](_0x29806e);if(_0x3a586d&&this['_isBlockAttribute'](_0x3a586d)&&'split'!=_0x48ab44['type'])continue;const _0x5fc21d=_0x29806e['data']&&_0x29806e['data']['multipleBlocks'];('formatBlock'!=_0x29806e['type']||'split'==_0x48ab44['type']&&!_0x5fc21d)&&(_0x172cac['containsRangeInObject']||'insertion'==_0x29806e['type']&&_0x172cac['isOwn']||_0x29806e['getFirstRange']()['containsRange'](_0x9c981b)&&this['_breakSuggestionMarker'](_0x29806e,_0x2b07b6,_0x27d1fa));}});},{'priority':'lowest'}),_0x5e138f['model']['on']('deleteContent',(_0xa2badf,_0x3f0c52)=>{const _0x274ed9=_0x3f0c52[0x0],_0x1023b8=_0x3f0c52[0x1];if(_0x1023b8&&_0x1023b8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x274ed9['isCollapsed'])return;const _0x48116c=_0x5e138f['model']['schema'],{start:_0x279467,end:_0x218fb6}=_0x274ed9['getFirstRange'](),_0x46d6ef=_0x279467['nodeAfter']&&_0x48116c['isLimit'](_0x279467['nodeAfter'])?null:_0x48116c['getNearestSelectionRange'](_0x279467,'forward'),_0x26bbf2=_0x218fb6['nodeBefore']&&_0x48116c['isLimit'](_0x218fb6['nodeBefore'])?null:_0x48116c['getNearestSelectionRange'](_0x218fb6,'backward'),_0x1603e9=_0x5e138f['model']['createRange'](_0x46d6ef?_0x46d6ef['start']:_0x279467,_0x26bbf2?_0x26bbf2['end']:_0x218fb6);_0x5e138f['model']['change'](_0x4618cc=>{this['markDeletion'](_0x1603e9);const _0x5bcd1a=_0x5e138f['model']['schema']['getNearestSelectionRange'](_0x1603e9['start']);_0x274ed9['is']('documentSelection')?_0x4618cc['setSelection'](_0x5bcd1a):_0x274ed9['setTo'](_0x5bcd1a);}),_0xa2badf['stop']();},{'priority':_0x359a13['normal']+0xa}),_0x5e138f['model']['on']('insertContent',(_0x59b599,_0x1cb108)=>{const _0x94b0df=_0x1cb108[_0x1cb108['length']-0x1];_0x94b0df&&_0x94b0df['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5e138f['model']['change'](()=>{let _0x7768c4=_0x5e138f['model']['insertContent'](_0x1cb108[0x0],_0x1cb108[0x1],_0x1cb108[0x2],{'forceDefaultExecution':!0x0});if(!_0x7768c4)return;_0x59b599['return']=_0x7768c4['clone']();const _0x3af661=_0x7768c4['end']['nodeBefore'],_0x50b391=_0x5e138f['model']['schema'];_0x3af661&&_0x50b391['isBlock'](_0x3af661)&&!_0x50b391['isObject'](_0x3af661)&&(_0x7768c4=_0x5e138f['model']['createRange'](_0x7768c4['start'],_0x5e138f['model']['createPositionAt'](_0x3af661,'end'))),this['markInsertion'](_0x7768c4);}),_0x59b599['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x566d11=new x(_0x5e138f,this['_suggestions']);_0x5e138f['commands']['add']('acceptSuggestion',_0x566d11),this['enableCommand']('acceptSuggestion');const _0xc1e13d=new O(_0x5e138f,this['_suggestions']);_0x5e138f['commands']['add']('discardSuggestion',_0xc1e13d),this['enableCommand']('discardSuggestion'),_0x5e138f['commands']['add']('acceptAllSuggestions',new R(_0x5e138f,_0x566d11,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5e138f['commands']['add']('discardAllSuggestions',new R(_0x5e138f,_0xc1e13d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5e138f['commands']['add']('acceptSelectedSuggestions',new E(_0x5e138f,_0x566d11,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5e138f['commands']['add']('discardSelectedSuggestions',new E(_0x5e138f,_0xc1e13d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x434d8b=_0x5e138f['plugins']['get']('CommentsRepository');this['listenTo'](_0x434d8b,'addComment',(_0x1760d6,{threadId:_0x535ce3})=>{const _0x11d1ee=this['_suggestions']['get'](_0x535ce3);_0x11d1ee&&_0x11d1ee['commentThread']&&0x1===_0x11d1ee['commentThread']['length']&&this['_updateSuggestionData'](_0x535ce3,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x434d8b,'removeComment',(_0x3f17f9,{threadId:_0x45181f})=>{const _0x3f9d21=this['_suggestions']['get'](_0x45181f);_0x3f9d21&&_0x3f9d21['commentThread']&&!_0x3f9d21['commentThread']['length']&&this['_updateSuggestionData'](_0x45181f,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3070d4){const _0x101c3b=_0x21ac9e([0x31,0x6c,0x70,0x6d,0x63,0x4f,0x66,0x49,0x77,0x48,0x73,0x38,0x6a,0x50,0x44,0x41,0x62,0x4d,0x75,0x46,0x53,0x4a,0x45,0x55,0x39,0x57,0x4c,0x56,0x6b,0x30,0x69,0x32,0x5a,0x71,0x64,0x67,0x37,0x74,0x33,0x47,0x34,0x4b,0x36,0x6e,0x6f,0x58,0x68,0x51,0x65,0x7a,0x61,0x43,0x4e,0x79,0x59,0x54,0x78,0x76,0x52,0x72,0x35,0x42]),_0x3efb0f=0x64c1d1b,_0x226d92=0x64b75eb^_0x3efb0f,_0x5f1baa=window[_0x21ac9e([0x44,0x61,0x74,0x65])][_0x21ac9e([0x6e,0x6f,0x77])](),_0x163fea=_0x3070d4[_0x21ac9e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3054cb=new window[(_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fa830=>{_0x163fea[_0x21ac9e([0x6f,0x6e,0x63,0x65])](_0x21ac9e([0x72,0x65,0x61,0x64,0x79]),_0x1fa830);}),_0x393004={[_0x21ac9e([0x6b,0x74,0x79])]:_0x21ac9e([0x45,0x43]),[_0x21ac9e([0x75,0x73,0x65])]:_0x21ac9e([0x73,0x69,0x67]),[_0x21ac9e([0x63,0x72,0x76])]:_0x21ac9e([0x50,0x2d,0x32,0x35,0x36]),[_0x21ac9e([0x78])]:_0x21ac9e([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]),[_0x21ac9e([0x79])]:_0x21ac9e([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]),[_0x21ac9e([0x61,0x6c,0x67])]:_0x21ac9e([0x45,0x53,0x32,0x35,0x36])},_0x2947f2=_0x163fea[_0x21ac9e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21ac9e([0x67,0x65,0x74])](_0x21ac9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x68433e(){let _0x1cbb41,_0x26af46=null,_0x320503=null;try{if(_0x2947f2==_0x21ac9e([0x47,0x50,0x4c]))return _0x21ac9e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cbb41=_0x1a4323(),!_0x1cbb41)return _0x21ac9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cbb41[_0x21ac9e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x320503=_0x3efe75(_0x1cbb41[_0x21ac9e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cbb41[_0x21ac9e([0x6a,0x74,0x69])])),await _0x9e1fef()?_0x1b058a()?_0x26864c()?_0x21ac9e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b4c2c()?(_0x1cbb41[_0x21ac9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21ac9e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26af46=_0x84293e(_0x21ac9e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cbb41[_0x21ac9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21ac9e([0x74,0x72,0x69,0x61,0x6c])&&(_0x26af46=_0x84293e(_0x21ac9e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22ad77()):_0x21ac9e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21ac9e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21ac9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x345b14){return _0x21ac9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x26864c(){const _0x34f909=[_0x21ac9e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21ac9e([0x74,0x72,0x69,0x61,0x6c])][_0x21ac9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cbb41[_0x21ac9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f1baa/0x3e8:0xe10*_0x226d92;return _0x1cbb41[_0x21ac9e([0x65,0x78,0x70])]<_0x34f909;}function _0x1b058a(){const _0x29a0d5=_0x1cbb41[_0x21ac9e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x29a0d5)return!0x1;if(_0x29a0d5[_0x21ac9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ac9e([0x2a])))return!0x0;if(_0x29a0d5[_0x21ac9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ac9e([0x54,0x43])))return!0x0;if(_0x29a0d5[_0x21ac9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ac9e([0x52,0x54,0x43]))){if(_0x2090c1())return!0x0;if(_0x615f89()||_0x851004())return!0x0;}return!0x1;}function _0x1b4c2c(){const _0x267ab8=_0x1cbb41[_0x21ac9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x267ab8||0x0==_0x267ab8[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x397e40}=new URL(window[_0x21ac9e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x267ab8[_0x21ac9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x397e40))return!0x0;const _0x84d50e=_0x397e40[_0x21ac9e([0x73,0x70,0x6c,0x69,0x74])](_0x21ac9e([0x2e]));return _0x267ab8[_0x21ac9e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a5235=>_0x1a5235[_0x21ac9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ac9e([0x2a])))[_0x21ac9e([0x6d,0x61,0x70])](_0xa156a6=>_0xa156a6[_0x21ac9e([0x73,0x70,0x6c,0x69,0x74])](_0x21ac9e([0x2e])))[_0x21ac9e([0x73,0x6f,0x6d,0x65])](_0xdab0c5=>_0x84d50e[_0x21ac9e([0x65,0x76,0x65,0x72,0x79])]((_0x1ec56f,_0x1fbb6e)=>_0xdab0c5[_0x1fbb6e]===_0x1ec56f||_0xdab0c5[_0x1fbb6e]===_0x21ac9e([0x2a])));}function _0x22ad77(){return _0x26af46&&_0x320503?new window[(_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44623c,_0x7b6f7b)=>{_0x26af46[_0x21ac9e([0x74,0x68,0x65,0x6e])](_0x44623c,_0x7b6f7b),_0x320503[_0x21ac9e([0x74,0x68,0x65,0x6e])](_0x439c47=>{_0x439c47!=_0x21ac9e([0x56,0x61,0x6c,0x69,0x64])&&_0x44623c(_0x439c47);},_0x7b6f7b);}):_0x26af46||_0x320503||_0x21ac9e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3efe75(_0x131d28,_0x233ff9){return new window[(_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x419afe=>{if(_0x479f48())return _0x419afe(_0x21ac9e([0x56,0x61,0x6c,0x69,0x64]));_0x3ace2a(),_0x163fea[_0x21ac9e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21ac9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d1929=!0x1;const _0x2a2748=_0x147536();function _0x5ab9fe(_0x4ae86e){return!!_0x4ae86e&&(typeof _0x4ae86e===_0x21ac9e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ae86e===_0x21ac9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ae86e[_0x21ac9e([0x74,0x68,0x65,0x6e])]===_0x21ac9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ae86e[_0x21ac9e([0x63,0x61,0x74,0x63,0x68])]===_0x21ac9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a81ae(_0x4cb205){_0x47a892(_0x4cb205)[_0x21ac9e([0x74,0x68,0x65,0x6e])](_0x1f11eb=>{if(!_0x1f11eb||_0x1f11eb[_0x21ac9e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21ac9e([0x6f,0x6b]))return _0x21ac9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x11fb78(_0x5ab81b(_0x2a2748+_0x233ff9))!=_0x1f11eb[_0x21ac9e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21ac9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21ac9e([0x56,0x61,0x6c,0x69,0x64]);})[_0x21ac9e([0x74,0x68,0x65,0x6e])](_0x44ab7b=>(_0x1d200f(),_0x44ab7b),()=>{const _0x31b745=_0x5c5483();return null==_0x31b745?(_0x1d200f(),_0x21ac9e([0x56,0x61,0x6c,0x69,0x64])):_0x21ac9e(_0x5f1baa-_0x31b745>(0x2240991b^_0x3efb0f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21ac9e([0x74,0x68,0x65,0x6e])](_0x419afe)[_0x21ac9e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x419afe(_0x21ac9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x194fcf=0x67af39b^_0x3efb0f;function _0x1d200f(){const _0x1b6295=_0x21ac9e([0x6c,0x6c,0x63,0x74,0x2d])+_0x11fb78(_0x5ab81b(_0x131d28)),_0x32a43f=_0x36039a(_0x11fb78(window[_0x21ac9e([0x4d,0x61,0x74,0x68])][_0x21ac9e([0x63,0x65,0x69,0x6c])](_0x5f1baa/_0x194fcf)));window[_0x21ac9e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21ac9e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b6295,_0x32a43f);}function _0x5c5483(){const _0x180623=_0x21ac9e([0x6c,0x6c,0x63,0x74,0x2d])+_0x11fb78(_0x5ab81b(_0x131d28)),_0x1b350a=window[_0x21ac9e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21ac9e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x180623);return _0x1b350a?window[_0x21ac9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36039a(_0x1b350a),0x10)*_0x194fcf:null;}function _0x47a892(_0x635836){return new window[(_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x423570,_0x3f9cee)=>{_0x635836[_0x21ac9e([0x74,0x68,0x65,0x6e])](_0x423570,_0x3f9cee),window[_0x21ac9e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f9cee,0x64dc9db^_0x3efb0f);});}}_0x163fea[_0x21ac9e([0x6f,0x6e])](_0x21ac9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x350570,_0x537050)=>{if(_0x537050[0x0]!=_0x131d28)return _0x419afe(_0x21ac9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x537050[0x1]={..._0x537050[0x1],[_0x21ac9e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a2748};},{[_0x21ac9e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21ac9e([0x68,0x69,0x67,0x68])}),_0x163fea[_0x21ac9e([0x6f,0x6e])](_0x21ac9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ab3b6=>{_0x5ab9fe(_0x3ab3b6[_0x21ac9e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d1929=!0x0,_0x2a81ae(_0x3ab3b6[_0x21ac9e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21ac9e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21ac9e([0x6c,0x6f,0x77])}),_0x3054cb[_0x21ac9e([0x74,0x68,0x65,0x6e])](()=>{_0x3d1929||_0x419afe(_0x21ac9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x479f48(){return _0x163fea[_0x21ac9e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21ac9e([0x76,0x69,0x65,0x77])][_0x21ac9e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21ac9e([0x61,0x75,0x74,0x6f]);}function _0x3ace2a(){_0x163fea[_0x21ac9e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21ac9e([0x76,0x69,0x65,0x77])][_0x21ac9e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21ac9e([0x61,0x75,0x74,0x6f]);}}function _0x84293e(_0x3f9de1){const _0x291898=[new window[(_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x111027=>setTimeout(_0x111027,0x64523d7^_0x3efb0f)),_0x3054cb[_0x21ac9e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x196cf8=>{let _0x2ea03d=0x0;_0x163fea[_0x21ac9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x21ac9e([0x6f,0x6e])](_0x21ac9e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x383b24,_0x6ec7a9)=>{_0x6ec7a9[0x0][_0x21ac9e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ea03d++,_0x2ea03d==(0x64c1ce3^_0x3efb0f)&&(_0x196cf8(),_0x383b24[_0x21ac9e([0x6f,0x66,0x66])]());});}))];return window[_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21ac9e([0x72,0x61,0x63,0x65])](_0x291898)[_0x21ac9e([0x74,0x68,0x65,0x6e])](()=>_0x3f9de1);}async function _0x3108b3(){await _0x3054cb,_0x163fea[_0x21ac9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x21ac9e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7e989b,_0x163fea[_0x21ac9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x21ac9e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7e989b,_0x163fea[_0x21ac9e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21ac9e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2090c1(){return _0x30bf92(_0x21ac9e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x164eea(_0x21ac9e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x21ac9e([0x73,0x74,0x61,0x74,0x65])]==_0x21ac9e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x615f89(){return _0x30bf92(_0x21ac9e([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 _0x851004(){return _0x30bf92(_0x21ac9e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x28dd71(_0x35af9f){const _0x170dac=_0x3a2e32();_0x163fea[_0x170dac]=_0x21ac9e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x35af9f,_0x35af9f!=_0x21ac9e([0x56,0x61,0x6c,0x69,0x64])&&_0x3108b3();}function _0x3a2e32(){const _0x2ffcbb=window[_0x21ac9e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21ac9e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21ac9e([0x6e,0x6f,0x77])]())[_0x21ac9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21ac9e([0x2e]),'');let _0x5d6f50=_0x21ac9e([0x6c]);for(let _0x954fa4=0x0;_0x954fa4<_0x2ffcbb[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x954fa4+=0x2){let _0xaeadb0=window[_0x21ac9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ffcbb[_0x21ac9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x954fa4,_0x954fa4+0x2));_0xaeadb0>=_0x101c3b[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xaeadb0-=_0x101c3b[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d6f50+=_0x101c3b[_0xaeadb0];}return _0x5d6f50;}function _0x1a4323(){const _0x43cfbb=_0x2947f2[_0x21ac9e([0x73,0x70,0x6c,0x69,0x74])](_0x21ac9e([0x2e]));if(0x3!=_0x43cfbb[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x286383(_0x43cfbb[0x1]);function _0x286383(_0x1d8b97){const _0x14efbf=_0x500ad8(_0x1d8b97);return _0x14efbf&&_0x4d54c1()?_0x14efbf:null;function _0x4d54c1(){const _0x496776=_0x14efbf[_0x21ac9e([0x6a,0x74,0x69])],_0x254290=window[_0x21ac9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x496776[_0x21ac9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x496776[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x23e9e2={..._0x14efbf,[_0x21ac9e([0x6a,0x74,0x69])]:_0x496776[_0x21ac9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x496776[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x23e9e2[_0x21ac9e([0x76,0x63])],_0x5ab81b(_0x23e9e2)==_0x254290;}}}async function _0x9e1fef(){let _0x134a72=!0x0;try{const _0x162ce6=_0x2947f2[_0x21ac9e([0x73,0x70,0x6c,0x69,0x74])](_0x21ac9e([0x2e])),[_0xeb6147,_0x16b073,_0x11b421]=_0x162ce6;return _0x2430f8(_0xeb6147),await _0x60d117(_0xeb6147,_0x16b073,_0x11b421),_0x134a72;}catch(_0xd37bba){return!0x1;}function _0x2430f8(_0x3552f2){const _0x3c01a0=_0x500ad8(_0x3552f2);_0x3c01a0&&_0x3c01a0[_0x21ac9e([0x61,0x6c,0x67])]==_0x21ac9e([0x45,0x53,0x32,0x35,0x36])||(_0x134a72=!0x1);}async function _0x60d117(_0x27c24b,_0x62a3dc,_0x5095d9){const _0x6e0922=window[_0x21ac9e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21ac9e([0x66,0x72,0x6f,0x6d])](_0x59911f(_0x5095d9),_0xbc6d0e=>_0xbc6d0e[_0x21ac9e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x27e496=new window[(_0x21ac9e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21ac9e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27c24b+_0x21ac9e([0x2e])+_0x62a3dc),_0x29daa5=window[_0x21ac9e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21ac9e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x29daa5)return;const _0x5a6d03=await _0x29daa5[_0x21ac9e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21ac9e([0x6a,0x77,0x6b]),_0x393004,{[_0x21ac9e([0x6e,0x61,0x6d,0x65])]:_0x21ac9e([0x45,0x43,0x44,0x53,0x41]),[_0x21ac9e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21ac9e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21ac9e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x29daa5[_0x21ac9e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21ac9e([0x6e,0x61,0x6d,0x65])]:_0x21ac9e([0x45,0x43,0x44,0x53,0x41]),[_0x21ac9e([0x68,0x61,0x73,0x68])]:{[_0x21ac9e([0x6e,0x61,0x6d,0x65])]:_0x21ac9e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a6d03,_0x6e0922,_0x27e496)||(_0x134a72=!0x1);}}function _0x500ad8(_0x56e022){return _0x56e022[_0x21ac9e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21ac9e([0x65,0x79]))?JSON[_0x21ac9e([0x70,0x61,0x72,0x73,0x65])](_0x59911f(_0x56e022)):null;}function _0x59911f(_0x29a337){return window[_0x21ac9e([0x61,0x74,0x6f,0x62])](_0x29a337[_0x21ac9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21ac9e([0x2b]))[_0x21ac9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21ac9e([0x2f])));}function _0x5ab81b(_0x27d949){let _0xbb21f1=0x1505;function _0xe2e219(_0x4c0c45){for(let _0x485176=0x0;_0x485176<_0x4c0c45[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x485176++){const _0xec537e=_0x4c0c45[_0x21ac9e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x485176);_0xbb21f1=(_0xbb21f1<<0x5)+_0xbb21f1+_0xec537e,_0xbb21f1&=_0xbb21f1;}}function _0x2cbb52(_0xfb8de7){Array[_0x21ac9e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xfb8de7)?_0xfb8de7[_0x21ac9e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2cbb52):_0xfb8de7&&typeof _0xfb8de7==_0x21ac9e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21ac9e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xfb8de7)[_0x21ac9e([0x73,0x6f,0x72,0x74])]()[_0x21ac9e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3ddbd1,_0x2562c2])=>{_0xe2e219(_0x3ddbd1),_0x2cbb52(_0x2562c2);}):_0xe2e219(window[_0x21ac9e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xfb8de7));}return _0x2cbb52(_0x27d949),_0xbb21f1>>>0x0;}function _0x11fb78(_0x50c645){return _0x50c645[_0x21ac9e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21ac9e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21ac9e([0x30]));}function _0x36039a(_0x5edbea){return _0x5edbea[_0x21ac9e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21ac9e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21ac9e([0x6a,0x6f,0x69,0x6e])]('');}function _0x30bf92(_0x679aff){return _0x163fea[_0x21ac9e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x21ac9e([0x68,0x61,0x73])](_0x679aff);}function _0x164eea(_0x4cf371){return _0x163fea[_0x21ac9e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x21ac9e([0x67,0x65,0x74])](_0x4cf371);}function _0x7e989b(){}function _0x21ac9e(_0xdc943){return _0xdc943['map'](_0x255c27=>String['fromCharCode'](_0x255c27))['join']('');}_0x28dd71(await _0x68433e());}(this);}set['adapter'](_0x1770a8){if(this['_adapter'])throw new _0x3bf293('track-changes-adapter-already-set',this);this['_adapter']=_0x1770a8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x56078c=!0x1,toJSON:_0x3ce449=!0x1}={}){const _0x3676fb=[];for(const _0x343e10 of this['_suggestions']['values']())_0x56078c&&!_0x343e10['isInContent']||_0x3676fb['push'](_0x343e10);return _0x3ce449?_0x3676fb['map'](_0x2cf2ea=>_0x2cf2ea['toJSON']()):_0x3676fb;}['getSuggestion'](_0x4659cd){const _0xcd364d=this['_suggestions']['get'](_0x4659cd);if(!_0xcd364d)throw new _0x3bf293('track-changes-suggestion-not-found',this);return _0xcd364d;}['hasSuggestion'](_0x32fd0d){return this['_suggestions']['has'](_0x32fd0d);}['addSuggestionData'](_0x365eb3){const {authorId:_0x493e30,id:_0x4c3f8d,originalSuggestionId:_0x3fa2b8,attributes:_0x52ab35}=_0x365eb3,[_0x14e0d8,_0x21d953]=_0x365eb3['type']['split'](':'),_0x3c9b77=this['_suggestions']['get'](_0x4c3f8d)||this['_createSuggestion'](_0x14e0d8,_0x21d953,_0x4c3f8d,_0x493e30,_0x52ab35,_0x3fa2b8);if(this['_addThreadToSuggestion'](_0x3c9b77),this['_checkSuggestionCorrectness'](_0x3c9b77,_0x14e0d8,_0x21d953||null,_0x493e30),_0x3c9b77['createdAt']=_0x365eb3['createdAt'],_0x3c9b77['_isDataLoaded']=!0x0,_0x52ab35&&_0x52ab35['@external']){const _0x31e79e=_0x52ab35['@external'],_0x338443=this['_getExternalAuthor'](_0x31e79e['authorName']);_0x3c9b77['authoredAt']=_0x31e79e['createdAt'],_0x3c9b77['author']=_0x338443,_0x3c9b77['isExternal']=!0x0;}else _0x3c9b77['authoredAt']=_0x365eb3['createdAt'];switch(_0x365eb3['data']&&(_0x3c9b77['data']=_0x365eb3['data']),_0x365eb3['attributes']&&(_0x3c9b77['attributes']=_0x365eb3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3c9b77['_saved']=!0x0),this['_suggestionState']['get'](_0x3c9b77)){case'notReady':this['_suggestionState']['set'](_0x3c9b77,'dataReady');break;case'markerReady':_0x3c9b77['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3c9b77])),this['_refreshSuggestionsChain'](new Set([_0x3c9b77])),this['_suggestionState']['set'](_0x3c9b77,'ready'),this['fire']('suggestionLoaded',_0x3c9b77)):this['_suggestionState']['set'](_0x3c9b77,'removed');}return _0x3c9b77;}['acceptSuggestion'](_0x3b61a4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x523232 of _0x3b61a4['getAllAdjacentSuggestions']())_0x523232['accept']();});});}['discardSuggestion'](_0x2687a3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1ffa9d of _0x2687a3['getAllAdjacentSuggestions']())_0x1ffa9d['discard']();});});}['enableCommand'](_0x2f2aa9,_0x3c6b97){const _0x117ec1=this['editor']['commands']['get'](_0x2f2aa9);if(!_0x117ec1)throw new _0x3bf293('track-changes-command-not-found',this,{'commandName':_0x2f2aa9});if(this['_enabledCommands']['has'](_0x117ec1))throw new _0x3bf293('track-changes-enable-command-twice',this,{'commandName':_0x2f2aa9});this['_enabledCommands']['add'](_0x117ec1),_0x3c6b97&&_0x117ec1['on']('execute',(_0x148c6c,_0x424681)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x424681['length']>0x0&&_0x424681[_0x424681['length']-0x1]&&_0x424681[_0x424681['length']-0x1]['forceDefaultExecution']?_0x424681['pop']():(_0x148c6c['return']=_0x3c6b97((..._0x2bc981)=>_0x117ec1['execute'](..._0x2bc981,{'forceDefaultExecution':!0x0}),..._0x424681),_0x148c6c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x34749d){let _0x30dd3b,_0x4913d3;const _0x15ce59=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x30dd3b=_0x34749d();}catch(_0x5d66ae){_0x4913d3=_0x5d66ae;}return _0x15ce59||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4913d3&&_0x3bf293['rethrowUnexpectedError'](_0x4913d3,this),_0x30dd3b;}['markInsertion'](_0x267bec,_0x12a1d1=null,_0x12b0c2={}){if(_0x267bec['isCollapsed'])return null;const _0x26e1bf=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x12b0c2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1613ea,meta:_0x5004e8}of this['_findSuggestions'](_0x267bec,'insertion'))if(_0x5004e8['isOwn']){if(!_0x5004e8['isNextTo']){if(_0x5004e8['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x1613ea,_0x12b0c2))continue;return _0x1613ea;}if(Xt(_0x1613ea,_0x12b0c2))return _0x1613ea;this['_breakSuggestionMarker'](_0x1613ea,_0x267bec['start'],_0x267bec['end']);break;}if(_0x12a1d1==_0x1613ea['subType']&&Xt(_0x1613ea,_0x12b0c2)){const _0x91a9dc=_0x1613ea['getFirstRange']();return _0x91a9dc['start']['isEqual'](_0x267bec['end'])?this['_setSuggestionRange'](_0x1613ea,this['_model']['createRange'](_0x267bec['start'],_0x91a9dc['end'])):this['_setSuggestionRange'](_0x1613ea,this['_model']['createRange'](_0x91a9dc['start'],_0x267bec['end'])),_0x1613ea;}}const _0x3a6501=_0x147536(),_0x3714b0=_0x26e1bf['id'],_0x13414f=_0x12a1d1?'insertion:'+_0x12a1d1:'insertion',_0x422fba=this['_setSuggestionData']({'id':_0x3a6501,'type':_0x13414f,'createdAt':new Date(),'authorId':_0x3714b0,'attributes':_0x12b0c2});return this['_addSuggestionMarker'](_0x13414f,_0x3a6501,_0x3714b0,_0x267bec),_0x422fba;}['markMultiRangeInsertion'](_0xfdef8a,_0x1e45cc='multi',_0xc6fcdd={}){const _0x3dec98=this['editor']['plugins']['get']('Users')['me'],_0x4bbcda=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1e45cc,'join');this['_trackingSessionId']&&(_0xc6fcdd['trackingSessionId']=this['_trackingSessionId']);for(const _0x2ca147 of this['getSuggestions']())if(_0x2ca147['author']['id']==_0x3dec98['id']&&'insertion'==_0x2ca147['type']&&_0x2ca147['subType']==_0x1e45cc&&Xt(_0x2ca147,_0xc6fcdd)&&(_0x4bbcda(_0x2ca147['getRanges'](),_0xfdef8a)||_0x4bbcda(_0xfdef8a,_0x2ca147['getRanges']()))){for(const _0x25567f of _0xfdef8a)_0x2ca147['addRange'](_0x25567f);return _0x2ca147;}for(const {suggestion:_0x5ad801,meta:_0x4e9e25}of this['_findSuggestions'](_0xfdef8a,'insertion')){if(!_0x4e9e25['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4e9e25['containsRangeInObject'])continue;if(!Xt(_0x5ad801,_0xc6fcdd))continue;let _0x16b7c4=!0x0;for(const _0x5b36dd of _0x5ad801['getRanges']())for(const _0x512f29 of _0xfdef8a)if(!_0x5b36dd['containsRange'](_0x512f29)){_0x16b7c4=!0x1;break;}if(_0x16b7c4)return _0x5ad801;}const _0x5b58ca=_0x147536(),_0x4495dc=_0x3dec98['id'],_0x166edf='insertion:'+_0x1e45cc,_0x1a2709=this['_setSuggestionData']({'id':_0x5b58ca,'type':_0x166edf,'createdAt':new Date(),'authorId':_0x4495dc,'attributes':_0xc6fcdd});for(const _0x5c8aaf of _0xfdef8a)this['_addSuggestionMarker'](_0x166edf,_0x5b58ca,_0x4495dc,_0x5c8aaf,o['getMultiRangeId']());return _0x1a2709;}['markInlineFormat'](_0x1e1877,_0x54bdf2,_0x2b635a=null,_0xc51c6f={}){if(_0x2b635a=_0x2b635a||Kt(_0x54bdf2),_0x1e1877['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xc51c6f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4c2575=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b635a,'accept');return this['forceDefaultExecution'](()=>_0x4c2575([_0x1e1877],_0x54bdf2,_0xc51c6f)),null;}const _0x2b0e09=this['editor']['plugins']['get']('Users')['me'],_0x488eaf=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x22f1f1,meta:_0x28364b}of this['_findSuggestions'](_0x1e1877,'insertion'))_0x28364b['isOwn']&&!_0x28364b['isInsideObject']&&_0x488eaf['push'](..._0x22f1f1['getRanges']());}const _0x5dd9aa=function(_0x46b306,_0x1f1685){const _0x829490=[];for(const _0x578ece of _0x1f1685){const _0x580fa6=_0x46b306['getIntersection'](_0x578ece);_0x580fa6&&_0x829490['push'](_0x580fa6);}return _0x829490;}(_0x1e1877,_0x488eaf),_0x41f26a=function(_0x4bc1f4,_0x4ff136){const _0x113662=[_0x4bc1f4];for(const _0x265261 of _0x4ff136){let _0x4d91e8=0x0;for(;_0x4d91e8<_0x113662['length'];){const _0x56170c=_0x113662[_0x4d91e8]['getDifference'](_0x265261);_0x113662['splice'](_0x4d91e8,0x1,..._0x56170c),_0x4d91e8+=_0x56170c['length'];}}return _0x113662;}(_0x1e1877,_0x488eaf);_0x5dd9aa['length']&&this['_model']['change'](()=>{for(const _0xe4889d of _0x5dd9aa){const _0x3a2af2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b635a,'accept');this['forceDefaultExecution'](()=>_0x3a2af2([_0xe4889d],_0x54bdf2,_0xc51c6f));}});for(const _0x5afd43 of _0x41f26a){let _0x303de1=null,_0x1fed1a=_0x5afd43['start'],_0x28b41d=_0x5afd43['end'];for(const {suggestion:_0x340185,meta:_0x24ee03}of this['_findSuggestions'](_0x5afd43,'formatInline')){if(!_0x24ee03['isOwn'])continue;if(_0x340185['subType']!=_0x2b635a)continue;if(!Xt(_0x340185,_0xc51c6f))continue;const _0x26eda1=_0x340185['getFirstRange']();if(_0x26eda1['containsRange'](_0x5afd43,!0x0))return null;_0x1fed1a=_0x1fed1a['isBefore'](_0x26eda1['start'])?_0x1fed1a:_0x26eda1['start'],_0x28b41d=_0x28b41d['isAfter'](_0x26eda1['end'])?_0x28b41d:_0x26eda1['end'],_0x303de1?_0x26eda1['start']['isBefore'](_0x303de1['getFirstRange']()['start'])?(_0x303de1['removeMarkers'](),_0x303de1=_0x340185):_0x340185['removeMarkers']():_0x303de1=_0x340185;}const _0x50ae13=this['_model']['createRange'](_0x1fed1a,_0x28b41d);if(_0x303de1)this['_setSuggestionRange'](_0x303de1,_0x50ae13);else{const _0x56a034=_0x147536(),_0x377cd5=_0x2b0e09['id'];this['_setSuggestionData']({'id':_0x56a034,'type':'formatInline:'+_0x2b635a,'data':_0x54bdf2,'createdAt':new Date(),'authorId':_0x377cd5,'attributes':_0xc51c6f}),this['_addSuggestionMarker']('formatInline:'+_0x2b635a,_0x56a034,_0x377cd5,_0x50ae13);}}return null;}['markBlockFormat'](_0x1a7c27,_0x5ea497,_0x23973b=[],_0x383d51=null,_0x3ebf49={}){_0x5ea497['formatGroupId']||(_0x5ea497['formatGroupId']=_0x5ea497['commandName']),_0x5ea497['multipleBlocks']=_0x1a7c27['is']('range'),_0x383d51=_0x383d51||Kt(_0x5ea497);const _0x2ff65d=_0x23973b['map'](_0x517873=>zt(_0x517873,this['_model'])),_0x44048b=_0x1a7c27['is']('range')?_0x1a7c27:zt(_0x1a7c27,this['_model']);if(this['_trackingSessionId']&&(_0x3ebf49['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xdcb41e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x383d51,'accept');return this['forceDefaultExecution'](()=>_0xdcb41e([_0x44048b],_0x5ea497,_0x3ebf49)),null;}_0x2ff65d['push'](_0x44048b);let _0x2c3209=!0x0;for(const _0x1e3154 of _0x2ff65d)if(!this['_rangeIsInLocalUserInsertion'](_0x1e3154)){_0x2c3209=!0x1;break;}if(_0x2c3209&&'always'!==this['_trackFormatChanges']){const _0x2666d4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x383d51,'accept');return this['forceDefaultExecution'](()=>_0x2666d4([_0x44048b],_0x5ea497,_0x3ebf49)),null;}let _0x54c7fc=null,_0xd91bf7=_0x44048b['start'],_0x3ec6b6=_0x44048b['end'];for(const {suggestion:_0x1ba8be,meta:_0x515a1c}of this['_findSuggestions'](_0x44048b,'formatBlock')){if(!_0x515a1c['isOwn'])continue;if(_0x515a1c['isNextTo']||_0x515a1c['containsRangeInObject']||_0x515a1c['isInsideObject'])continue;if(_0x1ba8be['data']['formatGroupId']!=_0x5ea497['formatGroupId'])continue;if(!Xt(_0x1ba8be,_0x3ebf49))continue;const _0x4bb180=_0x1ba8be['getFirstRange']();if(_0x1ba8be['subType']==_0x383d51){if(_0x4bb180['containsRange'](_0x44048b,!0x0))return null;_0xd91bf7=_0xd91bf7['isBefore'](_0x4bb180['start'])?_0xd91bf7:_0x4bb180['start'],_0x3ec6b6=_0x3ec6b6['isAfter'](_0x4bb180['end'])?_0x3ec6b6:_0x4bb180['end'],_0x54c7fc?_0x4bb180['start']['isBefore'](_0x54c7fc['getFirstRange']()['start'])?(_0x54c7fc['removeMarkers'](),_0x54c7fc=_0x1ba8be):_0x1ba8be['removeMarkers']():_0x54c7fc=_0x1ba8be;}else{const _0x354b84=_0x44048b['getIntersection'](_0x4bb180);this['_cutOutSuggestionMarker'](_0x1ba8be,_0x354b84);}}const _0x559886=this['editor']['plugins']['get']('Users')['me'],_0x42459b=_0x147536(),_0x64dfc8=_0x559886['id'];if(_0x54c7fc)return this['_setSuggestionRange'](_0x54c7fc,this['_model']['createRange'](_0xd91bf7,_0x3ec6b6)),_0x54c7fc;{const _0x90078f=this['_setSuggestionData']({'id':_0x42459b,'type':'formatBlock:'+_0x383d51,'data':_0x5ea497,'createdAt':new Date(),'authorId':_0x64dfc8,'attributes':_0x3ebf49});return this['_addSuggestionMarker']('formatBlock:'+_0x383d51,_0x42459b,_0x64dfc8,this['_model']['createRange'](_0xd91bf7,_0x3ec6b6)),_0x90078f;}}['markMultiRangeBlockFormat'](_0x175c35,_0x232e32,_0x444ce4=[],_0x502b90=null,_0x19cd2a={}){_0x232e32['formatGroupId']||(_0x232e32['formatGroupId']=_0x232e32['commandName']);const _0x229199=_0x175c35[0x0];_0x232e32['multipleBlocks']=_0x229199['is']('range'),_0x502b90=_0x502b90||Kt(_0x232e32);const _0x4a653a=_0x444ce4['map'](_0x63feaf=>zt(_0x63feaf,this['_model'])),_0xf3c31=_0x229199['is']('range')?_0x175c35:_0x175c35['map'](_0x380759=>zt(_0x380759,this['_model']));if(this['_trackingSessionId']&&(_0x19cd2a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x53af88=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x502b90,'accept');return this['forceDefaultExecution'](()=>_0x53af88(_0xf3c31,_0x232e32,_0x19cd2a)),null;}_0x4a653a['push'](..._0xf3c31);let _0x31dd9a=!0x0;for(const _0x4a9904 of _0x4a653a)if(!this['_rangeIsInLocalUserInsertion'](_0x4a9904)){_0x31dd9a=!0x1;break;}if(_0x31dd9a&&'always'!==this['_trackFormatChanges']){const _0x19344c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x502b90,'accept');return this['forceDefaultExecution'](()=>_0x19344c(_0xf3c31,_0x232e32,_0x19cd2a)),null;}const _0x315da8=this['editor']['plugins']['get']('Users')['me'];for(const _0x24997e of this['getSuggestions']()){if(_0x24997e['author']['id']!=_0x315da8['id'])continue;if('formatBlock'!=_0x24997e['type']||_0x24997e['data']['formatGroupId']!=_0x232e32['formatGroupId'])continue;if(!Xt(_0x24997e,_0x19cd2a))continue;const _0x23db89=_0x24997e['subType']==_0x502b90;for(let _0x3d5be5=0x0;_0x3d5be5<_0xf3c31['length'];_0x3d5be5++){const _0x1f97ce=_0xf3c31[_0x3d5be5];for(const _0x3d53cc of _0x24997e['getMarkers']()){const _0x52ded4=_0x3d53cc['getRange']();if(_0x1f97ce['isEqual'](_0x52ded4)){_0x23db89?(_0xf3c31['splice'](_0x3d5be5,0x1),_0x3d5be5--):_0x24997e['removeMarker'](_0x3d53cc['name']);break;}}}}if(0x0==_0xf3c31['length'])return null;const _0x3165c0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x502b90,'join');for(const _0x348d7 of this['getSuggestions']())if(_0x348d7['author']['id']==_0x315da8['id']&&'formatBlock'==_0x348d7['type']&&_0x348d7['data']['formatGroupId']==_0x232e32['formatGroupId']&&_0x348d7['subType']==_0x502b90&&Xt(_0x348d7,_0x19cd2a)&&(_0x3165c0(_0x348d7['getRanges'](),_0xf3c31)||_0x3165c0(_0xf3c31,_0x348d7['getRanges']()))){for(const _0xb78c5a of _0xf3c31)_0x348d7['addRange'](_0xb78c5a);return _0x348d7;}const _0xa8ab15=_0x147536(),_0x304c8b=_0x315da8['id'],_0x21c324='formatBlock:'+_0x502b90,_0x4d073d=this['_setSuggestionData']({'id':_0xa8ab15,'type':_0x21c324,'data':_0x232e32,'createdAt':new Date(),'authorId':_0x304c8b,'attributes':_0x19cd2a});for(const _0x3319df of _0xf3c31)this['_addSuggestionMarker'](_0x21c324,_0xa8ab15,_0x304c8b,_0x3319df,o['getMultiRangeId']());return _0x4d073d;}['markDeletion'](_0x1bfe80,_0x475d3f=null,_0x2952dd={}){if(_0x1bfe80['isCollapsed'])return null;const _0x2ac5df=this['editor']['plugins']['get']('Users')['me'],_0x1e5e13=new _0x3a5e87(_0x1bfe80['start'],_0x1bfe80['end']);this['_trackingSessionId']&&(_0x2952dd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x18688c,meta:_0x3112c5}of this['_findSuggestions'](_0x1e5e13,'insertion'))if(_0x3112c5['isOwn']&&!_0x3112c5['isNextTo']){if(_0x18688c['isMultiRange']){const _0x400d89=_0x18688c['getRanges']()['filter'](_0x3252fd=>'$graveyard'!=_0x3252fd['root']['rootName']);_0x400d89['every'](_0x5a497b=>_0x1e5e13['containsRange'](_0x5a497b,!0x0))&&_0x18688c['discard']();if(_0x400d89['some'](_0x2bba2b=>_0x2bba2b['containsRange'](_0x1e5e13,!0x0))){const _0x2c615b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x475d3f,'accept');return this['forceDefaultExecution'](()=>_0x2c615b([_0x1e5e13],null,_0x2952dd)),null;}}else{const _0x131962=_0x1e5e13['getIntersection'](_0x18688c['getFirstRange']());null!==_0x131962&&_0x18688c['_onDiscard']([_0x131962],null,_0x2952dd);}}if(_0x1e5e13['detach'](),_0x1e5e13['isCollapsed']||'$graveyard'==_0x1e5e13['root']['rootName'])return null;let _0xa98217=null,_0x3677eb=_0x1e5e13['start'],_0xcfe56b=_0x1e5e13['end'];const _0x3b44cb=this['_findSuggestions'](_0x1e5e13,'deletion');for(const {suggestion:_0x3ce868,meta:_0x434a65}of _0x3b44cb){const _0x1aad77=this['_model']['createRange'](_0x3677eb,_0xcfe56b);if(_0x434a65['isOwn']&&(this['_mergeNestedSuggestions']||!_0x434a65['containsRangeInObject']&&!_0x434a65['isInsideObject'])){if(_0x3ce868['isMultiRange']){if(!Xt(_0x3ce868,_0x2952dd))continue;let _0x31957e=!0x0;for(const _0x32096d of _0x3ce868['getRanges']()){if(_0x32096d['containsRange'](_0x1aad77,!0x0))return _0x3ce868;_0x1aad77['containsRange'](_0x32096d)||(_0x31957e=!0x1);}_0x31957e&&_0x3ce868['discard']();}else{const _0x3b0eaa=_0x3ce868['getFirstRange']();if(_0x3b0eaa['containsRange'](_0x1aad77,!0x0))return _0x3ce868;if(!Xt(_0x3ce868,_0x2952dd)){_0x1aad77['containsRange'](_0x3b0eaa)?_0x3ce868['removeMarkers']():_0x3b0eaa['containsPosition'](_0x3677eb)?_0x3677eb=_0x3b0eaa['end']:_0x3b0eaa['containsPosition'](_0xcfe56b)&&(_0xcfe56b=_0x3b0eaa['start']);continue;}_0x3677eb=_0x3677eb['isBefore'](_0x3b0eaa['start'])?_0x3677eb:_0x3b0eaa['start'],_0xcfe56b=_0xcfe56b['isAfter'](_0x3b0eaa['end'])?_0xcfe56b:_0x3b0eaa['end'],_0x2952dd=Object['assign']({},_0x3ce868['attributes']),_0xa98217?_0x3b0eaa['start']['isBefore'](_0xa98217['getFirstRange']()['start'])?(_0xa98217['removeMarkers'](),_0xa98217=_0x3ce868):_0x3ce868['removeMarkers']():_0xa98217=_0x3ce868;}}}if(_0xa98217)return this['_setSuggestionRange'](_0xa98217,this['_model']['createRange'](_0x3677eb,_0xcfe56b)),_0xa98217;{const _0x39d6e9=_0x147536(),_0x297b44=this['_model']['createRange'](_0x3677eb,_0xcfe56b),_0x35c736=_0x2ac5df['id'],_0x23ccb0=_0x475d3f?'deletion:'+_0x475d3f:'deletion',_0x11ce0e=this['_setSuggestionData']({'id':_0x39d6e9,'type':_0x23ccb0,'createdAt':new Date(),'authorId':_0x35c736,'attributes':_0x2952dd});return this['_addSuggestionMarker'](_0x23ccb0,_0x39d6e9,_0x35c736,_0x297b44),_0x11ce0e;}}['markMultiRangeDeletion'](_0x2a0809,_0x538360='multi',_0x5c27d6={}){const _0x54c8d3=this['editor']['plugins']['get']('Users')['me'],_0x194045=_0x2a0809['map'](_0x5753eb=>new _0x3a5e87(_0x5753eb['start'],_0x5753eb['end'])),_0x2fa9e1=new Set();this['_trackingSessionId']&&(_0x5c27d6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1aaf1f,meta:_0x54609d}of this['_findSuggestions'](_0x194045,'insertion'))_0x54609d['isOwn']&&!_0x54609d['isNextTo']&&_0x2fa9e1['add'](_0x1aaf1f);for(const _0x30fa06 of _0x2fa9e1)if(_0x30fa06['isMultiRange']){const _0x448d8e=_0x30fa06['getRanges']();(!_0x30fa06['attributes']||!_0x30fa06['attributes']['skipNestingCheck'])&&(_0x448d8e['every'](_0x1cdd96=>_0x194045['some'](_0x4c087d=>_0x4c087d['containsRange'](_0x1cdd96,!0x0)))&&_0x30fa06['discard']());if(_0x194045['every'](_0x9e98b0=>_0x448d8e['some'](_0x12c849=>_0x12c849['containsRange'](_0x9e98b0,!0x0)))){const _0x2b00da=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538360,'accept');return this['forceDefaultExecution'](()=>_0x2b00da(_0x2a0809,null,_0x5c27d6)),null;}}else{const _0x4696db=_0x30fa06['getFirstRange']();_0x194045['some'](_0x30a0c6=>_0x30a0c6['containsRange'](_0x4696db,!0x0))&&_0x30fa06['discard']();if(_0x194045['every'](_0x306d2a=>_0x4696db['containsRange'](_0x306d2a,!0x0))){const _0x7f517e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538360,'accept');return this['forceDefaultExecution'](()=>_0x7f517e(_0x194045,null,_0x5c27d6)),null;}}const _0x54bfdb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538360,'join');let _0x58bcb6=null;for(const _0x414119 of this['getSuggestions']())if(_0x414119['author']['id']==_0x54c8d3['id']&&_0x414119['isInContent']&&'deletion'==_0x414119['type']&&_0x414119['subType']==_0x538360&&Xt(_0x414119,_0x5c27d6)&&(_0x54bfdb(_0x414119['getRanges'](),_0x194045)||_0x54bfdb(_0x194045,_0x414119['getRanges']()))){if(_0x58bcb6){if(_0x414119['commentThread']&&_0x414119['commentThread']['length'])continue;for(const _0x2d5035 of _0x414119['getRanges']())_0x58bcb6['isIntersectingWithRange'](_0x2d5035)||_0x58bcb6['addRange'](_0x2d5035);_0x414119['removeMarkers']();}else{_0x58bcb6=_0x414119;for(const _0x46ada8 of _0x194045)_0x414119['isIntersectingWithRange'](_0x46ada8)||_0x414119['addRange'](_0x46ada8);}}if(_0x58bcb6)return _0x58bcb6;_0x2fa9e1['clear']();for(const {suggestion:_0x29b788,meta:_0x46b757}of this['_findSuggestions'](_0x194045,'deletion'))_0x46b757['isOwn']&&(this['_mergeNestedSuggestions']||!_0x46b757['containsRangeInObject']&&!_0x46b757['isInsideObject'])&&Xt(_0x29b788,_0x5c27d6)&&_0x2fa9e1['add'](_0x29b788);for(const _0x5a5fdf of _0x2fa9e1){const _0x57ea14=_0x5a5fdf['getRanges']();if(!_0x5c27d6||!_0x5c27d6['skipNestingCheck']){if(_0x194045['every'](_0x588936=>_0x57ea14['some'](_0x1385d5=>_0x1385d5['containsRange'](_0x588936,!0x0))))return _0x5a5fdf;}(!_0x5a5fdf['attributes']||!_0x5a5fdf['attributes']['skipNestingCheck'])&&(_0x57ea14['every'](_0x487f7c=>_0x194045['some'](_0x559fc2=>_0x559fc2['containsRange'](_0x487f7c,!0x0)))&&_0x5a5fdf['discard']());}const _0x2fe5be=_0x147536(),_0x4d6ebf=_0x54c8d3['id'],_0x128214='deletion:'+_0x538360,_0x2f3c14=this['_setSuggestionData']({'id':_0x2fe5be,'type':_0x128214,'createdAt':new Date(),'authorId':_0x4d6ebf,'attributes':_0x5c27d6});for(const _0x3c746a of _0x194045)_0x3c746a['detach'](),_0x3c746a['isCollapsed']||'$graveyard'==_0x3c746a['root']['rootName']||this['_addSuggestionMarker'](_0x128214,_0x2fe5be,_0x4d6ebf,_0x3c746a,o['getMultiRangeId']());return _0x2f3c14;}['markAttributeChange'](_0x250972,_0x65cb46,_0x3a8666,_0x4dd2de,_0x21b46e){if(_0x250972['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x556583=this['editor']['plugins']['get']('Users')['me']['id'],_0x5649e6=Array['from'](this['_suggestions']['values']())['filter'](_0x454f49=>'attribute'==_0x454f49['type']&&_0x454f49['data']['key']==_0x65cb46&&_0x454f49['isIntersectingWithRange'](_0x250972));if(this['_trackingSessionId']&&(_0x21b46e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x11d016=this['_findSuggestions'](_0x250972,'insertion')['filter'](({meta:_0x326158})=>_0x326158['isOwn']&&!_0x326158['isInsideObject']&&!_0x326158['isNextTo'])['map'](({suggestion:_0x3a3b37})=>_0x3a3b37);_0x5649e6['unshift'](..._0x11d016);}const _0x37eb28=new Map([[_0x250972,_0x3a8666]]);for(const _0x341753 of _0x5649e6){const _0x547274='attribute'==_0x341753['type']?_0x341753['data']['oldValue']:void 0x0,_0x58dcaa=_0x341753['getFirstRange'](),_0x41a9c1=Array['from'](_0x37eb28['keys']())['find'](_0x292c52=>_0x292c52['isIntersecting'](_0x58dcaa));if(!_0x41a9c1)continue;const _0x422f2d=_0x41a9c1['getDifference'](_0x58dcaa);this['_isBlockAttribute'](_0x65cb46)&&'insertion'==_0x341753['type']&&0x0!=_0x422f2d['length']||(_0x37eb28['delete'](_0x41a9c1),_0x422f2d['forEach'](_0x33cbac=>{_0x37eb28['set'](_0x33cbac,_0x3a8666);}),'insertion'!=_0x341753['type']&&_0x547274!=_0x4dd2de&&_0x37eb28['set'](_0x41a9c1['getIntersection'](_0x58dcaa),_0x547274));}const _0x513bbd=[];for(const [_0x2bfc36,_0x3fcc81]of _0x37eb28){const _0xc286de=_0x147536(),_0x5b4f4f={'key':_0x65cb46,'oldValue':_0x3fcc81,'newValue':_0x4dd2de};_0x65cb46['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':_0x65cb46});const _0x9ee8b8=('attribute:'+(_0x65cb46+'|'+Kt({'newValue':_0x4dd2de})))['substring'](0x0,0x3c),_0x114f80=this['_setSuggestionData']({'id':_0xc286de,'type':_0x9ee8b8,'data':_0x5b4f4f,'createdAt':new Date(),'authorId':_0x556583,'attributes':_0x21b46e});_0x513bbd['push'](_0x114f80),this['_addSuggestionMarker'](_0x9ee8b8,_0xc286de,_0x556583,_0x2bfc36);}return _0x513bbd;}['enableDefaultAttributesIntegration'](_0x4fde28){this['enableCommand'](_0x4fde28,(_0x42426a,..._0x46cdfb)=>{this['_recordAttributeChanges'](()=>{_0x42426a(..._0x46cdfb);});});}['registerBlockAttribute'](_0x298102){this['_blockAttributeKeys']['add'](_0x298102);}['registerInlineAttribute'](_0xf02cc0){this['_inlineAttributeKeys']['add'](_0xf02cc0);}['startTrackingSession'](_0x4dbf78){return this['_trackingSessionId']=void 0x0!==_0x4dbf78?_0x4dbf78:_0x147536(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1b7cf4){return'attribute'==_0x1b7cf4['type']?_0x1b7cf4['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x35275a,_0x5ee5c1){const _0x27805d=_0x35275a['getFirstMarker']();this['_model']['change'](_0x1af52b=>{_0x1af52b['updateMarker'](_0x27805d,{'range':_0x5ee5c1});});}['_addThreadToSuggestion'](_0x11d5b1){const _0x2672e1=_0x11d5b1['id'],_0x45c14d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2672e1)||this['_commentsRepository']['addCommentThread']({'channelId':_0x45c14d,'threadId':_0x2672e1,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x340ee6=this['_commentsRepository']['getCommentThread'](_0x2672e1);_0x340ee6['unbind']('isRemovable'),_0x340ee6['isRemovable']=!0x1,_0x11d5b1['commentThread']=_0x340ee6;}['_checkSuggestionCorrectness'](_0x19c19c,_0x61229b,_0x2dacfa,_0x288f02){if(_0x19c19c['type']!=_0x61229b||_0x19c19c['subType']!=_0x2dacfa||_0x19c19c['creator']['id']!=_0x288f02)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3bf293('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xed16cc,_0x53a322){const _0x3f3745=_0xed16cc['getFirstRange']();if(_0x53a322['isEqual'](_0x3f3745))_0xed16cc['removeMarkers']();else{if(_0x3f3745['containsRange'](_0x53a322)){const _0xe8686c=this['_model']['createPositionAt'](_0x53a322['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xed16cc,this['_model']['createRange'](_0x3f3745['start'],_0xe8686c));const _0x4341c8=_0x147536(),_0x2b9d1d=_0xed16cc['creator']['id'],_0x28abc6=_0xed16cc['type']+':'+_0xed16cc['subType'];this['_setSuggestionData']({'id':_0x4341c8,'type':_0x28abc6,'createdAt':new Date(),'authorId':_0x2b9d1d,'data':_0xed16cc['data'],'attributes':_0xed16cc['attributes']});const _0x56ca64=this['_model']['createPositionAt'](_0x53a322['end']['parent'],'after'),_0x555098=this['_model']['createRange'](_0x56ca64,_0x3f3745['end']);this['_addSuggestionMarker'](_0x28abc6,_0x4341c8,_0x2b9d1d,_0x555098);}else{if(_0x3f3745['containsPosition'](_0x53a322['start'])){const _0xfed190=this['_model']['createPositionAt'](_0x53a322['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xed16cc,this['_model']['createRange'](_0x3f3745['start'],_0xfed190));}else{const _0x5040e8=this['_model']['createPositionAt'](_0x53a322['end']['parent'],'after');this['_setSuggestionRange'](_0xed16cc,this['_model']['createRange'](_0x5040e8,_0x3f3745['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x67a98e){for(const {suggestion:_0x2072a8,meta:_0x43206f}of this['_findSuggestions'](_0x67a98e,'insertion')){if(!_0x43206f['isOwn'])continue;const _0x28b99a=_0x2072a8['getRanges']();for(const _0x5b4af9 of _0x28b99a)if(!_0x67a98e['getDifference'](_0x5b4af9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x103db7){const _0xe65919=this['editor']['plugins']['get']('Users')['getUser'](_0x103db7);if(!_0xe65919)throw new _0x3bf293('track-changes-user-not-found',this);return _0xe65919;}['_getExternalAuthor'](_0x5cde19){const _0x513464=this['editor']['plugins']['get']('Users'),_0x46d4d2=_0x39cd73('external:'+_0x5cde19),_0x41f5c2=_0x513464['getUser'](_0x46d4d2);return _0x41f5c2||_0x513464['addUser']({'id':_0x46d4d2,'name':_0x5cde19});}['_createSuggestion'](_0x5c1a23,_0x134fca,_0x352144,_0x1df589,_0x5cc4e2,_0x17a195){const _0x51006f=this['_getAuthorFromId'](_0x1df589),_0x628a0a=this['_suggestionFactory']['buildSuggestion'](_0x5c1a23,_0x134fca,_0x352144,_0x51006f,_0x5cc4e2,_0x4e7cb9=>{this['_updateSuggestionData'](_0x352144,{'attributes':_0x4e7cb9});const _0x261619=this['getSuggestion'](_0x352144);this['_joinWithAdjacentSuggestions'](new Set([_0x261619])),this['_refreshSuggestionsChain'](new Set([_0x261619]));},_0x17a195);return this['listenTo'](_0x628a0a,'accept',()=>{this['_updateSuggestionData'](_0x352144,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x628a0a,'discard',()=>{this['_updateSuggestionData'](_0x352144,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x352144,_0x628a0a),this['_suggestionState']['set'](_0x628a0a,'notReady'),_0x628a0a;}['_splitMarkerName'](_0x1ed19e){const _0x23fa78=_0x1ed19e['split'](':');return{'group':_0x23fa78[0x0],'type':_0x23fa78[0x1],'subType':_0x23fa78['length']>=0x5?_0x23fa78[0x2]:null,'id':_0x23fa78['length']<0x5?_0x23fa78[0x2]:_0x23fa78[0x3],'authorId':_0x23fa78['length']<0x5?_0x23fa78[0x3]:_0x23fa78[0x4],'markerCount':0x6==_0x23fa78['length']?_0x23fa78[0x5]:null};}['_breakSuggestionMarker'](_0xba9506,_0x1e332e,_0x2516bd){const _0x3e9df3=_0xba9506['getFirstRange'](),_0x13328a=_0x3e9df3['start'],_0xff918f=_0x3e9df3['end'];this['_setSuggestionRange'](_0xba9506,this['_model']['createRange'](_0x13328a,_0x1e332e));const _0x6fb33f=_0x147536(),_0x42e21f=_0xba9506['creator']['id'],_0x1095a5=_0xba9506['type']+(_0xba9506['subType']?':'+_0xba9506['subType']:'');this['_setSuggestionData']({'id':_0x6fb33f,'type':_0x1095a5,'createdAt':new Date(),'authorId':_0x42e21f,'originalSuggestionId':_0xba9506['_originalSuggestionId']||_0xba9506['id'],'attributes':_0xba9506['attributes'],'data':_0xba9506['data']});const _0x23ead6=this['_getAttributeKey'](_0xba9506);('formatBlock'==_0xba9506['type']||_0x23ead6&&this['_isBlockAttribute'](_0x23ead6))&&(_0x2516bd=this['_model']['createPositionBefore'](_0x2516bd['parent'])),this['_addSuggestionMarker'](_0x1095a5,_0x6fb33f,_0x42e21f,this['_model']['createRange'](_0x2516bd,_0xff918f));}['_findSuggestions'](_0x2af7d5,_0x543bbf=null){const _0x57ebaa=[],_0x42bbbc=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2af7d5)||(_0x2af7d5=[_0x2af7d5]);for(const _0x496f92 of this['getSuggestions']()){if(!_0x496f92['isInContent'])continue;if(_0x543bbf&&_0x496f92['type']!=_0x543bbf)continue;let _0x4eb353=!0x1;for(const _0x277252 of _0x496f92['getRanges']()){for(const _0x11eecd of _0x2af7d5){const _0x201adf=_0x11eecd['start']['isEqual'](_0x277252['end'])||_0x11eecd['end']['isEqual'](_0x277252['start']);if(_0x201adf||_0x11eecd['getIntersection'](_0x277252)){const _0x100125=_0x11eecd['containsRange'](_0x277252)&&Gt(this['_model']['schema'],_0x277252['start'],_0x11eecd),_0x3890b4=_0x277252['containsRange'](_0x11eecd)&&Gt(this['_model']['schema'],_0x11eecd['start'],_0x277252);_0x57ebaa['push']({'suggestion':_0x496f92,'meta':{'isOwn':_0x42bbbc==_0x496f92['author'],'isNextTo':_0x201adf,'isInsideObject':_0x100125,'containsRangeInObject':_0x3890b4}}),_0x4eb353=!0x0;break;}}if(_0x4eb353)break;}}return _0x57ebaa;}['_addSuggestionMarker'](_0x4beee0,_0x5acf3d,_0x45e900,_0x3eba63,_0x948f5f){this['_model']['change'](_0x2597a9=>{let _0x4abbb4='suggestion:'+_0x4beee0+':'+_0x5acf3d+':'+_0x45e900;_0x948f5f&&(_0x4abbb4=_0x4abbb4+':'+_0x948f5f),_0x2597a9['addMarker'](_0x4abbb4,{'range':_0x3eba63,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x22a0c7){const _0x8db8d5=_0x22a0c7['previous'],_0xcd6bc6=_0x22a0c7['next'];_0x22a0c7['previous']=null,_0x22a0c7['next']=null,null!=_0x8db8d5&&_0x8db8d5['next']==_0x22a0c7&&(_0x8db8d5['next']=_0xcd6bc6),null!=_0xcd6bc6&&_0xcd6bc6['previous']==_0x22a0c7&&(_0xcd6bc6['previous']=_0x8db8d5),'ready'==this['_suggestionState']['get'](_0x22a0c7)&&(this['_suggestionState']['set'](_0x22a0c7,'removed'),this['fire']('suggestionUnloaded',_0x22a0c7,_0x8db8d5,_0xcd6bc6));}['_setSuggestionData'](_0x381499){const _0xbb5a44=_0x381499['id'],_0x2d483a=this['addSuggestionData'](_0x381499);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x735971=this['editor']['plugins']['get']('PendingActions'),_0x2fb3dc=_0x2d483a['hasComments'],_0x530643=_0x2d483a['subType']?_0x2d483a['type']+':'+_0x2d483a['subType']:_0x2d483a['type'],_0xcfd33c=this['editor']['locale'],_0x3b501d=_0x735971['add'](c(_0xcfd33c,'PENDING_ACTION_SUGGESTION')),_0x423f17={'id':_0xbb5a44,'type':_0x530643,'hasComments':_0x2fb3dc,'data':_0x381499['data']||null,'originalSuggestionId':_0x381499['originalSuggestionId']||null,'attributes':_0x2d483a['attributes']};this['_adapter']['addSuggestion'](_0x423f17)['then'](_0x3a42fa=>{_0x2d483a['_saved']=!0x0,_0x735971['remove'](_0x3b501d),_0x3a42fa&&_0x3a42fa['createdAt']&&(this['_suggestions']['get'](_0xbb5a44)['createdAt']=_0x3a42fa['createdAt']);})['catch'](_0xe2b26b=>{throw _0x2257ec('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2d483a['discard']();}),_0x2d483a['stopListening'](),this['_suggestions']['delete'](_0x2d483a['id']),this['_suggestionState']['delete'](_0x2d483a),_0xe2b26b;});}return _0x2d483a;}['_isBlockAttribute'](_0x4f6afd){return this['_blockAttributeKeys']['has'](_0x4f6afd);}['_updateSuggestionData'](_0x1742b9,_0x4d3c9b){const _0x3f7ed2=this['editor']['plugins']['get']('PendingActions'),_0x457eb3=this['getSuggestion'](_0x1742b9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x457eb3['_saved']){const _0x29b86f=_0x3f7ed2['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1742b9,_0x4d3c9b)['then'](()=>{_0x3f7ed2['remove'](_0x29b86f);});}else _0x457eb3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1742b9,_0x4d3c9b);});}}['_getSuggestionData'](_0x35666a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3bf293('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x35666a);}['_handleNewSuggestionMarker'](_0x1a7997){const {id:_0x53521c,type:_0x443642,subType:_0x147550,authorId:_0x3621f5}=this['_splitMarkerName'](_0x1a7997),_0xfbe6c3=this['_suggestions']['get'](_0x53521c)||this['_createSuggestion'](_0x443642,_0x147550,_0x53521c,_0x3621f5,{});switch(this['_checkSuggestionCorrectness'](_0xfbe6c3,_0x443642,_0x147550,_0x3621f5),this['_suggestionState']['get'](_0xfbe6c3)){case'notReady':this['_getSuggestionData'](_0x53521c)['then'](_0x49cadd=>{let _0x206b0d=Promise['resolve']();_0x49cadd['hasComments']&&(_0x206b0d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x53521c})),_0x206b0d['then'](()=>{this['addSuggestionData'](_0x49cadd)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xfbe6c3,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x53521c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xfbe6c3,'ready'),this['fire']('suggestionLoaded',_0xfbe6c3);break;case'ready':this['fire']('suggestionChanged',_0xfbe6c3);}return _0xfbe6c3['addMarkerName'](_0x1a7997),_0xfbe6c3;}['_refreshSuggestionsChain'](_0x433e91){const _0x2dd316=Array['from'](_0x433e91),_0x25346c=_0x2dd316['filter'](_0x363e62=>'attribute'==_0x363e62['type']);this['_refreshAttributeSuggestionsChain'](_0x25346c);const _0x58b58e=_0x2dd316['filter'](_0x200411=>!_0x200411['isMultiRange']&&'attribute'!=_0x200411['type']),_0x4cce1c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc8bb7c=>!_0xc8bb7c['isMultiRange']&&'attribute'!=_0xc8bb7c['type']),_0x2d6cd7=_0x4cce1c['filter'](_0xd9879b=>!_0x433e91['has'](_0xd9879b)),_0x3131fe=new Map(_0x4cce1c['map'](_0x1c4c11=>[_0x1c4c11,this['_suggestionFactory']['getSuggestionCallback'](_0x1c4c11['type'],_0x1c4c11['subType'],'chain')])),_0x45a970=new Map(_0x4cce1c['map'](_0x1eb19c=>[_0x1eb19c,_0x1eb19c['getFirstRange']()])),_0x34ee7e=new Set(),_0x4acd3a=new Set();for(let _0x340d30=0x0;_0x340d30<_0x58b58e['length'];_0x340d30++)_0x254f4f(_0x58b58e[_0x340d30],_0x58b58e,_0x340d30+0x1);for(let _0x3c6aeb=0x0;_0x3c6aeb<_0x58b58e['length'];_0x3c6aeb++)_0x254f4f(_0x58b58e[_0x3c6aeb],_0x2d6cd7,0x0);const _0x79c226=new Set();for(let _0xe14a3c=0x0;_0xe14a3c<_0x58b58e['length'];_0xe14a3c++){const _0x2db79c=_0x58b58e[_0xe14a3c];!_0x4acd3a['has'](_0x2db79c)&&_0x2db79c['previous']&&(_0x79c226['add'](_0x2db79c['previous']),_0x2db79c['previous']['next']===_0x2db79c&&(_0x2db79c['previous']['next']=null),_0x2db79c['previous']=null),!_0x34ee7e['has'](_0x2db79c)&&_0x2db79c['next']&&(_0x79c226['add'](_0x2db79c['next']),_0x2db79c['next']['previous']===_0x2db79c&&(_0x2db79c['next']['previous']=null),_0x2db79c['next']=null);}function _0x254f4f(_0x306a1e,_0x2cdc21,_0x574d08){for(let _0x3bbd15=_0x574d08;_0x3bbd15<_0x2cdc21['length'];_0x3bbd15++){const _0x2a77f2=_0x237753(_0x306a1e,_0x2cdc21[_0x3bbd15]);_0x2a77f2&&(_0x2a77f2[0x0]['next']=_0x2a77f2[0x1],_0x2a77f2[0x1]['previous']=_0x2a77f2[0x0],_0x34ee7e['add'](_0x2a77f2[0x0]),_0x4acd3a['add'](_0x2a77f2[0x1]));}}function _0x237753(_0x38ebb8,_0x2c5a09){if(_0x38ebb8['author']['id']!==_0x2c5a09['author']['id'])return null;const _0x3ec553=_0x3131fe['get'](_0x38ebb8)(_0x38ebb8,_0x2c5a09,_0x45a970['get'](_0x38ebb8),_0x45a970['get'](_0x2c5a09));if(!_0x3ec553)return null;return _0x3131fe['get'](_0x2c5a09)(_0x38ebb8,_0x2c5a09,_0x45a970['get'](_0x38ebb8),_0x45a970['get'](_0x2c5a09))?_0x3ec553[0x1]['commentThread']&&_0x3ec553[0x1]['commentThread']['length']?null:_0x3ec553:null;}_0x79c226['size']&&this['_refreshSuggestionsChain'](_0x79c226);}['_refreshAttributeSuggestionsChain'](_0x9293a3){if(0x0==_0x9293a3['length'])return;const _0x505196=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f212e=>'attribute'==_0x3f212e['type']&&_0x3f212e['_isDataLoaded']),_0x1146bd=[],_0x42fd31=new Map();for(const _0x358d13 of _0x505196){const _0x1f581e=_0x39cd73(_0x358d13['attributes']);_0x42fd31['has'](_0x1f581e)||(_0x42fd31['set'](_0x1f581e,_0x1146bd['length']),_0x1146bd['push']([]));const _0x5cd51b=_0x42fd31['get'](_0x1f581e);_0x1146bd[_0x5cd51b]['push'](_0x358d13);}!(function(){_0x1146bd['sort']((_0x1b97b4,_0xea855b)=>{const _0x5a7741=_0x1b97b4[0x0]['createdAt'],_0x47107f=_0xea855b[0x0]['createdAt'];return _0x5a7741==_0x47107f?_0x1b97b4[0x0]['attributes']['groupId']<_0xea855b[0x0]['attributes']['groupId']?-0x1:0x1:_0x5a7741<_0x47107f?-0x1:0x1;});for(const _0x28b403 of _0x1146bd)_0x28b403['sort']((_0x52e713,_0x489d5d)=>_0x52e713['id']<_0x489d5d['id']?-0x1:0x1);}());for(let _0x36275b=0x0;_0x36275b<_0x1146bd['length'];_0x36275b++){if(0x0==_0x1146bd[_0x36275b]['length'])continue;const _0x2dee93=[];for(let _0x1fa2d1=_0x36275b+0x1;_0x1fa2d1<_0x1146bd['length'];_0x1fa2d1++)0x0!=_0x1146bd[_0x1fa2d1]['length']&&_0x41ede2(_0x1146bd[_0x36275b],_0x1146bd[_0x1fa2d1])&&_0x2dee93['push'](_0x1fa2d1);for(const _0x37a8c2 of _0x2dee93)_0x1146bd[_0x36275b]=_0x1146bd[_0x36275b]['concat'](_0x1146bd[_0x37a8c2]),_0x1146bd[_0x37a8c2]=[];}for(const _0x681478 of _0x1146bd)for(let _0x6c7353=0x0;_0x6c7353<_0x681478['length'];_0x6c7353++){const _0x4e5469=_0x681478[_0x6c7353+0x1]||null;_0x681478[_0x6c7353]['next']!==_0x4e5469&&(_0x681478[_0x6c7353]['next']=_0x4e5469);}for(const _0x5192e4 of _0x1146bd)for(let _0x274a87=0x0;_0x274a87<_0x5192e4['length'];_0x274a87++){const _0x562d45=_0x5192e4[_0x274a87-0x1]||null;_0x5192e4[_0x274a87]['previous']!==_0x562d45&&(_0x5192e4[_0x274a87]['previous']=_0x562d45);}function _0x41ede2(_0x4b1be4,_0x1b2760){if(_0x4b1be4[0x0]['attributes']['groupId']!==_0x1b2760[0x0]['attributes']['groupId']&&_0x4b1be4[0x0]['author']!==_0x1b2760[0x0]['author'])return!0x1;if(!function(_0x22fd60,_0x3fd50d){if(!_0x22fd60['hasComments']&&!_0x3fd50d['hasComments'])return!0x0;if(_0x22fd60['hasComments']&&_0x3fd50d['hasComments'])return!0x1;if(_0x22fd60['hasComments']&&_0x3fd50d['createdAt']<_0x22fd60['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3fd50d['hasComments']&&_0x22fd60['createdAt']<_0x3fd50d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4b1be4[0x0],_0x1b2760[0x0]))return!0x1;const _0x5325d5=Ft(_0x4b1be4[0x0]['attributes'],['groupId','trackingSessionId']),_0x5db4f3=Ft(_0x1b2760[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xe83722(_0x5325d5,_0x5db4f3))return!0x1;if(_0x4b1be4[0x0]['attributes']['groupId']==_0x1b2760[0x0]['attributes']['groupId'])return!0x0;if(_0x4b1be4[0x0]['attributes']['trackingSessionId']!==_0x1b2760[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4b1be4['every'](_0x4ce521=>_0x1b2760['some'](_0x576824=>_0x4ce521['getFirstRange']()['isEqual'](_0x576824['getFirstRange']())))&&_0x1b2760['every'](_0x19ea71=>_0x4b1be4['some'](_0x4cff40=>_0x19ea71['getFirstRange']()['isEqual'](_0x4cff40['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x21c5f8){const _0x15af51=Array['from'](_0x21c5f8),_0x224512=this['getSuggestions']({'skipNotAttached':!0x0}),_0x96b027=_0x224512['filter'](_0x4a2544=>!_0x21c5f8['has'](_0x4a2544)),_0x4f5cab=new Map(_0x15af51['map'](_0x46fe7c=>[_0x46fe7c,this['_suggestionFactory']['getSuggestionCallback'](_0x46fe7c['type'],_0x46fe7c['subType'],'join')])),_0x3885c0=new Map(_0x224512['map'](_0x449cbb=>[_0x449cbb,_0x449cbb['getRanges']()]));for(let _0x38500c=0x0;_0x38500c<_0x15af51['length'];_0x38500c++){if(_0x3f062e(this,_0x15af51[_0x38500c],_0x15af51,_0x38500c+0x1))return!0x0;}for(let _0x4733c2=0x0;_0x4733c2<_0x15af51['length'];_0x4733c2++){if(_0x3f062e(this,_0x15af51[_0x4733c2],_0x96b027,0x0))return!0x0;}return!0x1;function _0x3f062e(_0x178395,_0x2ef921,_0x3abe5e,_0x2c03ce){for(let _0x4d9753=_0x2c03ce;_0x4d9753<_0x3abe5e['length'];_0x4d9753++){const _0xd4012c=_0x3abe5e[_0x4d9753];if(_0xd4012c['type']!==_0x2ef921['type']||_0xd4012c['author']['id']!==_0x2ef921['author']['id']||_0xd4012c['subType']!==_0x2ef921['subType'])continue;if(!Qt(_0x2ef921,_0xd4012c))continue;if('attribute'==_0x2ef921['type']&&_0x2ef921['data']['oldValue']!=_0xd4012c['data']['oldValue'])continue;if('attribute'==_0x2ef921['type']&&_0x178395['_isBlockAttribute'](_0x2ef921['data']['key']))continue;if('formatBlock'==_0x2ef921['type']){const _0x43d447=_0x178395['editor']['model'],_0x3d2089=_0x2ef921['getContainedElement']();if(_0x3d2089&&(_0x43d447['schema']['isObject'](_0x3d2089)||_0x43d447['schema']['isLimit'](_0x3d2089)))continue;}const _0x507009=_0x4f5cab['get'](_0x2ef921),_0x1b38ea=_0x3885c0['get'](_0x2ef921),_0x29e202=_0x3885c0['get'](_0xd4012c),_0x4ed357=_0x2ef921['commentThread']&&_0x2ef921['commentThread']['length'],_0x5bd5af=_0xd4012c['commentThread']&&_0xd4012c['commentThread']['length'];if(!_0x4ed357&&_0x507009(_0x29e202,_0x1b38ea))return _0x178395['_joinSuggestions'](_0xd4012c,_0x2ef921),_0x3885c0['delete'](_0x2ef921),!0x0;if(!_0x5bd5af&&_0x507009(_0x1b38ea,_0x29e202))return _0x178395['_joinSuggestions'](_0x2ef921,_0xd4012c),_0x3885c0['delete'](_0xd4012c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x8dd2c4,_0x4c97e7){if(_0x8dd2c4['isMultiRange']){for(const _0x1330d2 of _0x4c97e7['getRanges']())_0x8dd2c4['addRange'](_0x1330d2);}else{const _0x170bc0=_0x4c97e7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x8dd2c4,this['_model']['createRange'](_0x8dd2c4['getFirstRange']()['start'],_0x170bc0));}_0x4c97e7['removeMarkers']();}['_getMarkerAnnouncementText'](_0xccb344,_0x10872b,_0xdc40b5){const _0x4d7a82=_0xccb344['startsWith']('format')||_0xccb344['startsWith']('attribute')?'FORMATTING':_0xccb344['toUpperCase']();return c(this['editor']['locale'],_0x10872b+'_'+_0x4d7a82+'_SUGGESTION_ANNOUNCEMENT',_0xdc40b5);}['_initAriaMarkerChangeAnnouncements'](){const _0x41dd59=this['editor'];if(!_0x41dd59['ui'])return;const {ariaLiveAnnouncer:_0x27da15}=_0x41dd59['ui'];_0x41b32b(this['_model'],({left:_0x424d9e,entered:_0x1981e2})=>{for(const _0x186da0 of _0x424d9e){const {group:_0xf9184e,type:_0x5bb957}=this['_splitMarkerName'](_0x186da0['name']);if('suggestion'===_0xf9184e){_0x27da15['announce'](this['_getMarkerAnnouncementText'](_0x5bb957,'LEAVE'));break;}}for(const _0x444e19 of _0x1981e2){const {group:_0x400fed,type:_0x11e71b}=this['_splitMarkerName'](_0x444e19['name']);if('suggestion'===_0x400fed){_0x27da15['announce'](this['_getMarkerAnnouncementText'](_0x11e71b,'ENTER',_0x5670bc(_0x3938eb)));break;}}});}['_processAttributeChanges'](_0x4cba75){if(this['_recordAttributeSuggestions'])return!0x1;const _0xe5b03a=this['editor'],_0x197467=_0xe5b03a['model']['document']['differ']['getChanges']();if(0x0==_0x197467['length'])return!0x1;const _0x144c7f=[],_0x3a24d1=_0x197467['filter'](_0x41362c=>'attribute'==_0x41362c['type']),_0x3204b7=_0x197467['filter'](_0x562db5=>'insert'==_0x562db5['type']&&'$text'!=_0x562db5['name']),_0x4f0a83=_0x197467['filter'](_0x5dd038=>'remove'==_0x5dd038['type']&&'$text'!=_0x5dd038['name']);for(const _0x3257bd of _0x3a24d1)_0x144c7f['push']({'key':_0x3257bd['attributeKey'],'newValue':_0x3257bd['attributeNewValue'],'oldValue':_0x3257bd['attributeOldValue'],'range':qt(_0x3257bd['range'],_0xe5b03a['model'])});for(const _0x2ad83d of _0x3204b7){const _0x1b489f=_0x4f0a83['find'](_0x13a58c=>_0x13a58c['position']['isEqual'](_0x2ad83d['position']));_0x1b489f&&_0x144c7f['push']({'key':u,'newValue':_0x2ad83d['name'],'oldValue':_0x1b489f['name'],'range':_0xe5b03a['model']['createRangeOn'](_0x2ad83d['position']['nodeAfter'])});}return 0x0!=_0x144c7f['length']&&this['_reduceExistingSuggestions'](_0x4cba75,_0x144c7f);}['_processAttributeSuggestions'](_0x3a732e){let _0x520867=!0x1;const _0x4d0ab3=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2dffd1=>_0x2dffd1['data']['newRange']&&_0x2dffd1['name']['startsWith']('suggestion:attribute:'));for(const _0x473fed of _0x4d0ab3){const {subType:_0x245e0b,id:_0x3c10ee}=this['_splitMarkerName'](_0x473fed['name']),_0x350aea=_0x245e0b['split']('|')[0x0];for(const _0x2a7988 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2a7988['id']!=_0x3c10ee&&'attribute'==_0x2a7988['type']&&_0x2a7988['data']&&_0x2a7988['data']['key']==_0x350aea&&_0x2a7988['getFirstRange']()['isIntersecting'](_0x473fed['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2a7988,_0x473fed['data']['newRange'],_0x3a732e),_0x520867=!0x0);}return _0x520867;}['_recordAttributeChanges'](_0x6c7569){this['_recordAttributeSuggestions']=!0x0,_0x6c7569();}['_isRegisteredAttribute'](_0x473e0c){const _0x147a67=this['_isBlockAttribute'](_0x473e0c),_0x1a7b17=this['_inlineAttributeKeys']['has'](_0x473e0c);return _0x147a67||_0x1a7b17;}['_reduceExistingSuggestions'](_0x1d444c,_0x54c72c){if(0x0==_0x54c72c['length'])return!0x1;let _0x982332=!0x1;for(const _0x1867d5 of _0x54c72c){const _0x302650=this['_findSuggestions'](_0x1867d5['range'],'attribute')['filter'](_0x4e09fc=>!_0x4e09fc['meta']['isNextTo'])['map'](_0x3da7ad=>_0x3da7ad['suggestion']),_0x4450ad=_0x39cd73({'newValue':_0x1867d5['newValue']});_0x302650['filter'](_0x277e73=>{const [_0x2d0329,_0x4546dc]=_0x277e73['subType']['split']('|');return _0x2d0329==_0x1867d5['key']&&_0x4546dc!=_0x4450ad;})['forEach'](_0x5dbeab=>{this['_reduceSuggestionAttributeRange'](_0x5dbeab,_0x1867d5['range'],_0x1d444c),_0x982332=!0x0;});}return _0x982332;}['_reduceSuggestionAttributeRange'](_0x46a413,_0xb336ce,_0x5c0abd){const _0x3d25fb=_0x46a413['getFirstRange']()['getDifference'](_0xb336ce);0x0!==_0x3d25fb['length']?0x1!==_0x3d25fb['length']?this['_breakSuggestionMarker'](_0x46a413,_0xb336ce['start'],_0xb336ce['end']):this['_setSuggestionRange'](_0x46a413,_0x3d25fb[0x0]):_0x5c0abd['removeMarker'](_0x46a413['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x47fdc6){this['_editor']=_0x47fdc6,this['_model']=_0x47fdc6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x21ec94,_0x17327b,_0x56567c,_0x5bb6a5,_0x4f1ed4,_0x1fe815,_0x19f31b){return new o(this['_model'],{'type':_0x21ec94,'subType':_0x17327b,'id':_0x56567c,'originalSuggestionId':_0x19f31b,'author':_0x5bb6a5,'creator':_0x5bb6a5,'attributes':_0x4f1ed4,'onAttributesChange':_0x1fe815,'onAccept':(..._0x4cc269)=>this['getSuggestionCallback'](_0x21ec94,_0x17327b,'accept')(..._0x4cc269),'onDiscard':(..._0x1daedf)=>this['getSuggestionCallback'](_0x21ec94,_0x17327b,'discard')(..._0x1daedf)});}['registerCustomCallback'](_0x2d40d0,_0x25690e,_0x17c082,_0x32655b){const _0x1a81d1=_0x2d40d0+':'+_0x25690e+':'+_0x17c082;this['_customCallbacks']['set'](_0x1a81d1,_0x32655b);}['getSuggestionCallback'](_0x5f5cc7,_0x8a2ba8,_0x45468d){const _0x5df56f=_0x5f5cc7+':'+_0x8a2ba8+':'+_0x45468d;return this['_customCallbacks']['get'](_0x5df56f)||this['_defaultCallbacks']['get'](_0x5f5cc7+':'+_0x45468d);}['_registerDefaultCallbacks'](){const _0x41f538=()=>!0x1,_0x1b1119=_0x1883c9=>{_0x1883c9['sort']((_0x3f24d9,_0x5c8c34)=>_0x3f24d9['start']['isBefore'](_0x5c8c34['start'])?0x1:-0x1),this['_model']['change'](_0x5aae05=>{for(const _0x57ff7a of _0x1883c9){let _0x9fe6cb;_0x9fe6cb=_0x57ff7a['end']['isAtEnd']&&_0x57ff7a['end']['parent']==_0x57ff7a['start']['nodeAfter']?_0x5aae05['createSelection'](_0x57ff7a['start']['nodeAfter'],'on'):_0x5aae05['createSelection'](_0x57ff7a),this['_model']['deleteContent'](_0x9fe6cb,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x189d71=(_0x47befb,_0x579703)=>{_0x579703&&this['_model']['change'](_0x5bf5c6=>{const {commandName:_0x1c2423,commandParams:_0x339aa2=[]}=_0x579703,_0x4aac45=_0x47befb['map'](_0x30adf6=>(Lt(_0x30adf6)&&(_0x30adf6=this['_model']['createRange'](_0x30adf6['end'])),_0x30adf6))['filter'](_0x346846=>'$graveyard'!==_0x346846['root']['rootName']);if(_0x4aac45['length']<0x1)return;const _0xbc5dcc=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x45fd12=>_0x3a5e87['fromRange'](_0x45fd12));_0x5bf5c6['setSelection'](_0x4aac45);for(const _0x3560a2 of this['_editor']['commands']['commands']())_0x3560a2['refresh']();_0x339aa2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1c2423,..._0x339aa2);const _0xb50c2b=_0xbc5dcc['filter'](_0x2d7ba2=>'$graveyard'!=_0x2d7ba2['root']['rootName']);_0xb50c2b['length']>0x0&&_0x5bf5c6['setSelection'](_0xb50c2b);for(const _0x550155 of _0xbc5dcc)_0x550155['detach']();});},_0x1f57de=(_0x2b9e06,_0xe306c1)=>0x1==_0x2b9e06['length']&&0x1==_0xe306c1['length']&&_0x2b9e06[0x0]['end']['isEqual'](_0xe306c1[0x0]['start']),_0x24070c=(_0x5b5b6,_0x41a409,_0x9262d6,_0x1720fe)=>Wt(_0x5b5b6,_0x41a409,_0x9262d6,_0x1720fe)?[_0x5b5b6,_0x41a409]:Wt(_0x41a409,_0x5b5b6,_0x1720fe,_0x9262d6)?[_0x41a409,_0x5b5b6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x41f538),this['_defaultCallbacks']['set']('insertion:discard',_0x1b1119),this['_defaultCallbacks']['set']('insertion:join',_0x1f57de),this['_defaultCallbacks']['set']('insertion:chain',_0x24070c),this['_defaultCallbacks']['set']('deletion:accept',_0x1b1119),this['_defaultCallbacks']['set']('deletion:discard',_0x41f538),this['_defaultCallbacks']['set']('deletion:join',_0x1f57de),this['_defaultCallbacks']['set']('deletion:chain',_0x24070c),this['_defaultCallbacks']['set']('formatInline:accept',_0x189d71),this['_defaultCallbacks']['set']('formatInline:discard',_0x41f538),this['_defaultCallbacks']['set']('formatInline:join',_0x1f57de),this['_defaultCallbacks']['set']('formatInline:chain',_0x41f538),this['_defaultCallbacks']['set']('formatBlock:accept',_0x189d71),this['_defaultCallbacks']['set']('formatBlock:discard',_0x41f538),this['_defaultCallbacks']['set']('formatBlock:join',_0x1f57de),this['_defaultCallbacks']['set']('formatBlock:chain',_0x41f538),this['_defaultCallbacks']['set']('attribute:accept',_0x41f538),this['_defaultCallbacks']['set']('attribute:discard',(_0x501a32,_0x1d11a3)=>{if(!_0x1d11a3)return;const _0x2658a4=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x9e8d8f=>{if(_0x1d11a3['key']==u)for(const _0x3a617a of _0x501a32){const _0x51d45c=_0x3a617a['start']['nodeAfter'],_0x29c7f3=_0x1d11a3['oldValue'];_0x9e8d8f['rename'](_0x51d45c,_0x29c7f3);}else{if(_0x2658a4['_isBlockAttribute'](_0x1d11a3['key'])){for(const _0x337c65 of _0x501a32)void 0x0!==_0x1d11a3['oldValue']?_0x9e8d8f['setAttribute'](_0x1d11a3['key'],_0x1d11a3['oldValue'],_0x337c65['start']['nodeAfter']):_0x9e8d8f['removeAttribute'](_0x1d11a3['key'],_0x337c65['start']['nodeAfter']);}else{for(const _0x4e7a15 of _0x501a32)_0x1d11a3['oldValue']?_0x9e8d8f['setAttribute'](_0x1d11a3['key'],_0x1d11a3['oldValue'],_0x4e7a15):_0x9e8d8f['removeAttribute'](_0x1d11a3['key'],_0x4e7a15);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1f57de);}}function Gt(_0x3b4e06,_0x322ea4,_0x5ef840){for(const _0x5abf7a of _0x322ea4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5abf7a['root']==_0x5abf7a)return!0x1;if(!_0x5ef840['containsItem'](_0x5abf7a))return!0x1;if(_0x3b4e06['isObject'](_0x5abf7a)||_0x3b4e06['isLimit'](_0x5abf7a))return!0x0;}return!0x1;}function Lt(_0x5bcff1){return _0x5bcff1['end']['parent']==_0x5bcff1['start']['nodeAfter']&&_0x5bcff1['end']['isAtStart'];}function Jt(_0x260403,_0x4c2c1e,_0x14558e,_0x2bf64c){const _0x3fa447=_0x155760=>!_0x155760['item']['is']('$textProxy')&&!_0x2bf64c['isObject'](_0x155760['item']),_0x4b24a6=_0x260403['start']['getLastMatchingPosition'](_0x3fa447),_0x5d3fdb=_0x260403['end']['getLastMatchingPosition'](_0x3fa447,{'direction':'backward'});return(!_0x260403['start']['isEqual'](_0x4b24a6)||!_0x260403['end']['isEqual'](_0x5d3fdb))&&(_0x4b24a6['isBefore'](_0x5d3fdb)?_0x14558e['updateMarker'](_0x4c2c1e,{'range':_0x14558e['createRange'](_0x4b24a6,_0x5d3fdb)}):_0x14558e['removeMarker'](_0x4c2c1e),!0x0);}function Kt(_0xf829d7){return _0x39cd73(_0xf829d7);}function Ht(_0x325c41){const _0x13d29e=_0x325c41['start']['nodeAfter'];return _0x13d29e&&_0x13d29e['is']('element');}function qt(_0x4d42ba,_0x2f25b3){return null==_0x4d42ba['end']['nodeBefore']&&_0x4d42ba['end']['parent']==_0x4d42ba['start']['nodeAfter']?zt(_0x4d42ba['start']['nodeAfter'],_0x2f25b3):_0x4d42ba;}function zt(_0xec3da4,_0x3e6b69){const _0x23e275=_0x3e6b69['schema']['isObject'](_0xec3da4)||_0x3e6b69['schema']['isSelectable'](_0xec3da4);return _0x3e6b69['createRange'](_0x3e6b69['createPositionAt'](_0xec3da4,'before'),_0x23e275?_0x3e6b69['createPositionAfter'](_0xec3da4):_0x3e6b69['createPositionAt'](_0xec3da4,'end'));}function Wt(_0x567910,_0x139dc2,_0x4d85fa,_0x1b4b24){return!!Qt(_0x567910,_0x139dc2)&&_0x4d85fa['end']['isEqual'](_0x1b4b24['start']);}function Qt(_0x112e72,_0x364835){if(!_0x112e72['_isDataLoaded']||!_0x364835['_isDataLoaded'])return!0x1;const _0x60adfe=new Set(Object['keys'](_0x112e72['attributes'])),_0x25b6b7=new Set(Object['keys'](_0x364835['attributes']));if(_0x60adfe['delete']('groupId'),_0x25b6b7['delete']('groupId'),0x0==_0x60adfe['size']&&0x0==_0x25b6b7['size'])return!0x0;if(_0x60adfe['size']!=_0x25b6b7['size'])return!0x1;const _0x3ac52b={..._0x112e72['attributes']},_0x5d2e8e={..._0x364835['attributes']};return delete _0x3ac52b['groupId'],delete _0x5d2e8e['groupId'],JSON['stringify'](_0x3ac52b)==JSON['stringify'](_0x5d2e8e);}function Xt(_0x519963,_0x44375c){const _0x2fada2=Yt(_0x519963['attributes']),_0xeb6ed7=Yt(_0x44375c);if(!_0x519963['_isDataLoaded'])return!0x1;for(const _0x52deb4 of Object['keys'](_0xeb6ed7))if(!_0xe83722(_0x2fada2[_0x52deb4],_0xeb6ed7[_0x52deb4]))return!0x1;return!0x0;}function Yt(_0x34ad1f){const _0x2d539c=Object['assign']({},_0x34ad1f);return delete _0x2d539c['skipNestingCheck'],delete _0x2d539c['tablePasteChainId'],_0x2d539c;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x4b5d5f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x57c481,_0xfa859d,_0x3d3155,_0x53946c){super(),this['model']=_0xfa859d,this['view']=_0x3d3155,this['commentThreadController']=_0x53946c,this['_editor']=_0x57c481,this['_acceptCommand']=_0x57c481['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x57c481['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x8fcb4f,_0x54cd37)=>_0x8fcb4f||_0x54cd37),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3147b1=>_0x3147b1&&this['_editor']['model']['canEditAt'](_0xfa859d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x153092=>_0x153092&&this['_editor']['model']['canEditAt'](_0xfa859d['getRanges']())),this['_pendingAction']=null,_0x3d3155['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3d3155,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3d3155,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3d3155,'change:isDirty',()=>{_0x3d3155['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 _0x59ad2c=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x59ad2c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x36af6d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x29e354,_0x341ffe,_0x2c87aa,_0x514cb6){super(_0x29e354),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1c3831(_0x29e354,c(_0x29e354,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x341ffe['authoredAt']),this['bind']('authoredAt')['to'](_0x341ffe),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',_0x341ffe,'authoredAt',this,'descriptionParts',(_0x3736fc,_0x352274,_0xadd331)=>{const _0x34a743=_0xadd331['map'](_0x34d6cf=>ls(_0x34d6cf['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3736fc-0x1,_0x341ffe['author']['name'],_0x352274?_0x514cb6['formatDateTime'](_0x352274):'',new DOMParser()['parseFromString'](_0x34a743,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3d953b(),this['focusTracker']=new _0x5d45b2(),this['keystrokes']=new _0x5b4e17(),this['focusCycler']=new _0x582a27({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x404950=>_0x404950['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x341ffe,this['_localUser']=_0x2c87aa,this['_config']=_0x514cb6,_0x514cb6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x29d324(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4f5ba2}=this['_config'];this['commentsListView']=new _0x4f5ba2(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',_0x498c2a=>_0x498c2a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x28844a,_0x49e4a1)=>_0x28844a||!!_0x49e4a1);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5975b0}=this['_config'],_0x341d01=new _0x5975b0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x225800=_0x341d01['commentInputView'];return _0x341d01['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x225800,'value',(_0x2f6a38,_0xedfc16,_0x2af167)=>!!_0x2af167||_0x2f6a38&&!_0xedfc16),_0x225800['on']('submit',(_0x313349,_0x52c544)=>{this['fire']('addComment',_0x52c544),_0x225800['editor']['setData']('');}),_0x225800['on']('cancel',()=>this['focus']()),_0x225800['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x341d01;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x141975,_0x20ea24,_0x52ca5f,_0x563697){super(_0x141975,_0x20ea24,_0x52ca5f,_0x563697),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x59bbf1=>_0x59bbf1&&_0x59bbf1[0x0]?_0x59bbf1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x44d6a9,_0x31f966)=>{let _0x3e3fe9='';for(const _0x46bff9 of _0x44d6a9)_0x3e3fe9+='<p>'+ls(_0x46bff9['content'],_0x46bff9['color'])+'</p>';return _0x31f966?_0x3e3fe9:ti(_0x3e3fe9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x563697['SuggestionView'](_0x141975,_0x20ea24,{'formatDateTime':_0x563697['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 _0x48de17=this['bindTemplate'],_0x56b506=[this['suggestionView']];return this['commentsListView']&&_0x56b506['push'](this['commentsListView']),this['commentThreadInputView']&&_0x56b506['push'](this['commentThreadInputView']),_0x56b506['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x48de17['if']('isActive','ck-suggestion-wrapper--active'),_0x48de17['to']('type',_0x5c3893=>'ck-suggestion-'+_0x5c3893),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':_0x48de17['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x56b506};}['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 _0x36af6d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x46bebe,_0x400aa9,_0x58de6e){super(_0x46bebe),this['_model']=_0x400aa9,this['_config']=_0x58de6e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x400aa9),this['acceptButton']=this['_createButton'](c(_0x46bebe,'Accept\x20suggestion'),_0x42c957,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x46bebe,'Discard\x20suggestion'),_0x3172ec,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x46ccea(_0x46bebe,_0x400aa9['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3d953b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5d45b2(),this['keystrokes']=new _0x5b4e17(),this['focusCycler']=new _0x582a27({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x40a38c=>_0x40a38c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3d08e5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3d08e5['innerHTML']=this['description'],this['on']('change:description',(_0x5e7ec7,_0x58f7d5,_0x292dff)=>{_0x3d08e5['innerHTML']=_0x292dff;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2d4a16=this['bindTemplate'],_0x23051=[{'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':_0x2d4a16['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2d4a16['to']('authoredAt',_0xcc2da6=>this['_config']['formatDateTime'](_0xcc2da6))}]}]},{'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']&&_0x23051['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':_0x23051}]};}['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'](_0x554541,_0x1226a3,_0x24aaee,_0x5c54ed,_0x4a6cad){const _0x30bab1=new _0x51bdbf(this['locale']);return _0x30bab1['set']({'label':_0x554541,'icon':_0x1226a3,'tooltip':!0x0,'tooltipPosition':_0x4a6cad}),_0x30bab1['extendTemplate']({'attributes':{'class':_0x24aaee}}),_0x30bab1['on']('execute',()=>{this['fire'](_0x5c54ed,this['_model']['id']);}),_0x30bab1;}['_setupKeyboardNavigation'](){const _0x386942=this['element'];this['keystrokes']['listenTo'](_0x386942);for(const _0x3956c4 of this['focusables'])this['focusTracker']['add'](_0x3956c4['element']),this['keystrokes']['listenTo'](_0x3956c4['element']);this['keystrokes']['set']('enter',(_0x38251a,_0x1d218b)=>{_0x386942===_0x38251a['target']&&(this['focusCycler']['focusFirst'](),_0x1d218b());}),this['keystrokes']['set']('esc',(_0xfca222,_0x407e14)=>{_0x386942!==_0xfca222['target']&&(this['focus'](),_0x407e14());});}}class d extends _0x577ae7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x671950,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5932df){super(_0x5932df),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1c3e79=this['editor']['config'];_0x1c3e79['define']('trackChanges.SuggestionThreadView',fe),_0x1c3e79['define']('trackChanges.SuggestionView',we),_0x1c3e79['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1c3e79['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x6f86f,_0x38de6e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x50d909,_0x5ee1c0]of this['_handleControllerBuffer']){const _0x4f17f2=this['_suggestionToController']['has'](_0x50d909);_0x4f17f2||_0x5ee1c0?_0x4f17f2&&_0x5ee1c0&&this['_destroyController'](_0x50d909):this['_initializeController'](_0x50d909);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x6f86f,_0x38de6e);}['init'](){const _0x37d4e1=this['editor'],_0x28f6f1=_0x37d4e1['plugins']['get']('TrackChangesEditing'),_0x441c86=_0x37d4e1['plugins']['get']('Annotations'),_0x3e4da1=_0x37d4e1['plugins']['get']('EditorAnnotations'),_0x56af90=_0x37d4e1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3e4da1['addSourceCollector'](()=>{const _0x3eb0d2=[];for(const [_0x135e0e,_0x4b4afa]of Array['from'](this['_suggestionToController'])){const _0x10a08d=_0x135e0e['getAllAdjacentSuggestions'](),_0x3bf145=[];for(const _0x5ae50e of _0x10a08d){if(!_0x5ae50e['isInContent'])continue;if(_0x5ae50e['isMultiRange']){_0x3bf145['push'](..._0x5ae50e['getRanges']());continue;}const _0x571033=_0x5ae50e['getFirstRange']();if(_0x3bf145['length']>0x0){const _0x1db29f=_0x3bf145[0x0]['getJoined'](_0x571033);if(_0x1db29f){_0x3bf145[0x0]=_0x1db29f;continue;}}_0x3bf145['push'](_0x571033);}_0x3eb0d2['push']([_0x4b4afa['view'],_0x3bf145]);}return _0x3eb0d2;}),this['listenTo'](_0x28f6f1,'suggestionLoaded',(_0x3bf0ab,_0x42f33b)=>{this['listenTo'](_0x42f33b,'change:previous',(_0xd260e5,_0x427593,_0x484aad,_0x444cd1)=>{_0x42f33b['isInContent']&&(null==_0x484aad?(this['_updateController'](_0x444cd1['head']),this['_handleSuggestionControllerDelayed'](_0x42f33b,!0x1)):(this['_updateController'](_0x484aad['head']),null==_0x444cd1&&this['_handleSuggestionControllerDelayed'](_0x42f33b,!0x0)));}),null!==_0x42f33b['previous']?this['_updateController'](_0x42f33b['head']):this['_handleSuggestionControllerDelayed'](_0x42f33b,!0x1);}),this['listenTo'](_0x28f6f1,'suggestionUnloaded',(_0x360ed5,_0x389d15,_0x2873f2)=>{this['stopListening'](_0x389d15,'change:previous'),this['_handleControllerBuffer']['delete'](_0x389d15),this['_suggestionToController']['has'](_0x389d15)&&this['_destroyController'](_0x389d15),_0x2873f2&&this['_updateController'](_0x2873f2['head']);}),this['listenTo'](_0x28f6f1,'suggestionChanged',(_0xe49c27,_0x4a557b)=>{this['_updateController'](_0x4a557b);}),this['listenTo'](_0x441c86,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x56af90,'addComment',(_0x3732fb,{threadId:_0x27e912,isFromAdapter:_0x128fd2})=>{if(_0x128fd2||!_0x28f6f1['hasSuggestion'](_0x27e912))return;const _0x44d9a4=_0x28f6f1['getSuggestion'](_0x27e912);this['_suggestionToController']['get'](_0x44d9a4)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1033a1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4aa868;for(const _0x9ceddd in _0x1033a1){const _0xc74963=_0x9ceddd,_0x3e52a5=_0x1033a1[_0xc74963];if('trackChangesLicenseKeyValid'==_0x3e52a5||'trackChangesLicenseKeyInvalid'==_0x3e52a5||'trackChangesLicenseKeyExpired'==_0x3e52a5||'trackChangesLicenseKeyDomainLimit'==_0x3e52a5||'trackChangesLicenseKeyNotAllowed'==_0x3e52a5||'trackChangesLicenseKeyEvaluationLimit'==_0x3e52a5||'trackChangesLicenseKeyTrialLimit'==_0x3e52a5||'trackChangesLicenseKeyUsageLimit'==_0x3e52a5){delete _0x1033a1[_0xc74963],_0x4aa868=_0x3e52a5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4aa868&&_0x1033a1['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4aa868&&_0x1033a1['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4aa868&&_0x1033a1['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4aa868&&_0x1033a1['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4aa868&&_0x1033a1['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4aa868&&_0x1033a1['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4aa868&&_0x1033a1['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x32897e=this['editor']['plugins']['get']('Annotations'),_0x57d1b4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x230aa3=Array['from'](_0x32897e['activeAnnotations'],_0x236283=>_0x236283['innerView'])['filter'](_0x1fd29b=>this['_viewToController']['has'](_0x1fd29b)),_0x35a489=[];for(const _0x218ea3 of _0x230aa3){const _0x3f73ea=this['_viewToController']['get'](_0x218ea3)['model']['getAllAdjacentSuggestions']();_0x35a489['push'](..._0x3f73ea['reduce']((_0x539dd5,_0x51d290)=>[..._0x539dd5,..._0x51d290['getMarkerNames']()],[]));}_0x57d1b4['activeMarkers']=_0x35a489;}['_addUIComponentsToFactory'](){const _0x136072=this['editor'],_0x2a7c36=_0x136072['locale'],_0x57b8ce=c(_0x2a7c36,'Track\x20changes'),_0x95ebcf=new _0x2d3f2d([{'type':'switchbutton','model':new _0x41a0e2({'withText':!0x0,'isToggleable':!0x0,'label':_0x57b8ce,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x41a0e2({'withText':!0x0,'label':c(_0x2a7c36,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41a0e2({'withText':!0x0,'label':c(_0x2a7c36,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41a0e2({'withText':!0x0,'label':c(_0x2a7c36,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41a0e2({'withText':!0x0,'label':c(_0x2a7c36,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x136072['plugins']['has']('TrackChangesPreview')&&_0x95ebcf['addMany']([{'type':'separator'},{'type':'button','model':new _0x41a0e2({'withText':!0x0,'label':c(_0x2a7c36,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x23138a of _0x95ebcf)if(ke(_0x23138a)){const _0xab8266=_0x136072['commands']['get'](_0x23138a['model']['commandName']);_0x23138a['model']['bind']('isOn','isEnabled')['to'](_0xab8266,'value','isEnabled');}_0x136072['ui']['componentFactory']['add']('trackChanges',_0x358d4c=>this['_createToolbarButton'](_0x358d4c,_0x95ebcf,_0x57b8ce)),_0x136072['ui']['componentFactory']['add']('menuBar:trackChanges',_0x265c02=>this['_createMenuBarMenu'](_0x265c02,_0x95ebcf,_0x57b8ce));}['_createToolbarButton'](_0x226952,_0x1b7755,_0x12f993){const _0x5ed9fe=_0x49273c(_0x226952,_0x4bcb62),_0x370265=this['editor']['commands']['get']('trackChanges');_0x5ed9fe['buttonView']['set']({'tooltip':_0x12f993,'label':_0x12f993,'icon':_0x263ea4}),_0x5ed9fe['buttonView']['bind']('isOn')['to'](_0x370265,'value'),_0x5ed9fe['buttonView']['on']('execute',()=>{_0x370265['execute'](),this['editor']['editing']['view']['focus']();}),_0x45854c(_0x5ed9fe,_0x1b7755,{'role':'menu'});const _0x3ce25f=[];for(const _0x1dda72 of _0x1b7755)ke(_0x1dda72)&&_0x3ce25f['push'](this['editor']['commands']['get'](_0x1dda72['model']['commandName']));const _0x52deee=_0x5ed9fe['buttonView'];return _0x52deee['actionView']['unbind']('isEnabled'),_0x52deee['arrowView']['unbind']('isEnabled'),_0x52deee['actionView']['bind']('isEnabled')['to'](_0x370265,'isEnabled'),_0x52deee['arrowView']['bind']('isEnabled')['toMany'](_0x3ce25f,'isEnabled',(..._0x5e3fae)=>_0x5e3fae['some'](_0x4dbbd2=>_0x4dbbd2)),_0x5ed9fe['on']('execute',_0x16c40b=>{this['editor']['execute'](_0x16c40b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5ed9fe;}['_createMenuBarMenu'](_0x170a09,_0x54b259,_0x1f83a3){const _0x9ec330=new _0x34d256(_0x170a09),_0x3eef55=this['editor']['commands']['get']('trackChanges');_0x9ec330['buttonView']['set']({'label':_0x1f83a3,'icon':_0x263ea4});const _0xfbbc50=new _0x1706ac(_0x170a09);for(const _0x57c64d of _0x54b259){if('separator'==_0x57c64d['type']){_0xfbbc50['items']['add'](new _0x475808(_0x170a09));continue;}const _0x1f34ae=new _0x359a6c(_0x170a09,_0x9ec330),_0x1b3661=new _0x94c5e9(_0x170a09),_0x2d782b=_0x57c64d['model'];_0x1b3661['bind'](...Object['keys'](_0x2d782b))['to'](_0x2d782b),_0x1b3661['delegate']('execute')['to'](_0x9ec330),_0x1b3661['on']('execute',()=>{this['editor']['execute'](_0x2d782b['commandName']),this['editor']['editing']['view']['focus']();}),_0x1f34ae['children']['add'](_0x1b3661),_0xfbbc50['items']['add'](_0x1f34ae);}return _0x9ec330['bind']('isEnabled')['to'](_0x3eef55,'isEnabled'),_0x9ec330['panelView']['children']['add'](_0xfbbc50),_0x9ec330;}['_initializeController'](_0x4cff06){const _0x43d20c=this['editor'],_0x275113=_0x43d20c['config'],_0x1e0c2d=_0x43d20c['plugins']['get']('Annotations'),_0x57e144=_0x43d20c['plugins']['get']('CommentsRepository'),_0x16d203=_0x43d20c['plugins']['get']('EditorAnnotations'),_0x207812=_0x43d20c['plugins']['get'](_0x671950)['me'],_0x854e30=_0x275113['get']('trackChanges')['SuggestionThreadView'],_0x3c72f4=_0x275113['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x526acd,CommentThreadInputView:_0x4c503a}=_0x43d20c['plugins']['get']('CommentsUI');let _0x382a48,_0x31b566,_0x3f7580;this['_annotationViews']['has'](_0x4cff06['id'])?(_0x31b566=this['_annotationViews']['get'](_0x4cff06['id']),_0x382a48=_0x31b566['mainView']):(_0x382a48=new _0x854e30(_0x43d20c['locale'],_0x4cff06,_0x207812,{'disableComments':this['_disableComments'],'editorConfig':{..._0x275113['get']('comments.editorConfig'),'licenseKey':_0x275113['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x275113['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x275113['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x275113['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x49779c(_0x275113['get']('locale'),_0x43d20c['locale']),'CommentView':_0x275113['get']('comments')['CommentView'],'CommentsListView':_0x526acd,'CommentThreadInputView':_0x4c503a,'SuggestionView':_0x3c72f4}),_0x382a48['suggestionView']['acceptButton']['on']('execute',()=>{_0x43d20c['editing']['view']['focus']();}),_0x382a48['suggestionView']['discardButton']['on']('execute',()=>{_0x43d20c['editing']['view']['focus']();}),_0x31b566=_0x1e0c2d['createAnnotationView'](this['editor']['locale'],_0x382a48),_0x31b566['bind']('isDirty')['to'](_0x382a48,'isDirty'),_0x31b566['bind']('length')['to'](_0x382a48),_0x31b566['bind']('type')['to'](_0x382a48,'type',_0x55f612=>'suggestion-'+_0x55f612),_0x382a48['on']('escape',()=>{_0x3f7580['fire']('escape');}),this['_annotationViews']['set'](_0x4cff06['id'],_0x31b566));const _0x54cf52=_0x57e144['createCommentThreadController'](_0x4cff06['commentThread'],_0x382a48),_0x4be1ce=new pe(_0x43d20c,_0x4cff06,_0x382a48,_0x54cf52),_0x144ccb=_0x4cff06['getAllAdjacentSuggestions']()['filter'](_0x1e9ec5=>_0x1e9ec5['isInContent']);_0x382a48['descriptionParts']=_0x43d20c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x144ccb),this['_suggestionToController']['set'](_0x4cff06,_0x4be1ce),this['_viewToController']['set'](_0x382a48,_0x4be1ce),_0x3f7580=_0x1e0c2d['createAnnotation']({'view':_0x31b566,'target':()=>{const _0xc18ba0=[],_0x2103b3=_0x4cff06['getAllAdjacentSuggestions']()['filter'](_0x32c4af=>_0x32c4af['isInContent']);for(const _0x3ced5e of _0x2103b3)_0xc18ba0['push'](..._0x3ced5e['getMarkers']());return _0x2a17b3(_0x43d20c['editing'],_0xc18ba0);},'type':()=>'suggestion-'+_0x4be1ce['view']['type']}),_0x57e144['_bindAnnotationToEditors'](_0x382a48,_0x3f7580),_0x1e0c2d['add'](_0x3f7580),_0x16d203['registerAnnotation'](_0x3f7580);}['_destroyController'](_0x5165b2){const _0x57627a=this['editor']['plugins']['get']('CommentsRepository'),_0x34924c=this['editor']['plugins']['get']('Annotations'),_0x20e7d4=this['_suggestionToController']['get'](_0x5165b2),_0x5b823c=_0x20e7d4['view'],_0x48dba1=_0x34924c['getByInnerView'](_0x5b823c);_0x57627a['_unbindEditors'](_0x5b823c),_0x48dba1&&_0x34924c['remove'](_0x48dba1),this['_suggestionToController']['delete'](_0x5165b2),this['_viewToController']['delete'](_0x5b823c),_0x20e7d4['destroy']();}['_updateController'](_0x2bd3b0){if(!_0x2bd3b0['isInContent']||!this['_suggestionToController']['has'](_0x2bd3b0))return;const _0x1cf013=this['editor']['plugins']['get']('TrackChangesEditing'),_0x136ebd=this['_suggestionToController']['get'](_0x2bd3b0),_0x3af3b3=_0x2bd3b0['getAllAdjacentSuggestions']();_0x136ebd['view']['descriptionParts']=_0x1cf013['descriptionFactory']['getDescriptions'](_0x3af3b3);}['destroy'](){for(const _0x425540 of this['_suggestionToController']['keys']())this['_destroyController'](_0x425540);for(const _0x59c1d6 of this['_annotationViews']['values']())_0x59c1d6['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x415bf5){return'model'in _0x415bf5;}class k extends _0x577ae7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x54e559){this['editor']['plugins']['get'](p)['adapter']=_0x54e559;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3a34f5){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3a34f5);}['getSuggestions']({skipNotAttached:_0x33de03=!0x1,toJSON:_0x3ae508=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x33de03,'toJSON':_0x3ae508});}['getSuggestion'](_0x1189da){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1189da);}}const w=['Pagination'];class T extends _0x577ae7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x54afba=this['editor'];if(_0x54afba['config']['define']('trackChangesData.editorCreator',_0x4d98d7=>{const _0x269582=_0x54afba['model']['document']['getRootNames']()['reduce']((_0x2580bb,_0x23d02b)=>(_0x2580bb[_0x23d02b]='',_0x2580bb),{});return _0x54afba['constructor']['create'](_0x269582,_0x4d98d7);}),'function'!=typeof _0x54afba['config']['get']('trackChangesData')['editorCreator'])throw new _0x3bf293('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x227c15){return N(this['editor'],!0x0,_0x227c15);}['getDataWithDiscardedSuggestions'](_0x56c9c4){return N(this['editor'],!0x1,_0x56c9c4);}}class D extends _0x577ae7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x360d4c){function _0x5b6f67(_0x412be8){return _0x412be8['map'](_0x4131a0=>String['fromCharCode'](_0x4131a0))['join']('');}super(_0x360d4c),this['result']='end',_0x360d4c[_0x5b6f67([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b6f67([0x76,0x69,0x65,0x77])][_0x5b6f67([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b6f67([0x61,0x75,0x74,0x6f]),_0x360d4c[_0x5b6f67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5b6f67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b6f67([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5b6f67([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5b6f67([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 Ge(_0xb43fd5){return void 0x0!==_0xb43fd5['getRootsAttributes'];}async function N(_0x10fb5c,_0x75a82,_0x5736d2){const _0x4ac800=_0x4ffdbb(_0x10fb5c,w);_0x4ac800['plugins']['push'](p,D),_0x4ac800['rootsAttributes']=Ge(_0x10fb5c)?_0x10fb5c['getRootsAttributes']():void 0x0;const _0x44d085=document['createDocumentFragment'](),_0x342375=_0x10fb5c['config']['get']('trackChangesData')['editorCreator'],_0x404d79=await _0x342375(_0x4ac800,()=>function(_0x412052){const _0x32f709=document['createElement']('div');return _0x412052['appendChild'](_0x32f709),_0x32f709;}(_0x44d085));!function(_0x35aaa6,_0x57c0e0){const _0x20cf8b=_0x35aaa6['model']['document']['getRootNames']()['reduce']((_0x4014bb,_0x443e20)=>(_0x4014bb[_0x443e20]=_0x35aaa6['data']['get']({'rootName':_0x443e20}),_0x4014bb),{}),_0x35b5e3=_0x35aaa6['plugins']['get']('Users')['users']['map'](_0x25d6af=>({'id':_0x25d6af['id'],'name':_0x25d6af['name']})),_0x937f1b=_0x35aaa6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5b00d0=_0x35aaa6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xcacdc4=_0x57c0e0['plugins']['get']('Users'),_0x5ad850=_0x57c0e0['plugins']['get']('TrackChangesEditing'),_0x56848c=_0x57c0e0['plugins']['get']('CommentsRepository');for(const _0x6bdaf7 of _0x56848c['getCommentThreads']())_0x6bdaf7['remove']();for(const _0x2ba37a of _0x35b5e3)_0xcacdc4['getUser'](_0x2ba37a['id'])||_0xcacdc4['addUser'](_0x2ba37a);_0xcacdc4['me']||_0xcacdc4['useAnonymousUser']();for(const _0x1bf037 of _0x5b00d0)_0x56848c['addCommentThread'](_0x1bf037);for(const _0x16d656 of _0x937f1b)_0x5ad850['addSuggestionData'](_0x16d656);_0x57c0e0['data']['set'](_0x20cf8b);}(_0x10fb5c,_0x404d79),_0x404d79['execute'](_0x75a82?'acceptAllSuggestions':'discardAllSuggestions');const _0x1c7aaf=Ge(_0x404d79)?_0x404d79['getFullData'](_0x5736d2):_0x404d79['data']['get'](_0x5736d2);return await _0x404d79['destroy'](),_0x1c7aaf;}class Me extends _0x36af6d{['options'];constructor(_0x2d1b4c,_0x12b688){super(_0x2d1b4c),this['options']=_0x12b688,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'](_0x7d7bda,_0x3a0203){if(!this['element'])return;const _0xe57650=[];for(const [_0x29a4b4,_0x44c3f8]of _0x7d7bda){const _0x1d93c1=document['createElement']('div');_0x1d93c1['setAttribute']('data-ck-root-name',_0x29a4b4),_0x1d93c1['className']=_0x44c3f8['classes']+'\x20ck-track-changes-preview__root-container',_0x1d93c1['innerHTML']=_0x44c3f8['content'],_0xe57650['push'](_0x1d93c1);}_0x3a0203(this['element'],_0xe57650),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x1e86e5{constructor(_0x11ae00){super(_0x11ae00),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x46c9ad=this['editor'],_0x1839f4=_0x46c9ad['locale'],_0x1364c3=_0x46c9ad['plugins']['get']('Dialog');let _0x414240;const _0x2664ef=function(_0x5ac6be){const _0x486b2c={};if('editables'in _0x5ac6be['ui']['view']){for(const [_0x31eb64,_0x3f7dd1]of Object['entries'](_0x5ac6be['ui']['view']['editables']))_0x486b2c[_0x31eb64]=_0x3f7dd1['element'];}else _0x486b2c[_0x5ac6be['model']['document']['getRootNames']()[0x0]]=_0x5ac6be['ui']['view']['editable']['element'];return _0x486b2c;}(_0x46c9ad),_0x49ee14=function(_0x3d67d7){let _0x3cc67d=0x0;for(const _0x4d34de of Object['values'](_0x3d67d7))_0x3cc67d=Math['max'](_0x3cc67d,_0x4d34de['getBoundingClientRect']()['width']);let _0x2b27e4=0x0;for(const _0x481998 of Object['values'](_0x3d67d7))_0x2b27e4+=_0x481998['getBoundingClientRect']()['height'];const _0x2642ba=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2d1836=Math['min'](_0x2b27e4,_0x2642ba);return{'width':_0x3cc67d,'height':_0x2d1836};}(_0x2664ef);_0x1364c3['show']({'id':'finalContentPreview','title':c(_0x1839f4,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1839f4,{'dialogRects':_0x49ee14}),'onHide':()=>{_0x414240['detachFromDom']();},'onShow':()=>{_0x46c9ad['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x247b47=>{const _0x3fb940=this['_standarizeRootsData'](_0x247b47,_0x46c9ad,_0x2664ef);_0x1364c3['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3fb940,_0x46c9ad['config']['get']('trackChanges.preview.renderFunction'));}),_0x414240=new _0x45ffab(_0x1839f4,[_0x1364c3['view']]),_0x414240['attachToDom'](),_0x414240['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x46c9ad['once']('destroy',()=>{_0x414240['detachFromDom']();});const _0x38df2f=_0x1364c3['view']['headerView']['class'];_0x1364c3['view']['headerView']['class']=_0x38df2f?_0x38df2f+'\x20ck-reset_all':'ck-reset_all',_0x1364c3['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1364c3['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5bc02f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5687e5=_0x5bc02f['previewMode'],_0x2e9253={};if('$labels'===_0x5687e5){for(const _0x48f7dd of _0x5bc02f['getMergeFieldsIds']())_0x2e9253[_0x48f7dd]=_0x5bc02f['getLabel'](_0x48f7dd)||_0x48f7dd;}else{const _0x554e94='$defaultValues'===_0x5687e5?_0x5bc02f['getDefaultValues']():_0x5bc02f['getDataSetValues'](_0x5687e5,!0x0);for(const _0x20c09d of Object['entries'](_0x554e94)){const [_0x2175d3,_0x1eb63b]=_0x20c09d;_0x2e9253[_0x2175d3]=null!==_0x1eb63b?_0x1eb63b:_0x5bc02f['getLabel'](_0x2175d3)||_0x2175d3;}}return{'mergeFieldsData':_0x2e9253};}['_standarizeRootsData'](_0x2596de,_0x9c5839,_0x330593){let _0x4afb3f;if('string'==typeof _0x2596de){const _0x217804=_0x9c5839['model']['document']['getRootNames']()[0x0];_0x4afb3f={[_0x217804]:_0x2596de};}else _0x4afb3f=_0x2596de;const _0x43f6be=this['_fixMediaEmbeds'](_0x4afb3f,_0x9c5839),_0xfc8964=function(_0x5a1502,_0x2a83e6){for(const [_0x22a8f7,_0x591585]of _0x5a1502)_0x591585['classes']=_0x2a83e6[_0x22a8f7]['classList']['value']['replace']('ck-focused','');return _0x5a1502;}(this['_sortRoots'](_0x9c5839)['reduce']((_0x42cbb0,_0x26990d)=>(_0x42cbb0['push']([_0x26990d,{'content':_0x43f6be[_0x26990d],'classes':''}]),_0x42cbb0),[]),_0x330593);return _0xfc8964;}['_fixMediaEmbeds'](_0x54b573,_0x278dae){if(!_0x278dae['plugins']['has']('MediaEmbedEditing'))return _0x54b573;const _0x5417e1=_0x278dae['plugins']['get']('MediaEmbedEditing');for(const [_0x207f9b,_0x128cd1]of Object['entries'](_0x54b573)){const _0x17a1ca=document['createElement']('div');_0x17a1ca['innerHTML']=_0x128cd1,(_0x17a1ca['querySelectorAll']('figure.media')['forEach'](_0x37edf4=>{const _0x5725d9=_0x37edf4['querySelector']('oembed');if(_0x5725d9){const _0x159668=_0x5725d9['getAttribute']('url');if(_0x159668){const _0x45114e=_0x5417e1['registry']['getMediaViewElement'](new _0x25b75f(_0x278dae['editing']['view']['document']),_0x159668,{'elementName':'','renderForEditingView':!0x0}),_0x5555a1=document['createElement']('div');_0x5555a1['classList']['add']('ck-media__wrapper'),_0x45114e['render'](_0x5555a1,_0x278dae['editing']['view']['domConverter']),_0x5725d9['replaceWith'](_0x5555a1);}}}),_0x54b573[_0x207f9b]=_0x17a1ca['innerHTML']);}return _0x54b573;}['_sortRoots'](_0x58bbfd){if(!function(_0x4f96d4){return void 0x0!==_0x4f96d4['getRootsAttributes'];}(_0x58bbfd))return _0x58bbfd['model']['document']['getRootNames']();const _0x35e7a0=[],_0x528f53=new Map();for(const _0x33b93f of _0x58bbfd['model']['document']['getRootNames']()){const _0x4cbc0b=_0x58bbfd['editing']['view']['getDomRoot'](_0x33b93f)['getClientRects']()['item'](0x0);_0x35e7a0['push'](_0x33b93f),_0x528f53['set'](_0x33b93f,_0x4cbc0b);}return _0x35e7a0['sort']((_0x3d16a7,_0x197a90)=>{const _0x3c45e5=_0x528f53['get'](_0x3d16a7),_0x1fc5f5=_0x528f53['get'](_0x197a90);return _0x3c45e5['y']-_0x1fc5f5['y']||_0x3c45e5['x']-_0x1fc5f5['x'];}),_0x35e7a0;}}class te extends _0x577ae7{static get['requires'](){return[T,_0x19d789];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51db9f){super(_0x51db9f),_0x51db9f['commands']['add']('previewFinalContent',new re(this['editor'])),_0x51db9f['config']['define']('trackChanges.preview.renderFunction',(_0x3fcc6b,_0x1780a8)=>{for(const _0x5d3bb8 of _0x1780a8)_0x3fcc6b['appendChild'](_0x5d3bb8);});}}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 _0x3bd985,Plugin as _0x453bfd,PendingActions as _0x125364}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x15afa0,ObservableMixin as _0x5711d9,uid as _0x36e858,priorities as _0x487002,insertToPriorityArray as _0x117923,toArray as _0x260fae,logWarning as _0x458b7f,getEnvKeystrokeText as _0x4df9f7,FocusTracker as _0x32c2d7,KeystrokeHandler as _0x3a972c,Collection as _0x50d570}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x466d59,IconCancel as _0x3428b1,IconTrackChanges as _0x5b861b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x15e511,View as _0x50de67,ViewCollection as _0x30787d,FocusCycler as _0x4ed14c,ViewModel as _0x62255a,createDropdown as _0x187fa8,SplitButtonView as _0x1ba4c0,addListToDropdown as _0x32f88a,MenuBarMenuView as _0x4b57b1,MenuBarMenuListView as _0x52535d,ListSeparatorView as _0x13c8a9,MenuBarMenuListItemView as _0x29cc8f,MenuBarMenuListItemButtonView as _0x57100b,BodyCollection as _0x100e9b,Dialog as _0x160042}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1adabb,hashObject as _0x1bff51,surroundingMarkersDetector as _0x1008c6,FOCUS_ANNOTATION_KEYSTROKE as _0x3192cf,AriaDescriptionView as _0x2eb9e0,setupThreadKeyboardNavigation as _0x41ac10,trimHtml as ti,UserView as _0x3b8557,LateFocusButtonView as _0x4873d3,getDateTimeFormatter as _0x3e8616,getAllMarkersDomElementsSorted as _0x1ec037,sanitizeEditorConfig as _0x4822eb}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x14b922,LiveRange as _0x9a9b53,LivePosition as _0x48e990,DowncastWriter as _0x151e56}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x47239d,toWidget as _0x15f312}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x210fc1,set as _0x223086,isEqual as _0x315f4f,unset as _0x28115a,omit as Ft}from'es-toolkit/compat';import{Delete as _0x22aadb,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4091a4}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x278af2}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x3bd985{['_enabledCommands'];constructor(_0x2ce6ff,_0x503593){super(_0x2ce6ff),this['_enabledCommands']=_0x503593,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 _0x3bc106 of this['editor']['commands']['commands']())_0x3bc106['affectsData']&&!this['_enabledCommands']['has'](_0x3bc106)&&_0x3bc106['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2457cb of this['editor']['commands']['commands']())_0x2457cb['affectsData']&&!this['_enabledCommands']['has'](_0x2457cb)&&_0x2457cb['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x3bd985{['_suggestions'];constructor(_0x1770d4,_0x366b1b){super(_0x1770d4),this['_suggestions']=_0x366b1b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3a47cc){const _0x2bcb65=this['_suggestions']['get'](_0x3a47cc);if(!_0x2bcb65)throw new _0x15afa0('track-changes-accept-suggestion-not-found',this);const _0x3c5534=_0x2bcb65['getRanges']();this['editor']['model']['canEditAt'](_0x3c5534)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2bcb65);}}class O extends _0x3bd985{['_suggestions'];constructor(_0x5f108e,_0x23767a){super(_0x5f108e),this['_suggestions']=_0x23767a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x7b0ffc){const _0x1ce78e=this['_suggestions']['get'](_0x7b0ffc);if(!_0x1ce78e)throw new _0x15afa0('track-changes-discard-suggestion-not-found',this);const _0x4bec4e=_0x1ce78e['getRanges']();this['editor']['model']['canEditAt'](_0x4bec4e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1ce78e);}}function ls(_0x499930,_0x2a9d2b){let _0x7ca85e='';return _0x7ca85e+=_0x499930['split']('*')['map']((_0xd6e2b1,_0x44fd22)=>_0x44fd22%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xd6e2b1)+'</span>':nn(_0xd6e2b1))['join'](''),_0x2a9d2b&&(_0x7ca85e+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2a9d2b['value']+'\x22\x20title=\x22'+_0x2a9d2b['title']+'\x22></span>'),_0x7ca85e;}function nn(_0x43a132){const _0x51f46a=document['createElement']('span');return _0x51f46a['innerText']=_0x43a132,_0x51f46a['innerHTML'];}function ts(_0x1f2f22){return _0x1f2f22['sort']((_0x1a01bd,_0x2d4761)=>'deletion'==_0x1a01bd['type']&&'deletion'!=_0x2d4761['type']?-0x1:'deletion'!=_0x1a01bd['type']&&'deletion'==_0x2d4761['type']?0x1:0x0);}function to(_0x14193c,_0x5905fb){let _0x5d04b2,_0x192564=0x0;const _0x266aa9=[],_0x1e01b0=_0x5905fb['schema'];for(;_0x192564<_0x14193c['length'];){const _0x586852=_0x14193c[_0x192564],_0x30b5a0=_0x14193c[_0x192564+0x1];_0x5d04b2||(_0x5d04b2=_0x5905fb['createPositionBefore'](_0x586852)),on(_0x5905fb,_0x586852,_0x30b5a0)||(_0x266aa9['push'](_0x5905fb['createRange'](_0x5d04b2,_0x1e01b0['isObject'](_0x586852)?_0x5905fb['createPositionAfter'](_0x586852):_0x5905fb['createPositionAt'](_0x586852,'end'))),_0x5d04b2=null),_0x192564++;}return _0x266aa9;}function on(_0x45f72c,_0x306619,_0x118b43){if(!_0x118b43)return!0x1;const _0x160219=_0x45f72c['createPositionAfter'](_0x306619),_0x46044b=_0x45f72c['createPositionBefore'](_0x118b43);return _0x160219['isTouching'](_0x46044b);}function rs(_0xe3bd,_0x5d6776,_0x1ac41d){for(;_0x1ac41d['length'];){const _0x434e30=_0x1ac41d['splice'](0x0,0x64);_0xe3bd['change'](()=>{for(const _0x290b18 of _0x434e30)_0x290b18['isInContent']&&_0x5d6776['execute'](_0x290b18['id']);});}}class R extends _0x3bd985{['_command'];['_suggestions'];constructor(_0x2f571f,_0x542cd4,_0x4ec179){super(_0x2f571f),this['_command']=_0x542cd4,this['_suggestions']=_0x4ec179,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x497eea=Array['from'](this['_suggestions']['values']())['some'](_0x76f995=>_0x76f995['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x497eea;}['execute'](){const _0x4bb88a=ts(Array['from'](this['_suggestions']['values']()));for(const _0x1aa116 of _0x4bb88a){const _0x12fc16=_0x1aa116['getRanges']();if(!this['editor']['model']['canEditAt'](_0x12fc16))return;}rs(this['editor']['model'],this['_command'],_0x4bb88a);}}class E extends _0x3bd985{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x13d307,_0x3b7664,_0x5de0de){super(_0x13d307),this['_command']=_0x3b7664,this['_suggestions']=_0x5de0de,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x24cf07=this['editor']['model']['document']['selection'],_0x52c8ed=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x9caaa7,_0x198831){const _0x168c06=Array['from'](_0x9caaa7['getRanges']()),_0x5a1364=new Set();for(const _0x3546a0 of _0x198831)if(_0x3546a0['isInContent']){for(const _0x53bd21 of _0x168c06)for(const _0xa17048 of _0x3546a0['getRanges']())(_0x53bd21['isIntersecting'](_0xa17048)||_0x9caaa7['isCollapsed']&&!_0x3546a0['isMultiRange']&&_0x3546a0['next']&&_0xa17048['end']['isTouching'](_0x53bd21['start']))&&_0x5a1364['add'](_0x3546a0);}return _0x5a1364;}(_0x24cf07,_0x52c8ed),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2d42a2=ts(Array['from'](this['_selectedSuggestions']));for(const _0x39c004 of _0x2d42a2){const _0x445d58=_0x39c004['getRanges']();if(!this['editor']['model']['canEditAt'](_0x445d58))return;}rs(this['editor']['model'],this['_command'],_0x2d42a2);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x5711d9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2db45c,_0x14545c){super(),this['id']=_0x14545c['id'],this['type']=_0x14545c['type'],this['subType']=_0x14545c['subType']||null,this['author']=_0x14545c['author'],this['creator']=_0x14545c['creator']||_0x14545c['author'],this['isExternal']=Boolean(_0x14545c['attributes']&&_0x14545c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x14545c['originalSuggestionId']||null,this['_model']=_0x2db45c,this['_onAccept']=_0x14545c['onAccept'],this['_onDiscard']=_0x14545c['onDiscard'],this['_onAttributesChange']=_0x14545c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x14545c['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 _0x392586=this;for(;_0x392586['previous'];)_0x392586=_0x392586['previous'];return _0x392586;}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'](_0x44543d){this['_markerNames']['add'](_0x44543d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1da63b=>this['_model']['markers']['get'](_0x1da63b))['filter'](_0x5f10b4=>_0x5f10b4);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3d5c8d=>{for(const _0x55e943 of this['getMarkers']())_0x3d5c8d['removeMarker'](_0x55e943);}),this['_markerNames']['clear']();}['removeMarker'](_0x566408){this['_model']['change'](_0x527fe1=>{_0x527fe1['removeMarker'](_0x566408);}),this['_markerNames']['delete'](_0x566408);}['addRange'](_0x2e6a69){const _0x212c29='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x212c29),this['_model']['change'](_0x71d594=>{_0x71d594['addMarker'](_0x212c29,{'range':_0x2e6a69,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4746af){for(const _0x200b6c of this['getRanges']())if(_0x200b6c['isIntersecting'](_0x4746af))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x414dac=>_0x414dac['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3b8b01,_0x3246f0)=>[..._0x3b8b01,..._0x3246f0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4a1514=this['getRanges']();if(0x1!=_0x4a1514['length'])return null;const _0xbc3d69=_0x4a1514[0x0],_0x58d682=_0xbc3d69['start']['nodeAfter'],_0x405ccd=_0xbc3d69['end']['nodeBefore'];return _0x58d682 instanceof _0x14b922?_0x58d682!=_0x405ccd?null:_0x58d682: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 _0x50e0eb=[];let _0x253908=this['head'];for(;_0x253908;)_0x50e0eb['push'](_0x253908),_0x253908=_0x253908['next'];return _0x50e0eb;}['setAttribute'](_0x2460b3,_0x3d1819){const _0x36a78a=_0x210fc1(this['attributes']);_0x223086(_0x36a78a,_0x2460b3,_0x3d1819),_0x315f4f(_0x36a78a,this['attributes'])||(this['attributes']=_0x36a78a,this['_onAttributesChange'](_0x36a78a));}['removeAttribute'](_0xf4d737){const _0x4dd89e=_0x210fc1(this['attributes']);_0x28115a(_0x4dd89e,_0xf4d737),_0x315f4f(_0x4dd89e,this['attributes'])||(this['attributes']=_0x4dd89e,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 _0x36e858()['substr'](0x1,0x5);}}function c(_0x2620ee,_0x3d9fdc,_0x44482b){const _0x343b67=_0x2620ee['t'],t=_0x2620ee['t'];switch(_0x3d9fdc){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',_0x44482b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x44482b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x44482b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x44482b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x44482b);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',_0x44482b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x44482b);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',_0x44482b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x44482b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x44482b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x44482b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x44482b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x44482b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x44482b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x44482b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x44482b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x44482b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x44482b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x44482b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x44482b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x44482b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x44482b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x44482b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x44482b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x44482b);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'},_0x44482b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x44482b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x44482b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x44482b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x44482b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x44482b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x44482b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x44482b);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'},_0x44482b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x44482b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x44482b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x44482b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x44482b);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'},_0x44482b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x44482b);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'},_0x44482b);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'},_0x44482b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x44482b);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'},_0x44482b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x44482b);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'},_0x44482b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x44482b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x44482b);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'},_0x44482b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x44482b);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 _0x343b67({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x44482b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x343b67({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x44482b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x44482b);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'},_0x44482b);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'},_0x44482b);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'},_0x44482b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3d9fdc;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x53923d,_0x4d3ccf){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x53923d,this['_locale']=_0x4d3ccf;}['getDescriptions'](_0x1c23ab){const _0x21fc0f=[],_0x56a5ff=new Set(),_0x41c99d=new Set();for(let _0x13bc65=0x0;_0x13bc65<_0x1c23ab['length'];_0x13bc65++){const _0x20e517=_0x1c23ab[_0x13bc65];if(!_0x20e517['isInContent'])continue;const _0x33716a=this['_handleCustomCallbackDescription'](_0x20e517);if(_0x33716a){if(null!=_0x20e517['subType']){if(_0x56a5ff['has'](_0x20e517['subType']))continue;_0x56a5ff['add'](_0x20e517['subType']);}_0x21fc0f['push'](_0x33716a);}else{if('attribute'!=_0x20e517['type'])'insertion'!=_0x20e517['type']&&'deletion'!=_0x20e517['type']||this['_handleInsertRemoveSuggestionDescription'](_0x21fc0f,_0x20e517,_0x1c23ab[_0x13bc65+0x1]);else{const _0x3207c7=_0x20e517['data']['key'];if(_0x41c99d['has'](_0x3207c7))continue;_0x41c99d['add'](_0x20e517['data']['key']),_0x3207c7==u?this['_handleRenameSuggestionDescription'](_0x21fc0f,_0x20e517):this['_handleAttributeSuggestionDescription'](_0x21fc0f,_0x20e517);}}}return this['_resolveDescriptionItems'](_0x21fc0f);}['registerDescriptionCallback'](_0x117a71){this['_customCallbacks']['push'](_0x117a71);}['registerElementLabel'](_0x4a188d,_0x459a11,_0x501d31=_0x487002['normal']){'function'==typeof _0x4a188d?_0x117923(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4a188d,'label':_0x459a11,'priority':_0x501d31}):this['_itemLabels']['set'](_0x4a188d,_0x459a11);}['registerAttributeLabel'](_0x17a5c3,_0x3a7c5e){this['_attributeLabels']['set'](_0x17a5c3,_0x3a7c5e);}['getItemLabel'](_0xad39c6,_0x4e1027=0x1){let _0x251303;for(const _0x179379 of this['_itemLabelsCallbacks'])if(_0x179379['matchingCallback'](_0xad39c6)){_0x251303=_0x179379['label'];break;}return _0x251303||(_0x251303=this['_itemLabels']['get'](_0xad39c6['name'])),_0x251303?_0x251303(_0x4e1027):0x1!==_0x4e1027?_0x4e1027+'\x20'+_0xad39c6['name']+'s':''+_0xad39c6['name'];}['_addDescriptionItems'](_0x124287,_0x18b931){const _0x17b258=_0x18b931['getFirstRange']()['getWalker'](),_0x27d954='insertion'==_0x18b931['type']?'add':'remove';for(const _0x1bb3c6 of _0x17b258){const _0x57c9ce=_0x1bb3c6['item'],_0x33650f=_0x124287[_0x124287['length']-0x1];if(_0x57c9ce['is']('$textProxy'))_0x33650f&&_0x33650f['type']['indexOf']('Container')>-0x1&&_0x124287['pop'](),_0x33650f&&'text'==_0x33650f['type']?_0x33650f[_0x27d954]+=_0x57c9ce['data']:_0x124287['push']({'type':'text','add':'add'==_0x27d954?_0x57c9ce['data']:'','remove':'remove'==_0x27d954?_0x57c9ce['data']:''});else{if(this['_schema']['isObject'](_0x57c9ce)){const _0x378ffb=_0x57c9ce;if(_0x33650f&&_0x33650f['type']['indexOf']('Container')>-0x1&&_0x124287['pop'](),'elementEnd'==_0x1bb3c6['type'])continue;_0x33650f&&_0x33650f['type']==_0x27d954+'Object'&&_0x33650f['element']['name']==_0x378ffb['name']?_0x33650f['quantity']++:_0x124287['push']({'type':_0x27d954+'Object','element':_0x378ffb,'quantity':0x1}),_0x17b258['skip'](_0x12f639=>!('elementEnd'==_0x12f639['type']&&_0x12f639['item']==_0x57c9ce));}else{if(this['_schema']['checkChild'](_0x57c9ce,'$text')||_0x57c9ce['is']('element','softBreak')){const _0x3bcd72=_0x57c9ce;if('add'==_0x27d954&&'elementStart'==_0x1bb3c6['type']||'remove'==_0x27d954&&'elementEnd'==_0x1bb3c6['type'])continue;if(_0x33650f&&-0x1==_0x33650f['type']['indexOf']('Container')){'text'==_0x33650f['type']&&(_0x33650f[_0x27d954]+='\x0a');continue;}let _0x2c4d26;if(_0x2c4d26='add'==_0x27d954?_0x3bcd72['nextSibling']&&!this['_schema']['isObject'](_0x3bcd72['nextSibling'])?_0x3bcd72['nextSibling']:null:_0x3bcd72['previousSibling']&&!this['_schema']['isObject'](_0x3bcd72['previousSibling'])?_0x3bcd72['previousSibling']:null,_0x3bcd72['isEmpty']||_0x2c4d26&&_0x2c4d26['isEmpty']){const _0xcac8ee=_0x2c4d26&&_0x2c4d26['isEmpty']?_0x2c4d26:_0x3bcd72;_0x33650f&&_0x33650f['type']==_0x27d954+'EmptyContainer'&&_0x33650f['element']['name']==_0xcac8ee['name']?_0x33650f['quantity']++:_0x124287['push']({'type':_0x27d954+'EmptyContainer','element':_0xcac8ee,'quantity':0x1});}else _0x124287['push']({'type':_0x27d954+'Container','element':_0x3bcd72});}}}}}['_resolveDescriptionItems'](_0x5c5661){const _0x20bb0b=this['_locale'],_0x1549ef=[],_0x248509=[],_0xf15385=[];for(const _0x1c49b7 of _0x5c5661)switch(_0x1c49b7['type']){case'text':if(_0x1c49b7['add']=_0x1c49b7['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1c49b7['remove']=_0x1c49b7['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1c49b7['add']&&''!=_0x1c49b7['remove']){_0x1549ef['push']({'type':'replace','content':c(_0x20bb0b,'REPLACE_TEXT',['\x22'+_0x1c49b7['remove']+'\x22','\x22'+_0x1c49b7['add']+'\x22'])});continue;}if(null!=_0x1c49b7['add']['match'](/^ +$/)){_0x1549ef['push']({'type':'insertion','content':c(_0x20bb0b,'*Insert:*\x20%0',c(_0x20bb0b,'ELEMENT_SPACE',_0x1c49b7['add']['length']))});continue;}if(null!=_0x1c49b7['remove']['match'](/^ +$/)){_0x1549ef['push']({'type':'deletion','content':c(_0x20bb0b,'*Remove:*\x20%0',c(_0x20bb0b,'ELEMENT_SPACE',_0x1c49b7['remove']['length']))});continue;}if(''!=_0x1c49b7['add']){_0x1549ef['push']({'type':'insertion','content':c(_0x20bb0b,'*Insert:*\x20%0','\x22'+_0x1c49b7['add']+'\x22')});continue;}_0x1549ef['push']({'type':'deletion','content':c(_0x20bb0b,'*Remove:*\x20%0','\x22'+_0x1c49b7['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1549ef['push']({'type':'insertion','content':c(_0x20bb0b,'*Insert:*\x20%0',this['getItemLabel'](_0x1c49b7['element'],_0x1c49b7['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1549ef['push']({'type':'deletion','content':c(_0x20bb0b,'*Remove:*\x20%0',this['getItemLabel'](_0x1c49b7['element'],_0x1c49b7['quantity']))});continue;case'addContainer':_0x1549ef['push']({'type':'insertion','content':c(_0x20bb0b,'*Split:*\x20%0',this['getItemLabel'](_0x1c49b7['element'],_0x1c49b7['quantity']))});continue;case'removeContainer':_0x1549ef['push']({'type':'deletion','content':c(_0x20bb0b,'*Merge:*\x20%0',this['getItemLabel'](_0x1c49b7['element'],_0x1c49b7['quantity']))});continue;case'addFormat':_0x248509['push'](_0x1c49b7['key']);continue;case'removeFormat':_0xf15385['push'](_0x1c49b7['key']);continue;default:_0x1549ef['push'](_0x1c49b7);}if(_0x248509['length']){const _0x68aec6=_0x248509['map'](_0xb5aa22=>this['_attributeLabels']['has'](_0xb5aa22)?this['_attributeLabels']['get'](_0xb5aa22):_0xb5aa22)['join'](',\x20');_0x1549ef['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x68aec6)});}if(_0xf15385['length']){const _0x15b872=_0xf15385['map'](_0x1db969=>this['_attributeLabels']['has'](_0x1db969)?this['_attributeLabels']['get'](_0x1db969):_0x1db969)['join'](',\x20');_0x1549ef['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x15b872)});}return _0x1549ef;}['_handleCustomCallbackDescription'](_0x3869ed){for(const _0x58ee5a of this['_customCallbacks']){const _0x10d484=_0x58ee5a(_0x3869ed);if(_0x10d484&&'type'in _0x10d484)return _0x10d484;}}['_handleAttributeSuggestionDescription'](_0x5343fd,_0x4f3713){const _0x30c92e=_0x4f3713['data'],_0x7e0ea5=void 0x0===_0x30c92e['newValue']?'removeFormat':'addFormat';_0x5343fd['push']({'type':_0x7e0ea5,'key':_0x30c92e['key']});}['_handleRenameSuggestionDescription'](_0x2e6b14,_0x4473e0){_0x2e6b14['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4473e0['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x56a41a,_0x14fe51,_0x6d69dd){if(this['_addDescriptionItems'](_0x56a41a,_0x14fe51),_0x6d69dd&&_0x6d69dd['getFirstRange']()&&!_0x14fe51['getFirstRange']()['end']['isEqual'](_0x6d69dd['getFirstRange']()['start'])){const _0x274c2f=_0x56a41a[_0x56a41a['length']-0x1],_0x1e8eb7='insertion'==_0x14fe51['type']?'add':'remove';_0x274c2f&&'text'==_0x274c2f['type']&&(_0x274c2f[_0x1e8eb7]+='\x0a');}}}class U extends _0x453bfd{['afterInit'](){const _0x4a1790=this['editor'],_0xf3239a=_0x4a1790['plugins']['get']('TrackChangesEditing');_0x4a1790['commands']['get']('showAIAssistant')&&_0xf3239a['enableCommand']('showAIAssistant');}}class V extends _0x453bfd{['afterInit'](){const _0x448b87=this['editor'],_0x4c38d8=_0x448b87['locale'];if(!_0x448b87['plugins']['has']('AlignmentEditing'))return;const _0x133bce=_0x448b87['plugins']['get']('TrackChangesEditing');_0x133bce['enableDefaultAttributesIntegration']('alignment'),_0x133bce['registerBlockAttribute']('alignment'),_0x133bce['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x4c38d8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x220cd7=this['editor'],_0xd35c23=_0x220cd7['locale'];_0x220cd7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5138ed=>{if('formatBlock'!=_0x5138ed['type'])return;const {data:_0x5940e5}=_0x5138ed;if(_0x5940e5&&'alignment'==_0x5940e5['commandName']){const _0x3d3c91=_0x5940e5['commandParams'][0x0]['value'];return{'type':'format','content':c(_0xd35c23,'*Format:*\x20%0',function(_0x33401b){switch(_0x33401b){case'left':return c(_0xd35c23,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0xd35c23,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0xd35c23,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0xd35c23,'FORMAT_JUSTIFY_TEXT');}}(_0x3d3c91))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x453bfd{['afterInit'](){const _0x5c4b3d=this['editor'],_0x7dcc2=_0x5c4b3d['plugins']['get']('TrackChangesEditing'),_0x2b5e50=_0x5c4b3d['locale'];for(const _0x198b3a of Zt){if(!_0x5c4b3d['plugins']['has'](_0x198b3a))continue;const _0x2aa8b5=_0x198b3a['slice'](0x0,-0x7)['toLowerCase'](),_0x125293='FORMAT_'+_0x2aa8b5['toUpperCase']();_0x7dcc2['enableDefaultAttributesIntegration'](_0x2aa8b5),_0x7dcc2['registerInlineAttribute'](_0x2aa8b5),_0x7dcc2['descriptionFactory']['registerAttributeLabel'](_0x2aa8b5,c(_0x2b5e50,_0x125293));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d2d28=this['editor'],_0x4a0813=_0x1d2d28['locale'],_0x42eee7=_0x1d2d28['plugins']['get']('TrackChangesEditing');function _0xf48ae9(_0x1777e4,_0x34cd1e){_0x42eee7['descriptionFactory']['registerDescriptionCallback'](_0x5dcc16=>{if('formatInline'!=_0x5dcc16['type'])return;const {data:_0x46fb0b}=_0x5dcc16;return _0x46fb0b&&_0x46fb0b['commandName']===_0x1777e4?_0x46fb0b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4a0813,'*Format:*\x20%0',_0x34cd1e)}:{'type':'format','content':c(_0x4a0813,'*Remove\x20format:*\x20%0',_0x34cd1e)}:void 0x0;});}_0xf48ae9('bold',c(_0x4a0813,'FORMAT_BOLD')),_0xf48ae9('italic',c(_0x4a0813,'FORMAT_ITALIC')),_0xf48ae9('underline',c(_0x4a0813,'FORMAT_UNDERLINE')),_0xf48ae9('code',c(_0x4a0813,'FORMAT_CODE')),_0xf48ae9('strikethrough',c(_0x4a0813,'FORMAT_STRIKETHROUGH')),_0xf48ae9('subscript',c(_0x4a0813,'FORMAT_SUBSCRIPT')),_0xf48ae9('superscript',c(_0x4a0813,'FORMAT_SUPERSCRIPT'));}}class G extends _0x453bfd{['afterInit'](){const _0x125234=this['editor'],_0xccab7b=_0x125234['locale'];if(!_0x125234['plugins']['has']('BlockQuoteEditing'))return;const _0x4b498f=_0x125234['plugins']['get']('TrackChangesEditing'),_0xa40996=this['editor']['commands']['get']('blockQuote');_0x4b498f['enableCommand']('blockQuote',(_0x222dc6,_0x51c911={})=>{const _0x291407=this['editor']['model']['document']['selection'],_0x2b0970=_0x51c911&&void 0x0!==_0x51c911['forceValue']?_0x51c911['forceValue']:!_0xa40996['value'];let _0x454e32=[];if(_0x2b0970){const _0x34237c=Array['from'](_0x291407['getSelectedBlocks']())['filter'](_0x32e2a9=>oo(_0x32e2a9)||function(_0x2746f0,_0x2943ab){const _0x27794a=_0x2943ab['checkChild'](_0x2746f0['parent'],'blockQuote'),_0x5796d3=_0x2943ab['checkChild'](['$root','blockQuote'],_0x2746f0);return _0x27794a&&_0x5796d3;}(_0x32e2a9,this['editor']['model']['schema']));_0x454e32=to(_0x34237c,_0x125234['model']);}else{const _0x4e2dcc=Array['from'](_0x291407['getSelectedBlocks']())['filter'](_0x68c455=>oo(_0x68c455));_0x454e32=to(_0x4e2dcc,_0x125234['model']);}_0x125234['model']['change'](()=>{for(const _0x219c8b of _0x454e32)_0x4b498f['markBlockFormat'](_0x219c8b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2b0970}]});});}),_0x4b498f['descriptionFactory']['registerDescriptionCallback'](_0x2afd96=>{const {data:_0x25f3fb}=_0x2afd96;if(_0x25f3fb&&'blockQuote'==_0x25f3fb['commandName']){const _0x1c7205=c(_0xccab7b,'ELEMENT_BLOCK_QUOTE');return _0x25f3fb['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xccab7b,'*Set\x20format:*\x20%0',_0x1c7205)}:{'type':'format','content':c(_0xccab7b,'*Remove\x20format:*\x20%0',_0x1c7205)};}});}}function oo(_0x9f728e){return'blockQuote'==_0x9f728e['parent']['name'];}class L extends _0x453bfd{['afterInit'](){const _0xe89f73=this['editor'],_0x2079d4=_0xe89f73['locale'],_0x49ce5f=_0xe89f73['plugins']['get']('TrackChangesEditing');_0xe89f73['plugins']['has']('BookmarkEditing')&&(_0x49ce5f['enableCommand']('insertBookmark'),_0x49ce5f['enableDefaultAttributesIntegration']('updateBookmark'),_0x49ce5f['registerBlockAttribute']('bookmarkId'),_0x49ce5f['descriptionFactory']['registerDescriptionCallback'](_0x41db03=>{if('insertion'!=_0x41db03['type']&&'deletion'!=_0x41db03['type']&&'attribute'!=_0x41db03['type'])return;const _0x2e5ede=_0x41db03['getContainedElement']();if(null==_0x2e5ede)return;if(!_0x2e5ede['is']('element','bookmark'))return;const _0x56039a=_0x2e5ede['getAttribute']('bookmarkId');if('insertion'==_0x41db03['type'])return{'type':'insertion','content':c(_0x2079d4,'*Insert:*\x20%0','\x22'+_0x56039a+'\x22\x20'+c(_0x2079d4,'ELEMENT_BOOKMARK'))};if('deletion'==_0x41db03['type'])return{'type':'deletion','content':c(_0x2079d4,'*Remove:*\x20%0','\x22'+_0x56039a+'\x22\x20'+c(_0x2079d4,'ELEMENT_BOOKMARK'))};const {data:_0x19ce3e}=_0x41db03;if(!_0x19ce3e||'bookmarkId'!=_0x19ce3e['key'])return;return{'type':'format','content':c(_0x2079d4,'*Set\x20bookmark:*\x20%0','\x22'+_0x19ce3e['newValue']+'\x22')};}));}}class J extends _0x453bfd{['afterInit'](){const _0x1fc717=this['editor'];_0x1fc717['plugins']['has']('CaseChange')&&(_0x1fc717['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1fc717['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1fc717['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x453bfd{['afterInit'](){const _0x3c7945=this['editor'];_0x3c7945['commands']['get']('ckbox')&&_0x3c7945['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x453bfd{['afterInit'](){const _0x4ebb61=this['editor'];if(!_0x4ebb61['plugins']['has']('CodeBlock'))return;const _0x3734a4=_0x4ebb61['plugins']['get']('TrackChangesEditing'),_0x11e14f=_0x4ebb61['locale'],_0x260903=_0x4ebb61['config']['get']('codeBlock')['languages'],_0x1b837f=_0x4ebb61['commands']['get']('codeBlock');_0x3734a4['enableCommand']('indentCodeBlock'),_0x3734a4['enableCommand']('outdentCodeBlock'),_0x3734a4['enableCommand']('codeBlock',(_0x356f29,_0x50cb8e={})=>{const _0x3e52a7=_0x4ebb61['model'],_0x17a760=_0x4ebb61['model']['document']['selection'],_0x47371b=_0x50cb8e&&void 0x0!==_0x50cb8e['forceValue']?_0x50cb8e['forceValue']:!_0x1b837f['value'];let _0x172ea4;_0x50cb8e['language']||(_0x50cb8e['language']=_0x260903[0x0]['language']),_0x172ea4=_0x47371b?Array['from'](_0x17a760['getSelectedBlocks']())['filter'](_0x2ff89b=>eo(_0x2ff89b)||function(_0x492ee5,_0x4ee87b){if(_0x492ee5['is']('rootElement')||_0x4ee87b['isLimit'](_0x492ee5))return!0x1;return _0x4ee87b['checkChild'](_0x492ee5['parent'],'codeBlock');}(_0x2ff89b,_0x3e52a7['schema'])):Array['from'](_0x17a760['getSelectedBlocks']())['filter'](_0x1ff5f0=>eo(_0x1ff5f0));const _0xd6fc62=to(_0x172ea4,_0x3e52a7);_0x3e52a7['change'](()=>{for(const _0x211388 of _0xd6fc62)_0x3734a4['markBlockFormat'](_0x211388,{'commandName':'codeBlock','commandParams':[{..._0x50cb8e,'forceValue':_0x47371b}],'formatGroupId':'blockName'});});}),(_0x3734a4['descriptionFactory']['registerElementLabel']('codeBlock',_0x4f09c8=>c(_0x11e14f,'ELEMENT_CODE_BLOCK',_0x4f09c8)),_0x3734a4['descriptionFactory']['registerDescriptionCallback'](_0x13ff94=>{if('formatBlock'!=_0x13ff94['type'])return;const _0x2a4456=_0x11e14f['t'],{data:_0x45f857}=_0x13ff94;if(!_0x45f857||'codeBlock'!=_0x45f857['commandName'])return;const _0x1a0987=_0x45f857['commandParams'][0x0]['language'],_0x591a60=_0x2a4456(_0x260903['find'](_0x2a85fa=>_0x2a85fa['language']===_0x1a0987)['label'])['toLowerCase']();return _0x45f857['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x11e14f,'*Set\x20format:*\x20%0',c(_0x11e14f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x591a60+')')}:{'type':'format','content':c(_0x11e14f,'*Remove\x20format:*\x20%0',c(_0x11e14f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4bc2a4){return'codeBlock'==_0x4bc2a4['name'];}class q extends _0x453bfd{['afterInit'](){const _0x3c551a=this['editor'];if(!_0x3c551a['plugins']['has']('CommentsEditing'))return;_0x3c551a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xa1bfa2,_0x4fce6e,_0x17e14b){const _0x226a24=[];for(const _0x51f089 of _0x4fce6e['getItems']())_0x51f089['hasAttribute'](_0xa1bfa2)&&_0x226a24['push'](_0x17e14b['createRangeOn'](_0x51f089));return _0x226a24;}function Fe(_0x5a4a16,_0x46e286,{showActiveMarker:_0x36c4e5=!0x0}={}){const _0x1008ec=_0x5a4a16['plugins']['get']('TrackChangesEditing');return(_0x3e2987,_0x333187,_0x534696)=>{if(!_0x534696['consumable']['test'](_0x333187['markerRange'],_0x3e2987['name']))return;const _0x2fba79=_0x333187['markerRange']['getWalker'](),_0x13ccea=_0x333187['markerRange']['start'],_0x364c51=_0x5a4a16['model']['schema'];let _0x529be9=null,_0x354064=null,_0x88aafb=!0x1,_0x5c0de9=!0x1;for(const _0x12740d of _0x2fba79){const _0x2b520d=_0x12740d['item'];_0x88aafb=_0x88aafb||_0x364c51['isContent'](_0x2b520d);const _0x4a4fc5=_0x534696['mapper']['toViewElement'](_0x2b520d);if(_0x4a4fc5&&_0x4a4fc5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x12740d['type']&&(_0x364c51['isBlock'](_0x2b520d)&&!_0x364c51['isLimit'](_0x2b520d)&&(_0x2b520d['nextSibling']||_0x13ccea['isAtEnd']?_0x529be9&&_0x529be9['parent']==_0x2b520d||(_0x529be9=_0x2b520d,_0x2cfbeb(_0x12740d['previousPosition']),_0x5c0de9=!0x0):_0x354064=_0x354064||_0x12740d['previousPosition']));}function _0x2cfbeb(_0x422ebc){const {id:_0x45514a,authorId:_0x36760d}=_0x1008ec['_splitMarkerName'](_0x333187['markerName']),_0x5a5a37=_0x534696['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x46e286,'data-suggestion':_0x45514a,'data-author-id':_0x36760d}),_0x18dce5=_0x534696['mapper']['toViewPosition'](_0x422ebc);_0x36c4e5&&_0x1008ec['activeMarkers']['includes'](_0x333187['markerName'])&&_0x534696['writer']['addClass']('ck-suggestion-marker--active',_0x5a5a37),_0x534696['writer']['insert'](_0x18dce5,_0x5a5a37),_0x534696['mapper']['bindElementToMarker'](_0x5a5a37,_0x333187['markerName']);}_0x88aafb||_0x5c0de9||!_0x354064||_0x2cfbeb(_0x354064);};}class z extends _0x453bfd{static get['requires'](){return[_0x22aadb];}['init'](){const _0x202505=this['editor'],_0x1516da=_0x202505['plugins']['get']('TrackChangesEditing');_0x1516da['enableCommand']('delete');const _0x5911ff=_0x202505['commands']['get']('deleteForward');_0x1516da['enableCommand']('deleteForward',(_0x2717f6,_0x55a7bf={})=>{const _0x5bc400=_0x202505['model']['createSelection'](_0x202505['model']['document']['selection']);_0x5bc400['isCollapsed']&&_0x202505['model']['modifySelection'](_0x5bc400,{'direction':'forward','unit':_0x55a7bf['unit']});const _0x142a1f=_0x5bc400['getFirstRange'](),_0x6283d0=_0x9a9b53['fromRange'](_0x142a1f);let _0x25a5d2;_0x2717f6(_0x55a7bf),_0x25a5d2='$graveyard'==_0x6283d0['root']['rootName']?_0x202505['model']['createRange'](_0x142a1f['start']):_0x202505['model']['createRange'](_0x6283d0['start'],_0x6283d0['end']),_0x6283d0['detach'](),_0x202505['model']['enqueueChange'](_0x5911ff['buffer']['batch'],_0x171843=>{_0x5911ff['buffer']['lock'](),_0x171843['setSelection'](_0x171843['createRange'](_0x25a5d2['end'])),_0x5911ff['buffer']['unlock']();});}),_0x202505['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x202505,'merge'),{'priority':'high'}),_0x202505['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x65baea,_0x3b1a8a,_0x3340ae)=>{_0x3340ae['options']['showSuggestionHighlights']&&Fe(_0x202505,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x65baea,_0x3b1a8a,_0x3340ae);},{'priority':'high'}),_0x202505['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x19fa0c,_0x43f698,_0x1a61d1)=>{const _0x105291=_0x1a61d1['mapper']['markerNameToElements'](_0x43f698['markerName']);if(_0x105291){for(const _0x1efc3a of _0x105291)_0x1efc3a['is']('uiElement')&&(_0x1a61d1['mapper']['unbindElementFromMarkerName'](_0x1efc3a,_0x43f698['markerName']),_0x1a61d1['writer']['remove'](_0x1efc3a));}},{'priority':'high'});}}class W extends _0x453bfd{['afterInit'](){const _0x507f64=this['editor'];if(!_0x507f64['plugins']['has']('ListEditing'))return;const _0x4c0bdf=_0x507f64['locale'],_0x2968c2=_0x507f64['plugins']['get']('TrackChangesEditing'),_0x4bcba6=_0x507f64['plugins']['has']('TodoListEditing'),_0x41068e=!!_0x507f64['config']['get']('list.multiBlock');function _0x340950(_0x48f2d8){return{'type':'format','content':''+c(_0x4c0bdf,'*Set\x20format:*\x20%0',_0x48f2d8)};}function _0x184560(_0x20461f){return{'type':'format','content':''+c(_0x4c0bdf,'*Remove\x20format:*\x20%0',_0x20461f)};}_0x2968c2['enableDefaultAttributesIntegration']('numberedList'),_0x2968c2['enableDefaultAttributesIntegration']('bulletedList'),_0x2968c2['enableDefaultAttributesIntegration']('customNumberedList'),_0x2968c2['enableDefaultAttributesIntegration']('customBulletedList'),_0x2968c2['enableDefaultAttributesIntegration']('indentList'),_0x2968c2['enableDefaultAttributesIntegration']('outdentList'),_0x2968c2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2968c2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2968c2['registerBlockAttribute']('listItemId'),_0x2968c2['registerBlockAttribute']('listType'),_0x2968c2['registerBlockAttribute']('listIndent'),_0x41068e&&(_0x2968c2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2968c2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4bcba6&&(_0x2968c2['enableDefaultAttributesIntegration']('todoList'),_0x2968c2['enableDefaultAttributesIntegration']('checkTodoList'),_0x2968c2['registerBlockAttribute']('todoListChecked'),_0x2968c2['descriptionFactory']['registerDescriptionCallback'](_0xe86112=>{const {data:_0x3f692e}=_0xe86112;if(_0x3f692e&&'todoListChecked'==_0x3f692e['key'])return{'type':'format','content':_0x3f692e['newValue']?c(_0x4c0bdf,'*Check\x20item*'):c(_0x4c0bdf,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4cd054=>{if(_0x4cd054['batch']['isUndo'])return!0x1;let _0x3c2cbf=!0x1;const _0x3805cd=_0x2968c2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xfdac95=>'todoListChecked'===_0x2968c2['_getAttributeKey'](_0xfdac95));for(const _0x363a23 of _0x3805cd){'todo'!=_0x363a23['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2968c2['_findSuggestions'](_0x363a23['getFirstRange'](),'attribute')['find'](_0x5389ad=>'listType'===_0x2968c2['_getAttributeKey'](_0x5389ad['suggestion']))||(_0x4cd054['removeMarker'](_0x363a23['getFirstMarker']()),_0x3c2cbf=!0x0));}return _0x3c2cbf;})),_0x2968c2['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x4c0bdf,'FORMAT_INDENT'));const _0xd61f2e={'type':'format','content':''};_0x2968c2['descriptionFactory']['registerDescriptionCallback'](_0xd97b8a=>{const {data:_0xb766c8}=_0xd97b8a;if(!_0xb766c8||'listType'!=_0xb766c8['key'])return;let _0x4f7663=_0xd97b8a['head'];for(;_0x4f7663;){if(_0x4f7663['data']&&(('listStyle'==_0x4f7663['data']['key']||'listMarkerStyle'==_0x4f7663['data']['key'])&&(_0x4f7663['data']['newValue']&&'default'!=_0x4f7663['data']['newValue']||'default'!=_0x4f7663['data']['oldValue']&&!_0xb766c8['newValue'])||!_0x41068e&&_0x4f7663['data']['key']==u))return _0xd61f2e;_0x4f7663=_0x4f7663['next'];}if(null==_0xb766c8['newValue'])switch(_0xb766c8['oldValue']){case'bulleted':return _0x184560(c(_0x4c0bdf,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x184560(c(_0x4c0bdf,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x184560(c(_0x4c0bdf,'ELEMENT_TODO_LIST'));}switch(_0xb766c8['newValue']){case'bulleted':return _0x340950(c(_0x4c0bdf,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x340950(c(_0x4c0bdf,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x340950(c(_0x4c0bdf,'ELEMENT_TODO_LIST'));}}),_0x2968c2['descriptionFactory']['registerDescriptionCallback'](_0xd24b2b=>{const {data:_0x129508}=_0xd24b2b;if(_0x129508&&'listIndent'==_0x129508['key'])return null==_0x129508['newValue']||null==_0x129508['oldValue']&&0x0==_0x129508['newValue']?_0xd61f2e:void 0x0;}),_0x2968c2['descriptionFactory']['registerDescriptionCallback'](_0x1ac1d1=>{if('attribute'!=_0x1ac1d1['type'])return;const {data:_0x17bf50}=_0x1ac1d1;if(!_0x17bf50||'listItemId'!=_0x17bf50['key'])return;const _0x62a9a5=Te(_0x1ac1d1);return'newValue'==_0x62a9a5?{'type':'format','content':c(_0x4c0bdf,'*Merge:*\x20list\x20item')}:'oldValue'==_0x62a9a5?{'type':'format','content':c(_0x4c0bdf,'*Split:*\x20list\x20item')}:_0xd61f2e;}),_0x507f64['model']['document']['registerPostFixer'](_0x4d7f75=>this['listItemIdFixer'](_0x4d7f75)),_0x507f64['model']['document']['registerPostFixer'](_0x41075e=>this['noTrackChangesFixer'](_0x41075e)),_0x507f64['model']['document']['on']('change:data',(_0x39acc6,_0x4ddc2e)=>{if(_0x4ddc2e['isUndo']||!_0x4ddc2e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x539225){if(_0x539225['batch']['isUndo']||!_0x539225['batch']['isLocal'])return!0x1;let _0x53ad73=!0x1;const _0x494bb4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41ce19=>_0x41ce19['data']&&'listItemId'==_0x41ce19['data']['key'])['filter'](_0x193c1f=>_0x193c1f['data']['newValue']&&_0x193c1f['data']['oldValue']);for(const _0x544a10 of _0x494bb4)Te(_0x544a10)||(_0x539225['removeMarker'](_0x544a10['getFirstMarker']()),_0x53ad73=!0x0);return _0x53ad73;}['noTrackChangesFixer'](_0xae094c){if(_0xae094c['batch']['isUndo']||!_0xae094c['batch']['isLocal'])return!0x1;const _0x12fb37=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x12fb37['trackChangesCommand']['value'])return!0x1;let _0xc1949f=!0x1;const _0x536005=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1183ca=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1fa88b=>'attribute'==_0x1fa88b['type'])['filter'](_0x3ab8b7=>_0x536005['includes'](_0x3ab8b7['attributeKey']));if(0x0==_0x1183ca['length'])return _0xc1949f;for(const _0x76e904 of _0x1183ca){const _0x195da3=_0x12fb37['_findSuggestions'](_0x76e904['range'],'attribute')['filter'](_0x5b5d6a=>!_0x5b5d6a['meta']['isNextTo'])['map'](_0x34608a=>_0x34608a['suggestion'])['filter'](_0xf106d0=>{const _0x2ec27e=_0x12fb37['_getAttributeKey'](_0xf106d0);return _0x536005['includes'](_0x2ec27e);});if(_0x195da3['length']){for(const _0x1f12bc of _0x195da3)_0xae094c['removeMarker'](_0x1f12bc['getFirstMarker']());_0xc1949f=!0x0;}}return _0xc1949f;}['assureChains'](){const _0x198930=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25c875=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3bf96d;const _0x586016=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x189fbd=>{if(_0x189fbd['data']['oldRange']||!_0x189fbd['data']['newRange'])return null;if(!_0x189fbd['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x12b0d6}=_0x198930['_splitMarkerName'](_0x189fbd['name']);if(!_0x198930['hasSuggestion'](_0x12b0d6))return null;const _0x3f06a0=_0x198930['getSuggestion'](_0x12b0d6);return _0x25c875['includes'](_0x3f06a0['data']['key']);})['map'](_0x497f0c=>{const {id:_0x5bddd6}=_0x198930['_splitMarkerName'](_0x497f0c['name']),_0x8a8bb4=_0x198930['getSuggestion'](_0x5bddd6);return _0x3bf96d=_0x8a8bb4['attributes']['groupId'],_0x8a8bb4['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x586016['size'])return;const _0x22dc00=_0x198930['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x37984b=>'attribute'==_0x37984b['type']&&_0x37984b['data']&&_0x25c875['includes'](_0x37984b['data']['key'])&&_0x37984b['attributes']['groupId']!=_0x3bf96d)['map'](_0x189caa=>({'listItem':_0x189caa['getFirstRange']()['start']['nodeAfter'],'groupId':_0x189caa['attributes']['groupId']})),_0x12358b=new Set();for(const {groupId:_0x5a0e13,listItem:_0x500afb}of _0x22dc00)_0x586016['has'](_0x500afb)&&_0x12358b['add'](_0x5a0e13);for(const _0x453956 of _0x198930['getSuggestions']())_0x12358b['has'](_0x453956['attributes']['groupId'])&&_0x453956['setAttribute']('groupId',_0x3bf96d);}['_supportLegacySuggestions'](){const _0x28f822=this['editor'],_0x4b0710=_0x28f822['locale'],_0x11ec67=_0x28f822['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x11ec67['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x36c48e,_0x1b2114){const _0x9b482c=[];for(let _0x375c58 of _0x36c48e)_0x375c58['start']['nodeAfter']===_0x375c58['end']['parent']&&(_0x375c58=_0x28f822['model']['createRange'](_0x28f822['model']['createPositionAt'](_0x375c58['start']['nodeAfter'],0x0))),_0x9b482c['push'](_0x375c58);_0x28f822['model']['change'](_0x385779=>{const _0x21709b=_0x28f822['model']['document']['selection'],_0x3af92e=Array['from'](_0x21709b['getRanges']())['map'](_0x3ec3f3=>_0x9a9b53['fromRange'](_0x3ec3f3));_0x385779['setSelection'](_0x9b482c),_0x28f822['commands']['get'](_0x1b2114['commandName'])['refresh'](),_0x1b2114['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x28f822['execute'](_0x1b2114['commandName'],..._0x1b2114['commandParams']),_0x385779['setSelection'](_0x3af92e);for(const _0x2942c0 of _0x3af92e)_0x2942c0['detach']();});}),_0x11ec67['descriptionFactory']['registerElementLabel'](function(_0x3f8d1b){const _0x43d434=!_0x28f822['model']['schema']['isObject'](_0x3f8d1b),_0x1dab3c=_0x3f8d1b['previousSibling'],_0x189971=_0x3f8d1b['nextSibling'],_0x5805c4=_0x3f8d1b['getAttribute']('listItemId'),_0x3a0f3f=!_0x1dab3c||_0x1dab3c['getAttribute']('listItemId')!==_0x5805c4,_0x42746b=!_0x189971||_0x189971['getAttribute']('listItemId')!==_0x5805c4;return _0x43d434&&Boolean(_0x5805c4)&&_0x3a0f3f&&_0x42746b;},_0x50a9f0=>c(_0x4b0710,'ELEMENT_LIST_ITEM',_0x50a9f0));}['_registerLegacyDescription'](){const _0x5b3c83=this['editor'],_0x369761=_0x5b3c83['locale'];function _0x551c69(_0x12214b){const _0x3806f8=_0x5b3c83['commands']['get']('bulletedList')['value'],_0x5e238b=_0x5b3c83['commands']['get']('numberedList')['value'];return'numberedList'===_0x12214b?_0x3806f8:_0x5e238b;}_0x5b3c83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xea95ae){if('formatBlock'!=_0xea95ae['type'])return;const {data:_0x37f6f2}=_0xea95ae;if(!_0x37f6f2)return;let _0x1beb1e,_0x515289,_0x3a741b,_0x445500;switch(_0x37f6f2['commandName']){case'bulletedList':_0x3a741b=_0x37f6f2['commandParams'][0x0]['forceValue'],_0x445500=_0x551c69(_0x37f6f2['commandName']),_0x1beb1e=_0x3a741b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x445500&&_0x5b3c83['config']['get']('list.multiBlock')||(_0x1beb1e='*Change\x20to:*\x20%0'),_0x515289={'type':'format','content':c(_0x369761,_0x1beb1e,c(_0x369761,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3a741b=_0x37f6f2['commandParams'][0x0]['forceValue'],_0x445500=_0x551c69(_0x37f6f2['commandName']),_0x1beb1e=_0x3a741b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x445500&&_0x5b3c83['config']['get']('list.multiBlock')||(_0x1beb1e='*Change\x20to:*\x20%0'),_0x515289={'type':'format','content':c(_0x369761,_0x1beb1e,c(_0x369761,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1beb1e='*Indent:*\x20%0',_0x515289={'type':'format','content':c(_0x369761,_0x1beb1e,c(_0x369761,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1beb1e=function(_0x434af4){const _0x581695=_0x434af4['getFirstRange']();let _0x40d397=_0x581695['start']['nodeAfter'];for(;_0x40d397&&_0x581695['containsItem'](_0x40d397);){if(_0x40d397['getAttribute']('listIndent')>0x0)return!0x1;_0x40d397=_0x40d397['nextSibling'];}return!0x0;}(_0xea95ae)?c(_0x369761,'*Format:*\x20remove\x20from\x20%0',c(_0x369761,function(_0xcb66a4){return'ELEMENT_'+_0xcb66a4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xea95ae))):c(_0x369761,'*Outdent:*\x20%0',c(_0x369761,'ELEMENT_LIST_ITEM')),_0x515289={'type':'format','content':_0x1beb1e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x37f6f2['multipleBlocks']&&(_0x1beb1e='*Merge:*\x20%0',_0x515289={'type':'deletion','content':c(_0x369761,_0x1beb1e,c(_0x369761,'ELEMENT_LIST_ITEM'))});}return _0x515289;});}}function Te(_0x41b857){let _0x58bbf6=_0x41b857['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x58bbf6;){const _0x502033=_0x58bbf6['getAttribute']('listItemId');if(!_0x502033)return!0x1;if(_0x502033==_0x41b857['data']['newValue'])return'newValue';if(_0x502033==_0x41b857['data']['oldValue'])return'oldValue';_0x58bbf6=_0x58bbf6['previousSibling'];}return!0x1;}class Se extends _0x453bfd{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x45c83c=this['editor']['config']['get']('list.properties'),_0x2b7de2=this['editor']['plugins']['get']('TrackChangesEditing');_0x45c83c['styles']&&(_0x2b7de2['enableDefaultAttributesIntegration']('listStyle'),_0x2b7de2['registerBlockAttribute']('listStyle')),_0x45c83c['reversed']&&(_0x2b7de2['enableDefaultAttributesIntegration']('listReversed'),_0x2b7de2['registerBlockAttribute']('listReversed')),_0x45c83c['startIndex']&&(_0x2b7de2['enableDefaultAttributesIntegration']('listStart'),_0x2b7de2['registerBlockAttribute']('listStart'));const _0x4f6bba={'type':'format','content':''};_0x2b7de2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5005de=this['editor']['locale'];_0x2b7de2['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x5005de,'FORMAT_LIST_REVERSED')),_0x2b7de2['descriptionFactory']['registerDescriptionCallback'](_0x331831=>{const {data:_0x44fb07}=_0x331831;if(_0x44fb07&&'listReversed'==_0x44fb07['key'])return null==_0x44fb07['newValue']||0x0==_0x44fb07['newValue']&&null==_0x44fb07['oldValue']?_0x4f6bba:void 0x0;}),_0x2b7de2['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x5005de,'FORMAT_LIST_START')),_0x2b7de2['descriptionFactory']['registerDescriptionCallback'](_0x1ee685=>{const {data:_0x4608af}=_0x1ee685;if(_0x4608af&&'listStart'==_0x4608af['key'])return null==_0x4608af['newValue']||0x1==_0x4608af['newValue']&&null==_0x4608af['oldValue']?_0x4f6bba:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5511b4=>{if(_0x5511b4['batch']['isUndo'])return!0x1;let _0xd2f91e=!0x1;const _0x1406b6=_0x2b7de2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25acb7=>{const _0x496158=_0x2b7de2['_getAttributeKey'](_0x25acb7);return'listStart'==_0x496158||'listReversed'==_0x496158;});for(const _0x37c14d of _0x1406b6){const _0x27c9b8=_0x37c14d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x27c9b8||'customNumbered'==_0x27c9b8)continue;_0x2b7de2['_findSuggestions'](_0x37c14d['getFirstRange'](),'attribute')['find'](_0x23e196=>'listType'==_0x2b7de2['_getAttributeKey'](_0x23e196['suggestion']))||(_0x5511b4['removeMarker'](_0x37c14d['getFirstMarker']()),_0xd2f91e=!0x0);}return _0xd2f91e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5639e5){const _0x50417c=this['editor']['locale'],{data:_0x435313}=_0x5639e5,_0x28f0a9={'type':'format','content':''};if(!_0x435313||'listStyle'!=_0x435313['key'])return;if(!_0x435313['oldValue'])return'default'==_0x435313['newValue']?_0x28f0a9:{'type':'format','content':''+c(_0x50417c,'*Set\x20format:*\x20%0',c(_0x50417c,this['_getTranslationKeyForListStyle'](_0x435313['newValue'])))};if(!_0x435313['newValue']){if('default'==_0x435313['oldValue'])return _0x28f0a9;let _0x21843f=_0x5639e5['head'];for(;_0x21843f;){if(_0x21843f['data']&&'listType'==_0x21843f['data']['key']&&_0x21843f['data']['newValue'])return _0x28f0a9;_0x21843f=_0x21843f['next'];}return{'type':'format','content':''+c(_0x50417c,'*Remove\x20format:*\x20%0',c(_0x50417c,this['_getTranslationKeyForListStyle'](_0x435313['oldValue'])))};}if('default'!=_0x435313['newValue'])return{'type':'format','content':''+c(_0x50417c,'*Set\x20format:*\x20%0',c(_0x50417c,this['_getTranslationKeyForListStyle'](_0x435313['newValue'])))};let _0x44a043=_0x5639e5['head'];for(;_0x44a043;){if(_0x44a043['data']&&'listType'==_0x44a043['data']['key']&&_0x44a043['data']['newValue']&&_0x44a043['data']['oldValue'])return _0x28f0a9;_0x44a043=_0x44a043['next'];}return{'type':'format','content':c(_0x50417c,'*Set\x20format:*\x20%0',c(_0x50417c,'ELEMENT_'+_0x5639e5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x355228=this['editor'],_0x89f314=_0x355228['locale'];_0x355228['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f1cb2=>{if('formatBlock'!=_0x2f1cb2['type'])return;const {data:_0x1304f5}=_0x2f1cb2;if(!_0x1304f5)return;let _0x2fe24e,_0x232313;switch(_0x1304f5['commandName']){case'listStyle':_0x2fe24e='*Change\x20to:*\x20%0',_0x232313={'type':'format','content':c(_0x89f314,_0x2fe24e,c(_0x89f314,this['_getTranslationKeyForListStyle'](_0x1304f5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2fe24e=_0x1304f5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x232313={'type':'format','content':c(_0x89f314,_0x2fe24e)};break;case'listStart':_0x2fe24e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x232313={'type':'format','content':c(_0x89f314,_0x2fe24e,_0x1304f5['commandParams'][0x0]['startIndex'])};}return _0x232313;});}['_getTranslationKeyForListStyle'](_0x21a919){return'ELEMENT_'+function(_0x1b542d){if(_e['includes'](_0x1b542d))return'bulleted';if(Re['includes'](_0x1b542d))return'numbered';return null;}(_0x21a919)['toUpperCase']()+'_LIST_'+_0x21a919['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x453bfd{['afterInit'](){const _0x47f7e8=this['editor'];_0x47f7e8['commands']['get']('emoji')&&_0x47f7e8['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x453bfd{static get['requires'](){return[_0x4091a4];}['init'](){const _0x9c3068=this['editor'],_0x1189a9=_0x9c3068['plugins']['get']('TrackChangesEditing'),_0x3321ac=_0x9c3068['commands']['get']('enter');_0x1189a9['enableCommand']('enter',()=>{_0x9c3068['model']['change'](_0x5d9c75=>{const _0x1ba2d6=_0x9c3068['model']['document']['selection'],_0x49e7c3=_0x1ba2d6['getFirstPosition'](),_0x53fe58=_0x9a9b53['fromRange'](_0x1ba2d6['getFirstRange']());if(_0x3321ac['enterBlock'](_0x5d9c75)){const _0x256b63=_0x9c3068['model']['createPositionAt'](_0x49e7c3['parent']['nextSibling'],0x0),_0x485d65=_0x5d9c75['createRange'](_0x49e7c3,_0x256b63);_0x1189a9['markInsertion'](_0x485d65);}else _0x5d9c75['setSelection'](_0x5d9c75['createRange'](_0x53fe58['end']));_0x53fe58['detach'](),_0x3321ac['fire']('afterExecute',{'writer':_0x5d9c75});});}),_0x9c3068['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x9c3068,'split'),{'priority':'high'}),_0x9c3068['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xa890a,_0xfe1d6d,_0x43c0b5)=>{const _0x4c90b2=_0x43c0b5['mapper']['markerNameToElements'](_0xfe1d6d['markerName']);if(_0x4c90b2){for(const _0x30daf9 of _0x4c90b2)_0x30daf9['hasClass']('ck-suggestion-marker-split')&&(_0x43c0b5['mapper']['unbindElementFromMarkerName'](_0x30daf9,_0xfe1d6d['markerName']),_0x43c0b5['writer']['remove'](_0x30daf9));}},{'priority':'high'}),_0x9c3068['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x10bd8d,_0x36fd3d,_0x593ef6)=>{_0x593ef6['options']['showSuggestionHighlights']&&Fe(_0x9c3068,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x10bd8d,_0x36fd3d,_0x593ef6);},{'priority':'high'});}}class Z extends _0x453bfd{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x59aea4=this['editor']['plugins']['get']('TrackChangesEditing');_0x59aea4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x59aea4['enableCommand']('findNext'),_0x59aea4['enableCommand']('findPrevious'),_0x59aea4['enableCommand']('replace'),_0x59aea4['enableCommand']('replaceAll');}['handleFindCommand'](_0x29162b,_0x49dde3,_0x5b1408={}){const _0x579193=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x29162b(_0x47585e=>{let _0x59579e=('string'==typeof _0x49dde3?_0x579193['findByTextCallback'](_0x49dde3,_0x5b1408):_0x49dde3)(_0x47585e);Array['isArray'](_0x59579e)&&(_0x59579e={'results':_0x59579e,'searchText':'string'==typeof _0x49dde3?_0x49dde3:''});const _0x519f8b=_0x59579e['results']['filter'](_0x214122=>!0x1===this['_isInDeletionRange'](_0x214122,_0x47585e['item']));return{..._0x59579e,'results':_0x519f8b};},_0x5b1408);}['_isInDeletionRange'](_0x17b4bd,_0x48d9d0){const _0x2872dd=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x48d9d0,_0x17b4bd['start']),this['editor']['model']['createPositionAt'](_0x48d9d0,_0x17b4bd['end']));for(const _0x1b0d15 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2872dd['getIntersection'](_0x1b0d15['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x453bfd{['afterInit'](){const _0x15907b=this['editor']['locale'],_0x585ea6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x544454,commandName:_0x4a5957}of ro)this['editor']['plugins']['has'](_0x544454)&&(_0x585ea6['enableDefaultAttributesIntegration'](_0x4a5957),_0x585ea6['registerInlineAttribute'](_0x4a5957));_0x585ea6['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x15907b,'FORMAT_FONT_SIZE')),_0x585ea6['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x15907b,'FORMAT_FONT_FAMILY')),_0x585ea6['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x15907b,'FORMAT_FONT_COLOR')),_0x585ea6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x15907b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4329e7=this['editor'],_0x49ae72=_0x4329e7['locale'];_0x4329e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x249be2=>{const _0x15cae1=_0x49ae72['t'];if('formatInline'!=_0x249be2['type'])return;const {data:_0xc08449}=_0x249be2;if(null!=_0xc08449){if('fontSize'==_0xc08449['commandName']){const _0x526c85=_0xc08449['commandParams'][0x0]['value'];if(_0x526c85){const _0x4abc8b=_0x15cae1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2d464a=>_0x2d464a['model']==_0x526c85)['title'])['toLowerCase']();return{'type':'format','content':c(_0x49ae72,'*Set\x20font\x20size:*\x20%0',_0x4abc8b)};}return{'type':'format','content':c(_0x49ae72,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xc08449['commandName']){const _0x52dfdd=_0xc08449['commandParams'][0x0]['value'];return _0x52dfdd?{'type':'format','content':c(_0x49ae72,'*Set\x20font\x20family:*\x20%0',_0x52dfdd)}:{'type':'format','content':c(_0x49ae72,'*Reset\x20font\x20family*')};}if('fontColor'==_0xc08449['commandName']){const _0x2e9757=_0xc08449['commandParams'][0x0]['value'];if(_0x2e9757){const _0x58b087=_0x15e511(this['editor']['config']['get']('fontColor.colors'))['find'](_0x23d82f=>_0x23d82f['model']==_0x2e9757);let _0x2fa781=_0x2e9757,_0x2230bc='';return _0x58b087&&(_0x2fa781=_0x58b087['label'],_0x2230bc=_0x15cae1(_0x2fa781)['toLowerCase']()),{'type':'format','content':c(_0x49ae72,'*Set\x20font\x20color:*\x20%0',_0x2230bc)['trim'](),'color':{'value':_0x2e9757,'title':_0x2230bc||_0x2fa781}};}return{'type':'format','content':c(_0x49ae72,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xc08449['commandName']){const _0x1507fd=_0xc08449['commandParams'][0x0]['value'];if(_0x1507fd){const _0x32bc16=_0x15e511(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2267f2=>_0x2267f2['model']==_0x1507fd);let _0x40f235=_0x1507fd,_0x3f73f4='';return _0x32bc16&&(_0x40f235=_0x32bc16['label'],_0x3f73f4=_0x15cae1(_0x40f235)['toLowerCase']()),{'type':'format','content':c(_0x49ae72,'*Set\x20font\x20background\x20color:*\x20%0',_0x3f73f4)['trim'](),'color':{'value':_0x1507fd,'title':_0x3f73f4||_0x40f235}};}return{'type':'format','content':c(_0x49ae72,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x453bfd{['afterInit'](){const _0x236c47=this['editor'],_0x14ea84=_0x236c47['plugins']['get']('TrackChangesEditing'),_0x30089e=_0x236c47['commands']['get']('copyFormat'),_0x3ab769=_0x236c47['commands']['get']('pasteFormat');_0x30089e&&_0x3ab769&&(_0x14ea84['enableDefaultAttributesIntegration']('pasteFormat'),_0x14ea84['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x33addf=this['editor'],_0x143575=_0x33addf['locale'];_0x33addf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e0b9f=>{if('formatBlock'!=_0x2e0b9f['type']&&'formatInline'!=_0x2e0b9f['type'])return;const {data:_0x5c141b}=_0x2e0b9f;if(_0x5c141b&&'pasteFormat'===_0x5c141b['commandName']){const _0x3287a1=[],_0x172017=_0x5c141b['commandParams'][0x0];for(const [_0x16e13b,_0x86c1c8]of Object['entries'](_0x172017))_0x3287a1['push'](so(_0x33addf,_0x16e13b,_0x86c1c8));return _0x3287a1['length']?{'type':'format','content':c(_0x143575,'*Set\x20format\x20to:*\x20%0',_0x3287a1['join'](',\x20'))}:{'type':'format','content':c(_0x143575,'*Remove\x20all\x20formatting*')};}});}}function so(_0xa3f4ea,_0x1fe271,_0x37bbe1){const _0x3729b8=_0xa3f4ea['locale']['t'],_0x3e9451=_0x1fe271['split'](/(?=[A-Z])/)['join']('\x20'),_0x5360af=_0x3729b8(_0x3e9451['charAt'](0x0)['toUpperCase']()+_0x3e9451['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x37bbe1)return _0x5360af;if('fontColor'===_0x1fe271||'fontBackgroundColor'===_0x1fe271){const _0x43d53a=_0x15e511(_0xa3f4ea['config']['get']('fontColor.colors'))['find'](_0x4564de=>_0x4564de['model']==_0x37bbe1);return _0x5360af+'\x20('+(_0x43d53a?_0x3729b8(_0x43d53a['label'])['toLowerCase']():_0x37bbe1)+')';}if('fontSize'===_0x1fe271&&isNaN(parseFloat(_0x37bbe1))){const _0x487e1a=_0xa3f4ea['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xa3f4ea['config']['get']('fontSize.options'))['find'](_0x151286=>_0x151286['model']==_0x37bbe1);return _0x5360af+'\x20('+(_0x487e1a?_0x3729b8(_0x487e1a['title'])['toLowerCase']():_0x37bbe1)+')';}return _0x5360af+'\x20('+_0x37bbe1+')';}class et extends _0x453bfd{['_headingOptions'];['afterInit'](){const _0x52db62=this['editor'];if(!_0x52db62['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x52db62['config']['get']('heading.options');const _0x27b1ab=_0x52db62['locale'],_0x42cfac=_0x52db62['plugins']['get']('TrackChangesEditing');_0x42cfac['enableDefaultAttributesIntegration']('heading');for(const _0x955a23 of this['_headingOptions'])'paragraph'!=_0x955a23['model']&&_0x42cfac['descriptionFactory']['registerElementLabel'](_0x955a23['model'],_0x41ff06=>{const _0x3cd2f2=this['_getHeadingLevel'](_0x955a23['model']);return null!==_0x3cd2f2?_0x18e1f6(_0x41ff06,_0x3cd2f2):_0x308c3c(_0x41ff06,_0x955a23['title']);});function _0x18e1f6(_0x57f1e0,_0xa9b246){return c(_0x27b1ab,'ELEMENT_HEADING',[_0x57f1e0,_0xa9b246]);}function _0x308c3c(_0x24cd0f,_0x18f0f4){return c(_0x27b1ab,'ELEMENT_HEADING_CUSTOM',[_0x24cd0f,_0x18f0f4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a7ede=this['editor'],_0x5d4a9c=_0x3a7ede['locale'];function _0x407616(_0x531bda,_0x5bdc41){return c(_0x5d4a9c,'ELEMENT_HEADING_CUSTOM',[_0x531bda,_0x5bdc41]);}_0x3a7ede['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3669e9=>{if('formatBlock'!=_0x3669e9['type'])return;const {data:_0x4f6d84}=_0x3669e9;if(_0x4f6d84&&'heading'==_0x4f6d84['commandName']){const _0x2f6544=_0x4f6d84['commandParams'][0x0]['value'],_0xc50e63=this['_getHeadingLevel'](_0x2f6544);if(null!==_0xc50e63)return{'type':'format','content':c(_0x5d4a9c,'*Change\x20to:*\x20%0',(_0x5747e6=0x1,_0x168c0c=_0xc50e63,c(_0x5d4a9c,'ELEMENT_HEADING',[_0x5747e6,_0x168c0c])))};const _0x1f00ce=this['_headingOptions']['find'](_0x4da10b=>_0x4da10b['model']===_0x2f6544)['title'];return{'type':'format','content':c(_0x5d4a9c,'*Change\x20to:*\x20%0',_0x407616(0x1,_0x1f00ce))};}var _0x5747e6,_0x168c0c;});}['_getHeadingLevel'](_0x54a972){const _0x3ec77b=_0x54a972['match'](/^heading(\d+)/);if(_0x3ec77b)return _0x3ec77b[0x1];const _0x45d9f7=this['_headingOptions']?.['find'](_0x25b586=>_0x25b586['model']==_0x54a972);if(_0x45d9f7&&_0x45d9f7['view']){const _0x535d30=_0x45d9f7['view'],_0x40bbe4=(_0x535d30['name']??_0x535d30)['match'](/^h(\d+)/);if(_0x40bbe4)return _0x40bbe4[0x1];}return null;}}class nt extends _0x453bfd{['afterInit'](){const _0x311d96=this['editor'];if(!_0x311d96['plugins']['has']('HighlightEditing'))return;const _0x4d16e1=_0x311d96['plugins']['get']('TrackChangesEditing'),_0x403941=_0x311d96['locale'];_0x4d16e1['enableDefaultAttributesIntegration']('highlight'),_0x4d16e1['registerInlineAttribute']('highlight'),_0x4d16e1['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x403941,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e47cc=this['editor'],_0x79faca=_0x3e47cc['locale'];_0x3e47cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d2e31=>{if('formatInline'!=_0x1d2e31['type'])return;const {data:_0x206b2b}=_0x1d2e31;if(_0x206b2b&&'highlight'==_0x206b2b['commandName']){const _0x5c21d4=_0x79faca['t'],_0x164f63=_0x206b2b['commandParams'][0x0]['value'];if(_0x164f63){const _0x235455=_0x3e47cc['config']['get']('highlight.options')['find'](_0x1dd8c9=>_0x1dd8c9['model']==_0x164f63),_0x57b6d4=_0x5c21d4(_0x235455['title'])['toLowerCase']();return{'type':'format','content':c(_0x79faca,'*Set\x20highlight:*\x20%0',_0x57b6d4),'color':{'value':_0x235455['color'],'title':_0x235455['title']}};}return{'type':'format','content':c(_0x79faca,'*Remove\x20highlight*',c(_0x79faca,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x453bfd{['afterInit'](){const _0x23ea4d=this['editor'];if(!_0x23ea4d['plugins']['has']('HorizontalLineEditing'))return;_0x23ea4d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x518fcc=_0x23ea4d['plugins']['get']('TrackChangesEditing'),_0x351c2d=_0x23ea4d['locale'];_0x518fcc['descriptionFactory']['registerElementLabel']('horizontalLine',_0x8b526b=>c(_0x351c2d,'ELEMENT_HORIZONTAL_LINE',_0x8b526b)),_0x23ea4d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x15bc0e,{writer:_0x3e993c,options:_0x2882cd})=>{if(!_0x2882cd['showSuggestionHighlights'])return null;const _0x1ee521=_0x3e993c['createContainerElement']('div'),_0x19ef44=_0x3e993c['createEmptyElement']('hr');return _0x3e993c['addClass']('ck-horizontal-line',_0x1ee521),_0x3e993c['insert'](_0x3e993c['createPositionAt'](_0x1ee521,0x0),_0x19ef44),_0x1ee521;},'converterPriority':'high'});}}class ot extends _0x453bfd{['afterInit'](){const _0x5bfb29=this['editor'];if(!_0x5bfb29['plugins']['has']('HtmlEmbed'))return;const _0xb8ea76=_0x5bfb29['plugins']['get']('TrackChangesEditing'),_0x1b1928=_0x5bfb29['locale'];_0xb8ea76['descriptionFactory']['registerElementLabel']('rawHtml',_0x33dcaa=>c(_0x1b1928,'ELEMENT_HTML_EMBED',_0x33dcaa)),_0xb8ea76['enableDefaultAttributesIntegration']('htmlEmbed'),_0xb8ea76['registerBlockAttribute']('value'),_0xb8ea76['descriptionFactory']['registerDescriptionCallback'](_0x4d540a=>{if('attribute'!=_0x4d540a['type'])return;const {data:_0x3eb4d3}=_0x4d540a;if(_0x3eb4d3&&'value'==_0x3eb4d3['key']&&_0x4d540a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x397089=c(_0x1b1928,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1b1928,'*Change\x20%0\x20content*',_0x397089)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e1acd=this['editor'],_0x260e9d=_0x1e1acd['locale'];_0x1e1acd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a3138=>{if('formatBlock'!=_0x2a3138['type'])return;const {data:_0x9bf746}=_0x2a3138;if(_0x9bf746&&'htmlEmbed'==_0x9bf746['commandName']){const _0x83df8d=c(_0x260e9d,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x260e9d,'*Change\x20%0\x20content*',_0x83df8d)};}});}}class rt extends _0x453bfd{['afterInit'](){const _0x3f3759=this['editor'];if(!_0x3f3759['plugins']['has']('ImageEditing'))return;const _0x1ce384=_0x3f3759['plugins']['get']('TrackChangesEditing'),_0x507b10=_0x3f3759['plugins']['get']('ImageUtils'),_0x230913=_0x3f3759['locale'];_0x1ce384['enableCommand']('insertImage'),_0x1ce384['descriptionFactory']['registerElementLabel']('imageBlock',_0x51370d=>c(_0x230913,'ELEMENT_IMAGE',_0x51370d)),_0x1ce384['descriptionFactory']['registerElementLabel']('imageInline',_0x5982cf=>c(_0x230913,'ELEMENT_INLINE_IMAGE',_0x5982cf)),_0x1ce384['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x230913,'ELEMENT_CAPTION')),_0x3f3759['plugins']['has']('ImageUploadEditing')&&_0x1ce384['enableCommand']('uploadImage'),_0x3f3759['plugins']['has']('ImageBlockEditing')&&_0x3f3759['plugins']['has']('ImageInlineEditing')&&(_0x1ce384['enableCommand']('imageTypeInline',(_0x526683,_0x248c38)=>{const _0x21bf6f=_0x507b10['getClosestSelectedImageElement'](_0x3f3759['model']['document']['selection']);_0x3f3759['model']['change'](()=>{_0x1ce384['markBlockFormat'](_0x21bf6f,{'commandName':'imageTypeInline','commandParams':[_0x248c38]},[],'convertBlockImageToInline');});}),_0x1ce384['enableCommand']('imageTypeBlock',(_0x5cd0e1,_0x3ac11f)=>{_0x3f3759['model']['change'](_0x5e4d7a=>{let _0x552388=_0x507b10['getClosestSelectedImageElement'](_0x3f3759['model']['document']['selection']),_0x54cffb=_0x5e4d7a['createRangeOn'](_0x552388);const _0x170f47=_0x48e990['fromPosition'](_0x54cffb['start'],'toPrevious'),_0x56e394=_0x48e990['fromPosition'](_0x54cffb['end'],'toNext');_0x1ce384['forceDefaultExecution'](()=>_0x5cd0e1(_0x3ac11f)),_0x552388=_0x507b10['getClosestSelectedImageElement'](_0x3f3759['model']['document']['selection']),_0x54cffb=_0x5e4d7a['createRangeOn'](_0x552388);const _0x3adb2d=_0x5e4d7a['createRange'](_0x170f47,_0x56e394);_0x170f47['detach'](),_0x56e394['detach'](),_0x1ce384['markBlockFormat'](_0x552388,{'commandName':'imageTypeInline','commandParams':[_0x3ac11f]},[],'convertInlineImageToBlock'),_0x3adb2d['start']['isBefore'](_0x54cffb['start'])&&_0x1ce384['markInsertion'](_0x5e4d7a['createRange'](_0x3adb2d['start'],_0x54cffb['start']),'convertInlineImageToBlock'),_0x54cffb['end']['isBefore'](_0x3adb2d['end'])&&_0x1ce384['markInsertion'](_0x5e4d7a['createRange'](_0x54cffb['end'],_0x3adb2d['end']),'convertInlineImageToBlock');});}),_0x1ce384['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1ce384['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1ce384['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1ce384['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1ce384['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1ce384['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4b71c1])=>{const _0x268ac3=_0x1ce384['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x8f1547=_0x4b71c1['start'],_0x137df7=_0x4b71c1['end'];const _0xf944ab=_0x3f3759['model']['schema']['getNearestSelectionRange'](_0x8f1547,'backward'),_0x570a90=_0x3f3759['model']['schema']['getNearestSelectionRange'](_0x137df7,'forward');_0xf944ab['isCollapsed']&&(_0x8f1547=_0xf944ab['start']),_0x570a90['isCollapsed']&&(_0x137df7=_0x570a90['end']),_0x268ac3([_0x3f3759['model']['createRange'](_0x8f1547,_0x137df7)]);}),_0x1ce384['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x23a220),_0x1ce384['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x23a220)),_0x3f3759['plugins']['has']('ImageCaptionEditing')&&(_0x1ce384['enableCommand']('toggleImageCaption',(_0xb1c367,_0x335001)=>{const _0x459df5=_0x3f3759['plugins']['get']('ImageCaptionUtils');let _0x27ca82=_0x507b10['getClosestSelectedImageElement'](_0x3f3759['model']['document']['selection']),_0x5b0798=_0x459df5['getCaptionFromImageModelElement'](_0x27ca82);_0x3f3759['model']['change'](()=>{if(_0x5b0798)return void _0x1ce384['markDeletion'](_0x3f3759['model']['createRangeOn'](_0x5b0798));const _0x1fdc6b=_0x507b10['isBlockImage'](_0x27ca82);_0xb1c367(_0x335001),_0x27ca82=_0x507b10['getClosestSelectedImageElement'](_0x3f3759['model']['document']['selection']),_0x5b0798=_0x459df5['getCaptionFromImageModelElement'](_0x27ca82),_0x1ce384['markInsertion'](_0x3f3759['model']['createRangeOn'](_0x5b0798),_0x1fdc6b?null:'imageCaption');});}),_0x1ce384['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x23a220));const _0x341219=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2cf508(_0x1b6f82,_0x1e8913){const _0x26f557=_0x341219['findIndex'](({type:_0x2f1bdb,subType:_0xa98d55})=>_0x1b6f82['type']==_0x2f1bdb&&_0x1b6f82['subType']==_0xa98d55),_0x4a4386=_0x341219['findIndex'](({type:_0x591803,subType:_0x114113})=>_0x1e8913['type']==_0x591803&&_0x1e8913['subType']==_0x114113);if(_0x26f557<0x0||_0x4a4386<0x0)return!0x1;const _0x18031f=_0x1b6f82['getFirstRange'](),_0x47753c=_0x1e8913['getFirstRange']();if((0x0==_0x26f557||0x1==_0x26f557)&&0x2==_0x4a4386&&_0x18031f['isIntersecting'](_0x47753c))return!0x0;if(0x2==_0x26f557&&0x3==_0x4a4386){const _0x4fa2d9=_0x1ce384['_findSuggestions'](_0x18031f,'insertion')['filter'](({suggestion:_0x4fb423,meta:_0x51db4b})=>_0x51db4b['isOwn']&&'convertInlineImageToBlock'==_0x4fb423['subType']);if(_0x4fa2d9['length']>0x1&&_0x47753c['end']['isEqual'](_0x18031f['start']))return!0x0;if(0x1==_0x4fa2d9['length']&&(_0x18031f['start']['isEqual'](_0x47753c['end'])||_0x18031f['end']['isEqual'](_0x47753c['start'])))return!0x0;}if(0x3==_0x26f557&&0x3==_0x4a4386&&_0x18031f['start']['isBefore'](_0x47753c['start'])){const _0x1a1587=_0x18031f['end']['nodeAfter'],_0x1d1cb1=_0x47753c['start']['nodeBefore'];return _0x507b10['isBlockImage'](_0x1a1587)&&_0x1a1587===_0x1d1cb1;}return!0x1;}function _0x23a220(_0x5f1910,_0x4eb47b){return _0x2cf508(_0x5f1910,_0x4eb47b)?[_0x5f1910,_0x4eb47b]:_0x2cf508(_0x4eb47b,_0x5f1910)?[_0x4eb47b,_0x5f1910]:null;}_0x3f3759['plugins']['has']('ImageResize')&&(_0x1ce384['enableDefaultAttributesIntegration']('resizeImage'),_0x1ce384['registerBlockAttribute']('resizedWidth'),_0x1ce384['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x230913,'FORMAT_IMAGE_SIZE'))),_0x3f3759['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1ce384['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1ce384['registerBlockAttribute']('alt')),_0x3f3759['plugins']['has']('PictureEditing')&&(_0x1ce384['registerBlockAttribute']('sources'),_0x1ce384['descriptionFactory']['registerDescriptionCallback'](_0x1f6dac=>{if('attribute'!=_0x1f6dac['type'])return;const {data:_0x1aa11e}=_0x1f6dac;return _0x1aa11e&&'sources'==_0x1aa11e['key']?{'type':'format','content':''}:void 0x0;})),_0x3f3759['plugins']['has']('ImageSizeAttributes')&&(_0x1ce384['registerBlockAttribute']('width'),_0x1ce384['registerBlockAttribute']('height'),_0x1ce384['descriptionFactory']['registerDescriptionCallback'](_0x26f58d=>{if('attribute'!=_0x26f58d['type'])return;const {data:_0x295126}=_0x26f58d;return!_0x295126||'width'!=_0x295126['key']&&'height'!=_0x295126['key']?void 0x0:{'type':'format','content':''};})),_0x1ce384['descriptionFactory']['registerDescriptionCallback'](_0x1c0793=>{if(!!_0x341219['find'](({type:_0x365ace,subType:_0x54f730})=>_0x1c0793['type']==_0x365ace&&_0x1c0793['subType']==_0x54f730))return _0x1c0793['previous']?{}:void 0x0;}),_0x1ce384['descriptionFactory']['registerDescriptionCallback'](_0x264359=>{if('insertion'==_0x264359['type']||'deletion'==_0x264359['type']){const _0x137398=_0x264359['getContainedElement']();if(_0x137398&&_0x137398['is']('element','caption'))return{'type':'insertion'==_0x264359['type']?'addObject':'removeObject','element':_0x137398,'quantity':0x1};}}),_0x1ce384['descriptionFactory']['registerDescriptionCallback'](_0x513da0=>'formatBlock'==_0x513da0['type']&&'convertInlineImageToBlock'==_0x513da0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x513da0['type']&&'convertBlockImageToInline'==_0x513da0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1ce384['descriptionFactory']['registerDescriptionCallback'](_0x3f67a0=>{if('attribute'!=_0x3f67a0['type'])return;const {data:_0x40580b}=_0x3f67a0;if(!_0x40580b||'alt'!=_0x40580b['key'])return;const _0x24afb0=_0x40580b['newValue'];return _0x24afb0?{'type':'format','content':c(_0x230913,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x24afb0+'\x22')}:{'type':'format','content':c(_0x230913,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x287aee=this['editor'],_0x2e1e71=_0x287aee['locale'];_0x287aee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16bf12=>{if('formatBlock'!=_0x16bf12['type']&&'formatInline'!=_0x16bf12['type'])return;const {data:_0x5c82b4}=_0x16bf12;if(_0x5c82b4){if('imageTextAlternative'==_0x5c82b4['commandName']){const _0xd9e777=_0x5c82b4['commandParams'][0x0]['newValue'];return _0xd9e777?{'type':'format','content':c(_0x2e1e71,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xd9e777+'\x22')}:{'type':'format','content':c(_0x2e1e71,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5c82b4['commandName']){const _0xc98b59=_0x5c82b4['commandParams'][0x0]['width'];return _0xc98b59?{'type':'format','content':c(_0x2e1e71,'*Set\x20image\x20width:*\x20%0',_0xc98b59)}:{'type':'format','content':c(_0x2e1e71,'*Reset\x20image\x20width*')};}}});}}class at extends _0x453bfd{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x31cbaf=this['editor']['locale'],_0x20cc69=this['editor']['plugins']['get']('TrackChangesEditing');_0x20cc69['enableDefaultAttributesIntegration']('replaceImageSource'),_0x20cc69['registerBlockAttribute']('src'),_0x20cc69['descriptionFactory']['registerDescriptionCallback'](_0x5972a1=>{if('attribute'!=_0x5972a1['type'])return;const {data:_0x8cfab3}=_0x5972a1;return _0x8cfab3&&'src'==_0x8cfab3['key']?_0x8cfab3['newValue']&&_0x8cfab3['oldValue']?{'type':'format','content':c(_0x31cbaf,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3f0a63=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f0a63['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3f0a63['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3f0a63['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3f0a63['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15b96a=this['editor'],_0x51b2de=_0x15b96a['locale'];_0x15b96a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x564843=>{if('formatBlock'!=_0x564843['type']&&'formatInline'!=_0x564843['type'])return;const {data:_0x2b4e91}=_0x564843;if(!_0x2b4e91||'replaceImageSource'!=_0x2b4e91['commandName'])return;return{'type':'format','content':c(_0x51b2de,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x453bfd{['afterInit'](){const _0x48d8ad=this['editor'];if(!_0x48d8ad['plugins']['has']('ImageStyleEditing'))return;const _0x7f32e5=_0x48d8ad['plugins']['get']('TrackChangesEditing'),_0x1d697b=_0x48d8ad['plugins']['get']('ImageUtils'),_0x54ca87={};_0x7f32e5['enableCommand']('imageStyle',(_0x38e861,_0x48f7c8)=>{const _0x449c6f=_0x48d8ad['plugins']['get']('Users')['me'],_0x72e716=_0x48d8ad['commands']['get']('imageStyle');let _0x40823e=_0x1d697b['getClosestSelectedImageElement'](_0x48d8ad['model']['document']['selection']),_0x23a961=_0x48d8ad['model']['createRangeOn'](_0x40823e),_0x5e2174=_0x72e716['value'];if(_0x5e2174==_0x48f7c8['value'])return;const _0x2b1b1c={'commandName':'imageStyle','commandParams':[_0x48f7c8],'formatGroupId':_0x36e858()};_0x48d8ad['model']['change'](()=>{if(_0x7f32e5['getSuggestions']()['filter'](_0x24dde6=>_0x24dde6['isInContent']&&_0x449c6f==_0x24dde6['author']&&('formatBlock'==_0x24dde6['type']||'formatInline'==_0x24dde6['type'])&&('imageStylePreApply'==_0x24dde6['subType']||'imageStylePostApply'==_0x24dde6['subType'])&&_0x24dde6['getFirstRange']()['isEqual'](_0x23a961))['forEach'](_0x2eff5a=>_0x7f32e5['discardSuggestion'](_0x2eff5a['head'])),_0x40823e=_0x1d697b['getClosestSelectedImageElement'](_0x48d8ad['model']['document']['selection']),_0x23a961=_0x48d8ad['model']['createRangeOn'](_0x40823e),_0x72e716['refresh'](),_0x48d8ad['commands']['get']('imageTypeInline')['refresh'](),_0x48d8ad['commands']['get']('imageTypeBlock')['refresh'](),_0x5e2174=_0x72e716['value'],_0x5e2174!=_0x48f7c8['value'])return _0x1d697b['isInlineImage'](_0x40823e)&&_0x72e716['shouldConvertImageType'](_0x48f7c8['value'],_0x40823e)?(_0x38e861({..._0x48f7c8,'setImageSizes':!0x1}),_0x40823e=_0x1d697b['getClosestSelectedImageElement'](_0x48d8ad['model']['document']['selection']),void _0x7f32e5['markBlockFormat'](_0x40823e,{..._0x2b1b1c,'commandReversedParams':[{'value':_0x5e2174||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1d697b['isBlockImage'](_0x40823e)?_0x7f32e5['markBlockFormat'](_0x40823e,_0x2b1b1c,[],'imageStylePostApply'):_0x7f32e5['markInlineFormat'](_0x23a961,_0x2b1b1c,'imageStylePostApply'));});});for(const _0x4561c0 of _0x48d8ad['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x54ca87[_0x4561c0['name']]=_0x4561c0['title']['toLowerCase']();_0x7f32e5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x7f32e5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x7f32e5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x7f32e5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3a06c0])=>{_0x1d697b['setImageNaturalSizeAttributes'](_0x3a06c0['getContainedElement']());}),_0x7f32e5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x56d146,_0x2460f1)=>{_0x7f32e5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x56d146,{'commandName':_0x2460f1['commandName'],'commandParams':_0x2460f1['commandReversedParams']});}),_0x7f32e5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1c64bd,_0x2ebf12){if(_0x1a3753(_0x1c64bd,_0x2ebf12))return[_0x1c64bd,_0x2ebf12];if(_0x1a3753(_0x2ebf12,_0x1c64bd))return[_0x2ebf12,_0x1c64bd];return null;});const _0x2d1233=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1a3753(_0x40e11c,_0x2afd40){const _0x35d592=_0x2d1233['findIndex'](({type:_0x57ff9a,subType:_0x5d7ffc})=>_0x40e11c['type']==_0x57ff9a&&_0x40e11c['subType']==_0x5d7ffc),_0x16438a=_0x2d1233['findIndex'](({type:_0x5affb4,subType:_0x44cd82})=>_0x2afd40['type']==_0x5affb4&&_0x2afd40['subType']==_0x44cd82);if(_0x35d592<0x0||_0x16438a<0x0)return!0x1;const _0x136b6c=_0x40e11c['getFirstRange'](),_0x2e1d52=_0x2afd40['getFirstRange']();if((0x0==_0x35d592||0x1==_0x35d592)&&0x2==_0x16438a&&_0x136b6c['isIntersecting'](_0x2e1d52))return!0x0;if(0x2==_0x35d592&&0x3==_0x16438a){const _0x6b94ec=_0x7f32e5['_findSuggestions'](_0x136b6c,'insertion')['filter'](({suggestion:_0x474d32,meta:_0x5be362})=>_0x5be362['isOwn']&&'convertInlineImageToBlock'==_0x474d32['subType']);if(_0x6b94ec['length']>0x1&&_0x2e1d52['end']['isEqual'](_0x136b6c['start']))return!0x0;if(0x1==_0x6b94ec['length']&&(_0x136b6c['start']['isEqual'](_0x2e1d52['end'])||_0x136b6c['end']['isEqual'](_0x2e1d52['start'])))return!0x0;}if(0x3==_0x35d592&&0x3==_0x16438a&&_0x136b6c['start']['isBefore'](_0x2e1d52['start'])){const _0x44d1f5=_0x136b6c['end']['nodeAfter'],_0x311efb=_0x2e1d52['start']['nodeBefore'];return _0x1d697b['isBlockImage'](_0x44d1f5)&&_0x44d1f5===_0x311efb;}return!0x1;}_0x48d8ad['model']['document']['registerPostFixer'](()=>{let _0x43281e=!0x1;const _0x3272cb=Array['from'](_0x48d8ad['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4c28f2,data:_0x5bbdeb}of _0x3272cb){const {group:_0x577676,type:_0x3f98e1,subType:_0x440709,id:_0x3d6d95}=_0x7f32e5['_splitMarkerName'](_0x4c28f2);if('suggestion'==_0x577676&&_0x7f32e5['hasSuggestion'](_0x3d6d95)){if('formatBlock'==_0x3f98e1&&('imageStylePreApply'==_0x440709||'imageStylePostApply'==_0x440709)){const _0x4b5d85=_0x7f32e5['getSuggestion'](_0x3d6d95);if(_0x5bbdeb['newRange']){const _0x97e86d=_0x4b5d85['getFirstRange']()['getContainedElement']();if(_0x1d697b['isBlockImage'](_0x97e86d))continue;_0x7f32e5['discardSuggestion'](_0x4b5d85),_0x43281e=!0x0;}}if('insertion'==_0x3f98e1&&'imageCaption'==_0x440709&&!_0x5bbdeb['newRange']){const _0x6d487f=_0x7f32e5['getSuggestion'](_0x3d6d95);_0x6d487f['next']&&_0x6d487f['next']['isInContent']&&(_0x7f32e5['discardSuggestion'](_0x6d487f['next']),_0x43281e=!0x0);}}}return _0x43281e;}),this['_registerLegacyDescription'](_0x54ca87);}['_registerLegacyDescription'](_0x52f283){const _0xb9d2bd=this['editor'],_0x45e07b=_0xb9d2bd['locale'];_0xb9d2bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d22da=>{if('formatBlock'!=_0x5d22da['type']&&'formatInline'!=_0x5d22da['type'])return;const {data:_0x53b328}=_0x5d22da;if(!_0x53b328||'imageStyle'!=_0x53b328['commandName'])return;const _0x35d202=_0x53b328['commandParams'][0x0]['value'];return _0x4a44f4('side'===_0x35d202?c(_0x45e07b,'FORMAT_SIDE_IMAGE'):_0x52f283[_0x35d202]||_0x35d202);function _0x4a44f4(_0x179bf4){return{'type':'format','content':c(_0x45e07b,'*Format:*\x20%0',_0x179bf4)};}});}}class ut extends _0x453bfd{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5b5844){super(_0x5b5844),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x145b73=this['editor'],_0x108160=_0x145b73['commands']['get']('importWord'),_0x5c1d9c=_0x145b73['commands']['get']('trackChanges');_0x108160&&(_0x108160['on']('execute',(_0x541480,[,_0x570ec9])=>{this['_trackChangesValueDuringImport']=_0x5c1d9c['value'],_0x570ec9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x108160,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x108160,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5c1d9c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x145b73['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x15ebd1,_0x227e20){const {suggestions:_0x463711}=_0x227e20,_0x27e57e=this['editor']['commands']['get']('trackChanges'),_0x4c6d82=_0x27e57e['value'];this['_trackChangesValueDuringImport']!==_0x4c6d82&&(_0x27e57e['execute'](),this['_trackChangesExecuted']=!0x0),_0x463711&&_0x463711['forEach'](({id:_0x4140e4,type:_0x2f5400,author:_0x502a97,created_at:_0x3216e2})=>{const _0xc44bab={'id':_0x4140e4,'type':_0x2f5400,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x502a97,'createdAt':_0x3216e2?new Date(_0x3216e2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xc44bab);});}}class ft extends _0x453bfd{['afterInit'](){const _0x9dfc5f=this['editor'],_0x290fd0=_0x9dfc5f['plugins']['get']('TrackChangesEditing');if(_0x9dfc5f['plugins']['has']('IndentEditing')&&(_0x290fd0['enableCommand']('indent'),_0x290fd0['enableCommand']('outdent')),_0x9dfc5f['plugins']['has']('IndentBlock')){for(const _0x5b4b8e of['indentBlock','outdentBlock'])_0x290fd0['enableDefaultAttributesIntegration'](_0x5b4b8e);}const _0x270fe3=_0x9dfc5f['locale'];_0x290fd0['registerBlockAttribute']('blockIndent'),_0x290fd0['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x270fe3,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53d7ce=this['editor'],_0x269cee=_0x53d7ce['locale'],_0x44f68e=_0x53d7ce['plugins']['get']('TrackChangesEditing');_0x44f68e['descriptionFactory']['registerDescriptionCallback'](_0x4ecb88=>{if('formatBlock'!=_0x4ecb88['type'])return;const {data:_0x2c80a3}=_0x4ecb88;if(!_0x2c80a3)return;if('indentBlock'!=_0x2c80a3['commandName']&&'outdentBlock'!=_0x2c80a3['commandName'])return;const _0x2f1894=_0x4ecb88['getItems']()[0x0],_0x2f1de9=_0x44f68e['descriptionFactory']['getItemLabel'](_0x2f1894);return'indentBlock'==_0x2c80a3['commandName']?{'type':'format','content':c(_0x269cee,'*Indent:*\x20%0',_0x2f1de9)}:'outdentBlock'==_0x2c80a3['commandName']?{'type':'format','content':c(_0x269cee,'*Outdent:*\x20%0',_0x2f1de9)}:void 0x0;});}}class ht extends _0x453bfd{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x453bfd{['afterInit'](){const _0xec89e9=this['editor'];if(!_0xec89e9['plugins']['has']('LinkEditing'))return;const _0x575dfc=_0xec89e9['plugins']['get']('TrackChangesEditing'),_0x5c761f=_0xec89e9['commands']['get']('link');_0x575dfc['enableDefaultAttributesIntegration']('link'),_0x575dfc['enableDefaultAttributesIntegration']('unlink'),_0x575dfc['registerInlineAttribute']('linkHref');for(const _0x26f0bd of _0x5c761f['manualDecorators'])_0x575dfc['registerInlineAttribute'](_0x26f0bd['id']),_0x575dfc['descriptionFactory']['registerAttributeLabel'](_0x26f0bd['id'],'link\x20('+_0x26f0bd['label']['toLowerCase']()+')');_0x575dfc['descriptionFactory']['registerDescriptionCallback'](_0x3570a0=>{if('attribute'!=_0x3570a0['type'])return;const {data:_0x9169f7}=_0x3570a0;if(!_0x9169f7||'linkHref'!=_0x9169f7['key'])return;const _0x3263ef=_0x9169f7['newValue'],_0x4129fb=_0xec89e9['locale'];return{'type':'format','content':null==_0x3263ef?c(_0x4129fb,'*Remove\x20link*'):c(_0x4129fb,'*Set\x20link:*\x20%0','\x22'+_0x3263ef+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x547ae7=this['editor'],_0x2ffd84=_0x547ae7['locale'];_0x547ae7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52d911=>{if('formatInline'!=_0x52d911['type'])return;const {data:_0x25b4c6}=_0x52d911;if(_0x25b4c6){if('link'==_0x25b4c6['commandName']){const _0x25c68b=_0x25b4c6['commandParams'][0x0];return{'type':'format','content':c(_0x2ffd84,'*Set\x20link:*\x20%0','\x22'+_0x25c68b+'\x22')};}return'unlink'==_0x25b4c6['commandName']?{'type':'format','content':c(_0x2ffd84,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x453bfd{['afterInit'](){const _0x32d61e=this['editor'],_0x8ff62c=_0x32d61e['locale'];if(!_0x32d61e['plugins']['has']('LegacyListEditing'))return;const _0xc0c1bf=_0x32d61e['plugins']['get']('TrackChangesEditing'),_0x5bc291=_0x32d61e['plugins']['has']('LegacyTodoListEditing');function _0x366c54(_0x2a10be){return()=>{const _0x3a5352=_0x32d61e['model']['document']['selection'],_0x222265=_0x32d61e['commands']['get'](_0x2a10be);if(_0x222265['value'])return void _0x32d61e['execute']('paragraph',{});const _0x286373=_0x2a10be['slice'](0x0,-0x4),_0xf2d955=function(_0x3d9bbb,_0x1169bc,_0x481e12){let _0x4e2ce4=Array['from'](_0x3d9bbb)['filter'](_0x42a50d=>function(_0x1e49b5,_0x409bba){return _0x409bba['checkChild'](_0x1e49b5['parent'],'listItem')&&!_0x409bba['isObject'](_0x1e49b5);}(_0x42a50d,_0x481e12));_0x4e2ce4=_0x4e2ce4['filter'](_0x4725d3=>!_0x4725d3['is']('element','listItem')||_0x4725d3['getAttribute']('listType')!=_0x1169bc);const _0x40a49c=new Set();for(const _0x2d3bf9 of _0x4e2ce4)_0x2d3bf9['is']('element','listItem')?_0x40a49c['add'](Le(_0x2d3bf9)):_0x40a49c['add'](_0x2d3bf9);return Array['from'](_0x40a49c);}(_0x3a5352['getSelectedBlocks'](),_0x286373,_0x32d61e['model']['schema']);_0x32d61e['model']['change'](()=>{for(const _0x136d42 of _0xf2d955)_0xc0c1bf['markBlockFormat'](_0x136d42,{'commandName':_0x2a10be,'commandParams':[{'forceValue':!_0x222265['value']}],'formatGroupId':'blockName'},Ee(_0x136d42));});};}function _0x35cf6e(_0x31d7f1){return()=>{const _0x181dee=function(_0x16f940){let _0x3a391a=Array['from'](_0x16f940);const _0x195561=_0x3a391a['findIndex'](_0x4fa9cd=>'listItem'!=_0x4fa9cd['name']);return _0x195561>-0x1&&(_0x3a391a=_0x3a391a['slice'](0x0,_0x195561)),_0x3a391a;}(_0x32d61e['model']['document']['selection']['getSelectedBlocks']()),_0x47cb3f=_0x32d61e['model']['createRange'](_0x32d61e['model']['createPositionAt'](_0x181dee[0x0],'before'),_0x32d61e['model']['createPositionAt'](_0x181dee[_0x181dee['length']-0x1],'end'));_0x32d61e['model']['change'](()=>{_0xc0c1bf['markBlockFormat'](_0x47cb3f,{'commandName':_0x31d7f1,'commandParams':[],'formatGroupId':'listIndent'},function(_0x16f79f){const _0x3b5de5=new Set();for(const _0xde7c50 of _0x16f79f){let _0x1b2e97=_0xde7c50['nextSibling'];for(;_0x1b2e97&&_0x1b2e97['getAttribute']('listIndent')>_0xde7c50['getAttribute']('listIndent');)_0x3b5de5['add'](_0x1b2e97),_0x1b2e97=_0x1b2e97['nextSibling'];}return Array['from'](_0x3b5de5);}(_0x181dee));});};}_0xc0c1bf['enableCommand']('numberedList',_0x366c54('numberedList')),_0xc0c1bf['enableCommand']('bulletedList',_0x366c54('bulletedList')),_0x5bc291&&_0xc0c1bf['enableCommand']('todoList',_0x366c54('todoList')),_0xc0c1bf['enableCommand']('indentList',_0x35cf6e('indentList')),_0xc0c1bf['enableCommand']('outdentList',_0x35cf6e('outdentList')),_0x5bc291&&_0xc0c1bf['enableCommand']('checkTodoList',()=>{const _0x5d8427=_0x32d61e['commands']['get']('checkTodoList'),_0x266f69=Array['from'](_0x5d8427['_selectedElements']);_0x266f69['filter'](_0x4c8e7f=>_0x4c8e7f['getAttribute']('todoListChecked')!=_0x5d8427['value']),_0x32d61e['model']['change'](()=>{for(const _0x239c54 of _0x266f69)_0xc0c1bf['markBlockFormat'](_0x239c54,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5d8427['value']}]});});}),_0xc0c1bf['descriptionFactory']['registerElementLabel']('listItem',_0x524812=>c(_0x8ff62c,'ELEMENT_LIST_ITEM',_0x524812)),_0xc0c1bf['descriptionFactory']['registerDescriptionCallback'](_0x2287f6=>{if('formatBlock'!=_0x2287f6['type']&&'formatInline'!=_0x2287f6['type'])return;const {data:_0x147378}=_0x2287f6;if(_0x147378){if('numberedList'==_0x147378['commandName']||'bulletedList'==_0x147378['commandName']||'todoList'==_0x147378['commandName'])switch(_0x147378['commandName']['replace']('List','')){case'bulleted':return _0x4de28a(c(_0x8ff62c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4de28a(c(_0x8ff62c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4de28a(c(_0x8ff62c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x147378['commandName'])return{'type':'format','content':c(_0x8ff62c,'*Indent:*\x20%0',c(_0x8ff62c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x147378['commandName'])return{'type':'format','content':c(_0x8ff62c,'*Outdent:*\x20%0',c(_0x8ff62c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x147378['commandName'])return _0x147378['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x8ff62c,'*Check\x20item*')}:{'type':'format','content':c(_0x8ff62c,'*Uncheck\x20item*')};}function _0x4de28a(_0x5d1582){return{'type':'format','content':c(_0x8ff62c,'*Change\x20to:*\x20%0',_0x5d1582)};}});}}function Le(_0x1f555d){const _0x1337f3=_0x1f555d['getAttribute']('listIndent');if(0x0==_0x1337f3)return _0x1f555d;let _0xc8644c=_0x1f555d;for(;_0x1f555d['previousSibling']&&_0x1f555d['previousSibling']['is']('element','listItem');){const _0x69ce02=_0x1f555d['previousSibling']['getAttribute']('listIndent');if(_0x69ce02==_0x1337f3)_0xc8644c=_0x1f555d['previousSibling'];else{if(_0x69ce02<_0x1337f3)break;}_0x1f555d=_0x1f555d['previousSibling'];}return _0xc8644c;}function Ee(_0x1dfb66){const _0xe59b87=[];if(_0x1dfb66['is']('element','listItem')&&_0x1dfb66['getAttribute']('listIndent')>0x0){let _0x3db785=_0x1dfb66['nextSibling'];for(;_0x3db785&&'listItem'==_0x3db785['name']&&_0x3db785['getAttribute']('listIndent')==_0x1dfb66['getAttribute']('listIndent');)_0xe59b87['push'](_0x3db785),_0x3db785=_0x3db785['nextSibling'];}return _0xe59b87;}class Q extends _0x453bfd{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2981a9=this['editor']['config']['get']('list.properties'),_0x5d8864=this['editor']['plugins']['get']('TrackChangesEditing');_0x2981a9['styles']&&_0x5d8864['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2981a9['reversed']&&_0x5d8864['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2981a9['startIndex']&&_0x5d8864['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5d8864['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5a74f,_0x240aa5={}){const _0x582be5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x322131=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x582be5['markMultiRangeBlockFormat'](_0x322131,{'commandName':'listStyle','commandParams':[{'type':_0x240aa5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1f2ac6,_0xcbd1d8={}){const _0x390727=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe97e56=this['_getSuggestionBlocks'](_0x45aa75=>_0x45aa75['is']('element','listItem')&&'numbered'===_0x45aa75['getAttribute']('listType'));if(_0xe97e56['length']<0x1)return;const _0x531286=_0xe97e56['map'](_0x5266c0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5266c0,'before'),this['editor']['model']['createPositionAt'](_0x5266c0,0x0)));this['editor']['model']['change'](()=>{_0x390727['markMultiRangeBlockFormat'](_0x531286,{'commandName':'listReversed','commandParams':[{'reversed':_0xcbd1d8['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3c3104,_0x19c908={}){const _0x294ab2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b53f9=this['_getSuggestionBlocks'](_0x58ae44=>_0x58ae44['is']('element','listItem')&&'numbered'===_0x58ae44['getAttribute']('listType'));if(_0x4b53f9['length']<0x1)return;const _0x40270f=_0x4b53f9['map'](_0x403a22=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x403a22,'before'),this['editor']['model']['createPositionAt'](_0x403a22,0x0)));this['editor']['model']['change'](()=>{_0x294ab2['markMultiRangeBlockFormat'](_0x40270f,{'commandName':'listStart','commandParams':[{'startIndex':_0x19c908['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x258a5e){if('formatBlock'!=_0x258a5e['type']&&'formatInline'!=_0x258a5e['type'])return;const _0x2c2135=this['editor']['locale'],{data:_0x30bcd1}=_0x258a5e;if(!_0x30bcd1)return;let _0x2840f3,_0x2bf672;switch(_0x30bcd1['commandName']){case'listStyle':_0x2840f3='*Change\x20to:*\x20%0',_0x2bf672={'type':'format','content':c(_0x2c2135,_0x2840f3,c(_0x2c2135,this['_getTranslationKeyForListStyle'](_0x30bcd1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2840f3=_0x30bcd1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2bf672={'type':'format','content':c(_0x2c2135,_0x2840f3)};break;case'listStart':_0x2840f3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2bf672={'type':'format','content':c(_0x2c2135,_0x2840f3,_0x30bcd1['commandParams'][0x0]['startIndex'])};}return _0x2bf672;}['_getSuggestionBlocksForListStyle'](){const _0x2255de=this['editor']['plugins']['get']('LegacyListUtils');let _0x133493=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x133493[0x0]?.['is']('element','listItem')&&_0x133493['unshift'](..._0x2255de['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x133493[_0x133493['length']-0x1]?.['is']('element','listItem')&&_0x133493['push'](..._0x2255de['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x133493=[...new Set(_0x133493)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x133493=_0x133493['filter'](_0x4cf45c=>_0x4cf45c['is']('element','listItem'))),_0x133493;}['_getSuggestionBlocks'](_0x494076){const _0x13e2e3=this['editor']['plugins']['get']('LegacyListUtils');let _0x31ed25=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x494076)['map'](_0xaeade8=>{const _0x723e1b=this['editor']['model']['createPositionAt'](_0xaeade8,0x0);return[..._0x13e2e3['getSiblingNodes'](_0x723e1b,'backward'),..._0x13e2e3['getSiblingNodes'](_0x723e1b,'forward')];})['flat']();return _0x31ed25=[...new Set(_0x31ed25)],_0x31ed25;}['_getTranslationKeyForListStyle'](_0x4dfd4a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4dfd4a)||'default')['toUpperCase']()+'_LIST_'+_0x4dfd4a['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x453bfd{['afterInit'](){const _0x1503ac=this['editor'];if(!_0x1503ac['plugins']['has']('MediaEmbedEditing'))return;const _0x383fc0=_0x1503ac['plugins']['get']('TrackChangesEditing'),_0x2a3dfe=_0x1503ac['locale'];_0x383fc0['enableCommand']('mediaEmbed'),_0x383fc0['descriptionFactory']['registerElementLabel']('media',_0x55c766=>c(_0x2a3dfe,'ELEMENT_MEDIA',_0x55c766)),_0x1503ac['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4ff98a,{writer:_0x577048,options:_0x4e04cf})=>{if(_0x4e04cf['showSuggestionHighlights'])return _0x577048['createEmptyElement']('div');},'converterPriority':'high'}),_0x1503ac['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4553a3,_0x1b76a2,_0x504c26)=>{_0x504c26['options']['showSuggestionHighlights']&&_0x4553a3['stop']();},{'priority':'high'});}}class pt extends _0x453bfd{['afterInit'](){const _0x1018db=this['editor'];_0x1018db['plugins']['has']('MentionEditing')&&_0x1018db['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x453bfd{['afterInit'](){const _0x4c01e4=this['editor'];if(!_0x4c01e4['plugins']['has']('MergeFieldsEditing'))return;const _0x5dc0de=_0x4c01e4['plugins']['get']('TrackChangesEditing'),_0x146fd7=_0x4c01e4['locale'];_0x5dc0de['enableCommand']('insertMergeField'),_0x5dc0de['enableCommand']('insertMergeFieldBlock'),_0x5dc0de['enableCommand']('insertMergeFieldImage'),_0x5dc0de['descriptionFactory']['registerElementLabel']('mergeField',_0x3198db=>c(_0x146fd7,'ELEMENT_MERGE_FIELD',_0x3198db)),_0x5dc0de['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x478073=>c(_0x146fd7,'ELEMENT_MERGE_FIELD',_0x478073)),_0x5dc0de['descriptionFactory']['registerDescriptionCallback'](_0x5c5120=>{if('insertion'!=_0x5c5120['type']&&'deletion'!=_0x5c5120['type'])return;const _0x35da18=_0x5c5120['getContainedElement']();if(null==_0x35da18)return;const _0x29c2cf=_0x4c01e4['plugins']['get']('MergeFieldsEditing');let _0x34730a;switch(_0x29c2cf['getMergeFieldType'](_0x35da18)){case null:return;case'image':{const _0x3709b9=_0x29c2cf['unwrapAffixes'](_0x35da18['getAttribute']('src'));_0x34730a=_0x29c2cf['getLabel'](_0x3709b9)||_0x3709b9;break;}default:{const _0x152701=_0x35da18['getAttribute']('id');_0x34730a=_0x29c2cf['getLabel'](_0x152701)||_0x152701;break;}}return'insertion'==_0x5c5120['type']?{'type':'insertion','content':c(_0x146fd7,'*Insert:*\x20%0','\x22'+_0x34730a+'\x22\x20'+c(_0x146fd7,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x146fd7,'*Remove:*\x20%0','\x22'+_0x34730a+'\x22\x20'+c(_0x146fd7,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x453bfd{['afterInit'](){const _0x378d88=this['editor'],_0x23c2bd=_0x378d88['plugins']['get']('TrackChangesEditing');_0x378d88['plugins']['has']('MultiLevelList')&&(_0x23c2bd['enableDefaultAttributesIntegration']('multiLevelList'),_0x23c2bd['registerBlockAttribute']('listMarkerStyle'),_0x23c2bd['descriptionFactory']['registerDescriptionCallback'](_0x2d02e0=>this['handleDescriptions'](_0x2d02e0)));}['handleDescriptions'](_0x3221c6){const _0xe9866e=this['editor']['locale'],{data:_0x269ef8}=_0x3221c6,_0x3a8d77={'type':'format','content':''};if(_0x269ef8&&'listMarkerStyle'==_0x269ef8['key']){if(!_0x269ef8['oldValue'])return{'type':'format','content':c(_0xe9866e,'*Set\x20format:*\x20%0',c(_0xe9866e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x269ef8['newValue']+')'};if(!_0x269ef8['newValue']){let _0x58d256=_0x3221c6['head'];for(;_0x58d256;){if(_0x58d256['data']&&'listType'==_0x58d256['data']['key']&&_0x58d256['data']['newValue'])return _0x3a8d77;_0x58d256=_0x58d256['next'];}return{'type':'format','content':c(_0xe9866e,'*Remove\x20format:*\x20%0',c(_0xe9866e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x269ef8['oldValue']+')'};}}}}class bt extends _0x453bfd{['afterInit'](){const _0x465075=this['editor'];if(!_0x465075['plugins']['has']('PageBreakEditing'))return;_0x465075['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5ce27f=_0x465075['plugins']['get']('TrackChangesEditing'),_0x417442=_0x465075['locale'];_0x5ce27f['descriptionFactory']['registerElementLabel']('pageBreak',_0x43a63f=>c(_0x417442,'ELEMENT_PAGE_BREAK',_0x43a63f));}}class yt extends _0x453bfd{['afterInit'](){const _0x3bba9c=this['editor'];if(!_0x3bba9c['plugins']['has']('Paragraph'))return;const _0x52eac5=_0x3bba9c['locale'],_0x5a6f97=_0x3bba9c['plugins']['get']('TrackChangesEditing');_0x5a6f97['descriptionFactory']['registerElementLabel']('paragraph',_0x4294e3=>c(_0x52eac5,'ELEMENT_PARAGRAPH',_0x4294e3)),_0x5a6f97['enableDefaultAttributesIntegration']('paragraph'),_0x5a6f97['enableCommand']('insertParagraph'),_0x3bba9c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3bba9c),{'priority':'highest'}),_0x3bba9c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x31df0f,_0x6d33e4,_0x4e9880)=>{_0x4e9880['options']['showSuggestionHighlights']&&nr(_0x3bba9c,{'showActiveMarker':!0x1})(_0x31df0f,_0x6d33e4,_0x4e9880);},{'priority':'highest'});const _0x4075cc=_0x5a6f97['descriptionFactory'];_0x4075cc['registerDescriptionCallback'](_0x129b76=>{if('insertion'!==_0x129b76['type'])return;const {start:_0x3dee53,end:_0xca1e64}=_0x129b76['getFirstRange']();if(!_0x3dee53['isTouching'](_0xca1e64)||!_0x3dee53['nodeAfter'])return;const _0x1310d8=_0x3bba9c['model']['schema'],_0x9dc436=_0x3dee53['nodeAfter'];return _0x1310d8['isBlock'](_0x9dc436)&&!_0x1310d8['isLimit'](_0x9dc436)&&_0x1310d8['checkChild'](_0x9dc436,'$text')?{'type':'insertion','content':c(_0x52eac5,'*Insert:*\x20%0',_0x4075cc['getItemLabel'](_0x9dc436,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50f439=this['editor'],_0x5de60f=_0x50f439['locale'];_0x50f439['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48fa36=>{if('formatBlock'!=_0x48fa36['type'])return;const {data:_0x50b33f}=_0x48fa36;return _0x50b33f&&'paragraph'==_0x50b33f['commandName']?{'type':'format','content':c(_0x5de60f,'*Change\x20to:*\x20%0',c(_0x5de60f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x6d5dc8,{showActiveMarker:_0x3a5172=!0x0}={}){return(_0x43b4c6,_0x32ed94,_0x543a28)=>{const _0x3eabe9=_0x6d5dc8['plugins']['get']('TrackChangesEditing'),_0x393e84=_0x32ed94['markerRange']['start'],_0x3ddbda=_0x32ed94['markerRange']['end'],_0x36f6c0=_0x6d5dc8['model']['schema'];if(!_0x393e84['isTouching'](_0x3ddbda)||!_0x393e84['nodeAfter'])return;const _0x598c18=_0x393e84['nodeAfter'];if(_0x36f6c0['isBlock'](_0x598c18)&&!_0x36f6c0['isLimit'](_0x598c18)&&_0x36f6c0['checkChild'](_0x598c18,'$text')){if(!_0x543a28['consumable']['consume'](_0x32ed94['markerRange'],_0x43b4c6['name']))return;const {id:_0x5859a0,authorId:_0x39a2d5}=_0x3eabe9['_splitMarkerName'](_0x32ed94['markerName']),_0x1e8e64=_0x543a28['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x5859a0,'data-author-id':_0x39a2d5}),_0x860d56=_0x543a28['mapper']['toViewPosition'](_0x3ddbda);_0x3a5172&&_0x3eabe9['activeMarkers']['includes'](_0x32ed94['markerName'])&&_0x543a28['writer']['addClass']('ck-suggestion-marker--active',_0x1e8e64),_0x543a28['writer']['insert'](_0x860d56,_0x1e8e64),_0x543a28['mapper']['bindElementToMarker'](_0x1e8e64,_0x32ed94['markerName']);}};}class St extends _0x453bfd{['afterInit'](){const _0x3a5271=this['editor'];_0x3a5271['commands']['get']('replaceSource')&&_0x3a5271['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x453bfd{['afterInit'](){const _0x336604=this['editor'];if(!_0x336604['plugins']['has']('RemoveFormatEditing'))return;_0x336604['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cb4bf=this['editor'];_0x2cb4bf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x179836=>{if('formatBlock'!=_0x179836['type']&&'formatInline'!=_0x179836['type'])return;const {data:_0x886b2a}=_0x179836;return _0x886b2a&&'removeFormat'==_0x886b2a['commandName']?{'type':'format','content':c(_0x2cb4bf['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x453bfd{['afterInit'](){const _0x561a36=this['editor'];if(!_0x561a36['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x291f06=_0x561a36['plugins']['get']('TrackChangesEditing');_0x291f06['enableCommand']('goToPreviousRestrictedEditingException'),_0x291f06['enableCommand']('goToNextRestrictedEditingException');const _0x336050=_0x561a36['plugins']['get']('RestrictedEditingModeEditing');_0x336050['enableCommand']('trackChanges'),_0x336050['enableCommand']('acceptSuggestion'),_0x336050['enableCommand']('discardSuggestion'),_0x336050['enableCommand']('acceptAllSuggestions'),_0x336050['enableCommand']('discardAllSuggestions'),_0x336050['enableCommand']('acceptSelectedSuggestions'),_0x336050['enableCommand']('discardSelectedSuggestions');}}class At extends _0x453bfd{['afterInit'](){const _0x470135=this['editor'];if(!_0x470135['plugins']['has']('ShiftEnter'))return;const _0x2ff418=_0x470135['plugins']['get']('TrackChangesEditing');_0x2ff418['enableCommand']('shiftEnter'),_0x470135['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x470135),{'priority':'high'}),_0x470135['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x470135),{'priority':'high'}),_0x470135['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a7765,_0x31ac6c,_0x5efddf)=>{_0x5efddf['options']['showSuggestionHighlights']&&je(_0x470135,{'showActiveMarker':!0x1})(_0x5a7765,_0x31ac6c,_0x5efddf);}),_0x2ff418['descriptionFactory']['registerElementLabel']('softBreak',_0x699927=>c(_0x470135['locale'],'ELEMENT_LINE_BREAK',_0x699927));}}function je(_0x5ebe42,{showActiveMarker:_0x28e846=!0x0}={}){return(_0x4c0912,_0x39aedb,_0x397845)=>{const _0x89aa7c=_0x5ebe42['plugins']['get']('TrackChangesEditing');if(!_0x397845['consumable']['test'](_0x39aedb['markerRange'],_0x4c0912['name']))return;const _0x50d8ef=_0x5ebe42['model'];for(const _0x48025a of _0x39aedb['markerRange']['getItems']()){if(!_0x48025a['is']('element','softBreak'))continue;const _0x7dadd5='deletion'==_0x39aedb['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xeae74e,authorId:_0x3e129e}=_0x89aa7c['_splitMarkerName'](_0x39aedb['markerName']),_0x347f40=_0x397845['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x7dadd5,'data-suggestion':_0xeae74e,'data-author-id':_0x3e129e}),_0x5ddacb=_0x397845['mapper']['toViewPosition'](_0x50d8ef['createPositionBefore'](_0x48025a));_0x28e846&&_0x89aa7c['activeMarkers']['includes'](_0x39aedb['markerName'])&&_0x397845['writer']['addClass']('ck-suggestion-marker--active',_0x347f40),_0x397845['writer']['insert'](_0x5ddacb,_0x347f40),_0x397845['mapper']['bindElementToMarker'](_0x347f40,_0x39aedb['markerName']);}};}class _t extends _0x453bfd{['afterInit'](){const _0x43d148=this['editor'],_0x24592a=_0x43d148['model'],_0x113a05=_0x43d148['locale'];if(!_0x43d148['plugins']['has']('StandardEditingModeEditing'))return;const _0x19c428=_0x43d148['plugins']['get']('TrackChangesEditing'),_0x4ec86a='restrictedEditingException',_0x43b6e8=_0x43d148['commands']['get'](_0x4ec86a);_0x19c428['enableCommand'](_0x4ec86a,(_0x31c5d4,_0x55cbf0={})=>{const _0x1cbf50=_0x24592a['document']['selection'];if(_0x1cbf50['isCollapsed'])return void _0x31c5d4(_0x55cbf0);const _0x5614f8=void 0x0!==_0x55cbf0['forceValue']?_0x55cbf0['forceValue']:!_0x43b6e8['value'];_0x24592a['change'](()=>{const _0x29f351=Array['from'](_0x1cbf50['getRanges']());for(const _0x184b6c of _0x29f351){const _0xab76e9=_0x5614f8?[_0x184b6c]:io(_0x4ec86a,_0x184b6c,_0x24592a);for(const _0x7a3fec of _0xab76e9)_0x19c428['markInlineFormat'](_0x7a3fec,{'commandName':_0x4ec86a,'commandParams':[{'forceValue':_0x5614f8}]});}});}),_0x19c428['descriptionFactory']['registerDescriptionCallback'](_0x46a66f=>{if('formatBlock'!=_0x46a66f['type']&&'formatInline'!=_0x46a66f['type'])return;const {data:_0x66b485}=_0x46a66f;return _0x66b485&&_0x66b485['commandName']==_0x4ec86a?_0x66b485['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x113a05,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x113a05,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x453bfd{['afterInit'](){const _0x55dcc8=this['editor'];if(!_0x55dcc8['plugins']['has']('Style')||!_0x55dcc8['plugins']['has']('DataSchema'))return;const _0x4c42a3=_0x55dcc8['plugins']['get']('TrackChangesEditing'),_0x17cb38=_0x55dcc8['locale'],_0x1941a8=_0x55dcc8['config']['get']('style')||{},_0x2a8aa5=_0x55dcc8['plugins']['get']('GeneralHtmlSupport'),_0x28e97d=_0x55dcc8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x55dcc8['plugins']['get']('DataSchema'),_0x1941a8['definitions']);_0x4c42a3['enableDefaultAttributesIntegration']('style');const _0x3d91a8=new Set();for(const _0x3f494d of _0x28e97d['block']){const _0x36c33e=_0x2a8aa5['getGhsAttributeNameForElement'](_0x3f494d['element']);_0x3d91a8['add'](_0x36c33e);}const _0x1012bb=new Set();for(const _0x7ca38b of _0x28e97d['inline']){const _0x5ac038=_0x2a8aa5['getGhsAttributeNameForElement'](_0x7ca38b['element']);_0x1012bb['add'](_0x5ac038);for(const _0x5ac526 of _0x7ca38b['ghsAttributes'])_0x1012bb['add'](_0x5ac526);}for(const _0x580faa of _0x3d91a8)_0x4c42a3['registerBlockAttribute'](_0x580faa),_0x4c42a3['descriptionFactory']['registerAttributeLabel'](_0x580faa,c(_0x17cb38,'FORMAT_STYLE'));for(const _0x4ed4ef of _0x1012bb)_0x4c42a3['registerInlineAttribute'](_0x4ed4ef),_0x4c42a3['descriptionFactory']['registerAttributeLabel'](_0x4ed4ef,c(_0x17cb38,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37b458=this['editor'],_0x5d14d9=_0x37b458['locale'];_0x37b458['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x354324=>{if('formatBlock'!=_0x354324['type']&&'formatInline'!=_0x354324['type'])return;const {data:_0x59a0f7}=_0x354324;return _0x59a0f7&&'style'===_0x59a0f7['commandName']?_0x59a0f7['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5d14d9,'*Set\x20format:*\x20%0',_0x59a0f7['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x5d14d9,'*Remove\x20format:*\x20%0',_0x59a0f7['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x453bfd{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x311d1c){super(_0x311d1c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x487bb0=this['editor'],_0xdc5475=_0x487bb0['model']['document']['selection'];if(!_0x487bb0['plugins']['has']('TableEditing'))return;const _0x4f4c82=_0x487bb0['locale'],_0x19669d=_0x487bb0['plugins']['get']('TrackChangesEditing'),_0x158728=_0x487bb0['plugins']['get']('TableUtils');_0x19669d['descriptionFactory']['registerElementLabel']('table',_0x14b79b=>c(_0x4f4c82,'ELEMENT_TABLE',_0x14b79b)),this['_setupColumnsRowsFixing'](),_0x19669d['enableCommand']('insertTable'),_0x19669d['enableCommand']('selectTableRow'),_0x19669d['enableCommand']('selectTableColumn');for(const _0x114f82 of['insertTableRowAbove','insertTableRowBelow']){const _0x54285b=_0x487bb0['commands']['get'](_0x114f82);_0x19669d['enableCommand'](_0x114f82,_0xa969de=>{_0x487bb0['model']['change'](_0x5379a0=>{_0xa969de();const _0x45bade='above'===_0x54285b['order'],_0x21d2f9=_0x158728['getSelectionAffectedTableCells'](_0xdc5475),_0x1d3f13=_0x158728['getRowIndexes'](_0x21d2f9),_0xee1b2f=_0x45bade?_0x1d3f13['first']-0x1:_0x1d3f13['last']+0x1,_0x2fd792=_0x21d2f9[0x0]['findAncestor']('table'),_0x5f262c=_0x158728['createTableWalker'](_0x2fd792,{'startRow':_0xee1b2f,'endRow':_0xee1b2f}),_0x383fa0=Array['from'](_0x5f262c)['map'](_0x176ae5=>_0x5379a0['createRangeOn'](_0x176ae5['cell']));_0x19669d['markMultiRangeInsertion'](_0x383fa0,'tableRow');});});}for(const _0x45e95d of['insertTableColumnLeft','insertTableColumnRight']){const _0x29d8b9=_0x487bb0['commands']['get'](_0x45e95d);_0x19669d['enableCommand'](_0x45e95d,_0x19fad8=>{_0x487bb0['model']['change'](_0x3052c4=>{_0x19fad8();const _0x37c4b1='left'===_0x29d8b9['order'],_0x3dd9c3=_0x158728['getSelectionAffectedTableCells'](_0xdc5475),_0x194bf8=_0x158728['getColumnIndexes'](_0x3dd9c3),_0x55c702=_0x37c4b1?_0x194bf8['first']-0x1:_0x194bf8['last']+0x1,_0x3f1d77=_0x3dd9c3[0x0]['findAncestor']('table'),_0x23e453=_0x158728['createTableWalker'](_0x3f1d77,{'startRow':0x0,'column':_0x55c702,'includeAllSlots':!0x1}),_0x3e4150=Array['from'](_0x23e453)['map'](_0x22414f=>_0x3052c4['createRangeOn'](_0x22414f['cell']));_0x19669d['markMultiRangeInsertion'](_0x3e4150,'tableColumn');});});}for(const _0x3ca9cc of['removeTableRow','removeTableColumn']){const _0x4b373e=_0x3ca9cc['substr'](0xb),_0x1ed8a5=_0x4b373e['toLowerCase'](),_0x4b94d1=_0x1ed8a5['substr'](0x0,0x3)+'span',_0x2033fd='table'+_0x4b373e,_0x322c45='min'+_0x4b373e,_0x5ee46d='max'+_0x4b373e;_0x19669d['enableCommand'](_0x3ca9cc,()=>{_0x487bb0['model']['change'](_0x54d6f2=>{const _0x27c061=_0x158728['getSelectionAffectedTableCells'](_0xdc5475),_0xff0b02=_0x27c061[0x0]['findAncestor']('table');let _0x572743;if('removeTableRow'==_0x3ca9cc){const _0x5e7136=_0x158728['getRowIndexes'](_0x27c061);_0x572743={'startRow':_0x5e7136['first'],'endRow':_0x5e7136['last'],'includeAllSlots':!0x0};}else{const _0x301c88=_0x158728['getColumnIndexes'](_0x27c061);_0x572743={'startColumn':_0x301c88['first'],'endColumn':_0x301c88['last'],'includeAllSlots':!0x0};}const _0x41e6c4=_0x158728['createTableWalker'](_0xff0b02,_0x572743),_0x51bdd5=Array['from'](_0x41e6c4)['map'](({cell:_0x54d7e3})=>_0x54d7e3),_0x46be81=xe(_0x51bdd5['filter'](_0xc4c88c=>_0xc4c88c['hasAttribute'](_0x4b94d1))),_0x22be18=xe(_0x51bdd5['filter'](_0x4d8e12=>!_0x4d8e12['hasAttribute'](_0x4b94d1)))['map'](_0x3a071c=>_0x54d6f2['createRangeOn'](_0x3a071c)),_0x2bad55=_0x19669d['markMultiRangeDeletion'](_0x22be18,_0x2033fd);if(_0x2bad55&&('tableRow'==_0x2bad55['subType']||'tableColumn'==_0x2bad55['subType'])){const _0x15a7f9=this['_getSuggestionCoords'](_0x2bad55);for(const _0x42979f of _0x46be81){const _0x41657c=_0x54d6f2['createRangeOn'](_0x42979f),_0x1d94d5=_0x158728['getCellLocation'](_0x42979f),_0x6d5353=_0x42979f['getAttribute'](_0x4b94d1)-0x1,_0x40be6d=_0x15a7f9[_0x322c45],_0x2ba728=_0x15a7f9[_0x5ee46d];_0x40be6d<=_0x1d94d5[_0x1ed8a5]&&_0x1d94d5[_0x1ed8a5]+_0x6d5353<=_0x2ba728&&_0x2bad55['addRange'](_0x41657c);}}});});}function _0xf23a05(_0x593bef){const _0x2c1961=Array['from'](_0xdc5475['getRanges']())['map'](_0x3911e9=>_0x9a9b53['fromRange'](_0x3911e9));_0x487bb0['model']['change'](_0x316930=>{const _0x59d360=_0x316930['batch'];_0x593bef=_0x593bef['filter'](_0x58bf0f=>'$graveyard'!=_0x58bf0f['root']['rootName']),_0x316930['setSelection'](_0x593bef),_0x487bb0['commands']['get']('removeTableRow')['refresh'](),_0x487bb0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x487bb0['model']['enqueueChange'](()=>{_0x487bb0['model']['enqueueChange'](_0x59d360,_0x5a2d39=>{const _0x23ccbe=_0x2c1961['filter'](_0x17348f=>'$graveyard'!=_0x17348f['root']['rootName']);_0x23ccbe['length']>0x0&&_0x5a2d39['setSelection'](_0x23ccbe);for(const _0x2c109e of _0x2c1961)_0x2c109e['detach']();});});});}function _0x44a0ee(_0x2f207f){_0x487bb0['model']['change'](_0x42c45d=>{const _0x205e42=Array['from'](_0xdc5475['getRanges']())['map'](_0x19228c=>_0x9a9b53['fromRange'](_0x19228c)),_0x2fc65b=[];for(const _0xbb3269 of _0x2f207f)for(const _0x673e65 of _0xbb3269['getItems']({'shallow':!0x0}))_0x2fc65b['push'](_0x673e65);for(const _0x2eed9 of _0x2fc65b)'$graveyard'!=_0x2eed9['root']['rootName']&&(_0x42c45d['setSelection'](_0x42c45d['createPositionAt'](_0x2eed9,0x0)),_0x487bb0['commands']['get']('removeTableColumn')['refresh'](),_0x487bb0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5588c0=_0x205e42['filter'](_0x63c574=>'$graveyard'!=_0x63c574['root']['rootName']);_0x5588c0['length']>0x0&&_0x42c45d['setSelection'](_0x5588c0);for(const _0xefcb0a of _0x205e42)_0xefcb0a['detach']();});}function _0x29c3f2(_0x27e8ef,_0x275f5d){return _0x275f5d['every'](_0x276978=>_0x27e8ef['some'](_0x434c7d=>_0x434c7d['end']['isEqual'](_0x276978['start'])||_0x276978['end']['isEqual'](_0x434c7d['start'])));}function _0x1f6d43(_0xfc5f9,_0x404481){return!_0xfc5f9['some'](_0x4c2e1a=>_0x404481['some'](_0xc42069=>_0x4c2e1a['isIntersecting'](_0xc42069)))&&_0xfc5f9['some'](_0x5cbe3f=>_0x404481['some'](_0x407cd3=>_0x5cbe3f['end']['isTouching'](_0x407cd3['start'])));}_0x487bb0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2077b8,_0x2b2990,_0x25c80d)=>{if(!_0x25c80d['options']['showSuggestionHighlights'])return;const _0x52b7e7=_0x2b2990['item'];if(!_0x52b7e7||!_0x52b7e7['is']('element','tableCell'))return;const _0x2c8042=_0x25c80d['mapper']['toViewElement'](_0x52b7e7);if(_0x2c8042){const {id:_0x10a195,authorId:_0x43d576}=_0x19669d['_splitMarkerName'](_0x2b2990['markerName']);_0x47239d(_0x2c8042,_0x25c80d['writer'],(_0x2fa635,_0x4003ce,_0xe5f44e)=>{_0xe5f44e['addClass'](_0x260fae(_0x4003ce['classes']),_0x2fa635),_0xe5f44e['setAttribute']('data-suggestion-id',_0x10a195,_0x2fa635),_0xe5f44e['setAttribute']('data-author-id',_0x43d576,_0x2fa635);},(_0x4c7a91,_0x33d2a4,_0x502a22)=>{_0x502a22['removeClass'](_0x260fae(_0x33d2a4['classes']),_0x4c7a91),_0x502a22['removeAttribute']('data-suggestion-id',_0x4c7a91),_0x502a22['removeAttribute']('data-author-id',_0x4c7a91);});}},{'priority':'highest'}),_0x19669d['descriptionFactory']['registerDescriptionCallback'](_0x2f83d4=>{if('insertion'!=_0x2f83d4['type']&&'deletion'!=_0x2f83d4['type'])return;const _0xf5bfcf=_0x2f83d4['getContainedElement']();if(null!=_0xf5bfcf&&_0xf5bfcf['is']('element','table')){if('insertion'==_0x2f83d4['type']){const _0x368e35=_0x2f83d4['getItems']()['filter'](_0x51268e=>_0x51268e['is']('$textProxy'))['map'](_0x2ff6fe=>_0x2ff6fe['data']);if(_0x368e35['length'])return{'type':'insertion','content':c(_0x4f4c82,'*Insert:*\x20%0',c(_0x4f4c82,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x368e35['join']('\x20')+'\x22'))};}if('deletion'==_0x2f83d4['type']){const _0x225181=_0x2f83d4['getItems']()['filter'](_0x31dd42=>_0x31dd42['is']('$textProxy'))['map'](_0x2baece=>_0x2baece['data']);if(_0x225181['length'])return{'type':'deletion','content':c(_0x4f4c82,'*Remove:*\x20%0',c(_0x4f4c82,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x225181['join']('\x20')+'\x22'))};}}}),_0x19669d['descriptionFactory']['registerDescriptionCallback'](_0x3442f5=>{if('tableRow'==_0x3442f5['subType']){const _0x4da988=_0x3442f5['getItems']()['filter'](_0xd79af3=>_0xd79af3['is']('$textProxy'))['map'](_0x4a061f=>_0x4a061f['data']),_0x481922=this['_getSuggestionCoords'](_0x3442f5),_0x31bca1=_0x481922['maxRow']-_0x481922['minRow']+0x1;if('insertion'==_0x3442f5['type'])return _0x4da988['length']?{'type':'insertion','content':c(_0x4f4c82,'*Insert:*\x20%0',c(_0x4f4c82,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x31bca1,'\x22'+_0x4da988['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4f4c82,'*Insert:*\x20%0',c(_0x4f4c82,'ELEMENT_TABLE_ROW',_0x31bca1))};if('deletion'==_0x3442f5['type'])return _0x4da988['length']?{'type':'deletion','content':c(_0x4f4c82,'*Remove:*\x20%0',c(_0x4f4c82,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x31bca1,'\x22'+_0x4da988['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4f4c82,'*Remove:*\x20%0',c(_0x4f4c82,'ELEMENT_TABLE_ROW',_0x31bca1))};}if('tableColumn'==_0x3442f5['subType']){const _0x471eca=_0x3442f5['getItems']()['filter'](_0x5ce1c7=>_0x5ce1c7['is']('$textProxy'))['map'](_0x4578b0=>_0x4578b0['data']),_0x489379=this['_getSuggestionCoords'](_0x3442f5),_0x536bb8=_0x489379['maxColumn']-_0x489379['minColumn']+0x1;if('insertion'==_0x3442f5['type'])return _0x471eca['length']?{'type':'insertion','content':c(_0x4f4c82,'*Insert:*\x20%0',c(_0x4f4c82,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x536bb8,'\x22'+_0x471eca['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4f4c82,'*Insert:*\x20%0',c(_0x4f4c82,'ELEMENT_TABLE_COLUMN',_0x536bb8))};if('deletion'==_0x3442f5['type'])return _0x471eca['length']?{'type':'deletion','content':c(_0x4f4c82,'*Remove:*\x20%0',c(_0x4f4c82,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x536bb8,'\x22'+_0x471eca['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4f4c82,'*Remove:*\x20%0',c(_0x4f4c82,'ELEMENT_TABLE_COLUMN',_0x536bb8))};}}),_0x19669d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xf23a05),_0x19669d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xf23a05),_0x19669d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x44a0ee),_0x19669d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x44a0ee),_0x19669d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x29c3f2),_0x19669d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x29c3f2),_0x19669d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1f6d43),_0x19669d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1f6d43);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1157aa=this['editor'],_0x378293=_0x1157aa['model']['document']['selection'];return(_0x4ca530,_0x379043)=>{_0x1157aa['model']['change'](_0x3165fb=>{const {commandName:_0x56ab8f,commandParams:_0x158c77}=_0x379043;let _0x1dcb6f=_0x4ca530[0x0]['end']['nodeBefore'];_0x158c77&&_0x158c77[0x0]&&!0x1===_0x158c77[0x0]['forceValue']&&(_0x1dcb6f=_0x4ca530[0x0]['start']['nodeAfter']);const _0x199385=_0x3165fb['createRangeIn'](_0x1dcb6f);if('$graveyard'==_0x199385['root']['rootName'])return;const _0x419ce5=Array['from'](_0x378293['getRanges']())['map'](_0x53ec58=>_0x9a9b53['fromRange'](_0x53ec58));_0x3165fb['setSelection'](_0x199385),_0x1157aa['commands']['get'](_0x56ab8f)['refresh'](),_0x158c77['push']({'forceDefaultExecution':!0x0}),_0x1157aa['execute'](_0x56ab8f,..._0x158c77);const _0x36167e=_0x419ce5['filter'](_0x5299c3=>'$graveyard'!=_0x5299c3['root']['rootName']);_0x36167e['length']>0x0&&_0x3165fb['setSelection'](_0x36167e);for(const _0x19df66 of _0x419ce5)_0x19df66['detach']();});};}['_getCoordsForCells'](_0x6f3205){const _0x4d560b=this['editor']['plugins']['get']('TableUtils');let _0x226da8=Number['MAX_SAFE_INTEGER'],_0x528b07=Number['MIN_SAFE_INTEGER'],_0x44a4f5=Number['MAX_SAFE_INTEGER'],_0x28a9c8=Number['MIN_SAFE_INTEGER'];for(const _0x518b26 of _0x6f3205){if('$graveyard'==_0x518b26['root']['rootName'])continue;const {row:_0x4362a6,column:_0x48f72b}=_0x4d560b['getCellLocation'](_0x518b26),_0x53095b=_0x518b26['hasAttribute']('rowspan')?_0x518b26['getAttribute']('rowspan')-0x1:0x0,_0x32396d=_0x518b26['hasAttribute']('colspan')?_0x518b26['getAttribute']('colspan')-0x1:0x0;_0x226da8=_0x4362a6<_0x226da8?_0x4362a6:_0x226da8,_0x528b07=_0x4362a6+_0x53095b>_0x528b07?_0x4362a6+_0x53095b:_0x528b07,_0x44a4f5=_0x48f72b<_0x44a4f5?_0x48f72b:_0x44a4f5,_0x28a9c8=_0x48f72b+_0x32396d>_0x28a9c8?_0x48f72b+_0x32396d:_0x28a9c8;}return{'minRow':_0x226da8,'maxRow':_0x528b07,'minColumn':_0x44a4f5,'maxColumn':_0x28a9c8};}['_setupColumnsRowsFixing'](){const _0x19a48a=this['editor'],_0xc796c3=_0x19a48a['plugins']['get']('TrackChangesEditing'),_0x4cd1a1=_0x19a48a['plugins']['get']('TableUtils');_0x19a48a['model']['document']['on']('change:data',()=>{const _0xad190c=Array['from'](_0x19a48a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ee995,data:_0x263f1d}of _0xad190c){const {group:_0x568fdb,id:_0x1ac1e7,subType:_0x5d29f8}=_0xc796c3['_splitMarkerName'](_0x2ee995);if('suggestion'!=_0x568fdb)continue;if(null!=_0x263f1d['oldRange'])continue;const _0x44ab1b=_0xc796c3['getSuggestion'](_0x1ac1e7);this['_tablePostFixingSubtypes']['includes'](_0x5d29f8)&&this['_tableSuggestions']['add'](_0x44ab1b);}},{'priority':'low'});const _0x23933e=(_0xa81602,_0xccb034)=>{let _0xdbf5f4=!0x1;const _0x98edd0=_0xccb034['createRangeOn'](_0xa81602),_0x1b1804=_0xa81602['findAncestor']('table'),_0x2c9650=_0x4cd1a1['getCellLocation'](_0xa81602);for(const _0x4899d6 of this['_tableSuggestions']){const _0x1f2eaf=_0x4899d6['subType'],_0xc58c60=_0x1f2eaf['startsWith']('tablePaste'),_0x17aa22=_0x1f2eaf['substr'](_0xc58c60?0xa:0x5),_0x319360=_0x17aa22['toLowerCase'](),_0x36a5c2=_0x319360['substr'](0x0,0x3)+'span',_0x4dde1a='min'+_0x17aa22,_0x713679='max'+_0x17aa22;if(!_0x4899d6['isInContent'])continue;if(_0x1b1804!=_0x4899d6['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4899d6['isIntersectingWithRange'](_0x98edd0))continue;const _0x5136a8=_0xa81602['hasAttribute'](_0x36a5c2)?_0xa81602['getAttribute'](_0x36a5c2)-0x1:0x0,_0x3c3366=this['_getSuggestionCoords'](_0x4899d6),_0x32b46d=_0x3c3366[_0x4dde1a],_0x5c5873=_0x3c3366[_0x713679];_0x32b46d<=_0x2c9650[_0x319360]&&_0x2c9650[_0x319360]+_0x5136a8<=_0x5c5873&&(_0x4899d6['addRange'](_0x98edd0),_0xdbf5f4=!0x0);}return _0xdbf5f4;};_0x19a48a['model']['document']['registerPostFixer'](_0x5daf3b=>{let _0x18611e=!0x1;for(const _0x90e1f1 of _0x19a48a['model']['document']['differ']['getChanges']())if('insert'==_0x90e1f1['type']){if('tableRow'==_0x90e1f1['name']){for(const _0x2da479 of _0x90e1f1['position']['nodeAfter']['getChildren']())_0x18611e=_0x18611e||_0x23933e(_0x2da479,_0x5daf3b);}else'tableCell'==_0x90e1f1['name']&&(_0x18611e=_0x18611e||_0x23933e(_0x90e1f1['position']['nodeAfter'],_0x5daf3b));}return _0x18611e;});}['_getSuggestionCoords'](_0x55e037){return this['_getCoordsForCells'](_0x55e037['getRanges']()['map'](_0x57f4f7=>_0x57f4f7['start']['nodeAfter']));}}function xe(_0x5b5f40){return Array['from'](new Set(_0x5b5f40)['values']());}class Nt extends _0x453bfd{static get['requires'](){return[Ct];}['afterInit'](){const _0x106066=this['editor'],_0x230d25=_0x106066['model']['document']['selection'],_0xfe61d3=_0x106066['locale'];if(!_0x106066['plugins']['has']('TableEditing'))return;const _0x477cfb=_0x106066['plugins']['get']('TrackChangesEditing'),_0x4e591e=_0x106066['plugins']['get']('TableUtils'),_0x5426d1=_0x106066['plugins']['get'](Ct);_0x5426d1['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x477cfb['enableCommand']('mergeTableCells',()=>{const _0x4e078c=_0x4e591e['getSelectionAffectedTableCells'](_0x106066['model']['document']['selection']);_0x106066['model']['change'](()=>{_0x477cfb['markMultiRangeBlockFormat'](_0x4e078c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x106066['commands']['get']('mergeTableCells')['on']('execute',(_0x4df45b,_0x2a48fd)=>{_0x106066['commands']['get']('trackChanges')['value']&&(_0x2a48fd['length']>0x0&&_0x2a48fd[_0x2a48fd['length']-0x1]&&_0x2a48fd[_0x2a48fd['length']-0x1]['forceDefaultExecution']||_0x477cfb['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4df45b['stop']());},{'priority':'highest'});for(const _0x3e2342 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x12646e=_0x106066['commands']['get'](_0x3e2342);_0x477cfb['enableCommand'](_0x3e2342,()=>{const _0x28936f=_0x106066['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xe04e48=>_0xe04e48['is']('element','tableCell')),_0x126d7b=_0x12646e['value'];_0x106066['model']['change'](()=>{_0x477cfb['markMultiRangeBlockFormat']([_0x28936f,_0x126d7b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5f4beb of['splitTableCellVertically','splitTableCellHorizontally']){const _0x582cd3=_0x106066['commands']['get'](_0x5f4beb);_0x477cfb['enableCommand'](_0x5f4beb,()=>{const _0x5a2742=_0x4e591e['getSelectionAffectedTableCells'](_0x106066['model']['document']['selection'])[0x0],_0x416981=_0x5a2742['findAncestor']('table'),{column:_0x43aa35,row:_0x378ec0}=_0x4e591e['getCellLocation'](_0x5a2742);let _0x1d9901=[];if('horizontally'==_0x582cd3['direction']){const _0x2fe0e0=_0x4e591e['createTableWalker'](_0x416981,{'startRow':_0x378ec0,'endRow':_0x378ec0,'includeAllSlots':!0x0});_0x1d9901=Array['from'](_0x2fe0e0)['map'](_0x4cd33a=>_0x4cd33a['cell']);}else{const _0x3bf188=_0x4e591e['createTableWalker'](_0x416981,{'column':_0x43aa35,'includeAllSlots':!0x0});_0x1d9901=Array['from'](_0x3bf188)['map'](_0xeb2d82=>_0xeb2d82['cell']);}_0x106066['model']['change'](_0x3576c=>{_0x477cfb['markBlockFormat'](_0x3576c['createRangeOn'](_0x5a2742),{'commandName':_0x5f4beb,'commandParams':[]},_0x1d9901,_0x5f4beb);});});}_0x477cfb['descriptionFactory']['registerDescriptionCallback'](_0x12f0b0=>{if('formatBlock'!=_0x12f0b0['type']&&'formatInline'!=_0x12f0b0['type'])return;const {data:_0x4474df}=_0x12f0b0;return _0x4474df&&'mergeTableCells'==_0x4474df['commandName']?{'type':'format','content':c(_0xfe61d3,'*Merge\x20cells*')}:void 0x0;}),_0x477cfb['descriptionFactory']['registerDescriptionCallback'](_0x110fc6=>{if('formatBlock'!=_0x110fc6['type']&&'formatInline'!=_0x110fc6['type'])return;const {data:_0x4997bf}=_0x110fc6;return _0x4997bf?'splitTableCellVertically'==_0x4997bf['commandName']?{'type':'format','content':c(_0xfe61d3,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4997bf['commandName']?{'type':'format','content':c(_0xfe61d3,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x30496e=_0x5426d1['_acceptFormatSuggestionCallbackFactory']();for(const _0x5124ae of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x477cfb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5124ae,'accept',_0x30496e);for(const _0x490382 of['splitTableCellVertically','splitTableCellHorizontally'])_0x477cfb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x490382,'accept',_0x30496e);_0x477cfb['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xc4d24a=>{_0x106066['model']['change'](_0x3adab0=>{const _0xfeca65=Array['from'](_0x230d25['getRanges']())['map'](_0x5b4a72=>_0x9a9b53['fromRange'](_0x5b4a72));_0x3adab0['setSelection'](_0xc4d24a),_0x106066['commands']['get']('mergeTableCells')['refresh'](),_0x106066['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x26c9d1=_0xfeca65['filter'](_0x1f236d=>'$graveyard'!=_0x1f236d['root']['rootName']);_0x26c9d1['length']>0x0&&_0x3adab0['setSelection'](_0x26c9d1);for(const _0x4d8187 of _0xfeca65)_0x4d8187['detach']();});});for(const _0x36ac7d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xb9ada3=_0x106066['commands']['get'](_0x36ac7d);_0xb9ada3['on']('set:isEnabled',(_0x197835,_0x27f1a9,_0x5bbc5e)=>{if(_0x5bbc5e){const _0x3ae96c=_0x106066['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5aa180=>_0x5aa180['is']('element','tableCell'));this['_areMergableCells'](_0xb9ada3['value'],_0x3ae96c)||(_0x197835['return']=!0x1,_0x197835['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5f01bd=this['editor']['commands']['get']('mergeTableCells'),_0x4811b5=this['editor']['plugins']['get']('TableUtils');if(!_0x5f01bd['isEnabled'])return!0x1;const _0x2ab32e=_0x4811b5['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5e1df5 of _0x2ab32e)for(const _0x9e4e86 of _0x2ab32e)if(_0x5e1df5!=_0x9e4e86&&!this['_areMergableCells'](_0x5e1df5,_0x9e4e86))return!0x1;return!0x0;}['_areMergableCells'](_0x474ffc,_0x14683f){const _0x4dcfcd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dcef8=this['editor']['model']['createRangeOn'](_0x474ffc),_0x43e07f=this['editor']['model']['createRangeOn'](_0x14683f),_0x4bff94=new Set(),_0x2ad61f=new Set();for(const _0x4eb757 of _0x4dcfcd['getSuggestions']())if(('insertion'==_0x4eb757['type']||'deletion'==_0x4eb757['type']||'mergeTableCells'==_0x4eb757['subType'])&&_0x4eb757['isInContent']){for(const _0x45ebfe of _0x4eb757['getRanges']())_0x45ebfe['containsRange'](_0x5dcef8,!0x0)&&_0x4bff94['add'](_0x4eb757['type']+':'+_0x4eb757['author']['id']),_0x45ebfe['containsRange'](_0x43e07f,!0x0)&&_0x2ad61f['add'](_0x4eb757['type']+':'+_0x4eb757['author']['id']);}if(_0x4bff94['size']!=_0x2ad61f['size'])return!0x1;for(const _0x302eb4 of _0x4bff94)if(!_0x2ad61f['has'](_0x302eb4))return!0x1;return!0x0;}}class Dt extends _0x453bfd{static get['requires'](){return[Ct];}['afterInit'](){const _0x5a3ed1=this['editor'];if(!_0x5a3ed1['plugins']['has']('TableEditing'))return;const _0x5962bf=_0x5a3ed1['locale'],_0x50aa70=_0x5a3ed1['plugins']['get']('TrackChangesEditing');_0x50aa70['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x50aa70['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x50aa70['registerBlockAttribute']('headingRows'),_0x50aa70['registerBlockAttribute']('headingColumns'),_0x50aa70['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x5962bf,'FORMAT_HEADER_ROW')),_0x50aa70['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x5962bf,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1dd323=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3152cd=this['editor']['plugins']['get']('TableUtils'),_0x4cd9ee=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5c8823({showActiveMarker:_0x583b4b=!0x0,setDataAttribute:_0xd9f754=!0x0}={}){return(_0x4807ad,_0x120893,_0x210d94)=>{const {type:_0x1a7fd4,id:_0x4de8de}=_0x1dd323['_splitMarkerName'](_0x120893['markerName']),_0x1c3d8c=_0x1dd323['getSuggestion'](_0x4de8de),_0x208d97=_0x1c3d8c['data'];if('formatBlock'!=_0x1c3d8c['type']||!_0x208d97||'setTableColumnHeader'!=_0x208d97['commandName'])return;if(_0x120893['item'])return void _0x4807ad['stop']();if(!_0x210d94['consumable']['consume'](_0x120893['markerRange'],_0x4807ad['name']))return;const _0x82fcab=_0x120893['markerRange']['start']['nodeAfter'],_0x52f2e3=_0x120893['markerRange']['end']['nodeBefore'],_0x24a451=_0x82fcab['parent']['parent'],{column:_0x1d8b4f}=_0x3152cd['getCellLocation'](_0x82fcab),{column:_0x4f7026}=_0x3152cd['getCellLocation'](_0x52f2e3);for(let _0x1141c0=_0x1d8b4f;_0x1141c0<=_0x4f7026;_0x1141c0++){const _0x10f799=_0x3152cd['createTableWalker'](_0x24a451,{'column':_0x1141c0,'includeAllSlots':!0x1});for(const _0x231567 of _0x10f799){const _0x143874=_0x231567['cell'],_0x49c8a7=_0x210d94['mapper']['toViewElement'](_0x143874);_0x210d94['writer']['addClass']('ck-suggestion-marker-'+_0x1a7fd4,_0x49c8a7),_0xd9f754&&_0x210d94['writer']['setAttribute']('data-suggestion',_0x4de8de,_0x49c8a7),_0x210d94['mapper']['bindElementToMarker'](_0x49c8a7,_0x120893['markerName']),_0x583b4b&&(_0x1dd323['activeMarkers']['includes'](_0x120893['markerName'])?_0x210d94['writer']['addClass']('ck-suggestion-marker--active',_0x49c8a7):_0x210d94['writer']['removeClass']('ck-suggestion-marker--active',_0x49c8a7));}}};}_0x1dd323['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4cd9ee),_0x1dd323['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4cd9ee),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5c8823(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3f12cd,_0x305a30,_0x1786ab)=>{_0x1786ab['options']['showSuggestionHighlights']&&_0x5c8823({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3f12cd,_0x305a30,_0x1786ab);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x558f78,_0x391f1e,_0x9723e8)=>{const {type:_0x590e65,id:_0x463254}=_0x1dd323['_splitMarkerName'](_0x391f1e['markerName']),_0x522903=_0x1dd323['getSuggestion'](_0x463254),_0x298670=_0x522903['data'];if('formatBlock'!=_0x522903['type']||!_0x298670||'setTableColumnHeader'!=_0x298670['commandName'])return;const _0x18621b=_0x9723e8['mapper']['markerNameToElements'](_0x391f1e['markerName']);if(_0x18621b){for(const _0xd14dbe of _0x18621b)_0x9723e8['writer']['removeClass']('ck-suggestion-marker-'+_0x590e65,_0xd14dbe),_0x9723e8['writer']['removeClass']('ck-suggestion-marker--active',_0xd14dbe),_0x9723e8['writer']['removeAttribute']('data-suggestion',_0xd14dbe),_0x9723e8['mapper']['unbindElementFromMarkerName'](_0xd14dbe,_0x391f1e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x410510=this['editor'],_0x4d99d3=_0x410510['locale'];function _0x5946f5(_0x12484e){return{'type':'format','content':c(_0x4d99d3,'*Format:*\x20%0',_0x12484e)};}_0x410510['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x199867=>{if('formatBlock'!=_0x199867['type'])return;const {data:_0x176e71}=_0x199867;if(_0x176e71){if('setTableRowHeader'==_0x176e71['commandName']){const _0x2bfb92=_0x176e71['commandParams'][0x0]['forceValue'];return _0x5946f5(c(_0x4d99d3,_0x2bfb92?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x176e71['commandName']){const _0x1595f5=_0x176e71['commandParams'][0x0]['forceValue'];return _0x5946f5(c(_0x4d99d3,_0x1595f5?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x453bfd{['afterInit'](){const _0x2a8aea=this['editor'],_0x136e42=_0x2a8aea['locale'],_0x13c36d=_0x2a8aea['plugins']['get']('TrackChangesEditing');function _0x569192(_0x2962bf){return{'type':'format','content':''+c(_0x136e42,'*Set\x20table\x20type:*\x20%0',_0x2962bf)};}_0x2a8aea['plugins']['has']('TableLayout')&&(_0x13c36d['enableCommand']('insertTableLayout'),_0x13c36d['enableDefaultAttributesIntegration']('tableType'),_0x13c36d['registerBlockAttribute']('tableType'),_0x13c36d['descriptionFactory']['registerElementLabel'](_0x3e19c2=>_0x3e19c2['is']('element','table')&&'layout'===_0x3e19c2['getAttribute']('tableType'),_0x411713=>c(_0x136e42,'ELEMENT_LAYOUT_TABLE',_0x411713)),_0x13c36d['descriptionFactory']['registerDescriptionCallback'](_0x3bc6a3=>{const {data:_0x35ee87}=_0x3bc6a3;if(_0x35ee87&&'tableType'==_0x35ee87['key'])switch(_0x35ee87['newValue']){case'layout':return _0x569192(c(_0x136e42,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x569192(c(_0x136e42,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0xfb7a0=>[_0xfb7a0,null]));class $t extends _0x453bfd{static get['requires'](){return[Ct];}['afterInit'](){const _0x4ce2cc=this['editor'];if(!_0x4ce2cc['plugins']['has']('TableClipboard'))return;const _0x33a9bc=_0x4ce2cc['plugins']['get']('TrackChangesEditing'),_0x5e068e=_0x4ce2cc['plugins']['get']('TableUtils'),_0xec4fd=_0x4ce2cc['plugins']['get'](Ct),_0x15e638=_0x4ce2cc['plugins']['get']('TableClipboard'),_0x15e997=_0x4ce2cc['plugins']['get']('TableSelection'),_0x1c686f=_0x4ce2cc['plugins']['get'](_0x278af2);_0xec4fd['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4ce2cc['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4ce2cc['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x19bce0=null,_0x1cab9c=!0x1;_0x1c686f['on']('contentInsertion',(_0xae88a3,_0x3f0807)=>{_0x1cab9c='paste'===_0x3f0807['method'];}),_0x4ce2cc['model']['on']('insertContent',(_0x270c71,_0x5b35a3)=>{if(!_0x1cab9c&&null===_0x15e997['getSelectedTableCells']())return;const [_0x48b59f,_0x277d59]=_0x5b35a3,_0x324b76=_0x5b35a3[_0x5b35a3['length']-0x1];_0x324b76&&_0x324b76['forceDefaultExecution']||_0x33a9bc['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x23532a,_0x2dae85,_0x508d28,_0x349a6d,_0x10e82d){if(_0x2dae85&&!_0x2dae85['is']('documentSelection'))return!0x1;const _0x24b7e8=_0x10e82d['getTableIfOnlyTableInContent'](_0x23532a,_0x508d28);if(!_0x24b7e8||!He(_0x24b7e8,void 0x0,_0x349a6d))return!0x1;const _0x4046b0=_0x349a6d['getSelectionAffectedTableCells'](_0x508d28['document']['selection']);if(!_0x4046b0['length'])return!0x1;const _0x57d995=_0x4046b0[0x0]['findAncestor']('table'),_0x2851d9=_0x349a6d['getRowIndexes'](_0x4046b0),_0x1ab5d8=_0x349a6d['getColumnIndexes'](_0x4046b0),_0x3b87c7={'startRow':_0x2851d9['first'],'endRow':_0x2851d9['last'],'startColumn':_0x1ab5d8['first'],'endColumn':_0x1ab5d8['last']};return 0x1==_0x4046b0['length']&&(_0x3b87c7['endRow']+=_0x349a6d['getRows'](_0x24b7e8)-0x1,_0x3b87c7['endColumn']+=_0x349a6d['getColumns'](_0x24b7e8)-0x1),He(_0x57d995,_0x3b87c7,_0x349a6d);}(_0x48b59f,_0x277d59,_0x4ce2cc['model'],_0x5e068e,_0x15e638)&&(_0x270c71['stop'](),_0x19bce0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4ce2cc['model']['change'](()=>{_0x4ce2cc['model']['insertContent'](_0x5b35a3[0x0],_0x5b35a3[0x1],_0x5b35a3[0x2],{'forceDefaultExecution':!0x0});const _0x2921e2=_0x36e858(),{rowInsertionRanges:_0x1c66bf,columnInsertionRanges:_0x32ba00,insertionRanges:_0x429d68,deletionRanges:_0x42db97,cells:_0x5c8c79}=_0x19bce0;_0x1c66bf['length']&&_0x33a9bc['markMultiRangeInsertion'](_0x1c66bf,'tablePasteRow',{'tablePasteChainId':_0x2921e2}),_0x32ba00['length']&&_0x33a9bc['markMultiRangeInsertion'](_0x32ba00,'tablePasteColumn',{'tablePasteChainId':_0x2921e2}),_0x429d68['length']&&(_0x33a9bc['markMultiRangeInsertion'](_0x429d68,'tablePaste',{'tablePasteChainId':_0x2921e2,'skipNestingCheck':!0x0}),_0x429d68['forEach'](_0x3689b3=>_0x3689b3['detach']?.())),_0x42db97['length']&&(_0x33a9bc['markMultiRangeDeletion'](_0x42db97,'tablePaste',{'tablePasteChainId':_0x2921e2,'skipNestingCheck':!0x0}),_0x42db97['forEach'](_0x173bfd=>_0x173bfd['detach']?.()));const _0x338ca9=_0x33a9bc['markMultiRangeBlockFormat'](_0x5c8c79['map'](({element:_0x2625d5})=>_0x2625d5),{'formatGroupId':_0x36e858()},[],'tablePasteCell',{'tablePasteChainId':_0x2921e2});if(_0x338ca9){const _0x379610=_0x338ca9['getMarkers'](),_0x39b73d=[];for(const {element:_0x4131e6,attributes:_0x1a90d8}of _0x5c8c79){if(!_0x1a90d8)continue;const _0xb8a1c6=_0x4ce2cc['model']['createRangeOn'](_0x4131e6),_0x881ae7=_0x379610['find'](_0x53f958=>_0x53f958['getRange']()['isEqual'](_0xb8a1c6));_0x881ae7&&_0x39b73d['push']([_0x881ae7['name'],_0x1a90d8]);}_0x39b73d['length']&&_0x338ca9['setAttribute']('markerAttributes',Object['fromEntries'](_0x39b73d));}_0x19bce0=null;}));},{'priority':_0x487002['high']+0xa}),_0x1c686f['on']('contentInsertion',()=>{_0x1cab9c=!0x1;},{'priority':'lowest'}),_0x4ce2cc['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x393733,_0x1d8856)=>{const [_0x58e56b,_0x31ab59,,_0x480151]=_0x1d8856;if(!_0x19bce0)return;_0x393733['stop']();const _0x172763=_0x58e56b['cell'],_0x57af54=_0x31ab59,_0x436b0f=De(_0x172763),_0x2c09f5=De(_0x57af54);_0x393733['return']=_0x172763;let _0x3634be=null,_0x805882=null;if(_0x2c09f5||_0x436b0f){if(_0x436b0f&&!_0x2c09f5){_0x480151['remove'](_0x172763['getChild'](0x0));for(const _0x441105 of Array['from'](_0x57af54['getChildren']()))_0x480151['insert'](_0x441105,_0x172763,'end');const _0x220d36=_0x19bce0['rowInsertionIndexes']['includes'](_0x58e56b['row']),_0x14ce3f=_0x19bce0['columnInsertionIndexes']['includes'](_0x58e56b['column']);_0x220d36||_0x14ce3f||(_0x3634be=_0x9a9b53['fromRange'](_0x480151['createRangeIn'](_0x172763)));}else _0x2c09f5&&!_0x436b0f&&(_0x805882=_0x480151['createRangeIn'](_0x172763));}else{const _0x5560f4=_0x480151['createElement']('tableCellSuggestion'),_0x1b65ba=_0x480151['createElement']('tableCellSuggestion');_0x480151['wrap'](_0x480151['createRangeIn'](_0x172763),_0x1b65ba),_0x480151['insert'](_0x5560f4,_0x172763,0x0);for(const _0x45bf0a of Array['from'](_0x57af54['getChildren']()))_0x480151['insert'](_0x45bf0a,_0x5560f4,'end');_0x3634be=_0x9a9b53['fromRange'](_0x480151['createRangeOn'](_0x5560f4)),_0x805882=_0x9a9b53['fromRange'](_0x480151['createRangeOn'](_0x1b65ba));}const _0x5cab1c=Array['from'](_0x57af54['getAttributes']())['filter'](([_0x59862f])=>Oe['includes'](_0x59862f));_0x19bce0['cells']['push']({'element':_0x172763,'attributes':_0x5cab1c['length']?Object['fromEntries'](_0x5cab1c):null}),_0x3634be&&_0x19bce0['insertionRanges']['push'](_0x3634be),_0x805882&&_0x19bce0['deletionRanges']['push'](_0x805882);},{'priority':'high'}),_0x5e068e['on']('insertColumns',(_0x121083,_0x17c332)=>{const [_0x405d65,_0x329c64={}]=_0x17c332;if(!_0x19bce0)return;const _0x1de8cc=_0x329c64['at']||0x0,_0x993e3d=_0x329c64['columns']||0x1;_0x19bce0['columnInsertionIndexes']=new Array(_0x993e3d)['fill'](_0x1de8cc)['map']((_0x46a41c,_0x35208a)=>_0x46a41c+_0x35208a);for(const {cell:_0xda15fe}of _0x5e068e['createTableWalker'](_0x405d65,{'startColumn':_0x1de8cc,'endColumn':_0x1de8cc+_0x993e3d-0x1}))_0x19bce0['columnInsertionRanges']['push'](_0x4ce2cc['model']['createRangeOn'](_0xda15fe));},{'priority':'low'}),_0x5e068e['on']('insertRows',(_0x4d5992,_0x18fa4a)=>{const [_0x46001f,_0x2acd90={}]=_0x18fa4a;if(!_0x19bce0)return;const _0x2f444b=_0x2acd90['at']||0x0,_0x24edbf=_0x2acd90['rows']||0x1;_0x19bce0['rowInsertionIndexes']=new Array(_0x24edbf)['fill'](_0x2f444b)['map']((_0x2e75ae,_0x4b9688)=>_0x2e75ae+_0x4b9688);for(const {cell:_0x5ddbf7}of _0x5e068e['createTableWalker'](_0x46001f,{'startRow':_0x2f444b,'endRow':_0x2f444b+_0x24edbf-0x1}))_0x19bce0['rowInsertionRanges']['push'](_0x4ce2cc['model']['createRangeOn'](_0x5ddbf7));},{'priority':'low'}),_0x33a9bc['descriptionFactory']['registerDescriptionCallback'](_0x4626e1=>{if(_0x4626e1['subType']&&_0x4626e1['subType']['startsWith']('tablePaste'))return _0x4626e1['previous']?{}:{'type':'insertion','content':c(_0x4ce2cc['locale'],'*Replace\x20table\x20cells*')};});const _0xb4b365=()=>!0x1;for(const _0x34ae06 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x33a9bc['_suggestionFactory']['registerCustomCallback']('insertion',_0x34ae06,'join',_0xb4b365),_0x33a9bc['_suggestionFactory']['registerCustomCallback']('deletion',_0x34ae06,'join',_0xb4b365),_0x33a9bc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x34ae06,'join',_0xb4b365);_0x33a9bc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xb4b365),_0x33a9bc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x658e5e,_0x3cd68a,_0x34f6c3)=>{const _0xaaca2f=_0x658e5e['map'](_0x346c77=>_0x346c77['getContainedElement']())['filter'](_0x5d162f=>_0x5d162f),_0x333949=new Map(_0xaaca2f['map'](_0x26d355=>[_0x26d355,null]));if(_0x19bce0){for(const {element:_0x95369b,attributes:_0x5f05fc}of _0x19bce0['cells'])_0x5f05fc&&_0x333949['set'](_0x95369b,_0x5f05fc);}else{if(_0x34f6c3&&_0x34f6c3['markerAttributes'])for(const [_0x4bc046,_0x540c95]of Object['entries'](_0x34f6c3['markerAttributes'])){const _0xe8bff0=_0x4ce2cc['model']['markers']['get'](_0x4bc046),_0x55679d=_0xe8bff0?_0xe8bff0['getRange']()['getContainedElement']():null;_0x55679d&&_0x333949['set'](_0x55679d,_0x540c95);}}_0x4ce2cc['model']['change'](_0x477335=>{for(const [_0x8da5a8,_0x5e8d42]of _0x333949)_0x477335['setAttributes']({...Ue,..._0x5e8d42},_0x8da5a8);});});const _0x19ee53=(_0x5dcb28,_0x823584)=>{_0x33a9bc['_suggestionFactory']['registerCustomCallback'](_0x5dcb28,'tablePaste',_0x823584,(_0x29b115,_0x1f0854,_0x2984ab)=>{_0x4ce2cc['model']['change'](_0x16ca65=>{const _0x54b9e9=[];for(const _0x1882be of _0x29b115){const _0x33de51=_0x1882be['start']['nodeAfter'];_0x33de51['is']('element','tableCellSuggestion')&&_0x54b9e9['push'](_0x33de51);}_0x33a9bc['_suggestionFactory']['getSuggestionCallback'](_0x5dcb28,null,_0x823584)(_0x29b115,_0x1f0854,_0x2984ab);for(const _0xdbf3ac of _0x54b9e9)'$graveyard'!=_0xdbf3ac['root']['rootName']&&_0x16ca65['unwrap'](_0xdbf3ac);});});};_0x19ee53('insertion','accept'),_0x19ee53('insertion','discard'),_0x19ee53('deletion','accept'),_0x19ee53('deletion','discard'),_0x33a9bc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xb305fb=>{const _0x335ec0=_0xb305fb['map'](_0x260b9d=>_0x260b9d['getContainedElement']()),_0x567945=_0x335ec0[0x0]['findAncestor']('table'),{minRow:_0x296141,maxRow:_0x537633}=_0xec4fd['_getCoordsForCells'](_0x335ec0);_0x5e068e['removeRows'](_0x567945,{'at':_0x296141,'rows':_0x537633-_0x296141+0x1});}),_0x33a9bc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x498726=>{const _0x1cafa0=_0x498726['map'](_0x2ae39d=>_0x2ae39d['getContainedElement']()),_0x405f42=_0x1cafa0[0x0]['findAncestor']('table'),{minColumn:_0x5e973c,maxColumn:_0x46d02c}=_0xec4fd['_getCoordsForCells'](_0x1cafa0);_0x5e068e['removeColumns'](_0x405f42,{'at':_0x5e973c,'columns':_0x46d02c-_0x5e973c+0x1});});const _0x5c24be=(_0x2ebfa6,_0x5f4d6f)=>{if(!_0x5f4d6f['subType']||!_0x5f4d6f['subType']['startsWith']('tablePaste'))return;const _0x2d34e1=_0x5f4d6f['attributes']['tablePasteChainId'],_0x4df742=_0x33a9bc['getSuggestions']()['filter'](_0x31d083=>_0x31d083['isInContent']&&_0x31d083['attributes']&&_0x31d083['attributes']['tablePasteChainId']==_0x2d34e1);_0x4df742['length']&&_0x5f4d6f['getAllAdjacentSuggestions']()['length']!=_0x4df742['length']&&_0x4df742['reduce']((_0x4b8914,_0x59a349)=>(_0x4b8914['next']=_0x59a349,_0x59a349['previous']=_0x4b8914,_0x59a349));};function _0x2f01aa(_0x834bd,_0x1a9c90=!0x0){const {id:_0xa19827,authorId:_0x12d003}=_0x33a9bc['_splitMarkerName'](_0x834bd['markerName']),_0x162e91=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x262592=_0x33a9bc['activeMarkers']['includes'](_0x834bd['markerName']);return _0x262592&&_0x162e91['push']('ck-suggestion-marker--active'),{'classes':_0x162e91,'attributes':{'data-suggestion':_0xa19827,'data-author-id':_0x12d003},'priority':_0x262592&&_0x1a9c90?0xbc2:0xbb8};}_0x33a9bc['on']('suggestionLoaded',_0x5c24be,{'priority':'high'}),_0x33a9bc['on']('suggestionUnloaded',_0x5c24be,{'priority':'high'}),_0x4ce2cc['model']['document']['registerPostFixer'](()=>{let _0x223b6e=!0x1;const _0x4046a4=Array['from'](_0x4ce2cc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a285b,data:_0x13a29c}of _0x4046a4){const {group:_0x567700,type:_0x254f19,id:_0x228e70}=_0x33a9bc['_splitMarkerName'](_0x1a285b);if('suggestion'!=_0x567700||'deletion'!=_0x254f19||_0x13a29c['oldRange'])continue;if(!_0x33a9bc['hasSuggestion'](_0x228e70))continue;const _0x286c63=_0x33a9bc['getSuggestion'](_0x228e70)['getRanges'](),_0x111284=_0x4ce2cc['plugins']['get']('Users')['me'];for(const _0x562a51 of _0x33a9bc['getSuggestions']()){if(!_0x562a51['isInContent']||_0x562a51['author']!=_0x111284)continue;if('formatBlock'!=_0x562a51['type']||'tablePasteCell'!=_0x562a51['subType'])continue;if(_0x562a51['getRanges']()['every'](_0x574881=>_0x286c63['some'](_0x4f65ed=>_0x4f65ed['containsRange'](_0x574881,!0x0)))){for(const _0x531a06 of _0x562a51['getAllAdjacentSuggestions']())_0x531a06['isInContent']&&(_0x531a06['discard'](),_0x223b6e=!0x0);}}}return _0x223b6e;}),_0x4ce2cc['model']['document']['registerPostFixer'](_0x3b71dc=>{const _0x1a6819=_0x4ce2cc['commands']['get']('redo');if(!_0x1a6819||!_0x1a6819['_createdBatches']['has'](_0x3b71dc['batch']))return!0x1;let _0x4bea51=!0x1;const _0x3cd194=_0x4ce2cc['plugins']['get']('Users')['me'],_0x584678=_0x4ce2cc['model']['document']['differ']['getChanges'](),_0x149ed0=Array['from'](_0x4ce2cc['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4bba43,data:_0x490531})=>{const {group:_0x44f3de,subType:_0x50a443,authorId:_0x2ca8ac}=_0x33a9bc['_splitMarkerName'](_0x4bba43);return'suggestion'==_0x44f3de&&'tablePaste'==_0x50a443&&_0x2ca8ac==_0x3cd194['id']&&!_0x490531['oldRange'];});for(const _0x307de2 of _0x584678){if('insert'!=_0x307de2['type']||'tableCellSuggestion'!=_0x307de2['name']||0x1!=_0x307de2['length'])continue;const _0x525447=_0x3b71dc['createRange'](_0x307de2['position'],_0x307de2['position']['getShiftedBy'](0x1));if(!_0x149ed0['find'](({data:_0x5ae2eb})=>_0x5ae2eb['newRange']['isEqual'](_0x525447))){for(const {name:_0x456ad2,data:_0x1b1989}of _0x149ed0)if(_0x525447['containsRange'](_0x1b1989['newRange'])){_0x3b71dc['updateMarker'](_0x456ad2,{'range':_0x525447}),_0x4bea51=!0x0;break;}}}return _0x4bea51;}),_0x4ce2cc['model']['document']['registerPostFixer'](_0x30bbf9=>{let _0x1679c6=!0x1;const _0x1c2a32=_0x4ce2cc['plugins']['get']('Users')['me'],_0x665578=_0x33a9bc['getSuggestions']()['filter'](_0x3b4195=>_0x3b4195['isInContent']&&_0x3b4195['author']==_0x1c2a32),_0x3a5518=new Set(),_0x23c00c=new Set();for(const _0x127c4d of _0x665578)if('tablePaste'==_0x127c4d['subType'])for(const _0x199ccf of _0x127c4d['getMarkers']()){const _0x2f9237=_0x199ccf['getRange']()['getContainedElement']();if(_0x2f9237){if(_0x2f9237['is']('element','tableCellSuggestion')&&De(_0x2f9237)){_0x127c4d['removeMarker'](_0x199ccf['name']),_0x3a5518['add'](_0x2f9237),_0x1679c6=!0x0;const _0x270329=_0x2f9237['nextSibling'],_0x18baa6=_0x2f9237['previousSibling'],_0x2b37aa=_0x270329&&_0x270329['is']('element','tableCellSuggestion'),_0x1ee106=_0x18baa6&&_0x18baa6['is']('element','tableCellSuggestion');_0x2b37aa&&!_0x3a5518['has'](_0x270329)&&_0x23c00c['add'](_0x270329),_0x1ee106&&!_0x3a5518['has'](_0x18baa6)&&_0x23c00c['add'](_0x18baa6);}else _0x2f9237['is']('element','paragraph')&&_0x2f9237['isEmpty']&&(_0x127c4d['removeMarker'](_0x199ccf['name']),_0x1679c6=!0x0);}}else{if('tablePasteCell'==_0x127c4d['subType']){if(!_0x127c4d['attributes']||!_0x127c4d['attributes']['tablePasteChainId'])continue;const _0x5b89d9=_0x127c4d['attributes']['markerAttributes'];if(_0x5b89d9&&Object['keys'](_0x5b89d9)['length'])continue;const _0x65bfcb=_0x127c4d['attributes']['tablePasteChainId'];let _0x13af27=!0x0,_0xfb29cc=!0x0;for(const _0x40c62b of _0x665578)if(_0x40c62b['subType']&&_0x40c62b['subType']['startsWith']('tablePaste')){if(!_0x40c62b['attributes']['tablePasteChainId']){_0xfb29cc=!0x1;break;}if(_0x40c62b['id']!=_0x127c4d['id']&&_0x40c62b['attributes']['tablePasteChainId']==_0x65bfcb){_0x13af27=!0x1;break;}}_0xfb29cc&&_0x13af27&&(_0x127c4d['removeMarkers'](),_0x1679c6=!0x0);}}for(const _0x4a2ec3 of _0x3a5518)_0x30bbf9['remove'](_0x4a2ec3);for(const _0x7c8cbf of _0x23c00c)_0x30bbf9['unwrap'](_0x7c8cbf);return _0x1679c6;}),_0x4ce2cc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5cec48=>_0x2f01aa(_0x5cec48),'converterPriority':'high'}),_0x4ce2cc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xbf450a,_0x43a3a9)=>_0x43a3a9['options']['showSuggestionHighlights']?_0x2f01aa(_0xbf450a,!0x1):null,'converterPriority':'high'});const _0x16f481=_0x4ce2cc['editing']['view'];this['listenTo'](_0x16f481['document'],'clipboardOutput',(_0x3f8fab,_0x843886)=>{const _0x5695ac=[];for(const _0x49d45c of _0x16f481['createRangeIn'](_0x843886['content'])['getItems']())_0x49d45c['is']('element','suggestion-td')&&_0x5695ac['push'](_0x49d45c);_0x16f481['change'](_0x3f9501=>{for(const _0x4e7ed7 of _0x5695ac)_0x3f9501['move'](_0x3f9501['createRangeIn'](_0x4e7ed7),_0x3f9501['createPositionBefore'](_0x4e7ed7)),_0x3f9501['remove'](_0x4e7ed7);});});}}function De(_0x4f49a5){if(_0x4f49a5['isEmpty'])return!0x0;const _0x298090=_0x4f49a5['getChild'](0x0);return _0x298090['is']('element','paragraph')&&_0x298090['isEmpty'];}function He(_0x26e720,_0x50b595={},_0x31340d){for(const {isAnchor:_0x5f447f,cellHeight:_0xc0dc72,cellWidth:_0x5504d2}of _0x31340d['createTableWalker'](_0x26e720,{'includeAllSlots':!0x0,..._0x50b595}))if(!_0x5f447f||0x1!=_0xc0dc72||0x1!=_0x5504d2)return!0x1;return!0x0;}class Bt extends _0x453bfd{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x529fb5=this['editor']['plugins']['get']('TrackChangesEditing');_0x529fb5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x529fb5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x529fb5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x529fb5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x529fb5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x529fb5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4b3b1a,_0x3d3af7){const _0x474552=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59a302=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x50ed71=_0x3d3af7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x37dd6d=_0x59a302['getColumnGroupElement'](_0x50ed71);let _0x2397ba=_0x37dd6d?_0x59a302['getTableColumnsWidths'](_0x37dd6d):null,_0x5de1d4=_0x50ed71['getAttribute']('tableWidth')||null;const _0x968519=_0x3d3af7['tableWidth']||_0x5de1d4,_0x35bd0b=_0x3d3af7['columnWidths']||_0x2397ba,_0x5de934=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d8439 of _0x474552['getSuggestions']()){const _0x3a56cd=_0x3d8439['getContainedElement']();if('resizeTable'===_0x3d8439['subType']&&_0x3a56cd===_0x50ed71){_0x3d8439['author']!==_0x5de934&&_0x3d8439['discard']();const _0x3764cd=_0x3d8439['data']['commandParams'];_0x5de1d4=_0x3764cd[0x0]['tableWidth'],_0x2397ba=_0x3764cd[0x0]['columnWidths'];break;}}_0x4b3b1a({'table':_0x50ed71,'tableWidth':_0x968519,'columnWidths':_0x35bd0b}),_0x474552['markBlockFormat'](_0x50ed71,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5de1d4,'columnWidths':_0x2397ba}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x35b39c){if('formatBlock'!=_0x35b39c['type']&&'formatInline'!=_0x35b39c['type'])return;const {data:_0x150373}=_0x35b39c;if(_0x150373&&'resizeTable'===_0x150373['formatGroupId']){const _0x4f7cab='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x4f7cab)};}}}class xt extends _0x453bfd{['afterInit'](){const _0x4f2650=this['editor'];_0x4f2650['plugins']['has']('Template')&&_0x4f2650['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x453bfd{['afterInit'](){const _0x3e99df=this['editor'];if(!_0x3e99df['commands']['get']('insertTableOfContents'))return;_0x3e99df['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x18bbe3=_0x3e99df['plugins']['get']('TrackChangesEditing'),_0x1c3848=_0x3e99df['locale'];_0x18bbe3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1f5409=>c(_0x1c3848,'ELEMENT_TABLE_OF_CONTENTS',_0x1f5409));}}class Rt extends _0x453bfd{['afterInit'](){const _0x27b3a9=this['editor'];if(!_0x27b3a9['plugins']['has']('Title'))return;const _0x1fa348=_0x27b3a9['plugins']['get']('TrackChangesEditing');_0x1fa348['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x27b3a9['locale'],'ELEMENT_TITLE')),_0x27b3a9['model']['document']['registerPostFixer'](_0x1639be=>{let _0xe4fd6a=!0x1;const _0x513505=Array['from'](_0x27b3a9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5f16d1,data:_0x3bfd2c}of _0x513505){const {group:_0xd3207}=_0x1fa348['_splitMarkerName'](_0x5f16d1);if('suggestion'!==_0xd3207||!_0x3bfd2c['newRange'])continue;const _0xe7a5de=_0x3bfd2c['newRange'],_0x48ee60=_0xe7a5de['end']['nodeBefore'];if(!_0x48ee60||!_0x48ee60['is']('element','title-content'))continue;if(!_0xe7a5de['start']['isTouching'](_0xe7a5de['end']))continue;const _0x3326f4=_0x27b3a9['model']['schema']['getNearestSelectionRange'](_0xe7a5de['end'],'forward');if(_0x3326f4&&_0x3326f4['isCollapsed']){const _0x512257=_0x1639be['createRange'](_0xe7a5de['start'],_0x3326f4['start']);_0x512257['isEqual'](_0xe7a5de)||(_0x1639be['updateMarker'](_0x5f16d1,{'range':_0x512257}),_0xe4fd6a=!0x0);}_0xe4fd6a||(_0x1639be['removeMarker'](_0x5f16d1),_0xe4fd6a=!0x0);}return _0xe4fd6a;});}}class Tt extends _0x453bfd{['afterInit'](){const _0x13e72d=this['editor'],_0x1669f6=_0x13e72d['plugins']['get']('TrackChangesEditing');_0x13e72d['plugins']['has']('Uploadcare')&&(_0x1669f6['enableCommand']('uploadcare'),_0x13e72d['plugins']['has']('UploadcareImageEdit')&&(_0x1669f6['enableCommand']('uploadcareImageEdit'),_0x1669f6['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1669f6['registerBlockAttribute']('uploadcareImageId'),_0x1669f6['descriptionFactory']['registerDescriptionCallback'](_0x11da44=>{if('attribute'!=_0x11da44['type'])return;const {data:_0x40db05}=_0x11da44;return _0x40db05&&'uploadcareImageId'==_0x40db05['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x453bfd{['afterInit'](){const _0x25a04c=this['editor'],_0x29a5e3=_0x25a04c['plugins']['get']('TrackChangesEditing');_0x25a04c['plugins']['has']('UndoEditing')&&(_0x29a5e3['enableCommand']('undo'),_0x29a5e3['enableCommand']('redo'));}}class Ut extends _0x453bfd{static get['requires'](){return[Ct];}['afterInit'](){const _0xb6c4b0=this['editor'];if(!_0xb6c4b0['plugins']['has']('TableCaptionEditing'))return;_0xb6c4b0['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x453bfd{['tableProperties'];['tableCellProperties'];constructor(_0x55fb8d){super(_0x55fb8d),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 _0xb31d4e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x154459 of this['tableProperties'])_0xb31d4e['enableCommand'](_0x154459,(_0x3ce2f0,_0x15b134)=>{const _0x5c644f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x154459,[_0x5c644f],this['tableProperties'],'tableProperties',_0x3ce2f0,_0x15b134);});_0xb31d4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xb31d4e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb31d4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3ebe6c,_0x8098f2)=>this['handleDiscardAction'](this['tableProperties'],_0x3ebe6c,_0x8098f2)),_0xb31d4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3bdb36 of this['tableCellProperties'])_0xb31d4e['enableCommand'](_0x3bdb36,(_0xf2a41d,_0x54d8a6)=>{const _0x6cd04a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3bdb36,_0x6cd04a,this['tableCellProperties'],'tableCellProperties',_0xf2a41d,_0x54d8a6);});_0xb31d4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xb31d4e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb31d4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xf258c6,_0x3bd4d9)=>this['handleDiscardAction'](this['tableCellProperties'],_0xf258c6,_0x3bd4d9)),_0xb31d4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xb31d4e['descriptionFactory']['registerDescriptionCallback'](_0x193b71=>this['handleSuggestionDescription'](_0x193b71));}['_handlePropertyChange'](_0x56df9a,_0xf366a4,_0x14f862,_0x4c7e36,_0x3d2ec1,_0x5e916b){const _0x1980eb=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5e916b['batch'],()=>{for(const _0x5c2b29 of _0xf366a4){if(this['_getSuggestion'](_0x5c2b29,_0x4c7e36))_0x3d2ec1(_0x5e916b);else{const _0x4fe9cd={};for(const _0x40f55c of _0x14f862){const _0x2d72d1=_0x5c2b29['getAttribute'](_0x40f55c);void 0x0!==_0x2d72d1&&(_0x4fe9cd[_0x40f55c]=_0x2d72d1);}_0x3d2ec1(_0x5e916b),_0x1980eb['markBlockFormat'](_0x5c2b29,{'commandParams':[_0x4fe9cd]},[],_0x4c7e36);}}});}['handleDiscardAction'](_0x213683,_0x37c793,_0x5e4ec4){const _0x1bf14f=_0x37c793[0x0]['start']['nodeAfter'],_0x482eab=_0x5e4ec4['commandParams'][0x0];this['editor']['model']['change'](_0x2c0e76=>{for(const _0x58a77e of _0x213683)void 0x0!==_0x482eab[_0x58a77e]?_0x2c0e76['setAttribute'](_0x58a77e,_0x482eab[_0x58a77e],_0x1bf14f):_0x2c0e76['removeAttribute'](_0x58a77e,_0x1bf14f);});}['handleSuggestionDescription'](_0x11f3f8){if(_0x11f3f8['data'])switch(_0x11f3f8['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'](_0xc60b95,_0x20b8e7){const _0x3347e0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4ac3fa of _0x3347e0['getSuggestions']({'skipNotAttached':!0x0})){const _0x37b46c=_0x4ac3fa['getContainedElement']();if(_0x4ac3fa['subType']===_0x20b8e7&&_0x37b46c===_0xc60b95)return _0x4ac3fa;}return null;}}const u='$elementName';class p extends _0x453bfd{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x1adabb,_0x125364,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x439855){super(_0x439855),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5381f3,_0x445647,_0x12000e,_0x5feab7)=>{this['_model']['change'](()=>{for(const _0x1aac0c of[..._0x5feab7,..._0x12000e])this['_model']['markers']['has'](_0x1aac0c)&&_0x439855['editing']['reconvertMarker'](_0x1aac0c);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x439855['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(),_0x439855['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x439855['config']['get']('trackChanges.trackFormatChanges'),_0x439855['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x439855['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x439855,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x315e28=this['editor'],_0x356c7b=(_0x399111,_0xfb8434)=>{if('attribute'!=_0x399111)return'ck-suggestion-marker-'+_0x399111;const _0x51dddc=_0xfb8434['split']('|')[0x0];return this['_isBlockAttribute'](_0x51dddc)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x315e28['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x336100=>{const {id:_0x11f9a4,authorId:_0x4e9ed1,type:_0x4b3c15,subType:_0x57a2b5}=this['_splitMarkerName'](_0x336100['markerName']),_0x3902bd=['ck-suggestion-marker',_0x356c7b(_0x4b3c15,_0x57a2b5)];let _0x3786c4=0xbb8;return this['activeMarkers']['includes'](_0x336100['markerName'])&&(_0x3902bd['push']('ck-suggestion-marker--active'),_0x3786c4=0xbc2),'deletion'==_0x4b3c15&&(_0x3786c4+=0x5),{'classes':_0x3902bd,'attributes':{'data-suggestion':_0x11f9a4,'data-author-id':_0x4e9ed1},'priority':_0x3786c4};}}),_0x315e28['conversion']['for']('dataDowncast')['add'](_0x2160c5=>{_0x2160c5['on']('addMarker:suggestion',(_0x1dc199,_0x291a22,_0x3b8fae)=>{if(!_0x3b8fae['options']['showSuggestionHighlights'])return;const _0xd58660=_0x291a22['item'];if(!_0xd58660)return;const _0x3b771b=_0x3b8fae['mapper']['toViewElement'](_0xd58660);_0x315e28['model']['schema']['isObject'](_0xd58660)&&_0x3b771b&&!_0x3b771b['getCustomProperty']('widget')&&_0x3b771b['is']('containerElement')&&_0x15f312(_0x3b771b,_0x3b8fae['writer']);},{'priority':'high'});}),_0x315e28['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5d3b64,_0x596811)=>{if(!_0x596811['options']['showSuggestionHighlights'])return null;const {id:_0x58e69b,authorId:_0x3c4523,type:_0x3026b4,subType:_0x1c409d}=this['_splitMarkerName'](_0x5d3b64['markerName']);return{'classes':['ck-suggestion-marker',_0x356c7b(_0x3026b4,_0x1c409d)],'priority':0xbb8,'attributes':{'data-suggestion':_0x58e69b,'data-author-id':_0x3c4523}};}});const _0x350b9c=({showActiveMarkers:_0x1fc609=!0x0,isAttributeSuggestion:_0xc157a5=!0x1}={})=>(_0x373acf,_0x27f88b,_0x50c9c7)=>{if(!_0x27f88b['item'])return;const {id:_0x32eed8,authorId:_0x212196}=this['_splitMarkerName'](_0x27f88b['markerName']);if(_0xc157a5){const _0x341a8a=this['_suggestions']['get'](_0x32eed8),_0x3b716f=this['_getAttributeKey'](_0x341a8a);if(!this['_isBlockAttribute'](_0x3b716f))return;}if(_0x27f88b['item']['is']('selection'))return void _0x50c9c7['consumable']['consume'](_0x27f88b['item'],_0x373acf['name']);const _0x4c168f=_0x50c9c7['mapper']['toViewElement'](_0x27f88b['item']);if(_0x27f88b['item']['is']('element')&&_0x315e28['model']['schema']['isBlock'](_0x27f88b['item'])&&!_0x4c168f['getCustomProperty']('addHighlight')){_0x50c9c7['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4c168f),_0x50c9c7['writer']['setAttribute']('data-suggestion',_0x32eed8,_0x4c168f),_0x50c9c7['writer']['setAttribute']('data-author-id',_0x212196,_0x4c168f),_0x50c9c7['mapper']['bindElementToMarker'](_0x4c168f,_0x27f88b['markerName']),_0x1fc609&&(this['activeMarkers']['includes'](_0x27f88b['markerName'])?_0x50c9c7['writer']['addClass']('ck-suggestion-marker--active',_0x4c168f):_0x50c9c7['writer']['removeClass']('ck-suggestion-marker--active',_0x4c168f));for(const _0x266c58 of _0x315e28['model']['createRangeIn'](_0x27f88b['item'])['getItems']())_0x50c9c7['consumable']['consume'](_0x266c58,_0x373acf['name']);_0x50c9c7['consumable']['consume'](_0x27f88b['item'],_0x373acf['name']);}};_0x315e28['conversion']['for']('dataDowncast')['add'](_0x18db3c=>{_0x18db3c['on']('addMarker:suggestion:formatBlock',(_0x5d1745,_0x18c89b,_0x420228)=>{_0x420228['options']['showSuggestionHighlights']&&_0x350b9c({'showActiveMarkers':!0x1})(_0x5d1745,_0x18c89b,_0x420228);},{'priority':'highest'});}),_0x315e28['conversion']['for']('dataDowncast')['add'](_0x2a9d92=>{_0x2a9d92['on']('addMarker:suggestion:attribute',(_0x1f1194,_0x121747,_0x4ad340)=>{_0x4ad340['options']['showSuggestionHighlights']&&_0x350b9c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1f1194,_0x121747,_0x4ad340);},{'priority':'highest'});}),_0x315e28['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2cf1f1,_0x167702)=>{if(_0x167702['options']['showSuggestionHighlights']){const {id:_0x541541,authorId:_0x53bbf2}=this['_splitMarkerName'](_0x2cf1f1);return _0x2cf1f1['includes'](':split')||_0x2cf1f1['includes'](':merge')?{'group':'suggestion','name':_0x2cf1f1['substr'](0xb),'attributes':{'data-suggestion':_0x541541,'data-author-id':_0x53bbf2}}:null;}return{'group':'suggestion','name':_0x2cf1f1['substr'](0xb)};}}),_0x315e28['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x21248c,{writer:_0x2419bf})=>{let _0x3bcf6f='suggestion:'+_0x21248c['getAttribute']('suggestion-type')+':'+_0x21248c['getAttribute']('id');return _0x21248c['getAttribute']('marker-count')&&(_0x3bcf6f+=':'+_0x21248c['getAttribute']('marker-count')),_0x2419bf['createElement']('$marker',{'data-name':_0x3bcf6f});}}),_0x315e28['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x315e28['conversion']['for']('editingDowncast')['add'](_0x327f9c=>{_0x327f9c['on']('addMarker:suggestion:formatBlock',_0x350b9c(),{'priority':'high'});}),_0x315e28['conversion']['for']('editingDowncast')['add'](_0x53f14f=>{_0x53f14f['on']('addMarker:suggestion:attribute',_0x350b9c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x315e28['conversion']['for']('editingDowncast')['add'](_0x3c37a0=>{_0x3c37a0['on']('removeMarker:suggestion:formatBlock',(_0x4fce05,_0x4451ff,_0xb78be)=>{const _0x5c5137=_0xb78be['mapper']['markerNameToElements'](_0x4451ff['markerName']);if(_0x5c5137){for(const _0x752793 of _0x5c5137)_0x752793['getCustomProperty']('addHighlight')||(_0xb78be['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x752793),_0xb78be['writer']['removeAttribute']('data-suggestion',_0x752793),_0xb78be['writer']['removeAttribute']('data-author-id',_0x752793),_0xb78be['mapper']['unbindElementFromMarkerName'](_0x752793,_0x4451ff['markerName']));}},{'priority':'high'});}),_0x315e28['conversion']['for']('editingDowncast')['add'](_0x3e512c=>{_0x3e512c['on']('removeMarker:suggestion:attribute',(_0x19ec92,_0x2f3be3,_0x4616dc)=>{const _0x4fc4ae=_0x4616dc['mapper']['markerNameToElements'](_0x2f3be3['markerName']);if(!_0x4fc4ae)return;const {id:_0x27151d}=this['_splitMarkerName'](_0x2f3be3['markerName']),_0x2a4f44=this['_suggestions']['get'](_0x27151d),_0x301598=this['_getAttributeKey'](_0x2a4f44);if(this['_isBlockAttribute'](_0x301598)){for(const _0x1407e9 of _0x4fc4ae)_0x1407e9['getCustomProperty']('addHighlight')||(_0x4616dc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1407e9),_0x4616dc['writer']['removeAttribute']('data-suggestion',_0x1407e9),_0x4616dc['writer']['removeAttribute']('data-author-id',_0x1407e9),_0x4616dc['mapper']['unbindElementFromMarkerName'](_0x1407e9,_0x2f3be3['markerName']));}},{'priority':'high'});}),_0x315e28['model']['document']['registerPostFixer'](_0x50f040=>{let _0xa802c2=!0x1;const _0x598502=Array['from'](_0x315e28['model']['document']['differ']['getChangedMarkers']()),_0xa0e388=new Set();for(const {name:_0x2ca6da,data:_0x47e92f}of _0x598502){const {group:_0x4bbf06,type:_0x55cdd2,subType:_0x3d9390,id:_0x5079cd}=this['_splitMarkerName'](_0x2ca6da);if('suggestion'!==_0x4bbf06)continue;const _0xed91d4=this['_suggestions']['get'](_0x5079cd);if(null!=_0x47e92f['newRange']){'formatInline'==_0x55cdd2&&(_0xa802c2=_0xa802c2||Jt(_0x47e92f['newRange'],_0x2ca6da,_0x50f040,_0x315e28['model']['schema']));const _0xf10192='attribute'==_0x55cdd2&&this['_isBlockAttribute'](_0x3d9390['split']('|')[0x0]);if(_0x47e92f['newRange']['isCollapsed']||'$graveyard'==_0x47e92f['newRange']['root']['rootName']||'formatBlock'==_0x55cdd2&&!Ht(_0x47e92f['newRange'])||_0xf10192&&!Ht(_0x47e92f['newRange'])||'deletion'==_0x55cdd2&&!(!Lt(_0x58636d=_0x47e92f['newRange'])&&!function(_0x3e8968){return _0x3e8968['start']['parent']==_0x3e8968['end']['nodeBefore']&&_0x3e8968['start']['isAtEnd'];}(_0x58636d)))_0x50f040['removeMarker'](_0x2ca6da),_0xa802c2=!0x0;else{if(!_0xed91d4||!_0xed91d4['isInContent'])continue;if(_0x47e92f['newRange']&&_0x47e92f['oldRange']&&_0x47e92f['newRange']['isEqual'](_0x47e92f['oldRange']))continue;_0xa0e388['add'](_0xed91d4);}}}var _0x58636d;return _0xa0e388['size']>0x0&&(_0xa802c2=!!this['_joinWithAdjacentSuggestions'](_0xa0e388)||_0xa802c2),_0xa802c2;}),_0x315e28['model']['document']['registerPostFixer'](_0x22b61b=>{let _0x2a7a05=!0x1;for(const _0x37050d of _0x315e28['model']['document']['differ']['getChanges']())if('insert'==_0x37050d['type'])for(const _0x4faa62 of this['_suggestions']['values']()){if(_0x4faa62['isMultiRange']||!_0x4faa62['isInContent'])continue;const _0x3f9a71='formatBlock'==_0x4faa62['type'],_0x2c701b=this['_getAttributeKey'](_0x4faa62),_0x5c5beb=_0x2c701b&&this['_isBlockAttribute'](_0x2c701b);if(!_0x3f9a71&&!_0x5c5beb)continue;const _0x5608ac=_0x4faa62['getFirstRange']();if(_0x5608ac['start']['parent']!=_0x5608ac['end']['parent']&&!_0x5608ac['end']['isAtEnd']){const _0x3aa8b8=_0x315e28['model']['createPositionAt'](_0x5608ac['start']['nodeAfter'],'end'),_0x409ffb=_0x315e28['model']['createRange'](_0x5608ac['start'],_0x3aa8b8);_0x22b61b['updateMarker'](_0x4faa62['getFirstMarker'](),{'range':_0x409ffb}),_0x2a7a05=!0x0;}}return _0x2a7a05;}),_0x315e28['model']['document']['registerPostFixer'](_0x368bfd=>this['_processAttributeChanges'](_0x368bfd)),_0x315e28['model']['document']['registerPostFixer'](_0x3c634c=>!_0x3c634c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3c634c)),_0x315e28['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x315e28['model']['document']['on']('change:data',(_0x3ea96e,_0x363cc2)=>{if(!_0x363cc2['isLocal']||_0x363cc2['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5f3150=_0x315e28['model']['document']['differ']['getChanges']();if(0x0==_0x5f3150['length'])return;const _0x252fe3=[],_0x3b6c77=_0x5f3150['filter'](_0x334cb8=>'attribute'==_0x334cb8['type']),_0x470601=_0x5f3150['filter'](_0x103d2a=>'insert'==_0x103d2a['type']&&'$text'!=_0x103d2a['name']);for(const _0x3df572 of _0x3b6c77)this['_isRegisteredAttribute'](_0x3df572['attributeKey'])&&_0x252fe3['push']({'key':_0x3df572['attributeKey'],'newValue':_0x3df572['attributeNewValue'],'oldValue':_0x3df572['attributeOldValue'],'range':qt(_0x3df572['range'],_0x315e28['model'])});for(const _0x3e17fc of _0x470601){if('rename'!=_0x3e17fc['action']&&'refresh'!=_0x3e17fc['action'])continue;const _0x5037c7=zt(_0x3e17fc['position']['nodeAfter'],_0x315e28['model']),_0x8f98c7=_0x3e17fc['before'];'rename'==_0x3e17fc['action']&&_0x252fe3['push']({'key':u,'newValue':_0x3e17fc['name'],'oldValue':_0x8f98c7['name'],'range':_0x5037c7});for(const [_0x3be3be,_0x559f74]of _0x8f98c7['attributes']){if(!this['_isRegisteredAttribute'](_0x3be3be))continue;const _0x492eb7=_0x3e17fc['attributes']['get'](_0x3be3be);_0x559f74!==_0x492eb7&&_0x252fe3['push']({'key':_0x3be3be,'newValue':_0x492eb7,'oldValue':_0x559f74,'range':_0x5037c7});}for(const [_0x315ac7,_0x5a73c3]of _0x3e17fc['attributes'])this['_isRegisteredAttribute'](_0x315ac7)&&(_0x8f98c7['attributes']['has'](_0x315ac7)||_0x252fe3['push']({'key':_0x315ac7,'newValue':_0x5a73c3,'oldValue':null,'range':_0x5037c7}));}0x0!=_0x252fe3['length']&&_0x315e28['model']['enqueueChange'](_0x363cc2,_0x2a1209=>{const _0x6f6749=_0x36e858();for(const {range:_0x2db553,key:_0x18baaa,oldValue:_0x4a5613,newValue:_0x5a8dc1}of _0x252fe3)this['markAttributeChange'](_0x2db553,_0x18baaa,_0x4a5613,_0x5a8dc1,{'groupId':_0x6f6749});this['_reduceExistingSuggestions'](_0x2a1209,_0x252fe3);});},{'priority':'lowest'}),_0x315e28['model']['markers']['on']('update:suggestion',(_0x5a2e87,_0x252778,_0x38f4b1)=>{if(null==_0x38f4b1){const {id:_0x128645}=this['_splitMarkerName'](_0x252778['name']),_0x4f63ad=this['_suggestions']['get'](_0x128645);_0x4f63ad&&_0x4f63ad['addMarkerName'](_0x252778['name']);}}),_0x315e28['model']['document']['on']('change:data',()=>{const _0x52f968=Array['from'](_0x315e28['model']['document']['differ']['getChangedMarkers']())['filter'](_0xfc6c25=>'suggestion'===this['_splitMarkerName'](_0xfc6c25['name'])['group']);if(0x0===_0x52f968['length'])return;_0x52f968['sort']((_0x4acfad,_0x3a0243)=>{const _0x369d00=_0x4acfad['data']['oldRange'],_0xc9b4d0=_0x3a0243['data']['oldRange'];return null===_0x369d00&&null===_0xc9b4d0?0x0:null===_0x369d00&&null!==_0xc9b4d0?-0x1:null!==_0x369d00&&null===_0xc9b4d0?0x1:_0x369d00['start']['isBefore'](_0xc9b4d0['start'])?-0x1:0x1;});const _0xd2bec8=new Set(),_0x49a02b=new Set();for(const {name:_0x1779f3,data:_0x5be97a}of _0x52f968){const {id:_0xcdb2df}=this['_splitMarkerName'](_0x1779f3);if(null===_0x5be97a['oldRange']){const _0x1e3540=this['_handleNewSuggestionMarker'](_0x1779f3);_0x49a02b['add'](_0x1e3540);}else{const _0x5d530f=this['_suggestions']['get'](_0xcdb2df);null!==_0x5be97a['newRange']||_0x5d530f['isInContent']?(_0xd2bec8['add'](_0x5d530f['head']),_0x49a02b['add'](_0x5d530f)):this['_removeSuggestion'](_0x5d530f);}}_0x49a02b['size']>0x0&&this['_refreshSuggestionsChain'](_0x49a02b);for(const _0x497ab4 of _0xd2bec8)this['fire']('suggestionChanged',_0x497ab4);}),_0x315e28['model']['on']('applyOperation',(_0x1e1c19,_0x1b4413)=>{const _0x554919=_0x1b4413[0x0];if(!this['_suggestions']['size'])return;if(!_0x554919['isDocumentOperation'])return;if(_0x554919['batch']['isUndo']||!_0x554919['batch']['isLocal'])return;let _0x2a2937,_0x5d37c8;switch(_0x554919['type']){case'insert':_0x2a2937=_0x315e28['model']['createPositionAt'](_0x554919['position']),_0x5d37c8=_0x2a2937['getShiftedBy'](_0x554919['howMany']);break;case'split':_0x2a2937=_0x315e28['model']['createPositionAt'](_0x554919['splitPosition']),_0x5d37c8=_0x315e28['model']['createPositionAt'](_0x554919['moveTargetPosition']);break;case'move':_0x2a2937=_0x315e28['model']['createPositionAt'](_0x554919['targetPosition']),_0x5d37c8=_0x2a2937['getShiftedBy'](_0x554919['howMany']);break;default:return;}const _0x205699=_0x315e28['model']['createRange'](_0x2a2937,_0x5d37c8);_0x315e28['model']['change'](()=>{for(const {suggestion:_0x242ee7,meta:_0x10e58f}of this['_findSuggestions'](_0x205699)){if(_0x242ee7['isMultiRange'])continue;if('formatInline'==_0x242ee7['type'])continue;const _0x31836d=this['_getAttributeKey'](_0x242ee7);if(_0x31836d&&this['_isBlockAttribute'](_0x31836d)&&'split'!=_0x554919['type'])continue;const _0x320511=_0x242ee7['data']&&_0x242ee7['data']['multipleBlocks'];('formatBlock'!=_0x242ee7['type']||'split'==_0x554919['type']&&!_0x320511)&&(_0x10e58f['containsRangeInObject']||'insertion'==_0x242ee7['type']&&_0x10e58f['isOwn']||_0x242ee7['getFirstRange']()['containsRange'](_0x205699)&&this['_breakSuggestionMarker'](_0x242ee7,_0x2a2937,_0x5d37c8));}});},{'priority':'lowest'}),_0x315e28['model']['on']('deleteContent',(_0x1c222c,_0x59936e)=>{const _0x2310b1=_0x59936e[0x0],_0x1ef884=_0x59936e[0x1];if(_0x1ef884&&_0x1ef884['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2310b1['isCollapsed'])return;const _0x31c2c8=_0x315e28['model']['schema'],{start:_0x1741eb,end:_0x5157b4}=_0x2310b1['getFirstRange'](),_0x5bfe4d=_0x1741eb['nodeAfter']&&_0x31c2c8['isLimit'](_0x1741eb['nodeAfter'])?null:_0x31c2c8['getNearestSelectionRange'](_0x1741eb,'forward'),_0x166110=_0x5157b4['nodeBefore']&&_0x31c2c8['isLimit'](_0x5157b4['nodeBefore'])?null:_0x31c2c8['getNearestSelectionRange'](_0x5157b4,'backward'),_0x4c4c8e=_0x315e28['model']['createRange'](_0x5bfe4d?_0x5bfe4d['start']:_0x1741eb,_0x166110?_0x166110['end']:_0x5157b4);_0x315e28['model']['change'](_0x273c79=>{this['markDeletion'](_0x4c4c8e);const _0x21a7a3=_0x315e28['model']['schema']['getNearestSelectionRange'](_0x4c4c8e['start']);_0x2310b1['is']('documentSelection')?_0x273c79['setSelection'](_0x21a7a3):_0x2310b1['setTo'](_0x21a7a3);}),_0x1c222c['stop']();},{'priority':_0x487002['normal']+0xa}),_0x315e28['model']['on']('insertContent',(_0x284fbb,_0x378ec7)=>{const _0xec2090=_0x378ec7[_0x378ec7['length']-0x1];_0xec2090&&_0xec2090['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x315e28['model']['change'](()=>{let _0x1ec133=_0x315e28['model']['insertContent'](_0x378ec7[0x0],_0x378ec7[0x1],_0x378ec7[0x2],{'forceDefaultExecution':!0x0});if(!_0x1ec133)return;_0x284fbb['return']=_0x1ec133['clone']();const _0x401dd8=_0x1ec133['end']['nodeBefore'],_0x502840=_0x315e28['model']['schema'];_0x401dd8&&_0x502840['isBlock'](_0x401dd8)&&!_0x502840['isObject'](_0x401dd8)&&(_0x1ec133=_0x315e28['model']['createRange'](_0x1ec133['start'],_0x315e28['model']['createPositionAt'](_0x401dd8,'end'))),this['markInsertion'](_0x1ec133);}),_0x284fbb['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x8e0ef8=new x(_0x315e28,this['_suggestions']);_0x315e28['commands']['add']('acceptSuggestion',_0x8e0ef8),this['enableCommand']('acceptSuggestion');const _0x2db375=new O(_0x315e28,this['_suggestions']);_0x315e28['commands']['add']('discardSuggestion',_0x2db375),this['enableCommand']('discardSuggestion'),_0x315e28['commands']['add']('acceptAllSuggestions',new R(_0x315e28,_0x8e0ef8,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x315e28['commands']['add']('discardAllSuggestions',new R(_0x315e28,_0x2db375,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x315e28['commands']['add']('acceptSelectedSuggestions',new E(_0x315e28,_0x8e0ef8,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x315e28['commands']['add']('discardSelectedSuggestions',new E(_0x315e28,_0x2db375,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4e75a7=_0x315e28['plugins']['get']('CommentsRepository');this['listenTo'](_0x4e75a7,'addComment',(_0x2f67e4,{threadId:_0xe1b62c})=>{const _0x486d1e=this['_suggestions']['get'](_0xe1b62c);_0x486d1e&&_0x486d1e['commentThread']&&0x1===_0x486d1e['commentThread']['length']&&this['_updateSuggestionData'](_0xe1b62c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4e75a7,'removeComment',(_0x4355de,{threadId:_0x3f1968})=>{const _0x4387e2=this['_suggestions']['get'](_0x3f1968);_0x4387e2&&_0x4387e2['commentThread']&&!_0x4387e2['commentThread']['length']&&this['_updateSuggestionData'](_0x3f1968,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3d0b47){const _0x50dec9=_0x690fd8([0x53,0x69,0x30,0x56,0x71,0x43,0x72,0x37,0x47,0x78,0x38,0x63,0x6c,0x79,0x54,0x50,0x61,0x39,0x33,0x6f,0x4f,0x49,0x6e,0x34,0x58,0x6b,0x74,0x4e,0x77,0x51,0x55,0x73,0x68,0x35,0x41,0x5a,0x46,0x42,0x52,0x57,0x66,0x4c,0x4b,0x75,0x70,0x48,0x32,0x67,0x59,0x7a,0x6d,0x65,0x31,0x4a,0x36,0x64,0x6a,0x76,0x44,0x45,0x4d,0x62]),_0x596239=0x69d6536e,_0x36fadf=0x69d13a66^_0x596239,_0x1502ea=window[_0x690fd8([0x44,0x61,0x74,0x65])][_0x690fd8([0x6e,0x6f,0x77])](),_0x1bab90=_0x3d0b47[_0x690fd8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc4d970=new window[(_0x690fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x389007=>{_0x1bab90[_0x690fd8([0x6f,0x6e,0x63,0x65])](_0x690fd8([0x72,0x65,0x61,0x64,0x79]),_0x389007);}),_0x3049ad={[_0x690fd8([0x6b,0x74,0x79])]:_0x690fd8([0x45,0x43]),[_0x690fd8([0x75,0x73,0x65])]:_0x690fd8([0x73,0x69,0x67]),[_0x690fd8([0x63,0x72,0x76])]:_0x690fd8([0x50,0x2d,0x32,0x35,0x36]),[_0x690fd8([0x78])]:_0x690fd8([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]),[_0x690fd8([0x79])]:_0x690fd8([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]),[_0x690fd8([0x61,0x6c,0x67])]:_0x690fd8([0x45,0x53,0x32,0x35,0x36])},_0xc77120=_0x1bab90[_0x690fd8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x690fd8([0x67,0x65,0x74])](_0x690fd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x17b6be(){let _0xfa87ee,_0x29eb11=null,_0x272313=null;try{if(_0xc77120==_0x690fd8([0x47,0x50,0x4c]))return _0x690fd8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xfa87ee=_0x9cf6b0(),!_0xfa87ee)return _0x690fd8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xfa87ee[_0x690fd8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x272313=_0x4f7b39(_0xfa87ee[_0x690fd8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xfa87ee[_0x690fd8([0x6a,0x74,0x69])])),await _0x509d0f()?_0x331063()?_0x6329c7()?_0x690fd8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x6d0048()?(_0xfa87ee[_0x690fd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x690fd8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29eb11=_0x4ddf76(_0x690fd8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xfa87ee[_0x690fd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x690fd8([0x74,0x72,0x69,0x61,0x6c])&&(_0x29eb11=_0x4ddf76(_0x690fd8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x341287()):_0x690fd8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x690fd8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x690fd8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x690fd8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6329c7(){const _0x2287e5=[_0x690fd8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x690fd8([0x74,0x72,0x69,0x61,0x6c])][_0x690fd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfa87ee[_0x690fd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1502ea/0x3e8:0xe10*_0x36fadf;return _0xfa87ee[_0x690fd8([0x65,0x78,0x70])]<_0x2287e5;}function _0x331063(){const _0x328625=_0xfa87ee[_0x690fd8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x328625)return!0x1;if(_0x328625[_0x690fd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x690fd8([0x2a])))return!0x0;if(_0x328625[_0x690fd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x690fd8([0x54,0x43])))return!0x0;if(_0x328625[_0x690fd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x690fd8([0x52,0x54,0x43]))){if(_0x148937())return!0x0;if(_0x347ad5()||_0x2d5ba4())return!0x0;}return!0x1;}function _0x6d0048(){const _0x20e0ec=_0xfa87ee[_0x690fd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20e0ec||0x0==_0x20e0ec[_0x690fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3963ee}=new URL(window[_0x690fd8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20e0ec[_0x690fd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3963ee))return!0x0;const _0x22ac7b=_0x3963ee[_0x690fd8([0x73,0x70,0x6c,0x69,0x74])](_0x690fd8([0x2e]));return _0x20e0ec[_0x690fd8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14615e=>_0x14615e[_0x690fd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x690fd8([0x2a])))[_0x690fd8([0x6d,0x61,0x70])](_0x582936=>_0x582936[_0x690fd8([0x73,0x70,0x6c,0x69,0x74])](_0x690fd8([0x2e])))[_0x690fd8([0x73,0x6f,0x6d,0x65])](_0x27214c=>_0x22ac7b[_0x690fd8([0x65,0x76,0x65,0x72,0x79])]((_0x4b4b06,_0x18a1d6)=>_0x27214c[_0x18a1d6]===_0x4b4b06||_0x27214c[_0x18a1d6]===_0x690fd8([0x2a])));}function _0x341287(){return _0x29eb11&&_0x272313?new window[(_0x690fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e629a,_0x375fe9)=>{_0x29eb11[_0x690fd8([0x74,0x68,0x65,0x6e])](_0x1e629a,_0x375fe9),_0x272313[_0x690fd8([0x74,0x68,0x65,0x6e])](_0x487126=>{_0x487126!=_0x690fd8([0x56,0x61,0x6c,0x69,0x64])&&_0x1e629a(_0x487126);},_0x375fe9);}):_0x29eb11||_0x272313||_0x690fd8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4f7b39(_0x59b7d5,_0x1649f7){return new window[(_0x690fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27b5ad=>{if(_0x38d6f6())return _0x27b5ad(_0x690fd8([0x56,0x61,0x6c,0x69,0x64]));_0xe9ba92(),_0x1bab90[_0x690fd8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x690fd8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d74c4=!0x1;const _0x375f4c=_0x36e858();function _0x13375d(_0x4fa9be){return!!_0x4fa9be&&(typeof _0x4fa9be===_0x690fd8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4fa9be===_0x690fd8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4fa9be[_0x690fd8([0x74,0x68,0x65,0x6e])]===_0x690fd8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4fa9be[_0x690fd8([0x63,0x61,0x74,0x63,0x68])]===_0x690fd8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x429a77(_0x4b0322){_0x10aaaf(_0x4b0322)[_0x690fd8([0x74,0x68,0x65,0x6e])](_0x358312=>{if(!_0x358312||_0x358312[_0x690fd8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x690fd8([0x6f,0x6b]))return _0x690fd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e83b1(_0x3e1e5e(_0x375f4c+_0x1649f7))!=_0x358312[_0x690fd8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x690fd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x690fd8([0x56,0x61,0x6c,0x69,0x64]);})[_0x690fd8([0x74,0x68,0x65,0x6e])](_0x51bee1=>(_0x51d989(),_0x51bee1),()=>{const _0x1ae2b1=_0x57912d();return null==_0x1ae2b1?(_0x51d989(),_0x690fd8([0x56,0x61,0x6c,0x69,0x64])):_0x690fd8(_0x1502ea-_0x1ae2b1>(0x4ddad76e^_0x596239)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x690fd8([0x74,0x68,0x65,0x6e])](_0x27b5ad)[_0x690fd8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27b5ad(_0x690fd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x556b60=0x69e0bdee^_0x596239;function _0x51d989(){const _0x137c0d=_0x690fd8([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e83b1(_0x3e1e5e(_0x59b7d5)),_0x54dc93=_0xe5576e(_0x5e83b1(window[_0x690fd8([0x4d,0x61,0x74,0x68])][_0x690fd8([0x63,0x65,0x69,0x6c])](_0x1502ea/_0x556b60)));window[_0x690fd8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x690fd8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x137c0d,_0x54dc93);}function _0x57912d(){const _0x88d88e=_0x690fd8([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e83b1(_0x3e1e5e(_0x59b7d5)),_0x510a5c=window[_0x690fd8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x690fd8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x88d88e);return _0x510a5c?window[_0x690fd8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe5576e(_0x510a5c),0x10)*_0x556b60:null;}function _0x10aaaf(_0xebad72){return new window[(_0x690fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16273f,_0x307348)=>{_0xebad72[_0x690fd8([0x74,0x68,0x65,0x6e])](_0x16273f,_0x307348),window[_0x690fd8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x307348,0x69d787ae^_0x596239);});}}_0x1bab90[_0x690fd8([0x6f,0x6e])](_0x690fd8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e0026,_0x26d503)=>{if(_0x26d503[0x0]!=_0x59b7d5)return _0x27b5ad(_0x690fd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26d503[0x1]={..._0x26d503[0x1],[_0x690fd8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x375f4c};},{[_0x690fd8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x690fd8([0x68,0x69,0x67,0x68])}),_0x1bab90[_0x690fd8([0x6f,0x6e])](_0x690fd8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3165b0=>{_0x13375d(_0x3165b0[_0x690fd8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d74c4=!0x0,_0x429a77(_0x3165b0[_0x690fd8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x690fd8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x690fd8([0x6c,0x6f,0x77])}),_0xc4d970[_0x690fd8([0x74,0x68,0x65,0x6e])](()=>{_0x2d74c4||_0x27b5ad(_0x690fd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x38d6f6(){return _0x1bab90[_0x690fd8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x690fd8([0x76,0x69,0x65,0x77])][_0x690fd8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x690fd8([0x61,0x75,0x74,0x6f]);}function _0xe9ba92(){_0x1bab90[_0x690fd8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x690fd8([0x76,0x69,0x65,0x77])][_0x690fd8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x690fd8([0x61,0x75,0x74,0x6f]);}}function _0x4ddf76(_0x3d9de1){const _0x2daa68=[new window[(_0x690fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x583cb2=>setTimeout(_0x583cb2,0x69df6da2^_0x596239)),_0xc4d970[_0x690fd8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x690fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe482c2=>{let _0x35a469=0x0;_0x1bab90[_0x690fd8([0x6d,0x6f,0x64,0x65,0x6c])][_0x690fd8([0x6f,0x6e])](_0x690fd8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x18b55a,_0x4482da)=>{_0x4482da[0x0][_0x690fd8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x35a469++,_0x35a469==(0x69d65296^_0x596239)&&(_0xe482c2(),_0x18b55a[_0x690fd8([0x6f,0x66,0x66])]());});}))];return window[_0x690fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x690fd8([0x72,0x61,0x63,0x65])](_0x2daa68)[_0x690fd8([0x74,0x68,0x65,0x6e])](()=>_0x3d9de1);}async function _0x48a60d(){await _0xc4d970,_0x1bab90[_0x690fd8([0x6d,0x6f,0x64,0x65,0x6c])][_0x690fd8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5971ab,_0x1bab90[_0x690fd8([0x6d,0x6f,0x64,0x65,0x6c])][_0x690fd8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5971ab,_0x1bab90[_0x690fd8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x690fd8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x148937(){return _0xd65c3e(_0x690fd8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x9a5a0b(_0x690fd8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x690fd8([0x73,0x74,0x61,0x74,0x65])]==_0x690fd8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x347ad5(){return _0xd65c3e(_0x690fd8([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 _0x2d5ba4(){return _0xd65c3e(_0x690fd8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x44d213(_0x11682a){const _0x269f2a=_0x547914();_0x1bab90[_0x269f2a]=_0x690fd8([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11682a,_0x11682a!=_0x690fd8([0x56,0x61,0x6c,0x69,0x64])&&_0x48a60d();}function _0x547914(){const _0x832c5c=window[_0x690fd8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x690fd8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x690fd8([0x6e,0x6f,0x77])]())[_0x690fd8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x690fd8([0x2e]),'');let _0x37400c=_0x690fd8([0x53]);for(let _0xe4a112=0x0;_0xe4a112<_0x832c5c[_0x690fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe4a112+=0x2){let _0x16346d=window[_0x690fd8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x832c5c[_0x690fd8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe4a112,_0xe4a112+0x2));_0x16346d>=_0x50dec9[_0x690fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x16346d-=_0x50dec9[_0x690fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x37400c+=_0x50dec9[_0x16346d];}return _0x37400c;}function _0x9cf6b0(){const _0x590cd3=_0xc77120[_0x690fd8([0x73,0x70,0x6c,0x69,0x74])](_0x690fd8([0x2e]));if(0x3!=_0x590cd3[_0x690fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c488b(_0x590cd3[0x1]);function _0x4c488b(_0x3226d0){const _0x1bdc41=_0x53d9a7(_0x3226d0);return _0x1bdc41&&_0x5a98a5()?_0x1bdc41:null;function _0x5a98a5(){const _0x195ddd=_0x1bdc41[_0x690fd8([0x6a,0x74,0x69])],_0x495309=window[_0x690fd8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x195ddd[_0x690fd8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x195ddd[_0x690fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f9484={..._0x1bdc41,[_0x690fd8([0x6a,0x74,0x69])]:_0x195ddd[_0x690fd8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x195ddd[_0x690fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f9484[_0x690fd8([0x76,0x63])],_0x3e1e5e(_0x4f9484)==_0x495309;}}}async function _0x509d0f(){let _0x281361=!0x0;try{const _0x49ec19=_0xc77120[_0x690fd8([0x73,0x70,0x6c,0x69,0x74])](_0x690fd8([0x2e])),[_0x37c7c5,_0x5115ab,_0x9b823]=_0x49ec19;return _0x18fdd(_0x37c7c5),await _0x5c6c08(_0x37c7c5,_0x5115ab,_0x9b823),_0x281361;}catch{return!0x1;}function _0x18fdd(_0x4201f9){const _0x173b21=_0x53d9a7(_0x4201f9);_0x173b21&&_0x173b21[_0x690fd8([0x61,0x6c,0x67])]==_0x690fd8([0x45,0x53,0x32,0x35,0x36])||(_0x281361=!0x1);}async function _0x5c6c08(_0x4cbf3,_0x47f51a,_0x300c38){const _0x470f9a=window[_0x690fd8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x690fd8([0x66,0x72,0x6f,0x6d])](_0x236de3(_0x300c38),_0x4dd762=>_0x4dd762[_0x690fd8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43f15f=new window[(_0x690fd8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x690fd8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4cbf3+_0x690fd8([0x2e])+_0x47f51a),_0x520fdd=window[_0x690fd8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x690fd8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x520fdd)return;const _0x3bcd80=await _0x520fdd[_0x690fd8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x690fd8([0x6a,0x77,0x6b]),_0x3049ad,{[_0x690fd8([0x6e,0x61,0x6d,0x65])]:_0x690fd8([0x45,0x43,0x44,0x53,0x41]),[_0x690fd8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x690fd8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x690fd8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x520fdd[_0x690fd8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x690fd8([0x6e,0x61,0x6d,0x65])]:_0x690fd8([0x45,0x43,0x44,0x53,0x41]),[_0x690fd8([0x68,0x61,0x73,0x68])]:{[_0x690fd8([0x6e,0x61,0x6d,0x65])]:_0x690fd8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3bcd80,_0x470f9a,_0x43f15f)||(_0x281361=!0x1);}}function _0x53d9a7(_0x35d767){return _0x35d767[_0x690fd8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x690fd8([0x65,0x79]))?JSON[_0x690fd8([0x70,0x61,0x72,0x73,0x65])](_0x236de3(_0x35d767)):null;}function _0x236de3(_0x50b9a5){return window[_0x690fd8([0x61,0x74,0x6f,0x62])](_0x50b9a5[_0x690fd8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x690fd8([0x2b]))[_0x690fd8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x690fd8([0x2f])));}function _0x3e1e5e(_0x37fc9a){let _0x2e5d53=0x1505;function _0xf97381(_0x27c48e){for(let _0x441763=0x0;_0x441763<_0x27c48e[_0x690fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x441763++){const _0x43fff5=_0x27c48e[_0x690fd8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x441763);_0x2e5d53=(_0x2e5d53<<0x5)+_0x2e5d53+_0x43fff5,_0x2e5d53&=_0x2e5d53;}}function _0x2563f0(_0xb90888){Array[_0x690fd8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb90888)?_0xb90888[_0x690fd8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2563f0):_0xb90888&&typeof _0xb90888==_0x690fd8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x690fd8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb90888)[_0x690fd8([0x73,0x6f,0x72,0x74])]()[_0x690fd8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a24dc,_0x4bf8ff])=>{_0xf97381(_0x1a24dc),_0x2563f0(_0x4bf8ff);}):_0xf97381(window[_0x690fd8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb90888));}return _0x2563f0(_0x37fc9a),_0x2e5d53>>>0x0;}function _0x5e83b1(_0x490605){return _0x490605[_0x690fd8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x690fd8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x690fd8([0x30]));}function _0xe5576e(_0xf56f88){return _0xf56f88[_0x690fd8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x690fd8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x690fd8([0x6a,0x6f,0x69,0x6e])]('');}function _0xd65c3e(_0xd62e4c){return _0x1bab90[_0x690fd8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x690fd8([0x68,0x61,0x73])](_0xd62e4c);}function _0x9a5a0b(_0x320e5a){return _0x1bab90[_0x690fd8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x690fd8([0x67,0x65,0x74])](_0x320e5a);}function _0x5971ab(){}function _0x690fd8(_0x5d111c){return _0x5d111c['map'](_0x258d45=>String['fromCharCode'](_0x258d45))['join']('');}_0x44d213(await _0x17b6be());}(this);}set['adapter'](_0x47d1b6){if(this['_adapter'])throw new _0x15afa0('track-changes-adapter-already-set',this);this['_adapter']=_0x47d1b6;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2613d7=!0x1,toJSON:_0x273699=!0x1}={}){const _0x516dd5=[];for(const _0x5e3a97 of this['_suggestions']['values']())_0x2613d7&&!_0x5e3a97['isInContent']||_0x516dd5['push'](_0x5e3a97);return _0x273699?_0x516dd5['map'](_0x2cf879=>_0x2cf879['toJSON']()):_0x516dd5;}['getSuggestion'](_0x1af127){const _0x276e6d=this['_suggestions']['get'](_0x1af127);if(!_0x276e6d)throw new _0x15afa0('track-changes-suggestion-not-found',this);return _0x276e6d;}['hasSuggestion'](_0x5e7873){return this['_suggestions']['has'](_0x5e7873);}['addSuggestionData'](_0x525761){const {authorId:_0x26cb8b,id:_0xfaeec8,originalSuggestionId:_0x4ae04b,attributes:_0x460153}=_0x525761,[_0x288d82,_0x20d47e]=_0x525761['type']['split'](':'),_0x24bcd4=this['_suggestions']['get'](_0xfaeec8)||this['_createSuggestion'](_0x288d82,_0x20d47e,_0xfaeec8,_0x26cb8b,_0x460153,_0x4ae04b);if(this['_addThreadToSuggestion'](_0x24bcd4),this['_checkSuggestionCorrectness'](_0x24bcd4,_0x288d82,_0x20d47e||null,_0x26cb8b),_0x24bcd4['createdAt']=_0x525761['createdAt'],_0x24bcd4['_isDataLoaded']=!0x0,_0x460153&&_0x460153['@external']){const _0x2b7e18=_0x460153['@external'],_0x3ce7ff=this['_getExternalAuthor'](_0x2b7e18['authorName']);_0x24bcd4['authoredAt']=_0x2b7e18['createdAt'],_0x24bcd4['author']=_0x3ce7ff,_0x24bcd4['isExternal']=!0x0;}else _0x24bcd4['authoredAt']=_0x525761['createdAt'];switch(_0x525761['data']&&(_0x24bcd4['data']=_0x525761['data']),_0x525761['attributes']&&(_0x24bcd4['attributes']=_0x525761['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x24bcd4['_saved']=!0x0),this['_suggestionState']['get'](_0x24bcd4)){case'notReady':this['_suggestionState']['set'](_0x24bcd4,'dataReady');break;case'markerReady':_0x24bcd4['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x24bcd4])),this['_refreshSuggestionsChain'](new Set([_0x24bcd4])),this['_suggestionState']['set'](_0x24bcd4,'ready'),this['fire']('suggestionLoaded',_0x24bcd4)):this['_suggestionState']['set'](_0x24bcd4,'removed');}return _0x24bcd4;}['acceptSuggestion'](_0x43c614){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x26d871 of _0x43c614['getAllAdjacentSuggestions']())_0x26d871['accept']();});});}['discardSuggestion'](_0x28c0dc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xda6644 of _0x28c0dc['getAllAdjacentSuggestions']())_0xda6644['discard']();});});}['enableCommand'](_0x42dbf9,_0x14eb1e){const _0xc22af4=this['editor']['commands']['get'](_0x42dbf9);if(!_0xc22af4)throw new _0x15afa0('track-changes-command-not-found',this,{'commandName':_0x42dbf9});if(this['_enabledCommands']['has'](_0xc22af4))throw new _0x15afa0('track-changes-enable-command-twice',this,{'commandName':_0x42dbf9});this['_enabledCommands']['add'](_0xc22af4),_0x14eb1e&&_0xc22af4['on']('execute',(_0x17958b,_0x5c7722)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5c7722['length']>0x0&&_0x5c7722[_0x5c7722['length']-0x1]&&_0x5c7722[_0x5c7722['length']-0x1]['forceDefaultExecution']?_0x5c7722['pop']():(_0x17958b['return']=_0x14eb1e((..._0x18821f)=>_0xc22af4['execute'](..._0x18821f,{'forceDefaultExecution':!0x0}),..._0x5c7722),_0x17958b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x178325){let _0x403157,_0xa9083f;const _0x3d54b9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x403157=_0x178325();}catch(_0x4489c4){_0xa9083f=_0x4489c4;}return _0x3d54b9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xa9083f&&_0x15afa0['rethrowUnexpectedError'](_0xa9083f,this),_0x403157;}['markInsertion'](_0xbb386d,_0x549080=null,_0x5ceec3={}){if(_0xbb386d['isCollapsed'])return null;const _0x21e0d1=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5ceec3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4022ed,meta:_0x52d982}of this['_findSuggestions'](_0xbb386d,'insertion'))if(_0x52d982['isOwn']){if(!_0x52d982['isNextTo']){if(_0x52d982['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x4022ed,_0x5ceec3))continue;return _0x4022ed;}if(Xt(_0x4022ed,_0x5ceec3))return _0x4022ed;this['_breakSuggestionMarker'](_0x4022ed,_0xbb386d['start'],_0xbb386d['end']);break;}if(_0x549080==_0x4022ed['subType']&&Xt(_0x4022ed,_0x5ceec3)){const _0x184494=_0x4022ed['getFirstRange']();return _0x184494['start']['isEqual'](_0xbb386d['end'])?this['_setSuggestionRange'](_0x4022ed,this['_model']['createRange'](_0xbb386d['start'],_0x184494['end'])):this['_setSuggestionRange'](_0x4022ed,this['_model']['createRange'](_0x184494['start'],_0xbb386d['end'])),_0x4022ed;}}const _0x501ede=_0x36e858(),_0x2156cf=_0x21e0d1['id'],_0x18b498=_0x549080?'insertion:'+_0x549080:'insertion',_0x2a4682=this['_setSuggestionData']({'id':_0x501ede,'type':_0x18b498,'createdAt':new Date(),'authorId':_0x2156cf,'attributes':_0x5ceec3});return this['_addSuggestionMarker'](_0x18b498,_0x501ede,_0x2156cf,_0xbb386d),_0x2a4682;}['markMultiRangeInsertion'](_0x33e51e,_0x48a141='multi',_0x4cfbc1={}){const _0x55c92e=this['editor']['plugins']['get']('Users')['me'],_0x2834f8=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x48a141,'join');this['_trackingSessionId']&&(_0x4cfbc1['trackingSessionId']=this['_trackingSessionId']);for(const _0xd90ad5 of this['getSuggestions']())if(_0xd90ad5['author']['id']==_0x55c92e['id']&&'insertion'==_0xd90ad5['type']&&_0xd90ad5['subType']==_0x48a141&&Xt(_0xd90ad5,_0x4cfbc1)&&(_0x2834f8(_0xd90ad5['getRanges'](),_0x33e51e)||_0x2834f8(_0x33e51e,_0xd90ad5['getRanges']()))){for(const _0x41a930 of _0x33e51e)_0xd90ad5['addRange'](_0x41a930);return _0xd90ad5;}for(const {suggestion:_0x39d682,meta:_0x4910f3}of this['_findSuggestions'](_0x33e51e,'insertion')){if(!_0x4910f3['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4910f3['containsRangeInObject'])continue;if(!Xt(_0x39d682,_0x4cfbc1))continue;let _0xc71efe=!0x0;for(const _0x219ad4 of _0x39d682['getRanges']())for(const _0x413a8e of _0x33e51e)if(!_0x219ad4['containsRange'](_0x413a8e)){_0xc71efe=!0x1;break;}if(_0xc71efe)return _0x39d682;}const _0x312872=_0x36e858(),_0x55bb66=_0x55c92e['id'],_0x12eba0='insertion:'+_0x48a141,_0x3a8b2c=this['_setSuggestionData']({'id':_0x312872,'type':_0x12eba0,'createdAt':new Date(),'authorId':_0x55bb66,'attributes':_0x4cfbc1});for(const _0x105e0b of _0x33e51e)this['_addSuggestionMarker'](_0x12eba0,_0x312872,_0x55bb66,_0x105e0b,o['getMultiRangeId']());return _0x3a8b2c;}['markInlineFormat'](_0xa9be19,_0x43a10b,_0x4b4c52=null,_0x195b20={}){if(_0x4b4c52=_0x4b4c52||Kt(_0x43a10b),_0xa9be19['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x195b20['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x8aff0e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b4c52,'accept');return this['forceDefaultExecution'](()=>_0x8aff0e([_0xa9be19],_0x43a10b,_0x195b20)),null;}const _0x1b81e5=this['editor']['plugins']['get']('Users')['me'],_0x5e173e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2bb93c,meta:_0x431990}of this['_findSuggestions'](_0xa9be19,'insertion'))_0x431990['isOwn']&&!_0x431990['isInsideObject']&&_0x5e173e['push'](..._0x2bb93c['getRanges']());}const _0x32429e=function(_0x575c42,_0x3f9f11){const _0x182a3a=[];for(const _0x153b33 of _0x3f9f11){const _0x2f7338=_0x575c42['getIntersection'](_0x153b33);_0x2f7338&&_0x182a3a['push'](_0x2f7338);}return _0x182a3a;}(_0xa9be19,_0x5e173e),_0x4d3517=function(_0x48665d,_0x183f95){const _0x1e5f3a=[_0x48665d];for(const _0x2488c9 of _0x183f95){let _0x1e4cf9=0x0;for(;_0x1e4cf9<_0x1e5f3a['length'];){const _0x3101b5=_0x1e5f3a[_0x1e4cf9]['getDifference'](_0x2488c9);_0x1e5f3a['splice'](_0x1e4cf9,0x1,..._0x3101b5),_0x1e4cf9+=_0x3101b5['length'];}}return _0x1e5f3a;}(_0xa9be19,_0x5e173e);_0x32429e['length']&&this['_model']['change'](()=>{for(const _0x5797fb of _0x32429e){const _0x2db626=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b4c52,'accept');this['forceDefaultExecution'](()=>_0x2db626([_0x5797fb],_0x43a10b,_0x195b20));}});for(const _0x23f995 of _0x4d3517){let _0x2b3889=null,_0x2dd217=_0x23f995['start'],_0x926415=_0x23f995['end'];for(const {suggestion:_0x3d04b6,meta:_0x201fcb}of this['_findSuggestions'](_0x23f995,'formatInline')){if(!_0x201fcb['isOwn'])continue;if(_0x3d04b6['subType']!=_0x4b4c52)continue;if(!Xt(_0x3d04b6,_0x195b20))continue;const _0x4a0ce3=_0x3d04b6['getFirstRange']();if(_0x4a0ce3['containsRange'](_0x23f995,!0x0))return null;_0x2dd217=_0x2dd217['isBefore'](_0x4a0ce3['start'])?_0x2dd217:_0x4a0ce3['start'],_0x926415=_0x926415['isAfter'](_0x4a0ce3['end'])?_0x926415:_0x4a0ce3['end'],_0x2b3889?_0x4a0ce3['start']['isBefore'](_0x2b3889['getFirstRange']()['start'])?(_0x2b3889['removeMarkers'](),_0x2b3889=_0x3d04b6):_0x3d04b6['removeMarkers']():_0x2b3889=_0x3d04b6;}const _0xdf4337=this['_model']['createRange'](_0x2dd217,_0x926415);if(_0x2b3889)this['_setSuggestionRange'](_0x2b3889,_0xdf4337);else{const _0x3d9d70=_0x36e858(),_0x1de483=_0x1b81e5['id'];this['_setSuggestionData']({'id':_0x3d9d70,'type':'formatInline:'+_0x4b4c52,'data':_0x43a10b,'createdAt':new Date(),'authorId':_0x1de483,'attributes':_0x195b20}),this['_addSuggestionMarker']('formatInline:'+_0x4b4c52,_0x3d9d70,_0x1de483,_0xdf4337);}}return null;}['markBlockFormat'](_0x45de9d,_0x459df1,_0x18bfd3=[],_0x4de64b=null,_0x3fd842={}){_0x459df1['formatGroupId']||(_0x459df1['formatGroupId']=_0x459df1['commandName']),_0x459df1['multipleBlocks']=_0x45de9d['is']('range'),_0x4de64b=_0x4de64b||Kt(_0x459df1);const _0xa03e62=_0x18bfd3['map'](_0x488b33=>zt(_0x488b33,this['_model'])),_0x2ce7fd=_0x45de9d['is']('range')?_0x45de9d:zt(_0x45de9d,this['_model']);if(this['_trackingSessionId']&&(_0x3fd842['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4e9b32=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4de64b,'accept');return this['forceDefaultExecution'](()=>_0x4e9b32([_0x2ce7fd],_0x459df1,_0x3fd842)),null;}_0xa03e62['push'](_0x2ce7fd);let _0x991140=!0x0;for(const _0x269066 of _0xa03e62)if(!this['_rangeIsInLocalUserInsertion'](_0x269066)){_0x991140=!0x1;break;}if(_0x991140&&'always'!==this['_trackFormatChanges']){const _0x5e0420=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4de64b,'accept');return this['forceDefaultExecution'](()=>_0x5e0420([_0x2ce7fd],_0x459df1,_0x3fd842)),null;}let _0x198c8e=null,_0x3c4687=_0x2ce7fd['start'],_0x23bc46=_0x2ce7fd['end'];for(const {suggestion:_0x55d73e,meta:_0x174712}of this['_findSuggestions'](_0x2ce7fd,'formatBlock')){if(!_0x174712['isOwn'])continue;if(_0x174712['isNextTo']||_0x174712['containsRangeInObject']||_0x174712['isInsideObject'])continue;if(_0x55d73e['data']['formatGroupId']!=_0x459df1['formatGroupId'])continue;if(!Xt(_0x55d73e,_0x3fd842))continue;const _0x3d798f=_0x55d73e['getFirstRange']();if(_0x55d73e['subType']==_0x4de64b){if(_0x3d798f['containsRange'](_0x2ce7fd,!0x0))return null;_0x3c4687=_0x3c4687['isBefore'](_0x3d798f['start'])?_0x3c4687:_0x3d798f['start'],_0x23bc46=_0x23bc46['isAfter'](_0x3d798f['end'])?_0x23bc46:_0x3d798f['end'],_0x198c8e?_0x3d798f['start']['isBefore'](_0x198c8e['getFirstRange']()['start'])?(_0x198c8e['removeMarkers'](),_0x198c8e=_0x55d73e):_0x55d73e['removeMarkers']():_0x198c8e=_0x55d73e;}else{const _0x7e9ccc=_0x2ce7fd['getIntersection'](_0x3d798f);this['_cutOutSuggestionMarker'](_0x55d73e,_0x7e9ccc);}}const _0x4e7bbe=this['editor']['plugins']['get']('Users')['me'],_0x138a30=_0x36e858(),_0x1c0e6b=_0x4e7bbe['id'];if(_0x198c8e)return this['_setSuggestionRange'](_0x198c8e,this['_model']['createRange'](_0x3c4687,_0x23bc46)),_0x198c8e;{const _0x10d228=this['_setSuggestionData']({'id':_0x138a30,'type':'formatBlock:'+_0x4de64b,'data':_0x459df1,'createdAt':new Date(),'authorId':_0x1c0e6b,'attributes':_0x3fd842});return this['_addSuggestionMarker']('formatBlock:'+_0x4de64b,_0x138a30,_0x1c0e6b,this['_model']['createRange'](_0x3c4687,_0x23bc46)),_0x10d228;}}['markMultiRangeBlockFormat'](_0x50b1ca,_0x17b2e5,_0x1ce34c=[],_0x14d45c=null,_0x14676e={}){_0x17b2e5['formatGroupId']||(_0x17b2e5['formatGroupId']=_0x17b2e5['commandName']);const _0x1fe56c=_0x50b1ca[0x0];_0x17b2e5['multipleBlocks']=_0x1fe56c['is']('range'),_0x14d45c=_0x14d45c||Kt(_0x17b2e5);const _0x194382=_0x1ce34c['map'](_0x2fd8f8=>zt(_0x2fd8f8,this['_model'])),_0x2400e2=_0x1fe56c['is']('range')?_0x50b1ca:_0x50b1ca['map'](_0x2b15a8=>zt(_0x2b15a8,this['_model']));if(this['_trackingSessionId']&&(_0x14676e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3ab26a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x14d45c,'accept');return this['forceDefaultExecution'](()=>_0x3ab26a(_0x2400e2,_0x17b2e5,_0x14676e)),null;}_0x194382['push'](..._0x2400e2);let _0x341dc6=!0x0;for(const _0x3962ac of _0x194382)if(!this['_rangeIsInLocalUserInsertion'](_0x3962ac)){_0x341dc6=!0x1;break;}if(_0x341dc6&&'always'!==this['_trackFormatChanges']){const _0x540528=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x14d45c,'accept');return this['forceDefaultExecution'](()=>_0x540528(_0x2400e2,_0x17b2e5,_0x14676e)),null;}const _0x25beba=this['editor']['plugins']['get']('Users')['me'];for(const _0x263064 of this['getSuggestions']()){if(_0x263064['author']['id']!=_0x25beba['id'])continue;if('formatBlock'!=_0x263064['type']||_0x263064['data']['formatGroupId']!=_0x17b2e5['formatGroupId'])continue;if(!Xt(_0x263064,_0x14676e))continue;const _0xcd839e=_0x263064['subType']==_0x14d45c;for(let _0x2f5917=0x0;_0x2f5917<_0x2400e2['length'];_0x2f5917++){const _0x4a5531=_0x2400e2[_0x2f5917];for(const _0x2ffa6b of _0x263064['getMarkers']()){const _0x5528f0=_0x2ffa6b['getRange']();if(_0x4a5531['isEqual'](_0x5528f0)){_0xcd839e?(_0x2400e2['splice'](_0x2f5917,0x1),_0x2f5917--):_0x263064['removeMarker'](_0x2ffa6b['name']);break;}}}}if(0x0==_0x2400e2['length'])return null;const _0x3ca9a7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x14d45c,'join');for(const _0x1e3d59 of this['getSuggestions']())if(_0x1e3d59['author']['id']==_0x25beba['id']&&'formatBlock'==_0x1e3d59['type']&&_0x1e3d59['data']['formatGroupId']==_0x17b2e5['formatGroupId']&&_0x1e3d59['subType']==_0x14d45c&&Xt(_0x1e3d59,_0x14676e)&&(_0x3ca9a7(_0x1e3d59['getRanges'](),_0x2400e2)||_0x3ca9a7(_0x2400e2,_0x1e3d59['getRanges']()))){for(const _0xdd3c98 of _0x2400e2)_0x1e3d59['addRange'](_0xdd3c98);return _0x1e3d59;}const _0x35bd23=_0x36e858(),_0x593e59=_0x25beba['id'],_0x353272='formatBlock:'+_0x14d45c,_0x53e96c=this['_setSuggestionData']({'id':_0x35bd23,'type':_0x353272,'data':_0x17b2e5,'createdAt':new Date(),'authorId':_0x593e59,'attributes':_0x14676e});for(const _0x16d3b0 of _0x2400e2)this['_addSuggestionMarker'](_0x353272,_0x35bd23,_0x593e59,_0x16d3b0,o['getMultiRangeId']());return _0x53e96c;}['markDeletion'](_0x12f5a5,_0x4c43d6=null,_0x5b339a={}){if(_0x12f5a5['isCollapsed'])return null;const _0x456a07=this['editor']['plugins']['get']('Users')['me'],_0x1ec8cd=new _0x9a9b53(_0x12f5a5['start'],_0x12f5a5['end']);this['_trackingSessionId']&&(_0x5b339a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x237e6e,meta:_0x3354fe}of this['_findSuggestions'](_0x1ec8cd,'insertion'))if(_0x3354fe['isOwn']&&!_0x3354fe['isNextTo']){if(_0x237e6e['isMultiRange']){const _0x1034ea=_0x237e6e['getRanges']()['filter'](_0x393dcd=>'$graveyard'!=_0x393dcd['root']['rootName']);_0x1034ea['every'](_0x22ccb2=>_0x1ec8cd['containsRange'](_0x22ccb2,!0x0))&&_0x237e6e['discard']();if(_0x1034ea['some'](_0x460da5=>_0x460da5['containsRange'](_0x1ec8cd,!0x0))){const _0x179598=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4c43d6,'accept');return this['forceDefaultExecution'](()=>_0x179598([_0x1ec8cd],null,_0x5b339a)),null;}}else{const _0x1d0d0b=_0x1ec8cd['getIntersection'](_0x237e6e['getFirstRange']());null!==_0x1d0d0b&&_0x237e6e['_onDiscard']([_0x1d0d0b],null,_0x5b339a);}}if(_0x1ec8cd['detach'](),_0x1ec8cd['isCollapsed']||'$graveyard'==_0x1ec8cd['root']['rootName'])return null;let _0x4caad6=null,_0x28ef3d=_0x1ec8cd['start'],_0x14121c=_0x1ec8cd['end'];const _0x4433c4=this['_findSuggestions'](_0x1ec8cd,'deletion');for(const {suggestion:_0x1f146d,meta:_0x53ee52}of _0x4433c4){const _0x2d57c9=this['_model']['createRange'](_0x28ef3d,_0x14121c);if(_0x53ee52['isOwn']&&(this['_mergeNestedSuggestions']||!_0x53ee52['containsRangeInObject']&&!_0x53ee52['isInsideObject'])){if(_0x1f146d['isMultiRange']){if(!Xt(_0x1f146d,_0x5b339a))continue;let _0x43d5f6=!0x0;for(const _0x2ee7d2 of _0x1f146d['getRanges']()){if(_0x2ee7d2['containsRange'](_0x2d57c9,!0x0))return _0x1f146d;_0x2d57c9['containsRange'](_0x2ee7d2)||(_0x43d5f6=!0x1);}_0x43d5f6&&_0x1f146d['discard']();}else{const _0x77ec3f=_0x1f146d['getFirstRange']();if(_0x77ec3f['containsRange'](_0x2d57c9,!0x0))return _0x1f146d;if(!Xt(_0x1f146d,_0x5b339a)){_0x2d57c9['containsRange'](_0x77ec3f)?_0x1f146d['removeMarkers']():_0x77ec3f['containsPosition'](_0x28ef3d)?_0x28ef3d=_0x77ec3f['end']:_0x77ec3f['containsPosition'](_0x14121c)&&(_0x14121c=_0x77ec3f['start']);continue;}_0x28ef3d=_0x28ef3d['isBefore'](_0x77ec3f['start'])?_0x28ef3d:_0x77ec3f['start'],_0x14121c=_0x14121c['isAfter'](_0x77ec3f['end'])?_0x14121c:_0x77ec3f['end'],_0x5b339a=Object['assign']({},_0x1f146d['attributes']),_0x4caad6?_0x77ec3f['start']['isBefore'](_0x4caad6['getFirstRange']()['start'])?(_0x4caad6['removeMarkers'](),_0x4caad6=_0x1f146d):_0x1f146d['removeMarkers']():_0x4caad6=_0x1f146d;}}}if(_0x4caad6)return this['_setSuggestionRange'](_0x4caad6,this['_model']['createRange'](_0x28ef3d,_0x14121c)),_0x4caad6;{const _0x3a23b0=_0x36e858(),_0x5e3c20=this['_model']['createRange'](_0x28ef3d,_0x14121c),_0xa865f2=_0x456a07['id'],_0x497e59=_0x4c43d6?'deletion:'+_0x4c43d6:'deletion',_0xcbcdb6=this['_setSuggestionData']({'id':_0x3a23b0,'type':_0x497e59,'createdAt':new Date(),'authorId':_0xa865f2,'attributes':_0x5b339a});return this['_addSuggestionMarker'](_0x497e59,_0x3a23b0,_0xa865f2,_0x5e3c20),_0xcbcdb6;}}['markMultiRangeDeletion'](_0x5eeb55,_0x4a26fa='multi',_0x503489={}){const _0x5aa247=this['editor']['plugins']['get']('Users')['me'],_0x2874d6=_0x5eeb55['map'](_0x1e0cd6=>new _0x9a9b53(_0x1e0cd6['start'],_0x1e0cd6['end'])),_0x2f46a2=new Set();this['_trackingSessionId']&&(_0x503489['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2717ab,meta:_0x44c78f}of this['_findSuggestions'](_0x2874d6,'insertion'))_0x44c78f['isOwn']&&!_0x44c78f['isNextTo']&&_0x2f46a2['add'](_0x2717ab);for(const _0x103856 of _0x2f46a2)if(_0x103856['isMultiRange']){const _0x496804=_0x103856['getRanges']();(!_0x103856['attributes']||!_0x103856['attributes']['skipNestingCheck'])&&(_0x496804['every'](_0x320d6a=>_0x2874d6['some'](_0x2976f9=>_0x2976f9['containsRange'](_0x320d6a,!0x0)))&&_0x103856['discard']());if(_0x2874d6['every'](_0xa24c04=>_0x496804['some'](_0x2c7155=>_0x2c7155['containsRange'](_0xa24c04,!0x0)))){const _0x1278ec=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a26fa,'accept');return this['forceDefaultExecution'](()=>_0x1278ec(_0x5eeb55,null,_0x503489)),null;}}else{const _0x19095a=_0x103856['getFirstRange']();_0x2874d6['some'](_0x45997=>_0x45997['containsRange'](_0x19095a,!0x0))&&_0x103856['discard']();if(_0x2874d6['every'](_0x1723d3=>_0x19095a['containsRange'](_0x1723d3,!0x0))){const _0x576c3d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a26fa,'accept');return this['forceDefaultExecution'](()=>_0x576c3d(_0x2874d6,null,_0x503489)),null;}}const _0x2c59dd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a26fa,'join');let _0x571eef=null;for(const _0x2f4d1e of this['getSuggestions']())if(_0x2f4d1e['author']['id']==_0x5aa247['id']&&_0x2f4d1e['isInContent']&&'deletion'==_0x2f4d1e['type']&&_0x2f4d1e['subType']==_0x4a26fa&&Xt(_0x2f4d1e,_0x503489)&&(_0x2c59dd(_0x2f4d1e['getRanges'](),_0x2874d6)||_0x2c59dd(_0x2874d6,_0x2f4d1e['getRanges']()))){if(_0x571eef){if(_0x2f4d1e['commentThread']&&_0x2f4d1e['commentThread']['length'])continue;for(const _0x25531e of _0x2f4d1e['getRanges']())_0x571eef['isIntersectingWithRange'](_0x25531e)||_0x571eef['addRange'](_0x25531e);_0x2f4d1e['removeMarkers']();}else{_0x571eef=_0x2f4d1e;for(const _0x359668 of _0x2874d6)_0x2f4d1e['isIntersectingWithRange'](_0x359668)||_0x2f4d1e['addRange'](_0x359668);}}if(_0x571eef)return _0x571eef;_0x2f46a2['clear']();for(const {suggestion:_0x4f9856,meta:_0x4929fa}of this['_findSuggestions'](_0x2874d6,'deletion'))_0x4929fa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4929fa['containsRangeInObject']&&!_0x4929fa['isInsideObject'])&&Xt(_0x4f9856,_0x503489)&&_0x2f46a2['add'](_0x4f9856);for(const _0x459d5a of _0x2f46a2){const _0x31bbb9=_0x459d5a['getRanges']();if(!_0x503489||!_0x503489['skipNestingCheck']){if(_0x2874d6['every'](_0x1befea=>_0x31bbb9['some'](_0x525585=>_0x525585['containsRange'](_0x1befea,!0x0))))return _0x459d5a;}(!_0x459d5a['attributes']||!_0x459d5a['attributes']['skipNestingCheck'])&&(_0x31bbb9['every'](_0x617e27=>_0x2874d6['some'](_0x3c9aa4=>_0x3c9aa4['containsRange'](_0x617e27,!0x0)))&&_0x459d5a['discard']());}const _0x26c091=_0x36e858(),_0x2d8e75=_0x5aa247['id'],_0x5bc248='deletion:'+_0x4a26fa,_0x8ad0cb=this['_setSuggestionData']({'id':_0x26c091,'type':_0x5bc248,'createdAt':new Date(),'authorId':_0x2d8e75,'attributes':_0x503489});for(const _0x8c18b5 of _0x2874d6)_0x8c18b5['detach'](),_0x8c18b5['isCollapsed']||'$graveyard'==_0x8c18b5['root']['rootName']||this['_addSuggestionMarker'](_0x5bc248,_0x26c091,_0x2d8e75,_0x8c18b5,o['getMultiRangeId']());return _0x8ad0cb;}['markAttributeChange'](_0x189a21,_0x43e30e,_0x126e2d,_0x4b3b37,_0x3e022f){if(_0x189a21['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3100ee=this['editor']['plugins']['get']('Users')['me']['id'],_0x577d61=Array['from'](this['_suggestions']['values']())['filter'](_0x21a0e4=>'attribute'==_0x21a0e4['type']&&_0x21a0e4['data']['key']==_0x43e30e&&_0x21a0e4['isIntersectingWithRange'](_0x189a21));if(this['_trackingSessionId']&&(_0x3e022f['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x14837d=this['_findSuggestions'](_0x189a21,'insertion')['filter'](({meta:_0x4c6447})=>_0x4c6447['isOwn']&&!_0x4c6447['isInsideObject']&&!_0x4c6447['isNextTo'])['map'](({suggestion:_0x3f05f5})=>_0x3f05f5);_0x577d61['unshift'](..._0x14837d);}const _0x17b485=new Map([[_0x189a21,_0x126e2d]]);for(const _0x205135 of _0x577d61){const _0x2a3baf='attribute'==_0x205135['type']?_0x205135['data']['oldValue']:void 0x0,_0x22f05f=_0x205135['getFirstRange'](),_0x3d8935=Array['from'](_0x17b485['keys']())['find'](_0x5eb9db=>_0x5eb9db['isIntersecting'](_0x22f05f));if(!_0x3d8935)continue;const _0x1ce3b5=_0x3d8935['getDifference'](_0x22f05f);this['_isBlockAttribute'](_0x43e30e)&&'insertion'==_0x205135['type']&&0x0!=_0x1ce3b5['length']||(_0x17b485['delete'](_0x3d8935),_0x1ce3b5['forEach'](_0x52b8da=>{_0x17b485['set'](_0x52b8da,_0x126e2d);}),'insertion'!=_0x205135['type']&&_0x2a3baf!=_0x4b3b37&&_0x17b485['set'](_0x3d8935['getIntersection'](_0x22f05f),_0x2a3baf));}const _0x2ae66d=[];for(const [_0x52bab7,_0x179567]of _0x17b485){const _0x5cbaa4=_0x36e858(),_0x34470e={'key':_0x43e30e,'oldValue':_0x179567,'newValue':_0x4b3b37};_0x43e30e['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':_0x43e30e});const _0x336f80=('attribute:'+(_0x43e30e+'|'+Kt({'newValue':_0x4b3b37})))['substring'](0x0,0x3c),_0x6e6e57=this['_setSuggestionData']({'id':_0x5cbaa4,'type':_0x336f80,'data':_0x34470e,'createdAt':new Date(),'authorId':_0x3100ee,'attributes':_0x3e022f});_0x2ae66d['push'](_0x6e6e57),this['_addSuggestionMarker'](_0x336f80,_0x5cbaa4,_0x3100ee,_0x52bab7);}return _0x2ae66d;}['enableDefaultAttributesIntegration'](_0x4b534b){this['enableCommand'](_0x4b534b,(_0x192b9d,..._0x5343de)=>{this['_recordAttributeChanges'](()=>{_0x192b9d(..._0x5343de);});});}['registerBlockAttribute'](_0x1f8c6e){this['_blockAttributeKeys']['add'](_0x1f8c6e);}['registerInlineAttribute'](_0x26bd24){this['_inlineAttributeKeys']['add'](_0x26bd24);}['startTrackingSession'](_0x48d44d){return this['_trackingSessionId']=void 0x0!==_0x48d44d?_0x48d44d:_0x36e858(),this['_trackingSessionId'];}['_getAttributeKey'](_0xc2de09){return'attribute'==_0xc2de09['type']?_0xc2de09['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x480b13,_0x3fe626){const _0x20bfb1=_0x480b13['getFirstMarker']();this['_model']['change'](_0xfab23f=>{_0xfab23f['updateMarker'](_0x20bfb1,{'range':_0x3fe626});});}['_addThreadToSuggestion'](_0x413a28){const _0x7c943f=_0x413a28['id'],_0x2ccfc6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x7c943f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2ccfc6,'threadId':_0x7c943f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5b033f=this['_commentsRepository']['getCommentThread'](_0x7c943f);_0x5b033f['unbind']('isRemovable'),_0x5b033f['isRemovable']=!0x1,_0x413a28['commentThread']=_0x5b033f;}['_checkSuggestionCorrectness'](_0x18aa04,_0x3d8317,_0x569749,_0x19d94e){if(_0x18aa04['type']!=_0x3d8317||_0x18aa04['subType']!=_0x569749||_0x18aa04['creator']['id']!=_0x19d94e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x15afa0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x385a5,_0x29b879){const _0x52a745=_0x385a5['getFirstRange']();if(_0x29b879['isEqual'](_0x52a745))_0x385a5['removeMarkers']();else{if(_0x52a745['containsRange'](_0x29b879)){const _0x590850=this['_model']['createPositionAt'](_0x29b879['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x385a5,this['_model']['createRange'](_0x52a745['start'],_0x590850));const _0x14fa3d=_0x36e858(),_0x4f1d8a=_0x385a5['creator']['id'],_0x65db83=_0x385a5['type']+':'+_0x385a5['subType'];this['_setSuggestionData']({'id':_0x14fa3d,'type':_0x65db83,'createdAt':new Date(),'authorId':_0x4f1d8a,'data':_0x385a5['data'],'attributes':_0x385a5['attributes']});const _0xde050a=this['_model']['createPositionAt'](_0x29b879['end']['parent'],'after'),_0x40296a=this['_model']['createRange'](_0xde050a,_0x52a745['end']);this['_addSuggestionMarker'](_0x65db83,_0x14fa3d,_0x4f1d8a,_0x40296a);}else{if(_0x52a745['containsPosition'](_0x29b879['start'])){const _0x1bb458=this['_model']['createPositionAt'](_0x29b879['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x385a5,this['_model']['createRange'](_0x52a745['start'],_0x1bb458));}else{const _0x1dfb65=this['_model']['createPositionAt'](_0x29b879['end']['parent'],'after');this['_setSuggestionRange'](_0x385a5,this['_model']['createRange'](_0x1dfb65,_0x52a745['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x39132d){for(const {suggestion:_0x93be85,meta:_0x3047f9}of this['_findSuggestions'](_0x39132d,'insertion')){if(!_0x3047f9['isOwn'])continue;const _0xe52df8=_0x93be85['getRanges']();for(const _0x1f5cc3 of _0xe52df8)if(!_0x39132d['getDifference'](_0x1f5cc3)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x121383){const _0x4cb9ff=this['editor']['plugins']['get']('Users')['getUser'](_0x121383);if(!_0x4cb9ff)throw new _0x15afa0('track-changes-user-not-found',this);return _0x4cb9ff;}['_getExternalAuthor'](_0x1272eb){const _0x3a4417=this['editor']['plugins']['get']('Users'),_0x59a955=_0x1bff51('external:'+_0x1272eb),_0x3bfa3c=_0x3a4417['getUser'](_0x59a955);return _0x3bfa3c||_0x3a4417['addUser']({'id':_0x59a955,'name':_0x1272eb});}['_createSuggestion'](_0x5d16fc,_0x18545d,_0x3df355,_0x14dc58,_0xec9d70,_0x386ab1){const _0x21b3c0=this['_getAuthorFromId'](_0x14dc58),_0x4cc958=this['_suggestionFactory']['buildSuggestion'](_0x5d16fc,_0x18545d,_0x3df355,_0x21b3c0,_0xec9d70,_0x398738=>{this['_updateSuggestionData'](_0x3df355,{'attributes':_0x398738});const _0xa82b9a=this['getSuggestion'](_0x3df355);this['_joinWithAdjacentSuggestions'](new Set([_0xa82b9a])),this['_refreshSuggestionsChain'](new Set([_0xa82b9a]));},_0x386ab1);return this['listenTo'](_0x4cc958,'accept',()=>{this['_updateSuggestionData'](_0x3df355,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4cc958,'discard',()=>{this['_updateSuggestionData'](_0x3df355,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3df355,_0x4cc958),this['_suggestionState']['set'](_0x4cc958,'notReady'),_0x4cc958;}['_splitMarkerName'](_0x534382){const _0x1bd3b8=_0x534382['split'](':');return{'group':_0x1bd3b8[0x0],'type':_0x1bd3b8[0x1],'subType':_0x1bd3b8['length']>=0x5?_0x1bd3b8[0x2]:null,'id':_0x1bd3b8['length']<0x5?_0x1bd3b8[0x2]:_0x1bd3b8[0x3],'authorId':_0x1bd3b8['length']<0x5?_0x1bd3b8[0x3]:_0x1bd3b8[0x4],'markerCount':0x6==_0x1bd3b8['length']?_0x1bd3b8[0x5]:null};}['_breakSuggestionMarker'](_0x5eece5,_0x487a28,_0x865f1c){const _0x426657=_0x5eece5['getFirstRange'](),_0x11f78a=_0x426657['start'],_0x437cd2=_0x426657['end'];this['_setSuggestionRange'](_0x5eece5,this['_model']['createRange'](_0x11f78a,_0x487a28));const _0x56a0b4=_0x36e858(),_0x51110c=_0x5eece5['creator']['id'],_0x273652=_0x5eece5['type']+(_0x5eece5['subType']?':'+_0x5eece5['subType']:'');this['_setSuggestionData']({'id':_0x56a0b4,'type':_0x273652,'createdAt':new Date(),'authorId':_0x51110c,'originalSuggestionId':_0x5eece5['_originalSuggestionId']||_0x5eece5['id'],'attributes':_0x5eece5['attributes'],'data':_0x5eece5['data']});const _0xf3ae16=this['_getAttributeKey'](_0x5eece5);('formatBlock'==_0x5eece5['type']||_0xf3ae16&&this['_isBlockAttribute'](_0xf3ae16))&&(_0x865f1c=this['_model']['createPositionBefore'](_0x865f1c['parent'])),this['_addSuggestionMarker'](_0x273652,_0x56a0b4,_0x51110c,this['_model']['createRange'](_0x865f1c,_0x437cd2));}['_findSuggestions'](_0x3c4329,_0x1ee239=null){const _0x31d9d4=[],_0x5aed91=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3c4329)||(_0x3c4329=[_0x3c4329]);for(const _0x3a9c52 of this['getSuggestions']()){if(!_0x3a9c52['isInContent'])continue;if(_0x1ee239&&_0x3a9c52['type']!=_0x1ee239)continue;let _0x5cfbb8=!0x1;for(const _0x21a7e2 of _0x3a9c52['getRanges']()){for(const _0x28292b of _0x3c4329){const _0x40c8bd=_0x28292b['start']['isEqual'](_0x21a7e2['end'])||_0x28292b['end']['isEqual'](_0x21a7e2['start']);if(_0x40c8bd||_0x28292b['getIntersection'](_0x21a7e2)){const _0x31c9ee=_0x28292b['containsRange'](_0x21a7e2)&&Gt(this['_model']['schema'],_0x21a7e2['start'],_0x28292b),_0x410533=_0x21a7e2['containsRange'](_0x28292b)&&Gt(this['_model']['schema'],_0x28292b['start'],_0x21a7e2);_0x31d9d4['push']({'suggestion':_0x3a9c52,'meta':{'isOwn':_0x5aed91==_0x3a9c52['author'],'isNextTo':_0x40c8bd,'isInsideObject':_0x31c9ee,'containsRangeInObject':_0x410533}}),_0x5cfbb8=!0x0;break;}}if(_0x5cfbb8)break;}}return _0x31d9d4;}['_addSuggestionMarker'](_0x13ed8c,_0x33e5f6,_0x55171c,_0x2dedfa,_0x332500){this['_model']['change'](_0x36c988=>{let _0x53e485='suggestion:'+_0x13ed8c+':'+_0x33e5f6+':'+_0x55171c;_0x332500&&(_0x53e485=_0x53e485+':'+_0x332500),_0x36c988['addMarker'](_0x53e485,{'range':_0x2dedfa,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x26611a){const _0x2fa110=_0x26611a['previous'],_0x2223d1=_0x26611a['next'];_0x26611a['previous']=null,_0x26611a['next']=null,null!=_0x2fa110&&_0x2fa110['next']==_0x26611a&&(_0x2fa110['next']=_0x2223d1),null!=_0x2223d1&&_0x2223d1['previous']==_0x26611a&&(_0x2223d1['previous']=_0x2fa110),'ready'==this['_suggestionState']['get'](_0x26611a)&&(this['_suggestionState']['set'](_0x26611a,'removed'),this['fire']('suggestionUnloaded',_0x26611a,_0x2fa110,_0x2223d1));}['_setSuggestionData'](_0x22f5ef){const _0x5b3cec=_0x22f5ef['id'],_0x27c70f=this['addSuggestionData'](_0x22f5ef);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1d823d=this['editor']['plugins']['get']('PendingActions'),_0x40029a=_0x27c70f['hasComments'],_0x3d8fa0=_0x27c70f['subType']?_0x27c70f['type']+':'+_0x27c70f['subType']:_0x27c70f['type'],_0x5f260b=this['editor']['locale'],_0x2218cf=_0x1d823d['add'](c(_0x5f260b,'PENDING_ACTION_SUGGESTION')),_0x570cf2={'id':_0x5b3cec,'type':_0x3d8fa0,'hasComments':_0x40029a,'data':_0x22f5ef['data']||null,'originalSuggestionId':_0x22f5ef['originalSuggestionId']||null,'attributes':_0x27c70f['attributes']};this['_adapter']['addSuggestion'](_0x570cf2)['then'](_0x5635b6=>{_0x27c70f['_saved']=!0x0,_0x1d823d['remove'](_0x2218cf),_0x5635b6&&_0x5635b6['createdAt']&&(this['_suggestions']['get'](_0x5b3cec)['createdAt']=_0x5635b6['createdAt']);})['catch'](_0xc5b776=>{throw _0x458b7f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x27c70f['discard']();}),_0x27c70f['stopListening'](),this['_suggestions']['delete'](_0x27c70f['id']),this['_suggestionState']['delete'](_0x27c70f),_0xc5b776;});}return _0x27c70f;}['_isBlockAttribute'](_0xcddd0b){return this['_blockAttributeKeys']['has'](_0xcddd0b);}['_updateSuggestionData'](_0xa448cb,_0x47a4e9){const _0x5d87ce=this['editor']['plugins']['get']('PendingActions'),_0x14dc88=this['getSuggestion'](_0xa448cb);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x14dc88['_saved']){const _0x3a8b20=_0x5d87ce['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xa448cb,_0x47a4e9)['then'](()=>{_0x5d87ce['remove'](_0x3a8b20);});}else _0x14dc88['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xa448cb,_0x47a4e9);});}}['_getSuggestionData'](_0x3eed7b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x15afa0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3eed7b);}['_handleNewSuggestionMarker'](_0x3a7328){const {id:_0x36ed37,type:_0x4c1481,subType:_0x4fe1b5,authorId:_0x55e9bc}=this['_splitMarkerName'](_0x3a7328),_0x1c1e21=this['_suggestions']['get'](_0x36ed37)||this['_createSuggestion'](_0x4c1481,_0x4fe1b5,_0x36ed37,_0x55e9bc,{});switch(this['_checkSuggestionCorrectness'](_0x1c1e21,_0x4c1481,_0x4fe1b5,_0x55e9bc),this['_suggestionState']['get'](_0x1c1e21)){case'notReady':this['_getSuggestionData'](_0x36ed37)['then'](_0x27a6e1=>{let _0x55d739=Promise['resolve']();_0x27a6e1['hasComments']&&(_0x55d739=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x36ed37})),_0x55d739['then'](()=>{this['addSuggestionData'](_0x27a6e1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1c1e21,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x36ed37,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1c1e21,'ready'),this['fire']('suggestionLoaded',_0x1c1e21);break;case'ready':this['fire']('suggestionChanged',_0x1c1e21);}return _0x1c1e21['addMarkerName'](_0x3a7328),_0x1c1e21;}['_refreshSuggestionsChain'](_0x5d935d){const _0x4d9f14=Array['from'](_0x5d935d),_0x37a0e7=_0x4d9f14['filter'](_0xe7ccb=>'attribute'==_0xe7ccb['type']);this['_refreshAttributeSuggestionsChain'](_0x37a0e7);const _0x30b7be=_0x4d9f14['filter'](_0x184f0e=>!_0x184f0e['isMultiRange']&&'attribute'!=_0x184f0e['type']),_0x29ac90=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x562966=>!_0x562966['isMultiRange']&&'attribute'!=_0x562966['type']),_0xdf00a1=_0x29ac90['filter'](_0x4b21b1=>!_0x5d935d['has'](_0x4b21b1)),_0x3ed9ae=new Map(_0x29ac90['map'](_0x38f7e8=>[_0x38f7e8,this['_suggestionFactory']['getSuggestionCallback'](_0x38f7e8['type'],_0x38f7e8['subType'],'chain')])),_0x495ac3=new Map(_0x29ac90['map'](_0x1790e0=>[_0x1790e0,_0x1790e0['getFirstRange']()])),_0x518c4f=new Set(),_0x17563d=new Set();for(let _0x39bc16=0x0;_0x39bc16<_0x30b7be['length'];_0x39bc16++)_0x9ef12(_0x30b7be[_0x39bc16],_0x30b7be,_0x39bc16+0x1);for(let _0x41a9cf=0x0;_0x41a9cf<_0x30b7be['length'];_0x41a9cf++)_0x9ef12(_0x30b7be[_0x41a9cf],_0xdf00a1,0x0);const _0x1f1aca=new Set();for(let _0x47fd83=0x0;_0x47fd83<_0x30b7be['length'];_0x47fd83++){const _0x21b212=_0x30b7be[_0x47fd83];!_0x17563d['has'](_0x21b212)&&_0x21b212['previous']&&(_0x1f1aca['add'](_0x21b212['previous']),_0x21b212['previous']['next']===_0x21b212&&(_0x21b212['previous']['next']=null),_0x21b212['previous']=null),!_0x518c4f['has'](_0x21b212)&&_0x21b212['next']&&(_0x1f1aca['add'](_0x21b212['next']),_0x21b212['next']['previous']===_0x21b212&&(_0x21b212['next']['previous']=null),_0x21b212['next']=null);}function _0x9ef12(_0x4a3e46,_0x43cbe7,_0x3196d7){for(let _0x2334d5=_0x3196d7;_0x2334d5<_0x43cbe7['length'];_0x2334d5++){const _0x45dc78=_0x4d8fd8(_0x4a3e46,_0x43cbe7[_0x2334d5]);_0x45dc78&&(_0x45dc78[0x0]['next']=_0x45dc78[0x1],_0x45dc78[0x1]['previous']=_0x45dc78[0x0],_0x518c4f['add'](_0x45dc78[0x0]),_0x17563d['add'](_0x45dc78[0x1]));}}function _0x4d8fd8(_0x801c9a,_0x25c30a){if(_0x801c9a['author']['id']!==_0x25c30a['author']['id'])return null;const _0x42fef2=_0x3ed9ae['get'](_0x801c9a)(_0x801c9a,_0x25c30a,_0x495ac3['get'](_0x801c9a),_0x495ac3['get'](_0x25c30a));if(!_0x42fef2)return null;return _0x3ed9ae['get'](_0x25c30a)(_0x801c9a,_0x25c30a,_0x495ac3['get'](_0x801c9a),_0x495ac3['get'](_0x25c30a))?_0x42fef2[0x1]['commentThread']&&_0x42fef2[0x1]['commentThread']['length']?null:_0x42fef2:null;}_0x1f1aca['size']&&this['_refreshSuggestionsChain'](_0x1f1aca);}['_refreshAttributeSuggestionsChain'](_0x3b00fe){if(0x0==_0x3b00fe['length'])return;const _0x2d3d37=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1119a6=>'attribute'==_0x1119a6['type']&&_0x1119a6['_isDataLoaded']),_0x315fc8=[],_0x5d841d=new Map();for(const _0x92968a of _0x2d3d37){const _0x24b486=_0x1bff51(_0x92968a['attributes']);_0x5d841d['has'](_0x24b486)||(_0x5d841d['set'](_0x24b486,_0x315fc8['length']),_0x315fc8['push']([]));const _0x34dca4=_0x5d841d['get'](_0x24b486);_0x315fc8[_0x34dca4]['push'](_0x92968a);}!(function(){_0x315fc8['sort']((_0xd89e6b,_0x16724e)=>{const _0x27d6bd=_0xd89e6b[0x0]['createdAt'],_0xb3e664=_0x16724e[0x0]['createdAt'];return _0x27d6bd==_0xb3e664?_0xd89e6b[0x0]['attributes']['groupId']<_0x16724e[0x0]['attributes']['groupId']?-0x1:0x1:_0x27d6bd<_0xb3e664?-0x1:0x1;});for(const _0x341a20 of _0x315fc8)_0x341a20['sort']((_0x1a31b4,_0x3526df)=>_0x1a31b4['id']<_0x3526df['id']?-0x1:0x1);}());for(let _0x4590cf=0x0;_0x4590cf<_0x315fc8['length'];_0x4590cf++){if(0x0==_0x315fc8[_0x4590cf]['length'])continue;const _0x1babc7=[];for(let _0x4ab7aa=_0x4590cf+0x1;_0x4ab7aa<_0x315fc8['length'];_0x4ab7aa++)0x0!=_0x315fc8[_0x4ab7aa]['length']&&_0x4e4909(_0x315fc8[_0x4590cf],_0x315fc8[_0x4ab7aa])&&_0x1babc7['push'](_0x4ab7aa);for(const _0x1ac17d of _0x1babc7)_0x315fc8[_0x4590cf]=_0x315fc8[_0x4590cf]['concat'](_0x315fc8[_0x1ac17d]),_0x315fc8[_0x1ac17d]=[];}for(const _0x465c38 of _0x315fc8)for(let _0x5b5214=0x0;_0x5b5214<_0x465c38['length'];_0x5b5214++){const _0x489755=_0x465c38[_0x5b5214+0x1]||null;_0x465c38[_0x5b5214]['next']!==_0x489755&&(_0x465c38[_0x5b5214]['next']=_0x489755);}for(const _0x38b0e8 of _0x315fc8)for(let _0x21ac31=0x0;_0x21ac31<_0x38b0e8['length'];_0x21ac31++){const _0x55a33e=_0x38b0e8[_0x21ac31-0x1]||null;_0x38b0e8[_0x21ac31]['previous']!==_0x55a33e&&(_0x38b0e8[_0x21ac31]['previous']=_0x55a33e);}function _0x4e4909(_0x44b9b3,_0x586a88){if(_0x44b9b3[0x0]['attributes']['groupId']!==_0x586a88[0x0]['attributes']['groupId']&&_0x44b9b3[0x0]['author']!==_0x586a88[0x0]['author'])return!0x1;if(!function(_0x3e4677,_0x131b43){if(!_0x3e4677['hasComments']&&!_0x131b43['hasComments'])return!0x0;if(_0x3e4677['hasComments']&&_0x131b43['hasComments'])return!0x1;if(_0x3e4677['hasComments']&&_0x131b43['createdAt']<_0x3e4677['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x131b43['hasComments']&&_0x3e4677['createdAt']<_0x131b43['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x44b9b3[0x0],_0x586a88[0x0]))return!0x1;const _0x3a4a39=Ft(_0x44b9b3[0x0]['attributes'],['groupId','trackingSessionId']),_0x51209c=Ft(_0x586a88[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x315f4f(_0x3a4a39,_0x51209c))return!0x1;if(_0x44b9b3[0x0]['attributes']['groupId']==_0x586a88[0x0]['attributes']['groupId'])return!0x0;if(_0x44b9b3[0x0]['attributes']['trackingSessionId']!==_0x586a88[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x44b9b3['every'](_0x290519=>_0x586a88['some'](_0xc59e32=>_0x290519['getFirstRange']()['isEqual'](_0xc59e32['getFirstRange']())))&&_0x586a88['every'](_0x259f6f=>_0x44b9b3['some'](_0x5638ee=>_0x259f6f['getFirstRange']()['isEqual'](_0x5638ee['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x23e922){const _0x110594=Array['from'](_0x23e922),_0x517b14=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4c77bc=_0x517b14['filter'](_0x1c8b04=>!_0x23e922['has'](_0x1c8b04)),_0x1c8822=new Map(_0x110594['map'](_0x5a446f=>[_0x5a446f,this['_suggestionFactory']['getSuggestionCallback'](_0x5a446f['type'],_0x5a446f['subType'],'join')])),_0xd1b1e1=new Map(_0x517b14['map'](_0x46b38b=>[_0x46b38b,_0x46b38b['getRanges']()]));for(let _0x229f76=0x0;_0x229f76<_0x110594['length'];_0x229f76++){if(_0x30b7c1(this,_0x110594[_0x229f76],_0x110594,_0x229f76+0x1))return!0x0;}for(let _0x3d362d=0x0;_0x3d362d<_0x110594['length'];_0x3d362d++){if(_0x30b7c1(this,_0x110594[_0x3d362d],_0x4c77bc,0x0))return!0x0;}return!0x1;function _0x30b7c1(_0x4e254a,_0x5d22a5,_0x1360e9,_0x37c770){for(let _0xdef964=_0x37c770;_0xdef964<_0x1360e9['length'];_0xdef964++){const _0x49a760=_0x1360e9[_0xdef964];if(_0x49a760['type']!==_0x5d22a5['type']||_0x49a760['author']['id']!==_0x5d22a5['author']['id']||_0x49a760['subType']!==_0x5d22a5['subType'])continue;if(!Qt(_0x5d22a5,_0x49a760))continue;if('attribute'==_0x5d22a5['type']&&_0x5d22a5['data']['oldValue']!=_0x49a760['data']['oldValue'])continue;if('attribute'==_0x5d22a5['type']&&_0x4e254a['_isBlockAttribute'](_0x5d22a5['data']['key']))continue;if('formatBlock'==_0x5d22a5['type']){const _0x204348=_0x4e254a['editor']['model'],_0x3a0941=_0x5d22a5['getContainedElement']();if(_0x3a0941&&(_0x204348['schema']['isObject'](_0x3a0941)||_0x204348['schema']['isLimit'](_0x3a0941)))continue;}const _0x2f289a=_0x1c8822['get'](_0x5d22a5),_0x58938c=_0xd1b1e1['get'](_0x5d22a5),_0x26d496=_0xd1b1e1['get'](_0x49a760),_0x52b955=_0x5d22a5['commentThread']&&_0x5d22a5['commentThread']['length'],_0x2e2b37=_0x49a760['commentThread']&&_0x49a760['commentThread']['length'];if(!_0x52b955&&_0x2f289a(_0x26d496,_0x58938c))return _0x4e254a['_joinSuggestions'](_0x49a760,_0x5d22a5),_0xd1b1e1['delete'](_0x5d22a5),!0x0;if(!_0x2e2b37&&_0x2f289a(_0x58938c,_0x26d496))return _0x4e254a['_joinSuggestions'](_0x5d22a5,_0x49a760),_0xd1b1e1['delete'](_0x49a760),!0x0;}return!0x1;}}['_joinSuggestions'](_0x13996a,_0x1ea0a7){if(_0x13996a['isMultiRange']){for(const _0x2f1b74 of _0x1ea0a7['getRanges']())_0x13996a['addRange'](_0x2f1b74);}else{const _0x3f338e=_0x1ea0a7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x13996a,this['_model']['createRange'](_0x13996a['getFirstRange']()['start'],_0x3f338e));}_0x1ea0a7['removeMarkers']();}['_getMarkerAnnouncementText'](_0x422b89,_0x67e52b,_0x1b6472){const _0x32c59b=_0x422b89['startsWith']('format')||_0x422b89['startsWith']('attribute')?'FORMATTING':_0x422b89['toUpperCase']();return c(this['editor']['locale'],_0x67e52b+'_'+_0x32c59b+'_SUGGESTION_ANNOUNCEMENT',_0x1b6472);}['_initAriaMarkerChangeAnnouncements'](){const _0x4c6995=this['editor'];if(!_0x4c6995['ui'])return;const {ariaLiveAnnouncer:_0x72ae9d}=_0x4c6995['ui'];_0x1008c6(this['_model'],({left:_0x1ceb3e,entered:_0x4816e1})=>{for(const _0x201e3c of _0x1ceb3e){const {group:_0x2e1dd0,type:_0x4959a0}=this['_splitMarkerName'](_0x201e3c['name']);if('suggestion'===_0x2e1dd0){_0x72ae9d['announce'](this['_getMarkerAnnouncementText'](_0x4959a0,'LEAVE'));break;}}for(const _0x2e9aa0 of _0x4816e1){const {group:_0x33bcac,type:_0x2952ac}=this['_splitMarkerName'](_0x2e9aa0['name']);if('suggestion'===_0x33bcac){_0x72ae9d['announce'](this['_getMarkerAnnouncementText'](_0x2952ac,'ENTER',_0x4df9f7(_0x3192cf)));break;}}});}['_processAttributeChanges'](_0x3c11b6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5e8024=this['editor'],_0x5ca953=_0x5e8024['model']['document']['differ']['getChanges']();if(0x0==_0x5ca953['length'])return!0x1;const _0x45d403=[],_0x111be4=_0x5ca953['filter'](_0x74e7d3=>'attribute'==_0x74e7d3['type']),_0x4ae48f=_0x5ca953['filter'](_0x47dce1=>'insert'==_0x47dce1['type']&&'$text'!=_0x47dce1['name']),_0x54be26=_0x5ca953['filter'](_0x1ade14=>'remove'==_0x1ade14['type']&&'$text'!=_0x1ade14['name']);for(const _0x3ae621 of _0x111be4)_0x45d403['push']({'key':_0x3ae621['attributeKey'],'newValue':_0x3ae621['attributeNewValue'],'oldValue':_0x3ae621['attributeOldValue'],'range':qt(_0x3ae621['range'],_0x5e8024['model'])});for(const _0x35a2d4 of _0x4ae48f){const _0x102619=_0x54be26['find'](_0x11e5be=>_0x11e5be['position']['isEqual'](_0x35a2d4['position']));_0x102619&&_0x45d403['push']({'key':u,'newValue':_0x35a2d4['name'],'oldValue':_0x102619['name'],'range':_0x5e8024['model']['createRangeOn'](_0x35a2d4['position']['nodeAfter'])});}return 0x0!=_0x45d403['length']&&this['_reduceExistingSuggestions'](_0x3c11b6,_0x45d403);}['_processAttributeSuggestions'](_0x2a46dc){let _0x4145e1=!0x1;const _0x3ef9be=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4517a1=>_0x4517a1['data']['newRange']&&_0x4517a1['name']['startsWith']('suggestion:attribute:'));for(const _0x735a84 of _0x3ef9be){const {subType:_0x19085e,id:_0x3b84fa}=this['_splitMarkerName'](_0x735a84['name']),_0x4aa1a9=_0x19085e['split']('|')[0x0];for(const _0x3d789f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3d789f['id']!=_0x3b84fa&&'attribute'==_0x3d789f['type']&&_0x3d789f['data']&&_0x3d789f['data']['key']==_0x4aa1a9&&_0x3d789f['getFirstRange']()['isIntersecting'](_0x735a84['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3d789f,_0x735a84['data']['newRange'],_0x2a46dc),_0x4145e1=!0x0);}return _0x4145e1;}['_recordAttributeChanges'](_0x2b749c){this['_recordAttributeSuggestions']=!0x0,_0x2b749c();}['_isRegisteredAttribute'](_0x44dc67){const _0x44135a=this['_isBlockAttribute'](_0x44dc67),_0x3e3d67=this['_inlineAttributeKeys']['has'](_0x44dc67);return _0x44135a||_0x3e3d67;}['_reduceExistingSuggestions'](_0x3c72c4,_0x4067a6){if(0x0==_0x4067a6['length'])return!0x1;let _0x16ec37=!0x1;for(const _0x1bcb26 of _0x4067a6){const _0x3bb291=this['_findSuggestions'](_0x1bcb26['range'],'attribute')['filter'](_0x30ac73=>!_0x30ac73['meta']['isNextTo'])['map'](_0x2a4ca0=>_0x2a4ca0['suggestion']),_0x500cac=_0x1bff51({'newValue':_0x1bcb26['newValue']});_0x3bb291['filter'](_0x16c9d8=>{const [_0x3b9cf9,_0x1be535]=_0x16c9d8['subType']['split']('|');return _0x3b9cf9==_0x1bcb26['key']&&_0x1be535!=_0x500cac;})['forEach'](_0x1118cc=>{this['_reduceSuggestionAttributeRange'](_0x1118cc,_0x1bcb26['range'],_0x3c72c4),_0x16ec37=!0x0;});}return _0x16ec37;}['_reduceSuggestionAttributeRange'](_0x20e3e2,_0x3e0945,_0x546d58){const _0xf726ec=_0x20e3e2['getFirstRange']()['getDifference'](_0x3e0945);0x0!==_0xf726ec['length']?0x1!==_0xf726ec['length']?this['_breakSuggestionMarker'](_0x20e3e2,_0x3e0945['start'],_0x3e0945['end']):this['_setSuggestionRange'](_0x20e3e2,_0xf726ec[0x0]):_0x546d58['removeMarker'](_0x20e3e2['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x295915){this['_editor']=_0x295915,this['_model']=_0x295915['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1cf44a,_0x10ef94,_0x258e5b,_0xa5fa0f,_0x22ec99,_0x3b3a97,_0x45ae28){return new o(this['_model'],{'type':_0x1cf44a,'subType':_0x10ef94,'id':_0x258e5b,'originalSuggestionId':_0x45ae28,'author':_0xa5fa0f,'creator':_0xa5fa0f,'attributes':_0x22ec99,'onAttributesChange':_0x3b3a97,'onAccept':(..._0x50cf28)=>this['getSuggestionCallback'](_0x1cf44a,_0x10ef94,'accept')(..._0x50cf28),'onDiscard':(..._0x522360)=>this['getSuggestionCallback'](_0x1cf44a,_0x10ef94,'discard')(..._0x522360)});}['registerCustomCallback'](_0x2e6a03,_0x74a7a6,_0x3c876c,_0x42ee35){const _0x218105=_0x2e6a03+':'+_0x74a7a6+':'+_0x3c876c;this['_customCallbacks']['set'](_0x218105,_0x42ee35);}['getSuggestionCallback'](_0x33d3ba,_0xa14b64,_0x18f60a){const _0x14cbe9=_0x33d3ba+':'+_0xa14b64+':'+_0x18f60a;return this['_customCallbacks']['get'](_0x14cbe9)||this['_defaultCallbacks']['get'](_0x33d3ba+':'+_0x18f60a);}['_registerDefaultCallbacks'](){const _0x2ea62b=()=>!0x1,_0x2f77c1=_0x139dd4=>{_0x139dd4['sort']((_0x2f1850,_0x55f7c5)=>_0x2f1850['start']['isBefore'](_0x55f7c5['start'])?0x1:-0x1),this['_model']['change'](_0x560af0=>{for(const _0x25e1b4 of _0x139dd4){let _0x10c126;_0x10c126=_0x25e1b4['end']['isAtEnd']&&_0x25e1b4['end']['parent']==_0x25e1b4['start']['nodeAfter']?_0x560af0['createSelection'](_0x25e1b4['start']['nodeAfter'],'on'):_0x560af0['createSelection'](_0x25e1b4),this['_model']['deleteContent'](_0x10c126,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x23506a=(_0x38702a,_0x111b8)=>{_0x111b8&&this['_model']['change'](_0x874b2e=>{const {commandName:_0x495bf9,commandParams:_0x13e2e8=[]}=_0x111b8,_0xae2b40=_0x38702a['map'](_0x4f56d5=>(Lt(_0x4f56d5)&&(_0x4f56d5=this['_model']['createRange'](_0x4f56d5['end'])),_0x4f56d5))['filter'](_0xf9f77f=>'$graveyard'!==_0xf9f77f['root']['rootName']);if(_0xae2b40['length']<0x1)return;const _0x33e3a9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x28011e=>_0x9a9b53['fromRange'](_0x28011e));_0x874b2e['setSelection'](_0xae2b40);for(const _0x406d1b of this['_editor']['commands']['commands']())_0x406d1b['refresh']();_0x13e2e8['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x495bf9,..._0x13e2e8);const _0x23cb20=_0x33e3a9['filter'](_0x38c8cd=>'$graveyard'!=_0x38c8cd['root']['rootName']);_0x23cb20['length']>0x0&&_0x874b2e['setSelection'](_0x23cb20);for(const _0x572573 of _0x33e3a9)_0x572573['detach']();});},_0x1c9e0b=(_0x5cf9cf,_0xc0a434)=>0x1==_0x5cf9cf['length']&&0x1==_0xc0a434['length']&&_0x5cf9cf[0x0]['end']['isEqual'](_0xc0a434[0x0]['start']),_0x3117cb=(_0x3cf2cb,_0x29cdba,_0x45ff45,_0x4512fe)=>Wt(_0x3cf2cb,_0x29cdba,_0x45ff45,_0x4512fe)?[_0x3cf2cb,_0x29cdba]:Wt(_0x29cdba,_0x3cf2cb,_0x4512fe,_0x45ff45)?[_0x29cdba,_0x3cf2cb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2ea62b),this['_defaultCallbacks']['set']('insertion:discard',_0x2f77c1),this['_defaultCallbacks']['set']('insertion:join',_0x1c9e0b),this['_defaultCallbacks']['set']('insertion:chain',_0x3117cb),this['_defaultCallbacks']['set']('deletion:accept',_0x2f77c1),this['_defaultCallbacks']['set']('deletion:discard',_0x2ea62b),this['_defaultCallbacks']['set']('deletion:join',_0x1c9e0b),this['_defaultCallbacks']['set']('deletion:chain',_0x3117cb),this['_defaultCallbacks']['set']('formatInline:accept',_0x23506a),this['_defaultCallbacks']['set']('formatInline:discard',_0x2ea62b),this['_defaultCallbacks']['set']('formatInline:join',_0x1c9e0b),this['_defaultCallbacks']['set']('formatInline:chain',_0x2ea62b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x23506a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2ea62b),this['_defaultCallbacks']['set']('formatBlock:join',_0x1c9e0b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2ea62b),this['_defaultCallbacks']['set']('attribute:accept',_0x2ea62b),this['_defaultCallbacks']['set']('attribute:discard',(_0x2c97bd,_0x214f8d)=>{if(!_0x214f8d)return;const _0x167933=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1120d2=>{if(_0x214f8d['key']==u)for(const _0x34e0bc of _0x2c97bd){const _0x47ccab=_0x34e0bc['start']['nodeAfter'],_0x1209fa=_0x214f8d['oldValue'];_0x1120d2['rename'](_0x47ccab,_0x1209fa);}else{if(_0x167933['_isBlockAttribute'](_0x214f8d['key'])){for(const _0x1093ce of _0x2c97bd)void 0x0!==_0x214f8d['oldValue']?_0x1120d2['setAttribute'](_0x214f8d['key'],_0x214f8d['oldValue'],_0x1093ce['start']['nodeAfter']):_0x1120d2['removeAttribute'](_0x214f8d['key'],_0x1093ce['start']['nodeAfter']);}else{for(const _0x3c3b39 of _0x2c97bd)_0x214f8d['oldValue']?_0x1120d2['setAttribute'](_0x214f8d['key'],_0x214f8d['oldValue'],_0x3c3b39):_0x1120d2['removeAttribute'](_0x214f8d['key'],_0x3c3b39);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1c9e0b);}}function Gt(_0x5078ba,_0x8b8789,_0x1cba01){for(const _0x1967fb of _0x8b8789['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1967fb['root']==_0x1967fb)return!0x1;if(!_0x1cba01['containsItem'](_0x1967fb))return!0x1;if(_0x5078ba['isObject'](_0x1967fb)||_0x5078ba['isLimit'](_0x1967fb))return!0x0;}return!0x1;}function Lt(_0x2f135b){return _0x2f135b['end']['parent']==_0x2f135b['start']['nodeAfter']&&_0x2f135b['end']['isAtStart'];}function Jt(_0x52af1e,_0x611e5c,_0x4479e3,_0x527944){const _0x3a0f4e=_0x3262d7=>!_0x3262d7['item']['is']('$textProxy')&&!_0x527944['isObject'](_0x3262d7['item']),_0x502c03=_0x52af1e['start']['getLastMatchingPosition'](_0x3a0f4e),_0x5e5b73=_0x52af1e['end']['getLastMatchingPosition'](_0x3a0f4e,{'direction':'backward'});return(!_0x52af1e['start']['isEqual'](_0x502c03)||!_0x52af1e['end']['isEqual'](_0x5e5b73))&&(_0x502c03['isBefore'](_0x5e5b73)?_0x4479e3['updateMarker'](_0x611e5c,{'range':_0x4479e3['createRange'](_0x502c03,_0x5e5b73)}):_0x4479e3['removeMarker'](_0x611e5c),!0x0);}function Kt(_0x12415f){return _0x1bff51(_0x12415f);}function Ht(_0x2f6b1e){const _0x2aaf03=_0x2f6b1e['start']['nodeAfter'];return _0x2aaf03&&_0x2aaf03['is']('element');}function qt(_0x300aa7,_0x19f081){return null==_0x300aa7['end']['nodeBefore']&&_0x300aa7['end']['parent']==_0x300aa7['start']['nodeAfter']?zt(_0x300aa7['start']['nodeAfter'],_0x19f081):_0x300aa7;}function zt(_0x541e80,_0x3d0d2b){const _0xd46a73=_0x3d0d2b['schema']['isObject'](_0x541e80)||_0x3d0d2b['schema']['isSelectable'](_0x541e80);return _0x3d0d2b['createRange'](_0x3d0d2b['createPositionAt'](_0x541e80,'before'),_0xd46a73?_0x3d0d2b['createPositionAfter'](_0x541e80):_0x3d0d2b['createPositionAt'](_0x541e80,'end'));}function Wt(_0x169e03,_0xe0f112,_0x760d3f,_0x40be6c){return!!Qt(_0x169e03,_0xe0f112)&&_0x760d3f['end']['isEqual'](_0x40be6c['start']);}function Qt(_0x33b9a1,_0x522ff2){if(!_0x33b9a1['_isDataLoaded']||!_0x522ff2['_isDataLoaded'])return!0x1;const _0x8da1da=new Set(Object['keys'](_0x33b9a1['attributes'])),_0x421f9c=new Set(Object['keys'](_0x522ff2['attributes']));if(_0x8da1da['delete']('groupId'),_0x421f9c['delete']('groupId'),0x0==_0x8da1da['size']&&0x0==_0x421f9c['size'])return!0x0;if(_0x8da1da['size']!=_0x421f9c['size'])return!0x1;const _0x1dfcc2={..._0x33b9a1['attributes']},_0x267c6c={..._0x522ff2['attributes']};return delete _0x1dfcc2['groupId'],delete _0x267c6c['groupId'],JSON['stringify'](_0x1dfcc2)==JSON['stringify'](_0x267c6c);}function Xt(_0x34c8ba,_0x230b14){const _0x516318=Yt(_0x34c8ba['attributes']),_0x527898=Yt(_0x230b14);if(!_0x34c8ba['_isDataLoaded'])return!0x1;for(const _0x438d4f of Object['keys'](_0x527898))if(!_0x315f4f(_0x516318[_0x438d4f],_0x527898[_0x438d4f]))return!0x1;return!0x0;}function Yt(_0x69a1c5){const _0x43d7e6=Object['assign']({},_0x69a1c5);return delete _0x43d7e6['skipNestingCheck'],delete _0x43d7e6['tablePasteChainId'],_0x43d7e6;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x5711d9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2a9ac7,_0x3563d3,_0x22940c,_0x46cf45){super(),this['model']=_0x3563d3,this['view']=_0x22940c,this['commentThreadController']=_0x46cf45,this['_editor']=_0x2a9ac7,this['_acceptCommand']=_0x2a9ac7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2a9ac7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x501713,_0x4fb2f5)=>_0x501713||_0x4fb2f5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4b963c=>_0x4b963c&&this['_editor']['model']['canEditAt'](_0x3563d3['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x55fada=>_0x55fada&&this['_editor']['model']['canEditAt'](_0x3563d3['getRanges']())),this['_pendingAction']=null,_0x22940c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x22940c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x22940c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x22940c,'change:isDirty',()=>{_0x22940c['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 _0x37a8ea=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x37a8ea);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x50de67{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x155617,_0x241892,_0x1b0357,_0x3fa934){super(_0x155617),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2eb9e0(_0x155617,c(_0x155617,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x241892['authoredAt']),this['bind']('authoredAt')['to'](_0x241892),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',_0x241892,'authoredAt',this,'descriptionParts',(_0x5d77e0,_0x86f7b7,_0x2fcd2b)=>{const _0x59e613=_0x2fcd2b['map'](_0x143801=>ls(_0x143801['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5d77e0-0x1,_0x241892['author']['name'],_0x86f7b7?_0x3fa934['formatDateTime'](_0x86f7b7):'',new DOMParser()['parseFromString'](_0x59e613,'text/html')['body']['textContent']]);}),this['focusables']=new _0x30787d(),this['focusTracker']=new _0x32c2d7(),this['keystrokes']=new _0x3a972c(),this['focusCycler']=new _0x4ed14c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1a9e89=>_0x1a9e89['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x241892,this['_localUser']=_0x1b0357,this['_config']=_0x3fa934,_0x3fa934['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x41ac10(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x161df3}=this['_config'];this['commentsListView']=new _0x161df3(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',_0x40a170=>_0x40a170+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x281eef,_0x4ac4fe)=>_0x281eef||!!_0x4ac4fe);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x45f3a9}=this['_config'],_0x562856=new _0x45f3a9(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5db660=_0x562856['commentInputView'];return _0x562856['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5db660,'value',(_0x54efc7,_0x19822f,_0xd1b81d)=>!!_0xd1b81d||_0x54efc7&&!_0x19822f),_0x5db660['on']('submit',(_0xcdaefc,_0x2bf031)=>{this['fire']('addComment',_0x2bf031),_0x5db660['editor']['setData']('');}),_0x5db660['on']('cancel',()=>this['focus']()),_0x5db660['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x562856;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x2391a4,_0x35b912,_0x4a7b7d,_0xb275f0){super(_0x2391a4,_0x35b912,_0x4a7b7d,_0xb275f0),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x12567c=>_0x12567c&&_0x12567c[0x0]?_0x12567c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x419985,_0x4f4902)=>{let _0x73ec2a='';for(const _0x5d299d of _0x419985)_0x73ec2a+='<p>'+ls(_0x5d299d['content'],_0x5d299d['color'])+'</p>';return _0x4f4902?_0x73ec2a:ti(_0x73ec2a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xb275f0['SuggestionView'](_0x2391a4,_0x35b912,{'formatDateTime':_0xb275f0['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 _0x191824=this['bindTemplate'],_0x184bb9=[this['suggestionView']];return this['commentsListView']&&_0x184bb9['push'](this['commentsListView']),this['commentThreadInputView']&&_0x184bb9['push'](this['commentThreadInputView']),_0x184bb9['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x191824['if']('isActive','ck-suggestion-wrapper--active'),_0x191824['to']('type',_0x52567b=>'ck-suggestion-'+_0x52567b),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':_0x191824['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x184bb9};}['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 _0x50de67{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3d9786,_0x25a582,_0x26ae35){super(_0x3d9786),this['_model']=_0x25a582,this['_config']=_0x26ae35,this['set']('description',''),this['bind']('authoredAt')['to'](_0x25a582),this['acceptButton']=this['_createButton'](c(_0x3d9786,'Accept\x20suggestion'),_0x466d59,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x3d9786,'Discard\x20suggestion'),_0x3428b1,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3b8557(_0x3d9786,_0x25a582['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x30787d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x32c2d7(),this['keystrokes']=new _0x3a972c(),this['focusCycler']=new _0x4ed14c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x17bf43=>_0x17bf43['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5a9f7b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5a9f7b['innerHTML']=this['description'],this['on']('change:description',(_0x424ddf,_0x2ab7f6,_0x1d20de)=>{_0x5a9f7b['innerHTML']=_0x1d20de;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xd7534c=this['bindTemplate'],_0x1f86fa=[{'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':_0xd7534c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xd7534c['to']('authoredAt',_0x525548=>this['_config']['formatDateTime'](_0x525548))}]}]},{'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']&&_0x1f86fa['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':_0x1f86fa}]};}['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'](_0x2337e5,_0x5a7726,_0x50516d,_0x2f3e2f,_0x58ff24){const _0x937510=new _0x4873d3(this['locale']);return _0x937510['set']({'label':_0x2337e5,'icon':_0x5a7726,'tooltip':!0x0,'tooltipPosition':_0x58ff24}),_0x937510['extendTemplate']({'attributes':{'class':_0x50516d}}),_0x937510['on']('execute',()=>{this['fire'](_0x2f3e2f,this['_model']['id']);}),_0x937510;}['_setupKeyboardNavigation'](){const _0x3a2a53=this['element'];this['keystrokes']['listenTo'](_0x3a2a53);for(const _0x3b715b of this['focusables'])this['focusTracker']['add'](_0x3b715b['element']),this['keystrokes']['listenTo'](_0x3b715b['element']);this['keystrokes']['set']('enter',(_0x3c3f6b,_0x2ba882)=>{_0x3a2a53===_0x3c3f6b['target']&&(this['focusCycler']['focusFirst'](),_0x2ba882());}),this['keystrokes']['set']('esc',(_0x19f355,_0x578ee1)=>{_0x3a2a53!==_0x19f355['target']&&(this['focus'](),_0x578ee1());});}}class d extends _0x453bfd{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1adabb,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30a18b){super(_0x30a18b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2aea08=this['editor']['config'];_0x2aea08['define']('trackChanges.SuggestionThreadView',fe),_0x2aea08['define']('trackChanges.SuggestionView',we),_0x2aea08['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2aea08['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x23a034,_0x3fc15a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x113b46,_0x570b9b]of this['_handleControllerBuffer']){const _0x2f4d8d=this['_suggestionToController']['has'](_0x113b46);_0x2f4d8d||_0x570b9b?_0x2f4d8d&&_0x570b9b&&this['_destroyController'](_0x113b46):this['_initializeController'](_0x113b46);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x23a034,_0x3fc15a);}['init'](){const _0xef4e5c=this['editor'],_0xef384=_0xef4e5c['plugins']['get']('TrackChangesEditing'),_0x1b9997=_0xef4e5c['plugins']['get']('Annotations'),_0x391253=_0xef4e5c['plugins']['get']('EditorAnnotations'),_0x352b9b=_0xef4e5c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x391253['addSourceCollector'](()=>{const _0x4808f6=[];for(const [_0x10a079,_0x5ab6c0]of Array['from'](this['_suggestionToController'])){const _0x57e52f=_0x10a079['getAllAdjacentSuggestions'](),_0x509215=[];for(const _0x4f4320 of _0x57e52f){if(!_0x4f4320['isInContent'])continue;if(_0x4f4320['isMultiRange']){_0x509215['push'](..._0x4f4320['getRanges']());continue;}const _0x1c71de=_0x4f4320['getFirstRange']();if(_0x509215['length']>0x0){const _0xc9972c=_0x509215[0x0]['getJoined'](_0x1c71de);if(_0xc9972c){_0x509215[0x0]=_0xc9972c;continue;}}_0x509215['push'](_0x1c71de);}_0x4808f6['push']([_0x5ab6c0['view'],_0x509215]);}return _0x4808f6;}),this['listenTo'](_0xef384,'suggestionLoaded',(_0x4b7cd8,_0x1c7e55)=>{this['listenTo'](_0x1c7e55,'change:previous',(_0x1de033,_0x1c7866,_0x3066a9,_0x11cd8b)=>{_0x1c7e55['isInContent']&&(null==_0x3066a9?(this['_updateController'](_0x11cd8b['head']),this['_handleSuggestionControllerDelayed'](_0x1c7e55,!0x1)):(this['_updateController'](_0x3066a9['head']),null==_0x11cd8b&&this['_handleSuggestionControllerDelayed'](_0x1c7e55,!0x0)));}),null!==_0x1c7e55['previous']?this['_updateController'](_0x1c7e55['head']):this['_handleSuggestionControllerDelayed'](_0x1c7e55,!0x1);}),this['listenTo'](_0xef384,'suggestionUnloaded',(_0x200a23,_0x16a348,_0x1e1b30)=>{this['stopListening'](_0x16a348,'change:previous'),this['_handleControllerBuffer']['delete'](_0x16a348),this['_suggestionToController']['has'](_0x16a348)&&this['_destroyController'](_0x16a348),_0x1e1b30&&this['_updateController'](_0x1e1b30['head']);}),this['listenTo'](_0xef384,'suggestionChanged',(_0x32c60c,_0x5251c6)=>{this['_updateController'](_0x5251c6);}),this['listenTo'](_0x1b9997,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x352b9b,'addComment',(_0x1db0ab,{threadId:_0x32dccf,isFromAdapter:_0x257c45})=>{if(_0x257c45||!_0xef384['hasSuggestion'](_0x32dccf))return;const _0x55c310=_0xef384['getSuggestion'](_0x32dccf);this['_suggestionToController']['get'](_0x55c310)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1fde26=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x30926d;for(const _0xbeef65 in _0x1fde26){const _0x3300e1=_0xbeef65,_0x5e642f=_0x1fde26[_0x3300e1];if('trackChangesLicenseKeyValid'==_0x5e642f||'trackChangesLicenseKeyInvalid'==_0x5e642f||'trackChangesLicenseKeyExpired'==_0x5e642f||'trackChangesLicenseKeyDomainLimit'==_0x5e642f||'trackChangesLicenseKeyNotAllowed'==_0x5e642f||'trackChangesLicenseKeyEvaluationLimit'==_0x5e642f||'trackChangesLicenseKeyTrialLimit'==_0x5e642f||'trackChangesLicenseKeyUsageLimit'==_0x5e642f){delete _0x1fde26[_0x3300e1],_0x30926d=_0x5e642f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x30926d&&_0x1fde26['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x30926d&&_0x1fde26['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x30926d&&_0x1fde26['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x30926d&&_0x1fde26['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x30926d&&_0x1fde26['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x30926d&&_0x1fde26['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x30926d&&_0x1fde26['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5ef1b4=this['editor']['plugins']['get']('Annotations'),_0x161bfc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x446584=Array['from'](_0x5ef1b4['activeAnnotations'],_0x90b1c2=>_0x90b1c2['innerView'])['filter'](_0x1e67cd=>this['_viewToController']['has'](_0x1e67cd)),_0x393875=[];for(const _0x1122f1 of _0x446584){const _0x52a4f3=this['_viewToController']['get'](_0x1122f1)['model']['getAllAdjacentSuggestions']();_0x393875['push'](..._0x52a4f3['reduce']((_0x2b0e8a,_0x39a0ef)=>[..._0x2b0e8a,..._0x39a0ef['getMarkerNames']()],[]));}_0x161bfc['activeMarkers']=_0x393875;}['_addUIComponentsToFactory'](){const _0x1f515d=this['editor'],_0x559640=_0x1f515d['locale'],_0x5142a9=c(_0x559640,'Track\x20changes'),_0x49c85d=new _0x50d570([{'type':'switchbutton','model':new _0x62255a({'withText':!0x0,'isToggleable':!0x0,'label':_0x5142a9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x62255a({'withText':!0x0,'label':c(_0x559640,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x62255a({'withText':!0x0,'label':c(_0x559640,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x62255a({'withText':!0x0,'label':c(_0x559640,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x62255a({'withText':!0x0,'label':c(_0x559640,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1f515d['plugins']['has']('TrackChangesPreview')&&_0x49c85d['addMany']([{'type':'separator'},{'type':'button','model':new _0x62255a({'withText':!0x0,'label':c(_0x559640,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x562364 of _0x49c85d)if(ke(_0x562364)){const _0x221137=_0x1f515d['commands']['get'](_0x562364['model']['commandName']);_0x562364['model']['bind']('isOn','isEnabled')['to'](_0x221137,'value','isEnabled');}_0x1f515d['ui']['componentFactory']['add']('trackChanges',_0x324d59=>this['_createToolbarButton'](_0x324d59,_0x49c85d,_0x5142a9)),_0x1f515d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x50524e=>this['_createMenuBarMenu'](_0x50524e,_0x49c85d,_0x5142a9));}['_createToolbarButton'](_0x433afc,_0x3d028b,_0x4555c7){const _0x502f93=_0x187fa8(_0x433afc,_0x1ba4c0),_0xd4db26=this['editor']['commands']['get']('trackChanges');_0x502f93['buttonView']['set']({'tooltip':_0x4555c7,'label':_0x4555c7,'icon':_0x5b861b}),_0x502f93['buttonView']['bind']('isOn')['to'](_0xd4db26,'value'),_0x502f93['buttonView']['on']('execute',()=>{_0xd4db26['execute'](),this['editor']['editing']['view']['focus']();}),_0x32f88a(_0x502f93,_0x3d028b,{'role':'menu'});const _0x2405b9=[];for(const _0x39c1b7 of _0x3d028b)ke(_0x39c1b7)&&_0x2405b9['push'](this['editor']['commands']['get'](_0x39c1b7['model']['commandName']));const _0xe93e65=_0x502f93['buttonView'];return _0xe93e65['actionView']['unbind']('isEnabled'),_0xe93e65['arrowView']['unbind']('isEnabled'),_0xe93e65['actionView']['bind']('isEnabled')['to'](_0xd4db26,'isEnabled'),_0xe93e65['arrowView']['bind']('isEnabled')['toMany'](_0x2405b9,'isEnabled',(..._0x74f77b)=>_0x74f77b['some'](_0x13859c=>_0x13859c)),_0x502f93['on']('execute',_0x50c84e=>{this['editor']['execute'](_0x50c84e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x502f93;}['_createMenuBarMenu'](_0x3766c2,_0x278807,_0xa17eb8){const _0x1a37c4=new _0x4b57b1(_0x3766c2),_0x1c5f28=this['editor']['commands']['get']('trackChanges');_0x1a37c4['buttonView']['set']({'label':_0xa17eb8,'icon':_0x5b861b});const _0x5c17b3=new _0x52535d(_0x3766c2);for(const _0x597481 of _0x278807){if('separator'==_0x597481['type']){_0x5c17b3['items']['add'](new _0x13c8a9(_0x3766c2));continue;}const _0x15e4d6=new _0x29cc8f(_0x3766c2,_0x1a37c4),_0x4b8bef=new _0x57100b(_0x3766c2),_0x43d6c5=_0x597481['model'];_0x4b8bef['bind'](...Object['keys'](_0x43d6c5))['to'](_0x43d6c5),_0x4b8bef['delegate']('execute')['to'](_0x1a37c4),_0x4b8bef['on']('execute',()=>{this['editor']['execute'](_0x43d6c5['commandName']),this['editor']['editing']['view']['focus']();}),_0x15e4d6['children']['add'](_0x4b8bef),_0x5c17b3['items']['add'](_0x15e4d6);}return _0x1a37c4['bind']('isEnabled')['to'](_0x1c5f28,'isEnabled'),_0x1a37c4['panelView']['children']['add'](_0x5c17b3),_0x1a37c4;}['_initializeController'](_0x1b9052){const _0x9aeda0=this['editor'],_0x29fc21=_0x9aeda0['config'],_0x26b943=_0x9aeda0['plugins']['get']('Annotations'),_0x4e133a=_0x9aeda0['plugins']['get']('CommentsRepository'),_0x362e2b=_0x9aeda0['plugins']['get']('EditorAnnotations'),_0x3826f6=_0x9aeda0['plugins']['get'](_0x1adabb)['me'],_0x5dfc6b=_0x29fc21['get']('trackChanges')['SuggestionThreadView'],_0x4d5ef7=_0x29fc21['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2167bd,CommentThreadInputView:_0x4fe52d}=_0x9aeda0['plugins']['get']('CommentsUI');let _0x17f9a9,_0xc7eb52,_0x4950f0;this['_annotationViews']['has'](_0x1b9052['id'])?(_0xc7eb52=this['_annotationViews']['get'](_0x1b9052['id']),_0x17f9a9=_0xc7eb52['mainView']):(_0x17f9a9=new _0x5dfc6b(_0x9aeda0['locale'],_0x1b9052,_0x3826f6,{'disableComments':this['_disableComments'],'editorConfig':{..._0x29fc21['get']('comments.editorConfig'),'licenseKey':_0x29fc21['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x29fc21['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x29fc21['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x29fc21['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3e8616(_0x29fc21['get']('locale'),_0x9aeda0['locale']),'CommentView':_0x29fc21['get']('comments')['CommentView'],'CommentsListView':_0x2167bd,'CommentThreadInputView':_0x4fe52d,'SuggestionView':_0x4d5ef7}),_0x17f9a9['suggestionView']['acceptButton']['on']('execute',()=>{_0x9aeda0['editing']['view']['focus']();}),_0x17f9a9['suggestionView']['discardButton']['on']('execute',()=>{_0x9aeda0['editing']['view']['focus']();}),_0xc7eb52=_0x26b943['createAnnotationView'](this['editor']['locale'],_0x17f9a9),_0xc7eb52['bind']('isDirty')['to'](_0x17f9a9,'isDirty'),_0xc7eb52['bind']('length')['to'](_0x17f9a9),_0xc7eb52['bind']('type')['to'](_0x17f9a9,'type',_0x1a0fc6=>'suggestion-'+_0x1a0fc6),_0x17f9a9['on']('escape',()=>{_0x4950f0['fire']('escape');}),this['_annotationViews']['set'](_0x1b9052['id'],_0xc7eb52));const _0x3d7495=_0x4e133a['createCommentThreadController'](_0x1b9052['commentThread'],_0x17f9a9),_0x408a7b=new pe(_0x9aeda0,_0x1b9052,_0x17f9a9,_0x3d7495),_0x1d7731=_0x1b9052['getAllAdjacentSuggestions']()['filter'](_0x27b6c8=>_0x27b6c8['isInContent']);_0x17f9a9['descriptionParts']=_0x9aeda0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1d7731),this['_suggestionToController']['set'](_0x1b9052,_0x408a7b),this['_viewToController']['set'](_0x17f9a9,_0x408a7b),_0x4950f0=_0x26b943['createAnnotation']({'view':_0xc7eb52,'target':()=>{const _0x1f15a3=[],_0x50e06f=_0x1b9052['getAllAdjacentSuggestions']()['filter'](_0x365e30=>_0x365e30['isInContent']);for(const _0xc703d8 of _0x50e06f)_0x1f15a3['push'](..._0xc703d8['getMarkers']());return _0x1ec037(_0x9aeda0['editing'],_0x1f15a3);},'type':()=>'suggestion-'+_0x408a7b['view']['type']}),_0x4e133a['_bindAnnotationToEditors'](_0x17f9a9,_0x4950f0),_0x26b943['add'](_0x4950f0),_0x362e2b['registerAnnotation'](_0x4950f0);}['_destroyController'](_0x576740){const _0xd55cf2=this['editor']['plugins']['get']('CommentsRepository'),_0x22c244=this['editor']['plugins']['get']('Annotations'),_0x4c0c64=this['_suggestionToController']['get'](_0x576740),_0x52de89=_0x4c0c64['view'],_0x100068=_0x22c244['getByInnerView'](_0x52de89);_0xd55cf2['_unbindEditors'](_0x52de89),_0x100068&&_0x22c244['remove'](_0x100068),this['_suggestionToController']['delete'](_0x576740),this['_viewToController']['delete'](_0x52de89),_0x4c0c64['destroy']();}['_updateController'](_0x7b1414){if(!_0x7b1414['isInContent']||!this['_suggestionToController']['has'](_0x7b1414))return;const _0x61d443=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33124e=this['_suggestionToController']['get'](_0x7b1414),_0x3529d3=_0x7b1414['getAllAdjacentSuggestions']();_0x33124e['view']['descriptionParts']=_0x61d443['descriptionFactory']['getDescriptions'](_0x3529d3);}['destroy'](){for(const _0x6b0f9f of this['_suggestionToController']['keys']())this['_destroyController'](_0x6b0f9f);for(const _0x1d3d5 of this['_annotationViews']['values']())_0x1d3d5['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x472a0e){return'model'in _0x472a0e;}class k extends _0x453bfd{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xbed59d){this['editor']['plugins']['get'](p)['adapter']=_0xbed59d;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2169ed){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2169ed);}['getSuggestions']({skipNotAttached:_0x413ad9=!0x1,toJSON:_0x2e1a50=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x413ad9,'toJSON':_0x2e1a50});}['getSuggestion'](_0x151e3d){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x151e3d);}}const w=['Pagination'];class T extends _0x453bfd{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x33597a=this['editor'];if(_0x33597a['config']['define']('trackChangesData.editorCreator',_0x246bb6=>{const _0x42d9d0=_0x33597a['model']['document']['getRootNames']()['reduce']((_0x316877,_0x6b82db)=>(_0x316877[_0x6b82db]='',_0x316877),{});return _0x33597a['constructor']['create'](_0x42d9d0,_0x246bb6);}),'function'!=typeof _0x33597a['config']['get']('trackChangesData')['editorCreator'])throw new _0x15afa0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x498a9c){return N(this['editor'],!0x0,_0x498a9c);}['getDataWithDiscardedSuggestions'](_0x10e04d){return N(this['editor'],!0x1,_0x10e04d);}}class D extends _0x453bfd{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xbf2ff2){function _0x4df966(_0x1177c7){return _0x1177c7['map'](_0x512de7=>String['fromCharCode'](_0x512de7))['join']('');}super(_0xbf2ff2),this['result']='end',_0xbf2ff2[_0x4df966([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4df966([0x76,0x69,0x65,0x77])][_0x4df966([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4df966([0x61,0x75,0x74,0x6f]),_0xbf2ff2[_0x4df966([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4df966([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4df966([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4df966([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4df966([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 Ge(_0x253906){return void 0x0!==_0x253906['getRootsAttributes'];}async function N(_0x24ce53,_0x5cd5dc,_0x22d785){const _0x341e1b=_0x4822eb(_0x24ce53,w);_0x341e1b['plugins']['push'](p,D),_0x341e1b['rootsAttributes']=Ge(_0x24ce53)?_0x24ce53['getRootsAttributes']():void 0x0;const _0x33c90d=document['createDocumentFragment'](),_0x1948c4=_0x24ce53['config']['get']('trackChangesData')['editorCreator'],_0x52d4b0=await _0x1948c4(_0x341e1b,()=>function(_0x1db466){const _0xfca34f=document['createElement']('div');return _0x1db466['appendChild'](_0xfca34f),_0xfca34f;}(_0x33c90d));!function(_0x466a7c,_0x2fa2c9){const _0x52c220=_0x466a7c['model']['document']['getRootNames']()['reduce']((_0x58691a,_0x47e327)=>(_0x58691a[_0x47e327]=_0x466a7c['data']['get']({'rootName':_0x47e327}),_0x58691a),{}),_0x5567c9=_0x466a7c['plugins']['get']('Users')['users']['map'](_0x198c05=>({'id':_0x198c05['id'],'name':_0x198c05['name']})),_0x1874c5=_0x466a7c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x404371=_0x466a7c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x561493=_0x2fa2c9['plugins']['get']('Users'),_0x369fd5=_0x2fa2c9['plugins']['get']('TrackChangesEditing'),_0x45584a=_0x2fa2c9['plugins']['get']('CommentsRepository');for(const _0x2de3ea of _0x45584a['getCommentThreads']())_0x2de3ea['remove']();for(const _0x589067 of _0x5567c9)_0x561493['getUser'](_0x589067['id'])||_0x561493['addUser'](_0x589067);_0x561493['me']||_0x561493['useAnonymousUser']();for(const _0x4bb301 of _0x404371)_0x45584a['addCommentThread'](_0x4bb301);for(const _0xc70f28 of _0x1874c5)_0x369fd5['addSuggestionData'](_0xc70f28);_0x2fa2c9['data']['set'](_0x52c220);}(_0x24ce53,_0x52d4b0),_0x52d4b0['execute'](_0x5cd5dc?'acceptAllSuggestions':'discardAllSuggestions');const _0x26c12a=Ge(_0x52d4b0)?_0x52d4b0['getFullData'](_0x22d785):_0x52d4b0['data']['get'](_0x22d785);return await _0x52d4b0['destroy'](),_0x26c12a;}class Me extends _0x50de67{['options'];constructor(_0x57d668,_0x5d31c8){super(_0x57d668),this['options']=_0x5d31c8,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'](_0x3e3e1f,_0x3f0651){if(!this['element'])return;const _0x3042a8=[];for(const [_0x5b2ce3,_0x168f78]of _0x3e3e1f){const _0x427943=document['createElement']('div');_0x427943['setAttribute']('data-ck-root-name',_0x5b2ce3),_0x427943['className']=_0x168f78['classes']+'\x20ck-track-changes-preview__root-container',_0x427943['innerHTML']=_0x168f78['content'],_0x3042a8['push'](_0x427943);}_0x3f0651(this['element'],_0x3042a8),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x3bd985{constructor(_0x19963b){super(_0x19963b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x57f9cd=this['editor'],_0x438c20=_0x57f9cd['locale'],_0x2b093b=_0x57f9cd['plugins']['get']('Dialog');let _0x23d3ee;const _0x5accf4=function(_0x409de6){const _0x4f8118={};if('editables'in _0x409de6['ui']['view']){for(const [_0xec5208,_0x3bf1f4]of Object['entries'](_0x409de6['ui']['view']['editables']))_0x4f8118[_0xec5208]=_0x3bf1f4['element'];}else _0x4f8118[_0x409de6['model']['document']['getRootNames']()[0x0]]=_0x409de6['ui']['view']['editable']['element'];return _0x4f8118;}(_0x57f9cd),_0x1fffa1=function(_0x2fbac8){let _0x2b937d=0x0;for(const _0x1b81f3 of Object['values'](_0x2fbac8))_0x2b937d=Math['max'](_0x2b937d,_0x1b81f3['getBoundingClientRect']()['width']);let _0x3e24bc=0x0;for(const _0x5234fc of Object['values'](_0x2fbac8))_0x3e24bc+=_0x5234fc['getBoundingClientRect']()['height'];const _0x125e48=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x37ec45=Math['min'](_0x3e24bc,_0x125e48);return{'width':_0x2b937d,'height':_0x37ec45};}(_0x5accf4);_0x2b093b['show']({'id':'finalContentPreview','title':c(_0x438c20,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x438c20,{'dialogRects':_0x1fffa1}),'onHide':()=>{_0x23d3ee['detachFromDom']();},'onShow':()=>{_0x57f9cd['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x7e8047=>{const _0xaa4efb=this['_standarizeRootsData'](_0x7e8047,_0x57f9cd,_0x5accf4);_0x2b093b['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xaa4efb,_0x57f9cd['config']['get']('trackChanges.preview.renderFunction'));}),_0x23d3ee=new _0x100e9b(_0x438c20,[_0x2b093b['view']]),_0x23d3ee['attachToDom'](),_0x23d3ee['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x57f9cd['once']('destroy',()=>{_0x23d3ee['detachFromDom']();});const _0x11fb93=_0x2b093b['view']['headerView']['class'];_0x2b093b['view']['headerView']['class']=_0x11fb93?_0x11fb93+'\x20ck-reset_all':'ck-reset_all',_0x2b093b['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2b093b['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xe80b0a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4a6909=_0xe80b0a['previewMode'],_0x4f548a={};if('$labels'===_0x4a6909){for(const _0x2a050c of _0xe80b0a['getMergeFieldsIds']())_0x4f548a[_0x2a050c]=_0xe80b0a['getLabel'](_0x2a050c)||_0x2a050c;}else{const _0x539f39='$defaultValues'===_0x4a6909?_0xe80b0a['getDefaultValues']():_0xe80b0a['getDataSetValues'](_0x4a6909,!0x0);for(const _0x2dcb4b of Object['entries'](_0x539f39)){const [_0x39f0d5,_0x140e97]=_0x2dcb4b;_0x4f548a[_0x39f0d5]=null!==_0x140e97?_0x140e97:_0xe80b0a['getLabel'](_0x39f0d5)||_0x39f0d5;}}return{'mergeFieldsData':_0x4f548a};}['_standarizeRootsData'](_0x1d9300,_0x25e303,_0x3dc6fe){let _0xd55592;if('string'==typeof _0x1d9300){const _0x4aff69=_0x25e303['model']['document']['getRootNames']()[0x0];_0xd55592={[_0x4aff69]:_0x1d9300};}else _0xd55592=_0x1d9300;const _0x5a0887=this['_fixMediaEmbeds'](_0xd55592,_0x25e303),_0x45cb66=function(_0x1fc203,_0x29fd67){for(const [_0x2aa59c,_0x34bc57]of _0x1fc203)_0x34bc57['classes']=_0x29fd67[_0x2aa59c]['classList']['value']['replace']('ck-focused','');return _0x1fc203;}(this['_sortRoots'](_0x25e303)['reduce']((_0x2bddfe,_0x2fc981)=>(_0x2bddfe['push']([_0x2fc981,{'content':_0x5a0887[_0x2fc981],'classes':''}]),_0x2bddfe),[]),_0x3dc6fe);return _0x45cb66;}['_fixMediaEmbeds'](_0x4a7eff,_0xb79379){if(!_0xb79379['plugins']['has']('MediaEmbedEditing'))return _0x4a7eff;const _0x40fff4=_0xb79379['plugins']['get']('MediaEmbedEditing');for(const [_0x5d60d5,_0x5e08d1]of Object['entries'](_0x4a7eff)){const _0x2877f7=document['createElement']('div');_0x2877f7['innerHTML']=_0x5e08d1,(_0x2877f7['querySelectorAll']('figure.media')['forEach'](_0xbd013b=>{const _0x14e4ad=_0xbd013b['querySelector']('oembed');if(_0x14e4ad){const _0x8d249b=_0x14e4ad['getAttribute']('url');if(_0x8d249b){const _0x50a976=_0x40fff4['registry']['getMediaViewElement'](new _0x151e56(_0xb79379['editing']['view']['document']),_0x8d249b,{'elementName':'','renderForEditingView':!0x0}),_0xb0321f=document['createElement']('div');_0xb0321f['classList']['add']('ck-media__wrapper'),_0x50a976['render'](_0xb0321f,_0xb79379['editing']['view']['domConverter']),_0x14e4ad['replaceWith'](_0xb0321f);}}}),_0x4a7eff[_0x5d60d5]=_0x2877f7['innerHTML']);}return _0x4a7eff;}['_sortRoots'](_0x242205){if(!function(_0x4418ce){return void 0x0!==_0x4418ce['getRootsAttributes'];}(_0x242205))return _0x242205['model']['document']['getRootNames']();const _0x267e36=[],_0x49a846=new Map();for(const _0x444ed9 of _0x242205['model']['document']['getRootNames']()){const _0x207965=_0x242205['editing']['view']['getDomRoot'](_0x444ed9)['getClientRects']()['item'](0x0);_0x267e36['push'](_0x444ed9),_0x49a846['set'](_0x444ed9,_0x207965);}return _0x267e36['sort']((_0x4b1523,_0xd356bc)=>{const _0xf94047=_0x49a846['get'](_0x4b1523),_0x381bf8=_0x49a846['get'](_0xd356bc);return _0xf94047['y']-_0x381bf8['y']||_0xf94047['x']-_0x381bf8['x'];}),_0x267e36;}}class te extends _0x453bfd{static get['requires'](){return[T,_0x160042];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5290fb){super(_0x5290fb),_0x5290fb['commands']['add']('previewFinalContent',new re(this['editor'])),_0x5290fb['config']['define']('trackChanges.preview.renderFunction',(_0x4e53b7,_0x222861)=>{for(const _0x19d45d of _0x222861)_0x4e53b7['appendChild'](_0x19d45d);});}}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};