@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250418.0 → 0.0.0-nightly-20250420.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 _0x33ca54,Plugin as _0x505a46,PendingActions as _0x6fc706}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x31f689,ObservableMixin as _0x3e69a7,uid as _0x5b9c0f,priorities as _0xb94a4a,insertToPriorityArray as _0x1a84b7,logWarning as _0x48da74,getEnvKeystrokeText as _0x1f1ac5,FocusTracker as _0xcf7f2a,KeystrokeHandler as _0x2c78fe,Collection as _0x3b0459}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4e6555,IconCancel as _0x426606,IconTrackChanges as _0x2ae584}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x46b6d9,View as _0x17edf8,ViewCollection as _0x34662b,FocusCycler as _0x680ea7,ViewModel as _0x5c9da4,createDropdown as _0x199e9a,SplitButtonView as _0x3a2f31,addListToDropdown as _0x18bf79,MenuBarMenuView as _0x46ce6f,MenuBarMenuListView as _0x2c61a8,ListSeparatorView as _0x2a43f0,MenuBarMenuListItemView as _0x3cbe39,MenuBarMenuListItemButtonView as _0x4d1e41,BodyCollection as _0x146140,Dialog as _0x10d0d8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x6aac30,hashObject as _0x3c6848,surroundingMarkersDetector as _0x4d90b3,FOCUS_ANNOTATION_KEYSTROKE as _0x163322,AriaDescriptionView as _0x6e280d,setupThreadKeyboardNavigation as _0x423a38,trimHtml as ti,UserView as _0x22e69a,LateFocusButtonView as _0x1267f7,getDateTimeFormatter as _0x3f993d,getAllMarkersDomElementsSorted as _0x3aceed,sanitizeEditorConfig as _0x2588bd}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x51ea07,LiveRange as _0x3b5a68,LivePosition as _0x1ae17c,DowncastWriter as _0x272df2}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3e5824,toWidget as _0x26f06d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4fc6a3,set as _0x38d6a3,isEqual as _0x5953bb,unset as _0x2e84a0,omit as Ft}from'es-toolkit/compat';import{Delete as _0x2d27c2,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x43dd68}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x544fd0}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x33ca54{['_enabledCommands'];constructor(_0x27c972,_0x29cea3){super(_0x27c972),this['_enabledCommands']=_0x29cea3,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 _0x2e00b4 of this['editor']['commands']['commands']())_0x2e00b4['affectsData']&&!this['_enabledCommands']['has'](_0x2e00b4)&&_0x2e00b4['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x67c2be of this['editor']['commands']['commands']())_0x67c2be['affectsData']&&!this['_enabledCommands']['has'](_0x67c2be)&&_0x67c2be['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x33ca54{['_suggestions'];constructor(_0x14f4c3,_0x578f75){super(_0x14f4c3),this['_suggestions']=_0x578f75,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x493c06){const _0x2659fa=this['_suggestions']['get'](_0x493c06);if(!_0x2659fa)throw new _0x31f689('track-changes-accept-suggestion-not-found',this);const _0x532d10=_0x2659fa['getRanges']();this['editor']['model']['canEditAt'](_0x532d10)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2659fa);}}class R extends _0x33ca54{['_suggestions'];constructor(_0x8e1de8,_0x190d6d){super(_0x8e1de8),this['_suggestions']=_0x190d6d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x485778){const _0x530f51=this['_suggestions']['get'](_0x485778);if(!_0x530f51)throw new _0x31f689('track-changes-discard-suggestion-not-found',this);const _0x37df62=_0x530f51['getRanges']();this['editor']['model']['canEditAt'](_0x37df62)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x530f51);}}function ls(_0x45a3e0,_0x1befaa){let _0x1a65a2='';return _0x1a65a2+=_0x45a3e0['split']('*')['map']((_0x217b02,_0x3b552e)=>_0x3b552e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x217b02)+'</span>':nn(_0x217b02))['join'](''),_0x1befaa&&(_0x1a65a2+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1befaa['value']+'\x22\x20title=\x22'+_0x1befaa['title']+'\x22></span>'),_0x1a65a2;}function nn(_0x188a61){const _0x2c6690=document['createElement']('span');return _0x2c6690['innerText']=_0x188a61,_0x2c6690['innerHTML'];}function ts(_0x5bc850){return _0x5bc850['sort']((_0x921fe6,_0x8a7552)=>'deletion'==_0x921fe6['type']&&'deletion'!=_0x8a7552['type']?-0x1:'deletion'!=_0x921fe6['type']&&'deletion'==_0x8a7552['type']?0x1:0x0);}function to(_0x41f37e,_0x288f05){let _0x492956,_0x12afd4=0x0;const _0xafcbc6=[],_0x33ea73=_0x288f05['schema'];for(;_0x12afd4<_0x41f37e['length'];){const _0x51cf28=_0x41f37e[_0x12afd4],_0xf4f924=_0x41f37e[_0x12afd4+0x1];_0x492956||(_0x492956=_0x288f05['createPositionBefore'](_0x51cf28)),on(_0x288f05,_0x51cf28,_0xf4f924)||(_0xafcbc6['push'](_0x288f05['createRange'](_0x492956,_0x33ea73['isObject'](_0x51cf28)?_0x288f05['createPositionAfter'](_0x51cf28):_0x288f05['createPositionAt'](_0x51cf28,'end'))),_0x492956=null),_0x12afd4++;}return _0xafcbc6;}function on(_0x360c3f,_0x5275ff,_0x538463){if(!_0x538463)return!0x1;const _0x3de3a8=_0x360c3f['createPositionAfter'](_0x5275ff),_0x4c535c=_0x360c3f['createPositionBefore'](_0x538463);return _0x3de3a8['isTouching'](_0x4c535c);}function rs(_0x570110,_0x1cd9c1,_0x47a900){for(;_0x47a900['length'];){const _0x430726=_0x47a900['splice'](0x0,0x64);_0x570110['change'](()=>{for(const _0x1222e9 of _0x430726)_0x1222e9['isInContent']&&_0x1cd9c1['execute'](_0x1222e9['id']);});}}class x extends _0x33ca54{['_command'];['_suggestions'];constructor(_0x56552b,_0x1a2a2b,_0x3dc603){super(_0x56552b),this['_command']=_0x1a2a2b,this['_suggestions']=_0x3dc603,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x46e5f1=Array['from'](this['_suggestions']['values']())['some'](_0xc68853=>_0xc68853['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x46e5f1;}['execute'](){const _0x1ce930=ts(Array['from'](this['_suggestions']['values']()));for(const _0x54f89d of _0x1ce930){const _0x2f0902=_0x54f89d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2f0902))return;}rs(this['editor']['model'],this['_command'],_0x1ce930);}}class E extends _0x33ca54{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x55725d,_0x7b0269,_0x5a37d1){super(_0x55725d),this['_command']=_0x7b0269,this['_suggestions']=_0x5a37d1,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x15a559=this['editor']['model']['document']['selection'],_0x2db9c2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xdadfa6,_0x4c3ddf){const _0x148d30=Array['from'](_0xdadfa6['getRanges']()),_0x4193c0=new Set();for(const _0x51efa6 of _0x4c3ddf)if(_0x51efa6['isInContent']){for(const _0x3bb23b of _0x148d30)for(const _0x42d165 of _0x51efa6['getRanges']())(_0x3bb23b['isIntersecting'](_0x42d165)||_0xdadfa6['isCollapsed']&&!_0x51efa6['isMultiRange']&&_0x51efa6['next']&&_0x42d165['end']['isTouching'](_0x3bb23b['start']))&&_0x4193c0['add'](_0x51efa6);}return _0x4193c0;}(_0x15a559,_0x2db9c2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x28abc4=ts(Array['from'](this['_selectedSuggestions']));for(const _0x464d3a of _0x28abc4){const _0x546a6b=_0x464d3a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x546a6b))return;}rs(this['editor']['model'],this['_command'],_0x28abc4);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x3e69a7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3c1298,_0x216db7){super(),this['id']=_0x216db7['id'],this['type']=_0x216db7['type'],this['subType']=_0x216db7['subType']||null,this['author']=_0x216db7['author'],this['creator']=_0x216db7['creator']||_0x216db7['author'],this['isExternal']=Boolean(_0x216db7['attributes']&&_0x216db7['attributes']['@external']),this['data']=null,this['_model']=_0x3c1298,this['_onAccept']=_0x216db7['onAccept'],this['_onDiscard']=_0x216db7['onDiscard'],this['_onAttributesChange']=_0x216db7['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x216db7['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 _0x577cd0=this;for(;_0x577cd0['previous'];)_0x577cd0=_0x577cd0['previous'];return _0x577cd0;}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'](_0x55587d){this['_markerNames']['add'](_0x55587d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x213dd9=>this['_model']['markers']['get'](_0x213dd9))['filter'](_0xe58257=>_0xe58257);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5da0c6=>{for(const _0x307003 of this['getMarkers']())_0x5da0c6['removeMarker'](_0x307003);}),this['_markerNames']['clear']();}['removeMarker'](_0x11ff78){this['_model']['change'](_0x51ea29=>{_0x51ea29['removeMarker'](_0x11ff78);}),this['_markerNames']['delete'](_0x11ff78);}['addRange'](_0x25bddc){const _0x15f02a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x15f02a),this['_model']['change'](_0x1abe2c=>{_0x1abe2c['addMarker'](_0x15f02a,{'range':_0x25bddc,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x575282){for(const _0x50c383 of this['getRanges']())if(_0x50c383['isIntersecting'](_0x575282))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x345509=>_0x345509['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x46e57c,_0xcfa735)=>[..._0x46e57c,..._0xcfa735['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2f4c18=this['getRanges']();if(0x1!=_0x2f4c18['length'])return null;const _0x4058b5=_0x2f4c18[0x0],_0x553aef=_0x4058b5['start']['nodeAfter'],_0x106484=_0x4058b5['end']['nodeBefore'];return _0x553aef instanceof _0x51ea07?_0x553aef!=_0x106484?null:_0x553aef: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 _0x545067=[];let _0xf08a1e=this['head'];for(;_0xf08a1e;)_0x545067['push'](_0xf08a1e),_0xf08a1e=_0xf08a1e['next'];return _0x545067;}['setAttribute'](_0xf6f6b,_0x287d1a){const _0xa8c239=_0x4fc6a3(this['attributes']);_0x38d6a3(_0xa8c239,_0xf6f6b,_0x287d1a),_0x5953bb(_0xa8c239,this['attributes'])||(this['attributes']=_0xa8c239,this['_onAttributesChange'](_0xa8c239));}['removeAttribute'](_0x4fa4b6){const _0x22fe64=_0x4fc6a3(this['attributes']);_0x2e84a0(_0x22fe64,_0x4fa4b6),_0x5953bb(_0x22fe64,this['attributes'])||(this['attributes']=_0x22fe64,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 _0x5b9c0f()['substr'](0x1,0x5);}}function c(_0xdd79b8,_0x55f40f,_0x3131f8){const _0x34030e=_0xdd79b8['t'],t=_0xdd79b8['t'];switch(_0x55f40f){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',_0x3131f8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3131f8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3131f8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3131f8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3131f8);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',_0x3131f8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3131f8);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',_0x3131f8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3131f8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3131f8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3131f8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3131f8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3131f8);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3131f8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3131f8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3131f8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3131f8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3131f8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3131f8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3131f8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3131f8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3131f8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3131f8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3131f8);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3131f8);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'},_0x3131f8);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3131f8);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3131f8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3131f8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3131f8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3131f8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3131f8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3131f8);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'},_0x3131f8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3131f8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3131f8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3131f8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3131f8);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'},_0x3131f8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3131f8);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'},_0x3131f8);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'},_0x3131f8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3131f8);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'},_0x3131f8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3131f8);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'},_0x3131f8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3131f8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3131f8);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'},_0x3131f8);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3131f8);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 _0x34030e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3131f8);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x34030e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3131f8);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3131f8);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'},_0x3131f8);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'},_0x3131f8);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'},_0x3131f8);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x55f40f;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3ea7b8,_0x129d57){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3ea7b8,this['_locale']=_0x129d57;}['getDescriptions'](_0x9bdeff){const _0x1fb56b=[],_0x1d1a90=new Set(),_0x50a292=new Set();for(let _0x30cb8c=0x0;_0x30cb8c<_0x9bdeff['length'];_0x30cb8c++){const _0x2eec1d=_0x9bdeff[_0x30cb8c];if(!_0x2eec1d['isInContent'])continue;const _0x431647=this['_handleCustomCallbackDescription'](_0x2eec1d);if(_0x431647){if(null!=_0x2eec1d['subType']){if(_0x1d1a90['has'](_0x2eec1d['subType']))continue;_0x1d1a90['add'](_0x2eec1d['subType']);}_0x1fb56b['push'](_0x431647);}else{if('attribute'!=_0x2eec1d['type'])'insertion'!=_0x2eec1d['type']&&'deletion'!=_0x2eec1d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1fb56b,_0x2eec1d,_0x9bdeff[_0x30cb8c+0x1]);else{const _0x727d8f=_0x2eec1d['data']['key'];if(_0x50a292['has'](_0x727d8f))continue;_0x50a292['add'](_0x2eec1d['data']['key']),_0x727d8f==u?this['_handleRenameSuggestionDescription'](_0x1fb56b,_0x2eec1d):this['_handleAttributeSuggestionDescription'](_0x1fb56b,_0x2eec1d);}}}return this['_resolveDescriptionItems'](_0x1fb56b);}['registerDescriptionCallback'](_0x42562f){this['_customCallbacks']['push'](_0x42562f);}['registerElementLabel'](_0x389ef7,_0x352da2,_0x4d4834=_0xb94a4a['normal']){'function'==typeof _0x389ef7?_0x1a84b7(this['_itemLabelsCallbacks'],{'matchingCallback':_0x389ef7,'label':_0x352da2,'priority':_0x4d4834}):this['_itemLabels']['set'](_0x389ef7,_0x352da2);}['registerAttributeLabel'](_0x865bce,_0x1a2461){this['_attributeLabels']['set'](_0x865bce,_0x1a2461);}['getItemLabel'](_0x26afe0,_0x461eaf=0x1){let _0x43832a;for(const _0x378c52 of this['_itemLabelsCallbacks'])if(_0x378c52['matchingCallback'](_0x26afe0)){_0x43832a=_0x378c52['label'];break;}return _0x43832a||(_0x43832a=this['_itemLabels']['get'](_0x26afe0['name'])),_0x43832a?_0x43832a(_0x461eaf):0x1!==_0x461eaf?_0x461eaf+'\x20'+_0x26afe0['name']+'s':''+_0x26afe0['name'];}['_addDescriptionItems'](_0x3d9146,_0x4830a4){const _0xaed7e9=_0x4830a4['getFirstRange']()['getWalker'](),_0x44ce56='insertion'==_0x4830a4['type']?'add':'remove';for(const _0x44ac37 of _0xaed7e9){const _0x57850e=_0x44ac37['item'],_0x525aa5=_0x3d9146[_0x3d9146['length']-0x1];if(_0x57850e['is']('$textProxy'))_0x525aa5&&_0x525aa5['type']['indexOf']('Container')>-0x1&&_0x3d9146['pop'](),_0x525aa5&&'text'==_0x525aa5['type']?_0x525aa5[_0x44ce56]+=_0x57850e['data']:_0x3d9146['push']({'type':'text','add':'add'==_0x44ce56?_0x57850e['data']:'','remove':'remove'==_0x44ce56?_0x57850e['data']:''});else{if(this['_schema']['isObject'](_0x57850e)){const _0xc7a952=_0x57850e;if(_0x525aa5&&_0x525aa5['type']['indexOf']('Container')>-0x1&&_0x3d9146['pop'](),'elementEnd'==_0x44ac37['type'])continue;_0x525aa5&&_0x525aa5['type']==_0x44ce56+'Object'&&_0x525aa5['element']['name']==_0xc7a952['name']?_0x525aa5['quantity']++:_0x3d9146['push']({'type':_0x44ce56+'Object','element':_0xc7a952,'quantity':0x1}),_0xaed7e9['skip'](_0x52d867=>!('elementEnd'==_0x52d867['type']&&_0x52d867['item']==_0x57850e));}else{if(this['_schema']['checkChild'](_0x57850e,'$text')||_0x57850e['is']('element','softBreak')){const _0x17104d=_0x57850e;if('add'==_0x44ce56&&'elementStart'==_0x44ac37['type']||'remove'==_0x44ce56&&'elementEnd'==_0x44ac37['type'])continue;if(_0x525aa5&&-0x1==_0x525aa5['type']['indexOf']('Container')){'text'==_0x525aa5['type']&&(_0x525aa5[_0x44ce56]+='\x0a');continue;}let _0x22cf66;if(_0x22cf66='add'==_0x44ce56?_0x17104d['nextSibling']&&!this['_schema']['isObject'](_0x17104d['nextSibling'])?_0x17104d['nextSibling']:null:_0x17104d['previousSibling']&&!this['_schema']['isObject'](_0x17104d['previousSibling'])?_0x17104d['previousSibling']:null,_0x17104d['isEmpty']||_0x22cf66&&_0x22cf66['isEmpty']){const _0x3355b2=_0x22cf66&&_0x22cf66['isEmpty']?_0x22cf66:_0x17104d;_0x525aa5&&_0x525aa5['type']==_0x44ce56+'EmptyContainer'&&_0x525aa5['element']['name']==_0x3355b2['name']?_0x525aa5['quantity']++:_0x3d9146['push']({'type':_0x44ce56+'EmptyContainer','element':_0x3355b2,'quantity':0x1});}else _0x3d9146['push']({'type':_0x44ce56+'Container','element':_0x17104d});}}}}}['_resolveDescriptionItems'](_0x3ab9e2){const _0x4edcce=this['_locale'],_0x386eb0=[],_0x717d7e=[],_0x261cc9=[];for(const _0x38370e of _0x3ab9e2)switch(_0x38370e['type']){case'text':if(_0x38370e['add']=_0x38370e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x38370e['remove']=_0x38370e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x38370e['add']&&''!=_0x38370e['remove']){_0x386eb0['push']({'type':'replace','content':c(_0x4edcce,'REPLACE_TEXT',['\x22'+_0x38370e['remove']+'\x22','\x22'+_0x38370e['add']+'\x22'])});continue;}if(null!=_0x38370e['add']['match'](/^ +$/)){_0x386eb0['push']({'type':'insertion','content':c(_0x4edcce,'*Insert:*\x20%0',c(_0x4edcce,'ELEMENT_SPACE',_0x38370e['add']['length']))});continue;}if(null!=_0x38370e['remove']['match'](/^ +$/)){_0x386eb0['push']({'type':'deletion','content':c(_0x4edcce,'*Remove:*\x20%0',c(_0x4edcce,'ELEMENT_SPACE',_0x38370e['remove']['length']))});continue;}if(''!=_0x38370e['add']){_0x386eb0['push']({'type':'insertion','content':c(_0x4edcce,'*Insert:*\x20%0','\x22'+_0x38370e['add']+'\x22')});continue;}_0x386eb0['push']({'type':'deletion','content':c(_0x4edcce,'*Remove:*\x20%0','\x22'+_0x38370e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x386eb0['push']({'type':'insertion','content':c(_0x4edcce,'*Insert:*\x20%0',this['getItemLabel'](_0x38370e['element'],_0x38370e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x386eb0['push']({'type':'deletion','content':c(_0x4edcce,'*Remove:*\x20%0',this['getItemLabel'](_0x38370e['element'],_0x38370e['quantity']))});continue;case'addContainer':_0x386eb0['push']({'type':'insertion','content':c(_0x4edcce,'*Split:*\x20%0',this['getItemLabel'](_0x38370e['element'],_0x38370e['quantity']))});continue;case'removeContainer':_0x386eb0['push']({'type':'deletion','content':c(_0x4edcce,'*Merge:*\x20%0',this['getItemLabel'](_0x38370e['element'],_0x38370e['quantity']))});continue;case'addFormat':_0x717d7e['push'](_0x38370e['key']);continue;case'removeFormat':_0x261cc9['push'](_0x38370e['key']);continue;default:_0x386eb0['push'](_0x38370e);}if(_0x717d7e['length']){const _0xe807e6=_0x717d7e['map'](_0x4520cb=>this['_attributeLabels']['has'](_0x4520cb)?this['_attributeLabels']['get'](_0x4520cb):_0x4520cb)['join'](',\x20');_0x386eb0['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0xe807e6)});}if(_0x261cc9['length']){const _0x10cd99=_0x261cc9['map'](_0x3a35e1=>this['_attributeLabels']['has'](_0x3a35e1)?this['_attributeLabels']['get'](_0x3a35e1):_0x3a35e1)['join'](',\x20');_0x386eb0['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x10cd99)});}return _0x386eb0;}['_handleCustomCallbackDescription'](_0x131a7a){for(const _0x288d59 of this['_customCallbacks']){const _0x28310d=_0x288d59(_0x131a7a);if(_0x28310d&&'type'in _0x28310d)return _0x28310d;}}['_handleAttributeSuggestionDescription'](_0x4e40c2,_0x10207d){const _0x376401=_0x10207d['data'],_0x3963ae=void 0x0===_0x376401['newValue']?'removeFormat':'addFormat';_0x4e40c2['push']({'type':_0x3963ae,'key':_0x376401['key']});}['_handleRenameSuggestionDescription'](_0x38a695,_0x33c45e){_0x38a695['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x33c45e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3619d8,_0x1fd90e,_0x40e29b){if(this['_addDescriptionItems'](_0x3619d8,_0x1fd90e),_0x40e29b&&_0x40e29b['getFirstRange']()&&!_0x1fd90e['getFirstRange']()['end']['isEqual'](_0x40e29b['getFirstRange']()['start'])){const _0x42eeea=_0x3619d8[_0x3619d8['length']-0x1],_0x51b6cc='insertion'==_0x1fd90e['type']?'add':'remove';_0x42eeea&&'text'==_0x42eeea['type']&&(_0x42eeea[_0x51b6cc]+='\x0a');}}}class U extends _0x505a46{['afterInit'](){const _0x117b31=this['editor'],_0x5266e2=_0x117b31['plugins']['get']('TrackChangesEditing');_0x117b31['commands']['get']('showAIAssistant')&&_0x5266e2['enableCommand']('showAIAssistant');}}class V extends _0x505a46{['afterInit'](){const _0x24473e=this['editor'],_0x39ee22=_0x24473e['locale'];if(!_0x24473e['plugins']['has']('AlignmentEditing'))return;const _0x2b2cd3=_0x24473e['plugins']['get']('TrackChangesEditing');_0x2b2cd3['enableDefaultAttributesIntegration']('alignment'),_0x2b2cd3['registerBlockAttribute']('alignment'),_0x2b2cd3['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x39ee22,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b73e4=this['editor'],_0x1b6020=_0x5b73e4['locale'];_0x5b73e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x555edb=>{if('formatBlock'!=_0x555edb['type'])return;const {data:_0x37abcc}=_0x555edb;if(_0x37abcc&&'alignment'==_0x37abcc['commandName']){const _0x207b47=_0x37abcc['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1b6020,'*Format:*\x20%0',function(_0x39f4e6){switch(_0x39f4e6){case'left':return c(_0x1b6020,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1b6020,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1b6020,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1b6020,'FORMAT_JUSTIFY_TEXT');}}(_0x207b47))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x505a46{['afterInit'](){const _0x54088f=this['editor'],_0x4faa3f=_0x54088f['plugins']['get']('TrackChangesEditing'),_0x487627=_0x54088f['locale'];for(const _0x3f2078 of Zt){if(!_0x54088f['plugins']['has'](_0x3f2078))continue;const _0x52a12e=_0x3f2078['slice'](0x0,-0x7)['toLowerCase'](),_0x15f141='FORMAT_'+_0x52a12e['toUpperCase']();_0x4faa3f['enableDefaultAttributesIntegration'](_0x52a12e),_0x4faa3f['registerInlineAttribute'](_0x52a12e),_0x4faa3f['descriptionFactory']['registerAttributeLabel'](_0x52a12e,c(_0x487627,_0x15f141));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25a3bc=this['editor'],_0x507e6e=_0x25a3bc['locale'],_0x2a38dd=_0x25a3bc['plugins']['get']('TrackChangesEditing');function _0x415139(_0xe32ba7,_0x583fee){_0x2a38dd['descriptionFactory']['registerDescriptionCallback'](_0x19c7f8=>{if('formatInline'!=_0x19c7f8['type'])return;const {data:_0x397310}=_0x19c7f8;return _0x397310&&_0x397310['commandName']===_0xe32ba7?_0x397310['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x507e6e,'*Format:*\x20%0',_0x583fee)}:{'type':'format','content':c(_0x507e6e,'*Remove\x20format:*\x20%0',_0x583fee)}:void 0x0;});}_0x415139('bold',c(_0x507e6e,'FORMAT_BOLD')),_0x415139('italic',c(_0x507e6e,'FORMAT_ITALIC')),_0x415139('underline',c(_0x507e6e,'FORMAT_UNDERLINE')),_0x415139('code',c(_0x507e6e,'FORMAT_CODE')),_0x415139('strikethrough',c(_0x507e6e,'FORMAT_STRIKETHROUGH')),_0x415139('subscript',c(_0x507e6e,'FORMAT_SUBSCRIPT')),_0x415139('superscript',c(_0x507e6e,'FORMAT_SUPERSCRIPT'));}}class G extends _0x505a46{['afterInit'](){const _0x23772e=this['editor'],_0x6ddb8d=_0x23772e['locale'];if(!_0x23772e['plugins']['has']('BlockQuoteEditing'))return;const _0xf08654=_0x23772e['plugins']['get']('TrackChangesEditing'),_0x504c87=this['editor']['commands']['get']('blockQuote');_0xf08654['enableCommand']('blockQuote',(_0x5a1765,_0x113413={})=>{const _0x3416b5=this['editor']['model']['document']['selection'],_0x51fc3b=_0x113413&&void 0x0!==_0x113413['forceValue']?_0x113413['forceValue']:!_0x504c87['value'];let _0x1ca0a7=[];if(_0x51fc3b){const _0x267387=Array['from'](_0x3416b5['getSelectedBlocks']())['filter'](_0x23c18d=>oo(_0x23c18d)||function(_0x78afea,_0x3c6c54){const _0x5e38c5=_0x3c6c54['checkChild'](_0x78afea['parent'],'blockQuote'),_0x474ef7=_0x3c6c54['checkChild'](['$root','blockQuote'],_0x78afea);return _0x5e38c5&&_0x474ef7;}(_0x23c18d,this['editor']['model']['schema']));_0x1ca0a7=to(_0x267387,_0x23772e['model']);}else{const _0x49f331=Array['from'](_0x3416b5['getSelectedBlocks']())['filter'](_0x5b0706=>oo(_0x5b0706));_0x1ca0a7=to(_0x49f331,_0x23772e['model']);}_0x23772e['model']['change'](()=>{for(const _0xd9c4fd of _0x1ca0a7)_0xf08654['markBlockFormat'](_0xd9c4fd,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x51fc3b}]});});}),_0xf08654['descriptionFactory']['registerDescriptionCallback'](_0x2abebb=>{const {data:_0xc1fce3}=_0x2abebb;if(_0xc1fce3&&'blockQuote'==_0xc1fce3['commandName']){const _0x5b731e=c(_0x6ddb8d,'ELEMENT_BLOCK_QUOTE');return _0xc1fce3['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x6ddb8d,'*Set\x20format:*\x20%0',_0x5b731e)}:{'type':'format','content':c(_0x6ddb8d,'*Remove\x20format:*\x20%0',_0x5b731e)};}});}}function oo(_0x35e2c2){return'blockQuote'==_0x35e2c2['parent']['name'];}class L extends _0x505a46{['afterInit'](){const _0x143c10=this['editor'],_0x37975a=_0x143c10['locale'],_0x4d4953=_0x143c10['plugins']['get']('TrackChangesEditing');_0x143c10['plugins']['has']('BookmarkEditing')&&(_0x4d4953['enableCommand']('insertBookmark'),_0x4d4953['enableDefaultAttributesIntegration']('updateBookmark'),_0x4d4953['registerBlockAttribute']('bookmarkId'),_0x4d4953['descriptionFactory']['registerDescriptionCallback'](_0x57123c=>{if('insertion'!=_0x57123c['type']&&'deletion'!=_0x57123c['type']&&'attribute'!=_0x57123c['type'])return;const _0x3da417=_0x57123c['getContainedElement']();if(null==_0x3da417)return;if(!_0x3da417['is']('element','bookmark'))return;const _0x3217f8=_0x3da417['getAttribute']('bookmarkId');if('insertion'==_0x57123c['type'])return{'type':'insertion','content':c(_0x37975a,'*Insert:*\x20%0','\x22'+_0x3217f8+'\x22\x20'+c(_0x37975a,'ELEMENT_BOOKMARK'))};if('deletion'==_0x57123c['type'])return{'type':'deletion','content':c(_0x37975a,'*Remove:*\x20%0','\x22'+_0x3217f8+'\x22\x20'+c(_0x37975a,'ELEMENT_BOOKMARK'))};const {data:_0x446fa6}=_0x57123c;if(!_0x446fa6||'bookmarkId'!=_0x446fa6['key'])return;return{'type':'format','content':c(_0x37975a,'*Set\x20bookmark:*\x20%0','\x22'+_0x446fa6['newValue']+'\x22')};}));}}class J extends _0x505a46{['afterInit'](){const _0x54998c=this['editor'];_0x54998c['plugins']['has']('CaseChange')&&(_0x54998c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x54998c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x54998c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x505a46{['afterInit'](){const _0x4b0926=this['editor'];_0x4b0926['commands']['get']('ckbox')&&_0x4b0926['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x505a46{['afterInit'](){const _0x422a54=this['editor'];if(!_0x422a54['plugins']['has']('CodeBlock'))return;const _0x50f3e8=_0x422a54['plugins']['get']('TrackChangesEditing'),_0x56e5dc=_0x422a54['locale'],_0x3fe87d=_0x422a54['config']['get']('codeBlock')['languages'],_0x34548b=_0x422a54['commands']['get']('codeBlock');_0x50f3e8['enableCommand']('indentCodeBlock'),_0x50f3e8['enableCommand']('outdentCodeBlock'),_0x50f3e8['enableCommand']('codeBlock',(_0x3571db,_0x604b9d={})=>{const _0x5e1f01=_0x422a54['model'],_0x606ba3=_0x422a54['model']['document']['selection'],_0x59cdfa=_0x604b9d&&void 0x0!==_0x604b9d['forceValue']?_0x604b9d['forceValue']:!_0x34548b['value'];let _0x3da2a9;_0x604b9d['language']||(_0x604b9d['language']=_0x3fe87d[0x0]['language']),_0x3da2a9=_0x59cdfa?Array['from'](_0x606ba3['getSelectedBlocks']())['filter'](_0x45b1ce=>eo(_0x45b1ce)||function(_0x44f7f2,_0x81f432){if(_0x44f7f2['is']('rootElement')||_0x81f432['isLimit'](_0x44f7f2))return!0x1;return _0x81f432['checkChild'](_0x44f7f2['parent'],'codeBlock');}(_0x45b1ce,_0x5e1f01['schema'])):Array['from'](_0x606ba3['getSelectedBlocks']())['filter'](_0x1360f3=>eo(_0x1360f3));const _0x52c697=to(_0x3da2a9,_0x5e1f01);_0x5e1f01['change'](()=>{for(const _0x619b55 of _0x52c697)_0x50f3e8['markBlockFormat'](_0x619b55,{'commandName':'codeBlock','commandParams':[{..._0x604b9d,'forceValue':_0x59cdfa}],'formatGroupId':'blockName'});});}),(_0x50f3e8['descriptionFactory']['registerElementLabel']('codeBlock',_0xdb6f63=>c(_0x56e5dc,'ELEMENT_CODE_BLOCK',_0xdb6f63)),_0x50f3e8['descriptionFactory']['registerDescriptionCallback'](_0xad0cd5=>{if('formatBlock'!=_0xad0cd5['type'])return;const _0x16401a=_0x56e5dc['t'],{data:_0x447fab}=_0xad0cd5;if(!_0x447fab||'codeBlock'!=_0x447fab['commandName'])return;const _0x443ce7=_0x447fab['commandParams'][0x0]['language'],_0xed89e0=_0x16401a(_0x3fe87d['find'](_0x56d5eb=>_0x56d5eb['language']===_0x443ce7)['label'])['toLowerCase']();return _0x447fab['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x56e5dc,'*Set\x20format:*\x20%0',c(_0x56e5dc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xed89e0+')')}:{'type':'format','content':c(_0x56e5dc,'*Remove\x20format:*\x20%0',c(_0x56e5dc,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4fc626){return'codeBlock'==_0x4fc626['name'];}class q extends _0x505a46{['afterInit'](){const _0x37ab74=this['editor'];if(!_0x37ab74['plugins']['has']('CommentsEditing'))return;_0x37ab74['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x12c6b8,_0x31923a,_0x23c94d){const _0x2b566e=[];for(const _0xf235df of _0x31923a['getItems']())_0xf235df['hasAttribute'](_0x12c6b8)&&_0x2b566e['push'](_0x23c94d['createRangeOn'](_0xf235df));return _0x2b566e;}function Fe(_0x172fc8,_0x37591e,{showActiveMarker:_0x4f333d=!0x0}={}){const _0x210f4b=_0x172fc8['plugins']['get']('TrackChangesEditing');return(_0x12e3f4,_0x220834,_0x334714)=>{if(!_0x334714['consumable']['test'](_0x220834['markerRange'],_0x12e3f4['name']))return;const _0x366b2b=_0x220834['markerRange']['getWalker'](),_0x50131c=_0x220834['markerRange']['start'],_0x4e3f7a=_0x172fc8['model']['schema'];let _0x22f9cf=null,_0x45931f=null,_0xffceda=!0x1,_0x3d0038=!0x1;for(const _0x19c204 of _0x366b2b){const _0x55268b=_0x19c204['item'];_0xffceda=_0xffceda||_0x4e3f7a['isContent'](_0x55268b);const _0x3aa013=_0x334714['mapper']['toViewElement'](_0x55268b);if(_0x3aa013&&_0x3aa013['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x19c204['type']&&(_0x4e3f7a['isBlock'](_0x55268b)&&!_0x4e3f7a['isLimit'](_0x55268b)&&(_0x55268b['nextSibling']||_0x50131c['isAtEnd']?_0x22f9cf&&_0x22f9cf['parent']==_0x55268b||(_0x22f9cf=_0x55268b,_0x2202e9(_0x19c204['previousPosition']),_0x3d0038=!0x0):_0x45931f=_0x45931f||_0x19c204['previousPosition']));}function _0x2202e9(_0x30611b){const {authorId:_0x4241f8}=_0x210f4b['_splitMarkerName'](_0x220834['markerName']),_0x317cf2=_0x334714['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x37591e,'data-author-id':_0x4241f8}),_0x1e17b1=_0x334714['mapper']['toViewPosition'](_0x30611b);_0x4f333d&&_0x210f4b['activeMarkers']['includes'](_0x220834['markerName'])&&_0x334714['writer']['addClass']('ck-suggestion-marker--active',_0x317cf2),_0x334714['writer']['insert'](_0x1e17b1,_0x317cf2),_0x334714['mapper']['bindElementToMarker'](_0x317cf2,_0x220834['markerName']);}_0xffceda||_0x3d0038||!_0x45931f||_0x2202e9(_0x45931f);};}class z extends _0x505a46{static get['requires'](){return[_0x2d27c2];}['init'](){const _0x31a0a2=this['editor'],_0x52a4fb=_0x31a0a2['plugins']['get']('TrackChangesEditing');_0x52a4fb['enableCommand']('delete');const _0x12c9e2=_0x31a0a2['commands']['get']('deleteForward');_0x52a4fb['enableCommand']('deleteForward',(_0x9f3f6b,_0x120654={})=>{const _0x3da38a=_0x31a0a2['model']['createSelection'](_0x31a0a2['model']['document']['selection']);_0x3da38a['isCollapsed']&&_0x31a0a2['model']['modifySelection'](_0x3da38a,{'direction':'forward','unit':_0x120654['unit']});const _0x12ae74=_0x3da38a['getFirstRange'](),_0x4043dc=_0x3b5a68['fromRange'](_0x12ae74);let _0x27c4ff;_0x9f3f6b(_0x120654),_0x27c4ff='$graveyard'==_0x4043dc['root']['rootName']?_0x31a0a2['model']['createRange'](_0x12ae74['start']):_0x31a0a2['model']['createRange'](_0x4043dc['start'],_0x4043dc['end']),_0x4043dc['detach'](),_0x31a0a2['model']['enqueueChange'](_0x12c9e2['buffer']['batch'],_0x311b6d=>{_0x12c9e2['buffer']['lock'](),_0x311b6d['setSelection'](_0x311b6d['createRange'](_0x27c4ff['end'])),_0x12c9e2['buffer']['unlock']();});}),_0x31a0a2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x31a0a2,'merge'),{'priority':'high'}),_0x31a0a2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x49453a,_0x1d234c,_0x55ad90)=>{_0x55ad90['options']['showSuggestionHighlights']&&Fe(_0x31a0a2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x49453a,_0x1d234c,_0x55ad90);},{'priority':'high'}),_0x31a0a2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x57b921,_0x5c46af,_0x55623e)=>{const _0x4d7673=_0x55623e['mapper']['markerNameToElements'](_0x5c46af['markerName']);if(_0x4d7673){for(const _0x3ad5b5 of _0x4d7673)_0x3ad5b5['is']('uiElement')&&(_0x55623e['mapper']['unbindElementFromMarkerName'](_0x3ad5b5,_0x5c46af['markerName']),_0x55623e['writer']['remove'](_0x3ad5b5));}},{'priority':'high'});}}class W extends _0x505a46{['afterInit'](){const _0x5adf9e=this['editor'];if(!_0x5adf9e['plugins']['has']('ListEditing'))return;const _0x3a0df5=_0x5adf9e['locale'],_0x462066=_0x5adf9e['plugins']['get']('TrackChangesEditing'),_0x41fcdc=_0x5adf9e['plugins']['has']('TodoListEditing'),_0x26c14f=!!_0x5adf9e['config']['get']('list.multiBlock');function _0x61d8c5(_0x4091ad){return{'type':'format','content':''+c(_0x3a0df5,'*Set\x20format:*\x20%0',_0x4091ad)};}function _0xd7ecbd(_0x5ee82a){return{'type':'format','content':''+c(_0x3a0df5,'*Remove\x20format:*\x20%0',_0x5ee82a)};}_0x462066['enableDefaultAttributesIntegration']('numberedList'),_0x462066['enableDefaultAttributesIntegration']('bulletedList'),_0x462066['enableDefaultAttributesIntegration']('customNumberedList'),_0x462066['enableDefaultAttributesIntegration']('customBulletedList'),_0x462066['enableDefaultAttributesIntegration']('indentList'),_0x462066['enableDefaultAttributesIntegration']('outdentList'),_0x462066['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x462066['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x462066['registerBlockAttribute']('listItemId'),_0x462066['registerBlockAttribute']('listType'),_0x462066['registerBlockAttribute']('listIndent'),_0x26c14f&&(_0x462066['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x462066['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x41fcdc&&(_0x462066['enableDefaultAttributesIntegration']('todoList'),_0x462066['enableDefaultAttributesIntegration']('checkTodoList'),_0x462066['registerBlockAttribute']('todoListChecked'),_0x462066['descriptionFactory']['registerDescriptionCallback'](_0x298892=>{const {data:_0x40e29a}=_0x298892;if(_0x40e29a&&'todoListChecked'==_0x40e29a['key'])return{'type':'format','content':_0x40e29a['newValue']?c(_0x3a0df5,'*Check\x20item*'):c(_0x3a0df5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x96418c=>{if(_0x96418c['batch']['isUndo'])return!0x1;let _0x4251cd=!0x1;const _0x3232ef=_0x462066['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f98d2=>'todoListChecked'===_0x462066['_getAttributeKey'](_0x2f98d2));for(const _0xf9f046 of _0x3232ef){'todo'!=_0xf9f046['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x462066['_findSuggestions'](_0xf9f046['getFirstRange'](),'attribute')['find'](_0x1c444f=>'listType'===_0x462066['_getAttributeKey'](_0x1c444f['suggestion']))||(_0x96418c['removeMarker'](_0xf9f046['getFirstMarker']()),_0x4251cd=!0x0));}return _0x4251cd;})),_0x462066['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x3a0df5,'FORMAT_INDENT'));const _0xaf0497={'type':'format','content':''};_0x462066['descriptionFactory']['registerDescriptionCallback'](_0x3a027d=>{const {data:_0x3744de}=_0x3a027d;if(!_0x3744de||'listType'!=_0x3744de['key'])return;let _0x321a36=_0x3a027d['head'];for(;_0x321a36;){if(_0x321a36['data']&&(('listStyle'==_0x321a36['data']['key']||'listMarkerStyle'==_0x321a36['data']['key'])&&(_0x321a36['data']['newValue']&&'default'!=_0x321a36['data']['newValue']||'default'!=_0x321a36['data']['oldValue']&&!_0x3744de['newValue'])||!_0x26c14f&&_0x321a36['data']['key']==u))return _0xaf0497;_0x321a36=_0x321a36['next'];}if(null==_0x3744de['newValue'])switch(_0x3744de['oldValue']){case'bulleted':return _0xd7ecbd(c(_0x3a0df5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xd7ecbd(c(_0x3a0df5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xd7ecbd(c(_0x3a0df5,'ELEMENT_TODO_LIST'));}switch(_0x3744de['newValue']){case'bulleted':return _0x61d8c5(c(_0x3a0df5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x61d8c5(c(_0x3a0df5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x61d8c5(c(_0x3a0df5,'ELEMENT_TODO_LIST'));}}),_0x462066['descriptionFactory']['registerDescriptionCallback'](_0x165dc5=>{const {data:_0x14be00}=_0x165dc5;if(_0x14be00&&'listIndent'==_0x14be00['key'])return null==_0x14be00['newValue']||null==_0x14be00['oldValue']&&0x0==_0x14be00['newValue']?_0xaf0497:void 0x0;}),_0x462066['descriptionFactory']['registerDescriptionCallback'](_0x2c5ccc=>{if('attribute'!=_0x2c5ccc['type'])return;const {data:_0x31e189}=_0x2c5ccc;if(!_0x31e189||'listItemId'!=_0x31e189['key'])return;const _0x365a02=Te(_0x2c5ccc);return'newValue'==_0x365a02?{'type':'format','content':c(_0x3a0df5,'*Merge:*\x20list\x20item')}:'oldValue'==_0x365a02?{'type':'format','content':c(_0x3a0df5,'*Split:*\x20list\x20item')}:_0xaf0497;}),_0x5adf9e['model']['document']['registerPostFixer'](_0x499265=>this['listItemIdFixer'](_0x499265)),_0x5adf9e['model']['document']['registerPostFixer'](_0x5c282f=>this['noTrackChangesFixer'](_0x5c282f)),_0x5adf9e['model']['document']['on']('change:data',(_0x5aaca0,_0x15e93e)=>{if(_0x15e93e['isUndo']||!_0x15e93e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2f3974){if(_0x2f3974['batch']['isUndo']||!_0x2f3974['batch']['isLocal'])return!0x1;let _0x258544=!0x1;const _0x413cd7=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x281e64=>_0x281e64['data']&&'listItemId'==_0x281e64['data']['key'])['filter'](_0x2039c9=>_0x2039c9['data']['newValue']&&_0x2039c9['data']['oldValue']);for(const _0x4883c of _0x413cd7)Te(_0x4883c)||(_0x2f3974['removeMarker'](_0x4883c['getFirstMarker']()),_0x258544=!0x0);return _0x258544;}['noTrackChangesFixer'](_0x3b64ae){if(_0x3b64ae['batch']['isUndo']||!_0x3b64ae['batch']['isLocal'])return!0x1;const _0x1f51e3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1f51e3['trackChangesCommand']['value'])return!0x1;let _0x5be77c=!0x1;const _0x47a649=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4d91e0=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x405ffd=>'attribute'==_0x405ffd['type'])['filter'](_0x2ab933=>_0x47a649['includes'](_0x2ab933['attributeKey']));if(0x0==_0x4d91e0['length'])return _0x5be77c;for(const _0x4ab3c0 of _0x4d91e0){const _0xec506=_0x1f51e3['_findSuggestions'](_0x4ab3c0['range'],'attribute')['filter'](_0x588696=>!_0x588696['meta']['isNextTo'])['map'](_0x1bcf09=>_0x1bcf09['suggestion'])['filter'](_0x53b368=>{const _0x20eae9=_0x1f51e3['_getAttributeKey'](_0x53b368);return _0x47a649['includes'](_0x20eae9);});if(_0xec506['length']){for(const _0x227261 of _0xec506)_0x3b64ae['removeMarker'](_0x227261['getFirstMarker']());_0x5be77c=!0x0;}}return _0x5be77c;}['assureChains'](){const _0x20aa65=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3af576=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1ca30e;const _0x2a8157=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x365e25=>{if(_0x365e25['data']['oldRange']||!_0x365e25['data']['newRange'])return null;if(!_0x365e25['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5b3061}=_0x20aa65['_splitMarkerName'](_0x365e25['name']);if(!_0x20aa65['hasSuggestion'](_0x5b3061))return null;const _0x4e22da=_0x20aa65['getSuggestion'](_0x5b3061);return _0x3af576['includes'](_0x4e22da['data']['key']);})['map'](_0x3e5d95=>{const {id:_0x38b351}=_0x20aa65['_splitMarkerName'](_0x3e5d95['name']),_0x210fd3=_0x20aa65['getSuggestion'](_0x38b351);return _0x1ca30e=_0x210fd3['attributes']['groupId'],_0x210fd3['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2a8157['size'])return;const _0x446782=_0x20aa65['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x362e03=>'attribute'==_0x362e03['type']&&_0x362e03['data']&&_0x3af576['includes'](_0x362e03['data']['key'])&&_0x362e03['attributes']['groupId']!=_0x1ca30e)['map'](_0x39463d=>({'listItem':_0x39463d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x39463d['attributes']['groupId']})),_0x45437c=new Set();for(const {groupId:_0x26c5b3,listItem:_0x3c9286}of _0x446782)_0x2a8157['has'](_0x3c9286)&&_0x45437c['add'](_0x26c5b3);for(const _0x1c7ecc of _0x20aa65['getSuggestions']())_0x45437c['has'](_0x1c7ecc['attributes']['groupId'])&&_0x1c7ecc['setAttribute']('groupId',_0x1ca30e);}['_supportLegacySuggestions'](){const _0x5c2332=this['editor'],_0x414c74=_0x5c2332['locale'],_0x4fc242=_0x5c2332['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4fc242['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x251071,_0x2dd24a){const _0x3e4063=[];for(let _0x2b42d3 of _0x251071)_0x2b42d3['start']['nodeAfter']===_0x2b42d3['end']['parent']&&(_0x2b42d3=_0x5c2332['model']['createRange'](_0x5c2332['model']['createPositionAt'](_0x2b42d3['start']['nodeAfter'],0x0))),_0x3e4063['push'](_0x2b42d3);_0x5c2332['model']['change'](_0xddfeb2=>{const _0x5057ff=_0x5c2332['model']['document']['selection'],_0x832fda=Array['from'](_0x5057ff['getRanges']())['map'](_0x561d44=>_0x3b5a68['fromRange'](_0x561d44));_0xddfeb2['setSelection'](_0x3e4063),_0x5c2332['commands']['get'](_0x2dd24a['commandName'])['refresh'](),_0x2dd24a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5c2332['execute'](_0x2dd24a['commandName'],..._0x2dd24a['commandParams']),_0xddfeb2['setSelection'](_0x832fda);for(const _0x2d99ee of _0x832fda)_0x2d99ee['detach']();});}),_0x4fc242['descriptionFactory']['registerElementLabel'](function(_0x3046d3){const _0x1537d2=!_0x5c2332['model']['schema']['isObject'](_0x3046d3),_0x58e791=_0x3046d3['previousSibling'],_0x2a4718=_0x3046d3['nextSibling'],_0xde5301=_0x3046d3['getAttribute']('listItemId'),_0x57611a=!_0x58e791||_0x58e791['getAttribute']('listItemId')!==_0xde5301,_0x4eca28=!_0x2a4718||_0x2a4718['getAttribute']('listItemId')!==_0xde5301;return _0x1537d2&&Boolean(_0xde5301)&&_0x57611a&&_0x4eca28;},_0x104411=>c(_0x414c74,'ELEMENT_LIST_ITEM',_0x104411));}['_registerLegacyDescription'](){const _0x552fb6=this['editor'],_0x3f9a07=_0x552fb6['locale'];function _0x56f95(_0x421599){const _0x5b2200=_0x552fb6['commands']['get']('bulletedList')['value'],_0x1948bc=_0x552fb6['commands']['get']('numberedList')['value'];return'numberedList'===_0x421599?_0x5b2200:_0x1948bc;}_0x552fb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x309056){if('formatBlock'!=_0x309056['type'])return;const {data:_0x42d4a0}=_0x309056;if(!_0x42d4a0)return;let _0x419afc,_0xbcdf31,_0x2ea4a1,_0x14cf34;switch(_0x42d4a0['commandName']){case'bulletedList':_0x2ea4a1=_0x42d4a0['commandParams'][0x0]['forceValue'],_0x14cf34=_0x56f95(_0x42d4a0['commandName']),_0x419afc=_0x2ea4a1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x14cf34&&_0x552fb6['config']['get']('list.multiBlock')||(_0x419afc='*Change\x20to:*\x20%0'),_0xbcdf31={'type':'format','content':c(_0x3f9a07,_0x419afc,c(_0x3f9a07,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2ea4a1=_0x42d4a0['commandParams'][0x0]['forceValue'],_0x14cf34=_0x56f95(_0x42d4a0['commandName']),_0x419afc=_0x2ea4a1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x14cf34&&_0x552fb6['config']['get']('list.multiBlock')||(_0x419afc='*Change\x20to:*\x20%0'),_0xbcdf31={'type':'format','content':c(_0x3f9a07,_0x419afc,c(_0x3f9a07,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x419afc='*Indent:*\x20%0',_0xbcdf31={'type':'format','content':c(_0x3f9a07,_0x419afc,c(_0x3f9a07,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x419afc=function(_0x166f94){const _0x339648=_0x166f94['getFirstRange']();let _0x1f2e10=_0x339648['start']['nodeAfter'];for(;_0x1f2e10&&_0x339648['containsItem'](_0x1f2e10);){if(_0x1f2e10['getAttribute']('listIndent')>0x0)return!0x1;_0x1f2e10=_0x1f2e10['nextSibling'];}return!0x0;}(_0x309056)?c(_0x3f9a07,'*Format:*\x20remove\x20from\x20%0',c(_0x3f9a07,function(_0xae6391){return'ELEMENT_'+_0xae6391['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x309056))):c(_0x3f9a07,'*Outdent:*\x20%0',c(_0x3f9a07,'ELEMENT_LIST_ITEM')),_0xbcdf31={'type':'format','content':_0x419afc};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x42d4a0['multipleBlocks']&&(_0x419afc='*Merge:*\x20%0',_0xbcdf31={'type':'deletion','content':c(_0x3f9a07,_0x419afc,c(_0x3f9a07,'ELEMENT_LIST_ITEM'))});}return _0xbcdf31;});}}function Te(_0x3d0b6a){let _0x24e6b6=_0x3d0b6a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x24e6b6;){const _0x1004e7=_0x24e6b6['getAttribute']('listItemId');if(!_0x1004e7)return!0x1;if(_0x1004e7==_0x3d0b6a['data']['newValue'])return'newValue';if(_0x1004e7==_0x3d0b6a['data']['oldValue'])return'oldValue';_0x24e6b6=_0x24e6b6['previousSibling'];}return!0x1;}class Se extends _0x505a46{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x503c2e=this['editor']['config']['get']('list.properties'),_0x276f54=this['editor']['plugins']['get']('TrackChangesEditing');_0x503c2e['styles']&&(_0x276f54['enableDefaultAttributesIntegration']('listStyle'),_0x276f54['registerBlockAttribute']('listStyle')),_0x503c2e['reversed']&&(_0x276f54['enableDefaultAttributesIntegration']('listReversed'),_0x276f54['registerBlockAttribute']('listReversed')),_0x503c2e['startIndex']&&(_0x276f54['enableDefaultAttributesIntegration']('listStart'),_0x276f54['registerBlockAttribute']('listStart'));const _0x562970={'type':'format','content':''};_0x276f54['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xf018d=this['editor']['locale'];_0x276f54['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0xf018d,'FORMAT_LIST_REVERSED')),_0x276f54['descriptionFactory']['registerDescriptionCallback'](_0x2dba67=>{const {data:_0x575ab7}=_0x2dba67;if(_0x575ab7&&'listReversed'==_0x575ab7['key'])return null==_0x575ab7['newValue']||0x0==_0x575ab7['newValue']&&null==_0x575ab7['oldValue']?_0x562970:void 0x0;}),_0x276f54['descriptionFactory']['registerAttributeLabel']('listStart',c(_0xf018d,'FORMAT_LIST_START')),_0x276f54['descriptionFactory']['registerDescriptionCallback'](_0xc3eacc=>{const {data:_0x29fd49}=_0xc3eacc;if(_0x29fd49&&'listStart'==_0x29fd49['key'])return null==_0x29fd49['newValue']||0x1==_0x29fd49['newValue']&&null==_0x29fd49['oldValue']?_0x562970:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x25009e=>{if(_0x25009e['batch']['isUndo'])return!0x1;let _0x4d0fbb=!0x1;const _0x26cbaa=_0x276f54['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35eb4c=>{const _0x2cbba1=_0x276f54['_getAttributeKey'](_0x35eb4c);return'listStart'==_0x2cbba1||'listReversed'==_0x2cbba1;});for(const _0x1671ee of _0x26cbaa){const _0xdd8494=_0x1671ee['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xdd8494||'customNumbered'==_0xdd8494)continue;_0x276f54['_findSuggestions'](_0x1671ee['getFirstRange'](),'attribute')['find'](_0x4c11e0=>'listType'==_0x276f54['_getAttributeKey'](_0x4c11e0['suggestion']))||(_0x25009e['removeMarker'](_0x1671ee['getFirstMarker']()),_0x4d0fbb=!0x0);}return _0x4d0fbb;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xd203c5){const _0x1162e9=this['editor']['locale'],{data:_0x26c602}=_0xd203c5,_0x56b886={'type':'format','content':''};if(!_0x26c602||'listStyle'!=_0x26c602['key'])return;if(!_0x26c602['oldValue'])return'default'==_0x26c602['newValue']?_0x56b886:{'type':'format','content':''+c(_0x1162e9,'*Set\x20format:*\x20%0',c(_0x1162e9,this['_getTranslationKeyForListStyle'](_0x26c602['newValue'])))};if(!_0x26c602['newValue']){if('default'==_0x26c602['oldValue'])return _0x56b886;let _0x260828=_0xd203c5['head'];for(;_0x260828;){if(_0x260828['data']&&'listType'==_0x260828['data']['key']&&_0x260828['data']['newValue'])return _0x56b886;_0x260828=_0x260828['next'];}return{'type':'format','content':''+c(_0x1162e9,'*Remove\x20format:*\x20%0',c(_0x1162e9,this['_getTranslationKeyForListStyle'](_0x26c602['oldValue'])))};}if('default'!=_0x26c602['newValue'])return{'type':'format','content':''+c(_0x1162e9,'*Set\x20format:*\x20%0',c(_0x1162e9,this['_getTranslationKeyForListStyle'](_0x26c602['newValue'])))};let _0x585ed9=_0xd203c5['head'];for(;_0x585ed9;){if(_0x585ed9['data']&&'listType'==_0x585ed9['data']['key']&&_0x585ed9['data']['newValue']&&_0x585ed9['data']['oldValue'])return _0x56b886;_0x585ed9=_0x585ed9['next'];}return{'type':'format','content':c(_0x1162e9,'*Set\x20format:*\x20%0',c(_0x1162e9,'ELEMENT_'+_0xd203c5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x49b672=this['editor'],_0x1b6e88=_0x49b672['locale'];_0x49b672['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2db450=>{if('formatBlock'!=_0x2db450['type'])return;const {data:_0x688493}=_0x2db450;if(!_0x688493)return;let _0x1a20b8,_0x28852a;switch(_0x688493['commandName']){case'listStyle':_0x1a20b8='*Change\x20to:*\x20%0',_0x28852a={'type':'format','content':c(_0x1b6e88,_0x1a20b8,c(_0x1b6e88,this['_getTranslationKeyForListStyle'](_0x688493['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1a20b8=_0x688493['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x28852a={'type':'format','content':c(_0x1b6e88,_0x1a20b8)};break;case'listStart':_0x1a20b8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x28852a={'type':'format','content':c(_0x1b6e88,_0x1a20b8,_0x688493['commandParams'][0x0]['startIndex'])};}return _0x28852a;});}['_getTranslationKeyForListStyle'](_0x195f27){return'ELEMENT_'+function(_0x325e1e){if(_e['includes'](_0x325e1e))return'bulleted';if(Re['includes'](_0x325e1e))return'numbered';return null;}(_0x195f27)['toUpperCase']()+'_LIST_'+_0x195f27['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x505a46{['afterInit'](){const _0x5bb197=this['editor'];_0x5bb197['commands']['get']('emoji')&&_0x5bb197['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x505a46{static get['requires'](){return[_0x43dd68];}['init'](){const _0x4f4e24=this['editor'],_0x357e8f=_0x4f4e24['plugins']['get']('TrackChangesEditing'),_0x353303=_0x4f4e24['commands']['get']('enter');_0x357e8f['enableCommand']('enter',()=>{_0x4f4e24['model']['change'](_0x4c2dfb=>{const _0x3e2470=_0x4f4e24['model']['document']['selection'],_0x1a781c=_0x3e2470['getFirstPosition'](),_0x18a529=_0x3b5a68['fromRange'](_0x3e2470['getFirstRange']());if(_0x353303['enterBlock'](_0x4c2dfb)){const _0x2d7b79=_0x4f4e24['model']['createPositionAt'](_0x1a781c['parent']['nextSibling'],0x0),_0x400939=_0x4c2dfb['createRange'](_0x1a781c,_0x2d7b79);_0x357e8f['markInsertion'](_0x400939);}else _0x4c2dfb['setSelection'](_0x4c2dfb['createRange'](_0x18a529['end']));_0x18a529['detach'](),_0x353303['fire']('afterExecute',{'writer':_0x4c2dfb});});}),_0x4f4e24['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x4f4e24,'split'),{'priority':'high'}),_0x4f4e24['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4a6746,_0x285f54,_0x51ec4f)=>{const _0x47b7c3=_0x51ec4f['mapper']['markerNameToElements'](_0x285f54['markerName']);if(_0x47b7c3){for(const _0x4a7da0 of _0x47b7c3)_0x4a7da0['hasClass']('ck-suggestion-marker-split')&&(_0x51ec4f['mapper']['unbindElementFromMarkerName'](_0x4a7da0,_0x285f54['markerName']),_0x51ec4f['writer']['remove'](_0x4a7da0));}},{'priority':'high'}),_0x4f4e24['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x13e151,_0x19640d,_0x381b33)=>{_0x381b33['options']['showSuggestionHighlights']&&Fe(_0x4f4e24,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x13e151,_0x19640d,_0x381b33);},{'priority':'high'});}}class Z extends _0x505a46{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x17ae9c=this['editor']['plugins']['get']('TrackChangesEditing');_0x17ae9c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x17ae9c['enableCommand']('findNext'),_0x17ae9c['enableCommand']('findPrevious'),_0x17ae9c['enableCommand']('replace'),_0x17ae9c['enableCommand']('replaceAll');}['handleFindCommand'](_0x9dfbba,_0x2ed30b,_0x46ec9a={}){const _0x20ee61=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x9dfbba(_0x9ed3b4=>{let _0x5a6192=('string'==typeof _0x2ed30b?_0x20ee61['findByTextCallback'](_0x2ed30b,_0x46ec9a):_0x2ed30b)(_0x9ed3b4);Array['isArray'](_0x5a6192)&&(_0x5a6192={'results':_0x5a6192,'searchText':'string'==typeof _0x2ed30b?_0x2ed30b:''});const _0x1809f5=_0x5a6192['results']['filter'](_0x3352bb=>!0x1===this['_isInDeletionRange'](_0x3352bb,_0x9ed3b4['item']));return{..._0x5a6192,'results':_0x1809f5};},_0x46ec9a);}['_isInDeletionRange'](_0xc8a776,_0x1b8475){const _0x42ba4c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b8475,_0xc8a776['start']),this['editor']['model']['createPositionAt'](_0x1b8475,_0xc8a776['end']));for(const _0xf447a8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x42ba4c['getIntersection'](_0xf447a8['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 _0x505a46{['afterInit'](){const _0x222422=this['editor']['locale'],_0x4cdf54=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x43b777,commandName:_0xfa3e42}of ro)this['editor']['plugins']['has'](_0x43b777)&&(_0x4cdf54['enableDefaultAttributesIntegration'](_0xfa3e42),_0x4cdf54['registerInlineAttribute'](_0xfa3e42));_0x4cdf54['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x222422,'FORMAT_FONT_SIZE')),_0x4cdf54['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x222422,'FORMAT_FONT_FAMILY')),_0x4cdf54['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x222422,'FORMAT_FONT_COLOR')),_0x4cdf54['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x222422,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a05d5=this['editor'],_0x2cc2dc=_0x1a05d5['locale'];_0x1a05d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1385ee=>{const _0x4967f1=_0x2cc2dc['t'];if('formatInline'!=_0x1385ee['type'])return;const {data:_0x179cf2}=_0x1385ee;if(null!=_0x179cf2){if('fontSize'==_0x179cf2['commandName']){const _0x5def69=_0x179cf2['commandParams'][0x0]['value'];if(_0x5def69){const _0x32eba6=_0x4967f1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4e384d=>_0x4e384d['model']==_0x5def69)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2cc2dc,'*Set\x20font\x20size:*\x20%0',_0x32eba6)};}return{'type':'format','content':c(_0x2cc2dc,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x179cf2['commandName']){const _0x284af2=_0x179cf2['commandParams'][0x0]['value'];return _0x284af2?{'type':'format','content':c(_0x2cc2dc,'*Set\x20font\x20family:*\x20%0',_0x284af2)}:{'type':'format','content':c(_0x2cc2dc,'*Reset\x20font\x20family*')};}if('fontColor'==_0x179cf2['commandName']){const _0x4e747d=_0x179cf2['commandParams'][0x0]['value'];if(_0x4e747d){const _0x557583=_0x46b6d9(this['editor']['config']['get']('fontColor.colors'))['find'](_0x45a887=>_0x45a887['model']==_0x4e747d);let _0x89fa9c=_0x4e747d,_0x5260b8='';return _0x557583&&(_0x89fa9c=_0x557583['label'],_0x5260b8=_0x4967f1(_0x89fa9c)['toLowerCase']()),{'type':'format','content':c(_0x2cc2dc,'*Set\x20font\x20color:*\x20%0',_0x5260b8)['trim'](),'color':{'value':_0x4e747d,'title':_0x5260b8||_0x89fa9c}};}return{'type':'format','content':c(_0x2cc2dc,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x179cf2['commandName']){const _0x13a419=_0x179cf2['commandParams'][0x0]['value'];if(_0x13a419){const _0x56f4ec=_0x46b6d9(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x280f46=>_0x280f46['model']==_0x13a419);let _0x2b212a=_0x13a419,_0x36f2f3='';return _0x56f4ec&&(_0x2b212a=_0x56f4ec['label'],_0x36f2f3=_0x4967f1(_0x2b212a)['toLowerCase']()),{'type':'format','content':c(_0x2cc2dc,'*Set\x20font\x20background\x20color:*\x20%0',_0x36f2f3)['trim'](),'color':{'value':_0x13a419,'title':_0x36f2f3||_0x2b212a}};}return{'type':'format','content':c(_0x2cc2dc,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x505a46{['afterInit'](){const _0x2b4432=this['editor'],_0x2330e1=_0x2b4432['plugins']['get']('TrackChangesEditing'),_0x61d9e9=_0x2b4432['commands']['get']('copyFormat'),_0x4d8402=_0x2b4432['commands']['get']('pasteFormat');_0x61d9e9&&_0x4d8402&&(_0x2330e1['enableDefaultAttributesIntegration']('pasteFormat'),_0x2330e1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x21bd22=this['editor'],_0xe36dd8=_0x21bd22['locale'];_0x21bd22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x307326=>{if('formatBlock'!=_0x307326['type']&&'formatInline'!=_0x307326['type'])return;const {data:_0x2840dd}=_0x307326;if(_0x2840dd&&'pasteFormat'===_0x2840dd['commandName']){const _0x3a3b77=[],_0x1603cf=_0x2840dd['commandParams'][0x0];for(const [_0x5c338e,_0x1c1e3d]of Object['entries'](_0x1603cf))_0x3a3b77['push'](so(_0x21bd22,_0x5c338e,_0x1c1e3d));return _0x3a3b77['length']?{'type':'format','content':c(_0xe36dd8,'*Set\x20format\x20to:*\x20%0',_0x3a3b77['join'](',\x20'))}:{'type':'format','content':c(_0xe36dd8,'*Remove\x20all\x20formatting*')};}});}}function so(_0x587ea7,_0x13ca00,_0x726bac){const _0x14bf13=_0x587ea7['locale']['t'],_0x3278c3=_0x13ca00['split'](/(?=[A-Z])/)['join']('\x20'),_0x50e6cc=_0x14bf13(_0x3278c3['charAt'](0x0)['toUpperCase']()+_0x3278c3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x726bac)return _0x50e6cc;if('fontColor'===_0x13ca00||'fontBackgroundColor'===_0x13ca00){const _0x4be691=_0x46b6d9(_0x587ea7['config']['get']('fontColor.colors'))['find'](_0x288f11=>_0x288f11['model']==_0x726bac);return _0x50e6cc+'\x20('+(_0x4be691?_0x14bf13(_0x4be691['label'])['toLowerCase']():_0x726bac)+')';}if('fontSize'===_0x13ca00&&isNaN(parseFloat(_0x726bac))){const _0x54eed6=_0x587ea7['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x587ea7['config']['get']('fontSize.options'))['find'](_0x28e106=>_0x28e106['model']==_0x726bac);return _0x50e6cc+'\x20('+(_0x54eed6?_0x14bf13(_0x54eed6['title'])['toLowerCase']():_0x726bac)+')';}return _0x50e6cc+'\x20('+_0x726bac+')';}class nt extends _0x505a46{['_headingOptions'];['afterInit'](){const _0x3d644c=this['editor'];if(!_0x3d644c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3d644c['config']['get']('heading.options');const _0x30b35e=_0x3d644c['locale'],_0x561810=_0x3d644c['plugins']['get']('TrackChangesEditing');_0x561810['enableDefaultAttributesIntegration']('heading');for(const _0x24877c of this['_headingOptions'])'paragraph'!=_0x24877c['model']&&_0x561810['descriptionFactory']['registerElementLabel'](_0x24877c['model'],_0x2fac01=>{const _0x29d46e=this['_getHeadingLevel'](_0x24877c['model']);return null!==_0x29d46e?_0x9648b6(_0x2fac01,_0x29d46e):_0x41b318(_0x2fac01,_0x24877c['title']);});function _0x9648b6(_0x31c372,_0x5ba6bf){return c(_0x30b35e,'ELEMENT_HEADING',[_0x31c372,_0x5ba6bf]);}function _0x41b318(_0x5a7aa9,_0x46bf54){return c(_0x30b35e,'ELEMENT_HEADING_CUSTOM',[_0x5a7aa9,_0x46bf54]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fe6d2=this['editor'],_0x4f4510=_0x2fe6d2['locale'];function _0x536777(_0x48eaca,_0x9dbe84){return c(_0x4f4510,'ELEMENT_HEADING_CUSTOM',[_0x48eaca,_0x9dbe84]);}_0x2fe6d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8ed754=>{if('formatBlock'!=_0x8ed754['type'])return;const {data:_0x278dfa}=_0x8ed754;if(_0x278dfa&&'heading'==_0x278dfa['commandName']){const _0x1dc74c=_0x278dfa['commandParams'][0x0]['value'],_0xd16c50=this['_getHeadingLevel'](_0x1dc74c);if(null!==_0xd16c50)return{'type':'format','content':c(_0x4f4510,'*Change\x20to:*\x20%0',(_0x46cea8=0x1,_0x34dd61=_0xd16c50,c(_0x4f4510,'ELEMENT_HEADING',[_0x46cea8,_0x34dd61])))};const _0x36e501=this['_headingOptions']['find'](_0x4d3469=>_0x4d3469['model']===_0x1dc74c)['title'];return{'type':'format','content':c(_0x4f4510,'*Change\x20to:*\x20%0',_0x536777(0x1,_0x36e501))};}var _0x46cea8,_0x34dd61;});}['_getHeadingLevel'](_0x53bf4f){const _0x28d6a4=_0x53bf4f['match'](/^heading(\d+)/);if(_0x28d6a4)return _0x28d6a4[0x1];const _0x110e93=this['_headingOptions']?.['find'](_0x4702a4=>_0x4702a4['model']==_0x53bf4f);if(_0x110e93&&_0x110e93['view']){const _0x599949=_0x110e93['view'],_0x516ac2=(_0x599949['name']??_0x599949)['match'](/^h(\d+)/);if(_0x516ac2)return _0x516ac2[0x1];}return null;}}class it extends _0x505a46{['afterInit'](){const _0x134284=this['editor'];if(!_0x134284['plugins']['has']('HighlightEditing'))return;const _0x4ec96e=_0x134284['plugins']['get']('TrackChangesEditing'),_0x516f4d=_0x134284['locale'];_0x4ec96e['enableDefaultAttributesIntegration']('highlight'),_0x4ec96e['registerInlineAttribute']('highlight'),_0x4ec96e['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x516f4d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50eb52=this['editor'],_0x59278f=_0x50eb52['locale'];_0x50eb52['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e207c=>{if('formatInline'!=_0x5e207c['type'])return;const {data:_0x22dec5}=_0x5e207c;if(_0x22dec5&&'highlight'==_0x22dec5['commandName']){const _0x4364fd=_0x59278f['t'],_0x4cfe4c=_0x22dec5['commandParams'][0x0]['value'];if(_0x4cfe4c){const _0x5abfc7=_0x50eb52['config']['get']('highlight.options')['find'](_0x44dd10=>_0x44dd10['model']==_0x4cfe4c),_0x40f7ae=_0x4364fd(_0x5abfc7['title'])['toLowerCase']();return{'type':'format','content':c(_0x59278f,'*Set\x20highlight:*\x20%0',_0x40f7ae),'color':{'value':_0x5abfc7['color'],'title':_0x5abfc7['title']}};}return{'type':'format','content':c(_0x59278f,'*Remove\x20highlight*',c(_0x59278f,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x505a46{['afterInit'](){const _0x526f99=this['editor'];if(!_0x526f99['plugins']['has']('HorizontalLineEditing'))return;_0x526f99['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xbd1e81=_0x526f99['plugins']['get']('TrackChangesEditing'),_0x4dbf25=_0x526f99['locale'];_0xbd1e81['descriptionFactory']['registerElementLabel']('horizontalLine',_0x55289b=>c(_0x4dbf25,'ELEMENT_HORIZONTAL_LINE',_0x55289b)),_0x526f99['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x516358,{writer:_0xad38e0,options:_0x3f537c})=>{if(!_0x3f537c['showSuggestionHighlights'])return null;const _0x164c1c=_0xad38e0['createContainerElement']('div'),_0x2f5cb3=_0xad38e0['createEmptyElement']('hr');return _0xad38e0['addClass']('ck-horizontal-line',_0x164c1c),_0xad38e0['insert'](_0xad38e0['createPositionAt'](_0x164c1c,0x0),_0x2f5cb3),_0x164c1c;},'converterPriority':'high'});}}class ot extends _0x505a46{['afterInit'](){const _0x2ec73a=this['editor'];if(!_0x2ec73a['plugins']['has']('HtmlEmbed'))return;const _0x17e86e=_0x2ec73a['plugins']['get']('TrackChangesEditing'),_0x4eab03=_0x2ec73a['locale'];_0x17e86e['descriptionFactory']['registerElementLabel']('rawHtml',_0x3d17f4=>c(_0x4eab03,'ELEMENT_HTML_EMBED',_0x3d17f4)),_0x17e86e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x17e86e['registerBlockAttribute']('value'),_0x17e86e['descriptionFactory']['registerDescriptionCallback'](_0x29f722=>{if('attribute'!=_0x29f722['type'])return;const {data:_0x4d2bfb}=_0x29f722;if(_0x4d2bfb&&'value'==_0x4d2bfb['key']&&_0x29f722['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2bf23d=c(_0x4eab03,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x4eab03,'*Change\x20%0\x20content*',_0x2bf23d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41fdf0=this['editor'],_0x287f13=_0x41fdf0['locale'];_0x41fdf0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54ade0=>{if('formatBlock'!=_0x54ade0['type'])return;const {data:_0x157b1d}=_0x54ade0;if(_0x157b1d&&'htmlEmbed'==_0x157b1d['commandName']){const _0x41b185=c(_0x287f13,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x287f13,'*Change\x20%0\x20content*',_0x41b185)};}});}}class rt extends _0x505a46{['afterInit'](){const _0x173866=this['editor'];if(!_0x173866['plugins']['has']('ImageEditing'))return;const _0x15a583=_0x173866['plugins']['get']('TrackChangesEditing'),_0x20dc2b=_0x173866['plugins']['get']('ImageUtils'),_0x32332d=_0x173866['locale'];_0x15a583['enableCommand']('insertImage'),_0x15a583['descriptionFactory']['registerElementLabel']('imageBlock',_0x10d139=>c(_0x32332d,'ELEMENT_IMAGE',_0x10d139)),_0x15a583['descriptionFactory']['registerElementLabel']('imageInline',_0x4fc0d2=>c(_0x32332d,'ELEMENT_INLINE_IMAGE',_0x4fc0d2)),_0x15a583['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x32332d,'ELEMENT_CAPTION')),_0x173866['plugins']['has']('ImageUploadEditing')&&_0x15a583['enableCommand']('uploadImage'),_0x173866['plugins']['has']('ImageBlockEditing')&&_0x173866['plugins']['has']('ImageInlineEditing')&&(_0x15a583['enableCommand']('imageTypeInline',(_0x1af273,_0x133658)=>{const _0x171780=_0x20dc2b['getClosestSelectedImageElement'](_0x173866['model']['document']['selection']);_0x173866['model']['change'](()=>{_0x15a583['markBlockFormat'](_0x171780,{'commandName':'imageTypeInline','commandParams':[_0x133658]},[],'convertBlockImageToInline');});}),_0x15a583['enableCommand']('imageTypeBlock',(_0x49265d,_0x22d74d)=>{_0x173866['model']['change'](_0x1d8fa6=>{let _0x12cb8a=_0x20dc2b['getClosestSelectedImageElement'](_0x173866['model']['document']['selection']),_0x413895=_0x1d8fa6['createRangeOn'](_0x12cb8a);const _0x28a95d=_0x1ae17c['fromPosition'](_0x413895['start'],'toPrevious'),_0x5f30d4=_0x1ae17c['fromPosition'](_0x413895['end'],'toNext');_0x15a583['forceDefaultExecution'](()=>_0x49265d(_0x22d74d)),_0x12cb8a=_0x20dc2b['getClosestSelectedImageElement'](_0x173866['model']['document']['selection']),_0x413895=_0x1d8fa6['createRangeOn'](_0x12cb8a);const _0x4464e9=_0x1d8fa6['createRange'](_0x28a95d,_0x5f30d4);_0x28a95d['detach'](),_0x5f30d4['detach'](),_0x15a583['markBlockFormat'](_0x12cb8a,{'commandName':'imageTypeInline','commandParams':[_0x22d74d]},[],'convertInlineImageToBlock'),_0x4464e9['start']['isBefore'](_0x413895['start'])&&_0x15a583['markInsertion'](_0x1d8fa6['createRange'](_0x4464e9['start'],_0x413895['start']),'convertInlineImageToBlock'),_0x413895['end']['isBefore'](_0x4464e9['end'])&&_0x15a583['markInsertion'](_0x1d8fa6['createRange'](_0x413895['end'],_0x4464e9['end']),'convertInlineImageToBlock');});}),_0x15a583['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x15a583['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x15a583['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x15a583['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x15a583['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x15a583['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x36778f])=>{const _0x495b0a=_0x15a583['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xc7b2b7=_0x36778f['start'],_0x298b95=_0x36778f['end'];const _0x2fc9db=_0x173866['model']['schema']['getNearestSelectionRange'](_0xc7b2b7,'backward'),_0x3d7e66=_0x173866['model']['schema']['getNearestSelectionRange'](_0x298b95,'forward');_0x2fc9db['isCollapsed']&&(_0xc7b2b7=_0x2fc9db['start']),_0x3d7e66['isCollapsed']&&(_0x298b95=_0x3d7e66['end']),_0x495b0a([_0x173866['model']['createRange'](_0xc7b2b7,_0x298b95)]);}),_0x15a583['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x338970),_0x15a583['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x338970)),_0x173866['plugins']['has']('ImageCaptionEditing')&&(_0x15a583['enableCommand']('toggleImageCaption',(_0x856b32,_0x51aed6)=>{const _0x14c545=_0x173866['plugins']['get']('ImageCaptionUtils');let _0xdb663c=_0x20dc2b['getClosestSelectedImageElement'](_0x173866['model']['document']['selection']),_0x238d83=_0x14c545['getCaptionFromImageModelElement'](_0xdb663c);_0x173866['model']['change'](()=>{if(_0x238d83)return void _0x15a583['markDeletion'](_0x173866['model']['createRangeOn'](_0x238d83));const _0x2b2601=_0x20dc2b['isBlockImage'](_0xdb663c);_0x856b32(_0x51aed6),_0xdb663c=_0x20dc2b['getClosestSelectedImageElement'](_0x173866['model']['document']['selection']),_0x238d83=_0x14c545['getCaptionFromImageModelElement'](_0xdb663c),_0x15a583['markInsertion'](_0x173866['model']['createRangeOn'](_0x238d83),_0x2b2601?null:'imageCaption');});}),_0x15a583['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x338970));const _0x4cb452=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x281075(_0x437a79,_0x569e0e){const _0x421645=_0x4cb452['findIndex'](({type:_0x1ef13a,subType:_0x28643f})=>_0x437a79['type']==_0x1ef13a&&_0x437a79['subType']==_0x28643f),_0x9286ff=_0x4cb452['findIndex'](({type:_0x515ec2,subType:_0xceccf1})=>_0x569e0e['type']==_0x515ec2&&_0x569e0e['subType']==_0xceccf1);if(_0x421645<0x0||_0x9286ff<0x0)return!0x1;const _0x7c9593=_0x437a79['getFirstRange'](),_0x4b963d=_0x569e0e['getFirstRange']();if((0x0==_0x421645||0x1==_0x421645)&&0x2==_0x9286ff&&_0x7c9593['isIntersecting'](_0x4b963d))return!0x0;if(0x2==_0x421645&&0x3==_0x9286ff){const _0x41341f=_0x15a583['_findSuggestions'](_0x7c9593,'insertion')['filter'](({suggestion:_0x47cba0,meta:_0x533517})=>_0x533517['isOwn']&&'convertInlineImageToBlock'==_0x47cba0['subType']);if(_0x41341f['length']>0x1&&_0x4b963d['end']['isEqual'](_0x7c9593['start']))return!0x0;if(0x1==_0x41341f['length']&&(_0x7c9593['start']['isEqual'](_0x4b963d['end'])||_0x7c9593['end']['isEqual'](_0x4b963d['start'])))return!0x0;}if(0x3==_0x421645&&0x3==_0x9286ff&&_0x7c9593['start']['isBefore'](_0x4b963d['start'])){const _0x2e6b33=_0x7c9593['end']['nodeAfter'],_0x1a6291=_0x4b963d['start']['nodeBefore'];return _0x20dc2b['isBlockImage'](_0x2e6b33)&&_0x2e6b33===_0x1a6291;}return!0x1;}function _0x338970(_0x549da2,_0x6f31d2){return _0x281075(_0x549da2,_0x6f31d2)?[_0x549da2,_0x6f31d2]:_0x281075(_0x6f31d2,_0x549da2)?[_0x6f31d2,_0x549da2]:null;}_0x173866['plugins']['has']('ImageResize')&&(_0x15a583['enableDefaultAttributesIntegration']('resizeImage'),_0x15a583['registerBlockAttribute']('resizedWidth'),_0x15a583['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x32332d,'FORMAT_IMAGE_SIZE'))),_0x173866['plugins']['has']('ImageTextAlternativeEditing')&&(_0x15a583['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x15a583['registerBlockAttribute']('alt')),_0x173866['plugins']['has']('PictureEditing')&&(_0x15a583['registerBlockAttribute']('sources'),_0x15a583['descriptionFactory']['registerDescriptionCallback'](_0x1e0112=>{if('attribute'!=_0x1e0112['type'])return;const {data:_0x19077e}=_0x1e0112;return _0x19077e&&'sources'==_0x19077e['key']?{'type':'format','content':''}:void 0x0;})),_0x173866['plugins']['has']('ImageSizeAttributes')&&(_0x15a583['registerBlockAttribute']('width'),_0x15a583['registerBlockAttribute']('height'),_0x15a583['descriptionFactory']['registerDescriptionCallback'](_0x57d1d5=>{if('attribute'!=_0x57d1d5['type'])return;const {data:_0xae868a}=_0x57d1d5;return!_0xae868a||'width'!=_0xae868a['key']&&'height'!=_0xae868a['key']?void 0x0:{'type':'format','content':''};})),_0x15a583['descriptionFactory']['registerDescriptionCallback'](_0x57a9c9=>{if(!!_0x4cb452['find'](({type:_0x9322d1,subType:_0x1754a8})=>_0x57a9c9['type']==_0x9322d1&&_0x57a9c9['subType']==_0x1754a8))return _0x57a9c9['previous']?{}:void 0x0;}),_0x15a583['descriptionFactory']['registerDescriptionCallback'](_0x4ec55f=>{if('insertion'==_0x4ec55f['type']||'deletion'==_0x4ec55f['type']){const _0x337b98=_0x4ec55f['getContainedElement']();if(_0x337b98&&_0x337b98['is']('element','caption'))return{'type':'insertion'==_0x4ec55f['type']?'addObject':'removeObject','element':_0x337b98,'quantity':0x1};}}),_0x15a583['descriptionFactory']['registerDescriptionCallback'](_0x93761=>'formatBlock'==_0x93761['type']&&'convertInlineImageToBlock'==_0x93761['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x93761['type']&&'convertBlockImageToInline'==_0x93761['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x15a583['descriptionFactory']['registerDescriptionCallback'](_0x1d5a5f=>{if('attribute'!=_0x1d5a5f['type'])return;const {data:_0xbdd01c}=_0x1d5a5f;if(!_0xbdd01c||'alt'!=_0xbdd01c['key'])return;const _0x54cd6b=_0xbdd01c['newValue'];return _0x54cd6b?{'type':'format','content':c(_0x32332d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x54cd6b+'\x22')}:{'type':'format','content':c(_0x32332d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa5a8ba=this['editor'],_0x1127c7=_0xa5a8ba['locale'];_0xa5a8ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2274f3=>{if('formatBlock'!=_0x2274f3['type']&&'formatInline'!=_0x2274f3['type'])return;const {data:_0x6afb08}=_0x2274f3;if(_0x6afb08){if('imageTextAlternative'==_0x6afb08['commandName']){const _0x14ea44=_0x6afb08['commandParams'][0x0]['newValue'];return _0x14ea44?{'type':'format','content':c(_0x1127c7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x14ea44+'\x22')}:{'type':'format','content':c(_0x1127c7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x6afb08['commandName']){const _0x1179ec=_0x6afb08['commandParams'][0x0]['width'];return _0x1179ec?{'type':'format','content':c(_0x1127c7,'*Set\x20image\x20width:*\x20%0',_0x1179ec)}:{'type':'format','content':c(_0x1127c7,'*Reset\x20image\x20width*')};}}});}}class at extends _0x505a46{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1b90d9=this['editor']['locale'],_0x390f58=this['editor']['plugins']['get']('TrackChangesEditing');_0x390f58['enableDefaultAttributesIntegration']('replaceImageSource'),_0x390f58['registerBlockAttribute']('src'),_0x390f58['descriptionFactory']['registerDescriptionCallback'](_0x2dfb1c=>{if('attribute'!=_0x2dfb1c['type'])return;const {data:_0x12e78a}=_0x2dfb1c;return _0x12e78a&&'src'==_0x12e78a['key']?_0x12e78a['newValue']&&_0x12e78a['oldValue']?{'type':'format','content':c(_0x1b90d9,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x575c24=this['editor']['plugins']['get']('TrackChangesEditing');_0x575c24['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x575c24['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x575c24['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x575c24['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e318a=this['editor'],_0x195dc5=_0x1e318a['locale'];_0x1e318a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e39fa=>{if('formatBlock'!=_0x5e39fa['type']&&'formatInline'!=_0x5e39fa['type'])return;const {data:_0x3f2bcf}=_0x5e39fa;if(!_0x3f2bcf||'replaceImageSource'!=_0x3f2bcf['commandName'])return;return{'type':'format','content':c(_0x195dc5,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x505a46{['afterInit'](){const _0x14ba2d=this['editor'];if(!_0x14ba2d['plugins']['has']('ImageStyleEditing'))return;const _0x4c4ef2=_0x14ba2d['plugins']['get']('TrackChangesEditing'),_0x3a40ea=_0x14ba2d['plugins']['get']('ImageUtils'),_0x3aa5cd={};_0x4c4ef2['enableCommand']('imageStyle',(_0xc9e188,_0x271f37)=>{const _0xc9cb06=_0x14ba2d['plugins']['get']('Users')['me'],_0x279a42=_0x14ba2d['commands']['get']('imageStyle');let _0x56563a=_0x3a40ea['getClosestSelectedImageElement'](_0x14ba2d['model']['document']['selection']),_0x4b945d=_0x14ba2d['model']['createRangeOn'](_0x56563a),_0xe393d=_0x279a42['value'];if(_0xe393d==_0x271f37['value'])return;const _0x58365f={'commandName':'imageStyle','commandParams':[_0x271f37],'formatGroupId':_0x5b9c0f()};_0x14ba2d['model']['change'](()=>{if(_0x4c4ef2['getSuggestions']()['filter'](_0x3f19f3=>_0x3f19f3['isInContent']&&_0xc9cb06==_0x3f19f3['author']&&('formatBlock'==_0x3f19f3['type']||'formatInline'==_0x3f19f3['type'])&&('imageStylePreApply'==_0x3f19f3['subType']||'imageStylePostApply'==_0x3f19f3['subType'])&&_0x3f19f3['getFirstRange']()['isEqual'](_0x4b945d))['forEach'](_0x499e93=>_0x4c4ef2['discardSuggestion'](_0x499e93['head'])),_0x56563a=_0x3a40ea['getClosestSelectedImageElement'](_0x14ba2d['model']['document']['selection']),_0x4b945d=_0x14ba2d['model']['createRangeOn'](_0x56563a),_0x279a42['refresh'](),_0x14ba2d['commands']['get']('imageTypeInline')['refresh'](),_0x14ba2d['commands']['get']('imageTypeBlock')['refresh'](),_0xe393d=_0x279a42['value'],_0xe393d!=_0x271f37['value'])return _0x3a40ea['isInlineImage'](_0x56563a)&&_0x279a42['shouldConvertImageType'](_0x271f37['value'],_0x56563a)?(_0xc9e188({..._0x271f37,'setImageSizes':!0x1}),_0x56563a=_0x3a40ea['getClosestSelectedImageElement'](_0x14ba2d['model']['document']['selection']),void _0x4c4ef2['markBlockFormat'](_0x56563a,{..._0x58365f,'commandReversedParams':[{'value':_0xe393d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3a40ea['isBlockImage'](_0x56563a)?_0x4c4ef2['markBlockFormat'](_0x56563a,_0x58365f,[],'imageStylePostApply'):_0x4c4ef2['markInlineFormat'](_0x4b945d,_0x58365f,'imageStylePostApply'));});});for(const _0xdba5d0 of _0x14ba2d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3aa5cd[_0xdba5d0['name']]=_0xdba5d0['title']['toLowerCase']();_0x4c4ef2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4c4ef2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4c4ef2['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4c4ef2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x292f9a])=>{_0x3a40ea['setImageNaturalSizeAttributes'](_0x292f9a['getContainedElement']());}),_0x4c4ef2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2ce0d8,_0x21ea3a)=>{_0x4c4ef2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2ce0d8,{'commandName':_0x21ea3a['commandName'],'commandParams':_0x21ea3a['commandReversedParams']});}),_0x4c4ef2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x27d455,_0x2e2817){if(_0x48e23a(_0x27d455,_0x2e2817))return[_0x27d455,_0x2e2817];if(_0x48e23a(_0x2e2817,_0x27d455))return[_0x2e2817,_0x27d455];return null;});const _0xe5870=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x48e23a(_0x558be0,_0x2d4382){const _0xb935f9=_0xe5870['findIndex'](({type:_0x472efc,subType:_0x2b21fc})=>_0x558be0['type']==_0x472efc&&_0x558be0['subType']==_0x2b21fc),_0x4bda10=_0xe5870['findIndex'](({type:_0x209b94,subType:_0x414ed1})=>_0x2d4382['type']==_0x209b94&&_0x2d4382['subType']==_0x414ed1);if(_0xb935f9<0x0||_0x4bda10<0x0)return!0x1;const _0x44dfee=_0x558be0['getFirstRange'](),_0x2b892a=_0x2d4382['getFirstRange']();if((0x0==_0xb935f9||0x1==_0xb935f9)&&0x2==_0x4bda10&&_0x44dfee['isIntersecting'](_0x2b892a))return!0x0;if(0x2==_0xb935f9&&0x3==_0x4bda10){const _0x1c3931=_0x4c4ef2['_findSuggestions'](_0x44dfee,'insertion')['filter'](({suggestion:_0x5bb35c,meta:_0x594d39})=>_0x594d39['isOwn']&&'convertInlineImageToBlock'==_0x5bb35c['subType']);if(_0x1c3931['length']>0x1&&_0x2b892a['end']['isEqual'](_0x44dfee['start']))return!0x0;if(0x1==_0x1c3931['length']&&(_0x44dfee['start']['isEqual'](_0x2b892a['end'])||_0x44dfee['end']['isEqual'](_0x2b892a['start'])))return!0x0;}if(0x3==_0xb935f9&&0x3==_0x4bda10&&_0x44dfee['start']['isBefore'](_0x2b892a['start'])){const _0x27e081=_0x44dfee['end']['nodeAfter'],_0x5cc825=_0x2b892a['start']['nodeBefore'];return _0x3a40ea['isBlockImage'](_0x27e081)&&_0x27e081===_0x5cc825;}return!0x1;}_0x14ba2d['model']['document']['registerPostFixer'](()=>{let _0x52671a=!0x1;const _0x245a99=Array['from'](_0x14ba2d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x37fc78,data:_0x132f89}of _0x245a99){const {group:_0x374aec,type:_0x2e41a5,subType:_0x3e13cf,id:_0x5d9576}=_0x4c4ef2['_splitMarkerName'](_0x37fc78);if('suggestion'==_0x374aec&&_0x4c4ef2['hasSuggestion'](_0x5d9576)){if('formatBlock'==_0x2e41a5&&('imageStylePreApply'==_0x3e13cf||'imageStylePostApply'==_0x3e13cf)){const _0x29bd34=_0x4c4ef2['getSuggestion'](_0x5d9576);if(_0x132f89['newRange']){const _0x38eee1=_0x29bd34['getFirstRange']()['getContainedElement']();if(_0x3a40ea['isBlockImage'](_0x38eee1))continue;_0x4c4ef2['discardSuggestion'](_0x29bd34),_0x52671a=!0x0;}}if('insertion'==_0x2e41a5&&'imageCaption'==_0x3e13cf&&!_0x132f89['newRange']){const _0x4f02d2=_0x4c4ef2['getSuggestion'](_0x5d9576);_0x4f02d2['next']&&_0x4f02d2['next']['isInContent']&&(_0x4c4ef2['discardSuggestion'](_0x4f02d2['next']),_0x52671a=!0x0);}}}return _0x52671a;}),this['_registerLegacyDescription'](_0x3aa5cd);}['_registerLegacyDescription'](_0x4e4590){const _0x41edf6=this['editor'],_0x311a5b=_0x41edf6['locale'];_0x41edf6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35f5cb=>{if('formatBlock'!=_0x35f5cb['type']&&'formatInline'!=_0x35f5cb['type'])return;const {data:_0x21bd5e}=_0x35f5cb;if(!_0x21bd5e||'imageStyle'!=_0x21bd5e['commandName'])return;const _0x30a035=_0x21bd5e['commandParams'][0x0]['value'];return _0x4eef99('side'===_0x30a035?c(_0x311a5b,'FORMAT_SIDE_IMAGE'):_0x4e4590[_0x30a035]||_0x30a035);function _0x4eef99(_0x39ba96){return{'type':'format','content':c(_0x311a5b,'*Format:*\x20%0',_0x39ba96)};}});}}class ut extends _0x505a46{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4e4448){super(_0x4e4448),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x161ff4=this['editor'],_0x2abd54=_0x161ff4['commands']['get']('importWord'),_0x3aa00b=_0x161ff4['commands']['get']('trackChanges');_0x2abd54&&(_0x2abd54['on']('execute',(_0x465594,[,_0x7d6c1a])=>{this['_trackChangesValueDuringImport']=_0x3aa00b['value'],_0x7d6c1a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2abd54,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2abd54,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3aa00b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x161ff4['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x316f16,_0x5300f5){const {suggestions:_0x47fda4}=_0x5300f5,_0x2ff80c=this['editor']['commands']['get']('trackChanges'),_0x4e91ea=_0x2ff80c['value'];this['_trackChangesValueDuringImport']!==_0x4e91ea&&(_0x2ff80c['execute'](),this['_trackChangesExecuted']=!0x0),_0x47fda4&&_0x47fda4['forEach'](({id:_0x37d9a1,type:_0x22467a,author:_0x404bce,created_at:_0x171109})=>{const _0x2a5c1={'id':_0x37d9a1,'type':_0x22467a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x404bce,'createdAt':_0x171109?new Date(_0x171109):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2a5c1);});}}class ft extends _0x505a46{['afterInit'](){const _0x37c2a8=this['editor'],_0xa7505f=_0x37c2a8['plugins']['get']('TrackChangesEditing');if(_0x37c2a8['plugins']['has']('IndentEditing')&&(_0xa7505f['enableCommand']('indent'),_0xa7505f['enableCommand']('outdent')),_0x37c2a8['plugins']['has']('IndentBlock')){for(const _0x360a85 of['indentBlock','outdentBlock'])_0xa7505f['enableDefaultAttributesIntegration'](_0x360a85);}const _0x200e9c=_0x37c2a8['locale'];_0xa7505f['registerBlockAttribute']('blockIndent'),_0xa7505f['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x200e9c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c4496=this['editor'],_0x9ad46d=_0x3c4496['locale'],_0x142aa1=_0x3c4496['plugins']['get']('TrackChangesEditing');_0x142aa1['descriptionFactory']['registerDescriptionCallback'](_0x596aa1=>{if('formatBlock'!=_0x596aa1['type'])return;const {data:_0x143c83}=_0x596aa1;if(!_0x143c83)return;if('indentBlock'!=_0x143c83['commandName']&&'outdentBlock'!=_0x143c83['commandName'])return;const _0x4ca747=_0x596aa1['getItems']()[0x0],_0x439110=_0x142aa1['descriptionFactory']['getItemLabel'](_0x4ca747);return'indentBlock'==_0x143c83['commandName']?{'type':'format','content':c(_0x9ad46d,'*Indent:*\x20%0',_0x439110)}:'outdentBlock'==_0x143c83['commandName']?{'type':'format','content':c(_0x9ad46d,'*Outdent:*\x20%0',_0x439110)}:void 0x0;});}}class ht extends _0x505a46{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x505a46{['afterInit'](){const _0x38e38a=this['editor'];if(!_0x38e38a['plugins']['has']('LinkEditing'))return;const _0x4e8f56=_0x38e38a['plugins']['get']('TrackChangesEditing'),_0x54d7ed=_0x38e38a['commands']['get']('link');_0x4e8f56['enableDefaultAttributesIntegration']('link'),_0x4e8f56['enableDefaultAttributesIntegration']('unlink'),_0x4e8f56['registerInlineAttribute']('linkHref');for(const _0x43adb of _0x54d7ed['manualDecorators'])_0x4e8f56['registerInlineAttribute'](_0x43adb['id']),_0x4e8f56['descriptionFactory']['registerAttributeLabel'](_0x43adb['id'],'link\x20('+_0x43adb['label']['toLowerCase']()+')');_0x4e8f56['descriptionFactory']['registerDescriptionCallback'](_0xa5de9a=>{if('attribute'!=_0xa5de9a['type'])return;const {data:_0x1fb16f}=_0xa5de9a;if(!_0x1fb16f||'linkHref'!=_0x1fb16f['key'])return;const _0x2b338a=_0x1fb16f['newValue'],_0x19c5dc=_0x38e38a['locale'];return{'type':'format','content':null==_0x2b338a?c(_0x19c5dc,'*Remove\x20link*'):c(_0x19c5dc,'*Set\x20link:*\x20%0','\x22'+_0x2b338a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3691fd=this['editor'],_0x21000b=_0x3691fd['locale'];_0x3691fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54e698=>{if('formatInline'!=_0x54e698['type'])return;const {data:_0x2bae7b}=_0x54e698;if(_0x2bae7b){if('link'==_0x2bae7b['commandName']){const _0x53a144=_0x2bae7b['commandParams'][0x0];return{'type':'format','content':c(_0x21000b,'*Set\x20link:*\x20%0','\x22'+_0x53a144+'\x22')};}return'unlink'==_0x2bae7b['commandName']?{'type':'format','content':c(_0x21000b,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x505a46{['afterInit'](){const _0x441980=this['editor'],_0x4c5aaa=_0x441980['locale'];if(!_0x441980['plugins']['has']('LegacyListEditing'))return;const _0x50ddf2=_0x441980['plugins']['get']('TrackChangesEditing'),_0x244738=_0x441980['plugins']['has']('LegacyTodoListEditing');function _0x13d167(_0xc5a0aa){return()=>{const _0x25c934=_0x441980['model']['document']['selection'],_0x5b3f50=_0x441980['commands']['get'](_0xc5a0aa);if(_0x5b3f50['value'])return void _0x441980['execute']('paragraph',{});const _0x32379e=_0xc5a0aa['slice'](0x0,-0x4),_0x28fc1f=function(_0x1a8dc3,_0x4dad39,_0x6c8f78){let _0x2de0dd=Array['from'](_0x1a8dc3)['filter'](_0x2c86a6=>function(_0x45028b,_0x44a839){return _0x44a839['checkChild'](_0x45028b['parent'],'listItem')&&!_0x44a839['isObject'](_0x45028b);}(_0x2c86a6,_0x6c8f78));_0x2de0dd=_0x2de0dd['filter'](_0x264c0c=>!_0x264c0c['is']('element','listItem')||_0x264c0c['getAttribute']('listType')!=_0x4dad39);const _0x364413=new Set();for(const _0x44901a of _0x2de0dd)_0x44901a['is']('element','listItem')?_0x364413['add'](Le(_0x44901a)):_0x364413['add'](_0x44901a);return Array['from'](_0x364413);}(_0x25c934['getSelectedBlocks'](),_0x32379e,_0x441980['model']['schema']);_0x441980['model']['change'](()=>{for(const _0x5d5cd5 of _0x28fc1f)_0x50ddf2['markBlockFormat'](_0x5d5cd5,{'commandName':_0xc5a0aa,'commandParams':[{'forceValue':!_0x5b3f50['value']}],'formatGroupId':'blockName'},Ee(_0x5d5cd5));});};}function _0x2a3de9(_0x3db2b9){return()=>{const _0x2a744e=function(_0x110aae){let _0x4e3bda=Array['from'](_0x110aae);const _0x2beb01=_0x4e3bda['findIndex'](_0x33156d=>'listItem'!=_0x33156d['name']);return _0x2beb01>-0x1&&(_0x4e3bda=_0x4e3bda['slice'](0x0,_0x2beb01)),_0x4e3bda;}(_0x441980['model']['document']['selection']['getSelectedBlocks']()),_0x5b3ab6=_0x441980['model']['createRange'](_0x441980['model']['createPositionAt'](_0x2a744e[0x0],'before'),_0x441980['model']['createPositionAt'](_0x2a744e[_0x2a744e['length']-0x1],'end'));_0x441980['model']['change'](()=>{_0x50ddf2['markBlockFormat'](_0x5b3ab6,{'commandName':_0x3db2b9,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2c0056){const _0x1b3ef3=new Set();for(const _0x4a8444 of _0x2c0056){let _0xf2c224=_0x4a8444['nextSibling'];for(;_0xf2c224&&_0xf2c224['getAttribute']('listIndent')>_0x4a8444['getAttribute']('listIndent');)_0x1b3ef3['add'](_0xf2c224),_0xf2c224=_0xf2c224['nextSibling'];}return Array['from'](_0x1b3ef3);}(_0x2a744e));});};}_0x50ddf2['enableCommand']('numberedList',_0x13d167('numberedList')),_0x50ddf2['enableCommand']('bulletedList',_0x13d167('bulletedList')),_0x244738&&_0x50ddf2['enableCommand']('todoList',_0x13d167('todoList')),_0x50ddf2['enableCommand']('indentList',_0x2a3de9('indentList')),_0x50ddf2['enableCommand']('outdentList',_0x2a3de9('outdentList')),_0x244738&&_0x50ddf2['enableCommand']('checkTodoList',()=>{const _0x273601=_0x441980['commands']['get']('checkTodoList'),_0x52ffeb=Array['from'](_0x273601['_selectedElements']);_0x52ffeb['filter'](_0x3b1de5=>_0x3b1de5['getAttribute']('todoListChecked')!=_0x273601['value']),_0x441980['model']['change'](()=>{for(const _0x1c881e of _0x52ffeb)_0x50ddf2['markBlockFormat'](_0x1c881e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x273601['value']}]});});}),_0x50ddf2['descriptionFactory']['registerElementLabel']('listItem',_0x6db9d5=>c(_0x4c5aaa,'ELEMENT_LIST_ITEM',_0x6db9d5)),_0x50ddf2['descriptionFactory']['registerDescriptionCallback'](_0x1514aa=>{if('formatBlock'!=_0x1514aa['type']&&'formatInline'!=_0x1514aa['type'])return;const {data:_0x199110}=_0x1514aa;if(_0x199110){if('numberedList'==_0x199110['commandName']||'bulletedList'==_0x199110['commandName']||'todoList'==_0x199110['commandName'])switch(_0x199110['commandName']['replace']('List','')){case'bulleted':return _0xe26984(c(_0x4c5aaa,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe26984(c(_0x4c5aaa,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe26984(c(_0x4c5aaa,'ELEMENT_TODO_LIST'));}if('indentList'==_0x199110['commandName'])return{'type':'format','content':c(_0x4c5aaa,'*Indent:*\x20%0',c(_0x4c5aaa,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x199110['commandName'])return{'type':'format','content':c(_0x4c5aaa,'*Outdent:*\x20%0',c(_0x4c5aaa,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x199110['commandName'])return _0x199110['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4c5aaa,'*Check\x20item*')}:{'type':'format','content':c(_0x4c5aaa,'*Uncheck\x20item*')};}function _0xe26984(_0x3d753b){return{'type':'format','content':c(_0x4c5aaa,'*Change\x20to:*\x20%0',_0x3d753b)};}});}}function Le(_0x2012f8){const _0x4cacd2=_0x2012f8['getAttribute']('listIndent');if(0x0==_0x4cacd2)return _0x2012f8;let _0x1f5329=_0x2012f8;for(;_0x2012f8['previousSibling']&&_0x2012f8['previousSibling']['is']('element','listItem');){const _0x1b2c8c=_0x2012f8['previousSibling']['getAttribute']('listIndent');if(_0x1b2c8c==_0x4cacd2)_0x1f5329=_0x2012f8['previousSibling'];else{if(_0x1b2c8c<_0x4cacd2)break;}_0x2012f8=_0x2012f8['previousSibling'];}return _0x1f5329;}function Ee(_0x22c067){const _0x64b4e3=[];if(_0x22c067['is']('element','listItem')&&_0x22c067['getAttribute']('listIndent')>0x0){let _0x2bf4ed=_0x22c067['nextSibling'];for(;_0x2bf4ed&&'listItem'==_0x2bf4ed['name']&&_0x2bf4ed['getAttribute']('listIndent')==_0x22c067['getAttribute']('listIndent');)_0x64b4e3['push'](_0x2bf4ed),_0x2bf4ed=_0x2bf4ed['nextSibling'];}return _0x64b4e3;}class Q extends _0x505a46{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x98fcb7=this['editor']['config']['get']('list.properties'),_0x283d68=this['editor']['plugins']['get']('TrackChangesEditing');_0x98fcb7['styles']&&_0x283d68['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x98fcb7['reversed']&&_0x283d68['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x98fcb7['startIndex']&&_0x283d68['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x283d68['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x51ecee,_0x4f33c9={}){const _0x2b8813=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41dc19=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2b8813['markMultiRangeBlockFormat'](_0x41dc19,{'commandName':'listStyle','commandParams':[{'type':_0x4f33c9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x419960,_0x47d8b9={}){const _0x243a8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a0193=this['_getSuggestionBlocks'](_0x20c339=>_0x20c339['is']('element','listItem')&&'numbered'===_0x20c339['getAttribute']('listType'));if(_0x1a0193['length']<0x1)return;const _0x3ee632=_0x1a0193['map'](_0x4a3383=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4a3383,'before'),this['editor']['model']['createPositionAt'](_0x4a3383,0x0)));this['editor']['model']['change'](()=>{_0x243a8e['markMultiRangeBlockFormat'](_0x3ee632,{'commandName':'listReversed','commandParams':[{'reversed':_0x47d8b9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5325cd,_0x337ce2={}){const _0x30a59e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x333b60=this['_getSuggestionBlocks'](_0x45ea1b=>_0x45ea1b['is']('element','listItem')&&'numbered'===_0x45ea1b['getAttribute']('listType'));if(_0x333b60['length']<0x1)return;const _0xb31987=_0x333b60['map'](_0x1344ea=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1344ea,'before'),this['editor']['model']['createPositionAt'](_0x1344ea,0x0)));this['editor']['model']['change'](()=>{_0x30a59e['markMultiRangeBlockFormat'](_0xb31987,{'commandName':'listStart','commandParams':[{'startIndex':_0x337ce2['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5867a4){if('formatBlock'!=_0x5867a4['type']&&'formatInline'!=_0x5867a4['type'])return;const _0x1adca7=this['editor']['locale'],{data:_0x3f5c46}=_0x5867a4;if(!_0x3f5c46)return;let _0x323b76,_0x7774d1;switch(_0x3f5c46['commandName']){case'listStyle':_0x323b76='*Change\x20to:*\x20%0',_0x7774d1={'type':'format','content':c(_0x1adca7,_0x323b76,c(_0x1adca7,this['_getTranslationKeyForListStyle'](_0x3f5c46['commandParams'][0x0]['type'])))};break;case'listReversed':_0x323b76=_0x3f5c46['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x7774d1={'type':'format','content':c(_0x1adca7,_0x323b76)};break;case'listStart':_0x323b76='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x7774d1={'type':'format','content':c(_0x1adca7,_0x323b76,_0x3f5c46['commandParams'][0x0]['startIndex'])};}return _0x7774d1;}['_getSuggestionBlocksForListStyle'](){const _0x4ccc9e=this['editor']['plugins']['get']('LegacyListUtils');let _0xadd9cc=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xadd9cc[0x0]?.['is']('element','listItem')&&_0xadd9cc['unshift'](..._0x4ccc9e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xadd9cc[_0xadd9cc['length']-0x1]?.['is']('element','listItem')&&_0xadd9cc['push'](..._0x4ccc9e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xadd9cc=[...new Set(_0xadd9cc)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xadd9cc=_0xadd9cc['filter'](_0x57658c=>_0x57658c['is']('element','listItem'))),_0xadd9cc;}['_getSuggestionBlocks'](_0x146195){const _0x5d2503=this['editor']['plugins']['get']('LegacyListUtils');let _0x90ba52=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x146195)['map'](_0x29c277=>{const _0x2d7ff0=this['editor']['model']['createPositionAt'](_0x29c277,0x0);return[..._0x5d2503['getSiblingNodes'](_0x2d7ff0,'backward'),..._0x5d2503['getSiblingNodes'](_0x2d7ff0,'forward')];})['flat']();return _0x90ba52=[...new Set(_0x90ba52)],_0x90ba52;}['_getTranslationKeyForListStyle'](_0x2da30e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2da30e)||'default')['toUpperCase']()+'_LIST_'+_0x2da30e['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x505a46{['afterInit'](){const _0x500109=this['editor'];if(!_0x500109['plugins']['has']('MediaEmbedEditing'))return;const _0x541d5a=_0x500109['plugins']['get']('TrackChangesEditing'),_0x5512d1=_0x500109['locale'];_0x541d5a['enableCommand']('mediaEmbed'),_0x541d5a['descriptionFactory']['registerElementLabel']('media',_0x1a92e6=>c(_0x5512d1,'ELEMENT_MEDIA',_0x1a92e6)),_0x500109['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x24fb14,{writer:_0x353c02,options:_0x55c277})=>{if(_0x55c277['showSuggestionHighlights'])return _0x353c02['createEmptyElement']('div');},'converterPriority':'high'}),_0x500109['data']['downcastDispatcher']['on']('attribute:url:media',(_0x49e473,_0x132494,_0x3d0c17)=>{_0x3d0c17['options']['showSuggestionHighlights']&&_0x49e473['stop']();},{'priority':'high'});}}class pt extends _0x505a46{['afterInit'](){const _0x5a4f5d=this['editor'];_0x5a4f5d['plugins']['has']('MentionEditing')&&_0x5a4f5d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x505a46{['afterInit'](){const _0x2f7d9e=this['editor'];if(!_0x2f7d9e['plugins']['has']('MergeFieldsEditing'))return;const _0x28b91b=_0x2f7d9e['plugins']['get']('TrackChangesEditing'),_0x54aa96=_0x2f7d9e['locale'];_0x28b91b['enableCommand']('insertMergeField'),_0x28b91b['enableCommand']('insertMergeFieldBlock'),_0x28b91b['enableCommand']('insertMergeFieldImage'),_0x28b91b['descriptionFactory']['registerElementLabel']('mergeField',_0x5eae0c=>c(_0x54aa96,'ELEMENT_MERGE_FIELD',_0x5eae0c)),_0x28b91b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1af007=>c(_0x54aa96,'ELEMENT_MERGE_FIELD',_0x1af007)),_0x28b91b['descriptionFactory']['registerDescriptionCallback'](_0x5bcecf=>{if('insertion'!=_0x5bcecf['type']&&'deletion'!=_0x5bcecf['type'])return;const _0x5f142b=_0x5bcecf['getContainedElement']();if(null==_0x5f142b)return;const _0x166f63=_0x2f7d9e['plugins']['get']('MergeFieldsEditing');let _0x2c7628;switch(_0x166f63['getMergeFieldType'](_0x5f142b)){case null:return;case'image':{const _0x36fefb=_0x166f63['unwrapAffixes'](_0x5f142b['getAttribute']('src'));_0x2c7628=_0x166f63['getLabel'](_0x36fefb)||_0x36fefb;break;}default:{const _0x2694b8=_0x5f142b['getAttribute']('id');_0x2c7628=_0x166f63['getLabel'](_0x2694b8)||_0x2694b8;break;}}return'insertion'==_0x5bcecf['type']?{'type':'insertion','content':c(_0x54aa96,'*Insert:*\x20%0','\x22'+_0x2c7628+'\x22\x20'+c(_0x54aa96,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x54aa96,'*Remove:*\x20%0','\x22'+_0x2c7628+'\x22\x20'+c(_0x54aa96,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x505a46{['afterInit'](){const _0x1eb0ad=this['editor'],_0xc94844=_0x1eb0ad['plugins']['get']('TrackChangesEditing');_0x1eb0ad['plugins']['has']('MultiLevelList')&&(_0xc94844['enableDefaultAttributesIntegration']('multiLevelList'),_0xc94844['registerBlockAttribute']('listMarkerStyle'),_0xc94844['descriptionFactory']['registerDescriptionCallback'](_0x347335=>this['handleDescriptions'](_0x347335)));}['handleDescriptions'](_0x455af4){const _0xb93bef=this['editor']['locale'],{data:_0xeae39f}=_0x455af4,_0x29e6d1={'type':'format','content':''};if(_0xeae39f&&'listMarkerStyle'==_0xeae39f['key']){if(!_0xeae39f['oldValue'])return{'type':'format','content':c(_0xb93bef,'*Set\x20format:*\x20%0',c(_0xb93bef,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xeae39f['newValue']+')'};if(!_0xeae39f['newValue']){let _0x677564=_0x455af4['head'];for(;_0x677564;){if(_0x677564['data']&&'listType'==_0x677564['data']['key']&&_0x677564['data']['newValue'])return _0x29e6d1;_0x677564=_0x677564['next'];}return{'type':'format','content':c(_0xb93bef,'*Remove\x20format:*\x20%0',c(_0xb93bef,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xeae39f['oldValue']+')'};}}}}class bt extends _0x505a46{['afterInit'](){const _0x558af8=this['editor'];if(!_0x558af8['plugins']['has']('PageBreakEditing'))return;_0x558af8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2121f1=_0x558af8['plugins']['get']('TrackChangesEditing'),_0x257098=_0x558af8['locale'];_0x2121f1['descriptionFactory']['registerElementLabel']('pageBreak',_0x3c51f4=>c(_0x257098,'ELEMENT_PAGE_BREAK',_0x3c51f4));}}class yt extends _0x505a46{['afterInit'](){const _0x256fad=this['editor'];if(!_0x256fad['plugins']['has']('Paragraph'))return;const _0x3eb807=_0x256fad['locale'],_0x3ddbe2=_0x256fad['plugins']['get']('TrackChangesEditing');_0x3ddbe2['descriptionFactory']['registerElementLabel']('paragraph',_0x56dcd4=>c(_0x3eb807,'ELEMENT_PARAGRAPH',_0x56dcd4)),_0x3ddbe2['enableDefaultAttributesIntegration']('paragraph'),_0x3ddbe2['enableCommand']('insertParagraph'),_0x256fad['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x256fad),{'priority':'highest'}),_0x256fad['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4a5576,_0x52d59f,_0x3dfde6)=>{_0x3dfde6['options']['showSuggestionHighlights']&&nr(_0x256fad,{'showActiveMarker':!0x1})(_0x4a5576,_0x52d59f,_0x3dfde6);},{'priority':'highest'});const _0x5138a5=_0x3ddbe2['descriptionFactory'];_0x5138a5['registerDescriptionCallback'](_0x5b0add=>{if('insertion'!==_0x5b0add['type'])return;const {start:_0x35f0e2,end:_0x13b233}=_0x5b0add['getFirstRange']();if(!_0x35f0e2['isTouching'](_0x13b233)||!_0x35f0e2['nodeAfter'])return;const _0x59e43b=_0x256fad['model']['schema'],_0x40e056=_0x35f0e2['nodeAfter'];return _0x59e43b['isBlock'](_0x40e056)&&!_0x59e43b['isLimit'](_0x40e056)&&_0x59e43b['checkChild'](_0x40e056,'$text')?{'type':'insertion','content':c(_0x3eb807,'*Insert:*\x20%0',_0x5138a5['getItemLabel'](_0x40e056,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x386ea1=this['editor'],_0x51f9b5=_0x386ea1['locale'];_0x386ea1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x243f5a=>{if('formatBlock'!=_0x243f5a['type'])return;const {data:_0xfef26b}=_0x243f5a;return _0xfef26b&&'paragraph'==_0xfef26b['commandName']?{'type':'format','content':c(_0x51f9b5,'*Change\x20to:*\x20%0',c(_0x51f9b5,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x25750b,{showActiveMarker:_0x82da58=!0x0}={}){return(_0x1a2353,_0x10a340,_0x383e45)=>{const _0x429811=_0x25750b['plugins']['get']('TrackChangesEditing'),_0x28e1d2=_0x10a340['markerRange']['start'],_0x401cc1=_0x10a340['markerRange']['end'],_0xa48487=_0x25750b['model']['schema'];if(!_0x28e1d2['isTouching'](_0x401cc1)||!_0x28e1d2['nodeAfter'])return;const _0x121a2f=_0x28e1d2['nodeAfter'];if(_0xa48487['isBlock'](_0x121a2f)&&!_0xa48487['isLimit'](_0x121a2f)&&_0xa48487['checkChild'](_0x121a2f,'$text')){if(!_0x383e45['consumable']['consume'](_0x10a340['markerRange'],_0x1a2353['name']))return;const {authorId:_0x1a4346}=_0x429811['_splitMarkerName'](_0x10a340['markerName']),_0x4686fa=_0x383e45['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1a4346}),_0x317650=_0x383e45['mapper']['toViewPosition'](_0x401cc1);_0x82da58&&_0x429811['activeMarkers']['includes'](_0x10a340['markerName'])&&_0x383e45['writer']['addClass']('ck-suggestion-marker--active',_0x4686fa),_0x383e45['writer']['insert'](_0x317650,_0x4686fa),_0x383e45['mapper']['bindElementToMarker'](_0x4686fa,_0x10a340['markerName']);}};}class jt extends _0x505a46{['afterInit'](){const _0x47add4=this['editor'];_0x47add4['commands']['get']('replaceSource')&&_0x47add4['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x505a46{['afterInit'](){const _0x5aaec8=this['editor'];if(!_0x5aaec8['plugins']['has']('RemoveFormatEditing'))return;_0x5aaec8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5154a7=this['editor'];_0x5154a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24857a=>{if('formatBlock'!=_0x24857a['type']&&'formatInline'!=_0x24857a['type'])return;const {data:_0x5a16d0}=_0x24857a;return _0x5a16d0&&'removeFormat'==_0x5a16d0['commandName']?{'type':'format','content':c(_0x5154a7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x505a46{['afterInit'](){const _0x8ce64=this['editor'];if(!_0x8ce64['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xc0ee56=_0x8ce64['plugins']['get']('TrackChangesEditing');_0xc0ee56['enableCommand']('goToPreviousRestrictedEditingException'),_0xc0ee56['enableCommand']('goToNextRestrictedEditingException');const _0x5302d2=_0x8ce64['plugins']['get']('RestrictedEditingModeEditing');_0x5302d2['enableCommand']('trackChanges'),_0x5302d2['enableCommand']('acceptSuggestion'),_0x5302d2['enableCommand']('discardSuggestion'),_0x5302d2['enableCommand']('acceptAllSuggestions'),_0x5302d2['enableCommand']('discardAllSuggestions'),_0x5302d2['enableCommand']('acceptSelectedSuggestions'),_0x5302d2['enableCommand']('discardSelectedSuggestions');}}class It extends _0x505a46{['afterInit'](){const _0x582717=this['editor'];if(!_0x582717['plugins']['has']('ShiftEnter'))return;const _0x14e9eb=_0x582717['plugins']['get']('TrackChangesEditing');_0x14e9eb['enableCommand']('shiftEnter'),_0x582717['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x582717),{'priority':'high'}),_0x582717['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x582717),{'priority':'high'}),_0x582717['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5efef3,_0x5ab0ea,_0x53fcb2)=>{_0x53fcb2['options']['showSuggestionHighlights']&&je(_0x582717,{'showActiveMarker':!0x1})(_0x5efef3,_0x5ab0ea,_0x53fcb2);}),_0x14e9eb['descriptionFactory']['registerElementLabel']('softBreak',_0x27d033=>c(_0x582717['locale'],'ELEMENT_LINE_BREAK',_0x27d033));}}function je(_0x5434ed,{showActiveMarker:_0x363f44=!0x0}={}){return(_0x4afb13,_0x5f4b64,_0x1b2cf0)=>{const _0x53f9cd=_0x5434ed['plugins']['get']('TrackChangesEditing');if(!_0x1b2cf0['consumable']['test'](_0x5f4b64['markerRange'],_0x4afb13['name']))return;const _0x4c68d7=_0x5434ed['model'];for(const _0x518380 of _0x5f4b64['markerRange']['getItems']()){if(!_0x518380['is']('element','softBreak'))continue;const _0x5151ec='deletion'==_0x5f4b64['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4b0e39}=_0x53f9cd['_splitMarkerName'](_0x5f4b64['markerName']),_0x46932e=_0x1b2cf0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5151ec,'data-author-id':_0x4b0e39}),_0x48bb37=_0x1b2cf0['mapper']['toViewPosition'](_0x4c68d7['createPositionBefore'](_0x518380));_0x363f44&&_0x53f9cd['activeMarkers']['includes'](_0x5f4b64['markerName'])&&_0x1b2cf0['writer']['addClass']('ck-suggestion-marker--active',_0x46932e),_0x1b2cf0['writer']['insert'](_0x48bb37,_0x46932e),_0x1b2cf0['mapper']['bindElementToMarker'](_0x46932e,_0x5f4b64['markerName']);}};}class _t extends _0x505a46{['afterInit'](){const _0x5268b0=this['editor'],_0x116eaa=_0x5268b0['model'],_0xa74e0d=_0x5268b0['locale'];if(!_0x5268b0['plugins']['has']('StandardEditingModeEditing'))return;const _0x4f104f=_0x5268b0['plugins']['get']('TrackChangesEditing'),_0x9b9ca3='restrictedEditingException',_0x25664c=_0x5268b0['commands']['get'](_0x9b9ca3);_0x4f104f['enableCommand'](_0x9b9ca3,(_0x27191b,_0x1966b1={})=>{const _0x54b8b6=_0x116eaa['document']['selection'];if(_0x54b8b6['isCollapsed'])return void _0x27191b(_0x1966b1);const _0x5e9904=void 0x0!==_0x1966b1['forceValue']?_0x1966b1['forceValue']:!_0x25664c['value'];_0x116eaa['change'](()=>{const _0x2ccec3=Array['from'](_0x54b8b6['getRanges']());for(const _0x4f44a0 of _0x2ccec3){const _0x5cf00d=_0x5e9904?[_0x4f44a0]:io(_0x9b9ca3,_0x4f44a0,_0x116eaa);for(const _0x3a8fa0 of _0x5cf00d)_0x4f104f['markInlineFormat'](_0x3a8fa0,{'commandName':_0x9b9ca3,'commandParams':[{'forceValue':_0x5e9904}]});}});}),_0x4f104f['descriptionFactory']['registerDescriptionCallback'](_0x28a804=>{if('formatBlock'!=_0x28a804['type']&&'formatInline'!=_0x28a804['type'])return;const {data:_0xea4128}=_0x28a804;return _0xea4128&&_0xea4128['commandName']==_0x9b9ca3?_0xea4128['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xa74e0d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0xa74e0d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x505a46{['afterInit'](){const _0x1bdaba=this['editor'];if(!_0x1bdaba['plugins']['has']('Style')||!_0x1bdaba['plugins']['has']('DataSchema'))return;const _0x10834d=_0x1bdaba['plugins']['get']('TrackChangesEditing'),_0x3c2871=_0x1bdaba['locale'],_0x4a5901=_0x1bdaba['config']['get']('style')||{},_0x140d32=_0x1bdaba['plugins']['get']('GeneralHtmlSupport'),_0x57d6f3=_0x1bdaba['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1bdaba['plugins']['get']('DataSchema'),_0x4a5901['definitions']);_0x10834d['enableDefaultAttributesIntegration']('style');const _0x273744=new Set();for(const _0x1cb5a6 of _0x57d6f3['block']){const _0x491a7d=_0x140d32['getGhsAttributeNameForElement'](_0x1cb5a6['element']);_0x273744['add'](_0x491a7d);}const _0x15b9c6=new Set();for(const _0x17d214 of _0x57d6f3['inline']){const _0x58fa8f=_0x140d32['getGhsAttributeNameForElement'](_0x17d214['element']);_0x15b9c6['add'](_0x58fa8f);for(const _0x29bd82 of _0x17d214['ghsAttributes'])_0x15b9c6['add'](_0x29bd82);}for(const _0x46e071 of _0x273744)_0x10834d['registerBlockAttribute'](_0x46e071),_0x10834d['descriptionFactory']['registerAttributeLabel'](_0x46e071,c(_0x3c2871,'FORMAT_STYLE'));for(const _0x13f30c of _0x15b9c6)_0x10834d['registerInlineAttribute'](_0x13f30c),_0x10834d['descriptionFactory']['registerAttributeLabel'](_0x13f30c,c(_0x3c2871,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x576cde=this['editor'],_0x4ac9bf=_0x576cde['locale'];_0x576cde['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1862d5=>{if('formatBlock'!=_0x1862d5['type']&&'formatInline'!=_0x1862d5['type'])return;const {data:_0x468a5d}=_0x1862d5;return _0x468a5d&&'style'===_0x468a5d['commandName']?_0x468a5d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4ac9bf,'*Set\x20format:*\x20%0',_0x468a5d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x4ac9bf,'*Remove\x20format:*\x20%0',_0x468a5d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x505a46{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3a7c34){super(_0x3a7c34),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3603c2=this['editor'],_0x5bebe0=_0x3603c2['model']['document']['selection'];if(!_0x3603c2['plugins']['has']('TableEditing'))return;const _0x1dc2d0=_0x3603c2['locale'],_0x3f031f=_0x3603c2['plugins']['get']('TrackChangesEditing'),_0x3a3a88=_0x3603c2['plugins']['get']('TableUtils');_0x3f031f['descriptionFactory']['registerElementLabel']('table',_0x4b0757=>c(_0x1dc2d0,'ELEMENT_TABLE',_0x4b0757)),this['_setupColumnsRowsFixing'](),_0x3f031f['enableCommand']('insertTable'),_0x3f031f['enableCommand']('selectTableRow'),_0x3f031f['enableCommand']('selectTableColumn');for(const _0x5c0b2f of['insertTableRowAbove','insertTableRowBelow']){const _0x4add2b=_0x3603c2['commands']['get'](_0x5c0b2f);_0x3f031f['enableCommand'](_0x5c0b2f,_0xc0d23f=>{_0x3603c2['model']['change'](_0x1eed61=>{_0xc0d23f();const _0x127a3d='above'===_0x4add2b['order'],_0x30971a=_0x3a3a88['getSelectionAffectedTableCells'](_0x5bebe0),_0x2f6a2b=_0x3a3a88['getRowIndexes'](_0x30971a),_0x55203c=_0x127a3d?_0x2f6a2b['first']-0x1:_0x2f6a2b['last']+0x1,_0x5e106a=_0x30971a[0x0]['findAncestor']('table'),_0x76711f=_0x3a3a88['createTableWalker'](_0x5e106a,{'startRow':_0x55203c,'endRow':_0x55203c}),_0x242a1b=Array['from'](_0x76711f)['map'](_0x1f92e7=>_0x1eed61['createRangeOn'](_0x1f92e7['cell']));_0x3f031f['markMultiRangeInsertion'](_0x242a1b,'tableRow');});});}for(const _0x567284 of['insertTableColumnLeft','insertTableColumnRight']){const _0x31ea48=_0x3603c2['commands']['get'](_0x567284);_0x3f031f['enableCommand'](_0x567284,_0x10112b=>{_0x3603c2['model']['change'](_0x206015=>{_0x10112b();const _0x34bbba='left'===_0x31ea48['order'],_0x1baeaa=_0x3a3a88['getSelectionAffectedTableCells'](_0x5bebe0),_0x5ede3a=_0x3a3a88['getColumnIndexes'](_0x1baeaa),_0xd95c13=_0x34bbba?_0x5ede3a['first']-0x1:_0x5ede3a['last']+0x1,_0xe50678=_0x1baeaa[0x0]['findAncestor']('table'),_0xf02e02=_0x3a3a88['createTableWalker'](_0xe50678,{'startRow':0x0,'column':_0xd95c13,'includeAllSlots':!0x1}),_0x2aeb4b=Array['from'](_0xf02e02)['map'](_0x430190=>_0x206015['createRangeOn'](_0x430190['cell']));_0x3f031f['markMultiRangeInsertion'](_0x2aeb4b,'tableColumn');});});}for(const _0x44c760 of['removeTableRow','removeTableColumn']){const _0x5c64b2=_0x44c760['substr'](0xb),_0x2e6b3b=_0x5c64b2['toLowerCase'](),_0x31e85d=_0x2e6b3b['substr'](0x0,0x3)+'span',_0x590c52='table'+_0x5c64b2,_0x2fb97b='min'+_0x5c64b2,_0x523847='max'+_0x5c64b2;_0x3f031f['enableCommand'](_0x44c760,()=>{_0x3603c2['model']['change'](_0x3d3e9b=>{const _0x1d54d4=_0x3a3a88['getSelectionAffectedTableCells'](_0x5bebe0),_0x250558=_0x1d54d4[0x0]['findAncestor']('table');let _0x14f224;if('removeTableRow'==_0x44c760){const _0x2d2eec=_0x3a3a88['getRowIndexes'](_0x1d54d4);_0x14f224={'startRow':_0x2d2eec['first'],'endRow':_0x2d2eec['last'],'includeAllSlots':!0x0};}else{const _0x22b85f=_0x3a3a88['getColumnIndexes'](_0x1d54d4);_0x14f224={'startColumn':_0x22b85f['first'],'endColumn':_0x22b85f['last'],'includeAllSlots':!0x0};}const _0x2047d6=_0x3a3a88['createTableWalker'](_0x250558,_0x14f224),_0x1f52a9=Array['from'](_0x2047d6)['map'](({cell:_0x34ef5b})=>_0x34ef5b),_0x53f1d0=Ne(_0x1f52a9['filter'](_0x190b59=>_0x190b59['hasAttribute'](_0x31e85d))),_0x3c94d0=Ne(_0x1f52a9['filter'](_0x3267d1=>!_0x3267d1['hasAttribute'](_0x31e85d)))['map'](_0x254eca=>_0x3d3e9b['createRangeOn'](_0x254eca)),_0x283493=_0x3f031f['markMultiRangeDeletion'](_0x3c94d0,_0x590c52);if(_0x283493&&('tableRow'==_0x283493['subType']||'tableColumn'==_0x283493['subType'])){const _0x1147b2=this['_getSuggestionCoords'](_0x283493);for(const _0x3243ff of _0x53f1d0){const _0x45ac85=_0x3d3e9b['createRangeOn'](_0x3243ff),_0x7eb4f3=_0x3a3a88['getCellLocation'](_0x3243ff),_0xed2afe=_0x3243ff['getAttribute'](_0x31e85d)-0x1,_0x15bd11=_0x1147b2[_0x2fb97b],_0x556d7f=_0x1147b2[_0x523847];_0x15bd11<=_0x7eb4f3[_0x2e6b3b]&&_0x7eb4f3[_0x2e6b3b]+_0xed2afe<=_0x556d7f&&_0x283493['addRange'](_0x45ac85);}}});});}function _0x480151(_0x4ecf07){const _0x185aa9=Array['from'](_0x5bebe0['getRanges']())['map'](_0x41d7de=>_0x3b5a68['fromRange'](_0x41d7de));_0x3603c2['model']['change'](_0x3dd80a=>{const _0x9882f1=_0x3dd80a['batch'];_0x4ecf07=_0x4ecf07['filter'](_0x5de836=>'$graveyard'!=_0x5de836['root']['rootName']),_0x3dd80a['setSelection'](_0x4ecf07),_0x3603c2['commands']['get']('removeTableRow')['refresh'](),_0x3603c2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3603c2['model']['enqueueChange'](()=>{_0x3603c2['model']['enqueueChange'](_0x9882f1,_0x3d8e9a=>{const _0xbd6154=_0x185aa9['filter'](_0x5132a0=>'$graveyard'!=_0x5132a0['root']['rootName']);_0xbd6154['length']>0x0&&_0x3d8e9a['setSelection'](_0xbd6154);for(const _0x35051c of _0x185aa9)_0x35051c['detach']();});});});}function _0x21ba8e(_0x2c8f46){_0x3603c2['model']['change'](_0x44c5ba=>{const _0x4e92c2=Array['from'](_0x5bebe0['getRanges']())['map'](_0x10b92f=>_0x3b5a68['fromRange'](_0x10b92f)),_0x92abaf=[];for(const _0xe67a4c of _0x2c8f46)for(const _0x1e0f17 of _0xe67a4c['getItems']({'shallow':!0x0}))_0x92abaf['push'](_0x1e0f17);for(const _0x33e24c of _0x92abaf)'$graveyard'!=_0x33e24c['root']['rootName']&&(_0x44c5ba['setSelection'](_0x44c5ba['createPositionAt'](_0x33e24c,0x0)),_0x3603c2['commands']['get']('removeTableColumn')['refresh'](),_0x3603c2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4ac6de=_0x4e92c2['filter'](_0x50a681=>'$graveyard'!=_0x50a681['root']['rootName']);_0x4ac6de['length']>0x0&&_0x44c5ba['setSelection'](_0x4ac6de);for(const _0x2db906 of _0x4e92c2)_0x2db906['detach']();});}function _0x1ded78(_0x551b4d,_0x6dbc6a){return _0x6dbc6a['every'](_0x2e5f3a=>_0x551b4d['some'](_0x2018d4=>_0x2018d4['end']['isEqual'](_0x2e5f3a['start'])||_0x2e5f3a['end']['isEqual'](_0x2018d4['start'])));}function _0x4af28f(_0x515039,_0x2c1a1f){return!_0x515039['some'](_0xa8f094=>_0x2c1a1f['some'](_0x4b3523=>_0xa8f094['isIntersecting'](_0x4b3523)))&&_0x515039['some'](_0x4d25a3=>_0x2c1a1f['some'](_0x94135f=>_0x4d25a3['end']['isTouching'](_0x94135f['start'])));}_0x3603c2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x45ac9e,_0x373f65,_0x31bb62)=>{if(!_0x31bb62['options']['showSuggestionHighlights'])return;const _0x3e17f8=_0x373f65['item'];if(!_0x3e17f8)return;const _0x1f6dfa=_0x31bb62['mapper']['toViewElement'](_0x3e17f8);function _0x5742ee(_0x314ad7){return Array['isArray'](_0x314ad7)?_0x314ad7:[_0x314ad7];}_0x1f6dfa&&'tableCell'===_0x3e17f8['name']&&_0x3e5824(_0x1f6dfa,_0x31bb62['writer'],(_0x48d7dc,_0x5eb10b,_0x468edf)=>_0x468edf['addClass'](_0x5742ee(_0x5eb10b['classes']),_0x48d7dc),(_0x221b72,_0x2581bc,_0x573615)=>_0x573615['removeClass'](_0x5742ee(_0x2581bc['classes']),_0x221b72));},{'priority':'highest'}),_0x3f031f['descriptionFactory']['registerDescriptionCallback'](_0x4597a6=>{if('insertion'!=_0x4597a6['type']&&'deletion'!=_0x4597a6['type'])return;const _0x1715f8=_0x4597a6['getContainedElement']();if(null!=_0x1715f8&&_0x1715f8['is']('element','table')){if('insertion'==_0x4597a6['type']){const _0x553a98=_0x4597a6['getItems']()['filter'](_0x42faeb=>_0x42faeb['is']('$textProxy'))['map'](_0x8fa015=>_0x8fa015['data']);if(_0x553a98['length'])return{'type':'insertion','content':c(_0x1dc2d0,'*Insert:*\x20%0',c(_0x1dc2d0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x553a98['join']('\x20')+'\x22'))};}if('deletion'==_0x4597a6['type']){const _0x3f9a71=_0x4597a6['getItems']()['filter'](_0x380a57=>_0x380a57['is']('$textProxy'))['map'](_0x234eff=>_0x234eff['data']);if(_0x3f9a71['length'])return{'type':'deletion','content':c(_0x1dc2d0,'*Remove:*\x20%0',c(_0x1dc2d0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3f9a71['join']('\x20')+'\x22'))};}}}),_0x3f031f['descriptionFactory']['registerDescriptionCallback'](_0x4a556b=>{if('tableRow'==_0x4a556b['subType']){const _0x6744c5=_0x4a556b['getItems']()['filter'](_0x264f1e=>_0x264f1e['is']('$textProxy'))['map'](_0x1bb89b=>_0x1bb89b['data']),_0x4ee2fc=this['_getSuggestionCoords'](_0x4a556b),_0xde4d6e=_0x4ee2fc['maxRow']-_0x4ee2fc['minRow']+0x1;if('insertion'==_0x4a556b['type'])return _0x6744c5['length']?{'type':'insertion','content':c(_0x1dc2d0,'*Insert:*\x20%0',c(_0x1dc2d0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xde4d6e,'\x22'+_0x6744c5['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1dc2d0,'*Insert:*\x20%0',c(_0x1dc2d0,'ELEMENT_TABLE_ROW',_0xde4d6e))};if('deletion'==_0x4a556b['type'])return _0x6744c5['length']?{'type':'deletion','content':c(_0x1dc2d0,'*Remove:*\x20%0',c(_0x1dc2d0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xde4d6e,'\x22'+_0x6744c5['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1dc2d0,'*Remove:*\x20%0',c(_0x1dc2d0,'ELEMENT_TABLE_ROW',_0xde4d6e))};}if('tableColumn'==_0x4a556b['subType']){const _0xe63d80=_0x4a556b['getItems']()['filter'](_0x1af726=>_0x1af726['is']('$textProxy'))['map'](_0x221c03=>_0x221c03['data']),_0x4479c2=this['_getSuggestionCoords'](_0x4a556b),_0x319bf4=_0x4479c2['maxColumn']-_0x4479c2['minColumn']+0x1;if('insertion'==_0x4a556b['type'])return _0xe63d80['length']?{'type':'insertion','content':c(_0x1dc2d0,'*Insert:*\x20%0',c(_0x1dc2d0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x319bf4,'\x22'+_0xe63d80['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1dc2d0,'*Insert:*\x20%0',c(_0x1dc2d0,'ELEMENT_TABLE_COLUMN',_0x319bf4))};if('deletion'==_0x4a556b['type'])return _0xe63d80['length']?{'type':'deletion','content':c(_0x1dc2d0,'*Remove:*\x20%0',c(_0x1dc2d0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x319bf4,'\x22'+_0xe63d80['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1dc2d0,'*Remove:*\x20%0',c(_0x1dc2d0,'ELEMENT_TABLE_COLUMN',_0x319bf4))};}}),_0x3f031f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x480151),_0x3f031f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x480151),_0x3f031f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x21ba8e),_0x3f031f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x21ba8e),_0x3f031f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1ded78),_0x3f031f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1ded78),_0x3f031f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4af28f),_0x3f031f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4af28f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4587a4=this['editor'],_0x3ef13f=_0x4587a4['model']['document']['selection'];return(_0x1754aa,_0x4cf5c9)=>{_0x4587a4['model']['change'](_0x2acde8=>{const {commandName:_0x34d7ab,commandParams:_0x395e71}=_0x4cf5c9;let _0x5c159e=_0x1754aa[0x0]['end']['nodeBefore'];_0x395e71&&_0x395e71[0x0]&&!0x1===_0x395e71[0x0]['forceValue']&&(_0x5c159e=_0x1754aa[0x0]['start']['nodeAfter']);const _0x3a8115=_0x2acde8['createRangeIn'](_0x5c159e);if('$graveyard'==_0x3a8115['root']['rootName'])return;const _0x2df217=Array['from'](_0x3ef13f['getRanges']())['map'](_0x53e473=>_0x3b5a68['fromRange'](_0x53e473));_0x2acde8['setSelection'](_0x3a8115),_0x4587a4['commands']['get'](_0x34d7ab)['refresh'](),_0x395e71['push']({'forceDefaultExecution':!0x0}),_0x4587a4['execute'](_0x34d7ab,..._0x395e71);const _0x117826=_0x2df217['filter'](_0x4dda21=>'$graveyard'!=_0x4dda21['root']['rootName']);_0x117826['length']>0x0&&_0x2acde8['setSelection'](_0x117826);for(const _0x57ab29 of _0x2df217)_0x57ab29['detach']();});};}['_getCoordsForCells'](_0x4e5475){const _0xbf0d34=this['editor']['plugins']['get']('TableUtils');let _0xed564c=Number['MAX_SAFE_INTEGER'],_0x4fc6de=Number['MIN_SAFE_INTEGER'],_0x366a66=Number['MAX_SAFE_INTEGER'],_0x1ac05f=Number['MIN_SAFE_INTEGER'];for(const _0x5c67ff of _0x4e5475){if('$graveyard'==_0x5c67ff['root']['rootName'])continue;const {row:_0x3e5754,column:_0x56e614}=_0xbf0d34['getCellLocation'](_0x5c67ff),_0x3c6ded=_0x5c67ff['hasAttribute']('rowspan')?_0x5c67ff['getAttribute']('rowspan')-0x1:0x0,_0x7aa5e9=_0x5c67ff['hasAttribute']('colspan')?_0x5c67ff['getAttribute']('colspan')-0x1:0x0;_0xed564c=_0x3e5754<_0xed564c?_0x3e5754:_0xed564c,_0x4fc6de=_0x3e5754+_0x3c6ded>_0x4fc6de?_0x3e5754+_0x3c6ded:_0x4fc6de,_0x366a66=_0x56e614<_0x366a66?_0x56e614:_0x366a66,_0x1ac05f=_0x56e614+_0x7aa5e9>_0x1ac05f?_0x56e614+_0x7aa5e9:_0x1ac05f;}return{'minRow':_0xed564c,'maxRow':_0x4fc6de,'minColumn':_0x366a66,'maxColumn':_0x1ac05f};}['_setupColumnsRowsFixing'](){const _0x564827=this['editor'],_0xf873ed=_0x564827['plugins']['get']('TrackChangesEditing'),_0x4137e3=_0x564827['plugins']['get']('TableUtils');_0x564827['model']['document']['on']('change:data',()=>{const _0x2ceef9=Array['from'](_0x564827['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x18ec32,data:_0x2f7018}of _0x2ceef9){const {group:_0x1c57d9,id:_0x52d979,subType:_0x2bf1cb}=_0xf873ed['_splitMarkerName'](_0x18ec32);if('suggestion'!=_0x1c57d9)continue;if(null!=_0x2f7018['oldRange'])continue;const _0x102fbc=_0xf873ed['getSuggestion'](_0x52d979);this['_tablePostFixingSubtypes']['includes'](_0x2bf1cb)&&this['_tableSuggestions']['add'](_0x102fbc);}},{'priority':'low'});const _0x456c12=(_0x2a3c8c,_0x383fa4)=>{let _0x3283be=!0x1;const _0x297f0d=_0x383fa4['createRangeOn'](_0x2a3c8c),_0x87f200=_0x2a3c8c['findAncestor']('table'),_0x4a9c4a=_0x4137e3['getCellLocation'](_0x2a3c8c);for(const _0x12506f of this['_tableSuggestions']){const _0x4a8a3c=_0x12506f['subType'],_0x88f297=_0x4a8a3c['startsWith']('tablePaste'),_0xdf2b5b=_0x4a8a3c['substr'](_0x88f297?0xa:0x5),_0x3cdca5=_0xdf2b5b['toLowerCase'](),_0x5e5be1=_0x3cdca5['substr'](0x0,0x3)+'span',_0x7c4943='min'+_0xdf2b5b,_0x8e3fdf='max'+_0xdf2b5b;if(!_0x12506f['isInContent'])continue;if(_0x87f200!=_0x12506f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x12506f['isIntersectingWithRange'](_0x297f0d))continue;const _0x42822d=_0x2a3c8c['hasAttribute'](_0x5e5be1)?_0x2a3c8c['getAttribute'](_0x5e5be1)-0x1:0x0,_0x235186=this['_getSuggestionCoords'](_0x12506f),_0x3af6ba=_0x235186[_0x7c4943],_0x5f0c51=_0x235186[_0x8e3fdf];_0x3af6ba<=_0x4a9c4a[_0x3cdca5]&&_0x4a9c4a[_0x3cdca5]+_0x42822d<=_0x5f0c51&&(_0x12506f['addRange'](_0x297f0d),_0x3283be=!0x0);}return _0x3283be;};_0x564827['model']['document']['registerPostFixer'](_0x4db3bc=>{let _0x4df674=!0x1;for(const _0x344e0d of _0x564827['model']['document']['differ']['getChanges']())if('insert'==_0x344e0d['type']){if('tableRow'==_0x344e0d['name']){for(const _0x3f7994 of _0x344e0d['position']['nodeAfter']['getChildren']())_0x4df674=_0x4df674||_0x456c12(_0x3f7994,_0x4db3bc);}else'tableCell'==_0x344e0d['name']&&(_0x4df674=_0x4df674||_0x456c12(_0x344e0d['position']['nodeAfter'],_0x4db3bc));}return _0x4df674;});}['_getSuggestionCoords'](_0x38858b){return this['_getCoordsForCells'](_0x38858b['getRanges']()['map'](_0x1d2a05=>_0x1d2a05['start']['nodeAfter']));}}function Ne(_0x31514e){return Array['from'](new Set(_0x31514e)['values']());}class Nt extends _0x505a46{static get['requires'](){return[Ct];}['afterInit'](){const _0x6acef6=this['editor'],_0x51fdf7=_0x6acef6['model']['document']['selection'],_0x2b12da=_0x6acef6['locale'];if(!_0x6acef6['plugins']['has']('TableEditing'))return;const _0x5ec92a=_0x6acef6['plugins']['get']('TrackChangesEditing'),_0x2a640f=_0x6acef6['plugins']['get']('TableUtils'),_0x3f7869=_0x6acef6['plugins']['get'](Ct);_0x3f7869['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5ec92a['enableCommand']('mergeTableCells',()=>{const _0x1d5820=_0x2a640f['getSelectionAffectedTableCells'](_0x6acef6['model']['document']['selection']);_0x6acef6['model']['change'](()=>{_0x5ec92a['markMultiRangeBlockFormat'](_0x1d5820,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x6acef6['commands']['get']('mergeTableCells')['on']('execute',(_0x36e8fc,_0x34d4bf)=>{_0x6acef6['commands']['get']('trackChanges')['value']&&(_0x34d4bf['length']>0x0&&_0x34d4bf[_0x34d4bf['length']-0x1]&&_0x34d4bf[_0x34d4bf['length']-0x1]['forceDefaultExecution']||_0x5ec92a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x36e8fc['stop']());},{'priority':'highest'});for(const _0xb5ab2b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5d7a08=_0x6acef6['commands']['get'](_0xb5ab2b);_0x5ec92a['enableCommand'](_0xb5ab2b,()=>{const _0x5b4f74=_0x6acef6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4905e4=>_0x4905e4['is']('element','tableCell')),_0x4cee37=_0x5d7a08['value'];_0x6acef6['model']['change'](()=>{_0x5ec92a['markMultiRangeBlockFormat']([_0x5b4f74,_0x4cee37],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x26851b of['splitTableCellVertically','splitTableCellHorizontally']){const _0xea6022=_0x6acef6['commands']['get'](_0x26851b);_0x5ec92a['enableCommand'](_0x26851b,()=>{const _0x3b47d6=_0x2a640f['getSelectionAffectedTableCells'](_0x6acef6['model']['document']['selection'])[0x0],_0x3bd2b0=_0x3b47d6['findAncestor']('table'),{column:_0x16c603,row:_0x2741cb}=_0x2a640f['getCellLocation'](_0x3b47d6);let _0x363a4d=[];if('horizontally'==_0xea6022['direction']){const _0x1cb105=_0x2a640f['createTableWalker'](_0x3bd2b0,{'startRow':_0x2741cb,'endRow':_0x2741cb,'includeAllSlots':!0x0});_0x363a4d=Array['from'](_0x1cb105)['map'](_0x508aaf=>_0x508aaf['cell']);}else{const _0x553c8b=_0x2a640f['createTableWalker'](_0x3bd2b0,{'column':_0x16c603,'includeAllSlots':!0x0});_0x363a4d=Array['from'](_0x553c8b)['map'](_0x3e91bb=>_0x3e91bb['cell']);}_0x6acef6['model']['change'](_0x34f250=>{_0x5ec92a['markBlockFormat'](_0x34f250['createRangeOn'](_0x3b47d6),{'commandName':_0x26851b,'commandParams':[]},_0x363a4d,_0x26851b);});});}_0x5ec92a['descriptionFactory']['registerDescriptionCallback'](_0x1858ef=>{if('formatBlock'!=_0x1858ef['type']&&'formatInline'!=_0x1858ef['type'])return;const {data:_0x428546}=_0x1858ef;return _0x428546&&'mergeTableCells'==_0x428546['commandName']?{'type':'format','content':c(_0x2b12da,'*Merge\x20cells*')}:void 0x0;}),_0x5ec92a['descriptionFactory']['registerDescriptionCallback'](_0x371f57=>{if('formatBlock'!=_0x371f57['type']&&'formatInline'!=_0x371f57['type'])return;const {data:_0x1b3175}=_0x371f57;return _0x1b3175?'splitTableCellVertically'==_0x1b3175['commandName']?{'type':'format','content':c(_0x2b12da,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1b3175['commandName']?{'type':'format','content':c(_0x2b12da,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x59880f=_0x3f7869['_acceptFormatSuggestionCallbackFactory']();for(const _0x3bed63 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5ec92a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3bed63,'accept',_0x59880f);for(const _0x12eddb of['splitTableCellVertically','splitTableCellHorizontally'])_0x5ec92a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x12eddb,'accept',_0x59880f);_0x5ec92a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x40e6a3=>{_0x6acef6['model']['change'](_0x3abbff=>{const _0x29df98=Array['from'](_0x51fdf7['getRanges']())['map'](_0x571200=>_0x3b5a68['fromRange'](_0x571200));_0x3abbff['setSelection'](_0x40e6a3),_0x6acef6['commands']['get']('mergeTableCells')['refresh'](),_0x6acef6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1a6812=_0x29df98['filter'](_0x4b0ff9=>'$graveyard'!=_0x4b0ff9['root']['rootName']);_0x1a6812['length']>0x0&&_0x3abbff['setSelection'](_0x1a6812);for(const _0x23787a of _0x29df98)_0x23787a['detach']();});});for(const _0x5cfa69 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x48dd73=_0x6acef6['commands']['get'](_0x5cfa69);_0x48dd73['on']('set:isEnabled',(_0x5f2011,_0x5e9123,_0x36209d)=>{if(_0x36209d){const _0x24db0b=_0x6acef6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x55213f=>_0x55213f['is']('element','tableCell'));this['_areMergableCells'](_0x48dd73['value'],_0x24db0b)||(_0x5f2011['return']=!0x1,_0x5f2011['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3e2a53=this['editor']['commands']['get']('mergeTableCells'),_0xd900f1=this['editor']['plugins']['get']('TableUtils');if(!_0x3e2a53['isEnabled'])return!0x1;const _0x29a524=_0xd900f1['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x42a210 of _0x29a524)for(const _0x34926f of _0x29a524)if(_0x42a210!=_0x34926f&&!this['_areMergableCells'](_0x42a210,_0x34926f))return!0x1;return!0x0;}['_areMergableCells'](_0x45a5c6,_0x49ad93){const _0x211910=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3931fc=this['editor']['model']['createRangeOn'](_0x45a5c6),_0x61279f=this['editor']['model']['createRangeOn'](_0x49ad93),_0x59b975=new Set(),_0x19aaae=new Set();for(const _0x3a57af of _0x211910['getSuggestions']())if(('insertion'==_0x3a57af['type']||'deletion'==_0x3a57af['type']||'mergeTableCells'==_0x3a57af['subType'])&&_0x3a57af['isInContent']){for(const _0xb7e525 of _0x3a57af['getRanges']())_0xb7e525['containsRange'](_0x3931fc,!0x0)&&_0x59b975['add'](_0x3a57af['type']+':'+_0x3a57af['author']['id']),_0xb7e525['containsRange'](_0x61279f,!0x0)&&_0x19aaae['add'](_0x3a57af['type']+':'+_0x3a57af['author']['id']);}if(_0x59b975['size']!=_0x19aaae['size'])return!0x1;for(const _0x850f72 of _0x59b975)if(!_0x19aaae['has'](_0x850f72))return!0x1;return!0x0;}}class Dt extends _0x505a46{static get['requires'](){return[Ct];}['afterInit'](){const _0x53744a=this['editor'];if(!_0x53744a['plugins']['has']('TableEditing'))return;const _0x372a93=_0x53744a['locale'],_0x442417=_0x53744a['plugins']['get']('TrackChangesEditing');_0x442417['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x442417['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x442417['registerBlockAttribute']('headingRows'),_0x442417['registerBlockAttribute']('headingColumns'),_0x442417['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x372a93,'FORMAT_HEADER_ROW')),_0x442417['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x372a93,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3af7ad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f1b4a=this['editor']['plugins']['get']('TableUtils'),_0x491205=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x21de85({showActiveMarker:_0x504f7b=!0x0,setDataAttribute:_0x2aee2d=!0x0}={}){return(_0x1c2777,_0x4f5c38,_0x28982a)=>{const {type:_0x265480,id:_0x3c8e7d}=_0x3af7ad['_splitMarkerName'](_0x4f5c38['markerName']),_0x297e5d=_0x3af7ad['getSuggestion'](_0x3c8e7d),_0x4fc6ac=_0x297e5d['data'];if('formatBlock'!=_0x297e5d['type']||!_0x4fc6ac||'setTableColumnHeader'!=_0x4fc6ac['commandName'])return;if(_0x4f5c38['item'])return void _0x1c2777['stop']();if(!_0x28982a['consumable']['consume'](_0x4f5c38['markerRange'],_0x1c2777['name']))return;const _0x2168cb=_0x4f5c38['markerRange']['start']['nodeAfter'],_0x292f2d=_0x4f5c38['markerRange']['end']['nodeBefore'],_0x14478f=_0x2168cb['parent']['parent'],{column:_0xd589e8}=_0x3f1b4a['getCellLocation'](_0x2168cb),{column:_0x5c5a4c}=_0x3f1b4a['getCellLocation'](_0x292f2d);for(let _0x213c55=_0xd589e8;_0x213c55<=_0x5c5a4c;_0x213c55++){const _0x4606b9=_0x3f1b4a['createTableWalker'](_0x14478f,{'column':_0x213c55,'includeAllSlots':!0x1});for(const _0x2cda95 of _0x4606b9){const _0x3608cc=_0x2cda95['cell'],_0x286521=_0x28982a['mapper']['toViewElement'](_0x3608cc);_0x28982a['writer']['addClass']('ck-suggestion-marker-'+_0x265480,_0x286521),_0x2aee2d&&_0x28982a['writer']['setAttribute']('data-suggestion',_0x3c8e7d,_0x286521),_0x28982a['mapper']['bindElementToMarker'](_0x286521,_0x4f5c38['markerName']),_0x504f7b&&(_0x3af7ad['activeMarkers']['includes'](_0x4f5c38['markerName'])?_0x28982a['writer']['addClass']('ck-suggestion-marker--active',_0x286521):_0x28982a['writer']['removeClass']('ck-suggestion-marker--active',_0x286521));}}};}_0x3af7ad['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x491205),_0x3af7ad['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x491205),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x21de85(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xcc92ef,_0x1dcac4,_0x371fa2)=>{_0x371fa2['options']['showSuggestionHighlights']&&_0x21de85({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xcc92ef,_0x1dcac4,_0x371fa2);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xc64903,_0x29cba2,_0x305422)=>{const {type:_0x446760,id:_0x429d74}=_0x3af7ad['_splitMarkerName'](_0x29cba2['markerName']),_0x5bc1e9=_0x3af7ad['getSuggestion'](_0x429d74),_0x17d6e8=_0x5bc1e9['data'];if('formatBlock'!=_0x5bc1e9['type']||!_0x17d6e8||'setTableColumnHeader'!=_0x17d6e8['commandName'])return;const _0x4fe7b1=_0x305422['mapper']['markerNameToElements'](_0x29cba2['markerName']);if(_0x4fe7b1){for(const _0xd40012 of _0x4fe7b1)_0x305422['writer']['removeClass']('ck-suggestion-marker-'+_0x446760,_0xd40012),_0x305422['writer']['removeClass']('ck-suggestion-marker--active',_0xd40012),_0x305422['writer']['removeAttribute']('data-suggestion',_0xd40012),_0x305422['mapper']['unbindElementFromMarkerName'](_0xd40012,_0x29cba2['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b9386=this['editor'],_0x51a5d5=_0x5b9386['locale'];function _0x55fff1(_0x3caaf9){return{'type':'format','content':c(_0x51a5d5,'*Format:*\x20%0',_0x3caaf9)};}_0x5b9386['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d5ab8=>{if('formatBlock'!=_0x5d5ab8['type'])return;const {data:_0x2d8cde}=_0x5d5ab8;if(_0x2d8cde){if('setTableRowHeader'==_0x2d8cde['commandName']){const _0x4c20f7=_0x2d8cde['commandParams'][0x0]['forceValue'];return _0x55fff1(c(_0x51a5d5,_0x4c20f7?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2d8cde['commandName']){const _0x1ad5e9=_0x2d8cde['commandParams'][0x0]['forceValue'];return _0x55fff1(c(_0x51a5d5,_0x1ad5e9?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x505a46{['afterInit'](){const _0x214f40=this['editor'],_0x4767c4=_0x214f40['locale'],_0x4fd648=_0x214f40['plugins']['get']('TrackChangesEditing');function _0x1e48f9(_0x347cee){return{'type':'format','content':''+c(_0x4767c4,'*Set\x20table\x20type:*\x20%0',_0x347cee)};}_0x214f40['plugins']['has']('TableLayout')&&(_0x4fd648['enableCommand']('insertTableLayout'),_0x4fd648['enableDefaultAttributesIntegration']('tableType'),_0x4fd648['registerBlockAttribute']('tableType'),_0x4fd648['descriptionFactory']['registerElementLabel'](_0x4951ca=>_0x4951ca['is']('element','table')&&'layout'===_0x4951ca['getAttribute']('tableType'),_0x20c5d6=>c(_0x4767c4,'ELEMENT_LAYOUT_TABLE',_0x20c5d6)),_0x4fd648['descriptionFactory']['registerDescriptionCallback'](_0xf2a730=>{const {data:_0x310663}=_0xf2a730;if(_0x310663&&'tableType'==_0x310663['key'])switch(_0x310663['newValue']){case'layout':return _0x1e48f9(c(_0x4767c4,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1e48f9(c(_0x4767c4,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x2bba7d=>[_0x2bba7d,null]));class $t extends _0x505a46{static get['requires'](){return[Ct];}['afterInit'](){const _0x36106e=this['editor'];if(!_0x36106e['plugins']['has']('TableClipboard'))return;const _0x4a450a=_0x36106e['plugins']['get']('TrackChangesEditing'),_0xee617f=_0x36106e['plugins']['get']('TableUtils'),_0x1cbd18=_0x36106e['plugins']['get'](Ct),_0x2f7002=_0x36106e['plugins']['get']('TableClipboard'),_0x4008c0=_0x36106e['plugins']['get']('TableSelection'),_0x51f3ec=_0x36106e['plugins']['get'](_0x544fd0);_0x1cbd18['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x36106e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x36106e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4b8ce6=null,_0x1f9c20=!0x1;_0x51f3ec['on']('contentInsertion',(_0x27b221,_0x33247c)=>{_0x1f9c20='paste'===_0x33247c['method'];}),_0x36106e['model']['on']('insertContent',(_0xbcc73e,_0x51811d)=>{if(!_0x1f9c20&&null===_0x4008c0['getSelectedTableCells']())return;const [_0x5edb84,_0x146e62]=_0x51811d,_0x221bbd=_0x51811d[_0x51811d['length']-0x1];_0x221bbd&&_0x221bbd['forceDefaultExecution']||_0x4a450a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x133312,_0x52db55,_0x52e67d,_0x34f29a,_0x3b4202){if(_0x52db55&&!_0x52db55['is']('documentSelection'))return!0x1;const _0xbaea03=_0x3b4202['getTableIfOnlyTableInContent'](_0x133312,_0x52e67d);if(!_0xbaea03||!De(_0xbaea03,void 0x0,_0x34f29a))return!0x1;const _0x55febf=_0x34f29a['getSelectionAffectedTableCells'](_0x52e67d['document']['selection']);if(!_0x55febf['length'])return!0x1;const _0x111916=_0x55febf[0x0]['findAncestor']('table'),_0x103f61=_0x34f29a['getRowIndexes'](_0x55febf),_0xe415fc=_0x34f29a['getColumnIndexes'](_0x55febf),_0x50ab44={'startRow':_0x103f61['first'],'endRow':_0x103f61['last'],'startColumn':_0xe415fc['first'],'endColumn':_0xe415fc['last']};return 0x1==_0x55febf['length']&&(_0x50ab44['endRow']+=_0x34f29a['getRows'](_0xbaea03)-0x1,_0x50ab44['endColumn']+=_0x34f29a['getColumns'](_0xbaea03)-0x1),De(_0x111916,_0x50ab44,_0x34f29a);}(_0x5edb84,_0x146e62,_0x36106e['model'],_0xee617f,_0x2f7002)&&(_0xbcc73e['stop'](),_0x4b8ce6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x36106e['model']['change'](()=>{_0x36106e['model']['insertContent'](_0x51811d[0x0],_0x51811d[0x1],_0x51811d[0x2],{'forceDefaultExecution':!0x0});const _0x384c79=_0x5b9c0f(),{rowInsertionRanges:_0xe04b40,columnInsertionRanges:_0x4a30ab,insertionRanges:_0x1bd017,deletionRanges:_0x1d7d20,cells:_0x254268}=_0x4b8ce6;_0xe04b40['length']&&_0x4a450a['markMultiRangeInsertion'](_0xe04b40,'tablePasteRow',{'tablePasteChainId':_0x384c79}),_0x4a30ab['length']&&_0x4a450a['markMultiRangeInsertion'](_0x4a30ab,'tablePasteColumn',{'tablePasteChainId':_0x384c79}),_0x1bd017['length']&&(_0x4a450a['markMultiRangeInsertion'](_0x1bd017,'tablePaste',{'tablePasteChainId':_0x384c79,'skipNestingCheck':!0x0}),_0x1bd017['forEach'](_0x48bf93=>_0x48bf93['detach']?.())),_0x1d7d20['length']&&(_0x4a450a['markMultiRangeDeletion'](_0x1d7d20,'tablePaste',{'tablePasteChainId':_0x384c79,'skipNestingCheck':!0x0}),_0x1d7d20['forEach'](_0x1a7633=>_0x1a7633['detach']?.()));const _0x44d98a=_0x4a450a['markMultiRangeBlockFormat'](_0x254268['map'](({element:_0x49f775})=>_0x49f775),{'formatGroupId':_0x5b9c0f()},[],'tablePasteCell',{'tablePasteChainId':_0x384c79});if(_0x44d98a){const _0x4a3454=_0x44d98a['getMarkers'](),_0x59f10a=[];for(const {element:_0x477bc6,attributes:_0x369fe2}of _0x254268){if(!_0x369fe2)continue;const _0x29580d=_0x36106e['model']['createRangeOn'](_0x477bc6),_0x492bab=_0x4a3454['find'](_0x1c64fc=>_0x1c64fc['getRange']()['isEqual'](_0x29580d));_0x492bab&&_0x59f10a['push']([_0x492bab['name'],_0x369fe2]);}_0x59f10a['length']&&_0x44d98a['setAttribute']('markerAttributes',Object['fromEntries'](_0x59f10a));}_0x4b8ce6=null;}));},{'priority':_0xb94a4a['high']+0xa}),_0x51f3ec['on']('contentInsertion',()=>{_0x1f9c20=!0x1;},{'priority':'lowest'}),_0x36106e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x10eb2f,_0x16bfde)=>{const [_0xaa9215,_0x1a8501,,_0x465319]=_0x16bfde;if(!_0x4b8ce6)return;_0x10eb2f['stop']();const _0x39d557=_0xaa9215['cell'],_0x3519a9=_0x1a8501,_0xdeae57=Ue(_0x39d557),_0x2d6768=Ue(_0x3519a9);_0x10eb2f['return']=_0x39d557;let _0x8ae0d9=null,_0x1b9358=null;if(_0x2d6768||_0xdeae57){if(_0xdeae57&&!_0x2d6768){_0x465319['remove'](_0x39d557['getChild'](0x0));for(const _0x3a1357 of Array['from'](_0x3519a9['getChildren']()))_0x465319['insert'](_0x3a1357,_0x39d557,'end');const _0x3a7c02=_0x4b8ce6['rowInsertionIndexes']['includes'](_0xaa9215['row']),_0x1e51a4=_0x4b8ce6['columnInsertionIndexes']['includes'](_0xaa9215['column']);_0x3a7c02||_0x1e51a4||(_0x8ae0d9=_0x3b5a68['fromRange'](_0x465319['createRangeIn'](_0x39d557)));}else _0x2d6768&&!_0xdeae57&&(_0x1b9358=_0x465319['createRangeIn'](_0x39d557));}else{const _0x1d34fb=_0x465319['createElement']('tableCellSuggestion'),_0x2e28ea=_0x465319['createElement']('tableCellSuggestion');_0x465319['wrap'](_0x465319['createRangeIn'](_0x39d557),_0x2e28ea),_0x465319['insert'](_0x1d34fb,_0x39d557,0x0);for(const _0x3904c7 of Array['from'](_0x3519a9['getChildren']()))_0x465319['insert'](_0x3904c7,_0x1d34fb,'end');_0x8ae0d9=_0x3b5a68['fromRange'](_0x465319['createRangeOn'](_0x1d34fb)),_0x1b9358=_0x3b5a68['fromRange'](_0x465319['createRangeOn'](_0x2e28ea));}const _0x50c350=Array['from'](_0x3519a9['getAttributes']())['filter'](([_0x587859])=>xe['includes'](_0x587859));_0x4b8ce6['cells']['push']({'element':_0x39d557,'attributes':_0x50c350['length']?Object['fromEntries'](_0x50c350):null}),_0x8ae0d9&&_0x4b8ce6['insertionRanges']['push'](_0x8ae0d9),_0x1b9358&&_0x4b8ce6['deletionRanges']['push'](_0x1b9358);},{'priority':'high'}),_0xee617f['on']('insertColumns',(_0x940e87,_0x3a1e03)=>{const [_0x4f5278,_0x2d92f1={}]=_0x3a1e03;if(!_0x4b8ce6)return;const _0x336ca4=_0x2d92f1['at']||0x0,_0x1c961a=_0x2d92f1['columns']||0x1;_0x4b8ce6['columnInsertionIndexes']=new Array(_0x1c961a)['fill'](_0x336ca4)['map']((_0x1b49ad,_0xc4aca5)=>_0x1b49ad+_0xc4aca5);for(const {cell:_0x176c34}of _0xee617f['createTableWalker'](_0x4f5278,{'startColumn':_0x336ca4,'endColumn':_0x336ca4+_0x1c961a-0x1}))_0x4b8ce6['columnInsertionRanges']['push'](_0x36106e['model']['createRangeOn'](_0x176c34));},{'priority':'low'}),_0xee617f['on']('insertRows',(_0xf95cdc,_0x482f68)=>{const [_0xe14efa,_0x94fc88={}]=_0x482f68;if(!_0x4b8ce6)return;const _0xa9cadc=_0x94fc88['at']||0x0,_0x4b3c04=_0x94fc88['rows']||0x1;_0x4b8ce6['rowInsertionIndexes']=new Array(_0x4b3c04)['fill'](_0xa9cadc)['map']((_0x364ceb,_0x3aed7f)=>_0x364ceb+_0x3aed7f);for(const {cell:_0x275e9b}of _0xee617f['createTableWalker'](_0xe14efa,{'startRow':_0xa9cadc,'endRow':_0xa9cadc+_0x4b3c04-0x1}))_0x4b8ce6['rowInsertionRanges']['push'](_0x36106e['model']['createRangeOn'](_0x275e9b));},{'priority':'low'}),_0x4a450a['descriptionFactory']['registerDescriptionCallback'](_0x28d1c0=>{if(_0x28d1c0['subType']&&_0x28d1c0['subType']['startsWith']('tablePaste'))return _0x28d1c0['previous']?{}:{'type':'insertion','content':c(_0x36106e['locale'],'*Replace\x20table\x20cells*')};});const _0x1a325c=()=>!0x1;for(const _0x18ab0a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4a450a['_suggestionFactory']['registerCustomCallback']('insertion',_0x18ab0a,'join',_0x1a325c),_0x4a450a['_suggestionFactory']['registerCustomCallback']('deletion',_0x18ab0a,'join',_0x1a325c),_0x4a450a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x18ab0a,'join',_0x1a325c);_0x4a450a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1a325c),_0x4a450a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5ef8a7,_0x176fe9,_0x2da575)=>{const _0x21a7c2=_0x5ef8a7['map'](_0x1259fb=>_0x1259fb['getContainedElement']())['filter'](_0x5b2a5b=>_0x5b2a5b),_0x1bcc52=new Map(_0x21a7c2['map'](_0x380d3f=>[_0x380d3f,null]));if(_0x4b8ce6){for(const {element:_0x1229c8,attributes:_0x2fa1a8}of _0x4b8ce6['cells'])_0x2fa1a8&&_0x1bcc52['set'](_0x1229c8,_0x2fa1a8);}else{if(_0x2da575&&_0x2da575['markerAttributes'])for(const [_0x23cace,_0x2c6098]of Object['entries'](_0x2da575['markerAttributes'])){const _0x192d4d=_0x36106e['model']['markers']['get'](_0x23cace),_0x444277=_0x192d4d?_0x192d4d['getRange']()['getContainedElement']():null;_0x444277&&_0x1bcc52['set'](_0x444277,_0x2c6098);}}_0x36106e['model']['change'](_0xfe541f=>{for(const [_0x4768eb,_0x207f2d]of _0x1bcc52)_0xfe541f['setAttributes']({...Oe,..._0x207f2d},_0x4768eb);});});const _0x4ade66=(_0x2e3bc7,_0xd9f6a4)=>{_0x4a450a['_suggestionFactory']['registerCustomCallback'](_0x2e3bc7,'tablePaste',_0xd9f6a4,(_0x53bc7a,_0x2823f4,_0x5ae46b)=>{_0x36106e['model']['change'](_0x5700ca=>{const _0x525fac=[];for(const _0x2a01e3 of _0x53bc7a){const _0x54ab7c=_0x2a01e3['start']['nodeAfter'];_0x54ab7c['is']('element','tableCellSuggestion')&&_0x525fac['push'](_0x54ab7c);}_0x4a450a['_suggestionFactory']['getSuggestionCallback'](_0x2e3bc7,null,_0xd9f6a4)(_0x53bc7a,_0x2823f4,_0x5ae46b);for(const _0x6c18d2 of _0x525fac)'$graveyard'!=_0x6c18d2['root']['rootName']&&_0x5700ca['unwrap'](_0x6c18d2);});});};_0x4ade66('insertion','accept'),_0x4ade66('insertion','discard'),_0x4ade66('deletion','accept'),_0x4ade66('deletion','discard'),_0x4a450a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x17cf87=>{const _0x2f871a=_0x17cf87['map'](_0x505f86=>_0x505f86['getContainedElement']()),_0x465714=_0x2f871a[0x0]['findAncestor']('table'),{minRow:_0x50861,maxRow:_0x5a1bf3}=_0x1cbd18['_getCoordsForCells'](_0x2f871a);_0xee617f['removeRows'](_0x465714,{'at':_0x50861,'rows':_0x5a1bf3-_0x50861+0x1});}),_0x4a450a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4e8fc0=>{const _0x100875=_0x4e8fc0['map'](_0x2c1589=>_0x2c1589['getContainedElement']()),_0x244bc6=_0x100875[0x0]['findAncestor']('table'),{minColumn:_0x3cf31d,maxColumn:_0x682a1d}=_0x1cbd18['_getCoordsForCells'](_0x100875);_0xee617f['removeColumns'](_0x244bc6,{'at':_0x3cf31d,'columns':_0x682a1d-_0x3cf31d+0x1});});const _0x4fd1c8=(_0x540136,_0x43683a)=>{if(!_0x43683a['subType']||!_0x43683a['subType']['startsWith']('tablePaste'))return;const _0x2ab1ff=_0x43683a['attributes']['tablePasteChainId'],_0x56aa03=_0x4a450a['getSuggestions']()['filter'](_0x1c85ce=>_0x1c85ce['isInContent']&&_0x1c85ce['attributes']&&_0x1c85ce['attributes']['tablePasteChainId']==_0x2ab1ff);_0x56aa03['length']&&_0x43683a['getAllAdjacentSuggestions']()['length']!=_0x56aa03['length']&&_0x56aa03['reduce']((_0x355228,_0x7e6027)=>(_0x355228['next']=_0x7e6027,_0x7e6027['previous']=_0x355228,_0x7e6027));};function _0x19d745(_0x2fa5eb,_0x1c832f=!0x0){const {id:_0x50f84f,authorId:_0x36935e}=_0x4a450a['_splitMarkerName'](_0x2fa5eb['markerName']),_0x57e65c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3cc5f6=_0x4a450a['activeMarkers']['includes'](_0x2fa5eb['markerName']);return _0x3cc5f6&&_0x57e65c['push']('ck-suggestion-marker--active'),{'classes':_0x57e65c,'attributes':{'data-suggestion':_0x50f84f,'data-author-id':_0x36935e},'priority':_0x3cc5f6&&_0x1c832f?0xbc2:0xbb8};}_0x4a450a['on']('suggestionLoaded',_0x4fd1c8,{'priority':'high'}),_0x4a450a['on']('suggestionUnloaded',_0x4fd1c8,{'priority':'high'}),_0x36106e['model']['document']['registerPostFixer'](()=>{let _0x34432b=!0x1;const _0xc6efc2=Array['from'](_0x36106e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b90be,data:_0x38af38}of _0xc6efc2){const {group:_0x139159,type:_0x2efe67,id:_0x564bb2}=_0x4a450a['_splitMarkerName'](_0x1b90be);if('suggestion'!=_0x139159||'deletion'!=_0x2efe67||_0x38af38['oldRange'])continue;if(!_0x4a450a['hasSuggestion'](_0x564bb2))continue;const _0x4089a5=_0x4a450a['getSuggestion'](_0x564bb2)['getRanges'](),_0x4c1240=_0x36106e['plugins']['get']('Users')['me'];for(const _0x2bce4e of _0x4a450a['getSuggestions']()){if(!_0x2bce4e['isInContent']||_0x2bce4e['author']!=_0x4c1240)continue;if('formatBlock'!=_0x2bce4e['type']||'tablePasteCell'!=_0x2bce4e['subType'])continue;if(_0x2bce4e['getRanges']()['every'](_0x5c5e99=>_0x4089a5['some'](_0x2e7581=>_0x2e7581['containsRange'](_0x5c5e99,!0x0)))){for(const _0x2ea0c0 of _0x2bce4e['getAllAdjacentSuggestions']())_0x2ea0c0['isInContent']&&(_0x2ea0c0['discard'](),_0x34432b=!0x0);}}}return _0x34432b;}),_0x36106e['model']['document']['registerPostFixer'](_0x143a24=>{const _0xc83762=_0x36106e['commands']['get']('redo');if(!_0xc83762||!_0xc83762['_createdBatches']['has'](_0x143a24['batch']))return!0x1;let _0x518033=!0x1;const _0x47ea6d=_0x36106e['plugins']['get']('Users')['me'],_0x1a8780=_0x36106e['model']['document']['differ']['getChanges'](),_0x16eae2=Array['from'](_0x36106e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1e94f4,data:_0x3e878a})=>{const {group:_0x4e0115,subType:_0x2457d2,authorId:_0x44b0}=_0x4a450a['_splitMarkerName'](_0x1e94f4);return'suggestion'==_0x4e0115&&'tablePaste'==_0x2457d2&&_0x44b0==_0x47ea6d['id']&&!_0x3e878a['oldRange'];});for(const _0x287bc9 of _0x1a8780){if('insert'!=_0x287bc9['type']||'tableCellSuggestion'!=_0x287bc9['name']||0x1!=_0x287bc9['length'])continue;const _0x379a3c=_0x143a24['createRange'](_0x287bc9['position'],_0x287bc9['position']['getShiftedBy'](0x1));if(!_0x16eae2['find'](({data:_0x50c7f8})=>_0x50c7f8['newRange']['isEqual'](_0x379a3c))){for(const {name:_0x1ac144,data:_0x4b89b1}of _0x16eae2)if(_0x379a3c['containsRange'](_0x4b89b1['newRange'])){_0x143a24['updateMarker'](_0x1ac144,{'range':_0x379a3c}),_0x518033=!0x0;break;}}}return _0x518033;}),_0x36106e['model']['document']['registerPostFixer'](_0x415de8=>{let _0x1fbfa=!0x1;const _0x25b829=_0x36106e['plugins']['get']('Users')['me'],_0x5df667=_0x4a450a['getSuggestions']()['filter'](_0x3e22da=>_0x3e22da['isInContent']&&_0x3e22da['author']==_0x25b829),_0x123cd6=new Set(),_0x388ecd=new Set();for(const _0x66b26c of _0x5df667)if('tablePaste'==_0x66b26c['subType'])for(const _0x8b9304 of _0x66b26c['getMarkers']()){const _0x1cdefe=_0x8b9304['getRange']()['getContainedElement']();if(_0x1cdefe){if(_0x1cdefe['is']('element','tableCellSuggestion')&&Ue(_0x1cdefe)){_0x66b26c['removeMarker'](_0x8b9304['name']),_0x123cd6['add'](_0x1cdefe),_0x1fbfa=!0x0;const _0x43b911=_0x1cdefe['nextSibling'],_0x504735=_0x1cdefe['previousSibling'],_0x3a959d=_0x43b911&&_0x43b911['is']('element','tableCellSuggestion'),_0x147a57=_0x504735&&_0x504735['is']('element','tableCellSuggestion');_0x3a959d&&!_0x123cd6['has'](_0x43b911)&&_0x388ecd['add'](_0x43b911),_0x147a57&&!_0x123cd6['has'](_0x504735)&&_0x388ecd['add'](_0x504735);}else _0x1cdefe['is']('element','paragraph')&&_0x1cdefe['isEmpty']&&(_0x66b26c['removeMarker'](_0x8b9304['name']),_0x1fbfa=!0x0);}}else{if('tablePasteCell'==_0x66b26c['subType']){if(!_0x66b26c['attributes']||!_0x66b26c['attributes']['tablePasteChainId'])continue;const _0x89a0d4=_0x66b26c['attributes']['markerAttributes'];if(_0x89a0d4&&Object['keys'](_0x89a0d4)['length'])continue;const _0x3dbb88=_0x66b26c['attributes']['tablePasteChainId'];let _0x56972b=!0x0,_0x31cbbd=!0x0;for(const _0x21a468 of _0x5df667)if(_0x21a468['subType']&&_0x21a468['subType']['startsWith']('tablePaste')){if(!_0x21a468['attributes']['tablePasteChainId']){_0x31cbbd=!0x1;break;}if(_0x21a468['id']!=_0x66b26c['id']&&_0x21a468['attributes']['tablePasteChainId']==_0x3dbb88){_0x56972b=!0x1;break;}}_0x31cbbd&&_0x56972b&&(_0x66b26c['removeMarkers'](),_0x1fbfa=!0x0);}}for(const _0x2620e6 of _0x123cd6)_0x415de8['remove'](_0x2620e6);for(const _0xea6d7b of _0x388ecd)_0x415de8['unwrap'](_0xea6d7b);return _0x1fbfa;}),_0x36106e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x507ca8=>_0x19d745(_0x507ca8),'converterPriority':'high'}),_0x36106e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x379ecb,_0x57d737)=>_0x57d737['options']['showSuggestionHighlights']?_0x19d745(_0x379ecb,!0x1):null,'converterPriority':'high'});const _0x2eb5ac=_0x36106e['editing']['view'];this['listenTo'](_0x2eb5ac['document'],'clipboardOutput',(_0x23233e,_0x219511)=>{const _0x37fa50=[];for(const _0x44a8f0 of _0x2eb5ac['createRangeIn'](_0x219511['content'])['getItems']())_0x44a8f0['is']('element','suggestion-td')&&_0x37fa50['push'](_0x44a8f0);_0x2eb5ac['change'](_0x5aab93=>{for(const _0x32e1a8 of _0x37fa50)_0x5aab93['move'](_0x5aab93['createRangeIn'](_0x32e1a8),_0x5aab93['createPositionBefore'](_0x32e1a8)),_0x5aab93['remove'](_0x32e1a8);});});}}function Ue(_0x4fd454){if(_0x4fd454['isEmpty'])return!0x0;const _0x413b51=_0x4fd454['getChild'](0x0);return _0x413b51['is']('element','paragraph')&&_0x413b51['isEmpty'];}function De(_0x45ce90,_0x18c40d={},_0x107f5a){for(const {isAnchor:_0x557348,cellHeight:_0x528c03,cellWidth:_0x6c2c4}of _0x107f5a['createTableWalker'](_0x45ce90,{'includeAllSlots':!0x0,..._0x18c40d}))if(!_0x557348||0x1!=_0x528c03||0x1!=_0x6c2c4)return!0x1;return!0x0;}class Bt extends _0x505a46{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x521ed7=this['editor']['plugins']['get']('TrackChangesEditing');_0x521ed7['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x521ed7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x521ed7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x521ed7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x521ed7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x521ed7['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4ee11f,_0x6b2148){const _0x44670e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20e422=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x50138f=_0x6b2148['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2fc0f8=_0x20e422['getColumnGroupElement'](_0x50138f);let _0x8a093e=_0x2fc0f8?_0x20e422['getTableColumnsWidths'](_0x2fc0f8):null,_0x4cfe2a=_0x50138f['getAttribute']('tableWidth')||null;const _0x2060f1=_0x6b2148['tableWidth']||_0x4cfe2a,_0x207bc5=_0x6b2148['columnWidths']||_0x8a093e,_0xa7d81d=this['editor']['plugins']['get']('Users')['me'];for(const _0x5d57a1 of _0x44670e['getSuggestions']()){const _0xe975f7=_0x5d57a1['getContainedElement']();if('resizeTable'===_0x5d57a1['subType']&&_0xe975f7===_0x50138f){_0x5d57a1['author']!==_0xa7d81d&&_0x5d57a1['discard']();const _0x5086ab=_0x5d57a1['data']['commandParams'];_0x4cfe2a=_0x5086ab[0x0]['tableWidth'],_0x8a093e=_0x5086ab[0x0]['columnWidths'];break;}}_0x4ee11f({'table':_0x50138f,'tableWidth':_0x2060f1,'columnWidths':_0x207bc5}),_0x44670e['markBlockFormat'](_0x50138f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4cfe2a,'columnWidths':_0x8a093e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x16624b){if('formatBlock'!=_0x16624b['type']&&'formatInline'!=_0x16624b['type'])return;const {data:_0x240489}=_0x16624b;if(_0x240489&&'resizeTable'===_0x240489['formatGroupId']){const _0x34a1e9='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x34a1e9)};}}}class Ot extends _0x505a46{['afterInit'](){const _0x3c1ade=this['editor'];_0x3c1ade['plugins']['has']('Template')&&_0x3c1ade['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x505a46{['afterInit'](){const _0x1f89c1=this['editor'];if(!_0x1f89c1['commands']['get']('insertTableOfContents'))return;_0x1f89c1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x335fa0=_0x1f89c1['plugins']['get']('TrackChangesEditing'),_0x44c444=_0x1f89c1['locale'];_0x335fa0['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1458dd=>c(_0x44c444,'ELEMENT_TABLE_OF_CONTENTS',_0x1458dd));}}class xt extends _0x505a46{['afterInit'](){const _0x496e1b=this['editor'];if(!_0x496e1b['plugins']['has']('Title'))return;const _0x38e23f=_0x496e1b['plugins']['get']('TrackChangesEditing');_0x38e23f['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x496e1b['locale'],'ELEMENT_TITLE')),_0x496e1b['model']['document']['registerPostFixer'](_0x3563e3=>{let _0x4f9a84=!0x1;const _0x578c1e=Array['from'](_0x496e1b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13ea5e,data:_0x1abd22}of _0x578c1e){const {group:_0x2f569e}=_0x38e23f['_splitMarkerName'](_0x13ea5e);if('suggestion'!==_0x2f569e||!_0x1abd22['newRange'])continue;const _0x5a67dc=_0x1abd22['newRange'],_0x44af83=_0x5a67dc['end']['nodeBefore'];if(!_0x44af83||!_0x44af83['is']('element','title-content'))continue;if(!_0x5a67dc['start']['isTouching'](_0x5a67dc['end']))continue;const _0x2dd5c7=_0x496e1b['model']['schema']['getNearestSelectionRange'](_0x5a67dc['end'],'forward');if(_0x2dd5c7&&_0x2dd5c7['isCollapsed']){const _0x3abdb0=_0x3563e3['createRange'](_0x5a67dc['start'],_0x2dd5c7['start']);_0x3abdb0['isEqual'](_0x5a67dc)||(_0x3563e3['updateMarker'](_0x13ea5e,{'range':_0x3abdb0}),_0x4f9a84=!0x0);}_0x4f9a84||(_0x3563e3['removeMarker'](_0x13ea5e),_0x4f9a84=!0x0);}return _0x4f9a84;});}}class Tt extends _0x505a46{['afterInit'](){const _0x5d32de=this['editor'],_0x2eedd1=_0x5d32de['plugins']['get']('TrackChangesEditing');_0x5d32de['plugins']['has']('Uploadcare')&&(_0x2eedd1['enableCommand']('uploadcare'),_0x5d32de['plugins']['has']('UploadcareImageEdit')&&(_0x2eedd1['enableCommand']('uploadcareImageEdit'),_0x2eedd1['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2eedd1['registerBlockAttribute']('uploadcareImageId'),_0x2eedd1['descriptionFactory']['registerDescriptionCallback'](_0x1b15e8=>{if('attribute'!=_0x1b15e8['type'])return;const {data:_0x1fee9d}=_0x1b15e8;return _0x1fee9d&&'uploadcareImageId'==_0x1fee9d['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x505a46{['afterInit'](){const _0x11c5f1=this['editor'],_0x48a91c=_0x11c5f1['plugins']['get']('TrackChangesEditing');_0x11c5f1['plugins']['has']('UndoEditing')&&(_0x48a91c['enableCommand']('undo'),_0x48a91c['enableCommand']('redo'));}}class Ut extends _0x505a46{static get['requires'](){return[Ct];}['afterInit'](){const _0x4df5dd=this['editor'];if(!_0x4df5dd['plugins']['has']('TableCaptionEditing'))return;_0x4df5dd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x505a46{['tableProperties'];['tableCellProperties'];constructor(_0x4d6c76){super(_0x4d6c76),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 _0x58bfc5=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x56fbf9 of this['tableProperties'])_0x58bfc5['enableCommand'](_0x56fbf9,(_0x5c2e43,_0x2d482f)=>{const _0x3f938a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x56fbf9,[_0x3f938a],this['tableProperties'],'tableProperties',_0x5c2e43,_0x2d482f);});_0x58bfc5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x58bfc5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x58bfc5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x13df0b,_0x176d2e)=>this['handleDiscardAction'](this['tableProperties'],_0x13df0b,_0x176d2e)),_0x58bfc5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x37a87d of this['tableCellProperties'])_0x58bfc5['enableCommand'](_0x37a87d,(_0x375822,_0x383cfb)=>{const _0x538fdd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x37a87d,_0x538fdd,this['tableCellProperties'],'tableCellProperties',_0x375822,_0x383cfb);});_0x58bfc5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x58bfc5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x58bfc5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x483c7d,_0x3cfd3c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x483c7d,_0x3cfd3c)),_0x58bfc5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x58bfc5['descriptionFactory']['registerDescriptionCallback'](_0x1e4c76=>this['handleSuggestionDescription'](_0x1e4c76));}['_handlePropertyChange'](_0x2a9feb,_0x23c09c,_0x1a21da,_0x46e196,_0xfc16c,_0xb7e1aa){const _0x128ae7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xb7e1aa['batch'],()=>{for(const _0x21d1f6 of _0x23c09c){if(this['_getSuggestion'](_0x21d1f6,_0x46e196))_0xfc16c(_0xb7e1aa);else{const _0x165e6c={};for(const _0x37afc0 of _0x1a21da){const _0x150f3d=_0x21d1f6['getAttribute'](_0x37afc0);void 0x0!==_0x150f3d&&(_0x165e6c[_0x37afc0]=_0x150f3d);}_0xfc16c(_0xb7e1aa),_0x128ae7['markBlockFormat'](_0x21d1f6,{'commandParams':[_0x165e6c]},[],_0x46e196);}}});}['handleDiscardAction'](_0xc6ea0f,_0x59a77d,_0x578f33){const _0x15b9a9=_0x59a77d[0x0]['start']['nodeAfter'],_0x2fe70e=_0x578f33['commandParams'][0x0];this['editor']['model']['change'](_0x2588f5=>{for(const _0x2afe71 of _0xc6ea0f)void 0x0!==_0x2fe70e[_0x2afe71]?_0x2588f5['setAttribute'](_0x2afe71,_0x2fe70e[_0x2afe71],_0x15b9a9):_0x2588f5['removeAttribute'](_0x2afe71,_0x15b9a9);});}['handleSuggestionDescription'](_0x512cd7){if(_0x512cd7['data'])switch(_0x512cd7['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'](_0xe4b1fa,_0xa93a13){const _0x156721=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x70ef03 of _0x156721['getSuggestions']({'skipNotAttached':!0x0})){const _0x2687d8=_0x70ef03['getContainedElement']();if(_0x70ef03['subType']===_0xa93a13&&_0x2687d8===_0xe4b1fa)return _0x70ef03;}return null;}}const u='$elementName';class p extends _0x505a46{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x6aac30,_0x6fc706,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4519dd){super(_0x4519dd),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1921e2,_0x1e922c,_0x3c7acd,_0x17f9f8)=>{this['_model']['change'](()=>{for(const _0x45ca0d of[..._0x17f9f8,..._0x3c7acd])this['_model']['markers']['has'](_0x45ca0d)&&_0x4519dd['editing']['reconvertMarker'](_0x45ca0d);});}),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']=_0x4519dd['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(),_0x4519dd['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4519dd['config']['get']('trackChanges.trackFormatChanges'),_0x4519dd['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4519dd['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4519dd,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x21f423=this['editor'],_0x1130e6=(_0x539204,_0x31889b)=>{if('attribute'!=_0x539204)return'ck-suggestion-marker-'+_0x539204;const _0x2c753a=_0x31889b['split']('|')[0x0];return this['_isBlockAttribute'](_0x2c753a)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x21f423['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2f7aa0=>{const {id:_0x33319e,authorId:_0x20af75,type:_0x49f598,subType:_0x1fb88a}=this['_splitMarkerName'](_0x2f7aa0['markerName']),_0x51ae7e=['ck-suggestion-marker',_0x1130e6(_0x49f598,_0x1fb88a)];let _0x2fbac3=0xbb8;return this['activeMarkers']['includes'](_0x2f7aa0['markerName'])&&(_0x51ae7e['push']('ck-suggestion-marker--active'),_0x2fbac3=0xbc2),'deletion'==_0x49f598&&(_0x2fbac3+=0x5),{'classes':_0x51ae7e,'attributes':{'data-suggestion':_0x33319e,'data-author-id':_0x20af75},'priority':_0x2fbac3};}}),_0x21f423['conversion']['for']('dataDowncast')['add'](_0x3013b5=>{_0x3013b5['on']('addMarker:suggestion',(_0x3cd501,_0x377a94,_0x4022f5)=>{if(!_0x4022f5['options']['showSuggestionHighlights'])return;const _0x3ea139=_0x377a94['item'];if(!_0x3ea139)return;const _0x53db50=_0x4022f5['mapper']['toViewElement'](_0x3ea139);_0x21f423['model']['schema']['isObject'](_0x3ea139)&&_0x53db50&&!_0x53db50['getCustomProperty']('widget')&&_0x53db50['is']('containerElement')&&_0x26f06d(_0x53db50,_0x4022f5['writer']);},{'priority':'high'});}),_0x21f423['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x41db8b,_0x4c593e)=>{if(!_0x4c593e['options']['showSuggestionHighlights'])return null;const {type:_0x2aac5d,subType:_0x1526ce}=this['_splitMarkerName'](_0x41db8b['markerName']);return{'classes':['ck-suggestion-marker',_0x1130e6(_0x2aac5d,_0x1526ce)],'priority':0xbb8};}});const _0x9de130=({showActiveMarkers:_0x35a170=!0x0,isAttributeSuggestion:_0x2cbc1f=!0x1}={})=>(_0x3a751c,_0x7d1d09,_0x2d8a0a)=>{if(!_0x7d1d09['item'])return;const {id:_0x2b43b0,authorId:_0x5ede7c}=this['_splitMarkerName'](_0x7d1d09['markerName']);if(_0x2cbc1f){const _0x36e8a3=this['_suggestions']['get'](_0x2b43b0),_0x4c3192=this['_getAttributeKey'](_0x36e8a3);if(!this['_isBlockAttribute'](_0x4c3192))return;}if(_0x7d1d09['item']['is']('selection'))return void _0x2d8a0a['consumable']['consume'](_0x7d1d09['item'],_0x3a751c['name']);const _0x4fccd6=_0x2d8a0a['mapper']['toViewElement'](_0x7d1d09['item']);if(_0x7d1d09['item']['is']('element')&&_0x21f423['model']['schema']['isBlock'](_0x7d1d09['item'])&&!_0x4fccd6['getCustomProperty']('addHighlight')){_0x2d8a0a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4fccd6),_0x2d8a0a['writer']['setAttribute']('data-suggestion',_0x2b43b0,_0x4fccd6),_0x2d8a0a['writer']['setAttribute']('data-author-id',_0x5ede7c,_0x4fccd6),_0x2d8a0a['mapper']['bindElementToMarker'](_0x4fccd6,_0x7d1d09['markerName']),_0x35a170&&(this['activeMarkers']['includes'](_0x7d1d09['markerName'])?_0x2d8a0a['writer']['addClass']('ck-suggestion-marker--active',_0x4fccd6):_0x2d8a0a['writer']['removeClass']('ck-suggestion-marker--active',_0x4fccd6));for(const _0x5baefc of _0x21f423['model']['createRangeIn'](_0x7d1d09['item'])['getItems']())_0x2d8a0a['consumable']['consume'](_0x5baefc,_0x3a751c['name']);_0x2d8a0a['consumable']['consume'](_0x7d1d09['item'],_0x3a751c['name']);}};_0x21f423['conversion']['for']('dataDowncast')['add'](_0x5108be=>{_0x5108be['on']('addMarker:suggestion:formatBlock',(_0x4b74db,_0x4a1e27,_0x520480)=>{_0x520480['options']['showSuggestionHighlights']&&_0x9de130({'showActiveMarkers':!0x1})(_0x4b74db,_0x4a1e27,_0x520480);},{'priority':'highest'});}),_0x21f423['conversion']['for']('dataDowncast')['add'](_0x3d99f0=>{_0x3d99f0['on']('addMarker:suggestion:attribute',(_0x3ab9b9,_0xdea64d,_0x19f684)=>{_0x19f684['options']['showSuggestionHighlights']&&_0x9de130({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3ab9b9,_0xdea64d,_0x19f684);},{'priority':'highest'});}),_0x21f423['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x48b43b,_0x2bbfad)=>_0x2bbfad['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x48b43b['substr'](0xb)}}),_0x21f423['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x687f74,{writer:_0x7fbec1})=>{let _0x45c6be='suggestion:'+_0x687f74['getAttribute']('suggestion-type')+':'+_0x687f74['getAttribute']('id');return _0x687f74['getAttribute']('marker-count')&&(_0x45c6be+=':'+_0x687f74['getAttribute']('marker-count')),_0x7fbec1['createElement']('$marker',{'data-name':_0x45c6be});}}),_0x21f423['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x21f423['conversion']['for']('editingDowncast')['add'](_0x405a08=>{_0x405a08['on']('addMarker:suggestion:formatBlock',_0x9de130(),{'priority':'high'});}),_0x21f423['conversion']['for']('editingDowncast')['add'](_0x4a290d=>{_0x4a290d['on']('addMarker:suggestion:attribute',_0x9de130({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x21f423['conversion']['for']('editingDowncast')['add'](_0xe8c979=>{_0xe8c979['on']('removeMarker:suggestion:formatBlock',(_0x4d8d7f,_0xff9913,_0x4eb191)=>{const _0x45b6aa=_0x4eb191['mapper']['markerNameToElements'](_0xff9913['markerName']);if(_0x45b6aa){for(const _0x4ed514 of _0x45b6aa)_0x4ed514['getCustomProperty']('addHighlight')||(_0x4eb191['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4ed514),_0x4eb191['writer']['removeAttribute']('data-suggestion',_0x4ed514),_0x4eb191['writer']['removeAttribute']('data-author-id',_0x4ed514),_0x4eb191['mapper']['unbindElementFromMarkerName'](_0x4ed514,_0xff9913['markerName']));}},{'priority':'high'});}),_0x21f423['conversion']['for']('editingDowncast')['add'](_0x466653=>{_0x466653['on']('removeMarker:suggestion:attribute',(_0xfa876c,_0x1d2ff6,_0x548ce7)=>{const _0x21739f=_0x548ce7['mapper']['markerNameToElements'](_0x1d2ff6['markerName']);if(!_0x21739f)return;const {id:_0x33827e}=this['_splitMarkerName'](_0x1d2ff6['markerName']),_0x14df28=this['_suggestions']['get'](_0x33827e),_0x2800b7=this['_getAttributeKey'](_0x14df28);if(this['_isBlockAttribute'](_0x2800b7)){for(const _0x1bdcd1 of _0x21739f)_0x1bdcd1['getCustomProperty']('addHighlight')||(_0x548ce7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1bdcd1),_0x548ce7['writer']['removeAttribute']('data-suggestion',_0x1bdcd1),_0x548ce7['writer']['removeAttribute']('data-author-id',_0x1bdcd1),_0x548ce7['mapper']['unbindElementFromMarkerName'](_0x1bdcd1,_0x1d2ff6['markerName']));}},{'priority':'high'});}),_0x21f423['model']['document']['registerPostFixer'](_0x4057c8=>{let _0x16f2c9=!0x1;const _0x22a1f7=Array['from'](_0x21f423['model']['document']['differ']['getChangedMarkers']()),_0x1a66ff=new Set();for(const {name:_0x53214c,data:_0x520950}of _0x22a1f7){const {group:_0x314b57,type:_0x11588f,subType:_0x2170fd,id:_0xdd5e90}=this['_splitMarkerName'](_0x53214c);if('suggestion'!==_0x314b57)continue;const _0x290b77=this['_suggestions']['get'](_0xdd5e90);if(null!=_0x520950['newRange']){'formatInline'==_0x11588f&&(_0x16f2c9=_0x16f2c9||Jt(_0x520950['newRange'],_0x53214c,_0x4057c8,_0x21f423['model']['schema']));const _0x20a1f8='attribute'==_0x11588f&&this['_isBlockAttribute'](_0x2170fd['split']('|')[0x0]);if(_0x520950['newRange']['isCollapsed']||'$graveyard'==_0x520950['newRange']['root']['rootName']||'formatBlock'==_0x11588f&&!Ht(_0x520950['newRange'])||_0x20a1f8&&!Ht(_0x520950['newRange'])||'deletion'==_0x11588f&&!(!Lt(_0x4c734d=_0x520950['newRange'])&&!function(_0xd5ad81){return _0xd5ad81['start']['parent']==_0xd5ad81['end']['nodeBefore']&&_0xd5ad81['start']['isAtEnd'];}(_0x4c734d)))_0x4057c8['removeMarker'](_0x53214c),_0x16f2c9=!0x0;else{if(!_0x290b77||!_0x290b77['isInContent'])continue;if(_0x520950['newRange']&&_0x520950['oldRange']&&_0x520950['newRange']['isEqual'](_0x520950['oldRange']))continue;_0x1a66ff['add'](_0x290b77);}}}var _0x4c734d;return _0x1a66ff['size']>0x0&&(_0x16f2c9=!!this['_joinWithAdjacentSuggestions'](_0x1a66ff)||_0x16f2c9),_0x16f2c9;}),_0x21f423['model']['document']['registerPostFixer'](_0x541246=>{let _0x3b095a=!0x1;for(const _0x1f1e1b of _0x21f423['model']['document']['differ']['getChanges']())if('insert'==_0x1f1e1b['type'])for(const _0x405c42 of this['_suggestions']['values']()){if(_0x405c42['isMultiRange']||!_0x405c42['isInContent'])continue;const _0x3c539e='formatBlock'==_0x405c42['type'],_0x4d398e=this['_getAttributeKey'](_0x405c42),_0x559f2b=_0x4d398e&&this['_isBlockAttribute'](_0x4d398e);if(!_0x3c539e&&!_0x559f2b)continue;const _0x12965e=_0x405c42['getFirstRange']();if(_0x12965e['start']['parent']!=_0x12965e['end']['parent']&&!_0x12965e['end']['isAtEnd']){const _0x11bcfc=_0x21f423['model']['createPositionAt'](_0x12965e['start']['nodeAfter'],'end'),_0x448455=_0x21f423['model']['createRange'](_0x12965e['start'],_0x11bcfc);_0x541246['updateMarker'](_0x405c42['getFirstMarker'](),{'range':_0x448455}),_0x3b095a=!0x0;}}return _0x3b095a;}),_0x21f423['model']['document']['registerPostFixer'](_0x369c75=>this['_processAttributeChanges'](_0x369c75)),_0x21f423['model']['document']['registerPostFixer'](_0x36653d=>!_0x36653d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x36653d)),_0x21f423['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x21f423['model']['document']['on']('change:data',(_0x31807b,_0x18714e)=>{if(!_0x18714e['isLocal']||_0x18714e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3669b7=_0x21f423['model']['document']['differ']['getChanges']();if(0x0==_0x3669b7['length'])return;const _0x543a84=[],_0x1debf2=_0x3669b7['filter'](_0x402ba6=>'attribute'==_0x402ba6['type']),_0x36ed40=_0x3669b7['filter'](_0x34e82a=>'insert'==_0x34e82a['type']&&'$text'!=_0x34e82a['name']);for(const _0x14f9bb of _0x1debf2)this['_isRegisteredAttribute'](_0x14f9bb['attributeKey'])&&_0x543a84['push']({'key':_0x14f9bb['attributeKey'],'newValue':_0x14f9bb['attributeNewValue'],'oldValue':_0x14f9bb['attributeOldValue'],'range':qt(_0x14f9bb['range'],_0x21f423['model'])});for(const _0x6c1c6e of _0x36ed40){if('rename'!=_0x6c1c6e['action']&&'refresh'!=_0x6c1c6e['action'])continue;const _0x25251f=zt(_0x6c1c6e['position']['nodeAfter'],_0x21f423['model']),_0x4e7106=_0x6c1c6e['before'];'rename'==_0x6c1c6e['action']&&_0x543a84['push']({'key':u,'newValue':_0x6c1c6e['name'],'oldValue':_0x4e7106['name'],'range':_0x25251f});for(const [_0x12e1cb,_0x12d3f5]of _0x4e7106['attributes']){if(!this['_isRegisteredAttribute'](_0x12e1cb))continue;const _0x528086=_0x6c1c6e['attributes']['get'](_0x12e1cb);_0x12d3f5!==_0x528086&&_0x543a84['push']({'key':_0x12e1cb,'newValue':_0x528086,'oldValue':_0x12d3f5,'range':_0x25251f});}for(const [_0x11225d,_0x2f6906]of _0x6c1c6e['attributes'])this['_isRegisteredAttribute'](_0x11225d)&&(_0x4e7106['attributes']['has'](_0x11225d)||_0x543a84['push']({'key':_0x11225d,'newValue':_0x2f6906,'oldValue':null,'range':_0x25251f}));}0x0!=_0x543a84['length']&&_0x21f423['model']['enqueueChange'](_0x18714e,_0x340a2e=>{const _0x51c1ec=_0x5b9c0f();for(const {range:_0x485ec3,key:_0x2c7d57,oldValue:_0x51065d,newValue:_0x1fd874}of _0x543a84)this['markAttributeChange'](_0x485ec3,_0x2c7d57,_0x51065d,_0x1fd874,{'groupId':_0x51c1ec});this['_reduceExistingSuggestions'](_0x340a2e,_0x543a84);});},{'priority':'lowest'}),_0x21f423['model']['markers']['on']('update:suggestion',(_0x31f0f5,_0x527e8a,_0x3c003b)=>{if(null==_0x3c003b){const {id:_0x230988}=this['_splitMarkerName'](_0x527e8a['name']),_0x403850=this['_suggestions']['get'](_0x230988);_0x403850&&_0x403850['addMarkerName'](_0x527e8a['name']);}}),_0x21f423['model']['document']['on']('change:data',()=>{const _0x2a24a8=Array['from'](_0x21f423['model']['document']['differ']['getChangedMarkers']())['filter'](_0x18a9cd=>'suggestion'===this['_splitMarkerName'](_0x18a9cd['name'])['group']);if(0x0===_0x2a24a8['length'])return;_0x2a24a8['sort']((_0x5a8058,_0x30631a)=>{const _0x177c44=_0x5a8058['data']['oldRange'],_0x2d2ea0=_0x30631a['data']['oldRange'];return null===_0x177c44&&null===_0x2d2ea0?0x0:null===_0x177c44&&null!==_0x2d2ea0?-0x1:null!==_0x177c44&&null===_0x2d2ea0?0x1:_0x177c44['start']['isBefore'](_0x2d2ea0['start'])?-0x1:0x1;});const _0x1a7318=new Set(),_0xa9e33f=new Set();for(const {name:_0x4c1896,data:_0x2b7ba9}of _0x2a24a8){const {id:_0x3d94f4}=this['_splitMarkerName'](_0x4c1896);if(null===_0x2b7ba9['oldRange']){const _0x6624a4=this['_handleNewSuggestionMarker'](_0x4c1896);_0xa9e33f['add'](_0x6624a4);}else{const _0x339975=this['_suggestions']['get'](_0x3d94f4);null!==_0x2b7ba9['newRange']||_0x339975['isInContent']?(_0x1a7318['add'](_0x339975['head']),_0xa9e33f['add'](_0x339975)):this['_removeSuggestion'](_0x339975);}}_0xa9e33f['size']>0x0&&this['_refreshSuggestionsChain'](_0xa9e33f);for(const _0x68285f of _0x1a7318)this['fire']('suggestionChanged',_0x68285f);}),_0x21f423['model']['on']('applyOperation',(_0x9cf777,_0x2d6298)=>{const _0x4f6fcb=_0x2d6298[0x0];if(!this['_suggestions']['size'])return;if(!_0x4f6fcb['isDocumentOperation'])return;if(_0x4f6fcb['batch']['isUndo']||!_0x4f6fcb['batch']['isLocal'])return;let _0x336907,_0x5b8f89;switch(_0x4f6fcb['type']){case'insert':_0x336907=_0x21f423['model']['createPositionAt'](_0x4f6fcb['position']),_0x5b8f89=_0x336907['getShiftedBy'](_0x4f6fcb['howMany']);break;case'split':_0x336907=_0x21f423['model']['createPositionAt'](_0x4f6fcb['splitPosition']),_0x5b8f89=_0x21f423['model']['createPositionAt'](_0x4f6fcb['moveTargetPosition']);break;case'move':_0x336907=_0x21f423['model']['createPositionAt'](_0x4f6fcb['targetPosition']),_0x5b8f89=_0x336907['getShiftedBy'](_0x4f6fcb['howMany']);break;default:return;}const _0x1c9e89=_0x21f423['model']['createRange'](_0x336907,_0x5b8f89);_0x21f423['model']['change'](()=>{for(const {suggestion:_0x210e21,meta:_0x3bed0e}of this['_findSuggestions'](_0x1c9e89)){if(_0x210e21['isMultiRange'])continue;if('formatInline'==_0x210e21['type'])continue;const _0x107daf=this['_getAttributeKey'](_0x210e21);if(_0x107daf&&this['_isBlockAttribute'](_0x107daf)&&'split'!=_0x4f6fcb['type'])continue;const _0x2a213f=_0x210e21['data']&&_0x210e21['data']['multipleBlocks'];('formatBlock'!=_0x210e21['type']||'split'==_0x4f6fcb['type']&&!_0x2a213f)&&(_0x3bed0e['containsRangeInObject']||'insertion'==_0x210e21['type']&&_0x3bed0e['isOwn']||_0x210e21['getFirstRange']()['containsRange'](_0x1c9e89)&&this['_breakSuggestionMarker'](_0x210e21,_0x336907,_0x5b8f89));}});},{'priority':'lowest'}),_0x21f423['model']['on']('deleteContent',(_0x34b767,_0x5341b0)=>{const _0x56fd39=_0x5341b0[0x0],_0x2ec103=_0x5341b0[0x1];if(_0x2ec103&&_0x2ec103['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x56fd39['isCollapsed'])return;const _0x4cba53=_0x21f423['model']['schema'],{start:_0x3e3145,end:_0x34733d}=_0x56fd39['getFirstRange'](),_0x2cd979=_0x3e3145['nodeAfter']&&_0x4cba53['isLimit'](_0x3e3145['nodeAfter'])?null:_0x4cba53['getNearestSelectionRange'](_0x3e3145,'forward'),_0x46596c=_0x34733d['nodeBefore']&&_0x4cba53['isLimit'](_0x34733d['nodeBefore'])?null:_0x4cba53['getNearestSelectionRange'](_0x34733d,'backward'),_0x51fc70=_0x21f423['model']['createRange'](_0x2cd979?_0x2cd979['start']:_0x3e3145,_0x46596c?_0x46596c['end']:_0x34733d);_0x21f423['model']['change'](_0x4d82a0=>{this['markDeletion'](_0x51fc70);const _0x417c44=_0x21f423['model']['schema']['getNearestSelectionRange'](_0x51fc70['start']);_0x56fd39['is']('documentSelection')?_0x4d82a0['setSelection'](_0x417c44):_0x56fd39['setTo'](_0x417c44);}),_0x34b767['stop']();},{'priority':_0xb94a4a['normal']+0xa}),_0x21f423['model']['on']('insertContent',(_0x20d460,_0x538d37)=>{const _0x178cf7=_0x538d37[_0x538d37['length']-0x1];_0x178cf7&&_0x178cf7['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x21f423['model']['change'](()=>{let _0x477ef3=_0x21f423['model']['insertContent'](_0x538d37[0x0],_0x538d37[0x1],_0x538d37[0x2],{'forceDefaultExecution':!0x0});if(!_0x477ef3)return;_0x20d460['return']=_0x477ef3['clone']();const _0x319a4b=_0x477ef3['end']['nodeBefore'],_0x5490bd=_0x21f423['model']['schema'];_0x319a4b&&_0x5490bd['isBlock'](_0x319a4b)&&!_0x5490bd['isObject'](_0x319a4b)&&(_0x477ef3=_0x21f423['model']['createRange'](_0x477ef3['start'],_0x21f423['model']['createPositionAt'](_0x319a4b,'end'))),this['markInsertion'](_0x477ef3);}),_0x20d460['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x306150=new O(_0x21f423,this['_suggestions']);_0x21f423['commands']['add']('acceptSuggestion',_0x306150),this['enableCommand']('acceptSuggestion');const _0x57568f=new R(_0x21f423,this['_suggestions']);_0x21f423['commands']['add']('discardSuggestion',_0x57568f),this['enableCommand']('discardSuggestion'),_0x21f423['commands']['add']('acceptAllSuggestions',new x(_0x21f423,_0x306150,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x21f423['commands']['add']('discardAllSuggestions',new x(_0x21f423,_0x57568f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x21f423['commands']['add']('acceptSelectedSuggestions',new E(_0x21f423,_0x306150,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x21f423['commands']['add']('discardSelectedSuggestions',new E(_0x21f423,_0x57568f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x8027ab=_0x21f423['plugins']['get']('CommentsRepository');this['listenTo'](_0x8027ab,'addComment',(_0x3c7b18,{threadId:_0x4bae16})=>{const _0x22e0f2=this['_suggestions']['get'](_0x4bae16);_0x22e0f2&&_0x22e0f2['commentThread']&&0x1===_0x22e0f2['commentThread']['length']&&this['_updateSuggestionData'](_0x4bae16,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x8027ab,'removeComment',(_0x377b92,{threadId:_0x2c90ce})=>{const _0x3770af=this['_suggestions']['get'](_0x2c90ce);_0x3770af&&_0x3770af['commentThread']&&!_0x3770af['commentThread']['length']&&this['_updateSuggestionData'](_0x2c90ce,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xd492d8){const _0x162c96=_0x4f727f([0x4f,0x46,0x75,0x30,0x58,0x77,0x78,0x38,0x52,0x66,0x41,0x62,0x45,0x4a,0x69,0x57,0x79,0x76,0x71,0x68,0x55,0x6d,0x72,0x42,0x34,0x4c,0x51,0x33,0x5a,0x6c,0x56,0x4d,0x4e,0x6a,0x32,0x6f,0x67,0x4b,0x6e,0x37,0x36,0x35,0x64,0x6b,0x53,0x49,0x50,0x7a,0x44,0x59,0x47,0x54,0x48,0x39,0x70,0x65,0x43,0x73,0x74,0x31,0x61,0x63]),_0x1d7909=0x65247195,_0x145a77=0x652314f5^_0x1d7909,_0x32d25f=window[_0x4f727f([0x44,0x61,0x74,0x65])][_0x4f727f([0x6e,0x6f,0x77])](),_0xa8763d=_0xd492d8[_0x4f727f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x21ab05=new window[(_0x4f727f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x256780=>{_0xa8763d[_0x4f727f([0x6f,0x6e,0x63,0x65])](_0x4f727f([0x72,0x65,0x61,0x64,0x79]),_0x256780);}),_0x40b6da={[_0x4f727f([0x6b,0x74,0x79])]:_0x4f727f([0x45,0x43]),[_0x4f727f([0x75,0x73,0x65])]:_0x4f727f([0x73,0x69,0x67]),[_0x4f727f([0x63,0x72,0x76])]:_0x4f727f([0x50,0x2d,0x32,0x35,0x36]),[_0x4f727f([0x78])]:_0x4f727f([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]),[_0x4f727f([0x79])]:_0x4f727f([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]),[_0x4f727f([0x61,0x6c,0x67])]:_0x4f727f([0x45,0x53,0x32,0x35,0x36])},_0x191547=_0xa8763d[_0x4f727f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f727f([0x67,0x65,0x74])](_0x4f727f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x687b1c(){let _0x516db3,_0x36b283=null,_0x376acb=null;try{if(_0x191547==_0x4f727f([0x47,0x50,0x4c]))return _0x4f727f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x516db3=_0x3c7103(),!_0x516db3)return _0x4f727f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x516db3[_0x4f727f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x376acb=_0x2f6f81(_0x516db3[_0x4f727f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x516db3[_0x4f727f([0x6a,0x74,0x69])])),await _0x516cd2()?_0x36a284()?_0x38dbd3()?_0x4f727f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x149481()?(_0x516db3[_0x4f727f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f727f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36b283=_0x516ea1(_0x4f727f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x516db3[_0x4f727f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f727f([0x74,0x72,0x69,0x61,0x6c])&&(_0x36b283=_0x516ea1(_0x4f727f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c6628()):_0x4f727f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f727f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f727f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4e1dd7){return _0x4f727f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38dbd3(){const _0x4cd879=[_0x4f727f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f727f([0x74,0x72,0x69,0x61,0x6c])][_0x4f727f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x516db3[_0x4f727f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32d25f/0x3e8:0xe10*_0x145a77;return _0x516db3[_0x4f727f([0x65,0x78,0x70])]<_0x4cd879;}function _0x36a284(){const _0x2d6347=_0x516db3[_0x4f727f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2d6347)return!0x1;if(_0x2d6347[_0x4f727f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f727f([0x2a])))return!0x0;if(_0x2d6347[_0x4f727f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f727f([0x54,0x43])))return!0x0;if(_0x2d6347[_0x4f727f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f727f([0x52,0x54,0x43]))){if(_0x5e4e95())return!0x0;if(_0x10eaec()||_0x2b4bec())return!0x0;}return!0x1;}function _0x149481(){const _0x2f5563=_0x516db3[_0x4f727f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2f5563||0x0==_0x2f5563[_0x4f727f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10049d}=new URL(window[_0x4f727f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2f5563[_0x4f727f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10049d))return!0x0;const _0x564409=_0x10049d[_0x4f727f([0x73,0x70,0x6c,0x69,0x74])](_0x4f727f([0x2e]));return _0x2f5563[_0x4f727f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38872b=>_0x38872b[_0x4f727f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f727f([0x2a])))[_0x4f727f([0x6d,0x61,0x70])](_0xddea96=>_0xddea96[_0x4f727f([0x73,0x70,0x6c,0x69,0x74])](_0x4f727f([0x2e])))[_0x4f727f([0x73,0x6f,0x6d,0x65])](_0x1a9107=>_0x564409[_0x4f727f([0x65,0x76,0x65,0x72,0x79])]((_0x27f945,_0x1eeb1d)=>_0x1a9107[_0x1eeb1d]===_0x27f945||_0x1a9107[_0x1eeb1d]===_0x4f727f([0x2a])));}function _0x4c6628(){return _0x36b283&&_0x376acb?new window[(_0x4f727f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ac507,_0x850d11)=>{_0x36b283[_0x4f727f([0x74,0x68,0x65,0x6e])](_0x2ac507,_0x850d11),_0x376acb[_0x4f727f([0x74,0x68,0x65,0x6e])](_0x3f7352=>{_0x3f7352!=_0x4f727f([0x56,0x61,0x6c,0x69,0x64])&&_0x2ac507(_0x3f7352);},_0x850d11);}):_0x36b283||_0x376acb||_0x4f727f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f6f81(_0x9df48d,_0x4d5cbb){return new window[(_0x4f727f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x197828=>{if(_0x55e6fb())return _0x197828(_0x4f727f([0x56,0x61,0x6c,0x69,0x64]));_0x59a723(),_0xa8763d[_0x4f727f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f727f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17e0b7=!0x1;const _0x2a655a=_0x5b9c0f();function _0x4b8dfc(_0x14421e){return!!_0x14421e&&(typeof _0x14421e===_0x4f727f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x14421e===_0x4f727f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x14421e[_0x4f727f([0x74,0x68,0x65,0x6e])]===_0x4f727f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x14421e[_0x4f727f([0x63,0x61,0x74,0x63,0x68])]===_0x4f727f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x993665(_0xf87ab){_0xd7825a(_0xf87ab)[_0x4f727f([0x74,0x68,0x65,0x6e])](_0x1733a6=>{if(!_0x1733a6||_0x1733a6[_0x4f727f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f727f([0x6f,0x6b]))return _0x4f727f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb135a0(_0x1d76fe(_0x2a655a+_0x4d5cbb))!=_0x1733a6[_0x4f727f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f727f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f727f([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f727f([0x74,0x68,0x65,0x6e])](_0x5dd813=>(_0x241fa3(),_0x5dd813),()=>{const _0x22dd42=_0x1847f8();return null==_0x22dd42?(_0x241fa3(),_0x4f727f([0x56,0x61,0x6c,0x69,0x64])):_0x4f727f(_0x32d25f-_0x22dd42>(0x4128f595^_0x1d7909)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f727f([0x74,0x68,0x65,0x6e])](_0x197828)[_0x4f727f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x197828(_0x4f727f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x800775=0x65129f15^_0x1d7909;function _0x241fa3(){const _0x3d5a34=_0x4f727f([0x6c,0x6c,0x63,0x74,0x2d])+_0xb135a0(_0x1d76fe(_0x9df48d)),_0x4fe7dd=_0x4f580f(_0xb135a0(window[_0x4f727f([0x4d,0x61,0x74,0x68])][_0x4f727f([0x63,0x65,0x69,0x6c])](_0x32d25f/_0x800775)));window[_0x4f727f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f727f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d5a34,_0x4fe7dd);}function _0x1847f8(){const _0xdd7d26=_0x4f727f([0x6c,0x6c,0x63,0x74,0x2d])+_0xb135a0(_0x1d76fe(_0x9df48d)),_0x2a826a=window[_0x4f727f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f727f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xdd7d26);return _0x2a826a?window[_0x4f727f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f580f(_0x2a826a),0x10)*_0x800775:null;}function _0xd7825a(_0x1eb13e){return new window[(_0x4f727f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19e482,_0x43829b)=>{_0x1eb13e[_0x4f727f([0x74,0x68,0x65,0x6e])](_0x19e482,_0x43829b),window[_0x4f727f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43829b,0x6525a555^_0x1d7909);});}}_0xa8763d[_0x4f727f([0x6f,0x6e])](_0x4f727f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x21c70c,_0x37f894)=>{if(_0x37f894[0x0]!=_0x9df48d)return _0x197828(_0x4f727f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37f894[0x1]={..._0x37f894[0x1],[_0x4f727f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a655a};},{[_0x4f727f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f727f([0x68,0x69,0x67,0x68])}),_0xa8763d[_0x4f727f([0x6f,0x6e])](_0x4f727f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x59845c=>{_0x4b8dfc(_0x59845c[_0x4f727f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17e0b7=!0x0,_0x993665(_0x59845c[_0x4f727f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f727f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f727f([0x6c,0x6f,0x77])}),_0x21ab05[_0x4f727f([0x74,0x68,0x65,0x6e])](()=>{_0x17e0b7||_0x197828(_0x4f727f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55e6fb(){return _0xa8763d[_0x4f727f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f727f([0x76,0x69,0x65,0x77])][_0x4f727f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f727f([0x61,0x75,0x74,0x6f]);}function _0x59a723(){_0xa8763d[_0x4f727f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f727f([0x76,0x69,0x65,0x77])][_0x4f727f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f727f([0x61,0x75,0x74,0x6f]);}}function _0x516ea1(_0x24526e){const _0x39c261=[new window[(_0x4f727f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2847fa=>setTimeout(_0x2847fa,0x652d4f59^_0x1d7909)),_0x21ab05[_0x4f727f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f727f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6dce00=>{let _0x44bd1d=0x0;_0xa8763d[_0x4f727f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f727f([0x6f,0x6e])](_0x4f727f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xc770dc,_0x360ebf)=>{_0x360ebf[0x0][_0x4f727f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x44bd1d++,_0x44bd1d==(0x6524706d^_0x1d7909)&&(_0x6dce00(),_0xc770dc[_0x4f727f([0x6f,0x66,0x66])]());});}))];return window[_0x4f727f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f727f([0x72,0x61,0x63,0x65])](_0x39c261)[_0x4f727f([0x74,0x68,0x65,0x6e])](()=>_0x24526e);}async function _0x5db899(){await _0x21ab05,_0xa8763d[_0x4f727f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f727f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2d998c,_0xa8763d[_0x4f727f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f727f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2d998c,_0xa8763d[_0x4f727f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f727f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e4e95(){return _0x5c608c(_0x4f727f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5c751b(_0x4f727f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4f727f([0x73,0x74,0x61,0x74,0x65])]==_0x4f727f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x10eaec(){return _0x5c608c(_0x4f727f([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 _0x2b4bec(){return _0x5c608c(_0x4f727f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1d054d(_0x1102cc){const _0x41cd85=_0x44d56e();_0xa8763d[_0x41cd85]=_0x4f727f([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1102cc,_0x1102cc!=_0x4f727f([0x56,0x61,0x6c,0x69,0x64])&&_0x5db899();}function _0x44d56e(){const _0x184af3=window[_0x4f727f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f727f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f727f([0x6e,0x6f,0x77])]())[_0x4f727f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f727f([0x2e]),'');let _0x554053=_0x4f727f([0x4f]);for(let _0x2b0182=0x0;_0x2b0182<_0x184af3[_0x4f727f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b0182+=0x2){let _0x1a7784=window[_0x4f727f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x184af3[_0x4f727f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b0182,_0x2b0182+0x2));_0x1a7784>=_0x162c96[_0x4f727f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a7784-=_0x162c96[_0x4f727f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x554053+=_0x162c96[_0x1a7784];}return _0x554053;}function _0x3c7103(){const _0x3b9eb3=_0x191547[_0x4f727f([0x73,0x70,0x6c,0x69,0x74])](_0x4f727f([0x2e]));if(0x3!=_0x3b9eb3[_0x4f727f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2208f9(_0x3b9eb3[0x1]);function _0x2208f9(_0x102a52){const _0x1a69d0=_0x10d387(_0x102a52);return _0x1a69d0&&_0x57d184()?_0x1a69d0:null;function _0x57d184(){const _0x51df12=_0x1a69d0[_0x4f727f([0x6a,0x74,0x69])],_0xf531cd=window[_0x4f727f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51df12[_0x4f727f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51df12[_0x4f727f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4c96f3={..._0x1a69d0,[_0x4f727f([0x6a,0x74,0x69])]:_0x51df12[_0x4f727f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x51df12[_0x4f727f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4c96f3[_0x4f727f([0x76,0x63])],_0x1d76fe(_0x4c96f3)==_0xf531cd;}}}async function _0x516cd2(){let _0x1e2cd6=!0x0;try{const _0x2d93e0=_0x191547[_0x4f727f([0x73,0x70,0x6c,0x69,0x74])](_0x4f727f([0x2e])),[_0x508c9f,_0x4954bd,_0x138760]=_0x2d93e0;return _0x5215ef(_0x508c9f),await _0x4605d6(_0x508c9f,_0x4954bd,_0x138760),_0x1e2cd6;}catch(_0x194a62){return!0x1;}function _0x5215ef(_0x499a9e){const _0x2578ba=_0x10d387(_0x499a9e);_0x2578ba&&_0x2578ba[_0x4f727f([0x61,0x6c,0x67])]==_0x4f727f([0x45,0x53,0x32,0x35,0x36])||(_0x1e2cd6=!0x1);}async function _0x4605d6(_0x74762f,_0x17dd82,_0x2b57f1){const _0x2c01df=window[_0x4f727f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f727f([0x66,0x72,0x6f,0x6d])](_0x439af0(_0x2b57f1),_0x20a156=>_0x20a156[_0x4f727f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x23faad=new window[(_0x4f727f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f727f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x74762f+_0x4f727f([0x2e])+_0x17dd82),_0x41ba4a=window[_0x4f727f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f727f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x41ba4a)return;const _0x56951c=await _0x41ba4a[_0x4f727f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f727f([0x6a,0x77,0x6b]),_0x40b6da,{[_0x4f727f([0x6e,0x61,0x6d,0x65])]:_0x4f727f([0x45,0x43,0x44,0x53,0x41]),[_0x4f727f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f727f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f727f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x41ba4a[_0x4f727f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f727f([0x6e,0x61,0x6d,0x65])]:_0x4f727f([0x45,0x43,0x44,0x53,0x41]),[_0x4f727f([0x68,0x61,0x73,0x68])]:{[_0x4f727f([0x6e,0x61,0x6d,0x65])]:_0x4f727f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x56951c,_0x2c01df,_0x23faad)||(_0x1e2cd6=!0x1);}}function _0x10d387(_0x2f43a9){return _0x2f43a9[_0x4f727f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f727f([0x65,0x79]))?JSON[_0x4f727f([0x70,0x61,0x72,0x73,0x65])](_0x439af0(_0x2f43a9)):null;}function _0x439af0(_0x149fb2){return window[_0x4f727f([0x61,0x74,0x6f,0x62])](_0x149fb2[_0x4f727f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f727f([0x2b]))[_0x4f727f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f727f([0x2f])));}function _0x1d76fe(_0x485bf6){let _0x31fb8d=0x1505;function _0x5a0abc(_0x113624){for(let _0x464377=0x0;_0x464377<_0x113624[_0x4f727f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x464377++){const _0x30a946=_0x113624[_0x4f727f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x464377);_0x31fb8d=(_0x31fb8d<<0x5)+_0x31fb8d+_0x30a946,_0x31fb8d&=_0x31fb8d;}}function _0x8051a8(_0x5090e8){Array[_0x4f727f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5090e8)?_0x5090e8[_0x4f727f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x8051a8):_0x5090e8&&typeof _0x5090e8==_0x4f727f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f727f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5090e8)[_0x4f727f([0x73,0x6f,0x72,0x74])]()[_0x4f727f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c8ba8,_0x4d4204])=>{_0x5a0abc(_0x4c8ba8),_0x8051a8(_0x4d4204);}):_0x5a0abc(window[_0x4f727f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5090e8));}return _0x8051a8(_0x485bf6),_0x31fb8d>>>0x0;}function _0xb135a0(_0x34de0f){return _0x34de0f[_0x4f727f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f727f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f727f([0x30]));}function _0x4f580f(_0x2effe2){return _0x2effe2[_0x4f727f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f727f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f727f([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c608c(_0x52b72a){return _0xa8763d[_0x4f727f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f727f([0x68,0x61,0x73])](_0x52b72a);}function _0x5c751b(_0x1f2e89){return _0xa8763d[_0x4f727f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f727f([0x67,0x65,0x74])](_0x1f2e89);}function _0x2d998c(){}function _0x4f727f(_0x566851){return _0x566851['map'](_0x1e0a63=>String['fromCharCode'](_0x1e0a63))['join']('');}_0x1d054d(await _0x687b1c());}(this);}set['adapter'](_0x524972){if(this['_adapter'])throw new _0x31f689('track-changes-adapter-already-set',this);this['_adapter']=_0x524972;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x37ae17=!0x1,toJSON:_0x5b0759=!0x1}={}){const _0x24ce6b=[];for(const _0x2ee841 of this['_suggestions']['values']())_0x37ae17&&!_0x2ee841['isInContent']||_0x24ce6b['push'](_0x2ee841);return _0x5b0759?_0x24ce6b['map'](_0x1cf2c4=>_0x1cf2c4['toJSON']()):_0x24ce6b;}['getSuggestion'](_0x24313f){const _0x1f59c9=this['_suggestions']['get'](_0x24313f);if(!_0x1f59c9)throw new _0x31f689('track-changes-suggestion-not-found',this);return _0x1f59c9;}['hasSuggestion'](_0x535a1e){return this['_suggestions']['has'](_0x535a1e);}['addSuggestionData'](_0x1c1b91){const {authorId:_0x2d9916,id:_0x556708,attributes:_0x5af137}=_0x1c1b91,[_0x376ad5,_0x23ca60]=_0x1c1b91['type']['split'](':'),_0xd56138=this['_suggestions']['get'](_0x556708)||this['_createSuggestion'](_0x376ad5,_0x23ca60,_0x556708,_0x2d9916,_0x5af137);if(this['_addThreadToSuggestion'](_0xd56138),this['_checkSuggestionCorrectness'](_0xd56138,_0x376ad5,_0x23ca60||null,_0x2d9916),_0xd56138['createdAt']=_0x1c1b91['createdAt'],_0xd56138['_isDataLoaded']=!0x0,_0x5af137&&_0x5af137['@external']){const _0x574200=_0x5af137['@external'],_0x2a8812=this['_getExternalAuthor'](_0x574200['authorName']);_0xd56138['authoredAt']=_0x574200['createdAt'],_0xd56138['author']=_0x2a8812,_0xd56138['isExternal']=!0x0;}else _0xd56138['authoredAt']=_0x1c1b91['createdAt'];switch(_0x1c1b91['data']&&(_0xd56138['data']=_0x1c1b91['data']),_0x1c1b91['attributes']&&(_0xd56138['attributes']=_0x1c1b91['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xd56138['_saved']=!0x0),this['_suggestionState']['get'](_0xd56138)){case'notReady':this['_suggestionState']['set'](_0xd56138,'dataReady');break;case'markerReady':_0xd56138['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xd56138])),this['_refreshSuggestionsChain'](new Set([_0xd56138])),this['_suggestionState']['set'](_0xd56138,'ready'),this['fire']('suggestionLoaded',_0xd56138)):this['_suggestionState']['set'](_0xd56138,'removed');}return _0xd56138;}['acceptSuggestion'](_0x1a2dc4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x707b45 of _0x1a2dc4['getAllAdjacentSuggestions']())_0x707b45['accept']();});});}['discardSuggestion'](_0x39fdad){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x435f85 of _0x39fdad['getAllAdjacentSuggestions']())_0x435f85['discard']();});});}['enableCommand'](_0x15347d,_0x4eff8){const _0x2de915=this['editor']['commands']['get'](_0x15347d);if(!_0x2de915)throw new _0x31f689('track-changes-command-not-found',this,{'commandName':_0x15347d});if(this['_enabledCommands']['has'](_0x2de915))throw new _0x31f689('track-changes-enable-command-twice',this,{'commandName':_0x15347d});this['_enabledCommands']['add'](_0x2de915),_0x4eff8&&_0x2de915['on']('execute',(_0x5a1069,_0x27dcfd)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x27dcfd['length']>0x0&&_0x27dcfd[_0x27dcfd['length']-0x1]&&_0x27dcfd[_0x27dcfd['length']-0x1]['forceDefaultExecution']?_0x27dcfd['pop']():(_0x5a1069['return']=_0x4eff8((..._0x1263cb)=>_0x2de915['execute'](..._0x1263cb,{'forceDefaultExecution':!0x0}),..._0x27dcfd),_0x5a1069['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3a55c0){let _0x2c63d2,_0x8ce7c3;const _0x5b6a43=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2c63d2=_0x3a55c0();}catch(_0x2d60f3){_0x8ce7c3=_0x2d60f3;}return _0x5b6a43||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x8ce7c3&&_0x31f689['rethrowUnexpectedError'](_0x8ce7c3,this),_0x2c63d2;}['markInsertion'](_0x4f149c,_0x310b6d=null,_0x7824f9={}){if(_0x4f149c['isCollapsed'])return null;const _0x4af7d5=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4ee5e0,meta:_0x3bb14b}of this['_findSuggestions'](_0x4f149c,'insertion'))if(_0x3bb14b['isOwn']){if(!_0x3bb14b['isNextTo']){if(_0x3bb14b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x4ee5e0,_0x7824f9))continue;return _0x4ee5e0;}if(Xt(_0x4ee5e0,_0x7824f9))return _0x4ee5e0;this['_breakSuggestionMarker'](_0x4ee5e0,_0x4f149c['start'],_0x4f149c['end']);break;}if(_0x310b6d==_0x4ee5e0['subType']&&Xt(_0x4ee5e0,_0x7824f9)){const _0x47d33a=_0x4ee5e0['getFirstRange']();return _0x47d33a['start']['isEqual'](_0x4f149c['end'])?this['_setSuggestionRange'](_0x4ee5e0,this['_model']['createRange'](_0x4f149c['start'],_0x47d33a['end'])):this['_setSuggestionRange'](_0x4ee5e0,this['_model']['createRange'](_0x47d33a['start'],_0x4f149c['end'])),_0x4ee5e0;}}const _0x33b150=_0x5b9c0f(),_0xd2e308=_0x4af7d5['id'],_0x4d8675=_0x310b6d?'insertion:'+_0x310b6d:'insertion',_0x172b58=this['_setSuggestionData']({'id':_0x33b150,'type':_0x4d8675,'createdAt':new Date(),'authorId':_0xd2e308,'attributes':_0x7824f9});return this['_addSuggestionMarker'](_0x4d8675,_0x33b150,_0xd2e308,_0x4f149c),_0x172b58;}['markMultiRangeInsertion'](_0x29afc9,_0x3f8e46='multi',_0x3026b7={}){const _0x397309=this['editor']['plugins']['get']('Users')['me'],_0x314f98=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3f8e46,'join');for(const _0x14c112 of this['getSuggestions']())if(_0x14c112['author']['id']==_0x397309['id']&&'insertion'==_0x14c112['type']&&_0x14c112['subType']==_0x3f8e46&&Xt(_0x14c112,_0x3026b7)&&(_0x314f98(_0x14c112['getRanges'](),_0x29afc9)||_0x314f98(_0x29afc9,_0x14c112['getRanges']()))){for(const _0x5a9c22 of _0x29afc9)_0x14c112['addRange'](_0x5a9c22);return _0x14c112;}for(const {suggestion:_0x197df4,meta:_0x43611e}of this['_findSuggestions'](_0x29afc9,'insertion')){if(!_0x43611e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x43611e['containsRangeInObject'])continue;if(!Xt(_0x197df4,_0x3026b7))continue;let _0x35db18=!0x0;for(const _0x1b3e65 of _0x197df4['getRanges']())for(const _0x42db7e of _0x29afc9)if(!_0x1b3e65['containsRange'](_0x42db7e)){_0x35db18=!0x1;break;}if(_0x35db18)return _0x197df4;}const _0x236a99=_0x5b9c0f(),_0x362590=_0x397309['id'],_0x28d22d='insertion:'+_0x3f8e46,_0x10cf91=this['_setSuggestionData']({'id':_0x236a99,'type':_0x28d22d,'createdAt':new Date(),'authorId':_0x362590,'attributes':_0x3026b7});for(const _0x45ab6d of _0x29afc9)this['_addSuggestionMarker'](_0x28d22d,_0x236a99,_0x362590,_0x45ab6d,o['getMultiRangeId']());return _0x10cf91;}['markInlineFormat'](_0x1fda33,_0x4f6f9d,_0x15effd=null,_0x33a36e={}){if(_0x15effd=_0x15effd||Kt(_0x4f6f9d),_0x1fda33['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x189185=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x15effd,'accept');return this['forceDefaultExecution'](()=>_0x189185([_0x1fda33],_0x4f6f9d,_0x33a36e)),null;}const _0x3febb7=this['editor']['plugins']['get']('Users')['me'],_0x1f5b24=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x38234c,meta:_0x3894bf}of this['_findSuggestions'](_0x1fda33,'insertion'))_0x3894bf['isOwn']&&!_0x3894bf['isInsideObject']&&_0x1f5b24['push'](..._0x38234c['getRanges']());}const _0x2cea1c=function(_0x1576e5,_0x486dc8){const _0x55e098=[];for(const _0x3e19c5 of _0x486dc8){const _0x33ccc9=_0x1576e5['getIntersection'](_0x3e19c5);_0x33ccc9&&_0x55e098['push'](_0x33ccc9);}return _0x55e098;}(_0x1fda33,_0x1f5b24),_0x53e431=function(_0x5e8b83,_0x5ec91d){const _0x404ed8=[_0x5e8b83];for(const _0x2a4f1b of _0x5ec91d){let _0x20a51c=0x0;for(;_0x20a51c<_0x404ed8['length'];){const _0x43719c=_0x404ed8[_0x20a51c]['getDifference'](_0x2a4f1b);_0x404ed8['splice'](_0x20a51c,0x1,..._0x43719c),_0x20a51c+=_0x43719c['length'];}}return _0x404ed8;}(_0x1fda33,_0x1f5b24);_0x2cea1c['length']&&this['_model']['change'](()=>{for(const _0x32bd82 of _0x2cea1c){const _0x43b501=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x15effd,'accept');this['forceDefaultExecution'](()=>_0x43b501([_0x32bd82],_0x4f6f9d,_0x33a36e));}});for(const _0x57a3c2 of _0x53e431){let _0x3dd824=null,_0x54e13e=_0x57a3c2['start'],_0x5ee67f=_0x57a3c2['end'];for(const {suggestion:_0x2f85a7,meta:_0x497fee}of this['_findSuggestions'](_0x57a3c2,'formatInline')){if(!_0x497fee['isOwn'])continue;if(_0x2f85a7['subType']!=_0x15effd)continue;if(!Xt(_0x2f85a7,_0x33a36e))continue;const _0x3cfe7c=_0x2f85a7['getFirstRange']();if(_0x3cfe7c['containsRange'](_0x57a3c2,!0x0))return null;_0x54e13e=_0x54e13e['isBefore'](_0x3cfe7c['start'])?_0x54e13e:_0x3cfe7c['start'],_0x5ee67f=_0x5ee67f['isAfter'](_0x3cfe7c['end'])?_0x5ee67f:_0x3cfe7c['end'],_0x3dd824?_0x3cfe7c['start']['isBefore'](_0x3dd824['getFirstRange']()['start'])?(_0x3dd824['removeMarkers'](),_0x3dd824=_0x2f85a7):_0x2f85a7['removeMarkers']():_0x3dd824=_0x2f85a7;}const _0x9b300f=this['_model']['createRange'](_0x54e13e,_0x5ee67f);if(_0x3dd824)this['_setSuggestionRange'](_0x3dd824,_0x9b300f);else{const _0x15e413=_0x5b9c0f(),_0x44a6c6=_0x3febb7['id'];this['_setSuggestionData']({'id':_0x15e413,'type':'formatInline:'+_0x15effd,'data':_0x4f6f9d,'createdAt':new Date(),'authorId':_0x44a6c6,'attributes':_0x33a36e}),this['_addSuggestionMarker']('formatInline:'+_0x15effd,_0x15e413,_0x44a6c6,_0x9b300f);}}return null;}['markBlockFormat'](_0x185efb,_0x3929e2,_0x4f8e8c=[],_0x77a219=null,_0x28e18a={}){_0x3929e2['formatGroupId']||(_0x3929e2['formatGroupId']=_0x3929e2['commandName']),_0x3929e2['multipleBlocks']=_0x185efb['is']('range'),_0x77a219=_0x77a219||Kt(_0x3929e2);const _0x21f3f0=_0x4f8e8c['map'](_0x142837=>zt(_0x142837,this['_model'])),_0x20e139=_0x185efb['is']('range')?_0x185efb:zt(_0x185efb,this['_model']);if('never'===this['_trackFormatChanges']){const _0x98feb5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x77a219,'accept');return this['forceDefaultExecution'](()=>_0x98feb5([_0x20e139],_0x3929e2,_0x28e18a)),null;}_0x21f3f0['push'](_0x20e139);let _0x3ac4b4=!0x0;for(const _0x8dbea8 of _0x21f3f0)if(!this['_rangeIsInLocalUserInsertion'](_0x8dbea8)){_0x3ac4b4=!0x1;break;}if(_0x3ac4b4&&'always'!==this['_trackFormatChanges']){const _0x22f65e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x77a219,'accept');return this['forceDefaultExecution'](()=>_0x22f65e([_0x20e139],_0x3929e2,_0x28e18a)),null;}let _0xd0308a=null,_0x134e15=_0x20e139['start'],_0x1e24e3=_0x20e139['end'];for(const {suggestion:_0x57ff3e,meta:_0x2cf658}of this['_findSuggestions'](_0x20e139,'formatBlock')){if(!_0x2cf658['isOwn'])continue;if(_0x2cf658['isNextTo']||_0x2cf658['containsRangeInObject']||_0x2cf658['isInsideObject'])continue;if(_0x57ff3e['data']['formatGroupId']!=_0x3929e2['formatGroupId'])continue;if(!Xt(_0x57ff3e,_0x28e18a))continue;const _0xc00e2c=_0x57ff3e['getFirstRange']();if(_0x57ff3e['subType']==_0x77a219){if(_0xc00e2c['containsRange'](_0x20e139,!0x0))return null;_0x134e15=_0x134e15['isBefore'](_0xc00e2c['start'])?_0x134e15:_0xc00e2c['start'],_0x1e24e3=_0x1e24e3['isAfter'](_0xc00e2c['end'])?_0x1e24e3:_0xc00e2c['end'],_0xd0308a?_0xc00e2c['start']['isBefore'](_0xd0308a['getFirstRange']()['start'])?(_0xd0308a['removeMarkers'](),_0xd0308a=_0x57ff3e):_0x57ff3e['removeMarkers']():_0xd0308a=_0x57ff3e;}else{const _0x2a5528=_0x20e139['getIntersection'](_0xc00e2c);this['_cutOutSuggestionMarker'](_0x57ff3e,_0x2a5528);}}const _0x20cb6e=this['editor']['plugins']['get']('Users')['me'],_0xdf2e9f=_0x5b9c0f(),_0x585173=_0x20cb6e['id'];if(_0xd0308a)return this['_setSuggestionRange'](_0xd0308a,this['_model']['createRange'](_0x134e15,_0x1e24e3)),_0xd0308a;{const _0x41c4be=this['_setSuggestionData']({'id':_0xdf2e9f,'type':'formatBlock:'+_0x77a219,'data':_0x3929e2,'createdAt':new Date(),'authorId':_0x585173,'attributes':_0x28e18a});return this['_addSuggestionMarker']('formatBlock:'+_0x77a219,_0xdf2e9f,_0x585173,this['_model']['createRange'](_0x134e15,_0x1e24e3)),_0x41c4be;}}['markMultiRangeBlockFormat'](_0x2d2f8c,_0x427e87,_0xd54100=[],_0x1f84fa=null,_0x291190={}){_0x427e87['formatGroupId']||(_0x427e87['formatGroupId']=_0x427e87['commandName']);const _0x166c8c=_0x2d2f8c[0x0];_0x427e87['multipleBlocks']=_0x166c8c['is']('range'),_0x1f84fa=_0x1f84fa||Kt(_0x427e87);const _0x5e0b1d=_0xd54100['map'](_0x2d3f0b=>zt(_0x2d3f0b,this['_model'])),_0x2a961a=_0x166c8c['is']('range')?_0x2d2f8c:_0x2d2f8c['map'](_0x284976=>zt(_0x284976,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1728a5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f84fa,'accept');return this['forceDefaultExecution'](()=>_0x1728a5(_0x2a961a,_0x427e87,_0x291190)),null;}_0x5e0b1d['push'](..._0x2a961a);let _0x40863f=!0x0;for(const _0x4b2e29 of _0x5e0b1d)if(!this['_rangeIsInLocalUserInsertion'](_0x4b2e29)){_0x40863f=!0x1;break;}if(_0x40863f&&'always'!==this['_trackFormatChanges']){const _0x182ad3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f84fa,'accept');return this['forceDefaultExecution'](()=>_0x182ad3(_0x2a961a,_0x427e87,_0x291190)),null;}const _0x33b2f6=this['editor']['plugins']['get']('Users')['me'];for(const _0x486183 of this['getSuggestions']()){if(_0x486183['author']['id']!=_0x33b2f6['id'])continue;if('formatBlock'!=_0x486183['type']||_0x486183['data']['formatGroupId']!=_0x427e87['formatGroupId'])continue;if(!Xt(_0x486183,_0x291190))continue;const _0x43d7db=_0x486183['subType']==_0x1f84fa;for(let _0x567065=0x0;_0x567065<_0x2a961a['length'];_0x567065++){const _0x21d308=_0x2a961a[_0x567065];for(const _0x573fea of _0x486183['getMarkers']()){const _0x4fb8a4=_0x573fea['getRange']();if(_0x21d308['isEqual'](_0x4fb8a4)){_0x43d7db?(_0x2a961a['splice'](_0x567065,0x1),_0x567065--):_0x486183['removeMarker'](_0x573fea['name']);break;}}}}if(0x0==_0x2a961a['length'])return null;const _0xfab32d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f84fa,'join');for(const _0x34f7a7 of this['getSuggestions']())if(_0x34f7a7['author']['id']==_0x33b2f6['id']&&'formatBlock'==_0x34f7a7['type']&&_0x34f7a7['data']['formatGroupId']==_0x427e87['formatGroupId']&&_0x34f7a7['subType']==_0x1f84fa&&Xt(_0x34f7a7,_0x291190)&&(_0xfab32d(_0x34f7a7['getRanges'](),_0x2a961a)||_0xfab32d(_0x2a961a,_0x34f7a7['getRanges']()))){for(const _0x5a2c18 of _0x2a961a)_0x34f7a7['addRange'](_0x5a2c18);return _0x34f7a7;}const _0x4e436c=_0x5b9c0f(),_0x466741=_0x33b2f6['id'],_0x5d45ff='formatBlock:'+_0x1f84fa,_0x1b0235=this['_setSuggestionData']({'id':_0x4e436c,'type':_0x5d45ff,'data':_0x427e87,'createdAt':new Date(),'authorId':_0x466741,'attributes':_0x291190});for(const _0x217e18 of _0x2a961a)this['_addSuggestionMarker'](_0x5d45ff,_0x4e436c,_0x466741,_0x217e18,o['getMultiRangeId']());return _0x1b0235;}['markDeletion'](_0x5ad27f,_0x150d96=null,_0x50de0a={}){if(_0x5ad27f['isCollapsed'])return null;const _0x2f0a66=this['editor']['plugins']['get']('Users')['me'],_0x3be136=new _0x3b5a68(_0x5ad27f['start'],_0x5ad27f['end']);for(const {suggestion:_0x4e1ca9,meta:_0x26580a}of this['_findSuggestions'](_0x3be136,'insertion'))if(_0x26580a['isOwn']&&!_0x26580a['isNextTo']){if(_0x4e1ca9['isMultiRange']){const _0x578289=_0x4e1ca9['getRanges']()['filter'](_0x4806ff=>'$graveyard'!=_0x4806ff['root']['rootName']);_0x578289['every'](_0x3ac3ee=>_0x3be136['containsRange'](_0x3ac3ee,!0x0))&&_0x4e1ca9['discard']();if(_0x578289['some'](_0x424e45=>_0x424e45['containsRange'](_0x3be136,!0x0))){const _0x20414e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x150d96,'accept');return this['forceDefaultExecution'](()=>_0x20414e([_0x3be136],null,_0x50de0a)),null;}}else{const _0x189f91=_0x3be136['getIntersection'](_0x4e1ca9['getFirstRange']());null!==_0x189f91&&_0x4e1ca9['_onDiscard']([_0x189f91],null,_0x50de0a);}}if(_0x3be136['detach'](),_0x3be136['isCollapsed']||'$graveyard'==_0x3be136['root']['rootName'])return null;let _0xe99761=null,_0xb3eb37=_0x3be136['start'],_0x2f7202=_0x3be136['end'];const _0x3a0615=this['_findSuggestions'](_0x3be136,'deletion');for(const {suggestion:_0x10f81f,meta:_0x165de7}of _0x3a0615){const _0x129214=this['_model']['createRange'](_0xb3eb37,_0x2f7202);if(_0x165de7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x165de7['containsRangeInObject']&&!_0x165de7['isInsideObject'])){if(_0x10f81f['isMultiRange']){if(!Xt(_0x10f81f,_0x50de0a))continue;let _0x192a31=!0x0;for(const _0x4e76e3 of _0x10f81f['getRanges']()){if(_0x4e76e3['containsRange'](_0x129214,!0x0))return _0x10f81f;_0x129214['containsRange'](_0x4e76e3)||(_0x192a31=!0x1);}_0x192a31&&_0x10f81f['discard']();}else{const _0x9e0a75=_0x10f81f['getFirstRange']();if(_0x9e0a75['containsRange'](_0x129214,!0x0))return _0x10f81f;if(!Xt(_0x10f81f,_0x50de0a)){_0x129214['containsRange'](_0x9e0a75)?_0x10f81f['removeMarkers']():_0x9e0a75['containsPosition'](_0xb3eb37)?_0xb3eb37=_0x9e0a75['end']:_0x9e0a75['containsPosition'](_0x2f7202)&&(_0x2f7202=_0x9e0a75['start']);continue;}_0xb3eb37=_0xb3eb37['isBefore'](_0x9e0a75['start'])?_0xb3eb37:_0x9e0a75['start'],_0x2f7202=_0x2f7202['isAfter'](_0x9e0a75['end'])?_0x2f7202:_0x9e0a75['end'],_0x50de0a=Object['assign']({},_0x10f81f['attributes']),_0xe99761?_0x9e0a75['start']['isBefore'](_0xe99761['getFirstRange']()['start'])?(_0xe99761['removeMarkers'](),_0xe99761=_0x10f81f):_0x10f81f['removeMarkers']():_0xe99761=_0x10f81f;}}}if(_0xe99761)return this['_setSuggestionRange'](_0xe99761,this['_model']['createRange'](_0xb3eb37,_0x2f7202)),_0xe99761;{const _0x283e51=_0x5b9c0f(),_0x17d4b1=this['_model']['createRange'](_0xb3eb37,_0x2f7202),_0x258097=_0x2f0a66['id'],_0x5b122a=_0x150d96?'deletion:'+_0x150d96:'deletion',_0x1bd9ab=this['_setSuggestionData']({'id':_0x283e51,'type':_0x5b122a,'createdAt':new Date(),'authorId':_0x258097,'attributes':_0x50de0a});return this['_addSuggestionMarker'](_0x5b122a,_0x283e51,_0x258097,_0x17d4b1),_0x1bd9ab;}}['markMultiRangeDeletion'](_0x1ca30d,_0xdc1dc3='multi',_0x106bd5={}){const _0x40d4c4=this['editor']['plugins']['get']('Users')['me'],_0x5359a4=_0x1ca30d['map'](_0x5266f6=>new _0x3b5a68(_0x5266f6['start'],_0x5266f6['end'])),_0x1eb79b=new Set();for(const {suggestion:_0x1e3fb3,meta:_0x359f37}of this['_findSuggestions'](_0x5359a4,'insertion'))_0x359f37['isOwn']&&!_0x359f37['isNextTo']&&_0x1eb79b['add'](_0x1e3fb3);for(const _0x65bc60 of _0x1eb79b)if(_0x65bc60['isMultiRange']){const _0x5ede59=_0x65bc60['getRanges']();(!_0x65bc60['attributes']||!_0x65bc60['attributes']['skipNestingCheck'])&&(_0x5ede59['every'](_0xdd07ed=>_0x5359a4['some'](_0x57cf45=>_0x57cf45['containsRange'](_0xdd07ed,!0x0)))&&_0x65bc60['discard']());if(_0x5359a4['every'](_0x409fe5=>_0x5ede59['some'](_0x637eb3=>_0x637eb3['containsRange'](_0x409fe5,!0x0)))){const _0x24fb1e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xdc1dc3,'accept');return this['forceDefaultExecution'](()=>_0x24fb1e(_0x1ca30d,null,_0x106bd5)),null;}}else{const _0xfdf68b=_0x65bc60['getFirstRange']();_0x5359a4['some'](_0x215918=>_0x215918['containsRange'](_0xfdf68b,!0x0))&&_0x65bc60['discard']();if(_0x5359a4['every'](_0x5e3cac=>_0xfdf68b['containsRange'](_0x5e3cac,!0x0))){const _0x387f9a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xdc1dc3,'accept');return this['forceDefaultExecution'](()=>_0x387f9a(_0x5359a4,null,_0x106bd5)),null;}}const _0x412d43=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xdc1dc3,'join');let _0x293003=null;for(const _0xaf541d of this['getSuggestions']())if(_0xaf541d['author']['id']==_0x40d4c4['id']&&_0xaf541d['isInContent']&&'deletion'==_0xaf541d['type']&&_0xaf541d['subType']==_0xdc1dc3&&Xt(_0xaf541d,_0x106bd5)&&(_0x412d43(_0xaf541d['getRanges'](),_0x5359a4)||_0x412d43(_0x5359a4,_0xaf541d['getRanges']()))){if(_0x293003){if(_0xaf541d['commentThread']&&_0xaf541d['commentThread']['length'])continue;for(const _0x2f0cf1 of _0xaf541d['getRanges']())_0x293003['isIntersectingWithRange'](_0x2f0cf1)||_0x293003['addRange'](_0x2f0cf1);_0xaf541d['removeMarkers']();}else{_0x293003=_0xaf541d;for(const _0x54fc66 of _0x5359a4)_0xaf541d['isIntersectingWithRange'](_0x54fc66)||_0xaf541d['addRange'](_0x54fc66);}}if(_0x293003)return _0x293003;_0x1eb79b['clear']();for(const {suggestion:_0x50d64f,meta:_0x4e43bb}of this['_findSuggestions'](_0x5359a4,'deletion'))_0x4e43bb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4e43bb['containsRangeInObject']&&!_0x4e43bb['isInsideObject'])&&Xt(_0x50d64f,_0x106bd5)&&_0x1eb79b['add'](_0x50d64f);for(const _0x2a6b7c of _0x1eb79b){const _0x21faa8=_0x2a6b7c['getRanges']();if(!_0x106bd5||!_0x106bd5['skipNestingCheck']){if(_0x5359a4['every'](_0x43cd0d=>_0x21faa8['some'](_0x193cc3=>_0x193cc3['containsRange'](_0x43cd0d,!0x0))))return _0x2a6b7c;}(!_0x2a6b7c['attributes']||!_0x2a6b7c['attributes']['skipNestingCheck'])&&(_0x21faa8['every'](_0x117813=>_0x5359a4['some'](_0x59c16f=>_0x59c16f['containsRange'](_0x117813,!0x0)))&&_0x2a6b7c['discard']());}const _0x3bc5ee=_0x5b9c0f(),_0x4ea2f1=_0x40d4c4['id'],_0x2960db='deletion:'+_0xdc1dc3,_0x3ad016=this['_setSuggestionData']({'id':_0x3bc5ee,'type':_0x2960db,'createdAt':new Date(),'authorId':_0x4ea2f1,'attributes':_0x106bd5});for(const _0x1b509f of _0x5359a4)_0x1b509f['detach'](),_0x1b509f['isCollapsed']||'$graveyard'==_0x1b509f['root']['rootName']||this['_addSuggestionMarker'](_0x2960db,_0x3bc5ee,_0x4ea2f1,_0x1b509f,o['getMultiRangeId']());return _0x3ad016;}['markAttributeChange'](_0x55303f,_0x590303,_0x2457bc,_0x27f07e,_0xef9b4f){if(_0x55303f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x50c40c=this['editor']['plugins']['get']('Users')['me']['id'],_0x333258=Array['from'](this['_suggestions']['values']())['filter'](_0x2e6311=>'attribute'==_0x2e6311['type']&&_0x2e6311['data']['key']==_0x590303&&_0x2e6311['isIntersectingWithRange'](_0x55303f));if('default'===this['_trackFormatChanges']){const _0x2158a1=this['_findSuggestions'](_0x55303f,'insertion')['filter'](({meta:_0x17fd64})=>_0x17fd64['isOwn']&&!_0x17fd64['isInsideObject']&&!_0x17fd64['isNextTo'])['map'](({suggestion:_0x40d02d})=>_0x40d02d);_0x333258['unshift'](..._0x2158a1);}const _0x1990b5=new Map([[_0x55303f,_0x2457bc]]);for(const _0x24ac94 of _0x333258){const _0x45262f='attribute'==_0x24ac94['type']?_0x24ac94['data']['oldValue']:void 0x0,_0x3d518a=_0x24ac94['getFirstRange'](),_0x3d1214=Array['from'](_0x1990b5['keys']())['find'](_0x69f272=>_0x69f272['isIntersecting'](_0x3d518a));if(!_0x3d1214)continue;const _0x32dc43=_0x3d1214['getDifference'](_0x3d518a);this['_isBlockAttribute'](_0x590303)&&'insertion'==_0x24ac94['type']&&0x0!=_0x32dc43['length']||(_0x1990b5['delete'](_0x3d1214),_0x32dc43['forEach'](_0x50fcb6=>{_0x1990b5['set'](_0x50fcb6,_0x2457bc);}),'insertion'!=_0x24ac94['type']&&_0x45262f!=_0x27f07e&&_0x1990b5['set'](_0x3d1214['getIntersection'](_0x3d518a),_0x45262f));}const _0x4c8369=[];for(const [_0x11535b,_0x78c03a]of _0x1990b5){const _0x45c844=_0x5b9c0f(),_0x12342c={'key':_0x590303,'oldValue':_0x78c03a,'newValue':_0x27f07e};_0x590303['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':_0x590303});const _0x1e9eb9=('attribute:'+(_0x590303+'|'+Kt({'newValue':_0x27f07e})))['substring'](0x0,0x3c),_0x5f4672=this['_setSuggestionData']({'id':_0x45c844,'type':_0x1e9eb9,'data':_0x12342c,'createdAt':new Date(),'authorId':_0x50c40c,'attributes':_0xef9b4f});_0x4c8369['push'](_0x5f4672),this['_addSuggestionMarker'](_0x1e9eb9,_0x45c844,_0x50c40c,_0x11535b);}return _0x4c8369;}['enableDefaultAttributesIntegration'](_0x3735fe){this['enableCommand'](_0x3735fe,(_0x30b644,..._0x37d194)=>{this['_recordAttributeChanges'](()=>{_0x30b644(..._0x37d194);});});}['registerBlockAttribute'](_0x3759a9){this['_blockAttributeKeys']['add'](_0x3759a9);}['registerInlineAttribute'](_0x59f0a7){this['_inlineAttributeKeys']['add'](_0x59f0a7);}['_getAttributeKey'](_0x287209){return'attribute'==_0x287209['type']?_0x287209['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x21ada4,_0x5e5c7f){const _0x1c4092=_0x21ada4['getFirstMarker']();this['_model']['change'](_0x43093e=>{_0x43093e['updateMarker'](_0x1c4092,{'range':_0x5e5c7f});});}['_addThreadToSuggestion'](_0x50ea2d){const _0x3389f5=_0x50ea2d['id'],_0xca4e28=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3389f5)||this['_commentsRepository']['addCommentThread']({'channelId':_0xca4e28,'threadId':_0x3389f5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3ced05=this['_commentsRepository']['getCommentThread'](_0x3389f5);_0x3ced05['unbind']('isRemovable'),_0x3ced05['isRemovable']=!0x1,_0x50ea2d['commentThread']=_0x3ced05;}['_checkSuggestionCorrectness'](_0x201af,_0x387785,_0x39e903,_0x464d79){if(_0x201af['type']!=_0x387785||_0x201af['subType']!=_0x39e903||_0x201af['creator']['id']!=_0x464d79)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x31f689('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4b96a1,_0x319940){const _0x1f1063=_0x4b96a1['getFirstRange']();if(_0x319940['isEqual'](_0x1f1063))_0x4b96a1['removeMarkers']();else{if(_0x1f1063['containsRange'](_0x319940)){const _0x4a92b6=this['_model']['createPositionAt'](_0x319940['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4b96a1,this['_model']['createRange'](_0x1f1063['start'],_0x4a92b6));const _0x64b2e1=_0x5b9c0f(),_0x38d827=_0x4b96a1['creator']['id'],_0x494578=_0x4b96a1['type']+':'+_0x4b96a1['subType'];this['_setSuggestionData']({'id':_0x64b2e1,'type':_0x494578,'createdAt':new Date(),'authorId':_0x38d827,'data':_0x4b96a1['data'],'attributes':_0x4b96a1['attributes']});const _0x5023f6=this['_model']['createPositionAt'](_0x319940['end']['parent'],'after'),_0x390fa3=this['_model']['createRange'](_0x5023f6,_0x1f1063['end']);this['_addSuggestionMarker'](_0x494578,_0x64b2e1,_0x38d827,_0x390fa3);}else{if(_0x1f1063['containsPosition'](_0x319940['start'])){const _0x5400a1=this['_model']['createPositionAt'](_0x319940['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4b96a1,this['_model']['createRange'](_0x1f1063['start'],_0x5400a1));}else{const _0x2b1f6b=this['_model']['createPositionAt'](_0x319940['end']['parent'],'after');this['_setSuggestionRange'](_0x4b96a1,this['_model']['createRange'](_0x2b1f6b,_0x1f1063['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1a88f1){for(const {suggestion:_0x96f355,meta:_0x114394}of this['_findSuggestions'](_0x1a88f1,'insertion')){if(!_0x114394['isOwn'])continue;const _0x5932a9=_0x96f355['getRanges']();for(const _0x5d6f2f of _0x5932a9)if(!_0x1a88f1['getDifference'](_0x5d6f2f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5056a0){const _0x256e53=this['editor']['plugins']['get']('Users')['getUser'](_0x5056a0);if(!_0x256e53)throw new _0x31f689('track-changes-user-not-found',this);return _0x256e53;}['_getExternalAuthor'](_0x1ab0a9){const _0x37e6ed=this['editor']['plugins']['get']('Users'),_0x319064=_0x3c6848('external:'+_0x1ab0a9),_0x50f9be=_0x37e6ed['getUser'](_0x319064);return _0x50f9be||_0x37e6ed['addUser']({'id':_0x319064,'name':_0x1ab0a9});}['_createSuggestion'](_0x1da271,_0x59636b,_0x5e95ae,_0x11c823,_0x236030){const _0x2383d5=this['_getAuthorFromId'](_0x11c823),_0x14a71d=this['_suggestionFactory']['buildSuggestion'](_0x1da271,_0x59636b,_0x5e95ae,_0x2383d5,_0x236030,_0x2ac102=>{this['_updateSuggestionData'](_0x5e95ae,{'attributes':_0x2ac102});const _0x753f99=this['getSuggestion'](_0x5e95ae);this['_joinWithAdjacentSuggestions'](new Set([_0x753f99])),this['_refreshSuggestionsChain'](new Set([_0x753f99]));});return this['listenTo'](_0x14a71d,'accept',()=>{this['_updateSuggestionData'](_0x5e95ae,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x14a71d,'discard',()=>{this['_updateSuggestionData'](_0x5e95ae,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5e95ae,_0x14a71d),this['_suggestionState']['set'](_0x14a71d,'notReady'),_0x14a71d;}['_splitMarkerName'](_0x49aa54){const _0x37c1b1=_0x49aa54['split'](':');return{'group':_0x37c1b1[0x0],'type':_0x37c1b1[0x1],'subType':_0x37c1b1['length']>=0x5?_0x37c1b1[0x2]:null,'id':_0x37c1b1['length']<0x5?_0x37c1b1[0x2]:_0x37c1b1[0x3],'authorId':_0x37c1b1['length']<0x5?_0x37c1b1[0x3]:_0x37c1b1[0x4],'markerCount':0x6==_0x37c1b1['length']?_0x37c1b1[0x5]:null};}['_breakSuggestionMarker'](_0x1ec6bf,_0x3387cf,_0x17f76c){const _0x30da3e=_0x1ec6bf['getFirstRange'](),_0x31eae7=_0x30da3e['start'],_0x276d07=_0x30da3e['end'];this['_setSuggestionRange'](_0x1ec6bf,this['_model']['createRange'](_0x31eae7,_0x3387cf));const _0x16d4c7=_0x5b9c0f(),_0x19d95e=_0x1ec6bf['creator']['id'],_0x3a711c=_0x1ec6bf['type']+(_0x1ec6bf['subType']?':'+_0x1ec6bf['subType']:'');this['_setSuggestionData']({'id':_0x16d4c7,'type':_0x3a711c,'createdAt':new Date(),'authorId':_0x19d95e,'originalSuggestionId':_0x1ec6bf['id'],'attributes':_0x1ec6bf['attributes'],'data':_0x1ec6bf['data']});const _0x4dec26=this['_getAttributeKey'](_0x1ec6bf);('formatBlock'==_0x1ec6bf['type']||_0x4dec26&&this['_isBlockAttribute'](_0x4dec26))&&(_0x17f76c=this['_model']['createPositionBefore'](_0x17f76c['parent'])),this['_addSuggestionMarker'](_0x3a711c,_0x16d4c7,_0x19d95e,this['_model']['createRange'](_0x17f76c,_0x276d07));}['_findSuggestions'](_0xde0914,_0x151f36=null){const _0x14ff50=[],_0x2003c9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xde0914)||(_0xde0914=[_0xde0914]);for(const _0x3c0ec3 of this['getSuggestions']()){if(!_0x3c0ec3['isInContent'])continue;if(_0x151f36&&_0x3c0ec3['type']!=_0x151f36)continue;let _0x18c244=!0x1;for(const _0x422e84 of _0x3c0ec3['getRanges']()){for(const _0x7cfb18 of _0xde0914){const _0x37a9f2=_0x7cfb18['start']['isEqual'](_0x422e84['end'])||_0x7cfb18['end']['isEqual'](_0x422e84['start']);if(_0x37a9f2||_0x7cfb18['getIntersection'](_0x422e84)){const _0x37d07c=_0x7cfb18['containsRange'](_0x422e84)&&Gt(this['_model']['schema'],_0x422e84['start'],_0x7cfb18),_0x19d68a=_0x422e84['containsRange'](_0x7cfb18)&&Gt(this['_model']['schema'],_0x7cfb18['start'],_0x422e84);_0x14ff50['push']({'suggestion':_0x3c0ec3,'meta':{'isOwn':_0x2003c9==_0x3c0ec3['author'],'isNextTo':_0x37a9f2,'isInsideObject':_0x37d07c,'containsRangeInObject':_0x19d68a}}),_0x18c244=!0x0;break;}}if(_0x18c244)break;}}return _0x14ff50;}['_addSuggestionMarker'](_0x46f83e,_0x4ca0fd,_0xfa92fd,_0x4a859b,_0x1f32a4){this['_model']['change'](_0x1b3d2a=>{let _0xd0f672='suggestion:'+_0x46f83e+':'+_0x4ca0fd+':'+_0xfa92fd;_0x1f32a4&&(_0xd0f672=_0xd0f672+':'+_0x1f32a4),_0x1b3d2a['addMarker'](_0xd0f672,{'range':_0x4a859b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x396c7d){const _0x1427e5=_0x396c7d['previous'],_0x506b8b=_0x396c7d['next'];_0x396c7d['previous']=null,_0x396c7d['next']=null,null!=_0x1427e5&&_0x1427e5['next']==_0x396c7d&&(_0x1427e5['next']=_0x506b8b),null!=_0x506b8b&&_0x506b8b['previous']==_0x396c7d&&(_0x506b8b['previous']=_0x1427e5),'ready'==this['_suggestionState']['get'](_0x396c7d)&&(this['_suggestionState']['set'](_0x396c7d,'removed'),this['fire']('suggestionUnloaded',_0x396c7d,_0x1427e5,_0x506b8b));}['_setSuggestionData'](_0x3f97fe){const _0x3fd0f5=_0x3f97fe['id'],_0x418772=this['addSuggestionData'](_0x3f97fe);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1e7f29=this['editor']['plugins']['get']('PendingActions'),_0x3573b9=_0x418772['hasComments'],_0x48b2ae=_0x418772['subType']?_0x418772['type']+':'+_0x418772['subType']:_0x418772['type'],_0x3eb43b=this['editor']['locale'],_0x274855=_0x1e7f29['add'](c(_0x3eb43b,'PENDING_ACTION_SUGGESTION')),_0x4fde9a={'id':_0x3fd0f5,'type':_0x48b2ae,'hasComments':_0x3573b9,'data':_0x3f97fe['data']||null,'originalSuggestionId':_0x3f97fe['originalSuggestionId']||null,'attributes':_0x418772['attributes']};this['_adapter']['addSuggestion'](_0x4fde9a)['then'](_0x3d1bc2=>{_0x418772['_saved']=!0x0,_0x1e7f29['remove'](_0x274855),_0x3d1bc2&&_0x3d1bc2['createdAt']&&(this['_suggestions']['get'](_0x3fd0f5)['createdAt']=_0x3d1bc2['createdAt']);})['catch'](_0x5e8d32=>{throw _0x48da74('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x418772['discard']();}),_0x418772['stopListening'](),this['_suggestions']['delete'](_0x418772['id']),this['_suggestionState']['delete'](_0x418772),_0x5e8d32;});}return _0x418772;}['_isBlockAttribute'](_0x4d80e0){return this['_blockAttributeKeys']['has'](_0x4d80e0);}['_updateSuggestionData'](_0x5b625d,_0x5d8362){const _0x1d24bc=this['editor']['plugins']['get']('PendingActions'),_0x28bd4d=this['getSuggestion'](_0x5b625d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x28bd4d['_saved']){const _0x3bf833=_0x1d24bc['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5b625d,_0x5d8362)['then'](()=>{_0x1d24bc['remove'](_0x3bf833);});}else _0x28bd4d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5b625d,_0x5d8362);});}}['_getSuggestionData'](_0x52e961){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x31f689('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x52e961);}['_handleNewSuggestionMarker'](_0x46d598){const {id:_0x53692b,type:_0x575831,subType:_0x3bbbbf,authorId:_0xf279af}=this['_splitMarkerName'](_0x46d598),_0x40cfc6=this['_suggestions']['get'](_0x53692b)||this['_createSuggestion'](_0x575831,_0x3bbbbf,_0x53692b,_0xf279af,{});switch(this['_checkSuggestionCorrectness'](_0x40cfc6,_0x575831,_0x3bbbbf,_0xf279af),this['_suggestionState']['get'](_0x40cfc6)){case'notReady':this['_getSuggestionData'](_0x53692b)['then'](_0x404a48=>{let _0x478d92=Promise['resolve']();_0x404a48['hasComments']&&(_0x478d92=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x53692b})),_0x478d92['then'](()=>{this['addSuggestionData'](_0x404a48)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x40cfc6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x53692b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x40cfc6,'ready'),this['fire']('suggestionLoaded',_0x40cfc6);break;case'ready':this['fire']('suggestionChanged',_0x40cfc6);}return _0x40cfc6['addMarkerName'](_0x46d598),_0x40cfc6;}['_refreshSuggestionsChain'](_0x4e560e){const _0x56b0f1=Array['from'](_0x4e560e),_0x330d79=_0x56b0f1['filter'](_0x4b3f5f=>'attribute'==_0x4b3f5f['type']);this['_refreshAttributeSuggestionsChain'](_0x330d79);const _0x58ac46=_0x56b0f1['filter'](_0x3a9ad6=>!_0x3a9ad6['isMultiRange']&&'attribute'!=_0x3a9ad6['type']),_0x5a48e6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x440a8d=>!_0x440a8d['isMultiRange']&&'attribute'!=_0x440a8d['type']),_0x5b4d6b=_0x5a48e6['filter'](_0x440c68=>!_0x4e560e['has'](_0x440c68)),_0x96a5c4=new Map(_0x5a48e6['map'](_0x1e0177=>[_0x1e0177,this['_suggestionFactory']['getSuggestionCallback'](_0x1e0177['type'],_0x1e0177['subType'],'chain')])),_0x5a9954=new Map(_0x5a48e6['map'](_0x100735=>[_0x100735,_0x100735['getFirstRange']()])),_0x25c21e=new Set(),_0x4ac489=new Set();for(let _0x38b97f=0x0;_0x38b97f<_0x58ac46['length'];_0x38b97f++)_0x2f67ae(_0x58ac46[_0x38b97f],_0x58ac46,_0x38b97f+0x1);for(let _0xb453b6=0x0;_0xb453b6<_0x58ac46['length'];_0xb453b6++)_0x2f67ae(_0x58ac46[_0xb453b6],_0x5b4d6b,0x0);const _0xb9d0f8=new Set();for(let _0x1f5110=0x0;_0x1f5110<_0x58ac46['length'];_0x1f5110++){const _0x4246cb=_0x58ac46[_0x1f5110];!_0x4ac489['has'](_0x4246cb)&&_0x4246cb['previous']&&(_0xb9d0f8['add'](_0x4246cb['previous']),_0x4246cb['previous']['next']===_0x4246cb&&(_0x4246cb['previous']['next']=null),_0x4246cb['previous']=null),!_0x25c21e['has'](_0x4246cb)&&_0x4246cb['next']&&(_0xb9d0f8['add'](_0x4246cb['next']),_0x4246cb['next']['previous']===_0x4246cb&&(_0x4246cb['next']['previous']=null),_0x4246cb['next']=null);}function _0x2f67ae(_0x5b51bb,_0xe08d88,_0x43f07d){for(let _0x2e8ef5=_0x43f07d;_0x2e8ef5<_0xe08d88['length'];_0x2e8ef5++){const _0x606e2e=_0x596fed(_0x5b51bb,_0xe08d88[_0x2e8ef5]);_0x606e2e&&(_0x606e2e[0x0]['next']=_0x606e2e[0x1],_0x606e2e[0x1]['previous']=_0x606e2e[0x0],_0x25c21e['add'](_0x606e2e[0x0]),_0x4ac489['add'](_0x606e2e[0x1]));}}function _0x596fed(_0x105394,_0x4a49b7){if(_0x105394['author']['id']!==_0x4a49b7['author']['id'])return null;const _0x36f7cc=_0x96a5c4['get'](_0x105394)(_0x105394,_0x4a49b7,_0x5a9954['get'](_0x105394),_0x5a9954['get'](_0x4a49b7));if(!_0x36f7cc)return null;return _0x96a5c4['get'](_0x4a49b7)(_0x105394,_0x4a49b7,_0x5a9954['get'](_0x105394),_0x5a9954['get'](_0x4a49b7))?_0x36f7cc[0x1]['commentThread']&&_0x36f7cc[0x1]['commentThread']['length']?null:_0x36f7cc:null;}_0xb9d0f8['size']&&this['_refreshSuggestionsChain'](_0xb9d0f8);}['_refreshAttributeSuggestionsChain'](_0xea44f2){if(0x0==_0xea44f2['length'])return;const _0x498277=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51b06c=>'attribute'==_0x51b06c['type']&&_0x51b06c['_isDataLoaded']),_0xcd55e1=[],_0x58664e=new Map();for(const _0x532517 of _0x498277){const _0x4a0fcf=_0x3c6848(_0x532517['attributes']);_0x58664e['has'](_0x4a0fcf)||(_0x58664e['set'](_0x4a0fcf,_0xcd55e1['length']),_0xcd55e1['push']([]));const _0x48e885=_0x58664e['get'](_0x4a0fcf);_0xcd55e1[_0x48e885]['push'](_0x532517);}!(function(){_0xcd55e1['sort']((_0x21cac8,_0x1d1577)=>{const _0x93ea0f=_0x21cac8[0x0]['createdAt'],_0x19c90a=_0x1d1577[0x0]['createdAt'];return _0x93ea0f==_0x19c90a?_0x21cac8[0x0]['attributes']['groupId']<_0x1d1577[0x0]['attributes']['groupId']?-0x1:0x1:_0x93ea0f<_0x19c90a?-0x1:0x1;});for(const _0x7fa2d1 of _0xcd55e1)_0x7fa2d1['sort']((_0xc1274a,_0x1fccbc)=>_0xc1274a['id']<_0x1fccbc['id']?-0x1:0x1);}());for(let _0x556e9a=0x0;_0x556e9a<_0xcd55e1['length'];_0x556e9a++){if(0x0==_0xcd55e1[_0x556e9a]['length'])continue;const _0xf57514=[];for(let _0xfed6af=_0x556e9a+0x1;_0xfed6af<_0xcd55e1['length'];_0xfed6af++)0x0!=_0xcd55e1[_0xfed6af]['length']&&_0x44567c(_0xcd55e1[_0x556e9a],_0xcd55e1[_0xfed6af])&&_0xf57514['push'](_0xfed6af);for(const _0x5a58bc of _0xf57514)_0xcd55e1[_0x556e9a]=_0xcd55e1[_0x556e9a]['concat'](_0xcd55e1[_0x5a58bc]),_0xcd55e1[_0x5a58bc]=[];}for(const _0x1e6e18 of _0xcd55e1)for(let _0x2c966f=0x0;_0x2c966f<_0x1e6e18['length'];_0x2c966f++){const _0x452a1c=_0x1e6e18[_0x2c966f+0x1]||null;_0x1e6e18[_0x2c966f]['next']!==_0x452a1c&&(_0x1e6e18[_0x2c966f]['next']=_0x452a1c);}for(const _0x1afc57 of _0xcd55e1)for(let _0x523030=0x0;_0x523030<_0x1afc57['length'];_0x523030++){const _0x26487c=_0x1afc57[_0x523030-0x1]||null;_0x1afc57[_0x523030]['previous']!==_0x26487c&&(_0x1afc57[_0x523030]['previous']=_0x26487c);}function _0x44567c(_0x10af4c,_0x18cd57){if(_0x10af4c[0x0]['attributes']['groupId']!==_0x18cd57[0x0]['attributes']['groupId']&&_0x10af4c[0x0]['author']!==_0x18cd57[0x0]['author'])return!0x1;if(!function(_0x15291f,_0x2be343){if(!_0x15291f['hasComments']&&!_0x2be343['hasComments'])return!0x0;if(_0x15291f['hasComments']&&_0x2be343['hasComments'])return!0x1;if(_0x15291f['hasComments']&&_0x2be343['createdAt']<_0x15291f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2be343['hasComments']&&_0x15291f['createdAt']<_0x2be343['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x10af4c[0x0],_0x18cd57[0x0]))return!0x1;const _0xecc30e=Ft(_0x10af4c[0x0]['attributes'],'groupId'),_0x4fe7c0=Ft(_0x18cd57[0x0]['attributes'],'groupId');if(!_0x5953bb(_0xecc30e,_0x4fe7c0))return!0x1;return!!_0x10af4c['every'](_0x334b52=>_0x18cd57['some'](_0x2dedba=>_0x334b52['getFirstRange']()['isEqual'](_0x2dedba['getFirstRange']())))&&_0x18cd57['every'](_0x4013cb=>_0x10af4c['some'](_0x46074e=>_0x4013cb['getFirstRange']()['isEqual'](_0x46074e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2221bc){const _0x52d37d=Array['from'](_0x2221bc),_0x1985b6=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2ab5c0=_0x1985b6['filter'](_0x37663a=>!_0x2221bc['has'](_0x37663a)),_0x4447be=new Map(_0x52d37d['map'](_0x8ea39b=>[_0x8ea39b,this['_suggestionFactory']['getSuggestionCallback'](_0x8ea39b['type'],_0x8ea39b['subType'],'join')])),_0x415fed=new Map(_0x1985b6['map'](_0x30bbde=>[_0x30bbde,_0x30bbde['getRanges']()]));for(let _0x3b68d7=0x0;_0x3b68d7<_0x52d37d['length'];_0x3b68d7++){if(_0x3f4c83(this,_0x52d37d[_0x3b68d7],_0x52d37d,_0x3b68d7+0x1))return!0x0;}for(let _0x471136=0x0;_0x471136<_0x52d37d['length'];_0x471136++){if(_0x3f4c83(this,_0x52d37d[_0x471136],_0x2ab5c0,0x0))return!0x0;}return!0x1;function _0x3f4c83(_0x44d0d9,_0x4b1438,_0x3bd3b7,_0x16882e){for(let _0x4d024f=_0x16882e;_0x4d024f<_0x3bd3b7['length'];_0x4d024f++){const _0x964687=_0x3bd3b7[_0x4d024f];if(_0x964687['type']!==_0x4b1438['type']||_0x964687['author']['id']!==_0x4b1438['author']['id']||_0x964687['subType']!==_0x4b1438['subType'])continue;if(!Qt(_0x4b1438,_0x964687))continue;if('attribute'==_0x4b1438['type']&&_0x4b1438['data']['oldValue']!=_0x964687['data']['oldValue'])continue;if('attribute'==_0x4b1438['type']&&_0x44d0d9['_isBlockAttribute'](_0x4b1438['data']['key']))continue;if('formatBlock'==_0x4b1438['type']){const _0x105a6d=_0x44d0d9['editor']['model'],_0x12abb6=_0x4b1438['getContainedElement']();if(_0x12abb6&&(_0x105a6d['schema']['isObject'](_0x12abb6)||_0x105a6d['schema']['isLimit'](_0x12abb6)))continue;}const _0x8f775c=_0x4447be['get'](_0x4b1438),_0x4acfcf=_0x415fed['get'](_0x4b1438),_0x2d9d43=_0x415fed['get'](_0x964687),_0x51bd95=_0x4b1438['commentThread']&&_0x4b1438['commentThread']['length'],_0x49caac=_0x964687['commentThread']&&_0x964687['commentThread']['length'];if(!_0x51bd95&&_0x8f775c(_0x2d9d43,_0x4acfcf))return _0x44d0d9['_joinSuggestions'](_0x964687,_0x4b1438),_0x415fed['delete'](_0x4b1438),!0x0;if(!_0x49caac&&_0x8f775c(_0x4acfcf,_0x2d9d43))return _0x44d0d9['_joinSuggestions'](_0x4b1438,_0x964687),_0x415fed['delete'](_0x964687),!0x0;}return!0x1;}}['_joinSuggestions'](_0x551245,_0x1a1c31){if(_0x551245['isMultiRange']){for(const _0x1c3c85 of _0x1a1c31['getRanges']())_0x551245['addRange'](_0x1c3c85);}else{const _0x370964=_0x1a1c31['getFirstRange']()['end'];this['_setSuggestionRange'](_0x551245,this['_model']['createRange'](_0x551245['getFirstRange']()['start'],_0x370964));}_0x1a1c31['removeMarkers']();}['_getMarkerAnnouncementText'](_0x510200,_0x527e11,_0x241051){const _0x4e1a53=_0x510200['startsWith']('format')||_0x510200['startsWith']('attribute')?'FORMATTING':_0x510200['toUpperCase']();return c(this['editor']['locale'],_0x527e11+'_'+_0x4e1a53+'_SUGGESTION_ANNOUNCEMENT',_0x241051);}['_initAriaMarkerChangeAnnouncements'](){const _0x43713b=this['editor'];if(!_0x43713b['ui'])return;const {ariaLiveAnnouncer:_0x52a706}=_0x43713b['ui'];_0x4d90b3(this['_model'],({left:_0x3c8a1b,entered:_0x18cb42})=>{for(const _0x4c1d25 of _0x3c8a1b){const {group:_0x4b5328,type:_0x64b163}=this['_splitMarkerName'](_0x4c1d25['name']);if('suggestion'===_0x4b5328){_0x52a706['announce'](this['_getMarkerAnnouncementText'](_0x64b163,'LEAVE'));break;}}for(const _0x4b2456 of _0x18cb42){const {group:_0x4eaed8,type:_0x46a769}=this['_splitMarkerName'](_0x4b2456['name']);if('suggestion'===_0x4eaed8){_0x52a706['announce'](this['_getMarkerAnnouncementText'](_0x46a769,'ENTER',_0x1f1ac5(_0x163322)));break;}}});}['_processAttributeChanges'](_0x158f63){if(this['_recordAttributeSuggestions'])return!0x1;const _0x13aff0=this['editor'],_0xf807e0=_0x13aff0['model']['document']['differ']['getChanges']();if(0x0==_0xf807e0['length'])return!0x1;const _0x6b5171=[],_0x37d553=_0xf807e0['filter'](_0x2645e8=>'attribute'==_0x2645e8['type']),_0x580e33=_0xf807e0['filter'](_0x561424=>'insert'==_0x561424['type']&&'$text'!=_0x561424['name']),_0xfd4921=_0xf807e0['filter'](_0x12e98f=>'remove'==_0x12e98f['type']&&'$text'!=_0x12e98f['name']);for(const _0xbbec4d of _0x37d553)_0x6b5171['push']({'key':_0xbbec4d['attributeKey'],'newValue':_0xbbec4d['attributeNewValue'],'oldValue':_0xbbec4d['attributeOldValue'],'range':qt(_0xbbec4d['range'],_0x13aff0['model'])});for(const _0x569930 of _0x580e33){const _0x50d7eb=_0xfd4921['find'](_0x38e0f8=>_0x38e0f8['position']['isEqual'](_0x569930['position']));_0x50d7eb&&_0x6b5171['push']({'key':u,'newValue':_0x569930['name'],'oldValue':_0x50d7eb['name'],'range':_0x13aff0['model']['createRangeOn'](_0x569930['position']['nodeAfter'])});}return 0x0!=_0x6b5171['length']&&this['_reduceExistingSuggestions'](_0x158f63,_0x6b5171);}['_processAttributeSuggestions'](_0x239d8a){let _0x449a90=!0x1;const _0x32d6a1=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4cb2df=>_0x4cb2df['data']['newRange']&&_0x4cb2df['name']['startsWith']('suggestion:attribute:'));for(const _0x45687d of _0x32d6a1){const {subType:_0x11ef3d,id:_0x4c90f7}=this['_splitMarkerName'](_0x45687d['name']),_0x54519b=_0x11ef3d['split']('|')[0x0];for(const _0x1d9ba8 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1d9ba8['id']!=_0x4c90f7&&'attribute'==_0x1d9ba8['type']&&_0x1d9ba8['data']&&_0x1d9ba8['data']['key']==_0x54519b&&_0x1d9ba8['getFirstRange']()['isIntersecting'](_0x45687d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1d9ba8,_0x45687d['data']['newRange'],_0x239d8a),_0x449a90=!0x0);}return _0x449a90;}['_recordAttributeChanges'](_0x564c89){this['_recordAttributeSuggestions']=!0x0,_0x564c89();}['_isRegisteredAttribute'](_0x2d7d52){const _0x553127=this['_isBlockAttribute'](_0x2d7d52),_0x4a5b0b=this['_inlineAttributeKeys']['has'](_0x2d7d52);return _0x553127||_0x4a5b0b;}['_reduceExistingSuggestions'](_0x478521,_0x51f19f){if(0x0==_0x51f19f['length'])return!0x1;let _0x25d758=!0x1;for(const _0xba14b6 of _0x51f19f){const _0x498261=this['_findSuggestions'](_0xba14b6['range'],'attribute')['filter'](_0x13d24c=>!_0x13d24c['meta']['isNextTo'])['map'](_0x394ca6=>_0x394ca6['suggestion']),_0x402fc1=_0x3c6848({'newValue':_0xba14b6['newValue']});_0x498261['filter'](_0x397af0=>{const [_0x5732e6,_0x355b0f]=_0x397af0['subType']['split']('|');return _0x5732e6==_0xba14b6['key']&&_0x355b0f!=_0x402fc1;})['forEach'](_0x565117=>{this['_reduceSuggestionAttributeRange'](_0x565117,_0xba14b6['range'],_0x478521),_0x25d758=!0x0;});}return _0x25d758;}['_reduceSuggestionAttributeRange'](_0x22e8a2,_0x4de011,_0x221844){const _0xdf5ab5=_0x22e8a2['getFirstRange']()['getDifference'](_0x4de011);0x0!==_0xdf5ab5['length']?0x1!==_0xdf5ab5['length']?this['_breakSuggestionMarker'](_0x22e8a2,_0x4de011['start'],_0x4de011['end']):this['_setSuggestionRange'](_0x22e8a2,_0xdf5ab5[0x0]):_0x221844['removeMarker'](_0x22e8a2['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4df0e0){this['_editor']=_0x4df0e0,this['_model']=_0x4df0e0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2f41bd,_0x9a0feb,_0x46403a,_0x4e0c6c,_0xe13dcd,_0x51408e){return new o(this['_model'],{'type':_0x2f41bd,'subType':_0x9a0feb,'id':_0x46403a,'author':_0x4e0c6c,'creator':_0x4e0c6c,'attributes':_0xe13dcd,'onAttributesChange':_0x51408e,'onAccept':(..._0x147604)=>this['getSuggestionCallback'](_0x2f41bd,_0x9a0feb,'accept')(..._0x147604),'onDiscard':(..._0x4a3971)=>this['getSuggestionCallback'](_0x2f41bd,_0x9a0feb,'discard')(..._0x4a3971)});}['registerCustomCallback'](_0xe17404,_0x4e9b6f,_0x2c6e9b,_0x1934f4){const _0x2b5056=_0xe17404+':'+_0x4e9b6f+':'+_0x2c6e9b;this['_customCallbacks']['set'](_0x2b5056,_0x1934f4);}['getSuggestionCallback'](_0xbb0160,_0x3d3f35,_0x3a2f1e){const _0x406348=_0xbb0160+':'+_0x3d3f35+':'+_0x3a2f1e;return this['_customCallbacks']['get'](_0x406348)||this['_defaultCallbacks']['get'](_0xbb0160+':'+_0x3a2f1e);}['_registerDefaultCallbacks'](){const _0x50c106=()=>!0x1,_0x3cd1e0=_0x2959d4=>{_0x2959d4['sort']((_0xb12173,_0x2d067f)=>_0xb12173['start']['isBefore'](_0x2d067f['start'])?0x1:-0x1),this['_model']['change'](_0x8e156c=>{for(const _0x23f578 of _0x2959d4){let _0x4dd419;_0x4dd419=_0x23f578['end']['isAtEnd']&&_0x23f578['end']['parent']==_0x23f578['start']['nodeAfter']?_0x8e156c['createSelection'](_0x23f578['start']['nodeAfter'],'on'):_0x8e156c['createSelection'](_0x23f578),this['_model']['deleteContent'](_0x4dd419,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2a951b=(_0x13230f,_0x35acb2)=>{_0x35acb2&&this['_model']['change'](_0x227f02=>{const {commandName:_0x295361,commandParams:_0x2611b6=[]}=_0x35acb2,_0x52ef98=_0x13230f['map'](_0x21ac3a=>(Lt(_0x21ac3a)&&(_0x21ac3a=this['_model']['createRange'](_0x21ac3a['end'])),_0x21ac3a))['filter'](_0x132eed=>'$graveyard'!==_0x132eed['root']['rootName']);if(_0x52ef98['length']<0x1)return;const _0x38fe43=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x276089=>_0x3b5a68['fromRange'](_0x276089));_0x227f02['setSelection'](_0x52ef98);for(const _0x26fbd2 of this['_editor']['commands']['commands']())_0x26fbd2['refresh']();_0x2611b6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x295361,..._0x2611b6);const _0x49d13e=_0x38fe43['filter'](_0x2d3f28=>'$graveyard'!=_0x2d3f28['root']['rootName']);_0x49d13e['length']>0x0&&_0x227f02['setSelection'](_0x49d13e);for(const _0xb7d10b of _0x38fe43)_0xb7d10b['detach']();});},_0x394a67=(_0x29c122,_0xba0e86)=>0x1==_0x29c122['length']&&0x1==_0xba0e86['length']&&_0x29c122[0x0]['end']['isEqual'](_0xba0e86[0x0]['start']),_0x4d1687=(_0x4cee22,_0x15e9a3,_0x29437e,_0x39225a)=>Wt(_0x4cee22,_0x15e9a3,_0x29437e,_0x39225a)?[_0x4cee22,_0x15e9a3]:Wt(_0x15e9a3,_0x4cee22,_0x39225a,_0x29437e)?[_0x15e9a3,_0x4cee22]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x50c106),this['_defaultCallbacks']['set']('insertion:discard',_0x3cd1e0),this['_defaultCallbacks']['set']('insertion:join',_0x394a67),this['_defaultCallbacks']['set']('insertion:chain',_0x4d1687),this['_defaultCallbacks']['set']('deletion:accept',_0x3cd1e0),this['_defaultCallbacks']['set']('deletion:discard',_0x50c106),this['_defaultCallbacks']['set']('deletion:join',_0x394a67),this['_defaultCallbacks']['set']('deletion:chain',_0x4d1687),this['_defaultCallbacks']['set']('formatInline:accept',_0x2a951b),this['_defaultCallbacks']['set']('formatInline:discard',_0x50c106),this['_defaultCallbacks']['set']('formatInline:join',_0x394a67),this['_defaultCallbacks']['set']('formatInline:chain',_0x50c106),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2a951b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x50c106),this['_defaultCallbacks']['set']('formatBlock:join',_0x394a67),this['_defaultCallbacks']['set']('formatBlock:chain',_0x50c106),this['_defaultCallbacks']['set']('attribute:accept',_0x50c106),this['_defaultCallbacks']['set']('attribute:discard',(_0x4caadb,_0x5bce78)=>{if(!_0x5bce78)return;const _0x25e93b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2161ea=>{if(_0x5bce78['key']==u)for(const _0x4f635c of _0x4caadb){const _0x27c4e3=_0x4f635c['start']['nodeAfter'],_0x2e81dd=_0x5bce78['oldValue'];_0x2161ea['rename'](_0x27c4e3,_0x2e81dd);}else{if(_0x25e93b['_isBlockAttribute'](_0x5bce78['key'])){for(const _0x2acd5c of _0x4caadb)void 0x0!==_0x5bce78['oldValue']?_0x2161ea['setAttribute'](_0x5bce78['key'],_0x5bce78['oldValue'],_0x2acd5c['start']['nodeAfter']):_0x2161ea['removeAttribute'](_0x5bce78['key'],_0x2acd5c['start']['nodeAfter']);}else{for(const _0x2016ba of _0x4caadb)_0x5bce78['oldValue']?_0x2161ea['setAttribute'](_0x5bce78['key'],_0x5bce78['oldValue'],_0x2016ba):_0x2161ea['removeAttribute'](_0x5bce78['key'],_0x2016ba);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x394a67);}}function Gt(_0x51c4d0,_0x2207f2,_0x4ee6e6){for(const _0x123abe of _0x2207f2['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x123abe['root']==_0x123abe)return!0x1;if(!_0x4ee6e6['containsItem'](_0x123abe))return!0x1;if(_0x51c4d0['isObject'](_0x123abe)||_0x51c4d0['isLimit'](_0x123abe))return!0x0;}return!0x1;}function Lt(_0x345dfc){return _0x345dfc['end']['parent']==_0x345dfc['start']['nodeAfter']&&_0x345dfc['end']['isAtStart'];}function Jt(_0xf84b81,_0x26f629,_0x3a340e,_0x51bf7e){const _0xcdee1f=_0x163027=>!_0x163027['item']['is']('$textProxy')&&!_0x51bf7e['isObject'](_0x163027['item']),_0x33847d=_0xf84b81['start']['getLastMatchingPosition'](_0xcdee1f),_0x2d4282=_0xf84b81['end']['getLastMatchingPosition'](_0xcdee1f,{'direction':'backward'});return(!_0xf84b81['start']['isEqual'](_0x33847d)||!_0xf84b81['end']['isEqual'](_0x2d4282))&&(_0x33847d['isBefore'](_0x2d4282)?_0x3a340e['updateMarker'](_0x26f629,{'range':_0x3a340e['createRange'](_0x33847d,_0x2d4282)}):_0x3a340e['removeMarker'](_0x26f629),!0x0);}function Kt(_0x597d48){return _0x3c6848(_0x597d48);}function Ht(_0x26a8c3){const _0x581181=_0x26a8c3['start']['nodeAfter'];return _0x581181&&_0x581181['is']('element');}function qt(_0x250ed2,_0x286613){return null==_0x250ed2['end']['nodeBefore']&&_0x250ed2['end']['parent']==_0x250ed2['start']['nodeAfter']?zt(_0x250ed2['start']['nodeAfter'],_0x286613):_0x250ed2;}function zt(_0x491975,_0x43de0c){const _0x5c1747=_0x43de0c['schema']['isObject'](_0x491975)||_0x43de0c['schema']['isSelectable'](_0x491975);return _0x43de0c['createRange'](_0x43de0c['createPositionAt'](_0x491975,'before'),_0x5c1747?_0x43de0c['createPositionAfter'](_0x491975):_0x43de0c['createPositionAt'](_0x491975,'end'));}function Wt(_0x17d7f2,_0x4c2da1,_0x2fb410,_0x181cef){return!!Qt(_0x17d7f2,_0x4c2da1)&&_0x2fb410['end']['isEqual'](_0x181cef['start']);}function Qt(_0x3b1b96,_0x7fbd5e){if(!_0x3b1b96['_isDataLoaded']||!_0x7fbd5e['_isDataLoaded'])return!0x1;const _0x11d091=new Set(Object['keys'](_0x3b1b96['attributes'])),_0x4cfc45=new Set(Object['keys'](_0x7fbd5e['attributes']));if(_0x11d091['delete']('groupId'),_0x4cfc45['delete']('groupId'),0x0==_0x11d091['size']&&0x0==_0x4cfc45['size'])return!0x0;if(_0x11d091['size']!=_0x4cfc45['size'])return!0x1;const _0x500296={..._0x3b1b96['attributes']},_0x50865e={..._0x7fbd5e['attributes']};return delete _0x500296['groupId'],delete _0x50865e['groupId'],JSON['stringify'](_0x500296)==JSON['stringify'](_0x50865e);}function Xt(_0x39e72d,_0x30c73e){const _0x498024=Yt(_0x39e72d['attributes']),_0x31570f=Yt(_0x30c73e);if(!_0x39e72d['_isDataLoaded'])return!0x1;for(const _0x3dabec of Object['keys'](_0x31570f))if(!_0x5953bb(_0x498024[_0x3dabec],_0x31570f[_0x3dabec]))return!0x1;return!0x0;}function Yt(_0x269642){const _0x22eca1=Object['assign']({},_0x269642);return delete _0x22eca1['skipNestingCheck'],delete _0x22eca1['tablePasteChainId'],_0x22eca1;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x3e69a7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x12f453,_0x1d757a,_0x43d813,_0xc53f52){super(),this['model']=_0x1d757a,this['view']=_0x43d813,this['commentThreadController']=_0xc53f52,this['_editor']=_0x12f453,this['_acceptCommand']=_0x12f453['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x12f453['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x21e136,_0x28bc15)=>_0x21e136||_0x28bc15),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2073f9=>_0x2073f9&&this['_editor']['model']['canEditAt'](_0x1d757a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x37593c=>_0x37593c&&this['_editor']['model']['canEditAt'](_0x1d757a['getRanges']())),this['_pendingAction']=null,_0x43d813['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x43d813,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x43d813,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x43d813,'change:isDirty',()=>{_0x43d813['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 _0x12541b=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x12541b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x17edf8{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5a5086,_0x248813,_0x1e2e6d,_0x1c1624){super(_0x5a5086),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x6e280d(_0x5a5086,c(_0x5a5086,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x248813['authoredAt']),this['bind']('authoredAt')['to'](_0x248813),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',_0x248813,'authoredAt',this,'descriptionParts',(_0x3b3eba,_0x188a9c,_0x26378e)=>{const _0x5625cc=_0x26378e['map'](_0x43c53d=>ls(_0x43c53d['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3b3eba-0x1,_0x248813['author']['name'],_0x188a9c?_0x1c1624['formatDateTime'](_0x188a9c):'',new DOMParser()['parseFromString'](_0x5625cc,'text/html')['body']['textContent']]);}),this['focusables']=new _0x34662b(),this['focusTracker']=new _0xcf7f2a(),this['keystrokes']=new _0x2c78fe(),this['focusCycler']=new _0x680ea7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x22b3ec=>_0x22b3ec['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x248813,this['_localUser']=_0x1e2e6d,this['_config']=_0x1c1624,_0x1c1624['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x423a38(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x260aa7}=this['_config'];this['commentsListView']=new _0x260aa7(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',_0x32211e=>_0x32211e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x564035,_0x524b96)=>_0x564035||!!_0x524b96);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x22a866}=this['_config'],_0xbba7a0=new _0x22a866(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2005c6=_0xbba7a0['commentInputView'];return _0xbba7a0['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2005c6,'value',(_0x264414,_0x1ae06b,_0x58c4e9)=>!!_0x58c4e9||_0x264414&&!_0x1ae06b),_0x2005c6['on']('submit',(_0x2a57d8,_0x6d7efb)=>{this['fire']('addComment',_0x6d7efb),_0x2005c6['editor']['setData']('');}),_0x2005c6['on']('cancel',()=>this['focus']()),_0x2005c6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xbba7a0;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x205c78,_0x3ab9d8,_0x43786f,_0x149b4d){super(_0x205c78,_0x3ab9d8,_0x43786f,_0x149b4d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5c2cb4=>_0x5c2cb4&&_0x5c2cb4[0x0]?_0x5c2cb4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2e9e15,_0x5e7b9d)=>{let _0x4ec251='';for(const _0x1e8216 of _0x2e9e15)_0x4ec251+='<p>'+ls(_0x1e8216['content'],_0x1e8216['color'])+'</p>';return _0x5e7b9d?_0x4ec251:ti(_0x4ec251,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x149b4d['SuggestionView'](_0x205c78,_0x3ab9d8,{'formatDateTime':_0x149b4d['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 _0x38af2c=this['bindTemplate'],_0x10bd02=[this['suggestionView']];return this['commentsListView']&&_0x10bd02['push'](this['commentsListView']),this['commentThreadInputView']&&_0x10bd02['push'](this['commentThreadInputView']),_0x10bd02['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x38af2c['if']('isActive','ck-suggestion-wrapper--active'),_0x38af2c['to']('type',_0x162a5c=>'ck-suggestion-'+_0x162a5c),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':_0x38af2c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x10bd02};}['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 _0x17edf8{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4d9f2e,_0x3c0bd5,_0x289b83){super(_0x4d9f2e),this['_model']=_0x3c0bd5,this['_config']=_0x289b83,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3c0bd5),this['acceptButton']=this['_createButton'](c(_0x4d9f2e,'Accept\x20suggestion'),_0x4e6555,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x4d9f2e,'Discard\x20suggestion'),_0x426606,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x22e69a(_0x4d9f2e,_0x3c0bd5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x34662b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xcf7f2a(),this['keystrokes']=new _0x2c78fe(),this['focusCycler']=new _0x680ea7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x6ace2e=>_0x6ace2e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x39012b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x39012b['innerHTML']=this['description'],this['on']('change:description',(_0x29da6f,_0x512eaf,_0x57445f)=>{_0x39012b['innerHTML']=_0x57445f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2ed71f=this['bindTemplate'],_0x2c8a22=[{'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':_0x2ed71f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2ed71f['to']('authoredAt',_0xc4cb8b=>this['_config']['formatDateTime'](_0xc4cb8b))}]}]},{'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']&&_0x2c8a22['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':_0x2c8a22}]};}['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'](_0x3ea884,_0x1daca6,_0x1877ce,_0x5433eb,_0xf15e9c){const _0x1f78e8=new _0x1267f7(this['locale']);return _0x1f78e8['set']({'label':_0x3ea884,'icon':_0x1daca6,'tooltip':!0x0,'tooltipPosition':_0xf15e9c}),_0x1f78e8['extendTemplate']({'attributes':{'class':_0x1877ce}}),_0x1f78e8['on']('execute',()=>{this['fire'](_0x5433eb,this['_model']['id']);}),_0x1f78e8;}['_setupKeyboardNavigation'](){const _0x10835a=this['element'];this['keystrokes']['listenTo'](_0x10835a);for(const _0x1460cd of this['focusables'])this['focusTracker']['add'](_0x1460cd['element']),this['keystrokes']['listenTo'](_0x1460cd['element']);this['keystrokes']['set']('enter',(_0x2acd54,_0x1a4410)=>{_0x10835a===_0x2acd54['target']&&(this['focusCycler']['focusFirst'](),_0x1a4410());}),this['keystrokes']['set']('esc',(_0xf4f4d5,_0x50f359)=>{_0x10835a!==_0xf4f4d5['target']&&(this['focus'](),_0x50f359());});}}class d extends _0x505a46{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x6aac30,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b7bc6){super(_0x1b7bc6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2e3860=this['editor']['config'];_0x2e3860['define']('trackChanges.SuggestionThreadView',fe),_0x2e3860['define']('trackChanges.SuggestionView',we),_0x2e3860['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2e3860['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x213401,_0x408e20){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x44bbd8,_0x2f7344]of this['_handleControllerBuffer']){const _0x10ad82=this['_suggestionToController']['has'](_0x44bbd8);_0x10ad82||_0x2f7344?_0x10ad82&&_0x2f7344&&this['_destroyController'](_0x44bbd8):this['_initializeController'](_0x44bbd8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x213401,_0x408e20);}['init'](){const _0x541a09=this['editor'],_0x41e58d=_0x541a09['plugins']['get']('TrackChangesEditing'),_0xb87634=_0x541a09['plugins']['get']('Annotations'),_0x35034c=_0x541a09['plugins']['get']('EditorAnnotations'),_0x4a082a=_0x541a09['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x35034c['addSourceCollector'](()=>{const _0xbb16be=[];for(const [_0x519c15,_0xcfe5d9]of Array['from'](this['_suggestionToController'])){const _0x50a61b=_0x519c15['getAllAdjacentSuggestions'](),_0x2b5be5=[];for(const _0x590016 of _0x50a61b){if(!_0x590016['isInContent'])continue;if(_0x590016['isMultiRange']){_0x2b5be5['push'](..._0x590016['getRanges']());continue;}const _0x4d3440=_0x590016['getFirstRange']();if(_0x2b5be5['length']>0x0){const _0x456767=_0x2b5be5[0x0]['getJoined'](_0x4d3440);if(_0x456767){_0x2b5be5[0x0]=_0x456767;continue;}}_0x2b5be5['push'](_0x4d3440);}_0xbb16be['push']([_0xcfe5d9['view'],_0x2b5be5]);}return _0xbb16be;}),this['listenTo'](_0x41e58d,'suggestionLoaded',(_0x2d3ebd,_0x134b73)=>{this['listenTo'](_0x134b73,'change:previous',(_0x191a14,_0x978cef,_0x44eace,_0x2ece33)=>{_0x134b73['isInContent']&&(null==_0x44eace?(this['_updateController'](_0x2ece33['head']),this['_handleSuggestionControllerDelayed'](_0x134b73,!0x1)):(this['_updateController'](_0x44eace['head']),null==_0x2ece33&&this['_handleSuggestionControllerDelayed'](_0x134b73,!0x0)));}),null!==_0x134b73['previous']?this['_updateController'](_0x134b73['head']):this['_handleSuggestionControllerDelayed'](_0x134b73,!0x1);}),this['listenTo'](_0x41e58d,'suggestionUnloaded',(_0x1a537c,_0x4d30e4,_0x205e3d)=>{this['stopListening'](_0x4d30e4,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4d30e4),this['_suggestionToController']['has'](_0x4d30e4)&&this['_destroyController'](_0x4d30e4),_0x205e3d&&this['_updateController'](_0x205e3d['head']);}),this['listenTo'](_0x41e58d,'suggestionChanged',(_0x3109d1,_0x21c0e)=>{this['_updateController'](_0x21c0e);}),this['listenTo'](_0xb87634,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4a082a,'addComment',(_0x3ec982,{threadId:_0x53b929,isFromAdapter:_0x130e19})=>{if(_0x130e19||!_0x41e58d['hasSuggestion'](_0x53b929))return;const _0x3810c5=_0x41e58d['getSuggestion'](_0x53b929);this['_suggestionToController']['get'](_0x3810c5)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2b2e0d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x43cb92;for(const _0x1c4bb5 in _0x2b2e0d){const _0xa4a83b=_0x1c4bb5,_0x3a9d66=_0x2b2e0d[_0xa4a83b];if('trackChangesLicenseKeyValid'==_0x3a9d66||'trackChangesLicenseKeyInvalid'==_0x3a9d66||'trackChangesLicenseKeyExpired'==_0x3a9d66||'trackChangesLicenseKeyDomainLimit'==_0x3a9d66||'trackChangesLicenseKeyNotAllowed'==_0x3a9d66||'trackChangesLicenseKeyEvaluationLimit'==_0x3a9d66||'trackChangesLicenseKeyTrialLimit'==_0x3a9d66||'trackChangesLicenseKeyUsageLimit'==_0x3a9d66){delete _0x2b2e0d[_0xa4a83b],_0x43cb92=_0x3a9d66,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x43cb92&&_0x2b2e0d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x43cb92&&_0x2b2e0d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x43cb92&&_0x2b2e0d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x43cb92&&_0x2b2e0d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x43cb92&&_0x2b2e0d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x43cb92&&_0x2b2e0d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x43cb92&&_0x2b2e0d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4f329f=this['editor']['plugins']['get']('Annotations'),_0x3e1b87=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26dc5e=Array['from'](_0x4f329f['activeAnnotations'],_0x39c71f=>_0x39c71f['innerView'])['filter'](_0x5e03b8=>this['_viewToController']['has'](_0x5e03b8)),_0x219dd8=[];for(const _0x71e90f of _0x26dc5e){const _0x1a9e4b=this['_viewToController']['get'](_0x71e90f)['model']['getAllAdjacentSuggestions']();_0x219dd8['push'](..._0x1a9e4b['reduce']((_0x1796bb,_0x505d7d)=>[..._0x1796bb,..._0x505d7d['getMarkerNames']()],[]));}_0x3e1b87['activeMarkers']=_0x219dd8;}['_addUIComponentsToFactory'](){const _0x377e07=this['editor'],_0x57aacd=_0x377e07['locale'],_0x5b79d2=c(_0x57aacd,'Track\x20changes'),_0x1b1e29=new _0x3b0459([{'type':'switchbutton','model':new _0x5c9da4({'withText':!0x0,'isToggleable':!0x0,'label':_0x5b79d2,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5c9da4({'withText':!0x0,'label':c(_0x57aacd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c9da4({'withText':!0x0,'label':c(_0x57aacd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c9da4({'withText':!0x0,'label':c(_0x57aacd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c9da4({'withText':!0x0,'label':c(_0x57aacd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x377e07['plugins']['has']('TrackChangesPreview')&&_0x1b1e29['addMany']([{'type':'separator'},{'type':'button','model':new _0x5c9da4({'withText':!0x0,'label':c(_0x57aacd,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2a60ef of _0x1b1e29)if(ke(_0x2a60ef)){const _0x3a35d6=_0x377e07['commands']['get'](_0x2a60ef['model']['commandName']);_0x2a60ef['model']['bind']('isOn','isEnabled')['to'](_0x3a35d6,'value','isEnabled');}_0x377e07['ui']['componentFactory']['add']('trackChanges',_0x478db5=>this['_createToolbarButton'](_0x478db5,_0x1b1e29,_0x5b79d2)),_0x377e07['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1b6929=>this['_createMenuBarMenu'](_0x1b6929,_0x1b1e29,_0x5b79d2));}['_createToolbarButton'](_0x286ff7,_0x159e23,_0x33b7f9){const _0x437a6f=_0x199e9a(_0x286ff7,_0x3a2f31),_0x328181=this['editor']['commands']['get']('trackChanges');_0x437a6f['buttonView']['set']({'tooltip':_0x33b7f9,'label':_0x33b7f9,'icon':_0x2ae584}),_0x437a6f['buttonView']['bind']('isOn')['to'](_0x328181,'value'),_0x437a6f['buttonView']['on']('execute',()=>{_0x328181['execute'](),this['editor']['editing']['view']['focus']();}),_0x18bf79(_0x437a6f,_0x159e23,{'role':'menu'});const _0x24a3fa=[];for(const _0x219f29 of _0x159e23)ke(_0x219f29)&&_0x24a3fa['push'](this['editor']['commands']['get'](_0x219f29['model']['commandName']));const _0x4342f8=_0x437a6f['buttonView'];return _0x4342f8['actionView']['unbind']('isEnabled'),_0x4342f8['arrowView']['unbind']('isEnabled'),_0x4342f8['actionView']['bind']('isEnabled')['to'](_0x328181,'isEnabled'),_0x4342f8['arrowView']['bind']('isEnabled')['toMany'](_0x24a3fa,'isEnabled',(..._0x332459)=>_0x332459['some'](_0x104b64=>_0x104b64)),_0x437a6f['on']('execute',_0x42fbd6=>{this['editor']['execute'](_0x42fbd6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x437a6f;}['_createMenuBarMenu'](_0x5bf9e0,_0xeeb750,_0x5223c0){const _0x43f6b9=new _0x46ce6f(_0x5bf9e0),_0x1f8379=this['editor']['commands']['get']('trackChanges');_0x43f6b9['buttonView']['set']({'label':_0x5223c0,'icon':_0x2ae584});const _0x4f88f8=new _0x2c61a8(_0x5bf9e0);for(const _0x7ad2b3 of _0xeeb750){if('separator'==_0x7ad2b3['type']){_0x4f88f8['items']['add'](new _0x2a43f0(_0x5bf9e0));continue;}const _0x5ada7d=new _0x3cbe39(_0x5bf9e0,_0x43f6b9),_0x45ec88=new _0x4d1e41(_0x5bf9e0),_0x1b889e=_0x7ad2b3['model'];_0x45ec88['bind'](...Object['keys'](_0x1b889e))['to'](_0x1b889e),_0x45ec88['delegate']('execute')['to'](_0x43f6b9),_0x45ec88['on']('execute',()=>{this['editor']['execute'](_0x1b889e['commandName']),this['editor']['editing']['view']['focus']();}),_0x5ada7d['children']['add'](_0x45ec88),_0x4f88f8['items']['add'](_0x5ada7d);}return _0x43f6b9['bind']('isEnabled')['to'](_0x1f8379,'isEnabled'),_0x43f6b9['panelView']['children']['add'](_0x4f88f8),_0x43f6b9;}['_initializeController'](_0x45d3ff){const _0x2c99d1=this['editor'],_0x14a226=_0x2c99d1['config'],_0x407ac9=_0x2c99d1['plugins']['get']('Annotations'),_0x5bc348=_0x2c99d1['plugins']['get']('CommentsRepository'),_0x3d343c=_0x2c99d1['plugins']['get']('EditorAnnotations'),_0x373d44=_0x2c99d1['plugins']['get'](_0x6aac30)['me'],_0x1e3d19=_0x14a226['get']('trackChanges')['SuggestionThreadView'],_0x5b7e2d=_0x14a226['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x58d885,CommentThreadInputView:_0x34f91c}=_0x2c99d1['plugins']['get']('CommentsUI');let _0xfca6fd,_0xe33854,_0x9c422a;this['_annotationViews']['has'](_0x45d3ff['id'])?(_0xe33854=this['_annotationViews']['get'](_0x45d3ff['id']),_0xfca6fd=_0xe33854['mainView']):(_0xfca6fd=new _0x1e3d19(_0x2c99d1['locale'],_0x45d3ff,_0x373d44,{'disableComments':this['_disableComments'],'editorConfig':{..._0x14a226['get']('comments.editorConfig'),'licenseKey':_0x14a226['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x14a226['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x14a226['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x14a226['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3f993d(_0x14a226['get']('locale'),_0x2c99d1['locale']),'CommentView':_0x14a226['get']('comments')['CommentView'],'CommentsListView':_0x58d885,'CommentThreadInputView':_0x34f91c,'SuggestionView':_0x5b7e2d}),_0xfca6fd['suggestionView']['acceptButton']['on']('execute',()=>{_0x2c99d1['editing']['view']['focus']();}),_0xfca6fd['suggestionView']['discardButton']['on']('execute',()=>{_0x2c99d1['editing']['view']['focus']();}),_0xe33854=_0x407ac9['createAnnotationView'](this['editor']['locale'],_0xfca6fd),_0xe33854['bind']('isDirty')['to'](_0xfca6fd,'isDirty'),_0xe33854['bind']('length')['to'](_0xfca6fd),_0xe33854['bind']('type')['to'](_0xfca6fd,'type',_0x14ae9d=>'suggestion-'+_0x14ae9d),_0xfca6fd['on']('escape',()=>{_0x9c422a['fire']('escape');}),this['_annotationViews']['set'](_0x45d3ff['id'],_0xe33854));const _0x4e9e9c=_0x5bc348['createCommentThreadController'](_0x45d3ff['commentThread'],_0xfca6fd),_0x423fc2=new pe(_0x2c99d1,_0x45d3ff,_0xfca6fd,_0x4e9e9c),_0x41a6e9=_0x45d3ff['getAllAdjacentSuggestions']()['filter'](_0x46ffab=>_0x46ffab['isInContent']);_0xfca6fd['descriptionParts']=_0x2c99d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x41a6e9),this['_suggestionToController']['set'](_0x45d3ff,_0x423fc2),this['_viewToController']['set'](_0xfca6fd,_0x423fc2),_0x9c422a=_0x407ac9['createAnnotation']({'view':_0xe33854,'target':()=>{const _0x4729da=[],_0x108e7e=_0x45d3ff['getAllAdjacentSuggestions']()['filter'](_0x4e52ba=>_0x4e52ba['isInContent']);for(const _0x3537a4 of _0x108e7e)_0x4729da['push'](..._0x3537a4['getMarkers']());return _0x3aceed(_0x2c99d1['editing'],_0x4729da);},'type':()=>'suggestion-'+_0x423fc2['view']['type']}),_0x5bc348['_bindAnnotationToEditors'](_0xfca6fd,_0x9c422a),_0x407ac9['add'](_0x9c422a),_0x3d343c['registerAnnotation'](_0x9c422a);}['_destroyController'](_0x142795){const _0xbce702=this['editor']['plugins']['get']('CommentsRepository'),_0x11f9b8=this['editor']['plugins']['get']('Annotations'),_0x5a5426=this['_suggestionToController']['get'](_0x142795),_0x32a856=_0x5a5426['view'],_0x8295b7=_0x11f9b8['getByInnerView'](_0x32a856);_0xbce702['_unbindEditors'](_0x32a856),_0x8295b7&&_0x11f9b8['remove'](_0x8295b7),this['_suggestionToController']['delete'](_0x142795),this['_viewToController']['delete'](_0x32a856),_0x5a5426['destroy']();}['_updateController'](_0x239559){if(!_0x239559['isInContent']||!this['_suggestionToController']['has'](_0x239559))return;const _0x42ce51=this['editor']['plugins']['get']('TrackChangesEditing'),_0x268301=this['_suggestionToController']['get'](_0x239559),_0x228236=_0x239559['getAllAdjacentSuggestions']();_0x268301['view']['descriptionParts']=_0x42ce51['descriptionFactory']['getDescriptions'](_0x228236);}['destroy'](){for(const _0x2d2832 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2d2832);for(const _0x58635d of this['_annotationViews']['values']())_0x58635d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2bcaf4){return'model'in _0x2bcaf4;}class k extends _0x505a46{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2463bb){this['editor']['plugins']['get'](p)['adapter']=_0x2463bb;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x366e09){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x366e09);}['getSuggestions']({skipNotAttached:_0x4b271e=!0x1,toJSON:_0x5868cb=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4b271e,'toJSON':_0x5868cb});}['getSuggestion'](_0x50ae8c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x50ae8c);}}const w=['Pagination'];class T extends _0x505a46{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x295bb6=this['editor'];if(_0x295bb6['config']['define']('trackChangesData.editorCreator',_0x148260=>{const _0x5e2f56=_0x295bb6['model']['document']['getRootNames']()['reduce']((_0x27e801,_0x3da7a6)=>(_0x27e801[_0x3da7a6]='',_0x27e801),{});return _0x295bb6['constructor']['create'](_0x5e2f56,_0x148260);}),'function'!=typeof _0x295bb6['config']['get']('trackChangesData')['editorCreator'])throw new _0x31f689('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x10b502){return N(this['editor'],!0x0,_0x10b502);}['getDataWithDiscardedSuggestions'](_0x41cd29){return N(this['editor'],!0x1,_0x41cd29);}}class D extends _0x505a46{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x194f48){function _0x375741(_0x54cc56){return _0x54cc56['map'](_0x21c14c=>String['fromCharCode'](_0x21c14c))['join']('');}super(_0x194f48),this['result']='end',_0x194f48[_0x375741([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x375741([0x76,0x69,0x65,0x77])][_0x375741([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x375741([0x61,0x75,0x74,0x6f]),_0x194f48[_0x375741([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x375741([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x375741([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x375741([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x375741([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(_0x17226e){return void 0x0!==_0x17226e['getRootsAttributes'];}async function N(_0x14b106,_0xed268d,_0x42dfff){const _0x56c7b2=_0x2588bd(_0x14b106,w);_0x56c7b2['plugins']['push'](p,D),_0x56c7b2['rootsAttributes']=Ge(_0x14b106)?_0x14b106['getRootsAttributes']():void 0x0;const _0x2c20a9=document['createDocumentFragment'](),_0x579d20=_0x14b106['config']['get']('trackChangesData')['editorCreator'],_0x57f9b1=await _0x579d20(_0x56c7b2,()=>function(_0x364720){const _0x3932da=document['createElement']('div');return _0x364720['appendChild'](_0x3932da),_0x3932da;}(_0x2c20a9));!function(_0x1a71c9,_0xb91ef7){const _0x27f9a8=_0x1a71c9['model']['document']['getRootNames']()['reduce']((_0x499267,_0x2c107b)=>(_0x499267[_0x2c107b]=_0x1a71c9['data']['get']({'rootName':_0x2c107b}),_0x499267),{}),_0x188349=_0x1a71c9['plugins']['get']('Users')['users']['map'](_0xf61cca=>({'id':_0xf61cca['id'],'name':_0xf61cca['name']})),_0x4d3af0=_0x1a71c9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x20b4da=_0x1a71c9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1f4eac=_0xb91ef7['plugins']['get']('Users'),_0x5d0703=_0xb91ef7['plugins']['get']('TrackChangesEditing'),_0x362dab=_0xb91ef7['plugins']['get']('CommentsRepository');for(const _0x4eea82 of _0x362dab['getCommentThreads']())_0x4eea82['remove']();for(const _0x331cd3 of _0x188349)_0x1f4eac['getUser'](_0x331cd3['id'])||_0x1f4eac['addUser'](_0x331cd3);_0x1f4eac['me']||_0x1f4eac['useAnonymousUser']();for(const _0x49d5c2 of _0x20b4da)_0x362dab['addCommentThread'](_0x49d5c2);for(const _0x26f99c of _0x4d3af0)_0x5d0703['addSuggestionData'](_0x26f99c);_0xb91ef7['data']['set'](_0x27f9a8);}(_0x14b106,_0x57f9b1),_0x57f9b1['execute'](_0xed268d?'acceptAllSuggestions':'discardAllSuggestions');const _0x50d91e=Ge(_0x57f9b1)?_0x57f9b1['getFullData'](_0x42dfff):_0x57f9b1['data']['get'](_0x42dfff);return await _0x57f9b1['destroy'](),_0x50d91e;}class Me extends _0x17edf8{['options'];constructor(_0x13dcce,_0x14d7ce){super(_0x13dcce),this['options']=_0x14d7ce,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'](_0x6b500a,_0x49e7c0){if(!this['element'])return;const _0x245fe0=[];for(const [_0x1dc0b8,_0x1fec63]of _0x6b500a){const _0xc35de9=document['createElement']('div');_0xc35de9['setAttribute']('data-ck-root-name',_0x1dc0b8),_0xc35de9['className']=_0x1fec63['classes']+'\x20ck-track-changes-preview__root-container',_0xc35de9['innerHTML']=_0x1fec63['content'],_0x245fe0['push'](_0xc35de9);}_0x49e7c0(this['element'],_0x245fe0),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x33ca54{constructor(_0x1a169e){super(_0x1a169e),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x9a1790=this['editor'],_0x240401=_0x9a1790['locale'],_0x1f02bd=_0x9a1790['plugins']['get']('Dialog');let _0x468e68;const _0x27ea0c=function(_0xf9a61f){const _0x52cf1e={};if('editables'in _0xf9a61f['ui']['view']){for(const [_0x1652ca,_0xa8b514]of Object['entries'](_0xf9a61f['ui']['view']['editables']))_0x52cf1e[_0x1652ca]=_0xa8b514['element'];}else _0x52cf1e[_0xf9a61f['model']['document']['getRootNames']()[0x0]]=_0xf9a61f['ui']['view']['editable']['element'];return _0x52cf1e;}(_0x9a1790),_0x5a7fad=function(_0x481141){let _0x5d1987=0x0;for(const _0x19d626 of Object['values'](_0x481141))_0x5d1987=Math['max'](_0x5d1987,_0x19d626['getBoundingClientRect']()['width']);let _0x5a4f4a=0x0;for(const _0x3ecf96 of Object['values'](_0x481141))_0x5a4f4a+=_0x3ecf96['getBoundingClientRect']()['height'];const _0x332480=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3e24ee=Math['min'](_0x5a4f4a,_0x332480);return{'width':_0x5d1987,'height':_0x3e24ee};}(_0x27ea0c);_0x1f02bd['show']({'id':'finalContentPreview','title':c(_0x240401,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x240401,{'dialogRects':_0x5a7fad}),'onHide':()=>{_0x468e68['detachFromDom']();},'onShow':()=>{_0x9a1790['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xc0a709=>{const _0x557893=this['_standarizeRootsData'](_0xc0a709,_0x9a1790,_0x27ea0c);_0x1f02bd['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x557893,_0x9a1790['config']['get']('trackChanges.preview.renderFunction'));}),_0x468e68=new _0x146140(_0x240401,[_0x1f02bd['view']]),_0x468e68['attachToDom'](),_0x468e68['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x9a1790['once']('destroy',()=>{_0x468e68['detachFromDom']();});const _0x387ef2=_0x1f02bd['view']['headerView']['class'];_0x1f02bd['view']['headerView']['class']=_0x387ef2?_0x387ef2+'\x20ck-reset_all':'ck-reset_all',_0x1f02bd['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1f02bd['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x445c66=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x59c697=_0x445c66['previewMode'],_0x48dbe0={};if('$labels'===_0x59c697){for(const _0x43af8c of _0x445c66['getMergeFieldsIds']())_0x48dbe0[_0x43af8c]=_0x445c66['getLabel'](_0x43af8c)||_0x43af8c;}else{const _0x4fa585='$defaultValues'===_0x59c697?_0x445c66['getDefaultValues']():_0x445c66['getDataSetValues'](_0x59c697,!0x0);for(const _0x350098 of Object['entries'](_0x4fa585)){const [_0x53b7a6,_0x2b9817]=_0x350098;_0x48dbe0[_0x53b7a6]=null!==_0x2b9817?_0x2b9817:_0x445c66['getLabel'](_0x53b7a6)||_0x53b7a6;}}return{'mergeFieldsData':_0x48dbe0};}['_standarizeRootsData'](_0x34ae3c,_0x5c2628,_0x14200d){let _0x4e1691;if('string'==typeof _0x34ae3c){const _0x1d314a=_0x5c2628['model']['document']['getRootNames']()[0x0];_0x4e1691={[_0x1d314a]:_0x34ae3c};}else _0x4e1691=_0x34ae3c;const _0x383d97=this['_fixMediaEmbeds'](_0x4e1691,_0x5c2628),_0x1601f5=function(_0x2187d5,_0x54cb6a){for(const [_0x12e610,_0x24d29b]of _0x2187d5)_0x24d29b['classes']=_0x54cb6a[_0x12e610]['classList']['value']['replace']('ck-focused','');return _0x2187d5;}(this['_sortRoots'](_0x5c2628)['reduce']((_0x4114b0,_0x2058ef)=>(_0x4114b0['push']([_0x2058ef,{'content':_0x383d97[_0x2058ef],'classes':''}]),_0x4114b0),[]),_0x14200d);return _0x1601f5;}['_fixMediaEmbeds'](_0xad866,_0x420c80){if(!_0x420c80['plugins']['has']('MediaEmbedEditing'))return _0xad866;const _0x1bbe3f=_0x420c80['plugins']['get']('MediaEmbedEditing');for(const [_0x35b3c5,_0x311fd5]of Object['entries'](_0xad866)){const _0x1661e4=document['createElement']('div');_0x1661e4['innerHTML']=_0x311fd5,(_0x1661e4['querySelectorAll']('figure.media')['forEach'](_0x3a0946=>{const _0x5b1ea3=_0x3a0946['querySelector']('oembed');if(_0x5b1ea3){const _0x4a313a=_0x5b1ea3['getAttribute']('url');if(_0x4a313a){const _0x11ebec=_0x1bbe3f['registry']['getMediaViewElement'](new _0x272df2(_0x420c80['editing']['view']['document']),_0x4a313a,{'elementName':'','renderForEditingView':!0x0}),_0x2d8a99=document['createElement']('div');_0x2d8a99['classList']['add']('ck-media__wrapper'),_0x11ebec['render'](_0x2d8a99,_0x420c80['editing']['view']['domConverter']),_0x5b1ea3['replaceWith'](_0x2d8a99);}}}),_0xad866[_0x35b3c5]=_0x1661e4['innerHTML']);}return _0xad866;}['_sortRoots'](_0x18787e){if(!function(_0xfe9858){return void 0x0!==_0xfe9858['getRootsAttributes'];}(_0x18787e))return _0x18787e['model']['document']['getRootNames']();const _0x1597e6=[],_0x5d958e=new Map();for(const _0x397cb5 of _0x18787e['model']['document']['getRootNames']()){const _0x1cb806=_0x18787e['editing']['view']['getDomRoot'](_0x397cb5)['getClientRects']()['item'](0x0);_0x1597e6['push'](_0x397cb5),_0x5d958e['set'](_0x397cb5,_0x1cb806);}return _0x1597e6['sort']((_0x317193,_0x32deb1)=>{const _0x1e76e6=_0x5d958e['get'](_0x317193),_0x27ff2a=_0x5d958e['get'](_0x32deb1);return _0x1e76e6['y']-_0x27ff2a['y']||_0x1e76e6['x']-_0x27ff2a['x'];}),_0x1597e6;}}class te extends _0x505a46{static get['requires'](){return[T,_0x10d0d8];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x919656){super(_0x919656),_0x919656['commands']['add']('previewFinalContent',new re(this['editor'])),_0x919656['config']['define']('trackChanges.preview.renderFunction',(_0x3091d7,_0x4c37b1)=>{for(const _0x4fe4d5 of _0x4c37b1)_0x3091d7['appendChild'](_0x4fe4d5);});}}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 _0x59c57c,Plugin as _0x17eefb,PendingActions as _0x5f1a7d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x48441a,ObservableMixin as _0x1fbd50,uid as _0x3dca8a,priorities as _0x5cdf8d,insertToPriorityArray as _0x3d9bdf,logWarning as _0x544f2e,getEnvKeystrokeText as _0x36ae38,FocusTracker as _0x3f3cf8,KeystrokeHandler as _0x1f9107,Collection as _0x264ef9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x527599,IconCancel as _0x263a08,IconTrackChanges as _0x4d1a0a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x453dab,View as _0x1a6e96,ViewCollection as _0x4de3f6,FocusCycler as _0x198d0b,ViewModel as _0x4c5dd4,createDropdown as _0x4aaf63,SplitButtonView as _0x23b848,addListToDropdown as _0x8e5379,MenuBarMenuView as _0x6843f8,MenuBarMenuListView as _0x4e2026,ListSeparatorView as _0x96089e,MenuBarMenuListItemView as _0x434b85,MenuBarMenuListItemButtonView as _0x423162,BodyCollection as _0x37fcb3,Dialog as _0x272d1e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2ac9ba,hashObject as _0x5eccbe,surroundingMarkersDetector as _0x61b4dc,FOCUS_ANNOTATION_KEYSTROKE as _0x5d47d0,AriaDescriptionView as _0x3e258f,setupThreadKeyboardNavigation as _0x2a2bcb,trimHtml as ti,UserView as _0x3f8b3d,LateFocusButtonView as _0x36cd33,getDateTimeFormatter as _0x8b50c2,getAllMarkersDomElementsSorted as _0x75ab9c,sanitizeEditorConfig as _0x5a0816}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2188e7,LiveRange as _0x335d44,LivePosition as _0x392a8a,DowncastWriter as _0x4045ce}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5156b8,toWidget as _0x585b2a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x32c11,set as _0x549cec,isEqual as _0x45e6b3,unset as _0x32e257,omit as Ft}from'es-toolkit/compat';import{Delete as _0x448af7,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5bcc5f}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3f8d86}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x59c57c{['_enabledCommands'];constructor(_0x51c79d,_0x152818){super(_0x51c79d),this['_enabledCommands']=_0x152818,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 _0x4d0822 of this['editor']['commands']['commands']())_0x4d0822['affectsData']&&!this['_enabledCommands']['has'](_0x4d0822)&&_0x4d0822['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x32a243 of this['editor']['commands']['commands']())_0x32a243['affectsData']&&!this['_enabledCommands']['has'](_0x32a243)&&_0x32a243['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x59c57c{['_suggestions'];constructor(_0x379931,_0x57aa0c){super(_0x379931),this['_suggestions']=_0x57aa0c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1218ee){const _0x53122c=this['_suggestions']['get'](_0x1218ee);if(!_0x53122c)throw new _0x48441a('track-changes-accept-suggestion-not-found',this);const _0x26c242=_0x53122c['getRanges']();this['editor']['model']['canEditAt'](_0x26c242)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x53122c);}}class R extends _0x59c57c{['_suggestions'];constructor(_0x5555a4,_0x2e062c){super(_0x5555a4),this['_suggestions']=_0x2e062c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x31bf3f){const _0x471e0e=this['_suggestions']['get'](_0x31bf3f);if(!_0x471e0e)throw new _0x48441a('track-changes-discard-suggestion-not-found',this);const _0x10bc00=_0x471e0e['getRanges']();this['editor']['model']['canEditAt'](_0x10bc00)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x471e0e);}}function ls(_0x55e842,_0xa4a91a){let _0x17e609='';return _0x17e609+=_0x55e842['split']('*')['map']((_0x1aea2b,_0x53ea83)=>_0x53ea83%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x1aea2b)+'</span>':nn(_0x1aea2b))['join'](''),_0xa4a91a&&(_0x17e609+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xa4a91a['value']+'\x22\x20title=\x22'+_0xa4a91a['title']+'\x22></span>'),_0x17e609;}function nn(_0x575177){const _0x378c0a=document['createElement']('span');return _0x378c0a['innerText']=_0x575177,_0x378c0a['innerHTML'];}function ts(_0x4ee37a){return _0x4ee37a['sort']((_0x36d195,_0x2c8665)=>'deletion'==_0x36d195['type']&&'deletion'!=_0x2c8665['type']?-0x1:'deletion'!=_0x36d195['type']&&'deletion'==_0x2c8665['type']?0x1:0x0);}function to(_0x1d50d4,_0x3d527c){let _0x2201be,_0x34b43c=0x0;const _0x2ce4b0=[],_0xdd51da=_0x3d527c['schema'];for(;_0x34b43c<_0x1d50d4['length'];){const _0x36d871=_0x1d50d4[_0x34b43c],_0x54a0e5=_0x1d50d4[_0x34b43c+0x1];_0x2201be||(_0x2201be=_0x3d527c['createPositionBefore'](_0x36d871)),on(_0x3d527c,_0x36d871,_0x54a0e5)||(_0x2ce4b0['push'](_0x3d527c['createRange'](_0x2201be,_0xdd51da['isObject'](_0x36d871)?_0x3d527c['createPositionAfter'](_0x36d871):_0x3d527c['createPositionAt'](_0x36d871,'end'))),_0x2201be=null),_0x34b43c++;}return _0x2ce4b0;}function on(_0x556f91,_0x4982a8,_0xf0863f){if(!_0xf0863f)return!0x1;const _0x543474=_0x556f91['createPositionAfter'](_0x4982a8),_0x4947ec=_0x556f91['createPositionBefore'](_0xf0863f);return _0x543474['isTouching'](_0x4947ec);}function rs(_0x4a33c0,_0x183be0,_0x1b8ce7){for(;_0x1b8ce7['length'];){const _0x5165ca=_0x1b8ce7['splice'](0x0,0x64);_0x4a33c0['change'](()=>{for(const _0x12bae0 of _0x5165ca)_0x12bae0['isInContent']&&_0x183be0['execute'](_0x12bae0['id']);});}}class x extends _0x59c57c{['_command'];['_suggestions'];constructor(_0x17ddd4,_0x87483,_0x11a6dc){super(_0x17ddd4),this['_command']=_0x87483,this['_suggestions']=_0x11a6dc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x28727c=Array['from'](this['_suggestions']['values']())['some'](_0xf28b3d=>_0xf28b3d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x28727c;}['execute'](){const _0x4f55fb=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2cb8c9 of _0x4f55fb){const _0xb2d801=_0x2cb8c9['getRanges']();if(!this['editor']['model']['canEditAt'](_0xb2d801))return;}rs(this['editor']['model'],this['_command'],_0x4f55fb);}}class E extends _0x59c57c{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4e2daf,_0x5278fc,_0x3f4ed7){super(_0x4e2daf),this['_command']=_0x5278fc,this['_suggestions']=_0x3f4ed7,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4ae3d8=this['editor']['model']['document']['selection'],_0x56af96=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x339874,_0x58ab8f){const _0x17a61c=Array['from'](_0x339874['getRanges']()),_0x122e50=new Set();for(const _0x2ef84b of _0x58ab8f)if(_0x2ef84b['isInContent']){for(const _0x26e35c of _0x17a61c)for(const _0x28099e of _0x2ef84b['getRanges']())(_0x26e35c['isIntersecting'](_0x28099e)||_0x339874['isCollapsed']&&!_0x2ef84b['isMultiRange']&&_0x2ef84b['next']&&_0x28099e['end']['isTouching'](_0x26e35c['start']))&&_0x122e50['add'](_0x2ef84b);}return _0x122e50;}(_0x4ae3d8,_0x56af96),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5f3d77=ts(Array['from'](this['_selectedSuggestions']));for(const _0x5d3c39 of _0x5f3d77){const _0x28fa82=_0x5d3c39['getRanges']();if(!this['editor']['model']['canEditAt'](_0x28fa82))return;}rs(this['editor']['model'],this['_command'],_0x5f3d77);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x1fbd50(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x126752,_0x39fd61){super(),this['id']=_0x39fd61['id'],this['type']=_0x39fd61['type'],this['subType']=_0x39fd61['subType']||null,this['author']=_0x39fd61['author'],this['creator']=_0x39fd61['creator']||_0x39fd61['author'],this['isExternal']=Boolean(_0x39fd61['attributes']&&_0x39fd61['attributes']['@external']),this['data']=null,this['_model']=_0x126752,this['_onAccept']=_0x39fd61['onAccept'],this['_onDiscard']=_0x39fd61['onDiscard'],this['_onAttributesChange']=_0x39fd61['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x39fd61['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 _0x2f09c2=this;for(;_0x2f09c2['previous'];)_0x2f09c2=_0x2f09c2['previous'];return _0x2f09c2;}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'](_0x5cbeb5){this['_markerNames']['add'](_0x5cbeb5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x28e470=>this['_model']['markers']['get'](_0x28e470))['filter'](_0x51059f=>_0x51059f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1868ea=>{for(const _0x504883 of this['getMarkers']())_0x1868ea['removeMarker'](_0x504883);}),this['_markerNames']['clear']();}['removeMarker'](_0x1d96b7){this['_model']['change'](_0x47f5aa=>{_0x47f5aa['removeMarker'](_0x1d96b7);}),this['_markerNames']['delete'](_0x1d96b7);}['addRange'](_0x40a097){const _0x51b304='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x51b304),this['_model']['change'](_0x2c42df=>{_0x2c42df['addMarker'](_0x51b304,{'range':_0x40a097,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x32a5d4){for(const _0x4a7535 of this['getRanges']())if(_0x4a7535['isIntersecting'](_0x32a5d4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x55c8cf=>_0x55c8cf['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5b47bc,_0x4c6832)=>[..._0x5b47bc,..._0x4c6832['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x94e85e=this['getRanges']();if(0x1!=_0x94e85e['length'])return null;const _0x5c6f4f=_0x94e85e[0x0],_0x42b281=_0x5c6f4f['start']['nodeAfter'],_0x5d269c=_0x5c6f4f['end']['nodeBefore'];return _0x42b281 instanceof _0x2188e7?_0x42b281!=_0x5d269c?null:_0x42b281: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 _0x513dbc=[];let _0x34771b=this['head'];for(;_0x34771b;)_0x513dbc['push'](_0x34771b),_0x34771b=_0x34771b['next'];return _0x513dbc;}['setAttribute'](_0xc2080c,_0x133126){const _0x1408ea=_0x32c11(this['attributes']);_0x549cec(_0x1408ea,_0xc2080c,_0x133126),_0x45e6b3(_0x1408ea,this['attributes'])||(this['attributes']=_0x1408ea,this['_onAttributesChange'](_0x1408ea));}['removeAttribute'](_0x30bc70){const _0x2bd390=_0x32c11(this['attributes']);_0x32e257(_0x2bd390,_0x30bc70),_0x45e6b3(_0x2bd390,this['attributes'])||(this['attributes']=_0x2bd390,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 _0x3dca8a()['substr'](0x1,0x5);}}function c(_0x2f3778,_0x211684,_0x465bf1){const _0xc15c25=_0x2f3778['t'],t=_0x2f3778['t'];switch(_0x211684){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',_0x465bf1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x465bf1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x465bf1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x465bf1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x465bf1);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',_0x465bf1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x465bf1);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',_0x465bf1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x465bf1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x465bf1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x465bf1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x465bf1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x465bf1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x465bf1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x465bf1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x465bf1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x465bf1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x465bf1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x465bf1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x465bf1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x465bf1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x465bf1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x465bf1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x465bf1);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x465bf1);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'},_0x465bf1);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x465bf1);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x465bf1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x465bf1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x465bf1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x465bf1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x465bf1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x465bf1);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'},_0x465bf1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x465bf1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x465bf1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x465bf1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x465bf1);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'},_0x465bf1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x465bf1);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'},_0x465bf1);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'},_0x465bf1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x465bf1);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'},_0x465bf1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x465bf1);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'},_0x465bf1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x465bf1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x465bf1);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'},_0x465bf1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x465bf1);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 _0xc15c25({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x465bf1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xc15c25({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x465bf1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x465bf1);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'},_0x465bf1);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'},_0x465bf1);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'},_0x465bf1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x211684;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x555f71,_0x16d068){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x555f71,this['_locale']=_0x16d068;}['getDescriptions'](_0x17c086){const _0x36a221=[],_0x2423b9=new Set(),_0xb06e47=new Set();for(let _0x5094ee=0x0;_0x5094ee<_0x17c086['length'];_0x5094ee++){const _0x5c5514=_0x17c086[_0x5094ee];if(!_0x5c5514['isInContent'])continue;const _0x4079c5=this['_handleCustomCallbackDescription'](_0x5c5514);if(_0x4079c5){if(null!=_0x5c5514['subType']){if(_0x2423b9['has'](_0x5c5514['subType']))continue;_0x2423b9['add'](_0x5c5514['subType']);}_0x36a221['push'](_0x4079c5);}else{if('attribute'!=_0x5c5514['type'])'insertion'!=_0x5c5514['type']&&'deletion'!=_0x5c5514['type']||this['_handleInsertRemoveSuggestionDescription'](_0x36a221,_0x5c5514,_0x17c086[_0x5094ee+0x1]);else{const _0x4fb21f=_0x5c5514['data']['key'];if(_0xb06e47['has'](_0x4fb21f))continue;_0xb06e47['add'](_0x5c5514['data']['key']),_0x4fb21f==u?this['_handleRenameSuggestionDescription'](_0x36a221,_0x5c5514):this['_handleAttributeSuggestionDescription'](_0x36a221,_0x5c5514);}}}return this['_resolveDescriptionItems'](_0x36a221);}['registerDescriptionCallback'](_0x215d87){this['_customCallbacks']['push'](_0x215d87);}['registerElementLabel'](_0x4a0da9,_0x35f1aa,_0x2eb0d5=_0x5cdf8d['normal']){'function'==typeof _0x4a0da9?_0x3d9bdf(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4a0da9,'label':_0x35f1aa,'priority':_0x2eb0d5}):this['_itemLabels']['set'](_0x4a0da9,_0x35f1aa);}['registerAttributeLabel'](_0x515cc6,_0x46becd){this['_attributeLabels']['set'](_0x515cc6,_0x46becd);}['getItemLabel'](_0x13b688,_0x428093=0x1){let _0x541665;for(const _0x3e2caf of this['_itemLabelsCallbacks'])if(_0x3e2caf['matchingCallback'](_0x13b688)){_0x541665=_0x3e2caf['label'];break;}return _0x541665||(_0x541665=this['_itemLabels']['get'](_0x13b688['name'])),_0x541665?_0x541665(_0x428093):0x1!==_0x428093?_0x428093+'\x20'+_0x13b688['name']+'s':''+_0x13b688['name'];}['_addDescriptionItems'](_0x4eb698,_0x5bc8ef){const _0x10cdac=_0x5bc8ef['getFirstRange']()['getWalker'](),_0x1d526f='insertion'==_0x5bc8ef['type']?'add':'remove';for(const _0x395efc of _0x10cdac){const _0x315369=_0x395efc['item'],_0x4afc61=_0x4eb698[_0x4eb698['length']-0x1];if(_0x315369['is']('$textProxy'))_0x4afc61&&_0x4afc61['type']['indexOf']('Container')>-0x1&&_0x4eb698['pop'](),_0x4afc61&&'text'==_0x4afc61['type']?_0x4afc61[_0x1d526f]+=_0x315369['data']:_0x4eb698['push']({'type':'text','add':'add'==_0x1d526f?_0x315369['data']:'','remove':'remove'==_0x1d526f?_0x315369['data']:''});else{if(this['_schema']['isObject'](_0x315369)){const _0x3f3d80=_0x315369;if(_0x4afc61&&_0x4afc61['type']['indexOf']('Container')>-0x1&&_0x4eb698['pop'](),'elementEnd'==_0x395efc['type'])continue;_0x4afc61&&_0x4afc61['type']==_0x1d526f+'Object'&&_0x4afc61['element']['name']==_0x3f3d80['name']?_0x4afc61['quantity']++:_0x4eb698['push']({'type':_0x1d526f+'Object','element':_0x3f3d80,'quantity':0x1}),_0x10cdac['skip'](_0x441a64=>!('elementEnd'==_0x441a64['type']&&_0x441a64['item']==_0x315369));}else{if(this['_schema']['checkChild'](_0x315369,'$text')||_0x315369['is']('element','softBreak')){const _0x428cf9=_0x315369;if('add'==_0x1d526f&&'elementStart'==_0x395efc['type']||'remove'==_0x1d526f&&'elementEnd'==_0x395efc['type'])continue;if(_0x4afc61&&-0x1==_0x4afc61['type']['indexOf']('Container')){'text'==_0x4afc61['type']&&(_0x4afc61[_0x1d526f]+='\x0a');continue;}let _0x473633;if(_0x473633='add'==_0x1d526f?_0x428cf9['nextSibling']&&!this['_schema']['isObject'](_0x428cf9['nextSibling'])?_0x428cf9['nextSibling']:null:_0x428cf9['previousSibling']&&!this['_schema']['isObject'](_0x428cf9['previousSibling'])?_0x428cf9['previousSibling']:null,_0x428cf9['isEmpty']||_0x473633&&_0x473633['isEmpty']){const _0x1b2bbe=_0x473633&&_0x473633['isEmpty']?_0x473633:_0x428cf9;_0x4afc61&&_0x4afc61['type']==_0x1d526f+'EmptyContainer'&&_0x4afc61['element']['name']==_0x1b2bbe['name']?_0x4afc61['quantity']++:_0x4eb698['push']({'type':_0x1d526f+'EmptyContainer','element':_0x1b2bbe,'quantity':0x1});}else _0x4eb698['push']({'type':_0x1d526f+'Container','element':_0x428cf9});}}}}}['_resolveDescriptionItems'](_0x35ba60){const _0x3dbcc2=this['_locale'],_0x266604=[],_0x6e46c8=[],_0x31929a=[];for(const _0x3efb99 of _0x35ba60)switch(_0x3efb99['type']){case'text':if(_0x3efb99['add']=_0x3efb99['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3efb99['remove']=_0x3efb99['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3efb99['add']&&''!=_0x3efb99['remove']){_0x266604['push']({'type':'replace','content':c(_0x3dbcc2,'REPLACE_TEXT',['\x22'+_0x3efb99['remove']+'\x22','\x22'+_0x3efb99['add']+'\x22'])});continue;}if(null!=_0x3efb99['add']['match'](/^ +$/)){_0x266604['push']({'type':'insertion','content':c(_0x3dbcc2,'*Insert:*\x20%0',c(_0x3dbcc2,'ELEMENT_SPACE',_0x3efb99['add']['length']))});continue;}if(null!=_0x3efb99['remove']['match'](/^ +$/)){_0x266604['push']({'type':'deletion','content':c(_0x3dbcc2,'*Remove:*\x20%0',c(_0x3dbcc2,'ELEMENT_SPACE',_0x3efb99['remove']['length']))});continue;}if(''!=_0x3efb99['add']){_0x266604['push']({'type':'insertion','content':c(_0x3dbcc2,'*Insert:*\x20%0','\x22'+_0x3efb99['add']+'\x22')});continue;}_0x266604['push']({'type':'deletion','content':c(_0x3dbcc2,'*Remove:*\x20%0','\x22'+_0x3efb99['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x266604['push']({'type':'insertion','content':c(_0x3dbcc2,'*Insert:*\x20%0',this['getItemLabel'](_0x3efb99['element'],_0x3efb99['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x266604['push']({'type':'deletion','content':c(_0x3dbcc2,'*Remove:*\x20%0',this['getItemLabel'](_0x3efb99['element'],_0x3efb99['quantity']))});continue;case'addContainer':_0x266604['push']({'type':'insertion','content':c(_0x3dbcc2,'*Split:*\x20%0',this['getItemLabel'](_0x3efb99['element'],_0x3efb99['quantity']))});continue;case'removeContainer':_0x266604['push']({'type':'deletion','content':c(_0x3dbcc2,'*Merge:*\x20%0',this['getItemLabel'](_0x3efb99['element'],_0x3efb99['quantity']))});continue;case'addFormat':_0x6e46c8['push'](_0x3efb99['key']);continue;case'removeFormat':_0x31929a['push'](_0x3efb99['key']);continue;default:_0x266604['push'](_0x3efb99);}if(_0x6e46c8['length']){const _0x158cdf=_0x6e46c8['map'](_0x5c5d84=>this['_attributeLabels']['has'](_0x5c5d84)?this['_attributeLabels']['get'](_0x5c5d84):_0x5c5d84)['join'](',\x20');_0x266604['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x158cdf)});}if(_0x31929a['length']){const _0x2fb037=_0x31929a['map'](_0x3d4eb9=>this['_attributeLabels']['has'](_0x3d4eb9)?this['_attributeLabels']['get'](_0x3d4eb9):_0x3d4eb9)['join'](',\x20');_0x266604['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x2fb037)});}return _0x266604;}['_handleCustomCallbackDescription'](_0x364d1e){for(const _0x21c050 of this['_customCallbacks']){const _0x22df83=_0x21c050(_0x364d1e);if(_0x22df83&&'type'in _0x22df83)return _0x22df83;}}['_handleAttributeSuggestionDescription'](_0x2341a5,_0x2e09ea){const _0x2837af=_0x2e09ea['data'],_0x42a82a=void 0x0===_0x2837af['newValue']?'removeFormat':'addFormat';_0x2341a5['push']({'type':_0x42a82a,'key':_0x2837af['key']});}['_handleRenameSuggestionDescription'](_0x13225f,_0x3c5aa1){_0x13225f['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3c5aa1['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x38a9e3,_0x235afe,_0x2bcc92){if(this['_addDescriptionItems'](_0x38a9e3,_0x235afe),_0x2bcc92&&_0x2bcc92['getFirstRange']()&&!_0x235afe['getFirstRange']()['end']['isEqual'](_0x2bcc92['getFirstRange']()['start'])){const _0x32fd3f=_0x38a9e3[_0x38a9e3['length']-0x1],_0x1f4b55='insertion'==_0x235afe['type']?'add':'remove';_0x32fd3f&&'text'==_0x32fd3f['type']&&(_0x32fd3f[_0x1f4b55]+='\x0a');}}}class U extends _0x17eefb{['afterInit'](){const _0x474570=this['editor'],_0x5dd8bc=_0x474570['plugins']['get']('TrackChangesEditing');_0x474570['commands']['get']('showAIAssistant')&&_0x5dd8bc['enableCommand']('showAIAssistant');}}class V extends _0x17eefb{['afterInit'](){const _0x27f064=this['editor'],_0x4a4055=_0x27f064['locale'];if(!_0x27f064['plugins']['has']('AlignmentEditing'))return;const _0xb39b5f=_0x27f064['plugins']['get']('TrackChangesEditing');_0xb39b5f['enableDefaultAttributesIntegration']('alignment'),_0xb39b5f['registerBlockAttribute']('alignment'),_0xb39b5f['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x4a4055,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35925c=this['editor'],_0x146a3e=_0x35925c['locale'];_0x35925c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11783e=>{if('formatBlock'!=_0x11783e['type'])return;const {data:_0x3295e6}=_0x11783e;if(_0x3295e6&&'alignment'==_0x3295e6['commandName']){const _0x1375ae=_0x3295e6['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x146a3e,'*Format:*\x20%0',function(_0x353d11){switch(_0x353d11){case'left':return c(_0x146a3e,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x146a3e,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x146a3e,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x146a3e,'FORMAT_JUSTIFY_TEXT');}}(_0x1375ae))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x17eefb{['afterInit'](){const _0x598c88=this['editor'],_0x570111=_0x598c88['plugins']['get']('TrackChangesEditing'),_0x57473e=_0x598c88['locale'];for(const _0x29e247 of Zt){if(!_0x598c88['plugins']['has'](_0x29e247))continue;const _0x283bb2=_0x29e247['slice'](0x0,-0x7)['toLowerCase'](),_0x578a90='FORMAT_'+_0x283bb2['toUpperCase']();_0x570111['enableDefaultAttributesIntegration'](_0x283bb2),_0x570111['registerInlineAttribute'](_0x283bb2),_0x570111['descriptionFactory']['registerAttributeLabel'](_0x283bb2,c(_0x57473e,_0x578a90));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xca3767=this['editor'],_0x3cdf17=_0xca3767['locale'],_0x552805=_0xca3767['plugins']['get']('TrackChangesEditing');function _0x5c0c8f(_0xb673e5,_0x5d4a89){_0x552805['descriptionFactory']['registerDescriptionCallback'](_0x12a78a=>{if('formatInline'!=_0x12a78a['type'])return;const {data:_0x4c9d28}=_0x12a78a;return _0x4c9d28&&_0x4c9d28['commandName']===_0xb673e5?_0x4c9d28['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3cdf17,'*Format:*\x20%0',_0x5d4a89)}:{'type':'format','content':c(_0x3cdf17,'*Remove\x20format:*\x20%0',_0x5d4a89)}:void 0x0;});}_0x5c0c8f('bold',c(_0x3cdf17,'FORMAT_BOLD')),_0x5c0c8f('italic',c(_0x3cdf17,'FORMAT_ITALIC')),_0x5c0c8f('underline',c(_0x3cdf17,'FORMAT_UNDERLINE')),_0x5c0c8f('code',c(_0x3cdf17,'FORMAT_CODE')),_0x5c0c8f('strikethrough',c(_0x3cdf17,'FORMAT_STRIKETHROUGH')),_0x5c0c8f('subscript',c(_0x3cdf17,'FORMAT_SUBSCRIPT')),_0x5c0c8f('superscript',c(_0x3cdf17,'FORMAT_SUPERSCRIPT'));}}class G extends _0x17eefb{['afterInit'](){const _0x19e17e=this['editor'],_0x210b4b=_0x19e17e['locale'];if(!_0x19e17e['plugins']['has']('BlockQuoteEditing'))return;const _0x5dbe58=_0x19e17e['plugins']['get']('TrackChangesEditing'),_0x4b9fd2=this['editor']['commands']['get']('blockQuote');_0x5dbe58['enableCommand']('blockQuote',(_0x10a179,_0x116566={})=>{const _0x1312c3=this['editor']['model']['document']['selection'],_0x3ab27d=_0x116566&&void 0x0!==_0x116566['forceValue']?_0x116566['forceValue']:!_0x4b9fd2['value'];let _0x1159f1=[];if(_0x3ab27d){const _0x480c05=Array['from'](_0x1312c3['getSelectedBlocks']())['filter'](_0x183815=>oo(_0x183815)||function(_0x951fd9,_0x2c15f1){const _0x2d5edd=_0x2c15f1['checkChild'](_0x951fd9['parent'],'blockQuote'),_0x2cf8f4=_0x2c15f1['checkChild'](['$root','blockQuote'],_0x951fd9);return _0x2d5edd&&_0x2cf8f4;}(_0x183815,this['editor']['model']['schema']));_0x1159f1=to(_0x480c05,_0x19e17e['model']);}else{const _0x11f45e=Array['from'](_0x1312c3['getSelectedBlocks']())['filter'](_0x1ed3dc=>oo(_0x1ed3dc));_0x1159f1=to(_0x11f45e,_0x19e17e['model']);}_0x19e17e['model']['change'](()=>{for(const _0x329f85 of _0x1159f1)_0x5dbe58['markBlockFormat'](_0x329f85,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3ab27d}]});});}),_0x5dbe58['descriptionFactory']['registerDescriptionCallback'](_0x1d7054=>{const {data:_0x388788}=_0x1d7054;if(_0x388788&&'blockQuote'==_0x388788['commandName']){const _0xa45466=c(_0x210b4b,'ELEMENT_BLOCK_QUOTE');return _0x388788['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x210b4b,'*Set\x20format:*\x20%0',_0xa45466)}:{'type':'format','content':c(_0x210b4b,'*Remove\x20format:*\x20%0',_0xa45466)};}});}}function oo(_0x33e1f7){return'blockQuote'==_0x33e1f7['parent']['name'];}class L extends _0x17eefb{['afterInit'](){const _0x22d31a=this['editor'],_0x46d127=_0x22d31a['locale'],_0x4ddee7=_0x22d31a['plugins']['get']('TrackChangesEditing');_0x22d31a['plugins']['has']('BookmarkEditing')&&(_0x4ddee7['enableCommand']('insertBookmark'),_0x4ddee7['enableDefaultAttributesIntegration']('updateBookmark'),_0x4ddee7['registerBlockAttribute']('bookmarkId'),_0x4ddee7['descriptionFactory']['registerDescriptionCallback'](_0x2cdbc3=>{if('insertion'!=_0x2cdbc3['type']&&'deletion'!=_0x2cdbc3['type']&&'attribute'!=_0x2cdbc3['type'])return;const _0x3978b4=_0x2cdbc3['getContainedElement']();if(null==_0x3978b4)return;if(!_0x3978b4['is']('element','bookmark'))return;const _0x5ab39d=_0x3978b4['getAttribute']('bookmarkId');if('insertion'==_0x2cdbc3['type'])return{'type':'insertion','content':c(_0x46d127,'*Insert:*\x20%0','\x22'+_0x5ab39d+'\x22\x20'+c(_0x46d127,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2cdbc3['type'])return{'type':'deletion','content':c(_0x46d127,'*Remove:*\x20%0','\x22'+_0x5ab39d+'\x22\x20'+c(_0x46d127,'ELEMENT_BOOKMARK'))};const {data:_0x4c2840}=_0x2cdbc3;if(!_0x4c2840||'bookmarkId'!=_0x4c2840['key'])return;return{'type':'format','content':c(_0x46d127,'*Set\x20bookmark:*\x20%0','\x22'+_0x4c2840['newValue']+'\x22')};}));}}class J extends _0x17eefb{['afterInit'](){const _0x1aa2ca=this['editor'];_0x1aa2ca['plugins']['has']('CaseChange')&&(_0x1aa2ca['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1aa2ca['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1aa2ca['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x17eefb{['afterInit'](){const _0x2d2fce=this['editor'];_0x2d2fce['commands']['get']('ckbox')&&_0x2d2fce['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x17eefb{['afterInit'](){const _0x112357=this['editor'];if(!_0x112357['plugins']['has']('CodeBlock'))return;const _0x414ae7=_0x112357['plugins']['get']('TrackChangesEditing'),_0x18c40b=_0x112357['locale'],_0xa7f87=_0x112357['config']['get']('codeBlock')['languages'],_0x99daff=_0x112357['commands']['get']('codeBlock');_0x414ae7['enableCommand']('indentCodeBlock'),_0x414ae7['enableCommand']('outdentCodeBlock'),_0x414ae7['enableCommand']('codeBlock',(_0x448647,_0x1abc90={})=>{const _0x4e8c7c=_0x112357['model'],_0x20ce11=_0x112357['model']['document']['selection'],_0x27e7fc=_0x1abc90&&void 0x0!==_0x1abc90['forceValue']?_0x1abc90['forceValue']:!_0x99daff['value'];let _0x27e258;_0x1abc90['language']||(_0x1abc90['language']=_0xa7f87[0x0]['language']),_0x27e258=_0x27e7fc?Array['from'](_0x20ce11['getSelectedBlocks']())['filter'](_0x1f9bb3=>eo(_0x1f9bb3)||function(_0x4b92fa,_0x4ad095){if(_0x4b92fa['is']('rootElement')||_0x4ad095['isLimit'](_0x4b92fa))return!0x1;return _0x4ad095['checkChild'](_0x4b92fa['parent'],'codeBlock');}(_0x1f9bb3,_0x4e8c7c['schema'])):Array['from'](_0x20ce11['getSelectedBlocks']())['filter'](_0x289e7f=>eo(_0x289e7f));const _0x2c9a76=to(_0x27e258,_0x4e8c7c);_0x4e8c7c['change'](()=>{for(const _0x360f8b of _0x2c9a76)_0x414ae7['markBlockFormat'](_0x360f8b,{'commandName':'codeBlock','commandParams':[{..._0x1abc90,'forceValue':_0x27e7fc}],'formatGroupId':'blockName'});});}),(_0x414ae7['descriptionFactory']['registerElementLabel']('codeBlock',_0x34ecf1=>c(_0x18c40b,'ELEMENT_CODE_BLOCK',_0x34ecf1)),_0x414ae7['descriptionFactory']['registerDescriptionCallback'](_0x320fb3=>{if('formatBlock'!=_0x320fb3['type'])return;const _0x37bd38=_0x18c40b['t'],{data:_0x2dd420}=_0x320fb3;if(!_0x2dd420||'codeBlock'!=_0x2dd420['commandName'])return;const _0x16893b=_0x2dd420['commandParams'][0x0]['language'],_0x28c033=_0x37bd38(_0xa7f87['find'](_0x3e98e0=>_0x3e98e0['language']===_0x16893b)['label'])['toLowerCase']();return _0x2dd420['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x18c40b,'*Set\x20format:*\x20%0',c(_0x18c40b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x28c033+')')}:{'type':'format','content':c(_0x18c40b,'*Remove\x20format:*\x20%0',c(_0x18c40b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3c3712){return'codeBlock'==_0x3c3712['name'];}class q extends _0x17eefb{['afterInit'](){const _0x306d05=this['editor'];if(!_0x306d05['plugins']['has']('CommentsEditing'))return;_0x306d05['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5c5390,_0xaba3b,_0x12440b){const _0x3158e3=[];for(const _0x3994d2 of _0xaba3b['getItems']())_0x3994d2['hasAttribute'](_0x5c5390)&&_0x3158e3['push'](_0x12440b['createRangeOn'](_0x3994d2));return _0x3158e3;}function Fe(_0x2c7dc3,_0x19642b,{showActiveMarker:_0x4a12ba=!0x0}={}){const _0x7588c2=_0x2c7dc3['plugins']['get']('TrackChangesEditing');return(_0x19376c,_0x2eabaa,_0x1b652c)=>{if(!_0x1b652c['consumable']['test'](_0x2eabaa['markerRange'],_0x19376c['name']))return;const _0x551517=_0x2eabaa['markerRange']['getWalker'](),_0x3e6e31=_0x2eabaa['markerRange']['start'],_0x341116=_0x2c7dc3['model']['schema'];let _0x3f7bb7=null,_0x4b32d8=null,_0xc6d10=!0x1,_0x484cbf=!0x1;for(const _0x564292 of _0x551517){const _0x380172=_0x564292['item'];_0xc6d10=_0xc6d10||_0x341116['isContent'](_0x380172);const _0x4c77ca=_0x1b652c['mapper']['toViewElement'](_0x380172);if(_0x4c77ca&&_0x4c77ca['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x564292['type']&&(_0x341116['isBlock'](_0x380172)&&!_0x341116['isLimit'](_0x380172)&&(_0x380172['nextSibling']||_0x3e6e31['isAtEnd']?_0x3f7bb7&&_0x3f7bb7['parent']==_0x380172||(_0x3f7bb7=_0x380172,_0x48fb47(_0x564292['previousPosition']),_0x484cbf=!0x0):_0x4b32d8=_0x4b32d8||_0x564292['previousPosition']));}function _0x48fb47(_0x1aa4df){const {authorId:_0x74a63c}=_0x7588c2['_splitMarkerName'](_0x2eabaa['markerName']),_0x16ed75=_0x1b652c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x19642b,'data-author-id':_0x74a63c}),_0x24d865=_0x1b652c['mapper']['toViewPosition'](_0x1aa4df);_0x4a12ba&&_0x7588c2['activeMarkers']['includes'](_0x2eabaa['markerName'])&&_0x1b652c['writer']['addClass']('ck-suggestion-marker--active',_0x16ed75),_0x1b652c['writer']['insert'](_0x24d865,_0x16ed75),_0x1b652c['mapper']['bindElementToMarker'](_0x16ed75,_0x2eabaa['markerName']);}_0xc6d10||_0x484cbf||!_0x4b32d8||_0x48fb47(_0x4b32d8);};}class z extends _0x17eefb{static get['requires'](){return[_0x448af7];}['init'](){const _0x3046a3=this['editor'],_0x5a5b97=_0x3046a3['plugins']['get']('TrackChangesEditing');_0x5a5b97['enableCommand']('delete');const _0x1b6bfb=_0x3046a3['commands']['get']('deleteForward');_0x5a5b97['enableCommand']('deleteForward',(_0x1a5ad6,_0xfc8dd0={})=>{const _0x15197b=_0x3046a3['model']['createSelection'](_0x3046a3['model']['document']['selection']);_0x15197b['isCollapsed']&&_0x3046a3['model']['modifySelection'](_0x15197b,{'direction':'forward','unit':_0xfc8dd0['unit']});const _0x38f3ed=_0x15197b['getFirstRange'](),_0x428f68=_0x335d44['fromRange'](_0x38f3ed);let _0x471a68;_0x1a5ad6(_0xfc8dd0),_0x471a68='$graveyard'==_0x428f68['root']['rootName']?_0x3046a3['model']['createRange'](_0x38f3ed['start']):_0x3046a3['model']['createRange'](_0x428f68['start'],_0x428f68['end']),_0x428f68['detach'](),_0x3046a3['model']['enqueueChange'](_0x1b6bfb['buffer']['batch'],_0x4e5cbd=>{_0x1b6bfb['buffer']['lock'](),_0x4e5cbd['setSelection'](_0x4e5cbd['createRange'](_0x471a68['end'])),_0x1b6bfb['buffer']['unlock']();});}),_0x3046a3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x3046a3,'merge'),{'priority':'high'}),_0x3046a3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x123832,_0x5b7d84,_0x1db61e)=>{_0x1db61e['options']['showSuggestionHighlights']&&Fe(_0x3046a3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x123832,_0x5b7d84,_0x1db61e);},{'priority':'high'}),_0x3046a3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x10f8e7,_0x517688,_0x44697a)=>{const _0x443938=_0x44697a['mapper']['markerNameToElements'](_0x517688['markerName']);if(_0x443938){for(const _0x258e29 of _0x443938)_0x258e29['is']('uiElement')&&(_0x44697a['mapper']['unbindElementFromMarkerName'](_0x258e29,_0x517688['markerName']),_0x44697a['writer']['remove'](_0x258e29));}},{'priority':'high'});}}class W extends _0x17eefb{['afterInit'](){const _0x46f9ca=this['editor'];if(!_0x46f9ca['plugins']['has']('ListEditing'))return;const _0x4565a3=_0x46f9ca['locale'],_0x5c3ed1=_0x46f9ca['plugins']['get']('TrackChangesEditing'),_0x1a0057=_0x46f9ca['plugins']['has']('TodoListEditing'),_0x115eb1=!!_0x46f9ca['config']['get']('list.multiBlock');function _0x7c7c56(_0x6b8e9c){return{'type':'format','content':''+c(_0x4565a3,'*Set\x20format:*\x20%0',_0x6b8e9c)};}function _0x172907(_0x4b31cd){return{'type':'format','content':''+c(_0x4565a3,'*Remove\x20format:*\x20%0',_0x4b31cd)};}_0x5c3ed1['enableDefaultAttributesIntegration']('numberedList'),_0x5c3ed1['enableDefaultAttributesIntegration']('bulletedList'),_0x5c3ed1['enableDefaultAttributesIntegration']('customNumberedList'),_0x5c3ed1['enableDefaultAttributesIntegration']('customBulletedList'),_0x5c3ed1['enableDefaultAttributesIntegration']('indentList'),_0x5c3ed1['enableDefaultAttributesIntegration']('outdentList'),_0x5c3ed1['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5c3ed1['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5c3ed1['registerBlockAttribute']('listItemId'),_0x5c3ed1['registerBlockAttribute']('listType'),_0x5c3ed1['registerBlockAttribute']('listIndent'),_0x115eb1&&(_0x5c3ed1['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5c3ed1['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1a0057&&(_0x5c3ed1['enableDefaultAttributesIntegration']('todoList'),_0x5c3ed1['enableDefaultAttributesIntegration']('checkTodoList'),_0x5c3ed1['registerBlockAttribute']('todoListChecked'),_0x5c3ed1['descriptionFactory']['registerDescriptionCallback'](_0x27892d=>{const {data:_0x191f12}=_0x27892d;if(_0x191f12&&'todoListChecked'==_0x191f12['key'])return{'type':'format','content':_0x191f12['newValue']?c(_0x4565a3,'*Check\x20item*'):c(_0x4565a3,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4e2f26=>{if(_0x4e2f26['batch']['isUndo'])return!0x1;let _0x1d7b74=!0x1;const _0x84f547=_0x5c3ed1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x124574=>'todoListChecked'===_0x5c3ed1['_getAttributeKey'](_0x124574));for(const _0x334944 of _0x84f547){'todo'!=_0x334944['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5c3ed1['_findSuggestions'](_0x334944['getFirstRange'](),'attribute')['find'](_0x1de0d0=>'listType'===_0x5c3ed1['_getAttributeKey'](_0x1de0d0['suggestion']))||(_0x4e2f26['removeMarker'](_0x334944['getFirstMarker']()),_0x1d7b74=!0x0));}return _0x1d7b74;})),_0x5c3ed1['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x4565a3,'FORMAT_INDENT'));const _0x3e458b={'type':'format','content':''};_0x5c3ed1['descriptionFactory']['registerDescriptionCallback'](_0x3f0fb6=>{const {data:_0x2626c7}=_0x3f0fb6;if(!_0x2626c7||'listType'!=_0x2626c7['key'])return;let _0x36867a=_0x3f0fb6['head'];for(;_0x36867a;){if(_0x36867a['data']&&(('listStyle'==_0x36867a['data']['key']||'listMarkerStyle'==_0x36867a['data']['key'])&&(_0x36867a['data']['newValue']&&'default'!=_0x36867a['data']['newValue']||'default'!=_0x36867a['data']['oldValue']&&!_0x2626c7['newValue'])||!_0x115eb1&&_0x36867a['data']['key']==u))return _0x3e458b;_0x36867a=_0x36867a['next'];}if(null==_0x2626c7['newValue'])switch(_0x2626c7['oldValue']){case'bulleted':return _0x172907(c(_0x4565a3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x172907(c(_0x4565a3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x172907(c(_0x4565a3,'ELEMENT_TODO_LIST'));}switch(_0x2626c7['newValue']){case'bulleted':return _0x7c7c56(c(_0x4565a3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x7c7c56(c(_0x4565a3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x7c7c56(c(_0x4565a3,'ELEMENT_TODO_LIST'));}}),_0x5c3ed1['descriptionFactory']['registerDescriptionCallback'](_0x29ce1b=>{const {data:_0x536d77}=_0x29ce1b;if(_0x536d77&&'listIndent'==_0x536d77['key'])return null==_0x536d77['newValue']||null==_0x536d77['oldValue']&&0x0==_0x536d77['newValue']?_0x3e458b:void 0x0;}),_0x5c3ed1['descriptionFactory']['registerDescriptionCallback'](_0x5f4777=>{if('attribute'!=_0x5f4777['type'])return;const {data:_0x307a62}=_0x5f4777;if(!_0x307a62||'listItemId'!=_0x307a62['key'])return;const _0x141ab7=Te(_0x5f4777);return'newValue'==_0x141ab7?{'type':'format','content':c(_0x4565a3,'*Merge:*\x20list\x20item')}:'oldValue'==_0x141ab7?{'type':'format','content':c(_0x4565a3,'*Split:*\x20list\x20item')}:_0x3e458b;}),_0x46f9ca['model']['document']['registerPostFixer'](_0x4d0836=>this['listItemIdFixer'](_0x4d0836)),_0x46f9ca['model']['document']['registerPostFixer'](_0x2c5779=>this['noTrackChangesFixer'](_0x2c5779)),_0x46f9ca['model']['document']['on']('change:data',(_0x1d8e19,_0x292396)=>{if(_0x292396['isUndo']||!_0x292396['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x84bea1){if(_0x84bea1['batch']['isUndo']||!_0x84bea1['batch']['isLocal'])return!0x1;let _0x4fed48=!0x1;const _0x5f584f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a3832=>_0x4a3832['data']&&'listItemId'==_0x4a3832['data']['key'])['filter'](_0x4bf25c=>_0x4bf25c['data']['newValue']&&_0x4bf25c['data']['oldValue']);for(const _0xc65e3 of _0x5f584f)Te(_0xc65e3)||(_0x84bea1['removeMarker'](_0xc65e3['getFirstMarker']()),_0x4fed48=!0x0);return _0x4fed48;}['noTrackChangesFixer'](_0x465a06){if(_0x465a06['batch']['isUndo']||!_0x465a06['batch']['isLocal'])return!0x1;const _0x4ec366=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4ec366['trackChangesCommand']['value'])return!0x1;let _0x53ac0e=!0x1;const _0x3ad37e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2751e7=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2ed199=>'attribute'==_0x2ed199['type'])['filter'](_0x376c05=>_0x3ad37e['includes'](_0x376c05['attributeKey']));if(0x0==_0x2751e7['length'])return _0x53ac0e;for(const _0x125f26 of _0x2751e7){const _0xa63d82=_0x4ec366['_findSuggestions'](_0x125f26['range'],'attribute')['filter'](_0x5e97e3=>!_0x5e97e3['meta']['isNextTo'])['map'](_0x2586b5=>_0x2586b5['suggestion'])['filter'](_0x23812f=>{const _0x10b512=_0x4ec366['_getAttributeKey'](_0x23812f);return _0x3ad37e['includes'](_0x10b512);});if(_0xa63d82['length']){for(const _0x2516b0 of _0xa63d82)_0x465a06['removeMarker'](_0x2516b0['getFirstMarker']());_0x53ac0e=!0x0;}}return _0x53ac0e;}['assureChains'](){const _0x3d5e35=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb81804=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x202d52;const _0x5278c0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x32f41a=>{if(_0x32f41a['data']['oldRange']||!_0x32f41a['data']['newRange'])return null;if(!_0x32f41a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x117cb7}=_0x3d5e35['_splitMarkerName'](_0x32f41a['name']);if(!_0x3d5e35['hasSuggestion'](_0x117cb7))return null;const _0x4519cf=_0x3d5e35['getSuggestion'](_0x117cb7);return _0xb81804['includes'](_0x4519cf['data']['key']);})['map'](_0x3a8a9f=>{const {id:_0x2c64e7}=_0x3d5e35['_splitMarkerName'](_0x3a8a9f['name']),_0x393923=_0x3d5e35['getSuggestion'](_0x2c64e7);return _0x202d52=_0x393923['attributes']['groupId'],_0x393923['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5278c0['size'])return;const _0x4467f3=_0x3d5e35['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20cd9c=>'attribute'==_0x20cd9c['type']&&_0x20cd9c['data']&&_0xb81804['includes'](_0x20cd9c['data']['key'])&&_0x20cd9c['attributes']['groupId']!=_0x202d52)['map'](_0x3ba953=>({'listItem':_0x3ba953['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3ba953['attributes']['groupId']})),_0x467d1a=new Set();for(const {groupId:_0xdf699b,listItem:_0x444573}of _0x4467f3)_0x5278c0['has'](_0x444573)&&_0x467d1a['add'](_0xdf699b);for(const _0x328bc6 of _0x3d5e35['getSuggestions']())_0x467d1a['has'](_0x328bc6['attributes']['groupId'])&&_0x328bc6['setAttribute']('groupId',_0x202d52);}['_supportLegacySuggestions'](){const _0x321f4f=this['editor'],_0x29a878=_0x321f4f['locale'],_0x3373a4=_0x321f4f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3373a4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5ebe4b,_0x168c01){const _0x4ae808=[];for(let _0x53dae2 of _0x5ebe4b)_0x53dae2['start']['nodeAfter']===_0x53dae2['end']['parent']&&(_0x53dae2=_0x321f4f['model']['createRange'](_0x321f4f['model']['createPositionAt'](_0x53dae2['start']['nodeAfter'],0x0))),_0x4ae808['push'](_0x53dae2);_0x321f4f['model']['change'](_0x17945c=>{const _0x36a944=_0x321f4f['model']['document']['selection'],_0x5cb88e=Array['from'](_0x36a944['getRanges']())['map'](_0x4ae7ec=>_0x335d44['fromRange'](_0x4ae7ec));_0x17945c['setSelection'](_0x4ae808),_0x321f4f['commands']['get'](_0x168c01['commandName'])['refresh'](),_0x168c01['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x321f4f['execute'](_0x168c01['commandName'],..._0x168c01['commandParams']),_0x17945c['setSelection'](_0x5cb88e);for(const _0x64c222 of _0x5cb88e)_0x64c222['detach']();});}),_0x3373a4['descriptionFactory']['registerElementLabel'](function(_0x1f19ea){const _0x13d78f=!_0x321f4f['model']['schema']['isObject'](_0x1f19ea),_0x4fa595=_0x1f19ea['previousSibling'],_0x17811f=_0x1f19ea['nextSibling'],_0x253374=_0x1f19ea['getAttribute']('listItemId'),_0x241c0e=!_0x4fa595||_0x4fa595['getAttribute']('listItemId')!==_0x253374,_0x2af5fe=!_0x17811f||_0x17811f['getAttribute']('listItemId')!==_0x253374;return _0x13d78f&&Boolean(_0x253374)&&_0x241c0e&&_0x2af5fe;},_0x47840a=>c(_0x29a878,'ELEMENT_LIST_ITEM',_0x47840a));}['_registerLegacyDescription'](){const _0x13d858=this['editor'],_0x2ea6bb=_0x13d858['locale'];function _0x5d5c1a(_0x1f28a1){const _0x168760=_0x13d858['commands']['get']('bulletedList')['value'],_0x1c00ef=_0x13d858['commands']['get']('numberedList')['value'];return'numberedList'===_0x1f28a1?_0x168760:_0x1c00ef;}_0x13d858['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x576026){if('formatBlock'!=_0x576026['type'])return;const {data:_0x3023ee}=_0x576026;if(!_0x3023ee)return;let _0x207790,_0xe13125,_0x22952e,_0x343390;switch(_0x3023ee['commandName']){case'bulletedList':_0x22952e=_0x3023ee['commandParams'][0x0]['forceValue'],_0x343390=_0x5d5c1a(_0x3023ee['commandName']),_0x207790=_0x22952e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x343390&&_0x13d858['config']['get']('list.multiBlock')||(_0x207790='*Change\x20to:*\x20%0'),_0xe13125={'type':'format','content':c(_0x2ea6bb,_0x207790,c(_0x2ea6bb,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x22952e=_0x3023ee['commandParams'][0x0]['forceValue'],_0x343390=_0x5d5c1a(_0x3023ee['commandName']),_0x207790=_0x22952e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x343390&&_0x13d858['config']['get']('list.multiBlock')||(_0x207790='*Change\x20to:*\x20%0'),_0xe13125={'type':'format','content':c(_0x2ea6bb,_0x207790,c(_0x2ea6bb,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x207790='*Indent:*\x20%0',_0xe13125={'type':'format','content':c(_0x2ea6bb,_0x207790,c(_0x2ea6bb,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x207790=function(_0x3d6451){const _0x334891=_0x3d6451['getFirstRange']();let _0x336608=_0x334891['start']['nodeAfter'];for(;_0x336608&&_0x334891['containsItem'](_0x336608);){if(_0x336608['getAttribute']('listIndent')>0x0)return!0x1;_0x336608=_0x336608['nextSibling'];}return!0x0;}(_0x576026)?c(_0x2ea6bb,'*Format:*\x20remove\x20from\x20%0',c(_0x2ea6bb,function(_0x3f8a34){return'ELEMENT_'+_0x3f8a34['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x576026))):c(_0x2ea6bb,'*Outdent:*\x20%0',c(_0x2ea6bb,'ELEMENT_LIST_ITEM')),_0xe13125={'type':'format','content':_0x207790};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3023ee['multipleBlocks']&&(_0x207790='*Merge:*\x20%0',_0xe13125={'type':'deletion','content':c(_0x2ea6bb,_0x207790,c(_0x2ea6bb,'ELEMENT_LIST_ITEM'))});}return _0xe13125;});}}function Te(_0x3a6d0c){let _0x5cdda0=_0x3a6d0c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5cdda0;){const _0x533473=_0x5cdda0['getAttribute']('listItemId');if(!_0x533473)return!0x1;if(_0x533473==_0x3a6d0c['data']['newValue'])return'newValue';if(_0x533473==_0x3a6d0c['data']['oldValue'])return'oldValue';_0x5cdda0=_0x5cdda0['previousSibling'];}return!0x1;}class Se extends _0x17eefb{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2bce94=this['editor']['config']['get']('list.properties'),_0xdbc485=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bce94['styles']&&(_0xdbc485['enableDefaultAttributesIntegration']('listStyle'),_0xdbc485['registerBlockAttribute']('listStyle')),_0x2bce94['reversed']&&(_0xdbc485['enableDefaultAttributesIntegration']('listReversed'),_0xdbc485['registerBlockAttribute']('listReversed')),_0x2bce94['startIndex']&&(_0xdbc485['enableDefaultAttributesIntegration']('listStart'),_0xdbc485['registerBlockAttribute']('listStart'));const _0x23e759={'type':'format','content':''};_0xdbc485['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x6e20fa=this['editor']['locale'];_0xdbc485['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x6e20fa,'FORMAT_LIST_REVERSED')),_0xdbc485['descriptionFactory']['registerDescriptionCallback'](_0x5bad25=>{const {data:_0x358201}=_0x5bad25;if(_0x358201&&'listReversed'==_0x358201['key'])return null==_0x358201['newValue']||0x0==_0x358201['newValue']&&null==_0x358201['oldValue']?_0x23e759:void 0x0;}),_0xdbc485['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x6e20fa,'FORMAT_LIST_START')),_0xdbc485['descriptionFactory']['registerDescriptionCallback'](_0x4a8412=>{const {data:_0x434d2a}=_0x4a8412;if(_0x434d2a&&'listStart'==_0x434d2a['key'])return null==_0x434d2a['newValue']||0x1==_0x434d2a['newValue']&&null==_0x434d2a['oldValue']?_0x23e759:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x44d3c0=>{if(_0x44d3c0['batch']['isUndo'])return!0x1;let _0x5ccaf6=!0x1;const _0x317a8a=_0xdbc485['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42ce06=>{const _0x348e4d=_0xdbc485['_getAttributeKey'](_0x42ce06);return'listStart'==_0x348e4d||'listReversed'==_0x348e4d;});for(const _0x43ff91 of _0x317a8a){const _0x2eb60a=_0x43ff91['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2eb60a||'customNumbered'==_0x2eb60a)continue;_0xdbc485['_findSuggestions'](_0x43ff91['getFirstRange'](),'attribute')['find'](_0x4c1f96=>'listType'==_0xdbc485['_getAttributeKey'](_0x4c1f96['suggestion']))||(_0x44d3c0['removeMarker'](_0x43ff91['getFirstMarker']()),_0x5ccaf6=!0x0);}return _0x5ccaf6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x279231){const _0x5f373e=this['editor']['locale'],{data:_0x50ac20}=_0x279231,_0x158921={'type':'format','content':''};if(!_0x50ac20||'listStyle'!=_0x50ac20['key'])return;if(!_0x50ac20['oldValue'])return'default'==_0x50ac20['newValue']?_0x158921:{'type':'format','content':''+c(_0x5f373e,'*Set\x20format:*\x20%0',c(_0x5f373e,this['_getTranslationKeyForListStyle'](_0x50ac20['newValue'])))};if(!_0x50ac20['newValue']){if('default'==_0x50ac20['oldValue'])return _0x158921;let _0x5beaf3=_0x279231['head'];for(;_0x5beaf3;){if(_0x5beaf3['data']&&'listType'==_0x5beaf3['data']['key']&&_0x5beaf3['data']['newValue'])return _0x158921;_0x5beaf3=_0x5beaf3['next'];}return{'type':'format','content':''+c(_0x5f373e,'*Remove\x20format:*\x20%0',c(_0x5f373e,this['_getTranslationKeyForListStyle'](_0x50ac20['oldValue'])))};}if('default'!=_0x50ac20['newValue'])return{'type':'format','content':''+c(_0x5f373e,'*Set\x20format:*\x20%0',c(_0x5f373e,this['_getTranslationKeyForListStyle'](_0x50ac20['newValue'])))};let _0x1db1bf=_0x279231['head'];for(;_0x1db1bf;){if(_0x1db1bf['data']&&'listType'==_0x1db1bf['data']['key']&&_0x1db1bf['data']['newValue']&&_0x1db1bf['data']['oldValue'])return _0x158921;_0x1db1bf=_0x1db1bf['next'];}return{'type':'format','content':c(_0x5f373e,'*Set\x20format:*\x20%0',c(_0x5f373e,'ELEMENT_'+_0x279231['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x238565=this['editor'],_0x1b395d=_0x238565['locale'];_0x238565['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe2f3b4=>{if('formatBlock'!=_0xe2f3b4['type'])return;const {data:_0x5474d0}=_0xe2f3b4;if(!_0x5474d0)return;let _0x16b08f,_0x423e08;switch(_0x5474d0['commandName']){case'listStyle':_0x16b08f='*Change\x20to:*\x20%0',_0x423e08={'type':'format','content':c(_0x1b395d,_0x16b08f,c(_0x1b395d,this['_getTranslationKeyForListStyle'](_0x5474d0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x16b08f=_0x5474d0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x423e08={'type':'format','content':c(_0x1b395d,_0x16b08f)};break;case'listStart':_0x16b08f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x423e08={'type':'format','content':c(_0x1b395d,_0x16b08f,_0x5474d0['commandParams'][0x0]['startIndex'])};}return _0x423e08;});}['_getTranslationKeyForListStyle'](_0x2db3cc){return'ELEMENT_'+function(_0x2e3bef){if(_e['includes'](_0x2e3bef))return'bulleted';if(Re['includes'](_0x2e3bef))return'numbered';return null;}(_0x2db3cc)['toUpperCase']()+'_LIST_'+_0x2db3cc['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x17eefb{['afterInit'](){const _0x132da6=this['editor'];_0x132da6['commands']['get']('emoji')&&_0x132da6['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x17eefb{static get['requires'](){return[_0x5bcc5f];}['init'](){const _0x3b466a=this['editor'],_0x21e554=_0x3b466a['plugins']['get']('TrackChangesEditing'),_0x184490=_0x3b466a['commands']['get']('enter');_0x21e554['enableCommand']('enter',()=>{_0x3b466a['model']['change'](_0x3d0b95=>{const _0x2e2f1d=_0x3b466a['model']['document']['selection'],_0x2d6f7b=_0x2e2f1d['getFirstPosition'](),_0x3d4f1d=_0x335d44['fromRange'](_0x2e2f1d['getFirstRange']());if(_0x184490['enterBlock'](_0x3d0b95)){const _0x3f8fa6=_0x3b466a['model']['createPositionAt'](_0x2d6f7b['parent']['nextSibling'],0x0),_0x311568=_0x3d0b95['createRange'](_0x2d6f7b,_0x3f8fa6);_0x21e554['markInsertion'](_0x311568);}else _0x3d0b95['setSelection'](_0x3d0b95['createRange'](_0x3d4f1d['end']));_0x3d4f1d['detach'](),_0x184490['fire']('afterExecute',{'writer':_0x3d0b95});});}),_0x3b466a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x3b466a,'split'),{'priority':'high'}),_0x3b466a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x58ef87,_0x43877e,_0x2a25d)=>{const _0x2c3083=_0x2a25d['mapper']['markerNameToElements'](_0x43877e['markerName']);if(_0x2c3083){for(const _0x17c18a of _0x2c3083)_0x17c18a['hasClass']('ck-suggestion-marker-split')&&(_0x2a25d['mapper']['unbindElementFromMarkerName'](_0x17c18a,_0x43877e['markerName']),_0x2a25d['writer']['remove'](_0x17c18a));}},{'priority':'high'}),_0x3b466a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3a85a9,_0xe66c81,_0x1fb286)=>{_0x1fb286['options']['showSuggestionHighlights']&&Fe(_0x3b466a,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3a85a9,_0xe66c81,_0x1fb286);},{'priority':'high'});}}class Z extends _0x17eefb{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x29cfcb=this['editor']['plugins']['get']('TrackChangesEditing');_0x29cfcb['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x29cfcb['enableCommand']('findNext'),_0x29cfcb['enableCommand']('findPrevious'),_0x29cfcb['enableCommand']('replace'),_0x29cfcb['enableCommand']('replaceAll');}['handleFindCommand'](_0x810a7c,_0x5f3dbe,_0x3221b0={}){const _0x2d48eb=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x810a7c(_0x2e7181=>{let _0x1a5b6b=('string'==typeof _0x5f3dbe?_0x2d48eb['findByTextCallback'](_0x5f3dbe,_0x3221b0):_0x5f3dbe)(_0x2e7181);Array['isArray'](_0x1a5b6b)&&(_0x1a5b6b={'results':_0x1a5b6b,'searchText':'string'==typeof _0x5f3dbe?_0x5f3dbe:''});const _0xaa5147=_0x1a5b6b['results']['filter'](_0x53db23=>!0x1===this['_isInDeletionRange'](_0x53db23,_0x2e7181['item']));return{..._0x1a5b6b,'results':_0xaa5147};},_0x3221b0);}['_isInDeletionRange'](_0x3fe5ca,_0x5d8fbb){const _0x4419aa=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5d8fbb,_0x3fe5ca['start']),this['editor']['model']['createPositionAt'](_0x5d8fbb,_0x3fe5ca['end']));for(const _0x54bf9c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4419aa['getIntersection'](_0x54bf9c['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 _0x17eefb{['afterInit'](){const _0x529182=this['editor']['locale'],_0x4752b6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x50206f,commandName:_0x50595e}of ro)this['editor']['plugins']['has'](_0x50206f)&&(_0x4752b6['enableDefaultAttributesIntegration'](_0x50595e),_0x4752b6['registerInlineAttribute'](_0x50595e));_0x4752b6['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x529182,'FORMAT_FONT_SIZE')),_0x4752b6['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x529182,'FORMAT_FONT_FAMILY')),_0x4752b6['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x529182,'FORMAT_FONT_COLOR')),_0x4752b6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x529182,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e06cf=this['editor'],_0xf15082=_0x4e06cf['locale'];_0x4e06cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a5a5b=>{const _0x288edb=_0xf15082['t'];if('formatInline'!=_0x2a5a5b['type'])return;const {data:_0x2dd4fc}=_0x2a5a5b;if(null!=_0x2dd4fc){if('fontSize'==_0x2dd4fc['commandName']){const _0x5012de=_0x2dd4fc['commandParams'][0x0]['value'];if(_0x5012de){const _0x337d52=_0x288edb(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3f9c88=>_0x3f9c88['model']==_0x5012de)['title'])['toLowerCase']();return{'type':'format','content':c(_0xf15082,'*Set\x20font\x20size:*\x20%0',_0x337d52)};}return{'type':'format','content':c(_0xf15082,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2dd4fc['commandName']){const _0x32b427=_0x2dd4fc['commandParams'][0x0]['value'];return _0x32b427?{'type':'format','content':c(_0xf15082,'*Set\x20font\x20family:*\x20%0',_0x32b427)}:{'type':'format','content':c(_0xf15082,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2dd4fc['commandName']){const _0x1e9251=_0x2dd4fc['commandParams'][0x0]['value'];if(_0x1e9251){const _0x36c279=_0x453dab(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2f89f0=>_0x2f89f0['model']==_0x1e9251);let _0x539bbb=_0x1e9251,_0x480c9a='';return _0x36c279&&(_0x539bbb=_0x36c279['label'],_0x480c9a=_0x288edb(_0x539bbb)['toLowerCase']()),{'type':'format','content':c(_0xf15082,'*Set\x20font\x20color:*\x20%0',_0x480c9a)['trim'](),'color':{'value':_0x1e9251,'title':_0x480c9a||_0x539bbb}};}return{'type':'format','content':c(_0xf15082,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2dd4fc['commandName']){const _0x28946d=_0x2dd4fc['commandParams'][0x0]['value'];if(_0x28946d){const _0x355562=_0x453dab(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x336770=>_0x336770['model']==_0x28946d);let _0x427dbf=_0x28946d,_0xb8d0b0='';return _0x355562&&(_0x427dbf=_0x355562['label'],_0xb8d0b0=_0x288edb(_0x427dbf)['toLowerCase']()),{'type':'format','content':c(_0xf15082,'*Set\x20font\x20background\x20color:*\x20%0',_0xb8d0b0)['trim'](),'color':{'value':_0x28946d,'title':_0xb8d0b0||_0x427dbf}};}return{'type':'format','content':c(_0xf15082,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x17eefb{['afterInit'](){const _0x258c71=this['editor'],_0x21386b=_0x258c71['plugins']['get']('TrackChangesEditing'),_0x1e4472=_0x258c71['commands']['get']('copyFormat'),_0x15bf66=_0x258c71['commands']['get']('pasteFormat');_0x1e4472&&_0x15bf66&&(_0x21386b['enableDefaultAttributesIntegration']('pasteFormat'),_0x21386b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x24a00d=this['editor'],_0x38038d=_0x24a00d['locale'];_0x24a00d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x234e40=>{if('formatBlock'!=_0x234e40['type']&&'formatInline'!=_0x234e40['type'])return;const {data:_0x53aa42}=_0x234e40;if(_0x53aa42&&'pasteFormat'===_0x53aa42['commandName']){const _0x16f83e=[],_0x2581ce=_0x53aa42['commandParams'][0x0];for(const [_0x26e6c4,_0x100287]of Object['entries'](_0x2581ce))_0x16f83e['push'](so(_0x24a00d,_0x26e6c4,_0x100287));return _0x16f83e['length']?{'type':'format','content':c(_0x38038d,'*Set\x20format\x20to:*\x20%0',_0x16f83e['join'](',\x20'))}:{'type':'format','content':c(_0x38038d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x52eee1,_0x66606,_0x59932b){const _0x469462=_0x52eee1['locale']['t'],_0x263a67=_0x66606['split'](/(?=[A-Z])/)['join']('\x20'),_0x1aa977=_0x469462(_0x263a67['charAt'](0x0)['toUpperCase']()+_0x263a67['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x59932b)return _0x1aa977;if('fontColor'===_0x66606||'fontBackgroundColor'===_0x66606){const _0x459dda=_0x453dab(_0x52eee1['config']['get']('fontColor.colors'))['find'](_0x1c6cec=>_0x1c6cec['model']==_0x59932b);return _0x1aa977+'\x20('+(_0x459dda?_0x469462(_0x459dda['label'])['toLowerCase']():_0x59932b)+')';}if('fontSize'===_0x66606&&isNaN(parseFloat(_0x59932b))){const _0x142847=_0x52eee1['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x52eee1['config']['get']('fontSize.options'))['find'](_0x460769=>_0x460769['model']==_0x59932b);return _0x1aa977+'\x20('+(_0x142847?_0x469462(_0x142847['title'])['toLowerCase']():_0x59932b)+')';}return _0x1aa977+'\x20('+_0x59932b+')';}class nt extends _0x17eefb{['_headingOptions'];['afterInit'](){const _0x5b334f=this['editor'];if(!_0x5b334f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5b334f['config']['get']('heading.options');const _0xd0910e=_0x5b334f['locale'],_0x3fd918=_0x5b334f['plugins']['get']('TrackChangesEditing');_0x3fd918['enableDefaultAttributesIntegration']('heading');for(const _0x58d360 of this['_headingOptions'])'paragraph'!=_0x58d360['model']&&_0x3fd918['descriptionFactory']['registerElementLabel'](_0x58d360['model'],_0x55450a=>{const _0x5f5c59=this['_getHeadingLevel'](_0x58d360['model']);return null!==_0x5f5c59?_0x417390(_0x55450a,_0x5f5c59):_0x426fb0(_0x55450a,_0x58d360['title']);});function _0x417390(_0x5d3ccd,_0x40c0d2){return c(_0xd0910e,'ELEMENT_HEADING',[_0x5d3ccd,_0x40c0d2]);}function _0x426fb0(_0x38a58a,_0x57bc62){return c(_0xd0910e,'ELEMENT_HEADING_CUSTOM',[_0x38a58a,_0x57bc62]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x273f6f=this['editor'],_0xddc88a=_0x273f6f['locale'];function _0x502755(_0x5aea88,_0x1c5add){return c(_0xddc88a,'ELEMENT_HEADING_CUSTOM',[_0x5aea88,_0x1c5add]);}_0x273f6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b335a=>{if('formatBlock'!=_0x4b335a['type'])return;const {data:_0x2b443c}=_0x4b335a;if(_0x2b443c&&'heading'==_0x2b443c['commandName']){const _0x521ce7=_0x2b443c['commandParams'][0x0]['value'],_0x1e1a47=this['_getHeadingLevel'](_0x521ce7);if(null!==_0x1e1a47)return{'type':'format','content':c(_0xddc88a,'*Change\x20to:*\x20%0',(_0x5311f1=0x1,_0x304275=_0x1e1a47,c(_0xddc88a,'ELEMENT_HEADING',[_0x5311f1,_0x304275])))};const _0x45c17b=this['_headingOptions']['find'](_0x33c5ee=>_0x33c5ee['model']===_0x521ce7)['title'];return{'type':'format','content':c(_0xddc88a,'*Change\x20to:*\x20%0',_0x502755(0x1,_0x45c17b))};}var _0x5311f1,_0x304275;});}['_getHeadingLevel'](_0x2ab241){const _0x2baf92=_0x2ab241['match'](/^heading(\d+)/);if(_0x2baf92)return _0x2baf92[0x1];const _0x16c434=this['_headingOptions']?.['find'](_0x359e9c=>_0x359e9c['model']==_0x2ab241);if(_0x16c434&&_0x16c434['view']){const _0x559598=_0x16c434['view'],_0xfbf41=(_0x559598['name']??_0x559598)['match'](/^h(\d+)/);if(_0xfbf41)return _0xfbf41[0x1];}return null;}}class it extends _0x17eefb{['afterInit'](){const _0x196e76=this['editor'];if(!_0x196e76['plugins']['has']('HighlightEditing'))return;const _0x3dcca5=_0x196e76['plugins']['get']('TrackChangesEditing'),_0x54a82d=_0x196e76['locale'];_0x3dcca5['enableDefaultAttributesIntegration']('highlight'),_0x3dcca5['registerInlineAttribute']('highlight'),_0x3dcca5['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x54a82d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x339d98=this['editor'],_0x8ccead=_0x339d98['locale'];_0x339d98['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47df20=>{if('formatInline'!=_0x47df20['type'])return;const {data:_0x3c5733}=_0x47df20;if(_0x3c5733&&'highlight'==_0x3c5733['commandName']){const _0xa99ad9=_0x8ccead['t'],_0x493f17=_0x3c5733['commandParams'][0x0]['value'];if(_0x493f17){const _0x28ce22=_0x339d98['config']['get']('highlight.options')['find'](_0x252ffd=>_0x252ffd['model']==_0x493f17),_0x1331e2=_0xa99ad9(_0x28ce22['title'])['toLowerCase']();return{'type':'format','content':c(_0x8ccead,'*Set\x20highlight:*\x20%0',_0x1331e2),'color':{'value':_0x28ce22['color'],'title':_0x28ce22['title']}};}return{'type':'format','content':c(_0x8ccead,'*Remove\x20highlight*',c(_0x8ccead,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x17eefb{['afterInit'](){const _0x39c45c=this['editor'];if(!_0x39c45c['plugins']['has']('HorizontalLineEditing'))return;_0x39c45c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xe1ba05=_0x39c45c['plugins']['get']('TrackChangesEditing'),_0x2299ae=_0x39c45c['locale'];_0xe1ba05['descriptionFactory']['registerElementLabel']('horizontalLine',_0x58166a=>c(_0x2299ae,'ELEMENT_HORIZONTAL_LINE',_0x58166a)),_0x39c45c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x156960,{writer:_0x43c3d7,options:_0x17ed72})=>{if(!_0x17ed72['showSuggestionHighlights'])return null;const _0x17dded=_0x43c3d7['createContainerElement']('div'),_0x221b49=_0x43c3d7['createEmptyElement']('hr');return _0x43c3d7['addClass']('ck-horizontal-line',_0x17dded),_0x43c3d7['insert'](_0x43c3d7['createPositionAt'](_0x17dded,0x0),_0x221b49),_0x17dded;},'converterPriority':'high'});}}class ot extends _0x17eefb{['afterInit'](){const _0xa21efe=this['editor'];if(!_0xa21efe['plugins']['has']('HtmlEmbed'))return;const _0x65de23=_0xa21efe['plugins']['get']('TrackChangesEditing'),_0x3e97c6=_0xa21efe['locale'];_0x65de23['descriptionFactory']['registerElementLabel']('rawHtml',_0x3d088e=>c(_0x3e97c6,'ELEMENT_HTML_EMBED',_0x3d088e)),_0x65de23['enableDefaultAttributesIntegration']('htmlEmbed'),_0x65de23['registerBlockAttribute']('value'),_0x65de23['descriptionFactory']['registerDescriptionCallback'](_0x59510a=>{if('attribute'!=_0x59510a['type'])return;const {data:_0x562988}=_0x59510a;if(_0x562988&&'value'==_0x562988['key']&&_0x59510a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x207730=c(_0x3e97c6,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x3e97c6,'*Change\x20%0\x20content*',_0x207730)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x504a50=this['editor'],_0x33c453=_0x504a50['locale'];_0x504a50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13579e=>{if('formatBlock'!=_0x13579e['type'])return;const {data:_0x1e2f83}=_0x13579e;if(_0x1e2f83&&'htmlEmbed'==_0x1e2f83['commandName']){const _0x49161c=c(_0x33c453,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x33c453,'*Change\x20%0\x20content*',_0x49161c)};}});}}class rt extends _0x17eefb{['afterInit'](){const _0x18a3be=this['editor'];if(!_0x18a3be['plugins']['has']('ImageEditing'))return;const _0x1ca639=_0x18a3be['plugins']['get']('TrackChangesEditing'),_0x2b71d6=_0x18a3be['plugins']['get']('ImageUtils'),_0x129792=_0x18a3be['locale'];_0x1ca639['enableCommand']('insertImage'),_0x1ca639['descriptionFactory']['registerElementLabel']('imageBlock',_0x1fb8a2=>c(_0x129792,'ELEMENT_IMAGE',_0x1fb8a2)),_0x1ca639['descriptionFactory']['registerElementLabel']('imageInline',_0x22f61c=>c(_0x129792,'ELEMENT_INLINE_IMAGE',_0x22f61c)),_0x1ca639['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x129792,'ELEMENT_CAPTION')),_0x18a3be['plugins']['has']('ImageUploadEditing')&&_0x1ca639['enableCommand']('uploadImage'),_0x18a3be['plugins']['has']('ImageBlockEditing')&&_0x18a3be['plugins']['has']('ImageInlineEditing')&&(_0x1ca639['enableCommand']('imageTypeInline',(_0x5a7698,_0x3cc5a9)=>{const _0xc62d1e=_0x2b71d6['getClosestSelectedImageElement'](_0x18a3be['model']['document']['selection']);_0x18a3be['model']['change'](()=>{_0x1ca639['markBlockFormat'](_0xc62d1e,{'commandName':'imageTypeInline','commandParams':[_0x3cc5a9]},[],'convertBlockImageToInline');});}),_0x1ca639['enableCommand']('imageTypeBlock',(_0x416608,_0x1c7883)=>{_0x18a3be['model']['change'](_0x98c523=>{let _0x5e5cfd=_0x2b71d6['getClosestSelectedImageElement'](_0x18a3be['model']['document']['selection']),_0xa5ecff=_0x98c523['createRangeOn'](_0x5e5cfd);const _0x340761=_0x392a8a['fromPosition'](_0xa5ecff['start'],'toPrevious'),_0x1eb690=_0x392a8a['fromPosition'](_0xa5ecff['end'],'toNext');_0x1ca639['forceDefaultExecution'](()=>_0x416608(_0x1c7883)),_0x5e5cfd=_0x2b71d6['getClosestSelectedImageElement'](_0x18a3be['model']['document']['selection']),_0xa5ecff=_0x98c523['createRangeOn'](_0x5e5cfd);const _0xe08709=_0x98c523['createRange'](_0x340761,_0x1eb690);_0x340761['detach'](),_0x1eb690['detach'](),_0x1ca639['markBlockFormat'](_0x5e5cfd,{'commandName':'imageTypeInline','commandParams':[_0x1c7883]},[],'convertInlineImageToBlock'),_0xe08709['start']['isBefore'](_0xa5ecff['start'])&&_0x1ca639['markInsertion'](_0x98c523['createRange'](_0xe08709['start'],_0xa5ecff['start']),'convertInlineImageToBlock'),_0xa5ecff['end']['isBefore'](_0xe08709['end'])&&_0x1ca639['markInsertion'](_0x98c523['createRange'](_0xa5ecff['end'],_0xe08709['end']),'convertInlineImageToBlock');});}),_0x1ca639['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1ca639['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1ca639['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1ca639['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1ca639['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1ca639['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x558637])=>{const _0x53f931=_0x1ca639['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1c1903=_0x558637['start'],_0x3b4fb9=_0x558637['end'];const _0x3eaa0c=_0x18a3be['model']['schema']['getNearestSelectionRange'](_0x1c1903,'backward'),_0x57b0dd=_0x18a3be['model']['schema']['getNearestSelectionRange'](_0x3b4fb9,'forward');_0x3eaa0c['isCollapsed']&&(_0x1c1903=_0x3eaa0c['start']),_0x57b0dd['isCollapsed']&&(_0x3b4fb9=_0x57b0dd['end']),_0x53f931([_0x18a3be['model']['createRange'](_0x1c1903,_0x3b4fb9)]);}),_0x1ca639['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xdd188a),_0x1ca639['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xdd188a)),_0x18a3be['plugins']['has']('ImageCaptionEditing')&&(_0x1ca639['enableCommand']('toggleImageCaption',(_0x557cfe,_0x2a59e4)=>{const _0x25fcca=_0x18a3be['plugins']['get']('ImageCaptionUtils');let _0x54bf4c=_0x2b71d6['getClosestSelectedImageElement'](_0x18a3be['model']['document']['selection']),_0x41f090=_0x25fcca['getCaptionFromImageModelElement'](_0x54bf4c);_0x18a3be['model']['change'](()=>{if(_0x41f090)return void _0x1ca639['markDeletion'](_0x18a3be['model']['createRangeOn'](_0x41f090));const _0x3c853b=_0x2b71d6['isBlockImage'](_0x54bf4c);_0x557cfe(_0x2a59e4),_0x54bf4c=_0x2b71d6['getClosestSelectedImageElement'](_0x18a3be['model']['document']['selection']),_0x41f090=_0x25fcca['getCaptionFromImageModelElement'](_0x54bf4c),_0x1ca639['markInsertion'](_0x18a3be['model']['createRangeOn'](_0x41f090),_0x3c853b?null:'imageCaption');});}),_0x1ca639['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xdd188a));const _0x18e8d2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ead53(_0x248956,_0x25df05){const _0x1fa54e=_0x18e8d2['findIndex'](({type:_0x491610,subType:_0x3e419d})=>_0x248956['type']==_0x491610&&_0x248956['subType']==_0x3e419d),_0x2c58cf=_0x18e8d2['findIndex'](({type:_0x139652,subType:_0x3136ac})=>_0x25df05['type']==_0x139652&&_0x25df05['subType']==_0x3136ac);if(_0x1fa54e<0x0||_0x2c58cf<0x0)return!0x1;const _0x20d802=_0x248956['getFirstRange'](),_0x4cfbd4=_0x25df05['getFirstRange']();if((0x0==_0x1fa54e||0x1==_0x1fa54e)&&0x2==_0x2c58cf&&_0x20d802['isIntersecting'](_0x4cfbd4))return!0x0;if(0x2==_0x1fa54e&&0x3==_0x2c58cf){const _0x24769b=_0x1ca639['_findSuggestions'](_0x20d802,'insertion')['filter'](({suggestion:_0x57806e,meta:_0x3a3960})=>_0x3a3960['isOwn']&&'convertInlineImageToBlock'==_0x57806e['subType']);if(_0x24769b['length']>0x1&&_0x4cfbd4['end']['isEqual'](_0x20d802['start']))return!0x0;if(0x1==_0x24769b['length']&&(_0x20d802['start']['isEqual'](_0x4cfbd4['end'])||_0x20d802['end']['isEqual'](_0x4cfbd4['start'])))return!0x0;}if(0x3==_0x1fa54e&&0x3==_0x2c58cf&&_0x20d802['start']['isBefore'](_0x4cfbd4['start'])){const _0x5bc747=_0x20d802['end']['nodeAfter'],_0x2e2581=_0x4cfbd4['start']['nodeBefore'];return _0x2b71d6['isBlockImage'](_0x5bc747)&&_0x5bc747===_0x2e2581;}return!0x1;}function _0xdd188a(_0xe834,_0x1de81c){return _0x4ead53(_0xe834,_0x1de81c)?[_0xe834,_0x1de81c]:_0x4ead53(_0x1de81c,_0xe834)?[_0x1de81c,_0xe834]:null;}_0x18a3be['plugins']['has']('ImageResize')&&(_0x1ca639['enableDefaultAttributesIntegration']('resizeImage'),_0x1ca639['registerBlockAttribute']('resizedWidth'),_0x1ca639['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x129792,'FORMAT_IMAGE_SIZE'))),_0x18a3be['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1ca639['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1ca639['registerBlockAttribute']('alt')),_0x18a3be['plugins']['has']('PictureEditing')&&(_0x1ca639['registerBlockAttribute']('sources'),_0x1ca639['descriptionFactory']['registerDescriptionCallback'](_0x19fb05=>{if('attribute'!=_0x19fb05['type'])return;const {data:_0x22e596}=_0x19fb05;return _0x22e596&&'sources'==_0x22e596['key']?{'type':'format','content':''}:void 0x0;})),_0x18a3be['plugins']['has']('ImageSizeAttributes')&&(_0x1ca639['registerBlockAttribute']('width'),_0x1ca639['registerBlockAttribute']('height'),_0x1ca639['descriptionFactory']['registerDescriptionCallback'](_0x4ed17b=>{if('attribute'!=_0x4ed17b['type'])return;const {data:_0xa4208e}=_0x4ed17b;return!_0xa4208e||'width'!=_0xa4208e['key']&&'height'!=_0xa4208e['key']?void 0x0:{'type':'format','content':''};})),_0x1ca639['descriptionFactory']['registerDescriptionCallback'](_0x16d29d=>{if(!!_0x18e8d2['find'](({type:_0xf9a79a,subType:_0x53ac22})=>_0x16d29d['type']==_0xf9a79a&&_0x16d29d['subType']==_0x53ac22))return _0x16d29d['previous']?{}:void 0x0;}),_0x1ca639['descriptionFactory']['registerDescriptionCallback'](_0x1b069c=>{if('insertion'==_0x1b069c['type']||'deletion'==_0x1b069c['type']){const _0x2d03f7=_0x1b069c['getContainedElement']();if(_0x2d03f7&&_0x2d03f7['is']('element','caption'))return{'type':'insertion'==_0x1b069c['type']?'addObject':'removeObject','element':_0x2d03f7,'quantity':0x1};}}),_0x1ca639['descriptionFactory']['registerDescriptionCallback'](_0x27008d=>'formatBlock'==_0x27008d['type']&&'convertInlineImageToBlock'==_0x27008d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x27008d['type']&&'convertBlockImageToInline'==_0x27008d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1ca639['descriptionFactory']['registerDescriptionCallback'](_0x958723=>{if('attribute'!=_0x958723['type'])return;const {data:_0x1bf8c6}=_0x958723;if(!_0x1bf8c6||'alt'!=_0x1bf8c6['key'])return;const _0xfcf5fd=_0x1bf8c6['newValue'];return _0xfcf5fd?{'type':'format','content':c(_0x129792,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xfcf5fd+'\x22')}:{'type':'format','content':c(_0x129792,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ba9c8=this['editor'],_0x43dd6e=_0x5ba9c8['locale'];_0x5ba9c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5885bd=>{if('formatBlock'!=_0x5885bd['type']&&'formatInline'!=_0x5885bd['type'])return;const {data:_0x377dd}=_0x5885bd;if(_0x377dd){if('imageTextAlternative'==_0x377dd['commandName']){const _0x49720c=_0x377dd['commandParams'][0x0]['newValue'];return _0x49720c?{'type':'format','content':c(_0x43dd6e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x49720c+'\x22')}:{'type':'format','content':c(_0x43dd6e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x377dd['commandName']){const _0x5d7ba9=_0x377dd['commandParams'][0x0]['width'];return _0x5d7ba9?{'type':'format','content':c(_0x43dd6e,'*Set\x20image\x20width:*\x20%0',_0x5d7ba9)}:{'type':'format','content':c(_0x43dd6e,'*Reset\x20image\x20width*')};}}});}}class at extends _0x17eefb{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x49af67=this['editor']['locale'],_0x36ddf8=this['editor']['plugins']['get']('TrackChangesEditing');_0x36ddf8['enableDefaultAttributesIntegration']('replaceImageSource'),_0x36ddf8['registerBlockAttribute']('src'),_0x36ddf8['descriptionFactory']['registerDescriptionCallback'](_0x2fea46=>{if('attribute'!=_0x2fea46['type'])return;const {data:_0x349a45}=_0x2fea46;return _0x349a45&&'src'==_0x349a45['key']?_0x349a45['newValue']&&_0x349a45['oldValue']?{'type':'format','content':c(_0x49af67,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x25e493=this['editor']['plugins']['get']('TrackChangesEditing');_0x25e493['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x25e493['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x25e493['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x25e493['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdb4136=this['editor'],_0x56c698=_0xdb4136['locale'];_0xdb4136['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ab3e5=>{if('formatBlock'!=_0x1ab3e5['type']&&'formatInline'!=_0x1ab3e5['type'])return;const {data:_0x2cc7d3}=_0x1ab3e5;if(!_0x2cc7d3||'replaceImageSource'!=_0x2cc7d3['commandName'])return;return{'type':'format','content':c(_0x56c698,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x17eefb{['afterInit'](){const _0x1635ac=this['editor'];if(!_0x1635ac['plugins']['has']('ImageStyleEditing'))return;const _0x1e042f=_0x1635ac['plugins']['get']('TrackChangesEditing'),_0x13e43c=_0x1635ac['plugins']['get']('ImageUtils'),_0x41b3c4={};_0x1e042f['enableCommand']('imageStyle',(_0xe42a1b,_0x4e26dc)=>{const _0x522389=_0x1635ac['plugins']['get']('Users')['me'],_0x4fa4ba=_0x1635ac['commands']['get']('imageStyle');let _0x54f01f=_0x13e43c['getClosestSelectedImageElement'](_0x1635ac['model']['document']['selection']),_0x4cd15a=_0x1635ac['model']['createRangeOn'](_0x54f01f),_0x541f53=_0x4fa4ba['value'];if(_0x541f53==_0x4e26dc['value'])return;const _0xa36c25={'commandName':'imageStyle','commandParams':[_0x4e26dc],'formatGroupId':_0x3dca8a()};_0x1635ac['model']['change'](()=>{if(_0x1e042f['getSuggestions']()['filter'](_0x7abaf6=>_0x7abaf6['isInContent']&&_0x522389==_0x7abaf6['author']&&('formatBlock'==_0x7abaf6['type']||'formatInline'==_0x7abaf6['type'])&&('imageStylePreApply'==_0x7abaf6['subType']||'imageStylePostApply'==_0x7abaf6['subType'])&&_0x7abaf6['getFirstRange']()['isEqual'](_0x4cd15a))['forEach'](_0x19ce96=>_0x1e042f['discardSuggestion'](_0x19ce96['head'])),_0x54f01f=_0x13e43c['getClosestSelectedImageElement'](_0x1635ac['model']['document']['selection']),_0x4cd15a=_0x1635ac['model']['createRangeOn'](_0x54f01f),_0x4fa4ba['refresh'](),_0x1635ac['commands']['get']('imageTypeInline')['refresh'](),_0x1635ac['commands']['get']('imageTypeBlock')['refresh'](),_0x541f53=_0x4fa4ba['value'],_0x541f53!=_0x4e26dc['value'])return _0x13e43c['isInlineImage'](_0x54f01f)&&_0x4fa4ba['shouldConvertImageType'](_0x4e26dc['value'],_0x54f01f)?(_0xe42a1b({..._0x4e26dc,'setImageSizes':!0x1}),_0x54f01f=_0x13e43c['getClosestSelectedImageElement'](_0x1635ac['model']['document']['selection']),void _0x1e042f['markBlockFormat'](_0x54f01f,{..._0xa36c25,'commandReversedParams':[{'value':_0x541f53||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x13e43c['isBlockImage'](_0x54f01f)?_0x1e042f['markBlockFormat'](_0x54f01f,_0xa36c25,[],'imageStylePostApply'):_0x1e042f['markInlineFormat'](_0x4cd15a,_0xa36c25,'imageStylePostApply'));});});for(const _0x511ec1 of _0x1635ac['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x41b3c4[_0x511ec1['name']]=_0x511ec1['title']['toLowerCase']();_0x1e042f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1e042f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1e042f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1e042f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2bd788])=>{_0x13e43c['setImageNaturalSizeAttributes'](_0x2bd788['getContainedElement']());}),_0x1e042f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x9a70f9,_0x2cb377)=>{_0x1e042f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x9a70f9,{'commandName':_0x2cb377['commandName'],'commandParams':_0x2cb377['commandReversedParams']});}),_0x1e042f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4f287e,_0x1bba64){if(_0x104f6b(_0x4f287e,_0x1bba64))return[_0x4f287e,_0x1bba64];if(_0x104f6b(_0x1bba64,_0x4f287e))return[_0x1bba64,_0x4f287e];return null;});const _0x30e254=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x104f6b(_0x473693,_0x269a6e){const _0x5ab1b7=_0x30e254['findIndex'](({type:_0x140c73,subType:_0x4dcb1d})=>_0x473693['type']==_0x140c73&&_0x473693['subType']==_0x4dcb1d),_0xb3aedf=_0x30e254['findIndex'](({type:_0x28a884,subType:_0xe18f2a})=>_0x269a6e['type']==_0x28a884&&_0x269a6e['subType']==_0xe18f2a);if(_0x5ab1b7<0x0||_0xb3aedf<0x0)return!0x1;const _0x518b2f=_0x473693['getFirstRange'](),_0x32998e=_0x269a6e['getFirstRange']();if((0x0==_0x5ab1b7||0x1==_0x5ab1b7)&&0x2==_0xb3aedf&&_0x518b2f['isIntersecting'](_0x32998e))return!0x0;if(0x2==_0x5ab1b7&&0x3==_0xb3aedf){const _0x49ff86=_0x1e042f['_findSuggestions'](_0x518b2f,'insertion')['filter'](({suggestion:_0x5d6476,meta:_0x4d53dd})=>_0x4d53dd['isOwn']&&'convertInlineImageToBlock'==_0x5d6476['subType']);if(_0x49ff86['length']>0x1&&_0x32998e['end']['isEqual'](_0x518b2f['start']))return!0x0;if(0x1==_0x49ff86['length']&&(_0x518b2f['start']['isEqual'](_0x32998e['end'])||_0x518b2f['end']['isEqual'](_0x32998e['start'])))return!0x0;}if(0x3==_0x5ab1b7&&0x3==_0xb3aedf&&_0x518b2f['start']['isBefore'](_0x32998e['start'])){const _0x1078bb=_0x518b2f['end']['nodeAfter'],_0x1e4e26=_0x32998e['start']['nodeBefore'];return _0x13e43c['isBlockImage'](_0x1078bb)&&_0x1078bb===_0x1e4e26;}return!0x1;}_0x1635ac['model']['document']['registerPostFixer'](()=>{let _0x414750=!0x1;const _0x13b8ee=Array['from'](_0x1635ac['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x44e5d7,data:_0x80ec82}of _0x13b8ee){const {group:_0xc3e30c,type:_0x32dca6,subType:_0x1f1973,id:_0x299b93}=_0x1e042f['_splitMarkerName'](_0x44e5d7);if('suggestion'==_0xc3e30c&&_0x1e042f['hasSuggestion'](_0x299b93)){if('formatBlock'==_0x32dca6&&('imageStylePreApply'==_0x1f1973||'imageStylePostApply'==_0x1f1973)){const _0x5d7579=_0x1e042f['getSuggestion'](_0x299b93);if(_0x80ec82['newRange']){const _0x362476=_0x5d7579['getFirstRange']()['getContainedElement']();if(_0x13e43c['isBlockImage'](_0x362476))continue;_0x1e042f['discardSuggestion'](_0x5d7579),_0x414750=!0x0;}}if('insertion'==_0x32dca6&&'imageCaption'==_0x1f1973&&!_0x80ec82['newRange']){const _0x90e753=_0x1e042f['getSuggestion'](_0x299b93);_0x90e753['next']&&_0x90e753['next']['isInContent']&&(_0x1e042f['discardSuggestion'](_0x90e753['next']),_0x414750=!0x0);}}}return _0x414750;}),this['_registerLegacyDescription'](_0x41b3c4);}['_registerLegacyDescription'](_0x64c60f){const _0x5c53e1=this['editor'],_0x38a52e=_0x5c53e1['locale'];_0x5c53e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf8e421=>{if('formatBlock'!=_0xf8e421['type']&&'formatInline'!=_0xf8e421['type'])return;const {data:_0x3db1d2}=_0xf8e421;if(!_0x3db1d2||'imageStyle'!=_0x3db1d2['commandName'])return;const _0x1883bc=_0x3db1d2['commandParams'][0x0]['value'];return _0x322eff('side'===_0x1883bc?c(_0x38a52e,'FORMAT_SIDE_IMAGE'):_0x64c60f[_0x1883bc]||_0x1883bc);function _0x322eff(_0x439fe5){return{'type':'format','content':c(_0x38a52e,'*Format:*\x20%0',_0x439fe5)};}});}}class ut extends _0x17eefb{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x344594){super(_0x344594),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x22e398=this['editor'],_0x133dd2=_0x22e398['commands']['get']('importWord'),_0x4af4c1=_0x22e398['commands']['get']('trackChanges');_0x133dd2&&(_0x133dd2['on']('execute',(_0xa8b41a,[,_0x4af7dc])=>{this['_trackChangesValueDuringImport']=_0x4af4c1['value'],_0x4af7dc['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x133dd2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x133dd2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4af4c1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x22e398['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x19cc6f,_0x2e2175){const {suggestions:_0xd650df}=_0x2e2175,_0x3d2ae6=this['editor']['commands']['get']('trackChanges'),_0x2bcdaa=_0x3d2ae6['value'];this['_trackChangesValueDuringImport']!==_0x2bcdaa&&(_0x3d2ae6['execute'](),this['_trackChangesExecuted']=!0x0),_0xd650df&&_0xd650df['forEach'](({id:_0x58ecae,type:_0x28342a,author:_0x289670,created_at:_0x321785})=>{const _0x30ee5a={'id':_0x58ecae,'type':_0x28342a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x289670,'createdAt':_0x321785?new Date(_0x321785):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x30ee5a);});}}class ft extends _0x17eefb{['afterInit'](){const _0x33ada6=this['editor'],_0x1e1819=_0x33ada6['plugins']['get']('TrackChangesEditing');if(_0x33ada6['plugins']['has']('IndentEditing')&&(_0x1e1819['enableCommand']('indent'),_0x1e1819['enableCommand']('outdent')),_0x33ada6['plugins']['has']('IndentBlock')){for(const _0x41817f of['indentBlock','outdentBlock'])_0x1e1819['enableDefaultAttributesIntegration'](_0x41817f);}const _0x296b4a=_0x33ada6['locale'];_0x1e1819['registerBlockAttribute']('blockIndent'),_0x1e1819['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x296b4a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x346aa8=this['editor'],_0x42af39=_0x346aa8['locale'],_0x1448f1=_0x346aa8['plugins']['get']('TrackChangesEditing');_0x1448f1['descriptionFactory']['registerDescriptionCallback'](_0x48ad51=>{if('formatBlock'!=_0x48ad51['type'])return;const {data:_0x577e8f}=_0x48ad51;if(!_0x577e8f)return;if('indentBlock'!=_0x577e8f['commandName']&&'outdentBlock'!=_0x577e8f['commandName'])return;const _0x1eff56=_0x48ad51['getItems']()[0x0],_0xf3548d=_0x1448f1['descriptionFactory']['getItemLabel'](_0x1eff56);return'indentBlock'==_0x577e8f['commandName']?{'type':'format','content':c(_0x42af39,'*Indent:*\x20%0',_0xf3548d)}:'outdentBlock'==_0x577e8f['commandName']?{'type':'format','content':c(_0x42af39,'*Outdent:*\x20%0',_0xf3548d)}:void 0x0;});}}class ht extends _0x17eefb{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x17eefb{['afterInit'](){const _0x1e69ee=this['editor'];if(!_0x1e69ee['plugins']['has']('LinkEditing'))return;const _0x8dd9e6=_0x1e69ee['plugins']['get']('TrackChangesEditing'),_0x116dc0=_0x1e69ee['commands']['get']('link');_0x8dd9e6['enableDefaultAttributesIntegration']('link'),_0x8dd9e6['enableDefaultAttributesIntegration']('unlink'),_0x8dd9e6['registerInlineAttribute']('linkHref');for(const _0x3d95c7 of _0x116dc0['manualDecorators'])_0x8dd9e6['registerInlineAttribute'](_0x3d95c7['id']),_0x8dd9e6['descriptionFactory']['registerAttributeLabel'](_0x3d95c7['id'],'link\x20('+_0x3d95c7['label']['toLowerCase']()+')');_0x8dd9e6['descriptionFactory']['registerDescriptionCallback'](_0x18e893=>{if('attribute'!=_0x18e893['type'])return;const {data:_0x23b7be}=_0x18e893;if(!_0x23b7be||'linkHref'!=_0x23b7be['key'])return;const _0x2a4105=_0x23b7be['newValue'],_0x5231ed=_0x1e69ee['locale'];return{'type':'format','content':null==_0x2a4105?c(_0x5231ed,'*Remove\x20link*'):c(_0x5231ed,'*Set\x20link:*\x20%0','\x22'+_0x2a4105+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x488083=this['editor'],_0x43a25a=_0x488083['locale'];_0x488083['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e529f=>{if('formatInline'!=_0x3e529f['type'])return;const {data:_0x1011c9}=_0x3e529f;if(_0x1011c9){if('link'==_0x1011c9['commandName']){const _0x30dfe5=_0x1011c9['commandParams'][0x0];return{'type':'format','content':c(_0x43a25a,'*Set\x20link:*\x20%0','\x22'+_0x30dfe5+'\x22')};}return'unlink'==_0x1011c9['commandName']?{'type':'format','content':c(_0x43a25a,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x17eefb{['afterInit'](){const _0xa9008f=this['editor'],_0x1378a1=_0xa9008f['locale'];if(!_0xa9008f['plugins']['has']('LegacyListEditing'))return;const _0x578696=_0xa9008f['plugins']['get']('TrackChangesEditing'),_0x4262b8=_0xa9008f['plugins']['has']('LegacyTodoListEditing');function _0x239b0b(_0x1bc85d){return()=>{const _0xd78d4d=_0xa9008f['model']['document']['selection'],_0x6469cd=_0xa9008f['commands']['get'](_0x1bc85d);if(_0x6469cd['value'])return void _0xa9008f['execute']('paragraph',{});const _0x11bd20=_0x1bc85d['slice'](0x0,-0x4),_0x50019a=function(_0x591c51,_0x5e96ee,_0x377651){let _0x173895=Array['from'](_0x591c51)['filter'](_0xff4da0=>function(_0x403a68,_0x376cfa){return _0x376cfa['checkChild'](_0x403a68['parent'],'listItem')&&!_0x376cfa['isObject'](_0x403a68);}(_0xff4da0,_0x377651));_0x173895=_0x173895['filter'](_0x203321=>!_0x203321['is']('element','listItem')||_0x203321['getAttribute']('listType')!=_0x5e96ee);const _0x235c3d=new Set();for(const _0xc0c535 of _0x173895)_0xc0c535['is']('element','listItem')?_0x235c3d['add'](Le(_0xc0c535)):_0x235c3d['add'](_0xc0c535);return Array['from'](_0x235c3d);}(_0xd78d4d['getSelectedBlocks'](),_0x11bd20,_0xa9008f['model']['schema']);_0xa9008f['model']['change'](()=>{for(const _0x4d528a of _0x50019a)_0x578696['markBlockFormat'](_0x4d528a,{'commandName':_0x1bc85d,'commandParams':[{'forceValue':!_0x6469cd['value']}],'formatGroupId':'blockName'},Ee(_0x4d528a));});};}function _0x15675e(_0x9aab5b){return()=>{const _0xc4f3ab=function(_0x3de049){let _0x3a8f96=Array['from'](_0x3de049);const _0x5e31e0=_0x3a8f96['findIndex'](_0x4764dc=>'listItem'!=_0x4764dc['name']);return _0x5e31e0>-0x1&&(_0x3a8f96=_0x3a8f96['slice'](0x0,_0x5e31e0)),_0x3a8f96;}(_0xa9008f['model']['document']['selection']['getSelectedBlocks']()),_0x5e9f0b=_0xa9008f['model']['createRange'](_0xa9008f['model']['createPositionAt'](_0xc4f3ab[0x0],'before'),_0xa9008f['model']['createPositionAt'](_0xc4f3ab[_0xc4f3ab['length']-0x1],'end'));_0xa9008f['model']['change'](()=>{_0x578696['markBlockFormat'](_0x5e9f0b,{'commandName':_0x9aab5b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x22f763){const _0x287f5e=new Set();for(const _0x359333 of _0x22f763){let _0x332165=_0x359333['nextSibling'];for(;_0x332165&&_0x332165['getAttribute']('listIndent')>_0x359333['getAttribute']('listIndent');)_0x287f5e['add'](_0x332165),_0x332165=_0x332165['nextSibling'];}return Array['from'](_0x287f5e);}(_0xc4f3ab));});};}_0x578696['enableCommand']('numberedList',_0x239b0b('numberedList')),_0x578696['enableCommand']('bulletedList',_0x239b0b('bulletedList')),_0x4262b8&&_0x578696['enableCommand']('todoList',_0x239b0b('todoList')),_0x578696['enableCommand']('indentList',_0x15675e('indentList')),_0x578696['enableCommand']('outdentList',_0x15675e('outdentList')),_0x4262b8&&_0x578696['enableCommand']('checkTodoList',()=>{const _0x5e24b4=_0xa9008f['commands']['get']('checkTodoList'),_0x2b871c=Array['from'](_0x5e24b4['_selectedElements']);_0x2b871c['filter'](_0x4e248c=>_0x4e248c['getAttribute']('todoListChecked')!=_0x5e24b4['value']),_0xa9008f['model']['change'](()=>{for(const _0x578f31 of _0x2b871c)_0x578696['markBlockFormat'](_0x578f31,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5e24b4['value']}]});});}),_0x578696['descriptionFactory']['registerElementLabel']('listItem',_0x197e92=>c(_0x1378a1,'ELEMENT_LIST_ITEM',_0x197e92)),_0x578696['descriptionFactory']['registerDescriptionCallback'](_0x434703=>{if('formatBlock'!=_0x434703['type']&&'formatInline'!=_0x434703['type'])return;const {data:_0x52b550}=_0x434703;if(_0x52b550){if('numberedList'==_0x52b550['commandName']||'bulletedList'==_0x52b550['commandName']||'todoList'==_0x52b550['commandName'])switch(_0x52b550['commandName']['replace']('List','')){case'bulleted':return _0x1002df(c(_0x1378a1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1002df(c(_0x1378a1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1002df(c(_0x1378a1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x52b550['commandName'])return{'type':'format','content':c(_0x1378a1,'*Indent:*\x20%0',c(_0x1378a1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x52b550['commandName'])return{'type':'format','content':c(_0x1378a1,'*Outdent:*\x20%0',c(_0x1378a1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x52b550['commandName'])return _0x52b550['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1378a1,'*Check\x20item*')}:{'type':'format','content':c(_0x1378a1,'*Uncheck\x20item*')};}function _0x1002df(_0x4ac983){return{'type':'format','content':c(_0x1378a1,'*Change\x20to:*\x20%0',_0x4ac983)};}});}}function Le(_0x15948f){const _0x3ff09c=_0x15948f['getAttribute']('listIndent');if(0x0==_0x3ff09c)return _0x15948f;let _0x9115c9=_0x15948f;for(;_0x15948f['previousSibling']&&_0x15948f['previousSibling']['is']('element','listItem');){const _0x6062a6=_0x15948f['previousSibling']['getAttribute']('listIndent');if(_0x6062a6==_0x3ff09c)_0x9115c9=_0x15948f['previousSibling'];else{if(_0x6062a6<_0x3ff09c)break;}_0x15948f=_0x15948f['previousSibling'];}return _0x9115c9;}function Ee(_0x31fea6){const _0x5924d5=[];if(_0x31fea6['is']('element','listItem')&&_0x31fea6['getAttribute']('listIndent')>0x0){let _0x4c2e61=_0x31fea6['nextSibling'];for(;_0x4c2e61&&'listItem'==_0x4c2e61['name']&&_0x4c2e61['getAttribute']('listIndent')==_0x31fea6['getAttribute']('listIndent');)_0x5924d5['push'](_0x4c2e61),_0x4c2e61=_0x4c2e61['nextSibling'];}return _0x5924d5;}class Q extends _0x17eefb{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x56b690=this['editor']['config']['get']('list.properties'),_0x45421c=this['editor']['plugins']['get']('TrackChangesEditing');_0x56b690['styles']&&_0x45421c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x56b690['reversed']&&_0x45421c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x56b690['startIndex']&&_0x45421c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x45421c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x534293,_0x39f3c9={}){const _0x25f301=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19c332=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x25f301['markMultiRangeBlockFormat'](_0x19c332,{'commandName':'listStyle','commandParams':[{'type':_0x39f3c9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x181cf3,_0x3f1c9b={}){const _0x3f27b8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x508f77=this['_getSuggestionBlocks'](_0x4c693e=>_0x4c693e['is']('element','listItem')&&'numbered'===_0x4c693e['getAttribute']('listType'));if(_0x508f77['length']<0x1)return;const _0x3e407e=_0x508f77['map'](_0x1e0bf8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e0bf8,'before'),this['editor']['model']['createPositionAt'](_0x1e0bf8,0x0)));this['editor']['model']['change'](()=>{_0x3f27b8['markMultiRangeBlockFormat'](_0x3e407e,{'commandName':'listReversed','commandParams':[{'reversed':_0x3f1c9b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4adbc4,_0x4ac044={}){const _0x3aacf7=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd5f504=this['_getSuggestionBlocks'](_0x50d6fd=>_0x50d6fd['is']('element','listItem')&&'numbered'===_0x50d6fd['getAttribute']('listType'));if(_0xd5f504['length']<0x1)return;const _0x560e02=_0xd5f504['map'](_0x2764b9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2764b9,'before'),this['editor']['model']['createPositionAt'](_0x2764b9,0x0)));this['editor']['model']['change'](()=>{_0x3aacf7['markMultiRangeBlockFormat'](_0x560e02,{'commandName':'listStart','commandParams':[{'startIndex':_0x4ac044['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xab8b7a){if('formatBlock'!=_0xab8b7a['type']&&'formatInline'!=_0xab8b7a['type'])return;const _0x254fd3=this['editor']['locale'],{data:_0x12bd11}=_0xab8b7a;if(!_0x12bd11)return;let _0x187c96,_0x1a6b18;switch(_0x12bd11['commandName']){case'listStyle':_0x187c96='*Change\x20to:*\x20%0',_0x1a6b18={'type':'format','content':c(_0x254fd3,_0x187c96,c(_0x254fd3,this['_getTranslationKeyForListStyle'](_0x12bd11['commandParams'][0x0]['type'])))};break;case'listReversed':_0x187c96=_0x12bd11['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1a6b18={'type':'format','content':c(_0x254fd3,_0x187c96)};break;case'listStart':_0x187c96='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1a6b18={'type':'format','content':c(_0x254fd3,_0x187c96,_0x12bd11['commandParams'][0x0]['startIndex'])};}return _0x1a6b18;}['_getSuggestionBlocksForListStyle'](){const _0x28b579=this['editor']['plugins']['get']('LegacyListUtils');let _0x21a80f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x21a80f[0x0]?.['is']('element','listItem')&&_0x21a80f['unshift'](..._0x28b579['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x21a80f[_0x21a80f['length']-0x1]?.['is']('element','listItem')&&_0x21a80f['push'](..._0x28b579['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x21a80f=[...new Set(_0x21a80f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x21a80f=_0x21a80f['filter'](_0x42ba8a=>_0x42ba8a['is']('element','listItem'))),_0x21a80f;}['_getSuggestionBlocks'](_0xacf805){const _0x32d148=this['editor']['plugins']['get']('LegacyListUtils');let _0x4fdf6d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xacf805)['map'](_0xd221=>{const _0x4d067f=this['editor']['model']['createPositionAt'](_0xd221,0x0);return[..._0x32d148['getSiblingNodes'](_0x4d067f,'backward'),..._0x32d148['getSiblingNodes'](_0x4d067f,'forward')];})['flat']();return _0x4fdf6d=[...new Set(_0x4fdf6d)],_0x4fdf6d;}['_getTranslationKeyForListStyle'](_0x1f7628){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1f7628)||'default')['toUpperCase']()+'_LIST_'+_0x1f7628['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x17eefb{['afterInit'](){const _0x3631e5=this['editor'];if(!_0x3631e5['plugins']['has']('MediaEmbedEditing'))return;const _0x2d6d87=_0x3631e5['plugins']['get']('TrackChangesEditing'),_0x59f39e=_0x3631e5['locale'];_0x2d6d87['enableCommand']('mediaEmbed'),_0x2d6d87['descriptionFactory']['registerElementLabel']('media',_0x13d7a9=>c(_0x59f39e,'ELEMENT_MEDIA',_0x13d7a9)),_0x3631e5['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x10043,{writer:_0x3517c3,options:_0x2ea8b8})=>{if(_0x2ea8b8['showSuggestionHighlights'])return _0x3517c3['createEmptyElement']('div');},'converterPriority':'high'}),_0x3631e5['data']['downcastDispatcher']['on']('attribute:url:media',(_0x16a3d7,_0x2fa720,_0x46107e)=>{_0x46107e['options']['showSuggestionHighlights']&&_0x16a3d7['stop']();},{'priority':'high'});}}class pt extends _0x17eefb{['afterInit'](){const _0x417e82=this['editor'];_0x417e82['plugins']['has']('MentionEditing')&&_0x417e82['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x17eefb{['afterInit'](){const _0x17a196=this['editor'];if(!_0x17a196['plugins']['has']('MergeFieldsEditing'))return;const _0x3f24f8=_0x17a196['plugins']['get']('TrackChangesEditing'),_0x1b0cc3=_0x17a196['locale'];_0x3f24f8['enableCommand']('insertMergeField'),_0x3f24f8['enableCommand']('insertMergeFieldBlock'),_0x3f24f8['enableCommand']('insertMergeFieldImage'),_0x3f24f8['descriptionFactory']['registerElementLabel']('mergeField',_0x1cf47e=>c(_0x1b0cc3,'ELEMENT_MERGE_FIELD',_0x1cf47e)),_0x3f24f8['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x187339=>c(_0x1b0cc3,'ELEMENT_MERGE_FIELD',_0x187339)),_0x3f24f8['descriptionFactory']['registerDescriptionCallback'](_0x221b55=>{if('insertion'!=_0x221b55['type']&&'deletion'!=_0x221b55['type'])return;const _0x149c55=_0x221b55['getContainedElement']();if(null==_0x149c55)return;const _0x1a9761=_0x17a196['plugins']['get']('MergeFieldsEditing');let _0xea2a9d;switch(_0x1a9761['getMergeFieldType'](_0x149c55)){case null:return;case'image':{const _0x38a64d=_0x1a9761['unwrapAffixes'](_0x149c55['getAttribute']('src'));_0xea2a9d=_0x1a9761['getLabel'](_0x38a64d)||_0x38a64d;break;}default:{const _0x1c435b=_0x149c55['getAttribute']('id');_0xea2a9d=_0x1a9761['getLabel'](_0x1c435b)||_0x1c435b;break;}}return'insertion'==_0x221b55['type']?{'type':'insertion','content':c(_0x1b0cc3,'*Insert:*\x20%0','\x22'+_0xea2a9d+'\x22\x20'+c(_0x1b0cc3,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x1b0cc3,'*Remove:*\x20%0','\x22'+_0xea2a9d+'\x22\x20'+c(_0x1b0cc3,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x17eefb{['afterInit'](){const _0xd5ef6d=this['editor'],_0x5b8f25=_0xd5ef6d['plugins']['get']('TrackChangesEditing');_0xd5ef6d['plugins']['has']('MultiLevelList')&&(_0x5b8f25['enableDefaultAttributesIntegration']('multiLevelList'),_0x5b8f25['registerBlockAttribute']('listMarkerStyle'),_0x5b8f25['descriptionFactory']['registerDescriptionCallback'](_0x9d68dc=>this['handleDescriptions'](_0x9d68dc)));}['handleDescriptions'](_0xadda9b){const _0x57b4a4=this['editor']['locale'],{data:_0x479df0}=_0xadda9b,_0x4b1c2f={'type':'format','content':''};if(_0x479df0&&'listMarkerStyle'==_0x479df0['key']){if(!_0x479df0['oldValue'])return{'type':'format','content':c(_0x57b4a4,'*Set\x20format:*\x20%0',c(_0x57b4a4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x479df0['newValue']+')'};if(!_0x479df0['newValue']){let _0x3248db=_0xadda9b['head'];for(;_0x3248db;){if(_0x3248db['data']&&'listType'==_0x3248db['data']['key']&&_0x3248db['data']['newValue'])return _0x4b1c2f;_0x3248db=_0x3248db['next'];}return{'type':'format','content':c(_0x57b4a4,'*Remove\x20format:*\x20%0',c(_0x57b4a4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x479df0['oldValue']+')'};}}}}class bt extends _0x17eefb{['afterInit'](){const _0x2409d2=this['editor'];if(!_0x2409d2['plugins']['has']('PageBreakEditing'))return;_0x2409d2['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4c07a2=_0x2409d2['plugins']['get']('TrackChangesEditing'),_0x5e660e=_0x2409d2['locale'];_0x4c07a2['descriptionFactory']['registerElementLabel']('pageBreak',_0x3f6b48=>c(_0x5e660e,'ELEMENT_PAGE_BREAK',_0x3f6b48));}}class yt extends _0x17eefb{['afterInit'](){const _0x5540c4=this['editor'];if(!_0x5540c4['plugins']['has']('Paragraph'))return;const _0x6c638a=_0x5540c4['locale'],_0x4b6204=_0x5540c4['plugins']['get']('TrackChangesEditing');_0x4b6204['descriptionFactory']['registerElementLabel']('paragraph',_0x5e55d7=>c(_0x6c638a,'ELEMENT_PARAGRAPH',_0x5e55d7)),_0x4b6204['enableDefaultAttributesIntegration']('paragraph'),_0x4b6204['enableCommand']('insertParagraph'),_0x5540c4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5540c4),{'priority':'highest'}),_0x5540c4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x28360c,_0x166772,_0x232484)=>{_0x232484['options']['showSuggestionHighlights']&&nr(_0x5540c4,{'showActiveMarker':!0x1})(_0x28360c,_0x166772,_0x232484);},{'priority':'highest'});const _0x31879c=_0x4b6204['descriptionFactory'];_0x31879c['registerDescriptionCallback'](_0x516612=>{if('insertion'!==_0x516612['type'])return;const {start:_0x438005,end:_0x3fed62}=_0x516612['getFirstRange']();if(!_0x438005['isTouching'](_0x3fed62)||!_0x438005['nodeAfter'])return;const _0x58f068=_0x5540c4['model']['schema'],_0x3b6545=_0x438005['nodeAfter'];return _0x58f068['isBlock'](_0x3b6545)&&!_0x58f068['isLimit'](_0x3b6545)&&_0x58f068['checkChild'](_0x3b6545,'$text')?{'type':'insertion','content':c(_0x6c638a,'*Insert:*\x20%0',_0x31879c['getItemLabel'](_0x3b6545,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa84460=this['editor'],_0x5a4160=_0xa84460['locale'];_0xa84460['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5aa2c1=>{if('formatBlock'!=_0x5aa2c1['type'])return;const {data:_0x3784d0}=_0x5aa2c1;return _0x3784d0&&'paragraph'==_0x3784d0['commandName']?{'type':'format','content':c(_0x5a4160,'*Change\x20to:*\x20%0',c(_0x5a4160,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1d1c0a,{showActiveMarker:_0x216ba2=!0x0}={}){return(_0x50f805,_0x1bb60e,_0x783e9b)=>{const _0x2688f2=_0x1d1c0a['plugins']['get']('TrackChangesEditing'),_0x523a86=_0x1bb60e['markerRange']['start'],_0x25ebb5=_0x1bb60e['markerRange']['end'],_0x3fef06=_0x1d1c0a['model']['schema'];if(!_0x523a86['isTouching'](_0x25ebb5)||!_0x523a86['nodeAfter'])return;const _0x2be4fd=_0x523a86['nodeAfter'];if(_0x3fef06['isBlock'](_0x2be4fd)&&!_0x3fef06['isLimit'](_0x2be4fd)&&_0x3fef06['checkChild'](_0x2be4fd,'$text')){if(!_0x783e9b['consumable']['consume'](_0x1bb60e['markerRange'],_0x50f805['name']))return;const {authorId:_0x50a9dd}=_0x2688f2['_splitMarkerName'](_0x1bb60e['markerName']),_0x280419=_0x783e9b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x50a9dd}),_0x2c34a9=_0x783e9b['mapper']['toViewPosition'](_0x25ebb5);_0x216ba2&&_0x2688f2['activeMarkers']['includes'](_0x1bb60e['markerName'])&&_0x783e9b['writer']['addClass']('ck-suggestion-marker--active',_0x280419),_0x783e9b['writer']['insert'](_0x2c34a9,_0x280419),_0x783e9b['mapper']['bindElementToMarker'](_0x280419,_0x1bb60e['markerName']);}};}class jt extends _0x17eefb{['afterInit'](){const _0x117fc4=this['editor'];_0x117fc4['commands']['get']('replaceSource')&&_0x117fc4['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x17eefb{['afterInit'](){const _0x14deea=this['editor'];if(!_0x14deea['plugins']['has']('RemoveFormatEditing'))return;_0x14deea['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53fb66=this['editor'];_0x53fb66['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36a083=>{if('formatBlock'!=_0x36a083['type']&&'formatInline'!=_0x36a083['type'])return;const {data:_0x15ae84}=_0x36a083;return _0x15ae84&&'removeFormat'==_0x15ae84['commandName']?{'type':'format','content':c(_0x53fb66['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x17eefb{['afterInit'](){const _0x231696=this['editor'];if(!_0x231696['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x46b325=_0x231696['plugins']['get']('TrackChangesEditing');_0x46b325['enableCommand']('goToPreviousRestrictedEditingException'),_0x46b325['enableCommand']('goToNextRestrictedEditingException');const _0x4ec913=_0x231696['plugins']['get']('RestrictedEditingModeEditing');_0x4ec913['enableCommand']('trackChanges'),_0x4ec913['enableCommand']('acceptSuggestion'),_0x4ec913['enableCommand']('discardSuggestion'),_0x4ec913['enableCommand']('acceptAllSuggestions'),_0x4ec913['enableCommand']('discardAllSuggestions'),_0x4ec913['enableCommand']('acceptSelectedSuggestions'),_0x4ec913['enableCommand']('discardSelectedSuggestions');}}class It extends _0x17eefb{['afterInit'](){const _0x139470=this['editor'];if(!_0x139470['plugins']['has']('ShiftEnter'))return;const _0x3f56c7=_0x139470['plugins']['get']('TrackChangesEditing');_0x3f56c7['enableCommand']('shiftEnter'),_0x139470['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x139470),{'priority':'high'}),_0x139470['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x139470),{'priority':'high'}),_0x139470['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2f82b8,_0x39112a,_0x2eab3c)=>{_0x2eab3c['options']['showSuggestionHighlights']&&je(_0x139470,{'showActiveMarker':!0x1})(_0x2f82b8,_0x39112a,_0x2eab3c);}),_0x3f56c7['descriptionFactory']['registerElementLabel']('softBreak',_0x34c9be=>c(_0x139470['locale'],'ELEMENT_LINE_BREAK',_0x34c9be));}}function je(_0x107f6f,{showActiveMarker:_0x3e927b=!0x0}={}){return(_0x3b8349,_0x324d0d,_0x241047)=>{const _0x3d8cf2=_0x107f6f['plugins']['get']('TrackChangesEditing');if(!_0x241047['consumable']['test'](_0x324d0d['markerRange'],_0x3b8349['name']))return;const _0x505ac9=_0x107f6f['model'];for(const _0x465247 of _0x324d0d['markerRange']['getItems']()){if(!_0x465247['is']('element','softBreak'))continue;const _0x4ceeec='deletion'==_0x324d0d['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2c4e3f}=_0x3d8cf2['_splitMarkerName'](_0x324d0d['markerName']),_0x457a8c=_0x241047['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ceeec,'data-author-id':_0x2c4e3f}),_0x1f49ec=_0x241047['mapper']['toViewPosition'](_0x505ac9['createPositionBefore'](_0x465247));_0x3e927b&&_0x3d8cf2['activeMarkers']['includes'](_0x324d0d['markerName'])&&_0x241047['writer']['addClass']('ck-suggestion-marker--active',_0x457a8c),_0x241047['writer']['insert'](_0x1f49ec,_0x457a8c),_0x241047['mapper']['bindElementToMarker'](_0x457a8c,_0x324d0d['markerName']);}};}class _t extends _0x17eefb{['afterInit'](){const _0x41451c=this['editor'],_0x32dd00=_0x41451c['model'],_0x298037=_0x41451c['locale'];if(!_0x41451c['plugins']['has']('StandardEditingModeEditing'))return;const _0x4dbd71=_0x41451c['plugins']['get']('TrackChangesEditing'),_0x3cdf1a='restrictedEditingException',_0x5cbf04=_0x41451c['commands']['get'](_0x3cdf1a);_0x4dbd71['enableCommand'](_0x3cdf1a,(_0x534553,_0x5219df={})=>{const _0x53e00c=_0x32dd00['document']['selection'];if(_0x53e00c['isCollapsed'])return void _0x534553(_0x5219df);const _0x331854=void 0x0!==_0x5219df['forceValue']?_0x5219df['forceValue']:!_0x5cbf04['value'];_0x32dd00['change'](()=>{const _0x30215c=Array['from'](_0x53e00c['getRanges']());for(const _0x5854ec of _0x30215c){const _0x8a0a9=_0x331854?[_0x5854ec]:io(_0x3cdf1a,_0x5854ec,_0x32dd00);for(const _0x1ce8e2 of _0x8a0a9)_0x4dbd71['markInlineFormat'](_0x1ce8e2,{'commandName':_0x3cdf1a,'commandParams':[{'forceValue':_0x331854}]});}});}),_0x4dbd71['descriptionFactory']['registerDescriptionCallback'](_0x1bdc44=>{if('formatBlock'!=_0x1bdc44['type']&&'formatInline'!=_0x1bdc44['type'])return;const {data:_0x4a2c2c}=_0x1bdc44;return _0x4a2c2c&&_0x4a2c2c['commandName']==_0x3cdf1a?_0x4a2c2c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x298037,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x298037,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x17eefb{['afterInit'](){const _0x491bf9=this['editor'];if(!_0x491bf9['plugins']['has']('Style')||!_0x491bf9['plugins']['has']('DataSchema'))return;const _0x13071a=_0x491bf9['plugins']['get']('TrackChangesEditing'),_0x21cd59=_0x491bf9['locale'],_0x1ba3da=_0x491bf9['config']['get']('style')||{},_0xe39b03=_0x491bf9['plugins']['get']('GeneralHtmlSupport'),_0x496417=_0x491bf9['plugins']['get']('StyleUtils')['normalizeConfig'](_0x491bf9['plugins']['get']('DataSchema'),_0x1ba3da['definitions']);_0x13071a['enableDefaultAttributesIntegration']('style');const _0x50c08e=new Set();for(const _0x56c691 of _0x496417['block']){const _0x3617f9=_0xe39b03['getGhsAttributeNameForElement'](_0x56c691['element']);_0x50c08e['add'](_0x3617f9);}const _0x29d374=new Set();for(const _0x10ddf7 of _0x496417['inline']){const _0x29fbdc=_0xe39b03['getGhsAttributeNameForElement'](_0x10ddf7['element']);_0x29d374['add'](_0x29fbdc);for(const _0x42c90a of _0x10ddf7['ghsAttributes'])_0x29d374['add'](_0x42c90a);}for(const _0x263e78 of _0x50c08e)_0x13071a['registerBlockAttribute'](_0x263e78),_0x13071a['descriptionFactory']['registerAttributeLabel'](_0x263e78,c(_0x21cd59,'FORMAT_STYLE'));for(const _0x8dfdc7 of _0x29d374)_0x13071a['registerInlineAttribute'](_0x8dfdc7),_0x13071a['descriptionFactory']['registerAttributeLabel'](_0x8dfdc7,c(_0x21cd59,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x554f28=this['editor'],_0x36b101=_0x554f28['locale'];_0x554f28['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x470aaf=>{if('formatBlock'!=_0x470aaf['type']&&'formatInline'!=_0x470aaf['type'])return;const {data:_0x37e691}=_0x470aaf;return _0x37e691&&'style'===_0x37e691['commandName']?_0x37e691['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x36b101,'*Set\x20format:*\x20%0',_0x37e691['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x36b101,'*Remove\x20format:*\x20%0',_0x37e691['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x17eefb{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x234fb6){super(_0x234fb6),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x25234e=this['editor'],_0x515730=_0x25234e['model']['document']['selection'];if(!_0x25234e['plugins']['has']('TableEditing'))return;const _0x3536f2=_0x25234e['locale'],_0x3d311d=_0x25234e['plugins']['get']('TrackChangesEditing'),_0x247b54=_0x25234e['plugins']['get']('TableUtils');_0x3d311d['descriptionFactory']['registerElementLabel']('table',_0x125b26=>c(_0x3536f2,'ELEMENT_TABLE',_0x125b26)),this['_setupColumnsRowsFixing'](),_0x3d311d['enableCommand']('insertTable'),_0x3d311d['enableCommand']('selectTableRow'),_0x3d311d['enableCommand']('selectTableColumn');for(const _0x2515fe of['insertTableRowAbove','insertTableRowBelow']){const _0x1cdb0b=_0x25234e['commands']['get'](_0x2515fe);_0x3d311d['enableCommand'](_0x2515fe,_0x48e8d5=>{_0x25234e['model']['change'](_0x5c8090=>{_0x48e8d5();const _0x48f09f='above'===_0x1cdb0b['order'],_0x5af1bf=_0x247b54['getSelectionAffectedTableCells'](_0x515730),_0x5bb5f7=_0x247b54['getRowIndexes'](_0x5af1bf),_0x4fd31b=_0x48f09f?_0x5bb5f7['first']-0x1:_0x5bb5f7['last']+0x1,_0x54ad50=_0x5af1bf[0x0]['findAncestor']('table'),_0x3fb999=_0x247b54['createTableWalker'](_0x54ad50,{'startRow':_0x4fd31b,'endRow':_0x4fd31b}),_0x5cc5b7=Array['from'](_0x3fb999)['map'](_0x5c5af8=>_0x5c8090['createRangeOn'](_0x5c5af8['cell']));_0x3d311d['markMultiRangeInsertion'](_0x5cc5b7,'tableRow');});});}for(const _0x500fab of['insertTableColumnLeft','insertTableColumnRight']){const _0x24d101=_0x25234e['commands']['get'](_0x500fab);_0x3d311d['enableCommand'](_0x500fab,_0x5a4113=>{_0x25234e['model']['change'](_0x3e23ef=>{_0x5a4113();const _0x4488f3='left'===_0x24d101['order'],_0x12424b=_0x247b54['getSelectionAffectedTableCells'](_0x515730),_0x629299=_0x247b54['getColumnIndexes'](_0x12424b),_0x28b061=_0x4488f3?_0x629299['first']-0x1:_0x629299['last']+0x1,_0x21785d=_0x12424b[0x0]['findAncestor']('table'),_0x2f98dd=_0x247b54['createTableWalker'](_0x21785d,{'startRow':0x0,'column':_0x28b061,'includeAllSlots':!0x1}),_0x2f80d5=Array['from'](_0x2f98dd)['map'](_0x2af55e=>_0x3e23ef['createRangeOn'](_0x2af55e['cell']));_0x3d311d['markMultiRangeInsertion'](_0x2f80d5,'tableColumn');});});}for(const _0x5738ad of['removeTableRow','removeTableColumn']){const _0x29a7e3=_0x5738ad['substr'](0xb),_0x5d83de=_0x29a7e3['toLowerCase'](),_0x2648d0=_0x5d83de['substr'](0x0,0x3)+'span',_0x514106='table'+_0x29a7e3,_0x4692cb='min'+_0x29a7e3,_0x44e933='max'+_0x29a7e3;_0x3d311d['enableCommand'](_0x5738ad,()=>{_0x25234e['model']['change'](_0x1718f3=>{const _0x1526b2=_0x247b54['getSelectionAffectedTableCells'](_0x515730),_0x33a566=_0x1526b2[0x0]['findAncestor']('table');let _0x3f8f67;if('removeTableRow'==_0x5738ad){const _0x553227=_0x247b54['getRowIndexes'](_0x1526b2);_0x3f8f67={'startRow':_0x553227['first'],'endRow':_0x553227['last'],'includeAllSlots':!0x0};}else{const _0x6973b4=_0x247b54['getColumnIndexes'](_0x1526b2);_0x3f8f67={'startColumn':_0x6973b4['first'],'endColumn':_0x6973b4['last'],'includeAllSlots':!0x0};}const _0x17d604=_0x247b54['createTableWalker'](_0x33a566,_0x3f8f67),_0x425a2a=Array['from'](_0x17d604)['map'](({cell:_0x59e378})=>_0x59e378),_0x2a9639=Ne(_0x425a2a['filter'](_0x2d654=>_0x2d654['hasAttribute'](_0x2648d0))),_0x51f93c=Ne(_0x425a2a['filter'](_0x173901=>!_0x173901['hasAttribute'](_0x2648d0)))['map'](_0x59ebe4=>_0x1718f3['createRangeOn'](_0x59ebe4)),_0x2b6ab5=_0x3d311d['markMultiRangeDeletion'](_0x51f93c,_0x514106);if(_0x2b6ab5&&('tableRow'==_0x2b6ab5['subType']||'tableColumn'==_0x2b6ab5['subType'])){const _0x5bd217=this['_getSuggestionCoords'](_0x2b6ab5);for(const _0x104680 of _0x2a9639){const _0x430671=_0x1718f3['createRangeOn'](_0x104680),_0x474746=_0x247b54['getCellLocation'](_0x104680),_0x3d2d44=_0x104680['getAttribute'](_0x2648d0)-0x1,_0x2420c9=_0x5bd217[_0x4692cb],_0x350b0e=_0x5bd217[_0x44e933];_0x2420c9<=_0x474746[_0x5d83de]&&_0x474746[_0x5d83de]+_0x3d2d44<=_0x350b0e&&_0x2b6ab5['addRange'](_0x430671);}}});});}function _0x58c405(_0xab0df0){const _0x467637=Array['from'](_0x515730['getRanges']())['map'](_0x5d393c=>_0x335d44['fromRange'](_0x5d393c));_0x25234e['model']['change'](_0x278a3e=>{const _0x3f2fe7=_0x278a3e['batch'];_0xab0df0=_0xab0df0['filter'](_0x4fc30c=>'$graveyard'!=_0x4fc30c['root']['rootName']),_0x278a3e['setSelection'](_0xab0df0),_0x25234e['commands']['get']('removeTableRow')['refresh'](),_0x25234e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x25234e['model']['enqueueChange'](()=>{_0x25234e['model']['enqueueChange'](_0x3f2fe7,_0xbcfdc1=>{const _0x245109=_0x467637['filter'](_0x32b02a=>'$graveyard'!=_0x32b02a['root']['rootName']);_0x245109['length']>0x0&&_0xbcfdc1['setSelection'](_0x245109);for(const _0x4eddb6 of _0x467637)_0x4eddb6['detach']();});});});}function _0x3d24b8(_0x4de6ba){_0x25234e['model']['change'](_0x1407f7=>{const _0x5426d9=Array['from'](_0x515730['getRanges']())['map'](_0x56ffcf=>_0x335d44['fromRange'](_0x56ffcf)),_0x95739d=[];for(const _0x4eed2a of _0x4de6ba)for(const _0x368cb4 of _0x4eed2a['getItems']({'shallow':!0x0}))_0x95739d['push'](_0x368cb4);for(const _0x5063dd of _0x95739d)'$graveyard'!=_0x5063dd['root']['rootName']&&(_0x1407f7['setSelection'](_0x1407f7['createPositionAt'](_0x5063dd,0x0)),_0x25234e['commands']['get']('removeTableColumn')['refresh'](),_0x25234e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1ba991=_0x5426d9['filter'](_0x43be2a=>'$graveyard'!=_0x43be2a['root']['rootName']);_0x1ba991['length']>0x0&&_0x1407f7['setSelection'](_0x1ba991);for(const _0x4cb399 of _0x5426d9)_0x4cb399['detach']();});}function _0x289ab6(_0x2396bd,_0x353001){return _0x353001['every'](_0x239f03=>_0x2396bd['some'](_0x58b9ee=>_0x58b9ee['end']['isEqual'](_0x239f03['start'])||_0x239f03['end']['isEqual'](_0x58b9ee['start'])));}function _0x5b7a53(_0x144bc7,_0x7e4146){return!_0x144bc7['some'](_0xb84db7=>_0x7e4146['some'](_0x3facc6=>_0xb84db7['isIntersecting'](_0x3facc6)))&&_0x144bc7['some'](_0x56fbb6=>_0x7e4146['some'](_0x1b8759=>_0x56fbb6['end']['isTouching'](_0x1b8759['start'])));}_0x25234e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a0a74,_0x2ce724,_0x5ecae1)=>{if(!_0x5ecae1['options']['showSuggestionHighlights'])return;const _0x40d7a8=_0x2ce724['item'];if(!_0x40d7a8)return;const _0x1e9b1d=_0x5ecae1['mapper']['toViewElement'](_0x40d7a8);function _0x2ece19(_0x452648){return Array['isArray'](_0x452648)?_0x452648:[_0x452648];}_0x1e9b1d&&'tableCell'===_0x40d7a8['name']&&_0x5156b8(_0x1e9b1d,_0x5ecae1['writer'],(_0x3ca5ff,_0x22e522,_0x300b2f)=>_0x300b2f['addClass'](_0x2ece19(_0x22e522['classes']),_0x3ca5ff),(_0x269eac,_0x1201bb,_0x396e6d)=>_0x396e6d['removeClass'](_0x2ece19(_0x1201bb['classes']),_0x269eac));},{'priority':'highest'}),_0x3d311d['descriptionFactory']['registerDescriptionCallback'](_0xc675c0=>{if('insertion'!=_0xc675c0['type']&&'deletion'!=_0xc675c0['type'])return;const _0x2f7493=_0xc675c0['getContainedElement']();if(null!=_0x2f7493&&_0x2f7493['is']('element','table')){if('insertion'==_0xc675c0['type']){const _0x3bc77f=_0xc675c0['getItems']()['filter'](_0x54513c=>_0x54513c['is']('$textProxy'))['map'](_0x7433da=>_0x7433da['data']);if(_0x3bc77f['length'])return{'type':'insertion','content':c(_0x3536f2,'*Insert:*\x20%0',c(_0x3536f2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3bc77f['join']('\x20')+'\x22'))};}if('deletion'==_0xc675c0['type']){const _0x5cc801=_0xc675c0['getItems']()['filter'](_0x7d7df9=>_0x7d7df9['is']('$textProxy'))['map'](_0x20a435=>_0x20a435['data']);if(_0x5cc801['length'])return{'type':'deletion','content':c(_0x3536f2,'*Remove:*\x20%0',c(_0x3536f2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5cc801['join']('\x20')+'\x22'))};}}}),_0x3d311d['descriptionFactory']['registerDescriptionCallback'](_0x3275d3=>{if('tableRow'==_0x3275d3['subType']){const _0x5f16c6=_0x3275d3['getItems']()['filter'](_0x44e52f=>_0x44e52f['is']('$textProxy'))['map'](_0x3b26f6=>_0x3b26f6['data']),_0x12542c=this['_getSuggestionCoords'](_0x3275d3),_0x57888d=_0x12542c['maxRow']-_0x12542c['minRow']+0x1;if('insertion'==_0x3275d3['type'])return _0x5f16c6['length']?{'type':'insertion','content':c(_0x3536f2,'*Insert:*\x20%0',c(_0x3536f2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57888d,'\x22'+_0x5f16c6['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3536f2,'*Insert:*\x20%0',c(_0x3536f2,'ELEMENT_TABLE_ROW',_0x57888d))};if('deletion'==_0x3275d3['type'])return _0x5f16c6['length']?{'type':'deletion','content':c(_0x3536f2,'*Remove:*\x20%0',c(_0x3536f2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57888d,'\x22'+_0x5f16c6['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3536f2,'*Remove:*\x20%0',c(_0x3536f2,'ELEMENT_TABLE_ROW',_0x57888d))};}if('tableColumn'==_0x3275d3['subType']){const _0x19da49=_0x3275d3['getItems']()['filter'](_0x2a2a61=>_0x2a2a61['is']('$textProxy'))['map'](_0x1f7fb3=>_0x1f7fb3['data']),_0xe275a7=this['_getSuggestionCoords'](_0x3275d3),_0x14f7b2=_0xe275a7['maxColumn']-_0xe275a7['minColumn']+0x1;if('insertion'==_0x3275d3['type'])return _0x19da49['length']?{'type':'insertion','content':c(_0x3536f2,'*Insert:*\x20%0',c(_0x3536f2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x14f7b2,'\x22'+_0x19da49['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3536f2,'*Insert:*\x20%0',c(_0x3536f2,'ELEMENT_TABLE_COLUMN',_0x14f7b2))};if('deletion'==_0x3275d3['type'])return _0x19da49['length']?{'type':'deletion','content':c(_0x3536f2,'*Remove:*\x20%0',c(_0x3536f2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x14f7b2,'\x22'+_0x19da49['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3536f2,'*Remove:*\x20%0',c(_0x3536f2,'ELEMENT_TABLE_COLUMN',_0x14f7b2))};}}),_0x3d311d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x58c405),_0x3d311d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x58c405),_0x3d311d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3d24b8),_0x3d311d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3d24b8),_0x3d311d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x289ab6),_0x3d311d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x289ab6),_0x3d311d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5b7a53),_0x3d311d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5b7a53);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3deb31=this['editor'],_0x433fc9=_0x3deb31['model']['document']['selection'];return(_0xf6b0b8,_0x41de0f)=>{_0x3deb31['model']['change'](_0x5af626=>{const {commandName:_0x2c7ad2,commandParams:_0x35fd6e}=_0x41de0f;let _0x2361e0=_0xf6b0b8[0x0]['end']['nodeBefore'];_0x35fd6e&&_0x35fd6e[0x0]&&!0x1===_0x35fd6e[0x0]['forceValue']&&(_0x2361e0=_0xf6b0b8[0x0]['start']['nodeAfter']);const _0x5d832b=_0x5af626['createRangeIn'](_0x2361e0);if('$graveyard'==_0x5d832b['root']['rootName'])return;const _0x22963b=Array['from'](_0x433fc9['getRanges']())['map'](_0x5745e3=>_0x335d44['fromRange'](_0x5745e3));_0x5af626['setSelection'](_0x5d832b),_0x3deb31['commands']['get'](_0x2c7ad2)['refresh'](),_0x35fd6e['push']({'forceDefaultExecution':!0x0}),_0x3deb31['execute'](_0x2c7ad2,..._0x35fd6e);const _0x1e931b=_0x22963b['filter'](_0xfca12a=>'$graveyard'!=_0xfca12a['root']['rootName']);_0x1e931b['length']>0x0&&_0x5af626['setSelection'](_0x1e931b);for(const _0x317ccc of _0x22963b)_0x317ccc['detach']();});};}['_getCoordsForCells'](_0x3f3bf0){const _0x99261e=this['editor']['plugins']['get']('TableUtils');let _0x4034c0=Number['MAX_SAFE_INTEGER'],_0x1ac1bb=Number['MIN_SAFE_INTEGER'],_0x1c6650=Number['MAX_SAFE_INTEGER'],_0x52bd92=Number['MIN_SAFE_INTEGER'];for(const _0x212aac of _0x3f3bf0){if('$graveyard'==_0x212aac['root']['rootName'])continue;const {row:_0x519234,column:_0x3862a4}=_0x99261e['getCellLocation'](_0x212aac),_0x2809f9=_0x212aac['hasAttribute']('rowspan')?_0x212aac['getAttribute']('rowspan')-0x1:0x0,_0x241919=_0x212aac['hasAttribute']('colspan')?_0x212aac['getAttribute']('colspan')-0x1:0x0;_0x4034c0=_0x519234<_0x4034c0?_0x519234:_0x4034c0,_0x1ac1bb=_0x519234+_0x2809f9>_0x1ac1bb?_0x519234+_0x2809f9:_0x1ac1bb,_0x1c6650=_0x3862a4<_0x1c6650?_0x3862a4:_0x1c6650,_0x52bd92=_0x3862a4+_0x241919>_0x52bd92?_0x3862a4+_0x241919:_0x52bd92;}return{'minRow':_0x4034c0,'maxRow':_0x1ac1bb,'minColumn':_0x1c6650,'maxColumn':_0x52bd92};}['_setupColumnsRowsFixing'](){const _0x363e5d=this['editor'],_0x359ea5=_0x363e5d['plugins']['get']('TrackChangesEditing'),_0x62591a=_0x363e5d['plugins']['get']('TableUtils');_0x363e5d['model']['document']['on']('change:data',()=>{const _0x352777=Array['from'](_0x363e5d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x469d49,data:_0x20b150}of _0x352777){const {group:_0x50da66,id:_0x1e7037,subType:_0x3446eb}=_0x359ea5['_splitMarkerName'](_0x469d49);if('suggestion'!=_0x50da66)continue;if(null!=_0x20b150['oldRange'])continue;const _0x2ae3ad=_0x359ea5['getSuggestion'](_0x1e7037);this['_tablePostFixingSubtypes']['includes'](_0x3446eb)&&this['_tableSuggestions']['add'](_0x2ae3ad);}},{'priority':'low'});const _0x1e0abd=(_0x382dda,_0x8b5582)=>{let _0x253dc4=!0x1;const _0x17d357=_0x8b5582['createRangeOn'](_0x382dda),_0x3bbfeb=_0x382dda['findAncestor']('table'),_0x1480fb=_0x62591a['getCellLocation'](_0x382dda);for(const _0x2bb456 of this['_tableSuggestions']){const _0x4aa370=_0x2bb456['subType'],_0x4b07b3=_0x4aa370['startsWith']('tablePaste'),_0x108eb2=_0x4aa370['substr'](_0x4b07b3?0xa:0x5),_0x4b4d3d=_0x108eb2['toLowerCase'](),_0x149d39=_0x4b4d3d['substr'](0x0,0x3)+'span',_0x3e1879='min'+_0x108eb2,_0x3d7715='max'+_0x108eb2;if(!_0x2bb456['isInContent'])continue;if(_0x3bbfeb!=_0x2bb456['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2bb456['isIntersectingWithRange'](_0x17d357))continue;const _0x4d610c=_0x382dda['hasAttribute'](_0x149d39)?_0x382dda['getAttribute'](_0x149d39)-0x1:0x0,_0xfc96b0=this['_getSuggestionCoords'](_0x2bb456),_0x5fba47=_0xfc96b0[_0x3e1879],_0x7a484f=_0xfc96b0[_0x3d7715];_0x5fba47<=_0x1480fb[_0x4b4d3d]&&_0x1480fb[_0x4b4d3d]+_0x4d610c<=_0x7a484f&&(_0x2bb456['addRange'](_0x17d357),_0x253dc4=!0x0);}return _0x253dc4;};_0x363e5d['model']['document']['registerPostFixer'](_0x59a5be=>{let _0x8b011=!0x1;for(const _0x2e2c0c of _0x363e5d['model']['document']['differ']['getChanges']())if('insert'==_0x2e2c0c['type']){if('tableRow'==_0x2e2c0c['name']){for(const _0x334d57 of _0x2e2c0c['position']['nodeAfter']['getChildren']())_0x8b011=_0x8b011||_0x1e0abd(_0x334d57,_0x59a5be);}else'tableCell'==_0x2e2c0c['name']&&(_0x8b011=_0x8b011||_0x1e0abd(_0x2e2c0c['position']['nodeAfter'],_0x59a5be));}return _0x8b011;});}['_getSuggestionCoords'](_0x3b4485){return this['_getCoordsForCells'](_0x3b4485['getRanges']()['map'](_0xd48da5=>_0xd48da5['start']['nodeAfter']));}}function Ne(_0x38a0a3){return Array['from'](new Set(_0x38a0a3)['values']());}class Nt extends _0x17eefb{static get['requires'](){return[Ct];}['afterInit'](){const _0x1e078d=this['editor'],_0x48f9ad=_0x1e078d['model']['document']['selection'],_0x5cbe6a=_0x1e078d['locale'];if(!_0x1e078d['plugins']['has']('TableEditing'))return;const _0x4279ec=_0x1e078d['plugins']['get']('TrackChangesEditing'),_0x2a4a77=_0x1e078d['plugins']['get']('TableUtils'),_0x33d3cc=_0x1e078d['plugins']['get'](Ct);_0x33d3cc['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4279ec['enableCommand']('mergeTableCells',()=>{const _0x9a499f=_0x2a4a77['getSelectionAffectedTableCells'](_0x1e078d['model']['document']['selection']);_0x1e078d['model']['change'](()=>{_0x4279ec['markMultiRangeBlockFormat'](_0x9a499f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1e078d['commands']['get']('mergeTableCells')['on']('execute',(_0x2762ae,_0x312bee)=>{_0x1e078d['commands']['get']('trackChanges')['value']&&(_0x312bee['length']>0x0&&_0x312bee[_0x312bee['length']-0x1]&&_0x312bee[_0x312bee['length']-0x1]['forceDefaultExecution']||_0x4279ec['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2762ae['stop']());},{'priority':'highest'});for(const _0x44b572 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x49c4d0=_0x1e078d['commands']['get'](_0x44b572);_0x4279ec['enableCommand'](_0x44b572,()=>{const _0x5b5d75=_0x1e078d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x7cf642=>_0x7cf642['is']('element','tableCell')),_0xd75828=_0x49c4d0['value'];_0x1e078d['model']['change'](()=>{_0x4279ec['markMultiRangeBlockFormat']([_0x5b5d75,_0xd75828],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1b0f41 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x203750=_0x1e078d['commands']['get'](_0x1b0f41);_0x4279ec['enableCommand'](_0x1b0f41,()=>{const _0x5e2cd4=_0x2a4a77['getSelectionAffectedTableCells'](_0x1e078d['model']['document']['selection'])[0x0],_0xf47c8a=_0x5e2cd4['findAncestor']('table'),{column:_0x255067,row:_0xf3b009}=_0x2a4a77['getCellLocation'](_0x5e2cd4);let _0x4956b8=[];if('horizontally'==_0x203750['direction']){const _0x509325=_0x2a4a77['createTableWalker'](_0xf47c8a,{'startRow':_0xf3b009,'endRow':_0xf3b009,'includeAllSlots':!0x0});_0x4956b8=Array['from'](_0x509325)['map'](_0x7d3221=>_0x7d3221['cell']);}else{const _0x59a32b=_0x2a4a77['createTableWalker'](_0xf47c8a,{'column':_0x255067,'includeAllSlots':!0x0});_0x4956b8=Array['from'](_0x59a32b)['map'](_0x2f853f=>_0x2f853f['cell']);}_0x1e078d['model']['change'](_0x534b92=>{_0x4279ec['markBlockFormat'](_0x534b92['createRangeOn'](_0x5e2cd4),{'commandName':_0x1b0f41,'commandParams':[]},_0x4956b8,_0x1b0f41);});});}_0x4279ec['descriptionFactory']['registerDescriptionCallback'](_0x1e75c7=>{if('formatBlock'!=_0x1e75c7['type']&&'formatInline'!=_0x1e75c7['type'])return;const {data:_0x53afac}=_0x1e75c7;return _0x53afac&&'mergeTableCells'==_0x53afac['commandName']?{'type':'format','content':c(_0x5cbe6a,'*Merge\x20cells*')}:void 0x0;}),_0x4279ec['descriptionFactory']['registerDescriptionCallback'](_0x369f16=>{if('formatBlock'!=_0x369f16['type']&&'formatInline'!=_0x369f16['type'])return;const {data:_0x23fc2c}=_0x369f16;return _0x23fc2c?'splitTableCellVertically'==_0x23fc2c['commandName']?{'type':'format','content':c(_0x5cbe6a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x23fc2c['commandName']?{'type':'format','content':c(_0x5cbe6a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xc605ea=_0x33d3cc['_acceptFormatSuggestionCallbackFactory']();for(const _0x3d5ca7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4279ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d5ca7,'accept',_0xc605ea);for(const _0x3a08ee of['splitTableCellVertically','splitTableCellHorizontally'])_0x4279ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a08ee,'accept',_0xc605ea);_0x4279ec['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x349b1e=>{_0x1e078d['model']['change'](_0x321779=>{const _0x20930d=Array['from'](_0x48f9ad['getRanges']())['map'](_0x424f6f=>_0x335d44['fromRange'](_0x424f6f));_0x321779['setSelection'](_0x349b1e),_0x1e078d['commands']['get']('mergeTableCells')['refresh'](),_0x1e078d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x20046f=_0x20930d['filter'](_0x9742a0=>'$graveyard'!=_0x9742a0['root']['rootName']);_0x20046f['length']>0x0&&_0x321779['setSelection'](_0x20046f);for(const _0x55eea1 of _0x20930d)_0x55eea1['detach']();});});for(const _0x32b973 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x51d66c=_0x1e078d['commands']['get'](_0x32b973);_0x51d66c['on']('set:isEnabled',(_0x263fcc,_0x28ac42,_0x30c582)=>{if(_0x30c582){const _0x5b51f4=_0x1e078d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4110b4=>_0x4110b4['is']('element','tableCell'));this['_areMergableCells'](_0x51d66c['value'],_0x5b51f4)||(_0x263fcc['return']=!0x1,_0x263fcc['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x24f160=this['editor']['commands']['get']('mergeTableCells'),_0x54a5a8=this['editor']['plugins']['get']('TableUtils');if(!_0x24f160['isEnabled'])return!0x1;const _0x575b04=_0x54a5a8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x282351 of _0x575b04)for(const _0x378151 of _0x575b04)if(_0x282351!=_0x378151&&!this['_areMergableCells'](_0x282351,_0x378151))return!0x1;return!0x0;}['_areMergableCells'](_0x1ebf1d,_0x22dc1d){const _0x5bf00e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32f5d1=this['editor']['model']['createRangeOn'](_0x1ebf1d),_0x13c5e2=this['editor']['model']['createRangeOn'](_0x22dc1d),_0x2960ae=new Set(),_0x201fec=new Set();for(const _0x3d1d40 of _0x5bf00e['getSuggestions']())if(('insertion'==_0x3d1d40['type']||'deletion'==_0x3d1d40['type']||'mergeTableCells'==_0x3d1d40['subType'])&&_0x3d1d40['isInContent']){for(const _0x3c2ced of _0x3d1d40['getRanges']())_0x3c2ced['containsRange'](_0x32f5d1,!0x0)&&_0x2960ae['add'](_0x3d1d40['type']+':'+_0x3d1d40['author']['id']),_0x3c2ced['containsRange'](_0x13c5e2,!0x0)&&_0x201fec['add'](_0x3d1d40['type']+':'+_0x3d1d40['author']['id']);}if(_0x2960ae['size']!=_0x201fec['size'])return!0x1;for(const _0xbe1b0 of _0x2960ae)if(!_0x201fec['has'](_0xbe1b0))return!0x1;return!0x0;}}class Dt extends _0x17eefb{static get['requires'](){return[Ct];}['afterInit'](){const _0x6091d8=this['editor'];if(!_0x6091d8['plugins']['has']('TableEditing'))return;const _0x1da0d7=_0x6091d8['locale'],_0x44d9a9=_0x6091d8['plugins']['get']('TrackChangesEditing');_0x44d9a9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x44d9a9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x44d9a9['registerBlockAttribute']('headingRows'),_0x44d9a9['registerBlockAttribute']('headingColumns'),_0x44d9a9['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x1da0d7,'FORMAT_HEADER_ROW')),_0x44d9a9['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x1da0d7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x19a464=this['editor']['plugins']['get']('TrackChangesEditing'),_0x274fa4=this['editor']['plugins']['get']('TableUtils'),_0x5c17da=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x12bad3({showActiveMarker:_0x3b5ace=!0x0,setDataAttribute:_0x188bc3=!0x0}={}){return(_0x205854,_0x1dba3b,_0x1a62d2)=>{const {type:_0x2f0213,id:_0x47604b}=_0x19a464['_splitMarkerName'](_0x1dba3b['markerName']),_0xe74d9f=_0x19a464['getSuggestion'](_0x47604b),_0x2fbba0=_0xe74d9f['data'];if('formatBlock'!=_0xe74d9f['type']||!_0x2fbba0||'setTableColumnHeader'!=_0x2fbba0['commandName'])return;if(_0x1dba3b['item'])return void _0x205854['stop']();if(!_0x1a62d2['consumable']['consume'](_0x1dba3b['markerRange'],_0x205854['name']))return;const _0x539d7f=_0x1dba3b['markerRange']['start']['nodeAfter'],_0x1551ac=_0x1dba3b['markerRange']['end']['nodeBefore'],_0x232086=_0x539d7f['parent']['parent'],{column:_0x1f8496}=_0x274fa4['getCellLocation'](_0x539d7f),{column:_0x2da237}=_0x274fa4['getCellLocation'](_0x1551ac);for(let _0x589571=_0x1f8496;_0x589571<=_0x2da237;_0x589571++){const _0x112026=_0x274fa4['createTableWalker'](_0x232086,{'column':_0x589571,'includeAllSlots':!0x1});for(const _0x4ef316 of _0x112026){const _0x2ec5bd=_0x4ef316['cell'],_0x3dfc59=_0x1a62d2['mapper']['toViewElement'](_0x2ec5bd);_0x1a62d2['writer']['addClass']('ck-suggestion-marker-'+_0x2f0213,_0x3dfc59),_0x188bc3&&_0x1a62d2['writer']['setAttribute']('data-suggestion',_0x47604b,_0x3dfc59),_0x1a62d2['mapper']['bindElementToMarker'](_0x3dfc59,_0x1dba3b['markerName']),_0x3b5ace&&(_0x19a464['activeMarkers']['includes'](_0x1dba3b['markerName'])?_0x1a62d2['writer']['addClass']('ck-suggestion-marker--active',_0x3dfc59):_0x1a62d2['writer']['removeClass']('ck-suggestion-marker--active',_0x3dfc59));}}};}_0x19a464['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5c17da),_0x19a464['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5c17da),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x12bad3(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2fac77,_0xbd6a92,_0x48a777)=>{_0x48a777['options']['showSuggestionHighlights']&&_0x12bad3({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2fac77,_0xbd6a92,_0x48a777);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x26587a,_0x44dc39,_0x35d8b9)=>{const {type:_0x53094a,id:_0x533131}=_0x19a464['_splitMarkerName'](_0x44dc39['markerName']),_0x34d73e=_0x19a464['getSuggestion'](_0x533131),_0x126811=_0x34d73e['data'];if('formatBlock'!=_0x34d73e['type']||!_0x126811||'setTableColumnHeader'!=_0x126811['commandName'])return;const _0x4a5578=_0x35d8b9['mapper']['markerNameToElements'](_0x44dc39['markerName']);if(_0x4a5578){for(const _0x28e1d8 of _0x4a5578)_0x35d8b9['writer']['removeClass']('ck-suggestion-marker-'+_0x53094a,_0x28e1d8),_0x35d8b9['writer']['removeClass']('ck-suggestion-marker--active',_0x28e1d8),_0x35d8b9['writer']['removeAttribute']('data-suggestion',_0x28e1d8),_0x35d8b9['mapper']['unbindElementFromMarkerName'](_0x28e1d8,_0x44dc39['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4454a5=this['editor'],_0x2c3f17=_0x4454a5['locale'];function _0x287add(_0x5c7905){return{'type':'format','content':c(_0x2c3f17,'*Format:*\x20%0',_0x5c7905)};}_0x4454a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40e072=>{if('formatBlock'!=_0x40e072['type'])return;const {data:_0x28dbbf}=_0x40e072;if(_0x28dbbf){if('setTableRowHeader'==_0x28dbbf['commandName']){const _0x1e11a3=_0x28dbbf['commandParams'][0x0]['forceValue'];return _0x287add(c(_0x2c3f17,_0x1e11a3?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x28dbbf['commandName']){const _0x562e0d=_0x28dbbf['commandParams'][0x0]['forceValue'];return _0x287add(c(_0x2c3f17,_0x562e0d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x17eefb{['afterInit'](){const _0x2d50ca=this['editor'],_0x4d2917=_0x2d50ca['locale'],_0x396039=_0x2d50ca['plugins']['get']('TrackChangesEditing');function _0x203505(_0x9151c8){return{'type':'format','content':''+c(_0x4d2917,'*Set\x20table\x20type:*\x20%0',_0x9151c8)};}_0x2d50ca['plugins']['has']('TableLayout')&&(_0x396039['enableCommand']('insertTableLayout'),_0x396039['enableDefaultAttributesIntegration']('tableType'),_0x396039['registerBlockAttribute']('tableType'),_0x396039['descriptionFactory']['registerElementLabel'](_0x561cfe=>_0x561cfe['is']('element','table')&&'layout'===_0x561cfe['getAttribute']('tableType'),_0x1e4acd=>c(_0x4d2917,'ELEMENT_LAYOUT_TABLE',_0x1e4acd)),_0x396039['descriptionFactory']['registerDescriptionCallback'](_0x4e83b7=>{const {data:_0x185c7a}=_0x4e83b7;if(_0x185c7a&&'tableType'==_0x185c7a['key'])switch(_0x185c7a['newValue']){case'layout':return _0x203505(c(_0x4d2917,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x203505(c(_0x4d2917,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x4ae50a=>[_0x4ae50a,null]));class $t extends _0x17eefb{static get['requires'](){return[Ct];}['afterInit'](){const _0x2b530f=this['editor'];if(!_0x2b530f['plugins']['has']('TableClipboard'))return;const _0x309bbc=_0x2b530f['plugins']['get']('TrackChangesEditing'),_0x1bc146=_0x2b530f['plugins']['get']('TableUtils'),_0x1cea92=_0x2b530f['plugins']['get'](Ct),_0x48799e=_0x2b530f['plugins']['get']('TableClipboard'),_0xcf1020=_0x2b530f['plugins']['get']('TableSelection'),_0x55a0bf=_0x2b530f['plugins']['get'](_0x3f8d86);_0x1cea92['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2b530f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2b530f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x31a0b7=null,_0x1a488f=!0x1;_0x55a0bf['on']('contentInsertion',(_0x4a9751,_0x3e9ba5)=>{_0x1a488f='paste'===_0x3e9ba5['method'];}),_0x2b530f['model']['on']('insertContent',(_0x3f206d,_0x104a39)=>{if(!_0x1a488f&&null===_0xcf1020['getSelectedTableCells']())return;const [_0x357b51,_0x560ed1]=_0x104a39,_0x423ddd=_0x104a39[_0x104a39['length']-0x1];_0x423ddd&&_0x423ddd['forceDefaultExecution']||_0x309bbc['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x477b21,_0x2fcafa,_0x154daf,_0x53e6a2,_0x3e9086){if(_0x2fcafa&&!_0x2fcafa['is']('documentSelection'))return!0x1;const _0x4bd3e7=_0x3e9086['getTableIfOnlyTableInContent'](_0x477b21,_0x154daf);if(!_0x4bd3e7||!De(_0x4bd3e7,void 0x0,_0x53e6a2))return!0x1;const _0x12aa43=_0x53e6a2['getSelectionAffectedTableCells'](_0x154daf['document']['selection']);if(!_0x12aa43['length'])return!0x1;const _0x2a2c56=_0x12aa43[0x0]['findAncestor']('table'),_0x27ffec=_0x53e6a2['getRowIndexes'](_0x12aa43),_0x13883d=_0x53e6a2['getColumnIndexes'](_0x12aa43),_0x3df2ae={'startRow':_0x27ffec['first'],'endRow':_0x27ffec['last'],'startColumn':_0x13883d['first'],'endColumn':_0x13883d['last']};return 0x1==_0x12aa43['length']&&(_0x3df2ae['endRow']+=_0x53e6a2['getRows'](_0x4bd3e7)-0x1,_0x3df2ae['endColumn']+=_0x53e6a2['getColumns'](_0x4bd3e7)-0x1),De(_0x2a2c56,_0x3df2ae,_0x53e6a2);}(_0x357b51,_0x560ed1,_0x2b530f['model'],_0x1bc146,_0x48799e)&&(_0x3f206d['stop'](),_0x31a0b7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2b530f['model']['change'](()=>{_0x2b530f['model']['insertContent'](_0x104a39[0x0],_0x104a39[0x1],_0x104a39[0x2],{'forceDefaultExecution':!0x0});const _0x173cfe=_0x3dca8a(),{rowInsertionRanges:_0x15e16a,columnInsertionRanges:_0x285195,insertionRanges:_0x22473c,deletionRanges:_0x54b090,cells:_0xdc56e9}=_0x31a0b7;_0x15e16a['length']&&_0x309bbc['markMultiRangeInsertion'](_0x15e16a,'tablePasteRow',{'tablePasteChainId':_0x173cfe}),_0x285195['length']&&_0x309bbc['markMultiRangeInsertion'](_0x285195,'tablePasteColumn',{'tablePasteChainId':_0x173cfe}),_0x22473c['length']&&(_0x309bbc['markMultiRangeInsertion'](_0x22473c,'tablePaste',{'tablePasteChainId':_0x173cfe,'skipNestingCheck':!0x0}),_0x22473c['forEach'](_0x48ffef=>_0x48ffef['detach']?.())),_0x54b090['length']&&(_0x309bbc['markMultiRangeDeletion'](_0x54b090,'tablePaste',{'tablePasteChainId':_0x173cfe,'skipNestingCheck':!0x0}),_0x54b090['forEach'](_0x5b3a61=>_0x5b3a61['detach']?.()));const _0x5af026=_0x309bbc['markMultiRangeBlockFormat'](_0xdc56e9['map'](({element:_0x57b227})=>_0x57b227),{'formatGroupId':_0x3dca8a()},[],'tablePasteCell',{'tablePasteChainId':_0x173cfe});if(_0x5af026){const _0x5d4234=_0x5af026['getMarkers'](),_0x28a429=[];for(const {element:_0x93958,attributes:_0x3eecd4}of _0xdc56e9){if(!_0x3eecd4)continue;const _0x13ca6d=_0x2b530f['model']['createRangeOn'](_0x93958),_0x226870=_0x5d4234['find'](_0x266236=>_0x266236['getRange']()['isEqual'](_0x13ca6d));_0x226870&&_0x28a429['push']([_0x226870['name'],_0x3eecd4]);}_0x28a429['length']&&_0x5af026['setAttribute']('markerAttributes',Object['fromEntries'](_0x28a429));}_0x31a0b7=null;}));},{'priority':_0x5cdf8d['high']+0xa}),_0x55a0bf['on']('contentInsertion',()=>{_0x1a488f=!0x1;},{'priority':'lowest'}),_0x2b530f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x269842,_0x27fc39)=>{const [_0x57f460,_0x396d86,,_0x486593]=_0x27fc39;if(!_0x31a0b7)return;_0x269842['stop']();const _0x31951b=_0x57f460['cell'],_0x4f54df=_0x396d86,_0x9d052=Ue(_0x31951b),_0x3d7545=Ue(_0x4f54df);_0x269842['return']=_0x31951b;let _0x44eec4=null,_0xc1aa7a=null;if(_0x3d7545||_0x9d052){if(_0x9d052&&!_0x3d7545){_0x486593['remove'](_0x31951b['getChild'](0x0));for(const _0x46e5aa of Array['from'](_0x4f54df['getChildren']()))_0x486593['insert'](_0x46e5aa,_0x31951b,'end');const _0x324745=_0x31a0b7['rowInsertionIndexes']['includes'](_0x57f460['row']),_0x334222=_0x31a0b7['columnInsertionIndexes']['includes'](_0x57f460['column']);_0x324745||_0x334222||(_0x44eec4=_0x335d44['fromRange'](_0x486593['createRangeIn'](_0x31951b)));}else _0x3d7545&&!_0x9d052&&(_0xc1aa7a=_0x486593['createRangeIn'](_0x31951b));}else{const _0x2a0145=_0x486593['createElement']('tableCellSuggestion'),_0x105409=_0x486593['createElement']('tableCellSuggestion');_0x486593['wrap'](_0x486593['createRangeIn'](_0x31951b),_0x105409),_0x486593['insert'](_0x2a0145,_0x31951b,0x0);for(const _0x4d2de0 of Array['from'](_0x4f54df['getChildren']()))_0x486593['insert'](_0x4d2de0,_0x2a0145,'end');_0x44eec4=_0x335d44['fromRange'](_0x486593['createRangeOn'](_0x2a0145)),_0xc1aa7a=_0x335d44['fromRange'](_0x486593['createRangeOn'](_0x105409));}const _0x5bf8e6=Array['from'](_0x4f54df['getAttributes']())['filter'](([_0x1b28fe])=>xe['includes'](_0x1b28fe));_0x31a0b7['cells']['push']({'element':_0x31951b,'attributes':_0x5bf8e6['length']?Object['fromEntries'](_0x5bf8e6):null}),_0x44eec4&&_0x31a0b7['insertionRanges']['push'](_0x44eec4),_0xc1aa7a&&_0x31a0b7['deletionRanges']['push'](_0xc1aa7a);},{'priority':'high'}),_0x1bc146['on']('insertColumns',(_0x5d11ad,_0x3bd31d)=>{const [_0x447eac,_0x4383cf={}]=_0x3bd31d;if(!_0x31a0b7)return;const _0x1605e9=_0x4383cf['at']||0x0,_0x268447=_0x4383cf['columns']||0x1;_0x31a0b7['columnInsertionIndexes']=new Array(_0x268447)['fill'](_0x1605e9)['map']((_0x4f3277,_0x1393ef)=>_0x4f3277+_0x1393ef);for(const {cell:_0x4866a5}of _0x1bc146['createTableWalker'](_0x447eac,{'startColumn':_0x1605e9,'endColumn':_0x1605e9+_0x268447-0x1}))_0x31a0b7['columnInsertionRanges']['push'](_0x2b530f['model']['createRangeOn'](_0x4866a5));},{'priority':'low'}),_0x1bc146['on']('insertRows',(_0x3b1ddc,_0x50bcb4)=>{const [_0x4f1430,_0x2fef99={}]=_0x50bcb4;if(!_0x31a0b7)return;const _0xab3456=_0x2fef99['at']||0x0,_0x588b90=_0x2fef99['rows']||0x1;_0x31a0b7['rowInsertionIndexes']=new Array(_0x588b90)['fill'](_0xab3456)['map']((_0xbf2477,_0x4e9803)=>_0xbf2477+_0x4e9803);for(const {cell:_0x5672f1}of _0x1bc146['createTableWalker'](_0x4f1430,{'startRow':_0xab3456,'endRow':_0xab3456+_0x588b90-0x1}))_0x31a0b7['rowInsertionRanges']['push'](_0x2b530f['model']['createRangeOn'](_0x5672f1));},{'priority':'low'}),_0x309bbc['descriptionFactory']['registerDescriptionCallback'](_0x5b206e=>{if(_0x5b206e['subType']&&_0x5b206e['subType']['startsWith']('tablePaste'))return _0x5b206e['previous']?{}:{'type':'insertion','content':c(_0x2b530f['locale'],'*Replace\x20table\x20cells*')};});const _0x359ad7=()=>!0x1;for(const _0x372209 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x309bbc['_suggestionFactory']['registerCustomCallback']('insertion',_0x372209,'join',_0x359ad7),_0x309bbc['_suggestionFactory']['registerCustomCallback']('deletion',_0x372209,'join',_0x359ad7),_0x309bbc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x372209,'join',_0x359ad7);_0x309bbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x359ad7),_0x309bbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x17caa3,_0x2f0753,_0xee04b7)=>{const _0x3fcb70=_0x17caa3['map'](_0xd60d0b=>_0xd60d0b['getContainedElement']())['filter'](_0x1cf027=>_0x1cf027),_0x446d0f=new Map(_0x3fcb70['map'](_0x39fd64=>[_0x39fd64,null]));if(_0x31a0b7){for(const {element:_0x27f075,attributes:_0x569f24}of _0x31a0b7['cells'])_0x569f24&&_0x446d0f['set'](_0x27f075,_0x569f24);}else{if(_0xee04b7&&_0xee04b7['markerAttributes'])for(const [_0x5d059d,_0x39e0af]of Object['entries'](_0xee04b7['markerAttributes'])){const _0x5d13e0=_0x2b530f['model']['markers']['get'](_0x5d059d),_0x3a1dd5=_0x5d13e0?_0x5d13e0['getRange']()['getContainedElement']():null;_0x3a1dd5&&_0x446d0f['set'](_0x3a1dd5,_0x39e0af);}}_0x2b530f['model']['change'](_0x5beb20=>{for(const [_0x2d9f8c,_0x1562f6]of _0x446d0f)_0x5beb20['setAttributes']({...Oe,..._0x1562f6},_0x2d9f8c);});});const _0x29c400=(_0x21abf6,_0x3aeb6c)=>{_0x309bbc['_suggestionFactory']['registerCustomCallback'](_0x21abf6,'tablePaste',_0x3aeb6c,(_0x2c5275,_0x51250d,_0x7a4a41)=>{_0x2b530f['model']['change'](_0x2c33ad=>{const _0x233fd7=[];for(const _0x5c617c of _0x2c5275){const _0x242e62=_0x5c617c['start']['nodeAfter'];_0x242e62['is']('element','tableCellSuggestion')&&_0x233fd7['push'](_0x242e62);}_0x309bbc['_suggestionFactory']['getSuggestionCallback'](_0x21abf6,null,_0x3aeb6c)(_0x2c5275,_0x51250d,_0x7a4a41);for(const _0x4127a6 of _0x233fd7)'$graveyard'!=_0x4127a6['root']['rootName']&&_0x2c33ad['unwrap'](_0x4127a6);});});};_0x29c400('insertion','accept'),_0x29c400('insertion','discard'),_0x29c400('deletion','accept'),_0x29c400('deletion','discard'),_0x309bbc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x45c88e=>{const _0x2e07f3=_0x45c88e['map'](_0x4d06d7=>_0x4d06d7['getContainedElement']()),_0x4a80f3=_0x2e07f3[0x0]['findAncestor']('table'),{minRow:_0x24f906,maxRow:_0x5fb695}=_0x1cea92['_getCoordsForCells'](_0x2e07f3);_0x1bc146['removeRows'](_0x4a80f3,{'at':_0x24f906,'rows':_0x5fb695-_0x24f906+0x1});}),_0x309bbc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4ce5e5=>{const _0x56058=_0x4ce5e5['map'](_0x6dffc8=>_0x6dffc8['getContainedElement']()),_0x230087=_0x56058[0x0]['findAncestor']('table'),{minColumn:_0x2df6ef,maxColumn:_0x31523f}=_0x1cea92['_getCoordsForCells'](_0x56058);_0x1bc146['removeColumns'](_0x230087,{'at':_0x2df6ef,'columns':_0x31523f-_0x2df6ef+0x1});});const _0x44e553=(_0x36bbb6,_0x41db78)=>{if(!_0x41db78['subType']||!_0x41db78['subType']['startsWith']('tablePaste'))return;const _0x5036d8=_0x41db78['attributes']['tablePasteChainId'],_0x2279b6=_0x309bbc['getSuggestions']()['filter'](_0x4cc99f=>_0x4cc99f['isInContent']&&_0x4cc99f['attributes']&&_0x4cc99f['attributes']['tablePasteChainId']==_0x5036d8);_0x2279b6['length']&&_0x41db78['getAllAdjacentSuggestions']()['length']!=_0x2279b6['length']&&_0x2279b6['reduce']((_0x463f27,_0x5d24fb)=>(_0x463f27['next']=_0x5d24fb,_0x5d24fb['previous']=_0x463f27,_0x5d24fb));};function _0x2c37c3(_0x4022c9,_0x456426=!0x0){const {id:_0xc96a5e,authorId:_0xcd5661}=_0x309bbc['_splitMarkerName'](_0x4022c9['markerName']),_0x4e5f92=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x168b17=_0x309bbc['activeMarkers']['includes'](_0x4022c9['markerName']);return _0x168b17&&_0x4e5f92['push']('ck-suggestion-marker--active'),{'classes':_0x4e5f92,'attributes':{'data-suggestion':_0xc96a5e,'data-author-id':_0xcd5661},'priority':_0x168b17&&_0x456426?0xbc2:0xbb8};}_0x309bbc['on']('suggestionLoaded',_0x44e553,{'priority':'high'}),_0x309bbc['on']('suggestionUnloaded',_0x44e553,{'priority':'high'}),_0x2b530f['model']['document']['registerPostFixer'](()=>{let _0x5da962=!0x1;const _0x359a6d=Array['from'](_0x2b530f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1eb24c,data:_0x260ff4}of _0x359a6d){const {group:_0xa22971,type:_0x2d58c1,id:_0x10e2ab}=_0x309bbc['_splitMarkerName'](_0x1eb24c);if('suggestion'!=_0xa22971||'deletion'!=_0x2d58c1||_0x260ff4['oldRange'])continue;if(!_0x309bbc['hasSuggestion'](_0x10e2ab))continue;const _0x2a8be6=_0x309bbc['getSuggestion'](_0x10e2ab)['getRanges'](),_0x3e8377=_0x2b530f['plugins']['get']('Users')['me'];for(const _0x267741 of _0x309bbc['getSuggestions']()){if(!_0x267741['isInContent']||_0x267741['author']!=_0x3e8377)continue;if('formatBlock'!=_0x267741['type']||'tablePasteCell'!=_0x267741['subType'])continue;if(_0x267741['getRanges']()['every'](_0x141f50=>_0x2a8be6['some'](_0x293fba=>_0x293fba['containsRange'](_0x141f50,!0x0)))){for(const _0x42b01b of _0x267741['getAllAdjacentSuggestions']())_0x42b01b['isInContent']&&(_0x42b01b['discard'](),_0x5da962=!0x0);}}}return _0x5da962;}),_0x2b530f['model']['document']['registerPostFixer'](_0x4de6ca=>{const _0x5bc287=_0x2b530f['commands']['get']('redo');if(!_0x5bc287||!_0x5bc287['_createdBatches']['has'](_0x4de6ca['batch']))return!0x1;let _0x1e09a7=!0x1;const _0x4b095f=_0x2b530f['plugins']['get']('Users')['me'],_0x738ba0=_0x2b530f['model']['document']['differ']['getChanges'](),_0x3621f5=Array['from'](_0x2b530f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x283a9e,data:_0x15160d})=>{const {group:_0x51745b,subType:_0x552bb5,authorId:_0xc3ea17}=_0x309bbc['_splitMarkerName'](_0x283a9e);return'suggestion'==_0x51745b&&'tablePaste'==_0x552bb5&&_0xc3ea17==_0x4b095f['id']&&!_0x15160d['oldRange'];});for(const _0x18c0da of _0x738ba0){if('insert'!=_0x18c0da['type']||'tableCellSuggestion'!=_0x18c0da['name']||0x1!=_0x18c0da['length'])continue;const _0x4cc374=_0x4de6ca['createRange'](_0x18c0da['position'],_0x18c0da['position']['getShiftedBy'](0x1));if(!_0x3621f5['find'](({data:_0x26844d})=>_0x26844d['newRange']['isEqual'](_0x4cc374))){for(const {name:_0x1ec795,data:_0x3a3060}of _0x3621f5)if(_0x4cc374['containsRange'](_0x3a3060['newRange'])){_0x4de6ca['updateMarker'](_0x1ec795,{'range':_0x4cc374}),_0x1e09a7=!0x0;break;}}}return _0x1e09a7;}),_0x2b530f['model']['document']['registerPostFixer'](_0x1839c9=>{let _0x20fc7f=!0x1;const _0x12ce02=_0x2b530f['plugins']['get']('Users')['me'],_0x30e8d6=_0x309bbc['getSuggestions']()['filter'](_0x126728=>_0x126728['isInContent']&&_0x126728['author']==_0x12ce02),_0xf27627=new Set(),_0x5106fc=new Set();for(const _0x584516 of _0x30e8d6)if('tablePaste'==_0x584516['subType'])for(const _0x806c17 of _0x584516['getMarkers']()){const _0x2e94e2=_0x806c17['getRange']()['getContainedElement']();if(_0x2e94e2){if(_0x2e94e2['is']('element','tableCellSuggestion')&&Ue(_0x2e94e2)){_0x584516['removeMarker'](_0x806c17['name']),_0xf27627['add'](_0x2e94e2),_0x20fc7f=!0x0;const _0x2d1dbd=_0x2e94e2['nextSibling'],_0x17f89f=_0x2e94e2['previousSibling'],_0x2e6edc=_0x2d1dbd&&_0x2d1dbd['is']('element','tableCellSuggestion'),_0x240d9d=_0x17f89f&&_0x17f89f['is']('element','tableCellSuggestion');_0x2e6edc&&!_0xf27627['has'](_0x2d1dbd)&&_0x5106fc['add'](_0x2d1dbd),_0x240d9d&&!_0xf27627['has'](_0x17f89f)&&_0x5106fc['add'](_0x17f89f);}else _0x2e94e2['is']('element','paragraph')&&_0x2e94e2['isEmpty']&&(_0x584516['removeMarker'](_0x806c17['name']),_0x20fc7f=!0x0);}}else{if('tablePasteCell'==_0x584516['subType']){if(!_0x584516['attributes']||!_0x584516['attributes']['tablePasteChainId'])continue;const _0x91181d=_0x584516['attributes']['markerAttributes'];if(_0x91181d&&Object['keys'](_0x91181d)['length'])continue;const _0x2075d3=_0x584516['attributes']['tablePasteChainId'];let _0x4f697d=!0x0,_0x366b9e=!0x0;for(const _0x3fff34 of _0x30e8d6)if(_0x3fff34['subType']&&_0x3fff34['subType']['startsWith']('tablePaste')){if(!_0x3fff34['attributes']['tablePasteChainId']){_0x366b9e=!0x1;break;}if(_0x3fff34['id']!=_0x584516['id']&&_0x3fff34['attributes']['tablePasteChainId']==_0x2075d3){_0x4f697d=!0x1;break;}}_0x366b9e&&_0x4f697d&&(_0x584516['removeMarkers'](),_0x20fc7f=!0x0);}}for(const _0x444b3a of _0xf27627)_0x1839c9['remove'](_0x444b3a);for(const _0x57dfe9 of _0x5106fc)_0x1839c9['unwrap'](_0x57dfe9);return _0x20fc7f;}),_0x2b530f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3337e2=>_0x2c37c3(_0x3337e2),'converterPriority':'high'}),_0x2b530f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xbcba26,_0x30d01b)=>_0x30d01b['options']['showSuggestionHighlights']?_0x2c37c3(_0xbcba26,!0x1):null,'converterPriority':'high'});const _0x5ac4ee=_0x2b530f['editing']['view'];this['listenTo'](_0x5ac4ee['document'],'clipboardOutput',(_0x34a119,_0x262eea)=>{const _0x24d770=[];for(const _0x4bbac5 of _0x5ac4ee['createRangeIn'](_0x262eea['content'])['getItems']())_0x4bbac5['is']('element','suggestion-td')&&_0x24d770['push'](_0x4bbac5);_0x5ac4ee['change'](_0x18a012=>{for(const _0x319ab2 of _0x24d770)_0x18a012['move'](_0x18a012['createRangeIn'](_0x319ab2),_0x18a012['createPositionBefore'](_0x319ab2)),_0x18a012['remove'](_0x319ab2);});});}}function Ue(_0x20e562){if(_0x20e562['isEmpty'])return!0x0;const _0x2ebd3c=_0x20e562['getChild'](0x0);return _0x2ebd3c['is']('element','paragraph')&&_0x2ebd3c['isEmpty'];}function De(_0x310a21,_0x3584d4={},_0x521592){for(const {isAnchor:_0x6851be,cellHeight:_0x50a942,cellWidth:_0x15bc72}of _0x521592['createTableWalker'](_0x310a21,{'includeAllSlots':!0x0,..._0x3584d4}))if(!_0x6851be||0x1!=_0x50a942||0x1!=_0x15bc72)return!0x1;return!0x0;}class Bt extends _0x17eefb{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x482caf=this['editor']['plugins']['get']('TrackChangesEditing');_0x482caf['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x482caf['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x482caf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x482caf['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x482caf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x482caf['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3dbd14,_0x316bac){const _0x1e7073=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25db02=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x247d22=_0x316bac['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2e7953=_0x25db02['getColumnGroupElement'](_0x247d22);let _0x404bc4=_0x2e7953?_0x25db02['getTableColumnsWidths'](_0x2e7953):null,_0x20d466=_0x247d22['getAttribute']('tableWidth')||null;const _0x59288b=_0x316bac['tableWidth']||_0x20d466,_0x3004e8=_0x316bac['columnWidths']||_0x404bc4,_0x31e6bb=this['editor']['plugins']['get']('Users')['me'];for(const _0x120757 of _0x1e7073['getSuggestions']()){const _0x338f7c=_0x120757['getContainedElement']();if('resizeTable'===_0x120757['subType']&&_0x338f7c===_0x247d22){_0x120757['author']!==_0x31e6bb&&_0x120757['discard']();const _0x47be9a=_0x120757['data']['commandParams'];_0x20d466=_0x47be9a[0x0]['tableWidth'],_0x404bc4=_0x47be9a[0x0]['columnWidths'];break;}}_0x3dbd14({'table':_0x247d22,'tableWidth':_0x59288b,'columnWidths':_0x3004e8}),_0x1e7073['markBlockFormat'](_0x247d22,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x20d466,'columnWidths':_0x404bc4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5462c2){if('formatBlock'!=_0x5462c2['type']&&'formatInline'!=_0x5462c2['type'])return;const {data:_0x444368}=_0x5462c2;if(_0x444368&&'resizeTable'===_0x444368['formatGroupId']){const _0x4144c3='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x4144c3)};}}}class Ot extends _0x17eefb{['afterInit'](){const _0x2eaefd=this['editor'];_0x2eaefd['plugins']['has']('Template')&&_0x2eaefd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x17eefb{['afterInit'](){const _0x516949=this['editor'];if(!_0x516949['commands']['get']('insertTableOfContents'))return;_0x516949['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x30371d=_0x516949['plugins']['get']('TrackChangesEditing'),_0x3d79d2=_0x516949['locale'];_0x30371d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3fd373=>c(_0x3d79d2,'ELEMENT_TABLE_OF_CONTENTS',_0x3fd373));}}class xt extends _0x17eefb{['afterInit'](){const _0x8aef50=this['editor'];if(!_0x8aef50['plugins']['has']('Title'))return;const _0x1eacb9=_0x8aef50['plugins']['get']('TrackChangesEditing');_0x1eacb9['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x8aef50['locale'],'ELEMENT_TITLE')),_0x8aef50['model']['document']['registerPostFixer'](_0x536536=>{let _0x19f43d=!0x1;const _0x66ed7=Array['from'](_0x8aef50['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x336d56,data:_0xcba8ce}of _0x66ed7){const {group:_0xae7f95}=_0x1eacb9['_splitMarkerName'](_0x336d56);if('suggestion'!==_0xae7f95||!_0xcba8ce['newRange'])continue;const _0x571851=_0xcba8ce['newRange'],_0x163a64=_0x571851['end']['nodeBefore'];if(!_0x163a64||!_0x163a64['is']('element','title-content'))continue;if(!_0x571851['start']['isTouching'](_0x571851['end']))continue;const _0x1dce67=_0x8aef50['model']['schema']['getNearestSelectionRange'](_0x571851['end'],'forward');if(_0x1dce67&&_0x1dce67['isCollapsed']){const _0x265a20=_0x536536['createRange'](_0x571851['start'],_0x1dce67['start']);_0x265a20['isEqual'](_0x571851)||(_0x536536['updateMarker'](_0x336d56,{'range':_0x265a20}),_0x19f43d=!0x0);}_0x19f43d||(_0x536536['removeMarker'](_0x336d56),_0x19f43d=!0x0);}return _0x19f43d;});}}class Tt extends _0x17eefb{['afterInit'](){const _0x4c6037=this['editor'],_0x40f526=_0x4c6037['plugins']['get']('TrackChangesEditing');_0x4c6037['plugins']['has']('Uploadcare')&&(_0x40f526['enableCommand']('uploadcare'),_0x4c6037['plugins']['has']('UploadcareImageEdit')&&(_0x40f526['enableCommand']('uploadcareImageEdit'),_0x40f526['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x40f526['registerBlockAttribute']('uploadcareImageId'),_0x40f526['descriptionFactory']['registerDescriptionCallback'](_0x1291c7=>{if('attribute'!=_0x1291c7['type'])return;const {data:_0x508e9f}=_0x1291c7;return _0x508e9f&&'uploadcareImageId'==_0x508e9f['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x17eefb{['afterInit'](){const _0x3f0f41=this['editor'],_0xac2d89=_0x3f0f41['plugins']['get']('TrackChangesEditing');_0x3f0f41['plugins']['has']('UndoEditing')&&(_0xac2d89['enableCommand']('undo'),_0xac2d89['enableCommand']('redo'));}}class Ut extends _0x17eefb{static get['requires'](){return[Ct];}['afterInit'](){const _0x311aee=this['editor'];if(!_0x311aee['plugins']['has']('TableCaptionEditing'))return;_0x311aee['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x17eefb{['tableProperties'];['tableCellProperties'];constructor(_0x133df9){super(_0x133df9),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 _0x49d16d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x585187 of this['tableProperties'])_0x49d16d['enableCommand'](_0x585187,(_0x5e97b3,_0x54201f)=>{const _0x58f03f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x585187,[_0x58f03f],this['tableProperties'],'tableProperties',_0x5e97b3,_0x54201f);});_0x49d16d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x49d16d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49d16d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xee3d7,_0x43a033)=>this['handleDiscardAction'](this['tableProperties'],_0xee3d7,_0x43a033)),_0x49d16d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x206282 of this['tableCellProperties'])_0x49d16d['enableCommand'](_0x206282,(_0x59cbc9,_0x54d1b7)=>{const _0x19d886=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x206282,_0x19d886,this['tableCellProperties'],'tableCellProperties',_0x59cbc9,_0x54d1b7);});_0x49d16d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x49d16d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49d16d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3d818e,_0x3ba096)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3d818e,_0x3ba096)),_0x49d16d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x49d16d['descriptionFactory']['registerDescriptionCallback'](_0x86aafc=>this['handleSuggestionDescription'](_0x86aafc));}['_handlePropertyChange'](_0x33a1cc,_0x5da7fc,_0x125a38,_0x2e57be,_0x1ff156,_0x2ebc67){const _0x516877=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2ebc67['batch'],()=>{for(const _0x3f0323 of _0x5da7fc){if(this['_getSuggestion'](_0x3f0323,_0x2e57be))_0x1ff156(_0x2ebc67);else{const _0x24b366={};for(const _0xbf7da of _0x125a38){const _0x5f4d8b=_0x3f0323['getAttribute'](_0xbf7da);void 0x0!==_0x5f4d8b&&(_0x24b366[_0xbf7da]=_0x5f4d8b);}_0x1ff156(_0x2ebc67),_0x516877['markBlockFormat'](_0x3f0323,{'commandParams':[_0x24b366]},[],_0x2e57be);}}});}['handleDiscardAction'](_0x43c4f9,_0xecea47,_0x1e5430){const _0x530a51=_0xecea47[0x0]['start']['nodeAfter'],_0x194f75=_0x1e5430['commandParams'][0x0];this['editor']['model']['change'](_0x30249a=>{for(const _0x26f525 of _0x43c4f9)void 0x0!==_0x194f75[_0x26f525]?_0x30249a['setAttribute'](_0x26f525,_0x194f75[_0x26f525],_0x530a51):_0x30249a['removeAttribute'](_0x26f525,_0x530a51);});}['handleSuggestionDescription'](_0xae03f0){if(_0xae03f0['data'])switch(_0xae03f0['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'](_0x5296dd,_0x2c6d30){const _0x39120d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2cd007 of _0x39120d['getSuggestions']({'skipNotAttached':!0x0})){const _0x361be6=_0x2cd007['getContainedElement']();if(_0x2cd007['subType']===_0x2c6d30&&_0x361be6===_0x5296dd)return _0x2cd007;}return null;}}const u='$elementName';class p extends _0x17eefb{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2ac9ba,_0x5f1a7d,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd37b4d){super(_0xd37b4d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x37dcc4,_0x131ed9,_0x6e6c69,_0x2e68ac)=>{this['_model']['change'](()=>{for(const _0x226f5e of[..._0x2e68ac,..._0x6e6c69])this['_model']['markers']['has'](_0x226f5e)&&_0xd37b4d['editing']['reconvertMarker'](_0x226f5e);});}),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']=_0xd37b4d['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(),_0xd37b4d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xd37b4d['config']['get']('trackChanges.trackFormatChanges'),_0xd37b4d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xd37b4d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xd37b4d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x351670=this['editor'],_0x55f47b=(_0xdece65,_0x40057f)=>{if('attribute'!=_0xdece65)return'ck-suggestion-marker-'+_0xdece65;const _0x808159=_0x40057f['split']('|')[0x0];return this['_isBlockAttribute'](_0x808159)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x351670['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x185212=>{const {id:_0x2c6167,authorId:_0x481d8a,type:_0x25ed8e,subType:_0x34c86d}=this['_splitMarkerName'](_0x185212['markerName']),_0x428352=['ck-suggestion-marker',_0x55f47b(_0x25ed8e,_0x34c86d)];let _0x3aebd3=0xbb8;return this['activeMarkers']['includes'](_0x185212['markerName'])&&(_0x428352['push']('ck-suggestion-marker--active'),_0x3aebd3=0xbc2),'deletion'==_0x25ed8e&&(_0x3aebd3+=0x5),{'classes':_0x428352,'attributes':{'data-suggestion':_0x2c6167,'data-author-id':_0x481d8a},'priority':_0x3aebd3};}}),_0x351670['conversion']['for']('dataDowncast')['add'](_0x63e8d3=>{_0x63e8d3['on']('addMarker:suggestion',(_0x385267,_0x54e532,_0x1b4084)=>{if(!_0x1b4084['options']['showSuggestionHighlights'])return;const _0x51f7fc=_0x54e532['item'];if(!_0x51f7fc)return;const _0x395fc6=_0x1b4084['mapper']['toViewElement'](_0x51f7fc);_0x351670['model']['schema']['isObject'](_0x51f7fc)&&_0x395fc6&&!_0x395fc6['getCustomProperty']('widget')&&_0x395fc6['is']('containerElement')&&_0x585b2a(_0x395fc6,_0x1b4084['writer']);},{'priority':'high'});}),_0x351670['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x45c8fe,_0x1e0e37)=>{if(!_0x1e0e37['options']['showSuggestionHighlights'])return null;const {type:_0x536ddd,subType:_0xa9efa7}=this['_splitMarkerName'](_0x45c8fe['markerName']);return{'classes':['ck-suggestion-marker',_0x55f47b(_0x536ddd,_0xa9efa7)],'priority':0xbb8};}});const _0x28674c=({showActiveMarkers:_0x59dcd3=!0x0,isAttributeSuggestion:_0x16f6db=!0x1}={})=>(_0x126dde,_0x244b94,_0x3d61ee)=>{if(!_0x244b94['item'])return;const {id:_0x175345,authorId:_0xc543f6}=this['_splitMarkerName'](_0x244b94['markerName']);if(_0x16f6db){const _0x5133b7=this['_suggestions']['get'](_0x175345),_0x30644a=this['_getAttributeKey'](_0x5133b7);if(!this['_isBlockAttribute'](_0x30644a))return;}if(_0x244b94['item']['is']('selection'))return void _0x3d61ee['consumable']['consume'](_0x244b94['item'],_0x126dde['name']);const _0x5597bf=_0x3d61ee['mapper']['toViewElement'](_0x244b94['item']);if(_0x244b94['item']['is']('element')&&_0x351670['model']['schema']['isBlock'](_0x244b94['item'])&&!_0x5597bf['getCustomProperty']('addHighlight')){_0x3d61ee['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5597bf),_0x3d61ee['writer']['setAttribute']('data-suggestion',_0x175345,_0x5597bf),_0x3d61ee['writer']['setAttribute']('data-author-id',_0xc543f6,_0x5597bf),_0x3d61ee['mapper']['bindElementToMarker'](_0x5597bf,_0x244b94['markerName']),_0x59dcd3&&(this['activeMarkers']['includes'](_0x244b94['markerName'])?_0x3d61ee['writer']['addClass']('ck-suggestion-marker--active',_0x5597bf):_0x3d61ee['writer']['removeClass']('ck-suggestion-marker--active',_0x5597bf));for(const _0xcb0a1b of _0x351670['model']['createRangeIn'](_0x244b94['item'])['getItems']())_0x3d61ee['consumable']['consume'](_0xcb0a1b,_0x126dde['name']);_0x3d61ee['consumable']['consume'](_0x244b94['item'],_0x126dde['name']);}};_0x351670['conversion']['for']('dataDowncast')['add'](_0xfb25b1=>{_0xfb25b1['on']('addMarker:suggestion:formatBlock',(_0x181c78,_0x36e7cc,_0xc71e69)=>{_0xc71e69['options']['showSuggestionHighlights']&&_0x28674c({'showActiveMarkers':!0x1})(_0x181c78,_0x36e7cc,_0xc71e69);},{'priority':'highest'});}),_0x351670['conversion']['for']('dataDowncast')['add'](_0x3587d9=>{_0x3587d9['on']('addMarker:suggestion:attribute',(_0x132cc4,_0x363ef6,_0xa14fb9)=>{_0xa14fb9['options']['showSuggestionHighlights']&&_0x28674c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x132cc4,_0x363ef6,_0xa14fb9);},{'priority':'highest'});}),_0x351670['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x23205d,_0x1df09a)=>_0x1df09a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x23205d['substr'](0xb)}}),_0x351670['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xd21ef5,{writer:_0x1a09de})=>{let _0x3fbe74='suggestion:'+_0xd21ef5['getAttribute']('suggestion-type')+':'+_0xd21ef5['getAttribute']('id');return _0xd21ef5['getAttribute']('marker-count')&&(_0x3fbe74+=':'+_0xd21ef5['getAttribute']('marker-count')),_0x1a09de['createElement']('$marker',{'data-name':_0x3fbe74});}}),_0x351670['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x351670['conversion']['for']('editingDowncast')['add'](_0x5055bf=>{_0x5055bf['on']('addMarker:suggestion:formatBlock',_0x28674c(),{'priority':'high'});}),_0x351670['conversion']['for']('editingDowncast')['add'](_0x1e87d8=>{_0x1e87d8['on']('addMarker:suggestion:attribute',_0x28674c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x351670['conversion']['for']('editingDowncast')['add'](_0x57fe76=>{_0x57fe76['on']('removeMarker:suggestion:formatBlock',(_0xb585c8,_0x5a24cb,_0xae1923)=>{const _0x402e33=_0xae1923['mapper']['markerNameToElements'](_0x5a24cb['markerName']);if(_0x402e33){for(const _0x20e414 of _0x402e33)_0x20e414['getCustomProperty']('addHighlight')||(_0xae1923['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x20e414),_0xae1923['writer']['removeAttribute']('data-suggestion',_0x20e414),_0xae1923['writer']['removeAttribute']('data-author-id',_0x20e414),_0xae1923['mapper']['unbindElementFromMarkerName'](_0x20e414,_0x5a24cb['markerName']));}},{'priority':'high'});}),_0x351670['conversion']['for']('editingDowncast')['add'](_0x17724c=>{_0x17724c['on']('removeMarker:suggestion:attribute',(_0xd297a1,_0x5c3def,_0x493839)=>{const _0x13ef51=_0x493839['mapper']['markerNameToElements'](_0x5c3def['markerName']);if(!_0x13ef51)return;const {id:_0xa6f4cd}=this['_splitMarkerName'](_0x5c3def['markerName']),_0x4713a0=this['_suggestions']['get'](_0xa6f4cd),_0x4f93ac=this['_getAttributeKey'](_0x4713a0);if(this['_isBlockAttribute'](_0x4f93ac)){for(const _0x14eb15 of _0x13ef51)_0x14eb15['getCustomProperty']('addHighlight')||(_0x493839['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x14eb15),_0x493839['writer']['removeAttribute']('data-suggestion',_0x14eb15),_0x493839['writer']['removeAttribute']('data-author-id',_0x14eb15),_0x493839['mapper']['unbindElementFromMarkerName'](_0x14eb15,_0x5c3def['markerName']));}},{'priority':'high'});}),_0x351670['model']['document']['registerPostFixer'](_0x584a90=>{let _0x7a07d=!0x1;const _0x1c93e1=Array['from'](_0x351670['model']['document']['differ']['getChangedMarkers']()),_0x35a7de=new Set();for(const {name:_0x4a320d,data:_0xcf8c66}of _0x1c93e1){const {group:_0x42250d,type:_0x18fe57,subType:_0x313be5,id:_0x29a5f6}=this['_splitMarkerName'](_0x4a320d);if('suggestion'!==_0x42250d)continue;const _0x108aa1=this['_suggestions']['get'](_0x29a5f6);if(null!=_0xcf8c66['newRange']){'formatInline'==_0x18fe57&&(_0x7a07d=_0x7a07d||Jt(_0xcf8c66['newRange'],_0x4a320d,_0x584a90,_0x351670['model']['schema']));const _0x1bea47='attribute'==_0x18fe57&&this['_isBlockAttribute'](_0x313be5['split']('|')[0x0]);if(_0xcf8c66['newRange']['isCollapsed']||'$graveyard'==_0xcf8c66['newRange']['root']['rootName']||'formatBlock'==_0x18fe57&&!Ht(_0xcf8c66['newRange'])||_0x1bea47&&!Ht(_0xcf8c66['newRange'])||'deletion'==_0x18fe57&&!(!Lt(_0x3ae370=_0xcf8c66['newRange'])&&!function(_0x42100f){return _0x42100f['start']['parent']==_0x42100f['end']['nodeBefore']&&_0x42100f['start']['isAtEnd'];}(_0x3ae370)))_0x584a90['removeMarker'](_0x4a320d),_0x7a07d=!0x0;else{if(!_0x108aa1||!_0x108aa1['isInContent'])continue;if(_0xcf8c66['newRange']&&_0xcf8c66['oldRange']&&_0xcf8c66['newRange']['isEqual'](_0xcf8c66['oldRange']))continue;_0x35a7de['add'](_0x108aa1);}}}var _0x3ae370;return _0x35a7de['size']>0x0&&(_0x7a07d=!!this['_joinWithAdjacentSuggestions'](_0x35a7de)||_0x7a07d),_0x7a07d;}),_0x351670['model']['document']['registerPostFixer'](_0x1adfb3=>{let _0x517056=!0x1;for(const _0x148823 of _0x351670['model']['document']['differ']['getChanges']())if('insert'==_0x148823['type'])for(const _0x2f0861 of this['_suggestions']['values']()){if(_0x2f0861['isMultiRange']||!_0x2f0861['isInContent'])continue;const _0x125c02='formatBlock'==_0x2f0861['type'],_0x19aee7=this['_getAttributeKey'](_0x2f0861),_0x16bd40=_0x19aee7&&this['_isBlockAttribute'](_0x19aee7);if(!_0x125c02&&!_0x16bd40)continue;const _0x17f5d5=_0x2f0861['getFirstRange']();if(_0x17f5d5['start']['parent']!=_0x17f5d5['end']['parent']&&!_0x17f5d5['end']['isAtEnd']){const _0x2f8b51=_0x351670['model']['createPositionAt'](_0x17f5d5['start']['nodeAfter'],'end'),_0x391848=_0x351670['model']['createRange'](_0x17f5d5['start'],_0x2f8b51);_0x1adfb3['updateMarker'](_0x2f0861['getFirstMarker'](),{'range':_0x391848}),_0x517056=!0x0;}}return _0x517056;}),_0x351670['model']['document']['registerPostFixer'](_0x5378a2=>this['_processAttributeChanges'](_0x5378a2)),_0x351670['model']['document']['registerPostFixer'](_0x30a17d=>!_0x30a17d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x30a17d)),_0x351670['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x351670['model']['document']['on']('change:data',(_0x4255cd,_0x28245f)=>{if(!_0x28245f['isLocal']||_0x28245f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x58606c=_0x351670['model']['document']['differ']['getChanges']();if(0x0==_0x58606c['length'])return;const _0xdefdcc=[],_0x541011=_0x58606c['filter'](_0x2ecb00=>'attribute'==_0x2ecb00['type']),_0x150a03=_0x58606c['filter'](_0x18c314=>'insert'==_0x18c314['type']&&'$text'!=_0x18c314['name']);for(const _0x478355 of _0x541011)this['_isRegisteredAttribute'](_0x478355['attributeKey'])&&_0xdefdcc['push']({'key':_0x478355['attributeKey'],'newValue':_0x478355['attributeNewValue'],'oldValue':_0x478355['attributeOldValue'],'range':qt(_0x478355['range'],_0x351670['model'])});for(const _0x1313a7 of _0x150a03){if('rename'!=_0x1313a7['action']&&'refresh'!=_0x1313a7['action'])continue;const _0x5f5b7e=zt(_0x1313a7['position']['nodeAfter'],_0x351670['model']),_0x4db81a=_0x1313a7['before'];'rename'==_0x1313a7['action']&&_0xdefdcc['push']({'key':u,'newValue':_0x1313a7['name'],'oldValue':_0x4db81a['name'],'range':_0x5f5b7e});for(const [_0x49f29e,_0x4c1f51]of _0x4db81a['attributes']){if(!this['_isRegisteredAttribute'](_0x49f29e))continue;const _0x1c81b4=_0x1313a7['attributes']['get'](_0x49f29e);_0x4c1f51!==_0x1c81b4&&_0xdefdcc['push']({'key':_0x49f29e,'newValue':_0x1c81b4,'oldValue':_0x4c1f51,'range':_0x5f5b7e});}for(const [_0x3df3c4,_0x5843f8]of _0x1313a7['attributes'])this['_isRegisteredAttribute'](_0x3df3c4)&&(_0x4db81a['attributes']['has'](_0x3df3c4)||_0xdefdcc['push']({'key':_0x3df3c4,'newValue':_0x5843f8,'oldValue':null,'range':_0x5f5b7e}));}0x0!=_0xdefdcc['length']&&_0x351670['model']['enqueueChange'](_0x28245f,_0x2f587f=>{const _0x5f538f=_0x3dca8a();for(const {range:_0xd7897e,key:_0x5eb573,oldValue:_0x4d8d0f,newValue:_0x43e757}of _0xdefdcc)this['markAttributeChange'](_0xd7897e,_0x5eb573,_0x4d8d0f,_0x43e757,{'groupId':_0x5f538f});this['_reduceExistingSuggestions'](_0x2f587f,_0xdefdcc);});},{'priority':'lowest'}),_0x351670['model']['markers']['on']('update:suggestion',(_0x2adbd7,_0x10279a,_0x2e6013)=>{if(null==_0x2e6013){const {id:_0x14209e}=this['_splitMarkerName'](_0x10279a['name']),_0x79f3d2=this['_suggestions']['get'](_0x14209e);_0x79f3d2&&_0x79f3d2['addMarkerName'](_0x10279a['name']);}}),_0x351670['model']['document']['on']('change:data',()=>{const _0x2b431b=Array['from'](_0x351670['model']['document']['differ']['getChangedMarkers']())['filter'](_0x46ee6f=>'suggestion'===this['_splitMarkerName'](_0x46ee6f['name'])['group']);if(0x0===_0x2b431b['length'])return;_0x2b431b['sort']((_0x4a4021,_0x30f4b4)=>{const _0x172114=_0x4a4021['data']['oldRange'],_0x5a5d4d=_0x30f4b4['data']['oldRange'];return null===_0x172114&&null===_0x5a5d4d?0x0:null===_0x172114&&null!==_0x5a5d4d?-0x1:null!==_0x172114&&null===_0x5a5d4d?0x1:_0x172114['start']['isBefore'](_0x5a5d4d['start'])?-0x1:0x1;});const _0x4bec83=new Set(),_0x535876=new Set();for(const {name:_0x3c95a6,data:_0x39b801}of _0x2b431b){const {id:_0x50266e}=this['_splitMarkerName'](_0x3c95a6);if(null===_0x39b801['oldRange']){const _0x5d4fc7=this['_handleNewSuggestionMarker'](_0x3c95a6);_0x535876['add'](_0x5d4fc7);}else{const _0x4c78f9=this['_suggestions']['get'](_0x50266e);null!==_0x39b801['newRange']||_0x4c78f9['isInContent']?(_0x4bec83['add'](_0x4c78f9['head']),_0x535876['add'](_0x4c78f9)):this['_removeSuggestion'](_0x4c78f9);}}_0x535876['size']>0x0&&this['_refreshSuggestionsChain'](_0x535876);for(const _0x5b3990 of _0x4bec83)this['fire']('suggestionChanged',_0x5b3990);}),_0x351670['model']['on']('applyOperation',(_0x1112e8,_0x49f506)=>{const _0x522786=_0x49f506[0x0];if(!this['_suggestions']['size'])return;if(!_0x522786['isDocumentOperation'])return;if(_0x522786['batch']['isUndo']||!_0x522786['batch']['isLocal'])return;let _0xe3f4fb,_0x47dc02;switch(_0x522786['type']){case'insert':_0xe3f4fb=_0x351670['model']['createPositionAt'](_0x522786['position']),_0x47dc02=_0xe3f4fb['getShiftedBy'](_0x522786['howMany']);break;case'split':_0xe3f4fb=_0x351670['model']['createPositionAt'](_0x522786['splitPosition']),_0x47dc02=_0x351670['model']['createPositionAt'](_0x522786['moveTargetPosition']);break;case'move':_0xe3f4fb=_0x351670['model']['createPositionAt'](_0x522786['targetPosition']),_0x47dc02=_0xe3f4fb['getShiftedBy'](_0x522786['howMany']);break;default:return;}const _0x4de1df=_0x351670['model']['createRange'](_0xe3f4fb,_0x47dc02);_0x351670['model']['change'](()=>{for(const {suggestion:_0x261193,meta:_0x259a8a}of this['_findSuggestions'](_0x4de1df)){if(_0x261193['isMultiRange'])continue;if('formatInline'==_0x261193['type'])continue;const _0x53015c=this['_getAttributeKey'](_0x261193);if(_0x53015c&&this['_isBlockAttribute'](_0x53015c)&&'split'!=_0x522786['type'])continue;const _0x429269=_0x261193['data']&&_0x261193['data']['multipleBlocks'];('formatBlock'!=_0x261193['type']||'split'==_0x522786['type']&&!_0x429269)&&(_0x259a8a['containsRangeInObject']||'insertion'==_0x261193['type']&&_0x259a8a['isOwn']||_0x261193['getFirstRange']()['containsRange'](_0x4de1df)&&this['_breakSuggestionMarker'](_0x261193,_0xe3f4fb,_0x47dc02));}});},{'priority':'lowest'}),_0x351670['model']['on']('deleteContent',(_0x4b776b,_0x270d05)=>{const _0x39ed58=_0x270d05[0x0],_0x32f087=_0x270d05[0x1];if(_0x32f087&&_0x32f087['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x39ed58['isCollapsed'])return;const _0x4ae5ee=_0x351670['model']['schema'],{start:_0x2f22d9,end:_0x423599}=_0x39ed58['getFirstRange'](),_0x6595cc=_0x2f22d9['nodeAfter']&&_0x4ae5ee['isLimit'](_0x2f22d9['nodeAfter'])?null:_0x4ae5ee['getNearestSelectionRange'](_0x2f22d9,'forward'),_0x291085=_0x423599['nodeBefore']&&_0x4ae5ee['isLimit'](_0x423599['nodeBefore'])?null:_0x4ae5ee['getNearestSelectionRange'](_0x423599,'backward'),_0x47c12f=_0x351670['model']['createRange'](_0x6595cc?_0x6595cc['start']:_0x2f22d9,_0x291085?_0x291085['end']:_0x423599);_0x351670['model']['change'](_0x57623b=>{this['markDeletion'](_0x47c12f);const _0x1f2949=_0x351670['model']['schema']['getNearestSelectionRange'](_0x47c12f['start']);_0x39ed58['is']('documentSelection')?_0x57623b['setSelection'](_0x1f2949):_0x39ed58['setTo'](_0x1f2949);}),_0x4b776b['stop']();},{'priority':_0x5cdf8d['normal']+0xa}),_0x351670['model']['on']('insertContent',(_0x55864a,_0x216e2c)=>{const _0x149619=_0x216e2c[_0x216e2c['length']-0x1];_0x149619&&_0x149619['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x351670['model']['change'](()=>{let _0xbe808b=_0x351670['model']['insertContent'](_0x216e2c[0x0],_0x216e2c[0x1],_0x216e2c[0x2],{'forceDefaultExecution':!0x0});if(!_0xbe808b)return;_0x55864a['return']=_0xbe808b['clone']();const _0x5a8876=_0xbe808b['end']['nodeBefore'],_0x1bbaa9=_0x351670['model']['schema'];_0x5a8876&&_0x1bbaa9['isBlock'](_0x5a8876)&&!_0x1bbaa9['isObject'](_0x5a8876)&&(_0xbe808b=_0x351670['model']['createRange'](_0xbe808b['start'],_0x351670['model']['createPositionAt'](_0x5a8876,'end'))),this['markInsertion'](_0xbe808b);}),_0x55864a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2773ae=new O(_0x351670,this['_suggestions']);_0x351670['commands']['add']('acceptSuggestion',_0x2773ae),this['enableCommand']('acceptSuggestion');const _0x55c75=new R(_0x351670,this['_suggestions']);_0x351670['commands']['add']('discardSuggestion',_0x55c75),this['enableCommand']('discardSuggestion'),_0x351670['commands']['add']('acceptAllSuggestions',new x(_0x351670,_0x2773ae,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x351670['commands']['add']('discardAllSuggestions',new x(_0x351670,_0x55c75,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x351670['commands']['add']('acceptSelectedSuggestions',new E(_0x351670,_0x2773ae,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x351670['commands']['add']('discardSelectedSuggestions',new E(_0x351670,_0x55c75,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3cc7af=_0x351670['plugins']['get']('CommentsRepository');this['listenTo'](_0x3cc7af,'addComment',(_0x336f10,{threadId:_0x2eb925})=>{const _0x44b01b=this['_suggestions']['get'](_0x2eb925);_0x44b01b&&_0x44b01b['commentThread']&&0x1===_0x44b01b['commentThread']['length']&&this['_updateSuggestionData'](_0x2eb925,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3cc7af,'removeComment',(_0x57839a,{threadId:_0x4dd4d5})=>{const _0x40b93f=this['_suggestions']['get'](_0x4dd4d5);_0x40b93f&&_0x40b93f['commentThread']&&!_0x40b93f['commentThread']['length']&&this['_updateSuggestionData'](_0x4dd4d5,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x58b875){const _0x15053e=_0x467342([0x46,0x68,0x6a,0x7a,0x75,0x43,0x79,0x78,0x53,0x37,0x31,0x41,0x51,0x6b,0x6d,0x39,0x33,0x67,0x6f,0x61,0x56,0x59,0x71,0x76,0x4f,0x5a,0x4c,0x34,0x47,0x66,0x64,0x65,0x48,0x49,0x57,0x50,0x58,0x63,0x36,0x52,0x35,0x74,0x6c,0x62,0x30,0x45,0x6e,0x42,0x73,0x44,0x4b,0x55,0x77,0x32,0x70,0x4e,0x4d,0x72,0x54,0x38,0x69,0x4a]),_0x232673=0xb1379a1,_0x382f8c=0xb141c31^_0x232673,_0x1f0cad=window[_0x467342([0x44,0x61,0x74,0x65])][_0x467342([0x6e,0x6f,0x77])](),_0x160b91=_0x58b875[_0x467342([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xcd7b71=new window[(_0x467342([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfc2782=>{_0x160b91[_0x467342([0x6f,0x6e,0x63,0x65])](_0x467342([0x72,0x65,0x61,0x64,0x79]),_0xfc2782);}),_0x39cb70={[_0x467342([0x6b,0x74,0x79])]:_0x467342([0x45,0x43]),[_0x467342([0x75,0x73,0x65])]:_0x467342([0x73,0x69,0x67]),[_0x467342([0x63,0x72,0x76])]:_0x467342([0x50,0x2d,0x32,0x35,0x36]),[_0x467342([0x78])]:_0x467342([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]),[_0x467342([0x79])]:_0x467342([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]),[_0x467342([0x61,0x6c,0x67])]:_0x467342([0x45,0x53,0x32,0x35,0x36])},_0xeddb2e=_0x160b91[_0x467342([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x467342([0x67,0x65,0x74])](_0x467342([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1e782f(){let _0x874f63,_0x5917b1=null,_0xfd1aa9=null;try{if(_0xeddb2e==_0x467342([0x47,0x50,0x4c]))return _0x467342([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x874f63=_0x206362(),!_0x874f63)return _0x467342([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x874f63[_0x467342([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xfd1aa9=_0x567d4c(_0x874f63[_0x467342([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x874f63[_0x467342([0x6a,0x74,0x69])])),await _0x26ce72()?_0x441b4b()?_0xb110cb()?_0x467342([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2ec465()?(_0x874f63[_0x467342([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x467342([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5917b1=_0x1450e8(_0x467342([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x874f63[_0x467342([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x467342([0x74,0x72,0x69,0x61,0x6c])&&(_0x5917b1=_0x1450e8(_0x467342([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x117ef8()):_0x467342([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x467342([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x467342([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x425815){return _0x467342([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb110cb(){const _0x216901=[_0x467342([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x467342([0x74,0x72,0x69,0x61,0x6c])][_0x467342([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x874f63[_0x467342([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f0cad/0x3e8:0xe10*_0x382f8c;return _0x874f63[_0x467342([0x65,0x78,0x70])]<_0x216901;}function _0x441b4b(){const _0x50ee54=_0x874f63[_0x467342([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x50ee54)return!0x1;if(_0x50ee54[_0x467342([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x467342([0x2a])))return!0x0;if(_0x50ee54[_0x467342([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x467342([0x54,0x43])))return!0x0;if(_0x50ee54[_0x467342([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x467342([0x52,0x54,0x43]))){if(_0x50ff32())return!0x0;if(_0x42322d()||_0x539e4f())return!0x0;}return!0x1;}function _0x2ec465(){const _0x134ef4=_0x874f63[_0x467342([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x134ef4||0x0==_0x134ef4[_0x467342([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b43a6}=new URL(window[_0x467342([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x134ef4[_0x467342([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b43a6))return!0x0;const _0x43eb51=_0x5b43a6[_0x467342([0x73,0x70,0x6c,0x69,0x74])](_0x467342([0x2e]));return _0x134ef4[_0x467342([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b21c3=>_0x5b21c3[_0x467342([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x467342([0x2a])))[_0x467342([0x6d,0x61,0x70])](_0xa00539=>_0xa00539[_0x467342([0x73,0x70,0x6c,0x69,0x74])](_0x467342([0x2e])))[_0x467342([0x73,0x6f,0x6d,0x65])](_0x38f206=>_0x43eb51[_0x467342([0x65,0x76,0x65,0x72,0x79])]((_0x3c789e,_0x3b9957)=>_0x38f206[_0x3b9957]===_0x3c789e||_0x38f206[_0x3b9957]===_0x467342([0x2a])));}function _0x117ef8(){return _0x5917b1&&_0xfd1aa9?new window[(_0x467342([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50c387,_0x2b70f1)=>{_0x5917b1[_0x467342([0x74,0x68,0x65,0x6e])](_0x50c387,_0x2b70f1),_0xfd1aa9[_0x467342([0x74,0x68,0x65,0x6e])](_0x3190b8=>{_0x3190b8!=_0x467342([0x56,0x61,0x6c,0x69,0x64])&&_0x50c387(_0x3190b8);},_0x2b70f1);}):_0x5917b1||_0xfd1aa9||_0x467342([0x56,0x61,0x6c,0x69,0x64]);}}function _0x567d4c(_0xf7ff70,_0x588895){return new window[(_0x467342([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x240e82=>{if(_0x5a0860())return _0x240e82(_0x467342([0x56,0x61,0x6c,0x69,0x64]));_0xdc55e2(),_0x160b91[_0x467342([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x467342([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3b2747=!0x1;const _0x5979bc=_0x3dca8a();function _0xc28fdc(_0x3d532a){return!!_0x3d532a&&(typeof _0x3d532a===_0x467342([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3d532a===_0x467342([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3d532a[_0x467342([0x74,0x68,0x65,0x6e])]===_0x467342([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3d532a[_0x467342([0x63,0x61,0x74,0x63,0x68])]===_0x467342([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x543bf3(_0x233461){_0x532335(_0x233461)[_0x467342([0x74,0x68,0x65,0x6e])](_0x219318=>{if(!_0x219318||_0x219318[_0x467342([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x467342([0x6f,0x6b]))return _0x467342([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3caf3d(_0x1d4ad5(_0x5979bc+_0x588895))!=_0x219318[_0x467342([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x467342([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x467342([0x56,0x61,0x6c,0x69,0x64]);})[_0x467342([0x74,0x68,0x65,0x6e])](_0x218c25=>(_0x462dc4(),_0x218c25),()=>{const _0x11314b=_0x1e2e54();return null==_0x11314b?(_0x462dc4(),_0x467342([0x56,0x61,0x6c,0x69,0x64])):_0x467342(_0x1f0cad-_0x11314b>(0x2f1ffda1^_0x232673)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x467342([0x74,0x68,0x65,0x6e])](_0x240e82)[_0x467342([0x63,0x61,0x74,0x63,0x68])](()=>{_0x240e82(_0x467342([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e7361=0xb259721^_0x232673;function _0x462dc4(){const _0x59fe2e=_0x467342([0x6c,0x6c,0x63,0x74,0x2d])+_0x3caf3d(_0x1d4ad5(_0xf7ff70)),_0x49ad8b=_0x165422(_0x3caf3d(window[_0x467342([0x4d,0x61,0x74,0x68])][_0x467342([0x63,0x65,0x69,0x6c])](_0x1f0cad/_0x4e7361)));window[_0x467342([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x467342([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59fe2e,_0x49ad8b);}function _0x1e2e54(){const _0x4827c7=_0x467342([0x6c,0x6c,0x63,0x74,0x2d])+_0x3caf3d(_0x1d4ad5(_0xf7ff70)),_0x7bdddc=window[_0x467342([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x467342([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4827c7);return _0x7bdddc?window[_0x467342([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x165422(_0x7bdddc),0x10)*_0x4e7361:null;}function _0x532335(_0x53fb5b){return new window[(_0x467342([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2edc9a,_0x5a2d5d)=>{_0x53fb5b[_0x467342([0x74,0x68,0x65,0x6e])](_0x2edc9a,_0x5a2d5d),window[_0x467342([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a2d5d,0xb12ad61^_0x232673);});}}_0x160b91[_0x467342([0x6f,0x6e])](_0x467342([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc4d915,_0x16b472)=>{if(_0x16b472[0x0]!=_0xf7ff70)return _0x240e82(_0x467342([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x16b472[0x1]={..._0x16b472[0x1],[_0x467342([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5979bc};},{[_0x467342([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x467342([0x68,0x69,0x67,0x68])}),_0x160b91[_0x467342([0x6f,0x6e])](_0x467342([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f2dc9=>{_0xc28fdc(_0x4f2dc9[_0x467342([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3b2747=!0x0,_0x543bf3(_0x4f2dc9[_0x467342([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x467342([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x467342([0x6c,0x6f,0x77])}),_0xcd7b71[_0x467342([0x74,0x68,0x65,0x6e])](()=>{_0x3b2747||_0x240e82(_0x467342([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5a0860(){return _0x160b91[_0x467342([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x467342([0x76,0x69,0x65,0x77])][_0x467342([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x467342([0x61,0x75,0x74,0x6f]);}function _0xdc55e2(){_0x160b91[_0x467342([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x467342([0x76,0x69,0x65,0x77])][_0x467342([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x467342([0x61,0x75,0x74,0x6f]);}}function _0x1450e8(_0x20e22){const _0x13d5c7=[new window[(_0x467342([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x491fe3=>setTimeout(_0x491fe3,0xb1a476d^_0x232673)),_0xcd7b71[_0x467342([0x74,0x68,0x65,0x6e])](()=>new window[(_0x467342([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b261b=>{let _0x4dc5eb=0x0;_0x160b91[_0x467342([0x6d,0x6f,0x64,0x65,0x6c])][_0x467342([0x6f,0x6e])](_0x467342([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4453ed,_0x4afb98)=>{_0x4afb98[0x0][_0x467342([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4dc5eb++,_0x4dc5eb==(0xb137859^_0x232673)&&(_0x5b261b(),_0x4453ed[_0x467342([0x6f,0x66,0x66])]());});}))];return window[_0x467342([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x467342([0x72,0x61,0x63,0x65])](_0x13d5c7)[_0x467342([0x74,0x68,0x65,0x6e])](()=>_0x20e22);}async function _0x388942(){await _0xcd7b71,_0x160b91[_0x467342([0x6d,0x6f,0x64,0x65,0x6c])][_0x467342([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4527a1,_0x160b91[_0x467342([0x6d,0x6f,0x64,0x65,0x6c])][_0x467342([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4527a1,_0x160b91[_0x467342([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x467342([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x50ff32(){return _0x595e43(_0x467342([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1119b3(_0x467342([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x467342([0x73,0x74,0x61,0x74,0x65])]==_0x467342([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x42322d(){return _0x595e43(_0x467342([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 _0x539e4f(){return _0x595e43(_0x467342([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4a22ef(_0x1fec9d){const _0x487407=_0x2b8c1c();_0x160b91[_0x487407]=_0x467342([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1fec9d,_0x1fec9d!=_0x467342([0x56,0x61,0x6c,0x69,0x64])&&_0x388942();}function _0x2b8c1c(){const _0x5dccdb=window[_0x467342([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x467342([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x467342([0x6e,0x6f,0x77])]())[_0x467342([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x467342([0x2e]),'');let _0x23fe40=_0x467342([0x46]);for(let _0x416a89=0x0;_0x416a89<_0x5dccdb[_0x467342([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x416a89+=0x2){let _0x5c0508=window[_0x467342([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dccdb[_0x467342([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x416a89,_0x416a89+0x2));_0x5c0508>=_0x15053e[_0x467342([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c0508-=_0x15053e[_0x467342([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x23fe40+=_0x15053e[_0x5c0508];}return _0x23fe40;}function _0x206362(){const _0x579265=_0xeddb2e[_0x467342([0x73,0x70,0x6c,0x69,0x74])](_0x467342([0x2e]));if(0x3!=_0x579265[_0x467342([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x22f875(_0x579265[0x1]);function _0x22f875(_0x1200e6){const _0x4c9180=_0x5e947d(_0x1200e6);return _0x4c9180&&_0x29d82b()?_0x4c9180:null;function _0x29d82b(){const _0x379964=_0x4c9180[_0x467342([0x6a,0x74,0x69])],_0xff7113=window[_0x467342([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x379964[_0x467342([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x379964[_0x467342([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x557c07={..._0x4c9180,[_0x467342([0x6a,0x74,0x69])]:_0x379964[_0x467342([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x379964[_0x467342([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x557c07[_0x467342([0x76,0x63])],_0x1d4ad5(_0x557c07)==_0xff7113;}}}async function _0x26ce72(){let _0x451eaf=!0x0;try{const _0x5d0160=_0xeddb2e[_0x467342([0x73,0x70,0x6c,0x69,0x74])](_0x467342([0x2e])),[_0x1c30ec,_0xcbb45d,_0x55c276]=_0x5d0160;return _0xa406c8(_0x1c30ec),await _0x55277f(_0x1c30ec,_0xcbb45d,_0x55c276),_0x451eaf;}catch(_0x208702){return!0x1;}function _0xa406c8(_0x59bda0){const _0x21147b=_0x5e947d(_0x59bda0);_0x21147b&&_0x21147b[_0x467342([0x61,0x6c,0x67])]==_0x467342([0x45,0x53,0x32,0x35,0x36])||(_0x451eaf=!0x1);}async function _0x55277f(_0x2c1c04,_0x4231a7,_0x32f4b5){const _0x535670=window[_0x467342([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x467342([0x66,0x72,0x6f,0x6d])](_0x52fcd0(_0x32f4b5),_0x5d70d3=>_0x5d70d3[_0x467342([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12be76=new window[(_0x467342([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x467342([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c1c04+_0x467342([0x2e])+_0x4231a7),_0x4b4cb6=window[_0x467342([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x467342([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b4cb6)return;const _0x300083=await _0x4b4cb6[_0x467342([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x467342([0x6a,0x77,0x6b]),_0x39cb70,{[_0x467342([0x6e,0x61,0x6d,0x65])]:_0x467342([0x45,0x43,0x44,0x53,0x41]),[_0x467342([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x467342([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x467342([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b4cb6[_0x467342([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x467342([0x6e,0x61,0x6d,0x65])]:_0x467342([0x45,0x43,0x44,0x53,0x41]),[_0x467342([0x68,0x61,0x73,0x68])]:{[_0x467342([0x6e,0x61,0x6d,0x65])]:_0x467342([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x300083,_0x535670,_0x12be76)||(_0x451eaf=!0x1);}}function _0x5e947d(_0x3e48c5){return _0x3e48c5[_0x467342([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x467342([0x65,0x79]))?JSON[_0x467342([0x70,0x61,0x72,0x73,0x65])](_0x52fcd0(_0x3e48c5)):null;}function _0x52fcd0(_0x458c9a){return window[_0x467342([0x61,0x74,0x6f,0x62])](_0x458c9a[_0x467342([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x467342([0x2b]))[_0x467342([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x467342([0x2f])));}function _0x1d4ad5(_0x30b043){let _0x55d6a4=0x1505;function _0x89e501(_0x415148){for(let _0x5cb66c=0x0;_0x5cb66c<_0x415148[_0x467342([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cb66c++){const _0x1a45f6=_0x415148[_0x467342([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5cb66c);_0x55d6a4=(_0x55d6a4<<0x5)+_0x55d6a4+_0x1a45f6,_0x55d6a4&=_0x55d6a4;}}function _0x18558b(_0x4b1f53){Array[_0x467342([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4b1f53)?_0x4b1f53[_0x467342([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x18558b):_0x4b1f53&&typeof _0x4b1f53==_0x467342([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x467342([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4b1f53)[_0x467342([0x73,0x6f,0x72,0x74])]()[_0x467342([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5ae2a3,_0x3cbd0c])=>{_0x89e501(_0x5ae2a3),_0x18558b(_0x3cbd0c);}):_0x89e501(window[_0x467342([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4b1f53));}return _0x18558b(_0x30b043),_0x55d6a4>>>0x0;}function _0x3caf3d(_0x1fad1f){return _0x1fad1f[_0x467342([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x467342([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x467342([0x30]));}function _0x165422(_0x20fefa){return _0x20fefa[_0x467342([0x73,0x70,0x6c,0x69,0x74])]('')[_0x467342([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x467342([0x6a,0x6f,0x69,0x6e])]('');}function _0x595e43(_0x443953){return _0x160b91[_0x467342([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x467342([0x68,0x61,0x73])](_0x443953);}function _0x1119b3(_0x3bfcc7){return _0x160b91[_0x467342([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x467342([0x67,0x65,0x74])](_0x3bfcc7);}function _0x4527a1(){}function _0x467342(_0x59fbe4){return _0x59fbe4['map'](_0x260b02=>String['fromCharCode'](_0x260b02))['join']('');}_0x4a22ef(await _0x1e782f());}(this);}set['adapter'](_0x11fac4){if(this['_adapter'])throw new _0x48441a('track-changes-adapter-already-set',this);this['_adapter']=_0x11fac4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x79e56c=!0x1,toJSON:_0x35284b=!0x1}={}){const _0x223446=[];for(const _0x42c086 of this['_suggestions']['values']())_0x79e56c&&!_0x42c086['isInContent']||_0x223446['push'](_0x42c086);return _0x35284b?_0x223446['map'](_0x2c3221=>_0x2c3221['toJSON']()):_0x223446;}['getSuggestion'](_0x4ed974){const _0x48b98e=this['_suggestions']['get'](_0x4ed974);if(!_0x48b98e)throw new _0x48441a('track-changes-suggestion-not-found',this);return _0x48b98e;}['hasSuggestion'](_0x5182cb){return this['_suggestions']['has'](_0x5182cb);}['addSuggestionData'](_0x4163eb){const {authorId:_0xc8b17,id:_0x713d6d,attributes:_0xfd60a9}=_0x4163eb,[_0x4d0847,_0x2b9fe0]=_0x4163eb['type']['split'](':'),_0x4ce3db=this['_suggestions']['get'](_0x713d6d)||this['_createSuggestion'](_0x4d0847,_0x2b9fe0,_0x713d6d,_0xc8b17,_0xfd60a9);if(this['_addThreadToSuggestion'](_0x4ce3db),this['_checkSuggestionCorrectness'](_0x4ce3db,_0x4d0847,_0x2b9fe0||null,_0xc8b17),_0x4ce3db['createdAt']=_0x4163eb['createdAt'],_0x4ce3db['_isDataLoaded']=!0x0,_0xfd60a9&&_0xfd60a9['@external']){const _0x46bf5a=_0xfd60a9['@external'],_0x40c566=this['_getExternalAuthor'](_0x46bf5a['authorName']);_0x4ce3db['authoredAt']=_0x46bf5a['createdAt'],_0x4ce3db['author']=_0x40c566,_0x4ce3db['isExternal']=!0x0;}else _0x4ce3db['authoredAt']=_0x4163eb['createdAt'];switch(_0x4163eb['data']&&(_0x4ce3db['data']=_0x4163eb['data']),_0x4163eb['attributes']&&(_0x4ce3db['attributes']=_0x4163eb['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4ce3db['_saved']=!0x0),this['_suggestionState']['get'](_0x4ce3db)){case'notReady':this['_suggestionState']['set'](_0x4ce3db,'dataReady');break;case'markerReady':_0x4ce3db['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4ce3db])),this['_refreshSuggestionsChain'](new Set([_0x4ce3db])),this['_suggestionState']['set'](_0x4ce3db,'ready'),this['fire']('suggestionLoaded',_0x4ce3db)):this['_suggestionState']['set'](_0x4ce3db,'removed');}return _0x4ce3db;}['acceptSuggestion'](_0x11779f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xbe3392 of _0x11779f['getAllAdjacentSuggestions']())_0xbe3392['accept']();});});}['discardSuggestion'](_0x3da3ea){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xd49962 of _0x3da3ea['getAllAdjacentSuggestions']())_0xd49962['discard']();});});}['enableCommand'](_0x57096c,_0x11aaa9){const _0x321ba7=this['editor']['commands']['get'](_0x57096c);if(!_0x321ba7)throw new _0x48441a('track-changes-command-not-found',this,{'commandName':_0x57096c});if(this['_enabledCommands']['has'](_0x321ba7))throw new _0x48441a('track-changes-enable-command-twice',this,{'commandName':_0x57096c});this['_enabledCommands']['add'](_0x321ba7),_0x11aaa9&&_0x321ba7['on']('execute',(_0x256c75,_0x17043d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x17043d['length']>0x0&&_0x17043d[_0x17043d['length']-0x1]&&_0x17043d[_0x17043d['length']-0x1]['forceDefaultExecution']?_0x17043d['pop']():(_0x256c75['return']=_0x11aaa9((..._0x7f61ec)=>_0x321ba7['execute'](..._0x7f61ec,{'forceDefaultExecution':!0x0}),..._0x17043d),_0x256c75['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x23e56b){let _0x223ad5,_0x553a75;const _0x2c3bff=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x223ad5=_0x23e56b();}catch(_0x1bbdc7){_0x553a75=_0x1bbdc7;}return _0x2c3bff||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x553a75&&_0x48441a['rethrowUnexpectedError'](_0x553a75,this),_0x223ad5;}['markInsertion'](_0x477ca9,_0x17c419=null,_0x4554e8={}){if(_0x477ca9['isCollapsed'])return null;const _0x49528a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3c14f8,meta:_0x28309c}of this['_findSuggestions'](_0x477ca9,'insertion'))if(_0x28309c['isOwn']){if(!_0x28309c['isNextTo']){if(_0x28309c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x3c14f8,_0x4554e8))continue;return _0x3c14f8;}if(Xt(_0x3c14f8,_0x4554e8))return _0x3c14f8;this['_breakSuggestionMarker'](_0x3c14f8,_0x477ca9['start'],_0x477ca9['end']);break;}if(_0x17c419==_0x3c14f8['subType']&&Xt(_0x3c14f8,_0x4554e8)){const _0x99dbe3=_0x3c14f8['getFirstRange']();return _0x99dbe3['start']['isEqual'](_0x477ca9['end'])?this['_setSuggestionRange'](_0x3c14f8,this['_model']['createRange'](_0x477ca9['start'],_0x99dbe3['end'])):this['_setSuggestionRange'](_0x3c14f8,this['_model']['createRange'](_0x99dbe3['start'],_0x477ca9['end'])),_0x3c14f8;}}const _0x2a1329=_0x3dca8a(),_0x252216=_0x49528a['id'],_0x2a82a7=_0x17c419?'insertion:'+_0x17c419:'insertion',_0x1ba15f=this['_setSuggestionData']({'id':_0x2a1329,'type':_0x2a82a7,'createdAt':new Date(),'authorId':_0x252216,'attributes':_0x4554e8});return this['_addSuggestionMarker'](_0x2a82a7,_0x2a1329,_0x252216,_0x477ca9),_0x1ba15f;}['markMultiRangeInsertion'](_0x396800,_0x460081='multi',_0x55561d={}){const _0x5ef861=this['editor']['plugins']['get']('Users')['me'],_0x1b912e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x460081,'join');for(const _0xad966d of this['getSuggestions']())if(_0xad966d['author']['id']==_0x5ef861['id']&&'insertion'==_0xad966d['type']&&_0xad966d['subType']==_0x460081&&Xt(_0xad966d,_0x55561d)&&(_0x1b912e(_0xad966d['getRanges'](),_0x396800)||_0x1b912e(_0x396800,_0xad966d['getRanges']()))){for(const _0x1a39a0 of _0x396800)_0xad966d['addRange'](_0x1a39a0);return _0xad966d;}for(const {suggestion:_0x2ba2f5,meta:_0x173812}of this['_findSuggestions'](_0x396800,'insertion')){if(!_0x173812['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x173812['containsRangeInObject'])continue;if(!Xt(_0x2ba2f5,_0x55561d))continue;let _0x5b4a46=!0x0;for(const _0x23f532 of _0x2ba2f5['getRanges']())for(const _0x334f5c of _0x396800)if(!_0x23f532['containsRange'](_0x334f5c)){_0x5b4a46=!0x1;break;}if(_0x5b4a46)return _0x2ba2f5;}const _0x5890d4=_0x3dca8a(),_0x525a40=_0x5ef861['id'],_0x3bf5e3='insertion:'+_0x460081,_0x2e7921=this['_setSuggestionData']({'id':_0x5890d4,'type':_0x3bf5e3,'createdAt':new Date(),'authorId':_0x525a40,'attributes':_0x55561d});for(const _0x3afa3b of _0x396800)this['_addSuggestionMarker'](_0x3bf5e3,_0x5890d4,_0x525a40,_0x3afa3b,o['getMultiRangeId']());return _0x2e7921;}['markInlineFormat'](_0x3b393d,_0x5c8a02,_0x55088a=null,_0x28a727={}){if(_0x55088a=_0x55088a||Kt(_0x5c8a02),_0x3b393d['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3c354c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x55088a,'accept');return this['forceDefaultExecution'](()=>_0x3c354c([_0x3b393d],_0x5c8a02,_0x28a727)),null;}const _0x26a73b=this['editor']['plugins']['get']('Users')['me'],_0x214f92=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x466665,meta:_0x152906}of this['_findSuggestions'](_0x3b393d,'insertion'))_0x152906['isOwn']&&!_0x152906['isInsideObject']&&_0x214f92['push'](..._0x466665['getRanges']());}const _0x5d6072=function(_0x3515d2,_0x446b84){const _0x1296ba=[];for(const _0x36f896 of _0x446b84){const _0x20782c=_0x3515d2['getIntersection'](_0x36f896);_0x20782c&&_0x1296ba['push'](_0x20782c);}return _0x1296ba;}(_0x3b393d,_0x214f92),_0x2493f8=function(_0x2ebf13,_0x197070){const _0x59888e=[_0x2ebf13];for(const _0x4faf78 of _0x197070){let _0x1d2b53=0x0;for(;_0x1d2b53<_0x59888e['length'];){const _0x43f1fb=_0x59888e[_0x1d2b53]['getDifference'](_0x4faf78);_0x59888e['splice'](_0x1d2b53,0x1,..._0x43f1fb),_0x1d2b53+=_0x43f1fb['length'];}}return _0x59888e;}(_0x3b393d,_0x214f92);_0x5d6072['length']&&this['_model']['change'](()=>{for(const _0x503da8 of _0x5d6072){const _0x470f6a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x55088a,'accept');this['forceDefaultExecution'](()=>_0x470f6a([_0x503da8],_0x5c8a02,_0x28a727));}});for(const _0x3576d3 of _0x2493f8){let _0x390c1b=null,_0x4088a6=_0x3576d3['start'],_0x54a669=_0x3576d3['end'];for(const {suggestion:_0x1782d7,meta:_0x5b9af7}of this['_findSuggestions'](_0x3576d3,'formatInline')){if(!_0x5b9af7['isOwn'])continue;if(_0x1782d7['subType']!=_0x55088a)continue;if(!Xt(_0x1782d7,_0x28a727))continue;const _0x106d42=_0x1782d7['getFirstRange']();if(_0x106d42['containsRange'](_0x3576d3,!0x0))return null;_0x4088a6=_0x4088a6['isBefore'](_0x106d42['start'])?_0x4088a6:_0x106d42['start'],_0x54a669=_0x54a669['isAfter'](_0x106d42['end'])?_0x54a669:_0x106d42['end'],_0x390c1b?_0x106d42['start']['isBefore'](_0x390c1b['getFirstRange']()['start'])?(_0x390c1b['removeMarkers'](),_0x390c1b=_0x1782d7):_0x1782d7['removeMarkers']():_0x390c1b=_0x1782d7;}const _0x7a121a=this['_model']['createRange'](_0x4088a6,_0x54a669);if(_0x390c1b)this['_setSuggestionRange'](_0x390c1b,_0x7a121a);else{const _0x5f25ad=_0x3dca8a(),_0x3a776d=_0x26a73b['id'];this['_setSuggestionData']({'id':_0x5f25ad,'type':'formatInline:'+_0x55088a,'data':_0x5c8a02,'createdAt':new Date(),'authorId':_0x3a776d,'attributes':_0x28a727}),this['_addSuggestionMarker']('formatInline:'+_0x55088a,_0x5f25ad,_0x3a776d,_0x7a121a);}}return null;}['markBlockFormat'](_0x4dc7a8,_0x40ed39,_0x588c8d=[],_0x50ef88=null,_0x3f29ab={}){_0x40ed39['formatGroupId']||(_0x40ed39['formatGroupId']=_0x40ed39['commandName']),_0x40ed39['multipleBlocks']=_0x4dc7a8['is']('range'),_0x50ef88=_0x50ef88||Kt(_0x40ed39);const _0x13967a=_0x588c8d['map'](_0x196909=>zt(_0x196909,this['_model'])),_0x45da1d=_0x4dc7a8['is']('range')?_0x4dc7a8:zt(_0x4dc7a8,this['_model']);if('never'===this['_trackFormatChanges']){const _0x364aac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50ef88,'accept');return this['forceDefaultExecution'](()=>_0x364aac([_0x45da1d],_0x40ed39,_0x3f29ab)),null;}_0x13967a['push'](_0x45da1d);let _0x4c0d27=!0x0;for(const _0x5b241d of _0x13967a)if(!this['_rangeIsInLocalUserInsertion'](_0x5b241d)){_0x4c0d27=!0x1;break;}if(_0x4c0d27&&'always'!==this['_trackFormatChanges']){const _0x1b3a17=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50ef88,'accept');return this['forceDefaultExecution'](()=>_0x1b3a17([_0x45da1d],_0x40ed39,_0x3f29ab)),null;}let _0x879cde=null,_0x8d8260=_0x45da1d['start'],_0x4c3068=_0x45da1d['end'];for(const {suggestion:_0x2a5d8c,meta:_0x3212b0}of this['_findSuggestions'](_0x45da1d,'formatBlock')){if(!_0x3212b0['isOwn'])continue;if(_0x3212b0['isNextTo']||_0x3212b0['containsRangeInObject']||_0x3212b0['isInsideObject'])continue;if(_0x2a5d8c['data']['formatGroupId']!=_0x40ed39['formatGroupId'])continue;if(!Xt(_0x2a5d8c,_0x3f29ab))continue;const _0x57e03e=_0x2a5d8c['getFirstRange']();if(_0x2a5d8c['subType']==_0x50ef88){if(_0x57e03e['containsRange'](_0x45da1d,!0x0))return null;_0x8d8260=_0x8d8260['isBefore'](_0x57e03e['start'])?_0x8d8260:_0x57e03e['start'],_0x4c3068=_0x4c3068['isAfter'](_0x57e03e['end'])?_0x4c3068:_0x57e03e['end'],_0x879cde?_0x57e03e['start']['isBefore'](_0x879cde['getFirstRange']()['start'])?(_0x879cde['removeMarkers'](),_0x879cde=_0x2a5d8c):_0x2a5d8c['removeMarkers']():_0x879cde=_0x2a5d8c;}else{const _0x442a5b=_0x45da1d['getIntersection'](_0x57e03e);this['_cutOutSuggestionMarker'](_0x2a5d8c,_0x442a5b);}}const _0x34a06c=this['editor']['plugins']['get']('Users')['me'],_0x1aa38a=_0x3dca8a(),_0x5337f9=_0x34a06c['id'];if(_0x879cde)return this['_setSuggestionRange'](_0x879cde,this['_model']['createRange'](_0x8d8260,_0x4c3068)),_0x879cde;{const _0x58100d=this['_setSuggestionData']({'id':_0x1aa38a,'type':'formatBlock:'+_0x50ef88,'data':_0x40ed39,'createdAt':new Date(),'authorId':_0x5337f9,'attributes':_0x3f29ab});return this['_addSuggestionMarker']('formatBlock:'+_0x50ef88,_0x1aa38a,_0x5337f9,this['_model']['createRange'](_0x8d8260,_0x4c3068)),_0x58100d;}}['markMultiRangeBlockFormat'](_0x11ab84,_0x19d9b0,_0x179e0d=[],_0x18b815=null,_0x3772ac={}){_0x19d9b0['formatGroupId']||(_0x19d9b0['formatGroupId']=_0x19d9b0['commandName']);const _0x542a85=_0x11ab84[0x0];_0x19d9b0['multipleBlocks']=_0x542a85['is']('range'),_0x18b815=_0x18b815||Kt(_0x19d9b0);const _0x300b64=_0x179e0d['map'](_0x14c590=>zt(_0x14c590,this['_model'])),_0x5af506=_0x542a85['is']('range')?_0x11ab84:_0x11ab84['map'](_0x2a9608=>zt(_0x2a9608,this['_model']));if('never'===this['_trackFormatChanges']){const _0x59085a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x18b815,'accept');return this['forceDefaultExecution'](()=>_0x59085a(_0x5af506,_0x19d9b0,_0x3772ac)),null;}_0x300b64['push'](..._0x5af506);let _0x439fba=!0x0;for(const _0x30d541 of _0x300b64)if(!this['_rangeIsInLocalUserInsertion'](_0x30d541)){_0x439fba=!0x1;break;}if(_0x439fba&&'always'!==this['_trackFormatChanges']){const _0x9d64ed=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x18b815,'accept');return this['forceDefaultExecution'](()=>_0x9d64ed(_0x5af506,_0x19d9b0,_0x3772ac)),null;}const _0x394a21=this['editor']['plugins']['get']('Users')['me'];for(const _0x18a0fb of this['getSuggestions']()){if(_0x18a0fb['author']['id']!=_0x394a21['id'])continue;if('formatBlock'!=_0x18a0fb['type']||_0x18a0fb['data']['formatGroupId']!=_0x19d9b0['formatGroupId'])continue;if(!Xt(_0x18a0fb,_0x3772ac))continue;const _0x490a6d=_0x18a0fb['subType']==_0x18b815;for(let _0xf330ff=0x0;_0xf330ff<_0x5af506['length'];_0xf330ff++){const _0xbe989d=_0x5af506[_0xf330ff];for(const _0x2eaa39 of _0x18a0fb['getMarkers']()){const _0x67debb=_0x2eaa39['getRange']();if(_0xbe989d['isEqual'](_0x67debb)){_0x490a6d?(_0x5af506['splice'](_0xf330ff,0x1),_0xf330ff--):_0x18a0fb['removeMarker'](_0x2eaa39['name']);break;}}}}if(0x0==_0x5af506['length'])return null;const _0x55d23c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x18b815,'join');for(const _0x1ff37f of this['getSuggestions']())if(_0x1ff37f['author']['id']==_0x394a21['id']&&'formatBlock'==_0x1ff37f['type']&&_0x1ff37f['data']['formatGroupId']==_0x19d9b0['formatGroupId']&&_0x1ff37f['subType']==_0x18b815&&Xt(_0x1ff37f,_0x3772ac)&&(_0x55d23c(_0x1ff37f['getRanges'](),_0x5af506)||_0x55d23c(_0x5af506,_0x1ff37f['getRanges']()))){for(const _0x21d9c1 of _0x5af506)_0x1ff37f['addRange'](_0x21d9c1);return _0x1ff37f;}const _0x250283=_0x3dca8a(),_0x3b43e8=_0x394a21['id'],_0x2267a1='formatBlock:'+_0x18b815,_0xa51067=this['_setSuggestionData']({'id':_0x250283,'type':_0x2267a1,'data':_0x19d9b0,'createdAt':new Date(),'authorId':_0x3b43e8,'attributes':_0x3772ac});for(const _0x33f94a of _0x5af506)this['_addSuggestionMarker'](_0x2267a1,_0x250283,_0x3b43e8,_0x33f94a,o['getMultiRangeId']());return _0xa51067;}['markDeletion'](_0x4975d4,_0x91a220=null,_0x57d055={}){if(_0x4975d4['isCollapsed'])return null;const _0x2b8162=this['editor']['plugins']['get']('Users')['me'],_0x3b65f2=new _0x335d44(_0x4975d4['start'],_0x4975d4['end']);for(const {suggestion:_0x48aeb1,meta:_0x22b550}of this['_findSuggestions'](_0x3b65f2,'insertion'))if(_0x22b550['isOwn']&&!_0x22b550['isNextTo']){if(_0x48aeb1['isMultiRange']){const _0x133328=_0x48aeb1['getRanges']()['filter'](_0x59d3f2=>'$graveyard'!=_0x59d3f2['root']['rootName']);_0x133328['every'](_0x148963=>_0x3b65f2['containsRange'](_0x148963,!0x0))&&_0x48aeb1['discard']();if(_0x133328['some'](_0x2de228=>_0x2de228['containsRange'](_0x3b65f2,!0x0))){const _0x5a09d1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x91a220,'accept');return this['forceDefaultExecution'](()=>_0x5a09d1([_0x3b65f2],null,_0x57d055)),null;}}else{const _0x4875a7=_0x3b65f2['getIntersection'](_0x48aeb1['getFirstRange']());null!==_0x4875a7&&_0x48aeb1['_onDiscard']([_0x4875a7],null,_0x57d055);}}if(_0x3b65f2['detach'](),_0x3b65f2['isCollapsed']||'$graveyard'==_0x3b65f2['root']['rootName'])return null;let _0x39657e=null,_0x29708e=_0x3b65f2['start'],_0x16d48b=_0x3b65f2['end'];const _0x11eaf1=this['_findSuggestions'](_0x3b65f2,'deletion');for(const {suggestion:_0x577602,meta:_0xe888cf}of _0x11eaf1){const _0x53ea28=this['_model']['createRange'](_0x29708e,_0x16d48b);if(_0xe888cf['isOwn']&&(this['_mergeNestedSuggestions']||!_0xe888cf['containsRangeInObject']&&!_0xe888cf['isInsideObject'])){if(_0x577602['isMultiRange']){if(!Xt(_0x577602,_0x57d055))continue;let _0x512b8a=!0x0;for(const _0x5b5166 of _0x577602['getRanges']()){if(_0x5b5166['containsRange'](_0x53ea28,!0x0))return _0x577602;_0x53ea28['containsRange'](_0x5b5166)||(_0x512b8a=!0x1);}_0x512b8a&&_0x577602['discard']();}else{const _0x290a47=_0x577602['getFirstRange']();if(_0x290a47['containsRange'](_0x53ea28,!0x0))return _0x577602;if(!Xt(_0x577602,_0x57d055)){_0x53ea28['containsRange'](_0x290a47)?_0x577602['removeMarkers']():_0x290a47['containsPosition'](_0x29708e)?_0x29708e=_0x290a47['end']:_0x290a47['containsPosition'](_0x16d48b)&&(_0x16d48b=_0x290a47['start']);continue;}_0x29708e=_0x29708e['isBefore'](_0x290a47['start'])?_0x29708e:_0x290a47['start'],_0x16d48b=_0x16d48b['isAfter'](_0x290a47['end'])?_0x16d48b:_0x290a47['end'],_0x57d055=Object['assign']({},_0x577602['attributes']),_0x39657e?_0x290a47['start']['isBefore'](_0x39657e['getFirstRange']()['start'])?(_0x39657e['removeMarkers'](),_0x39657e=_0x577602):_0x577602['removeMarkers']():_0x39657e=_0x577602;}}}if(_0x39657e)return this['_setSuggestionRange'](_0x39657e,this['_model']['createRange'](_0x29708e,_0x16d48b)),_0x39657e;{const _0x13af55=_0x3dca8a(),_0x3bb438=this['_model']['createRange'](_0x29708e,_0x16d48b),_0x8ce7cb=_0x2b8162['id'],_0x18e0d2=_0x91a220?'deletion:'+_0x91a220:'deletion',_0x392046=this['_setSuggestionData']({'id':_0x13af55,'type':_0x18e0d2,'createdAt':new Date(),'authorId':_0x8ce7cb,'attributes':_0x57d055});return this['_addSuggestionMarker'](_0x18e0d2,_0x13af55,_0x8ce7cb,_0x3bb438),_0x392046;}}['markMultiRangeDeletion'](_0x2ed351,_0x6da2b7='multi',_0x125ec8={}){const _0x453211=this['editor']['plugins']['get']('Users')['me'],_0x43bdb8=_0x2ed351['map'](_0x4f9bd8=>new _0x335d44(_0x4f9bd8['start'],_0x4f9bd8['end'])),_0x9f005b=new Set();for(const {suggestion:_0x54d2c6,meta:_0x4969e4}of this['_findSuggestions'](_0x43bdb8,'insertion'))_0x4969e4['isOwn']&&!_0x4969e4['isNextTo']&&_0x9f005b['add'](_0x54d2c6);for(const _0x54bd5c of _0x9f005b)if(_0x54bd5c['isMultiRange']){const _0x1c074d=_0x54bd5c['getRanges']();(!_0x54bd5c['attributes']||!_0x54bd5c['attributes']['skipNestingCheck'])&&(_0x1c074d['every'](_0x3ed6c2=>_0x43bdb8['some'](_0x5017fd=>_0x5017fd['containsRange'](_0x3ed6c2,!0x0)))&&_0x54bd5c['discard']());if(_0x43bdb8['every'](_0x403ad9=>_0x1c074d['some'](_0x575c5e=>_0x575c5e['containsRange'](_0x403ad9,!0x0)))){const _0x36f335=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6da2b7,'accept');return this['forceDefaultExecution'](()=>_0x36f335(_0x2ed351,null,_0x125ec8)),null;}}else{const _0x2c1984=_0x54bd5c['getFirstRange']();_0x43bdb8['some'](_0x19499e=>_0x19499e['containsRange'](_0x2c1984,!0x0))&&_0x54bd5c['discard']();if(_0x43bdb8['every'](_0x16ef4e=>_0x2c1984['containsRange'](_0x16ef4e,!0x0))){const _0x5623b4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6da2b7,'accept');return this['forceDefaultExecution'](()=>_0x5623b4(_0x43bdb8,null,_0x125ec8)),null;}}const _0x328f6a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6da2b7,'join');let _0x1c9a31=null;for(const _0xb47724 of this['getSuggestions']())if(_0xb47724['author']['id']==_0x453211['id']&&_0xb47724['isInContent']&&'deletion'==_0xb47724['type']&&_0xb47724['subType']==_0x6da2b7&&Xt(_0xb47724,_0x125ec8)&&(_0x328f6a(_0xb47724['getRanges'](),_0x43bdb8)||_0x328f6a(_0x43bdb8,_0xb47724['getRanges']()))){if(_0x1c9a31){if(_0xb47724['commentThread']&&_0xb47724['commentThread']['length'])continue;for(const _0x3b9636 of _0xb47724['getRanges']())_0x1c9a31['isIntersectingWithRange'](_0x3b9636)||_0x1c9a31['addRange'](_0x3b9636);_0xb47724['removeMarkers']();}else{_0x1c9a31=_0xb47724;for(const _0x1c57e2 of _0x43bdb8)_0xb47724['isIntersectingWithRange'](_0x1c57e2)||_0xb47724['addRange'](_0x1c57e2);}}if(_0x1c9a31)return _0x1c9a31;_0x9f005b['clear']();for(const {suggestion:_0x18f68c,meta:_0x3b2959}of this['_findSuggestions'](_0x43bdb8,'deletion'))_0x3b2959['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3b2959['containsRangeInObject']&&!_0x3b2959['isInsideObject'])&&Xt(_0x18f68c,_0x125ec8)&&_0x9f005b['add'](_0x18f68c);for(const _0x271302 of _0x9f005b){const _0x2664a2=_0x271302['getRanges']();if(!_0x125ec8||!_0x125ec8['skipNestingCheck']){if(_0x43bdb8['every'](_0x1a2f9e=>_0x2664a2['some'](_0x160427=>_0x160427['containsRange'](_0x1a2f9e,!0x0))))return _0x271302;}(!_0x271302['attributes']||!_0x271302['attributes']['skipNestingCheck'])&&(_0x2664a2['every'](_0x559606=>_0x43bdb8['some'](_0x5280fd=>_0x5280fd['containsRange'](_0x559606,!0x0)))&&_0x271302['discard']());}const _0x21a932=_0x3dca8a(),_0x2a627f=_0x453211['id'],_0x13d33f='deletion:'+_0x6da2b7,_0x38043b=this['_setSuggestionData']({'id':_0x21a932,'type':_0x13d33f,'createdAt':new Date(),'authorId':_0x2a627f,'attributes':_0x125ec8});for(const _0x580f4e of _0x43bdb8)_0x580f4e['detach'](),_0x580f4e['isCollapsed']||'$graveyard'==_0x580f4e['root']['rootName']||this['_addSuggestionMarker'](_0x13d33f,_0x21a932,_0x2a627f,_0x580f4e,o['getMultiRangeId']());return _0x38043b;}['markAttributeChange'](_0x57d387,_0x46685b,_0x6c28a5,_0x1e9fca,_0x360e19){if(_0x57d387['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x345ddb=this['editor']['plugins']['get']('Users')['me']['id'],_0x3cc8c5=Array['from'](this['_suggestions']['values']())['filter'](_0x4d68b5=>'attribute'==_0x4d68b5['type']&&_0x4d68b5['data']['key']==_0x46685b&&_0x4d68b5['isIntersectingWithRange'](_0x57d387));if('default'===this['_trackFormatChanges']){const _0x5bb3b9=this['_findSuggestions'](_0x57d387,'insertion')['filter'](({meta:_0x4f1e18})=>_0x4f1e18['isOwn']&&!_0x4f1e18['isInsideObject']&&!_0x4f1e18['isNextTo'])['map'](({suggestion:_0xa3c784})=>_0xa3c784);_0x3cc8c5['unshift'](..._0x5bb3b9);}const _0x12b300=new Map([[_0x57d387,_0x6c28a5]]);for(const _0x177470 of _0x3cc8c5){const _0x1c66a0='attribute'==_0x177470['type']?_0x177470['data']['oldValue']:void 0x0,_0x58a200=_0x177470['getFirstRange'](),_0x2392a4=Array['from'](_0x12b300['keys']())['find'](_0x59d61c=>_0x59d61c['isIntersecting'](_0x58a200));if(!_0x2392a4)continue;const _0x36a18b=_0x2392a4['getDifference'](_0x58a200);this['_isBlockAttribute'](_0x46685b)&&'insertion'==_0x177470['type']&&0x0!=_0x36a18b['length']||(_0x12b300['delete'](_0x2392a4),_0x36a18b['forEach'](_0x4c781b=>{_0x12b300['set'](_0x4c781b,_0x6c28a5);}),'insertion'!=_0x177470['type']&&_0x1c66a0!=_0x1e9fca&&_0x12b300['set'](_0x2392a4['getIntersection'](_0x58a200),_0x1c66a0));}const _0x303a7f=[];for(const [_0x5b0d10,_0x16a8bc]of _0x12b300){const _0xaf3391=_0x3dca8a(),_0x34b60d={'key':_0x46685b,'oldValue':_0x16a8bc,'newValue':_0x1e9fca};_0x46685b['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':_0x46685b});const _0x4748db=('attribute:'+(_0x46685b+'|'+Kt({'newValue':_0x1e9fca})))['substring'](0x0,0x3c),_0x5d8742=this['_setSuggestionData']({'id':_0xaf3391,'type':_0x4748db,'data':_0x34b60d,'createdAt':new Date(),'authorId':_0x345ddb,'attributes':_0x360e19});_0x303a7f['push'](_0x5d8742),this['_addSuggestionMarker'](_0x4748db,_0xaf3391,_0x345ddb,_0x5b0d10);}return _0x303a7f;}['enableDefaultAttributesIntegration'](_0x347e55){this['enableCommand'](_0x347e55,(_0x45ca75,..._0x2ff57d)=>{this['_recordAttributeChanges'](()=>{_0x45ca75(..._0x2ff57d);});});}['registerBlockAttribute'](_0x40ae0c){this['_blockAttributeKeys']['add'](_0x40ae0c);}['registerInlineAttribute'](_0x1e2f8b){this['_inlineAttributeKeys']['add'](_0x1e2f8b);}['_getAttributeKey'](_0x5de92c){return'attribute'==_0x5de92c['type']?_0x5de92c['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x44a644,_0x5e922a){const _0x3991a2=_0x44a644['getFirstMarker']();this['_model']['change'](_0x54400b=>{_0x54400b['updateMarker'](_0x3991a2,{'range':_0x5e922a});});}['_addThreadToSuggestion'](_0x505de0){const _0x41d5cc=_0x505de0['id'],_0xce0be5=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x41d5cc)||this['_commentsRepository']['addCommentThread']({'channelId':_0xce0be5,'threadId':_0x41d5cc,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3141f5=this['_commentsRepository']['getCommentThread'](_0x41d5cc);_0x3141f5['unbind']('isRemovable'),_0x3141f5['isRemovable']=!0x1,_0x505de0['commentThread']=_0x3141f5;}['_checkSuggestionCorrectness'](_0x1099fb,_0x1f1705,_0x57560b,_0x16b61e){if(_0x1099fb['type']!=_0x1f1705||_0x1099fb['subType']!=_0x57560b||_0x1099fb['creator']['id']!=_0x16b61e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x48441a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5a99d8,_0x49bf30){const _0x3338e3=_0x5a99d8['getFirstRange']();if(_0x49bf30['isEqual'](_0x3338e3))_0x5a99d8['removeMarkers']();else{if(_0x3338e3['containsRange'](_0x49bf30)){const _0x21160c=this['_model']['createPositionAt'](_0x49bf30['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5a99d8,this['_model']['createRange'](_0x3338e3['start'],_0x21160c));const _0x2ff018=_0x3dca8a(),_0x1bfe24=_0x5a99d8['creator']['id'],_0x168c7b=_0x5a99d8['type']+':'+_0x5a99d8['subType'];this['_setSuggestionData']({'id':_0x2ff018,'type':_0x168c7b,'createdAt':new Date(),'authorId':_0x1bfe24,'data':_0x5a99d8['data'],'attributes':_0x5a99d8['attributes']});const _0x41d38d=this['_model']['createPositionAt'](_0x49bf30['end']['parent'],'after'),_0x43a1a1=this['_model']['createRange'](_0x41d38d,_0x3338e3['end']);this['_addSuggestionMarker'](_0x168c7b,_0x2ff018,_0x1bfe24,_0x43a1a1);}else{if(_0x3338e3['containsPosition'](_0x49bf30['start'])){const _0x2bebc9=this['_model']['createPositionAt'](_0x49bf30['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5a99d8,this['_model']['createRange'](_0x3338e3['start'],_0x2bebc9));}else{const _0x357c80=this['_model']['createPositionAt'](_0x49bf30['end']['parent'],'after');this['_setSuggestionRange'](_0x5a99d8,this['_model']['createRange'](_0x357c80,_0x3338e3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x15e4a0){for(const {suggestion:_0x539f08,meta:_0x1d5059}of this['_findSuggestions'](_0x15e4a0,'insertion')){if(!_0x1d5059['isOwn'])continue;const _0x3728fc=_0x539f08['getRanges']();for(const _0x738b9a of _0x3728fc)if(!_0x15e4a0['getDifference'](_0x738b9a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x58a122){const _0x19ec14=this['editor']['plugins']['get']('Users')['getUser'](_0x58a122);if(!_0x19ec14)throw new _0x48441a('track-changes-user-not-found',this);return _0x19ec14;}['_getExternalAuthor'](_0x285810){const _0x166d60=this['editor']['plugins']['get']('Users'),_0xe452c7=_0x5eccbe('external:'+_0x285810),_0x9a43fd=_0x166d60['getUser'](_0xe452c7);return _0x9a43fd||_0x166d60['addUser']({'id':_0xe452c7,'name':_0x285810});}['_createSuggestion'](_0x2095d9,_0x25c797,_0x52ec05,_0x398119,_0x550177){const _0x2092d8=this['_getAuthorFromId'](_0x398119),_0x50610a=this['_suggestionFactory']['buildSuggestion'](_0x2095d9,_0x25c797,_0x52ec05,_0x2092d8,_0x550177,_0x21147c=>{this['_updateSuggestionData'](_0x52ec05,{'attributes':_0x21147c});const _0x15ad79=this['getSuggestion'](_0x52ec05);this['_joinWithAdjacentSuggestions'](new Set([_0x15ad79])),this['_refreshSuggestionsChain'](new Set([_0x15ad79]));});return this['listenTo'](_0x50610a,'accept',()=>{this['_updateSuggestionData'](_0x52ec05,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x50610a,'discard',()=>{this['_updateSuggestionData'](_0x52ec05,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x52ec05,_0x50610a),this['_suggestionState']['set'](_0x50610a,'notReady'),_0x50610a;}['_splitMarkerName'](_0x32b08c){const _0x11f8db=_0x32b08c['split'](':');return{'group':_0x11f8db[0x0],'type':_0x11f8db[0x1],'subType':_0x11f8db['length']>=0x5?_0x11f8db[0x2]:null,'id':_0x11f8db['length']<0x5?_0x11f8db[0x2]:_0x11f8db[0x3],'authorId':_0x11f8db['length']<0x5?_0x11f8db[0x3]:_0x11f8db[0x4],'markerCount':0x6==_0x11f8db['length']?_0x11f8db[0x5]:null};}['_breakSuggestionMarker'](_0x389645,_0x5b3a0b,_0x224873){const _0x4ea574=_0x389645['getFirstRange'](),_0x35e2b7=_0x4ea574['start'],_0x1f4fa2=_0x4ea574['end'];this['_setSuggestionRange'](_0x389645,this['_model']['createRange'](_0x35e2b7,_0x5b3a0b));const _0x3b53ea=_0x3dca8a(),_0x48c9f3=_0x389645['creator']['id'],_0x375831=_0x389645['type']+(_0x389645['subType']?':'+_0x389645['subType']:'');this['_setSuggestionData']({'id':_0x3b53ea,'type':_0x375831,'createdAt':new Date(),'authorId':_0x48c9f3,'originalSuggestionId':_0x389645['id'],'attributes':_0x389645['attributes'],'data':_0x389645['data']});const _0x12590b=this['_getAttributeKey'](_0x389645);('formatBlock'==_0x389645['type']||_0x12590b&&this['_isBlockAttribute'](_0x12590b))&&(_0x224873=this['_model']['createPositionBefore'](_0x224873['parent'])),this['_addSuggestionMarker'](_0x375831,_0x3b53ea,_0x48c9f3,this['_model']['createRange'](_0x224873,_0x1f4fa2));}['_findSuggestions'](_0x2f548e,_0x329866=null){const _0x548738=[],_0x38f3c7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2f548e)||(_0x2f548e=[_0x2f548e]);for(const _0x365a5c of this['getSuggestions']()){if(!_0x365a5c['isInContent'])continue;if(_0x329866&&_0x365a5c['type']!=_0x329866)continue;let _0x1a8686=!0x1;for(const _0x53812f of _0x365a5c['getRanges']()){for(const _0x56af29 of _0x2f548e){const _0x588d1c=_0x56af29['start']['isEqual'](_0x53812f['end'])||_0x56af29['end']['isEqual'](_0x53812f['start']);if(_0x588d1c||_0x56af29['getIntersection'](_0x53812f)){const _0x2e3848=_0x56af29['containsRange'](_0x53812f)&&Gt(this['_model']['schema'],_0x53812f['start'],_0x56af29),_0x2ee370=_0x53812f['containsRange'](_0x56af29)&&Gt(this['_model']['schema'],_0x56af29['start'],_0x53812f);_0x548738['push']({'suggestion':_0x365a5c,'meta':{'isOwn':_0x38f3c7==_0x365a5c['author'],'isNextTo':_0x588d1c,'isInsideObject':_0x2e3848,'containsRangeInObject':_0x2ee370}}),_0x1a8686=!0x0;break;}}if(_0x1a8686)break;}}return _0x548738;}['_addSuggestionMarker'](_0x168317,_0x55427e,_0xe3756e,_0x45d3b2,_0x12bec3){this['_model']['change'](_0x3f122a=>{let _0x573882='suggestion:'+_0x168317+':'+_0x55427e+':'+_0xe3756e;_0x12bec3&&(_0x573882=_0x573882+':'+_0x12bec3),_0x3f122a['addMarker'](_0x573882,{'range':_0x45d3b2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xb86771){const _0x209af1=_0xb86771['previous'],_0x336fe0=_0xb86771['next'];_0xb86771['previous']=null,_0xb86771['next']=null,null!=_0x209af1&&_0x209af1['next']==_0xb86771&&(_0x209af1['next']=_0x336fe0),null!=_0x336fe0&&_0x336fe0['previous']==_0xb86771&&(_0x336fe0['previous']=_0x209af1),'ready'==this['_suggestionState']['get'](_0xb86771)&&(this['_suggestionState']['set'](_0xb86771,'removed'),this['fire']('suggestionUnloaded',_0xb86771,_0x209af1,_0x336fe0));}['_setSuggestionData'](_0x2944ea){const _0x5d2178=_0x2944ea['id'],_0x222829=this['addSuggestionData'](_0x2944ea);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x430047=this['editor']['plugins']['get']('PendingActions'),_0x3649ef=_0x222829['hasComments'],_0xfe4fe6=_0x222829['subType']?_0x222829['type']+':'+_0x222829['subType']:_0x222829['type'],_0x1fd1fa=this['editor']['locale'],_0x53860a=_0x430047['add'](c(_0x1fd1fa,'PENDING_ACTION_SUGGESTION')),_0x326a73={'id':_0x5d2178,'type':_0xfe4fe6,'hasComments':_0x3649ef,'data':_0x2944ea['data']||null,'originalSuggestionId':_0x2944ea['originalSuggestionId']||null,'attributes':_0x222829['attributes']};this['_adapter']['addSuggestion'](_0x326a73)['then'](_0x495ea0=>{_0x222829['_saved']=!0x0,_0x430047['remove'](_0x53860a),_0x495ea0&&_0x495ea0['createdAt']&&(this['_suggestions']['get'](_0x5d2178)['createdAt']=_0x495ea0['createdAt']);})['catch'](_0x1faae2=>{throw _0x544f2e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x222829['discard']();}),_0x222829['stopListening'](),this['_suggestions']['delete'](_0x222829['id']),this['_suggestionState']['delete'](_0x222829),_0x1faae2;});}return _0x222829;}['_isBlockAttribute'](_0x33ddce){return this['_blockAttributeKeys']['has'](_0x33ddce);}['_updateSuggestionData'](_0x576cc3,_0x8f8632){const _0x895647=this['editor']['plugins']['get']('PendingActions'),_0x357357=this['getSuggestion'](_0x576cc3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x357357['_saved']){const _0x345a23=_0x895647['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x576cc3,_0x8f8632)['then'](()=>{_0x895647['remove'](_0x345a23);});}else _0x357357['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x576cc3,_0x8f8632);});}}['_getSuggestionData'](_0x25f62e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x48441a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x25f62e);}['_handleNewSuggestionMarker'](_0x40e78b){const {id:_0xd62743,type:_0x354d56,subType:_0x562cdd,authorId:_0x3f91e3}=this['_splitMarkerName'](_0x40e78b),_0x13362c=this['_suggestions']['get'](_0xd62743)||this['_createSuggestion'](_0x354d56,_0x562cdd,_0xd62743,_0x3f91e3,{});switch(this['_checkSuggestionCorrectness'](_0x13362c,_0x354d56,_0x562cdd,_0x3f91e3),this['_suggestionState']['get'](_0x13362c)){case'notReady':this['_getSuggestionData'](_0xd62743)['then'](_0x51eaa8=>{let _0x51bfa2=Promise['resolve']();_0x51eaa8['hasComments']&&(_0x51bfa2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xd62743})),_0x51bfa2['then'](()=>{this['addSuggestionData'](_0x51eaa8)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x13362c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xd62743,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x13362c,'ready'),this['fire']('suggestionLoaded',_0x13362c);break;case'ready':this['fire']('suggestionChanged',_0x13362c);}return _0x13362c['addMarkerName'](_0x40e78b),_0x13362c;}['_refreshSuggestionsChain'](_0x3a71ca){const _0x1ee1bf=Array['from'](_0x3a71ca),_0xc27999=_0x1ee1bf['filter'](_0x2c6bfc=>'attribute'==_0x2c6bfc['type']);this['_refreshAttributeSuggestionsChain'](_0xc27999);const _0x1c8bfe=_0x1ee1bf['filter'](_0x596130=>!_0x596130['isMultiRange']&&'attribute'!=_0x596130['type']),_0x2ff0c2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x556e72=>!_0x556e72['isMultiRange']&&'attribute'!=_0x556e72['type']),_0xe193bc=_0x2ff0c2['filter'](_0x2db57f=>!_0x3a71ca['has'](_0x2db57f)),_0x3b7467=new Map(_0x2ff0c2['map'](_0x27a648=>[_0x27a648,this['_suggestionFactory']['getSuggestionCallback'](_0x27a648['type'],_0x27a648['subType'],'chain')])),_0x19ca04=new Map(_0x2ff0c2['map'](_0x3ad771=>[_0x3ad771,_0x3ad771['getFirstRange']()])),_0x5780a5=new Set(),_0x3dfae5=new Set();for(let _0x5cd87b=0x0;_0x5cd87b<_0x1c8bfe['length'];_0x5cd87b++)_0x4ea503(_0x1c8bfe[_0x5cd87b],_0x1c8bfe,_0x5cd87b+0x1);for(let _0x396358=0x0;_0x396358<_0x1c8bfe['length'];_0x396358++)_0x4ea503(_0x1c8bfe[_0x396358],_0xe193bc,0x0);const _0xe54eb4=new Set();for(let _0x3a6900=0x0;_0x3a6900<_0x1c8bfe['length'];_0x3a6900++){const _0x26f197=_0x1c8bfe[_0x3a6900];!_0x3dfae5['has'](_0x26f197)&&_0x26f197['previous']&&(_0xe54eb4['add'](_0x26f197['previous']),_0x26f197['previous']['next']===_0x26f197&&(_0x26f197['previous']['next']=null),_0x26f197['previous']=null),!_0x5780a5['has'](_0x26f197)&&_0x26f197['next']&&(_0xe54eb4['add'](_0x26f197['next']),_0x26f197['next']['previous']===_0x26f197&&(_0x26f197['next']['previous']=null),_0x26f197['next']=null);}function _0x4ea503(_0x1316cc,_0x3f0eb9,_0x235dc4){for(let _0x495a18=_0x235dc4;_0x495a18<_0x3f0eb9['length'];_0x495a18++){const _0x561810=_0x3e2567(_0x1316cc,_0x3f0eb9[_0x495a18]);_0x561810&&(_0x561810[0x0]['next']=_0x561810[0x1],_0x561810[0x1]['previous']=_0x561810[0x0],_0x5780a5['add'](_0x561810[0x0]),_0x3dfae5['add'](_0x561810[0x1]));}}function _0x3e2567(_0x581a7a,_0x8361a4){if(_0x581a7a['author']['id']!==_0x8361a4['author']['id'])return null;const _0x11fcf6=_0x3b7467['get'](_0x581a7a)(_0x581a7a,_0x8361a4,_0x19ca04['get'](_0x581a7a),_0x19ca04['get'](_0x8361a4));if(!_0x11fcf6)return null;return _0x3b7467['get'](_0x8361a4)(_0x581a7a,_0x8361a4,_0x19ca04['get'](_0x581a7a),_0x19ca04['get'](_0x8361a4))?_0x11fcf6[0x1]['commentThread']&&_0x11fcf6[0x1]['commentThread']['length']?null:_0x11fcf6:null;}_0xe54eb4['size']&&this['_refreshSuggestionsChain'](_0xe54eb4);}['_refreshAttributeSuggestionsChain'](_0x435fa3){if(0x0==_0x435fa3['length'])return;const _0x1bc39f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1bdf5a=>'attribute'==_0x1bdf5a['type']&&_0x1bdf5a['_isDataLoaded']),_0x100768=[],_0x2aab09=new Map();for(const _0x4f4bfb of _0x1bc39f){const _0x1a8663=_0x5eccbe(_0x4f4bfb['attributes']);_0x2aab09['has'](_0x1a8663)||(_0x2aab09['set'](_0x1a8663,_0x100768['length']),_0x100768['push']([]));const _0x4f81eb=_0x2aab09['get'](_0x1a8663);_0x100768[_0x4f81eb]['push'](_0x4f4bfb);}!(function(){_0x100768['sort']((_0x3d42ed,_0xfa36e)=>{const _0x4bd6b3=_0x3d42ed[0x0]['createdAt'],_0x15d99b=_0xfa36e[0x0]['createdAt'];return _0x4bd6b3==_0x15d99b?_0x3d42ed[0x0]['attributes']['groupId']<_0xfa36e[0x0]['attributes']['groupId']?-0x1:0x1:_0x4bd6b3<_0x15d99b?-0x1:0x1;});for(const _0xa617a6 of _0x100768)_0xa617a6['sort']((_0x67aacd,_0xb1e06)=>_0x67aacd['id']<_0xb1e06['id']?-0x1:0x1);}());for(let _0x241392=0x0;_0x241392<_0x100768['length'];_0x241392++){if(0x0==_0x100768[_0x241392]['length'])continue;const _0x1d397b=[];for(let _0x4e1a46=_0x241392+0x1;_0x4e1a46<_0x100768['length'];_0x4e1a46++)0x0!=_0x100768[_0x4e1a46]['length']&&_0x580c75(_0x100768[_0x241392],_0x100768[_0x4e1a46])&&_0x1d397b['push'](_0x4e1a46);for(const _0x193f23 of _0x1d397b)_0x100768[_0x241392]=_0x100768[_0x241392]['concat'](_0x100768[_0x193f23]),_0x100768[_0x193f23]=[];}for(const _0x5a8755 of _0x100768)for(let _0x2a084c=0x0;_0x2a084c<_0x5a8755['length'];_0x2a084c++){const _0x1921ac=_0x5a8755[_0x2a084c+0x1]||null;_0x5a8755[_0x2a084c]['next']!==_0x1921ac&&(_0x5a8755[_0x2a084c]['next']=_0x1921ac);}for(const _0x321f3a of _0x100768)for(let _0x497e3d=0x0;_0x497e3d<_0x321f3a['length'];_0x497e3d++){const _0x294027=_0x321f3a[_0x497e3d-0x1]||null;_0x321f3a[_0x497e3d]['previous']!==_0x294027&&(_0x321f3a[_0x497e3d]['previous']=_0x294027);}function _0x580c75(_0x4aa671,_0x55487a){if(_0x4aa671[0x0]['attributes']['groupId']!==_0x55487a[0x0]['attributes']['groupId']&&_0x4aa671[0x0]['author']!==_0x55487a[0x0]['author'])return!0x1;if(!function(_0x30fbe1,_0x30a111){if(!_0x30fbe1['hasComments']&&!_0x30a111['hasComments'])return!0x0;if(_0x30fbe1['hasComments']&&_0x30a111['hasComments'])return!0x1;if(_0x30fbe1['hasComments']&&_0x30a111['createdAt']<_0x30fbe1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x30a111['hasComments']&&_0x30fbe1['createdAt']<_0x30a111['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4aa671[0x0],_0x55487a[0x0]))return!0x1;const _0x3404d6=Ft(_0x4aa671[0x0]['attributes'],'groupId'),_0x59cffa=Ft(_0x55487a[0x0]['attributes'],'groupId');if(!_0x45e6b3(_0x3404d6,_0x59cffa))return!0x1;return!!_0x4aa671['every'](_0x4731e6=>_0x55487a['some'](_0x45c61c=>_0x4731e6['getFirstRange']()['isEqual'](_0x45c61c['getFirstRange']())))&&_0x55487a['every'](_0x5609fd=>_0x4aa671['some'](_0xdc3cfd=>_0x5609fd['getFirstRange']()['isEqual'](_0xdc3cfd['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x251a1a){const _0x177bbe=Array['from'](_0x251a1a),_0x70b62f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1203db=_0x70b62f['filter'](_0x4ad6f8=>!_0x251a1a['has'](_0x4ad6f8)),_0xfb20b0=new Map(_0x177bbe['map'](_0x3e2bb3=>[_0x3e2bb3,this['_suggestionFactory']['getSuggestionCallback'](_0x3e2bb3['type'],_0x3e2bb3['subType'],'join')])),_0x5a1fb9=new Map(_0x70b62f['map'](_0x402895=>[_0x402895,_0x402895['getRanges']()]));for(let _0x5cc280=0x0;_0x5cc280<_0x177bbe['length'];_0x5cc280++){if(_0x563d2f(this,_0x177bbe[_0x5cc280],_0x177bbe,_0x5cc280+0x1))return!0x0;}for(let _0x480cd9=0x0;_0x480cd9<_0x177bbe['length'];_0x480cd9++){if(_0x563d2f(this,_0x177bbe[_0x480cd9],_0x1203db,0x0))return!0x0;}return!0x1;function _0x563d2f(_0x21bacd,_0x4154a2,_0x137641,_0xdce680){for(let _0x3595f9=_0xdce680;_0x3595f9<_0x137641['length'];_0x3595f9++){const _0x5a1273=_0x137641[_0x3595f9];if(_0x5a1273['type']!==_0x4154a2['type']||_0x5a1273['author']['id']!==_0x4154a2['author']['id']||_0x5a1273['subType']!==_0x4154a2['subType'])continue;if(!Qt(_0x4154a2,_0x5a1273))continue;if('attribute'==_0x4154a2['type']&&_0x4154a2['data']['oldValue']!=_0x5a1273['data']['oldValue'])continue;if('attribute'==_0x4154a2['type']&&_0x21bacd['_isBlockAttribute'](_0x4154a2['data']['key']))continue;if('formatBlock'==_0x4154a2['type']){const _0xc181ec=_0x21bacd['editor']['model'],_0x34d0a8=_0x4154a2['getContainedElement']();if(_0x34d0a8&&(_0xc181ec['schema']['isObject'](_0x34d0a8)||_0xc181ec['schema']['isLimit'](_0x34d0a8)))continue;}const _0x1b0e1d=_0xfb20b0['get'](_0x4154a2),_0x5b6e04=_0x5a1fb9['get'](_0x4154a2),_0x51963c=_0x5a1fb9['get'](_0x5a1273),_0x44a102=_0x4154a2['commentThread']&&_0x4154a2['commentThread']['length'],_0x10a1ec=_0x5a1273['commentThread']&&_0x5a1273['commentThread']['length'];if(!_0x44a102&&_0x1b0e1d(_0x51963c,_0x5b6e04))return _0x21bacd['_joinSuggestions'](_0x5a1273,_0x4154a2),_0x5a1fb9['delete'](_0x4154a2),!0x0;if(!_0x10a1ec&&_0x1b0e1d(_0x5b6e04,_0x51963c))return _0x21bacd['_joinSuggestions'](_0x4154a2,_0x5a1273),_0x5a1fb9['delete'](_0x5a1273),!0x0;}return!0x1;}}['_joinSuggestions'](_0x16829b,_0x563166){if(_0x16829b['isMultiRange']){for(const _0x18f258 of _0x563166['getRanges']())_0x16829b['addRange'](_0x18f258);}else{const _0x4c369a=_0x563166['getFirstRange']()['end'];this['_setSuggestionRange'](_0x16829b,this['_model']['createRange'](_0x16829b['getFirstRange']()['start'],_0x4c369a));}_0x563166['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3181f9,_0x50edc3,_0x14ea2d){const _0x14053f=_0x3181f9['startsWith']('format')||_0x3181f9['startsWith']('attribute')?'FORMATTING':_0x3181f9['toUpperCase']();return c(this['editor']['locale'],_0x50edc3+'_'+_0x14053f+'_SUGGESTION_ANNOUNCEMENT',_0x14ea2d);}['_initAriaMarkerChangeAnnouncements'](){const _0x51195e=this['editor'];if(!_0x51195e['ui'])return;const {ariaLiveAnnouncer:_0x5778e8}=_0x51195e['ui'];_0x61b4dc(this['_model'],({left:_0x4f17cd,entered:_0x3a42bd})=>{for(const _0x20f860 of _0x4f17cd){const {group:_0x5e0e07,type:_0x45befc}=this['_splitMarkerName'](_0x20f860['name']);if('suggestion'===_0x5e0e07){_0x5778e8['announce'](this['_getMarkerAnnouncementText'](_0x45befc,'LEAVE'));break;}}for(const _0x28fd08 of _0x3a42bd){const {group:_0x4cad25,type:_0x8b60f7}=this['_splitMarkerName'](_0x28fd08['name']);if('suggestion'===_0x4cad25){_0x5778e8['announce'](this['_getMarkerAnnouncementText'](_0x8b60f7,'ENTER',_0x36ae38(_0x5d47d0)));break;}}});}['_processAttributeChanges'](_0x50bf25){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1dc910=this['editor'],_0x4ccf64=_0x1dc910['model']['document']['differ']['getChanges']();if(0x0==_0x4ccf64['length'])return!0x1;const _0x2072c9=[],_0x1f6fe5=_0x4ccf64['filter'](_0x22e0df=>'attribute'==_0x22e0df['type']),_0x480541=_0x4ccf64['filter'](_0x2a7cc8=>'insert'==_0x2a7cc8['type']&&'$text'!=_0x2a7cc8['name']),_0x59ec73=_0x4ccf64['filter'](_0x45d911=>'remove'==_0x45d911['type']&&'$text'!=_0x45d911['name']);for(const _0x57139a of _0x1f6fe5)_0x2072c9['push']({'key':_0x57139a['attributeKey'],'newValue':_0x57139a['attributeNewValue'],'oldValue':_0x57139a['attributeOldValue'],'range':qt(_0x57139a['range'],_0x1dc910['model'])});for(const _0x4ff9da of _0x480541){const _0x5daea3=_0x59ec73['find'](_0x1c73d2=>_0x1c73d2['position']['isEqual'](_0x4ff9da['position']));_0x5daea3&&_0x2072c9['push']({'key':u,'newValue':_0x4ff9da['name'],'oldValue':_0x5daea3['name'],'range':_0x1dc910['model']['createRangeOn'](_0x4ff9da['position']['nodeAfter'])});}return 0x0!=_0x2072c9['length']&&this['_reduceExistingSuggestions'](_0x50bf25,_0x2072c9);}['_processAttributeSuggestions'](_0x4404e2){let _0x55b831=!0x1;const _0x1abac5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3ca182=>_0x3ca182['data']['newRange']&&_0x3ca182['name']['startsWith']('suggestion:attribute:'));for(const _0x4db2d6 of _0x1abac5){const {subType:_0x392476,id:_0x3f9cd9}=this['_splitMarkerName'](_0x4db2d6['name']),_0x4bc1ad=_0x392476['split']('|')[0x0];for(const _0x4445b7 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4445b7['id']!=_0x3f9cd9&&'attribute'==_0x4445b7['type']&&_0x4445b7['data']&&_0x4445b7['data']['key']==_0x4bc1ad&&_0x4445b7['getFirstRange']()['isIntersecting'](_0x4db2d6['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4445b7,_0x4db2d6['data']['newRange'],_0x4404e2),_0x55b831=!0x0);}return _0x55b831;}['_recordAttributeChanges'](_0x361a05){this['_recordAttributeSuggestions']=!0x0,_0x361a05();}['_isRegisteredAttribute'](_0x28694c){const _0x449d8f=this['_isBlockAttribute'](_0x28694c),_0x5a15c0=this['_inlineAttributeKeys']['has'](_0x28694c);return _0x449d8f||_0x5a15c0;}['_reduceExistingSuggestions'](_0x12ee47,_0x133d14){if(0x0==_0x133d14['length'])return!0x1;let _0x500dff=!0x1;for(const _0x16bdbb of _0x133d14){const _0x11d022=this['_findSuggestions'](_0x16bdbb['range'],'attribute')['filter'](_0x2d8971=>!_0x2d8971['meta']['isNextTo'])['map'](_0x2aca82=>_0x2aca82['suggestion']),_0x25d40e=_0x5eccbe({'newValue':_0x16bdbb['newValue']});_0x11d022['filter'](_0x18e128=>{const [_0x57007a,_0x3d0a2f]=_0x18e128['subType']['split']('|');return _0x57007a==_0x16bdbb['key']&&_0x3d0a2f!=_0x25d40e;})['forEach'](_0x2d2006=>{this['_reduceSuggestionAttributeRange'](_0x2d2006,_0x16bdbb['range'],_0x12ee47),_0x500dff=!0x0;});}return _0x500dff;}['_reduceSuggestionAttributeRange'](_0x289922,_0x210442,_0x2e1677){const _0x2b4ed9=_0x289922['getFirstRange']()['getDifference'](_0x210442);0x0!==_0x2b4ed9['length']?0x1!==_0x2b4ed9['length']?this['_breakSuggestionMarker'](_0x289922,_0x210442['start'],_0x210442['end']):this['_setSuggestionRange'](_0x289922,_0x2b4ed9[0x0]):_0x2e1677['removeMarker'](_0x289922['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3dd76f){this['_editor']=_0x3dd76f,this['_model']=_0x3dd76f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x433119,_0x308ff2,_0x45f11e,_0x2160e5,_0x5584db,_0x58711c){return new o(this['_model'],{'type':_0x433119,'subType':_0x308ff2,'id':_0x45f11e,'author':_0x2160e5,'creator':_0x2160e5,'attributes':_0x5584db,'onAttributesChange':_0x58711c,'onAccept':(..._0x22cb04)=>this['getSuggestionCallback'](_0x433119,_0x308ff2,'accept')(..._0x22cb04),'onDiscard':(..._0x1a1bea)=>this['getSuggestionCallback'](_0x433119,_0x308ff2,'discard')(..._0x1a1bea)});}['registerCustomCallback'](_0x7aa7d1,_0xfe4ebf,_0x12cb9b,_0x4f90f2){const _0x43a163=_0x7aa7d1+':'+_0xfe4ebf+':'+_0x12cb9b;this['_customCallbacks']['set'](_0x43a163,_0x4f90f2);}['getSuggestionCallback'](_0x5cc1f7,_0x4d5e06,_0x5237ed){const _0x6cf5b4=_0x5cc1f7+':'+_0x4d5e06+':'+_0x5237ed;return this['_customCallbacks']['get'](_0x6cf5b4)||this['_defaultCallbacks']['get'](_0x5cc1f7+':'+_0x5237ed);}['_registerDefaultCallbacks'](){const _0x1d5b93=()=>!0x1,_0x16fb94=_0x29dff8=>{_0x29dff8['sort']((_0x4fbb0e,_0x781498)=>_0x4fbb0e['start']['isBefore'](_0x781498['start'])?0x1:-0x1),this['_model']['change'](_0x467e2b=>{for(const _0x47e96d of _0x29dff8){let _0x2cfce6;_0x2cfce6=_0x47e96d['end']['isAtEnd']&&_0x47e96d['end']['parent']==_0x47e96d['start']['nodeAfter']?_0x467e2b['createSelection'](_0x47e96d['start']['nodeAfter'],'on'):_0x467e2b['createSelection'](_0x47e96d),this['_model']['deleteContent'](_0x2cfce6,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x88e0ff=(_0x139e43,_0x37c947)=>{_0x37c947&&this['_model']['change'](_0x20e58a=>{const {commandName:_0x2df776,commandParams:_0xc9b04e=[]}=_0x37c947,_0x2aa337=_0x139e43['map'](_0x12ec9b=>(Lt(_0x12ec9b)&&(_0x12ec9b=this['_model']['createRange'](_0x12ec9b['end'])),_0x12ec9b))['filter'](_0x5b5bc6=>'$graveyard'!==_0x5b5bc6['root']['rootName']);if(_0x2aa337['length']<0x1)return;const _0x5d3a75=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x496c01=>_0x335d44['fromRange'](_0x496c01));_0x20e58a['setSelection'](_0x2aa337);for(const _0x50dc63 of this['_editor']['commands']['commands']())_0x50dc63['refresh']();_0xc9b04e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2df776,..._0xc9b04e);const _0x42c687=_0x5d3a75['filter'](_0x178439=>'$graveyard'!=_0x178439['root']['rootName']);_0x42c687['length']>0x0&&_0x20e58a['setSelection'](_0x42c687);for(const _0x47431e of _0x5d3a75)_0x47431e['detach']();});},_0x3d1110=(_0x51f710,_0x9e7c63)=>0x1==_0x51f710['length']&&0x1==_0x9e7c63['length']&&_0x51f710[0x0]['end']['isEqual'](_0x9e7c63[0x0]['start']),_0x3351ac=(_0x1e118f,_0xe9160b,_0x5119c5,_0x3aa053)=>Wt(_0x1e118f,_0xe9160b,_0x5119c5,_0x3aa053)?[_0x1e118f,_0xe9160b]:Wt(_0xe9160b,_0x1e118f,_0x3aa053,_0x5119c5)?[_0xe9160b,_0x1e118f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1d5b93),this['_defaultCallbacks']['set']('insertion:discard',_0x16fb94),this['_defaultCallbacks']['set']('insertion:join',_0x3d1110),this['_defaultCallbacks']['set']('insertion:chain',_0x3351ac),this['_defaultCallbacks']['set']('deletion:accept',_0x16fb94),this['_defaultCallbacks']['set']('deletion:discard',_0x1d5b93),this['_defaultCallbacks']['set']('deletion:join',_0x3d1110),this['_defaultCallbacks']['set']('deletion:chain',_0x3351ac),this['_defaultCallbacks']['set']('formatInline:accept',_0x88e0ff),this['_defaultCallbacks']['set']('formatInline:discard',_0x1d5b93),this['_defaultCallbacks']['set']('formatInline:join',_0x3d1110),this['_defaultCallbacks']['set']('formatInline:chain',_0x1d5b93),this['_defaultCallbacks']['set']('formatBlock:accept',_0x88e0ff),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1d5b93),this['_defaultCallbacks']['set']('formatBlock:join',_0x3d1110),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1d5b93),this['_defaultCallbacks']['set']('attribute:accept',_0x1d5b93),this['_defaultCallbacks']['set']('attribute:discard',(_0x3a7c4f,_0x32194a)=>{if(!_0x32194a)return;const _0x9a194d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1b5a3d=>{if(_0x32194a['key']==u)for(const _0x30e3f1 of _0x3a7c4f){const _0x6a4088=_0x30e3f1['start']['nodeAfter'],_0x493ee9=_0x32194a['oldValue'];_0x1b5a3d['rename'](_0x6a4088,_0x493ee9);}else{if(_0x9a194d['_isBlockAttribute'](_0x32194a['key'])){for(const _0x7277a2 of _0x3a7c4f)void 0x0!==_0x32194a['oldValue']?_0x1b5a3d['setAttribute'](_0x32194a['key'],_0x32194a['oldValue'],_0x7277a2['start']['nodeAfter']):_0x1b5a3d['removeAttribute'](_0x32194a['key'],_0x7277a2['start']['nodeAfter']);}else{for(const _0x825c7 of _0x3a7c4f)_0x32194a['oldValue']?_0x1b5a3d['setAttribute'](_0x32194a['key'],_0x32194a['oldValue'],_0x825c7):_0x1b5a3d['removeAttribute'](_0x32194a['key'],_0x825c7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3d1110);}}function Gt(_0x3d93b7,_0x45d8e8,_0x3b579d){for(const _0x5e641f of _0x45d8e8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5e641f['root']==_0x5e641f)return!0x1;if(!_0x3b579d['containsItem'](_0x5e641f))return!0x1;if(_0x3d93b7['isObject'](_0x5e641f)||_0x3d93b7['isLimit'](_0x5e641f))return!0x0;}return!0x1;}function Lt(_0x49b513){return _0x49b513['end']['parent']==_0x49b513['start']['nodeAfter']&&_0x49b513['end']['isAtStart'];}function Jt(_0x3884a3,_0x3c62ff,_0x5cd8b5,_0x44c32b){const _0x3b472e=_0x70a586=>!_0x70a586['item']['is']('$textProxy')&&!_0x44c32b['isObject'](_0x70a586['item']),_0x25a63b=_0x3884a3['start']['getLastMatchingPosition'](_0x3b472e),_0x58abcf=_0x3884a3['end']['getLastMatchingPosition'](_0x3b472e,{'direction':'backward'});return(!_0x3884a3['start']['isEqual'](_0x25a63b)||!_0x3884a3['end']['isEqual'](_0x58abcf))&&(_0x25a63b['isBefore'](_0x58abcf)?_0x5cd8b5['updateMarker'](_0x3c62ff,{'range':_0x5cd8b5['createRange'](_0x25a63b,_0x58abcf)}):_0x5cd8b5['removeMarker'](_0x3c62ff),!0x0);}function Kt(_0xcd35d9){return _0x5eccbe(_0xcd35d9);}function Ht(_0x347d62){const _0x4614f2=_0x347d62['start']['nodeAfter'];return _0x4614f2&&_0x4614f2['is']('element');}function qt(_0x1f8107,_0x12e07b){return null==_0x1f8107['end']['nodeBefore']&&_0x1f8107['end']['parent']==_0x1f8107['start']['nodeAfter']?zt(_0x1f8107['start']['nodeAfter'],_0x12e07b):_0x1f8107;}function zt(_0xd93cd4,_0x2313db){const _0x1a0f4a=_0x2313db['schema']['isObject'](_0xd93cd4)||_0x2313db['schema']['isSelectable'](_0xd93cd4);return _0x2313db['createRange'](_0x2313db['createPositionAt'](_0xd93cd4,'before'),_0x1a0f4a?_0x2313db['createPositionAfter'](_0xd93cd4):_0x2313db['createPositionAt'](_0xd93cd4,'end'));}function Wt(_0x1f7fa3,_0x315ebf,_0x41e0ed,_0x4159a5){return!!Qt(_0x1f7fa3,_0x315ebf)&&_0x41e0ed['end']['isEqual'](_0x4159a5['start']);}function Qt(_0x53b811,_0x32e1f0){if(!_0x53b811['_isDataLoaded']||!_0x32e1f0['_isDataLoaded'])return!0x1;const _0x4f3350=new Set(Object['keys'](_0x53b811['attributes'])),_0x26d10a=new Set(Object['keys'](_0x32e1f0['attributes']));if(_0x4f3350['delete']('groupId'),_0x26d10a['delete']('groupId'),0x0==_0x4f3350['size']&&0x0==_0x26d10a['size'])return!0x0;if(_0x4f3350['size']!=_0x26d10a['size'])return!0x1;const _0x4e86b8={..._0x53b811['attributes']},_0x9919cd={..._0x32e1f0['attributes']};return delete _0x4e86b8['groupId'],delete _0x9919cd['groupId'],JSON['stringify'](_0x4e86b8)==JSON['stringify'](_0x9919cd);}function Xt(_0x28d239,_0x2efdc9){const _0x291943=Yt(_0x28d239['attributes']),_0x5aaba5=Yt(_0x2efdc9);if(!_0x28d239['_isDataLoaded'])return!0x1;for(const _0x225a19 of Object['keys'](_0x5aaba5))if(!_0x45e6b3(_0x291943[_0x225a19],_0x5aaba5[_0x225a19]))return!0x1;return!0x0;}function Yt(_0x15b0b3){const _0x35bd91=Object['assign']({},_0x15b0b3);return delete _0x35bd91['skipNestingCheck'],delete _0x35bd91['tablePasteChainId'],_0x35bd91;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x1fbd50(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x94616a,_0x38e51d,_0x3ac1a3,_0x29fc0a){super(),this['model']=_0x38e51d,this['view']=_0x3ac1a3,this['commentThreadController']=_0x29fc0a,this['_editor']=_0x94616a,this['_acceptCommand']=_0x94616a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x94616a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4ab3e8,_0x1d14a9)=>_0x4ab3e8||_0x1d14a9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x129a39=>_0x129a39&&this['_editor']['model']['canEditAt'](_0x38e51d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x14fb3d=>_0x14fb3d&&this['_editor']['model']['canEditAt'](_0x38e51d['getRanges']())),this['_pendingAction']=null,_0x3ac1a3['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3ac1a3,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3ac1a3,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3ac1a3,'change:isDirty',()=>{_0x3ac1a3['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 _0x3f4d8b=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3f4d8b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1a6e96{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x583432,_0x5c4914,_0x846778,_0x330ced){super(_0x583432),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3e258f(_0x583432,c(_0x583432,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5c4914['authoredAt']),this['bind']('authoredAt')['to'](_0x5c4914),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',_0x5c4914,'authoredAt',this,'descriptionParts',(_0x21932,_0x41c328,_0x230f54)=>{const _0xe464=_0x230f54['map'](_0x4c72af=>ls(_0x4c72af['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x21932-0x1,_0x5c4914['author']['name'],_0x41c328?_0x330ced['formatDateTime'](_0x41c328):'',new DOMParser()['parseFromString'](_0xe464,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4de3f6(),this['focusTracker']=new _0x3f3cf8(),this['keystrokes']=new _0x1f9107(),this['focusCycler']=new _0x198d0b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x478149=>_0x478149['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5c4914,this['_localUser']=_0x846778,this['_config']=_0x330ced,_0x330ced['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2a2bcb(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2f4b7e}=this['_config'];this['commentsListView']=new _0x2f4b7e(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',_0x12ed99=>_0x12ed99+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xaced5f,_0x5ecfea)=>_0xaced5f||!!_0x5ecfea);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x7a70d6}=this['_config'],_0x1693e3=new _0x7a70d6(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x292351=_0x1693e3['commentInputView'];return _0x1693e3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x292351,'value',(_0x4cf764,_0x477fd5,_0x34ed20)=>!!_0x34ed20||_0x4cf764&&!_0x477fd5),_0x292351['on']('submit',(_0x3825b8,_0x369b17)=>{this['fire']('addComment',_0x369b17),_0x292351['editor']['setData']('');}),_0x292351['on']('cancel',()=>this['focus']()),_0x292351['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1693e3;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x50b21c,_0x590d50,_0x4d3a4b,_0x25c95e){super(_0x50b21c,_0x590d50,_0x4d3a4b,_0x25c95e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x527d63=>_0x527d63&&_0x527d63[0x0]?_0x527d63[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x338678,_0x325497)=>{let _0x20f262='';for(const _0x2d0045 of _0x338678)_0x20f262+='<p>'+ls(_0x2d0045['content'],_0x2d0045['color'])+'</p>';return _0x325497?_0x20f262:ti(_0x20f262,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x25c95e['SuggestionView'](_0x50b21c,_0x590d50,{'formatDateTime':_0x25c95e['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 _0x18eca6=this['bindTemplate'],_0xd862e1=[this['suggestionView']];return this['commentsListView']&&_0xd862e1['push'](this['commentsListView']),this['commentThreadInputView']&&_0xd862e1['push'](this['commentThreadInputView']),_0xd862e1['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x18eca6['if']('isActive','ck-suggestion-wrapper--active'),_0x18eca6['to']('type',_0x28504a=>'ck-suggestion-'+_0x28504a),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':_0x18eca6['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xd862e1};}['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 _0x1a6e96{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2a8add,_0x550224,_0x4c2e39){super(_0x2a8add),this['_model']=_0x550224,this['_config']=_0x4c2e39,this['set']('description',''),this['bind']('authoredAt')['to'](_0x550224),this['acceptButton']=this['_createButton'](c(_0x2a8add,'Accept\x20suggestion'),_0x527599,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x2a8add,'Discard\x20suggestion'),_0x263a08,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3f8b3d(_0x2a8add,_0x550224['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4de3f6([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3f3cf8(),this['keystrokes']=new _0x1f9107(),this['focusCycler']=new _0x198d0b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x457b41=>_0x457b41['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1d51fd=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1d51fd['innerHTML']=this['description'],this['on']('change:description',(_0x848b8b,_0xe0ab08,_0x39ec6e)=>{_0x1d51fd['innerHTML']=_0x39ec6e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x7adf14=this['bindTemplate'],_0x1c63cd=[{'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':_0x7adf14['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x7adf14['to']('authoredAt',_0x1e8bc4=>this['_config']['formatDateTime'](_0x1e8bc4))}]}]},{'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']&&_0x1c63cd['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':_0x1c63cd}]};}['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'](_0x595de0,_0x534118,_0x508d8a,_0xc0fe51,_0xb198de){const _0x1ce191=new _0x36cd33(this['locale']);return _0x1ce191['set']({'label':_0x595de0,'icon':_0x534118,'tooltip':!0x0,'tooltipPosition':_0xb198de}),_0x1ce191['extendTemplate']({'attributes':{'class':_0x508d8a}}),_0x1ce191['on']('execute',()=>{this['fire'](_0xc0fe51,this['_model']['id']);}),_0x1ce191;}['_setupKeyboardNavigation'](){const _0x471f17=this['element'];this['keystrokes']['listenTo'](_0x471f17);for(const _0x21d0a7 of this['focusables'])this['focusTracker']['add'](_0x21d0a7['element']),this['keystrokes']['listenTo'](_0x21d0a7['element']);this['keystrokes']['set']('enter',(_0x3f3890,_0x2b8449)=>{_0x471f17===_0x3f3890['target']&&(this['focusCycler']['focusFirst'](),_0x2b8449());}),this['keystrokes']['set']('esc',(_0x11e419,_0xf84c08)=>{_0x471f17!==_0x11e419['target']&&(this['focus'](),_0xf84c08());});}}class d extends _0x17eefb{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2ac9ba,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ddf6d){super(_0x3ddf6d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3802f8=this['editor']['config'];_0x3802f8['define']('trackChanges.SuggestionThreadView',fe),_0x3802f8['define']('trackChanges.SuggestionView',we),_0x3802f8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3802f8['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xa59b54,_0x4aaa1e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x34bf90,_0x382a9e]of this['_handleControllerBuffer']){const _0x5ae015=this['_suggestionToController']['has'](_0x34bf90);_0x5ae015||_0x382a9e?_0x5ae015&&_0x382a9e&&this['_destroyController'](_0x34bf90):this['_initializeController'](_0x34bf90);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xa59b54,_0x4aaa1e);}['init'](){const _0x5af246=this['editor'],_0x2d0774=_0x5af246['plugins']['get']('TrackChangesEditing'),_0x5ced4b=_0x5af246['plugins']['get']('Annotations'),_0x330111=_0x5af246['plugins']['get']('EditorAnnotations'),_0x34c930=_0x5af246['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x330111['addSourceCollector'](()=>{const _0x27a06a=[];for(const [_0x3a1b9a,_0x3b16b6]of Array['from'](this['_suggestionToController'])){const _0x2f8c93=_0x3a1b9a['getAllAdjacentSuggestions'](),_0x392609=[];for(const _0x326c9b of _0x2f8c93){if(!_0x326c9b['isInContent'])continue;if(_0x326c9b['isMultiRange']){_0x392609['push'](..._0x326c9b['getRanges']());continue;}const _0xfd3c99=_0x326c9b['getFirstRange']();if(_0x392609['length']>0x0){const _0x1ff754=_0x392609[0x0]['getJoined'](_0xfd3c99);if(_0x1ff754){_0x392609[0x0]=_0x1ff754;continue;}}_0x392609['push'](_0xfd3c99);}_0x27a06a['push']([_0x3b16b6['view'],_0x392609]);}return _0x27a06a;}),this['listenTo'](_0x2d0774,'suggestionLoaded',(_0x535179,_0x284e46)=>{this['listenTo'](_0x284e46,'change:previous',(_0x3bc6a3,_0x32a478,_0x25d687,_0x46ad7d)=>{_0x284e46['isInContent']&&(null==_0x25d687?(this['_updateController'](_0x46ad7d['head']),this['_handleSuggestionControllerDelayed'](_0x284e46,!0x1)):(this['_updateController'](_0x25d687['head']),null==_0x46ad7d&&this['_handleSuggestionControllerDelayed'](_0x284e46,!0x0)));}),null!==_0x284e46['previous']?this['_updateController'](_0x284e46['head']):this['_handleSuggestionControllerDelayed'](_0x284e46,!0x1);}),this['listenTo'](_0x2d0774,'suggestionUnloaded',(_0x39ccea,_0x4500bc,_0x55e296)=>{this['stopListening'](_0x4500bc,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4500bc),this['_suggestionToController']['has'](_0x4500bc)&&this['_destroyController'](_0x4500bc),_0x55e296&&this['_updateController'](_0x55e296['head']);}),this['listenTo'](_0x2d0774,'suggestionChanged',(_0x58ea91,_0x3ebbe4)=>{this['_updateController'](_0x3ebbe4);}),this['listenTo'](_0x5ced4b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x34c930,'addComment',(_0x22d702,{threadId:_0x100de8,isFromAdapter:_0x1dd371})=>{if(_0x1dd371||!_0x2d0774['hasSuggestion'](_0x100de8))return;const _0x2c465b=_0x2d0774['getSuggestion'](_0x100de8);this['_suggestionToController']['get'](_0x2c465b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x304aff=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3cc77c;for(const _0x5b0d8a in _0x304aff){const _0x11e5d7=_0x5b0d8a,_0x3df98e=_0x304aff[_0x11e5d7];if('trackChangesLicenseKeyValid'==_0x3df98e||'trackChangesLicenseKeyInvalid'==_0x3df98e||'trackChangesLicenseKeyExpired'==_0x3df98e||'trackChangesLicenseKeyDomainLimit'==_0x3df98e||'trackChangesLicenseKeyNotAllowed'==_0x3df98e||'trackChangesLicenseKeyEvaluationLimit'==_0x3df98e||'trackChangesLicenseKeyTrialLimit'==_0x3df98e||'trackChangesLicenseKeyUsageLimit'==_0x3df98e){delete _0x304aff[_0x11e5d7],_0x3cc77c=_0x3df98e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3cc77c&&_0x304aff['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3cc77c&&_0x304aff['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3cc77c&&_0x304aff['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3cc77c&&_0x304aff['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3cc77c&&_0x304aff['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3cc77c&&_0x304aff['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3cc77c&&_0x304aff['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x45a60c=this['editor']['plugins']['get']('Annotations'),_0x2e5485=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42d5cf=Array['from'](_0x45a60c['activeAnnotations'],_0x27c580=>_0x27c580['innerView'])['filter'](_0x5b9920=>this['_viewToController']['has'](_0x5b9920)),_0x3d218f=[];for(const _0x245a42 of _0x42d5cf){const _0x348950=this['_viewToController']['get'](_0x245a42)['model']['getAllAdjacentSuggestions']();_0x3d218f['push'](..._0x348950['reduce']((_0x5232d0,_0x273f6d)=>[..._0x5232d0,..._0x273f6d['getMarkerNames']()],[]));}_0x2e5485['activeMarkers']=_0x3d218f;}['_addUIComponentsToFactory'](){const _0x3d3726=this['editor'],_0x302bb8=_0x3d3726['locale'],_0x91e28=c(_0x302bb8,'Track\x20changes'),_0x14c433=new _0x264ef9([{'type':'switchbutton','model':new _0x4c5dd4({'withText':!0x0,'isToggleable':!0x0,'label':_0x91e28,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4c5dd4({'withText':!0x0,'label':c(_0x302bb8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c5dd4({'withText':!0x0,'label':c(_0x302bb8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c5dd4({'withText':!0x0,'label':c(_0x302bb8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c5dd4({'withText':!0x0,'label':c(_0x302bb8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3d3726['plugins']['has']('TrackChangesPreview')&&_0x14c433['addMany']([{'type':'separator'},{'type':'button','model':new _0x4c5dd4({'withText':!0x0,'label':c(_0x302bb8,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x24c974 of _0x14c433)if(ke(_0x24c974)){const _0xe67108=_0x3d3726['commands']['get'](_0x24c974['model']['commandName']);_0x24c974['model']['bind']('isOn','isEnabled')['to'](_0xe67108,'value','isEnabled');}_0x3d3726['ui']['componentFactory']['add']('trackChanges',_0x22430d=>this['_createToolbarButton'](_0x22430d,_0x14c433,_0x91e28)),_0x3d3726['ui']['componentFactory']['add']('menuBar:trackChanges',_0x250f85=>this['_createMenuBarMenu'](_0x250f85,_0x14c433,_0x91e28));}['_createToolbarButton'](_0x58b04b,_0x24f129,_0x421dcc){const _0x472c7d=_0x4aaf63(_0x58b04b,_0x23b848),_0x185895=this['editor']['commands']['get']('trackChanges');_0x472c7d['buttonView']['set']({'tooltip':_0x421dcc,'label':_0x421dcc,'icon':_0x4d1a0a}),_0x472c7d['buttonView']['bind']('isOn')['to'](_0x185895,'value'),_0x472c7d['buttonView']['on']('execute',()=>{_0x185895['execute'](),this['editor']['editing']['view']['focus']();}),_0x8e5379(_0x472c7d,_0x24f129,{'role':'menu'});const _0x201019=[];for(const _0x3df884 of _0x24f129)ke(_0x3df884)&&_0x201019['push'](this['editor']['commands']['get'](_0x3df884['model']['commandName']));const _0x3ca1a2=_0x472c7d['buttonView'];return _0x3ca1a2['actionView']['unbind']('isEnabled'),_0x3ca1a2['arrowView']['unbind']('isEnabled'),_0x3ca1a2['actionView']['bind']('isEnabled')['to'](_0x185895,'isEnabled'),_0x3ca1a2['arrowView']['bind']('isEnabled')['toMany'](_0x201019,'isEnabled',(..._0x56bc81)=>_0x56bc81['some'](_0x1b4858=>_0x1b4858)),_0x472c7d['on']('execute',_0x575f6a=>{this['editor']['execute'](_0x575f6a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x472c7d;}['_createMenuBarMenu'](_0x4da8ac,_0x855ad9,_0x55067c){const _0x4e8231=new _0x6843f8(_0x4da8ac),_0x1f1921=this['editor']['commands']['get']('trackChanges');_0x4e8231['buttonView']['set']({'label':_0x55067c,'icon':_0x4d1a0a});const _0x42b818=new _0x4e2026(_0x4da8ac);for(const _0x2cf4c5 of _0x855ad9){if('separator'==_0x2cf4c5['type']){_0x42b818['items']['add'](new _0x96089e(_0x4da8ac));continue;}const _0x39a9a9=new _0x434b85(_0x4da8ac,_0x4e8231),_0x4c9112=new _0x423162(_0x4da8ac),_0x488578=_0x2cf4c5['model'];_0x4c9112['bind'](...Object['keys'](_0x488578))['to'](_0x488578),_0x4c9112['delegate']('execute')['to'](_0x4e8231),_0x4c9112['on']('execute',()=>{this['editor']['execute'](_0x488578['commandName']),this['editor']['editing']['view']['focus']();}),_0x39a9a9['children']['add'](_0x4c9112),_0x42b818['items']['add'](_0x39a9a9);}return _0x4e8231['bind']('isEnabled')['to'](_0x1f1921,'isEnabled'),_0x4e8231['panelView']['children']['add'](_0x42b818),_0x4e8231;}['_initializeController'](_0x160a51){const _0x13c375=this['editor'],_0x5016e2=_0x13c375['config'],_0x29bd4a=_0x13c375['plugins']['get']('Annotations'),_0x9d5320=_0x13c375['plugins']['get']('CommentsRepository'),_0x238d0f=_0x13c375['plugins']['get']('EditorAnnotations'),_0x2579cd=_0x13c375['plugins']['get'](_0x2ac9ba)['me'],_0x7ddb78=_0x5016e2['get']('trackChanges')['SuggestionThreadView'],_0x4b3a60=_0x5016e2['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xce4dfa,CommentThreadInputView:_0x2ec01f}=_0x13c375['plugins']['get']('CommentsUI');let _0x3cc7bf,_0x471a93,_0x21d444;this['_annotationViews']['has'](_0x160a51['id'])?(_0x471a93=this['_annotationViews']['get'](_0x160a51['id']),_0x3cc7bf=_0x471a93['mainView']):(_0x3cc7bf=new _0x7ddb78(_0x13c375['locale'],_0x160a51,_0x2579cd,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5016e2['get']('comments.editorConfig'),'licenseKey':_0x5016e2['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5016e2['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5016e2['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5016e2['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x8b50c2(_0x5016e2['get']('locale'),_0x13c375['locale']),'CommentView':_0x5016e2['get']('comments')['CommentView'],'CommentsListView':_0xce4dfa,'CommentThreadInputView':_0x2ec01f,'SuggestionView':_0x4b3a60}),_0x3cc7bf['suggestionView']['acceptButton']['on']('execute',()=>{_0x13c375['editing']['view']['focus']();}),_0x3cc7bf['suggestionView']['discardButton']['on']('execute',()=>{_0x13c375['editing']['view']['focus']();}),_0x471a93=_0x29bd4a['createAnnotationView'](this['editor']['locale'],_0x3cc7bf),_0x471a93['bind']('isDirty')['to'](_0x3cc7bf,'isDirty'),_0x471a93['bind']('length')['to'](_0x3cc7bf),_0x471a93['bind']('type')['to'](_0x3cc7bf,'type',_0x3eedc0=>'suggestion-'+_0x3eedc0),_0x3cc7bf['on']('escape',()=>{_0x21d444['fire']('escape');}),this['_annotationViews']['set'](_0x160a51['id'],_0x471a93));const _0x522466=_0x9d5320['createCommentThreadController'](_0x160a51['commentThread'],_0x3cc7bf),_0x5bc6c0=new pe(_0x13c375,_0x160a51,_0x3cc7bf,_0x522466),_0x44f39f=_0x160a51['getAllAdjacentSuggestions']()['filter'](_0x263a1b=>_0x263a1b['isInContent']);_0x3cc7bf['descriptionParts']=_0x13c375['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x44f39f),this['_suggestionToController']['set'](_0x160a51,_0x5bc6c0),this['_viewToController']['set'](_0x3cc7bf,_0x5bc6c0),_0x21d444=_0x29bd4a['createAnnotation']({'view':_0x471a93,'target':()=>{const _0x2a6b8e=[],_0x5d9c48=_0x160a51['getAllAdjacentSuggestions']()['filter'](_0x481e0c=>_0x481e0c['isInContent']);for(const _0x305e37 of _0x5d9c48)_0x2a6b8e['push'](..._0x305e37['getMarkers']());return _0x75ab9c(_0x13c375['editing'],_0x2a6b8e);},'type':()=>'suggestion-'+_0x5bc6c0['view']['type']}),_0x9d5320['_bindAnnotationToEditors'](_0x3cc7bf,_0x21d444),_0x29bd4a['add'](_0x21d444),_0x238d0f['registerAnnotation'](_0x21d444);}['_destroyController'](_0x3faae0){const _0x5233fe=this['editor']['plugins']['get']('CommentsRepository'),_0x3e5756=this['editor']['plugins']['get']('Annotations'),_0x3eba12=this['_suggestionToController']['get'](_0x3faae0),_0x1dee30=_0x3eba12['view'],_0x43dbe2=_0x3e5756['getByInnerView'](_0x1dee30);_0x5233fe['_unbindEditors'](_0x1dee30),_0x43dbe2&&_0x3e5756['remove'](_0x43dbe2),this['_suggestionToController']['delete'](_0x3faae0),this['_viewToController']['delete'](_0x1dee30),_0x3eba12['destroy']();}['_updateController'](_0x1049f2){if(!_0x1049f2['isInContent']||!this['_suggestionToController']['has'](_0x1049f2))return;const _0x5a60d0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ca73a=this['_suggestionToController']['get'](_0x1049f2),_0x2f5b95=_0x1049f2['getAllAdjacentSuggestions']();_0x1ca73a['view']['descriptionParts']=_0x5a60d0['descriptionFactory']['getDescriptions'](_0x2f5b95);}['destroy'](){for(const _0x2d9831 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2d9831);for(const _0x47d849 of this['_annotationViews']['values']())_0x47d849['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x17a40f){return'model'in _0x17a40f;}class k extends _0x17eefb{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x514648){this['editor']['plugins']['get'](p)['adapter']=_0x514648;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x164273){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x164273);}['getSuggestions']({skipNotAttached:_0x45c9fc=!0x1,toJSON:_0x2efced=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x45c9fc,'toJSON':_0x2efced});}['getSuggestion'](_0x2cccfd){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2cccfd);}}const w=['Pagination'];class T extends _0x17eefb{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4dd1dd=this['editor'];if(_0x4dd1dd['config']['define']('trackChangesData.editorCreator',_0x44790b=>{const _0x4574a5=_0x4dd1dd['model']['document']['getRootNames']()['reduce']((_0x4e3d38,_0x298bfa)=>(_0x4e3d38[_0x298bfa]='',_0x4e3d38),{});return _0x4dd1dd['constructor']['create'](_0x4574a5,_0x44790b);}),'function'!=typeof _0x4dd1dd['config']['get']('trackChangesData')['editorCreator'])throw new _0x48441a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2ba077){return N(this['editor'],!0x0,_0x2ba077);}['getDataWithDiscardedSuggestions'](_0x596100){return N(this['editor'],!0x1,_0x596100);}}class D extends _0x17eefb{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x61bc87){function _0x497d9a(_0x59695){return _0x59695['map'](_0xf3361a=>String['fromCharCode'](_0xf3361a))['join']('');}super(_0x61bc87),this['result']='end',_0x61bc87[_0x497d9a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x497d9a([0x76,0x69,0x65,0x77])][_0x497d9a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x497d9a([0x61,0x75,0x74,0x6f]),_0x61bc87[_0x497d9a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x497d9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x497d9a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x497d9a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x497d9a([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(_0x1af02d){return void 0x0!==_0x1af02d['getRootsAttributes'];}async function N(_0x47ffd3,_0x69a82a,_0x277573){const _0x3bcd67=_0x5a0816(_0x47ffd3,w);_0x3bcd67['plugins']['push'](p,D),_0x3bcd67['rootsAttributes']=Ge(_0x47ffd3)?_0x47ffd3['getRootsAttributes']():void 0x0;const _0x5f485c=document['createDocumentFragment'](),_0x58c2db=_0x47ffd3['config']['get']('trackChangesData')['editorCreator'],_0x487118=await _0x58c2db(_0x3bcd67,()=>function(_0x4b9139){const _0x34db7f=document['createElement']('div');return _0x4b9139['appendChild'](_0x34db7f),_0x34db7f;}(_0x5f485c));!function(_0x174502,_0x4c86d3){const _0x49a4b6=_0x174502['model']['document']['getRootNames']()['reduce']((_0x2cdd42,_0x59f2c6)=>(_0x2cdd42[_0x59f2c6]=_0x174502['data']['get']({'rootName':_0x59f2c6}),_0x2cdd42),{}),_0x57f1c1=_0x174502['plugins']['get']('Users')['users']['map'](_0x46786e=>({'id':_0x46786e['id'],'name':_0x46786e['name']})),_0xfb27ad=_0x174502['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x49eb2f=_0x174502['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4cbf2c=_0x4c86d3['plugins']['get']('Users'),_0x5d0d20=_0x4c86d3['plugins']['get']('TrackChangesEditing'),_0x5289b1=_0x4c86d3['plugins']['get']('CommentsRepository');for(const _0x35f5ec of _0x5289b1['getCommentThreads']())_0x35f5ec['remove']();for(const _0x4b8671 of _0x57f1c1)_0x4cbf2c['getUser'](_0x4b8671['id'])||_0x4cbf2c['addUser'](_0x4b8671);_0x4cbf2c['me']||_0x4cbf2c['useAnonymousUser']();for(const _0x56cd2f of _0x49eb2f)_0x5289b1['addCommentThread'](_0x56cd2f);for(const _0x206640 of _0xfb27ad)_0x5d0d20['addSuggestionData'](_0x206640);_0x4c86d3['data']['set'](_0x49a4b6);}(_0x47ffd3,_0x487118),_0x487118['execute'](_0x69a82a?'acceptAllSuggestions':'discardAllSuggestions');const _0x248c04=Ge(_0x487118)?_0x487118['getFullData'](_0x277573):_0x487118['data']['get'](_0x277573);return await _0x487118['destroy'](),_0x248c04;}class Me extends _0x1a6e96{['options'];constructor(_0x74b407,_0x5eeff4){super(_0x74b407),this['options']=_0x5eeff4,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'](_0x31cddf,_0x4f050c){if(!this['element'])return;const _0x3606ec=[];for(const [_0xd1c271,_0x1f495a]of _0x31cddf){const _0x5bd225=document['createElement']('div');_0x5bd225['setAttribute']('data-ck-root-name',_0xd1c271),_0x5bd225['className']=_0x1f495a['classes']+'\x20ck-track-changes-preview__root-container',_0x5bd225['innerHTML']=_0x1f495a['content'],_0x3606ec['push'](_0x5bd225);}_0x4f050c(this['element'],_0x3606ec),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x59c57c{constructor(_0x56b0fa){super(_0x56b0fa),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xb8bb62=this['editor'],_0x16da09=_0xb8bb62['locale'],_0xf392a6=_0xb8bb62['plugins']['get']('Dialog');let _0x51244b;const _0x4e25cf=function(_0x34067f){const _0xd853e0={};if('editables'in _0x34067f['ui']['view']){for(const [_0x4c6110,_0x3202aa]of Object['entries'](_0x34067f['ui']['view']['editables']))_0xd853e0[_0x4c6110]=_0x3202aa['element'];}else _0xd853e0[_0x34067f['model']['document']['getRootNames']()[0x0]]=_0x34067f['ui']['view']['editable']['element'];return _0xd853e0;}(_0xb8bb62),_0x1a026e=function(_0x9d5616){let _0x5c1ba1=0x0;for(const _0xde228c of Object['values'](_0x9d5616))_0x5c1ba1=Math['max'](_0x5c1ba1,_0xde228c['getBoundingClientRect']()['width']);let _0x1d8a39=0x0;for(const _0x3dab40 of Object['values'](_0x9d5616))_0x1d8a39+=_0x3dab40['getBoundingClientRect']()['height'];const _0x5749dc=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x330495=Math['min'](_0x1d8a39,_0x5749dc);return{'width':_0x5c1ba1,'height':_0x330495};}(_0x4e25cf);_0xf392a6['show']({'id':'finalContentPreview','title':c(_0x16da09,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x16da09,{'dialogRects':_0x1a026e}),'onHide':()=>{_0x51244b['detachFromDom']();},'onShow':()=>{_0xb8bb62['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x21bce8=>{const _0x39fd3f=this['_standarizeRootsData'](_0x21bce8,_0xb8bb62,_0x4e25cf);_0xf392a6['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x39fd3f,_0xb8bb62['config']['get']('trackChanges.preview.renderFunction'));}),_0x51244b=new _0x37fcb3(_0x16da09,[_0xf392a6['view']]),_0x51244b['attachToDom'](),_0x51244b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xb8bb62['once']('destroy',()=>{_0x51244b['detachFromDom']();});const _0x494e43=_0xf392a6['view']['headerView']['class'];_0xf392a6['view']['headerView']['class']=_0x494e43?_0x494e43+'\x20ck-reset_all':'ck-reset_all',_0xf392a6['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xf392a6['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x53f139=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x267d9d=_0x53f139['previewMode'],_0x368b11={};if('$labels'===_0x267d9d){for(const _0x15bd98 of _0x53f139['getMergeFieldsIds']())_0x368b11[_0x15bd98]=_0x53f139['getLabel'](_0x15bd98)||_0x15bd98;}else{const _0x5d2e24='$defaultValues'===_0x267d9d?_0x53f139['getDefaultValues']():_0x53f139['getDataSetValues'](_0x267d9d,!0x0);for(const _0x421a0f of Object['entries'](_0x5d2e24)){const [_0xaaba15,_0x15196a]=_0x421a0f;_0x368b11[_0xaaba15]=null!==_0x15196a?_0x15196a:_0x53f139['getLabel'](_0xaaba15)||_0xaaba15;}}return{'mergeFieldsData':_0x368b11};}['_standarizeRootsData'](_0xe77dba,_0x5b6a88,_0x13ed3c){let _0x1478c6;if('string'==typeof _0xe77dba){const _0x50bc52=_0x5b6a88['model']['document']['getRootNames']()[0x0];_0x1478c6={[_0x50bc52]:_0xe77dba};}else _0x1478c6=_0xe77dba;const _0x320f33=this['_fixMediaEmbeds'](_0x1478c6,_0x5b6a88),_0x3242ca=function(_0x445de5,_0x1d339f){for(const [_0x502eb2,_0x5ef956]of _0x445de5)_0x5ef956['classes']=_0x1d339f[_0x502eb2]['classList']['value']['replace']('ck-focused','');return _0x445de5;}(this['_sortRoots'](_0x5b6a88)['reduce']((_0x70e000,_0x934c43)=>(_0x70e000['push']([_0x934c43,{'content':_0x320f33[_0x934c43],'classes':''}]),_0x70e000),[]),_0x13ed3c);return _0x3242ca;}['_fixMediaEmbeds'](_0x20a18c,_0x21923f){if(!_0x21923f['plugins']['has']('MediaEmbedEditing'))return _0x20a18c;const _0x1f2bfe=_0x21923f['plugins']['get']('MediaEmbedEditing');for(const [_0x254ef3,_0x2f7b49]of Object['entries'](_0x20a18c)){const _0x42facb=document['createElement']('div');_0x42facb['innerHTML']=_0x2f7b49,(_0x42facb['querySelectorAll']('figure.media')['forEach'](_0x94db74=>{const _0x38098b=_0x94db74['querySelector']('oembed');if(_0x38098b){const _0x5b6b83=_0x38098b['getAttribute']('url');if(_0x5b6b83){const _0x29614f=_0x1f2bfe['registry']['getMediaViewElement'](new _0x4045ce(_0x21923f['editing']['view']['document']),_0x5b6b83,{'elementName':'','renderForEditingView':!0x0}),_0x3ff0ad=document['createElement']('div');_0x3ff0ad['classList']['add']('ck-media__wrapper'),_0x29614f['render'](_0x3ff0ad,_0x21923f['editing']['view']['domConverter']),_0x38098b['replaceWith'](_0x3ff0ad);}}}),_0x20a18c[_0x254ef3]=_0x42facb['innerHTML']);}return _0x20a18c;}['_sortRoots'](_0x468ad6){if(!function(_0x4f8d9d){return void 0x0!==_0x4f8d9d['getRootsAttributes'];}(_0x468ad6))return _0x468ad6['model']['document']['getRootNames']();const _0x2d34ed=[],_0x2ae976=new Map();for(const _0x5d3e64 of _0x468ad6['model']['document']['getRootNames']()){const _0x3ce011=_0x468ad6['editing']['view']['getDomRoot'](_0x5d3e64)['getClientRects']()['item'](0x0);_0x2d34ed['push'](_0x5d3e64),_0x2ae976['set'](_0x5d3e64,_0x3ce011);}return _0x2d34ed['sort']((_0x5bfb54,_0x2a8015)=>{const _0x1479dd=_0x2ae976['get'](_0x5bfb54),_0xf76302=_0x2ae976['get'](_0x2a8015);return _0x1479dd['y']-_0xf76302['y']||_0x1479dd['x']-_0xf76302['x'];}),_0x2d34ed;}}class te extends _0x17eefb{static get['requires'](){return[T,_0x272d1e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xee3154){super(_0xee3154),_0xee3154['commands']['add']('previewFinalContent',new re(this['editor'])),_0xee3154['config']['define']('trackChanges.preview.renderFunction',(_0x5a14d4,_0x396c10)=>{for(const _0xc27afd of _0x396c10)_0x5a14d4['appendChild'](_0xc27afd);});}}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};