@ckeditor/ckeditor5-track-changes 47.2.0 → 47.3.0-alpha.1

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 (231) hide show
  1. package/LICENSE.md +4 -4
  2. package/build/track-changes.js +1 -1
  3. package/dist/index.js +4 -4
  4. package/dist/translations/af.js +1 -1
  5. package/dist/translations/af.umd.js +1 -1
  6. package/dist/translations/ar.js +1 -1
  7. package/dist/translations/ar.umd.js +1 -1
  8. package/dist/translations/ast.js +1 -1
  9. package/dist/translations/ast.umd.js +1 -1
  10. package/dist/translations/az.js +1 -1
  11. package/dist/translations/az.umd.js +1 -1
  12. package/dist/translations/be.js +1 -1
  13. package/dist/translations/be.umd.js +1 -1
  14. package/dist/translations/bg.js +1 -1
  15. package/dist/translations/bg.umd.js +1 -1
  16. package/dist/translations/bn.js +1 -1
  17. package/dist/translations/bn.umd.js +1 -1
  18. package/dist/translations/bs.js +1 -1
  19. package/dist/translations/bs.umd.js +1 -1
  20. package/dist/translations/ca.js +1 -1
  21. package/dist/translations/ca.umd.js +1 -1
  22. package/dist/translations/cs.js +1 -1
  23. package/dist/translations/cs.umd.js +1 -1
  24. package/dist/translations/da.js +1 -1
  25. package/dist/translations/da.umd.js +1 -1
  26. package/dist/translations/de-ch.js +1 -1
  27. package/dist/translations/de-ch.umd.js +1 -1
  28. package/dist/translations/de.js +1 -1
  29. package/dist/translations/de.umd.js +1 -1
  30. package/dist/translations/el.js +1 -1
  31. package/dist/translations/el.umd.js +1 -1
  32. package/dist/translations/en-au.js +1 -1
  33. package/dist/translations/en-au.umd.js +1 -1
  34. package/dist/translations/en-gb.js +1 -1
  35. package/dist/translations/en-gb.umd.js +1 -1
  36. package/dist/translations/en.js +1 -1
  37. package/dist/translations/en.umd.js +1 -1
  38. package/dist/translations/eo.js +1 -1
  39. package/dist/translations/eo.umd.js +1 -1
  40. package/dist/translations/es-co.js +1 -1
  41. package/dist/translations/es-co.umd.js +1 -1
  42. package/dist/translations/es.js +1 -1
  43. package/dist/translations/es.umd.js +1 -1
  44. package/dist/translations/et.js +1 -1
  45. package/dist/translations/et.umd.js +1 -1
  46. package/dist/translations/eu.js +1 -1
  47. package/dist/translations/eu.umd.js +1 -1
  48. package/dist/translations/fa.js +1 -1
  49. package/dist/translations/fa.umd.js +1 -1
  50. package/dist/translations/fi.js +1 -1
  51. package/dist/translations/fi.umd.js +1 -1
  52. package/dist/translations/fr.js +1 -1
  53. package/dist/translations/fr.umd.js +1 -1
  54. package/dist/translations/gl.js +1 -1
  55. package/dist/translations/gl.umd.js +1 -1
  56. package/dist/translations/gu.js +1 -1
  57. package/dist/translations/gu.umd.js +1 -1
  58. package/dist/translations/he.js +1 -1
  59. package/dist/translations/he.umd.js +1 -1
  60. package/dist/translations/hi.js +1 -1
  61. package/dist/translations/hi.umd.js +1 -1
  62. package/dist/translations/hr.js +1 -1
  63. package/dist/translations/hr.umd.js +1 -1
  64. package/dist/translations/hu.js +1 -1
  65. package/dist/translations/hu.umd.js +1 -1
  66. package/dist/translations/hy.js +1 -1
  67. package/dist/translations/hy.umd.js +1 -1
  68. package/dist/translations/id.js +1 -1
  69. package/dist/translations/id.umd.js +1 -1
  70. package/dist/translations/it.js +1 -1
  71. package/dist/translations/it.umd.js +1 -1
  72. package/dist/translations/ja.js +1 -1
  73. package/dist/translations/ja.umd.js +1 -1
  74. package/dist/translations/jv.js +1 -1
  75. package/dist/translations/jv.umd.js +1 -1
  76. package/dist/translations/kk.js +1 -1
  77. package/dist/translations/kk.umd.js +1 -1
  78. package/dist/translations/km.js +1 -1
  79. package/dist/translations/km.umd.js +1 -1
  80. package/dist/translations/kn.js +1 -1
  81. package/dist/translations/kn.umd.js +1 -1
  82. package/dist/translations/ko.js +1 -1
  83. package/dist/translations/ko.umd.js +1 -1
  84. package/dist/translations/ku.js +1 -1
  85. package/dist/translations/ku.umd.js +1 -1
  86. package/dist/translations/lt.js +1 -1
  87. package/dist/translations/lt.umd.js +1 -1
  88. package/dist/translations/lv.js +1 -1
  89. package/dist/translations/lv.umd.js +1 -1
  90. package/dist/translations/ms.js +1 -1
  91. package/dist/translations/ms.umd.js +1 -1
  92. package/dist/translations/nb.js +1 -1
  93. package/dist/translations/nb.umd.js +1 -1
  94. package/dist/translations/ne.js +1 -1
  95. package/dist/translations/ne.umd.js +1 -1
  96. package/dist/translations/nl.js +1 -1
  97. package/dist/translations/nl.umd.js +1 -1
  98. package/dist/translations/no.js +1 -1
  99. package/dist/translations/no.umd.js +1 -1
  100. package/dist/translations/oc.js +1 -1
  101. package/dist/translations/oc.umd.js +1 -1
  102. package/dist/translations/pl.js +1 -1
  103. package/dist/translations/pl.umd.js +1 -1
  104. package/dist/translations/pt-br.js +1 -1
  105. package/dist/translations/pt-br.umd.js +1 -1
  106. package/dist/translations/pt.js +1 -1
  107. package/dist/translations/pt.umd.js +1 -1
  108. package/dist/translations/ro.js +1 -1
  109. package/dist/translations/ro.umd.js +1 -1
  110. package/dist/translations/ru.js +1 -1
  111. package/dist/translations/ru.umd.js +1 -1
  112. package/dist/translations/si.js +1 -1
  113. package/dist/translations/si.umd.js +1 -1
  114. package/dist/translations/sk.js +1 -1
  115. package/dist/translations/sk.umd.js +1 -1
  116. package/dist/translations/sl.js +1 -1
  117. package/dist/translations/sl.umd.js +1 -1
  118. package/dist/translations/sq.js +1 -1
  119. package/dist/translations/sq.umd.js +1 -1
  120. package/dist/translations/sr-latn.js +1 -1
  121. package/dist/translations/sr-latn.umd.js +1 -1
  122. package/dist/translations/sr.js +1 -1
  123. package/dist/translations/sr.umd.js +1 -1
  124. package/dist/translations/sv.js +1 -1
  125. package/dist/translations/sv.umd.js +1 -1
  126. package/dist/translations/th.js +1 -1
  127. package/dist/translations/th.umd.js +1 -1
  128. package/dist/translations/ti.js +1 -1
  129. package/dist/translations/ti.umd.js +1 -1
  130. package/dist/translations/tk.js +1 -1
  131. package/dist/translations/tk.umd.js +1 -1
  132. package/dist/translations/tr.js +1 -1
  133. package/dist/translations/tr.umd.js +1 -1
  134. package/dist/translations/tt.js +1 -1
  135. package/dist/translations/tt.umd.js +1 -1
  136. package/dist/translations/ug.js +1 -1
  137. package/dist/translations/ug.umd.js +1 -1
  138. package/dist/translations/uk.js +1 -1
  139. package/dist/translations/uk.umd.js +1 -1
  140. package/dist/translations/ur.js +1 -1
  141. package/dist/translations/ur.umd.js +1 -1
  142. package/dist/translations/uz.js +1 -1
  143. package/dist/translations/uz.umd.js +1 -1
  144. package/dist/translations/vi.js +1 -1
  145. package/dist/translations/vi.umd.js +1 -1
  146. package/dist/translations/zh-cn.js +1 -1
  147. package/dist/translations/zh-cn.umd.js +1 -1
  148. package/dist/translations/zh.js +1 -1
  149. package/dist/translations/zh.umd.js +1 -1
  150. package/package.json +27 -27
  151. package/src/commands/acceptsuggestioncommand.js +1 -1
  152. package/src/commands/discardsuggestioncommand.js +1 -1
  153. package/src/commands/executeonallsuggestionscommand.js +1 -1
  154. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  155. package/src/commands/previewfinalcontentcommand.js +1 -1
  156. package/src/commands/trackchangescommand.js +1 -1
  157. package/src/index.js +1 -1
  158. package/src/integrations/ai.js +1 -1
  159. package/src/integrations/aiassistant.js +1 -1
  160. package/src/integrations/aiquickactions.js +1 -1
  161. package/src/integrations/alignment.js +1 -1
  162. package/src/integrations/basicstyles.js +1 -1
  163. package/src/integrations/blockquote.js +1 -1
  164. package/src/integrations/bookmark.js +1 -1
  165. package/src/integrations/casechange.js +1 -1
  166. package/src/integrations/ckbox.js +1 -1
  167. package/src/integrations/codeblock.js +1 -1
  168. package/src/integrations/comments.js +1 -1
  169. package/src/integrations/deletecommand.js +1 -1
  170. package/src/integrations/emoji.js +1 -1
  171. package/src/integrations/entercommand.js +1 -1
  172. package/src/integrations/findandreplace.js +1 -1
  173. package/src/integrations/font.js +1 -1
  174. package/src/integrations/footnotes.js +1 -1
  175. package/src/integrations/formatpainter.js +1 -1
  176. package/src/integrations/heading.js +1 -1
  177. package/src/integrations/highlight.js +1 -1
  178. package/src/integrations/horizontalline.js +1 -1
  179. package/src/integrations/htmlembed.js +1 -1
  180. package/src/integrations/image.js +1 -1
  181. package/src/integrations/imagereplace.js +1 -1
  182. package/src/integrations/imagestyle.js +1 -1
  183. package/src/integrations/importword.js +1 -1
  184. package/src/integrations/indent.js +1 -1
  185. package/src/integrations/inputcommand.js +1 -1
  186. package/src/integrations/legacylist.js +1 -1
  187. package/src/integrations/legacylistproperties.js +1 -1
  188. package/src/integrations/lineheight.js +1 -1
  189. package/src/integrations/link.js +1 -1
  190. package/src/integrations/list.js +1 -1
  191. package/src/integrations/listproperties.js +1 -1
  192. package/src/integrations/mediaembed.js +1 -1
  193. package/src/integrations/mention.js +1 -1
  194. package/src/integrations/mergefields.js +1 -1
  195. package/src/integrations/multilevellist.js +1 -1
  196. package/src/integrations/pagebreak.js +1 -1
  197. package/src/integrations/paragraph.js +1 -1
  198. package/src/integrations/removeformat.js +1 -1
  199. package/src/integrations/replacesourcecommand.js +1 -1
  200. package/src/integrations/restrictededitingmode.js +1 -1
  201. package/src/integrations/shiftentercommand.js +1 -1
  202. package/src/integrations/standardeditingmode.js +1 -1
  203. package/src/integrations/style.js +1 -1
  204. package/src/integrations/table.js +1 -1
  205. package/src/integrations/tablecaption.js +1 -1
  206. package/src/integrations/tableclipboard.js +2 -2
  207. package/src/integrations/tablecolumnresize.js +1 -1
  208. package/src/integrations/tableheadings.js +1 -1
  209. package/src/integrations/tablelayout.js +1 -1
  210. package/src/integrations/tablemergesplit.js +1 -1
  211. package/src/integrations/tableofcontents.js +1 -1
  212. package/src/integrations/tableproperties.js +1 -1
  213. package/src/integrations/template.js +1 -1
  214. package/src/integrations/title.js +1 -1
  215. package/src/integrations/undo.js +1 -1
  216. package/src/integrations/uploadcare.js +1 -1
  217. package/src/integrations/utils.js +1 -1
  218. package/src/suggestion.js +2 -2
  219. package/src/suggestiondescriptionfactory.js +1 -1
  220. package/src/trackchanges.js +1 -1
  221. package/src/trackchangesdata.js +1 -1
  222. package/src/trackchangesediting.js +1 -1
  223. package/src/trackchangespreview.js +1 -1
  224. package/src/trackchangesui.js +1 -1
  225. package/src/ui/suggestioncontroller.js +2 -2
  226. package/src/ui/view/basesuggestionthreadview.js +1 -1
  227. package/src/ui/view/suggestionthreadview.js +1 -1
  228. package/src/ui/view/suggestionview.js +1 -1
  229. package/src/ui/view/trackchangespreviewview.js +1 -1
  230. package/src/utils/common-translations.js +1 -1
  231. 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 _0x32fd9b,Plugin as _0x6098b5,PendingActions as _0x4b2b84}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3bdb9f,ObservableMixin as _0xb5ca62,uid as _0x137421,priorities as _0x42a7ac,insertToPriorityArray as _0x27e5bc,logWarning as _0x1be288,getEnvKeystrokeText as _0x33389c,FocusTracker as _0x54b367,KeystrokeHandler as _0x1d8494,Collection as _0xd81c4c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x447a44,IconCancel as _0x31c12b,IconTrackChanges as _0xa929b6}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xfe82d8,View as _0x6d8017,ViewCollection as _0x28e883,FocusCycler as _0x66b0,UIModel as _0x401b09,createDropdown as _0x425502,SplitButtonView as _0x510bbf,addListToDropdown as _0x355789,MenuBarMenuView as _0x5c6d54,MenuBarMenuListView as _0x35f1e1,ListSeparatorView as _0x2ef933,MenuBarMenuListItemView as _0x2be48b,MenuBarMenuListItemButtonView as _0x5822d6,BodyCollection as _0x6df534,Dialog as _0xb35cf1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x51cf78,DocumentCompare as _0x256fef,hashObject as _0x30679b,surroundingMarkersDetector as _0x3953b3,FOCUS_ANNOTATION_KEYSTROKE as _0x21f038,AriaDescriptionView as _0x3008c1,setupThreadKeyboardNavigation as _0x41bcd8,trimHtml as _0x51fd89,UserView as _0x1ad3e0,LateFocusButtonView as _0x32fdb7,getDateTimeFormatter as _0x1233e4,getAllMarkersDomElementsSorted as _0x16ef51,sanitizeEditorConfig as _0x2f378f}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x49b491,ModelLiveRange as _0x2bf002,ModelLivePosition as _0x4c40a6,ViewDowncastWriter as _0x3d974a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x2eb2e1,set as _0x4e423a,isEqual as _0x1343c3,unset as _0x2a975f,omit as Pt}from'es-toolkit/compat';import{Delete as _0x3603c3,Input as _0x48d9bf}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4422f4}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x8e957d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x32fd9b{['_enabledCommands'];constructor(_0x1829da,_0x58a1ae){super(_0x1829da),this['_enabledCommands']=_0x58a1ae,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 _0x3827b5 of this['editor']['commands']['commands']())_0x3827b5['affectsData']&&!this['_enabledCommands']['has'](_0x3827b5)&&_0x3827b5['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3e4fe9 of this['editor']['commands']['commands']())_0x3e4fe9['affectsData']&&!this['_enabledCommands']['has'](_0x3e4fe9)&&_0x3e4fe9['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x32fd9b{['_suggestions'];constructor(_0x4cd522,_0x420e28){super(_0x4cd522),this['_suggestions']=_0x420e28,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3162e4){const _0x2ffa59=this['_suggestions']['get'](_0x3162e4);if(!_0x2ffa59)throw new _0x3bdb9f('track-changes-accept-suggestion-not-found',this);const _0x205767=_0x2ffa59['getRanges']();this['editor']['model']['canEditAt'](_0x205767)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2ffa59);}}class D extends _0x32fd9b{['_suggestions'];constructor(_0x207e02,_0x2a8e50){super(_0x207e02),this['_suggestions']=_0x2a8e50,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x474630){const _0x20556a=this['_suggestions']['get'](_0x474630);if(!_0x20556a)throw new _0x3bdb9f('track-changes-discard-suggestion-not-found',this);const _0x17a68f=_0x20556a['getRanges']();this['editor']['model']['canEditAt'](_0x17a68f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x20556a);}}function ls(_0x21528e,_0x5b5d8a){let _0x59a23e='';return _0x59a23e+=_0x21528e['split']('*')['map']((_0x43425b,_0xeaf43e)=>_0xeaf43e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x43425b)+'</span>':rn(_0x43425b))['join'](''),_0x5b5d8a&&(_0x59a23e+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5b5d8a['value']+'\x22\x20title=\x22'+_0x5b5d8a['title']+'\x22></span>'),_0x59a23e;}function rn(_0x14acae){const _0x4db748=document['createElement']('span');return _0x4db748['innerText']=_0x14acae,_0x4db748['innerHTML'];}function ts(_0x1dbe9e){return _0x1dbe9e['sort']((_0x1606cb,_0x308da6)=>'attribute'===_0x1606cb['type']&&'attribute'!==_0x308da6['type']?-0x1:'attribute'!==_0x1606cb['type']&&'attribute'===_0x308da6['type']?0x1:'deletion'==_0x1606cb['type']&&'deletion'!=_0x308da6['type']?-0x1:'deletion'!=_0x1606cb['type']&&'deletion'==_0x308da6['type']?0x1:0x0);}function to(_0x5537b7,_0x2986f2){let _0x257edc,_0x1f1dee=0x0;const _0x5be796=[],_0x47e711=_0x2986f2['schema'];for(;_0x1f1dee<_0x5537b7['length'];){const _0x397813=_0x5537b7[_0x1f1dee],_0x5db9f4=_0x5537b7[_0x1f1dee+0x1];_0x257edc||(_0x257edc=_0x2986f2['createPositionBefore'](_0x397813)),cn(_0x2986f2,_0x397813,_0x5db9f4)||(_0x5be796['push'](_0x2986f2['createRange'](_0x257edc,_0x47e711['isObject'](_0x397813)?_0x2986f2['createPositionAfter'](_0x397813):_0x2986f2['createPositionAt'](_0x397813,'end'))),_0x257edc=null),_0x1f1dee++;}return _0x5be796;}function cn(_0x437b0e,_0x4b647b,_0x3c0171){if(!_0x3c0171)return!0x1;const _0x4d7973=_0x437b0e['createPositionAfter'](_0x4b647b),_0x23cbeb=_0x437b0e['createPositionBefore'](_0x3c0171);return _0x4d7973['isTouching'](_0x23cbeb);}function rs(_0xf75460,_0x2d9ce6,_0x5b5de1){for(;_0x5b5de1['length'];){const _0x387cfe=_0x5b5de1['splice'](0x0,0x64);_0xf75460['change'](()=>{for(const _0x2a49dc of _0x387cfe)_0x2a49dc['isInContent']&&_0x2d9ce6['execute'](_0x2a49dc['id']);});}}class B extends _0x32fd9b{['_command'];['_suggestions'];constructor(_0x5c15fe,_0x591757,_0x3d1b3a){super(_0x5c15fe),this['_command']=_0x591757,this['_suggestions']=_0x3d1b3a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x18ae90=Array['from'](this['_suggestions']['values']())['some'](_0x52d31a=>_0x52d31a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x18ae90;}['execute'](){const _0x240f00=ts(Array['from'](this['_suggestions']['values']()));for(const _0x33469b of _0x240f00){const _0x5cd751=_0x33469b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5cd751))return;}rs(this['editor']['model'],this['_command'],_0x240f00);}}class O extends _0x32fd9b{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x585c19,_0x261ca5,_0x7ecbf2){super(_0x585c19),this['_command']=_0x261ca5,this['_suggestions']=_0x7ecbf2,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3078ab=this['editor']['model']['document']['selection'],_0x2262b0=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5604fc,_0x21189a){const _0x55b16c=Array['from'](_0x5604fc['getRanges']()),_0x2f675c=new Set();for(const _0x3117b1 of _0x21189a)if(_0x3117b1['isInContent']){for(const _0x1cfaf8 of _0x55b16c)for(const _0x3a04c5 of _0x3117b1['getRanges']())(_0x1cfaf8['isIntersecting'](_0x3a04c5)||_0x5604fc['isCollapsed']&&!_0x3117b1['isMultiRange']&&_0x3117b1['next']&&_0x3a04c5['end']['isTouching'](_0x1cfaf8['start']))&&_0x2f675c['add'](_0x3117b1);}return _0x2f675c;}(_0x3078ab,_0x2262b0),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x30547c=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1abedf of _0x30547c){const _0x1c3db9=_0x1abedf['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1c3db9))return;}rs(this['editor']['model'],this['_command'],_0x30547c);}}class x extends/* #__PURE__ -- @preserve */
24
- _0xb5ca62(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x583353,_0x439d74){super(),this['id']=_0x439d74['id'],this['type']=_0x439d74['type'],this['subType']=_0x439d74['subType']||null,this['author']=_0x439d74['author'],this['creator']=_0x439d74['creator']||_0x439d74['author'],this['isExternal']=Boolean(_0x439d74['attributes']&&_0x439d74['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x439d74['originalSuggestionId']||null,this['_model']=_0x583353,this['_onAccept']=_0x439d74['onAccept'],this['_onDiscard']=_0x439d74['onDiscard'],this['_onAttributesChange']=_0x439d74['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x439d74['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 _0x3768df=this;for(;_0x3768df['previous'];)_0x3768df=_0x3768df['previous'];return _0x3768df;}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'](_0x58148c){this['_markerNames']['add'](_0x58148c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x20dca3=>this['_model']['markers']['get'](_0x20dca3))['filter'](_0x497034=>_0x497034);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x41ed3d=>{for(const _0x3a9ee5 of this['getMarkers']())_0x41ed3d['removeMarker'](_0x3a9ee5);}),this['_markerNames']['clear']();}['removeMarker'](_0x1dee9c){this['_model']['change'](_0x5b408c=>{_0x5b408c['removeMarker'](_0x1dee9c);}),this['_markerNames']['delete'](_0x1dee9c);}['addRange'](_0xb437da){const _0x5d0ba1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x5d0ba1),this['_model']['change'](_0x46ab70=>{_0x46ab70['addMarker'](_0x5d0ba1,{'range':_0xb437da,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4b9917){for(const _0x5da397 of this['getRanges']())if(_0x5da397['isIntersecting'](_0x4b9917))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5e68c6=>_0x5e68c6['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x325a8d,_0xdd5189)=>[..._0x325a8d,..._0xdd5189['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x59ca07=this['getRanges']();if(0x1!=_0x59ca07['length'])return null;const _0x59e4ad=_0x59ca07[0x0],_0x39121e=_0x59e4ad['start']['nodeAfter'],_0x2d3bc9=_0x59e4ad['end']['nodeBefore'];return _0x39121e instanceof _0x49b491?_0x39121e!=_0x2d3bc9?null:_0x39121e: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 _0x552171=[];let _0x3ce4a0=this['head'];for(;_0x3ce4a0;)_0x552171['push'](_0x3ce4a0),_0x3ce4a0=_0x3ce4a0['next'];return _0x552171;}['setAttribute'](_0x1f0b55,_0x19bb17){const _0x43eeb5=_0x2eb2e1(this['attributes']);_0x4e423a(_0x43eeb5,_0x1f0b55,_0x19bb17),_0x1343c3(_0x43eeb5,this['attributes'])||(this['attributes']=_0x43eeb5,this['_onAttributesChange'](_0x43eeb5));}['removeAttribute'](_0x21e27b){const _0x3c1c63=_0x2eb2e1(this['attributes']);_0x2a975f(_0x3c1c63,_0x21e27b),_0x1343c3(_0x3c1c63,this['attributes'])||(this['attributes']=_0x3c1c63,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 _0x137421()['substr'](0x1,0x5);}}function o(_0x12717d,_0x57c4f0,_0x3243da){const _0x2f584b=_0x12717d['t'],t=_0x12717d['t'];switch(_0x57c4f0){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',_0x3243da);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3243da);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3243da);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3243da);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3243da);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',_0x3243da);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3243da);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',_0x3243da);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3243da);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3243da);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3243da);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3243da);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3243da);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3243da);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3243da);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3243da);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3243da);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3243da);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3243da);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3243da);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3243da);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3243da);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3243da);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3243da);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3243da);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'},_0x3243da);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3243da);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3243da);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3243da);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3243da);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3243da);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3243da);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3243da);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'},_0x3243da);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3243da);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3243da);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3243da);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3243da);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'},_0x3243da);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3243da);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'},_0x3243da);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'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x3243da);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3243da);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'},_0x3243da);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3243da);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'},_0x3243da);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3243da);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x3243da);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x3243da);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x3243da);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3243da);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'},_0x3243da);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3243da);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 _0x2f584b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3243da);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2f584b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3243da);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3243da);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'},_0x3243da);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'},_0x3243da);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'},_0x3243da);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x57c4f0;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x504901,_0x3de983){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x504901,this['_locale']=_0x3de983;}['getDescriptions'](_0x56c51a){const _0x55ef28=[],_0x51bd7b=new Set(),_0x59035b=new Set();for(let _0x37bba3=0x0;_0x37bba3<_0x56c51a['length'];_0x37bba3++){const _0x1d23c9=_0x56c51a[_0x37bba3];if(!_0x1d23c9['isInContent'])continue;const _0x304412=this['_handleCustomCallbackDescription'](_0x1d23c9);if(_0x304412){if(null!=_0x1d23c9['subType']){if(_0x51bd7b['has'](_0x1d23c9['subType']))continue;_0x51bd7b['add'](_0x1d23c9['subType']);}_0x55ef28['push'](_0x304412);}else{if('attribute'==_0x1d23c9['type']){const _0x4d15b4=_0x1d23c9['data']['key'];if(_0x59035b['has'](_0x4d15b4))continue;_0x59035b['add'](_0x1d23c9['data']['key']),_0x4d15b4==m?this['_handleRenameSuggestionDescription'](_0x55ef28,_0x1d23c9):this['_handleAttributeSuggestionDescription'](_0x55ef28,_0x1d23c9);continue;}'insertion'!=_0x1d23c9['type']&&'deletion'!=_0x1d23c9['type']||this['_handleInsertRemoveSuggestionDescription'](_0x55ef28,_0x1d23c9,_0x56c51a[_0x37bba3+0x1]);}}return this['_resolveDescriptionItems'](_0x55ef28);}['registerDescriptionCallback'](_0x5b5189){this['_customCallbacks']['push'](_0x5b5189);}['registerElementLabel'](_0x24f178,_0x538962,_0x290091=_0x42a7ac['normal']){'function'==typeof _0x24f178?_0x27e5bc(this['_itemLabelsCallbacks'],{'matchingCallback':_0x24f178,'label':_0x538962,'priority':_0x290091}):this['_itemLabels']['set'](_0x24f178,_0x538962);}['registerAttributeLabel'](_0x2562b9,_0x52a656){this['_attributeLabels']['set'](_0x2562b9,_0x52a656);}['getItemLabel'](_0x497360,_0xe88c8a=0x1){let _0x224a5f;for(const _0x7dc96a of this['_itemLabelsCallbacks'])if(_0x7dc96a['matchingCallback'](_0x497360)){_0x224a5f=_0x7dc96a['label'];break;}return _0x224a5f||(_0x224a5f=this['_itemLabels']['get'](_0x497360['name'])),_0x224a5f?_0x224a5f(_0xe88c8a):0x1!==_0xe88c8a?_0xe88c8a+'\x20'+_0x497360['name']+'s':''+_0x497360['name'];}['_addDescriptionItems'](_0x4b65df,_0x5e6f72){const _0x451075=_0x5e6f72['getFirstRange']()['getWalker'](),_0x3b1054='insertion'==_0x5e6f72['type']?'add':'remove';for(const _0x2a43d1 of _0x451075){const _0x23979e=_0x2a43d1['item'],_0x58d863=_0x4b65df[_0x4b65df['length']-0x1];if(_0x23979e['is']('$textProxy'))_0x58d863&&_0x58d863['type']['indexOf']('Container')>-0x1&&_0x4b65df['pop'](),_0x58d863&&'text'==_0x58d863['type']?_0x58d863[_0x3b1054]+=_0x23979e['data']:_0x4b65df['push']({'type':'text','add':'add'==_0x3b1054?_0x23979e['data']:'','remove':'remove'==_0x3b1054?_0x23979e['data']:''});else{if(this['_schema']['isObject'](_0x23979e)){const _0x4a084d=_0x23979e;if(_0x58d863&&_0x58d863['type']['indexOf']('Container')>-0x1&&_0x4b65df['pop'](),'elementEnd'==_0x2a43d1['type'])continue;_0x58d863&&_0x58d863['type']==_0x3b1054+'Object'&&_0x58d863['element']['name']==_0x4a084d['name']?_0x58d863['quantity']++:_0x4b65df['push']({'type':_0x3b1054+'Object','element':_0x4a084d,'quantity':0x1}),_0x451075['skip'](_0x117a44=>!('elementEnd'==_0x117a44['type']&&_0x117a44['item']==_0x23979e));}else{if(this['_schema']['checkChild'](_0x23979e,'$text')||_0x23979e['is']('element','softBreak')){const _0x4e8b92=_0x23979e;if('add'==_0x3b1054&&'elementStart'==_0x2a43d1['type']||'remove'==_0x3b1054&&'elementEnd'==_0x2a43d1['type'])continue;if(_0x58d863&&-0x1==_0x58d863['type']['indexOf']('Container')){'text'==_0x58d863['type']&&(_0x58d863[_0x3b1054]+='\x0a');continue;}let _0x19ec43;if(_0x19ec43='add'==_0x3b1054?_0x4e8b92['nextSibling']&&!this['_schema']['isObject'](_0x4e8b92['nextSibling'])?_0x4e8b92['nextSibling']:null:_0x4e8b92['previousSibling']&&!this['_schema']['isObject'](_0x4e8b92['previousSibling'])?_0x4e8b92['previousSibling']:null,_0x4e8b92['isEmpty']||_0x19ec43&&_0x19ec43['isEmpty']){const _0x551523=_0x19ec43&&_0x19ec43['isEmpty']?_0x19ec43:_0x4e8b92;_0x58d863&&_0x58d863['type']==_0x3b1054+'EmptyContainer'&&_0x58d863['element']['name']==_0x551523['name']?_0x58d863['quantity']++:_0x4b65df['push']({'type':_0x3b1054+'EmptyContainer','element':_0x551523,'quantity':0x1});}else _0x4b65df['push']({'type':_0x3b1054+'Container','element':_0x4e8b92});}}}}}['_resolveDescriptionItems'](_0x1232a6){const _0x558ace=this['_locale'],_0x213d18=[],_0x50670c=[],_0x2baebf=[];for(const _0x536242 of _0x1232a6)switch(_0x536242['type']){case'text':if(_0x536242['add']=_0x536242['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x536242['remove']=_0x536242['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x536242['add']&&''!=_0x536242['remove']){_0x213d18['push']({'type':'replace','content':o(_0x558ace,'REPLACE_TEXT',['\x22'+_0x536242['remove']+'\x22','\x22'+_0x536242['add']+'\x22'])});continue;}if(null!=_0x536242['add']['match'](/^ +$/)){_0x213d18['push']({'type':'insertion','content':o(_0x558ace,'*Insert:*\x20%0',o(_0x558ace,'ELEMENT_SPACE',_0x536242['add']['length']))});continue;}if(null!=_0x536242['remove']['match'](/^ +$/)){_0x213d18['push']({'type':'deletion','content':o(_0x558ace,'*Remove:*\x20%0',o(_0x558ace,'ELEMENT_SPACE',_0x536242['remove']['length']))});continue;}if(''!=_0x536242['add']){_0x213d18['push']({'type':'insertion','content':o(_0x558ace,'*Insert:*\x20%0','\x22'+_0x536242['add']+'\x22')});continue;}_0x213d18['push']({'type':'deletion','content':o(_0x558ace,'*Remove:*\x20%0','\x22'+_0x536242['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x213d18['push']({'type':'insertion','content':o(_0x558ace,'*Insert:*\x20%0',this['getItemLabel'](_0x536242['element'],_0x536242['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x213d18['push']({'type':'deletion','content':o(_0x558ace,'*Remove:*\x20%0',this['getItemLabel'](_0x536242['element'],_0x536242['quantity']))});continue;case'addContainer':_0x213d18['push']({'type':'insertion','content':o(_0x558ace,'*Split:*\x20%0',this['getItemLabel'](_0x536242['element'],_0x536242['quantity']))});continue;case'removeContainer':_0x213d18['push']({'type':'deletion','content':o(_0x558ace,'*Merge:*\x20%0',this['getItemLabel'](_0x536242['element'],_0x536242['quantity']))});continue;case'addFormat':_0x50670c['push'](_0x536242['key']);continue;case'removeFormat':_0x2baebf['push'](_0x536242['key']);continue;default:_0x213d18['push'](_0x536242);}if(_0x50670c['length']){const _0x3b3a69=_0x50670c['map'](_0x6ad9cd=>this['_attributeLabels']['has'](_0x6ad9cd)?this['_attributeLabels']['get'](_0x6ad9cd):_0x6ad9cd)['join'](',\x20');_0x213d18['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3b3a69)});}if(_0x2baebf['length']){const _0x22342a=_0x2baebf['map'](_0x374eb1=>this['_attributeLabels']['has'](_0x374eb1)?this['_attributeLabels']['get'](_0x374eb1):_0x374eb1)['join'](',\x20');_0x213d18['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x22342a)});}return _0x213d18;}['_handleCustomCallbackDescription'](_0x244f77){for(const _0x5cbdfa of this['_customCallbacks']){const _0xbba50=_0x5cbdfa(_0x244f77);if(_0xbba50&&'type'in _0xbba50)return _0xbba50;}}['_handleAttributeSuggestionDescription'](_0xdbf6e6,_0x3f0c8c){const _0x41f5e6=_0x3f0c8c['data'],_0x40d718=void 0x0===_0x41f5e6['newValue']?'removeFormat':'addFormat';_0xdbf6e6['push']({'type':_0x40d718,'key':_0x41f5e6['key']});}['_handleRenameSuggestionDescription'](_0x28da11,_0x457b52){_0x28da11['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x457b52['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x40d02d,_0x5e363f,_0xdd0859){if(this['_addDescriptionItems'](_0x40d02d,_0x5e363f),_0xdd0859&&_0xdd0859['getFirstRange']()&&!_0x5e363f['getFirstRange']()['end']['isEqual'](_0xdd0859['getFirstRange']()['start'])){const _0x434437=_0x40d02d[_0x40d02d['length']-0x1],_0xc78c8c='insertion'==_0x5e363f['type']?'add':'remove';_0x434437&&'text'==_0x434437['type']&&(_0x434437[_0xc78c8c]+='\x0a');}}}class R extends _0x6098b5{['afterInit'](){const _0x3a656d=this['editor'],_0x8b3e32=_0x3a656d['plugins']['get']('TrackChangesEditing');_0x3a656d['commands']['get']('showAIAssistant')&&_0x8b3e32['enableCommand']('showAIAssistant');}}class T extends _0x6098b5{['afterInit'](){const _0x1b5142=this['editor'],_0xa623c5=_0x1b5142['plugins']['get']('TrackChangesEditing');_0x1b5142['commands']['get']('toggleAi')&&_0xa623c5['enableCommand']('toggleAi');}}class E extends _0x6098b5{['afterInit'](){const _0x81841b=this['editor'],_0xd04da=_0x81841b['plugins']['get']('TrackChangesEditing');_0x81841b['commands']['get']('aiQuickAction')&&_0xd04da['enableCommand']('aiQuickAction');}}class U extends _0x6098b5{['afterInit'](){const _0x4918ee=this['editor'],_0x66f91d=_0x4918ee['locale'];if(!_0x4918ee['plugins']['has']('AlignmentEditing'))return;const _0x484cdb=_0x4918ee['plugins']['get']('TrackChangesEditing');_0x484cdb['enableDefaultAttributesIntegration']('alignment'),_0x484cdb['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x66f91d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c32ea=this['editor'],_0x5edb44=_0x4c32ea['locale'];_0x4c32ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39e38b=>{if('formatBlock'!=_0x39e38b['type'])return;const {data:_0x2b3971}=_0x39e38b;if(_0x2b3971&&'alignment'==_0x2b3971['commandName']){const _0x9c0847=_0x2b3971['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5edb44,'*Format:*\x20%0',function(_0x30bc5b){switch(_0x30bc5b){case'left':return o(_0x5edb44,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5edb44,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5edb44,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5edb44,'FORMAT_JUSTIFY_TEXT');}}(_0x9c0847))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x6098b5{['afterInit'](){const _0x437fa5=this['editor'],_0x491b3c=_0x437fa5['plugins']['get']('TrackChangesEditing'),_0x167cca=_0x437fa5['locale'];for(const _0x5a23e6 of ti){if(!_0x437fa5['plugins']['has'](_0x5a23e6))continue;const _0x2a12d0=_0x5a23e6['slice'](0x0,-0x7)['toLowerCase'](),_0x3570de='FORMAT_'+_0x2a12d0['toUpperCase']();_0x491b3c['enableDefaultAttributesIntegration'](_0x2a12d0),_0x491b3c['descriptionFactory']['registerAttributeLabel'](_0x2a12d0,o(_0x167cca,_0x3570de));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e0b6b=this['editor'],_0x1cc1be=_0x4e0b6b['locale'],_0x342bda=_0x4e0b6b['plugins']['get']('TrackChangesEditing');function _0x35e191(_0x4bbe25,_0x33c1c9){_0x342bda['descriptionFactory']['registerDescriptionCallback'](_0x35efb3=>{if('formatInline'!=_0x35efb3['type'])return;const {data:_0x456f69}=_0x35efb3;return _0x456f69&&_0x456f69['commandName']===_0x4bbe25?_0x456f69['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1cc1be,'*Format:*\x20%0',_0x33c1c9)}:{'type':'format','content':o(_0x1cc1be,'*Remove\x20format:*\x20%0',_0x33c1c9)}:void 0x0;});}_0x35e191('bold',o(_0x1cc1be,'FORMAT_BOLD')),_0x35e191('italic',o(_0x1cc1be,'FORMAT_ITALIC')),_0x35e191('underline',o(_0x1cc1be,'FORMAT_UNDERLINE')),_0x35e191('code',o(_0x1cc1be,'FORMAT_CODE')),_0x35e191('strikethrough',o(_0x1cc1be,'FORMAT_STRIKETHROUGH')),_0x35e191('subscript',o(_0x1cc1be,'FORMAT_SUBSCRIPT')),_0x35e191('superscript',o(_0x1cc1be,'FORMAT_SUPERSCRIPT'));}}class F extends _0x6098b5{['afterInit'](){const _0x237ef7=this['editor'],_0x57cc4e=_0x237ef7['locale'];if(!_0x237ef7['plugins']['has']('BlockQuoteEditing'))return;const _0x3205cf=_0x237ef7['plugins']['get']('TrackChangesEditing'),_0x5be72b=this['editor']['commands']['get']('blockQuote');_0x3205cf['enableCommand']('blockQuote',(_0x16cbb9,_0x390d86={})=>{const _0x40bcbe=this['editor']['model']['document']['selection'],_0xe5340c=_0x390d86&&void 0x0!==_0x390d86['forceValue']?_0x390d86['forceValue']:!_0x5be72b['value'];let _0x37a3e8=[];if(_0xe5340c){const _0x25aa20=Array['from'](_0x40bcbe['getSelectedBlocks']())['filter'](_0x5c6194=>oo(_0x5c6194)||function(_0xc3124a,_0x31955a){const _0x3c8a64=_0x31955a['checkChild'](_0xc3124a['parent'],'blockQuote'),_0x5686dc=_0x31955a['checkChild'](['$root','blockQuote'],_0xc3124a);return _0x3c8a64&&_0x5686dc;}(_0x5c6194,this['editor']['model']['schema']));_0x37a3e8=to(_0x25aa20,_0x237ef7['model']);}else{const _0x528fd7=Array['from'](_0x40bcbe['getSelectedBlocks']())['filter'](_0x5850b0=>oo(_0x5850b0));_0x37a3e8=to(_0x528fd7,_0x237ef7['model']);}_0x237ef7['model']['change'](()=>{for(const _0x3978a8 of _0x37a3e8)_0x3205cf['markBlockFormat'](_0x3978a8,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xe5340c}]});});}),_0x3205cf['descriptionFactory']['registerDescriptionCallback'](_0x5b6196=>{const {data:_0x271f62}=_0x5b6196;if(_0x271f62&&'blockQuote'==_0x271f62['commandName']){const _0x43b1fd=o(_0x57cc4e,'ELEMENT_BLOCK_QUOTE');return _0x271f62['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x57cc4e,'*Set\x20format:*\x20%0',_0x43b1fd)}:{'type':'format','content':o(_0x57cc4e,'*Remove\x20format:*\x20%0',_0x43b1fd)};}});}}function oo(_0xcf5a07){return'blockQuote'==_0xcf5a07['parent']['name'];}class G extends _0x6098b5{['afterInit'](){const _0x39f7da=this['editor'],_0x3f1c3a=_0x39f7da['locale'],_0x55f3ba=_0x39f7da['plugins']['get']('TrackChangesEditing');_0x39f7da['plugins']['has']('BookmarkEditing')&&(_0x55f3ba['enableCommand']('insertBookmark'),_0x55f3ba['enableDefaultAttributesIntegration']('updateBookmark'),_0x55f3ba['descriptionFactory']['registerDescriptionCallback'](_0xf9a5a6=>{if('insertion'!=_0xf9a5a6['type']&&'deletion'!=_0xf9a5a6['type']&&'attribute'!=_0xf9a5a6['type'])return;const _0x4fe110=_0xf9a5a6['getContainedElement']();if(null==_0x4fe110)return;if(!_0x4fe110['is']('element','bookmark'))return;const _0x3cfc25=_0x4fe110['getAttribute']('bookmarkId');if('insertion'==_0xf9a5a6['type'])return{'type':'insertion','content':o(_0x3f1c3a,'*Insert:*\x20%0','\x22'+_0x3cfc25+'\x22\x20'+o(_0x3f1c3a,'ELEMENT_BOOKMARK'))};if('deletion'==_0xf9a5a6['type'])return{'type':'deletion','content':o(_0x3f1c3a,'*Remove:*\x20%0','\x22'+_0x3cfc25+'\x22\x20'+o(_0x3f1c3a,'ELEMENT_BOOKMARK'))};const {data:_0x58eada}=_0xf9a5a6;if(!_0x58eada||'bookmarkId'!=_0x58eada['key'])return;return{'type':'format','content':o(_0x3f1c3a,'*Set\x20bookmark:*\x20%0','\x22'+_0x58eada['newValue']+'\x22')};}));}}class L extends _0x6098b5{['afterInit'](){const _0x4f7693=this['editor'];_0x4f7693['plugins']['has']('CaseChange')&&(_0x4f7693['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4f7693['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4f7693['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x6098b5{['afterInit'](){const _0x279343=this['editor'];_0x279343['commands']['get']('ckbox')&&_0x279343['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x6098b5{['afterInit'](){const _0x53e5da=this['editor'];if(!_0x53e5da['plugins']['has']('CodeBlock'))return;const _0x5a1a59=_0x53e5da['plugins']['get']('TrackChangesEditing'),_0x4b166b=_0x53e5da['locale'],_0x16e2e5=_0x53e5da['config']['get']('codeBlock')['languages'],_0x7a228d=_0x53e5da['commands']['get']('codeBlock');_0x5a1a59['enableCommand']('indentCodeBlock'),_0x5a1a59['enableCommand']('outdentCodeBlock'),_0x5a1a59['enableCommand']('codeBlock',(_0x5d28cb,_0x153173={})=>{const _0x2ceca9=_0x53e5da['model'],_0x3e35d0=_0x53e5da['model']['document']['selection'],_0x47cb1c=_0x153173&&void 0x0!==_0x153173['forceValue']?_0x153173['forceValue']:!_0x7a228d['value'];let _0xfcc29c;_0x153173['language']||(_0x153173['language']=_0x16e2e5[0x0]['language']),_0xfcc29c=_0x47cb1c?Array['from'](_0x3e35d0['getSelectedBlocks']())['filter'](_0x40c743=>co(_0x40c743)||function(_0x8813fe,_0x1f783a){if(_0x8813fe['is']('rootElement')||_0x1f783a['isLimit'](_0x8813fe))return!0x1;return _0x1f783a['checkChild'](_0x8813fe['parent'],'codeBlock');}(_0x40c743,_0x2ceca9['schema'])):Array['from'](_0x3e35d0['getSelectedBlocks']())['filter'](_0x910528=>co(_0x910528));const _0x593402=to(_0xfcc29c,_0x2ceca9);_0x2ceca9['change'](()=>{for(const _0x1597b6 of _0x593402)_0x5a1a59['markBlockFormat'](_0x1597b6,{'commandName':'codeBlock','commandParams':[{..._0x153173,'forceValue':_0x47cb1c}],'formatGroupId':'blockName'});});}),(_0x5a1a59['descriptionFactory']['registerElementLabel']('codeBlock',_0x576205=>o(_0x4b166b,'ELEMENT_CODE_BLOCK',_0x576205)),_0x5a1a59['descriptionFactory']['registerDescriptionCallback'](_0x13c827=>{if('formatBlock'!=_0x13c827['type'])return;const _0x14366f=_0x4b166b['t'],{data:_0xc310d0}=_0x13c827;if(!_0xc310d0||'codeBlock'!=_0xc310d0['commandName'])return;const _0x1c2663=_0xc310d0['commandParams'][0x0]['language'],_0xc62deb=_0x14366f(_0x16e2e5['find'](_0xb6611d=>_0xb6611d['language']===_0x1c2663)['label'])['toLowerCase']();return _0xc310d0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b166b,'*Set\x20format:*\x20%0',o(_0x4b166b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xc62deb+')')}:{'type':'format','content':o(_0x4b166b,'*Remove\x20format:*\x20%0',o(_0x4b166b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1f22ee){return'codeBlock'==_0x1f22ee['name'];}class z extends _0x6098b5{['afterInit'](){const _0x2bd726=this['editor'];if(!_0x2bd726['plugins']['has']('CommentsEditing'))return;_0x2bd726['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x6098b5{static get['requires'](){return[_0x3603c3];}['init'](){const _0xb3c0f6=this['editor'],_0x5d0293=_0xb3c0f6['plugins']['get']('TrackChangesEditing');_0x5d0293['enableCommand']('delete');const _0x2b4bcd=_0xb3c0f6['commands']['get']('deleteForward');_0x5d0293['enableCommand']('deleteForward',(_0x30fc2e,_0x59c81b={})=>{const _0x2ae04d=_0xb3c0f6['model']['createSelection'](_0xb3c0f6['model']['document']['selection']);_0x2ae04d['isCollapsed']&&_0xb3c0f6['model']['modifySelection'](_0x2ae04d,{'direction':'forward','unit':_0x59c81b['unit']});const _0x70fbe6=_0x2ae04d['getFirstRange'](),_0x34425f=_0x2bf002['fromRange'](_0x70fbe6);let _0x23f679;_0x30fc2e(_0x59c81b),_0x23f679='$graveyard'==_0x34425f['root']['rootName']?_0xb3c0f6['model']['createRange'](_0x70fbe6['start']):_0xb3c0f6['model']['createRange'](_0x34425f['start'],_0x34425f['end']),_0x34425f['detach'](),_0xb3c0f6['model']['enqueueChange'](_0x2b4bcd['buffer']['batch'],_0x493e92=>{_0x2b4bcd['buffer']['lock'](),_0x493e92['setSelection'](_0x493e92['createRange'](_0x23f679['end'])),_0x2b4bcd['buffer']['unlock']();});});}}class W extends _0x6098b5{['afterInit'](){const _0x215fa7=this['editor'];if(!_0x215fa7['plugins']['has']('ListEditing'))return;const _0x1bd892=_0x215fa7['locale'],_0x2fa269=_0x215fa7['plugins']['get']('TrackChangesEditing'),_0x3aae6b=_0x215fa7['plugins']['has']('TodoListEditing'),_0x33c4eb=!!_0x215fa7['config']['get']('list.multiBlock');function _0x208d5a(_0x3401ef){return{'type':'format','content':''+o(_0x1bd892,'*Set\x20format:*\x20%0',_0x3401ef)};}function _0x2f5a6c(_0x5602e0){return{'type':'format','content':''+o(_0x1bd892,'*Remove\x20format:*\x20%0',_0x5602e0)};}_0x2fa269['enableDefaultAttributesIntegration']('numberedList'),_0x2fa269['enableDefaultAttributesIntegration']('bulletedList'),_0x2fa269['enableDefaultAttributesIntegration']('customNumberedList'),_0x2fa269['enableDefaultAttributesIntegration']('customBulletedList'),_0x2fa269['enableDefaultAttributesIntegration']('indentList'),_0x2fa269['enableDefaultAttributesIntegration']('outdentList'),_0x2fa269['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2fa269['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x33c4eb&&(_0x2fa269['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2fa269['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3aae6b&&(_0x2fa269['enableDefaultAttributesIntegration']('todoList'),_0x2fa269['enableDefaultAttributesIntegration']('checkTodoList'),_0x2fa269['descriptionFactory']['registerDescriptionCallback'](_0x3fcfde=>{const {data:_0x244f8d}=_0x3fcfde;if(_0x244f8d&&'todoListChecked'==_0x244f8d['key'])return{'type':'format','content':_0x244f8d['newValue']?o(_0x1bd892,'*Check\x20item*'):o(_0x1bd892,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xc63094=>{if(_0xc63094['batch']['isUndo'])return!0x1;let _0x52ff10=!0x1;const _0x286790=_0x2fa269['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22db21=>'todoListChecked'===_0x2fa269['_getAttributeKey'](_0x22db21));for(const _0x465109 of _0x286790){'todo'!=_0x465109['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2fa269['_findSuggestions'](_0x465109['getFirstRange'](),'attribute')['find'](_0x5d3509=>'listType'===_0x2fa269['_getAttributeKey'](_0x5d3509['suggestion']))||(_0xc63094['removeMarker'](_0x465109['getFirstMarker']()),_0x52ff10=!0x0));}return _0x52ff10;})),_0x2fa269['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1bd892,'FORMAT_INDENT'));const _0x58d85d={'type':'format','content':''};_0x2fa269['descriptionFactory']['registerDescriptionCallback'](_0x32e677=>{const {data:_0x23c4f}=_0x32e677;if(!_0x23c4f||'listType'!=_0x23c4f['key'])return;let _0xd18e71=_0x32e677['head'];for(;_0xd18e71;){if(_0xd18e71['data']&&(('listStyle'==_0xd18e71['data']['key']||'listMarkerStyle'==_0xd18e71['data']['key'])&&(_0xd18e71['data']['newValue']&&'default'!=_0xd18e71['data']['newValue']||'default'!=_0xd18e71['data']['oldValue']&&!_0x23c4f['newValue'])||!_0x33c4eb&&_0xd18e71['data']['key']==m))return _0x58d85d;_0xd18e71=_0xd18e71['next'];}if(null==_0x23c4f['newValue'])switch(_0x23c4f['oldValue']){case'bulleted':return _0x2f5a6c(o(_0x1bd892,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2f5a6c(o(_0x1bd892,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2f5a6c(o(_0x1bd892,'ELEMENT_TODO_LIST'));}switch(_0x23c4f['newValue']){case'bulleted':return _0x208d5a(o(_0x1bd892,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x208d5a(o(_0x1bd892,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x208d5a(o(_0x1bd892,'ELEMENT_TODO_LIST'));}}),_0x2fa269['descriptionFactory']['registerDescriptionCallback'](_0x38160a=>{const {data:_0x10fa16}=_0x38160a;if(_0x10fa16&&'listIndent'==_0x10fa16['key'])return null==_0x10fa16['newValue']||null==_0x10fa16['oldValue']&&0x0==_0x10fa16['newValue']?_0x58d85d:void 0x0;}),_0x2fa269['descriptionFactory']['registerDescriptionCallback'](_0x1a91e6=>{if('attribute'!=_0x1a91e6['type'])return;const {data:_0x1c7c78}=_0x1a91e6;if(!_0x1c7c78||'listItemId'!=_0x1c7c78['key'])return;const _0x1815b9=Te(_0x1a91e6);return'newValue'==_0x1815b9?{'type':'format','content':o(_0x1bd892,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1815b9?{'type':'format','content':o(_0x1bd892,'*Split:*\x20list\x20item')}:_0x58d85d;}),_0x215fa7['model']['document']['registerPostFixer'](_0x5c84d1=>this['listItemIdFixer'](_0x5c84d1)),_0x215fa7['model']['document']['registerPostFixer'](_0x10799a=>this['noTrackChangesFixer'](_0x10799a)),_0x215fa7['model']['document']['on']('change:data',(_0x58282f,_0x123130)=>{if(_0x123130['isUndo']||!_0x123130['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5a46ac){if(_0x5a46ac['batch']['isUndo']||!_0x5a46ac['batch']['isLocal'])return!0x1;let _0x94bf52=!0x1;const _0x2050eb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x207a3f=>_0x207a3f['data']&&'listItemId'==_0x207a3f['data']['key'])['filter'](_0x226216=>_0x226216['data']['newValue']&&_0x226216['data']['oldValue']);for(const _0x46fd8c of _0x2050eb)Te(_0x46fd8c)||(_0x5a46ac['removeMarker'](_0x46fd8c['getFirstMarker']()),_0x94bf52=!0x0);return _0x94bf52;}['noTrackChangesFixer'](_0x27f5e3){if(_0x27f5e3['batch']['isUndo']||!_0x27f5e3['batch']['isLocal'])return!0x1;const _0x396171=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x396171['trackChangesCommand']['value'])return!0x1;let _0x3f2cc5=!0x1;const _0x478145=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4e3784=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x59f6e6=>'attribute'==_0x59f6e6['type'])['filter'](_0x290568=>_0x478145['includes'](_0x290568['attributeKey']));if(0x0==_0x4e3784['length'])return _0x3f2cc5;for(const _0x137c39 of _0x4e3784){const _0x2c3bba=_0x396171['_findSuggestions'](_0x137c39['range'],'attribute')['filter'](_0x14bfac=>!_0x14bfac['meta']['isNextTo'])['map'](_0x2d5f47=>_0x2d5f47['suggestion'])['filter'](_0x457225=>{const _0x363e0d=_0x396171['_getAttributeKey'](_0x457225);return _0x478145['includes'](_0x363e0d);});if(_0x2c3bba['length']){for(const _0x346522 of _0x2c3bba)_0x27f5e3['removeMarker'](_0x346522['getFirstMarker']());_0x3f2cc5=!0x0;}}return _0x3f2cc5;}['assureChains'](){const _0x5c1ddd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e0d1b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x11f743;const _0x3d9fad=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x158d01=>{if(_0x158d01['data']['oldRange']||!_0x158d01['data']['newRange'])return null;if(!_0x158d01['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3c47b6}=_0x5c1ddd['_splitMarkerName'](_0x158d01['name']);if(!_0x5c1ddd['hasSuggestion'](_0x3c47b6))return null;const _0x496435=_0x5c1ddd['getSuggestion'](_0x3c47b6);return _0x2e0d1b['includes'](_0x496435['data']['key']);})['map'](_0x4db793=>{const {id:_0x3aca08}=_0x5c1ddd['_splitMarkerName'](_0x4db793['name']),_0x1a297a=_0x5c1ddd['getSuggestion'](_0x3aca08);return _0x11f743=_0x1a297a['attributes']['groupId'],_0x1a297a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3d9fad['size'])return;const _0x1b37bf=_0x5c1ddd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f6372=>'attribute'==_0x1f6372['type']&&_0x1f6372['data']&&_0x2e0d1b['includes'](_0x1f6372['data']['key'])&&_0x1f6372['attributes']['groupId']!=_0x11f743)['map'](_0x6ca8d9=>({'listItem':_0x6ca8d9['getFirstRange']()['start']['nodeAfter'],'groupId':_0x6ca8d9['attributes']['groupId']})),_0x238226=new Set();for(const {groupId:_0x115352,listItem:_0x4c5c57}of _0x1b37bf)_0x3d9fad['has'](_0x4c5c57)&&_0x238226['add'](_0x115352);for(const _0x17adb7 of _0x5c1ddd['getSuggestions']())_0x238226['has'](_0x17adb7['attributes']['groupId'])&&_0x17adb7['setAttribute']('groupId',_0x11f743);}['_supportLegacySuggestions'](){const _0x3a9e12=this['editor'],_0x126756=_0x3a9e12['locale'],_0x2ae61c=_0x3a9e12['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2ae61c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x439afd,_0x1322bb){const _0x5834e9=[];for(let _0x4ccd01 of _0x439afd)_0x4ccd01['start']['nodeAfter']===_0x4ccd01['end']['parent']&&(_0x4ccd01=_0x3a9e12['model']['createRange'](_0x3a9e12['model']['createPositionAt'](_0x4ccd01['start']['nodeAfter'],0x0))),_0x5834e9['push'](_0x4ccd01);_0x3a9e12['model']['change'](_0x12f51a=>{const _0x394961=_0x3a9e12['model']['document']['selection'],_0x213689=Array['from'](_0x394961['getRanges']())['map'](_0x593238=>_0x2bf002['fromRange'](_0x593238));_0x12f51a['setSelection'](_0x5834e9),_0x3a9e12['commands']['get'](_0x1322bb['commandName'])['refresh'](),_0x1322bb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3a9e12['execute'](_0x1322bb['commandName'],..._0x1322bb['commandParams']),_0x12f51a['setSelection'](_0x213689);for(const _0x4db02f of _0x213689)_0x4db02f['detach']();});}),_0x2ae61c['descriptionFactory']['registerElementLabel'](function(_0x17077d){const _0x291ca2=!_0x3a9e12['model']['schema']['isObject'](_0x17077d),_0x20a2d7=_0x17077d['previousSibling'],_0x59d818=_0x17077d['nextSibling'],_0x5062d3=_0x17077d['getAttribute']('listItemId'),_0x1506e3=!_0x20a2d7||_0x20a2d7['getAttribute']('listItemId')!==_0x5062d3,_0x1f3df0=!_0x59d818||_0x59d818['getAttribute']('listItemId')!==_0x5062d3;return _0x291ca2&&Boolean(_0x5062d3)&&_0x1506e3&&_0x1f3df0;},_0x578a9c=>o(_0x126756,'ELEMENT_LIST_ITEM',_0x578a9c));}['_registerLegacyDescription'](){const _0x5c1693=this['editor'],_0x20f0d1=_0x5c1693['locale'];function _0x51318b(_0x5ee9e7){const _0x3a7c4c=_0x5c1693['commands']['get']('bulletedList')['value'],_0x486fc5=_0x5c1693['commands']['get']('numberedList')['value'];return'numberedList'===_0x5ee9e7?_0x3a7c4c:_0x486fc5;}_0x5c1693['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x56c07d){if('formatBlock'!=_0x56c07d['type'])return;const {data:_0x2854bc}=_0x56c07d;if(!_0x2854bc)return;let _0x3c0988,_0x440c31,_0xe2b44d,_0x349e6c;switch(_0x2854bc['commandName']){case'bulletedList':_0xe2b44d=_0x2854bc['commandParams'][0x0]['forceValue'],_0x349e6c=_0x51318b(_0x2854bc['commandName']),_0x3c0988=_0xe2b44d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x349e6c&&_0x5c1693['config']['get']('list.multiBlock')||(_0x3c0988='*Change\x20to:*\x20%0'),_0x440c31={'type':'format','content':o(_0x20f0d1,_0x3c0988,o(_0x20f0d1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xe2b44d=_0x2854bc['commandParams'][0x0]['forceValue'],_0x349e6c=_0x51318b(_0x2854bc['commandName']),_0x3c0988=_0xe2b44d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x349e6c&&_0x5c1693['config']['get']('list.multiBlock')||(_0x3c0988='*Change\x20to:*\x20%0'),_0x440c31={'type':'format','content':o(_0x20f0d1,_0x3c0988,o(_0x20f0d1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3c0988='*Indent:*\x20%0',_0x440c31={'type':'format','content':o(_0x20f0d1,_0x3c0988,o(_0x20f0d1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3c0988=function(_0x114fe7){const _0x985ea4=_0x114fe7['getFirstRange']();let _0x3a4ba0=_0x985ea4['start']['nodeAfter'];for(;_0x3a4ba0&&_0x985ea4['containsItem'](_0x3a4ba0);){if(_0x3a4ba0['getAttribute']('listIndent')>0x0)return!0x1;_0x3a4ba0=_0x3a4ba0['nextSibling'];}return!0x0;}(_0x56c07d)?o(_0x20f0d1,'*Format:*\x20remove\x20from\x20%0',o(_0x20f0d1,function(_0x414ade){return'ELEMENT_'+_0x414ade['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x56c07d))):o(_0x20f0d1,'*Outdent:*\x20%0',o(_0x20f0d1,'ELEMENT_LIST_ITEM')),_0x440c31={'type':'format','content':_0x3c0988};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2854bc['multipleBlocks']&&(_0x3c0988='*Merge:*\x20%0',_0x440c31={'type':'deletion','content':o(_0x20f0d1,_0x3c0988,o(_0x20f0d1,'ELEMENT_LIST_ITEM'))});}return _0x440c31;});}}function Te(_0x3777a3){let _0x3bad10=_0x3777a3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3bad10;){const _0x168773=_0x3bad10['getAttribute']('listItemId');if(!_0x168773)return!0x1;if(_0x168773==_0x3777a3['data']['newValue'])return'newValue';if(_0x168773==_0x3777a3['data']['oldValue'])return'oldValue';_0x3bad10=_0x3bad10['previousSibling'];}return!0x1;}class H extends _0x6098b5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5321ce=this['editor']['config']['get']('list.properties'),_0x5938eb=this['editor']['plugins']['get']('TrackChangesEditing');_0x5321ce['styles']&&_0x5938eb['enableDefaultAttributesIntegration']('listStyle'),_0x5321ce['reversed']&&_0x5938eb['enableDefaultAttributesIntegration']('listReversed'),_0x5321ce['startIndex']&&_0x5938eb['enableDefaultAttributesIntegration']('listStart');const _0x942c85={'type':'format','content':''};_0x5938eb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x7d55=this['editor']['locale'];_0x5938eb['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x7d55,'FORMAT_LIST_REVERSED')),_0x5938eb['descriptionFactory']['registerDescriptionCallback'](_0x4970ae=>{const {data:_0x5a3787}=_0x4970ae;if(_0x5a3787&&'listReversed'==_0x5a3787['key'])return null==_0x5a3787['newValue']||0x0==_0x5a3787['newValue']&&null==_0x5a3787['oldValue']?_0x942c85:void 0x0;}),_0x5938eb['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x7d55,'FORMAT_LIST_START')),_0x5938eb['descriptionFactory']['registerDescriptionCallback'](_0x4d1aad=>{const {data:_0x51d2e3}=_0x4d1aad;if(_0x51d2e3&&'listStart'==_0x51d2e3['key'])return null==_0x51d2e3['newValue']||0x1==_0x51d2e3['newValue']&&null==_0x51d2e3['oldValue']?_0x942c85:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4cc1e5=>{if(_0x4cc1e5['batch']['isUndo'])return!0x1;let _0x14a4f2=!0x1;const _0x5e355c=_0x5938eb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf693c2=>{const _0x3d64b5=_0x5938eb['_getAttributeKey'](_0xf693c2);return'listStart'==_0x3d64b5||'listReversed'==_0x3d64b5;});for(const _0x4ce475 of _0x5e355c){const _0xcab0b1=_0x4ce475['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xcab0b1||'customNumbered'==_0xcab0b1)continue;_0x5938eb['_findSuggestions'](_0x4ce475['getFirstRange'](),'attribute')['find'](_0x4a59d0=>'listType'==_0x5938eb['_getAttributeKey'](_0x4a59d0['suggestion']))||(_0x4cc1e5['removeMarker'](_0x4ce475['getFirstMarker']()),_0x14a4f2=!0x0);}return _0x14a4f2;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xc58924){const _0xc1f3da=this['editor']['locale'],{data:_0x42d7a4}=_0xc58924,_0x2a8078={'type':'format','content':''};if(!_0x42d7a4||'listStyle'!=_0x42d7a4['key'])return;if(!_0x42d7a4['oldValue'])return'default'==_0x42d7a4['newValue']?_0x2a8078:{'type':'format','content':''+o(_0xc1f3da,'*Set\x20format:*\x20%0',o(_0xc1f3da,this['_getTranslationKeyForListStyle'](_0x42d7a4['newValue'])))};if(!_0x42d7a4['newValue']){if('default'==_0x42d7a4['oldValue'])return _0x2a8078;let _0x13c9fd=_0xc58924['head'];for(;_0x13c9fd;){if(_0x13c9fd['data']&&'listType'==_0x13c9fd['data']['key']&&_0x13c9fd['data']['newValue'])return _0x2a8078;_0x13c9fd=_0x13c9fd['next'];}return{'type':'format','content':''+o(_0xc1f3da,'*Remove\x20format:*\x20%0',o(_0xc1f3da,this['_getTranslationKeyForListStyle'](_0x42d7a4['oldValue'])))};}if('default'!=_0x42d7a4['newValue'])return{'type':'format','content':''+o(_0xc1f3da,'*Set\x20format:*\x20%0',o(_0xc1f3da,this['_getTranslationKeyForListStyle'](_0x42d7a4['newValue'])))};let _0x16daed=_0xc58924['head'];for(;_0x16daed;){if(_0x16daed['data']&&'listType'==_0x16daed['data']['key']&&_0x16daed['data']['newValue']&&_0x16daed['data']['oldValue'])return _0x2a8078;_0x16daed=_0x16daed['next'];}return{'type':'format','content':o(_0xc1f3da,'*Set\x20format:*\x20%0',o(_0xc1f3da,'ELEMENT_'+_0xc58924['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3cc1f8=this['editor'],_0x11096f=_0x3cc1f8['locale'];_0x3cc1f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x393a5f=>{if('formatBlock'!=_0x393a5f['type'])return;const {data:_0x109cf6}=_0x393a5f;if(!_0x109cf6)return;let _0xc6f370,_0x58f7d3;switch(_0x109cf6['commandName']){case'listStyle':_0xc6f370='*Change\x20to:*\x20%0',_0x58f7d3={'type':'format','content':o(_0x11096f,_0xc6f370,o(_0x11096f,this['_getTranslationKeyForListStyle'](_0x109cf6['commandParams'][0x0]['type'])))};break;case'listReversed':_0xc6f370=_0x109cf6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x58f7d3={'type':'format','content':o(_0x11096f,_0xc6f370)};break;case'listStart':_0xc6f370='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x58f7d3={'type':'format','content':o(_0x11096f,_0xc6f370,_0x109cf6['commandParams'][0x0]['startIndex'])};}return _0x58f7d3;});}['_getTranslationKeyForListStyle'](_0x13a349){return'ELEMENT_'+function(_0x191fc5){if(ye['includes'](_0x191fc5))return'bulleted';if(Se['includes'](_0x191fc5))return'numbered';return null;}(_0x13a349)['toUpperCase']()+'_LIST_'+_0x13a349['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x6098b5{['afterInit'](){const _0xafafc=this['editor'];_0xafafc['commands']['get']('emoji')&&_0xafafc['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x6098b5{static get['requires'](){return[_0x4422f4];}['init'](){const _0x270da1=this['editor'],_0x16b44d=_0x270da1['plugins']['get']('TrackChangesEditing'),_0x294e68=_0x270da1['commands']['get']('enter');_0x16b44d['enableCommand']('enter',()=>{_0x270da1['model']['change'](_0x30031c=>{const _0x1f57f2=_0x270da1['model']['document']['selection'],_0x1b5edb=_0x1f57f2['getFirstPosition'](),_0xf2194c=_0x2bf002['fromRange'](_0x1f57f2['getFirstRange']());if(_0x294e68['enterBlock'](_0x30031c)){const _0x1a0adc=_0x270da1['model']['createPositionAt'](_0x1b5edb['parent']['nextSibling'],0x0),_0x2b57c0=_0x30031c['createRange'](_0x1b5edb,_0x1a0adc);_0x16b44d['markInsertion'](_0x2b57c0);}else _0x30031c['setSelection'](_0x30031c['createRange'](_0xf2194c['end']));_0xf2194c['detach'](),_0x294e68['fire']('afterExecute',{'writer':_0x30031c});});});}}class Y extends _0x6098b5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2884e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x2884e3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2884e3['enableCommand']('findNext'),_0x2884e3['enableCommand']('findPrevious'),_0x2884e3['enableCommand']('replace'),_0x2884e3['enableCommand']('replaceAll');}['handleFindCommand'](_0x29b069,_0x5f15c6,_0x3af10d={}){const _0x25e434=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x29b069(_0x53b0aa=>{let _0x253d67=('string'==typeof _0x5f15c6?_0x25e434['findByTextCallback'](_0x5f15c6,_0x3af10d):_0x5f15c6)(_0x53b0aa);Array['isArray'](_0x253d67)&&(_0x253d67={'results':_0x253d67,'searchText':'string'==typeof _0x5f15c6?_0x5f15c6:''});const _0x47c9a1=_0x253d67['results']['filter'](_0x40d335=>!0x1===this['_isInDeletionRange'](_0x40d335,_0x53b0aa['item']));return{..._0x253d67,'results':_0x47c9a1};},_0x3af10d);}['_isInDeletionRange'](_0x633a96,_0x54d4c8){const _0x24aaab=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54d4c8,_0x633a96['start']),this['editor']['model']['createPositionAt'](_0x54d4c8,_0x633a96['end']));for(const _0x15e0b2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x24aaab['getIntersection'](_0x15e0b2['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x6098b5{['afterInit'](){const _0x36f4b1=this['editor']['locale'],_0x141fbf=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1fb5c8,commandName:_0x485fb7}of eo)this['editor']['plugins']['has'](_0x1fb5c8)&&_0x141fbf['enableDefaultAttributesIntegration'](_0x485fb7);_0x141fbf['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x36f4b1,'FORMAT_FONT_SIZE')),_0x141fbf['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x36f4b1,'FORMAT_FONT_FAMILY')),_0x141fbf['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x36f4b1,'FORMAT_FONT_COLOR')),_0x141fbf['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x36f4b1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12c392=this['editor'],_0xb65a2c=_0x12c392['locale'];_0x12c392['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x194fd5=>{const _0x50f51f=_0xb65a2c['t'];if('formatInline'!=_0x194fd5['type'])return;const {data:_0x53d261}=_0x194fd5;if(null!=_0x53d261){if('fontSize'==_0x53d261['commandName']){const _0x3b2b6d=_0x53d261['commandParams'][0x0]['value'];if(_0x3b2b6d){const _0xc50071=_0x50f51f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x49756f=>_0x49756f['model']==_0x3b2b6d)['title'])['toLowerCase']();return{'type':'format','content':o(_0xb65a2c,'*Set\x20font\x20size:*\x20%0',_0xc50071)};}return{'type':'format','content':o(_0xb65a2c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x53d261['commandName']){const _0x49a178=_0x53d261['commandParams'][0x0]['value'];return _0x49a178?{'type':'format','content':o(_0xb65a2c,'*Set\x20font\x20family:*\x20%0',_0x49a178)}:{'type':'format','content':o(_0xb65a2c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x53d261['commandName']){const _0x4eed25=_0x53d261['commandParams'][0x0]['value'];if(_0x4eed25){const _0x4aaacd=_0xfe82d8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2d65ee=>_0x2d65ee['model']==_0x4eed25);let _0x249c80=_0x4eed25,_0x4eb20a='';return _0x4aaacd&&(_0x249c80=_0x4aaacd['label'],_0x4eb20a=_0x50f51f(_0x249c80)['toLowerCase']()),{'type':'format','content':o(_0xb65a2c,'*Set\x20font\x20color:*\x20%0',_0x4eb20a)['trim'](),'color':{'value':_0x4eed25,'title':_0x4eb20a||_0x249c80}};}return{'type':'format','content':o(_0xb65a2c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x53d261['commandName']){const _0x15106a=_0x53d261['commandParams'][0x0]['value'];if(_0x15106a){const _0x392a66=_0xfe82d8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x29e8bc=>_0x29e8bc['model']==_0x15106a);let _0x2f0642=_0x15106a,_0x493267='';return _0x392a66&&(_0x2f0642=_0x392a66['label'],_0x493267=_0x50f51f(_0x2f0642)['toLowerCase']()),{'type':'format','content':o(_0xb65a2c,'*Set\x20font\x20background\x20color:*\x20%0',_0x493267)['trim'](),'color':{'value':_0x15106a,'title':_0x493267||_0x2f0642}};}return{'type':'format','content':o(_0xb65a2c,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x6098b5{['afterInit'](){const {plugins:_0x1d1517}=this['editor'];_0x1d1517['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x1d1517['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x2044f0,plugins:_0x514087,commands:_0x16f039}=this['editor'],_0xa2cca6=_0x514087['get']('TrackChangesEditing');_0x16f039['get']('footnotesStyle')&&_0xa2cca6['enableDefaultAttributesIntegration']('footnotesStyle'),_0x16f039['get']('footnotesStart')&&_0xa2cca6['enableDefaultAttributesIntegration']('footnotesStart'),_0xa2cca6['registerBlockAttribute']('footnotesListStyle'),_0xa2cca6['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x2044f0,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xa2cca6['registerBlockAttribute']('footnotesListStart'),_0xa2cca6['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x2044f0,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x48416c=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0xf67448,commands:_0x2658a8}=this['editor'];_0x2658a8['get']('insertFootnote')&&_0x48416c['enableCommand']('insertFootnote'),_0x48416c['descriptionFactory']['registerElementLabel']('footnoteRef',_0x478b7c=>o(_0xf67448,'ELEMENT_FOOTNOTE_REF',_0x478b7c)),_0x48416c['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x564f79=>o(_0xf67448,'ELEMENT_FOOTNOTE_DEFINITION',_0x564f79)),_0x48416c['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x54dfa7=>o(_0xf67448,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x54dfa7));}}class nt extends _0x6098b5{['afterInit'](){const _0x17a0a0=this['editor'],_0x34e294=_0x17a0a0['plugins']['get']('TrackChangesEditing'),_0xaf2d92=_0x17a0a0['commands']['get']('copyFormat'),_0x40c8dc=_0x17a0a0['commands']['get']('pasteFormat');_0xaf2d92&&_0x40c8dc&&(_0x34e294['enableDefaultAttributesIntegration']('pasteFormat'),_0x34e294['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3b9f8c=this['editor'],_0x15da44=_0x3b9f8c['locale'];_0x3b9f8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3972d9=>{if('formatBlock'!=_0x3972d9['type']&&'formatInline'!=_0x3972d9['type'])return;const {data:_0x2e2a61}=_0x3972d9;if(_0x2e2a61&&'pasteFormat'===_0x2e2a61['commandName']){const _0x4b0b1b=[],_0x2871fe=_0x2e2a61['commandParams'][0x0];for(const [_0x1bdc75,_0x4ba267]of Object['entries'](_0x2871fe))_0x4b0b1b['push'](ro(_0x3b9f8c,_0x1bdc75,_0x4ba267));return _0x4b0b1b['length']?{'type':'format','content':o(_0x15da44,'*Set\x20format\x20to:*\x20%0',_0x4b0b1b['join'](',\x20'))}:{'type':'format','content':o(_0x15da44,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x4b7a4e,_0x5b2404,_0x5daf6b){const _0x56be35=_0x4b7a4e['locale']['t'],_0x1af0cc=_0x5b2404['split'](/(?=[A-Z])/)['join']('\x20'),_0x59e510=_0x56be35(_0x1af0cc['charAt'](0x0)['toUpperCase']()+_0x1af0cc['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5daf6b)return _0x59e510;if('fontColor'===_0x5b2404||'fontBackgroundColor'===_0x5b2404){const _0x398452=_0xfe82d8(_0x4b7a4e['config']['get']('fontColor.colors'))['find'](_0x20b1a1=>_0x20b1a1['model']==_0x5daf6b);return _0x59e510+'\x20('+(_0x398452?_0x56be35(_0x398452['label'])['toLowerCase']():_0x5daf6b)+')';}if('fontSize'===_0x5b2404&&isNaN(parseFloat(_0x5daf6b))){const _0x3eed54=_0x4b7a4e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4b7a4e['config']['get']('fontSize.options'))['find'](_0x23c72c=>_0x23c72c['model']==_0x5daf6b);return _0x59e510+'\x20('+(_0x3eed54?_0x56be35(_0x3eed54['title'])['toLowerCase']():_0x5daf6b)+')';}return _0x59e510+'\x20('+_0x5daf6b+')';}class it extends _0x6098b5{['_headingOptions'];['afterInit'](){const _0x5a5cab=this['editor'];if(!_0x5a5cab['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5a5cab['config']['get']('heading.options');const _0x31c3d0=_0x5a5cab['locale'],_0x584b8d=_0x5a5cab['plugins']['get']('TrackChangesEditing');_0x584b8d['enableDefaultAttributesIntegration']('heading');for(const _0x5a200b of this['_headingOptions'])'paragraph'!=_0x5a200b['model']&&_0x584b8d['descriptionFactory']['registerElementLabel'](_0x5a200b['model'],_0x3a1f26=>{const _0x489bf4=this['_getHeadingLevel'](_0x5a200b['model']);return null!==_0x489bf4?_0x43f04a(_0x3a1f26,_0x489bf4):_0x2574ff(_0x3a1f26,_0x5a200b['title']);});function _0x43f04a(_0xce2a2d,_0x44a6cd){return o(_0x31c3d0,'ELEMENT_HEADING',[_0xce2a2d,_0x44a6cd]);}function _0x2574ff(_0x504074,_0x297a9c){return o(_0x31c3d0,'ELEMENT_HEADING_CUSTOM',[_0x504074,_0x297a9c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cf402=this['editor'],_0x1b33b6=_0x2cf402['locale'];function _0x15385c(_0x52ca99,_0x379ddb){return o(_0x1b33b6,'ELEMENT_HEADING_CUSTOM',[_0x52ca99,_0x379ddb]);}_0x2cf402['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xacb792=>{if('formatBlock'!=_0xacb792['type'])return;const {data:_0x25a549}=_0xacb792;if(_0x25a549&&'heading'==_0x25a549['commandName']){const _0x4b9d56=_0x25a549['commandParams'][0x0]['value'],_0x25121b=this['_getHeadingLevel'](_0x4b9d56);if(null!==_0x25121b)return{'type':'format','content':o(_0x1b33b6,'*Change\x20to:*\x20%0',(_0x103cd6=0x1,_0x5c1f0c=_0x25121b,o(_0x1b33b6,'ELEMENT_HEADING',[_0x103cd6,_0x5c1f0c])))};const _0x2541f8=this['_headingOptions']['find'](_0xf30c6c=>_0xf30c6c['model']===_0x4b9d56)['title'];return{'type':'format','content':o(_0x1b33b6,'*Change\x20to:*\x20%0',_0x15385c(0x1,_0x2541f8))};}var _0x103cd6,_0x5c1f0c;});}['_getHeadingLevel'](_0x40e1cf){const _0x5f2f3d=_0x40e1cf['match'](/^heading(\d+)/);if(_0x5f2f3d)return _0x5f2f3d[0x1];const _0xc40200=this['_headingOptions']?.['find'](_0x3e38bf=>_0x3e38bf['model']==_0x40e1cf);if(_0xc40200&&_0xc40200['view']){const _0x1f5ff7=_0xc40200['view'],_0xa50d61=(_0x1f5ff7['name']??_0x1f5ff7)['match'](/^h(\d+)/);if(_0xa50d61)return _0xa50d61[0x1];}return null;}}class et extends _0x6098b5{['afterInit'](){const _0x440b23=this['editor'];if(!_0x440b23['plugins']['has']('HighlightEditing'))return;const _0x5c08ab=_0x440b23['plugins']['get']('TrackChangesEditing'),_0x3c547c=_0x440b23['locale'];_0x5c08ab['enableDefaultAttributesIntegration']('highlight'),_0x5c08ab['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3c547c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3071e6=this['editor'],_0x4b9680=_0x3071e6['locale'];_0x3071e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d9548=>{if('formatInline'!=_0x1d9548['type'])return;const {data:_0x27f08e}=_0x1d9548;if(_0x27f08e&&'highlight'==_0x27f08e['commandName']){const _0x56b85f=_0x4b9680['t'],_0x579915=_0x27f08e['commandParams'][0x0]['value'];if(_0x579915){const _0x2b45a0=_0x3071e6['config']['get']('highlight.options')['find'](_0x5be39f=>_0x5be39f['model']==_0x579915),_0x15f7ae=_0x56b85f(_0x2b45a0['title'])['toLowerCase']();return{'type':'format','content':o(_0x4b9680,'*Set\x20highlight:*\x20%0',_0x15f7ae),'color':{'value':_0x2b45a0['color'],'title':_0x2b45a0['title']}};}return{'type':'format','content':o(_0x4b9680,'*Remove\x20highlight*',o(_0x4b9680,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x6098b5{['afterInit'](){const _0x5057ae=this['editor'];if(!_0x5057ae['plugins']['has']('HorizontalLineEditing'))return;_0x5057ae['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x19b205=_0x5057ae['plugins']['get']('TrackChangesEditing'),_0x30f206=_0x5057ae['locale'];_0x19b205['descriptionFactory']['registerElementLabel']('horizontalLine',_0x59dec8=>o(_0x30f206,'ELEMENT_HORIZONTAL_LINE',_0x59dec8));}}class ot extends _0x6098b5{['afterInit'](){const _0x44f5d6=this['editor'];if(!_0x44f5d6['plugins']['has']('HtmlEmbed'))return;const _0x1d616f=_0x44f5d6['plugins']['get']('TrackChangesEditing'),_0x5387f5=_0x44f5d6['locale'];_0x1d616f['descriptionFactory']['registerElementLabel']('rawHtml',_0x15667e=>o(_0x5387f5,'ELEMENT_HTML_EMBED',_0x15667e)),_0x1d616f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1d616f['descriptionFactory']['registerDescriptionCallback'](_0xd0f2c1=>{if('attribute'!=_0xd0f2c1['type'])return;const {data:_0x218868}=_0xd0f2c1;if(_0x218868&&'value'==_0x218868['key']&&_0xd0f2c1['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x145cd2=o(_0x5387f5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5387f5,'*Change\x20%0\x20content*',_0x145cd2)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b675e=this['editor'],_0x37f870=_0x2b675e['locale'];_0x2b675e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3752cf=>{if('formatBlock'!=_0x3752cf['type'])return;const {data:_0x5db620}=_0x3752cf;if(_0x5db620&&'htmlEmbed'==_0x5db620['commandName']){const _0x1cca78=o(_0x37f870,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x37f870,'*Change\x20%0\x20content*',_0x1cca78)};}});}}class rt extends _0x6098b5{['afterInit'](){const _0x198ad3=this['editor'];if(!_0x198ad3['plugins']['has']('ImageEditing'))return;const _0x52a4f7=_0x198ad3['plugins']['get']('TrackChangesEditing'),_0x8aa4bb=_0x198ad3['plugins']['get']('ImageUtils'),_0x9daddc=_0x198ad3['locale'];_0x52a4f7['enableCommand']('insertImage'),_0x52a4f7['descriptionFactory']['registerElementLabel']('imageBlock',_0x1e7b55=>o(_0x9daddc,'ELEMENT_IMAGE',_0x1e7b55)),_0x52a4f7['descriptionFactory']['registerElementLabel']('imageInline',_0x1b533d=>o(_0x9daddc,'ELEMENT_INLINE_IMAGE',_0x1b533d)),_0x52a4f7['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x9daddc,'ELEMENT_CAPTION')),_0x198ad3['plugins']['has']('ImageUploadEditing')&&_0x52a4f7['enableCommand']('uploadImage'),_0x198ad3['plugins']['has']('ImageBlockEditing')&&_0x198ad3['plugins']['has']('ImageInlineEditing')&&(_0x52a4f7['enableCommand']('imageTypeInline',(_0x5b93b8,_0x32bc61)=>{const _0x5c2bfd=_0x8aa4bb['getClosestSelectedImageElement'](_0x198ad3['model']['document']['selection']);_0x198ad3['model']['change'](()=>{_0x52a4f7['markBlockFormat'](_0x5c2bfd,{'commandName':'imageTypeInline','commandParams':[_0x32bc61]},[],'convertBlockImageToInline');});}),_0x52a4f7['enableCommand']('imageTypeBlock',(_0x13bd8c,_0x6883e7)=>{_0x198ad3['model']['change'](_0x2856ac=>{let _0x46437a=_0x8aa4bb['getClosestSelectedImageElement'](_0x198ad3['model']['document']['selection']),_0x4f37e9=_0x2856ac['createRangeOn'](_0x46437a);const _0x282e85=_0x4c40a6['fromPosition'](_0x4f37e9['start'],'toPrevious'),_0x134e2a=_0x4c40a6['fromPosition'](_0x4f37e9['end'],'toNext');_0x52a4f7['forceDefaultExecution'](()=>_0x13bd8c(_0x6883e7)),_0x46437a=_0x8aa4bb['getClosestSelectedImageElement'](_0x198ad3['model']['document']['selection']),_0x4f37e9=_0x2856ac['createRangeOn'](_0x46437a);const _0x2d2f17=_0x2856ac['createRange'](_0x282e85,_0x134e2a);_0x282e85['detach'](),_0x134e2a['detach'](),_0x52a4f7['markBlockFormat'](_0x46437a,{'commandName':'imageTypeInline','commandParams':[_0x6883e7]},[],'convertInlineImageToBlock'),_0x2d2f17['start']['isBefore'](_0x4f37e9['start'])&&_0x52a4f7['markInsertion'](_0x2856ac['createRange'](_0x2d2f17['start'],_0x4f37e9['start']),'convertInlineImageToBlock'),_0x4f37e9['end']['isBefore'](_0x2d2f17['end'])&&_0x52a4f7['markInsertion'](_0x2856ac['createRange'](_0x4f37e9['end'],_0x2d2f17['end']),'convertInlineImageToBlock');});}),_0x52a4f7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x52a4f7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x52a4f7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x52a4f7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x52a4f7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x52a4f7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3e97da])=>{const _0x3531b1=_0x52a4f7['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x574c1c=_0x3e97da['start'],_0x104fd5=_0x3e97da['end'];const _0x4ced1c=_0x198ad3['model']['schema']['getNearestSelectionRange'](_0x574c1c,'backward'),_0x3ea5a2=_0x198ad3['model']['schema']['getNearestSelectionRange'](_0x104fd5,'forward');_0x4ced1c['isCollapsed']&&(_0x574c1c=_0x4ced1c['start']),_0x3ea5a2['isCollapsed']&&(_0x104fd5=_0x3ea5a2['end']),_0x3531b1([_0x198ad3['model']['createRange'](_0x574c1c,_0x104fd5)]);}),_0x52a4f7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5db450),_0x52a4f7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5db450)),_0x198ad3['plugins']['has']('ImageCaptionEditing')&&(_0x52a4f7['enableCommand']('toggleImageCaption',(_0x53f384,_0x5743fc)=>{const _0x27fec4=_0x198ad3['plugins']['get']('ImageCaptionUtils');let _0x4782c0=_0x8aa4bb['getClosestSelectedImageElement'](_0x198ad3['model']['document']['selection']),_0x352d15=_0x27fec4['getCaptionFromImageModelElement'](_0x4782c0);_0x198ad3['model']['change'](()=>{if(_0x352d15)return void _0x52a4f7['markDeletion'](_0x198ad3['model']['createRangeOn'](_0x352d15));const _0x32b733=_0x8aa4bb['isBlockImage'](_0x4782c0);_0x53f384(_0x5743fc),_0x4782c0=_0x8aa4bb['getClosestSelectedImageElement'](_0x198ad3['model']['document']['selection']),_0x352d15=_0x27fec4['getCaptionFromImageModelElement'](_0x4782c0),_0x52a4f7['markInsertion'](_0x198ad3['model']['createRangeOn'](_0x352d15),_0x32b733?null:'imageCaption');});}),_0x52a4f7['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5db450));const _0x471230=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x40270d(_0x26b82e,_0x446797){const _0x21af6c=_0x471230['findIndex'](({type:_0xd0cad8,subType:_0x12b7af})=>_0x26b82e['type']==_0xd0cad8&&_0x26b82e['subType']==_0x12b7af),_0x2af955=_0x471230['findIndex'](({type:_0xd06765,subType:_0x50026c})=>_0x446797['type']==_0xd06765&&_0x446797['subType']==_0x50026c);if(_0x21af6c<0x0||_0x2af955<0x0)return!0x1;const _0x46d66f=_0x26b82e['getFirstRange'](),_0x279ae5=_0x446797['getFirstRange']();if((0x0==_0x21af6c||0x1==_0x21af6c)&&0x2==_0x2af955&&_0x46d66f['isIntersecting'](_0x279ae5))return!0x0;if(0x2==_0x21af6c&&0x3==_0x2af955){const _0x43dfb3=_0x52a4f7['_findSuggestions'](_0x46d66f,'insertion')['filter'](({suggestion:_0x4366a3,meta:_0x417ce0})=>_0x417ce0['isOwn']&&'convertInlineImageToBlock'==_0x4366a3['subType']);if(_0x43dfb3['length']>0x1&&_0x279ae5['end']['isEqual'](_0x46d66f['start']))return!0x0;if(0x1==_0x43dfb3['length']&&(_0x46d66f['start']['isEqual'](_0x279ae5['end'])||_0x46d66f['end']['isEqual'](_0x279ae5['start'])))return!0x0;}if(0x3==_0x21af6c&&0x3==_0x2af955&&_0x46d66f['start']['isBefore'](_0x279ae5['start'])){const _0x461306=_0x46d66f['end']['nodeAfter'],_0x5b2132=_0x279ae5['start']['nodeBefore'];return _0x8aa4bb['isBlockImage'](_0x461306)&&_0x461306===_0x5b2132;}return!0x1;}function _0x5db450(_0x358a7f,_0x184a7c){return _0x40270d(_0x358a7f,_0x184a7c)?[_0x358a7f,_0x184a7c]:_0x40270d(_0x184a7c,_0x358a7f)?[_0x184a7c,_0x358a7f]:null;}_0x198ad3['plugins']['has']('ImageResize')&&(_0x52a4f7['enableDefaultAttributesIntegration']('resizeImage'),_0x52a4f7['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x9daddc,'FORMAT_IMAGE_SIZE'))),_0x198ad3['plugins']['has']('ImageTextAlternativeEditing')&&_0x52a4f7['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x198ad3['plugins']['has']('PictureEditing')&&_0x52a4f7['descriptionFactory']['registerDescriptionCallback'](_0x353826=>{if('attribute'!=_0x353826['type'])return;const {data:_0x3596f6}=_0x353826;return _0x3596f6&&'sources'==_0x3596f6['key']?{'type':'format','content':''}:void 0x0;}),_0x198ad3['plugins']['has']('ImageSizeAttributes')&&_0x52a4f7['descriptionFactory']['registerDescriptionCallback'](_0x37be19=>{if('attribute'!=_0x37be19['type'])return;const {data:_0x4859f4}=_0x37be19;return!_0x4859f4||'width'!=_0x4859f4['key']&&'height'!=_0x4859f4['key']?void 0x0:{'type':'format','content':''};}),_0x52a4f7['descriptionFactory']['registerDescriptionCallback'](_0x4b5b6d=>{if(!!_0x471230['find'](({type:_0x37d7e8,subType:_0x5e1652})=>_0x4b5b6d['type']==_0x37d7e8&&_0x4b5b6d['subType']==_0x5e1652))return _0x4b5b6d['previous']?{}:void 0x0;}),_0x52a4f7['descriptionFactory']['registerDescriptionCallback'](_0xfe0af0=>{if('insertion'==_0xfe0af0['type']||'deletion'==_0xfe0af0['type']){const _0x2a7579=_0xfe0af0['getContainedElement']();if(_0x2a7579&&_0x2a7579['is']('element','caption'))return{'type':'insertion'==_0xfe0af0['type']?'addObject':'removeObject','element':_0x2a7579,'quantity':0x1};}}),_0x52a4f7['descriptionFactory']['registerDescriptionCallback'](_0x155351=>'formatBlock'==_0x155351['type']&&'convertInlineImageToBlock'==_0x155351['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x155351['type']&&'convertBlockImageToInline'==_0x155351['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x52a4f7['descriptionFactory']['registerDescriptionCallback'](_0x1e3c99=>{if('attribute'!=_0x1e3c99['type'])return;const {data:_0x52befd}=_0x1e3c99;if(!_0x52befd||'alt'!=_0x52befd['key'])return;const _0x2e0dce=_0x52befd['newValue'];return _0x2e0dce?{'type':'format','content':o(_0x9daddc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2e0dce+'\x22')}:{'type':'format','content':o(_0x9daddc,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57f4e9=this['editor'],_0x23ec8c=_0x57f4e9['locale'];_0x57f4e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdfee8b=>{if('formatBlock'!=_0xdfee8b['type']&&'formatInline'!=_0xdfee8b['type'])return;const {data:_0x408caf}=_0xdfee8b;if(_0x408caf){if('imageTextAlternative'==_0x408caf['commandName']){const _0x4ffae1=_0x408caf['commandParams'][0x0]['newValue'];return _0x4ffae1?{'type':'format','content':o(_0x23ec8c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4ffae1+'\x22')}:{'type':'format','content':o(_0x23ec8c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x408caf['commandName']){const _0x2081d3=_0x408caf['commandParams'][0x0]['width'];return _0x2081d3?{'type':'format','content':o(_0x23ec8c,'*Set\x20image\x20width:*\x20%0',_0x2081d3)}:{'type':'format','content':o(_0x23ec8c,'*Reset\x20image\x20width*')};}}});}}class at extends _0x6098b5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x110f05=this['editor']['locale'],_0xcdb15a=this['editor']['plugins']['get']('TrackChangesEditing');_0xcdb15a['enableDefaultAttributesIntegration']('replaceImageSource'),_0xcdb15a['descriptionFactory']['registerDescriptionCallback'](_0x47fee7=>{if('attribute'!=_0x47fee7['type'])return;const {data:_0x51f87d}=_0x47fee7;return _0x51f87d&&'src'==_0x51f87d['key']?_0x51f87d['newValue']&&_0x51f87d['oldValue']?{'type':'format','content':o(_0x110f05,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4a3f39=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a3f39['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4a3f39['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a3f39['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4a3f39['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4df104=this['editor'],_0x947f95=_0x4df104['locale'];_0x4df104['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa2b689=>{if('formatBlock'!=_0xa2b689['type']&&'formatInline'!=_0xa2b689['type'])return;const {data:_0x407aea}=_0xa2b689;if(!_0x407aea||'replaceImageSource'!=_0x407aea['commandName'])return;return{'type':'format','content':o(_0x947f95,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x6098b5{['afterInit'](){const _0x423425=this['editor'];if(!_0x423425['plugins']['has']('ImageStyleEditing'))return;const _0x3d9e8e=_0x423425['plugins']['get']('TrackChangesEditing'),_0x55ae3c=_0x423425['plugins']['get']('ImageUtils'),_0x596f67={};_0x3d9e8e['enableCommand']('imageStyle',(_0x3e9a00,_0x5536d7)=>{const _0x49cd8d=_0x423425['plugins']['get']('Users')['me'],_0x5c6941=_0x423425['commands']['get']('imageStyle');let _0x454101=_0x55ae3c['getClosestSelectedImageElement'](_0x423425['model']['document']['selection']),_0x363723=_0x423425['model']['createRangeOn'](_0x454101),_0x23b5a5=_0x5c6941['value'];if(_0x23b5a5==_0x5536d7['value'])return;const _0xddc08b={'commandName':'imageStyle','commandParams':[_0x5536d7],'formatGroupId':_0x137421()};_0x423425['model']['change'](()=>{if(_0x3d9e8e['getSuggestions']()['filter'](_0x24dc7e=>_0x24dc7e['isInContent']&&_0x49cd8d==_0x24dc7e['author']&&('formatBlock'==_0x24dc7e['type']||'formatInline'==_0x24dc7e['type'])&&('imageStylePreApply'==_0x24dc7e['subType']||'imageStylePostApply'==_0x24dc7e['subType'])&&_0x24dc7e['getFirstRange']()['isEqual'](_0x363723))['forEach'](_0x39e00e=>_0x3d9e8e['discardSuggestion'](_0x39e00e['head'])),_0x454101=_0x55ae3c['getClosestSelectedImageElement'](_0x423425['model']['document']['selection']),_0x363723=_0x423425['model']['createRangeOn'](_0x454101),_0x5c6941['refresh'](),_0x423425['commands']['get']('imageTypeInline')['refresh'](),_0x423425['commands']['get']('imageTypeBlock')['refresh'](),_0x23b5a5=_0x5c6941['value'],_0x23b5a5!=_0x5536d7['value'])return _0x55ae3c['isInlineImage'](_0x454101)&&_0x5c6941['shouldConvertImageType'](_0x5536d7['value'],_0x454101)?(_0x3e9a00({..._0x5536d7,'setImageSizes':!0x1}),_0x454101=_0x55ae3c['getClosestSelectedImageElement'](_0x423425['model']['document']['selection']),void _0x3d9e8e['markBlockFormat'](_0x454101,{..._0xddc08b,'commandReversedParams':[{'value':_0x23b5a5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x55ae3c['isBlockImage'](_0x454101)?_0x3d9e8e['markBlockFormat'](_0x454101,_0xddc08b,[],'imageStylePostApply'):_0x3d9e8e['markInlineFormat'](_0x363723,_0xddc08b,'imageStylePostApply'));});});for(const _0x1fe1a2 of _0x423425['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x596f67[_0x1fe1a2['name']]=_0x1fe1a2['title']['toLowerCase']();_0x3d9e8e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3d9e8e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3d9e8e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3d9e8e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4a6201])=>{_0x55ae3c['setImageNaturalSizeAttributes'](_0x4a6201['getContainedElement']());}),_0x3d9e8e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x51e8da,_0x413a25)=>{_0x3d9e8e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x51e8da,{'commandName':_0x413a25['commandName'],'commandParams':_0x413a25['commandReversedParams']});}),_0x3d9e8e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x34b1bf,_0x495f77){if(_0xffaeb(_0x34b1bf,_0x495f77))return[_0x34b1bf,_0x495f77];if(_0xffaeb(_0x495f77,_0x34b1bf))return[_0x495f77,_0x34b1bf];return null;});const _0x19b81f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xffaeb(_0x3d441a,_0x337cf8){const _0x4b6615=_0x19b81f['findIndex'](({type:_0x554245,subType:_0x3379e2})=>_0x3d441a['type']==_0x554245&&_0x3d441a['subType']==_0x3379e2),_0x56ac10=_0x19b81f['findIndex'](({type:_0x35c49b,subType:_0x1fa674})=>_0x337cf8['type']==_0x35c49b&&_0x337cf8['subType']==_0x1fa674);if(_0x4b6615<0x0||_0x56ac10<0x0)return!0x1;const _0x3ee665=_0x3d441a['getFirstRange'](),_0x30c1ed=_0x337cf8['getFirstRange']();if((0x0==_0x4b6615||0x1==_0x4b6615)&&0x2==_0x56ac10&&_0x3ee665['isIntersecting'](_0x30c1ed))return!0x0;if(0x2==_0x4b6615&&0x3==_0x56ac10){const _0x18ba03=_0x3d9e8e['_findSuggestions'](_0x3ee665,'insertion')['filter'](({suggestion:_0x3443be,meta:_0x14f047})=>_0x14f047['isOwn']&&'convertInlineImageToBlock'==_0x3443be['subType']);if(_0x18ba03['length']>0x1&&_0x30c1ed['end']['isEqual'](_0x3ee665['start']))return!0x0;if(0x1==_0x18ba03['length']&&(_0x3ee665['start']['isEqual'](_0x30c1ed['end'])||_0x3ee665['end']['isEqual'](_0x30c1ed['start'])))return!0x0;}if(0x3==_0x4b6615&&0x3==_0x56ac10&&_0x3ee665['start']['isBefore'](_0x30c1ed['start'])){const _0x80ff7f=_0x3ee665['end']['nodeAfter'],_0x49ec5a=_0x30c1ed['start']['nodeBefore'];return _0x55ae3c['isBlockImage'](_0x80ff7f)&&_0x80ff7f===_0x49ec5a;}return!0x1;}_0x423425['model']['document']['registerPostFixer'](()=>{let _0x33216e=!0x1;const _0xd01f4=Array['from'](_0x423425['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b5e3d,data:_0x282541}of _0xd01f4){const {group:_0x242131,type:_0x10efa1,subType:_0x8c8ae8,id:_0x3cb223}=_0x3d9e8e['_splitMarkerName'](_0x3b5e3d);if('suggestion'==_0x242131&&_0x3d9e8e['hasSuggestion'](_0x3cb223)){if('formatBlock'==_0x10efa1&&('imageStylePreApply'==_0x8c8ae8||'imageStylePostApply'==_0x8c8ae8)){const _0x5c183f=_0x3d9e8e['getSuggestion'](_0x3cb223);if(_0x282541['newRange']){const _0x2b0aa8=_0x5c183f['getFirstRange']()['getContainedElement']();if(_0x55ae3c['isBlockImage'](_0x2b0aa8))continue;_0x3d9e8e['discardSuggestion'](_0x5c183f),_0x33216e=!0x0;}}if('insertion'==_0x10efa1&&'imageCaption'==_0x8c8ae8&&!_0x282541['newRange']){const _0x8ef637=_0x3d9e8e['getSuggestion'](_0x3cb223);_0x8ef637['next']&&_0x8ef637['next']['isInContent']&&(_0x3d9e8e['discardSuggestion'](_0x8ef637['next']),_0x33216e=!0x0);}}}return _0x33216e;}),this['_registerLegacyDescription'](_0x596f67);}['_registerLegacyDescription'](_0x2b4963){const _0x3719a3=this['editor'],_0x44e369=_0x3719a3['locale'];_0x3719a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1de60f=>{if('formatBlock'!=_0x1de60f['type']&&'formatInline'!=_0x1de60f['type'])return;const {data:_0x19d9d4}=_0x1de60f;if(!_0x19d9d4||'imageStyle'!=_0x19d9d4['commandName'])return;const _0x1cb39c=_0x19d9d4['commandParams'][0x0]['value'];return _0x3d7c35('side'===_0x1cb39c?o(_0x44e369,'FORMAT_SIDE_IMAGE'):_0x2b4963[_0x1cb39c]||_0x1cb39c);function _0x3d7c35(_0x337fca){return{'type':'format','content':o(_0x44e369,'*Format:*\x20%0',_0x337fca)};}});}}class ut extends _0x6098b5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1ee16d){super(_0x1ee16d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x66b727=this['editor'],_0x4ed54f=_0x66b727['commands']['get']('importWord'),_0x446adf=_0x66b727['commands']['get']('trackChanges');_0x4ed54f&&(_0x4ed54f['on']('execute',(_0xf5b8b,[,_0x3c62d7])=>{this['_trackChangesValueDuringImport']=_0x446adf['value'],_0x3c62d7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4ed54f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4ed54f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x446adf['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x66b727['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x58760e,_0x36f4af){const {suggestions:_0x3119dd}=_0x36f4af,_0x7eb219=this['editor']['commands']['get']('trackChanges'),_0x526388=_0x7eb219['value'];this['_trackChangesValueDuringImport']!==_0x526388&&(_0x7eb219['execute'](),this['_trackChangesExecuted']=!0x0),_0x3119dd&&_0x3119dd['forEach'](({id:_0x5d5de7,type:_0x75fc44,author:_0xfe5da8,created_at:_0x28a004})=>{const _0x137da5={'id':_0x5d5de7,'type':_0x75fc44,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xfe5da8,'createdAt':_0x28a004?new Date(_0x28a004):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x137da5);});}}class ft extends _0x6098b5{['afterInit'](){const _0x2229c0=this['editor'],_0x458a55=_0x2229c0['plugins']['get']('TrackChangesEditing');if(_0x2229c0['plugins']['has']('IndentEditing')&&(_0x458a55['enableCommand']('indent'),_0x458a55['enableCommand']('outdent')),_0x2229c0['plugins']['has']('IndentBlock')){for(const _0x3a2218 of['indentBlock','outdentBlock'])_0x458a55['enableDefaultAttributesIntegration'](_0x3a2218);}const _0x8db00=_0x2229c0['locale'];_0x458a55['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x8db00,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59d5e4=this['editor'],_0x269ec5=_0x59d5e4['locale'],_0x201e77=_0x59d5e4['plugins']['get']('TrackChangesEditing');_0x201e77['descriptionFactory']['registerDescriptionCallback'](_0x1c8155=>{if('formatBlock'!=_0x1c8155['type'])return;const {data:_0xebce3}=_0x1c8155;if(!_0xebce3)return;if('indentBlock'!=_0xebce3['commandName']&&'outdentBlock'!=_0xebce3['commandName'])return;const _0x4537f=_0x1c8155['getItems']()[0x0],_0x164bf1=_0x201e77['descriptionFactory']['getItemLabel'](_0x4537f);return'indentBlock'==_0xebce3['commandName']?{'type':'format','content':o(_0x269ec5,'*Indent:*\x20%0',_0x164bf1)}:'outdentBlock'==_0xebce3['commandName']?{'type':'format','content':o(_0x269ec5,'*Outdent:*\x20%0',_0x164bf1)}:void 0x0;});}}class ht extends _0x6098b5{static get['requires'](){return[_0x48d9bf];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x6098b5{['afterInit'](){const _0x5878da=this['editor'];if(!_0x5878da['plugins']['has']('LinkEditing'))return;const _0x3ba146=_0x5878da['plugins']['get']('TrackChangesEditing'),_0x25503b=_0x5878da['commands']['get']('link');_0x3ba146['enableDefaultAttributesIntegration']('link'),_0x3ba146['enableDefaultAttributesIntegration']('unlink');for(const _0x6ecf20 of _0x25503b['manualDecorators'])_0x3ba146['descriptionFactory']['registerAttributeLabel'](_0x6ecf20['id'],'link\x20('+_0x6ecf20['label']['toLowerCase']()+')');_0x3ba146['descriptionFactory']['registerDescriptionCallback'](_0x5a6622=>{if('attribute'!=_0x5a6622['type'])return;const {data:_0x5c1579}=_0x5a6622;if(!_0x5c1579||'linkHref'!=_0x5c1579['key'])return;const _0x1a9816=_0x5c1579['newValue'],_0x690cbc=_0x5878da['locale'];return{'type':'format','content':null==_0x1a9816?o(_0x690cbc,'*Remove\x20link*'):o(_0x690cbc,'*Set\x20link:*\x20%0','\x22'+_0x1a9816+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cd874=this['editor'],_0x1bf258=_0x1cd874['locale'];_0x1cd874['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bb5e4=>{if('formatInline'!=_0x4bb5e4['type'])return;const {data:_0x543db1}=_0x4bb5e4;if(_0x543db1){if('link'==_0x543db1['commandName']){const _0x3d1d29=_0x543db1['commandParams'][0x0];return{'type':'format','content':o(_0x1bf258,'*Set\x20link:*\x20%0','\x22'+_0x3d1d29+'\x22')};}return'unlink'==_0x543db1['commandName']?{'type':'format','content':o(_0x1bf258,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x6098b5{['afterInit'](){const _0x5dd3a0=this['editor'],_0xa162e0=_0x5dd3a0['locale'];if(!_0x5dd3a0['plugins']['has']('LegacyListEditing'))return;const _0x4a11ef=_0x5dd3a0['plugins']['get']('TrackChangesEditing'),_0x278966=_0x5dd3a0['plugins']['has']('LegacyTodoListEditing');function _0x1ae0c7(_0x3c2e08){return()=>{const _0x201d28=_0x5dd3a0['model']['document']['selection'],_0x36a057=_0x5dd3a0['commands']['get'](_0x3c2e08);if(_0x36a057['value'])return void _0x5dd3a0['execute']('paragraph',{});const _0x3200cd=_0x3c2e08['slice'](0x0,-0x4),_0x4e4bfd=function(_0x34e936,_0x513554,_0x9e5cf3){let _0x4bee5e=Array['from'](_0x34e936)['filter'](_0x3d0130=>function(_0x287971,_0x2a3ada){return _0x2a3ada['checkChild'](_0x287971['parent'],'listItem')&&!_0x2a3ada['isObject'](_0x287971);}(_0x3d0130,_0x9e5cf3));_0x4bee5e=_0x4bee5e['filter'](_0x30eeed=>!_0x30eeed['is']('element','listItem')||_0x30eeed['getAttribute']('listType')!=_0x513554);const _0x5397a1=new Set();for(const _0x8908de of _0x4bee5e)_0x8908de['is']('element','listItem')?_0x5397a1['add'](Le(_0x8908de)):_0x5397a1['add'](_0x8908de);return Array['from'](_0x5397a1);}(_0x201d28['getSelectedBlocks'](),_0x3200cd,_0x5dd3a0['model']['schema']);_0x5dd3a0['model']['change'](()=>{for(const _0x2e8c99 of _0x4e4bfd)_0x4a11ef['markBlockFormat'](_0x2e8c99,{'commandName':_0x3c2e08,'commandParams':[{'forceValue':!_0x36a057['value']}],'formatGroupId':'blockName'},Ee(_0x2e8c99));});};}function _0x433311(_0x85f7bb){return()=>{const _0x33a533=function(_0x485e4c){let _0xafce0a=Array['from'](_0x485e4c);const _0x20e07d=_0xafce0a['findIndex'](_0x5e01b2=>'listItem'!=_0x5e01b2['name']);return _0x20e07d>-0x1&&(_0xafce0a=_0xafce0a['slice'](0x0,_0x20e07d)),_0xafce0a;}(_0x5dd3a0['model']['document']['selection']['getSelectedBlocks']()),_0xda5600=_0x5dd3a0['model']['createRange'](_0x5dd3a0['model']['createPositionAt'](_0x33a533[0x0],'before'),_0x5dd3a0['model']['createPositionAt'](_0x33a533[_0x33a533['length']-0x1],'end'));_0x5dd3a0['model']['change'](()=>{_0x4a11ef['markBlockFormat'](_0xda5600,{'commandName':_0x85f7bb,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2b3e00){const _0x129dca=new Set();for(const _0x6d0d7c of _0x2b3e00){let _0x4fbbb6=_0x6d0d7c['nextSibling'];for(;_0x4fbbb6&&_0x4fbbb6['getAttribute']('listIndent')>_0x6d0d7c['getAttribute']('listIndent');)_0x129dca['add'](_0x4fbbb6),_0x4fbbb6=_0x4fbbb6['nextSibling'];}return Array['from'](_0x129dca);}(_0x33a533));});};}_0x4a11ef['enableCommand']('numberedList',_0x1ae0c7('numberedList')),_0x4a11ef['enableCommand']('bulletedList',_0x1ae0c7('bulletedList')),_0x278966&&_0x4a11ef['enableCommand']('todoList',_0x1ae0c7('todoList')),_0x4a11ef['enableCommand']('indentList',_0x433311('indentList')),_0x4a11ef['enableCommand']('outdentList',_0x433311('outdentList')),_0x278966&&_0x4a11ef['enableCommand']('checkTodoList',()=>{const _0xbaeac=_0x5dd3a0['commands']['get']('checkTodoList'),_0x1974b4=Array['from'](_0xbaeac['_selectedElements']);_0x1974b4['filter'](_0x2ef4fb=>_0x2ef4fb['getAttribute']('todoListChecked')!=_0xbaeac['value']),_0x5dd3a0['model']['change'](()=>{for(const _0x2e3b9b of _0x1974b4)_0x4a11ef['markBlockFormat'](_0x2e3b9b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xbaeac['value']}]});});}),_0x4a11ef['descriptionFactory']['registerElementLabel']('listItem',_0x5ec94c=>o(_0xa162e0,'ELEMENT_LIST_ITEM',_0x5ec94c)),_0x4a11ef['descriptionFactory']['registerDescriptionCallback'](_0x5efaf6=>{if('formatBlock'!=_0x5efaf6['type']&&'formatInline'!=_0x5efaf6['type'])return;const {data:_0x4a70ff}=_0x5efaf6;if(_0x4a70ff){if('numberedList'==_0x4a70ff['commandName']||'bulletedList'==_0x4a70ff['commandName']||'todoList'==_0x4a70ff['commandName'])switch(_0x4a70ff['commandName']['replace']('List','')){case'bulleted':return _0x4c03d1(o(_0xa162e0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c03d1(o(_0xa162e0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c03d1(o(_0xa162e0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4a70ff['commandName'])return{'type':'format','content':o(_0xa162e0,'*Indent:*\x20%0',o(_0xa162e0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4a70ff['commandName'])return{'type':'format','content':o(_0xa162e0,'*Outdent:*\x20%0',o(_0xa162e0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4a70ff['commandName'])return _0x4a70ff['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa162e0,'*Check\x20item*')}:{'type':'format','content':o(_0xa162e0,'*Uncheck\x20item*')};}function _0x4c03d1(_0x33f9e2){return{'type':'format','content':o(_0xa162e0,'*Change\x20to:*\x20%0',_0x33f9e2)};}});}}function Le(_0x9f6f23){const _0x3fc6d2=_0x9f6f23['getAttribute']('listIndent');if(0x0==_0x3fc6d2)return _0x9f6f23;let _0x1597ec=_0x9f6f23;for(;_0x9f6f23['previousSibling']&&_0x9f6f23['previousSibling']['is']('element','listItem');){const _0x259b70=_0x9f6f23['previousSibling']['getAttribute']('listIndent');if(_0x259b70==_0x3fc6d2)_0x1597ec=_0x9f6f23['previousSibling'];else{if(_0x259b70<_0x3fc6d2)break;}_0x9f6f23=_0x9f6f23['previousSibling'];}return _0x1597ec;}function Ee(_0x21cf7c){const _0x573e06=[];if(_0x21cf7c['is']('element','listItem')&&_0x21cf7c['getAttribute']('listIndent')>0x0){let _0x178e13=_0x21cf7c['nextSibling'];for(;_0x178e13&&'listItem'==_0x178e13['name']&&_0x178e13['getAttribute']('listIndent')==_0x21cf7c['getAttribute']('listIndent');)_0x573e06['push'](_0x178e13),_0x178e13=_0x178e13['nextSibling'];}return _0x573e06;}class mt extends _0x6098b5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3d44dd=this['editor']['config']['get']('list.properties'),_0x5e934c=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d44dd['styles']&&_0x5e934c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3d44dd['reversed']&&_0x5e934c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3d44dd['startIndex']&&_0x5e934c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5e934c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1abc13,_0x36a289={}){const _0x43244e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bff98=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x43244e['markMultiRangeBlockFormat'](_0x5bff98,{'commandName':'listStyle','commandParams':[{'type':_0x36a289['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5461f8,_0x10d950={}){const _0x356629=this['editor']['plugins']['get']('TrackChangesEditing'),_0x144d26=this['_getSuggestionBlocks'](_0x3a9dd8=>_0x3a9dd8['is']('element','listItem')&&'numbered'===_0x3a9dd8['getAttribute']('listType'));if(_0x144d26['length']<0x1)return;const _0x144255=_0x144d26['map'](_0x17335c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x17335c,'before'),this['editor']['model']['createPositionAt'](_0x17335c,0x0)));this['editor']['model']['change'](()=>{_0x356629['markMultiRangeBlockFormat'](_0x144255,{'commandName':'listReversed','commandParams':[{'reversed':_0x10d950['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x22e933,_0x146cbc={}){const _0x3ccb48=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5434aa=this['_getSuggestionBlocks'](_0xb1df5=>_0xb1df5['is']('element','listItem')&&'numbered'===_0xb1df5['getAttribute']('listType'));if(_0x5434aa['length']<0x1)return;const _0x139c80=_0x5434aa['map'](_0x4f52c4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f52c4,'before'),this['editor']['model']['createPositionAt'](_0x4f52c4,0x0)));this['editor']['model']['change'](()=>{_0x3ccb48['markMultiRangeBlockFormat'](_0x139c80,{'commandName':'listStart','commandParams':[{'startIndex':_0x146cbc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x210809){if('formatBlock'!=_0x210809['type']&&'formatInline'!=_0x210809['type'])return;const _0x450042=this['editor']['locale'],{data:_0x9c95d1}=_0x210809;if(!_0x9c95d1)return;let _0x255c87,_0x19b89f;switch(_0x9c95d1['commandName']){case'listStyle':_0x255c87='*Change\x20to:*\x20%0',_0x19b89f={'type':'format','content':o(_0x450042,_0x255c87,o(_0x450042,this['_getTranslationKeyForListStyle'](_0x9c95d1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x255c87=_0x9c95d1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x19b89f={'type':'format','content':o(_0x450042,_0x255c87)};break;case'listStart':_0x255c87='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x19b89f={'type':'format','content':o(_0x450042,_0x255c87,_0x9c95d1['commandParams'][0x0]['startIndex'])};}return _0x19b89f;}['_getSuggestionBlocksForListStyle'](){const _0x48a087=this['editor']['plugins']['get']('LegacyListUtils');let _0x2d6a4b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2d6a4b[0x0]?.['is']('element','listItem')&&_0x2d6a4b['unshift'](..._0x48a087['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2d6a4b[_0x2d6a4b['length']-0x1]?.['is']('element','listItem')&&_0x2d6a4b['push'](..._0x48a087['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2d6a4b=[...new Set(_0x2d6a4b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2d6a4b=_0x2d6a4b['filter'](_0x1ee4f1=>_0x1ee4f1['is']('element','listItem'))),_0x2d6a4b;}['_getSuggestionBlocks'](_0x4b8d33){const _0xa6c3f1=this['editor']['plugins']['get']('LegacyListUtils');let _0x343e18=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4b8d33)['map'](_0x3dc4b1=>{const _0x249c6e=this['editor']['model']['createPositionAt'](_0x3dc4b1,0x0);return[..._0xa6c3f1['getSiblingNodes'](_0x249c6e,'backward'),..._0xa6c3f1['getSiblingNodes'](_0x249c6e,'forward')];})['flat']();return _0x343e18=[...new Set(_0x343e18)],_0x343e18;}['_getTranslationKeyForListStyle'](_0x29c026){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x29c026)||'default')['toUpperCase']()+'_LIST_'+_0x29c026['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x6098b5{['afterInit'](){const _0x3a5162=this['editor'];if(!_0x3a5162['plugins']['has']('MediaEmbedEditing'))return;const _0x20428b=_0x3a5162['plugins']['get']('TrackChangesEditing'),_0x31e298=_0x3a5162['locale'];_0x20428b['enableCommand']('mediaEmbed'),_0x20428b['descriptionFactory']['registerElementLabel']('media',_0x26c52e=>o(_0x31e298,'ELEMENT_MEDIA',_0x26c52e));}}class pt extends _0x6098b5{['afterInit'](){const _0x1becab=this['editor'];_0x1becab['plugins']['has']('MentionEditing')&&_0x1becab['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x6098b5{['afterInit'](){const _0xcfaa41=this['editor'];if(!_0xcfaa41['plugins']['has']('MergeFieldsEditing'))return;const _0x13e85a=_0xcfaa41['plugins']['get']('TrackChangesEditing'),_0x1eef4b=_0xcfaa41['locale'];_0x13e85a['enableCommand']('insertMergeField'),_0x13e85a['enableCommand']('insertMergeFieldBlock'),_0x13e85a['enableCommand']('insertMergeFieldImage'),_0x13e85a['descriptionFactory']['registerElementLabel']('mergeField',_0x33d3d4=>o(_0x1eef4b,'ELEMENT_MERGE_FIELD',_0x33d3d4)),_0x13e85a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2b4cca=>o(_0x1eef4b,'ELEMENT_MERGE_FIELD',_0x2b4cca)),_0x13e85a['descriptionFactory']['registerDescriptionCallback'](_0x1c8fc8=>{if('insertion'!=_0x1c8fc8['type']&&'deletion'!=_0x1c8fc8['type'])return;const _0x29729d=_0x1c8fc8['getContainedElement']();if(null==_0x29729d)return;const _0x2f4912=_0xcfaa41['plugins']['get']('MergeFieldsEditing');let _0x56c4a8;switch(_0x2f4912['getMergeFieldType'](_0x29729d)){case null:return;case'image':{const _0x6d7692=_0x2f4912['unwrapAffixes'](_0x29729d['getAttribute']('src'));_0x56c4a8=_0x2f4912['getLabel'](_0x6d7692)||_0x6d7692;break;}default:{const _0x531554=_0x29729d['getAttribute']('id');_0x56c4a8=_0x2f4912['getLabel'](_0x531554)||_0x531554;break;}}return'insertion'==_0x1c8fc8['type']?{'type':'insertion','content':o(_0x1eef4b,'*Insert:*\x20%0','\x22'+_0x56c4a8+'\x22\x20'+o(_0x1eef4b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1eef4b,'*Remove:*\x20%0','\x22'+_0x56c4a8+'\x22\x20'+o(_0x1eef4b,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x6098b5{['afterInit'](){const _0x15275d=this['editor'],_0x86e6ac=_0x15275d['plugins']['get']('TrackChangesEditing');_0x15275d['plugins']['has']('MultiLevelList')&&(_0x86e6ac['enableDefaultAttributesIntegration']('multiLevelList'),_0x86e6ac['descriptionFactory']['registerDescriptionCallback'](_0x4d99c1=>this['handleDescriptions'](_0x4d99c1)));}['handleDescriptions'](_0x375559){const _0x82890c=this['editor']['locale'],{data:_0x37ad65}=_0x375559,_0x2c3044={'type':'format','content':''};if(_0x37ad65&&'listMarkerStyle'==_0x37ad65['key']){if(!_0x37ad65['oldValue'])return{'type':'format','content':o(_0x82890c,'*Set\x20format:*\x20%0',o(_0x82890c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x37ad65['newValue']+')'};if(!_0x37ad65['newValue']){let _0x7f8b26=_0x375559['head'];for(;_0x7f8b26;){if(_0x7f8b26['data']&&'listType'==_0x7f8b26['data']['key']&&_0x7f8b26['data']['newValue'])return _0x2c3044;_0x7f8b26=_0x7f8b26['next'];}return{'type':'format','content':o(_0x82890c,'*Remove\x20format:*\x20%0',o(_0x82890c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x37ad65['oldValue']+')'};}}}}class bt extends _0x6098b5{['afterInit'](){const _0x199d79=this['editor'];if(!_0x199d79['plugins']['has']('PageBreakEditing'))return;_0x199d79['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2f12f4=_0x199d79['plugins']['get']('TrackChangesEditing'),_0x5f239c=_0x199d79['locale'];_0x2f12f4['descriptionFactory']['registerElementLabel']('pageBreak',_0x532e7=>o(_0x5f239c,'ELEMENT_PAGE_BREAK',_0x532e7));}}class yt extends _0x6098b5{['afterInit'](){const _0x3c452e=this['editor'];if(!_0x3c452e['plugins']['has']('Paragraph'))return;const _0x17aa9c=_0x3c452e['locale'],_0x1fe66e=_0x3c452e['plugins']['get']('TrackChangesEditing');_0x1fe66e['descriptionFactory']['registerElementLabel']('paragraph',_0x1e58b0=>o(_0x17aa9c,'ELEMENT_PARAGRAPH',_0x1e58b0)),_0x1fe66e['enableDefaultAttributesIntegration']('paragraph'),_0x1fe66e['enableCommand']('insertParagraph');const _0x935ce1=_0x1fe66e['descriptionFactory'];_0x935ce1['registerDescriptionCallback'](_0x175738=>{if('insertion'!==_0x175738['type'])return;const {start:_0x3350c0,end:_0x278618}=_0x175738['getFirstRange']();if(!_0x3350c0['isTouching'](_0x278618)||!_0x3350c0['nodeAfter'])return;const _0xa8436d=_0x3c452e['model']['schema'],_0x32103f=_0x3350c0['nodeAfter'];return _0xa8436d['isBlock'](_0x32103f)&&!_0xa8436d['isLimit'](_0x32103f)&&_0xa8436d['checkChild'](_0x32103f,'$text')?{'type':'insertion','content':o(_0x17aa9c,'*Insert:*\x20%0',_0x935ce1['getItemLabel'](_0x32103f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a1ded=this['editor'],_0x53f597=_0x5a1ded['locale'];_0x5a1ded['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x449ff0=>{if('formatBlock'!=_0x449ff0['type'])return;const {data:_0x152a9f}=_0x449ff0;return _0x152a9f&&'paragraph'==_0x152a9f['commandName']?{'type':'format','content':o(_0x53f597,'*Change\x20to:*\x20%0',o(_0x53f597,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x6098b5{['afterInit'](){const _0x5ac704=this['editor'];_0x5ac704['commands']['get']('replaceSource')&&_0x5ac704['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x6098b5{['afterInit'](){const _0x2606e3=this['editor'];if(!_0x2606e3['plugins']['has']('RemoveFormatEditing'))return;_0x2606e3['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42b956=this['editor'];_0x42b956['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xda0d23=>{if('formatBlock'!=_0xda0d23['type']&&'formatInline'!=_0xda0d23['type'])return;const {data:_0xe22510}=_0xda0d23;return _0xe22510&&'removeFormat'==_0xe22510['commandName']?{'type':'format','content':o(_0x42b956['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x6098b5{['afterInit'](){const _0x2d11b5=this['editor'];if(!_0x2d11b5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2642e7=_0x2d11b5['plugins']['get']('TrackChangesEditing');_0x2642e7['enableCommand']('goToPreviousRestrictedEditingException'),_0x2642e7['enableCommand']('goToNextRestrictedEditingException');const _0x51c79d=_0x2d11b5['plugins']['get']('RestrictedEditingModeEditing');_0x51c79d['enableCommand']('trackChanges'),_0x51c79d['enableCommand']('acceptSuggestion'),_0x51c79d['enableCommand']('discardSuggestion'),_0x51c79d['enableCommand']('acceptAllSuggestions'),_0x51c79d['enableCommand']('discardAllSuggestions'),_0x51c79d['enableCommand']('acceptSelectedSuggestions'),_0x51c79d['enableCommand']('discardSelectedSuggestions');}}class At extends _0x6098b5{['afterInit'](){const _0x5836a0=this['editor'];if(!_0x5836a0['plugins']['has']('ShiftEnter'))return;const _0x43867e=_0x5836a0['plugins']['get']('TrackChangesEditing');_0x43867e['enableCommand']('shiftEnter'),_0x43867e['descriptionFactory']['registerElementLabel']('softBreak',_0x1386ca=>o(_0x5836a0['locale'],'ELEMENT_LINE_BREAK',_0x1386ca));}}function an(_0x5c49be,_0x1eef65,_0x5976dd){const _0x2cd6c1=[];for(const _0x595c9e of _0x1eef65['getItems']())_0x595c9e['hasAttribute'](_0x5c49be)&&_0x2cd6c1['push'](_0x5976dd['createRangeOn'](_0x595c9e));return _0x2cd6c1;}class _t extends _0x6098b5{['afterInit'](){this['editor']['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand']());}['_enableEditingExceptionCommand'](){const _0x1cfb20=this['editor'],_0x558a73=_0x1cfb20['model'],_0x374e97=_0x1cfb20['locale'],_0x5c7d9c=_0x1cfb20['plugins']['get']('TrackChangesEditing'),_0x416822='restrictedEditingException',_0x422188=_0x1cfb20['commands']['get'](_0x416822);_0x5c7d9c['enableCommand'](_0x416822,(_0x568c52,_0x3e49e9={})=>{const _0xbc2c69=_0x558a73['document']['selection'];if(_0xbc2c69['isCollapsed'])return void _0x568c52(_0x3e49e9);const _0x21c78b=void 0x0!==_0x3e49e9['forceValue']?_0x3e49e9['forceValue']:!_0x422188['value'];_0x558a73['change'](()=>{const _0x5055a6=Array['from'](_0xbc2c69['getRanges']());for(const _0x202da8 of _0x5055a6){const _0x43d725=_0x21c78b?[_0x202da8]:an(_0x416822,_0x202da8,_0x558a73);for(const _0x45dc69 of _0x43d725)_0x5c7d9c['markInlineFormat'](_0x45dc69,{'commandName':_0x416822,'commandParams':[{'forceValue':_0x21c78b}]});}});}),_0x5c7d9c['descriptionFactory']['registerDescriptionCallback'](_0x188b69=>{if('formatBlock'!=_0x188b69['type']&&'formatInline'!=_0x188b69['type'])return;const {data:_0x494db5}=_0x188b69;return _0x494db5&&_0x494db5['commandName']==_0x416822?_0x494db5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x374e97,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x374e97,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x491471=this['editor'],_0x405e32=_0x491471['locale'],_0x43a657=_0x491471['plugins']['get']('TrackChangesEditing'),_0x460236='restrictedEditingExceptionBlock',_0x38955f=this['editor']['commands']['get'](_0x460236);_0x43a657['enableCommand'](_0x460236,(_0x3c4e81,_0x4c22e8={})=>{const _0x5b3355=this['editor']['model']['document']['selection'],_0x484b39=_0x4c22e8&&void 0x0!==_0x4c22e8['forceValue']?_0x4c22e8['forceValue']:!_0x38955f['value'];let _0x5e7481=[];if(_0x484b39){const _0x4c5772=Array['from'](_0x5b3355['getSelectedBlocks']())['filter'](_0x396490=>function(_0x448679){return!!_0x448679['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x396490)||function(_0x46c97f,_0x3d11ea){const _0x233b95=_0x3d11ea['createContext'](_0x46c97f['parent']);if(!_0x3d11ea['checkChild'](_0x233b95,'restrictedEditingException'))return!0x1;if(!_0x3d11ea['checkChild'](_0x233b95['push']('restrictedEditingException'),_0x46c97f))return!0x1;return!0x0;}(_0x396490,this['editor']['model']['schema']));_0x5e7481=to(_0x4c5772,_0x491471['model']);}else{const _0x3a3564=Array['from'](_0x5b3355['getSelectedBlocks']())['map'](_0xfeb3f0=>function(_0x3a0f87){let _0x5813cb=_0x3a0f87;for(;_0x5813cb['parent'];){if('restrictedEditingException'==_0x5813cb['parent']['name'])return _0x5813cb;_0x5813cb=_0x5813cb['parent'];}return null;}(_0xfeb3f0))['filter'](_0x28d680=>!!_0x28d680);_0x5e7481=to(_0x3a3564,_0x491471['model']);}_0x491471['model']['change'](()=>{for(const _0x4757a7 of _0x5e7481)_0x43a657['markBlockFormat'](_0x4757a7,{'commandName':_0x460236,'commandParams':[{'forceValue':_0x484b39}]});});}),_0x43a657['descriptionFactory']['registerDescriptionCallback'](_0x4573f1=>{const {data:_0x48aeff}=_0x4573f1;if(_0x48aeff&&_0x48aeff['commandName']==_0x460236)return _0x48aeff['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x405e32,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x405e32,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x6098b5{['afterInit'](){const _0x5b2bb1=this['editor'];if(!_0x5b2bb1['plugins']['has']('Style')||!_0x5b2bb1['plugins']['has']('DataSchema'))return;const _0x46038d=_0x5b2bb1['plugins']['get']('TrackChangesEditing'),_0x1d2d0c=_0x5b2bb1['locale'],_0x5dbabe=_0x5b2bb1['config']['get']('style')||{},_0x59549c=_0x5b2bb1['plugins']['get']('GeneralHtmlSupport'),_0x1304e1=_0x5b2bb1['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5b2bb1['plugins']['get']('DataSchema'),_0x5dbabe['definitions']);_0x46038d['enableDefaultAttributesIntegration']('style');const _0x66c9a3=new Set();for(const _0x4e8447 of _0x1304e1['block']){const _0x2f71bb=_0x59549c['getGhsAttributeNameForElement'](_0x4e8447['element']);_0x66c9a3['add'](_0x2f71bb);}const _0x92b9f6=new Set();for(const _0x3d497d of _0x1304e1['inline']){const _0x497ba9=_0x59549c['getGhsAttributeNameForElement'](_0x3d497d['element']);_0x92b9f6['add'](_0x497ba9);for(const _0x10456b of _0x3d497d['ghsAttributes'])_0x92b9f6['add'](_0x10456b);}for(const _0x44b80c of _0x66c9a3)_0x46038d['descriptionFactory']['registerAttributeLabel'](_0x44b80c,o(_0x1d2d0c,'FORMAT_STYLE'));for(const _0xfe96e1 of _0x92b9f6)_0x46038d['descriptionFactory']['registerAttributeLabel'](_0xfe96e1,o(_0x1d2d0c,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e25c1=this['editor'],_0x15758b=_0x4e25c1['locale'];_0x4e25c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5adbb0=>{if('formatBlock'!=_0x5adbb0['type']&&'formatInline'!=_0x5adbb0['type'])return;const {data:_0x5bcfd0}=_0x5adbb0;return _0x5bcfd0&&'style'===_0x5bcfd0['commandName']?_0x5bcfd0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x15758b,'*Set\x20format:*\x20%0',_0x5bcfd0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x15758b,'*Remove\x20format:*\x20%0',_0x5bcfd0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x6098b5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x40fb1d){super(_0x40fb1d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x13450c=this['editor'],_0x76534e=_0x13450c['model']['document']['selection'];if(!_0x13450c['plugins']['has']('TableEditing'))return;const _0x24fcc4=_0x13450c['locale'],_0x49d162=_0x13450c['plugins']['get']('TrackChangesEditing'),_0x2a04b2=_0x13450c['plugins']['get']('TableUtils');_0x49d162['descriptionFactory']['registerElementLabel']('table',_0x1eca91=>o(_0x24fcc4,'ELEMENT_TABLE',_0x1eca91)),this['_setupColumnsRowsFixing'](),_0x49d162['enableCommand']('insertTable'),_0x49d162['enableCommand']('selectTableRow'),_0x49d162['enableCommand']('selectTableColumn');for(const _0x10df3d of['insertTableRowAbove','insertTableRowBelow']){const _0x36ec61=_0x13450c['commands']['get'](_0x10df3d);_0x49d162['enableCommand'](_0x10df3d,_0x18ff63=>{_0x13450c['model']['change'](_0x2acc53=>{_0x18ff63();const _0x3e3fe1='above'===_0x36ec61['order'],_0x53046f=_0x2a04b2['getSelectionAffectedTableCells'](_0x76534e),_0x311294=_0x2a04b2['getRowIndexes'](_0x53046f),_0x18d6c3=_0x3e3fe1?_0x311294['first']-0x1:_0x311294['last']+0x1,_0x182847=_0x53046f[0x0]['findAncestor']('table'),_0x4f2131=_0x2a04b2['createTableWalker'](_0x182847,{'startRow':_0x18d6c3,'endRow':_0x18d6c3}),_0x9d22ff=Array['from'](_0x4f2131)['map'](_0x1c3b28=>_0x2acc53['createRangeOn'](_0x1c3b28['cell']));_0x49d162['markMultiRangeInsertion'](_0x9d22ff,'tableRow');});});}for(const _0x4893c9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x21a092=_0x13450c['commands']['get'](_0x4893c9);_0x49d162['enableCommand'](_0x4893c9,_0x595818=>{_0x13450c['model']['change'](_0x49ff49=>{_0x595818();const _0x2936b5='left'===_0x21a092['order'],_0xb7439c=_0x2a04b2['getSelectionAffectedTableCells'](_0x76534e),_0xed3433=_0x2a04b2['getColumnIndexes'](_0xb7439c),_0x9fbc19=_0x2936b5?_0xed3433['first']-0x1:_0xed3433['last']+0x1,_0x5e53f2=_0xb7439c[0x0]['findAncestor']('table'),_0x385aa3=_0x2a04b2['createTableWalker'](_0x5e53f2,{'startRow':0x0,'column':_0x9fbc19,'includeAllSlots':!0x1}),_0x2c73d7=Array['from'](_0x385aa3)['map'](_0x19fc9a=>_0x49ff49['createRangeOn'](_0x19fc9a['cell']));_0x49d162['markMultiRangeInsertion'](_0x2c73d7,'tableColumn');});});}for(const _0x2797e0 of['removeTableRow','removeTableColumn']){const _0x4791eb=_0x2797e0['substr'](0xb),_0x4e5b6f=_0x4791eb['toLowerCase'](),_0x165432=_0x4e5b6f['substr'](0x0,0x3)+'span',_0x1e8513='table'+_0x4791eb,_0x2834e2='min'+_0x4791eb,_0x19013c='max'+_0x4791eb;_0x49d162['enableCommand'](_0x2797e0,()=>{_0x13450c['model']['change'](_0x17ed3e=>{const _0x27406c=_0x2a04b2['getSelectionAffectedTableCells'](_0x76534e),_0x5c0541=_0x27406c[0x0]['findAncestor']('table');let _0x5e9aa3;if('removeTableRow'==_0x2797e0){const _0x5e2783=_0x2a04b2['getRowIndexes'](_0x27406c);_0x5e9aa3={'startRow':_0x5e2783['first'],'endRow':_0x5e2783['last'],'includeAllSlots':!0x0};}else{const _0x10d24f=_0x2a04b2['getColumnIndexes'](_0x27406c);_0x5e9aa3={'startColumn':_0x10d24f['first'],'endColumn':_0x10d24f['last'],'includeAllSlots':!0x0};}const _0x7aa615=_0x2a04b2['createTableWalker'](_0x5c0541,_0x5e9aa3),_0x1edd29=Array['from'](_0x7aa615)['map'](({cell:_0x142b29})=>_0x142b29),_0x5e28c5=_e(_0x1edd29['filter'](_0x22c568=>_0x22c568['hasAttribute'](_0x165432))),_0x2ae2ea=_e(_0x1edd29['filter'](_0x4907ab=>!_0x4907ab['hasAttribute'](_0x165432)))['map'](_0x1bebd4=>_0x17ed3e['createRangeOn'](_0x1bebd4)),_0x4663b8=_0x49d162['markMultiRangeDeletion'](_0x2ae2ea,_0x1e8513);if(_0x4663b8&&('tableRow'==_0x4663b8['subType']||'tableColumn'==_0x4663b8['subType'])){const _0x217682=this['_getSuggestionCoords'](_0x4663b8);for(const _0x2e9c9d of _0x5e28c5){const _0x29c6f=_0x17ed3e['createRangeOn'](_0x2e9c9d),_0x7afc66=_0x2a04b2['getCellLocation'](_0x2e9c9d),_0x4c8993=_0x2e9c9d['getAttribute'](_0x165432)-0x1,_0x556721=_0x217682[_0x2834e2],_0x2d56fe=_0x217682[_0x19013c];_0x556721<=_0x7afc66[_0x4e5b6f]&&_0x7afc66[_0x4e5b6f]+_0x4c8993<=_0x2d56fe&&_0x4663b8['addRange'](_0x29c6f);}}});});}function _0x432365(_0x6552bc){const _0x27579d=Array['from'](_0x76534e['getRanges']())['map'](_0x5225ab=>_0x2bf002['fromRange'](_0x5225ab));_0x13450c['model']['change'](_0x20e5bd=>{const _0x443b87=_0x20e5bd['batch'];_0x6552bc=_0x6552bc['filter'](_0x5efd9d=>'$graveyard'!=_0x5efd9d['root']['rootName']),_0x20e5bd['setSelection'](_0x6552bc),_0x13450c['commands']['get']('removeTableRow')['refresh'](),_0x13450c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x13450c['model']['enqueueChange'](()=>{_0x13450c['model']['enqueueChange'](_0x443b87,_0x1b7251=>{const _0x193bf4=_0x27579d['filter'](_0x382e52=>'$graveyard'!=_0x382e52['root']['rootName']);_0x193bf4['length']>0x0&&_0x1b7251['setSelection'](_0x193bf4);for(const _0xa970d5 of _0x27579d)_0xa970d5['detach']();});});});}function _0x548d0d(_0x19077a){_0x13450c['model']['change'](_0x546af6=>{const _0x4b822f=Array['from'](_0x76534e['getRanges']())['map'](_0x33517c=>_0x2bf002['fromRange'](_0x33517c)),_0x2da505=[];for(const _0x40e0a5 of _0x19077a)for(const _0x128ef3 of _0x40e0a5['getItems']({'shallow':!0x0}))_0x2da505['push'](_0x128ef3);for(const _0x42cd2c of _0x2da505)'$graveyard'!=_0x42cd2c['root']['rootName']&&(_0x546af6['setSelection'](_0x546af6['createPositionAt'](_0x42cd2c,0x0)),_0x13450c['commands']['get']('removeTableColumn')['refresh'](),_0x13450c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5baa55=_0x4b822f['filter'](_0x1f2669=>'$graveyard'!=_0x1f2669['root']['rootName']);_0x5baa55['length']>0x0&&_0x546af6['setSelection'](_0x5baa55);for(const _0x9511d4 of _0x4b822f)_0x9511d4['detach']();});}function _0x2cd056(_0x1fc699,_0x509348){return _0x509348['every'](_0x3388f5=>_0x1fc699['some'](_0x58a324=>_0x58a324['end']['isEqual'](_0x3388f5['start'])||_0x3388f5['end']['isEqual'](_0x58a324['start'])));}function _0x2d4948(_0x30992a,_0x4de1af){return!_0x30992a['some'](_0xc67e76=>_0x4de1af['some'](_0x28ecf1=>_0xc67e76['isIntersecting'](_0x28ecf1)))&&_0x30992a['some'](_0x3b8cce=>_0x4de1af['some'](_0x3e6b1b=>_0x3b8cce['end']['isTouching'](_0x3e6b1b['start'])));}_0x49d162['descriptionFactory']['registerDescriptionCallback'](_0x471bc9=>{if('insertion'!=_0x471bc9['type']&&'deletion'!=_0x471bc9['type'])return;const _0x11de77=_0x471bc9['getContainedElement']();if(null!=_0x11de77&&_0x11de77['is']('element','table')){if('insertion'==_0x471bc9['type']){const _0x1dc231=_0x471bc9['getItems']()['filter'](_0x4b9d7b=>_0x4b9d7b['is']('$textProxy'))['map'](_0xb0accc=>_0xb0accc['data']);if(_0x1dc231['length'])return{'type':'insertion','content':o(_0x24fcc4,'*Insert:*\x20%0',o(_0x24fcc4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1dc231['join']('\x20')+'\x22'))};}if('deletion'==_0x471bc9['type']){const _0x356de8=_0x471bc9['getItems']()['filter'](_0x58f325=>_0x58f325['is']('$textProxy'))['map'](_0x3f2600=>_0x3f2600['data']);if(_0x356de8['length'])return{'type':'deletion','content':o(_0x24fcc4,'*Remove:*\x20%0',o(_0x24fcc4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x356de8['join']('\x20')+'\x22'))};}}}),_0x49d162['descriptionFactory']['registerDescriptionCallback'](_0x24e601=>{if('tableRow'==_0x24e601['subType']){const _0x3aa361=_0x24e601['getItems']()['filter'](_0x2ada25=>_0x2ada25['is']('$textProxy'))['map'](_0x2874f2=>_0x2874f2['data']),_0x206062=this['_getSuggestionCoords'](_0x24e601),_0x5bb303=_0x206062['maxRow']-_0x206062['minRow']+0x1;if('insertion'==_0x24e601['type'])return _0x3aa361['length']?{'type':'insertion','content':o(_0x24fcc4,'*Insert:*\x20%0',o(_0x24fcc4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5bb303,'\x22'+_0x3aa361['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x24fcc4,'*Insert:*\x20%0',o(_0x24fcc4,'ELEMENT_TABLE_ROW',_0x5bb303))};if('deletion'==_0x24e601['type'])return _0x3aa361['length']?{'type':'deletion','content':o(_0x24fcc4,'*Remove:*\x20%0',o(_0x24fcc4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5bb303,'\x22'+_0x3aa361['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x24fcc4,'*Remove:*\x20%0',o(_0x24fcc4,'ELEMENT_TABLE_ROW',_0x5bb303))};}if('tableColumn'==_0x24e601['subType']){const _0x307599=_0x24e601['getItems']()['filter'](_0x1881fb=>_0x1881fb['is']('$textProxy'))['map'](_0x4ade65=>_0x4ade65['data']),_0x57da0b=this['_getSuggestionCoords'](_0x24e601),_0x17ddb9=_0x57da0b['maxColumn']-_0x57da0b['minColumn']+0x1;if('insertion'==_0x24e601['type'])return _0x307599['length']?{'type':'insertion','content':o(_0x24fcc4,'*Insert:*\x20%0',o(_0x24fcc4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x17ddb9,'\x22'+_0x307599['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x24fcc4,'*Insert:*\x20%0',o(_0x24fcc4,'ELEMENT_TABLE_COLUMN',_0x17ddb9))};if('deletion'==_0x24e601['type'])return _0x307599['length']?{'type':'deletion','content':o(_0x24fcc4,'*Remove:*\x20%0',o(_0x24fcc4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x17ddb9,'\x22'+_0x307599['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x24fcc4,'*Remove:*\x20%0',o(_0x24fcc4,'ELEMENT_TABLE_COLUMN',_0x17ddb9))};}}),_0x49d162['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x432365),_0x49d162['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x432365),_0x49d162['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x548d0d),_0x49d162['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x548d0d),_0x49d162['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2cd056),_0x49d162['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2cd056),_0x49d162['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2d4948),_0x49d162['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2d4948);}['_acceptFormatSuggestionCallbackFactory'](){const _0x21f797=this['editor'],_0x5c086c=_0x21f797['model']['document']['selection'];return(_0x1d2c9e,_0x245322)=>{_0x21f797['model']['change'](_0x161791=>{const {commandName:_0x45e4e6,commandParams:_0x11bb1d}=_0x245322;let _0x479313=_0x1d2c9e[0x0]['end']['nodeBefore'];_0x11bb1d&&_0x11bb1d[0x0]&&!0x1===_0x11bb1d[0x0]['forceValue']&&(_0x479313=_0x1d2c9e[0x0]['start']['nodeAfter']);const _0xefc5a6=_0x161791['createRangeIn'](_0x479313);if('$graveyard'==_0xefc5a6['root']['rootName'])return;const _0x452727=Array['from'](_0x5c086c['getRanges']())['map'](_0x29d8c4=>_0x2bf002['fromRange'](_0x29d8c4));_0x161791['setSelection'](_0xefc5a6),_0x21f797['commands']['get'](_0x45e4e6)['refresh'](),_0x11bb1d['push']({'forceDefaultExecution':!0x0}),_0x21f797['execute'](_0x45e4e6,..._0x11bb1d);const _0x494d37=_0x452727['filter'](_0x396b42=>'$graveyard'!=_0x396b42['root']['rootName']);_0x494d37['length']>0x0&&_0x161791['setSelection'](_0x494d37);for(const _0x2e9b30 of _0x452727)_0x2e9b30['detach']();});};}['_getCoordsForCells'](_0x1ebe8a){const _0x926f07=this['editor']['plugins']['get']('TableUtils');let _0x2f3002=Number['MAX_SAFE_INTEGER'],_0x27e24f=Number['MIN_SAFE_INTEGER'],_0x161657=Number['MAX_SAFE_INTEGER'],_0x37e94e=Number['MIN_SAFE_INTEGER'];for(const _0x25181d of _0x1ebe8a){if('$graveyard'==_0x25181d['root']['rootName'])continue;const {row:_0x2da2a0,column:_0x15f5a5}=_0x926f07['getCellLocation'](_0x25181d),_0x23ad61=_0x25181d['hasAttribute']('rowspan')?_0x25181d['getAttribute']('rowspan')-0x1:0x0,_0x3cafcc=_0x25181d['hasAttribute']('colspan')?_0x25181d['getAttribute']('colspan')-0x1:0x0;_0x2f3002=_0x2da2a0<_0x2f3002?_0x2da2a0:_0x2f3002,_0x27e24f=_0x2da2a0+_0x23ad61>_0x27e24f?_0x2da2a0+_0x23ad61:_0x27e24f,_0x161657=_0x15f5a5<_0x161657?_0x15f5a5:_0x161657,_0x37e94e=_0x15f5a5+_0x3cafcc>_0x37e94e?_0x15f5a5+_0x3cafcc:_0x37e94e;}return{'minRow':_0x2f3002,'maxRow':_0x27e24f,'minColumn':_0x161657,'maxColumn':_0x37e94e};}['_setupColumnsRowsFixing'](){const _0x4aef3b=this['editor'],_0x37a520=_0x4aef3b['plugins']['get']('TrackChangesEditing'),_0x52174a=_0x4aef3b['plugins']['get']('TableUtils');_0x4aef3b['model']['document']['on']('change:data',()=>{const _0x5a6479=Array['from'](_0x4aef3b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x462e11,data:_0x22bbc3}of _0x5a6479){const {group:_0x2dfaa6,id:_0x2b23b8,subType:_0x1bccd3}=_0x37a520['_splitMarkerName'](_0x462e11);if('suggestion'!=_0x2dfaa6)continue;if(null!=_0x22bbc3['oldRange'])continue;const _0x175cd8=_0x37a520['getSuggestion'](_0x2b23b8);this['_tablePostFixingSubtypes']['includes'](_0x1bccd3)&&this['_tableSuggestions']['add'](_0x175cd8);}},{'priority':'low'});const _0x5c7015=(_0x2fa0b3,_0x141c25)=>{let _0x40e5a2=!0x1;const _0x32a0ea=_0x141c25['createRangeOn'](_0x2fa0b3),_0x2fdb2b=_0x2fa0b3['findAncestor']('table'),_0x37eee6=_0x52174a['getCellLocation'](_0x2fa0b3);for(const _0x50a451 of this['_tableSuggestions']){const _0x5735f0=_0x50a451['subType'],_0x388570=_0x5735f0['startsWith']('tablePaste'),_0xe61eed=_0x5735f0['substr'](_0x388570?0xa:0x5),_0x2ac122=_0xe61eed['toLowerCase'](),_0x51bd79=_0x2ac122['substr'](0x0,0x3)+'span',_0x405c95='min'+_0xe61eed,_0x118a23='max'+_0xe61eed;if(!_0x50a451['isInContent'])continue;if(_0x2fdb2b!=_0x50a451['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x50a451['isIntersectingWithRange'](_0x32a0ea))continue;const _0x4fd314=_0x2fa0b3['hasAttribute'](_0x51bd79)?_0x2fa0b3['getAttribute'](_0x51bd79)-0x1:0x0,_0x385999=this['_getSuggestionCoords'](_0x50a451),_0x55f768=_0x385999[_0x405c95],_0x1cab75=_0x385999[_0x118a23];_0x55f768<=_0x37eee6[_0x2ac122]&&_0x37eee6[_0x2ac122]+_0x4fd314<=_0x1cab75&&(_0x50a451['addRange'](_0x32a0ea),_0x40e5a2=!0x0);}return _0x40e5a2;};_0x4aef3b['model']['document']['registerPostFixer'](_0x3b95f8=>{let _0x257cd4=!0x1;for(const _0x18ad7a of _0x4aef3b['model']['document']['differ']['getChanges']())if('insert'==_0x18ad7a['type']){if('tableRow'==_0x18ad7a['name']){for(const _0xa4cc54 of _0x18ad7a['position']['nodeAfter']['getChildren']())_0x257cd4=_0x257cd4||_0x5c7015(_0xa4cc54,_0x3b95f8);}else'tableCell'==_0x18ad7a['name']&&(_0x257cd4=_0x257cd4||_0x5c7015(_0x18ad7a['position']['nodeAfter'],_0x3b95f8));}return _0x257cd4;});}['_getSuggestionCoords'](_0x2c3140){return this['_getCoordsForCells'](_0x2c3140['getRanges']()['map'](_0x3e694d=>_0x3e694d['start']['nodeAfter']));}}function _e(_0x2e4306){return Array['from'](new Set(_0x2e4306)['values']());}class $t extends _0x6098b5{static get['requires'](){return[Nt];}['afterInit'](){const _0x20b5ad=this['editor'],_0x1077e6=_0x20b5ad['model']['document']['selection'],_0x396d29=_0x20b5ad['locale'];if(!_0x20b5ad['plugins']['has']('TableEditing'))return;const _0x38e663=_0x20b5ad['plugins']['get']('TrackChangesEditing'),_0x15edc6=_0x20b5ad['plugins']['get']('TableUtils'),_0x28466c=_0x20b5ad['plugins']['get'](Nt);_0x28466c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x38e663['enableCommand']('mergeTableCells',()=>{const _0x5151fb=_0x15edc6['getSelectionAffectedTableCells'](_0x20b5ad['model']['document']['selection']);_0x20b5ad['model']['change'](()=>{_0x38e663['markMultiRangeBlockFormat'](_0x5151fb,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x20b5ad['commands']['get']('mergeTableCells')['on']('execute',(_0x55c6a0,_0x374412)=>{_0x20b5ad['commands']['get']('trackChanges')['value']&&(_0x374412['length']>0x0&&_0x374412[_0x374412['length']-0x1]&&_0x374412[_0x374412['length']-0x1]['forceDefaultExecution']||_0x38e663['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x55c6a0['stop']());},{'priority':'highest'});for(const _0x61295b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xeb8679=_0x20b5ad['commands']['get'](_0x61295b);_0x38e663['enableCommand'](_0x61295b,()=>{const _0x17fe21=_0x20b5ad['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2df548=>_0x2df548['is']('element','tableCell')),_0x5e43ad=_0xeb8679['value'];_0x20b5ad['model']['change'](()=>{_0x38e663['markMultiRangeBlockFormat']([_0x17fe21,_0x5e43ad],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x460971 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x10e861=_0x20b5ad['commands']['get'](_0x460971);_0x38e663['enableCommand'](_0x460971,()=>{const _0x2ebf13=_0x15edc6['getSelectionAffectedTableCells'](_0x20b5ad['model']['document']['selection'])[0x0],_0x28f522=_0x2ebf13['findAncestor']('table'),{column:_0x2c96c6,row:_0x20b194}=_0x15edc6['getCellLocation'](_0x2ebf13);let _0x5e2b45=[];if('horizontally'==_0x10e861['direction']){const _0x483670=_0x15edc6['createTableWalker'](_0x28f522,{'startRow':_0x20b194,'endRow':_0x20b194,'includeAllSlots':!0x0});_0x5e2b45=Array['from'](_0x483670)['map'](_0x31e06a=>_0x31e06a['cell']);}else{const _0x88b8ba=_0x15edc6['createTableWalker'](_0x28f522,{'column':_0x2c96c6,'includeAllSlots':!0x0});_0x5e2b45=Array['from'](_0x88b8ba)['map'](_0x139289=>_0x139289['cell']);}_0x20b5ad['model']['change'](_0x2d56d0=>{_0x38e663['markBlockFormat'](_0x2d56d0['createRangeOn'](_0x2ebf13),{'commandName':_0x460971,'commandParams':[]},_0x5e2b45,_0x460971);});});}_0x38e663['descriptionFactory']['registerDescriptionCallback'](_0x50dfc0=>{if('formatBlock'!=_0x50dfc0['type']&&'formatInline'!=_0x50dfc0['type'])return;const {data:_0x532a48}=_0x50dfc0;return _0x532a48&&'mergeTableCells'==_0x532a48['commandName']?{'type':'format','content':o(_0x396d29,'*Merge\x20cells*')}:void 0x0;}),_0x38e663['descriptionFactory']['registerDescriptionCallback'](_0x43c515=>{if('formatBlock'!=_0x43c515['type']&&'formatInline'!=_0x43c515['type'])return;const {data:_0x34262f}=_0x43c515;return _0x34262f?'splitTableCellVertically'==_0x34262f['commandName']?{'type':'format','content':o(_0x396d29,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x34262f['commandName']?{'type':'format','content':o(_0x396d29,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3759fc=_0x28466c['_acceptFormatSuggestionCallbackFactory']();for(const _0x4c0244 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x38e663['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4c0244,'accept',_0x3759fc);for(const _0x5df3d8 of['splitTableCellVertically','splitTableCellHorizontally'])_0x38e663['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5df3d8,'accept',_0x3759fc);_0x38e663['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x10834e=>{_0x20b5ad['model']['change'](_0x2f73b4=>{const _0xcb85da=Array['from'](_0x1077e6['getRanges']())['map'](_0x2ee30e=>_0x2bf002['fromRange'](_0x2ee30e));_0x2f73b4['setSelection'](_0x10834e),_0x20b5ad['commands']['get']('mergeTableCells')['refresh'](),_0x20b5ad['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5c3388=_0xcb85da['filter'](_0x26a4ee=>'$graveyard'!=_0x26a4ee['root']['rootName']);_0x5c3388['length']>0x0&&_0x2f73b4['setSelection'](_0x5c3388);for(const _0x332512 of _0xcb85da)_0x332512['detach']();});});for(const _0x2846e4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1668d7=_0x20b5ad['commands']['get'](_0x2846e4);_0x1668d7['on']('set:isEnabled',(_0x28cf1b,_0xe450a,_0x54fc1b)=>{if(_0x54fc1b){const _0x304e92=_0x20b5ad['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2668d7=>_0x2668d7['is']('element','tableCell'));this['_areMergableCells'](_0x1668d7['value'],_0x304e92)||(_0x28cf1b['return']=!0x1,_0x28cf1b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x384e43=this['editor']['commands']['get']('mergeTableCells'),_0x443d5a=this['editor']['plugins']['get']('TableUtils');if(!_0x384e43['isEnabled'])return!0x1;const _0x53adad=_0x443d5a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3297c3 of _0x53adad)for(const _0x3cbedd of _0x53adad)if(_0x3297c3!=_0x3cbedd&&!this['_areMergableCells'](_0x3297c3,_0x3cbedd))return!0x1;return!0x0;}['_areMergableCells'](_0x2f1742,_0x337da2){const _0x1e2b82=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d734e=this['editor']['model']['createRangeOn'](_0x2f1742),_0x1b597b=this['editor']['model']['createRangeOn'](_0x337da2),_0x407d31=new Set(),_0x2fcb2f=new Set();for(const _0x14fb85 of _0x1e2b82['getSuggestions']())if(('insertion'==_0x14fb85['type']||'deletion'==_0x14fb85['type']||'mergeTableCells'==_0x14fb85['subType'])&&_0x14fb85['isInContent']){for(const _0x39c78c of _0x14fb85['getRanges']())_0x39c78c['containsRange'](_0x2d734e,!0x0)&&_0x407d31['add'](_0x14fb85['type']+':'+_0x14fb85['author']['id']),_0x39c78c['containsRange'](_0x1b597b,!0x0)&&_0x2fcb2f['add'](_0x14fb85['type']+':'+_0x14fb85['author']['id']);}if(_0x407d31['size']!=_0x2fcb2f['size'])return!0x1;for(const _0x5c8b8a of _0x407d31)if(!_0x2fcb2f['has'](_0x5c8b8a))return!0x1;return!0x0;}}class vt extends _0x6098b5{static get['requires'](){return[Nt];}['afterInit'](){const _0x43718c=this['editor'];if(!_0x43718c['plugins']['has']('TableEditing'))return;const _0xa5ff06=_0x43718c['locale'],_0x47f855=_0x43718c['plugins']['get']('TrackChangesEditing');_0x47f855['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x47f855['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x47f855['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xa5ff06,'FORMAT_HEADER_ROW')),_0x47f855['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xa5ff06,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x42bf74=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2137c0=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x42bf74['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2137c0),_0x42bf74['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2137c0),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x9b861c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c2057=this['editor']['plugins']['get']('TableUtils');function _0xf8664f({showActiveMarker:_0x158188=!0x0,setDataAttribute:_0x36377d=!0x0}={}){return(_0x10c507,_0x1be45c,_0x281185)=>{const {type:_0x6932b8,id:_0x5d09ce}=_0x9b861c['_splitMarkerName'](_0x1be45c['markerName']);if(!_0x9b861c['hasSuggestion'](_0x5d09ce))return;const _0x539dd4=_0x9b861c['getSuggestion'](_0x5d09ce),_0x3f512e=_0x539dd4['data'];if('formatBlock'!=_0x539dd4['type']||!_0x3f512e||'setTableColumnHeader'!=_0x3f512e['commandName'])return;if(_0x1be45c['item'])return void _0x10c507['stop']();if(!_0x281185['consumable']['consume'](_0x1be45c['markerRange'],_0x10c507['name']))return;const _0x4c45b4=_0x1be45c['markerRange']['start']['nodeAfter'],_0x40ea65=_0x1be45c['markerRange']['end']['nodeBefore'],_0x34be6f=_0x4c45b4['parent']['parent'],{column:_0x4a0db9}=_0x5c2057['getCellLocation'](_0x4c45b4),{column:_0x4687cc}=_0x5c2057['getCellLocation'](_0x40ea65);for(let _0x423c4c=_0x4a0db9;_0x423c4c<=_0x4687cc;_0x423c4c++){const _0x4798f1=_0x5c2057['createTableWalker'](_0x34be6f,{'column':_0x423c4c,'includeAllSlots':!0x1});for(const _0x3cde71 of _0x4798f1){const _0x3c7325=_0x3cde71['cell'],_0x510230=_0x281185['mapper']['toViewElement'](_0x3c7325);_0x281185['writer']['addClass']('ck-suggestion-marker-'+_0x6932b8,_0x510230),_0x36377d&&_0x281185['writer']['setAttribute']('data-suggestion',_0x5d09ce,_0x510230),_0x281185['mapper']['bindElementToMarker'](_0x510230,_0x1be45c['markerName']),_0x158188&&(_0x9b861c['activeMarkers']['includes'](_0x1be45c['markerName'])?_0x281185['writer']['addClass']('ck-suggestion-marker--active',_0x510230):_0x281185['writer']['removeClass']('ck-suggestion-marker--active',_0x510230));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xf8664f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1fa040,_0x503617,_0x5daf4d)=>{_0x5daf4d['options']['showSuggestionHighlights']&&_0xf8664f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1fa040,_0x503617,_0x5daf4d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2e68a3,_0xf1ef99,_0x53a757)=>{const {type:_0x6c01ee,id:_0x102477}=_0x9b861c['_splitMarkerName'](_0xf1ef99['markerName']);if(!_0x9b861c['hasSuggestion'](_0x102477))return;const _0x8fdda2=_0x9b861c['getSuggestion'](_0x102477),_0x57391f=_0x8fdda2['data'];if('formatBlock'!=_0x8fdda2['type']||!_0x57391f||'setTableColumnHeader'!=_0x57391f['commandName'])return;const _0x113af7=_0x53a757['mapper']['markerNameToElements'](_0xf1ef99['markerName']);if(_0x113af7){for(const _0x3c5229 of _0x113af7)_0x53a757['writer']['removeClass']('ck-suggestion-marker-'+_0x6c01ee,_0x3c5229),_0x53a757['writer']['removeClass']('ck-suggestion-marker--active',_0x3c5229),_0x53a757['writer']['removeAttribute']('data-suggestion',_0x3c5229),_0x53a757['mapper']['unbindElementFromMarkerName'](_0x3c5229,_0xf1ef99['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x5d126b=this['editor'],_0x21eb84=_0x5d126b['locale'];function _0x1d2ad3(_0x33d680){return{'type':'format','content':o(_0x21eb84,'*Format:*\x20%0',_0x33d680)};}_0x5d126b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x599f22=>{if('formatBlock'!=_0x599f22['type'])return;const {data:_0x50fb1c}=_0x599f22;if(_0x50fb1c){if('setTableRowHeader'==_0x50fb1c['commandName']){const _0x1b95e4=_0x50fb1c['commandParams'][0x0]['forceValue'];return _0x1d2ad3(o(_0x21eb84,_0x1b95e4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x50fb1c['commandName']){const _0x48f87c=_0x50fb1c['commandParams'][0x0]['forceValue'];return _0x1d2ad3(o(_0x21eb84,_0x48f87c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x6098b5{['afterInit'](){const _0x2aff9e=this['editor'],_0x3b869d=_0x2aff9e['locale'],_0x21ed00=_0x2aff9e['plugins']['get']('TrackChangesEditing');function _0x10654a(_0x397e59){return{'type':'format','content':''+o(_0x3b869d,'*Set\x20table\x20type:*\x20%0',_0x397e59)};}_0x2aff9e['plugins']['has']('TableLayout')&&(_0x21ed00['enableCommand']('insertTableLayout'),_0x21ed00['enableDefaultAttributesIntegration']('tableType'),_0x21ed00['descriptionFactory']['registerElementLabel'](_0x1948a4=>_0x1948a4['is']('element','table')&&'layout'===_0x1948a4['getAttribute']('tableType'),_0x502ba2=>o(_0x3b869d,'ELEMENT_LAYOUT_TABLE',_0x502ba2)),_0x21ed00['descriptionFactory']['registerDescriptionCallback'](_0x13cc2c=>{const {data:_0x2ada7a}=_0x13cc2c;if(_0x2ada7a&&'tableType'==_0x2ada7a['key'])switch(_0x2ada7a['newValue']){case'layout':return _0x10654a(o(_0x3b869d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x10654a(o(_0x3b869d,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Re['map'](_0x23fd19=>[_0x23fd19,null]));class Bt extends _0x6098b5{static get['requires'](){return[Nt];}['afterInit'](){const _0x3c6e8b=this['editor'];if(!_0x3c6e8b['plugins']['has']('TableClipboard'))return;const _0x542443=_0x3c6e8b['plugins']['get']('TrackChangesEditing'),_0x682b25=_0x3c6e8b['plugins']['get']('TableUtils'),_0x25bc4a=_0x3c6e8b['plugins']['get'](Nt),_0x2ac00b=_0x3c6e8b['plugins']['get']('TableClipboard'),_0x428a68=_0x3c6e8b['plugins']['get']('TableSelection'),_0x236b8c=_0x3c6e8b['plugins']['get'](_0x8e957d);_0x25bc4a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3c6e8b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3c6e8b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x47a824=null,_0xf72ad8=!0x1;_0x236b8c['on']('contentInsertion',(_0x31c7d9,_0x1da148)=>{_0xf72ad8='paste'===_0x1da148['method'];}),_0x3c6e8b['model']['on']('insertContent',(_0x4ed719,_0x4d5bd1)=>{if(!_0xf72ad8&&null===_0x428a68['getSelectedTableCells']())return;const [_0x220a69,_0xafa191]=_0x4d5bd1,_0xd02f4a=_0x4d5bd1[_0x4d5bd1['length']-0x1];_0xd02f4a&&_0xd02f4a['forceDefaultExecution']||_0x542443['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1dbc87,_0x2a1da8,_0x49e223,_0x1522bb,_0xe869aa){if(_0x2a1da8&&!_0x2a1da8['is']('documentSelection'))return!0x1;const _0x543252=_0xe869aa['getTableIfOnlyTableInContent'](_0x1dbc87,_0x49e223);if(!_0x543252||!Oe(_0x543252,void 0x0,_0x1522bb))return!0x1;const _0xf1453f=_0x1522bb['getSelectionAffectedTableCells'](_0x49e223['document']['selection']);if(!_0xf1453f['length'])return!0x1;const _0x24798c=_0xf1453f[0x0]['findAncestor']('table'),_0x1998a6=_0x1522bb['getRowIndexes'](_0xf1453f),_0xcd4526=_0x1522bb['getColumnIndexes'](_0xf1453f),_0x5a6ad5={'startRow':_0x1998a6['first'],'endRow':_0x1998a6['last'],'startColumn':_0xcd4526['first'],'endColumn':_0xcd4526['last']};return 0x1==_0xf1453f['length']&&(_0x5a6ad5['endRow']+=_0x1522bb['getRows'](_0x543252)-0x1,_0x5a6ad5['endColumn']+=_0x1522bb['getColumns'](_0x543252)-0x1),Oe(_0x24798c,_0x5a6ad5,_0x1522bb);}(_0x220a69,_0xafa191,_0x3c6e8b['model'],_0x682b25,_0x2ac00b)&&(_0x4ed719['stop'](),_0x47a824={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3c6e8b['model']['change'](()=>{_0x3c6e8b['model']['insertContent'](_0x4d5bd1[0x0],_0x4d5bd1[0x1],_0x4d5bd1[0x2],{'forceDefaultExecution':!0x0});const _0x422dc0=_0x137421(),{rowInsertionRanges:_0x1c6960,columnInsertionRanges:_0x119e49,insertionRanges:_0x404956,deletionRanges:_0x2ff35b,cells:_0x5954f9}=_0x47a824;_0x1c6960['length']&&_0x542443['markMultiRangeInsertion'](_0x1c6960,'tablePasteRow',{'tablePasteChainId':_0x422dc0}),_0x119e49['length']&&_0x542443['markMultiRangeInsertion'](_0x119e49,'tablePasteColumn',{'tablePasteChainId':_0x422dc0}),_0x404956['length']&&(_0x542443['markMultiRangeInsertion'](_0x404956,'tablePaste',{'tablePasteChainId':_0x422dc0,'skipNestingCheck':!0x0}),_0x404956['forEach'](_0x24c21b=>_0x24c21b['detach']?.())),_0x2ff35b['length']&&(_0x542443['markMultiRangeDeletion'](_0x2ff35b,'tablePaste',{'tablePasteChainId':_0x422dc0,'skipNestingCheck':!0x0}),_0x2ff35b['forEach'](_0x2249e0=>_0x2249e0['detach']?.()));const _0x46944d=_0x542443['markMultiRangeBlockFormat'](_0x5954f9['map'](({element:_0x376acf})=>_0x376acf),{'formatGroupId':_0x137421()},[],'tablePasteCell',{'tablePasteChainId':_0x422dc0});if(_0x46944d){const _0x35d228=_0x46944d['getMarkers'](),_0x179770=[];for(const {element:_0x5bd4b4,attributes:_0x261a77}of _0x5954f9){if(!_0x261a77)continue;const _0x151711=_0x3c6e8b['model']['createRangeOn'](_0x5bd4b4),_0x23d0bf=_0x35d228['find'](_0xecd952=>_0xecd952['getRange']()['isEqual'](_0x151711));_0x23d0bf&&_0x179770['push']([_0x23d0bf['name'],_0x261a77]);}_0x179770['length']&&_0x46944d['setAttribute']('markerAttributes',Object['fromEntries'](_0x179770));}_0x47a824=null;}));},{'priority':_0x42a7ac['high']+0xa}),_0x236b8c['on']('contentInsertion',()=>{_0xf72ad8=!0x1;},{'priority':'lowest'}),_0x3c6e8b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x231747,_0x54482f)=>{const [_0x69e6a0,_0x5445c8,,_0x33dac2]=_0x54482f;if(!_0x47a824)return;_0x231747['stop']();const _0x4a7715=_0x69e6a0['cell'],_0x4d5ca3=_0x5445c8,_0x19f863=Be(_0x4a7715),_0x189f36=Be(_0x4d5ca3);_0x231747['return']=_0x4a7715;let _0x2c657b=null,_0x58643c=null;if(_0x189f36||_0x19f863){if(_0x19f863&&!_0x189f36){_0x33dac2['remove'](_0x4a7715['getChild'](0x0));for(const _0x14af92 of Array['from'](_0x4d5ca3['getChildren']()))_0x33dac2['insert'](_0x14af92,_0x4a7715,'end');const _0x2e1a76=_0x47a824['rowInsertionIndexes']['includes'](_0x69e6a0['row']),_0x51d72a=_0x47a824['columnInsertionIndexes']['includes'](_0x69e6a0['column']);_0x2e1a76||_0x51d72a||(_0x2c657b=_0x2bf002['fromRange'](_0x33dac2['createRangeIn'](_0x4a7715)));}else _0x189f36&&!_0x19f863&&(_0x58643c=_0x33dac2['createRangeIn'](_0x4a7715));}else{const _0x35796c=_0x33dac2['createElement']('tableCellSuggestion'),_0x285f21=_0x33dac2['createElement']('tableCellSuggestion');_0x33dac2['wrap'](_0x33dac2['createRangeIn'](_0x4a7715),_0x285f21),_0x33dac2['insert'](_0x35796c,_0x4a7715,0x0);for(const _0x43feec of Array['from'](_0x4d5ca3['getChildren']()))_0x33dac2['insert'](_0x43feec,_0x35796c,'end');_0x2c657b=_0x2bf002['fromRange'](_0x33dac2['createRangeOn'](_0x35796c)),_0x58643c=_0x2bf002['fromRange'](_0x33dac2['createRangeOn'](_0x285f21));}const _0x186032=Array['from'](_0x4d5ca3['getAttributes']())['filter'](([_0x4d4fe3])=>Re['includes'](_0x4d4fe3));_0x47a824['cells']['push']({'element':_0x4a7715,'attributes':_0x186032['length']?Object['fromEntries'](_0x186032):null}),_0x2c657b&&_0x47a824['insertionRanges']['push'](_0x2c657b),_0x58643c&&_0x47a824['deletionRanges']['push'](_0x58643c);},{'priority':'high'}),_0x682b25['on']('insertColumns',(_0x41d5c5,_0x232f28)=>{const [_0x2845e9,_0x22b5f2={}]=_0x232f28;if(!_0x47a824)return;const _0x3a03d1=_0x22b5f2['at']||0x0,_0x3f8c17=_0x22b5f2['columns']||0x1;_0x47a824['columnInsertionIndexes']=new Array(_0x3f8c17)['fill'](_0x3a03d1)['map']((_0x3cc29f,_0x24a346)=>_0x3cc29f+_0x24a346);for(const {cell:_0x32e8d9}of _0x682b25['createTableWalker'](_0x2845e9,{'startColumn':_0x3a03d1,'endColumn':_0x3a03d1+_0x3f8c17-0x1}))_0x47a824['columnInsertionRanges']['push'](_0x3c6e8b['model']['createRangeOn'](_0x32e8d9));},{'priority':'low'}),_0x682b25['on']('insertRows',(_0x18aafe,_0x4b8ee2)=>{const [_0x17adb4,_0x31297f={}]=_0x4b8ee2;if(!_0x47a824)return;const _0x5a46c3=_0x31297f['at']||0x0,_0x2d4923=_0x31297f['rows']||0x1;_0x47a824['rowInsertionIndexes']=new Array(_0x2d4923)['fill'](_0x5a46c3)['map']((_0xdddb4a,_0x283e03)=>_0xdddb4a+_0x283e03);for(const {cell:_0x107a12}of _0x682b25['createTableWalker'](_0x17adb4,{'startRow':_0x5a46c3,'endRow':_0x5a46c3+_0x2d4923-0x1}))_0x47a824['rowInsertionRanges']['push'](_0x3c6e8b['model']['createRangeOn'](_0x107a12));},{'priority':'low'}),_0x542443['descriptionFactory']['registerDescriptionCallback'](_0x4d5a5e=>{if(_0x4d5a5e['subType']&&_0x4d5a5e['subType']['startsWith']('tablePaste'))return _0x4d5a5e['previous']?{}:{'type':'insertion','content':o(_0x3c6e8b['locale'],'*Replace\x20table\x20cells*')};});const _0x59047e=()=>!0x1;for(const _0x2bf813 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x542443['_suggestionFactory']['registerCustomCallback']('insertion',_0x2bf813,'join',_0x59047e),_0x542443['_suggestionFactory']['registerCustomCallback']('deletion',_0x2bf813,'join',_0x59047e),_0x542443['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2bf813,'join',_0x59047e);_0x542443['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x59047e),_0x542443['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3095e7,_0x4fa989,_0x3d93b5)=>{const _0x45a1ad=_0x3095e7['map'](_0x279d53=>_0x279d53['getContainedElement']())['filter'](_0x192b96=>_0x192b96),_0x2513b0=new Map(_0x45a1ad['map'](_0x14fe84=>[_0x14fe84,null]));if(_0x47a824){for(const {element:_0x565068,attributes:_0x1dd666}of _0x47a824['cells'])_0x1dd666&&_0x2513b0['set'](_0x565068,_0x1dd666);}else{if(_0x3d93b5&&_0x3d93b5['markerAttributes'])for(const [_0x56521e,_0xbcc42f]of Object['entries'](_0x3d93b5['markerAttributes'])){const _0x4b2db0=_0x3c6e8b['model']['markers']['get'](_0x56521e),_0xd1f213=_0x4b2db0?_0x4b2db0['getRange']()['getContainedElement']():null;_0xd1f213&&_0x2513b0['set'](_0xd1f213,_0xbcc42f);}}_0x3c6e8b['model']['change'](_0x467de1=>{for(const [_0x17501d,_0x2e4a88]of _0x2513b0)_0x467de1['setAttributes']({...Ae,..._0x2e4a88},_0x17501d);});});const _0x24d7ed=(_0x4c3eb3,_0x59167f)=>{_0x542443['_suggestionFactory']['registerCustomCallback'](_0x4c3eb3,'tablePaste',_0x59167f,(_0xf82b99,_0x549074,_0x4e89d8)=>{_0x3c6e8b['model']['change'](_0x4fe1b0=>{const _0x3b375d=[];for(const _0x599c25 of _0xf82b99){const _0x52e26a=_0x599c25['start']['nodeAfter'];_0x52e26a['is']('element','tableCellSuggestion')&&_0x3b375d['push'](_0x52e26a);}_0x542443['_suggestionFactory']['getSuggestionCallback'](_0x4c3eb3,null,_0x59167f)(_0xf82b99,_0x549074,_0x4e89d8);for(const _0x4382da of _0x3b375d)'$graveyard'!=_0x4382da['root']['rootName']&&_0x4fe1b0['unwrap'](_0x4382da);});});};_0x24d7ed('insertion','accept'),_0x24d7ed('insertion','discard'),_0x24d7ed('deletion','accept'),_0x24d7ed('deletion','discard'),_0x542443['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x27702e=>{const _0x2848c0=_0x27702e['map'](_0x2becdc=>_0x2becdc['getContainedElement']()),_0x294bb9=_0x2848c0[0x0]['findAncestor']('table'),{minRow:_0x5d17b1,maxRow:_0xc601ed}=_0x25bc4a['_getCoordsForCells'](_0x2848c0);_0x682b25['removeRows'](_0x294bb9,{'at':_0x5d17b1,'rows':_0xc601ed-_0x5d17b1+0x1});}),_0x542443['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3c4b00=>{const _0x1becc3=_0x3c4b00['map'](_0x40034b=>_0x40034b['getContainedElement']()),_0x42906a=_0x1becc3[0x0]['findAncestor']('table'),{minColumn:_0x4bd2ec,maxColumn:_0xc5e1e5}=_0x25bc4a['_getCoordsForCells'](_0x1becc3);_0x682b25['removeColumns'](_0x42906a,{'at':_0x4bd2ec,'columns':_0xc5e1e5-_0x4bd2ec+0x1});});const _0x12cb41=(_0x1d7180,_0xfb6472)=>{if(!_0xfb6472['subType']||!_0xfb6472['subType']['startsWith']('tablePaste'))return;const _0x426a85=_0xfb6472['attributes']['tablePasteChainId'],_0x525f15=_0x542443['getSuggestions']()['filter'](_0x595e99=>_0x595e99['isInContent']&&_0x595e99['attributes']&&_0x595e99['attributes']['tablePasteChainId']==_0x426a85);_0x525f15['length']&&_0xfb6472['getAllAdjacentSuggestions']()['length']!=_0x525f15['length']&&_0x525f15['reduce']((_0x5a7acb,_0x2ab917)=>(_0x5a7acb['next']=_0x2ab917,_0x2ab917['previous']=_0x5a7acb,_0x2ab917));};function _0x112ab0(_0x50fcbc,_0x12acaa=!0x0){const {id:_0x34059b,authorId:_0x3e63b9}=_0x542443['_splitMarkerName'](_0x50fcbc['markerName']),_0x1c8a64=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3b3668=_0x542443['activeMarkers']['includes'](_0x50fcbc['markerName']);return _0x3b3668&&_0x1c8a64['push']('ck-suggestion-marker--active'),{'classes':_0x1c8a64,'attributes':{'data-suggestion':_0x34059b,'data-author-id':_0x3e63b9},'priority':_0x3b3668&&_0x12acaa?0xbc2:0xbb8};}_0x542443['on']('suggestionLoaded',_0x12cb41,{'priority':'high'}),_0x542443['on']('suggestionUnloaded',_0x12cb41,{'priority':'high'}),_0x3c6e8b['model']['document']['registerPostFixer'](()=>{let _0x32b0db=!0x1;const _0x1b842e=Array['from'](_0x3c6e8b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4f08f6,data:_0x15e951}of _0x1b842e){const {group:_0x2522ff,type:_0x43396b,id:_0x4db49b}=_0x542443['_splitMarkerName'](_0x4f08f6);if('suggestion'!=_0x2522ff||'deletion'!=_0x43396b||_0x15e951['oldRange'])continue;if(!_0x542443['hasSuggestion'](_0x4db49b))continue;const _0x134765=_0x542443['getSuggestion'](_0x4db49b)['getRanges'](),_0x91086b=_0x3c6e8b['plugins']['get']('Users')['me'];for(const _0x1be961 of _0x542443['getSuggestions']()){if(!_0x1be961['isInContent']||_0x1be961['author']!=_0x91086b)continue;if('formatBlock'!=_0x1be961['type']||'tablePasteCell'!=_0x1be961['subType'])continue;if(_0x1be961['getRanges']()['every'](_0x2b88de=>_0x134765['some'](_0x2a34cb=>_0x2a34cb['containsRange'](_0x2b88de,!0x0)))){for(const _0x58e3ad of _0x1be961['getAllAdjacentSuggestions']())_0x58e3ad['isInContent']&&(_0x58e3ad['discard'](),_0x32b0db=!0x0);}}}return _0x32b0db;}),_0x3c6e8b['model']['document']['registerPostFixer'](_0x3547ad=>{const _0x2261db=_0x3c6e8b['commands']['get']('redo');if(!_0x2261db||!_0x2261db['_createdBatches']['has'](_0x3547ad['batch']))return!0x1;let _0x17d62c=!0x1;const _0x10e9b3=_0x3c6e8b['plugins']['get']('Users')['me'],_0x212908=_0x3c6e8b['model']['document']['differ']['getChanges'](),_0x2cfe77=Array['from'](_0x3c6e8b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1db8d5,data:_0x251af1})=>{const {group:_0x1a337a,subType:_0x56b6cb,authorId:_0x328e0e}=_0x542443['_splitMarkerName'](_0x1db8d5);return'suggestion'==_0x1a337a&&'tablePaste'==_0x56b6cb&&_0x328e0e==_0x10e9b3['id']&&!_0x251af1['oldRange'];});for(const _0x157ba6 of _0x212908){if('insert'!=_0x157ba6['type']||'tableCellSuggestion'!=_0x157ba6['name']||0x1!=_0x157ba6['length'])continue;const _0x2bdc57=_0x3547ad['createRange'](_0x157ba6['position'],_0x157ba6['position']['getShiftedBy'](0x1));if(!_0x2cfe77['find'](({data:_0x500d0c})=>_0x500d0c['newRange']['isEqual'](_0x2bdc57))){for(const {name:_0x36af0b,data:_0x3a8b85}of _0x2cfe77)if(_0x2bdc57['containsRange'](_0x3a8b85['newRange'])){_0x3547ad['updateMarker'](_0x36af0b,{'range':_0x2bdc57}),_0x17d62c=!0x0;break;}}}return _0x17d62c;}),_0x3c6e8b['model']['document']['registerPostFixer'](_0x383099=>{let _0x2bc388=!0x1;const _0xd2b7ec=_0x3c6e8b['plugins']['get']('Users')['me'],_0x2a92bc=_0x542443['getSuggestions']()['filter'](_0x2ce058=>_0x2ce058['isInContent']&&_0x2ce058['author']==_0xd2b7ec),_0x2d47cc=new Set(),_0x293369=new Set();for(const _0x395a14 of _0x2a92bc)if('tablePaste'==_0x395a14['subType'])for(const _0x1e1765 of _0x395a14['getMarkers']()){const _0x4b0f3d=_0x1e1765['getRange']()['getContainedElement']();if(_0x4b0f3d){if(_0x4b0f3d['is']('element','tableCellSuggestion')&&Be(_0x4b0f3d)){_0x395a14['removeMarker'](_0x1e1765['name']),_0x2d47cc['add'](_0x4b0f3d),_0x2bc388=!0x0;const _0x2ebff1=_0x4b0f3d['nextSibling'],_0x36af9f=_0x4b0f3d['previousSibling'],_0x96066d=_0x2ebff1&&_0x2ebff1['is']('element','tableCellSuggestion'),_0x4876c4=_0x36af9f&&_0x36af9f['is']('element','tableCellSuggestion');_0x96066d&&!_0x2d47cc['has'](_0x2ebff1)&&_0x293369['add'](_0x2ebff1),_0x4876c4&&!_0x2d47cc['has'](_0x36af9f)&&_0x293369['add'](_0x36af9f);}else _0x4b0f3d['is']('element','paragraph')&&_0x4b0f3d['isEmpty']&&(_0x395a14['removeMarker'](_0x1e1765['name']),_0x2bc388=!0x0);}}else{if('tablePasteCell'==_0x395a14['subType']){if(!_0x395a14['attributes']||!_0x395a14['attributes']['tablePasteChainId'])continue;const _0x2e4df1=_0x395a14['attributes']['markerAttributes'];if(_0x2e4df1&&Object['keys'](_0x2e4df1)['length'])continue;const _0x576f94=_0x395a14['attributes']['tablePasteChainId'];let _0x8d9768=!0x0,_0x41e2a5=!0x0;for(const _0xfa1da0 of _0x2a92bc)if(_0xfa1da0['subType']&&_0xfa1da0['subType']['startsWith']('tablePaste')){if(!_0xfa1da0['attributes']['tablePasteChainId']){_0x41e2a5=!0x1;break;}if(_0xfa1da0['id']!=_0x395a14['id']&&_0xfa1da0['attributes']['tablePasteChainId']==_0x576f94){_0x8d9768=!0x1;break;}}_0x41e2a5&&_0x8d9768&&(_0x395a14['removeMarkers'](),_0x2bc388=!0x0);}}for(const _0x3b16ca of _0x2d47cc)_0x383099['remove'](_0x3b16ca);for(const _0x3d2458 of _0x293369)_0x383099['unwrap'](_0x3d2458);return _0x2bc388;}),_0x3c6e8b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1998da=>_0x112ab0(_0x1998da),'converterPriority':'high'}),_0x3c6e8b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x18b390,_0x547bf6)=>_0x547bf6['options']['showSuggestionHighlights']?_0x112ab0(_0x18b390,!0x1):null,'converterPriority':'high'});const _0x284eb4=_0x3c6e8b['editing']['view'];this['listenTo'](_0x284eb4['document'],'clipboardOutput',(_0x9bddc0,_0x4d1706)=>{const _0x1a9c7c=[];for(const _0x4d6467 of _0x284eb4['createRangeIn'](_0x4d1706['content'])['getItems']())_0x4d6467['is']('element','suggestion-td')&&_0x1a9c7c['push'](_0x4d6467);_0x284eb4['change'](_0xe8451a=>{for(const _0x16c21e of _0x1a9c7c)_0xe8451a['move'](_0xe8451a['createRangeIn'](_0x16c21e),_0xe8451a['createPositionBefore'](_0x16c21e)),_0xe8451a['remove'](_0x16c21e);});});}}function Be(_0x34e823){if(_0x34e823['isEmpty'])return!0x0;const _0x2158cd=_0x34e823['getChild'](0x0);return _0x2158cd['is']('element','paragraph')&&_0x2158cd['isEmpty'];}function Oe(_0x37ac0d,_0x53424a={},_0x5e950f){for(const {isAnchor:_0x2ee727,cellHeight:_0x371efe,cellWidth:_0x1020a0}of _0x5e950f['createTableWalker'](_0x37ac0d,{'includeAllSlots':!0x0,..._0x53424a}))if(!_0x2ee727||0x1!=_0x371efe||0x1!=_0x1020a0)return!0x1;return!0x0;}class Ot extends _0x6098b5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x35bff1=this['editor']['plugins']['get']('TrackChangesEditing');_0x35bff1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x35bff1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x35bff1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x35bff1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x35bff1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x35bff1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4da4f8,_0xe63491){const _0x3ec25d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30afc5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4b1323=_0xe63491['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x37e0c1=_0x30afc5['getColumnGroupElement'](_0x4b1323);let _0x10cf80=_0x37e0c1?_0x30afc5['getTableColumnsWidths'](_0x37e0c1):null,_0xf1633b=_0x4b1323['getAttribute']('tableWidth')||null;const _0x542324=_0xe63491['tableWidth']||_0xf1633b,_0x5db382=_0xe63491['columnWidths']||_0x10cf80,_0x4fbc8c=this['editor']['plugins']['get']('Users')['me'];for(const _0x3c1be3 of _0x3ec25d['getSuggestions']()){const _0x53443c=_0x3c1be3['getContainedElement']();if('resizeTable'===_0x3c1be3['subType']&&_0x53443c===_0x4b1323){_0x3c1be3['author']!==_0x4fbc8c&&_0x3c1be3['discard']();const _0x499028=_0x3c1be3['data']['commandParams'];_0xf1633b=_0x499028[0x0]['tableWidth'],_0x10cf80=_0x499028[0x0]['columnWidths'];break;}}_0x4da4f8({'table':_0x4b1323,'tableWidth':_0x542324,'columnWidths':_0x5db382}),_0x3ec25d['markBlockFormat'](_0x4b1323,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xf1633b,'columnWidths':_0x10cf80}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x433e65){if('formatBlock'!=_0x433e65['type']&&'formatInline'!=_0x433e65['type'])return;const {data:_0x141463}=_0x433e65;if(_0x141463&&'resizeTable'===_0x141463['formatGroupId']){const _0x4a526b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4a526b)};}}}class xt extends _0x6098b5{['afterInit'](){const _0x2671bb=this['editor'];_0x2671bb['plugins']['has']('Template')&&_0x2671bb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x6098b5{['afterInit'](){const _0xb159a6=this['editor'];if(!_0xb159a6['commands']['get']('insertTableOfContents'))return;_0xb159a6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2388f3=_0xb159a6['plugins']['get']('TrackChangesEditing'),_0xb79406=_0xb159a6['locale'];_0x2388f3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x9f6b64=>o(_0xb79406,'ELEMENT_TABLE_OF_CONTENTS',_0x9f6b64));}}class Rt extends _0x6098b5{['afterInit'](){const _0x77f059=this['editor'];if(!_0x77f059['plugins']['has']('Title'))return;const _0x53a853=_0x77f059['plugins']['get']('TrackChangesEditing');_0x53a853['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x77f059['locale'],'ELEMENT_TITLE')),_0x77f059['model']['document']['registerPostFixer'](_0x2d9f=>{let _0x2d807a=!0x1;const _0x15e397=Array['from'](_0x77f059['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1e3511,data:_0x2316bf}of _0x15e397){const {group:_0x3d6050}=_0x53a853['_splitMarkerName'](_0x1e3511);if('suggestion'!==_0x3d6050||!_0x2316bf['newRange'])continue;const _0x4635b9=_0x2316bf['newRange'],_0x58e55b=_0x4635b9['end']['nodeBefore'];if(!_0x58e55b||!_0x58e55b['is']('element','title-content'))continue;if(!_0x4635b9['start']['isTouching'](_0x4635b9['end']))continue;const _0x5e6726=_0x77f059['model']['schema']['getNearestSelectionRange'](_0x4635b9['end'],'forward');if(_0x5e6726&&_0x5e6726['isCollapsed']){const _0xda3124=_0x2d9f['createRange'](_0x4635b9['start'],_0x5e6726['start']);_0xda3124['isEqual'](_0x4635b9)||(_0x2d9f['updateMarker'](_0x1e3511,{'range':_0xda3124}),_0x2d807a=!0x0);}_0x2d807a||(_0x2d9f['removeMarker'](_0x1e3511),_0x2d807a=!0x0);}return _0x2d807a;});}}class Tt extends _0x6098b5{['afterInit'](){const _0xe669ca=this['editor'],_0x223fab=_0xe669ca['plugins']['get']('TrackChangesEditing');_0xe669ca['plugins']['has']('Uploadcare')&&(_0x223fab['enableCommand']('uploadcare'),_0xe669ca['plugins']['has']('UploadcareImageEdit')&&(_0x223fab['enableCommand']('uploadcareImageEdit'),_0x223fab['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x223fab['descriptionFactory']['registerDescriptionCallback'](_0xc0ffc9=>{if('attribute'!=_0xc0ffc9['type'])return;const {data:_0x273aee}=_0xc0ffc9;return _0x273aee&&'uploadcareImageId'==_0x273aee['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x6098b5{['afterInit'](){const _0x5c1b3d=this['editor'],_0x4eae67=_0x5c1b3d['plugins']['get']('TrackChangesEditing');_0x5c1b3d['plugins']['has']('UndoEditing')&&(_0x4eae67['enableCommand']('undo'),_0x4eae67['enableCommand']('redo'));}}class Ut extends _0x6098b5{static get['requires'](){return[Nt];}['afterInit'](){const _0x4a998b=this['editor'];if(!_0x4a998b['plugins']['has']('TableCaptionEditing'))return;_0x4a998b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x6098b5{['tableProperties'];['tableCellProperties'];constructor(_0x4d1197){super(_0x4d1197),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 _0x4e4a41=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1e8c47 of this['tableProperties'])_0x4e4a41['enableCommand'](_0x1e8c47,(_0x527901,_0x574f65)=>{const _0x588644=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1e8c47,[_0x588644],this['tableProperties'],'tableProperties',_0x527901,_0x574f65);});_0x4e4a41['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4e4a41['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4e4a41['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4c9cce,_0x59950a)=>this['handleDiscardAction'](this['tableProperties'],_0x4c9cce,_0x59950a)),_0x4e4a41['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xc895ab of this['tableCellProperties'])_0x4e4a41['enableCommand'](_0xc895ab,(_0x274d82,_0x3ce68f)=>{const _0x766521=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xc895ab,_0x766521,this['tableCellProperties'],'tableCellProperties',_0x274d82,_0x3ce68f);});_0x4e4a41['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4e4a41['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4e4a41['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x33c39f,_0x182cde)=>this['handleDiscardAction'](this['tableCellProperties'],_0x33c39f,_0x182cde)),_0x4e4a41['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4e4a41['descriptionFactory']['registerDescriptionCallback'](_0x4c40ba=>this['handleSuggestionDescription'](_0x4c40ba)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x480cfd,_0x44f948,_0x2a52ab,_0x59ef82,_0x65e7b8,_0x52d692){const _0x317d81=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x52d692['batch'],()=>{for(const _0x4a5f75 of _0x44f948){if(this['_getSuggestion'](_0x4a5f75,_0x59ef82))_0x65e7b8(_0x52d692);else{const _0x345dda={};for(const _0x356683 of _0x2a52ab){const _0x43593e=_0x4a5f75['getAttribute'](_0x356683);void 0x0!==_0x43593e&&(_0x345dda[_0x356683]=_0x43593e);}_0x65e7b8(_0x52d692),_0x317d81['markBlockFormat'](_0x4a5f75,{'commandParams':[_0x345dda]},[],_0x59ef82);}}});}['handleDiscardAction'](_0x224975,_0xf45422,_0x53cfab){const _0x22f365=_0xf45422[0x0]['start']['nodeAfter'],_0x324a05=_0x53cfab['commandParams'][0x0];this['editor']['model']['change'](_0x2bb9d8=>{for(const _0x40228f of _0x224975)void 0x0!==_0x324a05[_0x40228f]?_0x2bb9d8['setAttribute'](_0x40228f,_0x324a05[_0x40228f],_0x22f365):_0x2bb9d8['removeAttribute'](_0x40228f,_0x22f365);});}['handleSuggestionDescription'](_0x189abc){if(_0x189abc['data'])switch(_0x189abc['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'](_0x14a646,_0x4c81ec){const _0x1643fb=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4eae11 of _0x1643fb['getSuggestions']({'skipNotAttached':!0x0})){const _0x4b64e4=_0x4eae11['getContainedElement']();if(_0x4eae11['subType']===_0x4c81ec&&_0x4b64e4===_0x14a646)return _0x4eae11;}return null;}['_registerTablePropertiesAttributes'](){const _0x2fe79d=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcaddc8=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4c9324 of _0xcaddc8){const _0x3f6af4=_0x4c9324['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2fe79d['descriptionFactory']['registerAttributeLabel'](_0x4c9324,o(this['editor']['locale'],'FORMAT_'+_0x3f6af4));}}}class Ft extends _0x6098b5{['afterInit'](){const _0x188747=this['editor'];if(!_0x188747['plugins']['has']('LineHeight'))return;const _0x357170=_0x188747['plugins']['get']('TrackChangesEditing'),_0x18a7d0=_0x188747['locale'];_0x357170['enableDefaultAttributesIntegration']('lineHeight'),_0x357170['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x18a7d0,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x6098b5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x51cf78,_0x4b2b84,_0x256fef,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a001c){super(_0x1a001c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x585418,_0x18e108,_0xddb136,_0x22456d)=>{this['_model']['change'](()=>{for(const _0xb4418b of[..._0x22456d,..._0xddb136])this['_model']['markers']['has'](_0xb4418b)&&_0x1a001c['editing']['reconvertMarker'](_0xb4418b);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1a001c['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1a001c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1a001c['config']['get']('trackChanges.trackFormatChanges'),_0x1a001c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1a001c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x1a001c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5e19ab=this['editor'];_0x5e19ab['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x17b186,{writer:_0x3abc4c})=>{let _0x5b2940='suggestion:'+_0x17b186['getAttribute']('suggestion-type')+':'+_0x17b186['getAttribute']('id');return _0x17b186['getAttribute']('marker-count')&&(_0x5b2940+=':'+_0x17b186['getAttribute']('marker-count')),_0x3abc4c['createElement']('$marker',{'data-name':_0x5b2940});}}),_0x5e19ab['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5e19ab['model']['document']['registerPostFixer'](_0x15b445=>{let _0x27ff09=!0x1;const _0x4ed095=Array['from'](_0x5e19ab['model']['document']['differ']['getChangedMarkers']()),_0x424f70=new Set();for(const {name:_0x210a8b,data:_0xaf9cc6}of _0x4ed095){const {group:_0x16129a,type:_0x47224f,subType:_0x233485,id:_0x2eac5e}=this['_splitMarkerName'](_0x210a8b);if('suggestion'!==_0x16129a)continue;const _0x152ad6=_0x233485?'suggestion:'+_0x47224f+':'+_0x233485+':'+_0x2eac5e:'suggestion:'+_0x47224f+':'+_0x2eac5e,_0x24efab=_0x5e19ab['model']['markers']['getMarkersGroup'](_0x152ad6),_0x3e460b=_0x5e19ab['model']['markers']['get'](_0x210a8b),_0x529e24=this['_suggestions']['get'](_0x2eac5e);if(null!=_0xaf9cc6['newRange']){'formatInline'==_0x47224f&&(_0x27ff09=_0x27ff09||Wt(_0xaf9cc6['newRange'],_0x210a8b,_0x15b445,_0x5e19ab['model']['schema']));const _0x2c32a3='attribute'==_0x47224f&&this['_isBlockAttribute'](_0x233485['split']('|')[0x0]),_0xeb3275='attribute'==_0x47224f&&this['_isInlineAttribute'](_0x233485['split']('|')[0x0]);if(_0xaf9cc6['newRange']['isCollapsed']||'$graveyard'==_0xaf9cc6['newRange']['root']['rootName']||'formatBlock'==_0x47224f&&!Qt(_0xaf9cc6['newRange'])||_0x2c32a3&&!Qt(_0xaf9cc6['newRange'])||_0xeb3275&&Xt(_0xaf9cc6['newRange'])||'deletion'==_0x47224f&&Xt(_0xaf9cc6['newRange'])||_0x3e460b&&Yt(_0x3e460b,_0x24efab))_0x15b445['removeMarker'](_0x210a8b),_0x27ff09=!0x0;else{if(!_0x529e24||!_0x529e24['isInContent'])continue;if(_0xaf9cc6['newRange']&&_0xaf9cc6['oldRange']&&_0xaf9cc6['newRange']['isEqual'](_0xaf9cc6['oldRange']))continue;_0x424f70['add'](_0x529e24);}}}return _0x424f70['size']>0x0&&(_0x27ff09=!!this['_joinWithAdjacentSuggestions'](_0x424f70)||_0x27ff09),_0x27ff09;}),_0x5e19ab['model']['document']['registerPostFixer'](_0xf4fad7=>{let _0x9e6244=!0x1;for(const _0x4200d7 of _0x5e19ab['model']['document']['differ']['getChanges']())if('insert'==_0x4200d7['type'])for(const _0x42b13f of this['_suggestions']['values']()){if(_0x42b13f['isMultiRange']||!_0x42b13f['isInContent'])continue;const _0xb95bb5='formatBlock'==_0x42b13f['type'],_0x1ace53=this['_getAttributeKey'](_0x42b13f),_0x55a8e5=_0x1ace53&&this['_isBlockAttribute'](_0x1ace53);if(!_0xb95bb5&&!_0x55a8e5)continue;const _0x54e58a=_0x42b13f['getFirstRange']();if(_0x54e58a['start']['parent']!=_0x54e58a['end']['parent']&&!_0x54e58a['end']['isAtEnd']){const _0x888c8d=_0x5e19ab['model']['createPositionAt'](_0x54e58a['start']['nodeAfter'],'end'),_0x20b0c3=_0x5e19ab['model']['createRange'](_0x54e58a['start'],_0x888c8d);_0xf4fad7['updateMarker'](_0x42b13f['getFirstMarker'](),{'range':_0x20b0c3}),_0x9e6244=!0x0;}}return _0x9e6244;}),_0x5e19ab['model']['document']['registerPostFixer'](_0x4f3611=>this['_processAttributeChanges'](_0x4f3611)),_0x5e19ab['model']['document']['registerPostFixer'](_0xc87b4=>!_0xc87b4['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xc87b4)),_0x5e19ab['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5e19ab['model']['document']['on']('change:data',(_0xec0c46,_0xa5d11e)=>{if(!_0xa5d11e['isLocal']||_0xa5d11e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1c1d9b=_0x5e19ab['model']['document']['differ']['getChanges']();if(0x0==_0x1c1d9b['length'])return;const _0x192965=[],_0x30d44b=_0x1c1d9b['filter'](_0x5094b2=>'attribute'==_0x5094b2['type']),_0x1609b6=_0x1c1d9b['filter'](_0x522a01=>'insert'==_0x522a01['type']&&'$text'!=_0x522a01['name']);for(const _0xb2b934 of _0x30d44b)this['_isRegisteredAttribute'](_0xb2b934['attributeKey'])&&_0x192965['push']({'key':_0xb2b934['attributeKey'],'newValue':_0xb2b934['attributeNewValue'],'oldValue':_0xb2b934['attributeOldValue'],'range':Zt(_0xb2b934['range'],_0x5e19ab['model'])});for(const _0x188195 of _0x1609b6){if('rename'!=_0x188195['action']&&'refresh'!=_0x188195['action'])continue;const _0x44f2cf=tn(_0x188195['position']['nodeAfter'],_0x5e19ab['model']),_0x474de4=_0x188195['before'];'rename'==_0x188195['action']&&_0x192965['push']({'key':m,'newValue':_0x188195['name'],'oldValue':_0x474de4['name'],'range':_0x44f2cf});for(const [_0x2318df,_0x108ddc]of _0x474de4['attributes']){if(!this['_isRegisteredAttribute'](_0x2318df))continue;const _0xe6e4ff=_0x188195['attributes']['get'](_0x2318df);_0x108ddc!==_0xe6e4ff&&_0x192965['push']({'key':_0x2318df,'newValue':_0xe6e4ff,'oldValue':_0x108ddc,'range':_0x44f2cf});}for(const [_0x18ba0f,_0xa747d8]of _0x188195['attributes'])this['_isRegisteredAttribute'](_0x18ba0f)&&(_0x474de4['attributes']['has'](_0x18ba0f)||_0x192965['push']({'key':_0x18ba0f,'newValue':_0xa747d8,'oldValue':null,'range':_0x44f2cf}));}0x0!=_0x192965['length']&&_0x5e19ab['model']['enqueueChange'](_0xa5d11e,_0x2e34f8=>{const _0x3597ac=_0x137421();for(const {range:_0xb394fc,key:_0x27ccce,oldValue:_0x4359cd,newValue:_0x5bf180}of _0x192965)this['markAttributeChange'](_0xb394fc,_0x27ccce,_0x4359cd,_0x5bf180,{'groupId':_0x3597ac});this['_reduceExistingSuggestions'](_0x2e34f8,_0x192965);});},{'priority':'lowest'}),_0x5e19ab['model']['markers']['on']('update:suggestion',(_0x5b2406,_0x5c4e77,_0x2bf360)=>{if(null==_0x2bf360){const {id:_0x90fcdf}=this['_splitMarkerName'](_0x5c4e77['name']),_0xebd900=this['_suggestions']['get'](_0x90fcdf);_0xebd900&&_0xebd900['addMarkerName'](_0x5c4e77['name']);}}),_0x5e19ab['model']['document']['on']('change:data',()=>{const _0x8eba4b=Array['from'](_0x5e19ab['model']['document']['differ']['getChangedMarkers']())['filter'](_0x37b650=>'suggestion'===this['_splitMarkerName'](_0x37b650['name'])['group']);if(0x0===_0x8eba4b['length'])return;_0x8eba4b['sort']((_0xf944f6,_0xf9bc49)=>{const _0x2106c0=_0xf944f6['data']['oldRange'],_0xd84a3=_0xf9bc49['data']['oldRange'];return null===_0x2106c0&&null===_0xd84a3?0x0:null===_0x2106c0&&null!==_0xd84a3?-0x1:null!==_0x2106c0&&null===_0xd84a3?0x1:_0x2106c0['start']['isBefore'](_0xd84a3['start'])?-0x1:0x1;});const _0x497037=new Set(),_0x46f9e2=new Set();for(const {name:_0x19c51e,data:_0x3c2f64}of _0x8eba4b){const {id:_0x24b799}=this['_splitMarkerName'](_0x19c51e);if(null===_0x3c2f64['oldRange']){const _0x5bca51=this['_handleNewSuggestionMarker'](_0x19c51e);_0x46f9e2['add'](_0x5bca51);}else{const _0x6a96ef=this['_suggestions']['get'](_0x24b799);null!==_0x3c2f64['newRange']||_0x6a96ef['isInContent']?(_0x497037['add'](_0x6a96ef['head']),_0x46f9e2['add'](_0x6a96ef)):this['_removeSuggestion'](_0x6a96ef);}}_0x46f9e2['size']>0x0&&this['_refreshSuggestionsChain'](_0x46f9e2);for(const _0x5bd5e4 of _0x497037)this['fire']('suggestionChanged',_0x5bd5e4);}),_0x5e19ab['model']['on']('applyOperation',(_0x4e3a8f,_0x42957a)=>{const _0x2b3ab4=_0x42957a[0x0];if(!this['_suggestions']['size'])return;if(!_0x2b3ab4['isDocumentOperation'])return;if(_0x2b3ab4['batch']['isUndo']||!_0x2b3ab4['batch']['isLocal'])return;let _0x55634c,_0x36cea1;switch(_0x2b3ab4['type']){case'insert':_0x55634c=_0x5e19ab['model']['createPositionAt'](_0x2b3ab4['position']),_0x36cea1=_0x55634c['getShiftedBy'](_0x2b3ab4['howMany']);break;case'split':_0x55634c=_0x5e19ab['model']['createPositionAt'](_0x2b3ab4['splitPosition']),_0x36cea1=_0x5e19ab['model']['createPositionAt'](_0x2b3ab4['moveTargetPosition']);break;case'move':_0x55634c=_0x5e19ab['model']['createPositionAt'](_0x2b3ab4['targetPosition']),_0x36cea1=_0x55634c['getShiftedBy'](_0x2b3ab4['howMany']);break;default:return;}const _0x4a9968=_0x5e19ab['model']['createRange'](_0x55634c,_0x36cea1);_0x5e19ab['model']['change'](()=>{for(const {suggestion:_0x36b1d0,meta:_0x18b77f}of this['_findSuggestions'](_0x4a9968)){if(_0x36b1d0['isMultiRange'])continue;if('formatInline'==_0x36b1d0['type'])continue;const _0x47526a=this['_getAttributeKey'](_0x36b1d0);if(_0x47526a&&this['_isBlockAttribute'](_0x47526a)&&'split'!=_0x2b3ab4['type'])continue;const _0x3e249a=_0x36b1d0['data']&&_0x36b1d0['data']['multipleBlocks'];('formatBlock'!=_0x36b1d0['type']||'split'==_0x2b3ab4['type']&&!_0x3e249a)&&(_0x18b77f['containsRangeInObject']||'insertion'==_0x36b1d0['type']&&_0x18b77f['isOwn']||_0x36b1d0['getFirstRange']()['containsRange'](_0x4a9968)&&this['_breakSuggestionMarker'](_0x36b1d0,_0x55634c,_0x36cea1));}});},{'priority':'lowest'}),_0x5e19ab['model']['on']('deleteContent',(_0x35c21b,_0x4c7173)=>{const _0x432069=_0x4c7173[0x0],_0x252a7e=_0x4c7173[0x1];if(_0x252a7e&&_0x252a7e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x432069['isCollapsed'])return;const _0x587622=_0x5e19ab['model']['schema'],{start:_0x2fb9e4,end:_0x263710}=_0x432069['getFirstRange'](),_0x3daf65=_0x2fb9e4['nodeAfter']&&_0x587622['isLimit'](_0x2fb9e4['nodeAfter'])?null:_0x587622['getNearestSelectionRange'](_0x2fb9e4,'forward'),_0x401509=_0x263710['nodeBefore']&&_0x587622['isLimit'](_0x263710['nodeBefore'])?null:_0x587622['getNearestSelectionRange'](_0x263710,'backward'),_0x4b66e=_0x5e19ab['model']['createRange'](_0x3daf65?_0x3daf65['start']:_0x2fb9e4,_0x401509?_0x401509['end']:_0x263710);_0x5e19ab['model']['change'](_0x51eebc=>{this['markDeletion'](_0x4b66e);const _0x956d96=_0x5e19ab['model']['schema']['getNearestSelectionRange'](_0x4b66e['start']);_0x432069['is']('documentSelection')?_0x51eebc['setSelection'](_0x956d96):_0x432069['setTo'](_0x956d96);}),_0x35c21b['stop']();},{'priority':_0x42a7ac['normal']+0xa}),_0x5e19ab['model']['on']('insertContent',(_0x441ccc,_0x133bd7)=>{const _0x57249c=_0x133bd7[_0x133bd7['length']-0x1];_0x57249c&&_0x57249c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5e19ab['model']['change'](()=>{let _0xefca82=_0x5e19ab['model']['insertContent'](_0x133bd7[0x0],_0x133bd7[0x1],_0x133bd7[0x2],{'forceDefaultExecution':!0x0});if(!_0xefca82)return;_0x441ccc['return']=_0xefca82['clone']();const _0x473afc=_0xefca82['end']['nodeBefore'],_0x586113=_0x5e19ab['model']['schema'];_0x473afc&&_0x586113['isBlock'](_0x473afc)&&!_0x586113['isObject'](_0x473afc)&&(_0xefca82=_0x5e19ab['model']['createRange'](_0xefca82['start'],_0x5e19ab['model']['createPositionAt'](_0x473afc,'end'))),this['markInsertion'](_0xefca82);}),_0x441ccc['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x337954=new v(_0x5e19ab,this['_suggestions']);_0x5e19ab['commands']['add']('acceptSuggestion',_0x337954),this['enableCommand']('acceptSuggestion');const _0x710c44=new D(_0x5e19ab,this['_suggestions']);_0x5e19ab['commands']['add']('discardSuggestion',_0x710c44),this['enableCommand']('discardSuggestion'),_0x5e19ab['commands']['add']('acceptAllSuggestions',new B(_0x5e19ab,_0x337954,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5e19ab['commands']['add']('discardAllSuggestions',new B(_0x5e19ab,_0x710c44,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5e19ab['commands']['add']('acceptSelectedSuggestions',new O(_0x5e19ab,_0x337954,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5e19ab['commands']['add']('discardSelectedSuggestions',new O(_0x5e19ab,_0x710c44,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4d2aba=_0x5e19ab['plugins']['get']('CommentsRepository');this['listenTo'](_0x4d2aba,'addComment',(_0x4c143c,{threadId:_0x3a47ec})=>{const _0x5c6917=this['_suggestions']['get'](_0x3a47ec);_0x5c6917&&_0x5c6917['commentThread']&&0x1===_0x5c6917['commentThread']['length']&&this['_updateSuggestionData'](_0x3a47ec,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4d2aba,'removeComment',(_0x103f97,{threadId:_0x2c808c})=>{const _0x4d71c7=this['_suggestions']['get'](_0x2c808c);_0x4d71c7&&_0x4d71c7['commentThread']&&!_0x4d71c7['commentThread']['length']&&this['_updateSuggestionData'](_0x2c808c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2ab77c){const _0x41842e=_0x1d503a([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x1ddf5b=0x3d8d0df,_0x2582a8=0x3dfa8e7^_0x1ddf5b,_0x299acb=window[_0x1d503a([0x44,0x61,0x74,0x65])][_0x1d503a([0x6e,0x6f,0x77])](),_0x49c019=_0x2ab77c[_0x1d503a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4d46fd=new window[(_0x1d503a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36efc8=>{_0x49c019[_0x1d503a([0x6f,0x6e,0x63,0x65])](_0x1d503a([0x72,0x65,0x61,0x64,0x79]),_0x36efc8);}),_0x170937={[_0x1d503a([0x6b,0x74,0x79])]:_0x1d503a([0x45,0x43]),[_0x1d503a([0x75,0x73,0x65])]:_0x1d503a([0x73,0x69,0x67]),[_0x1d503a([0x63,0x72,0x76])]:_0x1d503a([0x50,0x2d,0x32,0x35,0x36]),[_0x1d503a([0x78])]:_0x1d503a([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]),[_0x1d503a([0x79])]:_0x1d503a([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]),[_0x1d503a([0x61,0x6c,0x67])]:_0x1d503a([0x45,0x53,0x32,0x35,0x36])},_0x5abdc6=_0x49c019[_0x1d503a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d503a([0x67,0x65,0x74])](_0x1d503a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cabe5(){let _0x58c782,_0x2729f6=null,_0x487e41=null;try{if(_0x5abdc6==_0x1d503a([0x47,0x50,0x4c]))return _0x1d503a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x58c782=_0x1d8749(),!_0x58c782)return _0x1d503a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x58c782[_0x1d503a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x487e41=_0x20354e(_0x58c782[_0x1d503a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x58c782[_0x1d503a([0x6a,0x74,0x69])])),await _0x1ef42b()?_0x42d016()?_0x539553()?_0x1d503a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x76d856()?(_0x58c782[_0x1d503a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d503a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2729f6=_0x30b5a7(_0x1d503a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x58c782[_0x1d503a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d503a([0x74,0x72,0x69,0x61,0x6c])&&(_0x2729f6=_0x30b5a7(_0x1d503a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2ee867()):_0x1d503a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d503a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d503a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1d503a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x539553(){const _0x1ea1ac=[_0x1d503a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d503a([0x74,0x72,0x69,0x61,0x6c])][_0x1d503a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58c782[_0x1d503a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x299acb/0x3e8:0xe10*_0x2582a8;return _0x58c782[_0x1d503a([0x65,0x78,0x70])]<_0x1ea1ac;}function _0x42d016(){const _0x23f44e=_0x58c782[_0x1d503a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x23f44e)return!0x1;if(_0x23f44e[_0x1d503a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d503a([0x2a])))return!0x0;if(_0x23f44e[_0x1d503a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d503a([0x54,0x43])))return!0x0;if(_0x23f44e[_0x1d503a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d503a([0x52,0x54,0x43]))){if(_0x3c4165())return!0x0;if(_0xfb0f6b()||_0xcb4c77())return!0x0;}return!0x1;}function _0x76d856(){const _0xaf1563=_0x58c782[_0x1d503a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xaf1563||0x0==_0xaf1563[_0x1d503a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ce342}=new URL(window[_0x1d503a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xaf1563[_0x1d503a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ce342))return!0x0;const _0x4e0d06=_0x1ce342[_0x1d503a([0x73,0x70,0x6c,0x69,0x74])](_0x1d503a([0x2e]));return _0xaf1563[_0x1d503a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5afb5d=>_0x5afb5d[_0x1d503a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d503a([0x2a])))[_0x1d503a([0x6d,0x61,0x70])](_0x54ce57=>_0x54ce57[_0x1d503a([0x73,0x70,0x6c,0x69,0x74])](_0x1d503a([0x2e])))[_0x1d503a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x247901=>_0x247901[_0x1d503a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4e0d06[_0x1d503a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d503a([0x6d,0x61,0x70])](_0x27d3c0=>Array(_0x4e0d06[_0x1d503a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27d3c0[_0x1d503a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d503a([0x66,0x69,0x6c,0x6c])](_0x27d3c0[0x0]===_0x1d503a([0x2a])?_0x1d503a([0x2a]):'')[_0x1d503a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27d3c0))[_0x1d503a([0x73,0x6f,0x6d,0x65])](_0x551e19=>_0x4e0d06[_0x1d503a([0x65,0x76,0x65,0x72,0x79])]((_0x3680b0,_0x529749)=>_0x551e19[_0x529749]===_0x3680b0||_0x551e19[_0x529749]===_0x1d503a([0x2a])));}function _0x2ee867(){return _0x2729f6&&_0x487e41?new window[(_0x1d503a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40c660,_0x557bcb)=>{_0x2729f6[_0x1d503a([0x74,0x68,0x65,0x6e])](_0x40c660,_0x557bcb),_0x487e41[_0x1d503a([0x74,0x68,0x65,0x6e])](_0x2b34f7=>{_0x2b34f7!=_0x1d503a([0x56,0x61,0x6c,0x69,0x64])&&_0x40c660(_0x2b34f7);},_0x557bcb);}):_0x2729f6||_0x487e41||_0x1d503a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x20354e(_0x3922c9,_0x41bf22){return new window[(_0x1d503a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c534f=>{if(_0x36a71b())return _0x3c534f(_0x1d503a([0x56,0x61,0x6c,0x69,0x64]));_0x315c94(),_0x49c019[_0x1d503a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d503a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4bc9c6=!0x1;const _0x5888a4=_0x137421();function _0x272b05(_0x3c3b09){return!!_0x3c3b09&&(typeof _0x3c3b09===_0x1d503a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c3b09===_0x1d503a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c3b09[_0x1d503a([0x74,0x68,0x65,0x6e])]===_0x1d503a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c3b09[_0x1d503a([0x63,0x61,0x74,0x63,0x68])]===_0x1d503a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xce2bd3(_0x4b1e46){_0x263d12(_0x4b1e46)[_0x1d503a([0x74,0x68,0x65,0x6e])](_0x46341e=>{if(!_0x46341e||_0x46341e[_0x1d503a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d503a([0x6f,0x6b]))return _0x1d503a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x23dfdf(_0x408f9d(_0x5888a4+_0x41bf22))!=_0x46341e[_0x1d503a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d503a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d503a([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d503a([0x74,0x68,0x65,0x6e])](_0x3a0f7a=>(_0x55af88(),_0x3a0f7a),()=>{const _0x1082f7=_0x1728e7();return null==_0x1082f7?(_0x55af88(),_0x1d503a([0x56,0x61,0x6c,0x69,0x64])):_0x1d503a(_0x299acb-_0x1082f7>(0x27d454df^_0x1ddf5b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d503a([0x74,0x68,0x65,0x6e])](_0x3c534f)[_0x1d503a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c534f(_0x1d503a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xa08734=0x3ee3e5f^_0x1ddf5b;function _0x55af88(){const _0x3e7911=_0x1d503a([0x6c,0x6c,0x63,0x74,0x2d])+_0x23dfdf(_0x408f9d(_0x3922c9)),_0x4e8257=_0x5d3ef3(_0x23dfdf(window[_0x1d503a([0x4d,0x61,0x74,0x68])][_0x1d503a([0x63,0x65,0x69,0x6c])](_0x299acb/_0xa08734)));window[_0x1d503a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d503a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e7911,_0x4e8257);}function _0x1728e7(){const _0x4db5b9=_0x1d503a([0x6c,0x6c,0x63,0x74,0x2d])+_0x23dfdf(_0x408f9d(_0x3922c9)),_0x51f924=window[_0x1d503a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d503a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4db5b9);return _0x51f924?window[_0x1d503a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d3ef3(_0x51f924),0x10)*_0xa08734:null;}function _0x263d12(_0x3d076b){return new window[(_0x1d503a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2685f7,_0x2622a1)=>{_0x3d076b[_0x1d503a([0x74,0x68,0x65,0x6e])](_0x2685f7,_0x2622a1),window[_0x1d503a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2622a1,0x3d9041f^_0x1ddf5b);});}}_0x49c019[_0x1d503a([0x6f,0x6e])](_0x1d503a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3a8123,_0x2cfc8b)=>{if(_0x2cfc8b[0x0]!=_0x3922c9)return _0x3c534f(_0x1d503a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2cfc8b[0x1]={..._0x2cfc8b[0x1],[_0x1d503a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5888a4};},{[_0x1d503a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d503a([0x68,0x69,0x67,0x68])}),_0x49c019[_0x1d503a([0x6f,0x6e])](_0x1d503a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1dbb69=>{_0x272b05(_0x1dbb69[_0x1d503a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4bc9c6=!0x0,_0xce2bd3(_0x1dbb69[_0x1d503a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d503a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d503a([0x6c,0x6f,0x77])}),_0x4d46fd[_0x1d503a([0x74,0x68,0x65,0x6e])](()=>{_0x4bc9c6||_0x3c534f(_0x1d503a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x36a71b(){return _0x49c019[_0x1d503a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d503a([0x76,0x69,0x65,0x77])][_0x1d503a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d503a([0x61,0x75,0x74,0x6f]);}function _0x315c94(){_0x49c019[_0x1d503a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d503a([0x76,0x69,0x65,0x77])][_0x1d503a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d503a([0x61,0x75,0x74,0x6f]);}}function _0x30b5a7(_0x55bc4d){const _0x4a8746=[new window[(_0x1d503a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x385316=>setTimeout(_0x385316,0x3d1ee13^_0x1ddf5b)),_0x4d46fd[_0x1d503a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d503a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36dcbf=>{let _0x2d1412=0x0;_0x49c019[_0x1d503a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d503a([0x6f,0x6e])](_0x1d503a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x49f8d3,_0x17877d)=>{_0x17877d[0x0][_0x1d503a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d1412++,_0x2d1412==(0x3d8d127^_0x1ddf5b)&&(_0x36dcbf(),_0x49f8d3[_0x1d503a([0x6f,0x66,0x66])]());});}))];return window[_0x1d503a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d503a([0x72,0x61,0x63,0x65])](_0x4a8746)[_0x1d503a([0x74,0x68,0x65,0x6e])](()=>_0x55bc4d);}async function _0x243e4b(){await _0x4d46fd,_0x49c019[_0x1d503a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d503a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2268fa,_0x49c019[_0x1d503a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d503a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2268fa,_0x49c019[_0x1d503a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d503a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c4165(){return _0x5d9800(_0x1d503a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x491ffb(_0x1d503a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1d503a([0x73,0x74,0x61,0x74,0x65])]==_0x1d503a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xfb0f6b(){return _0x5d9800(_0x1d503a([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 _0xcb4c77(){return _0x5d9800(_0x1d503a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x29c411(_0x3f018d){const _0x57b6e0=_0x3ca113();_0x49c019[_0x57b6e0]=_0x1d503a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f018d,_0x3f018d!=_0x1d503a([0x56,0x61,0x6c,0x69,0x64])&&_0x243e4b();}function _0x3ca113(){const _0x502960=window[_0x1d503a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d503a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d503a([0x6e,0x6f,0x77])]())[_0x1d503a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d503a([0x2e]),'');let _0x5357dd=_0x1d503a([0x52]);for(let _0xb8bf1d=0x0;_0xb8bf1d<_0x502960[_0x1d503a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb8bf1d+=0x2){let _0x4a1fef=window[_0x1d503a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x502960[_0x1d503a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb8bf1d,_0xb8bf1d+0x2));_0x4a1fef>=_0x41842e[_0x1d503a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a1fef-=_0x41842e[_0x1d503a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5357dd+=_0x41842e[_0x4a1fef];}return _0x5357dd;}function _0x1d8749(){const _0x311cf8=_0x5abdc6[_0x1d503a([0x73,0x70,0x6c,0x69,0x74])](_0x1d503a([0x2e]));if(0x3!=_0x311cf8[_0x1d503a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a96ab(_0x311cf8[0x1]);function _0x1a96ab(_0x2fc057){const _0x4b6f78=_0x342c05(_0x2fc057);return _0x4b6f78&&_0x34bc35()?_0x4b6f78:null;function _0x34bc35(){const _0x348d57=_0x4b6f78[_0x1d503a([0x6a,0x74,0x69])],_0x5ecb85=window[_0x1d503a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x348d57[_0x1d503a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x348d57[_0x1d503a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x250367={..._0x4b6f78,[_0x1d503a([0x6a,0x74,0x69])]:_0x348d57[_0x1d503a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x348d57[_0x1d503a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x250367[_0x1d503a([0x76,0x63])],_0x408f9d(_0x250367)==_0x5ecb85;}}}async function _0x1ef42b(){let _0x17b3b7=!0x0;try{const _0x2a3b5c=_0x5abdc6[_0x1d503a([0x73,0x70,0x6c,0x69,0x74])](_0x1d503a([0x2e])),[_0x4d4c62,_0x4118f5,_0x18b8cb]=_0x2a3b5c;return _0x9c9959(_0x4d4c62),await _0x26d868(_0x4d4c62,_0x4118f5,_0x18b8cb),_0x17b3b7;}catch{return!0x1;}function _0x9c9959(_0x1eb942){const _0xbb47a6=_0x342c05(_0x1eb942);_0xbb47a6&&_0xbb47a6[_0x1d503a([0x61,0x6c,0x67])]==_0x1d503a([0x45,0x53,0x32,0x35,0x36])||(_0x17b3b7=!0x1);}async function _0x26d868(_0x58a623,_0x2fefd6,_0x402dba){const _0x5aadf9=window[_0x1d503a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d503a([0x66,0x72,0x6f,0x6d])](_0xf7e45c(_0x402dba),_0x3f758e=>_0x3f758e[_0x1d503a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x130e5c=new window[(_0x1d503a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d503a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x58a623+_0x1d503a([0x2e])+_0x2fefd6),_0x4b9bce=window[_0x1d503a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d503a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b9bce)return;const _0x4d959c=await _0x4b9bce[_0x1d503a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d503a([0x6a,0x77,0x6b]),_0x170937,{[_0x1d503a([0x6e,0x61,0x6d,0x65])]:_0x1d503a([0x45,0x43,0x44,0x53,0x41]),[_0x1d503a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d503a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d503a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b9bce[_0x1d503a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d503a([0x6e,0x61,0x6d,0x65])]:_0x1d503a([0x45,0x43,0x44,0x53,0x41]),[_0x1d503a([0x68,0x61,0x73,0x68])]:{[_0x1d503a([0x6e,0x61,0x6d,0x65])]:_0x1d503a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4d959c,_0x5aadf9,_0x130e5c)||(_0x17b3b7=!0x1);}}function _0x342c05(_0x684dc2){return _0x684dc2[_0x1d503a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d503a([0x65,0x79]))?JSON[_0x1d503a([0x70,0x61,0x72,0x73,0x65])](_0xf7e45c(_0x684dc2)):null;}function _0xf7e45c(_0x29bad5){return window[_0x1d503a([0x61,0x74,0x6f,0x62])](_0x29bad5[_0x1d503a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d503a([0x2b]))[_0x1d503a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d503a([0x2f])));}function _0x408f9d(_0x19e56a){let _0x3c2ab9=0x1505;function _0x30fe08(_0x2b1e8d){for(let _0x5ad518=0x0;_0x5ad518<_0x2b1e8d[_0x1d503a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ad518++){const _0x218e3c=_0x2b1e8d[_0x1d503a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ad518);_0x3c2ab9=(_0x3c2ab9<<0x5)+_0x3c2ab9+_0x218e3c,_0x3c2ab9&=_0x3c2ab9;}}function _0x3eb44d(_0x351227){Array[_0x1d503a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x351227)?_0x351227[_0x1d503a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3eb44d):_0x351227&&typeof _0x351227==_0x1d503a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d503a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x351227)[_0x1d503a([0x73,0x6f,0x72,0x74])]()[_0x1d503a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x73f04f,_0xbc5ec2])=>{_0x30fe08(_0x73f04f),_0x3eb44d(_0xbc5ec2);}):_0x30fe08(window[_0x1d503a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x351227));}return _0x3eb44d(_0x19e56a),_0x3c2ab9>>>0x0;}function _0x23dfdf(_0x504f33){return _0x504f33[_0x1d503a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d503a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d503a([0x30]));}function _0x5d3ef3(_0x46c423){return _0x46c423[_0x1d503a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d503a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d503a([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d9800(_0x380409){return _0x49c019[_0x1d503a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d503a([0x68,0x61,0x73])](_0x380409);}function _0x491ffb(_0x2571f9){return _0x49c019[_0x1d503a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d503a([0x67,0x65,0x74])](_0x2571f9);}function _0x2268fa(){}function _0x1d503a(_0x42e847){return _0x42e847['map'](_0x581f60=>String['fromCharCode'](_0x581f60))['join']('');}_0x29c411(await _0x5cabe5());}(this);}set['adapter'](_0x66b051){if(this['_adapter'])throw new _0x3bdb9f('track-changes-adapter-already-set',this);this['_adapter']=_0x66b051;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x118c40=!0x1,toJSON:_0x4e0552=!0x1}={}){const _0x38af13=[];for(const _0x1253a5 of this['_suggestions']['values']())_0x118c40&&!_0x1253a5['isInContent']||_0x38af13['push'](_0x1253a5);return _0x4e0552?_0x38af13['map'](_0x58d84c=>_0x58d84c['toJSON']()):_0x38af13;}['getSuggestion'](_0x3b0498){const _0x3f4a6b=this['_suggestions']['get'](_0x3b0498);if(!_0x3f4a6b)throw new _0x3bdb9f('track-changes-suggestion-not-found',this);return _0x3f4a6b;}['hasSuggestion'](_0x5ada94){return this['_suggestions']['has'](_0x5ada94);}['addSuggestionData'](_0x1d1723){const {authorId:_0x1d8933,id:_0x1be181,originalSuggestionId:_0x234094,attributes:_0x56934f}=_0x1d1723,[_0x2e74e5,_0x4cface]=_0x1d1723['type']['split'](':'),_0xef0757=this['_suggestions']['get'](_0x1be181)||this['_createSuggestion'](_0x2e74e5,_0x4cface,_0x1be181,_0x1d8933,_0x56934f,_0x234094);if(this['_addThreadToSuggestion'](_0xef0757),this['_checkSuggestionCorrectness'](_0xef0757,_0x2e74e5,_0x4cface||null,_0x1d8933),_0xef0757['createdAt']=_0x1d1723['createdAt'],_0xef0757['_isDataLoaded']=!0x0,_0x56934f&&_0x56934f['@external']){const _0x2e5ba4=_0x56934f['@external'],_0x31a4aa=this['_getExternalAuthor'](_0x2e5ba4['authorName']);_0xef0757['authoredAt']=_0x2e5ba4['createdAt'],_0xef0757['author']=_0x31a4aa,_0xef0757['isExternal']=!0x0;}else _0xef0757['authoredAt']=_0x1d1723['createdAt'];switch(_0x1d1723['data']&&(_0xef0757['data']=_0x1d1723['data']),_0x1d1723['attributes']&&(_0xef0757['attributes']=_0x1d1723['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xef0757['_saved']=!0x0),this['_suggestionState']['get'](_0xef0757)){case'notReady':this['_suggestionState']['set'](_0xef0757,'dataReady');break;case'markerReady':_0xef0757['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xef0757])),this['_refreshSuggestionsChain'](new Set([_0xef0757])),this['_suggestionState']['set'](_0xef0757,'ready'),this['fire']('suggestionLoaded',_0xef0757)):this['_suggestionState']['set'](_0xef0757,'removed');}return _0xef0757;}['acceptSuggestion'](_0x1afcbe){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x46b4a0 of _0x1afcbe['getAllAdjacentSuggestions']())_0x46b4a0['accept']();});});}['discardSuggestion'](_0x11815f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x53d91f of _0x11815f['getAllAdjacentSuggestions']())_0x53d91f['discard']();});});}['enableCommand'](_0x52f252,_0x50abf3){const _0x52ee89=this['editor']['commands']['get'](_0x52f252);if(!_0x52ee89)throw new _0x3bdb9f('track-changes-command-not-found',this,{'commandName':_0x52f252});if(this['_enabledCommands']['has'](_0x52ee89))throw new _0x3bdb9f('track-changes-enable-command-twice',this,{'commandName':_0x52f252});this['_enabledCommands']['add'](_0x52ee89),_0x50abf3&&_0x52ee89['on']('execute',(_0x44c82c,_0x2b7a90)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2b7a90['length']>0x0&&_0x2b7a90[_0x2b7a90['length']-0x1]&&_0x2b7a90[_0x2b7a90['length']-0x1]['forceDefaultExecution']?_0x2b7a90['pop']():(_0x44c82c['return']=_0x50abf3((..._0x54e5e7)=>_0x52ee89['execute'](..._0x54e5e7,{'forceDefaultExecution':!0x0}),..._0x2b7a90),_0x44c82c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x28a2e5){let _0x288a53,_0x423a62;const _0x46ec5e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x288a53=_0x28a2e5();}catch(_0x453365){_0x423a62=_0x453365;}return _0x46ec5e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x423a62&&_0x3bdb9f['rethrowUnexpectedError'](_0x423a62,this),_0x288a53;}['markInsertion'](_0x270bb8,_0x14ad55=null,_0xa11bd9={}){if(_0x270bb8['isCollapsed'])return null;const _0x101a5c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xa11bd9['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x172319,meta:_0x229576}of this['_findSuggestions'](_0x270bb8,'insertion'))if(_0x229576['isOwn']){if(!_0x229576['isNextTo']){if(_0x229576['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x172319,_0xa11bd9))continue;return _0x172319;}if(sn(_0x172319,_0xa11bd9))return _0x172319;this['_breakSuggestionMarker'](_0x172319,_0x270bb8['start'],_0x270bb8['end']);break;}if(_0x14ad55==_0x172319['subType']&&sn(_0x172319,_0xa11bd9)){const _0x3f3b0c=_0x172319['getFirstRange']();return _0x3f3b0c['start']['isEqual'](_0x270bb8['end'])?this['_setSuggestionRange'](_0x172319,this['_model']['createRange'](_0x270bb8['start'],_0x3f3b0c['end'])):this['_setSuggestionRange'](_0x172319,this['_model']['createRange'](_0x3f3b0c['start'],_0x270bb8['end'])),_0x172319;}}const _0xbd6061=_0x137421(),_0x3506f3=_0x101a5c['id'],_0xe6a63=_0x14ad55?'insertion:'+_0x14ad55:'insertion',_0x1505c7=this['_setSuggestionData']({'id':_0xbd6061,'type':_0xe6a63,'createdAt':new Date(),'authorId':_0x3506f3,'attributes':_0xa11bd9});return this['_addSuggestionMarker'](_0xe6a63,_0xbd6061,_0x3506f3,_0x270bb8),_0x1505c7;}['markMultiRangeInsertion'](_0x29f0ba,_0x133e42='multi',_0x38a77e={}){const _0x13194a=this['editor']['plugins']['get']('Users')['me'],_0x1357a8=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x133e42,'join');this['_trackingSessionId']&&(_0x38a77e['trackingSessionId']=this['_trackingSessionId']);for(const _0x5874c6 of this['getSuggestions']())if(_0x5874c6['author']['id']==_0x13194a['id']&&'insertion'==_0x5874c6['type']&&_0x5874c6['subType']==_0x133e42&&sn(_0x5874c6,_0x38a77e)&&(_0x1357a8(_0x5874c6['getRanges'](),_0x29f0ba)||_0x1357a8(_0x29f0ba,_0x5874c6['getRanges']()))){for(const _0x1d0931 of _0x29f0ba)_0x5874c6['addRange'](_0x1d0931);return _0x5874c6;}for(const {suggestion:_0x47f2eb,meta:_0x57b22d}of this['_findSuggestions'](_0x29f0ba,'insertion')){if(!_0x57b22d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x57b22d['containsRangeInObject'])continue;if(!sn(_0x47f2eb,_0x38a77e))continue;let _0xd23021=!0x0;for(const _0x189a08 of _0x47f2eb['getRanges']())for(const _0x23b604 of _0x29f0ba)if(!_0x189a08['containsRange'](_0x23b604)){_0xd23021=!0x1;break;}if(_0xd23021)return _0x47f2eb;}const _0x5d1983=_0x137421(),_0x19686f=_0x13194a['id'],_0x5aeec1='insertion:'+_0x133e42,_0x4cf496=this['_setSuggestionData']({'id':_0x5d1983,'type':_0x5aeec1,'createdAt':new Date(),'authorId':_0x19686f,'attributes':_0x38a77e});for(const _0x2df40c of _0x29f0ba)this['_addSuggestionMarker'](_0x5aeec1,_0x5d1983,_0x19686f,_0x2df40c,x['getMultiRangeId']());return _0x4cf496;}['markInlineFormat'](_0x32bb46,_0x3e9b89,_0x3d63ad=null,_0x496c66={}){if(_0x3d63ad=_0x3d63ad||Ht(_0x3e9b89),_0x32bb46['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x496c66['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xab44d8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3d63ad,'accept');return this['forceDefaultExecution'](()=>_0xab44d8([_0x32bb46],_0x3e9b89,_0x496c66)),null;}const _0x1fbad0=this['editor']['plugins']['get']('Users')['me'],_0x38fa62=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5792ce,meta:_0x5b0cfb}of this['_findSuggestions'](_0x32bb46,'insertion'))_0x5b0cfb['isOwn']&&!_0x5b0cfb['isInsideObject']&&_0x38fa62['push'](..._0x5792ce['getRanges']());}const _0x53b736=function(_0x1e4f24,_0x24cb72){const _0xd0f7dc=[];for(const _0xd1b174 of _0x24cb72){const _0x3fa80f=_0x1e4f24['getIntersection'](_0xd1b174);_0x3fa80f&&_0xd0f7dc['push'](_0x3fa80f);}return _0xd0f7dc;}(_0x32bb46,_0x38fa62),_0x423bc3=function(_0x40f10e,_0x597ef9){const _0x35b41a=[_0x40f10e];for(const _0x1509a7 of _0x597ef9){let _0x3aa9f6=0x0;for(;_0x3aa9f6<_0x35b41a['length'];){const _0x9c6e76=_0x35b41a[_0x3aa9f6]['getDifference'](_0x1509a7);_0x35b41a['splice'](_0x3aa9f6,0x1,..._0x9c6e76),_0x3aa9f6+=_0x9c6e76['length'];}}return _0x35b41a;}(_0x32bb46,_0x38fa62);_0x53b736['length']&&this['_model']['change'](()=>{for(const _0x2a96c8 of _0x53b736){const _0x4aa345=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3d63ad,'accept');this['forceDefaultExecution'](()=>_0x4aa345([_0x2a96c8],_0x3e9b89,_0x496c66));}});for(const _0x3ac56b of _0x423bc3){let _0x2a0474=null,_0x5185f0=_0x3ac56b['start'],_0x2bfa8d=_0x3ac56b['end'];for(const {suggestion:_0x38166f,meta:_0xbb0285}of this['_findSuggestions'](_0x3ac56b,'formatInline')){if(!_0xbb0285['isOwn'])continue;if(_0x38166f['subType']!=_0x3d63ad)continue;if(!sn(_0x38166f,_0x496c66))continue;const _0x2c8f98=_0x38166f['getFirstRange']();if(_0x2c8f98['containsRange'](_0x3ac56b,!0x0))return null;_0x5185f0=_0x5185f0['isBefore'](_0x2c8f98['start'])?_0x5185f0:_0x2c8f98['start'],_0x2bfa8d=_0x2bfa8d['isAfter'](_0x2c8f98['end'])?_0x2bfa8d:_0x2c8f98['end'],_0x2a0474?_0x2c8f98['start']['isBefore'](_0x2a0474['getFirstRange']()['start'])?(_0x2a0474['removeMarkers'](),_0x2a0474=_0x38166f):_0x38166f['removeMarkers']():_0x2a0474=_0x38166f;}const _0x109ce0=this['_model']['createRange'](_0x5185f0,_0x2bfa8d);if(_0x2a0474)this['_setSuggestionRange'](_0x2a0474,_0x109ce0);else{const _0x39b7df=_0x137421(),_0x3a0f48=_0x1fbad0['id'];this['_setSuggestionData']({'id':_0x39b7df,'type':'formatInline:'+_0x3d63ad,'data':_0x3e9b89,'createdAt':new Date(),'authorId':_0x3a0f48,'attributes':_0x496c66}),this['_addSuggestionMarker']('formatInline:'+_0x3d63ad,_0x39b7df,_0x3a0f48,_0x109ce0);}}return null;}['markBlockFormat'](_0x67c3dc,_0x594d15,_0x17bcfe=[],_0xfa458e=null,_0x342561={}){_0x594d15['formatGroupId']||(_0x594d15['formatGroupId']=_0x594d15['commandName']),_0x594d15['multipleBlocks']=_0x67c3dc['is']('range'),_0xfa458e=_0xfa458e||Ht(_0x594d15);const _0x334365=_0x17bcfe['map'](_0x17e710=>tn(_0x17e710,this['_model'])),_0x5bc159=_0x67c3dc['is']('range')?_0x67c3dc:tn(_0x67c3dc,this['_model']);if(this['_trackingSessionId']&&(_0x342561['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xa9b77c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfa458e,'accept');return this['forceDefaultExecution'](()=>_0xa9b77c([_0x5bc159],_0x594d15,_0x342561)),null;}_0x334365['push'](_0x5bc159);let _0x5d332d=!0x0;for(const _0x1feed1 of _0x334365)if(!this['_rangeIsInLocalUserInsertion'](_0x1feed1)){_0x5d332d=!0x1;break;}if(_0x5d332d&&'always'!==this['_trackFormatChanges']){const _0x58473b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfa458e,'accept');return this['forceDefaultExecution'](()=>_0x58473b([_0x5bc159],_0x594d15,_0x342561)),null;}let _0x1f1149=null,_0x4dff91=_0x5bc159['start'],_0x4ca551=_0x5bc159['end'];for(const {suggestion:_0x27927d,meta:_0x44ce8b}of this['_findSuggestions'](_0x5bc159,'formatBlock')){if(!_0x44ce8b['isOwn'])continue;if(_0x44ce8b['isNextTo']||_0x44ce8b['containsRangeInObject']||_0x44ce8b['isInsideObject'])continue;if(_0x27927d['data']['formatGroupId']!=_0x594d15['formatGroupId'])continue;if(!sn(_0x27927d,_0x342561))continue;const _0x3d359d=_0x27927d['getFirstRange']();if(_0x27927d['subType']==_0xfa458e){if(_0x3d359d['containsRange'](_0x5bc159,!0x0))return null;_0x4dff91=_0x4dff91['isBefore'](_0x3d359d['start'])?_0x4dff91:_0x3d359d['start'],_0x4ca551=_0x4ca551['isAfter'](_0x3d359d['end'])?_0x4ca551:_0x3d359d['end'],_0x1f1149?_0x3d359d['start']['isBefore'](_0x1f1149['getFirstRange']()['start'])?(_0x1f1149['removeMarkers'](),_0x1f1149=_0x27927d):_0x27927d['removeMarkers']():_0x1f1149=_0x27927d;}else{const _0xea856a=_0x5bc159['getIntersection'](_0x3d359d);this['_cutOutSuggestionMarker'](_0x27927d,_0xea856a);}}const _0x5e5c90=this['editor']['plugins']['get']('Users')['me'],_0x5bdff8=_0x137421(),_0x2f3541=_0x5e5c90['id'];if(_0x1f1149)return this['_setSuggestionRange'](_0x1f1149,this['_model']['createRange'](_0x4dff91,_0x4ca551)),_0x1f1149;{const _0x1ade22=this['_setSuggestionData']({'id':_0x5bdff8,'type':'formatBlock:'+_0xfa458e,'data':_0x594d15,'createdAt':new Date(),'authorId':_0x2f3541,'attributes':_0x342561});return this['_addSuggestionMarker']('formatBlock:'+_0xfa458e,_0x5bdff8,_0x2f3541,this['_model']['createRange'](_0x4dff91,_0x4ca551)),_0x1ade22;}}['markMultiRangeBlockFormat'](_0xf4bf8d,_0x944f96,_0x39950c=[],_0x471654=null,_0x11278e={}){_0x944f96['formatGroupId']||(_0x944f96['formatGroupId']=_0x944f96['commandName']);const _0x8fceb2=_0xf4bf8d[0x0];_0x944f96['multipleBlocks']=_0x8fceb2['is']('range'),_0x471654=_0x471654||Ht(_0x944f96);const _0x126583=_0x39950c['map'](_0x5215c2=>tn(_0x5215c2,this['_model'])),_0xe24d5c=_0x8fceb2['is']('range')?_0xf4bf8d:_0xf4bf8d['map'](_0x48bf13=>tn(_0x48bf13,this['_model']));if(this['_trackingSessionId']&&(_0x11278e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x460d44=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x471654,'accept');return this['forceDefaultExecution'](()=>_0x460d44(_0xe24d5c,_0x944f96,_0x11278e)),null;}_0x126583['push'](..._0xe24d5c);let _0xe76068=!0x0;for(const _0x23179c of _0x126583)if(!this['_rangeIsInLocalUserInsertion'](_0x23179c)){_0xe76068=!0x1;break;}if(_0xe76068&&'always'!==this['_trackFormatChanges']){const _0x49810c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x471654,'accept');return this['forceDefaultExecution'](()=>_0x49810c(_0xe24d5c,_0x944f96,_0x11278e)),null;}const _0x5bdae0=this['editor']['plugins']['get']('Users')['me'];for(const _0x4020c2 of this['getSuggestions']()){const _0x37ee2a=_0x4020c2['data'];if(_0x4020c2['author']['id']!=_0x5bdae0['id'])continue;if('formatBlock'!=_0x4020c2['type']||_0x37ee2a['formatGroupId']!=_0x944f96['formatGroupId'])continue;if(!sn(_0x4020c2,_0x11278e))continue;const _0x4c7c03=_0x4020c2['subType']==_0x471654;for(let _0x3982d1=0x0;_0x3982d1<_0xe24d5c['length'];_0x3982d1++){const _0x15130f=_0xe24d5c[_0x3982d1];for(const _0x201972 of _0x4020c2['getMarkers']()){const _0x4a20f8=_0x201972['getRange']();if(_0x15130f['isEqual'](_0x4a20f8)){_0x4c7c03?(_0xe24d5c['splice'](_0x3982d1,0x1),_0x3982d1--):_0x4020c2['removeMarker'](_0x201972['name']);break;}}}}if(0x0==_0xe24d5c['length'])return null;const _0x3b2d9a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x471654,'join');for(const _0x156ff1 of this['getSuggestions']()){const _0x5a91d3=_0x156ff1['data'];if(_0x156ff1['author']['id']==_0x5bdae0['id']&&('formatBlock'==_0x156ff1['type']&&_0x5a91d3['formatGroupId']==_0x944f96['formatGroupId']&&_0x156ff1['subType']==_0x471654&&sn(_0x156ff1,_0x11278e)&&(_0x3b2d9a(_0x156ff1['getRanges'](),_0xe24d5c)||_0x3b2d9a(_0xe24d5c,_0x156ff1['getRanges']())))){for(const _0x207670 of _0xe24d5c)_0x156ff1['addRange'](_0x207670);return _0x156ff1;}}const _0x155ad5=_0x137421(),_0x58eda5=_0x5bdae0['id'],_0x2a3712='formatBlock:'+_0x471654,_0x1eb178=this['_setSuggestionData']({'id':_0x155ad5,'type':_0x2a3712,'data':_0x944f96,'createdAt':new Date(),'authorId':_0x58eda5,'attributes':_0x11278e});for(const _0x418285 of _0xe24d5c)this['_addSuggestionMarker'](_0x2a3712,_0x155ad5,_0x58eda5,_0x418285,x['getMultiRangeId']());return _0x1eb178;}['markDeletion'](_0x4c4db6,_0x3890c3=null,_0x1de85c={}){if(_0x4c4db6['isCollapsed'])return null;const _0x522cfc=this['editor']['plugins']['get']('Users')['me'],_0x287a1a=new _0x2bf002(_0x4c4db6['start'],_0x4c4db6['end']);this['_trackingSessionId']&&(_0x1de85c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1eaa7e,meta:_0x1ea4b5}of this['_findSuggestions'](_0x287a1a,'insertion'))if(_0x1ea4b5['isOwn']&&!_0x1ea4b5['isNextTo']){if(_0x1eaa7e['isMultiRange']){const _0x5a50ba=_0x1eaa7e['getRanges']()['filter'](_0x306239=>'$graveyard'!=_0x306239['root']['rootName']);_0x5a50ba['every'](_0x6f5102=>_0x287a1a['containsRange'](_0x6f5102,!0x0))&&_0x1eaa7e['discard']();if(_0x5a50ba['some'](_0xb451d5=>_0xb451d5['containsRange'](_0x287a1a,!0x0))){const _0x4dfb09=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3890c3,'accept');return this['forceDefaultExecution'](()=>_0x4dfb09([_0x287a1a],null,_0x1de85c)),null;}}else{const _0x216935=_0x287a1a['getIntersection'](_0x1eaa7e['getFirstRange']());null!==_0x216935&&_0x1eaa7e['_onDiscard']([_0x216935],null,_0x1de85c);}}if(_0x287a1a['detach'](),_0x287a1a['isCollapsed']||'$graveyard'==_0x287a1a['root']['rootName'])return null;let _0x3aff27=null,_0xf57f50=_0x287a1a['start'],_0x2fdb84=_0x287a1a['end'];const _0x3943d0=this['_findSuggestions'](_0x287a1a,'deletion');for(const {suggestion:_0x380158,meta:_0x185e02}of _0x3943d0){const _0x384fa6=this['_model']['createRange'](_0xf57f50,_0x2fdb84);if(_0x185e02['isOwn']&&(this['_mergeNestedSuggestions']||!_0x185e02['containsRangeInObject']&&!_0x185e02['isInsideObject'])){if(_0x380158['isMultiRange']){if(!sn(_0x380158,_0x1de85c))continue;let _0x21b8c1=!0x0;for(const _0x4e9217 of _0x380158['getRanges']()){if(_0x4e9217['containsRange'](_0x384fa6,!0x0))return _0x380158;_0x384fa6['containsRange'](_0x4e9217)||(_0x21b8c1=!0x1);}_0x21b8c1&&_0x380158['discard']();}else{const _0x17e91c=_0x380158['getFirstRange']();if(_0x17e91c['containsRange'](_0x384fa6,!0x0))return _0x380158;if(!sn(_0x380158,_0x1de85c)){_0x384fa6['containsRange'](_0x17e91c)?_0x380158['removeMarkers']():_0x17e91c['containsPosition'](_0xf57f50)?_0xf57f50=_0x17e91c['end']:_0x17e91c['containsPosition'](_0x2fdb84)&&(_0x2fdb84=_0x17e91c['start']);continue;}_0xf57f50=_0xf57f50['isBefore'](_0x17e91c['start'])?_0xf57f50:_0x17e91c['start'],_0x2fdb84=_0x2fdb84['isAfter'](_0x17e91c['end'])?_0x2fdb84:_0x17e91c['end'],_0x1de85c=Object['assign']({},_0x380158['attributes']),_0x3aff27?_0x17e91c['start']['isBefore'](_0x3aff27['getFirstRange']()['start'])?(_0x3aff27['removeMarkers'](),_0x3aff27=_0x380158):_0x380158['removeMarkers']():_0x3aff27=_0x380158;}}}if(_0x3aff27)return this['_setSuggestionRange'](_0x3aff27,this['_model']['createRange'](_0xf57f50,_0x2fdb84)),_0x3aff27;{const _0x1a51d2=_0x137421(),_0x2ffee2=this['_model']['createRange'](_0xf57f50,_0x2fdb84),_0x275e3e=_0x522cfc['id'],_0x198357=_0x3890c3?'deletion:'+_0x3890c3:'deletion',_0x5a0d80=this['_setSuggestionData']({'id':_0x1a51d2,'type':_0x198357,'createdAt':new Date(),'authorId':_0x275e3e,'attributes':_0x1de85c});return this['_addSuggestionMarker'](_0x198357,_0x1a51d2,_0x275e3e,_0x2ffee2),_0x5a0d80;}}['markMultiRangeDeletion'](_0xeb2200,_0x5d2fd9='multi',_0x1b7732={}){const _0x3ff7ef=this['editor']['plugins']['get']('Users')['me'],_0x496662=_0xeb2200['map'](_0x151ab9=>new _0x2bf002(_0x151ab9['start'],_0x151ab9['end'])),_0x13e2c1=new Set();this['_trackingSessionId']&&(_0x1b7732['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2026a2,meta:_0x40c40e}of this['_findSuggestions'](_0x496662,'insertion'))_0x40c40e['isOwn']&&!_0x40c40e['isNextTo']&&_0x13e2c1['add'](_0x2026a2);for(const _0x330f20 of _0x13e2c1)if(_0x330f20['isMultiRange']){const _0x401586=_0x330f20['getRanges']();(!_0x330f20['attributes']||!_0x330f20['attributes']['skipNestingCheck'])&&(_0x401586['every'](_0x136213=>_0x496662['some'](_0x4883be=>_0x4883be['containsRange'](_0x136213,!0x0)))&&_0x330f20['discard']());if(_0x496662['every'](_0x232d9b=>_0x401586['some'](_0xec6b01=>_0xec6b01['containsRange'](_0x232d9b,!0x0)))){const _0x4169a6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d2fd9,'accept');return this['forceDefaultExecution'](()=>_0x4169a6(_0xeb2200,null,_0x1b7732)),null;}}else{const _0x3fdf52=_0x330f20['getFirstRange']();_0x496662['some'](_0x10ebd7=>_0x10ebd7['containsRange'](_0x3fdf52,!0x0))&&_0x330f20['discard']();if(_0x496662['every'](_0x18acf7=>_0x3fdf52['containsRange'](_0x18acf7,!0x0))){const _0x10be34=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d2fd9,'accept');return this['forceDefaultExecution'](()=>_0x10be34(_0x496662,null,_0x1b7732)),null;}}const _0x25b8f0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d2fd9,'join');let _0x5c5081=null;for(const _0x3b159d of this['getSuggestions']())if(_0x3b159d['author']['id']==_0x3ff7ef['id']&&_0x3b159d['isInContent']&&'deletion'==_0x3b159d['type']&&_0x3b159d['subType']==_0x5d2fd9&&sn(_0x3b159d,_0x1b7732)&&(_0x25b8f0(_0x3b159d['getRanges'](),_0x496662)||_0x25b8f0(_0x496662,_0x3b159d['getRanges']()))){if(_0x5c5081){if(_0x3b159d['commentThread']&&_0x3b159d['commentThread']['length'])continue;for(const _0x3c3b2a of _0x3b159d['getRanges']())_0x5c5081['isIntersectingWithRange'](_0x3c3b2a)||_0x5c5081['addRange'](_0x3c3b2a);_0x3b159d['removeMarkers']();}else{_0x5c5081=_0x3b159d;for(const _0x44f916 of _0x496662)_0x3b159d['isIntersectingWithRange'](_0x44f916)||_0x3b159d['addRange'](_0x44f916);}}if(_0x5c5081)return _0x5c5081;_0x13e2c1['clear']();for(const {suggestion:_0x3ce3d7,meta:_0x472723}of this['_findSuggestions'](_0x496662,'deletion'))_0x472723['isOwn']&&(this['_mergeNestedSuggestions']||!_0x472723['containsRangeInObject']&&!_0x472723['isInsideObject'])&&sn(_0x3ce3d7,_0x1b7732)&&_0x13e2c1['add'](_0x3ce3d7);for(const _0x2a431c of _0x13e2c1){const _0x2ca97a=_0x2a431c['getRanges']();if(!_0x1b7732||!_0x1b7732['skipNestingCheck']){if(_0x496662['every'](_0x51fa91=>_0x2ca97a['some'](_0x3b15ba=>_0x3b15ba['containsRange'](_0x51fa91,!0x0))))return _0x2a431c;}(!_0x2a431c['attributes']||!_0x2a431c['attributes']['skipNestingCheck'])&&(_0x2ca97a['every'](_0x3fb40b=>_0x496662['some'](_0x5eb624=>_0x5eb624['containsRange'](_0x3fb40b,!0x0)))&&_0x2a431c['discard']());}const _0x2f0b0d=_0x137421(),_0x40a0a4=_0x3ff7ef['id'],_0x1518e3='deletion:'+_0x5d2fd9,_0x59a217=this['_setSuggestionData']({'id':_0x2f0b0d,'type':_0x1518e3,'createdAt':new Date(),'authorId':_0x40a0a4,'attributes':_0x1b7732});for(const _0x362af6 of _0x496662)_0x362af6['detach'](),_0x362af6['isCollapsed']||'$graveyard'==_0x362af6['root']['rootName']||this['_addSuggestionMarker'](_0x1518e3,_0x2f0b0d,_0x40a0a4,_0x362af6,x['getMultiRangeId']());return _0x59a217;}['markAttributeChange'](_0x2ab9d1,_0x2253ea,_0x2b00cd,_0x479a08,_0x251704){if(_0x2ab9d1['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x12b3a7=this['editor']['plugins']['get']('Users')['me']['id'],_0x53b890=Array['from'](this['_suggestions']['values']())['filter'](_0xae5bfd=>'attribute'==_0xae5bfd['type']&&_0xae5bfd['data']['key']==_0x2253ea&&_0xae5bfd['isIntersectingWithRange'](_0x2ab9d1));if(this['_trackingSessionId']&&(_0x251704['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x46fbaa=this['_findSuggestions'](_0x2ab9d1,'insertion')['filter'](({meta:_0x3a4233})=>_0x3a4233['isOwn']&&!_0x3a4233['isInsideObject']&&!_0x3a4233['isNextTo'])['map'](({suggestion:_0x57bdbe})=>_0x57bdbe);_0x53b890['unshift'](..._0x46fbaa);}const _0x268da9=new Map([[_0x2ab9d1,_0x2b00cd]]);for(const _0x17e93d of _0x53b890){const _0x1a7129='attribute'==_0x17e93d['type']?_0x17e93d['data']['oldValue']:void 0x0,_0x49fca7=_0x17e93d['getFirstRange'](),_0x4c32c0=Array['from'](_0x268da9['keys']())['find'](_0x38f6c8=>_0x38f6c8['isIntersecting'](_0x49fca7));if(!_0x4c32c0)continue;const _0x284400=_0x4c32c0['getDifference'](_0x49fca7);this['_isBlockAttribute'](_0x2253ea)&&'insertion'==_0x17e93d['type']&&0x0!=_0x284400['length']||(_0x268da9['delete'](_0x4c32c0),_0x284400['forEach'](_0x157a70=>{_0x268da9['set'](_0x157a70,_0x2b00cd);}),'insertion'!=_0x17e93d['type']&&_0x1a7129!=_0x479a08&&_0x268da9['set'](_0x4c32c0['getIntersection'](_0x49fca7),_0x1a7129));}const _0x39624f=[];for(const [_0x103f56,_0x1d4457]of _0x268da9){const _0x43c21f=_0x137421(),_0x316b32={'key':_0x2253ea,'oldValue':_0x1d4457,'newValue':_0x479a08};_0x2253ea['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':_0x2253ea});const _0x14ebfe=('attribute:'+(_0x2253ea+'|'+Ht({'newValue':_0x479a08})))['substring'](0x0,0x3c),_0x1a15ce=this['_setSuggestionData']({'id':_0x43c21f,'type':_0x14ebfe,'data':_0x316b32,'createdAt':new Date(),'authorId':_0x12b3a7,'attributes':_0x251704});_0x39624f['push'](_0x1a15ce),this['_addSuggestionMarker'](_0x14ebfe,_0x43c21f,_0x12b3a7,_0x103f56);}return _0x39624f;}['enableDefaultAttributesIntegration'](_0xb5f68c){this['enableCommand'](_0xb5f68c,(_0x37fb62,..._0x47ac31)=>{this['recordAttributeChanges'](()=>{_0x37fb62(..._0x47ac31);});});}['registerBlockAttribute'](_0x59613e){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x59613e);}['registerInlineAttribute'](_0x496d02){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x496d02);}['startTrackingSession'](_0x114605){return this['_trackingSessionId']=void 0x0!==_0x114605?_0x114605:_0x137421(),this['_trackingSessionId'];}['_getAttributeKey'](_0x94214b){return'attribute'==_0x94214b['type']?_0x94214b['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x3d3581){if(0x0==_0x3d3581['length'])return;const _0x5944c1=this['editor'],_0x481f55=_0x5944c1['plugins']['get'](_0x256fef),_0x4b3194=[];_0x5944c1['model']['change'](_0x1b8c73=>{for(let _0x50fe14=0x0;_0x50fe14<_0x3d3581['length'];_0x50fe14++){const _0x3032cf=_0x3d3581[_0x50fe14];if(_0x3032cf['baseVersion']=_0x5944c1['model']['document']['version'],_0x3032cf['isDocumentOperation']=!0x0,_0x481f55['isMarkedRemoveOperation'](_0x3032cf)){const _0x260298=Lt(_0x3032cf['newRange'],_0x5944c1['model']);_0x4b3194['unshift'](_0x2bf002['fromRange'](_0x260298));}else switch(_0x3032cf['type']){case'rename':{const _0x4eda37=_0x3032cf['oldName'],_0x28602e=_0x3032cf['newName'];if(_0x4eda37==_0x28602e)break;_0x1b8c73['batch']['addOperation'](_0x3032cf),_0x5944c1['model']['applyOperation'](_0x3032cf);const _0xbd27dd='$elementName',_0x5155ee=_0x3032cf['position'],_0x2bc720=_0x5944c1['model']['createRange'](_0x5155ee,_0x5944c1['model']['createPositionAt'](_0x5155ee['nodeAfter'],'end'));this['markAttributeChange'](_0x2bc720,_0xbd27dd,_0x4eda37,_0x28602e,{'groupId':_0x137421()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x126e8a=_0x3032cf['oldValue'],_0x2fbea0=_0x3032cf['newValue'];if(_0x126e8a==_0x2fbea0)break;_0x1b8c73['batch']['addOperation'](_0x3032cf),_0x5944c1['model']['applyOperation'](_0x3032cf);const _0x318b40=_0x3032cf['key'];if(!this['_isRegisteredAttribute'](_0x318b40))break;const _0x331286=Lt(_0x3032cf['range'],_0x5944c1['model']);this['markAttributeChange'](_0x331286,_0x318b40,_0x126e8a,_0x2fbea0,{'groupId':_0x137421()});break;}case'insert':{_0x1b8c73['batch']['addOperation'](_0x3032cf),_0x5944c1['model']['applyOperation'](_0x3032cf);if(_0x3d3581[_0x50fe14+0x1]&&'move'==_0x3d3581[_0x50fe14+0x1]['type'])break;const _0xc99fcb=_0x3032cf['position'],_0x4cdbb3=_0x3032cf['howMany'],_0x4b1514=Lt(_0x5944c1['model']['createRange'](_0xc99fcb,_0xc99fcb['getShiftedBy'](_0x4cdbb3)),_0x5944c1['model']);this['markInsertion'](_0x4b1514);break;}case'split':{_0x1b8c73['batch']['addOperation'](_0x3032cf),_0x5944c1['model']['applyOperation'](_0x3032cf);const _0x5e58a4=_0x3032cf['splitPosition'],_0x2fe49b=_0x3032cf['moveTargetPosition'];this['markInsertion'](_0x5944c1['model']['createRange'](_0x5e58a4,_0x2fe49b));break;}case'move':case'remove':_0x1b8c73['batch']['addOperation'](_0x3032cf),_0x5944c1['model']['applyOperation'](_0x3032cf);}}for(const _0x52b5be of _0x4b3194)_0x52b5be['detach'](),this['markDeletion'](_0x52b5be);});}['_setSuggestionRange'](_0x2fd4da,_0x16ddf2){const _0x355864=_0x2fd4da['getFirstMarker']();this['_model']['change'](_0x58d480=>{_0x58d480['updateMarker'](_0x355864,{'range':_0x16ddf2});});}['_addThreadToSuggestion'](_0x334b0c){const _0x5af6d7=_0x334b0c['id'],_0x1bff32=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5af6d7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1bff32,'threadId':_0x5af6d7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4cbb05=this['_commentsRepository']['getCommentThread'](_0x5af6d7);_0x4cbb05['unbind']('isRemovable'),_0x4cbb05['isRemovable']=!0x1,_0x334b0c['commentThread']=_0x4cbb05;}['_checkSuggestionCorrectness'](_0x6ea9e5,_0x35ae10,_0x44e888,_0x3178c5){if(_0x6ea9e5['type']!=_0x35ae10||_0x6ea9e5['subType']!=_0x44e888||_0x6ea9e5['creator']['id']!=_0x3178c5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3bdb9f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x13fe80,_0x43a813){const _0x137442=_0x13fe80['getFirstRange']();if(_0x43a813['isEqual'](_0x137442))_0x13fe80['removeMarkers']();else{if(_0x137442['containsRange'](_0x43a813)){const _0x5f52a1=this['_model']['createPositionAt'](_0x43a813['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x13fe80,this['_model']['createRange'](_0x137442['start'],_0x5f52a1));const _0x8ac47e=_0x137421(),_0x13e833=_0x13fe80['creator']['id'],_0x23bd1d=_0x13fe80['type']+':'+_0x13fe80['subType'];this['_setSuggestionData']({'id':_0x8ac47e,'type':_0x23bd1d,'createdAt':new Date(),'authorId':_0x13e833,'data':_0x13fe80['data'],'attributes':_0x13fe80['attributes']});const _0x948b6d=this['_model']['createPositionAt'](_0x43a813['end']['parent'],'after'),_0x3f2cb5=this['_model']['createRange'](_0x948b6d,_0x137442['end']);this['_addSuggestionMarker'](_0x23bd1d,_0x8ac47e,_0x13e833,_0x3f2cb5);}else{if(_0x137442['containsPosition'](_0x43a813['start'])){const _0x20bf0d=this['_model']['createPositionAt'](_0x43a813['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x13fe80,this['_model']['createRange'](_0x137442['start'],_0x20bf0d));}else{const _0x4dde12=this['_model']['createPositionAt'](_0x43a813['end']['parent'],'after');this['_setSuggestionRange'](_0x13fe80,this['_model']['createRange'](_0x4dde12,_0x137442['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5177b2){for(const {suggestion:_0x406e8e,meta:_0x48b7f0}of this['_findSuggestions'](_0x5177b2,'insertion')){if(!_0x48b7f0['isOwn'])continue;const _0x5b6151=_0x406e8e['getRanges']();for(const _0x536676 of _0x5b6151)if(!_0x5177b2['getDifference'](_0x536676)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4cc38b){return this['editor']['plugins']['get']('Users')['getUser'](_0x4cc38b);}['_getExternalAuthor'](_0x163b8c){const _0x560bd1=this['editor']['plugins']['get']('Users'),_0x57afb4=_0x30679b('external:'+_0x163b8c),_0x420829=_0x560bd1['getUser'](_0x57afb4);return _0x420829||_0x560bd1['addUser']({'id':_0x57afb4,'name':_0x163b8c});}['_createSuggestion'](_0x154044,_0x1f231b,_0x143d95,_0x148519,_0x30dcd0,_0x45dac8){const _0x2fafba=this['_getAuthorFromId'](_0x148519);if(!_0x2fafba)throw new _0x3bdb9f('track-changes-user-not-found',this,{'authorId':_0x148519,'suggestionId':_0x143d95});const _0x23ffbf=this['_suggestionFactory']['buildSuggestion'](_0x154044,_0x1f231b,_0x143d95,_0x2fafba,_0x30dcd0,_0xd10b13=>{this['_updateSuggestionData'](_0x143d95,{'attributes':_0xd10b13});const _0x1d6430=this['getSuggestion'](_0x143d95);this['_joinWithAdjacentSuggestions'](new Set([_0x1d6430])),this['_refreshSuggestionsChain'](new Set([_0x1d6430]));},_0x45dac8);return this['listenTo'](_0x23ffbf,'accept',()=>{this['_updateSuggestionData'](_0x143d95,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x23ffbf,'discard',()=>{this['_updateSuggestionData'](_0x143d95,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x143d95,_0x23ffbf),this['_suggestionState']['set'](_0x23ffbf,'notReady'),_0x23ffbf;}['_splitMarkerName'](_0x33d8c3){return Gt(_0x33d8c3);}['_breakSuggestionMarker'](_0x138623,_0xf2f5e3,_0x352d89){const _0x1ed23f=_0x138623['getFirstRange'](),_0x56839c=_0x1ed23f['start'],_0x303510=_0x1ed23f['end'];this['_setSuggestionRange'](_0x138623,this['_model']['createRange'](_0x56839c,_0xf2f5e3));const _0x30a4c8=_0x137421(),_0x7de573=_0x138623['creator']['id'],_0x4ce442=_0x138623['type']+(_0x138623['subType']?':'+_0x138623['subType']:'');this['_setSuggestionData']({'id':_0x30a4c8,'type':_0x4ce442,'createdAt':new Date(),'authorId':_0x7de573,'originalSuggestionId':_0x138623['_originalSuggestionId']||_0x138623['id'],'attributes':_0x138623['attributes'],'data':_0x138623['data']});const _0x4e00ac=this['_getAttributeKey'](_0x138623);('formatBlock'==_0x138623['type']||_0x4e00ac&&this['_isBlockAttribute'](_0x4e00ac))&&(_0x352d89=this['_model']['createPositionBefore'](_0x352d89['parent'])),this['_addSuggestionMarker'](_0x4ce442,_0x30a4c8,_0x7de573,this['_model']['createRange'](_0x352d89,_0x303510));}['_findSuggestions'](_0x491cbc,_0x32cc32=null){const _0x3bcdd3=[],_0x140233=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x491cbc)||(_0x491cbc=[_0x491cbc]);for(const _0x4b8e7e of this['getSuggestions']()){if(!_0x4b8e7e['isInContent'])continue;if(_0x32cc32&&_0x4b8e7e['type']!=_0x32cc32)continue;let _0x1e1f48=!0x1;for(const _0x1366a0 of _0x4b8e7e['getRanges']()){for(const _0x115370 of _0x491cbc){const _0x243c18=_0x115370['start']['isEqual'](_0x1366a0['end'])||_0x115370['end']['isEqual'](_0x1366a0['start']);if(_0x243c18||_0x115370['getIntersection'](_0x1366a0)){const _0x545564=_0x115370['containsRange'](_0x1366a0)&&zt(this['_model']['schema'],_0x1366a0['start'],_0x115370),_0x2d946b=_0x1366a0['containsRange'](_0x115370)&&zt(this['_model']['schema'],_0x115370['start'],_0x1366a0);_0x3bcdd3['push']({'suggestion':_0x4b8e7e,'meta':{'isOwn':_0x140233==_0x4b8e7e['author'],'isNextTo':_0x243c18,'isInsideObject':_0x545564,'containsRangeInObject':_0x2d946b}}),_0x1e1f48=!0x0;break;}}if(_0x1e1f48)break;}}return _0x3bcdd3;}['_addSuggestionMarker'](_0x4bb3db,_0x2c46e9,_0x698ce6,_0x28829f,_0x2b277a){this['_model']['change'](_0x14dd91=>{let _0x3c1e6d='suggestion:'+_0x4bb3db+':'+_0x2c46e9+':'+_0x698ce6;_0x2b277a&&(_0x3c1e6d=_0x3c1e6d+':'+_0x2b277a),_0x14dd91['addMarker'](_0x3c1e6d,{'range':_0x28829f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1df4ba){const _0x350b04=_0x1df4ba['previous'],_0x52346b=_0x1df4ba['next'];_0x1df4ba['previous']=null,_0x1df4ba['next']=null,null!=_0x350b04&&_0x350b04['next']==_0x1df4ba&&(_0x350b04['next']=_0x52346b),null!=_0x52346b&&_0x52346b['previous']==_0x1df4ba&&(_0x52346b['previous']=_0x350b04),'ready'==this['_suggestionState']['get'](_0x1df4ba)&&(this['_suggestionState']['set'](_0x1df4ba,'removed'),this['fire']('suggestionUnloaded',_0x1df4ba,_0x350b04,_0x52346b));}['_setSuggestionData'](_0x568671){const _0x2ccc69=_0x568671['id'],_0x58be20=this['addSuggestionData'](_0x568671);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x533143=this['editor']['plugins']['get']('PendingActions'),_0xf53aa7=_0x58be20['hasComments'],_0xaede87=_0x58be20['subType']?_0x58be20['type']+':'+_0x58be20['subType']:_0x58be20['type'],_0x157024=this['editor']['locale'],_0x59d169=_0x533143['add'](o(_0x157024,'PENDING_ACTION_SUGGESTION')),_0x26a29f={'id':_0x2ccc69,'type':_0xaede87,'hasComments':_0xf53aa7,'data':_0x568671['data']||null,'originalSuggestionId':_0x568671['originalSuggestionId']||null,'attributes':_0x58be20['attributes']};this['_adapter']['addSuggestion'](_0x26a29f)['then'](_0x5bd0b4=>{_0x58be20['_saved']=!0x0,_0x533143['remove'](_0x59d169),_0x5bd0b4&&_0x5bd0b4['createdAt']&&(this['_suggestions']['get'](_0x2ccc69)['createdAt']=_0x5bd0b4['createdAt']);})['catch'](_0x1cd491=>{throw _0x1be288('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x58be20['discard']();}),_0x58be20['stopListening'](),this['_suggestions']['delete'](_0x58be20['id']),this['_suggestionState']['delete'](_0x58be20),_0x1cd491;});}return _0x58be20;}['_isBlockAttribute'](_0x1a7856){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x1a7856);}['_isInlineAttribute'](_0x34f69c){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x34f69c);}['_updateSuggestionData'](_0x3670dc,_0x1d5018){const _0x5920c8=this['editor']['plugins']['get']('PendingActions'),_0x4cf63e=this['getSuggestion'](_0x3670dc);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4cf63e['_saved']){const _0x547293=_0x5920c8['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3670dc,_0x1d5018)['then'](()=>{_0x5920c8['remove'](_0x547293);});}else _0x4cf63e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3670dc,_0x1d5018);});}}['_getSuggestionData'](_0x192334){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3bdb9f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x192334);}['_handleNewSuggestionMarker'](_0x310f81){const {id:_0x34d65d,type:_0x358ed7,subType:_0x20c7cc,authorId:_0x23b2d7}=this['_splitMarkerName'](_0x310f81),_0x13a42b=this['_suggestions']['get'](_0x34d65d)||this['_createSuggestion'](_0x358ed7,_0x20c7cc,_0x34d65d,_0x23b2d7,{});switch(this['_checkSuggestionCorrectness'](_0x13a42b,_0x358ed7,_0x20c7cc,_0x23b2d7),this['_suggestionState']['get'](_0x13a42b)){case'notReady':this['_getSuggestionData'](_0x34d65d)['then'](_0x4126e=>{let _0x3f8bc2=Promise['resolve']();_0x4126e['hasComments']&&(_0x3f8bc2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x34d65d})),_0x3f8bc2['then'](()=>{this['addSuggestionData'](_0x4126e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x13a42b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x34d65d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x13a42b,'ready'),this['fire']('suggestionLoaded',_0x13a42b);break;case'ready':this['fire']('suggestionChanged',_0x13a42b);}return _0x13a42b['addMarkerName'](_0x310f81),_0x13a42b;}['_refreshSuggestionsChain'](_0x26ea05){const _0x3dcbf6=Array['from'](_0x26ea05),_0x479152=_0x3dcbf6['filter'](_0x2b78bc=>'attribute'==_0x2b78bc['type']);this['_refreshAttributeSuggestionsChain'](_0x479152);const _0x3a8446=_0x3dcbf6['filter'](_0xc0712a=>!_0xc0712a['isMultiRange']&&'attribute'!=_0xc0712a['type']),_0x195a86=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25bcb8=>!_0x25bcb8['isMultiRange']&&'attribute'!=_0x25bcb8['type']),_0x2b6905=_0x195a86['filter'](_0x54f7c6=>!_0x26ea05['has'](_0x54f7c6)),_0x3c69a3=new Map(_0x195a86['map'](_0x47c225=>[_0x47c225,this['_suggestionFactory']['getSuggestionCallback'](_0x47c225['type'],_0x47c225['subType'],'chain')])),_0x157061=new Map(_0x195a86['map'](_0x2b82ae=>[_0x2b82ae,_0x2b82ae['getFirstRange']()])),_0xa4881e=new Set(),_0x139216=new Set();for(let _0x5a9e71=0x0;_0x5a9e71<_0x3a8446['length'];_0x5a9e71++)_0x4f54c0(_0x3a8446[_0x5a9e71],_0x3a8446,_0x5a9e71+0x1);for(let _0x29663c=0x0;_0x29663c<_0x3a8446['length'];_0x29663c++)_0x4f54c0(_0x3a8446[_0x29663c],_0x2b6905,0x0);const _0x3955f2=new Set();for(let _0x30ad67=0x0;_0x30ad67<_0x3a8446['length'];_0x30ad67++){const _0x48cbb1=_0x3a8446[_0x30ad67];!_0x139216['has'](_0x48cbb1)&&_0x48cbb1['previous']&&(_0x3955f2['add'](_0x48cbb1['previous']),_0x48cbb1['previous']['next']===_0x48cbb1&&(_0x48cbb1['previous']['next']=null),_0x48cbb1['previous']=null),!_0xa4881e['has'](_0x48cbb1)&&_0x48cbb1['next']&&(_0x3955f2['add'](_0x48cbb1['next']),_0x48cbb1['next']['previous']===_0x48cbb1&&(_0x48cbb1['next']['previous']=null),_0x48cbb1['next']=null);}function _0x4f54c0(_0x2e13f8,_0x3c2157,_0x5c6af2){for(let _0x3205ca=_0x5c6af2;_0x3205ca<_0x3c2157['length'];_0x3205ca++){const _0x4c310f=_0x2a18a0(_0x2e13f8,_0x3c2157[_0x3205ca]);_0x4c310f&&(_0x4c310f[0x0]['next']=_0x4c310f[0x1],_0x4c310f[0x1]['previous']=_0x4c310f[0x0],_0xa4881e['add'](_0x4c310f[0x0]),_0x139216['add'](_0x4c310f[0x1]));}}function _0x2a18a0(_0x41e032,_0x3f772f){if(_0x41e032['author']['id']!==_0x3f772f['author']['id'])return null;const _0x287ce1=_0x3c69a3['get'](_0x41e032)(_0x41e032,_0x3f772f,_0x157061['get'](_0x41e032),_0x157061['get'](_0x3f772f));if(!_0x287ce1)return null;return _0x3c69a3['get'](_0x3f772f)(_0x41e032,_0x3f772f,_0x157061['get'](_0x41e032),_0x157061['get'](_0x3f772f))?_0x287ce1[0x1]['commentThread']&&_0x287ce1[0x1]['commentThread']['length']?null:_0x287ce1:null;}_0x3955f2['size']&&this['_refreshSuggestionsChain'](_0x3955f2);}['_refreshAttributeSuggestionsChain'](_0x279385){if(0x0==_0x279385['length'])return;const _0x10d329=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x384cb9=>'attribute'==_0x384cb9['type']&&_0x384cb9['_isDataLoaded']),_0x3eb831=[],_0x140734=new Map();for(const _0x7fb437 of _0x10d329){const _0x2d8ccc=_0x30679b(_0x7fb437['attributes']);_0x140734['has'](_0x2d8ccc)||(_0x140734['set'](_0x2d8ccc,_0x3eb831['length']),_0x3eb831['push']([]));const _0x45ee6f=_0x140734['get'](_0x2d8ccc);_0x3eb831[_0x45ee6f]['push'](_0x7fb437);}!(function(){_0x3eb831['sort']((_0x394e5e,_0x933873)=>{const _0x24ce25=_0x394e5e[0x0]['createdAt'],_0x288b58=_0x933873[0x0]['createdAt'];return _0x24ce25==_0x288b58?_0x394e5e[0x0]['attributes']['groupId']<_0x933873[0x0]['attributes']['groupId']?-0x1:0x1:_0x24ce25<_0x288b58?-0x1:0x1;});for(const _0x5bf6e8 of _0x3eb831)_0x5bf6e8['sort']((_0x20b6ba,_0x12c600)=>_0x20b6ba['id']<_0x12c600['id']?-0x1:0x1);}());for(let _0x121c0b=0x0;_0x121c0b<_0x3eb831['length'];_0x121c0b++){if(0x0==_0x3eb831[_0x121c0b]['length'])continue;const _0x486ba3=[];for(let _0x27aa05=_0x121c0b+0x1;_0x27aa05<_0x3eb831['length'];_0x27aa05++)0x0!=_0x3eb831[_0x27aa05]['length']&&_0x377c54(_0x3eb831[_0x121c0b],_0x3eb831[_0x27aa05])&&_0x486ba3['push'](_0x27aa05);for(const _0x404871 of _0x486ba3)_0x3eb831[_0x121c0b]=_0x3eb831[_0x121c0b]['concat'](_0x3eb831[_0x404871]),_0x3eb831[_0x404871]=[];}for(const _0x402c63 of _0x3eb831)for(let _0x58e94b=0x0;_0x58e94b<_0x402c63['length'];_0x58e94b++){const _0x2355bd=_0x402c63[_0x58e94b+0x1]||null;_0x402c63[_0x58e94b]['next']!==_0x2355bd&&(_0x402c63[_0x58e94b]['next']=_0x2355bd);}for(const _0xaac898 of _0x3eb831)for(let _0x2fd34d=0x0;_0x2fd34d<_0xaac898['length'];_0x2fd34d++){const _0x12410c=_0xaac898[_0x2fd34d-0x1]||null;_0xaac898[_0x2fd34d]['previous']!==_0x12410c&&(_0xaac898[_0x2fd34d]['previous']=_0x12410c);}function _0x377c54(_0x1a6211,_0x830e8){if(_0x1a6211[0x0]['attributes']['groupId']!==_0x830e8[0x0]['attributes']['groupId']&&_0x1a6211[0x0]['author']!==_0x830e8[0x0]['author'])return!0x1;if(!function(_0x1c900f,_0x15e7eb){if(!_0x1c900f['hasComments']&&!_0x15e7eb['hasComments'])return!0x0;if(_0x1c900f['hasComments']&&_0x15e7eb['hasComments'])return!0x1;if(_0x1c900f['hasComments']&&_0x15e7eb['createdAt']<_0x1c900f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x15e7eb['hasComments']&&_0x1c900f['createdAt']<_0x15e7eb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1a6211[0x0],_0x830e8[0x0]))return!0x1;const _0x5b53c4=Pt(_0x1a6211[0x0]['attributes'],['groupId','trackingSessionId']),_0x51218d=Pt(_0x830e8[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1343c3(_0x5b53c4,_0x51218d))return!0x1;if(_0x1a6211[0x0]['attributes']['groupId']==_0x830e8[0x0]['attributes']['groupId'])return!0x0;if(_0x1a6211[0x0]['attributes']['trackingSessionId']!==_0x830e8[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1a6211['every'](_0xb6ff6c=>_0x830e8['some'](_0x104989=>_0xb6ff6c['getFirstRange']()['isEqual'](_0x104989['getFirstRange']())))&&_0x830e8['every'](_0x39a70d=>_0x1a6211['some'](_0x2b0353=>_0x39a70d['getFirstRange']()['isEqual'](_0x2b0353['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x48e17a){const _0x25b41a=Array['from'](_0x48e17a),_0x4a8bd9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x10ba01=_0x4a8bd9['filter'](_0x47ed84=>!_0x48e17a['has'](_0x47ed84)),_0x379b06=new Map(_0x25b41a['map'](_0x2cdde9=>[_0x2cdde9,this['_suggestionFactory']['getSuggestionCallback'](_0x2cdde9['type'],_0x2cdde9['subType'],'join')])),_0x121179=new Map(_0x4a8bd9['map'](_0x39bb7f=>[_0x39bb7f,_0x39bb7f['getRanges']()]));for(let _0x4495e4=0x0;_0x4495e4<_0x25b41a['length'];_0x4495e4++){if(_0x4c01a1(this,_0x25b41a[_0x4495e4],_0x25b41a,_0x4495e4+0x1))return!0x0;}for(let _0x4a99bf=0x0;_0x4a99bf<_0x25b41a['length'];_0x4a99bf++){if(_0x4c01a1(this,_0x25b41a[_0x4a99bf],_0x10ba01,0x0))return!0x0;}return!0x1;function _0x4c01a1(_0x4899d0,_0x324d93,_0x2cea85,_0x519312){for(let _0x372496=_0x519312;_0x372496<_0x2cea85['length'];_0x372496++){const _0xac37dd=_0x2cea85[_0x372496];if(_0xac37dd['type']!==_0x324d93['type']||_0xac37dd['author']['id']!==_0x324d93['author']['id']||_0xac37dd['subType']!==_0x324d93['subType'])continue;if(!en(_0x324d93,_0xac37dd))continue;if('attribute'==_0x324d93['type']&&_0x324d93['data']['oldValue']!=_0xac37dd['data']['oldValue'])continue;if('attribute'==_0x324d93['type']&&_0x4899d0['_isBlockAttribute'](_0x324d93['data']['key']))continue;if('formatBlock'==_0x324d93['type']){const _0x57f2e1=_0x4899d0['editor']['model'],_0x472d1d=_0x324d93['getContainedElement']();if(_0x472d1d&&(_0x57f2e1['schema']['isObject'](_0x472d1d)||_0x57f2e1['schema']['isLimit'](_0x472d1d)))continue;}const _0x2f9adc=_0x379b06['get'](_0x324d93),_0x1b70d3=_0x121179['get'](_0x324d93),_0xd21c4c=_0x121179['get'](_0xac37dd),_0x1b6164=_0x324d93['commentThread']&&_0x324d93['commentThread']['length'],_0x4f1a63=_0xac37dd['commentThread']&&_0xac37dd['commentThread']['length'];if(!_0x1b6164&&_0x2f9adc(_0xd21c4c,_0x1b70d3))return _0x4899d0['_joinSuggestions'](_0xac37dd,_0x324d93),_0x121179['delete'](_0x324d93),!0x0;if(!_0x4f1a63&&_0x2f9adc(_0x1b70d3,_0xd21c4c))return _0x4899d0['_joinSuggestions'](_0x324d93,_0xac37dd),_0x121179['delete'](_0xac37dd),!0x0;}return!0x1;}}['_joinSuggestions'](_0x42e30d,_0x1db521){if(_0x42e30d['isMultiRange']){for(const _0x526ae7 of _0x1db521['getRanges']())_0x42e30d['addRange'](_0x526ae7);}else{const _0xe66a24=_0x1db521['getFirstRange']()['end'];this['_setSuggestionRange'](_0x42e30d,this['_model']['createRange'](_0x42e30d['getFirstRange']()['start'],_0xe66a24));}_0x1db521['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4c92e3,_0xba18a1,_0x54589f){const _0x59f5ce=_0x4c92e3['startsWith']('format')||_0x4c92e3['startsWith']('attribute')?'FORMATTING':_0x4c92e3['toUpperCase']();return o(this['editor']['locale'],_0xba18a1+'_'+_0x59f5ce+'_SUGGESTION_ANNOUNCEMENT',_0x54589f);}['_initAriaMarkerChangeAnnouncements'](){const _0x31aa71=this['editor'];if(!_0x31aa71['ui'])return;const {ariaLiveAnnouncer:_0x2c8224}=_0x31aa71['ui'];_0x3953b3(this['_model'],({left:_0x17af48,entered:_0x509bf7})=>{for(const _0x2d37a1 of _0x17af48){const {group:_0x490f73,type:_0x3fdfa3}=this['_splitMarkerName'](_0x2d37a1['name']);if('suggestion'===_0x490f73){_0x2c8224['announce'](this['_getMarkerAnnouncementText'](_0x3fdfa3,'LEAVE'));break;}}for(const _0x5ca8ef of _0x509bf7){const {group:_0x178c06,type:_0x671738}=this['_splitMarkerName'](_0x5ca8ef['name']);if('suggestion'===_0x178c06){_0x2c8224['announce'](this['_getMarkerAnnouncementText'](_0x671738,'ENTER',_0x33389c(_0x21f038)));break;}}});}['_processAttributeChanges'](_0xcbfe1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x177572=this['editor'],_0x1ce2ea=_0x177572['model']['document']['differ']['getChanges']();if(0x0==_0x1ce2ea['length'])return!0x1;const _0x600e3=[],_0x4b5c88=_0x1ce2ea['filter'](_0x38f619=>'attribute'==_0x38f619['type']),_0x1596f9=_0x1ce2ea['filter'](_0x23c464=>'insert'==_0x23c464['type']&&'$text'!=_0x23c464['name']),_0x17511d=_0x1ce2ea['filter'](_0x2e2393=>'remove'==_0x2e2393['type']&&'$text'!=_0x2e2393['name']);for(const _0x3c3b8e of _0x4b5c88)_0x600e3['push']({'key':_0x3c3b8e['attributeKey'],'newValue':_0x3c3b8e['attributeNewValue'],'oldValue':_0x3c3b8e['attributeOldValue'],'range':Zt(_0x3c3b8e['range'],_0x177572['model'])});for(const _0x2bdc2e of _0x1596f9){const _0x49d42c=_0x17511d['find'](_0x1d7d74=>_0x1d7d74['position']['isEqual'](_0x2bdc2e['position']));_0x49d42c&&_0x600e3['push']({'key':m,'newValue':_0x2bdc2e['name'],'oldValue':_0x49d42c['name'],'range':_0x177572['model']['createRangeOn'](_0x2bdc2e['position']['nodeAfter'])});}return 0x0!=_0x600e3['length']&&this['_reduceExistingSuggestions'](_0xcbfe1,_0x600e3);}['_processAttributeSuggestions'](_0x54b3fd){let _0x4eba82=!0x1;const _0x2bf9eb=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x49ce3b=>_0x49ce3b['data']['newRange']&&_0x49ce3b['name']['startsWith']('suggestion:attribute:'));for(const _0x530dd0 of _0x2bf9eb){const {subType:_0x1fd71c,id:_0x53feb2}=this['_splitMarkerName'](_0x530dd0['name']),_0x8e9614=_0x1fd71c['split']('|')[0x0];for(const _0xfb3c2d of this['getSuggestions']({'skipNotAttached':!0x0}))_0xfb3c2d['id']!=_0x53feb2&&'attribute'==_0xfb3c2d['type']&&_0xfb3c2d['data']&&_0xfb3c2d['data']['key']==_0x8e9614&&_0xfb3c2d['getFirstRange']()['isIntersecting'](_0x530dd0['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xfb3c2d,_0x530dd0['data']['newRange'],_0x54b3fd),_0x4eba82=!0x0);}return _0x4eba82;}['recordAttributeChanges'](_0xe5b094){this['_recordAttributeSuggestions']=!0x0,_0xe5b094();}['_isRegisteredAttribute'](_0x4fa9ae){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x4fa9ae);}['_reduceExistingSuggestions'](_0x52d04f,_0x50b0c9){if(0x0==_0x50b0c9['length'])return!0x1;let _0x321f41=!0x1;for(const _0xa52e90 of _0x50b0c9){const _0x374376=this['_findSuggestions'](_0xa52e90['range'],'attribute')['filter'](_0x2071b9=>!_0x2071b9['meta']['isNextTo'])['map'](_0x2e73a5=>_0x2e73a5['suggestion']),_0x501c1b=_0x30679b({'newValue':_0xa52e90['newValue']});_0x374376['filter'](_0x3b9fca=>{const [_0x1eee2e,_0xfaf0cd]=_0x3b9fca['subType']['split']('|');return _0x1eee2e==_0xa52e90['key']&&_0xfaf0cd!=_0x501c1b;})['forEach'](_0x56b56e=>{this['_reduceSuggestionAttributeRange'](_0x56b56e,_0xa52e90['range'],_0x52d04f),_0x321f41=!0x0;});}return _0x321f41;}['_reduceSuggestionAttributeRange'](_0x475fb7,_0x55db18,_0x37a1b5){const _0x231d8f=_0x475fb7['getFirstRange']()['getDifference'](_0x55db18);0x0!==_0x231d8f['length']?0x1!==_0x231d8f['length']?this['_breakSuggestionMarker'](_0x475fb7,_0x55db18['start'],_0x55db18['end']):this['_setSuggestionRange'](_0x475fb7,_0x231d8f[0x0]):_0x37a1b5['removeMarker'](_0x475fb7['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x597fcb){this['_editor']=_0x597fcb,this['_model']=_0x597fcb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x44a15f,_0x209e59,_0x33a793,_0x4ceb4d,_0x1d5446,_0x19dda2,_0x1e5c98){return new x(this['_model'],{'type':_0x44a15f,'subType':_0x209e59,'id':_0x33a793,'originalSuggestionId':_0x1e5c98,'author':_0x4ceb4d,'creator':_0x4ceb4d,'attributes':_0x1d5446,'onAttributesChange':_0x19dda2,'onAccept':(..._0x3cf2fb)=>this['getSuggestionCallback'](_0x44a15f,_0x209e59,'accept')(..._0x3cf2fb),'onDiscard':(..._0x452c91)=>this['getSuggestionCallback'](_0x44a15f,_0x209e59,'discard')(..._0x452c91)});}['registerCustomCallback'](_0x59a5ef,_0x91de82,_0x44c3bb,_0x3fe893){const _0x16d9db=_0x59a5ef+':'+_0x91de82+':'+_0x44c3bb;this['_customCallbacks']['set'](_0x16d9db,_0x3fe893);}['getSuggestionCallback'](_0x3ab4ab,_0x445885,_0x4b2dd6){const _0x178f3f=_0x3ab4ab+':'+_0x445885+':'+_0x4b2dd6;return this['_customCallbacks']['get'](_0x178f3f)||this['_defaultCallbacks']['get'](_0x3ab4ab+':'+_0x4b2dd6);}['_registerDefaultCallbacks'](){const _0x382522=()=>!0x1,_0x66ef88=_0x51ecab=>{_0x51ecab['sort']((_0xbcb5a1,_0x1bef1b)=>_0xbcb5a1['start']['isBefore'](_0x1bef1b['start'])?0x1:-0x1),this['_model']['change'](_0x2cfe64=>{for(const _0x50a86a of _0x51ecab){let _0x1b4d74;_0x1b4d74=_0x50a86a['end']['isAtEnd']&&_0x50a86a['end']['parent']==_0x50a86a['start']['nodeAfter']?_0x2cfe64['createSelection'](_0x50a86a['start']['nodeAfter'],'on'):_0x2cfe64['createSelection'](_0x50a86a),this['_model']['deleteContent'](_0x1b4d74,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x974409=(_0x598ad1,_0x2066dd)=>{_0x2066dd&&this['_model']['change'](_0x2550f6=>{const {commandName:_0x38de67,commandParams:_0x5a6712=[]}=_0x2066dd,_0x4332c1=_0x598ad1['map'](_0xdbaca9=>(Kt(_0xdbaca9)&&(_0xdbaca9=this['_model']['createRange'](_0xdbaca9['end'])),_0xdbaca9))['filter'](_0x296de1=>'$graveyard'!==_0x296de1['root']['rootName']);if(_0x4332c1['length']<0x1)return;const _0xf48826=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3d7887=>_0x2bf002['fromRange'](_0x3d7887));_0x2550f6['setSelection'](_0x4332c1);for(const _0x2ef46f of this['_editor']['commands']['commands']())_0x2ef46f['refresh']();_0x5a6712['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x38de67,..._0x5a6712);const _0x51003a=_0xf48826['filter'](_0x4fba0d=>'$graveyard'!=_0x4fba0d['root']['rootName']);_0x51003a['length']>0x0&&_0x2550f6['setSelection'](_0x51003a);for(const _0x52bf51 of _0xf48826)_0x52bf51['detach']();});},_0x59e502=(_0x5142d0,_0x174cc5)=>0x1==_0x5142d0['length']&&0x1==_0x174cc5['length']&&_0x5142d0[0x0]['end']['isEqual'](_0x174cc5[0x0]['start']),_0x46f34d=(_0x340fd8,_0x87c87f,_0x51c38f,_0x5d252d)=>nn(_0x340fd8,_0x87c87f,_0x51c38f,_0x5d252d)?[_0x340fd8,_0x87c87f]:nn(_0x87c87f,_0x340fd8,_0x5d252d,_0x51c38f)?[_0x87c87f,_0x340fd8]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x382522),this['_defaultCallbacks']['set']('insertion:discard',_0x66ef88),this['_defaultCallbacks']['set']('insertion:join',_0x59e502),this['_defaultCallbacks']['set']('insertion:chain',_0x46f34d),this['_defaultCallbacks']['set']('deletion:accept',_0x66ef88),this['_defaultCallbacks']['set']('deletion:discard',_0x382522),this['_defaultCallbacks']['set']('deletion:join',_0x59e502),this['_defaultCallbacks']['set']('deletion:chain',_0x46f34d),this['_defaultCallbacks']['set']('formatInline:accept',_0x974409),this['_defaultCallbacks']['set']('formatInline:discard',_0x382522),this['_defaultCallbacks']['set']('formatInline:join',_0x59e502),this['_defaultCallbacks']['set']('formatInline:chain',_0x382522),this['_defaultCallbacks']['set']('formatBlock:accept',_0x974409),this['_defaultCallbacks']['set']('formatBlock:discard',_0x382522),this['_defaultCallbacks']['set']('formatBlock:join',_0x59e502),this['_defaultCallbacks']['set']('formatBlock:chain',_0x382522),this['_defaultCallbacks']['set']('attribute:accept',_0x382522),this['_defaultCallbacks']['set']('attribute:discard',(_0x6da846,_0x1f5d4e)=>{if(!_0x1f5d4e)return;const _0xfd0ffb=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x3919ad=>{if(_0x1f5d4e['key']==m)for(const _0x2e2162 of _0x6da846){const _0x3c3050=_0x2e2162['start']['nodeAfter'],_0x2859ca=_0x1f5d4e['oldValue'];_0x3919ad['rename'](_0x3c3050,_0x2859ca);}else{if(_0xfd0ffb['_isBlockAttribute'](_0x1f5d4e['key'])){for(const _0xf8fec3 of _0x6da846)void 0x0!==_0x1f5d4e['oldValue']?_0x3919ad['setAttribute'](_0x1f5d4e['key'],_0x1f5d4e['oldValue'],_0xf8fec3['start']['nodeAfter']):_0x3919ad['removeAttribute'](_0x1f5d4e['key'],_0xf8fec3['start']['nodeAfter']);}else{for(const _0x3b7611 of _0x6da846)_0x1f5d4e['oldValue']?_0x3919ad['setAttribute'](_0x1f5d4e['key'],_0x1f5d4e['oldValue'],_0x3b7611):_0x3919ad['removeAttribute'](_0x1f5d4e['key'],_0x3b7611);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x59e502);}}function zt(_0x383a41,_0x4c2c15,_0x9afa60){for(const _0x23709b of _0x4c2c15['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x23709b['root']==_0x23709b)return!0x1;if(!_0x9afa60['containsItem'](_0x23709b))return!0x1;if(_0x383a41['isObject'](_0x23709b)||_0x383a41['isLimit'](_0x23709b))return!0x0;}return!0x1;}function Kt(_0x27cd67){return _0x27cd67['end']['parent']==_0x27cd67['start']['nodeAfter']&&_0x27cd67['end']['isAtStart'];}function Wt(_0x47a98d,_0x287259,_0x532c24,_0x32f97d){const _0x3b1b7e=_0x2fd8cd=>!_0x2fd8cd['item']['is']('$textProxy')&&!_0x32f97d['isObject'](_0x2fd8cd['item']),_0x4b24a0=_0x47a98d['start']['getLastMatchingPosition'](_0x3b1b7e),_0x45d2bb=_0x47a98d['end']['getLastMatchingPosition'](_0x3b1b7e,{'direction':'backward'});return(!_0x47a98d['start']['isEqual'](_0x4b24a0)||!_0x47a98d['end']['isEqual'](_0x45d2bb))&&(_0x4b24a0['isBefore'](_0x45d2bb)?_0x532c24['updateMarker'](_0x287259,{'range':_0x532c24['createRange'](_0x4b24a0,_0x45d2bb)}):_0x532c24['removeMarker'](_0x287259),!0x0);}function Ht(_0x3752f5){return _0x30679b(_0x3752f5);}function Qt(_0x8c9a8f){const _0x4bc831=_0x8c9a8f['start']['nodeAfter'];return _0x4bc831&&_0x4bc831['is']('element');}function Xt(_0x312c54){return Kt(_0x312c54)||function(_0x2ac7ff){return _0x2ac7ff['start']['parent']==_0x2ac7ff['end']['nodeBefore']&&_0x2ac7ff['start']['isAtEnd'];}(_0x312c54);}function Yt(_0x5b7646,_0x11e9e2){try{const _0x3fcc67=_0x5b7646['getRange']();for(const _0x5a7bee of _0x11e9e2)if(_0x5b7646!==_0x5a7bee&&_0x3fcc67&&_0x3fcc67['isIntersecting'](_0x5a7bee['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x48876c,_0x3bfffe){return null==_0x48876c['end']['nodeBefore']&&_0x48876c['end']['parent']==_0x48876c['start']['nodeAfter']?tn(_0x48876c['start']['nodeAfter'],_0x3bfffe):_0x48876c;}function tn(_0x2fd6ec,_0x4b7f3b){const _0x3cdf9c=_0x4b7f3b['schema']['isObject'](_0x2fd6ec)||_0x4b7f3b['schema']['isSelectable'](_0x2fd6ec);return _0x4b7f3b['createRange'](_0x4b7f3b['createPositionAt'](_0x2fd6ec,'before'),_0x3cdf9c?_0x4b7f3b['createPositionAfter'](_0x2fd6ec):_0x4b7f3b['createPositionAt'](_0x2fd6ec,'end'));}function nn(_0x14566d,_0x365357,_0x136328,_0x30dec8){return!!en(_0x14566d,_0x365357)&&_0x136328['end']['isEqual'](_0x30dec8['start']);}function en(_0x19a602,_0xfe7687){if(!_0x19a602['_isDataLoaded']||!_0xfe7687['_isDataLoaded'])return!0x1;const _0xf5c6a0=new Set(Object['keys'](_0x19a602['attributes'])),_0x285df6=new Set(Object['keys'](_0xfe7687['attributes']));if(_0xf5c6a0['delete']('groupId'),_0x285df6['delete']('groupId'),0x0==_0xf5c6a0['size']&&0x0==_0x285df6['size'])return!0x0;if(_0xf5c6a0['size']!=_0x285df6['size'])return!0x1;const _0x184a48={..._0x19a602['attributes']},_0x2e6c03={..._0xfe7687['attributes']};return delete _0x184a48['groupId'],delete _0x2e6c03['groupId'],JSON['stringify'](_0x184a48)==JSON['stringify'](_0x2e6c03);}function sn(_0x434dd8,_0x93e5da){const _0x193476=on(_0x434dd8['attributes']),_0x1fd395=on(_0x93e5da);if(!_0x434dd8['_isDataLoaded'])return!0x1;for(const _0x195e43 of Object['keys'](_0x1fd395))if(!_0x1343c3(_0x193476[_0x195e43],_0x1fd395[_0x195e43]))return!0x1;return!0x0;}function on(_0x348baf){const _0xffd2eb=Object['assign']({},_0x348baf);return delete _0xffd2eb['skipNestingCheck'],delete _0xffd2eb['tablePasteChainId'],_0xffd2eb;}class pe extends/* #__PURE__ -- @preserve */
26
- _0xb5ca62(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x123f9f,_0x448635,_0xdaeef8,_0x82d74e){super(),this['model']=_0x448635,this['view']=_0xdaeef8,this['commentThreadController']=_0x82d74e,this['_editor']=_0x123f9f,this['_acceptCommand']=_0x123f9f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x123f9f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3978ad,_0x58c29c)=>_0x3978ad||_0x58c29c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x312358=>_0x312358&&this['_editor']['model']['canEditAt'](_0x448635['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x343673=>_0x343673&&this['_editor']['model']['canEditAt'](_0x448635['getRanges']())),this['_pendingAction']=null,_0xdaeef8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xdaeef8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xdaeef8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xdaeef8,'change:isDirty',()=>{_0xdaeef8['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 _0x13cc35=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x13cc35);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x6d8017{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x385fab,_0x36aff5,_0x3ec268,_0x312486){super(_0x385fab),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3008c1(_0x385fab,o(_0x385fab,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x36aff5['authoredAt']),this['bind']('authoredAt')['to'](_0x36aff5),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',_0x36aff5,'authoredAt',this,'descriptionParts',(_0x2a882e,_0x18ec0c,_0x201803)=>{const _0x468dba=_0x201803['map'](_0x58ec64=>ls(_0x58ec64['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2a882e-0x1,_0x36aff5['author']['name'],_0x18ec0c?_0x312486['formatDateTime'](_0x18ec0c):'',new DOMParser()['parseFromString'](_0x468dba,'text/html')['body']['textContent']]);}),this['focusables']=new _0x28e883(),this['focusTracker']=new _0x54b367(),this['keystrokes']=new _0x1d8494(),this['focusCycler']=new _0x66b0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x584289=>_0x584289['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x36aff5,this['_localUser']=_0x3ec268,this['_config']=_0x312486,_0x312486['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x41bcd8(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x40711b}=this['_config'];this['commentsListView']=new _0x40711b(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',_0x3270f7=>_0x3270f7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x9130bb,_0x212b15)=>_0x9130bb||!!_0x212b15);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3bfae7}=this['_config'],_0x170faa=new _0x3bfae7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4d7fac=_0x170faa['commentInputView'];return _0x170faa['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4d7fac,'value',(_0x12b90b,_0x4b25cb,_0x133fca)=>!!_0x133fca||_0x12b90b&&!_0x4b25cb),_0x4d7fac['on']('submit',(_0x1aa0b3,_0x2ef48a)=>{this['fire']('addComment',_0x2ef48a),_0x4d7fac['editor']['setData']('');}),_0x4d7fac['on']('cancel',()=>this['focus']()),_0x4d7fac['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x170faa;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x32fdee,_0x2fb79d,_0x825ea9,_0x3b9192){super(_0x32fdee,_0x2fb79d,_0x825ea9,_0x3b9192),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2fa164=>_0x2fa164&&_0x2fa164[0x0]?_0x2fa164[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3ff247,_0x571af1)=>{let _0x129181='';for(const _0x3c99f6 of _0x3ff247)_0x129181+='<p>'+ls(_0x3c99f6['content'],_0x3c99f6['color'])+'</p>';return _0x571af1?_0x129181:_0x51fd89(_0x129181,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3b9192['SuggestionView'](_0x32fdee,_0x2fb79d,{'formatDateTime':_0x3b9192['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 _0x46037a=this['bindTemplate'],_0x4838b3=[this['suggestionView']];return this['commentsListView']&&_0x4838b3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4838b3['push'](this['commentThreadInputView']),_0x4838b3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x46037a['if']('isActive','ck-suggestion-wrapper--active'),_0x46037a['to']('type',_0xc4874a=>'ck-suggestion-'+_0xc4874a),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':_0x46037a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4838b3};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x6d8017{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x571e2c,_0x4b2286,_0x318aa8){super(_0x571e2c),this['_model']=_0x4b2286,this['_config']=_0x318aa8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4b2286),this['acceptButton']=this['_createButton'](o(_0x571e2c,'Accept\x20suggestion'),_0x447a44,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x571e2c,'Discard\x20suggestion'),_0x31c12b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1ad3e0(_0x571e2c,_0x4b2286['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x28e883([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x54b367(),this['keystrokes']=new _0x1d8494(),this['focusCycler']=new _0x66b0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xbe570c=>_0xbe570c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x52afea=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x52afea['innerHTML']=this['description'],this['on']('change:description',(_0x52754a,_0x20409f,_0x581468)=>{_0x52afea['innerHTML']=_0x581468;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xa29b26=this['bindTemplate'],_0x150eb6=[{'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':_0xa29b26['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xa29b26['to']('authoredAt',_0x4770dc=>this['_config']['formatDateTime'](_0x4770dc))}]}]},{'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']&&_0x150eb6['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':_0x150eb6}]};}['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'](_0x2e641f,_0x2c87e,_0x4ca921,_0xa91f,_0x18e9fc){const _0x5774d9=new _0x32fdb7(this['locale']);return _0x5774d9['set']({'label':_0x2e641f,'icon':_0x2c87e,'tooltip':!0x0,'tooltipPosition':_0x18e9fc}),_0x5774d9['extendTemplate']({'attributes':{'class':_0x4ca921}}),_0x5774d9['on']('execute',()=>{this['fire'](_0xa91f,this['_model']['id']);}),_0x5774d9;}['_setupKeyboardNavigation'](){const _0x4b81d4=this['element'];this['keystrokes']['listenTo'](_0x4b81d4);for(const _0x40515e of this['focusables'])this['focusTracker']['add'](_0x40515e['element']),this['keystrokes']['listenTo'](_0x40515e['element']);this['keystrokes']['set']('enter',(_0x5abf35,_0x2bf051)=>{_0x4b81d4===_0x5abf35['target']&&(this['focusCycler']['focusFirst'](),_0x2bf051());}),this['keystrokes']['set']('esc',(_0x223887,_0xf438ce)=>{_0x4b81d4!==_0x223887['target']&&(this['focus'](),_0xf438ce());});}}class u extends _0x6098b5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x51cf78,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56c786){super(_0x56c786),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x31e6e3=this['editor']['config'];_0x31e6e3['define']('trackChanges.SuggestionThreadView',fe),_0x31e6e3['define']('trackChanges.SuggestionView',we),_0x31e6e3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x31e6e3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4cd1bd,_0x4e7411){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x23821e,_0x37065d]of this['_handleControllerBuffer']){const _0x23711b=this['_suggestionToController']['has'](_0x23821e);_0x23711b||_0x37065d?_0x23711b&&_0x37065d&&this['_destroyController'](_0x23821e):this['_initializeController'](_0x23821e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4cd1bd,_0x4e7411);}['init'](){const _0x3d0bc5=this['editor'],_0x590bcb=_0x3d0bc5['plugins']['get']('TrackChangesEditing'),_0x540e75=_0x3d0bc5['plugins']['get']('Annotations'),_0x46d56b=_0x3d0bc5['plugins']['get']('EditorAnnotations'),_0x266d4d=_0x3d0bc5['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x46d56b['addSourceCollector'](()=>{const _0x117ebb=[];for(const [_0x8920f2,_0x33bca9]of Array['from'](this['_suggestionToController'])){const _0x4ec828=_0x8920f2['getAllAdjacentSuggestions'](),_0x20467d=[];for(const _0x10b4d9 of _0x4ec828){if(!_0x10b4d9['isInContent'])continue;if(_0x10b4d9['isMultiRange']){_0x20467d['push'](..._0x10b4d9['getRanges']());continue;}const _0x53af5c=_0x10b4d9['getFirstRange']();if(_0x20467d['length']>0x0){const _0x56a863=_0x20467d[0x0]['getJoined'](_0x53af5c);if(_0x56a863){_0x20467d[0x0]=_0x56a863;continue;}}_0x20467d['push'](_0x53af5c);}_0x117ebb['push']([_0x33bca9['view'],_0x20467d]);}return _0x117ebb;}),this['listenTo'](_0x590bcb,'suggestionLoaded',(_0x6e9ed2,_0x5919c5)=>{this['listenTo'](_0x5919c5,'change:previous',(_0x5ad485,_0x214f4a,_0x5d55e2,_0x5455f4)=>{_0x5919c5['isInContent']&&(null==_0x5d55e2?(this['_updateController'](_0x5455f4['head']),this['_handleSuggestionControllerDelayed'](_0x5919c5,!0x1)):(this['_updateController'](_0x5d55e2['head']),null==_0x5455f4&&this['_handleSuggestionControllerDelayed'](_0x5919c5,!0x0)));}),null!==_0x5919c5['previous']?this['_updateController'](_0x5919c5['head']):this['_handleSuggestionControllerDelayed'](_0x5919c5,!0x1);}),this['listenTo'](_0x590bcb,'suggestionUnloaded',(_0x3e9b92,_0x3c5f02,_0x45d581)=>{this['stopListening'](_0x3c5f02,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3c5f02),this['_suggestionToController']['has'](_0x3c5f02)&&this['_destroyController'](_0x3c5f02),_0x45d581&&this['_updateController'](_0x45d581['head']);}),this['listenTo'](_0x590bcb,'suggestionChanged',(_0xaaca49,_0x47ab75)=>{this['_updateController'](_0x47ab75);}),this['listenTo'](_0x540e75,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x266d4d,'addComment',(_0x34eead,{threadId:_0x36ca3f,isFromAdapter:_0x1cc67c})=>{if(_0x1cc67c||!_0x590bcb['hasSuggestion'](_0x36ca3f))return;const _0x4d35fc=_0x590bcb['getSuggestion'](_0x36ca3f);this['_suggestionToController']['get'](_0x4d35fc)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x291f12=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x272ec9;for(const _0x42da99 in _0x291f12){const _0x440b2d=_0x42da99,_0x1d000c=_0x291f12[_0x440b2d];if('trackChangesLicenseKeyValid'==_0x1d000c||'trackChangesLicenseKeyInvalid'==_0x1d000c||'trackChangesLicenseKeyExpired'==_0x1d000c||'trackChangesLicenseKeyDomainLimit'==_0x1d000c||'trackChangesLicenseKeyNotAllowed'==_0x1d000c||'trackChangesLicenseKeyEvaluationLimit'==_0x1d000c||'trackChangesLicenseKeyTrialLimit'==_0x1d000c||'trackChangesLicenseKeyUsageLimit'==_0x1d000c){delete _0x291f12[_0x440b2d],_0x272ec9=_0x1d000c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x272ec9&&_0x291f12['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x272ec9&&_0x291f12['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x272ec9&&_0x291f12['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x272ec9&&_0x291f12['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x272ec9&&_0x291f12['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x272ec9&&_0x291f12['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x272ec9&&_0x291f12['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x518f9a){const _0x2b806a=this['_suggestionToController']['get'](_0x518f9a);if(!_0x2b806a)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x2b806a['view'])||null;}['getSuggestionForAnnotation'](_0x4ac231){const _0x4ab121=this['_viewToController']['get'](_0x4ac231['innerView']);return _0x4ab121?_0x4ab121['model']:null;}['_refreshActiveMarkers'](){const _0x46c7af=this['editor']['plugins']['get']('Annotations'),_0x4be09e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ec076=Array['from'](_0x46c7af['activeAnnotations'],_0x2dfce3=>_0x2dfce3['innerView'])['filter'](_0x26d77f=>this['_viewToController']['has'](_0x26d77f)),_0x3ce436=[];for(const _0x196b58 of _0x5ec076){const _0x268ffc=this['_viewToController']['get'](_0x196b58)['model']['getAllAdjacentSuggestions']();_0x3ce436['push'](..._0x268ffc['reduce']((_0x4dc542,_0x52018a)=>[..._0x4dc542,..._0x52018a['getMarkerNames']()],[]));}_0x4be09e['activeMarkers']=_0x3ce436;}['_addUIComponentsToFactory'](){const _0x202896=this['editor'],_0x41691e=_0x202896['locale'],_0xe7de6=o(_0x41691e,'Track\x20changes'),_0x9544e0=new _0xd81c4c([{'type':'switchbutton','model':new _0x401b09({'withText':!0x0,'isToggleable':!0x0,'label':_0xe7de6,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x401b09({'withText':!0x0,'label':o(_0x41691e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x401b09({'withText':!0x0,'label':o(_0x41691e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x401b09({'withText':!0x0,'label':o(_0x41691e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x401b09({'withText':!0x0,'label':o(_0x41691e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x202896['plugins']['has']('TrackChangesPreview')&&_0x9544e0['addMany']([{'type':'separator'},{'type':'button','model':new _0x401b09({'withText':!0x0,'label':o(_0x41691e,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xcb1ab5 of _0x9544e0)if(ke(_0xcb1ab5)){const _0x38ac86=_0x202896['commands']['get'](_0xcb1ab5['model']['commandName']);_0xcb1ab5['model']['bind']('isOn','isEnabled')['to'](_0x38ac86,'value','isEnabled');}_0x202896['ui']['componentFactory']['add']('trackChanges',_0x3a8c3a=>this['_createToolbarButton'](_0x3a8c3a,_0x9544e0,_0xe7de6)),_0x202896['ui']['componentFactory']['add']('menuBar:trackChanges',_0x456ac2=>this['_createMenuBarMenu'](_0x456ac2,_0x9544e0,_0xe7de6));}['_createToolbarButton'](_0x206d4d,_0x54d792,_0x3c0068){const _0x2476fa=_0x425502(_0x206d4d,_0x510bbf),_0x5a04bd=this['editor']['commands']['get']('trackChanges');_0x2476fa['buttonView']['set']({'tooltip':_0x3c0068,'label':_0x3c0068,'icon':_0xa929b6}),_0x2476fa['buttonView']['bind']('isOn')['to'](_0x5a04bd,'value'),_0x2476fa['buttonView']['on']('execute',()=>{_0x5a04bd['execute'](),this['editor']['editing']['view']['focus']();}),_0x355789(_0x2476fa,_0x54d792,{'role':'menu'});const _0x5b35d1=[];for(const _0x206520 of _0x54d792)ke(_0x206520)&&_0x5b35d1['push'](this['editor']['commands']['get'](_0x206520['model']['commandName']));const _0x3c685e=_0x2476fa['buttonView'];return _0x3c685e['actionView']['unbind']('isEnabled'),_0x3c685e['arrowView']['unbind']('isEnabled'),_0x3c685e['actionView']['bind']('isEnabled')['to'](_0x5a04bd,'isEnabled'),_0x3c685e['arrowView']['bind']('isEnabled')['toMany'](_0x5b35d1,'isEnabled',(..._0x22502f)=>_0x22502f['some'](_0x272693=>_0x272693)),_0x2476fa['on']('execute',_0x301569=>{this['editor']['execute'](_0x301569['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2476fa;}['_createMenuBarMenu'](_0x229095,_0x4c53dd,_0x411b55){const _0x27d357=new _0x5c6d54(_0x229095),_0x4d913a=this['editor']['commands']['get']('trackChanges');_0x27d357['buttonView']['set']({'label':_0x411b55,'icon':_0xa929b6});const _0x1e98f8=new _0x35f1e1(_0x229095);for(const _0x764571 of _0x4c53dd){if('separator'==_0x764571['type']){_0x1e98f8['items']['add'](new _0x2ef933(_0x229095));continue;}const _0x136d3f=new _0x2be48b(_0x229095,_0x27d357),_0x3d32bb=new _0x5822d6(_0x229095),_0x5ae672=_0x764571['model'];_0x3d32bb['bind'](...Object['keys'](_0x5ae672))['to'](_0x5ae672),_0x3d32bb['delegate']('execute')['to'](_0x27d357),_0x3d32bb['on']('execute',()=>{this['editor']['execute'](_0x5ae672['commandName']),this['editor']['editing']['view']['focus']();}),_0x136d3f['children']['add'](_0x3d32bb),_0x1e98f8['items']['add'](_0x136d3f);}return _0x27d357['bind']('isEnabled')['to'](_0x4d913a,'isEnabled'),_0x27d357['panelView']['children']['add'](_0x1e98f8),_0x27d357;}['_initializeController'](_0x2dd59e){const _0x51c3d9=this['editor'],_0x2eda05=_0x51c3d9['config'],_0xe84d57=_0x51c3d9['plugins']['get']('Annotations'),_0x2e408f=_0x51c3d9['plugins']['get']('CommentsRepository'),_0x43a949=_0x51c3d9['plugins']['get']('EditorAnnotations'),_0x226e99=_0x51c3d9['plugins']['get'](_0x51cf78)['me'],_0xd2eeb8=_0x2eda05['get']('trackChanges')['SuggestionThreadView'],_0x3bb998=_0x2eda05['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4fa625,CommentThreadInputView:_0x284ebf}=_0x51c3d9['plugins']['get']('CommentsUI');let _0x5660d9,_0x1d378f,_0x5b7b64;this['_annotationViews']['has'](_0x2dd59e['id'])?(_0x1d378f=this['_annotationViews']['get'](_0x2dd59e['id']),_0x5660d9=_0x1d378f['mainView']):(_0x5660d9=new _0xd2eeb8(_0x51c3d9['locale'],_0x2dd59e,_0x226e99,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2eda05['get']('comments.editorConfig'),'licenseKey':_0x2eda05['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2eda05['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2eda05['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2eda05['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1233e4(_0x2eda05['get']('locale'),_0x51c3d9['locale']),'CommentView':_0x2eda05['get']('comments')['CommentView'],'CommentsListView':_0x4fa625,'CommentThreadInputView':_0x284ebf,'SuggestionView':_0x3bb998}),_0x5660d9['suggestionView']['acceptButton']['on']('execute',()=>{_0x51c3d9['editing']['view']['focus']();}),_0x5660d9['suggestionView']['discardButton']['on']('execute',()=>{_0x51c3d9['editing']['view']['focus']();}),_0x1d378f=_0xe84d57['createAnnotationView'](this['editor']['locale'],_0x5660d9),_0x1d378f['bind']('isDirty')['to'](_0x5660d9,'isDirty'),_0x1d378f['bind']('length')['to'](_0x5660d9),_0x1d378f['bind']('type')['to'](_0x5660d9,'type',_0xa1b3fd=>'suggestion-'+_0xa1b3fd),_0x5660d9['on']('escape',()=>{_0x5b7b64['fire']('escape');}),this['_annotationViews']['set'](_0x2dd59e['id'],_0x1d378f));const _0x4195e6=_0x2e408f['createCommentThreadController'](_0x2dd59e['commentThread'],_0x5660d9),_0x4ce858=new pe(_0x51c3d9,_0x2dd59e,_0x5660d9,_0x4195e6),_0x467049=_0x2dd59e['getAllAdjacentSuggestions']()['filter'](_0x119353=>_0x119353['isInContent']);_0x5660d9['descriptionParts']=_0x51c3d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x467049),this['_suggestionToController']['set'](_0x2dd59e,_0x4ce858),this['_viewToController']['set'](_0x5660d9,_0x4ce858);const _0xbff079=()=>{const _0x3c4d94=[],_0x2c8228=_0x2dd59e['getAllAdjacentSuggestions']()['filter'](_0x2b66df=>_0x2b66df['isInContent']);for(const _0x50ba36 of _0x2c8228)_0x3c4d94['push'](..._0x50ba36['getMarkers']());return _0x16ef51(_0x51c3d9['editing'],_0x3c4d94);};_0x5b7b64=_0xe84d57['createAnnotation']({'view':_0x1d378f,'target':_0xbff079,'type':()=>'suggestion-'+_0x4ce858['view']['type'],'isVisible':!!_0xbff079()}),_0x2e408f['_bindAnnotationToEditors'](_0x5660d9,_0x5b7b64),_0xe84d57['add'](_0x5b7b64),_0x43a949['registerAnnotation'](_0x5b7b64);}['_destroyController'](_0x425278){const _0x311ff5=this['editor']['plugins']['get']('CommentsRepository'),_0x493fff=this['editor']['plugins']['get']('Annotations'),_0x827242=this['_suggestionToController']['get'](_0x425278),_0x44b906=_0x827242['view'],_0x1b5343=_0x493fff['getByInnerView'](_0x44b906);_0x311ff5['_unbindEditors'](_0x44b906),_0x1b5343&&_0x493fff['remove'](_0x1b5343),this['_suggestionToController']['delete'](_0x425278),this['_viewToController']['delete'](_0x44b906),_0x827242['destroy']();}['_updateController'](_0x38c557){if(!_0x38c557['isInContent']||!this['_suggestionToController']['has'](_0x38c557))return;const _0x5b5982=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b5448=this['_suggestionToController']['get'](_0x38c557),_0x22e829=_0x38c557['getAllAdjacentSuggestions']();_0x5b5448['view']['descriptionParts']=_0x5b5982['descriptionFactory']['getDescriptions'](_0x22e829);}['destroy'](){for(const _0x31f5d0 of this['_suggestionToController']['keys']())this['_destroyController'](_0x31f5d0);for(const _0x22c634 of this['_annotationViews']['values']())_0x22c634['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2a5b5d){return'model'in _0x2a5b5d;}class Ne extends _0x6098b5{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x48c3e8){this['editor']['plugins']['get'](d)['adapter']=_0x48c3e8;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1bf96b){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1bf96b);}['getSuggestions']({skipNotAttached:_0x441b72=!0x1,toJSON:_0x2723cf=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x441b72,'toJSON':_0x2723cf});}['getSuggestion'](_0x16fbb1){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x16fbb1);}}const p=['Pagination'];class re extends _0x6098b5{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x26be78=this['editor'];if(_0x26be78['config']['define']('trackChangesData.editorCreator',_0x397209=>{const _0x434f5e=_0x26be78['model']['document']['getRootNames']()['reduce']((_0x4701cd,_0x52f883)=>(_0x4701cd[_0x52f883]='',_0x4701cd),{});return _0x26be78['constructor']['create'](_0x434f5e,_0x397209);}),'function'!=typeof _0x26be78['config']['get']('trackChangesData')['editorCreator'])throw new _0x3bdb9f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x593969){return P(this['editor'],!0x0,_0x593969);}['getDataWithDiscardedSuggestions'](_0x1c5117){return P(this['editor'],!0x1,_0x1c5117);}}class Fe extends _0x6098b5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2bd9cc){function _0x285d50(_0x361b66){return _0x361b66['map'](_0x5cac63=>String['fromCharCode'](_0x5cac63))['join']('');}super(_0x2bd9cc),this['result']='end',_0x2bd9cc[_0x285d50([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x285d50([0x76,0x69,0x65,0x77])][_0x285d50([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x285d50([0x61,0x75,0x74,0x6f]),_0x2bd9cc[_0x285d50([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x285d50([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x285d50([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x285d50([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x285d50([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 De(_0x17e62b){return void 0x0!==_0x17e62b['getRootsAttributes'];}async function P(_0xfbbc22,_0x4ccfb5,_0x52a449){const _0x5c196c=_0x2f378f(_0xfbbc22,p);_0x5c196c['plugins']['push'](d,Fe),_0x5c196c['rootsAttributes']=De(_0xfbbc22)?_0xfbbc22['getRootsAttributes']():void 0x0;const _0x480704=document['createDocumentFragment'](),_0x2ad139=_0xfbbc22['config']['get']('trackChangesData')['editorCreator'],_0x3160bf=await _0x2ad139(_0x5c196c,()=>function(_0x1f271f){const _0x7f5b1=document['createElement']('div');return _0x1f271f['appendChild'](_0x7f5b1),_0x7f5b1;}(_0x480704));!function(_0x1edf0a,_0x38e8d1){const _0x5f2133=_0x1edf0a['model']['document']['getRootNames']()['reduce']((_0x2df144,_0x3964f6)=>(_0x2df144[_0x3964f6]=_0x1edf0a['data']['get']({'rootName':_0x3964f6}),_0x2df144),{}),_0x280000=_0x1edf0a['plugins']['get']('Users')['users']['map'](_0x4a69d5=>({'id':_0x4a69d5['id'],'name':_0x4a69d5['name']})),_0x53dabc=_0x1edf0a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x54037d=_0x1edf0a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4c04cc=_0x38e8d1['plugins']['get']('Users'),_0x5420b1=_0x38e8d1['plugins']['get']('TrackChangesEditing'),_0x30695b=_0x38e8d1['plugins']['get']('CommentsRepository');for(const _0x37360b of _0x30695b['getCommentThreads']())_0x37360b['remove']();for(const _0x3de6d2 of _0x280000)_0x4c04cc['getUser'](_0x3de6d2['id'])||_0x4c04cc['addUser'](_0x3de6d2);_0x4c04cc['me']||_0x4c04cc['useAnonymousUser']();for(const _0x4dc655 of _0x54037d)_0x30695b['addCommentThread'](_0x4dc655);for(const _0x3d7e38 of _0x53dabc)_0x5420b1['addSuggestionData'](_0x3d7e38);_0x38e8d1['data']['set'](_0x5f2133);}(_0xfbbc22,_0x3160bf),_0x3160bf['execute'](_0x4ccfb5?'acceptAllSuggestions':'discardAllSuggestions');const _0x59d0b6=De(_0x3160bf)?_0x3160bf['getFullData'](_0x52a449):_0x3160bf['data']['get'](_0x52a449);return await _0x3160bf['destroy'](),_0x59d0b6;}class Me extends _0x6d8017{['options'];constructor(_0x50fff9,_0x54a655){super(_0x50fff9),this['options']=_0x54a655,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'](_0x38025c,_0x21acaf){if(!this['element'])return;const _0x41ca65=[];for(const [_0x460557,_0x12a533]of _0x38025c){const _0x4ace87=document['createElement']('div');_0x4ace87['setAttribute']('data-ck-root-name',_0x460557),_0x4ace87['className']=_0x12a533['classes']+'\x20ck-track-changes-preview__root-container',_0x4ace87['innerHTML']=_0x12a533['content'],_0x41ca65['push'](_0x4ace87);}_0x21acaf(this['element'],_0x41ca65),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x32fd9b{constructor(_0x5635c4){super(_0x5635c4),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x281aa1=this['editor'],_0x3781f9=_0x281aa1['locale'],_0x47369a=_0x281aa1['plugins']['get']('Dialog');let _0x1d55e1;const _0x467fed=function(_0x49d508){const _0x635f87={};if('editables'in _0x49d508['ui']['view']){for(const [_0x1b3609,_0x339ecf]of Object['entries'](_0x49d508['ui']['view']['editables']))_0x635f87[_0x1b3609]=_0x339ecf['element'];}else _0x635f87[_0x49d508['model']['document']['getRootNames']()[0x0]]=_0x49d508['ui']['view']['editable']['element'];return _0x635f87;}(_0x281aa1),_0x277f3b=function(_0x44fca3){let _0x2ff995=0x0;for(const _0x53b7ba of Object['values'](_0x44fca3))_0x2ff995=Math['max'](_0x2ff995,_0x53b7ba['getBoundingClientRect']()['width']);let _0x4b16a3=0x0;for(const _0x3a6f9f of Object['values'](_0x44fca3))_0x4b16a3+=_0x3a6f9f['getBoundingClientRect']()['height'];const _0x1fb297=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1879dd=Math['min'](_0x4b16a3,_0x1fb297);return{'width':_0x2ff995,'height':_0x1879dd};}(_0x467fed);_0x47369a['show']({'id':'finalContentPreview','title':o(_0x3781f9,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3781f9,{'dialogRects':_0x277f3b}),'onHide':()=>{_0x1d55e1['detachFromDom']();},'onShow':()=>{_0x281aa1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x48a671=>{const _0x49755b=this['_standarizeRootsData'](_0x48a671,_0x281aa1,_0x467fed);_0x47369a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x49755b,_0x281aa1['config']['get']('trackChanges.preview.renderFunction'));}),_0x1d55e1=new _0x6df534(_0x3781f9,[_0x47369a['view']]),_0x1d55e1['attachToDom'](),_0x1d55e1['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x281aa1['once']('destroy',()=>{_0x1d55e1['detachFromDom']();});const _0x3fd709=_0x47369a['view']['headerView']['class'];_0x47369a['view']['headerView']['class']=_0x3fd709?_0x3fd709+'\x20ck-reset_all':'ck-reset_all',_0x47369a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x47369a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1414e1=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x50ddbd=_0x1414e1['previewMode'],_0x17647a={};if('$labels'===_0x50ddbd){for(const _0x29f308 of _0x1414e1['getMergeFieldsIds']())_0x17647a[_0x29f308]=_0x1414e1['getLabel'](_0x29f308)||_0x29f308;}else{const _0x3f066a='$defaultValues'===_0x50ddbd?_0x1414e1['getDefaultValues']():_0x1414e1['getDataSetValues'](_0x50ddbd,!0x0);for(const _0x45df72 of Object['entries'](_0x3f066a)){const [_0x42026f,_0x130516]=_0x45df72;_0x17647a[_0x42026f]=null!==_0x130516?_0x130516:_0x1414e1['getLabel'](_0x42026f)||_0x42026f;}}return{'mergeFieldsData':_0x17647a};}['_standarizeRootsData'](_0x4501a7,_0x4b5951,_0x3e70da){let _0x3c242c;if('string'==typeof _0x4501a7){const _0x4ddf1e=_0x4b5951['model']['document']['getRootNames']()[0x0];_0x3c242c={[_0x4ddf1e]:_0x4501a7};}else _0x3c242c=_0x4501a7;const _0x25d128=this['_fixMediaEmbeds'](_0x3c242c,_0x4b5951),_0xb658c7=function(_0x2e1ec7,_0x213aef){for(const [_0x4d893b,_0xc1e419]of _0x2e1ec7)_0xc1e419['classes']=_0x213aef[_0x4d893b]['classList']['value']['replace']('ck-focused','');return _0x2e1ec7;}(this['_sortRoots'](_0x4b5951)['reduce']((_0x267d5e,_0x56197d)=>(_0x267d5e['push']([_0x56197d,{'content':_0x25d128[_0x56197d],'classes':''}]),_0x267d5e),[]),_0x3e70da);return _0xb658c7;}['_fixMediaEmbeds'](_0x4639d4,_0x15ea29){if(!_0x15ea29['plugins']['has']('MediaEmbedEditing'))return _0x4639d4;const _0x27afee=_0x15ea29['plugins']['get']('MediaEmbedEditing');for(const [_0x47e905,_0x37e9f9]of Object['entries'](_0x4639d4)){const _0x2b49fc=document['createElement']('div');_0x2b49fc['innerHTML']=_0x37e9f9,(_0x2b49fc['querySelectorAll']('figure.media')['forEach'](_0x40f4ee=>{const _0x386a3a=_0x40f4ee['querySelector']('oembed');if(_0x386a3a){const _0x1fcc76=_0x386a3a['getAttribute']('url');if(_0x1fcc76){const _0x582916=_0x27afee['registry']['getMediaViewElement'](new _0x3d974a(_0x15ea29['editing']['view']['document']),_0x1fcc76,{'elementName':'','renderForEditingView':!0x0}),_0x3da73c=document['createElement']('div');_0x3da73c['classList']['add']('ck-media__wrapper'),_0x582916['render'](_0x3da73c,_0x15ea29['editing']['view']['domConverter']),_0x386a3a['replaceWith'](_0x3da73c);}}}),_0x4639d4[_0x47e905]=_0x2b49fc['innerHTML']);}return _0x4639d4;}['_sortRoots'](_0x291ca6){if(!function(_0x30c457){return void 0x0!==_0x30c457['getRootsAttributes'];}(_0x291ca6))return _0x291ca6['model']['document']['getRootNames']();const _0x285b8d=[],_0x3e1d16=new Map();for(const _0x1ac6bb of _0x291ca6['model']['document']['getRootNames']()){const _0x442d50=_0x291ca6['editing']['view']['getDomRoot'](_0x1ac6bb)['getClientRects']()['item'](0x0);_0x285b8d['push'](_0x1ac6bb),_0x3e1d16['set'](_0x1ac6bb,_0x442d50);}return _0x285b8d['sort']((_0x5b1a43,_0x4359f5)=>{const _0x5b2411=_0x3e1d16['get'](_0x5b1a43),_0xa65edc=_0x3e1d16['get'](_0x4359f5);return _0x5b2411['y']-_0xa65edc['y']||_0x5b2411['x']-_0xa65edc['x'];}),_0x285b8d;}}class Ue extends _0x6098b5{static get['requires'](){return[re,_0xb35cf1];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x523243){super(_0x523243),_0x523243['commands']['add']('previewFinalContent',new te(this['editor'])),_0x523243['config']['define']('trackChanges.preview.renderFunction',(_0x410296,_0x39213c)=>{for(const _0x2ff148 of _0x39213c)_0x410296['appendChild'](_0x2ff148);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x2677d9,Plugin as _0x5c469f,PendingActions as _0x52061b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4bd1ef,ObservableMixin as _0x396c0e,uid as _0xe7a85c,priorities as _0x5382c2,insertToPriorityArray as _0x53f5fa,logWarning as _0x5dad29,getEnvKeystrokeText as _0xc43d41,FocusTracker as _0x117c38,KeystrokeHandler as _0x15ddba,Collection as _0x2a31a7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x66c94d,IconCancel as _0x11ac0f,IconTrackChanges as _0x5563d1}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1cd192,View as _0x3725c9,ViewCollection as _0x4958e7,FocusCycler as _0x5d44a1,UIModel as _0x4d4814,createDropdown as _0x57847e,SplitButtonView as _0x2e353d,addListToDropdown as _0x1cd2d,MenuBarMenuView as _0x502fd3,MenuBarMenuListView as _0x5b0b21,ListSeparatorView as _0xc8adaa,MenuBarMenuListItemView as _0x1f14d7,MenuBarMenuListItemButtonView as _0x59084b,BodyCollection as _0xfa1121,Dialog as _0xc55595}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xe3d5a4,DocumentCompare as _0x4a392e,hashObject as _0x4f3ece,surroundingMarkersDetector as _0xdbf774,FOCUS_ANNOTATION_KEYSTROKE as _0x18497a,AriaDescriptionView as _0x536ecb,setupThreadKeyboardNavigation as _0x19f182,trimHtml as _0x1cbe9a,UserView as _0x35b91d,LateFocusButtonView as _0x1f2254,getDateTimeFormatter as _0x703e2b,getAllMarkersDomElementsSorted as _0x319fa6,sanitizeEditorConfig as _0x4f6792}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x1169aa,ModelLiveRange as _0x167977,ModelLivePosition as _0x461c02,ViewDowncastWriter as _0x2db659}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x32a943,set as _0x523787,isEqual as _0x33d31c,unset as _0x54fb6d,omit as Pt}from'es-toolkit/compat';import{Delete as _0x208762,Input as _0x5e85b6}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x560292}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1fe9af}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x2677d9{['_enabledCommands'];constructor(_0x3c5b7c,_0x28e1aa){super(_0x3c5b7c),this['_enabledCommands']=_0x28e1aa,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 _0x3f317c of this['editor']['commands']['commands']())_0x3f317c['affectsData']&&!this['_enabledCommands']['has'](_0x3f317c)&&_0x3f317c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3603cb of this['editor']['commands']['commands']())_0x3603cb['affectsData']&&!this['_enabledCommands']['has'](_0x3603cb)&&_0x3603cb['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x2677d9{['_suggestions'];constructor(_0x454df9,_0x4f5eed){super(_0x454df9),this['_suggestions']=_0x4f5eed,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x133a16){const _0x49f1db=this['_suggestions']['get'](_0x133a16);if(!_0x49f1db)throw new _0x4bd1ef('track-changes-accept-suggestion-not-found',this);const _0x2fba11=_0x49f1db['getRanges']();this['editor']['model']['canEditAt'](_0x2fba11)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x49f1db);}}class D extends _0x2677d9{['_suggestions'];constructor(_0x513b63,_0x1f877c){super(_0x513b63),this['_suggestions']=_0x1f877c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa6b260){const _0x3b8ed5=this['_suggestions']['get'](_0xa6b260);if(!_0x3b8ed5)throw new _0x4bd1ef('track-changes-discard-suggestion-not-found',this);const _0x48e63c=_0x3b8ed5['getRanges']();this['editor']['model']['canEditAt'](_0x48e63c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3b8ed5);}}function ls(_0x5a4ce9,_0x22270c){let _0x1f6b0d='';return _0x1f6b0d+=_0x5a4ce9['split']('*')['map']((_0x53ae77,_0x110ddf)=>_0x110ddf%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x53ae77)+'</span>':rn(_0x53ae77))['join'](''),_0x22270c&&(_0x1f6b0d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x22270c['value']+'\x22\x20title=\x22'+_0x22270c['title']+'\x22></span>'),_0x1f6b0d;}function rn(_0x382bda){const _0x56ecb3=document['createElement']('span');return _0x56ecb3['innerText']=_0x382bda,_0x56ecb3['innerHTML'];}function ts(_0x4e08e9){return _0x4e08e9['sort']((_0x2f71fd,_0x291ff6)=>'attribute'===_0x2f71fd['type']&&'attribute'!==_0x291ff6['type']?-0x1:'attribute'!==_0x2f71fd['type']&&'attribute'===_0x291ff6['type']?0x1:'deletion'==_0x2f71fd['type']&&'deletion'!=_0x291ff6['type']?-0x1:'deletion'!=_0x2f71fd['type']&&'deletion'==_0x291ff6['type']?0x1:0x0);}function to(_0x287e12,_0x28ea5a){let _0xf5a098,_0x517e9d=0x0;const _0x17c8cd=[],_0x59b480=_0x28ea5a['schema'];for(;_0x517e9d<_0x287e12['length'];){const _0x55f9cc=_0x287e12[_0x517e9d],_0x546e0f=_0x287e12[_0x517e9d+0x1];_0xf5a098||(_0xf5a098=_0x28ea5a['createPositionBefore'](_0x55f9cc)),cn(_0x28ea5a,_0x55f9cc,_0x546e0f)||(_0x17c8cd['push'](_0x28ea5a['createRange'](_0xf5a098,_0x59b480['isObject'](_0x55f9cc)?_0x28ea5a['createPositionAfter'](_0x55f9cc):_0x28ea5a['createPositionAt'](_0x55f9cc,'end'))),_0xf5a098=null),_0x517e9d++;}return _0x17c8cd;}function cn(_0x30f901,_0x34cfbe,_0x9d5208){if(!_0x9d5208)return!0x1;const _0x22c89a=_0x30f901['createPositionAfter'](_0x34cfbe),_0x4dc7d5=_0x30f901['createPositionBefore'](_0x9d5208);return _0x22c89a['isTouching'](_0x4dc7d5);}function rs(_0x321303,_0x283482,_0x5c6e04){for(;_0x5c6e04['length'];){const _0x49eb88=_0x5c6e04['splice'](0x0,0x64);_0x321303['change'](()=>{for(const _0x52f9bb of _0x49eb88)_0x52f9bb['isInContent']&&_0x283482['execute'](_0x52f9bb['id']);});}}class B extends _0x2677d9{['_command'];['_suggestions'];constructor(_0x391ea4,_0x488910,_0x3edac6){super(_0x391ea4),this['_command']=_0x488910,this['_suggestions']=_0x3edac6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x59fb0e=Array['from'](this['_suggestions']['values']())['some'](_0x3e1fea=>_0x3e1fea['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x59fb0e;}['execute'](){const _0x5dd3e3=ts(Array['from'](this['_suggestions']['values']()));for(const _0x19fd15 of _0x5dd3e3){const _0x5e2414=_0x19fd15['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5e2414))return;}rs(this['editor']['model'],this['_command'],_0x5dd3e3);}}class O extends _0x2677d9{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1fbea5,_0x5d88bb,_0x42c4f4){super(_0x1fbea5),this['_command']=_0x5d88bb,this['_suggestions']=_0x42c4f4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5bf853=this['editor']['model']['document']['selection'],_0x10dd60=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x16f787,_0x5a7afb){const _0xdf9fa3=Array['from'](_0x16f787['getRanges']()),_0x507db2=new Set();for(const _0x4670fb of _0x5a7afb)if(_0x4670fb['isInContent']){for(const _0x33507f of _0xdf9fa3)for(const _0x1523c9 of _0x4670fb['getRanges']())(_0x33507f['isIntersecting'](_0x1523c9)||_0x16f787['isCollapsed']&&!_0x4670fb['isMultiRange']&&_0x4670fb['next']&&_0x1523c9['end']['isTouching'](_0x33507f['start']))&&_0x507db2['add'](_0x4670fb);}return _0x507db2;}(_0x5bf853,_0x10dd60),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x172d6b=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4b3180 of _0x172d6b){const _0x433080=_0x4b3180['getRanges']();if(!this['editor']['model']['canEditAt'](_0x433080))return;}rs(this['editor']['model'],this['_command'],_0x172d6b);}}class x extends/* #__PURE__ -- @preserve */
24
+ _0x396c0e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x15322a,_0x5bd7bc){super(),this['id']=_0x5bd7bc['id'],this['type']=_0x5bd7bc['type'],this['subType']=_0x5bd7bc['subType']||null,this['author']=_0x5bd7bc['author'],this['creator']=_0x5bd7bc['creator']||_0x5bd7bc['author'],this['isExternal']=Boolean(_0x5bd7bc['attributes']&&_0x5bd7bc['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5bd7bc['originalSuggestionId']||null,this['_model']=_0x15322a,this['_onAccept']=_0x5bd7bc['onAccept'],this['_onDiscard']=_0x5bd7bc['onDiscard'],this['_onAttributesChange']=_0x5bd7bc['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5bd7bc['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 _0x26fae3=this;for(;_0x26fae3['previous'];)_0x26fae3=_0x26fae3['previous'];return _0x26fae3;}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'](_0x69e854){this['_markerNames']['add'](_0x69e854);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x170b33=>this['_model']['markers']['get'](_0x170b33))['filter'](_0x251b4c=>_0x251b4c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xc8b60e=>{for(const _0x2f2e65 of this['getMarkers']())_0xc8b60e['removeMarker'](_0x2f2e65);}),this['_markerNames']['clear']();}['removeMarker'](_0xce7a1f){this['_model']['change'](_0x4b7869=>{_0x4b7869['removeMarker'](_0xce7a1f);}),this['_markerNames']['delete'](_0xce7a1f);}['addRange'](_0x1197b6){const _0x272bf8='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x272bf8),this['_model']['change'](_0x55e0d9=>{_0x55e0d9['addMarker'](_0x272bf8,{'range':_0x1197b6,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x14a45b){for(const _0xb3c75f of this['getRanges']())if(_0xb3c75f['isIntersecting'](_0x14a45b))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x42d185=>_0x42d185['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4ce5c9,_0x4bf98d)=>[..._0x4ce5c9,..._0x4bf98d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xa5d6a2=this['getRanges']();if(0x1!=_0xa5d6a2['length'])return null;const _0x3eef14=_0xa5d6a2[0x0],_0x449c4a=_0x3eef14['start']['nodeAfter'],_0x38db1c=_0x3eef14['end']['nodeBefore'];return _0x449c4a instanceof _0x1169aa?_0x449c4a!=_0x38db1c?null:_0x449c4a: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 _0x29fa86=[];let _0x280947=this['head'];for(;_0x280947;)_0x29fa86['push'](_0x280947),_0x280947=_0x280947['next'];return _0x29fa86;}['setAttribute'](_0x44c1f9,_0x4180f6){const _0x16717c=_0x32a943(this['attributes']);_0x523787(_0x16717c,_0x44c1f9,_0x4180f6),_0x33d31c(_0x16717c,this['attributes'])||(this['attributes']=_0x16717c,this['_onAttributesChange'](_0x16717c));}['removeAttribute'](_0x1bf7f9){const _0xbcf5b4=_0x32a943(this['attributes']);_0x54fb6d(_0xbcf5b4,_0x1bf7f9),_0x33d31c(_0xbcf5b4,this['attributes'])||(this['attributes']=_0xbcf5b4,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 _0xe7a85c()['substr'](0x1,0x5);}}function o(_0x3be212,_0x32da98,_0x1a6e6e){const _0x34a093=_0x3be212['t'],t=_0x3be212['t'];switch(_0x32da98){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',_0x1a6e6e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1a6e6e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1a6e6e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1a6e6e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1a6e6e);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',_0x1a6e6e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1a6e6e);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',_0x1a6e6e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1a6e6e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1a6e6e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1a6e6e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1a6e6e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1a6e6e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1a6e6e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1a6e6e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1a6e6e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1a6e6e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1a6e6e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1a6e6e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1a6e6e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1a6e6e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1a6e6e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1a6e6e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1a6e6e);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1a6e6e);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'},_0x1a6e6e);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1a6e6e);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1a6e6e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1a6e6e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1a6e6e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1a6e6e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1a6e6e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1a6e6e);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'},_0x1a6e6e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1a6e6e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1a6e6e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1a6e6e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1a6e6e);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'},_0x1a6e6e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1a6e6e);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'},_0x1a6e6e);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'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x1a6e6e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1a6e6e);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'},_0x1a6e6e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1a6e6e);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'},_0x1a6e6e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1a6e6e);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x1a6e6e);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x1a6e6e);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x1a6e6e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1a6e6e);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'},_0x1a6e6e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1a6e6e);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 _0x34a093({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1a6e6e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x34a093({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1a6e6e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1a6e6e);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'},_0x1a6e6e);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'},_0x1a6e6e);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'},_0x1a6e6e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x32da98;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x7bf33,_0x1689d4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x7bf33,this['_locale']=_0x1689d4;}['getDescriptions'](_0x19a0dd){const _0x478b16=[],_0xd71649=new Set(),_0x53a83b=new Set();for(let _0x14805e=0x0;_0x14805e<_0x19a0dd['length'];_0x14805e++){const _0x3a7fbc=_0x19a0dd[_0x14805e];if(!_0x3a7fbc['isInContent'])continue;const _0xa89223=this['_handleCustomCallbackDescription'](_0x3a7fbc);if(_0xa89223){if(null!=_0x3a7fbc['subType']){if(_0xd71649['has'](_0x3a7fbc['subType']))continue;_0xd71649['add'](_0x3a7fbc['subType']);}_0x478b16['push'](_0xa89223);}else{if('attribute'==_0x3a7fbc['type']){const _0x1aab27=_0x3a7fbc['data']['key'];if(_0x53a83b['has'](_0x1aab27))continue;_0x53a83b['add'](_0x3a7fbc['data']['key']),_0x1aab27==m?this['_handleRenameSuggestionDescription'](_0x478b16,_0x3a7fbc):this['_handleAttributeSuggestionDescription'](_0x478b16,_0x3a7fbc);continue;}'insertion'!=_0x3a7fbc['type']&&'deletion'!=_0x3a7fbc['type']||this['_handleInsertRemoveSuggestionDescription'](_0x478b16,_0x3a7fbc,_0x19a0dd[_0x14805e+0x1]);}}return this['_resolveDescriptionItems'](_0x478b16);}['registerDescriptionCallback'](_0x2742ba){this['_customCallbacks']['push'](_0x2742ba);}['registerElementLabel'](_0x3dd2d2,_0x3aee17,_0x3f297e=_0x5382c2['normal']){'function'==typeof _0x3dd2d2?_0x53f5fa(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3dd2d2,'label':_0x3aee17,'priority':_0x3f297e}):this['_itemLabels']['set'](_0x3dd2d2,_0x3aee17);}['registerAttributeLabel'](_0x1f798e,_0x33bd4c){this['_attributeLabels']['set'](_0x1f798e,_0x33bd4c);}['getItemLabel'](_0x2cff93,_0x519b9a=0x1){let _0x264f47;for(const _0x489bc1 of this['_itemLabelsCallbacks'])if(_0x489bc1['matchingCallback'](_0x2cff93)){_0x264f47=_0x489bc1['label'];break;}return _0x264f47||(_0x264f47=this['_itemLabels']['get'](_0x2cff93['name'])),_0x264f47?_0x264f47(_0x519b9a):0x1!==_0x519b9a?_0x519b9a+'\x20'+_0x2cff93['name']+'s':''+_0x2cff93['name'];}['_addDescriptionItems'](_0x1005c4,_0x284716){const _0x52c54d=_0x284716['getFirstRange']()['getWalker'](),_0x2c1ee8='insertion'==_0x284716['type']?'add':'remove';for(const _0x5b5a4f of _0x52c54d){const _0x13a965=_0x5b5a4f['item'],_0x2b5753=_0x1005c4[_0x1005c4['length']-0x1];if(_0x13a965['is']('$textProxy'))_0x2b5753&&_0x2b5753['type']['indexOf']('Container')>-0x1&&_0x1005c4['pop'](),_0x2b5753&&'text'==_0x2b5753['type']?_0x2b5753[_0x2c1ee8]+=_0x13a965['data']:_0x1005c4['push']({'type':'text','add':'add'==_0x2c1ee8?_0x13a965['data']:'','remove':'remove'==_0x2c1ee8?_0x13a965['data']:''});else{if(this['_schema']['isObject'](_0x13a965)){const _0x13763=_0x13a965;if(_0x2b5753&&_0x2b5753['type']['indexOf']('Container')>-0x1&&_0x1005c4['pop'](),'elementEnd'==_0x5b5a4f['type'])continue;_0x2b5753&&_0x2b5753['type']==_0x2c1ee8+'Object'&&_0x2b5753['element']['name']==_0x13763['name']?_0x2b5753['quantity']++:_0x1005c4['push']({'type':_0x2c1ee8+'Object','element':_0x13763,'quantity':0x1}),_0x52c54d['skip'](_0x5192e5=>!('elementEnd'==_0x5192e5['type']&&_0x5192e5['item']==_0x13a965));}else{if(this['_schema']['checkChild'](_0x13a965,'$text')||_0x13a965['is']('element','softBreak')){const _0x4fd9a3=_0x13a965;if('add'==_0x2c1ee8&&'elementStart'==_0x5b5a4f['type']||'remove'==_0x2c1ee8&&'elementEnd'==_0x5b5a4f['type'])continue;if(_0x2b5753&&-0x1==_0x2b5753['type']['indexOf']('Container')){'text'==_0x2b5753['type']&&(_0x2b5753[_0x2c1ee8]+='\x0a');continue;}let _0x50baa9;if(_0x50baa9='add'==_0x2c1ee8?_0x4fd9a3['nextSibling']&&!this['_schema']['isObject'](_0x4fd9a3['nextSibling'])?_0x4fd9a3['nextSibling']:null:_0x4fd9a3['previousSibling']&&!this['_schema']['isObject'](_0x4fd9a3['previousSibling'])?_0x4fd9a3['previousSibling']:null,_0x4fd9a3['isEmpty']||_0x50baa9&&_0x50baa9['isEmpty']){const _0x270262=_0x50baa9&&_0x50baa9['isEmpty']?_0x50baa9:_0x4fd9a3;_0x2b5753&&_0x2b5753['type']==_0x2c1ee8+'EmptyContainer'&&_0x2b5753['element']['name']==_0x270262['name']?_0x2b5753['quantity']++:_0x1005c4['push']({'type':_0x2c1ee8+'EmptyContainer','element':_0x270262,'quantity':0x1});}else _0x1005c4['push']({'type':_0x2c1ee8+'Container','element':_0x4fd9a3});}}}}}['_resolveDescriptionItems'](_0x4d7fae){const _0x4ccf79=this['_locale'],_0x5dc05f=[],_0x48ca53=[],_0x4a8b32=[];for(const _0x3ff51b of _0x4d7fae)switch(_0x3ff51b['type']){case'text':if(_0x3ff51b['add']=_0x3ff51b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3ff51b['remove']=_0x3ff51b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3ff51b['add']&&''!=_0x3ff51b['remove']){_0x5dc05f['push']({'type':'replace','content':o(_0x4ccf79,'REPLACE_TEXT',['\x22'+_0x3ff51b['remove']+'\x22','\x22'+_0x3ff51b['add']+'\x22'])});continue;}if(null!=_0x3ff51b['add']['match'](/^ +$/)){_0x5dc05f['push']({'type':'insertion','content':o(_0x4ccf79,'*Insert:*\x20%0',o(_0x4ccf79,'ELEMENT_SPACE',_0x3ff51b['add']['length']))});continue;}if(null!=_0x3ff51b['remove']['match'](/^ +$/)){_0x5dc05f['push']({'type':'deletion','content':o(_0x4ccf79,'*Remove:*\x20%0',o(_0x4ccf79,'ELEMENT_SPACE',_0x3ff51b['remove']['length']))});continue;}if(''!=_0x3ff51b['add']){_0x5dc05f['push']({'type':'insertion','content':o(_0x4ccf79,'*Insert:*\x20%0','\x22'+_0x3ff51b['add']+'\x22')});continue;}_0x5dc05f['push']({'type':'deletion','content':o(_0x4ccf79,'*Remove:*\x20%0','\x22'+_0x3ff51b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5dc05f['push']({'type':'insertion','content':o(_0x4ccf79,'*Insert:*\x20%0',this['getItemLabel'](_0x3ff51b['element'],_0x3ff51b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5dc05f['push']({'type':'deletion','content':o(_0x4ccf79,'*Remove:*\x20%0',this['getItemLabel'](_0x3ff51b['element'],_0x3ff51b['quantity']))});continue;case'addContainer':_0x5dc05f['push']({'type':'insertion','content':o(_0x4ccf79,'*Split:*\x20%0',this['getItemLabel'](_0x3ff51b['element'],_0x3ff51b['quantity']))});continue;case'removeContainer':_0x5dc05f['push']({'type':'deletion','content':o(_0x4ccf79,'*Merge:*\x20%0',this['getItemLabel'](_0x3ff51b['element'],_0x3ff51b['quantity']))});continue;case'addFormat':_0x48ca53['push'](_0x3ff51b['key']);continue;case'removeFormat':_0x4a8b32['push'](_0x3ff51b['key']);continue;default:_0x5dc05f['push'](_0x3ff51b);}if(_0x48ca53['length']){const _0x55f5ec=_0x48ca53['map'](_0x2f76cf=>this['_attributeLabels']['has'](_0x2f76cf)?this['_attributeLabels']['get'](_0x2f76cf):_0x2f76cf)['join'](',\x20');_0x5dc05f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x55f5ec)});}if(_0x4a8b32['length']){const _0x1d65c8=_0x4a8b32['map'](_0x18a4ef=>this['_attributeLabels']['has'](_0x18a4ef)?this['_attributeLabels']['get'](_0x18a4ef):_0x18a4ef)['join'](',\x20');_0x5dc05f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1d65c8)});}return _0x5dc05f;}['_handleCustomCallbackDescription'](_0x127c1a){for(const _0x215154 of this['_customCallbacks']){const _0x5485bb=_0x215154(_0x127c1a);if(_0x5485bb&&'type'in _0x5485bb)return _0x5485bb;}}['_handleAttributeSuggestionDescription'](_0x5aea23,_0x1a3048){const _0x2e2bfc=_0x1a3048['data'],_0x97994d=void 0x0===_0x2e2bfc['newValue']?'removeFormat':'addFormat';_0x5aea23['push']({'type':_0x97994d,'key':_0x2e2bfc['key']});}['_handleRenameSuggestionDescription'](_0x22f17e,_0x44128a){_0x22f17e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x44128a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xa595a,_0x2b7ee9,_0x24397b){if(this['_addDescriptionItems'](_0xa595a,_0x2b7ee9),_0x24397b&&_0x24397b['getFirstRange']()&&!_0x2b7ee9['getFirstRange']()['end']['isEqual'](_0x24397b['getFirstRange']()['start'])){const _0x2f3e27=_0xa595a[_0xa595a['length']-0x1],_0x81d8bd='insertion'==_0x2b7ee9['type']?'add':'remove';_0x2f3e27&&'text'==_0x2f3e27['type']&&(_0x2f3e27[_0x81d8bd]+='\x0a');}}}class R extends _0x5c469f{['afterInit'](){const _0x5e4495=this['editor'],_0x29ef5d=_0x5e4495['plugins']['get']('TrackChangesEditing');_0x5e4495['commands']['get']('showAIAssistant')&&_0x29ef5d['enableCommand']('showAIAssistant');}}class T extends _0x5c469f{['afterInit'](){const _0x551b11=this['editor'],_0x37f946=_0x551b11['plugins']['get']('TrackChangesEditing');_0x551b11['commands']['get']('toggleAi')&&_0x37f946['enableCommand']('toggleAi');}}class E extends _0x5c469f{['afterInit'](){const _0x5abdb9=this['editor'],_0x1bada3=_0x5abdb9['plugins']['get']('TrackChangesEditing');_0x5abdb9['commands']['get']('aiQuickAction')&&_0x1bada3['enableCommand']('aiQuickAction');}}class U extends _0x5c469f{['afterInit'](){const _0x1f84b4=this['editor'],_0x5d98a7=_0x1f84b4['locale'];if(!_0x1f84b4['plugins']['has']('AlignmentEditing'))return;const _0x3679dc=_0x1f84b4['plugins']['get']('TrackChangesEditing');_0x3679dc['enableDefaultAttributesIntegration']('alignment'),_0x3679dc['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5d98a7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x586cdd=this['editor'],_0x4632c3=_0x586cdd['locale'];_0x586cdd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x849abb=>{if('formatBlock'!=_0x849abb['type'])return;const {data:_0x21a775}=_0x849abb;if(_0x21a775&&'alignment'==_0x21a775['commandName']){const _0x1e3efd=_0x21a775['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4632c3,'*Format:*\x20%0',function(_0x59a76a){switch(_0x59a76a){case'left':return o(_0x4632c3,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4632c3,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4632c3,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4632c3,'FORMAT_JUSTIFY_TEXT');}}(_0x1e3efd))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x5c469f{['afterInit'](){const _0x9da0b0=this['editor'],_0x4ecb4a=_0x9da0b0['plugins']['get']('TrackChangesEditing'),_0x3a435f=_0x9da0b0['locale'];for(const _0x3c4825 of ti){if(!_0x9da0b0['plugins']['has'](_0x3c4825))continue;const _0xd9a2b8=_0x3c4825['slice'](0x0,-0x7)['toLowerCase'](),_0x50cb78='FORMAT_'+_0xd9a2b8['toUpperCase']();_0x4ecb4a['enableDefaultAttributesIntegration'](_0xd9a2b8),_0x4ecb4a['descriptionFactory']['registerAttributeLabel'](_0xd9a2b8,o(_0x3a435f,_0x50cb78));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35bdf0=this['editor'],_0x138280=_0x35bdf0['locale'],_0x2e64ba=_0x35bdf0['plugins']['get']('TrackChangesEditing');function _0x17a7e3(_0x3f8349,_0x5efb96){_0x2e64ba['descriptionFactory']['registerDescriptionCallback'](_0x5315e2=>{if('formatInline'!=_0x5315e2['type'])return;const {data:_0x1afc85}=_0x5315e2;return _0x1afc85&&_0x1afc85['commandName']===_0x3f8349?_0x1afc85['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x138280,'*Format:*\x20%0',_0x5efb96)}:{'type':'format','content':o(_0x138280,'*Remove\x20format:*\x20%0',_0x5efb96)}:void 0x0;});}_0x17a7e3('bold',o(_0x138280,'FORMAT_BOLD')),_0x17a7e3('italic',o(_0x138280,'FORMAT_ITALIC')),_0x17a7e3('underline',o(_0x138280,'FORMAT_UNDERLINE')),_0x17a7e3('code',o(_0x138280,'FORMAT_CODE')),_0x17a7e3('strikethrough',o(_0x138280,'FORMAT_STRIKETHROUGH')),_0x17a7e3('subscript',o(_0x138280,'FORMAT_SUBSCRIPT')),_0x17a7e3('superscript',o(_0x138280,'FORMAT_SUPERSCRIPT'));}}class F extends _0x5c469f{['afterInit'](){const _0xa6be94=this['editor'],_0x309504=_0xa6be94['locale'];if(!_0xa6be94['plugins']['has']('BlockQuoteEditing'))return;const _0x4f4973=_0xa6be94['plugins']['get']('TrackChangesEditing'),_0xe8ce5c=this['editor']['commands']['get']('blockQuote');_0x4f4973['enableCommand']('blockQuote',(_0x4b11f2,_0x5b6f44={})=>{const _0x13b76e=this['editor']['model']['document']['selection'],_0x1d4b4e=_0x5b6f44&&void 0x0!==_0x5b6f44['forceValue']?_0x5b6f44['forceValue']:!_0xe8ce5c['value'];let _0x5b01c0=[];if(_0x1d4b4e){const _0x690eb=Array['from'](_0x13b76e['getSelectedBlocks']())['filter'](_0x1b5605=>oo(_0x1b5605)||function(_0x238d8a,_0x4e4de7){const _0x20ef5e=_0x4e4de7['checkChild'](_0x238d8a['parent'],'blockQuote'),_0x458cbd=_0x4e4de7['checkChild'](['$root','blockQuote'],_0x238d8a);return _0x20ef5e&&_0x458cbd;}(_0x1b5605,this['editor']['model']['schema']));_0x5b01c0=to(_0x690eb,_0xa6be94['model']);}else{const _0x2f73c4=Array['from'](_0x13b76e['getSelectedBlocks']())['filter'](_0x1acc77=>oo(_0x1acc77));_0x5b01c0=to(_0x2f73c4,_0xa6be94['model']);}_0xa6be94['model']['change'](()=>{for(const _0x54f0c9 of _0x5b01c0)_0x4f4973['markBlockFormat'](_0x54f0c9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1d4b4e}]});});}),_0x4f4973['descriptionFactory']['registerDescriptionCallback'](_0x494721=>{const {data:_0x5aa07b}=_0x494721;if(_0x5aa07b&&'blockQuote'==_0x5aa07b['commandName']){const _0x37e85f=o(_0x309504,'ELEMENT_BLOCK_QUOTE');return _0x5aa07b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x309504,'*Set\x20format:*\x20%0',_0x37e85f)}:{'type':'format','content':o(_0x309504,'*Remove\x20format:*\x20%0',_0x37e85f)};}});}}function oo(_0x4f64f4){return'blockQuote'==_0x4f64f4['parent']['name'];}class G extends _0x5c469f{['afterInit'](){const _0x225e97=this['editor'],_0x1312f7=_0x225e97['locale'],_0x5af389=_0x225e97['plugins']['get']('TrackChangesEditing');_0x225e97['plugins']['has']('BookmarkEditing')&&(_0x5af389['enableCommand']('insertBookmark'),_0x5af389['enableDefaultAttributesIntegration']('updateBookmark'),_0x5af389['descriptionFactory']['registerDescriptionCallback'](_0x396151=>{if('insertion'!=_0x396151['type']&&'deletion'!=_0x396151['type']&&'attribute'!=_0x396151['type'])return;const _0x2d1466=_0x396151['getContainedElement']();if(null==_0x2d1466)return;if(!_0x2d1466['is']('element','bookmark'))return;const _0x462f44=_0x2d1466['getAttribute']('bookmarkId');if('insertion'==_0x396151['type'])return{'type':'insertion','content':o(_0x1312f7,'*Insert:*\x20%0','\x22'+_0x462f44+'\x22\x20'+o(_0x1312f7,'ELEMENT_BOOKMARK'))};if('deletion'==_0x396151['type'])return{'type':'deletion','content':o(_0x1312f7,'*Remove:*\x20%0','\x22'+_0x462f44+'\x22\x20'+o(_0x1312f7,'ELEMENT_BOOKMARK'))};const {data:_0x24b54c}=_0x396151;if(!_0x24b54c||'bookmarkId'!=_0x24b54c['key'])return;return{'type':'format','content':o(_0x1312f7,'*Set\x20bookmark:*\x20%0','\x22'+_0x24b54c['newValue']+'\x22')};}));}}class L extends _0x5c469f{['afterInit'](){const _0x42ec43=this['editor'];_0x42ec43['plugins']['has']('CaseChange')&&(_0x42ec43['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x42ec43['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x42ec43['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x5c469f{['afterInit'](){const _0x21fa79=this['editor'];_0x21fa79['commands']['get']('ckbox')&&_0x21fa79['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x5c469f{['afterInit'](){const _0x4a6a04=this['editor'];if(!_0x4a6a04['plugins']['has']('CodeBlock'))return;const _0x5d8884=_0x4a6a04['plugins']['get']('TrackChangesEditing'),_0x357b98=_0x4a6a04['locale'],_0x3d60d4=_0x4a6a04['config']['get']('codeBlock')['languages'],_0x156305=_0x4a6a04['commands']['get']('codeBlock');_0x5d8884['enableCommand']('indentCodeBlock'),_0x5d8884['enableCommand']('outdentCodeBlock'),_0x5d8884['enableCommand']('codeBlock',(_0xfec5fe,_0x1cef87={})=>{const _0x1b8398=_0x4a6a04['model'],_0x33c6d4=_0x4a6a04['model']['document']['selection'],_0x4bac5d=_0x1cef87&&void 0x0!==_0x1cef87['forceValue']?_0x1cef87['forceValue']:!_0x156305['value'];let _0x3b9fc7;_0x1cef87['language']||(_0x1cef87['language']=_0x3d60d4[0x0]['language']),_0x3b9fc7=_0x4bac5d?Array['from'](_0x33c6d4['getSelectedBlocks']())['filter'](_0x1d16fe=>co(_0x1d16fe)||function(_0x3e6aee,_0x81790e){if(_0x3e6aee['is']('rootElement')||_0x81790e['isLimit'](_0x3e6aee))return!0x1;return _0x81790e['checkChild'](_0x3e6aee['parent'],'codeBlock');}(_0x1d16fe,_0x1b8398['schema'])):Array['from'](_0x33c6d4['getSelectedBlocks']())['filter'](_0x1ab198=>co(_0x1ab198));const _0x32fe65=to(_0x3b9fc7,_0x1b8398);_0x1b8398['change'](()=>{for(const _0x3e4d05 of _0x32fe65)_0x5d8884['markBlockFormat'](_0x3e4d05,{'commandName':'codeBlock','commandParams':[{..._0x1cef87,'forceValue':_0x4bac5d}],'formatGroupId':'blockName'});});}),(_0x5d8884['descriptionFactory']['registerElementLabel']('codeBlock',_0x235c96=>o(_0x357b98,'ELEMENT_CODE_BLOCK',_0x235c96)),_0x5d8884['descriptionFactory']['registerDescriptionCallback'](_0xabd429=>{if('formatBlock'!=_0xabd429['type'])return;const _0xe5292a=_0x357b98['t'],{data:_0x406513}=_0xabd429;if(!_0x406513||'codeBlock'!=_0x406513['commandName'])return;const _0x38180c=_0x406513['commandParams'][0x0]['language'],_0x13ef81=_0xe5292a(_0x3d60d4['find'](_0x13de3b=>_0x13de3b['language']===_0x38180c)['label'])['toLowerCase']();return _0x406513['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x357b98,'*Set\x20format:*\x20%0',o(_0x357b98,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x13ef81+')')}:{'type':'format','content':o(_0x357b98,'*Remove\x20format:*\x20%0',o(_0x357b98,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1637dd){return'codeBlock'==_0x1637dd['name'];}class z extends _0x5c469f{['afterInit'](){const _0x229b43=this['editor'];if(!_0x229b43['plugins']['has']('CommentsEditing'))return;_0x229b43['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x5c469f{static get['requires'](){return[_0x208762];}['init'](){const _0x56b838=this['editor'],_0x3a846e=_0x56b838['plugins']['get']('TrackChangesEditing');_0x3a846e['enableCommand']('delete');const _0x25d6df=_0x56b838['commands']['get']('deleteForward');_0x3a846e['enableCommand']('deleteForward',(_0x4c64af,_0x10d66c={})=>{const _0x2de65f=_0x56b838['model']['createSelection'](_0x56b838['model']['document']['selection']);_0x2de65f['isCollapsed']&&_0x56b838['model']['modifySelection'](_0x2de65f,{'direction':'forward','unit':_0x10d66c['unit']});const _0x1dc8ae=_0x2de65f['getFirstRange'](),_0x405d60=_0x167977['fromRange'](_0x1dc8ae);let _0x593e58;_0x4c64af(_0x10d66c),_0x593e58='$graveyard'==_0x405d60['root']['rootName']?_0x56b838['model']['createRange'](_0x1dc8ae['start']):_0x56b838['model']['createRange'](_0x405d60['start'],_0x405d60['end']),_0x405d60['detach'](),_0x56b838['model']['enqueueChange'](_0x25d6df['buffer']['batch'],_0x4344f2=>{_0x25d6df['buffer']['lock'](),_0x4344f2['setSelection'](_0x4344f2['createRange'](_0x593e58['end'])),_0x25d6df['buffer']['unlock']();});});}}class W extends _0x5c469f{['afterInit'](){const _0x4ef17d=this['editor'];if(!_0x4ef17d['plugins']['has']('ListEditing'))return;const _0x3304e6=_0x4ef17d['locale'],_0x1b0bd8=_0x4ef17d['plugins']['get']('TrackChangesEditing'),_0x4d6846=_0x4ef17d['plugins']['has']('TodoListEditing'),_0x426872=!!_0x4ef17d['config']['get']('list.multiBlock');function _0x3432c4(_0x2ff59d){return{'type':'format','content':''+o(_0x3304e6,'*Set\x20format:*\x20%0',_0x2ff59d)};}function _0x57fbc6(_0x29bff5){return{'type':'format','content':''+o(_0x3304e6,'*Remove\x20format:*\x20%0',_0x29bff5)};}_0x1b0bd8['enableDefaultAttributesIntegration']('numberedList'),_0x1b0bd8['enableDefaultAttributesIntegration']('bulletedList'),_0x1b0bd8['enableDefaultAttributesIntegration']('customNumberedList'),_0x1b0bd8['enableDefaultAttributesIntegration']('customBulletedList'),_0x1b0bd8['enableDefaultAttributesIntegration']('indentList'),_0x1b0bd8['enableDefaultAttributesIntegration']('outdentList'),_0x1b0bd8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1b0bd8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x426872&&(_0x1b0bd8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1b0bd8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4d6846&&(_0x1b0bd8['enableDefaultAttributesIntegration']('todoList'),_0x1b0bd8['enableDefaultAttributesIntegration']('checkTodoList'),_0x1b0bd8['descriptionFactory']['registerDescriptionCallback'](_0x192f3f=>{const {data:_0x5e5d27}=_0x192f3f;if(_0x5e5d27&&'todoListChecked'==_0x5e5d27['key'])return{'type':'format','content':_0x5e5d27['newValue']?o(_0x3304e6,'*Check\x20item*'):o(_0x3304e6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4c9c46=>{if(_0x4c9c46['batch']['isUndo'])return!0x1;let _0x450791=!0x1;const _0x2ebbc2=_0x1b0bd8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x351081=>'todoListChecked'===_0x1b0bd8['_getAttributeKey'](_0x351081));for(const _0x54a0b2 of _0x2ebbc2){'todo'!=_0x54a0b2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1b0bd8['_findSuggestions'](_0x54a0b2['getFirstRange'](),'attribute')['find'](_0x17c823=>'listType'===_0x1b0bd8['_getAttributeKey'](_0x17c823['suggestion']))||(_0x4c9c46['removeMarker'](_0x54a0b2['getFirstMarker']()),_0x450791=!0x0));}return _0x450791;})),_0x1b0bd8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3304e6,'FORMAT_INDENT'));const _0x5b9271={'type':'format','content':''};_0x1b0bd8['descriptionFactory']['registerDescriptionCallback'](_0x246acb=>{const {data:_0x2ee74a}=_0x246acb;if(!_0x2ee74a||'listType'!=_0x2ee74a['key'])return;let _0x5a06d1=_0x246acb['head'];for(;_0x5a06d1;){if(_0x5a06d1['data']&&(('listStyle'==_0x5a06d1['data']['key']||'listMarkerStyle'==_0x5a06d1['data']['key'])&&(_0x5a06d1['data']['newValue']&&'default'!=_0x5a06d1['data']['newValue']||'default'!=_0x5a06d1['data']['oldValue']&&!_0x2ee74a['newValue'])||!_0x426872&&_0x5a06d1['data']['key']==m))return _0x5b9271;_0x5a06d1=_0x5a06d1['next'];}if(null==_0x2ee74a['newValue'])switch(_0x2ee74a['oldValue']){case'bulleted':return _0x57fbc6(o(_0x3304e6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x57fbc6(o(_0x3304e6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x57fbc6(o(_0x3304e6,'ELEMENT_TODO_LIST'));}switch(_0x2ee74a['newValue']){case'bulleted':return _0x3432c4(o(_0x3304e6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3432c4(o(_0x3304e6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3432c4(o(_0x3304e6,'ELEMENT_TODO_LIST'));}}),_0x1b0bd8['descriptionFactory']['registerDescriptionCallback'](_0x41a0a3=>{const {data:_0x53d89a}=_0x41a0a3;if(_0x53d89a&&'listIndent'==_0x53d89a['key'])return null==_0x53d89a['newValue']||null==_0x53d89a['oldValue']&&0x0==_0x53d89a['newValue']?_0x5b9271:void 0x0;}),_0x1b0bd8['descriptionFactory']['registerDescriptionCallback'](_0x57081b=>{if('attribute'!=_0x57081b['type'])return;const {data:_0x4b1dcb}=_0x57081b;if(!_0x4b1dcb||'listItemId'!=_0x4b1dcb['key'])return;const _0xb0eb1c=Te(_0x57081b);return'newValue'==_0xb0eb1c?{'type':'format','content':o(_0x3304e6,'*Merge:*\x20list\x20item')}:'oldValue'==_0xb0eb1c?{'type':'format','content':o(_0x3304e6,'*Split:*\x20list\x20item')}:_0x5b9271;}),_0x4ef17d['model']['document']['registerPostFixer'](_0x80684e=>this['listItemIdFixer'](_0x80684e)),_0x4ef17d['model']['document']['registerPostFixer'](_0xe87224=>this['noTrackChangesFixer'](_0xe87224)),_0x4ef17d['model']['document']['on']('change:data',(_0x678999,_0x263c94)=>{if(_0x263c94['isUndo']||!_0x263c94['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x26999a){if(_0x26999a['batch']['isUndo']||!_0x26999a['batch']['isLocal'])return!0x1;let _0x954d88=!0x1;const _0x1900c9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5bdfda=>_0x5bdfda['data']&&'listItemId'==_0x5bdfda['data']['key'])['filter'](_0x9380b6=>_0x9380b6['data']['newValue']&&_0x9380b6['data']['oldValue']);for(const _0x26152f of _0x1900c9)Te(_0x26152f)||(_0x26999a['removeMarker'](_0x26152f['getFirstMarker']()),_0x954d88=!0x0);return _0x954d88;}['noTrackChangesFixer'](_0x565fc3){if(_0x565fc3['batch']['isUndo']||!_0x565fc3['batch']['isLocal'])return!0x1;const _0x29bc4f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x29bc4f['trackChangesCommand']['value'])return!0x1;let _0x426a69=!0x1;const _0x1a57b6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2020d1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2fba5a=>'attribute'==_0x2fba5a['type'])['filter'](_0x40a2dd=>_0x1a57b6['includes'](_0x40a2dd['attributeKey']));if(0x0==_0x2020d1['length'])return _0x426a69;for(const _0x42b63c of _0x2020d1){const _0x3edbeb=_0x29bc4f['_findSuggestions'](_0x42b63c['range'],'attribute')['filter'](_0x55b8ca=>!_0x55b8ca['meta']['isNextTo'])['map'](_0xddad5e=>_0xddad5e['suggestion'])['filter'](_0x157e0e=>{const _0x15b2b0=_0x29bc4f['_getAttributeKey'](_0x157e0e);return _0x1a57b6['includes'](_0x15b2b0);});if(_0x3edbeb['length']){for(const _0x5727c4 of _0x3edbeb)_0x565fc3['removeMarker'](_0x5727c4['getFirstMarker']());_0x426a69=!0x0;}}return _0x426a69;}['assureChains'](){const _0x9959bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19f50a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3160cc;const _0x468b22=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1c3a48=>{if(_0x1c3a48['data']['oldRange']||!_0x1c3a48['data']['newRange'])return null;if(!_0x1c3a48['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x289153}=_0x9959bd['_splitMarkerName'](_0x1c3a48['name']);if(!_0x9959bd['hasSuggestion'](_0x289153))return null;const _0x4da57b=_0x9959bd['getSuggestion'](_0x289153);return _0x19f50a['includes'](_0x4da57b['data']['key']);})['map'](_0x4de746=>{const {id:_0x9c836e}=_0x9959bd['_splitMarkerName'](_0x4de746['name']),_0xbcbef4=_0x9959bd['getSuggestion'](_0x9c836e);return _0x3160cc=_0xbcbef4['attributes']['groupId'],_0xbcbef4['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x468b22['size'])return;const _0xbfff50=_0x9959bd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x96139b=>'attribute'==_0x96139b['type']&&_0x96139b['data']&&_0x19f50a['includes'](_0x96139b['data']['key'])&&_0x96139b['attributes']['groupId']!=_0x3160cc)['map'](_0x2eaad7=>({'listItem':_0x2eaad7['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2eaad7['attributes']['groupId']})),_0x8be956=new Set();for(const {groupId:_0xc2aa70,listItem:_0x8ad481}of _0xbfff50)_0x468b22['has'](_0x8ad481)&&_0x8be956['add'](_0xc2aa70);for(const _0x1b6e65 of _0x9959bd['getSuggestions']())_0x8be956['has'](_0x1b6e65['attributes']['groupId'])&&_0x1b6e65['setAttribute']('groupId',_0x3160cc);}['_supportLegacySuggestions'](){const _0x368770=this['editor'],_0x3e7b70=_0x368770['locale'],_0x705230=_0x368770['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x705230['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2bd44a,_0x40e1be){const _0x396ebe=[];for(let _0x36b417 of _0x2bd44a)_0x36b417['start']['nodeAfter']===_0x36b417['end']['parent']&&(_0x36b417=_0x368770['model']['createRange'](_0x368770['model']['createPositionAt'](_0x36b417['start']['nodeAfter'],0x0))),_0x396ebe['push'](_0x36b417);_0x368770['model']['change'](_0x2280f6=>{const _0x46a25c=_0x368770['model']['document']['selection'],_0x47ac75=Array['from'](_0x46a25c['getRanges']())['map'](_0x55edda=>_0x167977['fromRange'](_0x55edda));_0x2280f6['setSelection'](_0x396ebe),_0x368770['commands']['get'](_0x40e1be['commandName'])['refresh'](),_0x40e1be['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x368770['execute'](_0x40e1be['commandName'],..._0x40e1be['commandParams']),_0x2280f6['setSelection'](_0x47ac75);for(const _0x1512c8 of _0x47ac75)_0x1512c8['detach']();});}),_0x705230['descriptionFactory']['registerElementLabel'](function(_0x3fc313){const _0x105022=!_0x368770['model']['schema']['isObject'](_0x3fc313),_0x31864a=_0x3fc313['previousSibling'],_0x5ca841=_0x3fc313['nextSibling'],_0x5e43fd=_0x3fc313['getAttribute']('listItemId'),_0xbbf2eb=!_0x31864a||_0x31864a['getAttribute']('listItemId')!==_0x5e43fd,_0x2ab7f3=!_0x5ca841||_0x5ca841['getAttribute']('listItemId')!==_0x5e43fd;return _0x105022&&Boolean(_0x5e43fd)&&_0xbbf2eb&&_0x2ab7f3;},_0x3969a4=>o(_0x3e7b70,'ELEMENT_LIST_ITEM',_0x3969a4));}['_registerLegacyDescription'](){const _0x2c465a=this['editor'],_0x5521b3=_0x2c465a['locale'];function _0x5bbfcf(_0x22ff86){const _0x43b677=_0x2c465a['commands']['get']('bulletedList')['value'],_0x5cc927=_0x2c465a['commands']['get']('numberedList')['value'];return'numberedList'===_0x22ff86?_0x43b677:_0x5cc927;}_0x2c465a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2d4afe){if('formatBlock'!=_0x2d4afe['type'])return;const {data:_0x7d45c8}=_0x2d4afe;if(!_0x7d45c8)return;let _0x46ca12,_0x2d254c,_0x41c6fd,_0x417439;switch(_0x7d45c8['commandName']){case'bulletedList':_0x41c6fd=_0x7d45c8['commandParams'][0x0]['forceValue'],_0x417439=_0x5bbfcf(_0x7d45c8['commandName']),_0x46ca12=_0x41c6fd?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x417439&&_0x2c465a['config']['get']('list.multiBlock')||(_0x46ca12='*Change\x20to:*\x20%0'),_0x2d254c={'type':'format','content':o(_0x5521b3,_0x46ca12,o(_0x5521b3,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x41c6fd=_0x7d45c8['commandParams'][0x0]['forceValue'],_0x417439=_0x5bbfcf(_0x7d45c8['commandName']),_0x46ca12=_0x41c6fd?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x417439&&_0x2c465a['config']['get']('list.multiBlock')||(_0x46ca12='*Change\x20to:*\x20%0'),_0x2d254c={'type':'format','content':o(_0x5521b3,_0x46ca12,o(_0x5521b3,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x46ca12='*Indent:*\x20%0',_0x2d254c={'type':'format','content':o(_0x5521b3,_0x46ca12,o(_0x5521b3,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x46ca12=function(_0x5a8f70){const _0x194e88=_0x5a8f70['getFirstRange']();let _0x3822c8=_0x194e88['start']['nodeAfter'];for(;_0x3822c8&&_0x194e88['containsItem'](_0x3822c8);){if(_0x3822c8['getAttribute']('listIndent')>0x0)return!0x1;_0x3822c8=_0x3822c8['nextSibling'];}return!0x0;}(_0x2d4afe)?o(_0x5521b3,'*Format:*\x20remove\x20from\x20%0',o(_0x5521b3,function(_0x340016){return'ELEMENT_'+_0x340016['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2d4afe))):o(_0x5521b3,'*Outdent:*\x20%0',o(_0x5521b3,'ELEMENT_LIST_ITEM')),_0x2d254c={'type':'format','content':_0x46ca12};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x7d45c8['multipleBlocks']&&(_0x46ca12='*Merge:*\x20%0',_0x2d254c={'type':'deletion','content':o(_0x5521b3,_0x46ca12,o(_0x5521b3,'ELEMENT_LIST_ITEM'))});}return _0x2d254c;});}}function Te(_0x5a38e3){let _0x38a5a2=_0x5a38e3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x38a5a2;){const _0x2f4ac8=_0x38a5a2['getAttribute']('listItemId');if(!_0x2f4ac8)return!0x1;if(_0x2f4ac8==_0x5a38e3['data']['newValue'])return'newValue';if(_0x2f4ac8==_0x5a38e3['data']['oldValue'])return'oldValue';_0x38a5a2=_0x38a5a2['previousSibling'];}return!0x1;}class H extends _0x5c469f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xcad536=this['editor']['config']['get']('list.properties'),_0x99ba9a=this['editor']['plugins']['get']('TrackChangesEditing');_0xcad536['styles']&&_0x99ba9a['enableDefaultAttributesIntegration']('listStyle'),_0xcad536['reversed']&&_0x99ba9a['enableDefaultAttributesIntegration']('listReversed'),_0xcad536['startIndex']&&_0x99ba9a['enableDefaultAttributesIntegration']('listStart');const _0x48ea1b={'type':'format','content':''};_0x99ba9a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4d8ee9=this['editor']['locale'];_0x99ba9a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4d8ee9,'FORMAT_LIST_REVERSED')),_0x99ba9a['descriptionFactory']['registerDescriptionCallback'](_0x51175f=>{const {data:_0x4cb4ce}=_0x51175f;if(_0x4cb4ce&&'listReversed'==_0x4cb4ce['key'])return null==_0x4cb4ce['newValue']||0x0==_0x4cb4ce['newValue']&&null==_0x4cb4ce['oldValue']?_0x48ea1b:void 0x0;}),_0x99ba9a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4d8ee9,'FORMAT_LIST_START')),_0x99ba9a['descriptionFactory']['registerDescriptionCallback'](_0x4059f6=>{const {data:_0xd943dd}=_0x4059f6;if(_0xd943dd&&'listStart'==_0xd943dd['key'])return null==_0xd943dd['newValue']||0x1==_0xd943dd['newValue']&&null==_0xd943dd['oldValue']?_0x48ea1b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1b26a5=>{if(_0x1b26a5['batch']['isUndo'])return!0x1;let _0xe843b8=!0x1;const _0x3fc102=_0x99ba9a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x245272=>{const _0x5977f2=_0x99ba9a['_getAttributeKey'](_0x245272);return'listStart'==_0x5977f2||'listReversed'==_0x5977f2;});for(const _0x4d3542 of _0x3fc102){const _0x27e6c6=_0x4d3542['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x27e6c6||'customNumbered'==_0x27e6c6)continue;_0x99ba9a['_findSuggestions'](_0x4d3542['getFirstRange'](),'attribute')['find'](_0x1ef78e=>'listType'==_0x99ba9a['_getAttributeKey'](_0x1ef78e['suggestion']))||(_0x1b26a5['removeMarker'](_0x4d3542['getFirstMarker']()),_0xe843b8=!0x0);}return _0xe843b8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5315a7){const _0x7b75a4=this['editor']['locale'],{data:_0x317c1f}=_0x5315a7,_0x17f6f9={'type':'format','content':''};if(!_0x317c1f||'listStyle'!=_0x317c1f['key'])return;if(!_0x317c1f['oldValue'])return'default'==_0x317c1f['newValue']?_0x17f6f9:{'type':'format','content':''+o(_0x7b75a4,'*Set\x20format:*\x20%0',o(_0x7b75a4,this['_getTranslationKeyForListStyle'](_0x317c1f['newValue'])))};if(!_0x317c1f['newValue']){if('default'==_0x317c1f['oldValue'])return _0x17f6f9;let _0x51dd15=_0x5315a7['head'];for(;_0x51dd15;){if(_0x51dd15['data']&&'listType'==_0x51dd15['data']['key']&&_0x51dd15['data']['newValue'])return _0x17f6f9;_0x51dd15=_0x51dd15['next'];}return{'type':'format','content':''+o(_0x7b75a4,'*Remove\x20format:*\x20%0',o(_0x7b75a4,this['_getTranslationKeyForListStyle'](_0x317c1f['oldValue'])))};}if('default'!=_0x317c1f['newValue'])return{'type':'format','content':''+o(_0x7b75a4,'*Set\x20format:*\x20%0',o(_0x7b75a4,this['_getTranslationKeyForListStyle'](_0x317c1f['newValue'])))};let _0x41fc77=_0x5315a7['head'];for(;_0x41fc77;){if(_0x41fc77['data']&&'listType'==_0x41fc77['data']['key']&&_0x41fc77['data']['newValue']&&_0x41fc77['data']['oldValue'])return _0x17f6f9;_0x41fc77=_0x41fc77['next'];}return{'type':'format','content':o(_0x7b75a4,'*Set\x20format:*\x20%0',o(_0x7b75a4,'ELEMENT_'+_0x5315a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x401a0d=this['editor'],_0x50a90d=_0x401a0d['locale'];_0x401a0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x115abe=>{if('formatBlock'!=_0x115abe['type'])return;const {data:_0x73ec02}=_0x115abe;if(!_0x73ec02)return;let _0x57a9d8,_0x1090b0;switch(_0x73ec02['commandName']){case'listStyle':_0x57a9d8='*Change\x20to:*\x20%0',_0x1090b0={'type':'format','content':o(_0x50a90d,_0x57a9d8,o(_0x50a90d,this['_getTranslationKeyForListStyle'](_0x73ec02['commandParams'][0x0]['type'])))};break;case'listReversed':_0x57a9d8=_0x73ec02['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1090b0={'type':'format','content':o(_0x50a90d,_0x57a9d8)};break;case'listStart':_0x57a9d8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1090b0={'type':'format','content':o(_0x50a90d,_0x57a9d8,_0x73ec02['commandParams'][0x0]['startIndex'])};}return _0x1090b0;});}['_getTranslationKeyForListStyle'](_0x469f51){return'ELEMENT_'+function(_0x5b7c7e){if(ye['includes'](_0x5b7c7e))return'bulleted';if(Se['includes'](_0x5b7c7e))return'numbered';return null;}(_0x469f51)['toUpperCase']()+'_LIST_'+_0x469f51['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x5c469f{['afterInit'](){const _0x5b7109=this['editor'];_0x5b7109['commands']['get']('emoji')&&_0x5b7109['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x5c469f{static get['requires'](){return[_0x560292];}['init'](){const _0x194c90=this['editor'],_0x3a04f5=_0x194c90['plugins']['get']('TrackChangesEditing'),_0x8986d=_0x194c90['commands']['get']('enter');_0x3a04f5['enableCommand']('enter',()=>{_0x194c90['model']['change'](_0x5d1b79=>{const _0xdc7d18=_0x194c90['model']['document']['selection'],_0x2718e5=_0xdc7d18['getFirstPosition'](),_0x31d71e=_0x167977['fromRange'](_0xdc7d18['getFirstRange']());if(_0x8986d['enterBlock'](_0x5d1b79)){const _0x3238ea=_0x194c90['model']['createPositionAt'](_0x2718e5['parent']['nextSibling'],0x0),_0x2280e4=_0x5d1b79['createRange'](_0x2718e5,_0x3238ea);_0x3a04f5['markInsertion'](_0x2280e4);}else _0x5d1b79['setSelection'](_0x5d1b79['createRange'](_0x31d71e['end']));_0x31d71e['detach'](),_0x8986d['fire']('afterExecute',{'writer':_0x5d1b79});});});}}class Y extends _0x5c469f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x472731=this['editor']['plugins']['get']('TrackChangesEditing');_0x472731['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x472731['enableCommand']('findNext'),_0x472731['enableCommand']('findPrevious'),_0x472731['enableCommand']('replace'),_0x472731['enableCommand']('replaceAll');}['handleFindCommand'](_0x521dba,_0x34f9eb,_0x1ac741={}){const _0x4a3d78=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x521dba(_0x49d7f1=>{let _0x37bbaf=('string'==typeof _0x34f9eb?_0x4a3d78['findByTextCallback'](_0x34f9eb,_0x1ac741):_0x34f9eb)(_0x49d7f1);Array['isArray'](_0x37bbaf)&&(_0x37bbaf={'results':_0x37bbaf,'searchText':'string'==typeof _0x34f9eb?_0x34f9eb:''});const _0x3de599=_0x37bbaf['results']['filter'](_0x5379ba=>!0x1===this['_isInDeletionRange'](_0x5379ba,_0x49d7f1['item']));return{..._0x37bbaf,'results':_0x3de599};},_0x1ac741);}['_isInDeletionRange'](_0x24d46e,_0x51379c){const _0x10aafc=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x51379c,_0x24d46e['start']),this['editor']['model']['createPositionAt'](_0x51379c,_0x24d46e['end']));for(const _0x249e64 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x10aafc['getIntersection'](_0x249e64['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x5c469f{['afterInit'](){const _0x34644e=this['editor']['locale'],_0x234fb5=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xba34b0,commandName:_0x205fed}of eo)this['editor']['plugins']['has'](_0xba34b0)&&_0x234fb5['enableDefaultAttributesIntegration'](_0x205fed);_0x234fb5['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x34644e,'FORMAT_FONT_SIZE')),_0x234fb5['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x34644e,'FORMAT_FONT_FAMILY')),_0x234fb5['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x34644e,'FORMAT_FONT_COLOR')),_0x234fb5['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x34644e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x166df2=this['editor'],_0x1b2a4e=_0x166df2['locale'];_0x166df2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fd660=>{const _0x1551aa=_0x1b2a4e['t'];if('formatInline'!=_0x2fd660['type'])return;const {data:_0x5580f0}=_0x2fd660;if(null!=_0x5580f0){if('fontSize'==_0x5580f0['commandName']){const _0xb642c5=_0x5580f0['commandParams'][0x0]['value'];if(_0xb642c5){const _0x35d82e=_0x1551aa(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xfe0e80=>_0xfe0e80['model']==_0xb642c5)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1b2a4e,'*Set\x20font\x20size:*\x20%0',_0x35d82e)};}return{'type':'format','content':o(_0x1b2a4e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5580f0['commandName']){const _0x7abe51=_0x5580f0['commandParams'][0x0]['value'];return _0x7abe51?{'type':'format','content':o(_0x1b2a4e,'*Set\x20font\x20family:*\x20%0',_0x7abe51)}:{'type':'format','content':o(_0x1b2a4e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5580f0['commandName']){const _0x5cf030=_0x5580f0['commandParams'][0x0]['value'];if(_0x5cf030){const _0x16961f=_0x1cd192(this['editor']['config']['get']('fontColor.colors'))['find'](_0x43dde4=>_0x43dde4['model']==_0x5cf030);let _0xee8ab9=_0x5cf030,_0x12fb0a='';return _0x16961f&&(_0xee8ab9=_0x16961f['label'],_0x12fb0a=_0x1551aa(_0xee8ab9)['toLowerCase']()),{'type':'format','content':o(_0x1b2a4e,'*Set\x20font\x20color:*\x20%0',_0x12fb0a)['trim'](),'color':{'value':_0x5cf030,'title':_0x12fb0a||_0xee8ab9}};}return{'type':'format','content':o(_0x1b2a4e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5580f0['commandName']){const _0x5f0b1a=_0x5580f0['commandParams'][0x0]['value'];if(_0x5f0b1a){const _0x1ed53a=_0x1cd192(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4dced2=>_0x4dced2['model']==_0x5f0b1a);let _0x295d16=_0x5f0b1a,_0x5e4f8c='';return _0x1ed53a&&(_0x295d16=_0x1ed53a['label'],_0x5e4f8c=_0x1551aa(_0x295d16)['toLowerCase']()),{'type':'format','content':o(_0x1b2a4e,'*Set\x20font\x20background\x20color:*\x20%0',_0x5e4f8c)['trim'](),'color':{'value':_0x5f0b1a,'title':_0x5e4f8c||_0x295d16}};}return{'type':'format','content':o(_0x1b2a4e,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x5c469f{['afterInit'](){const {plugins:_0x3d5b30}=this['editor'];_0x3d5b30['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3d5b30['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x386b00,plugins:_0x3b6b7b,commands:_0x5d803c}=this['editor'],_0x228394=_0x3b6b7b['get']('TrackChangesEditing');_0x5d803c['get']('footnotesStyle')&&_0x228394['enableDefaultAttributesIntegration']('footnotesStyle'),_0x5d803c['get']('footnotesStart')&&_0x228394['enableDefaultAttributesIntegration']('footnotesStart'),_0x228394['registerBlockAttribute']('footnotesListStyle'),_0x228394['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x386b00,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x228394['registerBlockAttribute']('footnotesListStart'),_0x228394['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x386b00,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x125efe=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x704237,commands:_0x26936f}=this['editor'];_0x26936f['get']('insertFootnote')&&_0x125efe['enableCommand']('insertFootnote'),_0x125efe['descriptionFactory']['registerElementLabel']('footnoteRef',_0x5390bd=>o(_0x704237,'ELEMENT_FOOTNOTE_REF',_0x5390bd)),_0x125efe['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0xce9e80=>o(_0x704237,'ELEMENT_FOOTNOTE_DEFINITION',_0xce9e80)),_0x125efe['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x37ce40=>o(_0x704237,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x37ce40));}}class nt extends _0x5c469f{['afterInit'](){const _0x30deff=this['editor'],_0x46e1eb=_0x30deff['plugins']['get']('TrackChangesEditing'),_0x4e6276=_0x30deff['commands']['get']('copyFormat'),_0x3c8442=_0x30deff['commands']['get']('pasteFormat');_0x4e6276&&_0x3c8442&&(_0x46e1eb['enableDefaultAttributesIntegration']('pasteFormat'),_0x46e1eb['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x219b6d=this['editor'],_0x429327=_0x219b6d['locale'];_0x219b6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f4bbe=>{if('formatBlock'!=_0x4f4bbe['type']&&'formatInline'!=_0x4f4bbe['type'])return;const {data:_0x4eb2bd}=_0x4f4bbe;if(_0x4eb2bd&&'pasteFormat'===_0x4eb2bd['commandName']){const _0x3e8cb7=[],_0x1171bb=_0x4eb2bd['commandParams'][0x0];for(const [_0x5863f8,_0x599adf]of Object['entries'](_0x1171bb))_0x3e8cb7['push'](ro(_0x219b6d,_0x5863f8,_0x599adf));return _0x3e8cb7['length']?{'type':'format','content':o(_0x429327,'*Set\x20format\x20to:*\x20%0',_0x3e8cb7['join'](',\x20'))}:{'type':'format','content':o(_0x429327,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x2185f9,_0x7754ab,_0x5e6b0a){const _0x4351f1=_0x2185f9['locale']['t'],_0x11dc26=_0x7754ab['split'](/(?=[A-Z])/)['join']('\x20'),_0x902ea5=_0x4351f1(_0x11dc26['charAt'](0x0)['toUpperCase']()+_0x11dc26['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5e6b0a)return _0x902ea5;if('fontColor'===_0x7754ab||'fontBackgroundColor'===_0x7754ab){const _0x58e779=_0x1cd192(_0x2185f9['config']['get']('fontColor.colors'))['find'](_0x1ae79b=>_0x1ae79b['model']==_0x5e6b0a);return _0x902ea5+'\x20('+(_0x58e779?_0x4351f1(_0x58e779['label'])['toLowerCase']():_0x5e6b0a)+')';}if('fontSize'===_0x7754ab&&isNaN(parseFloat(_0x5e6b0a))){const _0x1fe9bf=_0x2185f9['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2185f9['config']['get']('fontSize.options'))['find'](_0x17403d=>_0x17403d['model']==_0x5e6b0a);return _0x902ea5+'\x20('+(_0x1fe9bf?_0x4351f1(_0x1fe9bf['title'])['toLowerCase']():_0x5e6b0a)+')';}return _0x902ea5+'\x20('+_0x5e6b0a+')';}class it extends _0x5c469f{['_headingOptions'];['afterInit'](){const _0x1eb8b6=this['editor'];if(!_0x1eb8b6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1eb8b6['config']['get']('heading.options');const _0x30b82c=_0x1eb8b6['locale'],_0x474cfe=_0x1eb8b6['plugins']['get']('TrackChangesEditing');_0x474cfe['enableDefaultAttributesIntegration']('heading');for(const _0x2671a1 of this['_headingOptions'])'paragraph'!=_0x2671a1['model']&&_0x474cfe['descriptionFactory']['registerElementLabel'](_0x2671a1['model'],_0x2d283e=>{const _0x18ee1f=this['_getHeadingLevel'](_0x2671a1['model']);return null!==_0x18ee1f?_0x414ec7(_0x2d283e,_0x18ee1f):_0x3599ee(_0x2d283e,_0x2671a1['title']);});function _0x414ec7(_0x9f9b24,_0x28535e){return o(_0x30b82c,'ELEMENT_HEADING',[_0x9f9b24,_0x28535e]);}function _0x3599ee(_0x19c846,_0x2446a4){return o(_0x30b82c,'ELEMENT_HEADING_CUSTOM',[_0x19c846,_0x2446a4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bd9f9=this['editor'],_0x5f4895=_0x3bd9f9['locale'];function _0x1ceed2(_0x29459d,_0x23e521){return o(_0x5f4895,'ELEMENT_HEADING_CUSTOM',[_0x29459d,_0x23e521]);}_0x3bd9f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x485456=>{if('formatBlock'!=_0x485456['type'])return;const {data:_0x4dfb29}=_0x485456;if(_0x4dfb29&&'heading'==_0x4dfb29['commandName']){const _0x6f7ea=_0x4dfb29['commandParams'][0x0]['value'],_0x1adab3=this['_getHeadingLevel'](_0x6f7ea);if(null!==_0x1adab3)return{'type':'format','content':o(_0x5f4895,'*Change\x20to:*\x20%0',(_0x2336ee=0x1,_0x2fbc6d=_0x1adab3,o(_0x5f4895,'ELEMENT_HEADING',[_0x2336ee,_0x2fbc6d])))};const _0x376918=this['_headingOptions']['find'](_0x5a5357=>_0x5a5357['model']===_0x6f7ea)['title'];return{'type':'format','content':o(_0x5f4895,'*Change\x20to:*\x20%0',_0x1ceed2(0x1,_0x376918))};}var _0x2336ee,_0x2fbc6d;});}['_getHeadingLevel'](_0x57b046){const _0x487e6e=_0x57b046['match'](/^heading(\d+)/);if(_0x487e6e)return _0x487e6e[0x1];const _0x104668=this['_headingOptions']?.['find'](_0xdf7507=>_0xdf7507['model']==_0x57b046);if(_0x104668&&_0x104668['view']){const _0x4383e4=_0x104668['view'],_0x197421=(_0x4383e4['name']??_0x4383e4)['match'](/^h(\d+)/);if(_0x197421)return _0x197421[0x1];}return null;}}class et extends _0x5c469f{['afterInit'](){const _0x1fe387=this['editor'];if(!_0x1fe387['plugins']['has']('HighlightEditing'))return;const _0xdfb6b5=_0x1fe387['plugins']['get']('TrackChangesEditing'),_0x2bd158=_0x1fe387['locale'];_0xdfb6b5['enableDefaultAttributesIntegration']('highlight'),_0xdfb6b5['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2bd158,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5734cc=this['editor'],_0x26382d=_0x5734cc['locale'];_0x5734cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dff1a=>{if('formatInline'!=_0x4dff1a['type'])return;const {data:_0x4cc959}=_0x4dff1a;if(_0x4cc959&&'highlight'==_0x4cc959['commandName']){const _0x8bdbe8=_0x26382d['t'],_0x101d75=_0x4cc959['commandParams'][0x0]['value'];if(_0x101d75){const _0x2de34e=_0x5734cc['config']['get']('highlight.options')['find'](_0x3f7c4f=>_0x3f7c4f['model']==_0x101d75),_0x36c754=_0x8bdbe8(_0x2de34e['title'])['toLowerCase']();return{'type':'format','content':o(_0x26382d,'*Set\x20highlight:*\x20%0',_0x36c754),'color':{'value':_0x2de34e['color'],'title':_0x2de34e['title']}};}return{'type':'format','content':o(_0x26382d,'*Remove\x20highlight*',o(_0x26382d,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x5c469f{['afterInit'](){const _0x265b7c=this['editor'];if(!_0x265b7c['plugins']['has']('HorizontalLineEditing'))return;_0x265b7c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3df594=_0x265b7c['plugins']['get']('TrackChangesEditing'),_0x83bbf5=_0x265b7c['locale'];_0x3df594['descriptionFactory']['registerElementLabel']('horizontalLine',_0x194706=>o(_0x83bbf5,'ELEMENT_HORIZONTAL_LINE',_0x194706));}}class ot extends _0x5c469f{['afterInit'](){const _0x5c8629=this['editor'];if(!_0x5c8629['plugins']['has']('HtmlEmbed'))return;const _0x48477a=_0x5c8629['plugins']['get']('TrackChangesEditing'),_0x3422b1=_0x5c8629['locale'];_0x48477a['descriptionFactory']['registerElementLabel']('rawHtml',_0x21a86b=>o(_0x3422b1,'ELEMENT_HTML_EMBED',_0x21a86b)),_0x48477a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x48477a['descriptionFactory']['registerDescriptionCallback'](_0x377add=>{if('attribute'!=_0x377add['type'])return;const {data:_0xab36b6}=_0x377add;if(_0xab36b6&&'value'==_0xab36b6['key']&&_0x377add['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4024db=o(_0x3422b1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3422b1,'*Change\x20%0\x20content*',_0x4024db)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c0f69=this['editor'],_0x2e9097=_0x4c0f69['locale'];_0x4c0f69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bfe0a=>{if('formatBlock'!=_0x5bfe0a['type'])return;const {data:_0x11d131}=_0x5bfe0a;if(_0x11d131&&'htmlEmbed'==_0x11d131['commandName']){const _0x1360cd=o(_0x2e9097,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2e9097,'*Change\x20%0\x20content*',_0x1360cd)};}});}}class rt extends _0x5c469f{['afterInit'](){const _0x1196dc=this['editor'];if(!_0x1196dc['plugins']['has']('ImageEditing'))return;const _0x1fe4fb=_0x1196dc['plugins']['get']('TrackChangesEditing'),_0x277734=_0x1196dc['plugins']['get']('ImageUtils'),_0x5793ca=_0x1196dc['locale'];_0x1fe4fb['enableCommand']('insertImage'),_0x1fe4fb['descriptionFactory']['registerElementLabel']('imageBlock',_0x503fbc=>o(_0x5793ca,'ELEMENT_IMAGE',_0x503fbc)),_0x1fe4fb['descriptionFactory']['registerElementLabel']('imageInline',_0x518ad3=>o(_0x5793ca,'ELEMENT_INLINE_IMAGE',_0x518ad3)),_0x1fe4fb['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5793ca,'ELEMENT_CAPTION')),_0x1196dc['plugins']['has']('ImageUploadEditing')&&_0x1fe4fb['enableCommand']('uploadImage'),_0x1196dc['plugins']['has']('ImageBlockEditing')&&_0x1196dc['plugins']['has']('ImageInlineEditing')&&(_0x1fe4fb['enableCommand']('imageTypeInline',(_0x5b7f40,_0x45b4aa)=>{const _0x5633dc=_0x277734['getClosestSelectedImageElement'](_0x1196dc['model']['document']['selection']);_0x1196dc['model']['change'](()=>{_0x1fe4fb['markBlockFormat'](_0x5633dc,{'commandName':'imageTypeInline','commandParams':[_0x45b4aa]},[],'convertBlockImageToInline');});}),_0x1fe4fb['enableCommand']('imageTypeBlock',(_0x516f6c,_0x31a1cd)=>{_0x1196dc['model']['change'](_0x1d9795=>{let _0x18aa80=_0x277734['getClosestSelectedImageElement'](_0x1196dc['model']['document']['selection']),_0x4e6ae3=_0x1d9795['createRangeOn'](_0x18aa80);const _0x4adb7d=_0x461c02['fromPosition'](_0x4e6ae3['start'],'toPrevious'),_0x482167=_0x461c02['fromPosition'](_0x4e6ae3['end'],'toNext');_0x1fe4fb['forceDefaultExecution'](()=>_0x516f6c(_0x31a1cd)),_0x18aa80=_0x277734['getClosestSelectedImageElement'](_0x1196dc['model']['document']['selection']),_0x4e6ae3=_0x1d9795['createRangeOn'](_0x18aa80);const _0x410302=_0x1d9795['createRange'](_0x4adb7d,_0x482167);_0x4adb7d['detach'](),_0x482167['detach'](),_0x1fe4fb['markBlockFormat'](_0x18aa80,{'commandName':'imageTypeInline','commandParams':[_0x31a1cd]},[],'convertInlineImageToBlock'),_0x410302['start']['isBefore'](_0x4e6ae3['start'])&&_0x1fe4fb['markInsertion'](_0x1d9795['createRange'](_0x410302['start'],_0x4e6ae3['start']),'convertInlineImageToBlock'),_0x4e6ae3['end']['isBefore'](_0x410302['end'])&&_0x1fe4fb['markInsertion'](_0x1d9795['createRange'](_0x4e6ae3['end'],_0x410302['end']),'convertInlineImageToBlock');});}),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1fe4fb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4a16e0])=>{const _0x19c4dc=_0x1fe4fb['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x447f3d=_0x4a16e0['start'],_0x2a62c2=_0x4a16e0['end'];const _0x277c68=_0x1196dc['model']['schema']['getNearestSelectionRange'](_0x447f3d,'backward'),_0x8eb210=_0x1196dc['model']['schema']['getNearestSelectionRange'](_0x2a62c2,'forward');_0x277c68['isCollapsed']&&(_0x447f3d=_0x277c68['start']),_0x8eb210['isCollapsed']&&(_0x2a62c2=_0x8eb210['end']),_0x19c4dc([_0x1196dc['model']['createRange'](_0x447f3d,_0x2a62c2)]);}),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xf0529f),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xf0529f)),_0x1196dc['plugins']['has']('ImageCaptionEditing')&&(_0x1fe4fb['enableCommand']('toggleImageCaption',(_0x1a5c35,_0x35469a)=>{const _0x1ab8af=_0x1196dc['plugins']['get']('ImageCaptionUtils');let _0x347fcc=_0x277734['getClosestSelectedImageElement'](_0x1196dc['model']['document']['selection']),_0x50125c=_0x1ab8af['getCaptionFromImageModelElement'](_0x347fcc);_0x1196dc['model']['change'](()=>{if(_0x50125c)return void _0x1fe4fb['markDeletion'](_0x1196dc['model']['createRangeOn'](_0x50125c));const _0x15685d=_0x277734['isBlockImage'](_0x347fcc);_0x1a5c35(_0x35469a),_0x347fcc=_0x277734['getClosestSelectedImageElement'](_0x1196dc['model']['document']['selection']),_0x50125c=_0x1ab8af['getCaptionFromImageModelElement'](_0x347fcc),_0x1fe4fb['markInsertion'](_0x1196dc['model']['createRangeOn'](_0x50125c),_0x15685d?null:'imageCaption');});}),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xf0529f));const _0x542eb2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1176d6(_0x1f038f,_0x23ac96){const _0x447518=_0x542eb2['findIndex'](({type:_0x192a3f,subType:_0x8d25f0})=>_0x1f038f['type']==_0x192a3f&&_0x1f038f['subType']==_0x8d25f0),_0x44f234=_0x542eb2['findIndex'](({type:_0x2e30ca,subType:_0x5d4ec7})=>_0x23ac96['type']==_0x2e30ca&&_0x23ac96['subType']==_0x5d4ec7);if(_0x447518<0x0||_0x44f234<0x0)return!0x1;const _0x330c0f=_0x1f038f['getFirstRange'](),_0x31e77f=_0x23ac96['getFirstRange']();if((0x0==_0x447518||0x1==_0x447518)&&0x2==_0x44f234&&_0x330c0f['isIntersecting'](_0x31e77f))return!0x0;if(0x2==_0x447518&&0x3==_0x44f234){const _0x3b61aa=_0x1fe4fb['_findSuggestions'](_0x330c0f,'insertion')['filter'](({suggestion:_0x17890e,meta:_0x1c71fe})=>_0x1c71fe['isOwn']&&'convertInlineImageToBlock'==_0x17890e['subType']);if(_0x3b61aa['length']>0x1&&_0x31e77f['end']['isEqual'](_0x330c0f['start']))return!0x0;if(0x1==_0x3b61aa['length']&&(_0x330c0f['start']['isEqual'](_0x31e77f['end'])||_0x330c0f['end']['isEqual'](_0x31e77f['start'])))return!0x0;}if(0x3==_0x447518&&0x3==_0x44f234&&_0x330c0f['start']['isBefore'](_0x31e77f['start'])){const _0x97d4c2=_0x330c0f['end']['nodeAfter'],_0x103578=_0x31e77f['start']['nodeBefore'];return _0x277734['isBlockImage'](_0x97d4c2)&&_0x97d4c2===_0x103578;}return!0x1;}function _0xf0529f(_0x3750e5,_0x33addc){return _0x1176d6(_0x3750e5,_0x33addc)?[_0x3750e5,_0x33addc]:_0x1176d6(_0x33addc,_0x3750e5)?[_0x33addc,_0x3750e5]:null;}_0x1196dc['plugins']['has']('ImageResize')&&(_0x1fe4fb['enableDefaultAttributesIntegration']('resizeImage'),_0x1fe4fb['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5793ca,'FORMAT_IMAGE_SIZE'))),_0x1196dc['plugins']['has']('ImageTextAlternativeEditing')&&_0x1fe4fb['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1196dc['plugins']['has']('PictureEditing')&&_0x1fe4fb['descriptionFactory']['registerDescriptionCallback'](_0x5c2149=>{if('attribute'!=_0x5c2149['type'])return;const {data:_0x4042a2}=_0x5c2149;return _0x4042a2&&'sources'==_0x4042a2['key']?{'type':'format','content':''}:void 0x0;}),_0x1196dc['plugins']['has']('ImageSizeAttributes')&&_0x1fe4fb['descriptionFactory']['registerDescriptionCallback'](_0x7af52c=>{if('attribute'!=_0x7af52c['type'])return;const {data:_0x472330}=_0x7af52c;return!_0x472330||'width'!=_0x472330['key']&&'height'!=_0x472330['key']?void 0x0:{'type':'format','content':''};}),_0x1fe4fb['descriptionFactory']['registerDescriptionCallback'](_0x292736=>{if(!!_0x542eb2['find'](({type:_0x542f38,subType:_0x5451ce})=>_0x292736['type']==_0x542f38&&_0x292736['subType']==_0x5451ce))return _0x292736['previous']?{}:void 0x0;}),_0x1fe4fb['descriptionFactory']['registerDescriptionCallback'](_0x57cff2=>{if('insertion'==_0x57cff2['type']||'deletion'==_0x57cff2['type']){const _0x4ff457=_0x57cff2['getContainedElement']();if(_0x4ff457&&_0x4ff457['is']('element','caption'))return{'type':'insertion'==_0x57cff2['type']?'addObject':'removeObject','element':_0x4ff457,'quantity':0x1};}}),_0x1fe4fb['descriptionFactory']['registerDescriptionCallback'](_0x59e99c=>'formatBlock'==_0x59e99c['type']&&'convertInlineImageToBlock'==_0x59e99c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x59e99c['type']&&'convertBlockImageToInline'==_0x59e99c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1fe4fb['descriptionFactory']['registerDescriptionCallback'](_0x405ec6=>{if('attribute'!=_0x405ec6['type'])return;const {data:_0x2f0953}=_0x405ec6;if(!_0x2f0953||'alt'!=_0x2f0953['key'])return;const _0x50e9f4=_0x2f0953['newValue'];return _0x50e9f4?{'type':'format','content':o(_0x5793ca,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x50e9f4+'\x22')}:{'type':'format','content':o(_0x5793ca,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3515b7=this['editor'],_0x30827d=_0x3515b7['locale'];_0x3515b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x468db0=>{if('formatBlock'!=_0x468db0['type']&&'formatInline'!=_0x468db0['type'])return;const {data:_0x4caa8c}=_0x468db0;if(_0x4caa8c){if('imageTextAlternative'==_0x4caa8c['commandName']){const _0x4c3da7=_0x4caa8c['commandParams'][0x0]['newValue'];return _0x4c3da7?{'type':'format','content':o(_0x30827d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4c3da7+'\x22')}:{'type':'format','content':o(_0x30827d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4caa8c['commandName']){const _0x379ea7=_0x4caa8c['commandParams'][0x0]['width'];return _0x379ea7?{'type':'format','content':o(_0x30827d,'*Set\x20image\x20width:*\x20%0',_0x379ea7)}:{'type':'format','content':o(_0x30827d,'*Reset\x20image\x20width*')};}}});}}class at extends _0x5c469f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xd27d91=this['editor']['locale'],_0x446330=this['editor']['plugins']['get']('TrackChangesEditing');_0x446330['enableDefaultAttributesIntegration']('replaceImageSource'),_0x446330['descriptionFactory']['registerDescriptionCallback'](_0x21530f=>{if('attribute'!=_0x21530f['type'])return;const {data:_0x572f41}=_0x21530f;return _0x572f41&&'src'==_0x572f41['key']?_0x572f41['newValue']&&_0x572f41['oldValue']?{'type':'format','content':o(_0xd27d91,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2915bb=this['editor']['plugins']['get']('TrackChangesEditing');_0x2915bb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2915bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2915bb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2915bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b46e6=this['editor'],_0x3d291e=_0x3b46e6['locale'];_0x3b46e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x307f0f=>{if('formatBlock'!=_0x307f0f['type']&&'formatInline'!=_0x307f0f['type'])return;const {data:_0x37a9f6}=_0x307f0f;if(!_0x37a9f6||'replaceImageSource'!=_0x37a9f6['commandName'])return;return{'type':'format','content':o(_0x3d291e,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x5c469f{['afterInit'](){const _0x57d1a5=this['editor'];if(!_0x57d1a5['plugins']['has']('ImageStyleEditing'))return;const _0x4aaa9c=_0x57d1a5['plugins']['get']('TrackChangesEditing'),_0x40ebd6=_0x57d1a5['plugins']['get']('ImageUtils'),_0x233954={};_0x4aaa9c['enableCommand']('imageStyle',(_0xe6b1e9,_0x1beb0d)=>{const _0xab42bd=_0x57d1a5['plugins']['get']('Users')['me'],_0x2eb433=_0x57d1a5['commands']['get']('imageStyle');let _0x917f37=_0x40ebd6['getClosestSelectedImageElement'](_0x57d1a5['model']['document']['selection']),_0x14f9c0=_0x57d1a5['model']['createRangeOn'](_0x917f37),_0x2a8497=_0x2eb433['value'];if(_0x2a8497==_0x1beb0d['value'])return;const _0x5b0851={'commandName':'imageStyle','commandParams':[_0x1beb0d],'formatGroupId':_0xe7a85c()};_0x57d1a5['model']['change'](()=>{if(_0x4aaa9c['getSuggestions']()['filter'](_0x1a05ad=>_0x1a05ad['isInContent']&&_0xab42bd==_0x1a05ad['author']&&('formatBlock'==_0x1a05ad['type']||'formatInline'==_0x1a05ad['type'])&&('imageStylePreApply'==_0x1a05ad['subType']||'imageStylePostApply'==_0x1a05ad['subType'])&&_0x1a05ad['getFirstRange']()['isEqual'](_0x14f9c0))['forEach'](_0x356428=>_0x4aaa9c['discardSuggestion'](_0x356428['head'])),_0x917f37=_0x40ebd6['getClosestSelectedImageElement'](_0x57d1a5['model']['document']['selection']),_0x14f9c0=_0x57d1a5['model']['createRangeOn'](_0x917f37),_0x2eb433['refresh'](),_0x57d1a5['commands']['get']('imageTypeInline')['refresh'](),_0x57d1a5['commands']['get']('imageTypeBlock')['refresh'](),_0x2a8497=_0x2eb433['value'],_0x2a8497!=_0x1beb0d['value'])return _0x40ebd6['isInlineImage'](_0x917f37)&&_0x2eb433['shouldConvertImageType'](_0x1beb0d['value'],_0x917f37)?(_0xe6b1e9({..._0x1beb0d,'setImageSizes':!0x1}),_0x917f37=_0x40ebd6['getClosestSelectedImageElement'](_0x57d1a5['model']['document']['selection']),void _0x4aaa9c['markBlockFormat'](_0x917f37,{..._0x5b0851,'commandReversedParams':[{'value':_0x2a8497||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x40ebd6['isBlockImage'](_0x917f37)?_0x4aaa9c['markBlockFormat'](_0x917f37,_0x5b0851,[],'imageStylePostApply'):_0x4aaa9c['markInlineFormat'](_0x14f9c0,_0x5b0851,'imageStylePostApply'));});});for(const _0x236da9 of _0x57d1a5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x233954[_0x236da9['name']]=_0x236da9['title']['toLowerCase']();_0x4aaa9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4aaa9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4aaa9c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4aaa9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x374019])=>{_0x40ebd6['setImageNaturalSizeAttributes'](_0x374019['getContainedElement']());}),_0x4aaa9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x6c2d69,_0xbdd33e)=>{_0x4aaa9c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x6c2d69,{'commandName':_0xbdd33e['commandName'],'commandParams':_0xbdd33e['commandReversedParams']});}),_0x4aaa9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x229aa1,_0x55d7ee){if(_0x1c536c(_0x229aa1,_0x55d7ee))return[_0x229aa1,_0x55d7ee];if(_0x1c536c(_0x55d7ee,_0x229aa1))return[_0x55d7ee,_0x229aa1];return null;});const _0x3a8a2a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1c536c(_0x3846d8,_0x5608eb){const _0x22f44f=_0x3a8a2a['findIndex'](({type:_0x3893f1,subType:_0x5ea2fc})=>_0x3846d8['type']==_0x3893f1&&_0x3846d8['subType']==_0x5ea2fc),_0x24c6fb=_0x3a8a2a['findIndex'](({type:_0x5e0eb3,subType:_0x5d83a0})=>_0x5608eb['type']==_0x5e0eb3&&_0x5608eb['subType']==_0x5d83a0);if(_0x22f44f<0x0||_0x24c6fb<0x0)return!0x1;const _0x3a43b6=_0x3846d8['getFirstRange'](),_0xb4b327=_0x5608eb['getFirstRange']();if((0x0==_0x22f44f||0x1==_0x22f44f)&&0x2==_0x24c6fb&&_0x3a43b6['isIntersecting'](_0xb4b327))return!0x0;if(0x2==_0x22f44f&&0x3==_0x24c6fb){const _0x213847=_0x4aaa9c['_findSuggestions'](_0x3a43b6,'insertion')['filter'](({suggestion:_0x3d59f0,meta:_0x452124})=>_0x452124['isOwn']&&'convertInlineImageToBlock'==_0x3d59f0['subType']);if(_0x213847['length']>0x1&&_0xb4b327['end']['isEqual'](_0x3a43b6['start']))return!0x0;if(0x1==_0x213847['length']&&(_0x3a43b6['start']['isEqual'](_0xb4b327['end'])||_0x3a43b6['end']['isEqual'](_0xb4b327['start'])))return!0x0;}if(0x3==_0x22f44f&&0x3==_0x24c6fb&&_0x3a43b6['start']['isBefore'](_0xb4b327['start'])){const _0x1ec1a0=_0x3a43b6['end']['nodeAfter'],_0x5e3139=_0xb4b327['start']['nodeBefore'];return _0x40ebd6['isBlockImage'](_0x1ec1a0)&&_0x1ec1a0===_0x5e3139;}return!0x1;}_0x57d1a5['model']['document']['registerPostFixer'](()=>{let _0x425a0f=!0x1;const _0x13b05e=Array['from'](_0x57d1a5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x6328c7,data:_0x3da283}of _0x13b05e){const {group:_0xe54ccc,type:_0x519947,subType:_0x45ffc4,id:_0x19149c}=_0x4aaa9c['_splitMarkerName'](_0x6328c7);if('suggestion'==_0xe54ccc&&_0x4aaa9c['hasSuggestion'](_0x19149c)){if('formatBlock'==_0x519947&&('imageStylePreApply'==_0x45ffc4||'imageStylePostApply'==_0x45ffc4)){const _0x36e08e=_0x4aaa9c['getSuggestion'](_0x19149c);if(_0x3da283['newRange']){const _0x267c04=_0x36e08e['getFirstRange']()['getContainedElement']();if(_0x40ebd6['isBlockImage'](_0x267c04))continue;_0x4aaa9c['discardSuggestion'](_0x36e08e),_0x425a0f=!0x0;}}if('insertion'==_0x519947&&'imageCaption'==_0x45ffc4&&!_0x3da283['newRange']){const _0x272aae=_0x4aaa9c['getSuggestion'](_0x19149c);_0x272aae['next']&&_0x272aae['next']['isInContent']&&(_0x4aaa9c['discardSuggestion'](_0x272aae['next']),_0x425a0f=!0x0);}}}return _0x425a0f;}),this['_registerLegacyDescription'](_0x233954);}['_registerLegacyDescription'](_0x2e9e1a){const _0x5b40b8=this['editor'],_0x42432f=_0x5b40b8['locale'];_0x5b40b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5858c7=>{if('formatBlock'!=_0x5858c7['type']&&'formatInline'!=_0x5858c7['type'])return;const {data:_0x1b195c}=_0x5858c7;if(!_0x1b195c||'imageStyle'!=_0x1b195c['commandName'])return;const _0x74db7d=_0x1b195c['commandParams'][0x0]['value'];return _0x4863b9('side'===_0x74db7d?o(_0x42432f,'FORMAT_SIDE_IMAGE'):_0x2e9e1a[_0x74db7d]||_0x74db7d);function _0x4863b9(_0x570538){return{'type':'format','content':o(_0x42432f,'*Format:*\x20%0',_0x570538)};}});}}class ut extends _0x5c469f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x268c4f){super(_0x268c4f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x505219=this['editor'],_0x3cbc64=_0x505219['commands']['get']('importWord'),_0x37384f=_0x505219['commands']['get']('trackChanges');_0x3cbc64&&(_0x3cbc64['on']('execute',(_0x44da1a,[,_0x45e597])=>{this['_trackChangesValueDuringImport']=_0x37384f['value'],_0x45e597['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3cbc64,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3cbc64,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x37384f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x505219['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2e6334,_0x83c83f){const {suggestions:_0xdc419d}=_0x83c83f,_0x4c0327=this['editor']['commands']['get']('trackChanges'),_0x6a4489=_0x4c0327['value'];this['_trackChangesValueDuringImport']!==_0x6a4489&&(_0x4c0327['execute'](),this['_trackChangesExecuted']=!0x0),_0xdc419d&&_0xdc419d['forEach'](({id:_0x2c42e9,type:_0x462131,author:_0x26f386,created_at:_0x29f482})=>{const _0x1e2efe={'id':_0x2c42e9,'type':_0x462131,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x26f386,'createdAt':_0x29f482?new Date(_0x29f482):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1e2efe);});}}class ft extends _0x5c469f{['afterInit'](){const _0x59b980=this['editor'],_0x2be488=_0x59b980['plugins']['get']('TrackChangesEditing');if(_0x59b980['plugins']['has']('IndentEditing')&&(_0x2be488['enableCommand']('indent'),_0x2be488['enableCommand']('outdent')),_0x59b980['plugins']['has']('IndentBlock')){for(const _0x339381 of['indentBlock','outdentBlock'])_0x2be488['enableDefaultAttributesIntegration'](_0x339381);}const _0x4da12b=_0x59b980['locale'];_0x2be488['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4da12b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5195a5=this['editor'],_0x25c0a6=_0x5195a5['locale'],_0x2e7323=_0x5195a5['plugins']['get']('TrackChangesEditing');_0x2e7323['descriptionFactory']['registerDescriptionCallback'](_0x1424b6=>{if('formatBlock'!=_0x1424b6['type'])return;const {data:_0x9cc536}=_0x1424b6;if(!_0x9cc536)return;if('indentBlock'!=_0x9cc536['commandName']&&'outdentBlock'!=_0x9cc536['commandName'])return;const _0x325b20=_0x1424b6['getItems']()[0x0],_0x26e9a8=_0x2e7323['descriptionFactory']['getItemLabel'](_0x325b20);return'indentBlock'==_0x9cc536['commandName']?{'type':'format','content':o(_0x25c0a6,'*Indent:*\x20%0',_0x26e9a8)}:'outdentBlock'==_0x9cc536['commandName']?{'type':'format','content':o(_0x25c0a6,'*Outdent:*\x20%0',_0x26e9a8)}:void 0x0;});}}class ht extends _0x5c469f{static get['requires'](){return[_0x5e85b6];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x5c469f{['afterInit'](){const _0x30abf9=this['editor'];if(!_0x30abf9['plugins']['has']('LinkEditing'))return;const _0x25aabb=_0x30abf9['plugins']['get']('TrackChangesEditing'),_0x3e4055=_0x30abf9['commands']['get']('link');_0x25aabb['enableDefaultAttributesIntegration']('link'),_0x25aabb['enableDefaultAttributesIntegration']('unlink');for(const _0x3836df of _0x3e4055['manualDecorators'])_0x25aabb['descriptionFactory']['registerAttributeLabel'](_0x3836df['id'],'link\x20('+_0x3836df['label']['toLowerCase']()+')');_0x25aabb['descriptionFactory']['registerDescriptionCallback'](_0xf282fc=>{if('attribute'!=_0xf282fc['type'])return;const {data:_0x2732ad}=_0xf282fc;if(!_0x2732ad||'linkHref'!=_0x2732ad['key'])return;const _0x4975e4=_0x2732ad['newValue'],_0x43e72c=_0x30abf9['locale'];return{'type':'format','content':null==_0x4975e4?o(_0x43e72c,'*Remove\x20link*'):o(_0x43e72c,'*Set\x20link:*\x20%0','\x22'+_0x4975e4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a7408=this['editor'],_0xce4816=_0x1a7408['locale'];_0x1a7408['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdb3a4b=>{if('formatInline'!=_0xdb3a4b['type'])return;const {data:_0x26959c}=_0xdb3a4b;if(_0x26959c){if('link'==_0x26959c['commandName']){const _0x3e7dba=_0x26959c['commandParams'][0x0];return{'type':'format','content':o(_0xce4816,'*Set\x20link:*\x20%0','\x22'+_0x3e7dba+'\x22')};}return'unlink'==_0x26959c['commandName']?{'type':'format','content':o(_0xce4816,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x5c469f{['afterInit'](){const _0x3b7651=this['editor'],_0x3d1dec=_0x3b7651['locale'];if(!_0x3b7651['plugins']['has']('LegacyListEditing'))return;const _0x48590f=_0x3b7651['plugins']['get']('TrackChangesEditing'),_0x3c90a9=_0x3b7651['plugins']['has']('LegacyTodoListEditing');function _0x86fdb4(_0x3a4340){return()=>{const _0x3c52f0=_0x3b7651['model']['document']['selection'],_0x289004=_0x3b7651['commands']['get'](_0x3a4340);if(_0x289004['value'])return void _0x3b7651['execute']('paragraph',{});const _0x5a3606=_0x3a4340['slice'](0x0,-0x4),_0x2384be=function(_0x269dfb,_0x1ff006,_0x30b82a){let _0x527c16=Array['from'](_0x269dfb)['filter'](_0x48c19e=>function(_0xf22470,_0x36612c){return _0x36612c['checkChild'](_0xf22470['parent'],'listItem')&&!_0x36612c['isObject'](_0xf22470);}(_0x48c19e,_0x30b82a));_0x527c16=_0x527c16['filter'](_0x3f4c18=>!_0x3f4c18['is']('element','listItem')||_0x3f4c18['getAttribute']('listType')!=_0x1ff006);const _0x502909=new Set();for(const _0x40edf2 of _0x527c16)_0x40edf2['is']('element','listItem')?_0x502909['add'](Le(_0x40edf2)):_0x502909['add'](_0x40edf2);return Array['from'](_0x502909);}(_0x3c52f0['getSelectedBlocks'](),_0x5a3606,_0x3b7651['model']['schema']);_0x3b7651['model']['change'](()=>{for(const _0x61380d of _0x2384be)_0x48590f['markBlockFormat'](_0x61380d,{'commandName':_0x3a4340,'commandParams':[{'forceValue':!_0x289004['value']}],'formatGroupId':'blockName'},Ee(_0x61380d));});};}function _0x52d55a(_0x3e01c8){return()=>{const _0x1d9c9f=function(_0x3b4e0c){let _0x3d2c26=Array['from'](_0x3b4e0c);const _0x9d4a4c=_0x3d2c26['findIndex'](_0x56c671=>'listItem'!=_0x56c671['name']);return _0x9d4a4c>-0x1&&(_0x3d2c26=_0x3d2c26['slice'](0x0,_0x9d4a4c)),_0x3d2c26;}(_0x3b7651['model']['document']['selection']['getSelectedBlocks']()),_0x4e2837=_0x3b7651['model']['createRange'](_0x3b7651['model']['createPositionAt'](_0x1d9c9f[0x0],'before'),_0x3b7651['model']['createPositionAt'](_0x1d9c9f[_0x1d9c9f['length']-0x1],'end'));_0x3b7651['model']['change'](()=>{_0x48590f['markBlockFormat'](_0x4e2837,{'commandName':_0x3e01c8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x344afa){const _0x3b7a97=new Set();for(const _0x597066 of _0x344afa){let _0x4b36c6=_0x597066['nextSibling'];for(;_0x4b36c6&&_0x4b36c6['getAttribute']('listIndent')>_0x597066['getAttribute']('listIndent');)_0x3b7a97['add'](_0x4b36c6),_0x4b36c6=_0x4b36c6['nextSibling'];}return Array['from'](_0x3b7a97);}(_0x1d9c9f));});};}_0x48590f['enableCommand']('numberedList',_0x86fdb4('numberedList')),_0x48590f['enableCommand']('bulletedList',_0x86fdb4('bulletedList')),_0x3c90a9&&_0x48590f['enableCommand']('todoList',_0x86fdb4('todoList')),_0x48590f['enableCommand']('indentList',_0x52d55a('indentList')),_0x48590f['enableCommand']('outdentList',_0x52d55a('outdentList')),_0x3c90a9&&_0x48590f['enableCommand']('checkTodoList',()=>{const _0x31b3b8=_0x3b7651['commands']['get']('checkTodoList'),_0x5187a2=Array['from'](_0x31b3b8['_selectedElements']);_0x5187a2['filter'](_0x3c424f=>_0x3c424f['getAttribute']('todoListChecked')!=_0x31b3b8['value']),_0x3b7651['model']['change'](()=>{for(const _0x1e5120 of _0x5187a2)_0x48590f['markBlockFormat'](_0x1e5120,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x31b3b8['value']}]});});}),_0x48590f['descriptionFactory']['registerElementLabel']('listItem',_0x3c1fe3=>o(_0x3d1dec,'ELEMENT_LIST_ITEM',_0x3c1fe3)),_0x48590f['descriptionFactory']['registerDescriptionCallback'](_0x219023=>{if('formatBlock'!=_0x219023['type']&&'formatInline'!=_0x219023['type'])return;const {data:_0x2fca95}=_0x219023;if(_0x2fca95){if('numberedList'==_0x2fca95['commandName']||'bulletedList'==_0x2fca95['commandName']||'todoList'==_0x2fca95['commandName'])switch(_0x2fca95['commandName']['replace']('List','')){case'bulleted':return _0x21205e(o(_0x3d1dec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x21205e(o(_0x3d1dec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x21205e(o(_0x3d1dec,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2fca95['commandName'])return{'type':'format','content':o(_0x3d1dec,'*Indent:*\x20%0',o(_0x3d1dec,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2fca95['commandName'])return{'type':'format','content':o(_0x3d1dec,'*Outdent:*\x20%0',o(_0x3d1dec,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2fca95['commandName'])return _0x2fca95['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3d1dec,'*Check\x20item*')}:{'type':'format','content':o(_0x3d1dec,'*Uncheck\x20item*')};}function _0x21205e(_0x3712af){return{'type':'format','content':o(_0x3d1dec,'*Change\x20to:*\x20%0',_0x3712af)};}});}}function Le(_0x42288b){const _0x2bbccf=_0x42288b['getAttribute']('listIndent');if(0x0==_0x2bbccf)return _0x42288b;let _0x2810a6=_0x42288b;for(;_0x42288b['previousSibling']&&_0x42288b['previousSibling']['is']('element','listItem');){const _0x2e9b5e=_0x42288b['previousSibling']['getAttribute']('listIndent');if(_0x2e9b5e==_0x2bbccf)_0x2810a6=_0x42288b['previousSibling'];else{if(_0x2e9b5e<_0x2bbccf)break;}_0x42288b=_0x42288b['previousSibling'];}return _0x2810a6;}function Ee(_0x39a9c0){const _0x3b48aa=[];if(_0x39a9c0['is']('element','listItem')&&_0x39a9c0['getAttribute']('listIndent')>0x0){let _0x329193=_0x39a9c0['nextSibling'];for(;_0x329193&&'listItem'==_0x329193['name']&&_0x329193['getAttribute']('listIndent')==_0x39a9c0['getAttribute']('listIndent');)_0x3b48aa['push'](_0x329193),_0x329193=_0x329193['nextSibling'];}return _0x3b48aa;}class mt extends _0x5c469f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1a22ab=this['editor']['config']['get']('list.properties'),_0x10adb3=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a22ab['styles']&&_0x10adb3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1a22ab['reversed']&&_0x10adb3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1a22ab['startIndex']&&_0x10adb3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x10adb3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1be94a,_0x6369f6={}){const _0x3fed60=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36e627=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3fed60['markMultiRangeBlockFormat'](_0x36e627,{'commandName':'listStyle','commandParams':[{'type':_0x6369f6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x183094,_0x4a3b5d={}){const _0x37d33b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x102fd0=this['_getSuggestionBlocks'](_0x192992=>_0x192992['is']('element','listItem')&&'numbered'===_0x192992['getAttribute']('listType'));if(_0x102fd0['length']<0x1)return;const _0x35d164=_0x102fd0['map'](_0x243ee6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x243ee6,'before'),this['editor']['model']['createPositionAt'](_0x243ee6,0x0)));this['editor']['model']['change'](()=>{_0x37d33b['markMultiRangeBlockFormat'](_0x35d164,{'commandName':'listReversed','commandParams':[{'reversed':_0x4a3b5d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2c5157,_0x33e512={}){const _0x5251b3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a0ed3=this['_getSuggestionBlocks'](_0x371713=>_0x371713['is']('element','listItem')&&'numbered'===_0x371713['getAttribute']('listType'));if(_0x2a0ed3['length']<0x1)return;const _0x24b47f=_0x2a0ed3['map'](_0x36842f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x36842f,'before'),this['editor']['model']['createPositionAt'](_0x36842f,0x0)));this['editor']['model']['change'](()=>{_0x5251b3['markMultiRangeBlockFormat'](_0x24b47f,{'commandName':'listStart','commandParams':[{'startIndex':_0x33e512['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x495f8f){if('formatBlock'!=_0x495f8f['type']&&'formatInline'!=_0x495f8f['type'])return;const _0x1fa3d9=this['editor']['locale'],{data:_0x4669d2}=_0x495f8f;if(!_0x4669d2)return;let _0x592ade,_0x4878a8;switch(_0x4669d2['commandName']){case'listStyle':_0x592ade='*Change\x20to:*\x20%0',_0x4878a8={'type':'format','content':o(_0x1fa3d9,_0x592ade,o(_0x1fa3d9,this['_getTranslationKeyForListStyle'](_0x4669d2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x592ade=_0x4669d2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4878a8={'type':'format','content':o(_0x1fa3d9,_0x592ade)};break;case'listStart':_0x592ade='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4878a8={'type':'format','content':o(_0x1fa3d9,_0x592ade,_0x4669d2['commandParams'][0x0]['startIndex'])};}return _0x4878a8;}['_getSuggestionBlocksForListStyle'](){const _0x41e5df=this['editor']['plugins']['get']('LegacyListUtils');let _0x50c91f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x50c91f[0x0]?.['is']('element','listItem')&&_0x50c91f['unshift'](..._0x41e5df['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x50c91f[_0x50c91f['length']-0x1]?.['is']('element','listItem')&&_0x50c91f['push'](..._0x41e5df['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x50c91f=[...new Set(_0x50c91f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x50c91f=_0x50c91f['filter'](_0x130902=>_0x130902['is']('element','listItem'))),_0x50c91f;}['_getSuggestionBlocks'](_0x15593c){const _0x4d3209=this['editor']['plugins']['get']('LegacyListUtils');let _0x4c3a26=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x15593c)['map'](_0x240403=>{const _0x550169=this['editor']['model']['createPositionAt'](_0x240403,0x0);return[..._0x4d3209['getSiblingNodes'](_0x550169,'backward'),..._0x4d3209['getSiblingNodes'](_0x550169,'forward')];})['flat']();return _0x4c3a26=[...new Set(_0x4c3a26)],_0x4c3a26;}['_getTranslationKeyForListStyle'](_0x5d8674){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5d8674)||'default')['toUpperCase']()+'_LIST_'+_0x5d8674['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x5c469f{['afterInit'](){const _0x2b4656=this['editor'];if(!_0x2b4656['plugins']['has']('MediaEmbedEditing'))return;const _0x3d207d=_0x2b4656['plugins']['get']('TrackChangesEditing'),_0x7e6461=_0x2b4656['locale'];_0x3d207d['enableCommand']('mediaEmbed'),_0x3d207d['descriptionFactory']['registerElementLabel']('media',_0x32dab0=>o(_0x7e6461,'ELEMENT_MEDIA',_0x32dab0));}}class pt extends _0x5c469f{['afterInit'](){const _0x52610b=this['editor'];_0x52610b['plugins']['has']('MentionEditing')&&_0x52610b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x5c469f{['afterInit'](){const _0x220e04=this['editor'];if(!_0x220e04['plugins']['has']('MergeFieldsEditing'))return;const _0x2610a9=_0x220e04['plugins']['get']('TrackChangesEditing'),_0x100089=_0x220e04['locale'];_0x2610a9['enableCommand']('insertMergeField'),_0x2610a9['enableCommand']('insertMergeFieldBlock'),_0x2610a9['enableCommand']('insertMergeFieldImage'),_0x2610a9['descriptionFactory']['registerElementLabel']('mergeField',_0x5d3cc7=>o(_0x100089,'ELEMENT_MERGE_FIELD',_0x5d3cc7)),_0x2610a9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1799a8=>o(_0x100089,'ELEMENT_MERGE_FIELD',_0x1799a8)),_0x2610a9['descriptionFactory']['registerDescriptionCallback'](_0x3258cc=>{if('insertion'!=_0x3258cc['type']&&'deletion'!=_0x3258cc['type'])return;const _0x3104bd=_0x3258cc['getContainedElement']();if(null==_0x3104bd)return;const _0x2c02b6=_0x220e04['plugins']['get']('MergeFieldsEditing');let _0x517cb4;switch(_0x2c02b6['getMergeFieldType'](_0x3104bd)){case null:return;case'image':{const _0x1d6cba=_0x2c02b6['unwrapAffixes'](_0x3104bd['getAttribute']('src'));_0x517cb4=_0x2c02b6['getLabel'](_0x1d6cba)||_0x1d6cba;break;}default:{const _0x434ccb=_0x3104bd['getAttribute']('id');_0x517cb4=_0x2c02b6['getLabel'](_0x434ccb)||_0x434ccb;break;}}return'insertion'==_0x3258cc['type']?{'type':'insertion','content':o(_0x100089,'*Insert:*\x20%0','\x22'+_0x517cb4+'\x22\x20'+o(_0x100089,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x100089,'*Remove:*\x20%0','\x22'+_0x517cb4+'\x22\x20'+o(_0x100089,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x5c469f{['afterInit'](){const _0x456ccd=this['editor'],_0x519771=_0x456ccd['plugins']['get']('TrackChangesEditing');_0x456ccd['plugins']['has']('MultiLevelList')&&(_0x519771['enableDefaultAttributesIntegration']('multiLevelList'),_0x519771['descriptionFactory']['registerDescriptionCallback'](_0x441276=>this['handleDescriptions'](_0x441276)));}['handleDescriptions'](_0x7f379a){const _0x3c9e36=this['editor']['locale'],{data:_0x3e5a12}=_0x7f379a,_0x11abcd={'type':'format','content':''};if(_0x3e5a12&&'listMarkerStyle'==_0x3e5a12['key']){if(!_0x3e5a12['oldValue'])return{'type':'format','content':o(_0x3c9e36,'*Set\x20format:*\x20%0',o(_0x3c9e36,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3e5a12['newValue']+')'};if(!_0x3e5a12['newValue']){let _0x7b85a2=_0x7f379a['head'];for(;_0x7b85a2;){if(_0x7b85a2['data']&&'listType'==_0x7b85a2['data']['key']&&_0x7b85a2['data']['newValue'])return _0x11abcd;_0x7b85a2=_0x7b85a2['next'];}return{'type':'format','content':o(_0x3c9e36,'*Remove\x20format:*\x20%0',o(_0x3c9e36,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3e5a12['oldValue']+')'};}}}}class bt extends _0x5c469f{['afterInit'](){const _0xad983a=this['editor'];if(!_0xad983a['plugins']['has']('PageBreakEditing'))return;_0xad983a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2a68e2=_0xad983a['plugins']['get']('TrackChangesEditing'),_0x11fa54=_0xad983a['locale'];_0x2a68e2['descriptionFactory']['registerElementLabel']('pageBreak',_0x22c65a=>o(_0x11fa54,'ELEMENT_PAGE_BREAK',_0x22c65a));}}class yt extends _0x5c469f{['afterInit'](){const _0x4199d6=this['editor'];if(!_0x4199d6['plugins']['has']('Paragraph'))return;const _0x316fee=_0x4199d6['locale'],_0x54f74d=_0x4199d6['plugins']['get']('TrackChangesEditing');_0x54f74d['descriptionFactory']['registerElementLabel']('paragraph',_0x16138c=>o(_0x316fee,'ELEMENT_PARAGRAPH',_0x16138c)),_0x54f74d['enableDefaultAttributesIntegration']('paragraph'),_0x54f74d['enableCommand']('insertParagraph');const _0x1e32a4=_0x54f74d['descriptionFactory'];_0x1e32a4['registerDescriptionCallback'](_0x30355f=>{if('insertion'!==_0x30355f['type'])return;const {start:_0x29c21f,end:_0x2107cd}=_0x30355f['getFirstRange']();if(!_0x29c21f['isTouching'](_0x2107cd)||!_0x29c21f['nodeAfter'])return;const _0x25f142=_0x4199d6['model']['schema'],_0x1e4812=_0x29c21f['nodeAfter'];return _0x25f142['isBlock'](_0x1e4812)&&!_0x25f142['isLimit'](_0x1e4812)&&_0x25f142['checkChild'](_0x1e4812,'$text')?{'type':'insertion','content':o(_0x316fee,'*Insert:*\x20%0',_0x1e32a4['getItemLabel'](_0x1e4812,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e8c81=this['editor'],_0x36b8a5=_0x2e8c81['locale'];_0x2e8c81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf64d89=>{if('formatBlock'!=_0xf64d89['type'])return;const {data:_0x33d817}=_0xf64d89;return _0x33d817&&'paragraph'==_0x33d817['commandName']?{'type':'format','content':o(_0x36b8a5,'*Change\x20to:*\x20%0',o(_0x36b8a5,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x5c469f{['afterInit'](){const _0x556903=this['editor'];_0x556903['commands']['get']('replaceSource')&&_0x556903['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x5c469f{['afterInit'](){const _0x441c20=this['editor'];if(!_0x441c20['plugins']['has']('RemoveFormatEditing'))return;_0x441c20['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x585a84=this['editor'];_0x585a84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ddf0c=>{if('formatBlock'!=_0x4ddf0c['type']&&'formatInline'!=_0x4ddf0c['type'])return;const {data:_0x5c54de}=_0x4ddf0c;return _0x5c54de&&'removeFormat'==_0x5c54de['commandName']?{'type':'format','content':o(_0x585a84['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x5c469f{['afterInit'](){const _0x284ae1=this['editor'];if(!_0x284ae1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2a3dc5=_0x284ae1['plugins']['get']('TrackChangesEditing');_0x2a3dc5['enableCommand']('goToPreviousRestrictedEditingException'),_0x2a3dc5['enableCommand']('goToNextRestrictedEditingException');const _0x3178b3=_0x284ae1['plugins']['get']('RestrictedEditingModeEditing');_0x3178b3['enableCommand']('trackChanges'),_0x3178b3['enableCommand']('acceptSuggestion'),_0x3178b3['enableCommand']('discardSuggestion'),_0x3178b3['enableCommand']('acceptAllSuggestions'),_0x3178b3['enableCommand']('discardAllSuggestions'),_0x3178b3['enableCommand']('acceptSelectedSuggestions'),_0x3178b3['enableCommand']('discardSelectedSuggestions');}}class At extends _0x5c469f{['afterInit'](){const _0xdf377c=this['editor'];if(!_0xdf377c['plugins']['has']('ShiftEnter'))return;const _0x5eaa91=_0xdf377c['plugins']['get']('TrackChangesEditing');_0x5eaa91['enableCommand']('shiftEnter'),_0x5eaa91['descriptionFactory']['registerElementLabel']('softBreak',_0x4bcc90=>o(_0xdf377c['locale'],'ELEMENT_LINE_BREAK',_0x4bcc90));}}function an(_0x2b5727,_0xe265b6,_0xc1912b){const _0x5bfbde=[];for(const _0x4eb0c5 of _0xe265b6['getItems']())_0x4eb0c5['hasAttribute'](_0x2b5727)&&_0x5bfbde['push'](_0xc1912b['createRangeOn'](_0x4eb0c5));return _0x5bfbde;}class _t extends _0x5c469f{['afterInit'](){const _0x51e52a=this['editor'],_0x41d5ca=_0x51e52a['plugins']['get']('TrackChangesEditing');_0x51e52a['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x41d5ca['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x346051=this['editor'],_0x3f9a69=_0x346051['model'],_0x100416=_0x346051['locale'],_0x334dad=_0x346051['plugins']['get']('TrackChangesEditing'),_0x3b5d31='restrictedEditingException',_0x4dca8a=_0x346051['commands']['get'](_0x3b5d31);_0x334dad['enableCommand'](_0x3b5d31,(_0x4fda47,_0x3541c2={})=>{const _0x4c1c3d=_0x3f9a69['document']['selection'];if(_0x4c1c3d['isCollapsed'])return void _0x4fda47(_0x3541c2);const _0x3663e2=void 0x0!==_0x3541c2['forceValue']?_0x3541c2['forceValue']:!_0x4dca8a['value'];_0x3f9a69['change'](()=>{const _0xcc66a=Array['from'](_0x4c1c3d['getRanges']());for(const _0x1de135 of _0xcc66a){const _0x5c7174=_0x3663e2?[_0x1de135]:an(_0x3b5d31,_0x1de135,_0x3f9a69);for(const _0x54e438 of _0x5c7174)_0x334dad['markInlineFormat'](_0x54e438,{'commandName':_0x3b5d31,'commandParams':[{'forceValue':_0x3663e2}]});}});}),_0x334dad['descriptionFactory']['registerDescriptionCallback'](_0x1b3290=>{if('formatBlock'!=_0x1b3290['type']&&'formatInline'!=_0x1b3290['type'])return;const {data:_0x11c596}=_0x1b3290;return _0x11c596&&_0x11c596['commandName']==_0x3b5d31?_0x11c596['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x100416,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x100416,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x131cd3=this['editor'],_0x4472cb=_0x131cd3['locale'],_0x26da1b=_0x131cd3['plugins']['get']('TrackChangesEditing'),_0x309fe7='restrictedEditingExceptionBlock',_0x4366f9=this['editor']['commands']['get'](_0x309fe7);_0x26da1b['enableCommand'](_0x309fe7,(_0x125b27,_0x25c247={})=>{const _0xa62b40=this['editor']['model']['document']['selection'],_0x4045b9=_0x25c247&&void 0x0!==_0x25c247['forceValue']?_0x25c247['forceValue']:!_0x4366f9['value'];let _0x5673f1=[];if(_0x4045b9){const _0x5c8a3d=Array['from'](_0xa62b40['getSelectedBlocks']())['filter'](_0x19298a=>function(_0xcb0b08){return!!_0xcb0b08['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x19298a)||function(_0x3859f0,_0x1d55cc){const _0x327c21=_0x1d55cc['createContext'](_0x3859f0['parent']);if(!_0x1d55cc['checkChild'](_0x327c21,'restrictedEditingException'))return!0x1;if(!_0x1d55cc['checkChild'](_0x327c21['push']('restrictedEditingException'),_0x3859f0))return!0x1;return!0x0;}(_0x19298a,this['editor']['model']['schema']));_0x5673f1=to(_0x5c8a3d,_0x131cd3['model']);}else{const _0x2e1629=Array['from'](_0xa62b40['getSelectedBlocks']())['map'](_0x585994=>function(_0x4c0781){let _0x420ff0=_0x4c0781;for(;_0x420ff0['parent'];){if('restrictedEditingException'==_0x420ff0['parent']['name'])return _0x420ff0;_0x420ff0=_0x420ff0['parent'];}return null;}(_0x585994))['filter'](_0xfa7bcb=>!!_0xfa7bcb);_0x5673f1=to(_0x2e1629,_0x131cd3['model']);}_0x131cd3['model']['change'](()=>{for(const _0x7a5fe1 of _0x5673f1)_0x26da1b['markBlockFormat'](_0x7a5fe1,{'commandName':_0x309fe7,'commandParams':[{'forceValue':_0x4045b9}]});});}),_0x26da1b['descriptionFactory']['registerDescriptionCallback'](_0x12d741=>{const {data:_0x11b83a}=_0x12d741;if(_0x11b83a&&_0x11b83a['commandName']==_0x309fe7)return _0x11b83a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4472cb,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4472cb,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x5c469f{['afterInit'](){const _0x22e0e9=this['editor'];if(!_0x22e0e9['plugins']['has']('Style')||!_0x22e0e9['plugins']['has']('DataSchema'))return;const _0x38a59e=_0x22e0e9['plugins']['get']('TrackChangesEditing'),_0x228367=_0x22e0e9['locale'],_0x3a8cbe=_0x22e0e9['config']['get']('style')||{},_0x27cec1=_0x22e0e9['plugins']['get']('GeneralHtmlSupport'),_0x24c6ad=_0x22e0e9['plugins']['get']('StyleUtils')['normalizeConfig'](_0x22e0e9['plugins']['get']('DataSchema'),_0x3a8cbe['definitions']);_0x38a59e['enableDefaultAttributesIntegration']('style');const _0x1a4f78=new Set();for(const _0x3d2485 of _0x24c6ad['block']){const _0x12496c=_0x27cec1['getGhsAttributeNameForElement'](_0x3d2485['element']);_0x1a4f78['add'](_0x12496c);}const _0x2e67ce=new Set();for(const _0x1011aa of _0x24c6ad['inline']){const _0x1c73ed=_0x27cec1['getGhsAttributeNameForElement'](_0x1011aa['element']);_0x2e67ce['add'](_0x1c73ed);for(const _0x56bf3d of _0x1011aa['ghsAttributes'])_0x2e67ce['add'](_0x56bf3d);}for(const _0x276b86 of _0x1a4f78)_0x38a59e['descriptionFactory']['registerAttributeLabel'](_0x276b86,o(_0x228367,'FORMAT_STYLE'));for(const _0x1ac2d2 of _0x2e67ce)_0x38a59e['descriptionFactory']['registerAttributeLabel'](_0x1ac2d2,o(_0x228367,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf9d3ac=this['editor'],_0x206bdc=_0xf9d3ac['locale'];_0xf9d3ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8fc8a5=>{if('formatBlock'!=_0x8fc8a5['type']&&'formatInline'!=_0x8fc8a5['type'])return;const {data:_0xb83638}=_0x8fc8a5;return _0xb83638&&'style'===_0xb83638['commandName']?_0xb83638['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x206bdc,'*Set\x20format:*\x20%0',_0xb83638['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x206bdc,'*Remove\x20format:*\x20%0',_0xb83638['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x5c469f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x331172){super(_0x331172),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x31bb0c=this['editor'],_0x3a1e44=_0x31bb0c['model']['document']['selection'];if(!_0x31bb0c['plugins']['has']('TableEditing'))return;const _0x26af3c=_0x31bb0c['locale'],_0x2e7161=_0x31bb0c['plugins']['get']('TrackChangesEditing'),_0x5c0fc5=_0x31bb0c['plugins']['get']('TableUtils');_0x2e7161['descriptionFactory']['registerElementLabel']('table',_0x483e83=>o(_0x26af3c,'ELEMENT_TABLE',_0x483e83)),this['_setupColumnsRowsFixing'](),_0x2e7161['enableCommand']('insertTable'),_0x2e7161['enableCommand']('selectTableRow'),_0x2e7161['enableCommand']('selectTableColumn');for(const _0x51a953 of['insertTableRowAbove','insertTableRowBelow']){const _0x5d75e8=_0x31bb0c['commands']['get'](_0x51a953);_0x2e7161['enableCommand'](_0x51a953,_0x271683=>{_0x31bb0c['model']['change'](_0x304cb7=>{_0x271683();const _0x331380='above'===_0x5d75e8['order'],_0x3be5c4=_0x5c0fc5['getSelectionAffectedTableCells'](_0x3a1e44),_0x2f3c27=_0x5c0fc5['getRowIndexes'](_0x3be5c4),_0x2c4bb2=_0x331380?_0x2f3c27['first']-0x1:_0x2f3c27['last']+0x1,_0x42d29a=_0x3be5c4[0x0]['findAncestor']('table'),_0x5a1499=_0x5c0fc5['createTableWalker'](_0x42d29a,{'startRow':_0x2c4bb2,'endRow':_0x2c4bb2}),_0x46184c=Array['from'](_0x5a1499)['map'](_0x5e3802=>_0x304cb7['createRangeOn'](_0x5e3802['cell']));_0x2e7161['markMultiRangeInsertion'](_0x46184c,'tableRow');});});}for(const _0x2bbad2 of['insertTableColumnLeft','insertTableColumnRight']){const _0x45e529=_0x31bb0c['commands']['get'](_0x2bbad2);_0x2e7161['enableCommand'](_0x2bbad2,_0xac98db=>{_0x31bb0c['model']['change'](_0x283ad8=>{_0xac98db();const _0xb72d0f='left'===_0x45e529['order'],_0x4f1d6e=_0x5c0fc5['getSelectionAffectedTableCells'](_0x3a1e44),_0x3c9e3c=_0x5c0fc5['getColumnIndexes'](_0x4f1d6e),_0x2491a1=_0xb72d0f?_0x3c9e3c['first']-0x1:_0x3c9e3c['last']+0x1,_0x3f19a7=_0x4f1d6e[0x0]['findAncestor']('table'),_0xb57689=_0x5c0fc5['createTableWalker'](_0x3f19a7,{'startRow':0x0,'column':_0x2491a1,'includeAllSlots':!0x1}),_0x4eb883=Array['from'](_0xb57689)['map'](_0x282759=>_0x283ad8['createRangeOn'](_0x282759['cell']));_0x2e7161['markMultiRangeInsertion'](_0x4eb883,'tableColumn');});});}for(const _0x521f40 of['removeTableRow','removeTableColumn']){const _0xa97c74=_0x521f40['substr'](0xb),_0x5abcb8=_0xa97c74['toLowerCase'](),_0x1cea8f=_0x5abcb8['substr'](0x0,0x3)+'span',_0x1bcf67='table'+_0xa97c74,_0x58b9ea='min'+_0xa97c74,_0x108afe='max'+_0xa97c74;_0x2e7161['enableCommand'](_0x521f40,()=>{_0x31bb0c['model']['change'](_0x23ca20=>{const _0x7b5d1c=_0x5c0fc5['getSelectionAffectedTableCells'](_0x3a1e44),_0x45319f=_0x7b5d1c[0x0]['findAncestor']('table');let _0x431688;if('removeTableRow'==_0x521f40){const _0x4b8aed=_0x5c0fc5['getRowIndexes'](_0x7b5d1c);_0x431688={'startRow':_0x4b8aed['first'],'endRow':_0x4b8aed['last'],'includeAllSlots':!0x0};}else{const _0x526dbe=_0x5c0fc5['getColumnIndexes'](_0x7b5d1c);_0x431688={'startColumn':_0x526dbe['first'],'endColumn':_0x526dbe['last'],'includeAllSlots':!0x0};}const _0x48cde3=_0x5c0fc5['createTableWalker'](_0x45319f,_0x431688),_0x327c1a=Array['from'](_0x48cde3)['map'](({cell:_0x47279d})=>_0x47279d),_0x507b27=_e(_0x327c1a['filter'](_0x2aa824=>_0x2aa824['hasAttribute'](_0x1cea8f))),_0x5a109e=_e(_0x327c1a['filter'](_0x1d4acb=>!_0x1d4acb['hasAttribute'](_0x1cea8f)))['map'](_0x16cbd5=>_0x23ca20['createRangeOn'](_0x16cbd5)),_0x1df618=_0x2e7161['markMultiRangeDeletion'](_0x5a109e,_0x1bcf67);if(_0x1df618&&('tableRow'==_0x1df618['subType']||'tableColumn'==_0x1df618['subType'])){const _0xd235c7=this['_getSuggestionCoords'](_0x1df618);for(const _0x389016 of _0x507b27){const _0xbe0b7f=_0x23ca20['createRangeOn'](_0x389016),_0xe59b6e=_0x5c0fc5['getCellLocation'](_0x389016),_0x28477e=_0x389016['getAttribute'](_0x1cea8f)-0x1,_0x20c02b=_0xd235c7[_0x58b9ea],_0x2aa8a9=_0xd235c7[_0x108afe];_0x20c02b<=_0xe59b6e[_0x5abcb8]&&_0xe59b6e[_0x5abcb8]+_0x28477e<=_0x2aa8a9&&_0x1df618['addRange'](_0xbe0b7f);}}});});}function _0x2558f9(_0x5f1ea1){const _0x4749e4=Array['from'](_0x3a1e44['getRanges']())['map'](_0x190806=>_0x167977['fromRange'](_0x190806));_0x31bb0c['model']['change'](_0x5e5896=>{const _0xcb4136=_0x5e5896['batch'];_0x5f1ea1=_0x5f1ea1['filter'](_0x3a2408=>'$graveyard'!=_0x3a2408['root']['rootName']),_0x5e5896['setSelection'](_0x5f1ea1),_0x31bb0c['commands']['get']('removeTableRow')['refresh'](),_0x31bb0c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x31bb0c['model']['enqueueChange'](()=>{_0x31bb0c['model']['enqueueChange'](_0xcb4136,_0x209f55=>{const _0x386d00=_0x4749e4['filter'](_0x96ee0c=>'$graveyard'!=_0x96ee0c['root']['rootName']);_0x386d00['length']>0x0&&_0x209f55['setSelection'](_0x386d00);for(const _0x320105 of _0x4749e4)_0x320105['detach']();});});});}function _0x53d6e9(_0x1647b0){_0x31bb0c['model']['change'](_0x5c8a4c=>{const _0x582330=Array['from'](_0x3a1e44['getRanges']())['map'](_0xdf7c7=>_0x167977['fromRange'](_0xdf7c7)),_0x4b0bde=[];for(const _0x53ff14 of _0x1647b0)for(const _0x34cdfd of _0x53ff14['getItems']({'shallow':!0x0}))_0x4b0bde['push'](_0x34cdfd);for(const _0x287ca9 of _0x4b0bde)'$graveyard'!=_0x287ca9['root']['rootName']&&(_0x5c8a4c['setSelection'](_0x5c8a4c['createPositionAt'](_0x287ca9,0x0)),_0x31bb0c['commands']['get']('removeTableColumn')['refresh'](),_0x31bb0c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x53e94e=_0x582330['filter'](_0x30ae27=>'$graveyard'!=_0x30ae27['root']['rootName']);_0x53e94e['length']>0x0&&_0x5c8a4c['setSelection'](_0x53e94e);for(const _0x4eca46 of _0x582330)_0x4eca46['detach']();});}function _0x5ccec9(_0x320b57,_0x12575b){return _0x12575b['every'](_0x2dc40b=>_0x320b57['some'](_0x194827=>_0x194827['end']['isEqual'](_0x2dc40b['start'])||_0x2dc40b['end']['isEqual'](_0x194827['start'])));}function _0x44dab1(_0x470918,_0x4d67b7){return!_0x470918['some'](_0x22cff7=>_0x4d67b7['some'](_0x1486cd=>_0x22cff7['isIntersecting'](_0x1486cd)))&&_0x470918['some'](_0x1cf025=>_0x4d67b7['some'](_0x548201=>_0x1cf025['end']['isTouching'](_0x548201['start'])));}_0x2e7161['descriptionFactory']['registerDescriptionCallback'](_0x34fc98=>{if('insertion'!=_0x34fc98['type']&&'deletion'!=_0x34fc98['type'])return;const _0x50443f=_0x34fc98['getContainedElement']();if(null!=_0x50443f&&_0x50443f['is']('element','table')){if('insertion'==_0x34fc98['type']){const _0x44904a=_0x34fc98['getItems']()['filter'](_0x43c8a8=>_0x43c8a8['is']('$textProxy'))['map'](_0xe6294=>_0xe6294['data']);if(_0x44904a['length'])return{'type':'insertion','content':o(_0x26af3c,'*Insert:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x44904a['join']('\x20')+'\x22'))};}if('deletion'==_0x34fc98['type']){const _0x5db301=_0x34fc98['getItems']()['filter'](_0x3dd2f6=>_0x3dd2f6['is']('$textProxy'))['map'](_0x5d785e=>_0x5d785e['data']);if(_0x5db301['length'])return{'type':'deletion','content':o(_0x26af3c,'*Remove:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5db301['join']('\x20')+'\x22'))};}}}),_0x2e7161['descriptionFactory']['registerDescriptionCallback'](_0x2ea952=>{if('tableRow'==_0x2ea952['subType']){const _0x984c60=_0x2ea952['getItems']()['filter'](_0x2deda1=>_0x2deda1['is']('$textProxy'))['map'](_0x319aad=>_0x319aad['data']),_0xb7597c=this['_getSuggestionCoords'](_0x2ea952),_0x2ea57f=_0xb7597c['maxRow']-_0xb7597c['minRow']+0x1;if('insertion'==_0x2ea952['type'])return _0x984c60['length']?{'type':'insertion','content':o(_0x26af3c,'*Insert:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ea57f,'\x22'+_0x984c60['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x26af3c,'*Insert:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_ROW',_0x2ea57f))};if('deletion'==_0x2ea952['type'])return _0x984c60['length']?{'type':'deletion','content':o(_0x26af3c,'*Remove:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ea57f,'\x22'+_0x984c60['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x26af3c,'*Remove:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_ROW',_0x2ea57f))};}if('tableColumn'==_0x2ea952['subType']){const _0x49ae62=_0x2ea952['getItems']()['filter'](_0x51eb5b=>_0x51eb5b['is']('$textProxy'))['map'](_0x38f4a5=>_0x38f4a5['data']),_0x4b96c1=this['_getSuggestionCoords'](_0x2ea952),_0x58bf5f=_0x4b96c1['maxColumn']-_0x4b96c1['minColumn']+0x1;if('insertion'==_0x2ea952['type'])return _0x49ae62['length']?{'type':'insertion','content':o(_0x26af3c,'*Insert:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58bf5f,'\x22'+_0x49ae62['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x26af3c,'*Insert:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_COLUMN',_0x58bf5f))};if('deletion'==_0x2ea952['type'])return _0x49ae62['length']?{'type':'deletion','content':o(_0x26af3c,'*Remove:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58bf5f,'\x22'+_0x49ae62['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x26af3c,'*Remove:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_COLUMN',_0x58bf5f))};}}),_0x2e7161['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2558f9),_0x2e7161['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2558f9),_0x2e7161['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x53d6e9),_0x2e7161['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x53d6e9),_0x2e7161['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5ccec9),_0x2e7161['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5ccec9),_0x2e7161['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x44dab1),_0x2e7161['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x44dab1);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3c86ca=this['editor'],_0x318cd0=_0x3c86ca['model']['document']['selection'];return(_0x19fdca,_0x54c64c)=>{_0x3c86ca['model']['change'](_0x3cb6e5=>{const {commandName:_0x329d4e,commandParams:_0x594284}=_0x54c64c;let _0x44734b=_0x19fdca[0x0]['end']['nodeBefore'];_0x594284&&_0x594284[0x0]&&!0x1===_0x594284[0x0]['forceValue']&&(_0x44734b=_0x19fdca[0x0]['start']['nodeAfter']);const _0x24f322=_0x3cb6e5['createRangeIn'](_0x44734b);if('$graveyard'==_0x24f322['root']['rootName'])return;const _0x120b56=Array['from'](_0x318cd0['getRanges']())['map'](_0xb161a6=>_0x167977['fromRange'](_0xb161a6));_0x3cb6e5['setSelection'](_0x24f322),_0x3c86ca['commands']['get'](_0x329d4e)['refresh'](),_0x594284['push']({'forceDefaultExecution':!0x0}),_0x3c86ca['execute'](_0x329d4e,..._0x594284);const _0x5dfe0f=_0x120b56['filter'](_0x55d1fc=>'$graveyard'!=_0x55d1fc['root']['rootName']);_0x5dfe0f['length']>0x0&&_0x3cb6e5['setSelection'](_0x5dfe0f);for(const _0x373280 of _0x120b56)_0x373280['detach']();});};}['_getCoordsForCells'](_0x1cab6e){const _0x2fc0b7=this['editor']['plugins']['get']('TableUtils');let _0x10bf91=Number['MAX_SAFE_INTEGER'],_0x4b0f24=Number['MIN_SAFE_INTEGER'],_0x400f58=Number['MAX_SAFE_INTEGER'],_0x197cc1=Number['MIN_SAFE_INTEGER'];for(const _0x3b5505 of _0x1cab6e){if('$graveyard'==_0x3b5505['root']['rootName'])continue;const {row:_0x1cb6fb,column:_0x69978c}=_0x2fc0b7['getCellLocation'](_0x3b5505),_0xfa5171=_0x3b5505['hasAttribute']('rowspan')?_0x3b5505['getAttribute']('rowspan')-0x1:0x0,_0x5527c1=_0x3b5505['hasAttribute']('colspan')?_0x3b5505['getAttribute']('colspan')-0x1:0x0;_0x10bf91=_0x1cb6fb<_0x10bf91?_0x1cb6fb:_0x10bf91,_0x4b0f24=_0x1cb6fb+_0xfa5171>_0x4b0f24?_0x1cb6fb+_0xfa5171:_0x4b0f24,_0x400f58=_0x69978c<_0x400f58?_0x69978c:_0x400f58,_0x197cc1=_0x69978c+_0x5527c1>_0x197cc1?_0x69978c+_0x5527c1:_0x197cc1;}return{'minRow':_0x10bf91,'maxRow':_0x4b0f24,'minColumn':_0x400f58,'maxColumn':_0x197cc1};}['_setupColumnsRowsFixing'](){const _0x155abb=this['editor'],_0x2966fc=_0x155abb['plugins']['get']('TrackChangesEditing'),_0x33f7ba=_0x155abb['plugins']['get']('TableUtils');_0x155abb['model']['document']['on']('change:data',()=>{const _0x356965=Array['from'](_0x155abb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5765b7,data:_0x2e90a2}of _0x356965){const {group:_0x58f53a,id:_0x2f8c84,subType:_0x1d7c3a}=_0x2966fc['_splitMarkerName'](_0x5765b7);if('suggestion'!=_0x58f53a)continue;if(null!=_0x2e90a2['oldRange'])continue;const _0x29c663=_0x2966fc['getSuggestion'](_0x2f8c84);this['_tablePostFixingSubtypes']['includes'](_0x1d7c3a)&&this['_tableSuggestions']['add'](_0x29c663);}},{'priority':'low'});const _0x4a21ed=(_0x259792,_0xf781c)=>{let _0x23a06e=!0x1;const _0x4871c0=_0xf781c['createRangeOn'](_0x259792),_0x76a675=_0x259792['findAncestor']('table'),_0x51015d=_0x33f7ba['getCellLocation'](_0x259792);for(const _0x36fa11 of this['_tableSuggestions']){const _0x3f504e=_0x36fa11['subType'],_0x5c56ce=_0x3f504e['startsWith']('tablePaste'),_0x5d7051=_0x3f504e['substr'](_0x5c56ce?0xa:0x5),_0x4bd49c=_0x5d7051['toLowerCase'](),_0x3c0426=_0x4bd49c['substr'](0x0,0x3)+'span',_0xaaa616='min'+_0x5d7051,_0x12b99f='max'+_0x5d7051;if(!_0x36fa11['isInContent'])continue;if(_0x76a675!=_0x36fa11['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x36fa11['isIntersectingWithRange'](_0x4871c0))continue;const _0x274279=_0x259792['hasAttribute'](_0x3c0426)?_0x259792['getAttribute'](_0x3c0426)-0x1:0x0,_0x4d35af=this['_getSuggestionCoords'](_0x36fa11),_0x1f66e8=_0x4d35af[_0xaaa616],_0x550faf=_0x4d35af[_0x12b99f];_0x1f66e8<=_0x51015d[_0x4bd49c]&&_0x51015d[_0x4bd49c]+_0x274279<=_0x550faf&&(_0x36fa11['addRange'](_0x4871c0),_0x23a06e=!0x0);}return _0x23a06e;};_0x155abb['model']['document']['registerPostFixer'](_0x3a1586=>{let _0x4491a6=!0x1;for(const _0x19d76f of _0x155abb['model']['document']['differ']['getChanges']())if('insert'==_0x19d76f['type']){if('tableRow'==_0x19d76f['name']){for(const _0x38b619 of _0x19d76f['position']['nodeAfter']['getChildren']())_0x4491a6=_0x4491a6||_0x4a21ed(_0x38b619,_0x3a1586);}else'tableCell'==_0x19d76f['name']&&(_0x4491a6=_0x4491a6||_0x4a21ed(_0x19d76f['position']['nodeAfter'],_0x3a1586));}return _0x4491a6;});}['_getSuggestionCoords'](_0xf457b3){return this['_getCoordsForCells'](_0xf457b3['getRanges']()['map'](_0x33d00d=>_0x33d00d['start']['nodeAfter']));}}function _e(_0x1a9a77){return Array['from'](new Set(_0x1a9a77)['values']());}class $t extends _0x5c469f{static get['requires'](){return[Nt];}['afterInit'](){const _0x3601dc=this['editor'],_0x544728=_0x3601dc['model']['document']['selection'],_0x4dda9e=_0x3601dc['locale'];if(!_0x3601dc['plugins']['has']('TableEditing'))return;const _0x427353=_0x3601dc['plugins']['get']('TrackChangesEditing'),_0x3f79ee=_0x3601dc['plugins']['get']('TableUtils'),_0x27e946=_0x3601dc['plugins']['get'](Nt);_0x27e946['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x427353['enableCommand']('mergeTableCells',()=>{const _0x371f13=_0x3f79ee['getSelectionAffectedTableCells'](_0x3601dc['model']['document']['selection']);_0x3601dc['model']['change'](()=>{_0x427353['markMultiRangeBlockFormat'](_0x371f13,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3601dc['commands']['get']('mergeTableCells')['on']('execute',(_0xf364a3,_0x1fca91)=>{_0x3601dc['commands']['get']('trackChanges')['value']&&(_0x1fca91['length']>0x0&&_0x1fca91[_0x1fca91['length']-0x1]&&_0x1fca91[_0x1fca91['length']-0x1]['forceDefaultExecution']||_0x427353['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xf364a3['stop']());},{'priority':'highest'});for(const _0x52f0ac of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x324b90=_0x3601dc['commands']['get'](_0x52f0ac);_0x427353['enableCommand'](_0x52f0ac,()=>{const _0x4f3e63=_0x3601dc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x145ab2=>_0x145ab2['is']('element','tableCell')),_0x2b69d1=_0x324b90['value'];_0x3601dc['model']['change'](()=>{_0x427353['markMultiRangeBlockFormat']([_0x4f3e63,_0x2b69d1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1d37d6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x18e3fc=_0x3601dc['commands']['get'](_0x1d37d6);_0x427353['enableCommand'](_0x1d37d6,()=>{const _0x131baf=_0x3f79ee['getSelectionAffectedTableCells'](_0x3601dc['model']['document']['selection'])[0x0],_0x222c4f=_0x131baf['findAncestor']('table'),{column:_0x5d0b4b,row:_0x201e27}=_0x3f79ee['getCellLocation'](_0x131baf);let _0x52d684=[];if('horizontally'==_0x18e3fc['direction']){const _0x3af602=_0x3f79ee['createTableWalker'](_0x222c4f,{'startRow':_0x201e27,'endRow':_0x201e27,'includeAllSlots':!0x0});_0x52d684=Array['from'](_0x3af602)['map'](_0x1899a2=>_0x1899a2['cell']);}else{const _0x389c2a=_0x3f79ee['createTableWalker'](_0x222c4f,{'column':_0x5d0b4b,'includeAllSlots':!0x0});_0x52d684=Array['from'](_0x389c2a)['map'](_0x484211=>_0x484211['cell']);}_0x3601dc['model']['change'](_0x1c1c82=>{_0x427353['markBlockFormat'](_0x1c1c82['createRangeOn'](_0x131baf),{'commandName':_0x1d37d6,'commandParams':[]},_0x52d684,_0x1d37d6);});});}_0x427353['descriptionFactory']['registerDescriptionCallback'](_0x101f46=>{if('formatBlock'!=_0x101f46['type']&&'formatInline'!=_0x101f46['type'])return;const {data:_0x39c958}=_0x101f46;return _0x39c958&&'mergeTableCells'==_0x39c958['commandName']?{'type':'format','content':o(_0x4dda9e,'*Merge\x20cells*')}:void 0x0;}),_0x427353['descriptionFactory']['registerDescriptionCallback'](_0x3385d7=>{if('formatBlock'!=_0x3385d7['type']&&'formatInline'!=_0x3385d7['type'])return;const {data:_0x162dc2}=_0x3385d7;return _0x162dc2?'splitTableCellVertically'==_0x162dc2['commandName']?{'type':'format','content':o(_0x4dda9e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x162dc2['commandName']?{'type':'format','content':o(_0x4dda9e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4cc8a8=_0x27e946['_acceptFormatSuggestionCallbackFactory']();for(const _0x2d2f6e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x427353['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d2f6e,'accept',_0x4cc8a8);for(const _0x11156d of['splitTableCellVertically','splitTableCellHorizontally'])_0x427353['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x11156d,'accept',_0x4cc8a8);_0x427353['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x161f19=>{_0x3601dc['model']['change'](_0x31895e=>{const _0x4d399b=Array['from'](_0x544728['getRanges']())['map'](_0x396f41=>_0x167977['fromRange'](_0x396f41));_0x31895e['setSelection'](_0x161f19),_0x3601dc['commands']['get']('mergeTableCells')['refresh'](),_0x3601dc['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x577450=_0x4d399b['filter'](_0x460e2c=>'$graveyard'!=_0x460e2c['root']['rootName']);_0x577450['length']>0x0&&_0x31895e['setSelection'](_0x577450);for(const _0x218d86 of _0x4d399b)_0x218d86['detach']();});});for(const _0xd82026 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3488d6=_0x3601dc['commands']['get'](_0xd82026);_0x3488d6['on']('set:isEnabled',(_0x285ffa,_0x52aa88,_0x3a389b)=>{if(_0x3a389b){const _0x8d3a5d=_0x3601dc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x340787=>_0x340787['is']('element','tableCell'));this['_areMergableCells'](_0x3488d6['value'],_0x8d3a5d)||(_0x285ffa['return']=!0x1,_0x285ffa['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xe68e1e=this['editor']['commands']['get']('mergeTableCells'),_0x423bf9=this['editor']['plugins']['get']('TableUtils');if(!_0xe68e1e['isEnabled'])return!0x1;const _0xe32a17=_0x423bf9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x56f0f0 of _0xe32a17)for(const _0x27d5c6 of _0xe32a17)if(_0x56f0f0!=_0x27d5c6&&!this['_areMergableCells'](_0x56f0f0,_0x27d5c6))return!0x1;return!0x0;}['_areMergableCells'](_0x5bfd61,_0x400a2b){const _0x2c1ded=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ed8f6=this['editor']['model']['createRangeOn'](_0x5bfd61),_0x3d34af=this['editor']['model']['createRangeOn'](_0x400a2b),_0x4118cd=new Set(),_0x11be49=new Set();for(const _0x303d87 of _0x2c1ded['getSuggestions']())if(('insertion'==_0x303d87['type']||'deletion'==_0x303d87['type']||'mergeTableCells'==_0x303d87['subType'])&&_0x303d87['isInContent']){for(const _0x3eb628 of _0x303d87['getRanges']())_0x3eb628['containsRange'](_0x3ed8f6,!0x0)&&_0x4118cd['add'](_0x303d87['type']+':'+_0x303d87['author']['id']),_0x3eb628['containsRange'](_0x3d34af,!0x0)&&_0x11be49['add'](_0x303d87['type']+':'+_0x303d87['author']['id']);}if(_0x4118cd['size']!=_0x11be49['size'])return!0x1;for(const _0x36a687 of _0x4118cd)if(!_0x11be49['has'](_0x36a687))return!0x1;return!0x0;}}class vt extends _0x5c469f{static get['requires'](){return[Nt];}['afterInit'](){const _0x202785=this['editor'];if(!_0x202785['plugins']['has']('TableEditing'))return;const _0x2222ff=_0x202785['locale'],_0x121111=_0x202785['plugins']['get']('TrackChangesEditing');_0x121111['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x121111['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x121111['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2222ff,'FORMAT_HEADER_ROW')),_0x121111['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2222ff,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x269053=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb8ed1d=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x269053['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xb8ed1d),_0x269053['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xb8ed1d),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x4ba354=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e2ce2=this['editor']['plugins']['get']('TableUtils');function _0x3f0581({showActiveMarker:_0x1ed2d6=!0x0,setDataAttribute:_0x5dd92c=!0x0}={}){return(_0x4eb22c,_0x154b5c,_0x57026c)=>{const {type:_0x326f61,id:_0x1809b6}=_0x4ba354['_splitMarkerName'](_0x154b5c['markerName']);if(!_0x4ba354['hasSuggestion'](_0x1809b6))return;const _0x141554=_0x4ba354['getSuggestion'](_0x1809b6),_0x50fec4=_0x141554['data'];if('formatBlock'!=_0x141554['type']||!_0x50fec4||'setTableColumnHeader'!=_0x50fec4['commandName'])return;if(_0x154b5c['item'])return void _0x4eb22c['stop']();if(!_0x57026c['consumable']['consume'](_0x154b5c['markerRange'],_0x4eb22c['name']))return;const _0x102bd4=_0x154b5c['markerRange']['start']['nodeAfter'],_0x530fda=_0x154b5c['markerRange']['end']['nodeBefore'],_0x49a850=_0x102bd4['parent']['parent'],{column:_0x23ba56}=_0x2e2ce2['getCellLocation'](_0x102bd4),{column:_0xd53c11}=_0x2e2ce2['getCellLocation'](_0x530fda);for(let _0x56f4c4=_0x23ba56;_0x56f4c4<=_0xd53c11;_0x56f4c4++){const _0x430456=_0x2e2ce2['createTableWalker'](_0x49a850,{'column':_0x56f4c4,'includeAllSlots':!0x1});for(const _0x400832 of _0x430456){const _0x5e7d36=_0x400832['cell'],_0x27836a=_0x57026c['mapper']['toViewElement'](_0x5e7d36);_0x57026c['writer']['addClass']('ck-suggestion-marker-'+_0x326f61,_0x27836a),_0x5dd92c&&_0x57026c['writer']['setAttribute']('data-suggestion',_0x1809b6,_0x27836a),_0x57026c['mapper']['bindElementToMarker'](_0x27836a,_0x154b5c['markerName']),_0x1ed2d6&&(_0x4ba354['activeMarkers']['includes'](_0x154b5c['markerName'])?_0x57026c['writer']['addClass']('ck-suggestion-marker--active',_0x27836a):_0x57026c['writer']['removeClass']('ck-suggestion-marker--active',_0x27836a));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3f0581(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x206090,_0x2e76db,_0x40d3be)=>{_0x40d3be['options']['showSuggestionHighlights']&&_0x3f0581({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x206090,_0x2e76db,_0x40d3be);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2a0192,_0x10c5c8,_0x4309c5)=>{const {type:_0x21cb98,id:_0x37a4ef}=_0x4ba354['_splitMarkerName'](_0x10c5c8['markerName']);if(!_0x4ba354['hasSuggestion'](_0x37a4ef))return;const _0x59e3d4=_0x4ba354['getSuggestion'](_0x37a4ef),_0x2382a6=_0x59e3d4['data'];if('formatBlock'!=_0x59e3d4['type']||!_0x2382a6||'setTableColumnHeader'!=_0x2382a6['commandName'])return;const _0x37b6f3=_0x4309c5['mapper']['markerNameToElements'](_0x10c5c8['markerName']);if(_0x37b6f3){for(const _0x31ae4d of _0x37b6f3)_0x4309c5['writer']['removeClass']('ck-suggestion-marker-'+_0x21cb98,_0x31ae4d),_0x4309c5['writer']['removeClass']('ck-suggestion-marker--active',_0x31ae4d),_0x4309c5['writer']['removeAttribute']('data-suggestion',_0x31ae4d),_0x4309c5['mapper']['unbindElementFromMarkerName'](_0x31ae4d,_0x10c5c8['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x495a9a=this['editor'],_0x58cd00=_0x495a9a['locale'];function _0x41e323(_0x160cec){return{'type':'format','content':o(_0x58cd00,'*Format:*\x20%0',_0x160cec)};}_0x495a9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50adc7=>{if('formatBlock'!=_0x50adc7['type'])return;const {data:_0x5af6f1}=_0x50adc7;if(_0x5af6f1){if('setTableRowHeader'==_0x5af6f1['commandName']){const _0x113cdb=_0x5af6f1['commandParams'][0x0]['forceValue'];return _0x41e323(o(_0x58cd00,_0x113cdb?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5af6f1['commandName']){const _0x48ea6f=_0x5af6f1['commandParams'][0x0]['forceValue'];return _0x41e323(o(_0x58cd00,_0x48ea6f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x5c469f{['afterInit'](){const _0x313d61=this['editor'],_0x4d8c23=_0x313d61['locale'],_0x6ea766=_0x313d61['plugins']['get']('TrackChangesEditing');function _0x3535bf(_0x2a65cb){return{'type':'format','content':''+o(_0x4d8c23,'*Set\x20table\x20type:*\x20%0',_0x2a65cb)};}_0x313d61['plugins']['has']('TableLayout')&&(_0x6ea766['enableCommand']('insertTableLayout'),_0x6ea766['enableDefaultAttributesIntegration']('tableType'),_0x6ea766['descriptionFactory']['registerElementLabel'](_0xc2086e=>_0xc2086e['is']('element','table')&&'layout'===_0xc2086e['getAttribute']('tableType'),_0x2c38c7=>o(_0x4d8c23,'ELEMENT_LAYOUT_TABLE',_0x2c38c7)),_0x6ea766['descriptionFactory']['registerDescriptionCallback'](_0x358650=>{const {data:_0x53839f}=_0x358650;if(_0x53839f&&'tableType'==_0x53839f['key'])switch(_0x53839f['newValue']){case'layout':return _0x3535bf(o(_0x4d8c23,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3535bf(o(_0x4d8c23,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Re['map'](_0x10ee4b=>[_0x10ee4b,null]));class Bt extends _0x5c469f{static get['requires'](){return[Nt];}['afterInit'](){const _0x44296a=this['editor'];if(!_0x44296a['plugins']['has']('TableClipboard'))return;const _0x2ffd86=_0x44296a['plugins']['get']('TrackChangesEditing'),_0x3a860b=_0x44296a['plugins']['get']('TableUtils'),_0x12c35c=_0x44296a['plugins']['get'](Nt),_0x4aa8e5=_0x44296a['plugins']['get']('TableClipboard'),_0x393abc=_0x44296a['plugins']['get']('TableSelection'),_0x35b85c=_0x44296a['plugins']['get'](_0x1fe9af);_0x12c35c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x44296a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x44296a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x504601=null,_0x4a112c=!0x1;_0x35b85c['on']('contentInsertion',(_0x5eb71d,_0x2f3a86)=>{_0x4a112c='paste'===_0x2f3a86['method'];}),_0x44296a['model']['on']('insertContent',(_0x327308,_0x53187d)=>{if(!_0x4a112c&&null===_0x393abc['getSelectedTableCells']())return;const [_0x41c87a,_0xe7b308]=_0x53187d,_0x2d786e=_0x53187d[_0x53187d['length']-0x1];_0x2d786e&&_0x2d786e['forceDefaultExecution']||_0x2ffd86['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x15f195,_0x3f1328,_0x3bde19,_0x120059,_0x4e21d9){if(_0x3f1328&&!_0x3f1328['is']('documentSelection'))return!0x1;const _0x5850ee=_0x4e21d9['getTableIfOnlyTableInContent'](_0x15f195,_0x3bde19);if(!_0x5850ee||!Oe(_0x5850ee,void 0x0,_0x120059))return!0x1;const _0x5ac3df=_0x120059['getSelectionAffectedTableCells'](_0x3bde19['document']['selection']);if(!_0x5ac3df['length'])return!0x1;const _0x140516=_0x5ac3df[0x0]['findAncestor']('table'),_0x27455c=_0x120059['getRowIndexes'](_0x5ac3df),_0x1731f7=_0x120059['getColumnIndexes'](_0x5ac3df),_0xc0232b={'startRow':_0x27455c['first'],'endRow':_0x27455c['last'],'startColumn':_0x1731f7['first'],'endColumn':_0x1731f7['last']};return 0x1==_0x5ac3df['length']&&(_0xc0232b['endRow']+=_0x120059['getRows'](_0x5850ee)-0x1,_0xc0232b['endColumn']+=_0x120059['getColumns'](_0x5850ee)-0x1),Oe(_0x140516,_0xc0232b,_0x120059);}(_0x41c87a,_0xe7b308,_0x44296a['model'],_0x3a860b,_0x4aa8e5)&&(_0x327308['stop'](),_0x504601={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x44296a['model']['change'](()=>{_0x44296a['model']['insertContent'](_0x53187d[0x0],_0x53187d[0x1],_0x53187d[0x2],{'forceDefaultExecution':!0x0});const _0x4483a0=_0xe7a85c(),{rowInsertionRanges:_0x517b4c,columnInsertionRanges:_0x891dd4,insertionRanges:_0x432e71,deletionRanges:_0x407bf6,cells:_0x59bf1a}=_0x504601;_0x517b4c['length']&&_0x2ffd86['markMultiRangeInsertion'](_0x517b4c,'tablePasteRow',{'tablePasteChainId':_0x4483a0}),_0x891dd4['length']&&_0x2ffd86['markMultiRangeInsertion'](_0x891dd4,'tablePasteColumn',{'tablePasteChainId':_0x4483a0}),_0x432e71['length']&&(_0x2ffd86['markMultiRangeInsertion'](_0x432e71,'tablePaste',{'tablePasteChainId':_0x4483a0,'skipNestingCheck':!0x0}),_0x432e71['forEach'](_0x44b60b=>_0x44b60b['detach']?.())),_0x407bf6['length']&&(_0x2ffd86['markMultiRangeDeletion'](_0x407bf6,'tablePaste',{'tablePasteChainId':_0x4483a0,'skipNestingCheck':!0x0}),_0x407bf6['forEach'](_0x3c92c2=>_0x3c92c2['detach']?.()));const _0x272a24=_0x2ffd86['markMultiRangeBlockFormat'](_0x59bf1a['map'](({element:_0x55f12e})=>_0x55f12e),{'formatGroupId':_0xe7a85c()},[],'tablePasteCell',{'tablePasteChainId':_0x4483a0});if(_0x272a24){const _0x1e580f=_0x272a24['getMarkers'](),_0xfef24e=[];for(const {element:_0x5d46ec,attributes:_0x4528ac}of _0x59bf1a){if(!_0x4528ac)continue;const _0x72c834=_0x44296a['model']['createRangeOn'](_0x5d46ec),_0x4d5900=_0x1e580f['find'](_0x559006=>_0x559006['getRange']()['isEqual'](_0x72c834));_0x4d5900&&_0xfef24e['push']([_0x4d5900['name'],_0x4528ac]);}_0xfef24e['length']&&_0x272a24['setAttribute']('markerAttributes',Object['fromEntries'](_0xfef24e));}_0x504601=null;}));},{'priority':_0x5382c2['high']+0xa}),_0x35b85c['on']('contentInsertion',()=>{_0x4a112c=!0x1;},{'priority':'lowest'}),_0x44296a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x21a06f,_0x54603e)=>{const [_0x54f9a2,_0x7690ab,,_0x21b9e0]=_0x54603e;if(!_0x504601)return;_0x21a06f['stop']();const _0x82f936=_0x54f9a2['cell'],_0x505a95=_0x7690ab,_0x4e9d46=Be(_0x82f936),_0x4cfc3b=Be(_0x505a95);_0x21a06f['return']=_0x82f936;let _0x144d5d=null,_0x726ed8=null;if(_0x4cfc3b||_0x4e9d46){if(_0x4e9d46&&!_0x4cfc3b){_0x21b9e0['remove'](_0x82f936['getChild'](0x0));for(const _0x5e8987 of Array['from'](_0x505a95['getChildren']()))_0x21b9e0['insert'](_0x5e8987,_0x82f936,'end');const _0x54a2d8=_0x504601['rowInsertionIndexes']['includes'](_0x54f9a2['row']),_0x1c2368=_0x504601['columnInsertionIndexes']['includes'](_0x54f9a2['column']);_0x54a2d8||_0x1c2368||(_0x144d5d=_0x167977['fromRange'](_0x21b9e0['createRangeIn'](_0x82f936)));}else _0x4cfc3b&&!_0x4e9d46&&(_0x726ed8=_0x21b9e0['createRangeIn'](_0x82f936));}else{const _0x502bcf=_0x21b9e0['createElement']('tableCellSuggestion'),_0x401b13=_0x21b9e0['createElement']('tableCellSuggestion');_0x21b9e0['wrap'](_0x21b9e0['createRangeIn'](_0x82f936),_0x401b13),_0x21b9e0['insert'](_0x502bcf,_0x82f936,0x0);for(const _0x3ba4f3 of Array['from'](_0x505a95['getChildren']()))_0x21b9e0['insert'](_0x3ba4f3,_0x502bcf,'end');_0x144d5d=_0x167977['fromRange'](_0x21b9e0['createRangeOn'](_0x502bcf)),_0x726ed8=_0x167977['fromRange'](_0x21b9e0['createRangeOn'](_0x401b13));}const _0x38e009=Array['from'](_0x505a95['getAttributes']())['filter'](([_0x2bb1c8])=>Re['includes'](_0x2bb1c8));_0x504601['cells']['push']({'element':_0x82f936,'attributes':_0x38e009['length']?Object['fromEntries'](_0x38e009):null}),_0x144d5d&&_0x504601['insertionRanges']['push'](_0x144d5d),_0x726ed8&&_0x504601['deletionRanges']['push'](_0x726ed8);},{'priority':'high'}),_0x3a860b['on']('insertColumns',(_0x50f8e9,_0x4925a8)=>{const [_0x442fb8,_0x3bd0c0={}]=_0x4925a8;if(!_0x504601)return;const _0xf5c5f7=_0x3bd0c0['at']||0x0,_0x320fa6=_0x3bd0c0['columns']||0x1;_0x504601['columnInsertionIndexes']=new Array(_0x320fa6)['fill'](_0xf5c5f7)['map']((_0x28f5ee,_0x9dda50)=>_0x28f5ee+_0x9dda50);for(const {cell:_0x252428}of _0x3a860b['createTableWalker'](_0x442fb8,{'startColumn':_0xf5c5f7,'endColumn':_0xf5c5f7+_0x320fa6-0x1}))_0x504601['columnInsertionRanges']['push'](_0x44296a['model']['createRangeOn'](_0x252428));},{'priority':'low'}),_0x3a860b['on']('insertRows',(_0x18823b,_0x525781)=>{const [_0x15de0e,_0x24622a={}]=_0x525781;if(!_0x504601)return;const _0x47b6ed=_0x24622a['at']||0x0,_0x2ccc71=_0x24622a['rows']||0x1;_0x504601['rowInsertionIndexes']=new Array(_0x2ccc71)['fill'](_0x47b6ed)['map']((_0x1b004e,_0x10d04e)=>_0x1b004e+_0x10d04e);for(const {cell:_0xfe5d30}of _0x3a860b['createTableWalker'](_0x15de0e,{'startRow':_0x47b6ed,'endRow':_0x47b6ed+_0x2ccc71-0x1}))_0x504601['rowInsertionRanges']['push'](_0x44296a['model']['createRangeOn'](_0xfe5d30));},{'priority':'low'}),_0x2ffd86['descriptionFactory']['registerDescriptionCallback'](_0x45a8d9=>{if(_0x45a8d9['subType']&&_0x45a8d9['subType']['startsWith']('tablePaste'))return _0x45a8d9['previous']?{}:{'type':'insertion','content':o(_0x44296a['locale'],'*Replace\x20table\x20cells*')};});const _0x2e3ebb=()=>!0x1;for(const _0x44fe6f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2ffd86['_suggestionFactory']['registerCustomCallback']('insertion',_0x44fe6f,'join',_0x2e3ebb),_0x2ffd86['_suggestionFactory']['registerCustomCallback']('deletion',_0x44fe6f,'join',_0x2e3ebb),_0x2ffd86['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44fe6f,'join',_0x2e3ebb);_0x2ffd86['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2e3ebb),_0x2ffd86['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x59a2ac,_0xd55a10,_0x32f175)=>{const _0x236993=_0x59a2ac['map'](_0x543486=>_0x543486['getContainedElement']())['filter'](_0x5585f2=>_0x5585f2),_0x3b58a4=new Map(_0x236993['map'](_0x37e14d=>[_0x37e14d,null]));if(_0x504601){for(const {element:_0x32c5b1,attributes:_0x3b89c0}of _0x504601['cells'])_0x3b89c0&&_0x3b58a4['set'](_0x32c5b1,_0x3b89c0);}else{if(_0x32f175&&_0x32f175['markerAttributes'])for(const [_0x291de9,_0x11abea]of Object['entries'](_0x32f175['markerAttributes'])){const _0x10ab24=_0x44296a['model']['markers']['get'](_0x291de9),_0x37b6ca=_0x10ab24?_0x10ab24['getRange']()['getContainedElement']():null;_0x37b6ca&&_0x3b58a4['set'](_0x37b6ca,_0x11abea);}}_0x44296a['model']['change'](_0x179679=>{for(const [_0x5637fd,_0x322e7e]of _0x3b58a4)_0x179679['setAttributes']({...Ae,..._0x322e7e},_0x5637fd);});});const _0x280883=(_0x54a2c6,_0x1f89cb)=>{_0x2ffd86['_suggestionFactory']['registerCustomCallback'](_0x54a2c6,'tablePaste',_0x1f89cb,(_0x874239,_0x399ba6,_0x3c8046)=>{_0x44296a['model']['change'](_0x216bfe=>{const _0x3496e4=[];for(const _0x48d639 of _0x874239){const _0x38b133=_0x48d639['start']['nodeAfter'];_0x38b133['is']('element','tableCellSuggestion')&&_0x3496e4['push'](_0x38b133);}_0x2ffd86['_suggestionFactory']['getSuggestionCallback'](_0x54a2c6,null,_0x1f89cb)(_0x874239,_0x399ba6,_0x3c8046);for(const _0x3602a6 of _0x3496e4)'$graveyard'!=_0x3602a6['root']['rootName']&&_0x216bfe['unwrap'](_0x3602a6);});});};_0x280883('insertion','accept'),_0x280883('insertion','discard'),_0x280883('deletion','accept'),_0x280883('deletion','discard'),_0x2ffd86['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x55e712=>{const _0x50ad54=_0x55e712['map'](_0x10aa1f=>_0x10aa1f['getContainedElement']()),_0x3e7151=_0x50ad54[0x0]['findAncestor']('table'),{minRow:_0x4340bb,maxRow:_0x2592b2}=_0x12c35c['_getCoordsForCells'](_0x50ad54);_0x3a860b['removeRows'](_0x3e7151,{'at':_0x4340bb,'rows':_0x2592b2-_0x4340bb+0x1});}),_0x2ffd86['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x36f40e=>{const _0x3dbb72=_0x36f40e['map'](_0x5344ea=>_0x5344ea['getContainedElement']()),_0x1e31e1=_0x3dbb72[0x0]['findAncestor']('table'),{minColumn:_0x170f8a,maxColumn:_0x214f64}=_0x12c35c['_getCoordsForCells'](_0x3dbb72);_0x3a860b['removeColumns'](_0x1e31e1,{'at':_0x170f8a,'columns':_0x214f64-_0x170f8a+0x1});});const _0x56ceab=(_0x39fbec,_0x2886f2)=>{if(!_0x2886f2['subType']||!_0x2886f2['subType']['startsWith']('tablePaste'))return;const _0xa691cc=_0x2886f2['attributes']['tablePasteChainId'],_0x4b6a71=_0x2ffd86['getSuggestions']()['filter'](_0x5ca0e3=>_0x5ca0e3['isInContent']&&_0x5ca0e3['attributes']&&_0x5ca0e3['attributes']['tablePasteChainId']==_0xa691cc);_0x4b6a71['length']&&_0x2886f2['getAllAdjacentSuggestions']()['length']!=_0x4b6a71['length']&&_0x4b6a71['reduce']((_0x530ec1,_0x588bb2)=>(_0x530ec1['next']=_0x588bb2,_0x588bb2['previous']=_0x530ec1,_0x588bb2));};function _0x429119(_0x5d53f5,_0x34be13=!0x0){const {id:_0x24ec24,authorId:_0x5c4518}=_0x2ffd86['_splitMarkerName'](_0x5d53f5['markerName']),_0x5e133f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xbd3f0e=_0x2ffd86['activeMarkers']['includes'](_0x5d53f5['markerName']);return _0xbd3f0e&&_0x5e133f['push']('ck-suggestion-marker--active'),{'classes':_0x5e133f,'attributes':{'data-suggestion':_0x24ec24,'data-author-id':_0x5c4518},'priority':_0xbd3f0e&&_0x34be13?0xbc2:0xbb8};}_0x2ffd86['on']('suggestionLoaded',_0x56ceab,{'priority':'high'}),_0x2ffd86['on']('suggestionUnloaded',_0x56ceab,{'priority':'high'}),_0x44296a['model']['document']['registerPostFixer'](()=>{let _0x2a437d=!0x1;const _0x5f3c55=Array['from'](_0x44296a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa341c,data:_0x415d47}of _0x5f3c55){const {group:_0x58a4d8,type:_0x1bfd1f,id:_0x315f17}=_0x2ffd86['_splitMarkerName'](_0xa341c);if('suggestion'!=_0x58a4d8||'deletion'!=_0x1bfd1f||_0x415d47['oldRange'])continue;if(!_0x2ffd86['hasSuggestion'](_0x315f17))continue;const _0xeff096=_0x2ffd86['getSuggestion'](_0x315f17)['getRanges'](),_0x104105=_0x44296a['plugins']['get']('Users')['me'];for(const _0x4e7402 of _0x2ffd86['getSuggestions']()){if(!_0x4e7402['isInContent']||_0x4e7402['author']!=_0x104105)continue;if('formatBlock'!=_0x4e7402['type']||'tablePasteCell'!=_0x4e7402['subType'])continue;if(_0x4e7402['getRanges']()['every'](_0x54d461=>_0xeff096['some'](_0x4a31ec=>_0x4a31ec['containsRange'](_0x54d461,!0x0)))){for(const _0x5cb205 of _0x4e7402['getAllAdjacentSuggestions']())_0x5cb205['isInContent']&&(_0x5cb205['discard'](),_0x2a437d=!0x0);}}}return _0x2a437d;}),_0x44296a['model']['document']['registerPostFixer'](_0x44e785=>{const _0x21eb64=_0x44296a['commands']['get']('redo');if(!_0x21eb64||!_0x21eb64['_createdBatches']['has'](_0x44e785['batch']))return!0x1;let _0x51cd7c=!0x1;const _0x1ae8c4=_0x44296a['plugins']['get']('Users')['me'],_0x2a47ef=_0x44296a['model']['document']['differ']['getChanges'](),_0x3a9cef=Array['from'](_0x44296a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xe8879e,data:_0x4ed74d})=>{const {group:_0x453bca,subType:_0x208d8f,authorId:_0x523319}=_0x2ffd86['_splitMarkerName'](_0xe8879e);return'suggestion'==_0x453bca&&'tablePaste'==_0x208d8f&&_0x523319==_0x1ae8c4['id']&&!_0x4ed74d['oldRange'];});for(const _0x5444ee of _0x2a47ef){if('insert'!=_0x5444ee['type']||'tableCellSuggestion'!=_0x5444ee['name']||0x1!=_0x5444ee['length'])continue;const _0x314af9=_0x44e785['createRange'](_0x5444ee['position'],_0x5444ee['position']['getShiftedBy'](0x1));if(!_0x3a9cef['find'](({data:_0xebf09})=>_0xebf09['newRange']['isEqual'](_0x314af9))){for(const {name:_0x5872a0,data:_0x253cf7}of _0x3a9cef)if(_0x314af9['containsRange'](_0x253cf7['newRange'])){_0x44e785['updateMarker'](_0x5872a0,{'range':_0x314af9}),_0x51cd7c=!0x0;break;}}}return _0x51cd7c;}),_0x44296a['model']['document']['registerPostFixer'](_0x1fbb16=>{let _0x55685d=!0x1;const _0x159da4=_0x44296a['plugins']['get']('Users')['me'],_0x33dbbb=_0x2ffd86['getSuggestions']()['filter'](_0x220596=>_0x220596['isInContent']&&_0x220596['author']==_0x159da4),_0x3cda55=new Set(),_0xe91d81=new Set();for(const _0x3e60e9 of _0x33dbbb)if('tablePaste'==_0x3e60e9['subType'])for(const _0x1237d1 of _0x3e60e9['getMarkers']()){const _0x9c8740=_0x1237d1['getRange']()['getContainedElement']();if(_0x9c8740){if(_0x9c8740['is']('element','tableCellSuggestion')&&Be(_0x9c8740)){_0x3e60e9['removeMarker'](_0x1237d1['name']),_0x3cda55['add'](_0x9c8740),_0x55685d=!0x0;const _0x52efd3=_0x9c8740['nextSibling'],_0x1cfea0=_0x9c8740['previousSibling'],_0x2bda6d=_0x52efd3&&_0x52efd3['is']('element','tableCellSuggestion'),_0x45ff5a=_0x1cfea0&&_0x1cfea0['is']('element','tableCellSuggestion');_0x2bda6d&&!_0x3cda55['has'](_0x52efd3)&&_0xe91d81['add'](_0x52efd3),_0x45ff5a&&!_0x3cda55['has'](_0x1cfea0)&&_0xe91d81['add'](_0x1cfea0);}else _0x9c8740['is']('element','paragraph')&&_0x9c8740['isEmpty']&&(_0x3e60e9['removeMarker'](_0x1237d1['name']),_0x55685d=!0x0);}}else{if('tablePasteCell'==_0x3e60e9['subType']){if(!_0x3e60e9['attributes']||!_0x3e60e9['attributes']['tablePasteChainId'])continue;const _0x123ef2=_0x3e60e9['attributes']['markerAttributes'];if(_0x123ef2&&Object['keys'](_0x123ef2)['length'])continue;const _0x32b2dc=_0x3e60e9['attributes']['tablePasteChainId'];let _0x2e6b6c=!0x0,_0xb4f9f2=!0x0;for(const _0x2522ed of _0x33dbbb)if(_0x2522ed['subType']&&_0x2522ed['subType']['startsWith']('tablePaste')){if(!_0x2522ed['attributes']['tablePasteChainId']){_0xb4f9f2=!0x1;break;}if(_0x2522ed['id']!=_0x3e60e9['id']&&_0x2522ed['attributes']['tablePasteChainId']==_0x32b2dc){_0x2e6b6c=!0x1;break;}}_0xb4f9f2&&_0x2e6b6c&&(_0x3e60e9['removeMarkers'](),_0x55685d=!0x0);}}for(const _0x2ccb9d of _0x3cda55)_0x1fbb16['remove'](_0x2ccb9d);for(const _0x49e84e of _0xe91d81)_0x1fbb16['unwrap'](_0x49e84e);return _0x55685d;}),_0x44296a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2fff78=>_0x429119(_0x2fff78),'converterPriority':'high'}),_0x44296a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2d88b4,_0x984003)=>_0x984003['options']['showSuggestionHighlights']?_0x429119(_0x2d88b4,!0x1):null,'converterPriority':'high'});const _0x2a704c=_0x44296a['editing']['view'];this['listenTo'](_0x2a704c['document'],'clipboardOutput',(_0x1ebb01,_0x338265)=>{const _0x4bf523=[];for(const _0x14beb5 of _0x2a704c['createRangeIn'](_0x338265['content'])['getItems']())_0x14beb5['is']('element','suggestion-td')&&_0x4bf523['push'](_0x14beb5);_0x2a704c['change'](_0x5938eb=>{for(const _0x569dd6 of _0x4bf523)_0x5938eb['move'](_0x5938eb['createRangeIn'](_0x569dd6),_0x5938eb['createPositionBefore'](_0x569dd6)),_0x5938eb['remove'](_0x569dd6);});});}}function Be(_0x50cfbb){if(_0x50cfbb['isEmpty'])return!0x0;const _0x5d5781=_0x50cfbb['getChild'](0x0);return _0x5d5781['is']('element','paragraph')&&_0x5d5781['isEmpty'];}function Oe(_0x38c035,_0x3e6832={},_0x1d948e){for(const {isAnchor:_0x1f2237,cellHeight:_0x18d082,cellWidth:_0x48bede}of _0x1d948e['createTableWalker'](_0x38c035,{'includeAllSlots':!0x0,..._0x3e6832}))if(!_0x1f2237||0x1!=_0x18d082||0x1!=_0x48bede)return!0x1;return!0x0;}class Ot extends _0x5c469f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x544f42=this['editor']['plugins']['get']('TrackChangesEditing');_0x544f42['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x544f42['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x544f42['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x544f42['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x544f42['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x544f42['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xaf3346,_0x3d5baf){const _0xcec5be=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ac244=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x24aeb3=_0x3d5baf['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3db6c3=_0x5ac244['getColumnGroupElement'](_0x24aeb3);let _0x4a8b22=_0x3db6c3?_0x5ac244['getTableColumnsWidths'](_0x3db6c3):null,_0x2ce397=_0x24aeb3['getAttribute']('tableWidth')||null;const _0x2a4502=_0x3d5baf['tableWidth']||_0x2ce397,_0x362152=_0x3d5baf['columnWidths']||_0x4a8b22,_0x38f99c=this['editor']['plugins']['get']('Users')['me'];for(const _0x203fdf of _0xcec5be['getSuggestions']()){const _0x155785=_0x203fdf['getContainedElement']();if('resizeTable'===_0x203fdf['subType']&&_0x155785===_0x24aeb3){_0x203fdf['author']!==_0x38f99c&&_0x203fdf['discard']();const _0x133780=_0x203fdf['data']['commandParams'];_0x2ce397=_0x133780[0x0]['tableWidth'],_0x4a8b22=_0x133780[0x0]['columnWidths'];break;}}_0xaf3346({'table':_0x24aeb3,'tableWidth':_0x2a4502,'columnWidths':_0x362152}),_0xcec5be['markBlockFormat'](_0x24aeb3,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2ce397,'columnWidths':_0x4a8b22}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xfd6cbc){if('formatBlock'!=_0xfd6cbc['type']&&'formatInline'!=_0xfd6cbc['type'])return;const {data:_0x2da989}=_0xfd6cbc;if(_0x2da989&&'resizeTable'===_0x2da989['formatGroupId']){const _0x13c5af='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x13c5af)};}}}class xt extends _0x5c469f{['afterInit'](){const _0x64a69d=this['editor'];_0x64a69d['plugins']['has']('Template')&&_0x64a69d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x5c469f{['afterInit'](){const _0x5c3006=this['editor'];if(!_0x5c3006['commands']['get']('insertTableOfContents'))return;_0x5c3006['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2a6061=_0x5c3006['plugins']['get']('TrackChangesEditing'),_0x520156=_0x5c3006['locale'];_0x2a6061['descriptionFactory']['registerElementLabel']('tableOfContents',_0x14a443=>o(_0x520156,'ELEMENT_TABLE_OF_CONTENTS',_0x14a443));}}class Rt extends _0x5c469f{['afterInit'](){const _0x44273a=this['editor'];if(!_0x44273a['plugins']['has']('Title'))return;const _0x4ecad6=_0x44273a['plugins']['get']('TrackChangesEditing');_0x4ecad6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x44273a['locale'],'ELEMENT_TITLE')),_0x44273a['model']['document']['registerPostFixer'](_0x4fd171=>{let _0x71b8ef=!0x1;const _0x19f867=Array['from'](_0x44273a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x76cd0,data:_0xef368a}of _0x19f867){const {group:_0x296503}=_0x4ecad6['_splitMarkerName'](_0x76cd0);if('suggestion'!==_0x296503||!_0xef368a['newRange'])continue;const _0x380430=_0xef368a['newRange'],_0x3462f1=_0x380430['end']['nodeBefore'];if(!_0x3462f1||!_0x3462f1['is']('element','title-content'))continue;if(!_0x380430['start']['isTouching'](_0x380430['end']))continue;const _0xd68969=_0x44273a['model']['schema']['getNearestSelectionRange'](_0x380430['end'],'forward');if(_0xd68969&&_0xd68969['isCollapsed']){const _0x5e5e32=_0x4fd171['createRange'](_0x380430['start'],_0xd68969['start']);_0x5e5e32['isEqual'](_0x380430)||(_0x4fd171['updateMarker'](_0x76cd0,{'range':_0x5e5e32}),_0x71b8ef=!0x0);}_0x71b8ef||(_0x4fd171['removeMarker'](_0x76cd0),_0x71b8ef=!0x0);}return _0x71b8ef;});}}class Tt extends _0x5c469f{['afterInit'](){const _0xcc06a9=this['editor'],_0x50d418=_0xcc06a9['plugins']['get']('TrackChangesEditing');_0xcc06a9['plugins']['has']('Uploadcare')&&(_0x50d418['enableCommand']('uploadcare'),_0xcc06a9['plugins']['has']('UploadcareImageEdit')&&(_0x50d418['enableCommand']('uploadcareImageEdit'),_0x50d418['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x50d418['descriptionFactory']['registerDescriptionCallback'](_0x36dcbe=>{if('attribute'!=_0x36dcbe['type'])return;const {data:_0x160147}=_0x36dcbe;return _0x160147&&'uploadcareImageId'==_0x160147['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x5c469f{['afterInit'](){const _0x356d61=this['editor'],_0x54321b=_0x356d61['plugins']['get']('TrackChangesEditing');_0x356d61['plugins']['has']('UndoEditing')&&(_0x54321b['enableCommand']('undo'),_0x54321b['enableCommand']('redo'));}}class Ut extends _0x5c469f{static get['requires'](){return[Nt];}['afterInit'](){const _0x3f4cf1=this['editor'];if(!_0x3f4cf1['plugins']['has']('TableCaptionEditing'))return;_0x3f4cf1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x5c469f{['tableProperties'];['tableCellProperties'];constructor(_0x124089){super(_0x124089),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 _0x50a28f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x16ce1f of this['tableProperties'])_0x50a28f['enableCommand'](_0x16ce1f,(_0x917ecd,_0x536413)=>{const _0x5edd73=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x16ce1f,[_0x5edd73],this['tableProperties'],'tableProperties',_0x917ecd,_0x536413);});_0x50a28f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x50a28f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50a28f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1b3630,_0x5c3228)=>this['handleDiscardAction'](this['tableProperties'],_0x1b3630,_0x5c3228)),_0x50a28f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1fcee4 of this['tableCellProperties'])_0x50a28f['enableCommand'](_0x1fcee4,(_0x2918ab,_0x3eee87)=>{const _0xd4940f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1fcee4,_0xd4940f,this['tableCellProperties'],'tableCellProperties',_0x2918ab,_0x3eee87);});_0x50a28f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x50a28f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50a28f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x513763,_0x52a76c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x513763,_0x52a76c)),_0x50a28f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x50a28f['descriptionFactory']['registerDescriptionCallback'](_0x47710e=>this['handleSuggestionDescription'](_0x47710e)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x54cece,_0x393008,_0x4551e7,_0x447beb,_0x2a11c1,_0x5b2535){const _0xf8cdba=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5b2535['batch'],()=>{for(const _0xa44a69 of _0x393008){if(this['_getSuggestion'](_0xa44a69,_0x447beb))_0x2a11c1(_0x5b2535);else{const _0x3abf82={};for(const _0x27fa7b of _0x4551e7){const _0x361a76=_0xa44a69['getAttribute'](_0x27fa7b);void 0x0!==_0x361a76&&(_0x3abf82[_0x27fa7b]=_0x361a76);}_0x2a11c1(_0x5b2535),_0xf8cdba['markBlockFormat'](_0xa44a69,{'commandParams':[_0x3abf82]},[],_0x447beb);}}});}['handleDiscardAction'](_0x3080dd,_0x43d5ee,_0x58c293){const _0x280307=_0x43d5ee[0x0]['start']['nodeAfter'],_0x5edf2d=_0x58c293['commandParams'][0x0];this['editor']['model']['change'](_0x4e3879=>{for(const _0x38c543 of _0x3080dd)void 0x0!==_0x5edf2d[_0x38c543]?_0x4e3879['setAttribute'](_0x38c543,_0x5edf2d[_0x38c543],_0x280307):_0x4e3879['removeAttribute'](_0x38c543,_0x280307);});}['handleSuggestionDescription'](_0x483fa2){if(_0x483fa2['data'])switch(_0x483fa2['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'](_0x5e6996,_0x46ca7e){const _0x1e9c95=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3c3dac of _0x1e9c95['getSuggestions']({'skipNotAttached':!0x0})){const _0x440f90=_0x3c3dac['getContainedElement']();if(_0x3c3dac['subType']===_0x46ca7e&&_0x440f90===_0x5e6996)return _0x3c3dac;}return null;}['_registerTablePropertiesAttributes'](){const _0x1bce0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x765b00=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1fdf6a of _0x765b00){const _0x28f28d=_0x1fdf6a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1bce0b['descriptionFactory']['registerAttributeLabel'](_0x1fdf6a,o(this['editor']['locale'],'FORMAT_'+_0x28f28d));}}}class Ft extends _0x5c469f{['afterInit'](){const _0x6d163b=this['editor'];if(!_0x6d163b['plugins']['has']('LineHeight'))return;const _0xd68a42=_0x6d163b['plugins']['get']('TrackChangesEditing'),_0x3c49bf=_0x6d163b['locale'];_0xd68a42['enableDefaultAttributesIntegration']('lineHeight'),_0xd68a42['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3c49bf,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x5c469f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0xe3d5a4,_0x52061b,_0x4a392e,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4baeac){super(_0x4baeac),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1afa2d,_0x5c3d28,_0x18bd70,_0x8302d0)=>{this['_model']['change'](()=>{for(const _0x2bdd2f of[..._0x8302d0,..._0x18bd70])this['_model']['markers']['has'](_0x2bdd2f)&&_0x4baeac['editing']['reconvertMarker'](_0x2bdd2f);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4baeac['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4baeac['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4baeac['config']['get']('trackChanges.trackFormatChanges'),_0x4baeac['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4baeac['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x4baeac,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1462f0=this['editor'];_0x1462f0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x36e06a,{writer:_0xf9d5a})=>{let _0x41ba7a='suggestion:'+_0x36e06a['getAttribute']('suggestion-type')+':'+_0x36e06a['getAttribute']('id');return _0x36e06a['getAttribute']('marker-count')&&(_0x41ba7a+=':'+_0x36e06a['getAttribute']('marker-count')),_0xf9d5a['createElement']('$marker',{'data-name':_0x41ba7a});}}),_0x1462f0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1462f0['model']['document']['registerPostFixer'](_0x4834fd=>{let _0x19131a=!0x1;const _0x38925c=Array['from'](_0x1462f0['model']['document']['differ']['getChangedMarkers']()),_0x299a2a=new Set();for(const {name:_0x2270de,data:_0x28044d}of _0x38925c){const {group:_0x48056f,type:_0x170aa3,subType:_0x204dfb,id:_0x4fc10e}=this['_splitMarkerName'](_0x2270de);if('suggestion'!==_0x48056f)continue;const _0x5bf5b4=_0x204dfb?'suggestion:'+_0x170aa3+':'+_0x204dfb+':'+_0x4fc10e:'suggestion:'+_0x170aa3+':'+_0x4fc10e,_0x496230=_0x1462f0['model']['markers']['getMarkersGroup'](_0x5bf5b4),_0x12132a=_0x1462f0['model']['markers']['get'](_0x2270de),_0x4a7c85=this['_suggestions']['get'](_0x4fc10e);if(null!=_0x28044d['newRange']){'formatInline'==_0x170aa3&&(_0x19131a=_0x19131a||Wt(_0x28044d['newRange'],_0x2270de,_0x4834fd,_0x1462f0['model']['schema']));const _0x54fb9e='attribute'==_0x170aa3&&this['_isBlockAttribute'](_0x204dfb['split']('|')[0x0]),_0x5d7fbd='attribute'==_0x170aa3&&this['_isInlineAttribute'](_0x204dfb['split']('|')[0x0]);if(_0x28044d['newRange']['isCollapsed']||'$graveyard'==_0x28044d['newRange']['root']['rootName']||'formatBlock'==_0x170aa3&&!Qt(_0x28044d['newRange'])||_0x54fb9e&&!Qt(_0x28044d['newRange'])||_0x5d7fbd&&Xt(_0x28044d['newRange'])||'deletion'==_0x170aa3&&Xt(_0x28044d['newRange'])||_0x12132a&&Yt(_0x12132a,_0x496230))_0x4834fd['removeMarker'](_0x2270de),_0x19131a=!0x0;else{if(!_0x4a7c85||!_0x4a7c85['isInContent'])continue;if(_0x28044d['newRange']&&_0x28044d['oldRange']&&_0x28044d['newRange']['isEqual'](_0x28044d['oldRange']))continue;_0x299a2a['add'](_0x4a7c85);}}}return _0x299a2a['size']>0x0&&(_0x19131a=!!this['_joinWithAdjacentSuggestions'](_0x299a2a)||_0x19131a),_0x19131a;}),_0x1462f0['model']['document']['registerPostFixer'](_0x984225=>{let _0x5402be=!0x1;for(const _0x59baac of _0x1462f0['model']['document']['differ']['getChanges']())if('insert'==_0x59baac['type'])for(const _0x2051ce of this['_suggestions']['values']()){if(_0x2051ce['isMultiRange']||!_0x2051ce['isInContent'])continue;const _0x39588b='formatBlock'==_0x2051ce['type'],_0x266889=this['_getAttributeKey'](_0x2051ce),_0x1145c8=_0x266889&&this['_isBlockAttribute'](_0x266889);if(!_0x39588b&&!_0x1145c8)continue;const _0x3569ba=_0x2051ce['getFirstRange']();if(_0x3569ba['start']['parent']!=_0x3569ba['end']['parent']&&!_0x3569ba['end']['isAtEnd']){const _0x2edd48=_0x1462f0['model']['createPositionAt'](_0x3569ba['start']['nodeAfter'],'end'),_0x3d8daa=_0x1462f0['model']['createRange'](_0x3569ba['start'],_0x2edd48);_0x984225['updateMarker'](_0x2051ce['getFirstMarker'](),{'range':_0x3d8daa}),_0x5402be=!0x0;}}return _0x5402be;}),_0x1462f0['model']['document']['registerPostFixer'](_0x4a0db0=>this['_processAttributeChanges'](_0x4a0db0)),_0x1462f0['model']['document']['registerPostFixer'](_0x43255c=>!_0x43255c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x43255c)),_0x1462f0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1462f0['model']['document']['on']('change:data',(_0x4dc469,_0x343601)=>{if(!_0x343601['isLocal']||_0x343601['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x86586f=_0x1462f0['model']['document']['differ']['getChanges']();if(0x0==_0x86586f['length'])return;const _0xbdc7c3=[],_0x3c9e8b=_0x86586f['filter'](_0x2b61c9=>'attribute'==_0x2b61c9['type']),_0x15da70=_0x86586f['filter'](_0x3c21af=>'insert'==_0x3c21af['type']&&'$text'!=_0x3c21af['name']);for(const _0x2f02a8 of _0x3c9e8b)this['_isRegisteredAttribute'](_0x2f02a8['attributeKey'])&&_0xbdc7c3['push']({'key':_0x2f02a8['attributeKey'],'newValue':_0x2f02a8['attributeNewValue'],'oldValue':_0x2f02a8['attributeOldValue'],'range':Zt(_0x2f02a8['range'],_0x1462f0['model'])});for(const _0x48fc6f of _0x15da70){if('rename'!=_0x48fc6f['action']&&'refresh'!=_0x48fc6f['action'])continue;const _0x11c740=tn(_0x48fc6f['position']['nodeAfter'],_0x1462f0['model']),_0x44a043=_0x48fc6f['before'];'rename'==_0x48fc6f['action']&&_0xbdc7c3['push']({'key':m,'newValue':_0x48fc6f['name'],'oldValue':_0x44a043['name'],'range':_0x11c740});for(const [_0x20af08,_0x30adc4]of _0x44a043['attributes']){if(!this['_isRegisteredAttribute'](_0x20af08))continue;const _0xed424c=_0x48fc6f['attributes']['get'](_0x20af08);_0x30adc4!==_0xed424c&&_0xbdc7c3['push']({'key':_0x20af08,'newValue':_0xed424c,'oldValue':_0x30adc4,'range':_0x11c740});}for(const [_0x54e056,_0x5b7de6]of _0x48fc6f['attributes'])this['_isRegisteredAttribute'](_0x54e056)&&(_0x44a043['attributes']['has'](_0x54e056)||_0xbdc7c3['push']({'key':_0x54e056,'newValue':_0x5b7de6,'oldValue':null,'range':_0x11c740}));}0x0!=_0xbdc7c3['length']&&_0x1462f0['model']['enqueueChange'](_0x343601,_0x5ad1d1=>{const _0x2aaf1a=_0xe7a85c();for(const {range:_0x2e2aba,key:_0x2e250d,oldValue:_0x13fc49,newValue:_0x5e4748}of _0xbdc7c3)this['markAttributeChange'](_0x2e2aba,_0x2e250d,_0x13fc49,_0x5e4748,{'groupId':_0x2aaf1a});this['_reduceExistingSuggestions'](_0x5ad1d1,_0xbdc7c3);});},{'priority':'lowest'}),_0x1462f0['model']['markers']['on']('update:suggestion',(_0x3466ee,_0x42ca3b,_0x2ae5ff)=>{if(null==_0x2ae5ff){const {id:_0x515dce}=this['_splitMarkerName'](_0x42ca3b['name']),_0x1abe9c=this['_suggestions']['get'](_0x515dce);_0x1abe9c&&_0x1abe9c['addMarkerName'](_0x42ca3b['name']);}}),_0x1462f0['model']['document']['on']('change:data',()=>{const _0x32036a=Array['from'](_0x1462f0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5152ae=>'suggestion'===this['_splitMarkerName'](_0x5152ae['name'])['group']);if(0x0===_0x32036a['length'])return;_0x32036a['sort']((_0x44936d,_0x380c3e)=>{const _0x59517b=_0x44936d['data']['oldRange'],_0x23f8e5=_0x380c3e['data']['oldRange'];return null===_0x59517b&&null===_0x23f8e5?0x0:null===_0x59517b&&null!==_0x23f8e5?-0x1:null!==_0x59517b&&null===_0x23f8e5?0x1:_0x59517b['start']['isBefore'](_0x23f8e5['start'])?-0x1:0x1;});const _0x17f970=new Set(),_0x1da163=new Set();for(const {name:_0x5f1891,data:_0x59bb16}of _0x32036a){const {id:_0x122412}=this['_splitMarkerName'](_0x5f1891);if(null===_0x59bb16['oldRange']){const _0x5a6e12=this['_handleNewSuggestionMarker'](_0x5f1891);_0x1da163['add'](_0x5a6e12);}else{const _0x1f47ba=this['_suggestions']['get'](_0x122412);null!==_0x59bb16['newRange']||_0x1f47ba['isInContent']?(_0x17f970['add'](_0x1f47ba['head']),_0x1da163['add'](_0x1f47ba)):this['_removeSuggestion'](_0x1f47ba);}}_0x1da163['size']>0x0&&this['_refreshSuggestionsChain'](_0x1da163);for(const _0x5e184d of _0x17f970)this['fire']('suggestionChanged',_0x5e184d);}),_0x1462f0['model']['on']('applyOperation',(_0x157884,_0x154a2c)=>{const _0xe6cfdd=_0x154a2c[0x0];if(!this['_suggestions']['size'])return;if(!_0xe6cfdd['isDocumentOperation'])return;if(_0xe6cfdd['batch']['isUndo']||!_0xe6cfdd['batch']['isLocal'])return;let _0x4f8c5b,_0x54594f;switch(_0xe6cfdd['type']){case'insert':_0x4f8c5b=_0x1462f0['model']['createPositionAt'](_0xe6cfdd['position']),_0x54594f=_0x4f8c5b['getShiftedBy'](_0xe6cfdd['howMany']);break;case'split':_0x4f8c5b=_0x1462f0['model']['createPositionAt'](_0xe6cfdd['splitPosition']),_0x54594f=_0x1462f0['model']['createPositionAt'](_0xe6cfdd['moveTargetPosition']);break;case'move':_0x4f8c5b=_0x1462f0['model']['createPositionAt'](_0xe6cfdd['targetPosition']),_0x54594f=_0x4f8c5b['getShiftedBy'](_0xe6cfdd['howMany']);break;default:return;}const _0x223521=_0x1462f0['model']['createRange'](_0x4f8c5b,_0x54594f);_0x1462f0['model']['change'](()=>{for(const {suggestion:_0x523df0,meta:_0x7b68c4}of this['_findSuggestions'](_0x223521)){if(_0x523df0['isMultiRange'])continue;if('formatInline'==_0x523df0['type'])continue;const _0x296d88=this['_getAttributeKey'](_0x523df0);if(_0x296d88&&this['_isBlockAttribute'](_0x296d88)&&'split'!=_0xe6cfdd['type'])continue;const _0x513ccf=_0x523df0['data']&&_0x523df0['data']['multipleBlocks'];('formatBlock'!=_0x523df0['type']||'split'==_0xe6cfdd['type']&&!_0x513ccf)&&(_0x7b68c4['containsRangeInObject']||'insertion'==_0x523df0['type']&&_0x7b68c4['isOwn']||_0x523df0['getFirstRange']()['containsRange'](_0x223521)&&this['_breakSuggestionMarker'](_0x523df0,_0x4f8c5b,_0x54594f));}});},{'priority':'lowest'}),_0x1462f0['model']['on']('deleteContent',(_0x42bbe8,_0x286f1e)=>{const _0x4917cb=_0x286f1e[0x0],_0x248f03=_0x286f1e[0x1];if(_0x248f03&&_0x248f03['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4917cb['isCollapsed'])return;const _0x26f6d5=_0x1462f0['model']['schema'],{start:_0x4ca2be,end:_0x3ca557}=_0x4917cb['getFirstRange'](),_0x4348c9=_0x4ca2be['nodeAfter']&&_0x26f6d5['isLimit'](_0x4ca2be['nodeAfter'])?null:_0x26f6d5['getNearestSelectionRange'](_0x4ca2be,'forward'),_0x512931=_0x3ca557['nodeBefore']&&_0x26f6d5['isLimit'](_0x3ca557['nodeBefore'])?null:_0x26f6d5['getNearestSelectionRange'](_0x3ca557,'backward'),_0x309459=_0x1462f0['model']['createRange'](_0x4348c9?_0x4348c9['start']:_0x4ca2be,_0x512931?_0x512931['end']:_0x3ca557);_0x1462f0['model']['change'](_0x2a749f=>{this['markDeletion'](_0x309459);const _0x1151d5=_0x1462f0['model']['schema']['getNearestSelectionRange'](_0x309459['start']);_0x4917cb['is']('documentSelection')?_0x2a749f['setSelection'](_0x1151d5):_0x4917cb['setTo'](_0x1151d5);}),_0x42bbe8['stop']();},{'priority':_0x5382c2['normal']+0xa}),_0x1462f0['model']['on']('insertContent',(_0x581739,_0x54952a)=>{const _0x1d3a8a=_0x54952a[_0x54952a['length']-0x1];_0x1d3a8a&&_0x1d3a8a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1462f0['model']['change'](()=>{let _0x4d8a3f=_0x1462f0['model']['insertContent'](_0x54952a[0x0],_0x54952a[0x1],_0x54952a[0x2],{'forceDefaultExecution':!0x0});if(!_0x4d8a3f)return;_0x581739['return']=_0x4d8a3f['clone']();const _0x20e3bc=_0x4d8a3f['end']['nodeBefore'],_0x3d3a9f=_0x1462f0['model']['schema'];_0x20e3bc&&_0x3d3a9f['isBlock'](_0x20e3bc)&&!_0x3d3a9f['isObject'](_0x20e3bc)&&(_0x4d8a3f=_0x1462f0['model']['createRange'](_0x4d8a3f['start'],_0x1462f0['model']['createPositionAt'](_0x20e3bc,'end'))),this['markInsertion'](_0x4d8a3f);}),_0x581739['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5d2bbb=new v(_0x1462f0,this['_suggestions']);_0x1462f0['commands']['add']('acceptSuggestion',_0x5d2bbb),this['enableCommand']('acceptSuggestion');const _0x1d0f0a=new D(_0x1462f0,this['_suggestions']);_0x1462f0['commands']['add']('discardSuggestion',_0x1d0f0a),this['enableCommand']('discardSuggestion'),_0x1462f0['commands']['add']('acceptAllSuggestions',new B(_0x1462f0,_0x5d2bbb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1462f0['commands']['add']('discardAllSuggestions',new B(_0x1462f0,_0x1d0f0a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1462f0['commands']['add']('acceptSelectedSuggestions',new O(_0x1462f0,_0x5d2bbb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1462f0['commands']['add']('discardSelectedSuggestions',new O(_0x1462f0,_0x1d0f0a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x57ea0e=_0x1462f0['plugins']['get']('CommentsRepository');this['listenTo'](_0x57ea0e,'addComment',(_0x4e198b,{threadId:_0x1e7376})=>{const _0x285561=this['_suggestions']['get'](_0x1e7376);_0x285561&&_0x285561['commentThread']&&0x1===_0x285561['commentThread']['length']&&this['_updateSuggestionData'](_0x1e7376,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x57ea0e,'removeComment',(_0x17fbfc,{threadId:_0xb3c06b})=>{const _0xdb7dda=this['_suggestions']['get'](_0xb3c06b);_0xdb7dda&&_0xdb7dda['commentThread']&&!_0xdb7dda['commentThread']['length']&&this['_updateSuggestionData'](_0xb3c06b,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x440a53){const _0x1a4406=_0x1d8612([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x29c5d6=0x3d8d0df,_0x1a58f7=0x3dfaa97^_0x29c5d6,_0x2117eb=window[_0x1d8612([0x44,0x61,0x74,0x65])][_0x1d8612([0x6e,0x6f,0x77])](),_0x5058c=_0x440a53[_0x1d8612([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2667a2=new window[(_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x530564=>{_0x5058c[_0x1d8612([0x6f,0x6e,0x63,0x65])](_0x1d8612([0x72,0x65,0x61,0x64,0x79]),_0x530564);}),_0x6201e7={[_0x1d8612([0x6b,0x74,0x79])]:_0x1d8612([0x45,0x43]),[_0x1d8612([0x75,0x73,0x65])]:_0x1d8612([0x73,0x69,0x67]),[_0x1d8612([0x63,0x72,0x76])]:_0x1d8612([0x50,0x2d,0x32,0x35,0x36]),[_0x1d8612([0x78])]:_0x1d8612([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]),[_0x1d8612([0x79])]:_0x1d8612([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]),[_0x1d8612([0x61,0x6c,0x67])]:_0x1d8612([0x45,0x53,0x32,0x35,0x36])},_0x5dd792=_0x5058c[_0x1d8612([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d8612([0x67,0x65,0x74])](_0x1d8612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x182649(){let _0x3078ae,_0x473f39=null,_0x1e12b4=null;try{if(_0x5dd792==_0x1d8612([0x47,0x50,0x4c]))return _0x1d8612([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3078ae=_0x4c68b0(),!_0x3078ae)return _0x1d8612([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3078ae[_0x1d8612([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e12b4=_0xe6c5a9(_0x3078ae[_0x1d8612([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3078ae[_0x1d8612([0x6a,0x74,0x69])])),await _0x3d4a1b()?_0x11b2d8()?_0x589213()?_0x1d8612([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x550188()?(_0x3078ae[_0x1d8612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d8612([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x473f39=_0x24cb46(_0x1d8612([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3078ae[_0x1d8612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d8612([0x74,0x72,0x69,0x61,0x6c])&&(_0x473f39=_0x24cb46(_0x1d8612([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16f02e()):_0x1d8612([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d8612([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d8612([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1d8612([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x589213(){const _0xfb5c70=[_0x1d8612([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d8612([0x74,0x72,0x69,0x61,0x6c])][_0x1d8612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3078ae[_0x1d8612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2117eb/0x3e8:0xe10*_0x1a58f7;return _0x3078ae[_0x1d8612([0x65,0x78,0x70])]<_0xfb5c70;}function _0x11b2d8(){const _0x1065c6=_0x3078ae[_0x1d8612([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1065c6)return!0x1;if(_0x1065c6[_0x1d8612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d8612([0x2a])))return!0x0;if(_0x1065c6[_0x1d8612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d8612([0x54,0x43])))return!0x0;if(_0x1065c6[_0x1d8612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d8612([0x52,0x54,0x43]))){if(_0x1cdca6())return!0x0;if(_0x2f6149()||_0x505f7d())return!0x0;}return!0x1;}function _0x550188(){const _0x15fcc9=_0x3078ae[_0x1d8612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x15fcc9||0x0==_0x15fcc9[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c1fbc}=new URL(window[_0x1d8612([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x15fcc9[_0x1d8612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c1fbc))return!0x0;const _0x1fd8c3=_0x5c1fbc[_0x1d8612([0x73,0x70,0x6c,0x69,0x74])](_0x1d8612([0x2e]));return _0x15fcc9[_0x1d8612([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48d20c=>_0x48d20c[_0x1d8612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d8612([0x2a])))[_0x1d8612([0x6d,0x61,0x70])](_0x1f0a32=>_0x1f0a32[_0x1d8612([0x73,0x70,0x6c,0x69,0x74])](_0x1d8612([0x2e])))[_0x1d8612([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19a8c0=>_0x19a8c0[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1fd8c3[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d8612([0x6d,0x61,0x70])](_0x131246=>Array(_0x1fd8c3[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x131246[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d8612([0x66,0x69,0x6c,0x6c])](_0x131246[0x0]===_0x1d8612([0x2a])?_0x1d8612([0x2a]):'')[_0x1d8612([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x131246))[_0x1d8612([0x73,0x6f,0x6d,0x65])](_0x4be41a=>_0x1fd8c3[_0x1d8612([0x65,0x76,0x65,0x72,0x79])]((_0x1ca823,_0x553d68)=>_0x4be41a[_0x553d68]===_0x1ca823||_0x4be41a[_0x553d68]===_0x1d8612([0x2a])));}function _0x16f02e(){return _0x473f39&&_0x1e12b4?new window[(_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2018d1,_0x2d1799)=>{_0x473f39[_0x1d8612([0x74,0x68,0x65,0x6e])](_0x2018d1,_0x2d1799),_0x1e12b4[_0x1d8612([0x74,0x68,0x65,0x6e])](_0xfaebce=>{_0xfaebce!=_0x1d8612([0x56,0x61,0x6c,0x69,0x64])&&_0x2018d1(_0xfaebce);},_0x2d1799);}):_0x473f39||_0x1e12b4||_0x1d8612([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe6c5a9(_0x513a1d,_0x3c1ca2){return new window[(_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d78f8=>{if(_0x5b7bcb())return _0x3d78f8(_0x1d8612([0x56,0x61,0x6c,0x69,0x64]));_0x55cc67(),_0x5058c[_0x1d8612([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d8612([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d07fd=!0x1;const _0x1ca63e=_0xe7a85c();function _0x49229e(_0x373308){return!!_0x373308&&(typeof _0x373308===_0x1d8612([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x373308===_0x1d8612([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x373308[_0x1d8612([0x74,0x68,0x65,0x6e])]===_0x1d8612([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x373308[_0x1d8612([0x63,0x61,0x74,0x63,0x68])]===_0x1d8612([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x436b4f(_0x2991a3){_0xb5f632(_0x2991a3)[_0x1d8612([0x74,0x68,0x65,0x6e])](_0x1d9552=>{if(!_0x1d9552||_0x1d9552[_0x1d8612([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d8612([0x6f,0x6b]))return _0x1d8612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x16a9a1(_0x5dd064(_0x1ca63e+_0x3c1ca2))!=_0x1d9552[_0x1d8612([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d8612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d8612([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d8612([0x74,0x68,0x65,0x6e])](_0x323223=>(_0x45b5a0(),_0x323223),()=>{const _0x2478a4=_0x498089();return null==_0x2478a4?(_0x45b5a0(),_0x1d8612([0x56,0x61,0x6c,0x69,0x64])):_0x1d8612(_0x2117eb-_0x2478a4>(0x27d454df^_0x29c5d6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d8612([0x74,0x68,0x65,0x6e])](_0x3d78f8)[_0x1d8612([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d78f8(_0x1d8612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x560fd1=0x3ee3e5f^_0x29c5d6;function _0x45b5a0(){const _0x3cb2dc=_0x1d8612([0x6c,0x6c,0x63,0x74,0x2d])+_0x16a9a1(_0x5dd064(_0x513a1d)),_0x23d355=_0x2d212a(_0x16a9a1(window[_0x1d8612([0x4d,0x61,0x74,0x68])][_0x1d8612([0x63,0x65,0x69,0x6c])](_0x2117eb/_0x560fd1)));window[_0x1d8612([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d8612([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cb2dc,_0x23d355);}function _0x498089(){const _0x35e5a3=_0x1d8612([0x6c,0x6c,0x63,0x74,0x2d])+_0x16a9a1(_0x5dd064(_0x513a1d)),_0x36dd11=window[_0x1d8612([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d8612([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35e5a3);return _0x36dd11?window[_0x1d8612([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d212a(_0x36dd11),0x10)*_0x560fd1:null;}function _0xb5f632(_0x11e2fc){return new window[(_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15af15,_0x2fccc4)=>{_0x11e2fc[_0x1d8612([0x74,0x68,0x65,0x6e])](_0x15af15,_0x2fccc4),window[_0x1d8612([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fccc4,0x3d9041f^_0x29c5d6);});}}_0x5058c[_0x1d8612([0x6f,0x6e])](_0x1d8612([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12e45f,_0x399ba4)=>{if(_0x399ba4[0x0]!=_0x513a1d)return _0x3d78f8(_0x1d8612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x399ba4[0x1]={..._0x399ba4[0x1],[_0x1d8612([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1ca63e};},{[_0x1d8612([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d8612([0x68,0x69,0x67,0x68])}),_0x5058c[_0x1d8612([0x6f,0x6e])](_0x1d8612([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5bd9bd=>{_0x49229e(_0x5bd9bd[_0x1d8612([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d07fd=!0x0,_0x436b4f(_0x5bd9bd[_0x1d8612([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d8612([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d8612([0x6c,0x6f,0x77])}),_0x2667a2[_0x1d8612([0x74,0x68,0x65,0x6e])](()=>{_0x3d07fd||_0x3d78f8(_0x1d8612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b7bcb(){return _0x5058c[_0x1d8612([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d8612([0x76,0x69,0x65,0x77])][_0x1d8612([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d8612([0x61,0x75,0x74,0x6f]);}function _0x55cc67(){_0x5058c[_0x1d8612([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d8612([0x76,0x69,0x65,0x77])][_0x1d8612([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d8612([0x61,0x75,0x74,0x6f]);}}function _0x24cb46(_0x399daa){const _0x4ae4cd=[new window[(_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41cf19=>setTimeout(_0x41cf19,0x3d1ee13^_0x29c5d6)),_0x2667a2[_0x1d8612([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x399057=>{let _0x3b0a4a=0x0;_0x5058c[_0x1d8612([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d8612([0x6f,0x6e])](_0x1d8612([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x57f127,_0x51fa7f)=>{_0x51fa7f[0x0][_0x1d8612([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3b0a4a++,_0x3b0a4a==(0x3d8d127^_0x29c5d6)&&(_0x399057(),_0x57f127[_0x1d8612([0x6f,0x66,0x66])]());});}))];return window[_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d8612([0x72,0x61,0x63,0x65])](_0x4ae4cd)[_0x1d8612([0x74,0x68,0x65,0x6e])](()=>_0x399daa);}async function _0x3e8f26(){await _0x2667a2,_0x5058c[_0x1d8612([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d8612([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x406e82,_0x5058c[_0x1d8612([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d8612([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x406e82,_0x5058c[_0x1d8612([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d8612([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1cdca6(){return _0x1c3000(_0x1d8612([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x464ca5(_0x1d8612([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1d8612([0x73,0x74,0x61,0x74,0x65])]==_0x1d8612([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2f6149(){return _0x1c3000(_0x1d8612([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 _0x505f7d(){return _0x1c3000(_0x1d8612([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2f4a1a(_0xa2efe4){const _0x38355c=_0x5726d5();_0x5058c[_0x38355c]=_0x1d8612([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xa2efe4,_0xa2efe4!=_0x1d8612([0x56,0x61,0x6c,0x69,0x64])&&_0x3e8f26();}function _0x5726d5(){const _0x5b5f11=window[_0x1d8612([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d8612([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d8612([0x6e,0x6f,0x77])]())[_0x1d8612([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d8612([0x2e]),'');let _0x594f59=_0x1d8612([0x52]);for(let _0x32ef50=0x0;_0x32ef50<_0x5b5f11[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32ef50+=0x2){let _0xf2cb15=window[_0x1d8612([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b5f11[_0x1d8612([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32ef50,_0x32ef50+0x2));_0xf2cb15>=_0x1a4406[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf2cb15-=_0x1a4406[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x594f59+=_0x1a4406[_0xf2cb15];}return _0x594f59;}function _0x4c68b0(){const _0x10e457=_0x5dd792[_0x1d8612([0x73,0x70,0x6c,0x69,0x74])](_0x1d8612([0x2e]));if(0x3!=_0x10e457[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x384456(_0x10e457[0x1]);function _0x384456(_0x2547bb){const _0x51f6ce=_0xf8c2a3(_0x2547bb);return _0x51f6ce&&_0x501412()?_0x51f6ce:null;function _0x501412(){const _0x13f00c=_0x51f6ce[_0x1d8612([0x6a,0x74,0x69])],_0x1e490d=window[_0x1d8612([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13f00c[_0x1d8612([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13f00c[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x339c32={..._0x51f6ce,[_0x1d8612([0x6a,0x74,0x69])]:_0x13f00c[_0x1d8612([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x13f00c[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x339c32[_0x1d8612([0x76,0x63])],_0x5dd064(_0x339c32)==_0x1e490d;}}}async function _0x3d4a1b(){let _0x3ecf08=!0x0;try{const _0x4dfb43=_0x5dd792[_0x1d8612([0x73,0x70,0x6c,0x69,0x74])](_0x1d8612([0x2e])),[_0x3d0d43,_0x60aedc,_0x269145]=_0x4dfb43;return _0x46a237(_0x3d0d43),await _0x6b2aba(_0x3d0d43,_0x60aedc,_0x269145),_0x3ecf08;}catch{return!0x1;}function _0x46a237(_0x1cdc95){const _0xdde555=_0xf8c2a3(_0x1cdc95);_0xdde555&&_0xdde555[_0x1d8612([0x61,0x6c,0x67])]==_0x1d8612([0x45,0x53,0x32,0x35,0x36])||(_0x3ecf08=!0x1);}async function _0x6b2aba(_0x20e1b8,_0x26ef16,_0x2c50f2){const _0x3607bf=window[_0x1d8612([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d8612([0x66,0x72,0x6f,0x6d])](_0x54bb93(_0x2c50f2),_0x12b7c0=>_0x12b7c0[_0x1d8612([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x532a78=new window[(_0x1d8612([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d8612([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x20e1b8+_0x1d8612([0x2e])+_0x26ef16),_0x52ba9a=window[_0x1d8612([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d8612([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x52ba9a)return;const _0x139401=await _0x52ba9a[_0x1d8612([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d8612([0x6a,0x77,0x6b]),_0x6201e7,{[_0x1d8612([0x6e,0x61,0x6d,0x65])]:_0x1d8612([0x45,0x43,0x44,0x53,0x41]),[_0x1d8612([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d8612([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d8612([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x52ba9a[_0x1d8612([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d8612([0x6e,0x61,0x6d,0x65])]:_0x1d8612([0x45,0x43,0x44,0x53,0x41]),[_0x1d8612([0x68,0x61,0x73,0x68])]:{[_0x1d8612([0x6e,0x61,0x6d,0x65])]:_0x1d8612([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x139401,_0x3607bf,_0x532a78)||(_0x3ecf08=!0x1);}}function _0xf8c2a3(_0x53dc5d){return _0x53dc5d[_0x1d8612([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d8612([0x65,0x79]))?JSON[_0x1d8612([0x70,0x61,0x72,0x73,0x65])](_0x54bb93(_0x53dc5d)):null;}function _0x54bb93(_0x3555ea){return window[_0x1d8612([0x61,0x74,0x6f,0x62])](_0x3555ea[_0x1d8612([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d8612([0x2b]))[_0x1d8612([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d8612([0x2f])));}function _0x5dd064(_0x5d24cc){let _0x497f07=0x1505;function _0x2c2396(_0x16141c){for(let _0x43c358=0x0;_0x43c358<_0x16141c[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43c358++){const _0x1eee04=_0x16141c[_0x1d8612([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43c358);_0x497f07=(_0x497f07<<0x5)+_0x497f07+_0x1eee04,_0x497f07&=_0x497f07;}}function _0x1372ad(_0x2f4691){Array[_0x1d8612([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2f4691)?_0x2f4691[_0x1d8612([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1372ad):_0x2f4691&&typeof _0x2f4691==_0x1d8612([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d8612([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2f4691)[_0x1d8612([0x73,0x6f,0x72,0x74])]()[_0x1d8612([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4fbe09,_0x37fa36])=>{_0x2c2396(_0x4fbe09),_0x1372ad(_0x37fa36);}):_0x2c2396(window[_0x1d8612([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2f4691));}return _0x1372ad(_0x5d24cc),_0x497f07>>>0x0;}function _0x16a9a1(_0x2963ac){return _0x2963ac[_0x1d8612([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d8612([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d8612([0x30]));}function _0x2d212a(_0x4a495c){return _0x4a495c[_0x1d8612([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d8612([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d8612([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c3000(_0x433f5f){return _0x5058c[_0x1d8612([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d8612([0x68,0x61,0x73])](_0x433f5f);}function _0x464ca5(_0x1b823d){return _0x5058c[_0x1d8612([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d8612([0x67,0x65,0x74])](_0x1b823d);}function _0x406e82(){}function _0x1d8612(_0x5a94f4){return _0x5a94f4['map'](_0x1c3771=>String['fromCharCode'](_0x1c3771))['join']('');}_0x2f4a1a(await _0x182649());}(this);}set['adapter'](_0xf590ac){if(this['_adapter'])throw new _0x4bd1ef('track-changes-adapter-already-set',this);this['_adapter']=_0xf590ac;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3765c1=!0x1,toJSON:_0x5b7a8e=!0x1}={}){const _0x48017e=[];for(const _0x39c328 of this['_suggestions']['values']())_0x3765c1&&!_0x39c328['isInContent']||_0x48017e['push'](_0x39c328);return _0x5b7a8e?_0x48017e['map'](_0x13ee20=>_0x13ee20['toJSON']()):_0x48017e;}['getSuggestion'](_0x25d22b){const _0x33cff5=this['_suggestions']['get'](_0x25d22b);if(!_0x33cff5)throw new _0x4bd1ef('track-changes-suggestion-not-found',this);return _0x33cff5;}['hasSuggestion'](_0x326397){return this['_suggestions']['has'](_0x326397);}['addSuggestionData'](_0x5af041){const {authorId:_0x5377c3,id:_0x4a0aa0,originalSuggestionId:_0x93c630,attributes:_0x24e775}=_0x5af041,[_0x3a87ad,_0x64cf10]=_0x5af041['type']['split'](':'),_0x4f457b=this['_suggestions']['get'](_0x4a0aa0)||this['_createSuggestion'](_0x3a87ad,_0x64cf10,_0x4a0aa0,_0x5377c3,_0x24e775,_0x93c630);if(this['_addThreadToSuggestion'](_0x4f457b),this['_checkSuggestionCorrectness'](_0x4f457b,_0x3a87ad,_0x64cf10||null,_0x5377c3),_0x4f457b['createdAt']=_0x5af041['createdAt'],_0x4f457b['_isDataLoaded']=!0x0,_0x24e775&&_0x24e775['@external']){const _0x53a491=_0x24e775['@external'],_0x23e9f4=this['_getExternalAuthor'](_0x53a491['authorName']);_0x4f457b['authoredAt']=_0x53a491['createdAt'],_0x4f457b['author']=_0x23e9f4,_0x4f457b['isExternal']=!0x0;}else _0x4f457b['authoredAt']=_0x5af041['createdAt'];switch(_0x5af041['data']&&(_0x4f457b['data']=_0x5af041['data']),_0x5af041['attributes']&&(_0x4f457b['attributes']=_0x5af041['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4f457b['_saved']=!0x0),this['_suggestionState']['get'](_0x4f457b)){case'notReady':this['_suggestionState']['set'](_0x4f457b,'dataReady');break;case'markerReady':_0x4f457b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4f457b])),this['_refreshSuggestionsChain'](new Set([_0x4f457b])),this['_suggestionState']['set'](_0x4f457b,'ready'),this['fire']('suggestionLoaded',_0x4f457b)):this['_suggestionState']['set'](_0x4f457b,'removed');}return _0x4f457b;}['acceptSuggestion'](_0x53c58e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x491bb5 of _0x53c58e['getAllAdjacentSuggestions']())_0x491bb5['accept']();});});}['discardSuggestion'](_0x347d79){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x260b7f of _0x347d79['getAllAdjacentSuggestions']())_0x260b7f['discard']();});});}['enableCommand'](_0xf8b13a,_0x28a5d8){const _0x58eaa2=this['editor']['commands']['get'](_0xf8b13a);if(!_0x58eaa2)throw new _0x4bd1ef('track-changes-command-not-found',this,{'commandName':_0xf8b13a});if(this['_enabledCommands']['has'](_0x58eaa2))throw new _0x4bd1ef('track-changes-enable-command-twice',this,{'commandName':_0xf8b13a});this['_enabledCommands']['add'](_0x58eaa2),_0x28a5d8&&_0x58eaa2['on']('execute',(_0x462564,_0x4abe7a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4abe7a['length']>0x0&&_0x4abe7a[_0x4abe7a['length']-0x1]&&_0x4abe7a[_0x4abe7a['length']-0x1]['forceDefaultExecution']?_0x4abe7a['pop']():(_0x462564['return']=_0x28a5d8((..._0x2c4b16)=>_0x58eaa2['execute'](..._0x2c4b16,{'forceDefaultExecution':!0x0}),..._0x4abe7a),_0x462564['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1bcf10){let _0xc59092,_0x257466;const _0xcca32b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xc59092=_0x1bcf10();}catch(_0x565a41){_0x257466=_0x565a41;}return _0xcca32b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x257466&&_0x4bd1ef['rethrowUnexpectedError'](_0x257466,this),_0xc59092;}['markInsertion'](_0x3c9a88,_0x297ed8=null,_0x494982={}){if(_0x3c9a88['isCollapsed'])return null;const _0x4dcf81=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x494982['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2bae81,meta:_0x526851}of this['_findSuggestions'](_0x3c9a88,'insertion'))if(_0x526851['isOwn']){if(!_0x526851['isNextTo']){if(_0x526851['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x2bae81,_0x494982))continue;return _0x2bae81;}if(sn(_0x2bae81,_0x494982))return _0x2bae81;this['_breakSuggestionMarker'](_0x2bae81,_0x3c9a88['start'],_0x3c9a88['end']);break;}if(_0x297ed8==_0x2bae81['subType']&&sn(_0x2bae81,_0x494982)){const _0x20a2f9=_0x2bae81['getFirstRange']();return _0x20a2f9['start']['isEqual'](_0x3c9a88['end'])?this['_setSuggestionRange'](_0x2bae81,this['_model']['createRange'](_0x3c9a88['start'],_0x20a2f9['end'])):this['_setSuggestionRange'](_0x2bae81,this['_model']['createRange'](_0x20a2f9['start'],_0x3c9a88['end'])),_0x2bae81;}}const _0x590d28=_0xe7a85c(),_0x8a791b=_0x4dcf81['id'],_0x1079a3=_0x297ed8?'insertion:'+_0x297ed8:'insertion',_0x85b89c=this['_setSuggestionData']({'id':_0x590d28,'type':_0x1079a3,'createdAt':new Date(),'authorId':_0x8a791b,'attributes':_0x494982});return this['_addSuggestionMarker'](_0x1079a3,_0x590d28,_0x8a791b,_0x3c9a88),_0x85b89c;}['markMultiRangeInsertion'](_0x5861d4,_0x544c84='multi',_0x47d62f={}){const _0x1b5902=this['editor']['plugins']['get']('Users')['me'],_0x330557=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x544c84,'join');this['_trackingSessionId']&&(_0x47d62f['trackingSessionId']=this['_trackingSessionId']);for(const _0x15129d of this['getSuggestions']())if(_0x15129d['author']['id']==_0x1b5902['id']&&'insertion'==_0x15129d['type']&&_0x15129d['subType']==_0x544c84&&sn(_0x15129d,_0x47d62f)&&(_0x330557(_0x15129d['getRanges'](),_0x5861d4)||_0x330557(_0x5861d4,_0x15129d['getRanges']()))){for(const _0x4844dc of _0x5861d4)_0x15129d['addRange'](_0x4844dc);return _0x15129d;}for(const {suggestion:_0x3b4ab5,meta:_0x570645}of this['_findSuggestions'](_0x5861d4,'insertion')){if(!_0x570645['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x570645['containsRangeInObject'])continue;if(!sn(_0x3b4ab5,_0x47d62f))continue;let _0x22ecfd=!0x0;for(const _0x4d4b6f of _0x3b4ab5['getRanges']())for(const _0x1e86a2 of _0x5861d4)if(!_0x4d4b6f['containsRange'](_0x1e86a2)){_0x22ecfd=!0x1;break;}if(_0x22ecfd)return _0x3b4ab5;}const _0x1340a0=_0xe7a85c(),_0x3dec18=_0x1b5902['id'],_0x85760f='insertion:'+_0x544c84,_0x5beb14=this['_setSuggestionData']({'id':_0x1340a0,'type':_0x85760f,'createdAt':new Date(),'authorId':_0x3dec18,'attributes':_0x47d62f});for(const _0x11d4ec of _0x5861d4)this['_addSuggestionMarker'](_0x85760f,_0x1340a0,_0x3dec18,_0x11d4ec,x['getMultiRangeId']());return _0x5beb14;}['markInlineFormat'](_0x5c99ce,_0x19b969,_0x1f7862=null,_0x45da37={}){if(_0x1f7862=_0x1f7862||Ht(_0x19b969),_0x5c99ce['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x45da37['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c65fd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f7862,'accept');return this['forceDefaultExecution'](()=>_0x2c65fd([_0x5c99ce],_0x19b969,_0x45da37)),null;}const _0x46d06b=this['editor']['plugins']['get']('Users')['me'],_0x3250e0=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x224e15,meta:_0x2a64e2}of this['_findSuggestions'](_0x5c99ce,'insertion'))_0x2a64e2['isOwn']&&!_0x2a64e2['isInsideObject']&&_0x3250e0['push'](..._0x224e15['getRanges']());}const _0xc3efd9=function(_0x55d882,_0x38223e){const _0xc8f9fa=[];for(const _0x8d3ba8 of _0x38223e){const _0x548f85=_0x55d882['getIntersection'](_0x8d3ba8);_0x548f85&&_0xc8f9fa['push'](_0x548f85);}return _0xc8f9fa;}(_0x5c99ce,_0x3250e0),_0x308137=function(_0x5c66dc,_0x41b768){const _0x4c8438=[_0x5c66dc];for(const _0x5cf2a2 of _0x41b768){let _0x5505f2=0x0;for(;_0x5505f2<_0x4c8438['length'];){const _0x4407b6=_0x4c8438[_0x5505f2]['getDifference'](_0x5cf2a2);_0x4c8438['splice'](_0x5505f2,0x1,..._0x4407b6),_0x5505f2+=_0x4407b6['length'];}}return _0x4c8438;}(_0x5c99ce,_0x3250e0);_0xc3efd9['length']&&this['_model']['change'](()=>{for(const _0x58ea92 of _0xc3efd9){const _0x41b9c5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f7862,'accept');this['forceDefaultExecution'](()=>_0x41b9c5([_0x58ea92],_0x19b969,_0x45da37));}});for(const _0x191c1b of _0x308137){let _0x5a89fc=null,_0x51f66b=_0x191c1b['start'],_0x121564=_0x191c1b['end'];for(const {suggestion:_0x2b3ca0,meta:_0x58dfc6}of this['_findSuggestions'](_0x191c1b,'formatInline')){if(!_0x58dfc6['isOwn'])continue;if(_0x2b3ca0['subType']!=_0x1f7862)continue;if(!sn(_0x2b3ca0,_0x45da37))continue;const _0x56b5f3=_0x2b3ca0['getFirstRange']();if(_0x56b5f3['containsRange'](_0x191c1b,!0x0))return null;_0x51f66b=_0x51f66b['isBefore'](_0x56b5f3['start'])?_0x51f66b:_0x56b5f3['start'],_0x121564=_0x121564['isAfter'](_0x56b5f3['end'])?_0x121564:_0x56b5f3['end'],_0x5a89fc?_0x56b5f3['start']['isBefore'](_0x5a89fc['getFirstRange']()['start'])?(_0x5a89fc['removeMarkers'](),_0x5a89fc=_0x2b3ca0):_0x2b3ca0['removeMarkers']():_0x5a89fc=_0x2b3ca0;}const _0xb9a4c5=this['_model']['createRange'](_0x51f66b,_0x121564);if(_0x5a89fc)this['_setSuggestionRange'](_0x5a89fc,_0xb9a4c5);else{const _0x10fced=_0xe7a85c(),_0x568178=_0x46d06b['id'];this['_setSuggestionData']({'id':_0x10fced,'type':'formatInline:'+_0x1f7862,'data':_0x19b969,'createdAt':new Date(),'authorId':_0x568178,'attributes':_0x45da37}),this['_addSuggestionMarker']('formatInline:'+_0x1f7862,_0x10fced,_0x568178,_0xb9a4c5);}}return null;}['markBlockFormat'](_0xc30d8c,_0x42c316,_0x4ca61c=[],_0x2f1a69=null,_0x4bd971={}){_0x42c316['formatGroupId']||(_0x42c316['formatGroupId']=_0x42c316['commandName']),_0x42c316['multipleBlocks']=_0xc30d8c['is']('range'),_0x2f1a69=_0x2f1a69||Ht(_0x42c316);const _0x557ee9=_0x4ca61c['map'](_0x39e960=>tn(_0x39e960,this['_model'])),_0x2b7625=_0xc30d8c['is']('range')?_0xc30d8c:tn(_0xc30d8c,this['_model']);if(this['_trackingSessionId']&&(_0x4bd971['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x424a90=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2f1a69,'accept');return this['forceDefaultExecution'](()=>_0x424a90([_0x2b7625],_0x42c316,_0x4bd971)),null;}_0x557ee9['push'](_0x2b7625);let _0x37d8bd=!0x0;for(const _0x40d864 of _0x557ee9)if(!this['_rangeIsInLocalUserInsertion'](_0x40d864)){_0x37d8bd=!0x1;break;}if(_0x37d8bd&&'always'!==this['_trackFormatChanges']){const _0x51b9da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2f1a69,'accept');return this['forceDefaultExecution'](()=>_0x51b9da([_0x2b7625],_0x42c316,_0x4bd971)),null;}let _0x3f11fe=null,_0x5f02ca=_0x2b7625['start'],_0x5cb552=_0x2b7625['end'];for(const {suggestion:_0x431244,meta:_0xe67116}of this['_findSuggestions'](_0x2b7625,'formatBlock')){if(!_0xe67116['isOwn'])continue;if(_0xe67116['isNextTo']||_0xe67116['containsRangeInObject']||_0xe67116['isInsideObject'])continue;if(_0x431244['data']['formatGroupId']!=_0x42c316['formatGroupId'])continue;if(!sn(_0x431244,_0x4bd971))continue;const _0x414844=_0x431244['getFirstRange']();if(_0x431244['subType']==_0x2f1a69){if(_0x414844['containsRange'](_0x2b7625,!0x0))return null;_0x5f02ca=_0x5f02ca['isBefore'](_0x414844['start'])?_0x5f02ca:_0x414844['start'],_0x5cb552=_0x5cb552['isAfter'](_0x414844['end'])?_0x5cb552:_0x414844['end'],_0x3f11fe?_0x414844['start']['isBefore'](_0x3f11fe['getFirstRange']()['start'])?(_0x3f11fe['removeMarkers'](),_0x3f11fe=_0x431244):_0x431244['removeMarkers']():_0x3f11fe=_0x431244;}else{const _0x3a1f54=_0x2b7625['getIntersection'](_0x414844);this['_cutOutSuggestionMarker'](_0x431244,_0x3a1f54);}}const _0x48a881=this['editor']['plugins']['get']('Users')['me'],_0x5f4c03=_0xe7a85c(),_0x2bde32=_0x48a881['id'];if(_0x3f11fe)return this['_setSuggestionRange'](_0x3f11fe,this['_model']['createRange'](_0x5f02ca,_0x5cb552)),_0x3f11fe;{const _0x2da0f1=this['_setSuggestionData']({'id':_0x5f4c03,'type':'formatBlock:'+_0x2f1a69,'data':_0x42c316,'createdAt':new Date(),'authorId':_0x2bde32,'attributes':_0x4bd971});return this['_addSuggestionMarker']('formatBlock:'+_0x2f1a69,_0x5f4c03,_0x2bde32,this['_model']['createRange'](_0x5f02ca,_0x5cb552)),_0x2da0f1;}}['markMultiRangeBlockFormat'](_0x1cce3c,_0x4890c1,_0x4358ae=[],_0x44cb37=null,_0x164b76={}){_0x4890c1['formatGroupId']||(_0x4890c1['formatGroupId']=_0x4890c1['commandName']);const _0x138b52=_0x1cce3c[0x0];_0x4890c1['multipleBlocks']=_0x138b52['is']('range'),_0x44cb37=_0x44cb37||Ht(_0x4890c1);const _0x53661b=_0x4358ae['map'](_0x847573=>tn(_0x847573,this['_model'])),_0x44fab9=_0x138b52['is']('range')?_0x1cce3c:_0x1cce3c['map'](_0x12583c=>tn(_0x12583c,this['_model']));if(this['_trackingSessionId']&&(_0x164b76['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x56a426=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44cb37,'accept');return this['forceDefaultExecution'](()=>_0x56a426(_0x44fab9,_0x4890c1,_0x164b76)),null;}_0x53661b['push'](..._0x44fab9);let _0x5682f0=!0x0;for(const _0x231247 of _0x53661b)if(!this['_rangeIsInLocalUserInsertion'](_0x231247)){_0x5682f0=!0x1;break;}if(_0x5682f0&&'always'!==this['_trackFormatChanges']){const _0x2580fe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44cb37,'accept');return this['forceDefaultExecution'](()=>_0x2580fe(_0x44fab9,_0x4890c1,_0x164b76)),null;}const _0x31bf49=this['editor']['plugins']['get']('Users')['me'];for(const _0x4ff265 of this['getSuggestions']()){const _0xb42474=_0x4ff265['data'];if(_0x4ff265['author']['id']!=_0x31bf49['id'])continue;if('formatBlock'!=_0x4ff265['type']||_0xb42474['formatGroupId']!=_0x4890c1['formatGroupId'])continue;if(!sn(_0x4ff265,_0x164b76))continue;const _0x468ea6=_0x4ff265['subType']==_0x44cb37;for(let _0x2e29ca=0x0;_0x2e29ca<_0x44fab9['length'];_0x2e29ca++){const _0x12ad5d=_0x44fab9[_0x2e29ca];for(const _0x3f3815 of _0x4ff265['getMarkers']()){const _0x316956=_0x3f3815['getRange']();if(_0x12ad5d['isEqual'](_0x316956)){_0x468ea6?(_0x44fab9['splice'](_0x2e29ca,0x1),_0x2e29ca--):_0x4ff265['removeMarker'](_0x3f3815['name']);break;}}}}if(0x0==_0x44fab9['length'])return null;const _0x1a51c6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44cb37,'join');for(const _0x2f4f99 of this['getSuggestions']()){const _0x4e729f=_0x2f4f99['data'];if(_0x2f4f99['author']['id']==_0x31bf49['id']&&('formatBlock'==_0x2f4f99['type']&&_0x4e729f['formatGroupId']==_0x4890c1['formatGroupId']&&_0x2f4f99['subType']==_0x44cb37&&sn(_0x2f4f99,_0x164b76)&&(_0x1a51c6(_0x2f4f99['getRanges'](),_0x44fab9)||_0x1a51c6(_0x44fab9,_0x2f4f99['getRanges']())))){for(const _0x2dd934 of _0x44fab9)_0x2f4f99['addRange'](_0x2dd934);return _0x2f4f99;}}const _0xfd40d6=_0xe7a85c(),_0x1b8184=_0x31bf49['id'],_0x3137cf='formatBlock:'+_0x44cb37,_0x5084c3=this['_setSuggestionData']({'id':_0xfd40d6,'type':_0x3137cf,'data':_0x4890c1,'createdAt':new Date(),'authorId':_0x1b8184,'attributes':_0x164b76});for(const _0x2721a5 of _0x44fab9)this['_addSuggestionMarker'](_0x3137cf,_0xfd40d6,_0x1b8184,_0x2721a5,x['getMultiRangeId']());return _0x5084c3;}['markDeletion'](_0x4ca16e,_0xa0a3b3=null,_0x4e6405={}){if(_0x4ca16e['isCollapsed'])return null;const _0x548cfd=this['editor']['plugins']['get']('Users')['me'],_0x22233a=new _0x167977(_0x4ca16e['start'],_0x4ca16e['end']);this['_trackingSessionId']&&(_0x4e6405['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x471680,meta:_0x3159af}of this['_findSuggestions'](_0x22233a,'insertion'))if(_0x3159af['isOwn']&&!_0x3159af['isNextTo']){if(_0x471680['isMultiRange']){const _0x559656=_0x471680['getRanges']()['filter'](_0xeaa74=>'$graveyard'!=_0xeaa74['root']['rootName']);_0x559656['every'](_0x32cfb8=>_0x22233a['containsRange'](_0x32cfb8,!0x0))&&_0x471680['discard']();if(_0x559656['some'](_0x1b6c29=>_0x1b6c29['containsRange'](_0x22233a,!0x0))){const _0x45f48f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa0a3b3,'accept');return this['forceDefaultExecution'](()=>_0x45f48f([_0x22233a],null,_0x4e6405)),null;}}else{const _0x91949f=_0x22233a['getIntersection'](_0x471680['getFirstRange']());null!==_0x91949f&&_0x471680['_onDiscard']([_0x91949f],null,_0x4e6405);}}if(_0x22233a['detach'](),_0x22233a['isCollapsed']||'$graveyard'==_0x22233a['root']['rootName'])return null;let _0x27ab97=null,_0x1e5a93=_0x22233a['start'],_0x290dec=_0x22233a['end'];const _0x1ff2e1=this['_findSuggestions'](_0x22233a,'deletion');for(const {suggestion:_0x1e3ddc,meta:_0x45c292}of _0x1ff2e1){const _0x3cab0d=this['_model']['createRange'](_0x1e5a93,_0x290dec);if(_0x45c292['isOwn']&&(this['_mergeNestedSuggestions']||!_0x45c292['containsRangeInObject']&&!_0x45c292['isInsideObject'])){if(_0x1e3ddc['isMultiRange']){if(!sn(_0x1e3ddc,_0x4e6405))continue;let _0x460f54=!0x0;for(const _0x245224 of _0x1e3ddc['getRanges']()){if(_0x245224['containsRange'](_0x3cab0d,!0x0))return _0x1e3ddc;_0x3cab0d['containsRange'](_0x245224)||(_0x460f54=!0x1);}_0x460f54&&_0x1e3ddc['discard']();}else{const _0x11a2b4=_0x1e3ddc['getFirstRange']();if(_0x11a2b4['containsRange'](_0x3cab0d,!0x0))return _0x1e3ddc;if(!sn(_0x1e3ddc,_0x4e6405)){_0x3cab0d['containsRange'](_0x11a2b4)?_0x1e3ddc['removeMarkers']():_0x11a2b4['containsPosition'](_0x1e5a93)?_0x1e5a93=_0x11a2b4['end']:_0x11a2b4['containsPosition'](_0x290dec)&&(_0x290dec=_0x11a2b4['start']);continue;}_0x1e5a93=_0x1e5a93['isBefore'](_0x11a2b4['start'])?_0x1e5a93:_0x11a2b4['start'],_0x290dec=_0x290dec['isAfter'](_0x11a2b4['end'])?_0x290dec:_0x11a2b4['end'],_0x4e6405=Object['assign']({},_0x1e3ddc['attributes']),_0x27ab97?_0x11a2b4['start']['isBefore'](_0x27ab97['getFirstRange']()['start'])?(_0x27ab97['removeMarkers'](),_0x27ab97=_0x1e3ddc):_0x1e3ddc['removeMarkers']():_0x27ab97=_0x1e3ddc;}}}if(_0x27ab97)return this['_setSuggestionRange'](_0x27ab97,this['_model']['createRange'](_0x1e5a93,_0x290dec)),_0x27ab97;{const _0x526b6a=_0xe7a85c(),_0x586463=this['_model']['createRange'](_0x1e5a93,_0x290dec),_0x14f85e=_0x548cfd['id'],_0x10b26e=_0xa0a3b3?'deletion:'+_0xa0a3b3:'deletion',_0x4f4d70=this['_setSuggestionData']({'id':_0x526b6a,'type':_0x10b26e,'createdAt':new Date(),'authorId':_0x14f85e,'attributes':_0x4e6405});return this['_addSuggestionMarker'](_0x10b26e,_0x526b6a,_0x14f85e,_0x586463),_0x4f4d70;}}['markMultiRangeDeletion'](_0x37e535,_0x1583bb='multi',_0x178945={}){const _0x1f533b=this['editor']['plugins']['get']('Users')['me'],_0xc4c4c4=_0x37e535['map'](_0x4c4634=>new _0x167977(_0x4c4634['start'],_0x4c4634['end'])),_0x52d330=new Set();this['_trackingSessionId']&&(_0x178945['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x22db54,meta:_0x465408}of this['_findSuggestions'](_0xc4c4c4,'insertion'))_0x465408['isOwn']&&!_0x465408['isNextTo']&&_0x52d330['add'](_0x22db54);for(const _0x2dbab5 of _0x52d330)if(_0x2dbab5['isMultiRange']){const _0x1afb5b=_0x2dbab5['getRanges']();(!_0x2dbab5['attributes']||!_0x2dbab5['attributes']['skipNestingCheck'])&&(_0x1afb5b['every'](_0x4cc1e0=>_0xc4c4c4['some'](_0x4314f6=>_0x4314f6['containsRange'](_0x4cc1e0,!0x0)))&&_0x2dbab5['discard']());if(_0xc4c4c4['every'](_0x277fcc=>_0x1afb5b['some'](_0x651baa=>_0x651baa['containsRange'](_0x277fcc,!0x0)))){const _0x582df3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1583bb,'accept');return this['forceDefaultExecution'](()=>_0x582df3(_0x37e535,null,_0x178945)),null;}}else{const _0xde67a4=_0x2dbab5['getFirstRange']();_0xc4c4c4['some'](_0x13297a=>_0x13297a['containsRange'](_0xde67a4,!0x0))&&_0x2dbab5['discard']();if(_0xc4c4c4['every'](_0x38a5ad=>_0xde67a4['containsRange'](_0x38a5ad,!0x0))){const _0x787423=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1583bb,'accept');return this['forceDefaultExecution'](()=>_0x787423(_0xc4c4c4,null,_0x178945)),null;}}const _0xf2fdc4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1583bb,'join');let _0x4e3f0b=null;for(const _0x58d625 of this['getSuggestions']())if(_0x58d625['author']['id']==_0x1f533b['id']&&_0x58d625['isInContent']&&'deletion'==_0x58d625['type']&&_0x58d625['subType']==_0x1583bb&&sn(_0x58d625,_0x178945)&&(_0xf2fdc4(_0x58d625['getRanges'](),_0xc4c4c4)||_0xf2fdc4(_0xc4c4c4,_0x58d625['getRanges']()))){if(_0x4e3f0b){if(_0x58d625['commentThread']&&_0x58d625['commentThread']['length'])continue;for(const _0x551616 of _0x58d625['getRanges']())_0x4e3f0b['isIntersectingWithRange'](_0x551616)||_0x4e3f0b['addRange'](_0x551616);_0x58d625['removeMarkers']();}else{_0x4e3f0b=_0x58d625;for(const _0x526ff3 of _0xc4c4c4)_0x58d625['isIntersectingWithRange'](_0x526ff3)||_0x58d625['addRange'](_0x526ff3);}}if(_0x4e3f0b)return _0x4e3f0b;_0x52d330['clear']();for(const {suggestion:_0x34f3ed,meta:_0x324e33}of this['_findSuggestions'](_0xc4c4c4,'deletion'))_0x324e33['isOwn']&&(this['_mergeNestedSuggestions']||!_0x324e33['containsRangeInObject']&&!_0x324e33['isInsideObject'])&&sn(_0x34f3ed,_0x178945)&&_0x52d330['add'](_0x34f3ed);for(const _0x3b59ef of _0x52d330){const _0x2f8227=_0x3b59ef['getRanges']();if(!_0x178945||!_0x178945['skipNestingCheck']){if(_0xc4c4c4['every'](_0x292d93=>_0x2f8227['some'](_0x53c3a0=>_0x53c3a0['containsRange'](_0x292d93,!0x0))))return _0x3b59ef;}(!_0x3b59ef['attributes']||!_0x3b59ef['attributes']['skipNestingCheck'])&&(_0x2f8227['every'](_0x290917=>_0xc4c4c4['some'](_0x2d1783=>_0x2d1783['containsRange'](_0x290917,!0x0)))&&_0x3b59ef['discard']());}const _0x5ef31a=_0xe7a85c(),_0x52d7f8=_0x1f533b['id'],_0x437e92='deletion:'+_0x1583bb,_0x3e3266=this['_setSuggestionData']({'id':_0x5ef31a,'type':_0x437e92,'createdAt':new Date(),'authorId':_0x52d7f8,'attributes':_0x178945});for(const _0x149088 of _0xc4c4c4)_0x149088['detach'](),_0x149088['isCollapsed']||'$graveyard'==_0x149088['root']['rootName']||this['_addSuggestionMarker'](_0x437e92,_0x5ef31a,_0x52d7f8,_0x149088,x['getMultiRangeId']());return _0x3e3266;}['markAttributeChange'](_0x5ab398,_0x452059,_0x4203cd,_0x5b32ae,_0xd6866d){if(_0x5ab398['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x32167b=this['editor']['plugins']['get']('Users')['me']['id'],_0x30f555=Array['from'](this['_suggestions']['values']())['filter'](_0x419d0f=>'attribute'==_0x419d0f['type']&&_0x419d0f['data']['key']==_0x452059&&_0x419d0f['isIntersectingWithRange'](_0x5ab398));if(this['_trackingSessionId']&&(_0xd6866d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x10990c=this['_findSuggestions'](_0x5ab398,'insertion')['filter'](({meta:_0x58a8db})=>_0x58a8db['isOwn']&&!_0x58a8db['isInsideObject']&&!_0x58a8db['isNextTo'])['map'](({suggestion:_0x122e2d})=>_0x122e2d);_0x30f555['unshift'](..._0x10990c);}const _0x108334=new Map([[_0x5ab398,_0x4203cd]]);for(const _0x53bb9e of _0x30f555){const _0x58a4b0='attribute'==_0x53bb9e['type']?_0x53bb9e['data']['oldValue']:void 0x0,_0x4c0f4b=_0x53bb9e['getFirstRange'](),_0x53cfd1=Array['from'](_0x108334['keys']())['find'](_0x1c5789=>_0x1c5789['isIntersecting'](_0x4c0f4b));if(!_0x53cfd1)continue;const _0x3e3b0c=_0x53cfd1['getDifference'](_0x4c0f4b);this['_isBlockAttribute'](_0x452059)&&'insertion'==_0x53bb9e['type']&&0x0!=_0x3e3b0c['length']||(_0x108334['delete'](_0x53cfd1),_0x3e3b0c['forEach'](_0x4bec79=>{_0x108334['set'](_0x4bec79,_0x4203cd);}),'insertion'!=_0x53bb9e['type']&&_0x58a4b0!=_0x5b32ae&&_0x108334['set'](_0x53cfd1['getIntersection'](_0x4c0f4b),_0x58a4b0));}const _0xfe19fa=[];for(const [_0x106465,_0x3e853d]of _0x108334){const _0xc64e4a=_0xe7a85c(),_0x24c429={'key':_0x452059,'oldValue':_0x3e853d,'newValue':_0x5b32ae};_0x452059['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':_0x452059});const _0x574a99=('attribute:'+(_0x452059+'|'+Ht({'newValue':_0x5b32ae})))['substring'](0x0,0x3c),_0x35f409=this['_setSuggestionData']({'id':_0xc64e4a,'type':_0x574a99,'data':_0x24c429,'createdAt':new Date(),'authorId':_0x32167b,'attributes':_0xd6866d});_0xfe19fa['push'](_0x35f409),this['_addSuggestionMarker'](_0x574a99,_0xc64e4a,_0x32167b,_0x106465);}return _0xfe19fa;}['enableDefaultAttributesIntegration'](_0x56b4a7){this['enableCommand'](_0x56b4a7,(_0x56510a,..._0x3d0a6c)=>{this['recordAttributeChanges'](()=>{_0x56510a(..._0x3d0a6c);});});}['registerBlockAttribute'](_0x40d633){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x40d633);}['registerInlineAttribute'](_0x58b322){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x58b322);}['startTrackingSession'](_0x37309b){return this['_trackingSessionId']=void 0x0!==_0x37309b?_0x37309b:_0xe7a85c(),this['_trackingSessionId'];}['_getAttributeKey'](_0x26a581){return'attribute'==_0x26a581['type']?_0x26a581['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x5e5723){if(0x0==_0x5e5723['length'])return;const _0x48f7bc=this['editor'],_0x5e826a=_0x48f7bc['plugins']['get'](_0x4a392e),_0x2835ba=[];_0x48f7bc['model']['change'](_0x1f0815=>{for(let _0x584dd8=0x0;_0x584dd8<_0x5e5723['length'];_0x584dd8++){const _0x347199=_0x5e5723[_0x584dd8];if(_0x347199['baseVersion']=_0x48f7bc['model']['document']['version'],_0x347199['isDocumentOperation']=!0x0,_0x5e826a['isMarkedRemoveOperation'](_0x347199)){const _0x10a9eb=Lt(_0x347199['newRange'],_0x48f7bc['model']);_0x2835ba['unshift'](_0x167977['fromRange'](_0x10a9eb));}else switch(_0x347199['type']){case'rename':{const _0x5b05d5=_0x347199['oldName'],_0x3a67d1=_0x347199['newName'];if(_0x5b05d5==_0x3a67d1)break;_0x1f0815['batch']['addOperation'](_0x347199),_0x48f7bc['model']['applyOperation'](_0x347199);const _0x5543c2='$elementName',_0x598502=_0x347199['position'],_0xef6cfc=_0x48f7bc['model']['createRange'](_0x598502,_0x48f7bc['model']['createPositionAt'](_0x598502['nodeAfter'],'end'));this['markAttributeChange'](_0xef6cfc,_0x5543c2,_0x5b05d5,_0x3a67d1,{'groupId':_0xe7a85c()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xa676b7=_0x347199['oldValue'],_0x2ef658=_0x347199['newValue'];if(_0xa676b7==_0x2ef658)break;_0x1f0815['batch']['addOperation'](_0x347199),_0x48f7bc['model']['applyOperation'](_0x347199);const _0x2e9fc5=_0x347199['key'];if(!this['_isRegisteredAttribute'](_0x2e9fc5))break;const _0x5172a5=Lt(_0x347199['range'],_0x48f7bc['model']);this['markAttributeChange'](_0x5172a5,_0x2e9fc5,_0xa676b7,_0x2ef658,{'groupId':_0xe7a85c()});break;}case'insert':{_0x1f0815['batch']['addOperation'](_0x347199),_0x48f7bc['model']['applyOperation'](_0x347199);if(_0x5e5723[_0x584dd8+0x1]&&'move'==_0x5e5723[_0x584dd8+0x1]['type'])break;const _0x5ea8cc=_0x347199['position'],_0x12d95c=_0x347199['howMany'],_0x1bc039=Lt(_0x48f7bc['model']['createRange'](_0x5ea8cc,_0x5ea8cc['getShiftedBy'](_0x12d95c)),_0x48f7bc['model']);this['markInsertion'](_0x1bc039);break;}case'split':{_0x1f0815['batch']['addOperation'](_0x347199),_0x48f7bc['model']['applyOperation'](_0x347199);const _0x5eecda=_0x347199['splitPosition'],_0x3819ca=_0x347199['moveTargetPosition'];this['markInsertion'](_0x48f7bc['model']['createRange'](_0x5eecda,_0x3819ca));break;}case'move':case'remove':_0x1f0815['batch']['addOperation'](_0x347199),_0x48f7bc['model']['applyOperation'](_0x347199);}}for(const _0x439d73 of _0x2835ba)_0x439d73['detach'](),this['markDeletion'](_0x439d73);});}['_setSuggestionRange'](_0x27162e,_0x4dd1f9){const _0x1a07e0=_0x27162e['getFirstMarker']();this['_model']['change'](_0x5aa332=>{_0x5aa332['updateMarker'](_0x1a07e0,{'range':_0x4dd1f9});});}['_addThreadToSuggestion'](_0x7c207d){const _0x4b2fc7=_0x7c207d['id'],_0x2c5e24=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4b2fc7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2c5e24,'threadId':_0x4b2fc7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x463495=this['_commentsRepository']['getCommentThread'](_0x4b2fc7);_0x463495['unbind']('isRemovable'),_0x463495['isRemovable']=!0x1,_0x7c207d['commentThread']=_0x463495;}['_checkSuggestionCorrectness'](_0x432846,_0x159f0a,_0x38cee4,_0x1955d3){if(_0x432846['type']!=_0x159f0a||_0x432846['subType']!=_0x38cee4||_0x432846['creator']['id']!=_0x1955d3)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4bd1ef('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x283368,_0x476b87){const _0x2734eb=_0x283368['getFirstRange']();if(_0x476b87['isEqual'](_0x2734eb))_0x283368['removeMarkers']();else{if(_0x2734eb['containsRange'](_0x476b87)){const _0x1fc678=this['_model']['createPositionAt'](_0x476b87['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x283368,this['_model']['createRange'](_0x2734eb['start'],_0x1fc678));const _0x46d788=_0xe7a85c(),_0x10d615=_0x283368['creator']['id'],_0x1b4254=_0x283368['type']+':'+_0x283368['subType'];this['_setSuggestionData']({'id':_0x46d788,'type':_0x1b4254,'createdAt':new Date(),'authorId':_0x10d615,'data':_0x283368['data'],'attributes':_0x283368['attributes']});const _0x4ffc6e=this['_model']['createPositionAt'](_0x476b87['end']['parent'],'after'),_0x5a5502=this['_model']['createRange'](_0x4ffc6e,_0x2734eb['end']);this['_addSuggestionMarker'](_0x1b4254,_0x46d788,_0x10d615,_0x5a5502);}else{if(_0x2734eb['containsPosition'](_0x476b87['start'])){const _0x480d79=this['_model']['createPositionAt'](_0x476b87['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x283368,this['_model']['createRange'](_0x2734eb['start'],_0x480d79));}else{const _0x3fe8a1=this['_model']['createPositionAt'](_0x476b87['end']['parent'],'after');this['_setSuggestionRange'](_0x283368,this['_model']['createRange'](_0x3fe8a1,_0x2734eb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x49f5a2){for(const {suggestion:_0x14dcdc,meta:_0x2c67dd}of this['_findSuggestions'](_0x49f5a2,'insertion')){if(!_0x2c67dd['isOwn'])continue;const _0x401bd4=_0x14dcdc['getRanges']();for(const _0x2ae9d9 of _0x401bd4)if(!_0x49f5a2['getDifference'](_0x2ae9d9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x46693d){return this['editor']['plugins']['get']('Users')['getUser'](_0x46693d);}['_getExternalAuthor'](_0x41927c){const _0x25b1f3=this['editor']['plugins']['get']('Users'),_0x1a7ccc=_0x4f3ece('external:'+_0x41927c),_0x4512fe=_0x25b1f3['getUser'](_0x1a7ccc);return _0x4512fe||_0x25b1f3['addUser']({'id':_0x1a7ccc,'name':_0x41927c});}['_createSuggestion'](_0x226457,_0x1d5463,_0x2e7c4a,_0x470ad6,_0x46ddf8,_0x790cd4){const _0x2c87a3=this['_getAuthorFromId'](_0x470ad6);if(!_0x2c87a3)throw new _0x4bd1ef('track-changes-user-not-found',this,{'authorId':_0x470ad6,'suggestionId':_0x2e7c4a});const _0x40f218=this['_suggestionFactory']['buildSuggestion'](_0x226457,_0x1d5463,_0x2e7c4a,_0x2c87a3,_0x46ddf8,_0x55f798=>{this['_updateSuggestionData'](_0x2e7c4a,{'attributes':_0x55f798});const _0x53fccc=this['getSuggestion'](_0x2e7c4a);this['_joinWithAdjacentSuggestions'](new Set([_0x53fccc])),this['_refreshSuggestionsChain'](new Set([_0x53fccc]));},_0x790cd4);return this['listenTo'](_0x40f218,'accept',()=>{this['_updateSuggestionData'](_0x2e7c4a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x40f218,'discard',()=>{this['_updateSuggestionData'](_0x2e7c4a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2e7c4a,_0x40f218),this['_suggestionState']['set'](_0x40f218,'notReady'),_0x40f218;}['_splitMarkerName'](_0x399a0b){return Gt(_0x399a0b);}['_breakSuggestionMarker'](_0x5bd1ac,_0x3a2bc3,_0x8dfd29){const _0x371130=_0x5bd1ac['getFirstRange'](),_0x21730c=_0x371130['start'],_0x4a5ec9=_0x371130['end'];this['_setSuggestionRange'](_0x5bd1ac,this['_model']['createRange'](_0x21730c,_0x3a2bc3));const _0x27a95e=_0xe7a85c(),_0x2f5997=_0x5bd1ac['creator']['id'],_0x5b36d1=_0x5bd1ac['type']+(_0x5bd1ac['subType']?':'+_0x5bd1ac['subType']:'');this['_setSuggestionData']({'id':_0x27a95e,'type':_0x5b36d1,'createdAt':new Date(),'authorId':_0x2f5997,'originalSuggestionId':_0x5bd1ac['_originalSuggestionId']||_0x5bd1ac['id'],'attributes':_0x5bd1ac['attributes'],'data':_0x5bd1ac['data']});const _0x1bff75=this['_getAttributeKey'](_0x5bd1ac);('formatBlock'==_0x5bd1ac['type']||_0x1bff75&&this['_isBlockAttribute'](_0x1bff75))&&(_0x8dfd29=this['_model']['createPositionBefore'](_0x8dfd29['parent'])),this['_addSuggestionMarker'](_0x5b36d1,_0x27a95e,_0x2f5997,this['_model']['createRange'](_0x8dfd29,_0x4a5ec9));}['_findSuggestions'](_0xe2966b,_0xf249cf=null){const _0x6af6b4=[],_0x35f7a4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xe2966b)||(_0xe2966b=[_0xe2966b]);for(const _0x3ee96f of this['getSuggestions']()){if(!_0x3ee96f['isInContent'])continue;if(_0xf249cf&&_0x3ee96f['type']!=_0xf249cf)continue;let _0x109d61=!0x1;for(const _0x6b96a3 of _0x3ee96f['getRanges']()){for(const _0x2ec8c7 of _0xe2966b){const _0x5ba12e=_0x2ec8c7['start']['isEqual'](_0x6b96a3['end'])||_0x2ec8c7['end']['isEqual'](_0x6b96a3['start']);if(_0x5ba12e||_0x2ec8c7['getIntersection'](_0x6b96a3)){const _0x15dd72=_0x2ec8c7['containsRange'](_0x6b96a3)&&zt(this['_model']['schema'],_0x6b96a3['start'],_0x2ec8c7),_0x4309d9=_0x6b96a3['containsRange'](_0x2ec8c7)&&zt(this['_model']['schema'],_0x2ec8c7['start'],_0x6b96a3);_0x6af6b4['push']({'suggestion':_0x3ee96f,'meta':{'isOwn':_0x35f7a4==_0x3ee96f['author'],'isNextTo':_0x5ba12e,'isInsideObject':_0x15dd72,'containsRangeInObject':_0x4309d9}}),_0x109d61=!0x0;break;}}if(_0x109d61)break;}}return _0x6af6b4;}['_addSuggestionMarker'](_0x43aec0,_0x15c4c7,_0x2d1fed,_0x4adb4b,_0x1a0e1f){this['_model']['change'](_0x1a1d96=>{let _0x7f4546='suggestion:'+_0x43aec0+':'+_0x15c4c7+':'+_0x2d1fed;_0x1a0e1f&&(_0x7f4546=_0x7f4546+':'+_0x1a0e1f),_0x1a1d96['addMarker'](_0x7f4546,{'range':_0x4adb4b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4fa7bb){const _0x5adb5f=_0x4fa7bb['previous'],_0x30be97=_0x4fa7bb['next'];_0x4fa7bb['previous']=null,_0x4fa7bb['next']=null,null!=_0x5adb5f&&_0x5adb5f['next']==_0x4fa7bb&&(_0x5adb5f['next']=_0x30be97),null!=_0x30be97&&_0x30be97['previous']==_0x4fa7bb&&(_0x30be97['previous']=_0x5adb5f),'ready'==this['_suggestionState']['get'](_0x4fa7bb)&&(this['_suggestionState']['set'](_0x4fa7bb,'removed'),this['fire']('suggestionUnloaded',_0x4fa7bb,_0x5adb5f,_0x30be97));}['_setSuggestionData'](_0x422b27){const _0x4981f8=_0x422b27['id'],_0x568113=this['addSuggestionData'](_0x422b27);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3e5645=this['editor']['plugins']['get']('PendingActions'),_0x4e9440=_0x568113['hasComments'],_0x477804=_0x568113['subType']?_0x568113['type']+':'+_0x568113['subType']:_0x568113['type'],_0x421649=this['editor']['locale'],_0x305193=_0x3e5645['add'](o(_0x421649,'PENDING_ACTION_SUGGESTION')),_0x684f5a={'id':_0x4981f8,'type':_0x477804,'hasComments':_0x4e9440,'data':_0x422b27['data']||null,'originalSuggestionId':_0x422b27['originalSuggestionId']||null,'attributes':_0x568113['attributes']};this['_adapter']['addSuggestion'](_0x684f5a)['then'](_0x425b6a=>{_0x568113['_saved']=!0x0,_0x3e5645['remove'](_0x305193),_0x425b6a&&_0x425b6a['createdAt']&&(this['_suggestions']['get'](_0x4981f8)['createdAt']=_0x425b6a['createdAt']);})['catch'](_0x257f3f=>{throw _0x5dad29('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x568113['discard']();}),_0x568113['stopListening'](),this['_suggestions']['delete'](_0x568113['id']),this['_suggestionState']['delete'](_0x568113),_0x257f3f;});}return _0x568113;}['_isBlockAttribute'](_0x563c5a){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x563c5a);}['_isInlineAttribute'](_0x56adf9){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x56adf9);}['_updateSuggestionData'](_0x4aa5b3,_0xf57633){const _0xefd233=this['editor']['plugins']['get']('PendingActions'),_0x4e80f7=this['getSuggestion'](_0x4aa5b3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4e80f7['_saved']){const _0x5c7af5=_0xefd233['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4aa5b3,_0xf57633)['then'](()=>{_0xefd233['remove'](_0x5c7af5);});}else _0x4e80f7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4aa5b3,_0xf57633);});}}['_getSuggestionData'](_0x124e6c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4bd1ef('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x124e6c);}['_handleNewSuggestionMarker'](_0x21e1a8){const {id:_0x431655,type:_0x1f9a58,subType:_0x19616d,authorId:_0x4c3fec}=this['_splitMarkerName'](_0x21e1a8),_0x51aa38=this['_suggestions']['get'](_0x431655)||this['_createSuggestion'](_0x1f9a58,_0x19616d,_0x431655,_0x4c3fec,{});switch(this['_checkSuggestionCorrectness'](_0x51aa38,_0x1f9a58,_0x19616d,_0x4c3fec),this['_suggestionState']['get'](_0x51aa38)){case'notReady':this['_getSuggestionData'](_0x431655)['then'](_0x4c19c9=>{let _0x2a4657=Promise['resolve']();_0x4c19c9['hasComments']&&(_0x2a4657=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x431655})),_0x2a4657['then'](()=>{this['addSuggestionData'](_0x4c19c9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x51aa38,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x431655,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x51aa38,'ready'),this['fire']('suggestionLoaded',_0x51aa38);break;case'ready':this['fire']('suggestionChanged',_0x51aa38);}return _0x51aa38['addMarkerName'](_0x21e1a8),_0x51aa38;}['_refreshSuggestionsChain'](_0x2023b7){const _0x432be8=Array['from'](_0x2023b7),_0x1376b1=_0x432be8['filter'](_0x1aff8c=>'attribute'==_0x1aff8c['type']);this['_refreshAttributeSuggestionsChain'](_0x1376b1);const _0x19fe1e=_0x432be8['filter'](_0x2ea959=>!_0x2ea959['isMultiRange']&&'attribute'!=_0x2ea959['type']),_0x3d62f6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5013f2=>!_0x5013f2['isMultiRange']&&'attribute'!=_0x5013f2['type']),_0x4f5bbc=_0x3d62f6['filter'](_0x13dcbb=>!_0x2023b7['has'](_0x13dcbb)),_0x29d25d=new Map(_0x3d62f6['map'](_0xde4d1b=>[_0xde4d1b,this['_suggestionFactory']['getSuggestionCallback'](_0xde4d1b['type'],_0xde4d1b['subType'],'chain')])),_0x1b11fc=new Map(_0x3d62f6['map'](_0x2b3463=>[_0x2b3463,_0x2b3463['getFirstRange']()])),_0xce0f19=new Set(),_0x4e9740=new Set();for(let _0xe09de=0x0;_0xe09de<_0x19fe1e['length'];_0xe09de++)_0x85ff4a(_0x19fe1e[_0xe09de],_0x19fe1e,_0xe09de+0x1);for(let _0x2cc5f3=0x0;_0x2cc5f3<_0x19fe1e['length'];_0x2cc5f3++)_0x85ff4a(_0x19fe1e[_0x2cc5f3],_0x4f5bbc,0x0);const _0x5f1473=new Set();for(let _0x3a5410=0x0;_0x3a5410<_0x19fe1e['length'];_0x3a5410++){const _0x500045=_0x19fe1e[_0x3a5410];!_0x4e9740['has'](_0x500045)&&_0x500045['previous']&&(_0x5f1473['add'](_0x500045['previous']),_0x500045['previous']['next']===_0x500045&&(_0x500045['previous']['next']=null),_0x500045['previous']=null),!_0xce0f19['has'](_0x500045)&&_0x500045['next']&&(_0x5f1473['add'](_0x500045['next']),_0x500045['next']['previous']===_0x500045&&(_0x500045['next']['previous']=null),_0x500045['next']=null);}function _0x85ff4a(_0x4de3b4,_0x4664f4,_0x27d6c7){for(let _0x1427fb=_0x27d6c7;_0x1427fb<_0x4664f4['length'];_0x1427fb++){const _0x24bbde=_0x4962a9(_0x4de3b4,_0x4664f4[_0x1427fb]);_0x24bbde&&(_0x24bbde[0x0]['next']=_0x24bbde[0x1],_0x24bbde[0x1]['previous']=_0x24bbde[0x0],_0xce0f19['add'](_0x24bbde[0x0]),_0x4e9740['add'](_0x24bbde[0x1]));}}function _0x4962a9(_0x330611,_0x461efe){if(_0x330611['author']['id']!==_0x461efe['author']['id'])return null;const _0x52cc5e=_0x29d25d['get'](_0x330611)(_0x330611,_0x461efe,_0x1b11fc['get'](_0x330611),_0x1b11fc['get'](_0x461efe));if(!_0x52cc5e)return null;return _0x29d25d['get'](_0x461efe)(_0x330611,_0x461efe,_0x1b11fc['get'](_0x330611),_0x1b11fc['get'](_0x461efe))?_0x52cc5e[0x1]['commentThread']&&_0x52cc5e[0x1]['commentThread']['length']?null:_0x52cc5e:null;}_0x5f1473['size']&&this['_refreshSuggestionsChain'](_0x5f1473);}['_refreshAttributeSuggestionsChain'](_0x3a877c){if(0x0==_0x3a877c['length'])return;const _0x547fbe=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50f076=>'attribute'==_0x50f076['type']&&_0x50f076['_isDataLoaded']),_0x4ce6e1=[],_0x1fffc6=new Map();for(const _0xaf83c1 of _0x547fbe){const _0x2557e6=_0x4f3ece(_0xaf83c1['attributes']);_0x1fffc6['has'](_0x2557e6)||(_0x1fffc6['set'](_0x2557e6,_0x4ce6e1['length']),_0x4ce6e1['push']([]));const _0x5a0e71=_0x1fffc6['get'](_0x2557e6);_0x4ce6e1[_0x5a0e71]['push'](_0xaf83c1);}!(function(){_0x4ce6e1['sort']((_0x22f33c,_0x54eb79)=>{const _0x19ad02=_0x22f33c[0x0]['createdAt'],_0x14c3ef=_0x54eb79[0x0]['createdAt'];return _0x19ad02==_0x14c3ef?_0x22f33c[0x0]['attributes']['groupId']<_0x54eb79[0x0]['attributes']['groupId']?-0x1:0x1:_0x19ad02<_0x14c3ef?-0x1:0x1;});for(const _0x486493 of _0x4ce6e1)_0x486493['sort']((_0x2f0fdf,_0x5bfd80)=>_0x2f0fdf['id']<_0x5bfd80['id']?-0x1:0x1);}());for(let _0x465a30=0x0;_0x465a30<_0x4ce6e1['length'];_0x465a30++){if(0x0==_0x4ce6e1[_0x465a30]['length'])continue;const _0x210032=[];for(let _0x4d44a7=_0x465a30+0x1;_0x4d44a7<_0x4ce6e1['length'];_0x4d44a7++)0x0!=_0x4ce6e1[_0x4d44a7]['length']&&_0x38ed36(_0x4ce6e1[_0x465a30],_0x4ce6e1[_0x4d44a7])&&_0x210032['push'](_0x4d44a7);for(const _0x251beb of _0x210032)_0x4ce6e1[_0x465a30]=_0x4ce6e1[_0x465a30]['concat'](_0x4ce6e1[_0x251beb]),_0x4ce6e1[_0x251beb]=[];}for(const _0x152a6f of _0x4ce6e1)for(let _0x17f37d=0x0;_0x17f37d<_0x152a6f['length'];_0x17f37d++){const _0x38c32e=_0x152a6f[_0x17f37d+0x1]||null;_0x152a6f[_0x17f37d]['next']!==_0x38c32e&&(_0x152a6f[_0x17f37d]['next']=_0x38c32e);}for(const _0xc8fa7 of _0x4ce6e1)for(let _0x2bfa38=0x0;_0x2bfa38<_0xc8fa7['length'];_0x2bfa38++){const _0x1dffbc=_0xc8fa7[_0x2bfa38-0x1]||null;_0xc8fa7[_0x2bfa38]['previous']!==_0x1dffbc&&(_0xc8fa7[_0x2bfa38]['previous']=_0x1dffbc);}function _0x38ed36(_0x941290,_0x404220){if(_0x941290[0x0]['attributes']['groupId']!==_0x404220[0x0]['attributes']['groupId']&&_0x941290[0x0]['author']!==_0x404220[0x0]['author'])return!0x1;if(!function(_0x39e09e,_0x2dbea3){if(!_0x39e09e['hasComments']&&!_0x2dbea3['hasComments'])return!0x0;if(_0x39e09e['hasComments']&&_0x2dbea3['hasComments'])return!0x1;if(_0x39e09e['hasComments']&&_0x2dbea3['createdAt']<_0x39e09e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2dbea3['hasComments']&&_0x39e09e['createdAt']<_0x2dbea3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x941290[0x0],_0x404220[0x0]))return!0x1;const _0x447223=Pt(_0x941290[0x0]['attributes'],['groupId','trackingSessionId']),_0x9a516=Pt(_0x404220[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x33d31c(_0x447223,_0x9a516))return!0x1;if(_0x941290[0x0]['attributes']['groupId']==_0x404220[0x0]['attributes']['groupId'])return!0x0;if(_0x941290[0x0]['attributes']['trackingSessionId']!==_0x404220[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x941290['every'](_0x12e53f=>_0x404220['some'](_0x40c657=>_0x12e53f['getFirstRange']()['isEqual'](_0x40c657['getFirstRange']())))&&_0x404220['every'](_0xe7218b=>_0x941290['some'](_0x48c727=>_0xe7218b['getFirstRange']()['isEqual'](_0x48c727['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x33fa4d){const _0x41a9e6=Array['from'](_0x33fa4d),_0x598f91=this['getSuggestions']({'skipNotAttached':!0x0}),_0x457e54=_0x598f91['filter'](_0x2f4a89=>!_0x33fa4d['has'](_0x2f4a89)),_0x5d97ff=new Map(_0x41a9e6['map'](_0x25fb5b=>[_0x25fb5b,this['_suggestionFactory']['getSuggestionCallback'](_0x25fb5b['type'],_0x25fb5b['subType'],'join')])),_0x1abb4a=new Map(_0x598f91['map'](_0x290e29=>[_0x290e29,_0x290e29['getRanges']()]));for(let _0x1aaa4e=0x0;_0x1aaa4e<_0x41a9e6['length'];_0x1aaa4e++){if(_0x10b5a2(this,_0x41a9e6[_0x1aaa4e],_0x41a9e6,_0x1aaa4e+0x1))return!0x0;}for(let _0x93921c=0x0;_0x93921c<_0x41a9e6['length'];_0x93921c++){if(_0x10b5a2(this,_0x41a9e6[_0x93921c],_0x457e54,0x0))return!0x0;}return!0x1;function _0x10b5a2(_0x1cf37e,_0x5670fc,_0x738be8,_0x3b9dae){for(let _0x1c8560=_0x3b9dae;_0x1c8560<_0x738be8['length'];_0x1c8560++){const _0x4cc588=_0x738be8[_0x1c8560];if(_0x4cc588['type']!==_0x5670fc['type']||_0x4cc588['author']['id']!==_0x5670fc['author']['id']||_0x4cc588['subType']!==_0x5670fc['subType'])continue;if(!en(_0x5670fc,_0x4cc588))continue;if('attribute'==_0x5670fc['type']&&_0x5670fc['data']['oldValue']!=_0x4cc588['data']['oldValue'])continue;if('attribute'==_0x5670fc['type']&&_0x1cf37e['_isBlockAttribute'](_0x5670fc['data']['key']))continue;if('formatBlock'==_0x5670fc['type']){const _0x445972=_0x1cf37e['editor']['model'],_0x1ce002=_0x5670fc['getContainedElement']();if(_0x1ce002&&(_0x445972['schema']['isObject'](_0x1ce002)||_0x445972['schema']['isLimit'](_0x1ce002)))continue;}const _0x3fcd63=_0x5d97ff['get'](_0x5670fc),_0x2da17b=_0x1abb4a['get'](_0x5670fc),_0x3a8551=_0x1abb4a['get'](_0x4cc588),_0x4ffd8a=_0x5670fc['commentThread']&&_0x5670fc['commentThread']['length'],_0x365f3c=_0x4cc588['commentThread']&&_0x4cc588['commentThread']['length'];if(!_0x4ffd8a&&_0x3fcd63(_0x3a8551,_0x2da17b))return _0x1cf37e['_joinSuggestions'](_0x4cc588,_0x5670fc),_0x1abb4a['delete'](_0x5670fc),!0x0;if(!_0x365f3c&&_0x3fcd63(_0x2da17b,_0x3a8551))return _0x1cf37e['_joinSuggestions'](_0x5670fc,_0x4cc588),_0x1abb4a['delete'](_0x4cc588),!0x0;}return!0x1;}}['_joinSuggestions'](_0x226473,_0x55c4b6){if(_0x226473['isMultiRange']){for(const _0x5039ae of _0x55c4b6['getRanges']())_0x226473['addRange'](_0x5039ae);}else{const _0x2ec281=_0x55c4b6['getFirstRange']()['end'];this['_setSuggestionRange'](_0x226473,this['_model']['createRange'](_0x226473['getFirstRange']()['start'],_0x2ec281));}_0x55c4b6['removeMarkers']();}['_getMarkerAnnouncementText'](_0x41f41e,_0x559353,_0x3f2b23){const _0x35d454=_0x41f41e['startsWith']('format')||_0x41f41e['startsWith']('attribute')?'FORMATTING':_0x41f41e['toUpperCase']();return o(this['editor']['locale'],_0x559353+'_'+_0x35d454+'_SUGGESTION_ANNOUNCEMENT',_0x3f2b23);}['_initAriaMarkerChangeAnnouncements'](){const _0x405352=this['editor'];if(!_0x405352['ui'])return;const {ariaLiveAnnouncer:_0x460bec}=_0x405352['ui'];_0xdbf774(this['_model'],({left:_0x4fac14,entered:_0x4ecaea})=>{for(const _0x341d73 of _0x4fac14){const {group:_0x399c20,type:_0x26cb89}=this['_splitMarkerName'](_0x341d73['name']);if('suggestion'===_0x399c20){_0x460bec['announce'](this['_getMarkerAnnouncementText'](_0x26cb89,'LEAVE'));break;}}for(const _0x50686a of _0x4ecaea){const {group:_0x5257bf,type:_0x37a258}=this['_splitMarkerName'](_0x50686a['name']);if('suggestion'===_0x5257bf){_0x460bec['announce'](this['_getMarkerAnnouncementText'](_0x37a258,'ENTER',_0xc43d41(_0x18497a)));break;}}});}['_processAttributeChanges'](_0x252f22){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2e0e38=this['editor'],_0x43a1ae=_0x2e0e38['model']['document']['differ']['getChanges']();if(0x0==_0x43a1ae['length'])return!0x1;const _0x311b74=[],_0x8d02b2=_0x43a1ae['filter'](_0x38bfc1=>'attribute'==_0x38bfc1['type']),_0x532876=_0x43a1ae['filter'](_0x66355e=>'insert'==_0x66355e['type']&&'$text'!=_0x66355e['name']),_0x3ac504=_0x43a1ae['filter'](_0x50ba80=>'remove'==_0x50ba80['type']&&'$text'!=_0x50ba80['name']);for(const _0x3df24f of _0x8d02b2)_0x311b74['push']({'key':_0x3df24f['attributeKey'],'newValue':_0x3df24f['attributeNewValue'],'oldValue':_0x3df24f['attributeOldValue'],'range':Zt(_0x3df24f['range'],_0x2e0e38['model'])});for(const _0x4af8db of _0x532876){const _0x155143=_0x3ac504['find'](_0x35b73e=>_0x35b73e['position']['isEqual'](_0x4af8db['position']));_0x155143&&_0x311b74['push']({'key':m,'newValue':_0x4af8db['name'],'oldValue':_0x155143['name'],'range':_0x2e0e38['model']['createRangeOn'](_0x4af8db['position']['nodeAfter'])});}return 0x0!=_0x311b74['length']&&this['_reduceExistingSuggestions'](_0x252f22,_0x311b74);}['_processAttributeSuggestions'](_0xaaa3de){let _0x3b1574=!0x1;const _0x15b0da=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x454556=>_0x454556['data']['newRange']&&_0x454556['name']['startsWith']('suggestion:attribute:'));for(const _0x42a7c7 of _0x15b0da){const {subType:_0x4dbd97,id:_0x5c5636}=this['_splitMarkerName'](_0x42a7c7['name']),_0x370c37=_0x4dbd97['split']('|')[0x0];for(const _0x5e2266 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5e2266['id']!=_0x5c5636&&'attribute'==_0x5e2266['type']&&_0x5e2266['data']&&_0x5e2266['data']['key']==_0x370c37&&_0x5e2266['getFirstRange']()['isIntersecting'](_0x42a7c7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5e2266,_0x42a7c7['data']['newRange'],_0xaaa3de),_0x3b1574=!0x0);}return _0x3b1574;}['recordAttributeChanges'](_0x3de3e8){this['_recordAttributeSuggestions']=!0x0,_0x3de3e8();}['_isRegisteredAttribute'](_0x5c1b56){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x5c1b56);}['_reduceExistingSuggestions'](_0x463bef,_0x1d8db9){if(0x0==_0x1d8db9['length'])return!0x1;let _0x4e621a=!0x1;for(const _0x5da293 of _0x1d8db9){const _0x27b6d3=this['_findSuggestions'](_0x5da293['range'],'attribute')['filter'](_0x2c5c7a=>!_0x2c5c7a['meta']['isNextTo'])['map'](_0x35bf31=>_0x35bf31['suggestion']),_0x535a71=_0x4f3ece({'newValue':_0x5da293['newValue']});_0x27b6d3['filter'](_0x5a5945=>{const [_0x4f8c96,_0x395fd3]=_0x5a5945['subType']['split']('|');return _0x4f8c96==_0x5da293['key']&&_0x395fd3!=_0x535a71;})['forEach'](_0x2632d7=>{this['_reduceSuggestionAttributeRange'](_0x2632d7,_0x5da293['range'],_0x463bef),_0x4e621a=!0x0;});}return _0x4e621a;}['_reduceSuggestionAttributeRange'](_0x1df29f,_0x34b55f,_0x22d44c){const _0x5a0ed1=_0x1df29f['getFirstRange']()['getDifference'](_0x34b55f);0x0!==_0x5a0ed1['length']?0x1!==_0x5a0ed1['length']?this['_breakSuggestionMarker'](_0x1df29f,_0x34b55f['start'],_0x34b55f['end']):this['_setSuggestionRange'](_0x1df29f,_0x5a0ed1[0x0]):_0x22d44c['removeMarker'](_0x1df29f['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4f7c5c){this['_editor']=_0x4f7c5c,this['_model']=_0x4f7c5c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x239a4d,_0x38f30d,_0x2e52f3,_0x5443a0,_0x2c123f,_0x20a4c6,_0x1e984c){return new x(this['_model'],{'type':_0x239a4d,'subType':_0x38f30d,'id':_0x2e52f3,'originalSuggestionId':_0x1e984c,'author':_0x5443a0,'creator':_0x5443a0,'attributes':_0x2c123f,'onAttributesChange':_0x20a4c6,'onAccept':(..._0xcd137e)=>this['getSuggestionCallback'](_0x239a4d,_0x38f30d,'accept')(..._0xcd137e),'onDiscard':(..._0x101d6d)=>this['getSuggestionCallback'](_0x239a4d,_0x38f30d,'discard')(..._0x101d6d)});}['registerCustomCallback'](_0x18bb84,_0x4f98b2,_0x33fabd,_0x20514c){const _0xc5db39=_0x18bb84+':'+_0x4f98b2+':'+_0x33fabd;this['_customCallbacks']['set'](_0xc5db39,_0x20514c);}['getSuggestionCallback'](_0x8214c9,_0x387052,_0x951a51){const _0x409b57=_0x8214c9+':'+_0x387052+':'+_0x951a51;return this['_customCallbacks']['get'](_0x409b57)||this['_defaultCallbacks']['get'](_0x8214c9+':'+_0x951a51);}['_registerDefaultCallbacks'](){const _0x53e6ab=()=>!0x1,_0x3ca328=_0x11f6dd=>{_0x11f6dd['sort']((_0x439436,_0x45f1b5)=>_0x439436['start']['isBefore'](_0x45f1b5['start'])?0x1:-0x1),this['_model']['change'](_0x12699c=>{for(const _0x453139 of _0x11f6dd){let _0x771391;_0x771391=_0x453139['end']['isAtEnd']&&_0x453139['end']['parent']==_0x453139['start']['nodeAfter']?_0x12699c['createSelection'](_0x453139['start']['nodeAfter'],'on'):_0x12699c['createSelection'](_0x453139),this['_model']['deleteContent'](_0x771391,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x376086=(_0x1451f1,_0x478329)=>{_0x478329&&this['_model']['change'](_0x16b983=>{const {commandName:_0x37a54c,commandParams:_0x26da9b=[]}=_0x478329,_0x4be6a5=_0x1451f1['map'](_0x166dea=>(Kt(_0x166dea)&&(_0x166dea=this['_model']['createRange'](_0x166dea['end'])),_0x166dea))['filter'](_0x48f069=>'$graveyard'!==_0x48f069['root']['rootName']);if(_0x4be6a5['length']<0x1)return;const _0x5d190c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x571e24=>_0x167977['fromRange'](_0x571e24));_0x16b983['setSelection'](_0x4be6a5);for(const _0xa72fb1 of this['_editor']['commands']['commands']())_0xa72fb1['refresh']();_0x26da9b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x37a54c,..._0x26da9b);const _0x3815fd=_0x5d190c['filter'](_0x67cc23=>'$graveyard'!=_0x67cc23['root']['rootName']);_0x3815fd['length']>0x0&&_0x16b983['setSelection'](_0x3815fd);for(const _0x5ac868 of _0x5d190c)_0x5ac868['detach']();});},_0x556251=(_0x47e760,_0xda8cba)=>0x1==_0x47e760['length']&&0x1==_0xda8cba['length']&&_0x47e760[0x0]['end']['isEqual'](_0xda8cba[0x0]['start']),_0x459454=(_0x5b61b1,_0x46a346,_0x48f19d,_0x58256d)=>nn(_0x5b61b1,_0x46a346,_0x48f19d,_0x58256d)?[_0x5b61b1,_0x46a346]:nn(_0x46a346,_0x5b61b1,_0x58256d,_0x48f19d)?[_0x46a346,_0x5b61b1]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x53e6ab),this['_defaultCallbacks']['set']('insertion:discard',_0x3ca328),this['_defaultCallbacks']['set']('insertion:join',_0x556251),this['_defaultCallbacks']['set']('insertion:chain',_0x459454),this['_defaultCallbacks']['set']('deletion:accept',_0x3ca328),this['_defaultCallbacks']['set']('deletion:discard',_0x53e6ab),this['_defaultCallbacks']['set']('deletion:join',_0x556251),this['_defaultCallbacks']['set']('deletion:chain',_0x459454),this['_defaultCallbacks']['set']('formatInline:accept',_0x376086),this['_defaultCallbacks']['set']('formatInline:discard',_0x53e6ab),this['_defaultCallbacks']['set']('formatInline:join',_0x556251),this['_defaultCallbacks']['set']('formatInline:chain',_0x53e6ab),this['_defaultCallbacks']['set']('formatBlock:accept',_0x376086),this['_defaultCallbacks']['set']('formatBlock:discard',_0x53e6ab),this['_defaultCallbacks']['set']('formatBlock:join',_0x556251),this['_defaultCallbacks']['set']('formatBlock:chain',_0x53e6ab),this['_defaultCallbacks']['set']('attribute:accept',_0x53e6ab),this['_defaultCallbacks']['set']('attribute:discard',(_0x57ae8d,_0x2f2119)=>{if(!_0x2f2119)return;const _0x397272=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x439846=>{if(_0x2f2119['key']==m)for(const _0x49d062 of _0x57ae8d){const _0x4ae968=_0x49d062['start']['nodeAfter'],_0x4914bc=_0x2f2119['oldValue'];_0x439846['rename'](_0x4ae968,_0x4914bc);}else{if(_0x397272['_isBlockAttribute'](_0x2f2119['key'])){for(const _0x4e67b3 of _0x57ae8d)void 0x0!==_0x2f2119['oldValue']?_0x439846['setAttribute'](_0x2f2119['key'],_0x2f2119['oldValue'],_0x4e67b3['start']['nodeAfter']):_0x439846['removeAttribute'](_0x2f2119['key'],_0x4e67b3['start']['nodeAfter']);}else{for(const _0x208231 of _0x57ae8d)_0x2f2119['oldValue']?_0x439846['setAttribute'](_0x2f2119['key'],_0x2f2119['oldValue'],_0x208231):_0x439846['removeAttribute'](_0x2f2119['key'],_0x208231);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x556251);}}function zt(_0xa2deae,_0x4b3b93,_0x56b7f6){for(const _0x38ab3f of _0x4b3b93['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x38ab3f['root']==_0x38ab3f)return!0x1;if(!_0x56b7f6['containsItem'](_0x38ab3f))return!0x1;if(_0xa2deae['isObject'](_0x38ab3f)||_0xa2deae['isLimit'](_0x38ab3f))return!0x0;}return!0x1;}function Kt(_0x55ba71){return _0x55ba71['end']['parent']==_0x55ba71['start']['nodeAfter']&&_0x55ba71['end']['isAtStart'];}function Wt(_0x23cd93,_0x20d191,_0x63a076,_0x5ce3bd){const _0x16ddce=_0x257550=>!_0x257550['item']['is']('$textProxy')&&!_0x5ce3bd['isObject'](_0x257550['item']),_0x531efc=_0x23cd93['start']['getLastMatchingPosition'](_0x16ddce),_0x3c1133=_0x23cd93['end']['getLastMatchingPosition'](_0x16ddce,{'direction':'backward'});return(!_0x23cd93['start']['isEqual'](_0x531efc)||!_0x23cd93['end']['isEqual'](_0x3c1133))&&(_0x531efc['isBefore'](_0x3c1133)?_0x63a076['updateMarker'](_0x20d191,{'range':_0x63a076['createRange'](_0x531efc,_0x3c1133)}):_0x63a076['removeMarker'](_0x20d191),!0x0);}function Ht(_0xe86580){return _0x4f3ece(_0xe86580);}function Qt(_0x14ada2){const _0x3aa009=_0x14ada2['start']['nodeAfter'];return _0x3aa009&&_0x3aa009['is']('element');}function Xt(_0x117433){return Kt(_0x117433)||function(_0x34053e){return _0x34053e['start']['parent']==_0x34053e['end']['nodeBefore']&&_0x34053e['start']['isAtEnd'];}(_0x117433);}function Yt(_0x4afd69,_0x28e622){try{const _0x25d487=_0x4afd69['getRange']();for(const _0x326cb7 of _0x28e622)if(_0x4afd69!==_0x326cb7&&_0x25d487&&_0x25d487['isIntersecting'](_0x326cb7['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x5d8226,_0x359ca8){return null==_0x5d8226['end']['nodeBefore']&&_0x5d8226['end']['parent']==_0x5d8226['start']['nodeAfter']?tn(_0x5d8226['start']['nodeAfter'],_0x359ca8):_0x5d8226;}function tn(_0x20e0a7,_0x499f34){const _0x584353=_0x499f34['schema']['isObject'](_0x20e0a7)||_0x499f34['schema']['isSelectable'](_0x20e0a7);return _0x499f34['createRange'](_0x499f34['createPositionAt'](_0x20e0a7,'before'),_0x584353?_0x499f34['createPositionAfter'](_0x20e0a7):_0x499f34['createPositionAt'](_0x20e0a7,'end'));}function nn(_0x286ef5,_0x2adce2,_0x41f1ec,_0x4a134b){return!!en(_0x286ef5,_0x2adce2)&&_0x41f1ec['end']['isEqual'](_0x4a134b['start']);}function en(_0x117052,_0x104b0c){if(!_0x117052['_isDataLoaded']||!_0x104b0c['_isDataLoaded'])return!0x1;const _0x54f37b=new Set(Object['keys'](_0x117052['attributes'])),_0x4cc46c=new Set(Object['keys'](_0x104b0c['attributes']));if(_0x54f37b['delete']('groupId'),_0x4cc46c['delete']('groupId'),0x0==_0x54f37b['size']&&0x0==_0x4cc46c['size'])return!0x0;if(_0x54f37b['size']!=_0x4cc46c['size'])return!0x1;const _0x2852f7={..._0x117052['attributes']},_0x4c7b64={..._0x104b0c['attributes']};return delete _0x2852f7['groupId'],delete _0x4c7b64['groupId'],JSON['stringify'](_0x2852f7)==JSON['stringify'](_0x4c7b64);}function sn(_0x41d607,_0x4f3d45){const _0x14ecdf=on(_0x41d607['attributes']),_0x4a6806=on(_0x4f3d45);if(!_0x41d607['_isDataLoaded'])return!0x1;for(const _0x196cbc of Object['keys'](_0x4a6806))if(!_0x33d31c(_0x14ecdf[_0x196cbc],_0x4a6806[_0x196cbc]))return!0x1;return!0x0;}function on(_0x1c634f){const _0x4a8371=Object['assign']({},_0x1c634f);return delete _0x4a8371['skipNestingCheck'],delete _0x4a8371['tablePasteChainId'],_0x4a8371;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x396c0e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1197d9,_0x191525,_0x31f224,_0xbd5a3e){super(),this['model']=_0x191525,this['view']=_0x31f224,this['commentThreadController']=_0xbd5a3e,this['_editor']=_0x1197d9,this['_acceptCommand']=_0x1197d9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1197d9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xa5c2c2,_0x151964)=>_0xa5c2c2||_0x151964),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1baa66=>_0x1baa66&&this['_editor']['model']['canEditAt'](_0x191525['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x334320=>_0x334320&&this['_editor']['model']['canEditAt'](_0x191525['getRanges']())),this['_pendingAction']=null,_0x31f224['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x31f224,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x31f224,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x31f224,'change:isDirty',()=>{_0x31f224['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 _0x2492da=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2492da);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x3725c9{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5293d1,_0x1a7722,_0x3b5784,_0xd965d3){super(_0x5293d1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x536ecb(_0x5293d1,o(_0x5293d1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1a7722['authoredAt']),this['bind']('authoredAt')['to'](_0x1a7722),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',_0x1a7722,'authoredAt',this,'descriptionParts',(_0x231e34,_0x206461,_0x9739f7)=>{const _0x9359d5=_0x9739f7['map'](_0x54fbbe=>ls(_0x54fbbe['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x231e34-0x1,_0x1a7722['author']['name'],_0x206461?_0xd965d3['formatDateTime'](_0x206461):'',new DOMParser()['parseFromString'](_0x9359d5,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4958e7(),this['focusTracker']=new _0x117c38(),this['keystrokes']=new _0x15ddba(),this['focusCycler']=new _0x5d44a1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x166bd0=>_0x166bd0['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1a7722,this['_localUser']=_0x3b5784,this['_config']=_0xd965d3,_0xd965d3['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x19f182(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x46c945}=this['_config'];this['commentsListView']=new _0x46c945(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',_0x29d32b=>_0x29d32b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xfd11d2,_0x464f0d)=>_0xfd11d2||!!_0x464f0d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x48c392}=this['_config'],_0x2027de=new _0x48c392(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5f3939=_0x2027de['commentInputView'];return _0x2027de['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5f3939,'value',(_0xb45c97,_0x27b94e,_0xcc79cd)=>!!_0xcc79cd||_0xb45c97&&!_0x27b94e),_0x5f3939['on']('submit',(_0x4c4f03,_0x1c6366)=>{this['fire']('addComment',_0x1c6366),_0x5f3939['editor']['setData']('');}),_0x5f3939['on']('cancel',()=>this['focus']()),_0x5f3939['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2027de;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x36c661,_0x27534a,_0x1449b8,_0x4d6921){super(_0x36c661,_0x27534a,_0x1449b8,_0x4d6921),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4d6f44=>_0x4d6f44&&_0x4d6f44[0x0]?_0x4d6f44[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x51e6d1,_0x37fd78)=>{let _0x37b34c='';for(const _0x456612 of _0x51e6d1)_0x37b34c+='<p>'+ls(_0x456612['content'],_0x456612['color'])+'</p>';return _0x37fd78?_0x37b34c:_0x1cbe9a(_0x37b34c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4d6921['SuggestionView'](_0x36c661,_0x27534a,{'formatDateTime':_0x4d6921['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 _0x199099=this['bindTemplate'],_0x4017e6=[this['suggestionView']];return this['commentsListView']&&_0x4017e6['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4017e6['push'](this['commentThreadInputView']),_0x4017e6['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x199099['if']('isActive','ck-suggestion-wrapper--active'),_0x199099['to']('type',_0x1e5f2d=>'ck-suggestion-'+_0x1e5f2d),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':_0x199099['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4017e6};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x3725c9{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x43b5df,_0x792320,_0x1683c6){super(_0x43b5df),this['_model']=_0x792320,this['_config']=_0x1683c6,this['set']('description',''),this['bind']('authoredAt')['to'](_0x792320),this['acceptButton']=this['_createButton'](o(_0x43b5df,'Accept\x20suggestion'),_0x66c94d,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x43b5df,'Discard\x20suggestion'),_0x11ac0f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x35b91d(_0x43b5df,_0x792320['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4958e7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x117c38(),this['keystrokes']=new _0x15ddba(),this['focusCycler']=new _0x5d44a1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4ed137=>_0x4ed137['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xcf2122=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xcf2122['innerHTML']=this['description'],this['on']('change:description',(_0x4fcbd8,_0x4a50f2,_0x42cc9a)=>{_0xcf2122['innerHTML']=_0x42cc9a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x63147d=this['bindTemplate'],_0x403e76=[{'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':_0x63147d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x63147d['to']('authoredAt',_0x112d0f=>this['_config']['formatDateTime'](_0x112d0f))}]}]},{'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']&&_0x403e76['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':_0x403e76}]};}['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'](_0xa38625,_0x21c7a2,_0x34247e,_0x303df6,_0x4209b0){const _0x4c09e2=new _0x1f2254(this['locale']);return _0x4c09e2['set']({'label':_0xa38625,'icon':_0x21c7a2,'tooltip':!0x0,'tooltipPosition':_0x4209b0}),_0x4c09e2['extendTemplate']({'attributes':{'class':_0x34247e}}),_0x4c09e2['on']('execute',()=>{this['fire'](_0x303df6,this['_model']['id']);}),_0x4c09e2;}['_setupKeyboardNavigation'](){const _0x2dbe26=this['element'];this['keystrokes']['listenTo'](_0x2dbe26);for(const _0x96cc90 of this['focusables'])this['focusTracker']['add'](_0x96cc90['element']),this['keystrokes']['listenTo'](_0x96cc90['element']);this['keystrokes']['set']('enter',(_0x371d1c,_0x4f3548)=>{_0x2dbe26===_0x371d1c['target']&&(this['focusCycler']['focusFirst'](),_0x4f3548());}),this['keystrokes']['set']('esc',(_0x14c264,_0x4dce4d)=>{_0x2dbe26!==_0x14c264['target']&&(this['focus'](),_0x4dce4d());});}}class u extends _0x5c469f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0xe3d5a4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x13afdd){super(_0x13afdd),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x326a63=this['editor']['config'];_0x326a63['define']('trackChanges.SuggestionThreadView',fe),_0x326a63['define']('trackChanges.SuggestionView',we),_0x326a63['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x326a63['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x23899e,_0x33a02b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4ea012,_0x9cb683]of this['_handleControllerBuffer']){const _0x4abc1f=this['_suggestionToController']['has'](_0x4ea012);_0x4abc1f||_0x9cb683?_0x4abc1f&&_0x9cb683&&this['_destroyController'](_0x4ea012):this['_initializeController'](_0x4ea012);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x23899e,_0x33a02b);}['init'](){const _0x1d9539=this['editor'],_0x57096b=_0x1d9539['plugins']['get']('TrackChangesEditing'),_0x518503=_0x1d9539['plugins']['get']('Annotations'),_0x1f3de5=_0x1d9539['plugins']['get']('EditorAnnotations'),_0x125147=_0x1d9539['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1f3de5['addSourceCollector'](()=>{const _0x1f56be=[];for(const [_0x1399ad,_0x495cef]of Array['from'](this['_suggestionToController'])){const _0x3d826f=_0x1399ad['getAllAdjacentSuggestions'](),_0x3570c4=[];for(const _0x104ca7 of _0x3d826f){if(!_0x104ca7['isInContent'])continue;if(_0x104ca7['isMultiRange']){_0x3570c4['push'](..._0x104ca7['getRanges']());continue;}const _0x38317c=_0x104ca7['getFirstRange']();if(_0x3570c4['length']>0x0){const _0x5632fb=_0x3570c4[0x0]['getJoined'](_0x38317c);if(_0x5632fb){_0x3570c4[0x0]=_0x5632fb;continue;}}_0x3570c4['push'](_0x38317c);}_0x1f56be['push']([_0x495cef['view'],_0x3570c4]);}return _0x1f56be;}),this['listenTo'](_0x57096b,'suggestionLoaded',(_0x46a67d,_0x5e3fe3)=>{this['listenTo'](_0x5e3fe3,'change:previous',(_0x5d5190,_0x4e9b7f,_0x5af547,_0xe324be)=>{_0x5e3fe3['isInContent']&&(null==_0x5af547?(this['_updateController'](_0xe324be['head']),this['_handleSuggestionControllerDelayed'](_0x5e3fe3,!0x1)):(this['_updateController'](_0x5af547['head']),null==_0xe324be&&this['_handleSuggestionControllerDelayed'](_0x5e3fe3,!0x0)));}),null!==_0x5e3fe3['previous']?this['_updateController'](_0x5e3fe3['head']):this['_handleSuggestionControllerDelayed'](_0x5e3fe3,!0x1);}),this['listenTo'](_0x57096b,'suggestionUnloaded',(_0x372865,_0x1f0ffd,_0x2ad15b)=>{this['stopListening'](_0x1f0ffd,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1f0ffd),this['_suggestionToController']['has'](_0x1f0ffd)&&this['_destroyController'](_0x1f0ffd),_0x2ad15b&&this['_updateController'](_0x2ad15b['head']);}),this['listenTo'](_0x57096b,'suggestionChanged',(_0x16145e,_0x7a588f)=>{this['_updateController'](_0x7a588f);}),this['listenTo'](_0x518503,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x125147,'addComment',(_0x288419,{threadId:_0x5593db,isFromAdapter:_0x58093a})=>{if(_0x58093a||!_0x57096b['hasSuggestion'](_0x5593db))return;const _0x416d5c=_0x57096b['getSuggestion'](_0x5593db);this['_suggestionToController']['get'](_0x416d5c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4fabc1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4f63ef;for(const _0x4479df in _0x4fabc1){const _0x1ed848=_0x4479df,_0x326ab9=_0x4fabc1[_0x1ed848];if('trackChangesLicenseKeyValid'==_0x326ab9||'trackChangesLicenseKeyInvalid'==_0x326ab9||'trackChangesLicenseKeyExpired'==_0x326ab9||'trackChangesLicenseKeyDomainLimit'==_0x326ab9||'trackChangesLicenseKeyNotAllowed'==_0x326ab9||'trackChangesLicenseKeyEvaluationLimit'==_0x326ab9||'trackChangesLicenseKeyTrialLimit'==_0x326ab9||'trackChangesLicenseKeyUsageLimit'==_0x326ab9){delete _0x4fabc1[_0x1ed848],_0x4f63ef=_0x326ab9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x54600e){const _0x1adf7f=this['_suggestionToController']['get'](_0x54600e);if(!_0x1adf7f)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x1adf7f['view'])||null;}['getSuggestionForAnnotation'](_0x144cd0){const _0x555c91=this['_viewToController']['get'](_0x144cd0['innerView']);return _0x555c91?_0x555c91['model']:null;}['_refreshActiveMarkers'](){const _0x280a98=this['editor']['plugins']['get']('Annotations'),_0x66189a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1664a5=Array['from'](_0x280a98['activeAnnotations'],_0x43dce1=>_0x43dce1['innerView'])['filter'](_0x3ff973=>this['_viewToController']['has'](_0x3ff973)),_0x2451dd=[];for(const _0x2097db of _0x1664a5){const _0x4681a0=this['_viewToController']['get'](_0x2097db)['model']['getAllAdjacentSuggestions']();_0x2451dd['push'](..._0x4681a0['reduce']((_0x39d500,_0x113caa)=>[..._0x39d500,..._0x113caa['getMarkerNames']()],[]));}_0x66189a['activeMarkers']=_0x2451dd;}['_addUIComponentsToFactory'](){const _0x598d5f=this['editor'],_0x1bf816=_0x598d5f['locale'],_0x3e5897=o(_0x1bf816,'Track\x20changes'),_0x5c050d=new _0x2a31a7([{'type':'switchbutton','model':new _0x4d4814({'withText':!0x0,'isToggleable':!0x0,'label':_0x3e5897,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4d4814({'withText':!0x0,'label':o(_0x1bf816,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d4814({'withText':!0x0,'label':o(_0x1bf816,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d4814({'withText':!0x0,'label':o(_0x1bf816,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d4814({'withText':!0x0,'label':o(_0x1bf816,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x598d5f['plugins']['has']('TrackChangesPreview')&&_0x5c050d['addMany']([{'type':'separator'},{'type':'button','model':new _0x4d4814({'withText':!0x0,'label':o(_0x1bf816,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x672553 of _0x5c050d)if(ke(_0x672553)){const _0x13c61a=_0x598d5f['commands']['get'](_0x672553['model']['commandName']);_0x672553['model']['bind']('isOn','isEnabled')['to'](_0x13c61a,'value','isEnabled');}_0x598d5f['ui']['componentFactory']['add']('trackChanges',_0x19025b=>this['_createToolbarButton'](_0x19025b,_0x5c050d,_0x3e5897)),_0x598d5f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2ee0af=>this['_createMenuBarMenu'](_0x2ee0af,_0x5c050d,_0x3e5897));}['_createToolbarButton'](_0x19fb37,_0x2bd650,_0x55596b){const _0x4432d3=_0x57847e(_0x19fb37,_0x2e353d),_0x2a644e=this['editor']['commands']['get']('trackChanges');_0x4432d3['buttonView']['set']({'tooltip':_0x55596b,'label':_0x55596b,'icon':_0x5563d1}),_0x4432d3['buttonView']['bind']('isOn')['to'](_0x2a644e,'value'),_0x4432d3['buttonView']['on']('execute',()=>{_0x2a644e['execute'](),this['editor']['editing']['view']['focus']();}),_0x1cd2d(_0x4432d3,_0x2bd650,{'role':'menu'});const _0x416d06=[];for(const _0x39b54b of _0x2bd650)ke(_0x39b54b)&&_0x416d06['push'](this['editor']['commands']['get'](_0x39b54b['model']['commandName']));const _0x3a60d2=_0x4432d3['buttonView'];return _0x3a60d2['actionView']['unbind']('isEnabled'),_0x3a60d2['arrowView']['unbind']('isEnabled'),_0x3a60d2['actionView']['bind']('isEnabled')['to'](_0x2a644e,'isEnabled'),_0x3a60d2['arrowView']['bind']('isEnabled')['toMany'](_0x416d06,'isEnabled',(..._0x4de315)=>_0x4de315['some'](_0x54afba=>_0x54afba)),_0x4432d3['on']('execute',_0x6d2b6c=>{this['editor']['execute'](_0x6d2b6c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4432d3;}['_createMenuBarMenu'](_0x9f7991,_0x35b523,_0x1c1b1f){const _0x5d2a99=new _0x502fd3(_0x9f7991),_0x33b721=this['editor']['commands']['get']('trackChanges');_0x5d2a99['buttonView']['set']({'label':_0x1c1b1f,'icon':_0x5563d1});const _0x33495d=new _0x5b0b21(_0x9f7991);for(const _0x1b5f5f of _0x35b523){if('separator'==_0x1b5f5f['type']){_0x33495d['items']['add'](new _0xc8adaa(_0x9f7991));continue;}const _0x4fa1eb=new _0x1f14d7(_0x9f7991,_0x5d2a99),_0xf34d8=new _0x59084b(_0x9f7991),_0x5cbf=_0x1b5f5f['model'];_0xf34d8['bind'](...Object['keys'](_0x5cbf))['to'](_0x5cbf),_0xf34d8['delegate']('execute')['to'](_0x5d2a99),_0xf34d8['on']('execute',()=>{this['editor']['execute'](_0x5cbf['commandName']),this['editor']['editing']['view']['focus']();}),_0x4fa1eb['children']['add'](_0xf34d8),_0x33495d['items']['add'](_0x4fa1eb);}return _0x5d2a99['bind']('isEnabled')['to'](_0x33b721,'isEnabled'),_0x5d2a99['panelView']['children']['add'](_0x33495d),_0x5d2a99;}['_initializeController'](_0x34eae1){const _0x2f702d=this['editor'],_0x10d1ad=_0x2f702d['config'],_0x101a9f=_0x2f702d['plugins']['get']('Annotations'),_0x1ec6ee=_0x2f702d['plugins']['get']('CommentsRepository'),_0x2b13f5=_0x2f702d['plugins']['get']('EditorAnnotations'),_0x51c534=_0x2f702d['plugins']['get'](_0xe3d5a4)['me'],_0x1c17de=_0x10d1ad['get']('trackChanges')['SuggestionThreadView'],_0x29234a=_0x10d1ad['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x6926b,CommentThreadInputView:_0x55d1cd}=_0x2f702d['plugins']['get']('CommentsUI');let _0x41ccdd,_0x408e97,_0x4da4ec;this['_annotationViews']['has'](_0x34eae1['id'])?(_0x408e97=this['_annotationViews']['get'](_0x34eae1['id']),_0x41ccdd=_0x408e97['mainView']):(_0x41ccdd=new _0x1c17de(_0x2f702d['locale'],_0x34eae1,_0x51c534,{'disableComments':this['_disableComments'],'editorConfig':{..._0x10d1ad['get']('comments.editorConfig'),'licenseKey':_0x10d1ad['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x10d1ad['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x10d1ad['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x10d1ad['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x703e2b(_0x10d1ad['get']('locale'),_0x2f702d['locale']),'CommentView':_0x10d1ad['get']('comments')['CommentView'],'CommentsListView':_0x6926b,'CommentThreadInputView':_0x55d1cd,'SuggestionView':_0x29234a}),_0x41ccdd['suggestionView']['acceptButton']['on']('execute',()=>{_0x2f702d['editing']['view']['focus']();}),_0x41ccdd['suggestionView']['discardButton']['on']('execute',()=>{_0x2f702d['editing']['view']['focus']();}),_0x408e97=_0x101a9f['createAnnotationView'](this['editor']['locale'],_0x41ccdd),_0x408e97['bind']('isDirty')['to'](_0x41ccdd,'isDirty'),_0x408e97['bind']('length')['to'](_0x41ccdd),_0x408e97['bind']('type')['to'](_0x41ccdd,'type',_0x172bbb=>'suggestion-'+_0x172bbb),_0x41ccdd['on']('escape',()=>{_0x4da4ec['fire']('escape');}),this['_annotationViews']['set'](_0x34eae1['id'],_0x408e97));const _0x2cd211=_0x1ec6ee['createCommentThreadController'](_0x34eae1['commentThread'],_0x41ccdd),_0xaef574=new pe(_0x2f702d,_0x34eae1,_0x41ccdd,_0x2cd211),_0x42b1f2=_0x34eae1['getAllAdjacentSuggestions']()['filter'](_0x906722=>_0x906722['isInContent']);_0x41ccdd['descriptionParts']=_0x2f702d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x42b1f2),this['_suggestionToController']['set'](_0x34eae1,_0xaef574),this['_viewToController']['set'](_0x41ccdd,_0xaef574);const _0x3b4cc9=()=>{const _0x1966b3=[],_0x64dd55=_0x34eae1['getAllAdjacentSuggestions']()['filter'](_0x605c96=>_0x605c96['isInContent']);for(const _0x462b44 of _0x64dd55)_0x1966b3['push'](..._0x462b44['getMarkers']());return _0x319fa6(_0x2f702d['editing'],_0x1966b3);};_0x4da4ec=_0x101a9f['createAnnotation']({'view':_0x408e97,'target':_0x3b4cc9,'type':()=>'suggestion-'+_0xaef574['view']['type'],'isVisible':!!_0x3b4cc9()}),_0x1ec6ee['_bindAnnotationToEditors'](_0x41ccdd,_0x4da4ec),_0x101a9f['add'](_0x4da4ec),_0x2b13f5['registerAnnotation'](_0x4da4ec);}['_destroyController'](_0x4a8787){const _0x127257=this['editor']['plugins']['get']('CommentsRepository'),_0x1a96bd=this['editor']['plugins']['get']('Annotations'),_0x453f4a=this['_suggestionToController']['get'](_0x4a8787),_0xd156fb=_0x453f4a['view'],_0x3b96c5=_0x1a96bd['getByInnerView'](_0xd156fb);_0x127257['_unbindEditors'](_0xd156fb),_0x3b96c5&&_0x1a96bd['remove'](_0x3b96c5),this['_suggestionToController']['delete'](_0x4a8787),this['_viewToController']['delete'](_0xd156fb),_0x453f4a['destroy']();}['_updateController'](_0x50bfed){if(!_0x50bfed['isInContent']||!this['_suggestionToController']['has'](_0x50bfed))return;const _0x1e1e19=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15daec=this['_suggestionToController']['get'](_0x50bfed),_0x14ac38=_0x50bfed['getAllAdjacentSuggestions']();_0x15daec['view']['descriptionParts']=_0x1e1e19['descriptionFactory']['getDescriptions'](_0x14ac38);}['destroy'](){for(const _0x33c7b5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x33c7b5);for(const _0x5e885a of this['_annotationViews']['values']())_0x5e885a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3873ef){return'model'in _0x3873ef;}class Ne extends _0x5c469f{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1f15f4){this['editor']['plugins']['get'](d)['adapter']=_0x1f15f4;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2985c8){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2985c8);}['getSuggestions']({skipNotAttached:_0x5d2f61=!0x1,toJSON:_0x3685bf=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5d2f61,'toJSON':_0x3685bf});}['getSuggestion'](_0x44cb4d){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x44cb4d);}}const p=['Pagination'];class re extends _0x5c469f{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5a215d=this['editor'];if(_0x5a215d['config']['define']('trackChangesData.editorCreator',_0x2f70c2=>{const _0x50e57c=_0x5a215d['model']['document']['getRootNames']()['reduce']((_0x3f8d77,_0x1e5dc3)=>(_0x3f8d77[_0x1e5dc3]='',_0x3f8d77),{});return _0x5a215d['constructor']['create'](_0x50e57c,_0x2f70c2);}),'function'!=typeof _0x5a215d['config']['get']('trackChangesData')['editorCreator'])throw new _0x4bd1ef('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5eb796){return P(this['editor'],!0x0,_0x5eb796);}['getDataWithDiscardedSuggestions'](_0x4c973d){return P(this['editor'],!0x1,_0x4c973d);}}class Fe extends _0x5c469f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24b614){function _0x29e9ee(_0x3f504a){return _0x3f504a['map'](_0x287c4d=>String['fromCharCode'](_0x287c4d))['join']('');}super(_0x24b614),this['result']='end',_0x24b614[_0x29e9ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29e9ee([0x76,0x69,0x65,0x77])][_0x29e9ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29e9ee([0x61,0x75,0x74,0x6f]),_0x24b614[_0x29e9ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x29e9ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29e9ee([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x29e9ee([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x29e9ee([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 De(_0x3c3dd8){return void 0x0!==_0x3c3dd8['getRootsAttributes'];}async function P(_0x3b2893,_0x244f35,_0x197217){const _0x154ac7=_0x4f6792(_0x3b2893,p);_0x154ac7['plugins']['push'](d,Fe),_0x154ac7['rootsAttributes']=De(_0x3b2893)?_0x3b2893['getRootsAttributes']():void 0x0;const _0x4b8604=document['createDocumentFragment'](),_0x7e23bc=_0x3b2893['config']['get']('trackChangesData')['editorCreator'],_0x41cce0=await _0x7e23bc(_0x154ac7,()=>function(_0x26e244){const _0x5bf232=document['createElement']('div');return _0x26e244['appendChild'](_0x5bf232),_0x5bf232;}(_0x4b8604));!function(_0x4c195f,_0x3aed7b){const _0x3fb7a4=_0x4c195f['model']['document']['getRootNames']()['reduce']((_0x369728,_0x58830d)=>(_0x369728[_0x58830d]=_0x4c195f['data']['get']({'rootName':_0x58830d}),_0x369728),{}),_0x1fcb70=_0x4c195f['plugins']['get']('Users')['users']['map'](_0x57e576=>({'id':_0x57e576['id'],'name':_0x57e576['name']})),_0x160b93=_0x4c195f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3eeec7=_0x4c195f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3fe46c=_0x3aed7b['plugins']['get']('Users'),_0xe772eb=_0x3aed7b['plugins']['get']('TrackChangesEditing'),_0xf80562=_0x3aed7b['plugins']['get']('CommentsRepository');for(const _0x3c6c5f of _0xf80562['getCommentThreads']())_0x3c6c5f['remove']();for(const _0xe1c03b of _0x1fcb70)_0x3fe46c['getUser'](_0xe1c03b['id'])||_0x3fe46c['addUser'](_0xe1c03b);_0x3fe46c['me']||_0x3fe46c['useAnonymousUser']();for(const _0xf8e687 of _0x3eeec7)_0xf80562['addCommentThread'](_0xf8e687);for(const _0x3f378d of _0x160b93)_0xe772eb['addSuggestionData'](_0x3f378d);_0x3aed7b['data']['set'](_0x3fb7a4);}(_0x3b2893,_0x41cce0),_0x41cce0['execute'](_0x244f35?'acceptAllSuggestions':'discardAllSuggestions');const _0x29fe09=De(_0x41cce0)?_0x41cce0['getFullData'](_0x197217):_0x41cce0['data']['get'](_0x197217);return await _0x41cce0['destroy'](),_0x29fe09;}class Me extends _0x3725c9{['options'];constructor(_0x8dde3,_0x4ff3c0){super(_0x8dde3),this['options']=_0x4ff3c0,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'](_0x5469b8,_0x193082){if(!this['element'])return;const _0x1b7ca5=[];for(const [_0x4768ed,_0x5cd12a]of _0x5469b8){const _0x39310d=document['createElement']('div');_0x39310d['setAttribute']('data-ck-root-name',_0x4768ed),_0x39310d['className']=_0x5cd12a['classes']+'\x20ck-track-changes-preview__root-container',_0x39310d['innerHTML']=_0x5cd12a['content'],_0x1b7ca5['push'](_0x39310d);}_0x193082(this['element'],_0x1b7ca5),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x2677d9{constructor(_0x288068){super(_0x288068),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3e93ae=this['editor'],_0x300bc4=_0x3e93ae['locale'],_0x1663ce=_0x3e93ae['plugins']['get']('Dialog');let _0x263316;const _0x36dbfc=function(_0x22ad92){const _0x39737c={};if('editables'in _0x22ad92['ui']['view']){for(const [_0x1829af,_0xfd129d]of Object['entries'](_0x22ad92['ui']['view']['editables']))_0x39737c[_0x1829af]=_0xfd129d['element'];}else _0x39737c[_0x22ad92['model']['document']['getRootNames']()[0x0]]=_0x22ad92['ui']['view']['editable']['element'];return _0x39737c;}(_0x3e93ae),_0x32bf54=function(_0x811f6a){let _0x5bda94=0x0;for(const _0x38286d of Object['values'](_0x811f6a))_0x5bda94=Math['max'](_0x5bda94,_0x38286d['getBoundingClientRect']()['width']);let _0x25fddc=0x0;for(const _0x1ac38f of Object['values'](_0x811f6a))_0x25fddc+=_0x1ac38f['getBoundingClientRect']()['height'];const _0x14f55a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xa3ae50=Math['min'](_0x25fddc,_0x14f55a);return{'width':_0x5bda94,'height':_0xa3ae50};}(_0x36dbfc);_0x1663ce['show']({'id':'finalContentPreview','title':o(_0x300bc4,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x300bc4,{'dialogRects':_0x32bf54}),'onHide':()=>{_0x263316['detachFromDom']();},'onShow':()=>{_0x3e93ae['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x43c2d0=>{const _0x80fc2c=this['_standarizeRootsData'](_0x43c2d0,_0x3e93ae,_0x36dbfc);_0x1663ce['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x80fc2c,_0x3e93ae['config']['get']('trackChanges.preview.renderFunction'));}),_0x263316=new _0xfa1121(_0x300bc4,[_0x1663ce['view']]),_0x263316['attachToDom'](),_0x263316['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3e93ae['once']('destroy',()=>{_0x263316['detachFromDom']();});const _0x28ab23=_0x1663ce['view']['headerView']['class'];_0x1663ce['view']['headerView']['class']=_0x28ab23?_0x28ab23+'\x20ck-reset_all':'ck-reset_all',_0x1663ce['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1663ce['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xd5ce=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x574528=_0xd5ce['previewMode'],_0x22a84f={};if('$labels'===_0x574528){for(const _0x1acc29 of _0xd5ce['getMergeFieldsIds']())_0x22a84f[_0x1acc29]=_0xd5ce['getLabel'](_0x1acc29)||_0x1acc29;}else{const _0x25c1f2='$defaultValues'===_0x574528?_0xd5ce['getDefaultValues']():_0xd5ce['getDataSetValues'](_0x574528,!0x0);for(const _0x4d2ceb of Object['entries'](_0x25c1f2)){const [_0x4da46e,_0x224e9c]=_0x4d2ceb;_0x22a84f[_0x4da46e]=null!==_0x224e9c?_0x224e9c:_0xd5ce['getLabel'](_0x4da46e)||_0x4da46e;}}return{'mergeFieldsData':_0x22a84f};}['_standarizeRootsData'](_0x43a83a,_0x34c112,_0x53159c){let _0x2492c6;if('string'==typeof _0x43a83a){const _0x5d42d5=_0x34c112['model']['document']['getRootNames']()[0x0];_0x2492c6={[_0x5d42d5]:_0x43a83a};}else _0x2492c6=_0x43a83a;const _0x5ac50e=this['_fixMediaEmbeds'](_0x2492c6,_0x34c112),_0x403ff6=function(_0xac0fce,_0x441e83){for(const [_0x2d150a,_0x1cb761]of _0xac0fce)_0x1cb761['classes']=_0x441e83[_0x2d150a]['classList']['value']['replace']('ck-focused','');return _0xac0fce;}(this['_sortRoots'](_0x34c112)['reduce']((_0x2cf503,_0x431c45)=>(_0x2cf503['push']([_0x431c45,{'content':_0x5ac50e[_0x431c45],'classes':''}]),_0x2cf503),[]),_0x53159c);return _0x403ff6;}['_fixMediaEmbeds'](_0x4eba03,_0x1e5697){if(!_0x1e5697['plugins']['has']('MediaEmbedEditing'))return _0x4eba03;const _0x9ce8f7=_0x1e5697['plugins']['get']('MediaEmbedEditing');for(const [_0x25eee,_0x28bc01]of Object['entries'](_0x4eba03)){const _0x426060=document['createElement']('div');_0x426060['innerHTML']=_0x28bc01,(_0x426060['querySelectorAll']('figure.media')['forEach'](_0x3ff8c7=>{const _0x24df1f=_0x3ff8c7['querySelector']('oembed');if(_0x24df1f){const _0x291fa4=_0x24df1f['getAttribute']('url');if(_0x291fa4){const _0x1af9f2=_0x9ce8f7['registry']['getMediaViewElement'](new _0x2db659(_0x1e5697['editing']['view']['document']),_0x291fa4,{'elementName':'','renderForEditingView':!0x0}),_0x180750=document['createElement']('div');_0x180750['classList']['add']('ck-media__wrapper'),_0x1af9f2['render'](_0x180750,_0x1e5697['editing']['view']['domConverter']),_0x24df1f['replaceWith'](_0x180750);}}}),_0x4eba03[_0x25eee]=_0x426060['innerHTML']);}return _0x4eba03;}['_sortRoots'](_0x47bb50){if(!function(_0x3210e6){return void 0x0!==_0x3210e6['getRootsAttributes'];}(_0x47bb50))return _0x47bb50['model']['document']['getRootNames']();const _0x57503c=[],_0x5d6582=new Map();for(const _0x4d568d of _0x47bb50['model']['document']['getRootNames']()){const _0x25717d=_0x47bb50['editing']['view']['getDomRoot'](_0x4d568d)['getClientRects']()['item'](0x0);_0x57503c['push'](_0x4d568d),_0x5d6582['set'](_0x4d568d,_0x25717d);}return _0x57503c['sort']((_0x559edf,_0x2545c3)=>{const _0x1e70c1=_0x5d6582['get'](_0x559edf),_0x1bb481=_0x5d6582['get'](_0x2545c3);return _0x1e70c1['y']-_0x1bb481['y']||_0x1e70c1['x']-_0x1bb481['x'];}),_0x57503c;}}class Ue extends _0x5c469f{static get['requires'](){return[re,_0xc55595];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ee4ec){super(_0x5ee4ec),_0x5ee4ec['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5ee4ec['config']['define']('trackChanges.preview.renderFunction',(_0x199abe,_0x2db338)=>{for(const _0xd6eded of _0x2db338)_0x199abe['appendChild'](_0xd6eded);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};