@ckeditor/ckeditor5-track-changes 46.1.0-alpha.1 → 46.1.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +4 -4
  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/lineheight.js +1 -1
  185. package/src/integrations/link.js +1 -1
  186. package/src/integrations/list.js +1 -1
  187. package/src/integrations/listproperties.js +1 -1
  188. package/src/integrations/mediaembed.js +1 -1
  189. package/src/integrations/mention.js +1 -1
  190. package/src/integrations/mergefields.js +1 -1
  191. package/src/integrations/multilevellist.js +1 -1
  192. package/src/integrations/pagebreak.js +1 -1
  193. package/src/integrations/paragraph.js +1 -1
  194. package/src/integrations/removeformat.js +1 -1
  195. package/src/integrations/replacesourcecommand.js +1 -1
  196. package/src/integrations/restrictededitingmode.js +1 -1
  197. package/src/integrations/shiftentercommand.js +1 -1
  198. package/src/integrations/standardeditingmode.js +1 -1
  199. package/src/integrations/style.js +1 -1
  200. package/src/integrations/table.js +1 -1
  201. package/src/integrations/tablecaption.js +1 -1
  202. package/src/integrations/tableclipboard.js +2 -2
  203. package/src/integrations/tablecolumnresize.js +1 -1
  204. package/src/integrations/tableheadings.js +1 -1
  205. package/src/integrations/tablelayout.js +1 -1
  206. package/src/integrations/tablemergesplit.js +1 -1
  207. package/src/integrations/tableofcontents.js +1 -1
  208. package/src/integrations/tableproperties.js +1 -1
  209. package/src/integrations/template.js +1 -1
  210. package/src/integrations/title.js +1 -1
  211. package/src/integrations/undo.js +1 -1
  212. package/src/integrations/uploadcare.js +1 -1
  213. package/src/integrations/utils.js +1 -1
  214. package/src/suggestion.js +2 -2
  215. package/src/suggestiondescriptionfactory.js +1 -1
  216. package/src/trackchanges.js +1 -1
  217. package/src/trackchangesdata.js +1 -1
  218. package/src/trackchangesediting.js +1 -1
  219. package/src/trackchangespreview.js +1 -1
  220. package/src/trackchangesui.js +1 -1
  221. package/src/ui/suggestioncontroller.js +2 -2
  222. package/src/ui/view/basesuggestionthreadview.js +1 -1
  223. package/src/ui/view/suggestionthreadview.js +1 -1
  224. package/src/ui/view/suggestionview.js +1 -1
  225. package/src/ui/view/trackchangespreviewview.js +1 -1
  226. package/src/utils/common-translations.js +1 -1
  227. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x451a00,Plugin as _0x43125c,PendingActions as _0x3dae24}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x484d49,ObservableMixin as _0x140e87,uid as _0x339e56,priorities as _0x3b7ee3,insertToPriorityArray as _0x15c0e1,toArray as _0x5fee32,logWarning as _0x40ff1a,getEnvKeystrokeText as _0x4b4605,FocusTracker as _0x4a86af,KeystrokeHandler as _0x576847,Collection as _0x1c49aa}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2e09ca,IconCancel as _0x144297,IconTrackChanges as _0xb7972f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x307e10,View as _0x1bb46f,ViewCollection as _0x2d0e77,FocusCycler as _0x26c407,UIModel as _0x365c84,createDropdown as _0x4597e0,SplitButtonView as _0x28f8c2,addListToDropdown as _0x1099fb,MenuBarMenuView as _0x402b0c,MenuBarMenuListView as _0x415197,ListSeparatorView as _0x2e2fb9,MenuBarMenuListItemView as _0x4cbc09,MenuBarMenuListItemButtonView as _0x2aea59,BodyCollection as _0x3cdf0c,Dialog as _0x4dc1fa}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1d0ab4,hashObject as _0x5d6409,surroundingMarkersDetector as _0x138ac1,FOCUS_ANNOTATION_KEYSTROKE as _0x34aeec,AriaDescriptionView as _0x3249ce,setupThreadKeyboardNavigation as _0x388fe0,trimHtml as _0x473cb5,UserView as _0xf21a6b,LateFocusButtonView as _0x6ee236,getDateTimeFormatter as _0x31bbf6,getAllMarkersDomElementsSorted as _0x22629a,sanitizeEditorConfig as _0x250a15}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x405509,ModelLiveRange as _0x41eab8,ModelLivePosition as _0x238bdc,ViewDowncastWriter as _0x258a54}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3aa5a6,toWidget as _0x2120f5}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x59c111,set as _0x2a549f,isEqual as _0x87d9f1,unset as _0x20a930,omit as Ut}from'es-toolkit/compat';import{Delete as _0x5bc3b6,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x35a763}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4b76e5}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x451a00{['_enabledCommands'];constructor(_0x4fa116,_0x5ed976){super(_0x4fa116),this['_enabledCommands']=_0x5ed976,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 _0x45070a of this['editor']['commands']['commands']())_0x45070a['affectsData']&&!this['_enabledCommands']['has'](_0x45070a)&&_0x45070a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x42ff49 of this['editor']['commands']['commands']())_0x42ff49['affectsData']&&!this['_enabledCommands']['has'](_0x42ff49)&&_0x42ff49['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x451a00{['_suggestions'];constructor(_0x4c7248,_0x3108b0){super(_0x4c7248),this['_suggestions']=_0x3108b0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3ea534){const _0x1d6e3b=this['_suggestions']['get'](_0x3ea534);if(!_0x1d6e3b)throw new _0x484d49('track-changes-accept-suggestion-not-found',this);const _0x14b3b3=_0x1d6e3b['getRanges']();this['editor']['model']['canEditAt'](_0x14b3b3)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1d6e3b);}}class $ extends _0x451a00{['_suggestions'];constructor(_0x537289,_0x13d1e1){super(_0x537289),this['_suggestions']=_0x13d1e1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x54104a){const _0x53d4fc=this['_suggestions']['get'](_0x54104a);if(!_0x53d4fc)throw new _0x484d49('track-changes-discard-suggestion-not-found',this);const _0x1cbbc4=_0x53d4fc['getRanges']();this['editor']['model']['canEditAt'](_0x1cbbc4)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x53d4fc);}}function ls(_0x151df6,_0xe872e1){let _0x40bbfd='';return _0x40bbfd+=_0x151df6['split']('*')['map']((_0x1ff5ac,_0x18c442)=>_0x18c442%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x1ff5ac)+'</span>':tn(_0x1ff5ac))['join'](''),_0xe872e1&&(_0x40bbfd+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xe872e1['value']+'\x22\x20title=\x22'+_0xe872e1['title']+'\x22></span>'),_0x40bbfd;}function tn(_0x4b836c){const _0x40dbb2=document['createElement']('span');return _0x40dbb2['innerText']=_0x4b836c,_0x40dbb2['innerHTML'];}function ts(_0x53110){return _0x53110['sort']((_0x4295f4,_0x24ef33)=>'attribute'===_0x4295f4['type']&&'attribute'!==_0x24ef33['type']?-0x1:'attribute'!==_0x4295f4['type']&&'attribute'===_0x24ef33['type']?0x1:'deletion'==_0x4295f4['type']&&'deletion'!=_0x24ef33['type']?-0x1:'deletion'!=_0x4295f4['type']&&'deletion'==_0x24ef33['type']?0x1:0x0);}function to(_0x1b1e8b,_0x35ca60){let _0x13cbb2,_0x4d1f9e=0x0;const _0x2fe647=[],_0x4cfc34=_0x35ca60['schema'];for(;_0x4d1f9e<_0x1b1e8b['length'];){const _0x5df2a0=_0x1b1e8b[_0x4d1f9e],_0x558534=_0x1b1e8b[_0x4d1f9e+0x1];_0x13cbb2||(_0x13cbb2=_0x35ca60['createPositionBefore'](_0x5df2a0)),nn(_0x35ca60,_0x5df2a0,_0x558534)||(_0x2fe647['push'](_0x35ca60['createRange'](_0x13cbb2,_0x4cfc34['isObject'](_0x5df2a0)?_0x35ca60['createPositionAfter'](_0x5df2a0):_0x35ca60['createPositionAt'](_0x5df2a0,'end'))),_0x13cbb2=null),_0x4d1f9e++;}return _0x2fe647;}function nn(_0x487edf,_0x2ccc34,_0x163dd1){if(!_0x163dd1)return!0x1;const _0x290d34=_0x487edf['createPositionAfter'](_0x2ccc34),_0x49b0f6=_0x487edf['createPositionBefore'](_0x163dd1);return _0x290d34['isTouching'](_0x49b0f6);}function rs(_0x11e059,_0x51e6cf,_0x2738c0){for(;_0x2738c0['length'];){const _0x51b3b4=_0x2738c0['splice'](0x0,0x64);_0x11e059['change'](()=>{for(const _0x15cc33 of _0x51b3b4)_0x15cc33['isInContent']&&_0x51e6cf['execute'](_0x15cc33['id']);});}}class M extends _0x451a00{['_command'];['_suggestions'];constructor(_0x74b6f5,_0x191b8c,_0x26b4c9){super(_0x74b6f5),this['_command']=_0x191b8c,this['_suggestions']=_0x26b4c9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x20be9e=Array['from'](this['_suggestions']['values']())['some'](_0x4c2873=>_0x4c2873['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x20be9e;}['execute'](){const _0x5145a7=ts(Array['from'](this['_suggestions']['values']()));for(const _0x14f276 of _0x5145a7){const _0x49f396=_0x14f276['getRanges']();if(!this['editor']['model']['canEditAt'](_0x49f396))return;}rs(this['editor']['model'],this['_command'],_0x5145a7);}}class B extends _0x451a00{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5d5789,_0x553a63,_0x35e9af){super(_0x5d5789),this['_command']=_0x553a63,this['_suggestions']=_0x35e9af,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1f2504=this['editor']['model']['document']['selection'],_0x316dfa=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x332ec0,_0x3aff82){const _0x380452=Array['from'](_0x332ec0['getRanges']()),_0xcaa4ec=new Set();for(const _0x2cab6f of _0x3aff82)if(_0x2cab6f['isInContent']){for(const _0x54ada2 of _0x380452)for(const _0x78992d of _0x2cab6f['getRanges']())(_0x54ada2['isIntersecting'](_0x78992d)||_0x332ec0['isCollapsed']&&!_0x2cab6f['isMultiRange']&&_0x2cab6f['next']&&_0x78992d['end']['isTouching'](_0x54ada2['start']))&&_0xcaa4ec['add'](_0x2cab6f);}return _0xcaa4ec;}(_0x1f2504,_0x316dfa),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x9ed6e1=ts(Array['from'](this['_selectedSuggestions']));for(const _0x9b16c8 of _0x9ed6e1){const _0x1bdf2a=_0x9b16c8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1bdf2a))return;}rs(this['editor']['model'],this['_command'],_0x9ed6e1);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x140e87(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1ec69c,_0x21160c){super(),this['id']=_0x21160c['id'],this['type']=_0x21160c['type'],this['subType']=_0x21160c['subType']||null,this['author']=_0x21160c['author'],this['creator']=_0x21160c['creator']||_0x21160c['author'],this['isExternal']=Boolean(_0x21160c['attributes']&&_0x21160c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x21160c['originalSuggestionId']||null,this['_model']=_0x1ec69c,this['_onAccept']=_0x21160c['onAccept'],this['_onDiscard']=_0x21160c['onDiscard'],this['_onAttributesChange']=_0x21160c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x21160c['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 _0xe4e7dc=this;for(;_0xe4e7dc['previous'];)_0xe4e7dc=_0xe4e7dc['previous'];return _0xe4e7dc;}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'](_0x267686){this['_markerNames']['add'](_0x267686);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x553477=>this['_model']['markers']['get'](_0x553477))['filter'](_0x51241d=>_0x51241d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xe06d31=>{for(const _0x1feea1 of this['getMarkers']())_0xe06d31['removeMarker'](_0x1feea1);}),this['_markerNames']['clear']();}['removeMarker'](_0x6d9cf6){this['_model']['change'](_0x3d3d8b=>{_0x3d3d8b['removeMarker'](_0x6d9cf6);}),this['_markerNames']['delete'](_0x6d9cf6);}['addRange'](_0x3c53f5){const _0x446410='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x446410),this['_model']['change'](_0x6f95cf=>{_0x6f95cf['addMarker'](_0x446410,{'range':_0x3c53f5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x18df5c){for(const _0x5dcfe6 of this['getRanges']())if(_0x5dcfe6['isIntersecting'](_0x18df5c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2d1b6b=>_0x2d1b6b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x16c165,_0x296572)=>[..._0x16c165,..._0x296572['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x27728e=this['getRanges']();if(0x1!=_0x27728e['length'])return null;const _0x314177=_0x27728e[0x0],_0x3b6e2f=_0x314177['start']['nodeAfter'],_0x2a468c=_0x314177['end']['nodeBefore'];return _0x3b6e2f instanceof _0x405509?_0x3b6e2f!=_0x2a468c?null:_0x3b6e2f: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 _0x32c992=[];let _0x236fa3=this['head'];for(;_0x236fa3;)_0x32c992['push'](_0x236fa3),_0x236fa3=_0x236fa3['next'];return _0x32c992;}['setAttribute'](_0x436f6b,_0x55b89e){const _0x4d41b1=_0x59c111(this['attributes']);_0x2a549f(_0x4d41b1,_0x436f6b,_0x55b89e),_0x87d9f1(_0x4d41b1,this['attributes'])||(this['attributes']=_0x4d41b1,this['_onAttributesChange'](_0x4d41b1));}['removeAttribute'](_0x651cb9){const _0x2af961=_0x59c111(this['attributes']);_0x20a930(_0x2af961,_0x651cb9),_0x87d9f1(_0x2af961,this['attributes'])||(this['attributes']=_0x2af961,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 _0x339e56()['substr'](0x1,0x5);}}function o(_0x31ddd4,_0x2ff5a6,_0x45dc67){const _0x54febf=_0x31ddd4['t'],t=_0x31ddd4['t'];switch(_0x2ff5a6){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',_0x45dc67);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x45dc67);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x45dc67);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x45dc67);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x45dc67);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',_0x45dc67);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x45dc67);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',_0x45dc67);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x45dc67);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x45dc67);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x45dc67);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x45dc67);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x45dc67);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x45dc67);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x45dc67);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x45dc67);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x45dc67);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x45dc67);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x45dc67);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x45dc67);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x45dc67);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x45dc67);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x45dc67);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x45dc67);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x45dc67);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'},_0x45dc67);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x45dc67);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x45dc67);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x45dc67);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x45dc67);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x45dc67);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x45dc67);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x45dc67);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'},_0x45dc67);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x45dc67);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x45dc67);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x45dc67);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x45dc67);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'},_0x45dc67);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x45dc67);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'},_0x45dc67);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x45dc67);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x45dc67);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'},_0x45dc67);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x45dc67);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'},_0x45dc67);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x45dc67);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x45dc67);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'},_0x45dc67);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x45dc67);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 _0x54febf({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x45dc67);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x54febf({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x45dc67);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x45dc67);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'},_0x45dc67);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'},_0x45dc67);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'},_0x45dc67);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2ff5a6;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4fe8b8,_0x5572e7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4fe8b8,this['_locale']=_0x5572e7;}['getDescriptions'](_0x54cab3){const _0x1b2299=[],_0x480554=new Set(),_0x3cf1bf=new Set();for(let _0x4be7a1=0x0;_0x4be7a1<_0x54cab3['length'];_0x4be7a1++){const _0x25c08c=_0x54cab3[_0x4be7a1];if(!_0x25c08c['isInContent'])continue;const _0x207c68=this['_handleCustomCallbackDescription'](_0x25c08c);if(_0x207c68){if(null!=_0x25c08c['subType']){if(_0x480554['has'](_0x25c08c['subType']))continue;_0x480554['add'](_0x25c08c['subType']);}_0x1b2299['push'](_0x207c68);}else{if('attribute'==_0x25c08c['type']){const _0x5482b6=_0x25c08c['data']['key'];if(_0x3cf1bf['has'](_0x5482b6))continue;_0x3cf1bf['add'](_0x25c08c['data']['key']),_0x5482b6==m?this['_handleRenameSuggestionDescription'](_0x1b2299,_0x25c08c):this['_handleAttributeSuggestionDescription'](_0x1b2299,_0x25c08c);continue;}'insertion'!=_0x25c08c['type']&&'deletion'!=_0x25c08c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1b2299,_0x25c08c,_0x54cab3[_0x4be7a1+0x1]);}}return this['_resolveDescriptionItems'](_0x1b2299);}['registerDescriptionCallback'](_0x91d041){this['_customCallbacks']['push'](_0x91d041);}['registerElementLabel'](_0x54c24e,_0x1d9e4c,_0x4f099c=_0x3b7ee3['normal']){'function'==typeof _0x54c24e?_0x15c0e1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x54c24e,'label':_0x1d9e4c,'priority':_0x4f099c}):this['_itemLabels']['set'](_0x54c24e,_0x1d9e4c);}['registerAttributeLabel'](_0x119703,_0x7b0c8a){this['_attributeLabels']['set'](_0x119703,_0x7b0c8a);}['getItemLabel'](_0x9904d7,_0x166a87=0x1){let _0x2183ed;for(const _0x284692 of this['_itemLabelsCallbacks'])if(_0x284692['matchingCallback'](_0x9904d7)){_0x2183ed=_0x284692['label'];break;}return _0x2183ed||(_0x2183ed=this['_itemLabels']['get'](_0x9904d7['name'])),_0x2183ed?_0x2183ed(_0x166a87):0x1!==_0x166a87?_0x166a87+'\x20'+_0x9904d7['name']+'s':''+_0x9904d7['name'];}['_addDescriptionItems'](_0x32bfa2,_0x13a658){const _0x749c67=_0x13a658['getFirstRange']()['getWalker'](),_0x5e366d='insertion'==_0x13a658['type']?'add':'remove';for(const _0x3837a6 of _0x749c67){const _0x3fccf7=_0x3837a6['item'],_0x17a568=_0x32bfa2[_0x32bfa2['length']-0x1];if(_0x3fccf7['is']('$textProxy'))_0x17a568&&_0x17a568['type']['indexOf']('Container')>-0x1&&_0x32bfa2['pop'](),_0x17a568&&'text'==_0x17a568['type']?_0x17a568[_0x5e366d]+=_0x3fccf7['data']:_0x32bfa2['push']({'type':'text','add':'add'==_0x5e366d?_0x3fccf7['data']:'','remove':'remove'==_0x5e366d?_0x3fccf7['data']:''});else{if(this['_schema']['isObject'](_0x3fccf7)){const _0x33780f=_0x3fccf7;if(_0x17a568&&_0x17a568['type']['indexOf']('Container')>-0x1&&_0x32bfa2['pop'](),'elementEnd'==_0x3837a6['type'])continue;_0x17a568&&_0x17a568['type']==_0x5e366d+'Object'&&_0x17a568['element']['name']==_0x33780f['name']?_0x17a568['quantity']++:_0x32bfa2['push']({'type':_0x5e366d+'Object','element':_0x33780f,'quantity':0x1}),_0x749c67['skip'](_0x136ea0=>!('elementEnd'==_0x136ea0['type']&&_0x136ea0['item']==_0x3fccf7));}else{if(this['_schema']['checkChild'](_0x3fccf7,'$text')||_0x3fccf7['is']('element','softBreak')){const _0x1588bd=_0x3fccf7;if('add'==_0x5e366d&&'elementStart'==_0x3837a6['type']||'remove'==_0x5e366d&&'elementEnd'==_0x3837a6['type'])continue;if(_0x17a568&&-0x1==_0x17a568['type']['indexOf']('Container')){'text'==_0x17a568['type']&&(_0x17a568[_0x5e366d]+='\x0a');continue;}let _0x28e8a1;if(_0x28e8a1='add'==_0x5e366d?_0x1588bd['nextSibling']&&!this['_schema']['isObject'](_0x1588bd['nextSibling'])?_0x1588bd['nextSibling']:null:_0x1588bd['previousSibling']&&!this['_schema']['isObject'](_0x1588bd['previousSibling'])?_0x1588bd['previousSibling']:null,_0x1588bd['isEmpty']||_0x28e8a1&&_0x28e8a1['isEmpty']){const _0x447323=_0x28e8a1&&_0x28e8a1['isEmpty']?_0x28e8a1:_0x1588bd;_0x17a568&&_0x17a568['type']==_0x5e366d+'EmptyContainer'&&_0x17a568['element']['name']==_0x447323['name']?_0x17a568['quantity']++:_0x32bfa2['push']({'type':_0x5e366d+'EmptyContainer','element':_0x447323,'quantity':0x1});}else _0x32bfa2['push']({'type':_0x5e366d+'Container','element':_0x1588bd});}}}}}['_resolveDescriptionItems'](_0x2041ec){const _0x2f62dd=this['_locale'],_0x56a1d4=[],_0x379e99=[],_0x177818=[];for(const _0x4f40f4 of _0x2041ec)switch(_0x4f40f4['type']){case'text':if(_0x4f40f4['add']=_0x4f40f4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f40f4['remove']=_0x4f40f4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f40f4['add']&&''!=_0x4f40f4['remove']){_0x56a1d4['push']({'type':'replace','content':o(_0x2f62dd,'REPLACE_TEXT',['\x22'+_0x4f40f4['remove']+'\x22','\x22'+_0x4f40f4['add']+'\x22'])});continue;}if(null!=_0x4f40f4['add']['match'](/^ +$/)){_0x56a1d4['push']({'type':'insertion','content':o(_0x2f62dd,'*Insert:*\x20%0',o(_0x2f62dd,'ELEMENT_SPACE',_0x4f40f4['add']['length']))});continue;}if(null!=_0x4f40f4['remove']['match'](/^ +$/)){_0x56a1d4['push']({'type':'deletion','content':o(_0x2f62dd,'*Remove:*\x20%0',o(_0x2f62dd,'ELEMENT_SPACE',_0x4f40f4['remove']['length']))});continue;}if(''!=_0x4f40f4['add']){_0x56a1d4['push']({'type':'insertion','content':o(_0x2f62dd,'*Insert:*\x20%0','\x22'+_0x4f40f4['add']+'\x22')});continue;}_0x56a1d4['push']({'type':'deletion','content':o(_0x2f62dd,'*Remove:*\x20%0','\x22'+_0x4f40f4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x56a1d4['push']({'type':'insertion','content':o(_0x2f62dd,'*Insert:*\x20%0',this['getItemLabel'](_0x4f40f4['element'],_0x4f40f4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x56a1d4['push']({'type':'deletion','content':o(_0x2f62dd,'*Remove:*\x20%0',this['getItemLabel'](_0x4f40f4['element'],_0x4f40f4['quantity']))});continue;case'addContainer':_0x56a1d4['push']({'type':'insertion','content':o(_0x2f62dd,'*Split:*\x20%0',this['getItemLabel'](_0x4f40f4['element'],_0x4f40f4['quantity']))});continue;case'removeContainer':_0x56a1d4['push']({'type':'deletion','content':o(_0x2f62dd,'*Merge:*\x20%0',this['getItemLabel'](_0x4f40f4['element'],_0x4f40f4['quantity']))});continue;case'addFormat':_0x379e99['push'](_0x4f40f4['key']);continue;case'removeFormat':_0x177818['push'](_0x4f40f4['key']);continue;default:_0x56a1d4['push'](_0x4f40f4);}if(_0x379e99['length']){const _0x461e04=_0x379e99['map'](_0x46ba16=>this['_attributeLabels']['has'](_0x46ba16)?this['_attributeLabels']['get'](_0x46ba16):_0x46ba16)['join'](',\x20');_0x56a1d4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x461e04)});}if(_0x177818['length']){const _0x56e1f0=_0x177818['map'](_0x3e0780=>this['_attributeLabels']['has'](_0x3e0780)?this['_attributeLabels']['get'](_0x3e0780):_0x3e0780)['join'](',\x20');_0x56a1d4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x56e1f0)});}return _0x56a1d4;}['_handleCustomCallbackDescription'](_0x3bf90f){for(const _0x342a3e of this['_customCallbacks']){const _0x76ff93=_0x342a3e(_0x3bf90f);if(_0x76ff93&&'type'in _0x76ff93)return _0x76ff93;}}['_handleAttributeSuggestionDescription'](_0x413205,_0x2c58c0){const _0x30c9b0=_0x2c58c0['data'],_0x33779d=void 0x0===_0x30c9b0['newValue']?'removeFormat':'addFormat';_0x413205['push']({'type':_0x33779d,'key':_0x30c9b0['key']});}['_handleRenameSuggestionDescription'](_0xbc56df,_0x4004d2){_0xbc56df['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4004d2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3fbc5f,_0x2824ab,_0x47e387){if(this['_addDescriptionItems'](_0x3fbc5f,_0x2824ab),_0x47e387&&_0x47e387['getFirstRange']()&&!_0x2824ab['getFirstRange']()['end']['isEqual'](_0x47e387['getFirstRange']()['start'])){const _0x235402=_0x3fbc5f[_0x3fbc5f['length']-0x1],_0x3908b0='insertion'==_0x2824ab['type']?'add':'remove';_0x235402&&'text'==_0x235402['type']&&(_0x235402[_0x3908b0]+='\x0a');}}}class O extends _0x43125c{['afterInit'](){const _0x112f5a=this['editor'],_0x48e384=_0x112f5a['plugins']['get']('TrackChangesEditing');_0x112f5a['commands']['get']('showAIAssistant')&&_0x48e384['enableCommand']('showAIAssistant');}}class E extends _0x43125c{['afterInit'](){const _0x5f0b4e=this['editor'],_0x28307b=_0x5f0b4e['locale'];if(!_0x5f0b4e['plugins']['has']('AlignmentEditing'))return;const _0x5a1563=_0x5f0b4e['plugins']['get']('TrackChangesEditing');_0x5a1563['enableDefaultAttributesIntegration']('alignment'),_0x5a1563['registerBlockAttribute']('alignment'),_0x5a1563['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x28307b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdf3c81=this['editor'],_0x76b566=_0xdf3c81['locale'];_0xdf3c81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ad8bb=>{if('formatBlock'!=_0x2ad8bb['type'])return;const {data:_0xdefd21}=_0x2ad8bb;if(_0xdefd21&&'alignment'==_0xdefd21['commandName']){const _0x1f20f7=_0xdefd21['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x76b566,'*Format:*\x20%0',function(_0x203857){switch(_0x203857){case'left':return o(_0x76b566,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x76b566,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x76b566,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x76b566,'FORMAT_JUSTIFY_TEXT');}}(_0x1f20f7))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x43125c{['afterInit'](){const _0x249ebd=this['editor'],_0x4519d8=_0x249ebd['plugins']['get']('TrackChangesEditing'),_0x208847=_0x249ebd['locale'];for(const _0x2025a5 of Zt){if(!_0x249ebd['plugins']['has'](_0x2025a5))continue;const _0x1e7d98=_0x2025a5['slice'](0x0,-0x7)['toLowerCase'](),_0x497ca3='FORMAT_'+_0x1e7d98['toUpperCase']();_0x4519d8['enableDefaultAttributesIntegration'](_0x1e7d98),_0x4519d8['registerInlineAttribute'](_0x1e7d98),_0x4519d8['descriptionFactory']['registerAttributeLabel'](_0x1e7d98,o(_0x208847,_0x497ca3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32e0ca=this['editor'],_0x2427dd=_0x32e0ca['locale'],_0x485b54=_0x32e0ca['plugins']['get']('TrackChangesEditing');function _0x8041e7(_0x59f74b,_0x2ea4dc){_0x485b54['descriptionFactory']['registerDescriptionCallback'](_0x3d671f=>{if('formatInline'!=_0x3d671f['type'])return;const {data:_0x18e44c}=_0x3d671f;return _0x18e44c&&_0x18e44c['commandName']===_0x59f74b?_0x18e44c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2427dd,'*Format:*\x20%0',_0x2ea4dc)}:{'type':'format','content':o(_0x2427dd,'*Remove\x20format:*\x20%0',_0x2ea4dc)}:void 0x0;});}_0x8041e7('bold',o(_0x2427dd,'FORMAT_BOLD')),_0x8041e7('italic',o(_0x2427dd,'FORMAT_ITALIC')),_0x8041e7('underline',o(_0x2427dd,'FORMAT_UNDERLINE')),_0x8041e7('code',o(_0x2427dd,'FORMAT_CODE')),_0x8041e7('strikethrough',o(_0x2427dd,'FORMAT_STRIKETHROUGH')),_0x8041e7('subscript',o(_0x2427dd,'FORMAT_SUBSCRIPT')),_0x8041e7('superscript',o(_0x2427dd,'FORMAT_SUPERSCRIPT'));}}class U extends _0x43125c{['afterInit'](){const _0x483d58=this['editor'],_0xd61304=_0x483d58['locale'];if(!_0x483d58['plugins']['has']('BlockQuoteEditing'))return;const _0x57499d=_0x483d58['plugins']['get']('TrackChangesEditing'),_0x11f262=this['editor']['commands']['get']('blockQuote');_0x57499d['enableCommand']('blockQuote',(_0x3e861e,_0x4b27b4={})=>{const _0x33b4d8=this['editor']['model']['document']['selection'],_0x4c0bec=_0x4b27b4&&void 0x0!==_0x4b27b4['forceValue']?_0x4b27b4['forceValue']:!_0x11f262['value'];let _0x22436b=[];if(_0x4c0bec){const _0x296a08=Array['from'](_0x33b4d8['getSelectedBlocks']())['filter'](_0x38025f=>oo(_0x38025f)||function(_0x5e7301,_0x5744cb){const _0x21b4c=_0x5744cb['checkChild'](_0x5e7301['parent'],'blockQuote'),_0x50ae7c=_0x5744cb['checkChild'](['$root','blockQuote'],_0x5e7301);return _0x21b4c&&_0x50ae7c;}(_0x38025f,this['editor']['model']['schema']));_0x22436b=to(_0x296a08,_0x483d58['model']);}else{const _0x29f399=Array['from'](_0x33b4d8['getSelectedBlocks']())['filter'](_0x4622f2=>oo(_0x4622f2));_0x22436b=to(_0x29f399,_0x483d58['model']);}_0x483d58['model']['change'](()=>{for(const _0x53e318 of _0x22436b)_0x57499d['markBlockFormat'](_0x53e318,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4c0bec}]});});}),_0x57499d['descriptionFactory']['registerDescriptionCallback'](_0x473ce6=>{const {data:_0x5919fa}=_0x473ce6;if(_0x5919fa&&'blockQuote'==_0x5919fa['commandName']){const _0x460d68=o(_0xd61304,'ELEMENT_BLOCK_QUOTE');return _0x5919fa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd61304,'*Set\x20format:*\x20%0',_0x460d68)}:{'type':'format','content':o(_0xd61304,'*Remove\x20format:*\x20%0',_0x460d68)};}});}}function oo(_0x30b912){return'blockQuote'==_0x30b912['parent']['name'];}class V extends _0x43125c{['afterInit'](){const _0x2209ce=this['editor'],_0x15ba36=_0x2209ce['locale'],_0x4b15d7=_0x2209ce['plugins']['get']('TrackChangesEditing');_0x2209ce['plugins']['has']('BookmarkEditing')&&(_0x4b15d7['enableCommand']('insertBookmark'),_0x4b15d7['enableDefaultAttributesIntegration']('updateBookmark'),_0x4b15d7['registerBlockAttribute']('bookmarkId'),_0x4b15d7['descriptionFactory']['registerDescriptionCallback'](_0x5c95b9=>{if('insertion'!=_0x5c95b9['type']&&'deletion'!=_0x5c95b9['type']&&'attribute'!=_0x5c95b9['type'])return;const _0x40e7f7=_0x5c95b9['getContainedElement']();if(null==_0x40e7f7)return;if(!_0x40e7f7['is']('element','bookmark'))return;const _0x5f28aa=_0x40e7f7['getAttribute']('bookmarkId');if('insertion'==_0x5c95b9['type'])return{'type':'insertion','content':o(_0x15ba36,'*Insert:*\x20%0','\x22'+_0x5f28aa+'\x22\x20'+o(_0x15ba36,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5c95b9['type'])return{'type':'deletion','content':o(_0x15ba36,'*Remove:*\x20%0','\x22'+_0x5f28aa+'\x22\x20'+o(_0x15ba36,'ELEMENT_BOOKMARK'))};const {data:_0x40fc3a}=_0x5c95b9;if(!_0x40fc3a||'bookmarkId'!=_0x40fc3a['key'])return;return{'type':'format','content':o(_0x15ba36,'*Set\x20bookmark:*\x20%0','\x22'+_0x40fc3a['newValue']+'\x22')};}));}}class F extends _0x43125c{['afterInit'](){const _0x28d33f=this['editor'];_0x28d33f['plugins']['has']('CaseChange')&&(_0x28d33f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x28d33f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x28d33f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x43125c{['afterInit'](){const _0x2e1c3b=this['editor'];_0x2e1c3b['commands']['get']('ckbox')&&_0x2e1c3b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x43125c{['afterInit'](){const _0x3cb207=this['editor'];if(!_0x3cb207['plugins']['has']('CodeBlock'))return;const _0x443c72=_0x3cb207['plugins']['get']('TrackChangesEditing'),_0x28be2a=_0x3cb207['locale'],_0x4b1e6c=_0x3cb207['config']['get']('codeBlock')['languages'],_0x26c099=_0x3cb207['commands']['get']('codeBlock');_0x443c72['enableCommand']('indentCodeBlock'),_0x443c72['enableCommand']('outdentCodeBlock'),_0x443c72['enableCommand']('codeBlock',(_0x4e2a2a,_0x1cd4a2={})=>{const _0xeeace7=_0x3cb207['model'],_0x5b0979=_0x3cb207['model']['document']['selection'],_0x278355=_0x1cd4a2&&void 0x0!==_0x1cd4a2['forceValue']?_0x1cd4a2['forceValue']:!_0x26c099['value'];let _0x3504df;_0x1cd4a2['language']||(_0x1cd4a2['language']=_0x4b1e6c[0x0]['language']),_0x3504df=_0x278355?Array['from'](_0x5b0979['getSelectedBlocks']())['filter'](_0x1e1e64=>co(_0x1e1e64)||function(_0x2ef95b,_0x3e879c){if(_0x2ef95b['is']('rootElement')||_0x3e879c['isLimit'](_0x2ef95b))return!0x1;return _0x3e879c['checkChild'](_0x2ef95b['parent'],'codeBlock');}(_0x1e1e64,_0xeeace7['schema'])):Array['from'](_0x5b0979['getSelectedBlocks']())['filter'](_0x2dcd49=>co(_0x2dcd49));const _0xb747ab=to(_0x3504df,_0xeeace7);_0xeeace7['change'](()=>{for(const _0x3de8f6 of _0xb747ab)_0x443c72['markBlockFormat'](_0x3de8f6,{'commandName':'codeBlock','commandParams':[{..._0x1cd4a2,'forceValue':_0x278355}],'formatGroupId':'blockName'});});}),(_0x443c72['descriptionFactory']['registerElementLabel']('codeBlock',_0x5283ca=>o(_0x28be2a,'ELEMENT_CODE_BLOCK',_0x5283ca)),_0x443c72['descriptionFactory']['registerDescriptionCallback'](_0xf6d3c0=>{if('formatBlock'!=_0xf6d3c0['type'])return;const _0x2f763b=_0x28be2a['t'],{data:_0x26319d}=_0xf6d3c0;if(!_0x26319d||'codeBlock'!=_0x26319d['commandName'])return;const _0x5b08d1=_0x26319d['commandParams'][0x0]['language'],_0x2cc1a9=_0x2f763b(_0x4b1e6c['find'](_0x1e6acd=>_0x1e6acd['language']===_0x5b08d1)['label'])['toLowerCase']();return _0x26319d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28be2a,'*Set\x20format:*\x20%0',o(_0x28be2a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2cc1a9+')')}:{'type':'format','content':o(_0x28be2a,'*Remove\x20format:*\x20%0',o(_0x28be2a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x2e3a24){return'codeBlock'==_0x2e3a24['name'];}class J extends _0x43125c{['afterInit'](){const _0xec03db=this['editor'];if(!_0xec03db['plugins']['has']('CommentsEditing'))return;_0xec03db['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4a7c6b,_0x352071,_0x44efae){const _0x31ba52=[];for(const _0x1620d1 of _0x352071['getItems']())_0x1620d1['hasAttribute'](_0x4a7c6b)&&_0x31ba52['push'](_0x44efae['createRangeOn'](_0x1620d1));return _0x31ba52;}function De(_0x42c06d,_0x3cc80c,{showActiveMarker:_0x5ac399=!0x0}={}){const _0x2df003=_0x42c06d['plugins']['get']('TrackChangesEditing');return(_0x4f53c0,_0x29ed41,_0x42d518)=>{if(!_0x42d518['consumable']['test'](_0x29ed41['markerRange'],_0x4f53c0['name']))return;const _0x15c95f=_0x29ed41['markerRange']['getWalker'](),_0x3f20eb=_0x29ed41['markerRange']['start'],_0x1675ab=_0x42c06d['model']['schema'];let _0x44259b=null,_0xa29682=null,_0x2b9952=!0x1,_0x3fd078=!0x1;for(const _0x32b46a of _0x15c95f){const _0x1f7a83=_0x32b46a['item'];_0x2b9952=_0x2b9952||_0x1675ab['isContent'](_0x1f7a83);const _0x3f0bc9=_0x42d518['mapper']['toViewElement'](_0x1f7a83);if(_0x3f0bc9&&_0x3f0bc9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x32b46a['type']&&(_0x1675ab['isBlock'](_0x1f7a83)&&!_0x1675ab['isLimit'](_0x1f7a83)&&(_0x1f7a83['nextSibling']||_0x3f20eb['isAtEnd']?_0x44259b&&_0x44259b['parent']==_0x1f7a83||(_0x44259b=_0x1f7a83,_0x584e63(_0x32b46a['previousPosition']),_0x3fd078=!0x0):_0xa29682=_0xa29682||_0x32b46a['previousPosition']));}function _0x584e63(_0x4faedf){const {id:_0x4d342f,authorId:_0x57391f}=_0x2df003['_splitMarkerName'](_0x29ed41['markerName']),_0x2a415d=_0x42d518['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3cc80c,'data-suggestion':_0x4d342f,'data-author-id':_0x57391f}),_0x21ccba=_0x42d518['mapper']['toViewPosition'](_0x4faedf);_0x5ac399&&_0x2df003['activeMarkers']['includes'](_0x29ed41['markerName'])&&_0x42d518['writer']['addClass']('ck-suggestion-marker--active',_0x2a415d),_0x42d518['writer']['insert'](_0x21ccba,_0x2a415d),_0x42d518['mapper']['bindElementToMarker'](_0x2a415d,_0x29ed41['markerName']);}_0x2b9952||_0x3fd078||!_0xa29682||_0x584e63(_0xa29682);};}class K extends _0x43125c{static get['requires'](){return[_0x5bc3b6];}['init'](){const _0x12ed27=this['editor'],_0x3915e5=_0x12ed27['plugins']['get']('TrackChangesEditing');_0x3915e5['enableCommand']('delete');const _0x37992f=_0x12ed27['commands']['get']('deleteForward');_0x3915e5['enableCommand']('deleteForward',(_0x5a993a,_0x3743c0={})=>{const _0x274388=_0x12ed27['model']['createSelection'](_0x12ed27['model']['document']['selection']);_0x274388['isCollapsed']&&_0x12ed27['model']['modifySelection'](_0x274388,{'direction':'forward','unit':_0x3743c0['unit']});const _0xb8fb46=_0x274388['getFirstRange'](),_0x42024f=_0x41eab8['fromRange'](_0xb8fb46);let _0x32eb1f;_0x5a993a(_0x3743c0),_0x32eb1f='$graveyard'==_0x42024f['root']['rootName']?_0x12ed27['model']['createRange'](_0xb8fb46['start']):_0x12ed27['model']['createRange'](_0x42024f['start'],_0x42024f['end']),_0x42024f['detach'](),_0x12ed27['model']['enqueueChange'](_0x37992f['buffer']['batch'],_0x2b7863=>{_0x37992f['buffer']['lock'](),_0x2b7863['setSelection'](_0x2b7863['createRange'](_0x32eb1f['end'])),_0x37992f['buffer']['unlock']();});}),_0x12ed27['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x12ed27,'merge'),{'priority':'high'}),_0x12ed27['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xc5ce25,_0x16884a,_0x544a59)=>{_0x544a59['options']['showSuggestionHighlights']&&De(_0x12ed27,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xc5ce25,_0x16884a,_0x544a59);},{'priority':'high'}),_0x12ed27['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x24ffce,_0x53377d,_0x41ce68)=>{const _0x27175d=_0x41ce68['mapper']['markerNameToElements'](_0x53377d['markerName']);if(_0x27175d){for(const _0x5110f8 of _0x27175d)_0x5110f8['is']('uiElement')&&(_0x41ce68['mapper']['unbindElementFromMarkerName'](_0x5110f8,_0x53377d['markerName']),_0x41ce68['writer']['remove'](_0x5110f8));}},{'priority':'high'});}}class H extends _0x43125c{['afterInit'](){const _0x267b40=this['editor'];if(!_0x267b40['plugins']['has']('ListEditing'))return;const _0x572cf9=_0x267b40['locale'],_0x41cbfb=_0x267b40['plugins']['get']('TrackChangesEditing'),_0x435433=_0x267b40['plugins']['has']('TodoListEditing'),_0x1b6d80=!!_0x267b40['config']['get']('list.multiBlock');function _0x5ded82(_0x4fcdc2){return{'type':'format','content':''+o(_0x572cf9,'*Set\x20format:*\x20%0',_0x4fcdc2)};}function _0x2ea361(_0x1db7ca){return{'type':'format','content':''+o(_0x572cf9,'*Remove\x20format:*\x20%0',_0x1db7ca)};}_0x41cbfb['enableDefaultAttributesIntegration']('numberedList'),_0x41cbfb['enableDefaultAttributesIntegration']('bulletedList'),_0x41cbfb['enableDefaultAttributesIntegration']('customNumberedList'),_0x41cbfb['enableDefaultAttributesIntegration']('customBulletedList'),_0x41cbfb['enableDefaultAttributesIntegration']('indentList'),_0x41cbfb['enableDefaultAttributesIntegration']('outdentList'),_0x41cbfb['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x41cbfb['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x41cbfb['registerBlockAttribute']('listItemId'),_0x41cbfb['registerBlockAttribute']('listType'),_0x41cbfb['registerBlockAttribute']('listIndent'),_0x1b6d80&&(_0x41cbfb['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x41cbfb['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x435433&&(_0x41cbfb['enableDefaultAttributesIntegration']('todoList'),_0x41cbfb['enableDefaultAttributesIntegration']('checkTodoList'),_0x41cbfb['registerBlockAttribute']('todoListChecked'),_0x41cbfb['descriptionFactory']['registerDescriptionCallback'](_0x1e5423=>{const {data:_0xe78a19}=_0x1e5423;if(_0xe78a19&&'todoListChecked'==_0xe78a19['key'])return{'type':'format','content':_0xe78a19['newValue']?o(_0x572cf9,'*Check\x20item*'):o(_0x572cf9,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x197a21=>{if(_0x197a21['batch']['isUndo'])return!0x1;let _0x159c02=!0x1;const _0x3fc028=_0x41cbfb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3caee2=>'todoListChecked'===_0x41cbfb['_getAttributeKey'](_0x3caee2));for(const _0x215e5f of _0x3fc028){'todo'!=_0x215e5f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x41cbfb['_findSuggestions'](_0x215e5f['getFirstRange'](),'attribute')['find'](_0x504e45=>'listType'===_0x41cbfb['_getAttributeKey'](_0x504e45['suggestion']))||(_0x197a21['removeMarker'](_0x215e5f['getFirstMarker']()),_0x159c02=!0x0));}return _0x159c02;})),_0x41cbfb['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x572cf9,'FORMAT_INDENT'));const _0x3f5820={'type':'format','content':''};_0x41cbfb['descriptionFactory']['registerDescriptionCallback'](_0x3c1a5b=>{const {data:_0x57e122}=_0x3c1a5b;if(!_0x57e122||'listType'!=_0x57e122['key'])return;let _0x978291=_0x3c1a5b['head'];for(;_0x978291;){if(_0x978291['data']&&(('listStyle'==_0x978291['data']['key']||'listMarkerStyle'==_0x978291['data']['key'])&&(_0x978291['data']['newValue']&&'default'!=_0x978291['data']['newValue']||'default'!=_0x978291['data']['oldValue']&&!_0x57e122['newValue'])||!_0x1b6d80&&_0x978291['data']['key']==m))return _0x3f5820;_0x978291=_0x978291['next'];}if(null==_0x57e122['newValue'])switch(_0x57e122['oldValue']){case'bulleted':return _0x2ea361(o(_0x572cf9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2ea361(o(_0x572cf9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2ea361(o(_0x572cf9,'ELEMENT_TODO_LIST'));}switch(_0x57e122['newValue']){case'bulleted':return _0x5ded82(o(_0x572cf9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5ded82(o(_0x572cf9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5ded82(o(_0x572cf9,'ELEMENT_TODO_LIST'));}}),_0x41cbfb['descriptionFactory']['registerDescriptionCallback'](_0x5af1b3=>{const {data:_0x56f075}=_0x5af1b3;if(_0x56f075&&'listIndent'==_0x56f075['key'])return null==_0x56f075['newValue']||null==_0x56f075['oldValue']&&0x0==_0x56f075['newValue']?_0x3f5820:void 0x0;}),_0x41cbfb['descriptionFactory']['registerDescriptionCallback'](_0x299cbc=>{if('attribute'!=_0x299cbc['type'])return;const {data:_0x2dabb8}=_0x299cbc;if(!_0x2dabb8||'listItemId'!=_0x2dabb8['key'])return;const _0x3f98a7=Te(_0x299cbc);return'newValue'==_0x3f98a7?{'type':'format','content':o(_0x572cf9,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3f98a7?{'type':'format','content':o(_0x572cf9,'*Split:*\x20list\x20item')}:_0x3f5820;}),_0x267b40['model']['document']['registerPostFixer'](_0x1333af=>this['listItemIdFixer'](_0x1333af)),_0x267b40['model']['document']['registerPostFixer'](_0x1d429b=>this['noTrackChangesFixer'](_0x1d429b)),_0x267b40['model']['document']['on']('change:data',(_0x52ac71,_0x149dc6)=>{if(_0x149dc6['isUndo']||!_0x149dc6['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2774de){if(_0x2774de['batch']['isUndo']||!_0x2774de['batch']['isLocal'])return!0x1;let _0x2deeed=!0x1;const _0x2ed3f2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5077c4=>_0x5077c4['data']&&'listItemId'==_0x5077c4['data']['key'])['filter'](_0x2cd59f=>_0x2cd59f['data']['newValue']&&_0x2cd59f['data']['oldValue']);for(const _0x27837d of _0x2ed3f2)Te(_0x27837d)||(_0x2774de['removeMarker'](_0x27837d['getFirstMarker']()),_0x2deeed=!0x0);return _0x2deeed;}['noTrackChangesFixer'](_0x48c729){if(_0x48c729['batch']['isUndo']||!_0x48c729['batch']['isLocal'])return!0x1;const _0x2123e6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2123e6['trackChangesCommand']['value'])return!0x1;let _0x39e5d5=!0x1;const _0x2eacd1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1469bb=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x7e05b2=>'attribute'==_0x7e05b2['type'])['filter'](_0x5ad4ee=>_0x2eacd1['includes'](_0x5ad4ee['attributeKey']));if(0x0==_0x1469bb['length'])return _0x39e5d5;for(const _0x15ddae of _0x1469bb){const _0x279518=_0x2123e6['_findSuggestions'](_0x15ddae['range'],'attribute')['filter'](_0x3112a2=>!_0x3112a2['meta']['isNextTo'])['map'](_0x3f47d7=>_0x3f47d7['suggestion'])['filter'](_0x43001f=>{const _0x4cbec4=_0x2123e6['_getAttributeKey'](_0x43001f);return _0x2eacd1['includes'](_0x4cbec4);});if(_0x279518['length']){for(const _0x4e602d of _0x279518)_0x48c729['removeMarker'](_0x4e602d['getFirstMarker']());_0x39e5d5=!0x0;}}return _0x39e5d5;}['assureChains'](){const _0x55316e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x279f20=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x43b85a;const _0x462545=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2b576a=>{if(_0x2b576a['data']['oldRange']||!_0x2b576a['data']['newRange'])return null;if(!_0x2b576a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x42c095}=_0x55316e['_splitMarkerName'](_0x2b576a['name']);if(!_0x55316e['hasSuggestion'](_0x42c095))return null;const _0x5874e4=_0x55316e['getSuggestion'](_0x42c095);return _0x279f20['includes'](_0x5874e4['data']['key']);})['map'](_0x270af5=>{const {id:_0x4d79a2}=_0x55316e['_splitMarkerName'](_0x270af5['name']),_0x539657=_0x55316e['getSuggestion'](_0x4d79a2);return _0x43b85a=_0x539657['attributes']['groupId'],_0x539657['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x462545['size'])return;const _0x2dd0c5=_0x55316e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30a77b=>'attribute'==_0x30a77b['type']&&_0x30a77b['data']&&_0x279f20['includes'](_0x30a77b['data']['key'])&&_0x30a77b['attributes']['groupId']!=_0x43b85a)['map'](_0x489c33=>({'listItem':_0x489c33['getFirstRange']()['start']['nodeAfter'],'groupId':_0x489c33['attributes']['groupId']})),_0x32239a=new Set();for(const {groupId:_0x1d1524,listItem:_0xaaf25d}of _0x2dd0c5)_0x462545['has'](_0xaaf25d)&&_0x32239a['add'](_0x1d1524);for(const _0xfdf251 of _0x55316e['getSuggestions']())_0x32239a['has'](_0xfdf251['attributes']['groupId'])&&_0xfdf251['setAttribute']('groupId',_0x43b85a);}['_supportLegacySuggestions'](){const _0xcc453=this['editor'],_0x24fccf=_0xcc453['locale'],_0xc095fb=_0xcc453['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xc095fb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1490b4,_0x1c023b){const _0x969217=[];for(let _0x20aaf4 of _0x1490b4)_0x20aaf4['start']['nodeAfter']===_0x20aaf4['end']['parent']&&(_0x20aaf4=_0xcc453['model']['createRange'](_0xcc453['model']['createPositionAt'](_0x20aaf4['start']['nodeAfter'],0x0))),_0x969217['push'](_0x20aaf4);_0xcc453['model']['change'](_0x2a8497=>{const _0x490569=_0xcc453['model']['document']['selection'],_0x59a93c=Array['from'](_0x490569['getRanges']())['map'](_0x34f176=>_0x41eab8['fromRange'](_0x34f176));_0x2a8497['setSelection'](_0x969217),_0xcc453['commands']['get'](_0x1c023b['commandName'])['refresh'](),_0x1c023b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xcc453['execute'](_0x1c023b['commandName'],..._0x1c023b['commandParams']),_0x2a8497['setSelection'](_0x59a93c);for(const _0x460b11 of _0x59a93c)_0x460b11['detach']();});}),_0xc095fb['descriptionFactory']['registerElementLabel'](function(_0x1e0f2f){const _0x1b654d=!_0xcc453['model']['schema']['isObject'](_0x1e0f2f),_0x48d465=_0x1e0f2f['previousSibling'],_0x156868=_0x1e0f2f['nextSibling'],_0x4dab55=_0x1e0f2f['getAttribute']('listItemId'),_0x99e6dc=!_0x48d465||_0x48d465['getAttribute']('listItemId')!==_0x4dab55,_0x250d5e=!_0x156868||_0x156868['getAttribute']('listItemId')!==_0x4dab55;return _0x1b654d&&Boolean(_0x4dab55)&&_0x99e6dc&&_0x250d5e;},_0x3a932b=>o(_0x24fccf,'ELEMENT_LIST_ITEM',_0x3a932b));}['_registerLegacyDescription'](){const _0x47f828=this['editor'],_0x48265a=_0x47f828['locale'];function _0x1a78c7(_0x1d96fe){const _0x3ea725=_0x47f828['commands']['get']('bulletedList')['value'],_0x55a3b0=_0x47f828['commands']['get']('numberedList')['value'];return'numberedList'===_0x1d96fe?_0x3ea725:_0x55a3b0;}_0x47f828['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x12e08a){if('formatBlock'!=_0x12e08a['type'])return;const {data:_0x5c1350}=_0x12e08a;if(!_0x5c1350)return;let _0x493292,_0x3ce3bd,_0x5d4446,_0x3b02ab;switch(_0x5c1350['commandName']){case'bulletedList':_0x5d4446=_0x5c1350['commandParams'][0x0]['forceValue'],_0x3b02ab=_0x1a78c7(_0x5c1350['commandName']),_0x493292=_0x5d4446?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b02ab&&_0x47f828['config']['get']('list.multiBlock')||(_0x493292='*Change\x20to:*\x20%0'),_0x3ce3bd={'type':'format','content':o(_0x48265a,_0x493292,o(_0x48265a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5d4446=_0x5c1350['commandParams'][0x0]['forceValue'],_0x3b02ab=_0x1a78c7(_0x5c1350['commandName']),_0x493292=_0x5d4446?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b02ab&&_0x47f828['config']['get']('list.multiBlock')||(_0x493292='*Change\x20to:*\x20%0'),_0x3ce3bd={'type':'format','content':o(_0x48265a,_0x493292,o(_0x48265a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x493292='*Indent:*\x20%0',_0x3ce3bd={'type':'format','content':o(_0x48265a,_0x493292,o(_0x48265a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x493292=function(_0x269cb9){const _0x542e7c=_0x269cb9['getFirstRange']();let _0x10ae86=_0x542e7c['start']['nodeAfter'];for(;_0x10ae86&&_0x542e7c['containsItem'](_0x10ae86);){if(_0x10ae86['getAttribute']('listIndent')>0x0)return!0x1;_0x10ae86=_0x10ae86['nextSibling'];}return!0x0;}(_0x12e08a)?o(_0x48265a,'*Format:*\x20remove\x20from\x20%0',o(_0x48265a,function(_0x230105){return'ELEMENT_'+_0x230105['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x12e08a))):o(_0x48265a,'*Outdent:*\x20%0',o(_0x48265a,'ELEMENT_LIST_ITEM')),_0x3ce3bd={'type':'format','content':_0x493292};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5c1350['multipleBlocks']&&(_0x493292='*Merge:*\x20%0',_0x3ce3bd={'type':'deletion','content':o(_0x48265a,_0x493292,o(_0x48265a,'ELEMENT_LIST_ITEM'))});}return _0x3ce3bd;});}}function Te(_0x277e57){let _0x2dde0b=_0x277e57['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2dde0b;){const _0x24d4be=_0x2dde0b['getAttribute']('listItemId');if(!_0x24d4be)return!0x1;if(_0x24d4be==_0x277e57['data']['newValue'])return'newValue';if(_0x24d4be==_0x277e57['data']['oldValue'])return'oldValue';_0x2dde0b=_0x2dde0b['previousSibling'];}return!0x1;}class q extends _0x43125c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5ebcb7=this['editor']['config']['get']('list.properties'),_0x49cccc=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ebcb7['styles']&&(_0x49cccc['enableDefaultAttributesIntegration']('listStyle'),_0x49cccc['registerBlockAttribute']('listStyle')),_0x5ebcb7['reversed']&&(_0x49cccc['enableDefaultAttributesIntegration']('listReversed'),_0x49cccc['registerBlockAttribute']('listReversed')),_0x5ebcb7['startIndex']&&(_0x49cccc['enableDefaultAttributesIntegration']('listStart'),_0x49cccc['registerBlockAttribute']('listStart'));const _0x5c9eba={'type':'format','content':''};_0x49cccc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1e5c1f=this['editor']['locale'];_0x49cccc['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1e5c1f,'FORMAT_LIST_REVERSED')),_0x49cccc['descriptionFactory']['registerDescriptionCallback'](_0x383095=>{const {data:_0xb5b864}=_0x383095;if(_0xb5b864&&'listReversed'==_0xb5b864['key'])return null==_0xb5b864['newValue']||0x0==_0xb5b864['newValue']&&null==_0xb5b864['oldValue']?_0x5c9eba:void 0x0;}),_0x49cccc['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1e5c1f,'FORMAT_LIST_START')),_0x49cccc['descriptionFactory']['registerDescriptionCallback'](_0x470182=>{const {data:_0x235990}=_0x470182;if(_0x235990&&'listStart'==_0x235990['key'])return null==_0x235990['newValue']||0x1==_0x235990['newValue']&&null==_0x235990['oldValue']?_0x5c9eba:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3a50b0=>{if(_0x3a50b0['batch']['isUndo'])return!0x1;let _0x2c76f9=!0x1;const _0x59ec9f=_0x49cccc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5675f7=>{const _0x29e001=_0x49cccc['_getAttributeKey'](_0x5675f7);return'listStart'==_0x29e001||'listReversed'==_0x29e001;});for(const _0x1bc2db of _0x59ec9f){const _0x42cd0f=_0x1bc2db['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x42cd0f||'customNumbered'==_0x42cd0f)continue;_0x49cccc['_findSuggestions'](_0x1bc2db['getFirstRange'](),'attribute')['find'](_0x72e905=>'listType'==_0x49cccc['_getAttributeKey'](_0x72e905['suggestion']))||(_0x3a50b0['removeMarker'](_0x1bc2db['getFirstMarker']()),_0x2c76f9=!0x0);}return _0x2c76f9;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x29e5db){const _0x5b1bee=this['editor']['locale'],{data:_0x3e85fa}=_0x29e5db,_0x1b3660={'type':'format','content':''};if(!_0x3e85fa||'listStyle'!=_0x3e85fa['key'])return;if(!_0x3e85fa['oldValue'])return'default'==_0x3e85fa['newValue']?_0x1b3660:{'type':'format','content':''+o(_0x5b1bee,'*Set\x20format:*\x20%0',o(_0x5b1bee,this['_getTranslationKeyForListStyle'](_0x3e85fa['newValue'])))};if(!_0x3e85fa['newValue']){if('default'==_0x3e85fa['oldValue'])return _0x1b3660;let _0x419ddb=_0x29e5db['head'];for(;_0x419ddb;){if(_0x419ddb['data']&&'listType'==_0x419ddb['data']['key']&&_0x419ddb['data']['newValue'])return _0x1b3660;_0x419ddb=_0x419ddb['next'];}return{'type':'format','content':''+o(_0x5b1bee,'*Remove\x20format:*\x20%0',o(_0x5b1bee,this['_getTranslationKeyForListStyle'](_0x3e85fa['oldValue'])))};}if('default'!=_0x3e85fa['newValue'])return{'type':'format','content':''+o(_0x5b1bee,'*Set\x20format:*\x20%0',o(_0x5b1bee,this['_getTranslationKeyForListStyle'](_0x3e85fa['newValue'])))};let _0x3fea32=_0x29e5db['head'];for(;_0x3fea32;){if(_0x3fea32['data']&&'listType'==_0x3fea32['data']['key']&&_0x3fea32['data']['newValue']&&_0x3fea32['data']['oldValue'])return _0x1b3660;_0x3fea32=_0x3fea32['next'];}return{'type':'format','content':o(_0x5b1bee,'*Set\x20format:*\x20%0',o(_0x5b1bee,'ELEMENT_'+_0x29e5db['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x21961b=this['editor'],_0x2c8dbc=_0x21961b['locale'];_0x21961b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a9b7f=>{if('formatBlock'!=_0x2a9b7f['type'])return;const {data:_0x2561d4}=_0x2a9b7f;if(!_0x2561d4)return;let _0x436b5a,_0x3dc9fa;switch(_0x2561d4['commandName']){case'listStyle':_0x436b5a='*Change\x20to:*\x20%0',_0x3dc9fa={'type':'format','content':o(_0x2c8dbc,_0x436b5a,o(_0x2c8dbc,this['_getTranslationKeyForListStyle'](_0x2561d4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x436b5a=_0x2561d4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3dc9fa={'type':'format','content':o(_0x2c8dbc,_0x436b5a)};break;case'listStart':_0x436b5a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3dc9fa={'type':'format','content':o(_0x2c8dbc,_0x436b5a,_0x2561d4['commandParams'][0x0]['startIndex'])};}return _0x3dc9fa;});}['_getTranslationKeyForListStyle'](_0x491a9b){return'ELEMENT_'+function(_0x53874d){if(Se['includes'](_0x53874d))return'bulleted';if(_e['includes'](_0x53874d))return'numbered';return null;}(_0x491a9b)['toUpperCase']()+'_LIST_'+_0x491a9b['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x43125c{['afterInit'](){const _0x3b7c94=this['editor'];_0x3b7c94['commands']['get']('emoji')&&_0x3b7c94['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x43125c{static get['requires'](){return[_0x35a763];}['init'](){const _0x3becf4=this['editor'],_0x47e59c=_0x3becf4['plugins']['get']('TrackChangesEditing'),_0x505bf7=_0x3becf4['commands']['get']('enter');_0x47e59c['enableCommand']('enter',()=>{_0x3becf4['model']['change'](_0x2f1d7a=>{const _0x35f647=_0x3becf4['model']['document']['selection'],_0x5043a4=_0x35f647['getFirstPosition'](),_0x4123cf=_0x41eab8['fromRange'](_0x35f647['getFirstRange']());if(_0x505bf7['enterBlock'](_0x2f1d7a)){const _0x29cf19=_0x3becf4['model']['createPositionAt'](_0x5043a4['parent']['nextSibling'],0x0),_0x18dd4b=_0x2f1d7a['createRange'](_0x5043a4,_0x29cf19);_0x47e59c['markInsertion'](_0x18dd4b);}else _0x2f1d7a['setSelection'](_0x2f1d7a['createRange'](_0x4123cf['end']));_0x4123cf['detach'](),_0x505bf7['fire']('afterExecute',{'writer':_0x2f1d7a});});}),_0x3becf4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x3becf4,'split'),{'priority':'high'}),_0x3becf4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x52104d,_0x24789e,_0x580260)=>{const _0x4ad97b=_0x580260['mapper']['markerNameToElements'](_0x24789e['markerName']);if(_0x4ad97b){for(const _0x479715 of _0x4ad97b)_0x479715['hasClass']('ck-suggestion-marker-split')&&(_0x580260['mapper']['unbindElementFromMarkerName'](_0x479715,_0x24789e['markerName']),_0x580260['writer']['remove'](_0x479715));}},{'priority':'high'}),_0x3becf4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x44b5a3,_0x5da6bf,_0x2ca2ce)=>{_0x2ca2ce['options']['showSuggestionHighlights']&&De(_0x3becf4,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x44b5a3,_0x5da6bf,_0x2ca2ce);},{'priority':'high'});}}class Q extends _0x43125c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x25aab0=this['editor']['plugins']['get']('TrackChangesEditing');_0x25aab0['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x25aab0['enableCommand']('findNext'),_0x25aab0['enableCommand']('findPrevious'),_0x25aab0['enableCommand']('replace'),_0x25aab0['enableCommand']('replaceAll');}['handleFindCommand'](_0x4c83ad,_0x12abf,_0x302af1={}){const _0x181a1c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4c83ad(_0x4cd4f9=>{let _0x26f18d=('string'==typeof _0x12abf?_0x181a1c['findByTextCallback'](_0x12abf,_0x302af1):_0x12abf)(_0x4cd4f9);Array['isArray'](_0x26f18d)&&(_0x26f18d={'results':_0x26f18d,'searchText':'string'==typeof _0x12abf?_0x12abf:''});const _0x4cdfb5=_0x26f18d['results']['filter'](_0x454d25=>!0x1===this['_isInDeletionRange'](_0x454d25,_0x4cd4f9['item']));return{..._0x26f18d,'results':_0x4cdfb5};},_0x302af1);}['_isInDeletionRange'](_0x4a6dfe,_0x43f217){const _0x20d400=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x43f217,_0x4a6dfe['start']),this['editor']['model']['createPositionAt'](_0x43f217,_0x4a6dfe['end']));for(const _0x179c08 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x20d400['getIntersection'](_0x179c08['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x43125c{['afterInit'](){const _0x419fa0=this['editor']['locale'],_0x39c0b6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x55cb09,commandName:_0x2c731b}of eo)this['editor']['plugins']['has'](_0x55cb09)&&(_0x39c0b6['enableDefaultAttributesIntegration'](_0x2c731b),_0x39c0b6['registerInlineAttribute'](_0x2c731b));_0x39c0b6['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x419fa0,'FORMAT_FONT_SIZE')),_0x39c0b6['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x419fa0,'FORMAT_FONT_FAMILY')),_0x39c0b6['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x419fa0,'FORMAT_FONT_COLOR')),_0x39c0b6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x419fa0,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23dc70=this['editor'],_0x7c714=_0x23dc70['locale'];_0x23dc70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26845d=>{const _0x35d67c=_0x7c714['t'];if('formatInline'!=_0x26845d['type'])return;const {data:_0x5f435a}=_0x26845d;if(null!=_0x5f435a){if('fontSize'==_0x5f435a['commandName']){const _0x53524d=_0x5f435a['commandParams'][0x0]['value'];if(_0x53524d){const _0xf2a56b=_0x35d67c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3e2740=>_0x3e2740['model']==_0x53524d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x7c714,'*Set\x20font\x20size:*\x20%0',_0xf2a56b)};}return{'type':'format','content':o(_0x7c714,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5f435a['commandName']){const _0x3fcd0b=_0x5f435a['commandParams'][0x0]['value'];return _0x3fcd0b?{'type':'format','content':o(_0x7c714,'*Set\x20font\x20family:*\x20%0',_0x3fcd0b)}:{'type':'format','content':o(_0x7c714,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5f435a['commandName']){const _0x304d48=_0x5f435a['commandParams'][0x0]['value'];if(_0x304d48){const _0x2f4a81=_0x307e10(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2a7edf=>_0x2a7edf['model']==_0x304d48);let _0x415bac=_0x304d48,_0x586e6c='';return _0x2f4a81&&(_0x415bac=_0x2f4a81['label'],_0x586e6c=_0x35d67c(_0x415bac)['toLowerCase']()),{'type':'format','content':o(_0x7c714,'*Set\x20font\x20color:*\x20%0',_0x586e6c)['trim'](),'color':{'value':_0x304d48,'title':_0x586e6c||_0x415bac}};}return{'type':'format','content':o(_0x7c714,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5f435a['commandName']){const _0x464843=_0x5f435a['commandParams'][0x0]['value'];if(_0x464843){const _0xaa52a9=_0x307e10(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xff398d=>_0xff398d['model']==_0x464843);let _0x395305=_0x464843,_0xdbd0b7='';return _0xaa52a9&&(_0x395305=_0xaa52a9['label'],_0xdbd0b7=_0x35d67c(_0x395305)['toLowerCase']()),{'type':'format','content':o(_0x7c714,'*Set\x20font\x20background\x20color:*\x20%0',_0xdbd0b7)['trim'](),'color':{'value':_0x464843,'title':_0xdbd0b7||_0x395305}};}return{'type':'format','content':o(_0x7c714,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x43125c{['afterInit'](){const _0xc7e0fa=this['editor'],_0x4d6184=_0xc7e0fa['plugins']['get']('TrackChangesEditing'),_0x35e657=_0xc7e0fa['commands']['get']('copyFormat'),_0x262ff7=_0xc7e0fa['commands']['get']('pasteFormat');_0x35e657&&_0x262ff7&&(_0x4d6184['enableDefaultAttributesIntegration']('pasteFormat'),_0x4d6184['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3e6666=this['editor'],_0xfa4403=_0x3e6666['locale'];_0x3e6666['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24059f=>{if('formatBlock'!=_0x24059f['type']&&'formatInline'!=_0x24059f['type'])return;const {data:_0x27fb94}=_0x24059f;if(_0x27fb94&&'pasteFormat'===_0x27fb94['commandName']){const _0x4ac956=[],_0x11f774=_0x27fb94['commandParams'][0x0];for(const [_0xd1a102,_0x77a959]of Object['entries'](_0x11f774))_0x4ac956['push'](ro(_0x3e6666,_0xd1a102,_0x77a959));return _0x4ac956['length']?{'type':'format','content':o(_0xfa4403,'*Set\x20format\x20to:*\x20%0',_0x4ac956['join'](',\x20'))}:{'type':'format','content':o(_0xfa4403,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xdd351,_0x26e0ab,_0x2efa1d){const _0xc7ad00=_0xdd351['locale']['t'],_0x4f1f54=_0x26e0ab['split'](/(?=[A-Z])/)['join']('\x20'),_0x38f48e=_0xc7ad00(_0x4f1f54['charAt'](0x0)['toUpperCase']()+_0x4f1f54['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2efa1d)return _0x38f48e;if('fontColor'===_0x26e0ab||'fontBackgroundColor'===_0x26e0ab){const _0x3277ef=_0x307e10(_0xdd351['config']['get']('fontColor.colors'))['find'](_0x10c510=>_0x10c510['model']==_0x2efa1d);return _0x38f48e+'\x20('+(_0x3277ef?_0xc7ad00(_0x3277ef['label'])['toLowerCase']():_0x2efa1d)+')';}if('fontSize'===_0x26e0ab&&isNaN(parseFloat(_0x2efa1d))){const _0x524f28=_0xdd351['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xdd351['config']['get']('fontSize.options'))['find'](_0x18b6a4=>_0x18b6a4['model']==_0x2efa1d);return _0x38f48e+'\x20('+(_0x524f28?_0xc7ad00(_0x524f28['title'])['toLowerCase']():_0x2efa1d)+')';}return _0x38f48e+'\x20('+_0x2efa1d+')';}class Z extends _0x43125c{['_headingOptions'];['afterInit'](){const _0x2a004b=this['editor'];if(!_0x2a004b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2a004b['config']['get']('heading.options');const _0x249a3b=_0x2a004b['locale'],_0x554e0a=_0x2a004b['plugins']['get']('TrackChangesEditing');_0x554e0a['enableDefaultAttributesIntegration']('heading');for(const _0x466f20 of this['_headingOptions'])'paragraph'!=_0x466f20['model']&&_0x554e0a['descriptionFactory']['registerElementLabel'](_0x466f20['model'],_0x40abf7=>{const _0x39f6a6=this['_getHeadingLevel'](_0x466f20['model']);return null!==_0x39f6a6?_0xba33ea(_0x40abf7,_0x39f6a6):_0x490d20(_0x40abf7,_0x466f20['title']);});function _0xba33ea(_0x450fc7,_0x17db22){return o(_0x249a3b,'ELEMENT_HEADING',[_0x450fc7,_0x17db22]);}function _0x490d20(_0x2f5c25,_0x249d12){return o(_0x249a3b,'ELEMENT_HEADING_CUSTOM',[_0x2f5c25,_0x249d12]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6c5ba5=this['editor'],_0x349f9e=_0x6c5ba5['locale'];function _0x49d683(_0x2523ce,_0x373fe8){return o(_0x349f9e,'ELEMENT_HEADING_CUSTOM',[_0x2523ce,_0x373fe8]);}_0x6c5ba5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfa4dba=>{if('formatBlock'!=_0xfa4dba['type'])return;const {data:_0x3e4ad1}=_0xfa4dba;if(_0x3e4ad1&&'heading'==_0x3e4ad1['commandName']){const _0x58cff2=_0x3e4ad1['commandParams'][0x0]['value'],_0x5ac3b5=this['_getHeadingLevel'](_0x58cff2);if(null!==_0x5ac3b5)return{'type':'format','content':o(_0x349f9e,'*Change\x20to:*\x20%0',(_0x49d1f0=0x1,_0x2d7727=_0x5ac3b5,o(_0x349f9e,'ELEMENT_HEADING',[_0x49d1f0,_0x2d7727])))};const _0x5b3056=this['_headingOptions']['find'](_0x150a6d=>_0x150a6d['model']===_0x58cff2)['title'];return{'type':'format','content':o(_0x349f9e,'*Change\x20to:*\x20%0',_0x49d683(0x1,_0x5b3056))};}var _0x49d1f0,_0x2d7727;});}['_getHeadingLevel'](_0x4db929){const _0x4c4212=_0x4db929['match'](/^heading(\d+)/);if(_0x4c4212)return _0x4c4212[0x1];const _0x51bcd7=this['_headingOptions']?.['find'](_0x38e9a0=>_0x38e9a0['model']==_0x4db929);if(_0x51bcd7&&_0x51bcd7['view']){const _0x187a4a=_0x51bcd7['view'],_0x449c58=(_0x187a4a['name']??_0x187a4a)['match'](/^h(\d+)/);if(_0x449c58)return _0x449c58[0x1];}return null;}}class tt extends _0x43125c{['afterInit'](){const _0x9c6815=this['editor'];if(!_0x9c6815['plugins']['has']('HighlightEditing'))return;const _0x259fab=_0x9c6815['plugins']['get']('TrackChangesEditing'),_0x461e2b=_0x9c6815['locale'];_0x259fab['enableDefaultAttributesIntegration']('highlight'),_0x259fab['registerInlineAttribute']('highlight'),_0x259fab['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x461e2b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x471e49=this['editor'],_0x47875f=_0x471e49['locale'];_0x471e49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29ffd8=>{if('formatInline'!=_0x29ffd8['type'])return;const {data:_0x2b3aa3}=_0x29ffd8;if(_0x2b3aa3&&'highlight'==_0x2b3aa3['commandName']){const _0x4ed904=_0x47875f['t'],_0x41e9d1=_0x2b3aa3['commandParams'][0x0]['value'];if(_0x41e9d1){const _0x3aa6f4=_0x471e49['config']['get']('highlight.options')['find'](_0x47e0c0=>_0x47e0c0['model']==_0x41e9d1),_0x24ba4b=_0x4ed904(_0x3aa6f4['title'])['toLowerCase']();return{'type':'format','content':o(_0x47875f,'*Set\x20highlight:*\x20%0',_0x24ba4b),'color':{'value':_0x3aa6f4['color'],'title':_0x3aa6f4['title']}};}return{'type':'format','content':o(_0x47875f,'*Remove\x20highlight*',o(_0x47875f,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x43125c{['afterInit'](){const _0x509e94=this['editor'];if(!_0x509e94['plugins']['has']('HorizontalLineEditing'))return;_0x509e94['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x491d52=_0x509e94['plugins']['get']('TrackChangesEditing'),_0x140345=_0x509e94['locale'];_0x491d52['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4c5219=>o(_0x140345,'ELEMENT_HORIZONTAL_LINE',_0x4c5219)),_0x509e94['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x14e161,{writer:_0x134a87,options:_0x555f32})=>{if(!_0x555f32['showSuggestionHighlights'])return null;const _0x10163b=_0x134a87['createContainerElement']('div'),_0x32556c=_0x134a87['createEmptyElement']('hr');return _0x134a87['addClass']('ck-horizontal-line',_0x10163b),_0x134a87['insert'](_0x134a87['createPositionAt'](_0x10163b,0x0),_0x32556c),_0x10163b;},'converterPriority':'high'});}}class nt extends _0x43125c{['afterInit'](){const _0x1297c8=this['editor'];if(!_0x1297c8['plugins']['has']('HtmlEmbed'))return;const _0x4a6403=_0x1297c8['plugins']['get']('TrackChangesEditing'),_0x4cebbf=_0x1297c8['locale'];_0x4a6403['descriptionFactory']['registerElementLabel']('rawHtml',_0xc023af=>o(_0x4cebbf,'ELEMENT_HTML_EMBED',_0xc023af)),_0x4a6403['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4a6403['registerBlockAttribute']('value'),_0x4a6403['descriptionFactory']['registerDescriptionCallback'](_0x5a324f=>{if('attribute'!=_0x5a324f['type'])return;const {data:_0x1fc122}=_0x5a324f;if(_0x1fc122&&'value'==_0x1fc122['key']&&_0x5a324f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2ff347=o(_0x4cebbf,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4cebbf,'*Change\x20%0\x20content*',_0x2ff347)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe2720d=this['editor'],_0x52c212=_0xe2720d['locale'];_0xe2720d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29d4c0=>{if('formatBlock'!=_0x29d4c0['type'])return;const {data:_0x2a38c2}=_0x29d4c0;if(_0x2a38c2&&'htmlEmbed'==_0x2a38c2['commandName']){const _0x563617=o(_0x52c212,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x52c212,'*Change\x20%0\x20content*',_0x563617)};}});}}class et extends _0x43125c{['afterInit'](){const _0x3d5f1a=this['editor'];if(!_0x3d5f1a['plugins']['has']('ImageEditing'))return;const _0x2e40c2=_0x3d5f1a['plugins']['get']('TrackChangesEditing'),_0x3ccd49=_0x3d5f1a['plugins']['get']('ImageUtils'),_0x4ac95d=_0x3d5f1a['locale'];_0x2e40c2['enableCommand']('insertImage'),_0x2e40c2['descriptionFactory']['registerElementLabel']('imageBlock',_0x49c849=>o(_0x4ac95d,'ELEMENT_IMAGE',_0x49c849)),_0x2e40c2['descriptionFactory']['registerElementLabel']('imageInline',_0x2a98ab=>o(_0x4ac95d,'ELEMENT_INLINE_IMAGE',_0x2a98ab)),_0x2e40c2['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4ac95d,'ELEMENT_CAPTION')),_0x3d5f1a['plugins']['has']('ImageUploadEditing')&&_0x2e40c2['enableCommand']('uploadImage'),_0x3d5f1a['plugins']['has']('ImageBlockEditing')&&_0x3d5f1a['plugins']['has']('ImageInlineEditing')&&(_0x2e40c2['enableCommand']('imageTypeInline',(_0x20c7e0,_0x372c7e)=>{const _0x5d871a=_0x3ccd49['getClosestSelectedImageElement'](_0x3d5f1a['model']['document']['selection']);_0x3d5f1a['model']['change'](()=>{_0x2e40c2['markBlockFormat'](_0x5d871a,{'commandName':'imageTypeInline','commandParams':[_0x372c7e]},[],'convertBlockImageToInline');});}),_0x2e40c2['enableCommand']('imageTypeBlock',(_0xcb7423,_0x46cc9a)=>{_0x3d5f1a['model']['change'](_0x23fd68=>{let _0x2582b4=_0x3ccd49['getClosestSelectedImageElement'](_0x3d5f1a['model']['document']['selection']),_0x504479=_0x23fd68['createRangeOn'](_0x2582b4);const _0x1203ef=_0x238bdc['fromPosition'](_0x504479['start'],'toPrevious'),_0x32f190=_0x238bdc['fromPosition'](_0x504479['end'],'toNext');_0x2e40c2['forceDefaultExecution'](()=>_0xcb7423(_0x46cc9a)),_0x2582b4=_0x3ccd49['getClosestSelectedImageElement'](_0x3d5f1a['model']['document']['selection']),_0x504479=_0x23fd68['createRangeOn'](_0x2582b4);const _0x4a6f2e=_0x23fd68['createRange'](_0x1203ef,_0x32f190);_0x1203ef['detach'](),_0x32f190['detach'](),_0x2e40c2['markBlockFormat'](_0x2582b4,{'commandName':'imageTypeInline','commandParams':[_0x46cc9a]},[],'convertInlineImageToBlock'),_0x4a6f2e['start']['isBefore'](_0x504479['start'])&&_0x2e40c2['markInsertion'](_0x23fd68['createRange'](_0x4a6f2e['start'],_0x504479['start']),'convertInlineImageToBlock'),_0x504479['end']['isBefore'](_0x4a6f2e['end'])&&_0x2e40c2['markInsertion'](_0x23fd68['createRange'](_0x504479['end'],_0x4a6f2e['end']),'convertInlineImageToBlock');});}),_0x2e40c2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2e40c2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2e40c2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2e40c2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2e40c2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2e40c2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xbf7949])=>{const _0x2e7208=_0x2e40c2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1479f9=_0xbf7949['start'],_0x599388=_0xbf7949['end'];const _0x4fd51c=_0x3d5f1a['model']['schema']['getNearestSelectionRange'](_0x1479f9,'backward'),_0x1a2e43=_0x3d5f1a['model']['schema']['getNearestSelectionRange'](_0x599388,'forward');_0x4fd51c['isCollapsed']&&(_0x1479f9=_0x4fd51c['start']),_0x1a2e43['isCollapsed']&&(_0x599388=_0x1a2e43['end']),_0x2e7208([_0x3d5f1a['model']['createRange'](_0x1479f9,_0x599388)]);}),_0x2e40c2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x518ce2),_0x2e40c2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x518ce2)),_0x3d5f1a['plugins']['has']('ImageCaptionEditing')&&(_0x2e40c2['enableCommand']('toggleImageCaption',(_0x57428b,_0x4b7961)=>{const _0x14daf9=_0x3d5f1a['plugins']['get']('ImageCaptionUtils');let _0x24db85=_0x3ccd49['getClosestSelectedImageElement'](_0x3d5f1a['model']['document']['selection']),_0x590bc5=_0x14daf9['getCaptionFromImageModelElement'](_0x24db85);_0x3d5f1a['model']['change'](()=>{if(_0x590bc5)return void _0x2e40c2['markDeletion'](_0x3d5f1a['model']['createRangeOn'](_0x590bc5));const _0x295f8c=_0x3ccd49['isBlockImage'](_0x24db85);_0x57428b(_0x4b7961),_0x24db85=_0x3ccd49['getClosestSelectedImageElement'](_0x3d5f1a['model']['document']['selection']),_0x590bc5=_0x14daf9['getCaptionFromImageModelElement'](_0x24db85),_0x2e40c2['markInsertion'](_0x3d5f1a['model']['createRangeOn'](_0x590bc5),_0x295f8c?null:'imageCaption');});}),_0x2e40c2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x518ce2));const _0xf9571c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3192e4(_0x2672de,_0x1e0ad1){const _0x2f58ff=_0xf9571c['findIndex'](({type:_0x47114d,subType:_0x3b23a6})=>_0x2672de['type']==_0x47114d&&_0x2672de['subType']==_0x3b23a6),_0xde7861=_0xf9571c['findIndex'](({type:_0x5de715,subType:_0x5930b6})=>_0x1e0ad1['type']==_0x5de715&&_0x1e0ad1['subType']==_0x5930b6);if(_0x2f58ff<0x0||_0xde7861<0x0)return!0x1;const _0x5144ae=_0x2672de['getFirstRange'](),_0x5eac6a=_0x1e0ad1['getFirstRange']();if((0x0==_0x2f58ff||0x1==_0x2f58ff)&&0x2==_0xde7861&&_0x5144ae['isIntersecting'](_0x5eac6a))return!0x0;if(0x2==_0x2f58ff&&0x3==_0xde7861){const _0x3d48f6=_0x2e40c2['_findSuggestions'](_0x5144ae,'insertion')['filter'](({suggestion:_0x5b3f67,meta:_0x25264d})=>_0x25264d['isOwn']&&'convertInlineImageToBlock'==_0x5b3f67['subType']);if(_0x3d48f6['length']>0x1&&_0x5eac6a['end']['isEqual'](_0x5144ae['start']))return!0x0;if(0x1==_0x3d48f6['length']&&(_0x5144ae['start']['isEqual'](_0x5eac6a['end'])||_0x5144ae['end']['isEqual'](_0x5eac6a['start'])))return!0x0;}if(0x3==_0x2f58ff&&0x3==_0xde7861&&_0x5144ae['start']['isBefore'](_0x5eac6a['start'])){const _0x375fe5=_0x5144ae['end']['nodeAfter'],_0x210d27=_0x5eac6a['start']['nodeBefore'];return _0x3ccd49['isBlockImage'](_0x375fe5)&&_0x375fe5===_0x210d27;}return!0x1;}function _0x518ce2(_0x3afce8,_0x25a6df){return _0x3192e4(_0x3afce8,_0x25a6df)?[_0x3afce8,_0x25a6df]:_0x3192e4(_0x25a6df,_0x3afce8)?[_0x25a6df,_0x3afce8]:null;}_0x3d5f1a['plugins']['has']('ImageResize')&&(_0x2e40c2['enableDefaultAttributesIntegration']('resizeImage'),_0x2e40c2['registerBlockAttribute']('resizedWidth'),_0x2e40c2['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4ac95d,'FORMAT_IMAGE_SIZE'))),_0x3d5f1a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2e40c2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2e40c2['registerBlockAttribute']('alt')),_0x3d5f1a['plugins']['has']('PictureEditing')&&(_0x2e40c2['registerBlockAttribute']('sources'),_0x2e40c2['descriptionFactory']['registerDescriptionCallback'](_0x196807=>{if('attribute'!=_0x196807['type'])return;const {data:_0x51df6e}=_0x196807;return _0x51df6e&&'sources'==_0x51df6e['key']?{'type':'format','content':''}:void 0x0;})),_0x3d5f1a['plugins']['has']('ImageSizeAttributes')&&(_0x2e40c2['registerBlockAttribute']('width'),_0x2e40c2['registerBlockAttribute']('height'),_0x2e40c2['descriptionFactory']['registerDescriptionCallback'](_0x4f59dc=>{if('attribute'!=_0x4f59dc['type'])return;const {data:_0x55a528}=_0x4f59dc;return!_0x55a528||'width'!=_0x55a528['key']&&'height'!=_0x55a528['key']?void 0x0:{'type':'format','content':''};})),_0x2e40c2['descriptionFactory']['registerDescriptionCallback'](_0x490967=>{if(!!_0xf9571c['find'](({type:_0x4fe5a6,subType:_0xfcbec2})=>_0x490967['type']==_0x4fe5a6&&_0x490967['subType']==_0xfcbec2))return _0x490967['previous']?{}:void 0x0;}),_0x2e40c2['descriptionFactory']['registerDescriptionCallback'](_0x5f3f7c=>{if('insertion'==_0x5f3f7c['type']||'deletion'==_0x5f3f7c['type']){const _0x40f224=_0x5f3f7c['getContainedElement']();if(_0x40f224&&_0x40f224['is']('element','caption'))return{'type':'insertion'==_0x5f3f7c['type']?'addObject':'removeObject','element':_0x40f224,'quantity':0x1};}}),_0x2e40c2['descriptionFactory']['registerDescriptionCallback'](_0x33bdb5=>'formatBlock'==_0x33bdb5['type']&&'convertInlineImageToBlock'==_0x33bdb5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x33bdb5['type']&&'convertBlockImageToInline'==_0x33bdb5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2e40c2['descriptionFactory']['registerDescriptionCallback'](_0x379e6a=>{if('attribute'!=_0x379e6a['type'])return;const {data:_0x5bcdba}=_0x379e6a;if(!_0x5bcdba||'alt'!=_0x5bcdba['key'])return;const _0x3ea556=_0x5bcdba['newValue'];return _0x3ea556?{'type':'format','content':o(_0x4ac95d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3ea556+'\x22')}:{'type':'format','content':o(_0x4ac95d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xeaab25=this['editor'],_0x282bc2=_0xeaab25['locale'];_0xeaab25['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x211944=>{if('formatBlock'!=_0x211944['type']&&'formatInline'!=_0x211944['type'])return;const {data:_0x51d580}=_0x211944;if(_0x51d580){if('imageTextAlternative'==_0x51d580['commandName']){const _0x44178d=_0x51d580['commandParams'][0x0]['newValue'];return _0x44178d?{'type':'format','content':o(_0x282bc2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x44178d+'\x22')}:{'type':'format','content':o(_0x282bc2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x51d580['commandName']){const _0x1423a6=_0x51d580['commandParams'][0x0]['width'];return _0x1423a6?{'type':'format','content':o(_0x282bc2,'*Set\x20image\x20width:*\x20%0',_0x1423a6)}:{'type':'format','content':o(_0x282bc2,'*Reset\x20image\x20width*')};}}});}}class st extends _0x43125c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4ff8bc=this['editor']['locale'],_0x36f93b=this['editor']['plugins']['get']('TrackChangesEditing');_0x36f93b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x36f93b['registerBlockAttribute']('src'),_0x36f93b['descriptionFactory']['registerDescriptionCallback'](_0x41d59b=>{if('attribute'!=_0x41d59b['type'])return;const {data:_0x3e8e59}=_0x41d59b;return _0x3e8e59&&'src'==_0x3e8e59['key']?_0x3e8e59['newValue']&&_0x3e8e59['oldValue']?{'type':'format','content':o(_0x4ff8bc,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4a6a6f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a6a6f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4a6a6f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a6a6f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4a6a6f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f21eb=this['editor'],_0x6ce5e3=_0x1f21eb['locale'];_0x1f21eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x93b6c3=>{if('formatBlock'!=_0x93b6c3['type']&&'formatInline'!=_0x93b6c3['type'])return;const {data:_0x1efdb5}=_0x93b6c3;if(!_0x1efdb5||'replaceImageSource'!=_0x1efdb5['commandName'])return;return{'type':'format','content':o(_0x6ce5e3,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x43125c{['afterInit'](){const _0x475f6c=this['editor'];if(!_0x475f6c['plugins']['has']('ImageStyleEditing'))return;const _0x422e61=_0x475f6c['plugins']['get']('TrackChangesEditing'),_0x414085=_0x475f6c['plugins']['get']('ImageUtils'),_0x271e50={};_0x422e61['enableCommand']('imageStyle',(_0x34b270,_0x4e9fb6)=>{const _0x54fbb4=_0x475f6c['plugins']['get']('Users')['me'],_0x2d887c=_0x475f6c['commands']['get']('imageStyle');let _0x30c650=_0x414085['getClosestSelectedImageElement'](_0x475f6c['model']['document']['selection']),_0x659f2a=_0x475f6c['model']['createRangeOn'](_0x30c650),_0x1e6865=_0x2d887c['value'];if(_0x1e6865==_0x4e9fb6['value'])return;const _0x3dd588={'commandName':'imageStyle','commandParams':[_0x4e9fb6],'formatGroupId':_0x339e56()};_0x475f6c['model']['change'](()=>{if(_0x422e61['getSuggestions']()['filter'](_0xdec6b=>_0xdec6b['isInContent']&&_0x54fbb4==_0xdec6b['author']&&('formatBlock'==_0xdec6b['type']||'formatInline'==_0xdec6b['type'])&&('imageStylePreApply'==_0xdec6b['subType']||'imageStylePostApply'==_0xdec6b['subType'])&&_0xdec6b['getFirstRange']()['isEqual'](_0x659f2a))['forEach'](_0x22db24=>_0x422e61['discardSuggestion'](_0x22db24['head'])),_0x30c650=_0x414085['getClosestSelectedImageElement'](_0x475f6c['model']['document']['selection']),_0x659f2a=_0x475f6c['model']['createRangeOn'](_0x30c650),_0x2d887c['refresh'](),_0x475f6c['commands']['get']('imageTypeInline')['refresh'](),_0x475f6c['commands']['get']('imageTypeBlock')['refresh'](),_0x1e6865=_0x2d887c['value'],_0x1e6865!=_0x4e9fb6['value'])return _0x414085['isInlineImage'](_0x30c650)&&_0x2d887c['shouldConvertImageType'](_0x4e9fb6['value'],_0x30c650)?(_0x34b270({..._0x4e9fb6,'setImageSizes':!0x1}),_0x30c650=_0x414085['getClosestSelectedImageElement'](_0x475f6c['model']['document']['selection']),void _0x422e61['markBlockFormat'](_0x30c650,{..._0x3dd588,'commandReversedParams':[{'value':_0x1e6865||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x414085['isBlockImage'](_0x30c650)?_0x422e61['markBlockFormat'](_0x30c650,_0x3dd588,[],'imageStylePostApply'):_0x422e61['markInlineFormat'](_0x659f2a,_0x3dd588,'imageStylePostApply'));});});for(const _0x248969 of _0x475f6c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x271e50[_0x248969['name']]=_0x248969['title']['toLowerCase']();_0x422e61['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x422e61['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x422e61['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x422e61['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x419974])=>{_0x414085['setImageNaturalSizeAttributes'](_0x419974['getContainedElement']());}),_0x422e61['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x41e236,_0x15453b)=>{_0x422e61['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x41e236,{'commandName':_0x15453b['commandName'],'commandParams':_0x15453b['commandReversedParams']});}),_0x422e61['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2dd87c,_0x19b5d2){if(_0x5b2f35(_0x2dd87c,_0x19b5d2))return[_0x2dd87c,_0x19b5d2];if(_0x5b2f35(_0x19b5d2,_0x2dd87c))return[_0x19b5d2,_0x2dd87c];return null;});const _0x100377=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5b2f35(_0x3b1436,_0x55e1d2){const _0x5a28bb=_0x100377['findIndex'](({type:_0x290f63,subType:_0x2af138})=>_0x3b1436['type']==_0x290f63&&_0x3b1436['subType']==_0x2af138),_0x3941f9=_0x100377['findIndex'](({type:_0x2ff83d,subType:_0x48b658})=>_0x55e1d2['type']==_0x2ff83d&&_0x55e1d2['subType']==_0x48b658);if(_0x5a28bb<0x0||_0x3941f9<0x0)return!0x1;const _0x1790b3=_0x3b1436['getFirstRange'](),_0xcebb4b=_0x55e1d2['getFirstRange']();if((0x0==_0x5a28bb||0x1==_0x5a28bb)&&0x2==_0x3941f9&&_0x1790b3['isIntersecting'](_0xcebb4b))return!0x0;if(0x2==_0x5a28bb&&0x3==_0x3941f9){const _0x26ed87=_0x422e61['_findSuggestions'](_0x1790b3,'insertion')['filter'](({suggestion:_0x25ef01,meta:_0x552b0c})=>_0x552b0c['isOwn']&&'convertInlineImageToBlock'==_0x25ef01['subType']);if(_0x26ed87['length']>0x1&&_0xcebb4b['end']['isEqual'](_0x1790b3['start']))return!0x0;if(0x1==_0x26ed87['length']&&(_0x1790b3['start']['isEqual'](_0xcebb4b['end'])||_0x1790b3['end']['isEqual'](_0xcebb4b['start'])))return!0x0;}if(0x3==_0x5a28bb&&0x3==_0x3941f9&&_0x1790b3['start']['isBefore'](_0xcebb4b['start'])){const _0x43441c=_0x1790b3['end']['nodeAfter'],_0x5fa1f7=_0xcebb4b['start']['nodeBefore'];return _0x414085['isBlockImage'](_0x43441c)&&_0x43441c===_0x5fa1f7;}return!0x1;}_0x475f6c['model']['document']['registerPostFixer'](()=>{let _0x4a1e6c=!0x1;const _0x1971b1=Array['from'](_0x475f6c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x14c8d5,data:_0x21ab94}of _0x1971b1){const {group:_0x1a6116,type:_0x5ec4ed,subType:_0x537bd6,id:_0xda9248}=_0x422e61['_splitMarkerName'](_0x14c8d5);if('suggestion'==_0x1a6116&&_0x422e61['hasSuggestion'](_0xda9248)){if('formatBlock'==_0x5ec4ed&&('imageStylePreApply'==_0x537bd6||'imageStylePostApply'==_0x537bd6)){const _0x1a32b5=_0x422e61['getSuggestion'](_0xda9248);if(_0x21ab94['newRange']){const _0x396f8f=_0x1a32b5['getFirstRange']()['getContainedElement']();if(_0x414085['isBlockImage'](_0x396f8f))continue;_0x422e61['discardSuggestion'](_0x1a32b5),_0x4a1e6c=!0x0;}}if('insertion'==_0x5ec4ed&&'imageCaption'==_0x537bd6&&!_0x21ab94['newRange']){const _0x3ac841=_0x422e61['getSuggestion'](_0xda9248);_0x3ac841['next']&&_0x3ac841['next']['isInContent']&&(_0x422e61['discardSuggestion'](_0x3ac841['next']),_0x4a1e6c=!0x0);}}}return _0x4a1e6c;}),this['_registerLegacyDescription'](_0x271e50);}['_registerLegacyDescription'](_0x56bdbd){const _0x53b8e0=this['editor'],_0x420c31=_0x53b8e0['locale'];_0x53b8e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41cb00=>{if('formatBlock'!=_0x41cb00['type']&&'formatInline'!=_0x41cb00['type'])return;const {data:_0x1ccfe0}=_0x41cb00;if(!_0x1ccfe0||'imageStyle'!=_0x1ccfe0['commandName'])return;const _0x36a836=_0x1ccfe0['commandParams'][0x0]['value'];return _0x35ff48('side'===_0x36a836?o(_0x420c31,'FORMAT_SIDE_IMAGE'):_0x56bdbd[_0x36a836]||_0x36a836);function _0x35ff48(_0x47c99e){return{'type':'format','content':o(_0x420c31,'*Format:*\x20%0',_0x47c99e)};}});}}class rt extends _0x43125c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2510b5){super(_0x2510b5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x422297=this['editor'],_0x66202a=_0x422297['commands']['get']('importWord'),_0x1d790f=_0x422297['commands']['get']('trackChanges');_0x66202a&&(_0x66202a['on']('execute',(_0x179436,[,_0x2a50ce])=>{this['_trackChangesValueDuringImport']=_0x1d790f['value'],_0x2a50ce['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x66202a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x66202a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1d790f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x422297['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x23ac7f,_0x5151fe){const {suggestions:_0x43ec7e}=_0x5151fe,_0xee975d=this['editor']['commands']['get']('trackChanges'),_0x20d7ca=_0xee975d['value'];this['_trackChangesValueDuringImport']!==_0x20d7ca&&(_0xee975d['execute'](),this['_trackChangesExecuted']=!0x0),_0x43ec7e&&_0x43ec7e['forEach'](({id:_0x35e0ea,type:_0x45e896,author:_0x3fd93e,created_at:_0x4de844})=>{const _0x2b7ee2={'id':_0x35e0ea,'type':_0x45e896,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3fd93e,'createdAt':_0x4de844?new Date(_0x4de844):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2b7ee2);});}}class at extends _0x43125c{['afterInit'](){const _0x4cbc3e=this['editor'],_0x54bffd=_0x4cbc3e['plugins']['get']('TrackChangesEditing');if(_0x4cbc3e['plugins']['has']('IndentEditing')&&(_0x54bffd['enableCommand']('indent'),_0x54bffd['enableCommand']('outdent')),_0x4cbc3e['plugins']['has']('IndentBlock')){for(const _0x2cfe0d of['indentBlock','outdentBlock'])_0x54bffd['enableDefaultAttributesIntegration'](_0x2cfe0d);}const _0x344c03=_0x4cbc3e['locale'];_0x54bffd['registerBlockAttribute']('blockIndent'),_0x54bffd['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x344c03,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x517b13=this['editor'],_0x1caaad=_0x517b13['locale'],_0xe237e3=_0x517b13['plugins']['get']('TrackChangesEditing');_0xe237e3['descriptionFactory']['registerDescriptionCallback'](_0x586884=>{if('formatBlock'!=_0x586884['type'])return;const {data:_0x1aab6e}=_0x586884;if(!_0x1aab6e)return;if('indentBlock'!=_0x1aab6e['commandName']&&'outdentBlock'!=_0x1aab6e['commandName'])return;const _0x13c4ba=_0x586884['getItems']()[0x0],_0x5869a1=_0xe237e3['descriptionFactory']['getItemLabel'](_0x13c4ba);return'indentBlock'==_0x1aab6e['commandName']?{'type':'format','content':o(_0x1caaad,'*Indent:*\x20%0',_0x5869a1)}:'outdentBlock'==_0x1aab6e['commandName']?{'type':'format','content':o(_0x1caaad,'*Outdent:*\x20%0',_0x5869a1)}:void 0x0;});}}class ct extends _0x43125c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x43125c{['afterInit'](){const _0x34089e=this['editor'];if(!_0x34089e['plugins']['has']('LinkEditing'))return;const _0x3f220c=_0x34089e['plugins']['get']('TrackChangesEditing'),_0x3218de=_0x34089e['commands']['get']('link');_0x3f220c['enableDefaultAttributesIntegration']('link'),_0x3f220c['enableDefaultAttributesIntegration']('unlink'),_0x3f220c['registerInlineAttribute']('linkHref');for(const _0x49ef35 of _0x3218de['manualDecorators'])_0x3f220c['registerInlineAttribute'](_0x49ef35['id']),_0x3f220c['descriptionFactory']['registerAttributeLabel'](_0x49ef35['id'],'link\x20('+_0x49ef35['label']['toLowerCase']()+')');_0x3f220c['descriptionFactory']['registerDescriptionCallback'](_0x2a19ea=>{if('attribute'!=_0x2a19ea['type'])return;const {data:_0x4c25d9}=_0x2a19ea;if(!_0x4c25d9||'linkHref'!=_0x4c25d9['key'])return;const _0x3c6065=_0x4c25d9['newValue'],_0x2c383f=_0x34089e['locale'];return{'type':'format','content':null==_0x3c6065?o(_0x2c383f,'*Remove\x20link*'):o(_0x2c383f,'*Set\x20link:*\x20%0','\x22'+_0x3c6065+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49765c=this['editor'],_0x1122bd=_0x49765c['locale'];_0x49765c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c10f2=>{if('formatInline'!=_0x4c10f2['type'])return;const {data:_0x56ccc7}=_0x4c10f2;if(_0x56ccc7){if('link'==_0x56ccc7['commandName']){const _0xd1d482=_0x56ccc7['commandParams'][0x0];return{'type':'format','content':o(_0x1122bd,'*Set\x20link:*\x20%0','\x22'+_0xd1d482+'\x22')};}return'unlink'==_0x56ccc7['commandName']?{'type':'format','content':o(_0x1122bd,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x43125c{['afterInit'](){const _0x59f2b2=this['editor'],_0x1ede55=_0x59f2b2['locale'];if(!_0x59f2b2['plugins']['has']('LegacyListEditing'))return;const _0x46d1ab=_0x59f2b2['plugins']['get']('TrackChangesEditing'),_0x42a543=_0x59f2b2['plugins']['has']('LegacyTodoListEditing');function _0x3764a9(_0x317fb5){return()=>{const _0x16475b=_0x59f2b2['model']['document']['selection'],_0x5cb0a1=_0x59f2b2['commands']['get'](_0x317fb5);if(_0x5cb0a1['value'])return void _0x59f2b2['execute']('paragraph',{});const _0x1de8a8=_0x317fb5['slice'](0x0,-0x4),_0x12d0f0=function(_0x4d99ff,_0x23dd04,_0x2811d2){let _0x1c1812=Array['from'](_0x4d99ff)['filter'](_0x341244=>function(_0x3bd07c,_0x25622a){return _0x25622a['checkChild'](_0x3bd07c['parent'],'listItem')&&!_0x25622a['isObject'](_0x3bd07c);}(_0x341244,_0x2811d2));_0x1c1812=_0x1c1812['filter'](_0x387c7b=>!_0x387c7b['is']('element','listItem')||_0x387c7b['getAttribute']('listType')!=_0x23dd04);const _0x54f1ed=new Set();for(const _0x13f806 of _0x1c1812)_0x13f806['is']('element','listItem')?_0x54f1ed['add'](Le(_0x13f806)):_0x54f1ed['add'](_0x13f806);return Array['from'](_0x54f1ed);}(_0x16475b['getSelectedBlocks'](),_0x1de8a8,_0x59f2b2['model']['schema']);_0x59f2b2['model']['change'](()=>{for(const _0x7df16c of _0x12d0f0)_0x46d1ab['markBlockFormat'](_0x7df16c,{'commandName':_0x317fb5,'commandParams':[{'forceValue':!_0x5cb0a1['value']}],'formatGroupId':'blockName'},Ee(_0x7df16c));});};}function _0x52d91(_0x384c90){return()=>{const _0x2de3e6=function(_0x22b573){let _0x1e6a48=Array['from'](_0x22b573);const _0x316a88=_0x1e6a48['findIndex'](_0x11c241=>'listItem'!=_0x11c241['name']);return _0x316a88>-0x1&&(_0x1e6a48=_0x1e6a48['slice'](0x0,_0x316a88)),_0x1e6a48;}(_0x59f2b2['model']['document']['selection']['getSelectedBlocks']()),_0x14e114=_0x59f2b2['model']['createRange'](_0x59f2b2['model']['createPositionAt'](_0x2de3e6[0x0],'before'),_0x59f2b2['model']['createPositionAt'](_0x2de3e6[_0x2de3e6['length']-0x1],'end'));_0x59f2b2['model']['change'](()=>{_0x46d1ab['markBlockFormat'](_0x14e114,{'commandName':_0x384c90,'commandParams':[],'formatGroupId':'listIndent'},function(_0x344935){const _0x48f6ca=new Set();for(const _0x4157ab of _0x344935){let _0x4747b5=_0x4157ab['nextSibling'];for(;_0x4747b5&&_0x4747b5['getAttribute']('listIndent')>_0x4157ab['getAttribute']('listIndent');)_0x48f6ca['add'](_0x4747b5),_0x4747b5=_0x4747b5['nextSibling'];}return Array['from'](_0x48f6ca);}(_0x2de3e6));});};}_0x46d1ab['enableCommand']('numberedList',_0x3764a9('numberedList')),_0x46d1ab['enableCommand']('bulletedList',_0x3764a9('bulletedList')),_0x42a543&&_0x46d1ab['enableCommand']('todoList',_0x3764a9('todoList')),_0x46d1ab['enableCommand']('indentList',_0x52d91('indentList')),_0x46d1ab['enableCommand']('outdentList',_0x52d91('outdentList')),_0x42a543&&_0x46d1ab['enableCommand']('checkTodoList',()=>{const _0x2d58e2=_0x59f2b2['commands']['get']('checkTodoList'),_0x1fcce7=Array['from'](_0x2d58e2['_selectedElements']);_0x1fcce7['filter'](_0x417d9f=>_0x417d9f['getAttribute']('todoListChecked')!=_0x2d58e2['value']),_0x59f2b2['model']['change'](()=>{for(const _0x33d6d5 of _0x1fcce7)_0x46d1ab['markBlockFormat'](_0x33d6d5,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2d58e2['value']}]});});}),_0x46d1ab['descriptionFactory']['registerElementLabel']('listItem',_0x182586=>o(_0x1ede55,'ELEMENT_LIST_ITEM',_0x182586)),_0x46d1ab['descriptionFactory']['registerDescriptionCallback'](_0x15c96b=>{if('formatBlock'!=_0x15c96b['type']&&'formatInline'!=_0x15c96b['type'])return;const {data:_0x485fd9}=_0x15c96b;if(_0x485fd9){if('numberedList'==_0x485fd9['commandName']||'bulletedList'==_0x485fd9['commandName']||'todoList'==_0x485fd9['commandName'])switch(_0x485fd9['commandName']['replace']('List','')){case'bulleted':return _0x2eedec(o(_0x1ede55,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2eedec(o(_0x1ede55,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2eedec(o(_0x1ede55,'ELEMENT_TODO_LIST'));}if('indentList'==_0x485fd9['commandName'])return{'type':'format','content':o(_0x1ede55,'*Indent:*\x20%0',o(_0x1ede55,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x485fd9['commandName'])return{'type':'format','content':o(_0x1ede55,'*Outdent:*\x20%0',o(_0x1ede55,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x485fd9['commandName'])return _0x485fd9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ede55,'*Check\x20item*')}:{'type':'format','content':o(_0x1ede55,'*Uncheck\x20item*')};}function _0x2eedec(_0x76749f){return{'type':'format','content':o(_0x1ede55,'*Change\x20to:*\x20%0',_0x76749f)};}});}}function Le(_0x532d54){const _0x308064=_0x532d54['getAttribute']('listIndent');if(0x0==_0x308064)return _0x532d54;let _0x4de09c=_0x532d54;for(;_0x532d54['previousSibling']&&_0x532d54['previousSibling']['is']('element','listItem');){const _0x2a64f3=_0x532d54['previousSibling']['getAttribute']('listIndent');if(_0x2a64f3==_0x308064)_0x4de09c=_0x532d54['previousSibling'];else{if(_0x2a64f3<_0x308064)break;}_0x532d54=_0x532d54['previousSibling'];}return _0x4de09c;}function Ee(_0x406e5c){const _0x3d3901=[];if(_0x406e5c['is']('element','listItem')&&_0x406e5c['getAttribute']('listIndent')>0x0){let _0x3d953d=_0x406e5c['nextSibling'];for(;_0x3d953d&&'listItem'==_0x3d953d['name']&&_0x3d953d['getAttribute']('listIndent')==_0x406e5c['getAttribute']('listIndent');)_0x3d3901['push'](_0x3d953d),_0x3d953d=_0x3d953d['nextSibling'];}return _0x3d3901;}class ht extends _0x43125c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x542469=this['editor']['config']['get']('list.properties'),_0x5effd2=this['editor']['plugins']['get']('TrackChangesEditing');_0x542469['styles']&&_0x5effd2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x542469['reversed']&&_0x5effd2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x542469['startIndex']&&_0x5effd2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5effd2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3baa08,_0x2b298a={}){const _0x2f88ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb79d5f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2f88ce['markMultiRangeBlockFormat'](_0xb79d5f,{'commandName':'listStyle','commandParams':[{'type':_0x2b298a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x211913,_0x4f038b={}){const _0x2d5ad4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8b3068=this['_getSuggestionBlocks'](_0x4f6952=>_0x4f6952['is']('element','listItem')&&'numbered'===_0x4f6952['getAttribute']('listType'));if(_0x8b3068['length']<0x1)return;const _0x51175f=_0x8b3068['map'](_0x26c8cf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x26c8cf,'before'),this['editor']['model']['createPositionAt'](_0x26c8cf,0x0)));this['editor']['model']['change'](()=>{_0x2d5ad4['markMultiRangeBlockFormat'](_0x51175f,{'commandName':'listReversed','commandParams':[{'reversed':_0x4f038b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3b0d65,_0x13b4f8={}){const _0x3082cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f213f=this['_getSuggestionBlocks'](_0x5a1773=>_0x5a1773['is']('element','listItem')&&'numbered'===_0x5a1773['getAttribute']('listType'));if(_0x1f213f['length']<0x1)return;const _0x5f5657=_0x1f213f['map'](_0xa34f81=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xa34f81,'before'),this['editor']['model']['createPositionAt'](_0xa34f81,0x0)));this['editor']['model']['change'](()=>{_0x3082cd['markMultiRangeBlockFormat'](_0x5f5657,{'commandName':'listStart','commandParams':[{'startIndex':_0x13b4f8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xceb1da){if('formatBlock'!=_0xceb1da['type']&&'formatInline'!=_0xceb1da['type'])return;const _0x3f4886=this['editor']['locale'],{data:_0x433866}=_0xceb1da;if(!_0x433866)return;let _0xe5645d,_0x5eae6b;switch(_0x433866['commandName']){case'listStyle':_0xe5645d='*Change\x20to:*\x20%0',_0x5eae6b={'type':'format','content':o(_0x3f4886,_0xe5645d,o(_0x3f4886,this['_getTranslationKeyForListStyle'](_0x433866['commandParams'][0x0]['type'])))};break;case'listReversed':_0xe5645d=_0x433866['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5eae6b={'type':'format','content':o(_0x3f4886,_0xe5645d)};break;case'listStart':_0xe5645d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5eae6b={'type':'format','content':o(_0x3f4886,_0xe5645d,_0x433866['commandParams'][0x0]['startIndex'])};}return _0x5eae6b;}['_getSuggestionBlocksForListStyle'](){const _0x2dd9ec=this['editor']['plugins']['get']('LegacyListUtils');let _0x5d734a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5d734a[0x0]?.['is']('element','listItem')&&_0x5d734a['unshift'](..._0x2dd9ec['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5d734a[_0x5d734a['length']-0x1]?.['is']('element','listItem')&&_0x5d734a['push'](..._0x2dd9ec['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5d734a=[...new Set(_0x5d734a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5d734a=_0x5d734a['filter'](_0x3fd14=>_0x3fd14['is']('element','listItem'))),_0x5d734a;}['_getSuggestionBlocks'](_0x3a03a9){const _0x3b69ab=this['editor']['plugins']['get']('LegacyListUtils');let _0xfa6af0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3a03a9)['map'](_0x4f32e1=>{const _0x117009=this['editor']['model']['createPositionAt'](_0x4f32e1,0x0);return[..._0x3b69ab['getSiblingNodes'](_0x117009,'backward'),..._0x3b69ab['getSiblingNodes'](_0x117009,'forward')];})['flat']();return _0xfa6af0=[...new Set(_0xfa6af0)],_0xfa6af0;}['_getTranslationKeyForListStyle'](_0x32a50d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x32a50d)||'default')['toUpperCase']()+'_LIST_'+_0x32a50d['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x43125c{['afterInit'](){const _0x24c2b7=this['editor'];if(!_0x24c2b7['plugins']['has']('MediaEmbedEditing'))return;const _0x2d2053=_0x24c2b7['plugins']['get']('TrackChangesEditing'),_0x357eb1=_0x24c2b7['locale'];_0x2d2053['enableCommand']('mediaEmbed'),_0x2d2053['descriptionFactory']['registerElementLabel']('media',_0x1adfc4=>o(_0x357eb1,'ELEMENT_MEDIA',_0x1adfc4)),_0x24c2b7['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x183b32,{writer:_0x3fca3e,options:_0x53f947})=>{if(_0x53f947['showSuggestionHighlights'])return _0x3fca3e['createEmptyElement']('div');},'converterPriority':'high'}),_0x24c2b7['data']['downcastDispatcher']['on']('attribute:url:media',(_0x223cd1,_0x26d0c5,_0x12bf59)=>{_0x12bf59['options']['showSuggestionHighlights']&&_0x223cd1['stop']();},{'priority':'high'});}}class lt extends _0x43125c{['afterInit'](){const _0xb5d6a3=this['editor'];_0xb5d6a3['plugins']['has']('MentionEditing')&&_0xb5d6a3['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x43125c{['afterInit'](){const _0x382adc=this['editor'];if(!_0x382adc['plugins']['has']('MergeFieldsEditing'))return;const _0x3441fe=_0x382adc['plugins']['get']('TrackChangesEditing'),_0x1cb79a=_0x382adc['locale'];_0x3441fe['enableCommand']('insertMergeField'),_0x3441fe['enableCommand']('insertMergeFieldBlock'),_0x3441fe['enableCommand']('insertMergeFieldImage'),_0x3441fe['descriptionFactory']['registerElementLabel']('mergeField',_0x3ff4c7=>o(_0x1cb79a,'ELEMENT_MERGE_FIELD',_0x3ff4c7)),_0x3441fe['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x730b2=>o(_0x1cb79a,'ELEMENT_MERGE_FIELD',_0x730b2)),_0x3441fe['descriptionFactory']['registerDescriptionCallback'](_0x512220=>{if('insertion'!=_0x512220['type']&&'deletion'!=_0x512220['type'])return;const _0x3540dc=_0x512220['getContainedElement']();if(null==_0x3540dc)return;const _0x368607=_0x382adc['plugins']['get']('MergeFieldsEditing');let _0x164da5;switch(_0x368607['getMergeFieldType'](_0x3540dc)){case null:return;case'image':{const _0x352372=_0x368607['unwrapAffixes'](_0x3540dc['getAttribute']('src'));_0x164da5=_0x368607['getLabel'](_0x352372)||_0x352372;break;}default:{const _0x39f2e4=_0x3540dc['getAttribute']('id');_0x164da5=_0x368607['getLabel'](_0x39f2e4)||_0x39f2e4;break;}}return'insertion'==_0x512220['type']?{'type':'insertion','content':o(_0x1cb79a,'*Insert:*\x20%0','\x22'+_0x164da5+'\x22\x20'+o(_0x1cb79a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1cb79a,'*Remove:*\x20%0','\x22'+_0x164da5+'\x22\x20'+o(_0x1cb79a,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x43125c{['afterInit'](){const _0x298267=this['editor'],_0x57fa78=_0x298267['plugins']['get']('TrackChangesEditing');_0x298267['plugins']['has']('MultiLevelList')&&(_0x57fa78['enableDefaultAttributesIntegration']('multiLevelList'),_0x57fa78['registerBlockAttribute']('listMarkerStyle'),_0x57fa78['descriptionFactory']['registerDescriptionCallback'](_0x2bbaa3=>this['handleDescriptions'](_0x2bbaa3)));}['handleDescriptions'](_0x4fc4ac){const _0x351f80=this['editor']['locale'],{data:_0x84eced}=_0x4fc4ac,_0x2772e6={'type':'format','content':''};if(_0x84eced&&'listMarkerStyle'==_0x84eced['key']){if(!_0x84eced['oldValue'])return{'type':'format','content':o(_0x351f80,'*Set\x20format:*\x20%0',o(_0x351f80,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x84eced['newValue']+')'};if(!_0x84eced['newValue']){let _0x3b5346=_0x4fc4ac['head'];for(;_0x3b5346;){if(_0x3b5346['data']&&'listType'==_0x3b5346['data']['key']&&_0x3b5346['data']['newValue'])return _0x2772e6;_0x3b5346=_0x3b5346['next'];}return{'type':'format','content':o(_0x351f80,'*Remove\x20format:*\x20%0',o(_0x351f80,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x84eced['oldValue']+')'};}}}}class pt extends _0x43125c{['afterInit'](){const _0x504200=this['editor'];if(!_0x504200['plugins']['has']('PageBreakEditing'))return;_0x504200['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x79f18=_0x504200['plugins']['get']('TrackChangesEditing'),_0x1d6f75=_0x504200['locale'];_0x79f18['descriptionFactory']['registerElementLabel']('pageBreak',_0x4f55bf=>o(_0x1d6f75,'ELEMENT_PAGE_BREAK',_0x4f55bf));}}class kt extends _0x43125c{['afterInit'](){const _0x4abf44=this['editor'];if(!_0x4abf44['plugins']['has']('Paragraph'))return;const _0x23a7c6=_0x4abf44['locale'],_0x24f3ad=_0x4abf44['plugins']['get']('TrackChangesEditing');_0x24f3ad['descriptionFactory']['registerElementLabel']('paragraph',_0x2e89a5=>o(_0x23a7c6,'ELEMENT_PARAGRAPH',_0x2e89a5)),_0x24f3ad['enableDefaultAttributesIntegration']('paragraph'),_0x24f3ad['enableCommand']('insertParagraph'),_0x4abf44['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4abf44),{'priority':'highest'}),_0x4abf44['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x312911,_0x21db6d,_0x5e0864)=>{_0x5e0864['options']['showSuggestionHighlights']&&nr(_0x4abf44,{'showActiveMarker':!0x1})(_0x312911,_0x21db6d,_0x5e0864);},{'priority':'highest'});const _0x1fd982=_0x24f3ad['descriptionFactory'];_0x1fd982['registerDescriptionCallback'](_0x57f49a=>{if('insertion'!==_0x57f49a['type'])return;const {start:_0x38c801,end:_0x6bad4d}=_0x57f49a['getFirstRange']();if(!_0x38c801['isTouching'](_0x6bad4d)||!_0x38c801['nodeAfter'])return;const _0x2e8bf2=_0x4abf44['model']['schema'],_0x4b8aba=_0x38c801['nodeAfter'];return _0x2e8bf2['isBlock'](_0x4b8aba)&&!_0x2e8bf2['isLimit'](_0x4b8aba)&&_0x2e8bf2['checkChild'](_0x4b8aba,'$text')?{'type':'insertion','content':o(_0x23a7c6,'*Insert:*\x20%0',_0x1fd982['getItemLabel'](_0x4b8aba,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40a362=this['editor'],_0x30c28f=_0x40a362['locale'];_0x40a362['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32339c=>{if('formatBlock'!=_0x32339c['type'])return;const {data:_0x45c957}=_0x32339c;return _0x45c957&&'paragraph'==_0x45c957['commandName']?{'type':'format','content':o(_0x30c28f,'*Change\x20to:*\x20%0',o(_0x30c28f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4b82ca,{showActiveMarker:_0x19eac0=!0x0}={}){return(_0x10ba0a,_0x382220,_0xf2d79c)=>{const _0x9fde1b=_0x4b82ca['plugins']['get']('TrackChangesEditing'),_0x46bd94=_0x382220['markerRange']['start'],_0x1db256=_0x382220['markerRange']['end'],_0x93c4b7=_0x4b82ca['model']['schema'];if(!_0x46bd94['isTouching'](_0x1db256)||!_0x46bd94['nodeAfter'])return;const _0x5e6e58=_0x46bd94['nodeAfter'];if(_0x93c4b7['isBlock'](_0x5e6e58)&&!_0x93c4b7['isLimit'](_0x5e6e58)&&_0x93c4b7['checkChild'](_0x5e6e58,'$text')){if(!_0xf2d79c['consumable']['consume'](_0x382220['markerRange'],_0x10ba0a['name']))return;const {id:_0x6569e5,authorId:_0x4a4a0f}=_0x9fde1b['_splitMarkerName'](_0x382220['markerName']),_0x211589=_0xf2d79c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x6569e5,'data-author-id':_0x4a4a0f}),_0x50d533=_0xf2d79c['mapper']['toViewPosition'](_0x1db256);_0x19eac0&&_0x9fde1b['activeMarkers']['includes'](_0x382220['markerName'])&&_0xf2d79c['writer']['addClass']('ck-suggestion-marker--active',_0x211589),_0xf2d79c['writer']['insert'](_0x50d533,_0x211589),_0xf2d79c['mapper']['bindElementToMarker'](_0x211589,_0x382220['markerName']);}};}class wt extends _0x43125c{['afterInit'](){const _0x3f1af1=this['editor'];_0x3f1af1['commands']['get']('replaceSource')&&_0x3f1af1['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x43125c{['afterInit'](){const _0x5e6cd4=this['editor'];if(!_0x5e6cd4['plugins']['has']('RemoveFormatEditing'))return;_0x5e6cd4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b4923=this['editor'];_0x1b4923['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2683a6=>{if('formatBlock'!=_0x2683a6['type']&&'formatInline'!=_0x2683a6['type'])return;const {data:_0x3260b1}=_0x2683a6;return _0x3260b1&&'removeFormat'==_0x3260b1['commandName']?{'type':'format','content':o(_0x1b4923['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x43125c{['afterInit'](){const _0x2ada27=this['editor'];if(!_0x2ada27['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4472ab=_0x2ada27['plugins']['get']('TrackChangesEditing');_0x4472ab['enableCommand']('goToPreviousRestrictedEditingException'),_0x4472ab['enableCommand']('goToNextRestrictedEditingException');const _0x4ad987=_0x2ada27['plugins']['get']('RestrictedEditingModeEditing');_0x4ad987['enableCommand']('trackChanges'),_0x4ad987['enableCommand']('acceptSuggestion'),_0x4ad987['enableCommand']('discardSuggestion'),_0x4ad987['enableCommand']('acceptAllSuggestions'),_0x4ad987['enableCommand']('discardAllSuggestions'),_0x4ad987['enableCommand']('acceptSelectedSuggestions'),_0x4ad987['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x43125c{['afterInit'](){const _0x34e670=this['editor'];if(!_0x34e670['plugins']['has']('ShiftEnter'))return;const _0x533f03=_0x34e670['plugins']['get']('TrackChangesEditing');_0x533f03['enableCommand']('shiftEnter'),_0x34e670['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x34e670),{'priority':'high'}),_0x34e670['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x34e670),{'priority':'high'}),_0x34e670['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5c635e,_0x4a59ee,_0x57f239)=>{_0x57f239['options']['showSuggestionHighlights']&&je(_0x34e670,{'showActiveMarker':!0x1})(_0x5c635e,_0x4a59ee,_0x57f239);}),_0x533f03['descriptionFactory']['registerElementLabel']('softBreak',_0x6a62ba=>o(_0x34e670['locale'],'ELEMENT_LINE_BREAK',_0x6a62ba));}}function je(_0x559cb5,{showActiveMarker:_0xf9dce0=!0x0}={}){return(_0x52dd57,_0x2d6a6d,_0x2fd191)=>{const _0xd38059=_0x559cb5['plugins']['get']('TrackChangesEditing');if(!_0x2fd191['consumable']['test'](_0x2d6a6d['markerRange'],_0x52dd57['name']))return;const _0x40eaa3=_0x559cb5['model'];for(const _0x2f1257 of _0x2d6a6d['markerRange']['getItems']()){if(!_0x2f1257['is']('element','softBreak'))continue;const _0x5b767c='deletion'==_0x2d6a6d['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2903f3,authorId:_0x1cb57a}=_0xd38059['_splitMarkerName'](_0x2d6a6d['markerName']),_0x474a14=_0x2fd191['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b767c,'data-suggestion':_0x2903f3,'data-author-id':_0x1cb57a}),_0x34782f=_0x2fd191['mapper']['toViewPosition'](_0x40eaa3['createPositionBefore'](_0x2f1257));_0xf9dce0&&_0xd38059['activeMarkers']['includes'](_0x2d6a6d['markerName'])&&_0x2fd191['writer']['addClass']('ck-suggestion-marker--active',_0x474a14),_0x2fd191['writer']['insert'](_0x34782f,_0x474a14),_0x2fd191['mapper']['bindElementToMarker'](_0x474a14,_0x2d6a6d['markerName']);}};}class St extends _0x43125c{['afterInit'](){const _0x1253a0=this['editor'],_0x6635ae=_0x1253a0['model'],_0x3f5a90=_0x1253a0['locale'];if(!_0x1253a0['plugins']['has']('StandardEditingModeEditing'))return;const _0x3fdb17=_0x1253a0['plugins']['get']('TrackChangesEditing'),_0x354327='restrictedEditingException',_0x5ce4d2=_0x1253a0['commands']['get'](_0x354327);_0x3fdb17['enableCommand'](_0x354327,(_0xd72c10,_0x1561a7={})=>{const _0x125fb5=_0x6635ae['document']['selection'];if(_0x125fb5['isCollapsed'])return void _0xd72c10(_0x1561a7);const _0x51e184=void 0x0!==_0x1561a7['forceValue']?_0x1561a7['forceValue']:!_0x5ce4d2['value'];_0x6635ae['change'](()=>{const _0x1a3f1a=Array['from'](_0x125fb5['getRanges']());for(const _0x49abcb of _0x1a3f1a){const _0x5d9a28=_0x51e184?[_0x49abcb]:io(_0x354327,_0x49abcb,_0x6635ae);for(const _0x6bfdc1 of _0x5d9a28)_0x3fdb17['markInlineFormat'](_0x6bfdc1,{'commandName':_0x354327,'commandParams':[{'forceValue':_0x51e184}]});}});}),_0x3fdb17['descriptionFactory']['registerDescriptionCallback'](_0x513463=>{if('formatBlock'!=_0x513463['type']&&'formatInline'!=_0x513463['type'])return;const {data:_0x436c2d}=_0x513463;return _0x436c2d&&_0x436c2d['commandName']==_0x354327?_0x436c2d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3f5a90,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3f5a90,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x43125c{['afterInit'](){const _0x59439e=this['editor'];if(!_0x59439e['plugins']['has']('Style')||!_0x59439e['plugins']['has']('DataSchema'))return;const _0x17bb21=_0x59439e['plugins']['get']('TrackChangesEditing'),_0x1a634b=_0x59439e['locale'],_0x4aaf67=_0x59439e['config']['get']('style')||{},_0x417278=_0x59439e['plugins']['get']('GeneralHtmlSupport'),_0x5bed77=_0x59439e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x59439e['plugins']['get']('DataSchema'),_0x4aaf67['definitions']);_0x17bb21['enableDefaultAttributesIntegration']('style');const _0x4b5641=new Set();for(const _0xeecd20 of _0x5bed77['block']){const _0x51e6db=_0x417278['getGhsAttributeNameForElement'](_0xeecd20['element']);_0x4b5641['add'](_0x51e6db);}const _0x4a8347=new Set();for(const _0xdcccf1 of _0x5bed77['inline']){const _0x8cf3c7=_0x417278['getGhsAttributeNameForElement'](_0xdcccf1['element']);_0x4a8347['add'](_0x8cf3c7);for(const _0x562efb of _0xdcccf1['ghsAttributes'])_0x4a8347['add'](_0x562efb);}for(const _0x54441b of _0x4b5641)_0x17bb21['registerBlockAttribute'](_0x54441b),_0x17bb21['descriptionFactory']['registerAttributeLabel'](_0x54441b,o(_0x1a634b,'FORMAT_STYLE'));for(const _0x3ae187 of _0x4a8347)_0x17bb21['registerInlineAttribute'](_0x3ae187),_0x17bb21['descriptionFactory']['registerAttributeLabel'](_0x3ae187,o(_0x1a634b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b7704=this['editor'],_0x4d2e41=_0x3b7704['locale'];_0x3b7704['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc57910=>{if('formatBlock'!=_0xc57910['type']&&'formatInline'!=_0xc57910['type'])return;const {data:_0x4c77dd}=_0xc57910;return _0x4c77dd&&'style'===_0x4c77dd['commandName']?_0x4c77dd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d2e41,'*Set\x20format:*\x20%0',_0x4c77dd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4d2e41,'*Remove\x20format:*\x20%0',_0x4c77dd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x43125c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x456f6d){super(_0x456f6d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x428b79=this['editor'],_0x159604=_0x428b79['model']['document']['selection'];if(!_0x428b79['plugins']['has']('TableEditing'))return;const _0x596384=_0x428b79['locale'],_0x2f389e=_0x428b79['plugins']['get']('TrackChangesEditing'),_0x33023f=_0x428b79['plugins']['get']('TableUtils');_0x2f389e['descriptionFactory']['registerElementLabel']('table',_0x103f31=>o(_0x596384,'ELEMENT_TABLE',_0x103f31)),this['_setupColumnsRowsFixing'](),_0x2f389e['enableCommand']('insertTable'),_0x2f389e['enableCommand']('selectTableRow'),_0x2f389e['enableCommand']('selectTableColumn');for(const _0x1e658e of['insertTableRowAbove','insertTableRowBelow']){const _0x2fc922=_0x428b79['commands']['get'](_0x1e658e);_0x2f389e['enableCommand'](_0x1e658e,_0x16ba1f=>{_0x428b79['model']['change'](_0x363315=>{_0x16ba1f();const _0x4d1b8c='above'===_0x2fc922['order'],_0x435866=_0x33023f['getSelectionAffectedTableCells'](_0x159604),_0xa89012=_0x33023f['getRowIndexes'](_0x435866),_0x257d8e=_0x4d1b8c?_0xa89012['first']-0x1:_0xa89012['last']+0x1,_0x1562ea=_0x435866[0x0]['findAncestor']('table'),_0x488037=_0x33023f['createTableWalker'](_0x1562ea,{'startRow':_0x257d8e,'endRow':_0x257d8e}),_0x10aff3=Array['from'](_0x488037)['map'](_0x128542=>_0x363315['createRangeOn'](_0x128542['cell']));_0x2f389e['markMultiRangeInsertion'](_0x10aff3,'tableRow');});});}for(const _0x4c7497 of['insertTableColumnLeft','insertTableColumnRight']){const _0x525457=_0x428b79['commands']['get'](_0x4c7497);_0x2f389e['enableCommand'](_0x4c7497,_0x144415=>{_0x428b79['model']['change'](_0xb8a883=>{_0x144415();const _0x47938c='left'===_0x525457['order'],_0x2884f6=_0x33023f['getSelectionAffectedTableCells'](_0x159604),_0x359646=_0x33023f['getColumnIndexes'](_0x2884f6),_0x3a7402=_0x47938c?_0x359646['first']-0x1:_0x359646['last']+0x1,_0x304841=_0x2884f6[0x0]['findAncestor']('table'),_0x41f493=_0x33023f['createTableWalker'](_0x304841,{'startRow':0x0,'column':_0x3a7402,'includeAllSlots':!0x1}),_0x219f1a=Array['from'](_0x41f493)['map'](_0x131189=>_0xb8a883['createRangeOn'](_0x131189['cell']));_0x2f389e['markMultiRangeInsertion'](_0x219f1a,'tableColumn');});});}for(const _0x48e989 of['removeTableRow','removeTableColumn']){const _0xc05a0b=_0x48e989['substr'](0xb),_0x119888=_0xc05a0b['toLowerCase'](),_0x37b417=_0x119888['substr'](0x0,0x3)+'span',_0x3dfdee='table'+_0xc05a0b,_0x27c13c='min'+_0xc05a0b,_0x1e3688='max'+_0xc05a0b;_0x2f389e['enableCommand'](_0x48e989,()=>{_0x428b79['model']['change'](_0x32fd96=>{const _0x4cccce=_0x33023f['getSelectionAffectedTableCells'](_0x159604),_0x9189bd=_0x4cccce[0x0]['findAncestor']('table');let _0x5370ca;if('removeTableRow'==_0x48e989){const _0x16615a=_0x33023f['getRowIndexes'](_0x4cccce);_0x5370ca={'startRow':_0x16615a['first'],'endRow':_0x16615a['last'],'includeAllSlots':!0x0};}else{const _0x2d3c1a=_0x33023f['getColumnIndexes'](_0x4cccce);_0x5370ca={'startColumn':_0x2d3c1a['first'],'endColumn':_0x2d3c1a['last'],'includeAllSlots':!0x0};}const _0x401da2=_0x33023f['createTableWalker'](_0x9189bd,_0x5370ca),_0x5b37eb=Array['from'](_0x401da2)['map'](({cell:_0x989869})=>_0x989869),_0x48fffa=Ne(_0x5b37eb['filter'](_0x59892c=>_0x59892c['hasAttribute'](_0x37b417))),_0x26fe6c=Ne(_0x5b37eb['filter'](_0x422071=>!_0x422071['hasAttribute'](_0x37b417)))['map'](_0x51c040=>_0x32fd96['createRangeOn'](_0x51c040)),_0x2d65d8=_0x2f389e['markMultiRangeDeletion'](_0x26fe6c,_0x3dfdee);if(_0x2d65d8&&('tableRow'==_0x2d65d8['subType']||'tableColumn'==_0x2d65d8['subType'])){const _0x5898c0=this['_getSuggestionCoords'](_0x2d65d8);for(const _0x404637 of _0x48fffa){const _0x296d70=_0x32fd96['createRangeOn'](_0x404637),_0x5db8b4=_0x33023f['getCellLocation'](_0x404637),_0x20bdc0=_0x404637['getAttribute'](_0x37b417)-0x1,_0x47549b=_0x5898c0[_0x27c13c],_0x2300b0=_0x5898c0[_0x1e3688];_0x47549b<=_0x5db8b4[_0x119888]&&_0x5db8b4[_0x119888]+_0x20bdc0<=_0x2300b0&&_0x2d65d8['addRange'](_0x296d70);}}});});}function _0x57954f(_0x34c1e9){const _0x5f019f=Array['from'](_0x159604['getRanges']())['map'](_0x7c2625=>_0x41eab8['fromRange'](_0x7c2625));_0x428b79['model']['change'](_0x6c5201=>{const _0x5df67c=_0x6c5201['batch'];_0x34c1e9=_0x34c1e9['filter'](_0x35bc22=>'$graveyard'!=_0x35bc22['root']['rootName']),_0x6c5201['setSelection'](_0x34c1e9),_0x428b79['commands']['get']('removeTableRow')['refresh'](),_0x428b79['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x428b79['model']['enqueueChange'](()=>{_0x428b79['model']['enqueueChange'](_0x5df67c,_0x4761c2=>{const _0x210807=_0x5f019f['filter'](_0x2ce998=>'$graveyard'!=_0x2ce998['root']['rootName']);_0x210807['length']>0x0&&_0x4761c2['setSelection'](_0x210807);for(const _0x978bf3 of _0x5f019f)_0x978bf3['detach']();});});});}function _0x3f72b6(_0x3d0730){_0x428b79['model']['change'](_0x2a9e37=>{const _0x5e0f83=Array['from'](_0x159604['getRanges']())['map'](_0xff8074=>_0x41eab8['fromRange'](_0xff8074)),_0x3691de=[];for(const _0x344b4d of _0x3d0730)for(const _0x3fc540 of _0x344b4d['getItems']({'shallow':!0x0}))_0x3691de['push'](_0x3fc540);for(const _0x252096 of _0x3691de)'$graveyard'!=_0x252096['root']['rootName']&&(_0x2a9e37['setSelection'](_0x2a9e37['createPositionAt'](_0x252096,0x0)),_0x428b79['commands']['get']('removeTableColumn')['refresh'](),_0x428b79['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x59b75e=_0x5e0f83['filter'](_0x2f75cb=>'$graveyard'!=_0x2f75cb['root']['rootName']);_0x59b75e['length']>0x0&&_0x2a9e37['setSelection'](_0x59b75e);for(const _0x29f246 of _0x5e0f83)_0x29f246['detach']();});}function _0x227a51(_0x2b13b9,_0x2fb06c){return _0x2fb06c['every'](_0x332f36=>_0x2b13b9['some'](_0xe2510f=>_0xe2510f['end']['isEqual'](_0x332f36['start'])||_0x332f36['end']['isEqual'](_0xe2510f['start'])));}function _0x19372a(_0xb63a95,_0x37c179){return!_0xb63a95['some'](_0xefe58d=>_0x37c179['some'](_0x4be04f=>_0xefe58d['isIntersecting'](_0x4be04f)))&&_0xb63a95['some'](_0x442e22=>_0x37c179['some'](_0x2a24d6=>_0x442e22['end']['isTouching'](_0x2a24d6['start'])));}_0x428b79['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4faf66,_0x515c84,_0x4bbd39)=>{if(!_0x4bbd39['options']['showSuggestionHighlights'])return;const _0x368abf=_0x515c84['item'];if(!_0x368abf||!_0x368abf['is']('element','tableCell'))return;const _0x1b28dd=_0x4bbd39['mapper']['toViewElement'](_0x368abf);if(_0x1b28dd){const {id:_0x100ca4,authorId:_0x18ae63}=_0x2f389e['_splitMarkerName'](_0x515c84['markerName']);_0x3aa5a6(_0x1b28dd,_0x4bbd39['writer'],(_0x1b905a,_0x4ad86e,_0x4dde89)=>{_0x4dde89['addClass'](_0x5fee32(_0x4ad86e['classes']),_0x1b905a),_0x4dde89['setAttribute']('data-suggestion-id',_0x100ca4,_0x1b905a),_0x4dde89['setAttribute']('data-author-id',_0x18ae63,_0x1b905a);},(_0x141926,_0x25c0a1,_0x4a4c01)=>{_0x4a4c01['removeClass'](_0x5fee32(_0x25c0a1['classes']),_0x141926),_0x4a4c01['removeAttribute']('data-suggestion-id',_0x141926),_0x4a4c01['removeAttribute']('data-author-id',_0x141926);});}},{'priority':'highest'}),_0x2f389e['descriptionFactory']['registerDescriptionCallback'](_0x985cd=>{if('insertion'!=_0x985cd['type']&&'deletion'!=_0x985cd['type'])return;const _0x20afb4=_0x985cd['getContainedElement']();if(null!=_0x20afb4&&_0x20afb4['is']('element','table')){if('insertion'==_0x985cd['type']){const _0x13ef20=_0x985cd['getItems']()['filter'](_0x15acbf=>_0x15acbf['is']('$textProxy'))['map'](_0x394b54=>_0x394b54['data']);if(_0x13ef20['length'])return{'type':'insertion','content':o(_0x596384,'*Insert:*\x20%0',o(_0x596384,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x13ef20['join']('\x20')+'\x22'))};}if('deletion'==_0x985cd['type']){const _0x302362=_0x985cd['getItems']()['filter'](_0x2f0ccd=>_0x2f0ccd['is']('$textProxy'))['map'](_0x3539a2=>_0x3539a2['data']);if(_0x302362['length'])return{'type':'deletion','content':o(_0x596384,'*Remove:*\x20%0',o(_0x596384,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x302362['join']('\x20')+'\x22'))};}}}),_0x2f389e['descriptionFactory']['registerDescriptionCallback'](_0x21e8ec=>{if('tableRow'==_0x21e8ec['subType']){const _0x581205=_0x21e8ec['getItems']()['filter'](_0x392d67=>_0x392d67['is']('$textProxy'))['map'](_0x169058=>_0x169058['data']),_0x53b2c8=this['_getSuggestionCoords'](_0x21e8ec),_0x5d5b88=_0x53b2c8['maxRow']-_0x53b2c8['minRow']+0x1;if('insertion'==_0x21e8ec['type'])return _0x581205['length']?{'type':'insertion','content':o(_0x596384,'*Insert:*\x20%0',o(_0x596384,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5d5b88,'\x22'+_0x581205['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x596384,'*Insert:*\x20%0',o(_0x596384,'ELEMENT_TABLE_ROW',_0x5d5b88))};if('deletion'==_0x21e8ec['type'])return _0x581205['length']?{'type':'deletion','content':o(_0x596384,'*Remove:*\x20%0',o(_0x596384,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5d5b88,'\x22'+_0x581205['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x596384,'*Remove:*\x20%0',o(_0x596384,'ELEMENT_TABLE_ROW',_0x5d5b88))};}if('tableColumn'==_0x21e8ec['subType']){const _0x12c4ed=_0x21e8ec['getItems']()['filter'](_0x447c05=>_0x447c05['is']('$textProxy'))['map'](_0x2a5ee4=>_0x2a5ee4['data']),_0x43e876=this['_getSuggestionCoords'](_0x21e8ec),_0x496b1a=_0x43e876['maxColumn']-_0x43e876['minColumn']+0x1;if('insertion'==_0x21e8ec['type'])return _0x12c4ed['length']?{'type':'insertion','content':o(_0x596384,'*Insert:*\x20%0',o(_0x596384,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x496b1a,'\x22'+_0x12c4ed['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x596384,'*Insert:*\x20%0',o(_0x596384,'ELEMENT_TABLE_COLUMN',_0x496b1a))};if('deletion'==_0x21e8ec['type'])return _0x12c4ed['length']?{'type':'deletion','content':o(_0x596384,'*Remove:*\x20%0',o(_0x596384,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x496b1a,'\x22'+_0x12c4ed['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x596384,'*Remove:*\x20%0',o(_0x596384,'ELEMENT_TABLE_COLUMN',_0x496b1a))};}}),_0x2f389e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x57954f),_0x2f389e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x57954f),_0x2f389e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3f72b6),_0x2f389e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3f72b6),_0x2f389e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x227a51),_0x2f389e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x227a51),_0x2f389e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x19372a),_0x2f389e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x19372a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x53136e=this['editor'],_0x981775=_0x53136e['model']['document']['selection'];return(_0x10b3bc,_0x592b5d)=>{_0x53136e['model']['change'](_0x216471=>{const {commandName:_0x48b8d7,commandParams:_0x5b2cf0}=_0x592b5d;let _0x579cfe=_0x10b3bc[0x0]['end']['nodeBefore'];_0x5b2cf0&&_0x5b2cf0[0x0]&&!0x1===_0x5b2cf0[0x0]['forceValue']&&(_0x579cfe=_0x10b3bc[0x0]['start']['nodeAfter']);const _0x1992e8=_0x216471['createRangeIn'](_0x579cfe);if('$graveyard'==_0x1992e8['root']['rootName'])return;const _0x215ef0=Array['from'](_0x981775['getRanges']())['map'](_0x1fe34e=>_0x41eab8['fromRange'](_0x1fe34e));_0x216471['setSelection'](_0x1992e8),_0x53136e['commands']['get'](_0x48b8d7)['refresh'](),_0x5b2cf0['push']({'forceDefaultExecution':!0x0}),_0x53136e['execute'](_0x48b8d7,..._0x5b2cf0);const _0x2f1872=_0x215ef0['filter'](_0x40409a=>'$graveyard'!=_0x40409a['root']['rootName']);_0x2f1872['length']>0x0&&_0x216471['setSelection'](_0x2f1872);for(const _0x18bb71 of _0x215ef0)_0x18bb71['detach']();});};}['_getCoordsForCells'](_0x583d41){const _0x298ea1=this['editor']['plugins']['get']('TableUtils');let _0x503056=Number['MAX_SAFE_INTEGER'],_0x50987a=Number['MIN_SAFE_INTEGER'],_0xa7b451=Number['MAX_SAFE_INTEGER'],_0x36c99c=Number['MIN_SAFE_INTEGER'];for(const _0x1bc07c of _0x583d41){if('$graveyard'==_0x1bc07c['root']['rootName'])continue;const {row:_0x4d39bc,column:_0x34a3cd}=_0x298ea1['getCellLocation'](_0x1bc07c),_0x3c61be=_0x1bc07c['hasAttribute']('rowspan')?_0x1bc07c['getAttribute']('rowspan')-0x1:0x0,_0x2dbaed=_0x1bc07c['hasAttribute']('colspan')?_0x1bc07c['getAttribute']('colspan')-0x1:0x0;_0x503056=_0x4d39bc<_0x503056?_0x4d39bc:_0x503056,_0x50987a=_0x4d39bc+_0x3c61be>_0x50987a?_0x4d39bc+_0x3c61be:_0x50987a,_0xa7b451=_0x34a3cd<_0xa7b451?_0x34a3cd:_0xa7b451,_0x36c99c=_0x34a3cd+_0x2dbaed>_0x36c99c?_0x34a3cd+_0x2dbaed:_0x36c99c;}return{'minRow':_0x503056,'maxRow':_0x50987a,'minColumn':_0xa7b451,'maxColumn':_0x36c99c};}['_setupColumnsRowsFixing'](){const _0x592c38=this['editor'],_0x280f83=_0x592c38['plugins']['get']('TrackChangesEditing'),_0x26d7b8=_0x592c38['plugins']['get']('TableUtils');_0x592c38['model']['document']['on']('change:data',()=>{const _0x555aec=Array['from'](_0x592c38['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ba09e,data:_0x9ea9bc}of _0x555aec){const {group:_0x43be6e,id:_0x2b1146,subType:_0xdda375}=_0x280f83['_splitMarkerName'](_0x1ba09e);if('suggestion'!=_0x43be6e)continue;if(null!=_0x9ea9bc['oldRange'])continue;const _0x2cf536=_0x280f83['getSuggestion'](_0x2b1146);this['_tablePostFixingSubtypes']['includes'](_0xdda375)&&this['_tableSuggestions']['add'](_0x2cf536);}},{'priority':'low'});const _0x502248=(_0x5555a3,_0x51eded)=>{let _0x1e29ce=!0x1;const _0x56cff6=_0x51eded['createRangeOn'](_0x5555a3),_0x7b5142=_0x5555a3['findAncestor']('table'),_0x25e637=_0x26d7b8['getCellLocation'](_0x5555a3);for(const _0x95b010 of this['_tableSuggestions']){const _0x40a77d=_0x95b010['subType'],_0x1f5af0=_0x40a77d['startsWith']('tablePaste'),_0x21a4aa=_0x40a77d['substr'](_0x1f5af0?0xa:0x5),_0x4e5582=_0x21a4aa['toLowerCase'](),_0x5d1fa9=_0x4e5582['substr'](0x0,0x3)+'span',_0x1fc223='min'+_0x21a4aa,_0x389439='max'+_0x21a4aa;if(!_0x95b010['isInContent'])continue;if(_0x7b5142!=_0x95b010['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x95b010['isIntersectingWithRange'](_0x56cff6))continue;const _0x218800=_0x5555a3['hasAttribute'](_0x5d1fa9)?_0x5555a3['getAttribute'](_0x5d1fa9)-0x1:0x0,_0x37fa70=this['_getSuggestionCoords'](_0x95b010),_0xdcc81b=_0x37fa70[_0x1fc223],_0x3dc03c=_0x37fa70[_0x389439];_0xdcc81b<=_0x25e637[_0x4e5582]&&_0x25e637[_0x4e5582]+_0x218800<=_0x3dc03c&&(_0x95b010['addRange'](_0x56cff6),_0x1e29ce=!0x0);}return _0x1e29ce;};_0x592c38['model']['document']['registerPostFixer'](_0x786abd=>{let _0x3e5abd=!0x1;for(const _0x48c4ec of _0x592c38['model']['document']['differ']['getChanges']())if('insert'==_0x48c4ec['type']){if('tableRow'==_0x48c4ec['name']){for(const _0xef7e4e of _0x48c4ec['position']['nodeAfter']['getChildren']())_0x3e5abd=_0x3e5abd||_0x502248(_0xef7e4e,_0x786abd);}else'tableCell'==_0x48c4ec['name']&&(_0x3e5abd=_0x3e5abd||_0x502248(_0x48c4ec['position']['nodeAfter'],_0x786abd));}return _0x3e5abd;});}['_getSuggestionCoords'](_0x197d3b){return this['_getCoordsForCells'](_0x197d3b['getRanges']()['map'](_0x520593=>_0x520593['start']['nodeAfter']));}}function Ne(_0x37521b){return Array['from'](new Set(_0x37521b)['values']());}class _t extends _0x43125c{static get['requires'](){return[At];}['afterInit'](){const _0x21655d=this['editor'],_0x2cb5a4=_0x21655d['model']['document']['selection'],_0x32ed11=_0x21655d['locale'];if(!_0x21655d['plugins']['has']('TableEditing'))return;const _0x2553d7=_0x21655d['plugins']['get']('TrackChangesEditing'),_0xed8e29=_0x21655d['plugins']['get']('TableUtils'),_0xcb90fe=_0x21655d['plugins']['get'](At);_0xcb90fe['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2553d7['enableCommand']('mergeTableCells',()=>{const _0x5ae55f=_0xed8e29['getSelectionAffectedTableCells'](_0x21655d['model']['document']['selection']);_0x21655d['model']['change'](()=>{_0x2553d7['markMultiRangeBlockFormat'](_0x5ae55f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x21655d['commands']['get']('mergeTableCells')['on']('execute',(_0x1a99d7,_0x4c87fd)=>{_0x21655d['commands']['get']('trackChanges')['value']&&(_0x4c87fd['length']>0x0&&_0x4c87fd[_0x4c87fd['length']-0x1]&&_0x4c87fd[_0x4c87fd['length']-0x1]['forceDefaultExecution']||_0x2553d7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1a99d7['stop']());},{'priority':'highest'});for(const _0x2ed6a4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x270c50=_0x21655d['commands']['get'](_0x2ed6a4);_0x2553d7['enableCommand'](_0x2ed6a4,()=>{const _0x2cb2f6=_0x21655d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3cc0a4=>_0x3cc0a4['is']('element','tableCell')),_0xc0aabd=_0x270c50['value'];_0x21655d['model']['change'](()=>{_0x2553d7['markMultiRangeBlockFormat']([_0x2cb2f6,_0xc0aabd],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x716990 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x45aab7=_0x21655d['commands']['get'](_0x716990);_0x2553d7['enableCommand'](_0x716990,()=>{const _0x5447bb=_0xed8e29['getSelectionAffectedTableCells'](_0x21655d['model']['document']['selection'])[0x0],_0x443264=_0x5447bb['findAncestor']('table'),{column:_0x1202a9,row:_0x4d7d57}=_0xed8e29['getCellLocation'](_0x5447bb);let _0x20651e=[];if('horizontally'==_0x45aab7['direction']){const _0x5eb46f=_0xed8e29['createTableWalker'](_0x443264,{'startRow':_0x4d7d57,'endRow':_0x4d7d57,'includeAllSlots':!0x0});_0x20651e=Array['from'](_0x5eb46f)['map'](_0x128b03=>_0x128b03['cell']);}else{const _0x1e5b73=_0xed8e29['createTableWalker'](_0x443264,{'column':_0x1202a9,'includeAllSlots':!0x0});_0x20651e=Array['from'](_0x1e5b73)['map'](_0x210bb7=>_0x210bb7['cell']);}_0x21655d['model']['change'](_0x5ad801=>{_0x2553d7['markBlockFormat'](_0x5ad801['createRangeOn'](_0x5447bb),{'commandName':_0x716990,'commandParams':[]},_0x20651e,_0x716990);});});}_0x2553d7['descriptionFactory']['registerDescriptionCallback'](_0x14ac68=>{if('formatBlock'!=_0x14ac68['type']&&'formatInline'!=_0x14ac68['type'])return;const {data:_0x3d8024}=_0x14ac68;return _0x3d8024&&'mergeTableCells'==_0x3d8024['commandName']?{'type':'format','content':o(_0x32ed11,'*Merge\x20cells*')}:void 0x0;}),_0x2553d7['descriptionFactory']['registerDescriptionCallback'](_0x22d217=>{if('formatBlock'!=_0x22d217['type']&&'formatInline'!=_0x22d217['type'])return;const {data:_0x42a63a}=_0x22d217;return _0x42a63a?'splitTableCellVertically'==_0x42a63a['commandName']?{'type':'format','content':o(_0x32ed11,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x42a63a['commandName']?{'type':'format','content':o(_0x32ed11,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x44ca9c=_0xcb90fe['_acceptFormatSuggestionCallbackFactory']();for(const _0x2ecee4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2553d7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2ecee4,'accept',_0x44ca9c);for(const _0x37166e of['splitTableCellVertically','splitTableCellHorizontally'])_0x2553d7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x37166e,'accept',_0x44ca9c);_0x2553d7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x15254a=>{_0x21655d['model']['change'](_0x541c92=>{const _0x11d096=Array['from'](_0x2cb5a4['getRanges']())['map'](_0x55b74a=>_0x41eab8['fromRange'](_0x55b74a));_0x541c92['setSelection'](_0x15254a),_0x21655d['commands']['get']('mergeTableCells')['refresh'](),_0x21655d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x42f6a2=_0x11d096['filter'](_0x40a40e=>'$graveyard'!=_0x40a40e['root']['rootName']);_0x42f6a2['length']>0x0&&_0x541c92['setSelection'](_0x42f6a2);for(const _0x1c2b04 of _0x11d096)_0x1c2b04['detach']();});});for(const _0x4d6030 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3cbd0c=_0x21655d['commands']['get'](_0x4d6030);_0x3cbd0c['on']('set:isEnabled',(_0x5220d3,_0x267859,_0x47ddfe)=>{if(_0x47ddfe){const _0x2b9336=_0x21655d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x8e992d=>_0x8e992d['is']('element','tableCell'));this['_areMergableCells'](_0x3cbd0c['value'],_0x2b9336)||(_0x5220d3['return']=!0x1,_0x5220d3['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5f4706=this['editor']['commands']['get']('mergeTableCells'),_0x2cb625=this['editor']['plugins']['get']('TableUtils');if(!_0x5f4706['isEnabled'])return!0x1;const _0x6e23a4=_0x2cb625['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x14a79a of _0x6e23a4)for(const _0x2ae79d of _0x6e23a4)if(_0x14a79a!=_0x2ae79d&&!this['_areMergableCells'](_0x14a79a,_0x2ae79d))return!0x1;return!0x0;}['_areMergableCells'](_0x42ee59,_0x471b72){const _0x5b2652=this['editor']['plugins']['get']('TrackChangesEditing'),_0x201767=this['editor']['model']['createRangeOn'](_0x42ee59),_0xbd0b8b=this['editor']['model']['createRangeOn'](_0x471b72),_0xd52361=new Set(),_0x5e5f24=new Set();for(const _0x23af5f of _0x5b2652['getSuggestions']())if(('insertion'==_0x23af5f['type']||'deletion'==_0x23af5f['type']||'mergeTableCells'==_0x23af5f['subType'])&&_0x23af5f['isInContent']){for(const _0x476511 of _0x23af5f['getRanges']())_0x476511['containsRange'](_0x201767,!0x0)&&_0xd52361['add'](_0x23af5f['type']+':'+_0x23af5f['author']['id']),_0x476511['containsRange'](_0xbd0b8b,!0x0)&&_0x5e5f24['add'](_0x23af5f['type']+':'+_0x23af5f['author']['id']);}if(_0xd52361['size']!=_0x5e5f24['size'])return!0x1;for(const _0x8fdf18 of _0xd52361)if(!_0x5e5f24['has'](_0x8fdf18))return!0x1;return!0x0;}}class Ct extends _0x43125c{static get['requires'](){return[At];}['afterInit'](){const _0x5b79e9=this['editor'];if(!_0x5b79e9['plugins']['has']('TableEditing'))return;const _0x1aa3f2=_0x5b79e9['locale'],_0x3dfa32=_0x5b79e9['plugins']['get']('TrackChangesEditing');_0x3dfa32['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3dfa32['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3dfa32['registerBlockAttribute']('headingRows'),_0x3dfa32['registerBlockAttribute']('headingColumns'),_0x3dfa32['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1aa3f2,'FORMAT_HEADER_ROW')),_0x3dfa32['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1aa3f2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x21a6bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24f947=this['editor']['plugins']['get']('TableUtils'),_0x3421c0=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x5e912b({showActiveMarker:_0x5e3c21=!0x0,setDataAttribute:_0x26d857=!0x0}={}){return(_0x519d54,_0x361376,_0x196f23)=>{const {type:_0x573773,id:_0x404e2e}=_0x21a6bb['_splitMarkerName'](_0x361376['markerName']),_0x6756eb=_0x21a6bb['getSuggestion'](_0x404e2e),_0x1ab87f=_0x6756eb['data'];if('formatBlock'!=_0x6756eb['type']||!_0x1ab87f||'setTableColumnHeader'!=_0x1ab87f['commandName'])return;if(_0x361376['item'])return void _0x519d54['stop']();if(!_0x196f23['consumable']['consume'](_0x361376['markerRange'],_0x519d54['name']))return;const _0x51bed3=_0x361376['markerRange']['start']['nodeAfter'],_0x570f89=_0x361376['markerRange']['end']['nodeBefore'],_0x36bde5=_0x51bed3['parent']['parent'],{column:_0x5d89d2}=_0x24f947['getCellLocation'](_0x51bed3),{column:_0x712903}=_0x24f947['getCellLocation'](_0x570f89);for(let _0x2dcc9b=_0x5d89d2;_0x2dcc9b<=_0x712903;_0x2dcc9b++){const _0x41aced=_0x24f947['createTableWalker'](_0x36bde5,{'column':_0x2dcc9b,'includeAllSlots':!0x1});for(const _0xe79d66 of _0x41aced){const _0x32337f=_0xe79d66['cell'],_0x3fde7e=_0x196f23['mapper']['toViewElement'](_0x32337f);_0x196f23['writer']['addClass']('ck-suggestion-marker-'+_0x573773,_0x3fde7e),_0x26d857&&_0x196f23['writer']['setAttribute']('data-suggestion',_0x404e2e,_0x3fde7e),_0x196f23['mapper']['bindElementToMarker'](_0x3fde7e,_0x361376['markerName']),_0x5e3c21&&(_0x21a6bb['activeMarkers']['includes'](_0x361376['markerName'])?_0x196f23['writer']['addClass']('ck-suggestion-marker--active',_0x3fde7e):_0x196f23['writer']['removeClass']('ck-suggestion-marker--active',_0x3fde7e));}}};}_0x21a6bb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3421c0),_0x21a6bb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3421c0),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5e912b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3ba98a,_0x320fda,_0x330724)=>{_0x330724['options']['showSuggestionHighlights']&&_0x5e912b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3ba98a,_0x320fda,_0x330724);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4a4ea2,_0x248c87,_0x2b4153)=>{const {type:_0x30f0d6,id:_0x3698f8}=_0x21a6bb['_splitMarkerName'](_0x248c87['markerName']),_0x390866=_0x21a6bb['getSuggestion'](_0x3698f8),_0x52ce9e=_0x390866['data'];if('formatBlock'!=_0x390866['type']||!_0x52ce9e||'setTableColumnHeader'!=_0x52ce9e['commandName'])return;const _0xf08f17=_0x2b4153['mapper']['markerNameToElements'](_0x248c87['markerName']);if(_0xf08f17){for(const _0x235f3e of _0xf08f17)_0x2b4153['writer']['removeClass']('ck-suggestion-marker-'+_0x30f0d6,_0x235f3e),_0x2b4153['writer']['removeClass']('ck-suggestion-marker--active',_0x235f3e),_0x2b4153['writer']['removeAttribute']('data-suggestion',_0x235f3e),_0x2b4153['mapper']['unbindElementFromMarkerName'](_0x235f3e,_0x248c87['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x266fdc=this['editor'],_0x49ba34=_0x266fdc['locale'];function _0x4b1cd4(_0x5ba19d){return{'type':'format','content':o(_0x49ba34,'*Format:*\x20%0',_0x5ba19d)};}_0x266fdc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37897b=>{if('formatBlock'!=_0x37897b['type'])return;const {data:_0x3d7a51}=_0x37897b;if(_0x3d7a51){if('setTableRowHeader'==_0x3d7a51['commandName']){const _0x5e3882=_0x3d7a51['commandParams'][0x0]['forceValue'];return _0x4b1cd4(o(_0x49ba34,_0x5e3882?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3d7a51['commandName']){const _0x347521=_0x3d7a51['commandParams'][0x0]['forceValue'];return _0x4b1cd4(o(_0x49ba34,_0x347521?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x43125c{['afterInit'](){const _0x3cb75b=this['editor'],_0x576fcf=_0x3cb75b['locale'],_0x1055f0=_0x3cb75b['plugins']['get']('TrackChangesEditing');function _0xfbfe04(_0x1b08a9){return{'type':'format','content':''+o(_0x576fcf,'*Set\x20table\x20type:*\x20%0',_0x1b08a9)};}_0x3cb75b['plugins']['has']('TableLayout')&&(_0x1055f0['enableCommand']('insertTableLayout'),_0x1055f0['enableDefaultAttributesIntegration']('tableType'),_0x1055f0['registerBlockAttribute']('tableType'),_0x1055f0['descriptionFactory']['registerElementLabel'](_0x7a6048=>_0x7a6048['is']('element','table')&&'layout'===_0x7a6048['getAttribute']('tableType'),_0x10f07c=>o(_0x576fcf,'ELEMENT_LAYOUT_TABLE',_0x10f07c)),_0x1055f0['descriptionFactory']['registerDescriptionCallback'](_0x57bde7=>{const {data:_0x5bd51b}=_0x57bde7;if(_0x5bd51b&&'tableType'==_0x5bd51b['key'])switch(_0x5bd51b['newValue']){case'layout':return _0xfbfe04(o(_0x576fcf,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xfbfe04(o(_0x576fcf,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x3588ac=>[_0x3588ac,null]));class Nt extends _0x43125c{static get['requires'](){return[At];}['afterInit'](){const _0x2726db=this['editor'];if(!_0x2726db['plugins']['has']('TableClipboard'))return;const _0x45c687=_0x2726db['plugins']['get']('TrackChangesEditing'),_0x1db5d5=_0x2726db['plugins']['get']('TableUtils'),_0x40b666=_0x2726db['plugins']['get'](At),_0xee52ae=_0x2726db['plugins']['get']('TableClipboard'),_0x584679=_0x2726db['plugins']['get']('TableSelection'),_0x5d912c=_0x2726db['plugins']['get'](_0x4b76e5);_0x40b666['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2726db['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2726db['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x31f69e=null,_0x203d35=!0x1;_0x5d912c['on']('contentInsertion',(_0x20e43d,_0x509817)=>{_0x203d35='paste'===_0x509817['method'];}),_0x2726db['model']['on']('insertContent',(_0x2f1efb,_0x253b7a)=>{if(!_0x203d35&&null===_0x584679['getSelectedTableCells']())return;const [_0x124267,_0xc71719]=_0x253b7a,_0x3c2fd9=_0x253b7a[_0x253b7a['length']-0x1];_0x3c2fd9&&_0x3c2fd9['forceDefaultExecution']||_0x45c687['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4c3cd5,_0x3d7843,_0x18a465,_0x66b6f,_0x507390){if(_0x3d7843&&!_0x3d7843['is']('documentSelection'))return!0x1;const _0x9f8811=_0x507390['getTableIfOnlyTableInContent'](_0x4c3cd5,_0x18a465);if(!_0x9f8811||!Ue(_0x9f8811,void 0x0,_0x66b6f))return!0x1;const _0x579317=_0x66b6f['getSelectionAffectedTableCells'](_0x18a465['document']['selection']);if(!_0x579317['length'])return!0x1;const _0x3fdbe7=_0x579317[0x0]['findAncestor']('table'),_0x152e60=_0x66b6f['getRowIndexes'](_0x579317),_0x5b5733=_0x66b6f['getColumnIndexes'](_0x579317),_0x24f891={'startRow':_0x152e60['first'],'endRow':_0x152e60['last'],'startColumn':_0x5b5733['first'],'endColumn':_0x5b5733['last']};return 0x1==_0x579317['length']&&(_0x24f891['endRow']+=_0x66b6f['getRows'](_0x9f8811)-0x1,_0x24f891['endColumn']+=_0x66b6f['getColumns'](_0x9f8811)-0x1),Ue(_0x3fdbe7,_0x24f891,_0x66b6f);}(_0x124267,_0xc71719,_0x2726db['model'],_0x1db5d5,_0xee52ae)&&(_0x2f1efb['stop'](),_0x31f69e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2726db['model']['change'](()=>{_0x2726db['model']['insertContent'](_0x253b7a[0x0],_0x253b7a[0x1],_0x253b7a[0x2],{'forceDefaultExecution':!0x0});const _0x13a620=_0x339e56(),{rowInsertionRanges:_0x23c2d2,columnInsertionRanges:_0xf6262c,insertionRanges:_0x3d696a,deletionRanges:_0x4682db,cells:_0x38dce3}=_0x31f69e;_0x23c2d2['length']&&_0x45c687['markMultiRangeInsertion'](_0x23c2d2,'tablePasteRow',{'tablePasteChainId':_0x13a620}),_0xf6262c['length']&&_0x45c687['markMultiRangeInsertion'](_0xf6262c,'tablePasteColumn',{'tablePasteChainId':_0x13a620}),_0x3d696a['length']&&(_0x45c687['markMultiRangeInsertion'](_0x3d696a,'tablePaste',{'tablePasteChainId':_0x13a620,'skipNestingCheck':!0x0}),_0x3d696a['forEach'](_0x13d2fa=>_0x13d2fa['detach']?.())),_0x4682db['length']&&(_0x45c687['markMultiRangeDeletion'](_0x4682db,'tablePaste',{'tablePasteChainId':_0x13a620,'skipNestingCheck':!0x0}),_0x4682db['forEach'](_0x235f61=>_0x235f61['detach']?.()));const _0x1aa307=_0x45c687['markMultiRangeBlockFormat'](_0x38dce3['map'](({element:_0xb31d4})=>_0xb31d4),{'formatGroupId':_0x339e56()},[],'tablePasteCell',{'tablePasteChainId':_0x13a620});if(_0x1aa307){const _0x21dfaa=_0x1aa307['getMarkers'](),_0x1faf2b=[];for(const {element:_0x254188,attributes:_0x489474}of _0x38dce3){if(!_0x489474)continue;const _0x12da69=_0x2726db['model']['createRangeOn'](_0x254188),_0x4b709a=_0x21dfaa['find'](_0x4c5b64=>_0x4c5b64['getRange']()['isEqual'](_0x12da69));_0x4b709a&&_0x1faf2b['push']([_0x4b709a['name'],_0x489474]);}_0x1faf2b['length']&&_0x1aa307['setAttribute']('markerAttributes',Object['fromEntries'](_0x1faf2b));}_0x31f69e=null;}));},{'priority':_0x3b7ee3['high']+0xa}),_0x5d912c['on']('contentInsertion',()=>{_0x203d35=!0x1;},{'priority':'lowest'}),_0x2726db['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1539a9,_0x1d7d56)=>{const [_0x5809bb,_0x58208d,,_0xdc03a0]=_0x1d7d56;if(!_0x31f69e)return;_0x1539a9['stop']();const _0x320e43=_0x5809bb['cell'],_0x8636c3=_0x58208d,_0x4b3eb8=Oe(_0x320e43),_0x3cceab=Oe(_0x8636c3);_0x1539a9['return']=_0x320e43;let _0x3733ad=null,_0x10b8dd=null;if(_0x3cceab||_0x4b3eb8){if(_0x4b3eb8&&!_0x3cceab){_0xdc03a0['remove'](_0x320e43['getChild'](0x0));for(const _0xea0bb of Array['from'](_0x8636c3['getChildren']()))_0xdc03a0['insert'](_0xea0bb,_0x320e43,'end');const _0x3afc1b=_0x31f69e['rowInsertionIndexes']['includes'](_0x5809bb['row']),_0xa8c6b=_0x31f69e['columnInsertionIndexes']['includes'](_0x5809bb['column']);_0x3afc1b||_0xa8c6b||(_0x3733ad=_0x41eab8['fromRange'](_0xdc03a0['createRangeIn'](_0x320e43)));}else _0x3cceab&&!_0x4b3eb8&&(_0x10b8dd=_0xdc03a0['createRangeIn'](_0x320e43));}else{const _0x5d6970=_0xdc03a0['createElement']('tableCellSuggestion'),_0x242713=_0xdc03a0['createElement']('tableCellSuggestion');_0xdc03a0['wrap'](_0xdc03a0['createRangeIn'](_0x320e43),_0x242713),_0xdc03a0['insert'](_0x5d6970,_0x320e43,0x0);for(const _0xcd27d1 of Array['from'](_0x8636c3['getChildren']()))_0xdc03a0['insert'](_0xcd27d1,_0x5d6970,'end');_0x3733ad=_0x41eab8['fromRange'](_0xdc03a0['createRangeOn'](_0x5d6970)),_0x10b8dd=_0x41eab8['fromRange'](_0xdc03a0['createRangeOn'](_0x242713));}const _0x2ed665=Array['from'](_0x8636c3['getAttributes']())['filter'](([_0x3cbf18])=>Be['includes'](_0x3cbf18));_0x31f69e['cells']['push']({'element':_0x320e43,'attributes':_0x2ed665['length']?Object['fromEntries'](_0x2ed665):null}),_0x3733ad&&_0x31f69e['insertionRanges']['push'](_0x3733ad),_0x10b8dd&&_0x31f69e['deletionRanges']['push'](_0x10b8dd);},{'priority':'high'}),_0x1db5d5['on']('insertColumns',(_0x328b46,_0x2054b5)=>{const [_0x3ca2dc,_0x36b0da={}]=_0x2054b5;if(!_0x31f69e)return;const _0x46e94d=_0x36b0da['at']||0x0,_0x8e5666=_0x36b0da['columns']||0x1;_0x31f69e['columnInsertionIndexes']=new Array(_0x8e5666)['fill'](_0x46e94d)['map']((_0x548298,_0x249e98)=>_0x548298+_0x249e98);for(const {cell:_0x2d41df}of _0x1db5d5['createTableWalker'](_0x3ca2dc,{'startColumn':_0x46e94d,'endColumn':_0x46e94d+_0x8e5666-0x1}))_0x31f69e['columnInsertionRanges']['push'](_0x2726db['model']['createRangeOn'](_0x2d41df));},{'priority':'low'}),_0x1db5d5['on']('insertRows',(_0x10e979,_0x34cb3f)=>{const [_0x222763,_0x3507dc={}]=_0x34cb3f;if(!_0x31f69e)return;const _0x28415a=_0x3507dc['at']||0x0,_0x1ab5e0=_0x3507dc['rows']||0x1;_0x31f69e['rowInsertionIndexes']=new Array(_0x1ab5e0)['fill'](_0x28415a)['map']((_0x5319ce,_0x16be61)=>_0x5319ce+_0x16be61);for(const {cell:_0x440857}of _0x1db5d5['createTableWalker'](_0x222763,{'startRow':_0x28415a,'endRow':_0x28415a+_0x1ab5e0-0x1}))_0x31f69e['rowInsertionRanges']['push'](_0x2726db['model']['createRangeOn'](_0x440857));},{'priority':'low'}),_0x45c687['descriptionFactory']['registerDescriptionCallback'](_0x150a37=>{if(_0x150a37['subType']&&_0x150a37['subType']['startsWith']('tablePaste'))return _0x150a37['previous']?{}:{'type':'insertion','content':o(_0x2726db['locale'],'*Replace\x20table\x20cells*')};});const _0x291739=()=>!0x1;for(const _0x3b6815 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x45c687['_suggestionFactory']['registerCustomCallback']('insertion',_0x3b6815,'join',_0x291739),_0x45c687['_suggestionFactory']['registerCustomCallback']('deletion',_0x3b6815,'join',_0x291739),_0x45c687['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3b6815,'join',_0x291739);_0x45c687['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x291739),_0x45c687['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xc18b4c,_0x246092,_0x50b472)=>{const _0x188e99=_0xc18b4c['map'](_0x376989=>_0x376989['getContainedElement']())['filter'](_0x5ecdd8=>_0x5ecdd8),_0x2d8780=new Map(_0x188e99['map'](_0x36c148=>[_0x36c148,null]));if(_0x31f69e){for(const {element:_0x700027,attributes:_0x42c485}of _0x31f69e['cells'])_0x42c485&&_0x2d8780['set'](_0x700027,_0x42c485);}else{if(_0x50b472&&_0x50b472['markerAttributes'])for(const [_0x11cfce,_0x2462ac]of Object['entries'](_0x50b472['markerAttributes'])){const _0x55bf77=_0x2726db['model']['markers']['get'](_0x11cfce),_0x4fe68d=_0x55bf77?_0x55bf77['getRange']()['getContainedElement']():null;_0x4fe68d&&_0x2d8780['set'](_0x4fe68d,_0x2462ac);}}_0x2726db['model']['change'](_0x1a6c59=>{for(const [_0x4aa7b4,_0x571b34]of _0x2d8780)_0x1a6c59['setAttributes']({...xe,..._0x571b34},_0x4aa7b4);});});const _0x4e8624=(_0x5b416c,_0x32a403)=>{_0x45c687['_suggestionFactory']['registerCustomCallback'](_0x5b416c,'tablePaste',_0x32a403,(_0x43a2c8,_0x3c7910,_0x328d09)=>{_0x2726db['model']['change'](_0x38a08c=>{const _0x3ab336=[];for(const _0x33734e of _0x43a2c8){const _0x5033cf=_0x33734e['start']['nodeAfter'];_0x5033cf['is']('element','tableCellSuggestion')&&_0x3ab336['push'](_0x5033cf);}_0x45c687['_suggestionFactory']['getSuggestionCallback'](_0x5b416c,null,_0x32a403)(_0x43a2c8,_0x3c7910,_0x328d09);for(const _0x1a256b of _0x3ab336)'$graveyard'!=_0x1a256b['root']['rootName']&&_0x38a08c['unwrap'](_0x1a256b);});});};_0x4e8624('insertion','accept'),_0x4e8624('insertion','discard'),_0x4e8624('deletion','accept'),_0x4e8624('deletion','discard'),_0x45c687['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5234f0=>{const _0x104e42=_0x5234f0['map'](_0x8407c7=>_0x8407c7['getContainedElement']()),_0x4ed064=_0x104e42[0x0]['findAncestor']('table'),{minRow:_0x30d356,maxRow:_0x1ea420}=_0x40b666['_getCoordsForCells'](_0x104e42);_0x1db5d5['removeRows'](_0x4ed064,{'at':_0x30d356,'rows':_0x1ea420-_0x30d356+0x1});}),_0x45c687['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3baca6=>{const _0x5825d3=_0x3baca6['map'](_0x4474b0=>_0x4474b0['getContainedElement']()),_0x1ba148=_0x5825d3[0x0]['findAncestor']('table'),{minColumn:_0x57401a,maxColumn:_0x56f76d}=_0x40b666['_getCoordsForCells'](_0x5825d3);_0x1db5d5['removeColumns'](_0x1ba148,{'at':_0x57401a,'columns':_0x56f76d-_0x57401a+0x1});});const _0x2581f4=(_0x23b789,_0x1ce6b0)=>{if(!_0x1ce6b0['subType']||!_0x1ce6b0['subType']['startsWith']('tablePaste'))return;const _0x2eec37=_0x1ce6b0['attributes']['tablePasteChainId'],_0x509713=_0x45c687['getSuggestions']()['filter'](_0x24ff5a=>_0x24ff5a['isInContent']&&_0x24ff5a['attributes']&&_0x24ff5a['attributes']['tablePasteChainId']==_0x2eec37);_0x509713['length']&&_0x1ce6b0['getAllAdjacentSuggestions']()['length']!=_0x509713['length']&&_0x509713['reduce']((_0x5f1225,_0x57d2e8)=>(_0x5f1225['next']=_0x57d2e8,_0x57d2e8['previous']=_0x5f1225,_0x57d2e8));};function _0x5e0e02(_0x12dfc8,_0xd15e8c=!0x0){const {id:_0x330968,authorId:_0x295656}=_0x45c687['_splitMarkerName'](_0x12dfc8['markerName']),_0x2313b1=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x31afec=_0x45c687['activeMarkers']['includes'](_0x12dfc8['markerName']);return _0x31afec&&_0x2313b1['push']('ck-suggestion-marker--active'),{'classes':_0x2313b1,'attributes':{'data-suggestion':_0x330968,'data-author-id':_0x295656},'priority':_0x31afec&&_0xd15e8c?0xbc2:0xbb8};}_0x45c687['on']('suggestionLoaded',_0x2581f4,{'priority':'high'}),_0x45c687['on']('suggestionUnloaded',_0x2581f4,{'priority':'high'}),_0x2726db['model']['document']['registerPostFixer'](()=>{let _0xf87619=!0x1;const _0x154ec2=Array['from'](_0x2726db['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xdc0c72,data:_0x4169d4}of _0x154ec2){const {group:_0x2282d1,type:_0x291614,id:_0x20ac63}=_0x45c687['_splitMarkerName'](_0xdc0c72);if('suggestion'!=_0x2282d1||'deletion'!=_0x291614||_0x4169d4['oldRange'])continue;if(!_0x45c687['hasSuggestion'](_0x20ac63))continue;const _0x5ebe05=_0x45c687['getSuggestion'](_0x20ac63)['getRanges'](),_0x7b6cb8=_0x2726db['plugins']['get']('Users')['me'];for(const _0x263d47 of _0x45c687['getSuggestions']()){if(!_0x263d47['isInContent']||_0x263d47['author']!=_0x7b6cb8)continue;if('formatBlock'!=_0x263d47['type']||'tablePasteCell'!=_0x263d47['subType'])continue;if(_0x263d47['getRanges']()['every'](_0x57007b=>_0x5ebe05['some'](_0x14213c=>_0x14213c['containsRange'](_0x57007b,!0x0)))){for(const _0x7b6845 of _0x263d47['getAllAdjacentSuggestions']())_0x7b6845['isInContent']&&(_0x7b6845['discard'](),_0xf87619=!0x0);}}}return _0xf87619;}),_0x2726db['model']['document']['registerPostFixer'](_0x2300c9=>{const _0x3e2326=_0x2726db['commands']['get']('redo');if(!_0x3e2326||!_0x3e2326['_createdBatches']['has'](_0x2300c9['batch']))return!0x1;let _0x234a17=!0x1;const _0x33652b=_0x2726db['plugins']['get']('Users')['me'],_0x441e4f=_0x2726db['model']['document']['differ']['getChanges'](),_0x29a493=Array['from'](_0x2726db['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x411f2f,data:_0x1651b9})=>{const {group:_0x1e5849,subType:_0x1300d7,authorId:_0x4d6e6a}=_0x45c687['_splitMarkerName'](_0x411f2f);return'suggestion'==_0x1e5849&&'tablePaste'==_0x1300d7&&_0x4d6e6a==_0x33652b['id']&&!_0x1651b9['oldRange'];});for(const _0x588800 of _0x441e4f){if('insert'!=_0x588800['type']||'tableCellSuggestion'!=_0x588800['name']||0x1!=_0x588800['length'])continue;const _0x554bda=_0x2300c9['createRange'](_0x588800['position'],_0x588800['position']['getShiftedBy'](0x1));if(!_0x29a493['find'](({data:_0x189881})=>_0x189881['newRange']['isEqual'](_0x554bda))){for(const {name:_0x52f283,data:_0x519f35}of _0x29a493)if(_0x554bda['containsRange'](_0x519f35['newRange'])){_0x2300c9['updateMarker'](_0x52f283,{'range':_0x554bda}),_0x234a17=!0x0;break;}}}return _0x234a17;}),_0x2726db['model']['document']['registerPostFixer'](_0x1eb0e8=>{let _0xbcf865=!0x1;const _0x39fb63=_0x2726db['plugins']['get']('Users')['me'],_0x509a57=_0x45c687['getSuggestions']()['filter'](_0x491726=>_0x491726['isInContent']&&_0x491726['author']==_0x39fb63),_0x28373b=new Set(),_0x38c766=new Set();for(const _0xc8daca of _0x509a57)if('tablePaste'==_0xc8daca['subType'])for(const _0x59a8a6 of _0xc8daca['getMarkers']()){const _0x57a50b=_0x59a8a6['getRange']()['getContainedElement']();if(_0x57a50b){if(_0x57a50b['is']('element','tableCellSuggestion')&&Oe(_0x57a50b)){_0xc8daca['removeMarker'](_0x59a8a6['name']),_0x28373b['add'](_0x57a50b),_0xbcf865=!0x0;const _0x192a17=_0x57a50b['nextSibling'],_0x240f8b=_0x57a50b['previousSibling'],_0x495273=_0x192a17&&_0x192a17['is']('element','tableCellSuggestion'),_0x26132f=_0x240f8b&&_0x240f8b['is']('element','tableCellSuggestion');_0x495273&&!_0x28373b['has'](_0x192a17)&&_0x38c766['add'](_0x192a17),_0x26132f&&!_0x28373b['has'](_0x240f8b)&&_0x38c766['add'](_0x240f8b);}else _0x57a50b['is']('element','paragraph')&&_0x57a50b['isEmpty']&&(_0xc8daca['removeMarker'](_0x59a8a6['name']),_0xbcf865=!0x0);}}else{if('tablePasteCell'==_0xc8daca['subType']){if(!_0xc8daca['attributes']||!_0xc8daca['attributes']['tablePasteChainId'])continue;const _0x424434=_0xc8daca['attributes']['markerAttributes'];if(_0x424434&&Object['keys'](_0x424434)['length'])continue;const _0x1b7c76=_0xc8daca['attributes']['tablePasteChainId'];let _0x17e5b1=!0x0,_0x52305d=!0x0;for(const _0x3bab1e of _0x509a57)if(_0x3bab1e['subType']&&_0x3bab1e['subType']['startsWith']('tablePaste')){if(!_0x3bab1e['attributes']['tablePasteChainId']){_0x52305d=!0x1;break;}if(_0x3bab1e['id']!=_0xc8daca['id']&&_0x3bab1e['attributes']['tablePasteChainId']==_0x1b7c76){_0x17e5b1=!0x1;break;}}_0x52305d&&_0x17e5b1&&(_0xc8daca['removeMarkers'](),_0xbcf865=!0x0);}}for(const _0x33ec42 of _0x28373b)_0x1eb0e8['remove'](_0x33ec42);for(const _0x22a4e7 of _0x38c766)_0x1eb0e8['unwrap'](_0x22a4e7);return _0xbcf865;}),_0x2726db['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x36dcd2=>_0x5e0e02(_0x36dcd2),'converterPriority':'high'}),_0x2726db['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5d55f5,_0x2f84fe)=>_0x2f84fe['options']['showSuggestionHighlights']?_0x5e0e02(_0x5d55f5,!0x1):null,'converterPriority':'high'});const _0x3b5652=_0x2726db['editing']['view'];this['listenTo'](_0x3b5652['document'],'clipboardOutput',(_0x193742,_0x12b9a8)=>{const _0x227f11=[];for(const _0xfe9ba2 of _0x3b5652['createRangeIn'](_0x12b9a8['content'])['getItems']())_0xfe9ba2['is']('element','suggestion-td')&&_0x227f11['push'](_0xfe9ba2);_0x3b5652['change'](_0x5f1613=>{for(const _0x3604a5 of _0x227f11)_0x5f1613['move'](_0x5f1613['createRangeIn'](_0x3604a5),_0x5f1613['createPositionBefore'](_0x3604a5)),_0x5f1613['remove'](_0x3604a5);});});}}function Oe(_0x579bf5){if(_0x579bf5['isEmpty'])return!0x0;const _0x1204e1=_0x579bf5['getChild'](0x0);return _0x1204e1['is']('element','paragraph')&&_0x1204e1['isEmpty'];}function Ue(_0x633006,_0x42644d={},_0x3cf63c){for(const {isAnchor:_0x205c55,cellHeight:_0xf04d66,cellWidth:_0x2362f9}of _0x3cf63c['createTableWalker'](_0x633006,{'includeAllSlots':!0x0,..._0x42644d}))if(!_0x205c55||0x1!=_0xf04d66||0x1!=_0x2362f9)return!0x1;return!0x0;}class Dt extends _0x43125c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5895c6=this['editor']['plugins']['get']('TrackChangesEditing');_0x5895c6['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5895c6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5895c6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5895c6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5895c6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5895c6['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x496027,_0x2a4c32){const _0x55a9e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c00dc=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x239d1e=_0x2a4c32['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5b844c=_0x4c00dc['getColumnGroupElement'](_0x239d1e);let _0x38a761=_0x5b844c?_0x4c00dc['getTableColumnsWidths'](_0x5b844c):null,_0x3a7d96=_0x239d1e['getAttribute']('tableWidth')||null;const _0x50fe25=_0x2a4c32['tableWidth']||_0x3a7d96,_0x5ea558=_0x2a4c32['columnWidths']||_0x38a761,_0x768109=this['editor']['plugins']['get']('Users')['me'];for(const _0x18729d of _0x55a9e['getSuggestions']()){const _0x4bc691=_0x18729d['getContainedElement']();if('resizeTable'===_0x18729d['subType']&&_0x4bc691===_0x239d1e){_0x18729d['author']!==_0x768109&&_0x18729d['discard']();const _0x58c52e=_0x18729d['data']['commandParams'];_0x3a7d96=_0x58c52e[0x0]['tableWidth'],_0x38a761=_0x58c52e[0x0]['columnWidths'];break;}}_0x496027({'table':_0x239d1e,'tableWidth':_0x50fe25,'columnWidths':_0x5ea558}),_0x55a9e['markBlockFormat'](_0x239d1e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3a7d96,'columnWidths':_0x38a761}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x580762){if('formatBlock'!=_0x580762['type']&&'formatInline'!=_0x580762['type'])return;const {data:_0x44c138}=_0x580762;if(_0x44c138&&'resizeTable'===_0x44c138['formatGroupId']){const _0x78c940='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x78c940)};}}}class $t extends _0x43125c{['afterInit'](){const _0x297dea=this['editor'];_0x297dea['plugins']['has']('Template')&&_0x297dea['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x43125c{['afterInit'](){const _0x33281e=this['editor'];if(!_0x33281e['commands']['get']('insertTableOfContents'))return;_0x33281e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5cc306=_0x33281e['plugins']['get']('TrackChangesEditing'),_0x34214b=_0x33281e['locale'];_0x5cc306['descriptionFactory']['registerElementLabel']('tableOfContents',_0x23d533=>o(_0x34214b,'ELEMENT_TABLE_OF_CONTENTS',_0x23d533));}}class Bt extends _0x43125c{['afterInit'](){const _0x1931ab=this['editor'];if(!_0x1931ab['plugins']['has']('Title'))return;const _0x2ef9e1=_0x1931ab['plugins']['get']('TrackChangesEditing');_0x2ef9e1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1931ab['locale'],'ELEMENT_TITLE')),_0x1931ab['model']['document']['registerPostFixer'](_0x246677=>{let _0x35eddb=!0x1;const _0x4cc109=Array['from'](_0x1931ab['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32e9f2,data:_0x5bce44}of _0x4cc109){const {group:_0x21b574}=_0x2ef9e1['_splitMarkerName'](_0x32e9f2);if('suggestion'!==_0x21b574||!_0x5bce44['newRange'])continue;const _0x24e837=_0x5bce44['newRange'],_0x24b2ca=_0x24e837['end']['nodeBefore'];if(!_0x24b2ca||!_0x24b2ca['is']('element','title-content'))continue;if(!_0x24e837['start']['isTouching'](_0x24e837['end']))continue;const _0x4b21a9=_0x1931ab['model']['schema']['getNearestSelectionRange'](_0x24e837['end'],'forward');if(_0x4b21a9&&_0x4b21a9['isCollapsed']){const _0x576d32=_0x246677['createRange'](_0x24e837['start'],_0x4b21a9['start']);_0x576d32['isEqual'](_0x24e837)||(_0x246677['updateMarker'](_0x32e9f2,{'range':_0x576d32}),_0x35eddb=!0x0);}_0x35eddb||(_0x246677['removeMarker'](_0x32e9f2),_0x35eddb=!0x0);}return _0x35eddb;});}}class Tt extends _0x43125c{['afterInit'](){const _0x3c080b=this['editor'],_0x5e20a1=_0x3c080b['plugins']['get']('TrackChangesEditing');_0x3c080b['plugins']['has']('Uploadcare')&&(_0x5e20a1['enableCommand']('uploadcare'),_0x3c080b['plugins']['has']('UploadcareImageEdit')&&(_0x5e20a1['enableCommand']('uploadcareImageEdit'),_0x5e20a1['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5e20a1['registerBlockAttribute']('uploadcareImageId'),_0x5e20a1['descriptionFactory']['registerDescriptionCallback'](_0x52913e=>{if('attribute'!=_0x52913e['type'])return;const {data:_0x2cbd30}=_0x52913e;return _0x2cbd30&&'uploadcareImageId'==_0x2cbd30['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x43125c{['afterInit'](){const _0x28573e=this['editor'],_0xd637ab=_0x28573e['plugins']['get']('TrackChangesEditing');_0x28573e['plugins']['has']('UndoEditing')&&(_0xd637ab['enableCommand']('undo'),_0xd637ab['enableCommand']('redo'));}}class Ot extends _0x43125c{static get['requires'](){return[At];}['afterInit'](){const _0x2ebdc6=this['editor'];if(!_0x2ebdc6['plugins']['has']('TableCaptionEditing'))return;_0x2ebdc6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x43125c{['tableProperties'];['tableCellProperties'];constructor(_0x5ccd92){super(_0x5ccd92),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 _0x52070a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5aa44a of this['tableProperties'])_0x52070a['enableCommand'](_0x5aa44a,(_0x2e20c7,_0x48e92c)=>{const _0x3c80c6=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5aa44a,[_0x3c80c6],this['tableProperties'],'tableProperties',_0x2e20c7,_0x48e92c);});_0x52070a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x52070a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52070a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3daabb,_0x1ef395)=>this['handleDiscardAction'](this['tableProperties'],_0x3daabb,_0x1ef395)),_0x52070a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2ffa21 of this['tableCellProperties'])_0x52070a['enableCommand'](_0x2ffa21,(_0x189628,_0x22da54)=>{const _0x39dd65=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2ffa21,_0x39dd65,this['tableCellProperties'],'tableCellProperties',_0x189628,_0x22da54);});_0x52070a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x52070a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52070a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5bfbec,_0x2a48a8)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5bfbec,_0x2a48a8)),_0x52070a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x52070a['descriptionFactory']['registerDescriptionCallback'](_0x27bd4b=>this['handleSuggestionDescription'](_0x27bd4b)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x16c78c,_0xcd88d5,_0x515ac2,_0x532a0d,_0x28cd83,_0x386405){const _0x599070=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x386405['batch'],()=>{for(const _0x1a0dbd of _0xcd88d5){if(this['_getSuggestion'](_0x1a0dbd,_0x532a0d))_0x28cd83(_0x386405);else{const _0x4e6259={};for(const _0x4b301e of _0x515ac2){const _0x64c2dc=_0x1a0dbd['getAttribute'](_0x4b301e);void 0x0!==_0x64c2dc&&(_0x4e6259[_0x4b301e]=_0x64c2dc);}_0x28cd83(_0x386405),_0x599070['markBlockFormat'](_0x1a0dbd,{'commandParams':[_0x4e6259]},[],_0x532a0d);}}});}['handleDiscardAction'](_0x2b78f6,_0x5a610f,_0xa60582){const _0x356f4d=_0x5a610f[0x0]['start']['nodeAfter'],_0x3114f8=_0xa60582['commandParams'][0x0];this['editor']['model']['change'](_0x57a947=>{for(const _0x4eac82 of _0x2b78f6)void 0x0!==_0x3114f8[_0x4eac82]?_0x57a947['setAttribute'](_0x4eac82,_0x3114f8[_0x4eac82],_0x356f4d):_0x57a947['removeAttribute'](_0x4eac82,_0x356f4d);});}['handleSuggestionDescription'](_0x220ae5){if(_0x220ae5['data'])switch(_0x220ae5['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xa35fa6,_0x35b0c4){const _0x2dc8f4=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x577b89 of _0x2dc8f4['getSuggestions']({'skipNotAttached':!0x0})){const _0x9d64b9=_0x577b89['getContainedElement']();if(_0x577b89['subType']===_0x35b0c4&&_0x9d64b9===_0xa35fa6)return _0x577b89;}return null;}['_registerTablePropertiesAttributes'](){const _0x50be44=this['editor']['plugins']['get']('TrackChangesEditing'),_0x185538=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x14ae07 of _0x185538){const _0x1f7f0b=_0x14ae07['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x50be44['registerBlockAttribute'](_0x14ae07),_0x50be44['descriptionFactory']['registerAttributeLabel'](_0x14ae07,o(this['editor']['locale'],'FORMAT_'+_0x1f7f0b));}}}class Rt extends _0x43125c{['afterInit'](){const _0x45d237=this['editor'];if(!_0x45d237['plugins']['has']('LineHeight'))return;const _0x494374=_0x45d237['plugins']['get']('TrackChangesEditing'),_0x3f6568=_0x45d237['locale'];_0x494374['enableDefaultAttributesIntegration']('lineHeight'),_0x494374['registerBlockAttribute']('lineHeight'),_0x494374['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3f6568,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x43125c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x1d0ab4,_0x3dae24,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2fced7){super(_0x2fced7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xe82f8a,_0x2c24e6,_0x2074e1,_0xc45c8c)=>{this['_model']['change'](()=>{for(const _0x352484 of[..._0xc45c8c,..._0x2074e1])this['_model']['markers']['has'](_0x352484)&&_0x2fced7['editing']['reconvertMarker'](_0x352484);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2fced7['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x2fced7['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2fced7['config']['get']('trackChanges.trackFormatChanges'),_0x2fced7['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2fced7['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x2fced7,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4bc5da=this['editor'],_0x5207de=(_0x5363ba,_0x12654f)=>{if('attribute'!=_0x5363ba)return'ck-suggestion-marker-'+_0x5363ba;const _0xa4bbe0=_0x12654f['split']('|')[0x0];return this['_isBlockAttribute'](_0xa4bbe0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4bc5da['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x25eacd=>{const {id:_0x2fb2d4,authorId:_0x265987,type:_0x4349e8,subType:_0x470418}=this['_splitMarkerName'](_0x25eacd['markerName']),_0x27a225=['ck-suggestion-marker',_0x5207de(_0x4349e8,_0x470418)];let _0x1c79e4=0xbb8;return this['activeMarkers']['includes'](_0x25eacd['markerName'])&&(_0x27a225['push']('ck-suggestion-marker--active'),_0x1c79e4=0xbc2),'deletion'==_0x4349e8&&(_0x1c79e4+=0x5),{'classes':_0x27a225,'attributes':{'data-suggestion':_0x2fb2d4,'data-author-id':_0x265987},'priority':_0x1c79e4};}}),_0x4bc5da['conversion']['for']('dataDowncast')['add'](_0x1467cc=>{_0x1467cc['on']('addMarker:suggestion',(_0x581994,_0x9f8fa4,_0x1bfde0)=>{if(!_0x1bfde0['options']['showSuggestionHighlights'])return;const _0x28b820=_0x9f8fa4['item'];if(!_0x28b820)return;const _0x3a3dd9=_0x1bfde0['mapper']['toViewElement'](_0x28b820);_0x4bc5da['model']['schema']['isObject'](_0x28b820)&&_0x3a3dd9&&!_0x3a3dd9['getCustomProperty']('widget')&&_0x3a3dd9['is']('containerElement')&&_0x2120f5(_0x3a3dd9,_0x1bfde0['writer']);},{'priority':'high'});}),_0x4bc5da['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4b7903,_0x1d69f2)=>{if(!_0x1d69f2['options']['showSuggestionHighlights'])return null;const {id:_0x286222,authorId:_0x354d46,type:_0x4d5307,subType:_0x887783}=this['_splitMarkerName'](_0x4b7903['markerName']);return{'classes':['ck-suggestion-marker',_0x5207de(_0x4d5307,_0x887783)],'priority':0xbb8,'attributes':{'data-suggestion':_0x286222,'data-author-id':_0x354d46}};}});const _0x285d29=({showActiveMarkers:_0x2d6fe4=!0x0,isAttributeSuggestion:_0x427ab4=!0x1}={})=>(_0x42a4ca,_0x97287a,_0x535f0d)=>{if(!_0x97287a['item'])return;const {id:_0x142e66,authorId:_0x3ae4fe}=this['_splitMarkerName'](_0x97287a['markerName']);if(_0x427ab4){const _0x355081=this['_suggestions']['get'](_0x142e66),_0x4e1091=this['_getAttributeKey'](_0x355081);if(!this['_isBlockAttribute'](_0x4e1091))return;}if(_0x97287a['item']['is']('selection'))return void _0x535f0d['consumable']['consume'](_0x97287a['item'],_0x42a4ca['name']);const _0x573a83=_0x535f0d['mapper']['toViewElement'](_0x97287a['item']);if(_0x97287a['item']['is']('element')&&_0x4bc5da['model']['schema']['isBlock'](_0x97287a['item'])&&!_0x573a83['getCustomProperty']('addHighlight')){_0x535f0d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x573a83),_0x535f0d['writer']['setAttribute']('data-suggestion',_0x142e66,_0x573a83),_0x535f0d['writer']['setAttribute']('data-author-id',_0x3ae4fe,_0x573a83),_0x535f0d['mapper']['bindElementToMarker'](_0x573a83,_0x97287a['markerName']),_0x2d6fe4&&(this['activeMarkers']['includes'](_0x97287a['markerName'])?_0x535f0d['writer']['addClass']('ck-suggestion-marker--active',_0x573a83):_0x535f0d['writer']['removeClass']('ck-suggestion-marker--active',_0x573a83));for(const _0x1d6817 of _0x4bc5da['model']['createRangeIn'](_0x97287a['item'])['getItems']())_0x535f0d['consumable']['consume'](_0x1d6817,_0x42a4ca['name']);_0x535f0d['consumable']['consume'](_0x97287a['item'],_0x42a4ca['name']);}};_0x4bc5da['conversion']['for']('dataDowncast')['add'](_0x4d3cb9=>{_0x4d3cb9['on']('addMarker:suggestion:formatBlock',(_0x41d257,_0x5237be,_0x5918e8)=>{_0x5918e8['options']['showSuggestionHighlights']&&_0x285d29({'showActiveMarkers':!0x1})(_0x41d257,_0x5237be,_0x5918e8);},{'priority':'highest'});}),_0x4bc5da['conversion']['for']('dataDowncast')['add'](_0x4367cc=>{_0x4367cc['on']('addMarker:suggestion:attribute',(_0x12fbf5,_0x113835,_0x4af5f0)=>{_0x4af5f0['options']['showSuggestionHighlights']&&_0x285d29({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x12fbf5,_0x113835,_0x4af5f0);},{'priority':'highest'});}),_0x4bc5da['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1630ce,_0x302dbb)=>{if(_0x302dbb['options']['showSuggestionHighlights']){const {id:_0x11f327,authorId:_0x21081a}=this['_splitMarkerName'](_0x1630ce);return _0x1630ce['includes'](':split')||_0x1630ce['includes'](':merge')?{'group':'suggestion','name':_0x1630ce['substr'](0xb),'attributes':{'data-suggestion':_0x11f327,'data-author-id':_0x21081a}}:null;}return{'group':'suggestion','name':_0x1630ce['substr'](0xb)};}}),_0x4bc5da['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2857cc,{writer:_0x5dc14b})=>{let _0x683115='suggestion:'+_0x2857cc['getAttribute']('suggestion-type')+':'+_0x2857cc['getAttribute']('id');return _0x2857cc['getAttribute']('marker-count')&&(_0x683115+=':'+_0x2857cc['getAttribute']('marker-count')),_0x5dc14b['createElement']('$marker',{'data-name':_0x683115});}}),_0x4bc5da['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4bc5da['conversion']['for']('editingDowncast')['add'](_0x5d6497=>{_0x5d6497['on']('addMarker:suggestion:formatBlock',_0x285d29(),{'priority':'high'});}),_0x4bc5da['conversion']['for']('editingDowncast')['add'](_0x4b91b0=>{_0x4b91b0['on']('addMarker:suggestion:attribute',_0x285d29({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4bc5da['conversion']['for']('editingDowncast')['add'](_0x3f9a10=>{_0x3f9a10['on']('removeMarker:suggestion:formatBlock',(_0x3b0c51,_0x440f8c,_0x57c960)=>{const _0x3983d8=_0x57c960['mapper']['markerNameToElements'](_0x440f8c['markerName']);if(_0x3983d8){for(const _0x46b1b4 of _0x3983d8)_0x46b1b4['getCustomProperty']('addHighlight')||(_0x57c960['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x46b1b4),_0x57c960['writer']['removeAttribute']('data-suggestion',_0x46b1b4),_0x57c960['writer']['removeAttribute']('data-author-id',_0x46b1b4),_0x57c960['mapper']['unbindElementFromMarkerName'](_0x46b1b4,_0x440f8c['markerName']));}},{'priority':'high'});}),_0x4bc5da['conversion']['for']('editingDowncast')['add'](_0x4efcb5=>{_0x4efcb5['on']('removeMarker:suggestion:attribute',(_0x3fba79,_0xbe8320,_0x53f2f7)=>{const _0xe623b4=_0x53f2f7['mapper']['markerNameToElements'](_0xbe8320['markerName']);if(!_0xe623b4)return;const {id:_0x229bb0}=this['_splitMarkerName'](_0xbe8320['markerName']),_0x4dde57=this['_suggestions']['get'](_0x229bb0),_0x51a92a=this['_getAttributeKey'](_0x4dde57);if(this['_isBlockAttribute'](_0x51a92a)){for(const _0x5e2202 of _0xe623b4)_0x5e2202['getCustomProperty']('addHighlight')||(_0x53f2f7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5e2202),_0x53f2f7['writer']['removeAttribute']('data-suggestion',_0x5e2202),_0x53f2f7['writer']['removeAttribute']('data-author-id',_0x5e2202),_0x53f2f7['mapper']['unbindElementFromMarkerName'](_0x5e2202,_0xbe8320['markerName']));}},{'priority':'high'});}),_0x4bc5da['model']['document']['registerPostFixer'](_0x15f7af=>{let _0x49dc94=!0x1;const _0x4b577c=Array['from'](_0x4bc5da['model']['document']['differ']['getChangedMarkers']()),_0x2346d9=new Set();for(const {name:_0x3b2d12,data:_0x3721ba}of _0x4b577c){const {group:_0x17f9df,type:_0x18e071,subType:_0x4eb8db,id:_0x2f2ade}=this['_splitMarkerName'](_0x3b2d12);if('suggestion'!==_0x17f9df)continue;const _0x4df067=_0x4eb8db?'suggestion:'+_0x18e071+':'+_0x4eb8db+':'+_0x2f2ade:'suggestion:'+_0x18e071+':'+_0x2f2ade,_0x111ac4=_0x4bc5da['model']['markers']['getMarkersGroup'](_0x4df067),_0x52d37a=_0x4bc5da['model']['markers']['get'](_0x3b2d12),_0x3c21e8=this['_suggestions']['get'](_0x2f2ade);if(null!=_0x3721ba['newRange']){'formatInline'==_0x18e071&&(_0x49dc94=_0x49dc94||Gt(_0x3721ba['newRange'],_0x3b2d12,_0x15f7af,_0x4bc5da['model']['schema']));const _0x598733='attribute'==_0x18e071&&this['_isBlockAttribute'](_0x4eb8db['split']('|')[0x0]),_0x4d090e='attribute'==_0x18e071&&this['_isInlineAttribute'](_0x4eb8db['split']('|')[0x0]);if(_0x3721ba['newRange']['isCollapsed']||'$graveyard'==_0x3721ba['newRange']['root']['rootName']||'formatBlock'==_0x18e071&&!Jt(_0x3721ba['newRange'])||_0x598733&&!Jt(_0x3721ba['newRange'])||_0x4d090e&&Kt(_0x3721ba['newRange'])||'deletion'==_0x18e071&&Kt(_0x3721ba['newRange'])||_0x52d37a&&Ht(_0x52d37a,_0x111ac4))_0x15f7af['removeMarker'](_0x3b2d12),_0x49dc94=!0x0;else{if(!_0x3c21e8||!_0x3c21e8['isInContent'])continue;if(_0x3721ba['newRange']&&_0x3721ba['oldRange']&&_0x3721ba['newRange']['isEqual'](_0x3721ba['oldRange']))continue;_0x2346d9['add'](_0x3c21e8);}}}return _0x2346d9['size']>0x0&&(_0x49dc94=!!this['_joinWithAdjacentSuggestions'](_0x2346d9)||_0x49dc94),_0x49dc94;}),_0x4bc5da['model']['document']['registerPostFixer'](_0x3c9854=>{let _0x24450e=!0x1;for(const _0x2e566d of _0x4bc5da['model']['document']['differ']['getChanges']())if('insert'==_0x2e566d['type'])for(const _0x238612 of this['_suggestions']['values']()){if(_0x238612['isMultiRange']||!_0x238612['isInContent'])continue;const _0x274ae1='formatBlock'==_0x238612['type'],_0x19fdf0=this['_getAttributeKey'](_0x238612),_0x58b0d8=_0x19fdf0&&this['_isBlockAttribute'](_0x19fdf0);if(!_0x274ae1&&!_0x58b0d8)continue;const _0x42ceb7=_0x238612['getFirstRange']();if(_0x42ceb7['start']['parent']!=_0x42ceb7['end']['parent']&&!_0x42ceb7['end']['isAtEnd']){const _0x5b8334=_0x4bc5da['model']['createPositionAt'](_0x42ceb7['start']['nodeAfter'],'end'),_0xee8972=_0x4bc5da['model']['createRange'](_0x42ceb7['start'],_0x5b8334);_0x3c9854['updateMarker'](_0x238612['getFirstMarker'](),{'range':_0xee8972}),_0x24450e=!0x0;}}return _0x24450e;}),_0x4bc5da['model']['document']['registerPostFixer'](_0x4983a7=>this['_processAttributeChanges'](_0x4983a7)),_0x4bc5da['model']['document']['registerPostFixer'](_0x1df677=>!_0x1df677['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1df677)),_0x4bc5da['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4bc5da['model']['document']['on']('change:data',(_0x5ca3f0,_0x28f14b)=>{if(!_0x28f14b['isLocal']||_0x28f14b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x303db=_0x4bc5da['model']['document']['differ']['getChanges']();if(0x0==_0x303db['length'])return;const _0x57ff24=[],_0x4d1e58=_0x303db['filter'](_0x538939=>'attribute'==_0x538939['type']),_0x1ebcd2=_0x303db['filter'](_0x2d0041=>'insert'==_0x2d0041['type']&&'$text'!=_0x2d0041['name']);for(const _0x1d74ad of _0x4d1e58)this['_isRegisteredAttribute'](_0x1d74ad['attributeKey'])&&_0x57ff24['push']({'key':_0x1d74ad['attributeKey'],'newValue':_0x1d74ad['attributeNewValue'],'oldValue':_0x1d74ad['attributeOldValue'],'range':qt(_0x1d74ad['range'],_0x4bc5da['model'])});for(const _0x5f1fdd of _0x1ebcd2){if('rename'!=_0x5f1fdd['action']&&'refresh'!=_0x5f1fdd['action'])continue;const _0x1bc603=zt(_0x5f1fdd['position']['nodeAfter'],_0x4bc5da['model']),_0x4a2298=_0x5f1fdd['before'];'rename'==_0x5f1fdd['action']&&_0x57ff24['push']({'key':m,'newValue':_0x5f1fdd['name'],'oldValue':_0x4a2298['name'],'range':_0x1bc603});for(const [_0x1f2977,_0x3e5d8f]of _0x4a2298['attributes']){if(!this['_isRegisteredAttribute'](_0x1f2977))continue;const _0x5effb0=_0x5f1fdd['attributes']['get'](_0x1f2977);_0x3e5d8f!==_0x5effb0&&_0x57ff24['push']({'key':_0x1f2977,'newValue':_0x5effb0,'oldValue':_0x3e5d8f,'range':_0x1bc603});}for(const [_0x1ea7c1,_0x9ed7c9]of _0x5f1fdd['attributes'])this['_isRegisteredAttribute'](_0x1ea7c1)&&(_0x4a2298['attributes']['has'](_0x1ea7c1)||_0x57ff24['push']({'key':_0x1ea7c1,'newValue':_0x9ed7c9,'oldValue':null,'range':_0x1bc603}));}0x0!=_0x57ff24['length']&&_0x4bc5da['model']['enqueueChange'](_0x28f14b,_0x551703=>{const _0x530ebb=_0x339e56();for(const {range:_0x5c6752,key:_0x1e6a8f,oldValue:_0x14ca19,newValue:_0x13610a}of _0x57ff24)this['markAttributeChange'](_0x5c6752,_0x1e6a8f,_0x14ca19,_0x13610a,{'groupId':_0x530ebb});this['_reduceExistingSuggestions'](_0x551703,_0x57ff24);});},{'priority':'lowest'}),_0x4bc5da['model']['markers']['on']('update:suggestion',(_0x62bb88,_0x8049f4,_0x29a030)=>{if(null==_0x29a030){const {id:_0x3f82cb}=this['_splitMarkerName'](_0x8049f4['name']),_0x1b74f8=this['_suggestions']['get'](_0x3f82cb);_0x1b74f8&&_0x1b74f8['addMarkerName'](_0x8049f4['name']);}}),_0x4bc5da['model']['document']['on']('change:data',()=>{const _0x61cdf8=Array['from'](_0x4bc5da['model']['document']['differ']['getChangedMarkers']())['filter'](_0x52525a=>'suggestion'===this['_splitMarkerName'](_0x52525a['name'])['group']);if(0x0===_0x61cdf8['length'])return;_0x61cdf8['sort']((_0x1a3853,_0x2aa16f)=>{const _0x1f7738=_0x1a3853['data']['oldRange'],_0x58a69c=_0x2aa16f['data']['oldRange'];return null===_0x1f7738&&null===_0x58a69c?0x0:null===_0x1f7738&&null!==_0x58a69c?-0x1:null!==_0x1f7738&&null===_0x58a69c?0x1:_0x1f7738['start']['isBefore'](_0x58a69c['start'])?-0x1:0x1;});const _0x3cd690=new Set(),_0x438e2e=new Set();for(const {name:_0x546191,data:_0x226874}of _0x61cdf8){const {id:_0x5c07dc}=this['_splitMarkerName'](_0x546191);if(null===_0x226874['oldRange']){const _0x59d2de=this['_handleNewSuggestionMarker'](_0x546191);_0x438e2e['add'](_0x59d2de);}else{const _0x183fee=this['_suggestions']['get'](_0x5c07dc);null!==_0x226874['newRange']||_0x183fee['isInContent']?(_0x3cd690['add'](_0x183fee['head']),_0x438e2e['add'](_0x183fee)):this['_removeSuggestion'](_0x183fee);}}_0x438e2e['size']>0x0&&this['_refreshSuggestionsChain'](_0x438e2e);for(const _0x5a465a of _0x3cd690)this['fire']('suggestionChanged',_0x5a465a);}),_0x4bc5da['model']['on']('applyOperation',(_0x32ebbc,_0x16c47f)=>{const _0x1f4abb=_0x16c47f[0x0];if(!this['_suggestions']['size'])return;if(!_0x1f4abb['isDocumentOperation'])return;if(_0x1f4abb['batch']['isUndo']||!_0x1f4abb['batch']['isLocal'])return;let _0x4c4c0b,_0x3f3782;switch(_0x1f4abb['type']){case'insert':_0x4c4c0b=_0x4bc5da['model']['createPositionAt'](_0x1f4abb['position']),_0x3f3782=_0x4c4c0b['getShiftedBy'](_0x1f4abb['howMany']);break;case'split':_0x4c4c0b=_0x4bc5da['model']['createPositionAt'](_0x1f4abb['splitPosition']),_0x3f3782=_0x4bc5da['model']['createPositionAt'](_0x1f4abb['moveTargetPosition']);break;case'move':_0x4c4c0b=_0x4bc5da['model']['createPositionAt'](_0x1f4abb['targetPosition']),_0x3f3782=_0x4c4c0b['getShiftedBy'](_0x1f4abb['howMany']);break;default:return;}const _0x5d71ca=_0x4bc5da['model']['createRange'](_0x4c4c0b,_0x3f3782);_0x4bc5da['model']['change'](()=>{for(const {suggestion:_0x47e6ca,meta:_0x1143c0}of this['_findSuggestions'](_0x5d71ca)){if(_0x47e6ca['isMultiRange'])continue;if('formatInline'==_0x47e6ca['type'])continue;const _0x3ac704=this['_getAttributeKey'](_0x47e6ca);if(_0x3ac704&&this['_isBlockAttribute'](_0x3ac704)&&'split'!=_0x1f4abb['type'])continue;const _0x3119a4=_0x47e6ca['data']&&_0x47e6ca['data']['multipleBlocks'];('formatBlock'!=_0x47e6ca['type']||'split'==_0x1f4abb['type']&&!_0x3119a4)&&(_0x1143c0['containsRangeInObject']||'insertion'==_0x47e6ca['type']&&_0x1143c0['isOwn']||_0x47e6ca['getFirstRange']()['containsRange'](_0x5d71ca)&&this['_breakSuggestionMarker'](_0x47e6ca,_0x4c4c0b,_0x3f3782));}});},{'priority':'lowest'}),_0x4bc5da['model']['on']('deleteContent',(_0x1cfa28,_0x491403)=>{const _0xa88636=_0x491403[0x0],_0x2e3325=_0x491403[0x1];if(_0x2e3325&&_0x2e3325['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xa88636['isCollapsed'])return;const _0x2e7ecc=_0x4bc5da['model']['schema'],{start:_0x23a057,end:_0x44c67b}=_0xa88636['getFirstRange'](),_0x3ce84a=_0x23a057['nodeAfter']&&_0x2e7ecc['isLimit'](_0x23a057['nodeAfter'])?null:_0x2e7ecc['getNearestSelectionRange'](_0x23a057,'forward'),_0x354f08=_0x44c67b['nodeBefore']&&_0x2e7ecc['isLimit'](_0x44c67b['nodeBefore'])?null:_0x2e7ecc['getNearestSelectionRange'](_0x44c67b,'backward'),_0x540d51=_0x4bc5da['model']['createRange'](_0x3ce84a?_0x3ce84a['start']:_0x23a057,_0x354f08?_0x354f08['end']:_0x44c67b);_0x4bc5da['model']['change'](_0x107287=>{this['markDeletion'](_0x540d51);const _0x287fba=_0x4bc5da['model']['schema']['getNearestSelectionRange'](_0x540d51['start']);_0xa88636['is']('documentSelection')?_0x107287['setSelection'](_0x287fba):_0xa88636['setTo'](_0x287fba);}),_0x1cfa28['stop']();},{'priority':_0x3b7ee3['normal']+0xa}),_0x4bc5da['model']['on']('insertContent',(_0x5f0ea5,_0x238c4a)=>{const _0x429344=_0x238c4a[_0x238c4a['length']-0x1];_0x429344&&_0x429344['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4bc5da['model']['change'](()=>{let _0x110f80=_0x4bc5da['model']['insertContent'](_0x238c4a[0x0],_0x238c4a[0x1],_0x238c4a[0x2],{'forceDefaultExecution':!0x0});if(!_0x110f80)return;_0x5f0ea5['return']=_0x110f80['clone']();const _0x93b51e=_0x110f80['end']['nodeBefore'],_0x1463bb=_0x4bc5da['model']['schema'];_0x93b51e&&_0x1463bb['isBlock'](_0x93b51e)&&!_0x1463bb['isObject'](_0x93b51e)&&(_0x110f80=_0x4bc5da['model']['createRange'](_0x110f80['start'],_0x4bc5da['model']['createPositionAt'](_0x93b51e,'end'))),this['markInsertion'](_0x110f80);}),_0x5f0ea5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x896d8d=new D(_0x4bc5da,this['_suggestions']);_0x4bc5da['commands']['add']('acceptSuggestion',_0x896d8d),this['enableCommand']('acceptSuggestion');const _0x48c01e=new $(_0x4bc5da,this['_suggestions']);_0x4bc5da['commands']['add']('discardSuggestion',_0x48c01e),this['enableCommand']('discardSuggestion'),_0x4bc5da['commands']['add']('acceptAllSuggestions',new M(_0x4bc5da,_0x896d8d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4bc5da['commands']['add']('discardAllSuggestions',new M(_0x4bc5da,_0x48c01e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4bc5da['commands']['add']('acceptSelectedSuggestions',new B(_0x4bc5da,_0x896d8d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4bc5da['commands']['add']('discardSelectedSuggestions',new B(_0x4bc5da,_0x48c01e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x30fc4a=_0x4bc5da['plugins']['get']('CommentsRepository');this['listenTo'](_0x30fc4a,'addComment',(_0x5b743b,{threadId:_0x589564})=>{const _0x4e160f=this['_suggestions']['get'](_0x589564);_0x4e160f&&_0x4e160f['commentThread']&&0x1===_0x4e160f['commentThread']['length']&&this['_updateSuggestionData'](_0x589564,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x30fc4a,'removeComment',(_0x70aa00,{threadId:_0x21bbde})=>{const _0x32d840=this['_suggestions']['get'](_0x21bbde);_0x32d840&&_0x32d840['commentThread']&&!_0x32d840['commentThread']['length']&&this['_updateSuggestionData'](_0x21bbde,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4269e7){const _0x2a90d5=_0x1b5fcc([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x38ebbf=0x6b0f5e6f,_0x2c548a=0x6b082c8f^_0x38ebbf,_0x3765a9=window[_0x1b5fcc([0x44,0x61,0x74,0x65])][_0x1b5fcc([0x6e,0x6f,0x77])](),_0x350c37=_0x4269e7[_0x1b5fcc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4759af=new window[(_0x1b5fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a9f6b=>{_0x350c37[_0x1b5fcc([0x6f,0x6e,0x63,0x65])](_0x1b5fcc([0x72,0x65,0x61,0x64,0x79]),_0x5a9f6b);}),_0x45d7b8={[_0x1b5fcc([0x6b,0x74,0x79])]:_0x1b5fcc([0x45,0x43]),[_0x1b5fcc([0x75,0x73,0x65])]:_0x1b5fcc([0x73,0x69,0x67]),[_0x1b5fcc([0x63,0x72,0x76])]:_0x1b5fcc([0x50,0x2d,0x32,0x35,0x36]),[_0x1b5fcc([0x78])]:_0x1b5fcc([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]),[_0x1b5fcc([0x79])]:_0x1b5fcc([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]),[_0x1b5fcc([0x61,0x6c,0x67])]:_0x1b5fcc([0x45,0x53,0x32,0x35,0x36])},_0x41260e=_0x350c37[_0x1b5fcc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1b5fcc([0x67,0x65,0x74])](_0x1b5fcc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x14ebda(){let _0x164d4d,_0x2be1d1=null,_0x1b45ec=null;try{if(_0x41260e==_0x1b5fcc([0x47,0x50,0x4c]))return _0x1b5fcc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x164d4d=_0x550141(),!_0x164d4d)return _0x1b5fcc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x164d4d[_0x1b5fcc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b45ec=_0x2c040c(_0x164d4d[_0x1b5fcc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x164d4d[_0x1b5fcc([0x6a,0x74,0x69])])),await _0x57e01b()?_0x5f1046()?_0x1c8ebd()?_0x1b5fcc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1672d9()?(_0x164d4d[_0x1b5fcc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b5fcc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2be1d1=_0x3b4f02(_0x1b5fcc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x164d4d[_0x1b5fcc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b5fcc([0x74,0x72,0x69,0x61,0x6c])&&(_0x2be1d1=_0x3b4f02(_0x1b5fcc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e018b()):_0x1b5fcc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1b5fcc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1b5fcc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1b5fcc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c8ebd(){const _0x202029=[_0x1b5fcc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1b5fcc([0x74,0x72,0x69,0x61,0x6c])][_0x1b5fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x164d4d[_0x1b5fcc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3765a9/0x3e8:0xe10*_0x2c548a;return _0x164d4d[_0x1b5fcc([0x65,0x78,0x70])]<_0x202029;}function _0x5f1046(){const _0x38e2a0=_0x164d4d[_0x1b5fcc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x38e2a0)return!0x1;if(_0x38e2a0[_0x1b5fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b5fcc([0x2a])))return!0x0;if(_0x38e2a0[_0x1b5fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b5fcc([0x54,0x43])))return!0x0;if(_0x38e2a0[_0x1b5fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b5fcc([0x52,0x54,0x43]))){if(_0xf1acf2())return!0x0;if(_0x4248d5()||_0x2f61a2())return!0x0;}return!0x1;}function _0x1672d9(){const _0x446868=_0x164d4d[_0x1b5fcc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x446868||0x0==_0x446868[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x15fc7b}=new URL(window[_0x1b5fcc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x446868[_0x1b5fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15fc7b))return!0x0;const _0x3b70e8=_0x15fc7b[_0x1b5fcc([0x73,0x70,0x6c,0x69,0x74])](_0x1b5fcc([0x2e]));return _0x446868[_0x1b5fcc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ad7c1=>_0x5ad7c1[_0x1b5fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b5fcc([0x2a])))[_0x1b5fcc([0x6d,0x61,0x70])](_0x475410=>_0x475410[_0x1b5fcc([0x73,0x70,0x6c,0x69,0x74])](_0x1b5fcc([0x2e])))[_0x1b5fcc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10fc1d=>_0x10fc1d[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3b70e8[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b5fcc([0x6d,0x61,0x70])](_0x519f0c=>Array(_0x3b70e8[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x519f0c[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b5fcc([0x66,0x69,0x6c,0x6c])](_0x519f0c[0x0]===_0x1b5fcc([0x2a])?_0x1b5fcc([0x2a]):'')[_0x1b5fcc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x519f0c))[_0x1b5fcc([0x73,0x6f,0x6d,0x65])](_0xb95b62=>_0x3b70e8[_0x1b5fcc([0x65,0x76,0x65,0x72,0x79])]((_0x4dcea5,_0x5a66ef)=>_0xb95b62[_0x5a66ef]===_0x4dcea5||_0xb95b62[_0x5a66ef]===_0x1b5fcc([0x2a])));}function _0x4e018b(){return _0x2be1d1&&_0x1b45ec?new window[(_0x1b5fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23b9f4,_0x573a8b)=>{_0x2be1d1[_0x1b5fcc([0x74,0x68,0x65,0x6e])](_0x23b9f4,_0x573a8b),_0x1b45ec[_0x1b5fcc([0x74,0x68,0x65,0x6e])](_0x338c02=>{_0x338c02!=_0x1b5fcc([0x56,0x61,0x6c,0x69,0x64])&&_0x23b9f4(_0x338c02);},_0x573a8b);}):_0x2be1d1||_0x1b45ec||_0x1b5fcc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2c040c(_0x209933,_0x7123b3){return new window[(_0x1b5fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37e82e=>{if(_0x1685fa())return _0x37e82e(_0x1b5fcc([0x56,0x61,0x6c,0x69,0x64]));_0x4ed627(),_0x350c37[_0x1b5fcc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1b5fcc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x495e70=!0x1;const _0x311150=_0x339e56();function _0xda36d7(_0x5b9652){return!!_0x5b9652&&(typeof _0x5b9652===_0x1b5fcc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b9652===_0x1b5fcc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b9652[_0x1b5fcc([0x74,0x68,0x65,0x6e])]===_0x1b5fcc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b9652[_0x1b5fcc([0x63,0x61,0x74,0x63,0x68])]===_0x1b5fcc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d2079(_0x4fa3ba){_0x1115b7(_0x4fa3ba)[_0x1b5fcc([0x74,0x68,0x65,0x6e])](_0x9f34bc=>{if(!_0x9f34bc||_0x9f34bc[_0x1b5fcc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1b5fcc([0x6f,0x6b]))return _0x1b5fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5f5067(_0x552d65(_0x311150+_0x7123b3))!=_0x9f34bc[_0x1b5fcc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1b5fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1b5fcc([0x56,0x61,0x6c,0x69,0x64]);})[_0x1b5fcc([0x74,0x68,0x65,0x6e])](_0x5532f0=>(_0x5b6def(),_0x5532f0),()=>{const _0x910834=_0x25a8a8();return null==_0x910834?(_0x5b6def(),_0x1b5fcc([0x56,0x61,0x6c,0x69,0x64])):_0x1b5fcc(_0x3765a9-_0x910834>(0x4f03da6f^_0x38ebbf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1b5fcc([0x74,0x68,0x65,0x6e])](_0x37e82e)[_0x1b5fcc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x37e82e(_0x1b5fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2dd58d=0x6b39b0ef^_0x38ebbf;function _0x5b6def(){const _0x1118d7=_0x1b5fcc([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f5067(_0x552d65(_0x209933)),_0x160e4c=_0x57a707(_0x5f5067(window[_0x1b5fcc([0x4d,0x61,0x74,0x68])][_0x1b5fcc([0x63,0x65,0x69,0x6c])](_0x3765a9/_0x2dd58d)));window[_0x1b5fcc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b5fcc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1118d7,_0x160e4c);}function _0x25a8a8(){const _0x498e4f=_0x1b5fcc([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f5067(_0x552d65(_0x209933)),_0x4eb868=window[_0x1b5fcc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b5fcc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x498e4f);return _0x4eb868?window[_0x1b5fcc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57a707(_0x4eb868),0x10)*_0x2dd58d:null;}function _0x1115b7(_0x29ee1e){return new window[(_0x1b5fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b5684,_0x12751d)=>{_0x29ee1e[_0x1b5fcc([0x74,0x68,0x65,0x6e])](_0x3b5684,_0x12751d),window[_0x1b5fcc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12751d,0x6b0e8aaf^_0x38ebbf);});}}_0x350c37[_0x1b5fcc([0x6f,0x6e])](_0x1b5fcc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f1e00,_0x4adae7)=>{if(_0x4adae7[0x0]!=_0x209933)return _0x37e82e(_0x1b5fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4adae7[0x1]={..._0x4adae7[0x1],[_0x1b5fcc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x311150};},{[_0x1b5fcc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b5fcc([0x68,0x69,0x67,0x68])}),_0x350c37[_0x1b5fcc([0x6f,0x6e])](_0x1b5fcc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x186767=>{_0xda36d7(_0x186767[_0x1b5fcc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x495e70=!0x0,_0x5d2079(_0x186767[_0x1b5fcc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1b5fcc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b5fcc([0x6c,0x6f,0x77])}),_0x4759af[_0x1b5fcc([0x74,0x68,0x65,0x6e])](()=>{_0x495e70||_0x37e82e(_0x1b5fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1685fa(){return _0x350c37[_0x1b5fcc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b5fcc([0x76,0x69,0x65,0x77])][_0x1b5fcc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1b5fcc([0x61,0x75,0x74,0x6f]);}function _0x4ed627(){_0x350c37[_0x1b5fcc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b5fcc([0x76,0x69,0x65,0x77])][_0x1b5fcc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b5fcc([0x61,0x75,0x74,0x6f]);}}function _0x3b4f02(_0x1ad82c){const _0x537181=[new window[(_0x1b5fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a7573=>setTimeout(_0x2a7573,0x6b0660a3^_0x38ebbf)),_0x4759af[_0x1b5fcc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1b5fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22078d=>{let _0x2735ff=0x0;_0x350c37[_0x1b5fcc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b5fcc([0x6f,0x6e])](_0x1b5fcc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40f031,_0x863d42)=>{_0x863d42[0x0][_0x1b5fcc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2735ff++,_0x2735ff==(0x6b0f5f97^_0x38ebbf)&&(_0x22078d(),_0x40f031[_0x1b5fcc([0x6f,0x66,0x66])]());});}))];return window[_0x1b5fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b5fcc([0x72,0x61,0x63,0x65])](_0x537181)[_0x1b5fcc([0x74,0x68,0x65,0x6e])](()=>_0x1ad82c);}async function _0x8f7757(){await _0x4759af,_0x350c37[_0x1b5fcc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b5fcc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f323c,_0x350c37[_0x1b5fcc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b5fcc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f323c,_0x350c37[_0x1b5fcc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1b5fcc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xf1acf2(){return _0x20846a(_0x1b5fcc([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2f1f64(_0x1b5fcc([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1b5fcc([0x73,0x74,0x61,0x74,0x65])]==_0x1b5fcc([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4248d5(){return _0x20846a(_0x1b5fcc([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 _0x2f61a2(){return _0x20846a(_0x1b5fcc([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x40849d(_0x4f144a){const _0x40999f=_0x233c05();_0x350c37[_0x40999f]=_0x1b5fcc([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f144a,_0x4f144a!=_0x1b5fcc([0x56,0x61,0x6c,0x69,0x64])&&_0x8f7757();}function _0x233c05(){const _0x49752e=window[_0x1b5fcc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1b5fcc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1b5fcc([0x6e,0x6f,0x77])]())[_0x1b5fcc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1b5fcc([0x2e]),'');let _0x5030ce=_0x1b5fcc([0x67]);for(let _0x55bfb9=0x0;_0x55bfb9<_0x49752e[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55bfb9+=0x2){let _0x55915d=window[_0x1b5fcc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49752e[_0x1b5fcc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55bfb9,_0x55bfb9+0x2));_0x55915d>=_0x2a90d5[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55915d-=_0x2a90d5[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5030ce+=_0x2a90d5[_0x55915d];}return _0x5030ce;}function _0x550141(){const _0x168628=_0x41260e[_0x1b5fcc([0x73,0x70,0x6c,0x69,0x74])](_0x1b5fcc([0x2e]));if(0x3!=_0x168628[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58370f(_0x168628[0x1]);function _0x58370f(_0x3744d7){const _0x17616e=_0x4ebe72(_0x3744d7);return _0x17616e&&_0x471dd6()?_0x17616e:null;function _0x471dd6(){const _0x46e2e0=_0x17616e[_0x1b5fcc([0x6a,0x74,0x69])],_0x2784cd=window[_0x1b5fcc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46e2e0[_0x1b5fcc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46e2e0[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x26a9ff={..._0x17616e,[_0x1b5fcc([0x6a,0x74,0x69])]:_0x46e2e0[_0x1b5fcc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x46e2e0[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x26a9ff[_0x1b5fcc([0x76,0x63])],_0x552d65(_0x26a9ff)==_0x2784cd;}}}async function _0x57e01b(){let _0x4496a0=!0x0;try{const _0x446873=_0x41260e[_0x1b5fcc([0x73,0x70,0x6c,0x69,0x74])](_0x1b5fcc([0x2e])),[_0x4e63ef,_0x3f84b3,_0xd95bf6]=_0x446873;return _0x41223b(_0x4e63ef),await _0x3f9425(_0x4e63ef,_0x3f84b3,_0xd95bf6),_0x4496a0;}catch{return!0x1;}function _0x41223b(_0x58989e){const _0x103a85=_0x4ebe72(_0x58989e);_0x103a85&&_0x103a85[_0x1b5fcc([0x61,0x6c,0x67])]==_0x1b5fcc([0x45,0x53,0x32,0x35,0x36])||(_0x4496a0=!0x1);}async function _0x3f9425(_0x486524,_0xfb5ffd,_0x3167f6){const _0x286ac0=window[_0x1b5fcc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1b5fcc([0x66,0x72,0x6f,0x6d])](_0x1cc2ec(_0x3167f6),_0x24956e=>_0x24956e[_0x1b5fcc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b47fd=new window[(_0x1b5fcc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1b5fcc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x486524+_0x1b5fcc([0x2e])+_0xfb5ffd),_0x4b1443=window[_0x1b5fcc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1b5fcc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b1443)return;const _0x4a02b4=await _0x4b1443[_0x1b5fcc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1b5fcc([0x6a,0x77,0x6b]),_0x45d7b8,{[_0x1b5fcc([0x6e,0x61,0x6d,0x65])]:_0x1b5fcc([0x45,0x43,0x44,0x53,0x41]),[_0x1b5fcc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1b5fcc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1b5fcc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b1443[_0x1b5fcc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1b5fcc([0x6e,0x61,0x6d,0x65])]:_0x1b5fcc([0x45,0x43,0x44,0x53,0x41]),[_0x1b5fcc([0x68,0x61,0x73,0x68])]:{[_0x1b5fcc([0x6e,0x61,0x6d,0x65])]:_0x1b5fcc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a02b4,_0x286ac0,_0x1b47fd)||(_0x4496a0=!0x1);}}function _0x4ebe72(_0x28a348){return _0x28a348[_0x1b5fcc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1b5fcc([0x65,0x79]))?JSON[_0x1b5fcc([0x70,0x61,0x72,0x73,0x65])](_0x1cc2ec(_0x28a348)):null;}function _0x1cc2ec(_0xac2ea1){return window[_0x1b5fcc([0x61,0x74,0x6f,0x62])](_0xac2ea1[_0x1b5fcc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1b5fcc([0x2b]))[_0x1b5fcc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1b5fcc([0x2f])));}function _0x552d65(_0x21328a){let _0x511380=0x1505;function _0x37399c(_0xf75acc){for(let _0x124a36=0x0;_0x124a36<_0xf75acc[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x124a36++){const _0x4e329f=_0xf75acc[_0x1b5fcc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x124a36);_0x511380=(_0x511380<<0x5)+_0x511380+_0x4e329f,_0x511380&=_0x511380;}}function _0x59c84f(_0x4784f5){Array[_0x1b5fcc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4784f5)?_0x4784f5[_0x1b5fcc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x59c84f):_0x4784f5&&typeof _0x4784f5==_0x1b5fcc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1b5fcc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4784f5)[_0x1b5fcc([0x73,0x6f,0x72,0x74])]()[_0x1b5fcc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a9b81,_0x5864b5])=>{_0x37399c(_0x2a9b81),_0x59c84f(_0x5864b5);}):_0x37399c(window[_0x1b5fcc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4784f5));}return _0x59c84f(_0x21328a),_0x511380>>>0x0;}function _0x5f5067(_0x53d7a2){return _0x53d7a2[_0x1b5fcc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1b5fcc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1b5fcc([0x30]));}function _0x57a707(_0x5b1aac){return _0x5b1aac[_0x1b5fcc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1b5fcc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1b5fcc([0x6a,0x6f,0x69,0x6e])]('');}function _0x20846a(_0x72ed2e){return _0x350c37[_0x1b5fcc([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1b5fcc([0x68,0x61,0x73])](_0x72ed2e);}function _0x2f1f64(_0x322c12){return _0x350c37[_0x1b5fcc([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1b5fcc([0x67,0x65,0x74])](_0x322c12);}function _0x3f323c(){}function _0x1b5fcc(_0x1f7ef1){return _0x1f7ef1['map'](_0x38e164=>String['fromCharCode'](_0x38e164))['join']('');}_0x40849d(await _0x14ebda());}(this);}set['adapter'](_0x1bcc58){if(this['_adapter'])throw new _0x484d49('track-changes-adapter-already-set',this);this['_adapter']=_0x1bcc58;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x30a490=!0x1,toJSON:_0x4783c0=!0x1}={}){const _0x31de3d=[];for(const _0x566a89 of this['_suggestions']['values']())_0x30a490&&!_0x566a89['isInContent']||_0x31de3d['push'](_0x566a89);return _0x4783c0?_0x31de3d['map'](_0x4b09ee=>_0x4b09ee['toJSON']()):_0x31de3d;}['getSuggestion'](_0x234c14){const _0x3ae8ae=this['_suggestions']['get'](_0x234c14);if(!_0x3ae8ae)throw new _0x484d49('track-changes-suggestion-not-found',this);return _0x3ae8ae;}['hasSuggestion'](_0x3fb047){return this['_suggestions']['has'](_0x3fb047);}['addSuggestionData'](_0x182a91){const {authorId:_0x187397,id:_0x36a43c,originalSuggestionId:_0x8682d8,attributes:_0x763ef}=_0x182a91,[_0x4dbe4f,_0x598b25]=_0x182a91['type']['split'](':'),_0x4912a6=this['_suggestions']['get'](_0x36a43c)||this['_createSuggestion'](_0x4dbe4f,_0x598b25,_0x36a43c,_0x187397,_0x763ef,_0x8682d8);if(this['_addThreadToSuggestion'](_0x4912a6),this['_checkSuggestionCorrectness'](_0x4912a6,_0x4dbe4f,_0x598b25||null,_0x187397),_0x4912a6['createdAt']=_0x182a91['createdAt'],_0x4912a6['_isDataLoaded']=!0x0,_0x763ef&&_0x763ef['@external']){const _0x2f49d5=_0x763ef['@external'],_0x508183=this['_getExternalAuthor'](_0x2f49d5['authorName']);_0x4912a6['authoredAt']=_0x2f49d5['createdAt'],_0x4912a6['author']=_0x508183,_0x4912a6['isExternal']=!0x0;}else _0x4912a6['authoredAt']=_0x182a91['createdAt'];switch(_0x182a91['data']&&(_0x4912a6['data']=_0x182a91['data']),_0x182a91['attributes']&&(_0x4912a6['attributes']=_0x182a91['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4912a6['_saved']=!0x0),this['_suggestionState']['get'](_0x4912a6)){case'notReady':this['_suggestionState']['set'](_0x4912a6,'dataReady');break;case'markerReady':_0x4912a6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4912a6])),this['_refreshSuggestionsChain'](new Set([_0x4912a6])),this['_suggestionState']['set'](_0x4912a6,'ready'),this['fire']('suggestionLoaded',_0x4912a6)):this['_suggestionState']['set'](_0x4912a6,'removed');}return _0x4912a6;}['acceptSuggestion'](_0x1989ee){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4bdd5e of _0x1989ee['getAllAdjacentSuggestions']())_0x4bdd5e['accept']();});});}['discardSuggestion'](_0x409e88){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2ee6e3 of _0x409e88['getAllAdjacentSuggestions']())_0x2ee6e3['discard']();});});}['enableCommand'](_0x4fba74,_0x1cc3aa){const _0x4eda85=this['editor']['commands']['get'](_0x4fba74);if(!_0x4eda85)throw new _0x484d49('track-changes-command-not-found',this,{'commandName':_0x4fba74});if(this['_enabledCommands']['has'](_0x4eda85))throw new _0x484d49('track-changes-enable-command-twice',this,{'commandName':_0x4fba74});this['_enabledCommands']['add'](_0x4eda85),_0x1cc3aa&&_0x4eda85['on']('execute',(_0x1b6a13,_0x55c4a6)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x55c4a6['length']>0x0&&_0x55c4a6[_0x55c4a6['length']-0x1]&&_0x55c4a6[_0x55c4a6['length']-0x1]['forceDefaultExecution']?_0x55c4a6['pop']():(_0x1b6a13['return']=_0x1cc3aa((..._0x5d0742)=>_0x4eda85['execute'](..._0x5d0742,{'forceDefaultExecution':!0x0}),..._0x55c4a6),_0x1b6a13['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3d0e2c){let _0x2f2f1c,_0x306cc6;const _0x3d461c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2f2f1c=_0x3d0e2c();}catch(_0x26bcee){_0x306cc6=_0x26bcee;}return _0x3d461c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x306cc6&&_0x484d49['rethrowUnexpectedError'](_0x306cc6,this),_0x2f2f1c;}['markInsertion'](_0x21de69,_0x3f4c64=null,_0x310787={}){if(_0x21de69['isCollapsed'])return null;const _0x26d285=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x310787['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5f42ad,meta:_0xa81a7e}of this['_findSuggestions'](_0x21de69,'insertion'))if(_0xa81a7e['isOwn']){if(!_0xa81a7e['isNextTo']){if(_0xa81a7e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x5f42ad,_0x310787))continue;return _0x5f42ad;}if(Xt(_0x5f42ad,_0x310787))return _0x5f42ad;this['_breakSuggestionMarker'](_0x5f42ad,_0x21de69['start'],_0x21de69['end']);break;}if(_0x3f4c64==_0x5f42ad['subType']&&Xt(_0x5f42ad,_0x310787)){const _0x4bea72=_0x5f42ad['getFirstRange']();return _0x4bea72['start']['isEqual'](_0x21de69['end'])?this['_setSuggestionRange'](_0x5f42ad,this['_model']['createRange'](_0x21de69['start'],_0x4bea72['end'])):this['_setSuggestionRange'](_0x5f42ad,this['_model']['createRange'](_0x4bea72['start'],_0x21de69['end'])),_0x5f42ad;}}const _0x56165e=_0x339e56(),_0x211e4d=_0x26d285['id'],_0x5251c9=_0x3f4c64?'insertion:'+_0x3f4c64:'insertion',_0x17902e=this['_setSuggestionData']({'id':_0x56165e,'type':_0x5251c9,'createdAt':new Date(),'authorId':_0x211e4d,'attributes':_0x310787});return this['_addSuggestionMarker'](_0x5251c9,_0x56165e,_0x211e4d,_0x21de69),_0x17902e;}['markMultiRangeInsertion'](_0x268c26,_0x3bab35='multi',_0x1f86a3={}){const _0xe8594e=this['editor']['plugins']['get']('Users')['me'],_0x182e7a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3bab35,'join');this['_trackingSessionId']&&(_0x1f86a3['trackingSessionId']=this['_trackingSessionId']);for(const _0x4b1eb3 of this['getSuggestions']())if(_0x4b1eb3['author']['id']==_0xe8594e['id']&&'insertion'==_0x4b1eb3['type']&&_0x4b1eb3['subType']==_0x3bab35&&Xt(_0x4b1eb3,_0x1f86a3)&&(_0x182e7a(_0x4b1eb3['getRanges'](),_0x268c26)||_0x182e7a(_0x268c26,_0x4b1eb3['getRanges']()))){for(const _0x4fd863 of _0x268c26)_0x4b1eb3['addRange'](_0x4fd863);return _0x4b1eb3;}for(const {suggestion:_0x510666,meta:_0x32f7ac}of this['_findSuggestions'](_0x268c26,'insertion')){if(!_0x32f7ac['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x32f7ac['containsRangeInObject'])continue;if(!Xt(_0x510666,_0x1f86a3))continue;let _0x19fa5b=!0x0;for(const _0x145377 of _0x510666['getRanges']())for(const _0x3756b6 of _0x268c26)if(!_0x145377['containsRange'](_0x3756b6)){_0x19fa5b=!0x1;break;}if(_0x19fa5b)return _0x510666;}const _0x2dad50=_0x339e56(),_0x23fe61=_0xe8594e['id'],_0x4c04fb='insertion:'+_0x3bab35,_0x3e1bf8=this['_setSuggestionData']({'id':_0x2dad50,'type':_0x4c04fb,'createdAt':new Date(),'authorId':_0x23fe61,'attributes':_0x1f86a3});for(const _0x253686 of _0x268c26)this['_addSuggestionMarker'](_0x4c04fb,_0x2dad50,_0x23fe61,_0x253686,T['getMultiRangeId']());return _0x3e1bf8;}['markInlineFormat'](_0x3f4a76,_0x1926b6,_0x17f4df=null,_0x5e00bd={}){if(_0x17f4df=_0x17f4df||Lt(_0x1926b6),_0x3f4a76['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5e00bd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x27636c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x17f4df,'accept');return this['forceDefaultExecution'](()=>_0x27636c([_0x3f4a76],_0x1926b6,_0x5e00bd)),null;}const _0x39c84f=this['editor']['plugins']['get']('Users')['me'],_0x25e211=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1e67ac,meta:_0x2d3eab}of this['_findSuggestions'](_0x3f4a76,'insertion'))_0x2d3eab['isOwn']&&!_0x2d3eab['isInsideObject']&&_0x25e211['push'](..._0x1e67ac['getRanges']());}const _0x27a556=function(_0x59eb11,_0x26f466){const _0x38fca2=[];for(const _0xd50797 of _0x26f466){const _0x4ffbbf=_0x59eb11['getIntersection'](_0xd50797);_0x4ffbbf&&_0x38fca2['push'](_0x4ffbbf);}return _0x38fca2;}(_0x3f4a76,_0x25e211),_0x5e447d=function(_0x33125f,_0x3bb182){const _0x225e31=[_0x33125f];for(const _0x86b0dd of _0x3bb182){let _0x30d225=0x0;for(;_0x30d225<_0x225e31['length'];){const _0x585d37=_0x225e31[_0x30d225]['getDifference'](_0x86b0dd);_0x225e31['splice'](_0x30d225,0x1,..._0x585d37),_0x30d225+=_0x585d37['length'];}}return _0x225e31;}(_0x3f4a76,_0x25e211);_0x27a556['length']&&this['_model']['change'](()=>{for(const _0x32b2a7 of _0x27a556){const _0x38c4f5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x17f4df,'accept');this['forceDefaultExecution'](()=>_0x38c4f5([_0x32b2a7],_0x1926b6,_0x5e00bd));}});for(const _0x55e0ea of _0x5e447d){let _0x4030ee=null,_0x348d6a=_0x55e0ea['start'],_0x412278=_0x55e0ea['end'];for(const {suggestion:_0x2cb087,meta:_0x2cb9dc}of this['_findSuggestions'](_0x55e0ea,'formatInline')){if(!_0x2cb9dc['isOwn'])continue;if(_0x2cb087['subType']!=_0x17f4df)continue;if(!Xt(_0x2cb087,_0x5e00bd))continue;const _0x9d021b=_0x2cb087['getFirstRange']();if(_0x9d021b['containsRange'](_0x55e0ea,!0x0))return null;_0x348d6a=_0x348d6a['isBefore'](_0x9d021b['start'])?_0x348d6a:_0x9d021b['start'],_0x412278=_0x412278['isAfter'](_0x9d021b['end'])?_0x412278:_0x9d021b['end'],_0x4030ee?_0x9d021b['start']['isBefore'](_0x4030ee['getFirstRange']()['start'])?(_0x4030ee['removeMarkers'](),_0x4030ee=_0x2cb087):_0x2cb087['removeMarkers']():_0x4030ee=_0x2cb087;}const _0x296bf1=this['_model']['createRange'](_0x348d6a,_0x412278);if(_0x4030ee)this['_setSuggestionRange'](_0x4030ee,_0x296bf1);else{const _0x2f8df6=_0x339e56(),_0x5bc880=_0x39c84f['id'];this['_setSuggestionData']({'id':_0x2f8df6,'type':'formatInline:'+_0x17f4df,'data':_0x1926b6,'createdAt':new Date(),'authorId':_0x5bc880,'attributes':_0x5e00bd}),this['_addSuggestionMarker']('formatInline:'+_0x17f4df,_0x2f8df6,_0x5bc880,_0x296bf1);}}return null;}['markBlockFormat'](_0x431c2a,_0x4b025a,_0x484359=[],_0x4fd1e4=null,_0x2695a0={}){_0x4b025a['formatGroupId']||(_0x4b025a['formatGroupId']=_0x4b025a['commandName']),_0x4b025a['multipleBlocks']=_0x431c2a['is']('range'),_0x4fd1e4=_0x4fd1e4||Lt(_0x4b025a);const _0x48da64=_0x484359['map'](_0x38858e=>zt(_0x38858e,this['_model'])),_0x14d4b8=_0x431c2a['is']('range')?_0x431c2a:zt(_0x431c2a,this['_model']);if(this['_trackingSessionId']&&(_0x2695a0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x592a37=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fd1e4,'accept');return this['forceDefaultExecution'](()=>_0x592a37([_0x14d4b8],_0x4b025a,_0x2695a0)),null;}_0x48da64['push'](_0x14d4b8);let _0x346786=!0x0;for(const _0x562cea of _0x48da64)if(!this['_rangeIsInLocalUserInsertion'](_0x562cea)){_0x346786=!0x1;break;}if(_0x346786&&'always'!==this['_trackFormatChanges']){const _0x52699a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fd1e4,'accept');return this['forceDefaultExecution'](()=>_0x52699a([_0x14d4b8],_0x4b025a,_0x2695a0)),null;}let _0x478b7e=null,_0x16859f=_0x14d4b8['start'],_0x558335=_0x14d4b8['end'];for(const {suggestion:_0x33b7a6,meta:_0x5e1944}of this['_findSuggestions'](_0x14d4b8,'formatBlock')){if(!_0x5e1944['isOwn'])continue;if(_0x5e1944['isNextTo']||_0x5e1944['containsRangeInObject']||_0x5e1944['isInsideObject'])continue;if(_0x33b7a6['data']['formatGroupId']!=_0x4b025a['formatGroupId'])continue;if(!Xt(_0x33b7a6,_0x2695a0))continue;const _0x4b8d7f=_0x33b7a6['getFirstRange']();if(_0x33b7a6['subType']==_0x4fd1e4){if(_0x4b8d7f['containsRange'](_0x14d4b8,!0x0))return null;_0x16859f=_0x16859f['isBefore'](_0x4b8d7f['start'])?_0x16859f:_0x4b8d7f['start'],_0x558335=_0x558335['isAfter'](_0x4b8d7f['end'])?_0x558335:_0x4b8d7f['end'],_0x478b7e?_0x4b8d7f['start']['isBefore'](_0x478b7e['getFirstRange']()['start'])?(_0x478b7e['removeMarkers'](),_0x478b7e=_0x33b7a6):_0x33b7a6['removeMarkers']():_0x478b7e=_0x33b7a6;}else{const _0x23f0aa=_0x14d4b8['getIntersection'](_0x4b8d7f);this['_cutOutSuggestionMarker'](_0x33b7a6,_0x23f0aa);}}const _0x26c4ad=this['editor']['plugins']['get']('Users')['me'],_0x6d982d=_0x339e56(),_0x46ee9b=_0x26c4ad['id'];if(_0x478b7e)return this['_setSuggestionRange'](_0x478b7e,this['_model']['createRange'](_0x16859f,_0x558335)),_0x478b7e;{const _0x29caa9=this['_setSuggestionData']({'id':_0x6d982d,'type':'formatBlock:'+_0x4fd1e4,'data':_0x4b025a,'createdAt':new Date(),'authorId':_0x46ee9b,'attributes':_0x2695a0});return this['_addSuggestionMarker']('formatBlock:'+_0x4fd1e4,_0x6d982d,_0x46ee9b,this['_model']['createRange'](_0x16859f,_0x558335)),_0x29caa9;}}['markMultiRangeBlockFormat'](_0x437e5e,_0x539aa8,_0x578671=[],_0x13fa1c=null,_0x278725={}){_0x539aa8['formatGroupId']||(_0x539aa8['formatGroupId']=_0x539aa8['commandName']);const _0x1ed5be=_0x437e5e[0x0];_0x539aa8['multipleBlocks']=_0x1ed5be['is']('range'),_0x13fa1c=_0x13fa1c||Lt(_0x539aa8);const _0x262849=_0x578671['map'](_0x553312=>zt(_0x553312,this['_model'])),_0x3ecd0c=_0x1ed5be['is']('range')?_0x437e5e:_0x437e5e['map'](_0x5c7b7a=>zt(_0x5c7b7a,this['_model']));if(this['_trackingSessionId']&&(_0x278725['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x140035=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13fa1c,'accept');return this['forceDefaultExecution'](()=>_0x140035(_0x3ecd0c,_0x539aa8,_0x278725)),null;}_0x262849['push'](..._0x3ecd0c);let _0x49fea2=!0x0;for(const _0x4def16 of _0x262849)if(!this['_rangeIsInLocalUserInsertion'](_0x4def16)){_0x49fea2=!0x1;break;}if(_0x49fea2&&'always'!==this['_trackFormatChanges']){const _0x5af95c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13fa1c,'accept');return this['forceDefaultExecution'](()=>_0x5af95c(_0x3ecd0c,_0x539aa8,_0x278725)),null;}const _0x5e3776=this['editor']['plugins']['get']('Users')['me'];for(const _0x1be9bf of this['getSuggestions']()){const _0x4bba55=_0x1be9bf['data'];if(_0x1be9bf['author']['id']!=_0x5e3776['id'])continue;if('formatBlock'!=_0x1be9bf['type']||_0x4bba55['formatGroupId']!=_0x539aa8['formatGroupId'])continue;if(!Xt(_0x1be9bf,_0x278725))continue;const _0xa89a9a=_0x1be9bf['subType']==_0x13fa1c;for(let _0x1ecb87=0x0;_0x1ecb87<_0x3ecd0c['length'];_0x1ecb87++){const _0x5c3301=_0x3ecd0c[_0x1ecb87];for(const _0x472efd of _0x1be9bf['getMarkers']()){const _0x20f949=_0x472efd['getRange']();if(_0x5c3301['isEqual'](_0x20f949)){_0xa89a9a?(_0x3ecd0c['splice'](_0x1ecb87,0x1),_0x1ecb87--):_0x1be9bf['removeMarker'](_0x472efd['name']);break;}}}}if(0x0==_0x3ecd0c['length'])return null;const _0x5e455d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13fa1c,'join');for(const _0x166d29 of this['getSuggestions']()){const _0x418171=_0x166d29['data'];if(_0x166d29['author']['id']==_0x5e3776['id']&&('formatBlock'==_0x166d29['type']&&_0x418171['formatGroupId']==_0x539aa8['formatGroupId']&&_0x166d29['subType']==_0x13fa1c&&Xt(_0x166d29,_0x278725)&&(_0x5e455d(_0x166d29['getRanges'](),_0x3ecd0c)||_0x5e455d(_0x3ecd0c,_0x166d29['getRanges']())))){for(const _0x4e0942 of _0x3ecd0c)_0x166d29['addRange'](_0x4e0942);return _0x166d29;}}const _0x13c90d=_0x339e56(),_0x3654f6=_0x5e3776['id'],_0x3bf721='formatBlock:'+_0x13fa1c,_0x4302c7=this['_setSuggestionData']({'id':_0x13c90d,'type':_0x3bf721,'data':_0x539aa8,'createdAt':new Date(),'authorId':_0x3654f6,'attributes':_0x278725});for(const _0x263c07 of _0x3ecd0c)this['_addSuggestionMarker'](_0x3bf721,_0x13c90d,_0x3654f6,_0x263c07,T['getMultiRangeId']());return _0x4302c7;}['markDeletion'](_0x27116c,_0x31c37a=null,_0x44f2bc={}){if(_0x27116c['isCollapsed'])return null;const _0x2642f2=this['editor']['plugins']['get']('Users')['me'],_0x5aabf1=new _0x41eab8(_0x27116c['start'],_0x27116c['end']);this['_trackingSessionId']&&(_0x44f2bc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xdb847f,meta:_0x5630ae}of this['_findSuggestions'](_0x5aabf1,'insertion'))if(_0x5630ae['isOwn']&&!_0x5630ae['isNextTo']){if(_0xdb847f['isMultiRange']){const _0x216dbe=_0xdb847f['getRanges']()['filter'](_0x362d0e=>'$graveyard'!=_0x362d0e['root']['rootName']);_0x216dbe['every'](_0x5d3e5c=>_0x5aabf1['containsRange'](_0x5d3e5c,!0x0))&&_0xdb847f['discard']();if(_0x216dbe['some'](_0x504707=>_0x504707['containsRange'](_0x5aabf1,!0x0))){const _0x293aac=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31c37a,'accept');return this['forceDefaultExecution'](()=>_0x293aac([_0x5aabf1],null,_0x44f2bc)),null;}}else{const _0x4fc196=_0x5aabf1['getIntersection'](_0xdb847f['getFirstRange']());null!==_0x4fc196&&_0xdb847f['_onDiscard']([_0x4fc196],null,_0x44f2bc);}}if(_0x5aabf1['detach'](),_0x5aabf1['isCollapsed']||'$graveyard'==_0x5aabf1['root']['rootName'])return null;let _0xf9d840=null,_0x50bf15=_0x5aabf1['start'],_0xe192d8=_0x5aabf1['end'];const _0x3db73f=this['_findSuggestions'](_0x5aabf1,'deletion');for(const {suggestion:_0x503fc7,meta:_0x1caa35}of _0x3db73f){const _0xe2330c=this['_model']['createRange'](_0x50bf15,_0xe192d8);if(_0x1caa35['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1caa35['containsRangeInObject']&&!_0x1caa35['isInsideObject'])){if(_0x503fc7['isMultiRange']){if(!Xt(_0x503fc7,_0x44f2bc))continue;let _0x17d7ef=!0x0;for(const _0x5b87a1 of _0x503fc7['getRanges']()){if(_0x5b87a1['containsRange'](_0xe2330c,!0x0))return _0x503fc7;_0xe2330c['containsRange'](_0x5b87a1)||(_0x17d7ef=!0x1);}_0x17d7ef&&_0x503fc7['discard']();}else{const _0x25712d=_0x503fc7['getFirstRange']();if(_0x25712d['containsRange'](_0xe2330c,!0x0))return _0x503fc7;if(!Xt(_0x503fc7,_0x44f2bc)){_0xe2330c['containsRange'](_0x25712d)?_0x503fc7['removeMarkers']():_0x25712d['containsPosition'](_0x50bf15)?_0x50bf15=_0x25712d['end']:_0x25712d['containsPosition'](_0xe192d8)&&(_0xe192d8=_0x25712d['start']);continue;}_0x50bf15=_0x50bf15['isBefore'](_0x25712d['start'])?_0x50bf15:_0x25712d['start'],_0xe192d8=_0xe192d8['isAfter'](_0x25712d['end'])?_0xe192d8:_0x25712d['end'],_0x44f2bc=Object['assign']({},_0x503fc7['attributes']),_0xf9d840?_0x25712d['start']['isBefore'](_0xf9d840['getFirstRange']()['start'])?(_0xf9d840['removeMarkers'](),_0xf9d840=_0x503fc7):_0x503fc7['removeMarkers']():_0xf9d840=_0x503fc7;}}}if(_0xf9d840)return this['_setSuggestionRange'](_0xf9d840,this['_model']['createRange'](_0x50bf15,_0xe192d8)),_0xf9d840;{const _0x1e0f3f=_0x339e56(),_0x15ed5f=this['_model']['createRange'](_0x50bf15,_0xe192d8),_0x14a493=_0x2642f2['id'],_0x3f8cf0=_0x31c37a?'deletion:'+_0x31c37a:'deletion',_0xf2b566=this['_setSuggestionData']({'id':_0x1e0f3f,'type':_0x3f8cf0,'createdAt':new Date(),'authorId':_0x14a493,'attributes':_0x44f2bc});return this['_addSuggestionMarker'](_0x3f8cf0,_0x1e0f3f,_0x14a493,_0x15ed5f),_0xf2b566;}}['markMultiRangeDeletion'](_0x2e71cc,_0x740121='multi',_0x3ead3d={}){const _0x4d633a=this['editor']['plugins']['get']('Users')['me'],_0x3f5c93=_0x2e71cc['map'](_0x464ce1=>new _0x41eab8(_0x464ce1['start'],_0x464ce1['end'])),_0x140aef=new Set();this['_trackingSessionId']&&(_0x3ead3d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x58a8c1,meta:_0x5bd7f3}of this['_findSuggestions'](_0x3f5c93,'insertion'))_0x5bd7f3['isOwn']&&!_0x5bd7f3['isNextTo']&&_0x140aef['add'](_0x58a8c1);for(const _0x40c0f4 of _0x140aef)if(_0x40c0f4['isMultiRange']){const _0x59aa5c=_0x40c0f4['getRanges']();(!_0x40c0f4['attributes']||!_0x40c0f4['attributes']['skipNestingCheck'])&&(_0x59aa5c['every'](_0x3f0581=>_0x3f5c93['some'](_0x423f8e=>_0x423f8e['containsRange'](_0x3f0581,!0x0)))&&_0x40c0f4['discard']());if(_0x3f5c93['every'](_0x3a8c5f=>_0x59aa5c['some'](_0x19888a=>_0x19888a['containsRange'](_0x3a8c5f,!0x0)))){const _0x237eab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x740121,'accept');return this['forceDefaultExecution'](()=>_0x237eab(_0x2e71cc,null,_0x3ead3d)),null;}}else{const _0x24aaa2=_0x40c0f4['getFirstRange']();_0x3f5c93['some'](_0x4f694f=>_0x4f694f['containsRange'](_0x24aaa2,!0x0))&&_0x40c0f4['discard']();if(_0x3f5c93['every'](_0x17b199=>_0x24aaa2['containsRange'](_0x17b199,!0x0))){const _0x1f14c2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x740121,'accept');return this['forceDefaultExecution'](()=>_0x1f14c2(_0x3f5c93,null,_0x3ead3d)),null;}}const _0xb49c8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x740121,'join');let _0xe38d05=null;for(const _0xdc5687 of this['getSuggestions']())if(_0xdc5687['author']['id']==_0x4d633a['id']&&_0xdc5687['isInContent']&&'deletion'==_0xdc5687['type']&&_0xdc5687['subType']==_0x740121&&Xt(_0xdc5687,_0x3ead3d)&&(_0xb49c8(_0xdc5687['getRanges'](),_0x3f5c93)||_0xb49c8(_0x3f5c93,_0xdc5687['getRanges']()))){if(_0xe38d05){if(_0xdc5687['commentThread']&&_0xdc5687['commentThread']['length'])continue;for(const _0x1df409 of _0xdc5687['getRanges']())_0xe38d05['isIntersectingWithRange'](_0x1df409)||_0xe38d05['addRange'](_0x1df409);_0xdc5687['removeMarkers']();}else{_0xe38d05=_0xdc5687;for(const _0x20e148 of _0x3f5c93)_0xdc5687['isIntersectingWithRange'](_0x20e148)||_0xdc5687['addRange'](_0x20e148);}}if(_0xe38d05)return _0xe38d05;_0x140aef['clear']();for(const {suggestion:_0x114a8c,meta:_0x3fdab3}of this['_findSuggestions'](_0x3f5c93,'deletion'))_0x3fdab3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3fdab3['containsRangeInObject']&&!_0x3fdab3['isInsideObject'])&&Xt(_0x114a8c,_0x3ead3d)&&_0x140aef['add'](_0x114a8c);for(const _0x4b33b4 of _0x140aef){const _0x443e3b=_0x4b33b4['getRanges']();if(!_0x3ead3d||!_0x3ead3d['skipNestingCheck']){if(_0x3f5c93['every'](_0x2868ae=>_0x443e3b['some'](_0x161c9c=>_0x161c9c['containsRange'](_0x2868ae,!0x0))))return _0x4b33b4;}(!_0x4b33b4['attributes']||!_0x4b33b4['attributes']['skipNestingCheck'])&&(_0x443e3b['every'](_0x289558=>_0x3f5c93['some'](_0x47b81b=>_0x47b81b['containsRange'](_0x289558,!0x0)))&&_0x4b33b4['discard']());}const _0x52a291=_0x339e56(),_0x26c641=_0x4d633a['id'],_0x6fc962='deletion:'+_0x740121,_0x5b950e=this['_setSuggestionData']({'id':_0x52a291,'type':_0x6fc962,'createdAt':new Date(),'authorId':_0x26c641,'attributes':_0x3ead3d});for(const _0x1a402c of _0x3f5c93)_0x1a402c['detach'](),_0x1a402c['isCollapsed']||'$graveyard'==_0x1a402c['root']['rootName']||this['_addSuggestionMarker'](_0x6fc962,_0x52a291,_0x26c641,_0x1a402c,T['getMultiRangeId']());return _0x5b950e;}['markAttributeChange'](_0x695d,_0x539413,_0xe89b4,_0x582508,_0x4ab931){if(_0x695d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3a10d0=this['editor']['plugins']['get']('Users')['me']['id'],_0x89c2cb=Array['from'](this['_suggestions']['values']())['filter'](_0x568d4f=>'attribute'==_0x568d4f['type']&&_0x568d4f['data']['key']==_0x539413&&_0x568d4f['isIntersectingWithRange'](_0x695d));if(this['_trackingSessionId']&&(_0x4ab931['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x527f34=this['_findSuggestions'](_0x695d,'insertion')['filter'](({meta:_0x1183d8})=>_0x1183d8['isOwn']&&!_0x1183d8['isInsideObject']&&!_0x1183d8['isNextTo'])['map'](({suggestion:_0x4676fb})=>_0x4676fb);_0x89c2cb['unshift'](..._0x527f34);}const _0x2d53d7=new Map([[_0x695d,_0xe89b4]]);for(const _0x2d4c51 of _0x89c2cb){const _0x246046='attribute'==_0x2d4c51['type']?_0x2d4c51['data']['oldValue']:void 0x0,_0x181b7=_0x2d4c51['getFirstRange'](),_0x7fc3f4=Array['from'](_0x2d53d7['keys']())['find'](_0x327fa6=>_0x327fa6['isIntersecting'](_0x181b7));if(!_0x7fc3f4)continue;const _0x47bb35=_0x7fc3f4['getDifference'](_0x181b7);this['_isBlockAttribute'](_0x539413)&&'insertion'==_0x2d4c51['type']&&0x0!=_0x47bb35['length']||(_0x2d53d7['delete'](_0x7fc3f4),_0x47bb35['forEach'](_0x55739a=>{_0x2d53d7['set'](_0x55739a,_0xe89b4);}),'insertion'!=_0x2d4c51['type']&&_0x246046!=_0x582508&&_0x2d53d7['set'](_0x7fc3f4['getIntersection'](_0x181b7),_0x246046));}const _0x4befb7=[];for(const [_0x58b159,_0x5c353c]of _0x2d53d7){const _0x374bc5=_0x339e56(),_0x431f52={'key':_0x539413,'oldValue':_0x5c353c,'newValue':_0x582508};_0x539413['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':_0x539413});const _0x11c237=('attribute:'+(_0x539413+'|'+Lt({'newValue':_0x582508})))['substring'](0x0,0x3c),_0x1c8a03=this['_setSuggestionData']({'id':_0x374bc5,'type':_0x11c237,'data':_0x431f52,'createdAt':new Date(),'authorId':_0x3a10d0,'attributes':_0x4ab931});_0x4befb7['push'](_0x1c8a03),this['_addSuggestionMarker'](_0x11c237,_0x374bc5,_0x3a10d0,_0x58b159);}return _0x4befb7;}['enableDefaultAttributesIntegration'](_0x2281f8){this['enableCommand'](_0x2281f8,(_0x4a2ef1,..._0x5a23cd)=>{this['recordAttributeChanges'](()=>{_0x4a2ef1(..._0x5a23cd);});});}['registerBlockAttribute'](_0x517d20){this['_blockAttributeKeys']['add'](_0x517d20);}['registerInlineAttribute'](_0x21fa30){this['_inlineAttributeKeys']['add'](_0x21fa30);}['startTrackingSession'](_0x399b92){return this['_trackingSessionId']=void 0x0!==_0x399b92?_0x399b92:_0x339e56(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1e77fe){return'attribute'==_0x1e77fe['type']?_0x1e77fe['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2ca0cd,_0x38054b){const _0x4d429c=_0x2ca0cd['getFirstMarker']();this['_model']['change'](_0x22864e=>{_0x22864e['updateMarker'](_0x4d429c,{'range':_0x38054b});});}['_addThreadToSuggestion'](_0x19f9fd){const _0x51f47e=_0x19f9fd['id'],_0x35ab04=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x51f47e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x35ab04,'threadId':_0x51f47e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x23d23b=this['_commentsRepository']['getCommentThread'](_0x51f47e);_0x23d23b['unbind']('isRemovable'),_0x23d23b['isRemovable']=!0x1,_0x19f9fd['commentThread']=_0x23d23b;}['_checkSuggestionCorrectness'](_0x36a5cd,_0x4d8035,_0x34d803,_0x4fd583){if(_0x36a5cd['type']!=_0x4d8035||_0x36a5cd['subType']!=_0x34d803||_0x36a5cd['creator']['id']!=_0x4fd583)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x484d49('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xca4932,_0x348380){const _0xb294f0=_0xca4932['getFirstRange']();if(_0x348380['isEqual'](_0xb294f0))_0xca4932['removeMarkers']();else{if(_0xb294f0['containsRange'](_0x348380)){const _0x2a8cea=this['_model']['createPositionAt'](_0x348380['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xca4932,this['_model']['createRange'](_0xb294f0['start'],_0x2a8cea));const _0x5406f0=_0x339e56(),_0x55b5be=_0xca4932['creator']['id'],_0x4ffdeb=_0xca4932['type']+':'+_0xca4932['subType'];this['_setSuggestionData']({'id':_0x5406f0,'type':_0x4ffdeb,'createdAt':new Date(),'authorId':_0x55b5be,'data':_0xca4932['data'],'attributes':_0xca4932['attributes']});const _0x34ee78=this['_model']['createPositionAt'](_0x348380['end']['parent'],'after'),_0x29be37=this['_model']['createRange'](_0x34ee78,_0xb294f0['end']);this['_addSuggestionMarker'](_0x4ffdeb,_0x5406f0,_0x55b5be,_0x29be37);}else{if(_0xb294f0['containsPosition'](_0x348380['start'])){const _0x1738f1=this['_model']['createPositionAt'](_0x348380['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xca4932,this['_model']['createRange'](_0xb294f0['start'],_0x1738f1));}else{const _0x5ce771=this['_model']['createPositionAt'](_0x348380['end']['parent'],'after');this['_setSuggestionRange'](_0xca4932,this['_model']['createRange'](_0x5ce771,_0xb294f0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x57f67a){for(const {suggestion:_0x498c76,meta:_0x3d08d7}of this['_findSuggestions'](_0x57f67a,'insertion')){if(!_0x3d08d7['isOwn'])continue;const _0x388922=_0x498c76['getRanges']();for(const _0x141568 of _0x388922)if(!_0x57f67a['getDifference'](_0x141568)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xc1f89e){return this['editor']['plugins']['get']('Users')['getUser'](_0xc1f89e);}['_getExternalAuthor'](_0x2723fc){const _0x1748d2=this['editor']['plugins']['get']('Users'),_0x1f62c4=_0x5d6409('external:'+_0x2723fc),_0x2c5aa3=_0x1748d2['getUser'](_0x1f62c4);return _0x2c5aa3||_0x1748d2['addUser']({'id':_0x1f62c4,'name':_0x2723fc});}['_createSuggestion'](_0x229f75,_0x2902d8,_0x3b01d5,_0x531605,_0x143c10,_0x5c43bb){const _0x5ec556=this['_getAuthorFromId'](_0x531605);if(!_0x5ec556)throw new _0x484d49('track-changes-user-not-found',this,{'authorId':_0x531605,'suggestionId':_0x3b01d5});const _0x1c5dfc=this['_suggestionFactory']['buildSuggestion'](_0x229f75,_0x2902d8,_0x3b01d5,_0x5ec556,_0x143c10,_0x5ae73f=>{this['_updateSuggestionData'](_0x3b01d5,{'attributes':_0x5ae73f});const _0x43791a=this['getSuggestion'](_0x3b01d5);this['_joinWithAdjacentSuggestions'](new Set([_0x43791a])),this['_refreshSuggestionsChain'](new Set([_0x43791a]));},_0x5c43bb);return this['listenTo'](_0x1c5dfc,'accept',()=>{this['_updateSuggestionData'](_0x3b01d5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1c5dfc,'discard',()=>{this['_updateSuggestionData'](_0x3b01d5,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3b01d5,_0x1c5dfc),this['_suggestionState']['set'](_0x1c5dfc,'notReady'),_0x1c5dfc;}['_splitMarkerName'](_0x3281d6){const _0x4b8ab4=_0x3281d6['split'](':');return{'group':_0x4b8ab4[0x0],'type':_0x4b8ab4[0x1],'subType':_0x4b8ab4['length']>=0x5?_0x4b8ab4[0x2]:null,'id':_0x4b8ab4['length']<0x5?_0x4b8ab4[0x2]:_0x4b8ab4[0x3],'authorId':_0x4b8ab4['length']<0x5?_0x4b8ab4[0x3]:_0x4b8ab4[0x4],'markerCount':0x6==_0x4b8ab4['length']?_0x4b8ab4[0x5]:null};}['_breakSuggestionMarker'](_0x2cc499,_0x2e34fa,_0x109c7a){const _0x3c0d48=_0x2cc499['getFirstRange'](),_0x2826d7=_0x3c0d48['start'],_0x319fb2=_0x3c0d48['end'];this['_setSuggestionRange'](_0x2cc499,this['_model']['createRange'](_0x2826d7,_0x2e34fa));const _0x495372=_0x339e56(),_0x29c4b5=_0x2cc499['creator']['id'],_0x384283=_0x2cc499['type']+(_0x2cc499['subType']?':'+_0x2cc499['subType']:'');this['_setSuggestionData']({'id':_0x495372,'type':_0x384283,'createdAt':new Date(),'authorId':_0x29c4b5,'originalSuggestionId':_0x2cc499['_originalSuggestionId']||_0x2cc499['id'],'attributes':_0x2cc499['attributes'],'data':_0x2cc499['data']});const _0x5d39d5=this['_getAttributeKey'](_0x2cc499);('formatBlock'==_0x2cc499['type']||_0x5d39d5&&this['_isBlockAttribute'](_0x5d39d5))&&(_0x109c7a=this['_model']['createPositionBefore'](_0x109c7a['parent'])),this['_addSuggestionMarker'](_0x384283,_0x495372,_0x29c4b5,this['_model']['createRange'](_0x109c7a,_0x319fb2));}['_findSuggestions'](_0x603364,_0x4433cc=null){const _0x53b939=[],_0x1dd89a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x603364)||(_0x603364=[_0x603364]);for(const _0x22ad7a of this['getSuggestions']()){if(!_0x22ad7a['isInContent'])continue;if(_0x4433cc&&_0x22ad7a['type']!=_0x4433cc)continue;let _0x1fa009=!0x1;for(const _0x545904 of _0x22ad7a['getRanges']()){for(const _0x124049 of _0x603364){const _0x23958e=_0x124049['start']['isEqual'](_0x545904['end'])||_0x124049['end']['isEqual'](_0x545904['start']);if(_0x23958e||_0x124049['getIntersection'](_0x545904)){const _0x125986=_0x124049['containsRange'](_0x545904)&&Ft(this['_model']['schema'],_0x545904['start'],_0x124049),_0x8ba1d0=_0x545904['containsRange'](_0x124049)&&Ft(this['_model']['schema'],_0x124049['start'],_0x545904);_0x53b939['push']({'suggestion':_0x22ad7a,'meta':{'isOwn':_0x1dd89a==_0x22ad7a['author'],'isNextTo':_0x23958e,'isInsideObject':_0x125986,'containsRangeInObject':_0x8ba1d0}}),_0x1fa009=!0x0;break;}}if(_0x1fa009)break;}}return _0x53b939;}['_addSuggestionMarker'](_0x4ee550,_0x2a53f0,_0x3c41da,_0x21b317,_0x4abd01){this['_model']['change'](_0x2412c0=>{let _0x538c14='suggestion:'+_0x4ee550+':'+_0x2a53f0+':'+_0x3c41da;_0x4abd01&&(_0x538c14=_0x538c14+':'+_0x4abd01),_0x2412c0['addMarker'](_0x538c14,{'range':_0x21b317,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x24345a){const _0x257070=_0x24345a['previous'],_0x53159f=_0x24345a['next'];_0x24345a['previous']=null,_0x24345a['next']=null,null!=_0x257070&&_0x257070['next']==_0x24345a&&(_0x257070['next']=_0x53159f),null!=_0x53159f&&_0x53159f['previous']==_0x24345a&&(_0x53159f['previous']=_0x257070),'ready'==this['_suggestionState']['get'](_0x24345a)&&(this['_suggestionState']['set'](_0x24345a,'removed'),this['fire']('suggestionUnloaded',_0x24345a,_0x257070,_0x53159f));}['_setSuggestionData'](_0x35113c){const _0x4a6814=_0x35113c['id'],_0x2414a9=this['addSuggestionData'](_0x35113c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x269a68=this['editor']['plugins']['get']('PendingActions'),_0x22cb33=_0x2414a9['hasComments'],_0x1e331a=_0x2414a9['subType']?_0x2414a9['type']+':'+_0x2414a9['subType']:_0x2414a9['type'],_0x42bffa=this['editor']['locale'],_0x271675=_0x269a68['add'](o(_0x42bffa,'PENDING_ACTION_SUGGESTION')),_0x3f064a={'id':_0x4a6814,'type':_0x1e331a,'hasComments':_0x22cb33,'data':_0x35113c['data']||null,'originalSuggestionId':_0x35113c['originalSuggestionId']||null,'attributes':_0x2414a9['attributes']};this['_adapter']['addSuggestion'](_0x3f064a)['then'](_0xc20725=>{_0x2414a9['_saved']=!0x0,_0x269a68['remove'](_0x271675),_0xc20725&&_0xc20725['createdAt']&&(this['_suggestions']['get'](_0x4a6814)['createdAt']=_0xc20725['createdAt']);})['catch'](_0x18406f=>{throw _0x40ff1a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2414a9['discard']();}),_0x2414a9['stopListening'](),this['_suggestions']['delete'](_0x2414a9['id']),this['_suggestionState']['delete'](_0x2414a9),_0x18406f;});}return _0x2414a9;}['_isBlockAttribute'](_0x5817ff){return this['_blockAttributeKeys']['has'](_0x5817ff);}['_isInlineAttribute'](_0x72a0d6){return this['_inlineAttributeKeys']['has'](_0x72a0d6);}['_updateSuggestionData'](_0x9adcfd,_0x514195){const _0x311ae9=this['editor']['plugins']['get']('PendingActions'),_0x27842a=this['getSuggestion'](_0x9adcfd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x27842a['_saved']){const _0x55ceac=_0x311ae9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x9adcfd,_0x514195)['then'](()=>{_0x311ae9['remove'](_0x55ceac);});}else _0x27842a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x9adcfd,_0x514195);});}}['_getSuggestionData'](_0x980d8a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x484d49('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x980d8a);}['_handleNewSuggestionMarker'](_0x33a923){const {id:_0xfd95a5,type:_0x3ea805,subType:_0x102932,authorId:_0x38475c}=this['_splitMarkerName'](_0x33a923),_0x3d5ac9=this['_suggestions']['get'](_0xfd95a5)||this['_createSuggestion'](_0x3ea805,_0x102932,_0xfd95a5,_0x38475c,{});switch(this['_checkSuggestionCorrectness'](_0x3d5ac9,_0x3ea805,_0x102932,_0x38475c),this['_suggestionState']['get'](_0x3d5ac9)){case'notReady':this['_getSuggestionData'](_0xfd95a5)['then'](_0x214e22=>{let _0x285a49=Promise['resolve']();_0x214e22['hasComments']&&(_0x285a49=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xfd95a5})),_0x285a49['then'](()=>{this['addSuggestionData'](_0x214e22)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3d5ac9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xfd95a5,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3d5ac9,'ready'),this['fire']('suggestionLoaded',_0x3d5ac9);break;case'ready':this['fire']('suggestionChanged',_0x3d5ac9);}return _0x3d5ac9['addMarkerName'](_0x33a923),_0x3d5ac9;}['_refreshSuggestionsChain'](_0xdae99d){const _0x464faf=Array['from'](_0xdae99d),_0x13d1c3=_0x464faf['filter'](_0xc82e30=>'attribute'==_0xc82e30['type']);this['_refreshAttributeSuggestionsChain'](_0x13d1c3);const _0x1d5c35=_0x464faf['filter'](_0x1fd130=>!_0x1fd130['isMultiRange']&&'attribute'!=_0x1fd130['type']),_0xf30d77=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x494d9d=>!_0x494d9d['isMultiRange']&&'attribute'!=_0x494d9d['type']),_0x5307ec=_0xf30d77['filter'](_0x4f979d=>!_0xdae99d['has'](_0x4f979d)),_0x1a1a2f=new Map(_0xf30d77['map'](_0x2ce351=>[_0x2ce351,this['_suggestionFactory']['getSuggestionCallback'](_0x2ce351['type'],_0x2ce351['subType'],'chain')])),_0x5d5e06=new Map(_0xf30d77['map'](_0x408186=>[_0x408186,_0x408186['getFirstRange']()])),_0x72c64=new Set(),_0x417580=new Set();for(let _0x48115d=0x0;_0x48115d<_0x1d5c35['length'];_0x48115d++)_0x53b2cc(_0x1d5c35[_0x48115d],_0x1d5c35,_0x48115d+0x1);for(let _0x21c10d=0x0;_0x21c10d<_0x1d5c35['length'];_0x21c10d++)_0x53b2cc(_0x1d5c35[_0x21c10d],_0x5307ec,0x0);const _0x2cc5fd=new Set();for(let _0x1f479c=0x0;_0x1f479c<_0x1d5c35['length'];_0x1f479c++){const _0x3b3c36=_0x1d5c35[_0x1f479c];!_0x417580['has'](_0x3b3c36)&&_0x3b3c36['previous']&&(_0x2cc5fd['add'](_0x3b3c36['previous']),_0x3b3c36['previous']['next']===_0x3b3c36&&(_0x3b3c36['previous']['next']=null),_0x3b3c36['previous']=null),!_0x72c64['has'](_0x3b3c36)&&_0x3b3c36['next']&&(_0x2cc5fd['add'](_0x3b3c36['next']),_0x3b3c36['next']['previous']===_0x3b3c36&&(_0x3b3c36['next']['previous']=null),_0x3b3c36['next']=null);}function _0x53b2cc(_0x39ecc2,_0x323a52,_0x598e4a){for(let _0x53300c=_0x598e4a;_0x53300c<_0x323a52['length'];_0x53300c++){const _0x343937=_0x114dab(_0x39ecc2,_0x323a52[_0x53300c]);_0x343937&&(_0x343937[0x0]['next']=_0x343937[0x1],_0x343937[0x1]['previous']=_0x343937[0x0],_0x72c64['add'](_0x343937[0x0]),_0x417580['add'](_0x343937[0x1]));}}function _0x114dab(_0xc33ef9,_0x5bf2b4){if(_0xc33ef9['author']['id']!==_0x5bf2b4['author']['id'])return null;const _0x38ba61=_0x1a1a2f['get'](_0xc33ef9)(_0xc33ef9,_0x5bf2b4,_0x5d5e06['get'](_0xc33ef9),_0x5d5e06['get'](_0x5bf2b4));if(!_0x38ba61)return null;return _0x1a1a2f['get'](_0x5bf2b4)(_0xc33ef9,_0x5bf2b4,_0x5d5e06['get'](_0xc33ef9),_0x5d5e06['get'](_0x5bf2b4))?_0x38ba61[0x1]['commentThread']&&_0x38ba61[0x1]['commentThread']['length']?null:_0x38ba61:null;}_0x2cc5fd['size']&&this['_refreshSuggestionsChain'](_0x2cc5fd);}['_refreshAttributeSuggestionsChain'](_0x82b817){if(0x0==_0x82b817['length'])return;const _0x5e1837=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c565d=>'attribute'==_0x3c565d['type']&&_0x3c565d['_isDataLoaded']),_0x3a5979=[],_0x1eefb0=new Map();for(const _0x509e0a of _0x5e1837){const _0x36aae5=_0x5d6409(_0x509e0a['attributes']);_0x1eefb0['has'](_0x36aae5)||(_0x1eefb0['set'](_0x36aae5,_0x3a5979['length']),_0x3a5979['push']([]));const _0x4071ea=_0x1eefb0['get'](_0x36aae5);_0x3a5979[_0x4071ea]['push'](_0x509e0a);}!(function(){_0x3a5979['sort']((_0x1da56e,_0x3abd58)=>{const _0x49b868=_0x1da56e[0x0]['createdAt'],_0x33e7e4=_0x3abd58[0x0]['createdAt'];return _0x49b868==_0x33e7e4?_0x1da56e[0x0]['attributes']['groupId']<_0x3abd58[0x0]['attributes']['groupId']?-0x1:0x1:_0x49b868<_0x33e7e4?-0x1:0x1;});for(const _0x4ed921 of _0x3a5979)_0x4ed921['sort']((_0x2d6821,_0x5920cc)=>_0x2d6821['id']<_0x5920cc['id']?-0x1:0x1);}());for(let _0x456970=0x0;_0x456970<_0x3a5979['length'];_0x456970++){if(0x0==_0x3a5979[_0x456970]['length'])continue;const _0x28dfcf=[];for(let _0x21cc35=_0x456970+0x1;_0x21cc35<_0x3a5979['length'];_0x21cc35++)0x0!=_0x3a5979[_0x21cc35]['length']&&_0x24ac8f(_0x3a5979[_0x456970],_0x3a5979[_0x21cc35])&&_0x28dfcf['push'](_0x21cc35);for(const _0x231e0b of _0x28dfcf)_0x3a5979[_0x456970]=_0x3a5979[_0x456970]['concat'](_0x3a5979[_0x231e0b]),_0x3a5979[_0x231e0b]=[];}for(const _0x5c9d7a of _0x3a5979)for(let _0xefba60=0x0;_0xefba60<_0x5c9d7a['length'];_0xefba60++){const _0x3d7b16=_0x5c9d7a[_0xefba60+0x1]||null;_0x5c9d7a[_0xefba60]['next']!==_0x3d7b16&&(_0x5c9d7a[_0xefba60]['next']=_0x3d7b16);}for(const _0x5334ad of _0x3a5979)for(let _0x2908d4=0x0;_0x2908d4<_0x5334ad['length'];_0x2908d4++){const _0x98b5c8=_0x5334ad[_0x2908d4-0x1]||null;_0x5334ad[_0x2908d4]['previous']!==_0x98b5c8&&(_0x5334ad[_0x2908d4]['previous']=_0x98b5c8);}function _0x24ac8f(_0x2614ff,_0x1517b2){if(_0x2614ff[0x0]['attributes']['groupId']!==_0x1517b2[0x0]['attributes']['groupId']&&_0x2614ff[0x0]['author']!==_0x1517b2[0x0]['author'])return!0x1;if(!function(_0x42f8a7,_0x76bcdd){if(!_0x42f8a7['hasComments']&&!_0x76bcdd['hasComments'])return!0x0;if(_0x42f8a7['hasComments']&&_0x76bcdd['hasComments'])return!0x1;if(_0x42f8a7['hasComments']&&_0x76bcdd['createdAt']<_0x42f8a7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x76bcdd['hasComments']&&_0x42f8a7['createdAt']<_0x76bcdd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2614ff[0x0],_0x1517b2[0x0]))return!0x1;const _0x9ff954=Ut(_0x2614ff[0x0]['attributes'],['groupId','trackingSessionId']),_0x4fa2a2=Ut(_0x1517b2[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x87d9f1(_0x9ff954,_0x4fa2a2))return!0x1;if(_0x2614ff[0x0]['attributes']['groupId']==_0x1517b2[0x0]['attributes']['groupId'])return!0x0;if(_0x2614ff[0x0]['attributes']['trackingSessionId']!==_0x1517b2[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2614ff['every'](_0x89b68d=>_0x1517b2['some'](_0x496603=>_0x89b68d['getFirstRange']()['isEqual'](_0x496603['getFirstRange']())))&&_0x1517b2['every'](_0x1b6aba=>_0x2614ff['some'](_0x1c59da=>_0x1b6aba['getFirstRange']()['isEqual'](_0x1c59da['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x37a5c9){const _0xdf6e7a=Array['from'](_0x37a5c9),_0x404072=this['getSuggestions']({'skipNotAttached':!0x0}),_0x51e70a=_0x404072['filter'](_0x528cfc=>!_0x37a5c9['has'](_0x528cfc)),_0x4c7678=new Map(_0xdf6e7a['map'](_0x5d6a69=>[_0x5d6a69,this['_suggestionFactory']['getSuggestionCallback'](_0x5d6a69['type'],_0x5d6a69['subType'],'join')])),_0x4dd3cb=new Map(_0x404072['map'](_0x2dae48=>[_0x2dae48,_0x2dae48['getRanges']()]));for(let _0x48de4c=0x0;_0x48de4c<_0xdf6e7a['length'];_0x48de4c++){if(_0x4e44f9(this,_0xdf6e7a[_0x48de4c],_0xdf6e7a,_0x48de4c+0x1))return!0x0;}for(let _0x1e5c40=0x0;_0x1e5c40<_0xdf6e7a['length'];_0x1e5c40++){if(_0x4e44f9(this,_0xdf6e7a[_0x1e5c40],_0x51e70a,0x0))return!0x0;}return!0x1;function _0x4e44f9(_0x50013b,_0x352080,_0x52b426,_0x378e4b){for(let _0x5b2cab=_0x378e4b;_0x5b2cab<_0x52b426['length'];_0x5b2cab++){const _0xfaf846=_0x52b426[_0x5b2cab];if(_0xfaf846['type']!==_0x352080['type']||_0xfaf846['author']['id']!==_0x352080['author']['id']||_0xfaf846['subType']!==_0x352080['subType'])continue;if(!Qt(_0x352080,_0xfaf846))continue;if('attribute'==_0x352080['type']&&_0x352080['data']['oldValue']!=_0xfaf846['data']['oldValue'])continue;if('attribute'==_0x352080['type']&&_0x50013b['_isBlockAttribute'](_0x352080['data']['key']))continue;if('formatBlock'==_0x352080['type']){const _0x4384a5=_0x50013b['editor']['model'],_0x122792=_0x352080['getContainedElement']();if(_0x122792&&(_0x4384a5['schema']['isObject'](_0x122792)||_0x4384a5['schema']['isLimit'](_0x122792)))continue;}const _0x310c2a=_0x4c7678['get'](_0x352080),_0x40eeeb=_0x4dd3cb['get'](_0x352080),_0x36e14b=_0x4dd3cb['get'](_0xfaf846),_0x51146d=_0x352080['commentThread']&&_0x352080['commentThread']['length'],_0x18bfaf=_0xfaf846['commentThread']&&_0xfaf846['commentThread']['length'];if(!_0x51146d&&_0x310c2a(_0x36e14b,_0x40eeeb))return _0x50013b['_joinSuggestions'](_0xfaf846,_0x352080),_0x4dd3cb['delete'](_0x352080),!0x0;if(!_0x18bfaf&&_0x310c2a(_0x40eeeb,_0x36e14b))return _0x50013b['_joinSuggestions'](_0x352080,_0xfaf846),_0x4dd3cb['delete'](_0xfaf846),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5a9548,_0xd5dd1a){if(_0x5a9548['isMultiRange']){for(const _0x162bd7 of _0xd5dd1a['getRanges']())_0x5a9548['addRange'](_0x162bd7);}else{const _0xed3d81=_0xd5dd1a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5a9548,this['_model']['createRange'](_0x5a9548['getFirstRange']()['start'],_0xed3d81));}_0xd5dd1a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x39d3ea,_0x2e7ed4,_0x1ac6ac){const _0x1a1bad=_0x39d3ea['startsWith']('format')||_0x39d3ea['startsWith']('attribute')?'FORMATTING':_0x39d3ea['toUpperCase']();return o(this['editor']['locale'],_0x2e7ed4+'_'+_0x1a1bad+'_SUGGESTION_ANNOUNCEMENT',_0x1ac6ac);}['_initAriaMarkerChangeAnnouncements'](){const _0x18d81b=this['editor'];if(!_0x18d81b['ui'])return;const {ariaLiveAnnouncer:_0x733ba2}=_0x18d81b['ui'];_0x138ac1(this['_model'],({left:_0x268159,entered:_0x157563})=>{for(const _0x476e64 of _0x268159){const {group:_0x23ca7e,type:_0x1d0ded}=this['_splitMarkerName'](_0x476e64['name']);if('suggestion'===_0x23ca7e){_0x733ba2['announce'](this['_getMarkerAnnouncementText'](_0x1d0ded,'LEAVE'));break;}}for(const _0x37752a of _0x157563){const {group:_0xebaa13,type:_0x550ff3}=this['_splitMarkerName'](_0x37752a['name']);if('suggestion'===_0xebaa13){_0x733ba2['announce'](this['_getMarkerAnnouncementText'](_0x550ff3,'ENTER',_0x4b4605(_0x34aeec)));break;}}});}['_processAttributeChanges'](_0xc3e2d9){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4e163b=this['editor'],_0x2c152b=_0x4e163b['model']['document']['differ']['getChanges']();if(0x0==_0x2c152b['length'])return!0x1;const _0x344618=[],_0x2566c5=_0x2c152b['filter'](_0x1a3c2e=>'attribute'==_0x1a3c2e['type']),_0x2bb979=_0x2c152b['filter'](_0x2905a4=>'insert'==_0x2905a4['type']&&'$text'!=_0x2905a4['name']),_0x3d4e81=_0x2c152b['filter'](_0xbf7cbd=>'remove'==_0xbf7cbd['type']&&'$text'!=_0xbf7cbd['name']);for(const _0x34fea4 of _0x2566c5)_0x344618['push']({'key':_0x34fea4['attributeKey'],'newValue':_0x34fea4['attributeNewValue'],'oldValue':_0x34fea4['attributeOldValue'],'range':qt(_0x34fea4['range'],_0x4e163b['model'])});for(const _0x208764 of _0x2bb979){const _0xcda360=_0x3d4e81['find'](_0x889be8=>_0x889be8['position']['isEqual'](_0x208764['position']));_0xcda360&&_0x344618['push']({'key':m,'newValue':_0x208764['name'],'oldValue':_0xcda360['name'],'range':_0x4e163b['model']['createRangeOn'](_0x208764['position']['nodeAfter'])});}return 0x0!=_0x344618['length']&&this['_reduceExistingSuggestions'](_0xc3e2d9,_0x344618);}['_processAttributeSuggestions'](_0x5e5001){let _0x524305=!0x1;const _0x75d2ee=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x444388=>_0x444388['data']['newRange']&&_0x444388['name']['startsWith']('suggestion:attribute:'));for(const _0xf12491 of _0x75d2ee){const {subType:_0xa1934e,id:_0x58a1e5}=this['_splitMarkerName'](_0xf12491['name']),_0x2d10c5=_0xa1934e['split']('|')[0x0];for(const _0x23c4b2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x23c4b2['id']!=_0x58a1e5&&'attribute'==_0x23c4b2['type']&&_0x23c4b2['data']&&_0x23c4b2['data']['key']==_0x2d10c5&&_0x23c4b2['getFirstRange']()['isIntersecting'](_0xf12491['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x23c4b2,_0xf12491['data']['newRange'],_0x5e5001),_0x524305=!0x0);}return _0x524305;}['recordAttributeChanges'](_0x2d2405){this['_recordAttributeSuggestions']=!0x0,_0x2d2405();}['_isRegisteredAttribute'](_0x3a74ea){const _0x10225b=this['_isBlockAttribute'](_0x3a74ea),_0xb95f4d=this['_isInlineAttribute'](_0x3a74ea);return _0x10225b||_0xb95f4d;}['_reduceExistingSuggestions'](_0x122ed4,_0xdd8d11){if(0x0==_0xdd8d11['length'])return!0x1;let _0x1d15b1=!0x1;for(const _0x530008 of _0xdd8d11){const _0x58088a=this['_findSuggestions'](_0x530008['range'],'attribute')['filter'](_0x5b9c45=>!_0x5b9c45['meta']['isNextTo'])['map'](_0x5b4d35=>_0x5b4d35['suggestion']),_0x497810=_0x5d6409({'newValue':_0x530008['newValue']});_0x58088a['filter'](_0x5b2c14=>{const [_0x556c21,_0x50b74f]=_0x5b2c14['subType']['split']('|');return _0x556c21==_0x530008['key']&&_0x50b74f!=_0x497810;})['forEach'](_0x223b04=>{this['_reduceSuggestionAttributeRange'](_0x223b04,_0x530008['range'],_0x122ed4),_0x1d15b1=!0x0;});}return _0x1d15b1;}['_reduceSuggestionAttributeRange'](_0x330b3c,_0x1c5c97,_0x21e416){const _0x43503b=_0x330b3c['getFirstRange']()['getDifference'](_0x1c5c97);0x0!==_0x43503b['length']?0x1!==_0x43503b['length']?this['_breakSuggestionMarker'](_0x330b3c,_0x1c5c97['start'],_0x1c5c97['end']):this['_setSuggestionRange'](_0x330b3c,_0x43503b[0x0]):_0x21e416['removeMarker'](_0x330b3c['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x178b50){this['_editor']=_0x178b50,this['_model']=_0x178b50['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x163b49,_0xb13e1f,_0x1430b7,_0x2f53c1,_0xa384f7,_0x1c1fa6,_0x27f498){return new T(this['_model'],{'type':_0x163b49,'subType':_0xb13e1f,'id':_0x1430b7,'originalSuggestionId':_0x27f498,'author':_0x2f53c1,'creator':_0x2f53c1,'attributes':_0xa384f7,'onAttributesChange':_0x1c1fa6,'onAccept':(..._0xcf6bcc)=>this['getSuggestionCallback'](_0x163b49,_0xb13e1f,'accept')(..._0xcf6bcc),'onDiscard':(..._0x9a7905)=>this['getSuggestionCallback'](_0x163b49,_0xb13e1f,'discard')(..._0x9a7905)});}['registerCustomCallback'](_0x214c28,_0x4b66dd,_0x57ff17,_0x17bf67){const _0xc9bdd9=_0x214c28+':'+_0x4b66dd+':'+_0x57ff17;this['_customCallbacks']['set'](_0xc9bdd9,_0x17bf67);}['getSuggestionCallback'](_0x2bfd65,_0x49ee52,_0x263311){const _0x2f68af=_0x2bfd65+':'+_0x49ee52+':'+_0x263311;return this['_customCallbacks']['get'](_0x2f68af)||this['_defaultCallbacks']['get'](_0x2bfd65+':'+_0x263311);}['_registerDefaultCallbacks'](){const _0x45b147=()=>!0x1,_0xa39a13=_0x23d755=>{_0x23d755['sort']((_0x5bc8be,_0x38bad2)=>_0x5bc8be['start']['isBefore'](_0x38bad2['start'])?0x1:-0x1),this['_model']['change'](_0x588a13=>{for(const _0x4df9f4 of _0x23d755){let _0x53a2c5;_0x53a2c5=_0x4df9f4['end']['isAtEnd']&&_0x4df9f4['end']['parent']==_0x4df9f4['start']['nodeAfter']?_0x588a13['createSelection'](_0x4df9f4['start']['nodeAfter'],'on'):_0x588a13['createSelection'](_0x4df9f4),this['_model']['deleteContent'](_0x53a2c5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x16853=(_0x2153d4,_0x5336ef)=>{_0x5336ef&&this['_model']['change'](_0x2a8edc=>{const {commandName:_0x31e77c,commandParams:_0x4e44d2=[]}=_0x5336ef,_0x5df41e=_0x2153d4['map'](_0x1c5df8=>(Pt(_0x1c5df8)&&(_0x1c5df8=this['_model']['createRange'](_0x1c5df8['end'])),_0x1c5df8))['filter'](_0xa9a418=>'$graveyard'!==_0xa9a418['root']['rootName']);if(_0x5df41e['length']<0x1)return;const _0x303c41=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4dce49=>_0x41eab8['fromRange'](_0x4dce49));_0x2a8edc['setSelection'](_0x5df41e);for(const _0x517075 of this['_editor']['commands']['commands']())_0x517075['refresh']();_0x4e44d2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x31e77c,..._0x4e44d2);const _0x54e6a3=_0x303c41['filter'](_0xbe78f2=>'$graveyard'!=_0xbe78f2['root']['rootName']);_0x54e6a3['length']>0x0&&_0x2a8edc['setSelection'](_0x54e6a3);for(const _0x38a258 of _0x303c41)_0x38a258['detach']();});},_0x4938a6=(_0x37a460,_0x3c5571)=>0x1==_0x37a460['length']&&0x1==_0x3c5571['length']&&_0x37a460[0x0]['end']['isEqual'](_0x3c5571[0x0]['start']),_0x580645=(_0x2feb90,_0xbf01e9,_0x567d20,_0x576cb2)=>Wt(_0x2feb90,_0xbf01e9,_0x567d20,_0x576cb2)?[_0x2feb90,_0xbf01e9]:Wt(_0xbf01e9,_0x2feb90,_0x576cb2,_0x567d20)?[_0xbf01e9,_0x2feb90]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x45b147),this['_defaultCallbacks']['set']('insertion:discard',_0xa39a13),this['_defaultCallbacks']['set']('insertion:join',_0x4938a6),this['_defaultCallbacks']['set']('insertion:chain',_0x580645),this['_defaultCallbacks']['set']('deletion:accept',_0xa39a13),this['_defaultCallbacks']['set']('deletion:discard',_0x45b147),this['_defaultCallbacks']['set']('deletion:join',_0x4938a6),this['_defaultCallbacks']['set']('deletion:chain',_0x580645),this['_defaultCallbacks']['set']('formatInline:accept',_0x16853),this['_defaultCallbacks']['set']('formatInline:discard',_0x45b147),this['_defaultCallbacks']['set']('formatInline:join',_0x4938a6),this['_defaultCallbacks']['set']('formatInline:chain',_0x45b147),this['_defaultCallbacks']['set']('formatBlock:accept',_0x16853),this['_defaultCallbacks']['set']('formatBlock:discard',_0x45b147),this['_defaultCallbacks']['set']('formatBlock:join',_0x4938a6),this['_defaultCallbacks']['set']('formatBlock:chain',_0x45b147),this['_defaultCallbacks']['set']('attribute:accept',_0x45b147),this['_defaultCallbacks']['set']('attribute:discard',(_0x2a04c2,_0x1c0665)=>{if(!_0x1c0665)return;const _0x469850=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x564f1d=>{if(_0x1c0665['key']==m)for(const _0x39ee35 of _0x2a04c2){const _0x4f5109=_0x39ee35['start']['nodeAfter'],_0x196ea2=_0x1c0665['oldValue'];_0x564f1d['rename'](_0x4f5109,_0x196ea2);}else{if(_0x469850['_isBlockAttribute'](_0x1c0665['key'])){for(const _0x485c38 of _0x2a04c2)void 0x0!==_0x1c0665['oldValue']?_0x564f1d['setAttribute'](_0x1c0665['key'],_0x1c0665['oldValue'],_0x485c38['start']['nodeAfter']):_0x564f1d['removeAttribute'](_0x1c0665['key'],_0x485c38['start']['nodeAfter']);}else{for(const _0xacd670 of _0x2a04c2)_0x1c0665['oldValue']?_0x564f1d['setAttribute'](_0x1c0665['key'],_0x1c0665['oldValue'],_0xacd670):_0x564f1d['removeAttribute'](_0x1c0665['key'],_0xacd670);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4938a6);}}function Ft(_0x2b7903,_0x49980f,_0x5f08b6){for(const _0x1b5798 of _0x49980f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1b5798['root']==_0x1b5798)return!0x1;if(!_0x5f08b6['containsItem'](_0x1b5798))return!0x1;if(_0x2b7903['isObject'](_0x1b5798)||_0x2b7903['isLimit'](_0x1b5798))return!0x0;}return!0x1;}function Pt(_0x5e2615){return _0x5e2615['end']['parent']==_0x5e2615['start']['nodeAfter']&&_0x5e2615['end']['isAtStart'];}function Gt(_0x36db7a,_0x271e40,_0x1e2c31,_0x3d9fbb){const _0x138389=_0x22a313=>!_0x22a313['item']['is']('$textProxy')&&!_0x3d9fbb['isObject'](_0x22a313['item']),_0x8b1ad6=_0x36db7a['start']['getLastMatchingPosition'](_0x138389),_0x53a388=_0x36db7a['end']['getLastMatchingPosition'](_0x138389,{'direction':'backward'});return(!_0x36db7a['start']['isEqual'](_0x8b1ad6)||!_0x36db7a['end']['isEqual'](_0x53a388))&&(_0x8b1ad6['isBefore'](_0x53a388)?_0x1e2c31['updateMarker'](_0x271e40,{'range':_0x1e2c31['createRange'](_0x8b1ad6,_0x53a388)}):_0x1e2c31['removeMarker'](_0x271e40),!0x0);}function Lt(_0x2c6343){return _0x5d6409(_0x2c6343);}function Jt(_0x19bf45){const _0x45fb29=_0x19bf45['start']['nodeAfter'];return _0x45fb29&&_0x45fb29['is']('element');}function Kt(_0xac6904){return Pt(_0xac6904)||function(_0xecb189){return _0xecb189['start']['parent']==_0xecb189['end']['nodeBefore']&&_0xecb189['start']['isAtEnd'];}(_0xac6904);}function Ht(_0x41ea7d,_0x7592ea){try{const _0x4f52b0=_0x41ea7d['getRange']();for(const _0x4285b0 of _0x7592ea)if(_0x41ea7d!==_0x4285b0&&_0x4f52b0&&_0x4f52b0['isIntersecting'](_0x4285b0['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x25f83e,_0x4a13c6){return null==_0x25f83e['end']['nodeBefore']&&_0x25f83e['end']['parent']==_0x25f83e['start']['nodeAfter']?zt(_0x25f83e['start']['nodeAfter'],_0x4a13c6):_0x25f83e;}function zt(_0x26c1c5,_0x212e73){const _0x2bb9cd=_0x212e73['schema']['isObject'](_0x26c1c5)||_0x212e73['schema']['isSelectable'](_0x26c1c5);return _0x212e73['createRange'](_0x212e73['createPositionAt'](_0x26c1c5,'before'),_0x2bb9cd?_0x212e73['createPositionAfter'](_0x26c1c5):_0x212e73['createPositionAt'](_0x26c1c5,'end'));}function Wt(_0x17db31,_0x16801f,_0x55430f,_0xb633d0){return!!Qt(_0x17db31,_0x16801f)&&_0x55430f['end']['isEqual'](_0xb633d0['start']);}function Qt(_0x12e0b5,_0x2a4145){if(!_0x12e0b5['_isDataLoaded']||!_0x2a4145['_isDataLoaded'])return!0x1;const _0x379237=new Set(Object['keys'](_0x12e0b5['attributes'])),_0x33359a=new Set(Object['keys'](_0x2a4145['attributes']));if(_0x379237['delete']('groupId'),_0x33359a['delete']('groupId'),0x0==_0x379237['size']&&0x0==_0x33359a['size'])return!0x0;if(_0x379237['size']!=_0x33359a['size'])return!0x1;const _0x2459da={..._0x12e0b5['attributes']},_0x809fe5={..._0x2a4145['attributes']};return delete _0x2459da['groupId'],delete _0x809fe5['groupId'],JSON['stringify'](_0x2459da)==JSON['stringify'](_0x809fe5);}function Xt(_0x42ad34,_0x58ea35){const _0xd83361=Yt(_0x42ad34['attributes']),_0x485991=Yt(_0x58ea35);if(!_0x42ad34['_isDataLoaded'])return!0x1;for(const _0x210619 of Object['keys'](_0x485991))if(!_0x87d9f1(_0xd83361[_0x210619],_0x485991[_0x210619]))return!0x1;return!0x0;}function Yt(_0x3f7806){const _0x9b3c30=Object['assign']({},_0x3f7806);return delete _0x9b3c30['skipNestingCheck'],delete _0x9b3c30['tablePasteChainId'],_0x9b3c30;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x140e87(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1066fc,_0x264c30,_0x594af8,_0x408c23){super(),this['model']=_0x264c30,this['view']=_0x594af8,this['commentThreadController']=_0x408c23,this['_editor']=_0x1066fc,this['_acceptCommand']=_0x1066fc['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1066fc['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x486110,_0x341b0e)=>_0x486110||_0x341b0e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xe7f3f4=>_0xe7f3f4&&this['_editor']['model']['canEditAt'](_0x264c30['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4ca2bf=>_0x4ca2bf&&this['_editor']['model']['canEditAt'](_0x264c30['getRanges']())),this['_pendingAction']=null,_0x594af8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x594af8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x594af8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x594af8,'change:isDirty',()=>{_0x594af8['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 _0x531580=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x531580);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ti extends _0x1bb46f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xe8ebe4,_0x246793,_0x2028b,_0x50c113){super(_0xe8ebe4),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3249ce(_0xe8ebe4,o(_0xe8ebe4,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x246793['authoredAt']),this['bind']('authoredAt')['to'](_0x246793),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',_0x246793,'authoredAt',this,'descriptionParts',(_0x435c95,_0x26358d,_0x25fa06)=>{const _0x16eef7=_0x25fa06['map'](_0x36892a=>ls(_0x36892a['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x435c95-0x1,_0x246793['author']['name'],_0x26358d?_0x50c113['formatDateTime'](_0x26358d):'',new DOMParser()['parseFromString'](_0x16eef7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2d0e77(),this['focusTracker']=new _0x4a86af(),this['keystrokes']=new _0x576847(),this['focusCycler']=new _0x26c407({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x126a6a=>_0x126a6a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x246793,this['_localUser']=_0x2028b,this['_config']=_0x50c113,_0x50c113['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x388fe0(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x537aa1}=this['_config'];this['commentsListView']=new _0x537aa1(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',_0x110c85=>_0x110c85+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x51014a,_0x2f9885)=>_0x51014a||!!_0x2f9885);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x33ed42}=this['_config'],_0x4eb87a=new _0x33ed42(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3a8025=_0x4eb87a['commentInputView'];return _0x4eb87a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3a8025,'value',(_0x306298,_0x2fa615,_0x14e86e)=>!!_0x14e86e||_0x306298&&!_0x2fa615),_0x3a8025['on']('submit',(_0x3b6f49,_0x26411d)=>{this['fire']('addComment',_0x26411d),_0x3a8025['editor']['setData']('');}),_0x3a8025['on']('cancel',()=>this['focus']()),_0x3a8025['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4eb87a;}}class fe extends ti{['suggestionView'];['_descriptionElement'];constructor(_0x44c8b9,_0x473fb0,_0x21620d,_0x214d1f){super(_0x44c8b9,_0x473fb0,_0x21620d,_0x214d1f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xf66add=>_0xf66add&&_0xf66add[0x0]?_0xf66add[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5bcc58,_0x5f2fe6)=>{let _0x3d6dae='';for(const _0x515485 of _0x5bcc58)_0x3d6dae+='<p>'+ls(_0x515485['content'],_0x515485['color'])+'</p>';return _0x5f2fe6?_0x3d6dae:_0x473cb5(_0x3d6dae,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x214d1f['SuggestionView'](_0x44c8b9,_0x473fb0,{'formatDateTime':_0x214d1f['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 _0x403128=this['bindTemplate'],_0x3472db=[this['suggestionView']];return this['commentsListView']&&_0x3472db['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3472db['push'](this['commentThreadInputView']),_0x3472db['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x403128['if']('isActive','ck-suggestion-wrapper--active'),_0x403128['to']('type',_0x2c56e6=>'ck-suggestion-'+_0x2c56e6),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':_0x403128['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3472db};}['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 _0x1bb46f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3ace53,_0x331bc4,_0x1bfcb2){super(_0x3ace53),this['_model']=_0x331bc4,this['_config']=_0x1bfcb2,this['set']('description',''),this['bind']('authoredAt')['to'](_0x331bc4),this['acceptButton']=this['_createButton'](o(_0x3ace53,'Accept\x20suggestion'),_0x2e09ca,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3ace53,'Discard\x20suggestion'),_0x144297,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xf21a6b(_0x3ace53,_0x331bc4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2d0e77([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4a86af(),this['keystrokes']=new _0x576847(),this['focusCycler']=new _0x26c407({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4eb28c=>_0x4eb28c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xb456b7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xb456b7['innerHTML']=this['description'],this['on']('change:description',(_0x2600e2,_0x364fb,_0x23bb73)=>{_0xb456b7['innerHTML']=_0x23bb73;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xb94fa8=this['bindTemplate'],_0x398d58=[{'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':_0xb94fa8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xb94fa8['to']('authoredAt',_0x1e1a0b=>this['_config']['formatDateTime'](_0x1e1a0b))}]}]},{'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']&&_0x398d58['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':_0x398d58}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x179b28,_0x4d504e,_0x4cc262,_0x30abc3,_0x5eeccd){const _0x15cd61=new _0x6ee236(this['locale']);return _0x15cd61['set']({'label':_0x179b28,'icon':_0x4d504e,'tooltip':!0x0,'tooltipPosition':_0x5eeccd}),_0x15cd61['extendTemplate']({'attributes':{'class':_0x4cc262}}),_0x15cd61['on']('execute',()=>{this['fire'](_0x30abc3,this['_model']['id']);}),_0x15cd61;}['_setupKeyboardNavigation'](){const _0x23e6ae=this['element'];this['keystrokes']['listenTo'](_0x23e6ae);for(const _0x1df32a of this['focusables'])this['focusTracker']['add'](_0x1df32a['element']),this['keystrokes']['listenTo'](_0x1df32a['element']);this['keystrokes']['set']('enter',(_0x5b86b5,_0x96b80c)=>{_0x23e6ae===_0x5b86b5['target']&&(this['focusCycler']['focusFirst'](),_0x96b80c());}),this['keystrokes']['set']('esc',(_0x443d65,_0x2580c9)=>{_0x23e6ae!==_0x443d65['target']&&(this['focus'](),_0x2580c9());});}}class u extends _0x43125c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x1d0ab4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x33072e){super(_0x33072e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x28b131=this['editor']['config'];_0x28b131['define']('trackChanges.SuggestionThreadView',fe),_0x28b131['define']('trackChanges.SuggestionView',we),_0x28b131['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x28b131['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xc94bb5,_0xd1dfc8){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x129622,_0x5a72ed]of this['_handleControllerBuffer']){const _0x2d611f=this['_suggestionToController']['has'](_0x129622);_0x2d611f||_0x5a72ed?_0x2d611f&&_0x5a72ed&&this['_destroyController'](_0x129622):this['_initializeController'](_0x129622);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xc94bb5,_0xd1dfc8);}['init'](){const _0x2b0a74=this['editor'],_0x4652b5=_0x2b0a74['plugins']['get']('TrackChangesEditing'),_0x380cc3=_0x2b0a74['plugins']['get']('Annotations'),_0x353529=_0x2b0a74['plugins']['get']('EditorAnnotations'),_0x4ab87e=_0x2b0a74['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x353529['addSourceCollector'](()=>{const _0x223c2b=[];for(const [_0x3f518b,_0x328b70]of Array['from'](this['_suggestionToController'])){const _0x49a56d=_0x3f518b['getAllAdjacentSuggestions'](),_0x49d8c1=[];for(const _0x28f9b6 of _0x49a56d){if(!_0x28f9b6['isInContent'])continue;if(_0x28f9b6['isMultiRange']){_0x49d8c1['push'](..._0x28f9b6['getRanges']());continue;}const _0x10ea4e=_0x28f9b6['getFirstRange']();if(_0x49d8c1['length']>0x0){const _0x320fa8=_0x49d8c1[0x0]['getJoined'](_0x10ea4e);if(_0x320fa8){_0x49d8c1[0x0]=_0x320fa8;continue;}}_0x49d8c1['push'](_0x10ea4e);}_0x223c2b['push']([_0x328b70['view'],_0x49d8c1]);}return _0x223c2b;}),this['listenTo'](_0x4652b5,'suggestionLoaded',(_0x4fec44,_0x392af7)=>{this['listenTo'](_0x392af7,'change:previous',(_0x18e246,_0x4b3f2b,_0x3e342b,_0x299ad9)=>{_0x392af7['isInContent']&&(null==_0x3e342b?(this['_updateController'](_0x299ad9['head']),this['_handleSuggestionControllerDelayed'](_0x392af7,!0x1)):(this['_updateController'](_0x3e342b['head']),null==_0x299ad9&&this['_handleSuggestionControllerDelayed'](_0x392af7,!0x0)));}),null!==_0x392af7['previous']?this['_updateController'](_0x392af7['head']):this['_handleSuggestionControllerDelayed'](_0x392af7,!0x1);}),this['listenTo'](_0x4652b5,'suggestionUnloaded',(_0x3999e5,_0x966241,_0x7301a2)=>{this['stopListening'](_0x966241,'change:previous'),this['_handleControllerBuffer']['delete'](_0x966241),this['_suggestionToController']['has'](_0x966241)&&this['_destroyController'](_0x966241),_0x7301a2&&this['_updateController'](_0x7301a2['head']);}),this['listenTo'](_0x4652b5,'suggestionChanged',(_0x2eaae9,_0xbb5fc8)=>{this['_updateController'](_0xbb5fc8);}),this['listenTo'](_0x380cc3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4ab87e,'addComment',(_0x475df0,{threadId:_0x3c4933,isFromAdapter:_0x5d9af0})=>{if(_0x5d9af0||!_0x4652b5['hasSuggestion'](_0x3c4933))return;const _0x2fdb25=_0x4652b5['getSuggestion'](_0x3c4933);this['_suggestionToController']['get'](_0x2fdb25)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x16214e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x20e6bc;for(const _0x43699b in _0x16214e){const _0x16943d=_0x43699b,_0x37c0e7=_0x16214e[_0x16943d];if('trackChangesLicenseKeyValid'==_0x37c0e7||'trackChangesLicenseKeyInvalid'==_0x37c0e7||'trackChangesLicenseKeyExpired'==_0x37c0e7||'trackChangesLicenseKeyDomainLimit'==_0x37c0e7||'trackChangesLicenseKeyNotAllowed'==_0x37c0e7||'trackChangesLicenseKeyEvaluationLimit'==_0x37c0e7||'trackChangesLicenseKeyTrialLimit'==_0x37c0e7||'trackChangesLicenseKeyUsageLimit'==_0x37c0e7){delete _0x16214e[_0x16943d],_0x20e6bc=_0x37c0e7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x20e6bc&&_0x16214e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x20e6bc&&_0x16214e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x20e6bc&&_0x16214e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x20e6bc&&_0x16214e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x20e6bc&&_0x16214e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x20e6bc&&_0x16214e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x20e6bc&&_0x16214e['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0xd2a11){const _0x39b519=this['_suggestionToController']['get'](_0xd2a11);if(!_0x39b519)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x39b519['view'])||null;}['getSuggestionForAnnotation'](_0x54e440){const _0x352d91=this['_viewToController']['get'](_0x54e440['innerView']);return _0x352d91?_0x352d91['model']:null;}['_refreshActiveMarkers'](){const _0x1add41=this['editor']['plugins']['get']('Annotations'),_0x4ee21b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bba09=Array['from'](_0x1add41['activeAnnotations'],_0x1b5ba2=>_0x1b5ba2['innerView'])['filter'](_0x4334ae=>this['_viewToController']['has'](_0x4334ae)),_0x510040=[];for(const _0x5a950b of _0x5bba09){const _0x12369c=this['_viewToController']['get'](_0x5a950b)['model']['getAllAdjacentSuggestions']();_0x510040['push'](..._0x12369c['reduce']((_0x544681,_0x405a3a)=>[..._0x544681,..._0x405a3a['getMarkerNames']()],[]));}_0x4ee21b['activeMarkers']=_0x510040;}['_addUIComponentsToFactory'](){const _0x2daf44=this['editor'],_0xc5bb19=_0x2daf44['locale'],_0x10fe7e=o(_0xc5bb19,'Track\x20changes'),_0x411ec7=new _0x1c49aa([{'type':'switchbutton','model':new _0x365c84({'withText':!0x0,'isToggleable':!0x0,'label':_0x10fe7e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x365c84({'withText':!0x0,'label':o(_0xc5bb19,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x365c84({'withText':!0x0,'label':o(_0xc5bb19,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x365c84({'withText':!0x0,'label':o(_0xc5bb19,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x365c84({'withText':!0x0,'label':o(_0xc5bb19,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2daf44['plugins']['has']('TrackChangesPreview')&&_0x411ec7['addMany']([{'type':'separator'},{'type':'button','model':new _0x365c84({'withText':!0x0,'label':o(_0xc5bb19,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1419ac of _0x411ec7)if(ke(_0x1419ac)){const _0x297f2b=_0x2daf44['commands']['get'](_0x1419ac['model']['commandName']);_0x1419ac['model']['bind']('isOn','isEnabled')['to'](_0x297f2b,'value','isEnabled');}_0x2daf44['ui']['componentFactory']['add']('trackChanges',_0x4e1829=>this['_createToolbarButton'](_0x4e1829,_0x411ec7,_0x10fe7e)),_0x2daf44['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3e3891=>this['_createMenuBarMenu'](_0x3e3891,_0x411ec7,_0x10fe7e));}['_createToolbarButton'](_0x5039f5,_0x3572c7,_0xf1567c){const _0x23dcd8=_0x4597e0(_0x5039f5,_0x28f8c2),_0x59d52f=this['editor']['commands']['get']('trackChanges');_0x23dcd8['buttonView']['set']({'tooltip':_0xf1567c,'label':_0xf1567c,'icon':_0xb7972f}),_0x23dcd8['buttonView']['bind']('isOn')['to'](_0x59d52f,'value'),_0x23dcd8['buttonView']['on']('execute',()=>{_0x59d52f['execute'](),this['editor']['editing']['view']['focus']();}),_0x1099fb(_0x23dcd8,_0x3572c7,{'role':'menu'});const _0x1fd6de=[];for(const _0x35ffdf of _0x3572c7)ke(_0x35ffdf)&&_0x1fd6de['push'](this['editor']['commands']['get'](_0x35ffdf['model']['commandName']));const _0x2991da=_0x23dcd8['buttonView'];return _0x2991da['actionView']['unbind']('isEnabled'),_0x2991da['arrowView']['unbind']('isEnabled'),_0x2991da['actionView']['bind']('isEnabled')['to'](_0x59d52f,'isEnabled'),_0x2991da['arrowView']['bind']('isEnabled')['toMany'](_0x1fd6de,'isEnabled',(..._0x435a48)=>_0x435a48['some'](_0x17c728=>_0x17c728)),_0x23dcd8['on']('execute',_0x242bd1=>{this['editor']['execute'](_0x242bd1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x23dcd8;}['_createMenuBarMenu'](_0x1fcbbd,_0x378e99,_0x1561cc){const _0x2bd0ad=new _0x402b0c(_0x1fcbbd),_0x35bd23=this['editor']['commands']['get']('trackChanges');_0x2bd0ad['buttonView']['set']({'label':_0x1561cc,'icon':_0xb7972f});const _0x8cc4e6=new _0x415197(_0x1fcbbd);for(const _0xb3e8e9 of _0x378e99){if('separator'==_0xb3e8e9['type']){_0x8cc4e6['items']['add'](new _0x2e2fb9(_0x1fcbbd));continue;}const _0x162377=new _0x4cbc09(_0x1fcbbd,_0x2bd0ad),_0x43db5b=new _0x2aea59(_0x1fcbbd),_0x49561b=_0xb3e8e9['model'];_0x43db5b['bind'](...Object['keys'](_0x49561b))['to'](_0x49561b),_0x43db5b['delegate']('execute')['to'](_0x2bd0ad),_0x43db5b['on']('execute',()=>{this['editor']['execute'](_0x49561b['commandName']),this['editor']['editing']['view']['focus']();}),_0x162377['children']['add'](_0x43db5b),_0x8cc4e6['items']['add'](_0x162377);}return _0x2bd0ad['bind']('isEnabled')['to'](_0x35bd23,'isEnabled'),_0x2bd0ad['panelView']['children']['add'](_0x8cc4e6),_0x2bd0ad;}['_initializeController'](_0x19fa34){const _0x1af3ad=this['editor'],_0x2725d4=_0x1af3ad['config'],_0x5cfa1f=_0x1af3ad['plugins']['get']('Annotations'),_0xd1ffea=_0x1af3ad['plugins']['get']('CommentsRepository'),_0x56c747=_0x1af3ad['plugins']['get']('EditorAnnotations'),_0x1a1d96=_0x1af3ad['plugins']['get'](_0x1d0ab4)['me'],_0x5590e4=_0x2725d4['get']('trackChanges')['SuggestionThreadView'],_0x4951df=_0x2725d4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3331b7,CommentThreadInputView:_0x27f8da}=_0x1af3ad['plugins']['get']('CommentsUI');let _0x3bdb8c,_0x32bbc7,_0x3a1594;this['_annotationViews']['has'](_0x19fa34['id'])?(_0x32bbc7=this['_annotationViews']['get'](_0x19fa34['id']),_0x3bdb8c=_0x32bbc7['mainView']):(_0x3bdb8c=new _0x5590e4(_0x1af3ad['locale'],_0x19fa34,_0x1a1d96,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2725d4['get']('comments.editorConfig'),'licenseKey':_0x2725d4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2725d4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2725d4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2725d4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x31bbf6(_0x2725d4['get']('locale'),_0x1af3ad['locale']),'CommentView':_0x2725d4['get']('comments')['CommentView'],'CommentsListView':_0x3331b7,'CommentThreadInputView':_0x27f8da,'SuggestionView':_0x4951df}),_0x3bdb8c['suggestionView']['acceptButton']['on']('execute',()=>{_0x1af3ad['editing']['view']['focus']();}),_0x3bdb8c['suggestionView']['discardButton']['on']('execute',()=>{_0x1af3ad['editing']['view']['focus']();}),_0x32bbc7=_0x5cfa1f['createAnnotationView'](this['editor']['locale'],_0x3bdb8c),_0x32bbc7['bind']('isDirty')['to'](_0x3bdb8c,'isDirty'),_0x32bbc7['bind']('length')['to'](_0x3bdb8c),_0x32bbc7['bind']('type')['to'](_0x3bdb8c,'type',_0x193de4=>'suggestion-'+_0x193de4),_0x3bdb8c['on']('escape',()=>{_0x3a1594['fire']('escape');}),this['_annotationViews']['set'](_0x19fa34['id'],_0x32bbc7));const _0x3a3f3d=_0xd1ffea['createCommentThreadController'](_0x19fa34['commentThread'],_0x3bdb8c),_0x16a1ae=new pe(_0x1af3ad,_0x19fa34,_0x3bdb8c,_0x3a3f3d),_0x4c0890=_0x19fa34['getAllAdjacentSuggestions']()['filter'](_0x17c4e9=>_0x17c4e9['isInContent']);_0x3bdb8c['descriptionParts']=_0x1af3ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4c0890),this['_suggestionToController']['set'](_0x19fa34,_0x16a1ae),this['_viewToController']['set'](_0x3bdb8c,_0x16a1ae);const _0x1e0c24=()=>{const _0xafd9a9=[],_0x12360e=_0x19fa34['getAllAdjacentSuggestions']()['filter'](_0x4946ee=>_0x4946ee['isInContent']);for(const _0x190a75 of _0x12360e)_0xafd9a9['push'](..._0x190a75['getMarkers']());return _0x22629a(_0x1af3ad['editing'],_0xafd9a9);};_0x3a1594=_0x5cfa1f['createAnnotation']({'view':_0x32bbc7,'target':_0x1e0c24,'type':()=>'suggestion-'+_0x16a1ae['view']['type'],'isVisible':!!_0x1e0c24()}),_0xd1ffea['_bindAnnotationToEditors'](_0x3bdb8c,_0x3a1594),_0x5cfa1f['add'](_0x3a1594),_0x56c747['registerAnnotation'](_0x3a1594);}['_destroyController'](_0x6bb833){const _0x2a5cc3=this['editor']['plugins']['get']('CommentsRepository'),_0x284f63=this['editor']['plugins']['get']('Annotations'),_0x13be98=this['_suggestionToController']['get'](_0x6bb833),_0x3ad543=_0x13be98['view'],_0x59d15c=_0x284f63['getByInnerView'](_0x3ad543);_0x2a5cc3['_unbindEditors'](_0x3ad543),_0x59d15c&&_0x284f63['remove'](_0x59d15c),this['_suggestionToController']['delete'](_0x6bb833),this['_viewToController']['delete'](_0x3ad543),_0x13be98['destroy']();}['_updateController'](_0x16a3c5){if(!_0x16a3c5['isInContent']||!this['_suggestionToController']['has'](_0x16a3c5))return;const _0x199183=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcb71d8=this['_suggestionToController']['get'](_0x16a3c5),_0x599912=_0x16a3c5['getAllAdjacentSuggestions']();_0xcb71d8['view']['descriptionParts']=_0x199183['descriptionFactory']['getDescriptions'](_0x599912);}['destroy'](){for(const _0x355c8e of this['_suggestionToController']['keys']())this['_destroyController'](_0x355c8e);for(const _0x50a05f of this['_annotationViews']['values']())_0x50a05f['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x176f2b){return'model'in _0x176f2b;}class Fe extends _0x43125c{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x31093b){this['editor']['plugins']['get'](d)['adapter']=_0x31093b;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x18d098){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x18d098);}['getSuggestions']({skipNotAttached:_0x37c341=!0x1,toJSON:_0x32a2c1=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x37c341,'toJSON':_0x32a2c1});}['getSuggestion'](_0x5cf9cd){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x5cf9cd);}}const p=['Pagination'];class re extends _0x43125c{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x33fed5=this['editor'];if(_0x33fed5['config']['define']('trackChangesData.editorCreator',_0x3f4caf=>{const _0x1005e8=_0x33fed5['model']['document']['getRootNames']()['reduce']((_0x5b3d97,_0xd4f6a8)=>(_0x5b3d97[_0xd4f6a8]='',_0x5b3d97),{});return _0x33fed5['constructor']['create'](_0x1005e8,_0x3f4caf);}),'function'!=typeof _0x33fed5['config']['get']('trackChangesData')['editorCreator'])throw new _0x484d49('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x8cb14c){return P(this['editor'],!0x0,_0x8cb14c);}['getDataWithDiscardedSuggestions'](_0x28ad10){return P(this['editor'],!0x1,_0x28ad10);}}class Ge extends _0x43125c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2be4f7){function _0x374ca3(_0x565723){return _0x565723['map'](_0x2ef298=>String['fromCharCode'](_0x2ef298))['join']('');}super(_0x2be4f7),this['result']='end',_0x2be4f7[_0x374ca3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x374ca3([0x76,0x69,0x65,0x77])][_0x374ca3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x374ca3([0x61,0x75,0x74,0x6f]),_0x2be4f7[_0x374ca3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x374ca3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x374ca3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x374ca3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x374ca3([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 He(_0x596ade){return void 0x0!==_0x596ade['getRootsAttributes'];}async function P(_0x4b63a5,_0x1ca919,_0x2e3f2e){const _0x27e365=_0x250a15(_0x4b63a5,p);_0x27e365['plugins']['push'](d,Ge),_0x27e365['rootsAttributes']=He(_0x4b63a5)?_0x4b63a5['getRootsAttributes']():void 0x0;const _0x5cb21d=document['createDocumentFragment'](),_0x1b3090=_0x4b63a5['config']['get']('trackChangesData')['editorCreator'],_0x5cd37d=await _0x1b3090(_0x27e365,()=>function(_0xf470ee){const _0x54acda=document['createElement']('div');return _0xf470ee['appendChild'](_0x54acda),_0x54acda;}(_0x5cb21d));!function(_0x232083,_0x4dafc0){const _0x210f0a=_0x232083['model']['document']['getRootNames']()['reduce']((_0x5e8252,_0x3c03d6)=>(_0x5e8252[_0x3c03d6]=_0x232083['data']['get']({'rootName':_0x3c03d6}),_0x5e8252),{}),_0x26d4a7=_0x232083['plugins']['get']('Users')['users']['map'](_0x266716=>({'id':_0x266716['id'],'name':_0x266716['name']})),_0x29ebb8=_0x232083['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x550e85=_0x232083['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x10afdf=_0x4dafc0['plugins']['get']('Users'),_0xa81c63=_0x4dafc0['plugins']['get']('TrackChangesEditing'),_0x81d739=_0x4dafc0['plugins']['get']('CommentsRepository');for(const _0x5d958b of _0x81d739['getCommentThreads']())_0x5d958b['remove']();for(const _0x35a700 of _0x26d4a7)_0x10afdf['getUser'](_0x35a700['id'])||_0x10afdf['addUser'](_0x35a700);_0x10afdf['me']||_0x10afdf['useAnonymousUser']();for(const _0x5b419f of _0x550e85)_0x81d739['addCommentThread'](_0x5b419f);for(const _0x2d27a2 of _0x29ebb8)_0xa81c63['addSuggestionData'](_0x2d27a2);_0x4dafc0['data']['set'](_0x210f0a);}(_0x4b63a5,_0x5cd37d),_0x5cd37d['execute'](_0x1ca919?'acceptAllSuggestions':'discardAllSuggestions');const _0x2669ef=He(_0x5cd37d)?_0x5cd37d['getFullData'](_0x2e3f2e):_0x5cd37d['data']['get'](_0x2e3f2e);return await _0x5cd37d['destroy'](),_0x2669ef;}class Me extends _0x1bb46f{['options'];constructor(_0x2c6a74,_0x3ddcba){super(_0x2c6a74),this['options']=_0x3ddcba,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'](_0x1ce5a1,_0x40dac8){if(!this['element'])return;const _0x15e76e=[];for(const [_0x374dbd,_0x47256a]of _0x1ce5a1){const _0x59a049=document['createElement']('div');_0x59a049['setAttribute']('data-ck-root-name',_0x374dbd),_0x59a049['className']=_0x47256a['classes']+'\x20ck-track-changes-preview__root-container',_0x59a049['innerHTML']=_0x47256a['content'],_0x15e76e['push'](_0x59a049);}_0x40dac8(this['element'],_0x15e76e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x451a00{constructor(_0x3cd681){super(_0x3cd681),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x14fd5d=this['editor'],_0x493678=_0x14fd5d['locale'],_0x4aacf5=_0x14fd5d['plugins']['get']('Dialog');let _0x5e170c;const _0x542b2e=function(_0x56af29){const _0x57c202={};if('editables'in _0x56af29['ui']['view']){for(const [_0x57dedf,_0x74377e]of Object['entries'](_0x56af29['ui']['view']['editables']))_0x57c202[_0x57dedf]=_0x74377e['element'];}else _0x57c202[_0x56af29['model']['document']['getRootNames']()[0x0]]=_0x56af29['ui']['view']['editable']['element'];return _0x57c202;}(_0x14fd5d),_0x18cbb0=function(_0x1177bc){let _0x169b90=0x0;for(const _0x542e39 of Object['values'](_0x1177bc))_0x169b90=Math['max'](_0x169b90,_0x542e39['getBoundingClientRect']()['width']);let _0xaf2aff=0x0;for(const _0x3636d9 of Object['values'](_0x1177bc))_0xaf2aff+=_0x3636d9['getBoundingClientRect']()['height'];const _0x50cfa6=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x599dd5=Math['min'](_0xaf2aff,_0x50cfa6);return{'width':_0x169b90,'height':_0x599dd5};}(_0x542b2e);_0x4aacf5['show']({'id':'finalContentPreview','title':o(_0x493678,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x493678,{'dialogRects':_0x18cbb0}),'onHide':()=>{_0x5e170c['detachFromDom']();},'onShow':()=>{_0x14fd5d['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4fa245=>{const _0x26b225=this['_standarizeRootsData'](_0x4fa245,_0x14fd5d,_0x542b2e);_0x4aacf5['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x26b225,_0x14fd5d['config']['get']('trackChanges.preview.renderFunction'));}),_0x5e170c=new _0x3cdf0c(_0x493678,[_0x4aacf5['view']]),_0x5e170c['attachToDom'](),_0x5e170c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x14fd5d['once']('destroy',()=>{_0x5e170c['detachFromDom']();});const _0x696934=_0x4aacf5['view']['headerView']['class'];_0x4aacf5['view']['headerView']['class']=_0x696934?_0x696934+'\x20ck-reset_all':'ck-reset_all',_0x4aacf5['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4aacf5['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5b7692=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x480bfe=_0x5b7692['previewMode'],_0x47f294={};if('$labels'===_0x480bfe){for(const _0xeb3d01 of _0x5b7692['getMergeFieldsIds']())_0x47f294[_0xeb3d01]=_0x5b7692['getLabel'](_0xeb3d01)||_0xeb3d01;}else{const _0x421c30='$defaultValues'===_0x480bfe?_0x5b7692['getDefaultValues']():_0x5b7692['getDataSetValues'](_0x480bfe,!0x0);for(const _0x39f8ec of Object['entries'](_0x421c30)){const [_0x1b22c4,_0x276588]=_0x39f8ec;_0x47f294[_0x1b22c4]=null!==_0x276588?_0x276588:_0x5b7692['getLabel'](_0x1b22c4)||_0x1b22c4;}}return{'mergeFieldsData':_0x47f294};}['_standarizeRootsData'](_0x2420b6,_0x24fd6f,_0x448e86){let _0x2fc4ec;if('string'==typeof _0x2420b6){const _0x34932a=_0x24fd6f['model']['document']['getRootNames']()[0x0];_0x2fc4ec={[_0x34932a]:_0x2420b6};}else _0x2fc4ec=_0x2420b6;const _0x43e6c5=this['_fixMediaEmbeds'](_0x2fc4ec,_0x24fd6f),_0x8a0cbe=function(_0x2ea5a0,_0x1bd459){for(const [_0x141836,_0x617cde]of _0x2ea5a0)_0x617cde['classes']=_0x1bd459[_0x141836]['classList']['value']['replace']('ck-focused','');return _0x2ea5a0;}(this['_sortRoots'](_0x24fd6f)['reduce']((_0x4a5feb,_0xb9faa1)=>(_0x4a5feb['push']([_0xb9faa1,{'content':_0x43e6c5[_0xb9faa1],'classes':''}]),_0x4a5feb),[]),_0x448e86);return _0x8a0cbe;}['_fixMediaEmbeds'](_0x23f4f0,_0x22a0d7){if(!_0x22a0d7['plugins']['has']('MediaEmbedEditing'))return _0x23f4f0;const _0x5d2025=_0x22a0d7['plugins']['get']('MediaEmbedEditing');for(const [_0x32370c,_0xe09e90]of Object['entries'](_0x23f4f0)){const _0x548454=document['createElement']('div');_0x548454['innerHTML']=_0xe09e90,(_0x548454['querySelectorAll']('figure.media')['forEach'](_0x3bf00b=>{const _0x3e0318=_0x3bf00b['querySelector']('oembed');if(_0x3e0318){const _0x449d45=_0x3e0318['getAttribute']('url');if(_0x449d45){const _0x950de6=_0x5d2025['registry']['getMediaViewElement'](new _0x258a54(_0x22a0d7['editing']['view']['document']),_0x449d45,{'elementName':'','renderForEditingView':!0x0}),_0xe8c69e=document['createElement']('div');_0xe8c69e['classList']['add']('ck-media__wrapper'),_0x950de6['render'](_0xe8c69e,_0x22a0d7['editing']['view']['domConverter']),_0x3e0318['replaceWith'](_0xe8c69e);}}}),_0x23f4f0[_0x32370c]=_0x548454['innerHTML']);}return _0x23f4f0;}['_sortRoots'](_0x20761c){if(!function(_0x462b7f){return void 0x0!==_0x462b7f['getRootsAttributes'];}(_0x20761c))return _0x20761c['model']['document']['getRootNames']();const _0xbdf1fb=[],_0x18edcb=new Map();for(const _0x21b259 of _0x20761c['model']['document']['getRootNames']()){const _0x430c93=_0x20761c['editing']['view']['getDomRoot'](_0x21b259)['getClientRects']()['item'](0x0);_0xbdf1fb['push'](_0x21b259),_0x18edcb['set'](_0x21b259,_0x430c93);}return _0xbdf1fb['sort']((_0x50653e,_0x436d9f)=>{const _0x181a55=_0x18edcb['get'](_0x50653e),_0x1a7cf7=_0x18edcb['get'](_0x436d9f);return _0x181a55['y']-_0x1a7cf7['y']||_0x181a55['x']-_0x1a7cf7['x'];}),_0xbdf1fb;}}class $e extends _0x43125c{static get['requires'](){return[re,_0x4dc1fa];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b7e2f){super(_0x1b7e2f),_0x1b7e2f['commands']['add']('previewFinalContent',new te(this['editor'])),_0x1b7e2f['config']['define']('trackChanges.preview.renderFunction',(_0x562bf3,_0x242372)=>{for(const _0x5c12de of _0x242372)_0x562bf3['appendChild'](_0x5c12de);});}}export{D as AcceptSuggestionCommand,ti as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x3c0660,Plugin as _0x573845,PendingActions as _0x36c5c9}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x55c846,ObservableMixin as _0xad4ab3,uid as _0x334525,priorities as _0x4aac02,insertToPriorityArray as _0x45163b,toArray as _0x40c634,logWarning as _0x42dd4f,getEnvKeystrokeText as _0x49ca32,FocusTracker as _0x26cf0f,KeystrokeHandler as _0x463913,Collection as _0x1cf2e2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x54ddab,IconCancel as _0x2590d6,IconTrackChanges as _0x34b412}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x53f79b,View as _0x51b4e6,ViewCollection as _0x4cfbc0,FocusCycler as _0x18e82b,UIModel as _0x506e9b,createDropdown as _0x5a72bb,SplitButtonView as _0x379a1e,addListToDropdown as _0x228178,MenuBarMenuView as _0x40e698,MenuBarMenuListView as _0x27bc01,ListSeparatorView as _0x1c278e,MenuBarMenuListItemView as _0x31cd3e,MenuBarMenuListItemButtonView as _0x5d6f0b,BodyCollection as _0x307f39,Dialog as _0x525d08}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x339440,hashObject as _0x504617,surroundingMarkersDetector as _0x34f048,FOCUS_ANNOTATION_KEYSTROKE as _0x3f83d3,AriaDescriptionView as _0x5ed401,setupThreadKeyboardNavigation as _0x7bd68c,trimHtml as _0x501172,UserView as _0x2d779c,LateFocusButtonView as _0x7fc134,getDateTimeFormatter as _0x2261fe,getAllMarkersDomElementsSorted as _0x499841,sanitizeEditorConfig as _0x2b319f}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x2c4c5e,ModelLiveRange as _0x1f4d12,ModelLivePosition as _0x30a3dd,ViewDowncastWriter as _0x29bf86}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x267ebd,toWidget as _0x48680d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1f353d,set as _0x25ce2e,isEqual as _0x40eb7f,unset as _0x3093b8,omit as Ut}from'es-toolkit/compat';import{Delete as _0x278058,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x47d1d3}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3c134a}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x3c0660{['_enabledCommands'];constructor(_0x161658,_0x554f9f){super(_0x161658),this['_enabledCommands']=_0x554f9f,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 _0x1fc643 of this['editor']['commands']['commands']())_0x1fc643['affectsData']&&!this['_enabledCommands']['has'](_0x1fc643)&&_0x1fc643['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4b2232 of this['editor']['commands']['commands']())_0x4b2232['affectsData']&&!this['_enabledCommands']['has'](_0x4b2232)&&_0x4b2232['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x3c0660{['_suggestions'];constructor(_0x2e44b9,_0x2bd281){super(_0x2e44b9),this['_suggestions']=_0x2bd281,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x33feaa){const _0x594c2d=this['_suggestions']['get'](_0x33feaa);if(!_0x594c2d)throw new _0x55c846('track-changes-accept-suggestion-not-found',this);const _0x3d4077=_0x594c2d['getRanges']();this['editor']['model']['canEditAt'](_0x3d4077)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x594c2d);}}class $ extends _0x3c0660{['_suggestions'];constructor(_0x388ba1,_0x40b346){super(_0x388ba1),this['_suggestions']=_0x40b346,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2477b8){const _0x3fa993=this['_suggestions']['get'](_0x2477b8);if(!_0x3fa993)throw new _0x55c846('track-changes-discard-suggestion-not-found',this);const _0x4cdd46=_0x3fa993['getRanges']();this['editor']['model']['canEditAt'](_0x4cdd46)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3fa993);}}function ls(_0x44f86d,_0x148458){let _0x3c7daf='';return _0x3c7daf+=_0x44f86d['split']('*')['map']((_0x1c123f,_0x50bf72)=>_0x50bf72%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x1c123f)+'</span>':Zt(_0x1c123f))['join'](''),_0x148458&&(_0x3c7daf+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x148458['value']+'\x22\x20title=\x22'+_0x148458['title']+'\x22></span>'),_0x3c7daf;}function Zt(_0x1a81f5){const _0x1e56e4=document['createElement']('span');return _0x1e56e4['innerText']=_0x1a81f5,_0x1e56e4['innerHTML'];}function ts(_0x48f54c){return _0x48f54c['sort']((_0xb42fa8,_0x505e66)=>'attribute'===_0xb42fa8['type']&&'attribute'!==_0x505e66['type']?-0x1:'attribute'!==_0xb42fa8['type']&&'attribute'===_0x505e66['type']?0x1:'deletion'==_0xb42fa8['type']&&'deletion'!=_0x505e66['type']?-0x1:'deletion'!=_0xb42fa8['type']&&'deletion'==_0x505e66['type']?0x1:0x0);}function to(_0x2fefa9,_0x1d1b1e){let _0xfc7577,_0x460f52=0x0;const _0x396906=[],_0x15902d=_0x1d1b1e['schema'];for(;_0x460f52<_0x2fefa9['length'];){const _0x16f735=_0x2fefa9[_0x460f52],_0x51e959=_0x2fefa9[_0x460f52+0x1];_0xfc7577||(_0xfc7577=_0x1d1b1e['createPositionBefore'](_0x16f735)),tn(_0x1d1b1e,_0x16f735,_0x51e959)||(_0x396906['push'](_0x1d1b1e['createRange'](_0xfc7577,_0x15902d['isObject'](_0x16f735)?_0x1d1b1e['createPositionAfter'](_0x16f735):_0x1d1b1e['createPositionAt'](_0x16f735,'end'))),_0xfc7577=null),_0x460f52++;}return _0x396906;}function tn(_0x43d49a,_0x369edd,_0x386298){if(!_0x386298)return!0x1;const _0xa65bf=_0x43d49a['createPositionAfter'](_0x369edd),_0x147548=_0x43d49a['createPositionBefore'](_0x386298);return _0xa65bf['isTouching'](_0x147548);}function rs(_0x5b5817,_0x544c4c,_0x75de1b){for(;_0x75de1b['length'];){const _0x32de48=_0x75de1b['splice'](0x0,0x64);_0x5b5817['change'](()=>{for(const _0x265fa7 of _0x32de48)_0x265fa7['isInContent']&&_0x544c4c['execute'](_0x265fa7['id']);});}}class M extends _0x3c0660{['_command'];['_suggestions'];constructor(_0x8af2b3,_0x1592eb,_0x224f3d){super(_0x8af2b3),this['_command']=_0x1592eb,this['_suggestions']=_0x224f3d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5e0897=Array['from'](this['_suggestions']['values']())['some'](_0x42ff34=>_0x42ff34['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5e0897;}['execute'](){const _0x293cd7=ts(Array['from'](this['_suggestions']['values']()));for(const _0x37491b of _0x293cd7){const _0x328620=_0x37491b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x328620))return;}rs(this['editor']['model'],this['_command'],_0x293cd7);}}class B extends _0x3c0660{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xc3d70b,_0x1f6e56,_0x1743d8){super(_0xc3d70b),this['_command']=_0x1f6e56,this['_suggestions']=_0x1743d8,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1a74ee=this['editor']['model']['document']['selection'],_0x557040=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5cea34,_0x18ba8d){const _0x26188b=Array['from'](_0x5cea34['getRanges']()),_0x2f4620=new Set();for(const _0xc0884d of _0x18ba8d)if(_0xc0884d['isInContent']){for(const _0x3b4890 of _0x26188b)for(const _0x1d3e86 of _0xc0884d['getRanges']())(_0x3b4890['isIntersecting'](_0x1d3e86)||_0x5cea34['isCollapsed']&&!_0xc0884d['isMultiRange']&&_0xc0884d['next']&&_0x1d3e86['end']['isTouching'](_0x3b4890['start']))&&_0x2f4620['add'](_0xc0884d);}return _0x2f4620;}(_0x1a74ee,_0x557040),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x662cd2=ts(Array['from'](this['_selectedSuggestions']));for(const _0x484be8 of _0x662cd2){const _0x46caef=_0x484be8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x46caef))return;}rs(this['editor']['model'],this['_command'],_0x662cd2);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0xad4ab3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1f16ee,_0x1a97f3){super(),this['id']=_0x1a97f3['id'],this['type']=_0x1a97f3['type'],this['subType']=_0x1a97f3['subType']||null,this['author']=_0x1a97f3['author'],this['creator']=_0x1a97f3['creator']||_0x1a97f3['author'],this['isExternal']=Boolean(_0x1a97f3['attributes']&&_0x1a97f3['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1a97f3['originalSuggestionId']||null,this['_model']=_0x1f16ee,this['_onAccept']=_0x1a97f3['onAccept'],this['_onDiscard']=_0x1a97f3['onDiscard'],this['_onAttributesChange']=_0x1a97f3['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1a97f3['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 _0x48556c=this;for(;_0x48556c['previous'];)_0x48556c=_0x48556c['previous'];return _0x48556c;}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'](_0x206fcc){this['_markerNames']['add'](_0x206fcc);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4439e2=>this['_model']['markers']['get'](_0x4439e2))['filter'](_0x1ab98a=>_0x1ab98a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5ebcb1=>{for(const _0x185741 of this['getMarkers']())_0x5ebcb1['removeMarker'](_0x185741);}),this['_markerNames']['clear']();}['removeMarker'](_0x415ad8){this['_model']['change'](_0x54ed24=>{_0x54ed24['removeMarker'](_0x415ad8);}),this['_markerNames']['delete'](_0x415ad8);}['addRange'](_0x10cabb){const _0x371354='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x371354),this['_model']['change'](_0x58db25=>{_0x58db25['addMarker'](_0x371354,{'range':_0x10cabb,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x19e388){for(const _0xef0e78 of this['getRanges']())if(_0xef0e78['isIntersecting'](_0x19e388))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x40be59=>_0x40be59['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1fc019,_0x89e2b9)=>[..._0x1fc019,..._0x89e2b9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x9d069d=this['getRanges']();if(0x1!=_0x9d069d['length'])return null;const _0x474433=_0x9d069d[0x0],_0x349366=_0x474433['start']['nodeAfter'],_0x25874f=_0x474433['end']['nodeBefore'];return _0x349366 instanceof _0x2c4c5e?_0x349366!=_0x25874f?null:_0x349366: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 _0x28ec16=[];let _0xa15432=this['head'];for(;_0xa15432;)_0x28ec16['push'](_0xa15432),_0xa15432=_0xa15432['next'];return _0x28ec16;}['setAttribute'](_0x4fbcb8,_0x15c751){const _0x4c66d9=_0x1f353d(this['attributes']);_0x25ce2e(_0x4c66d9,_0x4fbcb8,_0x15c751),_0x40eb7f(_0x4c66d9,this['attributes'])||(this['attributes']=_0x4c66d9,this['_onAttributesChange'](_0x4c66d9));}['removeAttribute'](_0x2928a9){const _0x31b57a=_0x1f353d(this['attributes']);_0x3093b8(_0x31b57a,_0x2928a9),_0x40eb7f(_0x31b57a,this['attributes'])||(this['attributes']=_0x31b57a,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 _0x334525()['substr'](0x1,0x5);}}function o(_0x2b3388,_0x3f0c86,_0xb4ef37){const _0x43c9b1=_0x2b3388['t'],t=_0x2b3388['t'];switch(_0x3f0c86){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',_0xb4ef37);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xb4ef37);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xb4ef37);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xb4ef37);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xb4ef37);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',_0xb4ef37);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xb4ef37);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',_0xb4ef37);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xb4ef37);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xb4ef37);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xb4ef37);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xb4ef37);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xb4ef37);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xb4ef37);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xb4ef37);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xb4ef37);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xb4ef37);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xb4ef37);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xb4ef37);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xb4ef37);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xb4ef37);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xb4ef37);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xb4ef37);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xb4ef37);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xb4ef37);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'},_0xb4ef37);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xb4ef37);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xb4ef37);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xb4ef37);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xb4ef37);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xb4ef37);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xb4ef37);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xb4ef37);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'},_0xb4ef37);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xb4ef37);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xb4ef37);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xb4ef37);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xb4ef37);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'},_0xb4ef37);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xb4ef37);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'},_0xb4ef37);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0xb4ef37);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xb4ef37);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'},_0xb4ef37);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xb4ef37);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'},_0xb4ef37);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xb4ef37);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xb4ef37);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'},_0xb4ef37);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xb4ef37);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 _0x43c9b1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xb4ef37);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x43c9b1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xb4ef37);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xb4ef37);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'},_0xb4ef37);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'},_0xb4ef37);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'},_0xb4ef37);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3f0c86;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x34a7a9,_0x25e28b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x34a7a9,this['_locale']=_0x25e28b;}['getDescriptions'](_0x3f3f44){const _0x30bf0e=[],_0x395ac1=new Set(),_0x1c1653=new Set();for(let _0x40ec00=0x0;_0x40ec00<_0x3f3f44['length'];_0x40ec00++){const _0x5b6b3a=_0x3f3f44[_0x40ec00];if(!_0x5b6b3a['isInContent'])continue;const _0x5354a8=this['_handleCustomCallbackDescription'](_0x5b6b3a);if(_0x5354a8){if(null!=_0x5b6b3a['subType']){if(_0x395ac1['has'](_0x5b6b3a['subType']))continue;_0x395ac1['add'](_0x5b6b3a['subType']);}_0x30bf0e['push'](_0x5354a8);}else{if('attribute'==_0x5b6b3a['type']){const _0x530ace=_0x5b6b3a['data']['key'];if(_0x1c1653['has'](_0x530ace))continue;_0x1c1653['add'](_0x5b6b3a['data']['key']),_0x530ace==m?this['_handleRenameSuggestionDescription'](_0x30bf0e,_0x5b6b3a):this['_handleAttributeSuggestionDescription'](_0x30bf0e,_0x5b6b3a);continue;}'insertion'!=_0x5b6b3a['type']&&'deletion'!=_0x5b6b3a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x30bf0e,_0x5b6b3a,_0x3f3f44[_0x40ec00+0x1]);}}return this['_resolveDescriptionItems'](_0x30bf0e);}['registerDescriptionCallback'](_0x14ae78){this['_customCallbacks']['push'](_0x14ae78);}['registerElementLabel'](_0x159a1c,_0x4ac7ce,_0x3afb31=_0x4aac02['normal']){'function'==typeof _0x159a1c?_0x45163b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x159a1c,'label':_0x4ac7ce,'priority':_0x3afb31}):this['_itemLabels']['set'](_0x159a1c,_0x4ac7ce);}['registerAttributeLabel'](_0x2a72de,_0x407688){this['_attributeLabels']['set'](_0x2a72de,_0x407688);}['getItemLabel'](_0x1a4d65,_0x2dc64c=0x1){let _0x4594ff;for(const _0x2cf708 of this['_itemLabelsCallbacks'])if(_0x2cf708['matchingCallback'](_0x1a4d65)){_0x4594ff=_0x2cf708['label'];break;}return _0x4594ff||(_0x4594ff=this['_itemLabels']['get'](_0x1a4d65['name'])),_0x4594ff?_0x4594ff(_0x2dc64c):0x1!==_0x2dc64c?_0x2dc64c+'\x20'+_0x1a4d65['name']+'s':''+_0x1a4d65['name'];}['_addDescriptionItems'](_0x25ae10,_0x40f882){const _0x532141=_0x40f882['getFirstRange']()['getWalker'](),_0x58ab60='insertion'==_0x40f882['type']?'add':'remove';for(const _0x3851c0 of _0x532141){const _0x15a5ba=_0x3851c0['item'],_0x1bf67b=_0x25ae10[_0x25ae10['length']-0x1];if(_0x15a5ba['is']('$textProxy'))_0x1bf67b&&_0x1bf67b['type']['indexOf']('Container')>-0x1&&_0x25ae10['pop'](),_0x1bf67b&&'text'==_0x1bf67b['type']?_0x1bf67b[_0x58ab60]+=_0x15a5ba['data']:_0x25ae10['push']({'type':'text','add':'add'==_0x58ab60?_0x15a5ba['data']:'','remove':'remove'==_0x58ab60?_0x15a5ba['data']:''});else{if(this['_schema']['isObject'](_0x15a5ba)){const _0x588a36=_0x15a5ba;if(_0x1bf67b&&_0x1bf67b['type']['indexOf']('Container')>-0x1&&_0x25ae10['pop'](),'elementEnd'==_0x3851c0['type'])continue;_0x1bf67b&&_0x1bf67b['type']==_0x58ab60+'Object'&&_0x1bf67b['element']['name']==_0x588a36['name']?_0x1bf67b['quantity']++:_0x25ae10['push']({'type':_0x58ab60+'Object','element':_0x588a36,'quantity':0x1}),_0x532141['skip'](_0x2e0e9c=>!('elementEnd'==_0x2e0e9c['type']&&_0x2e0e9c['item']==_0x15a5ba));}else{if(this['_schema']['checkChild'](_0x15a5ba,'$text')||_0x15a5ba['is']('element','softBreak')){const _0x11ef0a=_0x15a5ba;if('add'==_0x58ab60&&'elementStart'==_0x3851c0['type']||'remove'==_0x58ab60&&'elementEnd'==_0x3851c0['type'])continue;if(_0x1bf67b&&-0x1==_0x1bf67b['type']['indexOf']('Container')){'text'==_0x1bf67b['type']&&(_0x1bf67b[_0x58ab60]+='\x0a');continue;}let _0x202851;if(_0x202851='add'==_0x58ab60?_0x11ef0a['nextSibling']&&!this['_schema']['isObject'](_0x11ef0a['nextSibling'])?_0x11ef0a['nextSibling']:null:_0x11ef0a['previousSibling']&&!this['_schema']['isObject'](_0x11ef0a['previousSibling'])?_0x11ef0a['previousSibling']:null,_0x11ef0a['isEmpty']||_0x202851&&_0x202851['isEmpty']){const _0x13b211=_0x202851&&_0x202851['isEmpty']?_0x202851:_0x11ef0a;_0x1bf67b&&_0x1bf67b['type']==_0x58ab60+'EmptyContainer'&&_0x1bf67b['element']['name']==_0x13b211['name']?_0x1bf67b['quantity']++:_0x25ae10['push']({'type':_0x58ab60+'EmptyContainer','element':_0x13b211,'quantity':0x1});}else _0x25ae10['push']({'type':_0x58ab60+'Container','element':_0x11ef0a});}}}}}['_resolveDescriptionItems'](_0x3f99ed){const _0x1fea58=this['_locale'],_0x57b24b=[],_0x38db9f=[],_0x28b2a2=[];for(const _0x3d9db2 of _0x3f99ed)switch(_0x3d9db2['type']){case'text':if(_0x3d9db2['add']=_0x3d9db2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3d9db2['remove']=_0x3d9db2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3d9db2['add']&&''!=_0x3d9db2['remove']){_0x57b24b['push']({'type':'replace','content':o(_0x1fea58,'REPLACE_TEXT',['\x22'+_0x3d9db2['remove']+'\x22','\x22'+_0x3d9db2['add']+'\x22'])});continue;}if(null!=_0x3d9db2['add']['match'](/^ +$/)){_0x57b24b['push']({'type':'insertion','content':o(_0x1fea58,'*Insert:*\x20%0',o(_0x1fea58,'ELEMENT_SPACE',_0x3d9db2['add']['length']))});continue;}if(null!=_0x3d9db2['remove']['match'](/^ +$/)){_0x57b24b['push']({'type':'deletion','content':o(_0x1fea58,'*Remove:*\x20%0',o(_0x1fea58,'ELEMENT_SPACE',_0x3d9db2['remove']['length']))});continue;}if(''!=_0x3d9db2['add']){_0x57b24b['push']({'type':'insertion','content':o(_0x1fea58,'*Insert:*\x20%0','\x22'+_0x3d9db2['add']+'\x22')});continue;}_0x57b24b['push']({'type':'deletion','content':o(_0x1fea58,'*Remove:*\x20%0','\x22'+_0x3d9db2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x57b24b['push']({'type':'insertion','content':o(_0x1fea58,'*Insert:*\x20%0',this['getItemLabel'](_0x3d9db2['element'],_0x3d9db2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x57b24b['push']({'type':'deletion','content':o(_0x1fea58,'*Remove:*\x20%0',this['getItemLabel'](_0x3d9db2['element'],_0x3d9db2['quantity']))});continue;case'addContainer':_0x57b24b['push']({'type':'insertion','content':o(_0x1fea58,'*Split:*\x20%0',this['getItemLabel'](_0x3d9db2['element'],_0x3d9db2['quantity']))});continue;case'removeContainer':_0x57b24b['push']({'type':'deletion','content':o(_0x1fea58,'*Merge:*\x20%0',this['getItemLabel'](_0x3d9db2['element'],_0x3d9db2['quantity']))});continue;case'addFormat':_0x38db9f['push'](_0x3d9db2['key']);continue;case'removeFormat':_0x28b2a2['push'](_0x3d9db2['key']);continue;default:_0x57b24b['push'](_0x3d9db2);}if(_0x38db9f['length']){const _0x385f0e=_0x38db9f['map'](_0x577458=>this['_attributeLabels']['has'](_0x577458)?this['_attributeLabels']['get'](_0x577458):_0x577458)['join'](',\x20');_0x57b24b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x385f0e)});}if(_0x28b2a2['length']){const _0x3aad25=_0x28b2a2['map'](_0x509dcc=>this['_attributeLabels']['has'](_0x509dcc)?this['_attributeLabels']['get'](_0x509dcc):_0x509dcc)['join'](',\x20');_0x57b24b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3aad25)});}return _0x57b24b;}['_handleCustomCallbackDescription'](_0x4030b5){for(const _0x1d845b of this['_customCallbacks']){const _0x1a6615=_0x1d845b(_0x4030b5);if(_0x1a6615&&'type'in _0x1a6615)return _0x1a6615;}}['_handleAttributeSuggestionDescription'](_0x490250,_0x2b69a6){const _0x5a49d0=_0x2b69a6['data'],_0x4b441d=void 0x0===_0x5a49d0['newValue']?'removeFormat':'addFormat';_0x490250['push']({'type':_0x4b441d,'key':_0x5a49d0['key']});}['_handleRenameSuggestionDescription'](_0x109d47,_0x35f0cf){_0x109d47['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x35f0cf['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4f838a,_0x544f7c,_0x4c0a56){if(this['_addDescriptionItems'](_0x4f838a,_0x544f7c),_0x4c0a56&&_0x4c0a56['getFirstRange']()&&!_0x544f7c['getFirstRange']()['end']['isEqual'](_0x4c0a56['getFirstRange']()['start'])){const _0x40eb2b=_0x4f838a[_0x4f838a['length']-0x1],_0x50dde1='insertion'==_0x544f7c['type']?'add':'remove';_0x40eb2b&&'text'==_0x40eb2b['type']&&(_0x40eb2b[_0x50dde1]+='\x0a');}}}class O extends _0x573845{['afterInit'](){const _0x360756=this['editor'],_0x303075=_0x360756['plugins']['get']('TrackChangesEditing');_0x360756['commands']['get']('showAIAssistant')&&_0x303075['enableCommand']('showAIAssistant');}}class E extends _0x573845{['afterInit'](){const _0x3970fc=this['editor'],_0x28edf2=_0x3970fc['locale'];if(!_0x3970fc['plugins']['has']('AlignmentEditing'))return;const _0x4887f9=_0x3970fc['plugins']['get']('TrackChangesEditing');_0x4887f9['enableDefaultAttributesIntegration']('alignment'),_0x4887f9['registerBlockAttribute']('alignment'),_0x4887f9['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x28edf2,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ba4a0=this['editor'],_0x39701c=_0x4ba4a0['locale'];_0x4ba4a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14fa78=>{if('formatBlock'!=_0x14fa78['type'])return;const {data:_0x1e0c99}=_0x14fa78;if(_0x1e0c99&&'alignment'==_0x1e0c99['commandName']){const _0x4463b8=_0x1e0c99['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x39701c,'*Format:*\x20%0',function(_0x771e4c){switch(_0x771e4c){case'left':return o(_0x39701c,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x39701c,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x39701c,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x39701c,'FORMAT_JUSTIFY_TEXT');}}(_0x4463b8))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x573845{['afterInit'](){const _0x30705a=this['editor'],_0x2fcad9=_0x30705a['plugins']['get']('TrackChangesEditing'),_0x3d755c=_0x30705a['locale'];for(const _0x4a00e3 of ti){if(!_0x30705a['plugins']['has'](_0x4a00e3))continue;const _0x3b8560=_0x4a00e3['slice'](0x0,-0x7)['toLowerCase'](),_0x462978='FORMAT_'+_0x3b8560['toUpperCase']();_0x2fcad9['enableDefaultAttributesIntegration'](_0x3b8560),_0x2fcad9['registerInlineAttribute'](_0x3b8560),_0x2fcad9['descriptionFactory']['registerAttributeLabel'](_0x3b8560,o(_0x3d755c,_0x462978));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x348bfd=this['editor'],_0x5560e4=_0x348bfd['locale'],_0x133f0f=_0x348bfd['plugins']['get']('TrackChangesEditing');function _0x3085b9(_0x25b7a6,_0x4c1394){_0x133f0f['descriptionFactory']['registerDescriptionCallback'](_0x1cff0c=>{if('formatInline'!=_0x1cff0c['type'])return;const {data:_0xc33418}=_0x1cff0c;return _0xc33418&&_0xc33418['commandName']===_0x25b7a6?_0xc33418['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5560e4,'*Format:*\x20%0',_0x4c1394)}:{'type':'format','content':o(_0x5560e4,'*Remove\x20format:*\x20%0',_0x4c1394)}:void 0x0;});}_0x3085b9('bold',o(_0x5560e4,'FORMAT_BOLD')),_0x3085b9('italic',o(_0x5560e4,'FORMAT_ITALIC')),_0x3085b9('underline',o(_0x5560e4,'FORMAT_UNDERLINE')),_0x3085b9('code',o(_0x5560e4,'FORMAT_CODE')),_0x3085b9('strikethrough',o(_0x5560e4,'FORMAT_STRIKETHROUGH')),_0x3085b9('subscript',o(_0x5560e4,'FORMAT_SUBSCRIPT')),_0x3085b9('superscript',o(_0x5560e4,'FORMAT_SUPERSCRIPT'));}}class U extends _0x573845{['afterInit'](){const _0x8f3eea=this['editor'],_0x1d0f11=_0x8f3eea['locale'];if(!_0x8f3eea['plugins']['has']('BlockQuoteEditing'))return;const _0x8f1322=_0x8f3eea['plugins']['get']('TrackChangesEditing'),_0x2c8fa0=this['editor']['commands']['get']('blockQuote');_0x8f1322['enableCommand']('blockQuote',(_0x58f0af,_0x37548e={})=>{const _0x10a773=this['editor']['model']['document']['selection'],_0x54f43f=_0x37548e&&void 0x0!==_0x37548e['forceValue']?_0x37548e['forceValue']:!_0x2c8fa0['value'];let _0x553d6b=[];if(_0x54f43f){const _0x3ba625=Array['from'](_0x10a773['getSelectedBlocks']())['filter'](_0x5bc690=>oo(_0x5bc690)||function(_0x25750d,_0x16b2e9){const _0x22562c=_0x16b2e9['checkChild'](_0x25750d['parent'],'blockQuote'),_0x31f365=_0x16b2e9['checkChild'](['$root','blockQuote'],_0x25750d);return _0x22562c&&_0x31f365;}(_0x5bc690,this['editor']['model']['schema']));_0x553d6b=to(_0x3ba625,_0x8f3eea['model']);}else{const _0x25c76f=Array['from'](_0x10a773['getSelectedBlocks']())['filter'](_0x3dfbaa=>oo(_0x3dfbaa));_0x553d6b=to(_0x25c76f,_0x8f3eea['model']);}_0x8f3eea['model']['change'](()=>{for(const _0x3cd5d4 of _0x553d6b)_0x8f1322['markBlockFormat'](_0x3cd5d4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x54f43f}]});});}),_0x8f1322['descriptionFactory']['registerDescriptionCallback'](_0x190e19=>{const {data:_0x1feb93}=_0x190e19;if(_0x1feb93&&'blockQuote'==_0x1feb93['commandName']){const _0x11596d=o(_0x1d0f11,'ELEMENT_BLOCK_QUOTE');return _0x1feb93['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1d0f11,'*Set\x20format:*\x20%0',_0x11596d)}:{'type':'format','content':o(_0x1d0f11,'*Remove\x20format:*\x20%0',_0x11596d)};}});}}function oo(_0x2ca5de){return'blockQuote'==_0x2ca5de['parent']['name'];}class V extends _0x573845{['afterInit'](){const _0x185526=this['editor'],_0x3f5591=_0x185526['locale'],_0x17500c=_0x185526['plugins']['get']('TrackChangesEditing');_0x185526['plugins']['has']('BookmarkEditing')&&(_0x17500c['enableCommand']('insertBookmark'),_0x17500c['enableDefaultAttributesIntegration']('updateBookmark'),_0x17500c['registerBlockAttribute']('bookmarkId'),_0x17500c['descriptionFactory']['registerDescriptionCallback'](_0x4b5f0e=>{if('insertion'!=_0x4b5f0e['type']&&'deletion'!=_0x4b5f0e['type']&&'attribute'!=_0x4b5f0e['type'])return;const _0x1d272b=_0x4b5f0e['getContainedElement']();if(null==_0x1d272b)return;if(!_0x1d272b['is']('element','bookmark'))return;const _0x18154f=_0x1d272b['getAttribute']('bookmarkId');if('insertion'==_0x4b5f0e['type'])return{'type':'insertion','content':o(_0x3f5591,'*Insert:*\x20%0','\x22'+_0x18154f+'\x22\x20'+o(_0x3f5591,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4b5f0e['type'])return{'type':'deletion','content':o(_0x3f5591,'*Remove:*\x20%0','\x22'+_0x18154f+'\x22\x20'+o(_0x3f5591,'ELEMENT_BOOKMARK'))};const {data:_0x455bed}=_0x4b5f0e;if(!_0x455bed||'bookmarkId'!=_0x455bed['key'])return;return{'type':'format','content':o(_0x3f5591,'*Set\x20bookmark:*\x20%0','\x22'+_0x455bed['newValue']+'\x22')};}));}}class F extends _0x573845{['afterInit'](){const _0x3fdaaa=this['editor'];_0x3fdaaa['plugins']['has']('CaseChange')&&(_0x3fdaaa['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3fdaaa['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3fdaaa['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x573845{['afterInit'](){const _0x35ceb0=this['editor'];_0x35ceb0['commands']['get']('ckbox')&&_0x35ceb0['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x573845{['afterInit'](){const _0x4bf640=this['editor'];if(!_0x4bf640['plugins']['has']('CodeBlock'))return;const _0x183ff1=_0x4bf640['plugins']['get']('TrackChangesEditing'),_0x30318f=_0x4bf640['locale'],_0x304112=_0x4bf640['config']['get']('codeBlock')['languages'],_0x452941=_0x4bf640['commands']['get']('codeBlock');_0x183ff1['enableCommand']('indentCodeBlock'),_0x183ff1['enableCommand']('outdentCodeBlock'),_0x183ff1['enableCommand']('codeBlock',(_0x28e1dc,_0x2fdd81={})=>{const _0x905b05=_0x4bf640['model'],_0x28ae96=_0x4bf640['model']['document']['selection'],_0x1c46a6=_0x2fdd81&&void 0x0!==_0x2fdd81['forceValue']?_0x2fdd81['forceValue']:!_0x452941['value'];let _0x5f4fab;_0x2fdd81['language']||(_0x2fdd81['language']=_0x304112[0x0]['language']),_0x5f4fab=_0x1c46a6?Array['from'](_0x28ae96['getSelectedBlocks']())['filter'](_0x1e55a0=>co(_0x1e55a0)||function(_0x47fa37,_0x263665){if(_0x47fa37['is']('rootElement')||_0x263665['isLimit'](_0x47fa37))return!0x1;return _0x263665['checkChild'](_0x47fa37['parent'],'codeBlock');}(_0x1e55a0,_0x905b05['schema'])):Array['from'](_0x28ae96['getSelectedBlocks']())['filter'](_0x29c325=>co(_0x29c325));const _0x453977=to(_0x5f4fab,_0x905b05);_0x905b05['change'](()=>{for(const _0x29b94a of _0x453977)_0x183ff1['markBlockFormat'](_0x29b94a,{'commandName':'codeBlock','commandParams':[{..._0x2fdd81,'forceValue':_0x1c46a6}],'formatGroupId':'blockName'});});}),(_0x183ff1['descriptionFactory']['registerElementLabel']('codeBlock',_0x12269f=>o(_0x30318f,'ELEMENT_CODE_BLOCK',_0x12269f)),_0x183ff1['descriptionFactory']['registerDescriptionCallback'](_0x4d0b1d=>{if('formatBlock'!=_0x4d0b1d['type'])return;const _0x542829=_0x30318f['t'],{data:_0x12ae97}=_0x4d0b1d;if(!_0x12ae97||'codeBlock'!=_0x12ae97['commandName'])return;const _0x8ad539=_0x12ae97['commandParams'][0x0]['language'],_0x262d74=_0x542829(_0x304112['find'](_0x9c5f8c=>_0x9c5f8c['language']===_0x8ad539)['label'])['toLowerCase']();return _0x12ae97['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x30318f,'*Set\x20format:*\x20%0',o(_0x30318f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x262d74+')')}:{'type':'format','content':o(_0x30318f,'*Remove\x20format:*\x20%0',o(_0x30318f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x307ba1){return'codeBlock'==_0x307ba1['name'];}class J extends _0x573845{['afterInit'](){const _0x3d0d36=this['editor'];if(!_0x3d0d36['plugins']['has']('CommentsEditing'))return;_0x3d0d36['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3febd3,_0x406c41,_0x33d46b){const _0x16b0ed=[];for(const _0x592b74 of _0x406c41['getItems']())_0x592b74['hasAttribute'](_0x3febd3)&&_0x16b0ed['push'](_0x33d46b['createRangeOn'](_0x592b74));return _0x16b0ed;}function De(_0x1c31e7,_0x4080bc,{showActiveMarker:_0x4277ff=!0x0}={}){const _0x209b87=_0x1c31e7['plugins']['get']('TrackChangesEditing');return(_0x3b5e4e,_0xfb8648,_0x168e70)=>{if(!_0x168e70['consumable']['test'](_0xfb8648['markerRange'],_0x3b5e4e['name']))return;const _0x586cc9=_0xfb8648['markerRange']['getWalker'](),_0x13d449=_0xfb8648['markerRange']['start'],_0x30fec8=_0x1c31e7['model']['schema'];let _0x5ad4b0=null,_0x405009=null,_0x59a252=!0x1,_0x8d54b8=!0x1;for(const _0x2a019d of _0x586cc9){const _0x3f7599=_0x2a019d['item'];_0x59a252=_0x59a252||_0x30fec8['isContent'](_0x3f7599);const _0xd3ac81=_0x168e70['mapper']['toViewElement'](_0x3f7599);if(_0xd3ac81&&_0xd3ac81['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2a019d['type']&&(_0x30fec8['isBlock'](_0x3f7599)&&!_0x30fec8['isLimit'](_0x3f7599)&&(_0x3f7599['nextSibling']||_0x13d449['isAtEnd']?_0x5ad4b0&&_0x5ad4b0['parent']==_0x3f7599||(_0x5ad4b0=_0x3f7599,_0x146e09(_0x2a019d['previousPosition']),_0x8d54b8=!0x0):_0x405009=_0x405009||_0x2a019d['previousPosition']));}function _0x146e09(_0x123a45){const {id:_0x51e6fe,authorId:_0x2fe6e2}=_0x209b87['_splitMarkerName'](_0xfb8648['markerName']),_0x1054fd=_0x168e70['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4080bc,'data-suggestion':_0x51e6fe,'data-author-id':_0x2fe6e2}),_0x30d60a=_0x168e70['mapper']['toViewPosition'](_0x123a45);_0x4277ff&&_0x209b87['activeMarkers']['includes'](_0xfb8648['markerName'])&&_0x168e70['writer']['addClass']('ck-suggestion-marker--active',_0x1054fd),_0x168e70['writer']['insert'](_0x30d60a,_0x1054fd),_0x168e70['mapper']['bindElementToMarker'](_0x1054fd,_0xfb8648['markerName']);}_0x59a252||_0x8d54b8||!_0x405009||_0x146e09(_0x405009);};}class K extends _0x573845{static get['requires'](){return[_0x278058];}['init'](){const _0x474ffb=this['editor'],_0x230ba3=_0x474ffb['plugins']['get']('TrackChangesEditing');_0x230ba3['enableCommand']('delete');const _0x3305b9=_0x474ffb['commands']['get']('deleteForward');_0x230ba3['enableCommand']('deleteForward',(_0x1ce8fa,_0x1c24b8={})=>{const _0x3d4a0a=_0x474ffb['model']['createSelection'](_0x474ffb['model']['document']['selection']);_0x3d4a0a['isCollapsed']&&_0x474ffb['model']['modifySelection'](_0x3d4a0a,{'direction':'forward','unit':_0x1c24b8['unit']});const _0x4197a0=_0x3d4a0a['getFirstRange'](),_0x4bb388=_0x1f4d12['fromRange'](_0x4197a0);let _0x594ca9;_0x1ce8fa(_0x1c24b8),_0x594ca9='$graveyard'==_0x4bb388['root']['rootName']?_0x474ffb['model']['createRange'](_0x4197a0['start']):_0x474ffb['model']['createRange'](_0x4bb388['start'],_0x4bb388['end']),_0x4bb388['detach'](),_0x474ffb['model']['enqueueChange'](_0x3305b9['buffer']['batch'],_0x4178f2=>{_0x3305b9['buffer']['lock'](),_0x4178f2['setSelection'](_0x4178f2['createRange'](_0x594ca9['end'])),_0x3305b9['buffer']['unlock']();});}),_0x474ffb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x474ffb,'merge'),{'priority':'high'}),_0x474ffb['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4ccf65,_0x46c500,_0x20719b)=>{_0x20719b['options']['showSuggestionHighlights']&&De(_0x474ffb,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4ccf65,_0x46c500,_0x20719b);},{'priority':'high'}),_0x474ffb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3e0b3e,_0x5983a1,_0x433fbb)=>{const _0x3cb5d5=_0x433fbb['mapper']['markerNameToElements'](_0x5983a1['markerName']);if(_0x3cb5d5){for(const _0x256890 of _0x3cb5d5)_0x256890['is']('uiElement')&&(_0x433fbb['mapper']['unbindElementFromMarkerName'](_0x256890,_0x5983a1['markerName']),_0x433fbb['writer']['remove'](_0x256890));}},{'priority':'high'});}}class H extends _0x573845{['afterInit'](){const _0x2bab33=this['editor'];if(!_0x2bab33['plugins']['has']('ListEditing'))return;const _0x339500=_0x2bab33['locale'],_0x54e828=_0x2bab33['plugins']['get']('TrackChangesEditing'),_0x140a33=_0x2bab33['plugins']['has']('TodoListEditing'),_0x5b1711=!!_0x2bab33['config']['get']('list.multiBlock');function _0x39a5c0(_0x555198){return{'type':'format','content':''+o(_0x339500,'*Set\x20format:*\x20%0',_0x555198)};}function _0x1fd32b(_0x1438e2){return{'type':'format','content':''+o(_0x339500,'*Remove\x20format:*\x20%0',_0x1438e2)};}_0x54e828['enableDefaultAttributesIntegration']('numberedList'),_0x54e828['enableDefaultAttributesIntegration']('bulletedList'),_0x54e828['enableDefaultAttributesIntegration']('customNumberedList'),_0x54e828['enableDefaultAttributesIntegration']('customBulletedList'),_0x54e828['enableDefaultAttributesIntegration']('indentList'),_0x54e828['enableDefaultAttributesIntegration']('outdentList'),_0x54e828['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x54e828['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x54e828['registerBlockAttribute']('listItemId'),_0x54e828['registerBlockAttribute']('listType'),_0x54e828['registerBlockAttribute']('listIndent'),_0x5b1711&&(_0x54e828['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x54e828['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x140a33&&(_0x54e828['enableDefaultAttributesIntegration']('todoList'),_0x54e828['enableDefaultAttributesIntegration']('checkTodoList'),_0x54e828['registerBlockAttribute']('todoListChecked'),_0x54e828['descriptionFactory']['registerDescriptionCallback'](_0x13e1d3=>{const {data:_0x178901}=_0x13e1d3;if(_0x178901&&'todoListChecked'==_0x178901['key'])return{'type':'format','content':_0x178901['newValue']?o(_0x339500,'*Check\x20item*'):o(_0x339500,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1f8c22=>{if(_0x1f8c22['batch']['isUndo'])return!0x1;let _0x4ac052=!0x1;const _0x20d110=_0x54e828['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb63157=>'todoListChecked'===_0x54e828['_getAttributeKey'](_0xb63157));for(const _0x142c79 of _0x20d110){'todo'!=_0x142c79['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x54e828['_findSuggestions'](_0x142c79['getFirstRange'](),'attribute')['find'](_0x58f8f3=>'listType'===_0x54e828['_getAttributeKey'](_0x58f8f3['suggestion']))||(_0x1f8c22['removeMarker'](_0x142c79['getFirstMarker']()),_0x4ac052=!0x0));}return _0x4ac052;})),_0x54e828['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x339500,'FORMAT_INDENT'));const _0x5b8bd7={'type':'format','content':''};_0x54e828['descriptionFactory']['registerDescriptionCallback'](_0x537b32=>{const {data:_0x37fc14}=_0x537b32;if(!_0x37fc14||'listType'!=_0x37fc14['key'])return;let _0x4545cc=_0x537b32['head'];for(;_0x4545cc;){if(_0x4545cc['data']&&(('listStyle'==_0x4545cc['data']['key']||'listMarkerStyle'==_0x4545cc['data']['key'])&&(_0x4545cc['data']['newValue']&&'default'!=_0x4545cc['data']['newValue']||'default'!=_0x4545cc['data']['oldValue']&&!_0x37fc14['newValue'])||!_0x5b1711&&_0x4545cc['data']['key']==m))return _0x5b8bd7;_0x4545cc=_0x4545cc['next'];}if(null==_0x37fc14['newValue'])switch(_0x37fc14['oldValue']){case'bulleted':return _0x1fd32b(o(_0x339500,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1fd32b(o(_0x339500,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1fd32b(o(_0x339500,'ELEMENT_TODO_LIST'));}switch(_0x37fc14['newValue']){case'bulleted':return _0x39a5c0(o(_0x339500,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x39a5c0(o(_0x339500,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x39a5c0(o(_0x339500,'ELEMENT_TODO_LIST'));}}),_0x54e828['descriptionFactory']['registerDescriptionCallback'](_0x56b703=>{const {data:_0x2ab869}=_0x56b703;if(_0x2ab869&&'listIndent'==_0x2ab869['key'])return null==_0x2ab869['newValue']||null==_0x2ab869['oldValue']&&0x0==_0x2ab869['newValue']?_0x5b8bd7:void 0x0;}),_0x54e828['descriptionFactory']['registerDescriptionCallback'](_0x130713=>{if('attribute'!=_0x130713['type'])return;const {data:_0xdd7255}=_0x130713;if(!_0xdd7255||'listItemId'!=_0xdd7255['key'])return;const _0x36c498=Te(_0x130713);return'newValue'==_0x36c498?{'type':'format','content':o(_0x339500,'*Merge:*\x20list\x20item')}:'oldValue'==_0x36c498?{'type':'format','content':o(_0x339500,'*Split:*\x20list\x20item')}:_0x5b8bd7;}),_0x2bab33['model']['document']['registerPostFixer'](_0x2fd90f=>this['listItemIdFixer'](_0x2fd90f)),_0x2bab33['model']['document']['registerPostFixer'](_0x23e2fc=>this['noTrackChangesFixer'](_0x23e2fc)),_0x2bab33['model']['document']['on']('change:data',(_0x3a77bf,_0x5c2163)=>{if(_0x5c2163['isUndo']||!_0x5c2163['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x420ad7){if(_0x420ad7['batch']['isUndo']||!_0x420ad7['batch']['isLocal'])return!0x1;let _0x17aa6b=!0x1;const _0xa1b4b4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38d183=>_0x38d183['data']&&'listItemId'==_0x38d183['data']['key'])['filter'](_0x2084d=>_0x2084d['data']['newValue']&&_0x2084d['data']['oldValue']);for(const _0x2fbbd0 of _0xa1b4b4)Te(_0x2fbbd0)||(_0x420ad7['removeMarker'](_0x2fbbd0['getFirstMarker']()),_0x17aa6b=!0x0);return _0x17aa6b;}['noTrackChangesFixer'](_0x2766d3){if(_0x2766d3['batch']['isUndo']||!_0x2766d3['batch']['isLocal'])return!0x1;const _0x3e3f5f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3e3f5f['trackChangesCommand']['value'])return!0x1;let _0x27ce8f=!0x1;const _0x47184d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x468028=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2e9684=>'attribute'==_0x2e9684['type'])['filter'](_0x4328e0=>_0x47184d['includes'](_0x4328e0['attributeKey']));if(0x0==_0x468028['length'])return _0x27ce8f;for(const _0x432fef of _0x468028){const _0x59b040=_0x3e3f5f['_findSuggestions'](_0x432fef['range'],'attribute')['filter'](_0x4c973a=>!_0x4c973a['meta']['isNextTo'])['map'](_0x2e09d0=>_0x2e09d0['suggestion'])['filter'](_0x1a376f=>{const _0x5dae33=_0x3e3f5f['_getAttributeKey'](_0x1a376f);return _0x47184d['includes'](_0x5dae33);});if(_0x59b040['length']){for(const _0x361471 of _0x59b040)_0x2766d3['removeMarker'](_0x361471['getFirstMarker']());_0x27ce8f=!0x0;}}return _0x27ce8f;}['assureChains'](){const _0x2d54f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10594d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x29f2da;const _0xc36d21=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x56da0f=>{if(_0x56da0f['data']['oldRange']||!_0x56da0f['data']['newRange'])return null;if(!_0x56da0f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x55f562}=_0x2d54f3['_splitMarkerName'](_0x56da0f['name']);if(!_0x2d54f3['hasSuggestion'](_0x55f562))return null;const _0x6a52cf=_0x2d54f3['getSuggestion'](_0x55f562);return _0x10594d['includes'](_0x6a52cf['data']['key']);})['map'](_0x542cde=>{const {id:_0xe406bb}=_0x2d54f3['_splitMarkerName'](_0x542cde['name']),_0x41e8c9=_0x2d54f3['getSuggestion'](_0xe406bb);return _0x29f2da=_0x41e8c9['attributes']['groupId'],_0x41e8c9['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xc36d21['size'])return;const _0x2d04ca=_0x2d54f3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57a884=>'attribute'==_0x57a884['type']&&_0x57a884['data']&&_0x10594d['includes'](_0x57a884['data']['key'])&&_0x57a884['attributes']['groupId']!=_0x29f2da)['map'](_0x9a62cb=>({'listItem':_0x9a62cb['getFirstRange']()['start']['nodeAfter'],'groupId':_0x9a62cb['attributes']['groupId']})),_0x4c4951=new Set();for(const {groupId:_0x53afa1,listItem:_0x43ea87}of _0x2d04ca)_0xc36d21['has'](_0x43ea87)&&_0x4c4951['add'](_0x53afa1);for(const _0x258316 of _0x2d54f3['getSuggestions']())_0x4c4951['has'](_0x258316['attributes']['groupId'])&&_0x258316['setAttribute']('groupId',_0x29f2da);}['_supportLegacySuggestions'](){const _0x1a9732=this['editor'],_0x4c625a=_0x1a9732['locale'],_0x410dc1=_0x1a9732['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x410dc1['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xb785c3,_0x41ca1a){const _0x5680db=[];for(let _0x151733 of _0xb785c3)_0x151733['start']['nodeAfter']===_0x151733['end']['parent']&&(_0x151733=_0x1a9732['model']['createRange'](_0x1a9732['model']['createPositionAt'](_0x151733['start']['nodeAfter'],0x0))),_0x5680db['push'](_0x151733);_0x1a9732['model']['change'](_0x2dc24b=>{const _0x2bdf83=_0x1a9732['model']['document']['selection'],_0x235f8a=Array['from'](_0x2bdf83['getRanges']())['map'](_0x15cbcc=>_0x1f4d12['fromRange'](_0x15cbcc));_0x2dc24b['setSelection'](_0x5680db),_0x1a9732['commands']['get'](_0x41ca1a['commandName'])['refresh'](),_0x41ca1a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1a9732['execute'](_0x41ca1a['commandName'],..._0x41ca1a['commandParams']),_0x2dc24b['setSelection'](_0x235f8a);for(const _0x2845cb of _0x235f8a)_0x2845cb['detach']();});}),_0x410dc1['descriptionFactory']['registerElementLabel'](function(_0x42eb3c){const _0x299c59=!_0x1a9732['model']['schema']['isObject'](_0x42eb3c),_0x31349b=_0x42eb3c['previousSibling'],_0x3ad795=_0x42eb3c['nextSibling'],_0xfb3974=_0x42eb3c['getAttribute']('listItemId'),_0x3edda6=!_0x31349b||_0x31349b['getAttribute']('listItemId')!==_0xfb3974,_0x188d8f=!_0x3ad795||_0x3ad795['getAttribute']('listItemId')!==_0xfb3974;return _0x299c59&&Boolean(_0xfb3974)&&_0x3edda6&&_0x188d8f;},_0x152627=>o(_0x4c625a,'ELEMENT_LIST_ITEM',_0x152627));}['_registerLegacyDescription'](){const _0x26f39f=this['editor'],_0x3756c8=_0x26f39f['locale'];function _0x45be92(_0x1ea210){const _0x4f09c6=_0x26f39f['commands']['get']('bulletedList')['value'],_0x5b5ceb=_0x26f39f['commands']['get']('numberedList')['value'];return'numberedList'===_0x1ea210?_0x4f09c6:_0x5b5ceb;}_0x26f39f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x306371){if('formatBlock'!=_0x306371['type'])return;const {data:_0x28936f}=_0x306371;if(!_0x28936f)return;let _0x2f06df,_0xc1fa93,_0x357a4a,_0x4a137c;switch(_0x28936f['commandName']){case'bulletedList':_0x357a4a=_0x28936f['commandParams'][0x0]['forceValue'],_0x4a137c=_0x45be92(_0x28936f['commandName']),_0x2f06df=_0x357a4a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4a137c&&_0x26f39f['config']['get']('list.multiBlock')||(_0x2f06df='*Change\x20to:*\x20%0'),_0xc1fa93={'type':'format','content':o(_0x3756c8,_0x2f06df,o(_0x3756c8,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x357a4a=_0x28936f['commandParams'][0x0]['forceValue'],_0x4a137c=_0x45be92(_0x28936f['commandName']),_0x2f06df=_0x357a4a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4a137c&&_0x26f39f['config']['get']('list.multiBlock')||(_0x2f06df='*Change\x20to:*\x20%0'),_0xc1fa93={'type':'format','content':o(_0x3756c8,_0x2f06df,o(_0x3756c8,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2f06df='*Indent:*\x20%0',_0xc1fa93={'type':'format','content':o(_0x3756c8,_0x2f06df,o(_0x3756c8,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2f06df=function(_0x1e4934){const _0x5a950a=_0x1e4934['getFirstRange']();let _0xeefac8=_0x5a950a['start']['nodeAfter'];for(;_0xeefac8&&_0x5a950a['containsItem'](_0xeefac8);){if(_0xeefac8['getAttribute']('listIndent')>0x0)return!0x1;_0xeefac8=_0xeefac8['nextSibling'];}return!0x0;}(_0x306371)?o(_0x3756c8,'*Format:*\x20remove\x20from\x20%0',o(_0x3756c8,function(_0x5a84d7){return'ELEMENT_'+_0x5a84d7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x306371))):o(_0x3756c8,'*Outdent:*\x20%0',o(_0x3756c8,'ELEMENT_LIST_ITEM')),_0xc1fa93={'type':'format','content':_0x2f06df};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x28936f['multipleBlocks']&&(_0x2f06df='*Merge:*\x20%0',_0xc1fa93={'type':'deletion','content':o(_0x3756c8,_0x2f06df,o(_0x3756c8,'ELEMENT_LIST_ITEM'))});}return _0xc1fa93;});}}function Te(_0x1965e8){let _0x2aed51=_0x1965e8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2aed51;){const _0x20325c=_0x2aed51['getAttribute']('listItemId');if(!_0x20325c)return!0x1;if(_0x20325c==_0x1965e8['data']['newValue'])return'newValue';if(_0x20325c==_0x1965e8['data']['oldValue'])return'oldValue';_0x2aed51=_0x2aed51['previousSibling'];}return!0x1;}class q extends _0x573845{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3992e3=this['editor']['config']['get']('list.properties'),_0x28fcce=this['editor']['plugins']['get']('TrackChangesEditing');_0x3992e3['styles']&&(_0x28fcce['enableDefaultAttributesIntegration']('listStyle'),_0x28fcce['registerBlockAttribute']('listStyle')),_0x3992e3['reversed']&&(_0x28fcce['enableDefaultAttributesIntegration']('listReversed'),_0x28fcce['registerBlockAttribute']('listReversed')),_0x3992e3['startIndex']&&(_0x28fcce['enableDefaultAttributesIntegration']('listStart'),_0x28fcce['registerBlockAttribute']('listStart'));const _0x1e2d2d={'type':'format','content':''};_0x28fcce['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x51d32a=this['editor']['locale'];_0x28fcce['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x51d32a,'FORMAT_LIST_REVERSED')),_0x28fcce['descriptionFactory']['registerDescriptionCallback'](_0x43f57b=>{const {data:_0x57f6e4}=_0x43f57b;if(_0x57f6e4&&'listReversed'==_0x57f6e4['key'])return null==_0x57f6e4['newValue']||0x0==_0x57f6e4['newValue']&&null==_0x57f6e4['oldValue']?_0x1e2d2d:void 0x0;}),_0x28fcce['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x51d32a,'FORMAT_LIST_START')),_0x28fcce['descriptionFactory']['registerDescriptionCallback'](_0x35e288=>{const {data:_0x40b1cd}=_0x35e288;if(_0x40b1cd&&'listStart'==_0x40b1cd['key'])return null==_0x40b1cd['newValue']||0x1==_0x40b1cd['newValue']&&null==_0x40b1cd['oldValue']?_0x1e2d2d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x17dc43=>{if(_0x17dc43['batch']['isUndo'])return!0x1;let _0x52cf24=!0x1;const _0x3ee67d=_0x28fcce['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a3ab6=>{const _0x2f7dad=_0x28fcce['_getAttributeKey'](_0x4a3ab6);return'listStart'==_0x2f7dad||'listReversed'==_0x2f7dad;});for(const _0x5707f5 of _0x3ee67d){const _0x23fc8f=_0x5707f5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x23fc8f||'customNumbered'==_0x23fc8f)continue;_0x28fcce['_findSuggestions'](_0x5707f5['getFirstRange'](),'attribute')['find'](_0x29d59c=>'listType'==_0x28fcce['_getAttributeKey'](_0x29d59c['suggestion']))||(_0x17dc43['removeMarker'](_0x5707f5['getFirstMarker']()),_0x52cf24=!0x0);}return _0x52cf24;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x44e3e7){const _0x162b0b=this['editor']['locale'],{data:_0x2fab0a}=_0x44e3e7,_0x4291d0={'type':'format','content':''};if(!_0x2fab0a||'listStyle'!=_0x2fab0a['key'])return;if(!_0x2fab0a['oldValue'])return'default'==_0x2fab0a['newValue']?_0x4291d0:{'type':'format','content':''+o(_0x162b0b,'*Set\x20format:*\x20%0',o(_0x162b0b,this['_getTranslationKeyForListStyle'](_0x2fab0a['newValue'])))};if(!_0x2fab0a['newValue']){if('default'==_0x2fab0a['oldValue'])return _0x4291d0;let _0x54f95c=_0x44e3e7['head'];for(;_0x54f95c;){if(_0x54f95c['data']&&'listType'==_0x54f95c['data']['key']&&_0x54f95c['data']['newValue'])return _0x4291d0;_0x54f95c=_0x54f95c['next'];}return{'type':'format','content':''+o(_0x162b0b,'*Remove\x20format:*\x20%0',o(_0x162b0b,this['_getTranslationKeyForListStyle'](_0x2fab0a['oldValue'])))};}if('default'!=_0x2fab0a['newValue'])return{'type':'format','content':''+o(_0x162b0b,'*Set\x20format:*\x20%0',o(_0x162b0b,this['_getTranslationKeyForListStyle'](_0x2fab0a['newValue'])))};let _0x13949d=_0x44e3e7['head'];for(;_0x13949d;){if(_0x13949d['data']&&'listType'==_0x13949d['data']['key']&&_0x13949d['data']['newValue']&&_0x13949d['data']['oldValue'])return _0x4291d0;_0x13949d=_0x13949d['next'];}return{'type':'format','content':o(_0x162b0b,'*Set\x20format:*\x20%0',o(_0x162b0b,'ELEMENT_'+_0x44e3e7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x257ebf=this['editor'],_0xd83290=_0x257ebf['locale'];_0x257ebf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a6cc3=>{if('formatBlock'!=_0x3a6cc3['type'])return;const {data:_0x21493f}=_0x3a6cc3;if(!_0x21493f)return;let _0x4c1e22,_0x51765a;switch(_0x21493f['commandName']){case'listStyle':_0x4c1e22='*Change\x20to:*\x20%0',_0x51765a={'type':'format','content':o(_0xd83290,_0x4c1e22,o(_0xd83290,this['_getTranslationKeyForListStyle'](_0x21493f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4c1e22=_0x21493f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x51765a={'type':'format','content':o(_0xd83290,_0x4c1e22)};break;case'listStart':_0x4c1e22='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x51765a={'type':'format','content':o(_0xd83290,_0x4c1e22,_0x21493f['commandParams'][0x0]['startIndex'])};}return _0x51765a;});}['_getTranslationKeyForListStyle'](_0x28111f){return'ELEMENT_'+function(_0x812b56){if(Se['includes'](_0x812b56))return'bulleted';if(_e['includes'](_0x812b56))return'numbered';return null;}(_0x28111f)['toUpperCase']()+'_LIST_'+_0x28111f['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x573845{['afterInit'](){const _0x61d5fc=this['editor'];_0x61d5fc['commands']['get']('emoji')&&_0x61d5fc['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x573845{static get['requires'](){return[_0x47d1d3];}['init'](){const _0x380ff3=this['editor'],_0x3c130b=_0x380ff3['plugins']['get']('TrackChangesEditing'),_0x245774=_0x380ff3['commands']['get']('enter');_0x3c130b['enableCommand']('enter',()=>{_0x380ff3['model']['change'](_0x5b0df1=>{const _0x3be7c0=_0x380ff3['model']['document']['selection'],_0x5c3356=_0x3be7c0['getFirstPosition'](),_0x2ecf35=_0x1f4d12['fromRange'](_0x3be7c0['getFirstRange']());if(_0x245774['enterBlock'](_0x5b0df1)){const _0x293275=_0x380ff3['model']['createPositionAt'](_0x5c3356['parent']['nextSibling'],0x0),_0x2dfcbf=_0x5b0df1['createRange'](_0x5c3356,_0x293275);_0x3c130b['markInsertion'](_0x2dfcbf);}else _0x5b0df1['setSelection'](_0x5b0df1['createRange'](_0x2ecf35['end']));_0x2ecf35['detach'](),_0x245774['fire']('afterExecute',{'writer':_0x5b0df1});});}),_0x380ff3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x380ff3,'split'),{'priority':'high'}),_0x380ff3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4afa70,_0x4380ff,_0x188928)=>{const _0x27af75=_0x188928['mapper']['markerNameToElements'](_0x4380ff['markerName']);if(_0x27af75){for(const _0x288905 of _0x27af75)_0x288905['hasClass']('ck-suggestion-marker-split')&&(_0x188928['mapper']['unbindElementFromMarkerName'](_0x288905,_0x4380ff['markerName']),_0x188928['writer']['remove'](_0x288905));}},{'priority':'high'}),_0x380ff3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xd6b6ba,_0x2a2986,_0x25bec2)=>{_0x25bec2['options']['showSuggestionHighlights']&&De(_0x380ff3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xd6b6ba,_0x2a2986,_0x25bec2);},{'priority':'high'});}}class Q extends _0x573845{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x416ee3=this['editor']['plugins']['get']('TrackChangesEditing');_0x416ee3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x416ee3['enableCommand']('findNext'),_0x416ee3['enableCommand']('findPrevious'),_0x416ee3['enableCommand']('replace'),_0x416ee3['enableCommand']('replaceAll');}['handleFindCommand'](_0x16c874,_0x51bb67,_0x3c4c36={}){const _0x4414cd=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x16c874(_0x393197=>{let _0xaf2c0d=('string'==typeof _0x51bb67?_0x4414cd['findByTextCallback'](_0x51bb67,_0x3c4c36):_0x51bb67)(_0x393197);Array['isArray'](_0xaf2c0d)&&(_0xaf2c0d={'results':_0xaf2c0d,'searchText':'string'==typeof _0x51bb67?_0x51bb67:''});const _0x35d986=_0xaf2c0d['results']['filter'](_0x442a20=>!0x1===this['_isInDeletionRange'](_0x442a20,_0x393197['item']));return{..._0xaf2c0d,'results':_0x35d986};},_0x3c4c36);}['_isInDeletionRange'](_0x4c73e4,_0x33796e){const _0x8a8a2f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33796e,_0x4c73e4['start']),this['editor']['model']['createPositionAt'](_0x33796e,_0x4c73e4['end']));for(const _0x54accb of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x8a8a2f['getIntersection'](_0x54accb['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x573845{['afterInit'](){const _0x1b27cd=this['editor']['locale'],_0x3b0071=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3ef396,commandName:_0x1e4f8c}of eo)this['editor']['plugins']['has'](_0x3ef396)&&(_0x3b0071['enableDefaultAttributesIntegration'](_0x1e4f8c),_0x3b0071['registerInlineAttribute'](_0x1e4f8c));_0x3b0071['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1b27cd,'FORMAT_FONT_SIZE')),_0x3b0071['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1b27cd,'FORMAT_FONT_FAMILY')),_0x3b0071['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1b27cd,'FORMAT_FONT_COLOR')),_0x3b0071['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1b27cd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b6b4b=this['editor'],_0x333cd1=_0x5b6b4b['locale'];_0x5b6b4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x360ee0=>{const _0x1a0c98=_0x333cd1['t'];if('formatInline'!=_0x360ee0['type'])return;const {data:_0x5ca7ad}=_0x360ee0;if(null!=_0x5ca7ad){if('fontSize'==_0x5ca7ad['commandName']){const _0x3e0f56=_0x5ca7ad['commandParams'][0x0]['value'];if(_0x3e0f56){const _0x51f453=_0x1a0c98(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4d7a08=>_0x4d7a08['model']==_0x3e0f56)['title'])['toLowerCase']();return{'type':'format','content':o(_0x333cd1,'*Set\x20font\x20size:*\x20%0',_0x51f453)};}return{'type':'format','content':o(_0x333cd1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5ca7ad['commandName']){const _0x29db23=_0x5ca7ad['commandParams'][0x0]['value'];return _0x29db23?{'type':'format','content':o(_0x333cd1,'*Set\x20font\x20family:*\x20%0',_0x29db23)}:{'type':'format','content':o(_0x333cd1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5ca7ad['commandName']){const _0x45b819=_0x5ca7ad['commandParams'][0x0]['value'];if(_0x45b819){const _0x563793=_0x53f79b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5b9d95=>_0x5b9d95['model']==_0x45b819);let _0x368cfe=_0x45b819,_0x4532b5='';return _0x563793&&(_0x368cfe=_0x563793['label'],_0x4532b5=_0x1a0c98(_0x368cfe)['toLowerCase']()),{'type':'format','content':o(_0x333cd1,'*Set\x20font\x20color:*\x20%0',_0x4532b5)['trim'](),'color':{'value':_0x45b819,'title':_0x4532b5||_0x368cfe}};}return{'type':'format','content':o(_0x333cd1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5ca7ad['commandName']){const _0x5d5853=_0x5ca7ad['commandParams'][0x0]['value'];if(_0x5d5853){const _0x1f6a28=_0x53f79b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2390bc=>_0x2390bc['model']==_0x5d5853);let _0xa86bda=_0x5d5853,_0x50580d='';return _0x1f6a28&&(_0xa86bda=_0x1f6a28['label'],_0x50580d=_0x1a0c98(_0xa86bda)['toLowerCase']()),{'type':'format','content':o(_0x333cd1,'*Set\x20font\x20background\x20color:*\x20%0',_0x50580d)['trim'](),'color':{'value':_0x5d5853,'title':_0x50580d||_0xa86bda}};}return{'type':'format','content':o(_0x333cd1,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x573845{['afterInit'](){const _0x5c9dd6=this['editor'],_0x6d2854=_0x5c9dd6['plugins']['get']('TrackChangesEditing'),_0xecef4b=_0x5c9dd6['commands']['get']('copyFormat'),_0x40b7b9=_0x5c9dd6['commands']['get']('pasteFormat');_0xecef4b&&_0x40b7b9&&(_0x6d2854['enableDefaultAttributesIntegration']('pasteFormat'),_0x6d2854['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x256b03=this['editor'],_0x3a2952=_0x256b03['locale'];_0x256b03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x455ad8=>{if('formatBlock'!=_0x455ad8['type']&&'formatInline'!=_0x455ad8['type'])return;const {data:_0x183fbd}=_0x455ad8;if(_0x183fbd&&'pasteFormat'===_0x183fbd['commandName']){const _0x2e8d8c=[],_0x4810c3=_0x183fbd['commandParams'][0x0];for(const [_0x44ba29,_0x4fb490]of Object['entries'](_0x4810c3))_0x2e8d8c['push'](ro(_0x256b03,_0x44ba29,_0x4fb490));return _0x2e8d8c['length']?{'type':'format','content':o(_0x3a2952,'*Set\x20format\x20to:*\x20%0',_0x2e8d8c['join'](',\x20'))}:{'type':'format','content':o(_0x3a2952,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x5a994e,_0x4758af,_0x51c872){const _0x2121e8=_0x5a994e['locale']['t'],_0x4fdb3b=_0x4758af['split'](/(?=[A-Z])/)['join']('\x20'),_0x4e9e1e=_0x2121e8(_0x4fdb3b['charAt'](0x0)['toUpperCase']()+_0x4fdb3b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x51c872)return _0x4e9e1e;if('fontColor'===_0x4758af||'fontBackgroundColor'===_0x4758af){const _0x21cfb4=_0x53f79b(_0x5a994e['config']['get']('fontColor.colors'))['find'](_0x3bd10b=>_0x3bd10b['model']==_0x51c872);return _0x4e9e1e+'\x20('+(_0x21cfb4?_0x2121e8(_0x21cfb4['label'])['toLowerCase']():_0x51c872)+')';}if('fontSize'===_0x4758af&&isNaN(parseFloat(_0x51c872))){const _0x3bf55e=_0x5a994e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5a994e['config']['get']('fontSize.options'))['find'](_0x1cd209=>_0x1cd209['model']==_0x51c872);return _0x4e9e1e+'\x20('+(_0x3bf55e?_0x2121e8(_0x3bf55e['title'])['toLowerCase']():_0x51c872)+')';}return _0x4e9e1e+'\x20('+_0x51c872+')';}class Z extends _0x573845{['_headingOptions'];['afterInit'](){const _0x5d4355=this['editor'];if(!_0x5d4355['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5d4355['config']['get']('heading.options');const _0x501589=_0x5d4355['locale'],_0x45b58c=_0x5d4355['plugins']['get']('TrackChangesEditing');_0x45b58c['enableDefaultAttributesIntegration']('heading');for(const _0x58b008 of this['_headingOptions'])'paragraph'!=_0x58b008['model']&&_0x45b58c['descriptionFactory']['registerElementLabel'](_0x58b008['model'],_0x238aa4=>{const _0x16f6d0=this['_getHeadingLevel'](_0x58b008['model']);return null!==_0x16f6d0?_0x39ebf7(_0x238aa4,_0x16f6d0):_0x1aea01(_0x238aa4,_0x58b008['title']);});function _0x39ebf7(_0x895dce,_0x45eb26){return o(_0x501589,'ELEMENT_HEADING',[_0x895dce,_0x45eb26]);}function _0x1aea01(_0x157e8e,_0xa01f04){return o(_0x501589,'ELEMENT_HEADING_CUSTOM',[_0x157e8e,_0xa01f04]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x574f5a=this['editor'],_0x47f512=_0x574f5a['locale'];function _0x50cea5(_0x5bddc2,_0xb465c2){return o(_0x47f512,'ELEMENT_HEADING_CUSTOM',[_0x5bddc2,_0xb465c2]);}_0x574f5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ba672=>{if('formatBlock'!=_0x3ba672['type'])return;const {data:_0x59c1e3}=_0x3ba672;if(_0x59c1e3&&'heading'==_0x59c1e3['commandName']){const _0x20303a=_0x59c1e3['commandParams'][0x0]['value'],_0x4149d9=this['_getHeadingLevel'](_0x20303a);if(null!==_0x4149d9)return{'type':'format','content':o(_0x47f512,'*Change\x20to:*\x20%0',(_0x4b6011=0x1,_0x97c748=_0x4149d9,o(_0x47f512,'ELEMENT_HEADING',[_0x4b6011,_0x97c748])))};const _0xd99c59=this['_headingOptions']['find'](_0x5ab80d=>_0x5ab80d['model']===_0x20303a)['title'];return{'type':'format','content':o(_0x47f512,'*Change\x20to:*\x20%0',_0x50cea5(0x1,_0xd99c59))};}var _0x4b6011,_0x97c748;});}['_getHeadingLevel'](_0x3ff738){const _0x385fb0=_0x3ff738['match'](/^heading(\d+)/);if(_0x385fb0)return _0x385fb0[0x1];const _0x45eb4e=this['_headingOptions']?.['find'](_0xff93e8=>_0xff93e8['model']==_0x3ff738);if(_0x45eb4e&&_0x45eb4e['view']){const _0xc48853=_0x45eb4e['view'],_0x18e4c9=(_0xc48853['name']??_0xc48853)['match'](/^h(\d+)/);if(_0x18e4c9)return _0x18e4c9[0x1];}return null;}}class tt extends _0x573845{['afterInit'](){const _0x5879b7=this['editor'];if(!_0x5879b7['plugins']['has']('HighlightEditing'))return;const _0xb31066=_0x5879b7['plugins']['get']('TrackChangesEditing'),_0x1b0959=_0x5879b7['locale'];_0xb31066['enableDefaultAttributesIntegration']('highlight'),_0xb31066['registerInlineAttribute']('highlight'),_0xb31066['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1b0959,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2888a0=this['editor'],_0x271d6a=_0x2888a0['locale'];_0x2888a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x441f04=>{if('formatInline'!=_0x441f04['type'])return;const {data:_0x1afffe}=_0x441f04;if(_0x1afffe&&'highlight'==_0x1afffe['commandName']){const _0x1fa5ce=_0x271d6a['t'],_0x164f89=_0x1afffe['commandParams'][0x0]['value'];if(_0x164f89){const _0x3d01be=_0x2888a0['config']['get']('highlight.options')['find'](_0x10f931=>_0x10f931['model']==_0x164f89),_0x28733a=_0x1fa5ce(_0x3d01be['title'])['toLowerCase']();return{'type':'format','content':o(_0x271d6a,'*Set\x20highlight:*\x20%0',_0x28733a),'color':{'value':_0x3d01be['color'],'title':_0x3d01be['title']}};}return{'type':'format','content':o(_0x271d6a,'*Remove\x20highlight*',o(_0x271d6a,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x573845{['afterInit'](){const _0x176ff0=this['editor'];if(!_0x176ff0['plugins']['has']('HorizontalLineEditing'))return;_0x176ff0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5387af=_0x176ff0['plugins']['get']('TrackChangesEditing'),_0x970e7e=_0x176ff0['locale'];_0x5387af['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1bd4b3=>o(_0x970e7e,'ELEMENT_HORIZONTAL_LINE',_0x1bd4b3)),_0x176ff0['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4239bc,{writer:_0x21f4fa,options:_0xfd849c})=>{if(!_0xfd849c['showSuggestionHighlights'])return null;const _0x20aff0=_0x21f4fa['createContainerElement']('div'),_0x2b52db=_0x21f4fa['createEmptyElement']('hr');return _0x21f4fa['addClass']('ck-horizontal-line',_0x20aff0),_0x21f4fa['insert'](_0x21f4fa['createPositionAt'](_0x20aff0,0x0),_0x2b52db),_0x20aff0;},'converterPriority':'high'});}}class nt extends _0x573845{['afterInit'](){const _0x11ac09=this['editor'];if(!_0x11ac09['plugins']['has']('HtmlEmbed'))return;const _0x36f142=_0x11ac09['plugins']['get']('TrackChangesEditing'),_0x37fc9b=_0x11ac09['locale'];_0x36f142['descriptionFactory']['registerElementLabel']('rawHtml',_0x288150=>o(_0x37fc9b,'ELEMENT_HTML_EMBED',_0x288150)),_0x36f142['enableDefaultAttributesIntegration']('htmlEmbed'),_0x36f142['registerBlockAttribute']('value'),_0x36f142['descriptionFactory']['registerDescriptionCallback'](_0x32a750=>{if('attribute'!=_0x32a750['type'])return;const {data:_0x473e22}=_0x32a750;if(_0x473e22&&'value'==_0x473e22['key']&&_0x32a750['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x42a5f8=o(_0x37fc9b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x37fc9b,'*Change\x20%0\x20content*',_0x42a5f8)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xce1614=this['editor'],_0xa4aff5=_0xce1614['locale'];_0xce1614['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fc539=>{if('formatBlock'!=_0x3fc539['type'])return;const {data:_0x326372}=_0x3fc539;if(_0x326372&&'htmlEmbed'==_0x326372['commandName']){const _0x2be5f1=o(_0xa4aff5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xa4aff5,'*Change\x20%0\x20content*',_0x2be5f1)};}});}}class et extends _0x573845{['afterInit'](){const _0x4e2900=this['editor'];if(!_0x4e2900['plugins']['has']('ImageEditing'))return;const _0x4b9781=_0x4e2900['plugins']['get']('TrackChangesEditing'),_0x58b066=_0x4e2900['plugins']['get']('ImageUtils'),_0x7e9700=_0x4e2900['locale'];_0x4b9781['enableCommand']('insertImage'),_0x4b9781['descriptionFactory']['registerElementLabel']('imageBlock',_0x50c05a=>o(_0x7e9700,'ELEMENT_IMAGE',_0x50c05a)),_0x4b9781['descriptionFactory']['registerElementLabel']('imageInline',_0x5e751e=>o(_0x7e9700,'ELEMENT_INLINE_IMAGE',_0x5e751e)),_0x4b9781['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x7e9700,'ELEMENT_CAPTION')),_0x4e2900['plugins']['has']('ImageUploadEditing')&&_0x4b9781['enableCommand']('uploadImage'),_0x4e2900['plugins']['has']('ImageBlockEditing')&&_0x4e2900['plugins']['has']('ImageInlineEditing')&&(_0x4b9781['enableCommand']('imageTypeInline',(_0x49c802,_0x1cf0f0)=>{const _0x11d8df=_0x58b066['getClosestSelectedImageElement'](_0x4e2900['model']['document']['selection']);_0x4e2900['model']['change'](()=>{_0x4b9781['markBlockFormat'](_0x11d8df,{'commandName':'imageTypeInline','commandParams':[_0x1cf0f0]},[],'convertBlockImageToInline');});}),_0x4b9781['enableCommand']('imageTypeBlock',(_0x2522c3,_0x15652a)=>{_0x4e2900['model']['change'](_0x172f81=>{let _0xb19650=_0x58b066['getClosestSelectedImageElement'](_0x4e2900['model']['document']['selection']),_0x3d4ab6=_0x172f81['createRangeOn'](_0xb19650);const _0x4fdbe0=_0x30a3dd['fromPosition'](_0x3d4ab6['start'],'toPrevious'),_0x499e12=_0x30a3dd['fromPosition'](_0x3d4ab6['end'],'toNext');_0x4b9781['forceDefaultExecution'](()=>_0x2522c3(_0x15652a)),_0xb19650=_0x58b066['getClosestSelectedImageElement'](_0x4e2900['model']['document']['selection']),_0x3d4ab6=_0x172f81['createRangeOn'](_0xb19650);const _0x248f27=_0x172f81['createRange'](_0x4fdbe0,_0x499e12);_0x4fdbe0['detach'](),_0x499e12['detach'](),_0x4b9781['markBlockFormat'](_0xb19650,{'commandName':'imageTypeInline','commandParams':[_0x15652a]},[],'convertInlineImageToBlock'),_0x248f27['start']['isBefore'](_0x3d4ab6['start'])&&_0x4b9781['markInsertion'](_0x172f81['createRange'](_0x248f27['start'],_0x3d4ab6['start']),'convertInlineImageToBlock'),_0x3d4ab6['end']['isBefore'](_0x248f27['end'])&&_0x4b9781['markInsertion'](_0x172f81['createRange'](_0x3d4ab6['end'],_0x248f27['end']),'convertInlineImageToBlock');});}),_0x4b9781['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4b9781['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4b9781['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4b9781['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4b9781['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4b9781['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4025f6])=>{const _0x180d1e=_0x4b9781['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xde317b=_0x4025f6['start'],_0xc40ec3=_0x4025f6['end'];const _0x3db0c6=_0x4e2900['model']['schema']['getNearestSelectionRange'](_0xde317b,'backward'),_0x26e015=_0x4e2900['model']['schema']['getNearestSelectionRange'](_0xc40ec3,'forward');_0x3db0c6['isCollapsed']&&(_0xde317b=_0x3db0c6['start']),_0x26e015['isCollapsed']&&(_0xc40ec3=_0x26e015['end']),_0x180d1e([_0x4e2900['model']['createRange'](_0xde317b,_0xc40ec3)]);}),_0x4b9781['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x40d1bc),_0x4b9781['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x40d1bc)),_0x4e2900['plugins']['has']('ImageCaptionEditing')&&(_0x4b9781['enableCommand']('toggleImageCaption',(_0x22a9b1,_0x548bbe)=>{const _0x3395cf=_0x4e2900['plugins']['get']('ImageCaptionUtils');let _0x252cb5=_0x58b066['getClosestSelectedImageElement'](_0x4e2900['model']['document']['selection']),_0x5e6161=_0x3395cf['getCaptionFromImageModelElement'](_0x252cb5);_0x4e2900['model']['change'](()=>{if(_0x5e6161)return void _0x4b9781['markDeletion'](_0x4e2900['model']['createRangeOn'](_0x5e6161));const _0x20cd13=_0x58b066['isBlockImage'](_0x252cb5);_0x22a9b1(_0x548bbe),_0x252cb5=_0x58b066['getClosestSelectedImageElement'](_0x4e2900['model']['document']['selection']),_0x5e6161=_0x3395cf['getCaptionFromImageModelElement'](_0x252cb5),_0x4b9781['markInsertion'](_0x4e2900['model']['createRangeOn'](_0x5e6161),_0x20cd13?null:'imageCaption');});}),_0x4b9781['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x40d1bc));const _0x415b38=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x45dfd0(_0x5ee27f,_0x582358){const _0x40ad01=_0x415b38['findIndex'](({type:_0x2f7192,subType:_0x550de7})=>_0x5ee27f['type']==_0x2f7192&&_0x5ee27f['subType']==_0x550de7),_0x3e58f9=_0x415b38['findIndex'](({type:_0x4f6e53,subType:_0x2b7e3d})=>_0x582358['type']==_0x4f6e53&&_0x582358['subType']==_0x2b7e3d);if(_0x40ad01<0x0||_0x3e58f9<0x0)return!0x1;const _0x105e10=_0x5ee27f['getFirstRange'](),_0x29733f=_0x582358['getFirstRange']();if((0x0==_0x40ad01||0x1==_0x40ad01)&&0x2==_0x3e58f9&&_0x105e10['isIntersecting'](_0x29733f))return!0x0;if(0x2==_0x40ad01&&0x3==_0x3e58f9){const _0x2178b7=_0x4b9781['_findSuggestions'](_0x105e10,'insertion')['filter'](({suggestion:_0x355e01,meta:_0x1e091f})=>_0x1e091f['isOwn']&&'convertInlineImageToBlock'==_0x355e01['subType']);if(_0x2178b7['length']>0x1&&_0x29733f['end']['isEqual'](_0x105e10['start']))return!0x0;if(0x1==_0x2178b7['length']&&(_0x105e10['start']['isEqual'](_0x29733f['end'])||_0x105e10['end']['isEqual'](_0x29733f['start'])))return!0x0;}if(0x3==_0x40ad01&&0x3==_0x3e58f9&&_0x105e10['start']['isBefore'](_0x29733f['start'])){const _0x4ac5c3=_0x105e10['end']['nodeAfter'],_0x29fcd6=_0x29733f['start']['nodeBefore'];return _0x58b066['isBlockImage'](_0x4ac5c3)&&_0x4ac5c3===_0x29fcd6;}return!0x1;}function _0x40d1bc(_0x4b3356,_0x335fa7){return _0x45dfd0(_0x4b3356,_0x335fa7)?[_0x4b3356,_0x335fa7]:_0x45dfd0(_0x335fa7,_0x4b3356)?[_0x335fa7,_0x4b3356]:null;}_0x4e2900['plugins']['has']('ImageResize')&&(_0x4b9781['enableDefaultAttributesIntegration']('resizeImage'),_0x4b9781['registerBlockAttribute']('resizedWidth'),_0x4b9781['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x7e9700,'FORMAT_IMAGE_SIZE'))),_0x4e2900['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4b9781['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4b9781['registerBlockAttribute']('alt')),_0x4e2900['plugins']['has']('PictureEditing')&&(_0x4b9781['registerBlockAttribute']('sources'),_0x4b9781['descriptionFactory']['registerDescriptionCallback'](_0xfd7b3b=>{if('attribute'!=_0xfd7b3b['type'])return;const {data:_0x5c5a2e}=_0xfd7b3b;return _0x5c5a2e&&'sources'==_0x5c5a2e['key']?{'type':'format','content':''}:void 0x0;})),_0x4e2900['plugins']['has']('ImageSizeAttributes')&&(_0x4b9781['registerBlockAttribute']('width'),_0x4b9781['registerBlockAttribute']('height'),_0x4b9781['descriptionFactory']['registerDescriptionCallback'](_0x268d8d=>{if('attribute'!=_0x268d8d['type'])return;const {data:_0x490676}=_0x268d8d;return!_0x490676||'width'!=_0x490676['key']&&'height'!=_0x490676['key']?void 0x0:{'type':'format','content':''};})),_0x4b9781['descriptionFactory']['registerDescriptionCallback'](_0x543804=>{if(!!_0x415b38['find'](({type:_0x189a03,subType:_0x4bb974})=>_0x543804['type']==_0x189a03&&_0x543804['subType']==_0x4bb974))return _0x543804['previous']?{}:void 0x0;}),_0x4b9781['descriptionFactory']['registerDescriptionCallback'](_0x46161b=>{if('insertion'==_0x46161b['type']||'deletion'==_0x46161b['type']){const _0x30583b=_0x46161b['getContainedElement']();if(_0x30583b&&_0x30583b['is']('element','caption'))return{'type':'insertion'==_0x46161b['type']?'addObject':'removeObject','element':_0x30583b,'quantity':0x1};}}),_0x4b9781['descriptionFactory']['registerDescriptionCallback'](_0x482593=>'formatBlock'==_0x482593['type']&&'convertInlineImageToBlock'==_0x482593['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x482593['type']&&'convertBlockImageToInline'==_0x482593['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4b9781['descriptionFactory']['registerDescriptionCallback'](_0x3be4d4=>{if('attribute'!=_0x3be4d4['type'])return;const {data:_0x41536c}=_0x3be4d4;if(!_0x41536c||'alt'!=_0x41536c['key'])return;const _0x4d60a1=_0x41536c['newValue'];return _0x4d60a1?{'type':'format','content':o(_0x7e9700,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4d60a1+'\x22')}:{'type':'format','content':o(_0x7e9700,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bd203=this['editor'],_0x158acf=_0x4bd203['locale'];_0x4bd203['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10e89c=>{if('formatBlock'!=_0x10e89c['type']&&'formatInline'!=_0x10e89c['type'])return;const {data:_0x3f1636}=_0x10e89c;if(_0x3f1636){if('imageTextAlternative'==_0x3f1636['commandName']){const _0x1daccf=_0x3f1636['commandParams'][0x0]['newValue'];return _0x1daccf?{'type':'format','content':o(_0x158acf,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1daccf+'\x22')}:{'type':'format','content':o(_0x158acf,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3f1636['commandName']){const _0x30a140=_0x3f1636['commandParams'][0x0]['width'];return _0x30a140?{'type':'format','content':o(_0x158acf,'*Set\x20image\x20width:*\x20%0',_0x30a140)}:{'type':'format','content':o(_0x158acf,'*Reset\x20image\x20width*')};}}});}}class st extends _0x573845{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xbe09e5=this['editor']['locale'],_0x110095=this['editor']['plugins']['get']('TrackChangesEditing');_0x110095['enableDefaultAttributesIntegration']('replaceImageSource'),_0x110095['registerBlockAttribute']('src'),_0x110095['descriptionFactory']['registerDescriptionCallback'](_0x564ec7=>{if('attribute'!=_0x564ec7['type'])return;const {data:_0x45764c}=_0x564ec7;return _0x45764c&&'src'==_0x45764c['key']?_0x45764c['newValue']&&_0x45764c['oldValue']?{'type':'format','content':o(_0xbe09e5,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x8e45fd=this['editor']['plugins']['get']('TrackChangesEditing');_0x8e45fd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x8e45fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x8e45fd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x8e45fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x197674=this['editor'],_0x542c6a=_0x197674['locale'];_0x197674['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x217daf=>{if('formatBlock'!=_0x217daf['type']&&'formatInline'!=_0x217daf['type'])return;const {data:_0x1a5767}=_0x217daf;if(!_0x1a5767||'replaceImageSource'!=_0x1a5767['commandName'])return;return{'type':'format','content':o(_0x542c6a,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x573845{['afterInit'](){const _0x4318a9=this['editor'];if(!_0x4318a9['plugins']['has']('ImageStyleEditing'))return;const _0x1e00e9=_0x4318a9['plugins']['get']('TrackChangesEditing'),_0x19aafb=_0x4318a9['plugins']['get']('ImageUtils'),_0x10bea3={};_0x1e00e9['enableCommand']('imageStyle',(_0x11578d,_0x10fdde)=>{const _0x3722b8=_0x4318a9['plugins']['get']('Users')['me'],_0x3820ae=_0x4318a9['commands']['get']('imageStyle');let _0x535e10=_0x19aafb['getClosestSelectedImageElement'](_0x4318a9['model']['document']['selection']),_0x645b89=_0x4318a9['model']['createRangeOn'](_0x535e10),_0x4c862b=_0x3820ae['value'];if(_0x4c862b==_0x10fdde['value'])return;const _0x5da38e={'commandName':'imageStyle','commandParams':[_0x10fdde],'formatGroupId':_0x334525()};_0x4318a9['model']['change'](()=>{if(_0x1e00e9['getSuggestions']()['filter'](_0xbde9bf=>_0xbde9bf['isInContent']&&_0x3722b8==_0xbde9bf['author']&&('formatBlock'==_0xbde9bf['type']||'formatInline'==_0xbde9bf['type'])&&('imageStylePreApply'==_0xbde9bf['subType']||'imageStylePostApply'==_0xbde9bf['subType'])&&_0xbde9bf['getFirstRange']()['isEqual'](_0x645b89))['forEach'](_0x2db9c9=>_0x1e00e9['discardSuggestion'](_0x2db9c9['head'])),_0x535e10=_0x19aafb['getClosestSelectedImageElement'](_0x4318a9['model']['document']['selection']),_0x645b89=_0x4318a9['model']['createRangeOn'](_0x535e10),_0x3820ae['refresh'](),_0x4318a9['commands']['get']('imageTypeInline')['refresh'](),_0x4318a9['commands']['get']('imageTypeBlock')['refresh'](),_0x4c862b=_0x3820ae['value'],_0x4c862b!=_0x10fdde['value'])return _0x19aafb['isInlineImage'](_0x535e10)&&_0x3820ae['shouldConvertImageType'](_0x10fdde['value'],_0x535e10)?(_0x11578d({..._0x10fdde,'setImageSizes':!0x1}),_0x535e10=_0x19aafb['getClosestSelectedImageElement'](_0x4318a9['model']['document']['selection']),void _0x1e00e9['markBlockFormat'](_0x535e10,{..._0x5da38e,'commandReversedParams':[{'value':_0x4c862b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x19aafb['isBlockImage'](_0x535e10)?_0x1e00e9['markBlockFormat'](_0x535e10,_0x5da38e,[],'imageStylePostApply'):_0x1e00e9['markInlineFormat'](_0x645b89,_0x5da38e,'imageStylePostApply'));});});for(const _0x2c7cf9 of _0x4318a9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x10bea3[_0x2c7cf9['name']]=_0x2c7cf9['title']['toLowerCase']();_0x1e00e9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1e00e9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1e00e9['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1e00e9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1f12df])=>{_0x19aafb['setImageNaturalSizeAttributes'](_0x1f12df['getContainedElement']());}),_0x1e00e9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1ee37f,_0x408602)=>{_0x1e00e9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1ee37f,{'commandName':_0x408602['commandName'],'commandParams':_0x408602['commandReversedParams']});}),_0x1e00e9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xe8452a,_0x21f69d){if(_0x4322cf(_0xe8452a,_0x21f69d))return[_0xe8452a,_0x21f69d];if(_0x4322cf(_0x21f69d,_0xe8452a))return[_0x21f69d,_0xe8452a];return null;});const _0x561f19=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4322cf(_0x24a266,_0x1328c5){const _0x5d6740=_0x561f19['findIndex'](({type:_0x5ae55a,subType:_0x1d1fa0})=>_0x24a266['type']==_0x5ae55a&&_0x24a266['subType']==_0x1d1fa0),_0x4f7480=_0x561f19['findIndex'](({type:_0xacdb4e,subType:_0x2a421b})=>_0x1328c5['type']==_0xacdb4e&&_0x1328c5['subType']==_0x2a421b);if(_0x5d6740<0x0||_0x4f7480<0x0)return!0x1;const _0x59b409=_0x24a266['getFirstRange'](),_0x5e646f=_0x1328c5['getFirstRange']();if((0x0==_0x5d6740||0x1==_0x5d6740)&&0x2==_0x4f7480&&_0x59b409['isIntersecting'](_0x5e646f))return!0x0;if(0x2==_0x5d6740&&0x3==_0x4f7480){const _0x3fe236=_0x1e00e9['_findSuggestions'](_0x59b409,'insertion')['filter'](({suggestion:_0x55be77,meta:_0x1bdef6})=>_0x1bdef6['isOwn']&&'convertInlineImageToBlock'==_0x55be77['subType']);if(_0x3fe236['length']>0x1&&_0x5e646f['end']['isEqual'](_0x59b409['start']))return!0x0;if(0x1==_0x3fe236['length']&&(_0x59b409['start']['isEqual'](_0x5e646f['end'])||_0x59b409['end']['isEqual'](_0x5e646f['start'])))return!0x0;}if(0x3==_0x5d6740&&0x3==_0x4f7480&&_0x59b409['start']['isBefore'](_0x5e646f['start'])){const _0x1340d8=_0x59b409['end']['nodeAfter'],_0x46ac12=_0x5e646f['start']['nodeBefore'];return _0x19aafb['isBlockImage'](_0x1340d8)&&_0x1340d8===_0x46ac12;}return!0x1;}_0x4318a9['model']['document']['registerPostFixer'](()=>{let _0x5b9fd7=!0x1;const _0x298929=Array['from'](_0x4318a9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3bcb39,data:_0x173d85}of _0x298929){const {group:_0xbfe6e4,type:_0x5dc4c9,subType:_0x31978f,id:_0x3679db}=_0x1e00e9['_splitMarkerName'](_0x3bcb39);if('suggestion'==_0xbfe6e4&&_0x1e00e9['hasSuggestion'](_0x3679db)){if('formatBlock'==_0x5dc4c9&&('imageStylePreApply'==_0x31978f||'imageStylePostApply'==_0x31978f)){const _0x5d2792=_0x1e00e9['getSuggestion'](_0x3679db);if(_0x173d85['newRange']){const _0xd9c820=_0x5d2792['getFirstRange']()['getContainedElement']();if(_0x19aafb['isBlockImage'](_0xd9c820))continue;_0x1e00e9['discardSuggestion'](_0x5d2792),_0x5b9fd7=!0x0;}}if('insertion'==_0x5dc4c9&&'imageCaption'==_0x31978f&&!_0x173d85['newRange']){const _0x48ffbf=_0x1e00e9['getSuggestion'](_0x3679db);_0x48ffbf['next']&&_0x48ffbf['next']['isInContent']&&(_0x1e00e9['discardSuggestion'](_0x48ffbf['next']),_0x5b9fd7=!0x0);}}}return _0x5b9fd7;}),this['_registerLegacyDescription'](_0x10bea3);}['_registerLegacyDescription'](_0x38e2b0){const _0x4078b0=this['editor'],_0xe2d81e=_0x4078b0['locale'];_0x4078b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x134671=>{if('formatBlock'!=_0x134671['type']&&'formatInline'!=_0x134671['type'])return;const {data:_0x4f7493}=_0x134671;if(!_0x4f7493||'imageStyle'!=_0x4f7493['commandName'])return;const _0x85bda4=_0x4f7493['commandParams'][0x0]['value'];return _0x1bab1a('side'===_0x85bda4?o(_0xe2d81e,'FORMAT_SIDE_IMAGE'):_0x38e2b0[_0x85bda4]||_0x85bda4);function _0x1bab1a(_0x1a5ce2){return{'type':'format','content':o(_0xe2d81e,'*Format:*\x20%0',_0x1a5ce2)};}});}}class rt extends _0x573845{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3f3697){super(_0x3f3697),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5f4ae3=this['editor'],_0x40bdbd=_0x5f4ae3['commands']['get']('importWord'),_0x1d5350=_0x5f4ae3['commands']['get']('trackChanges');_0x40bdbd&&(_0x40bdbd['on']('execute',(_0x1e4ed3,[,_0x5d1e36])=>{this['_trackChangesValueDuringImport']=_0x1d5350['value'],_0x5d1e36['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x40bdbd,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x40bdbd,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1d5350['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5f4ae3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x12488a,_0x1e3c5f){const {suggestions:_0x507211}=_0x1e3c5f,_0x3bb4ca=this['editor']['commands']['get']('trackChanges'),_0x6d9a45=_0x3bb4ca['value'];this['_trackChangesValueDuringImport']!==_0x6d9a45&&(_0x3bb4ca['execute'](),this['_trackChangesExecuted']=!0x0),_0x507211&&_0x507211['forEach'](({id:_0x1797bf,type:_0x537d8a,author:_0x8c9c90,created_at:_0x438de6})=>{const _0x3ba62e={'id':_0x1797bf,'type':_0x537d8a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x8c9c90,'createdAt':_0x438de6?new Date(_0x438de6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3ba62e);});}}class at extends _0x573845{['afterInit'](){const _0x69576d=this['editor'],_0xce5388=_0x69576d['plugins']['get']('TrackChangesEditing');if(_0x69576d['plugins']['has']('IndentEditing')&&(_0xce5388['enableCommand']('indent'),_0xce5388['enableCommand']('outdent')),_0x69576d['plugins']['has']('IndentBlock')){for(const _0x13544b of['indentBlock','outdentBlock'])_0xce5388['enableDefaultAttributesIntegration'](_0x13544b);}const _0x5434a4=_0x69576d['locale'];_0xce5388['registerBlockAttribute']('blockIndent'),_0xce5388['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5434a4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e73d3=this['editor'],_0x61e56c=_0x3e73d3['locale'],_0x2c5cfb=_0x3e73d3['plugins']['get']('TrackChangesEditing');_0x2c5cfb['descriptionFactory']['registerDescriptionCallback'](_0x42eb41=>{if('formatBlock'!=_0x42eb41['type'])return;const {data:_0x525874}=_0x42eb41;if(!_0x525874)return;if('indentBlock'!=_0x525874['commandName']&&'outdentBlock'!=_0x525874['commandName'])return;const _0x21cd32=_0x42eb41['getItems']()[0x0],_0x5df48b=_0x2c5cfb['descriptionFactory']['getItemLabel'](_0x21cd32);return'indentBlock'==_0x525874['commandName']?{'type':'format','content':o(_0x61e56c,'*Indent:*\x20%0',_0x5df48b)}:'outdentBlock'==_0x525874['commandName']?{'type':'format','content':o(_0x61e56c,'*Outdent:*\x20%0',_0x5df48b)}:void 0x0;});}}class ct extends _0x573845{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x573845{['afterInit'](){const _0x18fee1=this['editor'];if(!_0x18fee1['plugins']['has']('LinkEditing'))return;const _0x389863=_0x18fee1['plugins']['get']('TrackChangesEditing'),_0x3740cd=_0x18fee1['commands']['get']('link');_0x389863['enableDefaultAttributesIntegration']('link'),_0x389863['enableDefaultAttributesIntegration']('unlink'),_0x389863['registerInlineAttribute']('linkHref');for(const _0x269a13 of _0x3740cd['manualDecorators'])_0x389863['registerInlineAttribute'](_0x269a13['id']),_0x389863['descriptionFactory']['registerAttributeLabel'](_0x269a13['id'],'link\x20('+_0x269a13['label']['toLowerCase']()+')');_0x389863['descriptionFactory']['registerDescriptionCallback'](_0x45a87a=>{if('attribute'!=_0x45a87a['type'])return;const {data:_0x20e387}=_0x45a87a;if(!_0x20e387||'linkHref'!=_0x20e387['key'])return;const _0xe9649a=_0x20e387['newValue'],_0x2ff8ba=_0x18fee1['locale'];return{'type':'format','content':null==_0xe9649a?o(_0x2ff8ba,'*Remove\x20link*'):o(_0x2ff8ba,'*Set\x20link:*\x20%0','\x22'+_0xe9649a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18852b=this['editor'],_0x1b79ab=_0x18852b['locale'];_0x18852b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23e06c=>{if('formatInline'!=_0x23e06c['type'])return;const {data:_0x2ab472}=_0x23e06c;if(_0x2ab472){if('link'==_0x2ab472['commandName']){const _0x37bbe9=_0x2ab472['commandParams'][0x0];return{'type':'format','content':o(_0x1b79ab,'*Set\x20link:*\x20%0','\x22'+_0x37bbe9+'\x22')};}return'unlink'==_0x2ab472['commandName']?{'type':'format','content':o(_0x1b79ab,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x573845{['afterInit'](){const _0x51851b=this['editor'],_0x4788ac=_0x51851b['locale'];if(!_0x51851b['plugins']['has']('LegacyListEditing'))return;const _0x3548fe=_0x51851b['plugins']['get']('TrackChangesEditing'),_0x481da8=_0x51851b['plugins']['has']('LegacyTodoListEditing');function _0x275c26(_0x5ac981){return()=>{const _0x32a0b0=_0x51851b['model']['document']['selection'],_0x51cc3e=_0x51851b['commands']['get'](_0x5ac981);if(_0x51cc3e['value'])return void _0x51851b['execute']('paragraph',{});const _0x1bb6d3=_0x5ac981['slice'](0x0,-0x4),_0x326196=function(_0x523e55,_0x4eddb3,_0x1139a0){let _0x3cc733=Array['from'](_0x523e55)['filter'](_0x5925eb=>function(_0x2d9201,_0x1851c8){return _0x1851c8['checkChild'](_0x2d9201['parent'],'listItem')&&!_0x1851c8['isObject'](_0x2d9201);}(_0x5925eb,_0x1139a0));_0x3cc733=_0x3cc733['filter'](_0x11ee13=>!_0x11ee13['is']('element','listItem')||_0x11ee13['getAttribute']('listType')!=_0x4eddb3);const _0x20e13e=new Set();for(const _0x510af4 of _0x3cc733)_0x510af4['is']('element','listItem')?_0x20e13e['add'](Le(_0x510af4)):_0x20e13e['add'](_0x510af4);return Array['from'](_0x20e13e);}(_0x32a0b0['getSelectedBlocks'](),_0x1bb6d3,_0x51851b['model']['schema']);_0x51851b['model']['change'](()=>{for(const _0x3f3353 of _0x326196)_0x3548fe['markBlockFormat'](_0x3f3353,{'commandName':_0x5ac981,'commandParams':[{'forceValue':!_0x51cc3e['value']}],'formatGroupId':'blockName'},Ee(_0x3f3353));});};}function _0x2e4ef9(_0x4a0eae){return()=>{const _0x13d127=function(_0xe4b7d1){let _0x310fab=Array['from'](_0xe4b7d1);const _0x2b0dc2=_0x310fab['findIndex'](_0x1705ea=>'listItem'!=_0x1705ea['name']);return _0x2b0dc2>-0x1&&(_0x310fab=_0x310fab['slice'](0x0,_0x2b0dc2)),_0x310fab;}(_0x51851b['model']['document']['selection']['getSelectedBlocks']()),_0x246adf=_0x51851b['model']['createRange'](_0x51851b['model']['createPositionAt'](_0x13d127[0x0],'before'),_0x51851b['model']['createPositionAt'](_0x13d127[_0x13d127['length']-0x1],'end'));_0x51851b['model']['change'](()=>{_0x3548fe['markBlockFormat'](_0x246adf,{'commandName':_0x4a0eae,'commandParams':[],'formatGroupId':'listIndent'},function(_0x23403b){const _0x194dbe=new Set();for(const _0x1c5d56 of _0x23403b){let _0x580ad9=_0x1c5d56['nextSibling'];for(;_0x580ad9&&_0x580ad9['getAttribute']('listIndent')>_0x1c5d56['getAttribute']('listIndent');)_0x194dbe['add'](_0x580ad9),_0x580ad9=_0x580ad9['nextSibling'];}return Array['from'](_0x194dbe);}(_0x13d127));});};}_0x3548fe['enableCommand']('numberedList',_0x275c26('numberedList')),_0x3548fe['enableCommand']('bulletedList',_0x275c26('bulletedList')),_0x481da8&&_0x3548fe['enableCommand']('todoList',_0x275c26('todoList')),_0x3548fe['enableCommand']('indentList',_0x2e4ef9('indentList')),_0x3548fe['enableCommand']('outdentList',_0x2e4ef9('outdentList')),_0x481da8&&_0x3548fe['enableCommand']('checkTodoList',()=>{const _0x5726f7=_0x51851b['commands']['get']('checkTodoList'),_0xd01b30=Array['from'](_0x5726f7['_selectedElements']);_0xd01b30['filter'](_0x4ee5ec=>_0x4ee5ec['getAttribute']('todoListChecked')!=_0x5726f7['value']),_0x51851b['model']['change'](()=>{for(const _0x515f06 of _0xd01b30)_0x3548fe['markBlockFormat'](_0x515f06,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5726f7['value']}]});});}),_0x3548fe['descriptionFactory']['registerElementLabel']('listItem',_0x22972c=>o(_0x4788ac,'ELEMENT_LIST_ITEM',_0x22972c)),_0x3548fe['descriptionFactory']['registerDescriptionCallback'](_0x1c4663=>{if('formatBlock'!=_0x1c4663['type']&&'formatInline'!=_0x1c4663['type'])return;const {data:_0x5d22a5}=_0x1c4663;if(_0x5d22a5){if('numberedList'==_0x5d22a5['commandName']||'bulletedList'==_0x5d22a5['commandName']||'todoList'==_0x5d22a5['commandName'])switch(_0x5d22a5['commandName']['replace']('List','')){case'bulleted':return _0x10f0f4(o(_0x4788ac,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x10f0f4(o(_0x4788ac,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x10f0f4(o(_0x4788ac,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5d22a5['commandName'])return{'type':'format','content':o(_0x4788ac,'*Indent:*\x20%0',o(_0x4788ac,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5d22a5['commandName'])return{'type':'format','content':o(_0x4788ac,'*Outdent:*\x20%0',o(_0x4788ac,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5d22a5['commandName'])return _0x5d22a5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4788ac,'*Check\x20item*')}:{'type':'format','content':o(_0x4788ac,'*Uncheck\x20item*')};}function _0x10f0f4(_0x30a504){return{'type':'format','content':o(_0x4788ac,'*Change\x20to:*\x20%0',_0x30a504)};}});}}function Le(_0x29198e){const _0x322924=_0x29198e['getAttribute']('listIndent');if(0x0==_0x322924)return _0x29198e;let _0x4eb374=_0x29198e;for(;_0x29198e['previousSibling']&&_0x29198e['previousSibling']['is']('element','listItem');){const _0xc0d7e8=_0x29198e['previousSibling']['getAttribute']('listIndent');if(_0xc0d7e8==_0x322924)_0x4eb374=_0x29198e['previousSibling'];else{if(_0xc0d7e8<_0x322924)break;}_0x29198e=_0x29198e['previousSibling'];}return _0x4eb374;}function Ee(_0xd16785){const _0x4f6ec0=[];if(_0xd16785['is']('element','listItem')&&_0xd16785['getAttribute']('listIndent')>0x0){let _0x318767=_0xd16785['nextSibling'];for(;_0x318767&&'listItem'==_0x318767['name']&&_0x318767['getAttribute']('listIndent')==_0xd16785['getAttribute']('listIndent');)_0x4f6ec0['push'](_0x318767),_0x318767=_0x318767['nextSibling'];}return _0x4f6ec0;}class ht extends _0x573845{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x195b01=this['editor']['config']['get']('list.properties'),_0x27c36d=this['editor']['plugins']['get']('TrackChangesEditing');_0x195b01['styles']&&_0x27c36d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x195b01['reversed']&&_0x27c36d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x195b01['startIndex']&&_0x27c36d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x27c36d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xdc984b,_0x506883={}){const _0x56d98b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18fc6a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x56d98b['markMultiRangeBlockFormat'](_0x18fc6a,{'commandName':'listStyle','commandParams':[{'type':_0x506883['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x44b92e,_0x1bf322={}){const _0x42e3d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x217cf0=this['_getSuggestionBlocks'](_0x370b27=>_0x370b27['is']('element','listItem')&&'numbered'===_0x370b27['getAttribute']('listType'));if(_0x217cf0['length']<0x1)return;const _0x4ddade=_0x217cf0['map'](_0x1fb15e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1fb15e,'before'),this['editor']['model']['createPositionAt'](_0x1fb15e,0x0)));this['editor']['model']['change'](()=>{_0x42e3d6['markMultiRangeBlockFormat'](_0x4ddade,{'commandName':'listReversed','commandParams':[{'reversed':_0x1bf322['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3e0f62,_0x17c83c={}){const _0x202d83=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f90df=this['_getSuggestionBlocks'](_0x15e03c=>_0x15e03c['is']('element','listItem')&&'numbered'===_0x15e03c['getAttribute']('listType'));if(_0x3f90df['length']<0x1)return;const _0x588705=_0x3f90df['map'](_0x30e197=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30e197,'before'),this['editor']['model']['createPositionAt'](_0x30e197,0x0)));this['editor']['model']['change'](()=>{_0x202d83['markMultiRangeBlockFormat'](_0x588705,{'commandName':'listStart','commandParams':[{'startIndex':_0x17c83c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x23dddd){if('formatBlock'!=_0x23dddd['type']&&'formatInline'!=_0x23dddd['type'])return;const _0x49d19d=this['editor']['locale'],{data:_0x4f04d1}=_0x23dddd;if(!_0x4f04d1)return;let _0x17c5ea,_0xb46f26;switch(_0x4f04d1['commandName']){case'listStyle':_0x17c5ea='*Change\x20to:*\x20%0',_0xb46f26={'type':'format','content':o(_0x49d19d,_0x17c5ea,o(_0x49d19d,this['_getTranslationKeyForListStyle'](_0x4f04d1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x17c5ea=_0x4f04d1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xb46f26={'type':'format','content':o(_0x49d19d,_0x17c5ea)};break;case'listStart':_0x17c5ea='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xb46f26={'type':'format','content':o(_0x49d19d,_0x17c5ea,_0x4f04d1['commandParams'][0x0]['startIndex'])};}return _0xb46f26;}['_getSuggestionBlocksForListStyle'](){const _0x429488=this['editor']['plugins']['get']('LegacyListUtils');let _0x5ec2f0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5ec2f0[0x0]?.['is']('element','listItem')&&_0x5ec2f0['unshift'](..._0x429488['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5ec2f0[_0x5ec2f0['length']-0x1]?.['is']('element','listItem')&&_0x5ec2f0['push'](..._0x429488['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5ec2f0=[...new Set(_0x5ec2f0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5ec2f0=_0x5ec2f0['filter'](_0x593990=>_0x593990['is']('element','listItem'))),_0x5ec2f0;}['_getSuggestionBlocks'](_0x3bec71){const _0x376ed0=this['editor']['plugins']['get']('LegacyListUtils');let _0x43ab80=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3bec71)['map'](_0x24ecc3=>{const _0x52be0a=this['editor']['model']['createPositionAt'](_0x24ecc3,0x0);return[..._0x376ed0['getSiblingNodes'](_0x52be0a,'backward'),..._0x376ed0['getSiblingNodes'](_0x52be0a,'forward')];})['flat']();return _0x43ab80=[...new Set(_0x43ab80)],_0x43ab80;}['_getTranslationKeyForListStyle'](_0xe7a505){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xe7a505)||'default')['toUpperCase']()+'_LIST_'+_0xe7a505['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x573845{['afterInit'](){const _0x501bbf=this['editor'];if(!_0x501bbf['plugins']['has']('MediaEmbedEditing'))return;const _0x39126a=_0x501bbf['plugins']['get']('TrackChangesEditing'),_0x1a1289=_0x501bbf['locale'];_0x39126a['enableCommand']('mediaEmbed'),_0x39126a['descriptionFactory']['registerElementLabel']('media',_0x205c22=>o(_0x1a1289,'ELEMENT_MEDIA',_0x205c22)),_0x501bbf['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2fef80,{writer:_0x474a66,options:_0x1f308b})=>{if(_0x1f308b['showSuggestionHighlights'])return _0x474a66['createEmptyElement']('div');},'converterPriority':'high'}),_0x501bbf['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2bd276,_0x485ae7,_0x249080)=>{_0x249080['options']['showSuggestionHighlights']&&_0x2bd276['stop']();},{'priority':'high'});}}class lt extends _0x573845{['afterInit'](){const _0x32893e=this['editor'];_0x32893e['plugins']['has']('MentionEditing')&&_0x32893e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x573845{['afterInit'](){const _0x5e2813=this['editor'];if(!_0x5e2813['plugins']['has']('MergeFieldsEditing'))return;const _0xbc00c9=_0x5e2813['plugins']['get']('TrackChangesEditing'),_0x540c47=_0x5e2813['locale'];_0xbc00c9['enableCommand']('insertMergeField'),_0xbc00c9['enableCommand']('insertMergeFieldBlock'),_0xbc00c9['enableCommand']('insertMergeFieldImage'),_0xbc00c9['descriptionFactory']['registerElementLabel']('mergeField',_0x3f08b0=>o(_0x540c47,'ELEMENT_MERGE_FIELD',_0x3f08b0)),_0xbc00c9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x523e84=>o(_0x540c47,'ELEMENT_MERGE_FIELD',_0x523e84)),_0xbc00c9['descriptionFactory']['registerDescriptionCallback'](_0x24a194=>{if('insertion'!=_0x24a194['type']&&'deletion'!=_0x24a194['type'])return;const _0x2a4bd1=_0x24a194['getContainedElement']();if(null==_0x2a4bd1)return;const _0x506976=_0x5e2813['plugins']['get']('MergeFieldsEditing');let _0x2c968a;switch(_0x506976['getMergeFieldType'](_0x2a4bd1)){case null:return;case'image':{const _0x38b04a=_0x506976['unwrapAffixes'](_0x2a4bd1['getAttribute']('src'));_0x2c968a=_0x506976['getLabel'](_0x38b04a)||_0x38b04a;break;}default:{const _0x3fe37e=_0x2a4bd1['getAttribute']('id');_0x2c968a=_0x506976['getLabel'](_0x3fe37e)||_0x3fe37e;break;}}return'insertion'==_0x24a194['type']?{'type':'insertion','content':o(_0x540c47,'*Insert:*\x20%0','\x22'+_0x2c968a+'\x22\x20'+o(_0x540c47,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x540c47,'*Remove:*\x20%0','\x22'+_0x2c968a+'\x22\x20'+o(_0x540c47,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x573845{['afterInit'](){const _0x16ab58=this['editor'],_0x52533f=_0x16ab58['plugins']['get']('TrackChangesEditing');_0x16ab58['plugins']['has']('MultiLevelList')&&(_0x52533f['enableDefaultAttributesIntegration']('multiLevelList'),_0x52533f['registerBlockAttribute']('listMarkerStyle'),_0x52533f['descriptionFactory']['registerDescriptionCallback'](_0x45f1ec=>this['handleDescriptions'](_0x45f1ec)));}['handleDescriptions'](_0x157c97){const _0x3abf38=this['editor']['locale'],{data:_0x448666}=_0x157c97,_0x5f0e85={'type':'format','content':''};if(_0x448666&&'listMarkerStyle'==_0x448666['key']){if(!_0x448666['oldValue'])return{'type':'format','content':o(_0x3abf38,'*Set\x20format:*\x20%0',o(_0x3abf38,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x448666['newValue']+')'};if(!_0x448666['newValue']){let _0x2c3382=_0x157c97['head'];for(;_0x2c3382;){if(_0x2c3382['data']&&'listType'==_0x2c3382['data']['key']&&_0x2c3382['data']['newValue'])return _0x5f0e85;_0x2c3382=_0x2c3382['next'];}return{'type':'format','content':o(_0x3abf38,'*Remove\x20format:*\x20%0',o(_0x3abf38,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x448666['oldValue']+')'};}}}}class pt extends _0x573845{['afterInit'](){const _0x1b617b=this['editor'];if(!_0x1b617b['plugins']['has']('PageBreakEditing'))return;_0x1b617b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4601ab=_0x1b617b['plugins']['get']('TrackChangesEditing'),_0x4bb2bc=_0x1b617b['locale'];_0x4601ab['descriptionFactory']['registerElementLabel']('pageBreak',_0x3d2332=>o(_0x4bb2bc,'ELEMENT_PAGE_BREAK',_0x3d2332));}}class kt extends _0x573845{['afterInit'](){const _0x1cb7b6=this['editor'];if(!_0x1cb7b6['plugins']['has']('Paragraph'))return;const _0x45cdf1=_0x1cb7b6['locale'],_0x4de980=_0x1cb7b6['plugins']['get']('TrackChangesEditing');_0x4de980['descriptionFactory']['registerElementLabel']('paragraph',_0x3961ac=>o(_0x45cdf1,'ELEMENT_PARAGRAPH',_0x3961ac)),_0x4de980['enableDefaultAttributesIntegration']('paragraph'),_0x4de980['enableCommand']('insertParagraph'),_0x1cb7b6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1cb7b6),{'priority':'highest'}),_0x1cb7b6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x15957a,_0x4cc092,_0x511dbe)=>{_0x511dbe['options']['showSuggestionHighlights']&&nr(_0x1cb7b6,{'showActiveMarker':!0x1})(_0x15957a,_0x4cc092,_0x511dbe);},{'priority':'highest'});const _0x1a70fa=_0x4de980['descriptionFactory'];_0x1a70fa['registerDescriptionCallback'](_0x4961e7=>{if('insertion'!==_0x4961e7['type'])return;const {start:_0x14ed98,end:_0x5360a3}=_0x4961e7['getFirstRange']();if(!_0x14ed98['isTouching'](_0x5360a3)||!_0x14ed98['nodeAfter'])return;const _0x3563f2=_0x1cb7b6['model']['schema'],_0x10a745=_0x14ed98['nodeAfter'];return _0x3563f2['isBlock'](_0x10a745)&&!_0x3563f2['isLimit'](_0x10a745)&&_0x3563f2['checkChild'](_0x10a745,'$text')?{'type':'insertion','content':o(_0x45cdf1,'*Insert:*\x20%0',_0x1a70fa['getItemLabel'](_0x10a745,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x510e27=this['editor'],_0x283c23=_0x510e27['locale'];_0x510e27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ae0e0=>{if('formatBlock'!=_0x1ae0e0['type'])return;const {data:_0x162ab6}=_0x1ae0e0;return _0x162ab6&&'paragraph'==_0x162ab6['commandName']?{'type':'format','content':o(_0x283c23,'*Change\x20to:*\x20%0',o(_0x283c23,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1ea869,{showActiveMarker:_0x161e31=!0x0}={}){return(_0x2cd718,_0x19e7be,_0x169f8e)=>{const _0x291921=_0x1ea869['plugins']['get']('TrackChangesEditing'),_0x4ba489=_0x19e7be['markerRange']['start'],_0x2bb1c9=_0x19e7be['markerRange']['end'],_0x1eaa0f=_0x1ea869['model']['schema'];if(!_0x4ba489['isTouching'](_0x2bb1c9)||!_0x4ba489['nodeAfter'])return;const _0x275e0d=_0x4ba489['nodeAfter'];if(_0x1eaa0f['isBlock'](_0x275e0d)&&!_0x1eaa0f['isLimit'](_0x275e0d)&&_0x1eaa0f['checkChild'](_0x275e0d,'$text')){if(!_0x169f8e['consumable']['consume'](_0x19e7be['markerRange'],_0x2cd718['name']))return;const {id:_0x977fd4,authorId:_0xe56156}=_0x291921['_splitMarkerName'](_0x19e7be['markerName']),_0x594453=_0x169f8e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x977fd4,'data-author-id':_0xe56156}),_0x119656=_0x169f8e['mapper']['toViewPosition'](_0x2bb1c9);_0x161e31&&_0x291921['activeMarkers']['includes'](_0x19e7be['markerName'])&&_0x169f8e['writer']['addClass']('ck-suggestion-marker--active',_0x594453),_0x169f8e['writer']['insert'](_0x119656,_0x594453),_0x169f8e['mapper']['bindElementToMarker'](_0x594453,_0x19e7be['markerName']);}};}class wt extends _0x573845{['afterInit'](){const _0x113357=this['editor'];_0x113357['commands']['get']('replaceSource')&&_0x113357['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x573845{['afterInit'](){const _0x26d5b2=this['editor'];if(!_0x26d5b2['plugins']['has']('RemoveFormatEditing'))return;_0x26d5b2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c8582=this['editor'];_0x2c8582['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d9f80=>{if('formatBlock'!=_0x2d9f80['type']&&'formatInline'!=_0x2d9f80['type'])return;const {data:_0x43b495}=_0x2d9f80;return _0x43b495&&'removeFormat'==_0x43b495['commandName']?{'type':'format','content':o(_0x2c8582['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x573845{['afterInit'](){const _0x6c3b72=this['editor'];if(!_0x6c3b72['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x34ceda=_0x6c3b72['plugins']['get']('TrackChangesEditing');_0x34ceda['enableCommand']('goToPreviousRestrictedEditingException'),_0x34ceda['enableCommand']('goToNextRestrictedEditingException');const _0x3f4772=_0x6c3b72['plugins']['get']('RestrictedEditingModeEditing');_0x3f4772['enableCommand']('trackChanges'),_0x3f4772['enableCommand']('acceptSuggestion'),_0x3f4772['enableCommand']('discardSuggestion'),_0x3f4772['enableCommand']('acceptAllSuggestions'),_0x3f4772['enableCommand']('discardAllSuggestions'),_0x3f4772['enableCommand']('acceptSelectedSuggestions'),_0x3f4772['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x573845{['afterInit'](){const _0x175407=this['editor'];if(!_0x175407['plugins']['has']('ShiftEnter'))return;const _0x323913=_0x175407['plugins']['get']('TrackChangesEditing');_0x323913['enableCommand']('shiftEnter'),_0x175407['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x175407),{'priority':'high'}),_0x175407['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x175407),{'priority':'high'}),_0x175407['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x150ab9,_0x41cb11,_0x528539)=>{_0x528539['options']['showSuggestionHighlights']&&je(_0x175407,{'showActiveMarker':!0x1})(_0x150ab9,_0x41cb11,_0x528539);}),_0x323913['descriptionFactory']['registerElementLabel']('softBreak',_0x469db1=>o(_0x175407['locale'],'ELEMENT_LINE_BREAK',_0x469db1));}}function je(_0x5a4967,{showActiveMarker:_0x332893=!0x0}={}){return(_0x3f6d8c,_0x3046be,_0x182266)=>{const _0x341644=_0x5a4967['plugins']['get']('TrackChangesEditing');if(!_0x182266['consumable']['test'](_0x3046be['markerRange'],_0x3f6d8c['name']))return;const _0x16dd33=_0x5a4967['model'];for(const _0xb3d9f9 of _0x3046be['markerRange']['getItems']()){if(!_0xb3d9f9['is']('element','softBreak'))continue;const _0x32b77c='deletion'==_0x3046be['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x5a45c9,authorId:_0xab5682}=_0x341644['_splitMarkerName'](_0x3046be['markerName']),_0x1db797=_0x182266['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x32b77c,'data-suggestion':_0x5a45c9,'data-author-id':_0xab5682}),_0x2ab50f=_0x182266['mapper']['toViewPosition'](_0x16dd33['createPositionBefore'](_0xb3d9f9));_0x332893&&_0x341644['activeMarkers']['includes'](_0x3046be['markerName'])&&_0x182266['writer']['addClass']('ck-suggestion-marker--active',_0x1db797),_0x182266['writer']['insert'](_0x2ab50f,_0x1db797),_0x182266['mapper']['bindElementToMarker'](_0x1db797,_0x3046be['markerName']);}};}class St extends _0x573845{['afterInit'](){const _0xac5d0e=this['editor'],_0x2339c7=_0xac5d0e['model'],_0x25ac94=_0xac5d0e['locale'];if(!_0xac5d0e['plugins']['has']('StandardEditingModeEditing'))return;const _0x15d1c1=_0xac5d0e['plugins']['get']('TrackChangesEditing'),_0x43223d='restrictedEditingException',_0x1b71fa=_0xac5d0e['commands']['get'](_0x43223d);_0x15d1c1['enableCommand'](_0x43223d,(_0x429c12,_0x35c869={})=>{const _0x209eeb=_0x2339c7['document']['selection'];if(_0x209eeb['isCollapsed'])return void _0x429c12(_0x35c869);const _0x1dba93=void 0x0!==_0x35c869['forceValue']?_0x35c869['forceValue']:!_0x1b71fa['value'];_0x2339c7['change'](()=>{const _0x2dd003=Array['from'](_0x209eeb['getRanges']());for(const _0x2df6c4 of _0x2dd003){const _0x152ad7=_0x1dba93?[_0x2df6c4]:io(_0x43223d,_0x2df6c4,_0x2339c7);for(const _0x39b8d6 of _0x152ad7)_0x15d1c1['markInlineFormat'](_0x39b8d6,{'commandName':_0x43223d,'commandParams':[{'forceValue':_0x1dba93}]});}});}),_0x15d1c1['descriptionFactory']['registerDescriptionCallback'](_0x552286=>{if('formatBlock'!=_0x552286['type']&&'formatInline'!=_0x552286['type'])return;const {data:_0xdcea21}=_0x552286;return _0xdcea21&&_0xdcea21['commandName']==_0x43223d?_0xdcea21['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25ac94,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x25ac94,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x573845{['afterInit'](){const _0x484f1e=this['editor'];if(!_0x484f1e['plugins']['has']('Style')||!_0x484f1e['plugins']['has']('DataSchema'))return;const _0x5b44e4=_0x484f1e['plugins']['get']('TrackChangesEditing'),_0x85ad76=_0x484f1e['locale'],_0x4fd814=_0x484f1e['config']['get']('style')||{},_0x479ca4=_0x484f1e['plugins']['get']('GeneralHtmlSupport'),_0x2f23fa=_0x484f1e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x484f1e['plugins']['get']('DataSchema'),_0x4fd814['definitions']);_0x5b44e4['enableDefaultAttributesIntegration']('style');const _0x25b858=new Set();for(const _0x31f1a5 of _0x2f23fa['block']){const _0xdb320e=_0x479ca4['getGhsAttributeNameForElement'](_0x31f1a5['element']);_0x25b858['add'](_0xdb320e);}const _0x19b4b5=new Set();for(const _0x330130 of _0x2f23fa['inline']){const _0x563f09=_0x479ca4['getGhsAttributeNameForElement'](_0x330130['element']);_0x19b4b5['add'](_0x563f09);for(const _0xc5f9f1 of _0x330130['ghsAttributes'])_0x19b4b5['add'](_0xc5f9f1);}for(const _0x90eb8d of _0x25b858)_0x5b44e4['registerBlockAttribute'](_0x90eb8d),_0x5b44e4['descriptionFactory']['registerAttributeLabel'](_0x90eb8d,o(_0x85ad76,'FORMAT_STYLE'));for(const _0x394532 of _0x19b4b5)_0x5b44e4['registerInlineAttribute'](_0x394532),_0x5b44e4['descriptionFactory']['registerAttributeLabel'](_0x394532,o(_0x85ad76,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d173a=this['editor'],_0x84968a=_0x3d173a['locale'];_0x3d173a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x695f6c=>{if('formatBlock'!=_0x695f6c['type']&&'formatInline'!=_0x695f6c['type'])return;const {data:_0x45bb53}=_0x695f6c;return _0x45bb53&&'style'===_0x45bb53['commandName']?_0x45bb53['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x84968a,'*Set\x20format:*\x20%0',_0x45bb53['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x84968a,'*Remove\x20format:*\x20%0',_0x45bb53['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x573845{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2d0f12){super(_0x2d0f12),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x9f668b=this['editor'],_0x27229c=_0x9f668b['model']['document']['selection'];if(!_0x9f668b['plugins']['has']('TableEditing'))return;const _0x58f2ba=_0x9f668b['locale'],_0x1083b5=_0x9f668b['plugins']['get']('TrackChangesEditing'),_0x5009ef=_0x9f668b['plugins']['get']('TableUtils');_0x1083b5['descriptionFactory']['registerElementLabel']('table',_0x436ae2=>o(_0x58f2ba,'ELEMENT_TABLE',_0x436ae2)),this['_setupColumnsRowsFixing'](),_0x1083b5['enableCommand']('insertTable'),_0x1083b5['enableCommand']('selectTableRow'),_0x1083b5['enableCommand']('selectTableColumn');for(const _0x32045b of['insertTableRowAbove','insertTableRowBelow']){const _0x454e30=_0x9f668b['commands']['get'](_0x32045b);_0x1083b5['enableCommand'](_0x32045b,_0x15d498=>{_0x9f668b['model']['change'](_0x4832f5=>{_0x15d498();const _0x29f7f9='above'===_0x454e30['order'],_0x42649e=_0x5009ef['getSelectionAffectedTableCells'](_0x27229c),_0x4b7eba=_0x5009ef['getRowIndexes'](_0x42649e),_0x1aaaa3=_0x29f7f9?_0x4b7eba['first']-0x1:_0x4b7eba['last']+0x1,_0x3f3a41=_0x42649e[0x0]['findAncestor']('table'),_0x3fded4=_0x5009ef['createTableWalker'](_0x3f3a41,{'startRow':_0x1aaaa3,'endRow':_0x1aaaa3}),_0x8255e2=Array['from'](_0x3fded4)['map'](_0x5be293=>_0x4832f5['createRangeOn'](_0x5be293['cell']));_0x1083b5['markMultiRangeInsertion'](_0x8255e2,'tableRow');});});}for(const _0x504f62 of['insertTableColumnLeft','insertTableColumnRight']){const _0x581c3a=_0x9f668b['commands']['get'](_0x504f62);_0x1083b5['enableCommand'](_0x504f62,_0x5f168c=>{_0x9f668b['model']['change'](_0x23a749=>{_0x5f168c();const _0x3f9b95='left'===_0x581c3a['order'],_0x152c68=_0x5009ef['getSelectionAffectedTableCells'](_0x27229c),_0x20caca=_0x5009ef['getColumnIndexes'](_0x152c68),_0x55746e=_0x3f9b95?_0x20caca['first']-0x1:_0x20caca['last']+0x1,_0x35a3d1=_0x152c68[0x0]['findAncestor']('table'),_0x625202=_0x5009ef['createTableWalker'](_0x35a3d1,{'startRow':0x0,'column':_0x55746e,'includeAllSlots':!0x1}),_0x456e2f=Array['from'](_0x625202)['map'](_0x37ba1c=>_0x23a749['createRangeOn'](_0x37ba1c['cell']));_0x1083b5['markMultiRangeInsertion'](_0x456e2f,'tableColumn');});});}for(const _0x2bdbab of['removeTableRow','removeTableColumn']){const _0x3753f5=_0x2bdbab['substr'](0xb),_0x3ac598=_0x3753f5['toLowerCase'](),_0x51c531=_0x3ac598['substr'](0x0,0x3)+'span',_0x1b6d1d='table'+_0x3753f5,_0x32b6f8='min'+_0x3753f5,_0x3ac46c='max'+_0x3753f5;_0x1083b5['enableCommand'](_0x2bdbab,()=>{_0x9f668b['model']['change'](_0x5a3f28=>{const _0x1afbde=_0x5009ef['getSelectionAffectedTableCells'](_0x27229c),_0x2b7541=_0x1afbde[0x0]['findAncestor']('table');let _0x2230f8;if('removeTableRow'==_0x2bdbab){const _0x5e492d=_0x5009ef['getRowIndexes'](_0x1afbde);_0x2230f8={'startRow':_0x5e492d['first'],'endRow':_0x5e492d['last'],'includeAllSlots':!0x0};}else{const _0x75f1fb=_0x5009ef['getColumnIndexes'](_0x1afbde);_0x2230f8={'startColumn':_0x75f1fb['first'],'endColumn':_0x75f1fb['last'],'includeAllSlots':!0x0};}const _0xbdd89d=_0x5009ef['createTableWalker'](_0x2b7541,_0x2230f8),_0x2ea58f=Array['from'](_0xbdd89d)['map'](({cell:_0xfb934a})=>_0xfb934a),_0x1b4b9b=Ne(_0x2ea58f['filter'](_0x34067a=>_0x34067a['hasAttribute'](_0x51c531))),_0x55ac18=Ne(_0x2ea58f['filter'](_0x10b52b=>!_0x10b52b['hasAttribute'](_0x51c531)))['map'](_0x1900c2=>_0x5a3f28['createRangeOn'](_0x1900c2)),_0x34cb3a=_0x1083b5['markMultiRangeDeletion'](_0x55ac18,_0x1b6d1d);if(_0x34cb3a&&('tableRow'==_0x34cb3a['subType']||'tableColumn'==_0x34cb3a['subType'])){const _0x1410f1=this['_getSuggestionCoords'](_0x34cb3a);for(const _0x43cf05 of _0x1b4b9b){const _0x43a9a6=_0x5a3f28['createRangeOn'](_0x43cf05),_0x5a6f26=_0x5009ef['getCellLocation'](_0x43cf05),_0xd60471=_0x43cf05['getAttribute'](_0x51c531)-0x1,_0x2ee0ce=_0x1410f1[_0x32b6f8],_0x1c1602=_0x1410f1[_0x3ac46c];_0x2ee0ce<=_0x5a6f26[_0x3ac598]&&_0x5a6f26[_0x3ac598]+_0xd60471<=_0x1c1602&&_0x34cb3a['addRange'](_0x43a9a6);}}});});}function _0xef4736(_0x3dd1c6){const _0x3d8704=Array['from'](_0x27229c['getRanges']())['map'](_0x100eb4=>_0x1f4d12['fromRange'](_0x100eb4));_0x9f668b['model']['change'](_0x3ccde2=>{const _0x17db79=_0x3ccde2['batch'];_0x3dd1c6=_0x3dd1c6['filter'](_0x484559=>'$graveyard'!=_0x484559['root']['rootName']),_0x3ccde2['setSelection'](_0x3dd1c6),_0x9f668b['commands']['get']('removeTableRow')['refresh'](),_0x9f668b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x9f668b['model']['enqueueChange'](()=>{_0x9f668b['model']['enqueueChange'](_0x17db79,_0x3ee247=>{const _0x2d1616=_0x3d8704['filter'](_0x52d325=>'$graveyard'!=_0x52d325['root']['rootName']);_0x2d1616['length']>0x0&&_0x3ee247['setSelection'](_0x2d1616);for(const _0x2422ac of _0x3d8704)_0x2422ac['detach']();});});});}function _0x906a73(_0x143785){_0x9f668b['model']['change'](_0x5ab3e2=>{const _0x2670d8=Array['from'](_0x27229c['getRanges']())['map'](_0x812a08=>_0x1f4d12['fromRange'](_0x812a08)),_0x323d9c=[];for(const _0x5e8070 of _0x143785)for(const _0x1521f3 of _0x5e8070['getItems']({'shallow':!0x0}))_0x323d9c['push'](_0x1521f3);for(const _0x5dc8bf of _0x323d9c)'$graveyard'!=_0x5dc8bf['root']['rootName']&&(_0x5ab3e2['setSelection'](_0x5ab3e2['createPositionAt'](_0x5dc8bf,0x0)),_0x9f668b['commands']['get']('removeTableColumn')['refresh'](),_0x9f668b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x596561=_0x2670d8['filter'](_0x2a03f5=>'$graveyard'!=_0x2a03f5['root']['rootName']);_0x596561['length']>0x0&&_0x5ab3e2['setSelection'](_0x596561);for(const _0x44ca4d of _0x2670d8)_0x44ca4d['detach']();});}function _0x5bd401(_0x3b7983,_0x1f770b){return _0x1f770b['every'](_0x456d3a=>_0x3b7983['some'](_0x1fd0d5=>_0x1fd0d5['end']['isEqual'](_0x456d3a['start'])||_0x456d3a['end']['isEqual'](_0x1fd0d5['start'])));}function _0x438269(_0x6440c7,_0x3fe6c9){return!_0x6440c7['some'](_0x367194=>_0x3fe6c9['some'](_0x308c16=>_0x367194['isIntersecting'](_0x308c16)))&&_0x6440c7['some'](_0x4efdf5=>_0x3fe6c9['some'](_0x95aed6=>_0x4efdf5['end']['isTouching'](_0x95aed6['start'])));}_0x9f668b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x22fd27,_0x5689c7,_0x4ad7d7)=>{if(!_0x4ad7d7['options']['showSuggestionHighlights'])return;const _0xaefead=_0x5689c7['item'];if(!_0xaefead||!_0xaefead['is']('element','tableCell'))return;const _0x528b2e=_0x4ad7d7['mapper']['toViewElement'](_0xaefead);if(_0x528b2e){const {id:_0x4a052b,authorId:_0x2a81a6}=_0x1083b5['_splitMarkerName'](_0x5689c7['markerName']);_0x267ebd(_0x528b2e,_0x4ad7d7['writer'],(_0x1b7cc7,_0x21e09c,_0x5b9512)=>{_0x5b9512['addClass'](_0x40c634(_0x21e09c['classes']),_0x1b7cc7),_0x5b9512['setAttribute']('data-suggestion-id',_0x4a052b,_0x1b7cc7),_0x5b9512['setAttribute']('data-author-id',_0x2a81a6,_0x1b7cc7);},(_0x36f3cd,_0x507c36,_0x3606a3)=>{_0x3606a3['removeClass'](_0x40c634(_0x507c36['classes']),_0x36f3cd),_0x3606a3['removeAttribute']('data-suggestion-id',_0x36f3cd),_0x3606a3['removeAttribute']('data-author-id',_0x36f3cd);});}},{'priority':'highest'}),_0x1083b5['descriptionFactory']['registerDescriptionCallback'](_0x85bba9=>{if('insertion'!=_0x85bba9['type']&&'deletion'!=_0x85bba9['type'])return;const _0x4f0a28=_0x85bba9['getContainedElement']();if(null!=_0x4f0a28&&_0x4f0a28['is']('element','table')){if('insertion'==_0x85bba9['type']){const _0x2bb049=_0x85bba9['getItems']()['filter'](_0x59c5cc=>_0x59c5cc['is']('$textProxy'))['map'](_0x2b65a4=>_0x2b65a4['data']);if(_0x2bb049['length'])return{'type':'insertion','content':o(_0x58f2ba,'*Insert:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2bb049['join']('\x20')+'\x22'))};}if('deletion'==_0x85bba9['type']){const _0x519096=_0x85bba9['getItems']()['filter'](_0x220517=>_0x220517['is']('$textProxy'))['map'](_0x408e38=>_0x408e38['data']);if(_0x519096['length'])return{'type':'deletion','content':o(_0x58f2ba,'*Remove:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x519096['join']('\x20')+'\x22'))};}}}),_0x1083b5['descriptionFactory']['registerDescriptionCallback'](_0x36dbd3=>{if('tableRow'==_0x36dbd3['subType']){const _0x357801=_0x36dbd3['getItems']()['filter'](_0x8d1a64=>_0x8d1a64['is']('$textProxy'))['map'](_0x1ae905=>_0x1ae905['data']),_0x4c0216=this['_getSuggestionCoords'](_0x36dbd3),_0x14420a=_0x4c0216['maxRow']-_0x4c0216['minRow']+0x1;if('insertion'==_0x36dbd3['type'])return _0x357801['length']?{'type':'insertion','content':o(_0x58f2ba,'*Insert:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14420a,'\x22'+_0x357801['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x58f2ba,'*Insert:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_ROW',_0x14420a))};if('deletion'==_0x36dbd3['type'])return _0x357801['length']?{'type':'deletion','content':o(_0x58f2ba,'*Remove:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14420a,'\x22'+_0x357801['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x58f2ba,'*Remove:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_ROW',_0x14420a))};}if('tableColumn'==_0x36dbd3['subType']){const _0x203836=_0x36dbd3['getItems']()['filter'](_0x9d468e=>_0x9d468e['is']('$textProxy'))['map'](_0x5d9fc4=>_0x5d9fc4['data']),_0x2a7c68=this['_getSuggestionCoords'](_0x36dbd3),_0x3ae391=_0x2a7c68['maxColumn']-_0x2a7c68['minColumn']+0x1;if('insertion'==_0x36dbd3['type'])return _0x203836['length']?{'type':'insertion','content':o(_0x58f2ba,'*Insert:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ae391,'\x22'+_0x203836['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x58f2ba,'*Insert:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_COLUMN',_0x3ae391))};if('deletion'==_0x36dbd3['type'])return _0x203836['length']?{'type':'deletion','content':o(_0x58f2ba,'*Remove:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ae391,'\x22'+_0x203836['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x58f2ba,'*Remove:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_COLUMN',_0x3ae391))};}}),_0x1083b5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xef4736),_0x1083b5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xef4736),_0x1083b5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x906a73),_0x1083b5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x906a73),_0x1083b5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5bd401),_0x1083b5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5bd401),_0x1083b5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x438269),_0x1083b5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x438269);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3a054b=this['editor'],_0x2e07a7=_0x3a054b['model']['document']['selection'];return(_0x305942,_0x591f4a)=>{_0x3a054b['model']['change'](_0xa37d7a=>{const {commandName:_0x54d6a2,commandParams:_0x5006e9}=_0x591f4a;let _0xa0899b=_0x305942[0x0]['end']['nodeBefore'];_0x5006e9&&_0x5006e9[0x0]&&!0x1===_0x5006e9[0x0]['forceValue']&&(_0xa0899b=_0x305942[0x0]['start']['nodeAfter']);const _0x1a47cf=_0xa37d7a['createRangeIn'](_0xa0899b);if('$graveyard'==_0x1a47cf['root']['rootName'])return;const _0x318922=Array['from'](_0x2e07a7['getRanges']())['map'](_0x4e6868=>_0x1f4d12['fromRange'](_0x4e6868));_0xa37d7a['setSelection'](_0x1a47cf),_0x3a054b['commands']['get'](_0x54d6a2)['refresh'](),_0x5006e9['push']({'forceDefaultExecution':!0x0}),_0x3a054b['execute'](_0x54d6a2,..._0x5006e9);const _0xee06bb=_0x318922['filter'](_0x468af5=>'$graveyard'!=_0x468af5['root']['rootName']);_0xee06bb['length']>0x0&&_0xa37d7a['setSelection'](_0xee06bb);for(const _0x2048ee of _0x318922)_0x2048ee['detach']();});};}['_getCoordsForCells'](_0x5a80cc){const _0x183ef5=this['editor']['plugins']['get']('TableUtils');let _0x4c91f4=Number['MAX_SAFE_INTEGER'],_0x2b8239=Number['MIN_SAFE_INTEGER'],_0x5e8fe3=Number['MAX_SAFE_INTEGER'],_0x2ca23a=Number['MIN_SAFE_INTEGER'];for(const _0x1eef07 of _0x5a80cc){if('$graveyard'==_0x1eef07['root']['rootName'])continue;const {row:_0x4914e8,column:_0xd3279e}=_0x183ef5['getCellLocation'](_0x1eef07),_0x137634=_0x1eef07['hasAttribute']('rowspan')?_0x1eef07['getAttribute']('rowspan')-0x1:0x0,_0x4bce67=_0x1eef07['hasAttribute']('colspan')?_0x1eef07['getAttribute']('colspan')-0x1:0x0;_0x4c91f4=_0x4914e8<_0x4c91f4?_0x4914e8:_0x4c91f4,_0x2b8239=_0x4914e8+_0x137634>_0x2b8239?_0x4914e8+_0x137634:_0x2b8239,_0x5e8fe3=_0xd3279e<_0x5e8fe3?_0xd3279e:_0x5e8fe3,_0x2ca23a=_0xd3279e+_0x4bce67>_0x2ca23a?_0xd3279e+_0x4bce67:_0x2ca23a;}return{'minRow':_0x4c91f4,'maxRow':_0x2b8239,'minColumn':_0x5e8fe3,'maxColumn':_0x2ca23a};}['_setupColumnsRowsFixing'](){const _0x3d02b4=this['editor'],_0x217332=_0x3d02b4['plugins']['get']('TrackChangesEditing'),_0x289059=_0x3d02b4['plugins']['get']('TableUtils');_0x3d02b4['model']['document']['on']('change:data',()=>{const _0x5ece9a=Array['from'](_0x3d02b4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32b189,data:_0x424ce9}of _0x5ece9a){const {group:_0x231f2e,id:_0x3592d4,subType:_0x329122}=_0x217332['_splitMarkerName'](_0x32b189);if('suggestion'!=_0x231f2e)continue;if(null!=_0x424ce9['oldRange'])continue;const _0x2e7dec=_0x217332['getSuggestion'](_0x3592d4);this['_tablePostFixingSubtypes']['includes'](_0x329122)&&this['_tableSuggestions']['add'](_0x2e7dec);}},{'priority':'low'});const _0x5da6be=(_0x5a9a46,_0x13593b)=>{let _0x52fd30=!0x1;const _0x5a59f8=_0x13593b['createRangeOn'](_0x5a9a46),_0x5d88a7=_0x5a9a46['findAncestor']('table'),_0x150835=_0x289059['getCellLocation'](_0x5a9a46);for(const _0x3ad460 of this['_tableSuggestions']){const _0x2add1a=_0x3ad460['subType'],_0x10888d=_0x2add1a['startsWith']('tablePaste'),_0x10348e=_0x2add1a['substr'](_0x10888d?0xa:0x5),_0x37b2f9=_0x10348e['toLowerCase'](),_0x54e0af=_0x37b2f9['substr'](0x0,0x3)+'span',_0x36123e='min'+_0x10348e,_0xc5d7b0='max'+_0x10348e;if(!_0x3ad460['isInContent'])continue;if(_0x5d88a7!=_0x3ad460['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3ad460['isIntersectingWithRange'](_0x5a59f8))continue;const _0x1dcb3f=_0x5a9a46['hasAttribute'](_0x54e0af)?_0x5a9a46['getAttribute'](_0x54e0af)-0x1:0x0,_0x51192a=this['_getSuggestionCoords'](_0x3ad460),_0x20cd6f=_0x51192a[_0x36123e],_0x497e92=_0x51192a[_0xc5d7b0];_0x20cd6f<=_0x150835[_0x37b2f9]&&_0x150835[_0x37b2f9]+_0x1dcb3f<=_0x497e92&&(_0x3ad460['addRange'](_0x5a59f8),_0x52fd30=!0x0);}return _0x52fd30;};_0x3d02b4['model']['document']['registerPostFixer'](_0x1093f6=>{let _0x26d1b7=!0x1;for(const _0x909dad of _0x3d02b4['model']['document']['differ']['getChanges']())if('insert'==_0x909dad['type']){if('tableRow'==_0x909dad['name']){for(const _0x5d1771 of _0x909dad['position']['nodeAfter']['getChildren']())_0x26d1b7=_0x26d1b7||_0x5da6be(_0x5d1771,_0x1093f6);}else'tableCell'==_0x909dad['name']&&(_0x26d1b7=_0x26d1b7||_0x5da6be(_0x909dad['position']['nodeAfter'],_0x1093f6));}return _0x26d1b7;});}['_getSuggestionCoords'](_0x48802e){return this['_getCoordsForCells'](_0x48802e['getRanges']()['map'](_0x254796=>_0x254796['start']['nodeAfter']));}}function Ne(_0x1229ff){return Array['from'](new Set(_0x1229ff)['values']());}class _t extends _0x573845{static get['requires'](){return[At];}['afterInit'](){const _0x365257=this['editor'],_0x291ffd=_0x365257['model']['document']['selection'],_0x7e29b0=_0x365257['locale'];if(!_0x365257['plugins']['has']('TableEditing'))return;const _0x1c53de=_0x365257['plugins']['get']('TrackChangesEditing'),_0x413598=_0x365257['plugins']['get']('TableUtils'),_0x3ca5ff=_0x365257['plugins']['get'](At);_0x3ca5ff['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1c53de['enableCommand']('mergeTableCells',()=>{const _0xea5ab2=_0x413598['getSelectionAffectedTableCells'](_0x365257['model']['document']['selection']);_0x365257['model']['change'](()=>{_0x1c53de['markMultiRangeBlockFormat'](_0xea5ab2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x365257['commands']['get']('mergeTableCells')['on']('execute',(_0xa905ef,_0x423c4c)=>{_0x365257['commands']['get']('trackChanges')['value']&&(_0x423c4c['length']>0x0&&_0x423c4c[_0x423c4c['length']-0x1]&&_0x423c4c[_0x423c4c['length']-0x1]['forceDefaultExecution']||_0x1c53de['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xa905ef['stop']());},{'priority':'highest'});for(const _0x2abbfb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x563204=_0x365257['commands']['get'](_0x2abbfb);_0x1c53de['enableCommand'](_0x2abbfb,()=>{const _0x4d5139=_0x365257['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1dad84=>_0x1dad84['is']('element','tableCell')),_0x5a32c1=_0x563204['value'];_0x365257['model']['change'](()=>{_0x1c53de['markMultiRangeBlockFormat']([_0x4d5139,_0x5a32c1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3a61bb of['splitTableCellVertically','splitTableCellHorizontally']){const _0x23eddb=_0x365257['commands']['get'](_0x3a61bb);_0x1c53de['enableCommand'](_0x3a61bb,()=>{const _0x32ce2d=_0x413598['getSelectionAffectedTableCells'](_0x365257['model']['document']['selection'])[0x0],_0x4aac10=_0x32ce2d['findAncestor']('table'),{column:_0x2d0092,row:_0x43a2db}=_0x413598['getCellLocation'](_0x32ce2d);let _0x228a4d=[];if('horizontally'==_0x23eddb['direction']){const _0x559d5f=_0x413598['createTableWalker'](_0x4aac10,{'startRow':_0x43a2db,'endRow':_0x43a2db,'includeAllSlots':!0x0});_0x228a4d=Array['from'](_0x559d5f)['map'](_0x247959=>_0x247959['cell']);}else{const _0x248c88=_0x413598['createTableWalker'](_0x4aac10,{'column':_0x2d0092,'includeAllSlots':!0x0});_0x228a4d=Array['from'](_0x248c88)['map'](_0x51473=>_0x51473['cell']);}_0x365257['model']['change'](_0x28d133=>{_0x1c53de['markBlockFormat'](_0x28d133['createRangeOn'](_0x32ce2d),{'commandName':_0x3a61bb,'commandParams':[]},_0x228a4d,_0x3a61bb);});});}_0x1c53de['descriptionFactory']['registerDescriptionCallback'](_0x2f4856=>{if('formatBlock'!=_0x2f4856['type']&&'formatInline'!=_0x2f4856['type'])return;const {data:_0x27829a}=_0x2f4856;return _0x27829a&&'mergeTableCells'==_0x27829a['commandName']?{'type':'format','content':o(_0x7e29b0,'*Merge\x20cells*')}:void 0x0;}),_0x1c53de['descriptionFactory']['registerDescriptionCallback'](_0x407662=>{if('formatBlock'!=_0x407662['type']&&'formatInline'!=_0x407662['type'])return;const {data:_0x551088}=_0x407662;return _0x551088?'splitTableCellVertically'==_0x551088['commandName']?{'type':'format','content':o(_0x7e29b0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x551088['commandName']?{'type':'format','content':o(_0x7e29b0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x179f90=_0x3ca5ff['_acceptFormatSuggestionCallbackFactory']();for(const _0x3d7690 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1c53de['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d7690,'accept',_0x179f90);for(const _0x40a0fd of['splitTableCellVertically','splitTableCellHorizontally'])_0x1c53de['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x40a0fd,'accept',_0x179f90);_0x1c53de['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x45fa02=>{_0x365257['model']['change'](_0x2255c2=>{const _0xc15fab=Array['from'](_0x291ffd['getRanges']())['map'](_0x4b684f=>_0x1f4d12['fromRange'](_0x4b684f));_0x2255c2['setSelection'](_0x45fa02),_0x365257['commands']['get']('mergeTableCells')['refresh'](),_0x365257['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5ef972=_0xc15fab['filter'](_0x58cc30=>'$graveyard'!=_0x58cc30['root']['rootName']);_0x5ef972['length']>0x0&&_0x2255c2['setSelection'](_0x5ef972);for(const _0x4cc79c of _0xc15fab)_0x4cc79c['detach']();});});for(const _0x39768a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1d4cd3=_0x365257['commands']['get'](_0x39768a);_0x1d4cd3['on']('set:isEnabled',(_0x57e56f,_0x584f33,_0x34001e)=>{if(_0x34001e){const _0x296bcb=_0x365257['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x34b3e6=>_0x34b3e6['is']('element','tableCell'));this['_areMergableCells'](_0x1d4cd3['value'],_0x296bcb)||(_0x57e56f['return']=!0x1,_0x57e56f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x51a7b6=this['editor']['commands']['get']('mergeTableCells'),_0x34b674=this['editor']['plugins']['get']('TableUtils');if(!_0x51a7b6['isEnabled'])return!0x1;const _0x1e7da8=_0x34b674['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2f3107 of _0x1e7da8)for(const _0x3ceef2 of _0x1e7da8)if(_0x2f3107!=_0x3ceef2&&!this['_areMergableCells'](_0x2f3107,_0x3ceef2))return!0x1;return!0x0;}['_areMergableCells'](_0x58ffa6,_0x34b417){const _0x4a12c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x160aef=this['editor']['model']['createRangeOn'](_0x58ffa6),_0x5d0c50=this['editor']['model']['createRangeOn'](_0x34b417),_0x59e28b=new Set(),_0xb8f20a=new Set();for(const _0x2e045a of _0x4a12c3['getSuggestions']())if(('insertion'==_0x2e045a['type']||'deletion'==_0x2e045a['type']||'mergeTableCells'==_0x2e045a['subType'])&&_0x2e045a['isInContent']){for(const _0x136ff4 of _0x2e045a['getRanges']())_0x136ff4['containsRange'](_0x160aef,!0x0)&&_0x59e28b['add'](_0x2e045a['type']+':'+_0x2e045a['author']['id']),_0x136ff4['containsRange'](_0x5d0c50,!0x0)&&_0xb8f20a['add'](_0x2e045a['type']+':'+_0x2e045a['author']['id']);}if(_0x59e28b['size']!=_0xb8f20a['size'])return!0x1;for(const _0x26b575 of _0x59e28b)if(!_0xb8f20a['has'](_0x26b575))return!0x1;return!0x0;}}class Ct extends _0x573845{static get['requires'](){return[At];}['afterInit'](){const _0x139ae2=this['editor'];if(!_0x139ae2['plugins']['has']('TableEditing'))return;const _0x2ccc40=_0x139ae2['locale'],_0x1f2ac7=_0x139ae2['plugins']['get']('TrackChangesEditing');_0x1f2ac7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1f2ac7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1f2ac7['registerBlockAttribute']('headingRows'),_0x1f2ac7['registerBlockAttribute']('headingColumns'),_0x1f2ac7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2ccc40,'FORMAT_HEADER_ROW')),_0x1f2ac7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2ccc40,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x9c1c5f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dc021=this['editor']['plugins']['get']('TableUtils'),_0x50254c=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x31a596({showActiveMarker:_0x4ba112=!0x0,setDataAttribute:_0x37e204=!0x0}={}){return(_0x31f78f,_0x41b79b,_0x8fcf82)=>{const {type:_0x1f9df3,id:_0x1551c6}=_0x9c1c5f['_splitMarkerName'](_0x41b79b['markerName']),_0x31c2e1=_0x9c1c5f['getSuggestion'](_0x1551c6),_0x5123c0=_0x31c2e1['data'];if('formatBlock'!=_0x31c2e1['type']||!_0x5123c0||'setTableColumnHeader'!=_0x5123c0['commandName'])return;if(_0x41b79b['item'])return void _0x31f78f['stop']();if(!_0x8fcf82['consumable']['consume'](_0x41b79b['markerRange'],_0x31f78f['name']))return;const _0x1908b8=_0x41b79b['markerRange']['start']['nodeAfter'],_0x313d3a=_0x41b79b['markerRange']['end']['nodeBefore'],_0x36f2b0=_0x1908b8['parent']['parent'],{column:_0x2fa56d}=_0x5dc021['getCellLocation'](_0x1908b8),{column:_0x4c1a0e}=_0x5dc021['getCellLocation'](_0x313d3a);for(let _0x2596b5=_0x2fa56d;_0x2596b5<=_0x4c1a0e;_0x2596b5++){const _0x441c83=_0x5dc021['createTableWalker'](_0x36f2b0,{'column':_0x2596b5,'includeAllSlots':!0x1});for(const _0x575cc4 of _0x441c83){const _0x49b61f=_0x575cc4['cell'],_0x114bfd=_0x8fcf82['mapper']['toViewElement'](_0x49b61f);_0x8fcf82['writer']['addClass']('ck-suggestion-marker-'+_0x1f9df3,_0x114bfd),_0x37e204&&_0x8fcf82['writer']['setAttribute']('data-suggestion',_0x1551c6,_0x114bfd),_0x8fcf82['mapper']['bindElementToMarker'](_0x114bfd,_0x41b79b['markerName']),_0x4ba112&&(_0x9c1c5f['activeMarkers']['includes'](_0x41b79b['markerName'])?_0x8fcf82['writer']['addClass']('ck-suggestion-marker--active',_0x114bfd):_0x8fcf82['writer']['removeClass']('ck-suggestion-marker--active',_0x114bfd));}}};}_0x9c1c5f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x50254c),_0x9c1c5f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x50254c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x31a596(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x36b915,_0x857e94,_0x258ecb)=>{_0x258ecb['options']['showSuggestionHighlights']&&_0x31a596({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x36b915,_0x857e94,_0x258ecb);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x40d888,_0x4a9d40,_0xe2aeea)=>{const {type:_0x4ada59,id:_0x5f292b}=_0x9c1c5f['_splitMarkerName'](_0x4a9d40['markerName']),_0x247209=_0x9c1c5f['getSuggestion'](_0x5f292b),_0x5407f0=_0x247209['data'];if('formatBlock'!=_0x247209['type']||!_0x5407f0||'setTableColumnHeader'!=_0x5407f0['commandName'])return;const _0x29ce2f=_0xe2aeea['mapper']['markerNameToElements'](_0x4a9d40['markerName']);if(_0x29ce2f){for(const _0x566029 of _0x29ce2f)_0xe2aeea['writer']['removeClass']('ck-suggestion-marker-'+_0x4ada59,_0x566029),_0xe2aeea['writer']['removeClass']('ck-suggestion-marker--active',_0x566029),_0xe2aeea['writer']['removeAttribute']('data-suggestion',_0x566029),_0xe2aeea['mapper']['unbindElementFromMarkerName'](_0x566029,_0x4a9d40['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d0306=this['editor'],_0x919e2b=_0x4d0306['locale'];function _0x592cc5(_0x3fe0be){return{'type':'format','content':o(_0x919e2b,'*Format:*\x20%0',_0x3fe0be)};}_0x4d0306['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c6cec=>{if('formatBlock'!=_0x5c6cec['type'])return;const {data:_0x21ef71}=_0x5c6cec;if(_0x21ef71){if('setTableRowHeader'==_0x21ef71['commandName']){const _0x547bb4=_0x21ef71['commandParams'][0x0]['forceValue'];return _0x592cc5(o(_0x919e2b,_0x547bb4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x21ef71['commandName']){const _0x29939c=_0x21ef71['commandParams'][0x0]['forceValue'];return _0x592cc5(o(_0x919e2b,_0x29939c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x573845{['afterInit'](){const _0x3bbfd2=this['editor'],_0x4660e6=_0x3bbfd2['locale'],_0x40aaa0=_0x3bbfd2['plugins']['get']('TrackChangesEditing');function _0x56fe6e(_0x2051bf){return{'type':'format','content':''+o(_0x4660e6,'*Set\x20table\x20type:*\x20%0',_0x2051bf)};}_0x3bbfd2['plugins']['has']('TableLayout')&&(_0x40aaa0['enableCommand']('insertTableLayout'),_0x40aaa0['enableDefaultAttributesIntegration']('tableType'),_0x40aaa0['registerBlockAttribute']('tableType'),_0x40aaa0['descriptionFactory']['registerElementLabel'](_0xd9044e=>_0xd9044e['is']('element','table')&&'layout'===_0xd9044e['getAttribute']('tableType'),_0x21d8ec=>o(_0x4660e6,'ELEMENT_LAYOUT_TABLE',_0x21d8ec)),_0x40aaa0['descriptionFactory']['registerDescriptionCallback'](_0xa8a549=>{const {data:_0xf53396}=_0xa8a549;if(_0xf53396&&'tableType'==_0xf53396['key'])switch(_0xf53396['newValue']){case'layout':return _0x56fe6e(o(_0x4660e6,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x56fe6e(o(_0x4660e6,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x3b7030=>[_0x3b7030,null]));class Nt extends _0x573845{static get['requires'](){return[At];}['afterInit'](){const _0x46de51=this['editor'];if(!_0x46de51['plugins']['has']('TableClipboard'))return;const _0x4c0795=_0x46de51['plugins']['get']('TrackChangesEditing'),_0x596ed3=_0x46de51['plugins']['get']('TableUtils'),_0x15bac3=_0x46de51['plugins']['get'](At),_0x216afb=_0x46de51['plugins']['get']('TableClipboard'),_0x4e856d=_0x46de51['plugins']['get']('TableSelection'),_0x3fa896=_0x46de51['plugins']['get'](_0x3c134a);_0x15bac3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x46de51['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x46de51['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2bb9c2=null,_0x52227e=!0x1;_0x3fa896['on']('contentInsertion',(_0x5a9fce,_0x1168b3)=>{_0x52227e='paste'===_0x1168b3['method'];}),_0x46de51['model']['on']('insertContent',(_0x26723d,_0x2cd66b)=>{if(!_0x52227e&&null===_0x4e856d['getSelectedTableCells']())return;const [_0x4992af,_0x3f8d79]=_0x2cd66b,_0x56a0b1=_0x2cd66b[_0x2cd66b['length']-0x1];_0x56a0b1&&_0x56a0b1['forceDefaultExecution']||_0x4c0795['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x11505b,_0x1fad52,_0x255b28,_0xc61656,_0x54ead1){if(_0x1fad52&&!_0x1fad52['is']('documentSelection'))return!0x1;const _0x339691=_0x54ead1['getTableIfOnlyTableInContent'](_0x11505b,_0x255b28);if(!_0x339691||!Ue(_0x339691,void 0x0,_0xc61656))return!0x1;const _0x251180=_0xc61656['getSelectionAffectedTableCells'](_0x255b28['document']['selection']);if(!_0x251180['length'])return!0x1;const _0x1a54a8=_0x251180[0x0]['findAncestor']('table'),_0x1aff20=_0xc61656['getRowIndexes'](_0x251180),_0x303522=_0xc61656['getColumnIndexes'](_0x251180),_0x5bf73b={'startRow':_0x1aff20['first'],'endRow':_0x1aff20['last'],'startColumn':_0x303522['first'],'endColumn':_0x303522['last']};return 0x1==_0x251180['length']&&(_0x5bf73b['endRow']+=_0xc61656['getRows'](_0x339691)-0x1,_0x5bf73b['endColumn']+=_0xc61656['getColumns'](_0x339691)-0x1),Ue(_0x1a54a8,_0x5bf73b,_0xc61656);}(_0x4992af,_0x3f8d79,_0x46de51['model'],_0x596ed3,_0x216afb)&&(_0x26723d['stop'](),_0x2bb9c2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x46de51['model']['change'](()=>{_0x46de51['model']['insertContent'](_0x2cd66b[0x0],_0x2cd66b[0x1],_0x2cd66b[0x2],{'forceDefaultExecution':!0x0});const _0x492cc1=_0x334525(),{rowInsertionRanges:_0x597a46,columnInsertionRanges:_0x55047b,insertionRanges:_0x39b61d,deletionRanges:_0x2ddde3,cells:_0x1f1309}=_0x2bb9c2;_0x597a46['length']&&_0x4c0795['markMultiRangeInsertion'](_0x597a46,'tablePasteRow',{'tablePasteChainId':_0x492cc1}),_0x55047b['length']&&_0x4c0795['markMultiRangeInsertion'](_0x55047b,'tablePasteColumn',{'tablePasteChainId':_0x492cc1}),_0x39b61d['length']&&(_0x4c0795['markMultiRangeInsertion'](_0x39b61d,'tablePaste',{'tablePasteChainId':_0x492cc1,'skipNestingCheck':!0x0}),_0x39b61d['forEach'](_0x4b6729=>_0x4b6729['detach']?.())),_0x2ddde3['length']&&(_0x4c0795['markMultiRangeDeletion'](_0x2ddde3,'tablePaste',{'tablePasteChainId':_0x492cc1,'skipNestingCheck':!0x0}),_0x2ddde3['forEach'](_0x52378d=>_0x52378d['detach']?.()));const _0x27f0b0=_0x4c0795['markMultiRangeBlockFormat'](_0x1f1309['map'](({element:_0x4d9d04})=>_0x4d9d04),{'formatGroupId':_0x334525()},[],'tablePasteCell',{'tablePasteChainId':_0x492cc1});if(_0x27f0b0){const _0x5e74b4=_0x27f0b0['getMarkers'](),_0x57f236=[];for(const {element:_0x5b683e,attributes:_0xd55651}of _0x1f1309){if(!_0xd55651)continue;const _0x1f3559=_0x46de51['model']['createRangeOn'](_0x5b683e),_0x249dad=_0x5e74b4['find'](_0x76fcfc=>_0x76fcfc['getRange']()['isEqual'](_0x1f3559));_0x249dad&&_0x57f236['push']([_0x249dad['name'],_0xd55651]);}_0x57f236['length']&&_0x27f0b0['setAttribute']('markerAttributes',Object['fromEntries'](_0x57f236));}_0x2bb9c2=null;}));},{'priority':_0x4aac02['high']+0xa}),_0x3fa896['on']('contentInsertion',()=>{_0x52227e=!0x1;},{'priority':'lowest'}),_0x46de51['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1cbb24,_0x3f5223)=>{const [_0x56054e,_0x13d345,,_0x214d96]=_0x3f5223;if(!_0x2bb9c2)return;_0x1cbb24['stop']();const _0x18ca9b=_0x56054e['cell'],_0x196725=_0x13d345,_0x1b6429=Oe(_0x18ca9b),_0x377e1e=Oe(_0x196725);_0x1cbb24['return']=_0x18ca9b;let _0x3df428=null,_0x36583c=null;if(_0x377e1e||_0x1b6429){if(_0x1b6429&&!_0x377e1e){_0x214d96['remove'](_0x18ca9b['getChild'](0x0));for(const _0x22472f of Array['from'](_0x196725['getChildren']()))_0x214d96['insert'](_0x22472f,_0x18ca9b,'end');const _0x55e48b=_0x2bb9c2['rowInsertionIndexes']['includes'](_0x56054e['row']),_0x4d17b5=_0x2bb9c2['columnInsertionIndexes']['includes'](_0x56054e['column']);_0x55e48b||_0x4d17b5||(_0x3df428=_0x1f4d12['fromRange'](_0x214d96['createRangeIn'](_0x18ca9b)));}else _0x377e1e&&!_0x1b6429&&(_0x36583c=_0x214d96['createRangeIn'](_0x18ca9b));}else{const _0x5a991c=_0x214d96['createElement']('tableCellSuggestion'),_0x5d5277=_0x214d96['createElement']('tableCellSuggestion');_0x214d96['wrap'](_0x214d96['createRangeIn'](_0x18ca9b),_0x5d5277),_0x214d96['insert'](_0x5a991c,_0x18ca9b,0x0);for(const _0x5b7305 of Array['from'](_0x196725['getChildren']()))_0x214d96['insert'](_0x5b7305,_0x5a991c,'end');_0x3df428=_0x1f4d12['fromRange'](_0x214d96['createRangeOn'](_0x5a991c)),_0x36583c=_0x1f4d12['fromRange'](_0x214d96['createRangeOn'](_0x5d5277));}const _0x3f0584=Array['from'](_0x196725['getAttributes']())['filter'](([_0x1ed112])=>Be['includes'](_0x1ed112));_0x2bb9c2['cells']['push']({'element':_0x18ca9b,'attributes':_0x3f0584['length']?Object['fromEntries'](_0x3f0584):null}),_0x3df428&&_0x2bb9c2['insertionRanges']['push'](_0x3df428),_0x36583c&&_0x2bb9c2['deletionRanges']['push'](_0x36583c);},{'priority':'high'}),_0x596ed3['on']('insertColumns',(_0x5d6b75,_0x555c8b)=>{const [_0x1994d5,_0x19115d={}]=_0x555c8b;if(!_0x2bb9c2)return;const _0x3f4280=_0x19115d['at']||0x0,_0x95ec70=_0x19115d['columns']||0x1;_0x2bb9c2['columnInsertionIndexes']=new Array(_0x95ec70)['fill'](_0x3f4280)['map']((_0x183738,_0x5436c6)=>_0x183738+_0x5436c6);for(const {cell:_0x3fff23}of _0x596ed3['createTableWalker'](_0x1994d5,{'startColumn':_0x3f4280,'endColumn':_0x3f4280+_0x95ec70-0x1}))_0x2bb9c2['columnInsertionRanges']['push'](_0x46de51['model']['createRangeOn'](_0x3fff23));},{'priority':'low'}),_0x596ed3['on']('insertRows',(_0x4ef561,_0x48b5e7)=>{const [_0x384c12,_0x20c97a={}]=_0x48b5e7;if(!_0x2bb9c2)return;const _0x5be653=_0x20c97a['at']||0x0,_0x2cd0d3=_0x20c97a['rows']||0x1;_0x2bb9c2['rowInsertionIndexes']=new Array(_0x2cd0d3)['fill'](_0x5be653)['map']((_0x40c461,_0x30142c)=>_0x40c461+_0x30142c);for(const {cell:_0x46b0af}of _0x596ed3['createTableWalker'](_0x384c12,{'startRow':_0x5be653,'endRow':_0x5be653+_0x2cd0d3-0x1}))_0x2bb9c2['rowInsertionRanges']['push'](_0x46de51['model']['createRangeOn'](_0x46b0af));},{'priority':'low'}),_0x4c0795['descriptionFactory']['registerDescriptionCallback'](_0x593f76=>{if(_0x593f76['subType']&&_0x593f76['subType']['startsWith']('tablePaste'))return _0x593f76['previous']?{}:{'type':'insertion','content':o(_0x46de51['locale'],'*Replace\x20table\x20cells*')};});const _0x2d149c=()=>!0x1;for(const _0x2209fd of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4c0795['_suggestionFactory']['registerCustomCallback']('insertion',_0x2209fd,'join',_0x2d149c),_0x4c0795['_suggestionFactory']['registerCustomCallback']('deletion',_0x2209fd,'join',_0x2d149c),_0x4c0795['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2209fd,'join',_0x2d149c);_0x4c0795['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2d149c),_0x4c0795['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x49fb70,_0x1f00a4,_0x4c786e)=>{const _0x9fbd8a=_0x49fb70['map'](_0xe13eff=>_0xe13eff['getContainedElement']())['filter'](_0x5f3af8=>_0x5f3af8),_0x4a78a6=new Map(_0x9fbd8a['map'](_0x1100c1=>[_0x1100c1,null]));if(_0x2bb9c2){for(const {element:_0xfb6a32,attributes:_0x55387c}of _0x2bb9c2['cells'])_0x55387c&&_0x4a78a6['set'](_0xfb6a32,_0x55387c);}else{if(_0x4c786e&&_0x4c786e['markerAttributes'])for(const [_0x25df77,_0xde2c45]of Object['entries'](_0x4c786e['markerAttributes'])){const _0x59ab5c=_0x46de51['model']['markers']['get'](_0x25df77),_0x2f8be9=_0x59ab5c?_0x59ab5c['getRange']()['getContainedElement']():null;_0x2f8be9&&_0x4a78a6['set'](_0x2f8be9,_0xde2c45);}}_0x46de51['model']['change'](_0xa12ef9=>{for(const [_0x5aac49,_0x38c894]of _0x4a78a6)_0xa12ef9['setAttributes']({...xe,..._0x38c894},_0x5aac49);});});const _0x2da80d=(_0x43aa50,_0x4ad01c)=>{_0x4c0795['_suggestionFactory']['registerCustomCallback'](_0x43aa50,'tablePaste',_0x4ad01c,(_0x358233,_0x210f94,_0x2eaa8f)=>{_0x46de51['model']['change'](_0x536246=>{const _0x2213b4=[];for(const _0x15f353 of _0x358233){const _0x48049a=_0x15f353['start']['nodeAfter'];_0x48049a['is']('element','tableCellSuggestion')&&_0x2213b4['push'](_0x48049a);}_0x4c0795['_suggestionFactory']['getSuggestionCallback'](_0x43aa50,null,_0x4ad01c)(_0x358233,_0x210f94,_0x2eaa8f);for(const _0x5c14ea of _0x2213b4)'$graveyard'!=_0x5c14ea['root']['rootName']&&_0x536246['unwrap'](_0x5c14ea);});});};_0x2da80d('insertion','accept'),_0x2da80d('insertion','discard'),_0x2da80d('deletion','accept'),_0x2da80d('deletion','discard'),_0x4c0795['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1ffdeb=>{const _0x3feabb=_0x1ffdeb['map'](_0x48e478=>_0x48e478['getContainedElement']()),_0x336754=_0x3feabb[0x0]['findAncestor']('table'),{minRow:_0xa9811,maxRow:_0x2e7926}=_0x15bac3['_getCoordsForCells'](_0x3feabb);_0x596ed3['removeRows'](_0x336754,{'at':_0xa9811,'rows':_0x2e7926-_0xa9811+0x1});}),_0x4c0795['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4c72da=>{const _0x2b8be5=_0x4c72da['map'](_0x313c36=>_0x313c36['getContainedElement']()),_0x142153=_0x2b8be5[0x0]['findAncestor']('table'),{minColumn:_0x23d86d,maxColumn:_0x2db0d2}=_0x15bac3['_getCoordsForCells'](_0x2b8be5);_0x596ed3['removeColumns'](_0x142153,{'at':_0x23d86d,'columns':_0x2db0d2-_0x23d86d+0x1});});const _0x54fb76=(_0x4145f0,_0x740bac)=>{if(!_0x740bac['subType']||!_0x740bac['subType']['startsWith']('tablePaste'))return;const _0x33aea7=_0x740bac['attributes']['tablePasteChainId'],_0x591a4c=_0x4c0795['getSuggestions']()['filter'](_0x4f2c5d=>_0x4f2c5d['isInContent']&&_0x4f2c5d['attributes']&&_0x4f2c5d['attributes']['tablePasteChainId']==_0x33aea7);_0x591a4c['length']&&_0x740bac['getAllAdjacentSuggestions']()['length']!=_0x591a4c['length']&&_0x591a4c['reduce']((_0x96b91d,_0x36c7b2)=>(_0x96b91d['next']=_0x36c7b2,_0x36c7b2['previous']=_0x96b91d,_0x36c7b2));};function _0x3b0e6b(_0x3103d9,_0x3c9c07=!0x0){const {id:_0x32b51c,authorId:_0x2149ec}=_0x4c0795['_splitMarkerName'](_0x3103d9['markerName']),_0x28ee20=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1a835d=_0x4c0795['activeMarkers']['includes'](_0x3103d9['markerName']);return _0x1a835d&&_0x28ee20['push']('ck-suggestion-marker--active'),{'classes':_0x28ee20,'attributes':{'data-suggestion':_0x32b51c,'data-author-id':_0x2149ec},'priority':_0x1a835d&&_0x3c9c07?0xbc2:0xbb8};}_0x4c0795['on']('suggestionLoaded',_0x54fb76,{'priority':'high'}),_0x4c0795['on']('suggestionUnloaded',_0x54fb76,{'priority':'high'}),_0x46de51['model']['document']['registerPostFixer'](()=>{let _0xea288d=!0x1;const _0x523344=Array['from'](_0x46de51['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x502f3b,data:_0x363ec8}of _0x523344){const {group:_0x54c11b,type:_0x29e9ff,id:_0x1bd0d0}=_0x4c0795['_splitMarkerName'](_0x502f3b);if('suggestion'!=_0x54c11b||'deletion'!=_0x29e9ff||_0x363ec8['oldRange'])continue;if(!_0x4c0795['hasSuggestion'](_0x1bd0d0))continue;const _0x447278=_0x4c0795['getSuggestion'](_0x1bd0d0)['getRanges'](),_0x7fba5e=_0x46de51['plugins']['get']('Users')['me'];for(const _0x4808ff of _0x4c0795['getSuggestions']()){if(!_0x4808ff['isInContent']||_0x4808ff['author']!=_0x7fba5e)continue;if('formatBlock'!=_0x4808ff['type']||'tablePasteCell'!=_0x4808ff['subType'])continue;if(_0x4808ff['getRanges']()['every'](_0x3e715b=>_0x447278['some'](_0x38ff89=>_0x38ff89['containsRange'](_0x3e715b,!0x0)))){for(const _0x59c728 of _0x4808ff['getAllAdjacentSuggestions']())_0x59c728['isInContent']&&(_0x59c728['discard'](),_0xea288d=!0x0);}}}return _0xea288d;}),_0x46de51['model']['document']['registerPostFixer'](_0x1bdb1b=>{const _0x1c4495=_0x46de51['commands']['get']('redo');if(!_0x1c4495||!_0x1c4495['_createdBatches']['has'](_0x1bdb1b['batch']))return!0x1;let _0x38a759=!0x1;const _0x28a2cd=_0x46de51['plugins']['get']('Users')['me'],_0x20131d=_0x46de51['model']['document']['differ']['getChanges'](),_0x4b1216=Array['from'](_0x46de51['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x565b6e,data:_0xa807bc})=>{const {group:_0xdc2015,subType:_0x3dac5b,authorId:_0x2897c3}=_0x4c0795['_splitMarkerName'](_0x565b6e);return'suggestion'==_0xdc2015&&'tablePaste'==_0x3dac5b&&_0x2897c3==_0x28a2cd['id']&&!_0xa807bc['oldRange'];});for(const _0x6f92e1 of _0x20131d){if('insert'!=_0x6f92e1['type']||'tableCellSuggestion'!=_0x6f92e1['name']||0x1!=_0x6f92e1['length'])continue;const _0x223b6c=_0x1bdb1b['createRange'](_0x6f92e1['position'],_0x6f92e1['position']['getShiftedBy'](0x1));if(!_0x4b1216['find'](({data:_0x35b5c1})=>_0x35b5c1['newRange']['isEqual'](_0x223b6c))){for(const {name:_0x205f21,data:_0x1a7517}of _0x4b1216)if(_0x223b6c['containsRange'](_0x1a7517['newRange'])){_0x1bdb1b['updateMarker'](_0x205f21,{'range':_0x223b6c}),_0x38a759=!0x0;break;}}}return _0x38a759;}),_0x46de51['model']['document']['registerPostFixer'](_0x2cf92f=>{let _0x589974=!0x1;const _0x52fb8c=_0x46de51['plugins']['get']('Users')['me'],_0x362990=_0x4c0795['getSuggestions']()['filter'](_0x5b6e12=>_0x5b6e12['isInContent']&&_0x5b6e12['author']==_0x52fb8c),_0x18f1b9=new Set(),_0x24823f=new Set();for(const _0x5524fb of _0x362990)if('tablePaste'==_0x5524fb['subType'])for(const _0x4778a1 of _0x5524fb['getMarkers']()){const _0x148cc3=_0x4778a1['getRange']()['getContainedElement']();if(_0x148cc3){if(_0x148cc3['is']('element','tableCellSuggestion')&&Oe(_0x148cc3)){_0x5524fb['removeMarker'](_0x4778a1['name']),_0x18f1b9['add'](_0x148cc3),_0x589974=!0x0;const _0x5a8a9d=_0x148cc3['nextSibling'],_0x171c1d=_0x148cc3['previousSibling'],_0x1cfc95=_0x5a8a9d&&_0x5a8a9d['is']('element','tableCellSuggestion'),_0x1d52f7=_0x171c1d&&_0x171c1d['is']('element','tableCellSuggestion');_0x1cfc95&&!_0x18f1b9['has'](_0x5a8a9d)&&_0x24823f['add'](_0x5a8a9d),_0x1d52f7&&!_0x18f1b9['has'](_0x171c1d)&&_0x24823f['add'](_0x171c1d);}else _0x148cc3['is']('element','paragraph')&&_0x148cc3['isEmpty']&&(_0x5524fb['removeMarker'](_0x4778a1['name']),_0x589974=!0x0);}}else{if('tablePasteCell'==_0x5524fb['subType']){if(!_0x5524fb['attributes']||!_0x5524fb['attributes']['tablePasteChainId'])continue;const _0x4a1cfe=_0x5524fb['attributes']['markerAttributes'];if(_0x4a1cfe&&Object['keys'](_0x4a1cfe)['length'])continue;const _0x28afac=_0x5524fb['attributes']['tablePasteChainId'];let _0xe0a91e=!0x0,_0x28d1e3=!0x0;for(const _0x56f4b3 of _0x362990)if(_0x56f4b3['subType']&&_0x56f4b3['subType']['startsWith']('tablePaste')){if(!_0x56f4b3['attributes']['tablePasteChainId']){_0x28d1e3=!0x1;break;}if(_0x56f4b3['id']!=_0x5524fb['id']&&_0x56f4b3['attributes']['tablePasteChainId']==_0x28afac){_0xe0a91e=!0x1;break;}}_0x28d1e3&&_0xe0a91e&&(_0x5524fb['removeMarkers'](),_0x589974=!0x0);}}for(const _0x52dc26 of _0x18f1b9)_0x2cf92f['remove'](_0x52dc26);for(const _0x3864a0 of _0x24823f)_0x2cf92f['unwrap'](_0x3864a0);return _0x589974;}),_0x46de51['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1e72be=>_0x3b0e6b(_0x1e72be),'converterPriority':'high'}),_0x46de51['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x519aeb,_0xe9951f)=>_0xe9951f['options']['showSuggestionHighlights']?_0x3b0e6b(_0x519aeb,!0x1):null,'converterPriority':'high'});const _0x5504bd=_0x46de51['editing']['view'];this['listenTo'](_0x5504bd['document'],'clipboardOutput',(_0x5e6e06,_0x141b7f)=>{const _0xba708b=[];for(const _0x33fb04 of _0x5504bd['createRangeIn'](_0x141b7f['content'])['getItems']())_0x33fb04['is']('element','suggestion-td')&&_0xba708b['push'](_0x33fb04);_0x5504bd['change'](_0x2c906e=>{for(const _0x80e0fb of _0xba708b)_0x2c906e['move'](_0x2c906e['createRangeIn'](_0x80e0fb),_0x2c906e['createPositionBefore'](_0x80e0fb)),_0x2c906e['remove'](_0x80e0fb);});});}}function Oe(_0x33fcbe){if(_0x33fcbe['isEmpty'])return!0x0;const _0x81f6e6=_0x33fcbe['getChild'](0x0);return _0x81f6e6['is']('element','paragraph')&&_0x81f6e6['isEmpty'];}function Ue(_0x54364e,_0x31035a={},_0x2610b9){for(const {isAnchor:_0x33bd58,cellHeight:_0x3224d0,cellWidth:_0x1df04a}of _0x2610b9['createTableWalker'](_0x54364e,{'includeAllSlots':!0x0,..._0x31035a}))if(!_0x33bd58||0x1!=_0x3224d0||0x1!=_0x1df04a)return!0x1;return!0x0;}class Dt extends _0x573845{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x34df0f=this['editor']['plugins']['get']('TrackChangesEditing');_0x34df0f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x34df0f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x34df0f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34df0f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x34df0f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x34df0f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x428ff1,_0x49bc7c){const _0x10d8c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x169e90=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x54f05b=_0x49bc7c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x40b411=_0x169e90['getColumnGroupElement'](_0x54f05b);let _0x466d97=_0x40b411?_0x169e90['getTableColumnsWidths'](_0x40b411):null,_0x2b0289=_0x54f05b['getAttribute']('tableWidth')||null;const _0x5c3506=_0x49bc7c['tableWidth']||_0x2b0289,_0x4327f9=_0x49bc7c['columnWidths']||_0x466d97,_0x440f9c=this['editor']['plugins']['get']('Users')['me'];for(const _0x31aa6d of _0x10d8c0['getSuggestions']()){const _0x1a9672=_0x31aa6d['getContainedElement']();if('resizeTable'===_0x31aa6d['subType']&&_0x1a9672===_0x54f05b){_0x31aa6d['author']!==_0x440f9c&&_0x31aa6d['discard']();const _0x5072fb=_0x31aa6d['data']['commandParams'];_0x2b0289=_0x5072fb[0x0]['tableWidth'],_0x466d97=_0x5072fb[0x0]['columnWidths'];break;}}_0x428ff1({'table':_0x54f05b,'tableWidth':_0x5c3506,'columnWidths':_0x4327f9}),_0x10d8c0['markBlockFormat'](_0x54f05b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2b0289,'columnWidths':_0x466d97}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x34d242){if('formatBlock'!=_0x34d242['type']&&'formatInline'!=_0x34d242['type'])return;const {data:_0x45dca2}=_0x34d242;if(_0x45dca2&&'resizeTable'===_0x45dca2['formatGroupId']){const _0x2e35f5='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2e35f5)};}}}class $t extends _0x573845{['afterInit'](){const _0x499026=this['editor'];_0x499026['plugins']['has']('Template')&&_0x499026['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x573845{['afterInit'](){const _0x46cc54=this['editor'];if(!_0x46cc54['commands']['get']('insertTableOfContents'))return;_0x46cc54['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4e34d6=_0x46cc54['plugins']['get']('TrackChangesEditing'),_0x52aa67=_0x46cc54['locale'];_0x4e34d6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4dd6bb=>o(_0x52aa67,'ELEMENT_TABLE_OF_CONTENTS',_0x4dd6bb));}}class Bt extends _0x573845{['afterInit'](){const _0x34df23=this['editor'];if(!_0x34df23['plugins']['has']('Title'))return;const _0x536ba3=_0x34df23['plugins']['get']('TrackChangesEditing');_0x536ba3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x34df23['locale'],'ELEMENT_TITLE')),_0x34df23['model']['document']['registerPostFixer'](_0x352d09=>{let _0x37c487=!0x1;const _0x4ff3e=Array['from'](_0x34df23['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19f00b,data:_0x1a71f1}of _0x4ff3e){const {group:_0x3e5312}=_0x536ba3['_splitMarkerName'](_0x19f00b);if('suggestion'!==_0x3e5312||!_0x1a71f1['newRange'])continue;const _0x10d46b=_0x1a71f1['newRange'],_0x11cc60=_0x10d46b['end']['nodeBefore'];if(!_0x11cc60||!_0x11cc60['is']('element','title-content'))continue;if(!_0x10d46b['start']['isTouching'](_0x10d46b['end']))continue;const _0x8b9bd4=_0x34df23['model']['schema']['getNearestSelectionRange'](_0x10d46b['end'],'forward');if(_0x8b9bd4&&_0x8b9bd4['isCollapsed']){const _0x2bb959=_0x352d09['createRange'](_0x10d46b['start'],_0x8b9bd4['start']);_0x2bb959['isEqual'](_0x10d46b)||(_0x352d09['updateMarker'](_0x19f00b,{'range':_0x2bb959}),_0x37c487=!0x0);}_0x37c487||(_0x352d09['removeMarker'](_0x19f00b),_0x37c487=!0x0);}return _0x37c487;});}}class Tt extends _0x573845{['afterInit'](){const _0x6a755d=this['editor'],_0x4805b1=_0x6a755d['plugins']['get']('TrackChangesEditing');_0x6a755d['plugins']['has']('Uploadcare')&&(_0x4805b1['enableCommand']('uploadcare'),_0x6a755d['plugins']['has']('UploadcareImageEdit')&&(_0x4805b1['enableCommand']('uploadcareImageEdit'),_0x4805b1['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4805b1['registerBlockAttribute']('uploadcareImageId'),_0x4805b1['descriptionFactory']['registerDescriptionCallback'](_0x25814e=>{if('attribute'!=_0x25814e['type'])return;const {data:_0x29adfd}=_0x25814e;return _0x29adfd&&'uploadcareImageId'==_0x29adfd['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x573845{['afterInit'](){const _0x2985ec=this['editor'],_0x15f178=_0x2985ec['plugins']['get']('TrackChangesEditing');_0x2985ec['plugins']['has']('UndoEditing')&&(_0x15f178['enableCommand']('undo'),_0x15f178['enableCommand']('redo'));}}class Ot extends _0x573845{static get['requires'](){return[At];}['afterInit'](){const _0x44a2c6=this['editor'];if(!_0x44a2c6['plugins']['has']('TableCaptionEditing'))return;_0x44a2c6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x573845{['tableProperties'];['tableCellProperties'];constructor(_0x20959d){super(_0x20959d),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 _0x28b3ee=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2500ab of this['tableProperties'])_0x28b3ee['enableCommand'](_0x2500ab,(_0x4b5fda,_0x5ec255)=>{const _0x510d92=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2500ab,[_0x510d92],this['tableProperties'],'tableProperties',_0x4b5fda,_0x5ec255);});_0x28b3ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x28b3ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28b3ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4ead93,_0x148769)=>this['handleDiscardAction'](this['tableProperties'],_0x4ead93,_0x148769)),_0x28b3ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x581bf0 of this['tableCellProperties'])_0x28b3ee['enableCommand'](_0x581bf0,(_0x220df9,_0x8ee12b)=>{const _0x203959=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x581bf0,_0x203959,this['tableCellProperties'],'tableCellProperties',_0x220df9,_0x8ee12b);});_0x28b3ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x28b3ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28b3ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x354c0d,_0x2d496a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x354c0d,_0x2d496a)),_0x28b3ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x28b3ee['descriptionFactory']['registerDescriptionCallback'](_0x2dde60=>this['handleSuggestionDescription'](_0x2dde60)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x12b43b,_0x2c6263,_0x1d2be7,_0x449c5d,_0x3e895d,_0x2cd4d8){const _0x55056e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2cd4d8['batch'],()=>{for(const _0x66e83e of _0x2c6263){if(this['_getSuggestion'](_0x66e83e,_0x449c5d))_0x3e895d(_0x2cd4d8);else{const _0x44b0dd={};for(const _0x1fdbc3 of _0x1d2be7){const _0x4210c7=_0x66e83e['getAttribute'](_0x1fdbc3);void 0x0!==_0x4210c7&&(_0x44b0dd[_0x1fdbc3]=_0x4210c7);}_0x3e895d(_0x2cd4d8),_0x55056e['markBlockFormat'](_0x66e83e,{'commandParams':[_0x44b0dd]},[],_0x449c5d);}}});}['handleDiscardAction'](_0xac384c,_0x292804,_0x15622b){const _0x5a3813=_0x292804[0x0]['start']['nodeAfter'],_0x478b5a=_0x15622b['commandParams'][0x0];this['editor']['model']['change'](_0x2075f0=>{for(const _0x2f348f of _0xac384c)void 0x0!==_0x478b5a[_0x2f348f]?_0x2075f0['setAttribute'](_0x2f348f,_0x478b5a[_0x2f348f],_0x5a3813):_0x2075f0['removeAttribute'](_0x2f348f,_0x5a3813);});}['handleSuggestionDescription'](_0x16bba7){if(_0x16bba7['data'])switch(_0x16bba7['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x2e4346,_0x1f3967){const _0x468177=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x49ed06 of _0x468177['getSuggestions']({'skipNotAttached':!0x0})){const _0x48fcfe=_0x49ed06['getContainedElement']();if(_0x49ed06['subType']===_0x1f3967&&_0x48fcfe===_0x2e4346)return _0x49ed06;}return null;}['_registerTablePropertiesAttributes'](){const _0xff3806=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d2878=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4af561 of _0x5d2878){const _0x1ae2a7=_0x4af561['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xff3806['registerBlockAttribute'](_0x4af561),_0xff3806['descriptionFactory']['registerAttributeLabel'](_0x4af561,o(this['editor']['locale'],'FORMAT_'+_0x1ae2a7));}}}class Rt extends _0x573845{['afterInit'](){const _0x46aa93=this['editor'];if(!_0x46aa93['plugins']['has']('LineHeight'))return;const _0x331fde=_0x46aa93['plugins']['get']('TrackChangesEditing'),_0x964628=_0x46aa93['locale'];_0x331fde['enableDefaultAttributesIntegration']('lineHeight'),_0x331fde['registerBlockAttribute']('lineHeight'),_0x331fde['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x964628,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x573845{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x339440,_0x36c5c9,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f7e2e){super(_0x2f7e2e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xe66019,_0x1c51cc,_0x577376,_0x347e68)=>{this['_model']['change'](()=>{for(const _0x3c600f of[..._0x347e68,..._0x577376])this['_model']['markers']['has'](_0x3c600f)&&_0x2f7e2e['editing']['reconvertMarker'](_0x3c600f);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2f7e2e['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x2f7e2e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2f7e2e['config']['get']('trackChanges.trackFormatChanges'),_0x2f7e2e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2f7e2e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x2f7e2e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x37f20f=this['editor'],_0x210b0f=(_0x3ef72f,_0x40d008)=>{if('attribute'!=_0x3ef72f)return'ck-suggestion-marker-'+_0x3ef72f;const _0x38cee4=_0x40d008['split']('|')[0x0];return this['_isBlockAttribute'](_0x38cee4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x37f20f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x43961a=>{const {id:_0x1e9f96,authorId:_0xa0a219,type:_0x3bbf48,subType:_0x34081e}=this['_splitMarkerName'](_0x43961a['markerName']),_0x4bbe43=['ck-suggestion-marker',_0x210b0f(_0x3bbf48,_0x34081e)];let _0x5debfa=0xbb8;return this['activeMarkers']['includes'](_0x43961a['markerName'])&&(_0x4bbe43['push']('ck-suggestion-marker--active'),_0x5debfa=0xbc2),'deletion'==_0x3bbf48&&(_0x5debfa+=0x5),{'classes':_0x4bbe43,'attributes':{'data-suggestion':_0x1e9f96,'data-author-id':_0xa0a219},'priority':_0x5debfa};}}),_0x37f20f['conversion']['for']('dataDowncast')['add'](_0x812989=>{_0x812989['on']('addMarker:suggestion',(_0x344dec,_0x366e2a,_0xc284a9)=>{if(!_0xc284a9['options']['showSuggestionHighlights'])return;const _0x1871f4=_0x366e2a['item'];if(!_0x1871f4)return;const _0x5116fa=_0xc284a9['mapper']['toViewElement'](_0x1871f4);_0x37f20f['model']['schema']['isObject'](_0x1871f4)&&_0x5116fa&&!_0x5116fa['getCustomProperty']('widget')&&_0x5116fa['is']('containerElement')&&_0x48680d(_0x5116fa,_0xc284a9['writer']);},{'priority':'high'});}),_0x37f20f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x146aaf,_0x5d3ddc)=>{if(!_0x5d3ddc['options']['showSuggestionHighlights'])return null;const {id:_0x487e99,authorId:_0x7ce6e3,type:_0x158546,subType:_0x155c51}=this['_splitMarkerName'](_0x146aaf['markerName']);return{'classes':['ck-suggestion-marker',_0x210b0f(_0x158546,_0x155c51)],'priority':0xbb8,'attributes':{'data-suggestion':_0x487e99,'data-author-id':_0x7ce6e3}};}});const _0x3fd509=({showActiveMarkers:_0x43e616=!0x0,isAttributeSuggestion:_0x5d13eb=!0x1}={})=>(_0x1c8708,_0x30acdc,_0x19feea)=>{if(!_0x30acdc['item'])return;const {id:_0x3a99d4,authorId:_0x30ffe9}=this['_splitMarkerName'](_0x30acdc['markerName']);if(_0x5d13eb){const _0x4d6e6b=this['_suggestions']['get'](_0x3a99d4),_0x11d8e9=this['_getAttributeKey'](_0x4d6e6b);if(!this['_isBlockAttribute'](_0x11d8e9))return;}if(_0x30acdc['item']['is']('selection'))return void _0x19feea['consumable']['consume'](_0x30acdc['item'],_0x1c8708['name']);const _0x458d77=_0x19feea['mapper']['toViewElement'](_0x30acdc['item']);if(_0x30acdc['item']['is']('element')&&_0x37f20f['model']['schema']['isBlock'](_0x30acdc['item'])&&!_0x458d77['getCustomProperty']('addHighlight')){_0x19feea['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x458d77),_0x19feea['writer']['setAttribute']('data-suggestion',_0x3a99d4,_0x458d77),_0x19feea['writer']['setAttribute']('data-author-id',_0x30ffe9,_0x458d77),_0x19feea['mapper']['bindElementToMarker'](_0x458d77,_0x30acdc['markerName']),_0x43e616&&(this['activeMarkers']['includes'](_0x30acdc['markerName'])?_0x19feea['writer']['addClass']('ck-suggestion-marker--active',_0x458d77):_0x19feea['writer']['removeClass']('ck-suggestion-marker--active',_0x458d77));for(const _0x5708a6 of _0x37f20f['model']['createRangeIn'](_0x30acdc['item'])['getItems']())_0x19feea['consumable']['consume'](_0x5708a6,_0x1c8708['name']);_0x19feea['consumable']['consume'](_0x30acdc['item'],_0x1c8708['name']);}};_0x37f20f['conversion']['for']('dataDowncast')['add'](_0xb4127b=>{_0xb4127b['on']('addMarker:suggestion:formatBlock',(_0x6246ba,_0x597974,_0x633b3f)=>{_0x633b3f['options']['showSuggestionHighlights']&&_0x3fd509({'showActiveMarkers':!0x1})(_0x6246ba,_0x597974,_0x633b3f);},{'priority':'highest'});}),_0x37f20f['conversion']['for']('dataDowncast')['add'](_0x324f01=>{_0x324f01['on']('addMarker:suggestion:attribute',(_0x5159d6,_0x5b10f2,_0x547f97)=>{_0x547f97['options']['showSuggestionHighlights']&&_0x3fd509({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5159d6,_0x5b10f2,_0x547f97);},{'priority':'highest'});}),_0x37f20f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x22f164,_0xc6a275)=>{if(_0xc6a275['options']['showSuggestionHighlights']){const {id:_0xb3a60,authorId:_0x4c549c}=this['_splitMarkerName'](_0x22f164);return _0x22f164['includes'](':split')||_0x22f164['includes'](':merge')?{'group':'suggestion','name':_0x22f164['substr'](0xb),'attributes':{'data-suggestion':_0xb3a60,'data-author-id':_0x4c549c}}:null;}return{'group':'suggestion','name':_0x22f164['substr'](0xb)};}}),_0x37f20f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4dfe38,{writer:_0x101fee})=>{let _0x2feef1='suggestion:'+_0x4dfe38['getAttribute']('suggestion-type')+':'+_0x4dfe38['getAttribute']('id');return _0x4dfe38['getAttribute']('marker-count')&&(_0x2feef1+=':'+_0x4dfe38['getAttribute']('marker-count')),_0x101fee['createElement']('$marker',{'data-name':_0x2feef1});}}),_0x37f20f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x37f20f['conversion']['for']('editingDowncast')['add'](_0x49303a=>{_0x49303a['on']('addMarker:suggestion:formatBlock',_0x3fd509(),{'priority':'high'});}),_0x37f20f['conversion']['for']('editingDowncast')['add'](_0x11a4a7=>{_0x11a4a7['on']('addMarker:suggestion:attribute',_0x3fd509({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x37f20f['conversion']['for']('editingDowncast')['add'](_0x348ca8=>{_0x348ca8['on']('removeMarker:suggestion:formatBlock',(_0x38df0d,_0x3c0a72,_0x596b7c)=>{const _0x5842ab=_0x596b7c['mapper']['markerNameToElements'](_0x3c0a72['markerName']);if(_0x5842ab){for(const _0x47397b of _0x5842ab)_0x47397b['getCustomProperty']('addHighlight')||(_0x596b7c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x47397b),_0x596b7c['writer']['removeAttribute']('data-suggestion',_0x47397b),_0x596b7c['writer']['removeAttribute']('data-author-id',_0x47397b),_0x596b7c['mapper']['unbindElementFromMarkerName'](_0x47397b,_0x3c0a72['markerName']));}},{'priority':'high'});}),_0x37f20f['conversion']['for']('editingDowncast')['add'](_0xe8c89=>{_0xe8c89['on']('removeMarker:suggestion:attribute',(_0x459218,_0x4e3713,_0x5b519d)=>{const _0x168238=_0x5b519d['mapper']['markerNameToElements'](_0x4e3713['markerName']);if(!_0x168238)return;const {id:_0x1b8113}=this['_splitMarkerName'](_0x4e3713['markerName']),_0x44eed1=this['_suggestions']['get'](_0x1b8113),_0xc3b054=this['_getAttributeKey'](_0x44eed1);if(this['_isBlockAttribute'](_0xc3b054)){for(const _0x211c1c of _0x168238)_0x211c1c['getCustomProperty']('addHighlight')||(_0x5b519d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x211c1c),_0x5b519d['writer']['removeAttribute']('data-suggestion',_0x211c1c),_0x5b519d['writer']['removeAttribute']('data-author-id',_0x211c1c),_0x5b519d['mapper']['unbindElementFromMarkerName'](_0x211c1c,_0x4e3713['markerName']));}},{'priority':'high'});}),_0x37f20f['model']['document']['registerPostFixer'](_0x3665bb=>{let _0x34c043=!0x1;const _0x1282a9=Array['from'](_0x37f20f['model']['document']['differ']['getChangedMarkers']()),_0x3e19ab=new Set();for(const {name:_0x6bc3fb,data:_0x387b7e}of _0x1282a9){const {group:_0x306a85,type:_0xb118c8,subType:_0xe5b60d,id:_0x441e5d}=this['_splitMarkerName'](_0x6bc3fb);if('suggestion'!==_0x306a85)continue;const _0x5cd2a2=_0xe5b60d?'suggestion:'+_0xb118c8+':'+_0xe5b60d+':'+_0x441e5d:'suggestion:'+_0xb118c8+':'+_0x441e5d,_0x3affc0=_0x37f20f['model']['markers']['getMarkersGroup'](_0x5cd2a2),_0x4394d4=_0x37f20f['model']['markers']['get'](_0x6bc3fb),_0x4a6a1f=this['_suggestions']['get'](_0x441e5d);if(null!=_0x387b7e['newRange']){'formatInline'==_0xb118c8&&(_0x34c043=_0x34c043||Gt(_0x387b7e['newRange'],_0x6bc3fb,_0x3665bb,_0x37f20f['model']['schema']));const _0x577b79='attribute'==_0xb118c8&&this['_isBlockAttribute'](_0xe5b60d['split']('|')[0x0]),_0x24dbdf='attribute'==_0xb118c8&&this['_isInlineAttribute'](_0xe5b60d['split']('|')[0x0]);if(_0x387b7e['newRange']['isCollapsed']||'$graveyard'==_0x387b7e['newRange']['root']['rootName']||'formatBlock'==_0xb118c8&&!Jt(_0x387b7e['newRange'])||_0x577b79&&!Jt(_0x387b7e['newRange'])||_0x24dbdf&&Kt(_0x387b7e['newRange'])||'deletion'==_0xb118c8&&Kt(_0x387b7e['newRange'])||_0x4394d4&&Ht(_0x4394d4,_0x3affc0))_0x3665bb['removeMarker'](_0x6bc3fb),_0x34c043=!0x0;else{if(!_0x4a6a1f||!_0x4a6a1f['isInContent'])continue;if(_0x387b7e['newRange']&&_0x387b7e['oldRange']&&_0x387b7e['newRange']['isEqual'](_0x387b7e['oldRange']))continue;_0x3e19ab['add'](_0x4a6a1f);}}}return _0x3e19ab['size']>0x0&&(_0x34c043=!!this['_joinWithAdjacentSuggestions'](_0x3e19ab)||_0x34c043),_0x34c043;}),_0x37f20f['model']['document']['registerPostFixer'](_0x1959b2=>{let _0x5a9838=!0x1;for(const _0x305cf3 of _0x37f20f['model']['document']['differ']['getChanges']())if('insert'==_0x305cf3['type'])for(const _0x5a449d of this['_suggestions']['values']()){if(_0x5a449d['isMultiRange']||!_0x5a449d['isInContent'])continue;const _0x2af51d='formatBlock'==_0x5a449d['type'],_0x1c1519=this['_getAttributeKey'](_0x5a449d),_0x3d5d23=_0x1c1519&&this['_isBlockAttribute'](_0x1c1519);if(!_0x2af51d&&!_0x3d5d23)continue;const _0x3f6245=_0x5a449d['getFirstRange']();if(_0x3f6245['start']['parent']!=_0x3f6245['end']['parent']&&!_0x3f6245['end']['isAtEnd']){const _0x545d35=_0x37f20f['model']['createPositionAt'](_0x3f6245['start']['nodeAfter'],'end'),_0x4ededa=_0x37f20f['model']['createRange'](_0x3f6245['start'],_0x545d35);_0x1959b2['updateMarker'](_0x5a449d['getFirstMarker'](),{'range':_0x4ededa}),_0x5a9838=!0x0;}}return _0x5a9838;}),_0x37f20f['model']['document']['registerPostFixer'](_0x34b248=>this['_processAttributeChanges'](_0x34b248)),_0x37f20f['model']['document']['registerPostFixer'](_0x2453ab=>!_0x2453ab['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2453ab)),_0x37f20f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x37f20f['model']['document']['on']('change:data',(_0xd58c77,_0xa33d33)=>{if(!_0xa33d33['isLocal']||_0xa33d33['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4592e4=_0x37f20f['model']['document']['differ']['getChanges']();if(0x0==_0x4592e4['length'])return;const _0x195364=[],_0x519bd3=_0x4592e4['filter'](_0x55fb90=>'attribute'==_0x55fb90['type']),_0x3d0a1a=_0x4592e4['filter'](_0x5313e2=>'insert'==_0x5313e2['type']&&'$text'!=_0x5313e2['name']);for(const _0x5f5625 of _0x519bd3)this['_isRegisteredAttribute'](_0x5f5625['attributeKey'])&&_0x195364['push']({'key':_0x5f5625['attributeKey'],'newValue':_0x5f5625['attributeNewValue'],'oldValue':_0x5f5625['attributeOldValue'],'range':qt(_0x5f5625['range'],_0x37f20f['model'])});for(const _0xef36a5 of _0x3d0a1a){if('rename'!=_0xef36a5['action']&&'refresh'!=_0xef36a5['action'])continue;const _0x3d86d6=zt(_0xef36a5['position']['nodeAfter'],_0x37f20f['model']),_0x120336=_0xef36a5['before'];'rename'==_0xef36a5['action']&&_0x195364['push']({'key':m,'newValue':_0xef36a5['name'],'oldValue':_0x120336['name'],'range':_0x3d86d6});for(const [_0x368836,_0x119791]of _0x120336['attributes']){if(!this['_isRegisteredAttribute'](_0x368836))continue;const _0x5ed376=_0xef36a5['attributes']['get'](_0x368836);_0x119791!==_0x5ed376&&_0x195364['push']({'key':_0x368836,'newValue':_0x5ed376,'oldValue':_0x119791,'range':_0x3d86d6});}for(const [_0x19d956,_0x42ba89]of _0xef36a5['attributes'])this['_isRegisteredAttribute'](_0x19d956)&&(_0x120336['attributes']['has'](_0x19d956)||_0x195364['push']({'key':_0x19d956,'newValue':_0x42ba89,'oldValue':null,'range':_0x3d86d6}));}0x0!=_0x195364['length']&&_0x37f20f['model']['enqueueChange'](_0xa33d33,_0x4a4446=>{const _0x296b97=_0x334525();for(const {range:_0x413176,key:_0x387a52,oldValue:_0x5626bc,newValue:_0x34dd93}of _0x195364)this['markAttributeChange'](_0x413176,_0x387a52,_0x5626bc,_0x34dd93,{'groupId':_0x296b97});this['_reduceExistingSuggestions'](_0x4a4446,_0x195364);});},{'priority':'lowest'}),_0x37f20f['model']['markers']['on']('update:suggestion',(_0x123ee6,_0x216170,_0x5cc5eb)=>{if(null==_0x5cc5eb){const {id:_0x2e18e0}=this['_splitMarkerName'](_0x216170['name']),_0x465bc7=this['_suggestions']['get'](_0x2e18e0);_0x465bc7&&_0x465bc7['addMarkerName'](_0x216170['name']);}}),_0x37f20f['model']['document']['on']('change:data',()=>{const _0x2f9faf=Array['from'](_0x37f20f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5add14=>'suggestion'===this['_splitMarkerName'](_0x5add14['name'])['group']);if(0x0===_0x2f9faf['length'])return;_0x2f9faf['sort']((_0x529634,_0x51c2aa)=>{const _0x918a13=_0x529634['data']['oldRange'],_0x2d1a21=_0x51c2aa['data']['oldRange'];return null===_0x918a13&&null===_0x2d1a21?0x0:null===_0x918a13&&null!==_0x2d1a21?-0x1:null!==_0x918a13&&null===_0x2d1a21?0x1:_0x918a13['start']['isBefore'](_0x2d1a21['start'])?-0x1:0x1;});const _0x157feb=new Set(),_0x121191=new Set();for(const {name:_0x5bf73c,data:_0x14501f}of _0x2f9faf){const {id:_0xeea279}=this['_splitMarkerName'](_0x5bf73c);if(null===_0x14501f['oldRange']){const _0x1c14af=this['_handleNewSuggestionMarker'](_0x5bf73c);_0x121191['add'](_0x1c14af);}else{const _0x27266b=this['_suggestions']['get'](_0xeea279);null!==_0x14501f['newRange']||_0x27266b['isInContent']?(_0x157feb['add'](_0x27266b['head']),_0x121191['add'](_0x27266b)):this['_removeSuggestion'](_0x27266b);}}_0x121191['size']>0x0&&this['_refreshSuggestionsChain'](_0x121191);for(const _0x40da3b of _0x157feb)this['fire']('suggestionChanged',_0x40da3b);}),_0x37f20f['model']['on']('applyOperation',(_0x45375b,_0xec5123)=>{const _0xdbc62d=_0xec5123[0x0];if(!this['_suggestions']['size'])return;if(!_0xdbc62d['isDocumentOperation'])return;if(_0xdbc62d['batch']['isUndo']||!_0xdbc62d['batch']['isLocal'])return;let _0x91f320,_0x7ccc59;switch(_0xdbc62d['type']){case'insert':_0x91f320=_0x37f20f['model']['createPositionAt'](_0xdbc62d['position']),_0x7ccc59=_0x91f320['getShiftedBy'](_0xdbc62d['howMany']);break;case'split':_0x91f320=_0x37f20f['model']['createPositionAt'](_0xdbc62d['splitPosition']),_0x7ccc59=_0x37f20f['model']['createPositionAt'](_0xdbc62d['moveTargetPosition']);break;case'move':_0x91f320=_0x37f20f['model']['createPositionAt'](_0xdbc62d['targetPosition']),_0x7ccc59=_0x91f320['getShiftedBy'](_0xdbc62d['howMany']);break;default:return;}const _0x10a1a9=_0x37f20f['model']['createRange'](_0x91f320,_0x7ccc59);_0x37f20f['model']['change'](()=>{for(const {suggestion:_0x431e0e,meta:_0x23e65c}of this['_findSuggestions'](_0x10a1a9)){if(_0x431e0e['isMultiRange'])continue;if('formatInline'==_0x431e0e['type'])continue;const _0x5ba381=this['_getAttributeKey'](_0x431e0e);if(_0x5ba381&&this['_isBlockAttribute'](_0x5ba381)&&'split'!=_0xdbc62d['type'])continue;const _0xdbbb9d=_0x431e0e['data']&&_0x431e0e['data']['multipleBlocks'];('formatBlock'!=_0x431e0e['type']||'split'==_0xdbc62d['type']&&!_0xdbbb9d)&&(_0x23e65c['containsRangeInObject']||'insertion'==_0x431e0e['type']&&_0x23e65c['isOwn']||_0x431e0e['getFirstRange']()['containsRange'](_0x10a1a9)&&this['_breakSuggestionMarker'](_0x431e0e,_0x91f320,_0x7ccc59));}});},{'priority':'lowest'}),_0x37f20f['model']['on']('deleteContent',(_0x5cad64,_0x182f47)=>{const _0x47e75f=_0x182f47[0x0],_0x30c4c7=_0x182f47[0x1];if(_0x30c4c7&&_0x30c4c7['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x47e75f['isCollapsed'])return;const _0xba44c7=_0x37f20f['model']['schema'],{start:_0x4173a5,end:_0x1f4dda}=_0x47e75f['getFirstRange'](),_0x2dcaa9=_0x4173a5['nodeAfter']&&_0xba44c7['isLimit'](_0x4173a5['nodeAfter'])?null:_0xba44c7['getNearestSelectionRange'](_0x4173a5,'forward'),_0x269d0e=_0x1f4dda['nodeBefore']&&_0xba44c7['isLimit'](_0x1f4dda['nodeBefore'])?null:_0xba44c7['getNearestSelectionRange'](_0x1f4dda,'backward'),_0x43186f=_0x37f20f['model']['createRange'](_0x2dcaa9?_0x2dcaa9['start']:_0x4173a5,_0x269d0e?_0x269d0e['end']:_0x1f4dda);_0x37f20f['model']['change'](_0x6b0159=>{this['markDeletion'](_0x43186f);const _0x444e51=_0x37f20f['model']['schema']['getNearestSelectionRange'](_0x43186f['start']);_0x47e75f['is']('documentSelection')?_0x6b0159['setSelection'](_0x444e51):_0x47e75f['setTo'](_0x444e51);}),_0x5cad64['stop']();},{'priority':_0x4aac02['normal']+0xa}),_0x37f20f['model']['on']('insertContent',(_0x409598,_0x3e447f)=>{const _0x1c7b14=_0x3e447f[_0x3e447f['length']-0x1];_0x1c7b14&&_0x1c7b14['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x37f20f['model']['change'](()=>{let _0x3cadde=_0x37f20f['model']['insertContent'](_0x3e447f[0x0],_0x3e447f[0x1],_0x3e447f[0x2],{'forceDefaultExecution':!0x0});if(!_0x3cadde)return;_0x409598['return']=_0x3cadde['clone']();const _0x2ab82e=_0x3cadde['end']['nodeBefore'],_0x135d69=_0x37f20f['model']['schema'];_0x2ab82e&&_0x135d69['isBlock'](_0x2ab82e)&&!_0x135d69['isObject'](_0x2ab82e)&&(_0x3cadde=_0x37f20f['model']['createRange'](_0x3cadde['start'],_0x37f20f['model']['createPositionAt'](_0x2ab82e,'end'))),this['markInsertion'](_0x3cadde);}),_0x409598['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5b4c3b=new D(_0x37f20f,this['_suggestions']);_0x37f20f['commands']['add']('acceptSuggestion',_0x5b4c3b),this['enableCommand']('acceptSuggestion');const _0x3cf3b2=new $(_0x37f20f,this['_suggestions']);_0x37f20f['commands']['add']('discardSuggestion',_0x3cf3b2),this['enableCommand']('discardSuggestion'),_0x37f20f['commands']['add']('acceptAllSuggestions',new M(_0x37f20f,_0x5b4c3b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x37f20f['commands']['add']('discardAllSuggestions',new M(_0x37f20f,_0x3cf3b2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x37f20f['commands']['add']('acceptSelectedSuggestions',new B(_0x37f20f,_0x5b4c3b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x37f20f['commands']['add']('discardSelectedSuggestions',new B(_0x37f20f,_0x3cf3b2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2bc328=_0x37f20f['plugins']['get']('CommentsRepository');this['listenTo'](_0x2bc328,'addComment',(_0x400182,{threadId:_0x317512})=>{const _0x21b02d=this['_suggestions']['get'](_0x317512);_0x21b02d&&_0x21b02d['commentThread']&&0x1===_0x21b02d['commentThread']['length']&&this['_updateSuggestionData'](_0x317512,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2bc328,'removeComment',(_0x58997a,{threadId:_0x9d9d8a})=>{const _0x584815=this['_suggestions']['get'](_0x9d9d8a);_0x584815&&_0x584815['commentThread']&&!_0x584815['commentThread']['length']&&this['_updateSuggestionData'](_0x9d9d8a,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2e5271){const _0x4b8d1c=_0x88b8cd([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x1bf8b0=0x6b0f5e6f,_0x45f4eb=0x6b082c97^_0x1bf8b0,_0x4d7f26=window[_0x88b8cd([0x44,0x61,0x74,0x65])][_0x88b8cd([0x6e,0x6f,0x77])](),_0x1cd03c=_0x2e5271[_0x88b8cd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1dfe1b=new window[(_0x88b8cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x678f36=>{_0x1cd03c[_0x88b8cd([0x6f,0x6e,0x63,0x65])](_0x88b8cd([0x72,0x65,0x61,0x64,0x79]),_0x678f36);}),_0x275aa6={[_0x88b8cd([0x6b,0x74,0x79])]:_0x88b8cd([0x45,0x43]),[_0x88b8cd([0x75,0x73,0x65])]:_0x88b8cd([0x73,0x69,0x67]),[_0x88b8cd([0x63,0x72,0x76])]:_0x88b8cd([0x50,0x2d,0x32,0x35,0x36]),[_0x88b8cd([0x78])]:_0x88b8cd([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]),[_0x88b8cd([0x79])]:_0x88b8cd([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]),[_0x88b8cd([0x61,0x6c,0x67])]:_0x88b8cd([0x45,0x53,0x32,0x35,0x36])},_0xea0c15=_0x1cd03c[_0x88b8cd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x88b8cd([0x67,0x65,0x74])](_0x88b8cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x261a2a(){let _0x38618e,_0x36e518=null,_0x561118=null;try{if(_0xea0c15==_0x88b8cd([0x47,0x50,0x4c]))return _0x88b8cd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x38618e=_0x313f3b(),!_0x38618e)return _0x88b8cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x38618e[_0x88b8cd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x561118=_0x19000c(_0x38618e[_0x88b8cd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x38618e[_0x88b8cd([0x6a,0x74,0x69])])),await _0x32e914()?_0x3a342a()?_0x293fb3()?_0x88b8cd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x58a712()?(_0x38618e[_0x88b8cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x88b8cd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36e518=_0x19543e(_0x88b8cd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x38618e[_0x88b8cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x88b8cd([0x74,0x72,0x69,0x61,0x6c])&&(_0x36e518=_0x19543e(_0x88b8cd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3dd786()):_0x88b8cd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x88b8cd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x88b8cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x88b8cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x293fb3(){const _0x23b04e=[_0x88b8cd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x88b8cd([0x74,0x72,0x69,0x61,0x6c])][_0x88b8cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38618e[_0x88b8cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4d7f26/0x3e8:0xe10*_0x45f4eb;return _0x38618e[_0x88b8cd([0x65,0x78,0x70])]<_0x23b04e;}function _0x3a342a(){const _0x1776cc=_0x38618e[_0x88b8cd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1776cc)return!0x1;if(_0x1776cc[_0x88b8cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x88b8cd([0x2a])))return!0x0;if(_0x1776cc[_0x88b8cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x88b8cd([0x54,0x43])))return!0x0;if(_0x1776cc[_0x88b8cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x88b8cd([0x52,0x54,0x43]))){if(_0x309d92())return!0x0;if(_0x39fbfd()||_0x36bddb())return!0x0;}return!0x1;}function _0x58a712(){const _0x2446f3=_0x38618e[_0x88b8cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2446f3||0x0==_0x2446f3[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2a8516}=new URL(window[_0x88b8cd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2446f3[_0x88b8cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a8516))return!0x0;const _0x34066b=_0x2a8516[_0x88b8cd([0x73,0x70,0x6c,0x69,0x74])](_0x88b8cd([0x2e]));return _0x2446f3[_0x88b8cd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30d983=>_0x30d983[_0x88b8cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x88b8cd([0x2a])))[_0x88b8cd([0x6d,0x61,0x70])](_0x1bf17c=>_0x1bf17c[_0x88b8cd([0x73,0x70,0x6c,0x69,0x74])](_0x88b8cd([0x2e])))[_0x88b8cd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b5353=>_0x3b5353[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x34066b[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x88b8cd([0x6d,0x61,0x70])](_0x4fbda4=>Array(_0x34066b[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4fbda4[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x88b8cd([0x66,0x69,0x6c,0x6c])](_0x4fbda4[0x0]===_0x88b8cd([0x2a])?_0x88b8cd([0x2a]):'')[_0x88b8cd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4fbda4))[_0x88b8cd([0x73,0x6f,0x6d,0x65])](_0xb80ea=>_0x34066b[_0x88b8cd([0x65,0x76,0x65,0x72,0x79])]((_0x3deb1e,_0x5e862d)=>_0xb80ea[_0x5e862d]===_0x3deb1e||_0xb80ea[_0x5e862d]===_0x88b8cd([0x2a])));}function _0x3dd786(){return _0x36e518&&_0x561118?new window[(_0x88b8cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19510c,_0x3e5ef9)=>{_0x36e518[_0x88b8cd([0x74,0x68,0x65,0x6e])](_0x19510c,_0x3e5ef9),_0x561118[_0x88b8cd([0x74,0x68,0x65,0x6e])](_0x5caa88=>{_0x5caa88!=_0x88b8cd([0x56,0x61,0x6c,0x69,0x64])&&_0x19510c(_0x5caa88);},_0x3e5ef9);}):_0x36e518||_0x561118||_0x88b8cd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19000c(_0x5a782c,_0x44b3ab){return new window[(_0x88b8cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cd4c2=>{if(_0x4eed37())return _0x4cd4c2(_0x88b8cd([0x56,0x61,0x6c,0x69,0x64]));_0x4b204b(),_0x1cd03c[_0x88b8cd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x88b8cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9dc682=!0x1;const _0x396dde=_0x334525();function _0x59c8a6(_0x2aaa87){return!!_0x2aaa87&&(typeof _0x2aaa87===_0x88b8cd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2aaa87===_0x88b8cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2aaa87[_0x88b8cd([0x74,0x68,0x65,0x6e])]===_0x88b8cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2aaa87[_0x88b8cd([0x63,0x61,0x74,0x63,0x68])]===_0x88b8cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6d7849(_0x552940){_0x2c6cd8(_0x552940)[_0x88b8cd([0x74,0x68,0x65,0x6e])](_0x2b0ad8=>{if(!_0x2b0ad8||_0x2b0ad8[_0x88b8cd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x88b8cd([0x6f,0x6b]))return _0x88b8cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c3f1b(_0x437f7a(_0x396dde+_0x44b3ab))!=_0x2b0ad8[_0x88b8cd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x88b8cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x88b8cd([0x56,0x61,0x6c,0x69,0x64]);})[_0x88b8cd([0x74,0x68,0x65,0x6e])](_0x3acca6=>(_0x3c47d2(),_0x3acca6),()=>{const _0x2d0eef=_0x252d4b();return null==_0x2d0eef?(_0x3c47d2(),_0x88b8cd([0x56,0x61,0x6c,0x69,0x64])):_0x88b8cd(_0x4d7f26-_0x2d0eef>(0x4f03da6f^_0x1bf8b0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x88b8cd([0x74,0x68,0x65,0x6e])](_0x4cd4c2)[_0x88b8cd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4cd4c2(_0x88b8cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x21a7a0=0x6b39b0ef^_0x1bf8b0;function _0x3c47d2(){const _0x22b9dd=_0x88b8cd([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c3f1b(_0x437f7a(_0x5a782c)),_0x5674f0=_0x2f442e(_0x1c3f1b(window[_0x88b8cd([0x4d,0x61,0x74,0x68])][_0x88b8cd([0x63,0x65,0x69,0x6c])](_0x4d7f26/_0x21a7a0)));window[_0x88b8cd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x88b8cd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22b9dd,_0x5674f0);}function _0x252d4b(){const _0x2057df=_0x88b8cd([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c3f1b(_0x437f7a(_0x5a782c)),_0x4254ac=window[_0x88b8cd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x88b8cd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2057df);return _0x4254ac?window[_0x88b8cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f442e(_0x4254ac),0x10)*_0x21a7a0:null;}function _0x2c6cd8(_0x5e3d3e){return new window[(_0x88b8cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33e46b,_0x316b5d)=>{_0x5e3d3e[_0x88b8cd([0x74,0x68,0x65,0x6e])](_0x33e46b,_0x316b5d),window[_0x88b8cd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x316b5d,0x6b0e8aaf^_0x1bf8b0);});}}_0x1cd03c[_0x88b8cd([0x6f,0x6e])](_0x88b8cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59ccd8,_0x4ee865)=>{if(_0x4ee865[0x0]!=_0x5a782c)return _0x4cd4c2(_0x88b8cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ee865[0x1]={..._0x4ee865[0x1],[_0x88b8cd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x396dde};},{[_0x88b8cd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x88b8cd([0x68,0x69,0x67,0x68])}),_0x1cd03c[_0x88b8cd([0x6f,0x6e])](_0x88b8cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5873d1=>{_0x59c8a6(_0x5873d1[_0x88b8cd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9dc682=!0x0,_0x6d7849(_0x5873d1[_0x88b8cd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x88b8cd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x88b8cd([0x6c,0x6f,0x77])}),_0x1dfe1b[_0x88b8cd([0x74,0x68,0x65,0x6e])](()=>{_0x9dc682||_0x4cd4c2(_0x88b8cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4eed37(){return _0x1cd03c[_0x88b8cd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x88b8cd([0x76,0x69,0x65,0x77])][_0x88b8cd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x88b8cd([0x61,0x75,0x74,0x6f]);}function _0x4b204b(){_0x1cd03c[_0x88b8cd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x88b8cd([0x76,0x69,0x65,0x77])][_0x88b8cd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x88b8cd([0x61,0x75,0x74,0x6f]);}}function _0x19543e(_0x116b9d){const _0x4380ca=[new window[(_0x88b8cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2924d9=>setTimeout(_0x2924d9,0x6b0660a3^_0x1bf8b0)),_0x1dfe1b[_0x88b8cd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x88b8cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2756ab=>{let _0x16e05a=0x0;_0x1cd03c[_0x88b8cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x88b8cd([0x6f,0x6e])](_0x88b8cd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x45079e,_0x464bb1)=>{_0x464bb1[0x0][_0x88b8cd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x16e05a++,_0x16e05a==(0x6b0f5f97^_0x1bf8b0)&&(_0x2756ab(),_0x45079e[_0x88b8cd([0x6f,0x66,0x66])]());});}))];return window[_0x88b8cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x88b8cd([0x72,0x61,0x63,0x65])](_0x4380ca)[_0x88b8cd([0x74,0x68,0x65,0x6e])](()=>_0x116b9d);}async function _0x460080(){await _0x1dfe1b,_0x1cd03c[_0x88b8cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x88b8cd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3383c6,_0x1cd03c[_0x88b8cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x88b8cd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3383c6,_0x1cd03c[_0x88b8cd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x88b8cd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x309d92(){return _0x305833(_0x88b8cd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4bc2ce(_0x88b8cd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x88b8cd([0x73,0x74,0x61,0x74,0x65])]==_0x88b8cd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x39fbfd(){return _0x305833(_0x88b8cd([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 _0x36bddb(){return _0x305833(_0x88b8cd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1683df(_0x214742){const _0x27c60d=_0x85e95f();_0x1cd03c[_0x27c60d]=_0x88b8cd([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x214742,_0x214742!=_0x88b8cd([0x56,0x61,0x6c,0x69,0x64])&&_0x460080();}function _0x85e95f(){const _0x14fa3d=window[_0x88b8cd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x88b8cd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x88b8cd([0x6e,0x6f,0x77])]())[_0x88b8cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x88b8cd([0x2e]),'');let _0x4a5dde=_0x88b8cd([0x67]);for(let _0x33a89d=0x0;_0x33a89d<_0x14fa3d[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33a89d+=0x2){let _0x51295d=window[_0x88b8cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14fa3d[_0x88b8cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33a89d,_0x33a89d+0x2));_0x51295d>=_0x4b8d1c[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51295d-=_0x4b8d1c[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a5dde+=_0x4b8d1c[_0x51295d];}return _0x4a5dde;}function _0x313f3b(){const _0x151a58=_0xea0c15[_0x88b8cd([0x73,0x70,0x6c,0x69,0x74])](_0x88b8cd([0x2e]));if(0x3!=_0x151a58[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d4411(_0x151a58[0x1]);function _0x3d4411(_0x2c4aaa){const _0x3c5a38=_0x2418fb(_0x2c4aaa);return _0x3c5a38&&_0x23878f()?_0x3c5a38:null;function _0x23878f(){const _0x3a6c36=_0x3c5a38[_0x88b8cd([0x6a,0x74,0x69])],_0x30b1e8=window[_0x88b8cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a6c36[_0x88b8cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a6c36[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ea287={..._0x3c5a38,[_0x88b8cd([0x6a,0x74,0x69])]:_0x3a6c36[_0x88b8cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a6c36[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ea287[_0x88b8cd([0x76,0x63])],_0x437f7a(_0x4ea287)==_0x30b1e8;}}}async function _0x32e914(){let _0x1c5fb4=!0x0;try{const _0x78d6c2=_0xea0c15[_0x88b8cd([0x73,0x70,0x6c,0x69,0x74])](_0x88b8cd([0x2e])),[_0x3717a9,_0xf4732a,_0x11b1a8]=_0x78d6c2;return _0x237258(_0x3717a9),await _0x1dfdbb(_0x3717a9,_0xf4732a,_0x11b1a8),_0x1c5fb4;}catch{return!0x1;}function _0x237258(_0x4f1452){const _0x34cbf3=_0x2418fb(_0x4f1452);_0x34cbf3&&_0x34cbf3[_0x88b8cd([0x61,0x6c,0x67])]==_0x88b8cd([0x45,0x53,0x32,0x35,0x36])||(_0x1c5fb4=!0x1);}async function _0x1dfdbb(_0x2579f7,_0x3a008f,_0x5b7a03){const _0x5a8435=window[_0x88b8cd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x88b8cd([0x66,0x72,0x6f,0x6d])](_0x40da2d(_0x5b7a03),_0x20ef03=>_0x20ef03[_0x88b8cd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x298efe=new window[(_0x88b8cd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x88b8cd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2579f7+_0x88b8cd([0x2e])+_0x3a008f),_0xd12d32=window[_0x88b8cd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x88b8cd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd12d32)return;const _0x3d255c=await _0xd12d32[_0x88b8cd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x88b8cd([0x6a,0x77,0x6b]),_0x275aa6,{[_0x88b8cd([0x6e,0x61,0x6d,0x65])]:_0x88b8cd([0x45,0x43,0x44,0x53,0x41]),[_0x88b8cd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x88b8cd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x88b8cd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd12d32[_0x88b8cd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x88b8cd([0x6e,0x61,0x6d,0x65])]:_0x88b8cd([0x45,0x43,0x44,0x53,0x41]),[_0x88b8cd([0x68,0x61,0x73,0x68])]:{[_0x88b8cd([0x6e,0x61,0x6d,0x65])]:_0x88b8cd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d255c,_0x5a8435,_0x298efe)||(_0x1c5fb4=!0x1);}}function _0x2418fb(_0x3a320a){return _0x3a320a[_0x88b8cd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x88b8cd([0x65,0x79]))?JSON[_0x88b8cd([0x70,0x61,0x72,0x73,0x65])](_0x40da2d(_0x3a320a)):null;}function _0x40da2d(_0x2d03e2){return window[_0x88b8cd([0x61,0x74,0x6f,0x62])](_0x2d03e2[_0x88b8cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x88b8cd([0x2b]))[_0x88b8cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x88b8cd([0x2f])));}function _0x437f7a(_0x356cae){let _0x26ff9d=0x1505;function _0x580f9a(_0x43eea9){for(let _0x10cc0b=0x0;_0x10cc0b<_0x43eea9[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10cc0b++){const _0x513cf3=_0x43eea9[_0x88b8cd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x10cc0b);_0x26ff9d=(_0x26ff9d<<0x5)+_0x26ff9d+_0x513cf3,_0x26ff9d&=_0x26ff9d;}}function _0x43456b(_0x48ae63){Array[_0x88b8cd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48ae63)?_0x48ae63[_0x88b8cd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43456b):_0x48ae63&&typeof _0x48ae63==_0x88b8cd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x88b8cd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48ae63)[_0x88b8cd([0x73,0x6f,0x72,0x74])]()[_0x88b8cd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c362c,_0x3a2475])=>{_0x580f9a(_0x2c362c),_0x43456b(_0x3a2475);}):_0x580f9a(window[_0x88b8cd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48ae63));}return _0x43456b(_0x356cae),_0x26ff9d>>>0x0;}function _0x1c3f1b(_0x2c0f6e){return _0x2c0f6e[_0x88b8cd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x88b8cd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x88b8cd([0x30]));}function _0x2f442e(_0x2dede3){return _0x2dede3[_0x88b8cd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x88b8cd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x88b8cd([0x6a,0x6f,0x69,0x6e])]('');}function _0x305833(_0x4b48ea){return _0x1cd03c[_0x88b8cd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x88b8cd([0x68,0x61,0x73])](_0x4b48ea);}function _0x4bc2ce(_0x60b83b){return _0x1cd03c[_0x88b8cd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x88b8cd([0x67,0x65,0x74])](_0x60b83b);}function _0x3383c6(){}function _0x88b8cd(_0x277fef){return _0x277fef['map'](_0x4985f9=>String['fromCharCode'](_0x4985f9))['join']('');}_0x1683df(await _0x261a2a());}(this);}set['adapter'](_0x386009){if(this['_adapter'])throw new _0x55c846('track-changes-adapter-already-set',this);this['_adapter']=_0x386009;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x14e175=!0x1,toJSON:_0x4d94d7=!0x1}={}){const _0x151322=[];for(const _0x4c26cf of this['_suggestions']['values']())_0x14e175&&!_0x4c26cf['isInContent']||_0x151322['push'](_0x4c26cf);return _0x4d94d7?_0x151322['map'](_0x581280=>_0x581280['toJSON']()):_0x151322;}['getSuggestion'](_0x47c1e3){const _0x572076=this['_suggestions']['get'](_0x47c1e3);if(!_0x572076)throw new _0x55c846('track-changes-suggestion-not-found',this);return _0x572076;}['hasSuggestion'](_0x556e18){return this['_suggestions']['has'](_0x556e18);}['addSuggestionData'](_0x1c30f7){const {authorId:_0x49099d,id:_0x3d86d4,originalSuggestionId:_0x5195d5,attributes:_0x80bdc9}=_0x1c30f7,[_0x82a148,_0x53db72]=_0x1c30f7['type']['split'](':'),_0x53438a=this['_suggestions']['get'](_0x3d86d4)||this['_createSuggestion'](_0x82a148,_0x53db72,_0x3d86d4,_0x49099d,_0x80bdc9,_0x5195d5);if(this['_addThreadToSuggestion'](_0x53438a),this['_checkSuggestionCorrectness'](_0x53438a,_0x82a148,_0x53db72||null,_0x49099d),_0x53438a['createdAt']=_0x1c30f7['createdAt'],_0x53438a['_isDataLoaded']=!0x0,_0x80bdc9&&_0x80bdc9['@external']){const _0x4de22b=_0x80bdc9['@external'],_0x163b94=this['_getExternalAuthor'](_0x4de22b['authorName']);_0x53438a['authoredAt']=_0x4de22b['createdAt'],_0x53438a['author']=_0x163b94,_0x53438a['isExternal']=!0x0;}else _0x53438a['authoredAt']=_0x1c30f7['createdAt'];switch(_0x1c30f7['data']&&(_0x53438a['data']=_0x1c30f7['data']),_0x1c30f7['attributes']&&(_0x53438a['attributes']=_0x1c30f7['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x53438a['_saved']=!0x0),this['_suggestionState']['get'](_0x53438a)){case'notReady':this['_suggestionState']['set'](_0x53438a,'dataReady');break;case'markerReady':_0x53438a['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x53438a])),this['_refreshSuggestionsChain'](new Set([_0x53438a])),this['_suggestionState']['set'](_0x53438a,'ready'),this['fire']('suggestionLoaded',_0x53438a)):this['_suggestionState']['set'](_0x53438a,'removed');}return _0x53438a;}['acceptSuggestion'](_0x55cc47){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1e1c67 of _0x55cc47['getAllAdjacentSuggestions']())_0x1e1c67['accept']();});});}['discardSuggestion'](_0x37559f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x509fee of _0x37559f['getAllAdjacentSuggestions']())_0x509fee['discard']();});});}['enableCommand'](_0x26618e,_0x42e040){const _0x3f6319=this['editor']['commands']['get'](_0x26618e);if(!_0x3f6319)throw new _0x55c846('track-changes-command-not-found',this,{'commandName':_0x26618e});if(this['_enabledCommands']['has'](_0x3f6319))throw new _0x55c846('track-changes-enable-command-twice',this,{'commandName':_0x26618e});this['_enabledCommands']['add'](_0x3f6319),_0x42e040&&_0x3f6319['on']('execute',(_0x1463d4,_0x3e45c9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3e45c9['length']>0x0&&_0x3e45c9[_0x3e45c9['length']-0x1]&&_0x3e45c9[_0x3e45c9['length']-0x1]['forceDefaultExecution']?_0x3e45c9['pop']():(_0x1463d4['return']=_0x42e040((..._0x4722a0)=>_0x3f6319['execute'](..._0x4722a0,{'forceDefaultExecution':!0x0}),..._0x3e45c9),_0x1463d4['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5a9cfa){let _0x46d978,_0x1df12b;const _0x55d1bb=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x46d978=_0x5a9cfa();}catch(_0x7fa24d){_0x1df12b=_0x7fa24d;}return _0x55d1bb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1df12b&&_0x55c846['rethrowUnexpectedError'](_0x1df12b,this),_0x46d978;}['markInsertion'](_0x491b88,_0x463fcb=null,_0x21cf89={}){if(_0x491b88['isCollapsed'])return null;const _0x3b62bf=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x21cf89['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2fbe40,meta:_0x47fab0}of this['_findSuggestions'](_0x491b88,'insertion'))if(_0x47fab0['isOwn']){if(!_0x47fab0['isNextTo']){if(_0x47fab0['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x2fbe40,_0x21cf89))continue;return _0x2fbe40;}if(Xt(_0x2fbe40,_0x21cf89))return _0x2fbe40;this['_breakSuggestionMarker'](_0x2fbe40,_0x491b88['start'],_0x491b88['end']);break;}if(_0x463fcb==_0x2fbe40['subType']&&Xt(_0x2fbe40,_0x21cf89)){const _0x546a99=_0x2fbe40['getFirstRange']();return _0x546a99['start']['isEqual'](_0x491b88['end'])?this['_setSuggestionRange'](_0x2fbe40,this['_model']['createRange'](_0x491b88['start'],_0x546a99['end'])):this['_setSuggestionRange'](_0x2fbe40,this['_model']['createRange'](_0x546a99['start'],_0x491b88['end'])),_0x2fbe40;}}const _0x4654df=_0x334525(),_0x65eba8=_0x3b62bf['id'],_0x468c73=_0x463fcb?'insertion:'+_0x463fcb:'insertion',_0x364ba9=this['_setSuggestionData']({'id':_0x4654df,'type':_0x468c73,'createdAt':new Date(),'authorId':_0x65eba8,'attributes':_0x21cf89});return this['_addSuggestionMarker'](_0x468c73,_0x4654df,_0x65eba8,_0x491b88),_0x364ba9;}['markMultiRangeInsertion'](_0x46513a,_0x2c0985='multi',_0x1598cc={}){const _0x2a0d3e=this['editor']['plugins']['get']('Users')['me'],_0x2cd747=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2c0985,'join');this['_trackingSessionId']&&(_0x1598cc['trackingSessionId']=this['_trackingSessionId']);for(const _0x1b9a04 of this['getSuggestions']())if(_0x1b9a04['author']['id']==_0x2a0d3e['id']&&'insertion'==_0x1b9a04['type']&&_0x1b9a04['subType']==_0x2c0985&&Xt(_0x1b9a04,_0x1598cc)&&(_0x2cd747(_0x1b9a04['getRanges'](),_0x46513a)||_0x2cd747(_0x46513a,_0x1b9a04['getRanges']()))){for(const _0x1dad40 of _0x46513a)_0x1b9a04['addRange'](_0x1dad40);return _0x1b9a04;}for(const {suggestion:_0x4c7369,meta:_0x8cd9d6}of this['_findSuggestions'](_0x46513a,'insertion')){if(!_0x8cd9d6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x8cd9d6['containsRangeInObject'])continue;if(!Xt(_0x4c7369,_0x1598cc))continue;let _0x14350e=!0x0;for(const _0x31c07c of _0x4c7369['getRanges']())for(const _0x3bbdfe of _0x46513a)if(!_0x31c07c['containsRange'](_0x3bbdfe)){_0x14350e=!0x1;break;}if(_0x14350e)return _0x4c7369;}const _0x51bfda=_0x334525(),_0x421bfe=_0x2a0d3e['id'],_0x3dcb87='insertion:'+_0x2c0985,_0x4278bb=this['_setSuggestionData']({'id':_0x51bfda,'type':_0x3dcb87,'createdAt':new Date(),'authorId':_0x421bfe,'attributes':_0x1598cc});for(const _0x16f225 of _0x46513a)this['_addSuggestionMarker'](_0x3dcb87,_0x51bfda,_0x421bfe,_0x16f225,T['getMultiRangeId']());return _0x4278bb;}['markInlineFormat'](_0x3fedfc,_0x301467,_0x2c4665=null,_0x74fa13={}){if(_0x2c4665=_0x2c4665||Lt(_0x301467),_0x3fedfc['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x74fa13['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1eb757=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2c4665,'accept');return this['forceDefaultExecution'](()=>_0x1eb757([_0x3fedfc],_0x301467,_0x74fa13)),null;}const _0x5670e6=this['editor']['plugins']['get']('Users')['me'],_0x24bf36=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xe93fe1,meta:_0xe38856}of this['_findSuggestions'](_0x3fedfc,'insertion'))_0xe38856['isOwn']&&!_0xe38856['isInsideObject']&&_0x24bf36['push'](..._0xe93fe1['getRanges']());}const _0x301254=function(_0x535ec1,_0x348b2a){const _0x5f3d39=[];for(const _0x5e0723 of _0x348b2a){const _0x4ae765=_0x535ec1['getIntersection'](_0x5e0723);_0x4ae765&&_0x5f3d39['push'](_0x4ae765);}return _0x5f3d39;}(_0x3fedfc,_0x24bf36),_0x3edff1=function(_0x4e1e13,_0x176850){const _0x3310f8=[_0x4e1e13];for(const _0x3395f7 of _0x176850){let _0x5b2248=0x0;for(;_0x5b2248<_0x3310f8['length'];){const _0x4ff590=_0x3310f8[_0x5b2248]['getDifference'](_0x3395f7);_0x3310f8['splice'](_0x5b2248,0x1,..._0x4ff590),_0x5b2248+=_0x4ff590['length'];}}return _0x3310f8;}(_0x3fedfc,_0x24bf36);_0x301254['length']&&this['_model']['change'](()=>{for(const _0x48dc68 of _0x301254){const _0x28241b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2c4665,'accept');this['forceDefaultExecution'](()=>_0x28241b([_0x48dc68],_0x301467,_0x74fa13));}});for(const _0x7a459a of _0x3edff1){let _0x2fdb85=null,_0x51e84b=_0x7a459a['start'],_0x5f4c1a=_0x7a459a['end'];for(const {suggestion:_0x4d7463,meta:_0x9efd4c}of this['_findSuggestions'](_0x7a459a,'formatInline')){if(!_0x9efd4c['isOwn'])continue;if(_0x4d7463['subType']!=_0x2c4665)continue;if(!Xt(_0x4d7463,_0x74fa13))continue;const _0x39a229=_0x4d7463['getFirstRange']();if(_0x39a229['containsRange'](_0x7a459a,!0x0))return null;_0x51e84b=_0x51e84b['isBefore'](_0x39a229['start'])?_0x51e84b:_0x39a229['start'],_0x5f4c1a=_0x5f4c1a['isAfter'](_0x39a229['end'])?_0x5f4c1a:_0x39a229['end'],_0x2fdb85?_0x39a229['start']['isBefore'](_0x2fdb85['getFirstRange']()['start'])?(_0x2fdb85['removeMarkers'](),_0x2fdb85=_0x4d7463):_0x4d7463['removeMarkers']():_0x2fdb85=_0x4d7463;}const _0x58a29f=this['_model']['createRange'](_0x51e84b,_0x5f4c1a);if(_0x2fdb85)this['_setSuggestionRange'](_0x2fdb85,_0x58a29f);else{const _0x11f9ae=_0x334525(),_0x493359=_0x5670e6['id'];this['_setSuggestionData']({'id':_0x11f9ae,'type':'formatInline:'+_0x2c4665,'data':_0x301467,'createdAt':new Date(),'authorId':_0x493359,'attributes':_0x74fa13}),this['_addSuggestionMarker']('formatInline:'+_0x2c4665,_0x11f9ae,_0x493359,_0x58a29f);}}return null;}['markBlockFormat'](_0x3cb92a,_0x5eb4eb,_0x16e2c6=[],_0x216ce8=null,_0x51ffb5={}){_0x5eb4eb['formatGroupId']||(_0x5eb4eb['formatGroupId']=_0x5eb4eb['commandName']),_0x5eb4eb['multipleBlocks']=_0x3cb92a['is']('range'),_0x216ce8=_0x216ce8||Lt(_0x5eb4eb);const _0x57fbde=_0x16e2c6['map'](_0x221a74=>zt(_0x221a74,this['_model'])),_0x3ed782=_0x3cb92a['is']('range')?_0x3cb92a:zt(_0x3cb92a,this['_model']);if(this['_trackingSessionId']&&(_0x51ffb5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x30c862=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x216ce8,'accept');return this['forceDefaultExecution'](()=>_0x30c862([_0x3ed782],_0x5eb4eb,_0x51ffb5)),null;}_0x57fbde['push'](_0x3ed782);let _0x3672ab=!0x0;for(const _0x5c6057 of _0x57fbde)if(!this['_rangeIsInLocalUserInsertion'](_0x5c6057)){_0x3672ab=!0x1;break;}if(_0x3672ab&&'always'!==this['_trackFormatChanges']){const _0x946afb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x216ce8,'accept');return this['forceDefaultExecution'](()=>_0x946afb([_0x3ed782],_0x5eb4eb,_0x51ffb5)),null;}let _0x1c3ff5=null,_0x352127=_0x3ed782['start'],_0x3e0c89=_0x3ed782['end'];for(const {suggestion:_0x13607e,meta:_0x4a0fe5}of this['_findSuggestions'](_0x3ed782,'formatBlock')){if(!_0x4a0fe5['isOwn'])continue;if(_0x4a0fe5['isNextTo']||_0x4a0fe5['containsRangeInObject']||_0x4a0fe5['isInsideObject'])continue;if(_0x13607e['data']['formatGroupId']!=_0x5eb4eb['formatGroupId'])continue;if(!Xt(_0x13607e,_0x51ffb5))continue;const _0x3b8c8d=_0x13607e['getFirstRange']();if(_0x13607e['subType']==_0x216ce8){if(_0x3b8c8d['containsRange'](_0x3ed782,!0x0))return null;_0x352127=_0x352127['isBefore'](_0x3b8c8d['start'])?_0x352127:_0x3b8c8d['start'],_0x3e0c89=_0x3e0c89['isAfter'](_0x3b8c8d['end'])?_0x3e0c89:_0x3b8c8d['end'],_0x1c3ff5?_0x3b8c8d['start']['isBefore'](_0x1c3ff5['getFirstRange']()['start'])?(_0x1c3ff5['removeMarkers'](),_0x1c3ff5=_0x13607e):_0x13607e['removeMarkers']():_0x1c3ff5=_0x13607e;}else{const _0x11f3e1=_0x3ed782['getIntersection'](_0x3b8c8d);this['_cutOutSuggestionMarker'](_0x13607e,_0x11f3e1);}}const _0x4b2f41=this['editor']['plugins']['get']('Users')['me'],_0xd30a75=_0x334525(),_0x5909fe=_0x4b2f41['id'];if(_0x1c3ff5)return this['_setSuggestionRange'](_0x1c3ff5,this['_model']['createRange'](_0x352127,_0x3e0c89)),_0x1c3ff5;{const _0x1eb841=this['_setSuggestionData']({'id':_0xd30a75,'type':'formatBlock:'+_0x216ce8,'data':_0x5eb4eb,'createdAt':new Date(),'authorId':_0x5909fe,'attributes':_0x51ffb5});return this['_addSuggestionMarker']('formatBlock:'+_0x216ce8,_0xd30a75,_0x5909fe,this['_model']['createRange'](_0x352127,_0x3e0c89)),_0x1eb841;}}['markMultiRangeBlockFormat'](_0x278782,_0x437c02,_0x366031=[],_0x27b29f=null,_0x4a3305={}){_0x437c02['formatGroupId']||(_0x437c02['formatGroupId']=_0x437c02['commandName']);const _0x15d05f=_0x278782[0x0];_0x437c02['multipleBlocks']=_0x15d05f['is']('range'),_0x27b29f=_0x27b29f||Lt(_0x437c02);const _0x437d98=_0x366031['map'](_0x7442dd=>zt(_0x7442dd,this['_model'])),_0x595cd8=_0x15d05f['is']('range')?_0x278782:_0x278782['map'](_0x5e61a7=>zt(_0x5e61a7,this['_model']));if(this['_trackingSessionId']&&(_0x4a3305['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x30b321=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x27b29f,'accept');return this['forceDefaultExecution'](()=>_0x30b321(_0x595cd8,_0x437c02,_0x4a3305)),null;}_0x437d98['push'](..._0x595cd8);let _0x31cfdd=!0x0;for(const _0x470bc8 of _0x437d98)if(!this['_rangeIsInLocalUserInsertion'](_0x470bc8)){_0x31cfdd=!0x1;break;}if(_0x31cfdd&&'always'!==this['_trackFormatChanges']){const _0x41b08b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x27b29f,'accept');return this['forceDefaultExecution'](()=>_0x41b08b(_0x595cd8,_0x437c02,_0x4a3305)),null;}const _0x2f3fed=this['editor']['plugins']['get']('Users')['me'];for(const _0x40c2be of this['getSuggestions']()){const _0xf67284=_0x40c2be['data'];if(_0x40c2be['author']['id']!=_0x2f3fed['id'])continue;if('formatBlock'!=_0x40c2be['type']||_0xf67284['formatGroupId']!=_0x437c02['formatGroupId'])continue;if(!Xt(_0x40c2be,_0x4a3305))continue;const _0x53693f=_0x40c2be['subType']==_0x27b29f;for(let _0x745c41=0x0;_0x745c41<_0x595cd8['length'];_0x745c41++){const _0x3107a6=_0x595cd8[_0x745c41];for(const _0x3fe4a4 of _0x40c2be['getMarkers']()){const _0x26d315=_0x3fe4a4['getRange']();if(_0x3107a6['isEqual'](_0x26d315)){_0x53693f?(_0x595cd8['splice'](_0x745c41,0x1),_0x745c41--):_0x40c2be['removeMarker'](_0x3fe4a4['name']);break;}}}}if(0x0==_0x595cd8['length'])return null;const _0x3d1353=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x27b29f,'join');for(const _0x1f002e of this['getSuggestions']()){const _0x1ea12a=_0x1f002e['data'];if(_0x1f002e['author']['id']==_0x2f3fed['id']&&('formatBlock'==_0x1f002e['type']&&_0x1ea12a['formatGroupId']==_0x437c02['formatGroupId']&&_0x1f002e['subType']==_0x27b29f&&Xt(_0x1f002e,_0x4a3305)&&(_0x3d1353(_0x1f002e['getRanges'](),_0x595cd8)||_0x3d1353(_0x595cd8,_0x1f002e['getRanges']())))){for(const _0x4cb53a of _0x595cd8)_0x1f002e['addRange'](_0x4cb53a);return _0x1f002e;}}const _0x188b39=_0x334525(),_0x4ba12c=_0x2f3fed['id'],_0x5e137d='formatBlock:'+_0x27b29f,_0x397b7e=this['_setSuggestionData']({'id':_0x188b39,'type':_0x5e137d,'data':_0x437c02,'createdAt':new Date(),'authorId':_0x4ba12c,'attributes':_0x4a3305});for(const _0x5d5299 of _0x595cd8)this['_addSuggestionMarker'](_0x5e137d,_0x188b39,_0x4ba12c,_0x5d5299,T['getMultiRangeId']());return _0x397b7e;}['markDeletion'](_0x184885,_0x46cb2f=null,_0x3dcf60={}){if(_0x184885['isCollapsed'])return null;const _0x3a3638=this['editor']['plugins']['get']('Users')['me'],_0x50f160=new _0x1f4d12(_0x184885['start'],_0x184885['end']);this['_trackingSessionId']&&(_0x3dcf60['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x263eb2,meta:_0x13a7be}of this['_findSuggestions'](_0x50f160,'insertion'))if(_0x13a7be['isOwn']&&!_0x13a7be['isNextTo']){if(_0x263eb2['isMultiRange']){const _0x46a74d=_0x263eb2['getRanges']()['filter'](_0x6706eb=>'$graveyard'!=_0x6706eb['root']['rootName']);_0x46a74d['every'](_0x521fa2=>_0x50f160['containsRange'](_0x521fa2,!0x0))&&_0x263eb2['discard']();if(_0x46a74d['some'](_0x599db0=>_0x599db0['containsRange'](_0x50f160,!0x0))){const _0x54740f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46cb2f,'accept');return this['forceDefaultExecution'](()=>_0x54740f([_0x50f160],null,_0x3dcf60)),null;}}else{const _0x3fac4c=_0x50f160['getIntersection'](_0x263eb2['getFirstRange']());null!==_0x3fac4c&&_0x263eb2['_onDiscard']([_0x3fac4c],null,_0x3dcf60);}}if(_0x50f160['detach'](),_0x50f160['isCollapsed']||'$graveyard'==_0x50f160['root']['rootName'])return null;let _0x2f3ab4=null,_0x12f282=_0x50f160['start'],_0x2351aa=_0x50f160['end'];const _0x2b4426=this['_findSuggestions'](_0x50f160,'deletion');for(const {suggestion:_0x5f327d,meta:_0x552809}of _0x2b4426){const _0x194c13=this['_model']['createRange'](_0x12f282,_0x2351aa);if(_0x552809['isOwn']&&(this['_mergeNestedSuggestions']||!_0x552809['containsRangeInObject']&&!_0x552809['isInsideObject'])){if(_0x5f327d['isMultiRange']){if(!Xt(_0x5f327d,_0x3dcf60))continue;let _0x1fff16=!0x0;for(const _0x2c888b of _0x5f327d['getRanges']()){if(_0x2c888b['containsRange'](_0x194c13,!0x0))return _0x5f327d;_0x194c13['containsRange'](_0x2c888b)||(_0x1fff16=!0x1);}_0x1fff16&&_0x5f327d['discard']();}else{const _0x40ffe4=_0x5f327d['getFirstRange']();if(_0x40ffe4['containsRange'](_0x194c13,!0x0))return _0x5f327d;if(!Xt(_0x5f327d,_0x3dcf60)){_0x194c13['containsRange'](_0x40ffe4)?_0x5f327d['removeMarkers']():_0x40ffe4['containsPosition'](_0x12f282)?_0x12f282=_0x40ffe4['end']:_0x40ffe4['containsPosition'](_0x2351aa)&&(_0x2351aa=_0x40ffe4['start']);continue;}_0x12f282=_0x12f282['isBefore'](_0x40ffe4['start'])?_0x12f282:_0x40ffe4['start'],_0x2351aa=_0x2351aa['isAfter'](_0x40ffe4['end'])?_0x2351aa:_0x40ffe4['end'],_0x3dcf60=Object['assign']({},_0x5f327d['attributes']),_0x2f3ab4?_0x40ffe4['start']['isBefore'](_0x2f3ab4['getFirstRange']()['start'])?(_0x2f3ab4['removeMarkers'](),_0x2f3ab4=_0x5f327d):_0x5f327d['removeMarkers']():_0x2f3ab4=_0x5f327d;}}}if(_0x2f3ab4)return this['_setSuggestionRange'](_0x2f3ab4,this['_model']['createRange'](_0x12f282,_0x2351aa)),_0x2f3ab4;{const _0x5281ab=_0x334525(),_0x3a5a1c=this['_model']['createRange'](_0x12f282,_0x2351aa),_0x239452=_0x3a3638['id'],_0x15e98e=_0x46cb2f?'deletion:'+_0x46cb2f:'deletion',_0x8dcf51=this['_setSuggestionData']({'id':_0x5281ab,'type':_0x15e98e,'createdAt':new Date(),'authorId':_0x239452,'attributes':_0x3dcf60});return this['_addSuggestionMarker'](_0x15e98e,_0x5281ab,_0x239452,_0x3a5a1c),_0x8dcf51;}}['markMultiRangeDeletion'](_0x3f4547,_0x25c8b5='multi',_0x38f1f5={}){const _0x144468=this['editor']['plugins']['get']('Users')['me'],_0x291b40=_0x3f4547['map'](_0xb77632=>new _0x1f4d12(_0xb77632['start'],_0xb77632['end'])),_0x799289=new Set();this['_trackingSessionId']&&(_0x38f1f5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x235d34,meta:_0x5c6c34}of this['_findSuggestions'](_0x291b40,'insertion'))_0x5c6c34['isOwn']&&!_0x5c6c34['isNextTo']&&_0x799289['add'](_0x235d34);for(const _0x3c38fe of _0x799289)if(_0x3c38fe['isMultiRange']){const _0x3bb8f8=_0x3c38fe['getRanges']();(!_0x3c38fe['attributes']||!_0x3c38fe['attributes']['skipNestingCheck'])&&(_0x3bb8f8['every'](_0x5ab33f=>_0x291b40['some'](_0x23b91b=>_0x23b91b['containsRange'](_0x5ab33f,!0x0)))&&_0x3c38fe['discard']());if(_0x291b40['every'](_0xacec02=>_0x3bb8f8['some'](_0x39df3b=>_0x39df3b['containsRange'](_0xacec02,!0x0)))){const _0x580ad4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25c8b5,'accept');return this['forceDefaultExecution'](()=>_0x580ad4(_0x3f4547,null,_0x38f1f5)),null;}}else{const _0x5acc79=_0x3c38fe['getFirstRange']();_0x291b40['some'](_0x274cde=>_0x274cde['containsRange'](_0x5acc79,!0x0))&&_0x3c38fe['discard']();if(_0x291b40['every'](_0x28b0e3=>_0x5acc79['containsRange'](_0x28b0e3,!0x0))){const _0x152983=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25c8b5,'accept');return this['forceDefaultExecution'](()=>_0x152983(_0x291b40,null,_0x38f1f5)),null;}}const _0x5425cf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25c8b5,'join');let _0x428c6c=null;for(const _0x30557c of this['getSuggestions']())if(_0x30557c['author']['id']==_0x144468['id']&&_0x30557c['isInContent']&&'deletion'==_0x30557c['type']&&_0x30557c['subType']==_0x25c8b5&&Xt(_0x30557c,_0x38f1f5)&&(_0x5425cf(_0x30557c['getRanges'](),_0x291b40)||_0x5425cf(_0x291b40,_0x30557c['getRanges']()))){if(_0x428c6c){if(_0x30557c['commentThread']&&_0x30557c['commentThread']['length'])continue;for(const _0xfa0224 of _0x30557c['getRanges']())_0x428c6c['isIntersectingWithRange'](_0xfa0224)||_0x428c6c['addRange'](_0xfa0224);_0x30557c['removeMarkers']();}else{_0x428c6c=_0x30557c;for(const _0x14bc67 of _0x291b40)_0x30557c['isIntersectingWithRange'](_0x14bc67)||_0x30557c['addRange'](_0x14bc67);}}if(_0x428c6c)return _0x428c6c;_0x799289['clear']();for(const {suggestion:_0x5aeb85,meta:_0x561220}of this['_findSuggestions'](_0x291b40,'deletion'))_0x561220['isOwn']&&(this['_mergeNestedSuggestions']||!_0x561220['containsRangeInObject']&&!_0x561220['isInsideObject'])&&Xt(_0x5aeb85,_0x38f1f5)&&_0x799289['add'](_0x5aeb85);for(const _0x2c92bd of _0x799289){const _0x14c77f=_0x2c92bd['getRanges']();if(!_0x38f1f5||!_0x38f1f5['skipNestingCheck']){if(_0x291b40['every'](_0x1d4a38=>_0x14c77f['some'](_0x3bcdcf=>_0x3bcdcf['containsRange'](_0x1d4a38,!0x0))))return _0x2c92bd;}(!_0x2c92bd['attributes']||!_0x2c92bd['attributes']['skipNestingCheck'])&&(_0x14c77f['every'](_0x1103b1=>_0x291b40['some'](_0x2226c1=>_0x2226c1['containsRange'](_0x1103b1,!0x0)))&&_0x2c92bd['discard']());}const _0x2f96ca=_0x334525(),_0x100f6d=_0x144468['id'],_0x57df9b='deletion:'+_0x25c8b5,_0x5af45c=this['_setSuggestionData']({'id':_0x2f96ca,'type':_0x57df9b,'createdAt':new Date(),'authorId':_0x100f6d,'attributes':_0x38f1f5});for(const _0x2c96f1 of _0x291b40)_0x2c96f1['detach'](),_0x2c96f1['isCollapsed']||'$graveyard'==_0x2c96f1['root']['rootName']||this['_addSuggestionMarker'](_0x57df9b,_0x2f96ca,_0x100f6d,_0x2c96f1,T['getMultiRangeId']());return _0x5af45c;}['markAttributeChange'](_0x33e986,_0x50651a,_0x3c07b6,_0x5d3bf5,_0x6faa21){if(_0x33e986['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x34a254=this['editor']['plugins']['get']('Users')['me']['id'],_0x440535=Array['from'](this['_suggestions']['values']())['filter'](_0x2c5438=>'attribute'==_0x2c5438['type']&&_0x2c5438['data']['key']==_0x50651a&&_0x2c5438['isIntersectingWithRange'](_0x33e986));if(this['_trackingSessionId']&&(_0x6faa21['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x338bfa=this['_findSuggestions'](_0x33e986,'insertion')['filter'](({meta:_0x9ecd64})=>_0x9ecd64['isOwn']&&!_0x9ecd64['isInsideObject']&&!_0x9ecd64['isNextTo'])['map'](({suggestion:_0x539cce})=>_0x539cce);_0x440535['unshift'](..._0x338bfa);}const _0x44ec4f=new Map([[_0x33e986,_0x3c07b6]]);for(const _0x29814f of _0x440535){const _0x5d3820='attribute'==_0x29814f['type']?_0x29814f['data']['oldValue']:void 0x0,_0x483216=_0x29814f['getFirstRange'](),_0x38154e=Array['from'](_0x44ec4f['keys']())['find'](_0x9a06f0=>_0x9a06f0['isIntersecting'](_0x483216));if(!_0x38154e)continue;const _0x246ee3=_0x38154e['getDifference'](_0x483216);this['_isBlockAttribute'](_0x50651a)&&'insertion'==_0x29814f['type']&&0x0!=_0x246ee3['length']||(_0x44ec4f['delete'](_0x38154e),_0x246ee3['forEach'](_0x13ca67=>{_0x44ec4f['set'](_0x13ca67,_0x3c07b6);}),'insertion'!=_0x29814f['type']&&_0x5d3820!=_0x5d3bf5&&_0x44ec4f['set'](_0x38154e['getIntersection'](_0x483216),_0x5d3820));}const _0x90743c=[];for(const [_0x2e3811,_0xdb6781]of _0x44ec4f){const _0x174eb8=_0x334525(),_0x4cbef={'key':_0x50651a,'oldValue':_0xdb6781,'newValue':_0x5d3bf5};_0x50651a['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':_0x50651a});const _0x555fa4=('attribute:'+(_0x50651a+'|'+Lt({'newValue':_0x5d3bf5})))['substring'](0x0,0x3c),_0x16d4a7=this['_setSuggestionData']({'id':_0x174eb8,'type':_0x555fa4,'data':_0x4cbef,'createdAt':new Date(),'authorId':_0x34a254,'attributes':_0x6faa21});_0x90743c['push'](_0x16d4a7),this['_addSuggestionMarker'](_0x555fa4,_0x174eb8,_0x34a254,_0x2e3811);}return _0x90743c;}['enableDefaultAttributesIntegration'](_0x1da9ef){this['enableCommand'](_0x1da9ef,(_0x42083f,..._0x65ef5d)=>{this['recordAttributeChanges'](()=>{_0x42083f(..._0x65ef5d);});});}['registerBlockAttribute'](_0x3dbf3d){this['_blockAttributeKeys']['add'](_0x3dbf3d);}['registerInlineAttribute'](_0x211230){this['_inlineAttributeKeys']['add'](_0x211230);}['startTrackingSession'](_0x955eac){return this['_trackingSessionId']=void 0x0!==_0x955eac?_0x955eac:_0x334525(),this['_trackingSessionId'];}['_getAttributeKey'](_0x9a8d7a){return'attribute'==_0x9a8d7a['type']?_0x9a8d7a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x25927e,_0x1d79e6){const _0xea648d=_0x25927e['getFirstMarker']();this['_model']['change'](_0xfc4f3e=>{_0xfc4f3e['updateMarker'](_0xea648d,{'range':_0x1d79e6});});}['_addThreadToSuggestion'](_0x4e0d31){const _0x5b9f66=_0x4e0d31['id'],_0x167779=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5b9f66)||this['_commentsRepository']['addCommentThread']({'channelId':_0x167779,'threadId':_0x5b9f66,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3a0ef1=this['_commentsRepository']['getCommentThread'](_0x5b9f66);_0x3a0ef1['unbind']('isRemovable'),_0x3a0ef1['isRemovable']=!0x1,_0x4e0d31['commentThread']=_0x3a0ef1;}['_checkSuggestionCorrectness'](_0x402e20,_0x3afe5c,_0x33fc72,_0x1d2423){if(_0x402e20['type']!=_0x3afe5c||_0x402e20['subType']!=_0x33fc72||_0x402e20['creator']['id']!=_0x1d2423)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x55c846('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x33081f,_0x2d8c64){const _0x3f528c=_0x33081f['getFirstRange']();if(_0x2d8c64['isEqual'](_0x3f528c))_0x33081f['removeMarkers']();else{if(_0x3f528c['containsRange'](_0x2d8c64)){const _0xa63063=this['_model']['createPositionAt'](_0x2d8c64['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x33081f,this['_model']['createRange'](_0x3f528c['start'],_0xa63063));const _0x230373=_0x334525(),_0x49048a=_0x33081f['creator']['id'],_0x42ee4=_0x33081f['type']+':'+_0x33081f['subType'];this['_setSuggestionData']({'id':_0x230373,'type':_0x42ee4,'createdAt':new Date(),'authorId':_0x49048a,'data':_0x33081f['data'],'attributes':_0x33081f['attributes']});const _0x25409b=this['_model']['createPositionAt'](_0x2d8c64['end']['parent'],'after'),_0x46efd1=this['_model']['createRange'](_0x25409b,_0x3f528c['end']);this['_addSuggestionMarker'](_0x42ee4,_0x230373,_0x49048a,_0x46efd1);}else{if(_0x3f528c['containsPosition'](_0x2d8c64['start'])){const _0x2463c8=this['_model']['createPositionAt'](_0x2d8c64['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x33081f,this['_model']['createRange'](_0x3f528c['start'],_0x2463c8));}else{const _0x4010d5=this['_model']['createPositionAt'](_0x2d8c64['end']['parent'],'after');this['_setSuggestionRange'](_0x33081f,this['_model']['createRange'](_0x4010d5,_0x3f528c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1cafdf){for(const {suggestion:_0x5ebcc1,meta:_0x197424}of this['_findSuggestions'](_0x1cafdf,'insertion')){if(!_0x197424['isOwn'])continue;const _0x2f399b=_0x5ebcc1['getRanges']();for(const _0x2cd584 of _0x2f399b)if(!_0x1cafdf['getDifference'](_0x2cd584)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2237f9){return this['editor']['plugins']['get']('Users')['getUser'](_0x2237f9);}['_getExternalAuthor'](_0x543d85){const _0x1b58f1=this['editor']['plugins']['get']('Users'),_0x4acd95=_0x504617('external:'+_0x543d85),_0x2ec3ef=_0x1b58f1['getUser'](_0x4acd95);return _0x2ec3ef||_0x1b58f1['addUser']({'id':_0x4acd95,'name':_0x543d85});}['_createSuggestion'](_0x43d9a3,_0x4bf1a,_0xb9b5aa,_0x90ed95,_0x4b9305,_0x361d42){const _0x163159=this['_getAuthorFromId'](_0x90ed95);if(!_0x163159)throw new _0x55c846('track-changes-user-not-found',this,{'authorId':_0x90ed95,'suggestionId':_0xb9b5aa});const _0xd92221=this['_suggestionFactory']['buildSuggestion'](_0x43d9a3,_0x4bf1a,_0xb9b5aa,_0x163159,_0x4b9305,_0x34268d=>{this['_updateSuggestionData'](_0xb9b5aa,{'attributes':_0x34268d});const _0x3c7756=this['getSuggestion'](_0xb9b5aa);this['_joinWithAdjacentSuggestions'](new Set([_0x3c7756])),this['_refreshSuggestionsChain'](new Set([_0x3c7756]));},_0x361d42);return this['listenTo'](_0xd92221,'accept',()=>{this['_updateSuggestionData'](_0xb9b5aa,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xd92221,'discard',()=>{this['_updateSuggestionData'](_0xb9b5aa,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xb9b5aa,_0xd92221),this['_suggestionState']['set'](_0xd92221,'notReady'),_0xd92221;}['_splitMarkerName'](_0x2f3b65){const _0x430b0f=_0x2f3b65['split'](':');return{'group':_0x430b0f[0x0],'type':_0x430b0f[0x1],'subType':_0x430b0f['length']>=0x5?_0x430b0f[0x2]:null,'id':_0x430b0f['length']<0x5?_0x430b0f[0x2]:_0x430b0f[0x3],'authorId':_0x430b0f['length']<0x5?_0x430b0f[0x3]:_0x430b0f[0x4],'markerCount':0x6==_0x430b0f['length']?_0x430b0f[0x5]:null};}['_breakSuggestionMarker'](_0x370ce4,_0x499358,_0x40a817){const _0x1c6568=_0x370ce4['getFirstRange'](),_0x4bae57=_0x1c6568['start'],_0x3d65c8=_0x1c6568['end'];this['_setSuggestionRange'](_0x370ce4,this['_model']['createRange'](_0x4bae57,_0x499358));const _0x3a6fad=_0x334525(),_0x44f13c=_0x370ce4['creator']['id'],_0x1da898=_0x370ce4['type']+(_0x370ce4['subType']?':'+_0x370ce4['subType']:'');this['_setSuggestionData']({'id':_0x3a6fad,'type':_0x1da898,'createdAt':new Date(),'authorId':_0x44f13c,'originalSuggestionId':_0x370ce4['_originalSuggestionId']||_0x370ce4['id'],'attributes':_0x370ce4['attributes'],'data':_0x370ce4['data']});const _0x1025e9=this['_getAttributeKey'](_0x370ce4);('formatBlock'==_0x370ce4['type']||_0x1025e9&&this['_isBlockAttribute'](_0x1025e9))&&(_0x40a817=this['_model']['createPositionBefore'](_0x40a817['parent'])),this['_addSuggestionMarker'](_0x1da898,_0x3a6fad,_0x44f13c,this['_model']['createRange'](_0x40a817,_0x3d65c8));}['_findSuggestions'](_0x3cdc08,_0x3fd1da=null){const _0x146508=[],_0x117a2f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3cdc08)||(_0x3cdc08=[_0x3cdc08]);for(const _0x542d8c of this['getSuggestions']()){if(!_0x542d8c['isInContent'])continue;if(_0x3fd1da&&_0x542d8c['type']!=_0x3fd1da)continue;let _0x1d1cce=!0x1;for(const _0xb7453b of _0x542d8c['getRanges']()){for(const _0x342169 of _0x3cdc08){const _0x1a4028=_0x342169['start']['isEqual'](_0xb7453b['end'])||_0x342169['end']['isEqual'](_0xb7453b['start']);if(_0x1a4028||_0x342169['getIntersection'](_0xb7453b)){const _0x1b0c82=_0x342169['containsRange'](_0xb7453b)&&Ft(this['_model']['schema'],_0xb7453b['start'],_0x342169),_0x2c400f=_0xb7453b['containsRange'](_0x342169)&&Ft(this['_model']['schema'],_0x342169['start'],_0xb7453b);_0x146508['push']({'suggestion':_0x542d8c,'meta':{'isOwn':_0x117a2f==_0x542d8c['author'],'isNextTo':_0x1a4028,'isInsideObject':_0x1b0c82,'containsRangeInObject':_0x2c400f}}),_0x1d1cce=!0x0;break;}}if(_0x1d1cce)break;}}return _0x146508;}['_addSuggestionMarker'](_0x426039,_0x6be08b,_0x17281c,_0x4716da,_0x42b1c5){this['_model']['change'](_0x34dd54=>{let _0x15a216='suggestion:'+_0x426039+':'+_0x6be08b+':'+_0x17281c;_0x42b1c5&&(_0x15a216=_0x15a216+':'+_0x42b1c5),_0x34dd54['addMarker'](_0x15a216,{'range':_0x4716da,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x142cf3){const _0x20a6ad=_0x142cf3['previous'],_0x4ffde2=_0x142cf3['next'];_0x142cf3['previous']=null,_0x142cf3['next']=null,null!=_0x20a6ad&&_0x20a6ad['next']==_0x142cf3&&(_0x20a6ad['next']=_0x4ffde2),null!=_0x4ffde2&&_0x4ffde2['previous']==_0x142cf3&&(_0x4ffde2['previous']=_0x20a6ad),'ready'==this['_suggestionState']['get'](_0x142cf3)&&(this['_suggestionState']['set'](_0x142cf3,'removed'),this['fire']('suggestionUnloaded',_0x142cf3,_0x20a6ad,_0x4ffde2));}['_setSuggestionData'](_0x123d1c){const _0x2ce42a=_0x123d1c['id'],_0x230870=this['addSuggestionData'](_0x123d1c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4f0d40=this['editor']['plugins']['get']('PendingActions'),_0x3270b7=_0x230870['hasComments'],_0x5d7dc9=_0x230870['subType']?_0x230870['type']+':'+_0x230870['subType']:_0x230870['type'],_0x519428=this['editor']['locale'],_0x654abb=_0x4f0d40['add'](o(_0x519428,'PENDING_ACTION_SUGGESTION')),_0x35fb87={'id':_0x2ce42a,'type':_0x5d7dc9,'hasComments':_0x3270b7,'data':_0x123d1c['data']||null,'originalSuggestionId':_0x123d1c['originalSuggestionId']||null,'attributes':_0x230870['attributes']};this['_adapter']['addSuggestion'](_0x35fb87)['then'](_0x1fb34b=>{_0x230870['_saved']=!0x0,_0x4f0d40['remove'](_0x654abb),_0x1fb34b&&_0x1fb34b['createdAt']&&(this['_suggestions']['get'](_0x2ce42a)['createdAt']=_0x1fb34b['createdAt']);})['catch'](_0x1f3a8d=>{throw _0x42dd4f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x230870['discard']();}),_0x230870['stopListening'](),this['_suggestions']['delete'](_0x230870['id']),this['_suggestionState']['delete'](_0x230870),_0x1f3a8d;});}return _0x230870;}['_isBlockAttribute'](_0x93ea12){return this['_blockAttributeKeys']['has'](_0x93ea12);}['_isInlineAttribute'](_0x260d08){return this['_inlineAttributeKeys']['has'](_0x260d08);}['_updateSuggestionData'](_0x1de080,_0x203aa2){const _0x1c9df1=this['editor']['plugins']['get']('PendingActions'),_0xf6de6b=this['getSuggestion'](_0x1de080);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xf6de6b['_saved']){const _0x35847d=_0x1c9df1['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1de080,_0x203aa2)['then'](()=>{_0x1c9df1['remove'](_0x35847d);});}else _0xf6de6b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1de080,_0x203aa2);});}}['_getSuggestionData'](_0x3e8a90){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x55c846('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3e8a90);}['_handleNewSuggestionMarker'](_0x3a3fdd){const {id:_0x49f744,type:_0x713a22,subType:_0x5011ea,authorId:_0x30e5c1}=this['_splitMarkerName'](_0x3a3fdd),_0x2ecbde=this['_suggestions']['get'](_0x49f744)||this['_createSuggestion'](_0x713a22,_0x5011ea,_0x49f744,_0x30e5c1,{});switch(this['_checkSuggestionCorrectness'](_0x2ecbde,_0x713a22,_0x5011ea,_0x30e5c1),this['_suggestionState']['get'](_0x2ecbde)){case'notReady':this['_getSuggestionData'](_0x49f744)['then'](_0x2b5fb4=>{let _0x51add2=Promise['resolve']();_0x2b5fb4['hasComments']&&(_0x51add2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x49f744})),_0x51add2['then'](()=>{this['addSuggestionData'](_0x2b5fb4)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2ecbde,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x49f744,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2ecbde,'ready'),this['fire']('suggestionLoaded',_0x2ecbde);break;case'ready':this['fire']('suggestionChanged',_0x2ecbde);}return _0x2ecbde['addMarkerName'](_0x3a3fdd),_0x2ecbde;}['_refreshSuggestionsChain'](_0x4dfd25){const _0x5d8ba4=Array['from'](_0x4dfd25),_0x44c717=_0x5d8ba4['filter'](_0xf9cb2a=>'attribute'==_0xf9cb2a['type']);this['_refreshAttributeSuggestionsChain'](_0x44c717);const _0x5e9b46=_0x5d8ba4['filter'](_0x22e998=>!_0x22e998['isMultiRange']&&'attribute'!=_0x22e998['type']),_0x197f6f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x521257=>!_0x521257['isMultiRange']&&'attribute'!=_0x521257['type']),_0x870e50=_0x197f6f['filter'](_0xb0b1c3=>!_0x4dfd25['has'](_0xb0b1c3)),_0x363eb2=new Map(_0x197f6f['map'](_0x593aac=>[_0x593aac,this['_suggestionFactory']['getSuggestionCallback'](_0x593aac['type'],_0x593aac['subType'],'chain')])),_0x4e2491=new Map(_0x197f6f['map'](_0x1a962b=>[_0x1a962b,_0x1a962b['getFirstRange']()])),_0x2358c2=new Set(),_0x2e8ea3=new Set();for(let _0x49f6ff=0x0;_0x49f6ff<_0x5e9b46['length'];_0x49f6ff++)_0x5e9276(_0x5e9b46[_0x49f6ff],_0x5e9b46,_0x49f6ff+0x1);for(let _0x32a57d=0x0;_0x32a57d<_0x5e9b46['length'];_0x32a57d++)_0x5e9276(_0x5e9b46[_0x32a57d],_0x870e50,0x0);const _0x15265f=new Set();for(let _0x3d1890=0x0;_0x3d1890<_0x5e9b46['length'];_0x3d1890++){const _0x5ed22c=_0x5e9b46[_0x3d1890];!_0x2e8ea3['has'](_0x5ed22c)&&_0x5ed22c['previous']&&(_0x15265f['add'](_0x5ed22c['previous']),_0x5ed22c['previous']['next']===_0x5ed22c&&(_0x5ed22c['previous']['next']=null),_0x5ed22c['previous']=null),!_0x2358c2['has'](_0x5ed22c)&&_0x5ed22c['next']&&(_0x15265f['add'](_0x5ed22c['next']),_0x5ed22c['next']['previous']===_0x5ed22c&&(_0x5ed22c['next']['previous']=null),_0x5ed22c['next']=null);}function _0x5e9276(_0x46bb27,_0x564b9e,_0x46f533){for(let _0x5a2c15=_0x46f533;_0x5a2c15<_0x564b9e['length'];_0x5a2c15++){const _0x22aea3=_0x5a060c(_0x46bb27,_0x564b9e[_0x5a2c15]);_0x22aea3&&(_0x22aea3[0x0]['next']=_0x22aea3[0x1],_0x22aea3[0x1]['previous']=_0x22aea3[0x0],_0x2358c2['add'](_0x22aea3[0x0]),_0x2e8ea3['add'](_0x22aea3[0x1]));}}function _0x5a060c(_0x2ea890,_0x3bcb4a){if(_0x2ea890['author']['id']!==_0x3bcb4a['author']['id'])return null;const _0x40503c=_0x363eb2['get'](_0x2ea890)(_0x2ea890,_0x3bcb4a,_0x4e2491['get'](_0x2ea890),_0x4e2491['get'](_0x3bcb4a));if(!_0x40503c)return null;return _0x363eb2['get'](_0x3bcb4a)(_0x2ea890,_0x3bcb4a,_0x4e2491['get'](_0x2ea890),_0x4e2491['get'](_0x3bcb4a))?_0x40503c[0x1]['commentThread']&&_0x40503c[0x1]['commentThread']['length']?null:_0x40503c:null;}_0x15265f['size']&&this['_refreshSuggestionsChain'](_0x15265f);}['_refreshAttributeSuggestionsChain'](_0x40ad15){if(0x0==_0x40ad15['length'])return;const _0x3d2845=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x539e38=>'attribute'==_0x539e38['type']&&_0x539e38['_isDataLoaded']),_0xc4c6cb=[],_0x4053e6=new Map();for(const _0x23b04c of _0x3d2845){const _0x2ee2e2=_0x504617(_0x23b04c['attributes']);_0x4053e6['has'](_0x2ee2e2)||(_0x4053e6['set'](_0x2ee2e2,_0xc4c6cb['length']),_0xc4c6cb['push']([]));const _0x521aba=_0x4053e6['get'](_0x2ee2e2);_0xc4c6cb[_0x521aba]['push'](_0x23b04c);}!(function(){_0xc4c6cb['sort']((_0x40bb60,_0x222b85)=>{const _0x167480=_0x40bb60[0x0]['createdAt'],_0x47ab12=_0x222b85[0x0]['createdAt'];return _0x167480==_0x47ab12?_0x40bb60[0x0]['attributes']['groupId']<_0x222b85[0x0]['attributes']['groupId']?-0x1:0x1:_0x167480<_0x47ab12?-0x1:0x1;});for(const _0x231b1f of _0xc4c6cb)_0x231b1f['sort']((_0x3feda3,_0x3260d3)=>_0x3feda3['id']<_0x3260d3['id']?-0x1:0x1);}());for(let _0x156ef0=0x0;_0x156ef0<_0xc4c6cb['length'];_0x156ef0++){if(0x0==_0xc4c6cb[_0x156ef0]['length'])continue;const _0x4b7799=[];for(let _0x30b218=_0x156ef0+0x1;_0x30b218<_0xc4c6cb['length'];_0x30b218++)0x0!=_0xc4c6cb[_0x30b218]['length']&&_0x466225(_0xc4c6cb[_0x156ef0],_0xc4c6cb[_0x30b218])&&_0x4b7799['push'](_0x30b218);for(const _0x2db5dd of _0x4b7799)_0xc4c6cb[_0x156ef0]=_0xc4c6cb[_0x156ef0]['concat'](_0xc4c6cb[_0x2db5dd]),_0xc4c6cb[_0x2db5dd]=[];}for(const _0x275a6d of _0xc4c6cb)for(let _0x30d112=0x0;_0x30d112<_0x275a6d['length'];_0x30d112++){const _0x3ca061=_0x275a6d[_0x30d112+0x1]||null;_0x275a6d[_0x30d112]['next']!==_0x3ca061&&(_0x275a6d[_0x30d112]['next']=_0x3ca061);}for(const _0x69d210 of _0xc4c6cb)for(let _0x9a6b8d=0x0;_0x9a6b8d<_0x69d210['length'];_0x9a6b8d++){const _0x1bded2=_0x69d210[_0x9a6b8d-0x1]||null;_0x69d210[_0x9a6b8d]['previous']!==_0x1bded2&&(_0x69d210[_0x9a6b8d]['previous']=_0x1bded2);}function _0x466225(_0x4389d5,_0x3d76e){if(_0x4389d5[0x0]['attributes']['groupId']!==_0x3d76e[0x0]['attributes']['groupId']&&_0x4389d5[0x0]['author']!==_0x3d76e[0x0]['author'])return!0x1;if(!function(_0x23566d,_0x527f7d){if(!_0x23566d['hasComments']&&!_0x527f7d['hasComments'])return!0x0;if(_0x23566d['hasComments']&&_0x527f7d['hasComments'])return!0x1;if(_0x23566d['hasComments']&&_0x527f7d['createdAt']<_0x23566d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x527f7d['hasComments']&&_0x23566d['createdAt']<_0x527f7d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4389d5[0x0],_0x3d76e[0x0]))return!0x1;const _0x1b12f6=Ut(_0x4389d5[0x0]['attributes'],['groupId','trackingSessionId']),_0x30515b=Ut(_0x3d76e[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x40eb7f(_0x1b12f6,_0x30515b))return!0x1;if(_0x4389d5[0x0]['attributes']['groupId']==_0x3d76e[0x0]['attributes']['groupId'])return!0x0;if(_0x4389d5[0x0]['attributes']['trackingSessionId']!==_0x3d76e[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4389d5['every'](_0x325cc9=>_0x3d76e['some'](_0x435860=>_0x325cc9['getFirstRange']()['isEqual'](_0x435860['getFirstRange']())))&&_0x3d76e['every'](_0x2bc9c9=>_0x4389d5['some'](_0x1db8ab=>_0x2bc9c9['getFirstRange']()['isEqual'](_0x1db8ab['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1edd6d){const _0x3f5b26=Array['from'](_0x1edd6d),_0x39a715=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5a95ee=_0x39a715['filter'](_0x54c43d=>!_0x1edd6d['has'](_0x54c43d)),_0xa3372b=new Map(_0x3f5b26['map'](_0x3c5f57=>[_0x3c5f57,this['_suggestionFactory']['getSuggestionCallback'](_0x3c5f57['type'],_0x3c5f57['subType'],'join')])),_0x5b0b72=new Map(_0x39a715['map'](_0x395f04=>[_0x395f04,_0x395f04['getRanges']()]));for(let _0x256986=0x0;_0x256986<_0x3f5b26['length'];_0x256986++){if(_0x3d021c(this,_0x3f5b26[_0x256986],_0x3f5b26,_0x256986+0x1))return!0x0;}for(let _0x111829=0x0;_0x111829<_0x3f5b26['length'];_0x111829++){if(_0x3d021c(this,_0x3f5b26[_0x111829],_0x5a95ee,0x0))return!0x0;}return!0x1;function _0x3d021c(_0x29d485,_0x30455e,_0x3b10aa,_0x35d9d5){for(let _0xe04f12=_0x35d9d5;_0xe04f12<_0x3b10aa['length'];_0xe04f12++){const _0x2b8ef0=_0x3b10aa[_0xe04f12];if(_0x2b8ef0['type']!==_0x30455e['type']||_0x2b8ef0['author']['id']!==_0x30455e['author']['id']||_0x2b8ef0['subType']!==_0x30455e['subType'])continue;if(!Qt(_0x30455e,_0x2b8ef0))continue;if('attribute'==_0x30455e['type']&&_0x30455e['data']['oldValue']!=_0x2b8ef0['data']['oldValue'])continue;if('attribute'==_0x30455e['type']&&_0x29d485['_isBlockAttribute'](_0x30455e['data']['key']))continue;if('formatBlock'==_0x30455e['type']){const _0x4392d2=_0x29d485['editor']['model'],_0x4f08ef=_0x30455e['getContainedElement']();if(_0x4f08ef&&(_0x4392d2['schema']['isObject'](_0x4f08ef)||_0x4392d2['schema']['isLimit'](_0x4f08ef)))continue;}const _0x4d08ef=_0xa3372b['get'](_0x30455e),_0x8742a5=_0x5b0b72['get'](_0x30455e),_0x498aa6=_0x5b0b72['get'](_0x2b8ef0),_0x4f00b1=_0x30455e['commentThread']&&_0x30455e['commentThread']['length'],_0x500a67=_0x2b8ef0['commentThread']&&_0x2b8ef0['commentThread']['length'];if(!_0x4f00b1&&_0x4d08ef(_0x498aa6,_0x8742a5))return _0x29d485['_joinSuggestions'](_0x2b8ef0,_0x30455e),_0x5b0b72['delete'](_0x30455e),!0x0;if(!_0x500a67&&_0x4d08ef(_0x8742a5,_0x498aa6))return _0x29d485['_joinSuggestions'](_0x30455e,_0x2b8ef0),_0x5b0b72['delete'](_0x2b8ef0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x340e7e,_0x37df40){if(_0x340e7e['isMultiRange']){for(const _0x58f543 of _0x37df40['getRanges']())_0x340e7e['addRange'](_0x58f543);}else{const _0x634396=_0x37df40['getFirstRange']()['end'];this['_setSuggestionRange'](_0x340e7e,this['_model']['createRange'](_0x340e7e['getFirstRange']()['start'],_0x634396));}_0x37df40['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5a58f2,_0x482a16,_0x8b442b){const _0x3ee2a6=_0x5a58f2['startsWith']('format')||_0x5a58f2['startsWith']('attribute')?'FORMATTING':_0x5a58f2['toUpperCase']();return o(this['editor']['locale'],_0x482a16+'_'+_0x3ee2a6+'_SUGGESTION_ANNOUNCEMENT',_0x8b442b);}['_initAriaMarkerChangeAnnouncements'](){const _0x4a04f6=this['editor'];if(!_0x4a04f6['ui'])return;const {ariaLiveAnnouncer:_0x3d65d3}=_0x4a04f6['ui'];_0x34f048(this['_model'],({left:_0x43f7a8,entered:_0x482ee5})=>{for(const _0x3d4bdd of _0x43f7a8){const {group:_0x33bd31,type:_0x45b518}=this['_splitMarkerName'](_0x3d4bdd['name']);if('suggestion'===_0x33bd31){_0x3d65d3['announce'](this['_getMarkerAnnouncementText'](_0x45b518,'LEAVE'));break;}}for(const _0xcd34ad of _0x482ee5){const {group:_0x126396,type:_0x30e528}=this['_splitMarkerName'](_0xcd34ad['name']);if('suggestion'===_0x126396){_0x3d65d3['announce'](this['_getMarkerAnnouncementText'](_0x30e528,'ENTER',_0x49ca32(_0x3f83d3)));break;}}});}['_processAttributeChanges'](_0x30609b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x37dcba=this['editor'],_0x11597d=_0x37dcba['model']['document']['differ']['getChanges']();if(0x0==_0x11597d['length'])return!0x1;const _0x3da8cc=[],_0x1366aa=_0x11597d['filter'](_0x4a40ca=>'attribute'==_0x4a40ca['type']),_0x3d6000=_0x11597d['filter'](_0x91ef77=>'insert'==_0x91ef77['type']&&'$text'!=_0x91ef77['name']),_0xe6024d=_0x11597d['filter'](_0x15e67e=>'remove'==_0x15e67e['type']&&'$text'!=_0x15e67e['name']);for(const _0xc0770c of _0x1366aa)_0x3da8cc['push']({'key':_0xc0770c['attributeKey'],'newValue':_0xc0770c['attributeNewValue'],'oldValue':_0xc0770c['attributeOldValue'],'range':qt(_0xc0770c['range'],_0x37dcba['model'])});for(const _0x50685b of _0x3d6000){const _0xb7e558=_0xe6024d['find'](_0x4f8b94=>_0x4f8b94['position']['isEqual'](_0x50685b['position']));_0xb7e558&&_0x3da8cc['push']({'key':m,'newValue':_0x50685b['name'],'oldValue':_0xb7e558['name'],'range':_0x37dcba['model']['createRangeOn'](_0x50685b['position']['nodeAfter'])});}return 0x0!=_0x3da8cc['length']&&this['_reduceExistingSuggestions'](_0x30609b,_0x3da8cc);}['_processAttributeSuggestions'](_0x4fbdac){let _0x5b950b=!0x1;const _0x1a6258=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1f0933=>_0x1f0933['data']['newRange']&&_0x1f0933['name']['startsWith']('suggestion:attribute:'));for(const _0x4c8ef9 of _0x1a6258){const {subType:_0x19a74e,id:_0x2fdc29}=this['_splitMarkerName'](_0x4c8ef9['name']),_0x4a6fd1=_0x19a74e['split']('|')[0x0];for(const _0x4436e6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4436e6['id']!=_0x2fdc29&&'attribute'==_0x4436e6['type']&&_0x4436e6['data']&&_0x4436e6['data']['key']==_0x4a6fd1&&_0x4436e6['getFirstRange']()['isIntersecting'](_0x4c8ef9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4436e6,_0x4c8ef9['data']['newRange'],_0x4fbdac),_0x5b950b=!0x0);}return _0x5b950b;}['recordAttributeChanges'](_0x165658){this['_recordAttributeSuggestions']=!0x0,_0x165658();}['_isRegisteredAttribute'](_0x81b752){const _0x48be97=this['_isBlockAttribute'](_0x81b752),_0x43fb37=this['_isInlineAttribute'](_0x81b752);return _0x48be97||_0x43fb37;}['_reduceExistingSuggestions'](_0x73f3e4,_0x66a70b){if(0x0==_0x66a70b['length'])return!0x1;let _0x28b381=!0x1;for(const _0x5d9ad1 of _0x66a70b){const _0x354058=this['_findSuggestions'](_0x5d9ad1['range'],'attribute')['filter'](_0x1ccee1=>!_0x1ccee1['meta']['isNextTo'])['map'](_0x4ff885=>_0x4ff885['suggestion']),_0x45f577=_0x504617({'newValue':_0x5d9ad1['newValue']});_0x354058['filter'](_0x3fd2b7=>{const [_0xf97ccf,_0x54005f]=_0x3fd2b7['subType']['split']('|');return _0xf97ccf==_0x5d9ad1['key']&&_0x54005f!=_0x45f577;})['forEach'](_0x7f3eb8=>{this['_reduceSuggestionAttributeRange'](_0x7f3eb8,_0x5d9ad1['range'],_0x73f3e4),_0x28b381=!0x0;});}return _0x28b381;}['_reduceSuggestionAttributeRange'](_0xa5c296,_0x20d60f,_0x352ae3){const _0xefec10=_0xa5c296['getFirstRange']()['getDifference'](_0x20d60f);0x0!==_0xefec10['length']?0x1!==_0xefec10['length']?this['_breakSuggestionMarker'](_0xa5c296,_0x20d60f['start'],_0x20d60f['end']):this['_setSuggestionRange'](_0xa5c296,_0xefec10[0x0]):_0x352ae3['removeMarker'](_0xa5c296['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x324e52){this['_editor']=_0x324e52,this['_model']=_0x324e52['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2a1869,_0x538942,_0x108a00,_0x50aeb9,_0x443276,_0x87c1d,_0x5e1e2d){return new T(this['_model'],{'type':_0x2a1869,'subType':_0x538942,'id':_0x108a00,'originalSuggestionId':_0x5e1e2d,'author':_0x50aeb9,'creator':_0x50aeb9,'attributes':_0x443276,'onAttributesChange':_0x87c1d,'onAccept':(..._0xbaaa12)=>this['getSuggestionCallback'](_0x2a1869,_0x538942,'accept')(..._0xbaaa12),'onDiscard':(..._0x599dc2)=>this['getSuggestionCallback'](_0x2a1869,_0x538942,'discard')(..._0x599dc2)});}['registerCustomCallback'](_0x57c624,_0x46cd12,_0x3b7302,_0x5595ba){const _0x40b5eb=_0x57c624+':'+_0x46cd12+':'+_0x3b7302;this['_customCallbacks']['set'](_0x40b5eb,_0x5595ba);}['getSuggestionCallback'](_0x2ae6a5,_0x229df7,_0x2b3307){const _0x7afdaa=_0x2ae6a5+':'+_0x229df7+':'+_0x2b3307;return this['_customCallbacks']['get'](_0x7afdaa)||this['_defaultCallbacks']['get'](_0x2ae6a5+':'+_0x2b3307);}['_registerDefaultCallbacks'](){const _0x2e1c3d=()=>!0x1,_0x39e9cc=_0xf281fa=>{_0xf281fa['sort']((_0x7e8260,_0x1c48cc)=>_0x7e8260['start']['isBefore'](_0x1c48cc['start'])?0x1:-0x1),this['_model']['change'](_0x172604=>{for(const _0x56d480 of _0xf281fa){let _0xf99ebb;_0xf99ebb=_0x56d480['end']['isAtEnd']&&_0x56d480['end']['parent']==_0x56d480['start']['nodeAfter']?_0x172604['createSelection'](_0x56d480['start']['nodeAfter'],'on'):_0x172604['createSelection'](_0x56d480),this['_model']['deleteContent'](_0xf99ebb,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3d387b=(_0x24ae2c,_0x32e31e)=>{_0x32e31e&&this['_model']['change'](_0x35ab77=>{const {commandName:_0x1ecbf7,commandParams:_0x195413=[]}=_0x32e31e,_0x190d73=_0x24ae2c['map'](_0x431f5e=>(Pt(_0x431f5e)&&(_0x431f5e=this['_model']['createRange'](_0x431f5e['end'])),_0x431f5e))['filter'](_0x10a24c=>'$graveyard'!==_0x10a24c['root']['rootName']);if(_0x190d73['length']<0x1)return;const _0x8ebee0=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x69f25e=>_0x1f4d12['fromRange'](_0x69f25e));_0x35ab77['setSelection'](_0x190d73);for(const _0x1c7fed of this['_editor']['commands']['commands']())_0x1c7fed['refresh']();_0x195413['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1ecbf7,..._0x195413);const _0x3a7e00=_0x8ebee0['filter'](_0x2bc835=>'$graveyard'!=_0x2bc835['root']['rootName']);_0x3a7e00['length']>0x0&&_0x35ab77['setSelection'](_0x3a7e00);for(const _0x14233f of _0x8ebee0)_0x14233f['detach']();});},_0x11023e=(_0x2036a7,_0x4a4aa9)=>0x1==_0x2036a7['length']&&0x1==_0x4a4aa9['length']&&_0x2036a7[0x0]['end']['isEqual'](_0x4a4aa9[0x0]['start']),_0x225139=(_0x54731c,_0x361763,_0x51b01a,_0x3bf42c)=>Wt(_0x54731c,_0x361763,_0x51b01a,_0x3bf42c)?[_0x54731c,_0x361763]:Wt(_0x361763,_0x54731c,_0x3bf42c,_0x51b01a)?[_0x361763,_0x54731c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2e1c3d),this['_defaultCallbacks']['set']('insertion:discard',_0x39e9cc),this['_defaultCallbacks']['set']('insertion:join',_0x11023e),this['_defaultCallbacks']['set']('insertion:chain',_0x225139),this['_defaultCallbacks']['set']('deletion:accept',_0x39e9cc),this['_defaultCallbacks']['set']('deletion:discard',_0x2e1c3d),this['_defaultCallbacks']['set']('deletion:join',_0x11023e),this['_defaultCallbacks']['set']('deletion:chain',_0x225139),this['_defaultCallbacks']['set']('formatInline:accept',_0x3d387b),this['_defaultCallbacks']['set']('formatInline:discard',_0x2e1c3d),this['_defaultCallbacks']['set']('formatInline:join',_0x11023e),this['_defaultCallbacks']['set']('formatInline:chain',_0x2e1c3d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3d387b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2e1c3d),this['_defaultCallbacks']['set']('formatBlock:join',_0x11023e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2e1c3d),this['_defaultCallbacks']['set']('attribute:accept',_0x2e1c3d),this['_defaultCallbacks']['set']('attribute:discard',(_0x56fcc5,_0x2145c3)=>{if(!_0x2145c3)return;const _0x369b7c=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x7a0877=>{if(_0x2145c3['key']==m)for(const _0x2967d8 of _0x56fcc5){const _0x5a0a4a=_0x2967d8['start']['nodeAfter'],_0x137da1=_0x2145c3['oldValue'];_0x7a0877['rename'](_0x5a0a4a,_0x137da1);}else{if(_0x369b7c['_isBlockAttribute'](_0x2145c3['key'])){for(const _0xed3693 of _0x56fcc5)void 0x0!==_0x2145c3['oldValue']?_0x7a0877['setAttribute'](_0x2145c3['key'],_0x2145c3['oldValue'],_0xed3693['start']['nodeAfter']):_0x7a0877['removeAttribute'](_0x2145c3['key'],_0xed3693['start']['nodeAfter']);}else{for(const _0xec4073 of _0x56fcc5)_0x2145c3['oldValue']?_0x7a0877['setAttribute'](_0x2145c3['key'],_0x2145c3['oldValue'],_0xec4073):_0x7a0877['removeAttribute'](_0x2145c3['key'],_0xec4073);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x11023e);}}function Ft(_0x3ad61c,_0x50656f,_0x2f8a48){for(const _0x461f9c of _0x50656f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x461f9c['root']==_0x461f9c)return!0x1;if(!_0x2f8a48['containsItem'](_0x461f9c))return!0x1;if(_0x3ad61c['isObject'](_0x461f9c)||_0x3ad61c['isLimit'](_0x461f9c))return!0x0;}return!0x1;}function Pt(_0x3a81d6){return _0x3a81d6['end']['parent']==_0x3a81d6['start']['nodeAfter']&&_0x3a81d6['end']['isAtStart'];}function Gt(_0x37cd30,_0xceebfa,_0x3686e4,_0x431c3b){const _0x31cd36=_0x3a9c18=>!_0x3a9c18['item']['is']('$textProxy')&&!_0x431c3b['isObject'](_0x3a9c18['item']),_0x3b40ba=_0x37cd30['start']['getLastMatchingPosition'](_0x31cd36),_0x591c4d=_0x37cd30['end']['getLastMatchingPosition'](_0x31cd36,{'direction':'backward'});return(!_0x37cd30['start']['isEqual'](_0x3b40ba)||!_0x37cd30['end']['isEqual'](_0x591c4d))&&(_0x3b40ba['isBefore'](_0x591c4d)?_0x3686e4['updateMarker'](_0xceebfa,{'range':_0x3686e4['createRange'](_0x3b40ba,_0x591c4d)}):_0x3686e4['removeMarker'](_0xceebfa),!0x0);}function Lt(_0x597ef3){return _0x504617(_0x597ef3);}function Jt(_0x306fba){const _0x5d1547=_0x306fba['start']['nodeAfter'];return _0x5d1547&&_0x5d1547['is']('element');}function Kt(_0x5561ec){return Pt(_0x5561ec)||function(_0x115ae6){return _0x115ae6['start']['parent']==_0x115ae6['end']['nodeBefore']&&_0x115ae6['start']['isAtEnd'];}(_0x5561ec);}function Ht(_0xc73bba,_0x2122aa){try{const _0x16ef92=_0xc73bba['getRange']();for(const _0x4f6f35 of _0x2122aa)if(_0xc73bba!==_0x4f6f35&&_0x16ef92&&_0x16ef92['isIntersecting'](_0x4f6f35['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x138d9a,_0x39e52c){return null==_0x138d9a['end']['nodeBefore']&&_0x138d9a['end']['parent']==_0x138d9a['start']['nodeAfter']?zt(_0x138d9a['start']['nodeAfter'],_0x39e52c):_0x138d9a;}function zt(_0x1a9f61,_0x3ee8d1){const _0x2a36a1=_0x3ee8d1['schema']['isObject'](_0x1a9f61)||_0x3ee8d1['schema']['isSelectable'](_0x1a9f61);return _0x3ee8d1['createRange'](_0x3ee8d1['createPositionAt'](_0x1a9f61,'before'),_0x2a36a1?_0x3ee8d1['createPositionAfter'](_0x1a9f61):_0x3ee8d1['createPositionAt'](_0x1a9f61,'end'));}function Wt(_0x3cb204,_0x66d441,_0x28732c,_0x5f04d1){return!!Qt(_0x3cb204,_0x66d441)&&_0x28732c['end']['isEqual'](_0x5f04d1['start']);}function Qt(_0x2c4780,_0x27fb5c){if(!_0x2c4780['_isDataLoaded']||!_0x27fb5c['_isDataLoaded'])return!0x1;const _0x36fbb2=new Set(Object['keys'](_0x2c4780['attributes'])),_0x425fac=new Set(Object['keys'](_0x27fb5c['attributes']));if(_0x36fbb2['delete']('groupId'),_0x425fac['delete']('groupId'),0x0==_0x36fbb2['size']&&0x0==_0x425fac['size'])return!0x0;if(_0x36fbb2['size']!=_0x425fac['size'])return!0x1;const _0x3ed26a={..._0x2c4780['attributes']},_0x12ca91={..._0x27fb5c['attributes']};return delete _0x3ed26a['groupId'],delete _0x12ca91['groupId'],JSON['stringify'](_0x3ed26a)==JSON['stringify'](_0x12ca91);}function Xt(_0x3164c2,_0x47137c){const _0x1a63cb=Yt(_0x3164c2['attributes']),_0xc8cc48=Yt(_0x47137c);if(!_0x3164c2['_isDataLoaded'])return!0x1;for(const _0xffa069 of Object['keys'](_0xc8cc48))if(!_0x40eb7f(_0x1a63cb[_0xffa069],_0xc8cc48[_0xffa069]))return!0x1;return!0x0;}function Yt(_0x1eb5ea){const _0x9401c1=Object['assign']({},_0x1eb5ea);return delete _0x9401c1['skipNestingCheck'],delete _0x9401c1['tablePasteChainId'],_0x9401c1;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0xad4ab3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2ca1d2,_0x17e12a,_0x239c44,_0x35655d){super(),this['model']=_0x17e12a,this['view']=_0x239c44,this['commentThreadController']=_0x35655d,this['_editor']=_0x2ca1d2,this['_acceptCommand']=_0x2ca1d2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2ca1d2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x89c431,_0x4e4f5b)=>_0x89c431||_0x4e4f5b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x498c9b=>_0x498c9b&&this['_editor']['model']['canEditAt'](_0x17e12a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1c3bc7=>_0x1c3bc7&&this['_editor']['model']['canEditAt'](_0x17e12a['getRanges']())),this['_pendingAction']=null,_0x239c44['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x239c44,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x239c44,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x239c44,'change:isDirty',()=>{_0x239c44['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 _0x4bf00a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4bf00a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x51b4e6{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1e723c,_0x852cf5,_0x5311a4,_0x307a1b){super(_0x1e723c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5ed401(_0x1e723c,o(_0x1e723c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x852cf5['authoredAt']),this['bind']('authoredAt')['to'](_0x852cf5),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',_0x852cf5,'authoredAt',this,'descriptionParts',(_0x244092,_0x1530e6,_0x33aaf6)=>{const _0x813964=_0x33aaf6['map'](_0x446545=>ls(_0x446545['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x244092-0x1,_0x852cf5['author']['name'],_0x1530e6?_0x307a1b['formatDateTime'](_0x1530e6):'',new DOMParser()['parseFromString'](_0x813964,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4cfbc0(),this['focusTracker']=new _0x26cf0f(),this['keystrokes']=new _0x463913(),this['focusCycler']=new _0x18e82b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x31729a=>_0x31729a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x852cf5,this['_localUser']=_0x5311a4,this['_config']=_0x307a1b,_0x307a1b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x7bd68c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x364d87}=this['_config'];this['commentsListView']=new _0x364d87(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',_0x564096=>_0x564096+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x97735d,_0x2661ef)=>_0x97735d||!!_0x2661ef);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x22f170}=this['_config'],_0x5772a0=new _0x22f170(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3618ef=_0x5772a0['commentInputView'];return _0x5772a0['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3618ef,'value',(_0x55821b,_0xca7e45,_0x5ab58d)=>!!_0x5ab58d||_0x55821b&&!_0xca7e45),_0x3618ef['on']('submit',(_0x59c32c,_0x136e0c)=>{this['fire']('addComment',_0x136e0c),_0x3618ef['editor']['setData']('');}),_0x3618ef['on']('cancel',()=>this['focus']()),_0x3618ef['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5772a0;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x15db3f,_0xdb0c35,_0x150bfa,_0x104d4b){super(_0x15db3f,_0xdb0c35,_0x150bfa,_0x104d4b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5c27eb=>_0x5c27eb&&_0x5c27eb[0x0]?_0x5c27eb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2a93c0,_0x2502f2)=>{let _0x5d0c0e='';for(const _0x2a987e of _0x2a93c0)_0x5d0c0e+='<p>'+ls(_0x2a987e['content'],_0x2a987e['color'])+'</p>';return _0x2502f2?_0x5d0c0e:_0x501172(_0x5d0c0e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x104d4b['SuggestionView'](_0x15db3f,_0xdb0c35,{'formatDateTime':_0x104d4b['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 _0x272db9=this['bindTemplate'],_0x62cb94=[this['suggestionView']];return this['commentsListView']&&_0x62cb94['push'](this['commentsListView']),this['commentThreadInputView']&&_0x62cb94['push'](this['commentThreadInputView']),_0x62cb94['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x272db9['if']('isActive','ck-suggestion-wrapper--active'),_0x272db9['to']('type',_0x3306c6=>'ck-suggestion-'+_0x3306c6),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':_0x272db9['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x62cb94};}['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 _0x51b4e6{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x57e32,_0x3ed2c7,_0x42b7b8){super(_0x57e32),this['_model']=_0x3ed2c7,this['_config']=_0x42b7b8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3ed2c7),this['acceptButton']=this['_createButton'](o(_0x57e32,'Accept\x20suggestion'),_0x54ddab,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x57e32,'Discard\x20suggestion'),_0x2590d6,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2d779c(_0x57e32,_0x3ed2c7['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4cfbc0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x26cf0f(),this['keystrokes']=new _0x463913(),this['focusCycler']=new _0x18e82b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x365740=>_0x365740['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x302c21=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x302c21['innerHTML']=this['description'],this['on']('change:description',(_0x3a015c,_0x271e12,_0x416c3b)=>{_0x302c21['innerHTML']=_0x416c3b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x58355d=this['bindTemplate'],_0x521bcf=[{'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':_0x58355d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x58355d['to']('authoredAt',_0x3ff905=>this['_config']['formatDateTime'](_0x3ff905))}]}]},{'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']&&_0x521bcf['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':_0x521bcf}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xdb4ff,_0x46de96,_0x42aeb6,_0x4d1b1f,_0x96faf1){const _0x151622=new _0x7fc134(this['locale']);return _0x151622['set']({'label':_0xdb4ff,'icon':_0x46de96,'tooltip':!0x0,'tooltipPosition':_0x96faf1}),_0x151622['extendTemplate']({'attributes':{'class':_0x42aeb6}}),_0x151622['on']('execute',()=>{this['fire'](_0x4d1b1f,this['_model']['id']);}),_0x151622;}['_setupKeyboardNavigation'](){const _0x3ab04b=this['element'];this['keystrokes']['listenTo'](_0x3ab04b);for(const _0x7117dd of this['focusables'])this['focusTracker']['add'](_0x7117dd['element']),this['keystrokes']['listenTo'](_0x7117dd['element']);this['keystrokes']['set']('enter',(_0x201816,_0x418b93)=>{_0x3ab04b===_0x201816['target']&&(this['focusCycler']['focusFirst'](),_0x418b93());}),this['keystrokes']['set']('esc',(_0x8b9aca,_0x260c95)=>{_0x3ab04b!==_0x8b9aca['target']&&(this['focus'](),_0x260c95());});}}class u extends _0x573845{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x339440,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe273a4){super(_0xe273a4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3da119=this['editor']['config'];_0x3da119['define']('trackChanges.SuggestionThreadView',fe),_0x3da119['define']('trackChanges.SuggestionView',we),_0x3da119['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3da119['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x11e2cd,_0x142f98){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1a951a,_0x5812ef]of this['_handleControllerBuffer']){const _0x18b804=this['_suggestionToController']['has'](_0x1a951a);_0x18b804||_0x5812ef?_0x18b804&&_0x5812ef&&this['_destroyController'](_0x1a951a):this['_initializeController'](_0x1a951a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x11e2cd,_0x142f98);}['init'](){const _0x491ead=this['editor'],_0x138159=_0x491ead['plugins']['get']('TrackChangesEditing'),_0x349308=_0x491ead['plugins']['get']('Annotations'),_0x5156d5=_0x491ead['plugins']['get']('EditorAnnotations'),_0x10c59a=_0x491ead['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5156d5['addSourceCollector'](()=>{const _0x509363=[];for(const [_0x310d0b,_0x32c483]of Array['from'](this['_suggestionToController'])){const _0x5777fe=_0x310d0b['getAllAdjacentSuggestions'](),_0x449965=[];for(const _0x279958 of _0x5777fe){if(!_0x279958['isInContent'])continue;if(_0x279958['isMultiRange']){_0x449965['push'](..._0x279958['getRanges']());continue;}const _0x372062=_0x279958['getFirstRange']();if(_0x449965['length']>0x0){const _0x269aaa=_0x449965[0x0]['getJoined'](_0x372062);if(_0x269aaa){_0x449965[0x0]=_0x269aaa;continue;}}_0x449965['push'](_0x372062);}_0x509363['push']([_0x32c483['view'],_0x449965]);}return _0x509363;}),this['listenTo'](_0x138159,'suggestionLoaded',(_0x48f75d,_0xf2ee0e)=>{this['listenTo'](_0xf2ee0e,'change:previous',(_0x2b2fb1,_0x2efd6e,_0x1a3d91,_0x1fb5dc)=>{_0xf2ee0e['isInContent']&&(null==_0x1a3d91?(this['_updateController'](_0x1fb5dc['head']),this['_handleSuggestionControllerDelayed'](_0xf2ee0e,!0x1)):(this['_updateController'](_0x1a3d91['head']),null==_0x1fb5dc&&this['_handleSuggestionControllerDelayed'](_0xf2ee0e,!0x0)));}),null!==_0xf2ee0e['previous']?this['_updateController'](_0xf2ee0e['head']):this['_handleSuggestionControllerDelayed'](_0xf2ee0e,!0x1);}),this['listenTo'](_0x138159,'suggestionUnloaded',(_0x33e9ce,_0x23356d,_0x59dab0)=>{this['stopListening'](_0x23356d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x23356d),this['_suggestionToController']['has'](_0x23356d)&&this['_destroyController'](_0x23356d),_0x59dab0&&this['_updateController'](_0x59dab0['head']);}),this['listenTo'](_0x138159,'suggestionChanged',(_0x56cbc2,_0x1f849d)=>{this['_updateController'](_0x1f849d);}),this['listenTo'](_0x349308,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x10c59a,'addComment',(_0x83f7a5,{threadId:_0x47c307,isFromAdapter:_0x5e00d0})=>{if(_0x5e00d0||!_0x138159['hasSuggestion'](_0x47c307))return;const _0x155278=_0x138159['getSuggestion'](_0x47c307);this['_suggestionToController']['get'](_0x155278)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2538bf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1bcdcf;for(const _0x5e601d in _0x2538bf){const _0x39d267=_0x5e601d,_0x9b1f7f=_0x2538bf[_0x39d267];if('trackChangesLicenseKeyValid'==_0x9b1f7f||'trackChangesLicenseKeyInvalid'==_0x9b1f7f||'trackChangesLicenseKeyExpired'==_0x9b1f7f||'trackChangesLicenseKeyDomainLimit'==_0x9b1f7f||'trackChangesLicenseKeyNotAllowed'==_0x9b1f7f||'trackChangesLicenseKeyEvaluationLimit'==_0x9b1f7f||'trackChangesLicenseKeyTrialLimit'==_0x9b1f7f||'trackChangesLicenseKeyUsageLimit'==_0x9b1f7f){delete _0x2538bf[_0x39d267],_0x1bcdcf=_0x9b1f7f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1bcdcf&&_0x2538bf['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1bcdcf&&_0x2538bf['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1bcdcf&&_0x2538bf['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1bcdcf&&_0x2538bf['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1bcdcf&&_0x2538bf['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1bcdcf&&_0x2538bf['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1bcdcf&&_0x2538bf['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5d3f5a){const _0x3853c6=this['_suggestionToController']['get'](_0x5d3f5a);if(!_0x3853c6)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3853c6['view'])||null;}['getSuggestionForAnnotation'](_0x1b2229){const _0x19afe9=this['_viewToController']['get'](_0x1b2229['innerView']);return _0x19afe9?_0x19afe9['model']:null;}['_refreshActiveMarkers'](){const _0x5e08f7=this['editor']['plugins']['get']('Annotations'),_0x42fdf3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f3ee0=Array['from'](_0x5e08f7['activeAnnotations'],_0x57e1e0=>_0x57e1e0['innerView'])['filter'](_0x53d094=>this['_viewToController']['has'](_0x53d094)),_0x2bd676=[];for(const _0x328806 of _0x3f3ee0){const _0x42f852=this['_viewToController']['get'](_0x328806)['model']['getAllAdjacentSuggestions']();_0x2bd676['push'](..._0x42f852['reduce']((_0x421d8e,_0x4b6bca)=>[..._0x421d8e,..._0x4b6bca['getMarkerNames']()],[]));}_0x42fdf3['activeMarkers']=_0x2bd676;}['_addUIComponentsToFactory'](){const _0x46d8d6=this['editor'],_0x4e048e=_0x46d8d6['locale'],_0x250822=o(_0x4e048e,'Track\x20changes'),_0x12a7f7=new _0x1cf2e2([{'type':'switchbutton','model':new _0x506e9b({'withText':!0x0,'isToggleable':!0x0,'label':_0x250822,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x506e9b({'withText':!0x0,'label':o(_0x4e048e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x506e9b({'withText':!0x0,'label':o(_0x4e048e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x506e9b({'withText':!0x0,'label':o(_0x4e048e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x506e9b({'withText':!0x0,'label':o(_0x4e048e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x46d8d6['plugins']['has']('TrackChangesPreview')&&_0x12a7f7['addMany']([{'type':'separator'},{'type':'button','model':new _0x506e9b({'withText':!0x0,'label':o(_0x4e048e,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xb5f05b of _0x12a7f7)if(ke(_0xb5f05b)){const _0x15eaba=_0x46d8d6['commands']['get'](_0xb5f05b['model']['commandName']);_0xb5f05b['model']['bind']('isOn','isEnabled')['to'](_0x15eaba,'value','isEnabled');}_0x46d8d6['ui']['componentFactory']['add']('trackChanges',_0x18ea87=>this['_createToolbarButton'](_0x18ea87,_0x12a7f7,_0x250822)),_0x46d8d6['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1d2a4b=>this['_createMenuBarMenu'](_0x1d2a4b,_0x12a7f7,_0x250822));}['_createToolbarButton'](_0x738abf,_0x274d13,_0x249bcc){const _0x57c87e=_0x5a72bb(_0x738abf,_0x379a1e),_0x2500ca=this['editor']['commands']['get']('trackChanges');_0x57c87e['buttonView']['set']({'tooltip':_0x249bcc,'label':_0x249bcc,'icon':_0x34b412}),_0x57c87e['buttonView']['bind']('isOn')['to'](_0x2500ca,'value'),_0x57c87e['buttonView']['on']('execute',()=>{_0x2500ca['execute'](),this['editor']['editing']['view']['focus']();}),_0x228178(_0x57c87e,_0x274d13,{'role':'menu'});const _0x674b89=[];for(const _0x1a4a4a of _0x274d13)ke(_0x1a4a4a)&&_0x674b89['push'](this['editor']['commands']['get'](_0x1a4a4a['model']['commandName']));const _0x35bf82=_0x57c87e['buttonView'];return _0x35bf82['actionView']['unbind']('isEnabled'),_0x35bf82['arrowView']['unbind']('isEnabled'),_0x35bf82['actionView']['bind']('isEnabled')['to'](_0x2500ca,'isEnabled'),_0x35bf82['arrowView']['bind']('isEnabled')['toMany'](_0x674b89,'isEnabled',(..._0x2e607c)=>_0x2e607c['some'](_0x209525=>_0x209525)),_0x57c87e['on']('execute',_0x3eafbf=>{this['editor']['execute'](_0x3eafbf['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x57c87e;}['_createMenuBarMenu'](_0x47dc69,_0x2f8013,_0x2c941b){const _0xd39d78=new _0x40e698(_0x47dc69),_0x5efe2c=this['editor']['commands']['get']('trackChanges');_0xd39d78['buttonView']['set']({'label':_0x2c941b,'icon':_0x34b412});const _0x377918=new _0x27bc01(_0x47dc69);for(const _0x393631 of _0x2f8013){if('separator'==_0x393631['type']){_0x377918['items']['add'](new _0x1c278e(_0x47dc69));continue;}const _0x3dfdd1=new _0x31cd3e(_0x47dc69,_0xd39d78),_0x416975=new _0x5d6f0b(_0x47dc69),_0x46c3ba=_0x393631['model'];_0x416975['bind'](...Object['keys'](_0x46c3ba))['to'](_0x46c3ba),_0x416975['delegate']('execute')['to'](_0xd39d78),_0x416975['on']('execute',()=>{this['editor']['execute'](_0x46c3ba['commandName']),this['editor']['editing']['view']['focus']();}),_0x3dfdd1['children']['add'](_0x416975),_0x377918['items']['add'](_0x3dfdd1);}return _0xd39d78['bind']('isEnabled')['to'](_0x5efe2c,'isEnabled'),_0xd39d78['panelView']['children']['add'](_0x377918),_0xd39d78;}['_initializeController'](_0x26e625){const _0x53f317=this['editor'],_0xa988bd=_0x53f317['config'],_0x5dc46a=_0x53f317['plugins']['get']('Annotations'),_0x199b32=_0x53f317['plugins']['get']('CommentsRepository'),_0x218e8f=_0x53f317['plugins']['get']('EditorAnnotations'),_0x35e6c1=_0x53f317['plugins']['get'](_0x339440)['me'],_0x21c13d=_0xa988bd['get']('trackChanges')['SuggestionThreadView'],_0x281ccc=_0xa988bd['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x45ea48,CommentThreadInputView:_0x360a1e}=_0x53f317['plugins']['get']('CommentsUI');let _0x2f39ba,_0x59e4dd,_0x2a083b;this['_annotationViews']['has'](_0x26e625['id'])?(_0x59e4dd=this['_annotationViews']['get'](_0x26e625['id']),_0x2f39ba=_0x59e4dd['mainView']):(_0x2f39ba=new _0x21c13d(_0x53f317['locale'],_0x26e625,_0x35e6c1,{'disableComments':this['_disableComments'],'editorConfig':{..._0xa988bd['get']('comments.editorConfig'),'licenseKey':_0xa988bd['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xa988bd['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xa988bd['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xa988bd['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2261fe(_0xa988bd['get']('locale'),_0x53f317['locale']),'CommentView':_0xa988bd['get']('comments')['CommentView'],'CommentsListView':_0x45ea48,'CommentThreadInputView':_0x360a1e,'SuggestionView':_0x281ccc}),_0x2f39ba['suggestionView']['acceptButton']['on']('execute',()=>{_0x53f317['editing']['view']['focus']();}),_0x2f39ba['suggestionView']['discardButton']['on']('execute',()=>{_0x53f317['editing']['view']['focus']();}),_0x59e4dd=_0x5dc46a['createAnnotationView'](this['editor']['locale'],_0x2f39ba),_0x59e4dd['bind']('isDirty')['to'](_0x2f39ba,'isDirty'),_0x59e4dd['bind']('length')['to'](_0x2f39ba),_0x59e4dd['bind']('type')['to'](_0x2f39ba,'type',_0x5d858c=>'suggestion-'+_0x5d858c),_0x2f39ba['on']('escape',()=>{_0x2a083b['fire']('escape');}),this['_annotationViews']['set'](_0x26e625['id'],_0x59e4dd));const _0x209c04=_0x199b32['createCommentThreadController'](_0x26e625['commentThread'],_0x2f39ba),_0x1d4652=new pe(_0x53f317,_0x26e625,_0x2f39ba,_0x209c04),_0x24a4d9=_0x26e625['getAllAdjacentSuggestions']()['filter'](_0x319ce6=>_0x319ce6['isInContent']);_0x2f39ba['descriptionParts']=_0x53f317['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x24a4d9),this['_suggestionToController']['set'](_0x26e625,_0x1d4652),this['_viewToController']['set'](_0x2f39ba,_0x1d4652);const _0x11261a=()=>{const _0x3c182d=[],_0x1cf38f=_0x26e625['getAllAdjacentSuggestions']()['filter'](_0x4cf44b=>_0x4cf44b['isInContent']);for(const _0x5ab575 of _0x1cf38f)_0x3c182d['push'](..._0x5ab575['getMarkers']());return _0x499841(_0x53f317['editing'],_0x3c182d);};_0x2a083b=_0x5dc46a['createAnnotation']({'view':_0x59e4dd,'target':_0x11261a,'type':()=>'suggestion-'+_0x1d4652['view']['type'],'isVisible':!!_0x11261a()}),_0x199b32['_bindAnnotationToEditors'](_0x2f39ba,_0x2a083b),_0x5dc46a['add'](_0x2a083b),_0x218e8f['registerAnnotation'](_0x2a083b);}['_destroyController'](_0x241ecf){const _0x4a68d6=this['editor']['plugins']['get']('CommentsRepository'),_0x1ee080=this['editor']['plugins']['get']('Annotations'),_0xa0d9af=this['_suggestionToController']['get'](_0x241ecf),_0x211449=_0xa0d9af['view'],_0x96c700=_0x1ee080['getByInnerView'](_0x211449);_0x4a68d6['_unbindEditors'](_0x211449),_0x96c700&&_0x1ee080['remove'](_0x96c700),this['_suggestionToController']['delete'](_0x241ecf),this['_viewToController']['delete'](_0x211449),_0xa0d9af['destroy']();}['_updateController'](_0x3bd430){if(!_0x3bd430['isInContent']||!this['_suggestionToController']['has'](_0x3bd430))return;const _0x129e6b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x169bb6=this['_suggestionToController']['get'](_0x3bd430),_0x521de9=_0x3bd430['getAllAdjacentSuggestions']();_0x169bb6['view']['descriptionParts']=_0x129e6b['descriptionFactory']['getDescriptions'](_0x521de9);}['destroy'](){for(const _0x55ed02 of this['_suggestionToController']['keys']())this['_destroyController'](_0x55ed02);for(const _0x4a7266 of this['_annotationViews']['values']())_0x4a7266['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5691c0){return'model'in _0x5691c0;}class Fe extends _0x573845{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x174605){this['editor']['plugins']['get'](d)['adapter']=_0x174605;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1d8314){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1d8314);}['getSuggestions']({skipNotAttached:_0x5073a6=!0x1,toJSON:_0x324934=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5073a6,'toJSON':_0x324934});}['getSuggestion'](_0x446904){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x446904);}}const p=['Pagination'];class re extends _0x573845{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x489209=this['editor'];if(_0x489209['config']['define']('trackChangesData.editorCreator',_0x9c0b52=>{const _0x39bc73=_0x489209['model']['document']['getRootNames']()['reduce']((_0x2ca9e1,_0x4ffef4)=>(_0x2ca9e1[_0x4ffef4]='',_0x2ca9e1),{});return _0x489209['constructor']['create'](_0x39bc73,_0x9c0b52);}),'function'!=typeof _0x489209['config']['get']('trackChangesData')['editorCreator'])throw new _0x55c846('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x11ff41){return P(this['editor'],!0x0,_0x11ff41);}['getDataWithDiscardedSuggestions'](_0x5c95bb){return P(this['editor'],!0x1,_0x5c95bb);}}class Ge extends _0x573845{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59ffa7){function _0x2870f9(_0x5688ef){return _0x5688ef['map'](_0x102c6c=>String['fromCharCode'](_0x102c6c))['join']('');}super(_0x59ffa7),this['result']='end',_0x59ffa7[_0x2870f9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2870f9([0x76,0x69,0x65,0x77])][_0x2870f9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2870f9([0x61,0x75,0x74,0x6f]),_0x59ffa7[_0x2870f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2870f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2870f9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2870f9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2870f9([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 He(_0x2ab04a){return void 0x0!==_0x2ab04a['getRootsAttributes'];}async function P(_0x39dbd6,_0x362cb7,_0x3b03c4){const _0x4c7f4c=_0x2b319f(_0x39dbd6,p);_0x4c7f4c['plugins']['push'](d,Ge),_0x4c7f4c['rootsAttributes']=He(_0x39dbd6)?_0x39dbd6['getRootsAttributes']():void 0x0;const _0x40db54=document['createDocumentFragment'](),_0x26e923=_0x39dbd6['config']['get']('trackChangesData')['editorCreator'],_0x59d631=await _0x26e923(_0x4c7f4c,()=>function(_0x8c5507){const _0x489948=document['createElement']('div');return _0x8c5507['appendChild'](_0x489948),_0x489948;}(_0x40db54));!function(_0xebfafe,_0x419012){const _0x4301cf=_0xebfafe['model']['document']['getRootNames']()['reduce']((_0x55f05e,_0x1c92e1)=>(_0x55f05e[_0x1c92e1]=_0xebfafe['data']['get']({'rootName':_0x1c92e1}),_0x55f05e),{}),_0x357bc7=_0xebfafe['plugins']['get']('Users')['users']['map'](_0x15d376=>({'id':_0x15d376['id'],'name':_0x15d376['name']})),_0x25da0e=_0xebfafe['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x143005=_0xebfafe['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x256898=_0x419012['plugins']['get']('Users'),_0x5202e6=_0x419012['plugins']['get']('TrackChangesEditing'),_0xc20088=_0x419012['plugins']['get']('CommentsRepository');for(const _0x41dd9a of _0xc20088['getCommentThreads']())_0x41dd9a['remove']();for(const _0x2c8396 of _0x357bc7)_0x256898['getUser'](_0x2c8396['id'])||_0x256898['addUser'](_0x2c8396);_0x256898['me']||_0x256898['useAnonymousUser']();for(const _0x26508f of _0x143005)_0xc20088['addCommentThread'](_0x26508f);for(const _0xd336c8 of _0x25da0e)_0x5202e6['addSuggestionData'](_0xd336c8);_0x419012['data']['set'](_0x4301cf);}(_0x39dbd6,_0x59d631),_0x59d631['execute'](_0x362cb7?'acceptAllSuggestions':'discardAllSuggestions');const _0x52b8c6=He(_0x59d631)?_0x59d631['getFullData'](_0x3b03c4):_0x59d631['data']['get'](_0x3b03c4);return await _0x59d631['destroy'](),_0x52b8c6;}class Me extends _0x51b4e6{['options'];constructor(_0x417557,_0x3d5527){super(_0x417557),this['options']=_0x3d5527,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'](_0x345d0d,_0x2900b4){if(!this['element'])return;const _0x28d4ea=[];for(const [_0x10453a,_0x4b0db2]of _0x345d0d){const _0xf92e65=document['createElement']('div');_0xf92e65['setAttribute']('data-ck-root-name',_0x10453a),_0xf92e65['className']=_0x4b0db2['classes']+'\x20ck-track-changes-preview__root-container',_0xf92e65['innerHTML']=_0x4b0db2['content'],_0x28d4ea['push'](_0xf92e65);}_0x2900b4(this['element'],_0x28d4ea),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x3c0660{constructor(_0x269211){super(_0x269211),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2790a8=this['editor'],_0x553585=_0x2790a8['locale'],_0x2d4002=_0x2790a8['plugins']['get']('Dialog');let _0x8a69f1;const _0x4a823e=function(_0x3dfada){const _0x3e048a={};if('editables'in _0x3dfada['ui']['view']){for(const [_0x187625,_0x6b707]of Object['entries'](_0x3dfada['ui']['view']['editables']))_0x3e048a[_0x187625]=_0x6b707['element'];}else _0x3e048a[_0x3dfada['model']['document']['getRootNames']()[0x0]]=_0x3dfada['ui']['view']['editable']['element'];return _0x3e048a;}(_0x2790a8),_0x5645d7=function(_0x381b69){let _0xc6bd96=0x0;for(const _0x280702 of Object['values'](_0x381b69))_0xc6bd96=Math['max'](_0xc6bd96,_0x280702['getBoundingClientRect']()['width']);let _0x307cdd=0x0;for(const _0x1b728f of Object['values'](_0x381b69))_0x307cdd+=_0x1b728f['getBoundingClientRect']()['height'];const _0x43a247=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3f4bce=Math['min'](_0x307cdd,_0x43a247);return{'width':_0xc6bd96,'height':_0x3f4bce};}(_0x4a823e);_0x2d4002['show']({'id':'finalContentPreview','title':o(_0x553585,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x553585,{'dialogRects':_0x5645d7}),'onHide':()=>{_0x8a69f1['detachFromDom']();},'onShow':()=>{_0x2790a8['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x619f65=>{const _0x126b37=this['_standarizeRootsData'](_0x619f65,_0x2790a8,_0x4a823e);_0x2d4002['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x126b37,_0x2790a8['config']['get']('trackChanges.preview.renderFunction'));}),_0x8a69f1=new _0x307f39(_0x553585,[_0x2d4002['view']]),_0x8a69f1['attachToDom'](),_0x8a69f1['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2790a8['once']('destroy',()=>{_0x8a69f1['detachFromDom']();});const _0x42996a=_0x2d4002['view']['headerView']['class'];_0x2d4002['view']['headerView']['class']=_0x42996a?_0x42996a+'\x20ck-reset_all':'ck-reset_all',_0x2d4002['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2d4002['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x473619=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x132706=_0x473619['previewMode'],_0x1b9b91={};if('$labels'===_0x132706){for(const _0x4cc508 of _0x473619['getMergeFieldsIds']())_0x1b9b91[_0x4cc508]=_0x473619['getLabel'](_0x4cc508)||_0x4cc508;}else{const _0x33ccc6='$defaultValues'===_0x132706?_0x473619['getDefaultValues']():_0x473619['getDataSetValues'](_0x132706,!0x0);for(const _0x4e08ed of Object['entries'](_0x33ccc6)){const [_0x3fc93e,_0x21f8b8]=_0x4e08ed;_0x1b9b91[_0x3fc93e]=null!==_0x21f8b8?_0x21f8b8:_0x473619['getLabel'](_0x3fc93e)||_0x3fc93e;}}return{'mergeFieldsData':_0x1b9b91};}['_standarizeRootsData'](_0x1272ae,_0x175aab,_0x4c350d){let _0x10a412;if('string'==typeof _0x1272ae){const _0x19e4a2=_0x175aab['model']['document']['getRootNames']()[0x0];_0x10a412={[_0x19e4a2]:_0x1272ae};}else _0x10a412=_0x1272ae;const _0x35104a=this['_fixMediaEmbeds'](_0x10a412,_0x175aab),_0x117675=function(_0x3905e1,_0x510f26){for(const [_0x5c4b48,_0x5c0f07]of _0x3905e1)_0x5c0f07['classes']=_0x510f26[_0x5c4b48]['classList']['value']['replace']('ck-focused','');return _0x3905e1;}(this['_sortRoots'](_0x175aab)['reduce']((_0x5c7889,_0x1bb934)=>(_0x5c7889['push']([_0x1bb934,{'content':_0x35104a[_0x1bb934],'classes':''}]),_0x5c7889),[]),_0x4c350d);return _0x117675;}['_fixMediaEmbeds'](_0x135377,_0x3c6a46){if(!_0x3c6a46['plugins']['has']('MediaEmbedEditing'))return _0x135377;const _0x1f34bb=_0x3c6a46['plugins']['get']('MediaEmbedEditing');for(const [_0x281a3a,_0xf955b9]of Object['entries'](_0x135377)){const _0x85bbbd=document['createElement']('div');_0x85bbbd['innerHTML']=_0xf955b9,(_0x85bbbd['querySelectorAll']('figure.media')['forEach'](_0x279f86=>{const _0xb192bf=_0x279f86['querySelector']('oembed');if(_0xb192bf){const _0x5ad111=_0xb192bf['getAttribute']('url');if(_0x5ad111){const _0x163be1=_0x1f34bb['registry']['getMediaViewElement'](new _0x29bf86(_0x3c6a46['editing']['view']['document']),_0x5ad111,{'elementName':'','renderForEditingView':!0x0}),_0x569f61=document['createElement']('div');_0x569f61['classList']['add']('ck-media__wrapper'),_0x163be1['render'](_0x569f61,_0x3c6a46['editing']['view']['domConverter']),_0xb192bf['replaceWith'](_0x569f61);}}}),_0x135377[_0x281a3a]=_0x85bbbd['innerHTML']);}return _0x135377;}['_sortRoots'](_0x444457){if(!function(_0x231476){return void 0x0!==_0x231476['getRootsAttributes'];}(_0x444457))return _0x444457['model']['document']['getRootNames']();const _0x384949=[],_0x234a07=new Map();for(const _0x37eb4f of _0x444457['model']['document']['getRootNames']()){const _0x446a93=_0x444457['editing']['view']['getDomRoot'](_0x37eb4f)['getClientRects']()['item'](0x0);_0x384949['push'](_0x37eb4f),_0x234a07['set'](_0x37eb4f,_0x446a93);}return _0x384949['sort']((_0x32843d,_0x5c107a)=>{const _0xaf3c5b=_0x234a07['get'](_0x32843d),_0x2dcaf2=_0x234a07['get'](_0x5c107a);return _0xaf3c5b['y']-_0x2dcaf2['y']||_0xaf3c5b['x']-_0x2dcaf2['x'];}),_0x384949;}}class $e extends _0x573845{static get['requires'](){return[re,_0x525d08];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ffc8d){super(_0x4ffc8d),_0x4ffc8d['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4ffc8d['config']['define']('trackChanges.preview.renderFunction',(_0x14c309,_0x5c24a9)=>{for(const _0x22b870 of _0x5c24a9)_0x14c309['appendChild'](_0x22b870);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};