@ckeditor/ckeditor5-track-changes 47.0.0 → 47.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) 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/ai.js +1 -1
  158. package/src/integrations/aiassistant.js +1 -1
  159. package/src/integrations/aiquickactions.js +1 -1
  160. package/src/integrations/alignment.js +1 -1
  161. package/src/integrations/basicstyles.js +1 -1
  162. package/src/integrations/blockquote.js +1 -1
  163. package/src/integrations/bookmark.js +1 -1
  164. package/src/integrations/casechange.js +1 -1
  165. package/src/integrations/ckbox.js +1 -1
  166. package/src/integrations/codeblock.js +1 -1
  167. package/src/integrations/comments.js +1 -1
  168. package/src/integrations/deletecommand.js +1 -1
  169. package/src/integrations/emoji.js +1 -1
  170. package/src/integrations/entercommand.js +1 -1
  171. package/src/integrations/findandreplace.js +1 -1
  172. package/src/integrations/font.js +1 -1
  173. package/src/integrations/formatpainter.js +1 -1
  174. package/src/integrations/heading.js +1 -1
  175. package/src/integrations/highlight.js +1 -1
  176. package/src/integrations/horizontalline.js +1 -1
  177. package/src/integrations/htmlembed.js +1 -1
  178. package/src/integrations/image.js +1 -1
  179. package/src/integrations/imagereplace.js +1 -1
  180. package/src/integrations/imagestyle.js +1 -1
  181. package/src/integrations/importword.js +1 -1
  182. package/src/integrations/indent.js +1 -1
  183. package/src/integrations/inputcommand.js +1 -1
  184. package/src/integrations/legacylist.js +1 -1
  185. package/src/integrations/legacylistproperties.js +1 -1
  186. package/src/integrations/lineheight.js +1 -1
  187. package/src/integrations/link.js +1 -1
  188. package/src/integrations/list.js +1 -1
  189. package/src/integrations/listproperties.js +1 -1
  190. package/src/integrations/mediaembed.js +1 -1
  191. package/src/integrations/mention.js +1 -1
  192. package/src/integrations/mergefields.js +1 -1
  193. package/src/integrations/multilevellist.js +1 -1
  194. package/src/integrations/pagebreak.js +1 -1
  195. package/src/integrations/paragraph.js +1 -1
  196. package/src/integrations/removeformat.js +1 -1
  197. package/src/integrations/replacesourcecommand.js +1 -1
  198. package/src/integrations/restrictededitingmode.js +1 -1
  199. package/src/integrations/shiftentercommand.js +1 -1
  200. package/src/integrations/standardeditingmode.js +1 -1
  201. package/src/integrations/style.js +1 -1
  202. package/src/integrations/table.js +1 -1
  203. package/src/integrations/tablecaption.js +1 -1
  204. package/src/integrations/tableclipboard.js +2 -2
  205. package/src/integrations/tablecolumnresize.js +1 -1
  206. package/src/integrations/tableheadings.js +1 -1
  207. package/src/integrations/tablelayout.js +1 -1
  208. package/src/integrations/tablemergesplit.js +1 -1
  209. package/src/integrations/tableofcontents.js +1 -1
  210. package/src/integrations/tableproperties.js +1 -1
  211. package/src/integrations/template.js +1 -1
  212. package/src/integrations/title.js +1 -1
  213. package/src/integrations/undo.js +1 -1
  214. package/src/integrations/uploadcare.js +1 -1
  215. package/src/integrations/utils.js +1 -1
  216. package/src/suggestion.js +2 -2
  217. package/src/suggestiondescriptionfactory.js +1 -1
  218. package/src/trackchanges.js +1 -1
  219. package/src/trackchangesdata.js +1 -1
  220. package/src/trackchangesediting.js +1 -1
  221. package/src/trackchangespreview.js +1 -1
  222. package/src/trackchangesui.js +1 -1
  223. package/src/ui/suggestioncontroller.js +2 -2
  224. package/src/ui/view/basesuggestionthreadview.js +1 -1
  225. package/src/ui/view/suggestionthreadview.js +1 -1
  226. package/src/ui/view/suggestionview.js +1 -1
  227. package/src/ui/view/trackchangespreviewview.js +1 -1
  228. package/src/utils/common-translations.js +1 -1
  229. 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 _0x5ec19b,Plugin as _0x23981b,PendingActions as _0x358e81}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x48c4b8,ObservableMixin as _0x5e6deb,uid as _0x59254f,priorities as _0xc47c1d,insertToPriorityArray as _0xc301c1,toArray as _0x47ad9e,logWarning as _0x33e06f,getEnvKeystrokeText as _0x5b83bc,FocusTracker as _0x123d4a,KeystrokeHandler as _0xa6019,Collection as _0x25a7a9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x198616,IconCancel as _0x18056c,IconTrackChanges as _0x41f0c0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3aa94f,View as _0x3da09f,ViewCollection as _0x317df4,FocusCycler as _0x25e410,UIModel as _0x29b6f4,createDropdown as _0x1dcb45,SplitButtonView as _0x2e78f1,addListToDropdown as _0x5a354d,MenuBarMenuView as _0x586e1f,MenuBarMenuListView as _0x46bfd0,ListSeparatorView as _0x39bffa,MenuBarMenuListItemView as _0x52af72,MenuBarMenuListItemButtonView as _0x22f4fd,BodyCollection as _0x19b83d,Dialog as _0x328ad2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2c44d2,DocumentCompare as _0x18ec53,hashObject as _0x3eb6bb,surroundingMarkersDetector as _0x5dcbb9,FOCUS_ANNOTATION_KEYSTROKE as _0x85d6db,AriaDescriptionView as _0x97fd59,setupThreadKeyboardNavigation as _0x5d12e7,trimHtml as _0x343ee3,UserView as _0x4d7a5f,LateFocusButtonView as _0x21559d,getDateTimeFormatter as _0x5788d9,getAllMarkersDomElementsSorted as _0x29af43,sanitizeEditorConfig as _0x4367f9}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x4bdf63,ModelLiveRange as _0x1207cf,ModelLivePosition as _0x425478,ModelPosition as _0x413b30,ModelRange as _0x3e4af7,_DetachOperation as _0x4eba01,ViewDowncastWriter as _0x41d09e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3ce07,toWidget as _0x463f6c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x53d8bc,set as _0x3bfe90,isEqual as _0x16f97e,unset as _0x239a51,omit as Jt}from'es-toolkit/compat';import{Delete as _0x1b047e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x355818}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0xa5dd57}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x5ec19b{['_enabledCommands'];constructor(_0x3dbc43,_0x4f27d5){super(_0x3dbc43),this['_enabledCommands']=_0x4f27d5,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 _0x2d96de of this['editor']['commands']['commands']())_0x2d96de['affectsData']&&!this['_enabledCommands']['has'](_0x2d96de)&&_0x2d96de['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4e858f of this['editor']['commands']['commands']())_0x4e858f['affectsData']&&!this['_enabledCommands']['has'](_0x4e858f)&&_0x4e858f['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x5ec19b{['_suggestions'];constructor(_0x2168ec,_0x870708){super(_0x2168ec),this['_suggestions']=_0x870708,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xebd83d){const _0x2e5196=this['_suggestions']['get'](_0xebd83d);if(!_0x2e5196)throw new _0x48c4b8('track-changes-accept-suggestion-not-found',this);const _0x3d7304=_0x2e5196['getRanges']();this['editor']['model']['canEditAt'](_0x3d7304)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2e5196);}}class O extends _0x5ec19b{['_suggestions'];constructor(_0x15a773,_0x523aec){super(_0x15a773),this['_suggestions']=_0x523aec,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2d1c8a){const _0x5ee6d5=this['_suggestions']['get'](_0x2d1c8a);if(!_0x5ee6d5)throw new _0x48c4b8('track-changes-discard-suggestion-not-found',this);const _0x49930f=_0x5ee6d5['getRanges']();this['editor']['model']['canEditAt'](_0x49930f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5ee6d5);}}function ls(_0x10d428,_0x4614a1){let _0x7d49a1='';return _0x7d49a1+=_0x10d428['split']('*')['map']((_0x332237,_0x1e3f2f)=>_0x1e3f2f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x332237)+'</span>':tn(_0x332237))['join'](''),_0x4614a1&&(_0x7d49a1+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4614a1['value']+'\x22\x20title=\x22'+_0x4614a1['title']+'\x22></span>'),_0x7d49a1;}function tn(_0x1b41b3){const _0x58c27f=document['createElement']('span');return _0x58c27f['innerText']=_0x1b41b3,_0x58c27f['innerHTML'];}function ts(_0xab2a33){return _0xab2a33['sort']((_0x2fd3c6,_0xa8d4e9)=>'attribute'===_0x2fd3c6['type']&&'attribute'!==_0xa8d4e9['type']?-0x1:'attribute'!==_0x2fd3c6['type']&&'attribute'===_0xa8d4e9['type']?0x1:'deletion'==_0x2fd3c6['type']&&'deletion'!=_0xa8d4e9['type']?-0x1:'deletion'!=_0x2fd3c6['type']&&'deletion'==_0xa8d4e9['type']?0x1:0x0);}function to(_0x166499,_0x25550d){let _0x386bbc,_0x2e8f13=0x0;const _0x1874a4=[],_0x3b241f=_0x25550d['schema'];for(;_0x2e8f13<_0x166499['length'];){const _0x331b8b=_0x166499[_0x2e8f13],_0x4f5072=_0x166499[_0x2e8f13+0x1];_0x386bbc||(_0x386bbc=_0x25550d['createPositionBefore'](_0x331b8b)),nn(_0x25550d,_0x331b8b,_0x4f5072)||(_0x1874a4['push'](_0x25550d['createRange'](_0x386bbc,_0x3b241f['isObject'](_0x331b8b)?_0x25550d['createPositionAfter'](_0x331b8b):_0x25550d['createPositionAt'](_0x331b8b,'end'))),_0x386bbc=null),_0x2e8f13++;}return _0x1874a4;}function nn(_0x23b687,_0x2ef0b2,_0xb11524){if(!_0xb11524)return!0x1;const _0x5d4d3d=_0x23b687['createPositionAfter'](_0x2ef0b2),_0x1ce60e=_0x23b687['createPositionBefore'](_0xb11524);return _0x5d4d3d['isTouching'](_0x1ce60e);}function rs(_0x2d895e,_0x4b7a92,_0x35e131){for(;_0x35e131['length'];){const _0x448a22=_0x35e131['splice'](0x0,0x64);_0x2d895e['change'](()=>{for(const _0x4ec436 of _0x448a22)_0x4ec436['isInContent']&&_0x4b7a92['execute'](_0x4ec436['id']);});}}class x extends _0x5ec19b{['_command'];['_suggestions'];constructor(_0xcf79e9,_0x355466,_0x396cc3){super(_0xcf79e9),this['_command']=_0x355466,this['_suggestions']=_0x396cc3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2456d9=Array['from'](this['_suggestions']['values']())['some'](_0x229bdb=>_0x229bdb['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2456d9;}['execute'](){const _0x39f50d=ts(Array['from'](this['_suggestions']['values']()));for(const _0x17d50d of _0x39f50d){const _0x78df39=_0x17d50d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x78df39))return;}rs(this['editor']['model'],this['_command'],_0x39f50d);}}class E extends _0x5ec19b{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x40665c,_0x4e39ab,_0x3f2383){super(_0x40665c),this['_command']=_0x4e39ab,this['_suggestions']=_0x3f2383,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x45db2d=this['editor']['model']['document']['selection'],_0x2524f3=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3d8038,_0x500756){const _0x108bcf=Array['from'](_0x3d8038['getRanges']()),_0x457455=new Set();for(const _0x102b75 of _0x500756)if(_0x102b75['isInContent']){for(const _0x4f7c3d of _0x108bcf)for(const _0x3f8096 of _0x102b75['getRanges']())(_0x4f7c3d['isIntersecting'](_0x3f8096)||_0x3d8038['isCollapsed']&&!_0x102b75['isMultiRange']&&_0x102b75['next']&&_0x3f8096['end']['isTouching'](_0x4f7c3d['start']))&&_0x457455['add'](_0x102b75);}return _0x457455;}(_0x45db2d,_0x2524f3),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3bfd66=ts(Array['from'](this['_selectedSuggestions']));for(const _0x28b6f5 of _0x3bfd66){const _0x1f4892=_0x28b6f5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1f4892))return;}rs(this['editor']['model'],this['_command'],_0x3bfd66);}}class R extends/* #__PURE__ -- @preserve */
24
- _0x5e6deb(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x44fd4f,_0x4ec785){super(),this['id']=_0x4ec785['id'],this['type']=_0x4ec785['type'],this['subType']=_0x4ec785['subType']||null,this['author']=_0x4ec785['author'],this['creator']=_0x4ec785['creator']||_0x4ec785['author'],this['isExternal']=Boolean(_0x4ec785['attributes']&&_0x4ec785['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x4ec785['originalSuggestionId']||null,this['_model']=_0x44fd4f,this['_onAccept']=_0x4ec785['onAccept'],this['_onDiscard']=_0x4ec785['onDiscard'],this['_onAttributesChange']=_0x4ec785['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4ec785['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 _0x31e55e=this;for(;_0x31e55e['previous'];)_0x31e55e=_0x31e55e['previous'];return _0x31e55e;}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'](_0x35a245){this['_markerNames']['add'](_0x35a245);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x120c61=>this['_model']['markers']['get'](_0x120c61))['filter'](_0x5674c1=>_0x5674c1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x467109=>{for(const _0x5807de of this['getMarkers']())_0x467109['removeMarker'](_0x5807de);}),this['_markerNames']['clear']();}['removeMarker'](_0x4a6ed9){this['_model']['change'](_0x19dc6b=>{_0x19dc6b['removeMarker'](_0x4a6ed9);}),this['_markerNames']['delete'](_0x4a6ed9);}['addRange'](_0x310417){const _0x42af33='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x42af33),this['_model']['change'](_0x46a86f=>{_0x46a86f['addMarker'](_0x42af33,{'range':_0x310417,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x9ab9ba){for(const _0x4b7edb of this['getRanges']())if(_0x4b7edb['isIntersecting'](_0x9ab9ba))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x123c97=>_0x123c97['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x521710,_0x53e6ac)=>[..._0x521710,..._0x53e6ac['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3143fe=this['getRanges']();if(0x1!=_0x3143fe['length'])return null;const _0x22074f=_0x3143fe[0x0],_0x5bbe68=_0x22074f['start']['nodeAfter'],_0x43cc82=_0x22074f['end']['nodeBefore'];return _0x5bbe68 instanceof _0x4bdf63?_0x5bbe68!=_0x43cc82?null:_0x5bbe68: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 _0x5936f7=[];let _0x3aee17=this['head'];for(;_0x3aee17;)_0x5936f7['push'](_0x3aee17),_0x3aee17=_0x3aee17['next'];return _0x5936f7;}['setAttribute'](_0x5c1bb6,_0x1f2a67){const _0x136ffb=_0x53d8bc(this['attributes']);_0x3bfe90(_0x136ffb,_0x5c1bb6,_0x1f2a67),_0x16f97e(_0x136ffb,this['attributes'])||(this['attributes']=_0x136ffb,this['_onAttributesChange'](_0x136ffb));}['removeAttribute'](_0x327201){const _0xeb9456=_0x53d8bc(this['attributes']);_0x239a51(_0xeb9456,_0x327201),_0x16f97e(_0xeb9456,this['attributes'])||(this['attributes']=_0xeb9456,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 _0x59254f()['substr'](0x1,0x5);}}function o(_0x1f9ca4,_0x4c9b6c,_0x4ff21e){const _0x4ae108=_0x1f9ca4['t'],t=_0x1f9ca4['t'];switch(_0x4c9b6c){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',_0x4ff21e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4ff21e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4ff21e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4ff21e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4ff21e);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',_0x4ff21e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4ff21e);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',_0x4ff21e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4ff21e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4ff21e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4ff21e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4ff21e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4ff21e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4ff21e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4ff21e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4ff21e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4ff21e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4ff21e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4ff21e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4ff21e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4ff21e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4ff21e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4ff21e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4ff21e);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4ff21e);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'},_0x4ff21e);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4ff21e);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4ff21e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4ff21e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4ff21e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4ff21e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4ff21e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4ff21e);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'},_0x4ff21e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4ff21e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4ff21e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4ff21e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4ff21e);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'},_0x4ff21e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4ff21e);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'},_0x4ff21e);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'},_0x4ff21e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4ff21e);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'},_0x4ff21e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4ff21e);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'},_0x4ff21e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4ff21e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4ff21e);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'},_0x4ff21e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4ff21e);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 _0x4ae108({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4ff21e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4ae108({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4ff21e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4ff21e);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'},_0x4ff21e);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'},_0x4ff21e);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'},_0x4ff21e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4c9b6c;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x51d2a1,_0x3f2624){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x51d2a1,this['_locale']=_0x3f2624;}['getDescriptions'](_0x24b201){const _0x1076d3=[],_0x1ec2cd=new Set(),_0x364aa3=new Set();for(let _0x35c66b=0x0;_0x35c66b<_0x24b201['length'];_0x35c66b++){const _0x4cc8f2=_0x24b201[_0x35c66b];if(!_0x4cc8f2['isInContent'])continue;const _0x20c496=this['_handleCustomCallbackDescription'](_0x4cc8f2);if(_0x20c496){if(null!=_0x4cc8f2['subType']){if(_0x1ec2cd['has'](_0x4cc8f2['subType']))continue;_0x1ec2cd['add'](_0x4cc8f2['subType']);}_0x1076d3['push'](_0x20c496);}else{if('attribute'==_0x4cc8f2['type']){const _0x192266=_0x4cc8f2['data']['key'];if(_0x364aa3['has'](_0x192266))continue;_0x364aa3['add'](_0x4cc8f2['data']['key']),_0x192266==m?this['_handleRenameSuggestionDescription'](_0x1076d3,_0x4cc8f2):this['_handleAttributeSuggestionDescription'](_0x1076d3,_0x4cc8f2);continue;}'insertion'!=_0x4cc8f2['type']&&'deletion'!=_0x4cc8f2['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1076d3,_0x4cc8f2,_0x24b201[_0x35c66b+0x1]);}}return this['_resolveDescriptionItems'](_0x1076d3);}['registerDescriptionCallback'](_0x56d25d){this['_customCallbacks']['push'](_0x56d25d);}['registerElementLabel'](_0x41e78b,_0x142038,_0xfd6a65=_0xc47c1d['normal']){'function'==typeof _0x41e78b?_0xc301c1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x41e78b,'label':_0x142038,'priority':_0xfd6a65}):this['_itemLabels']['set'](_0x41e78b,_0x142038);}['registerAttributeLabel'](_0x2c7c6a,_0x324171){this['_attributeLabels']['set'](_0x2c7c6a,_0x324171);}['getItemLabel'](_0x1326d9,_0xe70e1c=0x1){let _0x10b17f;for(const _0xb95189 of this['_itemLabelsCallbacks'])if(_0xb95189['matchingCallback'](_0x1326d9)){_0x10b17f=_0xb95189['label'];break;}return _0x10b17f||(_0x10b17f=this['_itemLabels']['get'](_0x1326d9['name'])),_0x10b17f?_0x10b17f(_0xe70e1c):0x1!==_0xe70e1c?_0xe70e1c+'\x20'+_0x1326d9['name']+'s':''+_0x1326d9['name'];}['_addDescriptionItems'](_0xe6952f,_0x3521bb){const _0x554913=_0x3521bb['getFirstRange']()['getWalker'](),_0x207466='insertion'==_0x3521bb['type']?'add':'remove';for(const _0x35d16b of _0x554913){const _0x565f10=_0x35d16b['item'],_0x5e0ba9=_0xe6952f[_0xe6952f['length']-0x1];if(_0x565f10['is']('$textProxy'))_0x5e0ba9&&_0x5e0ba9['type']['indexOf']('Container')>-0x1&&_0xe6952f['pop'](),_0x5e0ba9&&'text'==_0x5e0ba9['type']?_0x5e0ba9[_0x207466]+=_0x565f10['data']:_0xe6952f['push']({'type':'text','add':'add'==_0x207466?_0x565f10['data']:'','remove':'remove'==_0x207466?_0x565f10['data']:''});else{if(this['_schema']['isObject'](_0x565f10)){const _0x2a3f0d=_0x565f10;if(_0x5e0ba9&&_0x5e0ba9['type']['indexOf']('Container')>-0x1&&_0xe6952f['pop'](),'elementEnd'==_0x35d16b['type'])continue;_0x5e0ba9&&_0x5e0ba9['type']==_0x207466+'Object'&&_0x5e0ba9['element']['name']==_0x2a3f0d['name']?_0x5e0ba9['quantity']++:_0xe6952f['push']({'type':_0x207466+'Object','element':_0x2a3f0d,'quantity':0x1}),_0x554913['skip'](_0x449a9b=>!('elementEnd'==_0x449a9b['type']&&_0x449a9b['item']==_0x565f10));}else{if(this['_schema']['checkChild'](_0x565f10,'$text')||_0x565f10['is']('element','softBreak')){const _0x10c2d6=_0x565f10;if('add'==_0x207466&&'elementStart'==_0x35d16b['type']||'remove'==_0x207466&&'elementEnd'==_0x35d16b['type'])continue;if(_0x5e0ba9&&-0x1==_0x5e0ba9['type']['indexOf']('Container')){'text'==_0x5e0ba9['type']&&(_0x5e0ba9[_0x207466]+='\x0a');continue;}let _0x16fabf;if(_0x16fabf='add'==_0x207466?_0x10c2d6['nextSibling']&&!this['_schema']['isObject'](_0x10c2d6['nextSibling'])?_0x10c2d6['nextSibling']:null:_0x10c2d6['previousSibling']&&!this['_schema']['isObject'](_0x10c2d6['previousSibling'])?_0x10c2d6['previousSibling']:null,_0x10c2d6['isEmpty']||_0x16fabf&&_0x16fabf['isEmpty']){const _0x30dd0e=_0x16fabf&&_0x16fabf['isEmpty']?_0x16fabf:_0x10c2d6;_0x5e0ba9&&_0x5e0ba9['type']==_0x207466+'EmptyContainer'&&_0x5e0ba9['element']['name']==_0x30dd0e['name']?_0x5e0ba9['quantity']++:_0xe6952f['push']({'type':_0x207466+'EmptyContainer','element':_0x30dd0e,'quantity':0x1});}else _0xe6952f['push']({'type':_0x207466+'Container','element':_0x10c2d6});}}}}}['_resolveDescriptionItems'](_0x30d8df){const _0x12bf85=this['_locale'],_0x3007dd=[],_0x25f422=[],_0x199919=[];for(const _0x819010 of _0x30d8df)switch(_0x819010['type']){case'text':if(_0x819010['add']=_0x819010['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x819010['remove']=_0x819010['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x819010['add']&&''!=_0x819010['remove']){_0x3007dd['push']({'type':'replace','content':o(_0x12bf85,'REPLACE_TEXT',['\x22'+_0x819010['remove']+'\x22','\x22'+_0x819010['add']+'\x22'])});continue;}if(null!=_0x819010['add']['match'](/^ +$/)){_0x3007dd['push']({'type':'insertion','content':o(_0x12bf85,'*Insert:*\x20%0',o(_0x12bf85,'ELEMENT_SPACE',_0x819010['add']['length']))});continue;}if(null!=_0x819010['remove']['match'](/^ +$/)){_0x3007dd['push']({'type':'deletion','content':o(_0x12bf85,'*Remove:*\x20%0',o(_0x12bf85,'ELEMENT_SPACE',_0x819010['remove']['length']))});continue;}if(''!=_0x819010['add']){_0x3007dd['push']({'type':'insertion','content':o(_0x12bf85,'*Insert:*\x20%0','\x22'+_0x819010['add']+'\x22')});continue;}_0x3007dd['push']({'type':'deletion','content':o(_0x12bf85,'*Remove:*\x20%0','\x22'+_0x819010['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3007dd['push']({'type':'insertion','content':o(_0x12bf85,'*Insert:*\x20%0',this['getItemLabel'](_0x819010['element'],_0x819010['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3007dd['push']({'type':'deletion','content':o(_0x12bf85,'*Remove:*\x20%0',this['getItemLabel'](_0x819010['element'],_0x819010['quantity']))});continue;case'addContainer':_0x3007dd['push']({'type':'insertion','content':o(_0x12bf85,'*Split:*\x20%0',this['getItemLabel'](_0x819010['element'],_0x819010['quantity']))});continue;case'removeContainer':_0x3007dd['push']({'type':'deletion','content':o(_0x12bf85,'*Merge:*\x20%0',this['getItemLabel'](_0x819010['element'],_0x819010['quantity']))});continue;case'addFormat':_0x25f422['push'](_0x819010['key']);continue;case'removeFormat':_0x199919['push'](_0x819010['key']);continue;default:_0x3007dd['push'](_0x819010);}if(_0x25f422['length']){const _0x253422=_0x25f422['map'](_0x2ef126=>this['_attributeLabels']['has'](_0x2ef126)?this['_attributeLabels']['get'](_0x2ef126):_0x2ef126)['join'](',\x20');_0x3007dd['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x253422)});}if(_0x199919['length']){const _0x4c9298=_0x199919['map'](_0x19530a=>this['_attributeLabels']['has'](_0x19530a)?this['_attributeLabels']['get'](_0x19530a):_0x19530a)['join'](',\x20');_0x3007dd['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4c9298)});}return _0x3007dd;}['_handleCustomCallbackDescription'](_0x2f9bfb){for(const _0x154c89 of this['_customCallbacks']){const _0x56797f=_0x154c89(_0x2f9bfb);if(_0x56797f&&'type'in _0x56797f)return _0x56797f;}}['_handleAttributeSuggestionDescription'](_0x166a22,_0xed493a){const _0x200628=_0xed493a['data'],_0x40dc22=void 0x0===_0x200628['newValue']?'removeFormat':'addFormat';_0x166a22['push']({'type':_0x40dc22,'key':_0x200628['key']});}['_handleRenameSuggestionDescription'](_0x188e0c,_0x3e7900){_0x188e0c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3e7900['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x48fa35,_0x3393a3,_0x5dd065){if(this['_addDescriptionItems'](_0x48fa35,_0x3393a3),_0x5dd065&&_0x5dd065['getFirstRange']()&&!_0x3393a3['getFirstRange']()['end']['isEqual'](_0x5dd065['getFirstRange']()['start'])){const _0xc627c6=_0x48fa35[_0x48fa35['length']-0x1],_0x5bafdc='insertion'==_0x3393a3['type']?'add':'remove';_0xc627c6&&'text'==_0xc627c6['type']&&(_0xc627c6[_0x5bafdc]+='\x0a');}}}class V extends _0x23981b{['afterInit'](){const _0x41fa6f=this['editor'],_0x3e8170=_0x41fa6f['plugins']['get']('TrackChangesEditing');_0x41fa6f['commands']['get']('showAIAssistant')&&_0x3e8170['enableCommand']('showAIAssistant');}}class F extends _0x23981b{['afterInit'](){const _0x366f88=this['editor'],_0x57a273=_0x366f88['plugins']['get']('TrackChangesEditing');_0x366f88['commands']['get']('toggleAi')&&_0x57a273['enableCommand']('toggleAi');}}class G extends _0x23981b{['afterInit'](){const _0xaa3d39=this['editor'],_0x4cb9ae=_0xaa3d39['plugins']['get']('TrackChangesEditing');_0xaa3d39['commands']['get']('aiQuickAction')&&_0x4cb9ae['enableCommand']('aiQuickAction');}}class L extends _0x23981b{['afterInit'](){const _0x136232=this['editor'],_0x171293=_0x136232['locale'];if(!_0x136232['plugins']['has']('AlignmentEditing'))return;const _0x560ebb=_0x136232['plugins']['get']('TrackChangesEditing');_0x560ebb['enableDefaultAttributesIntegration']('alignment'),_0x560ebb['registerBlockAttribute']('alignment'),_0x560ebb['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x171293,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6b8ad1=this['editor'],_0x5e71dd=_0x6b8ad1['locale'];_0x6b8ad1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x361af5=>{if('formatBlock'!=_0x361af5['type'])return;const {data:_0x13eaa4}=_0x361af5;if(_0x13eaa4&&'alignment'==_0x13eaa4['commandName']){const _0x171009=_0x13eaa4['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5e71dd,'*Format:*\x20%0',function(_0xa1da3c){switch(_0xa1da3c){case'left':return o(_0x5e71dd,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5e71dd,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5e71dd,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5e71dd,'FORMAT_JUSTIFY_TEXT');}}(_0x171009))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class J extends _0x23981b{['afterInit'](){const _0xc054f0=this['editor'],_0x352729=_0xc054f0['plugins']['get']('TrackChangesEditing'),_0x4ea767=_0xc054f0['locale'];for(const _0x564ecb of ti){if(!_0xc054f0['plugins']['has'](_0x564ecb))continue;const _0x3660c0=_0x564ecb['slice'](0x0,-0x7)['toLowerCase'](),_0x5263='FORMAT_'+_0x3660c0['toUpperCase']();_0x352729['enableDefaultAttributesIntegration'](_0x3660c0),_0x352729['registerInlineAttribute'](_0x3660c0),_0x352729['descriptionFactory']['registerAttributeLabel'](_0x3660c0,o(_0x4ea767,_0x5263));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e1ff9=this['editor'],_0x88996e=_0x2e1ff9['locale'],_0x18376c=_0x2e1ff9['plugins']['get']('TrackChangesEditing');function _0x3b2777(_0x2abace,_0x5851bf){_0x18376c['descriptionFactory']['registerDescriptionCallback'](_0x4a67af=>{if('formatInline'!=_0x4a67af['type'])return;const {data:_0x1f622d}=_0x4a67af;return _0x1f622d&&_0x1f622d['commandName']===_0x2abace?_0x1f622d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x88996e,'*Format:*\x20%0',_0x5851bf)}:{'type':'format','content':o(_0x88996e,'*Remove\x20format:*\x20%0',_0x5851bf)}:void 0x0;});}_0x3b2777('bold',o(_0x88996e,'FORMAT_BOLD')),_0x3b2777('italic',o(_0x88996e,'FORMAT_ITALIC')),_0x3b2777('underline',o(_0x88996e,'FORMAT_UNDERLINE')),_0x3b2777('code',o(_0x88996e,'FORMAT_CODE')),_0x3b2777('strikethrough',o(_0x88996e,'FORMAT_STRIKETHROUGH')),_0x3b2777('subscript',o(_0x88996e,'FORMAT_SUBSCRIPT')),_0x3b2777('superscript',o(_0x88996e,'FORMAT_SUPERSCRIPT'));}}class K extends _0x23981b{['afterInit'](){const _0x24913d=this['editor'],_0x58e642=_0x24913d['locale'];if(!_0x24913d['plugins']['has']('BlockQuoteEditing'))return;const _0x2a9580=_0x24913d['plugins']['get']('TrackChangesEditing'),_0x4cad00=this['editor']['commands']['get']('blockQuote');_0x2a9580['enableCommand']('blockQuote',(_0x27f74b,_0x113eef={})=>{const _0x3799f9=this['editor']['model']['document']['selection'],_0x56dc73=_0x113eef&&void 0x0!==_0x113eef['forceValue']?_0x113eef['forceValue']:!_0x4cad00['value'];let _0x378b68=[];if(_0x56dc73){const _0x4db8cf=Array['from'](_0x3799f9['getSelectedBlocks']())['filter'](_0x2fd8d3=>oo(_0x2fd8d3)||function(_0x3634ae,_0x287adf){const _0x5d8ac0=_0x287adf['checkChild'](_0x3634ae['parent'],'blockQuote'),_0x4bfe13=_0x287adf['checkChild'](['$root','blockQuote'],_0x3634ae);return _0x5d8ac0&&_0x4bfe13;}(_0x2fd8d3,this['editor']['model']['schema']));_0x378b68=to(_0x4db8cf,_0x24913d['model']);}else{const _0x5b8c17=Array['from'](_0x3799f9['getSelectedBlocks']())['filter'](_0x35de92=>oo(_0x35de92));_0x378b68=to(_0x5b8c17,_0x24913d['model']);}_0x24913d['model']['change'](()=>{for(const _0x395e85 of _0x378b68)_0x2a9580['markBlockFormat'](_0x395e85,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x56dc73}]});});}),_0x2a9580['descriptionFactory']['registerDescriptionCallback'](_0x2396b4=>{const {data:_0x5a06e8}=_0x2396b4;if(_0x5a06e8&&'blockQuote'==_0x5a06e8['commandName']){const _0xd6941c=o(_0x58e642,'ELEMENT_BLOCK_QUOTE');return _0x5a06e8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58e642,'*Set\x20format:*\x20%0',_0xd6941c)}:{'type':'format','content':o(_0x58e642,'*Remove\x20format:*\x20%0',_0xd6941c)};}});}}function oo(_0xf5f0f1){return'blockQuote'==_0xf5f0f1['parent']['name'];}class q extends _0x23981b{['afterInit'](){const _0x188876=this['editor'],_0x51c0da=_0x188876['locale'],_0x341661=_0x188876['plugins']['get']('TrackChangesEditing');_0x188876['plugins']['has']('BookmarkEditing')&&(_0x341661['enableCommand']('insertBookmark'),_0x341661['enableDefaultAttributesIntegration']('updateBookmark'),_0x341661['registerBlockAttribute']('bookmarkId'),_0x341661['descriptionFactory']['registerDescriptionCallback'](_0x1334fe=>{if('insertion'!=_0x1334fe['type']&&'deletion'!=_0x1334fe['type']&&'attribute'!=_0x1334fe['type'])return;const _0x4bcf7d=_0x1334fe['getContainedElement']();if(null==_0x4bcf7d)return;if(!_0x4bcf7d['is']('element','bookmark'))return;const _0x83dd2d=_0x4bcf7d['getAttribute']('bookmarkId');if('insertion'==_0x1334fe['type'])return{'type':'insertion','content':o(_0x51c0da,'*Insert:*\x20%0','\x22'+_0x83dd2d+'\x22\x20'+o(_0x51c0da,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1334fe['type'])return{'type':'deletion','content':o(_0x51c0da,'*Remove:*\x20%0','\x22'+_0x83dd2d+'\x22\x20'+o(_0x51c0da,'ELEMENT_BOOKMARK'))};const {data:_0x5a0fc1}=_0x1334fe;if(!_0x5a0fc1||'bookmarkId'!=_0x5a0fc1['key'])return;return{'type':'format','content':o(_0x51c0da,'*Set\x20bookmark:*\x20%0','\x22'+_0x5a0fc1['newValue']+'\x22')};}));}}class H extends _0x23981b{['afterInit'](){const _0x26a88a=this['editor'];_0x26a88a['plugins']['has']('CaseChange')&&(_0x26a88a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x26a88a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x26a88a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0x23981b{['afterInit'](){const _0x223499=this['editor'];_0x223499['commands']['get']('ckbox')&&_0x223499['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class z extends _0x23981b{['afterInit'](){const _0x58ca05=this['editor'];if(!_0x58ca05['plugins']['has']('CodeBlock'))return;const _0x1906b4=_0x58ca05['plugins']['get']('TrackChangesEditing'),_0x552446=_0x58ca05['locale'],_0x5324c0=_0x58ca05['config']['get']('codeBlock')['languages'],_0x2a3714=_0x58ca05['commands']['get']('codeBlock');_0x1906b4['enableCommand']('indentCodeBlock'),_0x1906b4['enableCommand']('outdentCodeBlock'),_0x1906b4['enableCommand']('codeBlock',(_0x162761,_0x56cfa3={})=>{const _0x16d841=_0x58ca05['model'],_0xedfebb=_0x58ca05['model']['document']['selection'],_0x19306a=_0x56cfa3&&void 0x0!==_0x56cfa3['forceValue']?_0x56cfa3['forceValue']:!_0x2a3714['value'];let _0x5cc5c9;_0x56cfa3['language']||(_0x56cfa3['language']=_0x5324c0[0x0]['language']),_0x5cc5c9=_0x19306a?Array['from'](_0xedfebb['getSelectedBlocks']())['filter'](_0x4f5f63=>co(_0x4f5f63)||function(_0x41f0e2,_0x5650fc){if(_0x41f0e2['is']('rootElement')||_0x5650fc['isLimit'](_0x41f0e2))return!0x1;return _0x5650fc['checkChild'](_0x41f0e2['parent'],'codeBlock');}(_0x4f5f63,_0x16d841['schema'])):Array['from'](_0xedfebb['getSelectedBlocks']())['filter'](_0x4ecc5b=>co(_0x4ecc5b));const _0x13d997=to(_0x5cc5c9,_0x16d841);_0x16d841['change'](()=>{for(const _0x38f9cf of _0x13d997)_0x1906b4['markBlockFormat'](_0x38f9cf,{'commandName':'codeBlock','commandParams':[{..._0x56cfa3,'forceValue':_0x19306a}],'formatGroupId':'blockName'});});}),(_0x1906b4['descriptionFactory']['registerElementLabel']('codeBlock',_0x3496f0=>o(_0x552446,'ELEMENT_CODE_BLOCK',_0x3496f0)),_0x1906b4['descriptionFactory']['registerDescriptionCallback'](_0x16a18f=>{if('formatBlock'!=_0x16a18f['type'])return;const _0x7466bd=_0x552446['t'],{data:_0x5900c0}=_0x16a18f;if(!_0x5900c0||'codeBlock'!=_0x5900c0['commandName'])return;const _0x3fcda6=_0x5900c0['commandParams'][0x0]['language'],_0x36fe91=_0x7466bd(_0x5324c0['find'](_0x56149b=>_0x56149b['language']===_0x3fcda6)['label'])['toLowerCase']();return _0x5900c0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x552446,'*Set\x20format:*\x20%0',o(_0x552446,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x36fe91+')')}:{'type':'format','content':o(_0x552446,'*Remove\x20format:*\x20%0',o(_0x552446,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x56bcb6){return'codeBlock'==_0x56bcb6['name'];}class Q extends _0x23981b{['afterInit'](){const _0x35d072=this['editor'];if(!_0x35d072['plugins']['has']('CommentsEditing'))return;_0x35d072['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5f0a3c,_0x4ec1f4,_0x500ad9){const _0x1a0734=[];for(const _0x440154 of _0x4ec1f4['getItems']())_0x440154['hasAttribute'](_0x5f0a3c)&&_0x1a0734['push'](_0x500ad9['createRangeOn'](_0x440154));return _0x1a0734;}function Ve(_0x3e4ca0,_0x14de95,{showActiveMarker:_0x259d3c=!0x0}={}){const _0x5d5ecf=_0x3e4ca0['plugins']['get']('TrackChangesEditing');return(_0x52f62f,_0x389f6c,_0x8c6525)=>{if(!_0x8c6525['consumable']['test'](_0x389f6c['markerRange'],_0x52f62f['name']))return;const _0x189a25=_0x389f6c['markerRange']['getWalker'](),_0x3849b1=_0x389f6c['markerRange']['start'],_0x14cce4=_0x3e4ca0['model']['schema'];let _0x5eb68e=null,_0x27ee9b=null,_0x1877fb=!0x1,_0x2915fd=!0x1;for(const _0x57932e of _0x189a25){const _0x17e998=_0x57932e['item'];_0x1877fb=_0x1877fb||_0x14cce4['isContent'](_0x17e998);const _0x3d9ddb=_0x8c6525['mapper']['toViewElement'](_0x17e998);if(_0x3d9ddb&&_0x3d9ddb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x57932e['type']&&(_0x14cce4['isBlock'](_0x17e998)&&!_0x14cce4['isLimit'](_0x17e998)&&(_0x17e998['nextSibling']||_0x3849b1['isAtEnd']?_0x5eb68e&&_0x5eb68e['parent']==_0x17e998||(_0x5eb68e=_0x17e998,_0x450789(_0x57932e['previousPosition']),_0x2915fd=!0x0):_0x27ee9b=_0x27ee9b||_0x57932e['previousPosition']));}function _0x450789(_0x562bca){const {id:_0x5939ec,authorId:_0x5cd95e}=_0x5d5ecf['_splitMarkerName'](_0x389f6c['markerName']),_0x35513a=_0x8c6525['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x14de95,'data-suggestion':_0x5939ec,'data-author-id':_0x5cd95e}),_0x2c8f24=_0x8c6525['mapper']['toViewPosition'](_0x562bca);_0x259d3c&&_0x5d5ecf['activeMarkers']['includes'](_0x389f6c['markerName'])&&_0x8c6525['writer']['addClass']('ck-suggestion-marker--active',_0x35513a),_0x8c6525['writer']['insert'](_0x2c8f24,_0x35513a),_0x8c6525['mapper']['bindElementToMarker'](_0x35513a,_0x389f6c['markerName']);}_0x1877fb||_0x2915fd||!_0x27ee9b||_0x450789(_0x27ee9b);};}class X extends _0x23981b{static get['requires'](){return[_0x1b047e];}['init'](){const _0x2bc4ee=this['editor'],_0x2fb36f=_0x2bc4ee['plugins']['get']('TrackChangesEditing');_0x2fb36f['enableCommand']('delete');const _0x4c98c5=_0x2bc4ee['commands']['get']('deleteForward');_0x2fb36f['enableCommand']('deleteForward',(_0x36ac3d,_0x58d7a4={})=>{const _0x33fbb5=_0x2bc4ee['model']['createSelection'](_0x2bc4ee['model']['document']['selection']);_0x33fbb5['isCollapsed']&&_0x2bc4ee['model']['modifySelection'](_0x33fbb5,{'direction':'forward','unit':_0x58d7a4['unit']});const _0xb33583=_0x33fbb5['getFirstRange'](),_0x4c62d9=_0x1207cf['fromRange'](_0xb33583);let _0x31e008;_0x36ac3d(_0x58d7a4),_0x31e008='$graveyard'==_0x4c62d9['root']['rootName']?_0x2bc4ee['model']['createRange'](_0xb33583['start']):_0x2bc4ee['model']['createRange'](_0x4c62d9['start'],_0x4c62d9['end']),_0x4c62d9['detach'](),_0x2bc4ee['model']['enqueueChange'](_0x4c98c5['buffer']['batch'],_0x40c9d6=>{_0x4c98c5['buffer']['lock'](),_0x40c9d6['setSelection'](_0x40c9d6['createRange'](_0x31e008['end'])),_0x4c98c5['buffer']['unlock']();});}),_0x2bc4ee['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ve(_0x2bc4ee,'merge'),{'priority':'high'}),_0x2bc4ee['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2a9478,_0x4a6d7a,_0x58023b)=>{_0x58023b['options']['showSuggestionHighlights']&&Ve(_0x2bc4ee,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2a9478,_0x4a6d7a,_0x58023b);},{'priority':'high'}),_0x2bc4ee['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2157db,_0xfa92d9,_0x5ad118)=>{const _0x4c30f0=_0x5ad118['mapper']['markerNameToElements'](_0xfa92d9['markerName']);if(_0x4c30f0){for(const _0x10dcd0 of _0x4c30f0)_0x10dcd0['is']('uiElement')&&(_0x5ad118['mapper']['unbindElementFromMarkerName'](_0x10dcd0,_0xfa92d9['markerName']),_0x5ad118['writer']['remove'](_0x10dcd0));}},{'priority':'high'});}}class Y extends _0x23981b{['afterInit'](){const _0x4cecc4=this['editor'];if(!_0x4cecc4['plugins']['has']('ListEditing'))return;const _0x186981=_0x4cecc4['locale'],_0x33cb95=_0x4cecc4['plugins']['get']('TrackChangesEditing'),_0x4b7e68=_0x4cecc4['plugins']['has']('TodoListEditing'),_0x4fc75f=!!_0x4cecc4['config']['get']('list.multiBlock');function _0xa3d5cc(_0x6d7165){return{'type':'format','content':''+o(_0x186981,'*Set\x20format:*\x20%0',_0x6d7165)};}function _0x58494d(_0x1857e9){return{'type':'format','content':''+o(_0x186981,'*Remove\x20format:*\x20%0',_0x1857e9)};}_0x33cb95['enableDefaultAttributesIntegration']('numberedList'),_0x33cb95['enableDefaultAttributesIntegration']('bulletedList'),_0x33cb95['enableDefaultAttributesIntegration']('customNumberedList'),_0x33cb95['enableDefaultAttributesIntegration']('customBulletedList'),_0x33cb95['enableDefaultAttributesIntegration']('indentList'),_0x33cb95['enableDefaultAttributesIntegration']('outdentList'),_0x33cb95['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x33cb95['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x33cb95['registerBlockAttribute']('listItemId'),_0x33cb95['registerBlockAttribute']('listType'),_0x33cb95['registerBlockAttribute']('listIndent'),_0x4fc75f&&(_0x33cb95['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x33cb95['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4b7e68&&(_0x33cb95['enableDefaultAttributesIntegration']('todoList'),_0x33cb95['enableDefaultAttributesIntegration']('checkTodoList'),_0x33cb95['registerBlockAttribute']('todoListChecked'),_0x33cb95['descriptionFactory']['registerDescriptionCallback'](_0x9105a5=>{const {data:_0x53ee10}=_0x9105a5;if(_0x53ee10&&'todoListChecked'==_0x53ee10['key'])return{'type':'format','content':_0x53ee10['newValue']?o(_0x186981,'*Check\x20item*'):o(_0x186981,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1b08b4=>{if(_0x1b08b4['batch']['isUndo'])return!0x1;let _0x25e241=!0x1;const _0x2669ee=_0x33cb95['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ec26b=>'todoListChecked'===_0x33cb95['_getAttributeKey'](_0x2ec26b));for(const _0x29af69 of _0x2669ee){'todo'!=_0x29af69['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x33cb95['_findSuggestions'](_0x29af69['getFirstRange'](),'attribute')['find'](_0x24c269=>'listType'===_0x33cb95['_getAttributeKey'](_0x24c269['suggestion']))||(_0x1b08b4['removeMarker'](_0x29af69['getFirstMarker']()),_0x25e241=!0x0));}return _0x25e241;})),_0x33cb95['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x186981,'FORMAT_INDENT'));const _0x66d068={'type':'format','content':''};_0x33cb95['descriptionFactory']['registerDescriptionCallback'](_0x5afaca=>{const {data:_0x5a9991}=_0x5afaca;if(!_0x5a9991||'listType'!=_0x5a9991['key'])return;let _0x4f30cd=_0x5afaca['head'];for(;_0x4f30cd;){if(_0x4f30cd['data']&&(('listStyle'==_0x4f30cd['data']['key']||'listMarkerStyle'==_0x4f30cd['data']['key'])&&(_0x4f30cd['data']['newValue']&&'default'!=_0x4f30cd['data']['newValue']||'default'!=_0x4f30cd['data']['oldValue']&&!_0x5a9991['newValue'])||!_0x4fc75f&&_0x4f30cd['data']['key']==m))return _0x66d068;_0x4f30cd=_0x4f30cd['next'];}if(null==_0x5a9991['newValue'])switch(_0x5a9991['oldValue']){case'bulleted':return _0x58494d(o(_0x186981,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58494d(o(_0x186981,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58494d(o(_0x186981,'ELEMENT_TODO_LIST'));}switch(_0x5a9991['newValue']){case'bulleted':return _0xa3d5cc(o(_0x186981,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa3d5cc(o(_0x186981,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa3d5cc(o(_0x186981,'ELEMENT_TODO_LIST'));}}),_0x33cb95['descriptionFactory']['registerDescriptionCallback'](_0x3f80fc=>{const {data:_0x2cd4c9}=_0x3f80fc;if(_0x2cd4c9&&'listIndent'==_0x2cd4c9['key'])return null==_0x2cd4c9['newValue']||null==_0x2cd4c9['oldValue']&&0x0==_0x2cd4c9['newValue']?_0x66d068:void 0x0;}),_0x33cb95['descriptionFactory']['registerDescriptionCallback'](_0x2a0f39=>{if('attribute'!=_0x2a0f39['type'])return;const {data:_0x263e77}=_0x2a0f39;if(!_0x263e77||'listItemId'!=_0x263e77['key'])return;const _0x7a01a7=Be(_0x2a0f39);return'newValue'==_0x7a01a7?{'type':'format','content':o(_0x186981,'*Merge:*\x20list\x20item')}:'oldValue'==_0x7a01a7?{'type':'format','content':o(_0x186981,'*Split:*\x20list\x20item')}:_0x66d068;}),_0x4cecc4['model']['document']['registerPostFixer'](_0x48bfed=>this['listItemIdFixer'](_0x48bfed)),_0x4cecc4['model']['document']['registerPostFixer'](_0x2db3d5=>this['noTrackChangesFixer'](_0x2db3d5)),_0x4cecc4['model']['document']['on']('change:data',(_0x15d188,_0x45cf19)=>{if(_0x45cf19['isUndo']||!_0x45cf19['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2a6edb){if(_0x2a6edb['batch']['isUndo']||!_0x2a6edb['batch']['isLocal'])return!0x1;let _0x534624=!0x1;const _0x2f0f2c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58efc8=>_0x58efc8['data']&&'listItemId'==_0x58efc8['data']['key'])['filter'](_0xa508ce=>_0xa508ce['data']['newValue']&&_0xa508ce['data']['oldValue']);for(const _0x472729 of _0x2f0f2c)Be(_0x472729)||(_0x2a6edb['removeMarker'](_0x472729['getFirstMarker']()),_0x534624=!0x0);return _0x534624;}['noTrackChangesFixer'](_0x11e37e){if(_0x11e37e['batch']['isUndo']||!_0x11e37e['batch']['isLocal'])return!0x1;const _0x59426d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x59426d['trackChangesCommand']['value'])return!0x1;let _0x110d3e=!0x1;const _0x3e4055=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3f86f1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2671e8=>'attribute'==_0x2671e8['type'])['filter'](_0x191369=>_0x3e4055['includes'](_0x191369['attributeKey']));if(0x0==_0x3f86f1['length'])return _0x110d3e;for(const _0x22e2fe of _0x3f86f1){const _0x5030ec=_0x59426d['_findSuggestions'](_0x22e2fe['range'],'attribute')['filter'](_0x4a36c8=>!_0x4a36c8['meta']['isNextTo'])['map'](_0x129cdd=>_0x129cdd['suggestion'])['filter'](_0x20468d=>{const _0x5286ad=_0x59426d['_getAttributeKey'](_0x20468d);return _0x3e4055['includes'](_0x5286ad);});if(_0x5030ec['length']){for(const _0x3eb8b3 of _0x5030ec)_0x11e37e['removeMarker'](_0x3eb8b3['getFirstMarker']());_0x110d3e=!0x0;}}return _0x110d3e;}['assureChains'](){const _0x14b5d1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12ada5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x34e5da;const _0x5e7143=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5ddd2b=>{if(_0x5ddd2b['data']['oldRange']||!_0x5ddd2b['data']['newRange'])return null;if(!_0x5ddd2b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x32a707}=_0x14b5d1['_splitMarkerName'](_0x5ddd2b['name']);if(!_0x14b5d1['hasSuggestion'](_0x32a707))return null;const _0x2999ed=_0x14b5d1['getSuggestion'](_0x32a707);return _0x12ada5['includes'](_0x2999ed['data']['key']);})['map'](_0x40ac31=>{const {id:_0x9e5371}=_0x14b5d1['_splitMarkerName'](_0x40ac31['name']),_0x32da9d=_0x14b5d1['getSuggestion'](_0x9e5371);return _0x34e5da=_0x32da9d['attributes']['groupId'],_0x32da9d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5e7143['size'])return;const _0x1288b1=_0x14b5d1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f3117=>'attribute'==_0x3f3117['type']&&_0x3f3117['data']&&_0x12ada5['includes'](_0x3f3117['data']['key'])&&_0x3f3117['attributes']['groupId']!=_0x34e5da)['map'](_0x240d6c=>({'listItem':_0x240d6c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x240d6c['attributes']['groupId']})),_0x2f9066=new Set();for(const {groupId:_0x332023,listItem:_0x5a1cf9}of _0x1288b1)_0x5e7143['has'](_0x5a1cf9)&&_0x2f9066['add'](_0x332023);for(const _0x35a942 of _0x14b5d1['getSuggestions']())_0x2f9066['has'](_0x35a942['attributes']['groupId'])&&_0x35a942['setAttribute']('groupId',_0x34e5da);}['_supportLegacySuggestions'](){const _0x1bfa1b=this['editor'],_0x38863c=_0x1bfa1b['locale'],_0x59cb60=_0x1bfa1b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x59cb60['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x31adf0,_0x1f786a){const _0x1c386a=[];for(let _0x23dc2a of _0x31adf0)_0x23dc2a['start']['nodeAfter']===_0x23dc2a['end']['parent']&&(_0x23dc2a=_0x1bfa1b['model']['createRange'](_0x1bfa1b['model']['createPositionAt'](_0x23dc2a['start']['nodeAfter'],0x0))),_0x1c386a['push'](_0x23dc2a);_0x1bfa1b['model']['change'](_0x387a9e=>{const _0xbd5032=_0x1bfa1b['model']['document']['selection'],_0x2ee722=Array['from'](_0xbd5032['getRanges']())['map'](_0x2f8163=>_0x1207cf['fromRange'](_0x2f8163));_0x387a9e['setSelection'](_0x1c386a),_0x1bfa1b['commands']['get'](_0x1f786a['commandName'])['refresh'](),_0x1f786a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1bfa1b['execute'](_0x1f786a['commandName'],..._0x1f786a['commandParams']),_0x387a9e['setSelection'](_0x2ee722);for(const _0x48a9c6 of _0x2ee722)_0x48a9c6['detach']();});}),_0x59cb60['descriptionFactory']['registerElementLabel'](function(_0xdabe1f){const _0x2c3fdc=!_0x1bfa1b['model']['schema']['isObject'](_0xdabe1f),_0x26b3d0=_0xdabe1f['previousSibling'],_0x343545=_0xdabe1f['nextSibling'],_0x41e909=_0xdabe1f['getAttribute']('listItemId'),_0xfe1fc9=!_0x26b3d0||_0x26b3d0['getAttribute']('listItemId')!==_0x41e909,_0x53ea08=!_0x343545||_0x343545['getAttribute']('listItemId')!==_0x41e909;return _0x2c3fdc&&Boolean(_0x41e909)&&_0xfe1fc9&&_0x53ea08;},_0x3c7c9e=>o(_0x38863c,'ELEMENT_LIST_ITEM',_0x3c7c9e));}['_registerLegacyDescription'](){const _0x1ed09f=this['editor'],_0xd3ff92=_0x1ed09f['locale'];function _0x33738b(_0x77cfb4){const _0x42a64f=_0x1ed09f['commands']['get']('bulletedList')['value'],_0x13fa54=_0x1ed09f['commands']['get']('numberedList')['value'];return'numberedList'===_0x77cfb4?_0x42a64f:_0x13fa54;}_0x1ed09f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x56fdef){if('formatBlock'!=_0x56fdef['type'])return;const {data:_0x307eb3}=_0x56fdef;if(!_0x307eb3)return;let _0x52f052,_0x25275,_0x275986,_0x260197;switch(_0x307eb3['commandName']){case'bulletedList':_0x275986=_0x307eb3['commandParams'][0x0]['forceValue'],_0x260197=_0x33738b(_0x307eb3['commandName']),_0x52f052=_0x275986?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x260197&&_0x1ed09f['config']['get']('list.multiBlock')||(_0x52f052='*Change\x20to:*\x20%0'),_0x25275={'type':'format','content':o(_0xd3ff92,_0x52f052,o(_0xd3ff92,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x275986=_0x307eb3['commandParams'][0x0]['forceValue'],_0x260197=_0x33738b(_0x307eb3['commandName']),_0x52f052=_0x275986?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x260197&&_0x1ed09f['config']['get']('list.multiBlock')||(_0x52f052='*Change\x20to:*\x20%0'),_0x25275={'type':'format','content':o(_0xd3ff92,_0x52f052,o(_0xd3ff92,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x52f052='*Indent:*\x20%0',_0x25275={'type':'format','content':o(_0xd3ff92,_0x52f052,o(_0xd3ff92,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x52f052=function(_0x24c7fb){const _0x12ec25=_0x24c7fb['getFirstRange']();let _0x12e5ef=_0x12ec25['start']['nodeAfter'];for(;_0x12e5ef&&_0x12ec25['containsItem'](_0x12e5ef);){if(_0x12e5ef['getAttribute']('listIndent')>0x0)return!0x1;_0x12e5ef=_0x12e5ef['nextSibling'];}return!0x0;}(_0x56fdef)?o(_0xd3ff92,'*Format:*\x20remove\x20from\x20%0',o(_0xd3ff92,function(_0x41ae87){return'ELEMENT_'+_0x41ae87['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x56fdef))):o(_0xd3ff92,'*Outdent:*\x20%0',o(_0xd3ff92,'ELEMENT_LIST_ITEM')),_0x25275={'type':'format','content':_0x52f052};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x307eb3['multipleBlocks']&&(_0x52f052='*Merge:*\x20%0',_0x25275={'type':'deletion','content':o(_0xd3ff92,_0x52f052,o(_0xd3ff92,'ELEMENT_LIST_ITEM'))});}return _0x25275;});}}function Be(_0x13637d){let _0x345fcf=_0x13637d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x345fcf;){const _0x24fc2f=_0x345fcf['getAttribute']('listItemId');if(!_0x24fc2f)return!0x1;if(_0x24fc2f==_0x13637d['data']['newValue'])return'newValue';if(_0x24fc2f==_0x13637d['data']['oldValue'])return'oldValue';_0x345fcf=_0x345fcf['previousSibling'];}return!0x1;}class Z extends _0x23981b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3e0b13=this['editor']['config']['get']('list.properties'),_0x24a837=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e0b13['styles']&&(_0x24a837['enableDefaultAttributesIntegration']('listStyle'),_0x24a837['registerBlockAttribute']('listStyle')),_0x3e0b13['reversed']&&(_0x24a837['enableDefaultAttributesIntegration']('listReversed'),_0x24a837['registerBlockAttribute']('listReversed')),_0x3e0b13['startIndex']&&(_0x24a837['enableDefaultAttributesIntegration']('listStart'),_0x24a837['registerBlockAttribute']('listStart'));const _0x15d19e={'type':'format','content':''};_0x24a837['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3694db=this['editor']['locale'];_0x24a837['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3694db,'FORMAT_LIST_REVERSED')),_0x24a837['descriptionFactory']['registerDescriptionCallback'](_0x2ac4fd=>{const {data:_0x2cb7d3}=_0x2ac4fd;if(_0x2cb7d3&&'listReversed'==_0x2cb7d3['key'])return null==_0x2cb7d3['newValue']||0x0==_0x2cb7d3['newValue']&&null==_0x2cb7d3['oldValue']?_0x15d19e:void 0x0;}),_0x24a837['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3694db,'FORMAT_LIST_START')),_0x24a837['descriptionFactory']['registerDescriptionCallback'](_0x4df40b=>{const {data:_0x5e2c62}=_0x4df40b;if(_0x5e2c62&&'listStart'==_0x5e2c62['key'])return null==_0x5e2c62['newValue']||0x1==_0x5e2c62['newValue']&&null==_0x5e2c62['oldValue']?_0x15d19e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x51f44d=>{if(_0x51f44d['batch']['isUndo'])return!0x1;let _0x173ea7=!0x1;const _0x44826b=_0x24a837['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf4f797=>{const _0x3ac776=_0x24a837['_getAttributeKey'](_0xf4f797);return'listStart'==_0x3ac776||'listReversed'==_0x3ac776;});for(const _0x2cda92 of _0x44826b){const _0x59e20d=_0x2cda92['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x59e20d||'customNumbered'==_0x59e20d)continue;_0x24a837['_findSuggestions'](_0x2cda92['getFirstRange'](),'attribute')['find'](_0xd0026e=>'listType'==_0x24a837['_getAttributeKey'](_0xd0026e['suggestion']))||(_0x51f44d['removeMarker'](_0x2cda92['getFirstMarker']()),_0x173ea7=!0x0);}return _0x173ea7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x7d81b){const _0x3ef5d2=this['editor']['locale'],{data:_0x2290f2}=_0x7d81b,_0x68c079={'type':'format','content':''};if(!_0x2290f2||'listStyle'!=_0x2290f2['key'])return;if(!_0x2290f2['oldValue'])return'default'==_0x2290f2['newValue']?_0x68c079:{'type':'format','content':''+o(_0x3ef5d2,'*Set\x20format:*\x20%0',o(_0x3ef5d2,this['_getTranslationKeyForListStyle'](_0x2290f2['newValue'])))};if(!_0x2290f2['newValue']){if('default'==_0x2290f2['oldValue'])return _0x68c079;let _0x5dea36=_0x7d81b['head'];for(;_0x5dea36;){if(_0x5dea36['data']&&'listType'==_0x5dea36['data']['key']&&_0x5dea36['data']['newValue'])return _0x68c079;_0x5dea36=_0x5dea36['next'];}return{'type':'format','content':''+o(_0x3ef5d2,'*Remove\x20format:*\x20%0',o(_0x3ef5d2,this['_getTranslationKeyForListStyle'](_0x2290f2['oldValue'])))};}if('default'!=_0x2290f2['newValue'])return{'type':'format','content':''+o(_0x3ef5d2,'*Set\x20format:*\x20%0',o(_0x3ef5d2,this['_getTranslationKeyForListStyle'](_0x2290f2['newValue'])))};let _0x16bcd3=_0x7d81b['head'];for(;_0x16bcd3;){if(_0x16bcd3['data']&&'listType'==_0x16bcd3['data']['key']&&_0x16bcd3['data']['newValue']&&_0x16bcd3['data']['oldValue'])return _0x68c079;_0x16bcd3=_0x16bcd3['next'];}return{'type':'format','content':o(_0x3ef5d2,'*Set\x20format:*\x20%0',o(_0x3ef5d2,'ELEMENT_'+_0x7d81b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1b6431=this['editor'],_0x3702f2=_0x1b6431['locale'];_0x1b6431['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2621cb=>{if('formatBlock'!=_0x2621cb['type'])return;const {data:_0x48bbd9}=_0x2621cb;if(!_0x48bbd9)return;let _0xcb05a8,_0x348468;switch(_0x48bbd9['commandName']){case'listStyle':_0xcb05a8='*Change\x20to:*\x20%0',_0x348468={'type':'format','content':o(_0x3702f2,_0xcb05a8,o(_0x3702f2,this['_getTranslationKeyForListStyle'](_0x48bbd9['commandParams'][0x0]['type'])))};break;case'listReversed':_0xcb05a8=_0x48bbd9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x348468={'type':'format','content':o(_0x3702f2,_0xcb05a8)};break;case'listStart':_0xcb05a8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x348468={'type':'format','content':o(_0x3702f2,_0xcb05a8,_0x48bbd9['commandParams'][0x0]['startIndex'])};}return _0x348468;});}['_getTranslationKeyForListStyle'](_0x3d16a6){return'ELEMENT_'+function(_0x23e786){if(Re['includes'](_0x23e786))return'bulleted';if(De['includes'](_0x23e786))return'numbered';return null;}(_0x3d16a6)['toUpperCase']()+'_LIST_'+_0x3d16a6['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],De=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class tt extends _0x23981b{['afterInit'](){const _0x42b821=this['editor'];_0x42b821['commands']['get']('emoji')&&_0x42b821['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class et extends _0x23981b{static get['requires'](){return[_0x355818];}['init'](){const _0x482e4c=this['editor'],_0x47810b=_0x482e4c['plugins']['get']('TrackChangesEditing'),_0x297726=_0x482e4c['commands']['get']('enter');_0x47810b['enableCommand']('enter',()=>{_0x482e4c['model']['change'](_0x1db294=>{const _0x268d84=_0x482e4c['model']['document']['selection'],_0xceeaab=_0x268d84['getFirstPosition'](),_0x2fdf6d=_0x1207cf['fromRange'](_0x268d84['getFirstRange']());if(_0x297726['enterBlock'](_0x1db294)){const _0x3ad0f4=_0x482e4c['model']['createPositionAt'](_0xceeaab['parent']['nextSibling'],0x0),_0x34d39e=_0x1db294['createRange'](_0xceeaab,_0x3ad0f4);_0x47810b['markInsertion'](_0x34d39e);}else _0x1db294['setSelection'](_0x1db294['createRange'](_0x2fdf6d['end']));_0x2fdf6d['detach'](),_0x297726['fire']('afterExecute',{'writer':_0x1db294});});}),_0x482e4c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ve(_0x482e4c,'split'),{'priority':'high'}),_0x482e4c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x545d56,_0x5aa18a,_0x7f04b2)=>{const _0x1f0c51=_0x7f04b2['mapper']['markerNameToElements'](_0x5aa18a['markerName']);if(_0x1f0c51){for(const _0xed58ea of _0x1f0c51)_0xed58ea['hasClass']('ck-suggestion-marker-split')&&(_0x7f04b2['mapper']['unbindElementFromMarkerName'](_0xed58ea,_0x5aa18a['markerName']),_0x7f04b2['writer']['remove'](_0xed58ea));}},{'priority':'high'}),_0x482e4c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4516b8,_0x172e97,_0xf1f137)=>{_0xf1f137['options']['showSuggestionHighlights']&&Ve(_0x482e4c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4516b8,_0x172e97,_0xf1f137);},{'priority':'high'});}}class it extends _0x23981b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x322120=this['editor']['plugins']['get']('TrackChangesEditing');_0x322120['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x322120['enableCommand']('findNext'),_0x322120['enableCommand']('findPrevious'),_0x322120['enableCommand']('replace'),_0x322120['enableCommand']('replaceAll');}['handleFindCommand'](_0x2689a0,_0x422e2d,_0x4ee5a0={}){const _0x55ecf5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2689a0(_0x185c58=>{let _0x43ccad=('string'==typeof _0x422e2d?_0x55ecf5['findByTextCallback'](_0x422e2d,_0x4ee5a0):_0x422e2d)(_0x185c58);Array['isArray'](_0x43ccad)&&(_0x43ccad={'results':_0x43ccad,'searchText':'string'==typeof _0x422e2d?_0x422e2d:''});const _0x4645df=_0x43ccad['results']['filter'](_0x39810e=>!0x1===this['_isInDeletionRange'](_0x39810e,_0x185c58['item']));return{..._0x43ccad,'results':_0x4645df};},_0x4ee5a0);}['_isInDeletionRange'](_0xd9c063,_0x1c7f74){const _0x4d3f74=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1c7f74,_0xd9c063['start']),this['editor']['model']['createPositionAt'](_0x1c7f74,_0xd9c063['end']));for(const _0x24e3a7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4d3f74['getIntersection'](_0x24e3a7['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class nt extends _0x23981b{['afterInit'](){const _0x34d73b=this['editor']['locale'],_0x33ba59=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1e2737,commandName:_0x12a8d9}of eo)this['editor']['plugins']['has'](_0x1e2737)&&(_0x33ba59['enableDefaultAttributesIntegration'](_0x12a8d9),_0x33ba59['registerInlineAttribute'](_0x12a8d9));_0x33ba59['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x34d73b,'FORMAT_FONT_SIZE')),_0x33ba59['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x34d73b,'FORMAT_FONT_FAMILY')),_0x33ba59['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x34d73b,'FORMAT_FONT_COLOR')),_0x33ba59['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x34d73b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dfdf8=this['editor'],_0x8f3f51=_0x5dfdf8['locale'];_0x5dfdf8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x108c04=>{const _0x246e34=_0x8f3f51['t'];if('formatInline'!=_0x108c04['type'])return;const {data:_0x286b8c}=_0x108c04;if(null!=_0x286b8c){if('fontSize'==_0x286b8c['commandName']){const _0x4545ae=_0x286b8c['commandParams'][0x0]['value'];if(_0x4545ae){const _0x14048f=_0x246e34(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x28e8d5=>_0x28e8d5['model']==_0x4545ae)['title'])['toLowerCase']();return{'type':'format','content':o(_0x8f3f51,'*Set\x20font\x20size:*\x20%0',_0x14048f)};}return{'type':'format','content':o(_0x8f3f51,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x286b8c['commandName']){const _0x54a74b=_0x286b8c['commandParams'][0x0]['value'];return _0x54a74b?{'type':'format','content':o(_0x8f3f51,'*Set\x20font\x20family:*\x20%0',_0x54a74b)}:{'type':'format','content':o(_0x8f3f51,'*Reset\x20font\x20family*')};}if('fontColor'==_0x286b8c['commandName']){const _0x4b1a13=_0x286b8c['commandParams'][0x0]['value'];if(_0x4b1a13){const _0x39540b=_0x3aa94f(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4e9614=>_0x4e9614['model']==_0x4b1a13);let _0x211ceb=_0x4b1a13,_0x4872cf='';return _0x39540b&&(_0x211ceb=_0x39540b['label'],_0x4872cf=_0x246e34(_0x211ceb)['toLowerCase']()),{'type':'format','content':o(_0x8f3f51,'*Set\x20font\x20color:*\x20%0',_0x4872cf)['trim'](),'color':{'value':_0x4b1a13,'title':_0x4872cf||_0x211ceb}};}return{'type':'format','content':o(_0x8f3f51,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x286b8c['commandName']){const _0x115798=_0x286b8c['commandParams'][0x0]['value'];if(_0x115798){const _0x587bba=_0x3aa94f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x37dcbc=>_0x37dcbc['model']==_0x115798);let _0x15eb4e=_0x115798,_0x4bf19b='';return _0x587bba&&(_0x15eb4e=_0x587bba['label'],_0x4bf19b=_0x246e34(_0x15eb4e)['toLowerCase']()),{'type':'format','content':o(_0x8f3f51,'*Set\x20font\x20background\x20color:*\x20%0',_0x4bf19b)['trim'](),'color':{'value':_0x115798,'title':_0x4bf19b||_0x15eb4e}};}return{'type':'format','content':o(_0x8f3f51,'*Reset\x20font\x20background\x20color*')};}}});}}class st extends _0x23981b{['afterInit'](){const _0x5c2eb2=this['editor'],_0x516e54=_0x5c2eb2['plugins']['get']('TrackChangesEditing'),_0x348e23=_0x5c2eb2['commands']['get']('copyFormat'),_0x582ef7=_0x5c2eb2['commands']['get']('pasteFormat');_0x348e23&&_0x582ef7&&(_0x516e54['enableDefaultAttributesIntegration']('pasteFormat'),_0x516e54['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x44dabe=this['editor'],_0x16ce48=_0x44dabe['locale'];_0x44dabe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2755fe=>{if('formatBlock'!=_0x2755fe['type']&&'formatInline'!=_0x2755fe['type'])return;const {data:_0xaa3f0}=_0x2755fe;if(_0xaa3f0&&'pasteFormat'===_0xaa3f0['commandName']){const _0x2e8049=[],_0x30867e=_0xaa3f0['commandParams'][0x0];for(const [_0x138f71,_0x135186]of Object['entries'](_0x30867e))_0x2e8049['push'](ro(_0x44dabe,_0x138f71,_0x135186));return _0x2e8049['length']?{'type':'format','content':o(_0x16ce48,'*Set\x20format\x20to:*\x20%0',_0x2e8049['join'](',\x20'))}:{'type':'format','content':o(_0x16ce48,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x4b5311,_0x8dda9d,_0x2855c4){const _0x9e1748=_0x4b5311['locale']['t'],_0x5e9be0=_0x8dda9d['split'](/(?=[A-Z])/)['join']('\x20'),_0x2b5466=_0x9e1748(_0x5e9be0['charAt'](0x0)['toUpperCase']()+_0x5e9be0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2855c4)return _0x2b5466;if('fontColor'===_0x8dda9d||'fontBackgroundColor'===_0x8dda9d){const _0x49ac83=_0x3aa94f(_0x4b5311['config']['get']('fontColor.colors'))['find'](_0x437fea=>_0x437fea['model']==_0x2855c4);return _0x2b5466+'\x20('+(_0x49ac83?_0x9e1748(_0x49ac83['label'])['toLowerCase']():_0x2855c4)+')';}if('fontSize'===_0x8dda9d&&isNaN(parseFloat(_0x2855c4))){const _0x15f05b=_0x4b5311['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4b5311['config']['get']('fontSize.options'))['find'](_0x59f499=>_0x59f499['model']==_0x2855c4);return _0x2b5466+'\x20('+(_0x15f05b?_0x9e1748(_0x15f05b['title'])['toLowerCase']():_0x2855c4)+')';}return _0x2b5466+'\x20('+_0x2855c4+')';}class ot extends _0x23981b{['_headingOptions'];['afterInit'](){const _0x45a0a4=this['editor'];if(!_0x45a0a4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x45a0a4['config']['get']('heading.options');const _0x524915=_0x45a0a4['locale'],_0x15f78d=_0x45a0a4['plugins']['get']('TrackChangesEditing');_0x15f78d['enableDefaultAttributesIntegration']('heading');for(const _0xe4921c of this['_headingOptions'])'paragraph'!=_0xe4921c['model']&&_0x15f78d['descriptionFactory']['registerElementLabel'](_0xe4921c['model'],_0x5ef912=>{const _0x590147=this['_getHeadingLevel'](_0xe4921c['model']);return null!==_0x590147?_0x2bb8ef(_0x5ef912,_0x590147):_0x42d002(_0x5ef912,_0xe4921c['title']);});function _0x2bb8ef(_0x23225d,_0x2deff1){return o(_0x524915,'ELEMENT_HEADING',[_0x23225d,_0x2deff1]);}function _0x42d002(_0x17b26d,_0x512309){return o(_0x524915,'ELEMENT_HEADING_CUSTOM',[_0x17b26d,_0x512309]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ad8b7=this['editor'],_0x43bed9=_0x5ad8b7['locale'];function _0x2b6839(_0x30097e,_0x3dc45){return o(_0x43bed9,'ELEMENT_HEADING_CUSTOM',[_0x30097e,_0x3dc45]);}_0x5ad8b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x353e23=>{if('formatBlock'!=_0x353e23['type'])return;const {data:_0xf991f}=_0x353e23;if(_0xf991f&&'heading'==_0xf991f['commandName']){const _0x5e3e36=_0xf991f['commandParams'][0x0]['value'],_0x2a111b=this['_getHeadingLevel'](_0x5e3e36);if(null!==_0x2a111b)return{'type':'format','content':o(_0x43bed9,'*Change\x20to:*\x20%0',(_0x4c9e2d=0x1,_0x130b57=_0x2a111b,o(_0x43bed9,'ELEMENT_HEADING',[_0x4c9e2d,_0x130b57])))};const _0x383db6=this['_headingOptions']['find'](_0x3ac56f=>_0x3ac56f['model']===_0x5e3e36)['title'];return{'type':'format','content':o(_0x43bed9,'*Change\x20to:*\x20%0',_0x2b6839(0x1,_0x383db6))};}var _0x4c9e2d,_0x130b57;});}['_getHeadingLevel'](_0x1c985){const _0x598b03=_0x1c985['match'](/^heading(\d+)/);if(_0x598b03)return _0x598b03[0x1];const _0x5a79c1=this['_headingOptions']?.['find'](_0x53b5de=>_0x53b5de['model']==_0x1c985);if(_0x5a79c1&&_0x5a79c1['view']){const _0x2e295a=_0x5a79c1['view'],_0x55a386=(_0x2e295a['name']??_0x2e295a)['match'](/^h(\d+)/);if(_0x55a386)return _0x55a386[0x1];}return null;}}class rt extends _0x23981b{['afterInit'](){const _0x2c3bfb=this['editor'];if(!_0x2c3bfb['plugins']['has']('HighlightEditing'))return;const _0x306be0=_0x2c3bfb['plugins']['get']('TrackChangesEditing'),_0x1b7569=_0x2c3bfb['locale'];_0x306be0['enableDefaultAttributesIntegration']('highlight'),_0x306be0['registerInlineAttribute']('highlight'),_0x306be0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1b7569,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f0fcd=this['editor'],_0x242bcd=_0x2f0fcd['locale'];_0x2f0fcd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2121c2=>{if('formatInline'!=_0x2121c2['type'])return;const {data:_0x49ee1b}=_0x2121c2;if(_0x49ee1b&&'highlight'==_0x49ee1b['commandName']){const _0x13c899=_0x242bcd['t'],_0x383d8f=_0x49ee1b['commandParams'][0x0]['value'];if(_0x383d8f){const _0x243976=_0x2f0fcd['config']['get']('highlight.options')['find'](_0x3345fe=>_0x3345fe['model']==_0x383d8f),_0x2fe2e4=_0x13c899(_0x243976['title'])['toLowerCase']();return{'type':'format','content':o(_0x242bcd,'*Set\x20highlight:*\x20%0',_0x2fe2e4),'color':{'value':_0x243976['color'],'title':_0x243976['title']}};}return{'type':'format','content':o(_0x242bcd,'*Remove\x20highlight*',o(_0x242bcd,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x23981b{['afterInit'](){const _0x565d7d=this['editor'];if(!_0x565d7d['plugins']['has']('HorizontalLineEditing'))return;_0x565d7d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4c68c2=_0x565d7d['plugins']['get']('TrackChangesEditing'),_0x2226fd=_0x565d7d['locale'];_0x4c68c2['descriptionFactory']['registerElementLabel']('horizontalLine',_0x473863=>o(_0x2226fd,'ELEMENT_HORIZONTAL_LINE',_0x473863)),_0x565d7d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x53477a,{writer:_0x18c14a,options:_0x273045})=>{if(!_0x273045['showSuggestionHighlights'])return null;const _0x47bcfc=_0x18c14a['createContainerElement']('div'),_0x5910c4=_0x18c14a['createEmptyElement']('hr');return _0x18c14a['addClass']('ck-horizontal-line',_0x47bcfc),_0x18c14a['insert'](_0x18c14a['createPositionAt'](_0x47bcfc,0x0),_0x5910c4),_0x47bcfc;},'converterPriority':'high'});}}class ct extends _0x23981b{['afterInit'](){const _0x51d25b=this['editor'];if(!_0x51d25b['plugins']['has']('HtmlEmbed'))return;const _0x2d6fa3=_0x51d25b['plugins']['get']('TrackChangesEditing'),_0x21db92=_0x51d25b['locale'];_0x2d6fa3['descriptionFactory']['registerElementLabel']('rawHtml',_0x23293f=>o(_0x21db92,'ELEMENT_HTML_EMBED',_0x23293f)),_0x2d6fa3['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2d6fa3['registerBlockAttribute']('value'),_0x2d6fa3['descriptionFactory']['registerDescriptionCallback'](_0x13ffda=>{if('attribute'!=_0x13ffda['type'])return;const {data:_0x40fd33}=_0x13ffda;if(_0x40fd33&&'value'==_0x40fd33['key']&&_0x13ffda['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x41d8af=o(_0x21db92,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x21db92,'*Change\x20%0\x20content*',_0x41d8af)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12cb82=this['editor'],_0x1fab45=_0x12cb82['locale'];_0x12cb82['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d00f8=>{if('formatBlock'!=_0x3d00f8['type'])return;const {data:_0xd79647}=_0x3d00f8;if(_0xd79647&&'htmlEmbed'==_0xd79647['commandName']){const _0x21cef7=o(_0x1fab45,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1fab45,'*Change\x20%0\x20content*',_0x21cef7)};}});}}class ut extends _0x23981b{['afterInit'](){const _0x25fec1=this['editor'];if(!_0x25fec1['plugins']['has']('ImageEditing'))return;const _0x262d7b=_0x25fec1['plugins']['get']('TrackChangesEditing'),_0x3fe12c=_0x25fec1['plugins']['get']('ImageUtils'),_0x473eb1=_0x25fec1['locale'];_0x262d7b['enableCommand']('insertImage'),_0x262d7b['descriptionFactory']['registerElementLabel']('imageBlock',_0x445636=>o(_0x473eb1,'ELEMENT_IMAGE',_0x445636)),_0x262d7b['descriptionFactory']['registerElementLabel']('imageInline',_0x5cafa0=>o(_0x473eb1,'ELEMENT_INLINE_IMAGE',_0x5cafa0)),_0x262d7b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x473eb1,'ELEMENT_CAPTION')),_0x25fec1['plugins']['has']('ImageUploadEditing')&&_0x262d7b['enableCommand']('uploadImage'),_0x25fec1['plugins']['has']('ImageBlockEditing')&&_0x25fec1['plugins']['has']('ImageInlineEditing')&&(_0x262d7b['enableCommand']('imageTypeInline',(_0x527656,_0x314f93)=>{const _0x85d3eb=_0x3fe12c['getClosestSelectedImageElement'](_0x25fec1['model']['document']['selection']);_0x25fec1['model']['change'](()=>{_0x262d7b['markBlockFormat'](_0x85d3eb,{'commandName':'imageTypeInline','commandParams':[_0x314f93]},[],'convertBlockImageToInline');});}),_0x262d7b['enableCommand']('imageTypeBlock',(_0x323468,_0x2d48f4)=>{_0x25fec1['model']['change'](_0x416f04=>{let _0x592f90=_0x3fe12c['getClosestSelectedImageElement'](_0x25fec1['model']['document']['selection']),_0x31b3e6=_0x416f04['createRangeOn'](_0x592f90);const _0x3847d0=_0x425478['fromPosition'](_0x31b3e6['start'],'toPrevious'),_0x440702=_0x425478['fromPosition'](_0x31b3e6['end'],'toNext');_0x262d7b['forceDefaultExecution'](()=>_0x323468(_0x2d48f4)),_0x592f90=_0x3fe12c['getClosestSelectedImageElement'](_0x25fec1['model']['document']['selection']),_0x31b3e6=_0x416f04['createRangeOn'](_0x592f90);const _0x53fafd=_0x416f04['createRange'](_0x3847d0,_0x440702);_0x3847d0['detach'](),_0x440702['detach'](),_0x262d7b['markBlockFormat'](_0x592f90,{'commandName':'imageTypeInline','commandParams':[_0x2d48f4]},[],'convertInlineImageToBlock'),_0x53fafd['start']['isBefore'](_0x31b3e6['start'])&&_0x262d7b['markInsertion'](_0x416f04['createRange'](_0x53fafd['start'],_0x31b3e6['start']),'convertInlineImageToBlock'),_0x31b3e6['end']['isBefore'](_0x53fafd['end'])&&_0x262d7b['markInsertion'](_0x416f04['createRange'](_0x31b3e6['end'],_0x53fafd['end']),'convertInlineImageToBlock');});}),_0x262d7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x262d7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x262d7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x262d7b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x262d7b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x262d7b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5c3c12])=>{const _0x34c59b=_0x262d7b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3c4d74=_0x5c3c12['start'],_0x4bf39a=_0x5c3c12['end'];const _0x27d5e8=_0x25fec1['model']['schema']['getNearestSelectionRange'](_0x3c4d74,'backward'),_0x4fda98=_0x25fec1['model']['schema']['getNearestSelectionRange'](_0x4bf39a,'forward');_0x27d5e8['isCollapsed']&&(_0x3c4d74=_0x27d5e8['start']),_0x4fda98['isCollapsed']&&(_0x4bf39a=_0x4fda98['end']),_0x34c59b([_0x25fec1['model']['createRange'](_0x3c4d74,_0x4bf39a)]);}),_0x262d7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x57385),_0x262d7b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x57385)),_0x25fec1['plugins']['has']('ImageCaptionEditing')&&(_0x262d7b['enableCommand']('toggleImageCaption',(_0x288fb1,_0x1bba4a)=>{const _0x1796cb=_0x25fec1['plugins']['get']('ImageCaptionUtils');let _0x4685a0=_0x3fe12c['getClosestSelectedImageElement'](_0x25fec1['model']['document']['selection']),_0x48e5b4=_0x1796cb['getCaptionFromImageModelElement'](_0x4685a0);_0x25fec1['model']['change'](()=>{if(_0x48e5b4)return void _0x262d7b['markDeletion'](_0x25fec1['model']['createRangeOn'](_0x48e5b4));const _0x4d0027=_0x3fe12c['isBlockImage'](_0x4685a0);_0x288fb1(_0x1bba4a),_0x4685a0=_0x3fe12c['getClosestSelectedImageElement'](_0x25fec1['model']['document']['selection']),_0x48e5b4=_0x1796cb['getCaptionFromImageModelElement'](_0x4685a0),_0x262d7b['markInsertion'](_0x25fec1['model']['createRangeOn'](_0x48e5b4),_0x4d0027?null:'imageCaption');});}),_0x262d7b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x57385));const _0xc90ee9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1f2d71(_0x42c9a7,_0x1e5455){const _0x36f69f=_0xc90ee9['findIndex'](({type:_0x41ed42,subType:_0x5e92fe})=>_0x42c9a7['type']==_0x41ed42&&_0x42c9a7['subType']==_0x5e92fe),_0x60eae5=_0xc90ee9['findIndex'](({type:_0x19aca9,subType:_0x210ef3})=>_0x1e5455['type']==_0x19aca9&&_0x1e5455['subType']==_0x210ef3);if(_0x36f69f<0x0||_0x60eae5<0x0)return!0x1;const _0x42750b=_0x42c9a7['getFirstRange'](),_0x576dd9=_0x1e5455['getFirstRange']();if((0x0==_0x36f69f||0x1==_0x36f69f)&&0x2==_0x60eae5&&_0x42750b['isIntersecting'](_0x576dd9))return!0x0;if(0x2==_0x36f69f&&0x3==_0x60eae5){const _0x293c60=_0x262d7b['_findSuggestions'](_0x42750b,'insertion')['filter'](({suggestion:_0x4096b3,meta:_0x5ea3f8})=>_0x5ea3f8['isOwn']&&'convertInlineImageToBlock'==_0x4096b3['subType']);if(_0x293c60['length']>0x1&&_0x576dd9['end']['isEqual'](_0x42750b['start']))return!0x0;if(0x1==_0x293c60['length']&&(_0x42750b['start']['isEqual'](_0x576dd9['end'])||_0x42750b['end']['isEqual'](_0x576dd9['start'])))return!0x0;}if(0x3==_0x36f69f&&0x3==_0x60eae5&&_0x42750b['start']['isBefore'](_0x576dd9['start'])){const _0x4a68ec=_0x42750b['end']['nodeAfter'],_0x58f630=_0x576dd9['start']['nodeBefore'];return _0x3fe12c['isBlockImage'](_0x4a68ec)&&_0x4a68ec===_0x58f630;}return!0x1;}function _0x57385(_0x2feb05,_0x18552a){return _0x1f2d71(_0x2feb05,_0x18552a)?[_0x2feb05,_0x18552a]:_0x1f2d71(_0x18552a,_0x2feb05)?[_0x18552a,_0x2feb05]:null;}_0x25fec1['plugins']['has']('ImageResize')&&(_0x262d7b['enableDefaultAttributesIntegration']('resizeImage'),_0x262d7b['registerBlockAttribute']('resizedWidth'),_0x262d7b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x473eb1,'FORMAT_IMAGE_SIZE'))),_0x25fec1['plugins']['has']('ImageTextAlternativeEditing')&&(_0x262d7b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x262d7b['registerBlockAttribute']('alt')),_0x25fec1['plugins']['has']('PictureEditing')&&(_0x262d7b['registerBlockAttribute']('sources'),_0x262d7b['descriptionFactory']['registerDescriptionCallback'](_0x326ebc=>{if('attribute'!=_0x326ebc['type'])return;const {data:_0x532da9}=_0x326ebc;return _0x532da9&&'sources'==_0x532da9['key']?{'type':'format','content':''}:void 0x0;})),_0x25fec1['plugins']['has']('ImageSizeAttributes')&&(_0x262d7b['registerBlockAttribute']('width'),_0x262d7b['registerBlockAttribute']('height'),_0x262d7b['descriptionFactory']['registerDescriptionCallback'](_0x58a168=>{if('attribute'!=_0x58a168['type'])return;const {data:_0x87c97}=_0x58a168;return!_0x87c97||'width'!=_0x87c97['key']&&'height'!=_0x87c97['key']?void 0x0:{'type':'format','content':''};})),_0x262d7b['descriptionFactory']['registerDescriptionCallback'](_0x63ff81=>{if(!!_0xc90ee9['find'](({type:_0x46b595,subType:_0x44fee1})=>_0x63ff81['type']==_0x46b595&&_0x63ff81['subType']==_0x44fee1))return _0x63ff81['previous']?{}:void 0x0;}),_0x262d7b['descriptionFactory']['registerDescriptionCallback'](_0x1cac36=>{if('insertion'==_0x1cac36['type']||'deletion'==_0x1cac36['type']){const _0x39b1cd=_0x1cac36['getContainedElement']();if(_0x39b1cd&&_0x39b1cd['is']('element','caption'))return{'type':'insertion'==_0x1cac36['type']?'addObject':'removeObject','element':_0x39b1cd,'quantity':0x1};}}),_0x262d7b['descriptionFactory']['registerDescriptionCallback'](_0x5ec4e=>'formatBlock'==_0x5ec4e['type']&&'convertInlineImageToBlock'==_0x5ec4e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5ec4e['type']&&'convertBlockImageToInline'==_0x5ec4e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x262d7b['descriptionFactory']['registerDescriptionCallback'](_0x172dc3=>{if('attribute'!=_0x172dc3['type'])return;const {data:_0x544683}=_0x172dc3;if(!_0x544683||'alt'!=_0x544683['key'])return;const _0x39d1e7=_0x544683['newValue'];return _0x39d1e7?{'type':'format','content':o(_0x473eb1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x39d1e7+'\x22')}:{'type':'format','content':o(_0x473eb1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f3c08=this['editor'],_0xb00180=_0x2f3c08['locale'];_0x2f3c08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3df089=>{if('formatBlock'!=_0x3df089['type']&&'formatInline'!=_0x3df089['type'])return;const {data:_0x28b40b}=_0x3df089;if(_0x28b40b){if('imageTextAlternative'==_0x28b40b['commandName']){const _0x438eac=_0x28b40b['commandParams'][0x0]['newValue'];return _0x438eac?{'type':'format','content':o(_0xb00180,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x438eac+'\x22')}:{'type':'format','content':o(_0xb00180,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x28b40b['commandName']){const _0x38cfeb=_0x28b40b['commandParams'][0x0]['width'];return _0x38cfeb?{'type':'format','content':o(_0xb00180,'*Set\x20image\x20width:*\x20%0',_0x38cfeb)}:{'type':'format','content':o(_0xb00180,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x23981b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2d75b3=this['editor']['locale'],_0x435dcc=this['editor']['plugins']['get']('TrackChangesEditing');_0x435dcc['enableDefaultAttributesIntegration']('replaceImageSource'),_0x435dcc['registerBlockAttribute']('src'),_0x435dcc['descriptionFactory']['registerDescriptionCallback'](_0x56489e=>{if('attribute'!=_0x56489e['type'])return;const {data:_0x6c43f2}=_0x56489e;return _0x6c43f2&&'src'==_0x6c43f2['key']?_0x6c43f2['newValue']&&_0x6c43f2['oldValue']?{'type':'format','content':o(_0x2d75b3,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x11a473=this['editor']['plugins']['get']('TrackChangesEditing');_0x11a473['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x11a473['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11a473['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x11a473['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bdebb=this['editor'],_0x48cf09=_0x1bdebb['locale'];_0x1bdebb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25d085=>{if('formatBlock'!=_0x25d085['type']&&'formatInline'!=_0x25d085['type'])return;const {data:_0x12cb83}=_0x25d085;if(!_0x12cb83||'replaceImageSource'!=_0x12cb83['commandName'])return;return{'type':'format','content':o(_0x48cf09,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x23981b{['afterInit'](){const _0x260991=this['editor'];if(!_0x260991['plugins']['has']('ImageStyleEditing'))return;const _0x1f3d6c=_0x260991['plugins']['get']('TrackChangesEditing'),_0x537c9f=_0x260991['plugins']['get']('ImageUtils'),_0x24fd55={};_0x1f3d6c['enableCommand']('imageStyle',(_0x537d20,_0x28648f)=>{const _0x20c69f=_0x260991['plugins']['get']('Users')['me'],_0x1111fa=_0x260991['commands']['get']('imageStyle');let _0x5acb24=_0x537c9f['getClosestSelectedImageElement'](_0x260991['model']['document']['selection']),_0x15c651=_0x260991['model']['createRangeOn'](_0x5acb24),_0x3f5382=_0x1111fa['value'];if(_0x3f5382==_0x28648f['value'])return;const _0x41036f={'commandName':'imageStyle','commandParams':[_0x28648f],'formatGroupId':_0x59254f()};_0x260991['model']['change'](()=>{if(_0x1f3d6c['getSuggestions']()['filter'](_0x81969a=>_0x81969a['isInContent']&&_0x20c69f==_0x81969a['author']&&('formatBlock'==_0x81969a['type']||'formatInline'==_0x81969a['type'])&&('imageStylePreApply'==_0x81969a['subType']||'imageStylePostApply'==_0x81969a['subType'])&&_0x81969a['getFirstRange']()['isEqual'](_0x15c651))['forEach'](_0x51bf53=>_0x1f3d6c['discardSuggestion'](_0x51bf53['head'])),_0x5acb24=_0x537c9f['getClosestSelectedImageElement'](_0x260991['model']['document']['selection']),_0x15c651=_0x260991['model']['createRangeOn'](_0x5acb24),_0x1111fa['refresh'](),_0x260991['commands']['get']('imageTypeInline')['refresh'](),_0x260991['commands']['get']('imageTypeBlock')['refresh'](),_0x3f5382=_0x1111fa['value'],_0x3f5382!=_0x28648f['value'])return _0x537c9f['isInlineImage'](_0x5acb24)&&_0x1111fa['shouldConvertImageType'](_0x28648f['value'],_0x5acb24)?(_0x537d20({..._0x28648f,'setImageSizes':!0x1}),_0x5acb24=_0x537c9f['getClosestSelectedImageElement'](_0x260991['model']['document']['selection']),void _0x1f3d6c['markBlockFormat'](_0x5acb24,{..._0x41036f,'commandReversedParams':[{'value':_0x3f5382||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x537c9f['isBlockImage'](_0x5acb24)?_0x1f3d6c['markBlockFormat'](_0x5acb24,_0x41036f,[],'imageStylePostApply'):_0x1f3d6c['markInlineFormat'](_0x15c651,_0x41036f,'imageStylePostApply'));});});for(const _0x3e1ce0 of _0x260991['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x24fd55[_0x3e1ce0['name']]=_0x3e1ce0['title']['toLowerCase']();_0x1f3d6c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1f3d6c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1f3d6c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1f3d6c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x45f973])=>{_0x537c9f['setImageNaturalSizeAttributes'](_0x45f973['getContainedElement']());}),_0x1f3d6c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x39cb23,_0x5ae16d)=>{_0x1f3d6c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x39cb23,{'commandName':_0x5ae16d['commandName'],'commandParams':_0x5ae16d['commandReversedParams']});}),_0x1f3d6c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x56cfee,_0xf05d16){if(_0x2401c5(_0x56cfee,_0xf05d16))return[_0x56cfee,_0xf05d16];if(_0x2401c5(_0xf05d16,_0x56cfee))return[_0xf05d16,_0x56cfee];return null;});const _0x201eea=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2401c5(_0x1641c7,_0x497e27){const _0x18ff17=_0x201eea['findIndex'](({type:_0x14d708,subType:_0x1e2921})=>_0x1641c7['type']==_0x14d708&&_0x1641c7['subType']==_0x1e2921),_0x21f160=_0x201eea['findIndex'](({type:_0x3e965f,subType:_0x181ebc})=>_0x497e27['type']==_0x3e965f&&_0x497e27['subType']==_0x181ebc);if(_0x18ff17<0x0||_0x21f160<0x0)return!0x1;const _0x2094cb=_0x1641c7['getFirstRange'](),_0x3bb545=_0x497e27['getFirstRange']();if((0x0==_0x18ff17||0x1==_0x18ff17)&&0x2==_0x21f160&&_0x2094cb['isIntersecting'](_0x3bb545))return!0x0;if(0x2==_0x18ff17&&0x3==_0x21f160){const _0xef895f=_0x1f3d6c['_findSuggestions'](_0x2094cb,'insertion')['filter'](({suggestion:_0x298a40,meta:_0x36d049})=>_0x36d049['isOwn']&&'convertInlineImageToBlock'==_0x298a40['subType']);if(_0xef895f['length']>0x1&&_0x3bb545['end']['isEqual'](_0x2094cb['start']))return!0x0;if(0x1==_0xef895f['length']&&(_0x2094cb['start']['isEqual'](_0x3bb545['end'])||_0x2094cb['end']['isEqual'](_0x3bb545['start'])))return!0x0;}if(0x3==_0x18ff17&&0x3==_0x21f160&&_0x2094cb['start']['isBefore'](_0x3bb545['start'])){const _0x1381cf=_0x2094cb['end']['nodeAfter'],_0x4ea552=_0x3bb545['start']['nodeBefore'];return _0x537c9f['isBlockImage'](_0x1381cf)&&_0x1381cf===_0x4ea552;}return!0x1;}_0x260991['model']['document']['registerPostFixer'](()=>{let _0x33cce8=!0x1;const _0x219707=Array['from'](_0x260991['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x546082,data:_0xe3b89c}of _0x219707){const {group:_0x5ee6ea,type:_0x5d6476,subType:_0x4b4d0f,id:_0x24ff28}=_0x1f3d6c['_splitMarkerName'](_0x546082);if('suggestion'==_0x5ee6ea&&_0x1f3d6c['hasSuggestion'](_0x24ff28)){if('formatBlock'==_0x5d6476&&('imageStylePreApply'==_0x4b4d0f||'imageStylePostApply'==_0x4b4d0f)){const _0x413f76=_0x1f3d6c['getSuggestion'](_0x24ff28);if(_0xe3b89c['newRange']){const _0x55a130=_0x413f76['getFirstRange']()['getContainedElement']();if(_0x537c9f['isBlockImage'](_0x55a130))continue;_0x1f3d6c['discardSuggestion'](_0x413f76),_0x33cce8=!0x0;}}if('insertion'==_0x5d6476&&'imageCaption'==_0x4b4d0f&&!_0xe3b89c['newRange']){const _0x3ab7fd=_0x1f3d6c['getSuggestion'](_0x24ff28);_0x3ab7fd['next']&&_0x3ab7fd['next']['isInContent']&&(_0x1f3d6c['discardSuggestion'](_0x3ab7fd['next']),_0x33cce8=!0x0);}}}return _0x33cce8;}),this['_registerLegacyDescription'](_0x24fd55);}['_registerLegacyDescription'](_0x5efa0f){const _0x440cd0=this['editor'],_0x44c30e=_0x440cd0['locale'];_0x440cd0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45272c=>{if('formatBlock'!=_0x45272c['type']&&'formatInline'!=_0x45272c['type'])return;const {data:_0x14db82}=_0x45272c;if(!_0x14db82||'imageStyle'!=_0x14db82['commandName'])return;const _0x59ccf9=_0x14db82['commandParams'][0x0]['value'];return _0x4a224b('side'===_0x59ccf9?o(_0x44c30e,'FORMAT_SIDE_IMAGE'):_0x5efa0f[_0x59ccf9]||_0x59ccf9);function _0x4a224b(_0x51a8b7){return{'type':'format','content':o(_0x44c30e,'*Format:*\x20%0',_0x51a8b7)};}});}}class gt extends _0x23981b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x29bdb9){super(_0x29bdb9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x51408e=this['editor'],_0xcd42f7=_0x51408e['commands']['get']('importWord'),_0x1aa334=_0x51408e['commands']['get']('trackChanges');_0xcd42f7&&(_0xcd42f7['on']('execute',(_0x1639f9,[,_0x2d1f99])=>{this['_trackChangesValueDuringImport']=_0x1aa334['value'],_0x2d1f99['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xcd42f7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xcd42f7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1aa334['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x51408e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x176b99,_0x50c718){const {suggestions:_0x105ad2}=_0x50c718,_0x2534fa=this['editor']['commands']['get']('trackChanges'),_0x36f2a0=_0x2534fa['value'];this['_trackChangesValueDuringImport']!==_0x36f2a0&&(_0x2534fa['execute'](),this['_trackChangesExecuted']=!0x0),_0x105ad2&&_0x105ad2['forEach'](({id:_0x119b7f,type:_0x5a655e,author:_0x58eb8f,created_at:_0x5a0ec4})=>{const _0x5c80c0={'id':_0x119b7f,'type':_0x5a655e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x58eb8f,'createdAt':_0x5a0ec4?new Date(_0x5a0ec4):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5c80c0);});}}class lt extends _0x23981b{['afterInit'](){const _0x277f86=this['editor'],_0x5ad6ba=_0x277f86['plugins']['get']('TrackChangesEditing');if(_0x277f86['plugins']['has']('IndentEditing')&&(_0x5ad6ba['enableCommand']('indent'),_0x5ad6ba['enableCommand']('outdent')),_0x277f86['plugins']['has']('IndentBlock')){for(const _0x1eb103 of['indentBlock','outdentBlock'])_0x5ad6ba['enableDefaultAttributesIntegration'](_0x1eb103);}const _0x41b6b7=_0x277f86['locale'];_0x5ad6ba['registerBlockAttribute']('blockIndent'),_0x5ad6ba['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x41b6b7,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x414e2b=this['editor'],_0x715a7f=_0x414e2b['locale'],_0x412209=_0x414e2b['plugins']['get']('TrackChangesEditing');_0x412209['descriptionFactory']['registerDescriptionCallback'](_0x321eb0=>{if('formatBlock'!=_0x321eb0['type'])return;const {data:_0x26d9ac}=_0x321eb0;if(!_0x26d9ac)return;if('indentBlock'!=_0x26d9ac['commandName']&&'outdentBlock'!=_0x26d9ac['commandName'])return;const _0x2f16ca=_0x321eb0['getItems']()[0x0],_0x18e11d=_0x412209['descriptionFactory']['getItemLabel'](_0x2f16ca);return'indentBlock'==_0x26d9ac['commandName']?{'type':'format','content':o(_0x715a7f,'*Indent:*\x20%0',_0x18e11d)}:'outdentBlock'==_0x26d9ac['commandName']?{'type':'format','content':o(_0x715a7f,'*Outdent:*\x20%0',_0x18e11d)}:void 0x0;});}}class dt extends _0x23981b{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class mt extends _0x23981b{['afterInit'](){const _0x4efd4b=this['editor'];if(!_0x4efd4b['plugins']['has']('LinkEditing'))return;const _0x557e2b=_0x4efd4b['plugins']['get']('TrackChangesEditing'),_0x1d65b1=_0x4efd4b['commands']['get']('link');_0x557e2b['enableDefaultAttributesIntegration']('link'),_0x557e2b['enableDefaultAttributesIntegration']('unlink'),_0x557e2b['registerInlineAttribute']('linkHref');for(const _0xed85fe of _0x1d65b1['manualDecorators'])_0x557e2b['registerInlineAttribute'](_0xed85fe['id']),_0x557e2b['descriptionFactory']['registerAttributeLabel'](_0xed85fe['id'],'link\x20('+_0xed85fe['label']['toLowerCase']()+')');_0x557e2b['descriptionFactory']['registerDescriptionCallback'](_0x5d3bd8=>{if('attribute'!=_0x5d3bd8['type'])return;const {data:_0x1b13d7}=_0x5d3bd8;if(!_0x1b13d7||'linkHref'!=_0x1b13d7['key'])return;const _0x42aeb6=_0x1b13d7['newValue'],_0x33594e=_0x4efd4b['locale'];return{'type':'format','content':null==_0x42aeb6?o(_0x33594e,'*Remove\x20link*'):o(_0x33594e,'*Set\x20link:*\x20%0','\x22'+_0x42aeb6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11334e=this['editor'],_0xe228f6=_0x11334e['locale'];_0x11334e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x586745=>{if('formatInline'!=_0x586745['type'])return;const {data:_0x4a1e45}=_0x586745;if(_0x4a1e45){if('link'==_0x4a1e45['commandName']){const _0x2d66c8=_0x4a1e45['commandParams'][0x0];return{'type':'format','content':o(_0xe228f6,'*Set\x20link:*\x20%0','\x22'+_0x2d66c8+'\x22')};}return'unlink'==_0x4a1e45['commandName']?{'type':'format','content':o(_0xe228f6,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x23981b{['afterInit'](){const _0x44f72f=this['editor'],_0x274753=_0x44f72f['locale'];if(!_0x44f72f['plugins']['has']('LegacyListEditing'))return;const _0x5cf224=_0x44f72f['plugins']['get']('TrackChangesEditing'),_0x5265c2=_0x44f72f['plugins']['has']('LegacyTodoListEditing');function _0x2c8f6c(_0x316cde){return()=>{const _0x5f0b93=_0x44f72f['model']['document']['selection'],_0x545af4=_0x44f72f['commands']['get'](_0x316cde);if(_0x545af4['value'])return void _0x44f72f['execute']('paragraph',{});const _0x3c67b2=_0x316cde['slice'](0x0,-0x4),_0x41a7ae=function(_0x4da253,_0x137706,_0x5caf42){let _0x507d4c=Array['from'](_0x4da253)['filter'](_0x34d1a1=>function(_0x712bb8,_0xd63f35){return _0xd63f35['checkChild'](_0x712bb8['parent'],'listItem')&&!_0xd63f35['isObject'](_0x712bb8);}(_0x34d1a1,_0x5caf42));_0x507d4c=_0x507d4c['filter'](_0x1d0850=>!_0x1d0850['is']('element','listItem')||_0x1d0850['getAttribute']('listType')!=_0x137706);const _0x14eb29=new Set();for(const _0x1b06bd of _0x507d4c)_0x1b06bd['is']('element','listItem')?_0x14eb29['add'](Ne(_0x1b06bd)):_0x14eb29['add'](_0x1b06bd);return Array['from'](_0x14eb29);}(_0x5f0b93['getSelectedBlocks'](),_0x3c67b2,_0x44f72f['model']['schema']);_0x44f72f['model']['change'](()=>{for(const _0x2cfda9 of _0x41a7ae)_0x5cf224['markBlockFormat'](_0x2cfda9,{'commandName':_0x316cde,'commandParams':[{'forceValue':!_0x545af4['value']}],'formatGroupId':'blockName'},Se(_0x2cfda9));});};}function _0x1744bf(_0x2f9519){return()=>{const _0x3c90c0=function(_0x16a0c7){let _0x3e69a3=Array['from'](_0x16a0c7);const _0x1d3176=_0x3e69a3['findIndex'](_0x5e570b=>'listItem'!=_0x5e570b['name']);return _0x1d3176>-0x1&&(_0x3e69a3=_0x3e69a3['slice'](0x0,_0x1d3176)),_0x3e69a3;}(_0x44f72f['model']['document']['selection']['getSelectedBlocks']()),_0x2a5ba=_0x44f72f['model']['createRange'](_0x44f72f['model']['createPositionAt'](_0x3c90c0[0x0],'before'),_0x44f72f['model']['createPositionAt'](_0x3c90c0[_0x3c90c0['length']-0x1],'end'));_0x44f72f['model']['change'](()=>{_0x5cf224['markBlockFormat'](_0x2a5ba,{'commandName':_0x2f9519,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2e71fa){const _0x41d584=new Set();for(const _0x6623fb of _0x2e71fa){let _0x4c8142=_0x6623fb['nextSibling'];for(;_0x4c8142&&_0x4c8142['getAttribute']('listIndent')>_0x6623fb['getAttribute']('listIndent');)_0x41d584['add'](_0x4c8142),_0x4c8142=_0x4c8142['nextSibling'];}return Array['from'](_0x41d584);}(_0x3c90c0));});};}_0x5cf224['enableCommand']('numberedList',_0x2c8f6c('numberedList')),_0x5cf224['enableCommand']('bulletedList',_0x2c8f6c('bulletedList')),_0x5265c2&&_0x5cf224['enableCommand']('todoList',_0x2c8f6c('todoList')),_0x5cf224['enableCommand']('indentList',_0x1744bf('indentList')),_0x5cf224['enableCommand']('outdentList',_0x1744bf('outdentList')),_0x5265c2&&_0x5cf224['enableCommand']('checkTodoList',()=>{const _0x17a468=_0x44f72f['commands']['get']('checkTodoList'),_0x51ddfa=Array['from'](_0x17a468['_selectedElements']);_0x51ddfa['filter'](_0x1a3810=>_0x1a3810['getAttribute']('todoListChecked')!=_0x17a468['value']),_0x44f72f['model']['change'](()=>{for(const _0x5a83ba of _0x51ddfa)_0x5cf224['markBlockFormat'](_0x5a83ba,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x17a468['value']}]});});}),_0x5cf224['descriptionFactory']['registerElementLabel']('listItem',_0x301fc0=>o(_0x274753,'ELEMENT_LIST_ITEM',_0x301fc0)),_0x5cf224['descriptionFactory']['registerDescriptionCallback'](_0x2cf952=>{if('formatBlock'!=_0x2cf952['type']&&'formatInline'!=_0x2cf952['type'])return;const {data:_0x4356cf}=_0x2cf952;if(_0x4356cf){if('numberedList'==_0x4356cf['commandName']||'bulletedList'==_0x4356cf['commandName']||'todoList'==_0x4356cf['commandName'])switch(_0x4356cf['commandName']['replace']('List','')){case'bulleted':return _0x40b99b(o(_0x274753,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x40b99b(o(_0x274753,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x40b99b(o(_0x274753,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4356cf['commandName'])return{'type':'format','content':o(_0x274753,'*Indent:*\x20%0',o(_0x274753,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4356cf['commandName'])return{'type':'format','content':o(_0x274753,'*Outdent:*\x20%0',o(_0x274753,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4356cf['commandName'])return _0x4356cf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x274753,'*Check\x20item*')}:{'type':'format','content':o(_0x274753,'*Uncheck\x20item*')};}function _0x40b99b(_0x5ddc28){return{'type':'format','content':o(_0x274753,'*Change\x20to:*\x20%0',_0x5ddc28)};}});}}function Ne(_0x4d6920){const _0x2141fc=_0x4d6920['getAttribute']('listIndent');if(0x0==_0x2141fc)return _0x4d6920;let _0xd10b79=_0x4d6920;for(;_0x4d6920['previousSibling']&&_0x4d6920['previousSibling']['is']('element','listItem');){const _0x6ce071=_0x4d6920['previousSibling']['getAttribute']('listIndent');if(_0x6ce071==_0x2141fc)_0xd10b79=_0x4d6920['previousSibling'];else{if(_0x6ce071<_0x2141fc)break;}_0x4d6920=_0x4d6920['previousSibling'];}return _0xd10b79;}function Se(_0x4ddab1){const _0x2226b8=[];if(_0x4ddab1['is']('element','listItem')&&_0x4ddab1['getAttribute']('listIndent')>0x0){let _0x2aa191=_0x4ddab1['nextSibling'];for(;_0x2aa191&&'listItem'==_0x2aa191['name']&&_0x2aa191['getAttribute']('listIndent')==_0x4ddab1['getAttribute']('listIndent');)_0x2226b8['push'](_0x2aa191),_0x2aa191=_0x2aa191['nextSibling'];}return _0x2226b8;}class kt extends _0x23981b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x40de7f=this['editor']['config']['get']('list.properties'),_0x32cb6f=this['editor']['plugins']['get']('TrackChangesEditing');_0x40de7f['styles']&&_0x32cb6f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x40de7f['reversed']&&_0x32cb6f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x40de7f['startIndex']&&_0x32cb6f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x32cb6f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3eb930,_0x3a59f0={}){const _0x291232=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36641d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x291232['markMultiRangeBlockFormat'](_0x36641d,{'commandName':'listStyle','commandParams':[{'type':_0x3a59f0['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x375481,_0x59397f={}){const _0xa8de=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1436fc=this['_getSuggestionBlocks'](_0x526ea5=>_0x526ea5['is']('element','listItem')&&'numbered'===_0x526ea5['getAttribute']('listType'));if(_0x1436fc['length']<0x1)return;const _0x2bb75d=_0x1436fc['map'](_0x1b72e9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b72e9,'before'),this['editor']['model']['createPositionAt'](_0x1b72e9,0x0)));this['editor']['model']['change'](()=>{_0xa8de['markMultiRangeBlockFormat'](_0x2bb75d,{'commandName':'listReversed','commandParams':[{'reversed':_0x59397f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1337b8,_0x58c214={}){const _0x47bed4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aae59=this['_getSuggestionBlocks'](_0x2982a5=>_0x2982a5['is']('element','listItem')&&'numbered'===_0x2982a5['getAttribute']('listType'));if(_0x1aae59['length']<0x1)return;const _0x2dbd3d=_0x1aae59['map'](_0x73bbb5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x73bbb5,'before'),this['editor']['model']['createPositionAt'](_0x73bbb5,0x0)));this['editor']['model']['change'](()=>{_0x47bed4['markMultiRangeBlockFormat'](_0x2dbd3d,{'commandName':'listStart','commandParams':[{'startIndex':_0x58c214['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x48b9f6){if('formatBlock'!=_0x48b9f6['type']&&'formatInline'!=_0x48b9f6['type'])return;const _0x56116a=this['editor']['locale'],{data:_0x1432a8}=_0x48b9f6;if(!_0x1432a8)return;let _0x624474,_0x196759;switch(_0x1432a8['commandName']){case'listStyle':_0x624474='*Change\x20to:*\x20%0',_0x196759={'type':'format','content':o(_0x56116a,_0x624474,o(_0x56116a,this['_getTranslationKeyForListStyle'](_0x1432a8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x624474=_0x1432a8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x196759={'type':'format','content':o(_0x56116a,_0x624474)};break;case'listStart':_0x624474='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x196759={'type':'format','content':o(_0x56116a,_0x624474,_0x1432a8['commandParams'][0x0]['startIndex'])};}return _0x196759;}['_getSuggestionBlocksForListStyle'](){const _0x5fa16a=this['editor']['plugins']['get']('LegacyListUtils');let _0x8f193d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x8f193d[0x0]?.['is']('element','listItem')&&_0x8f193d['unshift'](..._0x5fa16a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x8f193d[_0x8f193d['length']-0x1]?.['is']('element','listItem')&&_0x8f193d['push'](..._0x5fa16a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x8f193d=[...new Set(_0x8f193d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x8f193d=_0x8f193d['filter'](_0x1b8aa0=>_0x1b8aa0['is']('element','listItem'))),_0x8f193d;}['_getSuggestionBlocks'](_0x1d3cec){const _0x4f28e0=this['editor']['plugins']['get']('LegacyListUtils');let _0xc85439=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1d3cec)['map'](_0x2dda3b=>{const _0x32204a=this['editor']['model']['createPositionAt'](_0x2dda3b,0x0);return[..._0x4f28e0['getSiblingNodes'](_0x32204a,'backward'),..._0x4f28e0['getSiblingNodes'](_0x32204a,'forward')];})['flat']();return _0xc85439=[...new Set(_0xc85439)],_0xc85439;}['_getTranslationKeyForListStyle'](_0x2b3e33){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2b3e33)||'default')['toUpperCase']()+'_LIST_'+_0x2b3e33['toUpperCase']()['replace'](/-/g,'_');}}class wt extends _0x23981b{['afterInit'](){const _0x2ba0d3=this['editor'];if(!_0x2ba0d3['plugins']['has']('MediaEmbedEditing'))return;const _0x21a60e=_0x2ba0d3['plugins']['get']('TrackChangesEditing'),_0x5f10f9=_0x2ba0d3['locale'];_0x21a60e['enableCommand']('mediaEmbed'),_0x21a60e['descriptionFactory']['registerElementLabel']('media',_0x5176db=>o(_0x5f10f9,'ELEMENT_MEDIA',_0x5176db)),_0x2ba0d3['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x56fca8,{writer:_0x31c121,options:_0x25a4ef})=>{if(_0x25a4ef['showSuggestionHighlights'])return _0x31c121['createEmptyElement']('div');},'converterPriority':'high'}),_0x2ba0d3['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3f02f7,_0x6251ae,_0x4a7899)=>{_0x4a7899['options']['showSuggestionHighlights']&&_0x3f02f7['stop']();},{'priority':'high'});}}class bt extends _0x23981b{['afterInit'](){const _0x2c8ca8=this['editor'];_0x2c8ca8['plugins']['has']('MentionEditing')&&_0x2c8ca8['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x23981b{['afterInit'](){const _0x27100b=this['editor'];if(!_0x27100b['plugins']['has']('MergeFieldsEditing'))return;const _0x2abb03=_0x27100b['plugins']['get']('TrackChangesEditing'),_0x4ed76b=_0x27100b['locale'];_0x2abb03['enableCommand']('insertMergeField'),_0x2abb03['enableCommand']('insertMergeFieldBlock'),_0x2abb03['enableCommand']('insertMergeFieldImage'),_0x2abb03['descriptionFactory']['registerElementLabel']('mergeField',_0x1e9f66=>o(_0x4ed76b,'ELEMENT_MERGE_FIELD',_0x1e9f66)),_0x2abb03['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3d12d4=>o(_0x4ed76b,'ELEMENT_MERGE_FIELD',_0x3d12d4)),_0x2abb03['descriptionFactory']['registerDescriptionCallback'](_0x101804=>{if('insertion'!=_0x101804['type']&&'deletion'!=_0x101804['type'])return;const _0x1b9538=_0x101804['getContainedElement']();if(null==_0x1b9538)return;const _0xddd016=_0x27100b['plugins']['get']('MergeFieldsEditing');let _0x24620b;switch(_0xddd016['getMergeFieldType'](_0x1b9538)){case null:return;case'image':{const _0x473297=_0xddd016['unwrapAffixes'](_0x1b9538['getAttribute']('src'));_0x24620b=_0xddd016['getLabel'](_0x473297)||_0x473297;break;}default:{const _0x56724a=_0x1b9538['getAttribute']('id');_0x24620b=_0xddd016['getLabel'](_0x56724a)||_0x56724a;break;}}return'insertion'==_0x101804['type']?{'type':'insertion','content':o(_0x4ed76b,'*Insert:*\x20%0','\x22'+_0x24620b+'\x22\x20'+o(_0x4ed76b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4ed76b,'*Remove:*\x20%0','\x22'+_0x24620b+'\x22\x20'+o(_0x4ed76b,'ELEMENT_MERGE_FIELD'))};});}}class St extends _0x23981b{['afterInit'](){const _0x170c0d=this['editor'],_0x4d30c7=_0x170c0d['plugins']['get']('TrackChangesEditing');_0x170c0d['plugins']['has']('MultiLevelList')&&(_0x4d30c7['enableDefaultAttributesIntegration']('multiLevelList'),_0x4d30c7['registerBlockAttribute']('listMarkerStyle'),_0x4d30c7['descriptionFactory']['registerDescriptionCallback'](_0x3eaca9=>this['handleDescriptions'](_0x3eaca9)));}['handleDescriptions'](_0x3aec56){const _0x41e3e2=this['editor']['locale'],{data:_0x5c85a0}=_0x3aec56,_0x4272e9={'type':'format','content':''};if(_0x5c85a0&&'listMarkerStyle'==_0x5c85a0['key']){if(!_0x5c85a0['oldValue'])return{'type':'format','content':o(_0x41e3e2,'*Set\x20format:*\x20%0',o(_0x41e3e2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5c85a0['newValue']+')'};if(!_0x5c85a0['newValue']){let _0x4b336f=_0x3aec56['head'];for(;_0x4b336f;){if(_0x4b336f['data']&&'listType'==_0x4b336f['data']['key']&&_0x4b336f['data']['newValue'])return _0x4272e9;_0x4b336f=_0x4b336f['next'];}return{'type':'format','content':o(_0x41e3e2,'*Remove\x20format:*\x20%0',o(_0x41e3e2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5c85a0['oldValue']+')'};}}}}class jt extends _0x23981b{['afterInit'](){const _0x13119a=this['editor'];if(!_0x13119a['plugins']['has']('PageBreakEditing'))return;_0x13119a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x44b676=_0x13119a['plugins']['get']('TrackChangesEditing'),_0x2072ea=_0x13119a['locale'];_0x44b676['descriptionFactory']['registerElementLabel']('pageBreak',_0x5410af=>o(_0x2072ea,'ELEMENT_PAGE_BREAK',_0x5410af));}}class It extends _0x23981b{['afterInit'](){const _0x38586e=this['editor'];if(!_0x38586e['plugins']['has']('Paragraph'))return;const _0x4c863b=_0x38586e['locale'],_0x448db2=_0x38586e['plugins']['get']('TrackChangesEditing');_0x448db2['descriptionFactory']['registerElementLabel']('paragraph',_0x5735e4=>o(_0x4c863b,'ELEMENT_PARAGRAPH',_0x5735e4)),_0x448db2['enableDefaultAttributesIntegration']('paragraph'),_0x448db2['enableCommand']('insertParagraph'),_0x38586e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x38586e),{'priority':'highest'}),_0x38586e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1167c4,_0xe0249b,_0x23732c)=>{_0x23732c['options']['showSuggestionHighlights']&&nr(_0x38586e,{'showActiveMarker':!0x1})(_0x1167c4,_0xe0249b,_0x23732c);},{'priority':'highest'});const _0x56fb4f=_0x448db2['descriptionFactory'];_0x56fb4f['registerDescriptionCallback'](_0x3f0999=>{if('insertion'!==_0x3f0999['type'])return;const {start:_0x457f11,end:_0x5bef23}=_0x3f0999['getFirstRange']();if(!_0x457f11['isTouching'](_0x5bef23)||!_0x457f11['nodeAfter'])return;const _0xa83d78=_0x38586e['model']['schema'],_0x150208=_0x457f11['nodeAfter'];return _0xa83d78['isBlock'](_0x150208)&&!_0xa83d78['isLimit'](_0x150208)&&_0xa83d78['checkChild'](_0x150208,'$text')?{'type':'insertion','content':o(_0x4c863b,'*Insert:*\x20%0',_0x56fb4f['getItemLabel'](_0x150208,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8a9373=this['editor'],_0x3c3919=_0x8a9373['locale'];_0x8a9373['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b0adc=>{if('formatBlock'!=_0x5b0adc['type'])return;const {data:_0x4552ee}=_0x5b0adc;return _0x4552ee&&'paragraph'==_0x4552ee['commandName']?{'type':'format','content':o(_0x3c3919,'*Change\x20to:*\x20%0',o(_0x3c3919,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x31a983,{showActiveMarker:_0x2f62c0=!0x0}={}){return(_0x3c838c,_0x42e231,_0x2715fc)=>{const _0x93a7a7=_0x31a983['plugins']['get']('TrackChangesEditing'),_0x2e84f5=_0x42e231['markerRange']['start'],_0x3e4858=_0x42e231['markerRange']['end'],_0x39ad37=_0x31a983['model']['schema'];if(!_0x2e84f5['isTouching'](_0x3e4858)||!_0x2e84f5['nodeAfter'])return;const _0x34e1b8=_0x2e84f5['nodeAfter'];if(_0x39ad37['isBlock'](_0x34e1b8)&&!_0x39ad37['isLimit'](_0x34e1b8)&&_0x39ad37['checkChild'](_0x34e1b8,'$text')){if(!_0x2715fc['consumable']['consume'](_0x42e231['markerRange'],_0x3c838c['name']))return;const {id:_0x2f23b7,authorId:_0xdc136}=_0x93a7a7['_splitMarkerName'](_0x42e231['markerName']),_0x90f3a0=_0x2715fc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2f23b7,'data-author-id':_0xdc136}),_0x6b11c0=_0x2715fc['mapper']['toViewPosition'](_0x3e4858);_0x2f62c0&&_0x93a7a7['activeMarkers']['includes'](_0x42e231['markerName'])&&_0x2715fc['writer']['addClass']('ck-suggestion-marker--active',_0x90f3a0),_0x2715fc['writer']['insert'](_0x6b11c0,_0x90f3a0),_0x2715fc['mapper']['bindElementToMarker'](_0x90f3a0,_0x42e231['markerName']);}};}class At extends _0x23981b{['afterInit'](){const _0x57799e=this['editor'];_0x57799e['commands']['get']('replaceSource')&&_0x57799e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x23981b{['afterInit'](){const _0x2e9fd8=this['editor'];if(!_0x2e9fd8['plugins']['has']('RemoveFormatEditing'))return;_0x2e9fd8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x495d22=this['editor'];_0x495d22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x330485=>{if('formatBlock'!=_0x330485['type']&&'formatInline'!=_0x330485['type'])return;const {data:_0x3e2c8b}=_0x330485;return _0x3e2c8b&&'removeFormat'==_0x3e2c8b['commandName']?{'type':'format','content':o(_0x495d22['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class $t extends _0x23981b{['afterInit'](){const _0x3ba875=this['editor'];if(!_0x3ba875['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5cd097=_0x3ba875['plugins']['get']('TrackChangesEditing');_0x5cd097['enableCommand']('goToPreviousRestrictedEditingException'),_0x5cd097['enableCommand']('goToNextRestrictedEditingException');const _0x9aca57=_0x3ba875['plugins']['get']('RestrictedEditingModeEditing');_0x9aca57['enableCommand']('trackChanges'),_0x9aca57['enableCommand']('acceptSuggestion'),_0x9aca57['enableCommand']('discardSuggestion'),_0x9aca57['enableCommand']('acceptAllSuggestions'),_0x9aca57['enableCommand']('discardAllSuggestions'),_0x9aca57['enableCommand']('acceptSelectedSuggestions'),_0x9aca57['enableCommand']('discardSelectedSuggestions');}}class vt extends _0x23981b{['afterInit'](){const _0x525061=this['editor'];if(!_0x525061['plugins']['has']('ShiftEnter'))return;const _0x1afc20=_0x525061['plugins']['get']('TrackChangesEditing');_0x1afc20['enableCommand']('shiftEnter'),_0x525061['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',qe(_0x525061),{'priority':'high'}),_0x525061['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',qe(_0x525061),{'priority':'high'}),_0x525061['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x467f6a,_0x129f46,_0x247ede)=>{_0x247ede['options']['showSuggestionHighlights']&&qe(_0x525061,{'showActiveMarker':!0x1})(_0x467f6a,_0x129f46,_0x247ede);}),_0x1afc20['descriptionFactory']['registerElementLabel']('softBreak',_0x46d3a3=>o(_0x525061['locale'],'ELEMENT_LINE_BREAK',_0x46d3a3));}}function qe(_0x246fce,{showActiveMarker:_0x135aa2=!0x0}={}){return(_0x169b24,_0x1c540e,_0x6896a7)=>{const _0x85ad52=_0x246fce['plugins']['get']('TrackChangesEditing');if(!_0x6896a7['consumable']['test'](_0x1c540e['markerRange'],_0x169b24['name']))return;const _0x4ce97d=_0x246fce['model'];for(const _0x15a185 of _0x1c540e['markerRange']['getItems']()){if(!_0x15a185['is']('element','softBreak'))continue;const _0xae8a51='deletion'==_0x1c540e['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1f5dae,authorId:_0x527b2f}=_0x85ad52['_splitMarkerName'](_0x1c540e['markerName']),_0x5308c8=_0x6896a7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xae8a51,'data-suggestion':_0x1f5dae,'data-author-id':_0x527b2f}),_0x126466=_0x6896a7['mapper']['toViewPosition'](_0x4ce97d['createPositionBefore'](_0x15a185));_0x135aa2&&_0x85ad52['activeMarkers']['includes'](_0x1c540e['markerName'])&&_0x6896a7['writer']['addClass']('ck-suggestion-marker--active',_0x5308c8),_0x6896a7['writer']['insert'](_0x126466,_0x5308c8),_0x6896a7['mapper']['bindElementToMarker'](_0x5308c8,_0x1c540e['markerName']);}};}class Ct extends _0x23981b{['afterInit'](){const _0x1a7920=this['editor'],_0x5cd16b=_0x1a7920['model'],_0x40ed0d=_0x1a7920['locale'];if(!_0x1a7920['plugins']['has']('StandardEditingModeEditing'))return;const _0x4cea0d=_0x1a7920['plugins']['get']('TrackChangesEditing'),_0x1359f5='restrictedEditingException',_0xf734f0=_0x1a7920['commands']['get'](_0x1359f5);_0x4cea0d['enableCommand'](_0x1359f5,(_0x35a0cb,_0x239c34={})=>{const _0x46c2c1=_0x5cd16b['document']['selection'];if(_0x46c2c1['isCollapsed'])return void _0x35a0cb(_0x239c34);const _0x9adb94=void 0x0!==_0x239c34['forceValue']?_0x239c34['forceValue']:!_0xf734f0['value'];_0x5cd16b['change'](()=>{const _0x34eed2=Array['from'](_0x46c2c1['getRanges']());for(const _0x3d730b of _0x34eed2){const _0xea8efe=_0x9adb94?[_0x3d730b]:io(_0x1359f5,_0x3d730b,_0x5cd16b);for(const _0x103967 of _0xea8efe)_0x4cea0d['markInlineFormat'](_0x103967,{'commandName':_0x1359f5,'commandParams':[{'forceValue':_0x9adb94}]});}});}),_0x4cea0d['descriptionFactory']['registerDescriptionCallback'](_0xeacd9b=>{if('formatBlock'!=_0xeacd9b['type']&&'formatInline'!=_0xeacd9b['type'])return;const {data:_0x29e4bb}=_0xeacd9b;return _0x29e4bb&&_0x29e4bb['commandName']==_0x1359f5?_0x29e4bb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40ed0d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x40ed0d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Nt extends _0x23981b{['afterInit'](){const _0x158603=this['editor'];if(!_0x158603['plugins']['has']('Style')||!_0x158603['plugins']['has']('DataSchema'))return;const _0x5c80c1=_0x158603['plugins']['get']('TrackChangesEditing'),_0x533e42=_0x158603['locale'],_0x43378b=_0x158603['config']['get']('style')||{},_0x3209d8=_0x158603['plugins']['get']('GeneralHtmlSupport'),_0x539e73=_0x158603['plugins']['get']('StyleUtils')['normalizeConfig'](_0x158603['plugins']['get']('DataSchema'),_0x43378b['definitions']);_0x5c80c1['enableDefaultAttributesIntegration']('style');const _0x1a8741=new Set();for(const _0x1c5bb6 of _0x539e73['block']){const _0x2268fd=_0x3209d8['getGhsAttributeNameForElement'](_0x1c5bb6['element']);_0x1a8741['add'](_0x2268fd);}const _0x5ab9dd=new Set();for(const _0x13bcef of _0x539e73['inline']){const _0x452db5=_0x3209d8['getGhsAttributeNameForElement'](_0x13bcef['element']);_0x5ab9dd['add'](_0x452db5);for(const _0x47151f of _0x13bcef['ghsAttributes'])_0x5ab9dd['add'](_0x47151f);}for(const _0x5b5934 of _0x1a8741)_0x5c80c1['registerBlockAttribute'](_0x5b5934),_0x5c80c1['descriptionFactory']['registerAttributeLabel'](_0x5b5934,o(_0x533e42,'FORMAT_STYLE'));for(const _0x98d601 of _0x5ab9dd)_0x5c80c1['registerInlineAttribute'](_0x98d601),_0x5c80c1['descriptionFactory']['registerAttributeLabel'](_0x98d601,o(_0x533e42,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x80fd63=this['editor'],_0x584137=_0x80fd63['locale'];_0x80fd63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e20c2=>{if('formatBlock'!=_0x1e20c2['type']&&'formatInline'!=_0x1e20c2['type'])return;const {data:_0x400b27}=_0x1e20c2;return _0x400b27&&'style'===_0x400b27['commandName']?_0x400b27['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x584137,'*Set\x20format:*\x20%0',_0x400b27['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x584137,'*Remove\x20format:*\x20%0',_0x400b27['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x23981b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x344ea9){super(_0x344ea9),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x169ccb=this['editor'],_0x462402=_0x169ccb['model']['document']['selection'];if(!_0x169ccb['plugins']['has']('TableEditing'))return;const _0x39d135=_0x169ccb['locale'],_0x2cf19c=_0x169ccb['plugins']['get']('TrackChangesEditing'),_0x567afd=_0x169ccb['plugins']['get']('TableUtils');_0x2cf19c['descriptionFactory']['registerElementLabel']('table',_0x1d0560=>o(_0x39d135,'ELEMENT_TABLE',_0x1d0560)),this['_setupColumnsRowsFixing'](),_0x2cf19c['enableCommand']('insertTable'),_0x2cf19c['enableCommand']('selectTableRow'),_0x2cf19c['enableCommand']('selectTableColumn');for(const _0x23ff2f of['insertTableRowAbove','insertTableRowBelow']){const _0x1337c5=_0x169ccb['commands']['get'](_0x23ff2f);_0x2cf19c['enableCommand'](_0x23ff2f,_0x1af87b=>{_0x169ccb['model']['change'](_0xf32347=>{_0x1af87b();const _0xd56c79='above'===_0x1337c5['order'],_0x3826fc=_0x567afd['getSelectionAffectedTableCells'](_0x462402),_0x336f92=_0x567afd['getRowIndexes'](_0x3826fc),_0x7e90b8=_0xd56c79?_0x336f92['first']-0x1:_0x336f92['last']+0x1,_0x3e9f13=_0x3826fc[0x0]['findAncestor']('table'),_0x48a2d8=_0x567afd['createTableWalker'](_0x3e9f13,{'startRow':_0x7e90b8,'endRow':_0x7e90b8}),_0x2b8bd6=Array['from'](_0x48a2d8)['map'](_0x3ec1c2=>_0xf32347['createRangeOn'](_0x3ec1c2['cell']));_0x2cf19c['markMultiRangeInsertion'](_0x2b8bd6,'tableRow');});});}for(const _0x182754 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3d50e9=_0x169ccb['commands']['get'](_0x182754);_0x2cf19c['enableCommand'](_0x182754,_0xa1c64b=>{_0x169ccb['model']['change'](_0x264191=>{_0xa1c64b();const _0x144c8b='left'===_0x3d50e9['order'],_0x26dbe9=_0x567afd['getSelectionAffectedTableCells'](_0x462402),_0x1bf8ae=_0x567afd['getColumnIndexes'](_0x26dbe9),_0x51a36a=_0x144c8b?_0x1bf8ae['first']-0x1:_0x1bf8ae['last']+0x1,_0x5428ef=_0x26dbe9[0x0]['findAncestor']('table'),_0x29ce42=_0x567afd['createTableWalker'](_0x5428ef,{'startRow':0x0,'column':_0x51a36a,'includeAllSlots':!0x1}),_0x341f35=Array['from'](_0x29ce42)['map'](_0x351ec9=>_0x264191['createRangeOn'](_0x351ec9['cell']));_0x2cf19c['markMultiRangeInsertion'](_0x341f35,'tableColumn');});});}for(const _0x261f25 of['removeTableRow','removeTableColumn']){const _0x3cb241=_0x261f25['substr'](0xb),_0x570f48=_0x3cb241['toLowerCase'](),_0x3c9c6e=_0x570f48['substr'](0x0,0x3)+'span',_0x431e00='table'+_0x3cb241,_0x2ef3a6='min'+_0x3cb241,_0x4072cc='max'+_0x3cb241;_0x2cf19c['enableCommand'](_0x261f25,()=>{_0x169ccb['model']['change'](_0x2359c4=>{const _0x338e6b=_0x567afd['getSelectionAffectedTableCells'](_0x462402),_0xc2ff92=_0x338e6b[0x0]['findAncestor']('table');let _0x542963;if('removeTableRow'==_0x261f25){const _0x52eccb=_0x567afd['getRowIndexes'](_0x338e6b);_0x542963={'startRow':_0x52eccb['first'],'endRow':_0x52eccb['last'],'includeAllSlots':!0x0};}else{const _0x5db001=_0x567afd['getColumnIndexes'](_0x338e6b);_0x542963={'startColumn':_0x5db001['first'],'endColumn':_0x5db001['last'],'includeAllSlots':!0x0};}const _0x257e3b=_0x567afd['createTableWalker'](_0xc2ff92,_0x542963),_0x454555=Array['from'](_0x257e3b)['map'](({cell:_0x3efc2c})=>_0x3efc2c),_0xec5eef=Oe(_0x454555['filter'](_0x4b3bc6=>_0x4b3bc6['hasAttribute'](_0x3c9c6e))),_0x3200d3=Oe(_0x454555['filter'](_0x44598b=>!_0x44598b['hasAttribute'](_0x3c9c6e)))['map'](_0x2267cb=>_0x2359c4['createRangeOn'](_0x2267cb)),_0x5beeac=_0x2cf19c['markMultiRangeDeletion'](_0x3200d3,_0x431e00);if(_0x5beeac&&('tableRow'==_0x5beeac['subType']||'tableColumn'==_0x5beeac['subType'])){const _0x58900e=this['_getSuggestionCoords'](_0x5beeac);for(const _0x365701 of _0xec5eef){const _0x41b6f7=_0x2359c4['createRangeOn'](_0x365701),_0x3ea93e=_0x567afd['getCellLocation'](_0x365701),_0x592826=_0x365701['getAttribute'](_0x3c9c6e)-0x1,_0x51cd02=_0x58900e[_0x2ef3a6],_0xb15769=_0x58900e[_0x4072cc];_0x51cd02<=_0x3ea93e[_0x570f48]&&_0x3ea93e[_0x570f48]+_0x592826<=_0xb15769&&_0x5beeac['addRange'](_0x41b6f7);}}});});}function _0x43a88c(_0x29099c){const _0x5501aa=Array['from'](_0x462402['getRanges']())['map'](_0xf02e08=>_0x1207cf['fromRange'](_0xf02e08));_0x169ccb['model']['change'](_0x5528fa=>{const _0x192f61=_0x5528fa['batch'];_0x29099c=_0x29099c['filter'](_0x2679cc=>'$graveyard'!=_0x2679cc['root']['rootName']),_0x5528fa['setSelection'](_0x29099c),_0x169ccb['commands']['get']('removeTableRow')['refresh'](),_0x169ccb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x169ccb['model']['enqueueChange'](()=>{_0x169ccb['model']['enqueueChange'](_0x192f61,_0x411dbf=>{const _0x419eee=_0x5501aa['filter'](_0x41ff80=>'$graveyard'!=_0x41ff80['root']['rootName']);_0x419eee['length']>0x0&&_0x411dbf['setSelection'](_0x419eee);for(const _0x27e019 of _0x5501aa)_0x27e019['detach']();});});});}function _0x28b83f(_0x3fa34a){_0x169ccb['model']['change'](_0x37ec00=>{const _0x4f03f2=Array['from'](_0x462402['getRanges']())['map'](_0x4e6c77=>_0x1207cf['fromRange'](_0x4e6c77)),_0x31902e=[];for(const _0x202b35 of _0x3fa34a)for(const _0x1cb880 of _0x202b35['getItems']({'shallow':!0x0}))_0x31902e['push'](_0x1cb880);for(const _0x14d2a7 of _0x31902e)'$graveyard'!=_0x14d2a7['root']['rootName']&&(_0x37ec00['setSelection'](_0x37ec00['createPositionAt'](_0x14d2a7,0x0)),_0x169ccb['commands']['get']('removeTableColumn')['refresh'](),_0x169ccb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3e2db3=_0x4f03f2['filter'](_0x2f8582=>'$graveyard'!=_0x2f8582['root']['rootName']);_0x3e2db3['length']>0x0&&_0x37ec00['setSelection'](_0x3e2db3);for(const _0x37358b of _0x4f03f2)_0x37358b['detach']();});}function _0xba4203(_0x101481,_0x4b6461){return _0x4b6461['every'](_0xc95e61=>_0x101481['some'](_0x5bacb5=>_0x5bacb5['end']['isEqual'](_0xc95e61['start'])||_0xc95e61['end']['isEqual'](_0x5bacb5['start'])));}function _0x3f52a2(_0x34bc7c,_0x7d9bc4){return!_0x34bc7c['some'](_0x5d5ece=>_0x7d9bc4['some'](_0x17f45f=>_0x5d5ece['isIntersecting'](_0x17f45f)))&&_0x34bc7c['some'](_0x10fd17=>_0x7d9bc4['some'](_0x28739b=>_0x10fd17['end']['isTouching'](_0x28739b['start'])));}_0x169ccb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1166f1,_0x31de19,_0x1b050f)=>{if(!_0x1b050f['options']['showSuggestionHighlights'])return;const _0x1162d2=_0x31de19['item'];if(!_0x1162d2||!_0x1162d2['is']('element','tableCell'))return;const _0x144fad=_0x1b050f['mapper']['toViewElement'](_0x1162d2);if(_0x144fad){const {id:_0x212677,authorId:_0x1322ec}=_0x2cf19c['_splitMarkerName'](_0x31de19['markerName']);_0x3ce07(_0x144fad,_0x1b050f['writer'],(_0x5e2e9d,_0x516c1b,_0x38940c)=>{_0x38940c['addClass'](_0x47ad9e(_0x516c1b['classes']),_0x5e2e9d),_0x38940c['setAttribute']('data-suggestion-id',_0x212677,_0x5e2e9d),_0x38940c['setAttribute']('data-author-id',_0x1322ec,_0x5e2e9d);},(_0x43a370,_0xc0c992,_0x57527d)=>{_0x57527d['removeClass'](_0x47ad9e(_0xc0c992['classes']),_0x43a370),_0x57527d['removeAttribute']('data-suggestion-id',_0x43a370),_0x57527d['removeAttribute']('data-author-id',_0x43a370);});}},{'priority':'highest'}),_0x2cf19c['descriptionFactory']['registerDescriptionCallback'](_0x3b4038=>{if('insertion'!=_0x3b4038['type']&&'deletion'!=_0x3b4038['type'])return;const _0x2a91d0=_0x3b4038['getContainedElement']();if(null!=_0x2a91d0&&_0x2a91d0['is']('element','table')){if('insertion'==_0x3b4038['type']){const _0x3a4b36=_0x3b4038['getItems']()['filter'](_0x38fd35=>_0x38fd35['is']('$textProxy'))['map'](_0x1ca214=>_0x1ca214['data']);if(_0x3a4b36['length'])return{'type':'insertion','content':o(_0x39d135,'*Insert:*\x20%0',o(_0x39d135,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a4b36['join']('\x20')+'\x22'))};}if('deletion'==_0x3b4038['type']){const _0x16e442=_0x3b4038['getItems']()['filter'](_0x95a807=>_0x95a807['is']('$textProxy'))['map'](_0x431e3b=>_0x431e3b['data']);if(_0x16e442['length'])return{'type':'deletion','content':o(_0x39d135,'*Remove:*\x20%0',o(_0x39d135,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x16e442['join']('\x20')+'\x22'))};}}}),_0x2cf19c['descriptionFactory']['registerDescriptionCallback'](_0x57b4de=>{if('tableRow'==_0x57b4de['subType']){const _0xa4f115=_0x57b4de['getItems']()['filter'](_0x213439=>_0x213439['is']('$textProxy'))['map'](_0x5ce8f7=>_0x5ce8f7['data']),_0x21952c=this['_getSuggestionCoords'](_0x57b4de),_0x538758=_0x21952c['maxRow']-_0x21952c['minRow']+0x1;if('insertion'==_0x57b4de['type'])return _0xa4f115['length']?{'type':'insertion','content':o(_0x39d135,'*Insert:*\x20%0',o(_0x39d135,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x538758,'\x22'+_0xa4f115['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x39d135,'*Insert:*\x20%0',o(_0x39d135,'ELEMENT_TABLE_ROW',_0x538758))};if('deletion'==_0x57b4de['type'])return _0xa4f115['length']?{'type':'deletion','content':o(_0x39d135,'*Remove:*\x20%0',o(_0x39d135,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x538758,'\x22'+_0xa4f115['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x39d135,'*Remove:*\x20%0',o(_0x39d135,'ELEMENT_TABLE_ROW',_0x538758))};}if('tableColumn'==_0x57b4de['subType']){const _0x3f1821=_0x57b4de['getItems']()['filter'](_0x30d007=>_0x30d007['is']('$textProxy'))['map'](_0x56ca69=>_0x56ca69['data']),_0x39d199=this['_getSuggestionCoords'](_0x57b4de),_0x4e848a=_0x39d199['maxColumn']-_0x39d199['minColumn']+0x1;if('insertion'==_0x57b4de['type'])return _0x3f1821['length']?{'type':'insertion','content':o(_0x39d135,'*Insert:*\x20%0',o(_0x39d135,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4e848a,'\x22'+_0x3f1821['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x39d135,'*Insert:*\x20%0',o(_0x39d135,'ELEMENT_TABLE_COLUMN',_0x4e848a))};if('deletion'==_0x57b4de['type'])return _0x3f1821['length']?{'type':'deletion','content':o(_0x39d135,'*Remove:*\x20%0',o(_0x39d135,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4e848a,'\x22'+_0x3f1821['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x39d135,'*Remove:*\x20%0',o(_0x39d135,'ELEMENT_TABLE_COLUMN',_0x4e848a))};}}),_0x2cf19c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x43a88c),_0x2cf19c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x43a88c),_0x2cf19c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x28b83f),_0x2cf19c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x28b83f),_0x2cf19c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xba4203),_0x2cf19c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xba4203),_0x2cf19c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3f52a2),_0x2cf19c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3f52a2);}['_acceptFormatSuggestionCallbackFactory'](){const _0x56d891=this['editor'],_0x400eee=_0x56d891['model']['document']['selection'];return(_0x3259ef,_0x24b825)=>{_0x56d891['model']['change'](_0x563b1e=>{const {commandName:_0x27f00f,commandParams:_0x59e4bf}=_0x24b825;let _0x51a644=_0x3259ef[0x0]['end']['nodeBefore'];_0x59e4bf&&_0x59e4bf[0x0]&&!0x1===_0x59e4bf[0x0]['forceValue']&&(_0x51a644=_0x3259ef[0x0]['start']['nodeAfter']);const _0x456e6c=_0x563b1e['createRangeIn'](_0x51a644);if('$graveyard'==_0x456e6c['root']['rootName'])return;const _0x206bc8=Array['from'](_0x400eee['getRanges']())['map'](_0x35227a=>_0x1207cf['fromRange'](_0x35227a));_0x563b1e['setSelection'](_0x456e6c),_0x56d891['commands']['get'](_0x27f00f)['refresh'](),_0x59e4bf['push']({'forceDefaultExecution':!0x0}),_0x56d891['execute'](_0x27f00f,..._0x59e4bf);const _0x4ea3b3=_0x206bc8['filter'](_0x21e9c3=>'$graveyard'!=_0x21e9c3['root']['rootName']);_0x4ea3b3['length']>0x0&&_0x563b1e['setSelection'](_0x4ea3b3);for(const _0x547048 of _0x206bc8)_0x547048['detach']();});};}['_getCoordsForCells'](_0x3c8954){const _0x1f8bf6=this['editor']['plugins']['get']('TableUtils');let _0x436449=Number['MAX_SAFE_INTEGER'],_0x5ac64f=Number['MIN_SAFE_INTEGER'],_0x553d25=Number['MAX_SAFE_INTEGER'],_0x2428fe=Number['MIN_SAFE_INTEGER'];for(const _0x4fda17 of _0x3c8954){if('$graveyard'==_0x4fda17['root']['rootName'])continue;const {row:_0x38ba81,column:_0x2c99e9}=_0x1f8bf6['getCellLocation'](_0x4fda17),_0x10a0e8=_0x4fda17['hasAttribute']('rowspan')?_0x4fda17['getAttribute']('rowspan')-0x1:0x0,_0xcb5e6f=_0x4fda17['hasAttribute']('colspan')?_0x4fda17['getAttribute']('colspan')-0x1:0x0;_0x436449=_0x38ba81<_0x436449?_0x38ba81:_0x436449,_0x5ac64f=_0x38ba81+_0x10a0e8>_0x5ac64f?_0x38ba81+_0x10a0e8:_0x5ac64f,_0x553d25=_0x2c99e9<_0x553d25?_0x2c99e9:_0x553d25,_0x2428fe=_0x2c99e9+_0xcb5e6f>_0x2428fe?_0x2c99e9+_0xcb5e6f:_0x2428fe;}return{'minRow':_0x436449,'maxRow':_0x5ac64f,'minColumn':_0x553d25,'maxColumn':_0x2428fe};}['_setupColumnsRowsFixing'](){const _0x300261=this['editor'],_0x59c6d3=_0x300261['plugins']['get']('TrackChangesEditing'),_0x5c05e2=_0x300261['plugins']['get']('TableUtils');_0x300261['model']['document']['on']('change:data',()=>{const _0x39631a=Array['from'](_0x300261['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x38bef5,data:_0x1cf652}of _0x39631a){const {group:_0x81afa3,id:_0x310ae7,subType:_0x5ddf65}=_0x59c6d3['_splitMarkerName'](_0x38bef5);if('suggestion'!=_0x81afa3)continue;if(null!=_0x1cf652['oldRange'])continue;const _0x41547b=_0x59c6d3['getSuggestion'](_0x310ae7);this['_tablePostFixingSubtypes']['includes'](_0x5ddf65)&&this['_tableSuggestions']['add'](_0x41547b);}},{'priority':'low'});const _0x5a95f8=(_0x181a33,_0x21e043)=>{let _0x4f618a=!0x1;const _0x5c35e5=_0x21e043['createRangeOn'](_0x181a33),_0x4af3cc=_0x181a33['findAncestor']('table'),_0x31262b=_0x5c05e2['getCellLocation'](_0x181a33);for(const _0x2c3f7c of this['_tableSuggestions']){const _0x208771=_0x2c3f7c['subType'],_0x1fe013=_0x208771['startsWith']('tablePaste'),_0x105340=_0x208771['substr'](_0x1fe013?0xa:0x5),_0xf3ad7d=_0x105340['toLowerCase'](),_0x12e8ad=_0xf3ad7d['substr'](0x0,0x3)+'span',_0x2e3a67='min'+_0x105340,_0x1a946f='max'+_0x105340;if(!_0x2c3f7c['isInContent'])continue;if(_0x4af3cc!=_0x2c3f7c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2c3f7c['isIntersectingWithRange'](_0x5c35e5))continue;const _0x530cf9=_0x181a33['hasAttribute'](_0x12e8ad)?_0x181a33['getAttribute'](_0x12e8ad)-0x1:0x0,_0x2b0d4c=this['_getSuggestionCoords'](_0x2c3f7c),_0x10956b=_0x2b0d4c[_0x2e3a67],_0x54a4c3=_0x2b0d4c[_0x1a946f];_0x10956b<=_0x31262b[_0xf3ad7d]&&_0x31262b[_0xf3ad7d]+_0x530cf9<=_0x54a4c3&&(_0x2c3f7c['addRange'](_0x5c35e5),_0x4f618a=!0x0);}return _0x4f618a;};_0x300261['model']['document']['registerPostFixer'](_0x2ce4b7=>{let _0x492a62=!0x1;for(const _0x3d3f48 of _0x300261['model']['document']['differ']['getChanges']())if('insert'==_0x3d3f48['type']){if('tableRow'==_0x3d3f48['name']){for(const _0x468afb of _0x3d3f48['position']['nodeAfter']['getChildren']())_0x492a62=_0x492a62||_0x5a95f8(_0x468afb,_0x2ce4b7);}else'tableCell'==_0x3d3f48['name']&&(_0x492a62=_0x492a62||_0x5a95f8(_0x3d3f48['position']['nodeAfter'],_0x2ce4b7));}return _0x492a62;});}['_getSuggestionCoords'](_0x488661){return this['_getCoordsForCells'](_0x488661['getRanges']()['map'](_0x5879b1=>_0x5879b1['start']['nodeAfter']));}}function Oe(_0x3c1013){return Array['from'](new Set(_0x3c1013)['values']());}class Mt extends _0x23981b{static get['requires'](){return[Dt];}['afterInit'](){const _0x29d00d=this['editor'],_0x2dba5b=_0x29d00d['model']['document']['selection'],_0x1775f5=_0x29d00d['locale'];if(!_0x29d00d['plugins']['has']('TableEditing'))return;const _0x321b2d=_0x29d00d['plugins']['get']('TrackChangesEditing'),_0x3c7dd2=_0x29d00d['plugins']['get']('TableUtils'),_0x2ca7f8=_0x29d00d['plugins']['get'](Dt);_0x2ca7f8['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x321b2d['enableCommand']('mergeTableCells',()=>{const _0x3c774e=_0x3c7dd2['getSelectionAffectedTableCells'](_0x29d00d['model']['document']['selection']);_0x29d00d['model']['change'](()=>{_0x321b2d['markMultiRangeBlockFormat'](_0x3c774e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x29d00d['commands']['get']('mergeTableCells')['on']('execute',(_0x1013f6,_0x2cc7dd)=>{_0x29d00d['commands']['get']('trackChanges')['value']&&(_0x2cc7dd['length']>0x0&&_0x2cc7dd[_0x2cc7dd['length']-0x1]&&_0x2cc7dd[_0x2cc7dd['length']-0x1]['forceDefaultExecution']||_0x321b2d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1013f6['stop']());},{'priority':'highest'});for(const _0x256282 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2b69b0=_0x29d00d['commands']['get'](_0x256282);_0x321b2d['enableCommand'](_0x256282,()=>{const _0x17497b=_0x29d00d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2a7a4d=>_0x2a7a4d['is']('element','tableCell')),_0x497d25=_0x2b69b0['value'];_0x29d00d['model']['change'](()=>{_0x321b2d['markMultiRangeBlockFormat']([_0x17497b,_0x497d25],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x326954 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x369486=_0x29d00d['commands']['get'](_0x326954);_0x321b2d['enableCommand'](_0x326954,()=>{const _0x49b2d1=_0x3c7dd2['getSelectionAffectedTableCells'](_0x29d00d['model']['document']['selection'])[0x0],_0x2a2f90=_0x49b2d1['findAncestor']('table'),{column:_0x4a7ceb,row:_0x176f3f}=_0x3c7dd2['getCellLocation'](_0x49b2d1);let _0x3eaeb0=[];if('horizontally'==_0x369486['direction']){const _0x534597=_0x3c7dd2['createTableWalker'](_0x2a2f90,{'startRow':_0x176f3f,'endRow':_0x176f3f,'includeAllSlots':!0x0});_0x3eaeb0=Array['from'](_0x534597)['map'](_0x18127a=>_0x18127a['cell']);}else{const _0x148832=_0x3c7dd2['createTableWalker'](_0x2a2f90,{'column':_0x4a7ceb,'includeAllSlots':!0x0});_0x3eaeb0=Array['from'](_0x148832)['map'](_0x3e9e1b=>_0x3e9e1b['cell']);}_0x29d00d['model']['change'](_0x482f0b=>{_0x321b2d['markBlockFormat'](_0x482f0b['createRangeOn'](_0x49b2d1),{'commandName':_0x326954,'commandParams':[]},_0x3eaeb0,_0x326954);});});}_0x321b2d['descriptionFactory']['registerDescriptionCallback'](_0x378b70=>{if('formatBlock'!=_0x378b70['type']&&'formatInline'!=_0x378b70['type'])return;const {data:_0x3490f8}=_0x378b70;return _0x3490f8&&'mergeTableCells'==_0x3490f8['commandName']?{'type':'format','content':o(_0x1775f5,'*Merge\x20cells*')}:void 0x0;}),_0x321b2d['descriptionFactory']['registerDescriptionCallback'](_0x40eff4=>{if('formatBlock'!=_0x40eff4['type']&&'formatInline'!=_0x40eff4['type'])return;const {data:_0x2208fa}=_0x40eff4;return _0x2208fa?'splitTableCellVertically'==_0x2208fa['commandName']?{'type':'format','content':o(_0x1775f5,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2208fa['commandName']?{'type':'format','content':o(_0x1775f5,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x41df4a=_0x2ca7f8['_acceptFormatSuggestionCallbackFactory']();for(const _0x81a71e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x321b2d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x81a71e,'accept',_0x41df4a);for(const _0x281297 of['splitTableCellVertically','splitTableCellHorizontally'])_0x321b2d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x281297,'accept',_0x41df4a);_0x321b2d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1ea836=>{_0x29d00d['model']['change'](_0x367cfa=>{const _0x2e2fb8=Array['from'](_0x2dba5b['getRanges']())['map'](_0x5ee7cb=>_0x1207cf['fromRange'](_0x5ee7cb));_0x367cfa['setSelection'](_0x1ea836),_0x29d00d['commands']['get']('mergeTableCells')['refresh'](),_0x29d00d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5844b5=_0x2e2fb8['filter'](_0x29f9a3=>'$graveyard'!=_0x29f9a3['root']['rootName']);_0x5844b5['length']>0x0&&_0x367cfa['setSelection'](_0x5844b5);for(const _0x4e9888 of _0x2e2fb8)_0x4e9888['detach']();});});for(const _0x5590f8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x54b5a6=_0x29d00d['commands']['get'](_0x5590f8);_0x54b5a6['on']('set:isEnabled',(_0x3d771f,_0x50d9ed,_0x9f67c0)=>{if(_0x9f67c0){const _0x170ce9=_0x29d00d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x379bb0=>_0x379bb0['is']('element','tableCell'));this['_areMergableCells'](_0x54b5a6['value'],_0x170ce9)||(_0x3d771f['return']=!0x1,_0x3d771f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x165bd5=this['editor']['commands']['get']('mergeTableCells'),_0x16e543=this['editor']['plugins']['get']('TableUtils');if(!_0x165bd5['isEnabled'])return!0x1;const _0x54dd52=_0x16e543['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5a12b2 of _0x54dd52)for(const _0x3193b1 of _0x54dd52)if(_0x5a12b2!=_0x3193b1&&!this['_areMergableCells'](_0x5a12b2,_0x3193b1))return!0x1;return!0x0;}['_areMergableCells'](_0x50e7ec,_0x36b672){const _0x22885d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x447a46=this['editor']['model']['createRangeOn'](_0x50e7ec),_0x212acf=this['editor']['model']['createRangeOn'](_0x36b672),_0x104829=new Set(),_0x10cb58=new Set();for(const _0x4d30a4 of _0x22885d['getSuggestions']())if(('insertion'==_0x4d30a4['type']||'deletion'==_0x4d30a4['type']||'mergeTableCells'==_0x4d30a4['subType'])&&_0x4d30a4['isInContent']){for(const _0x187e8e of _0x4d30a4['getRanges']())_0x187e8e['containsRange'](_0x447a46,!0x0)&&_0x104829['add'](_0x4d30a4['type']+':'+_0x4d30a4['author']['id']),_0x187e8e['containsRange'](_0x212acf,!0x0)&&_0x10cb58['add'](_0x4d30a4['type']+':'+_0x4d30a4['author']['id']);}if(_0x104829['size']!=_0x10cb58['size'])return!0x1;for(const _0x4e03e3 of _0x104829)if(!_0x10cb58['has'](_0x4e03e3))return!0x1;return!0x0;}}class Bt extends _0x23981b{static get['requires'](){return[Dt];}['afterInit'](){const _0x3c3492=this['editor'];if(!_0x3c3492['plugins']['has']('TableEditing'))return;const _0x3d64ea=_0x3c3492['locale'],_0x37347d=_0x3c3492['plugins']['get']('TrackChangesEditing');_0x37347d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x37347d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x37347d['registerBlockAttribute']('headingRows'),_0x37347d['registerBlockAttribute']('headingColumns'),_0x37347d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3d64ea,'FORMAT_HEADER_ROW')),_0x37347d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3d64ea,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x158591=this['editor']['plugins']['get']('TrackChangesEditing'),_0x412be3=this['editor']['plugins']['get']('TableUtils'),_0x334dba=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();function _0x55b2d9({showActiveMarker:_0x1b3f9f=!0x0,setDataAttribute:_0x1335d5=!0x0}={}){return(_0x3a21f3,_0x134134,_0x42a528)=>{const {type:_0xf2f5f3,id:_0x4dd073}=_0x158591['_splitMarkerName'](_0x134134['markerName']);if(!_0x158591['hasSuggestion'](_0x4dd073))return;const _0x246316=_0x158591['getSuggestion'](_0x4dd073),_0x56fbeb=_0x246316['data'];if('formatBlock'!=_0x246316['type']||!_0x56fbeb||'setTableColumnHeader'!=_0x56fbeb['commandName'])return;if(_0x134134['item'])return void _0x3a21f3['stop']();if(!_0x42a528['consumable']['consume'](_0x134134['markerRange'],_0x3a21f3['name']))return;const _0x4f879c=_0x134134['markerRange']['start']['nodeAfter'],_0x252980=_0x134134['markerRange']['end']['nodeBefore'],_0x436759=_0x4f879c['parent']['parent'],{column:_0x1e3b10}=_0x412be3['getCellLocation'](_0x4f879c),{column:_0x15c81c}=_0x412be3['getCellLocation'](_0x252980);for(let _0x5c2b66=_0x1e3b10;_0x5c2b66<=_0x15c81c;_0x5c2b66++){const _0x5cc417=_0x412be3['createTableWalker'](_0x436759,{'column':_0x5c2b66,'includeAllSlots':!0x1});for(const _0x30fc80 of _0x5cc417){const _0x4de106=_0x30fc80['cell'],_0x2455ee=_0x42a528['mapper']['toViewElement'](_0x4de106);_0x42a528['writer']['addClass']('ck-suggestion-marker-'+_0xf2f5f3,_0x2455ee),_0x1335d5&&_0x42a528['writer']['setAttribute']('data-suggestion',_0x4dd073,_0x2455ee),_0x42a528['mapper']['bindElementToMarker'](_0x2455ee,_0x134134['markerName']),_0x1b3f9f&&(_0x158591['activeMarkers']['includes'](_0x134134['markerName'])?_0x42a528['writer']['addClass']('ck-suggestion-marker--active',_0x2455ee):_0x42a528['writer']['removeClass']('ck-suggestion-marker--active',_0x2455ee));}}};}_0x158591['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x334dba),_0x158591['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x334dba),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x55b2d9(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4992d5,_0x50a2cd,_0x432b7d)=>{_0x432b7d['options']['showSuggestionHighlights']&&_0x55b2d9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4992d5,_0x50a2cd,_0x432b7d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x413ffc,_0x425ae4,_0xa328be)=>{const {type:_0x44fa34,id:_0x32c6d1}=_0x158591['_splitMarkerName'](_0x425ae4['markerName']);if(!_0x158591['hasSuggestion'](_0x32c6d1))return;const _0x4c61b4=_0x158591['getSuggestion'](_0x32c6d1),_0x2a4e00=_0x4c61b4['data'];if('formatBlock'!=_0x4c61b4['type']||!_0x2a4e00||'setTableColumnHeader'!=_0x2a4e00['commandName'])return;const _0x2656d7=_0xa328be['mapper']['markerNameToElements'](_0x425ae4['markerName']);if(_0x2656d7){for(const _0x3835c0 of _0x2656d7)_0xa328be['writer']['removeClass']('ck-suggestion-marker-'+_0x44fa34,_0x3835c0),_0xa328be['writer']['removeClass']('ck-suggestion-marker--active',_0x3835c0),_0xa328be['writer']['removeAttribute']('data-suggestion',_0x3835c0),_0xa328be['mapper']['unbindElementFromMarkerName'](_0x3835c0,_0x425ae4['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dbd5d=this['editor'],_0x16b5c5=_0x3dbd5d['locale'];function _0x5223d(_0x4ef44c){return{'type':'format','content':o(_0x16b5c5,'*Format:*\x20%0',_0x4ef44c)};}_0x3dbd5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bb0ce=>{if('formatBlock'!=_0x5bb0ce['type'])return;const {data:_0xeeb7a1}=_0x5bb0ce;if(_0xeeb7a1){if('setTableRowHeader'==_0xeeb7a1['commandName']){const _0x43fca3=_0xeeb7a1['commandParams'][0x0]['forceValue'];return _0x5223d(o(_0x16b5c5,_0x43fca3?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xeeb7a1['commandName']){const _0x4621fe=_0xeeb7a1['commandParams'][0x0]['forceValue'];return _0x5223d(o(_0x16b5c5,_0x4621fe?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Tt extends _0x23981b{['afterInit'](){const _0x2ab865=this['editor'],_0x3b7e65=_0x2ab865['locale'],_0x3b1aa6=_0x2ab865['plugins']['get']('TrackChangesEditing');function _0x7181d6(_0x3dee61){return{'type':'format','content':''+o(_0x3b7e65,'*Set\x20table\x20type:*\x20%0',_0x3dee61)};}_0x2ab865['plugins']['has']('TableLayout')&&(_0x3b1aa6['enableCommand']('insertTableLayout'),_0x3b1aa6['enableDefaultAttributesIntegration']('tableType'),_0x3b1aa6['registerBlockAttribute']('tableType'),_0x3b1aa6['descriptionFactory']['registerElementLabel'](_0x3d8976=>_0x3d8976['is']('element','table')&&'layout'===_0x3d8976['getAttribute']('tableType'),_0x1def50=>o(_0x3b7e65,'ELEMENT_LAYOUT_TABLE',_0x1def50)),_0x3b1aa6['descriptionFactory']['registerDescriptionCallback'](_0x541bde=>{const {data:_0x1e380d}=_0x541bde;if(_0x1e380d&&'tableType'==_0x1e380d['key'])switch(_0x1e380d['newValue']){case'layout':return _0x7181d6(o(_0x3b7e65,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x7181d6(o(_0x3b7e65,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],He=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Ue['map'](_0x49e311=>[_0x49e311,null]));class Ot extends _0x23981b{static get['requires'](){return[Dt];}['afterInit'](){const _0x2a388d=this['editor'];if(!_0x2a388d['plugins']['has']('TableClipboard'))return;const _0x4f4f2d=_0x2a388d['plugins']['get']('TrackChangesEditing'),_0x47de3f=_0x2a388d['plugins']['get']('TableUtils'),_0x371cc1=_0x2a388d['plugins']['get'](Dt),_0x44b816=_0x2a388d['plugins']['get']('TableClipboard'),_0x6fa7b6=_0x2a388d['plugins']['get']('TableSelection'),_0x2900f0=_0x2a388d['plugins']['get'](_0xa5dd57);_0x371cc1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2a388d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2a388d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3ed65f=null,_0x2dacae=!0x1;_0x2900f0['on']('contentInsertion',(_0x40eb1b,_0x5f014d)=>{_0x2dacae='paste'===_0x5f014d['method'];}),_0x2a388d['model']['on']('insertContent',(_0x5c6867,_0x5a9bb4)=>{if(!_0x2dacae&&null===_0x6fa7b6['getSelectedTableCells']())return;const [_0x308a8a,_0x35de70]=_0x5a9bb4,_0x3cf6b5=_0x5a9bb4[_0x5a9bb4['length']-0x1];_0x3cf6b5&&_0x3cf6b5['forceDefaultExecution']||_0x4f4f2d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4b3c91,_0x16aae9,_0xacd676,_0xfe88ec,_0x4a81c2){if(_0x16aae9&&!_0x16aae9['is']('documentSelection'))return!0x1;const _0x1faf34=_0x4a81c2['getTableIfOnlyTableInContent'](_0x4b3c91,_0xacd676);if(!_0x1faf34||!Ge(_0x1faf34,void 0x0,_0xfe88ec))return!0x1;const _0x156a1c=_0xfe88ec['getSelectionAffectedTableCells'](_0xacd676['document']['selection']);if(!_0x156a1c['length'])return!0x1;const _0x2bbd71=_0x156a1c[0x0]['findAncestor']('table'),_0x56698a=_0xfe88ec['getRowIndexes'](_0x156a1c),_0x1ea1a5=_0xfe88ec['getColumnIndexes'](_0x156a1c),_0x380189={'startRow':_0x56698a['first'],'endRow':_0x56698a['last'],'startColumn':_0x1ea1a5['first'],'endColumn':_0x1ea1a5['last']};return 0x1==_0x156a1c['length']&&(_0x380189['endRow']+=_0xfe88ec['getRows'](_0x1faf34)-0x1,_0x380189['endColumn']+=_0xfe88ec['getColumns'](_0x1faf34)-0x1),Ge(_0x2bbd71,_0x380189,_0xfe88ec);}(_0x308a8a,_0x35de70,_0x2a388d['model'],_0x47de3f,_0x44b816)&&(_0x5c6867['stop'](),_0x3ed65f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2a388d['model']['change'](()=>{_0x2a388d['model']['insertContent'](_0x5a9bb4[0x0],_0x5a9bb4[0x1],_0x5a9bb4[0x2],{'forceDefaultExecution':!0x0});const _0x4f045b=_0x59254f(),{rowInsertionRanges:_0x5f3bc2,columnInsertionRanges:_0x40c306,insertionRanges:_0x5017fd,deletionRanges:_0x4fbce7,cells:_0x3906d5}=_0x3ed65f;_0x5f3bc2['length']&&_0x4f4f2d['markMultiRangeInsertion'](_0x5f3bc2,'tablePasteRow',{'tablePasteChainId':_0x4f045b}),_0x40c306['length']&&_0x4f4f2d['markMultiRangeInsertion'](_0x40c306,'tablePasteColumn',{'tablePasteChainId':_0x4f045b}),_0x5017fd['length']&&(_0x4f4f2d['markMultiRangeInsertion'](_0x5017fd,'tablePaste',{'tablePasteChainId':_0x4f045b,'skipNestingCheck':!0x0}),_0x5017fd['forEach'](_0x4f41c6=>_0x4f41c6['detach']?.())),_0x4fbce7['length']&&(_0x4f4f2d['markMultiRangeDeletion'](_0x4fbce7,'tablePaste',{'tablePasteChainId':_0x4f045b,'skipNestingCheck':!0x0}),_0x4fbce7['forEach'](_0x587d7c=>_0x587d7c['detach']?.()));const _0x2930cc=_0x4f4f2d['markMultiRangeBlockFormat'](_0x3906d5['map'](({element:_0x53ba82})=>_0x53ba82),{'formatGroupId':_0x59254f()},[],'tablePasteCell',{'tablePasteChainId':_0x4f045b});if(_0x2930cc){const _0x3d39e7=_0x2930cc['getMarkers'](),_0x2996ae=[];for(const {element:_0x4add46,attributes:_0x4664e0}of _0x3906d5){if(!_0x4664e0)continue;const _0x38103a=_0x2a388d['model']['createRangeOn'](_0x4add46),_0x30d2bb=_0x3d39e7['find'](_0x309e82=>_0x309e82['getRange']()['isEqual'](_0x38103a));_0x30d2bb&&_0x2996ae['push']([_0x30d2bb['name'],_0x4664e0]);}_0x2996ae['length']&&_0x2930cc['setAttribute']('markerAttributes',Object['fromEntries'](_0x2996ae));}_0x3ed65f=null;}));},{'priority':_0xc47c1d['high']+0xa}),_0x2900f0['on']('contentInsertion',()=>{_0x2dacae=!0x1;},{'priority':'lowest'}),_0x2a388d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2d2c5b,_0x335fd8)=>{const [_0x2aac85,_0x5609b2,,_0x270670]=_0x335fd8;if(!_0x3ed65f)return;_0x2d2c5b['stop']();const _0x3bb27c=_0x2aac85['cell'],_0x2ecefc=_0x5609b2,_0x425f56=ze(_0x3bb27c),_0x4f3891=ze(_0x2ecefc);_0x2d2c5b['return']=_0x3bb27c;let _0x577493=null,_0x45c17c=null;if(_0x4f3891||_0x425f56){if(_0x425f56&&!_0x4f3891){_0x270670['remove'](_0x3bb27c['getChild'](0x0));for(const _0x299350 of Array['from'](_0x2ecefc['getChildren']()))_0x270670['insert'](_0x299350,_0x3bb27c,'end');const _0x135295=_0x3ed65f['rowInsertionIndexes']['includes'](_0x2aac85['row']),_0x4b2050=_0x3ed65f['columnInsertionIndexes']['includes'](_0x2aac85['column']);_0x135295||_0x4b2050||(_0x577493=_0x1207cf['fromRange'](_0x270670['createRangeIn'](_0x3bb27c)));}else _0x4f3891&&!_0x425f56&&(_0x45c17c=_0x270670['createRangeIn'](_0x3bb27c));}else{const _0x25de03=_0x270670['createElement']('tableCellSuggestion'),_0x45df90=_0x270670['createElement']('tableCellSuggestion');_0x270670['wrap'](_0x270670['createRangeIn'](_0x3bb27c),_0x45df90),_0x270670['insert'](_0x25de03,_0x3bb27c,0x0);for(const _0x2960e0 of Array['from'](_0x2ecefc['getChildren']()))_0x270670['insert'](_0x2960e0,_0x25de03,'end');_0x577493=_0x1207cf['fromRange'](_0x270670['createRangeOn'](_0x25de03)),_0x45c17c=_0x1207cf['fromRange'](_0x270670['createRangeOn'](_0x45df90));}const _0x2bc135=Array['from'](_0x2ecefc['getAttributes']())['filter'](([_0x4e0bca])=>Ue['includes'](_0x4e0bca));_0x3ed65f['cells']['push']({'element':_0x3bb27c,'attributes':_0x2bc135['length']?Object['fromEntries'](_0x2bc135):null}),_0x577493&&_0x3ed65f['insertionRanges']['push'](_0x577493),_0x45c17c&&_0x3ed65f['deletionRanges']['push'](_0x45c17c);},{'priority':'high'}),_0x47de3f['on']('insertColumns',(_0x50e4b5,_0x3c807d)=>{const [_0x47f6ee,_0x4e429d={}]=_0x3c807d;if(!_0x3ed65f)return;const _0x576ad1=_0x4e429d['at']||0x0,_0x3992dd=_0x4e429d['columns']||0x1;_0x3ed65f['columnInsertionIndexes']=new Array(_0x3992dd)['fill'](_0x576ad1)['map']((_0x37d8d1,_0x1ea42d)=>_0x37d8d1+_0x1ea42d);for(const {cell:_0x1d5c57}of _0x47de3f['createTableWalker'](_0x47f6ee,{'startColumn':_0x576ad1,'endColumn':_0x576ad1+_0x3992dd-0x1}))_0x3ed65f['columnInsertionRanges']['push'](_0x2a388d['model']['createRangeOn'](_0x1d5c57));},{'priority':'low'}),_0x47de3f['on']('insertRows',(_0x4a649e,_0x55d31b)=>{const [_0x5d2b0d,_0x3c1e62={}]=_0x55d31b;if(!_0x3ed65f)return;const _0x5aa39d=_0x3c1e62['at']||0x0,_0x1ef984=_0x3c1e62['rows']||0x1;_0x3ed65f['rowInsertionIndexes']=new Array(_0x1ef984)['fill'](_0x5aa39d)['map']((_0xeb0da5,_0x54f6e8)=>_0xeb0da5+_0x54f6e8);for(const {cell:_0x4a9e29}of _0x47de3f['createTableWalker'](_0x5d2b0d,{'startRow':_0x5aa39d,'endRow':_0x5aa39d+_0x1ef984-0x1}))_0x3ed65f['rowInsertionRanges']['push'](_0x2a388d['model']['createRangeOn'](_0x4a9e29));},{'priority':'low'}),_0x4f4f2d['descriptionFactory']['registerDescriptionCallback'](_0x30964d=>{if(_0x30964d['subType']&&_0x30964d['subType']['startsWith']('tablePaste'))return _0x30964d['previous']?{}:{'type':'insertion','content':o(_0x2a388d['locale'],'*Replace\x20table\x20cells*')};});const _0x2bec80=()=>!0x1;for(const _0x475a0e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4f4f2d['_suggestionFactory']['registerCustomCallback']('insertion',_0x475a0e,'join',_0x2bec80),_0x4f4f2d['_suggestionFactory']['registerCustomCallback']('deletion',_0x475a0e,'join',_0x2bec80),_0x4f4f2d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x475a0e,'join',_0x2bec80);_0x4f4f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2bec80),_0x4f4f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x269663,_0x5ec040,_0x12fb19)=>{const _0x4b5f3c=_0x269663['map'](_0x7786e1=>_0x7786e1['getContainedElement']())['filter'](_0x35dcc2=>_0x35dcc2),_0x600a5d=new Map(_0x4b5f3c['map'](_0xea5d77=>[_0xea5d77,null]));if(_0x3ed65f){for(const {element:_0x117094,attributes:_0x55f3e7}of _0x3ed65f['cells'])_0x55f3e7&&_0x600a5d['set'](_0x117094,_0x55f3e7);}else{if(_0x12fb19&&_0x12fb19['markerAttributes'])for(const [_0x2438bd,_0xe5c4b3]of Object['entries'](_0x12fb19['markerAttributes'])){const _0x552c9a=_0x2a388d['model']['markers']['get'](_0x2438bd),_0x1310af=_0x552c9a?_0x552c9a['getRange']()['getContainedElement']():null;_0x1310af&&_0x600a5d['set'](_0x1310af,_0xe5c4b3);}}_0x2a388d['model']['change'](_0x3496a8=>{for(const [_0x45be7a,_0x3168bc]of _0x600a5d)_0x3496a8['setAttributes']({...He,..._0x3168bc},_0x45be7a);});});const _0x5b0ec5=(_0x46e6c2,_0x23d610)=>{_0x4f4f2d['_suggestionFactory']['registerCustomCallback'](_0x46e6c2,'tablePaste',_0x23d610,(_0x15752f,_0x5d8414,_0x248b54)=>{_0x2a388d['model']['change'](_0x1775de=>{const _0x41c3e0=[];for(const _0x215aa7 of _0x15752f){const _0x27ae29=_0x215aa7['start']['nodeAfter'];_0x27ae29['is']('element','tableCellSuggestion')&&_0x41c3e0['push'](_0x27ae29);}_0x4f4f2d['_suggestionFactory']['getSuggestionCallback'](_0x46e6c2,null,_0x23d610)(_0x15752f,_0x5d8414,_0x248b54);for(const _0x595f57 of _0x41c3e0)'$graveyard'!=_0x595f57['root']['rootName']&&_0x1775de['unwrap'](_0x595f57);});});};_0x5b0ec5('insertion','accept'),_0x5b0ec5('insertion','discard'),_0x5b0ec5('deletion','accept'),_0x5b0ec5('deletion','discard'),_0x4f4f2d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x58c7aa=>{const _0x1bb868=_0x58c7aa['map'](_0x1cc0b1=>_0x1cc0b1['getContainedElement']()),_0x3b6a98=_0x1bb868[0x0]['findAncestor']('table'),{minRow:_0x1a708d,maxRow:_0x53d1f3}=_0x371cc1['_getCoordsForCells'](_0x1bb868);_0x47de3f['removeRows'](_0x3b6a98,{'at':_0x1a708d,'rows':_0x53d1f3-_0x1a708d+0x1});}),_0x4f4f2d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x36c1ae=>{const _0x1dd676=_0x36c1ae['map'](_0xae58c0=>_0xae58c0['getContainedElement']()),_0x377635=_0x1dd676[0x0]['findAncestor']('table'),{minColumn:_0x15aa86,maxColumn:_0x35dd03}=_0x371cc1['_getCoordsForCells'](_0x1dd676);_0x47de3f['removeColumns'](_0x377635,{'at':_0x15aa86,'columns':_0x35dd03-_0x15aa86+0x1});});const _0x335c25=(_0x31e9b8,_0x34f1b8)=>{if(!_0x34f1b8['subType']||!_0x34f1b8['subType']['startsWith']('tablePaste'))return;const _0x623029=_0x34f1b8['attributes']['tablePasteChainId'],_0x3626ab=_0x4f4f2d['getSuggestions']()['filter'](_0x115368=>_0x115368['isInContent']&&_0x115368['attributes']&&_0x115368['attributes']['tablePasteChainId']==_0x623029);_0x3626ab['length']&&_0x34f1b8['getAllAdjacentSuggestions']()['length']!=_0x3626ab['length']&&_0x3626ab['reduce']((_0x4d09eb,_0x5880c6)=>(_0x4d09eb['next']=_0x5880c6,_0x5880c6['previous']=_0x4d09eb,_0x5880c6));};function _0x285d9b(_0x32b077,_0xaf1bb1=!0x0){const {id:_0x10b0b3,authorId:_0x5dd186}=_0x4f4f2d['_splitMarkerName'](_0x32b077['markerName']),_0x50f19a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x313bcf=_0x4f4f2d['activeMarkers']['includes'](_0x32b077['markerName']);return _0x313bcf&&_0x50f19a['push']('ck-suggestion-marker--active'),{'classes':_0x50f19a,'attributes':{'data-suggestion':_0x10b0b3,'data-author-id':_0x5dd186},'priority':_0x313bcf&&_0xaf1bb1?0xbc2:0xbb8};}_0x4f4f2d['on']('suggestionLoaded',_0x335c25,{'priority':'high'}),_0x4f4f2d['on']('suggestionUnloaded',_0x335c25,{'priority':'high'}),_0x2a388d['model']['document']['registerPostFixer'](()=>{let _0x161be9=!0x1;const _0x210dfd=Array['from'](_0x2a388d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43d661,data:_0x248088}of _0x210dfd){const {group:_0x12da39,type:_0x12c575,id:_0x1797e9}=_0x4f4f2d['_splitMarkerName'](_0x43d661);if('suggestion'!=_0x12da39||'deletion'!=_0x12c575||_0x248088['oldRange'])continue;if(!_0x4f4f2d['hasSuggestion'](_0x1797e9))continue;const _0x356603=_0x4f4f2d['getSuggestion'](_0x1797e9)['getRanges'](),_0x749993=_0x2a388d['plugins']['get']('Users')['me'];for(const _0x1cd391 of _0x4f4f2d['getSuggestions']()){if(!_0x1cd391['isInContent']||_0x1cd391['author']!=_0x749993)continue;if('formatBlock'!=_0x1cd391['type']||'tablePasteCell'!=_0x1cd391['subType'])continue;if(_0x1cd391['getRanges']()['every'](_0x6c70fa=>_0x356603['some'](_0x2e4940=>_0x2e4940['containsRange'](_0x6c70fa,!0x0)))){for(const _0x34e1e6 of _0x1cd391['getAllAdjacentSuggestions']())_0x34e1e6['isInContent']&&(_0x34e1e6['discard'](),_0x161be9=!0x0);}}}return _0x161be9;}),_0x2a388d['model']['document']['registerPostFixer'](_0xf05305=>{const _0x3a684c=_0x2a388d['commands']['get']('redo');if(!_0x3a684c||!_0x3a684c['_createdBatches']['has'](_0xf05305['batch']))return!0x1;let _0x2b9a0e=!0x1;const _0x4ae29f=_0x2a388d['plugins']['get']('Users')['me'],_0x63f918=_0x2a388d['model']['document']['differ']['getChanges'](),_0x334812=Array['from'](_0x2a388d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2aa9c7,data:_0x292587})=>{const {group:_0x210d9d,subType:_0x263a7d,authorId:_0x2a0ffa}=_0x4f4f2d['_splitMarkerName'](_0x2aa9c7);return'suggestion'==_0x210d9d&&'tablePaste'==_0x263a7d&&_0x2a0ffa==_0x4ae29f['id']&&!_0x292587['oldRange'];});for(const _0x407beb of _0x63f918){if('insert'!=_0x407beb['type']||'tableCellSuggestion'!=_0x407beb['name']||0x1!=_0x407beb['length'])continue;const _0x24935=_0xf05305['createRange'](_0x407beb['position'],_0x407beb['position']['getShiftedBy'](0x1));if(!_0x334812['find'](({data:_0x3f417a})=>_0x3f417a['newRange']['isEqual'](_0x24935))){for(const {name:_0x3b4e19,data:_0x25d8ac}of _0x334812)if(_0x24935['containsRange'](_0x25d8ac['newRange'])){_0xf05305['updateMarker'](_0x3b4e19,{'range':_0x24935}),_0x2b9a0e=!0x0;break;}}}return _0x2b9a0e;}),_0x2a388d['model']['document']['registerPostFixer'](_0x3a0c9b=>{let _0x2776dc=!0x1;const _0x2832e8=_0x2a388d['plugins']['get']('Users')['me'],_0x5803ae=_0x4f4f2d['getSuggestions']()['filter'](_0x1df4dc=>_0x1df4dc['isInContent']&&_0x1df4dc['author']==_0x2832e8),_0x29b753=new Set(),_0x49c1be=new Set();for(const _0x2ef238 of _0x5803ae)if('tablePaste'==_0x2ef238['subType'])for(const _0x51ccc6 of _0x2ef238['getMarkers']()){const _0x384f21=_0x51ccc6['getRange']()['getContainedElement']();if(_0x384f21){if(_0x384f21['is']('element','tableCellSuggestion')&&ze(_0x384f21)){_0x2ef238['removeMarker'](_0x51ccc6['name']),_0x29b753['add'](_0x384f21),_0x2776dc=!0x0;const _0x2f9a0b=_0x384f21['nextSibling'],_0x45e0eb=_0x384f21['previousSibling'],_0x147d58=_0x2f9a0b&&_0x2f9a0b['is']('element','tableCellSuggestion'),_0x426217=_0x45e0eb&&_0x45e0eb['is']('element','tableCellSuggestion');_0x147d58&&!_0x29b753['has'](_0x2f9a0b)&&_0x49c1be['add'](_0x2f9a0b),_0x426217&&!_0x29b753['has'](_0x45e0eb)&&_0x49c1be['add'](_0x45e0eb);}else _0x384f21['is']('element','paragraph')&&_0x384f21['isEmpty']&&(_0x2ef238['removeMarker'](_0x51ccc6['name']),_0x2776dc=!0x0);}}else{if('tablePasteCell'==_0x2ef238['subType']){if(!_0x2ef238['attributes']||!_0x2ef238['attributes']['tablePasteChainId'])continue;const _0x2ac5e0=_0x2ef238['attributes']['markerAttributes'];if(_0x2ac5e0&&Object['keys'](_0x2ac5e0)['length'])continue;const _0x1e8268=_0x2ef238['attributes']['tablePasteChainId'];let _0x590931=!0x0,_0x2dc895=!0x0;for(const _0x40a0e9 of _0x5803ae)if(_0x40a0e9['subType']&&_0x40a0e9['subType']['startsWith']('tablePaste')){if(!_0x40a0e9['attributes']['tablePasteChainId']){_0x2dc895=!0x1;break;}if(_0x40a0e9['id']!=_0x2ef238['id']&&_0x40a0e9['attributes']['tablePasteChainId']==_0x1e8268){_0x590931=!0x1;break;}}_0x2dc895&&_0x590931&&(_0x2ef238['removeMarkers'](),_0x2776dc=!0x0);}}for(const _0x25a8b2 of _0x29b753)_0x3a0c9b['remove'](_0x25a8b2);for(const _0x4f45d8 of _0x49c1be)_0x3a0c9b['unwrap'](_0x4f45d8);return _0x2776dc;}),_0x2a388d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5a66fd=>_0x285d9b(_0x5a66fd),'converterPriority':'high'}),_0x2a388d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5933b3,_0xded809)=>_0xded809['options']['showSuggestionHighlights']?_0x285d9b(_0x5933b3,!0x1):null,'converterPriority':'high'});const _0x5d3151=_0x2a388d['editing']['view'];this['listenTo'](_0x5d3151['document'],'clipboardOutput',(_0x57bce9,_0x3f178c)=>{const _0x46af10=[];for(const _0x22c9ac of _0x5d3151['createRangeIn'](_0x3f178c['content'])['getItems']())_0x22c9ac['is']('element','suggestion-td')&&_0x46af10['push'](_0x22c9ac);_0x5d3151['change'](_0x3f1667=>{for(const _0x5a8ee1 of _0x46af10)_0x3f1667['move'](_0x3f1667['createRangeIn'](_0x5a8ee1),_0x3f1667['createPositionBefore'](_0x5a8ee1)),_0x3f1667['remove'](_0x5a8ee1);});});}}function ze(_0x33e4ff){if(_0x33e4ff['isEmpty'])return!0x0;const _0x107948=_0x33e4ff['getChild'](0x0);return _0x107948['is']('element','paragraph')&&_0x107948['isEmpty'];}function Ge(_0x53a627,_0x4d10a4={},_0x20832f){for(const {isAnchor:_0x483a92,cellHeight:_0x341b81,cellWidth:_0x2cb590}of _0x20832f['createTableWalker'](_0x53a627,{'includeAllSlots':!0x0,..._0x4d10a4}))if(!_0x483a92||0x1!=_0x341b81||0x1!=_0x2cb590)return!0x1;return!0x0;}class xt extends _0x23981b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x48daf2=this['editor']['plugins']['get']('TrackChangesEditing');_0x48daf2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x48daf2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x48daf2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48daf2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x48daf2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x48daf2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2493a6,_0x264eb3){const _0x19684b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x118453=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x38a4c0=_0x264eb3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5e9d2b=_0x118453['getColumnGroupElement'](_0x38a4c0);let _0x1e27f7=_0x5e9d2b?_0x118453['getTableColumnsWidths'](_0x5e9d2b):null,_0x188c8a=_0x38a4c0['getAttribute']('tableWidth')||null;const _0x262a21=_0x264eb3['tableWidth']||_0x188c8a,_0x509410=_0x264eb3['columnWidths']||_0x1e27f7,_0x589685=this['editor']['plugins']['get']('Users')['me'];for(const _0x3c31d8 of _0x19684b['getSuggestions']()){const _0x5ea4fa=_0x3c31d8['getContainedElement']();if('resizeTable'===_0x3c31d8['subType']&&_0x5ea4fa===_0x38a4c0){_0x3c31d8['author']!==_0x589685&&_0x3c31d8['discard']();const _0x33ca34=_0x3c31d8['data']['commandParams'];_0x188c8a=_0x33ca34[0x0]['tableWidth'],_0x1e27f7=_0x33ca34[0x0]['columnWidths'];break;}}_0x2493a6({'table':_0x38a4c0,'tableWidth':_0x262a21,'columnWidths':_0x509410}),_0x19684b['markBlockFormat'](_0x38a4c0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x188c8a,'columnWidths':_0x1e27f7}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5556d1){if('formatBlock'!=_0x5556d1['type']&&'formatInline'!=_0x5556d1['type'])return;const {data:_0x547085}=_0x5556d1;if(_0x547085&&'resizeTable'===_0x547085['formatGroupId']){const _0x1051bd='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1051bd)};}}}class Et extends _0x23981b{['afterInit'](){const _0x1a2fee=this['editor'];_0x1a2fee['plugins']['has']('Template')&&_0x1a2fee['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x23981b{['afterInit'](){const _0x2ea5a6=this['editor'];if(!_0x2ea5a6['commands']['get']('insertTableOfContents'))return;_0x2ea5a6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x123e48=_0x2ea5a6['plugins']['get']('TrackChangesEditing'),_0x414265=_0x2ea5a6['locale'];_0x123e48['descriptionFactory']['registerElementLabel']('tableOfContents',_0x344e53=>o(_0x414265,'ELEMENT_TABLE_OF_CONTENTS',_0x344e53));}}class Ut extends _0x23981b{['afterInit'](){const _0x20fe23=this['editor'];if(!_0x20fe23['plugins']['has']('Title'))return;const _0x278e6f=_0x20fe23['plugins']['get']('TrackChangesEditing');_0x278e6f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x20fe23['locale'],'ELEMENT_TITLE')),_0x20fe23['model']['document']['registerPostFixer'](_0x2fe26c=>{let _0x1b8841=!0x1;const _0x425faa=Array['from'](_0x20fe23['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x35260b,data:_0x530ccd}of _0x425faa){const {group:_0x50917b}=_0x278e6f['_splitMarkerName'](_0x35260b);if('suggestion'!==_0x50917b||!_0x530ccd['newRange'])continue;const _0x26eb9b=_0x530ccd['newRange'],_0x266efe=_0x26eb9b['end']['nodeBefore'];if(!_0x266efe||!_0x266efe['is']('element','title-content'))continue;if(!_0x26eb9b['start']['isTouching'](_0x26eb9b['end']))continue;const _0x4923c2=_0x20fe23['model']['schema']['getNearestSelectionRange'](_0x26eb9b['end'],'forward');if(_0x4923c2&&_0x4923c2['isCollapsed']){const _0x1f19af=_0x2fe26c['createRange'](_0x26eb9b['start'],_0x4923c2['start']);_0x1f19af['isEqual'](_0x26eb9b)||(_0x2fe26c['updateMarker'](_0x35260b,{'range':_0x1f19af}),_0x1b8841=!0x0);}_0x1b8841||(_0x2fe26c['removeMarker'](_0x35260b),_0x1b8841=!0x0);}return _0x1b8841;});}}class Vt extends _0x23981b{['afterInit'](){const _0x1317c8=this['editor'],_0x4e2f2d=_0x1317c8['plugins']['get']('TrackChangesEditing');_0x1317c8['plugins']['has']('Uploadcare')&&(_0x4e2f2d['enableCommand']('uploadcare'),_0x1317c8['plugins']['has']('UploadcareImageEdit')&&(_0x4e2f2d['enableCommand']('uploadcareImageEdit'),_0x4e2f2d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4e2f2d['registerBlockAttribute']('uploadcareImageId'),_0x4e2f2d['descriptionFactory']['registerDescriptionCallback'](_0x3925cd=>{if('attribute'!=_0x3925cd['type'])return;const {data:_0x39e2b5}=_0x3925cd;return _0x39e2b5&&'uploadcareImageId'==_0x39e2b5['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x23981b{['afterInit'](){const _0x512b42=this['editor'],_0x6429ea=_0x512b42['plugins']['get']('TrackChangesEditing');_0x512b42['plugins']['has']('UndoEditing')&&(_0x6429ea['enableCommand']('undo'),_0x6429ea['enableCommand']('redo'));}}class Pt extends _0x23981b{static get['requires'](){return[Dt];}['afterInit'](){const _0x27940f=this['editor'];if(!_0x27940f['plugins']['has']('TableCaptionEditing'))return;_0x27940f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x23981b{['tableProperties'];['tableCellProperties'];constructor(_0x147fb5){super(_0x147fb5),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 _0x597704=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3d66a3 of this['tableProperties'])_0x597704['enableCommand'](_0x3d66a3,(_0x773891,_0x2b5b06)=>{const _0x2d424f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3d66a3,[_0x2d424f],this['tableProperties'],'tableProperties',_0x773891,_0x2b5b06);});_0x597704['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x597704['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x597704['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2a025b,_0x24f83f)=>this['handleDiscardAction'](this['tableProperties'],_0x2a025b,_0x24f83f)),_0x597704['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x20a0bf of this['tableCellProperties'])_0x597704['enableCommand'](_0x20a0bf,(_0x47bfb3,_0xb7aeb4)=>{const _0x49b2f0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x20a0bf,_0x49b2f0,this['tableCellProperties'],'tableCellProperties',_0x47bfb3,_0xb7aeb4);});_0x597704['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x597704['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x597704['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3fd0bf,_0x13905f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3fd0bf,_0x13905f)),_0x597704['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x597704['descriptionFactory']['registerDescriptionCallback'](_0x154027=>this['handleSuggestionDescription'](_0x154027)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x289171,_0x7fff59,_0x413625,_0x3f5ec4,_0x658cb0,_0x331c14){const _0xa8274d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x331c14['batch'],()=>{for(const _0x3ba137 of _0x7fff59){if(this['_getSuggestion'](_0x3ba137,_0x3f5ec4))_0x658cb0(_0x331c14);else{const _0x57977e={};for(const _0x13a680 of _0x413625){const _0x450008=_0x3ba137['getAttribute'](_0x13a680);void 0x0!==_0x450008&&(_0x57977e[_0x13a680]=_0x450008);}_0x658cb0(_0x331c14),_0xa8274d['markBlockFormat'](_0x3ba137,{'commandParams':[_0x57977e]},[],_0x3f5ec4);}}});}['handleDiscardAction'](_0x47e415,_0x5e5ddf,_0x37ec8b){const _0x16e260=_0x5e5ddf[0x0]['start']['nodeAfter'],_0x39f013=_0x37ec8b['commandParams'][0x0];this['editor']['model']['change'](_0x34b92a=>{for(const _0x36ea21 of _0x47e415)void 0x0!==_0x39f013[_0x36ea21]?_0x34b92a['setAttribute'](_0x36ea21,_0x39f013[_0x36ea21],_0x16e260):_0x34b92a['removeAttribute'](_0x36ea21,_0x16e260);});}['handleSuggestionDescription'](_0xe29dd2){if(_0xe29dd2['data'])switch(_0xe29dd2['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'](_0x390aa5,_0x180c54){const _0x50737b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x56d7ea of _0x50737b['getSuggestions']({'skipNotAttached':!0x0})){const _0x12fda8=_0x56d7ea['getContainedElement']();if(_0x56d7ea['subType']===_0x180c54&&_0x12fda8===_0x390aa5)return _0x56d7ea;}return null;}['_registerTablePropertiesAttributes'](){const _0x594c15=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa58a69=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x33c4c3 of _0xa58a69){const _0x206cb9=_0x33c4c3['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x594c15['registerBlockAttribute'](_0x33c4c3),_0x594c15['descriptionFactory']['registerAttributeLabel'](_0x33c4c3,o(this['editor']['locale'],'FORMAT_'+_0x206cb9));}}}class Lt extends _0x23981b{['afterInit'](){const _0x3c2379=this['editor'];if(!_0x3c2379['plugins']['has']('LineHeight'))return;const _0x461744=_0x3c2379['plugins']['get']('TrackChangesEditing'),_0x1bbaea=_0x3c2379['locale'];_0x461744['enableDefaultAttributesIntegration']('lineHeight'),_0x461744['registerBlockAttribute']('lineHeight'),_0x461744['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1bbaea,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x23981b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x2c44d2,_0x358e81,_0x18ec53,V,F,G,L,J,K,q,W,H,z,Q,X,tt,et,it,nt,st,ot,rt,at,ct,ut,ht,ft,gt,lt,dt,pt,kt,St,mt,Y,Lt,Z,wt,bt,yt,jt,It,At,_t,$t,vt,Ct,Nt,Dt,Mt,Bt,Tt,Pt,Ot,xt,Rt,Gt,Et,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x422edf){super(_0x422edf),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x91ef51,_0x310000,_0x1bc59e,_0x1ec972)=>{this['_model']['change'](()=>{for(const _0x4101d8 of[..._0x1ec972,..._0x1bc59e])this['_model']['markers']['has'](_0x4101d8)&&_0x422edf['editing']['reconvertMarker'](_0x4101d8);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Kt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x422edf['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(),_0x422edf['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x422edf['config']['get']('trackChanges.trackFormatChanges'),_0x422edf['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x422edf['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x422edf,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x24438d=this['editor'],_0x339630=(_0x69b7b,_0x1ad71c)=>{if('attribute'!=_0x69b7b)return'ck-suggestion-marker-'+_0x69b7b;const _0xe3c2bb=_0x1ad71c['split']('|')[0x0];return this['_isBlockAttribute'](_0xe3c2bb)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x24438d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x49221f=>{const {id:_0x1d6996,authorId:_0x1b0746,type:_0x251488,subType:_0x5a32bd}=this['_splitMarkerName'](_0x49221f['markerName']),_0x4e9d6d=['ck-suggestion-marker',_0x339630(_0x251488,_0x5a32bd)];let _0xccc446=0xbb8;return this['activeMarkers']['includes'](_0x49221f['markerName'])&&(_0x4e9d6d['push']('ck-suggestion-marker--active'),_0xccc446=0xbc2),'deletion'==_0x251488&&(_0xccc446+=0x5),{'classes':_0x4e9d6d,'attributes':{'data-suggestion':_0x1d6996,'data-author-id':_0x1b0746},'priority':_0xccc446};}}),_0x24438d['conversion']['for']('dataDowncast')['add'](_0x35c553=>{_0x35c553['on']('addMarker:suggestion',(_0x4f2149,_0x85e7f7,_0x5a7033)=>{if(!_0x5a7033['options']['showSuggestionHighlights'])return;const _0x17a25a=_0x85e7f7['item'];if(!_0x17a25a)return;const _0x53b349=_0x5a7033['mapper']['toViewElement'](_0x17a25a);_0x24438d['model']['schema']['isObject'](_0x17a25a)&&_0x53b349&&!_0x53b349['getCustomProperty']('widget')&&_0x53b349['is']('containerElement')&&_0x463f6c(_0x53b349,_0x5a7033['writer']);},{'priority':'high'});}),_0x24438d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xc89e17,_0x4b2048)=>{if(!_0x4b2048['options']['showSuggestionHighlights'])return null;const {id:_0x41ccdb,authorId:_0x4fb3f,type:_0x40bdbe,subType:_0x117be7}=this['_splitMarkerName'](_0xc89e17['markerName']);return{'classes':['ck-suggestion-marker',_0x339630(_0x40bdbe,_0x117be7)],'priority':0xbb8,'attributes':{'data-suggestion':_0x41ccdb,'data-author-id':_0x4fb3f}};}});const _0x253307=({showActiveMarkers:_0x35fa2f=!0x0,isAttributeSuggestion:_0x5f57ef=!0x1}={})=>(_0x1cb37a,_0x23bb48,_0x483deb)=>{if(!_0x23bb48['item'])return;const {id:_0x1edcc0,authorId:_0x544148,subType:_0x225b09}=this['_splitMarkerName'](_0x23bb48['markerName']);if(_0x5f57ef){const _0x280a26=re(_0x225b09);if(!this['_isBlockAttribute'](_0x280a26))return;}if(_0x23bb48['item']['is']('selection'))return void _0x483deb['consumable']['consume'](_0x23bb48['item'],_0x1cb37a['name']);const _0x11c2a3=_0x483deb['mapper']['toViewElement'](_0x23bb48['item']);if(_0x23bb48['item']['is']('element')&&_0x24438d['model']['schema']['isBlock'](_0x23bb48['item'])&&!_0x11c2a3['getCustomProperty']('addHighlight')){_0x483deb['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x11c2a3),_0x483deb['writer']['setAttribute']('data-suggestion',_0x1edcc0,_0x11c2a3),_0x483deb['writer']['setAttribute']('data-author-id',_0x544148,_0x11c2a3),_0x483deb['mapper']['bindElementToMarker'](_0x11c2a3,_0x23bb48['markerName']),_0x35fa2f&&(this['activeMarkers']['includes'](_0x23bb48['markerName'])?_0x483deb['writer']['addClass']('ck-suggestion-marker--active',_0x11c2a3):_0x483deb['writer']['removeClass']('ck-suggestion-marker--active',_0x11c2a3));for(const _0x12b20c of _0x24438d['model']['createRangeIn'](_0x23bb48['item'])['getItems']())_0x483deb['consumable']['consume'](_0x12b20c,_0x1cb37a['name']);_0x483deb['consumable']['consume'](_0x23bb48['item'],_0x1cb37a['name']);}};_0x24438d['conversion']['for']('dataDowncast')['add'](_0x219aa0=>{_0x219aa0['on']('addMarker:suggestion:formatBlock',(_0x275b11,_0x249714,_0x1ae5d1)=>{_0x1ae5d1['options']['showSuggestionHighlights']&&_0x253307({'showActiveMarkers':!0x1})(_0x275b11,_0x249714,_0x1ae5d1);},{'priority':'highest'});}),_0x24438d['conversion']['for']('dataDowncast')['add'](_0x498be0=>{_0x498be0['on']('addMarker:suggestion:attribute',(_0x45f664,_0x5bfc47,_0x2f959a)=>{_0x2f959a['options']['showSuggestionHighlights']&&_0x253307({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x45f664,_0x5bfc47,_0x2f959a);},{'priority':'highest'});}),_0x24438d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3cd389,_0x8d54a0)=>{if(_0x8d54a0['options']['showSuggestionHighlights']){const {id:_0x21052f,authorId:_0x512951}=this['_splitMarkerName'](_0x3cd389);return _0x3cd389['includes'](':split')||_0x3cd389['includes'](':merge')?{'group':'suggestion','name':_0x3cd389['substr'](0xb),'attributes':{'data-suggestion':_0x21052f,'data-author-id':_0x512951}}:null;}return{'group':'suggestion','name':_0x3cd389['substr'](0xb)};}}),_0x24438d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4b9018,{writer:_0x412921})=>{let _0x43957b='suggestion:'+_0x4b9018['getAttribute']('suggestion-type')+':'+_0x4b9018['getAttribute']('id');return _0x4b9018['getAttribute']('marker-count')&&(_0x43957b+=':'+_0x4b9018['getAttribute']('marker-count')),_0x412921['createElement']('$marker',{'data-name':_0x43957b});}}),_0x24438d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x24438d['conversion']['for']('editingDowncast')['add'](_0x774894=>{_0x774894['on']('addMarker:suggestion:formatBlock',_0x253307(),{'priority':'high'});}),_0x24438d['conversion']['for']('editingDowncast')['add'](_0x1fd5bb=>{_0x1fd5bb['on']('addMarker:suggestion:attribute',_0x253307({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x24438d['conversion']['for']('editingDowncast')['add'](_0x26fa33=>{_0x26fa33['on']('removeMarker:suggestion:formatBlock',(_0x3db634,_0x5631c4,_0xd04164)=>{const _0x490462=_0xd04164['mapper']['markerNameToElements'](_0x5631c4['markerName']);if(_0x490462){for(const _0x21418b of _0x490462)_0x21418b['getCustomProperty']('addHighlight')||(_0xd04164['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x21418b),_0xd04164['writer']['removeAttribute']('data-suggestion',_0x21418b),_0xd04164['writer']['removeAttribute']('data-author-id',_0x21418b),_0xd04164['mapper']['unbindElementFromMarkerName'](_0x21418b,_0x5631c4['markerName']));}},{'priority':'high'});}),_0x24438d['conversion']['for']('editingDowncast')['add'](_0x20fdfc=>{_0x20fdfc['on']('removeMarker:suggestion:attribute',(_0x496e7f,_0x1a4faf,_0x3e7438)=>{const _0x124500=_0x3e7438['mapper']['markerNameToElements'](_0x1a4faf['markerName']);if(!_0x124500)return;const {subType:_0xf6d876}=this['_splitMarkerName'](_0x1a4faf['markerName']),_0x1271dc=re(_0xf6d876);if(this['_isBlockAttribute'](_0x1271dc)){for(const _0x4777f7 of _0x124500)_0x4777f7['getCustomProperty']('addHighlight')||(_0x3e7438['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4777f7),_0x3e7438['writer']['removeAttribute']('data-suggestion',_0x4777f7),_0x3e7438['writer']['removeAttribute']('data-author-id',_0x4777f7),_0x3e7438['mapper']['unbindElementFromMarkerName'](_0x4777f7,_0x1a4faf['markerName']));}},{'priority':'high'});}),_0x24438d['model']['document']['registerPostFixer'](_0x1b0061=>{let _0x3739b4=!0x1;const _0x19bd00=Array['from'](_0x24438d['model']['document']['differ']['getChangedMarkers']()),_0x5b6f8c=new Set();for(const {name:_0x2e1d9a,data:_0xa0c477}of _0x19bd00){const {group:_0xbef1e4,type:_0x12edaa,subType:_0x5fcf2f,id:_0x344552}=this['_splitMarkerName'](_0x2e1d9a);if('suggestion'!==_0xbef1e4)continue;const _0x5ff97f=_0x5fcf2f?'suggestion:'+_0x12edaa+':'+_0x5fcf2f+':'+_0x344552:'suggestion:'+_0x12edaa+':'+_0x344552,_0x49e16=_0x24438d['model']['markers']['getMarkersGroup'](_0x5ff97f),_0x5475eb=_0x24438d['model']['markers']['get'](_0x2e1d9a),_0x5e8d0f=this['_suggestions']['get'](_0x344552);if(null!=_0xa0c477['newRange']){'formatInline'==_0x12edaa&&(_0x3739b4=_0x3739b4||Wt(_0xa0c477['newRange'],_0x2e1d9a,_0x1b0061,_0x24438d['model']['schema']));const _0xa257bd='attribute'==_0x12edaa&&this['_isBlockAttribute'](_0x5fcf2f['split']('|')[0x0]),_0x2ad223='attribute'==_0x12edaa&&this['_isInlineAttribute'](_0x5fcf2f['split']('|')[0x0]);if(_0xa0c477['newRange']['isCollapsed']||'$graveyard'==_0xa0c477['newRange']['root']['rootName']||'formatBlock'==_0x12edaa&&!Qt(_0xa0c477['newRange'])||_0xa257bd&&!Qt(_0xa0c477['newRange'])||_0x2ad223&&Xt(_0xa0c477['newRange'])||'deletion'==_0x12edaa&&Xt(_0xa0c477['newRange'])||_0x5475eb&&Yt(_0x5475eb,_0x49e16))_0x1b0061['removeMarker'](_0x2e1d9a),_0x3739b4=!0x0;else{if(!_0x5e8d0f||!_0x5e8d0f['isInContent'])continue;if(_0xa0c477['newRange']&&_0xa0c477['oldRange']&&_0xa0c477['newRange']['isEqual'](_0xa0c477['oldRange']))continue;_0x5b6f8c['add'](_0x5e8d0f);}}}return _0x5b6f8c['size']>0x0&&(_0x3739b4=!!this['_joinWithAdjacentSuggestions'](_0x5b6f8c)||_0x3739b4),_0x3739b4;}),_0x24438d['model']['document']['registerPostFixer'](_0x3e2136=>{let _0x54d053=!0x1;for(const _0x150027 of _0x24438d['model']['document']['differ']['getChanges']())if('insert'==_0x150027['type'])for(const _0x56220d of this['_suggestions']['values']()){if(_0x56220d['isMultiRange']||!_0x56220d['isInContent'])continue;const _0xc6c438='formatBlock'==_0x56220d['type'],_0x38d785=this['_getAttributeKey'](_0x56220d),_0x3ec6bc=_0x38d785&&this['_isBlockAttribute'](_0x38d785);if(!_0xc6c438&&!_0x3ec6bc)continue;const _0x3e16c7=_0x56220d['getFirstRange']();if(_0x3e16c7['start']['parent']!=_0x3e16c7['end']['parent']&&!_0x3e16c7['end']['isAtEnd']){const _0x2d4161=_0x24438d['model']['createPositionAt'](_0x3e16c7['start']['nodeAfter'],'end'),_0x3e0b1d=_0x24438d['model']['createRange'](_0x3e16c7['start'],_0x2d4161);_0x3e2136['updateMarker'](_0x56220d['getFirstMarker'](),{'range':_0x3e0b1d}),_0x54d053=!0x0;}}return _0x54d053;}),_0x24438d['model']['document']['registerPostFixer'](_0x29b20d=>this['_processAttributeChanges'](_0x29b20d)),_0x24438d['model']['document']['registerPostFixer'](_0x1ec212=>!_0x1ec212['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1ec212)),_0x24438d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x24438d['model']['document']['on']('change:data',(_0x688414,_0x1ee7a7)=>{if(!_0x1ee7a7['isLocal']||_0x1ee7a7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3aa10d=_0x24438d['model']['document']['differ']['getChanges']();if(0x0==_0x3aa10d['length'])return;const _0x2d04f0=[],_0x177967=_0x3aa10d['filter'](_0x422703=>'attribute'==_0x422703['type']),_0x3e8649=_0x3aa10d['filter'](_0x402b14=>'insert'==_0x402b14['type']&&'$text'!=_0x402b14['name']);for(const _0x2a34c0 of _0x177967)this['_isRegisteredAttribute'](_0x2a34c0['attributeKey'])&&_0x2d04f0['push']({'key':_0x2a34c0['attributeKey'],'newValue':_0x2a34c0['attributeNewValue'],'oldValue':_0x2a34c0['attributeOldValue'],'range':te(_0x2a34c0['range'],_0x24438d['model'])});for(const _0x37590e of _0x3e8649){if('rename'!=_0x37590e['action']&&'refresh'!=_0x37590e['action'])continue;const _0x3a05a2=ee(_0x37590e['position']['nodeAfter'],_0x24438d['model']),_0x6e004a=_0x37590e['before'];'rename'==_0x37590e['action']&&_0x2d04f0['push']({'key':m,'newValue':_0x37590e['name'],'oldValue':_0x6e004a['name'],'range':_0x3a05a2});for(const [_0x3b8f8c,_0x7f8d95]of _0x6e004a['attributes']){if(!this['_isRegisteredAttribute'](_0x3b8f8c))continue;const _0x2368e6=_0x37590e['attributes']['get'](_0x3b8f8c);_0x7f8d95!==_0x2368e6&&_0x2d04f0['push']({'key':_0x3b8f8c,'newValue':_0x2368e6,'oldValue':_0x7f8d95,'range':_0x3a05a2});}for(const [_0x426575,_0x37b2f5]of _0x37590e['attributes'])this['_isRegisteredAttribute'](_0x426575)&&(_0x6e004a['attributes']['has'](_0x426575)||_0x2d04f0['push']({'key':_0x426575,'newValue':_0x37b2f5,'oldValue':null,'range':_0x3a05a2}));}0x0!=_0x2d04f0['length']&&_0x24438d['model']['enqueueChange'](_0x1ee7a7,_0x29afb1=>{const _0x16eeac=_0x59254f();for(const {range:_0x1b841f,key:_0x502d90,oldValue:_0x53bee5,newValue:_0x220e27}of _0x2d04f0)this['markAttributeChange'](_0x1b841f,_0x502d90,_0x53bee5,_0x220e27,{'groupId':_0x16eeac});this['_reduceExistingSuggestions'](_0x29afb1,_0x2d04f0);});},{'priority':'lowest'}),_0x24438d['model']['markers']['on']('update:suggestion',(_0x17275b,_0x183f90,_0x4dee7a)=>{if(null==_0x4dee7a){const {id:_0x55edc4}=this['_splitMarkerName'](_0x183f90['name']),_0x82bfd2=this['_suggestions']['get'](_0x55edc4);_0x82bfd2&&_0x82bfd2['addMarkerName'](_0x183f90['name']);}}),_0x24438d['model']['document']['on']('change:data',()=>{const _0x2d27ce=Array['from'](_0x24438d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x44d7e3=>'suggestion'===this['_splitMarkerName'](_0x44d7e3['name'])['group']);if(0x0===_0x2d27ce['length'])return;_0x2d27ce['sort']((_0x568079,_0x2060fd)=>{const _0x47309=_0x568079['data']['oldRange'],_0x52d89e=_0x2060fd['data']['oldRange'];return null===_0x47309&&null===_0x52d89e?0x0:null===_0x47309&&null!==_0x52d89e?-0x1:null!==_0x47309&&null===_0x52d89e?0x1:_0x47309['start']['isBefore'](_0x52d89e['start'])?-0x1:0x1;});const _0x55a7c3=new Set(),_0x568ca5=new Set();for(const {name:_0x41deb5,data:_0x47e7c4}of _0x2d27ce){const {id:_0x949027}=this['_splitMarkerName'](_0x41deb5);if(null===_0x47e7c4['oldRange']){const _0xf92c8c=this['_handleNewSuggestionMarker'](_0x41deb5);_0x568ca5['add'](_0xf92c8c);}else{const _0x20202f=this['_suggestions']['get'](_0x949027);null!==_0x47e7c4['newRange']||_0x20202f['isInContent']?(_0x55a7c3['add'](_0x20202f['head']),_0x568ca5['add'](_0x20202f)):this['_removeSuggestion'](_0x20202f);}}_0x568ca5['size']>0x0&&this['_refreshSuggestionsChain'](_0x568ca5);for(const _0x20a705 of _0x55a7c3)this['fire']('suggestionChanged',_0x20a705);}),_0x24438d['model']['on']('applyOperation',(_0x368e10,_0x53b049)=>{const _0x50155b=_0x53b049[0x0];if(!this['_suggestions']['size'])return;if(!_0x50155b['isDocumentOperation'])return;if(_0x50155b['batch']['isUndo']||!_0x50155b['batch']['isLocal'])return;let _0xedb227,_0x29d2be;switch(_0x50155b['type']){case'insert':_0xedb227=_0x24438d['model']['createPositionAt'](_0x50155b['position']),_0x29d2be=_0xedb227['getShiftedBy'](_0x50155b['howMany']);break;case'split':_0xedb227=_0x24438d['model']['createPositionAt'](_0x50155b['splitPosition']),_0x29d2be=_0x24438d['model']['createPositionAt'](_0x50155b['moveTargetPosition']);break;case'move':_0xedb227=_0x24438d['model']['createPositionAt'](_0x50155b['targetPosition']),_0x29d2be=_0xedb227['getShiftedBy'](_0x50155b['howMany']);break;default:return;}const _0x309962=_0x24438d['model']['createRange'](_0xedb227,_0x29d2be);_0x24438d['model']['change'](()=>{for(const {suggestion:_0x253ab9,meta:_0x162e13}of this['_findSuggestions'](_0x309962)){if(_0x253ab9['isMultiRange'])continue;if('formatInline'==_0x253ab9['type'])continue;const _0x3f4f57=this['_getAttributeKey'](_0x253ab9);if(_0x3f4f57&&this['_isBlockAttribute'](_0x3f4f57)&&'split'!=_0x50155b['type'])continue;const _0x233916=_0x253ab9['data']&&_0x253ab9['data']['multipleBlocks'];('formatBlock'!=_0x253ab9['type']||'split'==_0x50155b['type']&&!_0x233916)&&(_0x162e13['containsRangeInObject']||'insertion'==_0x253ab9['type']&&_0x162e13['isOwn']||_0x253ab9['getFirstRange']()['containsRange'](_0x309962)&&this['_breakSuggestionMarker'](_0x253ab9,_0xedb227,_0x29d2be));}});},{'priority':'lowest'}),_0x24438d['model']['on']('deleteContent',(_0x299b2e,_0x37586e)=>{const _0x270071=_0x37586e[0x0],_0x52ec17=_0x37586e[0x1];if(_0x52ec17&&_0x52ec17['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x270071['isCollapsed'])return;const _0x1008b9=_0x24438d['model']['schema'],{start:_0x538907,end:_0x5470a9}=_0x270071['getFirstRange'](),_0x2a45c2=_0x538907['nodeAfter']&&_0x1008b9['isLimit'](_0x538907['nodeAfter'])?null:_0x1008b9['getNearestSelectionRange'](_0x538907,'forward'),_0x395bf8=_0x5470a9['nodeBefore']&&_0x1008b9['isLimit'](_0x5470a9['nodeBefore'])?null:_0x1008b9['getNearestSelectionRange'](_0x5470a9,'backward'),_0x25970f=_0x24438d['model']['createRange'](_0x2a45c2?_0x2a45c2['start']:_0x538907,_0x395bf8?_0x395bf8['end']:_0x5470a9);_0x24438d['model']['change'](_0x222456=>{this['markDeletion'](_0x25970f);const _0x43358d=_0x24438d['model']['schema']['getNearestSelectionRange'](_0x25970f['start']);_0x270071['is']('documentSelection')?_0x222456['setSelection'](_0x43358d):_0x270071['setTo'](_0x43358d);}),_0x299b2e['stop']();},{'priority':_0xc47c1d['normal']+0xa}),_0x24438d['model']['on']('insertContent',(_0xf2a546,_0x251694)=>{const _0x480aa0=_0x251694[_0x251694['length']-0x1];_0x480aa0&&_0x480aa0['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x24438d['model']['change'](()=>{let _0x3e7b3e=_0x24438d['model']['insertContent'](_0x251694[0x0],_0x251694[0x1],_0x251694[0x2],{'forceDefaultExecution':!0x0});if(!_0x3e7b3e)return;_0xf2a546['return']=_0x3e7b3e['clone']();const _0x208e9d=_0x3e7b3e['end']['nodeBefore'],_0x5ddec6=_0x24438d['model']['schema'];_0x208e9d&&_0x5ddec6['isBlock'](_0x208e9d)&&!_0x5ddec6['isObject'](_0x208e9d)&&(_0x3e7b3e=_0x24438d['model']['createRange'](_0x3e7b3e['start'],_0x24438d['model']['createPositionAt'](_0x208e9d,'end'))),this['markInsertion'](_0x3e7b3e);}),_0xf2a546['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x33503f=new T(_0x24438d,this['_suggestions']);_0x24438d['commands']['add']('acceptSuggestion',_0x33503f),this['enableCommand']('acceptSuggestion');const _0x324637=new O(_0x24438d,this['_suggestions']);_0x24438d['commands']['add']('discardSuggestion',_0x324637),this['enableCommand']('discardSuggestion'),_0x24438d['commands']['add']('acceptAllSuggestions',new x(_0x24438d,_0x33503f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x24438d['commands']['add']('discardAllSuggestions',new x(_0x24438d,_0x324637,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x24438d['commands']['add']('acceptSelectedSuggestions',new E(_0x24438d,_0x33503f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x24438d['commands']['add']('discardSelectedSuggestions',new E(_0x24438d,_0x324637,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x11bf9e=_0x24438d['plugins']['get']('CommentsRepository');this['listenTo'](_0x11bf9e,'addComment',(_0x7a0985,{threadId:_0x42e719})=>{const _0x4dc5af=this['_suggestions']['get'](_0x42e719);_0x4dc5af&&_0x4dc5af['commentThread']&&0x1===_0x4dc5af['commentThread']['length']&&this['_updateSuggestionData'](_0x42e719,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x11bf9e,'removeComment',(_0x5dad05,{threadId:_0x39aa1a})=>{const _0x42ea58=this['_suggestions']['get'](_0x39aa1a);_0x42ea58&&_0x42ea58['commentThread']&&!_0x42ea58['commentThread']['length']&&this['_updateSuggestionData'](_0x39aa1a,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xe55bdb){const _0x2cce55=_0x4fb73a([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]),_0x30bfbb=0x6b0f5e6f,_0x4a9cf1=0x6b082a9f^_0x30bfbb,_0xc943d9=window[_0x4fb73a([0x44,0x61,0x74,0x65])][_0x4fb73a([0x6e,0x6f,0x77])](),_0x17a59f=_0xe55bdb[_0x4fb73a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x400316=new window[(_0x4fb73a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x199aeb=>{_0x17a59f[_0x4fb73a([0x6f,0x6e,0x63,0x65])](_0x4fb73a([0x72,0x65,0x61,0x64,0x79]),_0x199aeb);}),_0x1e7581={[_0x4fb73a([0x6b,0x74,0x79])]:_0x4fb73a([0x45,0x43]),[_0x4fb73a([0x75,0x73,0x65])]:_0x4fb73a([0x73,0x69,0x67]),[_0x4fb73a([0x63,0x72,0x76])]:_0x4fb73a([0x50,0x2d,0x32,0x35,0x36]),[_0x4fb73a([0x78])]:_0x4fb73a([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]),[_0x4fb73a([0x79])]:_0x4fb73a([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]),[_0x4fb73a([0x61,0x6c,0x67])]:_0x4fb73a([0x45,0x53,0x32,0x35,0x36])},_0x444f36=_0x17a59f[_0x4fb73a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4fb73a([0x67,0x65,0x74])](_0x4fb73a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x598b42(){let _0xb8eed9,_0x584968=null,_0x2e4343=null;try{if(_0x444f36==_0x4fb73a([0x47,0x50,0x4c]))return _0x4fb73a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xb8eed9=_0x5ec0ab(),!_0xb8eed9)return _0x4fb73a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xb8eed9[_0x4fb73a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e4343=_0x4edc27(_0xb8eed9[_0x4fb73a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xb8eed9[_0x4fb73a([0x6a,0x74,0x69])])),await _0x5b7ef7()?_0x418b5d()?_0x5d23a2()?_0x4fb73a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e56a2()?(_0xb8eed9[_0x4fb73a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4fb73a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x584968=_0x5482ca(_0x4fb73a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xb8eed9[_0x4fb73a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4fb73a([0x74,0x72,0x69,0x61,0x6c])&&(_0x584968=_0x5482ca(_0x4fb73a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x26874b()):_0x4fb73a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4fb73a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4fb73a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4fb73a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d23a2(){const _0x3fc539=[_0x4fb73a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4fb73a([0x74,0x72,0x69,0x61,0x6c])][_0x4fb73a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb8eed9[_0x4fb73a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc943d9/0x3e8:0xe10*_0x4a9cf1;return _0xb8eed9[_0x4fb73a([0x65,0x78,0x70])]<_0x3fc539;}function _0x418b5d(){const _0x40a5fe=_0xb8eed9[_0x4fb73a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x40a5fe)return!0x1;if(_0x40a5fe[_0x4fb73a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fb73a([0x2a])))return!0x0;if(_0x40a5fe[_0x4fb73a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fb73a([0x54,0x43])))return!0x0;if(_0x40a5fe[_0x4fb73a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fb73a([0x52,0x54,0x43]))){if(_0x1485ae())return!0x0;if(_0x38ea88()||_0x5eb731())return!0x0;}return!0x1;}function _0x5e56a2(){const _0x4fca34=_0xb8eed9[_0x4fb73a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4fca34||0x0==_0x4fca34[_0x4fb73a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a9ce2}=new URL(window[_0x4fb73a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4fca34[_0x4fb73a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a9ce2))return!0x0;const _0x36fe5f=_0x1a9ce2[_0x4fb73a([0x73,0x70,0x6c,0x69,0x74])](_0x4fb73a([0x2e]));return _0x4fca34[_0x4fb73a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2229e4=>_0x2229e4[_0x4fb73a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fb73a([0x2a])))[_0x4fb73a([0x6d,0x61,0x70])](_0x336549=>_0x336549[_0x4fb73a([0x73,0x70,0x6c,0x69,0x74])](_0x4fb73a([0x2e])))[_0x4fb73a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f9770=>_0x2f9770[_0x4fb73a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x36fe5f[_0x4fb73a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4fb73a([0x6d,0x61,0x70])](_0x4c759d=>Array(_0x36fe5f[_0x4fb73a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4c759d[_0x4fb73a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4fb73a([0x66,0x69,0x6c,0x6c])](_0x4c759d[0x0]===_0x4fb73a([0x2a])?_0x4fb73a([0x2a]):'')[_0x4fb73a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4c759d))[_0x4fb73a([0x73,0x6f,0x6d,0x65])](_0x2c4111=>_0x36fe5f[_0x4fb73a([0x65,0x76,0x65,0x72,0x79])]((_0x2b7f83,_0xc3ffbb)=>_0x2c4111[_0xc3ffbb]===_0x2b7f83||_0x2c4111[_0xc3ffbb]===_0x4fb73a([0x2a])));}function _0x26874b(){return _0x584968&&_0x2e4343?new window[(_0x4fb73a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c0ed9,_0x1171c4)=>{_0x584968[_0x4fb73a([0x74,0x68,0x65,0x6e])](_0x1c0ed9,_0x1171c4),_0x2e4343[_0x4fb73a([0x74,0x68,0x65,0x6e])](_0x36d81a=>{_0x36d81a!=_0x4fb73a([0x56,0x61,0x6c,0x69,0x64])&&_0x1c0ed9(_0x36d81a);},_0x1171c4);}):_0x584968||_0x2e4343||_0x4fb73a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4edc27(_0x5764c8,_0x5177d1){return new window[(_0x4fb73a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x321ff5=>{if(_0x168182())return _0x321ff5(_0x4fb73a([0x56,0x61,0x6c,0x69,0x64]));_0x8ab123(),_0x17a59f[_0x4fb73a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4fb73a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x35aad4=!0x1;const _0x3e7258=_0x59254f();function _0x5017cf(_0x4241c1){return!!_0x4241c1&&(typeof _0x4241c1===_0x4fb73a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4241c1===_0x4fb73a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4241c1[_0x4fb73a([0x74,0x68,0x65,0x6e])]===_0x4fb73a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4241c1[_0x4fb73a([0x63,0x61,0x74,0x63,0x68])]===_0x4fb73a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1cf589(_0x318d95){_0x2c6a63(_0x318d95)[_0x4fb73a([0x74,0x68,0x65,0x6e])](_0xe2b95a=>{if(!_0xe2b95a||_0xe2b95a[_0x4fb73a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4fb73a([0x6f,0x6b]))return _0x4fb73a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x524154(_0x5d6311(_0x3e7258+_0x5177d1))!=_0xe2b95a[_0x4fb73a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4fb73a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4fb73a([0x56,0x61,0x6c,0x69,0x64]);})[_0x4fb73a([0x74,0x68,0x65,0x6e])](_0x290641=>(_0x238759(),_0x290641),()=>{const _0x54536e=_0x10caaa();return null==_0x54536e?(_0x238759(),_0x4fb73a([0x56,0x61,0x6c,0x69,0x64])):_0x4fb73a(_0xc943d9-_0x54536e>(0x4f03da6f^_0x30bfbb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4fb73a([0x74,0x68,0x65,0x6e])](_0x321ff5)[_0x4fb73a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x321ff5(_0x4fb73a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xa1625e=0x6b39b0ef^_0x30bfbb;function _0x238759(){const _0x27072d=_0x4fb73a([0x6c,0x6c,0x63,0x74,0x2d])+_0x524154(_0x5d6311(_0x5764c8)),_0x4753e7=_0x44c3f2(_0x524154(window[_0x4fb73a([0x4d,0x61,0x74,0x68])][_0x4fb73a([0x63,0x65,0x69,0x6c])](_0xc943d9/_0xa1625e)));window[_0x4fb73a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4fb73a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27072d,_0x4753e7);}function _0x10caaa(){const _0x4e64ce=_0x4fb73a([0x6c,0x6c,0x63,0x74,0x2d])+_0x524154(_0x5d6311(_0x5764c8)),_0x3f2790=window[_0x4fb73a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4fb73a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e64ce);return _0x3f2790?window[_0x4fb73a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44c3f2(_0x3f2790),0x10)*_0xa1625e:null;}function _0x2c6a63(_0x396003){return new window[(_0x4fb73a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b0f25,_0x266486)=>{_0x396003[_0x4fb73a([0x74,0x68,0x65,0x6e])](_0x1b0f25,_0x266486),window[_0x4fb73a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x266486,0x6b0e8aaf^_0x30bfbb);});}}_0x17a59f[_0x4fb73a([0x6f,0x6e])](_0x4fb73a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f5912,_0x139410)=>{if(_0x139410[0x0]!=_0x5764c8)return _0x321ff5(_0x4fb73a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x139410[0x1]={..._0x139410[0x1],[_0x4fb73a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e7258};},{[_0x4fb73a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4fb73a([0x68,0x69,0x67,0x68])}),_0x17a59f[_0x4fb73a([0x6f,0x6e])](_0x4fb73a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13be51=>{_0x5017cf(_0x13be51[_0x4fb73a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x35aad4=!0x0,_0x1cf589(_0x13be51[_0x4fb73a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4fb73a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4fb73a([0x6c,0x6f,0x77])}),_0x400316[_0x4fb73a([0x74,0x68,0x65,0x6e])](()=>{_0x35aad4||_0x321ff5(_0x4fb73a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x168182(){return _0x17a59f[_0x4fb73a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4fb73a([0x76,0x69,0x65,0x77])][_0x4fb73a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4fb73a([0x61,0x75,0x74,0x6f]);}function _0x8ab123(){_0x17a59f[_0x4fb73a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4fb73a([0x76,0x69,0x65,0x77])][_0x4fb73a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4fb73a([0x61,0x75,0x74,0x6f]);}}function _0x5482ca(_0x21459b){const _0x23399c=[new window[(_0x4fb73a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x259cab=>setTimeout(_0x259cab,0x6b0660a3^_0x30bfbb)),_0x400316[_0x4fb73a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4fb73a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ac408=>{let _0x501f7e=0x0;_0x17a59f[_0x4fb73a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4fb73a([0x6f,0x6e])](_0x4fb73a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x241963,_0x4f61b2)=>{_0x4f61b2[0x0][_0x4fb73a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x501f7e++,_0x501f7e==(0x6b0f5f97^_0x30bfbb)&&(_0x4ac408(),_0x241963[_0x4fb73a([0x6f,0x66,0x66])]());});}))];return window[_0x4fb73a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4fb73a([0x72,0x61,0x63,0x65])](_0x23399c)[_0x4fb73a([0x74,0x68,0x65,0x6e])](()=>_0x21459b);}async function _0x15592c(){await _0x400316,_0x17a59f[_0x4fb73a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4fb73a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10e435,_0x17a59f[_0x4fb73a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4fb73a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10e435,_0x17a59f[_0x4fb73a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4fb73a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1485ae(){return _0x597637(_0x4fb73a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4cd391(_0x4fb73a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4fb73a([0x73,0x74,0x61,0x74,0x65])]==_0x4fb73a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x38ea88(){return _0x597637(_0x4fb73a([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 _0x5eb731(){return _0x597637(_0x4fb73a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5a235d(_0x1ec3e5){const _0x52fcc4=_0x1bc785();_0x17a59f[_0x52fcc4]=_0x4fb73a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1ec3e5,_0x1ec3e5!=_0x4fb73a([0x56,0x61,0x6c,0x69,0x64])&&_0x15592c();}function _0x1bc785(){const _0x517385=window[_0x4fb73a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4fb73a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4fb73a([0x6e,0x6f,0x77])]())[_0x4fb73a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4fb73a([0x2e]),'');let _0x1e8d9d=_0x4fb73a([0x67]);for(let _0x3aae75=0x0;_0x3aae75<_0x517385[_0x4fb73a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3aae75+=0x2){let _0x76889b=window[_0x4fb73a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x517385[_0x4fb73a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3aae75,_0x3aae75+0x2));_0x76889b>=_0x2cce55[_0x4fb73a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x76889b-=_0x2cce55[_0x4fb73a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e8d9d+=_0x2cce55[_0x76889b];}return _0x1e8d9d;}function _0x5ec0ab(){const _0x4c49c2=_0x444f36[_0x4fb73a([0x73,0x70,0x6c,0x69,0x74])](_0x4fb73a([0x2e]));if(0x3!=_0x4c49c2[_0x4fb73a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x42afa7(_0x4c49c2[0x1]);function _0x42afa7(_0x3ef250){const _0x531867=_0xdb2083(_0x3ef250);return _0x531867&&_0xda7d2()?_0x531867:null;function _0xda7d2(){const _0x2415a8=_0x531867[_0x4fb73a([0x6a,0x74,0x69])],_0x217eeb=window[_0x4fb73a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2415a8[_0x4fb73a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2415a8[_0x4fb73a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5892eb={..._0x531867,[_0x4fb73a([0x6a,0x74,0x69])]:_0x2415a8[_0x4fb73a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2415a8[_0x4fb73a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5892eb[_0x4fb73a([0x76,0x63])],_0x5d6311(_0x5892eb)==_0x217eeb;}}}async function _0x5b7ef7(){let _0x292888=!0x0;try{const _0x150194=_0x444f36[_0x4fb73a([0x73,0x70,0x6c,0x69,0x74])](_0x4fb73a([0x2e])),[_0x65a448,_0x3308b1,_0x20bf50]=_0x150194;return _0x520ca3(_0x65a448),await _0x2d7ec0(_0x65a448,_0x3308b1,_0x20bf50),_0x292888;}catch{return!0x1;}function _0x520ca3(_0x196476){const _0x56881c=_0xdb2083(_0x196476);_0x56881c&&_0x56881c[_0x4fb73a([0x61,0x6c,0x67])]==_0x4fb73a([0x45,0x53,0x32,0x35,0x36])||(_0x292888=!0x1);}async function _0x2d7ec0(_0x5744c0,_0xcf6039,_0x92ca91){const _0x409cff=window[_0x4fb73a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4fb73a([0x66,0x72,0x6f,0x6d])](_0x409fa3(_0x92ca91),_0x30ef5d=>_0x30ef5d[_0x4fb73a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c8405=new window[(_0x4fb73a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4fb73a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5744c0+_0x4fb73a([0x2e])+_0xcf6039),_0x258971=window[_0x4fb73a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4fb73a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x258971)return;const _0x3d2544=await _0x258971[_0x4fb73a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4fb73a([0x6a,0x77,0x6b]),_0x1e7581,{[_0x4fb73a([0x6e,0x61,0x6d,0x65])]:_0x4fb73a([0x45,0x43,0x44,0x53,0x41]),[_0x4fb73a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4fb73a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4fb73a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x258971[_0x4fb73a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4fb73a([0x6e,0x61,0x6d,0x65])]:_0x4fb73a([0x45,0x43,0x44,0x53,0x41]),[_0x4fb73a([0x68,0x61,0x73,0x68])]:{[_0x4fb73a([0x6e,0x61,0x6d,0x65])]:_0x4fb73a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d2544,_0x409cff,_0x1c8405)||(_0x292888=!0x1);}}function _0xdb2083(_0x52124b){return _0x52124b[_0x4fb73a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4fb73a([0x65,0x79]))?JSON[_0x4fb73a([0x70,0x61,0x72,0x73,0x65])](_0x409fa3(_0x52124b)):null;}function _0x409fa3(_0x4b6545){return window[_0x4fb73a([0x61,0x74,0x6f,0x62])](_0x4b6545[_0x4fb73a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4fb73a([0x2b]))[_0x4fb73a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4fb73a([0x2f])));}function _0x5d6311(_0x35840e){let _0x1b2280=0x1505;function _0x471c5d(_0x286c6b){for(let _0x4cd88f=0x0;_0x4cd88f<_0x286c6b[_0x4fb73a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cd88f++){const _0x32c534=_0x286c6b[_0x4fb73a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4cd88f);_0x1b2280=(_0x1b2280<<0x5)+_0x1b2280+_0x32c534,_0x1b2280&=_0x1b2280;}}function _0x5f262c(_0x5e9db5){Array[_0x4fb73a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5e9db5)?_0x5e9db5[_0x4fb73a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5f262c):_0x5e9db5&&typeof _0x5e9db5==_0x4fb73a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4fb73a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5e9db5)[_0x4fb73a([0x73,0x6f,0x72,0x74])]()[_0x4fb73a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x295a37,_0x2ab9df])=>{_0x471c5d(_0x295a37),_0x5f262c(_0x2ab9df);}):_0x471c5d(window[_0x4fb73a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5e9db5));}return _0x5f262c(_0x35840e),_0x1b2280>>>0x0;}function _0x524154(_0x3fbc92){return _0x3fbc92[_0x4fb73a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4fb73a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4fb73a([0x30]));}function _0x44c3f2(_0x5748f){return _0x5748f[_0x4fb73a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4fb73a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4fb73a([0x6a,0x6f,0x69,0x6e])]('');}function _0x597637(_0x45714b){return _0x17a59f[_0x4fb73a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4fb73a([0x68,0x61,0x73])](_0x45714b);}function _0x4cd391(_0x115fa1){return _0x17a59f[_0x4fb73a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4fb73a([0x67,0x65,0x74])](_0x115fa1);}function _0x10e435(){}function _0x4fb73a(_0x2127e0){return _0x2127e0['map'](_0x17d1eb=>String['fromCharCode'](_0x17d1eb))['join']('');}_0x5a235d(await _0x598b42());}(this);}set['adapter'](_0x3ce372){if(this['_adapter'])throw new _0x48c4b8('track-changes-adapter-already-set',this);this['_adapter']=_0x3ce372;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5ca935=!0x1,toJSON:_0x27a8aa=!0x1}={}){const _0x2fa8b6=[];for(const _0x10e616 of this['_suggestions']['values']())_0x5ca935&&!_0x10e616['isInContent']||_0x2fa8b6['push'](_0x10e616);return _0x27a8aa?_0x2fa8b6['map'](_0xb061b7=>_0xb061b7['toJSON']()):_0x2fa8b6;}['getSuggestion'](_0x59e67b){const _0x2c124f=this['_suggestions']['get'](_0x59e67b);if(!_0x2c124f)throw new _0x48c4b8('track-changes-suggestion-not-found',this);return _0x2c124f;}['hasSuggestion'](_0x33062c){return this['_suggestions']['has'](_0x33062c);}['addSuggestionData'](_0x135b7f){const {authorId:_0x3a7d29,id:_0x17bce9,originalSuggestionId:_0x13837a,attributes:_0x303cf3}=_0x135b7f,[_0x546390,_0x1df6ae]=_0x135b7f['type']['split'](':'),_0x3a81c5=this['_suggestions']['get'](_0x17bce9)||this['_createSuggestion'](_0x546390,_0x1df6ae,_0x17bce9,_0x3a7d29,_0x303cf3,_0x13837a);if(this['_addThreadToSuggestion'](_0x3a81c5),this['_checkSuggestionCorrectness'](_0x3a81c5,_0x546390,_0x1df6ae||null,_0x3a7d29),_0x3a81c5['createdAt']=_0x135b7f['createdAt'],_0x3a81c5['_isDataLoaded']=!0x0,_0x303cf3&&_0x303cf3['@external']){const _0xaa0252=_0x303cf3['@external'],_0x7f4345=this['_getExternalAuthor'](_0xaa0252['authorName']);_0x3a81c5['authoredAt']=_0xaa0252['createdAt'],_0x3a81c5['author']=_0x7f4345,_0x3a81c5['isExternal']=!0x0;}else _0x3a81c5['authoredAt']=_0x135b7f['createdAt'];switch(_0x135b7f['data']&&(_0x3a81c5['data']=_0x135b7f['data']),_0x135b7f['attributes']&&(_0x3a81c5['attributes']=_0x135b7f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3a81c5['_saved']=!0x0),this['_suggestionState']['get'](_0x3a81c5)){case'notReady':this['_suggestionState']['set'](_0x3a81c5,'dataReady');break;case'markerReady':_0x3a81c5['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3a81c5])),this['_refreshSuggestionsChain'](new Set([_0x3a81c5])),this['_suggestionState']['set'](_0x3a81c5,'ready'),this['fire']('suggestionLoaded',_0x3a81c5)):this['_suggestionState']['set'](_0x3a81c5,'removed');}return _0x3a81c5;}['acceptSuggestion'](_0x5bdd93){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x569a7e of _0x5bdd93['getAllAdjacentSuggestions']())_0x569a7e['accept']();});});}['discardSuggestion'](_0x28c251){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x36a520 of _0x28c251['getAllAdjacentSuggestions']())_0x36a520['discard']();});});}['enableCommand'](_0x29465e,_0x9c613){const _0x34b5ed=this['editor']['commands']['get'](_0x29465e);if(!_0x34b5ed)throw new _0x48c4b8('track-changes-command-not-found',this,{'commandName':_0x29465e});if(this['_enabledCommands']['has'](_0x34b5ed))throw new _0x48c4b8('track-changes-enable-command-twice',this,{'commandName':_0x29465e});this['_enabledCommands']['add'](_0x34b5ed),_0x9c613&&_0x34b5ed['on']('execute',(_0x413309,_0x422cd8)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x422cd8['length']>0x0&&_0x422cd8[_0x422cd8['length']-0x1]&&_0x422cd8[_0x422cd8['length']-0x1]['forceDefaultExecution']?_0x422cd8['pop']():(_0x413309['return']=_0x9c613((..._0x2cf8d3)=>_0x34b5ed['execute'](..._0x2cf8d3,{'forceDefaultExecution':!0x0}),..._0x422cd8),_0x413309['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5d1e2b){let _0x4143d4,_0x4cbf2f;const _0x285ac4=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4143d4=_0x5d1e2b();}catch(_0x315cd3){_0x4cbf2f=_0x315cd3;}return _0x285ac4||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4cbf2f&&_0x48c4b8['rethrowUnexpectedError'](_0x4cbf2f,this),_0x4143d4;}['markInsertion'](_0x4829b4,_0x2db6c6=null,_0x39f693={}){if(_0x4829b4['isCollapsed'])return null;const _0x13656d=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x39f693['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x907720,meta:_0x5457a}of this['_findSuggestions'](_0x4829b4,'insertion'))if(_0x5457a['isOwn']){if(!_0x5457a['isNextTo']){if(_0x5457a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!se(_0x907720,_0x39f693))continue;return _0x907720;}if(se(_0x907720,_0x39f693))return _0x907720;this['_breakSuggestionMarker'](_0x907720,_0x4829b4['start'],_0x4829b4['end']);break;}if(_0x2db6c6==_0x907720['subType']&&se(_0x907720,_0x39f693)){const _0x264f5c=_0x907720['getFirstRange']();return _0x264f5c['start']['isEqual'](_0x4829b4['end'])?this['_setSuggestionRange'](_0x907720,this['_model']['createRange'](_0x4829b4['start'],_0x264f5c['end'])):this['_setSuggestionRange'](_0x907720,this['_model']['createRange'](_0x264f5c['start'],_0x4829b4['end'])),_0x907720;}}const _0x55986f=_0x59254f(),_0x117252=_0x13656d['id'],_0x237431=_0x2db6c6?'insertion:'+_0x2db6c6:'insertion',_0x3375f5=this['_setSuggestionData']({'id':_0x55986f,'type':_0x237431,'createdAt':new Date(),'authorId':_0x117252,'attributes':_0x39f693});return this['_addSuggestionMarker'](_0x237431,_0x55986f,_0x117252,_0x4829b4),_0x3375f5;}['markMultiRangeInsertion'](_0x18aad5,_0x2958c0='multi',_0x332d0b={}){const _0xacd709=this['editor']['plugins']['get']('Users')['me'],_0x1ecfb5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2958c0,'join');this['_trackingSessionId']&&(_0x332d0b['trackingSessionId']=this['_trackingSessionId']);for(const _0x3ade6c of this['getSuggestions']())if(_0x3ade6c['author']['id']==_0xacd709['id']&&'insertion'==_0x3ade6c['type']&&_0x3ade6c['subType']==_0x2958c0&&se(_0x3ade6c,_0x332d0b)&&(_0x1ecfb5(_0x3ade6c['getRanges'](),_0x18aad5)||_0x1ecfb5(_0x18aad5,_0x3ade6c['getRanges']()))){for(const _0x404dbe of _0x18aad5)_0x3ade6c['addRange'](_0x404dbe);return _0x3ade6c;}for(const {suggestion:_0x3aded3,meta:_0x3a65ad}of this['_findSuggestions'](_0x18aad5,'insertion')){if(!_0x3a65ad['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3a65ad['containsRangeInObject'])continue;if(!se(_0x3aded3,_0x332d0b))continue;let _0x41fb5a=!0x0;for(const _0x3605ea of _0x3aded3['getRanges']())for(const _0x2a200f of _0x18aad5)if(!_0x3605ea['containsRange'](_0x2a200f)){_0x41fb5a=!0x1;break;}if(_0x41fb5a)return _0x3aded3;}const _0x2a5975=_0x59254f(),_0x4fe205=_0xacd709['id'],_0x43c95a='insertion:'+_0x2958c0,_0x45f686=this['_setSuggestionData']({'id':_0x2a5975,'type':_0x43c95a,'createdAt':new Date(),'authorId':_0x4fe205,'attributes':_0x332d0b});for(const _0x5bea47 of _0x18aad5)this['_addSuggestionMarker'](_0x43c95a,_0x2a5975,_0x4fe205,_0x5bea47,R['getMultiRangeId']());return _0x45f686;}['markInlineFormat'](_0x407308,_0x28f6b6,_0x5d8988=null,_0x39af77={}){if(_0x5d8988=_0x5d8988||zt(_0x28f6b6),_0x407308['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x39af77['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x38399d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5d8988,'accept');return this['forceDefaultExecution'](()=>_0x38399d([_0x407308],_0x28f6b6,_0x39af77)),null;}const _0x57fd68=this['editor']['plugins']['get']('Users')['me'],_0xe5ebde=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1ae871,meta:_0x15d17b}of this['_findSuggestions'](_0x407308,'insertion'))_0x15d17b['isOwn']&&!_0x15d17b['isInsideObject']&&_0xe5ebde['push'](..._0x1ae871['getRanges']());}const _0x26abee=function(_0xe5e17f,_0x4cf465){const _0x2af939=[];for(const _0xbb1395 of _0x4cf465){const _0x1683b2=_0xe5e17f['getIntersection'](_0xbb1395);_0x1683b2&&_0x2af939['push'](_0x1683b2);}return _0x2af939;}(_0x407308,_0xe5ebde),_0x3f85e5=function(_0x5c9620,_0x5d6649){const _0x24132c=[_0x5c9620];for(const _0x1a8807 of _0x5d6649){let _0x43c27f=0x0;for(;_0x43c27f<_0x24132c['length'];){const _0x2d13e2=_0x24132c[_0x43c27f]['getDifference'](_0x1a8807);_0x24132c['splice'](_0x43c27f,0x1,..._0x2d13e2),_0x43c27f+=_0x2d13e2['length'];}}return _0x24132c;}(_0x407308,_0xe5ebde);_0x26abee['length']&&this['_model']['change'](()=>{for(const _0x346baf of _0x26abee){const _0x17e872=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5d8988,'accept');this['forceDefaultExecution'](()=>_0x17e872([_0x346baf],_0x28f6b6,_0x39af77));}});for(const _0x825447 of _0x3f85e5){let _0x37f327=null,_0x322066=_0x825447['start'],_0x5a321b=_0x825447['end'];for(const {suggestion:_0x13a58e,meta:_0x46b3d7}of this['_findSuggestions'](_0x825447,'formatInline')){if(!_0x46b3d7['isOwn'])continue;if(_0x13a58e['subType']!=_0x5d8988)continue;if(!se(_0x13a58e,_0x39af77))continue;const _0x173365=_0x13a58e['getFirstRange']();if(_0x173365['containsRange'](_0x825447,!0x0))return null;_0x322066=_0x322066['isBefore'](_0x173365['start'])?_0x322066:_0x173365['start'],_0x5a321b=_0x5a321b['isAfter'](_0x173365['end'])?_0x5a321b:_0x173365['end'],_0x37f327?_0x173365['start']['isBefore'](_0x37f327['getFirstRange']()['start'])?(_0x37f327['removeMarkers'](),_0x37f327=_0x13a58e):_0x13a58e['removeMarkers']():_0x37f327=_0x13a58e;}const _0x457268=this['_model']['createRange'](_0x322066,_0x5a321b);if(_0x37f327)this['_setSuggestionRange'](_0x37f327,_0x457268);else{const _0x15e215=_0x59254f(),_0x50aaa2=_0x57fd68['id'];this['_setSuggestionData']({'id':_0x15e215,'type':'formatInline:'+_0x5d8988,'data':_0x28f6b6,'createdAt':new Date(),'authorId':_0x50aaa2,'attributes':_0x39af77}),this['_addSuggestionMarker']('formatInline:'+_0x5d8988,_0x15e215,_0x50aaa2,_0x457268);}}return null;}['markBlockFormat'](_0x147354,_0x4ef9ef,_0x6e07ec=[],_0x5ace94=null,_0x114dbe={}){_0x4ef9ef['formatGroupId']||(_0x4ef9ef['formatGroupId']=_0x4ef9ef['commandName']),_0x4ef9ef['multipleBlocks']=_0x147354['is']('range'),_0x5ace94=_0x5ace94||zt(_0x4ef9ef);const _0x33599a=_0x6e07ec['map'](_0x14ed67=>ee(_0x14ed67,this['_model'])),_0x3819de=_0x147354['is']('range')?_0x147354:ee(_0x147354,this['_model']);if(this['_trackingSessionId']&&(_0x114dbe['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2a020b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ace94,'accept');return this['forceDefaultExecution'](()=>_0x2a020b([_0x3819de],_0x4ef9ef,_0x114dbe)),null;}_0x33599a['push'](_0x3819de);let _0x12bf0f=!0x0;for(const _0x53294f of _0x33599a)if(!this['_rangeIsInLocalUserInsertion'](_0x53294f)){_0x12bf0f=!0x1;break;}if(_0x12bf0f&&'always'!==this['_trackFormatChanges']){const _0x1db705=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ace94,'accept');return this['forceDefaultExecution'](()=>_0x1db705([_0x3819de],_0x4ef9ef,_0x114dbe)),null;}let _0x3748b6=null,_0x47a682=_0x3819de['start'],_0x2f79e7=_0x3819de['end'];for(const {suggestion:_0x56d9ad,meta:_0xa5f145}of this['_findSuggestions'](_0x3819de,'formatBlock')){if(!_0xa5f145['isOwn'])continue;if(_0xa5f145['isNextTo']||_0xa5f145['containsRangeInObject']||_0xa5f145['isInsideObject'])continue;if(_0x56d9ad['data']['formatGroupId']!=_0x4ef9ef['formatGroupId'])continue;if(!se(_0x56d9ad,_0x114dbe))continue;const _0xb813de=_0x56d9ad['getFirstRange']();if(_0x56d9ad['subType']==_0x5ace94){if(_0xb813de['containsRange'](_0x3819de,!0x0))return null;_0x47a682=_0x47a682['isBefore'](_0xb813de['start'])?_0x47a682:_0xb813de['start'],_0x2f79e7=_0x2f79e7['isAfter'](_0xb813de['end'])?_0x2f79e7:_0xb813de['end'],_0x3748b6?_0xb813de['start']['isBefore'](_0x3748b6['getFirstRange']()['start'])?(_0x3748b6['removeMarkers'](),_0x3748b6=_0x56d9ad):_0x56d9ad['removeMarkers']():_0x3748b6=_0x56d9ad;}else{const _0x5b2647=_0x3819de['getIntersection'](_0xb813de);this['_cutOutSuggestionMarker'](_0x56d9ad,_0x5b2647);}}const _0x1b16cd=this['editor']['plugins']['get']('Users')['me'],_0x36137c=_0x59254f(),_0x3341a8=_0x1b16cd['id'];if(_0x3748b6)return this['_setSuggestionRange'](_0x3748b6,this['_model']['createRange'](_0x47a682,_0x2f79e7)),_0x3748b6;{const _0x20c120=this['_setSuggestionData']({'id':_0x36137c,'type':'formatBlock:'+_0x5ace94,'data':_0x4ef9ef,'createdAt':new Date(),'authorId':_0x3341a8,'attributes':_0x114dbe});return this['_addSuggestionMarker']('formatBlock:'+_0x5ace94,_0x36137c,_0x3341a8,this['_model']['createRange'](_0x47a682,_0x2f79e7)),_0x20c120;}}['markMultiRangeBlockFormat'](_0x3f725e,_0x514cc9,_0x337330=[],_0x2511ec=null,_0x45ca0c={}){_0x514cc9['formatGroupId']||(_0x514cc9['formatGroupId']=_0x514cc9['commandName']);const _0x448f5c=_0x3f725e[0x0];_0x514cc9['multipleBlocks']=_0x448f5c['is']('range'),_0x2511ec=_0x2511ec||zt(_0x514cc9);const _0x1a5ce6=_0x337330['map'](_0x1d5d66=>ee(_0x1d5d66,this['_model'])),_0x9a9068=_0x448f5c['is']('range')?_0x3f725e:_0x3f725e['map'](_0x558378=>ee(_0x558378,this['_model']));if(this['_trackingSessionId']&&(_0x45ca0c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4e79cc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2511ec,'accept');return this['forceDefaultExecution'](()=>_0x4e79cc(_0x9a9068,_0x514cc9,_0x45ca0c)),null;}_0x1a5ce6['push'](..._0x9a9068);let _0x2a3b3c=!0x0;for(const _0x16de61 of _0x1a5ce6)if(!this['_rangeIsInLocalUserInsertion'](_0x16de61)){_0x2a3b3c=!0x1;break;}if(_0x2a3b3c&&'always'!==this['_trackFormatChanges']){const _0x49726f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2511ec,'accept');return this['forceDefaultExecution'](()=>_0x49726f(_0x9a9068,_0x514cc9,_0x45ca0c)),null;}const _0x4dee14=this['editor']['plugins']['get']('Users')['me'];for(const _0x4638bf of this['getSuggestions']()){const _0x572f1b=_0x4638bf['data'];if(_0x4638bf['author']['id']!=_0x4dee14['id'])continue;if('formatBlock'!=_0x4638bf['type']||_0x572f1b['formatGroupId']!=_0x514cc9['formatGroupId'])continue;if(!se(_0x4638bf,_0x45ca0c))continue;const _0x5c4b7f=_0x4638bf['subType']==_0x2511ec;for(let _0x4715a1=0x0;_0x4715a1<_0x9a9068['length'];_0x4715a1++){const _0x1efa58=_0x9a9068[_0x4715a1];for(const _0x25d812 of _0x4638bf['getMarkers']()){const _0x4a686f=_0x25d812['getRange']();if(_0x1efa58['isEqual'](_0x4a686f)){_0x5c4b7f?(_0x9a9068['splice'](_0x4715a1,0x1),_0x4715a1--):_0x4638bf['removeMarker'](_0x25d812['name']);break;}}}}if(0x0==_0x9a9068['length'])return null;const _0x31b0af=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2511ec,'join');for(const _0x1e804c of this['getSuggestions']()){const _0x529258=_0x1e804c['data'];if(_0x1e804c['author']['id']==_0x4dee14['id']&&('formatBlock'==_0x1e804c['type']&&_0x529258['formatGroupId']==_0x514cc9['formatGroupId']&&_0x1e804c['subType']==_0x2511ec&&se(_0x1e804c,_0x45ca0c)&&(_0x31b0af(_0x1e804c['getRanges'](),_0x9a9068)||_0x31b0af(_0x9a9068,_0x1e804c['getRanges']())))){for(const _0xba4e94 of _0x9a9068)_0x1e804c['addRange'](_0xba4e94);return _0x1e804c;}}const _0x3bea2e=_0x59254f(),_0x356c5d=_0x4dee14['id'],_0x131040='formatBlock:'+_0x2511ec,_0x46f69b=this['_setSuggestionData']({'id':_0x3bea2e,'type':_0x131040,'data':_0x514cc9,'createdAt':new Date(),'authorId':_0x356c5d,'attributes':_0x45ca0c});for(const _0x90e923 of _0x9a9068)this['_addSuggestionMarker'](_0x131040,_0x3bea2e,_0x356c5d,_0x90e923,R['getMultiRangeId']());return _0x46f69b;}['markDeletion'](_0x599423,_0x477206=null,_0x374977={}){if(_0x599423['isCollapsed'])return null;const _0x229909=this['editor']['plugins']['get']('Users')['me'],_0x53b5af=new _0x1207cf(_0x599423['start'],_0x599423['end']);this['_trackingSessionId']&&(_0x374977['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x311421,meta:_0x50bacd}of this['_findSuggestions'](_0x53b5af,'insertion'))if(_0x50bacd['isOwn']&&!_0x50bacd['isNextTo']){if(_0x311421['isMultiRange']){const _0x5cc40b=_0x311421['getRanges']()['filter'](_0x5539cd=>'$graveyard'!=_0x5539cd['root']['rootName']);_0x5cc40b['every'](_0x466a13=>_0x53b5af['containsRange'](_0x466a13,!0x0))&&_0x311421['discard']();if(_0x5cc40b['some'](_0x37dcb8=>_0x37dcb8['containsRange'](_0x53b5af,!0x0))){const _0x343a75=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x477206,'accept');return this['forceDefaultExecution'](()=>_0x343a75([_0x53b5af],null,_0x374977)),null;}}else{const _0x3344f0=_0x53b5af['getIntersection'](_0x311421['getFirstRange']());null!==_0x3344f0&&_0x311421['_onDiscard']([_0x3344f0],null,_0x374977);}}if(_0x53b5af['detach'](),_0x53b5af['isCollapsed']||'$graveyard'==_0x53b5af['root']['rootName'])return null;let _0x24c185=null,_0x3761ab=_0x53b5af['start'],_0x2d34ca=_0x53b5af['end'];const _0x3ad17=this['_findSuggestions'](_0x53b5af,'deletion');for(const {suggestion:_0x5b800b,meta:_0x30cedd}of _0x3ad17){const _0x36d377=this['_model']['createRange'](_0x3761ab,_0x2d34ca);if(_0x30cedd['isOwn']&&(this['_mergeNestedSuggestions']||!_0x30cedd['containsRangeInObject']&&!_0x30cedd['isInsideObject'])){if(_0x5b800b['isMultiRange']){if(!se(_0x5b800b,_0x374977))continue;let _0x3665a1=!0x0;for(const _0x1901c2 of _0x5b800b['getRanges']()){if(_0x1901c2['containsRange'](_0x36d377,!0x0))return _0x5b800b;_0x36d377['containsRange'](_0x1901c2)||(_0x3665a1=!0x1);}_0x3665a1&&_0x5b800b['discard']();}else{const _0xbf17a=_0x5b800b['getFirstRange']();if(_0xbf17a['containsRange'](_0x36d377,!0x0))return _0x5b800b;if(!se(_0x5b800b,_0x374977)){_0x36d377['containsRange'](_0xbf17a)?_0x5b800b['removeMarkers']():_0xbf17a['containsPosition'](_0x3761ab)?_0x3761ab=_0xbf17a['end']:_0xbf17a['containsPosition'](_0x2d34ca)&&(_0x2d34ca=_0xbf17a['start']);continue;}_0x3761ab=_0x3761ab['isBefore'](_0xbf17a['start'])?_0x3761ab:_0xbf17a['start'],_0x2d34ca=_0x2d34ca['isAfter'](_0xbf17a['end'])?_0x2d34ca:_0xbf17a['end'],_0x374977=Object['assign']({},_0x5b800b['attributes']),_0x24c185?_0xbf17a['start']['isBefore'](_0x24c185['getFirstRange']()['start'])?(_0x24c185['removeMarkers'](),_0x24c185=_0x5b800b):_0x5b800b['removeMarkers']():_0x24c185=_0x5b800b;}}}if(_0x24c185)return this['_setSuggestionRange'](_0x24c185,this['_model']['createRange'](_0x3761ab,_0x2d34ca)),_0x24c185;{const _0x20ccca=_0x59254f(),_0x3b35fc=this['_model']['createRange'](_0x3761ab,_0x2d34ca),_0x2b5362=_0x229909['id'],_0x340239=_0x477206?'deletion:'+_0x477206:'deletion',_0x384467=this['_setSuggestionData']({'id':_0x20ccca,'type':_0x340239,'createdAt':new Date(),'authorId':_0x2b5362,'attributes':_0x374977});return this['_addSuggestionMarker'](_0x340239,_0x20ccca,_0x2b5362,_0x3b35fc),_0x384467;}}['markMultiRangeDeletion'](_0x520da9,_0x1a9a62='multi',_0x4b5cf5={}){const _0x4b39dd=this['editor']['plugins']['get']('Users')['me'],_0x110edd=_0x520da9['map'](_0xd20bd1=>new _0x1207cf(_0xd20bd1['start'],_0xd20bd1['end'])),_0xdff987=new Set();this['_trackingSessionId']&&(_0x4b5cf5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x139269,meta:_0x389ca9}of this['_findSuggestions'](_0x110edd,'insertion'))_0x389ca9['isOwn']&&!_0x389ca9['isNextTo']&&_0xdff987['add'](_0x139269);for(const _0x30c2ed of _0xdff987)if(_0x30c2ed['isMultiRange']){const _0x11f12a=_0x30c2ed['getRanges']();(!_0x30c2ed['attributes']||!_0x30c2ed['attributes']['skipNestingCheck'])&&(_0x11f12a['every'](_0xd1cf13=>_0x110edd['some'](_0x2b15e5=>_0x2b15e5['containsRange'](_0xd1cf13,!0x0)))&&_0x30c2ed['discard']());if(_0x110edd['every'](_0x37dc0b=>_0x11f12a['some'](_0x22501c=>_0x22501c['containsRange'](_0x37dc0b,!0x0)))){const _0x4b1021=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a9a62,'accept');return this['forceDefaultExecution'](()=>_0x4b1021(_0x520da9,null,_0x4b5cf5)),null;}}else{const _0x4555f5=_0x30c2ed['getFirstRange']();_0x110edd['some'](_0x4bc4fa=>_0x4bc4fa['containsRange'](_0x4555f5,!0x0))&&_0x30c2ed['discard']();if(_0x110edd['every'](_0x3ab0d7=>_0x4555f5['containsRange'](_0x3ab0d7,!0x0))){const _0x4ecc5a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a9a62,'accept');return this['forceDefaultExecution'](()=>_0x4ecc5a(_0x110edd,null,_0x4b5cf5)),null;}}const _0x1043cc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a9a62,'join');let _0x38acbd=null;for(const _0x5041f7 of this['getSuggestions']())if(_0x5041f7['author']['id']==_0x4b39dd['id']&&_0x5041f7['isInContent']&&'deletion'==_0x5041f7['type']&&_0x5041f7['subType']==_0x1a9a62&&se(_0x5041f7,_0x4b5cf5)&&(_0x1043cc(_0x5041f7['getRanges'](),_0x110edd)||_0x1043cc(_0x110edd,_0x5041f7['getRanges']()))){if(_0x38acbd){if(_0x5041f7['commentThread']&&_0x5041f7['commentThread']['length'])continue;for(const _0xccb961 of _0x5041f7['getRanges']())_0x38acbd['isIntersectingWithRange'](_0xccb961)||_0x38acbd['addRange'](_0xccb961);_0x5041f7['removeMarkers']();}else{_0x38acbd=_0x5041f7;for(const _0x11f26b of _0x110edd)_0x5041f7['isIntersectingWithRange'](_0x11f26b)||_0x5041f7['addRange'](_0x11f26b);}}if(_0x38acbd)return _0x38acbd;_0xdff987['clear']();for(const {suggestion:_0x455899,meta:_0x550597}of this['_findSuggestions'](_0x110edd,'deletion'))_0x550597['isOwn']&&(this['_mergeNestedSuggestions']||!_0x550597['containsRangeInObject']&&!_0x550597['isInsideObject'])&&se(_0x455899,_0x4b5cf5)&&_0xdff987['add'](_0x455899);for(const _0x595f7f of _0xdff987){const _0x2b3190=_0x595f7f['getRanges']();if(!_0x4b5cf5||!_0x4b5cf5['skipNestingCheck']){if(_0x110edd['every'](_0x593e9a=>_0x2b3190['some'](_0x42c094=>_0x42c094['containsRange'](_0x593e9a,!0x0))))return _0x595f7f;}(!_0x595f7f['attributes']||!_0x595f7f['attributes']['skipNestingCheck'])&&(_0x2b3190['every'](_0x5a0fd3=>_0x110edd['some'](_0x42b9f5=>_0x42b9f5['containsRange'](_0x5a0fd3,!0x0)))&&_0x595f7f['discard']());}const _0x48478b=_0x59254f(),_0x3f2e8c=_0x4b39dd['id'],_0x26e4d8='deletion:'+_0x1a9a62,_0x330112=this['_setSuggestionData']({'id':_0x48478b,'type':_0x26e4d8,'createdAt':new Date(),'authorId':_0x3f2e8c,'attributes':_0x4b5cf5});for(const _0x5649a2 of _0x110edd)_0x5649a2['detach'](),_0x5649a2['isCollapsed']||'$graveyard'==_0x5649a2['root']['rootName']||this['_addSuggestionMarker'](_0x26e4d8,_0x48478b,_0x3f2e8c,_0x5649a2,R['getMultiRangeId']());return _0x330112;}['markAttributeChange'](_0x2c490b,_0x952208,_0x53bb3e,_0x4e3390,_0x19bcdb){if(_0x2c490b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x20faa1=this['editor']['plugins']['get']('Users')['me']['id'],_0x37e1f1=Array['from'](this['_suggestions']['values']())['filter'](_0x275b6d=>'attribute'==_0x275b6d['type']&&_0x275b6d['data']['key']==_0x952208&&_0x275b6d['isIntersectingWithRange'](_0x2c490b));if(this['_trackingSessionId']&&(_0x19bcdb['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1f455c=this['_findSuggestions'](_0x2c490b,'insertion')['filter'](({meta:_0x457bdb})=>_0x457bdb['isOwn']&&!_0x457bdb['isInsideObject']&&!_0x457bdb['isNextTo'])['map'](({suggestion:_0x34dfd5})=>_0x34dfd5);_0x37e1f1['unshift'](..._0x1f455c);}const _0x2fb4ce=new Map([[_0x2c490b,_0x53bb3e]]);for(const _0x4a9363 of _0x37e1f1){const _0x121ef3='attribute'==_0x4a9363['type']?_0x4a9363['data']['oldValue']:void 0x0,_0x5f50e1=_0x4a9363['getFirstRange'](),_0x311514=Array['from'](_0x2fb4ce['keys']())['find'](_0x5b59e3=>_0x5b59e3['isIntersecting'](_0x5f50e1));if(!_0x311514)continue;const _0x1e9cf0=_0x311514['getDifference'](_0x5f50e1);this['_isBlockAttribute'](_0x952208)&&'insertion'==_0x4a9363['type']&&0x0!=_0x1e9cf0['length']||(_0x2fb4ce['delete'](_0x311514),_0x1e9cf0['forEach'](_0x286153=>{_0x2fb4ce['set'](_0x286153,_0x53bb3e);}),'insertion'!=_0x4a9363['type']&&_0x121ef3!=_0x4e3390&&_0x2fb4ce['set'](_0x311514['getIntersection'](_0x5f50e1),_0x121ef3));}const _0x997b5b=[];for(const [_0x16fa9c,_0x4eacaf]of _0x2fb4ce){const _0x44fd18=_0x59254f(),_0x482c6c={'key':_0x952208,'oldValue':_0x4eacaf,'newValue':_0x4e3390};_0x952208['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':_0x952208});const _0x1eb73b=('attribute:'+(_0x952208+'|'+zt({'newValue':_0x4e3390})))['substring'](0x0,0x3c),_0x961ee6=this['_setSuggestionData']({'id':_0x44fd18,'type':_0x1eb73b,'data':_0x482c6c,'createdAt':new Date(),'authorId':_0x20faa1,'attributes':_0x19bcdb});_0x997b5b['push'](_0x961ee6),this['_addSuggestionMarker'](_0x1eb73b,_0x44fd18,_0x20faa1,_0x16fa9c);}return _0x997b5b;}['enableDefaultAttributesIntegration'](_0x5804c5){this['enableCommand'](_0x5804c5,(_0x263913,..._0x57a790)=>{this['recordAttributeChanges'](()=>{_0x263913(..._0x57a790);});});}['registerBlockAttribute'](_0xe87ddf){this['_blockAttributeKeys']['add'](_0xe87ddf);}['registerInlineAttribute'](_0x58435f){this['_inlineAttributeKeys']['add'](_0x58435f);}['startTrackingSession'](_0x482a08){return this['_trackingSessionId']=void 0x0!==_0x482a08?_0x482a08:_0x59254f(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1573d4){return'attribute'==_0x1573d4['type']?re(_0x1573d4['subType']):null;}['_applyOperationsAsSuggestions'](_0xb74e98){if(0x0==_0xb74e98['length'])return;const _0x66d9ea=this['editor'],_0x467234=_0x66d9ea['plugins']['get'](_0x18ec53);let _0x4c8a23,_0x25d59d=!0x0;for(const _0x2f0efa in _0xb74e98[0x0]){const _0x4c02cd=_0xb74e98[0x0][_0x2f0efa];if((_0x4c02cd instanceof _0x413b30||_0x4c02cd instanceof _0x3e4af7)&&_0x4c02cd['root']['is']('documentFragment')){_0x25d59d=!0x1,_0x4c8a23=_0x4c02cd['root'];break;}}_0x66d9ea['model']['change'](_0x2a2563=>{const _0x3699df=new Set();for(let _0x19e7c4=0x0;_0x19e7c4<_0xb74e98['length'];_0x19e7c4++){const _0x37fe52=_0xb74e98[_0x19e7c4];if(_0x37fe52['baseVersion']=_0x25d59d?_0x66d9ea['model']['document']['version']:null,_0x37fe52['isDocumentOperation']=_0x25d59d,_0x467234['isMarkedRemoveOperation'](_0x37fe52)){const _0x292834=Zt(_0x37fe52['newRange'],_0x66d9ea['model']);if(_0x25d59d)this['markDeletion'](_0x292834);else{const _0x440953='suggestion:deletion:'+_0x59254f()+':$aiSuggestion';_0x4c8a23['markers']['set'](_0x440953,_0x292834);}}else switch(_0x37fe52['type']){case'rename':{const _0x447e58=_0x37fe52['oldName'],_0x3d6acc=_0x37fe52['newName'];if(_0x447e58==_0x3d6acc)break;_0x2a2563['batch']['addOperation'](_0x37fe52),_0x66d9ea['model']['applyOperation'](_0x37fe52);const _0xc93767='$elementName',_0x2e7c80=_0x37fe52['position'],_0x2d0917=_0x66d9ea['model']['createRange'](_0x2e7c80,_0x66d9ea['model']['createPositionAt'](_0x2e7c80['nodeAfter'],'end'));if(_0x25d59d)this['markAttributeChange'](_0x2d0917,_0xc93767,_0x447e58,_0x3d6acc,{'groupId':_0x59254f()});else{const _0x45b51b='suggestion:attribute:'+_0xc93767+':'+_0x59254f()+':$aiSuggestion';_0x4c8a23['markers']['set'](_0x45b51b,_0x2d0917);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x4f4a83=_0x37fe52['oldValue'],_0x307059=_0x37fe52['newValue'];if(_0x4f4a83==_0x307059)break;_0x2a2563['batch']['addOperation'](_0x37fe52),_0x66d9ea['model']['applyOperation'](_0x37fe52);const _0xb22193=_0x37fe52['key'];if(!this['_isRegisteredAttribute'](_0xb22193))break;const _0xcc414b=Zt(_0x37fe52['range'],_0x66d9ea['model']);if(_0x25d59d)this['markAttributeChange'](_0xcc414b,_0xb22193,_0x4f4a83,_0x307059,{'groupId':_0x59254f()});else{const _0xf8846f='suggestion:attribute:'+_0xb22193+':'+_0x59254f()+':$aiSuggestion';_0x4c8a23['markers']['set'](_0xf8846f,_0xcc414b);}break;}case'insert':{_0x2a2563['batch']['addOperation'](_0x37fe52),_0x66d9ea['model']['applyOperation'](_0x37fe52);const _0x13f5ba=_0xb74e98[_0x19e7c4+0x1]&&'move'==_0xb74e98[_0x19e7c4+0x1]['type'];if(!_0x25d59d&&_0x13f5ba&&ae(_0x4c8a23,_0x37fe52),_0x13f5ba)break;const _0xa872b0=_0x37fe52['position'],_0x5b2d92=_0x37fe52['howMany'],_0xc6c13f=Zt(_0x66d9ea['model']['createRange'](_0xa872b0,_0xa872b0['getShiftedBy'](_0x5b2d92)),_0x66d9ea['model']);if(_0x25d59d)this['markInsertion'](_0xc6c13f);else{const _0x22d418='suggestion:insertion:'+_0x59254f()+':$aiSuggestion';_0x4c8a23['markers']['set'](_0x22d418,_0xc6c13f);}break;}case'split':{_0x2a2563['batch']['addOperation'](_0x37fe52),_0x66d9ea['model']['applyOperation'](_0x37fe52);const _0x25fecd=_0x37fe52['splitPosition'],_0x4b2bd9=_0x37fe52['moveTargetPosition'],_0x2f1211=_0x66d9ea['model']['createRange'](_0x25fecd,_0x4b2bd9);if(_0x25d59d)this['markInsertion'](_0x66d9ea['model']['createRange'](_0x25fecd,_0x4b2bd9));else{const _0x5bd81a='suggestion:insertion:'+_0x59254f()+':$aiSuggestion';_0x4c8a23['markers']['set'](_0x5bd81a,_0x2f1211);}break;}case'move':if(_0x2a2563['batch']['addOperation'](_0x37fe52),_0x66d9ea['model']['applyOperation'](_0x37fe52),!_0x25d59d&&_0xb74e98[_0x19e7c4-0x1]&&'insert'==_0xb74e98[_0x19e7c4-0x1]['type']&&ae(_0x4c8a23,_0x37fe52),!_0x25d59d){const _0x19928b=_0x37fe52['getMovedRangeStart'](),_0x5644cb=_0x37fe52['howMany'];for(let _0xf5c211=0x0;_0xf5c211<_0x5644cb;_0xf5c211++){const _0x1a1732=_0x19928b['getShiftedBy'](_0xf5c211)['nodeAfter'];_0x3699df['add'](_0x1a1732);}}break;case'remove':if(_0x25d59d)_0x2a2563['batch']['addOperation'](_0x37fe52),_0x66d9ea['model']['applyOperation'](_0x37fe52);else{const _0x4709a2=_0x37fe52['sourcePosition'],_0x50463c=_0x37fe52['howMany'],_0x2db4d1=new _0x4eba01(_0x4709a2,_0x50463c);_0x2a2563['batch']['addOperation'](_0x2db4d1),_0x66d9ea['model']['applyOperation'](_0x2db4d1);}}}for(const _0x491a18 of _0x3699df){const _0x449c06=_0x66d9ea['model']['createRangeOn'](_0x491a18),_0x48b8d7='suggestion:formatBlock:$fakeWrap:'+_0x59254f()+':$aiSuggestion';_0x4c8a23['markers']['set'](_0x48b8d7,Zt(_0x449c06,_0x66d9ea['model']));}});}['_setSuggestionRange'](_0x598f67,_0x442d92){const _0x2c5e3b=_0x598f67['getFirstMarker']();this['_model']['change'](_0x45cea6=>{_0x45cea6['updateMarker'](_0x2c5e3b,{'range':_0x442d92});});}['_addThreadToSuggestion'](_0x42a765){const _0x34fe61=_0x42a765['id'],_0x48fc1f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x34fe61)||this['_commentsRepository']['addCommentThread']({'channelId':_0x48fc1f,'threadId':_0x34fe61,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2457e7=this['_commentsRepository']['getCommentThread'](_0x34fe61);_0x2457e7['unbind']('isRemovable'),_0x2457e7['isRemovable']=!0x1,_0x42a765['commentThread']=_0x2457e7;}['_checkSuggestionCorrectness'](_0x569d48,_0x283ee1,_0x1ba33a,_0x447581){if(_0x569d48['type']!=_0x283ee1||_0x569d48['subType']!=_0x1ba33a||_0x569d48['creator']['id']!=_0x447581)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x48c4b8('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4a0665,_0x2d53fb){const _0x13be83=_0x4a0665['getFirstRange']();if(_0x2d53fb['isEqual'](_0x13be83))_0x4a0665['removeMarkers']();else{if(_0x13be83['containsRange'](_0x2d53fb)){const _0x223d73=this['_model']['createPositionAt'](_0x2d53fb['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4a0665,this['_model']['createRange'](_0x13be83['start'],_0x223d73));const _0x3da7c8=_0x59254f(),_0x2a724b=_0x4a0665['creator']['id'],_0x37c8fc=_0x4a0665['type']+':'+_0x4a0665['subType'];this['_setSuggestionData']({'id':_0x3da7c8,'type':_0x37c8fc,'createdAt':new Date(),'authorId':_0x2a724b,'data':_0x4a0665['data'],'attributes':_0x4a0665['attributes']});const _0x59bb09=this['_model']['createPositionAt'](_0x2d53fb['end']['parent'],'after'),_0x24a39d=this['_model']['createRange'](_0x59bb09,_0x13be83['end']);this['_addSuggestionMarker'](_0x37c8fc,_0x3da7c8,_0x2a724b,_0x24a39d);}else{if(_0x13be83['containsPosition'](_0x2d53fb['start'])){const _0x730ac4=this['_model']['createPositionAt'](_0x2d53fb['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4a0665,this['_model']['createRange'](_0x13be83['start'],_0x730ac4));}else{const _0x4796ab=this['_model']['createPositionAt'](_0x2d53fb['end']['parent'],'after');this['_setSuggestionRange'](_0x4a0665,this['_model']['createRange'](_0x4796ab,_0x13be83['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x54506e){for(const {suggestion:_0x5abee7,meta:_0x4b9ac5}of this['_findSuggestions'](_0x54506e,'insertion')){if(!_0x4b9ac5['isOwn'])continue;const _0xf569e9=_0x5abee7['getRanges']();for(const _0x252803 of _0xf569e9)if(!_0x54506e['getDifference'](_0x252803)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1e3b45){return this['editor']['plugins']['get']('Users')['getUser'](_0x1e3b45);}['_getExternalAuthor'](_0x3af5bb){const _0x5ed771=this['editor']['plugins']['get']('Users'),_0x59e92d=_0x3eb6bb('external:'+_0x3af5bb),_0x59a410=_0x5ed771['getUser'](_0x59e92d);return _0x59a410||_0x5ed771['addUser']({'id':_0x59e92d,'name':_0x3af5bb});}['_createSuggestion'](_0x3e18e5,_0x35e783,_0x4a860b,_0x3cd7e0,_0x1006ef,_0x1b59e9){const _0x9a2e71=this['_getAuthorFromId'](_0x3cd7e0);if(!_0x9a2e71)throw new _0x48c4b8('track-changes-user-not-found',this,{'authorId':_0x3cd7e0,'suggestionId':_0x4a860b});const _0x5a751e=this['_suggestionFactory']['buildSuggestion'](_0x3e18e5,_0x35e783,_0x4a860b,_0x9a2e71,_0x1006ef,_0x1c2cde=>{this['_updateSuggestionData'](_0x4a860b,{'attributes':_0x1c2cde});const _0x3ab482=this['getSuggestion'](_0x4a860b);this['_joinWithAdjacentSuggestions'](new Set([_0x3ab482])),this['_refreshSuggestionsChain'](new Set([_0x3ab482]));},_0x1b59e9);return this['listenTo'](_0x5a751e,'accept',()=>{this['_updateSuggestionData'](_0x4a860b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5a751e,'discard',()=>{this['_updateSuggestionData'](_0x4a860b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4a860b,_0x5a751e),this['_suggestionState']['set'](_0x5a751e,'notReady'),_0x5a751e;}['_splitMarkerName'](_0x493f70){const _0x2cfd43=_0x493f70['split'](':');return{'group':_0x2cfd43[0x0],'type':_0x2cfd43[0x1],'subType':_0x2cfd43['length']>=0x5?_0x2cfd43[0x2]:null,'id':_0x2cfd43['length']<0x5?_0x2cfd43[0x2]:_0x2cfd43[0x3],'authorId':_0x2cfd43['length']<0x5?_0x2cfd43[0x3]:_0x2cfd43[0x4],'markerCount':0x6==_0x2cfd43['length']?_0x2cfd43[0x5]:null};}['_breakSuggestionMarker'](_0x3a135d,_0x39d173,_0x400e6c){const _0x50a2fa=_0x3a135d['getFirstRange'](),_0x24fb05=_0x50a2fa['start'],_0x112f59=_0x50a2fa['end'];this['_setSuggestionRange'](_0x3a135d,this['_model']['createRange'](_0x24fb05,_0x39d173));const _0x4589f8=_0x59254f(),_0x2a8bd6=_0x3a135d['creator']['id'],_0x297042=_0x3a135d['type']+(_0x3a135d['subType']?':'+_0x3a135d['subType']:'');this['_setSuggestionData']({'id':_0x4589f8,'type':_0x297042,'createdAt':new Date(),'authorId':_0x2a8bd6,'originalSuggestionId':_0x3a135d['_originalSuggestionId']||_0x3a135d['id'],'attributes':_0x3a135d['attributes'],'data':_0x3a135d['data']});const _0x8d8851=this['_getAttributeKey'](_0x3a135d);('formatBlock'==_0x3a135d['type']||_0x8d8851&&this['_isBlockAttribute'](_0x8d8851))&&(_0x400e6c=this['_model']['createPositionBefore'](_0x400e6c['parent'])),this['_addSuggestionMarker'](_0x297042,_0x4589f8,_0x2a8bd6,this['_model']['createRange'](_0x400e6c,_0x112f59));}['_findSuggestions'](_0x51d2f8,_0x146b57=null){const _0x4a5737=[],_0x22ddf2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x51d2f8)||(_0x51d2f8=[_0x51d2f8]);for(const _0x1b6953 of this['getSuggestions']()){if(!_0x1b6953['isInContent'])continue;if(_0x146b57&&_0x1b6953['type']!=_0x146b57)continue;let _0x37e1c0=!0x1;for(const _0x45e7bb of _0x1b6953['getRanges']()){for(const _0x1c095c of _0x51d2f8){const _0x2c9e13=_0x1c095c['start']['isEqual'](_0x45e7bb['end'])||_0x1c095c['end']['isEqual'](_0x45e7bb['start']);if(_0x2c9e13||_0x1c095c['getIntersection'](_0x45e7bb)){const _0x38f201=_0x1c095c['containsRange'](_0x45e7bb)&&qt(this['_model']['schema'],_0x45e7bb['start'],_0x1c095c),_0x4c9261=_0x45e7bb['containsRange'](_0x1c095c)&&qt(this['_model']['schema'],_0x1c095c['start'],_0x45e7bb);_0x4a5737['push']({'suggestion':_0x1b6953,'meta':{'isOwn':_0x22ddf2==_0x1b6953['author'],'isNextTo':_0x2c9e13,'isInsideObject':_0x38f201,'containsRangeInObject':_0x4c9261}}),_0x37e1c0=!0x0;break;}}if(_0x37e1c0)break;}}return _0x4a5737;}['_addSuggestionMarker'](_0x1b16e0,_0x170fe6,_0x23ddc8,_0x1eb0f1,_0x5792ab){this['_model']['change'](_0x29acc8=>{let _0x560117='suggestion:'+_0x1b16e0+':'+_0x170fe6+':'+_0x23ddc8;_0x5792ab&&(_0x560117=_0x560117+':'+_0x5792ab),_0x29acc8['addMarker'](_0x560117,{'range':_0x1eb0f1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3bb31c){const _0x2d0f6d=_0x3bb31c['previous'],_0x42b501=_0x3bb31c['next'];_0x3bb31c['previous']=null,_0x3bb31c['next']=null,null!=_0x2d0f6d&&_0x2d0f6d['next']==_0x3bb31c&&(_0x2d0f6d['next']=_0x42b501),null!=_0x42b501&&_0x42b501['previous']==_0x3bb31c&&(_0x42b501['previous']=_0x2d0f6d),'ready'==this['_suggestionState']['get'](_0x3bb31c)&&(this['_suggestionState']['set'](_0x3bb31c,'removed'),this['fire']('suggestionUnloaded',_0x3bb31c,_0x2d0f6d,_0x42b501));}['_setSuggestionData'](_0x23ca1b){const _0x236d44=_0x23ca1b['id'],_0x13bca5=this['addSuggestionData'](_0x23ca1b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x29c0a3=this['editor']['plugins']['get']('PendingActions'),_0x48a097=_0x13bca5['hasComments'],_0x82b677=_0x13bca5['subType']?_0x13bca5['type']+':'+_0x13bca5['subType']:_0x13bca5['type'],_0x17067f=this['editor']['locale'],_0x217232=_0x29c0a3['add'](o(_0x17067f,'PENDING_ACTION_SUGGESTION')),_0xf7f2c0={'id':_0x236d44,'type':_0x82b677,'hasComments':_0x48a097,'data':_0x23ca1b['data']||null,'originalSuggestionId':_0x23ca1b['originalSuggestionId']||null,'attributes':_0x13bca5['attributes']};this['_adapter']['addSuggestion'](_0xf7f2c0)['then'](_0x4dc6ae=>{_0x13bca5['_saved']=!0x0,_0x29c0a3['remove'](_0x217232),_0x4dc6ae&&_0x4dc6ae['createdAt']&&(this['_suggestions']['get'](_0x236d44)['createdAt']=_0x4dc6ae['createdAt']);})['catch'](_0x2d08a0=>{throw _0x33e06f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x13bca5['discard']();}),_0x13bca5['stopListening'](),this['_suggestions']['delete'](_0x13bca5['id']),this['_suggestionState']['delete'](_0x13bca5),_0x2d08a0;});}return _0x13bca5;}['_isBlockAttribute'](_0x2e7992){return this['_blockAttributeKeys']['has'](_0x2e7992);}['_isInlineAttribute'](_0x56e272){return this['_inlineAttributeKeys']['has'](_0x56e272);}['_updateSuggestionData'](_0x4359ea,_0x27502f){const _0x3b6a9d=this['editor']['plugins']['get']('PendingActions'),_0x54d114=this['getSuggestion'](_0x4359ea);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x54d114['_saved']){const _0x22bb19=_0x3b6a9d['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4359ea,_0x27502f)['then'](()=>{_0x3b6a9d['remove'](_0x22bb19);});}else _0x54d114['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4359ea,_0x27502f);});}}['_getSuggestionData'](_0x127e3b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x48c4b8('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x127e3b);}['_handleNewSuggestionMarker'](_0x4559ec){const {id:_0x306970,type:_0x52d212,subType:_0xd80927,authorId:_0x1d4550}=this['_splitMarkerName'](_0x4559ec),_0x18a261=this['_suggestions']['get'](_0x306970)||this['_createSuggestion'](_0x52d212,_0xd80927,_0x306970,_0x1d4550,{});switch(this['_checkSuggestionCorrectness'](_0x18a261,_0x52d212,_0xd80927,_0x1d4550),this['_suggestionState']['get'](_0x18a261)){case'notReady':this['_getSuggestionData'](_0x306970)['then'](_0x36b261=>{let _0x1b4549=Promise['resolve']();_0x36b261['hasComments']&&(_0x1b4549=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x306970})),_0x1b4549['then'](()=>{this['addSuggestionData'](_0x36b261)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x18a261,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x306970,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x18a261,'ready'),this['fire']('suggestionLoaded',_0x18a261);break;case'ready':this['fire']('suggestionChanged',_0x18a261);}return _0x18a261['addMarkerName'](_0x4559ec),_0x18a261;}['_refreshSuggestionsChain'](_0x10ea31){const _0x1bbc65=Array['from'](_0x10ea31),_0x2aa7aa=_0x1bbc65['filter'](_0x356469=>'attribute'==_0x356469['type']);this['_refreshAttributeSuggestionsChain'](_0x2aa7aa);const _0x3f0a20=_0x1bbc65['filter'](_0x168f2a=>!_0x168f2a['isMultiRange']&&'attribute'!=_0x168f2a['type']),_0xe744a8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe942ca=>!_0xe942ca['isMultiRange']&&'attribute'!=_0xe942ca['type']),_0x122f01=_0xe744a8['filter'](_0x16363d=>!_0x10ea31['has'](_0x16363d)),_0x5b370c=new Map(_0xe744a8['map'](_0x34430c=>[_0x34430c,this['_suggestionFactory']['getSuggestionCallback'](_0x34430c['type'],_0x34430c['subType'],'chain')])),_0x2c7e21=new Map(_0xe744a8['map'](_0x27d9bd=>[_0x27d9bd,_0x27d9bd['getFirstRange']()])),_0x2ed346=new Set(),_0x414c54=new Set();for(let _0x3e4cec=0x0;_0x3e4cec<_0x3f0a20['length'];_0x3e4cec++)_0x2a4683(_0x3f0a20[_0x3e4cec],_0x3f0a20,_0x3e4cec+0x1);for(let _0x26c981=0x0;_0x26c981<_0x3f0a20['length'];_0x26c981++)_0x2a4683(_0x3f0a20[_0x26c981],_0x122f01,0x0);const _0x2c167c=new Set();for(let _0x506fb5=0x0;_0x506fb5<_0x3f0a20['length'];_0x506fb5++){const _0x5b53e6=_0x3f0a20[_0x506fb5];!_0x414c54['has'](_0x5b53e6)&&_0x5b53e6['previous']&&(_0x2c167c['add'](_0x5b53e6['previous']),_0x5b53e6['previous']['next']===_0x5b53e6&&(_0x5b53e6['previous']['next']=null),_0x5b53e6['previous']=null),!_0x2ed346['has'](_0x5b53e6)&&_0x5b53e6['next']&&(_0x2c167c['add'](_0x5b53e6['next']),_0x5b53e6['next']['previous']===_0x5b53e6&&(_0x5b53e6['next']['previous']=null),_0x5b53e6['next']=null);}function _0x2a4683(_0x33b8e3,_0x344037,_0xffc6a6){for(let _0x1a03f0=_0xffc6a6;_0x1a03f0<_0x344037['length'];_0x1a03f0++){const _0x171079=_0x431309(_0x33b8e3,_0x344037[_0x1a03f0]);_0x171079&&(_0x171079[0x0]['next']=_0x171079[0x1],_0x171079[0x1]['previous']=_0x171079[0x0],_0x2ed346['add'](_0x171079[0x0]),_0x414c54['add'](_0x171079[0x1]));}}function _0x431309(_0x560e76,_0x5895ab){if(_0x560e76['author']['id']!==_0x5895ab['author']['id'])return null;const _0x23845e=_0x5b370c['get'](_0x560e76)(_0x560e76,_0x5895ab,_0x2c7e21['get'](_0x560e76),_0x2c7e21['get'](_0x5895ab));if(!_0x23845e)return null;return _0x5b370c['get'](_0x5895ab)(_0x560e76,_0x5895ab,_0x2c7e21['get'](_0x560e76),_0x2c7e21['get'](_0x5895ab))?_0x23845e[0x1]['commentThread']&&_0x23845e[0x1]['commentThread']['length']?null:_0x23845e:null;}_0x2c167c['size']&&this['_refreshSuggestionsChain'](_0x2c167c);}['_refreshAttributeSuggestionsChain'](_0x2e8106){if(0x0==_0x2e8106['length'])return;const _0xd5557c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c74cc=>'attribute'==_0x4c74cc['type']&&_0x4c74cc['_isDataLoaded']),_0x3f1614=[],_0x164f5c=new Map();for(const _0xce4ac6 of _0xd5557c){const _0x54e3ec=_0x3eb6bb(_0xce4ac6['attributes']);_0x164f5c['has'](_0x54e3ec)||(_0x164f5c['set'](_0x54e3ec,_0x3f1614['length']),_0x3f1614['push']([]));const _0x35deae=_0x164f5c['get'](_0x54e3ec);_0x3f1614[_0x35deae]['push'](_0xce4ac6);}!(function(){_0x3f1614['sort']((_0x38d706,_0x5641ce)=>{const _0x1e5d5b=_0x38d706[0x0]['createdAt'],_0xd3381b=_0x5641ce[0x0]['createdAt'];return _0x1e5d5b==_0xd3381b?_0x38d706[0x0]['attributes']['groupId']<_0x5641ce[0x0]['attributes']['groupId']?-0x1:0x1:_0x1e5d5b<_0xd3381b?-0x1:0x1;});for(const _0x58f819 of _0x3f1614)_0x58f819['sort']((_0x4bdf52,_0x214f74)=>_0x4bdf52['id']<_0x214f74['id']?-0x1:0x1);}());for(let _0x460b7b=0x0;_0x460b7b<_0x3f1614['length'];_0x460b7b++){if(0x0==_0x3f1614[_0x460b7b]['length'])continue;const _0x24a5b7=[];for(let _0x501067=_0x460b7b+0x1;_0x501067<_0x3f1614['length'];_0x501067++)0x0!=_0x3f1614[_0x501067]['length']&&_0x4386e2(_0x3f1614[_0x460b7b],_0x3f1614[_0x501067])&&_0x24a5b7['push'](_0x501067);for(const _0x2643d6 of _0x24a5b7)_0x3f1614[_0x460b7b]=_0x3f1614[_0x460b7b]['concat'](_0x3f1614[_0x2643d6]),_0x3f1614[_0x2643d6]=[];}for(const _0x425440 of _0x3f1614)for(let _0x423245=0x0;_0x423245<_0x425440['length'];_0x423245++){const _0x34ae3b=_0x425440[_0x423245+0x1]||null;_0x425440[_0x423245]['next']!==_0x34ae3b&&(_0x425440[_0x423245]['next']=_0x34ae3b);}for(const _0x25f7a7 of _0x3f1614)for(let _0x2f36fc=0x0;_0x2f36fc<_0x25f7a7['length'];_0x2f36fc++){const _0xf9b934=_0x25f7a7[_0x2f36fc-0x1]||null;_0x25f7a7[_0x2f36fc]['previous']!==_0xf9b934&&(_0x25f7a7[_0x2f36fc]['previous']=_0xf9b934);}function _0x4386e2(_0x3664e9,_0x20a4a8){if(_0x3664e9[0x0]['attributes']['groupId']!==_0x20a4a8[0x0]['attributes']['groupId']&&_0x3664e9[0x0]['author']!==_0x20a4a8[0x0]['author'])return!0x1;if(!function(_0x21a62a,_0x10b8b6){if(!_0x21a62a['hasComments']&&!_0x10b8b6['hasComments'])return!0x0;if(_0x21a62a['hasComments']&&_0x10b8b6['hasComments'])return!0x1;if(_0x21a62a['hasComments']&&_0x10b8b6['createdAt']<_0x21a62a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x10b8b6['hasComments']&&_0x21a62a['createdAt']<_0x10b8b6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3664e9[0x0],_0x20a4a8[0x0]))return!0x1;const _0x23c82b=Jt(_0x3664e9[0x0]['attributes'],['groupId','trackingSessionId']),_0x2d6c0d=Jt(_0x20a4a8[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x16f97e(_0x23c82b,_0x2d6c0d))return!0x1;if(_0x3664e9[0x0]['attributes']['groupId']==_0x20a4a8[0x0]['attributes']['groupId'])return!0x0;if(_0x3664e9[0x0]['attributes']['trackingSessionId']!==_0x20a4a8[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3664e9['every'](_0x4be6f0=>_0x20a4a8['some'](_0x26b3b3=>_0x4be6f0['getFirstRange']()['isEqual'](_0x26b3b3['getFirstRange']())))&&_0x20a4a8['every'](_0x5bd7ba=>_0x3664e9['some'](_0x705ce6=>_0x5bd7ba['getFirstRange']()['isEqual'](_0x705ce6['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4fa94e){const _0x26c191=Array['from'](_0x4fa94e),_0x5a15e2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4231e3=_0x5a15e2['filter'](_0x5b6491=>!_0x4fa94e['has'](_0x5b6491)),_0x4e35ac=new Map(_0x26c191['map'](_0x37c274=>[_0x37c274,this['_suggestionFactory']['getSuggestionCallback'](_0x37c274['type'],_0x37c274['subType'],'join')])),_0x64a18d=new Map(_0x5a15e2['map'](_0x4cf18a=>[_0x4cf18a,_0x4cf18a['getRanges']()]));for(let _0x212396=0x0;_0x212396<_0x26c191['length'];_0x212396++){if(_0x3a25ac(this,_0x26c191[_0x212396],_0x26c191,_0x212396+0x1))return!0x0;}for(let _0x3f1472=0x0;_0x3f1472<_0x26c191['length'];_0x3f1472++){if(_0x3a25ac(this,_0x26c191[_0x3f1472],_0x4231e3,0x0))return!0x0;}return!0x1;function _0x3a25ac(_0x22d668,_0xe384b0,_0x34e1b5,_0x3d2843){for(let _0x573803=_0x3d2843;_0x573803<_0x34e1b5['length'];_0x573803++){const _0x252163=_0x34e1b5[_0x573803];if(_0x252163['type']!==_0xe384b0['type']||_0x252163['author']['id']!==_0xe384b0['author']['id']||_0x252163['subType']!==_0xe384b0['subType'])continue;if(!ne(_0xe384b0,_0x252163))continue;if('attribute'==_0xe384b0['type']&&_0xe384b0['data']['oldValue']!=_0x252163['data']['oldValue'])continue;if('attribute'==_0xe384b0['type']&&_0x22d668['_isBlockAttribute'](_0xe384b0['data']['key']))continue;if('formatBlock'==_0xe384b0['type']){const _0x2cd831=_0x22d668['editor']['model'],_0xa0ae86=_0xe384b0['getContainedElement']();if(_0xa0ae86&&(_0x2cd831['schema']['isObject'](_0xa0ae86)||_0x2cd831['schema']['isLimit'](_0xa0ae86)))continue;}const _0x22be07=_0x4e35ac['get'](_0xe384b0),_0x43ae84=_0x64a18d['get'](_0xe384b0),_0x1c177c=_0x64a18d['get'](_0x252163),_0x295cac=_0xe384b0['commentThread']&&_0xe384b0['commentThread']['length'],_0x55825a=_0x252163['commentThread']&&_0x252163['commentThread']['length'];if(!_0x295cac&&_0x22be07(_0x1c177c,_0x43ae84))return _0x22d668['_joinSuggestions'](_0x252163,_0xe384b0),_0x64a18d['delete'](_0xe384b0),!0x0;if(!_0x55825a&&_0x22be07(_0x43ae84,_0x1c177c))return _0x22d668['_joinSuggestions'](_0xe384b0,_0x252163),_0x64a18d['delete'](_0x252163),!0x0;}return!0x1;}}['_joinSuggestions'](_0x20056f,_0x12add7){if(_0x20056f['isMultiRange']){for(const _0x161308 of _0x12add7['getRanges']())_0x20056f['addRange'](_0x161308);}else{const _0x1be672=_0x12add7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x20056f,this['_model']['createRange'](_0x20056f['getFirstRange']()['start'],_0x1be672));}_0x12add7['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1ad2d4,_0x4d1a04,_0x4e3a58){const _0x341300=_0x1ad2d4['startsWith']('format')||_0x1ad2d4['startsWith']('attribute')?'FORMATTING':_0x1ad2d4['toUpperCase']();return o(this['editor']['locale'],_0x4d1a04+'_'+_0x341300+'_SUGGESTION_ANNOUNCEMENT',_0x4e3a58);}['_initAriaMarkerChangeAnnouncements'](){const _0x15b4be=this['editor'];if(!_0x15b4be['ui'])return;const {ariaLiveAnnouncer:_0x11bd93}=_0x15b4be['ui'];_0x5dcbb9(this['_model'],({left:_0x3b6fc7,entered:_0x2060bc})=>{for(const _0x5a82cb of _0x3b6fc7){const {group:_0x2b7407,type:_0x789cb5}=this['_splitMarkerName'](_0x5a82cb['name']);if('suggestion'===_0x2b7407){_0x11bd93['announce'](this['_getMarkerAnnouncementText'](_0x789cb5,'LEAVE'));break;}}for(const _0x5151cf of _0x2060bc){const {group:_0x3f75c0,type:_0x5a78ee}=this['_splitMarkerName'](_0x5151cf['name']);if('suggestion'===_0x3f75c0){_0x11bd93['announce'](this['_getMarkerAnnouncementText'](_0x5a78ee,'ENTER',_0x5b83bc(_0x85d6db)));break;}}});}['_processAttributeChanges'](_0x5e2cfc){if(this['_recordAttributeSuggestions'])return!0x1;const _0x268ab1=this['editor'],_0xc4e997=_0x268ab1['model']['document']['differ']['getChanges']();if(0x0==_0xc4e997['length'])return!0x1;const _0x65162d=[],_0x3dca08=_0xc4e997['filter'](_0xb215b5=>'attribute'==_0xb215b5['type']),_0x5e5783=_0xc4e997['filter'](_0x1ad448=>'insert'==_0x1ad448['type']&&'$text'!=_0x1ad448['name']),_0x5514f9=_0xc4e997['filter'](_0x3eb1f1=>'remove'==_0x3eb1f1['type']&&'$text'!=_0x3eb1f1['name']);for(const _0x32e65f of _0x3dca08)_0x65162d['push']({'key':_0x32e65f['attributeKey'],'newValue':_0x32e65f['attributeNewValue'],'oldValue':_0x32e65f['attributeOldValue'],'range':te(_0x32e65f['range'],_0x268ab1['model'])});for(const _0xffe910 of _0x5e5783){const _0xce6fb9=_0x5514f9['find'](_0x394192=>_0x394192['position']['isEqual'](_0xffe910['position']));_0xce6fb9&&_0x65162d['push']({'key':m,'newValue':_0xffe910['name'],'oldValue':_0xce6fb9['name'],'range':_0x268ab1['model']['createRangeOn'](_0xffe910['position']['nodeAfter'])});}return 0x0!=_0x65162d['length']&&this['_reduceExistingSuggestions'](_0x5e2cfc,_0x65162d);}['_processAttributeSuggestions'](_0x102fb3){let _0x59a573=!0x1;const _0x4a3934=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3e18c6=>_0x3e18c6['data']['newRange']&&_0x3e18c6['name']['startsWith']('suggestion:attribute:'));for(const _0x4fc747 of _0x4a3934){const {subType:_0x463822,id:_0x7069ec}=this['_splitMarkerName'](_0x4fc747['name']),_0x4cfe59=_0x463822['split']('|')[0x0];for(const _0xb7c348 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xb7c348['id']!=_0x7069ec&&'attribute'==_0xb7c348['type']&&_0xb7c348['data']&&_0xb7c348['data']['key']==_0x4cfe59&&_0xb7c348['getFirstRange']()['isIntersecting'](_0x4fc747['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xb7c348,_0x4fc747['data']['newRange'],_0x102fb3),_0x59a573=!0x0);}return _0x59a573;}['recordAttributeChanges'](_0x57692c){this['_recordAttributeSuggestions']=!0x0,_0x57692c();}['_isRegisteredAttribute'](_0x150bfa){const _0x435b4b=this['_isBlockAttribute'](_0x150bfa),_0x3316ac=this['_isInlineAttribute'](_0x150bfa);return _0x435b4b||_0x3316ac;}['_reduceExistingSuggestions'](_0x32e9c3,_0x3cfb45){if(0x0==_0x3cfb45['length'])return!0x1;let _0x3e1cf0=!0x1;for(const _0x3d2a94 of _0x3cfb45){const _0x4aace0=this['_findSuggestions'](_0x3d2a94['range'],'attribute')['filter'](_0x2a790b=>!_0x2a790b['meta']['isNextTo'])['map'](_0x439e8c=>_0x439e8c['suggestion']),_0x3dfb88=_0x3eb6bb({'newValue':_0x3d2a94['newValue']});_0x4aace0['filter'](_0x11580e=>{const [_0x248beb,_0xd06ea3]=_0x11580e['subType']['split']('|');return _0x248beb==_0x3d2a94['key']&&_0xd06ea3!=_0x3dfb88;})['forEach'](_0x4fef84=>{this['_reduceSuggestionAttributeRange'](_0x4fef84,_0x3d2a94['range'],_0x32e9c3),_0x3e1cf0=!0x0;});}return _0x3e1cf0;}['_reduceSuggestionAttributeRange'](_0xbf72a4,_0x2198ff,_0x25a47c){const _0x1fbe54=_0xbf72a4['getFirstRange']()['getDifference'](_0x2198ff);0x0!==_0x1fbe54['length']?0x1!==_0x1fbe54['length']?this['_breakSuggestionMarker'](_0xbf72a4,_0x2198ff['start'],_0x2198ff['end']):this['_setSuggestionRange'](_0xbf72a4,_0x1fbe54[0x0]):_0x25a47c['removeMarker'](_0xbf72a4['getFirstMarker']());}}class Kt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x6e7f99){this['_editor']=_0x6e7f99,this['_model']=_0x6e7f99['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1f711f,_0x24ce19,_0x5660af,_0x3e6532,_0xe3fbbc,_0x1dc22f,_0x1fa785){return new R(this['_model'],{'type':_0x1f711f,'subType':_0x24ce19,'id':_0x5660af,'originalSuggestionId':_0x1fa785,'author':_0x3e6532,'creator':_0x3e6532,'attributes':_0xe3fbbc,'onAttributesChange':_0x1dc22f,'onAccept':(..._0x29dc2a)=>this['getSuggestionCallback'](_0x1f711f,_0x24ce19,'accept')(..._0x29dc2a),'onDiscard':(..._0x5442a7)=>this['getSuggestionCallback'](_0x1f711f,_0x24ce19,'discard')(..._0x5442a7)});}['registerCustomCallback'](_0x233c19,_0x2056f2,_0x3e915e,_0x5bb188){const _0x6dc5dc=_0x233c19+':'+_0x2056f2+':'+_0x3e915e;this['_customCallbacks']['set'](_0x6dc5dc,_0x5bb188);}['getSuggestionCallback'](_0xfdad1,_0x38999d,_0x198360){const _0x536fe9=_0xfdad1+':'+_0x38999d+':'+_0x198360;return this['_customCallbacks']['get'](_0x536fe9)||this['_defaultCallbacks']['get'](_0xfdad1+':'+_0x198360);}['_registerDefaultCallbacks'](){const _0x27eb6b=()=>!0x1,_0x41e09e=_0x1424b1=>{_0x1424b1['sort']((_0x4eb0ac,_0x5f4c69)=>_0x4eb0ac['start']['isBefore'](_0x5f4c69['start'])?0x1:-0x1),this['_model']['change'](_0x22110c=>{for(const _0x36fe3d of _0x1424b1){let _0x206dd8;_0x206dd8=_0x36fe3d['end']['isAtEnd']&&_0x36fe3d['end']['parent']==_0x36fe3d['start']['nodeAfter']?_0x22110c['createSelection'](_0x36fe3d['start']['nodeAfter'],'on'):_0x22110c['createSelection'](_0x36fe3d),this['_model']['deleteContent'](_0x206dd8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x20b3b3=(_0xe9f0fe,_0x550dc5)=>{_0x550dc5&&this['_model']['change'](_0x1ca011=>{const {commandName:_0xdca2d0,commandParams:_0x3261c4=[]}=_0x550dc5,_0x3c2db7=_0xe9f0fe['map'](_0x4b84fa=>(Ht(_0x4b84fa)&&(_0x4b84fa=this['_model']['createRange'](_0x4b84fa['end'])),_0x4b84fa))['filter'](_0x25efcb=>'$graveyard'!==_0x25efcb['root']['rootName']);if(_0x3c2db7['length']<0x1)return;const _0x24bc2e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4d084c=>_0x1207cf['fromRange'](_0x4d084c));_0x1ca011['setSelection'](_0x3c2db7);for(const _0x5e2067 of this['_editor']['commands']['commands']())_0x5e2067['refresh']();_0x3261c4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xdca2d0,..._0x3261c4);const _0x2d339a=_0x24bc2e['filter'](_0x37d2c2=>'$graveyard'!=_0x37d2c2['root']['rootName']);_0x2d339a['length']>0x0&&_0x1ca011['setSelection'](_0x2d339a);for(const _0x2e6f0b of _0x24bc2e)_0x2e6f0b['detach']();});},_0x218fc5=(_0x393619,_0x28a21c)=>0x1==_0x393619['length']&&0x1==_0x28a21c['length']&&_0x393619[0x0]['end']['isEqual'](_0x28a21c[0x0]['start']),_0x11e07e=(_0x489db3,_0x1f50b8,_0x3a9048,_0x4b81fa)=>ie(_0x489db3,_0x1f50b8,_0x3a9048,_0x4b81fa)?[_0x489db3,_0x1f50b8]:ie(_0x1f50b8,_0x489db3,_0x4b81fa,_0x3a9048)?[_0x1f50b8,_0x489db3]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x27eb6b),this['_defaultCallbacks']['set']('insertion:discard',_0x41e09e),this['_defaultCallbacks']['set']('insertion:join',_0x218fc5),this['_defaultCallbacks']['set']('insertion:chain',_0x11e07e),this['_defaultCallbacks']['set']('deletion:accept',_0x41e09e),this['_defaultCallbacks']['set']('deletion:discard',_0x27eb6b),this['_defaultCallbacks']['set']('deletion:join',_0x218fc5),this['_defaultCallbacks']['set']('deletion:chain',_0x11e07e),this['_defaultCallbacks']['set']('formatInline:accept',_0x20b3b3),this['_defaultCallbacks']['set']('formatInline:discard',_0x27eb6b),this['_defaultCallbacks']['set']('formatInline:join',_0x218fc5),this['_defaultCallbacks']['set']('formatInline:chain',_0x27eb6b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x20b3b3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x27eb6b),this['_defaultCallbacks']['set']('formatBlock:join',_0x218fc5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x27eb6b),this['_defaultCallbacks']['set']('attribute:accept',_0x27eb6b),this['_defaultCallbacks']['set']('attribute:discard',(_0x562db4,_0x966de4)=>{if(!_0x966de4)return;const _0x4525a0=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x1c7523=>{if(_0x966de4['key']==m)for(const _0x3aa950 of _0x562db4){const _0x5bafb5=_0x3aa950['start']['nodeAfter'],_0x4aa40f=_0x966de4['oldValue'];_0x1c7523['rename'](_0x5bafb5,_0x4aa40f);}else{if(_0x4525a0['_isBlockAttribute'](_0x966de4['key'])){for(const _0xa96acf of _0x562db4)void 0x0!==_0x966de4['oldValue']?_0x1c7523['setAttribute'](_0x966de4['key'],_0x966de4['oldValue'],_0xa96acf['start']['nodeAfter']):_0x1c7523['removeAttribute'](_0x966de4['key'],_0xa96acf['start']['nodeAfter']);}else{for(const _0x163659 of _0x562db4)_0x966de4['oldValue']?_0x1c7523['setAttribute'](_0x966de4['key'],_0x966de4['oldValue'],_0x163659):_0x1c7523['removeAttribute'](_0x966de4['key'],_0x163659);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x218fc5);}}function qt(_0x3300d0,_0x343ae5,_0x3dea73){for(const _0x1dca1f of _0x343ae5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1dca1f['root']==_0x1dca1f)return!0x1;if(!_0x3dea73['containsItem'](_0x1dca1f))return!0x1;if(_0x3300d0['isObject'](_0x1dca1f)||_0x3300d0['isLimit'](_0x1dca1f))return!0x0;}return!0x1;}function Ht(_0x3a51a3){return _0x3a51a3['end']['parent']==_0x3a51a3['start']['nodeAfter']&&_0x3a51a3['end']['isAtStart'];}function Wt(_0x4ab434,_0x30470e,_0x40eb2f,_0x26f8e2){const _0x31580d=_0x176d84=>!_0x176d84['item']['is']('$textProxy')&&!_0x26f8e2['isObject'](_0x176d84['item']),_0x199379=_0x4ab434['start']['getLastMatchingPosition'](_0x31580d),_0x461e88=_0x4ab434['end']['getLastMatchingPosition'](_0x31580d,{'direction':'backward'});return(!_0x4ab434['start']['isEqual'](_0x199379)||!_0x4ab434['end']['isEqual'](_0x461e88))&&(_0x199379['isBefore'](_0x461e88)?_0x40eb2f['updateMarker'](_0x30470e,{'range':_0x40eb2f['createRange'](_0x199379,_0x461e88)}):_0x40eb2f['removeMarker'](_0x30470e),!0x0);}function zt(_0x3c13e0){return _0x3eb6bb(_0x3c13e0);}function Qt(_0x28b6f9){const _0x151c12=_0x28b6f9['start']['nodeAfter'];return _0x151c12&&_0x151c12['is']('element');}function Xt(_0x37b13b){return Ht(_0x37b13b)||function(_0x228fcb){return _0x228fcb['start']['parent']==_0x228fcb['end']['nodeBefore']&&_0x228fcb['start']['isAtEnd'];}(_0x37b13b);}function Yt(_0x2b31b3,_0x111cb3){try{const _0x1d65aa=_0x2b31b3['getRange']();for(const _0x4b97fd of _0x111cb3)if(_0x2b31b3!==_0x4b97fd&&_0x1d65aa&&_0x1d65aa['isIntersecting'](_0x4b97fd['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x14b4d1,_0x4d2bad){const _0x3f6aad=_0x14b4d1['end']['nodeBefore'];if(_0x3f6aad&&_0x3f6aad['is']('element')&&_0x4d2bad['schema']['isBlock'](_0x3f6aad)&&!_0x4d2bad['schema']['isObject'](_0x3f6aad)){const _0x4fbdf5=_0x4d2bad['createPositionAt'](_0x3f6aad,'end');return _0x4d2bad['createRange'](_0x14b4d1['start'],_0x4fbdf5);}return _0x14b4d1;}function te(_0x3e3738,_0x1a648a){return null==_0x3e3738['end']['nodeBefore']&&_0x3e3738['end']['parent']==_0x3e3738['start']['nodeAfter']?ee(_0x3e3738['start']['nodeAfter'],_0x1a648a):_0x3e3738;}function ee(_0x5a70d2,_0x4dcc10){const _0xc4d681=_0x4dcc10['schema']['isObject'](_0x5a70d2)||_0x4dcc10['schema']['isSelectable'](_0x5a70d2);return _0x4dcc10['createRange'](_0x4dcc10['createPositionAt'](_0x5a70d2,'before'),_0xc4d681?_0x4dcc10['createPositionAfter'](_0x5a70d2):_0x4dcc10['createPositionAt'](_0x5a70d2,'end'));}function ie(_0x3a6647,_0x4f0fc4,_0x3fd854,_0x5eddba){return!!ne(_0x3a6647,_0x4f0fc4)&&_0x3fd854['end']['isEqual'](_0x5eddba['start']);}function ne(_0x4b84b5,_0x45fbff){if(!_0x4b84b5['_isDataLoaded']||!_0x45fbff['_isDataLoaded'])return!0x1;const _0x1035a3=new Set(Object['keys'](_0x4b84b5['attributes'])),_0x4c4b9c=new Set(Object['keys'](_0x45fbff['attributes']));if(_0x1035a3['delete']('groupId'),_0x4c4b9c['delete']('groupId'),0x0==_0x1035a3['size']&&0x0==_0x4c4b9c['size'])return!0x0;if(_0x1035a3['size']!=_0x4c4b9c['size'])return!0x1;const _0x5b4d0e={..._0x4b84b5['attributes']},_0x47cd58={..._0x45fbff['attributes']};return delete _0x5b4d0e['groupId'],delete _0x47cd58['groupId'],JSON['stringify'](_0x5b4d0e)==JSON['stringify'](_0x47cd58);}function se(_0x58e79c,_0x5b89a4){const _0x3365cf=oe(_0x58e79c['attributes']),_0x549ac6=oe(_0x5b89a4);if(!_0x58e79c['_isDataLoaded'])return!0x1;for(const _0x59c322 of Object['keys'](_0x549ac6))if(!_0x16f97e(_0x3365cf[_0x59c322],_0x549ac6[_0x59c322]))return!0x1;return!0x0;}function oe(_0x312779){const _0x5da209=Object['assign']({},_0x312779);return delete _0x5da209['skipNestingCheck'],delete _0x5da209['tablePasteChainId'],_0x5da209;}function re(_0x442458){return _0x442458['split']('|')[0x0];}function ae(_0x3468e6,_0x154a4e){for(const [_0x2207f1,_0x2f5803]of _0x3468e6['markers']){const _0x163f49=_0x3e4af7['_createFromRanges'](_0x2f5803['getTransformedByOperation'](_0x154a4e));_0x3468e6['markers']['set'](_0x2207f1,_0x163f49);}}class ve extends/* #__PURE__ -- @preserve */
26
- _0x5e6deb(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4fa9ad,_0x4221bb,_0x562abd,_0x49ee0a){super(),this['model']=_0x4221bb,this['view']=_0x562abd,this['commentThreadController']=_0x49ee0a,this['_editor']=_0x4fa9ad,this['_acceptCommand']=_0x4fa9ad['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4fa9ad['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x49e334,_0x3070d8)=>_0x49e334||_0x3070d8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2ab85a=>_0x2ab85a&&this['_editor']['model']['canEditAt'](_0x4221bb['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2c2ba9=>_0x2c2ba9&&this['_editor']['model']['canEditAt'](_0x4221bb['getRanges']())),this['_pendingAction']=null,_0x562abd['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x562abd,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x562abd,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x562abd,'change:isDirty',()=>{_0x562abd['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 _0xb3a7d7=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xb3a7d7);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x3da09f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x33d89b,_0x3efd41,_0x5a3834,_0x54218a){super(_0x33d89b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x97fd59(_0x33d89b,o(_0x33d89b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3efd41['authoredAt']),this['bind']('authoredAt')['to'](_0x3efd41),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',_0x3efd41,'authoredAt',this,'descriptionParts',(_0x43f06d,_0x21603d,_0x4d4cf2)=>{const _0x48c832=_0x4d4cf2['map'](_0x59deff=>ls(_0x59deff['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x43f06d-0x1,_0x3efd41['author']['name'],_0x21603d?_0x54218a['formatDateTime'](_0x21603d):'',new DOMParser()['parseFromString'](_0x48c832,'text/html')['body']['textContent']]);}),this['focusables']=new _0x317df4(),this['focusTracker']=new _0x123d4a(),this['keystrokes']=new _0xa6019(),this['focusCycler']=new _0x25e410({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1699c8=>_0x1699c8['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3efd41,this['_localUser']=_0x5a3834,this['_config']=_0x54218a,_0x54218a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5d12e7(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2fed39}=this['_config'];this['commentsListView']=new _0x2fed39(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',_0x442c34=>_0x442c34+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2c60a6,_0x20bcf0)=>_0x2c60a6||!!_0x20bcf0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5f4f22}=this['_config'],_0x26400f=new _0x5f4f22(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x323bb9=_0x26400f['commentInputView'];return _0x26400f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x323bb9,'value',(_0x3abd24,_0x3bfbca,_0x3c5303)=>!!_0x3c5303||_0x3abd24&&!_0x3bfbca),_0x323bb9['on']('submit',(_0x5ad44f,_0x172b95)=>{this['fire']('addComment',_0x172b95),_0x323bb9['editor']['setData']('');}),_0x323bb9['on']('cancel',()=>this['focus']()),_0x323bb9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x26400f;}}class xe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x43c149,_0x6f4a12,_0xd2a73c,_0x19a0ac){super(_0x43c149,_0x6f4a12,_0xd2a73c,_0x19a0ac),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x412dd9=>_0x412dd9&&_0x412dd9[0x0]?_0x412dd9[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x33c127,_0xe52299)=>{let _0x32b591='';for(const _0x24fb7e of _0x33c127)_0x32b591+='<p>'+ls(_0x24fb7e['content'],_0x24fb7e['color'])+'</p>';return _0xe52299?_0x32b591:_0x343ee3(_0x32b591,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x19a0ac['SuggestionView'](_0x43c149,_0x6f4a12,{'formatDateTime':_0x19a0ac['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 _0x12afba=this['bindTemplate'],_0x22dcf5=[this['suggestionView']];return this['commentsListView']&&_0x22dcf5['push'](this['commentsListView']),this['commentThreadInputView']&&_0x22dcf5['push'](this['commentThreadInputView']),_0x22dcf5['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x12afba['if']('isActive','ck-suggestion-wrapper--active'),_0x12afba['to']('type',_0x27cccd=>'ck-suggestion-'+_0x27cccd),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':_0x12afba['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x22dcf5};}['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 Ae extends _0x3da09f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5370b4,_0x4c8cca,_0xd11dc1){super(_0x5370b4),this['_model']=_0x4c8cca,this['_config']=_0xd11dc1,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4c8cca),this['acceptButton']=this['_createButton'](o(_0x5370b4,'Accept\x20suggestion'),_0x198616,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5370b4,'Discard\x20suggestion'),_0x18056c,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4d7a5f(_0x5370b4,_0x4c8cca['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x317df4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x123d4a(),this['keystrokes']=new _0xa6019(),this['focusCycler']=new _0x25e410({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4e0869=>_0x4e0869['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1d733d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1d733d['innerHTML']=this['description'],this['on']('change:description',(_0x1d04a8,_0x9961ea,_0x3b4510)=>{_0x1d733d['innerHTML']=_0x3b4510;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5e496a=this['bindTemplate'],_0x9f97f8=[{'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':_0x5e496a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5e496a['to']('authoredAt',_0x5b66fd=>this['_config']['formatDateTime'](_0x5b66fd))}]}]},{'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']&&_0x9f97f8['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':_0x9f97f8}]};}['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'](_0x42a0d2,_0x5ea65b,_0x5ca352,_0x18bc20,_0x405ac3){const _0x35c496=new _0x21559d(this['locale']);return _0x35c496['set']({'label':_0x42a0d2,'icon':_0x5ea65b,'tooltip':!0x0,'tooltipPosition':_0x405ac3}),_0x35c496['extendTemplate']({'attributes':{'class':_0x5ca352}}),_0x35c496['on']('execute',()=>{this['fire'](_0x18bc20,this['_model']['id']);}),_0x35c496;}['_setupKeyboardNavigation'](){const _0x42a939=this['element'];this['keystrokes']['listenTo'](_0x42a939);for(const _0x1a6c91 of this['focusables'])this['focusTracker']['add'](_0x1a6c91['element']),this['keystrokes']['listenTo'](_0x1a6c91['element']);this['keystrokes']['set']('enter',(_0xbe6911,_0x95ec49)=>{_0x42a939===_0xbe6911['target']&&(this['focusCycler']['focusFirst'](),_0x95ec49());}),this['keystrokes']['set']('esc',(_0x8c5b92,_0x5b5ef7)=>{_0x42a939!==_0x8c5b92['target']&&(this['focus'](),_0x5b5ef7());});}}class u extends _0x23981b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x2c44d2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe4ff66){super(_0xe4ff66),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x22362c=this['editor']['config'];_0x22362c['define']('trackChanges.SuggestionThreadView',xe),_0x22362c['define']('trackChanges.SuggestionView',Ae),_0x22362c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x22362c['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3c1423,_0x4c4636){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x40f972,_0x31fb32]of this['_handleControllerBuffer']){const _0x30292d=this['_suggestionToController']['has'](_0x40f972);_0x30292d||_0x31fb32?_0x30292d&&_0x31fb32&&this['_destroyController'](_0x40f972):this['_initializeController'](_0x40f972);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3c1423,_0x4c4636);}['init'](){const _0x151f77=this['editor'],_0x5c0208=_0x151f77['plugins']['get']('TrackChangesEditing'),_0x5ccead=_0x151f77['plugins']['get']('Annotations'),_0x37d07b=_0x151f77['plugins']['get']('EditorAnnotations'),_0x50cc44=_0x151f77['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x37d07b['addSourceCollector'](()=>{const _0x12e219=[];for(const [_0x2374a5,_0x511dbd]of Array['from'](this['_suggestionToController'])){const _0x216f97=_0x2374a5['getAllAdjacentSuggestions'](),_0x372bf6=[];for(const _0x202395 of _0x216f97){if(!_0x202395['isInContent'])continue;if(_0x202395['isMultiRange']){_0x372bf6['push'](..._0x202395['getRanges']());continue;}const _0x1e1179=_0x202395['getFirstRange']();if(_0x372bf6['length']>0x0){const _0x36b12e=_0x372bf6[0x0]['getJoined'](_0x1e1179);if(_0x36b12e){_0x372bf6[0x0]=_0x36b12e;continue;}}_0x372bf6['push'](_0x1e1179);}_0x12e219['push']([_0x511dbd['view'],_0x372bf6]);}return _0x12e219;}),this['listenTo'](_0x5c0208,'suggestionLoaded',(_0x4a33ab,_0x48e594)=>{this['listenTo'](_0x48e594,'change:previous',(_0x1e348e,_0xb59c12,_0x264a30,_0x23a7fc)=>{_0x48e594['isInContent']&&(null==_0x264a30?(this['_updateController'](_0x23a7fc['head']),this['_handleSuggestionControllerDelayed'](_0x48e594,!0x1)):(this['_updateController'](_0x264a30['head']),null==_0x23a7fc&&this['_handleSuggestionControllerDelayed'](_0x48e594,!0x0)));}),null!==_0x48e594['previous']?this['_updateController'](_0x48e594['head']):this['_handleSuggestionControllerDelayed'](_0x48e594,!0x1);}),this['listenTo'](_0x5c0208,'suggestionUnloaded',(_0x46dac0,_0x38a2b0,_0x244756)=>{this['stopListening'](_0x38a2b0,'change:previous'),this['_handleControllerBuffer']['delete'](_0x38a2b0),this['_suggestionToController']['has'](_0x38a2b0)&&this['_destroyController'](_0x38a2b0),_0x244756&&this['_updateController'](_0x244756['head']);}),this['listenTo'](_0x5c0208,'suggestionChanged',(_0x26313f,_0x5c3ee4)=>{this['_updateController'](_0x5c3ee4);}),this['listenTo'](_0x5ccead,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x50cc44,'addComment',(_0x57b5cb,{threadId:_0x3be2ce,isFromAdapter:_0x2c308f})=>{if(_0x2c308f||!_0x5c0208['hasSuggestion'](_0x3be2ce))return;const _0x9580e2=_0x5c0208['getSuggestion'](_0x3be2ce);this['_suggestionToController']['get'](_0x9580e2)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5b009e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x21f274;for(const _0x51f66f in _0x5b009e){const _0x103944=_0x51f66f,_0xdf3f2c=_0x5b009e[_0x103944];if('trackChangesLicenseKeyValid'==_0xdf3f2c||'trackChangesLicenseKeyInvalid'==_0xdf3f2c||'trackChangesLicenseKeyExpired'==_0xdf3f2c||'trackChangesLicenseKeyDomainLimit'==_0xdf3f2c||'trackChangesLicenseKeyNotAllowed'==_0xdf3f2c||'trackChangesLicenseKeyEvaluationLimit'==_0xdf3f2c||'trackChangesLicenseKeyTrialLimit'==_0xdf3f2c||'trackChangesLicenseKeyUsageLimit'==_0xdf3f2c){delete _0x5b009e[_0x103944],_0x21f274=_0xdf3f2c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x21f274&&_0x5b009e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x21f274&&_0x5b009e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x21f274&&_0x5b009e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x21f274&&_0x5b009e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x21f274&&_0x5b009e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x21f274&&_0x5b009e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x21f274&&_0x5b009e['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2bf9ed){const _0x50782a=this['_suggestionToController']['get'](_0x2bf9ed);if(!_0x50782a)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x50782a['view'])||null;}['getSuggestionForAnnotation'](_0x145980){const _0x4799c2=this['_viewToController']['get'](_0x145980['innerView']);return _0x4799c2?_0x4799c2['model']:null;}['_refreshActiveMarkers'](){const _0x8f308d=this['editor']['plugins']['get']('Annotations'),_0x33ac53=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ff1b6=Array['from'](_0x8f308d['activeAnnotations'],_0x1d9a7c=>_0x1d9a7c['innerView'])['filter'](_0x2c2ac1=>this['_viewToController']['has'](_0x2c2ac1)),_0x23c96b=[];for(const _0x17dd59 of _0x3ff1b6){const _0xb9da4d=this['_viewToController']['get'](_0x17dd59)['model']['getAllAdjacentSuggestions']();_0x23c96b['push'](..._0xb9da4d['reduce']((_0x504d2f,_0x48e76b)=>[..._0x504d2f,..._0x48e76b['getMarkerNames']()],[]));}_0x33ac53['activeMarkers']=_0x23c96b;}['_addUIComponentsToFactory'](){const _0x41442c=this['editor'],_0x306b2a=_0x41442c['locale'],_0x5f3b9d=o(_0x306b2a,'Track\x20changes'),_0x31f33e=new _0x25a7a9([{'type':'switchbutton','model':new _0x29b6f4({'withText':!0x0,'isToggleable':!0x0,'label':_0x5f3b9d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x29b6f4({'withText':!0x0,'label':o(_0x306b2a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x29b6f4({'withText':!0x0,'label':o(_0x306b2a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x29b6f4({'withText':!0x0,'label':o(_0x306b2a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x29b6f4({'withText':!0x0,'label':o(_0x306b2a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x41442c['plugins']['has']('TrackChangesPreview')&&_0x31f33e['addMany']([{'type':'separator'},{'type':'button','model':new _0x29b6f4({'withText':!0x0,'label':o(_0x306b2a,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x294bdf of _0x31f33e)if(Ee(_0x294bdf)){const _0x2b605d=_0x41442c['commands']['get'](_0x294bdf['model']['commandName']);_0x294bdf['model']['bind']('isOn','isEnabled')['to'](_0x2b605d,'value','isEnabled');}_0x41442c['ui']['componentFactory']['add']('trackChanges',_0x4d77ce=>this['_createToolbarButton'](_0x4d77ce,_0x31f33e,_0x5f3b9d)),_0x41442c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x551313=>this['_createMenuBarMenu'](_0x551313,_0x31f33e,_0x5f3b9d));}['_createToolbarButton'](_0x3d8d60,_0x53bf19,_0x43d712){const _0x56c056=_0x1dcb45(_0x3d8d60,_0x2e78f1),_0x21f135=this['editor']['commands']['get']('trackChanges');_0x56c056['buttonView']['set']({'tooltip':_0x43d712,'label':_0x43d712,'icon':_0x41f0c0}),_0x56c056['buttonView']['bind']('isOn')['to'](_0x21f135,'value'),_0x56c056['buttonView']['on']('execute',()=>{_0x21f135['execute'](),this['editor']['editing']['view']['focus']();}),_0x5a354d(_0x56c056,_0x53bf19,{'role':'menu'});const _0x43b0bf=[];for(const _0x102841 of _0x53bf19)Ee(_0x102841)&&_0x43b0bf['push'](this['editor']['commands']['get'](_0x102841['model']['commandName']));const _0x3f3e02=_0x56c056['buttonView'];return _0x3f3e02['actionView']['unbind']('isEnabled'),_0x3f3e02['arrowView']['unbind']('isEnabled'),_0x3f3e02['actionView']['bind']('isEnabled')['to'](_0x21f135,'isEnabled'),_0x3f3e02['arrowView']['bind']('isEnabled')['toMany'](_0x43b0bf,'isEnabled',(..._0x4d7945)=>_0x4d7945['some'](_0x172efb=>_0x172efb)),_0x56c056['on']('execute',_0x11b88b=>{this['editor']['execute'](_0x11b88b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x56c056;}['_createMenuBarMenu'](_0x1a4e29,_0x32fe50,_0x82bc5d){const _0x18c3d6=new _0x586e1f(_0x1a4e29),_0x9515da=this['editor']['commands']['get']('trackChanges');_0x18c3d6['buttonView']['set']({'label':_0x82bc5d,'icon':_0x41f0c0});const _0x39c399=new _0x46bfd0(_0x1a4e29);for(const _0x36c5be of _0x32fe50){if('separator'==_0x36c5be['type']){_0x39c399['items']['add'](new _0x39bffa(_0x1a4e29));continue;}const _0x184974=new _0x52af72(_0x1a4e29,_0x18c3d6),_0x3abea5=new _0x22f4fd(_0x1a4e29),_0x34f24d=_0x36c5be['model'];_0x3abea5['bind'](...Object['keys'](_0x34f24d))['to'](_0x34f24d),_0x3abea5['delegate']('execute')['to'](_0x18c3d6),_0x3abea5['on']('execute',()=>{this['editor']['execute'](_0x34f24d['commandName']),this['editor']['editing']['view']['focus']();}),_0x184974['children']['add'](_0x3abea5),_0x39c399['items']['add'](_0x184974);}return _0x18c3d6['bind']('isEnabled')['to'](_0x9515da,'isEnabled'),_0x18c3d6['panelView']['children']['add'](_0x39c399),_0x18c3d6;}['_initializeController'](_0xa10602){const _0x2eeea4=this['editor'],_0x269c1a=_0x2eeea4['config'],_0x545e6f=_0x2eeea4['plugins']['get']('Annotations'),_0x53a75f=_0x2eeea4['plugins']['get']('CommentsRepository'),_0x5e2f1d=_0x2eeea4['plugins']['get']('EditorAnnotations'),_0x2b87de=_0x2eeea4['plugins']['get'](_0x2c44d2)['me'],_0x2c09ca=_0x269c1a['get']('trackChanges')['SuggestionThreadView'],_0x13cdea=_0x269c1a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x569da0,CommentThreadInputView:_0x257cd8}=_0x2eeea4['plugins']['get']('CommentsUI');let _0x50aaa6,_0x1097ff,_0x4fb51c;this['_annotationViews']['has'](_0xa10602['id'])?(_0x1097ff=this['_annotationViews']['get'](_0xa10602['id']),_0x50aaa6=_0x1097ff['mainView']):(_0x50aaa6=new _0x2c09ca(_0x2eeea4['locale'],_0xa10602,_0x2b87de,{'disableComments':this['_disableComments'],'editorConfig':{..._0x269c1a['get']('comments.editorConfig'),'licenseKey':_0x269c1a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x269c1a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x269c1a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x269c1a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5788d9(_0x269c1a['get']('locale'),_0x2eeea4['locale']),'CommentView':_0x269c1a['get']('comments')['CommentView'],'CommentsListView':_0x569da0,'CommentThreadInputView':_0x257cd8,'SuggestionView':_0x13cdea}),_0x50aaa6['suggestionView']['acceptButton']['on']('execute',()=>{_0x2eeea4['editing']['view']['focus']();}),_0x50aaa6['suggestionView']['discardButton']['on']('execute',()=>{_0x2eeea4['editing']['view']['focus']();}),_0x1097ff=_0x545e6f['createAnnotationView'](this['editor']['locale'],_0x50aaa6),_0x1097ff['bind']('isDirty')['to'](_0x50aaa6,'isDirty'),_0x1097ff['bind']('length')['to'](_0x50aaa6),_0x1097ff['bind']('type')['to'](_0x50aaa6,'type',_0x419dc8=>'suggestion-'+_0x419dc8),_0x50aaa6['on']('escape',()=>{_0x4fb51c['fire']('escape');}),this['_annotationViews']['set'](_0xa10602['id'],_0x1097ff));const _0x113fbf=_0x53a75f['createCommentThreadController'](_0xa10602['commentThread'],_0x50aaa6),_0x29038c=new ve(_0x2eeea4,_0xa10602,_0x50aaa6,_0x113fbf),_0x1450c6=_0xa10602['getAllAdjacentSuggestions']()['filter'](_0x4936b6=>_0x4936b6['isInContent']);_0x50aaa6['descriptionParts']=_0x2eeea4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1450c6),this['_suggestionToController']['set'](_0xa10602,_0x29038c),this['_viewToController']['set'](_0x50aaa6,_0x29038c);const _0x19cc0d=()=>{const _0x12c1ac=[],_0x2dcde4=_0xa10602['getAllAdjacentSuggestions']()['filter'](_0x1678ff=>_0x1678ff['isInContent']);for(const _0x5a224c of _0x2dcde4)_0x12c1ac['push'](..._0x5a224c['getMarkers']());return _0x29af43(_0x2eeea4['editing'],_0x12c1ac);};_0x4fb51c=_0x545e6f['createAnnotation']({'view':_0x1097ff,'target':_0x19cc0d,'type':()=>'suggestion-'+_0x29038c['view']['type'],'isVisible':!!_0x19cc0d()}),_0x53a75f['_bindAnnotationToEditors'](_0x50aaa6,_0x4fb51c),_0x545e6f['add'](_0x4fb51c),_0x5e2f1d['registerAnnotation'](_0x4fb51c);}['_destroyController'](_0x35a607){const _0x159ff0=this['editor']['plugins']['get']('CommentsRepository'),_0x56741b=this['editor']['plugins']['get']('Annotations'),_0x307053=this['_suggestionToController']['get'](_0x35a607),_0x2f12e8=_0x307053['view'],_0x540fe2=_0x56741b['getByInnerView'](_0x2f12e8);_0x159ff0['_unbindEditors'](_0x2f12e8),_0x540fe2&&_0x56741b['remove'](_0x540fe2),this['_suggestionToController']['delete'](_0x35a607),this['_viewToController']['delete'](_0x2f12e8),_0x307053['destroy']();}['_updateController'](_0x59af53){if(!_0x59af53['isInContent']||!this['_suggestionToController']['has'](_0x59af53))return;const _0x320811=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54eca6=this['_suggestionToController']['get'](_0x59af53),_0x4b4f93=_0x59af53['getAllAdjacentSuggestions']();_0x54eca6['view']['descriptionParts']=_0x320811['descriptionFactory']['getDescriptions'](_0x4b4f93);}['destroy'](){for(const _0xac22df of this['_suggestionToController']['keys']())this['_destroyController'](_0xac22df);for(const _0x55896d of this['_annotationViews']['values']())_0x55896d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Ee(_0x3c5155){return'model'in _0x3c5155;}class Ke extends _0x23981b{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x51478f){this['editor']['plugins']['get'](d)['adapter']=_0x51478f;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x530585){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x530585);}['getSuggestions']({skipNotAttached:_0xd8ed6d=!0x1,toJSON:_0x56d086=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0xd8ed6d,'toJSON':_0x56d086});}['getSuggestion'](_0x5e81cc){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x5e81cc);}}const p=['Pagination'];class me extends _0x23981b{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x53f9e5=this['editor'];if(_0x53f9e5['config']['define']('trackChangesData.editorCreator',_0x192ec8=>{const _0x505eac=_0x53f9e5['model']['document']['getRootNames']()['reduce']((_0x26ab8c,_0x4d5416)=>(_0x26ab8c[_0x4d5416]='',_0x26ab8c),{});return _0x53f9e5['constructor']['create'](_0x505eac,_0x192ec8);}),'function'!=typeof _0x53f9e5['config']['get']('trackChangesData')['editorCreator'])throw new _0x48c4b8('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2d5b02){return P(this['editor'],!0x0,_0x2d5b02);}['getDataWithDiscardedSuggestions'](_0x60971e){return P(this['editor'],!0x1,_0x60971e);}}class Xe extends _0x23981b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x170a35){function _0x26f501(_0x20d8c7){return _0x20d8c7['map'](_0x36a281=>String['fromCharCode'](_0x36a281))['join']('');}super(_0x170a35),this['result']='end',_0x170a35[_0x26f501([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26f501([0x76,0x69,0x65,0x77])][_0x26f501([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x26f501([0x61,0x75,0x74,0x6f]),_0x170a35[_0x26f501([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x26f501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x26f501([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x26f501([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x26f501([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 Ye(_0x4f7fc4){return void 0x0!==_0x4f7fc4['getRootsAttributes'];}async function P(_0x58639f,_0x4bfa24,_0x204a62){const _0x57fead=_0x4367f9(_0x58639f,p);_0x57fead['plugins']['push'](d,Xe),_0x57fead['rootsAttributes']=Ye(_0x58639f)?_0x58639f['getRootsAttributes']():void 0x0;const _0x4cca64=document['createDocumentFragment'](),_0x58eab4=_0x58639f['config']['get']('trackChangesData')['editorCreator'],_0x44a051=await _0x58eab4(_0x57fead,()=>function(_0x1b39d0){const _0x4adf2a=document['createElement']('div');return _0x1b39d0['appendChild'](_0x4adf2a),_0x4adf2a;}(_0x4cca64));!function(_0x30b790,_0x70a331){const _0x5ae532=_0x30b790['model']['document']['getRootNames']()['reduce']((_0x1c55c3,_0x2e0aea)=>(_0x1c55c3[_0x2e0aea]=_0x30b790['data']['get']({'rootName':_0x2e0aea}),_0x1c55c3),{}),_0x1c45d9=_0x30b790['plugins']['get']('Users')['users']['map'](_0x46a8d0=>({'id':_0x46a8d0['id'],'name':_0x46a8d0['name']})),_0x421a87=_0x30b790['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x169de7=_0x30b790['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5cc09d=_0x70a331['plugins']['get']('Users'),_0x368d46=_0x70a331['plugins']['get']('TrackChangesEditing'),_0x530e67=_0x70a331['plugins']['get']('CommentsRepository');for(const _0x37e6c4 of _0x530e67['getCommentThreads']())_0x37e6c4['remove']();for(const _0x5042a3 of _0x1c45d9)_0x5cc09d['getUser'](_0x5042a3['id'])||_0x5cc09d['addUser'](_0x5042a3);_0x5cc09d['me']||_0x5cc09d['useAnonymousUser']();for(const _0x2b7e70 of _0x169de7)_0x530e67['addCommentThread'](_0x2b7e70);for(const _0xcf1494 of _0x421a87)_0x368d46['addSuggestionData'](_0xcf1494);_0x70a331['data']['set'](_0x5ae532);}(_0x58639f,_0x44a051),_0x44a051['execute'](_0x4bfa24?'acceptAllSuggestions':'discardAllSuggestions');const _0x109cf0=Ye(_0x44a051)?_0x44a051['getFullData'](_0x204a62):_0x44a051['data']['get'](_0x204a62);return await _0x44a051['destroy'](),_0x109cf0;}class _e extends _0x3da09f{['options'];constructor(_0xa3a2fa,_0x448129){super(_0xa3a2fa),this['options']=_0x448129,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'](_0x342498,_0x422d2c){if(!this['element'])return;const _0x40f8ab=[];for(const [_0x97b4f,_0x241a1a]of _0x342498){const _0x35e231=document['createElement']('div');_0x35e231['setAttribute']('data-ck-root-name',_0x97b4f),_0x35e231['className']=_0x241a1a['classes']+'\x20ck-track-changes-preview__root-container',_0x35e231['innerHTML']=_0x241a1a['content'],_0x40f8ab['push'](_0x35e231);}_0x422d2c(this['element'],_0x40f8ab),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ue extends _0x5ec19b{constructor(_0x46e25a){super(_0x46e25a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xb99579=this['editor'],_0x354f51=_0xb99579['locale'],_0x268046=_0xb99579['plugins']['get']('Dialog');let _0x4b45d2;const _0x2a65ca=function(_0x41987f){const _0x1433b4={};if('editables'in _0x41987f['ui']['view']){for(const [_0x4b31bf,_0x1885af]of Object['entries'](_0x41987f['ui']['view']['editables']))_0x1433b4[_0x4b31bf]=_0x1885af['element'];}else _0x1433b4[_0x41987f['model']['document']['getRootNames']()[0x0]]=_0x41987f['ui']['view']['editable']['element'];return _0x1433b4;}(_0xb99579),_0x3cc8b4=function(_0x2efd48){let _0x5b7fcd=0x0;for(const _0x177839 of Object['values'](_0x2efd48))_0x5b7fcd=Math['max'](_0x5b7fcd,_0x177839['getBoundingClientRect']()['width']);let _0x58e8be=0x0;for(const _0xa71d94 of Object['values'](_0x2efd48))_0x58e8be+=_0xa71d94['getBoundingClientRect']()['height'];const _0x3ba821=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1fac2a=Math['min'](_0x58e8be,_0x3ba821);return{'width':_0x5b7fcd,'height':_0x1fac2a};}(_0x2a65ca);_0x268046['show']({'id':'finalContentPreview','title':o(_0x354f51,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x354f51,{'dialogRects':_0x3cc8b4}),'onHide':()=>{_0x4b45d2['detachFromDom']();},'onShow':()=>{_0xb99579['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x493749=>{const _0x2bf597=this['_standarizeRootsData'](_0x493749,_0xb99579,_0x2a65ca);_0x268046['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2bf597,_0xb99579['config']['get']('trackChanges.preview.renderFunction'));}),_0x4b45d2=new _0x19b83d(_0x354f51,[_0x268046['view']]),_0x4b45d2['attachToDom'](),_0x4b45d2['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xb99579['once']('destroy',()=>{_0x4b45d2['detachFromDom']();});const _0x2d6a12=_0x268046['view']['headerView']['class'];_0x268046['view']['headerView']['class']=_0x2d6a12?_0x2d6a12+'\x20ck-reset_all':'ck-reset_all',_0x268046['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x268046['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4ac5c1=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2a2e3a=_0x4ac5c1['previewMode'],_0x29bd0f={};if('$labels'===_0x2a2e3a){for(const _0x48abd8 of _0x4ac5c1['getMergeFieldsIds']())_0x29bd0f[_0x48abd8]=_0x4ac5c1['getLabel'](_0x48abd8)||_0x48abd8;}else{const _0x18b405='$defaultValues'===_0x2a2e3a?_0x4ac5c1['getDefaultValues']():_0x4ac5c1['getDataSetValues'](_0x2a2e3a,!0x0);for(const _0x4a9503 of Object['entries'](_0x18b405)){const [_0x16ebb8,_0x78eaa9]=_0x4a9503;_0x29bd0f[_0x16ebb8]=null!==_0x78eaa9?_0x78eaa9:_0x4ac5c1['getLabel'](_0x16ebb8)||_0x16ebb8;}}return{'mergeFieldsData':_0x29bd0f};}['_standarizeRootsData'](_0x451f0b,_0x5ad43c,_0x120795){let _0x4b6673;if('string'==typeof _0x451f0b){const _0xa02870=_0x5ad43c['model']['document']['getRootNames']()[0x0];_0x4b6673={[_0xa02870]:_0x451f0b};}else _0x4b6673=_0x451f0b;const _0x1cdd17=this['_fixMediaEmbeds'](_0x4b6673,_0x5ad43c),_0x43a138=function(_0x3fbaa9,_0x2c2d89){for(const [_0x19d17f,_0x75f5b4]of _0x3fbaa9)_0x75f5b4['classes']=_0x2c2d89[_0x19d17f]['classList']['value']['replace']('ck-focused','');return _0x3fbaa9;}(this['_sortRoots'](_0x5ad43c)['reduce']((_0x2444a0,_0x49daf7)=>(_0x2444a0['push']([_0x49daf7,{'content':_0x1cdd17[_0x49daf7],'classes':''}]),_0x2444a0),[]),_0x120795);return _0x43a138;}['_fixMediaEmbeds'](_0x4b2c57,_0x32a3cb){if(!_0x32a3cb['plugins']['has']('MediaEmbedEditing'))return _0x4b2c57;const _0x10728c=_0x32a3cb['plugins']['get']('MediaEmbedEditing');for(const [_0x9e8009,_0x4d6d3c]of Object['entries'](_0x4b2c57)){const _0x2cff5a=document['createElement']('div');_0x2cff5a['innerHTML']=_0x4d6d3c,(_0x2cff5a['querySelectorAll']('figure.media')['forEach'](_0x43fdfe=>{const _0x34b047=_0x43fdfe['querySelector']('oembed');if(_0x34b047){const _0x46c486=_0x34b047['getAttribute']('url');if(_0x46c486){const _0x275956=_0x10728c['registry']['getMediaViewElement'](new _0x41d09e(_0x32a3cb['editing']['view']['document']),_0x46c486,{'elementName':'','renderForEditingView':!0x0}),_0x29ead8=document['createElement']('div');_0x29ead8['classList']['add']('ck-media__wrapper'),_0x275956['render'](_0x29ead8,_0x32a3cb['editing']['view']['domConverter']),_0x34b047['replaceWith'](_0x29ead8);}}}),_0x4b2c57[_0x9e8009]=_0x2cff5a['innerHTML']);}return _0x4b2c57;}['_sortRoots'](_0x2c06ea){if(!function(_0x33709a){return void 0x0!==_0x33709a['getRootsAttributes'];}(_0x2c06ea))return _0x2c06ea['model']['document']['getRootNames']();const _0x4f5d2f=[],_0x3e59f6=new Map();for(const _0x37f48b of _0x2c06ea['model']['document']['getRootNames']()){const _0x85d0c4=_0x2c06ea['editing']['view']['getDomRoot'](_0x37f48b)['getClientRects']()['item'](0x0);_0x4f5d2f['push'](_0x37f48b),_0x3e59f6['set'](_0x37f48b,_0x85d0c4);}return _0x4f5d2f['sort']((_0xb254bf,_0xcd199e)=>{const _0x8496a4=_0x3e59f6['get'](_0xb254bf),_0x294e33=_0x3e59f6['get'](_0xcd199e);return _0x8496a4['y']-_0x294e33['y']||_0x8496a4['x']-_0x294e33['x'];}),_0x4f5d2f;}}class Qe extends _0x23981b{static get['requires'](){return[me,_0x328ad2];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3689f0){super(_0x3689f0),_0x3689f0['commands']['add']('previewFinalContent',new ue(this['editor'])),_0x3689f0['config']['define']('trackChanges.preview.renderFunction',(_0x587f8d,_0x585385)=>{for(const _0x36398b of _0x585385)_0x587f8d['appendChild'](_0x36398b);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ue as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,xe as SuggestionThreadView,Ae as SuggestionView,Ke as TrackChanges,B as TrackChangesCommand,me as TrackChangesData,Xe as TrackChangesDataGetter,d as TrackChangesEditing,Qe as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x16fb88,Plugin as _0x3f9a7e,PendingActions as _0x3c797d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1ac6d4,ObservableMixin as _0x50e5df,uid as _0x172a90,priorities as _0x3b0c6e,insertToPriorityArray as _0x3f9b9b,toArray as _0x15d44f,logWarning as _0x153be2,getEnvKeystrokeText as _0x34cbc7,FocusTracker as _0x428031,KeystrokeHandler as _0x2d41ee,Collection as _0x4662bd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x10c019,IconCancel as _0x244396,IconTrackChanges as _0x18839f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2d6432,View as _0x3c71d5,ViewCollection as _0x241955,FocusCycler as _0x48b5c3,UIModel as _0x41e09b,createDropdown as _0x5dca4d,SplitButtonView as _0x218d99,addListToDropdown as _0x23ad15,MenuBarMenuView as _0x1fd282,MenuBarMenuListView as _0x4cf1c4,ListSeparatorView as _0x434a07,MenuBarMenuListItemView as _0x10dfd6,MenuBarMenuListItemButtonView as _0x4271cf,BodyCollection as _0x2ecd61,Dialog as _0x233f75}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x553a10,DocumentCompare as _0x182521,hashObject as _0x846a2f,surroundingMarkersDetector as _0x122be3,FOCUS_ANNOTATION_KEYSTROKE as _0xa18ac9,AriaDescriptionView as _0x8bf392,setupThreadKeyboardNavigation as _0x28ee0a,trimHtml as _0x46624a,UserView as _0x5bbe40,LateFocusButtonView as _0x5fafb9,getDateTimeFormatter as _0x64632c,getAllMarkersDomElementsSorted as _0x953b8d,sanitizeEditorConfig as _0xb5f771}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x269d0c,ModelLiveRange as _0x360709,ModelLivePosition as _0x222b05,ModelPosition as _0x517fbf,ModelRange as _0x5ed2f1,_DetachOperation as _0x53237a,ViewDowncastWriter as _0x2903e3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x46ab54,toWidget as _0x560d6d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5493e1,set as _0x248dea,isEqual as _0x18158c,unset as _0x482bd1,omit as Jt}from'es-toolkit/compat';import{Delete as _0x352fd8,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5b64da}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4daa20}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x16fb88{['_enabledCommands'];constructor(_0x2be2c7,_0x2a517d){super(_0x2be2c7),this['_enabledCommands']=_0x2a517d,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 _0x35aeaa of this['editor']['commands']['commands']())_0x35aeaa['affectsData']&&!this['_enabledCommands']['has'](_0x35aeaa)&&_0x35aeaa['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x249401 of this['editor']['commands']['commands']())_0x249401['affectsData']&&!this['_enabledCommands']['has'](_0x249401)&&_0x249401['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x16fb88{['_suggestions'];constructor(_0x401d6f,_0x344650){super(_0x401d6f),this['_suggestions']=_0x344650,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1fb442){const _0x32e931=this['_suggestions']['get'](_0x1fb442);if(!_0x32e931)throw new _0x1ac6d4('track-changes-accept-suggestion-not-found',this);const _0x1091ac=_0x32e931['getRanges']();this['editor']['model']['canEditAt'](_0x1091ac)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x32e931);}}class O extends _0x16fb88{['_suggestions'];constructor(_0x553920,_0x3ff195){super(_0x553920),this['_suggestions']=_0x3ff195,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c7c6a){const _0x58b3a7=this['_suggestions']['get'](_0x5c7c6a);if(!_0x58b3a7)throw new _0x1ac6d4('track-changes-discard-suggestion-not-found',this);const _0x118e52=_0x58b3a7['getRanges']();this['editor']['model']['canEditAt'](_0x118e52)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x58b3a7);}}function ls(_0x8065a4,_0x3cf9dd){let _0x44eb04='';return _0x44eb04+=_0x8065a4['split']('*')['map']((_0x4346da,_0x2efea6)=>_0x2efea6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x4346da)+'</span>':tn(_0x4346da))['join'](''),_0x3cf9dd&&(_0x44eb04+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3cf9dd['value']+'\x22\x20title=\x22'+_0x3cf9dd['title']+'\x22></span>'),_0x44eb04;}function tn(_0x2ce0cd){const _0x3871b6=document['createElement']('span');return _0x3871b6['innerText']=_0x2ce0cd,_0x3871b6['innerHTML'];}function ts(_0x38e203){return _0x38e203['sort']((_0x59d27d,_0x1f4aa9)=>'attribute'===_0x59d27d['type']&&'attribute'!==_0x1f4aa9['type']?-0x1:'attribute'!==_0x59d27d['type']&&'attribute'===_0x1f4aa9['type']?0x1:'deletion'==_0x59d27d['type']&&'deletion'!=_0x1f4aa9['type']?-0x1:'deletion'!=_0x59d27d['type']&&'deletion'==_0x1f4aa9['type']?0x1:0x0);}function to(_0xe46aa7,_0x583f41){let _0x15201b,_0x387134=0x0;const _0x2b226d=[],_0x159f35=_0x583f41['schema'];for(;_0x387134<_0xe46aa7['length'];){const _0x3b3cf6=_0xe46aa7[_0x387134],_0x169081=_0xe46aa7[_0x387134+0x1];_0x15201b||(_0x15201b=_0x583f41['createPositionBefore'](_0x3b3cf6)),nn(_0x583f41,_0x3b3cf6,_0x169081)||(_0x2b226d['push'](_0x583f41['createRange'](_0x15201b,_0x159f35['isObject'](_0x3b3cf6)?_0x583f41['createPositionAfter'](_0x3b3cf6):_0x583f41['createPositionAt'](_0x3b3cf6,'end'))),_0x15201b=null),_0x387134++;}return _0x2b226d;}function nn(_0x128e97,_0x2db4c6,_0x303386){if(!_0x303386)return!0x1;const _0xb98e8=_0x128e97['createPositionAfter'](_0x2db4c6),_0xce3263=_0x128e97['createPositionBefore'](_0x303386);return _0xb98e8['isTouching'](_0xce3263);}function rs(_0xe050eb,_0x198154,_0x559400){for(;_0x559400['length'];){const _0x2fa1da=_0x559400['splice'](0x0,0x64);_0xe050eb['change'](()=>{for(const _0xa1d90c of _0x2fa1da)_0xa1d90c['isInContent']&&_0x198154['execute'](_0xa1d90c['id']);});}}class x extends _0x16fb88{['_command'];['_suggestions'];constructor(_0x5e7513,_0x55e288,_0x1ea6ca){super(_0x5e7513),this['_command']=_0x55e288,this['_suggestions']=_0x1ea6ca,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x439e09=Array['from'](this['_suggestions']['values']())['some'](_0x4aa494=>_0x4aa494['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x439e09;}['execute'](){const _0x4a7c47=ts(Array['from'](this['_suggestions']['values']()));for(const _0x481821 of _0x4a7c47){const _0x28a95c=_0x481821['getRanges']();if(!this['editor']['model']['canEditAt'](_0x28a95c))return;}rs(this['editor']['model'],this['_command'],_0x4a7c47);}}class E extends _0x16fb88{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5d1fbc,_0x281ee1,_0x154d7e){super(_0x5d1fbc),this['_command']=_0x281ee1,this['_suggestions']=_0x154d7e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x411020=this['editor']['model']['document']['selection'],_0x118a2e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x127ea7,_0x24ff49){const _0x3cac53=Array['from'](_0x127ea7['getRanges']()),_0x5f09e5=new Set();for(const _0x525647 of _0x24ff49)if(_0x525647['isInContent']){for(const _0x1f6466 of _0x3cac53)for(const _0x5d9532 of _0x525647['getRanges']())(_0x1f6466['isIntersecting'](_0x5d9532)||_0x127ea7['isCollapsed']&&!_0x525647['isMultiRange']&&_0x525647['next']&&_0x5d9532['end']['isTouching'](_0x1f6466['start']))&&_0x5f09e5['add'](_0x525647);}return _0x5f09e5;}(_0x411020,_0x118a2e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x12a9b5=ts(Array['from'](this['_selectedSuggestions']));for(const _0x268424 of _0x12a9b5){const _0x5920a5=_0x268424['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5920a5))return;}rs(this['editor']['model'],this['_command'],_0x12a9b5);}}class R extends/* #__PURE__ -- @preserve */
24
+ _0x50e5df(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3b7d0e,_0x5d048a){super(),this['id']=_0x5d048a['id'],this['type']=_0x5d048a['type'],this['subType']=_0x5d048a['subType']||null,this['author']=_0x5d048a['author'],this['creator']=_0x5d048a['creator']||_0x5d048a['author'],this['isExternal']=Boolean(_0x5d048a['attributes']&&_0x5d048a['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5d048a['originalSuggestionId']||null,this['_model']=_0x3b7d0e,this['_onAccept']=_0x5d048a['onAccept'],this['_onDiscard']=_0x5d048a['onDiscard'],this['_onAttributesChange']=_0x5d048a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5d048a['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 _0x5b012c=this;for(;_0x5b012c['previous'];)_0x5b012c=_0x5b012c['previous'];return _0x5b012c;}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'](_0x37d072){this['_markerNames']['add'](_0x37d072);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xbf9c35=>this['_model']['markers']['get'](_0xbf9c35))['filter'](_0x23f2ca=>_0x23f2ca);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5f2c24=>{for(const _0x42bbfa of this['getMarkers']())_0x5f2c24['removeMarker'](_0x42bbfa);}),this['_markerNames']['clear']();}['removeMarker'](_0x54adda){this['_model']['change'](_0x29debb=>{_0x29debb['removeMarker'](_0x54adda);}),this['_markerNames']['delete'](_0x54adda);}['addRange'](_0x170651){const _0x3aa36e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x3aa36e),this['_model']['change'](_0x5d4fc0=>{_0x5d4fc0['addMarker'](_0x3aa36e,{'range':_0x170651,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x29c5c4){for(const _0x27896e of this['getRanges']())if(_0x27896e['isIntersecting'](_0x29c5c4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3b7d41=>_0x3b7d41['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x739993,_0x567eb8)=>[..._0x739993,..._0x567eb8['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5ab56c=this['getRanges']();if(0x1!=_0x5ab56c['length'])return null;const _0x43058a=_0x5ab56c[0x0],_0x22da95=_0x43058a['start']['nodeAfter'],_0x13d19d=_0x43058a['end']['nodeBefore'];return _0x22da95 instanceof _0x269d0c?_0x22da95!=_0x13d19d?null:_0x22da95: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 _0x593d34=[];let _0x422502=this['head'];for(;_0x422502;)_0x593d34['push'](_0x422502),_0x422502=_0x422502['next'];return _0x593d34;}['setAttribute'](_0x1ba401,_0x519549){const _0x591f57=_0x5493e1(this['attributes']);_0x248dea(_0x591f57,_0x1ba401,_0x519549),_0x18158c(_0x591f57,this['attributes'])||(this['attributes']=_0x591f57,this['_onAttributesChange'](_0x591f57));}['removeAttribute'](_0x1bdf72){const _0x148cf9=_0x5493e1(this['attributes']);_0x482bd1(_0x148cf9,_0x1bdf72),_0x18158c(_0x148cf9,this['attributes'])||(this['attributes']=_0x148cf9,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 _0x172a90()['substr'](0x1,0x5);}}function o(_0x3000a5,_0x1fffc0,_0x11efe0){const _0x2d2e6c=_0x3000a5['t'],t=_0x3000a5['t'];switch(_0x1fffc0){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',_0x11efe0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x11efe0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x11efe0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x11efe0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x11efe0);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',_0x11efe0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x11efe0);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',_0x11efe0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x11efe0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x11efe0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x11efe0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x11efe0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x11efe0);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x11efe0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x11efe0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x11efe0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x11efe0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x11efe0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x11efe0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x11efe0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x11efe0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x11efe0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x11efe0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x11efe0);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x11efe0);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'},_0x11efe0);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x11efe0);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x11efe0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x11efe0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x11efe0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x11efe0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x11efe0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x11efe0);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'},_0x11efe0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x11efe0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x11efe0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x11efe0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x11efe0);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'},_0x11efe0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x11efe0);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'},_0x11efe0);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'},_0x11efe0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x11efe0);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'},_0x11efe0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x11efe0);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'},_0x11efe0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x11efe0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x11efe0);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'},_0x11efe0);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x11efe0);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 _0x2d2e6c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x11efe0);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2d2e6c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x11efe0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x11efe0);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'},_0x11efe0);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'},_0x11efe0);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'},_0x11efe0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1fffc0;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2e56c9,_0x5b6c4c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2e56c9,this['_locale']=_0x5b6c4c;}['getDescriptions'](_0x5b9924){const _0x140cd0=[],_0x373697=new Set(),_0x34a23d=new Set();for(let _0xf69118=0x0;_0xf69118<_0x5b9924['length'];_0xf69118++){const _0x122b76=_0x5b9924[_0xf69118];if(!_0x122b76['isInContent'])continue;const _0x535996=this['_handleCustomCallbackDescription'](_0x122b76);if(_0x535996){if(null!=_0x122b76['subType']){if(_0x373697['has'](_0x122b76['subType']))continue;_0x373697['add'](_0x122b76['subType']);}_0x140cd0['push'](_0x535996);}else{if('attribute'==_0x122b76['type']){const _0x4a453f=_0x122b76['data']['key'];if(_0x34a23d['has'](_0x4a453f))continue;_0x34a23d['add'](_0x122b76['data']['key']),_0x4a453f==m?this['_handleRenameSuggestionDescription'](_0x140cd0,_0x122b76):this['_handleAttributeSuggestionDescription'](_0x140cd0,_0x122b76);continue;}'insertion'!=_0x122b76['type']&&'deletion'!=_0x122b76['type']||this['_handleInsertRemoveSuggestionDescription'](_0x140cd0,_0x122b76,_0x5b9924[_0xf69118+0x1]);}}return this['_resolveDescriptionItems'](_0x140cd0);}['registerDescriptionCallback'](_0x569115){this['_customCallbacks']['push'](_0x569115);}['registerElementLabel'](_0x38ae14,_0x40833e,_0x4d188e=_0x3b0c6e['normal']){'function'==typeof _0x38ae14?_0x3f9b9b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x38ae14,'label':_0x40833e,'priority':_0x4d188e}):this['_itemLabels']['set'](_0x38ae14,_0x40833e);}['registerAttributeLabel'](_0x17c577,_0x3623f6){this['_attributeLabels']['set'](_0x17c577,_0x3623f6);}['getItemLabel'](_0x498c60,_0x2c5df2=0x1){let _0x559f21;for(const _0x452118 of this['_itemLabelsCallbacks'])if(_0x452118['matchingCallback'](_0x498c60)){_0x559f21=_0x452118['label'];break;}return _0x559f21||(_0x559f21=this['_itemLabels']['get'](_0x498c60['name'])),_0x559f21?_0x559f21(_0x2c5df2):0x1!==_0x2c5df2?_0x2c5df2+'\x20'+_0x498c60['name']+'s':''+_0x498c60['name'];}['_addDescriptionItems'](_0x3d5a32,_0x13f6d0){const _0x12ff88=_0x13f6d0['getFirstRange']()['getWalker'](),_0xbe55c2='insertion'==_0x13f6d0['type']?'add':'remove';for(const _0x15ff0d of _0x12ff88){const _0xdee277=_0x15ff0d['item'],_0x38c9c5=_0x3d5a32[_0x3d5a32['length']-0x1];if(_0xdee277['is']('$textProxy'))_0x38c9c5&&_0x38c9c5['type']['indexOf']('Container')>-0x1&&_0x3d5a32['pop'](),_0x38c9c5&&'text'==_0x38c9c5['type']?_0x38c9c5[_0xbe55c2]+=_0xdee277['data']:_0x3d5a32['push']({'type':'text','add':'add'==_0xbe55c2?_0xdee277['data']:'','remove':'remove'==_0xbe55c2?_0xdee277['data']:''});else{if(this['_schema']['isObject'](_0xdee277)){const _0x2f8851=_0xdee277;if(_0x38c9c5&&_0x38c9c5['type']['indexOf']('Container')>-0x1&&_0x3d5a32['pop'](),'elementEnd'==_0x15ff0d['type'])continue;_0x38c9c5&&_0x38c9c5['type']==_0xbe55c2+'Object'&&_0x38c9c5['element']['name']==_0x2f8851['name']?_0x38c9c5['quantity']++:_0x3d5a32['push']({'type':_0xbe55c2+'Object','element':_0x2f8851,'quantity':0x1}),_0x12ff88['skip'](_0x6c4dc2=>!('elementEnd'==_0x6c4dc2['type']&&_0x6c4dc2['item']==_0xdee277));}else{if(this['_schema']['checkChild'](_0xdee277,'$text')||_0xdee277['is']('element','softBreak')){const _0x28a5b6=_0xdee277;if('add'==_0xbe55c2&&'elementStart'==_0x15ff0d['type']||'remove'==_0xbe55c2&&'elementEnd'==_0x15ff0d['type'])continue;if(_0x38c9c5&&-0x1==_0x38c9c5['type']['indexOf']('Container')){'text'==_0x38c9c5['type']&&(_0x38c9c5[_0xbe55c2]+='\x0a');continue;}let _0x7a297c;if(_0x7a297c='add'==_0xbe55c2?_0x28a5b6['nextSibling']&&!this['_schema']['isObject'](_0x28a5b6['nextSibling'])?_0x28a5b6['nextSibling']:null:_0x28a5b6['previousSibling']&&!this['_schema']['isObject'](_0x28a5b6['previousSibling'])?_0x28a5b6['previousSibling']:null,_0x28a5b6['isEmpty']||_0x7a297c&&_0x7a297c['isEmpty']){const _0xe0313=_0x7a297c&&_0x7a297c['isEmpty']?_0x7a297c:_0x28a5b6;_0x38c9c5&&_0x38c9c5['type']==_0xbe55c2+'EmptyContainer'&&_0x38c9c5['element']['name']==_0xe0313['name']?_0x38c9c5['quantity']++:_0x3d5a32['push']({'type':_0xbe55c2+'EmptyContainer','element':_0xe0313,'quantity':0x1});}else _0x3d5a32['push']({'type':_0xbe55c2+'Container','element':_0x28a5b6});}}}}}['_resolveDescriptionItems'](_0x202dbe){const _0x5362f7=this['_locale'],_0x148ca9=[],_0xb4996c=[],_0x2ae9e5=[];for(const _0x400764 of _0x202dbe)switch(_0x400764['type']){case'text':if(_0x400764['add']=_0x400764['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x400764['remove']=_0x400764['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x400764['add']&&''!=_0x400764['remove']){_0x148ca9['push']({'type':'replace','content':o(_0x5362f7,'REPLACE_TEXT',['\x22'+_0x400764['remove']+'\x22','\x22'+_0x400764['add']+'\x22'])});continue;}if(null!=_0x400764['add']['match'](/^ +$/)){_0x148ca9['push']({'type':'insertion','content':o(_0x5362f7,'*Insert:*\x20%0',o(_0x5362f7,'ELEMENT_SPACE',_0x400764['add']['length']))});continue;}if(null!=_0x400764['remove']['match'](/^ +$/)){_0x148ca9['push']({'type':'deletion','content':o(_0x5362f7,'*Remove:*\x20%0',o(_0x5362f7,'ELEMENT_SPACE',_0x400764['remove']['length']))});continue;}if(''!=_0x400764['add']){_0x148ca9['push']({'type':'insertion','content':o(_0x5362f7,'*Insert:*\x20%0','\x22'+_0x400764['add']+'\x22')});continue;}_0x148ca9['push']({'type':'deletion','content':o(_0x5362f7,'*Remove:*\x20%0','\x22'+_0x400764['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x148ca9['push']({'type':'insertion','content':o(_0x5362f7,'*Insert:*\x20%0',this['getItemLabel'](_0x400764['element'],_0x400764['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x148ca9['push']({'type':'deletion','content':o(_0x5362f7,'*Remove:*\x20%0',this['getItemLabel'](_0x400764['element'],_0x400764['quantity']))});continue;case'addContainer':_0x148ca9['push']({'type':'insertion','content':o(_0x5362f7,'*Split:*\x20%0',this['getItemLabel'](_0x400764['element'],_0x400764['quantity']))});continue;case'removeContainer':_0x148ca9['push']({'type':'deletion','content':o(_0x5362f7,'*Merge:*\x20%0',this['getItemLabel'](_0x400764['element'],_0x400764['quantity']))});continue;case'addFormat':_0xb4996c['push'](_0x400764['key']);continue;case'removeFormat':_0x2ae9e5['push'](_0x400764['key']);continue;default:_0x148ca9['push'](_0x400764);}if(_0xb4996c['length']){const _0x1b0763=_0xb4996c['map'](_0x4dfe09=>this['_attributeLabels']['has'](_0x4dfe09)?this['_attributeLabels']['get'](_0x4dfe09):_0x4dfe09)['join'](',\x20');_0x148ca9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1b0763)});}if(_0x2ae9e5['length']){const _0x2143b3=_0x2ae9e5['map'](_0x4b18f8=>this['_attributeLabels']['has'](_0x4b18f8)?this['_attributeLabels']['get'](_0x4b18f8):_0x4b18f8)['join'](',\x20');_0x148ca9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2143b3)});}return _0x148ca9;}['_handleCustomCallbackDescription'](_0x1d56de){for(const _0x544d97 of this['_customCallbacks']){const _0x1c8fd3=_0x544d97(_0x1d56de);if(_0x1c8fd3&&'type'in _0x1c8fd3)return _0x1c8fd3;}}['_handleAttributeSuggestionDescription'](_0x40f1d0,_0x550a34){const _0x1d1c45=_0x550a34['data'],_0x58bca3=void 0x0===_0x1d1c45['newValue']?'removeFormat':'addFormat';_0x40f1d0['push']({'type':_0x58bca3,'key':_0x1d1c45['key']});}['_handleRenameSuggestionDescription'](_0x114f8c,_0x20f019){_0x114f8c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x20f019['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3b53ac,_0x4b4816,_0x22b7f9){if(this['_addDescriptionItems'](_0x3b53ac,_0x4b4816),_0x22b7f9&&_0x22b7f9['getFirstRange']()&&!_0x4b4816['getFirstRange']()['end']['isEqual'](_0x22b7f9['getFirstRange']()['start'])){const _0x17f4b8=_0x3b53ac[_0x3b53ac['length']-0x1],_0x3b8e8a='insertion'==_0x4b4816['type']?'add':'remove';_0x17f4b8&&'text'==_0x17f4b8['type']&&(_0x17f4b8[_0x3b8e8a]+='\x0a');}}}class V extends _0x3f9a7e{['afterInit'](){const _0xf97624=this['editor'],_0xcaad65=_0xf97624['plugins']['get']('TrackChangesEditing');_0xf97624['commands']['get']('showAIAssistant')&&_0xcaad65['enableCommand']('showAIAssistant');}}class F extends _0x3f9a7e{['afterInit'](){const _0x250a09=this['editor'],_0x2f91fc=_0x250a09['plugins']['get']('TrackChangesEditing');_0x250a09['commands']['get']('toggleAi')&&_0x2f91fc['enableCommand']('toggleAi');}}class G extends _0x3f9a7e{['afterInit'](){const _0x34f9e2=this['editor'],_0xd06c9d=_0x34f9e2['plugins']['get']('TrackChangesEditing');_0x34f9e2['commands']['get']('aiQuickAction')&&_0xd06c9d['enableCommand']('aiQuickAction');}}class L extends _0x3f9a7e{['afterInit'](){const _0x3b509e=this['editor'],_0x46b5c3=_0x3b509e['locale'];if(!_0x3b509e['plugins']['has']('AlignmentEditing'))return;const _0x88ec5f=_0x3b509e['plugins']['get']('TrackChangesEditing');_0x88ec5f['enableDefaultAttributesIntegration']('alignment'),_0x88ec5f['registerBlockAttribute']('alignment'),_0x88ec5f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x46b5c3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x549cd1=this['editor'],_0x366174=_0x549cd1['locale'];_0x549cd1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ca200=>{if('formatBlock'!=_0x3ca200['type'])return;const {data:_0x57425e}=_0x3ca200;if(_0x57425e&&'alignment'==_0x57425e['commandName']){const _0x7d80da=_0x57425e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x366174,'*Format:*\x20%0',function(_0x4ac6e1){switch(_0x4ac6e1){case'left':return o(_0x366174,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x366174,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x366174,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x366174,'FORMAT_JUSTIFY_TEXT');}}(_0x7d80da))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class J extends _0x3f9a7e{['afterInit'](){const _0x2fe45e=this['editor'],_0x471ecf=_0x2fe45e['plugins']['get']('TrackChangesEditing'),_0x78ba3a=_0x2fe45e['locale'];for(const _0x55bec4 of ti){if(!_0x2fe45e['plugins']['has'](_0x55bec4))continue;const _0x2aee8b=_0x55bec4['slice'](0x0,-0x7)['toLowerCase'](),_0x31aed2='FORMAT_'+_0x2aee8b['toUpperCase']();_0x471ecf['enableDefaultAttributesIntegration'](_0x2aee8b),_0x471ecf['registerInlineAttribute'](_0x2aee8b),_0x471ecf['descriptionFactory']['registerAttributeLabel'](_0x2aee8b,o(_0x78ba3a,_0x31aed2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x308cc7=this['editor'],_0x58e8d3=_0x308cc7['locale'],_0xe66a6c=_0x308cc7['plugins']['get']('TrackChangesEditing');function _0x3772bc(_0x1ae392,_0x2919b5){_0xe66a6c['descriptionFactory']['registerDescriptionCallback'](_0x449e61=>{if('formatInline'!=_0x449e61['type'])return;const {data:_0x23d586}=_0x449e61;return _0x23d586&&_0x23d586['commandName']===_0x1ae392?_0x23d586['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58e8d3,'*Format:*\x20%0',_0x2919b5)}:{'type':'format','content':o(_0x58e8d3,'*Remove\x20format:*\x20%0',_0x2919b5)}:void 0x0;});}_0x3772bc('bold',o(_0x58e8d3,'FORMAT_BOLD')),_0x3772bc('italic',o(_0x58e8d3,'FORMAT_ITALIC')),_0x3772bc('underline',o(_0x58e8d3,'FORMAT_UNDERLINE')),_0x3772bc('code',o(_0x58e8d3,'FORMAT_CODE')),_0x3772bc('strikethrough',o(_0x58e8d3,'FORMAT_STRIKETHROUGH')),_0x3772bc('subscript',o(_0x58e8d3,'FORMAT_SUBSCRIPT')),_0x3772bc('superscript',o(_0x58e8d3,'FORMAT_SUPERSCRIPT'));}}class K extends _0x3f9a7e{['afterInit'](){const _0x7137d9=this['editor'],_0x513d02=_0x7137d9['locale'];if(!_0x7137d9['plugins']['has']('BlockQuoteEditing'))return;const _0x2d325c=_0x7137d9['plugins']['get']('TrackChangesEditing'),_0x21aeef=this['editor']['commands']['get']('blockQuote');_0x2d325c['enableCommand']('blockQuote',(_0x3d6c84,_0x29ee09={})=>{const _0x2bdf8d=this['editor']['model']['document']['selection'],_0x6020c=_0x29ee09&&void 0x0!==_0x29ee09['forceValue']?_0x29ee09['forceValue']:!_0x21aeef['value'];let _0x863ff4=[];if(_0x6020c){const _0x41c767=Array['from'](_0x2bdf8d['getSelectedBlocks']())['filter'](_0x1abc1e=>oo(_0x1abc1e)||function(_0x2df508,_0x2208eb){const _0x36dabe=_0x2208eb['checkChild'](_0x2df508['parent'],'blockQuote'),_0x1f5dcb=_0x2208eb['checkChild'](['$root','blockQuote'],_0x2df508);return _0x36dabe&&_0x1f5dcb;}(_0x1abc1e,this['editor']['model']['schema']));_0x863ff4=to(_0x41c767,_0x7137d9['model']);}else{const _0x3d7f08=Array['from'](_0x2bdf8d['getSelectedBlocks']())['filter'](_0x30b9be=>oo(_0x30b9be));_0x863ff4=to(_0x3d7f08,_0x7137d9['model']);}_0x7137d9['model']['change'](()=>{for(const _0x5c6167 of _0x863ff4)_0x2d325c['markBlockFormat'](_0x5c6167,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x6020c}]});});}),_0x2d325c['descriptionFactory']['registerDescriptionCallback'](_0x1b81ca=>{const {data:_0x32620d}=_0x1b81ca;if(_0x32620d&&'blockQuote'==_0x32620d['commandName']){const _0x29162e=o(_0x513d02,'ELEMENT_BLOCK_QUOTE');return _0x32620d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x513d02,'*Set\x20format:*\x20%0',_0x29162e)}:{'type':'format','content':o(_0x513d02,'*Remove\x20format:*\x20%0',_0x29162e)};}});}}function oo(_0x55cfd3){return'blockQuote'==_0x55cfd3['parent']['name'];}class q extends _0x3f9a7e{['afterInit'](){const _0x148c3d=this['editor'],_0x2f24fc=_0x148c3d['locale'],_0x5ce0cd=_0x148c3d['plugins']['get']('TrackChangesEditing');_0x148c3d['plugins']['has']('BookmarkEditing')&&(_0x5ce0cd['enableCommand']('insertBookmark'),_0x5ce0cd['enableDefaultAttributesIntegration']('updateBookmark'),_0x5ce0cd['registerBlockAttribute']('bookmarkId'),_0x5ce0cd['descriptionFactory']['registerDescriptionCallback'](_0x4e79b9=>{if('insertion'!=_0x4e79b9['type']&&'deletion'!=_0x4e79b9['type']&&'attribute'!=_0x4e79b9['type'])return;const _0x152b5d=_0x4e79b9['getContainedElement']();if(null==_0x152b5d)return;if(!_0x152b5d['is']('element','bookmark'))return;const _0x593629=_0x152b5d['getAttribute']('bookmarkId');if('insertion'==_0x4e79b9['type'])return{'type':'insertion','content':o(_0x2f24fc,'*Insert:*\x20%0','\x22'+_0x593629+'\x22\x20'+o(_0x2f24fc,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4e79b9['type'])return{'type':'deletion','content':o(_0x2f24fc,'*Remove:*\x20%0','\x22'+_0x593629+'\x22\x20'+o(_0x2f24fc,'ELEMENT_BOOKMARK'))};const {data:_0x2d6a3a}=_0x4e79b9;if(!_0x2d6a3a||'bookmarkId'!=_0x2d6a3a['key'])return;return{'type':'format','content':o(_0x2f24fc,'*Set\x20bookmark:*\x20%0','\x22'+_0x2d6a3a['newValue']+'\x22')};}));}}class H extends _0x3f9a7e{['afterInit'](){const _0x100a97=this['editor'];_0x100a97['plugins']['has']('CaseChange')&&(_0x100a97['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x100a97['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x100a97['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0x3f9a7e{['afterInit'](){const _0x2b76ed=this['editor'];_0x2b76ed['commands']['get']('ckbox')&&_0x2b76ed['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class z extends _0x3f9a7e{['afterInit'](){const _0x2d5ff6=this['editor'];if(!_0x2d5ff6['plugins']['has']('CodeBlock'))return;const _0x19f628=_0x2d5ff6['plugins']['get']('TrackChangesEditing'),_0x5ae051=_0x2d5ff6['locale'],_0x4f4b92=_0x2d5ff6['config']['get']('codeBlock')['languages'],_0x52d6a4=_0x2d5ff6['commands']['get']('codeBlock');_0x19f628['enableCommand']('indentCodeBlock'),_0x19f628['enableCommand']('outdentCodeBlock'),_0x19f628['enableCommand']('codeBlock',(_0x13d708,_0x566bf1={})=>{const _0x78c197=_0x2d5ff6['model'],_0x4948b5=_0x2d5ff6['model']['document']['selection'],_0x3fe899=_0x566bf1&&void 0x0!==_0x566bf1['forceValue']?_0x566bf1['forceValue']:!_0x52d6a4['value'];let _0x2e894c;_0x566bf1['language']||(_0x566bf1['language']=_0x4f4b92[0x0]['language']),_0x2e894c=_0x3fe899?Array['from'](_0x4948b5['getSelectedBlocks']())['filter'](_0x4d8ba5=>co(_0x4d8ba5)||function(_0x31e821,_0x378add){if(_0x31e821['is']('rootElement')||_0x378add['isLimit'](_0x31e821))return!0x1;return _0x378add['checkChild'](_0x31e821['parent'],'codeBlock');}(_0x4d8ba5,_0x78c197['schema'])):Array['from'](_0x4948b5['getSelectedBlocks']())['filter'](_0xe21679=>co(_0xe21679));const _0x56f00e=to(_0x2e894c,_0x78c197);_0x78c197['change'](()=>{for(const _0x4f4f33 of _0x56f00e)_0x19f628['markBlockFormat'](_0x4f4f33,{'commandName':'codeBlock','commandParams':[{..._0x566bf1,'forceValue':_0x3fe899}],'formatGroupId':'blockName'});});}),(_0x19f628['descriptionFactory']['registerElementLabel']('codeBlock',_0x15488f=>o(_0x5ae051,'ELEMENT_CODE_BLOCK',_0x15488f)),_0x19f628['descriptionFactory']['registerDescriptionCallback'](_0x49e883=>{if('formatBlock'!=_0x49e883['type'])return;const _0x2db6a5=_0x5ae051['t'],{data:_0xad9d53}=_0x49e883;if(!_0xad9d53||'codeBlock'!=_0xad9d53['commandName'])return;const _0x536899=_0xad9d53['commandParams'][0x0]['language'],_0x140cfc=_0x2db6a5(_0x4f4b92['find'](_0xc0db3f=>_0xc0db3f['language']===_0x536899)['label'])['toLowerCase']();return _0xad9d53['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ae051,'*Set\x20format:*\x20%0',o(_0x5ae051,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x140cfc+')')}:{'type':'format','content':o(_0x5ae051,'*Remove\x20format:*\x20%0',o(_0x5ae051,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x15582e){return'codeBlock'==_0x15582e['name'];}class Q extends _0x3f9a7e{['afterInit'](){const _0x442a2f=this['editor'];if(!_0x442a2f['plugins']['has']('CommentsEditing'))return;_0x442a2f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x338876,_0x4fe109,_0x5ea6fe){const _0x536e98=[];for(const _0x10de17 of _0x4fe109['getItems']())_0x10de17['hasAttribute'](_0x338876)&&_0x536e98['push'](_0x5ea6fe['createRangeOn'](_0x10de17));return _0x536e98;}function Ve(_0x32df0c,_0xebb91e,{showActiveMarker:_0x15c120=!0x0}={}){const _0x2428e1=_0x32df0c['plugins']['get']('TrackChangesEditing');return(_0x3a918c,_0x4c45e7,_0x79dfad)=>{if(!_0x79dfad['consumable']['test'](_0x4c45e7['markerRange'],_0x3a918c['name']))return;const _0x526bbd=_0x4c45e7['markerRange']['getWalker'](),_0x1de047=_0x4c45e7['markerRange']['start'],_0x364e3c=_0x32df0c['model']['schema'];let _0x492de8=null,_0x4b5df7=null,_0x1170e3=!0x1,_0xa27d7b=!0x1;for(const _0x55749e of _0x526bbd){const _0x59678e=_0x55749e['item'];_0x1170e3=_0x1170e3||_0x364e3c['isContent'](_0x59678e);const _0x4483c0=_0x79dfad['mapper']['toViewElement'](_0x59678e);if(_0x4483c0&&_0x4483c0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x55749e['type']&&(_0x364e3c['isBlock'](_0x59678e)&&!_0x364e3c['isLimit'](_0x59678e)&&(_0x59678e['nextSibling']||_0x1de047['isAtEnd']?_0x492de8&&_0x492de8['parent']==_0x59678e||(_0x492de8=_0x59678e,_0x1f7961(_0x55749e['previousPosition']),_0xa27d7b=!0x0):_0x4b5df7=_0x4b5df7||_0x55749e['previousPosition']));}function _0x1f7961(_0x1dab7a){const {id:_0x3c6363,authorId:_0x31fcdc}=_0x2428e1['_splitMarkerName'](_0x4c45e7['markerName']),_0x54b718=_0x79dfad['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xebb91e,'data-suggestion':_0x3c6363,'data-author-id':_0x31fcdc}),_0x38ec79=_0x79dfad['mapper']['toViewPosition'](_0x1dab7a);_0x15c120&&_0x2428e1['activeMarkers']['includes'](_0x4c45e7['markerName'])&&_0x79dfad['writer']['addClass']('ck-suggestion-marker--active',_0x54b718),_0x79dfad['writer']['insert'](_0x38ec79,_0x54b718),_0x79dfad['mapper']['bindElementToMarker'](_0x54b718,_0x4c45e7['markerName']);}_0x1170e3||_0xa27d7b||!_0x4b5df7||_0x1f7961(_0x4b5df7);};}class X extends _0x3f9a7e{static get['requires'](){return[_0x352fd8];}['init'](){const _0x4a7277=this['editor'],_0x12c7cd=_0x4a7277['plugins']['get']('TrackChangesEditing');_0x12c7cd['enableCommand']('delete');const _0x5a3693=_0x4a7277['commands']['get']('deleteForward');_0x12c7cd['enableCommand']('deleteForward',(_0x33a566,_0x1e9ae4={})=>{const _0x281e87=_0x4a7277['model']['createSelection'](_0x4a7277['model']['document']['selection']);_0x281e87['isCollapsed']&&_0x4a7277['model']['modifySelection'](_0x281e87,{'direction':'forward','unit':_0x1e9ae4['unit']});const _0x29bcc5=_0x281e87['getFirstRange'](),_0x100098=_0x360709['fromRange'](_0x29bcc5);let _0xf6415e;_0x33a566(_0x1e9ae4),_0xf6415e='$graveyard'==_0x100098['root']['rootName']?_0x4a7277['model']['createRange'](_0x29bcc5['start']):_0x4a7277['model']['createRange'](_0x100098['start'],_0x100098['end']),_0x100098['detach'](),_0x4a7277['model']['enqueueChange'](_0x5a3693['buffer']['batch'],_0x33f121=>{_0x5a3693['buffer']['lock'](),_0x33f121['setSelection'](_0x33f121['createRange'](_0xf6415e['end'])),_0x5a3693['buffer']['unlock']();});}),_0x4a7277['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ve(_0x4a7277,'merge'),{'priority':'high'}),_0x4a7277['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x7e34c9,_0x41387b,_0xbe759)=>{_0xbe759['options']['showSuggestionHighlights']&&Ve(_0x4a7277,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x7e34c9,_0x41387b,_0xbe759);},{'priority':'high'}),_0x4a7277['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5a4a6c,_0x1ac851,_0x25eb0e)=>{const _0x2aa09e=_0x25eb0e['mapper']['markerNameToElements'](_0x1ac851['markerName']);if(_0x2aa09e){for(const _0x12b87d of _0x2aa09e)_0x12b87d['is']('uiElement')&&(_0x25eb0e['mapper']['unbindElementFromMarkerName'](_0x12b87d,_0x1ac851['markerName']),_0x25eb0e['writer']['remove'](_0x12b87d));}},{'priority':'high'});}}class Y extends _0x3f9a7e{['afterInit'](){const _0x350752=this['editor'];if(!_0x350752['plugins']['has']('ListEditing'))return;const _0x77403a=_0x350752['locale'],_0x231690=_0x350752['plugins']['get']('TrackChangesEditing'),_0x3472cd=_0x350752['plugins']['has']('TodoListEditing'),_0x2443d9=!!_0x350752['config']['get']('list.multiBlock');function _0x53a52f(_0x2a7442){return{'type':'format','content':''+o(_0x77403a,'*Set\x20format:*\x20%0',_0x2a7442)};}function _0x441696(_0x3e3cf1){return{'type':'format','content':''+o(_0x77403a,'*Remove\x20format:*\x20%0',_0x3e3cf1)};}_0x231690['enableDefaultAttributesIntegration']('numberedList'),_0x231690['enableDefaultAttributesIntegration']('bulletedList'),_0x231690['enableDefaultAttributesIntegration']('customNumberedList'),_0x231690['enableDefaultAttributesIntegration']('customBulletedList'),_0x231690['enableDefaultAttributesIntegration']('indentList'),_0x231690['enableDefaultAttributesIntegration']('outdentList'),_0x231690['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x231690['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x231690['registerBlockAttribute']('listItemId'),_0x231690['registerBlockAttribute']('listType'),_0x231690['registerBlockAttribute']('listIndent'),_0x2443d9&&(_0x231690['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x231690['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3472cd&&(_0x231690['enableDefaultAttributesIntegration']('todoList'),_0x231690['enableDefaultAttributesIntegration']('checkTodoList'),_0x231690['registerBlockAttribute']('todoListChecked'),_0x231690['descriptionFactory']['registerDescriptionCallback'](_0x91f713=>{const {data:_0x59e353}=_0x91f713;if(_0x59e353&&'todoListChecked'==_0x59e353['key'])return{'type':'format','content':_0x59e353['newValue']?o(_0x77403a,'*Check\x20item*'):o(_0x77403a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xaad6cd=>{if(_0xaad6cd['batch']['isUndo'])return!0x1;let _0x11ac57=!0x1;const _0x1e0f57=_0x231690['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x143b56=>'todoListChecked'===_0x231690['_getAttributeKey'](_0x143b56));for(const _0x50c442 of _0x1e0f57){'todo'!=_0x50c442['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x231690['_findSuggestions'](_0x50c442['getFirstRange'](),'attribute')['find'](_0x48268f=>'listType'===_0x231690['_getAttributeKey'](_0x48268f['suggestion']))||(_0xaad6cd['removeMarker'](_0x50c442['getFirstMarker']()),_0x11ac57=!0x0));}return _0x11ac57;})),_0x231690['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x77403a,'FORMAT_INDENT'));const _0x450e2e={'type':'format','content':''};_0x231690['descriptionFactory']['registerDescriptionCallback'](_0xc9d48c=>{const {data:_0x38f155}=_0xc9d48c;if(!_0x38f155||'listType'!=_0x38f155['key'])return;let _0x5bc603=_0xc9d48c['head'];for(;_0x5bc603;){if(_0x5bc603['data']&&(('listStyle'==_0x5bc603['data']['key']||'listMarkerStyle'==_0x5bc603['data']['key'])&&(_0x5bc603['data']['newValue']&&'default'!=_0x5bc603['data']['newValue']||'default'!=_0x5bc603['data']['oldValue']&&!_0x38f155['newValue'])||!_0x2443d9&&_0x5bc603['data']['key']==m))return _0x450e2e;_0x5bc603=_0x5bc603['next'];}if(null==_0x38f155['newValue'])switch(_0x38f155['oldValue']){case'bulleted':return _0x441696(o(_0x77403a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x441696(o(_0x77403a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x441696(o(_0x77403a,'ELEMENT_TODO_LIST'));}switch(_0x38f155['newValue']){case'bulleted':return _0x53a52f(o(_0x77403a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x53a52f(o(_0x77403a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x53a52f(o(_0x77403a,'ELEMENT_TODO_LIST'));}}),_0x231690['descriptionFactory']['registerDescriptionCallback'](_0x4d0b73=>{const {data:_0x2cd95e}=_0x4d0b73;if(_0x2cd95e&&'listIndent'==_0x2cd95e['key'])return null==_0x2cd95e['newValue']||null==_0x2cd95e['oldValue']&&0x0==_0x2cd95e['newValue']?_0x450e2e:void 0x0;}),_0x231690['descriptionFactory']['registerDescriptionCallback'](_0x2a7441=>{if('attribute'!=_0x2a7441['type'])return;const {data:_0x1daad8}=_0x2a7441;if(!_0x1daad8||'listItemId'!=_0x1daad8['key'])return;const _0x4b7433=Be(_0x2a7441);return'newValue'==_0x4b7433?{'type':'format','content':o(_0x77403a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4b7433?{'type':'format','content':o(_0x77403a,'*Split:*\x20list\x20item')}:_0x450e2e;}),_0x350752['model']['document']['registerPostFixer'](_0x419bb4=>this['listItemIdFixer'](_0x419bb4)),_0x350752['model']['document']['registerPostFixer'](_0x4c9cb7=>this['noTrackChangesFixer'](_0x4c9cb7)),_0x350752['model']['document']['on']('change:data',(_0x132f3e,_0x592116)=>{if(_0x592116['isUndo']||!_0x592116['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1181b){if(_0x1181b['batch']['isUndo']||!_0x1181b['batch']['isLocal'])return!0x1;let _0x575c6e=!0x1;const _0x55502f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x155a05=>_0x155a05['data']&&'listItemId'==_0x155a05['data']['key'])['filter'](_0x51173f=>_0x51173f['data']['newValue']&&_0x51173f['data']['oldValue']);for(const _0x280821 of _0x55502f)Be(_0x280821)||(_0x1181b['removeMarker'](_0x280821['getFirstMarker']()),_0x575c6e=!0x0);return _0x575c6e;}['noTrackChangesFixer'](_0x11db39){if(_0x11db39['batch']['isUndo']||!_0x11db39['batch']['isLocal'])return!0x1;const _0x4021ff=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4021ff['trackChangesCommand']['value'])return!0x1;let _0x21d8dd=!0x1;const _0x432225=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4eb37d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x37fcdc=>'attribute'==_0x37fcdc['type'])['filter'](_0x4df2fa=>_0x432225['includes'](_0x4df2fa['attributeKey']));if(0x0==_0x4eb37d['length'])return _0x21d8dd;for(const _0x5bc3de of _0x4eb37d){const _0x5abe6e=_0x4021ff['_findSuggestions'](_0x5bc3de['range'],'attribute')['filter'](_0x40ff23=>!_0x40ff23['meta']['isNextTo'])['map'](_0x3eb08f=>_0x3eb08f['suggestion'])['filter'](_0x2489f8=>{const _0x4d39b3=_0x4021ff['_getAttributeKey'](_0x2489f8);return _0x432225['includes'](_0x4d39b3);});if(_0x5abe6e['length']){for(const _0x470663 of _0x5abe6e)_0x11db39['removeMarker'](_0x470663['getFirstMarker']());_0x21d8dd=!0x0;}}return _0x21d8dd;}['assureChains'](){const _0x15b28e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3034e6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4260a7;const _0x4f6a12=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x185492=>{if(_0x185492['data']['oldRange']||!_0x185492['data']['newRange'])return null;if(!_0x185492['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4368dd}=_0x15b28e['_splitMarkerName'](_0x185492['name']);if(!_0x15b28e['hasSuggestion'](_0x4368dd))return null;const _0x2b9bdd=_0x15b28e['getSuggestion'](_0x4368dd);return _0x3034e6['includes'](_0x2b9bdd['data']['key']);})['map'](_0x550f67=>{const {id:_0x316411}=_0x15b28e['_splitMarkerName'](_0x550f67['name']),_0xefc255=_0x15b28e['getSuggestion'](_0x316411);return _0x4260a7=_0xefc255['attributes']['groupId'],_0xefc255['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4f6a12['size'])return;const _0x2f7969=_0x15b28e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e9aca=>'attribute'==_0x4e9aca['type']&&_0x4e9aca['data']&&_0x3034e6['includes'](_0x4e9aca['data']['key'])&&_0x4e9aca['attributes']['groupId']!=_0x4260a7)['map'](_0x34d16b=>({'listItem':_0x34d16b['getFirstRange']()['start']['nodeAfter'],'groupId':_0x34d16b['attributes']['groupId']})),_0x24c131=new Set();for(const {groupId:_0x3f2f87,listItem:_0xd18972}of _0x2f7969)_0x4f6a12['has'](_0xd18972)&&_0x24c131['add'](_0x3f2f87);for(const _0xeb444b of _0x15b28e['getSuggestions']())_0x24c131['has'](_0xeb444b['attributes']['groupId'])&&_0xeb444b['setAttribute']('groupId',_0x4260a7);}['_supportLegacySuggestions'](){const _0x325a4b=this['editor'],_0x4b5d2b=_0x325a4b['locale'],_0x25a7b8=_0x325a4b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x25a7b8['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x31cd06,_0x2102b4){const _0x24568d=[];for(let _0x30921b of _0x31cd06)_0x30921b['start']['nodeAfter']===_0x30921b['end']['parent']&&(_0x30921b=_0x325a4b['model']['createRange'](_0x325a4b['model']['createPositionAt'](_0x30921b['start']['nodeAfter'],0x0))),_0x24568d['push'](_0x30921b);_0x325a4b['model']['change'](_0x289f1f=>{const _0x188496=_0x325a4b['model']['document']['selection'],_0x2d56a7=Array['from'](_0x188496['getRanges']())['map'](_0x4e787b=>_0x360709['fromRange'](_0x4e787b));_0x289f1f['setSelection'](_0x24568d),_0x325a4b['commands']['get'](_0x2102b4['commandName'])['refresh'](),_0x2102b4['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x325a4b['execute'](_0x2102b4['commandName'],..._0x2102b4['commandParams']),_0x289f1f['setSelection'](_0x2d56a7);for(const _0x4f2604 of _0x2d56a7)_0x4f2604['detach']();});}),_0x25a7b8['descriptionFactory']['registerElementLabel'](function(_0x13c3e3){const _0x554135=!_0x325a4b['model']['schema']['isObject'](_0x13c3e3),_0x3d54f6=_0x13c3e3['previousSibling'],_0x2f5df8=_0x13c3e3['nextSibling'],_0x1bb288=_0x13c3e3['getAttribute']('listItemId'),_0x4f50d7=!_0x3d54f6||_0x3d54f6['getAttribute']('listItemId')!==_0x1bb288,_0x250798=!_0x2f5df8||_0x2f5df8['getAttribute']('listItemId')!==_0x1bb288;return _0x554135&&Boolean(_0x1bb288)&&_0x4f50d7&&_0x250798;},_0x31370f=>o(_0x4b5d2b,'ELEMENT_LIST_ITEM',_0x31370f));}['_registerLegacyDescription'](){const _0x23e006=this['editor'],_0x557baa=_0x23e006['locale'];function _0x2d6677(_0x2c6fbe){const _0x26753e=_0x23e006['commands']['get']('bulletedList')['value'],_0x2ac8f6=_0x23e006['commands']['get']('numberedList')['value'];return'numberedList'===_0x2c6fbe?_0x26753e:_0x2ac8f6;}_0x23e006['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3a17e7){if('formatBlock'!=_0x3a17e7['type'])return;const {data:_0x17b6e6}=_0x3a17e7;if(!_0x17b6e6)return;let _0x16f270,_0x46addf,_0x8e13a1,_0x2bad31;switch(_0x17b6e6['commandName']){case'bulletedList':_0x8e13a1=_0x17b6e6['commandParams'][0x0]['forceValue'],_0x2bad31=_0x2d6677(_0x17b6e6['commandName']),_0x16f270=_0x8e13a1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2bad31&&_0x23e006['config']['get']('list.multiBlock')||(_0x16f270='*Change\x20to:*\x20%0'),_0x46addf={'type':'format','content':o(_0x557baa,_0x16f270,o(_0x557baa,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x8e13a1=_0x17b6e6['commandParams'][0x0]['forceValue'],_0x2bad31=_0x2d6677(_0x17b6e6['commandName']),_0x16f270=_0x8e13a1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2bad31&&_0x23e006['config']['get']('list.multiBlock')||(_0x16f270='*Change\x20to:*\x20%0'),_0x46addf={'type':'format','content':o(_0x557baa,_0x16f270,o(_0x557baa,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x16f270='*Indent:*\x20%0',_0x46addf={'type':'format','content':o(_0x557baa,_0x16f270,o(_0x557baa,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x16f270=function(_0x41a0f5){const _0x176eda=_0x41a0f5['getFirstRange']();let _0x221f78=_0x176eda['start']['nodeAfter'];for(;_0x221f78&&_0x176eda['containsItem'](_0x221f78);){if(_0x221f78['getAttribute']('listIndent')>0x0)return!0x1;_0x221f78=_0x221f78['nextSibling'];}return!0x0;}(_0x3a17e7)?o(_0x557baa,'*Format:*\x20remove\x20from\x20%0',o(_0x557baa,function(_0xa8a8ee){return'ELEMENT_'+_0xa8a8ee['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3a17e7))):o(_0x557baa,'*Outdent:*\x20%0',o(_0x557baa,'ELEMENT_LIST_ITEM')),_0x46addf={'type':'format','content':_0x16f270};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x17b6e6['multipleBlocks']&&(_0x16f270='*Merge:*\x20%0',_0x46addf={'type':'deletion','content':o(_0x557baa,_0x16f270,o(_0x557baa,'ELEMENT_LIST_ITEM'))});}return _0x46addf;});}}function Be(_0xe5771d){let _0x23f673=_0xe5771d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x23f673;){const _0x1d8c78=_0x23f673['getAttribute']('listItemId');if(!_0x1d8c78)return!0x1;if(_0x1d8c78==_0xe5771d['data']['newValue'])return'newValue';if(_0x1d8c78==_0xe5771d['data']['oldValue'])return'oldValue';_0x23f673=_0x23f673['previousSibling'];}return!0x1;}class Z extends _0x3f9a7e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1f1101=this['editor']['config']['get']('list.properties'),_0x2e2120=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f1101['styles']&&(_0x2e2120['enableDefaultAttributesIntegration']('listStyle'),_0x2e2120['registerBlockAttribute']('listStyle')),_0x1f1101['reversed']&&(_0x2e2120['enableDefaultAttributesIntegration']('listReversed'),_0x2e2120['registerBlockAttribute']('listReversed')),_0x1f1101['startIndex']&&(_0x2e2120['enableDefaultAttributesIntegration']('listStart'),_0x2e2120['registerBlockAttribute']('listStart'));const _0x215d97={'type':'format','content':''};_0x2e2120['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2722f4=this['editor']['locale'];_0x2e2120['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2722f4,'FORMAT_LIST_REVERSED')),_0x2e2120['descriptionFactory']['registerDescriptionCallback'](_0x21139d=>{const {data:_0x1bb6c8}=_0x21139d;if(_0x1bb6c8&&'listReversed'==_0x1bb6c8['key'])return null==_0x1bb6c8['newValue']||0x0==_0x1bb6c8['newValue']&&null==_0x1bb6c8['oldValue']?_0x215d97:void 0x0;}),_0x2e2120['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2722f4,'FORMAT_LIST_START')),_0x2e2120['descriptionFactory']['registerDescriptionCallback'](_0x58a69e=>{const {data:_0x5bbe1f}=_0x58a69e;if(_0x5bbe1f&&'listStart'==_0x5bbe1f['key'])return null==_0x5bbe1f['newValue']||0x1==_0x5bbe1f['newValue']&&null==_0x5bbe1f['oldValue']?_0x215d97:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x289138=>{if(_0x289138['batch']['isUndo'])return!0x1;let _0x374232=!0x1;const _0x1d0ef0=_0x2e2120['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41489e=>{const _0x20ad6e=_0x2e2120['_getAttributeKey'](_0x41489e);return'listStart'==_0x20ad6e||'listReversed'==_0x20ad6e;});for(const _0x5e001d of _0x1d0ef0){const _0x4b4a7b=_0x5e001d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4b4a7b||'customNumbered'==_0x4b4a7b)continue;_0x2e2120['_findSuggestions'](_0x5e001d['getFirstRange'](),'attribute')['find'](_0x2a1252=>'listType'==_0x2e2120['_getAttributeKey'](_0x2a1252['suggestion']))||(_0x289138['removeMarker'](_0x5e001d['getFirstMarker']()),_0x374232=!0x0);}return _0x374232;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x53631e){const _0x3d68ab=this['editor']['locale'],{data:_0x362c4e}=_0x53631e,_0x4d8790={'type':'format','content':''};if(!_0x362c4e||'listStyle'!=_0x362c4e['key'])return;if(!_0x362c4e['oldValue'])return'default'==_0x362c4e['newValue']?_0x4d8790:{'type':'format','content':''+o(_0x3d68ab,'*Set\x20format:*\x20%0',o(_0x3d68ab,this['_getTranslationKeyForListStyle'](_0x362c4e['newValue'])))};if(!_0x362c4e['newValue']){if('default'==_0x362c4e['oldValue'])return _0x4d8790;let _0x330bbf=_0x53631e['head'];for(;_0x330bbf;){if(_0x330bbf['data']&&'listType'==_0x330bbf['data']['key']&&_0x330bbf['data']['newValue'])return _0x4d8790;_0x330bbf=_0x330bbf['next'];}return{'type':'format','content':''+o(_0x3d68ab,'*Remove\x20format:*\x20%0',o(_0x3d68ab,this['_getTranslationKeyForListStyle'](_0x362c4e['oldValue'])))};}if('default'!=_0x362c4e['newValue'])return{'type':'format','content':''+o(_0x3d68ab,'*Set\x20format:*\x20%0',o(_0x3d68ab,this['_getTranslationKeyForListStyle'](_0x362c4e['newValue'])))};let _0x450650=_0x53631e['head'];for(;_0x450650;){if(_0x450650['data']&&'listType'==_0x450650['data']['key']&&_0x450650['data']['newValue']&&_0x450650['data']['oldValue'])return _0x4d8790;_0x450650=_0x450650['next'];}return{'type':'format','content':o(_0x3d68ab,'*Set\x20format:*\x20%0',o(_0x3d68ab,'ELEMENT_'+_0x53631e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x28d2a1=this['editor'],_0x5c1f58=_0x28d2a1['locale'];_0x28d2a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bd43c=>{if('formatBlock'!=_0x3bd43c['type'])return;const {data:_0x13ba0b}=_0x3bd43c;if(!_0x13ba0b)return;let _0x52a7f5,_0x4b9f8d;switch(_0x13ba0b['commandName']){case'listStyle':_0x52a7f5='*Change\x20to:*\x20%0',_0x4b9f8d={'type':'format','content':o(_0x5c1f58,_0x52a7f5,o(_0x5c1f58,this['_getTranslationKeyForListStyle'](_0x13ba0b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x52a7f5=_0x13ba0b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4b9f8d={'type':'format','content':o(_0x5c1f58,_0x52a7f5)};break;case'listStart':_0x52a7f5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4b9f8d={'type':'format','content':o(_0x5c1f58,_0x52a7f5,_0x13ba0b['commandParams'][0x0]['startIndex'])};}return _0x4b9f8d;});}['_getTranslationKeyForListStyle'](_0xe1a66c){return'ELEMENT_'+function(_0x7edc20){if(Re['includes'](_0x7edc20))return'bulleted';if(De['includes'](_0x7edc20))return'numbered';return null;}(_0xe1a66c)['toUpperCase']()+'_LIST_'+_0xe1a66c['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],De=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class tt extends _0x3f9a7e{['afterInit'](){const _0x26ac2a=this['editor'];_0x26ac2a['commands']['get']('emoji')&&_0x26ac2a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class et extends _0x3f9a7e{static get['requires'](){return[_0x5b64da];}['init'](){const _0x559e20=this['editor'],_0x367c34=_0x559e20['plugins']['get']('TrackChangesEditing'),_0x326958=_0x559e20['commands']['get']('enter');_0x367c34['enableCommand']('enter',()=>{_0x559e20['model']['change'](_0x358b7d=>{const _0x44eda5=_0x559e20['model']['document']['selection'],_0x5143e2=_0x44eda5['getFirstPosition'](),_0x39c53e=_0x360709['fromRange'](_0x44eda5['getFirstRange']());if(_0x326958['enterBlock'](_0x358b7d)){const _0x42e5e2=_0x559e20['model']['createPositionAt'](_0x5143e2['parent']['nextSibling'],0x0),_0x15b377=_0x358b7d['createRange'](_0x5143e2,_0x42e5e2);_0x367c34['markInsertion'](_0x15b377);}else _0x358b7d['setSelection'](_0x358b7d['createRange'](_0x39c53e['end']));_0x39c53e['detach'](),_0x326958['fire']('afterExecute',{'writer':_0x358b7d});});}),_0x559e20['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ve(_0x559e20,'split'),{'priority':'high'}),_0x559e20['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3928b3,_0x3540dd,_0x30e121)=>{const _0x5b6ea8=_0x30e121['mapper']['markerNameToElements'](_0x3540dd['markerName']);if(_0x5b6ea8){for(const _0x5a0e3a of _0x5b6ea8)_0x5a0e3a['hasClass']('ck-suggestion-marker-split')&&(_0x30e121['mapper']['unbindElementFromMarkerName'](_0x5a0e3a,_0x3540dd['markerName']),_0x30e121['writer']['remove'](_0x5a0e3a));}},{'priority':'high'}),_0x559e20['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x75bea6,_0x1662ad,_0x54e3d7)=>{_0x54e3d7['options']['showSuggestionHighlights']&&Ve(_0x559e20,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x75bea6,_0x1662ad,_0x54e3d7);},{'priority':'high'});}}class it extends _0x3f9a7e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x214a4a=this['editor']['plugins']['get']('TrackChangesEditing');_0x214a4a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x214a4a['enableCommand']('findNext'),_0x214a4a['enableCommand']('findPrevious'),_0x214a4a['enableCommand']('replace'),_0x214a4a['enableCommand']('replaceAll');}['handleFindCommand'](_0x2c79dc,_0x51275b,_0x2ec10b={}){const _0x2eed40=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2c79dc(_0x3c509b=>{let _0x558ae3=('string'==typeof _0x51275b?_0x2eed40['findByTextCallback'](_0x51275b,_0x2ec10b):_0x51275b)(_0x3c509b);Array['isArray'](_0x558ae3)&&(_0x558ae3={'results':_0x558ae3,'searchText':'string'==typeof _0x51275b?_0x51275b:''});const _0x51e058=_0x558ae3['results']['filter'](_0x57aa38=>!0x1===this['_isInDeletionRange'](_0x57aa38,_0x3c509b['item']));return{..._0x558ae3,'results':_0x51e058};},_0x2ec10b);}['_isInDeletionRange'](_0x5e3686,_0x2017f7){const _0x4491de=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2017f7,_0x5e3686['start']),this['editor']['model']['createPositionAt'](_0x2017f7,_0x5e3686['end']));for(const _0xd9e9d2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4491de['getIntersection'](_0xd9e9d2['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class nt extends _0x3f9a7e{['afterInit'](){const _0x4c7ecc=this['editor']['locale'],_0x4ae208=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x29c1cb,commandName:_0x35f4f5}of eo)this['editor']['plugins']['has'](_0x29c1cb)&&(_0x4ae208['enableDefaultAttributesIntegration'](_0x35f4f5),_0x4ae208['registerInlineAttribute'](_0x35f4f5));_0x4ae208['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4c7ecc,'FORMAT_FONT_SIZE')),_0x4ae208['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4c7ecc,'FORMAT_FONT_FAMILY')),_0x4ae208['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4c7ecc,'FORMAT_FONT_COLOR')),_0x4ae208['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4c7ecc,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1420e1=this['editor'],_0x10ed2d=_0x1420e1['locale'];_0x1420e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b31ce=>{const _0x3f08ee=_0x10ed2d['t'];if('formatInline'!=_0x1b31ce['type'])return;const {data:_0x8dd4b6}=_0x1b31ce;if(null!=_0x8dd4b6){if('fontSize'==_0x8dd4b6['commandName']){const _0x6c59c3=_0x8dd4b6['commandParams'][0x0]['value'];if(_0x6c59c3){const _0xdafe23=_0x3f08ee(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1736fd=>_0x1736fd['model']==_0x6c59c3)['title'])['toLowerCase']();return{'type':'format','content':o(_0x10ed2d,'*Set\x20font\x20size:*\x20%0',_0xdafe23)};}return{'type':'format','content':o(_0x10ed2d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x8dd4b6['commandName']){const _0x4dc8a8=_0x8dd4b6['commandParams'][0x0]['value'];return _0x4dc8a8?{'type':'format','content':o(_0x10ed2d,'*Set\x20font\x20family:*\x20%0',_0x4dc8a8)}:{'type':'format','content':o(_0x10ed2d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x8dd4b6['commandName']){const _0x39c968=_0x8dd4b6['commandParams'][0x0]['value'];if(_0x39c968){const _0x2d8448=_0x2d6432(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3ab733=>_0x3ab733['model']==_0x39c968);let _0x15b351=_0x39c968,_0x3b7852='';return _0x2d8448&&(_0x15b351=_0x2d8448['label'],_0x3b7852=_0x3f08ee(_0x15b351)['toLowerCase']()),{'type':'format','content':o(_0x10ed2d,'*Set\x20font\x20color:*\x20%0',_0x3b7852)['trim'](),'color':{'value':_0x39c968,'title':_0x3b7852||_0x15b351}};}return{'type':'format','content':o(_0x10ed2d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x8dd4b6['commandName']){const _0x9d3db8=_0x8dd4b6['commandParams'][0x0]['value'];if(_0x9d3db8){const _0x49d6a5=_0x2d6432(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2d68bb=>_0x2d68bb['model']==_0x9d3db8);let _0x2dea85=_0x9d3db8,_0x42b985='';return _0x49d6a5&&(_0x2dea85=_0x49d6a5['label'],_0x42b985=_0x3f08ee(_0x2dea85)['toLowerCase']()),{'type':'format','content':o(_0x10ed2d,'*Set\x20font\x20background\x20color:*\x20%0',_0x42b985)['trim'](),'color':{'value':_0x9d3db8,'title':_0x42b985||_0x2dea85}};}return{'type':'format','content':o(_0x10ed2d,'*Reset\x20font\x20background\x20color*')};}}});}}class st extends _0x3f9a7e{['afterInit'](){const _0x341d6e=this['editor'],_0x26382f=_0x341d6e['plugins']['get']('TrackChangesEditing'),_0x47ee9b=_0x341d6e['commands']['get']('copyFormat'),_0x19a3f7=_0x341d6e['commands']['get']('pasteFormat');_0x47ee9b&&_0x19a3f7&&(_0x26382f['enableDefaultAttributesIntegration']('pasteFormat'),_0x26382f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1b4492=this['editor'],_0x2ba3cd=_0x1b4492['locale'];_0x1b4492['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14853a=>{if('formatBlock'!=_0x14853a['type']&&'formatInline'!=_0x14853a['type'])return;const {data:_0x4941c1}=_0x14853a;if(_0x4941c1&&'pasteFormat'===_0x4941c1['commandName']){const _0x5e84dd=[],_0x8240d0=_0x4941c1['commandParams'][0x0];for(const [_0x2b3769,_0x4b5037]of Object['entries'](_0x8240d0))_0x5e84dd['push'](ro(_0x1b4492,_0x2b3769,_0x4b5037));return _0x5e84dd['length']?{'type':'format','content':o(_0x2ba3cd,'*Set\x20format\x20to:*\x20%0',_0x5e84dd['join'](',\x20'))}:{'type':'format','content':o(_0x2ba3cd,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x4bbf10,_0x522221,_0x3f12cd){const _0x4ebeb6=_0x4bbf10['locale']['t'],_0x908d81=_0x522221['split'](/(?=[A-Z])/)['join']('\x20'),_0x56e9a2=_0x4ebeb6(_0x908d81['charAt'](0x0)['toUpperCase']()+_0x908d81['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3f12cd)return _0x56e9a2;if('fontColor'===_0x522221||'fontBackgroundColor'===_0x522221){const _0x1235bd=_0x2d6432(_0x4bbf10['config']['get']('fontColor.colors'))['find'](_0xbf0c7a=>_0xbf0c7a['model']==_0x3f12cd);return _0x56e9a2+'\x20('+(_0x1235bd?_0x4ebeb6(_0x1235bd['label'])['toLowerCase']():_0x3f12cd)+')';}if('fontSize'===_0x522221&&isNaN(parseFloat(_0x3f12cd))){const _0x4272aa=_0x4bbf10['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4bbf10['config']['get']('fontSize.options'))['find'](_0x378eb1=>_0x378eb1['model']==_0x3f12cd);return _0x56e9a2+'\x20('+(_0x4272aa?_0x4ebeb6(_0x4272aa['title'])['toLowerCase']():_0x3f12cd)+')';}return _0x56e9a2+'\x20('+_0x3f12cd+')';}class ot extends _0x3f9a7e{['_headingOptions'];['afterInit'](){const _0x463194=this['editor'];if(!_0x463194['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x463194['config']['get']('heading.options');const _0x56ebb8=_0x463194['locale'],_0x4bab68=_0x463194['plugins']['get']('TrackChangesEditing');_0x4bab68['enableDefaultAttributesIntegration']('heading');for(const _0x5093a0 of this['_headingOptions'])'paragraph'!=_0x5093a0['model']&&_0x4bab68['descriptionFactory']['registerElementLabel'](_0x5093a0['model'],_0x5b2950=>{const _0x177687=this['_getHeadingLevel'](_0x5093a0['model']);return null!==_0x177687?_0x3a5001(_0x5b2950,_0x177687):_0x3001fb(_0x5b2950,_0x5093a0['title']);});function _0x3a5001(_0x2d5c45,_0x1f45ad){return o(_0x56ebb8,'ELEMENT_HEADING',[_0x2d5c45,_0x1f45ad]);}function _0x3001fb(_0xfb24d6,_0x1b5391){return o(_0x56ebb8,'ELEMENT_HEADING_CUSTOM',[_0xfb24d6,_0x1b5391]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3096c7=this['editor'],_0x5345fb=_0x3096c7['locale'];function _0x15c227(_0x3afd94,_0x5ae03a){return o(_0x5345fb,'ELEMENT_HEADING_CUSTOM',[_0x3afd94,_0x5ae03a]);}_0x3096c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e6ff4=>{if('formatBlock'!=_0x3e6ff4['type'])return;const {data:_0x28e5b0}=_0x3e6ff4;if(_0x28e5b0&&'heading'==_0x28e5b0['commandName']){const _0x5c36f3=_0x28e5b0['commandParams'][0x0]['value'],_0x5243de=this['_getHeadingLevel'](_0x5c36f3);if(null!==_0x5243de)return{'type':'format','content':o(_0x5345fb,'*Change\x20to:*\x20%0',(_0x551c64=0x1,_0x1a6682=_0x5243de,o(_0x5345fb,'ELEMENT_HEADING',[_0x551c64,_0x1a6682])))};const _0x3516a7=this['_headingOptions']['find'](_0x24fdb4=>_0x24fdb4['model']===_0x5c36f3)['title'];return{'type':'format','content':o(_0x5345fb,'*Change\x20to:*\x20%0',_0x15c227(0x1,_0x3516a7))};}var _0x551c64,_0x1a6682;});}['_getHeadingLevel'](_0x3a2759){const _0x4be3fb=_0x3a2759['match'](/^heading(\d+)/);if(_0x4be3fb)return _0x4be3fb[0x1];const _0x35ada9=this['_headingOptions']?.['find'](_0x51d075=>_0x51d075['model']==_0x3a2759);if(_0x35ada9&&_0x35ada9['view']){const _0x47889b=_0x35ada9['view'],_0x1cb922=(_0x47889b['name']??_0x47889b)['match'](/^h(\d+)/);if(_0x1cb922)return _0x1cb922[0x1];}return null;}}class rt extends _0x3f9a7e{['afterInit'](){const _0x436e72=this['editor'];if(!_0x436e72['plugins']['has']('HighlightEditing'))return;const _0x3a3c4d=_0x436e72['plugins']['get']('TrackChangesEditing'),_0x162e45=_0x436e72['locale'];_0x3a3c4d['enableDefaultAttributesIntegration']('highlight'),_0x3a3c4d['registerInlineAttribute']('highlight'),_0x3a3c4d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x162e45,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x413b75=this['editor'],_0x1169ba=_0x413b75['locale'];_0x413b75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2adfbe=>{if('formatInline'!=_0x2adfbe['type'])return;const {data:_0x311fd8}=_0x2adfbe;if(_0x311fd8&&'highlight'==_0x311fd8['commandName']){const _0x37254d=_0x1169ba['t'],_0x2d165f=_0x311fd8['commandParams'][0x0]['value'];if(_0x2d165f){const _0x2ca7a2=_0x413b75['config']['get']('highlight.options')['find'](_0x10380a=>_0x10380a['model']==_0x2d165f),_0x12f61b=_0x37254d(_0x2ca7a2['title'])['toLowerCase']();return{'type':'format','content':o(_0x1169ba,'*Set\x20highlight:*\x20%0',_0x12f61b),'color':{'value':_0x2ca7a2['color'],'title':_0x2ca7a2['title']}};}return{'type':'format','content':o(_0x1169ba,'*Remove\x20highlight*',o(_0x1169ba,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x3f9a7e{['afterInit'](){const _0x25982a=this['editor'];if(!_0x25982a['plugins']['has']('HorizontalLineEditing'))return;_0x25982a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x494f71=_0x25982a['plugins']['get']('TrackChangesEditing'),_0x3e3850=_0x25982a['locale'];_0x494f71['descriptionFactory']['registerElementLabel']('horizontalLine',_0x444efc=>o(_0x3e3850,'ELEMENT_HORIZONTAL_LINE',_0x444efc)),_0x25982a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xf34427,{writer:_0x18e7d7,options:_0x331204})=>{if(!_0x331204['showSuggestionHighlights'])return null;const _0xa3c0a=_0x18e7d7['createContainerElement']('div'),_0x439291=_0x18e7d7['createEmptyElement']('hr');return _0x18e7d7['addClass']('ck-horizontal-line',_0xa3c0a),_0x18e7d7['insert'](_0x18e7d7['createPositionAt'](_0xa3c0a,0x0),_0x439291),_0xa3c0a;},'converterPriority':'high'});}}class ct extends _0x3f9a7e{['afterInit'](){const _0x253b1e=this['editor'];if(!_0x253b1e['plugins']['has']('HtmlEmbed'))return;const _0x5b61b0=_0x253b1e['plugins']['get']('TrackChangesEditing'),_0x4a44de=_0x253b1e['locale'];_0x5b61b0['descriptionFactory']['registerElementLabel']('rawHtml',_0x193150=>o(_0x4a44de,'ELEMENT_HTML_EMBED',_0x193150)),_0x5b61b0['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5b61b0['registerBlockAttribute']('value'),_0x5b61b0['descriptionFactory']['registerDescriptionCallback'](_0x4b616e=>{if('attribute'!=_0x4b616e['type'])return;const {data:_0x5a93ce}=_0x4b616e;if(_0x5a93ce&&'value'==_0x5a93ce['key']&&_0x4b616e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2b48a9=o(_0x4a44de,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4a44de,'*Change\x20%0\x20content*',_0x2b48a9)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22de95=this['editor'],_0x12f3a2=_0x22de95['locale'];_0x22de95['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4075af=>{if('formatBlock'!=_0x4075af['type'])return;const {data:_0x397f14}=_0x4075af;if(_0x397f14&&'htmlEmbed'==_0x397f14['commandName']){const _0x4b461b=o(_0x12f3a2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x12f3a2,'*Change\x20%0\x20content*',_0x4b461b)};}});}}class ut extends _0x3f9a7e{['afterInit'](){const _0x2b9fc1=this['editor'];if(!_0x2b9fc1['plugins']['has']('ImageEditing'))return;const _0x4c96d6=_0x2b9fc1['plugins']['get']('TrackChangesEditing'),_0x5226f2=_0x2b9fc1['plugins']['get']('ImageUtils'),_0xe80f3=_0x2b9fc1['locale'];_0x4c96d6['enableCommand']('insertImage'),_0x4c96d6['descriptionFactory']['registerElementLabel']('imageBlock',_0x2e14c4=>o(_0xe80f3,'ELEMENT_IMAGE',_0x2e14c4)),_0x4c96d6['descriptionFactory']['registerElementLabel']('imageInline',_0x4b799a=>o(_0xe80f3,'ELEMENT_INLINE_IMAGE',_0x4b799a)),_0x4c96d6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xe80f3,'ELEMENT_CAPTION')),_0x2b9fc1['plugins']['has']('ImageUploadEditing')&&_0x4c96d6['enableCommand']('uploadImage'),_0x2b9fc1['plugins']['has']('ImageBlockEditing')&&_0x2b9fc1['plugins']['has']('ImageInlineEditing')&&(_0x4c96d6['enableCommand']('imageTypeInline',(_0x599cca,_0x4f906d)=>{const _0x3e30ef=_0x5226f2['getClosestSelectedImageElement'](_0x2b9fc1['model']['document']['selection']);_0x2b9fc1['model']['change'](()=>{_0x4c96d6['markBlockFormat'](_0x3e30ef,{'commandName':'imageTypeInline','commandParams':[_0x4f906d]},[],'convertBlockImageToInline');});}),_0x4c96d6['enableCommand']('imageTypeBlock',(_0x56ae41,_0x434fba)=>{_0x2b9fc1['model']['change'](_0x43f4f0=>{let _0x7250b3=_0x5226f2['getClosestSelectedImageElement'](_0x2b9fc1['model']['document']['selection']),_0x1ddb4d=_0x43f4f0['createRangeOn'](_0x7250b3);const _0x2ff3eb=_0x222b05['fromPosition'](_0x1ddb4d['start'],'toPrevious'),_0x55d4f9=_0x222b05['fromPosition'](_0x1ddb4d['end'],'toNext');_0x4c96d6['forceDefaultExecution'](()=>_0x56ae41(_0x434fba)),_0x7250b3=_0x5226f2['getClosestSelectedImageElement'](_0x2b9fc1['model']['document']['selection']),_0x1ddb4d=_0x43f4f0['createRangeOn'](_0x7250b3);const _0x3a8e51=_0x43f4f0['createRange'](_0x2ff3eb,_0x55d4f9);_0x2ff3eb['detach'](),_0x55d4f9['detach'](),_0x4c96d6['markBlockFormat'](_0x7250b3,{'commandName':'imageTypeInline','commandParams':[_0x434fba]},[],'convertInlineImageToBlock'),_0x3a8e51['start']['isBefore'](_0x1ddb4d['start'])&&_0x4c96d6['markInsertion'](_0x43f4f0['createRange'](_0x3a8e51['start'],_0x1ddb4d['start']),'convertInlineImageToBlock'),_0x1ddb4d['end']['isBefore'](_0x3a8e51['end'])&&_0x4c96d6['markInsertion'](_0x43f4f0['createRange'](_0x1ddb4d['end'],_0x3a8e51['end']),'convertInlineImageToBlock');});}),_0x4c96d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4c96d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4c96d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4c96d6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4c96d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4c96d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x312a1e])=>{const _0x445558=_0x4c96d6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2398ba=_0x312a1e['start'],_0x3cfad5=_0x312a1e['end'];const _0x3ec688=_0x2b9fc1['model']['schema']['getNearestSelectionRange'](_0x2398ba,'backward'),_0x43822e=_0x2b9fc1['model']['schema']['getNearestSelectionRange'](_0x3cfad5,'forward');_0x3ec688['isCollapsed']&&(_0x2398ba=_0x3ec688['start']),_0x43822e['isCollapsed']&&(_0x3cfad5=_0x43822e['end']),_0x445558([_0x2b9fc1['model']['createRange'](_0x2398ba,_0x3cfad5)]);}),_0x4c96d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x174b40),_0x4c96d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x174b40)),_0x2b9fc1['plugins']['has']('ImageCaptionEditing')&&(_0x4c96d6['enableCommand']('toggleImageCaption',(_0x286250,_0x1476a5)=>{const _0x129c18=_0x2b9fc1['plugins']['get']('ImageCaptionUtils');let _0x71f105=_0x5226f2['getClosestSelectedImageElement'](_0x2b9fc1['model']['document']['selection']),_0x1d91ad=_0x129c18['getCaptionFromImageModelElement'](_0x71f105);_0x2b9fc1['model']['change'](()=>{if(_0x1d91ad)return void _0x4c96d6['markDeletion'](_0x2b9fc1['model']['createRangeOn'](_0x1d91ad));const _0x2dc2c2=_0x5226f2['isBlockImage'](_0x71f105);_0x286250(_0x1476a5),_0x71f105=_0x5226f2['getClosestSelectedImageElement'](_0x2b9fc1['model']['document']['selection']),_0x1d91ad=_0x129c18['getCaptionFromImageModelElement'](_0x71f105),_0x4c96d6['markInsertion'](_0x2b9fc1['model']['createRangeOn'](_0x1d91ad),_0x2dc2c2?null:'imageCaption');});}),_0x4c96d6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x174b40));const _0x54c7f9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xb21ad9(_0x1054bd,_0x3b00c1){const _0x5bdedc=_0x54c7f9['findIndex'](({type:_0x212475,subType:_0x13efc0})=>_0x1054bd['type']==_0x212475&&_0x1054bd['subType']==_0x13efc0),_0x36e57a=_0x54c7f9['findIndex'](({type:_0x1861d7,subType:_0x10b469})=>_0x3b00c1['type']==_0x1861d7&&_0x3b00c1['subType']==_0x10b469);if(_0x5bdedc<0x0||_0x36e57a<0x0)return!0x1;const _0x11d675=_0x1054bd['getFirstRange'](),_0x5b9ee8=_0x3b00c1['getFirstRange']();if((0x0==_0x5bdedc||0x1==_0x5bdedc)&&0x2==_0x36e57a&&_0x11d675['isIntersecting'](_0x5b9ee8))return!0x0;if(0x2==_0x5bdedc&&0x3==_0x36e57a){const _0x27168a=_0x4c96d6['_findSuggestions'](_0x11d675,'insertion')['filter'](({suggestion:_0x1659ff,meta:_0x278391})=>_0x278391['isOwn']&&'convertInlineImageToBlock'==_0x1659ff['subType']);if(_0x27168a['length']>0x1&&_0x5b9ee8['end']['isEqual'](_0x11d675['start']))return!0x0;if(0x1==_0x27168a['length']&&(_0x11d675['start']['isEqual'](_0x5b9ee8['end'])||_0x11d675['end']['isEqual'](_0x5b9ee8['start'])))return!0x0;}if(0x3==_0x5bdedc&&0x3==_0x36e57a&&_0x11d675['start']['isBefore'](_0x5b9ee8['start'])){const _0xa98255=_0x11d675['end']['nodeAfter'],_0x5f5cb6=_0x5b9ee8['start']['nodeBefore'];return _0x5226f2['isBlockImage'](_0xa98255)&&_0xa98255===_0x5f5cb6;}return!0x1;}function _0x174b40(_0x292971,_0x2415cc){return _0xb21ad9(_0x292971,_0x2415cc)?[_0x292971,_0x2415cc]:_0xb21ad9(_0x2415cc,_0x292971)?[_0x2415cc,_0x292971]:null;}_0x2b9fc1['plugins']['has']('ImageResize')&&(_0x4c96d6['enableDefaultAttributesIntegration']('resizeImage'),_0x4c96d6['registerBlockAttribute']('resizedWidth'),_0x4c96d6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xe80f3,'FORMAT_IMAGE_SIZE'))),_0x2b9fc1['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4c96d6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4c96d6['registerBlockAttribute']('alt')),_0x2b9fc1['plugins']['has']('PictureEditing')&&(_0x4c96d6['registerBlockAttribute']('sources'),_0x4c96d6['descriptionFactory']['registerDescriptionCallback'](_0x4c4930=>{if('attribute'!=_0x4c4930['type'])return;const {data:_0xc7d843}=_0x4c4930;return _0xc7d843&&'sources'==_0xc7d843['key']?{'type':'format','content':''}:void 0x0;})),_0x2b9fc1['plugins']['has']('ImageSizeAttributes')&&(_0x4c96d6['registerBlockAttribute']('width'),_0x4c96d6['registerBlockAttribute']('height'),_0x4c96d6['descriptionFactory']['registerDescriptionCallback'](_0x65869e=>{if('attribute'!=_0x65869e['type'])return;const {data:_0x5187e0}=_0x65869e;return!_0x5187e0||'width'!=_0x5187e0['key']&&'height'!=_0x5187e0['key']?void 0x0:{'type':'format','content':''};})),_0x4c96d6['descriptionFactory']['registerDescriptionCallback'](_0x50d56a=>{if(!!_0x54c7f9['find'](({type:_0x4f261c,subType:_0x29c0d2})=>_0x50d56a['type']==_0x4f261c&&_0x50d56a['subType']==_0x29c0d2))return _0x50d56a['previous']?{}:void 0x0;}),_0x4c96d6['descriptionFactory']['registerDescriptionCallback'](_0x4de214=>{if('insertion'==_0x4de214['type']||'deletion'==_0x4de214['type']){const _0x1be6f4=_0x4de214['getContainedElement']();if(_0x1be6f4&&_0x1be6f4['is']('element','caption'))return{'type':'insertion'==_0x4de214['type']?'addObject':'removeObject','element':_0x1be6f4,'quantity':0x1};}}),_0x4c96d6['descriptionFactory']['registerDescriptionCallback'](_0x23a5e5=>'formatBlock'==_0x23a5e5['type']&&'convertInlineImageToBlock'==_0x23a5e5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x23a5e5['type']&&'convertBlockImageToInline'==_0x23a5e5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4c96d6['descriptionFactory']['registerDescriptionCallback'](_0x3cfecf=>{if('attribute'!=_0x3cfecf['type'])return;const {data:_0x18ea48}=_0x3cfecf;if(!_0x18ea48||'alt'!=_0x18ea48['key'])return;const _0x196f26=_0x18ea48['newValue'];return _0x196f26?{'type':'format','content':o(_0xe80f3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x196f26+'\x22')}:{'type':'format','content':o(_0xe80f3,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x188f53=this['editor'],_0x4cc12b=_0x188f53['locale'];_0x188f53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x478382=>{if('formatBlock'!=_0x478382['type']&&'formatInline'!=_0x478382['type'])return;const {data:_0x8c89a3}=_0x478382;if(_0x8c89a3){if('imageTextAlternative'==_0x8c89a3['commandName']){const _0x5334c9=_0x8c89a3['commandParams'][0x0]['newValue'];return _0x5334c9?{'type':'format','content':o(_0x4cc12b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5334c9+'\x22')}:{'type':'format','content':o(_0x4cc12b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x8c89a3['commandName']){const _0x1ac0df=_0x8c89a3['commandParams'][0x0]['width'];return _0x1ac0df?{'type':'format','content':o(_0x4cc12b,'*Set\x20image\x20width:*\x20%0',_0x1ac0df)}:{'type':'format','content':o(_0x4cc12b,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x3f9a7e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4b13e1=this['editor']['locale'],_0x4b3246=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b3246['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4b3246['registerBlockAttribute']('src'),_0x4b3246['descriptionFactory']['registerDescriptionCallback'](_0x4a0a8a=>{if('attribute'!=_0x4a0a8a['type'])return;const {data:_0x566611}=_0x4a0a8a;return _0x566611&&'src'==_0x566611['key']?_0x566611['newValue']&&_0x566611['oldValue']?{'type':'format','content':o(_0x4b13e1,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3c9bde=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c9bde['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3c9bde['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c9bde['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3c9bde['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f082d=this['editor'],_0x5f22a9=_0x2f082d['locale'];_0x2f082d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11f4e8=>{if('formatBlock'!=_0x11f4e8['type']&&'formatInline'!=_0x11f4e8['type'])return;const {data:_0x5a05db}=_0x11f4e8;if(!_0x5a05db||'replaceImageSource'!=_0x5a05db['commandName'])return;return{'type':'format','content':o(_0x5f22a9,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x3f9a7e{['afterInit'](){const _0x1a1dc8=this['editor'];if(!_0x1a1dc8['plugins']['has']('ImageStyleEditing'))return;const _0x2c5829=_0x1a1dc8['plugins']['get']('TrackChangesEditing'),_0x419d37=_0x1a1dc8['plugins']['get']('ImageUtils'),_0x2863c5={};_0x2c5829['enableCommand']('imageStyle',(_0x215239,_0x3a8c7c)=>{const _0x3efe70=_0x1a1dc8['plugins']['get']('Users')['me'],_0x42d594=_0x1a1dc8['commands']['get']('imageStyle');let _0x104cc2=_0x419d37['getClosestSelectedImageElement'](_0x1a1dc8['model']['document']['selection']),_0x35d0df=_0x1a1dc8['model']['createRangeOn'](_0x104cc2),_0x13ca26=_0x42d594['value'];if(_0x13ca26==_0x3a8c7c['value'])return;const _0x269dd1={'commandName':'imageStyle','commandParams':[_0x3a8c7c],'formatGroupId':_0x172a90()};_0x1a1dc8['model']['change'](()=>{if(_0x2c5829['getSuggestions']()['filter'](_0x24c7ad=>_0x24c7ad['isInContent']&&_0x3efe70==_0x24c7ad['author']&&('formatBlock'==_0x24c7ad['type']||'formatInline'==_0x24c7ad['type'])&&('imageStylePreApply'==_0x24c7ad['subType']||'imageStylePostApply'==_0x24c7ad['subType'])&&_0x24c7ad['getFirstRange']()['isEqual'](_0x35d0df))['forEach'](_0x175188=>_0x2c5829['discardSuggestion'](_0x175188['head'])),_0x104cc2=_0x419d37['getClosestSelectedImageElement'](_0x1a1dc8['model']['document']['selection']),_0x35d0df=_0x1a1dc8['model']['createRangeOn'](_0x104cc2),_0x42d594['refresh'](),_0x1a1dc8['commands']['get']('imageTypeInline')['refresh'](),_0x1a1dc8['commands']['get']('imageTypeBlock')['refresh'](),_0x13ca26=_0x42d594['value'],_0x13ca26!=_0x3a8c7c['value'])return _0x419d37['isInlineImage'](_0x104cc2)&&_0x42d594['shouldConvertImageType'](_0x3a8c7c['value'],_0x104cc2)?(_0x215239({..._0x3a8c7c,'setImageSizes':!0x1}),_0x104cc2=_0x419d37['getClosestSelectedImageElement'](_0x1a1dc8['model']['document']['selection']),void _0x2c5829['markBlockFormat'](_0x104cc2,{..._0x269dd1,'commandReversedParams':[{'value':_0x13ca26||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x419d37['isBlockImage'](_0x104cc2)?_0x2c5829['markBlockFormat'](_0x104cc2,_0x269dd1,[],'imageStylePostApply'):_0x2c5829['markInlineFormat'](_0x35d0df,_0x269dd1,'imageStylePostApply'));});});for(const _0x137ad8 of _0x1a1dc8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2863c5[_0x137ad8['name']]=_0x137ad8['title']['toLowerCase']();_0x2c5829['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2c5829['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2c5829['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2c5829['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x23d5ef])=>{_0x419d37['setImageNaturalSizeAttributes'](_0x23d5ef['getContainedElement']());}),_0x2c5829['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x25c551,_0x5981bb)=>{_0x2c5829['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x25c551,{'commandName':_0x5981bb['commandName'],'commandParams':_0x5981bb['commandReversedParams']});}),_0x2c5829['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x535563,_0x4c3063){if(_0x1254df(_0x535563,_0x4c3063))return[_0x535563,_0x4c3063];if(_0x1254df(_0x4c3063,_0x535563))return[_0x4c3063,_0x535563];return null;});const _0x10fdb6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1254df(_0xfe5094,_0x5c3f27){const _0x19d3dd=_0x10fdb6['findIndex'](({type:_0x405ad8,subType:_0x31046a})=>_0xfe5094['type']==_0x405ad8&&_0xfe5094['subType']==_0x31046a),_0x3cf176=_0x10fdb6['findIndex'](({type:_0x5f2965,subType:_0x4f1cd2})=>_0x5c3f27['type']==_0x5f2965&&_0x5c3f27['subType']==_0x4f1cd2);if(_0x19d3dd<0x0||_0x3cf176<0x0)return!0x1;const _0x4ef211=_0xfe5094['getFirstRange'](),_0x5d3dde=_0x5c3f27['getFirstRange']();if((0x0==_0x19d3dd||0x1==_0x19d3dd)&&0x2==_0x3cf176&&_0x4ef211['isIntersecting'](_0x5d3dde))return!0x0;if(0x2==_0x19d3dd&&0x3==_0x3cf176){const _0x4a1eb7=_0x2c5829['_findSuggestions'](_0x4ef211,'insertion')['filter'](({suggestion:_0xf8b640,meta:_0x4ebfda})=>_0x4ebfda['isOwn']&&'convertInlineImageToBlock'==_0xf8b640['subType']);if(_0x4a1eb7['length']>0x1&&_0x5d3dde['end']['isEqual'](_0x4ef211['start']))return!0x0;if(0x1==_0x4a1eb7['length']&&(_0x4ef211['start']['isEqual'](_0x5d3dde['end'])||_0x4ef211['end']['isEqual'](_0x5d3dde['start'])))return!0x0;}if(0x3==_0x19d3dd&&0x3==_0x3cf176&&_0x4ef211['start']['isBefore'](_0x5d3dde['start'])){const _0x3bd472=_0x4ef211['end']['nodeAfter'],_0x5875a1=_0x5d3dde['start']['nodeBefore'];return _0x419d37['isBlockImage'](_0x3bd472)&&_0x3bd472===_0x5875a1;}return!0x1;}_0x1a1dc8['model']['document']['registerPostFixer'](()=>{let _0x9019ca=!0x1;const _0x4c3dcb=Array['from'](_0x1a1dc8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x513bc0,data:_0x6e990d}of _0x4c3dcb){const {group:_0x3a4548,type:_0x28cf3c,subType:_0x536936,id:_0x17cfb0}=_0x2c5829['_splitMarkerName'](_0x513bc0);if('suggestion'==_0x3a4548&&_0x2c5829['hasSuggestion'](_0x17cfb0)){if('formatBlock'==_0x28cf3c&&('imageStylePreApply'==_0x536936||'imageStylePostApply'==_0x536936)){const _0x116560=_0x2c5829['getSuggestion'](_0x17cfb0);if(_0x6e990d['newRange']){const _0x39a297=_0x116560['getFirstRange']()['getContainedElement']();if(_0x419d37['isBlockImage'](_0x39a297))continue;_0x2c5829['discardSuggestion'](_0x116560),_0x9019ca=!0x0;}}if('insertion'==_0x28cf3c&&'imageCaption'==_0x536936&&!_0x6e990d['newRange']){const _0x2a62e1=_0x2c5829['getSuggestion'](_0x17cfb0);_0x2a62e1['next']&&_0x2a62e1['next']['isInContent']&&(_0x2c5829['discardSuggestion'](_0x2a62e1['next']),_0x9019ca=!0x0);}}}return _0x9019ca;}),this['_registerLegacyDescription'](_0x2863c5);}['_registerLegacyDescription'](_0x12d2c4){const _0xeed9d0=this['editor'],_0x136f70=_0xeed9d0['locale'];_0xeed9d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x181164=>{if('formatBlock'!=_0x181164['type']&&'formatInline'!=_0x181164['type'])return;const {data:_0x1c611b}=_0x181164;if(!_0x1c611b||'imageStyle'!=_0x1c611b['commandName'])return;const _0x4c44d3=_0x1c611b['commandParams'][0x0]['value'];return _0x34c84d('side'===_0x4c44d3?o(_0x136f70,'FORMAT_SIDE_IMAGE'):_0x12d2c4[_0x4c44d3]||_0x4c44d3);function _0x34c84d(_0x5c3ddb){return{'type':'format','content':o(_0x136f70,'*Format:*\x20%0',_0x5c3ddb)};}});}}class gt extends _0x3f9a7e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3e74d0){super(_0x3e74d0),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x343cf1=this['editor'],_0x58f482=_0x343cf1['commands']['get']('importWord'),_0x1b3b4a=_0x343cf1['commands']['get']('trackChanges');_0x58f482&&(_0x58f482['on']('execute',(_0x374307,[,_0x106ea3])=>{this['_trackChangesValueDuringImport']=_0x1b3b4a['value'],_0x106ea3['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x58f482,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x58f482,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1b3b4a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x343cf1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3d6b59,_0x44e59f){const {suggestions:_0x52aaf8}=_0x44e59f,_0x5a433f=this['editor']['commands']['get']('trackChanges'),_0x5601ae=_0x5a433f['value'];this['_trackChangesValueDuringImport']!==_0x5601ae&&(_0x5a433f['execute'](),this['_trackChangesExecuted']=!0x0),_0x52aaf8&&_0x52aaf8['forEach'](({id:_0x4204cb,type:_0x23a9e4,author:_0x1bf425,created_at:_0x4031f2})=>{const _0x2179ac={'id':_0x4204cb,'type':_0x23a9e4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1bf425,'createdAt':_0x4031f2?new Date(_0x4031f2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2179ac);});}}class lt extends _0x3f9a7e{['afterInit'](){const _0x54daf5=this['editor'],_0x342ae0=_0x54daf5['plugins']['get']('TrackChangesEditing');if(_0x54daf5['plugins']['has']('IndentEditing')&&(_0x342ae0['enableCommand']('indent'),_0x342ae0['enableCommand']('outdent')),_0x54daf5['plugins']['has']('IndentBlock')){for(const _0x28b1b0 of['indentBlock','outdentBlock'])_0x342ae0['enableDefaultAttributesIntegration'](_0x28b1b0);}const _0x567fee=_0x54daf5['locale'];_0x342ae0['registerBlockAttribute']('blockIndent'),_0x342ae0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x567fee,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16f6e6=this['editor'],_0x1f1128=_0x16f6e6['locale'],_0x4f3709=_0x16f6e6['plugins']['get']('TrackChangesEditing');_0x4f3709['descriptionFactory']['registerDescriptionCallback'](_0x5c5583=>{if('formatBlock'!=_0x5c5583['type'])return;const {data:_0x4bd578}=_0x5c5583;if(!_0x4bd578)return;if('indentBlock'!=_0x4bd578['commandName']&&'outdentBlock'!=_0x4bd578['commandName'])return;const _0x220d72=_0x5c5583['getItems']()[0x0],_0x36913a=_0x4f3709['descriptionFactory']['getItemLabel'](_0x220d72);return'indentBlock'==_0x4bd578['commandName']?{'type':'format','content':o(_0x1f1128,'*Indent:*\x20%0',_0x36913a)}:'outdentBlock'==_0x4bd578['commandName']?{'type':'format','content':o(_0x1f1128,'*Outdent:*\x20%0',_0x36913a)}:void 0x0;});}}class dt extends _0x3f9a7e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class mt extends _0x3f9a7e{['afterInit'](){const _0x16222d=this['editor'];if(!_0x16222d['plugins']['has']('LinkEditing'))return;const _0x37f69c=_0x16222d['plugins']['get']('TrackChangesEditing'),_0x34b045=_0x16222d['commands']['get']('link');_0x37f69c['enableDefaultAttributesIntegration']('link'),_0x37f69c['enableDefaultAttributesIntegration']('unlink'),_0x37f69c['registerInlineAttribute']('linkHref');for(const _0x3b16df of _0x34b045['manualDecorators'])_0x37f69c['registerInlineAttribute'](_0x3b16df['id']),_0x37f69c['descriptionFactory']['registerAttributeLabel'](_0x3b16df['id'],'link\x20('+_0x3b16df['label']['toLowerCase']()+')');_0x37f69c['descriptionFactory']['registerDescriptionCallback'](_0x2e7284=>{if('attribute'!=_0x2e7284['type'])return;const {data:_0x56ffee}=_0x2e7284;if(!_0x56ffee||'linkHref'!=_0x56ffee['key'])return;const _0x4a4c30=_0x56ffee['newValue'],_0x459cd2=_0x16222d['locale'];return{'type':'format','content':null==_0x4a4c30?o(_0x459cd2,'*Remove\x20link*'):o(_0x459cd2,'*Set\x20link:*\x20%0','\x22'+_0x4a4c30+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdc72bd=this['editor'],_0x1b2c2e=_0xdc72bd['locale'];_0xdc72bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43745a=>{if('formatInline'!=_0x43745a['type'])return;const {data:_0xa39eb7}=_0x43745a;if(_0xa39eb7){if('link'==_0xa39eb7['commandName']){const _0x3c6b2c=_0xa39eb7['commandParams'][0x0];return{'type':'format','content':o(_0x1b2c2e,'*Set\x20link:*\x20%0','\x22'+_0x3c6b2c+'\x22')};}return'unlink'==_0xa39eb7['commandName']?{'type':'format','content':o(_0x1b2c2e,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x3f9a7e{['afterInit'](){const _0xa25994=this['editor'],_0x59133f=_0xa25994['locale'];if(!_0xa25994['plugins']['has']('LegacyListEditing'))return;const _0x190b56=_0xa25994['plugins']['get']('TrackChangesEditing'),_0x160021=_0xa25994['plugins']['has']('LegacyTodoListEditing');function _0x4fbc8c(_0x5a4f11){return()=>{const _0x343281=_0xa25994['model']['document']['selection'],_0x458e74=_0xa25994['commands']['get'](_0x5a4f11);if(_0x458e74['value'])return void _0xa25994['execute']('paragraph',{});const _0x54509e=_0x5a4f11['slice'](0x0,-0x4),_0x325662=function(_0x3affd0,_0x51e08c,_0x3daa28){let _0x314fd8=Array['from'](_0x3affd0)['filter'](_0x27c18c=>function(_0x40c151,_0x3d454e){return _0x3d454e['checkChild'](_0x40c151['parent'],'listItem')&&!_0x3d454e['isObject'](_0x40c151);}(_0x27c18c,_0x3daa28));_0x314fd8=_0x314fd8['filter'](_0x467ba3=>!_0x467ba3['is']('element','listItem')||_0x467ba3['getAttribute']('listType')!=_0x51e08c);const _0x1ff418=new Set();for(const _0x5982d0 of _0x314fd8)_0x5982d0['is']('element','listItem')?_0x1ff418['add'](Ne(_0x5982d0)):_0x1ff418['add'](_0x5982d0);return Array['from'](_0x1ff418);}(_0x343281['getSelectedBlocks'](),_0x54509e,_0xa25994['model']['schema']);_0xa25994['model']['change'](()=>{for(const _0x25210f of _0x325662)_0x190b56['markBlockFormat'](_0x25210f,{'commandName':_0x5a4f11,'commandParams':[{'forceValue':!_0x458e74['value']}],'formatGroupId':'blockName'},Se(_0x25210f));});};}function _0x29d47a(_0x1106bb){return()=>{const _0xc5d8ed=function(_0x2a6156){let _0x2971f1=Array['from'](_0x2a6156);const _0x170321=_0x2971f1['findIndex'](_0x47a163=>'listItem'!=_0x47a163['name']);return _0x170321>-0x1&&(_0x2971f1=_0x2971f1['slice'](0x0,_0x170321)),_0x2971f1;}(_0xa25994['model']['document']['selection']['getSelectedBlocks']()),_0x2e04ae=_0xa25994['model']['createRange'](_0xa25994['model']['createPositionAt'](_0xc5d8ed[0x0],'before'),_0xa25994['model']['createPositionAt'](_0xc5d8ed[_0xc5d8ed['length']-0x1],'end'));_0xa25994['model']['change'](()=>{_0x190b56['markBlockFormat'](_0x2e04ae,{'commandName':_0x1106bb,'commandParams':[],'formatGroupId':'listIndent'},function(_0x32e628){const _0x3da531=new Set();for(const _0x13f419 of _0x32e628){let _0x22a2d2=_0x13f419['nextSibling'];for(;_0x22a2d2&&_0x22a2d2['getAttribute']('listIndent')>_0x13f419['getAttribute']('listIndent');)_0x3da531['add'](_0x22a2d2),_0x22a2d2=_0x22a2d2['nextSibling'];}return Array['from'](_0x3da531);}(_0xc5d8ed));});};}_0x190b56['enableCommand']('numberedList',_0x4fbc8c('numberedList')),_0x190b56['enableCommand']('bulletedList',_0x4fbc8c('bulletedList')),_0x160021&&_0x190b56['enableCommand']('todoList',_0x4fbc8c('todoList')),_0x190b56['enableCommand']('indentList',_0x29d47a('indentList')),_0x190b56['enableCommand']('outdentList',_0x29d47a('outdentList')),_0x160021&&_0x190b56['enableCommand']('checkTodoList',()=>{const _0x3cabba=_0xa25994['commands']['get']('checkTodoList'),_0x16625f=Array['from'](_0x3cabba['_selectedElements']);_0x16625f['filter'](_0xfd2d27=>_0xfd2d27['getAttribute']('todoListChecked')!=_0x3cabba['value']),_0xa25994['model']['change'](()=>{for(const _0x26339f of _0x16625f)_0x190b56['markBlockFormat'](_0x26339f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3cabba['value']}]});});}),_0x190b56['descriptionFactory']['registerElementLabel']('listItem',_0x284e0e=>o(_0x59133f,'ELEMENT_LIST_ITEM',_0x284e0e)),_0x190b56['descriptionFactory']['registerDescriptionCallback'](_0x4c0d1f=>{if('formatBlock'!=_0x4c0d1f['type']&&'formatInline'!=_0x4c0d1f['type'])return;const {data:_0x3f19d1}=_0x4c0d1f;if(_0x3f19d1){if('numberedList'==_0x3f19d1['commandName']||'bulletedList'==_0x3f19d1['commandName']||'todoList'==_0x3f19d1['commandName'])switch(_0x3f19d1['commandName']['replace']('List','')){case'bulleted':return _0x45adce(o(_0x59133f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45adce(o(_0x59133f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45adce(o(_0x59133f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3f19d1['commandName'])return{'type':'format','content':o(_0x59133f,'*Indent:*\x20%0',o(_0x59133f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3f19d1['commandName'])return{'type':'format','content':o(_0x59133f,'*Outdent:*\x20%0',o(_0x59133f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3f19d1['commandName'])return _0x3f19d1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59133f,'*Check\x20item*')}:{'type':'format','content':o(_0x59133f,'*Uncheck\x20item*')};}function _0x45adce(_0x46b2c4){return{'type':'format','content':o(_0x59133f,'*Change\x20to:*\x20%0',_0x46b2c4)};}});}}function Ne(_0xeed1ad){const _0x2ac1b7=_0xeed1ad['getAttribute']('listIndent');if(0x0==_0x2ac1b7)return _0xeed1ad;let _0x3028d1=_0xeed1ad;for(;_0xeed1ad['previousSibling']&&_0xeed1ad['previousSibling']['is']('element','listItem');){const _0x7472e7=_0xeed1ad['previousSibling']['getAttribute']('listIndent');if(_0x7472e7==_0x2ac1b7)_0x3028d1=_0xeed1ad['previousSibling'];else{if(_0x7472e7<_0x2ac1b7)break;}_0xeed1ad=_0xeed1ad['previousSibling'];}return _0x3028d1;}function Se(_0x1549ed){const _0x3ebced=[];if(_0x1549ed['is']('element','listItem')&&_0x1549ed['getAttribute']('listIndent')>0x0){let _0x172e5b=_0x1549ed['nextSibling'];for(;_0x172e5b&&'listItem'==_0x172e5b['name']&&_0x172e5b['getAttribute']('listIndent')==_0x1549ed['getAttribute']('listIndent');)_0x3ebced['push'](_0x172e5b),_0x172e5b=_0x172e5b['nextSibling'];}return _0x3ebced;}class kt extends _0x3f9a7e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2e0964=this['editor']['config']['get']('list.properties'),_0x3e8a8a=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e0964['styles']&&_0x3e8a8a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2e0964['reversed']&&_0x3e8a8a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2e0964['startIndex']&&_0x3e8a8a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3e8a8a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x9a7dc4,_0x1a1153={}){const _0x5bad14=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1348a7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5bad14['markMultiRangeBlockFormat'](_0x1348a7,{'commandName':'listStyle','commandParams':[{'type':_0x1a1153['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x132e43,_0x40569a={}){const _0x1646a4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d7a3d=this['_getSuggestionBlocks'](_0x3e8abc=>_0x3e8abc['is']('element','listItem')&&'numbered'===_0x3e8abc['getAttribute']('listType'));if(_0x5d7a3d['length']<0x1)return;const _0x22acd7=_0x5d7a3d['map'](_0x28423b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x28423b,'before'),this['editor']['model']['createPositionAt'](_0x28423b,0x0)));this['editor']['model']['change'](()=>{_0x1646a4['markMultiRangeBlockFormat'](_0x22acd7,{'commandName':'listReversed','commandParams':[{'reversed':_0x40569a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x32ab14,_0x5ed171={}){const _0x46b2ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e3113=this['_getSuggestionBlocks'](_0x5e34bd=>_0x5e34bd['is']('element','listItem')&&'numbered'===_0x5e34bd['getAttribute']('listType'));if(_0x4e3113['length']<0x1)return;const _0x124efc=_0x4e3113['map'](_0x198fa7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x198fa7,'before'),this['editor']['model']['createPositionAt'](_0x198fa7,0x0)));this['editor']['model']['change'](()=>{_0x46b2ea['markMultiRangeBlockFormat'](_0x124efc,{'commandName':'listStart','commandParams':[{'startIndex':_0x5ed171['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4a1cdf){if('formatBlock'!=_0x4a1cdf['type']&&'formatInline'!=_0x4a1cdf['type'])return;const _0xf80705=this['editor']['locale'],{data:_0x547e4d}=_0x4a1cdf;if(!_0x547e4d)return;let _0x18b247,_0x9794b4;switch(_0x547e4d['commandName']){case'listStyle':_0x18b247='*Change\x20to:*\x20%0',_0x9794b4={'type':'format','content':o(_0xf80705,_0x18b247,o(_0xf80705,this['_getTranslationKeyForListStyle'](_0x547e4d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x18b247=_0x547e4d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x9794b4={'type':'format','content':o(_0xf80705,_0x18b247)};break;case'listStart':_0x18b247='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x9794b4={'type':'format','content':o(_0xf80705,_0x18b247,_0x547e4d['commandParams'][0x0]['startIndex'])};}return _0x9794b4;}['_getSuggestionBlocksForListStyle'](){const _0x4c0ee6=this['editor']['plugins']['get']('LegacyListUtils');let _0x2c2c90=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2c2c90[0x0]?.['is']('element','listItem')&&_0x2c2c90['unshift'](..._0x4c0ee6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2c2c90[_0x2c2c90['length']-0x1]?.['is']('element','listItem')&&_0x2c2c90['push'](..._0x4c0ee6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2c2c90=[...new Set(_0x2c2c90)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2c2c90=_0x2c2c90['filter'](_0x28ef36=>_0x28ef36['is']('element','listItem'))),_0x2c2c90;}['_getSuggestionBlocks'](_0x269f7d){const _0x115a68=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b954c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x269f7d)['map'](_0x353d14=>{const _0x4417b1=this['editor']['model']['createPositionAt'](_0x353d14,0x0);return[..._0x115a68['getSiblingNodes'](_0x4417b1,'backward'),..._0x115a68['getSiblingNodes'](_0x4417b1,'forward')];})['flat']();return _0x5b954c=[...new Set(_0x5b954c)],_0x5b954c;}['_getTranslationKeyForListStyle'](_0x4397a5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4397a5)||'default')['toUpperCase']()+'_LIST_'+_0x4397a5['toUpperCase']()['replace'](/-/g,'_');}}class wt extends _0x3f9a7e{['afterInit'](){const _0x5f56e0=this['editor'];if(!_0x5f56e0['plugins']['has']('MediaEmbedEditing'))return;const _0x5cfc2b=_0x5f56e0['plugins']['get']('TrackChangesEditing'),_0xaffafb=_0x5f56e0['locale'];_0x5cfc2b['enableCommand']('mediaEmbed'),_0x5cfc2b['descriptionFactory']['registerElementLabel']('media',_0xf6ab89=>o(_0xaffafb,'ELEMENT_MEDIA',_0xf6ab89)),_0x5f56e0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x26efec,{writer:_0x519eaa,options:_0x5956c0})=>{if(_0x5956c0['showSuggestionHighlights'])return _0x519eaa['createEmptyElement']('div');},'converterPriority':'high'}),_0x5f56e0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5d77b6,_0x1aac46,_0xb1ac87)=>{_0xb1ac87['options']['showSuggestionHighlights']&&_0x5d77b6['stop']();},{'priority':'high'});}}class bt extends _0x3f9a7e{['afterInit'](){const _0xed9204=this['editor'];_0xed9204['plugins']['has']('MentionEditing')&&_0xed9204['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x3f9a7e{['afterInit'](){const _0x216f53=this['editor'];if(!_0x216f53['plugins']['has']('MergeFieldsEditing'))return;const _0x26ab6f=_0x216f53['plugins']['get']('TrackChangesEditing'),_0x2f5a41=_0x216f53['locale'];_0x26ab6f['enableCommand']('insertMergeField'),_0x26ab6f['enableCommand']('insertMergeFieldBlock'),_0x26ab6f['enableCommand']('insertMergeFieldImage'),_0x26ab6f['descriptionFactory']['registerElementLabel']('mergeField',_0x56275e=>o(_0x2f5a41,'ELEMENT_MERGE_FIELD',_0x56275e)),_0x26ab6f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x20074b=>o(_0x2f5a41,'ELEMENT_MERGE_FIELD',_0x20074b)),_0x26ab6f['descriptionFactory']['registerDescriptionCallback'](_0x4bef96=>{if('insertion'!=_0x4bef96['type']&&'deletion'!=_0x4bef96['type'])return;const _0x117433=_0x4bef96['getContainedElement']();if(null==_0x117433)return;const _0x22705f=_0x216f53['plugins']['get']('MergeFieldsEditing');let _0x508263;switch(_0x22705f['getMergeFieldType'](_0x117433)){case null:return;case'image':{const _0x6aca3b=_0x22705f['unwrapAffixes'](_0x117433['getAttribute']('src'));_0x508263=_0x22705f['getLabel'](_0x6aca3b)||_0x6aca3b;break;}default:{const _0x19be02=_0x117433['getAttribute']('id');_0x508263=_0x22705f['getLabel'](_0x19be02)||_0x19be02;break;}}return'insertion'==_0x4bef96['type']?{'type':'insertion','content':o(_0x2f5a41,'*Insert:*\x20%0','\x22'+_0x508263+'\x22\x20'+o(_0x2f5a41,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2f5a41,'*Remove:*\x20%0','\x22'+_0x508263+'\x22\x20'+o(_0x2f5a41,'ELEMENT_MERGE_FIELD'))};});}}class St extends _0x3f9a7e{['afterInit'](){const _0xe8fb94=this['editor'],_0x52b8a6=_0xe8fb94['plugins']['get']('TrackChangesEditing');_0xe8fb94['plugins']['has']('MultiLevelList')&&(_0x52b8a6['enableDefaultAttributesIntegration']('multiLevelList'),_0x52b8a6['registerBlockAttribute']('listMarkerStyle'),_0x52b8a6['descriptionFactory']['registerDescriptionCallback'](_0x3e30cd=>this['handleDescriptions'](_0x3e30cd)));}['handleDescriptions'](_0x5aea37){const _0x592f00=this['editor']['locale'],{data:_0x1448dc}=_0x5aea37,_0x7e9487={'type':'format','content':''};if(_0x1448dc&&'listMarkerStyle'==_0x1448dc['key']){if(!_0x1448dc['oldValue'])return{'type':'format','content':o(_0x592f00,'*Set\x20format:*\x20%0',o(_0x592f00,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1448dc['newValue']+')'};if(!_0x1448dc['newValue']){let _0x261b38=_0x5aea37['head'];for(;_0x261b38;){if(_0x261b38['data']&&'listType'==_0x261b38['data']['key']&&_0x261b38['data']['newValue'])return _0x7e9487;_0x261b38=_0x261b38['next'];}return{'type':'format','content':o(_0x592f00,'*Remove\x20format:*\x20%0',o(_0x592f00,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1448dc['oldValue']+')'};}}}}class jt extends _0x3f9a7e{['afterInit'](){const _0x60f7da=this['editor'];if(!_0x60f7da['plugins']['has']('PageBreakEditing'))return;_0x60f7da['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3896af=_0x60f7da['plugins']['get']('TrackChangesEditing'),_0x156a73=_0x60f7da['locale'];_0x3896af['descriptionFactory']['registerElementLabel']('pageBreak',_0x5bf652=>o(_0x156a73,'ELEMENT_PAGE_BREAK',_0x5bf652));}}class It extends _0x3f9a7e{['afterInit'](){const _0x1bf5f8=this['editor'];if(!_0x1bf5f8['plugins']['has']('Paragraph'))return;const _0x27bd09=_0x1bf5f8['locale'],_0x4fa656=_0x1bf5f8['plugins']['get']('TrackChangesEditing');_0x4fa656['descriptionFactory']['registerElementLabel']('paragraph',_0x336121=>o(_0x27bd09,'ELEMENT_PARAGRAPH',_0x336121)),_0x4fa656['enableDefaultAttributesIntegration']('paragraph'),_0x4fa656['enableCommand']('insertParagraph'),_0x1bf5f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1bf5f8),{'priority':'highest'}),_0x1bf5f8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3c6dcd,_0x57e565,_0x453094)=>{_0x453094['options']['showSuggestionHighlights']&&nr(_0x1bf5f8,{'showActiveMarker':!0x1})(_0x3c6dcd,_0x57e565,_0x453094);},{'priority':'highest'});const _0x2b2c67=_0x4fa656['descriptionFactory'];_0x2b2c67['registerDescriptionCallback'](_0x239fd7=>{if('insertion'!==_0x239fd7['type'])return;const {start:_0x3073d2,end:_0xe6e3c2}=_0x239fd7['getFirstRange']();if(!_0x3073d2['isTouching'](_0xe6e3c2)||!_0x3073d2['nodeAfter'])return;const _0x57fa39=_0x1bf5f8['model']['schema'],_0x3987d9=_0x3073d2['nodeAfter'];return _0x57fa39['isBlock'](_0x3987d9)&&!_0x57fa39['isLimit'](_0x3987d9)&&_0x57fa39['checkChild'](_0x3987d9,'$text')?{'type':'insertion','content':o(_0x27bd09,'*Insert:*\x20%0',_0x2b2c67['getItemLabel'](_0x3987d9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45e950=this['editor'],_0x44227b=_0x45e950['locale'];_0x45e950['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x173bc5=>{if('formatBlock'!=_0x173bc5['type'])return;const {data:_0x2b40ca}=_0x173bc5;return _0x2b40ca&&'paragraph'==_0x2b40ca['commandName']?{'type':'format','content':o(_0x44227b,'*Change\x20to:*\x20%0',o(_0x44227b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x44ea9a,{showActiveMarker:_0x345e68=!0x0}={}){return(_0x10ecb5,_0x996ae8,_0x47f161)=>{const _0x34539e=_0x44ea9a['plugins']['get']('TrackChangesEditing'),_0x3e12a0=_0x996ae8['markerRange']['start'],_0x563f12=_0x996ae8['markerRange']['end'],_0x1ef3d5=_0x44ea9a['model']['schema'];if(!_0x3e12a0['isTouching'](_0x563f12)||!_0x3e12a0['nodeAfter'])return;const _0x5c7843=_0x3e12a0['nodeAfter'];if(_0x1ef3d5['isBlock'](_0x5c7843)&&!_0x1ef3d5['isLimit'](_0x5c7843)&&_0x1ef3d5['checkChild'](_0x5c7843,'$text')){if(!_0x47f161['consumable']['consume'](_0x996ae8['markerRange'],_0x10ecb5['name']))return;const {id:_0x2e2031,authorId:_0x1b7745}=_0x34539e['_splitMarkerName'](_0x996ae8['markerName']),_0x126231=_0x47f161['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2e2031,'data-author-id':_0x1b7745}),_0x35b60a=_0x47f161['mapper']['toViewPosition'](_0x563f12);_0x345e68&&_0x34539e['activeMarkers']['includes'](_0x996ae8['markerName'])&&_0x47f161['writer']['addClass']('ck-suggestion-marker--active',_0x126231),_0x47f161['writer']['insert'](_0x35b60a,_0x126231),_0x47f161['mapper']['bindElementToMarker'](_0x126231,_0x996ae8['markerName']);}};}class At extends _0x3f9a7e{['afterInit'](){const _0xb0a732=this['editor'];_0xb0a732['commands']['get']('replaceSource')&&_0xb0a732['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x3f9a7e{['afterInit'](){const _0x5c552f=this['editor'];if(!_0x5c552f['plugins']['has']('RemoveFormatEditing'))return;_0x5c552f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5935b0=this['editor'];_0x5935b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15986f=>{if('formatBlock'!=_0x15986f['type']&&'formatInline'!=_0x15986f['type'])return;const {data:_0x51f1e8}=_0x15986f;return _0x51f1e8&&'removeFormat'==_0x51f1e8['commandName']?{'type':'format','content':o(_0x5935b0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class $t extends _0x3f9a7e{['afterInit'](){const _0x213e6a=this['editor'];if(!_0x213e6a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5483f8=_0x213e6a['plugins']['get']('TrackChangesEditing');_0x5483f8['enableCommand']('goToPreviousRestrictedEditingException'),_0x5483f8['enableCommand']('goToNextRestrictedEditingException');const _0x3d01b7=_0x213e6a['plugins']['get']('RestrictedEditingModeEditing');_0x3d01b7['enableCommand']('trackChanges'),_0x3d01b7['enableCommand']('acceptSuggestion'),_0x3d01b7['enableCommand']('discardSuggestion'),_0x3d01b7['enableCommand']('acceptAllSuggestions'),_0x3d01b7['enableCommand']('discardAllSuggestions'),_0x3d01b7['enableCommand']('acceptSelectedSuggestions'),_0x3d01b7['enableCommand']('discardSelectedSuggestions');}}class vt extends _0x3f9a7e{['afterInit'](){const _0x16b84b=this['editor'];if(!_0x16b84b['plugins']['has']('ShiftEnter'))return;const _0x434728=_0x16b84b['plugins']['get']('TrackChangesEditing');_0x434728['enableCommand']('shiftEnter'),_0x16b84b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',qe(_0x16b84b),{'priority':'high'}),_0x16b84b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',qe(_0x16b84b),{'priority':'high'}),_0x16b84b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x40862b,_0x251a2e,_0x110a93)=>{_0x110a93['options']['showSuggestionHighlights']&&qe(_0x16b84b,{'showActiveMarker':!0x1})(_0x40862b,_0x251a2e,_0x110a93);}),_0x434728['descriptionFactory']['registerElementLabel']('softBreak',_0x425cb5=>o(_0x16b84b['locale'],'ELEMENT_LINE_BREAK',_0x425cb5));}}function qe(_0x39217d,{showActiveMarker:_0x2d70cb=!0x0}={}){return(_0x194a9e,_0x1dd647,_0x272235)=>{const _0x50f080=_0x39217d['plugins']['get']('TrackChangesEditing');if(!_0x272235['consumable']['test'](_0x1dd647['markerRange'],_0x194a9e['name']))return;const _0x583aa9=_0x39217d['model'];for(const _0x4ad09c of _0x1dd647['markerRange']['getItems']()){if(!_0x4ad09c['is']('element','softBreak'))continue;const _0x54496a='deletion'==_0x1dd647['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x5f29c1,authorId:_0x568f8a}=_0x50f080['_splitMarkerName'](_0x1dd647['markerName']),_0x38f75f=_0x272235['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x54496a,'data-suggestion':_0x5f29c1,'data-author-id':_0x568f8a}),_0x2f1feb=_0x272235['mapper']['toViewPosition'](_0x583aa9['createPositionBefore'](_0x4ad09c));_0x2d70cb&&_0x50f080['activeMarkers']['includes'](_0x1dd647['markerName'])&&_0x272235['writer']['addClass']('ck-suggestion-marker--active',_0x38f75f),_0x272235['writer']['insert'](_0x2f1feb,_0x38f75f),_0x272235['mapper']['bindElementToMarker'](_0x38f75f,_0x1dd647['markerName']);}};}class Ct extends _0x3f9a7e{['afterInit'](){const _0x3d5c8e=this['editor'],_0x504b70=_0x3d5c8e['model'],_0xff0b3e=_0x3d5c8e['locale'];if(!_0x3d5c8e['plugins']['has']('StandardEditingModeEditing'))return;const _0x4b59cb=_0x3d5c8e['plugins']['get']('TrackChangesEditing'),_0x5ef4b1='restrictedEditingException',_0x218a9d=_0x3d5c8e['commands']['get'](_0x5ef4b1);_0x4b59cb['enableCommand'](_0x5ef4b1,(_0x85ff2,_0xd7d777={})=>{const _0x491098=_0x504b70['document']['selection'];if(_0x491098['isCollapsed'])return void _0x85ff2(_0xd7d777);const _0x569f20=void 0x0!==_0xd7d777['forceValue']?_0xd7d777['forceValue']:!_0x218a9d['value'];_0x504b70['change'](()=>{const _0x3277c6=Array['from'](_0x491098['getRanges']());for(const _0x15501f of _0x3277c6){const _0x1c642f=_0x569f20?[_0x15501f]:io(_0x5ef4b1,_0x15501f,_0x504b70);for(const _0x420587 of _0x1c642f)_0x4b59cb['markInlineFormat'](_0x420587,{'commandName':_0x5ef4b1,'commandParams':[{'forceValue':_0x569f20}]});}});}),_0x4b59cb['descriptionFactory']['registerDescriptionCallback'](_0x3e411a=>{if('formatBlock'!=_0x3e411a['type']&&'formatInline'!=_0x3e411a['type'])return;const {data:_0xcb8e76}=_0x3e411a;return _0xcb8e76&&_0xcb8e76['commandName']==_0x5ef4b1?_0xcb8e76['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xff0b3e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xff0b3e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Nt extends _0x3f9a7e{['afterInit'](){const _0x3706ae=this['editor'];if(!_0x3706ae['plugins']['has']('Style')||!_0x3706ae['plugins']['has']('DataSchema'))return;const _0x269847=_0x3706ae['plugins']['get']('TrackChangesEditing'),_0x10763f=_0x3706ae['locale'],_0x29bfa1=_0x3706ae['config']['get']('style')||{},_0x28e717=_0x3706ae['plugins']['get']('GeneralHtmlSupport'),_0x33ba04=_0x3706ae['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3706ae['plugins']['get']('DataSchema'),_0x29bfa1['definitions']);_0x269847['enableDefaultAttributesIntegration']('style');const _0x4dfe9e=new Set();for(const _0x5318e0 of _0x33ba04['block']){const _0x180804=_0x28e717['getGhsAttributeNameForElement'](_0x5318e0['element']);_0x4dfe9e['add'](_0x180804);}const _0x29fb5c=new Set();for(const _0x4e64b8 of _0x33ba04['inline']){const _0x29b4d3=_0x28e717['getGhsAttributeNameForElement'](_0x4e64b8['element']);_0x29fb5c['add'](_0x29b4d3);for(const _0x17323f of _0x4e64b8['ghsAttributes'])_0x29fb5c['add'](_0x17323f);}for(const _0x3f64fd of _0x4dfe9e)_0x269847['registerBlockAttribute'](_0x3f64fd),_0x269847['descriptionFactory']['registerAttributeLabel'](_0x3f64fd,o(_0x10763f,'FORMAT_STYLE'));for(const _0x65bba4 of _0x29fb5c)_0x269847['registerInlineAttribute'](_0x65bba4),_0x269847['descriptionFactory']['registerAttributeLabel'](_0x65bba4,o(_0x10763f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47021e=this['editor'],_0x2c1321=_0x47021e['locale'];_0x47021e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe02ca4=>{if('formatBlock'!=_0xe02ca4['type']&&'formatInline'!=_0xe02ca4['type'])return;const {data:_0x5797d3}=_0xe02ca4;return _0x5797d3&&'style'===_0x5797d3['commandName']?_0x5797d3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c1321,'*Set\x20format:*\x20%0',_0x5797d3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2c1321,'*Remove\x20format:*\x20%0',_0x5797d3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x3f9a7e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2f5ea){super(_0x2f5ea),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x37e11b=this['editor'],_0x2ac846=_0x37e11b['model']['document']['selection'];if(!_0x37e11b['plugins']['has']('TableEditing'))return;const _0x3d7e0e=_0x37e11b['locale'],_0x5743e4=_0x37e11b['plugins']['get']('TrackChangesEditing'),_0x290ec5=_0x37e11b['plugins']['get']('TableUtils');_0x5743e4['descriptionFactory']['registerElementLabel']('table',_0x558e60=>o(_0x3d7e0e,'ELEMENT_TABLE',_0x558e60)),this['_setupColumnsRowsFixing'](),_0x5743e4['enableCommand']('insertTable'),_0x5743e4['enableCommand']('selectTableRow'),_0x5743e4['enableCommand']('selectTableColumn');for(const _0x3e566e of['insertTableRowAbove','insertTableRowBelow']){const _0x1c37f7=_0x37e11b['commands']['get'](_0x3e566e);_0x5743e4['enableCommand'](_0x3e566e,_0x25741e=>{_0x37e11b['model']['change'](_0x43d37f=>{_0x25741e();const _0x1f542c='above'===_0x1c37f7['order'],_0x13fff7=_0x290ec5['getSelectionAffectedTableCells'](_0x2ac846),_0x3e0913=_0x290ec5['getRowIndexes'](_0x13fff7),_0x2564f5=_0x1f542c?_0x3e0913['first']-0x1:_0x3e0913['last']+0x1,_0x1d9a1b=_0x13fff7[0x0]['findAncestor']('table'),_0x2e9d96=_0x290ec5['createTableWalker'](_0x1d9a1b,{'startRow':_0x2564f5,'endRow':_0x2564f5}),_0x29216c=Array['from'](_0x2e9d96)['map'](_0x45cc04=>_0x43d37f['createRangeOn'](_0x45cc04['cell']));_0x5743e4['markMultiRangeInsertion'](_0x29216c,'tableRow');});});}for(const _0x35e53b of['insertTableColumnLeft','insertTableColumnRight']){const _0xf5f007=_0x37e11b['commands']['get'](_0x35e53b);_0x5743e4['enableCommand'](_0x35e53b,_0x1dc8e7=>{_0x37e11b['model']['change'](_0x3504df=>{_0x1dc8e7();const _0x2994aa='left'===_0xf5f007['order'],_0x4083bb=_0x290ec5['getSelectionAffectedTableCells'](_0x2ac846),_0xfca8cf=_0x290ec5['getColumnIndexes'](_0x4083bb),_0x823745=_0x2994aa?_0xfca8cf['first']-0x1:_0xfca8cf['last']+0x1,_0x3fe55e=_0x4083bb[0x0]['findAncestor']('table'),_0x1f466b=_0x290ec5['createTableWalker'](_0x3fe55e,{'startRow':0x0,'column':_0x823745,'includeAllSlots':!0x1}),_0x2e9dc0=Array['from'](_0x1f466b)['map'](_0x436885=>_0x3504df['createRangeOn'](_0x436885['cell']));_0x5743e4['markMultiRangeInsertion'](_0x2e9dc0,'tableColumn');});});}for(const _0x37f494 of['removeTableRow','removeTableColumn']){const _0x4067a8=_0x37f494['substr'](0xb),_0xd1d4fa=_0x4067a8['toLowerCase'](),_0xb4b10e=_0xd1d4fa['substr'](0x0,0x3)+'span',_0x5ebba1='table'+_0x4067a8,_0x23ed82='min'+_0x4067a8,_0x33cb4d='max'+_0x4067a8;_0x5743e4['enableCommand'](_0x37f494,()=>{_0x37e11b['model']['change'](_0x447665=>{const _0x30ec4d=_0x290ec5['getSelectionAffectedTableCells'](_0x2ac846),_0x2947f7=_0x30ec4d[0x0]['findAncestor']('table');let _0x2f18a3;if('removeTableRow'==_0x37f494){const _0x68d535=_0x290ec5['getRowIndexes'](_0x30ec4d);_0x2f18a3={'startRow':_0x68d535['first'],'endRow':_0x68d535['last'],'includeAllSlots':!0x0};}else{const _0x5a60b4=_0x290ec5['getColumnIndexes'](_0x30ec4d);_0x2f18a3={'startColumn':_0x5a60b4['first'],'endColumn':_0x5a60b4['last'],'includeAllSlots':!0x0};}const _0x3faafe=_0x290ec5['createTableWalker'](_0x2947f7,_0x2f18a3),_0x51d2d2=Array['from'](_0x3faafe)['map'](({cell:_0x3e65e9})=>_0x3e65e9),_0x2fe337=Oe(_0x51d2d2['filter'](_0x4cb2eb=>_0x4cb2eb['hasAttribute'](_0xb4b10e))),_0x3517f2=Oe(_0x51d2d2['filter'](_0x216957=>!_0x216957['hasAttribute'](_0xb4b10e)))['map'](_0x5642a8=>_0x447665['createRangeOn'](_0x5642a8)),_0x2b928f=_0x5743e4['markMultiRangeDeletion'](_0x3517f2,_0x5ebba1);if(_0x2b928f&&('tableRow'==_0x2b928f['subType']||'tableColumn'==_0x2b928f['subType'])){const _0x3761e1=this['_getSuggestionCoords'](_0x2b928f);for(const _0x2659fa of _0x2fe337){const _0x5e28b6=_0x447665['createRangeOn'](_0x2659fa),_0x5ddfa1=_0x290ec5['getCellLocation'](_0x2659fa),_0x288d87=_0x2659fa['getAttribute'](_0xb4b10e)-0x1,_0x3efd9d=_0x3761e1[_0x23ed82],_0x338b43=_0x3761e1[_0x33cb4d];_0x3efd9d<=_0x5ddfa1[_0xd1d4fa]&&_0x5ddfa1[_0xd1d4fa]+_0x288d87<=_0x338b43&&_0x2b928f['addRange'](_0x5e28b6);}}});});}function _0x437fd9(_0xdfed51){const _0x2d5347=Array['from'](_0x2ac846['getRanges']())['map'](_0x366b48=>_0x360709['fromRange'](_0x366b48));_0x37e11b['model']['change'](_0x5b71c8=>{const _0x474736=_0x5b71c8['batch'];_0xdfed51=_0xdfed51['filter'](_0x11a81a=>'$graveyard'!=_0x11a81a['root']['rootName']),_0x5b71c8['setSelection'](_0xdfed51),_0x37e11b['commands']['get']('removeTableRow')['refresh'](),_0x37e11b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x37e11b['model']['enqueueChange'](()=>{_0x37e11b['model']['enqueueChange'](_0x474736,_0x5ef408=>{const _0x28fb25=_0x2d5347['filter'](_0x2fd73c=>'$graveyard'!=_0x2fd73c['root']['rootName']);_0x28fb25['length']>0x0&&_0x5ef408['setSelection'](_0x28fb25);for(const _0x48062d of _0x2d5347)_0x48062d['detach']();});});});}function _0x4c78c2(_0x1bee93){_0x37e11b['model']['change'](_0x54d257=>{const _0x28a419=Array['from'](_0x2ac846['getRanges']())['map'](_0x19b158=>_0x360709['fromRange'](_0x19b158)),_0x2e5606=[];for(const _0x52b583 of _0x1bee93)for(const _0x172063 of _0x52b583['getItems']({'shallow':!0x0}))_0x2e5606['push'](_0x172063);for(const _0x9df88a of _0x2e5606)'$graveyard'!=_0x9df88a['root']['rootName']&&(_0x54d257['setSelection'](_0x54d257['createPositionAt'](_0x9df88a,0x0)),_0x37e11b['commands']['get']('removeTableColumn')['refresh'](),_0x37e11b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5e8591=_0x28a419['filter'](_0x564f91=>'$graveyard'!=_0x564f91['root']['rootName']);_0x5e8591['length']>0x0&&_0x54d257['setSelection'](_0x5e8591);for(const _0x5a6132 of _0x28a419)_0x5a6132['detach']();});}function _0x52b5fa(_0x5b0ed7,_0xbfcbbb){return _0xbfcbbb['every'](_0x4f5fb7=>_0x5b0ed7['some'](_0x4e3ae5=>_0x4e3ae5['end']['isEqual'](_0x4f5fb7['start'])||_0x4f5fb7['end']['isEqual'](_0x4e3ae5['start'])));}function _0x27f636(_0x481600,_0x27f7ce){return!_0x481600['some'](_0x554677=>_0x27f7ce['some'](_0x281829=>_0x554677['isIntersecting'](_0x281829)))&&_0x481600['some'](_0x55bde4=>_0x27f7ce['some'](_0x4e85f6=>_0x55bde4['end']['isTouching'](_0x4e85f6['start'])));}_0x37e11b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1aa34e,_0x324983,_0xd178e4)=>{if(!_0xd178e4['options']['showSuggestionHighlights'])return;const _0x2fa8bf=_0x324983['item'];if(!_0x2fa8bf||!_0x2fa8bf['is']('element','tableCell'))return;const _0x2801d8=_0xd178e4['mapper']['toViewElement'](_0x2fa8bf);if(_0x2801d8){const {id:_0x1eebcc,authorId:_0x2216d3}=_0x5743e4['_splitMarkerName'](_0x324983['markerName']);_0x46ab54(_0x2801d8,_0xd178e4['writer'],(_0x2862db,_0x47f45a,_0x3df1df)=>{_0x3df1df['addClass'](_0x15d44f(_0x47f45a['classes']),_0x2862db),_0x3df1df['setAttribute']('data-suggestion-id',_0x1eebcc,_0x2862db),_0x3df1df['setAttribute']('data-author-id',_0x2216d3,_0x2862db);},(_0x36f838,_0x391ed9,_0x4691b9)=>{_0x4691b9['removeClass'](_0x15d44f(_0x391ed9['classes']),_0x36f838),_0x4691b9['removeAttribute']('data-suggestion-id',_0x36f838),_0x4691b9['removeAttribute']('data-author-id',_0x36f838);});}},{'priority':'highest'}),_0x5743e4['descriptionFactory']['registerDescriptionCallback'](_0x480d4c=>{if('insertion'!=_0x480d4c['type']&&'deletion'!=_0x480d4c['type'])return;const _0x73da8d=_0x480d4c['getContainedElement']();if(null!=_0x73da8d&&_0x73da8d['is']('element','table')){if('insertion'==_0x480d4c['type']){const _0x4d0a5e=_0x480d4c['getItems']()['filter'](_0x5c11da=>_0x5c11da['is']('$textProxy'))['map'](_0xe2d194=>_0xe2d194['data']);if(_0x4d0a5e['length'])return{'type':'insertion','content':o(_0x3d7e0e,'*Insert:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4d0a5e['join']('\x20')+'\x22'))};}if('deletion'==_0x480d4c['type']){const _0x58966e=_0x480d4c['getItems']()['filter'](_0x54560e=>_0x54560e['is']('$textProxy'))['map'](_0x292a11=>_0x292a11['data']);if(_0x58966e['length'])return{'type':'deletion','content':o(_0x3d7e0e,'*Remove:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x58966e['join']('\x20')+'\x22'))};}}}),_0x5743e4['descriptionFactory']['registerDescriptionCallback'](_0x575298=>{if('tableRow'==_0x575298['subType']){const _0x1503fb=_0x575298['getItems']()['filter'](_0x1be7bc=>_0x1be7bc['is']('$textProxy'))['map'](_0x521eae=>_0x521eae['data']),_0x41c9c8=this['_getSuggestionCoords'](_0x575298),_0x14d867=_0x41c9c8['maxRow']-_0x41c9c8['minRow']+0x1;if('insertion'==_0x575298['type'])return _0x1503fb['length']?{'type':'insertion','content':o(_0x3d7e0e,'*Insert:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14d867,'\x22'+_0x1503fb['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3d7e0e,'*Insert:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_ROW',_0x14d867))};if('deletion'==_0x575298['type'])return _0x1503fb['length']?{'type':'deletion','content':o(_0x3d7e0e,'*Remove:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14d867,'\x22'+_0x1503fb['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3d7e0e,'*Remove:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_ROW',_0x14d867))};}if('tableColumn'==_0x575298['subType']){const _0x571a21=_0x575298['getItems']()['filter'](_0x2c6ae8=>_0x2c6ae8['is']('$textProxy'))['map'](_0x158d42=>_0x158d42['data']),_0x4c2317=this['_getSuggestionCoords'](_0x575298),_0x246b11=_0x4c2317['maxColumn']-_0x4c2317['minColumn']+0x1;if('insertion'==_0x575298['type'])return _0x571a21['length']?{'type':'insertion','content':o(_0x3d7e0e,'*Insert:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x246b11,'\x22'+_0x571a21['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3d7e0e,'*Insert:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_COLUMN',_0x246b11))};if('deletion'==_0x575298['type'])return _0x571a21['length']?{'type':'deletion','content':o(_0x3d7e0e,'*Remove:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x246b11,'\x22'+_0x571a21['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3d7e0e,'*Remove:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_COLUMN',_0x246b11))};}}),_0x5743e4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x437fd9),_0x5743e4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x437fd9),_0x5743e4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4c78c2),_0x5743e4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4c78c2),_0x5743e4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x52b5fa),_0x5743e4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x52b5fa),_0x5743e4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x27f636),_0x5743e4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x27f636);}['_acceptFormatSuggestionCallbackFactory'](){const _0x36a76f=this['editor'],_0x5ea973=_0x36a76f['model']['document']['selection'];return(_0x3b4d24,_0xbef77a)=>{_0x36a76f['model']['change'](_0xaf4b3d=>{const {commandName:_0x10773c,commandParams:_0x5b3c0d}=_0xbef77a;let _0x51448f=_0x3b4d24[0x0]['end']['nodeBefore'];_0x5b3c0d&&_0x5b3c0d[0x0]&&!0x1===_0x5b3c0d[0x0]['forceValue']&&(_0x51448f=_0x3b4d24[0x0]['start']['nodeAfter']);const _0x2c919d=_0xaf4b3d['createRangeIn'](_0x51448f);if('$graveyard'==_0x2c919d['root']['rootName'])return;const _0x510cb6=Array['from'](_0x5ea973['getRanges']())['map'](_0x47b7f4=>_0x360709['fromRange'](_0x47b7f4));_0xaf4b3d['setSelection'](_0x2c919d),_0x36a76f['commands']['get'](_0x10773c)['refresh'](),_0x5b3c0d['push']({'forceDefaultExecution':!0x0}),_0x36a76f['execute'](_0x10773c,..._0x5b3c0d);const _0x52552a=_0x510cb6['filter'](_0x3e254f=>'$graveyard'!=_0x3e254f['root']['rootName']);_0x52552a['length']>0x0&&_0xaf4b3d['setSelection'](_0x52552a);for(const _0x104ac2 of _0x510cb6)_0x104ac2['detach']();});};}['_getCoordsForCells'](_0x39875f){const _0x550b33=this['editor']['plugins']['get']('TableUtils');let _0xd4ff8f=Number['MAX_SAFE_INTEGER'],_0x4681b2=Number['MIN_SAFE_INTEGER'],_0x28f09e=Number['MAX_SAFE_INTEGER'],_0xab658c=Number['MIN_SAFE_INTEGER'];for(const _0x14330f of _0x39875f){if('$graveyard'==_0x14330f['root']['rootName'])continue;const {row:_0x57fd07,column:_0x569412}=_0x550b33['getCellLocation'](_0x14330f),_0x2a4cfd=_0x14330f['hasAttribute']('rowspan')?_0x14330f['getAttribute']('rowspan')-0x1:0x0,_0x4dd2ae=_0x14330f['hasAttribute']('colspan')?_0x14330f['getAttribute']('colspan')-0x1:0x0;_0xd4ff8f=_0x57fd07<_0xd4ff8f?_0x57fd07:_0xd4ff8f,_0x4681b2=_0x57fd07+_0x2a4cfd>_0x4681b2?_0x57fd07+_0x2a4cfd:_0x4681b2,_0x28f09e=_0x569412<_0x28f09e?_0x569412:_0x28f09e,_0xab658c=_0x569412+_0x4dd2ae>_0xab658c?_0x569412+_0x4dd2ae:_0xab658c;}return{'minRow':_0xd4ff8f,'maxRow':_0x4681b2,'minColumn':_0x28f09e,'maxColumn':_0xab658c};}['_setupColumnsRowsFixing'](){const _0x4e521a=this['editor'],_0x5a5ad1=_0x4e521a['plugins']['get']('TrackChangesEditing'),_0x5232c8=_0x4e521a['plugins']['get']('TableUtils');_0x4e521a['model']['document']['on']('change:data',()=>{const _0x48b1c6=Array['from'](_0x4e521a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3e9373,data:_0x4c38db}of _0x48b1c6){const {group:_0x340ba5,id:_0x198f5a,subType:_0x3b0322}=_0x5a5ad1['_splitMarkerName'](_0x3e9373);if('suggestion'!=_0x340ba5)continue;if(null!=_0x4c38db['oldRange'])continue;const _0x52e3b4=_0x5a5ad1['getSuggestion'](_0x198f5a);this['_tablePostFixingSubtypes']['includes'](_0x3b0322)&&this['_tableSuggestions']['add'](_0x52e3b4);}},{'priority':'low'});const _0x41ca45=(_0x37c499,_0x35f35b)=>{let _0xc7a666=!0x1;const _0x24199b=_0x35f35b['createRangeOn'](_0x37c499),_0x3f1004=_0x37c499['findAncestor']('table'),_0x11a32a=_0x5232c8['getCellLocation'](_0x37c499);for(const _0x287d69 of this['_tableSuggestions']){const _0x48c684=_0x287d69['subType'],_0x59acbc=_0x48c684['startsWith']('tablePaste'),_0xbe8183=_0x48c684['substr'](_0x59acbc?0xa:0x5),_0x4cdcfa=_0xbe8183['toLowerCase'](),_0x1de0ca=_0x4cdcfa['substr'](0x0,0x3)+'span',_0x562666='min'+_0xbe8183,_0x4f50b0='max'+_0xbe8183;if(!_0x287d69['isInContent'])continue;if(_0x3f1004!=_0x287d69['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x287d69['isIntersectingWithRange'](_0x24199b))continue;const _0x50d30e=_0x37c499['hasAttribute'](_0x1de0ca)?_0x37c499['getAttribute'](_0x1de0ca)-0x1:0x0,_0x333cc2=this['_getSuggestionCoords'](_0x287d69),_0x3c1a4b=_0x333cc2[_0x562666],_0x417d62=_0x333cc2[_0x4f50b0];_0x3c1a4b<=_0x11a32a[_0x4cdcfa]&&_0x11a32a[_0x4cdcfa]+_0x50d30e<=_0x417d62&&(_0x287d69['addRange'](_0x24199b),_0xc7a666=!0x0);}return _0xc7a666;};_0x4e521a['model']['document']['registerPostFixer'](_0x326711=>{let _0x47c6d9=!0x1;for(const _0x4210f3 of _0x4e521a['model']['document']['differ']['getChanges']())if('insert'==_0x4210f3['type']){if('tableRow'==_0x4210f3['name']){for(const _0x3b1c79 of _0x4210f3['position']['nodeAfter']['getChildren']())_0x47c6d9=_0x47c6d9||_0x41ca45(_0x3b1c79,_0x326711);}else'tableCell'==_0x4210f3['name']&&(_0x47c6d9=_0x47c6d9||_0x41ca45(_0x4210f3['position']['nodeAfter'],_0x326711));}return _0x47c6d9;});}['_getSuggestionCoords'](_0x228314){return this['_getCoordsForCells'](_0x228314['getRanges']()['map'](_0x3d3498=>_0x3d3498['start']['nodeAfter']));}}function Oe(_0x5d6382){return Array['from'](new Set(_0x5d6382)['values']());}class Mt extends _0x3f9a7e{static get['requires'](){return[Dt];}['afterInit'](){const _0xc9ab6d=this['editor'],_0x12c1df=_0xc9ab6d['model']['document']['selection'],_0x31bb28=_0xc9ab6d['locale'];if(!_0xc9ab6d['plugins']['has']('TableEditing'))return;const _0x38714c=_0xc9ab6d['plugins']['get']('TrackChangesEditing'),_0x5eac13=_0xc9ab6d['plugins']['get']('TableUtils'),_0x27537d=_0xc9ab6d['plugins']['get'](Dt);_0x27537d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x38714c['enableCommand']('mergeTableCells',()=>{const _0x394f03=_0x5eac13['getSelectionAffectedTableCells'](_0xc9ab6d['model']['document']['selection']);_0xc9ab6d['model']['change'](()=>{_0x38714c['markMultiRangeBlockFormat'](_0x394f03,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xc9ab6d['commands']['get']('mergeTableCells')['on']('execute',(_0xdb0ebc,_0x130942)=>{_0xc9ab6d['commands']['get']('trackChanges')['value']&&(_0x130942['length']>0x0&&_0x130942[_0x130942['length']-0x1]&&_0x130942[_0x130942['length']-0x1]['forceDefaultExecution']||_0x38714c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xdb0ebc['stop']());},{'priority':'highest'});for(const _0x1ae0ff of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x243d50=_0xc9ab6d['commands']['get'](_0x1ae0ff);_0x38714c['enableCommand'](_0x1ae0ff,()=>{const _0x4391da=_0xc9ab6d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x30d4c0=>_0x30d4c0['is']('element','tableCell')),_0x392817=_0x243d50['value'];_0xc9ab6d['model']['change'](()=>{_0x38714c['markMultiRangeBlockFormat']([_0x4391da,_0x392817],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5f3b69 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x49efd6=_0xc9ab6d['commands']['get'](_0x5f3b69);_0x38714c['enableCommand'](_0x5f3b69,()=>{const _0x20849a=_0x5eac13['getSelectionAffectedTableCells'](_0xc9ab6d['model']['document']['selection'])[0x0],_0x3eed14=_0x20849a['findAncestor']('table'),{column:_0x5af732,row:_0x3a6369}=_0x5eac13['getCellLocation'](_0x20849a);let _0x3d771c=[];if('horizontally'==_0x49efd6['direction']){const _0x23263b=_0x5eac13['createTableWalker'](_0x3eed14,{'startRow':_0x3a6369,'endRow':_0x3a6369,'includeAllSlots':!0x0});_0x3d771c=Array['from'](_0x23263b)['map'](_0x3f7899=>_0x3f7899['cell']);}else{const _0xba3c8a=_0x5eac13['createTableWalker'](_0x3eed14,{'column':_0x5af732,'includeAllSlots':!0x0});_0x3d771c=Array['from'](_0xba3c8a)['map'](_0x441fcf=>_0x441fcf['cell']);}_0xc9ab6d['model']['change'](_0x2a986f=>{_0x38714c['markBlockFormat'](_0x2a986f['createRangeOn'](_0x20849a),{'commandName':_0x5f3b69,'commandParams':[]},_0x3d771c,_0x5f3b69);});});}_0x38714c['descriptionFactory']['registerDescriptionCallback'](_0x54ee8d=>{if('formatBlock'!=_0x54ee8d['type']&&'formatInline'!=_0x54ee8d['type'])return;const {data:_0x527a13}=_0x54ee8d;return _0x527a13&&'mergeTableCells'==_0x527a13['commandName']?{'type':'format','content':o(_0x31bb28,'*Merge\x20cells*')}:void 0x0;}),_0x38714c['descriptionFactory']['registerDescriptionCallback'](_0x835ff=>{if('formatBlock'!=_0x835ff['type']&&'formatInline'!=_0x835ff['type'])return;const {data:_0x2a3831}=_0x835ff;return _0x2a3831?'splitTableCellVertically'==_0x2a3831['commandName']?{'type':'format','content':o(_0x31bb28,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2a3831['commandName']?{'type':'format','content':o(_0x31bb28,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x36fe51=_0x27537d['_acceptFormatSuggestionCallbackFactory']();for(const _0x53fa66 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x38714c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53fa66,'accept',_0x36fe51);for(const _0x2f8738 of['splitTableCellVertically','splitTableCellHorizontally'])_0x38714c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2f8738,'accept',_0x36fe51);_0x38714c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4e0489=>{_0xc9ab6d['model']['change'](_0xb9171f=>{const _0x598ad1=Array['from'](_0x12c1df['getRanges']())['map'](_0x4f51f7=>_0x360709['fromRange'](_0x4f51f7));_0xb9171f['setSelection'](_0x4e0489),_0xc9ab6d['commands']['get']('mergeTableCells')['refresh'](),_0xc9ab6d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x396fe8=_0x598ad1['filter'](_0x42c0a1=>'$graveyard'!=_0x42c0a1['root']['rootName']);_0x396fe8['length']>0x0&&_0xb9171f['setSelection'](_0x396fe8);for(const _0x158626 of _0x598ad1)_0x158626['detach']();});});for(const _0x18a545 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1b6f13=_0xc9ab6d['commands']['get'](_0x18a545);_0x1b6f13['on']('set:isEnabled',(_0x56d102,_0x5845b5,_0x320d0b)=>{if(_0x320d0b){const _0x482ed7=_0xc9ab6d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x333a36=>_0x333a36['is']('element','tableCell'));this['_areMergableCells'](_0x1b6f13['value'],_0x482ed7)||(_0x56d102['return']=!0x1,_0x56d102['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xd06d9f=this['editor']['commands']['get']('mergeTableCells'),_0x13760e=this['editor']['plugins']['get']('TableUtils');if(!_0xd06d9f['isEnabled'])return!0x1;const _0x29fa50=_0x13760e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4bd0ff of _0x29fa50)for(const _0x6e2f76 of _0x29fa50)if(_0x4bd0ff!=_0x6e2f76&&!this['_areMergableCells'](_0x4bd0ff,_0x6e2f76))return!0x1;return!0x0;}['_areMergableCells'](_0x1f1534,_0x2f486f){const _0x48a636=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfa749c=this['editor']['model']['createRangeOn'](_0x1f1534),_0x44775a=this['editor']['model']['createRangeOn'](_0x2f486f),_0x19b568=new Set(),_0x39ab5e=new Set();for(const _0x36e007 of _0x48a636['getSuggestions']())if(('insertion'==_0x36e007['type']||'deletion'==_0x36e007['type']||'mergeTableCells'==_0x36e007['subType'])&&_0x36e007['isInContent']){for(const _0xdc4e8b of _0x36e007['getRanges']())_0xdc4e8b['containsRange'](_0xfa749c,!0x0)&&_0x19b568['add'](_0x36e007['type']+':'+_0x36e007['author']['id']),_0xdc4e8b['containsRange'](_0x44775a,!0x0)&&_0x39ab5e['add'](_0x36e007['type']+':'+_0x36e007['author']['id']);}if(_0x19b568['size']!=_0x39ab5e['size'])return!0x1;for(const _0x4b5917 of _0x19b568)if(!_0x39ab5e['has'](_0x4b5917))return!0x1;return!0x0;}}class Bt extends _0x3f9a7e{static get['requires'](){return[Dt];}['afterInit'](){const _0x3de8aa=this['editor'];if(!_0x3de8aa['plugins']['has']('TableEditing'))return;const _0x178495=_0x3de8aa['locale'],_0x5856f0=_0x3de8aa['plugins']['get']('TrackChangesEditing');_0x5856f0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5856f0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5856f0['registerBlockAttribute']('headingRows'),_0x5856f0['registerBlockAttribute']('headingColumns'),_0x5856f0['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x178495,'FORMAT_HEADER_ROW')),_0x5856f0['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x178495,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xd6ee7a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5be3b9=this['editor']['plugins']['get']('TableUtils'),_0x4f4d4b=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();function _0x4f4b73({showActiveMarker:_0x3687a8=!0x0,setDataAttribute:_0x23adc2=!0x0}={}){return(_0x5ad3f7,_0x4add46,_0x4cc0bb)=>{const {type:_0x33c817,id:_0x380b1f}=_0xd6ee7a['_splitMarkerName'](_0x4add46['markerName']);if(!_0xd6ee7a['hasSuggestion'](_0x380b1f))return;const _0x607421=_0xd6ee7a['getSuggestion'](_0x380b1f),_0x2c1f30=_0x607421['data'];if('formatBlock'!=_0x607421['type']||!_0x2c1f30||'setTableColumnHeader'!=_0x2c1f30['commandName'])return;if(_0x4add46['item'])return void _0x5ad3f7['stop']();if(!_0x4cc0bb['consumable']['consume'](_0x4add46['markerRange'],_0x5ad3f7['name']))return;const _0x19f168=_0x4add46['markerRange']['start']['nodeAfter'],_0x408ffa=_0x4add46['markerRange']['end']['nodeBefore'],_0x54e9b1=_0x19f168['parent']['parent'],{column:_0x182a73}=_0x5be3b9['getCellLocation'](_0x19f168),{column:_0x3032e2}=_0x5be3b9['getCellLocation'](_0x408ffa);for(let _0x565e3b=_0x182a73;_0x565e3b<=_0x3032e2;_0x565e3b++){const _0x37f678=_0x5be3b9['createTableWalker'](_0x54e9b1,{'column':_0x565e3b,'includeAllSlots':!0x1});for(const _0x562689 of _0x37f678){const _0x466231=_0x562689['cell'],_0x347ebf=_0x4cc0bb['mapper']['toViewElement'](_0x466231);_0x4cc0bb['writer']['addClass']('ck-suggestion-marker-'+_0x33c817,_0x347ebf),_0x23adc2&&_0x4cc0bb['writer']['setAttribute']('data-suggestion',_0x380b1f,_0x347ebf),_0x4cc0bb['mapper']['bindElementToMarker'](_0x347ebf,_0x4add46['markerName']),_0x3687a8&&(_0xd6ee7a['activeMarkers']['includes'](_0x4add46['markerName'])?_0x4cc0bb['writer']['addClass']('ck-suggestion-marker--active',_0x347ebf):_0x4cc0bb['writer']['removeClass']('ck-suggestion-marker--active',_0x347ebf));}}};}_0xd6ee7a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4f4d4b),_0xd6ee7a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4f4d4b),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4f4b73(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x358af4,_0x2c77db,_0x4e5a03)=>{_0x4e5a03['options']['showSuggestionHighlights']&&_0x4f4b73({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x358af4,_0x2c77db,_0x4e5a03);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5a6929,_0x30cdec,_0x2f53cc)=>{const {type:_0x353cfd,id:_0xd754f3}=_0xd6ee7a['_splitMarkerName'](_0x30cdec['markerName']);if(!_0xd6ee7a['hasSuggestion'](_0xd754f3))return;const _0x3e34bb=_0xd6ee7a['getSuggestion'](_0xd754f3),_0x5eefbc=_0x3e34bb['data'];if('formatBlock'!=_0x3e34bb['type']||!_0x5eefbc||'setTableColumnHeader'!=_0x5eefbc['commandName'])return;const _0x467530=_0x2f53cc['mapper']['markerNameToElements'](_0x30cdec['markerName']);if(_0x467530){for(const _0x4d8b0e of _0x467530)_0x2f53cc['writer']['removeClass']('ck-suggestion-marker-'+_0x353cfd,_0x4d8b0e),_0x2f53cc['writer']['removeClass']('ck-suggestion-marker--active',_0x4d8b0e),_0x2f53cc['writer']['removeAttribute']('data-suggestion',_0x4d8b0e),_0x2f53cc['mapper']['unbindElementFromMarkerName'](_0x4d8b0e,_0x30cdec['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25b2f4=this['editor'],_0x144bbe=_0x25b2f4['locale'];function _0x3a1802(_0x5bb272){return{'type':'format','content':o(_0x144bbe,'*Format:*\x20%0',_0x5bb272)};}_0x25b2f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13baed=>{if('formatBlock'!=_0x13baed['type'])return;const {data:_0x368454}=_0x13baed;if(_0x368454){if('setTableRowHeader'==_0x368454['commandName']){const _0x198a9d=_0x368454['commandParams'][0x0]['forceValue'];return _0x3a1802(o(_0x144bbe,_0x198a9d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x368454['commandName']){const _0x3ffb00=_0x368454['commandParams'][0x0]['forceValue'];return _0x3a1802(o(_0x144bbe,_0x3ffb00?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Tt extends _0x3f9a7e{['afterInit'](){const _0x5a5105=this['editor'],_0x295fce=_0x5a5105['locale'],_0x129e03=_0x5a5105['plugins']['get']('TrackChangesEditing');function _0x23a0ad(_0x35a8a0){return{'type':'format','content':''+o(_0x295fce,'*Set\x20table\x20type:*\x20%0',_0x35a8a0)};}_0x5a5105['plugins']['has']('TableLayout')&&(_0x129e03['enableCommand']('insertTableLayout'),_0x129e03['enableDefaultAttributesIntegration']('tableType'),_0x129e03['registerBlockAttribute']('tableType'),_0x129e03['descriptionFactory']['registerElementLabel'](_0x372748=>_0x372748['is']('element','table')&&'layout'===_0x372748['getAttribute']('tableType'),_0x3445=>o(_0x295fce,'ELEMENT_LAYOUT_TABLE',_0x3445)),_0x129e03['descriptionFactory']['registerDescriptionCallback'](_0x3df11a=>{const {data:_0x4a9df4}=_0x3df11a;if(_0x4a9df4&&'tableType'==_0x4a9df4['key'])switch(_0x4a9df4['newValue']){case'layout':return _0x23a0ad(o(_0x295fce,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x23a0ad(o(_0x295fce,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],He=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Ue['map'](_0x16addc=>[_0x16addc,null]));class Ot extends _0x3f9a7e{static get['requires'](){return[Dt];}['afterInit'](){const _0x5aeecf=this['editor'];if(!_0x5aeecf['plugins']['has']('TableClipboard'))return;const _0x14ab13=_0x5aeecf['plugins']['get']('TrackChangesEditing'),_0x1d746e=_0x5aeecf['plugins']['get']('TableUtils'),_0x36c298=_0x5aeecf['plugins']['get'](Dt),_0xb47da7=_0x5aeecf['plugins']['get']('TableClipboard'),_0x1b3c23=_0x5aeecf['plugins']['get']('TableSelection'),_0x2cf0f5=_0x5aeecf['plugins']['get'](_0x4daa20);_0x36c298['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5aeecf['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5aeecf['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1c6e8f=null,_0xe6da33=!0x1;_0x2cf0f5['on']('contentInsertion',(_0x55e3e7,_0x523be4)=>{_0xe6da33='paste'===_0x523be4['method'];}),_0x5aeecf['model']['on']('insertContent',(_0x12aaec,_0x434aa9)=>{if(!_0xe6da33&&null===_0x1b3c23['getSelectedTableCells']())return;const [_0x14d1ea,_0x2acb6e]=_0x434aa9,_0x3d1418=_0x434aa9[_0x434aa9['length']-0x1];_0x3d1418&&_0x3d1418['forceDefaultExecution']||_0x14ab13['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1fc7cd,_0xe76e0d,_0x5df36b,_0x3fff55,_0x58063c){if(_0xe76e0d&&!_0xe76e0d['is']('documentSelection'))return!0x1;const _0x1bc59e=_0x58063c['getTableIfOnlyTableInContent'](_0x1fc7cd,_0x5df36b);if(!_0x1bc59e||!Ge(_0x1bc59e,void 0x0,_0x3fff55))return!0x1;const _0x108315=_0x3fff55['getSelectionAffectedTableCells'](_0x5df36b['document']['selection']);if(!_0x108315['length'])return!0x1;const _0x19ad3b=_0x108315[0x0]['findAncestor']('table'),_0x93f6da=_0x3fff55['getRowIndexes'](_0x108315),_0x311d5b=_0x3fff55['getColumnIndexes'](_0x108315),_0x24cc44={'startRow':_0x93f6da['first'],'endRow':_0x93f6da['last'],'startColumn':_0x311d5b['first'],'endColumn':_0x311d5b['last']};return 0x1==_0x108315['length']&&(_0x24cc44['endRow']+=_0x3fff55['getRows'](_0x1bc59e)-0x1,_0x24cc44['endColumn']+=_0x3fff55['getColumns'](_0x1bc59e)-0x1),Ge(_0x19ad3b,_0x24cc44,_0x3fff55);}(_0x14d1ea,_0x2acb6e,_0x5aeecf['model'],_0x1d746e,_0xb47da7)&&(_0x12aaec['stop'](),_0x1c6e8f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5aeecf['model']['change'](()=>{_0x5aeecf['model']['insertContent'](_0x434aa9[0x0],_0x434aa9[0x1],_0x434aa9[0x2],{'forceDefaultExecution':!0x0});const _0x510c00=_0x172a90(),{rowInsertionRanges:_0x4322d1,columnInsertionRanges:_0x1ccadb,insertionRanges:_0x251a47,deletionRanges:_0x5eaea8,cells:_0x39e689}=_0x1c6e8f;_0x4322d1['length']&&_0x14ab13['markMultiRangeInsertion'](_0x4322d1,'tablePasteRow',{'tablePasteChainId':_0x510c00}),_0x1ccadb['length']&&_0x14ab13['markMultiRangeInsertion'](_0x1ccadb,'tablePasteColumn',{'tablePasteChainId':_0x510c00}),_0x251a47['length']&&(_0x14ab13['markMultiRangeInsertion'](_0x251a47,'tablePaste',{'tablePasteChainId':_0x510c00,'skipNestingCheck':!0x0}),_0x251a47['forEach'](_0x2445d0=>_0x2445d0['detach']?.())),_0x5eaea8['length']&&(_0x14ab13['markMultiRangeDeletion'](_0x5eaea8,'tablePaste',{'tablePasteChainId':_0x510c00,'skipNestingCheck':!0x0}),_0x5eaea8['forEach'](_0x24454c=>_0x24454c['detach']?.()));const _0x37d3a9=_0x14ab13['markMultiRangeBlockFormat'](_0x39e689['map'](({element:_0xc8d42c})=>_0xc8d42c),{'formatGroupId':_0x172a90()},[],'tablePasteCell',{'tablePasteChainId':_0x510c00});if(_0x37d3a9){const _0x1176af=_0x37d3a9['getMarkers'](),_0x35d4f1=[];for(const {element:_0x7557e5,attributes:_0x57ebae}of _0x39e689){if(!_0x57ebae)continue;const _0x2fb0cf=_0x5aeecf['model']['createRangeOn'](_0x7557e5),_0x30d0a3=_0x1176af['find'](_0x35835a=>_0x35835a['getRange']()['isEqual'](_0x2fb0cf));_0x30d0a3&&_0x35d4f1['push']([_0x30d0a3['name'],_0x57ebae]);}_0x35d4f1['length']&&_0x37d3a9['setAttribute']('markerAttributes',Object['fromEntries'](_0x35d4f1));}_0x1c6e8f=null;}));},{'priority':_0x3b0c6e['high']+0xa}),_0x2cf0f5['on']('contentInsertion',()=>{_0xe6da33=!0x1;},{'priority':'lowest'}),_0x5aeecf['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2f42fc,_0x454d1e)=>{const [_0x48e24c,_0x2c9b96,,_0x1c4b43]=_0x454d1e;if(!_0x1c6e8f)return;_0x2f42fc['stop']();const _0x5b0456=_0x48e24c['cell'],_0xed7a10=_0x2c9b96,_0x27f34d=ze(_0x5b0456),_0x4c91ba=ze(_0xed7a10);_0x2f42fc['return']=_0x5b0456;let _0x522308=null,_0x272a15=null;if(_0x4c91ba||_0x27f34d){if(_0x27f34d&&!_0x4c91ba){_0x1c4b43['remove'](_0x5b0456['getChild'](0x0));for(const _0x54961a of Array['from'](_0xed7a10['getChildren']()))_0x1c4b43['insert'](_0x54961a,_0x5b0456,'end');const _0x56f585=_0x1c6e8f['rowInsertionIndexes']['includes'](_0x48e24c['row']),_0x471b0c=_0x1c6e8f['columnInsertionIndexes']['includes'](_0x48e24c['column']);_0x56f585||_0x471b0c||(_0x522308=_0x360709['fromRange'](_0x1c4b43['createRangeIn'](_0x5b0456)));}else _0x4c91ba&&!_0x27f34d&&(_0x272a15=_0x1c4b43['createRangeIn'](_0x5b0456));}else{const _0x2b34b8=_0x1c4b43['createElement']('tableCellSuggestion'),_0x19f221=_0x1c4b43['createElement']('tableCellSuggestion');_0x1c4b43['wrap'](_0x1c4b43['createRangeIn'](_0x5b0456),_0x19f221),_0x1c4b43['insert'](_0x2b34b8,_0x5b0456,0x0);for(const _0x1e2534 of Array['from'](_0xed7a10['getChildren']()))_0x1c4b43['insert'](_0x1e2534,_0x2b34b8,'end');_0x522308=_0x360709['fromRange'](_0x1c4b43['createRangeOn'](_0x2b34b8)),_0x272a15=_0x360709['fromRange'](_0x1c4b43['createRangeOn'](_0x19f221));}const _0xabc748=Array['from'](_0xed7a10['getAttributes']())['filter'](([_0x3336e0])=>Ue['includes'](_0x3336e0));_0x1c6e8f['cells']['push']({'element':_0x5b0456,'attributes':_0xabc748['length']?Object['fromEntries'](_0xabc748):null}),_0x522308&&_0x1c6e8f['insertionRanges']['push'](_0x522308),_0x272a15&&_0x1c6e8f['deletionRanges']['push'](_0x272a15);},{'priority':'high'}),_0x1d746e['on']('insertColumns',(_0x525c55,_0x3ed34e)=>{const [_0x4f7c0b,_0x2939d3={}]=_0x3ed34e;if(!_0x1c6e8f)return;const _0x519a2c=_0x2939d3['at']||0x0,_0x5478c5=_0x2939d3['columns']||0x1;_0x1c6e8f['columnInsertionIndexes']=new Array(_0x5478c5)['fill'](_0x519a2c)['map']((_0x9810bf,_0x3fd64e)=>_0x9810bf+_0x3fd64e);for(const {cell:_0x103b9d}of _0x1d746e['createTableWalker'](_0x4f7c0b,{'startColumn':_0x519a2c,'endColumn':_0x519a2c+_0x5478c5-0x1}))_0x1c6e8f['columnInsertionRanges']['push'](_0x5aeecf['model']['createRangeOn'](_0x103b9d));},{'priority':'low'}),_0x1d746e['on']('insertRows',(_0x8a7154,_0x5f1f3b)=>{const [_0x1b5917,_0x18e953={}]=_0x5f1f3b;if(!_0x1c6e8f)return;const _0x114975=_0x18e953['at']||0x0,_0x1610f1=_0x18e953['rows']||0x1;_0x1c6e8f['rowInsertionIndexes']=new Array(_0x1610f1)['fill'](_0x114975)['map']((_0x8cce55,_0x5eb83e)=>_0x8cce55+_0x5eb83e);for(const {cell:_0x168ace}of _0x1d746e['createTableWalker'](_0x1b5917,{'startRow':_0x114975,'endRow':_0x114975+_0x1610f1-0x1}))_0x1c6e8f['rowInsertionRanges']['push'](_0x5aeecf['model']['createRangeOn'](_0x168ace));},{'priority':'low'}),_0x14ab13['descriptionFactory']['registerDescriptionCallback'](_0x362329=>{if(_0x362329['subType']&&_0x362329['subType']['startsWith']('tablePaste'))return _0x362329['previous']?{}:{'type':'insertion','content':o(_0x5aeecf['locale'],'*Replace\x20table\x20cells*')};});const _0x2b73a4=()=>!0x1;for(const _0x1c51ef of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x14ab13['_suggestionFactory']['registerCustomCallback']('insertion',_0x1c51ef,'join',_0x2b73a4),_0x14ab13['_suggestionFactory']['registerCustomCallback']('deletion',_0x1c51ef,'join',_0x2b73a4),_0x14ab13['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1c51ef,'join',_0x2b73a4);_0x14ab13['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2b73a4),_0x14ab13['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x369f48,_0x432a54,_0x34e279)=>{const _0x41ebba=_0x369f48['map'](_0x38a10e=>_0x38a10e['getContainedElement']())['filter'](_0x10be52=>_0x10be52),_0xcc68a5=new Map(_0x41ebba['map'](_0x2d3299=>[_0x2d3299,null]));if(_0x1c6e8f){for(const {element:_0x203363,attributes:_0x3bede3}of _0x1c6e8f['cells'])_0x3bede3&&_0xcc68a5['set'](_0x203363,_0x3bede3);}else{if(_0x34e279&&_0x34e279['markerAttributes'])for(const [_0x29138d,_0x2b4116]of Object['entries'](_0x34e279['markerAttributes'])){const _0xdfa085=_0x5aeecf['model']['markers']['get'](_0x29138d),_0x13f2db=_0xdfa085?_0xdfa085['getRange']()['getContainedElement']():null;_0x13f2db&&_0xcc68a5['set'](_0x13f2db,_0x2b4116);}}_0x5aeecf['model']['change'](_0xc23b7e=>{for(const [_0x354ff6,_0x53b8c1]of _0xcc68a5)_0xc23b7e['setAttributes']({...He,..._0x53b8c1},_0x354ff6);});});const _0x157299=(_0xe9ff3,_0x4de9eb)=>{_0x14ab13['_suggestionFactory']['registerCustomCallback'](_0xe9ff3,'tablePaste',_0x4de9eb,(_0x4e718b,_0x1fe87d,_0x12bd90)=>{_0x5aeecf['model']['change'](_0x530285=>{const _0x57e2a5=[];for(const _0x80d203 of _0x4e718b){const _0x2d7d3a=_0x80d203['start']['nodeAfter'];_0x2d7d3a['is']('element','tableCellSuggestion')&&_0x57e2a5['push'](_0x2d7d3a);}_0x14ab13['_suggestionFactory']['getSuggestionCallback'](_0xe9ff3,null,_0x4de9eb)(_0x4e718b,_0x1fe87d,_0x12bd90);for(const _0x380571 of _0x57e2a5)'$graveyard'!=_0x380571['root']['rootName']&&_0x530285['unwrap'](_0x380571);});});};_0x157299('insertion','accept'),_0x157299('insertion','discard'),_0x157299('deletion','accept'),_0x157299('deletion','discard'),_0x14ab13['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4eeae9=>{const _0x53c2e8=_0x4eeae9['map'](_0x26aa6f=>_0x26aa6f['getContainedElement']()),_0x294092=_0x53c2e8[0x0]['findAncestor']('table'),{minRow:_0x6a3266,maxRow:_0x2573cc}=_0x36c298['_getCoordsForCells'](_0x53c2e8);_0x1d746e['removeRows'](_0x294092,{'at':_0x6a3266,'rows':_0x2573cc-_0x6a3266+0x1});}),_0x14ab13['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x30374d=>{const _0x1774b0=_0x30374d['map'](_0xcfdeec=>_0xcfdeec['getContainedElement']()),_0x28b4d0=_0x1774b0[0x0]['findAncestor']('table'),{minColumn:_0x79ba26,maxColumn:_0x47dd7f}=_0x36c298['_getCoordsForCells'](_0x1774b0);_0x1d746e['removeColumns'](_0x28b4d0,{'at':_0x79ba26,'columns':_0x47dd7f-_0x79ba26+0x1});});const _0x46dab6=(_0x2b8dc5,_0x3d23c7)=>{if(!_0x3d23c7['subType']||!_0x3d23c7['subType']['startsWith']('tablePaste'))return;const _0x100530=_0x3d23c7['attributes']['tablePasteChainId'],_0x1a98bc=_0x14ab13['getSuggestions']()['filter'](_0x3a36bd=>_0x3a36bd['isInContent']&&_0x3a36bd['attributes']&&_0x3a36bd['attributes']['tablePasteChainId']==_0x100530);_0x1a98bc['length']&&_0x3d23c7['getAllAdjacentSuggestions']()['length']!=_0x1a98bc['length']&&_0x1a98bc['reduce']((_0x1e0e39,_0x379591)=>(_0x1e0e39['next']=_0x379591,_0x379591['previous']=_0x1e0e39,_0x379591));};function _0x36a072(_0x55210d,_0x526595=!0x0){const {id:_0x80cf94,authorId:_0x55cca4}=_0x14ab13['_splitMarkerName'](_0x55210d['markerName']),_0x4183e4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3f024c=_0x14ab13['activeMarkers']['includes'](_0x55210d['markerName']);return _0x3f024c&&_0x4183e4['push']('ck-suggestion-marker--active'),{'classes':_0x4183e4,'attributes':{'data-suggestion':_0x80cf94,'data-author-id':_0x55cca4},'priority':_0x3f024c&&_0x526595?0xbc2:0xbb8};}_0x14ab13['on']('suggestionLoaded',_0x46dab6,{'priority':'high'}),_0x14ab13['on']('suggestionUnloaded',_0x46dab6,{'priority':'high'}),_0x5aeecf['model']['document']['registerPostFixer'](()=>{let _0x44f713=!0x1;const _0x48c341=Array['from'](_0x5aeecf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24016f,data:_0x38693e}of _0x48c341){const {group:_0x1a099d,type:_0x1500f1,id:_0x197a58}=_0x14ab13['_splitMarkerName'](_0x24016f);if('suggestion'!=_0x1a099d||'deletion'!=_0x1500f1||_0x38693e['oldRange'])continue;if(!_0x14ab13['hasSuggestion'](_0x197a58))continue;const _0x9243f1=_0x14ab13['getSuggestion'](_0x197a58)['getRanges'](),_0x242b92=_0x5aeecf['plugins']['get']('Users')['me'];for(const _0x3c75c3 of _0x14ab13['getSuggestions']()){if(!_0x3c75c3['isInContent']||_0x3c75c3['author']!=_0x242b92)continue;if('formatBlock'!=_0x3c75c3['type']||'tablePasteCell'!=_0x3c75c3['subType'])continue;if(_0x3c75c3['getRanges']()['every'](_0x523026=>_0x9243f1['some'](_0x5a8b35=>_0x5a8b35['containsRange'](_0x523026,!0x0)))){for(const _0x3244c6 of _0x3c75c3['getAllAdjacentSuggestions']())_0x3244c6['isInContent']&&(_0x3244c6['discard'](),_0x44f713=!0x0);}}}return _0x44f713;}),_0x5aeecf['model']['document']['registerPostFixer'](_0x1e278d=>{const _0x2a5e4c=_0x5aeecf['commands']['get']('redo');if(!_0x2a5e4c||!_0x2a5e4c['_createdBatches']['has'](_0x1e278d['batch']))return!0x1;let _0x5b1bdd=!0x1;const _0x5cd913=_0x5aeecf['plugins']['get']('Users')['me'],_0x5a0bac=_0x5aeecf['model']['document']['differ']['getChanges'](),_0x1348e1=Array['from'](_0x5aeecf['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2b5ab0,data:_0x2eb966})=>{const {group:_0x3eee8c,subType:_0xdcf575,authorId:_0x5b0c17}=_0x14ab13['_splitMarkerName'](_0x2b5ab0);return'suggestion'==_0x3eee8c&&'tablePaste'==_0xdcf575&&_0x5b0c17==_0x5cd913['id']&&!_0x2eb966['oldRange'];});for(const _0x2133e0 of _0x5a0bac){if('insert'!=_0x2133e0['type']||'tableCellSuggestion'!=_0x2133e0['name']||0x1!=_0x2133e0['length'])continue;const _0x2eae61=_0x1e278d['createRange'](_0x2133e0['position'],_0x2133e0['position']['getShiftedBy'](0x1));if(!_0x1348e1['find'](({data:_0x24caec})=>_0x24caec['newRange']['isEqual'](_0x2eae61))){for(const {name:_0x4536a2,data:_0x427f10}of _0x1348e1)if(_0x2eae61['containsRange'](_0x427f10['newRange'])){_0x1e278d['updateMarker'](_0x4536a2,{'range':_0x2eae61}),_0x5b1bdd=!0x0;break;}}}return _0x5b1bdd;}),_0x5aeecf['model']['document']['registerPostFixer'](_0x32a87e=>{let _0xacf83a=!0x1;const _0x390f9d=_0x5aeecf['plugins']['get']('Users')['me'],_0x515b5f=_0x14ab13['getSuggestions']()['filter'](_0x5eaf89=>_0x5eaf89['isInContent']&&_0x5eaf89['author']==_0x390f9d),_0x5b4d34=new Set(),_0x5a3015=new Set();for(const _0x416ac8 of _0x515b5f)if('tablePaste'==_0x416ac8['subType'])for(const _0x287023 of _0x416ac8['getMarkers']()){const _0x5c93e3=_0x287023['getRange']()['getContainedElement']();if(_0x5c93e3){if(_0x5c93e3['is']('element','tableCellSuggestion')&&ze(_0x5c93e3)){_0x416ac8['removeMarker'](_0x287023['name']),_0x5b4d34['add'](_0x5c93e3),_0xacf83a=!0x0;const _0x45865b=_0x5c93e3['nextSibling'],_0x160b75=_0x5c93e3['previousSibling'],_0xcd2956=_0x45865b&&_0x45865b['is']('element','tableCellSuggestion'),_0x25f694=_0x160b75&&_0x160b75['is']('element','tableCellSuggestion');_0xcd2956&&!_0x5b4d34['has'](_0x45865b)&&_0x5a3015['add'](_0x45865b),_0x25f694&&!_0x5b4d34['has'](_0x160b75)&&_0x5a3015['add'](_0x160b75);}else _0x5c93e3['is']('element','paragraph')&&_0x5c93e3['isEmpty']&&(_0x416ac8['removeMarker'](_0x287023['name']),_0xacf83a=!0x0);}}else{if('tablePasteCell'==_0x416ac8['subType']){if(!_0x416ac8['attributes']||!_0x416ac8['attributes']['tablePasteChainId'])continue;const _0x78e299=_0x416ac8['attributes']['markerAttributes'];if(_0x78e299&&Object['keys'](_0x78e299)['length'])continue;const _0x1a6039=_0x416ac8['attributes']['tablePasteChainId'];let _0xb2cbed=!0x0,_0x20c5c6=!0x0;for(const _0x1530de of _0x515b5f)if(_0x1530de['subType']&&_0x1530de['subType']['startsWith']('tablePaste')){if(!_0x1530de['attributes']['tablePasteChainId']){_0x20c5c6=!0x1;break;}if(_0x1530de['id']!=_0x416ac8['id']&&_0x1530de['attributes']['tablePasteChainId']==_0x1a6039){_0xb2cbed=!0x1;break;}}_0x20c5c6&&_0xb2cbed&&(_0x416ac8['removeMarkers'](),_0xacf83a=!0x0);}}for(const _0x7e9b7 of _0x5b4d34)_0x32a87e['remove'](_0x7e9b7);for(const _0x1da692 of _0x5a3015)_0x32a87e['unwrap'](_0x1da692);return _0xacf83a;}),_0x5aeecf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x59b595=>_0x36a072(_0x59b595),'converterPriority':'high'}),_0x5aeecf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x42a116,_0x1dd7b3)=>_0x1dd7b3['options']['showSuggestionHighlights']?_0x36a072(_0x42a116,!0x1):null,'converterPriority':'high'});const _0x55af28=_0x5aeecf['editing']['view'];this['listenTo'](_0x55af28['document'],'clipboardOutput',(_0x429a88,_0x43814c)=>{const _0xba1e58=[];for(const _0x54cdf6 of _0x55af28['createRangeIn'](_0x43814c['content'])['getItems']())_0x54cdf6['is']('element','suggestion-td')&&_0xba1e58['push'](_0x54cdf6);_0x55af28['change'](_0xcd79c8=>{for(const _0x57c552 of _0xba1e58)_0xcd79c8['move'](_0xcd79c8['createRangeIn'](_0x57c552),_0xcd79c8['createPositionBefore'](_0x57c552)),_0xcd79c8['remove'](_0x57c552);});});}}function ze(_0x1c3910){if(_0x1c3910['isEmpty'])return!0x0;const _0x3cf639=_0x1c3910['getChild'](0x0);return _0x3cf639['is']('element','paragraph')&&_0x3cf639['isEmpty'];}function Ge(_0x327025,_0x14fd91={},_0x328fb5){for(const {isAnchor:_0x37805d,cellHeight:_0x2350b2,cellWidth:_0x27f834}of _0x328fb5['createTableWalker'](_0x327025,{'includeAllSlots':!0x0,..._0x14fd91}))if(!_0x37805d||0x1!=_0x2350b2||0x1!=_0x27f834)return!0x1;return!0x0;}class xt extends _0x3f9a7e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3512fa=this['editor']['plugins']['get']('TrackChangesEditing');_0x3512fa['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3512fa['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3512fa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3512fa['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3512fa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3512fa['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x32cff1,_0x1764cb){const _0x4ca60d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d53f6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x36d57c=_0x1764cb['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x34380e=_0x5d53f6['getColumnGroupElement'](_0x36d57c);let _0x3d8484=_0x34380e?_0x5d53f6['getTableColumnsWidths'](_0x34380e):null,_0x30dad2=_0x36d57c['getAttribute']('tableWidth')||null;const _0x13e92e=_0x1764cb['tableWidth']||_0x30dad2,_0x2bfdc8=_0x1764cb['columnWidths']||_0x3d8484,_0x1152cc=this['editor']['plugins']['get']('Users')['me'];for(const _0x5db43a of _0x4ca60d['getSuggestions']()){const _0x41bbed=_0x5db43a['getContainedElement']();if('resizeTable'===_0x5db43a['subType']&&_0x41bbed===_0x36d57c){_0x5db43a['author']!==_0x1152cc&&_0x5db43a['discard']();const _0x366df7=_0x5db43a['data']['commandParams'];_0x30dad2=_0x366df7[0x0]['tableWidth'],_0x3d8484=_0x366df7[0x0]['columnWidths'];break;}}_0x32cff1({'table':_0x36d57c,'tableWidth':_0x13e92e,'columnWidths':_0x2bfdc8}),_0x4ca60d['markBlockFormat'](_0x36d57c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x30dad2,'columnWidths':_0x3d8484}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5bb1cd){if('formatBlock'!=_0x5bb1cd['type']&&'formatInline'!=_0x5bb1cd['type'])return;const {data:_0x11350e}=_0x5bb1cd;if(_0x11350e&&'resizeTable'===_0x11350e['formatGroupId']){const _0x3e49c2='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3e49c2)};}}}class Et extends _0x3f9a7e{['afterInit'](){const _0x315620=this['editor'];_0x315620['plugins']['has']('Template')&&_0x315620['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x3f9a7e{['afterInit'](){const _0x5dee8e=this['editor'];if(!_0x5dee8e['commands']['get']('insertTableOfContents'))return;_0x5dee8e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x159209=_0x5dee8e['plugins']['get']('TrackChangesEditing'),_0x393b05=_0x5dee8e['locale'];_0x159209['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4f3bf4=>o(_0x393b05,'ELEMENT_TABLE_OF_CONTENTS',_0x4f3bf4));}}class Ut extends _0x3f9a7e{['afterInit'](){const _0x53e1cf=this['editor'];if(!_0x53e1cf['plugins']['has']('Title'))return;const _0x323cb2=_0x53e1cf['plugins']['get']('TrackChangesEditing');_0x323cb2['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x53e1cf['locale'],'ELEMENT_TITLE')),_0x53e1cf['model']['document']['registerPostFixer'](_0xc1f3c4=>{let _0x11ee42=!0x1;const _0x1aee89=Array['from'](_0x53e1cf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x188c0c,data:_0x3663b5}of _0x1aee89){const {group:_0x1e79be}=_0x323cb2['_splitMarkerName'](_0x188c0c);if('suggestion'!==_0x1e79be||!_0x3663b5['newRange'])continue;const _0x2e7dd1=_0x3663b5['newRange'],_0x345ee6=_0x2e7dd1['end']['nodeBefore'];if(!_0x345ee6||!_0x345ee6['is']('element','title-content'))continue;if(!_0x2e7dd1['start']['isTouching'](_0x2e7dd1['end']))continue;const _0x4af9b2=_0x53e1cf['model']['schema']['getNearestSelectionRange'](_0x2e7dd1['end'],'forward');if(_0x4af9b2&&_0x4af9b2['isCollapsed']){const _0x40c9bc=_0xc1f3c4['createRange'](_0x2e7dd1['start'],_0x4af9b2['start']);_0x40c9bc['isEqual'](_0x2e7dd1)||(_0xc1f3c4['updateMarker'](_0x188c0c,{'range':_0x40c9bc}),_0x11ee42=!0x0);}_0x11ee42||(_0xc1f3c4['removeMarker'](_0x188c0c),_0x11ee42=!0x0);}return _0x11ee42;});}}class Vt extends _0x3f9a7e{['afterInit'](){const _0x55a795=this['editor'],_0x34072a=_0x55a795['plugins']['get']('TrackChangesEditing');_0x55a795['plugins']['has']('Uploadcare')&&(_0x34072a['enableCommand']('uploadcare'),_0x55a795['plugins']['has']('UploadcareImageEdit')&&(_0x34072a['enableCommand']('uploadcareImageEdit'),_0x34072a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x34072a['registerBlockAttribute']('uploadcareImageId'),_0x34072a['descriptionFactory']['registerDescriptionCallback'](_0x39fb0e=>{if('attribute'!=_0x39fb0e['type'])return;const {data:_0x24497b}=_0x39fb0e;return _0x24497b&&'uploadcareImageId'==_0x24497b['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x3f9a7e{['afterInit'](){const _0x4ca9fe=this['editor'],_0x4dff8b=_0x4ca9fe['plugins']['get']('TrackChangesEditing');_0x4ca9fe['plugins']['has']('UndoEditing')&&(_0x4dff8b['enableCommand']('undo'),_0x4dff8b['enableCommand']('redo'));}}class Pt extends _0x3f9a7e{static get['requires'](){return[Dt];}['afterInit'](){const _0x1cf298=this['editor'];if(!_0x1cf298['plugins']['has']('TableCaptionEditing'))return;_0x1cf298['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x3f9a7e{['tableProperties'];['tableCellProperties'];constructor(_0x285aa2){super(_0x285aa2),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 _0x4a1bd6=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5177e9 of this['tableProperties'])_0x4a1bd6['enableCommand'](_0x5177e9,(_0x1eb575,_0x521763)=>{const _0x15eac6=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5177e9,[_0x15eac6],this['tableProperties'],'tableProperties',_0x1eb575,_0x521763);});_0x4a1bd6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4a1bd6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a1bd6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x256392,_0x284a27)=>this['handleDiscardAction'](this['tableProperties'],_0x256392,_0x284a27)),_0x4a1bd6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x54d674 of this['tableCellProperties'])_0x4a1bd6['enableCommand'](_0x54d674,(_0x4325de,_0x26b5df)=>{const _0x3dacb2=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x54d674,_0x3dacb2,this['tableCellProperties'],'tableCellProperties',_0x4325de,_0x26b5df);});_0x4a1bd6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4a1bd6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a1bd6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xb4e466,_0x27ac3f)=>this['handleDiscardAction'](this['tableCellProperties'],_0xb4e466,_0x27ac3f)),_0x4a1bd6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4a1bd6['descriptionFactory']['registerDescriptionCallback'](_0x1a7df0=>this['handleSuggestionDescription'](_0x1a7df0)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x532752,_0x2366db,_0x31039c,_0x3acf03,_0x25d419,_0x3838da){const _0x31ad54=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3838da['batch'],()=>{for(const _0x3472a4 of _0x2366db){if(this['_getSuggestion'](_0x3472a4,_0x3acf03))_0x25d419(_0x3838da);else{const _0x47b486={};for(const _0x522a90 of _0x31039c){const _0x222460=_0x3472a4['getAttribute'](_0x522a90);void 0x0!==_0x222460&&(_0x47b486[_0x522a90]=_0x222460);}_0x25d419(_0x3838da),_0x31ad54['markBlockFormat'](_0x3472a4,{'commandParams':[_0x47b486]},[],_0x3acf03);}}});}['handleDiscardAction'](_0x210b44,_0x4390b4,_0x301b79){const _0x5b1979=_0x4390b4[0x0]['start']['nodeAfter'],_0x17d0af=_0x301b79['commandParams'][0x0];this['editor']['model']['change'](_0x31d844=>{for(const _0x1e5df5 of _0x210b44)void 0x0!==_0x17d0af[_0x1e5df5]?_0x31d844['setAttribute'](_0x1e5df5,_0x17d0af[_0x1e5df5],_0x5b1979):_0x31d844['removeAttribute'](_0x1e5df5,_0x5b1979);});}['handleSuggestionDescription'](_0x4c019d){if(_0x4c019d['data'])switch(_0x4c019d['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'](_0xeb61f7,_0x5e6d21){const _0x2b9e23=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x59ea6c of _0x2b9e23['getSuggestions']({'skipNotAttached':!0x0})){const _0xc53a95=_0x59ea6c['getContainedElement']();if(_0x59ea6c['subType']===_0x5e6d21&&_0xc53a95===_0xeb61f7)return _0x59ea6c;}return null;}['_registerTablePropertiesAttributes'](){const _0x5a1e75=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e6368=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x575420 of _0x2e6368){const _0x39755f=_0x575420['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x5a1e75['registerBlockAttribute'](_0x575420),_0x5a1e75['descriptionFactory']['registerAttributeLabel'](_0x575420,o(this['editor']['locale'],'FORMAT_'+_0x39755f));}}}class Lt extends _0x3f9a7e{['afterInit'](){const _0x3e1d6d=this['editor'];if(!_0x3e1d6d['plugins']['has']('LineHeight'))return;const _0x1da034=_0x3e1d6d['plugins']['get']('TrackChangesEditing'),_0x52efaf=_0x3e1d6d['locale'];_0x1da034['enableDefaultAttributesIntegration']('lineHeight'),_0x1da034['registerBlockAttribute']('lineHeight'),_0x1da034['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x52efaf,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x3f9a7e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x553a10,_0x3c797d,_0x182521,V,F,G,L,J,K,q,W,H,z,Q,X,tt,et,it,nt,st,ot,rt,at,ct,ut,ht,ft,gt,lt,dt,pt,kt,St,mt,Y,Lt,Z,wt,bt,yt,jt,It,At,_t,$t,vt,Ct,Nt,Dt,Mt,Bt,Tt,Pt,Ot,xt,Rt,Gt,Et,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe9acfb){super(_0xe9acfb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x18dcbe,_0x483b3c,_0x50abde,_0x2f3b3a)=>{this['_model']['change'](()=>{for(const _0x4b7ebb of[..._0x2f3b3a,..._0x50abde])this['_model']['markers']['has'](_0x4b7ebb)&&_0xe9acfb['editing']['reconvertMarker'](_0x4b7ebb);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Kt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xe9acfb['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(),_0xe9acfb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xe9acfb['config']['get']('trackChanges.trackFormatChanges'),_0xe9acfb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xe9acfb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xe9acfb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2c8d41=this['editor'],_0x2706d3=(_0x5b3f4c,_0x37fdd5)=>{if('attribute'!=_0x5b3f4c)return'ck-suggestion-marker-'+_0x5b3f4c;const _0xa6c986=_0x37fdd5['split']('|')[0x0];return this['_isBlockAttribute'](_0xa6c986)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2c8d41['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5c0ecd=>{const {id:_0x117260,authorId:_0x40ee43,type:_0x4db64d,subType:_0x3a8ae1}=this['_splitMarkerName'](_0x5c0ecd['markerName']),_0x36632e=['ck-suggestion-marker',_0x2706d3(_0x4db64d,_0x3a8ae1)];let _0x1f4f74=0xbb8;return this['activeMarkers']['includes'](_0x5c0ecd['markerName'])&&(_0x36632e['push']('ck-suggestion-marker--active'),_0x1f4f74=0xbc2),'deletion'==_0x4db64d&&(_0x1f4f74+=0x5),{'classes':_0x36632e,'attributes':{'data-suggestion':_0x117260,'data-author-id':_0x40ee43},'priority':_0x1f4f74};}}),_0x2c8d41['conversion']['for']('dataDowncast')['add'](_0x235a58=>{_0x235a58['on']('addMarker:suggestion',(_0x3105e1,_0x5b809d,_0x551553)=>{if(!_0x551553['options']['showSuggestionHighlights'])return;const _0x1eca4e=_0x5b809d['item'];if(!_0x1eca4e)return;const _0x3b07fb=_0x551553['mapper']['toViewElement'](_0x1eca4e);_0x2c8d41['model']['schema']['isObject'](_0x1eca4e)&&_0x3b07fb&&!_0x3b07fb['getCustomProperty']('widget')&&_0x3b07fb['is']('containerElement')&&_0x560d6d(_0x3b07fb,_0x551553['writer']);},{'priority':'high'});}),_0x2c8d41['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2b5aa3,_0x100c71)=>{if(!_0x100c71['options']['showSuggestionHighlights'])return null;const {id:_0x3af106,authorId:_0x37e0db,type:_0x1c4308,subType:_0x5ba844}=this['_splitMarkerName'](_0x2b5aa3['markerName']);return{'classes':['ck-suggestion-marker',_0x2706d3(_0x1c4308,_0x5ba844)],'priority':0xbb8,'attributes':{'data-suggestion':_0x3af106,'data-author-id':_0x37e0db}};}});const _0x535adf=({showActiveMarkers:_0xf71c4a=!0x0,isAttributeSuggestion:_0x44ff3a=!0x1}={})=>(_0x20063b,_0x3d764c,_0xcf6325)=>{if(!_0x3d764c['item'])return;const {id:_0x3cdd26,authorId:_0x9da76a,subType:_0x374f39}=this['_splitMarkerName'](_0x3d764c['markerName']);if(_0x44ff3a){const _0x58e56e=re(_0x374f39);if(!this['_isBlockAttribute'](_0x58e56e))return;}if(_0x3d764c['item']['is']('selection'))return void _0xcf6325['consumable']['consume'](_0x3d764c['item'],_0x20063b['name']);const _0x236bce=_0xcf6325['mapper']['toViewElement'](_0x3d764c['item']);if(_0x3d764c['item']['is']('element')&&_0x2c8d41['model']['schema']['isBlock'](_0x3d764c['item'])&&!_0x236bce['getCustomProperty']('addHighlight')){_0xcf6325['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x236bce),_0xcf6325['writer']['setAttribute']('data-suggestion',_0x3cdd26,_0x236bce),_0xcf6325['writer']['setAttribute']('data-author-id',_0x9da76a,_0x236bce),_0xcf6325['mapper']['bindElementToMarker'](_0x236bce,_0x3d764c['markerName']),_0xf71c4a&&(this['activeMarkers']['includes'](_0x3d764c['markerName'])?_0xcf6325['writer']['addClass']('ck-suggestion-marker--active',_0x236bce):_0xcf6325['writer']['removeClass']('ck-suggestion-marker--active',_0x236bce));for(const _0x4d3436 of _0x2c8d41['model']['createRangeIn'](_0x3d764c['item'])['getItems']())_0xcf6325['consumable']['consume'](_0x4d3436,_0x20063b['name']);_0xcf6325['consumable']['consume'](_0x3d764c['item'],_0x20063b['name']);}};_0x2c8d41['conversion']['for']('dataDowncast')['add'](_0x4f296e=>{_0x4f296e['on']('addMarker:suggestion:formatBlock',(_0x1db4aa,_0x5a2b3b,_0x354947)=>{_0x354947['options']['showSuggestionHighlights']&&_0x535adf({'showActiveMarkers':!0x1})(_0x1db4aa,_0x5a2b3b,_0x354947);},{'priority':'highest'});}),_0x2c8d41['conversion']['for']('dataDowncast')['add'](_0x543f56=>{_0x543f56['on']('addMarker:suggestion:attribute',(_0x388cc9,_0x3a0af9,_0x217324)=>{_0x217324['options']['showSuggestionHighlights']&&_0x535adf({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x388cc9,_0x3a0af9,_0x217324);},{'priority':'highest'});}),_0x2c8d41['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4f34f4,_0x458daf)=>{if(_0x458daf['options']['showSuggestionHighlights']){const {id:_0x19fbc8,authorId:_0x2cb7f7}=this['_splitMarkerName'](_0x4f34f4);return _0x4f34f4['includes'](':split')||_0x4f34f4['includes'](':merge')?{'group':'suggestion','name':_0x4f34f4['substr'](0xb),'attributes':{'data-suggestion':_0x19fbc8,'data-author-id':_0x2cb7f7}}:null;}return{'group':'suggestion','name':_0x4f34f4['substr'](0xb)};}}),_0x2c8d41['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xbe2715,{writer:_0x421176})=>{let _0x4a9b14='suggestion:'+_0xbe2715['getAttribute']('suggestion-type')+':'+_0xbe2715['getAttribute']('id');return _0xbe2715['getAttribute']('marker-count')&&(_0x4a9b14+=':'+_0xbe2715['getAttribute']('marker-count')),_0x421176['createElement']('$marker',{'data-name':_0x4a9b14});}}),_0x2c8d41['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2c8d41['conversion']['for']('editingDowncast')['add'](_0x401b20=>{_0x401b20['on']('addMarker:suggestion:formatBlock',_0x535adf(),{'priority':'high'});}),_0x2c8d41['conversion']['for']('editingDowncast')['add'](_0x414869=>{_0x414869['on']('addMarker:suggestion:attribute',_0x535adf({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2c8d41['conversion']['for']('editingDowncast')['add'](_0x52bcd4=>{_0x52bcd4['on']('removeMarker:suggestion:formatBlock',(_0xc95db1,_0x21989b,_0x288e97)=>{const _0x34e9ae=_0x288e97['mapper']['markerNameToElements'](_0x21989b['markerName']);if(_0x34e9ae){for(const _0x290522 of _0x34e9ae)_0x290522['getCustomProperty']('addHighlight')||(_0x288e97['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x290522),_0x288e97['writer']['removeAttribute']('data-suggestion',_0x290522),_0x288e97['writer']['removeAttribute']('data-author-id',_0x290522),_0x288e97['mapper']['unbindElementFromMarkerName'](_0x290522,_0x21989b['markerName']));}},{'priority':'high'});}),_0x2c8d41['conversion']['for']('editingDowncast')['add'](_0x31d101=>{_0x31d101['on']('removeMarker:suggestion:attribute',(_0x16558b,_0x23438e,_0x3a7ced)=>{const _0x2aa669=_0x3a7ced['mapper']['markerNameToElements'](_0x23438e['markerName']);if(!_0x2aa669)return;const {subType:_0xa44f8c}=this['_splitMarkerName'](_0x23438e['markerName']),_0x25b0c5=re(_0xa44f8c);if(this['_isBlockAttribute'](_0x25b0c5)){for(const _0x37fc64 of _0x2aa669)_0x37fc64['getCustomProperty']('addHighlight')||(_0x3a7ced['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x37fc64),_0x3a7ced['writer']['removeAttribute']('data-suggestion',_0x37fc64),_0x3a7ced['writer']['removeAttribute']('data-author-id',_0x37fc64),_0x3a7ced['mapper']['unbindElementFromMarkerName'](_0x37fc64,_0x23438e['markerName']));}},{'priority':'high'});}),_0x2c8d41['model']['document']['registerPostFixer'](_0x594295=>{let _0x3cfe9b=!0x1;const _0x4bfb7c=Array['from'](_0x2c8d41['model']['document']['differ']['getChangedMarkers']()),_0x1ebfd9=new Set();for(const {name:_0x2f9a75,data:_0x7b7994}of _0x4bfb7c){const {group:_0x59e694,type:_0x1895c0,subType:_0x59c903,id:_0x570e2f}=this['_splitMarkerName'](_0x2f9a75);if('suggestion'!==_0x59e694)continue;const _0x245acb=_0x59c903?'suggestion:'+_0x1895c0+':'+_0x59c903+':'+_0x570e2f:'suggestion:'+_0x1895c0+':'+_0x570e2f,_0x1fb401=_0x2c8d41['model']['markers']['getMarkersGroup'](_0x245acb),_0x4079d8=_0x2c8d41['model']['markers']['get'](_0x2f9a75),_0x39860f=this['_suggestions']['get'](_0x570e2f);if(null!=_0x7b7994['newRange']){'formatInline'==_0x1895c0&&(_0x3cfe9b=_0x3cfe9b||Wt(_0x7b7994['newRange'],_0x2f9a75,_0x594295,_0x2c8d41['model']['schema']));const _0x243b83='attribute'==_0x1895c0&&this['_isBlockAttribute'](_0x59c903['split']('|')[0x0]),_0x31c30d='attribute'==_0x1895c0&&this['_isInlineAttribute'](_0x59c903['split']('|')[0x0]);if(_0x7b7994['newRange']['isCollapsed']||'$graveyard'==_0x7b7994['newRange']['root']['rootName']||'formatBlock'==_0x1895c0&&!Qt(_0x7b7994['newRange'])||_0x243b83&&!Qt(_0x7b7994['newRange'])||_0x31c30d&&Xt(_0x7b7994['newRange'])||'deletion'==_0x1895c0&&Xt(_0x7b7994['newRange'])||_0x4079d8&&Yt(_0x4079d8,_0x1fb401))_0x594295['removeMarker'](_0x2f9a75),_0x3cfe9b=!0x0;else{if(!_0x39860f||!_0x39860f['isInContent'])continue;if(_0x7b7994['newRange']&&_0x7b7994['oldRange']&&_0x7b7994['newRange']['isEqual'](_0x7b7994['oldRange']))continue;_0x1ebfd9['add'](_0x39860f);}}}return _0x1ebfd9['size']>0x0&&(_0x3cfe9b=!!this['_joinWithAdjacentSuggestions'](_0x1ebfd9)||_0x3cfe9b),_0x3cfe9b;}),_0x2c8d41['model']['document']['registerPostFixer'](_0x452c98=>{let _0x530dae=!0x1;for(const _0x15aff0 of _0x2c8d41['model']['document']['differ']['getChanges']())if('insert'==_0x15aff0['type'])for(const _0x2dfe29 of this['_suggestions']['values']()){if(_0x2dfe29['isMultiRange']||!_0x2dfe29['isInContent'])continue;const _0x3f9b98='formatBlock'==_0x2dfe29['type'],_0x1f89c7=this['_getAttributeKey'](_0x2dfe29),_0x42a7a7=_0x1f89c7&&this['_isBlockAttribute'](_0x1f89c7);if(!_0x3f9b98&&!_0x42a7a7)continue;const _0x5acd5c=_0x2dfe29['getFirstRange']();if(_0x5acd5c['start']['parent']!=_0x5acd5c['end']['parent']&&!_0x5acd5c['end']['isAtEnd']){const _0x657624=_0x2c8d41['model']['createPositionAt'](_0x5acd5c['start']['nodeAfter'],'end'),_0x4f0c90=_0x2c8d41['model']['createRange'](_0x5acd5c['start'],_0x657624);_0x452c98['updateMarker'](_0x2dfe29['getFirstMarker'](),{'range':_0x4f0c90}),_0x530dae=!0x0;}}return _0x530dae;}),_0x2c8d41['model']['document']['registerPostFixer'](_0x402231=>this['_processAttributeChanges'](_0x402231)),_0x2c8d41['model']['document']['registerPostFixer'](_0xcbacfb=>!_0xcbacfb['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xcbacfb)),_0x2c8d41['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2c8d41['model']['document']['on']('change:data',(_0x572028,_0x15096a)=>{if(!_0x15096a['isLocal']||_0x15096a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xfb873b=_0x2c8d41['model']['document']['differ']['getChanges']();if(0x0==_0xfb873b['length'])return;const _0x512d55=[],_0x32eec6=_0xfb873b['filter'](_0x284e27=>'attribute'==_0x284e27['type']),_0x26a7c2=_0xfb873b['filter'](_0x55c878=>'insert'==_0x55c878['type']&&'$text'!=_0x55c878['name']);for(const _0x3fb09a of _0x32eec6)this['_isRegisteredAttribute'](_0x3fb09a['attributeKey'])&&_0x512d55['push']({'key':_0x3fb09a['attributeKey'],'newValue':_0x3fb09a['attributeNewValue'],'oldValue':_0x3fb09a['attributeOldValue'],'range':te(_0x3fb09a['range'],_0x2c8d41['model'])});for(const _0x2ce4bb of _0x26a7c2){if('rename'!=_0x2ce4bb['action']&&'refresh'!=_0x2ce4bb['action'])continue;const _0x36b19e=ee(_0x2ce4bb['position']['nodeAfter'],_0x2c8d41['model']),_0x1ac5e4=_0x2ce4bb['before'];'rename'==_0x2ce4bb['action']&&_0x512d55['push']({'key':m,'newValue':_0x2ce4bb['name'],'oldValue':_0x1ac5e4['name'],'range':_0x36b19e});for(const [_0x5a83a5,_0x46ae7c]of _0x1ac5e4['attributes']){if(!this['_isRegisteredAttribute'](_0x5a83a5))continue;const _0x4d119c=_0x2ce4bb['attributes']['get'](_0x5a83a5);_0x46ae7c!==_0x4d119c&&_0x512d55['push']({'key':_0x5a83a5,'newValue':_0x4d119c,'oldValue':_0x46ae7c,'range':_0x36b19e});}for(const [_0x2fae70,_0x55e31d]of _0x2ce4bb['attributes'])this['_isRegisteredAttribute'](_0x2fae70)&&(_0x1ac5e4['attributes']['has'](_0x2fae70)||_0x512d55['push']({'key':_0x2fae70,'newValue':_0x55e31d,'oldValue':null,'range':_0x36b19e}));}0x0!=_0x512d55['length']&&_0x2c8d41['model']['enqueueChange'](_0x15096a,_0x3f63ff=>{const _0x2ca1c1=_0x172a90();for(const {range:_0x328185,key:_0x41d40a,oldValue:_0x4cd4c7,newValue:_0x5bc12f}of _0x512d55)this['markAttributeChange'](_0x328185,_0x41d40a,_0x4cd4c7,_0x5bc12f,{'groupId':_0x2ca1c1});this['_reduceExistingSuggestions'](_0x3f63ff,_0x512d55);});},{'priority':'lowest'}),_0x2c8d41['model']['markers']['on']('update:suggestion',(_0x2a17de,_0x273644,_0x273a57)=>{if(null==_0x273a57){const {id:_0x42479d}=this['_splitMarkerName'](_0x273644['name']),_0x132509=this['_suggestions']['get'](_0x42479d);_0x132509&&_0x132509['addMarkerName'](_0x273644['name']);}}),_0x2c8d41['model']['document']['on']('change:data',()=>{const _0x2bae62=Array['from'](_0x2c8d41['model']['document']['differ']['getChangedMarkers']())['filter'](_0x22bda4=>'suggestion'===this['_splitMarkerName'](_0x22bda4['name'])['group']);if(0x0===_0x2bae62['length'])return;_0x2bae62['sort']((_0x439008,_0x341fd4)=>{const _0x46e89f=_0x439008['data']['oldRange'],_0x358d2d=_0x341fd4['data']['oldRange'];return null===_0x46e89f&&null===_0x358d2d?0x0:null===_0x46e89f&&null!==_0x358d2d?-0x1:null!==_0x46e89f&&null===_0x358d2d?0x1:_0x46e89f['start']['isBefore'](_0x358d2d['start'])?-0x1:0x1;});const _0x2f1744=new Set(),_0x508517=new Set();for(const {name:_0x4b7cec,data:_0xb18381}of _0x2bae62){const {id:_0x40b257}=this['_splitMarkerName'](_0x4b7cec);if(null===_0xb18381['oldRange']){const _0x586634=this['_handleNewSuggestionMarker'](_0x4b7cec);_0x508517['add'](_0x586634);}else{const _0x55194e=this['_suggestions']['get'](_0x40b257);null!==_0xb18381['newRange']||_0x55194e['isInContent']?(_0x2f1744['add'](_0x55194e['head']),_0x508517['add'](_0x55194e)):this['_removeSuggestion'](_0x55194e);}}_0x508517['size']>0x0&&this['_refreshSuggestionsChain'](_0x508517);for(const _0x4f3b14 of _0x2f1744)this['fire']('suggestionChanged',_0x4f3b14);}),_0x2c8d41['model']['on']('applyOperation',(_0x416c5e,_0x396dc8)=>{const _0x233f70=_0x396dc8[0x0];if(!this['_suggestions']['size'])return;if(!_0x233f70['isDocumentOperation'])return;if(_0x233f70['batch']['isUndo']||!_0x233f70['batch']['isLocal'])return;let _0x5cdb43,_0x3f6536;switch(_0x233f70['type']){case'insert':_0x5cdb43=_0x2c8d41['model']['createPositionAt'](_0x233f70['position']),_0x3f6536=_0x5cdb43['getShiftedBy'](_0x233f70['howMany']);break;case'split':_0x5cdb43=_0x2c8d41['model']['createPositionAt'](_0x233f70['splitPosition']),_0x3f6536=_0x2c8d41['model']['createPositionAt'](_0x233f70['moveTargetPosition']);break;case'move':_0x5cdb43=_0x2c8d41['model']['createPositionAt'](_0x233f70['targetPosition']),_0x3f6536=_0x5cdb43['getShiftedBy'](_0x233f70['howMany']);break;default:return;}const _0x2b05de=_0x2c8d41['model']['createRange'](_0x5cdb43,_0x3f6536);_0x2c8d41['model']['change'](()=>{for(const {suggestion:_0x56a5fb,meta:_0x39812c}of this['_findSuggestions'](_0x2b05de)){if(_0x56a5fb['isMultiRange'])continue;if('formatInline'==_0x56a5fb['type'])continue;const _0x37bde4=this['_getAttributeKey'](_0x56a5fb);if(_0x37bde4&&this['_isBlockAttribute'](_0x37bde4)&&'split'!=_0x233f70['type'])continue;const _0x327467=_0x56a5fb['data']&&_0x56a5fb['data']['multipleBlocks'];('formatBlock'!=_0x56a5fb['type']||'split'==_0x233f70['type']&&!_0x327467)&&(_0x39812c['containsRangeInObject']||'insertion'==_0x56a5fb['type']&&_0x39812c['isOwn']||_0x56a5fb['getFirstRange']()['containsRange'](_0x2b05de)&&this['_breakSuggestionMarker'](_0x56a5fb,_0x5cdb43,_0x3f6536));}});},{'priority':'lowest'}),_0x2c8d41['model']['on']('deleteContent',(_0x2fb51c,_0x271fb5)=>{const _0xd35dd=_0x271fb5[0x0],_0x4b31b1=_0x271fb5[0x1];if(_0x4b31b1&&_0x4b31b1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xd35dd['isCollapsed'])return;const _0x410810=_0x2c8d41['model']['schema'],{start:_0x5efef7,end:_0xbeee35}=_0xd35dd['getFirstRange'](),_0x187420=_0x5efef7['nodeAfter']&&_0x410810['isLimit'](_0x5efef7['nodeAfter'])?null:_0x410810['getNearestSelectionRange'](_0x5efef7,'forward'),_0x412411=_0xbeee35['nodeBefore']&&_0x410810['isLimit'](_0xbeee35['nodeBefore'])?null:_0x410810['getNearestSelectionRange'](_0xbeee35,'backward'),_0x52ceec=_0x2c8d41['model']['createRange'](_0x187420?_0x187420['start']:_0x5efef7,_0x412411?_0x412411['end']:_0xbeee35);_0x2c8d41['model']['change'](_0x349ebd=>{this['markDeletion'](_0x52ceec);const _0x24d5a3=_0x2c8d41['model']['schema']['getNearestSelectionRange'](_0x52ceec['start']);_0xd35dd['is']('documentSelection')?_0x349ebd['setSelection'](_0x24d5a3):_0xd35dd['setTo'](_0x24d5a3);}),_0x2fb51c['stop']();},{'priority':_0x3b0c6e['normal']+0xa}),_0x2c8d41['model']['on']('insertContent',(_0x1f3103,_0x269eb9)=>{const _0x2c0f9b=_0x269eb9[_0x269eb9['length']-0x1];_0x2c0f9b&&_0x2c0f9b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2c8d41['model']['change'](()=>{let _0x1a46e4=_0x2c8d41['model']['insertContent'](_0x269eb9[0x0],_0x269eb9[0x1],_0x269eb9[0x2],{'forceDefaultExecution':!0x0});if(!_0x1a46e4)return;_0x1f3103['return']=_0x1a46e4['clone']();const _0x23b6b8=_0x1a46e4['end']['nodeBefore'],_0x442856=_0x2c8d41['model']['schema'];_0x23b6b8&&_0x442856['isBlock'](_0x23b6b8)&&!_0x442856['isObject'](_0x23b6b8)&&(_0x1a46e4=_0x2c8d41['model']['createRange'](_0x1a46e4['start'],_0x2c8d41['model']['createPositionAt'](_0x23b6b8,'end'))),this['markInsertion'](_0x1a46e4);}),_0x1f3103['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xbe6a0b=new T(_0x2c8d41,this['_suggestions']);_0x2c8d41['commands']['add']('acceptSuggestion',_0xbe6a0b),this['enableCommand']('acceptSuggestion');const _0x1ce7b9=new O(_0x2c8d41,this['_suggestions']);_0x2c8d41['commands']['add']('discardSuggestion',_0x1ce7b9),this['enableCommand']('discardSuggestion'),_0x2c8d41['commands']['add']('acceptAllSuggestions',new x(_0x2c8d41,_0xbe6a0b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2c8d41['commands']['add']('discardAllSuggestions',new x(_0x2c8d41,_0x1ce7b9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2c8d41['commands']['add']('acceptSelectedSuggestions',new E(_0x2c8d41,_0xbe6a0b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2c8d41['commands']['add']('discardSelectedSuggestions',new E(_0x2c8d41,_0x1ce7b9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xbf56ca=_0x2c8d41['plugins']['get']('CommentsRepository');this['listenTo'](_0xbf56ca,'addComment',(_0x28236f,{threadId:_0x289536})=>{const _0x409553=this['_suggestions']['get'](_0x289536);_0x409553&&_0x409553['commentThread']&&0x1===_0x409553['commentThread']['length']&&this['_updateSuggestionData'](_0x289536,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xbf56ca,'removeComment',(_0x3de2d6,{threadId:_0x13e41c})=>{const _0x35cd7d=this['_suggestions']['get'](_0x13e41c);_0x35cd7d&&_0x35cd7d['commentThread']&&!_0x35cd7d['commentThread']['length']&&this['_updateSuggestionData'](_0x13e41c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3b58dd){const _0x4d83ab=_0x1bae5e([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]),_0x2b85fe=0x6b0f5e6f,_0x4fa4ea=0x6b082847^_0x2b85fe,_0x47597d=window[_0x1bae5e([0x44,0x61,0x74,0x65])][_0x1bae5e([0x6e,0x6f,0x77])](),_0x582165=_0x3b58dd[_0x1bae5e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x382caa=new window[(_0x1bae5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ac6c7=>{_0x582165[_0x1bae5e([0x6f,0x6e,0x63,0x65])](_0x1bae5e([0x72,0x65,0x61,0x64,0x79]),_0x5ac6c7);}),_0x432e0c={[_0x1bae5e([0x6b,0x74,0x79])]:_0x1bae5e([0x45,0x43]),[_0x1bae5e([0x75,0x73,0x65])]:_0x1bae5e([0x73,0x69,0x67]),[_0x1bae5e([0x63,0x72,0x76])]:_0x1bae5e([0x50,0x2d,0x32,0x35,0x36]),[_0x1bae5e([0x78])]:_0x1bae5e([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]),[_0x1bae5e([0x79])]:_0x1bae5e([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]),[_0x1bae5e([0x61,0x6c,0x67])]:_0x1bae5e([0x45,0x53,0x32,0x35,0x36])},_0x43fa47=_0x582165[_0x1bae5e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1bae5e([0x67,0x65,0x74])](_0x1bae5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2d65c8(){let _0x35bbb7,_0x49976c=null,_0x56b4fe=null;try{if(_0x43fa47==_0x1bae5e([0x47,0x50,0x4c]))return _0x1bae5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35bbb7=_0x1b1b9f(),!_0x35bbb7)return _0x1bae5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35bbb7[_0x1bae5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x56b4fe=_0x570d6c(_0x35bbb7[_0x1bae5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35bbb7[_0x1bae5e([0x6a,0x74,0x69])])),await _0x34e4a7()?_0x13765c()?_0x55ee51()?_0x1bae5e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x33949d()?(_0x35bbb7[_0x1bae5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1bae5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x49976c=_0x59f551(_0x1bae5e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x35bbb7[_0x1bae5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1bae5e([0x74,0x72,0x69,0x61,0x6c])&&(_0x49976c=_0x59f551(_0x1bae5e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56f5b9()):_0x1bae5e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1bae5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1bae5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1bae5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55ee51(){const _0x23ecef=[_0x1bae5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1bae5e([0x74,0x72,0x69,0x61,0x6c])][_0x1bae5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35bbb7[_0x1bae5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47597d/0x3e8:0xe10*_0x4fa4ea;return _0x35bbb7[_0x1bae5e([0x65,0x78,0x70])]<_0x23ecef;}function _0x13765c(){const _0x176c96=_0x35bbb7[_0x1bae5e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x176c96)return!0x1;if(_0x176c96[_0x1bae5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bae5e([0x2a])))return!0x0;if(_0x176c96[_0x1bae5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bae5e([0x54,0x43])))return!0x0;if(_0x176c96[_0x1bae5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bae5e([0x52,0x54,0x43]))){if(_0x52d49e())return!0x0;if(_0x1ecf1b()||_0x51879f())return!0x0;}return!0x1;}function _0x33949d(){const _0x6ec8cc=_0x35bbb7[_0x1bae5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x6ec8cc||0x0==_0x6ec8cc[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10224c}=new URL(window[_0x1bae5e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x6ec8cc[_0x1bae5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10224c))return!0x0;const _0x266773=_0x10224c[_0x1bae5e([0x73,0x70,0x6c,0x69,0x74])](_0x1bae5e([0x2e]));return _0x6ec8cc[_0x1bae5e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b4b5b=>_0x5b4b5b[_0x1bae5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bae5e([0x2a])))[_0x1bae5e([0x6d,0x61,0x70])](_0x30ad3c=>_0x30ad3c[_0x1bae5e([0x73,0x70,0x6c,0x69,0x74])](_0x1bae5e([0x2e])))[_0x1bae5e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x199388=>_0x199388[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x266773[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1bae5e([0x6d,0x61,0x70])](_0x5705f7=>Array(_0x266773[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5705f7[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1bae5e([0x66,0x69,0x6c,0x6c])](_0x5705f7[0x0]===_0x1bae5e([0x2a])?_0x1bae5e([0x2a]):'')[_0x1bae5e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5705f7))[_0x1bae5e([0x73,0x6f,0x6d,0x65])](_0x3351d1=>_0x266773[_0x1bae5e([0x65,0x76,0x65,0x72,0x79])]((_0x15664e,_0x57ae9f)=>_0x3351d1[_0x57ae9f]===_0x15664e||_0x3351d1[_0x57ae9f]===_0x1bae5e([0x2a])));}function _0x56f5b9(){return _0x49976c&&_0x56b4fe?new window[(_0x1bae5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x153eb0,_0x419096)=>{_0x49976c[_0x1bae5e([0x74,0x68,0x65,0x6e])](_0x153eb0,_0x419096),_0x56b4fe[_0x1bae5e([0x74,0x68,0x65,0x6e])](_0x9661f7=>{_0x9661f7!=_0x1bae5e([0x56,0x61,0x6c,0x69,0x64])&&_0x153eb0(_0x9661f7);},_0x419096);}):_0x49976c||_0x56b4fe||_0x1bae5e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x570d6c(_0x48af4f,_0xe7a97c){return new window[(_0x1bae5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x300bcd=>{if(_0x509bc0())return _0x300bcd(_0x1bae5e([0x56,0x61,0x6c,0x69,0x64]));_0x3ce71e(),_0x582165[_0x1bae5e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1bae5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x223904=!0x1;const _0x4f661c=_0x172a90();function _0x2a7984(_0x5c664f){return!!_0x5c664f&&(typeof _0x5c664f===_0x1bae5e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5c664f===_0x1bae5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5c664f[_0x1bae5e([0x74,0x68,0x65,0x6e])]===_0x1bae5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5c664f[_0x1bae5e([0x63,0x61,0x74,0x63,0x68])]===_0x1bae5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x51a450(_0x55308e){_0x49a65c(_0x55308e)[_0x1bae5e([0x74,0x68,0x65,0x6e])](_0x589da9=>{if(!_0x589da9||_0x589da9[_0x1bae5e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1bae5e([0x6f,0x6b]))return _0x1bae5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x572a5d(_0x585261(_0x4f661c+_0xe7a97c))!=_0x589da9[_0x1bae5e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1bae5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1bae5e([0x56,0x61,0x6c,0x69,0x64]);})[_0x1bae5e([0x74,0x68,0x65,0x6e])](_0x47ca56=>(_0x274954(),_0x47ca56),()=>{const _0x7b45c6=_0x135b18();return null==_0x7b45c6?(_0x274954(),_0x1bae5e([0x56,0x61,0x6c,0x69,0x64])):_0x1bae5e(_0x47597d-_0x7b45c6>(0x4f03da6f^_0x2b85fe)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1bae5e([0x74,0x68,0x65,0x6e])](_0x300bcd)[_0x1bae5e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x300bcd(_0x1bae5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x587e10=0x6b39b0ef^_0x2b85fe;function _0x274954(){const _0xf32dcf=_0x1bae5e([0x6c,0x6c,0x63,0x74,0x2d])+_0x572a5d(_0x585261(_0x48af4f)),_0x1c6358=_0x571bdb(_0x572a5d(window[_0x1bae5e([0x4d,0x61,0x74,0x68])][_0x1bae5e([0x63,0x65,0x69,0x6c])](_0x47597d/_0x587e10)));window[_0x1bae5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1bae5e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf32dcf,_0x1c6358);}function _0x135b18(){const _0x3f139a=_0x1bae5e([0x6c,0x6c,0x63,0x74,0x2d])+_0x572a5d(_0x585261(_0x48af4f)),_0x5682aa=window[_0x1bae5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1bae5e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f139a);return _0x5682aa?window[_0x1bae5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x571bdb(_0x5682aa),0x10)*_0x587e10:null;}function _0x49a65c(_0x1b5460){return new window[(_0x1bae5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25dfe1,_0xd782e1)=>{_0x1b5460[_0x1bae5e([0x74,0x68,0x65,0x6e])](_0x25dfe1,_0xd782e1),window[_0x1bae5e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xd782e1,0x6b0e8aaf^_0x2b85fe);});}}_0x582165[_0x1bae5e([0x6f,0x6e])](_0x1bae5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x169729,_0x139df7)=>{if(_0x139df7[0x0]!=_0x48af4f)return _0x300bcd(_0x1bae5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x139df7[0x1]={..._0x139df7[0x1],[_0x1bae5e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4f661c};},{[_0x1bae5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1bae5e([0x68,0x69,0x67,0x68])}),_0x582165[_0x1bae5e([0x6f,0x6e])](_0x1bae5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf8c661=>{_0x2a7984(_0xf8c661[_0x1bae5e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x223904=!0x0,_0x51a450(_0xf8c661[_0x1bae5e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1bae5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1bae5e([0x6c,0x6f,0x77])}),_0x382caa[_0x1bae5e([0x74,0x68,0x65,0x6e])](()=>{_0x223904||_0x300bcd(_0x1bae5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x509bc0(){return _0x582165[_0x1bae5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1bae5e([0x76,0x69,0x65,0x77])][_0x1bae5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1bae5e([0x61,0x75,0x74,0x6f]);}function _0x3ce71e(){_0x582165[_0x1bae5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1bae5e([0x76,0x69,0x65,0x77])][_0x1bae5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1bae5e([0x61,0x75,0x74,0x6f]);}}function _0x59f551(_0x2d0cfc){const _0x211d47=[new window[(_0x1bae5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc9251=>setTimeout(_0xc9251,0x6b0660a3^_0x2b85fe)),_0x382caa[_0x1bae5e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1bae5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51cdf1=>{let _0x13e922=0x0;_0x582165[_0x1bae5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bae5e([0x6f,0x6e])](_0x1bae5e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x44c267,_0x2b9c34)=>{_0x2b9c34[0x0][_0x1bae5e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x13e922++,_0x13e922==(0x6b0f5f97^_0x2b85fe)&&(_0x51cdf1(),_0x44c267[_0x1bae5e([0x6f,0x66,0x66])]());});}))];return window[_0x1bae5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1bae5e([0x72,0x61,0x63,0x65])](_0x211d47)[_0x1bae5e([0x74,0x68,0x65,0x6e])](()=>_0x2d0cfc);}async function _0x26d762(){await _0x382caa,_0x582165[_0x1bae5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bae5e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x34b9ac,_0x582165[_0x1bae5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bae5e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x34b9ac,_0x582165[_0x1bae5e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1bae5e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x52d49e(){return _0x221243(_0x1bae5e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5c0b4f(_0x1bae5e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1bae5e([0x73,0x74,0x61,0x74,0x65])]==_0x1bae5e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ecf1b(){return _0x221243(_0x1bae5e([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 _0x51879f(){return _0x221243(_0x1bae5e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x205e54(_0x2f915f){const _0x16e931=_0x2dead1();_0x582165[_0x16e931]=_0x1bae5e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2f915f,_0x2f915f!=_0x1bae5e([0x56,0x61,0x6c,0x69,0x64])&&_0x26d762();}function _0x2dead1(){const _0x500d56=window[_0x1bae5e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1bae5e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1bae5e([0x6e,0x6f,0x77])]())[_0x1bae5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1bae5e([0x2e]),'');let _0x3b1d10=_0x1bae5e([0x67]);for(let _0x33c753=0x0;_0x33c753<_0x500d56[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33c753+=0x2){let _0x366a04=window[_0x1bae5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x500d56[_0x1bae5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33c753,_0x33c753+0x2));_0x366a04>=_0x4d83ab[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x366a04-=_0x4d83ab[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b1d10+=_0x4d83ab[_0x366a04];}return _0x3b1d10;}function _0x1b1b9f(){const _0x5b9fa5=_0x43fa47[_0x1bae5e([0x73,0x70,0x6c,0x69,0x74])](_0x1bae5e([0x2e]));if(0x3!=_0x5b9fa5[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4a6c13(_0x5b9fa5[0x1]);function _0x4a6c13(_0x5b2663){const _0x250ae8=_0x1e52d5(_0x5b2663);return _0x250ae8&&_0x5e6040()?_0x250ae8:null;function _0x5e6040(){const _0x50ae11=_0x250ae8[_0x1bae5e([0x6a,0x74,0x69])],_0x5996db=window[_0x1bae5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50ae11[_0x1bae5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50ae11[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x506093={..._0x250ae8,[_0x1bae5e([0x6a,0x74,0x69])]:_0x50ae11[_0x1bae5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50ae11[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x506093[_0x1bae5e([0x76,0x63])],_0x585261(_0x506093)==_0x5996db;}}}async function _0x34e4a7(){let _0x1f0cc4=!0x0;try{const _0x522c37=_0x43fa47[_0x1bae5e([0x73,0x70,0x6c,0x69,0x74])](_0x1bae5e([0x2e])),[_0x50fed4,_0x2920ba,_0x56895a]=_0x522c37;return _0x45aaa2(_0x50fed4),await _0x2813aa(_0x50fed4,_0x2920ba,_0x56895a),_0x1f0cc4;}catch{return!0x1;}function _0x45aaa2(_0x1b4472){const _0x277ced=_0x1e52d5(_0x1b4472);_0x277ced&&_0x277ced[_0x1bae5e([0x61,0x6c,0x67])]==_0x1bae5e([0x45,0x53,0x32,0x35,0x36])||(_0x1f0cc4=!0x1);}async function _0x2813aa(_0x188c37,_0x123fc2,_0x4e6781){const _0x5d4091=window[_0x1bae5e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1bae5e([0x66,0x72,0x6f,0x6d])](_0x48c55d(_0x4e6781),_0x1f7d32=>_0x1f7d32[_0x1bae5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4651e6=new window[(_0x1bae5e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1bae5e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x188c37+_0x1bae5e([0x2e])+_0x123fc2),_0x7fbc0c=window[_0x1bae5e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1bae5e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7fbc0c)return;const _0x53f87c=await _0x7fbc0c[_0x1bae5e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1bae5e([0x6a,0x77,0x6b]),_0x432e0c,{[_0x1bae5e([0x6e,0x61,0x6d,0x65])]:_0x1bae5e([0x45,0x43,0x44,0x53,0x41]),[_0x1bae5e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1bae5e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1bae5e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7fbc0c[_0x1bae5e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1bae5e([0x6e,0x61,0x6d,0x65])]:_0x1bae5e([0x45,0x43,0x44,0x53,0x41]),[_0x1bae5e([0x68,0x61,0x73,0x68])]:{[_0x1bae5e([0x6e,0x61,0x6d,0x65])]:_0x1bae5e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x53f87c,_0x5d4091,_0x4651e6)||(_0x1f0cc4=!0x1);}}function _0x1e52d5(_0x29cfaa){return _0x29cfaa[_0x1bae5e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1bae5e([0x65,0x79]))?JSON[_0x1bae5e([0x70,0x61,0x72,0x73,0x65])](_0x48c55d(_0x29cfaa)):null;}function _0x48c55d(_0x272fbc){return window[_0x1bae5e([0x61,0x74,0x6f,0x62])](_0x272fbc[_0x1bae5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1bae5e([0x2b]))[_0x1bae5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1bae5e([0x2f])));}function _0x585261(_0x20fe05){let _0x5a4d19=0x1505;function _0x2b2b9f(_0x120795){for(let _0x3d57ef=0x0;_0x3d57ef<_0x120795[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d57ef++){const _0x987c70=_0x120795[_0x1bae5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d57ef);_0x5a4d19=(_0x5a4d19<<0x5)+_0x5a4d19+_0x987c70,_0x5a4d19&=_0x5a4d19;}}function _0xcf2496(_0x10e830){Array[_0x1bae5e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10e830)?_0x10e830[_0x1bae5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xcf2496):_0x10e830&&typeof _0x10e830==_0x1bae5e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1bae5e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10e830)[_0x1bae5e([0x73,0x6f,0x72,0x74])]()[_0x1bae5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x486431,_0x377fdf])=>{_0x2b2b9f(_0x486431),_0xcf2496(_0x377fdf);}):_0x2b2b9f(window[_0x1bae5e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10e830));}return _0xcf2496(_0x20fe05),_0x5a4d19>>>0x0;}function _0x572a5d(_0x297393){return _0x297393[_0x1bae5e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1bae5e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1bae5e([0x30]));}function _0x571bdb(_0x2b4151){return _0x2b4151[_0x1bae5e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1bae5e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1bae5e([0x6a,0x6f,0x69,0x6e])]('');}function _0x221243(_0x35ad73){return _0x582165[_0x1bae5e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1bae5e([0x68,0x61,0x73])](_0x35ad73);}function _0x5c0b4f(_0x4fc366){return _0x582165[_0x1bae5e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1bae5e([0x67,0x65,0x74])](_0x4fc366);}function _0x34b9ac(){}function _0x1bae5e(_0xed644a){return _0xed644a['map'](_0x33f1f3=>String['fromCharCode'](_0x33f1f3))['join']('');}_0x205e54(await _0x2d65c8());}(this);}set['adapter'](_0x98d529){if(this['_adapter'])throw new _0x1ac6d4('track-changes-adapter-already-set',this);this['_adapter']=_0x98d529;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2ae15f=!0x1,toJSON:_0x59a0af=!0x1}={}){const _0x573018=[];for(const _0x4b1640 of this['_suggestions']['values']())_0x2ae15f&&!_0x4b1640['isInContent']||_0x573018['push'](_0x4b1640);return _0x59a0af?_0x573018['map'](_0x234eac=>_0x234eac['toJSON']()):_0x573018;}['getSuggestion'](_0x56117a){const _0x5bebc7=this['_suggestions']['get'](_0x56117a);if(!_0x5bebc7)throw new _0x1ac6d4('track-changes-suggestion-not-found',this);return _0x5bebc7;}['hasSuggestion'](_0x51b0d3){return this['_suggestions']['has'](_0x51b0d3);}['addSuggestionData'](_0x4ba69d){const {authorId:_0x3c5a48,id:_0x3e84f1,originalSuggestionId:_0xc06186,attributes:_0x132bd5}=_0x4ba69d,[_0x4680fa,_0x47a9c8]=_0x4ba69d['type']['split'](':'),_0x46dc0d=this['_suggestions']['get'](_0x3e84f1)||this['_createSuggestion'](_0x4680fa,_0x47a9c8,_0x3e84f1,_0x3c5a48,_0x132bd5,_0xc06186);if(this['_addThreadToSuggestion'](_0x46dc0d),this['_checkSuggestionCorrectness'](_0x46dc0d,_0x4680fa,_0x47a9c8||null,_0x3c5a48),_0x46dc0d['createdAt']=_0x4ba69d['createdAt'],_0x46dc0d['_isDataLoaded']=!0x0,_0x132bd5&&_0x132bd5['@external']){const _0x32347f=_0x132bd5['@external'],_0x3cc26c=this['_getExternalAuthor'](_0x32347f['authorName']);_0x46dc0d['authoredAt']=_0x32347f['createdAt'],_0x46dc0d['author']=_0x3cc26c,_0x46dc0d['isExternal']=!0x0;}else _0x46dc0d['authoredAt']=_0x4ba69d['createdAt'];switch(_0x4ba69d['data']&&(_0x46dc0d['data']=_0x4ba69d['data']),_0x4ba69d['attributes']&&(_0x46dc0d['attributes']=_0x4ba69d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x46dc0d['_saved']=!0x0),this['_suggestionState']['get'](_0x46dc0d)){case'notReady':this['_suggestionState']['set'](_0x46dc0d,'dataReady');break;case'markerReady':_0x46dc0d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x46dc0d])),this['_refreshSuggestionsChain'](new Set([_0x46dc0d])),this['_suggestionState']['set'](_0x46dc0d,'ready'),this['fire']('suggestionLoaded',_0x46dc0d)):this['_suggestionState']['set'](_0x46dc0d,'removed');}return _0x46dc0d;}['acceptSuggestion'](_0x5c9b32){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xa75761 of _0x5c9b32['getAllAdjacentSuggestions']())_0xa75761['accept']();});});}['discardSuggestion'](_0x512812){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x25d9df of _0x512812['getAllAdjacentSuggestions']())_0x25d9df['discard']();});});}['enableCommand'](_0xf7d0b2,_0x333dee){const _0x2fb4ca=this['editor']['commands']['get'](_0xf7d0b2);if(!_0x2fb4ca)throw new _0x1ac6d4('track-changes-command-not-found',this,{'commandName':_0xf7d0b2});if(this['_enabledCommands']['has'](_0x2fb4ca))throw new _0x1ac6d4('track-changes-enable-command-twice',this,{'commandName':_0xf7d0b2});this['_enabledCommands']['add'](_0x2fb4ca),_0x333dee&&_0x2fb4ca['on']('execute',(_0x2bda2a,_0x5e6d50)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5e6d50['length']>0x0&&_0x5e6d50[_0x5e6d50['length']-0x1]&&_0x5e6d50[_0x5e6d50['length']-0x1]['forceDefaultExecution']?_0x5e6d50['pop']():(_0x2bda2a['return']=_0x333dee((..._0x56b626)=>_0x2fb4ca['execute'](..._0x56b626,{'forceDefaultExecution':!0x0}),..._0x5e6d50),_0x2bda2a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3ed849){let _0x4a1203,_0x5aa9df;const _0x56b846=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4a1203=_0x3ed849();}catch(_0x2a99ce){_0x5aa9df=_0x2a99ce;}return _0x56b846||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5aa9df&&_0x1ac6d4['rethrowUnexpectedError'](_0x5aa9df,this),_0x4a1203;}['markInsertion'](_0x25a282,_0x500a5f=null,_0x228d03={}){if(_0x25a282['isCollapsed'])return null;const _0x5acb3b=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x228d03['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x152d06,meta:_0x4ac59d}of this['_findSuggestions'](_0x25a282,'insertion'))if(_0x4ac59d['isOwn']){if(!_0x4ac59d['isNextTo']){if(_0x4ac59d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!se(_0x152d06,_0x228d03))continue;return _0x152d06;}if(se(_0x152d06,_0x228d03))return _0x152d06;this['_breakSuggestionMarker'](_0x152d06,_0x25a282['start'],_0x25a282['end']);break;}if(_0x500a5f==_0x152d06['subType']&&se(_0x152d06,_0x228d03)){const _0x1bf71f=_0x152d06['getFirstRange']();return _0x1bf71f['start']['isEqual'](_0x25a282['end'])?this['_setSuggestionRange'](_0x152d06,this['_model']['createRange'](_0x25a282['start'],_0x1bf71f['end'])):this['_setSuggestionRange'](_0x152d06,this['_model']['createRange'](_0x1bf71f['start'],_0x25a282['end'])),_0x152d06;}}const _0x8ebc3=_0x172a90(),_0x3d29e6=_0x5acb3b['id'],_0x47645a=_0x500a5f?'insertion:'+_0x500a5f:'insertion',_0x21d19d=this['_setSuggestionData']({'id':_0x8ebc3,'type':_0x47645a,'createdAt':new Date(),'authorId':_0x3d29e6,'attributes':_0x228d03});return this['_addSuggestionMarker'](_0x47645a,_0x8ebc3,_0x3d29e6,_0x25a282),_0x21d19d;}['markMultiRangeInsertion'](_0x3258f0,_0x1e72d0='multi',_0x5a0f75={}){const _0x39186b=this['editor']['plugins']['get']('Users')['me'],_0x260c4c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1e72d0,'join');this['_trackingSessionId']&&(_0x5a0f75['trackingSessionId']=this['_trackingSessionId']);for(const _0xa27290 of this['getSuggestions']())if(_0xa27290['author']['id']==_0x39186b['id']&&'insertion'==_0xa27290['type']&&_0xa27290['subType']==_0x1e72d0&&se(_0xa27290,_0x5a0f75)&&(_0x260c4c(_0xa27290['getRanges'](),_0x3258f0)||_0x260c4c(_0x3258f0,_0xa27290['getRanges']()))){for(const _0x4778ab of _0x3258f0)_0xa27290['addRange'](_0x4778ab);return _0xa27290;}for(const {suggestion:_0xacec72,meta:_0x1506da}of this['_findSuggestions'](_0x3258f0,'insertion')){if(!_0x1506da['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1506da['containsRangeInObject'])continue;if(!se(_0xacec72,_0x5a0f75))continue;let _0x536a0f=!0x0;for(const _0x2587e4 of _0xacec72['getRanges']())for(const _0x3efc33 of _0x3258f0)if(!_0x2587e4['containsRange'](_0x3efc33)){_0x536a0f=!0x1;break;}if(_0x536a0f)return _0xacec72;}const _0x118fc5=_0x172a90(),_0x4ba529=_0x39186b['id'],_0x42ab5c='insertion:'+_0x1e72d0,_0x71c688=this['_setSuggestionData']({'id':_0x118fc5,'type':_0x42ab5c,'createdAt':new Date(),'authorId':_0x4ba529,'attributes':_0x5a0f75});for(const _0x35ae18 of _0x3258f0)this['_addSuggestionMarker'](_0x42ab5c,_0x118fc5,_0x4ba529,_0x35ae18,R['getMultiRangeId']());return _0x71c688;}['markInlineFormat'](_0x2050a7,_0x32d25d,_0xe64c7c=null,_0x1039b4={}){if(_0xe64c7c=_0xe64c7c||zt(_0x32d25d),_0x2050a7['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1039b4['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x435714=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe64c7c,'accept');return this['forceDefaultExecution'](()=>_0x435714([_0x2050a7],_0x32d25d,_0x1039b4)),null;}const _0x13cebb=this['editor']['plugins']['get']('Users')['me'],_0x1954d1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3572eb,meta:_0x4b669d}of this['_findSuggestions'](_0x2050a7,'insertion'))_0x4b669d['isOwn']&&!_0x4b669d['isInsideObject']&&_0x1954d1['push'](..._0x3572eb['getRanges']());}const _0x45cefa=function(_0x3884c2,_0x5239fc){const _0x116e23=[];for(const _0xc0e839 of _0x5239fc){const _0x5a5a63=_0x3884c2['getIntersection'](_0xc0e839);_0x5a5a63&&_0x116e23['push'](_0x5a5a63);}return _0x116e23;}(_0x2050a7,_0x1954d1),_0x2bccb9=function(_0x3d42f3,_0x31ef73){const _0x47761f=[_0x3d42f3];for(const _0x3ee323 of _0x31ef73){let _0x47a4e8=0x0;for(;_0x47a4e8<_0x47761f['length'];){const _0x42c79a=_0x47761f[_0x47a4e8]['getDifference'](_0x3ee323);_0x47761f['splice'](_0x47a4e8,0x1,..._0x42c79a),_0x47a4e8+=_0x42c79a['length'];}}return _0x47761f;}(_0x2050a7,_0x1954d1);_0x45cefa['length']&&this['_model']['change'](()=>{for(const _0x101d43 of _0x45cefa){const _0x51cb31=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe64c7c,'accept');this['forceDefaultExecution'](()=>_0x51cb31([_0x101d43],_0x32d25d,_0x1039b4));}});for(const _0x18134f of _0x2bccb9){let _0x186b41=null,_0x418187=_0x18134f['start'],_0x14bfc6=_0x18134f['end'];for(const {suggestion:_0x503ca9,meta:_0x381fa7}of this['_findSuggestions'](_0x18134f,'formatInline')){if(!_0x381fa7['isOwn'])continue;if(_0x503ca9['subType']!=_0xe64c7c)continue;if(!se(_0x503ca9,_0x1039b4))continue;const _0x1817b5=_0x503ca9['getFirstRange']();if(_0x1817b5['containsRange'](_0x18134f,!0x0))return null;_0x418187=_0x418187['isBefore'](_0x1817b5['start'])?_0x418187:_0x1817b5['start'],_0x14bfc6=_0x14bfc6['isAfter'](_0x1817b5['end'])?_0x14bfc6:_0x1817b5['end'],_0x186b41?_0x1817b5['start']['isBefore'](_0x186b41['getFirstRange']()['start'])?(_0x186b41['removeMarkers'](),_0x186b41=_0x503ca9):_0x503ca9['removeMarkers']():_0x186b41=_0x503ca9;}const _0x80b6ac=this['_model']['createRange'](_0x418187,_0x14bfc6);if(_0x186b41)this['_setSuggestionRange'](_0x186b41,_0x80b6ac);else{const _0x5e199e=_0x172a90(),_0x28be80=_0x13cebb['id'];this['_setSuggestionData']({'id':_0x5e199e,'type':'formatInline:'+_0xe64c7c,'data':_0x32d25d,'createdAt':new Date(),'authorId':_0x28be80,'attributes':_0x1039b4}),this['_addSuggestionMarker']('formatInline:'+_0xe64c7c,_0x5e199e,_0x28be80,_0x80b6ac);}}return null;}['markBlockFormat'](_0x2420a2,_0x23eea7,_0x15604d=[],_0x196f60=null,_0x520e82={}){_0x23eea7['formatGroupId']||(_0x23eea7['formatGroupId']=_0x23eea7['commandName']),_0x23eea7['multipleBlocks']=_0x2420a2['is']('range'),_0x196f60=_0x196f60||zt(_0x23eea7);const _0x499fc3=_0x15604d['map'](_0x379144=>ee(_0x379144,this['_model'])),_0x55d4ac=_0x2420a2['is']('range')?_0x2420a2:ee(_0x2420a2,this['_model']);if(this['_trackingSessionId']&&(_0x520e82['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x36822b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x196f60,'accept');return this['forceDefaultExecution'](()=>_0x36822b([_0x55d4ac],_0x23eea7,_0x520e82)),null;}_0x499fc3['push'](_0x55d4ac);let _0x3c4818=!0x0;for(const _0x166b68 of _0x499fc3)if(!this['_rangeIsInLocalUserInsertion'](_0x166b68)){_0x3c4818=!0x1;break;}if(_0x3c4818&&'always'!==this['_trackFormatChanges']){const _0x12d4c5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x196f60,'accept');return this['forceDefaultExecution'](()=>_0x12d4c5([_0x55d4ac],_0x23eea7,_0x520e82)),null;}let _0x1b2f7a=null,_0x177cea=_0x55d4ac['start'],_0x363072=_0x55d4ac['end'];for(const {suggestion:_0x251cfc,meta:_0x30dcae}of this['_findSuggestions'](_0x55d4ac,'formatBlock')){if(!_0x30dcae['isOwn'])continue;if(_0x30dcae['isNextTo']||_0x30dcae['containsRangeInObject']||_0x30dcae['isInsideObject'])continue;if(_0x251cfc['data']['formatGroupId']!=_0x23eea7['formatGroupId'])continue;if(!se(_0x251cfc,_0x520e82))continue;const _0xcc1040=_0x251cfc['getFirstRange']();if(_0x251cfc['subType']==_0x196f60){if(_0xcc1040['containsRange'](_0x55d4ac,!0x0))return null;_0x177cea=_0x177cea['isBefore'](_0xcc1040['start'])?_0x177cea:_0xcc1040['start'],_0x363072=_0x363072['isAfter'](_0xcc1040['end'])?_0x363072:_0xcc1040['end'],_0x1b2f7a?_0xcc1040['start']['isBefore'](_0x1b2f7a['getFirstRange']()['start'])?(_0x1b2f7a['removeMarkers'](),_0x1b2f7a=_0x251cfc):_0x251cfc['removeMarkers']():_0x1b2f7a=_0x251cfc;}else{const _0x222e70=_0x55d4ac['getIntersection'](_0xcc1040);this['_cutOutSuggestionMarker'](_0x251cfc,_0x222e70);}}const _0x379bfd=this['editor']['plugins']['get']('Users')['me'],_0x4a7f76=_0x172a90(),_0x4465c3=_0x379bfd['id'];if(_0x1b2f7a)return this['_setSuggestionRange'](_0x1b2f7a,this['_model']['createRange'](_0x177cea,_0x363072)),_0x1b2f7a;{const _0xe3fcf9=this['_setSuggestionData']({'id':_0x4a7f76,'type':'formatBlock:'+_0x196f60,'data':_0x23eea7,'createdAt':new Date(),'authorId':_0x4465c3,'attributes':_0x520e82});return this['_addSuggestionMarker']('formatBlock:'+_0x196f60,_0x4a7f76,_0x4465c3,this['_model']['createRange'](_0x177cea,_0x363072)),_0xe3fcf9;}}['markMultiRangeBlockFormat'](_0x1fb976,_0x21123f,_0xa43e13=[],_0xa2c32b=null,_0x581098={}){_0x21123f['formatGroupId']||(_0x21123f['formatGroupId']=_0x21123f['commandName']);const _0x9db82c=_0x1fb976[0x0];_0x21123f['multipleBlocks']=_0x9db82c['is']('range'),_0xa2c32b=_0xa2c32b||zt(_0x21123f);const _0x3bb0e9=_0xa43e13['map'](_0x12aa67=>ee(_0x12aa67,this['_model'])),_0x3912a1=_0x9db82c['is']('range')?_0x1fb976:_0x1fb976['map'](_0x2cbe14=>ee(_0x2cbe14,this['_model']));if(this['_trackingSessionId']&&(_0x581098['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2104cc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa2c32b,'accept');return this['forceDefaultExecution'](()=>_0x2104cc(_0x3912a1,_0x21123f,_0x581098)),null;}_0x3bb0e9['push'](..._0x3912a1);let _0x2cdbad=!0x0;for(const _0x4797cb of _0x3bb0e9)if(!this['_rangeIsInLocalUserInsertion'](_0x4797cb)){_0x2cdbad=!0x1;break;}if(_0x2cdbad&&'always'!==this['_trackFormatChanges']){const _0x507cf7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa2c32b,'accept');return this['forceDefaultExecution'](()=>_0x507cf7(_0x3912a1,_0x21123f,_0x581098)),null;}const _0x195d19=this['editor']['plugins']['get']('Users')['me'];for(const _0x2b0cb0 of this['getSuggestions']()){const _0x5c1b4f=_0x2b0cb0['data'];if(_0x2b0cb0['author']['id']!=_0x195d19['id'])continue;if('formatBlock'!=_0x2b0cb0['type']||_0x5c1b4f['formatGroupId']!=_0x21123f['formatGroupId'])continue;if(!se(_0x2b0cb0,_0x581098))continue;const _0x87ca13=_0x2b0cb0['subType']==_0xa2c32b;for(let _0x5eaf61=0x0;_0x5eaf61<_0x3912a1['length'];_0x5eaf61++){const _0x3b1f4c=_0x3912a1[_0x5eaf61];for(const _0x6885c6 of _0x2b0cb0['getMarkers']()){const _0xe7d43c=_0x6885c6['getRange']();if(_0x3b1f4c['isEqual'](_0xe7d43c)){_0x87ca13?(_0x3912a1['splice'](_0x5eaf61,0x1),_0x5eaf61--):_0x2b0cb0['removeMarker'](_0x6885c6['name']);break;}}}}if(0x0==_0x3912a1['length'])return null;const _0x11272c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa2c32b,'join');for(const _0x20a59a of this['getSuggestions']()){const _0x2e1360=_0x20a59a['data'];if(_0x20a59a['author']['id']==_0x195d19['id']&&('formatBlock'==_0x20a59a['type']&&_0x2e1360['formatGroupId']==_0x21123f['formatGroupId']&&_0x20a59a['subType']==_0xa2c32b&&se(_0x20a59a,_0x581098)&&(_0x11272c(_0x20a59a['getRanges'](),_0x3912a1)||_0x11272c(_0x3912a1,_0x20a59a['getRanges']())))){for(const _0x55fb0f of _0x3912a1)_0x20a59a['addRange'](_0x55fb0f);return _0x20a59a;}}const _0x56dcee=_0x172a90(),_0x1cfe5c=_0x195d19['id'],_0x405ffa='formatBlock:'+_0xa2c32b,_0x8a6606=this['_setSuggestionData']({'id':_0x56dcee,'type':_0x405ffa,'data':_0x21123f,'createdAt':new Date(),'authorId':_0x1cfe5c,'attributes':_0x581098});for(const _0x52ed55 of _0x3912a1)this['_addSuggestionMarker'](_0x405ffa,_0x56dcee,_0x1cfe5c,_0x52ed55,R['getMultiRangeId']());return _0x8a6606;}['markDeletion'](_0x9ee95c,_0x5bc8f4=null,_0x4c0efb={}){if(_0x9ee95c['isCollapsed'])return null;const _0x53b294=this['editor']['plugins']['get']('Users')['me'],_0x39f612=new _0x360709(_0x9ee95c['start'],_0x9ee95c['end']);this['_trackingSessionId']&&(_0x4c0efb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4434d2,meta:_0x244a89}of this['_findSuggestions'](_0x39f612,'insertion'))if(_0x244a89['isOwn']&&!_0x244a89['isNextTo']){if(_0x4434d2['isMultiRange']){const _0x1d02c0=_0x4434d2['getRanges']()['filter'](_0x1ae213=>'$graveyard'!=_0x1ae213['root']['rootName']);_0x1d02c0['every'](_0x1bb363=>_0x39f612['containsRange'](_0x1bb363,!0x0))&&_0x4434d2['discard']();if(_0x1d02c0['some'](_0x4b9582=>_0x4b9582['containsRange'](_0x39f612,!0x0))){const _0x163143=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5bc8f4,'accept');return this['forceDefaultExecution'](()=>_0x163143([_0x39f612],null,_0x4c0efb)),null;}}else{const _0x5a092a=_0x39f612['getIntersection'](_0x4434d2['getFirstRange']());null!==_0x5a092a&&_0x4434d2['_onDiscard']([_0x5a092a],null,_0x4c0efb);}}if(_0x39f612['detach'](),_0x39f612['isCollapsed']||'$graveyard'==_0x39f612['root']['rootName'])return null;let _0x1f359d=null,_0x5bc7cc=_0x39f612['start'],_0x495c85=_0x39f612['end'];const _0x55d784=this['_findSuggestions'](_0x39f612,'deletion');for(const {suggestion:_0x3509ec,meta:_0x3075e9}of _0x55d784){const _0x4e5181=this['_model']['createRange'](_0x5bc7cc,_0x495c85);if(_0x3075e9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3075e9['containsRangeInObject']&&!_0x3075e9['isInsideObject'])){if(_0x3509ec['isMultiRange']){if(!se(_0x3509ec,_0x4c0efb))continue;let _0x2025c6=!0x0;for(const _0xe850e3 of _0x3509ec['getRanges']()){if(_0xe850e3['containsRange'](_0x4e5181,!0x0))return _0x3509ec;_0x4e5181['containsRange'](_0xe850e3)||(_0x2025c6=!0x1);}_0x2025c6&&_0x3509ec['discard']();}else{const _0x2bef31=_0x3509ec['getFirstRange']();if(_0x2bef31['containsRange'](_0x4e5181,!0x0))return _0x3509ec;if(!se(_0x3509ec,_0x4c0efb)){_0x4e5181['containsRange'](_0x2bef31)?_0x3509ec['removeMarkers']():_0x2bef31['containsPosition'](_0x5bc7cc)?_0x5bc7cc=_0x2bef31['end']:_0x2bef31['containsPosition'](_0x495c85)&&(_0x495c85=_0x2bef31['start']);continue;}_0x5bc7cc=_0x5bc7cc['isBefore'](_0x2bef31['start'])?_0x5bc7cc:_0x2bef31['start'],_0x495c85=_0x495c85['isAfter'](_0x2bef31['end'])?_0x495c85:_0x2bef31['end'],_0x4c0efb=Object['assign']({},_0x3509ec['attributes']),_0x1f359d?_0x2bef31['start']['isBefore'](_0x1f359d['getFirstRange']()['start'])?(_0x1f359d['removeMarkers'](),_0x1f359d=_0x3509ec):_0x3509ec['removeMarkers']():_0x1f359d=_0x3509ec;}}}if(_0x1f359d)return this['_setSuggestionRange'](_0x1f359d,this['_model']['createRange'](_0x5bc7cc,_0x495c85)),_0x1f359d;{const _0x26262a=_0x172a90(),_0x47a40f=this['_model']['createRange'](_0x5bc7cc,_0x495c85),_0x3d84ae=_0x53b294['id'],_0x2c24ff=_0x5bc8f4?'deletion:'+_0x5bc8f4:'deletion',_0x5cac76=this['_setSuggestionData']({'id':_0x26262a,'type':_0x2c24ff,'createdAt':new Date(),'authorId':_0x3d84ae,'attributes':_0x4c0efb});return this['_addSuggestionMarker'](_0x2c24ff,_0x26262a,_0x3d84ae,_0x47a40f),_0x5cac76;}}['markMultiRangeDeletion'](_0x453325,_0x2209de='multi',_0xa3ee0d={}){const _0x20dc71=this['editor']['plugins']['get']('Users')['me'],_0x543073=_0x453325['map'](_0x221d70=>new _0x360709(_0x221d70['start'],_0x221d70['end'])),_0x302e25=new Set();this['_trackingSessionId']&&(_0xa3ee0d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xaa1d13,meta:_0x50c929}of this['_findSuggestions'](_0x543073,'insertion'))_0x50c929['isOwn']&&!_0x50c929['isNextTo']&&_0x302e25['add'](_0xaa1d13);for(const _0x5ae5f0 of _0x302e25)if(_0x5ae5f0['isMultiRange']){const _0x9749ef=_0x5ae5f0['getRanges']();(!_0x5ae5f0['attributes']||!_0x5ae5f0['attributes']['skipNestingCheck'])&&(_0x9749ef['every'](_0x3ecccb=>_0x543073['some'](_0x5c3402=>_0x5c3402['containsRange'](_0x3ecccb,!0x0)))&&_0x5ae5f0['discard']());if(_0x543073['every'](_0x36537d=>_0x9749ef['some'](_0x1c06e4=>_0x1c06e4['containsRange'](_0x36537d,!0x0)))){const _0x40f6e0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2209de,'accept');return this['forceDefaultExecution'](()=>_0x40f6e0(_0x453325,null,_0xa3ee0d)),null;}}else{const _0x813cbe=_0x5ae5f0['getFirstRange']();_0x543073['some'](_0x544370=>_0x544370['containsRange'](_0x813cbe,!0x0))&&_0x5ae5f0['discard']();if(_0x543073['every'](_0x513dec=>_0x813cbe['containsRange'](_0x513dec,!0x0))){const _0x8950e0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2209de,'accept');return this['forceDefaultExecution'](()=>_0x8950e0(_0x543073,null,_0xa3ee0d)),null;}}const _0x3d6055=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2209de,'join');let _0x341fb8=null;for(const _0x25fef2 of this['getSuggestions']())if(_0x25fef2['author']['id']==_0x20dc71['id']&&_0x25fef2['isInContent']&&'deletion'==_0x25fef2['type']&&_0x25fef2['subType']==_0x2209de&&se(_0x25fef2,_0xa3ee0d)&&(_0x3d6055(_0x25fef2['getRanges'](),_0x543073)||_0x3d6055(_0x543073,_0x25fef2['getRanges']()))){if(_0x341fb8){if(_0x25fef2['commentThread']&&_0x25fef2['commentThread']['length'])continue;for(const _0x396ebd of _0x25fef2['getRanges']())_0x341fb8['isIntersectingWithRange'](_0x396ebd)||_0x341fb8['addRange'](_0x396ebd);_0x25fef2['removeMarkers']();}else{_0x341fb8=_0x25fef2;for(const _0x1a35de of _0x543073)_0x25fef2['isIntersectingWithRange'](_0x1a35de)||_0x25fef2['addRange'](_0x1a35de);}}if(_0x341fb8)return _0x341fb8;_0x302e25['clear']();for(const {suggestion:_0x491e2b,meta:_0x124373}of this['_findSuggestions'](_0x543073,'deletion'))_0x124373['isOwn']&&(this['_mergeNestedSuggestions']||!_0x124373['containsRangeInObject']&&!_0x124373['isInsideObject'])&&se(_0x491e2b,_0xa3ee0d)&&_0x302e25['add'](_0x491e2b);for(const _0x297c28 of _0x302e25){const _0x5c622a=_0x297c28['getRanges']();if(!_0xa3ee0d||!_0xa3ee0d['skipNestingCheck']){if(_0x543073['every'](_0x3af2b3=>_0x5c622a['some'](_0x361334=>_0x361334['containsRange'](_0x3af2b3,!0x0))))return _0x297c28;}(!_0x297c28['attributes']||!_0x297c28['attributes']['skipNestingCheck'])&&(_0x5c622a['every'](_0xc3b568=>_0x543073['some'](_0x589412=>_0x589412['containsRange'](_0xc3b568,!0x0)))&&_0x297c28['discard']());}const _0x363b1a=_0x172a90(),_0x4f43bb=_0x20dc71['id'],_0x47f033='deletion:'+_0x2209de,_0x813ae2=this['_setSuggestionData']({'id':_0x363b1a,'type':_0x47f033,'createdAt':new Date(),'authorId':_0x4f43bb,'attributes':_0xa3ee0d});for(const _0x4551de of _0x543073)_0x4551de['detach'](),_0x4551de['isCollapsed']||'$graveyard'==_0x4551de['root']['rootName']||this['_addSuggestionMarker'](_0x47f033,_0x363b1a,_0x4f43bb,_0x4551de,R['getMultiRangeId']());return _0x813ae2;}['markAttributeChange'](_0x339575,_0x21286b,_0x1fddd0,_0x3cf346,_0x3cdc99){if(_0x339575['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xa681d6=this['editor']['plugins']['get']('Users')['me']['id'],_0x24fd49=Array['from'](this['_suggestions']['values']())['filter'](_0x48487f=>'attribute'==_0x48487f['type']&&_0x48487f['data']['key']==_0x21286b&&_0x48487f['isIntersectingWithRange'](_0x339575));if(this['_trackingSessionId']&&(_0x3cdc99['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x103af4=this['_findSuggestions'](_0x339575,'insertion')['filter'](({meta:_0xc87867})=>_0xc87867['isOwn']&&!_0xc87867['isInsideObject']&&!_0xc87867['isNextTo'])['map'](({suggestion:_0x1e8669})=>_0x1e8669);_0x24fd49['unshift'](..._0x103af4);}const _0x3094b3=new Map([[_0x339575,_0x1fddd0]]);for(const _0x1b33d8 of _0x24fd49){const _0x1d7aba='attribute'==_0x1b33d8['type']?_0x1b33d8['data']['oldValue']:void 0x0,_0x2e39b8=_0x1b33d8['getFirstRange'](),_0xa62f9=Array['from'](_0x3094b3['keys']())['find'](_0x259eb7=>_0x259eb7['isIntersecting'](_0x2e39b8));if(!_0xa62f9)continue;const _0x2b0258=_0xa62f9['getDifference'](_0x2e39b8);this['_isBlockAttribute'](_0x21286b)&&'insertion'==_0x1b33d8['type']&&0x0!=_0x2b0258['length']||(_0x3094b3['delete'](_0xa62f9),_0x2b0258['forEach'](_0x8ea919=>{_0x3094b3['set'](_0x8ea919,_0x1fddd0);}),'insertion'!=_0x1b33d8['type']&&_0x1d7aba!=_0x3cf346&&_0x3094b3['set'](_0xa62f9['getIntersection'](_0x2e39b8),_0x1d7aba));}const _0x3b70c2=[];for(const [_0x47b6d4,_0x46901c]of _0x3094b3){const _0x14b684=_0x172a90(),_0x22fc2e={'key':_0x21286b,'oldValue':_0x46901c,'newValue':_0x3cf346};_0x21286b['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':_0x21286b});const _0x1641a0=('attribute:'+(_0x21286b+'|'+zt({'newValue':_0x3cf346})))['substring'](0x0,0x3c),_0x129dc0=this['_setSuggestionData']({'id':_0x14b684,'type':_0x1641a0,'data':_0x22fc2e,'createdAt':new Date(),'authorId':_0xa681d6,'attributes':_0x3cdc99});_0x3b70c2['push'](_0x129dc0),this['_addSuggestionMarker'](_0x1641a0,_0x14b684,_0xa681d6,_0x47b6d4);}return _0x3b70c2;}['enableDefaultAttributesIntegration'](_0x1d893d){this['enableCommand'](_0x1d893d,(_0xa019cd,..._0x124213)=>{this['recordAttributeChanges'](()=>{_0xa019cd(..._0x124213);});});}['registerBlockAttribute'](_0x32ef0c){this['_blockAttributeKeys']['add'](_0x32ef0c);}['registerInlineAttribute'](_0xbf5199){this['_inlineAttributeKeys']['add'](_0xbf5199);}['startTrackingSession'](_0x1db786){return this['_trackingSessionId']=void 0x0!==_0x1db786?_0x1db786:_0x172a90(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4f0734){return'attribute'==_0x4f0734['type']?re(_0x4f0734['subType']):null;}['_applyOperationsAsSuggestions'](_0x59e7f9){if(0x0==_0x59e7f9['length'])return;const _0x18cf71=this['editor'],_0x22059d=_0x18cf71['plugins']['get'](_0x182521);let _0xd057e7,_0x3d3a4e=!0x0;for(const _0x2242da in _0x59e7f9[0x0]){const _0x55c789=_0x59e7f9[0x0][_0x2242da];if((_0x55c789 instanceof _0x517fbf||_0x55c789 instanceof _0x5ed2f1)&&_0x55c789['root']['is']('documentFragment')){_0x3d3a4e=!0x1,_0xd057e7=_0x55c789['root'];break;}}_0x18cf71['model']['change'](_0x314d8b=>{const _0x4307dc=new Set();for(let _0x4a2246=0x0;_0x4a2246<_0x59e7f9['length'];_0x4a2246++){const _0x343902=_0x59e7f9[_0x4a2246];if(_0x343902['baseVersion']=_0x3d3a4e?_0x18cf71['model']['document']['version']:null,_0x343902['isDocumentOperation']=_0x3d3a4e,_0x22059d['isMarkedRemoveOperation'](_0x343902)){const _0x9c80f3=Zt(_0x343902['newRange'],_0x18cf71['model']);if(_0x3d3a4e)this['markDeletion'](_0x9c80f3);else{const _0x25c67f='suggestion:deletion:'+_0x172a90()+':$aiSuggestion';_0xd057e7['markers']['set'](_0x25c67f,_0x9c80f3);}}else switch(_0x343902['type']){case'rename':{const _0x933024=_0x343902['oldName'],_0xc72f09=_0x343902['newName'];if(_0x933024==_0xc72f09)break;_0x314d8b['batch']['addOperation'](_0x343902),_0x18cf71['model']['applyOperation'](_0x343902);const _0x3dee12='$elementName',_0x41c11b=_0x343902['position'],_0x1c419c=_0x18cf71['model']['createRange'](_0x41c11b,_0x18cf71['model']['createPositionAt'](_0x41c11b['nodeAfter'],'end'));if(_0x3d3a4e)this['markAttributeChange'](_0x1c419c,_0x3dee12,_0x933024,_0xc72f09,{'groupId':_0x172a90()});else{const _0x52a814='suggestion:attribute:'+_0x3dee12+':'+_0x172a90()+':$aiSuggestion';_0xd057e7['markers']['set'](_0x52a814,_0x1c419c);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x3bf8c3=_0x343902['oldValue'],_0x1bed38=_0x343902['newValue'];if(_0x3bf8c3==_0x1bed38)break;_0x314d8b['batch']['addOperation'](_0x343902),_0x18cf71['model']['applyOperation'](_0x343902);const _0x5cc660=_0x343902['key'];if(!this['_isRegisteredAttribute'](_0x5cc660))break;const _0x1542eb=Zt(_0x343902['range'],_0x18cf71['model']);if(_0x3d3a4e)this['markAttributeChange'](_0x1542eb,_0x5cc660,_0x3bf8c3,_0x1bed38,{'groupId':_0x172a90()});else{const _0x13a83e='suggestion:attribute:'+_0x5cc660+':'+_0x172a90()+':$aiSuggestion';_0xd057e7['markers']['set'](_0x13a83e,_0x1542eb);}break;}case'insert':{_0x314d8b['batch']['addOperation'](_0x343902),_0x18cf71['model']['applyOperation'](_0x343902);const _0x4104f9=_0x59e7f9[_0x4a2246+0x1]&&'move'==_0x59e7f9[_0x4a2246+0x1]['type'];if(!_0x3d3a4e&&_0x4104f9&&ae(_0xd057e7,_0x343902),_0x4104f9)break;const _0x336590=_0x343902['position'],_0x404381=_0x343902['howMany'],_0x5bad27=Zt(_0x18cf71['model']['createRange'](_0x336590,_0x336590['getShiftedBy'](_0x404381)),_0x18cf71['model']);if(_0x3d3a4e)this['markInsertion'](_0x5bad27);else{const _0x80d68a='suggestion:insertion:'+_0x172a90()+':$aiSuggestion';_0xd057e7['markers']['set'](_0x80d68a,_0x5bad27);}break;}case'split':{_0x314d8b['batch']['addOperation'](_0x343902),_0x18cf71['model']['applyOperation'](_0x343902);const _0x15760e=_0x343902['splitPosition'],_0x59fd3e=_0x343902['moveTargetPosition'],_0x25352e=_0x18cf71['model']['createRange'](_0x15760e,_0x59fd3e);if(_0x3d3a4e)this['markInsertion'](_0x18cf71['model']['createRange'](_0x15760e,_0x59fd3e));else{const _0x36ed26='suggestion:insertion:'+_0x172a90()+':$aiSuggestion';_0xd057e7['markers']['set'](_0x36ed26,_0x25352e);}break;}case'move':if(_0x314d8b['batch']['addOperation'](_0x343902),_0x18cf71['model']['applyOperation'](_0x343902),!_0x3d3a4e&&_0x59e7f9[_0x4a2246-0x1]&&'insert'==_0x59e7f9[_0x4a2246-0x1]['type']&&ae(_0xd057e7,_0x343902),!_0x3d3a4e){const _0x5779c3=_0x343902['getMovedRangeStart'](),_0x36f81f=_0x343902['howMany'];for(let _0xa9a02f=0x0;_0xa9a02f<_0x36f81f;_0xa9a02f++){const _0x4f6233=_0x5779c3['getShiftedBy'](_0xa9a02f)['nodeAfter'];_0x4307dc['add'](_0x4f6233);}}break;case'remove':if(_0x3d3a4e)_0x314d8b['batch']['addOperation'](_0x343902),_0x18cf71['model']['applyOperation'](_0x343902);else{const _0x40790a=_0x343902['sourcePosition'],_0xcf36b7=_0x343902['howMany'],_0x242067=new _0x53237a(_0x40790a,_0xcf36b7);_0x314d8b['batch']['addOperation'](_0x242067),_0x18cf71['model']['applyOperation'](_0x242067);}}}for(const _0x3573bd of _0x4307dc){const _0xad3741=_0x18cf71['model']['createRangeOn'](_0x3573bd),_0x229a1f='suggestion:formatBlock:$fakeWrap:'+_0x172a90()+':$aiSuggestion';_0xd057e7['markers']['set'](_0x229a1f,Zt(_0xad3741,_0x18cf71['model']));}});}['_setSuggestionRange'](_0x474826,_0xf5755b){const _0x3cd481=_0x474826['getFirstMarker']();this['_model']['change'](_0x21637d=>{_0x21637d['updateMarker'](_0x3cd481,{'range':_0xf5755b});});}['_addThreadToSuggestion'](_0x537da4){const _0x39b390=_0x537da4['id'],_0x26e76f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x39b390)||this['_commentsRepository']['addCommentThread']({'channelId':_0x26e76f,'threadId':_0x39b390,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x268e83=this['_commentsRepository']['getCommentThread'](_0x39b390);_0x268e83['unbind']('isRemovable'),_0x268e83['isRemovable']=!0x1,_0x537da4['commentThread']=_0x268e83;}['_checkSuggestionCorrectness'](_0x12fd5b,_0x379a93,_0x19e221,_0x273bd9){if(_0x12fd5b['type']!=_0x379a93||_0x12fd5b['subType']!=_0x19e221||_0x12fd5b['creator']['id']!=_0x273bd9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1ac6d4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1617a3,_0x5de16f){const _0x9125c3=_0x1617a3['getFirstRange']();if(_0x5de16f['isEqual'](_0x9125c3))_0x1617a3['removeMarkers']();else{if(_0x9125c3['containsRange'](_0x5de16f)){const _0x17079d=this['_model']['createPositionAt'](_0x5de16f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1617a3,this['_model']['createRange'](_0x9125c3['start'],_0x17079d));const _0x527a8b=_0x172a90(),_0x22aefa=_0x1617a3['creator']['id'],_0x402f0d=_0x1617a3['type']+':'+_0x1617a3['subType'];this['_setSuggestionData']({'id':_0x527a8b,'type':_0x402f0d,'createdAt':new Date(),'authorId':_0x22aefa,'data':_0x1617a3['data'],'attributes':_0x1617a3['attributes']});const _0x3d35b8=this['_model']['createPositionAt'](_0x5de16f['end']['parent'],'after'),_0x6242cc=this['_model']['createRange'](_0x3d35b8,_0x9125c3['end']);this['_addSuggestionMarker'](_0x402f0d,_0x527a8b,_0x22aefa,_0x6242cc);}else{if(_0x9125c3['containsPosition'](_0x5de16f['start'])){const _0x3faeae=this['_model']['createPositionAt'](_0x5de16f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1617a3,this['_model']['createRange'](_0x9125c3['start'],_0x3faeae));}else{const _0x56357d=this['_model']['createPositionAt'](_0x5de16f['end']['parent'],'after');this['_setSuggestionRange'](_0x1617a3,this['_model']['createRange'](_0x56357d,_0x9125c3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x383ca2){for(const {suggestion:_0x59a69c,meta:_0x45ff90}of this['_findSuggestions'](_0x383ca2,'insertion')){if(!_0x45ff90['isOwn'])continue;const _0x3e63f3=_0x59a69c['getRanges']();for(const _0x699931 of _0x3e63f3)if(!_0x383ca2['getDifference'](_0x699931)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x27dd4a){return this['editor']['plugins']['get']('Users')['getUser'](_0x27dd4a);}['_getExternalAuthor'](_0x2f1847){const _0xab1d1=this['editor']['plugins']['get']('Users'),_0x4bfd72=_0x846a2f('external:'+_0x2f1847),_0x4ff30e=_0xab1d1['getUser'](_0x4bfd72);return _0x4ff30e||_0xab1d1['addUser']({'id':_0x4bfd72,'name':_0x2f1847});}['_createSuggestion'](_0x406f9d,_0x4282c4,_0x4b31a1,_0x1c0028,_0x510b97,_0x1ad621){const _0x1de098=this['_getAuthorFromId'](_0x1c0028);if(!_0x1de098)throw new _0x1ac6d4('track-changes-user-not-found',this,{'authorId':_0x1c0028,'suggestionId':_0x4b31a1});const _0x16c7d5=this['_suggestionFactory']['buildSuggestion'](_0x406f9d,_0x4282c4,_0x4b31a1,_0x1de098,_0x510b97,_0x3756e1=>{this['_updateSuggestionData'](_0x4b31a1,{'attributes':_0x3756e1});const _0x2fbea4=this['getSuggestion'](_0x4b31a1);this['_joinWithAdjacentSuggestions'](new Set([_0x2fbea4])),this['_refreshSuggestionsChain'](new Set([_0x2fbea4]));},_0x1ad621);return this['listenTo'](_0x16c7d5,'accept',()=>{this['_updateSuggestionData'](_0x4b31a1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x16c7d5,'discard',()=>{this['_updateSuggestionData'](_0x4b31a1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4b31a1,_0x16c7d5),this['_suggestionState']['set'](_0x16c7d5,'notReady'),_0x16c7d5;}['_splitMarkerName'](_0x3bac25){const _0x3842ea=_0x3bac25['split'](':');return{'group':_0x3842ea[0x0],'type':_0x3842ea[0x1],'subType':_0x3842ea['length']>=0x5?_0x3842ea[0x2]:null,'id':_0x3842ea['length']<0x5?_0x3842ea[0x2]:_0x3842ea[0x3],'authorId':_0x3842ea['length']<0x5?_0x3842ea[0x3]:_0x3842ea[0x4],'markerCount':0x6==_0x3842ea['length']?_0x3842ea[0x5]:null};}['_breakSuggestionMarker'](_0x2acc19,_0x3275c8,_0x2df2c1){const _0x584a19=_0x2acc19['getFirstRange'](),_0x363042=_0x584a19['start'],_0xd6603d=_0x584a19['end'];this['_setSuggestionRange'](_0x2acc19,this['_model']['createRange'](_0x363042,_0x3275c8));const _0x1eda95=_0x172a90(),_0x291139=_0x2acc19['creator']['id'],_0xc9a108=_0x2acc19['type']+(_0x2acc19['subType']?':'+_0x2acc19['subType']:'');this['_setSuggestionData']({'id':_0x1eda95,'type':_0xc9a108,'createdAt':new Date(),'authorId':_0x291139,'originalSuggestionId':_0x2acc19['_originalSuggestionId']||_0x2acc19['id'],'attributes':_0x2acc19['attributes'],'data':_0x2acc19['data']});const _0x28c969=this['_getAttributeKey'](_0x2acc19);('formatBlock'==_0x2acc19['type']||_0x28c969&&this['_isBlockAttribute'](_0x28c969))&&(_0x2df2c1=this['_model']['createPositionBefore'](_0x2df2c1['parent'])),this['_addSuggestionMarker'](_0xc9a108,_0x1eda95,_0x291139,this['_model']['createRange'](_0x2df2c1,_0xd6603d));}['_findSuggestions'](_0x3e82d0,_0x4f123e=null){const _0x3b0fbf=[],_0x249320=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3e82d0)||(_0x3e82d0=[_0x3e82d0]);for(const _0x2bf828 of this['getSuggestions']()){if(!_0x2bf828['isInContent'])continue;if(_0x4f123e&&_0x2bf828['type']!=_0x4f123e)continue;let _0x26c6fa=!0x1;for(const _0x4b1975 of _0x2bf828['getRanges']()){for(const _0x551a0e of _0x3e82d0){const _0x42130f=_0x551a0e['start']['isEqual'](_0x4b1975['end'])||_0x551a0e['end']['isEqual'](_0x4b1975['start']);if(_0x42130f||_0x551a0e['getIntersection'](_0x4b1975)){const _0x50c7ed=_0x551a0e['containsRange'](_0x4b1975)&&qt(this['_model']['schema'],_0x4b1975['start'],_0x551a0e),_0x3d1075=_0x4b1975['containsRange'](_0x551a0e)&&qt(this['_model']['schema'],_0x551a0e['start'],_0x4b1975);_0x3b0fbf['push']({'suggestion':_0x2bf828,'meta':{'isOwn':_0x249320==_0x2bf828['author'],'isNextTo':_0x42130f,'isInsideObject':_0x50c7ed,'containsRangeInObject':_0x3d1075}}),_0x26c6fa=!0x0;break;}}if(_0x26c6fa)break;}}return _0x3b0fbf;}['_addSuggestionMarker'](_0x5cd7c0,_0x3e2b8c,_0x2944e8,_0x2ad83f,_0x4ab425){this['_model']['change'](_0x3bb6a6=>{let _0x42acad='suggestion:'+_0x5cd7c0+':'+_0x3e2b8c+':'+_0x2944e8;_0x4ab425&&(_0x42acad=_0x42acad+':'+_0x4ab425),_0x3bb6a6['addMarker'](_0x42acad,{'range':_0x2ad83f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2a0fd7){const _0x506099=_0x2a0fd7['previous'],_0x48a971=_0x2a0fd7['next'];_0x2a0fd7['previous']=null,_0x2a0fd7['next']=null,null!=_0x506099&&_0x506099['next']==_0x2a0fd7&&(_0x506099['next']=_0x48a971),null!=_0x48a971&&_0x48a971['previous']==_0x2a0fd7&&(_0x48a971['previous']=_0x506099),'ready'==this['_suggestionState']['get'](_0x2a0fd7)&&(this['_suggestionState']['set'](_0x2a0fd7,'removed'),this['fire']('suggestionUnloaded',_0x2a0fd7,_0x506099,_0x48a971));}['_setSuggestionData'](_0x3ec742){const _0x285b5f=_0x3ec742['id'],_0x4bd909=this['addSuggestionData'](_0x3ec742);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x569574=this['editor']['plugins']['get']('PendingActions'),_0x46501f=_0x4bd909['hasComments'],_0x1adb0f=_0x4bd909['subType']?_0x4bd909['type']+':'+_0x4bd909['subType']:_0x4bd909['type'],_0x2ba390=this['editor']['locale'],_0xe2ab93=_0x569574['add'](o(_0x2ba390,'PENDING_ACTION_SUGGESTION')),_0x10599a={'id':_0x285b5f,'type':_0x1adb0f,'hasComments':_0x46501f,'data':_0x3ec742['data']||null,'originalSuggestionId':_0x3ec742['originalSuggestionId']||null,'attributes':_0x4bd909['attributes']};this['_adapter']['addSuggestion'](_0x10599a)['then'](_0x26f5a0=>{_0x4bd909['_saved']=!0x0,_0x569574['remove'](_0xe2ab93),_0x26f5a0&&_0x26f5a0['createdAt']&&(this['_suggestions']['get'](_0x285b5f)['createdAt']=_0x26f5a0['createdAt']);})['catch'](_0x2cfa97=>{throw _0x153be2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4bd909['discard']();}),_0x4bd909['stopListening'](),this['_suggestions']['delete'](_0x4bd909['id']),this['_suggestionState']['delete'](_0x4bd909),_0x2cfa97;});}return _0x4bd909;}['_isBlockAttribute'](_0x51f960){return this['_blockAttributeKeys']['has'](_0x51f960);}['_isInlineAttribute'](_0x140fd3){return this['_inlineAttributeKeys']['has'](_0x140fd3);}['_updateSuggestionData'](_0x13c7fd,_0x421b04){const _0x333de6=this['editor']['plugins']['get']('PendingActions'),_0x2581cf=this['getSuggestion'](_0x13c7fd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2581cf['_saved']){const _0x49f4c3=_0x333de6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x13c7fd,_0x421b04)['then'](()=>{_0x333de6['remove'](_0x49f4c3);});}else _0x2581cf['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x13c7fd,_0x421b04);});}}['_getSuggestionData'](_0x76ae36){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1ac6d4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x76ae36);}['_handleNewSuggestionMarker'](_0x50ac85){const {id:_0x3454a1,type:_0x5431d3,subType:_0x172360,authorId:_0x30afcb}=this['_splitMarkerName'](_0x50ac85),_0x2c8c4c=this['_suggestions']['get'](_0x3454a1)||this['_createSuggestion'](_0x5431d3,_0x172360,_0x3454a1,_0x30afcb,{});switch(this['_checkSuggestionCorrectness'](_0x2c8c4c,_0x5431d3,_0x172360,_0x30afcb),this['_suggestionState']['get'](_0x2c8c4c)){case'notReady':this['_getSuggestionData'](_0x3454a1)['then'](_0x22aa1a=>{let _0x16b728=Promise['resolve']();_0x22aa1a['hasComments']&&(_0x16b728=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3454a1})),_0x16b728['then'](()=>{this['addSuggestionData'](_0x22aa1a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2c8c4c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3454a1,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2c8c4c,'ready'),this['fire']('suggestionLoaded',_0x2c8c4c);break;case'ready':this['fire']('suggestionChanged',_0x2c8c4c);}return _0x2c8c4c['addMarkerName'](_0x50ac85),_0x2c8c4c;}['_refreshSuggestionsChain'](_0x4ad1bc){const _0x14d054=Array['from'](_0x4ad1bc),_0x5edfac=_0x14d054['filter'](_0x3eaf73=>'attribute'==_0x3eaf73['type']);this['_refreshAttributeSuggestionsChain'](_0x5edfac);const _0x5f4375=_0x14d054['filter'](_0x21f67a=>!_0x21f67a['isMultiRange']&&'attribute'!=_0x21f67a['type']),_0x454dbf=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x426af=>!_0x426af['isMultiRange']&&'attribute'!=_0x426af['type']),_0x1eeb9b=_0x454dbf['filter'](_0xa4c44d=>!_0x4ad1bc['has'](_0xa4c44d)),_0x49d4fa=new Map(_0x454dbf['map'](_0x4105c5=>[_0x4105c5,this['_suggestionFactory']['getSuggestionCallback'](_0x4105c5['type'],_0x4105c5['subType'],'chain')])),_0x525b96=new Map(_0x454dbf['map'](_0x133982=>[_0x133982,_0x133982['getFirstRange']()])),_0x2990ae=new Set(),_0x316807=new Set();for(let _0x2f3053=0x0;_0x2f3053<_0x5f4375['length'];_0x2f3053++)_0x2cb4cb(_0x5f4375[_0x2f3053],_0x5f4375,_0x2f3053+0x1);for(let _0x1482bd=0x0;_0x1482bd<_0x5f4375['length'];_0x1482bd++)_0x2cb4cb(_0x5f4375[_0x1482bd],_0x1eeb9b,0x0);const _0x2a1fb1=new Set();for(let _0x44c284=0x0;_0x44c284<_0x5f4375['length'];_0x44c284++){const _0x4e42a1=_0x5f4375[_0x44c284];!_0x316807['has'](_0x4e42a1)&&_0x4e42a1['previous']&&(_0x2a1fb1['add'](_0x4e42a1['previous']),_0x4e42a1['previous']['next']===_0x4e42a1&&(_0x4e42a1['previous']['next']=null),_0x4e42a1['previous']=null),!_0x2990ae['has'](_0x4e42a1)&&_0x4e42a1['next']&&(_0x2a1fb1['add'](_0x4e42a1['next']),_0x4e42a1['next']['previous']===_0x4e42a1&&(_0x4e42a1['next']['previous']=null),_0x4e42a1['next']=null);}function _0x2cb4cb(_0x1146c4,_0x39df83,_0x53a695){for(let _0x36c354=_0x53a695;_0x36c354<_0x39df83['length'];_0x36c354++){const _0x5ef95a=_0x118791(_0x1146c4,_0x39df83[_0x36c354]);_0x5ef95a&&(_0x5ef95a[0x0]['next']=_0x5ef95a[0x1],_0x5ef95a[0x1]['previous']=_0x5ef95a[0x0],_0x2990ae['add'](_0x5ef95a[0x0]),_0x316807['add'](_0x5ef95a[0x1]));}}function _0x118791(_0x25408c,_0x2973a8){if(_0x25408c['author']['id']!==_0x2973a8['author']['id'])return null;const _0x339748=_0x49d4fa['get'](_0x25408c)(_0x25408c,_0x2973a8,_0x525b96['get'](_0x25408c),_0x525b96['get'](_0x2973a8));if(!_0x339748)return null;return _0x49d4fa['get'](_0x2973a8)(_0x25408c,_0x2973a8,_0x525b96['get'](_0x25408c),_0x525b96['get'](_0x2973a8))?_0x339748[0x1]['commentThread']&&_0x339748[0x1]['commentThread']['length']?null:_0x339748:null;}_0x2a1fb1['size']&&this['_refreshSuggestionsChain'](_0x2a1fb1);}['_refreshAttributeSuggestionsChain'](_0x150ac8){if(0x0==_0x150ac8['length'])return;const _0x3d4834=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x267a5c=>'attribute'==_0x267a5c['type']&&_0x267a5c['_isDataLoaded']),_0x49c4b8=[],_0x267745=new Map();for(const _0x103fd2 of _0x3d4834){const _0x5ac78a=_0x846a2f(_0x103fd2['attributes']);_0x267745['has'](_0x5ac78a)||(_0x267745['set'](_0x5ac78a,_0x49c4b8['length']),_0x49c4b8['push']([]));const _0x21cffe=_0x267745['get'](_0x5ac78a);_0x49c4b8[_0x21cffe]['push'](_0x103fd2);}!(function(){_0x49c4b8['sort']((_0x3557e2,_0x26c30b)=>{const _0x4e21ab=_0x3557e2[0x0]['createdAt'],_0x1038bc=_0x26c30b[0x0]['createdAt'];return _0x4e21ab==_0x1038bc?_0x3557e2[0x0]['attributes']['groupId']<_0x26c30b[0x0]['attributes']['groupId']?-0x1:0x1:_0x4e21ab<_0x1038bc?-0x1:0x1;});for(const _0x3de025 of _0x49c4b8)_0x3de025['sort']((_0x288aaa,_0x92274f)=>_0x288aaa['id']<_0x92274f['id']?-0x1:0x1);}());for(let _0x2def8c=0x0;_0x2def8c<_0x49c4b8['length'];_0x2def8c++){if(0x0==_0x49c4b8[_0x2def8c]['length'])continue;const _0x3ed2be=[];for(let _0x5b3ca1=_0x2def8c+0x1;_0x5b3ca1<_0x49c4b8['length'];_0x5b3ca1++)0x0!=_0x49c4b8[_0x5b3ca1]['length']&&_0x26d393(_0x49c4b8[_0x2def8c],_0x49c4b8[_0x5b3ca1])&&_0x3ed2be['push'](_0x5b3ca1);for(const _0x3823f1 of _0x3ed2be)_0x49c4b8[_0x2def8c]=_0x49c4b8[_0x2def8c]['concat'](_0x49c4b8[_0x3823f1]),_0x49c4b8[_0x3823f1]=[];}for(const _0x4a52c6 of _0x49c4b8)for(let _0x10ccce=0x0;_0x10ccce<_0x4a52c6['length'];_0x10ccce++){const _0x55f454=_0x4a52c6[_0x10ccce+0x1]||null;_0x4a52c6[_0x10ccce]['next']!==_0x55f454&&(_0x4a52c6[_0x10ccce]['next']=_0x55f454);}for(const _0x16859b of _0x49c4b8)for(let _0x2b6c99=0x0;_0x2b6c99<_0x16859b['length'];_0x2b6c99++){const _0x1e5c79=_0x16859b[_0x2b6c99-0x1]||null;_0x16859b[_0x2b6c99]['previous']!==_0x1e5c79&&(_0x16859b[_0x2b6c99]['previous']=_0x1e5c79);}function _0x26d393(_0x4a7f7f,_0x150d9d){if(_0x4a7f7f[0x0]['attributes']['groupId']!==_0x150d9d[0x0]['attributes']['groupId']&&_0x4a7f7f[0x0]['author']!==_0x150d9d[0x0]['author'])return!0x1;if(!function(_0x21d6a6,_0x5aa834){if(!_0x21d6a6['hasComments']&&!_0x5aa834['hasComments'])return!0x0;if(_0x21d6a6['hasComments']&&_0x5aa834['hasComments'])return!0x1;if(_0x21d6a6['hasComments']&&_0x5aa834['createdAt']<_0x21d6a6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5aa834['hasComments']&&_0x21d6a6['createdAt']<_0x5aa834['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4a7f7f[0x0],_0x150d9d[0x0]))return!0x1;const _0x473970=Jt(_0x4a7f7f[0x0]['attributes'],['groupId','trackingSessionId']),_0x4d2b63=Jt(_0x150d9d[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x18158c(_0x473970,_0x4d2b63))return!0x1;if(_0x4a7f7f[0x0]['attributes']['groupId']==_0x150d9d[0x0]['attributes']['groupId'])return!0x0;if(_0x4a7f7f[0x0]['attributes']['trackingSessionId']!==_0x150d9d[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4a7f7f['every'](_0x5c337f=>_0x150d9d['some'](_0x44a854=>_0x5c337f['getFirstRange']()['isEqual'](_0x44a854['getFirstRange']())))&&_0x150d9d['every'](_0x14d11c=>_0x4a7f7f['some'](_0x1fa080=>_0x14d11c['getFirstRange']()['isEqual'](_0x1fa080['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x29e4d4){const _0x5f3ae9=Array['from'](_0x29e4d4),_0x325729=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4fcba7=_0x325729['filter'](_0x34f5ea=>!_0x29e4d4['has'](_0x34f5ea)),_0x3d6d27=new Map(_0x5f3ae9['map'](_0x2d9786=>[_0x2d9786,this['_suggestionFactory']['getSuggestionCallback'](_0x2d9786['type'],_0x2d9786['subType'],'join')])),_0x1176f5=new Map(_0x325729['map'](_0x35825e=>[_0x35825e,_0x35825e['getRanges']()]));for(let _0x42cc0f=0x0;_0x42cc0f<_0x5f3ae9['length'];_0x42cc0f++){if(_0x89fe40(this,_0x5f3ae9[_0x42cc0f],_0x5f3ae9,_0x42cc0f+0x1))return!0x0;}for(let _0x3363bd=0x0;_0x3363bd<_0x5f3ae9['length'];_0x3363bd++){if(_0x89fe40(this,_0x5f3ae9[_0x3363bd],_0x4fcba7,0x0))return!0x0;}return!0x1;function _0x89fe40(_0xe561b7,_0x50eac9,_0x194298,_0x5f1e49){for(let _0x473ef5=_0x5f1e49;_0x473ef5<_0x194298['length'];_0x473ef5++){const _0x36d8f6=_0x194298[_0x473ef5];if(_0x36d8f6['type']!==_0x50eac9['type']||_0x36d8f6['author']['id']!==_0x50eac9['author']['id']||_0x36d8f6['subType']!==_0x50eac9['subType'])continue;if(!ne(_0x50eac9,_0x36d8f6))continue;if('attribute'==_0x50eac9['type']&&_0x50eac9['data']['oldValue']!=_0x36d8f6['data']['oldValue'])continue;if('attribute'==_0x50eac9['type']&&_0xe561b7['_isBlockAttribute'](_0x50eac9['data']['key']))continue;if('formatBlock'==_0x50eac9['type']){const _0x1c0827=_0xe561b7['editor']['model'],_0x535cab=_0x50eac9['getContainedElement']();if(_0x535cab&&(_0x1c0827['schema']['isObject'](_0x535cab)||_0x1c0827['schema']['isLimit'](_0x535cab)))continue;}const _0x34bb82=_0x3d6d27['get'](_0x50eac9),_0xf87fa7=_0x1176f5['get'](_0x50eac9),_0x42a9ae=_0x1176f5['get'](_0x36d8f6),_0x50d33f=_0x50eac9['commentThread']&&_0x50eac9['commentThread']['length'],_0x209131=_0x36d8f6['commentThread']&&_0x36d8f6['commentThread']['length'];if(!_0x50d33f&&_0x34bb82(_0x42a9ae,_0xf87fa7))return _0xe561b7['_joinSuggestions'](_0x36d8f6,_0x50eac9),_0x1176f5['delete'](_0x50eac9),!0x0;if(!_0x209131&&_0x34bb82(_0xf87fa7,_0x42a9ae))return _0xe561b7['_joinSuggestions'](_0x50eac9,_0x36d8f6),_0x1176f5['delete'](_0x36d8f6),!0x0;}return!0x1;}}['_joinSuggestions'](_0x24684e,_0x365225){if(_0x24684e['isMultiRange']){for(const _0x46610d of _0x365225['getRanges']())_0x24684e['addRange'](_0x46610d);}else{const _0x2e452a=_0x365225['getFirstRange']()['end'];this['_setSuggestionRange'](_0x24684e,this['_model']['createRange'](_0x24684e['getFirstRange']()['start'],_0x2e452a));}_0x365225['removeMarkers']();}['_getMarkerAnnouncementText'](_0xe0d62d,_0x2e35d5,_0x4fb483){const _0x42221f=_0xe0d62d['startsWith']('format')||_0xe0d62d['startsWith']('attribute')?'FORMATTING':_0xe0d62d['toUpperCase']();return o(this['editor']['locale'],_0x2e35d5+'_'+_0x42221f+'_SUGGESTION_ANNOUNCEMENT',_0x4fb483);}['_initAriaMarkerChangeAnnouncements'](){const _0x5983b5=this['editor'];if(!_0x5983b5['ui'])return;const {ariaLiveAnnouncer:_0x573a59}=_0x5983b5['ui'];_0x122be3(this['_model'],({left:_0x2f0318,entered:_0x89b5d5})=>{for(const _0x6e8e6e of _0x2f0318){const {group:_0x2a6c86,type:_0x24ff44}=this['_splitMarkerName'](_0x6e8e6e['name']);if('suggestion'===_0x2a6c86){_0x573a59['announce'](this['_getMarkerAnnouncementText'](_0x24ff44,'LEAVE'));break;}}for(const _0x257c92 of _0x89b5d5){const {group:_0x158faf,type:_0x1c11f8}=this['_splitMarkerName'](_0x257c92['name']);if('suggestion'===_0x158faf){_0x573a59['announce'](this['_getMarkerAnnouncementText'](_0x1c11f8,'ENTER',_0x34cbc7(_0xa18ac9)));break;}}});}['_processAttributeChanges'](_0x45ba34){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4021aa=this['editor'],_0x4e55b1=_0x4021aa['model']['document']['differ']['getChanges']();if(0x0==_0x4e55b1['length'])return!0x1;const _0x520e8d=[],_0x541b1d=_0x4e55b1['filter'](_0x3d6a0f=>'attribute'==_0x3d6a0f['type']),_0x1a48f0=_0x4e55b1['filter'](_0x48e796=>'insert'==_0x48e796['type']&&'$text'!=_0x48e796['name']),_0x477579=_0x4e55b1['filter'](_0x3407d0=>'remove'==_0x3407d0['type']&&'$text'!=_0x3407d0['name']);for(const _0x5d21ac of _0x541b1d)_0x520e8d['push']({'key':_0x5d21ac['attributeKey'],'newValue':_0x5d21ac['attributeNewValue'],'oldValue':_0x5d21ac['attributeOldValue'],'range':te(_0x5d21ac['range'],_0x4021aa['model'])});for(const _0x16062f of _0x1a48f0){const _0xf38af2=_0x477579['find'](_0x492794=>_0x492794['position']['isEqual'](_0x16062f['position']));_0xf38af2&&_0x520e8d['push']({'key':m,'newValue':_0x16062f['name'],'oldValue':_0xf38af2['name'],'range':_0x4021aa['model']['createRangeOn'](_0x16062f['position']['nodeAfter'])});}return 0x0!=_0x520e8d['length']&&this['_reduceExistingSuggestions'](_0x45ba34,_0x520e8d);}['_processAttributeSuggestions'](_0x1f013f){let _0x11da4a=!0x1;const _0x1483ba=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3826fc=>_0x3826fc['data']['newRange']&&_0x3826fc['name']['startsWith']('suggestion:attribute:'));for(const _0x261904 of _0x1483ba){const {subType:_0x4ccfd5,id:_0x2dfb9f}=this['_splitMarkerName'](_0x261904['name']),_0x1a2c6e=_0x4ccfd5['split']('|')[0x0];for(const _0xb8a430 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xb8a430['id']!=_0x2dfb9f&&'attribute'==_0xb8a430['type']&&_0xb8a430['data']&&_0xb8a430['data']['key']==_0x1a2c6e&&_0xb8a430['getFirstRange']()['isIntersecting'](_0x261904['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xb8a430,_0x261904['data']['newRange'],_0x1f013f),_0x11da4a=!0x0);}return _0x11da4a;}['recordAttributeChanges'](_0x52b3e5){this['_recordAttributeSuggestions']=!0x0,_0x52b3e5();}['_isRegisteredAttribute'](_0xbc5b7){const _0x453fd3=this['_isBlockAttribute'](_0xbc5b7),_0x15e59a=this['_isInlineAttribute'](_0xbc5b7);return _0x453fd3||_0x15e59a;}['_reduceExistingSuggestions'](_0x3b6c4b,_0x34edea){if(0x0==_0x34edea['length'])return!0x1;let _0x226a61=!0x1;for(const _0x5f1e6e of _0x34edea){const _0x52f6d6=this['_findSuggestions'](_0x5f1e6e['range'],'attribute')['filter'](_0x32da72=>!_0x32da72['meta']['isNextTo'])['map'](_0x512932=>_0x512932['suggestion']),_0x116d4d=_0x846a2f({'newValue':_0x5f1e6e['newValue']});_0x52f6d6['filter'](_0x341de2=>{const [_0x3a313a,_0xc921ba]=_0x341de2['subType']['split']('|');return _0x3a313a==_0x5f1e6e['key']&&_0xc921ba!=_0x116d4d;})['forEach'](_0x1f551f=>{this['_reduceSuggestionAttributeRange'](_0x1f551f,_0x5f1e6e['range'],_0x3b6c4b),_0x226a61=!0x0;});}return _0x226a61;}['_reduceSuggestionAttributeRange'](_0x52c43d,_0x1d0327,_0x1c7def){const _0x5bf3af=_0x52c43d['getFirstRange']()['getDifference'](_0x1d0327);0x0!==_0x5bf3af['length']?0x1!==_0x5bf3af['length']?this['_breakSuggestionMarker'](_0x52c43d,_0x1d0327['start'],_0x1d0327['end']):this['_setSuggestionRange'](_0x52c43d,_0x5bf3af[0x0]):_0x1c7def['removeMarker'](_0x52c43d['getFirstMarker']());}}class Kt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x490a8c){this['_editor']=_0x490a8c,this['_model']=_0x490a8c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x24008e,_0x5ea051,_0x15b1ac,_0x13abba,_0x41b359,_0x478bc8,_0x1a7fce){return new R(this['_model'],{'type':_0x24008e,'subType':_0x5ea051,'id':_0x15b1ac,'originalSuggestionId':_0x1a7fce,'author':_0x13abba,'creator':_0x13abba,'attributes':_0x41b359,'onAttributesChange':_0x478bc8,'onAccept':(..._0x56973d)=>this['getSuggestionCallback'](_0x24008e,_0x5ea051,'accept')(..._0x56973d),'onDiscard':(..._0xabfee6)=>this['getSuggestionCallback'](_0x24008e,_0x5ea051,'discard')(..._0xabfee6)});}['registerCustomCallback'](_0x27dfb9,_0x44925f,_0x256c66,_0x1cd064){const _0x12ac50=_0x27dfb9+':'+_0x44925f+':'+_0x256c66;this['_customCallbacks']['set'](_0x12ac50,_0x1cd064);}['getSuggestionCallback'](_0x4f20af,_0x4e76e1,_0x572f24){const _0x56dadc=_0x4f20af+':'+_0x4e76e1+':'+_0x572f24;return this['_customCallbacks']['get'](_0x56dadc)||this['_defaultCallbacks']['get'](_0x4f20af+':'+_0x572f24);}['_registerDefaultCallbacks'](){const _0x5e32dc=()=>!0x1,_0x5bceb5=_0x24a9eb=>{_0x24a9eb['sort']((_0x8ea7c4,_0x5023e7)=>_0x8ea7c4['start']['isBefore'](_0x5023e7['start'])?0x1:-0x1),this['_model']['change'](_0x4000c9=>{for(const _0x6f572e of _0x24a9eb){let _0x54bb75;_0x54bb75=_0x6f572e['end']['isAtEnd']&&_0x6f572e['end']['parent']==_0x6f572e['start']['nodeAfter']?_0x4000c9['createSelection'](_0x6f572e['start']['nodeAfter'],'on'):_0x4000c9['createSelection'](_0x6f572e),this['_model']['deleteContent'](_0x54bb75,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x25adc0=(_0x52a0d9,_0x16cf09)=>{_0x16cf09&&this['_model']['change'](_0xa96bea=>{const {commandName:_0x1b5f0b,commandParams:_0x5683cf=[]}=_0x16cf09,_0x412bac=_0x52a0d9['map'](_0x4af189=>(Ht(_0x4af189)&&(_0x4af189=this['_model']['createRange'](_0x4af189['end'])),_0x4af189))['filter'](_0x58a884=>'$graveyard'!==_0x58a884['root']['rootName']);if(_0x412bac['length']<0x1)return;const _0x3dbdf8=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2b05b2=>_0x360709['fromRange'](_0x2b05b2));_0xa96bea['setSelection'](_0x412bac);for(const _0xbc9912 of this['_editor']['commands']['commands']())_0xbc9912['refresh']();_0x5683cf['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1b5f0b,..._0x5683cf);const _0x570c82=_0x3dbdf8['filter'](_0x5e1850=>'$graveyard'!=_0x5e1850['root']['rootName']);_0x570c82['length']>0x0&&_0xa96bea['setSelection'](_0x570c82);for(const _0x18d768 of _0x3dbdf8)_0x18d768['detach']();});},_0x5039c0=(_0x5c8c6c,_0x2f8322)=>0x1==_0x5c8c6c['length']&&0x1==_0x2f8322['length']&&_0x5c8c6c[0x0]['end']['isEqual'](_0x2f8322[0x0]['start']),_0x1fc011=(_0x221b98,_0x3c0e36,_0x12048a,_0x4c747f)=>ie(_0x221b98,_0x3c0e36,_0x12048a,_0x4c747f)?[_0x221b98,_0x3c0e36]:ie(_0x3c0e36,_0x221b98,_0x4c747f,_0x12048a)?[_0x3c0e36,_0x221b98]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e32dc),this['_defaultCallbacks']['set']('insertion:discard',_0x5bceb5),this['_defaultCallbacks']['set']('insertion:join',_0x5039c0),this['_defaultCallbacks']['set']('insertion:chain',_0x1fc011),this['_defaultCallbacks']['set']('deletion:accept',_0x5bceb5),this['_defaultCallbacks']['set']('deletion:discard',_0x5e32dc),this['_defaultCallbacks']['set']('deletion:join',_0x5039c0),this['_defaultCallbacks']['set']('deletion:chain',_0x1fc011),this['_defaultCallbacks']['set']('formatInline:accept',_0x25adc0),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e32dc),this['_defaultCallbacks']['set']('formatInline:join',_0x5039c0),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e32dc),this['_defaultCallbacks']['set']('formatBlock:accept',_0x25adc0),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e32dc),this['_defaultCallbacks']['set']('formatBlock:join',_0x5039c0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e32dc),this['_defaultCallbacks']['set']('attribute:accept',_0x5e32dc),this['_defaultCallbacks']['set']('attribute:discard',(_0x281fa8,_0x1be07a)=>{if(!_0x1be07a)return;const _0x1a2a8e=this['_editor']['plugins']['get'](d);this['_model']['change'](_0xaeb30=>{if(_0x1be07a['key']==m)for(const _0x48ce4b of _0x281fa8){const _0x571fdd=_0x48ce4b['start']['nodeAfter'],_0x169c7c=_0x1be07a['oldValue'];_0xaeb30['rename'](_0x571fdd,_0x169c7c);}else{if(_0x1a2a8e['_isBlockAttribute'](_0x1be07a['key'])){for(const _0x17860d of _0x281fa8)void 0x0!==_0x1be07a['oldValue']?_0xaeb30['setAttribute'](_0x1be07a['key'],_0x1be07a['oldValue'],_0x17860d['start']['nodeAfter']):_0xaeb30['removeAttribute'](_0x1be07a['key'],_0x17860d['start']['nodeAfter']);}else{for(const _0x507483 of _0x281fa8)_0x1be07a['oldValue']?_0xaeb30['setAttribute'](_0x1be07a['key'],_0x1be07a['oldValue'],_0x507483):_0xaeb30['removeAttribute'](_0x1be07a['key'],_0x507483);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5039c0);}}function qt(_0x2ef399,_0x5f1551,_0x234594){for(const _0x326315 of _0x5f1551['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x326315['root']==_0x326315)return!0x1;if(!_0x234594['containsItem'](_0x326315))return!0x1;if(_0x2ef399['isObject'](_0x326315)||_0x2ef399['isLimit'](_0x326315))return!0x0;}return!0x1;}function Ht(_0x4c555f){return _0x4c555f['end']['parent']==_0x4c555f['start']['nodeAfter']&&_0x4c555f['end']['isAtStart'];}function Wt(_0x5020a6,_0x15097f,_0x3bc87b,_0x534261){const _0x3fb37b=_0x5653f7=>!_0x5653f7['item']['is']('$textProxy')&&!_0x534261['isObject'](_0x5653f7['item']),_0x1acee3=_0x5020a6['start']['getLastMatchingPosition'](_0x3fb37b),_0x499cc9=_0x5020a6['end']['getLastMatchingPosition'](_0x3fb37b,{'direction':'backward'});return(!_0x5020a6['start']['isEqual'](_0x1acee3)||!_0x5020a6['end']['isEqual'](_0x499cc9))&&(_0x1acee3['isBefore'](_0x499cc9)?_0x3bc87b['updateMarker'](_0x15097f,{'range':_0x3bc87b['createRange'](_0x1acee3,_0x499cc9)}):_0x3bc87b['removeMarker'](_0x15097f),!0x0);}function zt(_0x1e1e4d){return _0x846a2f(_0x1e1e4d);}function Qt(_0x1ba4cf){const _0x2dd958=_0x1ba4cf['start']['nodeAfter'];return _0x2dd958&&_0x2dd958['is']('element');}function Xt(_0x239e32){return Ht(_0x239e32)||function(_0xef7e9f){return _0xef7e9f['start']['parent']==_0xef7e9f['end']['nodeBefore']&&_0xef7e9f['start']['isAtEnd'];}(_0x239e32);}function Yt(_0x277b51,_0xca722){try{const _0x318d24=_0x277b51['getRange']();for(const _0x4e03a5 of _0xca722)if(_0x277b51!==_0x4e03a5&&_0x318d24&&_0x318d24['isIntersecting'](_0x4e03a5['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x3adb33,_0x55f108){const _0x3bc440=_0x3adb33['end']['nodeBefore'];if(_0x3bc440&&_0x3bc440['is']('element')&&_0x55f108['schema']['isBlock'](_0x3bc440)&&!_0x55f108['schema']['isObject'](_0x3bc440)){const _0x3d41f1=_0x55f108['createPositionAt'](_0x3bc440,'end');return _0x55f108['createRange'](_0x3adb33['start'],_0x3d41f1);}return _0x3adb33;}function te(_0x36df68,_0x14648a){return null==_0x36df68['end']['nodeBefore']&&_0x36df68['end']['parent']==_0x36df68['start']['nodeAfter']?ee(_0x36df68['start']['nodeAfter'],_0x14648a):_0x36df68;}function ee(_0x3ad5b3,_0x49179a){const _0x33ea24=_0x49179a['schema']['isObject'](_0x3ad5b3)||_0x49179a['schema']['isSelectable'](_0x3ad5b3);return _0x49179a['createRange'](_0x49179a['createPositionAt'](_0x3ad5b3,'before'),_0x33ea24?_0x49179a['createPositionAfter'](_0x3ad5b3):_0x49179a['createPositionAt'](_0x3ad5b3,'end'));}function ie(_0x2ca893,_0x575577,_0x424b01,_0x50a76b){return!!ne(_0x2ca893,_0x575577)&&_0x424b01['end']['isEqual'](_0x50a76b['start']);}function ne(_0x18ef20,_0x3d4ed1){if(!_0x18ef20['_isDataLoaded']||!_0x3d4ed1['_isDataLoaded'])return!0x1;const _0x3dc317=new Set(Object['keys'](_0x18ef20['attributes'])),_0x51abb8=new Set(Object['keys'](_0x3d4ed1['attributes']));if(_0x3dc317['delete']('groupId'),_0x51abb8['delete']('groupId'),0x0==_0x3dc317['size']&&0x0==_0x51abb8['size'])return!0x0;if(_0x3dc317['size']!=_0x51abb8['size'])return!0x1;const _0x47c5be={..._0x18ef20['attributes']},_0x4ce399={..._0x3d4ed1['attributes']};return delete _0x47c5be['groupId'],delete _0x4ce399['groupId'],JSON['stringify'](_0x47c5be)==JSON['stringify'](_0x4ce399);}function se(_0x4a3e8e,_0x1a48e6){const _0x2db632=oe(_0x4a3e8e['attributes']),_0x3d7493=oe(_0x1a48e6);if(!_0x4a3e8e['_isDataLoaded'])return!0x1;for(const _0x25cda5 of Object['keys'](_0x3d7493))if(!_0x18158c(_0x2db632[_0x25cda5],_0x3d7493[_0x25cda5]))return!0x1;return!0x0;}function oe(_0x37cad5){const _0xc54336=Object['assign']({},_0x37cad5);return delete _0xc54336['skipNestingCheck'],delete _0xc54336['tablePasteChainId'],_0xc54336;}function re(_0x1322ae){return _0x1322ae['split']('|')[0x0];}function ae(_0x1939d0,_0xfdb7e8){for(const [_0x7873c3,_0x482449]of _0x1939d0['markers']){const _0x43d853=_0x5ed2f1['_createFromRanges'](_0x482449['getTransformedByOperation'](_0xfdb7e8));_0x1939d0['markers']['set'](_0x7873c3,_0x43d853);}}class ve extends/* #__PURE__ -- @preserve */
26
+ _0x50e5df(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3687fd,_0x3d92cd,_0x189136,_0x28dd45){super(),this['model']=_0x3d92cd,this['view']=_0x189136,this['commentThreadController']=_0x28dd45,this['_editor']=_0x3687fd,this['_acceptCommand']=_0x3687fd['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3687fd['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3d2a1b,_0xcf5fe2)=>_0x3d2a1b||_0xcf5fe2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4e17d0=>_0x4e17d0&&this['_editor']['model']['canEditAt'](_0x3d92cd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x25f096=>_0x25f096&&this['_editor']['model']['canEditAt'](_0x3d92cd['getRanges']())),this['_pendingAction']=null,_0x189136['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x189136,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x189136,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x189136,'change:isDirty',()=>{_0x189136['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 _0x320d66=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x320d66);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x3c71d5{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1242a8,_0x980e99,_0x388e02,_0x312f1e){super(_0x1242a8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x8bf392(_0x1242a8,o(_0x1242a8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x980e99['authoredAt']),this['bind']('authoredAt')['to'](_0x980e99),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',_0x980e99,'authoredAt',this,'descriptionParts',(_0x4dc6e9,_0x2e9893,_0x25e4de)=>{const _0x576e7a=_0x25e4de['map'](_0x475cce=>ls(_0x475cce['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4dc6e9-0x1,_0x980e99['author']['name'],_0x2e9893?_0x312f1e['formatDateTime'](_0x2e9893):'',new DOMParser()['parseFromString'](_0x576e7a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x241955(),this['focusTracker']=new _0x428031(),this['keystrokes']=new _0x2d41ee(),this['focusCycler']=new _0x48b5c3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x164f3b=>_0x164f3b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x980e99,this['_localUser']=_0x388e02,this['_config']=_0x312f1e,_0x312f1e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x28ee0a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x447d71}=this['_config'];this['commentsListView']=new _0x447d71(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',_0x1ac30a=>_0x1ac30a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xc1e939,_0x29fd4b)=>_0xc1e939||!!_0x29fd4b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x135b75}=this['_config'],_0xb70f83=new _0x135b75(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x35efc3=_0xb70f83['commentInputView'];return _0xb70f83['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x35efc3,'value',(_0x5e8950,_0x367cae,_0x38c66d)=>!!_0x38c66d||_0x5e8950&&!_0x367cae),_0x35efc3['on']('submit',(_0x4633da,_0x29b210)=>{this['fire']('addComment',_0x29b210),_0x35efc3['editor']['setData']('');}),_0x35efc3['on']('cancel',()=>this['focus']()),_0x35efc3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xb70f83;}}class xe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x2b62b1,_0x896234,_0x2fabdb,_0x1499a1){super(_0x2b62b1,_0x896234,_0x2fabdb,_0x1499a1),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3c81db=>_0x3c81db&&_0x3c81db[0x0]?_0x3c81db[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1200da,_0x118a82)=>{let _0x3e1693='';for(const _0x28cc3a of _0x1200da)_0x3e1693+='<p>'+ls(_0x28cc3a['content'],_0x28cc3a['color'])+'</p>';return _0x118a82?_0x3e1693:_0x46624a(_0x3e1693,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1499a1['SuggestionView'](_0x2b62b1,_0x896234,{'formatDateTime':_0x1499a1['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 _0x5bea80=this['bindTemplate'],_0x2dc557=[this['suggestionView']];return this['commentsListView']&&_0x2dc557['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2dc557['push'](this['commentThreadInputView']),_0x2dc557['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5bea80['if']('isActive','ck-suggestion-wrapper--active'),_0x5bea80['to']('type',_0x42b840=>'ck-suggestion-'+_0x42b840),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':_0x5bea80['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2dc557};}['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 Ae extends _0x3c71d5{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3c0cf4,_0xd9c068,_0x30fe61){super(_0x3c0cf4),this['_model']=_0xd9c068,this['_config']=_0x30fe61,this['set']('description',''),this['bind']('authoredAt')['to'](_0xd9c068),this['acceptButton']=this['_createButton'](o(_0x3c0cf4,'Accept\x20suggestion'),_0x10c019,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3c0cf4,'Discard\x20suggestion'),_0x244396,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5bbe40(_0x3c0cf4,_0xd9c068['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x241955([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x428031(),this['keystrokes']=new _0x2d41ee(),this['focusCycler']=new _0x48b5c3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2cfacb=>_0x2cfacb['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x50597f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x50597f['innerHTML']=this['description'],this['on']('change:description',(_0x57d807,_0x1c95cf,_0x782c5b)=>{_0x50597f['innerHTML']=_0x782c5b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5c153e=this['bindTemplate'],_0x5eea52=[{'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':_0x5c153e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5c153e['to']('authoredAt',_0x4f23c2=>this['_config']['formatDateTime'](_0x4f23c2))}]}]},{'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']&&_0x5eea52['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':_0x5eea52}]};}['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'](_0x390c91,_0x595854,_0x66fd81,_0x541523,_0x5060c2){const _0x5a0459=new _0x5fafb9(this['locale']);return _0x5a0459['set']({'label':_0x390c91,'icon':_0x595854,'tooltip':!0x0,'tooltipPosition':_0x5060c2}),_0x5a0459['extendTemplate']({'attributes':{'class':_0x66fd81}}),_0x5a0459['on']('execute',()=>{this['fire'](_0x541523,this['_model']['id']);}),_0x5a0459;}['_setupKeyboardNavigation'](){const _0x50d8bf=this['element'];this['keystrokes']['listenTo'](_0x50d8bf);for(const _0x18d196 of this['focusables'])this['focusTracker']['add'](_0x18d196['element']),this['keystrokes']['listenTo'](_0x18d196['element']);this['keystrokes']['set']('enter',(_0x4d8344,_0x3cff70)=>{_0x50d8bf===_0x4d8344['target']&&(this['focusCycler']['focusFirst'](),_0x3cff70());}),this['keystrokes']['set']('esc',(_0x2c1bba,_0x1a5ee8)=>{_0x50d8bf!==_0x2c1bba['target']&&(this['focus'](),_0x1a5ee8());});}}class u extends _0x3f9a7e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x553a10,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x86dd2f){super(_0x86dd2f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x268b12=this['editor']['config'];_0x268b12['define']('trackChanges.SuggestionThreadView',xe),_0x268b12['define']('trackChanges.SuggestionView',Ae),_0x268b12['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x268b12['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x26c005,_0x28131e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3f4578,_0x5012b0]of this['_handleControllerBuffer']){const _0x2556bc=this['_suggestionToController']['has'](_0x3f4578);_0x2556bc||_0x5012b0?_0x2556bc&&_0x5012b0&&this['_destroyController'](_0x3f4578):this['_initializeController'](_0x3f4578);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x26c005,_0x28131e);}['init'](){const _0x514d91=this['editor'],_0x40bde3=_0x514d91['plugins']['get']('TrackChangesEditing'),_0x398562=_0x514d91['plugins']['get']('Annotations'),_0x3cf316=_0x514d91['plugins']['get']('EditorAnnotations'),_0x29abf0=_0x514d91['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3cf316['addSourceCollector'](()=>{const _0x4ce3c2=[];for(const [_0x542317,_0x1770fd]of Array['from'](this['_suggestionToController'])){const _0x45d249=_0x542317['getAllAdjacentSuggestions'](),_0x852cd3=[];for(const _0x482d85 of _0x45d249){if(!_0x482d85['isInContent'])continue;if(_0x482d85['isMultiRange']){_0x852cd3['push'](..._0x482d85['getRanges']());continue;}const _0x2f2791=_0x482d85['getFirstRange']();if(_0x852cd3['length']>0x0){const _0x2f07a4=_0x852cd3[0x0]['getJoined'](_0x2f2791);if(_0x2f07a4){_0x852cd3[0x0]=_0x2f07a4;continue;}}_0x852cd3['push'](_0x2f2791);}_0x4ce3c2['push']([_0x1770fd['view'],_0x852cd3]);}return _0x4ce3c2;}),this['listenTo'](_0x40bde3,'suggestionLoaded',(_0x4eceb5,_0x307eb9)=>{this['listenTo'](_0x307eb9,'change:previous',(_0x56cc5b,_0x1708e3,_0x42c48c,_0x131279)=>{_0x307eb9['isInContent']&&(null==_0x42c48c?(this['_updateController'](_0x131279['head']),this['_handleSuggestionControllerDelayed'](_0x307eb9,!0x1)):(this['_updateController'](_0x42c48c['head']),null==_0x131279&&this['_handleSuggestionControllerDelayed'](_0x307eb9,!0x0)));}),null!==_0x307eb9['previous']?this['_updateController'](_0x307eb9['head']):this['_handleSuggestionControllerDelayed'](_0x307eb9,!0x1);}),this['listenTo'](_0x40bde3,'suggestionUnloaded',(_0xea488a,_0x15340a,_0x18b02d)=>{this['stopListening'](_0x15340a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x15340a),this['_suggestionToController']['has'](_0x15340a)&&this['_destroyController'](_0x15340a),_0x18b02d&&this['_updateController'](_0x18b02d['head']);}),this['listenTo'](_0x40bde3,'suggestionChanged',(_0x11b37,_0x5d1664)=>{this['_updateController'](_0x5d1664);}),this['listenTo'](_0x398562,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x29abf0,'addComment',(_0x29a79e,{threadId:_0x2b3195,isFromAdapter:_0x406ff1})=>{if(_0x406ff1||!_0x40bde3['hasSuggestion'](_0x2b3195))return;const _0x25a8df=_0x40bde3['getSuggestion'](_0x2b3195);this['_suggestionToController']['get'](_0x25a8df)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x170333=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xded273;for(const _0x3bbf37 in _0x170333){const _0x395bf7=_0x3bbf37,_0x5313cf=_0x170333[_0x395bf7];if('trackChangesLicenseKeyValid'==_0x5313cf||'trackChangesLicenseKeyInvalid'==_0x5313cf||'trackChangesLicenseKeyExpired'==_0x5313cf||'trackChangesLicenseKeyDomainLimit'==_0x5313cf||'trackChangesLicenseKeyNotAllowed'==_0x5313cf||'trackChangesLicenseKeyEvaluationLimit'==_0x5313cf||'trackChangesLicenseKeyTrialLimit'==_0x5313cf||'trackChangesLicenseKeyUsageLimit'==_0x5313cf){delete _0x170333[_0x395bf7],_0xded273=_0x5313cf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xded273&&_0x170333['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xded273&&_0x170333['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xded273&&_0x170333['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xded273&&_0x170333['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xded273&&_0x170333['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xded273&&_0x170333['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xded273&&_0x170333['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x9a09af){const _0x497b52=this['_suggestionToController']['get'](_0x9a09af);if(!_0x497b52)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x497b52['view'])||null;}['getSuggestionForAnnotation'](_0x46759b){const _0x403e73=this['_viewToController']['get'](_0x46759b['innerView']);return _0x403e73?_0x403e73['model']:null;}['_refreshActiveMarkers'](){const _0x326c8d=this['editor']['plugins']['get']('Annotations'),_0xa3cfca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d5716=Array['from'](_0x326c8d['activeAnnotations'],_0x3ebd98=>_0x3ebd98['innerView'])['filter'](_0x2b57f2=>this['_viewToController']['has'](_0x2b57f2)),_0x166049=[];for(const _0x18b59f of _0x2d5716){const _0x2593eb=this['_viewToController']['get'](_0x18b59f)['model']['getAllAdjacentSuggestions']();_0x166049['push'](..._0x2593eb['reduce']((_0x52d868,_0x24577e)=>[..._0x52d868,..._0x24577e['getMarkerNames']()],[]));}_0xa3cfca['activeMarkers']=_0x166049;}['_addUIComponentsToFactory'](){const _0x2ebfee=this['editor'],_0x413b16=_0x2ebfee['locale'],_0x3fd385=o(_0x413b16,'Track\x20changes'),_0x2eea0e=new _0x4662bd([{'type':'switchbutton','model':new _0x41e09b({'withText':!0x0,'isToggleable':!0x0,'label':_0x3fd385,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x41e09b({'withText':!0x0,'label':o(_0x413b16,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41e09b({'withText':!0x0,'label':o(_0x413b16,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41e09b({'withText':!0x0,'label':o(_0x413b16,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41e09b({'withText':!0x0,'label':o(_0x413b16,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2ebfee['plugins']['has']('TrackChangesPreview')&&_0x2eea0e['addMany']([{'type':'separator'},{'type':'button','model':new _0x41e09b({'withText':!0x0,'label':o(_0x413b16,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4d35ac of _0x2eea0e)if(Ee(_0x4d35ac)){const _0x1b2911=_0x2ebfee['commands']['get'](_0x4d35ac['model']['commandName']);_0x4d35ac['model']['bind']('isOn','isEnabled')['to'](_0x1b2911,'value','isEnabled');}_0x2ebfee['ui']['componentFactory']['add']('trackChanges',_0xc2598a=>this['_createToolbarButton'](_0xc2598a,_0x2eea0e,_0x3fd385)),_0x2ebfee['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5d009f=>this['_createMenuBarMenu'](_0x5d009f,_0x2eea0e,_0x3fd385));}['_createToolbarButton'](_0x519825,_0x4077bf,_0x4b3e70){const _0x3a3e52=_0x5dca4d(_0x519825,_0x218d99),_0x48d34b=this['editor']['commands']['get']('trackChanges');_0x3a3e52['buttonView']['set']({'tooltip':_0x4b3e70,'label':_0x4b3e70,'icon':_0x18839f}),_0x3a3e52['buttonView']['bind']('isOn')['to'](_0x48d34b,'value'),_0x3a3e52['buttonView']['on']('execute',()=>{_0x48d34b['execute'](),this['editor']['editing']['view']['focus']();}),_0x23ad15(_0x3a3e52,_0x4077bf,{'role':'menu'});const _0x5c316b=[];for(const _0x9b8bf1 of _0x4077bf)Ee(_0x9b8bf1)&&_0x5c316b['push'](this['editor']['commands']['get'](_0x9b8bf1['model']['commandName']));const _0x5c582c=_0x3a3e52['buttonView'];return _0x5c582c['actionView']['unbind']('isEnabled'),_0x5c582c['arrowView']['unbind']('isEnabled'),_0x5c582c['actionView']['bind']('isEnabled')['to'](_0x48d34b,'isEnabled'),_0x5c582c['arrowView']['bind']('isEnabled')['toMany'](_0x5c316b,'isEnabled',(..._0x3fd46b)=>_0x3fd46b['some'](_0x52993c=>_0x52993c)),_0x3a3e52['on']('execute',_0x7966bc=>{this['editor']['execute'](_0x7966bc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3a3e52;}['_createMenuBarMenu'](_0x293017,_0x30cdd3,_0x531491){const _0x3d447e=new _0x1fd282(_0x293017),_0x33694b=this['editor']['commands']['get']('trackChanges');_0x3d447e['buttonView']['set']({'label':_0x531491,'icon':_0x18839f});const _0x1d4b8f=new _0x4cf1c4(_0x293017);for(const _0x357147 of _0x30cdd3){if('separator'==_0x357147['type']){_0x1d4b8f['items']['add'](new _0x434a07(_0x293017));continue;}const _0x437f8e=new _0x10dfd6(_0x293017,_0x3d447e),_0x402958=new _0x4271cf(_0x293017),_0x4ff5f5=_0x357147['model'];_0x402958['bind'](...Object['keys'](_0x4ff5f5))['to'](_0x4ff5f5),_0x402958['delegate']('execute')['to'](_0x3d447e),_0x402958['on']('execute',()=>{this['editor']['execute'](_0x4ff5f5['commandName']),this['editor']['editing']['view']['focus']();}),_0x437f8e['children']['add'](_0x402958),_0x1d4b8f['items']['add'](_0x437f8e);}return _0x3d447e['bind']('isEnabled')['to'](_0x33694b,'isEnabled'),_0x3d447e['panelView']['children']['add'](_0x1d4b8f),_0x3d447e;}['_initializeController'](_0x4520ec){const _0x2c255a=this['editor'],_0x5ceab4=_0x2c255a['config'],_0x148007=_0x2c255a['plugins']['get']('Annotations'),_0xff5007=_0x2c255a['plugins']['get']('CommentsRepository'),_0x134dc4=_0x2c255a['plugins']['get']('EditorAnnotations'),_0x5f4e2d=_0x2c255a['plugins']['get'](_0x553a10)['me'],_0x469f5b=_0x5ceab4['get']('trackChanges')['SuggestionThreadView'],_0x35f3c4=_0x5ceab4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x44af45,CommentThreadInputView:_0x67fdb5}=_0x2c255a['plugins']['get']('CommentsUI');let _0x1ecb70,_0xf00e85,_0x5bd7dc;this['_annotationViews']['has'](_0x4520ec['id'])?(_0xf00e85=this['_annotationViews']['get'](_0x4520ec['id']),_0x1ecb70=_0xf00e85['mainView']):(_0x1ecb70=new _0x469f5b(_0x2c255a['locale'],_0x4520ec,_0x5f4e2d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5ceab4['get']('comments.editorConfig'),'licenseKey':_0x5ceab4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5ceab4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5ceab4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5ceab4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x64632c(_0x5ceab4['get']('locale'),_0x2c255a['locale']),'CommentView':_0x5ceab4['get']('comments')['CommentView'],'CommentsListView':_0x44af45,'CommentThreadInputView':_0x67fdb5,'SuggestionView':_0x35f3c4}),_0x1ecb70['suggestionView']['acceptButton']['on']('execute',()=>{_0x2c255a['editing']['view']['focus']();}),_0x1ecb70['suggestionView']['discardButton']['on']('execute',()=>{_0x2c255a['editing']['view']['focus']();}),_0xf00e85=_0x148007['createAnnotationView'](this['editor']['locale'],_0x1ecb70),_0xf00e85['bind']('isDirty')['to'](_0x1ecb70,'isDirty'),_0xf00e85['bind']('length')['to'](_0x1ecb70),_0xf00e85['bind']('type')['to'](_0x1ecb70,'type',_0x5e4520=>'suggestion-'+_0x5e4520),_0x1ecb70['on']('escape',()=>{_0x5bd7dc['fire']('escape');}),this['_annotationViews']['set'](_0x4520ec['id'],_0xf00e85));const _0x73c54=_0xff5007['createCommentThreadController'](_0x4520ec['commentThread'],_0x1ecb70),_0x312277=new ve(_0x2c255a,_0x4520ec,_0x1ecb70,_0x73c54),_0x16ce51=_0x4520ec['getAllAdjacentSuggestions']()['filter'](_0x10c084=>_0x10c084['isInContent']);_0x1ecb70['descriptionParts']=_0x2c255a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x16ce51),this['_suggestionToController']['set'](_0x4520ec,_0x312277),this['_viewToController']['set'](_0x1ecb70,_0x312277);const _0x52b841=()=>{const _0x1acf96=[],_0x107f6f=_0x4520ec['getAllAdjacentSuggestions']()['filter'](_0x8d1f82=>_0x8d1f82['isInContent']);for(const _0x2d8e28 of _0x107f6f)_0x1acf96['push'](..._0x2d8e28['getMarkers']());return _0x953b8d(_0x2c255a['editing'],_0x1acf96);};_0x5bd7dc=_0x148007['createAnnotation']({'view':_0xf00e85,'target':_0x52b841,'type':()=>'suggestion-'+_0x312277['view']['type'],'isVisible':!!_0x52b841()}),_0xff5007['_bindAnnotationToEditors'](_0x1ecb70,_0x5bd7dc),_0x148007['add'](_0x5bd7dc),_0x134dc4['registerAnnotation'](_0x5bd7dc);}['_destroyController'](_0x4bcb70){const _0xb5282e=this['editor']['plugins']['get']('CommentsRepository'),_0x4b0a31=this['editor']['plugins']['get']('Annotations'),_0x1494fd=this['_suggestionToController']['get'](_0x4bcb70),_0x152201=_0x1494fd['view'],_0x42445a=_0x4b0a31['getByInnerView'](_0x152201);_0xb5282e['_unbindEditors'](_0x152201),_0x42445a&&_0x4b0a31['remove'](_0x42445a),this['_suggestionToController']['delete'](_0x4bcb70),this['_viewToController']['delete'](_0x152201),_0x1494fd['destroy']();}['_updateController'](_0x1ff312){if(!_0x1ff312['isInContent']||!this['_suggestionToController']['has'](_0x1ff312))return;const _0x253d50=this['editor']['plugins']['get']('TrackChangesEditing'),_0x484bb9=this['_suggestionToController']['get'](_0x1ff312),_0xab8540=_0x1ff312['getAllAdjacentSuggestions']();_0x484bb9['view']['descriptionParts']=_0x253d50['descriptionFactory']['getDescriptions'](_0xab8540);}['destroy'](){for(const _0x52488b of this['_suggestionToController']['keys']())this['_destroyController'](_0x52488b);for(const _0x824ecb of this['_annotationViews']['values']())_0x824ecb['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Ee(_0x24bb68){return'model'in _0x24bb68;}class Ke extends _0x3f9a7e{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x144add){this['editor']['plugins']['get'](d)['adapter']=_0x144add;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x222fda){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x222fda);}['getSuggestions']({skipNotAttached:_0x20bd33=!0x1,toJSON:_0x472e2f=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x20bd33,'toJSON':_0x472e2f});}['getSuggestion'](_0x42f99d){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x42f99d);}}const p=['Pagination'];class me extends _0x3f9a7e{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5e050d=this['editor'];if(_0x5e050d['config']['define']('trackChangesData.editorCreator',_0x3e13e3=>{const _0x588534=_0x5e050d['model']['document']['getRootNames']()['reduce']((_0x58d733,_0x577804)=>(_0x58d733[_0x577804]='',_0x58d733),{});return _0x5e050d['constructor']['create'](_0x588534,_0x3e13e3);}),'function'!=typeof _0x5e050d['config']['get']('trackChangesData')['editorCreator'])throw new _0x1ac6d4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4da656){return P(this['editor'],!0x0,_0x4da656);}['getDataWithDiscardedSuggestions'](_0x53e2ab){return P(this['editor'],!0x1,_0x53e2ab);}}class Xe extends _0x3f9a7e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1957e2){function _0x2c940c(_0x5b0e56){return _0x5b0e56['map'](_0x524b45=>String['fromCharCode'](_0x524b45))['join']('');}super(_0x1957e2),this['result']='end',_0x1957e2[_0x2c940c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c940c([0x76,0x69,0x65,0x77])][_0x2c940c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c940c([0x61,0x75,0x74,0x6f]),_0x1957e2[_0x2c940c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2c940c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c940c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2c940c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2c940c([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 Ye(_0x4e8d10){return void 0x0!==_0x4e8d10['getRootsAttributes'];}async function P(_0x5c3d28,_0x23c7af,_0x52bb5c){const _0x325aaa=_0xb5f771(_0x5c3d28,p);_0x325aaa['plugins']['push'](d,Xe),_0x325aaa['rootsAttributes']=Ye(_0x5c3d28)?_0x5c3d28['getRootsAttributes']():void 0x0;const _0x1a73b2=document['createDocumentFragment'](),_0x4c73ba=_0x5c3d28['config']['get']('trackChangesData')['editorCreator'],_0x599a14=await _0x4c73ba(_0x325aaa,()=>function(_0x31e1b9){const _0x438d16=document['createElement']('div');return _0x31e1b9['appendChild'](_0x438d16),_0x438d16;}(_0x1a73b2));!function(_0x44df29,_0x5c91a5){const _0xc904cb=_0x44df29['model']['document']['getRootNames']()['reduce']((_0x25f3f6,_0x3bf897)=>(_0x25f3f6[_0x3bf897]=_0x44df29['data']['get']({'rootName':_0x3bf897}),_0x25f3f6),{}),_0x899449=_0x44df29['plugins']['get']('Users')['users']['map'](_0x190362=>({'id':_0x190362['id'],'name':_0x190362['name']})),_0x2b354f=_0x44df29['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2fa2ed=_0x44df29['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5243e0=_0x5c91a5['plugins']['get']('Users'),_0x108f32=_0x5c91a5['plugins']['get']('TrackChangesEditing'),_0x2b50bc=_0x5c91a5['plugins']['get']('CommentsRepository');for(const _0x1ff41f of _0x2b50bc['getCommentThreads']())_0x1ff41f['remove']();for(const _0x1c702d of _0x899449)_0x5243e0['getUser'](_0x1c702d['id'])||_0x5243e0['addUser'](_0x1c702d);_0x5243e0['me']||_0x5243e0['useAnonymousUser']();for(const _0x16cf2d of _0x2fa2ed)_0x2b50bc['addCommentThread'](_0x16cf2d);for(const _0x53f684 of _0x2b354f)_0x108f32['addSuggestionData'](_0x53f684);_0x5c91a5['data']['set'](_0xc904cb);}(_0x5c3d28,_0x599a14),_0x599a14['execute'](_0x23c7af?'acceptAllSuggestions':'discardAllSuggestions');const _0xa13571=Ye(_0x599a14)?_0x599a14['getFullData'](_0x52bb5c):_0x599a14['data']['get'](_0x52bb5c);return await _0x599a14['destroy'](),_0xa13571;}class _e extends _0x3c71d5{['options'];constructor(_0x29c76d,_0x4e3cce){super(_0x29c76d),this['options']=_0x4e3cce,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'](_0x143826,_0x311b84){if(!this['element'])return;const _0x589221=[];for(const [_0x5b88fb,_0x284084]of _0x143826){const _0x43cfed=document['createElement']('div');_0x43cfed['setAttribute']('data-ck-root-name',_0x5b88fb),_0x43cfed['className']=_0x284084['classes']+'\x20ck-track-changes-preview__root-container',_0x43cfed['innerHTML']=_0x284084['content'],_0x589221['push'](_0x43cfed);}_0x311b84(this['element'],_0x589221),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ue extends _0x16fb88{constructor(_0x17bc65){super(_0x17bc65),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3b7a39=this['editor'],_0x5e25d6=_0x3b7a39['locale'],_0x3a6376=_0x3b7a39['plugins']['get']('Dialog');let _0xbf59b2;const _0x547296=function(_0x4f29ea){const _0x1ffe5a={};if('editables'in _0x4f29ea['ui']['view']){for(const [_0x749b72,_0x397a81]of Object['entries'](_0x4f29ea['ui']['view']['editables']))_0x1ffe5a[_0x749b72]=_0x397a81['element'];}else _0x1ffe5a[_0x4f29ea['model']['document']['getRootNames']()[0x0]]=_0x4f29ea['ui']['view']['editable']['element'];return _0x1ffe5a;}(_0x3b7a39),_0x2c69a9=function(_0x512ec4){let _0x516240=0x0;for(const _0x125e0d of Object['values'](_0x512ec4))_0x516240=Math['max'](_0x516240,_0x125e0d['getBoundingClientRect']()['width']);let _0x2df395=0x0;for(const _0x3014ea of Object['values'](_0x512ec4))_0x2df395+=_0x3014ea['getBoundingClientRect']()['height'];const _0x3b2b6a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x15bbf6=Math['min'](_0x2df395,_0x3b2b6a);return{'width':_0x516240,'height':_0x15bbf6};}(_0x547296);_0x3a6376['show']({'id':'finalContentPreview','title':o(_0x5e25d6,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x5e25d6,{'dialogRects':_0x2c69a9}),'onHide':()=>{_0xbf59b2['detachFromDom']();},'onShow':()=>{_0x3b7a39['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x335445=>{const _0x35158f=this['_standarizeRootsData'](_0x335445,_0x3b7a39,_0x547296);_0x3a6376['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x35158f,_0x3b7a39['config']['get']('trackChanges.preview.renderFunction'));}),_0xbf59b2=new _0x2ecd61(_0x5e25d6,[_0x3a6376['view']]),_0xbf59b2['attachToDom'](),_0xbf59b2['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3b7a39['once']('destroy',()=>{_0xbf59b2['detachFromDom']();});const _0x293b1d=_0x3a6376['view']['headerView']['class'];_0x3a6376['view']['headerView']['class']=_0x293b1d?_0x293b1d+'\x20ck-reset_all':'ck-reset_all',_0x3a6376['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3a6376['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2da2ba=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x57f8b9=_0x2da2ba['previewMode'],_0x3bb162={};if('$labels'===_0x57f8b9){for(const _0x709983 of _0x2da2ba['getMergeFieldsIds']())_0x3bb162[_0x709983]=_0x2da2ba['getLabel'](_0x709983)||_0x709983;}else{const _0x35c98e='$defaultValues'===_0x57f8b9?_0x2da2ba['getDefaultValues']():_0x2da2ba['getDataSetValues'](_0x57f8b9,!0x0);for(const _0x9e28c5 of Object['entries'](_0x35c98e)){const [_0x5434ed,_0x397f87]=_0x9e28c5;_0x3bb162[_0x5434ed]=null!==_0x397f87?_0x397f87:_0x2da2ba['getLabel'](_0x5434ed)||_0x5434ed;}}return{'mergeFieldsData':_0x3bb162};}['_standarizeRootsData'](_0x5cf5ce,_0x3ccfa6,_0x34ceda){let _0x2c11b8;if('string'==typeof _0x5cf5ce){const _0x109b39=_0x3ccfa6['model']['document']['getRootNames']()[0x0];_0x2c11b8={[_0x109b39]:_0x5cf5ce};}else _0x2c11b8=_0x5cf5ce;const _0x2fc10a=this['_fixMediaEmbeds'](_0x2c11b8,_0x3ccfa6),_0x1040e2=function(_0x49d04f,_0x40c790){for(const [_0x164cca,_0x489128]of _0x49d04f)_0x489128['classes']=_0x40c790[_0x164cca]['classList']['value']['replace']('ck-focused','');return _0x49d04f;}(this['_sortRoots'](_0x3ccfa6)['reduce']((_0x161a4e,_0x10e7c8)=>(_0x161a4e['push']([_0x10e7c8,{'content':_0x2fc10a[_0x10e7c8],'classes':''}]),_0x161a4e),[]),_0x34ceda);return _0x1040e2;}['_fixMediaEmbeds'](_0x1812ee,_0x243c9f){if(!_0x243c9f['plugins']['has']('MediaEmbedEditing'))return _0x1812ee;const _0x101fe2=_0x243c9f['plugins']['get']('MediaEmbedEditing');for(const [_0x5c6274,_0x463457]of Object['entries'](_0x1812ee)){const _0x5d2822=document['createElement']('div');_0x5d2822['innerHTML']=_0x463457,(_0x5d2822['querySelectorAll']('figure.media')['forEach'](_0x222e94=>{const _0x396f26=_0x222e94['querySelector']('oembed');if(_0x396f26){const _0x1f97c8=_0x396f26['getAttribute']('url');if(_0x1f97c8){const _0x16c430=_0x101fe2['registry']['getMediaViewElement'](new _0x2903e3(_0x243c9f['editing']['view']['document']),_0x1f97c8,{'elementName':'','renderForEditingView':!0x0}),_0x2a2cb6=document['createElement']('div');_0x2a2cb6['classList']['add']('ck-media__wrapper'),_0x16c430['render'](_0x2a2cb6,_0x243c9f['editing']['view']['domConverter']),_0x396f26['replaceWith'](_0x2a2cb6);}}}),_0x1812ee[_0x5c6274]=_0x5d2822['innerHTML']);}return _0x1812ee;}['_sortRoots'](_0x545e03){if(!function(_0x1582e5){return void 0x0!==_0x1582e5['getRootsAttributes'];}(_0x545e03))return _0x545e03['model']['document']['getRootNames']();const _0xf0bda=[],_0x1e0bba=new Map();for(const _0xd68656 of _0x545e03['model']['document']['getRootNames']()){const _0x1eace5=_0x545e03['editing']['view']['getDomRoot'](_0xd68656)['getClientRects']()['item'](0x0);_0xf0bda['push'](_0xd68656),_0x1e0bba['set'](_0xd68656,_0x1eace5);}return _0xf0bda['sort']((_0x2f984d,_0x53b7c1)=>{const _0x279264=_0x1e0bba['get'](_0x2f984d),_0x416e8b=_0x1e0bba['get'](_0x53b7c1);return _0x279264['y']-_0x416e8b['y']||_0x279264['x']-_0x416e8b['x'];}),_0xf0bda;}}class Qe extends _0x3f9a7e{static get['requires'](){return[me,_0x233f75];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25c70e){super(_0x25c70e),_0x25c70e['commands']['add']('previewFinalContent',new ue(this['editor'])),_0x25c70e['config']['define']('trackChanges.preview.renderFunction',(_0x270d16,_0x6b57c6)=>{for(const _0x5c66c6 of _0x6b57c6)_0x270d16['appendChild'](_0x5c66c6);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ue as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,xe as SuggestionThreadView,Ae as SuggestionView,Ke as TrackChanges,B as TrackChangesCommand,me as TrackChangesData,Xe as TrackChangesDataGetter,d as TrackChangesEditing,Qe as TrackChangesPreview,u as TrackChangesUI};