@ckeditor/ckeditor5-track-changes 47.3.0-alpha.6 → 47.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/ai.js +1 -1
  158. package/src/integrations/aiassistant.js +1 -1
  159. package/src/integrations/aiquickactions.js +1 -1
  160. package/src/integrations/alignment.js +1 -1
  161. package/src/integrations/basicstyles.js +1 -1
  162. package/src/integrations/blockquote.js +1 -1
  163. package/src/integrations/bookmark.js +1 -1
  164. package/src/integrations/casechange.js +1 -1
  165. package/src/integrations/ckbox.js +1 -1
  166. package/src/integrations/codeblock.js +1 -1
  167. package/src/integrations/comments.js +1 -1
  168. package/src/integrations/deletecommand.js +1 -1
  169. package/src/integrations/emoji.js +1 -1
  170. package/src/integrations/entercommand.js +1 -1
  171. package/src/integrations/findandreplace.js +1 -1
  172. package/src/integrations/font.js +1 -1
  173. package/src/integrations/footnotes.js +1 -1
  174. package/src/integrations/formatpainter.js +1 -1
  175. package/src/integrations/heading.js +1 -1
  176. package/src/integrations/highlight.js +1 -1
  177. package/src/integrations/horizontalline.js +1 -1
  178. package/src/integrations/htmlembed.js +1 -1
  179. package/src/integrations/image.js +1 -1
  180. package/src/integrations/imagereplace.js +1 -1
  181. package/src/integrations/imagestyle.js +1 -1
  182. package/src/integrations/importword.js +1 -1
  183. package/src/integrations/indent.js +1 -1
  184. package/src/integrations/inputcommand.js +1 -1
  185. package/src/integrations/legacylist.js +1 -1
  186. package/src/integrations/legacylistproperties.js +1 -1
  187. package/src/integrations/lineheight.js +1 -1
  188. package/src/integrations/link.js +1 -1
  189. package/src/integrations/list.js +1 -1
  190. package/src/integrations/listproperties.js +1 -1
  191. package/src/integrations/mediaembed.js +1 -1
  192. package/src/integrations/mention.js +1 -1
  193. package/src/integrations/mergefields.js +1 -1
  194. package/src/integrations/multilevellist.js +1 -1
  195. package/src/integrations/pagebreak.js +1 -1
  196. package/src/integrations/paragraph.js +1 -1
  197. package/src/integrations/removeformat.js +1 -1
  198. package/src/integrations/replacesourcecommand.js +1 -1
  199. package/src/integrations/restrictededitingmode.js +1 -1
  200. package/src/integrations/shiftentercommand.js +1 -1
  201. package/src/integrations/standardeditingmode.js +1 -1
  202. package/src/integrations/style.js +1 -1
  203. package/src/integrations/table.js +1 -1
  204. package/src/integrations/tablecaption.js +1 -1
  205. package/src/integrations/tableclipboard.js +2 -2
  206. package/src/integrations/tablecolumnresize.js +1 -1
  207. package/src/integrations/tableheadings.js +1 -1
  208. package/src/integrations/tablelayout.js +1 -1
  209. package/src/integrations/tablemergesplit.js +1 -1
  210. package/src/integrations/tableofcontents.js +1 -1
  211. package/src/integrations/tableproperties.js +1 -1
  212. package/src/integrations/template.js +1 -1
  213. package/src/integrations/title.js +1 -1
  214. package/src/integrations/undo.js +1 -1
  215. package/src/integrations/uploadcare.js +1 -1
  216. package/src/integrations/utils.js +1 -1
  217. package/src/suggestion.js +2 -2
  218. package/src/suggestiondescriptionfactory.js +1 -1
  219. package/src/trackchanges.js +1 -1
  220. package/src/trackchangesdata.js +1 -1
  221. package/src/trackchangesediting.js +1 -1
  222. package/src/trackchangespreview.js +1 -1
  223. package/src/trackchangesui.js +1 -1
  224. package/src/ui/suggestioncontroller.js +2 -2
  225. package/src/ui/view/basesuggestionthreadview.js +1 -1
  226. package/src/ui/view/suggestionthreadview.js +1 -1
  227. package/src/ui/view/suggestionview.js +1 -1
  228. package/src/ui/view/trackchangespreviewview.js +1 -1
  229. package/src/utils/common-translations.js +1 -1
  230. 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 _0x398953,Plugin as _0x496248,PendingActions as _0x3c65e5}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x212a92,ObservableMixin as _0x1c89c9,uid as _0x59376e,priorities as _0x104c38,insertToPriorityArray as _0x182f00,logWarning as _0x9e9c33,getEnvKeystrokeText as _0x3070f8,FocusTracker as _0x5d106c,KeystrokeHandler as _0x5eb925,Collection as _0x482b72}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x399244,IconCancel as _0x2d1d52,IconTrackChanges as _0x50c6d6}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x58c26d,View as _0x2c4ff8,ViewCollection as _0x1c9e8b,FocusCycler as _0x32e4dd,UIModel as _0x1bf4cc,createDropdown as _0x36c361,SplitButtonView as _0x2e4bcb,addListToDropdown as _0x1251a3,MenuBarMenuView as _0x370838,MenuBarMenuListView as _0x23270c,ListSeparatorView as _0x11f937,MenuBarMenuListItemView as _0x40472f,MenuBarMenuListItemButtonView as _0xab7acc,BodyCollection as _0x1a2eb2,Dialog as _0x5ba43}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x195d02,DocumentCompare as _0x50f5fc,hashObject as _0x452107,surroundingMarkersDetector as _0x1b4fb9,FOCUS_ANNOTATION_KEYSTROKE as _0x3d057f,AriaDescriptionView as _0x8c7488,setupThreadKeyboardNavigation as _0x35f4c9,trimHtml as _0x255c01,UserView as _0x438396,LateFocusButtonView as _0xea2447,getDateTimeFormatter as _0x57d6e6,getAllMarkersDomElementsSorted as _0x1bd8dd,sanitizeEditorConfig as _0x349bbc}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x196c38,ModelLiveRange as _0x57b7e9,ModelLivePosition as _0x35bc03,ViewDowncastWriter as _0x3fde8d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x3c4b6f,set as _0xf82136,isEqual as _0x1d8d0a,unset as _0x2b6ed6,omit as Pt}from'es-toolkit/compat';import{Delete as _0x13f923,Input as _0x532ff2}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x24616e}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x32aca0}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 _0x398953{['_enabledCommands'];constructor(_0x32ee64,_0x32e9c6){super(_0x32ee64),this['_enabledCommands']=_0x32e9c6,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 _0x5d5e3a of this['editor']['commands']['commands']())_0x5d5e3a['affectsData']&&!this['_enabledCommands']['has'](_0x5d5e3a)&&_0x5d5e3a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x41caf1 of this['editor']['commands']['commands']())_0x41caf1['affectsData']&&!this['_enabledCommands']['has'](_0x41caf1)&&_0x41caf1['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x398953{['_suggestions'];constructor(_0x3de24e,_0x52a40a){super(_0x3de24e),this['_suggestions']=_0x52a40a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4ea084){const _0x4625cf=this['_suggestions']['get'](_0x4ea084);if(!_0x4625cf)throw new _0x212a92('track-changes-accept-suggestion-not-found',this);const _0x3aca23=_0x4625cf['getRanges']();this['editor']['model']['canEditAt'](_0x3aca23)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4625cf);}}class D extends _0x398953{['_suggestions'];constructor(_0x10dc59,_0x1ad628){super(_0x10dc59),this['_suggestions']=_0x1ad628,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x11b6bd){const _0x50040f=this['_suggestions']['get'](_0x11b6bd);if(!_0x50040f)throw new _0x212a92('track-changes-discard-suggestion-not-found',this);const _0x342c0c=_0x50040f['getRanges']();this['editor']['model']['canEditAt'](_0x342c0c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x50040f);}}function ls(_0x52dea3,_0x31f73d){let _0x351b92='';return _0x351b92+=_0x52dea3['split']('*')['map']((_0x128ad2,_0x5ebc09)=>_0x5ebc09%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+cn(_0x128ad2)+'</span>':cn(_0x128ad2))['join'](''),_0x31f73d&&(_0x351b92+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x31f73d['value']+'\x22\x20title=\x22'+_0x31f73d['title']+'\x22></span>'),_0x351b92;}function cn(_0x8a95a8){const _0x5332d1=document['createElement']('span');return _0x5332d1['innerText']=_0x8a95a8,_0x5332d1['innerHTML'];}function ts(_0x2865e0){return _0x2865e0['sort']((_0x6ba576,_0x343b2d)=>'attribute'===_0x6ba576['type']&&'attribute'!==_0x343b2d['type']?-0x1:'attribute'!==_0x6ba576['type']&&'attribute'===_0x343b2d['type']?0x1:'deletion'==_0x6ba576['type']&&'deletion'!=_0x343b2d['type']?-0x1:'deletion'!=_0x6ba576['type']&&'deletion'==_0x343b2d['type']?0x1:0x0);}function to(_0x4d6e16,_0x57cdbc){let _0x5c59b8,_0x4de4cf=0x0;const _0x491615=[],_0xc7756a=_0x57cdbc['schema'];for(;_0x4de4cf<_0x4d6e16['length'];){const _0x1e2e6d=_0x4d6e16[_0x4de4cf],_0x52752e=_0x4d6e16[_0x4de4cf+0x1];_0x5c59b8||(_0x5c59b8=_0x57cdbc['createPositionBefore'](_0x1e2e6d)),un(_0x57cdbc,_0x1e2e6d,_0x52752e)||(_0x491615['push'](_0x57cdbc['createRange'](_0x5c59b8,_0xc7756a['isObject'](_0x1e2e6d)?_0x57cdbc['createPositionAfter'](_0x1e2e6d):_0x57cdbc['createPositionAt'](_0x1e2e6d,'end'))),_0x5c59b8=null),_0x4de4cf++;}return _0x491615;}function un(_0x4acfa2,_0x1bb5ec,_0x1c3a33){if(!_0x1c3a33)return!0x1;const _0x194f98=_0x4acfa2['createPositionAfter'](_0x1bb5ec),_0x17925c=_0x4acfa2['createPositionBefore'](_0x1c3a33);return _0x194f98['isTouching'](_0x17925c);}function rs(_0x11762d,_0x4182f6,_0x65a837){for(;_0x65a837['length'];){const _0x34d0a2=_0x65a837['splice'](0x0,0x64);_0x11762d['change'](()=>{for(const _0x19d6bd of _0x34d0a2)_0x19d6bd['isInContent']&&_0x4182f6['execute'](_0x19d6bd['id']);});}}class B extends _0x398953{['_command'];['_suggestions'];constructor(_0x4e3274,_0x274b3c,_0x3b7187){super(_0x4e3274),this['_command']=_0x274b3c,this['_suggestions']=_0x3b7187,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x18fead=Array['from'](this['_suggestions']['values']())['some'](_0x1438ba=>_0x1438ba['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x18fead;}['execute'](){const _0x4a0e68=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2f6560 of _0x4a0e68){const _0x40ddec=_0x2f6560['getRanges']();if(!this['editor']['model']['canEditAt'](_0x40ddec))return;}rs(this['editor']['model'],this['_command'],_0x4a0e68);}}class O extends _0x398953{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2ce34d,_0x38e5ab,_0x12fc2f){super(_0x2ce34d),this['_command']=_0x38e5ab,this['_suggestions']=_0x12fc2f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3fcbf9=this['editor']['model']['document']['selection'],_0x216287=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x245f85,_0x334118){const _0x5aa8ed=Array['from'](_0x245f85['getRanges']()),_0x5dd9c0=new Set();for(const _0x526a64 of _0x334118)if(_0x526a64['isInContent']){for(const _0x32d566 of _0x5aa8ed)for(const _0x53a0ea of _0x526a64['getRanges']())(_0x32d566['isIntersecting'](_0x53a0ea)||_0x245f85['isCollapsed']&&!_0x526a64['isMultiRange']&&_0x526a64['next']&&_0x53a0ea['end']['isTouching'](_0x32d566['start']))&&_0x5dd9c0['add'](_0x526a64);}return _0x5dd9c0;}(_0x3fcbf9,_0x216287),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3c2d0f=ts(Array['from'](this['_selectedSuggestions']));for(const _0x479b6c of _0x3c2d0f){const _0x56c859=_0x479b6c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x56c859))return;}rs(this['editor']['model'],this['_command'],_0x3c2d0f);}}class x extends/* #__PURE__ -- @preserve */
24
- _0x1c89c9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2d88d9,_0x238fc9){super(),this['id']=_0x238fc9['id'],this['type']=_0x238fc9['type'],this['subType']=_0x238fc9['subType']||null,this['author']=_0x238fc9['author'],this['creator']=_0x238fc9['creator']||_0x238fc9['author'],this['isExternal']=Boolean(_0x238fc9['attributes']&&_0x238fc9['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x238fc9['originalSuggestionId']||null,this['_model']=_0x2d88d9,this['_onAccept']=_0x238fc9['onAccept'],this['_onDiscard']=_0x238fc9['onDiscard'],this['_onAttributesChange']=_0x238fc9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x238fc9['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 _0x432c9b=this;for(;_0x432c9b['previous'];)_0x432c9b=_0x432c9b['previous'];return _0x432c9b;}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'](_0x31145c){this['_markerNames']['add'](_0x31145c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5a2aa1=>this['_model']['markers']['get'](_0x5a2aa1))['filter'](_0x2635f0=>_0x2635f0);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5836d9=>{for(const _0x5b5028 of this['getMarkers']())_0x5836d9['removeMarker'](_0x5b5028);}),this['_markerNames']['clear']();}['removeMarker'](_0x4d5ae8){this['_model']['change'](_0x34f8ac=>{_0x34f8ac['removeMarker'](_0x4d5ae8);}),this['_markerNames']['delete'](_0x4d5ae8);}['addRange'](_0x42204d){const _0x359a48='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x359a48),this['_model']['change'](_0x35ea13=>{_0x35ea13['addMarker'](_0x359a48,{'range':_0x42204d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5c99df){for(const _0x33a8cc of this['getRanges']())if(_0x33a8cc['isIntersecting'](_0x5c99df))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1df3b2=>_0x1df3b2['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x469717,_0x3ac2e5)=>[..._0x469717,..._0x3ac2e5['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x11dfad=this['getRanges']();if(0x1!=_0x11dfad['length'])return null;const _0x427978=_0x11dfad[0x0],_0x5a9871=_0x427978['start']['nodeAfter'],_0x10db72=_0x427978['end']['nodeBefore'];return _0x5a9871 instanceof _0x196c38?_0x5a9871!=_0x10db72?null:_0x5a9871: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 _0x4a4803=[];let _0x3d3e52=this['head'];for(;_0x3d3e52;)_0x4a4803['push'](_0x3d3e52),_0x3d3e52=_0x3d3e52['next'];return _0x4a4803;}['setAttribute'](_0x3735b0,_0x29cdbf){const _0x988e4e=_0x3c4b6f(this['attributes']);_0xf82136(_0x988e4e,_0x3735b0,_0x29cdbf),_0x1d8d0a(_0x988e4e,this['attributes'])||(this['attributes']=_0x988e4e,this['_onAttributesChange'](_0x988e4e));}['removeAttribute'](_0x267fcd){const _0x3e05c6=_0x3c4b6f(this['attributes']);_0x2b6ed6(_0x3e05c6,_0x267fcd),_0x1d8d0a(_0x3e05c6,this['attributes'])||(this['attributes']=_0x3e05c6,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 _0x59376e()['substr'](0x1,0x5);}}function o(_0x84e6d7,_0x371f47,_0x296bd0){const _0x17b9d2=_0x84e6d7['t'],t=_0x84e6d7['t'];switch(_0x371f47){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',_0x296bd0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x296bd0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x296bd0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x296bd0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x296bd0);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',_0x296bd0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x296bd0);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',_0x296bd0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x296bd0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x296bd0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x296bd0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x296bd0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x296bd0);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x296bd0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x296bd0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x296bd0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x296bd0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x296bd0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x296bd0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x296bd0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x296bd0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x296bd0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x296bd0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x296bd0);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x296bd0);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'},_0x296bd0);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x296bd0);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x296bd0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x296bd0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x296bd0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x296bd0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x296bd0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x296bd0);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'},_0x296bd0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x296bd0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x296bd0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x296bd0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x296bd0);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'},_0x296bd0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x296bd0);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'},_0x296bd0);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'},_0x296bd0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x296bd0);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'},_0x296bd0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x296bd0);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'},_0x296bd0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x296bd0);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x296bd0);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x296bd0);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x296bd0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x296bd0);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'},_0x296bd0);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x296bd0);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 _0x17b9d2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x296bd0);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x17b9d2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x296bd0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x296bd0);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'},_0x296bd0);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'},_0x296bd0);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'},_0x296bd0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x371f47;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x258df6,_0x389880){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x258df6,this['_locale']=_0x389880;}['getDescriptions'](_0x3bbf93){const _0x1dbe64=[],_0x2ca8ae=new Set(),_0x28281e=new Set();for(let _0xade6b8=0x0;_0xade6b8<_0x3bbf93['length'];_0xade6b8++){const _0x2e4dd5=_0x3bbf93[_0xade6b8];if(!_0x2e4dd5['isInContent'])continue;const _0x58de0f=this['_handleCustomCallbackDescription'](_0x2e4dd5);if(_0x58de0f){if(null!=_0x2e4dd5['subType']){if(_0x2ca8ae['has'](_0x2e4dd5['subType']))continue;_0x2ca8ae['add'](_0x2e4dd5['subType']);}_0x1dbe64['push'](_0x58de0f);}else{if('attribute'==_0x2e4dd5['type']){const _0xf5cf17=_0x2e4dd5['data']['key'];if(_0x28281e['has'](_0xf5cf17))continue;_0x28281e['add'](_0x2e4dd5['data']['key']),_0xf5cf17==m?this['_handleRenameSuggestionDescription'](_0x1dbe64,_0x2e4dd5):this['_handleAttributeSuggestionDescription'](_0x1dbe64,_0x2e4dd5);continue;}'insertion'!=_0x2e4dd5['type']&&'deletion'!=_0x2e4dd5['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1dbe64,_0x2e4dd5,_0x3bbf93[_0xade6b8+0x1]);}}return this['_resolveDescriptionItems'](_0x1dbe64);}['registerDescriptionCallback'](_0x171cea){this['_customCallbacks']['push'](_0x171cea);}['registerElementLabel'](_0x4f41ff,_0xd07b0d,_0xc65236=_0x104c38['normal']){'function'==typeof _0x4f41ff?_0x182f00(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4f41ff,'label':_0xd07b0d,'priority':_0xc65236}):this['_itemLabels']['set'](_0x4f41ff,_0xd07b0d);}['registerAttributeLabel'](_0x30f77a,_0x9266f2){this['_attributeLabels']['set'](_0x30f77a,_0x9266f2);}['getItemLabel'](_0x2bec2e,_0x57401c=0x1){let _0x1119f3;for(const _0x1efb3f of this['_itemLabelsCallbacks'])if(_0x1efb3f['matchingCallback'](_0x2bec2e)){_0x1119f3=_0x1efb3f['label'];break;}return _0x1119f3||(_0x1119f3=this['_itemLabels']['get'](_0x2bec2e['name'])),_0x1119f3?_0x1119f3(_0x57401c):0x1!==_0x57401c?_0x57401c+'\x20'+_0x2bec2e['name']+'s':''+_0x2bec2e['name'];}['_addDescriptionItems'](_0x3cc811,_0x11b465){const _0x354213=_0x11b465['getFirstRange']()['getWalker'](),_0x317f1a='insertion'==_0x11b465['type']?'add':'remove';for(const _0x4b424b of _0x354213){const _0x3e4393=_0x4b424b['item'],_0x5a8153=_0x3cc811[_0x3cc811['length']-0x1];if(_0x3e4393['is']('$textProxy'))_0x5a8153&&_0x5a8153['type']['indexOf']('Container')>-0x1&&_0x3cc811['pop'](),_0x5a8153&&'text'==_0x5a8153['type']?_0x5a8153[_0x317f1a]+=_0x3e4393['data']:_0x3cc811['push']({'type':'text','add':'add'==_0x317f1a?_0x3e4393['data']:'','remove':'remove'==_0x317f1a?_0x3e4393['data']:''});else{if(this['_schema']['isObject'](_0x3e4393)){const _0x58db6c=_0x3e4393;if(_0x5a8153&&_0x5a8153['type']['indexOf']('Container')>-0x1&&_0x3cc811['pop'](),'elementEnd'==_0x4b424b['type'])continue;_0x5a8153&&_0x5a8153['type']==_0x317f1a+'Object'&&_0x5a8153['element']['name']==_0x58db6c['name']?_0x5a8153['quantity']++:_0x3cc811['push']({'type':_0x317f1a+'Object','element':_0x58db6c,'quantity':0x1}),_0x354213['skip'](_0x134275=>!('elementEnd'==_0x134275['type']&&_0x134275['item']==_0x3e4393));}else{if(this['_schema']['checkChild'](_0x3e4393,'$text')||_0x3e4393['is']('element','softBreak')){const _0x2106ae=_0x3e4393;if('add'==_0x317f1a&&'elementStart'==_0x4b424b['type']||'remove'==_0x317f1a&&'elementEnd'==_0x4b424b['type'])continue;if(_0x5a8153&&-0x1==_0x5a8153['type']['indexOf']('Container')){'text'==_0x5a8153['type']&&(_0x5a8153[_0x317f1a]+='\x0a');continue;}let _0x45fbf3;if(_0x45fbf3='add'==_0x317f1a?_0x2106ae['nextSibling']&&!this['_schema']['isObject'](_0x2106ae['nextSibling'])?_0x2106ae['nextSibling']:null:_0x2106ae['previousSibling']&&!this['_schema']['isObject'](_0x2106ae['previousSibling'])?_0x2106ae['previousSibling']:null,_0x2106ae['isEmpty']||_0x45fbf3&&_0x45fbf3['isEmpty']){const _0x4824ae=_0x45fbf3&&_0x45fbf3['isEmpty']?_0x45fbf3:_0x2106ae;_0x5a8153&&_0x5a8153['type']==_0x317f1a+'EmptyContainer'&&_0x5a8153['element']['name']==_0x4824ae['name']?_0x5a8153['quantity']++:_0x3cc811['push']({'type':_0x317f1a+'EmptyContainer','element':_0x4824ae,'quantity':0x1});}else _0x3cc811['push']({'type':_0x317f1a+'Container','element':_0x2106ae});}}}}}['_resolveDescriptionItems'](_0x462a0a){const _0x3f49d0=this['_locale'],_0x5acecd=[],_0x49cad1=[],_0x3e5972=[];for(const _0x4b612a of _0x462a0a)switch(_0x4b612a['type']){case'text':if(_0x4b612a['add']=_0x4b612a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4b612a['remove']=_0x4b612a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4b612a['add']&&''!=_0x4b612a['remove']){_0x5acecd['push']({'type':'replace','content':o(_0x3f49d0,'REPLACE_TEXT',['\x22'+_0x4b612a['remove']+'\x22','\x22'+_0x4b612a['add']+'\x22'])});continue;}if(null!=_0x4b612a['add']['match'](/^ +$/)){_0x5acecd['push']({'type':'insertion','content':o(_0x3f49d0,'*Insert:*\x20%0',o(_0x3f49d0,'ELEMENT_SPACE',_0x4b612a['add']['length']))});continue;}if(null!=_0x4b612a['remove']['match'](/^ +$/)){_0x5acecd['push']({'type':'deletion','content':o(_0x3f49d0,'*Remove:*\x20%0',o(_0x3f49d0,'ELEMENT_SPACE',_0x4b612a['remove']['length']))});continue;}if(''!=_0x4b612a['add']){_0x5acecd['push']({'type':'insertion','content':o(_0x3f49d0,'*Insert:*\x20%0','\x22'+_0x4b612a['add']+'\x22')});continue;}_0x5acecd['push']({'type':'deletion','content':o(_0x3f49d0,'*Remove:*\x20%0','\x22'+_0x4b612a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5acecd['push']({'type':'insertion','content':o(_0x3f49d0,'*Insert:*\x20%0',this['getItemLabel'](_0x4b612a['element'],_0x4b612a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5acecd['push']({'type':'deletion','content':o(_0x3f49d0,'*Remove:*\x20%0',this['getItemLabel'](_0x4b612a['element'],_0x4b612a['quantity']))});continue;case'addContainer':_0x5acecd['push']({'type':'insertion','content':o(_0x3f49d0,'*Split:*\x20%0',this['getItemLabel'](_0x4b612a['element'],_0x4b612a['quantity']))});continue;case'removeContainer':_0x5acecd['push']({'type':'deletion','content':o(_0x3f49d0,'*Merge:*\x20%0',this['getItemLabel'](_0x4b612a['element'],_0x4b612a['quantity']))});continue;case'addFormat':_0x49cad1['push'](_0x4b612a['key']);continue;case'removeFormat':_0x3e5972['push'](_0x4b612a['key']);continue;default:_0x5acecd['push'](_0x4b612a);}if(_0x49cad1['length']){const _0x246c39=_0x49cad1['map'](_0x1bfa3d=>this['_attributeLabels']['has'](_0x1bfa3d)?this['_attributeLabels']['get'](_0x1bfa3d):_0x1bfa3d)['join'](',\x20');_0x5acecd['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x246c39)});}if(_0x3e5972['length']){const _0x5c40ef=_0x3e5972['map'](_0x49216c=>this['_attributeLabels']['has'](_0x49216c)?this['_attributeLabels']['get'](_0x49216c):_0x49216c)['join'](',\x20');_0x5acecd['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5c40ef)});}return _0x5acecd;}['_handleCustomCallbackDescription'](_0x2340cd){for(const _0xb8439c of this['_customCallbacks']){const _0x4879c7=_0xb8439c(_0x2340cd);if(_0x4879c7&&'type'in _0x4879c7)return _0x4879c7;}}['_handleAttributeSuggestionDescription'](_0x3b9801,_0x1233e4){const _0x452ab8=_0x1233e4['data'],_0x1d4cb3=void 0x0===_0x452ab8['newValue']?'removeFormat':'addFormat';_0x3b9801['push']({'type':_0x1d4cb3,'key':_0x452ab8['key']});}['_handleRenameSuggestionDescription'](_0x976099,_0x245579){_0x976099['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x245579['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x488068,_0x3cf091,_0xd0f863){if(this['_addDescriptionItems'](_0x488068,_0x3cf091),_0xd0f863&&_0xd0f863['getFirstRange']()&&!_0x3cf091['getFirstRange']()['end']['isEqual'](_0xd0f863['getFirstRange']()['start'])){const _0xddd514=_0x488068[_0x488068['length']-0x1],_0x404100='insertion'==_0x3cf091['type']?'add':'remove';_0xddd514&&'text'==_0xddd514['type']&&(_0xddd514[_0x404100]+='\x0a');}}}class R extends _0x496248{['afterInit'](){const _0x1f894a=this['editor'],_0x3d903f=_0x1f894a['plugins']['get']('TrackChangesEditing');_0x1f894a['commands']['get']('showAIAssistant')&&_0x3d903f['enableCommand']('showAIAssistant');}}class T extends _0x496248{['afterInit'](){const _0x45fe11=this['editor'],_0x3945d5=_0x45fe11['plugins']['get']('TrackChangesEditing');_0x45fe11['commands']['get']('toggleAi')&&_0x3945d5['enableCommand']('toggleAi');}}class E extends _0x496248{['afterInit'](){const _0x1cb8fc=this['editor'],_0x59410a=_0x1cb8fc['plugins']['get']('TrackChangesEditing');_0x1cb8fc['commands']['get']('aiQuickAction')&&_0x59410a['enableCommand']('aiQuickAction');}}class U extends _0x496248{['afterInit'](){const _0x361a8d=this['editor'],_0x1e8d4d=_0x361a8d['locale'];if(!_0x361a8d['plugins']['has']('AlignmentEditing'))return;const _0x13cb85=_0x361a8d['plugins']['get']('TrackChangesEditing');_0x13cb85['enableDefaultAttributesIntegration']('alignment'),_0x13cb85['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1e8d4d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2964ad=this['editor'],_0x2b7183=_0x2964ad['locale'];_0x2964ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x263555=>{if('formatBlock'!=_0x263555['type'])return;const {data:_0x4bf207}=_0x263555;if(_0x4bf207&&'alignment'==_0x4bf207['commandName']){const _0x3b7000=_0x4bf207['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2b7183,'*Format:*\x20%0',function(_0xe219d0){switch(_0xe219d0){case'left':return o(_0x2b7183,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2b7183,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2b7183,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2b7183,'FORMAT_JUSTIFY_TEXT');}}(_0x3b7000))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x496248{['afterInit'](){const _0x15a312=this['editor'],_0x2caf86=_0x15a312['plugins']['get']('TrackChangesEditing'),_0x28b4f5=_0x15a312['locale'];for(const _0x12d91a of ti){if(!_0x15a312['plugins']['has'](_0x12d91a))continue;const _0x5099e8=_0x12d91a['slice'](0x0,-0x7)['toLowerCase'](),_0x3c7c78='FORMAT_'+_0x5099e8['toUpperCase']();_0x2caf86['enableDefaultAttributesIntegration'](_0x5099e8),_0x2caf86['descriptionFactory']['registerAttributeLabel'](_0x5099e8,o(_0x28b4f5,_0x3c7c78));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22b2ad=this['editor'],_0x51158a=_0x22b2ad['locale'],_0x12f9b2=_0x22b2ad['plugins']['get']('TrackChangesEditing');function _0x229e0f(_0x2a4f30,_0x5716be){_0x12f9b2['descriptionFactory']['registerDescriptionCallback'](_0x16af66=>{if('formatInline'!=_0x16af66['type'])return;const {data:_0x3aaf06}=_0x16af66;return _0x3aaf06&&_0x3aaf06['commandName']===_0x2a4f30?_0x3aaf06['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51158a,'*Format:*\x20%0',_0x5716be)}:{'type':'format','content':o(_0x51158a,'*Remove\x20format:*\x20%0',_0x5716be)}:void 0x0;});}_0x229e0f('bold',o(_0x51158a,'FORMAT_BOLD')),_0x229e0f('italic',o(_0x51158a,'FORMAT_ITALIC')),_0x229e0f('underline',o(_0x51158a,'FORMAT_UNDERLINE')),_0x229e0f('code',o(_0x51158a,'FORMAT_CODE')),_0x229e0f('strikethrough',o(_0x51158a,'FORMAT_STRIKETHROUGH')),_0x229e0f('subscript',o(_0x51158a,'FORMAT_SUBSCRIPT')),_0x229e0f('superscript',o(_0x51158a,'FORMAT_SUPERSCRIPT'));}}class F extends _0x496248{['afterInit'](){const _0x2c0e2c=this['editor'],_0x3b9efb=_0x2c0e2c['locale'];if(!_0x2c0e2c['plugins']['has']('BlockQuoteEditing'))return;const _0x52a296=_0x2c0e2c['plugins']['get']('TrackChangesEditing'),_0x129056=this['editor']['commands']['get']('blockQuote');_0x52a296['enableCommand']('blockQuote',(_0x2f9ae1,_0x345ed9={})=>{const _0x2a08f0=this['editor']['model']['document']['selection'],_0x561934=_0x345ed9&&void 0x0!==_0x345ed9['forceValue']?_0x345ed9['forceValue']:!_0x129056['value'];let _0x223c5f=[];if(_0x561934){const _0x10b3a9=Array['from'](_0x2a08f0['getSelectedBlocks']())['filter'](_0x5bf7d5=>oo(_0x5bf7d5)||function(_0x3ec8ae,_0x570b3a){const _0x2eb5c5=_0x570b3a['checkChild'](_0x3ec8ae['parent'],'blockQuote'),_0x263058=_0x570b3a['checkChild'](['$root','blockQuote'],_0x3ec8ae);return _0x2eb5c5&&_0x263058;}(_0x5bf7d5,this['editor']['model']['schema']));_0x223c5f=to(_0x10b3a9,_0x2c0e2c['model']);}else{const _0x458f95=Array['from'](_0x2a08f0['getSelectedBlocks']())['filter'](_0x2d52f4=>oo(_0x2d52f4));_0x223c5f=to(_0x458f95,_0x2c0e2c['model']);}_0x2c0e2c['model']['change'](()=>{for(const _0x212d06 of _0x223c5f)_0x52a296['markBlockFormat'](_0x212d06,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x561934}]});});}),_0x52a296['descriptionFactory']['registerDescriptionCallback'](_0x4adc7c=>{const {data:_0x1f9ade}=_0x4adc7c;if(_0x1f9ade&&'blockQuote'==_0x1f9ade['commandName']){const _0x231134=o(_0x3b9efb,'ELEMENT_BLOCK_QUOTE');return _0x1f9ade['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b9efb,'*Set\x20format:*\x20%0',_0x231134)}:{'type':'format','content':o(_0x3b9efb,'*Remove\x20format:*\x20%0',_0x231134)};}});}}function oo(_0x1125df){return'blockQuote'==_0x1125df['parent']['name'];}class G extends _0x496248{['afterInit'](){const _0x3f5d6e=this['editor'],_0x44b514=_0x3f5d6e['locale'],_0xe6e2f1=_0x3f5d6e['plugins']['get']('TrackChangesEditing');_0x3f5d6e['plugins']['has']('BookmarkEditing')&&(_0xe6e2f1['enableCommand']('insertBookmark'),_0xe6e2f1['enableDefaultAttributesIntegration']('updateBookmark'),_0xe6e2f1['descriptionFactory']['registerDescriptionCallback'](_0x45f47e=>{if('insertion'!=_0x45f47e['type']&&'deletion'!=_0x45f47e['type']&&'attribute'!=_0x45f47e['type'])return;const _0x59c7ca=_0x45f47e['getContainedElement']();if(null==_0x59c7ca)return;if(!_0x59c7ca['is']('element','bookmark'))return;const _0xaaf917=_0x59c7ca['getAttribute']('bookmarkId');if('insertion'==_0x45f47e['type'])return{'type':'insertion','content':o(_0x44b514,'*Insert:*\x20%0','\x22'+_0xaaf917+'\x22\x20'+o(_0x44b514,'ELEMENT_BOOKMARK'))};if('deletion'==_0x45f47e['type'])return{'type':'deletion','content':o(_0x44b514,'*Remove:*\x20%0','\x22'+_0xaaf917+'\x22\x20'+o(_0x44b514,'ELEMENT_BOOKMARK'))};const {data:_0x4ea055}=_0x45f47e;if(!_0x4ea055||'bookmarkId'!=_0x4ea055['key'])return;return{'type':'format','content':o(_0x44b514,'*Set\x20bookmark:*\x20%0','\x22'+_0x4ea055['newValue']+'\x22')};}));}}class L extends _0x496248{['afterInit'](){const _0x447d34=this['editor'];_0x447d34['plugins']['has']('CaseChange')&&(_0x447d34['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x447d34['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x447d34['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x496248{['afterInit'](){const _0x1a98f6=this['editor'];_0x1a98f6['commands']['get']('ckbox')&&_0x1a98f6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x496248{['afterInit'](){const _0x46fe2b=this['editor'];if(!_0x46fe2b['plugins']['has']('CodeBlock'))return;const _0x5b81da=_0x46fe2b['plugins']['get']('TrackChangesEditing'),_0x1c0568=_0x46fe2b['locale'],_0x42bde8=_0x46fe2b['config']['get']('codeBlock')['languages'],_0x428050=_0x46fe2b['commands']['get']('codeBlock');_0x5b81da['enableCommand']('indentCodeBlock'),_0x5b81da['enableCommand']('outdentCodeBlock'),_0x5b81da['enableCommand']('codeBlock',(_0x37aa2e,_0x3047ca={})=>{const _0x472816=_0x46fe2b['model'],_0x5d50fe=_0x46fe2b['model']['document']['selection'],_0x47d7ac=_0x3047ca&&void 0x0!==_0x3047ca['forceValue']?_0x3047ca['forceValue']:!_0x428050['value'];let _0xc0c14d;_0x3047ca['language']||(_0x3047ca['language']=_0x42bde8[0x0]['language']),_0xc0c14d=_0x47d7ac?Array['from'](_0x5d50fe['getSelectedBlocks']())['filter'](_0x51f593=>co(_0x51f593)||function(_0x436cc2,_0x12794d){if(_0x436cc2['is']('rootElement')||_0x12794d['isLimit'](_0x436cc2))return!0x1;return _0x12794d['checkChild'](_0x436cc2['parent'],'codeBlock');}(_0x51f593,_0x472816['schema'])):Array['from'](_0x5d50fe['getSelectedBlocks']())['filter'](_0x5ba9b8=>co(_0x5ba9b8));const _0x5b61b7=to(_0xc0c14d,_0x472816);_0x472816['change'](()=>{for(const _0x42ba6a of _0x5b61b7)_0x5b81da['markBlockFormat'](_0x42ba6a,{'commandName':'codeBlock','commandParams':[{..._0x3047ca,'forceValue':_0x47d7ac}],'formatGroupId':'blockName'});});}),(_0x5b81da['descriptionFactory']['registerElementLabel']('codeBlock',_0x41d41d=>o(_0x1c0568,'ELEMENT_CODE_BLOCK',_0x41d41d)),_0x5b81da['descriptionFactory']['registerDescriptionCallback'](_0x5b708e=>{if('formatBlock'!=_0x5b708e['type'])return;const _0x3b7a3b=_0x1c0568['t'],{data:_0x52ff8a}=_0x5b708e;if(!_0x52ff8a||'codeBlock'!=_0x52ff8a['commandName'])return;const _0x5f20b1=_0x52ff8a['commandParams'][0x0]['language'],_0x437a1b=_0x3b7a3b(_0x42bde8['find'](_0x45e5f3=>_0x45e5f3['language']===_0x5f20b1)['label'])['toLowerCase']();return _0x52ff8a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c0568,'*Set\x20format:*\x20%0',o(_0x1c0568,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x437a1b+')')}:{'type':'format','content':o(_0x1c0568,'*Remove\x20format:*\x20%0',o(_0x1c0568,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0xbb90ea){return'codeBlock'==_0xbb90ea['name'];}class z extends _0x496248{['afterInit'](){const _0x1389bf=this['editor'];if(!_0x1389bf['plugins']['has']('CommentsEditing'))return;_0x1389bf['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x496248{static get['requires'](){return[_0x13f923];}['init'](){const _0x153921=this['editor'],_0x30238c=_0x153921['plugins']['get']('TrackChangesEditing');_0x30238c['enableCommand']('delete');const _0x52a0bd=_0x153921['commands']['get']('deleteForward');_0x30238c['enableCommand']('deleteForward',(_0x20f167,_0x38fd7a={})=>{const _0x2c0487=_0x153921['model']['createSelection'](_0x153921['model']['document']['selection']);_0x2c0487['isCollapsed']&&_0x153921['model']['modifySelection'](_0x2c0487,{'direction':'forward','unit':_0x38fd7a['unit']});const _0x38967a=_0x2c0487['getFirstRange'](),_0x15fce3=_0x57b7e9['fromRange'](_0x38967a);let _0x59934c;_0x20f167(_0x38fd7a),_0x59934c='$graveyard'==_0x15fce3['root']['rootName']?_0x153921['model']['createRange'](_0x38967a['start']):_0x153921['model']['createRange'](_0x15fce3['start'],_0x15fce3['end']),_0x15fce3['detach'](),_0x153921['model']['enqueueChange'](_0x52a0bd['buffer']['batch'],_0x71b873=>{_0x52a0bd['buffer']['lock'](),_0x71b873['setSelection'](_0x71b873['createRange'](_0x59934c['end'])),_0x52a0bd['buffer']['unlock']();});});}}class W extends _0x496248{['afterInit'](){const _0x4525c4=this['editor'];if(!_0x4525c4['plugins']['has']('ListEditing'))return;const _0x403519=_0x4525c4['locale'],_0x241bc7=_0x4525c4['plugins']['get']('TrackChangesEditing'),_0x18ac21=_0x4525c4['plugins']['has']('TodoListEditing'),_0x5cd92b=!!_0x4525c4['config']['get']('list.multiBlock');function _0x30912e(_0x150ac8){return{'type':'format','content':''+o(_0x403519,'*Set\x20format:*\x20%0',_0x150ac8)};}function _0x22d72a(_0x119a0f){return{'type':'format','content':''+o(_0x403519,'*Remove\x20format:*\x20%0',_0x119a0f)};}_0x241bc7['enableDefaultAttributesIntegration']('numberedList'),_0x241bc7['enableDefaultAttributesIntegration']('bulletedList'),_0x241bc7['enableDefaultAttributesIntegration']('customNumberedList'),_0x241bc7['enableDefaultAttributesIntegration']('customBulletedList'),_0x241bc7['enableDefaultAttributesIntegration']('indentList'),_0x241bc7['enableDefaultAttributesIntegration']('outdentList'),_0x241bc7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x241bc7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5cd92b&&(_0x241bc7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x241bc7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x18ac21&&(_0x241bc7['enableDefaultAttributesIntegration']('todoList'),_0x241bc7['enableDefaultAttributesIntegration']('checkTodoList'),_0x241bc7['descriptionFactory']['registerDescriptionCallback'](_0x7c650f=>{const {data:_0x339b38}=_0x7c650f;if(_0x339b38&&'todoListChecked'==_0x339b38['key'])return{'type':'format','content':_0x339b38['newValue']?o(_0x403519,'*Check\x20item*'):o(_0x403519,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5cc6d9=>{if(_0x5cc6d9['batch']['isUndo'])return!0x1;let _0x3a066d=!0x1;const _0x2c239f=_0x241bc7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45ba55=>'todoListChecked'===_0x241bc7['_getAttributeKey'](_0x45ba55));for(const _0x59101c of _0x2c239f){'todo'!=_0x59101c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x241bc7['_findSuggestions'](_0x59101c['getFirstRange'](),'attribute')['find'](_0x5d5616=>'listType'===_0x241bc7['_getAttributeKey'](_0x5d5616['suggestion']))||(_0x5cc6d9['removeMarker'](_0x59101c['getFirstMarker']()),_0x3a066d=!0x0));}return _0x3a066d;})),_0x241bc7['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x403519,'FORMAT_INDENT'));const _0x5656a0={'type':'format','content':''};_0x241bc7['descriptionFactory']['registerDescriptionCallback'](_0x14969d=>{const {data:_0x22e2b3}=_0x14969d;if(!_0x22e2b3||'listType'!=_0x22e2b3['key'])return;let _0xe68dfc=_0x14969d['head'];for(;_0xe68dfc;){if(_0xe68dfc['data']&&(('listStyle'==_0xe68dfc['data']['key']||'listMarkerStyle'==_0xe68dfc['data']['key'])&&(_0xe68dfc['data']['newValue']&&'default'!=_0xe68dfc['data']['newValue']||'default'!=_0xe68dfc['data']['oldValue']&&!_0x22e2b3['newValue'])||!_0x5cd92b&&_0xe68dfc['data']['key']==m))return _0x5656a0;_0xe68dfc=_0xe68dfc['next'];}if(null==_0x22e2b3['newValue'])switch(_0x22e2b3['oldValue']){case'bulleted':return _0x22d72a(o(_0x403519,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x22d72a(o(_0x403519,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x22d72a(o(_0x403519,'ELEMENT_TODO_LIST'));}switch(_0x22e2b3['newValue']){case'bulleted':return _0x30912e(o(_0x403519,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x30912e(o(_0x403519,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x30912e(o(_0x403519,'ELEMENT_TODO_LIST'));}}),_0x241bc7['descriptionFactory']['registerDescriptionCallback'](_0x4389e7=>{const {data:_0x2bfb54}=_0x4389e7;if(_0x2bfb54&&'listIndent'==_0x2bfb54['key'])return null==_0x2bfb54['newValue']||null==_0x2bfb54['oldValue']&&0x0==_0x2bfb54['newValue']?_0x5656a0:void 0x0;}),_0x241bc7['descriptionFactory']['registerDescriptionCallback'](_0x4195db=>{if('attribute'!=_0x4195db['type'])return;const {data:_0x472e3f}=_0x4195db;if(!_0x472e3f||'listItemId'!=_0x472e3f['key'])return;const _0x4f43f5=Te(_0x4195db);return'newValue'==_0x4f43f5?{'type':'format','content':o(_0x403519,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4f43f5?{'type':'format','content':o(_0x403519,'*Split:*\x20list\x20item')}:_0x5656a0;}),_0x4525c4['model']['document']['registerPostFixer'](_0x2609e9=>this['listItemIdFixer'](_0x2609e9)),_0x4525c4['model']['document']['registerPostFixer'](_0x3d14ee=>this['noTrackChangesFixer'](_0x3d14ee)),_0x4525c4['model']['document']['on']('change:data',(_0x3dfbfe,_0x14cd91)=>{if(_0x14cd91['isUndo']||!_0x14cd91['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x25175c){if(_0x25175c['batch']['isUndo']||!_0x25175c['batch']['isLocal'])return!0x1;let _0x276506=!0x1;const _0x51762b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e290e=>_0x1e290e['data']&&'listItemId'==_0x1e290e['data']['key'])['filter'](_0x303b3=>_0x303b3['data']['newValue']&&_0x303b3['data']['oldValue']);for(const _0x52c674 of _0x51762b)Te(_0x52c674)||(_0x25175c['removeMarker'](_0x52c674['getFirstMarker']()),_0x276506=!0x0);return _0x276506;}['noTrackChangesFixer'](_0xeb686a){if(_0xeb686a['batch']['isUndo']||!_0xeb686a['batch']['isLocal'])return!0x1;const _0x5800ed=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5800ed['trackChangesCommand']['value'])return!0x1;let _0x833be4=!0x1;const _0x2b135f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x572266=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x111cec=>'attribute'==_0x111cec['type'])['filter'](_0x38c060=>_0x2b135f['includes'](_0x38c060['attributeKey']));if(0x0==_0x572266['length'])return _0x833be4;for(const _0x48f775 of _0x572266){const _0x2a61c1=_0x5800ed['_findSuggestions'](_0x48f775['range'],'attribute')['filter'](_0x4cdc55=>!_0x4cdc55['meta']['isNextTo'])['map'](_0xf85bf8=>_0xf85bf8['suggestion'])['filter'](_0x3dda6c=>{const _0x3ca05c=_0x5800ed['_getAttributeKey'](_0x3dda6c);return _0x2b135f['includes'](_0x3ca05c);});if(_0x2a61c1['length']){for(const _0x54db8f of _0x2a61c1)_0xeb686a['removeMarker'](_0x54db8f['getFirstMarker']());_0x833be4=!0x0;}}return _0x833be4;}['assureChains'](){const _0x534b9e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35e53f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x585926;const _0x333c85=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1cfa08=>{if(_0x1cfa08['data']['oldRange']||!_0x1cfa08['data']['newRange'])return null;if(!_0x1cfa08['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x413b56}=_0x534b9e['_splitMarkerName'](_0x1cfa08['name']);if(!_0x534b9e['hasSuggestion'](_0x413b56))return null;const _0x56b5f1=_0x534b9e['getSuggestion'](_0x413b56);return _0x35e53f['includes'](_0x56b5f1['data']['key']);})['map'](_0x3a014e=>{const {id:_0x4a428b}=_0x534b9e['_splitMarkerName'](_0x3a014e['name']),_0x3b3205=_0x534b9e['getSuggestion'](_0x4a428b);return _0x585926=_0x3b3205['attributes']['groupId'],_0x3b3205['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x333c85['size'])return;const _0x22f1f8=_0x534b9e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe09952=>'attribute'==_0xe09952['type']&&_0xe09952['data']&&_0x35e53f['includes'](_0xe09952['data']['key'])&&_0xe09952['attributes']['groupId']!=_0x585926)['map'](_0x19b63e=>({'listItem':_0x19b63e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x19b63e['attributes']['groupId']})),_0x38aabe=new Set();for(const {groupId:_0x410791,listItem:_0x9a6d5d}of _0x22f1f8)_0x333c85['has'](_0x9a6d5d)&&_0x38aabe['add'](_0x410791);for(const _0x5e72d9 of _0x534b9e['getSuggestions']())_0x38aabe['has'](_0x5e72d9['attributes']['groupId'])&&_0x5e72d9['setAttribute']('groupId',_0x585926);}['_supportLegacySuggestions'](){const _0x53baae=this['editor'],_0x18527b=_0x53baae['locale'],_0x40358b=_0x53baae['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x40358b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x501126,_0xeba553){const _0x5ee172=[];for(let _0x61fe56 of _0x501126)_0x61fe56['start']['nodeAfter']===_0x61fe56['end']['parent']&&(_0x61fe56=_0x53baae['model']['createRange'](_0x53baae['model']['createPositionAt'](_0x61fe56['start']['nodeAfter'],0x0))),_0x5ee172['push'](_0x61fe56);_0x53baae['model']['change'](_0x39f515=>{const _0x335e67=_0x53baae['model']['document']['selection'],_0x19e5a1=Array['from'](_0x335e67['getRanges']())['map'](_0x1849cf=>_0x57b7e9['fromRange'](_0x1849cf));_0x39f515['setSelection'](_0x5ee172),_0x53baae['commands']['get'](_0xeba553['commandName'])['refresh'](),_0xeba553['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x53baae['execute'](_0xeba553['commandName'],..._0xeba553['commandParams']),_0x39f515['setSelection'](_0x19e5a1);for(const _0x47afac of _0x19e5a1)_0x47afac['detach']();});}),_0x40358b['descriptionFactory']['registerElementLabel'](function(_0x280e5f){const _0x592952=!_0x53baae['model']['schema']['isObject'](_0x280e5f),_0x1391f4=_0x280e5f['previousSibling'],_0x3a67c4=_0x280e5f['nextSibling'],_0xec96b7=_0x280e5f['getAttribute']('listItemId'),_0x5e53a6=!_0x1391f4||_0x1391f4['getAttribute']('listItemId')!==_0xec96b7,_0x5dd6f1=!_0x3a67c4||_0x3a67c4['getAttribute']('listItemId')!==_0xec96b7;return _0x592952&&Boolean(_0xec96b7)&&_0x5e53a6&&_0x5dd6f1;},_0x1aa8c7=>o(_0x18527b,'ELEMENT_LIST_ITEM',_0x1aa8c7));}['_registerLegacyDescription'](){const _0x10d478=this['editor'],_0x1395e3=_0x10d478['locale'];function _0x33d736(_0x31d600){const _0x2466c2=_0x10d478['commands']['get']('bulletedList')['value'],_0x2e1ea1=_0x10d478['commands']['get']('numberedList')['value'];return'numberedList'===_0x31d600?_0x2466c2:_0x2e1ea1;}_0x10d478['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x462e52){if('formatBlock'!=_0x462e52['type'])return;const {data:_0xf26859}=_0x462e52;if(!_0xf26859)return;let _0xbcb88a,_0x2345ac,_0x16a767,_0x13a9e3;switch(_0xf26859['commandName']){case'bulletedList':_0x16a767=_0xf26859['commandParams'][0x0]['forceValue'],_0x13a9e3=_0x33d736(_0xf26859['commandName']),_0xbcb88a=_0x16a767?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x13a9e3&&_0x10d478['config']['get']('list.multiBlock')||(_0xbcb88a='*Change\x20to:*\x20%0'),_0x2345ac={'type':'format','content':o(_0x1395e3,_0xbcb88a,o(_0x1395e3,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x16a767=_0xf26859['commandParams'][0x0]['forceValue'],_0x13a9e3=_0x33d736(_0xf26859['commandName']),_0xbcb88a=_0x16a767?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x13a9e3&&_0x10d478['config']['get']('list.multiBlock')||(_0xbcb88a='*Change\x20to:*\x20%0'),_0x2345ac={'type':'format','content':o(_0x1395e3,_0xbcb88a,o(_0x1395e3,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xbcb88a='*Indent:*\x20%0',_0x2345ac={'type':'format','content':o(_0x1395e3,_0xbcb88a,o(_0x1395e3,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xbcb88a=function(_0x5da23b){const _0x4d1e4a=_0x5da23b['getFirstRange']();let _0x47ffc8=_0x4d1e4a['start']['nodeAfter'];for(;_0x47ffc8&&_0x4d1e4a['containsItem'](_0x47ffc8);){if(_0x47ffc8['getAttribute']('listIndent')>0x0)return!0x1;_0x47ffc8=_0x47ffc8['nextSibling'];}return!0x0;}(_0x462e52)?o(_0x1395e3,'*Format:*\x20remove\x20from\x20%0',o(_0x1395e3,function(_0x38cda5){return'ELEMENT_'+_0x38cda5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x462e52))):o(_0x1395e3,'*Outdent:*\x20%0',o(_0x1395e3,'ELEMENT_LIST_ITEM')),_0x2345ac={'type':'format','content':_0xbcb88a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xf26859['multipleBlocks']&&(_0xbcb88a='*Merge:*\x20%0',_0x2345ac={'type':'deletion','content':o(_0x1395e3,_0xbcb88a,o(_0x1395e3,'ELEMENT_LIST_ITEM'))});}return _0x2345ac;});}}function Te(_0x538e48){let _0x2b99c0=_0x538e48['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2b99c0;){const _0x3774ee=_0x2b99c0['getAttribute']('listItemId');if(!_0x3774ee)return!0x1;if(_0x3774ee==_0x538e48['data']['newValue'])return'newValue';if(_0x3774ee==_0x538e48['data']['oldValue'])return'oldValue';_0x2b99c0=_0x2b99c0['previousSibling'];}return!0x1;}class H extends _0x496248{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x233432=this['editor']['config']['get']('list.properties'),_0x482678=this['editor']['plugins']['get']('TrackChangesEditing');_0x233432['styles']&&_0x482678['enableDefaultAttributesIntegration']('listStyle'),_0x233432['reversed']&&_0x482678['enableDefaultAttributesIntegration']('listReversed'),_0x233432['startIndex']&&_0x482678['enableDefaultAttributesIntegration']('listStart');const _0x23d0ec={'type':'format','content':''};_0x482678['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4eab22=this['editor']['locale'];_0x482678['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4eab22,'FORMAT_LIST_REVERSED')),_0x482678['descriptionFactory']['registerDescriptionCallback'](_0x4847af=>{const {data:_0x103150}=_0x4847af;if(_0x103150&&'listReversed'==_0x103150['key'])return null==_0x103150['newValue']||0x0==_0x103150['newValue']&&null==_0x103150['oldValue']?_0x23d0ec:void 0x0;}),_0x482678['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4eab22,'FORMAT_LIST_START')),_0x482678['descriptionFactory']['registerDescriptionCallback'](_0x1d9279=>{const {data:_0x39ddcb}=_0x1d9279;if(_0x39ddcb&&'listStart'==_0x39ddcb['key'])return null==_0x39ddcb['newValue']||0x1==_0x39ddcb['newValue']&&null==_0x39ddcb['oldValue']?_0x23d0ec:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3c3441=>{if(_0x3c3441['batch']['isUndo'])return!0x1;let _0x145c00=!0x1;const _0x3c29ea=_0x482678['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x153727=>{const _0x22e5f8=_0x482678['_getAttributeKey'](_0x153727);return'listStart'==_0x22e5f8||'listReversed'==_0x22e5f8;});for(const _0x1b2bef of _0x3c29ea){const _0x51c86b=_0x1b2bef['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x51c86b||'customNumbered'==_0x51c86b)continue;_0x482678['_findSuggestions'](_0x1b2bef['getFirstRange'](),'attribute')['find'](_0x54167e=>'listType'==_0x482678['_getAttributeKey'](_0x54167e['suggestion']))||(_0x3c3441['removeMarker'](_0x1b2bef['getFirstMarker']()),_0x145c00=!0x0);}return _0x145c00;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x41f00d){const _0x4dd586=this['editor']['locale'],{data:_0x2f73ed}=_0x41f00d,_0x554093={'type':'format','content':''};if(!_0x2f73ed||'listStyle'!=_0x2f73ed['key'])return;if(!_0x2f73ed['oldValue'])return'default'==_0x2f73ed['newValue']?_0x554093:{'type':'format','content':''+o(_0x4dd586,'*Set\x20format:*\x20%0',o(_0x4dd586,this['_getTranslationKeyForListStyle'](_0x2f73ed['newValue'])))};if(!_0x2f73ed['newValue']){if('default'==_0x2f73ed['oldValue'])return _0x554093;let _0x38a8e7=_0x41f00d['head'];for(;_0x38a8e7;){if(_0x38a8e7['data']&&'listType'==_0x38a8e7['data']['key']&&_0x38a8e7['data']['newValue'])return _0x554093;_0x38a8e7=_0x38a8e7['next'];}return{'type':'format','content':''+o(_0x4dd586,'*Remove\x20format:*\x20%0',o(_0x4dd586,this['_getTranslationKeyForListStyle'](_0x2f73ed['oldValue'])))};}if('default'!=_0x2f73ed['newValue'])return{'type':'format','content':''+o(_0x4dd586,'*Set\x20format:*\x20%0',o(_0x4dd586,this['_getTranslationKeyForListStyle'](_0x2f73ed['newValue'])))};let _0x2e3dd5=_0x41f00d['head'];for(;_0x2e3dd5;){if(_0x2e3dd5['data']&&'listType'==_0x2e3dd5['data']['key']&&_0x2e3dd5['data']['newValue']&&_0x2e3dd5['data']['oldValue'])return _0x554093;_0x2e3dd5=_0x2e3dd5['next'];}return{'type':'format','content':o(_0x4dd586,'*Set\x20format:*\x20%0',o(_0x4dd586,'ELEMENT_'+_0x41f00d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xce5cf1=this['editor'],_0x2e8cec=_0xce5cf1['locale'];_0xce5cf1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x281aad=>{if('formatBlock'!=_0x281aad['type'])return;const {data:_0x49d91c}=_0x281aad;if(!_0x49d91c)return;let _0x714a7c,_0x70188;switch(_0x49d91c['commandName']){case'listStyle':_0x714a7c='*Change\x20to:*\x20%0',_0x70188={'type':'format','content':o(_0x2e8cec,_0x714a7c,o(_0x2e8cec,this['_getTranslationKeyForListStyle'](_0x49d91c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x714a7c=_0x49d91c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x70188={'type':'format','content':o(_0x2e8cec,_0x714a7c)};break;case'listStart':_0x714a7c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x70188={'type':'format','content':o(_0x2e8cec,_0x714a7c,_0x49d91c['commandParams'][0x0]['startIndex'])};}return _0x70188;});}['_getTranslationKeyForListStyle'](_0x7c65af){return'ELEMENT_'+function(_0xab8225){if(ye['includes'](_0xab8225))return'bulleted';if(Se['includes'](_0xab8225))return'numbered';return null;}(_0x7c65af)['toUpperCase']()+'_LIST_'+_0x7c65af['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x496248{['afterInit'](){const _0x5e87fc=this['editor'];_0x5e87fc['commands']['get']('emoji')&&_0x5e87fc['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x496248{static get['requires'](){return[_0x24616e];}['init'](){const _0x1f5d02=this['editor'],_0x3272de=_0x1f5d02['plugins']['get']('TrackChangesEditing'),_0x377c0a=_0x1f5d02['commands']['get']('enter');_0x3272de['enableCommand']('enter',()=>{_0x1f5d02['model']['change'](_0x43cd52=>{const _0x14936c=_0x1f5d02['model']['document']['selection'],_0x18ef81=_0x14936c['getFirstPosition'](),_0x2fbc9d=_0x57b7e9['fromRange'](_0x14936c['getFirstRange']());if(_0x377c0a['enterBlock'](_0x43cd52)){const _0x5466f1=_0x1f5d02['model']['createPositionAt'](_0x18ef81['parent']['nextSibling'],0x0),_0x3b81e6=_0x43cd52['createRange'](_0x18ef81,_0x5466f1);_0x3272de['markInsertion'](_0x3b81e6);}else _0x43cd52['setSelection'](_0x43cd52['createRange'](_0x2fbc9d['end']));_0x2fbc9d['detach'](),_0x377c0a['fire']('afterExecute',{'writer':_0x43cd52});});});}}class Y extends _0x496248{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2dc6b7=this['editor']['plugins']['get']('TrackChangesEditing');_0x2dc6b7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2dc6b7['enableCommand']('findNext'),_0x2dc6b7['enableCommand']('findPrevious'),_0x2dc6b7['enableCommand']('replace'),_0x2dc6b7['enableCommand']('replaceAll');}['handleFindCommand'](_0x4ecb14,_0x1186c3,_0x5ce807={}){const _0xc8e235=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4ecb14(_0x269bb8=>{let _0x38e777=('string'==typeof _0x1186c3?_0xc8e235['findByTextCallback'](_0x1186c3,_0x5ce807):_0x1186c3)(_0x269bb8);Array['isArray'](_0x38e777)&&(_0x38e777={'results':_0x38e777,'searchText':'string'==typeof _0x1186c3?_0x1186c3:''});const _0x1657dc=_0x38e777['results']['filter'](_0x453a89=>!0x1===this['_isInDeletionRange'](_0x453a89,_0x269bb8['item']));return{..._0x38e777,'results':_0x1657dc};},_0x5ce807);}['_isInDeletionRange'](_0x563de7,_0x501522){const _0x4caea9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x501522,_0x563de7['start']),this['editor']['model']['createPositionAt'](_0x501522,_0x563de7['end']));for(const _0x4859e7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4caea9['getIntersection'](_0x4859e7['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 _0x496248{['afterInit'](){const _0x5ee5b9=this['editor']['locale'],_0x32b7f9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5f14d1,commandName:_0x4dcb33}of eo)this['editor']['plugins']['has'](_0x5f14d1)&&_0x32b7f9['enableDefaultAttributesIntegration'](_0x4dcb33);_0x32b7f9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5ee5b9,'FORMAT_FONT_SIZE')),_0x32b7f9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5ee5b9,'FORMAT_FONT_FAMILY')),_0x32b7f9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5ee5b9,'FORMAT_FONT_COLOR')),_0x32b7f9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5ee5b9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30737f=this['editor'],_0x504134=_0x30737f['locale'];_0x30737f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3df1c9=>{const _0x2abbc3=_0x504134['t'];if('formatInline'!=_0x3df1c9['type'])return;const {data:_0x56fe9c}=_0x3df1c9;if(null!=_0x56fe9c){if('fontSize'==_0x56fe9c['commandName']){const _0x58f9f9=_0x56fe9c['commandParams'][0x0]['value'];if(_0x58f9f9){const _0x3e2793=_0x2abbc3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x28db6e=>_0x28db6e['model']==_0x58f9f9)['title'])['toLowerCase']();return{'type':'format','content':o(_0x504134,'*Set\x20font\x20size:*\x20%0',_0x3e2793)};}return{'type':'format','content':o(_0x504134,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x56fe9c['commandName']){const _0xd815a5=_0x56fe9c['commandParams'][0x0]['value'];return _0xd815a5?{'type':'format','content':o(_0x504134,'*Set\x20font\x20family:*\x20%0',_0xd815a5)}:{'type':'format','content':o(_0x504134,'*Reset\x20font\x20family*')};}if('fontColor'==_0x56fe9c['commandName']){const _0x5f5839=_0x56fe9c['commandParams'][0x0]['value'];if(_0x5f5839){const _0x4f6a0b=_0x58c26d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x365cbd=>_0x365cbd['model']==_0x5f5839);let _0xc65c0b=_0x5f5839,_0x5396d1='';return _0x4f6a0b&&(_0xc65c0b=_0x4f6a0b['label'],_0x5396d1=_0x2abbc3(_0xc65c0b)['toLowerCase']()),{'type':'format','content':o(_0x504134,'*Set\x20font\x20color:*\x20%0',_0x5396d1)['trim'](),'color':{'value':_0x5f5839,'title':_0x5396d1||_0xc65c0b}};}return{'type':'format','content':o(_0x504134,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x56fe9c['commandName']){const _0x46bf5c=_0x56fe9c['commandParams'][0x0]['value'];if(_0x46bf5c){const _0xe38692=_0x58c26d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3ac315=>_0x3ac315['model']==_0x46bf5c);let _0x3c6943=_0x46bf5c,_0x127fa4='';return _0xe38692&&(_0x3c6943=_0xe38692['label'],_0x127fa4=_0x2abbc3(_0x3c6943)['toLowerCase']()),{'type':'format','content':o(_0x504134,'*Set\x20font\x20background\x20color:*\x20%0',_0x127fa4)['trim'](),'color':{'value':_0x46bf5c,'title':_0x127fa4||_0x3c6943}};}return{'type':'format','content':o(_0x504134,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x496248{['afterInit'](){const {plugins:_0x5b5f73}=this['editor'];_0x5b5f73['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x5b5f73['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x54b139,plugins:_0x3623cd,commands:_0x19f484}=this['editor'],_0x339cf2=_0x3623cd['get']('TrackChangesEditing');_0x19f484['get']('footnotesStyle')&&_0x339cf2['enableDefaultAttributesIntegration']('footnotesStyle'),_0x19f484['get']('footnotesStart')&&_0x339cf2['enableDefaultAttributesIntegration']('footnotesStart'),_0x339cf2['registerBlockAttribute']('footnotesListStyle'),_0x339cf2['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x54b139,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x339cf2['registerBlockAttribute']('footnotesListStart'),_0x339cf2['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x54b139,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xac91a8=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x109257,commands:_0x571d21}=this['editor'];_0x571d21['get']('insertFootnote')&&_0xac91a8['enableCommand']('insertFootnote'),_0xac91a8['descriptionFactory']['registerElementLabel']('footnoteRef',_0x463a40=>o(_0x109257,'ELEMENT_FOOTNOTE_REF',_0x463a40)),_0xac91a8['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x57f545=>o(_0x109257,'ELEMENT_FOOTNOTE_DEFINITION',_0x57f545)),_0xac91a8['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x13f0c5=>o(_0x109257,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x13f0c5));}}class nt extends _0x496248{['afterInit'](){const _0x4e53d8=this['editor'],_0x4cfec0=_0x4e53d8['plugins']['get']('TrackChangesEditing'),_0x13a9fa=_0x4e53d8['commands']['get']('copyFormat'),_0x9a1de3=_0x4e53d8['commands']['get']('pasteFormat');_0x13a9fa&&_0x9a1de3&&(_0x4cfec0['enableDefaultAttributesIntegration']('pasteFormat'),_0x4cfec0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x529c36=this['editor'],_0x38c715=_0x529c36['locale'];_0x529c36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e37e8=>{if('formatBlock'!=_0x1e37e8['type']&&'formatInline'!=_0x1e37e8['type'])return;const {data:_0x29d6fb}=_0x1e37e8;if(_0x29d6fb&&'pasteFormat'===_0x29d6fb['commandName']){const _0x5e799b=[],_0xbff27d=_0x29d6fb['commandParams'][0x0];for(const [_0x573f0c,_0x3daf2c]of Object['entries'](_0xbff27d))_0x5e799b['push'](ro(_0x529c36,_0x573f0c,_0x3daf2c));return _0x5e799b['length']?{'type':'format','content':o(_0x38c715,'*Set\x20format\x20to:*\x20%0',_0x5e799b['join'](',\x20'))}:{'type':'format','content':o(_0x38c715,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x51fa93,_0x504ab0,_0x15fa97){const _0x372a08=_0x51fa93['locale']['t'],_0x5a2187=_0x504ab0['split'](/(?=[A-Z])/)['join']('\x20'),_0x3ee881=_0x372a08(_0x5a2187['charAt'](0x0)['toUpperCase']()+_0x5a2187['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x15fa97)return _0x3ee881;if('fontColor'===_0x504ab0||'fontBackgroundColor'===_0x504ab0){const _0x5b8d0d=_0x58c26d(_0x51fa93['config']['get']('fontColor.colors'))['find'](_0x1ca9e9=>_0x1ca9e9['model']==_0x15fa97);return _0x3ee881+'\x20('+(_0x5b8d0d?_0x372a08(_0x5b8d0d['label'])['toLowerCase']():_0x15fa97)+')';}if('fontSize'===_0x504ab0&&isNaN(parseFloat(_0x15fa97))){const _0x2165bf=_0x51fa93['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x51fa93['config']['get']('fontSize.options'))['find'](_0x4a4c41=>_0x4a4c41['model']==_0x15fa97);return _0x3ee881+'\x20('+(_0x2165bf?_0x372a08(_0x2165bf['title'])['toLowerCase']():_0x15fa97)+')';}return _0x3ee881+'\x20('+_0x15fa97+')';}class it extends _0x496248{['_headingOptions'];['afterInit'](){const _0x5f26cb=this['editor'];if(!_0x5f26cb['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5f26cb['config']['get']('heading.options');const _0x135f22=_0x5f26cb['locale'],_0x373b2f=_0x5f26cb['plugins']['get']('TrackChangesEditing');_0x373b2f['enableDefaultAttributesIntegration']('heading');for(const _0x575c44 of this['_headingOptions'])'paragraph'!=_0x575c44['model']&&_0x373b2f['descriptionFactory']['registerElementLabel'](_0x575c44['model'],_0x4867c6=>{const _0x395dde=this['_getHeadingLevel'](_0x575c44['model']);return null!==_0x395dde?_0x3fb20e(_0x4867c6,_0x395dde):_0x9b4770(_0x4867c6,_0x575c44['title']);});function _0x3fb20e(_0x2c6bd0,_0x53fd14){return o(_0x135f22,'ELEMENT_HEADING',[_0x2c6bd0,_0x53fd14]);}function _0x9b4770(_0x43bc8f,_0x992f1){return o(_0x135f22,'ELEMENT_HEADING_CUSTOM',[_0x43bc8f,_0x992f1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39c5dc=this['editor'],_0xe977f7=_0x39c5dc['locale'];function _0x43b9f9(_0x117019,_0x528372){return o(_0xe977f7,'ELEMENT_HEADING_CUSTOM',[_0x117019,_0x528372]);}_0x39c5dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41ec82=>{if('formatBlock'!=_0x41ec82['type'])return;const {data:_0x336d98}=_0x41ec82;if(_0x336d98&&'heading'==_0x336d98['commandName']){const _0xe69126=_0x336d98['commandParams'][0x0]['value'],_0x507737=this['_getHeadingLevel'](_0xe69126);if(null!==_0x507737)return{'type':'format','content':o(_0xe977f7,'*Change\x20to:*\x20%0',(_0x2f9065=0x1,_0x2ecea0=_0x507737,o(_0xe977f7,'ELEMENT_HEADING',[_0x2f9065,_0x2ecea0])))};const _0x36ab91=this['_headingOptions']['find'](_0x34df82=>_0x34df82['model']===_0xe69126)['title'];return{'type':'format','content':o(_0xe977f7,'*Change\x20to:*\x20%0',_0x43b9f9(0x1,_0x36ab91))};}var _0x2f9065,_0x2ecea0;});}['_getHeadingLevel'](_0x31d7a9){const _0x59f1fc=_0x31d7a9['match'](/^heading(\d+)/);if(_0x59f1fc)return _0x59f1fc[0x1];const _0x1b2f65=this['_headingOptions']?.['find'](_0xc7e5ed=>_0xc7e5ed['model']==_0x31d7a9);if(_0x1b2f65&&_0x1b2f65['view']){const _0x479c7d=_0x1b2f65['view'],_0xdd1bab=(_0x479c7d['name']??_0x479c7d)['match'](/^h(\d+)/);if(_0xdd1bab)return _0xdd1bab[0x1];}return null;}}class et extends _0x496248{['afterInit'](){const _0xa9bbdb=this['editor'];if(!_0xa9bbdb['plugins']['has']('HighlightEditing'))return;const _0x1df54e=_0xa9bbdb['plugins']['get']('TrackChangesEditing'),_0x37feab=_0xa9bbdb['locale'];_0x1df54e['enableDefaultAttributesIntegration']('highlight'),_0x1df54e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x37feab,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ae585=this['editor'],_0x3aefc2=_0x5ae585['locale'];_0x5ae585['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x153f2f=>{if('formatInline'!=_0x153f2f['type'])return;const {data:_0x19c3d6}=_0x153f2f;if(_0x19c3d6&&'highlight'==_0x19c3d6['commandName']){const _0x4c51ac=_0x3aefc2['t'],_0x3dba0a=_0x19c3d6['commandParams'][0x0]['value'];if(_0x3dba0a){const _0x14ce00=_0x5ae585['config']['get']('highlight.options')['find'](_0x5783da=>_0x5783da['model']==_0x3dba0a),_0x8ce497=_0x4c51ac(_0x14ce00['title'])['toLowerCase']();return{'type':'format','content':o(_0x3aefc2,'*Set\x20highlight:*\x20%0',_0x8ce497),'color':{'value':_0x14ce00['color'],'title':_0x14ce00['title']}};}return{'type':'format','content':o(_0x3aefc2,'*Remove\x20highlight*',o(_0x3aefc2,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x496248{['afterInit'](){const _0x268341=this['editor'];if(!_0x268341['plugins']['has']('HorizontalLineEditing'))return;_0x268341['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5f1f90=_0x268341['plugins']['get']('TrackChangesEditing'),_0x2c2d10=_0x268341['locale'];_0x5f1f90['descriptionFactory']['registerElementLabel']('horizontalLine',_0x7a0a11=>o(_0x2c2d10,'ELEMENT_HORIZONTAL_LINE',_0x7a0a11));}}class ot extends _0x496248{['afterInit'](){const _0x42a76d=this['editor'];if(!_0x42a76d['plugins']['has']('HtmlEmbed'))return;const _0x135193=_0x42a76d['plugins']['get']('TrackChangesEditing'),_0x6ba488=_0x42a76d['locale'];_0x135193['descriptionFactory']['registerElementLabel']('rawHtml',_0x1acf2b=>o(_0x6ba488,'ELEMENT_HTML_EMBED',_0x1acf2b)),_0x135193['enableDefaultAttributesIntegration']('htmlEmbed'),_0x135193['descriptionFactory']['registerDescriptionCallback'](_0x1f5eb3=>{if('attribute'!=_0x1f5eb3['type'])return;const {data:_0x574eb2}=_0x1f5eb3;if(_0x574eb2&&'value'==_0x574eb2['key']&&_0x1f5eb3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2cee19=o(_0x6ba488,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x6ba488,'*Change\x20%0\x20content*',_0x2cee19)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31deea=this['editor'],_0x4a1026=_0x31deea['locale'];_0x31deea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cf09f=>{if('formatBlock'!=_0x4cf09f['type'])return;const {data:_0x49cdc5}=_0x4cf09f;if(_0x49cdc5&&'htmlEmbed'==_0x49cdc5['commandName']){const _0xd49d31=o(_0x4a1026,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4a1026,'*Change\x20%0\x20content*',_0xd49d31)};}});}}class rt extends _0x496248{['afterInit'](){const _0x61884=this['editor'];if(!_0x61884['plugins']['has']('ImageEditing'))return;const _0x82d0d2=_0x61884['plugins']['get']('TrackChangesEditing'),_0x290f13=_0x61884['plugins']['get']('ImageUtils'),_0x403d29=_0x61884['locale'];_0x82d0d2['enableCommand']('insertImage'),_0x82d0d2['descriptionFactory']['registerElementLabel']('imageBlock',_0x2f235a=>o(_0x403d29,'ELEMENT_IMAGE',_0x2f235a)),_0x82d0d2['descriptionFactory']['registerElementLabel']('imageInline',_0x1455f1=>o(_0x403d29,'ELEMENT_INLINE_IMAGE',_0x1455f1)),_0x82d0d2['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x403d29,'ELEMENT_CAPTION')),_0x61884['plugins']['has']('ImageUploadEditing')&&_0x82d0d2['enableCommand']('uploadImage'),_0x61884['plugins']['has']('ImageBlockEditing')&&_0x61884['plugins']['has']('ImageInlineEditing')&&(_0x82d0d2['enableCommand']('imageTypeInline',(_0x2ac620,_0x2eafc9)=>{const _0x21dcae=_0x290f13['getClosestSelectedImageElement'](_0x61884['model']['document']['selection']);_0x61884['model']['change'](()=>{_0x82d0d2['markBlockFormat'](_0x21dcae,{'commandName':'imageTypeInline','commandParams':[_0x2eafc9]},[],'convertBlockImageToInline');});}),_0x82d0d2['enableCommand']('imageTypeBlock',(_0x4d3f7a,_0xbf596a)=>{_0x61884['model']['change'](_0x56e23e=>{let _0x25dc23=_0x290f13['getClosestSelectedImageElement'](_0x61884['model']['document']['selection']),_0x33bcce=_0x56e23e['createRangeOn'](_0x25dc23);const _0x50f7eb=_0x35bc03['fromPosition'](_0x33bcce['start'],'toPrevious'),_0x5b3ecc=_0x35bc03['fromPosition'](_0x33bcce['end'],'toNext');_0x82d0d2['forceDefaultExecution'](()=>_0x4d3f7a(_0xbf596a)),_0x25dc23=_0x290f13['getClosestSelectedImageElement'](_0x61884['model']['document']['selection']),_0x33bcce=_0x56e23e['createRangeOn'](_0x25dc23);const _0xea606c=_0x56e23e['createRange'](_0x50f7eb,_0x5b3ecc);_0x50f7eb['detach'](),_0x5b3ecc['detach'](),_0x82d0d2['markBlockFormat'](_0x25dc23,{'commandName':'imageTypeInline','commandParams':[_0xbf596a]},[],'convertInlineImageToBlock'),_0xea606c['start']['isBefore'](_0x33bcce['start'])&&_0x82d0d2['markInsertion'](_0x56e23e['createRange'](_0xea606c['start'],_0x33bcce['start']),'convertInlineImageToBlock'),_0x33bcce['end']['isBefore'](_0xea606c['end'])&&_0x82d0d2['markInsertion'](_0x56e23e['createRange'](_0x33bcce['end'],_0xea606c['end']),'convertInlineImageToBlock');});}),_0x82d0d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x82d0d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x82d0d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x82d0d2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x82d0d2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x82d0d2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1f4887])=>{const _0x4d8f9c=_0x82d0d2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3c24fe=_0x1f4887['start'],_0x58a46e=_0x1f4887['end'];const _0x5b8067=_0x61884['model']['schema']['getNearestSelectionRange'](_0x3c24fe,'backward'),_0x46d4cb=_0x61884['model']['schema']['getNearestSelectionRange'](_0x58a46e,'forward');_0x5b8067['isCollapsed']&&(_0x3c24fe=_0x5b8067['start']),_0x46d4cb['isCollapsed']&&(_0x58a46e=_0x46d4cb['end']),_0x4d8f9c([_0x61884['model']['createRange'](_0x3c24fe,_0x58a46e)]);}),_0x82d0d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5edaf6),_0x82d0d2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5edaf6)),_0x61884['plugins']['has']('ImageCaptionEditing')&&(_0x82d0d2['enableCommand']('toggleImageCaption',(_0x54c4ab,_0x569113)=>{const _0x28343d=_0x61884['plugins']['get']('ImageCaptionUtils');let _0x2274a6=_0x290f13['getClosestSelectedImageElement'](_0x61884['model']['document']['selection']),_0xc082e0=_0x28343d['getCaptionFromImageModelElement'](_0x2274a6);_0x61884['model']['change'](()=>{if(_0xc082e0)return void _0x82d0d2['markDeletion'](_0x61884['model']['createRangeOn'](_0xc082e0));const _0x21ad0c=_0x290f13['isBlockImage'](_0x2274a6);_0x54c4ab(_0x569113),_0x2274a6=_0x290f13['getClosestSelectedImageElement'](_0x61884['model']['document']['selection']),_0xc082e0=_0x28343d['getCaptionFromImageModelElement'](_0x2274a6),_0x82d0d2['markInsertion'](_0x61884['model']['createRangeOn'](_0xc082e0),_0x21ad0c?null:'imageCaption');});}),_0x82d0d2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5edaf6));const _0x5ae936=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3d5725(_0x541096,_0x2072b0){const _0x3f45bc=_0x5ae936['findIndex'](({type:_0x55a657,subType:_0x17a8c7})=>_0x541096['type']==_0x55a657&&_0x541096['subType']==_0x17a8c7),_0x2af2e0=_0x5ae936['findIndex'](({type:_0xa6af89,subType:_0x4a8b3c})=>_0x2072b0['type']==_0xa6af89&&_0x2072b0['subType']==_0x4a8b3c);if(_0x3f45bc<0x0||_0x2af2e0<0x0)return!0x1;const _0x472b2e=_0x541096['getFirstRange'](),_0x82619=_0x2072b0['getFirstRange']();if((0x0==_0x3f45bc||0x1==_0x3f45bc)&&0x2==_0x2af2e0&&_0x472b2e['isIntersecting'](_0x82619))return!0x0;if(0x2==_0x3f45bc&&0x3==_0x2af2e0){const _0x24d6ef=_0x82d0d2['_findSuggestions'](_0x472b2e,'insertion')['filter'](({suggestion:_0xc2001c,meta:_0x2aff72})=>_0x2aff72['isOwn']&&'convertInlineImageToBlock'==_0xc2001c['subType']);if(_0x24d6ef['length']>0x1&&_0x82619['end']['isEqual'](_0x472b2e['start']))return!0x0;if(0x1==_0x24d6ef['length']&&(_0x472b2e['start']['isEqual'](_0x82619['end'])||_0x472b2e['end']['isEqual'](_0x82619['start'])))return!0x0;}if(0x3==_0x3f45bc&&0x3==_0x2af2e0&&_0x472b2e['start']['isBefore'](_0x82619['start'])){const _0x3e93a6=_0x472b2e['end']['nodeAfter'],_0x5118b4=_0x82619['start']['nodeBefore'];return _0x290f13['isBlockImage'](_0x3e93a6)&&_0x3e93a6===_0x5118b4;}return!0x1;}function _0x5edaf6(_0x3af210,_0x4bab9f){return _0x3d5725(_0x3af210,_0x4bab9f)?[_0x3af210,_0x4bab9f]:_0x3d5725(_0x4bab9f,_0x3af210)?[_0x4bab9f,_0x3af210]:null;}_0x61884['plugins']['has']('ImageResize')&&(_0x82d0d2['enableDefaultAttributesIntegration']('resizeImage'),_0x82d0d2['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x403d29,'FORMAT_IMAGE_SIZE'))),_0x61884['plugins']['has']('ImageTextAlternativeEditing')&&_0x82d0d2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x61884['plugins']['has']('PictureEditing')&&_0x82d0d2['descriptionFactory']['registerDescriptionCallback'](_0x244ce8=>{if('attribute'!=_0x244ce8['type'])return;const {data:_0x2b0e48}=_0x244ce8;return _0x2b0e48&&'sources'==_0x2b0e48['key']?{'type':'format','content':''}:void 0x0;}),_0x61884['plugins']['has']('ImageSizeAttributes')&&_0x82d0d2['descriptionFactory']['registerDescriptionCallback'](_0x5f4ffb=>{if('attribute'!=_0x5f4ffb['type'])return;const {data:_0x7a9c6f}=_0x5f4ffb;return!_0x7a9c6f||'width'!=_0x7a9c6f['key']&&'height'!=_0x7a9c6f['key']?void 0x0:{'type':'format','content':''};}),_0x82d0d2['descriptionFactory']['registerDescriptionCallback'](_0x2b10ad=>{if(!!_0x5ae936['find'](({type:_0x1d92c6,subType:_0x5a31f4})=>_0x2b10ad['type']==_0x1d92c6&&_0x2b10ad['subType']==_0x5a31f4))return _0x2b10ad['previous']?{}:void 0x0;}),_0x82d0d2['descriptionFactory']['registerDescriptionCallback'](_0x4d730f=>{if('insertion'==_0x4d730f['type']||'deletion'==_0x4d730f['type']){const _0xba2bd3=_0x4d730f['getContainedElement']();if(_0xba2bd3&&_0xba2bd3['is']('element','caption'))return{'type':'insertion'==_0x4d730f['type']?'addObject':'removeObject','element':_0xba2bd3,'quantity':0x1};}}),_0x82d0d2['descriptionFactory']['registerDescriptionCallback'](_0xd7f8bb=>'formatBlock'==_0xd7f8bb['type']&&'convertInlineImageToBlock'==_0xd7f8bb['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xd7f8bb['type']&&'convertBlockImageToInline'==_0xd7f8bb['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x82d0d2['descriptionFactory']['registerDescriptionCallback'](_0x73747c=>{if('attribute'!=_0x73747c['type'])return;const {data:_0x2ad682}=_0x73747c;if(!_0x2ad682||'alt'!=_0x2ad682['key'])return;const _0x2751a0=_0x2ad682['newValue'];return _0x2751a0?{'type':'format','content':o(_0x403d29,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2751a0+'\x22')}:{'type':'format','content':o(_0x403d29,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30b4a2=this['editor'],_0x45d6f4=_0x30b4a2['locale'];_0x30b4a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f64e7=>{if('formatBlock'!=_0x4f64e7['type']&&'formatInline'!=_0x4f64e7['type'])return;const {data:_0x37a9ec}=_0x4f64e7;if(_0x37a9ec){if('imageTextAlternative'==_0x37a9ec['commandName']){const _0x1ff2f1=_0x37a9ec['commandParams'][0x0]['newValue'];return _0x1ff2f1?{'type':'format','content':o(_0x45d6f4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1ff2f1+'\x22')}:{'type':'format','content':o(_0x45d6f4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x37a9ec['commandName']){const _0x2a6f9b=_0x37a9ec['commandParams'][0x0]['width'];return _0x2a6f9b?{'type':'format','content':o(_0x45d6f4,'*Set\x20image\x20width:*\x20%0',_0x2a6f9b)}:{'type':'format','content':o(_0x45d6f4,'*Reset\x20image\x20width*')};}}});}}class at extends _0x496248{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x13d6e9=this['editor']['locale'],_0x296d15=this['editor']['plugins']['get']('TrackChangesEditing');_0x296d15['enableDefaultAttributesIntegration']('replaceImageSource'),_0x296d15['descriptionFactory']['registerDescriptionCallback'](_0x5a6ce7=>{if('attribute'!=_0x5a6ce7['type'])return;const {data:_0x5b9219}=_0x5a6ce7;return _0x5b9219&&'src'==_0x5b9219['key']?_0x5b9219['newValue']&&_0x5b9219['oldValue']?{'type':'format','content':o(_0x13d6e9,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x138669=this['editor']['plugins']['get']('TrackChangesEditing');_0x138669['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x138669['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x138669['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x138669['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e1f74=this['editor'],_0x3ad4a4=_0x1e1f74['locale'];_0x1e1f74['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb6ddf7=>{if('formatBlock'!=_0xb6ddf7['type']&&'formatInline'!=_0xb6ddf7['type'])return;const {data:_0xf75058}=_0xb6ddf7;if(!_0xf75058||'replaceImageSource'!=_0xf75058['commandName'])return;return{'type':'format','content':o(_0x3ad4a4,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x496248{['afterInit'](){const _0x55a467=this['editor'];if(!_0x55a467['plugins']['has']('ImageStyleEditing'))return;const _0x517793=_0x55a467['plugins']['get']('TrackChangesEditing'),_0x359d7b=_0x55a467['plugins']['get']('ImageUtils'),_0x10567f={};_0x517793['enableCommand']('imageStyle',(_0x2616a7,_0x5e0262)=>{const _0x3da956=_0x55a467['plugins']['get']('Users')['me'],_0x185115=_0x55a467['commands']['get']('imageStyle');let _0x58e183=_0x359d7b['getClosestSelectedImageElement'](_0x55a467['model']['document']['selection']),_0x27089b=_0x55a467['model']['createRangeOn'](_0x58e183),_0x5647fe=_0x185115['value'];if(_0x5647fe==_0x5e0262['value'])return;const _0x392010={'commandName':'imageStyle','commandParams':[_0x5e0262],'formatGroupId':_0x59376e()};_0x55a467['model']['change'](()=>{if(_0x517793['getSuggestions']()['filter'](_0x407994=>_0x407994['isInContent']&&_0x3da956==_0x407994['author']&&('formatBlock'==_0x407994['type']||'formatInline'==_0x407994['type'])&&('imageStylePreApply'==_0x407994['subType']||'imageStylePostApply'==_0x407994['subType'])&&_0x407994['getFirstRange']()['isEqual'](_0x27089b))['forEach'](_0x420d06=>_0x517793['discardSuggestion'](_0x420d06['head'])),_0x58e183=_0x359d7b['getClosestSelectedImageElement'](_0x55a467['model']['document']['selection']),_0x27089b=_0x55a467['model']['createRangeOn'](_0x58e183),_0x185115['refresh'](),_0x55a467['commands']['get']('imageTypeInline')['refresh'](),_0x55a467['commands']['get']('imageTypeBlock')['refresh'](),_0x5647fe=_0x185115['value'],_0x5647fe!=_0x5e0262['value'])return _0x359d7b['isInlineImage'](_0x58e183)&&_0x185115['shouldConvertImageType'](_0x5e0262['value'],_0x58e183)?(_0x2616a7({..._0x5e0262,'setImageSizes':!0x1}),_0x58e183=_0x359d7b['getClosestSelectedImageElement'](_0x55a467['model']['document']['selection']),void _0x517793['markBlockFormat'](_0x58e183,{..._0x392010,'commandReversedParams':[{'value':_0x5647fe||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x359d7b['isBlockImage'](_0x58e183)?_0x517793['markBlockFormat'](_0x58e183,_0x392010,[],'imageStylePostApply'):_0x517793['markInlineFormat'](_0x27089b,_0x392010,'imageStylePostApply'));});});for(const _0x485f4f of _0x55a467['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x10567f[_0x485f4f['name']]=_0x485f4f['title']['toLowerCase']();_0x517793['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x517793['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x517793['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x517793['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x212526])=>{_0x359d7b['setImageNaturalSizeAttributes'](_0x212526['getContainedElement']());}),_0x517793['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x178153,_0x353fe9)=>{_0x517793['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x178153,{'commandName':_0x353fe9['commandName'],'commandParams':_0x353fe9['commandReversedParams']});}),_0x517793['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2dc030,_0x47bb25){if(_0x3cb660(_0x2dc030,_0x47bb25))return[_0x2dc030,_0x47bb25];if(_0x3cb660(_0x47bb25,_0x2dc030))return[_0x47bb25,_0x2dc030];return null;});const _0x413c0f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3cb660(_0x52f917,_0x439bf3){const _0x587d22=_0x413c0f['findIndex'](({type:_0x551da3,subType:_0x5318be})=>_0x52f917['type']==_0x551da3&&_0x52f917['subType']==_0x5318be),_0x837c54=_0x413c0f['findIndex'](({type:_0x55b4d7,subType:_0x403cf0})=>_0x439bf3['type']==_0x55b4d7&&_0x439bf3['subType']==_0x403cf0);if(_0x587d22<0x0||_0x837c54<0x0)return!0x1;const _0x243824=_0x52f917['getFirstRange'](),_0xe1c3b4=_0x439bf3['getFirstRange']();if((0x0==_0x587d22||0x1==_0x587d22)&&0x2==_0x837c54&&_0x243824['isIntersecting'](_0xe1c3b4))return!0x0;if(0x2==_0x587d22&&0x3==_0x837c54){const _0x4f54e5=_0x517793['_findSuggestions'](_0x243824,'insertion')['filter'](({suggestion:_0x43e8e6,meta:_0x477b9e})=>_0x477b9e['isOwn']&&'convertInlineImageToBlock'==_0x43e8e6['subType']);if(_0x4f54e5['length']>0x1&&_0xe1c3b4['end']['isEqual'](_0x243824['start']))return!0x0;if(0x1==_0x4f54e5['length']&&(_0x243824['start']['isEqual'](_0xe1c3b4['end'])||_0x243824['end']['isEqual'](_0xe1c3b4['start'])))return!0x0;}if(0x3==_0x587d22&&0x3==_0x837c54&&_0x243824['start']['isBefore'](_0xe1c3b4['start'])){const _0x667608=_0x243824['end']['nodeAfter'],_0x4b9f8c=_0xe1c3b4['start']['nodeBefore'];return _0x359d7b['isBlockImage'](_0x667608)&&_0x667608===_0x4b9f8c;}return!0x1;}_0x55a467['model']['document']['registerPostFixer'](()=>{let _0x275fa2=!0x1;const _0x5660cf=Array['from'](_0x55a467['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xadd336,data:_0x4f534d}of _0x5660cf){const {group:_0x116c1e,type:_0x2384a9,subType:_0x55a0c5,id:_0x423f12}=_0x517793['_splitMarkerName'](_0xadd336);if('suggestion'==_0x116c1e&&_0x517793['hasSuggestion'](_0x423f12)){if('formatBlock'==_0x2384a9&&('imageStylePreApply'==_0x55a0c5||'imageStylePostApply'==_0x55a0c5)){const _0x93adca=_0x517793['getSuggestion'](_0x423f12);if(_0x4f534d['newRange']){const _0x29f020=_0x93adca['getFirstRange']()['getContainedElement']();if(_0x359d7b['isBlockImage'](_0x29f020))continue;_0x517793['discardSuggestion'](_0x93adca),_0x275fa2=!0x0;}}if('insertion'==_0x2384a9&&'imageCaption'==_0x55a0c5&&!_0x4f534d['newRange']){const _0x4f2548=_0x517793['getSuggestion'](_0x423f12);_0x4f2548['next']&&_0x4f2548['next']['isInContent']&&(_0x517793['discardSuggestion'](_0x4f2548['next']),_0x275fa2=!0x0);}}}return _0x275fa2;}),this['_registerLegacyDescription'](_0x10567f);}['_registerLegacyDescription'](_0x485b52){const _0x2b0150=this['editor'],_0x3f6340=_0x2b0150['locale'];_0x2b0150['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21aac9=>{if('formatBlock'!=_0x21aac9['type']&&'formatInline'!=_0x21aac9['type'])return;const {data:_0xffd124}=_0x21aac9;if(!_0xffd124||'imageStyle'!=_0xffd124['commandName'])return;const _0x17cc54=_0xffd124['commandParams'][0x0]['value'];return _0x17cbae('side'===_0x17cc54?o(_0x3f6340,'FORMAT_SIDE_IMAGE'):_0x485b52[_0x17cc54]||_0x17cc54);function _0x17cbae(_0x15bb3f){return{'type':'format','content':o(_0x3f6340,'*Format:*\x20%0',_0x15bb3f)};}});}}class ut extends _0x496248{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x34401f){super(_0x34401f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x21e8dd=this['editor'],_0x596092=_0x21e8dd['commands']['get']('importWord'),_0x20d917=_0x21e8dd['commands']['get']('trackChanges');_0x596092&&(_0x596092['on']('execute',(_0x4a0c7c,[,_0x1ee65e])=>{this['_trackChangesValueDuringImport']=_0x20d917['value'],_0x1ee65e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x596092,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x596092,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x20d917['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x21e8dd['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x227bb5,_0x6ea12f){const {suggestions:_0x26ce98}=_0x6ea12f,_0x396015=this['editor']['commands']['get']('trackChanges'),_0x17cbfb=_0x396015['value'];this['_trackChangesValueDuringImport']!==_0x17cbfb&&(_0x396015['execute'](),this['_trackChangesExecuted']=!0x0),_0x26ce98&&_0x26ce98['forEach'](({id:_0x5074bd,type:_0x582b40,author:_0x2aaa89,created_at:_0x43ad92})=>{const _0x29e5b7={'id':_0x5074bd,'type':_0x582b40,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2aaa89,'createdAt':_0x43ad92?new Date(_0x43ad92):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x29e5b7);});}}class ft extends _0x496248{['afterInit'](){const _0x349e13=this['editor'],_0xb81428=_0x349e13['plugins']['get']('TrackChangesEditing');if(_0x349e13['plugins']['has']('IndentEditing')&&(_0xb81428['enableCommand']('indent'),_0xb81428['enableCommand']('outdent')),_0x349e13['plugins']['has']('IndentBlock')){for(const _0x1aa1f7 of['indentBlock','outdentBlock'])_0xb81428['enableDefaultAttributesIntegration'](_0x1aa1f7);}const _0x1f4c06=_0x349e13['locale'];_0xb81428['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1f4c06,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36c55a=this['editor'],_0x4f5e05=_0x36c55a['locale'],_0x2fcd7d=_0x36c55a['plugins']['get']('TrackChangesEditing');_0x2fcd7d['descriptionFactory']['registerDescriptionCallback'](_0x53248e=>{if('formatBlock'!=_0x53248e['type'])return;const {data:_0x577348}=_0x53248e;if(!_0x577348)return;if('indentBlock'!=_0x577348['commandName']&&'outdentBlock'!=_0x577348['commandName'])return;const _0x3c5acf=_0x53248e['getItems']()[0x0],_0x5dd8b5=_0x2fcd7d['descriptionFactory']['getItemLabel'](_0x3c5acf);return'indentBlock'==_0x577348['commandName']?{'type':'format','content':o(_0x4f5e05,'*Indent:*\x20%0',_0x5dd8b5)}:'outdentBlock'==_0x577348['commandName']?{'type':'format','content':o(_0x4f5e05,'*Outdent:*\x20%0',_0x5dd8b5)}:void 0x0;});}}class ht extends _0x496248{static get['requires'](){return[_0x532ff2];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x496248{['afterInit'](){const _0x13b532=this['editor'];if(!_0x13b532['plugins']['has']('LinkEditing'))return;const _0xc3272c=_0x13b532['plugins']['get']('TrackChangesEditing'),_0x2d8f0c=_0x13b532['commands']['get']('link');_0xc3272c['enableDefaultAttributesIntegration']('link'),_0xc3272c['enableDefaultAttributesIntegration']('unlink');for(const _0x212b8a of _0x2d8f0c['manualDecorators'])_0xc3272c['descriptionFactory']['registerAttributeLabel'](_0x212b8a['id'],'link\x20('+_0x212b8a['label']['toLowerCase']()+')');_0xc3272c['descriptionFactory']['registerDescriptionCallback'](_0x39eb9a=>{if('attribute'!=_0x39eb9a['type'])return;const {data:_0x3b2dce}=_0x39eb9a;if(!_0x3b2dce||'linkHref'!=_0x3b2dce['key'])return;const _0x3f874f=_0x3b2dce['newValue'],_0x5e912d=_0x13b532['locale'];return{'type':'format','content':null==_0x3f874f?o(_0x5e912d,'*Remove\x20link*'):o(_0x5e912d,'*Set\x20link:*\x20%0','\x22'+_0x3f874f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59b188=this['editor'],_0x343115=_0x59b188['locale'];_0x59b188['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e8b18=>{if('formatInline'!=_0x3e8b18['type'])return;const {data:_0x417fff}=_0x3e8b18;if(_0x417fff){if('link'==_0x417fff['commandName']){const _0x4697d5=_0x417fff['commandParams'][0x0];return{'type':'format','content':o(_0x343115,'*Set\x20link:*\x20%0','\x22'+_0x4697d5+'\x22')};}return'unlink'==_0x417fff['commandName']?{'type':'format','content':o(_0x343115,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x496248{['afterInit'](){const _0x2f8f13=this['editor'],_0x59f20c=_0x2f8f13['locale'];if(!_0x2f8f13['plugins']['has']('LegacyListEditing'))return;const _0x395fa5=_0x2f8f13['plugins']['get']('TrackChangesEditing'),_0x2a00f2=_0x2f8f13['plugins']['has']('LegacyTodoListEditing');function _0x4c332a(_0x5c403d){return()=>{const _0x58cef0=_0x2f8f13['model']['document']['selection'],_0x408f2e=_0x2f8f13['commands']['get'](_0x5c403d);if(_0x408f2e['value'])return void _0x2f8f13['execute']('paragraph',{});const _0x3db388=_0x5c403d['slice'](0x0,-0x4),_0x16d53a=function(_0x1117d2,_0x18e283,_0xe6f03a){let _0x36025=Array['from'](_0x1117d2)['filter'](_0x315b0a=>function(_0x3d5680,_0x26b69c){return _0x26b69c['checkChild'](_0x3d5680['parent'],'listItem')&&!_0x26b69c['isObject'](_0x3d5680);}(_0x315b0a,_0xe6f03a));_0x36025=_0x36025['filter'](_0x2791ae=>!_0x2791ae['is']('element','listItem')||_0x2791ae['getAttribute']('listType')!=_0x18e283);const _0x3db3b5=new Set();for(const _0x2650bf of _0x36025)_0x2650bf['is']('element','listItem')?_0x3db3b5['add'](Le(_0x2650bf)):_0x3db3b5['add'](_0x2650bf);return Array['from'](_0x3db3b5);}(_0x58cef0['getSelectedBlocks'](),_0x3db388,_0x2f8f13['model']['schema']);_0x2f8f13['model']['change'](()=>{for(const _0x538a33 of _0x16d53a)_0x395fa5['markBlockFormat'](_0x538a33,{'commandName':_0x5c403d,'commandParams':[{'forceValue':!_0x408f2e['value']}],'formatGroupId':'blockName'},Ee(_0x538a33));});};}function _0x4e8fca(_0x216d8d){return()=>{const _0x5e39c3=function(_0x429b0f){let _0x2602f6=Array['from'](_0x429b0f);const _0x11d481=_0x2602f6['findIndex'](_0x1ef46b=>'listItem'!=_0x1ef46b['name']);return _0x11d481>-0x1&&(_0x2602f6=_0x2602f6['slice'](0x0,_0x11d481)),_0x2602f6;}(_0x2f8f13['model']['document']['selection']['getSelectedBlocks']()),_0x505f97=_0x2f8f13['model']['createRange'](_0x2f8f13['model']['createPositionAt'](_0x5e39c3[0x0],'before'),_0x2f8f13['model']['createPositionAt'](_0x5e39c3[_0x5e39c3['length']-0x1],'end'));_0x2f8f13['model']['change'](()=>{_0x395fa5['markBlockFormat'](_0x505f97,{'commandName':_0x216d8d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x503459){const _0x2b0919=new Set();for(const _0x3d2551 of _0x503459){let _0x5b54a6=_0x3d2551['nextSibling'];for(;_0x5b54a6&&_0x5b54a6['getAttribute']('listIndent')>_0x3d2551['getAttribute']('listIndent');)_0x2b0919['add'](_0x5b54a6),_0x5b54a6=_0x5b54a6['nextSibling'];}return Array['from'](_0x2b0919);}(_0x5e39c3));});};}_0x395fa5['enableCommand']('numberedList',_0x4c332a('numberedList')),_0x395fa5['enableCommand']('bulletedList',_0x4c332a('bulletedList')),_0x2a00f2&&_0x395fa5['enableCommand']('todoList',_0x4c332a('todoList')),_0x395fa5['enableCommand']('indentList',_0x4e8fca('indentList')),_0x395fa5['enableCommand']('outdentList',_0x4e8fca('outdentList')),_0x2a00f2&&_0x395fa5['enableCommand']('checkTodoList',()=>{const _0x5e69fb=_0x2f8f13['commands']['get']('checkTodoList'),_0x2b0666=Array['from'](_0x5e69fb['_selectedElements']);_0x2b0666['filter'](_0x4c7417=>_0x4c7417['getAttribute']('todoListChecked')!=_0x5e69fb['value']),_0x2f8f13['model']['change'](()=>{for(const _0x1ff83b of _0x2b0666)_0x395fa5['markBlockFormat'](_0x1ff83b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5e69fb['value']}]});});}),_0x395fa5['descriptionFactory']['registerElementLabel']('listItem',_0x9fd2d4=>o(_0x59f20c,'ELEMENT_LIST_ITEM',_0x9fd2d4)),_0x395fa5['descriptionFactory']['registerDescriptionCallback'](_0x2cfc46=>{if('formatBlock'!=_0x2cfc46['type']&&'formatInline'!=_0x2cfc46['type'])return;const {data:_0x23712d}=_0x2cfc46;if(_0x23712d){if('numberedList'==_0x23712d['commandName']||'bulletedList'==_0x23712d['commandName']||'todoList'==_0x23712d['commandName'])switch(_0x23712d['commandName']['replace']('List','')){case'bulleted':return _0x12e89b(o(_0x59f20c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x12e89b(o(_0x59f20c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x12e89b(o(_0x59f20c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x23712d['commandName'])return{'type':'format','content':o(_0x59f20c,'*Indent:*\x20%0',o(_0x59f20c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x23712d['commandName'])return{'type':'format','content':o(_0x59f20c,'*Outdent:*\x20%0',o(_0x59f20c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x23712d['commandName'])return _0x23712d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59f20c,'*Check\x20item*')}:{'type':'format','content':o(_0x59f20c,'*Uncheck\x20item*')};}function _0x12e89b(_0x3c69f5){return{'type':'format','content':o(_0x59f20c,'*Change\x20to:*\x20%0',_0x3c69f5)};}});}}function Le(_0x4e7816){const _0x5d9bff=_0x4e7816['getAttribute']('listIndent');if(0x0==_0x5d9bff)return _0x4e7816;let _0x267f39=_0x4e7816;for(;_0x4e7816['previousSibling']&&_0x4e7816['previousSibling']['is']('element','listItem');){const _0x7b0324=_0x4e7816['previousSibling']['getAttribute']('listIndent');if(_0x7b0324==_0x5d9bff)_0x267f39=_0x4e7816['previousSibling'];else{if(_0x7b0324<_0x5d9bff)break;}_0x4e7816=_0x4e7816['previousSibling'];}return _0x267f39;}function Ee(_0x2eec7a){const _0x14c9f3=[];if(_0x2eec7a['is']('element','listItem')&&_0x2eec7a['getAttribute']('listIndent')>0x0){let _0x14b06e=_0x2eec7a['nextSibling'];for(;_0x14b06e&&'listItem'==_0x14b06e['name']&&_0x14b06e['getAttribute']('listIndent')==_0x2eec7a['getAttribute']('listIndent');)_0x14c9f3['push'](_0x14b06e),_0x14b06e=_0x14b06e['nextSibling'];}return _0x14c9f3;}class mt extends _0x496248{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4122a8=this['editor']['config']['get']('list.properties'),_0x5eeea5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4122a8['styles']&&_0x5eeea5['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4122a8['reversed']&&_0x5eeea5['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4122a8['startIndex']&&_0x5eeea5['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5eeea5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1ce767,_0x3b766a={}){const _0x8198e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x186351=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x8198e5['markMultiRangeBlockFormat'](_0x186351,{'commandName':'listStyle','commandParams':[{'type':_0x3b766a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1050f8,_0x39fd63={}){const _0x3982ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0xed6531=this['_getSuggestionBlocks'](_0x4b7e64=>_0x4b7e64['is']('element','listItem')&&'numbered'===_0x4b7e64['getAttribute']('listType'));if(_0xed6531['length']<0x1)return;const _0x5906c4=_0xed6531['map'](_0x1aaa50=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1aaa50,'before'),this['editor']['model']['createPositionAt'](_0x1aaa50,0x0)));this['editor']['model']['change'](()=>{_0x3982ba['markMultiRangeBlockFormat'](_0x5906c4,{'commandName':'listReversed','commandParams':[{'reversed':_0x39fd63['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x200974,_0x13f31b={}){const _0x3b57dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x319714=this['_getSuggestionBlocks'](_0x3d9f13=>_0x3d9f13['is']('element','listItem')&&'numbered'===_0x3d9f13['getAttribute']('listType'));if(_0x319714['length']<0x1)return;const _0x52b38f=_0x319714['map'](_0xcf5b98=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xcf5b98,'before'),this['editor']['model']['createPositionAt'](_0xcf5b98,0x0)));this['editor']['model']['change'](()=>{_0x3b57dc['markMultiRangeBlockFormat'](_0x52b38f,{'commandName':'listStart','commandParams':[{'startIndex':_0x13f31b['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1138ec){if('formatBlock'!=_0x1138ec['type']&&'formatInline'!=_0x1138ec['type'])return;const _0x233ee9=this['editor']['locale'],{data:_0x1cd215}=_0x1138ec;if(!_0x1cd215)return;let _0x143767,_0x47c080;switch(_0x1cd215['commandName']){case'listStyle':_0x143767='*Change\x20to:*\x20%0',_0x47c080={'type':'format','content':o(_0x233ee9,_0x143767,o(_0x233ee9,this['_getTranslationKeyForListStyle'](_0x1cd215['commandParams'][0x0]['type'])))};break;case'listReversed':_0x143767=_0x1cd215['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x47c080={'type':'format','content':o(_0x233ee9,_0x143767)};break;case'listStart':_0x143767='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x47c080={'type':'format','content':o(_0x233ee9,_0x143767,_0x1cd215['commandParams'][0x0]['startIndex'])};}return _0x47c080;}['_getSuggestionBlocksForListStyle'](){const _0x4519b7=this['editor']['plugins']['get']('LegacyListUtils');let _0x307822=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x307822[0x0]?.['is']('element','listItem')&&_0x307822['unshift'](..._0x4519b7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x307822[_0x307822['length']-0x1]?.['is']('element','listItem')&&_0x307822['push'](..._0x4519b7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x307822=[...new Set(_0x307822)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x307822=_0x307822['filter'](_0x1e3e8e=>_0x1e3e8e['is']('element','listItem'))),_0x307822;}['_getSuggestionBlocks'](_0x24f637){const _0x2d71ac=this['editor']['plugins']['get']('LegacyListUtils');let _0x18cf11=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x24f637)['map'](_0x1b2fb0=>{const _0x5bf3ec=this['editor']['model']['createPositionAt'](_0x1b2fb0,0x0);return[..._0x2d71ac['getSiblingNodes'](_0x5bf3ec,'backward'),..._0x2d71ac['getSiblingNodes'](_0x5bf3ec,'forward')];})['flat']();return _0x18cf11=[...new Set(_0x18cf11)],_0x18cf11;}['_getTranslationKeyForListStyle'](_0x10f20d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x10f20d)||'default')['toUpperCase']()+'_LIST_'+_0x10f20d['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x496248{['afterInit'](){const _0x628647=this['editor'];if(!_0x628647['plugins']['has']('MediaEmbedEditing'))return;const _0x5131c1=_0x628647['plugins']['get']('TrackChangesEditing'),_0x420368=_0x628647['locale'];_0x5131c1['enableCommand']('mediaEmbed'),_0x5131c1['descriptionFactory']['registerElementLabel']('media',_0x182237=>o(_0x420368,'ELEMENT_MEDIA',_0x182237));}}class pt extends _0x496248{['afterInit'](){const _0x5a023e=this['editor'];_0x5a023e['plugins']['has']('MentionEditing')&&_0x5a023e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x496248{['afterInit'](){const _0x38e46e=this['editor'];if(!_0x38e46e['plugins']['has']('MergeFieldsEditing'))return;const _0x1ab68d=_0x38e46e['plugins']['get']('TrackChangesEditing'),_0x3b8ab8=_0x38e46e['locale'];_0x1ab68d['enableCommand']('insertMergeField'),_0x1ab68d['enableCommand']('insertMergeFieldBlock'),_0x1ab68d['enableCommand']('insertMergeFieldImage'),_0x1ab68d['descriptionFactory']['registerElementLabel']('mergeField',_0x53f256=>o(_0x3b8ab8,'ELEMENT_MERGE_FIELD',_0x53f256)),_0x1ab68d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x34c718=>o(_0x3b8ab8,'ELEMENT_MERGE_FIELD',_0x34c718)),_0x1ab68d['descriptionFactory']['registerDescriptionCallback'](_0x2b5260=>{if('insertion'!=_0x2b5260['type']&&'deletion'!=_0x2b5260['type'])return;const _0x104633=_0x2b5260['getContainedElement']();if(null==_0x104633)return;const _0x137866=_0x38e46e['plugins']['get']('MergeFieldsEditing');let _0x4eedbe;switch(_0x137866['getMergeFieldType'](_0x104633)){case null:return;case'image':{const _0x339a35=_0x137866['unwrapAffixes'](_0x104633['getAttribute']('src'));_0x4eedbe=_0x137866['getLabel'](_0x339a35)||_0x339a35;break;}default:{const _0x39501f=_0x104633['getAttribute']('id');_0x4eedbe=_0x137866['getLabel'](_0x39501f)||_0x39501f;break;}}return'insertion'==_0x2b5260['type']?{'type':'insertion','content':o(_0x3b8ab8,'*Insert:*\x20%0','\x22'+_0x4eedbe+'\x22\x20'+o(_0x3b8ab8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3b8ab8,'*Remove:*\x20%0','\x22'+_0x4eedbe+'\x22\x20'+o(_0x3b8ab8,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x496248{['afterInit'](){const _0x50761d=this['editor'],_0x29e612=_0x50761d['plugins']['get']('TrackChangesEditing');_0x50761d['plugins']['has']('MultiLevelList')&&(_0x29e612['enableDefaultAttributesIntegration']('multiLevelList'),_0x29e612['descriptionFactory']['registerDescriptionCallback'](_0x486d83=>this['handleDescriptions'](_0x486d83)));}['handleDescriptions'](_0x34579e){const _0x25a76e=this['editor']['locale'],{data:_0xf4b58}=_0x34579e,_0x5be9c1={'type':'format','content':''};if(_0xf4b58&&'listMarkerStyle'==_0xf4b58['key']){if(!_0xf4b58['oldValue'])return{'type':'format','content':o(_0x25a76e,'*Set\x20format:*\x20%0',o(_0x25a76e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xf4b58['newValue']+')'};if(!_0xf4b58['newValue']){let _0x431c7e=_0x34579e['head'];for(;_0x431c7e;){if(_0x431c7e['data']&&'listType'==_0x431c7e['data']['key']&&_0x431c7e['data']['newValue'])return _0x5be9c1;_0x431c7e=_0x431c7e['next'];}return{'type':'format','content':o(_0x25a76e,'*Remove\x20format:*\x20%0',o(_0x25a76e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xf4b58['oldValue']+')'};}}}}class bt extends _0x496248{['afterInit'](){const _0x4e8f65=this['editor'];if(!_0x4e8f65['plugins']['has']('PageBreakEditing'))return;_0x4e8f65['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2bc023=_0x4e8f65['plugins']['get']('TrackChangesEditing'),_0x5c69eb=_0x4e8f65['locale'];_0x2bc023['descriptionFactory']['registerElementLabel']('pageBreak',_0x396672=>o(_0x5c69eb,'ELEMENT_PAGE_BREAK',_0x396672));}}class yt extends _0x496248{['afterInit'](){const _0x551333=this['editor'];if(!_0x551333['plugins']['has']('Paragraph'))return;const _0x1a3b16=_0x551333['locale'],_0x5cc930=_0x551333['plugins']['get']('TrackChangesEditing');_0x5cc930['descriptionFactory']['registerElementLabel']('paragraph',_0x30642e=>o(_0x1a3b16,'ELEMENT_PARAGRAPH',_0x30642e)),_0x5cc930['enableDefaultAttributesIntegration']('paragraph'),_0x5cc930['enableCommand']('insertParagraph');const _0x5ddcbe=_0x5cc930['descriptionFactory'];_0x5ddcbe['registerDescriptionCallback'](_0x172d9b=>{if('insertion'!==_0x172d9b['type'])return;const {start:_0x737a6a,end:_0x31092a}=_0x172d9b['getFirstRange']();if(!_0x737a6a['isTouching'](_0x31092a)||!_0x737a6a['nodeAfter'])return;const _0x35b4bb=_0x551333['model']['schema'],_0x565563=_0x737a6a['nodeAfter'];return _0x35b4bb['isBlock'](_0x565563)&&!_0x35b4bb['isLimit'](_0x565563)&&_0x35b4bb['checkChild'](_0x565563,'$text')?{'type':'insertion','content':o(_0x1a3b16,'*Insert:*\x20%0',_0x5ddcbe['getItemLabel'](_0x565563,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42ef75=this['editor'],_0xa1f31=_0x42ef75['locale'];_0x42ef75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bd715=>{if('formatBlock'!=_0x4bd715['type'])return;const {data:_0x14cc1c}=_0x4bd715;return _0x14cc1c&&'paragraph'==_0x14cc1c['commandName']?{'type':'format','content':o(_0xa1f31,'*Change\x20to:*\x20%0',o(_0xa1f31,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x496248{['afterInit'](){const _0x4d4fd1=this['editor'];_0x4d4fd1['commands']['get']('replaceSource')&&_0x4d4fd1['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x496248{['afterInit'](){const _0x73b9e9=this['editor'];if(!_0x73b9e9['plugins']['has']('RemoveFormatEditing'))return;_0x73b9e9['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x448a80=this['editor'];_0x448a80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f08ad=>{if('formatBlock'!=_0x1f08ad['type']&&'formatInline'!=_0x1f08ad['type'])return;const {data:_0x464b54}=_0x1f08ad;return _0x464b54&&'removeFormat'==_0x464b54['commandName']?{'type':'format','content':o(_0x448a80['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x496248{['afterInit'](){const _0x53b8f9=this['editor'];if(!_0x53b8f9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x252dae=_0x53b8f9['plugins']['get']('TrackChangesEditing');_0x252dae['enableCommand']('goToPreviousRestrictedEditingException'),_0x252dae['enableCommand']('goToNextRestrictedEditingException');const _0x2d7192=_0x53b8f9['plugins']['get']('RestrictedEditingModeEditing');_0x2d7192['enableCommand']('trackChanges'),_0x2d7192['enableCommand']('acceptSuggestion'),_0x2d7192['enableCommand']('discardSuggestion'),_0x2d7192['enableCommand']('acceptAllSuggestions'),_0x2d7192['enableCommand']('discardAllSuggestions'),_0x2d7192['enableCommand']('acceptSelectedSuggestions'),_0x2d7192['enableCommand']('discardSelectedSuggestions');}}class At extends _0x496248{['afterInit'](){const _0x4c7ad7=this['editor'];if(!_0x4c7ad7['plugins']['has']('ShiftEnter'))return;const _0x482df7=_0x4c7ad7['plugins']['get']('TrackChangesEditing');_0x482df7['enableCommand']('shiftEnter'),_0x482df7['descriptionFactory']['registerElementLabel']('softBreak',_0x24d2ee=>o(_0x4c7ad7['locale'],'ELEMENT_LINE_BREAK',_0x24d2ee));}}function rn(_0x2448f8,_0x4342e4,_0x188bb6){const _0x898cb5=[];for(const _0x1dbb43 of _0x4342e4['getItems']())_0x1dbb43['hasAttribute'](_0x2448f8)&&_0x898cb5['push'](_0x188bb6['createRangeOn'](_0x1dbb43));return _0x898cb5;}class _t extends _0x496248{['afterInit'](){const _0x16e63f=this['editor'],_0x498095=_0x16e63f['plugins']['get']('TrackChangesEditing');_0x16e63f['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x498095['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x385f31=this['editor'],_0x37c671=_0x385f31['model'],_0x1100e9=_0x385f31['locale'],_0x17eb88=_0x385f31['plugins']['get']('TrackChangesEditing'),_0x443990='restrictedEditingException',_0x1e06fe=_0x385f31['commands']['get'](_0x443990);_0x17eb88['enableCommand'](_0x443990,(_0x223ff7,_0x3bb36c={})=>{const _0x2a0c67=_0x37c671['document']['selection'];if(_0x2a0c67['isCollapsed'])return void _0x223ff7(_0x3bb36c);const _0x5a2bc2=void 0x0!==_0x3bb36c['forceValue']?_0x3bb36c['forceValue']:!_0x1e06fe['value'];_0x37c671['change'](()=>{const _0x2b5fd5=Array['from'](_0x2a0c67['getRanges']());for(const _0x5e6a44 of _0x2b5fd5){const _0x244e91=_0x5a2bc2?[_0x5e6a44]:rn(_0x443990,_0x5e6a44,_0x37c671);for(const _0x433ba1 of _0x244e91)_0x17eb88['markInlineFormat'](_0x433ba1,{'commandName':_0x443990,'commandParams':[{'forceValue':_0x5a2bc2}]});}});}),_0x17eb88['descriptionFactory']['registerDescriptionCallback'](_0x3d6be5=>{if('formatBlock'!=_0x3d6be5['type']&&'formatInline'!=_0x3d6be5['type'])return;const {data:_0x3774a7}=_0x3d6be5;return _0x3774a7&&_0x3774a7['commandName']==_0x443990?_0x3774a7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1100e9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1100e9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x4831fc=this['editor'],_0x3e3dc7=_0x4831fc['locale'],_0x3a168d=_0x4831fc['plugins']['get']('TrackChangesEditing'),_0x5efd7c='restrictedEditingExceptionBlock',_0x58306c=this['editor']['commands']['get'](_0x5efd7c);_0x3a168d['enableCommand'](_0x5efd7c,(_0x2e971f,_0x4b66d7={})=>{const _0x479ab8=this['editor']['model']['document']['selection'],_0x5bb3ca=_0x4b66d7&&void 0x0!==_0x4b66d7['forceValue']?_0x4b66d7['forceValue']:!_0x58306c['value'];let _0x51cd28=[];if(_0x5bb3ca){const _0x2c527a=Array['from'](_0x479ab8['getSelectedBlocks']())['filter'](_0x53bd99=>function(_0x590dcb){return!!_0x590dcb['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x53bd99)||function(_0x575589,_0x2438d3){const _0x3a31ec=_0x2438d3['createContext'](_0x575589['parent']);if(!_0x2438d3['checkChild'](_0x3a31ec,'restrictedEditingException'))return!0x1;if(!_0x2438d3['checkChild'](_0x3a31ec['push']('restrictedEditingException'),_0x575589))return!0x1;return!0x0;}(_0x53bd99,this['editor']['model']['schema']));_0x51cd28=to(_0x2c527a,_0x4831fc['model']);}else{const _0x312d7c=Array['from'](_0x479ab8['getSelectedBlocks']())['map'](_0x2e44fa=>function(_0x3519d9){let _0x59473b=_0x3519d9;for(;_0x59473b['parent'];){if('restrictedEditingException'==_0x59473b['parent']['name'])return _0x59473b;_0x59473b=_0x59473b['parent'];}return null;}(_0x2e44fa))['filter'](_0x4bed63=>!!_0x4bed63);_0x51cd28=to(_0x312d7c,_0x4831fc['model']);}_0x4831fc['model']['change'](()=>{for(const _0x3b1830 of _0x51cd28)_0x3a168d['markBlockFormat'](_0x3b1830,{'commandName':_0x5efd7c,'commandParams':[{'forceValue':_0x5bb3ca}]});});}),_0x3a168d['descriptionFactory']['registerDescriptionCallback'](_0x3d20a4=>{const {data:_0x2d2fcb}=_0x3d20a4;if(_0x2d2fcb&&_0x2d2fcb['commandName']==_0x5efd7c)return _0x2d2fcb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e3dc7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3e3dc7,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x496248{['afterInit'](){const _0x3834ac=this['editor'];if(!_0x3834ac['plugins']['has']('Style')||!_0x3834ac['plugins']['has']('DataSchema'))return;const _0x145026=_0x3834ac['plugins']['get']('TrackChangesEditing'),_0x262308=_0x3834ac['locale'],_0x5a4fa5=_0x3834ac['config']['get']('style')||{},_0x2788cd=_0x3834ac['plugins']['get']('GeneralHtmlSupport'),_0x4bcbfb=_0x3834ac['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3834ac['plugins']['get']('DataSchema'),_0x5a4fa5['definitions']);_0x145026['enableDefaultAttributesIntegration']('style');const _0x26813c=new Set();for(const _0x4797f6 of _0x4bcbfb['block']){const _0x863164=_0x2788cd['getGhsAttributeNameForElement'](_0x4797f6['element']);_0x26813c['add'](_0x863164);}const _0x462e32=new Set();for(const _0x41b06d of _0x4bcbfb['inline']){const _0x1f90a1=_0x2788cd['getGhsAttributeNameForElement'](_0x41b06d['element']);_0x462e32['add'](_0x1f90a1);for(const _0x49cb8a of _0x41b06d['ghsAttributes'])_0x462e32['add'](_0x49cb8a);}for(const _0x546008 of _0x26813c)_0x145026['descriptionFactory']['registerAttributeLabel'](_0x546008,o(_0x262308,'FORMAT_STYLE'));for(const _0x336ba8 of _0x462e32)_0x145026['descriptionFactory']['registerAttributeLabel'](_0x336ba8,o(_0x262308,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3043ac=this['editor'],_0x589fd2=_0x3043ac['locale'];_0x3043ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a1d97=>{if('formatBlock'!=_0x3a1d97['type']&&'formatInline'!=_0x3a1d97['type'])return;const {data:_0x17a962}=_0x3a1d97;return _0x17a962&&'style'===_0x17a962['commandName']?_0x17a962['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x589fd2,'*Set\x20format:*\x20%0',_0x17a962['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x589fd2,'*Remove\x20format:*\x20%0',_0x17a962['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x496248{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3643a8){super(_0x3643a8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x13257b=this['editor'],_0x42cc18=_0x13257b['model']['document']['selection'];if(!_0x13257b['plugins']['has']('TableEditing'))return;const _0x346175=_0x13257b['locale'],_0x24563e=_0x13257b['plugins']['get']('TrackChangesEditing'),_0x2195ef=_0x13257b['plugins']['get']('TableUtils');_0x24563e['descriptionFactory']['registerElementLabel']('table',_0x202036=>o(_0x346175,'ELEMENT_TABLE',_0x202036)),this['_setupColumnsRowsFixing'](),_0x24563e['enableCommand']('insertTable'),_0x24563e['enableCommand']('selectTableRow'),_0x24563e['enableCommand']('selectTableColumn');for(const _0x4b7b6e of['insertTableRowAbove','insertTableRowBelow']){const _0x470215=_0x13257b['commands']['get'](_0x4b7b6e);_0x24563e['enableCommand'](_0x4b7b6e,_0x3cbb1c=>{_0x13257b['model']['change'](_0x368176=>{_0x3cbb1c();const _0x18d349='above'===_0x470215['order'],_0x35597c=_0x2195ef['getSelectionAffectedTableCells'](_0x42cc18),_0x22c70c=_0x2195ef['getRowIndexes'](_0x35597c),_0x270e9a=_0x18d349?_0x22c70c['first']-0x1:_0x22c70c['last']+0x1,_0x4ea8cb=_0x35597c[0x0]['findAncestor']('table'),_0x3f7284=_0x2195ef['createTableWalker'](_0x4ea8cb,{'startRow':_0x270e9a,'endRow':_0x270e9a}),_0x348f5c=Array['from'](_0x3f7284)['map'](_0x54d2b5=>_0x368176['createRangeOn'](_0x54d2b5['cell']));_0x24563e['markMultiRangeInsertion'](_0x348f5c,'tableRow');});});}for(const _0x12c309 of['insertTableColumnLeft','insertTableColumnRight']){const _0x486ad2=_0x13257b['commands']['get'](_0x12c309);_0x24563e['enableCommand'](_0x12c309,_0x4897f4=>{_0x13257b['model']['change'](_0x8d8824=>{_0x4897f4();const _0x604170='left'===_0x486ad2['order'],_0x4401c3=_0x2195ef['getSelectionAffectedTableCells'](_0x42cc18),_0x228358=_0x2195ef['getColumnIndexes'](_0x4401c3),_0x543755=_0x604170?_0x228358['first']-0x1:_0x228358['last']+0x1,_0x3c4400=_0x4401c3[0x0]['findAncestor']('table'),_0x3e7578=_0x2195ef['createTableWalker'](_0x3c4400,{'startRow':0x0,'column':_0x543755,'includeAllSlots':!0x1}),_0x110540=Array['from'](_0x3e7578)['map'](_0x4a333e=>_0x8d8824['createRangeOn'](_0x4a333e['cell']));_0x24563e['markMultiRangeInsertion'](_0x110540,'tableColumn');});});}for(const _0x25985b of['removeTableRow','removeTableColumn']){const _0x47229b=_0x25985b['substr'](0xb),_0x2803b7=_0x47229b['toLowerCase'](),_0x2f4d23=_0x2803b7['substr'](0x0,0x3)+'span',_0x29fad5='table'+_0x47229b,_0x13f7af='min'+_0x47229b,_0x24d686='max'+_0x47229b;_0x24563e['enableCommand'](_0x25985b,()=>{_0x13257b['model']['change'](_0x513fe9=>{const _0x5847ab=_0x2195ef['getSelectionAffectedTableCells'](_0x42cc18),_0x59f4b3=_0x5847ab[0x0]['findAncestor']('table');let _0x365bb6;if('removeTableRow'==_0x25985b){const _0x2c19cc=_0x2195ef['getRowIndexes'](_0x5847ab);_0x365bb6={'startRow':_0x2c19cc['first'],'endRow':_0x2c19cc['last'],'includeAllSlots':!0x0};}else{const _0x4d82b9=_0x2195ef['getColumnIndexes'](_0x5847ab);_0x365bb6={'startColumn':_0x4d82b9['first'],'endColumn':_0x4d82b9['last'],'includeAllSlots':!0x0};}const _0x52f4e4=_0x2195ef['createTableWalker'](_0x59f4b3,_0x365bb6),_0x148ad8=Array['from'](_0x52f4e4)['map'](({cell:_0x52d0cd})=>_0x52d0cd),_0x297f2d=_e(_0x148ad8['filter'](_0x211c21=>_0x211c21['hasAttribute'](_0x2f4d23))),_0x34a361=_e(_0x148ad8['filter'](_0x3e0f03=>!_0x3e0f03['hasAttribute'](_0x2f4d23)))['map'](_0x84b2f9=>_0x513fe9['createRangeOn'](_0x84b2f9)),_0x173285=_0x24563e['markMultiRangeDeletion'](_0x34a361,_0x29fad5);if(_0x173285&&('tableRow'==_0x173285['subType']||'tableColumn'==_0x173285['subType'])){const _0x4f5d0a=this['_getSuggestionCoords'](_0x173285);for(const _0x486435 of _0x297f2d){const _0xd6fbdc=_0x513fe9['createRangeOn'](_0x486435),_0x4e666b=_0x2195ef['getCellLocation'](_0x486435),_0x73caf7=_0x486435['getAttribute'](_0x2f4d23)-0x1,_0x3c899b=_0x4f5d0a[_0x13f7af],_0x15b9ba=_0x4f5d0a[_0x24d686];_0x3c899b<=_0x4e666b[_0x2803b7]&&_0x4e666b[_0x2803b7]+_0x73caf7<=_0x15b9ba&&_0x173285['addRange'](_0xd6fbdc);}}});});}function _0x4dddb0(_0x5e97c2){const _0x524776=Array['from'](_0x42cc18['getRanges']())['map'](_0x326eef=>_0x57b7e9['fromRange'](_0x326eef));_0x13257b['model']['change'](_0x59ea13=>{const _0x3831d0=_0x59ea13['batch'];_0x5e97c2=_0x5e97c2['filter'](_0x2a575a=>'$graveyard'!=_0x2a575a['root']['rootName']),_0x59ea13['setSelection'](_0x5e97c2),_0x13257b['commands']['get']('removeTableRow')['refresh'](),_0x13257b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x13257b['model']['enqueueChange'](()=>{_0x13257b['model']['enqueueChange'](_0x3831d0,_0x2ca590=>{const _0x533c69=_0x524776['filter'](_0x51fe4b=>'$graveyard'!=_0x51fe4b['root']['rootName']);_0x533c69['length']>0x0&&_0x2ca590['setSelection'](_0x533c69);for(const _0x131616 of _0x524776)_0x131616['detach']();});});});}function _0x3a3c04(_0x3410f9){_0x13257b['model']['change'](_0x18f2fe=>{const _0x567729=Array['from'](_0x42cc18['getRanges']())['map'](_0x201b7f=>_0x57b7e9['fromRange'](_0x201b7f)),_0x1cc3da=[];for(const _0x29800a of _0x3410f9)for(const _0x17aebc of _0x29800a['getItems']({'shallow':!0x0}))_0x1cc3da['push'](_0x17aebc);for(const _0x25132d of _0x1cc3da)'$graveyard'!=_0x25132d['root']['rootName']&&(_0x18f2fe['setSelection'](_0x18f2fe['createPositionAt'](_0x25132d,0x0)),_0x13257b['commands']['get']('removeTableColumn')['refresh'](),_0x13257b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1ab020=_0x567729['filter'](_0x334141=>'$graveyard'!=_0x334141['root']['rootName']);_0x1ab020['length']>0x0&&_0x18f2fe['setSelection'](_0x1ab020);for(const _0x12586f of _0x567729)_0x12586f['detach']();});}function _0x7768df(_0x2dd45a,_0x33da1a){return _0x33da1a['every'](_0xb7185b=>_0x2dd45a['some'](_0x571893=>_0x571893['end']['isEqual'](_0xb7185b['start'])||_0xb7185b['end']['isEqual'](_0x571893['start'])));}function _0x44bacd(_0x53a413,_0x130a65){return!_0x53a413['some'](_0x3f2ffc=>_0x130a65['some'](_0x505120=>_0x3f2ffc['isIntersecting'](_0x505120)))&&_0x53a413['some'](_0x397afb=>_0x130a65['some'](_0x24ac82=>_0x397afb['end']['isTouching'](_0x24ac82['start'])));}_0x24563e['descriptionFactory']['registerDescriptionCallback'](_0x35f977=>{if('insertion'!=_0x35f977['type']&&'deletion'!=_0x35f977['type'])return;const _0x1e7abc=_0x35f977['getContainedElement']();if(null!=_0x1e7abc&&_0x1e7abc['is']('element','table')){if('insertion'==_0x35f977['type']){const _0x359c53=_0x35f977['getItems']()['filter'](_0x2edb2a=>_0x2edb2a['is']('$textProxy'))['map'](_0x45c882=>_0x45c882['data']);if(_0x359c53['length'])return{'type':'insertion','content':o(_0x346175,'*Insert:*\x20%0',o(_0x346175,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x359c53['join']('\x20')+'\x22'))};}if('deletion'==_0x35f977['type']){const _0x38131c=_0x35f977['getItems']()['filter'](_0x397c24=>_0x397c24['is']('$textProxy'))['map'](_0x5ce59c=>_0x5ce59c['data']);if(_0x38131c['length'])return{'type':'deletion','content':o(_0x346175,'*Remove:*\x20%0',o(_0x346175,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x38131c['join']('\x20')+'\x22'))};}}}),_0x24563e['descriptionFactory']['registerDescriptionCallback'](_0x3f552b=>{if('tableRow'==_0x3f552b['subType']){const _0x4fafbb=_0x3f552b['getItems']()['filter'](_0x7ff100=>_0x7ff100['is']('$textProxy'))['map'](_0x861a0d=>_0x861a0d['data']),_0x8c0420=this['_getSuggestionCoords'](_0x3f552b),_0x29dc14=_0x8c0420['maxRow']-_0x8c0420['minRow']+0x1;if('insertion'==_0x3f552b['type'])return _0x4fafbb['length']?{'type':'insertion','content':o(_0x346175,'*Insert:*\x20%0',o(_0x346175,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x29dc14,'\x22'+_0x4fafbb['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x346175,'*Insert:*\x20%0',o(_0x346175,'ELEMENT_TABLE_ROW',_0x29dc14))};if('deletion'==_0x3f552b['type'])return _0x4fafbb['length']?{'type':'deletion','content':o(_0x346175,'*Remove:*\x20%0',o(_0x346175,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x29dc14,'\x22'+_0x4fafbb['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x346175,'*Remove:*\x20%0',o(_0x346175,'ELEMENT_TABLE_ROW',_0x29dc14))};}if('tableColumn'==_0x3f552b['subType']){const _0x762b4b=_0x3f552b['getItems']()['filter'](_0x282c5a=>_0x282c5a['is']('$textProxy'))['map'](_0x4d5837=>_0x4d5837['data']),_0x50e115=this['_getSuggestionCoords'](_0x3f552b),_0x46ba81=_0x50e115['maxColumn']-_0x50e115['minColumn']+0x1;if('insertion'==_0x3f552b['type'])return _0x762b4b['length']?{'type':'insertion','content':o(_0x346175,'*Insert:*\x20%0',o(_0x346175,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x46ba81,'\x22'+_0x762b4b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x346175,'*Insert:*\x20%0',o(_0x346175,'ELEMENT_TABLE_COLUMN',_0x46ba81))};if('deletion'==_0x3f552b['type'])return _0x762b4b['length']?{'type':'deletion','content':o(_0x346175,'*Remove:*\x20%0',o(_0x346175,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x46ba81,'\x22'+_0x762b4b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x346175,'*Remove:*\x20%0',o(_0x346175,'ELEMENT_TABLE_COLUMN',_0x46ba81))};}}),_0x24563e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4dddb0),_0x24563e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4dddb0),_0x24563e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3a3c04),_0x24563e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3a3c04),_0x24563e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x7768df),_0x24563e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x7768df),_0x24563e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x44bacd),_0x24563e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x44bacd);}['_acceptFormatSuggestionCallbackFactory'](){const _0x9c4eca=this['editor'],_0x6e1a59=_0x9c4eca['model']['document']['selection'];return(_0x268a96,_0xa864cd)=>{_0x9c4eca['model']['change'](_0x486e59=>{const {commandName:_0x33310f,commandParams:_0x3de49b}=_0xa864cd;let _0x3cf1e=_0x268a96[0x0]['end']['nodeBefore'];_0x3de49b&&_0x3de49b[0x0]&&!0x1===_0x3de49b[0x0]['forceValue']&&(_0x3cf1e=_0x268a96[0x0]['start']['nodeAfter']);const _0x523bd0=_0x486e59['createRangeIn'](_0x3cf1e);if('$graveyard'==_0x523bd0['root']['rootName'])return;const _0x311fed=Array['from'](_0x6e1a59['getRanges']())['map'](_0x5caec4=>_0x57b7e9['fromRange'](_0x5caec4));_0x486e59['setSelection'](_0x523bd0),_0x9c4eca['commands']['get'](_0x33310f)['refresh'](),_0x3de49b['push']({'forceDefaultExecution':!0x0}),_0x9c4eca['execute'](_0x33310f,..._0x3de49b);const _0x48c66b=_0x311fed['filter'](_0x33cc04=>'$graveyard'!=_0x33cc04['root']['rootName']);_0x48c66b['length']>0x0&&_0x486e59['setSelection'](_0x48c66b);for(const _0x32479f of _0x311fed)_0x32479f['detach']();});};}['_getCoordsForCells'](_0x1380d4){const _0x4407fc=this['editor']['plugins']['get']('TableUtils');let _0x45c90d=Number['MAX_SAFE_INTEGER'],_0x2efc49=Number['MIN_SAFE_INTEGER'],_0x6f6504=Number['MAX_SAFE_INTEGER'],_0x367df6=Number['MIN_SAFE_INTEGER'];for(const _0xfdb0c4 of _0x1380d4){if('$graveyard'==_0xfdb0c4['root']['rootName'])continue;const {row:_0x5f58a7,column:_0x50ec9f}=_0x4407fc['getCellLocation'](_0xfdb0c4),_0x257a8b=_0xfdb0c4['hasAttribute']('rowspan')?_0xfdb0c4['getAttribute']('rowspan')-0x1:0x0,_0x3291f9=_0xfdb0c4['hasAttribute']('colspan')?_0xfdb0c4['getAttribute']('colspan')-0x1:0x0;_0x45c90d=_0x5f58a7<_0x45c90d?_0x5f58a7:_0x45c90d,_0x2efc49=_0x5f58a7+_0x257a8b>_0x2efc49?_0x5f58a7+_0x257a8b:_0x2efc49,_0x6f6504=_0x50ec9f<_0x6f6504?_0x50ec9f:_0x6f6504,_0x367df6=_0x50ec9f+_0x3291f9>_0x367df6?_0x50ec9f+_0x3291f9:_0x367df6;}return{'minRow':_0x45c90d,'maxRow':_0x2efc49,'minColumn':_0x6f6504,'maxColumn':_0x367df6};}['_setupColumnsRowsFixing'](){const _0x2251a2=this['editor'],_0x2bb41c=_0x2251a2['plugins']['get']('TrackChangesEditing'),_0x50d8ca=_0x2251a2['plugins']['get']('TableUtils');_0x2251a2['model']['document']['on']('change:data',()=>{const _0x2015f2=Array['from'](_0x2251a2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x9244d9,data:_0x4c7d37}of _0x2015f2){const {group:_0x34ec56,id:_0x1fed2,subType:_0xd20ba}=_0x2bb41c['_splitMarkerName'](_0x9244d9);if('suggestion'!=_0x34ec56)continue;if(null!=_0x4c7d37['oldRange'])continue;const _0x7718d8=_0x2bb41c['getSuggestion'](_0x1fed2);this['_tablePostFixingSubtypes']['includes'](_0xd20ba)&&this['_tableSuggestions']['add'](_0x7718d8);}},{'priority':'low'});const _0x3d5ad3=(_0x108142,_0x47eb86)=>{let _0x5ecb6c=!0x1;const _0x47f5fa=_0x47eb86['createRangeOn'](_0x108142),_0x2dbbfd=_0x108142['findAncestor']('table'),_0x436a68=_0x50d8ca['getCellLocation'](_0x108142);for(const _0x50df01 of this['_tableSuggestions']){const _0x50f55d=_0x50df01['subType'],_0x1fa7f9=_0x50f55d['startsWith']('tablePaste'),_0x1d2514=_0x50f55d['substr'](_0x1fa7f9?0xa:0x5),_0x2d164c=_0x1d2514['toLowerCase'](),_0x4894c4=_0x2d164c['substr'](0x0,0x3)+'span',_0x5c942a='min'+_0x1d2514,_0x9d1c73='max'+_0x1d2514;if(!_0x50df01['isInContent'])continue;if(_0x2dbbfd!=_0x50df01['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x50df01['isIntersectingWithRange'](_0x47f5fa))continue;const _0x5da828=_0x108142['hasAttribute'](_0x4894c4)?_0x108142['getAttribute'](_0x4894c4)-0x1:0x0,_0x212fd0=this['_getSuggestionCoords'](_0x50df01),_0x3e7a77=_0x212fd0[_0x5c942a],_0x521148=_0x212fd0[_0x9d1c73];_0x3e7a77<=_0x436a68[_0x2d164c]&&_0x436a68[_0x2d164c]+_0x5da828<=_0x521148&&(_0x50df01['addRange'](_0x47f5fa),_0x5ecb6c=!0x0);}return _0x5ecb6c;};_0x2251a2['model']['document']['registerPostFixer'](_0xa5cfa4=>{let _0x2d96c7=!0x1;for(const _0x2c3450 of _0x2251a2['model']['document']['differ']['getChanges']())if('insert'==_0x2c3450['type']){if('tableRow'==_0x2c3450['name']){for(const _0x3d668f of _0x2c3450['position']['nodeAfter']['getChildren']())_0x2d96c7=_0x2d96c7||_0x3d5ad3(_0x3d668f,_0xa5cfa4);}else'tableCell'==_0x2c3450['name']&&(_0x2d96c7=_0x2d96c7||_0x3d5ad3(_0x2c3450['position']['nodeAfter'],_0xa5cfa4));}return _0x2d96c7;});}['_getSuggestionCoords'](_0x2ce04f){return this['_getCoordsForCells'](_0x2ce04f['getRanges']()['map'](_0x5960e3=>_0x5960e3['start']['nodeAfter']));}}function _e(_0x4ebd27){return Array['from'](new Set(_0x4ebd27)['values']());}class $t extends _0x496248{static get['requires'](){return[Nt];}['afterInit'](){const _0x270eb3=this['editor'],_0xd3bcf8=_0x270eb3['model']['document']['selection'],_0x3b2a64=_0x270eb3['locale'];if(!_0x270eb3['plugins']['has']('TableEditing'))return;const _0x4a38a5=_0x270eb3['plugins']['get']('TrackChangesEditing'),_0x3d9a93=_0x270eb3['plugins']['get']('TableUtils'),_0xeba6ca=_0x270eb3['plugins']['get'](Nt);_0xeba6ca['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4a38a5['enableCommand']('mergeTableCells',()=>{const _0x48b135=_0x3d9a93['getSelectionAffectedTableCells'](_0x270eb3['model']['document']['selection']);_0x270eb3['model']['change'](()=>{_0x4a38a5['markMultiRangeBlockFormat'](_0x48b135,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x270eb3['commands']['get']('mergeTableCells')['on']('execute',(_0x5342e8,_0x2bfc57)=>{_0x270eb3['commands']['get']('trackChanges')['value']&&(_0x2bfc57['length']>0x0&&_0x2bfc57[_0x2bfc57['length']-0x1]&&_0x2bfc57[_0x2bfc57['length']-0x1]['forceDefaultExecution']||_0x4a38a5['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5342e8['stop']());},{'priority':'highest'});for(const _0x27d3d9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3c8046=_0x270eb3['commands']['get'](_0x27d3d9);_0x4a38a5['enableCommand'](_0x27d3d9,()=>{const _0xe6b269=_0x270eb3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x335971=>_0x335971['is']('element','tableCell')),_0xb32871=_0x3c8046['value'];_0x270eb3['model']['change'](()=>{_0x4a38a5['markMultiRangeBlockFormat']([_0xe6b269,_0xb32871],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x266bfe of['splitTableCellVertically','splitTableCellHorizontally']){const _0x502f6c=_0x270eb3['commands']['get'](_0x266bfe);_0x4a38a5['enableCommand'](_0x266bfe,()=>{const _0x4f5be3=_0x3d9a93['getSelectionAffectedTableCells'](_0x270eb3['model']['document']['selection'])[0x0],_0x6e0ada=_0x4f5be3['findAncestor']('table'),{column:_0x3edd25,row:_0x111fc5}=_0x3d9a93['getCellLocation'](_0x4f5be3);let _0x2acff2=[];if('horizontally'==_0x502f6c['direction']){const _0x206062=_0x3d9a93['createTableWalker'](_0x6e0ada,{'startRow':_0x111fc5,'endRow':_0x111fc5,'includeAllSlots':!0x0});_0x2acff2=Array['from'](_0x206062)['map'](_0x52f8d0=>_0x52f8d0['cell']);}else{const _0x2e1f83=_0x3d9a93['createTableWalker'](_0x6e0ada,{'column':_0x3edd25,'includeAllSlots':!0x0});_0x2acff2=Array['from'](_0x2e1f83)['map'](_0x2cdbee=>_0x2cdbee['cell']);}_0x270eb3['model']['change'](_0x59896f=>{_0x4a38a5['markBlockFormat'](_0x59896f['createRangeOn'](_0x4f5be3),{'commandName':_0x266bfe,'commandParams':[]},_0x2acff2,_0x266bfe);});});}_0x4a38a5['descriptionFactory']['registerDescriptionCallback'](_0x220044=>{if('formatBlock'!=_0x220044['type']&&'formatInline'!=_0x220044['type'])return;const {data:_0xb77bd5}=_0x220044;return _0xb77bd5&&'mergeTableCells'==_0xb77bd5['commandName']?{'type':'format','content':o(_0x3b2a64,'*Merge\x20cells*')}:void 0x0;}),_0x4a38a5['descriptionFactory']['registerDescriptionCallback'](_0xe8b15b=>{if('formatBlock'!=_0xe8b15b['type']&&'formatInline'!=_0xe8b15b['type'])return;const {data:_0x34cfc6}=_0xe8b15b;return _0x34cfc6?'splitTableCellVertically'==_0x34cfc6['commandName']?{'type':'format','content':o(_0x3b2a64,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x34cfc6['commandName']?{'type':'format','content':o(_0x3b2a64,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5038b2=_0xeba6ca['_acceptFormatSuggestionCallbackFactory']();for(const _0x53fe51 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4a38a5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53fe51,'accept',_0x5038b2);for(const _0x3133cf of['splitTableCellVertically','splitTableCellHorizontally'])_0x4a38a5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3133cf,'accept',_0x5038b2);_0x4a38a5['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x510209=>{_0x270eb3['model']['change'](_0x45f281=>{const _0x55feb6=Array['from'](_0xd3bcf8['getRanges']())['map'](_0x383cb4=>_0x57b7e9['fromRange'](_0x383cb4));_0x45f281['setSelection'](_0x510209),_0x270eb3['commands']['get']('mergeTableCells')['refresh'](),_0x270eb3['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x7c9720=_0x55feb6['filter'](_0x675207=>'$graveyard'!=_0x675207['root']['rootName']);_0x7c9720['length']>0x0&&_0x45f281['setSelection'](_0x7c9720);for(const _0x1122d4 of _0x55feb6)_0x1122d4['detach']();});});for(const _0x212510 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5f1832=_0x270eb3['commands']['get'](_0x212510);_0x5f1832['on']('set:isEnabled',(_0x33fbce,_0x2af966,_0x3088b1)=>{if(_0x3088b1){const _0x1c6f27=_0x270eb3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d5e31=>_0x2d5e31['is']('element','tableCell'));this['_areMergableCells'](_0x5f1832['value'],_0x1c6f27)||(_0x33fbce['return']=!0x1,_0x33fbce['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x58be09=this['editor']['commands']['get']('mergeTableCells'),_0x180232=this['editor']['plugins']['get']('TableUtils');if(!_0x58be09['isEnabled'])return!0x1;const _0x43374b=_0x180232['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x358056 of _0x43374b)for(const _0x20085e of _0x43374b)if(_0x358056!=_0x20085e&&!this['_areMergableCells'](_0x358056,_0x20085e))return!0x1;return!0x0;}['_areMergableCells'](_0x439236,_0x410761){const _0x166659=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fc3bc=this['editor']['model']['createRangeOn'](_0x439236),_0x9a4d89=this['editor']['model']['createRangeOn'](_0x410761),_0x56b346=new Set(),_0xaaca86=new Set();for(const _0x24f607 of _0x166659['getSuggestions']())if(('insertion'==_0x24f607['type']||'deletion'==_0x24f607['type']||'mergeTableCells'==_0x24f607['subType'])&&_0x24f607['isInContent']){for(const _0x30e001 of _0x24f607['getRanges']())_0x30e001['containsRange'](_0x2fc3bc,!0x0)&&_0x56b346['add'](_0x24f607['type']+':'+_0x24f607['author']['id']),_0x30e001['containsRange'](_0x9a4d89,!0x0)&&_0xaaca86['add'](_0x24f607['type']+':'+_0x24f607['author']['id']);}if(_0x56b346['size']!=_0xaaca86['size'])return!0x1;for(const _0x479c08 of _0x56b346)if(!_0xaaca86['has'](_0x479c08))return!0x1;return!0x0;}}class vt extends _0x496248{static get['requires'](){return[Nt];}['afterInit'](){const _0x5c4dd8=this['editor'];if(!_0x5c4dd8['plugins']['has']('TableEditing'))return;const _0x2afbef=_0x5c4dd8['locale'],_0x40e1ae=_0x5c4dd8['plugins']['get']('TrackChangesEditing');_0x40e1ae['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x40e1ae['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x40e1ae['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2afbef,'FORMAT_HEADER_ROW')),_0x40e1ae['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2afbef,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xa4af73=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25af1b=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0xa4af73['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x25af1b),_0xa4af73['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x25af1b),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x47634f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23b9f0=this['editor']['plugins']['get']('TableUtils');function _0x327fbe({showActiveMarker:_0x509493=!0x0,setDataAttribute:_0x20ddd9=!0x0}={}){return(_0x5cef59,_0xcb559c,_0x1bed4e)=>{const {type:_0x1abb56,id:_0x137cfe}=_0x47634f['_splitMarkerName'](_0xcb559c['markerName']);if(!_0x47634f['hasSuggestion'](_0x137cfe))return;const _0x3345e7=_0x47634f['getSuggestion'](_0x137cfe),_0x3be22b=_0x3345e7['data'];if('formatBlock'!=_0x3345e7['type']||!_0x3be22b||'setTableColumnHeader'!=_0x3be22b['commandName'])return;if(_0xcb559c['item'])return void _0x5cef59['stop']();if(!_0x1bed4e['consumable']['consume'](_0xcb559c['markerRange'],_0x5cef59['name']))return;const _0x28eaa8=_0xcb559c['markerRange']['start']['nodeAfter'],_0x2b0dc0=_0xcb559c['markerRange']['end']['nodeBefore'],_0x3f01f2=_0x28eaa8['parent']['parent'],{column:_0x104230}=_0x23b9f0['getCellLocation'](_0x28eaa8),{column:_0x8d0e8a}=_0x23b9f0['getCellLocation'](_0x2b0dc0);for(let _0x5d5ff6=_0x104230;_0x5d5ff6<=_0x8d0e8a;_0x5d5ff6++){const _0x216051=_0x23b9f0['createTableWalker'](_0x3f01f2,{'column':_0x5d5ff6,'includeAllSlots':!0x1});for(const _0x230792 of _0x216051){const _0xe9f124=_0x230792['cell'],_0x54df6d=_0x1bed4e['mapper']['toViewElement'](_0xe9f124);_0x1bed4e['writer']['addClass']('ck-suggestion-marker-'+_0x1abb56,_0x54df6d),_0x20ddd9&&_0x1bed4e['writer']['setAttribute']('data-suggestion',_0x137cfe,_0x54df6d),_0x1bed4e['mapper']['bindElementToMarker'](_0x54df6d,_0xcb559c['markerName']),_0x509493&&(_0x47634f['activeMarkers']['includes'](_0xcb559c['markerName'])?_0x1bed4e['writer']['addClass']('ck-suggestion-marker--active',_0x54df6d):_0x1bed4e['writer']['removeClass']('ck-suggestion-marker--active',_0x54df6d));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x327fbe(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xb186d5,_0x42071a,_0x41bf82)=>{_0x41bf82['options']['showSuggestionHighlights']&&_0x327fbe({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xb186d5,_0x42071a,_0x41bf82);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x36f01e,_0x2f98c2,_0x56fc6d)=>{const {type:_0x385bf0,id:_0x23eb6e}=_0x47634f['_splitMarkerName'](_0x2f98c2['markerName']);if(!_0x47634f['hasSuggestion'](_0x23eb6e))return;const _0x929781=_0x47634f['getSuggestion'](_0x23eb6e),_0x185a07=_0x929781['data'];if('formatBlock'!=_0x929781['type']||!_0x185a07||'setTableColumnHeader'!=_0x185a07['commandName'])return;const _0x41e61b=_0x56fc6d['mapper']['markerNameToElements'](_0x2f98c2['markerName']);if(_0x41e61b){for(const _0x52d8bb of _0x41e61b)_0x56fc6d['writer']['removeClass']('ck-suggestion-marker-'+_0x385bf0,_0x52d8bb),_0x56fc6d['writer']['removeClass']('ck-suggestion-marker--active',_0x52d8bb),_0x56fc6d['writer']['removeAttribute']('data-suggestion',_0x52d8bb),_0x56fc6d['mapper']['unbindElementFromMarkerName'](_0x52d8bb,_0x2f98c2['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x2e9f65=this['editor'],_0x74a2b3=_0x2e9f65['locale'];function _0x4094b6(_0x299a68){return{'type':'format','content':o(_0x74a2b3,'*Format:*\x20%0',_0x299a68)};}_0x2e9f65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a39ea=>{if('formatBlock'!=_0x4a39ea['type'])return;const {data:_0x5a0395}=_0x4a39ea;if(_0x5a0395){if('setTableRowHeader'==_0x5a0395['commandName']){const _0x1d3716=_0x5a0395['commandParams'][0x0]['forceValue'];return _0x4094b6(o(_0x74a2b3,_0x1d3716?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5a0395['commandName']){const _0x12b3e2=_0x5a0395['commandParams'][0x0]['forceValue'];return _0x4094b6(o(_0x74a2b3,_0x12b3e2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x496248{['afterInit'](){const _0x563974=this['editor'],_0x3495fe=_0x563974['locale'],_0xa34179=_0x563974['plugins']['get']('TrackChangesEditing');function _0x63b4de(_0x2ec0d6){return{'type':'format','content':''+o(_0x3495fe,'*Set\x20table\x20type:*\x20%0',_0x2ec0d6)};}_0x563974['plugins']['has']('TableLayout')&&(_0xa34179['enableCommand']('insertTableLayout'),_0xa34179['enableDefaultAttributesIntegration']('tableType'),_0xa34179['descriptionFactory']['registerElementLabel'](_0x1104e8=>_0x1104e8['is']('element','table')&&'layout'===_0x1104e8['getAttribute']('tableType'),_0x11ef5f=>o(_0x3495fe,'ELEMENT_LAYOUT_TABLE',_0x11ef5f)),_0xa34179['descriptionFactory']['registerDescriptionCallback'](_0x2b5d88=>{const {data:_0x3a1fff}=_0x2b5d88;if(_0x3a1fff&&'tableType'==_0x3a1fff['key'])switch(_0x3a1fff['newValue']){case'layout':return _0x63b4de(o(_0x3495fe,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x63b4de(o(_0x3495fe,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Re['map'](_0x49868d=>[_0x49868d,null]));class Bt extends _0x496248{static get['requires'](){return[Nt];}['afterInit'](){const _0x3ffbdc=this['editor'];if(!_0x3ffbdc['plugins']['has']('TableClipboard'))return;const _0x5112f7=_0x3ffbdc['plugins']['get']('TrackChangesEditing'),_0x3c4b2e=_0x3ffbdc['plugins']['get']('TableUtils'),_0x287548=_0x3ffbdc['plugins']['get'](Nt),_0x4bc060=_0x3ffbdc['plugins']['get']('TableClipboard'),_0x3350b9=_0x3ffbdc['plugins']['get']('TableSelection'),_0x4e4158=_0x3ffbdc['plugins']['get'](_0x32aca0);_0x287548['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3ffbdc['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3ffbdc['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3a80ff=null,_0x375991=!0x1;_0x4e4158['on']('contentInsertion',(_0x3c6be1,_0x45e3ca)=>{_0x375991='paste'===_0x45e3ca['method'];}),_0x3ffbdc['model']['on']('insertContent',(_0x5abb1c,_0x1eb4f1)=>{if(!_0x375991&&null===_0x3350b9['getSelectedTableCells']())return;const [_0x2e8bb3,_0x113a56]=_0x1eb4f1,_0xb37f1a=_0x1eb4f1[_0x1eb4f1['length']-0x1];_0xb37f1a&&_0xb37f1a['forceDefaultExecution']||_0x5112f7['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xfb1015,_0x293a88,_0x2b5304,_0xe700df,_0x522f6c){if(_0x293a88&&!_0x293a88['is']('documentSelection'))return!0x1;const _0x338181=_0x522f6c['getTableIfOnlyTableInContent'](_0xfb1015,_0x2b5304);if(!_0x338181||!Oe(_0x338181,void 0x0,_0xe700df))return!0x1;const _0x104e3e=_0xe700df['getSelectionAffectedTableCells'](_0x2b5304['document']['selection']);if(!_0x104e3e['length'])return!0x1;const _0x4b76df=_0x104e3e[0x0]['findAncestor']('table'),_0x172403=_0xe700df['getRowIndexes'](_0x104e3e),_0x287711=_0xe700df['getColumnIndexes'](_0x104e3e),_0xea8334={'startRow':_0x172403['first'],'endRow':_0x172403['last'],'startColumn':_0x287711['first'],'endColumn':_0x287711['last']};return 0x1==_0x104e3e['length']&&(_0xea8334['endRow']+=_0xe700df['getRows'](_0x338181)-0x1,_0xea8334['endColumn']+=_0xe700df['getColumns'](_0x338181)-0x1),Oe(_0x4b76df,_0xea8334,_0xe700df);}(_0x2e8bb3,_0x113a56,_0x3ffbdc['model'],_0x3c4b2e,_0x4bc060)&&(_0x5abb1c['stop'](),_0x3a80ff={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3ffbdc['model']['change'](()=>{_0x3ffbdc['model']['insertContent'](_0x1eb4f1[0x0],_0x1eb4f1[0x1],_0x1eb4f1[0x2],{'forceDefaultExecution':!0x0});const _0x2d44b5=_0x59376e(),{rowInsertionRanges:_0x5cde47,columnInsertionRanges:_0x274b2d,insertionRanges:_0x51650d,deletionRanges:_0x55f013,cells:_0x393bc1}=_0x3a80ff;_0x5cde47['length']&&_0x5112f7['markMultiRangeInsertion'](_0x5cde47,'tablePasteRow',{'tablePasteChainId':_0x2d44b5}),_0x274b2d['length']&&_0x5112f7['markMultiRangeInsertion'](_0x274b2d,'tablePasteColumn',{'tablePasteChainId':_0x2d44b5}),_0x51650d['length']&&(_0x5112f7['markMultiRangeInsertion'](_0x51650d,'tablePaste',{'tablePasteChainId':_0x2d44b5,'skipNestingCheck':!0x0}),_0x51650d['forEach'](_0x35df1f=>_0x35df1f['detach']?.())),_0x55f013['length']&&(_0x5112f7['markMultiRangeDeletion'](_0x55f013,'tablePaste',{'tablePasteChainId':_0x2d44b5,'skipNestingCheck':!0x0}),_0x55f013['forEach'](_0x102a4a=>_0x102a4a['detach']?.()));const _0x33fe5b=_0x5112f7['markMultiRangeBlockFormat'](_0x393bc1['map'](({element:_0x237947})=>_0x237947),{'formatGroupId':_0x59376e()},[],'tablePasteCell',{'tablePasteChainId':_0x2d44b5});if(_0x33fe5b){const _0xdec742=_0x33fe5b['getMarkers'](),_0xe63b0e=[];for(const {element:_0x38303c,attributes:_0x7e0ef2}of _0x393bc1){if(!_0x7e0ef2)continue;const _0x41e0c6=_0x3ffbdc['model']['createRangeOn'](_0x38303c),_0x10ea2f=_0xdec742['find'](_0x58c339=>_0x58c339['getRange']()['isEqual'](_0x41e0c6));_0x10ea2f&&_0xe63b0e['push']([_0x10ea2f['name'],_0x7e0ef2]);}_0xe63b0e['length']&&_0x33fe5b['setAttribute']('markerAttributes',Object['fromEntries'](_0xe63b0e));}_0x3a80ff=null;}));},{'priority':_0x104c38['high']+0xa}),_0x4e4158['on']('contentInsertion',()=>{_0x375991=!0x1;},{'priority':'lowest'}),_0x3ffbdc['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x37e648,_0x599633)=>{const [_0x1d18f4,_0x23b9ac,,_0x5f3abb]=_0x599633;if(!_0x3a80ff)return;_0x37e648['stop']();const _0x5bdc5c=_0x1d18f4['cell'],_0xec69a4=_0x23b9ac,_0x33cc36=Be(_0x5bdc5c),_0x133e5f=Be(_0xec69a4);_0x37e648['return']=_0x5bdc5c;let _0x1171de=null,_0x2dce7f=null;if(_0x133e5f||_0x33cc36){if(_0x33cc36&&!_0x133e5f){_0x5f3abb['remove'](_0x5bdc5c['getChild'](0x0));for(const _0x3aecc9 of Array['from'](_0xec69a4['getChildren']()))_0x5f3abb['insert'](_0x3aecc9,_0x5bdc5c,'end');const _0x1cea5b=_0x3a80ff['rowInsertionIndexes']['includes'](_0x1d18f4['row']),_0x4a3777=_0x3a80ff['columnInsertionIndexes']['includes'](_0x1d18f4['column']);_0x1cea5b||_0x4a3777||(_0x1171de=_0x57b7e9['fromRange'](_0x5f3abb['createRangeIn'](_0x5bdc5c)));}else _0x133e5f&&!_0x33cc36&&(_0x2dce7f=_0x5f3abb['createRangeIn'](_0x5bdc5c));}else{const _0x366f8e=_0x5f3abb['createElement']('tableCellSuggestion'),_0x44a3d6=_0x5f3abb['createElement']('tableCellSuggestion');_0x5f3abb['wrap'](_0x5f3abb['createRangeIn'](_0x5bdc5c),_0x44a3d6),_0x5f3abb['insert'](_0x366f8e,_0x5bdc5c,0x0);for(const _0x368911 of Array['from'](_0xec69a4['getChildren']()))_0x5f3abb['insert'](_0x368911,_0x366f8e,'end');_0x1171de=_0x57b7e9['fromRange'](_0x5f3abb['createRangeOn'](_0x366f8e)),_0x2dce7f=_0x57b7e9['fromRange'](_0x5f3abb['createRangeOn'](_0x44a3d6));}const _0x5ca52b=Array['from'](_0xec69a4['getAttributes']())['filter'](([_0x5d63cd])=>Re['includes'](_0x5d63cd));_0x3a80ff['cells']['push']({'element':_0x5bdc5c,'attributes':_0x5ca52b['length']?Object['fromEntries'](_0x5ca52b):null}),_0x1171de&&_0x3a80ff['insertionRanges']['push'](_0x1171de),_0x2dce7f&&_0x3a80ff['deletionRanges']['push'](_0x2dce7f);},{'priority':'high'}),_0x3c4b2e['on']('insertColumns',(_0x1efb3a,_0x3d09a3)=>{const [_0xa2b358,_0x99e44f={}]=_0x3d09a3;if(!_0x3a80ff)return;const _0x1ec89b=_0x99e44f['at']||0x0,_0xc16c69=_0x99e44f['columns']||0x1;_0x3a80ff['columnInsertionIndexes']=new Array(_0xc16c69)['fill'](_0x1ec89b)['map']((_0x2a77d5,_0x4ff1c1)=>_0x2a77d5+_0x4ff1c1);for(const {cell:_0x190c7f}of _0x3c4b2e['createTableWalker'](_0xa2b358,{'startColumn':_0x1ec89b,'endColumn':_0x1ec89b+_0xc16c69-0x1}))_0x3a80ff['columnInsertionRanges']['push'](_0x3ffbdc['model']['createRangeOn'](_0x190c7f));},{'priority':'low'}),_0x3c4b2e['on']('insertRows',(_0x3e903c,_0x528315)=>{const [_0x83ed00,_0x32fabc={}]=_0x528315;if(!_0x3a80ff)return;const _0x434d87=_0x32fabc['at']||0x0,_0x28ac0c=_0x32fabc['rows']||0x1;_0x3a80ff['rowInsertionIndexes']=new Array(_0x28ac0c)['fill'](_0x434d87)['map']((_0x48349b,_0xa86afe)=>_0x48349b+_0xa86afe);for(const {cell:_0x1c5e9c}of _0x3c4b2e['createTableWalker'](_0x83ed00,{'startRow':_0x434d87,'endRow':_0x434d87+_0x28ac0c-0x1}))_0x3a80ff['rowInsertionRanges']['push'](_0x3ffbdc['model']['createRangeOn'](_0x1c5e9c));},{'priority':'low'}),_0x5112f7['descriptionFactory']['registerDescriptionCallback'](_0x3ae3af=>{if(_0x3ae3af['subType']&&_0x3ae3af['subType']['startsWith']('tablePaste'))return _0x3ae3af['previous']?{}:{'type':'insertion','content':o(_0x3ffbdc['locale'],'*Replace\x20table\x20cells*')};});const _0xd8d32f=()=>!0x1;for(const _0x545318 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5112f7['_suggestionFactory']['registerCustomCallback']('insertion',_0x545318,'join',_0xd8d32f),_0x5112f7['_suggestionFactory']['registerCustomCallback']('deletion',_0x545318,'join',_0xd8d32f),_0x5112f7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x545318,'join',_0xd8d32f);_0x5112f7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xd8d32f),_0x5112f7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x306ee9,_0x2f7a18,_0x4e531a)=>{const _0x35052a=_0x306ee9['map'](_0x350469=>_0x350469['getContainedElement']())['filter'](_0x11090a=>_0x11090a),_0x4f58c3=new Map(_0x35052a['map'](_0x5dd465=>[_0x5dd465,null]));if(_0x3a80ff){for(const {element:_0x2905f2,attributes:_0x5c8f26}of _0x3a80ff['cells'])_0x5c8f26&&_0x4f58c3['set'](_0x2905f2,_0x5c8f26);}else{if(_0x4e531a&&_0x4e531a['markerAttributes'])for(const [_0x3b1c79,_0x40a7bb]of Object['entries'](_0x4e531a['markerAttributes'])){const _0x42806c=_0x3ffbdc['model']['markers']['get'](_0x3b1c79),_0x28e8be=_0x42806c?_0x42806c['getRange']()['getContainedElement']():null;_0x28e8be&&_0x4f58c3['set'](_0x28e8be,_0x40a7bb);}}_0x3ffbdc['model']['change'](_0x591b4a=>{for(const [_0x2c8d6c,_0x26bc40]of _0x4f58c3)_0x591b4a['setAttributes']({...Ae,..._0x26bc40},_0x2c8d6c);});});const _0x2df2ae=(_0x3e4982,_0x527fa5)=>{_0x5112f7['_suggestionFactory']['registerCustomCallback'](_0x3e4982,'tablePaste',_0x527fa5,(_0x2e1393,_0xca12e7,_0xda272c)=>{_0x3ffbdc['model']['change'](_0x397ca2=>{const _0x4f060e=[];for(const _0xfd239e of _0x2e1393){const _0x21c9ce=_0xfd239e['start']['nodeAfter'];_0x21c9ce['is']('element','tableCellSuggestion')&&_0x4f060e['push'](_0x21c9ce);}_0x5112f7['_suggestionFactory']['getSuggestionCallback'](_0x3e4982,null,_0x527fa5)(_0x2e1393,_0xca12e7,_0xda272c);for(const _0x5db96c of _0x4f060e)'$graveyard'!=_0x5db96c['root']['rootName']&&_0x397ca2['unwrap'](_0x5db96c);});});};_0x2df2ae('insertion','accept'),_0x2df2ae('insertion','discard'),_0x2df2ae('deletion','accept'),_0x2df2ae('deletion','discard'),_0x5112f7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x338aad=>{const _0x9c2c39=_0x338aad['map'](_0x14bf55=>_0x14bf55['getContainedElement']()),_0x35ad24=_0x9c2c39[0x0]['findAncestor']('table'),{minRow:_0x4067b4,maxRow:_0x163967}=_0x287548['_getCoordsForCells'](_0x9c2c39);_0x3c4b2e['removeRows'](_0x35ad24,{'at':_0x4067b4,'rows':_0x163967-_0x4067b4+0x1});}),_0x5112f7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2128aa=>{const _0x57ddf8=_0x2128aa['map'](_0x55d355=>_0x55d355['getContainedElement']()),_0x3597ee=_0x57ddf8[0x0]['findAncestor']('table'),{minColumn:_0x2ae51f,maxColumn:_0x229eff}=_0x287548['_getCoordsForCells'](_0x57ddf8);_0x3c4b2e['removeColumns'](_0x3597ee,{'at':_0x2ae51f,'columns':_0x229eff-_0x2ae51f+0x1});});const _0x39decc=(_0x13d98,_0x11b7af)=>{if(!_0x11b7af['subType']||!_0x11b7af['subType']['startsWith']('tablePaste'))return;const _0x204e2a=_0x11b7af['attributes']['tablePasteChainId'],_0xc536bb=_0x5112f7['getSuggestions']()['filter'](_0x2678a3=>_0x2678a3['isInContent']&&_0x2678a3['attributes']&&_0x2678a3['attributes']['tablePasteChainId']==_0x204e2a);_0xc536bb['length']&&_0x11b7af['getAllAdjacentSuggestions']()['length']!=_0xc536bb['length']&&_0xc536bb['reduce']((_0x12e262,_0x114a31)=>(_0x12e262['next']=_0x114a31,_0x114a31['previous']=_0x12e262,_0x114a31));};function _0x20e2f1(_0x682aa0,_0x5199b7=!0x0){const {id:_0x44fe54,authorId:_0x45cd58}=_0x5112f7['_splitMarkerName'](_0x682aa0['markerName']),_0x5f5d75=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x223aaa=_0x5112f7['activeMarkers']['includes'](_0x682aa0['markerName']);return _0x223aaa&&_0x5f5d75['push']('ck-suggestion-marker--active'),{'classes':_0x5f5d75,'attributes':{'data-suggestion':_0x44fe54,'data-author-id':_0x45cd58},'priority':_0x223aaa&&_0x5199b7?0xbc2:0xbb8};}_0x5112f7['on']('suggestionLoaded',_0x39decc,{'priority':'high'}),_0x5112f7['on']('suggestionUnloaded',_0x39decc,{'priority':'high'}),_0x3ffbdc['model']['document']['registerPostFixer'](()=>{let _0x173722=!0x1;const _0x1ff5be=Array['from'](_0x3ffbdc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5ca633,data:_0x539884}of _0x1ff5be){const {group:_0x5eaa22,type:_0x41f263,id:_0x424ac7}=_0x5112f7['_splitMarkerName'](_0x5ca633);if('suggestion'!=_0x5eaa22||'deletion'!=_0x41f263||_0x539884['oldRange'])continue;if(!_0x5112f7['hasSuggestion'](_0x424ac7))continue;const _0x10bd98=_0x5112f7['getSuggestion'](_0x424ac7)['getRanges'](),_0xd15267=_0x3ffbdc['plugins']['get']('Users')['me'];for(const _0x463e4c of _0x5112f7['getSuggestions']()){if(!_0x463e4c['isInContent']||_0x463e4c['author']!=_0xd15267)continue;if('formatBlock'!=_0x463e4c['type']||'tablePasteCell'!=_0x463e4c['subType'])continue;if(_0x463e4c['getRanges']()['every'](_0x39d3d8=>_0x10bd98['some'](_0x2627a1=>_0x2627a1['containsRange'](_0x39d3d8,!0x0)))){for(const _0xe3c92e of _0x463e4c['getAllAdjacentSuggestions']())_0xe3c92e['isInContent']&&(_0xe3c92e['discard'](),_0x173722=!0x0);}}}return _0x173722;}),_0x3ffbdc['model']['document']['registerPostFixer'](_0x5849ed=>{const _0x501f8e=_0x3ffbdc['commands']['get']('redo');if(!_0x501f8e||!_0x501f8e['_createdBatches']['has'](_0x5849ed['batch']))return!0x1;let _0x50eba1=!0x1;const _0x3742d7=_0x3ffbdc['plugins']['get']('Users')['me'],_0x3083bb=_0x3ffbdc['model']['document']['differ']['getChanges'](),_0x998bc=Array['from'](_0x3ffbdc['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1ad900,data:_0x108f8a})=>{const {group:_0x16cc5c,subType:_0x1df81a,authorId:_0x27bfde}=_0x5112f7['_splitMarkerName'](_0x1ad900);return'suggestion'==_0x16cc5c&&'tablePaste'==_0x1df81a&&_0x27bfde==_0x3742d7['id']&&!_0x108f8a['oldRange'];});for(const _0x51a1c8 of _0x3083bb){if('insert'!=_0x51a1c8['type']||'tableCellSuggestion'!=_0x51a1c8['name']||0x1!=_0x51a1c8['length'])continue;const _0x26723f=_0x5849ed['createRange'](_0x51a1c8['position'],_0x51a1c8['position']['getShiftedBy'](0x1));if(!_0x998bc['find'](({data:_0x362dca})=>_0x362dca['newRange']['isEqual'](_0x26723f))){for(const {name:_0x1d2494,data:_0x5b9788}of _0x998bc)if(_0x26723f['containsRange'](_0x5b9788['newRange'])){_0x5849ed['updateMarker'](_0x1d2494,{'range':_0x26723f}),_0x50eba1=!0x0;break;}}}return _0x50eba1;}),_0x3ffbdc['model']['document']['registerPostFixer'](_0x2bdac5=>{let _0x4f3e3e=!0x1;const _0x4d370f=_0x3ffbdc['plugins']['get']('Users')['me'],_0x20ff5d=_0x5112f7['getSuggestions']()['filter'](_0x17b9d9=>_0x17b9d9['isInContent']&&_0x17b9d9['author']==_0x4d370f),_0x316a1a=new Set(),_0xb2d1c8=new Set();for(const _0x565566 of _0x20ff5d)if('tablePaste'==_0x565566['subType'])for(const _0xd666d5 of _0x565566['getMarkers']()){const _0x41a703=_0xd666d5['getRange']()['getContainedElement']();if(_0x41a703){if(_0x41a703['is']('element','tableCellSuggestion')&&Be(_0x41a703)){_0x565566['removeMarker'](_0xd666d5['name']),_0x316a1a['add'](_0x41a703),_0x4f3e3e=!0x0;const _0x1b72f0=_0x41a703['nextSibling'],_0x3a8454=_0x41a703['previousSibling'],_0x2f54b5=_0x1b72f0&&_0x1b72f0['is']('element','tableCellSuggestion'),_0x333a3c=_0x3a8454&&_0x3a8454['is']('element','tableCellSuggestion');_0x2f54b5&&!_0x316a1a['has'](_0x1b72f0)&&_0xb2d1c8['add'](_0x1b72f0),_0x333a3c&&!_0x316a1a['has'](_0x3a8454)&&_0xb2d1c8['add'](_0x3a8454);}else _0x41a703['is']('element','paragraph')&&_0x41a703['isEmpty']&&(_0x565566['removeMarker'](_0xd666d5['name']),_0x4f3e3e=!0x0);}}else{if('tablePasteCell'==_0x565566['subType']){if(!_0x565566['attributes']||!_0x565566['attributes']['tablePasteChainId'])continue;const _0x1c7ca8=_0x565566['attributes']['markerAttributes'];if(_0x1c7ca8&&Object['keys'](_0x1c7ca8)['length'])continue;const _0x2b31c8=_0x565566['attributes']['tablePasteChainId'];let _0x46eca3=!0x0,_0x354773=!0x0;for(const _0x1102b2 of _0x20ff5d)if(_0x1102b2['subType']&&_0x1102b2['subType']['startsWith']('tablePaste')){if(!_0x1102b2['attributes']['tablePasteChainId']){_0x354773=!0x1;break;}if(_0x1102b2['id']!=_0x565566['id']&&_0x1102b2['attributes']['tablePasteChainId']==_0x2b31c8){_0x46eca3=!0x1;break;}}_0x354773&&_0x46eca3&&(_0x565566['removeMarkers'](),_0x4f3e3e=!0x0);}}for(const _0x36a53d of _0x316a1a)_0x2bdac5['remove'](_0x36a53d);for(const _0x407193 of _0xb2d1c8)_0x2bdac5['unwrap'](_0x407193);return _0x4f3e3e;}),_0x3ffbdc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x444f04=>_0x20e2f1(_0x444f04),'converterPriority':'high'}),_0x3ffbdc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3cfcf1,_0x165bd8)=>_0x165bd8['options']['showSuggestionHighlights']?_0x20e2f1(_0x3cfcf1,!0x1):null,'converterPriority':'high'});const _0x4cd501=_0x3ffbdc['editing']['view'];this['listenTo'](_0x4cd501['document'],'clipboardOutput',(_0x5c9400,_0x521839)=>{const _0x4d3100=[];for(const _0x5a878a of _0x4cd501['createRangeIn'](_0x521839['content'])['getItems']())_0x5a878a['is']('element','suggestion-td')&&_0x4d3100['push'](_0x5a878a);_0x4cd501['change'](_0x44e8f1=>{for(const _0x47b2c7 of _0x4d3100)_0x44e8f1['move'](_0x44e8f1['createRangeIn'](_0x47b2c7),_0x44e8f1['createPositionBefore'](_0x47b2c7)),_0x44e8f1['remove'](_0x47b2c7);});});}}function Be(_0x1364a7){if(_0x1364a7['isEmpty'])return!0x0;const _0x584b3e=_0x1364a7['getChild'](0x0);return _0x584b3e['is']('element','paragraph')&&_0x584b3e['isEmpty'];}function Oe(_0x4941d2,_0xe0892c={},_0x3c7b6b){for(const {isAnchor:_0x1ffb4,cellHeight:_0x100b3a,cellWidth:_0x5431b9}of _0x3c7b6b['createTableWalker'](_0x4941d2,{'includeAllSlots':!0x0,..._0xe0892c}))if(!_0x1ffb4||0x1!=_0x100b3a||0x1!=_0x5431b9)return!0x1;return!0x0;}class Ot extends _0x496248{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1bf7f4=this['editor']['plugins']['get']('TrackChangesEditing');_0x1bf7f4['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1bf7f4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1bf7f4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1bf7f4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1bf7f4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1bf7f4['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x51a89a,_0x578682){const _0x23fbbe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19cd44=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xa397af=_0x578682['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x38262d=_0x19cd44['getColumnGroupElement'](_0xa397af);let _0x1b4889=_0x38262d?_0x19cd44['getTableColumnsWidths'](_0x38262d):null,_0x189b8a=_0xa397af['getAttribute']('tableWidth')||null;const _0x3d928e=_0x578682['tableWidth']||_0x189b8a,_0x3d191e=_0x578682['columnWidths']||_0x1b4889,_0x1a5d90=this['editor']['plugins']['get']('Users')['me'];for(const _0x48f199 of _0x23fbbe['getSuggestions']()){const _0x795b05=_0x48f199['getContainedElement']();if('resizeTable'===_0x48f199['subType']&&_0x795b05===_0xa397af){_0x48f199['author']!==_0x1a5d90&&_0x48f199['discard']();const _0x4391b5=_0x48f199['data']['commandParams'];_0x189b8a=_0x4391b5[0x0]['tableWidth'],_0x1b4889=_0x4391b5[0x0]['columnWidths'];break;}}_0x51a89a({'table':_0xa397af,'tableWidth':_0x3d928e,'columnWidths':_0x3d191e}),_0x23fbbe['markBlockFormat'](_0xa397af,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x189b8a,'columnWidths':_0x1b4889}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x212459){if('formatBlock'!=_0x212459['type']&&'formatInline'!=_0x212459['type'])return;const {data:_0x534036}=_0x212459;if(_0x534036&&'resizeTable'===_0x534036['formatGroupId']){const _0x43b7cc='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x43b7cc)};}}}class xt extends _0x496248{['afterInit'](){const _0x1893b7=this['editor'];_0x1893b7['plugins']['has']('Template')&&_0x1893b7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x496248{['afterInit'](){const _0x29a46d=this['editor'];if(!_0x29a46d['commands']['get']('insertTableOfContents'))return;_0x29a46d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x13de1b=_0x29a46d['plugins']['get']('TrackChangesEditing'),_0x5353db=_0x29a46d['locale'];_0x13de1b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1b8343=>o(_0x5353db,'ELEMENT_TABLE_OF_CONTENTS',_0x1b8343));}}class Rt extends _0x496248{['afterInit'](){const _0x13b864=this['editor'];if(!_0x13b864['plugins']['has']('Title'))return;const _0x5f4a3d=_0x13b864['plugins']['get']('TrackChangesEditing');_0x5f4a3d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x13b864['locale'],'ELEMENT_TITLE')),_0x13b864['model']['document']['registerPostFixer'](_0x3319ff=>{let _0x3627ac=!0x1;const _0x28eb56=Array['from'](_0x13b864['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23bb4b,data:_0x4eec79}of _0x28eb56){const {group:_0x19e529}=_0x5f4a3d['_splitMarkerName'](_0x23bb4b);if('suggestion'!==_0x19e529||!_0x4eec79['newRange'])continue;const _0x523d08=_0x4eec79['newRange'],_0x526d30=_0x523d08['end']['nodeBefore'];if(!_0x526d30||!_0x526d30['is']('element','title-content'))continue;if(!_0x523d08['start']['isTouching'](_0x523d08['end']))continue;const _0x18e15e=_0x13b864['model']['schema']['getNearestSelectionRange'](_0x523d08['end'],'forward');if(_0x18e15e&&_0x18e15e['isCollapsed']){const _0x5ad7bb=_0x3319ff['createRange'](_0x523d08['start'],_0x18e15e['start']);_0x5ad7bb['isEqual'](_0x523d08)||(_0x3319ff['updateMarker'](_0x23bb4b,{'range':_0x5ad7bb}),_0x3627ac=!0x0);}_0x3627ac||(_0x3319ff['removeMarker'](_0x23bb4b),_0x3627ac=!0x0);}return _0x3627ac;});}}class Tt extends _0x496248{['afterInit'](){const _0x5826c2=this['editor'],_0x4f6fcf=_0x5826c2['plugins']['get']('TrackChangesEditing');_0x5826c2['plugins']['has']('Uploadcare')&&(_0x4f6fcf['enableCommand']('uploadcare'),_0x5826c2['plugins']['has']('UploadcareImageEdit')&&(_0x4f6fcf['enableCommand']('uploadcareImageEdit'),_0x4f6fcf['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4f6fcf['descriptionFactory']['registerDescriptionCallback'](_0x19774a=>{if('attribute'!=_0x19774a['type'])return;const {data:_0x170b47}=_0x19774a;return _0x170b47&&'uploadcareImageId'==_0x170b47['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x496248{['afterInit'](){const _0x3e6e6f=this['editor'],_0x2d0af3=_0x3e6e6f['plugins']['get']('TrackChangesEditing');_0x3e6e6f['plugins']['has']('UndoEditing')&&(_0x2d0af3['enableCommand']('undo'),_0x2d0af3['enableCommand']('redo'));}}class Ut extends _0x496248{static get['requires'](){return[Nt];}['afterInit'](){const _0x1befe7=this['editor'];if(!_0x1befe7['plugins']['has']('TableCaptionEditing'))return;_0x1befe7['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x496248{['tableProperties'];['tableCellProperties'];constructor(_0xfcb5a8){super(_0xfcb5a8),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 _0x5f2b1c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x50fc18 of this['tableProperties'])_0x5f2b1c['enableCommand'](_0x50fc18,(_0x4523d2,_0x5a9156)=>{const _0x4a6a48=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x50fc18,[_0x4a6a48],this['tableProperties'],'tableProperties',_0x4523d2,_0x5a9156);});_0x5f2b1c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5f2b1c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5f2b1c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x362d88,_0x49205c)=>this['handleDiscardAction'](this['tableProperties'],_0x362d88,_0x49205c)),_0x5f2b1c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x19b3d9 of this['tableCellProperties'])_0x5f2b1c['enableCommand'](_0x19b3d9,(_0x19ac01,_0x496fa2)=>{const _0x44fb8d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x19b3d9,_0x44fb8d,this['tableCellProperties'],'tableCellProperties',_0x19ac01,_0x496fa2);});_0x5f2b1c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5f2b1c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5f2b1c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2d7e96,_0x5252d6)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2d7e96,_0x5252d6)),_0x5f2b1c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5f2b1c['descriptionFactory']['registerDescriptionCallback'](_0x2b8d01=>this['handleSuggestionDescription'](_0x2b8d01)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x583c09,_0x42b530,_0x20f2d0,_0x4642fe,_0x286060,_0x569b58){const _0x5015ee=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x569b58['batch'],()=>{for(const _0x326a09 of _0x42b530){if(this['_getSuggestion'](_0x326a09,_0x4642fe))_0x286060(_0x569b58);else{const _0x5bca69={};for(const _0x98ca0b of _0x20f2d0){const _0x53a87c=_0x326a09['getAttribute'](_0x98ca0b);void 0x0!==_0x53a87c&&(_0x5bca69[_0x98ca0b]=_0x53a87c);}_0x286060(_0x569b58),_0x5015ee['markBlockFormat'](_0x326a09,{'commandParams':[_0x5bca69]},[],_0x4642fe);}}});}['handleDiscardAction'](_0x252cf2,_0x44c0d1,_0x343539){const _0x26afb2=_0x44c0d1[0x0]['start']['nodeAfter'],_0x59d2cc=_0x343539['commandParams'][0x0];this['editor']['model']['change'](_0x50b608=>{for(const _0x159ef7 of _0x252cf2)void 0x0!==_0x59d2cc[_0x159ef7]?_0x50b608['setAttribute'](_0x159ef7,_0x59d2cc[_0x159ef7],_0x26afb2):_0x50b608['removeAttribute'](_0x159ef7,_0x26afb2);});}['handleSuggestionDescription'](_0x5452d5){if(_0x5452d5['data'])switch(_0x5452d5['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'](_0x173c4e,_0x455321){const _0x805d97=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2a0843 of _0x805d97['getSuggestions']({'skipNotAttached':!0x0})){const _0x361b03=_0x2a0843['getContainedElement']();if(_0x2a0843['subType']===_0x455321&&_0x361b03===_0x173c4e)return _0x2a0843;}return null;}['_registerTablePropertiesAttributes'](){const _0x79edba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a3540=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3e42a6 of _0x4a3540){const _0x2f3f3b=_0x3e42a6['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x79edba['descriptionFactory']['registerAttributeLabel'](_0x3e42a6,o(this['editor']['locale'],'FORMAT_'+_0x2f3f3b));}}}class Ft extends _0x496248{['afterInit'](){const _0xc79b5c=this['editor'];if(!_0xc79b5c['plugins']['has']('LineHeight'))return;const _0x31da88=_0xc79b5c['plugins']['get']('TrackChangesEditing'),_0x239899=_0xc79b5c['locale'];_0x31da88['enableDefaultAttributesIntegration']('lineHeight'),_0x31da88['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x239899,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x496248{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x195d02,_0x3c65e5,_0x50f5fc,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(_0x170a82){super(_0x170a82),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x362182,_0x31c571,_0x764e39,_0x50892e)=>{this['_model']['change'](()=>{for(const _0x58bb23 of[..._0x50892e,..._0x764e39])this['_model']['markers']['has'](_0x58bb23)&&_0x170a82['editing']['reconvertMarker'](_0x58bb23);});}),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']=_0x170a82['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x170a82['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x170a82['config']['get']('trackChanges.trackFormatChanges'),_0x170a82['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x170a82['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x170a82,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1138fd=this['editor'];_0x1138fd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1322a4,{writer:_0x3ff1da})=>{let _0x2e175f='suggestion:'+_0x1322a4['getAttribute']('suggestion-type')+':'+_0x1322a4['getAttribute']('id');return _0x1322a4['getAttribute']('marker-count')&&(_0x2e175f+=':'+_0x1322a4['getAttribute']('marker-count')),_0x3ff1da['createElement']('$marker',{'data-name':_0x2e175f});}}),_0x1138fd['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1138fd['model']['document']['registerPostFixer'](_0x164d13=>{let _0x35f6a1=!0x1;const _0x1c36ec=Array['from'](_0x1138fd['model']['document']['differ']['getChangedMarkers']()),_0x34bea3=new Set();for(const {name:_0x550484,data:_0x3dd939}of _0x1c36ec){const {group:_0x5e66b5,type:_0x35fa82,subType:_0x3461bf,id:_0x5f012a}=this['_splitMarkerName'](_0x550484);if('suggestion'!==_0x5e66b5)continue;const _0x8e674e=_0x3461bf?'suggestion:'+_0x35fa82+':'+_0x3461bf+':'+_0x5f012a:'suggestion:'+_0x35fa82+':'+_0x5f012a,_0x50444a=_0x1138fd['model']['markers']['getMarkersGroup'](_0x8e674e),_0x4a7ae1=_0x1138fd['model']['markers']['get'](_0x550484),_0x17d57d=this['_suggestions']['get'](_0x5f012a);if(null!=_0x3dd939['newRange']){'formatInline'==_0x35fa82&&(_0x35f6a1=_0x35f6a1||Wt(_0x3dd939['newRange'],_0x550484,_0x164d13,_0x1138fd['model']['schema']));const _0x29a5f2='attribute'==_0x35fa82&&this['_isBlockAttribute'](_0x3461bf['split']('|')[0x0]),_0x48c402='attribute'==_0x35fa82&&this['_isInlineAttribute'](_0x3461bf['split']('|')[0x0]);if(_0x3dd939['newRange']['isCollapsed']||'$graveyard'==_0x3dd939['newRange']['root']['rootName']||'formatBlock'==_0x35fa82&&!Qt(_0x3dd939['newRange'])||_0x29a5f2&&!Qt(_0x3dd939['newRange'])||_0x48c402&&Xt(_0x3dd939['newRange'])||'deletion'==_0x35fa82&&Xt(_0x3dd939['newRange'])||_0x4a7ae1&&Yt(_0x4a7ae1,_0x50444a))_0x164d13['removeMarker'](_0x550484),_0x35f6a1=!0x0;else{if(!_0x17d57d||!_0x17d57d['isInContent'])continue;if(_0x3dd939['newRange']&&_0x3dd939['oldRange']&&_0x3dd939['newRange']['isEqual'](_0x3dd939['oldRange']))continue;_0x34bea3['add'](_0x17d57d);}}}return _0x34bea3['size']>0x0&&(_0x35f6a1=!!this['_joinWithAdjacentSuggestions'](_0x34bea3)||_0x35f6a1),_0x35f6a1;}),_0x1138fd['model']['document']['registerPostFixer'](_0x10cf0c=>{let _0xd3097=!0x1;for(const _0x16ac37 of _0x1138fd['model']['document']['differ']['getChanges']())if('insert'==_0x16ac37['type'])for(const _0x85edfc of this['_suggestions']['values']()){if(_0x85edfc['isMultiRange']||!_0x85edfc['isInContent'])continue;const _0x22b33a='formatBlock'==_0x85edfc['type'],_0x57a408=this['_getAttributeKey'](_0x85edfc),_0x352483=_0x57a408&&this['_isBlockAttribute'](_0x57a408);if(!_0x22b33a&&!_0x352483)continue;const _0x13493d=_0x85edfc['getFirstRange']();if(_0x13493d['start']['parent']!=_0x13493d['end']['parent']&&!_0x13493d['end']['isAtEnd']){const _0x4fc02f=_0x1138fd['model']['createPositionAt'](_0x13493d['start']['nodeAfter'],'end'),_0x28ecec=_0x1138fd['model']['createRange'](_0x13493d['start'],_0x4fc02f);_0x10cf0c['updateMarker'](_0x85edfc['getFirstMarker'](),{'range':_0x28ecec}),_0xd3097=!0x0;}}return _0xd3097;}),_0x1138fd['model']['document']['registerPostFixer'](_0x1474b5=>this['_processAttributeChanges'](_0x1474b5)),_0x1138fd['model']['document']['registerPostFixer'](_0x104d37=>!_0x104d37['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x104d37)),_0x1138fd['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1138fd['model']['document']['on']('change:data',(_0x5c2a47,_0x38b966)=>{if(!_0x38b966['isLocal']||_0x38b966['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xfe7345=_0x1138fd['model']['document']['differ']['getChanges']();if(0x0==_0xfe7345['length'])return;const _0x3e52a8=[],_0x509e13=_0xfe7345['filter'](_0x40166d=>'attribute'==_0x40166d['type']),_0x8bdf3c=_0xfe7345['filter'](_0x553196=>'insert'==_0x553196['type']&&'$text'!=_0x553196['name']);for(const _0x4960a6 of _0x509e13)this['_isRegisteredAttribute'](_0x4960a6['attributeKey'])&&_0x3e52a8['push']({'key':_0x4960a6['attributeKey'],'newValue':_0x4960a6['attributeNewValue'],'oldValue':_0x4960a6['attributeOldValue'],'range':Zt(_0x4960a6['range'],_0x1138fd['model'])});for(const _0x2b1dd1 of _0x8bdf3c){if('rename'!=_0x2b1dd1['action']&&'refresh'!=_0x2b1dd1['action'])continue;const _0x5a62cb=tn(_0x2b1dd1['position']['nodeAfter'],_0x1138fd['model']),_0x2c9c9d=_0x2b1dd1['before'];'rename'==_0x2b1dd1['action']&&_0x3e52a8['push']({'key':m,'newValue':_0x2b1dd1['name'],'oldValue':_0x2c9c9d['name'],'range':_0x5a62cb});for(const [_0x572c87,_0x34c54c]of _0x2c9c9d['attributes']){if(!this['_isRegisteredAttribute'](_0x572c87))continue;const _0x522dc6=_0x2b1dd1['attributes']['get'](_0x572c87);_0x34c54c!==_0x522dc6&&_0x3e52a8['push']({'key':_0x572c87,'newValue':_0x522dc6,'oldValue':_0x34c54c,'range':_0x5a62cb});}for(const [_0x2db97e,_0x10ee6e]of _0x2b1dd1['attributes'])this['_isRegisteredAttribute'](_0x2db97e)&&(_0x2c9c9d['attributes']['has'](_0x2db97e)||_0x3e52a8['push']({'key':_0x2db97e,'newValue':_0x10ee6e,'oldValue':null,'range':_0x5a62cb}));}0x0!=_0x3e52a8['length']&&_0x1138fd['model']['enqueueChange'](_0x38b966,_0x582965=>{const _0x989ab8=_0x59376e();for(const {range:_0x2fd114,key:_0x4fbaf3,oldValue:_0x3aa4c2,newValue:_0x4754bf}of _0x3e52a8)this['markAttributeChange'](_0x2fd114,_0x4fbaf3,_0x3aa4c2,_0x4754bf,{'groupId':_0x989ab8});this['_reduceExistingSuggestions'](_0x582965,_0x3e52a8);});},{'priority':'lowest'}),_0x1138fd['model']['markers']['on']('update:suggestion',(_0x788654,_0x29554d,_0x4a36e4)=>{if(null==_0x4a36e4){const {id:_0x277638}=this['_splitMarkerName'](_0x29554d['name']),_0x22b719=this['_suggestions']['get'](_0x277638);_0x22b719&&_0x22b719['addMarkerName'](_0x29554d['name']);}}),_0x1138fd['model']['document']['on']('change:data',()=>{const _0x4e7bd3=Array['from'](_0x1138fd['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2d4aa2=>'suggestion'===this['_splitMarkerName'](_0x2d4aa2['name'])['group']);if(0x0===_0x4e7bd3['length'])return;_0x4e7bd3['sort']((_0x48494c,_0x5855ba)=>{const _0x1ef1fe=_0x48494c['data']['oldRange'],_0x51c549=_0x5855ba['data']['oldRange'];return null===_0x1ef1fe&&null===_0x51c549?0x0:null===_0x1ef1fe&&null!==_0x51c549?-0x1:null!==_0x1ef1fe&&null===_0x51c549?0x1:_0x1ef1fe['start']['isBefore'](_0x51c549['start'])?-0x1:0x1;});const _0x40e5ce=new Set(),_0x24c96e=new Set();for(const {name:_0x362de9,data:_0x16c58c}of _0x4e7bd3){const {id:_0x707c39}=this['_splitMarkerName'](_0x362de9);if(null===_0x16c58c['oldRange']){const _0x211218=this['_handleNewSuggestionMarker'](_0x362de9);_0x24c96e['add'](_0x211218);}else{const _0x3985af=this['_suggestions']['get'](_0x707c39);null!==_0x16c58c['newRange']||_0x3985af['isInContent']?(_0x40e5ce['add'](_0x3985af['head']),_0x24c96e['add'](_0x3985af)):this['_removeSuggestion'](_0x3985af);}}_0x24c96e['size']>0x0&&this['_refreshSuggestionsChain'](_0x24c96e);for(const _0x5beb04 of _0x40e5ce)this['fire']('suggestionChanged',_0x5beb04);}),_0x1138fd['model']['on']('applyOperation',(_0x58034d,_0x4aa3d1)=>{const _0x55a273=_0x4aa3d1[0x0];if(!this['_suggestions']['size'])return;if(!_0x55a273['isDocumentOperation'])return;if(_0x55a273['batch']['isUndo']||!_0x55a273['batch']['isLocal'])return;let _0x2ef1a8,_0x2cb2ea;switch(_0x55a273['type']){case'insert':_0x2ef1a8=_0x1138fd['model']['createPositionAt'](_0x55a273['position']),_0x2cb2ea=_0x2ef1a8['getShiftedBy'](_0x55a273['howMany']);break;case'split':_0x2ef1a8=_0x1138fd['model']['createPositionAt'](_0x55a273['splitPosition']),_0x2cb2ea=_0x1138fd['model']['createPositionAt'](_0x55a273['moveTargetPosition']);break;case'move':_0x2ef1a8=_0x1138fd['model']['createPositionAt'](_0x55a273['targetPosition']),_0x2cb2ea=_0x2ef1a8['getShiftedBy'](_0x55a273['howMany']);break;default:return;}const _0xd8c217=_0x1138fd['model']['createRange'](_0x2ef1a8,_0x2cb2ea);_0x1138fd['model']['change'](()=>{for(const {suggestion:_0x226da2,meta:_0xfa25ae}of this['_findSuggestions'](_0xd8c217)){if(_0x226da2['isMultiRange'])continue;if('formatInline'==_0x226da2['type'])continue;const _0x1ce7d1=this['_getAttributeKey'](_0x226da2);if(_0x1ce7d1&&this['_isBlockAttribute'](_0x1ce7d1)&&'split'!=_0x55a273['type'])continue;const _0x28952b=_0x226da2['data']&&_0x226da2['data']['multipleBlocks'];('formatBlock'!=_0x226da2['type']||'split'==_0x55a273['type']&&!_0x28952b)&&(_0xfa25ae['containsRangeInObject']||'insertion'==_0x226da2['type']&&_0xfa25ae['isOwn']||_0x226da2['getFirstRange']()['containsRange'](_0xd8c217)&&this['_breakSuggestionMarker'](_0x226da2,_0x2ef1a8,_0x2cb2ea));}});},{'priority':'lowest'}),_0x1138fd['model']['on']('deleteContent',(_0x1bd979,_0x4027bc)=>{const _0x11920f=_0x4027bc[0x0],_0x27a73f=_0x4027bc[0x1];if(_0x27a73f&&_0x27a73f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x11920f['isCollapsed'])return;const _0x46ead4=_0x1138fd['model']['schema'],{start:_0x55cf49,end:_0x3a9bf2}=_0x11920f['getFirstRange'](),_0x179b66=_0x55cf49['nodeAfter']&&_0x46ead4['isLimit'](_0x55cf49['nodeAfter'])?null:_0x46ead4['getNearestSelectionRange'](_0x55cf49,'forward'),_0xc0fea3=_0x3a9bf2['nodeBefore']&&_0x46ead4['isLimit'](_0x3a9bf2['nodeBefore'])?null:_0x46ead4['getNearestSelectionRange'](_0x3a9bf2,'backward'),_0x4d4331=_0x1138fd['model']['createRange'](_0x179b66?_0x179b66['start']:_0x55cf49,_0xc0fea3?_0xc0fea3['end']:_0x3a9bf2);_0x1138fd['model']['change'](_0x90362d=>{this['markDeletion'](_0x4d4331);const _0x171e9c=_0x1138fd['model']['schema']['getNearestSelectionRange'](_0x4d4331['start']);_0x11920f['is']('documentSelection')?_0x90362d['setSelection'](_0x171e9c):_0x11920f['setTo'](_0x171e9c);}),_0x1bd979['stop']();},{'priority':_0x104c38['normal']+0xa}),_0x1138fd['model']['on']('insertContent',(_0x581bb3,_0x1e06a1)=>{const _0x575fb0=_0x1e06a1[_0x1e06a1['length']-0x1];_0x575fb0&&_0x575fb0['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1138fd['model']['change'](()=>{let _0x1b70f5=_0x1138fd['model']['insertContent'](_0x1e06a1[0x0],_0x1e06a1[0x1],_0x1e06a1[0x2],{'forceDefaultExecution':!0x0});if(!_0x1b70f5)return;_0x581bb3['return']=_0x1b70f5['clone']();const _0x312638=_0x1b70f5['end']['nodeBefore'],_0x214d27=_0x1138fd['model']['schema'];_0x312638&&_0x214d27['isBlock'](_0x312638)&&!_0x214d27['isObject'](_0x312638)&&(_0x1b70f5=_0x1138fd['model']['createRange'](_0x1b70f5['start'],_0x1138fd['model']['createPositionAt'](_0x312638,'end'))),this['markInsertion'](_0x1b70f5);}),_0x581bb3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x30e2ee=new v(_0x1138fd,this['_suggestions']);_0x1138fd['commands']['add']('acceptSuggestion',_0x30e2ee),this['enableCommand']('acceptSuggestion');const _0x72fc99=new D(_0x1138fd,this['_suggestions']);_0x1138fd['commands']['add']('discardSuggestion',_0x72fc99),this['enableCommand']('discardSuggestion'),_0x1138fd['commands']['add']('acceptAllSuggestions',new B(_0x1138fd,_0x30e2ee,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1138fd['commands']['add']('discardAllSuggestions',new B(_0x1138fd,_0x72fc99,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1138fd['commands']['add']('acceptSelectedSuggestions',new O(_0x1138fd,_0x30e2ee,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1138fd['commands']['add']('discardSelectedSuggestions',new O(_0x1138fd,_0x72fc99,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x543eab=_0x1138fd['plugins']['get']('CommentsRepository');this['listenTo'](_0x543eab,'addComment',(_0x21457b,{threadId:_0x3dc940})=>{const _0xe53c51=this['_suggestions']['get'](_0x3dc940);_0xe53c51&&_0xe53c51['commentThread']&&0x1===_0xe53c51['commentThread']['length']&&this['_updateSuggestionData'](_0x3dc940,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x543eab,'removeComment',(_0x5904aa,{threadId:_0x1a1f98})=>{const _0x496cce=this['_suggestions']['get'](_0x1a1f98);_0x496cce&&_0x496cce['commentThread']&&!_0x496cce['commentThread']['length']&&this['_updateSuggestionData'](_0x1a1f98,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x26d69c){const _0x4fd8cb=_0x333389([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]),_0xd60acb=0x3d8d0df,_0x17986b=0x3dfaa1f^_0xd60acb,_0x1fee75=window[_0x333389([0x44,0x61,0x74,0x65])][_0x333389([0x6e,0x6f,0x77])](),_0x30a814=_0x26d69c[_0x333389([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x589431=new window[(_0x333389([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x255d67=>{_0x30a814[_0x333389([0x6f,0x6e,0x63,0x65])](_0x333389([0x72,0x65,0x61,0x64,0x79]),_0x255d67);}),_0x409b35={[_0x333389([0x6b,0x74,0x79])]:_0x333389([0x45,0x43]),[_0x333389([0x75,0x73,0x65])]:_0x333389([0x73,0x69,0x67]),[_0x333389([0x63,0x72,0x76])]:_0x333389([0x50,0x2d,0x32,0x35,0x36]),[_0x333389([0x78])]:_0x333389([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]),[_0x333389([0x79])]:_0x333389([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]),[_0x333389([0x61,0x6c,0x67])]:_0x333389([0x45,0x53,0x32,0x35,0x36])},_0x660e5b=_0x30a814[_0x333389([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x333389([0x67,0x65,0x74])](_0x333389([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1ce366(){let _0x58df31,_0x3e1a4f=null,_0x4cd053=null;try{if(_0x660e5b==_0x333389([0x47,0x50,0x4c]))return _0x333389([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x58df31=_0x5ca902(),!_0x58df31)return _0x333389([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x58df31[_0x333389([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4cd053=_0x31282c(_0x58df31[_0x333389([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x58df31[_0x333389([0x6a,0x74,0x69])])),await _0x4f3ebc()?_0x119995()?_0x268c8f()?_0x333389([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x15fa8c()?(_0x58df31[_0x333389([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x333389([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e1a4f=_0x382e54(_0x333389([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x58df31[_0x333389([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x333389([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e1a4f=_0x382e54(_0x333389([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3fb3ef()):_0x333389([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x333389([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x333389([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x333389([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x268c8f(){const _0x718bd2=[_0x333389([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x333389([0x74,0x72,0x69,0x61,0x6c])][_0x333389([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58df31[_0x333389([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1fee75/0x3e8:0xe10*_0x17986b;return _0x58df31[_0x333389([0x65,0x78,0x70])]<_0x718bd2;}function _0x119995(){const _0x33ab45=_0x58df31[_0x333389([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x33ab45)return!0x1;if(_0x33ab45[_0x333389([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x333389([0x2a])))return!0x0;if(_0x33ab45[_0x333389([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x333389([0x54,0x43])))return!0x0;if(_0x33ab45[_0x333389([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x333389([0x52,0x54,0x43]))){if(_0x4f8966())return!0x0;if(_0x3c6f1d()||_0x1c0753())return!0x0;}return!0x1;}function _0x15fa8c(){const _0x4dc3c5=_0x58df31[_0x333389([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4dc3c5||0x0==_0x4dc3c5[_0x333389([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3c3b54}=new URL(window[_0x333389([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4dc3c5[_0x333389([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c3b54))return!0x0;const _0xdaa924=_0x3c3b54[_0x333389([0x73,0x70,0x6c,0x69,0x74])](_0x333389([0x2e]));return _0x4dc3c5[_0x333389([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33b268=>_0x33b268[_0x333389([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x333389([0x2a])))[_0x333389([0x6d,0x61,0x70])](_0x527a32=>_0x527a32[_0x333389([0x73,0x70,0x6c,0x69,0x74])](_0x333389([0x2e])))[_0x333389([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b083f=>_0x1b083f[_0x333389([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xdaa924[_0x333389([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x333389([0x6d,0x61,0x70])](_0x3683ff=>Array(_0xdaa924[_0x333389([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3683ff[_0x333389([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x333389([0x66,0x69,0x6c,0x6c])](_0x3683ff[0x0]===_0x333389([0x2a])?_0x333389([0x2a]):'')[_0x333389([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3683ff))[_0x333389([0x73,0x6f,0x6d,0x65])](_0x2c97c8=>_0xdaa924[_0x333389([0x65,0x76,0x65,0x72,0x79])]((_0x2d345c,_0x128f48)=>_0x2c97c8[_0x128f48]===_0x2d345c||_0x2c97c8[_0x128f48]===_0x333389([0x2a])));}function _0x3fb3ef(){return _0x3e1a4f&&_0x4cd053?new window[(_0x333389([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x157f2f,_0x502840)=>{_0x3e1a4f[_0x333389([0x74,0x68,0x65,0x6e])](_0x157f2f,_0x502840),_0x4cd053[_0x333389([0x74,0x68,0x65,0x6e])](_0x19a6fc=>{_0x19a6fc!=_0x333389([0x56,0x61,0x6c,0x69,0x64])&&_0x157f2f(_0x19a6fc);},_0x502840);}):_0x3e1a4f||_0x4cd053||_0x333389([0x56,0x61,0x6c,0x69,0x64]);}}function _0x31282c(_0xa39714,_0x190cf8){return new window[(_0x333389([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x440a5=>{if(_0x42b331())return _0x440a5(_0x333389([0x56,0x61,0x6c,0x69,0x64]));_0x497f62(),_0x30a814[_0x333389([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x333389([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4708d4=!0x1;const _0x2d010d=_0x59376e();function _0x420370(_0x2279af){return!!_0x2279af&&(typeof _0x2279af===_0x333389([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2279af===_0x333389([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2279af[_0x333389([0x74,0x68,0x65,0x6e])]===_0x333389([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2279af[_0x333389([0x63,0x61,0x74,0x63,0x68])]===_0x333389([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x22e227(_0x5c0cd8){_0x5bbeef(_0x5c0cd8)[_0x333389([0x74,0x68,0x65,0x6e])](_0x628e6f=>{if(!_0x628e6f||_0x628e6f[_0x333389([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x333389([0x6f,0x6b]))return _0x333389([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x543cca(_0x4d980e(_0x2d010d+_0x190cf8))!=_0x628e6f[_0x333389([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x333389([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x333389([0x56,0x61,0x6c,0x69,0x64]);})[_0x333389([0x74,0x68,0x65,0x6e])](_0x256fe6=>(_0x2b4a57(),_0x256fe6),()=>{const _0x2df930=_0x20ae7a();return null==_0x2df930?(_0x2b4a57(),_0x333389([0x56,0x61,0x6c,0x69,0x64])):_0x333389(_0x1fee75-_0x2df930>(0x27d454df^_0xd60acb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x333389([0x74,0x68,0x65,0x6e])](_0x440a5)[_0x333389([0x63,0x61,0x74,0x63,0x68])](()=>{_0x440a5(_0x333389([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xfcc8ed=0x3ee3e5f^_0xd60acb;function _0x2b4a57(){const _0x2646a3=_0x333389([0x6c,0x6c,0x63,0x74,0x2d])+_0x543cca(_0x4d980e(_0xa39714)),_0x29a5c6=_0x3472b6(_0x543cca(window[_0x333389([0x4d,0x61,0x74,0x68])][_0x333389([0x63,0x65,0x69,0x6c])](_0x1fee75/_0xfcc8ed)));window[_0x333389([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x333389([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2646a3,_0x29a5c6);}function _0x20ae7a(){const _0x38e446=_0x333389([0x6c,0x6c,0x63,0x74,0x2d])+_0x543cca(_0x4d980e(_0xa39714)),_0x5aa109=window[_0x333389([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x333389([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38e446);return _0x5aa109?window[_0x333389([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3472b6(_0x5aa109),0x10)*_0xfcc8ed:null;}function _0x5bbeef(_0x165abb){return new window[(_0x333389([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59ab93,_0x6bbd43)=>{_0x165abb[_0x333389([0x74,0x68,0x65,0x6e])](_0x59ab93,_0x6bbd43),window[_0x333389([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6bbd43,0x3d9041f^_0xd60acb);});}}_0x30a814[_0x333389([0x6f,0x6e])](_0x333389([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e8412,_0x176cb7)=>{if(_0x176cb7[0x0]!=_0xa39714)return _0x440a5(_0x333389([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x176cb7[0x1]={..._0x176cb7[0x1],[_0x333389([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d010d};},{[_0x333389([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x333389([0x68,0x69,0x67,0x68])}),_0x30a814[_0x333389([0x6f,0x6e])](_0x333389([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4e99b1=>{_0x420370(_0x4e99b1[_0x333389([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4708d4=!0x0,_0x22e227(_0x4e99b1[_0x333389([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x333389([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x333389([0x6c,0x6f,0x77])}),_0x589431[_0x333389([0x74,0x68,0x65,0x6e])](()=>{_0x4708d4||_0x440a5(_0x333389([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42b331(){return _0x30a814[_0x333389([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x333389([0x76,0x69,0x65,0x77])][_0x333389([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x333389([0x61,0x75,0x74,0x6f]);}function _0x497f62(){_0x30a814[_0x333389([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x333389([0x76,0x69,0x65,0x77])][_0x333389([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x333389([0x61,0x75,0x74,0x6f]);}}function _0x382e54(_0x3a0213){const _0xe72800=[new window[(_0x333389([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27f7e8=>setTimeout(_0x27f7e8,0x3d1ee13^_0xd60acb)),_0x589431[_0x333389([0x74,0x68,0x65,0x6e])](()=>new window[(_0x333389([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f3f78=>{let _0x1706e2=0x0;_0x30a814[_0x333389([0x6d,0x6f,0x64,0x65,0x6c])][_0x333389([0x6f,0x6e])](_0x333389([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4737fe,_0x4d4bee)=>{_0x4d4bee[0x0][_0x333389([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1706e2++,_0x1706e2==(0x3d8d127^_0xd60acb)&&(_0x5f3f78(),_0x4737fe[_0x333389([0x6f,0x66,0x66])]());});}))];return window[_0x333389([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x333389([0x72,0x61,0x63,0x65])](_0xe72800)[_0x333389([0x74,0x68,0x65,0x6e])](()=>_0x3a0213);}async function _0x4af905(){await _0x589431,_0x30a814[_0x333389([0x6d,0x6f,0x64,0x65,0x6c])][_0x333389([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18d755,_0x30a814[_0x333389([0x6d,0x6f,0x64,0x65,0x6c])][_0x333389([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18d755,_0x30a814[_0x333389([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x333389([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4f8966(){return _0x5d96d5(_0x333389([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x34b3e1(_0x333389([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x333389([0x73,0x74,0x61,0x74,0x65])]==_0x333389([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3c6f1d(){return _0x5d96d5(_0x333389([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 _0x1c0753(){return _0x5d96d5(_0x333389([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2b09c1(_0x4a76c4){const _0x259ec8=_0x1105ba();_0x30a814[_0x259ec8]=_0x333389([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4a76c4,_0x4a76c4!=_0x333389([0x56,0x61,0x6c,0x69,0x64])&&_0x4af905();}function _0x1105ba(){const _0xd3a4d8=window[_0x333389([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x333389([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x333389([0x6e,0x6f,0x77])]())[_0x333389([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x333389([0x2e]),'');let _0x3c1268=_0x333389([0x52]);for(let _0x3cb4cc=0x0;_0x3cb4cc<_0xd3a4d8[_0x333389([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3cb4cc+=0x2){let _0x1444bb=window[_0x333389([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd3a4d8[_0x333389([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3cb4cc,_0x3cb4cc+0x2));_0x1444bb>=_0x4fd8cb[_0x333389([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1444bb-=_0x4fd8cb[_0x333389([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c1268+=_0x4fd8cb[_0x1444bb];}return _0x3c1268;}function _0x5ca902(){const _0x393b04=_0x660e5b[_0x333389([0x73,0x70,0x6c,0x69,0x74])](_0x333389([0x2e]));if(0x3!=_0x393b04[_0x333389([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31c8ca(_0x393b04[0x1]);function _0x31c8ca(_0x4aabdb){const _0x1ae223=_0x2fba1f(_0x4aabdb);return _0x1ae223&&_0x279f2c()?_0x1ae223:null;function _0x279f2c(){const _0x157841=_0x1ae223[_0x333389([0x6a,0x74,0x69])],_0x39d5d0=window[_0x333389([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x157841[_0x333389([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x157841[_0x333389([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x253bc2={..._0x1ae223,[_0x333389([0x6a,0x74,0x69])]:_0x157841[_0x333389([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x157841[_0x333389([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x253bc2[_0x333389([0x76,0x63])],_0x4d980e(_0x253bc2)==_0x39d5d0;}}}async function _0x4f3ebc(){let _0x3bde2c=!0x0;try{const _0x82fbda=_0x660e5b[_0x333389([0x73,0x70,0x6c,0x69,0x74])](_0x333389([0x2e])),[_0x116ed6,_0x2fc092,_0x36045b]=_0x82fbda;return _0x17a690(_0x116ed6),await _0x48845a(_0x116ed6,_0x2fc092,_0x36045b),_0x3bde2c;}catch{return!0x1;}function _0x17a690(_0x5c9c52){const _0x493ac4=_0x2fba1f(_0x5c9c52);_0x493ac4&&_0x493ac4[_0x333389([0x61,0x6c,0x67])]==_0x333389([0x45,0x53,0x32,0x35,0x36])||(_0x3bde2c=!0x1);}async function _0x48845a(_0x2e690c,_0x18e08d,_0x52e6b4){const _0x4de680=window[_0x333389([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x333389([0x66,0x72,0x6f,0x6d])](_0x1bd5a2(_0x52e6b4),_0x493b93=>_0x493b93[_0x333389([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1fc057=new window[(_0x333389([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x333389([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e690c+_0x333389([0x2e])+_0x18e08d),_0x2074e0=window[_0x333389([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x333389([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2074e0)return;const _0xe3783b=await _0x2074e0[_0x333389([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x333389([0x6a,0x77,0x6b]),_0x409b35,{[_0x333389([0x6e,0x61,0x6d,0x65])]:_0x333389([0x45,0x43,0x44,0x53,0x41]),[_0x333389([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x333389([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x333389([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2074e0[_0x333389([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x333389([0x6e,0x61,0x6d,0x65])]:_0x333389([0x45,0x43,0x44,0x53,0x41]),[_0x333389([0x68,0x61,0x73,0x68])]:{[_0x333389([0x6e,0x61,0x6d,0x65])]:_0x333389([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xe3783b,_0x4de680,_0x1fc057)||(_0x3bde2c=!0x1);}}function _0x2fba1f(_0x3b3e5f){return _0x3b3e5f[_0x333389([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x333389([0x65,0x79]))?JSON[_0x333389([0x70,0x61,0x72,0x73,0x65])](_0x1bd5a2(_0x3b3e5f)):null;}function _0x1bd5a2(_0x56cf52){return window[_0x333389([0x61,0x74,0x6f,0x62])](_0x56cf52[_0x333389([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x333389([0x2b]))[_0x333389([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x333389([0x2f])));}function _0x4d980e(_0xabc35a){let _0x3eab3c=0x1505;function _0xf08ccd(_0x4102c2){for(let _0x321c57=0x0;_0x321c57<_0x4102c2[_0x333389([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x321c57++){const _0x156754=_0x4102c2[_0x333389([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x321c57);_0x3eab3c=(_0x3eab3c<<0x5)+_0x3eab3c+_0x156754,_0x3eab3c&=_0x3eab3c;}}function _0x1e30ab(_0x4b3d43){Array[_0x333389([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4b3d43)?_0x4b3d43[_0x333389([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e30ab):_0x4b3d43&&typeof _0x4b3d43==_0x333389([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x333389([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4b3d43)[_0x333389([0x73,0x6f,0x72,0x74])]()[_0x333389([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x594cf5,_0x5ae356])=>{_0xf08ccd(_0x594cf5),_0x1e30ab(_0x5ae356);}):_0xf08ccd(window[_0x333389([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4b3d43));}return _0x1e30ab(_0xabc35a),_0x3eab3c>>>0x0;}function _0x543cca(_0x2375ce){return _0x2375ce[_0x333389([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x333389([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x333389([0x30]));}function _0x3472b6(_0x10eefe){return _0x10eefe[_0x333389([0x73,0x70,0x6c,0x69,0x74])]('')[_0x333389([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x333389([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d96d5(_0x3204f8){return _0x30a814[_0x333389([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x333389([0x68,0x61,0x73])](_0x3204f8);}function _0x34b3e1(_0x234d84){return _0x30a814[_0x333389([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x333389([0x67,0x65,0x74])](_0x234d84);}function _0x18d755(){}function _0x333389(_0x6c6895){return _0x6c6895['map'](_0x2a6b3e=>String['fromCharCode'](_0x2a6b3e))['join']('');}_0x2b09c1(await _0x1ce366());}(this);}set['adapter'](_0x50b79e){if(this['_adapter'])throw new _0x212a92('track-changes-adapter-already-set',this);this['_adapter']=_0x50b79e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xbf2626=!0x1,toJSON:_0x2a0402=!0x1}={}){const _0x5243b6=[];for(const _0x18b01c of this['_suggestions']['values']())_0xbf2626&&!_0x18b01c['isInContent']||_0x5243b6['push'](_0x18b01c);return _0x2a0402?_0x5243b6['map'](_0x1ededc=>_0x1ededc['toJSON']()):_0x5243b6;}['getSuggestion'](_0x1119ad){const _0x5dca1f=this['_suggestions']['get'](_0x1119ad);if(!_0x5dca1f)throw new _0x212a92('track-changes-suggestion-not-found',this);return _0x5dca1f;}['hasSuggestion'](_0x20e9a9){return this['_suggestions']['has'](_0x20e9a9);}['addSuggestionData'](_0x3753d1){const {authorId:_0x234ca5,id:_0x38c56d,originalSuggestionId:_0x10999a,attributes:_0xb1dc08}=_0x3753d1,[_0x2179ba,_0x6c5499]=_0x3753d1['type']['split'](':'),_0x5cba27=this['_suggestions']['get'](_0x38c56d)||this['_createSuggestion'](_0x2179ba,_0x6c5499,_0x38c56d,_0x234ca5,_0xb1dc08,_0x10999a);if(this['_addThreadToSuggestion'](_0x5cba27),this['_checkSuggestionCorrectness'](_0x5cba27,_0x2179ba,_0x6c5499||null,_0x234ca5),_0x5cba27['createdAt']=_0x3753d1['createdAt'],_0x5cba27['_isDataLoaded']=!0x0,_0xb1dc08&&_0xb1dc08['@external']){const _0x4febb9=_0xb1dc08['@external'],_0xd50898=this['_getExternalAuthor'](_0x4febb9['authorName']);_0x5cba27['authoredAt']=_0x4febb9['createdAt'],_0x5cba27['author']=_0xd50898,_0x5cba27['isExternal']=!0x0;}else _0x5cba27['authoredAt']=_0x3753d1['createdAt'];switch(_0x3753d1['data']&&(_0x5cba27['data']=_0x3753d1['data']),_0x3753d1['attributes']&&(_0x5cba27['attributes']=_0x3753d1['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5cba27['_saved']=!0x0),this['_suggestionState']['get'](_0x5cba27)){case'notReady':this['_suggestionState']['set'](_0x5cba27,'dataReady');break;case'markerReady':_0x5cba27['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5cba27])),this['_refreshSuggestionsChain'](new Set([_0x5cba27])),this['_suggestionState']['set'](_0x5cba27,'ready'),this['fire']('suggestionLoaded',_0x5cba27)):this['_suggestionState']['set'](_0x5cba27,'removed');}return _0x5cba27;}['acceptSuggestion'](_0x2fa702){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x41a99e of _0x2fa702['getAllAdjacentSuggestions']())_0x41a99e['accept']();});});}['discardSuggestion'](_0x11d67a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x44818a of _0x11d67a['getAllAdjacentSuggestions']())_0x44818a['discard']();});});}['enableCommand'](_0x513194,_0x6fb519){const _0x1f79ae=this['editor']['commands']['get'](_0x513194);if(!_0x1f79ae)throw new _0x212a92('track-changes-command-not-found',this,{'commandName':_0x513194});if(this['_enabledCommands']['has'](_0x1f79ae))throw new _0x212a92('track-changes-enable-command-twice',this,{'commandName':_0x513194});this['_enabledCommands']['add'](_0x1f79ae),_0x6fb519&&_0x1f79ae['on']('execute',(_0xca809d,_0x4da1a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4da1a['length']>0x0&&_0x4da1a[_0x4da1a['length']-0x1]&&_0x4da1a[_0x4da1a['length']-0x1]['forceDefaultExecution']?_0x4da1a['pop']():(_0xca809d['return']=_0x6fb519((..._0x5d527a)=>_0x1f79ae['execute'](..._0x5d527a,{'forceDefaultExecution':!0x0}),..._0x4da1a),_0xca809d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x939651){let _0x394382,_0x37cdc4;const _0x4f1e78=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x394382=_0x939651();}catch(_0x1afc24){_0x37cdc4=_0x1afc24;}return _0x4f1e78||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x37cdc4&&_0x212a92['rethrowUnexpectedError'](_0x37cdc4,this),_0x394382;}['markInsertion'](_0x2c6eec,_0x58ecb2=null,_0x1a26ff={}){if(_0x2c6eec['isCollapsed'])return null;const _0x169873=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1a26ff['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x15337f,meta:_0x5e1956}of this['_findSuggestions'](_0x2c6eec,'insertion'))if(_0x5e1956['isOwn']){if(!_0x5e1956['isNextTo']){if(_0x5e1956['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x15337f,_0x1a26ff))continue;return _0x15337f;}if(sn(_0x15337f,_0x1a26ff))return _0x15337f;this['_breakSuggestionMarker'](_0x15337f,_0x2c6eec['start'],_0x2c6eec['end']);break;}if(_0x58ecb2==_0x15337f['subType']&&sn(_0x15337f,_0x1a26ff)){const _0x22c061=_0x15337f['getFirstRange']();return _0x22c061['start']['isEqual'](_0x2c6eec['end'])?this['_setSuggestionRange'](_0x15337f,this['_model']['createRange'](_0x2c6eec['start'],_0x22c061['end'])):this['_setSuggestionRange'](_0x15337f,this['_model']['createRange'](_0x22c061['start'],_0x2c6eec['end'])),_0x15337f;}}const _0x58fa38=_0x59376e(),_0x52a249=_0x169873['id'],_0x3c05b6=_0x58ecb2?'insertion:'+_0x58ecb2:'insertion',_0xb274ad=this['_setSuggestionData']({'id':_0x58fa38,'type':_0x3c05b6,'createdAt':new Date(),'authorId':_0x52a249,'attributes':_0x1a26ff});return this['_addSuggestionMarker'](_0x3c05b6,_0x58fa38,_0x52a249,_0x2c6eec),_0xb274ad;}['markMultiRangeInsertion'](_0x439e9f,_0xad2fde='multi',_0x181006={}){const _0x798d3d=this['editor']['plugins']['get']('Users')['me'],_0x5c09bc=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xad2fde,'join');this['_trackingSessionId']&&(_0x181006['trackingSessionId']=this['_trackingSessionId']);for(const _0x4f7f63 of this['getSuggestions']())if(_0x4f7f63['author']['id']==_0x798d3d['id']&&'insertion'==_0x4f7f63['type']&&_0x4f7f63['subType']==_0xad2fde&&sn(_0x4f7f63,_0x181006)&&(_0x5c09bc(_0x4f7f63['getRanges'](),_0x439e9f)||_0x5c09bc(_0x439e9f,_0x4f7f63['getRanges']()))){for(const _0x197b6f of _0x439e9f)_0x4f7f63['addRange'](_0x197b6f);return _0x4f7f63;}for(const {suggestion:_0x4b40c4,meta:_0x27df5c}of this['_findSuggestions'](_0x439e9f,'insertion')){if(!_0x27df5c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x27df5c['containsRangeInObject'])continue;if(!sn(_0x4b40c4,_0x181006))continue;let _0x46e188=!0x0;for(const _0x1b6fd7 of _0x4b40c4['getRanges']())for(const _0xbfff03 of _0x439e9f)if(!_0x1b6fd7['containsRange'](_0xbfff03)){_0x46e188=!0x1;break;}if(_0x46e188)return _0x4b40c4;}const _0x1daa4e=_0x59376e(),_0xdc4f18=_0x798d3d['id'],_0x36eb72='insertion:'+_0xad2fde,_0x2df646=this['_setSuggestionData']({'id':_0x1daa4e,'type':_0x36eb72,'createdAt':new Date(),'authorId':_0xdc4f18,'attributes':_0x181006});for(const _0x2cc426 of _0x439e9f)this['_addSuggestionMarker'](_0x36eb72,_0x1daa4e,_0xdc4f18,_0x2cc426,x['getMultiRangeId']());return _0x2df646;}['markInlineFormat'](_0x9024be,_0x429120,_0x48019c=null,_0x5b7aa6={}){if(_0x48019c=_0x48019c||Ht(_0x429120),_0x9024be['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5b7aa6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x387b05=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x48019c,'accept');return this['forceDefaultExecution'](()=>_0x387b05([_0x9024be],_0x429120,_0x5b7aa6)),null;}const _0x390324=this['editor']['plugins']['get']('Users')['me'],_0x3d3f1d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xfc8a47,meta:_0x27af1b}of this['_findSuggestions'](_0x9024be,'insertion'))_0x27af1b['isOwn']&&!_0x27af1b['isInsideObject']&&_0x3d3f1d['push'](..._0xfc8a47['getRanges']());}const _0x9d0e7=function(_0x191ad9,_0x532726){const _0x38849f=[];for(const _0xdf9eac of _0x532726){const _0x52f1b8=_0x191ad9['getIntersection'](_0xdf9eac);_0x52f1b8&&_0x38849f['push'](_0x52f1b8);}return _0x38849f;}(_0x9024be,_0x3d3f1d),_0x52cdf3=function(_0x2dda3f,_0x46329b){const _0x3c9e6d=[_0x2dda3f];for(const _0x39031a of _0x46329b){let _0x4d34b7=0x0;for(;_0x4d34b7<_0x3c9e6d['length'];){const _0x29db87=_0x3c9e6d[_0x4d34b7]['getDifference'](_0x39031a);_0x3c9e6d['splice'](_0x4d34b7,0x1,..._0x29db87),_0x4d34b7+=_0x29db87['length'];}}return _0x3c9e6d;}(_0x9024be,_0x3d3f1d);_0x9d0e7['length']&&this['_model']['change'](()=>{for(const _0xa27ad0 of _0x9d0e7){const _0x2b4a4f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x48019c,'accept');this['forceDefaultExecution'](()=>_0x2b4a4f([_0xa27ad0],_0x429120,_0x5b7aa6));}});for(const _0x270ff7 of _0x52cdf3){let _0x5bd76c=null,_0x56dc7a=_0x270ff7['start'],_0x31ceb1=_0x270ff7['end'];for(const {suggestion:_0x194d2d,meta:_0x125dc2}of this['_findSuggestions'](_0x270ff7,'formatInline')){if(!_0x125dc2['isOwn'])continue;if(_0x194d2d['subType']!=_0x48019c)continue;if(!sn(_0x194d2d,_0x5b7aa6))continue;const _0x288792=_0x194d2d['getFirstRange']();if(_0x288792['containsRange'](_0x270ff7,!0x0))return null;_0x56dc7a=_0x56dc7a['isBefore'](_0x288792['start'])?_0x56dc7a:_0x288792['start'],_0x31ceb1=_0x31ceb1['isAfter'](_0x288792['end'])?_0x31ceb1:_0x288792['end'],_0x5bd76c?_0x288792['start']['isBefore'](_0x5bd76c['getFirstRange']()['start'])?(_0x5bd76c['removeMarkers'](),_0x5bd76c=_0x194d2d):_0x194d2d['removeMarkers']():_0x5bd76c=_0x194d2d;}const _0x39c947=this['_model']['createRange'](_0x56dc7a,_0x31ceb1);if(_0x5bd76c)this['_setSuggestionRange'](_0x5bd76c,_0x39c947);else{const _0x5a9ec2=_0x59376e(),_0x53fb71=_0x390324['id'];this['_setSuggestionData']({'id':_0x5a9ec2,'type':'formatInline:'+_0x48019c,'data':_0x429120,'createdAt':new Date(),'authorId':_0x53fb71,'attributes':_0x5b7aa6}),this['_addSuggestionMarker']('formatInline:'+_0x48019c,_0x5a9ec2,_0x53fb71,_0x39c947);}}return null;}['markBlockFormat'](_0xdffe52,_0x3e6d4e,_0x2d303e=[],_0x3e432f=null,_0x16edaa={}){_0x3e6d4e['formatGroupId']||(_0x3e6d4e['formatGroupId']=_0x3e6d4e['commandName']),_0x3e6d4e['multipleBlocks']=_0xdffe52['is']('range'),_0x3e432f=_0x3e432f||Ht(_0x3e6d4e);const _0x4383a9=_0x2d303e['map'](_0x206645=>tn(_0x206645,this['_model'])),_0x46c4f8=_0xdffe52['is']('range')?_0xdffe52:tn(_0xdffe52,this['_model']);if(this['_trackingSessionId']&&(_0x16edaa['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x16fd2d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e432f,'accept');return this['forceDefaultExecution'](()=>_0x16fd2d([_0x46c4f8],_0x3e6d4e,_0x16edaa)),null;}_0x4383a9['push'](_0x46c4f8);let _0x1385ea=!0x0;for(const _0x27ba39 of _0x4383a9)if(!this['_rangeIsInLocalUserInsertion'](_0x27ba39)){_0x1385ea=!0x1;break;}if(_0x1385ea&&'always'!==this['_trackFormatChanges']){const _0x3b6d64=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e432f,'accept');return this['forceDefaultExecution'](()=>_0x3b6d64([_0x46c4f8],_0x3e6d4e,_0x16edaa)),null;}let _0x408205=null,_0xf86b7c=_0x46c4f8['start'],_0x571296=_0x46c4f8['end'];for(const {suggestion:_0x34180e,meta:_0x1a76bd}of this['_findSuggestions'](_0x46c4f8,'formatBlock')){if(!_0x1a76bd['isOwn'])continue;if(_0x1a76bd['isNextTo']||_0x1a76bd['containsRangeInObject']||_0x1a76bd['isInsideObject'])continue;if(_0x34180e['data']['formatGroupId']!=_0x3e6d4e['formatGroupId'])continue;if(!sn(_0x34180e,_0x16edaa))continue;const _0x3068b7=_0x34180e['getFirstRange']();if(_0x34180e['subType']==_0x3e432f){if(_0x3068b7['containsRange'](_0x46c4f8,!0x0))return null;_0xf86b7c=_0xf86b7c['isBefore'](_0x3068b7['start'])?_0xf86b7c:_0x3068b7['start'],_0x571296=_0x571296['isAfter'](_0x3068b7['end'])?_0x571296:_0x3068b7['end'],_0x408205?_0x3068b7['start']['isBefore'](_0x408205['getFirstRange']()['start'])?(_0x408205['removeMarkers'](),_0x408205=_0x34180e):_0x34180e['removeMarkers']():_0x408205=_0x34180e;}else{const _0x5a7c2c=_0x46c4f8['getIntersection'](_0x3068b7);this['_cutOutSuggestionMarker'](_0x34180e,_0x5a7c2c);}}const _0x666b46=this['editor']['plugins']['get']('Users')['me'],_0x1a7a6d=_0x59376e(),_0x113b31=_0x666b46['id'];if(_0x408205)return this['_setSuggestionRange'](_0x408205,this['_model']['createRange'](_0xf86b7c,_0x571296)),_0x408205;{const _0xa0d1e=this['_setSuggestionData']({'id':_0x1a7a6d,'type':'formatBlock:'+_0x3e432f,'data':_0x3e6d4e,'createdAt':new Date(),'authorId':_0x113b31,'attributes':_0x16edaa});return this['_addSuggestionMarker']('formatBlock:'+_0x3e432f,_0x1a7a6d,_0x113b31,this['_model']['createRange'](_0xf86b7c,_0x571296)),_0xa0d1e;}}['markMultiRangeBlockFormat'](_0x13effd,_0x2579b1,_0xaecd98=[],_0x59fa25=null,_0x4c4711={}){_0x2579b1['formatGroupId']||(_0x2579b1['formatGroupId']=_0x2579b1['commandName']);const _0x17a048=_0x13effd[0x0];_0x2579b1['multipleBlocks']=_0x17a048['is']('range'),_0x59fa25=_0x59fa25||Ht(_0x2579b1);const _0x4a2f02=_0xaecd98['map'](_0x4e90f9=>tn(_0x4e90f9,this['_model'])),_0x401caf=_0x17a048['is']('range')?_0x13effd:_0x13effd['map'](_0x304cdd=>tn(_0x304cdd,this['_model']));if(this['_trackingSessionId']&&(_0x4c4711['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x19b429=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x59fa25,'accept');return this['forceDefaultExecution'](()=>_0x19b429(_0x401caf,_0x2579b1,_0x4c4711)),null;}_0x4a2f02['push'](..._0x401caf);let _0x54d325=!0x0;for(const _0x5404ae of _0x4a2f02)if(!this['_rangeIsInLocalUserInsertion'](_0x5404ae)){_0x54d325=!0x1;break;}if(_0x54d325&&'always'!==this['_trackFormatChanges']){const _0x1ed521=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x59fa25,'accept');return this['forceDefaultExecution'](()=>_0x1ed521(_0x401caf,_0x2579b1,_0x4c4711)),null;}const _0xc20ed6=this['editor']['plugins']['get']('Users')['me'];for(const _0x3490bc of this['getSuggestions']()){const _0x56ea28=_0x3490bc['data'];if(_0x3490bc['author']['id']!=_0xc20ed6['id'])continue;if('formatBlock'!=_0x3490bc['type']||_0x56ea28['formatGroupId']!=_0x2579b1['formatGroupId'])continue;if(!sn(_0x3490bc,_0x4c4711))continue;const _0x1ba432=_0x3490bc['subType']==_0x59fa25;for(let _0x93c82c=0x0;_0x93c82c<_0x401caf['length'];_0x93c82c++){const _0x355c59=_0x401caf[_0x93c82c];for(const _0x33f48b of _0x3490bc['getMarkers']()){const _0x547fbd=_0x33f48b['getRange']();if(_0x355c59['isEqual'](_0x547fbd)){_0x1ba432?(_0x401caf['splice'](_0x93c82c,0x1),_0x93c82c--):_0x3490bc['removeMarker'](_0x33f48b['name']);break;}}}}if(0x0==_0x401caf['length'])return null;const _0x3e594d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x59fa25,'join');for(const _0x22c4ae of this['getSuggestions']()){const _0x3acb6b=_0x22c4ae['data'];if(_0x22c4ae['author']['id']==_0xc20ed6['id']&&('formatBlock'==_0x22c4ae['type']&&_0x3acb6b['formatGroupId']==_0x2579b1['formatGroupId']&&_0x22c4ae['subType']==_0x59fa25&&sn(_0x22c4ae,_0x4c4711)&&(_0x3e594d(_0x22c4ae['getRanges'](),_0x401caf)||_0x3e594d(_0x401caf,_0x22c4ae['getRanges']())))){for(const _0x3aa6ec of _0x401caf)_0x22c4ae['addRange'](_0x3aa6ec);return _0x22c4ae;}}const _0x2b02b4=_0x59376e(),_0x4de64a=_0xc20ed6['id'],_0x3a19c5='formatBlock:'+_0x59fa25,_0x1c91ba=this['_setSuggestionData']({'id':_0x2b02b4,'type':_0x3a19c5,'data':_0x2579b1,'createdAt':new Date(),'authorId':_0x4de64a,'attributes':_0x4c4711});for(const _0x267b3b of _0x401caf)this['_addSuggestionMarker'](_0x3a19c5,_0x2b02b4,_0x4de64a,_0x267b3b,x['getMultiRangeId']());return _0x1c91ba;}['markDeletion'](_0x3d2e1c,_0x49580f=null,_0x1d5ecf={}){if(_0x3d2e1c['isCollapsed'])return null;const _0x14ec87=this['editor']['plugins']['get']('Users')['me'],_0x355e65=new _0x57b7e9(_0x3d2e1c['start'],_0x3d2e1c['end']);this['_trackingSessionId']&&(_0x1d5ecf['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x34bf0b,meta:_0x3b4cc5}of this['_findSuggestions'](_0x355e65,'insertion'))if(_0x3b4cc5['isOwn']&&!_0x3b4cc5['isNextTo']){if(_0x34bf0b['isMultiRange']){const _0x36f009=_0x34bf0b['getRanges']()['filter'](_0x22f6ff=>'$graveyard'!=_0x22f6ff['root']['rootName']);_0x36f009['every'](_0x440fc6=>_0x355e65['containsRange'](_0x440fc6,!0x0))&&_0x34bf0b['discard']();if(_0x36f009['some'](_0x5cbab6=>_0x5cbab6['containsRange'](_0x355e65,!0x0))){const _0x207e1a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x49580f,'accept');return this['forceDefaultExecution'](()=>_0x207e1a([_0x355e65],null,_0x1d5ecf)),null;}}else{const _0x4e0b51=_0x355e65['getIntersection'](_0x34bf0b['getFirstRange']());null!==_0x4e0b51&&_0x34bf0b['_onDiscard']([_0x4e0b51],null,_0x1d5ecf);}}if(_0x355e65['detach'](),_0x355e65['isCollapsed']||'$graveyard'==_0x355e65['root']['rootName'])return null;let _0x50ee8b=null,_0x27bf34=_0x355e65['start'],_0x282b11=_0x355e65['end'];const _0x3dd6a0=this['_findSuggestions'](_0x355e65,'deletion');for(const {suggestion:_0x2ea921,meta:_0x509799}of _0x3dd6a0){const _0x229716=this['_model']['createRange'](_0x27bf34,_0x282b11);if(_0x509799['isOwn']&&(this['_mergeNestedSuggestions']||!_0x509799['containsRangeInObject']&&!_0x509799['isInsideObject'])){if(_0x2ea921['isMultiRange']){if(!sn(_0x2ea921,_0x1d5ecf))continue;let _0x381841=!0x0;for(const _0x514000 of _0x2ea921['getRanges']()){if(_0x514000['containsRange'](_0x229716,!0x0))return _0x2ea921;_0x229716['containsRange'](_0x514000)||(_0x381841=!0x1);}_0x381841&&_0x2ea921['discard']();}else{const _0x4bc3c9=_0x2ea921['getFirstRange']();if(_0x4bc3c9['containsRange'](_0x229716,!0x0))return _0x2ea921;if(!sn(_0x2ea921,_0x1d5ecf)){_0x229716['containsRange'](_0x4bc3c9)?_0x2ea921['removeMarkers']():_0x4bc3c9['containsPosition'](_0x27bf34)?_0x27bf34=_0x4bc3c9['end']:_0x4bc3c9['containsPosition'](_0x282b11)&&(_0x282b11=_0x4bc3c9['start']);continue;}_0x27bf34=_0x27bf34['isBefore'](_0x4bc3c9['start'])?_0x27bf34:_0x4bc3c9['start'],_0x282b11=_0x282b11['isAfter'](_0x4bc3c9['end'])?_0x282b11:_0x4bc3c9['end'],_0x1d5ecf=Object['assign']({},_0x2ea921['attributes']),_0x50ee8b?_0x4bc3c9['start']['isBefore'](_0x50ee8b['getFirstRange']()['start'])?(_0x50ee8b['removeMarkers'](),_0x50ee8b=_0x2ea921):_0x2ea921['removeMarkers']():_0x50ee8b=_0x2ea921;}}}if(_0x50ee8b)return this['_setSuggestionRange'](_0x50ee8b,this['_model']['createRange'](_0x27bf34,_0x282b11)),_0x50ee8b;{const _0xb9091=_0x59376e(),_0x16a3cf=this['_model']['createRange'](_0x27bf34,_0x282b11),_0x348d17=_0x14ec87['id'],_0x3b66b6=_0x49580f?'deletion:'+_0x49580f:'deletion',_0x2a967c=this['_setSuggestionData']({'id':_0xb9091,'type':_0x3b66b6,'createdAt':new Date(),'authorId':_0x348d17,'attributes':_0x1d5ecf});return this['_addSuggestionMarker'](_0x3b66b6,_0xb9091,_0x348d17,_0x16a3cf),_0x2a967c;}}['markMultiRangeDeletion'](_0x14fe60,_0x498c72='multi',_0x7f6281={}){const _0x5bcbdc=this['editor']['plugins']['get']('Users')['me'],_0x4ac1be=_0x14fe60['map'](_0x3c9f88=>new _0x57b7e9(_0x3c9f88['start'],_0x3c9f88['end'])),_0xa51d64=new Set();this['_trackingSessionId']&&(_0x7f6281['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x9ee7dd,meta:_0x4a5944}of this['_findSuggestions'](_0x4ac1be,'insertion'))_0x4a5944['isOwn']&&!_0x4a5944['isNextTo']&&_0xa51d64['add'](_0x9ee7dd);for(const _0x4c0186 of _0xa51d64)if(_0x4c0186['isMultiRange']){const _0x2ca2e8=_0x4c0186['getRanges']();(!_0x4c0186['attributes']||!_0x4c0186['attributes']['skipNestingCheck'])&&(_0x2ca2e8['every'](_0x349ef4=>_0x4ac1be['some'](_0x50e02a=>_0x50e02a['containsRange'](_0x349ef4,!0x0)))&&_0x4c0186['discard']());if(_0x4ac1be['every'](_0x597ae3=>_0x2ca2e8['some'](_0x1b35c7=>_0x1b35c7['containsRange'](_0x597ae3,!0x0)))){const _0x190870=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x498c72,'accept');return this['forceDefaultExecution'](()=>_0x190870(_0x14fe60,null,_0x7f6281)),null;}}else{const _0x5b5ecd=_0x4c0186['getFirstRange']();_0x4ac1be['some'](_0x4077cd=>_0x4077cd['containsRange'](_0x5b5ecd,!0x0))&&_0x4c0186['discard']();if(_0x4ac1be['every'](_0x4aa9c9=>_0x5b5ecd['containsRange'](_0x4aa9c9,!0x0))){const _0x4209f1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x498c72,'accept');return this['forceDefaultExecution'](()=>_0x4209f1(_0x4ac1be,null,_0x7f6281)),null;}}const _0x1ad44a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x498c72,'join');let _0x190d8c=null;for(const _0x77a3a of this['getSuggestions']())if(_0x77a3a['author']['id']==_0x5bcbdc['id']&&_0x77a3a['isInContent']&&'deletion'==_0x77a3a['type']&&_0x77a3a['subType']==_0x498c72&&sn(_0x77a3a,_0x7f6281)&&(_0x1ad44a(_0x77a3a['getRanges'](),_0x4ac1be)||_0x1ad44a(_0x4ac1be,_0x77a3a['getRanges']()))){if(_0x190d8c){if(_0x77a3a['commentThread']&&_0x77a3a['commentThread']['length'])continue;for(const _0x19e1c2 of _0x77a3a['getRanges']())_0x190d8c['isIntersectingWithRange'](_0x19e1c2)||_0x190d8c['addRange'](_0x19e1c2);_0x77a3a['removeMarkers']();}else{_0x190d8c=_0x77a3a;for(const _0x463af3 of _0x4ac1be)_0x77a3a['isIntersectingWithRange'](_0x463af3)||_0x77a3a['addRange'](_0x463af3);}}if(_0x190d8c)return _0x190d8c;_0xa51d64['clear']();for(const {suggestion:_0x454971,meta:_0x491266}of this['_findSuggestions'](_0x4ac1be,'deletion'))_0x491266['isOwn']&&(this['_mergeNestedSuggestions']||!_0x491266['containsRangeInObject']&&!_0x491266['isInsideObject'])&&sn(_0x454971,_0x7f6281)&&_0xa51d64['add'](_0x454971);for(const _0x46fd37 of _0xa51d64){const _0x41d4fe=_0x46fd37['getRanges']();if(!_0x7f6281||!_0x7f6281['skipNestingCheck']){if(_0x4ac1be['every'](_0xc817e1=>_0x41d4fe['some'](_0x4b62ad=>_0x4b62ad['containsRange'](_0xc817e1,!0x0))))return _0x46fd37;}(!_0x46fd37['attributes']||!_0x46fd37['attributes']['skipNestingCheck'])&&(_0x41d4fe['every'](_0x427f8c=>_0x4ac1be['some'](_0x43b612=>_0x43b612['containsRange'](_0x427f8c,!0x0)))&&_0x46fd37['discard']());}const _0x2f3476=_0x59376e(),_0x2569b2=_0x5bcbdc['id'],_0x18be67='deletion:'+_0x498c72,_0x542c73=this['_setSuggestionData']({'id':_0x2f3476,'type':_0x18be67,'createdAt':new Date(),'authorId':_0x2569b2,'attributes':_0x7f6281});for(const _0x185edb of _0x4ac1be)_0x185edb['detach'](),_0x185edb['isCollapsed']||'$graveyard'==_0x185edb['root']['rootName']||this['_addSuggestionMarker'](_0x18be67,_0x2f3476,_0x2569b2,_0x185edb,x['getMultiRangeId']());return _0x542c73;}['markAttributeChange'](_0x56f045,_0x5ce66e,_0x11445c,_0x40a1f7,_0x4f7e30){if(_0x56f045['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x311d51=this['editor']['plugins']['get']('Users')['me']['id'],_0xd1767b=Array['from'](this['_suggestions']['values']())['filter'](_0x1720ed=>'attribute'==_0x1720ed['type']&&_0x1720ed['data']['key']==_0x5ce66e&&_0x1720ed['isIntersectingWithRange'](_0x56f045));if(this['_trackingSessionId']&&(_0x4f7e30['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1a2df2=this['_findSuggestions'](_0x56f045,'insertion')['filter'](({meta:_0x1857ac})=>_0x1857ac['isOwn']&&!_0x1857ac['isInsideObject']&&!_0x1857ac['isNextTo'])['map'](({suggestion:_0x43379d})=>_0x43379d);_0xd1767b['unshift'](..._0x1a2df2);}const _0x39bbc5=new Map([[_0x56f045,_0x11445c]]);for(const _0x1c1328 of _0xd1767b){const _0x2d2873='attribute'==_0x1c1328['type']?_0x1c1328['data']['oldValue']:void 0x0,_0x278bb7=_0x1c1328['getFirstRange'](),_0x5b110a=Array['from'](_0x39bbc5['keys']())['find'](_0x47e01c=>_0x47e01c['isIntersecting'](_0x278bb7));if(!_0x5b110a)continue;const _0x14f3cc=_0x5b110a['getDifference'](_0x278bb7);this['_isBlockAttribute'](_0x5ce66e)&&'insertion'==_0x1c1328['type']&&0x0!=_0x14f3cc['length']||(_0x39bbc5['delete'](_0x5b110a),_0x14f3cc['forEach'](_0x4e32e3=>{_0x39bbc5['set'](_0x4e32e3,_0x11445c);}),'insertion'!=_0x1c1328['type']&&_0x2d2873!=_0x40a1f7&&_0x39bbc5['set'](_0x5b110a['getIntersection'](_0x278bb7),_0x2d2873));}const _0x111ba6=[];for(const [_0x47ff83,_0x237878]of _0x39bbc5){const _0x4ff306=_0x59376e(),_0x4f6899={'key':_0x5ce66e,'oldValue':_0x237878,'newValue':_0x40a1f7};_0x5ce66e['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':_0x5ce66e});const _0x4be01f=('attribute:'+(_0x5ce66e+'|'+Ht({'newValue':_0x40a1f7})))['substring'](0x0,0x3c),_0x55c071=this['_setSuggestionData']({'id':_0x4ff306,'type':_0x4be01f,'data':_0x4f6899,'createdAt':new Date(),'authorId':_0x311d51,'attributes':_0x4f7e30});_0x111ba6['push'](_0x55c071),this['_addSuggestionMarker'](_0x4be01f,_0x4ff306,_0x311d51,_0x47ff83);}return _0x111ba6;}['enableDefaultAttributesIntegration'](_0x24671c){this['enableCommand'](_0x24671c,(_0x4f9ce6,..._0x2be7ca)=>{this['recordAttributeChanges'](()=>{_0x4f9ce6(..._0x2be7ca);});});}['registerBlockAttribute'](_0x40b35b){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x40b35b);}['registerInlineAttribute'](_0x50d006){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x50d006);}['startTrackingSession'](_0x404833){return this['_trackingSessionId']=void 0x0!==_0x404833?_0x404833:_0x59376e(),this['_trackingSessionId'];}['_getAttributeKey'](_0x266095){return'attribute'==_0x266095['type']?_0x266095['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x4f86ac){if(0x0==_0x4f86ac['length'])return;const _0x23f4da=this['editor'],_0x4eef9f=_0x23f4da['plugins']['get'](_0x50f5fc),_0x4bed6d=[];_0x23f4da['model']['change'](_0x4e2199=>{for(let _0x1ef8c3=0x0;_0x1ef8c3<_0x4f86ac['length'];_0x1ef8c3++){const _0x585664=_0x4f86ac[_0x1ef8c3];if(_0x585664['baseVersion']=_0x23f4da['model']['document']['version'],_0x585664['isDocumentOperation']=!0x0,_0x4eef9f['isMarkedRemoveOperation'](_0x585664)){const _0x5f117a=Lt(_0x585664['newRange'],_0x23f4da['model']);_0x4bed6d['unshift'](_0x57b7e9['fromRange'](_0x5f117a));}else switch(_0x585664['type']){case'rename':{const _0x56c589=_0x585664['oldName'],_0x4c3b73=_0x585664['newName'];if(_0x56c589==_0x4c3b73)break;_0x4e2199['batch']['addOperation'](_0x585664),_0x23f4da['model']['applyOperation'](_0x585664);const _0x161a3c='$elementName',_0x3ce77b=_0x585664['position'],_0xa554e8=_0x23f4da['model']['createRange'](_0x3ce77b,_0x23f4da['model']['createPositionAt'](_0x3ce77b['nodeAfter'],'end'));this['markAttributeChange'](_0xa554e8,_0x161a3c,_0x56c589,_0x4c3b73,{'groupId':_0x59376e()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x17df18=_0x585664['oldValue'],_0xea3214=_0x585664['newValue'];if(_0x17df18==_0xea3214)break;_0x4e2199['batch']['addOperation'](_0x585664),_0x23f4da['model']['applyOperation'](_0x585664);const _0x329404=_0x585664['key'];if(!this['_isRegisteredAttribute'](_0x329404))break;const _0x370ff5=Lt(_0x585664['range'],_0x23f4da['model']);this['markAttributeChange'](_0x370ff5,_0x329404,_0x17df18,_0xea3214,{'groupId':_0x59376e()});break;}case'insert':{_0x4e2199['batch']['addOperation'](_0x585664),_0x23f4da['model']['applyOperation'](_0x585664);if(_0x4f86ac[_0x1ef8c3+0x1]&&'move'==_0x4f86ac[_0x1ef8c3+0x1]['type'])break;const _0x1f88e8=_0x585664['position'],_0x5d01d8=_0x585664['howMany'],_0x14c1bc=Lt(_0x23f4da['model']['createRange'](_0x1f88e8,_0x1f88e8['getShiftedBy'](_0x5d01d8)),_0x23f4da['model']);this['markInsertion'](_0x14c1bc);break;}case'split':{_0x4e2199['batch']['addOperation'](_0x585664),_0x23f4da['model']['applyOperation'](_0x585664);const _0x3efea3=_0x585664['splitPosition'],_0x5d9234=_0x585664['moveTargetPosition'];this['markInsertion'](_0x23f4da['model']['createRange'](_0x3efea3,_0x5d9234));break;}case'move':case'remove':_0x4e2199['batch']['addOperation'](_0x585664),_0x23f4da['model']['applyOperation'](_0x585664);}}for(const _0x3fb829 of _0x4bed6d)_0x3fb829['detach'](),this['markDeletion'](_0x3fb829);});}['_setSuggestionRange'](_0x4c0059,_0x46e6ab){const _0x4354ac=_0x4c0059['getFirstMarker']();this['_model']['change'](_0x4994cc=>{_0x4994cc['updateMarker'](_0x4354ac,{'range':_0x46e6ab});});}['_addThreadToSuggestion'](_0x23af56){const _0x27c2f7=_0x23af56['id'],_0x23b85d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x27c2f7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x23b85d,'threadId':_0x27c2f7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x36eecc=this['_commentsRepository']['getCommentThread'](_0x27c2f7);_0x36eecc['unbind']('isRemovable'),_0x36eecc['isRemovable']=!0x1,_0x23af56['commentThread']=_0x36eecc;}['_checkSuggestionCorrectness'](_0x3fadf2,_0x4fd951,_0xc79e64,_0x7f7045){if(_0x3fadf2['type']!=_0x4fd951||_0x3fadf2['subType']!=_0xc79e64||_0x3fadf2['creator']['id']!=_0x7f7045)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x212a92('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4d4b49,_0x348410){const _0x344135=_0x4d4b49['getFirstRange']();if(_0x348410['isEqual'](_0x344135))_0x4d4b49['removeMarkers']();else{if(_0x344135['containsRange'](_0x348410)){const _0x2695bc=this['_model']['createPositionAt'](_0x348410['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4d4b49,this['_model']['createRange'](_0x344135['start'],_0x2695bc));const _0x5b7e28=_0x59376e(),_0x2962b6=_0x4d4b49['creator']['id'],_0x542f48=_0x4d4b49['type']+':'+_0x4d4b49['subType'];this['_setSuggestionData']({'id':_0x5b7e28,'type':_0x542f48,'createdAt':new Date(),'authorId':_0x2962b6,'data':_0x4d4b49['data'],'attributes':_0x4d4b49['attributes']});const _0xe69bed=this['_model']['createPositionAt'](_0x348410['end']['parent'],'after'),_0x36a583=this['_model']['createRange'](_0xe69bed,_0x344135['end']);this['_addSuggestionMarker'](_0x542f48,_0x5b7e28,_0x2962b6,_0x36a583);}else{if(_0x344135['containsPosition'](_0x348410['start'])){const _0x13e669=this['_model']['createPositionAt'](_0x348410['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4d4b49,this['_model']['createRange'](_0x344135['start'],_0x13e669));}else{const _0x17460b=this['_model']['createPositionAt'](_0x348410['end']['parent'],'after');this['_setSuggestionRange'](_0x4d4b49,this['_model']['createRange'](_0x17460b,_0x344135['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1bf2b7){for(const {suggestion:_0x437610,meta:_0x256870}of this['_findSuggestions'](_0x1bf2b7,'insertion')){if(!_0x256870['isOwn'])continue;const _0x5904e6=_0x437610['getRanges']();for(const _0x41c80e of _0x5904e6)if(!_0x1bf2b7['getDifference'](_0x41c80e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x8a3a71){return this['editor']['plugins']['get']('Users')['getUser'](_0x8a3a71);}['_getExternalAuthor'](_0x59cccb){const _0x35ff4b=this['editor']['plugins']['get']('Users'),_0x2150ae=_0x452107('external:'+_0x59cccb),_0x50aaba=_0x35ff4b['getUser'](_0x2150ae);return _0x50aaba||_0x35ff4b['addUser']({'id':_0x2150ae,'name':_0x59cccb});}['_createSuggestion'](_0x5627b4,_0x1b04cb,_0x2d4191,_0x7cb6c,_0x45dfa8,_0x1f7974){const _0x5dafd1=this['_getAuthorFromId'](_0x7cb6c);if(!_0x5dafd1)throw new _0x212a92('track-changes-user-not-found',this,{'authorId':_0x7cb6c,'suggestionId':_0x2d4191});const _0x27bf78=this['_suggestionFactory']['buildSuggestion'](_0x5627b4,_0x1b04cb,_0x2d4191,_0x5dafd1,_0x45dfa8,_0x3ce709=>{this['_updateSuggestionData'](_0x2d4191,{'attributes':_0x3ce709});const _0x51c983=this['getSuggestion'](_0x2d4191);this['_joinWithAdjacentSuggestions'](new Set([_0x51c983])),this['_refreshSuggestionsChain'](new Set([_0x51c983]));},_0x1f7974);return this['listenTo'](_0x27bf78,'accept',()=>{this['_updateSuggestionData'](_0x2d4191,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x27bf78,'discard',()=>{this['_updateSuggestionData'](_0x2d4191,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2d4191,_0x27bf78),this['_suggestionState']['set'](_0x27bf78,'notReady'),_0x27bf78;}['_splitMarkerName'](_0x383d50){return Gt(_0x383d50);}['_breakSuggestionMarker'](_0x4214df,_0x329d70,_0x1810d1){const _0x1f90ca=_0x4214df['getFirstRange'](),_0x2b47a1=_0x1f90ca['start'],_0x1f59c1=_0x1f90ca['end'];this['_setSuggestionRange'](_0x4214df,this['_model']['createRange'](_0x2b47a1,_0x329d70));const _0xb2e14e=_0x59376e(),_0x57e9f4=_0x4214df['creator']['id'],_0x2495f4=_0x4214df['type']+(_0x4214df['subType']?':'+_0x4214df['subType']:'');this['_setSuggestionData']({'id':_0xb2e14e,'type':_0x2495f4,'createdAt':new Date(),'authorId':_0x57e9f4,'originalSuggestionId':_0x4214df['_originalSuggestionId']||_0x4214df['id'],'attributes':_0x4214df['attributes'],'data':_0x4214df['data']});const _0x383400=this['_getAttributeKey'](_0x4214df);('formatBlock'==_0x4214df['type']||_0x383400&&this['_isBlockAttribute'](_0x383400))&&(_0x1810d1=this['_model']['createPositionBefore'](_0x1810d1['parent'])),this['_addSuggestionMarker'](_0x2495f4,_0xb2e14e,_0x57e9f4,this['_model']['createRange'](_0x1810d1,_0x1f59c1));}['_findSuggestions'](_0x365169,_0x4da040=null){const _0x1e38b5=[],_0xff6f86=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x365169)||(_0x365169=[_0x365169]);for(const _0x324555 of this['getSuggestions']()){if(!_0x324555['isInContent'])continue;if(_0x4da040&&_0x324555['type']!=_0x4da040)continue;let _0x186a56=!0x1;for(const _0x30cff6 of _0x324555['getRanges']()){for(const _0x2afa38 of _0x365169){const _0x19f096=_0x2afa38['start']['isEqual'](_0x30cff6['end'])||_0x2afa38['end']['isEqual'](_0x30cff6['start']);if(_0x19f096||_0x2afa38['getIntersection'](_0x30cff6)){const _0x22ce0f=_0x2afa38['containsRange'](_0x30cff6)&&zt(this['_model']['schema'],_0x30cff6['start'],_0x2afa38),_0x302a5f=_0x30cff6['containsRange'](_0x2afa38)&&zt(this['_model']['schema'],_0x2afa38['start'],_0x30cff6);_0x1e38b5['push']({'suggestion':_0x324555,'meta':{'isOwn':_0xff6f86==_0x324555['author'],'isNextTo':_0x19f096,'isInsideObject':_0x22ce0f,'containsRangeInObject':_0x302a5f}}),_0x186a56=!0x0;break;}}if(_0x186a56)break;}}return _0x1e38b5;}['_addSuggestionMarker'](_0x3da917,_0x1baa8c,_0x1d9fed,_0x5f28ea,_0x1b8946){this['_model']['change'](_0x27211d=>{let _0x1d20df='suggestion:'+_0x3da917+':'+_0x1baa8c+':'+_0x1d9fed;_0x1b8946&&(_0x1d20df=_0x1d20df+':'+_0x1b8946),_0x27211d['addMarker'](_0x1d20df,{'range':_0x5f28ea,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1d002d){const _0x44ce6d=_0x1d002d['previous'],_0x20d875=_0x1d002d['next'];_0x1d002d['previous']=null,_0x1d002d['next']=null,null!=_0x44ce6d&&_0x44ce6d['next']==_0x1d002d&&(_0x44ce6d['next']=_0x20d875),null!=_0x20d875&&_0x20d875['previous']==_0x1d002d&&(_0x20d875['previous']=_0x44ce6d),'ready'==this['_suggestionState']['get'](_0x1d002d)&&(this['_suggestionState']['set'](_0x1d002d,'removed'),this['fire']('suggestionUnloaded',_0x1d002d,_0x44ce6d,_0x20d875));}['_setSuggestionData'](_0x209847){const _0x15dc09=_0x209847['id'],_0x164eaf=this['addSuggestionData'](_0x209847);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x30ab6b=this['editor']['plugins']['get']('PendingActions'),_0x25dae7=_0x164eaf['hasComments'],_0x2e5860=_0x164eaf['subType']?_0x164eaf['type']+':'+_0x164eaf['subType']:_0x164eaf['type'],_0x5414da=this['editor']['locale'],_0x1c8e5f=_0x30ab6b['add'](o(_0x5414da,'PENDING_ACTION_SUGGESTION')),_0x1c1e33={'id':_0x15dc09,'type':_0x2e5860,'hasComments':_0x25dae7,'data':_0x209847['data']||null,'originalSuggestionId':_0x209847['originalSuggestionId']||null,'attributes':_0x164eaf['attributes']};this['_adapter']['addSuggestion'](_0x1c1e33)['then'](_0x239443=>{_0x164eaf['_saved']=!0x0,_0x30ab6b['remove'](_0x1c8e5f),_0x239443&&_0x239443['createdAt']&&(this['_suggestions']['get'](_0x15dc09)['createdAt']=_0x239443['createdAt']);})['catch'](_0x1fe791=>{throw _0x9e9c33('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x164eaf['discard']();}),_0x164eaf['stopListening'](),this['_suggestions']['delete'](_0x164eaf['id']),this['_suggestionState']['delete'](_0x164eaf),_0x1fe791;});}return _0x164eaf;}['_isBlockAttribute'](_0x47ec92){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x47ec92);}['_isInlineAttribute'](_0x2c53cd){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x2c53cd);}['_updateSuggestionData'](_0x1930a7,_0xab029c){const _0x407255=this['editor']['plugins']['get']('PendingActions'),_0x20e57e=this['getSuggestion'](_0x1930a7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x20e57e['_saved']){const _0x1b1771=_0x407255['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1930a7,_0xab029c)['then'](()=>{_0x407255['remove'](_0x1b1771);});}else _0x20e57e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1930a7,_0xab029c);});}}['_getSuggestionData'](_0x375b7b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x212a92('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x375b7b);}['_handleNewSuggestionMarker'](_0x1f76c8){const {id:_0x482a96,type:_0x2be1d3,subType:_0x57bca9,authorId:_0x4bbdbb}=this['_splitMarkerName'](_0x1f76c8),_0x1fb98c=this['_suggestions']['get'](_0x482a96)||this['_createSuggestion'](_0x2be1d3,_0x57bca9,_0x482a96,_0x4bbdbb,{});switch(this['_checkSuggestionCorrectness'](_0x1fb98c,_0x2be1d3,_0x57bca9,_0x4bbdbb),this['_suggestionState']['get'](_0x1fb98c)){case'notReady':this['_getSuggestionData'](_0x482a96)['then'](_0x44dd7f=>{let _0x22e4ba=Promise['resolve']();_0x44dd7f['hasComments']&&(_0x22e4ba=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x482a96})),_0x22e4ba['then'](()=>{this['addSuggestionData'](_0x44dd7f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1fb98c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x482a96,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1fb98c,'ready'),this['fire']('suggestionLoaded',_0x1fb98c);break;case'ready':this['fire']('suggestionChanged',_0x1fb98c);}return _0x1fb98c['addMarkerName'](_0x1f76c8),_0x1fb98c;}['_refreshSuggestionsChain'](_0x2596e1){const _0x33c81c=Array['from'](_0x2596e1),_0x1d9f86=_0x33c81c['filter'](_0x24ffed=>'attribute'==_0x24ffed['type']);this['_refreshAttributeSuggestionsChain'](_0x1d9f86);const _0x2465e6=_0x33c81c['filter'](_0x19043a=>!_0x19043a['isMultiRange']&&'attribute'!=_0x19043a['type']),_0x3c4034=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24bd06=>!_0x24bd06['isMultiRange']&&'attribute'!=_0x24bd06['type']),_0x404633=_0x3c4034['filter'](_0x41fe86=>!_0x2596e1['has'](_0x41fe86)),_0x1056bf=new Map(_0x3c4034['map'](_0x47aae1=>[_0x47aae1,this['_suggestionFactory']['getSuggestionCallback'](_0x47aae1['type'],_0x47aae1['subType'],'chain')])),_0x516c9f=new Map(_0x3c4034['map'](_0x5afa47=>[_0x5afa47,_0x5afa47['getFirstRange']()])),_0xaa091c=new Set(),_0xfe938b=new Set();for(let _0x199d2c=0x0;_0x199d2c<_0x2465e6['length'];_0x199d2c++)_0x403392(_0x2465e6[_0x199d2c],_0x2465e6,_0x199d2c+0x1);for(let _0x50bde2=0x0;_0x50bde2<_0x2465e6['length'];_0x50bde2++)_0x403392(_0x2465e6[_0x50bde2],_0x404633,0x0);const _0x267e98=new Set();for(let _0x3b7058=0x0;_0x3b7058<_0x2465e6['length'];_0x3b7058++){const _0x2274af=_0x2465e6[_0x3b7058];!_0xfe938b['has'](_0x2274af)&&_0x2274af['previous']&&(_0x267e98['add'](_0x2274af['previous']),_0x2274af['previous']['next']===_0x2274af&&(_0x2274af['previous']['next']=null),_0x2274af['previous']=null),!_0xaa091c['has'](_0x2274af)&&_0x2274af['next']&&(_0x267e98['add'](_0x2274af['next']),_0x2274af['next']['previous']===_0x2274af&&(_0x2274af['next']['previous']=null),_0x2274af['next']=null);}function _0x403392(_0x174aeb,_0x21d160,_0x13d958){for(let _0x20420b=_0x13d958;_0x20420b<_0x21d160['length'];_0x20420b++){const _0x43d0e3=_0x48b6a6(_0x174aeb,_0x21d160[_0x20420b]);_0x43d0e3&&(_0x43d0e3[0x0]['next']=_0x43d0e3[0x1],_0x43d0e3[0x1]['previous']=_0x43d0e3[0x0],_0xaa091c['add'](_0x43d0e3[0x0]),_0xfe938b['add'](_0x43d0e3[0x1]));}}function _0x48b6a6(_0xd8ce5d,_0x397507){if(_0xd8ce5d['author']['id']!==_0x397507['author']['id'])return null;const _0x588ff2=_0x1056bf['get'](_0xd8ce5d)(_0xd8ce5d,_0x397507,_0x516c9f['get'](_0xd8ce5d),_0x516c9f['get'](_0x397507));if(!_0x588ff2)return null;return _0x1056bf['get'](_0x397507)(_0xd8ce5d,_0x397507,_0x516c9f['get'](_0xd8ce5d),_0x516c9f['get'](_0x397507))?_0x588ff2[0x1]['commentThread']&&_0x588ff2[0x1]['commentThread']['length']?null:_0x588ff2:null;}_0x267e98['size']&&this['_refreshSuggestionsChain'](_0x267e98);}['_refreshAttributeSuggestionsChain'](_0xb03c46){if(0x0==_0xb03c46['length'])return;const _0x2c33ad=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11b1a1=>'attribute'==_0x11b1a1['type']&&_0x11b1a1['_isDataLoaded']),_0x4ec5ef=[],_0x28a63c=new Map();for(const _0xfbe161 of _0x2c33ad){const _0x448137=_0x452107(_0xfbe161['attributes']);_0x28a63c['has'](_0x448137)||(_0x28a63c['set'](_0x448137,_0x4ec5ef['length']),_0x4ec5ef['push']([]));const _0x1bdaba=_0x28a63c['get'](_0x448137);_0x4ec5ef[_0x1bdaba]['push'](_0xfbe161);}!(function(){_0x4ec5ef['sort']((_0x18b8d4,_0x336905)=>{const _0xd8bcd3=_0x18b8d4[0x0]['createdAt'],_0x47213b=_0x336905[0x0]['createdAt'];return _0xd8bcd3==_0x47213b?_0x18b8d4[0x0]['attributes']['groupId']<_0x336905[0x0]['attributes']['groupId']?-0x1:0x1:_0xd8bcd3<_0x47213b?-0x1:0x1;});for(const _0x49ebbf of _0x4ec5ef)_0x49ebbf['sort']((_0x381da5,_0x150cff)=>_0x381da5['id']<_0x150cff['id']?-0x1:0x1);}());for(let _0x17b132=0x0;_0x17b132<_0x4ec5ef['length'];_0x17b132++){if(0x0==_0x4ec5ef[_0x17b132]['length'])continue;const _0x473b88=[];for(let _0x28dc0b=_0x17b132+0x1;_0x28dc0b<_0x4ec5ef['length'];_0x28dc0b++)0x0!=_0x4ec5ef[_0x28dc0b]['length']&&_0x32d334(_0x4ec5ef[_0x17b132],_0x4ec5ef[_0x28dc0b])&&_0x473b88['push'](_0x28dc0b);for(const _0xbed711 of _0x473b88)_0x4ec5ef[_0x17b132]=_0x4ec5ef[_0x17b132]['concat'](_0x4ec5ef[_0xbed711]),_0x4ec5ef[_0xbed711]=[];}for(const _0x3bc779 of _0x4ec5ef)for(let _0x461adc=0x0;_0x461adc<_0x3bc779['length'];_0x461adc++){const _0x19291a=_0x3bc779[_0x461adc+0x1]||null;_0x3bc779[_0x461adc]['next']!==_0x19291a&&(_0x3bc779[_0x461adc]['next']=_0x19291a);}for(const _0x46ba6f of _0x4ec5ef)for(let _0x13198f=0x0;_0x13198f<_0x46ba6f['length'];_0x13198f++){const _0x1d078c=_0x46ba6f[_0x13198f-0x1]||null;_0x46ba6f[_0x13198f]['previous']!==_0x1d078c&&(_0x46ba6f[_0x13198f]['previous']=_0x1d078c);}function _0x32d334(_0x12a8c1,_0x2c95e3){if(_0x12a8c1[0x0]['attributes']['groupId']!==_0x2c95e3[0x0]['attributes']['groupId']&&_0x12a8c1[0x0]['author']!==_0x2c95e3[0x0]['author'])return!0x1;if(!function(_0xd40beb,_0x1419cd){if(!_0xd40beb['hasComments']&&!_0x1419cd['hasComments'])return!0x0;if(_0xd40beb['hasComments']&&_0x1419cd['hasComments'])return!0x1;if(_0xd40beb['hasComments']&&_0x1419cd['createdAt']<_0xd40beb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1419cd['hasComments']&&_0xd40beb['createdAt']<_0x1419cd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x12a8c1[0x0],_0x2c95e3[0x0]))return!0x1;const _0x2865da=Pt(_0x12a8c1[0x0]['attributes'],['groupId','trackingSessionId']),_0x42ab82=Pt(_0x2c95e3[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1d8d0a(_0x2865da,_0x42ab82))return!0x1;if(_0x12a8c1[0x0]['attributes']['groupId']==_0x2c95e3[0x0]['attributes']['groupId'])return!0x0;if(_0x12a8c1[0x0]['attributes']['trackingSessionId']!==_0x2c95e3[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x12a8c1['every'](_0x5db0d4=>_0x2c95e3['some'](_0x2d8fb7=>_0x5db0d4['getFirstRange']()['isEqual'](_0x2d8fb7['getFirstRange']())))&&_0x2c95e3['every'](_0x45b043=>_0x12a8c1['some'](_0x11368b=>_0x45b043['getFirstRange']()['isEqual'](_0x11368b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4ce608){const _0x3d557e=Array['from'](_0x4ce608),_0x47012d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x57dc4e=_0x47012d['filter'](_0x258c94=>!_0x4ce608['has'](_0x258c94)),_0x24a36d=new Map(_0x3d557e['map'](_0x511f49=>[_0x511f49,this['_suggestionFactory']['getSuggestionCallback'](_0x511f49['type'],_0x511f49['subType'],'join')])),_0x1087b5=new Map(_0x47012d['map'](_0x3af2db=>[_0x3af2db,_0x3af2db['getRanges']()]));for(let _0x461b50=0x0;_0x461b50<_0x3d557e['length'];_0x461b50++){if(_0x2cac1b(this,_0x3d557e[_0x461b50],_0x3d557e,_0x461b50+0x1))return!0x0;}for(let _0x35ec4d=0x0;_0x35ec4d<_0x3d557e['length'];_0x35ec4d++){if(_0x2cac1b(this,_0x3d557e[_0x35ec4d],_0x57dc4e,0x0))return!0x0;}return!0x1;function _0x2cac1b(_0x3ed57c,_0x1d8ff8,_0x2c55f7,_0x27644c){for(let _0x3ce189=_0x27644c;_0x3ce189<_0x2c55f7['length'];_0x3ce189++){const _0x1830f1=_0x2c55f7[_0x3ce189];if(_0x1830f1['type']!==_0x1d8ff8['type']||_0x1830f1['author']['id']!==_0x1d8ff8['author']['id']||_0x1830f1['subType']!==_0x1d8ff8['subType'])continue;if(!en(_0x1d8ff8,_0x1830f1))continue;if('attribute'==_0x1d8ff8['type']&&_0x1d8ff8['data']['oldValue']!=_0x1830f1['data']['oldValue'])continue;if('attribute'==_0x1d8ff8['type']&&_0x3ed57c['_isBlockAttribute'](_0x1d8ff8['data']['key']))continue;if('formatBlock'==_0x1d8ff8['type']){const _0x470c7c=_0x3ed57c['editor']['model'],_0x10bc8c=_0x1d8ff8['getContainedElement']();if(_0x10bc8c&&(_0x470c7c['schema']['isObject'](_0x10bc8c)||_0x470c7c['schema']['isLimit'](_0x10bc8c)))continue;}const _0x1efd88=_0x24a36d['get'](_0x1d8ff8),_0x5bba2a=_0x1087b5['get'](_0x1d8ff8),_0x19776b=_0x1087b5['get'](_0x1830f1),_0x5ae68d=_0x1d8ff8['commentThread']&&_0x1d8ff8['commentThread']['length'],_0x351b27=_0x1830f1['commentThread']&&_0x1830f1['commentThread']['length'];if(!_0x5ae68d&&_0x1efd88(_0x19776b,_0x5bba2a))return _0x3ed57c['_joinSuggestions'](_0x1830f1,_0x1d8ff8),_0x1087b5['delete'](_0x1d8ff8),!0x0;if(!_0x351b27&&_0x1efd88(_0x5bba2a,_0x19776b))return _0x3ed57c['_joinSuggestions'](_0x1d8ff8,_0x1830f1),_0x1087b5['delete'](_0x1830f1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x576fd,_0x5630d3){if(_0x576fd['isMultiRange']){for(const _0x222334 of _0x5630d3['getRanges']())_0x576fd['addRange'](_0x222334);}else{const _0x3f4f90=_0x5630d3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x576fd,this['_model']['createRange'](_0x576fd['getFirstRange']()['start'],_0x3f4f90));}_0x5630d3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x379a1e,_0x4ce2fc,_0xf03c0){const _0x5eeefc=_0x379a1e['startsWith']('format')||_0x379a1e['startsWith']('attribute')?'FORMATTING':_0x379a1e['toUpperCase']();return o(this['editor']['locale'],_0x4ce2fc+'_'+_0x5eeefc+'_SUGGESTION_ANNOUNCEMENT',_0xf03c0);}['_initAriaMarkerChangeAnnouncements'](){const _0x229457=this['editor'];if(!_0x229457['ui'])return;const {ariaLiveAnnouncer:_0x11a3eb}=_0x229457['ui'];_0x1b4fb9(this['_model'],({left:_0x516dd6,entered:_0x3bb7ce})=>{for(const _0x461910 of _0x516dd6){const {group:_0x1e9883,type:_0x428d77}=this['_splitMarkerName'](_0x461910['name']);if('suggestion'===_0x1e9883){_0x11a3eb['announce'](this['_getMarkerAnnouncementText'](_0x428d77,'LEAVE'));break;}}for(const _0x51c314 of _0x3bb7ce){const {group:_0x1b0899,type:_0x307dec}=this['_splitMarkerName'](_0x51c314['name']);if('suggestion'===_0x1b0899){_0x11a3eb['announce'](this['_getMarkerAnnouncementText'](_0x307dec,'ENTER',_0x3070f8(_0x3d057f)));break;}}});}['_processAttributeChanges'](_0x5ab058){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2ba2b1=this['editor'],_0x738a56=_0x2ba2b1['model']['document']['differ']['getChanges']();if(0x0==_0x738a56['length'])return!0x1;const _0x1d429f=[],_0x2bc1d9=_0x738a56['filter'](_0x448a4f=>'attribute'==_0x448a4f['type']),_0x47f0db=_0x738a56['filter'](_0x101bf7=>'insert'==_0x101bf7['type']&&'$text'!=_0x101bf7['name']),_0xe5597=_0x738a56['filter'](_0x57d7f1=>'remove'==_0x57d7f1['type']&&'$text'!=_0x57d7f1['name']);for(const _0x52c999 of _0x2bc1d9)_0x1d429f['push']({'key':_0x52c999['attributeKey'],'newValue':_0x52c999['attributeNewValue'],'oldValue':_0x52c999['attributeOldValue'],'range':Zt(_0x52c999['range'],_0x2ba2b1['model'])});for(const _0xcae9fb of _0x47f0db){const _0x2a1752=_0xe5597['find'](_0x14768c=>_0x14768c['position']['isEqual'](_0xcae9fb['position']));_0x2a1752&&_0x1d429f['push']({'key':m,'newValue':_0xcae9fb['name'],'oldValue':_0x2a1752['name'],'range':_0x2ba2b1['model']['createRangeOn'](_0xcae9fb['position']['nodeAfter'])});}return 0x0!=_0x1d429f['length']&&this['_reduceExistingSuggestions'](_0x5ab058,_0x1d429f);}['_processAttributeSuggestions'](_0x2cfc50){let _0x5d40cd=!0x1;const _0x48ac26=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2e41ec=>_0x2e41ec['data']['newRange']&&_0x2e41ec['name']['startsWith']('suggestion:attribute:'));for(const _0x5d2859 of _0x48ac26){const {subType:_0x5b2bad,id:_0x5820bd}=this['_splitMarkerName'](_0x5d2859['name']),_0x326175=_0x5b2bad['split']('|')[0x0];for(const _0x49cb0a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x49cb0a['id']!=_0x5820bd&&'attribute'==_0x49cb0a['type']&&_0x49cb0a['data']&&_0x49cb0a['data']['key']==_0x326175&&_0x49cb0a['getFirstRange']()['isIntersecting'](_0x5d2859['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x49cb0a,_0x5d2859['data']['newRange'],_0x2cfc50),_0x5d40cd=!0x0);}return _0x5d40cd;}['recordAttributeChanges'](_0x2954ad){this['_recordAttributeSuggestions']=!0x0,_0x2954ad();}['_isRegisteredAttribute'](_0x12b1e1){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x12b1e1);}['_reduceExistingSuggestions'](_0x21a761,_0x36679a){if(0x0==_0x36679a['length'])return!0x1;let _0x242aaf=!0x1;for(const _0x20eff6 of _0x36679a){const _0x2c2441=this['_findSuggestions'](_0x20eff6['range'],'attribute')['filter'](_0x307485=>!_0x307485['meta']['isNextTo'])['map'](_0x49eb33=>_0x49eb33['suggestion']),_0x2a84ea=_0x452107({'newValue':_0x20eff6['newValue']});_0x2c2441['filter'](_0xf22468=>{const [_0x4ff55a,_0x256657]=_0xf22468['subType']['split']('|');return _0x4ff55a==_0x20eff6['key']&&_0x256657!=_0x2a84ea;})['forEach'](_0x12a255=>{this['_reduceSuggestionAttributeRange'](_0x12a255,_0x20eff6['range'],_0x21a761),_0x242aaf=!0x0;});}return _0x242aaf;}['_reduceSuggestionAttributeRange'](_0x48013f,_0x4841b8,_0x3c8457){const _0x4e9eba=_0x48013f['getFirstRange']()['getDifference'](_0x4841b8);0x0!==_0x4e9eba['length']?0x1!==_0x4e9eba['length']?this['_breakSuggestionMarker'](_0x48013f,_0x4841b8['start'],_0x4841b8['end']):this['_setSuggestionRange'](_0x48013f,_0x4e9eba[0x0]):_0x3c8457['removeMarker'](_0x48013f['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4a8d13){this['_editor']=_0x4a8d13,this['_model']=_0x4a8d13['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x21d21d,_0x196de6,_0xc89e25,_0x302bbc,_0x33cc62,_0x4cbfc9,_0x2ec48c){return new x(this['_model'],{'type':_0x21d21d,'subType':_0x196de6,'id':_0xc89e25,'originalSuggestionId':_0x2ec48c,'author':_0x302bbc,'creator':_0x302bbc,'attributes':_0x33cc62,'onAttributesChange':_0x4cbfc9,'onAccept':(..._0x5a7106)=>this['getSuggestionCallback'](_0x21d21d,_0x196de6,'accept')(..._0x5a7106),'onDiscard':(..._0x36e808)=>this['getSuggestionCallback'](_0x21d21d,_0x196de6,'discard')(..._0x36e808)});}['registerCustomCallback'](_0x387675,_0x2a3571,_0x10eb85,_0x5b983f){const _0x24fd2d=_0x387675+':'+_0x2a3571+':'+_0x10eb85;this['_customCallbacks']['set'](_0x24fd2d,_0x5b983f);}['getSuggestionCallback'](_0x3c73f4,_0x5a0cd2,_0x47d978){const _0x41fae1=_0x3c73f4+':'+_0x5a0cd2+':'+_0x47d978;return this['_customCallbacks']['get'](_0x41fae1)||this['_defaultCallbacks']['get'](_0x3c73f4+':'+_0x47d978);}['_registerDefaultCallbacks'](){const _0x48661b=()=>!0x1,_0x51dc17=_0x4d4c3f=>{_0x4d4c3f['sort']((_0xa1a5f3,_0x39c9c0)=>_0xa1a5f3['start']['isBefore'](_0x39c9c0['start'])?0x1:-0x1),this['_model']['change'](_0x5de5a8=>{for(const _0x3df16a of _0x4d4c3f){let _0xc2df1f;_0xc2df1f=_0x3df16a['end']['isAtEnd']&&_0x3df16a['end']['parent']==_0x3df16a['start']['nodeAfter']?_0x5de5a8['createSelection'](_0x3df16a['start']['nodeAfter'],'on'):_0x5de5a8['createSelection'](_0x3df16a),this['_model']['deleteContent'](_0xc2df1f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x20a356=(_0x2aa66f,_0xf8599a)=>{_0xf8599a&&this['_model']['change'](_0x393977=>{const {commandName:_0x2a4c66,commandParams:_0x3614ea=[]}=_0xf8599a,_0x343ca7=_0x2aa66f['map'](_0x571fb8=>(Kt(_0x571fb8)&&(_0x571fb8=this['_model']['createRange'](_0x571fb8['end'])),_0x571fb8))['filter'](_0x5cef8d=>'$graveyard'!==_0x5cef8d['root']['rootName']);if(_0x343ca7['length']<0x1)return;const _0x28d773=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1daae1=>_0x57b7e9['fromRange'](_0x1daae1));_0x393977['setSelection'](_0x343ca7);for(const _0x5534f8 of this['_editor']['commands']['commands']())_0x5534f8['refresh']();_0x3614ea['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2a4c66,..._0x3614ea);const _0x3e7414=_0x28d773['filter'](_0x2db761=>'$graveyard'!=_0x2db761['root']['rootName']);_0x3e7414['length']>0x0&&_0x393977['setSelection'](_0x3e7414);for(const _0x1555b0 of _0x28d773)_0x1555b0['detach']();});},_0x3c9023=(_0x3971ff,_0x2ed39e)=>0x1==_0x3971ff['length']&&0x1==_0x2ed39e['length']&&_0x3971ff[0x0]['end']['isEqual'](_0x2ed39e[0x0]['start']),_0x4370b0=(_0x5e31b6,_0x294ac8,_0x13cea5,_0x225329)=>nn(_0x5e31b6,_0x294ac8,_0x13cea5,_0x225329)?[_0x5e31b6,_0x294ac8]:nn(_0x294ac8,_0x5e31b6,_0x225329,_0x13cea5)?[_0x294ac8,_0x5e31b6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x48661b),this['_defaultCallbacks']['set']('insertion:discard',_0x51dc17),this['_defaultCallbacks']['set']('insertion:join',_0x3c9023),this['_defaultCallbacks']['set']('insertion:chain',_0x4370b0),this['_defaultCallbacks']['set']('deletion:accept',_0x51dc17),this['_defaultCallbacks']['set']('deletion:discard',_0x48661b),this['_defaultCallbacks']['set']('deletion:join',_0x3c9023),this['_defaultCallbacks']['set']('deletion:chain',_0x4370b0),this['_defaultCallbacks']['set']('formatInline:accept',_0x20a356),this['_defaultCallbacks']['set']('formatInline:discard',_0x48661b),this['_defaultCallbacks']['set']('formatInline:join',_0x3c9023),this['_defaultCallbacks']['set']('formatInline:chain',_0x48661b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x20a356),this['_defaultCallbacks']['set']('formatBlock:discard',_0x48661b),this['_defaultCallbacks']['set']('formatBlock:join',_0x3c9023),this['_defaultCallbacks']['set']('formatBlock:chain',_0x48661b),this['_defaultCallbacks']['set']('attribute:accept',_0x48661b),this['_defaultCallbacks']['set']('attribute:discard',(_0x2b8cd1,_0x13671d)=>{if(!_0x13671d)return;const _0x516f78=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x589f92=>{if(_0x13671d['key']==m)for(const _0x33e3e9 of _0x2b8cd1){const _0x2945ea=_0x33e3e9['start']['nodeAfter'],_0x3d7ab9=_0x13671d['oldValue'];_0x589f92['rename'](_0x2945ea,_0x3d7ab9);}else{if(_0x516f78['_isBlockAttribute'](_0x13671d['key'])){for(const _0x206d7a of _0x2b8cd1)void 0x0!==_0x13671d['oldValue']?_0x589f92['setAttribute'](_0x13671d['key'],_0x13671d['oldValue'],_0x206d7a['start']['nodeAfter']):_0x589f92['removeAttribute'](_0x13671d['key'],_0x206d7a['start']['nodeAfter']);}else{for(const _0x1dbd90 of _0x2b8cd1)_0x13671d['oldValue']?_0x589f92['setAttribute'](_0x13671d['key'],_0x13671d['oldValue'],_0x1dbd90):_0x589f92['removeAttribute'](_0x13671d['key'],_0x1dbd90);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3c9023);}}function zt(_0x1cacfb,_0xca9c92,_0x200c49){for(const _0x3f2643 of _0xca9c92['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3f2643['root']==_0x3f2643)return!0x1;if(!_0x200c49['containsItem'](_0x3f2643))return!0x1;if(_0x1cacfb['isObject'](_0x3f2643)||_0x1cacfb['isLimit'](_0x3f2643))return!0x0;}return!0x1;}function Kt(_0x44b444){return _0x44b444['end']['parent']==_0x44b444['start']['nodeAfter']&&_0x44b444['end']['isAtStart'];}function Wt(_0x1211ed,_0x3bccf7,_0x5dc25f,_0x2f6cbc){const _0x519fe0=_0x5ce12b=>!_0x5ce12b['item']['is']('$textProxy')&&!_0x2f6cbc['isObject'](_0x5ce12b['item']),_0x453283=_0x1211ed['start']['getLastMatchingPosition'](_0x519fe0),_0x2b72cb=_0x1211ed['end']['getLastMatchingPosition'](_0x519fe0,{'direction':'backward'});return(!_0x1211ed['start']['isEqual'](_0x453283)||!_0x1211ed['end']['isEqual'](_0x2b72cb))&&(_0x453283['isBefore'](_0x2b72cb)?_0x5dc25f['updateMarker'](_0x3bccf7,{'range':_0x5dc25f['createRange'](_0x453283,_0x2b72cb)}):_0x5dc25f['removeMarker'](_0x3bccf7),!0x0);}function Ht(_0x35ab2a){return _0x452107(_0x35ab2a);}function Qt(_0xa81437){const _0xd8f6cf=_0xa81437['start']['nodeAfter'];return _0xd8f6cf&&_0xd8f6cf['is']('element');}function Xt(_0x8856ce){return Kt(_0x8856ce)||function(_0x15ed0b){return _0x15ed0b['start']['parent']==_0x15ed0b['end']['nodeBefore']&&_0x15ed0b['start']['isAtEnd'];}(_0x8856ce);}function Yt(_0x436894,_0x1edf76){try{const _0x5ac5dd=_0x436894['getRange']();for(const _0x2b889f of _0x1edf76)if(_0x436894!==_0x2b889f&&_0x5ac5dd&&_0x5ac5dd['isIntersecting'](_0x2b889f['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x341c1e,_0x5e9763){return null==_0x341c1e['end']['nodeBefore']&&_0x341c1e['end']['parent']==_0x341c1e['start']['nodeAfter']?tn(_0x341c1e['start']['nodeAfter'],_0x5e9763):_0x341c1e;}function tn(_0x419b5d,_0xd87cd7){const _0x3a0ee2=_0xd87cd7['schema']['isObject'](_0x419b5d)||_0xd87cd7['schema']['isSelectable'](_0x419b5d);return _0xd87cd7['createRange'](_0xd87cd7['createPositionAt'](_0x419b5d,'before'),_0x3a0ee2?_0xd87cd7['createPositionAfter'](_0x419b5d):_0xd87cd7['createPositionAt'](_0x419b5d,'end'));}function nn(_0x3a74ac,_0x4edd67,_0x48784a,_0x10a12a){return!!en(_0x3a74ac,_0x4edd67)&&_0x48784a['end']['isEqual'](_0x10a12a['start']);}function en(_0x535225,_0x5a0fad){if(!_0x535225['_isDataLoaded']||!_0x5a0fad['_isDataLoaded'])return!0x1;const _0x5616d4=new Set(Object['keys'](_0x535225['attributes'])),_0x3f3ab4=new Set(Object['keys'](_0x5a0fad['attributes']));if(_0x5616d4['delete']('groupId'),_0x3f3ab4['delete']('groupId'),0x0==_0x5616d4['size']&&0x0==_0x3f3ab4['size'])return!0x0;if(_0x5616d4['size']!=_0x3f3ab4['size'])return!0x1;const _0x1a20f2={..._0x535225['attributes']},_0x462852={..._0x5a0fad['attributes']};return delete _0x1a20f2['groupId'],delete _0x462852['groupId'],JSON['stringify'](_0x1a20f2)==JSON['stringify'](_0x462852);}function sn(_0x5a34da,_0x233740){const _0x11179c=on(_0x5a34da['attributes']),_0x5939fc=on(_0x233740);if(!_0x5a34da['_isDataLoaded'])return!0x1;for(const _0x34331a of Object['keys'](_0x5939fc))if(!_0x1d8d0a(_0x11179c[_0x34331a],_0x5939fc[_0x34331a]))return!0x1;return!0x0;}function on(_0x572fb0){const _0x13b6d8=Object['assign']({},_0x572fb0);return delete _0x13b6d8['skipNestingCheck'],delete _0x13b6d8['tablePasteChainId'],_0x13b6d8;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x1c89c9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3aaab5,_0x45dff3,_0x3fbd01,_0x55f162){super(),this['model']=_0x45dff3,this['view']=_0x3fbd01,this['commentThreadController']=_0x55f162,this['_editor']=_0x3aaab5,this['_acceptCommand']=_0x3aaab5['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3aaab5['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2a5567,_0x35dfdf)=>_0x2a5567||_0x35dfdf),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2dd64d=>_0x2dd64d&&this['_editor']['model']['canEditAt'](_0x45dff3['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x51f66d=>_0x51f66d&&this['_editor']['model']['canEditAt'](_0x45dff3['getRanges']())),this['_pendingAction']=null,_0x3fbd01['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3fbd01,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3fbd01,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3fbd01,'change:isDirty',()=>{_0x3fbd01['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 _0x5e0f81=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5e0f81);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x2c4ff8{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x500a6e,_0x568393,_0x351921,_0x19dc8f){super(_0x500a6e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x8c7488(_0x500a6e,o(_0x500a6e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x568393['authoredAt']),this['bind']('authoredAt')['to'](_0x568393),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',_0x568393,'authoredAt',this,'descriptionParts',(_0x566c41,_0x5c1f93,_0xf7fea5)=>{const _0xee8403=_0xf7fea5['map'](_0x44da19=>ls(_0x44da19['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x566c41-0x1,_0x568393['author']['name'],_0x5c1f93?_0x19dc8f['formatDateTime'](_0x5c1f93):'',new DOMParser()['parseFromString'](_0xee8403,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1c9e8b(),this['focusTracker']=new _0x5d106c(),this['keystrokes']=new _0x5eb925(),this['focusCycler']=new _0x32e4dd({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x248682=>_0x248682['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x568393,this['_localUser']=_0x351921,this['_config']=_0x19dc8f,_0x19dc8f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x35f4c9(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5a551f}=this['_config'];this['commentsListView']=new _0x5a551f(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',_0x3a1c48=>_0x3a1c48+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1db42c,_0x4516c9)=>_0x1db42c||!!_0x4516c9);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x61d4c8}=this['_config'],_0x51f416=new _0x61d4c8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x337544=_0x51f416['commentInputView'];return _0x51f416['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x337544,'value',(_0x3ae5ec,_0x62b7b2,_0xa97f3f)=>!!_0xa97f3f||_0x3ae5ec&&!_0x62b7b2),_0x337544['on']('submit',(_0x232a31,_0x2c23d7)=>{this['fire']('addComment',_0x2c23d7),_0x337544['editor']['setData']('');}),_0x337544['on']('cancel',()=>this['focus']()),_0x337544['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x51f416;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x52672c,_0x2c40d2,_0x4159de,_0x26856f){super(_0x52672c,_0x2c40d2,_0x4159de,_0x26856f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x57e233=>_0x57e233&&_0x57e233[0x0]?_0x57e233[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x584352,_0x4396e6)=>{let _0xa657a0='';for(const _0x35a541 of _0x584352)_0xa657a0+='<p>'+ls(_0x35a541['content'],_0x35a541['color'])+'</p>';return _0x4396e6?_0xa657a0:_0x255c01(_0xa657a0,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x26856f['SuggestionView'](_0x52672c,_0x2c40d2,{'formatDateTime':_0x26856f['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 _0x145d7f=this['bindTemplate'],_0x33d909=[this['suggestionView']];return this['commentsListView']&&_0x33d909['push'](this['commentsListView']),this['commentThreadInputView']&&_0x33d909['push'](this['commentThreadInputView']),_0x33d909['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x145d7f['if']('isActive','ck-suggestion-wrapper--active'),_0x145d7f['to']('type',_0x3144cd=>'ck-suggestion-'+_0x3144cd),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':_0x145d7f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x33d909};}['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 _0x2c4ff8{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1c251e,_0x5f443d,_0x199b80){super(_0x1c251e),this['_model']=_0x5f443d,this['_config']=_0x199b80,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5f443d),this['acceptButton']=this['_createButton'](o(_0x1c251e,'Accept\x20suggestion'),_0x399244,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1c251e,'Discard\x20suggestion'),_0x2d1d52,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x438396(_0x1c251e,_0x5f443d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1c9e8b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5d106c(),this['keystrokes']=new _0x5eb925(),this['focusCycler']=new _0x32e4dd({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1d8590=>_0x1d8590['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2212e0=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2212e0['innerHTML']=this['description'],this['on']('change:description',(_0x1a4c7e,_0x136dfd,_0x1d6590)=>{_0x2212e0['innerHTML']=_0x1d6590;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xa8f69f=this['bindTemplate'],_0x1eb008=[{'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':_0xa8f69f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xa8f69f['to']('authoredAt',_0x2fda2b=>this['_config']['formatDateTime'](_0x2fda2b))}]}]},{'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']&&_0x1eb008['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':_0x1eb008}]};}['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'](_0x1b8af9,_0x1c323f,_0x2a045e,_0x5cb10f,_0x5421e0){const _0x4eafc0=new _0xea2447(this['locale']);return _0x4eafc0['set']({'label':_0x1b8af9,'icon':_0x1c323f,'tooltip':!0x0,'tooltipPosition':_0x5421e0}),_0x4eafc0['extendTemplate']({'attributes':{'class':_0x2a045e}}),_0x4eafc0['on']('execute',()=>{this['fire'](_0x5cb10f,this['_model']['id']);}),_0x4eafc0;}['_setupKeyboardNavigation'](){const _0x2937bd=this['element'];this['keystrokes']['listenTo'](_0x2937bd);for(const _0x40410a of this['focusables'])this['focusTracker']['add'](_0x40410a['element']),this['keystrokes']['listenTo'](_0x40410a['element']);this['keystrokes']['set']('enter',(_0x145259,_0x224600)=>{_0x2937bd===_0x145259['target']&&(this['focusCycler']['focusFirst'](),_0x224600());}),this['keystrokes']['set']('esc',(_0x5bd92a,_0x3200bd)=>{_0x2937bd!==_0x5bd92a['target']&&(this['focus'](),_0x3200bd());});}}class u extends _0x496248{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x195d02,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44455b){super(_0x44455b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x55d13d=this['editor']['config'];_0x55d13d['define']('trackChanges.SuggestionThreadView',fe),_0x55d13d['define']('trackChanges.SuggestionView',we),_0x55d13d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x55d13d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x49aa05,_0x44b046){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x483e6c,_0x2d4a4e]of this['_handleControllerBuffer']){const _0x36d2d9=this['_suggestionToController']['has'](_0x483e6c);_0x36d2d9||_0x2d4a4e?_0x36d2d9&&_0x2d4a4e&&this['_destroyController'](_0x483e6c):this['_initializeController'](_0x483e6c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x49aa05,_0x44b046);}['init'](){const _0x50df6a=this['editor'],_0x5e0e84=_0x50df6a['plugins']['get']('TrackChangesEditing'),_0x4f57fd=_0x50df6a['plugins']['get']('Annotations'),_0x1df73f=_0x50df6a['plugins']['get']('EditorAnnotations'),_0x1e3117=_0x50df6a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1df73f['addSourceCollector'](()=>{const _0x6f524c=[];for(const [_0x25f6b6,_0x5d52ae]of Array['from'](this['_suggestionToController'])){const _0x36150d=_0x25f6b6['getAllAdjacentSuggestions'](),_0x30fa84=[];for(const _0x10308c of _0x36150d){if(!_0x10308c['isInContent'])continue;if(_0x10308c['isMultiRange']){_0x30fa84['push'](..._0x10308c['getRanges']());continue;}const _0x2ad159=_0x10308c['getFirstRange']();if(_0x30fa84['length']>0x0){const _0x4ceaf3=_0x30fa84[0x0]['getJoined'](_0x2ad159);if(_0x4ceaf3){_0x30fa84[0x0]=_0x4ceaf3;continue;}}_0x30fa84['push'](_0x2ad159);}_0x6f524c['push']([_0x5d52ae['view'],_0x30fa84]);}return _0x6f524c;}),this['listenTo'](_0x5e0e84,'suggestionLoaded',(_0x29c00d,_0x5f2f95)=>{this['listenTo'](_0x5f2f95,'change:previous',(_0x40c8da,_0x2815c1,_0x4de08a,_0xb0437a)=>{_0x5f2f95['isInContent']&&(null==_0x4de08a?(this['_updateController'](_0xb0437a['head']),this['_handleSuggestionControllerDelayed'](_0x5f2f95,!0x1)):(this['_updateController'](_0x4de08a['head']),null==_0xb0437a&&this['_handleSuggestionControllerDelayed'](_0x5f2f95,!0x0)));}),null!==_0x5f2f95['previous']?this['_updateController'](_0x5f2f95['head']):this['_handleSuggestionControllerDelayed'](_0x5f2f95,!0x1);}),this['listenTo'](_0x5e0e84,'suggestionUnloaded',(_0x497d02,_0x2bae1f,_0x1342b7)=>{this['stopListening'](_0x2bae1f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2bae1f),this['_suggestionToController']['has'](_0x2bae1f)&&this['_destroyController'](_0x2bae1f),_0x1342b7&&this['_updateController'](_0x1342b7['head']);}),this['listenTo'](_0x5e0e84,'suggestionChanged',(_0xf2500a,_0x4dd144)=>{this['_updateController'](_0x4dd144);}),this['listenTo'](_0x4f57fd,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1e3117,'addComment',(_0x1cfc8c,{threadId:_0x69448,isFromAdapter:_0x140a67})=>{if(_0x140a67||!_0x5e0e84['hasSuggestion'](_0x69448))return;const _0x10072b=_0x5e0e84['getSuggestion'](_0x69448);this['_suggestionToController']['get'](_0x10072b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x573b4b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x460988;for(const _0x135fd0 in _0x573b4b){const _0x163d5d=_0x135fd0,_0x4a8ee2=_0x573b4b[_0x163d5d];if('trackChangesLicenseKeyValid'==_0x4a8ee2||'trackChangesLicenseKeyInvalid'==_0x4a8ee2||'trackChangesLicenseKeyExpired'==_0x4a8ee2||'trackChangesLicenseKeyDomainLimit'==_0x4a8ee2||'trackChangesLicenseKeyNotAllowed'==_0x4a8ee2||'trackChangesLicenseKeyEvaluationLimit'==_0x4a8ee2||'trackChangesLicenseKeyTrialLimit'==_0x4a8ee2||'trackChangesLicenseKeyUsageLimit'==_0x4a8ee2){delete _0x573b4b[_0x163d5d],_0x460988=_0x4a8ee2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x460988&&_0x573b4b['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x460988&&_0x573b4b['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x460988&&_0x573b4b['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x460988&&_0x573b4b['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x460988&&_0x573b4b['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x460988&&_0x573b4b['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x460988&&_0x573b4b['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4da1fb){const _0x5b6f68=this['_suggestionToController']['get'](_0x4da1fb);if(!_0x5b6f68)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x5b6f68['view'])||null;}['getSuggestionForAnnotation'](_0x4258a0){const _0x2136c1=this['_viewToController']['get'](_0x4258a0['innerView']);return _0x2136c1?_0x2136c1['model']:null;}['_refreshActiveMarkers'](){const _0x37e8ae=this['editor']['plugins']['get']('Annotations'),_0x31a510=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc2eb39=Array['from'](_0x37e8ae['activeAnnotations'],_0x295050=>_0x295050['innerView'])['filter'](_0x128fa2=>this['_viewToController']['has'](_0x128fa2)),_0x125734=[];for(const _0xcecbb3 of _0xc2eb39){const _0x23468f=this['_viewToController']['get'](_0xcecbb3)['model']['getAllAdjacentSuggestions']();_0x125734['push'](..._0x23468f['reduce']((_0x1572c2,_0x40ca5f)=>[..._0x1572c2,..._0x40ca5f['getMarkerNames']()],[]));}_0x31a510['activeMarkers']=_0x125734;}['_addUIComponentsToFactory'](){const _0x5b651e=this['editor'],_0x3d2dff=_0x5b651e['locale'],_0xedc9cb=o(_0x3d2dff,'Track\x20changes'),_0x885ea2=new _0x482b72([{'type':'switchbutton','model':new _0x1bf4cc({'withText':!0x0,'isToggleable':!0x0,'label':_0xedc9cb,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1bf4cc({'withText':!0x0,'label':o(_0x3d2dff,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bf4cc({'withText':!0x0,'label':o(_0x3d2dff,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bf4cc({'withText':!0x0,'label':o(_0x3d2dff,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bf4cc({'withText':!0x0,'label':o(_0x3d2dff,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5b651e['plugins']['has']('TrackChangesPreview')&&_0x885ea2['addMany']([{'type':'separator'},{'type':'button','model':new _0x1bf4cc({'withText':!0x0,'label':o(_0x3d2dff,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x706319 of _0x885ea2)if(ke(_0x706319)){const _0x243ba9=_0x5b651e['commands']['get'](_0x706319['model']['commandName']);_0x706319['model']['bind']('isOn','isEnabled')['to'](_0x243ba9,'value','isEnabled');}_0x5b651e['ui']['componentFactory']['add']('trackChanges',_0xf9a06b=>this['_createToolbarButton'](_0xf9a06b,_0x885ea2,_0xedc9cb)),_0x5b651e['ui']['componentFactory']['add']('menuBar:trackChanges',_0xbd6347=>this['_createMenuBarMenu'](_0xbd6347,_0x885ea2,_0xedc9cb));}['_createToolbarButton'](_0x414fc3,_0x53d2c3,_0x116617){const _0x3e1824=_0x36c361(_0x414fc3,_0x2e4bcb),_0xc6e515=this['editor']['commands']['get']('trackChanges');_0x3e1824['buttonView']['set']({'tooltip':_0x116617,'label':_0x116617,'icon':_0x50c6d6}),_0x3e1824['buttonView']['bind']('isOn')['to'](_0xc6e515,'value'),_0x3e1824['buttonView']['on']('execute',()=>{_0xc6e515['execute'](),this['editor']['editing']['view']['focus']();}),_0x1251a3(_0x3e1824,_0x53d2c3,{'role':'menu'});const _0x97c539=[];for(const _0x4d9247 of _0x53d2c3)ke(_0x4d9247)&&_0x97c539['push'](this['editor']['commands']['get'](_0x4d9247['model']['commandName']));const _0xcddfd8=_0x3e1824['buttonView'];return _0xcddfd8['actionView']['unbind']('isEnabled'),_0xcddfd8['arrowView']['unbind']('isEnabled'),_0xcddfd8['actionView']['bind']('isEnabled')['to'](_0xc6e515,'isEnabled'),_0xcddfd8['arrowView']['bind']('isEnabled')['toMany'](_0x97c539,'isEnabled',(..._0x8b2b2e)=>_0x8b2b2e['some'](_0x8de7a=>_0x8de7a)),_0x3e1824['on']('execute',_0x453f89=>{this['editor']['execute'](_0x453f89['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3e1824;}['_createMenuBarMenu'](_0x139b0b,_0x2bc563,_0x9aa4cf){const _0x5db9f8=new _0x370838(_0x139b0b),_0x568c45=this['editor']['commands']['get']('trackChanges');_0x5db9f8['buttonView']['set']({'label':_0x9aa4cf,'icon':_0x50c6d6});const _0x5f357b=new _0x23270c(_0x139b0b);for(const _0x1a5788 of _0x2bc563){if('separator'==_0x1a5788['type']){_0x5f357b['items']['add'](new _0x11f937(_0x139b0b));continue;}const _0x26f6f7=new _0x40472f(_0x139b0b,_0x5db9f8),_0x4c6d26=new _0xab7acc(_0x139b0b),_0x5097a1=_0x1a5788['model'];_0x4c6d26['bind'](...Object['keys'](_0x5097a1))['to'](_0x5097a1),_0x4c6d26['delegate']('execute')['to'](_0x5db9f8),_0x4c6d26['on']('execute',()=>{this['editor']['execute'](_0x5097a1['commandName']),this['editor']['editing']['view']['focus']();}),_0x26f6f7['children']['add'](_0x4c6d26),_0x5f357b['items']['add'](_0x26f6f7);}return _0x5db9f8['bind']('isEnabled')['to'](_0x568c45,'isEnabled'),_0x5db9f8['panelView']['children']['add'](_0x5f357b),_0x5db9f8;}['_initializeController'](_0xa8f62b){const _0x1791fc=this['editor'],_0x397f24=_0x1791fc['config'],_0x30d701=_0x1791fc['plugins']['get']('Annotations'),_0x1ef72d=_0x1791fc['plugins']['get']('CommentsRepository'),_0x78043d=_0x1791fc['plugins']['get']('EditorAnnotations'),_0x37e539=_0x1791fc['plugins']['get'](_0x195d02)['me'],_0x2d8af2=_0x397f24['get']('trackChanges')['SuggestionThreadView'],_0x503c1c=_0x397f24['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2f3803,CommentThreadInputView:_0xacb4dd}=_0x1791fc['plugins']['get']('CommentsUI');let _0x1c62f2,_0xe7c641,_0x5c4c59;this['_annotationViews']['has'](_0xa8f62b['id'])?(_0xe7c641=this['_annotationViews']['get'](_0xa8f62b['id']),_0x1c62f2=_0xe7c641['mainView']):(_0x1c62f2=new _0x2d8af2(_0x1791fc['locale'],_0xa8f62b,_0x37e539,{'disableComments':this['_disableComments'],'editorConfig':{..._0x397f24['get']('comments.editorConfig'),'licenseKey':_0x397f24['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x397f24['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x397f24['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x397f24['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x57d6e6(_0x397f24['get']('locale'),_0x1791fc['locale']),'CommentView':_0x397f24['get']('comments')['CommentView'],'CommentsListView':_0x2f3803,'CommentThreadInputView':_0xacb4dd,'SuggestionView':_0x503c1c}),_0x1c62f2['suggestionView']['acceptButton']['on']('execute',()=>{_0x1791fc['editing']['view']['focus']();}),_0x1c62f2['suggestionView']['discardButton']['on']('execute',()=>{_0x1791fc['editing']['view']['focus']();}),_0xe7c641=_0x30d701['createAnnotationView'](this['editor']['locale'],_0x1c62f2),_0xe7c641['bind']('isDirty')['to'](_0x1c62f2,'isDirty'),_0xe7c641['bind']('length')['to'](_0x1c62f2),_0xe7c641['bind']('type')['to'](_0x1c62f2,'type',_0x18cb3d=>'suggestion-'+_0x18cb3d),_0x1c62f2['on']('escape',()=>{_0x5c4c59['fire']('escape');}),this['_annotationViews']['set'](_0xa8f62b['id'],_0xe7c641));const _0x3d9d8b=_0x1ef72d['createCommentThreadController'](_0xa8f62b['commentThread'],_0x1c62f2),_0xf60ad5=new pe(_0x1791fc,_0xa8f62b,_0x1c62f2,_0x3d9d8b),_0x301fbd=_0xa8f62b['getAllAdjacentSuggestions']()['filter'](_0xc753f=>_0xc753f['isInContent']);_0x1c62f2['descriptionParts']=_0x1791fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x301fbd),this['_suggestionToController']['set'](_0xa8f62b,_0xf60ad5),this['_viewToController']['set'](_0x1c62f2,_0xf60ad5);const _0x1968b4=()=>{const _0x4e26d7=[],_0x1465c4=_0xa8f62b['getAllAdjacentSuggestions']()['filter'](_0x2f0d69=>_0x2f0d69['isInContent']);for(const _0x193fda of _0x1465c4)_0x4e26d7['push'](..._0x193fda['getMarkers']());return _0x1bd8dd(_0x1791fc['editing'],_0x4e26d7);};_0x5c4c59=_0x30d701['createAnnotation']({'view':_0xe7c641,'target':_0x1968b4,'type':()=>'suggestion-'+_0xf60ad5['view']['type'],'isVisible':!!_0x1968b4()}),_0x1ef72d['_bindAnnotationToEditors'](_0x1c62f2,_0x5c4c59),_0x30d701['add'](_0x5c4c59),_0x78043d['registerAnnotation'](_0x5c4c59);}['_destroyController'](_0x206b0f){const _0x912295=this['editor']['plugins']['get']('CommentsRepository'),_0x3ac855=this['editor']['plugins']['get']('Annotations'),_0x322bf0=this['_suggestionToController']['get'](_0x206b0f),_0x2f3749=_0x322bf0['view'],_0x1da7b9=_0x3ac855['getByInnerView'](_0x2f3749);_0x912295['_unbindEditors'](_0x2f3749),_0x1da7b9&&_0x3ac855['remove'](_0x1da7b9),this['_suggestionToController']['delete'](_0x206b0f),this['_viewToController']['delete'](_0x2f3749),_0x322bf0['destroy']();}['_updateController'](_0x3e5b0f){if(!_0x3e5b0f['isInContent']||!this['_suggestionToController']['has'](_0x3e5b0f))return;const _0x2a7470=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41dfb8=this['_suggestionToController']['get'](_0x3e5b0f),_0x35f461=_0x3e5b0f['getAllAdjacentSuggestions']();_0x41dfb8['view']['descriptionParts']=_0x2a7470['descriptionFactory']['getDescriptions'](_0x35f461);}['destroy'](){for(const _0x1ce807 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1ce807);for(const _0x20287d of this['_annotationViews']['values']())_0x20287d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2c1a32){return'model'in _0x2c1a32;}class Ne extends _0x496248{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1354ac){this['editor']['plugins']['get'](d)['adapter']=_0x1354ac;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x201e6e){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x201e6e);}['getSuggestions']({skipNotAttached:_0x8ed264=!0x1,toJSON:_0x177493=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x8ed264,'toJSON':_0x177493});}['getSuggestion'](_0x20934c){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x20934c);}}const p=['Pagination'];class re extends _0x496248{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4ef8b5=this['editor'];if(_0x4ef8b5['config']['define']('trackChangesData.editorCreator',_0x276127=>{const _0x379b28=_0x4ef8b5['model']['document']['getRootNames']()['reduce']((_0xa802d8,_0x8eaf96)=>(_0xa802d8[_0x8eaf96]='',_0xa802d8),{});return _0x4ef8b5['constructor']['create'](_0x379b28,_0x276127);}),'function'!=typeof _0x4ef8b5['config']['get']('trackChangesData')['editorCreator'])throw new _0x212a92('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x24a967){return P(this['editor'],!0x0,_0x24a967);}['getDataWithDiscardedSuggestions'](_0xb759d0){return P(this['editor'],!0x1,_0xb759d0);}}class Fe extends _0x496248{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18eb76){function _0x57740c(_0xac8e8c){return _0xac8e8c['map'](_0x568627=>String['fromCharCode'](_0x568627))['join']('');}super(_0x18eb76),this['result']='end',_0x18eb76[_0x57740c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57740c([0x76,0x69,0x65,0x77])][_0x57740c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x57740c([0x61,0x75,0x74,0x6f]),_0x18eb76[_0x57740c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x57740c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x57740c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x57740c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x57740c([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(_0x4df8f5){return void 0x0!==_0x4df8f5['getRootsAttributes'];}async function P(_0x3ac27a,_0x4a05b0,_0x10d1d4){const _0x1c772e=_0x349bbc(_0x3ac27a,p);_0x1c772e['plugins']['push'](d,Fe),_0x1c772e['rootsAttributes']=De(_0x3ac27a)?_0x3ac27a['getRootsAttributes']():void 0x0;const _0x41ab7a=document['createDocumentFragment'](),_0x37e7b8=_0x3ac27a['config']['get']('trackChangesData')['editorCreator'],_0x368921=await _0x37e7b8(_0x1c772e,()=>function(_0xa9eb54){const _0x5bf7b4=document['createElement']('div');return _0xa9eb54['appendChild'](_0x5bf7b4),_0x5bf7b4;}(_0x41ab7a));!function(_0x51c94a,_0x3e872f){const _0x5eb18b=_0x51c94a['model']['document']['getRootNames']()['reduce']((_0x561123,_0x47ab9b)=>(_0x561123[_0x47ab9b]=_0x51c94a['data']['get']({'rootName':_0x47ab9b}),_0x561123),{}),_0x517512=_0x51c94a['plugins']['get']('Users')['users']['map'](_0x324aa6=>({'id':_0x324aa6['id'],'name':_0x324aa6['name']})),_0x24011a=_0x51c94a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x29e355=_0x51c94a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1b9c9b=_0x3e872f['plugins']['get']('Users'),_0x40038f=_0x3e872f['plugins']['get']('TrackChangesEditing'),_0xa10d69=_0x3e872f['plugins']['get']('CommentsRepository');for(const _0x20de52 of _0xa10d69['getCommentThreads']())_0x20de52['remove']();for(const _0x430cbf of _0x517512)_0x1b9c9b['getUser'](_0x430cbf['id'])||_0x1b9c9b['addUser'](_0x430cbf);_0x1b9c9b['me']||_0x1b9c9b['useAnonymousUser']();for(const _0x46ab74 of _0x29e355)_0xa10d69['addCommentThread'](_0x46ab74);for(const _0x4f037d of _0x24011a)_0x40038f['addSuggestionData'](_0x4f037d);_0x3e872f['data']['set'](_0x5eb18b);}(_0x3ac27a,_0x368921),_0x368921['execute'](_0x4a05b0?'acceptAllSuggestions':'discardAllSuggestions');const _0x293632=De(_0x368921)?_0x368921['getFullData'](_0x10d1d4):_0x368921['data']['get'](_0x10d1d4);return await _0x368921['destroy'](),_0x293632;}class Me extends _0x2c4ff8{['options'];constructor(_0x2d1428,_0x40ec52){super(_0x2d1428),this['options']=_0x40ec52,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'](_0x106040,_0x4fee28){if(!this['element'])return;const _0x263646=[];for(const [_0x50311d,_0xbc58c3]of _0x106040){const _0x27b97f=document['createElement']('div');_0x27b97f['setAttribute']('data-ck-root-name',_0x50311d),_0x27b97f['className']=_0xbc58c3['classes']+'\x20ck-track-changes-preview__root-container',_0x27b97f['innerHTML']=_0xbc58c3['content'],_0x263646['push'](_0x27b97f);}_0x4fee28(this['element'],_0x263646),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x398953{constructor(_0x1a5071){super(_0x1a5071),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x88ee29=this['editor'],_0x29936c=_0x88ee29['locale'],_0x15fd4d=_0x88ee29['plugins']['get']('Dialog');let _0x70bd1f;const _0x10be6e=function(_0x4aacad){const _0x1d2639={};if('editables'in _0x4aacad['ui']['view']){for(const [_0x3cf082,_0x318b42]of Object['entries'](_0x4aacad['ui']['view']['editables']))_0x1d2639[_0x3cf082]=_0x318b42['element'];}else _0x1d2639[_0x4aacad['model']['document']['getRootNames']()[0x0]]=_0x4aacad['ui']['view']['editable']['element'];return _0x1d2639;}(_0x88ee29),_0x59877c=function(_0xa9444b){let _0x4bf54e=0x0;for(const _0x257248 of Object['values'](_0xa9444b))_0x4bf54e=Math['max'](_0x4bf54e,_0x257248['getBoundingClientRect']()['width']);let _0x58e0a9=0x0;for(const _0x4b87ea of Object['values'](_0xa9444b))_0x58e0a9+=_0x4b87ea['getBoundingClientRect']()['height'];const _0x1fe8c0=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1be8be=Math['min'](_0x58e0a9,_0x1fe8c0);return{'width':_0x4bf54e,'height':_0x1be8be};}(_0x10be6e);_0x15fd4d['show']({'id':'finalContentPreview','title':o(_0x29936c,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x29936c,{'dialogRects':_0x59877c}),'onHide':()=>{_0x70bd1f['detachFromDom']();},'onShow':()=>{_0x88ee29['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2954b4=>{const _0x2961f3=this['_standarizeRootsData'](_0x2954b4,_0x88ee29,_0x10be6e);_0x15fd4d['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2961f3,_0x88ee29['config']['get']('trackChanges.preview.renderFunction'));}),_0x70bd1f=new _0x1a2eb2(_0x29936c,[_0x15fd4d['view']]),_0x70bd1f['attachToDom'](),_0x70bd1f['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x88ee29['once']('destroy',()=>{_0x70bd1f['detachFromDom']();});const _0x3fb41a=_0x15fd4d['view']['headerView']['class'];_0x15fd4d['view']['headerView']['class']=_0x3fb41a?_0x3fb41a+'\x20ck-reset_all':'ck-reset_all',_0x15fd4d['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x15fd4d['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3b2d49=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xa770c6=_0x3b2d49['previewMode'],_0x4de1ef={};if('$labels'===_0xa770c6){for(const _0x51bc30 of _0x3b2d49['getMergeFieldsIds']())_0x4de1ef[_0x51bc30]=_0x3b2d49['getLabel'](_0x51bc30)||_0x51bc30;}else{const _0x5ab4db='$defaultValues'===_0xa770c6?_0x3b2d49['getDefaultValues']():_0x3b2d49['getDataSetValues'](_0xa770c6,!0x0);for(const _0xdf49b7 of Object['entries'](_0x5ab4db)){const [_0x32e78e,_0x4a298a]=_0xdf49b7;_0x4de1ef[_0x32e78e]=null!==_0x4a298a?_0x4a298a:_0x3b2d49['getLabel'](_0x32e78e)||_0x32e78e;}}return{'mergeFieldsData':_0x4de1ef};}['_standarizeRootsData'](_0xf81f26,_0x5b80dd,_0x143850){let _0x2c482b;if('string'==typeof _0xf81f26){const _0x2a9c3e=_0x5b80dd['model']['document']['getRootNames']()[0x0];_0x2c482b={[_0x2a9c3e]:_0xf81f26};}else _0x2c482b=_0xf81f26;const _0x3f1d8d=this['_fixMediaEmbeds'](_0x2c482b,_0x5b80dd),_0x5c1691=function(_0x326a83,_0x437af0){for(const [_0x500f7e,_0x3b026c]of _0x326a83)_0x3b026c['classes']=_0x437af0[_0x500f7e]['classList']['value']['replace']('ck-focused','');return _0x326a83;}(this['_sortRoots'](_0x5b80dd)['reduce']((_0x431958,_0x3be231)=>(_0x431958['push']([_0x3be231,{'content':_0x3f1d8d[_0x3be231],'classes':''}]),_0x431958),[]),_0x143850);return _0x5c1691;}['_fixMediaEmbeds'](_0x1543ff,_0x35f6b9){if(!_0x35f6b9['plugins']['has']('MediaEmbedEditing'))return _0x1543ff;const _0x5a4773=_0x35f6b9['plugins']['get']('MediaEmbedEditing');for(const [_0x4a63f6,_0x203c63]of Object['entries'](_0x1543ff)){const _0x26d213=document['createElement']('div');_0x26d213['innerHTML']=_0x203c63,(_0x26d213['querySelectorAll']('figure.media')['forEach'](_0x387dc6=>{const _0x473f7a=_0x387dc6['querySelector']('oembed');if(_0x473f7a){const _0x3b9aa3=_0x473f7a['getAttribute']('url');if(_0x3b9aa3){const _0x2f1b6c=_0x5a4773['registry']['getMediaViewElement'](new _0x3fde8d(_0x35f6b9['editing']['view']['document']),_0x3b9aa3,{'elementName':'','renderForEditingView':!0x0}),_0x57caba=document['createElement']('div');_0x57caba['classList']['add']('ck-media__wrapper'),_0x2f1b6c['render'](_0x57caba,_0x35f6b9['editing']['view']['domConverter']),_0x473f7a['replaceWith'](_0x57caba);}}}),_0x1543ff[_0x4a63f6]=_0x26d213['innerHTML']);}return _0x1543ff;}['_sortRoots'](_0x27d947){if(!function(_0x346632){return void 0x0!==_0x346632['getRootsAttributes'];}(_0x27d947))return _0x27d947['model']['document']['getRootNames']();const _0x842ad5=[],_0x35a110=new Map();for(const _0x27cbcc of _0x27d947['model']['document']['getRootNames']()){const _0x20f4b0=_0x27d947['editing']['view']['getDomRoot'](_0x27cbcc)['getClientRects']()['item'](0x0);_0x842ad5['push'](_0x27cbcc),_0x35a110['set'](_0x27cbcc,_0x20f4b0);}return _0x842ad5['sort']((_0x2f11d9,_0x3d657c)=>{const _0x1f0185=_0x35a110['get'](_0x2f11d9),_0x4f7f8d=_0x35a110['get'](_0x3d657c);return _0x1f0185['y']-_0x4f7f8d['y']||_0x1f0185['x']-_0x4f7f8d['x'];}),_0x842ad5;}}class Ue extends _0x496248{static get['requires'](){return[re,_0x5ba43];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29b9dc){super(_0x29b9dc),_0x29b9dc['commands']['add']('previewFinalContent',new te(this['editor'])),_0x29b9dc['config']['define']('trackChanges.preview.renderFunction',(_0x5ec6d2,_0x5161b7)=>{for(const _0x5bf001 of _0x5161b7)_0x5ec6d2['appendChild'](_0x5bf001);});}}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 _0x365dcb,Plugin as _0x335eea,PendingActions as _0x15c3f6}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xa9e684,ObservableMixin as _0x359f19,uid as _0x2984a9,priorities as _0x87215e,insertToPriorityArray as _0x4d2280,logWarning as _0x1bcc90,getEnvKeystrokeText as _0x56feb8,FocusTracker as _0x2c671a,KeystrokeHandler as _0x1ec55a,Collection as _0x403b70}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xcf9134,IconCancel as _0x235398,IconTrackChanges as _0x405e12}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x43d8b1,View as _0x327a4b,ViewCollection as _0x102385,FocusCycler as _0x3797ab,UIModel as _0x5af72d,createDropdown as _0x2f3c70,SplitButtonView as _0x5c4fdb,addListToDropdown as _0x19681d,MenuBarMenuView as _0xc798ff,MenuBarMenuListView as _0x5adf04,ListSeparatorView as _0x35b880,MenuBarMenuListItemView as _0x534b3f,MenuBarMenuListItemButtonView as _0x77bc2c,BodyCollection as _0x3b289b,Dialog as _0x1ec381}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x122a13,DocumentCompare as _0x5aa49f,hashObject as _0x189e00,surroundingMarkersDetector as _0x2646aa,FOCUS_ANNOTATION_KEYSTROKE as _0x258924,AriaDescriptionView as _0x2fd797,setupThreadKeyboardNavigation as _0x3db1d5,trimHtml as _0x42d5bc,UserView as _0x1e06c0,LateFocusButtonView as _0x52b767,getDateTimeFormatter as _0x304ae6,getAllMarkersDomElementsSorted as _0x587c2c,sanitizeEditorConfig as _0x57c44e}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x53db30,ModelLiveRange as _0x1b3589,ModelLivePosition as _0x31dbe3,ViewDowncastWriter as _0x5094e0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x4bfaa3,set as _0x4dc910,isEqual as _0x4a8fc6,unset as _0x2a8a83,omit as Pt}from'es-toolkit/compat';import{Delete as _0x2757e7,Input as _0x4c9901}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x348567}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1237ac}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 _0x365dcb{['_enabledCommands'];constructor(_0x2bee50,_0x346772){super(_0x2bee50),this['_enabledCommands']=_0x346772,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 _0xcb49d4 of this['editor']['commands']['commands']())_0xcb49d4['affectsData']&&!this['_enabledCommands']['has'](_0xcb49d4)&&_0xcb49d4['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xa079ad of this['editor']['commands']['commands']())_0xa079ad['affectsData']&&!this['_enabledCommands']['has'](_0xa079ad)&&_0xa079ad['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x365dcb{['_suggestions'];constructor(_0x2a7282,_0x39a92a){super(_0x2a7282),this['_suggestions']=_0x39a92a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x242bf8){const _0x3f0e05=this['_suggestions']['get'](_0x242bf8);if(!_0x3f0e05)throw new _0xa9e684('track-changes-accept-suggestion-not-found',this);const _0x196455=_0x3f0e05['getRanges']();this['editor']['model']['canEditAt'](_0x196455)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3f0e05);}}class D extends _0x365dcb{['_suggestions'];constructor(_0x43e44a,_0x36b832){super(_0x43e44a),this['_suggestions']=_0x36b832,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x526bbe){const _0x5d01ee=this['_suggestions']['get'](_0x526bbe);if(!_0x5d01ee)throw new _0xa9e684('track-changes-discard-suggestion-not-found',this);const _0x4027b8=_0x5d01ee['getRanges']();this['editor']['model']['canEditAt'](_0x4027b8)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5d01ee);}}function ls(_0xfe3458,_0x12f33f){let _0x2c004c='';return _0x2c004c+=_0xfe3458['split']('*')['map']((_0xd0911e,_0x2aed9e)=>_0x2aed9e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0xd0911e)+'</span>':rn(_0xd0911e))['join'](''),_0x12f33f&&(_0x2c004c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x12f33f['value']+'\x22\x20title=\x22'+_0x12f33f['title']+'\x22></span>'),_0x2c004c;}function rn(_0x547aae){const _0xb226fe=document['createElement']('span');return _0xb226fe['innerText']=_0x547aae,_0xb226fe['innerHTML'];}function ts(_0x3ae26a){return _0x3ae26a['sort']((_0x17946f,_0x5da0b0)=>'attribute'===_0x17946f['type']&&'attribute'!==_0x5da0b0['type']?-0x1:'attribute'!==_0x17946f['type']&&'attribute'===_0x5da0b0['type']?0x1:'deletion'==_0x17946f['type']&&'deletion'!=_0x5da0b0['type']?-0x1:'deletion'!=_0x17946f['type']&&'deletion'==_0x5da0b0['type']?0x1:0x0);}function to(_0x5aea74,_0x35f0c6){let _0x1ecd48,_0x5b810a=0x0;const _0x45c7c3=[],_0x43fc77=_0x35f0c6['schema'];for(;_0x5b810a<_0x5aea74['length'];){const _0x505e4f=_0x5aea74[_0x5b810a],_0x13a5c0=_0x5aea74[_0x5b810a+0x1];_0x1ecd48||(_0x1ecd48=_0x35f0c6['createPositionBefore'](_0x505e4f)),cn(_0x35f0c6,_0x505e4f,_0x13a5c0)||(_0x45c7c3['push'](_0x35f0c6['createRange'](_0x1ecd48,_0x43fc77['isObject'](_0x505e4f)?_0x35f0c6['createPositionAfter'](_0x505e4f):_0x35f0c6['createPositionAt'](_0x505e4f,'end'))),_0x1ecd48=null),_0x5b810a++;}return _0x45c7c3;}function cn(_0x428b4d,_0x13f7b3,_0x352c07){if(!_0x352c07)return!0x1;const _0xc2821=_0x428b4d['createPositionAfter'](_0x13f7b3),_0xe06ad8=_0x428b4d['createPositionBefore'](_0x352c07);return _0xc2821['isTouching'](_0xe06ad8);}function rs(_0x54bd64,_0x1ac99d,_0x3cf779){for(;_0x3cf779['length'];){const _0x48f6da=_0x3cf779['splice'](0x0,0x64);_0x54bd64['change'](()=>{for(const _0x143557 of _0x48f6da)_0x143557['isInContent']&&_0x1ac99d['execute'](_0x143557['id']);});}}class B extends _0x365dcb{['_command'];['_suggestions'];constructor(_0x30bea7,_0x260704,_0x19844a){super(_0x30bea7),this['_command']=_0x260704,this['_suggestions']=_0x19844a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x52f8b9=Array['from'](this['_suggestions']['values']())['some'](_0x1bdf49=>_0x1bdf49['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x52f8b9;}['execute'](){const _0xeca487=ts(Array['from'](this['_suggestions']['values']()));for(const _0x38669f of _0xeca487){const _0x299825=_0x38669f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x299825))return;}rs(this['editor']['model'],this['_command'],_0xeca487);}}class O extends _0x365dcb{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x475c93,_0x442e88,_0x3cdb0d){super(_0x475c93),this['_command']=_0x442e88,this['_suggestions']=_0x3cdb0d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xdf8dfd=this['editor']['model']['document']['selection'],_0x39fecd=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3a8f47,_0x4c8bea){const _0x35712f=Array['from'](_0x3a8f47['getRanges']()),_0x42f02b=new Set();for(const _0xb49d1c of _0x4c8bea)if(_0xb49d1c['isInContent']){for(const _0x25f80e of _0x35712f)for(const _0x4391ec of _0xb49d1c['getRanges']())(_0x25f80e['isIntersecting'](_0x4391ec)||_0x3a8f47['isCollapsed']&&!_0xb49d1c['isMultiRange']&&_0xb49d1c['next']&&_0x4391ec['end']['isTouching'](_0x25f80e['start']))&&_0x42f02b['add'](_0xb49d1c);}return _0x42f02b;}(_0xdf8dfd,_0x39fecd),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5aca94=ts(Array['from'](this['_selectedSuggestions']));for(const _0x42aed1 of _0x5aca94){const _0x11611f=_0x42aed1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x11611f))return;}rs(this['editor']['model'],this['_command'],_0x5aca94);}}class x extends/* #__PURE__ -- @preserve */
24
+ _0x359f19(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x453384,_0xd24f79){super(),this['id']=_0xd24f79['id'],this['type']=_0xd24f79['type'],this['subType']=_0xd24f79['subType']||null,this['author']=_0xd24f79['author'],this['creator']=_0xd24f79['creator']||_0xd24f79['author'],this['isExternal']=Boolean(_0xd24f79['attributes']&&_0xd24f79['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xd24f79['originalSuggestionId']||null,this['_model']=_0x453384,this['_onAccept']=_0xd24f79['onAccept'],this['_onDiscard']=_0xd24f79['onDiscard'],this['_onAttributesChange']=_0xd24f79['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xd24f79['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 _0x38ae78=this;for(;_0x38ae78['previous'];)_0x38ae78=_0x38ae78['previous'];return _0x38ae78;}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'](_0x5b4130){this['_markerNames']['add'](_0x5b4130);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4ed9cf=>this['_model']['markers']['get'](_0x4ed9cf))['filter'](_0x53eebd=>_0x53eebd);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x41d1d4=>{for(const _0x558248 of this['getMarkers']())_0x41d1d4['removeMarker'](_0x558248);}),this['_markerNames']['clear']();}['removeMarker'](_0x41508e){this['_model']['change'](_0x5b6de1=>{_0x5b6de1['removeMarker'](_0x41508e);}),this['_markerNames']['delete'](_0x41508e);}['addRange'](_0x48fd7d){const _0x50b72d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x50b72d),this['_model']['change'](_0x2f112c=>{_0x2f112c['addMarker'](_0x50b72d,{'range':_0x48fd7d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1362b0){for(const _0x21e000 of this['getRanges']())if(_0x21e000['isIntersecting'](_0x1362b0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x223c49=>_0x223c49['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x274184,_0x61b8f2)=>[..._0x274184,..._0x61b8f2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xc4d39b=this['getRanges']();if(0x1!=_0xc4d39b['length'])return null;const _0x1c975b=_0xc4d39b[0x0],_0x2a93e6=_0x1c975b['start']['nodeAfter'],_0x59b11c=_0x1c975b['end']['nodeBefore'];return _0x2a93e6 instanceof _0x53db30?_0x2a93e6!=_0x59b11c?null:_0x2a93e6: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 _0x34c1de=[];let _0x496611=this['head'];for(;_0x496611;)_0x34c1de['push'](_0x496611),_0x496611=_0x496611['next'];return _0x34c1de;}['setAttribute'](_0x38263c,_0xf9e6c5){const _0x47388d=_0x4bfaa3(this['attributes']);_0x4dc910(_0x47388d,_0x38263c,_0xf9e6c5),_0x4a8fc6(_0x47388d,this['attributes'])||(this['attributes']=_0x47388d,this['_onAttributesChange'](_0x47388d));}['removeAttribute'](_0x4a7b14){const _0x5cbd92=_0x4bfaa3(this['attributes']);_0x2a8a83(_0x5cbd92,_0x4a7b14),_0x4a8fc6(_0x5cbd92,this['attributes'])||(this['attributes']=_0x5cbd92,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 _0x2984a9()['substr'](0x1,0x5);}}function o(_0x3d022b,_0x2d23a6,_0x41652b){const _0x1f3dd5=_0x3d022b['t'],t=_0x3d022b['t'];switch(_0x2d23a6){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',_0x41652b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x41652b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x41652b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x41652b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x41652b);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',_0x41652b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x41652b);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',_0x41652b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x41652b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x41652b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x41652b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x41652b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x41652b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x41652b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x41652b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x41652b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x41652b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x41652b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x41652b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x41652b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x41652b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x41652b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x41652b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x41652b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x41652b);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'},_0x41652b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x41652b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x41652b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x41652b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x41652b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x41652b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x41652b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x41652b);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'},_0x41652b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x41652b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x41652b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x41652b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x41652b);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'},_0x41652b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x41652b);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'},_0x41652b);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'},_0x41652b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x41652b);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'},_0x41652b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x41652b);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'},_0x41652b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x41652b);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x41652b);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x41652b);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x41652b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x41652b);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'},_0x41652b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x41652b);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 _0x1f3dd5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x41652b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1f3dd5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x41652b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x41652b);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'},_0x41652b);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'},_0x41652b);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'},_0x41652b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2d23a6;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x142dd0,_0x31c6ac){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x142dd0,this['_locale']=_0x31c6ac;}['getDescriptions'](_0x2335c0){const _0xb69334=[],_0x10dda2=new Set(),_0x114102=new Set();for(let _0x25b73c=0x0;_0x25b73c<_0x2335c0['length'];_0x25b73c++){const _0x3b70ab=_0x2335c0[_0x25b73c];if(!_0x3b70ab['isInContent'])continue;const _0x2c696c=this['_handleCustomCallbackDescription'](_0x3b70ab);if(_0x2c696c){if(null!=_0x3b70ab['subType']){if(_0x10dda2['has'](_0x3b70ab['subType']))continue;_0x10dda2['add'](_0x3b70ab['subType']);}_0xb69334['push'](_0x2c696c);}else{if('attribute'==_0x3b70ab['type']){const _0x2ad78f=_0x3b70ab['data']['key'];if(_0x114102['has'](_0x2ad78f))continue;_0x114102['add'](_0x3b70ab['data']['key']),_0x2ad78f==m?this['_handleRenameSuggestionDescription'](_0xb69334,_0x3b70ab):this['_handleAttributeSuggestionDescription'](_0xb69334,_0x3b70ab);continue;}'insertion'!=_0x3b70ab['type']&&'deletion'!=_0x3b70ab['type']||this['_handleInsertRemoveSuggestionDescription'](_0xb69334,_0x3b70ab,_0x2335c0[_0x25b73c+0x1]);}}return this['_resolveDescriptionItems'](_0xb69334);}['registerDescriptionCallback'](_0x1f3995){this['_customCallbacks']['push'](_0x1f3995);}['registerElementLabel'](_0x19b5d3,_0x5e02be,_0x3dd5aa=_0x87215e['normal']){'function'==typeof _0x19b5d3?_0x4d2280(this['_itemLabelsCallbacks'],{'matchingCallback':_0x19b5d3,'label':_0x5e02be,'priority':_0x3dd5aa}):this['_itemLabels']['set'](_0x19b5d3,_0x5e02be);}['registerAttributeLabel'](_0x24f888,_0x5d04f6){this['_attributeLabels']['set'](_0x24f888,_0x5d04f6);}['getItemLabel'](_0x37962e,_0x382b5c=0x1){let _0x4f2723;for(const _0x2b7682 of this['_itemLabelsCallbacks'])if(_0x2b7682['matchingCallback'](_0x37962e)){_0x4f2723=_0x2b7682['label'];break;}return _0x4f2723||(_0x4f2723=this['_itemLabels']['get'](_0x37962e['name'])),_0x4f2723?_0x4f2723(_0x382b5c):0x1!==_0x382b5c?_0x382b5c+'\x20'+_0x37962e['name']+'s':''+_0x37962e['name'];}['_addDescriptionItems'](_0x3f4985,_0xf69ae){const _0x3975c7=_0xf69ae['getFirstRange']()['getWalker'](),_0xb55aa0='insertion'==_0xf69ae['type']?'add':'remove';for(const _0x3a0603 of _0x3975c7){const _0x2270f5=_0x3a0603['item'],_0x17a008=_0x3f4985[_0x3f4985['length']-0x1];if(_0x2270f5['is']('$textProxy'))_0x17a008&&_0x17a008['type']['indexOf']('Container')>-0x1&&_0x3f4985['pop'](),_0x17a008&&'text'==_0x17a008['type']?_0x17a008[_0xb55aa0]+=_0x2270f5['data']:_0x3f4985['push']({'type':'text','add':'add'==_0xb55aa0?_0x2270f5['data']:'','remove':'remove'==_0xb55aa0?_0x2270f5['data']:''});else{if(this['_schema']['isObject'](_0x2270f5)){const _0x2f2de7=_0x2270f5;if(_0x17a008&&_0x17a008['type']['indexOf']('Container')>-0x1&&_0x3f4985['pop'](),'elementEnd'==_0x3a0603['type'])continue;_0x17a008&&_0x17a008['type']==_0xb55aa0+'Object'&&_0x17a008['element']['name']==_0x2f2de7['name']?_0x17a008['quantity']++:_0x3f4985['push']({'type':_0xb55aa0+'Object','element':_0x2f2de7,'quantity':0x1}),_0x3975c7['skip'](_0x5697c2=>!('elementEnd'==_0x5697c2['type']&&_0x5697c2['item']==_0x2270f5));}else{if(this['_schema']['checkChild'](_0x2270f5,'$text')||_0x2270f5['is']('element','softBreak')){const _0x3e6e86=_0x2270f5;if('add'==_0xb55aa0&&'elementStart'==_0x3a0603['type']||'remove'==_0xb55aa0&&'elementEnd'==_0x3a0603['type'])continue;if(_0x17a008&&-0x1==_0x17a008['type']['indexOf']('Container')){'text'==_0x17a008['type']&&(_0x17a008[_0xb55aa0]+='\x0a');continue;}let _0x26b57c;if(_0x26b57c='add'==_0xb55aa0?_0x3e6e86['nextSibling']&&!this['_schema']['isObject'](_0x3e6e86['nextSibling'])?_0x3e6e86['nextSibling']:null:_0x3e6e86['previousSibling']&&!this['_schema']['isObject'](_0x3e6e86['previousSibling'])?_0x3e6e86['previousSibling']:null,_0x3e6e86['isEmpty']||_0x26b57c&&_0x26b57c['isEmpty']){const _0x5ede51=_0x26b57c&&_0x26b57c['isEmpty']?_0x26b57c:_0x3e6e86;_0x17a008&&_0x17a008['type']==_0xb55aa0+'EmptyContainer'&&_0x17a008['element']['name']==_0x5ede51['name']?_0x17a008['quantity']++:_0x3f4985['push']({'type':_0xb55aa0+'EmptyContainer','element':_0x5ede51,'quantity':0x1});}else _0x3f4985['push']({'type':_0xb55aa0+'Container','element':_0x3e6e86});}}}}}['_resolveDescriptionItems'](_0x2f2dcb){const _0x391e13=this['_locale'],_0x55f403=[],_0x2a10da=[],_0x432238=[];for(const _0x4544ac of _0x2f2dcb)switch(_0x4544ac['type']){case'text':if(_0x4544ac['add']=_0x4544ac['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4544ac['remove']=_0x4544ac['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4544ac['add']&&''!=_0x4544ac['remove']){_0x55f403['push']({'type':'replace','content':o(_0x391e13,'REPLACE_TEXT',['\x22'+_0x4544ac['remove']+'\x22','\x22'+_0x4544ac['add']+'\x22'])});continue;}if(null!=_0x4544ac['add']['match'](/^ +$/)){_0x55f403['push']({'type':'insertion','content':o(_0x391e13,'*Insert:*\x20%0',o(_0x391e13,'ELEMENT_SPACE',_0x4544ac['add']['length']))});continue;}if(null!=_0x4544ac['remove']['match'](/^ +$/)){_0x55f403['push']({'type':'deletion','content':o(_0x391e13,'*Remove:*\x20%0',o(_0x391e13,'ELEMENT_SPACE',_0x4544ac['remove']['length']))});continue;}if(''!=_0x4544ac['add']){_0x55f403['push']({'type':'insertion','content':o(_0x391e13,'*Insert:*\x20%0','\x22'+_0x4544ac['add']+'\x22')});continue;}_0x55f403['push']({'type':'deletion','content':o(_0x391e13,'*Remove:*\x20%0','\x22'+_0x4544ac['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x55f403['push']({'type':'insertion','content':o(_0x391e13,'*Insert:*\x20%0',this['getItemLabel'](_0x4544ac['element'],_0x4544ac['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x55f403['push']({'type':'deletion','content':o(_0x391e13,'*Remove:*\x20%0',this['getItemLabel'](_0x4544ac['element'],_0x4544ac['quantity']))});continue;case'addContainer':_0x55f403['push']({'type':'insertion','content':o(_0x391e13,'*Split:*\x20%0',this['getItemLabel'](_0x4544ac['element'],_0x4544ac['quantity']))});continue;case'removeContainer':_0x55f403['push']({'type':'deletion','content':o(_0x391e13,'*Merge:*\x20%0',this['getItemLabel'](_0x4544ac['element'],_0x4544ac['quantity']))});continue;case'addFormat':_0x2a10da['push'](_0x4544ac['key']);continue;case'removeFormat':_0x432238['push'](_0x4544ac['key']);continue;default:_0x55f403['push'](_0x4544ac);}if(_0x2a10da['length']){const _0x2d37a3=_0x2a10da['map'](_0x267db5=>this['_attributeLabels']['has'](_0x267db5)?this['_attributeLabels']['get'](_0x267db5):_0x267db5)['join'](',\x20');_0x55f403['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2d37a3)});}if(_0x432238['length']){const _0x4f702f=_0x432238['map'](_0x132b79=>this['_attributeLabels']['has'](_0x132b79)?this['_attributeLabels']['get'](_0x132b79):_0x132b79)['join'](',\x20');_0x55f403['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4f702f)});}return _0x55f403;}['_handleCustomCallbackDescription'](_0x37c16c){for(const _0x393c9b of this['_customCallbacks']){const _0x41089f=_0x393c9b(_0x37c16c);if(_0x41089f&&'type'in _0x41089f)return _0x41089f;}}['_handleAttributeSuggestionDescription'](_0x12bad1,_0x209d49){const _0x22a6da=_0x209d49['data'],_0x2f1557=void 0x0===_0x22a6da['newValue']?'removeFormat':'addFormat';_0x12bad1['push']({'type':_0x2f1557,'key':_0x22a6da['key']});}['_handleRenameSuggestionDescription'](_0x21b013,_0x52c591){_0x21b013['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x52c591['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5311a2,_0x425dda,_0x280b5b){if(this['_addDescriptionItems'](_0x5311a2,_0x425dda),_0x280b5b&&_0x280b5b['getFirstRange']()&&!_0x425dda['getFirstRange']()['end']['isEqual'](_0x280b5b['getFirstRange']()['start'])){const _0xfa0d08=_0x5311a2[_0x5311a2['length']-0x1],_0x2bb607='insertion'==_0x425dda['type']?'add':'remove';_0xfa0d08&&'text'==_0xfa0d08['type']&&(_0xfa0d08[_0x2bb607]+='\x0a');}}}class R extends _0x335eea{['afterInit'](){const _0x3067d8=this['editor'],_0x5c24b2=_0x3067d8['plugins']['get']('TrackChangesEditing');_0x3067d8['commands']['get']('showAIAssistant')&&_0x5c24b2['enableCommand']('showAIAssistant');}}class T extends _0x335eea{['afterInit'](){const _0x1d8f42=this['editor'],_0x2d7826=_0x1d8f42['plugins']['get']('TrackChangesEditing');_0x1d8f42['commands']['get']('toggleAi')&&_0x2d7826['enableCommand']('toggleAi');}}class E extends _0x335eea{['afterInit'](){const _0x1a294a=this['editor'],_0x9b76c4=_0x1a294a['plugins']['get']('TrackChangesEditing');_0x1a294a['commands']['get']('aiQuickAction')&&_0x9b76c4['enableCommand']('aiQuickAction');}}class U extends _0x335eea{['afterInit'](){const _0x36ce3e=this['editor'],_0x1606a9=_0x36ce3e['locale'];if(!_0x36ce3e['plugins']['has']('AlignmentEditing'))return;const _0x1fe484=_0x36ce3e['plugins']['get']('TrackChangesEditing');_0x1fe484['enableDefaultAttributesIntegration']('alignment'),_0x1fe484['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1606a9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x383c20=this['editor'],_0xbb3c50=_0x383c20['locale'];_0x383c20['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cc953=>{if('formatBlock'!=_0x5cc953['type'])return;const {data:_0x1360dd}=_0x5cc953;if(_0x1360dd&&'alignment'==_0x1360dd['commandName']){const _0x2d5af3=_0x1360dd['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xbb3c50,'*Format:*\x20%0',function(_0x183426){switch(_0x183426){case'left':return o(_0xbb3c50,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xbb3c50,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xbb3c50,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xbb3c50,'FORMAT_JUSTIFY_TEXT');}}(_0x2d5af3))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x335eea{['afterInit'](){const _0x2fcbcd=this['editor'],_0x9d6a73=_0x2fcbcd['plugins']['get']('TrackChangesEditing'),_0x40546c=_0x2fcbcd['locale'];for(const _0x55c955 of ti){if(!_0x2fcbcd['plugins']['has'](_0x55c955))continue;const _0x5e5fad=_0x55c955['slice'](0x0,-0x7)['toLowerCase'](),_0xb1a71d='FORMAT_'+_0x5e5fad['toUpperCase']();_0x9d6a73['enableDefaultAttributesIntegration'](_0x5e5fad),_0x9d6a73['descriptionFactory']['registerAttributeLabel'](_0x5e5fad,o(_0x40546c,_0xb1a71d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36e13c=this['editor'],_0xc3d6f0=_0x36e13c['locale'],_0x517401=_0x36e13c['plugins']['get']('TrackChangesEditing');function _0x86c304(_0xe296da,_0x359362){_0x517401['descriptionFactory']['registerDescriptionCallback'](_0x4630c7=>{if('formatInline'!=_0x4630c7['type'])return;const {data:_0x4ec0ab}=_0x4630c7;return _0x4ec0ab&&_0x4ec0ab['commandName']===_0xe296da?_0x4ec0ab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc3d6f0,'*Format:*\x20%0',_0x359362)}:{'type':'format','content':o(_0xc3d6f0,'*Remove\x20format:*\x20%0',_0x359362)}:void 0x0;});}_0x86c304('bold',o(_0xc3d6f0,'FORMAT_BOLD')),_0x86c304('italic',o(_0xc3d6f0,'FORMAT_ITALIC')),_0x86c304('underline',o(_0xc3d6f0,'FORMAT_UNDERLINE')),_0x86c304('code',o(_0xc3d6f0,'FORMAT_CODE')),_0x86c304('strikethrough',o(_0xc3d6f0,'FORMAT_STRIKETHROUGH')),_0x86c304('subscript',o(_0xc3d6f0,'FORMAT_SUBSCRIPT')),_0x86c304('superscript',o(_0xc3d6f0,'FORMAT_SUPERSCRIPT'));}}class F extends _0x335eea{['afterInit'](){const _0x397df9=this['editor'],_0x2c82e6=_0x397df9['locale'];if(!_0x397df9['plugins']['has']('BlockQuoteEditing'))return;const _0x4273d3=_0x397df9['plugins']['get']('TrackChangesEditing'),_0x2ec8b9=this['editor']['commands']['get']('blockQuote');_0x4273d3['enableCommand']('blockQuote',(_0x172b52,_0x55c43c={})=>{const _0x31c832=this['editor']['model']['document']['selection'],_0x277150=_0x55c43c&&void 0x0!==_0x55c43c['forceValue']?_0x55c43c['forceValue']:!_0x2ec8b9['value'];let _0x1cfda8=[];if(_0x277150){const _0x8501f3=Array['from'](_0x31c832['getSelectedBlocks']())['filter'](_0x23ce80=>oo(_0x23ce80)||function(_0x184249,_0x57ed2d){const _0x198bcb=_0x57ed2d['checkChild'](_0x184249['parent'],'blockQuote'),_0x5113a3=_0x57ed2d['checkChild'](['$root','blockQuote'],_0x184249);return _0x198bcb&&_0x5113a3;}(_0x23ce80,this['editor']['model']['schema']));_0x1cfda8=to(_0x8501f3,_0x397df9['model']);}else{const _0x4f3169=Array['from'](_0x31c832['getSelectedBlocks']())['filter'](_0x174e80=>oo(_0x174e80));_0x1cfda8=to(_0x4f3169,_0x397df9['model']);}_0x397df9['model']['change'](()=>{for(const _0x4cce32 of _0x1cfda8)_0x4273d3['markBlockFormat'](_0x4cce32,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x277150}]});});}),_0x4273d3['descriptionFactory']['registerDescriptionCallback'](_0x2f0fae=>{const {data:_0x378df2}=_0x2f0fae;if(_0x378df2&&'blockQuote'==_0x378df2['commandName']){const _0x31c952=o(_0x2c82e6,'ELEMENT_BLOCK_QUOTE');return _0x378df2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c82e6,'*Set\x20format:*\x20%0',_0x31c952)}:{'type':'format','content':o(_0x2c82e6,'*Remove\x20format:*\x20%0',_0x31c952)};}});}}function oo(_0x52ff01){return'blockQuote'==_0x52ff01['parent']['name'];}class G extends _0x335eea{['afterInit'](){const _0x295400=this['editor'],_0x568d7=_0x295400['locale'],_0x5dcb59=_0x295400['plugins']['get']('TrackChangesEditing');_0x295400['plugins']['has']('BookmarkEditing')&&(_0x5dcb59['enableCommand']('insertBookmark'),_0x5dcb59['enableDefaultAttributesIntegration']('updateBookmark'),_0x5dcb59['descriptionFactory']['registerDescriptionCallback'](_0x465e15=>{if('insertion'!=_0x465e15['type']&&'deletion'!=_0x465e15['type']&&'attribute'!=_0x465e15['type'])return;const _0x1f012f=_0x465e15['getContainedElement']();if(null==_0x1f012f)return;if(!_0x1f012f['is']('element','bookmark'))return;const _0x24cc8a=_0x1f012f['getAttribute']('bookmarkId');if('insertion'==_0x465e15['type'])return{'type':'insertion','content':o(_0x568d7,'*Insert:*\x20%0','\x22'+_0x24cc8a+'\x22\x20'+o(_0x568d7,'ELEMENT_BOOKMARK'))};if('deletion'==_0x465e15['type'])return{'type':'deletion','content':o(_0x568d7,'*Remove:*\x20%0','\x22'+_0x24cc8a+'\x22\x20'+o(_0x568d7,'ELEMENT_BOOKMARK'))};const {data:_0x8cbbae}=_0x465e15;if(!_0x8cbbae||'bookmarkId'!=_0x8cbbae['key'])return;return{'type':'format','content':o(_0x568d7,'*Set\x20bookmark:*\x20%0','\x22'+_0x8cbbae['newValue']+'\x22')};}));}}class L extends _0x335eea{['afterInit'](){const _0x56aabb=this['editor'];_0x56aabb['plugins']['has']('CaseChange')&&(_0x56aabb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x56aabb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x56aabb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x335eea{['afterInit'](){const _0x3a56d3=this['editor'];_0x3a56d3['commands']['get']('ckbox')&&_0x3a56d3['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x335eea{['afterInit'](){const _0x1acc82=this['editor'];if(!_0x1acc82['plugins']['has']('CodeBlock'))return;const _0xc581d2=_0x1acc82['plugins']['get']('TrackChangesEditing'),_0x1ea4fa=_0x1acc82['locale'],_0x2b6966=_0x1acc82['config']['get']('codeBlock')['languages'],_0x2f31df=_0x1acc82['commands']['get']('codeBlock');_0xc581d2['enableCommand']('indentCodeBlock'),_0xc581d2['enableCommand']('outdentCodeBlock'),_0xc581d2['enableCommand']('codeBlock',(_0x342917,_0x58b16e={})=>{const _0x2fe86b=_0x1acc82['model'],_0x4d2eaa=_0x1acc82['model']['document']['selection'],_0x78591b=_0x58b16e&&void 0x0!==_0x58b16e['forceValue']?_0x58b16e['forceValue']:!_0x2f31df['value'];let _0x4b841b;_0x58b16e['language']||(_0x58b16e['language']=_0x2b6966[0x0]['language']),_0x4b841b=_0x78591b?Array['from'](_0x4d2eaa['getSelectedBlocks']())['filter'](_0x18eebd=>co(_0x18eebd)||function(_0x5779fa,_0x5054e9){if(_0x5779fa['is']('rootElement')||_0x5054e9['isLimit'](_0x5779fa))return!0x1;return _0x5054e9['checkChild'](_0x5779fa['parent'],'codeBlock');}(_0x18eebd,_0x2fe86b['schema'])):Array['from'](_0x4d2eaa['getSelectedBlocks']())['filter'](_0x427c77=>co(_0x427c77));const _0x192ec8=to(_0x4b841b,_0x2fe86b);_0x2fe86b['change'](()=>{for(const _0x4b625f of _0x192ec8)_0xc581d2['markBlockFormat'](_0x4b625f,{'commandName':'codeBlock','commandParams':[{..._0x58b16e,'forceValue':_0x78591b}],'formatGroupId':'blockName'});});}),(_0xc581d2['descriptionFactory']['registerElementLabel']('codeBlock',_0x3afefd=>o(_0x1ea4fa,'ELEMENT_CODE_BLOCK',_0x3afefd)),_0xc581d2['descriptionFactory']['registerDescriptionCallback'](_0x5d1cc7=>{if('formatBlock'!=_0x5d1cc7['type'])return;const _0x52c613=_0x1ea4fa['t'],{data:_0x49fb83}=_0x5d1cc7;if(!_0x49fb83||'codeBlock'!=_0x49fb83['commandName'])return;const _0x31256b=_0x49fb83['commandParams'][0x0]['language'],_0x44ba68=_0x52c613(_0x2b6966['find'](_0x45a683=>_0x45a683['language']===_0x31256b)['label'])['toLowerCase']();return _0x49fb83['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ea4fa,'*Set\x20format:*\x20%0',o(_0x1ea4fa,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x44ba68+')')}:{'type':'format','content':o(_0x1ea4fa,'*Remove\x20format:*\x20%0',o(_0x1ea4fa,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3f685d){return'codeBlock'==_0x3f685d['name'];}class z extends _0x335eea{['afterInit'](){const _0x22f647=this['editor'];if(!_0x22f647['plugins']['has']('CommentsEditing'))return;_0x22f647['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x335eea{static get['requires'](){return[_0x2757e7];}['init'](){const _0x5ae766=this['editor'],_0x7622bf=_0x5ae766['plugins']['get']('TrackChangesEditing');_0x7622bf['enableCommand']('delete');const _0x48dddd=_0x5ae766['commands']['get']('deleteForward');_0x7622bf['enableCommand']('deleteForward',(_0xb66631,_0x49fcdc={})=>{const _0x55d5e1=_0x5ae766['model']['createSelection'](_0x5ae766['model']['document']['selection']);_0x55d5e1['isCollapsed']&&_0x5ae766['model']['modifySelection'](_0x55d5e1,{'direction':'forward','unit':_0x49fcdc['unit']});const _0x4b2b18=_0x55d5e1['getFirstRange'](),_0x3bb9ce=_0x1b3589['fromRange'](_0x4b2b18);let _0x4f70b2;_0xb66631(_0x49fcdc),_0x4f70b2='$graveyard'==_0x3bb9ce['root']['rootName']?_0x5ae766['model']['createRange'](_0x4b2b18['start']):_0x5ae766['model']['createRange'](_0x3bb9ce['start'],_0x3bb9ce['end']),_0x3bb9ce['detach'](),_0x5ae766['model']['enqueueChange'](_0x48dddd['buffer']['batch'],_0x2ac563=>{_0x48dddd['buffer']['lock'](),_0x2ac563['setSelection'](_0x2ac563['createRange'](_0x4f70b2['end'])),_0x48dddd['buffer']['unlock']();});});}}class W extends _0x335eea{['afterInit'](){const _0x592259=this['editor'];if(!_0x592259['plugins']['has']('ListEditing'))return;const _0xd272fc=_0x592259['locale'],_0x58de1f=_0x592259['plugins']['get']('TrackChangesEditing'),_0x241c13=_0x592259['plugins']['has']('TodoListEditing'),_0x4082f6=!!_0x592259['config']['get']('list.multiBlock');function _0x176180(_0x25f90e){return{'type':'format','content':''+o(_0xd272fc,'*Set\x20format:*\x20%0',_0x25f90e)};}function _0xb504c4(_0xdc1f9f){return{'type':'format','content':''+o(_0xd272fc,'*Remove\x20format:*\x20%0',_0xdc1f9f)};}_0x58de1f['enableDefaultAttributesIntegration']('numberedList'),_0x58de1f['enableDefaultAttributesIntegration']('bulletedList'),_0x58de1f['enableDefaultAttributesIntegration']('customNumberedList'),_0x58de1f['enableDefaultAttributesIntegration']('customBulletedList'),_0x58de1f['enableDefaultAttributesIntegration']('indentList'),_0x58de1f['enableDefaultAttributesIntegration']('outdentList'),_0x58de1f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x58de1f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4082f6&&(_0x58de1f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x58de1f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x241c13&&(_0x58de1f['enableDefaultAttributesIntegration']('todoList'),_0x58de1f['enableDefaultAttributesIntegration']('checkTodoList'),_0x58de1f['descriptionFactory']['registerDescriptionCallback'](_0x4e42d7=>{const {data:_0x29bcb4}=_0x4e42d7;if(_0x29bcb4&&'todoListChecked'==_0x29bcb4['key'])return{'type':'format','content':_0x29bcb4['newValue']?o(_0xd272fc,'*Check\x20item*'):o(_0xd272fc,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x55b4ec=>{if(_0x55b4ec['batch']['isUndo'])return!0x1;let _0x17bd67=!0x1;const _0x211386=_0x58de1f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe99e27=>'todoListChecked'===_0x58de1f['_getAttributeKey'](_0xe99e27));for(const _0x3e6b03 of _0x211386){'todo'!=_0x3e6b03['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x58de1f['_findSuggestions'](_0x3e6b03['getFirstRange'](),'attribute')['find'](_0x782c20=>'listType'===_0x58de1f['_getAttributeKey'](_0x782c20['suggestion']))||(_0x55b4ec['removeMarker'](_0x3e6b03['getFirstMarker']()),_0x17bd67=!0x0));}return _0x17bd67;})),_0x58de1f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xd272fc,'FORMAT_INDENT'));const _0x2a4aa3={'type':'format','content':''};_0x58de1f['descriptionFactory']['registerDescriptionCallback'](_0x42e759=>{const {data:_0x1a1232}=_0x42e759;if(!_0x1a1232||'listType'!=_0x1a1232['key'])return;let _0x4e6963=_0x42e759['head'];for(;_0x4e6963;){if(_0x4e6963['data']&&(('listStyle'==_0x4e6963['data']['key']||'listMarkerStyle'==_0x4e6963['data']['key'])&&(_0x4e6963['data']['newValue']&&'default'!=_0x4e6963['data']['newValue']||'default'!=_0x4e6963['data']['oldValue']&&!_0x1a1232['newValue'])||!_0x4082f6&&_0x4e6963['data']['key']==m))return _0x2a4aa3;_0x4e6963=_0x4e6963['next'];}if(null==_0x1a1232['newValue'])switch(_0x1a1232['oldValue']){case'bulleted':return _0xb504c4(o(_0xd272fc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xb504c4(o(_0xd272fc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xb504c4(o(_0xd272fc,'ELEMENT_TODO_LIST'));}switch(_0x1a1232['newValue']){case'bulleted':return _0x176180(o(_0xd272fc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x176180(o(_0xd272fc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x176180(o(_0xd272fc,'ELEMENT_TODO_LIST'));}}),_0x58de1f['descriptionFactory']['registerDescriptionCallback'](_0x58f2be=>{const {data:_0x3e0bd7}=_0x58f2be;if(_0x3e0bd7&&'listIndent'==_0x3e0bd7['key'])return null==_0x3e0bd7['newValue']||null==_0x3e0bd7['oldValue']&&0x0==_0x3e0bd7['newValue']?_0x2a4aa3:void 0x0;}),_0x58de1f['descriptionFactory']['registerDescriptionCallback'](_0x48738f=>{if('attribute'!=_0x48738f['type'])return;const {data:_0x1094db}=_0x48738f;if(!_0x1094db||'listItemId'!=_0x1094db['key'])return;const _0x1431a7=Te(_0x48738f);return'newValue'==_0x1431a7?{'type':'format','content':o(_0xd272fc,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1431a7?{'type':'format','content':o(_0xd272fc,'*Split:*\x20list\x20item')}:_0x2a4aa3;}),_0x592259['model']['document']['registerPostFixer'](_0x1c4134=>this['listItemIdFixer'](_0x1c4134)),_0x592259['model']['document']['registerPostFixer'](_0x1b2333=>this['noTrackChangesFixer'](_0x1b2333)),_0x592259['model']['document']['on']('change:data',(_0x5d8fa2,_0x3c67e5)=>{if(_0x3c67e5['isUndo']||!_0x3c67e5['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x43cbe3){if(_0x43cbe3['batch']['isUndo']||!_0x43cbe3['batch']['isLocal'])return!0x1;let _0x5777ab=!0x1;const _0x4e079c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54c29b=>_0x54c29b['data']&&'listItemId'==_0x54c29b['data']['key'])['filter'](_0x5ccfe9=>_0x5ccfe9['data']['newValue']&&_0x5ccfe9['data']['oldValue']);for(const _0x47ab46 of _0x4e079c)Te(_0x47ab46)||(_0x43cbe3['removeMarker'](_0x47ab46['getFirstMarker']()),_0x5777ab=!0x0);return _0x5777ab;}['noTrackChangesFixer'](_0x319d9e){if(_0x319d9e['batch']['isUndo']||!_0x319d9e['batch']['isLocal'])return!0x1;const _0x3011d7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3011d7['trackChangesCommand']['value'])return!0x1;let _0x5ea3e4=!0x1;const _0x1b1cba=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4da712=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x54c776=>'attribute'==_0x54c776['type'])['filter'](_0x54a9a4=>_0x1b1cba['includes'](_0x54a9a4['attributeKey']));if(0x0==_0x4da712['length'])return _0x5ea3e4;for(const _0x4188ba of _0x4da712){const _0x30d9e1=_0x3011d7['_findSuggestions'](_0x4188ba['range'],'attribute')['filter'](_0x2a7a45=>!_0x2a7a45['meta']['isNextTo'])['map'](_0x15e17c=>_0x15e17c['suggestion'])['filter'](_0x667f00=>{const _0x22f0d9=_0x3011d7['_getAttributeKey'](_0x667f00);return _0x1b1cba['includes'](_0x22f0d9);});if(_0x30d9e1['length']){for(const _0x4ab66c of _0x30d9e1)_0x319d9e['removeMarker'](_0x4ab66c['getFirstMarker']());_0x5ea3e4=!0x0;}}return _0x5ea3e4;}['assureChains'](){const _0x7f141a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x563e61=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x295b1e;const _0x276987=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x30230c=>{if(_0x30230c['data']['oldRange']||!_0x30230c['data']['newRange'])return null;if(!_0x30230c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x6d7b38}=_0x7f141a['_splitMarkerName'](_0x30230c['name']);if(!_0x7f141a['hasSuggestion'](_0x6d7b38))return null;const _0x4de7a8=_0x7f141a['getSuggestion'](_0x6d7b38);return _0x563e61['includes'](_0x4de7a8['data']['key']);})['map'](_0x2bb2fc=>{const {id:_0x2fe26a}=_0x7f141a['_splitMarkerName'](_0x2bb2fc['name']),_0x5d7437=_0x7f141a['getSuggestion'](_0x2fe26a);return _0x295b1e=_0x5d7437['attributes']['groupId'],_0x5d7437['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x276987['size'])return;const _0x136198=_0x7f141a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x135aac=>'attribute'==_0x135aac['type']&&_0x135aac['data']&&_0x563e61['includes'](_0x135aac['data']['key'])&&_0x135aac['attributes']['groupId']!=_0x295b1e)['map'](_0x1c6d8b=>({'listItem':_0x1c6d8b['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1c6d8b['attributes']['groupId']})),_0x387831=new Set();for(const {groupId:_0x66abde,listItem:_0x21a46b}of _0x136198)_0x276987['has'](_0x21a46b)&&_0x387831['add'](_0x66abde);for(const _0x7b8d7f of _0x7f141a['getSuggestions']())_0x387831['has'](_0x7b8d7f['attributes']['groupId'])&&_0x7b8d7f['setAttribute']('groupId',_0x295b1e);}['_supportLegacySuggestions'](){const _0x455fd8=this['editor'],_0x5c651e=_0x455fd8['locale'],_0x2da69f=_0x455fd8['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2da69f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4d14dd,_0x411cee){const _0x3b099c=[];for(let _0x4bbb7d of _0x4d14dd)_0x4bbb7d['start']['nodeAfter']===_0x4bbb7d['end']['parent']&&(_0x4bbb7d=_0x455fd8['model']['createRange'](_0x455fd8['model']['createPositionAt'](_0x4bbb7d['start']['nodeAfter'],0x0))),_0x3b099c['push'](_0x4bbb7d);_0x455fd8['model']['change'](_0x2e39d8=>{const _0x43e9ed=_0x455fd8['model']['document']['selection'],_0x5e97bf=Array['from'](_0x43e9ed['getRanges']())['map'](_0x1019c8=>_0x1b3589['fromRange'](_0x1019c8));_0x2e39d8['setSelection'](_0x3b099c),_0x455fd8['commands']['get'](_0x411cee['commandName'])['refresh'](),_0x411cee['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x455fd8['execute'](_0x411cee['commandName'],..._0x411cee['commandParams']),_0x2e39d8['setSelection'](_0x5e97bf);for(const _0x6266f2 of _0x5e97bf)_0x6266f2['detach']();});}),_0x2da69f['descriptionFactory']['registerElementLabel'](function(_0x4f388b){const _0x5a1445=!_0x455fd8['model']['schema']['isObject'](_0x4f388b),_0x5121ca=_0x4f388b['previousSibling'],_0x4dbb6c=_0x4f388b['nextSibling'],_0x4e17b0=_0x4f388b['getAttribute']('listItemId'),_0x2dd5c5=!_0x5121ca||_0x5121ca['getAttribute']('listItemId')!==_0x4e17b0,_0x543002=!_0x4dbb6c||_0x4dbb6c['getAttribute']('listItemId')!==_0x4e17b0;return _0x5a1445&&Boolean(_0x4e17b0)&&_0x2dd5c5&&_0x543002;},_0x3b2010=>o(_0x5c651e,'ELEMENT_LIST_ITEM',_0x3b2010));}['_registerLegacyDescription'](){const _0x21c2b7=this['editor'],_0xac8955=_0x21c2b7['locale'];function _0x431445(_0x44f653){const _0x493df8=_0x21c2b7['commands']['get']('bulletedList')['value'],_0x3e8569=_0x21c2b7['commands']['get']('numberedList')['value'];return'numberedList'===_0x44f653?_0x493df8:_0x3e8569;}_0x21c2b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5e1616){if('formatBlock'!=_0x5e1616['type'])return;const {data:_0xa048c5}=_0x5e1616;if(!_0xa048c5)return;let _0x17b7cd,_0x351a87,_0x2799cc,_0x31693e;switch(_0xa048c5['commandName']){case'bulletedList':_0x2799cc=_0xa048c5['commandParams'][0x0]['forceValue'],_0x31693e=_0x431445(_0xa048c5['commandName']),_0x17b7cd=_0x2799cc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x31693e&&_0x21c2b7['config']['get']('list.multiBlock')||(_0x17b7cd='*Change\x20to:*\x20%0'),_0x351a87={'type':'format','content':o(_0xac8955,_0x17b7cd,o(_0xac8955,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2799cc=_0xa048c5['commandParams'][0x0]['forceValue'],_0x31693e=_0x431445(_0xa048c5['commandName']),_0x17b7cd=_0x2799cc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x31693e&&_0x21c2b7['config']['get']('list.multiBlock')||(_0x17b7cd='*Change\x20to:*\x20%0'),_0x351a87={'type':'format','content':o(_0xac8955,_0x17b7cd,o(_0xac8955,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x17b7cd='*Indent:*\x20%0',_0x351a87={'type':'format','content':o(_0xac8955,_0x17b7cd,o(_0xac8955,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x17b7cd=function(_0x55584e){const _0xb4660a=_0x55584e['getFirstRange']();let _0x5a6ce2=_0xb4660a['start']['nodeAfter'];for(;_0x5a6ce2&&_0xb4660a['containsItem'](_0x5a6ce2);){if(_0x5a6ce2['getAttribute']('listIndent')>0x0)return!0x1;_0x5a6ce2=_0x5a6ce2['nextSibling'];}return!0x0;}(_0x5e1616)?o(_0xac8955,'*Format:*\x20remove\x20from\x20%0',o(_0xac8955,function(_0x16bb48){return'ELEMENT_'+_0x16bb48['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5e1616))):o(_0xac8955,'*Outdent:*\x20%0',o(_0xac8955,'ELEMENT_LIST_ITEM')),_0x351a87={'type':'format','content':_0x17b7cd};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xa048c5['multipleBlocks']&&(_0x17b7cd='*Merge:*\x20%0',_0x351a87={'type':'deletion','content':o(_0xac8955,_0x17b7cd,o(_0xac8955,'ELEMENT_LIST_ITEM'))});}return _0x351a87;});}}function Te(_0x31a25c){let _0x13431b=_0x31a25c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x13431b;){const _0x24c767=_0x13431b['getAttribute']('listItemId');if(!_0x24c767)return!0x1;if(_0x24c767==_0x31a25c['data']['newValue'])return'newValue';if(_0x24c767==_0x31a25c['data']['oldValue'])return'oldValue';_0x13431b=_0x13431b['previousSibling'];}return!0x1;}class H extends _0x335eea{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x447e44=this['editor']['config']['get']('list.properties'),_0x39d980=this['editor']['plugins']['get']('TrackChangesEditing');_0x447e44['styles']&&_0x39d980['enableDefaultAttributesIntegration']('listStyle'),_0x447e44['reversed']&&_0x39d980['enableDefaultAttributesIntegration']('listReversed'),_0x447e44['startIndex']&&_0x39d980['enableDefaultAttributesIntegration']('listStart');const _0x3c447f={'type':'format','content':''};_0x39d980['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5365d6=this['editor']['locale'];_0x39d980['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5365d6,'FORMAT_LIST_REVERSED')),_0x39d980['descriptionFactory']['registerDescriptionCallback'](_0x7fb74d=>{const {data:_0x505470}=_0x7fb74d;if(_0x505470&&'listReversed'==_0x505470['key'])return null==_0x505470['newValue']||0x0==_0x505470['newValue']&&null==_0x505470['oldValue']?_0x3c447f:void 0x0;}),_0x39d980['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5365d6,'FORMAT_LIST_START')),_0x39d980['descriptionFactory']['registerDescriptionCallback'](_0x3b057d=>{const {data:_0x34cafe}=_0x3b057d;if(_0x34cafe&&'listStart'==_0x34cafe['key'])return null==_0x34cafe['newValue']||0x1==_0x34cafe['newValue']&&null==_0x34cafe['oldValue']?_0x3c447f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1b64d6=>{if(_0x1b64d6['batch']['isUndo'])return!0x1;let _0x1c7f2f=!0x1;const _0x4fd0bf=_0x39d980['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e589e=>{const _0x3853a3=_0x39d980['_getAttributeKey'](_0x2e589e);return'listStart'==_0x3853a3||'listReversed'==_0x3853a3;});for(const _0xf68429 of _0x4fd0bf){const _0x4f0a03=_0xf68429['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4f0a03||'customNumbered'==_0x4f0a03)continue;_0x39d980['_findSuggestions'](_0xf68429['getFirstRange'](),'attribute')['find'](_0x44a92b=>'listType'==_0x39d980['_getAttributeKey'](_0x44a92b['suggestion']))||(_0x1b64d6['removeMarker'](_0xf68429['getFirstMarker']()),_0x1c7f2f=!0x0);}return _0x1c7f2f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4aabd1){const _0x469c96=this['editor']['locale'],{data:_0x25caed}=_0x4aabd1,_0x26057c={'type':'format','content':''};if(!_0x25caed||'listStyle'!=_0x25caed['key'])return;if(!_0x25caed['oldValue'])return'default'==_0x25caed['newValue']?_0x26057c:{'type':'format','content':''+o(_0x469c96,'*Set\x20format:*\x20%0',o(_0x469c96,this['_getTranslationKeyForListStyle'](_0x25caed['newValue'])))};if(!_0x25caed['newValue']){if('default'==_0x25caed['oldValue'])return _0x26057c;let _0x513189=_0x4aabd1['head'];for(;_0x513189;){if(_0x513189['data']&&'listType'==_0x513189['data']['key']&&_0x513189['data']['newValue'])return _0x26057c;_0x513189=_0x513189['next'];}return{'type':'format','content':''+o(_0x469c96,'*Remove\x20format:*\x20%0',o(_0x469c96,this['_getTranslationKeyForListStyle'](_0x25caed['oldValue'])))};}if('default'!=_0x25caed['newValue'])return{'type':'format','content':''+o(_0x469c96,'*Set\x20format:*\x20%0',o(_0x469c96,this['_getTranslationKeyForListStyle'](_0x25caed['newValue'])))};let _0x51a4f4=_0x4aabd1['head'];for(;_0x51a4f4;){if(_0x51a4f4['data']&&'listType'==_0x51a4f4['data']['key']&&_0x51a4f4['data']['newValue']&&_0x51a4f4['data']['oldValue'])return _0x26057c;_0x51a4f4=_0x51a4f4['next'];}return{'type':'format','content':o(_0x469c96,'*Set\x20format:*\x20%0',o(_0x469c96,'ELEMENT_'+_0x4aabd1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2c35b3=this['editor'],_0x4e0bf0=_0x2c35b3['locale'];_0x2c35b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x596435=>{if('formatBlock'!=_0x596435['type'])return;const {data:_0xa566e7}=_0x596435;if(!_0xa566e7)return;let _0x5d5ee1,_0x254e11;switch(_0xa566e7['commandName']){case'listStyle':_0x5d5ee1='*Change\x20to:*\x20%0',_0x254e11={'type':'format','content':o(_0x4e0bf0,_0x5d5ee1,o(_0x4e0bf0,this['_getTranslationKeyForListStyle'](_0xa566e7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5d5ee1=_0xa566e7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x254e11={'type':'format','content':o(_0x4e0bf0,_0x5d5ee1)};break;case'listStart':_0x5d5ee1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x254e11={'type':'format','content':o(_0x4e0bf0,_0x5d5ee1,_0xa566e7['commandParams'][0x0]['startIndex'])};}return _0x254e11;});}['_getTranslationKeyForListStyle'](_0xfe4c00){return'ELEMENT_'+function(_0x4cd0d3){if(ye['includes'](_0x4cd0d3))return'bulleted';if(Se['includes'](_0x4cd0d3))return'numbered';return null;}(_0xfe4c00)['toUpperCase']()+'_LIST_'+_0xfe4c00['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x335eea{['afterInit'](){const _0x2a1294=this['editor'];_0x2a1294['commands']['get']('emoji')&&_0x2a1294['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x335eea{static get['requires'](){return[_0x348567];}['init'](){const _0x488c20=this['editor'],_0x5a63b6=_0x488c20['plugins']['get']('TrackChangesEditing'),_0x400765=_0x488c20['commands']['get']('enter');_0x5a63b6['enableCommand']('enter',()=>{_0x488c20['model']['change'](_0x23e2bb=>{const _0x226467=_0x488c20['model']['document']['selection'],_0x2bf197=_0x226467['getFirstPosition'](),_0xdc8e6f=_0x1b3589['fromRange'](_0x226467['getFirstRange']());if(_0x400765['enterBlock'](_0x23e2bb)){const _0x8dbc9f=_0x488c20['model']['createPositionAt'](_0x2bf197['parent']['nextSibling'],0x0),_0x3d5f95=_0x23e2bb['createRange'](_0x2bf197,_0x8dbc9f);_0x5a63b6['markInsertion'](_0x3d5f95);}else _0x23e2bb['setSelection'](_0x23e2bb['createRange'](_0xdc8e6f['end']));_0xdc8e6f['detach'](),_0x400765['fire']('afterExecute',{'writer':_0x23e2bb});});});}}class Y extends _0x335eea{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1187b3=this['editor']['plugins']['get']('TrackChangesEditing');_0x1187b3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1187b3['enableCommand']('findNext'),_0x1187b3['enableCommand']('findPrevious'),_0x1187b3['enableCommand']('replace'),_0x1187b3['enableCommand']('replaceAll');}['handleFindCommand'](_0x2c3931,_0x3e7f50,_0x1b3451={}){const _0x468388=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2c3931(_0x5c9b6d=>{let _0xbc5b88=('string'==typeof _0x3e7f50?_0x468388['findByTextCallback'](_0x3e7f50,_0x1b3451):_0x3e7f50)(_0x5c9b6d);Array['isArray'](_0xbc5b88)&&(_0xbc5b88={'results':_0xbc5b88,'searchText':'string'==typeof _0x3e7f50?_0x3e7f50:''});const _0x3a3fb7=_0xbc5b88['results']['filter'](_0x44e2b5=>!0x1===this['_isInDeletionRange'](_0x44e2b5,_0x5c9b6d['item']));return{..._0xbc5b88,'results':_0x3a3fb7};},_0x1b3451);}['_isInDeletionRange'](_0x56299c,_0x506ae9){const _0xd359cb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x506ae9,_0x56299c['start']),this['editor']['model']['createPositionAt'](_0x506ae9,_0x56299c['end']));for(const _0x550f9a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xd359cb['getIntersection'](_0x550f9a['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 _0x335eea{['afterInit'](){const _0x9ff520=this['editor']['locale'],_0x3c8a9a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x573e8e,commandName:_0x410570}of eo)this['editor']['plugins']['has'](_0x573e8e)&&_0x3c8a9a['enableDefaultAttributesIntegration'](_0x410570);_0x3c8a9a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x9ff520,'FORMAT_FONT_SIZE')),_0x3c8a9a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x9ff520,'FORMAT_FONT_FAMILY')),_0x3c8a9a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x9ff520,'FORMAT_FONT_COLOR')),_0x3c8a9a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x9ff520,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fc4ee=this['editor'],_0x4235ef=_0x3fc4ee['locale'];_0x3fc4ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c0b47=>{const _0x3e92bd=_0x4235ef['t'];if('formatInline'!=_0x5c0b47['type'])return;const {data:_0x334615}=_0x5c0b47;if(null!=_0x334615){if('fontSize'==_0x334615['commandName']){const _0x562730=_0x334615['commandParams'][0x0]['value'];if(_0x562730){const _0x5510fd=_0x3e92bd(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x28f753=>_0x28f753['model']==_0x562730)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4235ef,'*Set\x20font\x20size:*\x20%0',_0x5510fd)};}return{'type':'format','content':o(_0x4235ef,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x334615['commandName']){const _0x2a25f4=_0x334615['commandParams'][0x0]['value'];return _0x2a25f4?{'type':'format','content':o(_0x4235ef,'*Set\x20font\x20family:*\x20%0',_0x2a25f4)}:{'type':'format','content':o(_0x4235ef,'*Reset\x20font\x20family*')};}if('fontColor'==_0x334615['commandName']){const _0x259dff=_0x334615['commandParams'][0x0]['value'];if(_0x259dff){const _0x455831=_0x43d8b1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2b124b=>_0x2b124b['model']==_0x259dff);let _0x34de27=_0x259dff,_0x1860c2='';return _0x455831&&(_0x34de27=_0x455831['label'],_0x1860c2=_0x3e92bd(_0x34de27)['toLowerCase']()),{'type':'format','content':o(_0x4235ef,'*Set\x20font\x20color:*\x20%0',_0x1860c2)['trim'](),'color':{'value':_0x259dff,'title':_0x1860c2||_0x34de27}};}return{'type':'format','content':o(_0x4235ef,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x334615['commandName']){const _0x3795f1=_0x334615['commandParams'][0x0]['value'];if(_0x3795f1){const _0x30f128=_0x43d8b1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x27193b=>_0x27193b['model']==_0x3795f1);let _0x3c8a00=_0x3795f1,_0x11cf35='';return _0x30f128&&(_0x3c8a00=_0x30f128['label'],_0x11cf35=_0x3e92bd(_0x3c8a00)['toLowerCase']()),{'type':'format','content':o(_0x4235ef,'*Set\x20font\x20background\x20color:*\x20%0',_0x11cf35)['trim'](),'color':{'value':_0x3795f1,'title':_0x11cf35||_0x3c8a00}};}return{'type':'format','content':o(_0x4235ef,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x335eea{['afterInit'](){const {plugins:_0x444b16}=this['editor'];_0x444b16['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x444b16['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x4b3d70,plugins:_0x46e5e3,commands:_0x33116d}=this['editor'],_0x23cd02=_0x46e5e3['get']('TrackChangesEditing');_0x33116d['get']('footnotesStyle')&&_0x23cd02['enableDefaultAttributesIntegration']('footnotesStyle'),_0x33116d['get']('footnotesStart')&&_0x23cd02['enableDefaultAttributesIntegration']('footnotesStart'),_0x23cd02['registerBlockAttribute']('footnotesListStyle'),_0x23cd02['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x4b3d70,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x23cd02['registerBlockAttribute']('footnotesListStart'),_0x23cd02['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x4b3d70,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x11dcff=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x1f3ab5,commands:_0x5e3549}=this['editor'];_0x5e3549['get']('insertFootnote')&&_0x11dcff['enableCommand']('insertFootnote'),_0x11dcff['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2f3dd0=>o(_0x1f3ab5,'ELEMENT_FOOTNOTE_REF',_0x2f3dd0)),_0x11dcff['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4438a4=>o(_0x1f3ab5,'ELEMENT_FOOTNOTE_DEFINITION',_0x4438a4)),_0x11dcff['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x2dd8b4=>o(_0x1f3ab5,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x2dd8b4));}}class nt extends _0x335eea{['afterInit'](){const _0x4df238=this['editor'],_0x5e8a83=_0x4df238['plugins']['get']('TrackChangesEditing'),_0x121e51=_0x4df238['commands']['get']('copyFormat'),_0x3aa21f=_0x4df238['commands']['get']('pasteFormat');_0x121e51&&_0x3aa21f&&(_0x5e8a83['enableDefaultAttributesIntegration']('pasteFormat'),_0x5e8a83['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x797c48=this['editor'],_0xf25342=_0x797c48['locale'];_0x797c48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x305ac1=>{if('formatBlock'!=_0x305ac1['type']&&'formatInline'!=_0x305ac1['type'])return;const {data:_0x19d3b4}=_0x305ac1;if(_0x19d3b4&&'pasteFormat'===_0x19d3b4['commandName']){const _0x4daf3a=[],_0x23cfc9=_0x19d3b4['commandParams'][0x0];for(const [_0x5c4bf0,_0xe5f6ee]of Object['entries'](_0x23cfc9))_0x4daf3a['push'](ro(_0x797c48,_0x5c4bf0,_0xe5f6ee));return _0x4daf3a['length']?{'type':'format','content':o(_0xf25342,'*Set\x20format\x20to:*\x20%0',_0x4daf3a['join'](',\x20'))}:{'type':'format','content':o(_0xf25342,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1c905b,_0x5de1c7,_0x202503){const _0x434ed0=_0x1c905b['locale']['t'],_0x537148=_0x5de1c7['split'](/(?=[A-Z])/)['join']('\x20'),_0x33f81a=_0x434ed0(_0x537148['charAt'](0x0)['toUpperCase']()+_0x537148['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x202503)return _0x33f81a;if('fontColor'===_0x5de1c7||'fontBackgroundColor'===_0x5de1c7){const _0x5c669f=_0x43d8b1(_0x1c905b['config']['get']('fontColor.colors'))['find'](_0x334628=>_0x334628['model']==_0x202503);return _0x33f81a+'\x20('+(_0x5c669f?_0x434ed0(_0x5c669f['label'])['toLowerCase']():_0x202503)+')';}if('fontSize'===_0x5de1c7&&isNaN(parseFloat(_0x202503))){const _0x5ba43c=_0x1c905b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1c905b['config']['get']('fontSize.options'))['find'](_0x5237cd=>_0x5237cd['model']==_0x202503);return _0x33f81a+'\x20('+(_0x5ba43c?_0x434ed0(_0x5ba43c['title'])['toLowerCase']():_0x202503)+')';}return _0x33f81a+'\x20('+_0x202503+')';}class it extends _0x335eea{['_headingOptions'];['afterInit'](){const _0x2b4721=this['editor'];if(!_0x2b4721['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2b4721['config']['get']('heading.options');const _0x36f454=_0x2b4721['locale'],_0x13e510=_0x2b4721['plugins']['get']('TrackChangesEditing');_0x13e510['enableDefaultAttributesIntegration']('heading');for(const _0x348809 of this['_headingOptions'])'paragraph'!=_0x348809['model']&&_0x13e510['descriptionFactory']['registerElementLabel'](_0x348809['model'],_0x200710=>{const _0x28f338=this['_getHeadingLevel'](_0x348809['model']);return null!==_0x28f338?_0x353167(_0x200710,_0x28f338):_0x1a765e(_0x200710,_0x348809['title']);});function _0x353167(_0x460984,_0x252722){return o(_0x36f454,'ELEMENT_HEADING',[_0x460984,_0x252722]);}function _0x1a765e(_0x49803b,_0x3e3141){return o(_0x36f454,'ELEMENT_HEADING_CUSTOM',[_0x49803b,_0x3e3141]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ad08b=this['editor'],_0x3fc8ef=_0x3ad08b['locale'];function _0x374469(_0x15efe6,_0x36bde1){return o(_0x3fc8ef,'ELEMENT_HEADING_CUSTOM',[_0x15efe6,_0x36bde1]);}_0x3ad08b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe3dd63=>{if('formatBlock'!=_0xe3dd63['type'])return;const {data:_0x383205}=_0xe3dd63;if(_0x383205&&'heading'==_0x383205['commandName']){const _0x3e9a37=_0x383205['commandParams'][0x0]['value'],_0x556a5d=this['_getHeadingLevel'](_0x3e9a37);if(null!==_0x556a5d)return{'type':'format','content':o(_0x3fc8ef,'*Change\x20to:*\x20%0',(_0x5ed804=0x1,_0x5d651a=_0x556a5d,o(_0x3fc8ef,'ELEMENT_HEADING',[_0x5ed804,_0x5d651a])))};const _0x1180c3=this['_headingOptions']['find'](_0x51ecee=>_0x51ecee['model']===_0x3e9a37)['title'];return{'type':'format','content':o(_0x3fc8ef,'*Change\x20to:*\x20%0',_0x374469(0x1,_0x1180c3))};}var _0x5ed804,_0x5d651a;});}['_getHeadingLevel'](_0x353856){const _0x5657ab=_0x353856['match'](/^heading(\d+)/);if(_0x5657ab)return _0x5657ab[0x1];const _0x4eb89e=this['_headingOptions']?.['find'](_0xf1a3ce=>_0xf1a3ce['model']==_0x353856);if(_0x4eb89e&&_0x4eb89e['view']){const _0x4c45fd=_0x4eb89e['view'],_0x30db04=(_0x4c45fd['name']??_0x4c45fd)['match'](/^h(\d+)/);if(_0x30db04)return _0x30db04[0x1];}return null;}}class et extends _0x335eea{['afterInit'](){const _0x4ada0b=this['editor'];if(!_0x4ada0b['plugins']['has']('HighlightEditing'))return;const _0x5108ca=_0x4ada0b['plugins']['get']('TrackChangesEditing'),_0x33dc6a=_0x4ada0b['locale'];_0x5108ca['enableDefaultAttributesIntegration']('highlight'),_0x5108ca['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x33dc6a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f3ea5=this['editor'],_0x491051=_0x3f3ea5['locale'];_0x3f3ea5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5361be=>{if('formatInline'!=_0x5361be['type'])return;const {data:_0x2ff6e6}=_0x5361be;if(_0x2ff6e6&&'highlight'==_0x2ff6e6['commandName']){const _0x3cf0bc=_0x491051['t'],_0x28b980=_0x2ff6e6['commandParams'][0x0]['value'];if(_0x28b980){const _0x24832b=_0x3f3ea5['config']['get']('highlight.options')['find'](_0xcc6e67=>_0xcc6e67['model']==_0x28b980),_0x30fa2b=_0x3cf0bc(_0x24832b['title'])['toLowerCase']();return{'type':'format','content':o(_0x491051,'*Set\x20highlight:*\x20%0',_0x30fa2b),'color':{'value':_0x24832b['color'],'title':_0x24832b['title']}};}return{'type':'format','content':o(_0x491051,'*Remove\x20highlight*',o(_0x491051,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x335eea{['afterInit'](){const _0x12361c=this['editor'];if(!_0x12361c['plugins']['has']('HorizontalLineEditing'))return;_0x12361c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x55dfee=_0x12361c['plugins']['get']('TrackChangesEditing'),_0x22cfd0=_0x12361c['locale'];_0x55dfee['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1339ad=>o(_0x22cfd0,'ELEMENT_HORIZONTAL_LINE',_0x1339ad));}}class ot extends _0x335eea{['afterInit'](){const _0x52246b=this['editor'];if(!_0x52246b['plugins']['has']('HtmlEmbed'))return;const _0x17e0ea=_0x52246b['plugins']['get']('TrackChangesEditing'),_0x38d64d=_0x52246b['locale'];_0x17e0ea['descriptionFactory']['registerElementLabel']('rawHtml',_0x487519=>o(_0x38d64d,'ELEMENT_HTML_EMBED',_0x487519)),_0x17e0ea['enableDefaultAttributesIntegration']('htmlEmbed'),_0x17e0ea['descriptionFactory']['registerDescriptionCallback'](_0x279ef8=>{if('attribute'!=_0x279ef8['type'])return;const {data:_0x3f01c6}=_0x279ef8;if(_0x3f01c6&&'value'==_0x3f01c6['key']&&_0x279ef8['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xc34191=o(_0x38d64d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x38d64d,'*Change\x20%0\x20content*',_0xc34191)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x306b64=this['editor'],_0x28a4aa=_0x306b64['locale'];_0x306b64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bccb1=>{if('formatBlock'!=_0x1bccb1['type'])return;const {data:_0x1b5d38}=_0x1bccb1;if(_0x1b5d38&&'htmlEmbed'==_0x1b5d38['commandName']){const _0x2e9869=o(_0x28a4aa,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x28a4aa,'*Change\x20%0\x20content*',_0x2e9869)};}});}}class rt extends _0x335eea{['afterInit'](){const _0x38f126=this['editor'];if(!_0x38f126['plugins']['has']('ImageEditing'))return;const _0x31064c=_0x38f126['plugins']['get']('TrackChangesEditing'),_0x44e1db=_0x38f126['plugins']['get']('ImageUtils'),_0x5f3eb1=_0x38f126['locale'];_0x31064c['enableCommand']('insertImage'),_0x31064c['descriptionFactory']['registerElementLabel']('imageBlock',_0x1e547d=>o(_0x5f3eb1,'ELEMENT_IMAGE',_0x1e547d)),_0x31064c['descriptionFactory']['registerElementLabel']('imageInline',_0x5153a7=>o(_0x5f3eb1,'ELEMENT_INLINE_IMAGE',_0x5153a7)),_0x31064c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5f3eb1,'ELEMENT_CAPTION')),_0x38f126['plugins']['has']('ImageUploadEditing')&&_0x31064c['enableCommand']('uploadImage'),_0x38f126['plugins']['has']('ImageBlockEditing')&&_0x38f126['plugins']['has']('ImageInlineEditing')&&(_0x31064c['enableCommand']('imageTypeInline',(_0x1dd989,_0x5a935b)=>{const _0x1f6127=_0x44e1db['getClosestSelectedImageElement'](_0x38f126['model']['document']['selection']);_0x38f126['model']['change'](()=>{_0x31064c['markBlockFormat'](_0x1f6127,{'commandName':'imageTypeInline','commandParams':[_0x5a935b]},[],'convertBlockImageToInline');});}),_0x31064c['enableCommand']('imageTypeBlock',(_0x473853,_0x382b2a)=>{_0x38f126['model']['change'](_0x23c7f1=>{let _0x452889=_0x44e1db['getClosestSelectedImageElement'](_0x38f126['model']['document']['selection']),_0xd03c1=_0x23c7f1['createRangeOn'](_0x452889);const _0xdbefa4=_0x31dbe3['fromPosition'](_0xd03c1['start'],'toPrevious'),_0x11d5fc=_0x31dbe3['fromPosition'](_0xd03c1['end'],'toNext');_0x31064c['forceDefaultExecution'](()=>_0x473853(_0x382b2a)),_0x452889=_0x44e1db['getClosestSelectedImageElement'](_0x38f126['model']['document']['selection']),_0xd03c1=_0x23c7f1['createRangeOn'](_0x452889);const _0x3cf28d=_0x23c7f1['createRange'](_0xdbefa4,_0x11d5fc);_0xdbefa4['detach'](),_0x11d5fc['detach'](),_0x31064c['markBlockFormat'](_0x452889,{'commandName':'imageTypeInline','commandParams':[_0x382b2a]},[],'convertInlineImageToBlock'),_0x3cf28d['start']['isBefore'](_0xd03c1['start'])&&_0x31064c['markInsertion'](_0x23c7f1['createRange'](_0x3cf28d['start'],_0xd03c1['start']),'convertInlineImageToBlock'),_0xd03c1['end']['isBefore'](_0x3cf28d['end'])&&_0x31064c['markInsertion'](_0x23c7f1['createRange'](_0xd03c1['end'],_0x3cf28d['end']),'convertInlineImageToBlock');});}),_0x31064c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x31064c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x31064c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x31064c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x31064c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x31064c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x322416])=>{const _0x373c70=_0x31064c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5aab49=_0x322416['start'],_0x3bcacc=_0x322416['end'];const _0x306885=_0x38f126['model']['schema']['getNearestSelectionRange'](_0x5aab49,'backward'),_0x48525c=_0x38f126['model']['schema']['getNearestSelectionRange'](_0x3bcacc,'forward');_0x306885['isCollapsed']&&(_0x5aab49=_0x306885['start']),_0x48525c['isCollapsed']&&(_0x3bcacc=_0x48525c['end']),_0x373c70([_0x38f126['model']['createRange'](_0x5aab49,_0x3bcacc)]);}),_0x31064c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x14a645),_0x31064c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x14a645)),_0x38f126['plugins']['has']('ImageCaptionEditing')&&(_0x31064c['enableCommand']('toggleImageCaption',(_0x2e53e2,_0x19cf1a)=>{const _0x24dc83=_0x38f126['plugins']['get']('ImageCaptionUtils');let _0x1044cb=_0x44e1db['getClosestSelectedImageElement'](_0x38f126['model']['document']['selection']),_0x121a66=_0x24dc83['getCaptionFromImageModelElement'](_0x1044cb);_0x38f126['model']['change'](()=>{if(_0x121a66)return void _0x31064c['markDeletion'](_0x38f126['model']['createRangeOn'](_0x121a66));const _0x173ee4=_0x44e1db['isBlockImage'](_0x1044cb);_0x2e53e2(_0x19cf1a),_0x1044cb=_0x44e1db['getClosestSelectedImageElement'](_0x38f126['model']['document']['selection']),_0x121a66=_0x24dc83['getCaptionFromImageModelElement'](_0x1044cb),_0x31064c['markInsertion'](_0x38f126['model']['createRangeOn'](_0x121a66),_0x173ee4?null:'imageCaption');});}),_0x31064c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x14a645));const _0x49b921=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x38e988(_0x421a82,_0x137456){const _0x1b3aa8=_0x49b921['findIndex'](({type:_0x351ff3,subType:_0x39ba05})=>_0x421a82['type']==_0x351ff3&&_0x421a82['subType']==_0x39ba05),_0x42c1f9=_0x49b921['findIndex'](({type:_0x29b45c,subType:_0x3463d8})=>_0x137456['type']==_0x29b45c&&_0x137456['subType']==_0x3463d8);if(_0x1b3aa8<0x0||_0x42c1f9<0x0)return!0x1;const _0x3be536=_0x421a82['getFirstRange'](),_0x571b7a=_0x137456['getFirstRange']();if((0x0==_0x1b3aa8||0x1==_0x1b3aa8)&&0x2==_0x42c1f9&&_0x3be536['isIntersecting'](_0x571b7a))return!0x0;if(0x2==_0x1b3aa8&&0x3==_0x42c1f9){const _0x27e892=_0x31064c['_findSuggestions'](_0x3be536,'insertion')['filter'](({suggestion:_0x56e010,meta:_0x41bcde})=>_0x41bcde['isOwn']&&'convertInlineImageToBlock'==_0x56e010['subType']);if(_0x27e892['length']>0x1&&_0x571b7a['end']['isEqual'](_0x3be536['start']))return!0x0;if(0x1==_0x27e892['length']&&(_0x3be536['start']['isEqual'](_0x571b7a['end'])||_0x3be536['end']['isEqual'](_0x571b7a['start'])))return!0x0;}if(0x3==_0x1b3aa8&&0x3==_0x42c1f9&&_0x3be536['start']['isBefore'](_0x571b7a['start'])){const _0x9d5992=_0x3be536['end']['nodeAfter'],_0x3bf494=_0x571b7a['start']['nodeBefore'];return _0x44e1db['isBlockImage'](_0x9d5992)&&_0x9d5992===_0x3bf494;}return!0x1;}function _0x14a645(_0x502ad7,_0x5891d7){return _0x38e988(_0x502ad7,_0x5891d7)?[_0x502ad7,_0x5891d7]:_0x38e988(_0x5891d7,_0x502ad7)?[_0x5891d7,_0x502ad7]:null;}_0x38f126['plugins']['has']('ImageResize')&&(_0x31064c['enableDefaultAttributesIntegration']('resizeImage'),_0x31064c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5f3eb1,'FORMAT_IMAGE_SIZE'))),_0x38f126['plugins']['has']('ImageTextAlternativeEditing')&&_0x31064c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x38f126['plugins']['has']('PictureEditing')&&_0x31064c['descriptionFactory']['registerDescriptionCallback'](_0x1b57fb=>{if('attribute'!=_0x1b57fb['type'])return;const {data:_0x5686c1}=_0x1b57fb;return _0x5686c1&&'sources'==_0x5686c1['key']?{'type':'format','content':''}:void 0x0;}),_0x38f126['plugins']['has']('ImageSizeAttributes')&&_0x31064c['descriptionFactory']['registerDescriptionCallback'](_0x1a5f62=>{if('attribute'!=_0x1a5f62['type'])return;const {data:_0x5d54b4}=_0x1a5f62;return!_0x5d54b4||'width'!=_0x5d54b4['key']&&'height'!=_0x5d54b4['key']?void 0x0:{'type':'format','content':''};}),_0x31064c['descriptionFactory']['registerDescriptionCallback'](_0x570c65=>{if(!!_0x49b921['find'](({type:_0x525690,subType:_0x367669})=>_0x570c65['type']==_0x525690&&_0x570c65['subType']==_0x367669))return _0x570c65['previous']?{}:void 0x0;}),_0x31064c['descriptionFactory']['registerDescriptionCallback'](_0x4b5b7d=>{if('insertion'==_0x4b5b7d['type']||'deletion'==_0x4b5b7d['type']){const _0x2e1134=_0x4b5b7d['getContainedElement']();if(_0x2e1134&&_0x2e1134['is']('element','caption'))return{'type':'insertion'==_0x4b5b7d['type']?'addObject':'removeObject','element':_0x2e1134,'quantity':0x1};}}),_0x31064c['descriptionFactory']['registerDescriptionCallback'](_0x4fad09=>'formatBlock'==_0x4fad09['type']&&'convertInlineImageToBlock'==_0x4fad09['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4fad09['type']&&'convertBlockImageToInline'==_0x4fad09['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x31064c['descriptionFactory']['registerDescriptionCallback'](_0x575952=>{if('attribute'!=_0x575952['type'])return;const {data:_0x154d07}=_0x575952;if(!_0x154d07||'alt'!=_0x154d07['key'])return;const _0xa1467a=_0x154d07['newValue'];return _0xa1467a?{'type':'format','content':o(_0x5f3eb1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xa1467a+'\x22')}:{'type':'format','content':o(_0x5f3eb1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b4672=this['editor'],_0x34fa92=_0x1b4672['locale'];_0x1b4672['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x576bc5=>{if('formatBlock'!=_0x576bc5['type']&&'formatInline'!=_0x576bc5['type'])return;const {data:_0x34081b}=_0x576bc5;if(_0x34081b){if('imageTextAlternative'==_0x34081b['commandName']){const _0x5a3a96=_0x34081b['commandParams'][0x0]['newValue'];return _0x5a3a96?{'type':'format','content':o(_0x34fa92,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a3a96+'\x22')}:{'type':'format','content':o(_0x34fa92,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x34081b['commandName']){const _0xba217=_0x34081b['commandParams'][0x0]['width'];return _0xba217?{'type':'format','content':o(_0x34fa92,'*Set\x20image\x20width:*\x20%0',_0xba217)}:{'type':'format','content':o(_0x34fa92,'*Reset\x20image\x20width*')};}}});}}class at extends _0x335eea{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5cc8f9=this['editor']['locale'],_0x5baa7a=this['editor']['plugins']['get']('TrackChangesEditing');_0x5baa7a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5baa7a['descriptionFactory']['registerDescriptionCallback'](_0x35c4ac=>{if('attribute'!=_0x35c4ac['type'])return;const {data:_0x377bd7}=_0x35c4ac;return _0x377bd7&&'src'==_0x377bd7['key']?_0x377bd7['newValue']&&_0x377bd7['oldValue']?{'type':'format','content':o(_0x5cc8f9,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x9a6d54=this['editor']['plugins']['get']('TrackChangesEditing');_0x9a6d54['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x9a6d54['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x9a6d54['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x9a6d54['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36ace3=this['editor'],_0x41ba16=_0x36ace3['locale'];_0x36ace3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e34d8=>{if('formatBlock'!=_0x4e34d8['type']&&'formatInline'!=_0x4e34d8['type'])return;const {data:_0x43b286}=_0x4e34d8;if(!_0x43b286||'replaceImageSource'!=_0x43b286['commandName'])return;return{'type':'format','content':o(_0x41ba16,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x335eea{['afterInit'](){const _0x13440d=this['editor'];if(!_0x13440d['plugins']['has']('ImageStyleEditing'))return;const _0x51b4ff=_0x13440d['plugins']['get']('TrackChangesEditing'),_0x10f189=_0x13440d['plugins']['get']('ImageUtils'),_0x181052={};_0x51b4ff['enableCommand']('imageStyle',(_0x5cc244,_0x4d5180)=>{const _0x201337=_0x13440d['plugins']['get']('Users')['me'],_0x279025=_0x13440d['commands']['get']('imageStyle');let _0x378864=_0x10f189['getClosestSelectedImageElement'](_0x13440d['model']['document']['selection']),_0x4a965b=_0x13440d['model']['createRangeOn'](_0x378864),_0x29c852=_0x279025['value'];if(_0x29c852==_0x4d5180['value'])return;const _0x70f57a={'commandName':'imageStyle','commandParams':[_0x4d5180],'formatGroupId':_0x2984a9()};_0x13440d['model']['change'](()=>{if(_0x51b4ff['getSuggestions']()['filter'](_0x5381ba=>_0x5381ba['isInContent']&&_0x201337==_0x5381ba['author']&&('formatBlock'==_0x5381ba['type']||'formatInline'==_0x5381ba['type'])&&('imageStylePreApply'==_0x5381ba['subType']||'imageStylePostApply'==_0x5381ba['subType'])&&_0x5381ba['getFirstRange']()['isEqual'](_0x4a965b))['forEach'](_0x9c4fa8=>_0x51b4ff['discardSuggestion'](_0x9c4fa8['head'])),_0x378864=_0x10f189['getClosestSelectedImageElement'](_0x13440d['model']['document']['selection']),_0x4a965b=_0x13440d['model']['createRangeOn'](_0x378864),_0x279025['refresh'](),_0x13440d['commands']['get']('imageTypeInline')['refresh'](),_0x13440d['commands']['get']('imageTypeBlock')['refresh'](),_0x29c852=_0x279025['value'],_0x29c852!=_0x4d5180['value'])return _0x10f189['isInlineImage'](_0x378864)&&_0x279025['shouldConvertImageType'](_0x4d5180['value'],_0x378864)?(_0x5cc244({..._0x4d5180,'setImageSizes':!0x1}),_0x378864=_0x10f189['getClosestSelectedImageElement'](_0x13440d['model']['document']['selection']),void _0x51b4ff['markBlockFormat'](_0x378864,{..._0x70f57a,'commandReversedParams':[{'value':_0x29c852||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x10f189['isBlockImage'](_0x378864)?_0x51b4ff['markBlockFormat'](_0x378864,_0x70f57a,[],'imageStylePostApply'):_0x51b4ff['markInlineFormat'](_0x4a965b,_0x70f57a,'imageStylePostApply'));});});for(const _0xe41fd7 of _0x13440d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x181052[_0xe41fd7['name']]=_0xe41fd7['title']['toLowerCase']();_0x51b4ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x51b4ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x51b4ff['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x51b4ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2723a5])=>{_0x10f189['setImageNaturalSizeAttributes'](_0x2723a5['getContainedElement']());}),_0x51b4ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3984d7,_0x1c03d0)=>{_0x51b4ff['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3984d7,{'commandName':_0x1c03d0['commandName'],'commandParams':_0x1c03d0['commandReversedParams']});}),_0x51b4ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x350cc2,_0x4ee6c9){if(_0x2cb91d(_0x350cc2,_0x4ee6c9))return[_0x350cc2,_0x4ee6c9];if(_0x2cb91d(_0x4ee6c9,_0x350cc2))return[_0x4ee6c9,_0x350cc2];return null;});const _0x35363b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2cb91d(_0x4e3f6e,_0x2fe02e){const _0xc1c584=_0x35363b['findIndex'](({type:_0x249c33,subType:_0x2ee241})=>_0x4e3f6e['type']==_0x249c33&&_0x4e3f6e['subType']==_0x2ee241),_0x463a42=_0x35363b['findIndex'](({type:_0x43386,subType:_0x17711b})=>_0x2fe02e['type']==_0x43386&&_0x2fe02e['subType']==_0x17711b);if(_0xc1c584<0x0||_0x463a42<0x0)return!0x1;const _0x8fcd5f=_0x4e3f6e['getFirstRange'](),_0x4dfc38=_0x2fe02e['getFirstRange']();if((0x0==_0xc1c584||0x1==_0xc1c584)&&0x2==_0x463a42&&_0x8fcd5f['isIntersecting'](_0x4dfc38))return!0x0;if(0x2==_0xc1c584&&0x3==_0x463a42){const _0x255a91=_0x51b4ff['_findSuggestions'](_0x8fcd5f,'insertion')['filter'](({suggestion:_0x3af46c,meta:_0x4109fe})=>_0x4109fe['isOwn']&&'convertInlineImageToBlock'==_0x3af46c['subType']);if(_0x255a91['length']>0x1&&_0x4dfc38['end']['isEqual'](_0x8fcd5f['start']))return!0x0;if(0x1==_0x255a91['length']&&(_0x8fcd5f['start']['isEqual'](_0x4dfc38['end'])||_0x8fcd5f['end']['isEqual'](_0x4dfc38['start'])))return!0x0;}if(0x3==_0xc1c584&&0x3==_0x463a42&&_0x8fcd5f['start']['isBefore'](_0x4dfc38['start'])){const _0x1e91c5=_0x8fcd5f['end']['nodeAfter'],_0x5bae6b=_0x4dfc38['start']['nodeBefore'];return _0x10f189['isBlockImage'](_0x1e91c5)&&_0x1e91c5===_0x5bae6b;}return!0x1;}_0x13440d['model']['document']['registerPostFixer'](()=>{let _0xe0cbd2=!0x1;const _0x4bbdd3=Array['from'](_0x13440d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x193503,data:_0x5794ce}of _0x4bbdd3){const {group:_0x3b51db,type:_0x58cd7e,subType:_0x1ad9f4,id:_0x10d4de}=_0x51b4ff['_splitMarkerName'](_0x193503);if('suggestion'==_0x3b51db&&_0x51b4ff['hasSuggestion'](_0x10d4de)){if('formatBlock'==_0x58cd7e&&('imageStylePreApply'==_0x1ad9f4||'imageStylePostApply'==_0x1ad9f4)){const _0x930432=_0x51b4ff['getSuggestion'](_0x10d4de);if(_0x5794ce['newRange']){const _0x4f2f7c=_0x930432['getFirstRange']()['getContainedElement']();if(_0x10f189['isBlockImage'](_0x4f2f7c))continue;_0x51b4ff['discardSuggestion'](_0x930432),_0xe0cbd2=!0x0;}}if('insertion'==_0x58cd7e&&'imageCaption'==_0x1ad9f4&&!_0x5794ce['newRange']){const _0x5ab156=_0x51b4ff['getSuggestion'](_0x10d4de);_0x5ab156['next']&&_0x5ab156['next']['isInContent']&&(_0x51b4ff['discardSuggestion'](_0x5ab156['next']),_0xe0cbd2=!0x0);}}}return _0xe0cbd2;}),this['_registerLegacyDescription'](_0x181052);}['_registerLegacyDescription'](_0x4e16ae){const _0x214a88=this['editor'],_0x1533ad=_0x214a88['locale'];_0x214a88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5363=>{if('formatBlock'!=_0x5363['type']&&'formatInline'!=_0x5363['type'])return;const {data:_0x262861}=_0x5363;if(!_0x262861||'imageStyle'!=_0x262861['commandName'])return;const _0x254c00=_0x262861['commandParams'][0x0]['value'];return _0x52dc3e('side'===_0x254c00?o(_0x1533ad,'FORMAT_SIDE_IMAGE'):_0x4e16ae[_0x254c00]||_0x254c00);function _0x52dc3e(_0x1aefe2){return{'type':'format','content':o(_0x1533ad,'*Format:*\x20%0',_0x1aefe2)};}});}}class ut extends _0x335eea{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x41396c){super(_0x41396c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x48eaa9=this['editor'],_0x5b39b7=_0x48eaa9['commands']['get']('importWord'),_0x4a2333=_0x48eaa9['commands']['get']('trackChanges');_0x5b39b7&&(_0x5b39b7['on']('execute',(_0x2da84a,[,_0xbae204])=>{this['_trackChangesValueDuringImport']=_0x4a2333['value'],_0xbae204['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5b39b7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5b39b7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4a2333['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x48eaa9['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x42673a,_0x551567){const {suggestions:_0xd4abc7}=_0x551567,_0x1d4737=this['editor']['commands']['get']('trackChanges'),_0x21c817=_0x1d4737['value'];this['_trackChangesValueDuringImport']!==_0x21c817&&(_0x1d4737['execute'](),this['_trackChangesExecuted']=!0x0),_0xd4abc7&&_0xd4abc7['forEach'](({id:_0x146205,type:_0x42ddfe,author:_0x1bcdad,created_at:_0xf781da})=>{const _0x2da541={'id':_0x146205,'type':_0x42ddfe,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1bcdad,'createdAt':_0xf781da?new Date(_0xf781da):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2da541);});}}class ft extends _0x335eea{['afterInit'](){const _0x46cd33=this['editor'],_0xaf9425=_0x46cd33['plugins']['get']('TrackChangesEditing');if(_0x46cd33['plugins']['has']('IndentEditing')&&(_0xaf9425['enableCommand']('indent'),_0xaf9425['enableCommand']('outdent')),_0x46cd33['plugins']['has']('IndentBlock')){for(const _0x2ddf8 of['indentBlock','outdentBlock'])_0xaf9425['enableDefaultAttributesIntegration'](_0x2ddf8);}const _0xbdba86=_0x46cd33['locale'];_0xaf9425['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xbdba86,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x130d92=this['editor'],_0x55f816=_0x130d92['locale'],_0x84fc37=_0x130d92['plugins']['get']('TrackChangesEditing');_0x84fc37['descriptionFactory']['registerDescriptionCallback'](_0x3d0959=>{if('formatBlock'!=_0x3d0959['type'])return;const {data:_0x338af8}=_0x3d0959;if(!_0x338af8)return;if('indentBlock'!=_0x338af8['commandName']&&'outdentBlock'!=_0x338af8['commandName'])return;const _0x571006=_0x3d0959['getItems']()[0x0],_0x3efc52=_0x84fc37['descriptionFactory']['getItemLabel'](_0x571006);return'indentBlock'==_0x338af8['commandName']?{'type':'format','content':o(_0x55f816,'*Indent:*\x20%0',_0x3efc52)}:'outdentBlock'==_0x338af8['commandName']?{'type':'format','content':o(_0x55f816,'*Outdent:*\x20%0',_0x3efc52)}:void 0x0;});}}class ht extends _0x335eea{static get['requires'](){return[_0x4c9901];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x335eea{['afterInit'](){const _0x4c3d17=this['editor'];if(!_0x4c3d17['plugins']['has']('LinkEditing'))return;const _0x307115=_0x4c3d17['plugins']['get']('TrackChangesEditing'),_0x4d107c=_0x4c3d17['commands']['get']('link');_0x307115['enableDefaultAttributesIntegration']('link'),_0x307115['enableDefaultAttributesIntegration']('unlink');for(const _0x2611d4 of _0x4d107c['manualDecorators'])_0x307115['descriptionFactory']['registerAttributeLabel'](_0x2611d4['id'],'link\x20('+_0x2611d4['label']['toLowerCase']()+')');_0x307115['descriptionFactory']['registerDescriptionCallback'](_0x390d65=>{if('attribute'!=_0x390d65['type'])return;const {data:_0x49edd7}=_0x390d65;if(!_0x49edd7||'linkHref'!=_0x49edd7['key'])return;const _0x579a98=_0x49edd7['newValue'],_0x2006b2=_0x4c3d17['locale'];return{'type':'format','content':null==_0x579a98?o(_0x2006b2,'*Remove\x20link*'):o(_0x2006b2,'*Set\x20link:*\x20%0','\x22'+_0x579a98+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c4fb8=this['editor'],_0x185ab4=_0x4c4fb8['locale'];_0x4c4fb8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ea63c=>{if('formatInline'!=_0x4ea63c['type'])return;const {data:_0x5f4b6f}=_0x4ea63c;if(_0x5f4b6f){if('link'==_0x5f4b6f['commandName']){const _0x418ccf=_0x5f4b6f['commandParams'][0x0];return{'type':'format','content':o(_0x185ab4,'*Set\x20link:*\x20%0','\x22'+_0x418ccf+'\x22')};}return'unlink'==_0x5f4b6f['commandName']?{'type':'format','content':o(_0x185ab4,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x335eea{['afterInit'](){const _0x182acb=this['editor'],_0x1ed5da=_0x182acb['locale'];if(!_0x182acb['plugins']['has']('LegacyListEditing'))return;const _0x3a63f9=_0x182acb['plugins']['get']('TrackChangesEditing'),_0x60e68f=_0x182acb['plugins']['has']('LegacyTodoListEditing');function _0x54f651(_0x1a2436){return()=>{const _0x41ab77=_0x182acb['model']['document']['selection'],_0x3d949c=_0x182acb['commands']['get'](_0x1a2436);if(_0x3d949c['value'])return void _0x182acb['execute']('paragraph',{});const _0x2c3315=_0x1a2436['slice'](0x0,-0x4),_0xf5a56f=function(_0x56e907,_0xaff216,_0x3451f4){let _0x2d8a48=Array['from'](_0x56e907)['filter'](_0x51850e=>function(_0x4f0817,_0xb1f019){return _0xb1f019['checkChild'](_0x4f0817['parent'],'listItem')&&!_0xb1f019['isObject'](_0x4f0817);}(_0x51850e,_0x3451f4));_0x2d8a48=_0x2d8a48['filter'](_0x241912=>!_0x241912['is']('element','listItem')||_0x241912['getAttribute']('listType')!=_0xaff216);const _0x5c9555=new Set();for(const _0x13b598 of _0x2d8a48)_0x13b598['is']('element','listItem')?_0x5c9555['add'](Le(_0x13b598)):_0x5c9555['add'](_0x13b598);return Array['from'](_0x5c9555);}(_0x41ab77['getSelectedBlocks'](),_0x2c3315,_0x182acb['model']['schema']);_0x182acb['model']['change'](()=>{for(const _0x543e00 of _0xf5a56f)_0x3a63f9['markBlockFormat'](_0x543e00,{'commandName':_0x1a2436,'commandParams':[{'forceValue':!_0x3d949c['value']}],'formatGroupId':'blockName'},Ee(_0x543e00));});};}function _0x4278d7(_0x23d586){return()=>{const _0x448d62=function(_0x5ccd66){let _0x347b0c=Array['from'](_0x5ccd66);const _0x2d1b71=_0x347b0c['findIndex'](_0x105e39=>'listItem'!=_0x105e39['name']);return _0x2d1b71>-0x1&&(_0x347b0c=_0x347b0c['slice'](0x0,_0x2d1b71)),_0x347b0c;}(_0x182acb['model']['document']['selection']['getSelectedBlocks']()),_0x427ab7=_0x182acb['model']['createRange'](_0x182acb['model']['createPositionAt'](_0x448d62[0x0],'before'),_0x182acb['model']['createPositionAt'](_0x448d62[_0x448d62['length']-0x1],'end'));_0x182acb['model']['change'](()=>{_0x3a63f9['markBlockFormat'](_0x427ab7,{'commandName':_0x23d586,'commandParams':[],'formatGroupId':'listIndent'},function(_0x36b311){const _0x3c8389=new Set();for(const _0x23cdad of _0x36b311){let _0x5dcff6=_0x23cdad['nextSibling'];for(;_0x5dcff6&&_0x5dcff6['getAttribute']('listIndent')>_0x23cdad['getAttribute']('listIndent');)_0x3c8389['add'](_0x5dcff6),_0x5dcff6=_0x5dcff6['nextSibling'];}return Array['from'](_0x3c8389);}(_0x448d62));});};}_0x3a63f9['enableCommand']('numberedList',_0x54f651('numberedList')),_0x3a63f9['enableCommand']('bulletedList',_0x54f651('bulletedList')),_0x60e68f&&_0x3a63f9['enableCommand']('todoList',_0x54f651('todoList')),_0x3a63f9['enableCommand']('indentList',_0x4278d7('indentList')),_0x3a63f9['enableCommand']('outdentList',_0x4278d7('outdentList')),_0x60e68f&&_0x3a63f9['enableCommand']('checkTodoList',()=>{const _0x5e2904=_0x182acb['commands']['get']('checkTodoList'),_0x5039d9=Array['from'](_0x5e2904['_selectedElements']);_0x5039d9['filter'](_0x2bf81c=>_0x2bf81c['getAttribute']('todoListChecked')!=_0x5e2904['value']),_0x182acb['model']['change'](()=>{for(const _0x24c76d of _0x5039d9)_0x3a63f9['markBlockFormat'](_0x24c76d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5e2904['value']}]});});}),_0x3a63f9['descriptionFactory']['registerElementLabel']('listItem',_0x517dba=>o(_0x1ed5da,'ELEMENT_LIST_ITEM',_0x517dba)),_0x3a63f9['descriptionFactory']['registerDescriptionCallback'](_0x3e114b=>{if('formatBlock'!=_0x3e114b['type']&&'formatInline'!=_0x3e114b['type'])return;const {data:_0x403f92}=_0x3e114b;if(_0x403f92){if('numberedList'==_0x403f92['commandName']||'bulletedList'==_0x403f92['commandName']||'todoList'==_0x403f92['commandName'])switch(_0x403f92['commandName']['replace']('List','')){case'bulleted':return _0x4f9680(o(_0x1ed5da,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4f9680(o(_0x1ed5da,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4f9680(o(_0x1ed5da,'ELEMENT_TODO_LIST'));}if('indentList'==_0x403f92['commandName'])return{'type':'format','content':o(_0x1ed5da,'*Indent:*\x20%0',o(_0x1ed5da,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x403f92['commandName'])return{'type':'format','content':o(_0x1ed5da,'*Outdent:*\x20%0',o(_0x1ed5da,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x403f92['commandName'])return _0x403f92['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ed5da,'*Check\x20item*')}:{'type':'format','content':o(_0x1ed5da,'*Uncheck\x20item*')};}function _0x4f9680(_0x3e90e8){return{'type':'format','content':o(_0x1ed5da,'*Change\x20to:*\x20%0',_0x3e90e8)};}});}}function Le(_0x40fc02){const _0x53b97b=_0x40fc02['getAttribute']('listIndent');if(0x0==_0x53b97b)return _0x40fc02;let _0x26d4ed=_0x40fc02;for(;_0x40fc02['previousSibling']&&_0x40fc02['previousSibling']['is']('element','listItem');){const _0x28b1e6=_0x40fc02['previousSibling']['getAttribute']('listIndent');if(_0x28b1e6==_0x53b97b)_0x26d4ed=_0x40fc02['previousSibling'];else{if(_0x28b1e6<_0x53b97b)break;}_0x40fc02=_0x40fc02['previousSibling'];}return _0x26d4ed;}function Ee(_0x4278d0){const _0x38152d=[];if(_0x4278d0['is']('element','listItem')&&_0x4278d0['getAttribute']('listIndent')>0x0){let _0x391035=_0x4278d0['nextSibling'];for(;_0x391035&&'listItem'==_0x391035['name']&&_0x391035['getAttribute']('listIndent')==_0x4278d0['getAttribute']('listIndent');)_0x38152d['push'](_0x391035),_0x391035=_0x391035['nextSibling'];}return _0x38152d;}class mt extends _0x335eea{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3cdc46=this['editor']['config']['get']('list.properties'),_0x1e6ed9=this['editor']['plugins']['get']('TrackChangesEditing');_0x3cdc46['styles']&&_0x1e6ed9['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3cdc46['reversed']&&_0x1e6ed9['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3cdc46['startIndex']&&_0x1e6ed9['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1e6ed9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x41f373,_0x54cc1b={}){const _0x1f644f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa10724=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1f644f['markMultiRangeBlockFormat'](_0xa10724,{'commandName':'listStyle','commandParams':[{'type':_0x54cc1b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x363ad2,_0x38ef39={}){const _0x36914c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4938bd=this['_getSuggestionBlocks'](_0x267bff=>_0x267bff['is']('element','listItem')&&'numbered'===_0x267bff['getAttribute']('listType'));if(_0x4938bd['length']<0x1)return;const _0x209aaa=_0x4938bd['map'](_0x376966=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x376966,'before'),this['editor']['model']['createPositionAt'](_0x376966,0x0)));this['editor']['model']['change'](()=>{_0x36914c['markMultiRangeBlockFormat'](_0x209aaa,{'commandName':'listReversed','commandParams':[{'reversed':_0x38ef39['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x863679,_0x40f34e={}){const _0x3fd8ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5df72d=this['_getSuggestionBlocks'](_0x59af01=>_0x59af01['is']('element','listItem')&&'numbered'===_0x59af01['getAttribute']('listType'));if(_0x5df72d['length']<0x1)return;const _0xf36c03=_0x5df72d['map'](_0x33c952=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33c952,'before'),this['editor']['model']['createPositionAt'](_0x33c952,0x0)));this['editor']['model']['change'](()=>{_0x3fd8ac['markMultiRangeBlockFormat'](_0xf36c03,{'commandName':'listStart','commandParams':[{'startIndex':_0x40f34e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xd5bf17){if('formatBlock'!=_0xd5bf17['type']&&'formatInline'!=_0xd5bf17['type'])return;const _0x3b873e=this['editor']['locale'],{data:_0x58cb0d}=_0xd5bf17;if(!_0x58cb0d)return;let _0x556f49,_0x26cc7f;switch(_0x58cb0d['commandName']){case'listStyle':_0x556f49='*Change\x20to:*\x20%0',_0x26cc7f={'type':'format','content':o(_0x3b873e,_0x556f49,o(_0x3b873e,this['_getTranslationKeyForListStyle'](_0x58cb0d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x556f49=_0x58cb0d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x26cc7f={'type':'format','content':o(_0x3b873e,_0x556f49)};break;case'listStart':_0x556f49='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x26cc7f={'type':'format','content':o(_0x3b873e,_0x556f49,_0x58cb0d['commandParams'][0x0]['startIndex'])};}return _0x26cc7f;}['_getSuggestionBlocksForListStyle'](){const _0x3cf2fe=this['editor']['plugins']['get']('LegacyListUtils');let _0x5d2a96=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5d2a96[0x0]?.['is']('element','listItem')&&_0x5d2a96['unshift'](..._0x3cf2fe['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5d2a96[_0x5d2a96['length']-0x1]?.['is']('element','listItem')&&_0x5d2a96['push'](..._0x3cf2fe['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5d2a96=[...new Set(_0x5d2a96)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5d2a96=_0x5d2a96['filter'](_0x5c087e=>_0x5c087e['is']('element','listItem'))),_0x5d2a96;}['_getSuggestionBlocks'](_0x3d263a){const _0x59a498=this['editor']['plugins']['get']('LegacyListUtils');let _0x243761=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3d263a)['map'](_0x461a87=>{const _0x1bdf52=this['editor']['model']['createPositionAt'](_0x461a87,0x0);return[..._0x59a498['getSiblingNodes'](_0x1bdf52,'backward'),..._0x59a498['getSiblingNodes'](_0x1bdf52,'forward')];})['flat']();return _0x243761=[...new Set(_0x243761)],_0x243761;}['_getTranslationKeyForListStyle'](_0x45d46e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x45d46e)||'default')['toUpperCase']()+'_LIST_'+_0x45d46e['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x335eea{['afterInit'](){const _0x5474b8=this['editor'];if(!_0x5474b8['plugins']['has']('MediaEmbedEditing'))return;const _0x16691a=_0x5474b8['plugins']['get']('TrackChangesEditing'),_0x14a244=_0x5474b8['locale'];_0x16691a['enableCommand']('mediaEmbed'),_0x16691a['descriptionFactory']['registerElementLabel']('media',_0x5988f3=>o(_0x14a244,'ELEMENT_MEDIA',_0x5988f3));}}class pt extends _0x335eea{['afterInit'](){const _0x4e474=this['editor'];_0x4e474['plugins']['has']('MentionEditing')&&_0x4e474['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x335eea{['afterInit'](){const _0x2a35a7=this['editor'];if(!_0x2a35a7['plugins']['has']('MergeFieldsEditing'))return;const _0x4e737f=_0x2a35a7['plugins']['get']('TrackChangesEditing'),_0x5785ac=_0x2a35a7['locale'];_0x4e737f['enableCommand']('insertMergeField'),_0x4e737f['enableCommand']('insertMergeFieldBlock'),_0x4e737f['enableCommand']('insertMergeFieldImage'),_0x4e737f['descriptionFactory']['registerElementLabel']('mergeField',_0x31f76d=>o(_0x5785ac,'ELEMENT_MERGE_FIELD',_0x31f76d)),_0x4e737f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2c4b2a=>o(_0x5785ac,'ELEMENT_MERGE_FIELD',_0x2c4b2a)),_0x4e737f['descriptionFactory']['registerDescriptionCallback'](_0x348312=>{if('insertion'!=_0x348312['type']&&'deletion'!=_0x348312['type'])return;const _0x8f013b=_0x348312['getContainedElement']();if(null==_0x8f013b)return;const _0x1204d3=_0x2a35a7['plugins']['get']('MergeFieldsEditing');let _0x3fef57;switch(_0x1204d3['getMergeFieldType'](_0x8f013b)){case null:return;case'image':{const _0x23c758=_0x1204d3['unwrapAffixes'](_0x8f013b['getAttribute']('src'));_0x3fef57=_0x1204d3['getLabel'](_0x23c758)||_0x23c758;break;}default:{const _0x4f9c59=_0x8f013b['getAttribute']('id');_0x3fef57=_0x1204d3['getLabel'](_0x4f9c59)||_0x4f9c59;break;}}return'insertion'==_0x348312['type']?{'type':'insertion','content':o(_0x5785ac,'*Insert:*\x20%0','\x22'+_0x3fef57+'\x22\x20'+o(_0x5785ac,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5785ac,'*Remove:*\x20%0','\x22'+_0x3fef57+'\x22\x20'+o(_0x5785ac,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x335eea{['afterInit'](){const _0x23ddc4=this['editor'],_0x4f0bc4=_0x23ddc4['plugins']['get']('TrackChangesEditing');_0x23ddc4['plugins']['has']('MultiLevelList')&&(_0x4f0bc4['enableDefaultAttributesIntegration']('multiLevelList'),_0x4f0bc4['descriptionFactory']['registerDescriptionCallback'](_0x2fa833=>this['handleDescriptions'](_0x2fa833)));}['handleDescriptions'](_0x2bf3ac){const _0x41f267=this['editor']['locale'],{data:_0x4bdc05}=_0x2bf3ac,_0x571abf={'type':'format','content':''};if(_0x4bdc05&&'listMarkerStyle'==_0x4bdc05['key']){if(!_0x4bdc05['oldValue'])return{'type':'format','content':o(_0x41f267,'*Set\x20format:*\x20%0',o(_0x41f267,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4bdc05['newValue']+')'};if(!_0x4bdc05['newValue']){let _0x1027ac=_0x2bf3ac['head'];for(;_0x1027ac;){if(_0x1027ac['data']&&'listType'==_0x1027ac['data']['key']&&_0x1027ac['data']['newValue'])return _0x571abf;_0x1027ac=_0x1027ac['next'];}return{'type':'format','content':o(_0x41f267,'*Remove\x20format:*\x20%0',o(_0x41f267,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4bdc05['oldValue']+')'};}}}}class bt extends _0x335eea{['afterInit'](){const _0x2f0f81=this['editor'];if(!_0x2f0f81['plugins']['has']('PageBreakEditing'))return;_0x2f0f81['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4a1cf8=_0x2f0f81['plugins']['get']('TrackChangesEditing'),_0x2657d0=_0x2f0f81['locale'];_0x4a1cf8['descriptionFactory']['registerElementLabel']('pageBreak',_0xe4f13a=>o(_0x2657d0,'ELEMENT_PAGE_BREAK',_0xe4f13a));}}class yt extends _0x335eea{['afterInit'](){const _0x575c19=this['editor'];if(!_0x575c19['plugins']['has']('Paragraph'))return;const _0x5b77c7=_0x575c19['locale'],_0x5813d9=_0x575c19['plugins']['get']('TrackChangesEditing');_0x5813d9['descriptionFactory']['registerElementLabel']('paragraph',_0x462a74=>o(_0x5b77c7,'ELEMENT_PARAGRAPH',_0x462a74)),_0x5813d9['enableDefaultAttributesIntegration']('paragraph'),_0x5813d9['enableCommand']('insertParagraph');const _0x326e18=_0x5813d9['descriptionFactory'];_0x326e18['registerDescriptionCallback'](_0x103eaf=>{if('insertion'!==_0x103eaf['type'])return;const {start:_0x39affb,end:_0x54eaa2}=_0x103eaf['getFirstRange']();if(!_0x39affb['isTouching'](_0x54eaa2)||!_0x39affb['nodeAfter'])return;const _0x598cce=_0x575c19['model']['schema'],_0x241f24=_0x39affb['nodeAfter'];return _0x598cce['isBlock'](_0x241f24)&&!_0x598cce['isLimit'](_0x241f24)&&_0x598cce['checkChild'](_0x241f24,'$text')?{'type':'insertion','content':o(_0x5b77c7,'*Insert:*\x20%0',_0x326e18['getItemLabel'](_0x241f24,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x469216=this['editor'],_0x52d079=_0x469216['locale'];_0x469216['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47e879=>{if('formatBlock'!=_0x47e879['type'])return;const {data:_0x306b38}=_0x47e879;return _0x306b38&&'paragraph'==_0x306b38['commandName']?{'type':'format','content':o(_0x52d079,'*Change\x20to:*\x20%0',o(_0x52d079,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x335eea{['afterInit'](){const _0xd62769=this['editor'];_0xd62769['commands']['get']('replaceSource')&&_0xd62769['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x335eea{['afterInit'](){const _0x273bb7=this['editor'];if(!_0x273bb7['plugins']['has']('RemoveFormatEditing'))return;_0x273bb7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x345b7f=this['editor'];_0x345b7f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51ba7f=>{if('formatBlock'!=_0x51ba7f['type']&&'formatInline'!=_0x51ba7f['type'])return;const {data:_0x3cb9f0}=_0x51ba7f;return _0x3cb9f0&&'removeFormat'==_0x3cb9f0['commandName']?{'type':'format','content':o(_0x345b7f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x335eea{['afterInit'](){const _0x42d659=this['editor'];if(!_0x42d659['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x20a175=_0x42d659['plugins']['get']('TrackChangesEditing');_0x20a175['enableCommand']('goToPreviousRestrictedEditingException'),_0x20a175['enableCommand']('goToNextRestrictedEditingException');const _0x1cc7e3=_0x42d659['plugins']['get']('RestrictedEditingModeEditing');_0x1cc7e3['enableCommand']('trackChanges'),_0x1cc7e3['enableCommand']('acceptSuggestion'),_0x1cc7e3['enableCommand']('discardSuggestion'),_0x1cc7e3['enableCommand']('acceptAllSuggestions'),_0x1cc7e3['enableCommand']('discardAllSuggestions'),_0x1cc7e3['enableCommand']('acceptSelectedSuggestions'),_0x1cc7e3['enableCommand']('discardSelectedSuggestions');}}class At extends _0x335eea{['afterInit'](){const _0x11a274=this['editor'];if(!_0x11a274['plugins']['has']('ShiftEnter'))return;const _0x4c9c50=_0x11a274['plugins']['get']('TrackChangesEditing');_0x4c9c50['enableCommand']('shiftEnter'),_0x4c9c50['descriptionFactory']['registerElementLabel']('softBreak',_0x5db358=>o(_0x11a274['locale'],'ELEMENT_LINE_BREAK',_0x5db358));}}function an(_0x387b15,_0x4e12ca,_0x3adb0f){const _0x427468=[];for(const _0xce8b80 of _0x4e12ca['getItems']())_0xce8b80['hasAttribute'](_0x387b15)&&_0x427468['push'](_0x3adb0f['createRangeOn'](_0xce8b80));return _0x427468;}class _t extends _0x335eea{['afterInit'](){const _0x2da846=this['editor'],_0x410c37=_0x2da846['plugins']['get']('TrackChangesEditing');_0x2da846['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x410c37['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x275fb3=this['editor'],_0x26487d=_0x275fb3['model'],_0x1ded2c=_0x275fb3['locale'],_0x2e361d=_0x275fb3['plugins']['get']('TrackChangesEditing'),_0x4ab23b='restrictedEditingException',_0x6cb834=_0x275fb3['commands']['get'](_0x4ab23b);_0x2e361d['enableCommand'](_0x4ab23b,(_0x10d7ff,_0xef028={})=>{const _0x4c4ea3=_0x26487d['document']['selection'];if(_0x4c4ea3['isCollapsed'])return void _0x10d7ff(_0xef028);const _0x31b3cc=void 0x0!==_0xef028['forceValue']?_0xef028['forceValue']:!_0x6cb834['value'];_0x26487d['change'](()=>{const _0x320bdc=Array['from'](_0x4c4ea3['getRanges']());for(const _0x37bdfd of _0x320bdc){const _0x2b307d=_0x31b3cc?[_0x37bdfd]:an(_0x4ab23b,_0x37bdfd,_0x26487d);for(const _0x3aa77d of _0x2b307d)_0x2e361d['markInlineFormat'](_0x3aa77d,{'commandName':_0x4ab23b,'commandParams':[{'forceValue':_0x31b3cc}]});}});}),_0x2e361d['descriptionFactory']['registerDescriptionCallback'](_0x5e80a8=>{if('formatBlock'!=_0x5e80a8['type']&&'formatInline'!=_0x5e80a8['type'])return;const {data:_0x4afc0c}=_0x5e80a8;return _0x4afc0c&&_0x4afc0c['commandName']==_0x4ab23b?_0x4afc0c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ded2c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1ded2c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0xd292a5=this['editor'],_0x7cb5b1=_0xd292a5['locale'],_0x333497=_0xd292a5['plugins']['get']('TrackChangesEditing'),_0x1322d2='restrictedEditingExceptionBlock',_0x57be5b=this['editor']['commands']['get'](_0x1322d2);_0x333497['enableCommand'](_0x1322d2,(_0x2e03ee,_0x11cee1={})=>{const _0x109abf=this['editor']['model']['document']['selection'],_0x51ea3e=_0x11cee1&&void 0x0!==_0x11cee1['forceValue']?_0x11cee1['forceValue']:!_0x57be5b['value'];let _0xa09f4d=[];if(_0x51ea3e){const _0x3b117b=Array['from'](_0x109abf['getSelectedBlocks']())['filter'](_0x3b00f8=>function(_0x3392e7){return!!_0x3392e7['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x3b00f8)||function(_0x1c65a2,_0x3db574){const _0x479c2d=_0x3db574['createContext'](_0x1c65a2['parent']);if(!_0x3db574['checkChild'](_0x479c2d,'restrictedEditingException'))return!0x1;if(!_0x3db574['checkChild'](_0x479c2d['push']('restrictedEditingException'),_0x1c65a2))return!0x1;return!0x0;}(_0x3b00f8,this['editor']['model']['schema']));_0xa09f4d=to(_0x3b117b,_0xd292a5['model']);}else{const _0x30e831=Array['from'](_0x109abf['getSelectedBlocks']())['map'](_0x3adc12=>function(_0xd0120f){let _0x4f1908=_0xd0120f;for(;_0x4f1908['parent'];){if('restrictedEditingException'==_0x4f1908['parent']['name'])return _0x4f1908;_0x4f1908=_0x4f1908['parent'];}return null;}(_0x3adc12))['filter'](_0x5f00eb=>!!_0x5f00eb);_0xa09f4d=to(_0x30e831,_0xd292a5['model']);}_0xd292a5['model']['change'](()=>{for(const _0xceb05 of _0xa09f4d)_0x333497['markBlockFormat'](_0xceb05,{'commandName':_0x1322d2,'commandParams':[{'forceValue':_0x51ea3e}]});});}),_0x333497['descriptionFactory']['registerDescriptionCallback'](_0x578b3e=>{const {data:_0x1c9791}=_0x578b3e;if(_0x1c9791&&_0x1c9791['commandName']==_0x1322d2)return _0x1c9791['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x7cb5b1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x7cb5b1,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x335eea{['afterInit'](){const _0x589fb2=this['editor'];if(!_0x589fb2['plugins']['has']('Style')||!_0x589fb2['plugins']['has']('DataSchema'))return;const _0x5efe84=_0x589fb2['plugins']['get']('TrackChangesEditing'),_0x5d6f55=_0x589fb2['locale'],_0x7feb89=_0x589fb2['config']['get']('style')||{},_0x3bd207=_0x589fb2['plugins']['get']('GeneralHtmlSupport'),_0x49d65c=_0x589fb2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x589fb2['plugins']['get']('DataSchema'),_0x7feb89['definitions']);_0x5efe84['enableDefaultAttributesIntegration']('style');const _0x13dc09=new Set();for(const _0x5de82a of _0x49d65c['block']){const _0x3629f5=_0x3bd207['getGhsAttributeNameForElement'](_0x5de82a['element']);_0x13dc09['add'](_0x3629f5);}const _0x51ea7e=new Set();for(const _0xb4266b of _0x49d65c['inline']){const _0x5e238b=_0x3bd207['getGhsAttributeNameForElement'](_0xb4266b['element']);_0x51ea7e['add'](_0x5e238b);for(const _0x39cf93 of _0xb4266b['ghsAttributes'])_0x51ea7e['add'](_0x39cf93);}for(const _0x11e019 of _0x13dc09)_0x5efe84['descriptionFactory']['registerAttributeLabel'](_0x11e019,o(_0x5d6f55,'FORMAT_STYLE'));for(const _0x389e9b of _0x51ea7e)_0x5efe84['descriptionFactory']['registerAttributeLabel'](_0x389e9b,o(_0x5d6f55,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24e827=this['editor'],_0x4723a8=_0x24e827['locale'];_0x24e827['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4faf5c=>{if('formatBlock'!=_0x4faf5c['type']&&'formatInline'!=_0x4faf5c['type'])return;const {data:_0x1e7bc5}=_0x4faf5c;return _0x1e7bc5&&'style'===_0x1e7bc5['commandName']?_0x1e7bc5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4723a8,'*Set\x20format:*\x20%0',_0x1e7bc5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4723a8,'*Remove\x20format:*\x20%0',_0x1e7bc5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x335eea{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3430f1){super(_0x3430f1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x27d0c6=this['editor'],_0x21b56f=_0x27d0c6['model']['document']['selection'];if(!_0x27d0c6['plugins']['has']('TableEditing'))return;const _0x3a615e=_0x27d0c6['locale'],_0x13813e=_0x27d0c6['plugins']['get']('TrackChangesEditing'),_0x827832=_0x27d0c6['plugins']['get']('TableUtils');_0x13813e['descriptionFactory']['registerElementLabel']('table',_0x519695=>o(_0x3a615e,'ELEMENT_TABLE',_0x519695)),this['_setupColumnsRowsFixing'](),_0x13813e['enableCommand']('insertTable'),_0x13813e['enableCommand']('selectTableRow'),_0x13813e['enableCommand']('selectTableColumn');for(const _0x56a675 of['insertTableRowAbove','insertTableRowBelow']){const _0x75b353=_0x27d0c6['commands']['get'](_0x56a675);_0x13813e['enableCommand'](_0x56a675,_0x13527f=>{_0x27d0c6['model']['change'](_0x503d7b=>{_0x13527f();const _0x37556c='above'===_0x75b353['order'],_0x5ed479=_0x827832['getSelectionAffectedTableCells'](_0x21b56f),_0x590d43=_0x827832['getRowIndexes'](_0x5ed479),_0x12b2c3=_0x37556c?_0x590d43['first']-0x1:_0x590d43['last']+0x1,_0x3b821a=_0x5ed479[0x0]['findAncestor']('table'),_0x16ee03=_0x827832['createTableWalker'](_0x3b821a,{'startRow':_0x12b2c3,'endRow':_0x12b2c3}),_0xff6257=Array['from'](_0x16ee03)['map'](_0x38f790=>_0x503d7b['createRangeOn'](_0x38f790['cell']));_0x13813e['markMultiRangeInsertion'](_0xff6257,'tableRow');});});}for(const _0x3ecc82 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3d945f=_0x27d0c6['commands']['get'](_0x3ecc82);_0x13813e['enableCommand'](_0x3ecc82,_0x22f11b=>{_0x27d0c6['model']['change'](_0x3a4c06=>{_0x22f11b();const _0x3d42bf='left'===_0x3d945f['order'],_0x3f5e5b=_0x827832['getSelectionAffectedTableCells'](_0x21b56f),_0x33aee3=_0x827832['getColumnIndexes'](_0x3f5e5b),_0x3de647=_0x3d42bf?_0x33aee3['first']-0x1:_0x33aee3['last']+0x1,_0x5e2010=_0x3f5e5b[0x0]['findAncestor']('table'),_0x3816ab=_0x827832['createTableWalker'](_0x5e2010,{'startRow':0x0,'column':_0x3de647,'includeAllSlots':!0x1}),_0x2ea0ba=Array['from'](_0x3816ab)['map'](_0x2df3ff=>_0x3a4c06['createRangeOn'](_0x2df3ff['cell']));_0x13813e['markMultiRangeInsertion'](_0x2ea0ba,'tableColumn');});});}for(const _0x1e0eb6 of['removeTableRow','removeTableColumn']){const _0xc17370=_0x1e0eb6['substr'](0xb),_0x573c2f=_0xc17370['toLowerCase'](),_0x54ed77=_0x573c2f['substr'](0x0,0x3)+'span',_0x28b07c='table'+_0xc17370,_0x4a127f='min'+_0xc17370,_0x46518e='max'+_0xc17370;_0x13813e['enableCommand'](_0x1e0eb6,()=>{_0x27d0c6['model']['change'](_0x546c86=>{const _0x3da321=_0x827832['getSelectionAffectedTableCells'](_0x21b56f),_0x7d0a31=_0x3da321[0x0]['findAncestor']('table');let _0x3d2e8a;if('removeTableRow'==_0x1e0eb6){const _0x4782e8=_0x827832['getRowIndexes'](_0x3da321);_0x3d2e8a={'startRow':_0x4782e8['first'],'endRow':_0x4782e8['last'],'includeAllSlots':!0x0};}else{const _0x1641a3=_0x827832['getColumnIndexes'](_0x3da321);_0x3d2e8a={'startColumn':_0x1641a3['first'],'endColumn':_0x1641a3['last'],'includeAllSlots':!0x0};}const _0x24e489=_0x827832['createTableWalker'](_0x7d0a31,_0x3d2e8a),_0x515070=Array['from'](_0x24e489)['map'](({cell:_0x431491})=>_0x431491),_0x3c333b=_e(_0x515070['filter'](_0x400699=>_0x400699['hasAttribute'](_0x54ed77))),_0x208743=_e(_0x515070['filter'](_0x5baca2=>!_0x5baca2['hasAttribute'](_0x54ed77)))['map'](_0x372079=>_0x546c86['createRangeOn'](_0x372079)),_0x77265e=_0x13813e['markMultiRangeDeletion'](_0x208743,_0x28b07c);if(_0x77265e&&('tableRow'==_0x77265e['subType']||'tableColumn'==_0x77265e['subType'])){const _0x50b75e=this['_getSuggestionCoords'](_0x77265e);for(const _0xf5aa27 of _0x3c333b){const _0x597c95=_0x546c86['createRangeOn'](_0xf5aa27),_0x564499=_0x827832['getCellLocation'](_0xf5aa27),_0x24ab56=_0xf5aa27['getAttribute'](_0x54ed77)-0x1,_0x37f7eb=_0x50b75e[_0x4a127f],_0x47bf13=_0x50b75e[_0x46518e];_0x37f7eb<=_0x564499[_0x573c2f]&&_0x564499[_0x573c2f]+_0x24ab56<=_0x47bf13&&_0x77265e['addRange'](_0x597c95);}}});});}function _0x33b530(_0x127994){const _0x106ca0=Array['from'](_0x21b56f['getRanges']())['map'](_0xc3824d=>_0x1b3589['fromRange'](_0xc3824d));_0x27d0c6['model']['change'](_0x47904c=>{const _0x572e94=_0x47904c['batch'];_0x127994=_0x127994['filter'](_0x47abb0=>'$graveyard'!=_0x47abb0['root']['rootName']),_0x47904c['setSelection'](_0x127994),_0x27d0c6['commands']['get']('removeTableRow')['refresh'](),_0x27d0c6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x27d0c6['model']['enqueueChange'](()=>{_0x27d0c6['model']['enqueueChange'](_0x572e94,_0xa24798=>{const _0x20926=_0x106ca0['filter'](_0x40d063=>'$graveyard'!=_0x40d063['root']['rootName']);_0x20926['length']>0x0&&_0xa24798['setSelection'](_0x20926);for(const _0x3d2c81 of _0x106ca0)_0x3d2c81['detach']();});});});}function _0x1d4c14(_0x4e03b2){_0x27d0c6['model']['change'](_0x1e5533=>{const _0x292af6=Array['from'](_0x21b56f['getRanges']())['map'](_0x214fcf=>_0x1b3589['fromRange'](_0x214fcf)),_0x330ac4=[];for(const _0x25e6d2 of _0x4e03b2)for(const _0xd422d8 of _0x25e6d2['getItems']({'shallow':!0x0}))_0x330ac4['push'](_0xd422d8);for(const _0x1c411f of _0x330ac4)'$graveyard'!=_0x1c411f['root']['rootName']&&(_0x1e5533['setSelection'](_0x1e5533['createPositionAt'](_0x1c411f,0x0)),_0x27d0c6['commands']['get']('removeTableColumn')['refresh'](),_0x27d0c6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x41dd63=_0x292af6['filter'](_0x4723d5=>'$graveyard'!=_0x4723d5['root']['rootName']);_0x41dd63['length']>0x0&&_0x1e5533['setSelection'](_0x41dd63);for(const _0x1f43ce of _0x292af6)_0x1f43ce['detach']();});}function _0x39d651(_0x5e02ed,_0x1838c4){return _0x1838c4['every'](_0x37a25b=>_0x5e02ed['some'](_0x2661a2=>_0x2661a2['end']['isEqual'](_0x37a25b['start'])||_0x37a25b['end']['isEqual'](_0x2661a2['start'])));}function _0x564ddb(_0x46507a,_0x5df377){return!_0x46507a['some'](_0x5c5a1c=>_0x5df377['some'](_0x4691b4=>_0x5c5a1c['isIntersecting'](_0x4691b4)))&&_0x46507a['some'](_0x4fe106=>_0x5df377['some'](_0x272490=>_0x4fe106['end']['isTouching'](_0x272490['start'])));}_0x13813e['descriptionFactory']['registerDescriptionCallback'](_0x3cbc75=>{if('insertion'!=_0x3cbc75['type']&&'deletion'!=_0x3cbc75['type'])return;const _0x51bfe2=_0x3cbc75['getContainedElement']();if(null!=_0x51bfe2&&_0x51bfe2['is']('element','table')){if('insertion'==_0x3cbc75['type']){const _0x318a9b=_0x3cbc75['getItems']()['filter'](_0x121bcd=>_0x121bcd['is']('$textProxy'))['map'](_0x3d3a78=>_0x3d3a78['data']);if(_0x318a9b['length'])return{'type':'insertion','content':o(_0x3a615e,'*Insert:*\x20%0',o(_0x3a615e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x318a9b['join']('\x20')+'\x22'))};}if('deletion'==_0x3cbc75['type']){const _0x23be2d=_0x3cbc75['getItems']()['filter'](_0x3fc82a=>_0x3fc82a['is']('$textProxy'))['map'](_0xbadc7=>_0xbadc7['data']);if(_0x23be2d['length'])return{'type':'deletion','content':o(_0x3a615e,'*Remove:*\x20%0',o(_0x3a615e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x23be2d['join']('\x20')+'\x22'))};}}}),_0x13813e['descriptionFactory']['registerDescriptionCallback'](_0x520491=>{if('tableRow'==_0x520491['subType']){const _0x5776ef=_0x520491['getItems']()['filter'](_0x5a13f2=>_0x5a13f2['is']('$textProxy'))['map'](_0x704b96=>_0x704b96['data']),_0x2895a4=this['_getSuggestionCoords'](_0x520491),_0x1b536b=_0x2895a4['maxRow']-_0x2895a4['minRow']+0x1;if('insertion'==_0x520491['type'])return _0x5776ef['length']?{'type':'insertion','content':o(_0x3a615e,'*Insert:*\x20%0',o(_0x3a615e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1b536b,'\x22'+_0x5776ef['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a615e,'*Insert:*\x20%0',o(_0x3a615e,'ELEMENT_TABLE_ROW',_0x1b536b))};if('deletion'==_0x520491['type'])return _0x5776ef['length']?{'type':'deletion','content':o(_0x3a615e,'*Remove:*\x20%0',o(_0x3a615e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1b536b,'\x22'+_0x5776ef['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a615e,'*Remove:*\x20%0',o(_0x3a615e,'ELEMENT_TABLE_ROW',_0x1b536b))};}if('tableColumn'==_0x520491['subType']){const _0xd1fec0=_0x520491['getItems']()['filter'](_0x4d2edd=>_0x4d2edd['is']('$textProxy'))['map'](_0x48aff1=>_0x48aff1['data']),_0x268f50=this['_getSuggestionCoords'](_0x520491),_0xb69d13=_0x268f50['maxColumn']-_0x268f50['minColumn']+0x1;if('insertion'==_0x520491['type'])return _0xd1fec0['length']?{'type':'insertion','content':o(_0x3a615e,'*Insert:*\x20%0',o(_0x3a615e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xb69d13,'\x22'+_0xd1fec0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a615e,'*Insert:*\x20%0',o(_0x3a615e,'ELEMENT_TABLE_COLUMN',_0xb69d13))};if('deletion'==_0x520491['type'])return _0xd1fec0['length']?{'type':'deletion','content':o(_0x3a615e,'*Remove:*\x20%0',o(_0x3a615e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xb69d13,'\x22'+_0xd1fec0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a615e,'*Remove:*\x20%0',o(_0x3a615e,'ELEMENT_TABLE_COLUMN',_0xb69d13))};}}),_0x13813e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x33b530),_0x13813e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x33b530),_0x13813e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1d4c14),_0x13813e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1d4c14),_0x13813e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x39d651),_0x13813e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x39d651),_0x13813e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x564ddb),_0x13813e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x564ddb);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4b66d6=this['editor'],_0x51e368=_0x4b66d6['model']['document']['selection'];return(_0x1a91e2,_0x23017d)=>{_0x4b66d6['model']['change'](_0x30cb22=>{const {commandName:_0x223554,commandParams:_0x259470}=_0x23017d;let _0x508c3b=_0x1a91e2[0x0]['end']['nodeBefore'];_0x259470&&_0x259470[0x0]&&!0x1===_0x259470[0x0]['forceValue']&&(_0x508c3b=_0x1a91e2[0x0]['start']['nodeAfter']);const _0xcb9e63=_0x30cb22['createRangeIn'](_0x508c3b);if('$graveyard'==_0xcb9e63['root']['rootName'])return;const _0x14a19f=Array['from'](_0x51e368['getRanges']())['map'](_0x405500=>_0x1b3589['fromRange'](_0x405500));_0x30cb22['setSelection'](_0xcb9e63),_0x4b66d6['commands']['get'](_0x223554)['refresh'](),_0x259470['push']({'forceDefaultExecution':!0x0}),_0x4b66d6['execute'](_0x223554,..._0x259470);const _0x4a925e=_0x14a19f['filter'](_0x1c6e65=>'$graveyard'!=_0x1c6e65['root']['rootName']);_0x4a925e['length']>0x0&&_0x30cb22['setSelection'](_0x4a925e);for(const _0xff07e2 of _0x14a19f)_0xff07e2['detach']();});};}['_getCoordsForCells'](_0x255689){const _0x8c99c5=this['editor']['plugins']['get']('TableUtils');let _0x4dda7c=Number['MAX_SAFE_INTEGER'],_0x432b1b=Number['MIN_SAFE_INTEGER'],_0x1d43a6=Number['MAX_SAFE_INTEGER'],_0x40c426=Number['MIN_SAFE_INTEGER'];for(const _0x47d582 of _0x255689){if('$graveyard'==_0x47d582['root']['rootName'])continue;const {row:_0x20a839,column:_0x13f0bc}=_0x8c99c5['getCellLocation'](_0x47d582),_0x3fd2aa=_0x47d582['hasAttribute']('rowspan')?_0x47d582['getAttribute']('rowspan')-0x1:0x0,_0x178976=_0x47d582['hasAttribute']('colspan')?_0x47d582['getAttribute']('colspan')-0x1:0x0;_0x4dda7c=_0x20a839<_0x4dda7c?_0x20a839:_0x4dda7c,_0x432b1b=_0x20a839+_0x3fd2aa>_0x432b1b?_0x20a839+_0x3fd2aa:_0x432b1b,_0x1d43a6=_0x13f0bc<_0x1d43a6?_0x13f0bc:_0x1d43a6,_0x40c426=_0x13f0bc+_0x178976>_0x40c426?_0x13f0bc+_0x178976:_0x40c426;}return{'minRow':_0x4dda7c,'maxRow':_0x432b1b,'minColumn':_0x1d43a6,'maxColumn':_0x40c426};}['_setupColumnsRowsFixing'](){const _0x2d1bbd=this['editor'],_0x187dbe=_0x2d1bbd['plugins']['get']('TrackChangesEditing'),_0x1c9816=_0x2d1bbd['plugins']['get']('TableUtils');_0x2d1bbd['model']['document']['on']('change:data',()=>{const _0x5d310c=Array['from'](_0x2d1bbd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x440b04,data:_0x51d849}of _0x5d310c){const {group:_0xb9574b,id:_0xf285e1,subType:_0x2873fb}=_0x187dbe['_splitMarkerName'](_0x440b04);if('suggestion'!=_0xb9574b)continue;if(null!=_0x51d849['oldRange'])continue;const _0x24334b=_0x187dbe['getSuggestion'](_0xf285e1);this['_tablePostFixingSubtypes']['includes'](_0x2873fb)&&this['_tableSuggestions']['add'](_0x24334b);}},{'priority':'low'});const _0x59b7fe=(_0xac9ac0,_0x288c23)=>{let _0x318037=!0x1;const _0x35e4c8=_0x288c23['createRangeOn'](_0xac9ac0),_0x1950a7=_0xac9ac0['findAncestor']('table'),_0x1128a9=_0x1c9816['getCellLocation'](_0xac9ac0);for(const _0x45b47d of this['_tableSuggestions']){const _0xf5b06d=_0x45b47d['subType'],_0x5ad3da=_0xf5b06d['startsWith']('tablePaste'),_0x2fdc26=_0xf5b06d['substr'](_0x5ad3da?0xa:0x5),_0x4c9fed=_0x2fdc26['toLowerCase'](),_0x1d610f=_0x4c9fed['substr'](0x0,0x3)+'span',_0x24975e='min'+_0x2fdc26,_0x260762='max'+_0x2fdc26;if(!_0x45b47d['isInContent'])continue;if(_0x1950a7!=_0x45b47d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x45b47d['isIntersectingWithRange'](_0x35e4c8))continue;const _0x372c65=_0xac9ac0['hasAttribute'](_0x1d610f)?_0xac9ac0['getAttribute'](_0x1d610f)-0x1:0x0,_0x484dc6=this['_getSuggestionCoords'](_0x45b47d),_0x5ca9b5=_0x484dc6[_0x24975e],_0x45af42=_0x484dc6[_0x260762];_0x5ca9b5<=_0x1128a9[_0x4c9fed]&&_0x1128a9[_0x4c9fed]+_0x372c65<=_0x45af42&&(_0x45b47d['addRange'](_0x35e4c8),_0x318037=!0x0);}return _0x318037;};_0x2d1bbd['model']['document']['registerPostFixer'](_0x51a78d=>{let _0x31ef03=!0x1;for(const _0x191d79 of _0x2d1bbd['model']['document']['differ']['getChanges']())if('insert'==_0x191d79['type']){if('tableRow'==_0x191d79['name']){for(const _0x21e048 of _0x191d79['position']['nodeAfter']['getChildren']())_0x31ef03=_0x31ef03||_0x59b7fe(_0x21e048,_0x51a78d);}else'tableCell'==_0x191d79['name']&&(_0x31ef03=_0x31ef03||_0x59b7fe(_0x191d79['position']['nodeAfter'],_0x51a78d));}return _0x31ef03;});}['_getSuggestionCoords'](_0x3b091f){return this['_getCoordsForCells'](_0x3b091f['getRanges']()['map'](_0x158eaa=>_0x158eaa['start']['nodeAfter']));}}function _e(_0x300cd7){return Array['from'](new Set(_0x300cd7)['values']());}class $t extends _0x335eea{static get['requires'](){return[Nt];}['afterInit'](){const _0x20ba39=this['editor'],_0x24ccff=_0x20ba39['model']['document']['selection'],_0x271c5a=_0x20ba39['locale'];if(!_0x20ba39['plugins']['has']('TableEditing'))return;const _0x147b3d=_0x20ba39['plugins']['get']('TrackChangesEditing'),_0x21c476=_0x20ba39['plugins']['get']('TableUtils'),_0x4568df=_0x20ba39['plugins']['get'](Nt);_0x4568df['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x147b3d['enableCommand']('mergeTableCells',()=>{const _0x240123=_0x21c476['getSelectionAffectedTableCells'](_0x20ba39['model']['document']['selection']);_0x20ba39['model']['change'](()=>{_0x147b3d['markMultiRangeBlockFormat'](_0x240123,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x20ba39['commands']['get']('mergeTableCells')['on']('execute',(_0x3243e5,_0x1b7b62)=>{_0x20ba39['commands']['get']('trackChanges')['value']&&(_0x1b7b62['length']>0x0&&_0x1b7b62[_0x1b7b62['length']-0x1]&&_0x1b7b62[_0x1b7b62['length']-0x1]['forceDefaultExecution']||_0x147b3d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3243e5['stop']());},{'priority':'highest'});for(const _0x423ffe of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xf09e89=_0x20ba39['commands']['get'](_0x423ffe);_0x147b3d['enableCommand'](_0x423ffe,()=>{const _0x5de70d=_0x20ba39['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x30d04e=>_0x30d04e['is']('element','tableCell')),_0x107a89=_0xf09e89['value'];_0x20ba39['model']['change'](()=>{_0x147b3d['markMultiRangeBlockFormat']([_0x5de70d,_0x107a89],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x51da88 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x357a22=_0x20ba39['commands']['get'](_0x51da88);_0x147b3d['enableCommand'](_0x51da88,()=>{const _0x5a9637=_0x21c476['getSelectionAffectedTableCells'](_0x20ba39['model']['document']['selection'])[0x0],_0x33bd4a=_0x5a9637['findAncestor']('table'),{column:_0xc530ec,row:_0x5650ca}=_0x21c476['getCellLocation'](_0x5a9637);let _0x3c50db=[];if('horizontally'==_0x357a22['direction']){const _0x72111d=_0x21c476['createTableWalker'](_0x33bd4a,{'startRow':_0x5650ca,'endRow':_0x5650ca,'includeAllSlots':!0x0});_0x3c50db=Array['from'](_0x72111d)['map'](_0x84aef=>_0x84aef['cell']);}else{const _0x5ee4aa=_0x21c476['createTableWalker'](_0x33bd4a,{'column':_0xc530ec,'includeAllSlots':!0x0});_0x3c50db=Array['from'](_0x5ee4aa)['map'](_0x35d2af=>_0x35d2af['cell']);}_0x20ba39['model']['change'](_0x1fdb49=>{_0x147b3d['markBlockFormat'](_0x1fdb49['createRangeOn'](_0x5a9637),{'commandName':_0x51da88,'commandParams':[]},_0x3c50db,_0x51da88);});});}_0x147b3d['descriptionFactory']['registerDescriptionCallback'](_0x3b293d=>{if('formatBlock'!=_0x3b293d['type']&&'formatInline'!=_0x3b293d['type'])return;const {data:_0xfa2965}=_0x3b293d;return _0xfa2965&&'mergeTableCells'==_0xfa2965['commandName']?{'type':'format','content':o(_0x271c5a,'*Merge\x20cells*')}:void 0x0;}),_0x147b3d['descriptionFactory']['registerDescriptionCallback'](_0x46e128=>{if('formatBlock'!=_0x46e128['type']&&'formatInline'!=_0x46e128['type'])return;const {data:_0x8ec4a6}=_0x46e128;return _0x8ec4a6?'splitTableCellVertically'==_0x8ec4a6['commandName']?{'type':'format','content':o(_0x271c5a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x8ec4a6['commandName']?{'type':'format','content':o(_0x271c5a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xbe1502=_0x4568df['_acceptFormatSuggestionCallbackFactory']();for(const _0x7145fb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x147b3d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x7145fb,'accept',_0xbe1502);for(const _0x3c3725 of['splitTableCellVertically','splitTableCellHorizontally'])_0x147b3d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3c3725,'accept',_0xbe1502);_0x147b3d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1a5078=>{_0x20ba39['model']['change'](_0x379e0a=>{const _0x3275c8=Array['from'](_0x24ccff['getRanges']())['map'](_0x560b25=>_0x1b3589['fromRange'](_0x560b25));_0x379e0a['setSelection'](_0x1a5078),_0x20ba39['commands']['get']('mergeTableCells')['refresh'](),_0x20ba39['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x385307=_0x3275c8['filter'](_0x3a0e77=>'$graveyard'!=_0x3a0e77['root']['rootName']);_0x385307['length']>0x0&&_0x379e0a['setSelection'](_0x385307);for(const _0x5ad760 of _0x3275c8)_0x5ad760['detach']();});});for(const _0x53cf77 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x422083=_0x20ba39['commands']['get'](_0x53cf77);_0x422083['on']('set:isEnabled',(_0x1036ca,_0x4e8fb7,_0x214c95)=>{if(_0x214c95){const _0x2eb149=_0x20ba39['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x7e5c7b=>_0x7e5c7b['is']('element','tableCell'));this['_areMergableCells'](_0x422083['value'],_0x2eb149)||(_0x1036ca['return']=!0x1,_0x1036ca['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x510e8f=this['editor']['commands']['get']('mergeTableCells'),_0x440f8a=this['editor']['plugins']['get']('TableUtils');if(!_0x510e8f['isEnabled'])return!0x1;const _0x3d6aef=_0x440f8a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x78934f of _0x3d6aef)for(const _0x5a9ea6 of _0x3d6aef)if(_0x78934f!=_0x5a9ea6&&!this['_areMergableCells'](_0x78934f,_0x5a9ea6))return!0x1;return!0x0;}['_areMergableCells'](_0x42288d,_0xb4e113){const _0x3c20e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d2030=this['editor']['model']['createRangeOn'](_0x42288d),_0x4177c4=this['editor']['model']['createRangeOn'](_0xb4e113),_0x1f1243=new Set(),_0x5cec96=new Set();for(const _0x5d5dfc of _0x3c20e4['getSuggestions']())if(('insertion'==_0x5d5dfc['type']||'deletion'==_0x5d5dfc['type']||'mergeTableCells'==_0x5d5dfc['subType'])&&_0x5d5dfc['isInContent']){for(const _0x53c9ca of _0x5d5dfc['getRanges']())_0x53c9ca['containsRange'](_0x2d2030,!0x0)&&_0x1f1243['add'](_0x5d5dfc['type']+':'+_0x5d5dfc['author']['id']),_0x53c9ca['containsRange'](_0x4177c4,!0x0)&&_0x5cec96['add'](_0x5d5dfc['type']+':'+_0x5d5dfc['author']['id']);}if(_0x1f1243['size']!=_0x5cec96['size'])return!0x1;for(const _0x1e11aa of _0x1f1243)if(!_0x5cec96['has'](_0x1e11aa))return!0x1;return!0x0;}}class vt extends _0x335eea{static get['requires'](){return[Nt];}['afterInit'](){const _0x42d494=this['editor'];if(!_0x42d494['plugins']['has']('TableEditing'))return;const _0x591ea1=_0x42d494['locale'],_0x5edada=_0x42d494['plugins']['get']('TrackChangesEditing');_0x5edada['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5edada['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5edada['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x591ea1,'FORMAT_HEADER_ROW')),_0x5edada['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x591ea1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3b967a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x262c8d=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x3b967a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x262c8d),_0x3b967a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x262c8d),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x12b29b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a0b62=this['editor']['plugins']['get']('TableUtils');function _0x2ef53c({showActiveMarker:_0x93052d=!0x0,setDataAttribute:_0xd9e3ff=!0x0}={}){return(_0x585990,_0xd3b44e,_0x2741b5)=>{const {type:_0xcbe52c,id:_0x21c958}=_0x12b29b['_splitMarkerName'](_0xd3b44e['markerName']);if(!_0x12b29b['hasSuggestion'](_0x21c958))return;const _0x2c68fb=_0x12b29b['getSuggestion'](_0x21c958),_0x35574b=_0x2c68fb['data'];if('formatBlock'!=_0x2c68fb['type']||!_0x35574b||'setTableColumnHeader'!=_0x35574b['commandName'])return;if(_0xd3b44e['item'])return void _0x585990['stop']();if(!_0x2741b5['consumable']['consume'](_0xd3b44e['markerRange'],_0x585990['name']))return;const _0x2005c4=_0xd3b44e['markerRange']['start']['nodeAfter'],_0x3b2890=_0xd3b44e['markerRange']['end']['nodeBefore'],_0x2b80e6=_0x2005c4['parent']['parent'],{column:_0x4819f3}=_0x5a0b62['getCellLocation'](_0x2005c4),{column:_0x2623c0}=_0x5a0b62['getCellLocation'](_0x3b2890);for(let _0x3c3f4a=_0x4819f3;_0x3c3f4a<=_0x2623c0;_0x3c3f4a++){const _0x393c45=_0x5a0b62['createTableWalker'](_0x2b80e6,{'column':_0x3c3f4a,'includeAllSlots':!0x1});for(const _0x2ce93a of _0x393c45){const _0x760e4d=_0x2ce93a['cell'],_0x54b62b=_0x2741b5['mapper']['toViewElement'](_0x760e4d);_0x2741b5['writer']['addClass']('ck-suggestion-marker-'+_0xcbe52c,_0x54b62b),_0xd9e3ff&&_0x2741b5['writer']['setAttribute']('data-suggestion',_0x21c958,_0x54b62b),_0x2741b5['mapper']['bindElementToMarker'](_0x54b62b,_0xd3b44e['markerName']),_0x93052d&&(_0x12b29b['activeMarkers']['includes'](_0xd3b44e['markerName'])?_0x2741b5['writer']['addClass']('ck-suggestion-marker--active',_0x54b62b):_0x2741b5['writer']['removeClass']('ck-suggestion-marker--active',_0x54b62b));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2ef53c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5793bd,_0x54e6db,_0x357810)=>{_0x357810['options']['showSuggestionHighlights']&&_0x2ef53c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5793bd,_0x54e6db,_0x357810);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4cb7d8,_0x43058f,_0x4b59b1)=>{const {type:_0x1efe39,id:_0x51814c}=_0x12b29b['_splitMarkerName'](_0x43058f['markerName']);if(!_0x12b29b['hasSuggestion'](_0x51814c))return;const _0x20bccf=_0x12b29b['getSuggestion'](_0x51814c),_0x3fe08a=_0x20bccf['data'];if('formatBlock'!=_0x20bccf['type']||!_0x3fe08a||'setTableColumnHeader'!=_0x3fe08a['commandName'])return;const _0x4fa660=_0x4b59b1['mapper']['markerNameToElements'](_0x43058f['markerName']);if(_0x4fa660){for(const _0x448ce5 of _0x4fa660)_0x4b59b1['writer']['removeClass']('ck-suggestion-marker-'+_0x1efe39,_0x448ce5),_0x4b59b1['writer']['removeClass']('ck-suggestion-marker--active',_0x448ce5),_0x4b59b1['writer']['removeAttribute']('data-suggestion',_0x448ce5),_0x4b59b1['mapper']['unbindElementFromMarkerName'](_0x448ce5,_0x43058f['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x36ceb2=this['editor'],_0xd7e341=_0x36ceb2['locale'];function _0x12359(_0x4c2df4){return{'type':'format','content':o(_0xd7e341,'*Format:*\x20%0',_0x4c2df4)};}_0x36ceb2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a2d2c=>{if('formatBlock'!=_0x1a2d2c['type'])return;const {data:_0x3bcfff}=_0x1a2d2c;if(_0x3bcfff){if('setTableRowHeader'==_0x3bcfff['commandName']){const _0x4ccfce=_0x3bcfff['commandParams'][0x0]['forceValue'];return _0x12359(o(_0xd7e341,_0x4ccfce?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3bcfff['commandName']){const _0x5c51b8=_0x3bcfff['commandParams'][0x0]['forceValue'];return _0x12359(o(_0xd7e341,_0x5c51b8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x335eea{['afterInit'](){const _0x4b42e5=this['editor'],_0x201f6b=_0x4b42e5['locale'],_0x494127=_0x4b42e5['plugins']['get']('TrackChangesEditing');function _0x4640b6(_0x33d602){return{'type':'format','content':''+o(_0x201f6b,'*Set\x20table\x20type:*\x20%0',_0x33d602)};}_0x4b42e5['plugins']['has']('TableLayout')&&(_0x494127['enableCommand']('insertTableLayout'),_0x494127['enableDefaultAttributesIntegration']('tableType'),_0x494127['descriptionFactory']['registerElementLabel'](_0x3fc920=>_0x3fc920['is']('element','table')&&'layout'===_0x3fc920['getAttribute']('tableType'),_0x283ce9=>o(_0x201f6b,'ELEMENT_LAYOUT_TABLE',_0x283ce9)),_0x494127['descriptionFactory']['registerDescriptionCallback'](_0x1749c1=>{const {data:_0x289710}=_0x1749c1;if(_0x289710&&'tableType'==_0x289710['key'])switch(_0x289710['newValue']){case'layout':return _0x4640b6(o(_0x201f6b,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4640b6(o(_0x201f6b,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Re['map'](_0x2c6011=>[_0x2c6011,null]));class Bt extends _0x335eea{static get['requires'](){return[Nt];}['afterInit'](){const _0x142aa6=this['editor'];if(!_0x142aa6['plugins']['has']('TableClipboard'))return;const _0xae1569=_0x142aa6['plugins']['get']('TrackChangesEditing'),_0x2a5e16=_0x142aa6['plugins']['get']('TableUtils'),_0x3de684=_0x142aa6['plugins']['get'](Nt),_0x3af175=_0x142aa6['plugins']['get']('TableClipboard'),_0x59e130=_0x142aa6['plugins']['get']('TableSelection'),_0x47b947=_0x142aa6['plugins']['get'](_0x1237ac);_0x3de684['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x142aa6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x142aa6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2cc9e4=null,_0x27c5c9=!0x1;_0x47b947['on']('contentInsertion',(_0x2a6f56,_0x4a7918)=>{_0x27c5c9='paste'===_0x4a7918['method'];}),_0x142aa6['model']['on']('insertContent',(_0x413858,_0x10a5c2)=>{if(!_0x27c5c9&&null===_0x59e130['getSelectedTableCells']())return;const [_0x42e7d5,_0x10f2ce]=_0x10a5c2,_0x176f49=_0x10a5c2[_0x10a5c2['length']-0x1];_0x176f49&&_0x176f49['forceDefaultExecution']||_0xae1569['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x411d3e,_0x44eb17,_0x536fb0,_0x17fe2e,_0x483609){if(_0x44eb17&&!_0x44eb17['is']('documentSelection'))return!0x1;const _0x399fd1=_0x483609['getTableIfOnlyTableInContent'](_0x411d3e,_0x536fb0);if(!_0x399fd1||!Oe(_0x399fd1,void 0x0,_0x17fe2e))return!0x1;const _0x14b625=_0x17fe2e['getSelectionAffectedTableCells'](_0x536fb0['document']['selection']);if(!_0x14b625['length'])return!0x1;const _0x4ad2f7=_0x14b625[0x0]['findAncestor']('table'),_0x23039b=_0x17fe2e['getRowIndexes'](_0x14b625),_0x301793=_0x17fe2e['getColumnIndexes'](_0x14b625),_0x4c94a4={'startRow':_0x23039b['first'],'endRow':_0x23039b['last'],'startColumn':_0x301793['first'],'endColumn':_0x301793['last']};return 0x1==_0x14b625['length']&&(_0x4c94a4['endRow']+=_0x17fe2e['getRows'](_0x399fd1)-0x1,_0x4c94a4['endColumn']+=_0x17fe2e['getColumns'](_0x399fd1)-0x1),Oe(_0x4ad2f7,_0x4c94a4,_0x17fe2e);}(_0x42e7d5,_0x10f2ce,_0x142aa6['model'],_0x2a5e16,_0x3af175)&&(_0x413858['stop'](),_0x2cc9e4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x142aa6['model']['change'](()=>{_0x142aa6['model']['insertContent'](_0x10a5c2[0x0],_0x10a5c2[0x1],_0x10a5c2[0x2],{'forceDefaultExecution':!0x0});const _0x309467=_0x2984a9(),{rowInsertionRanges:_0x36964f,columnInsertionRanges:_0x34bd01,insertionRanges:_0x4ed27a,deletionRanges:_0x18d5c4,cells:_0xb27ebf}=_0x2cc9e4;_0x36964f['length']&&_0xae1569['markMultiRangeInsertion'](_0x36964f,'tablePasteRow',{'tablePasteChainId':_0x309467}),_0x34bd01['length']&&_0xae1569['markMultiRangeInsertion'](_0x34bd01,'tablePasteColumn',{'tablePasteChainId':_0x309467}),_0x4ed27a['length']&&(_0xae1569['markMultiRangeInsertion'](_0x4ed27a,'tablePaste',{'tablePasteChainId':_0x309467,'skipNestingCheck':!0x0}),_0x4ed27a['forEach'](_0x4d8295=>_0x4d8295['detach']?.())),_0x18d5c4['length']&&(_0xae1569['markMultiRangeDeletion'](_0x18d5c4,'tablePaste',{'tablePasteChainId':_0x309467,'skipNestingCheck':!0x0}),_0x18d5c4['forEach'](_0x107fb7=>_0x107fb7['detach']?.()));const _0x56250a=_0xae1569['markMultiRangeBlockFormat'](_0xb27ebf['map'](({element:_0x427406})=>_0x427406),{'formatGroupId':_0x2984a9()},[],'tablePasteCell',{'tablePasteChainId':_0x309467});if(_0x56250a){const _0x299705=_0x56250a['getMarkers'](),_0x3173e4=[];for(const {element:_0x54a7cd,attributes:_0x4796b2}of _0xb27ebf){if(!_0x4796b2)continue;const _0x54e5be=_0x142aa6['model']['createRangeOn'](_0x54a7cd),_0x4c6bf2=_0x299705['find'](_0x2d55a9=>_0x2d55a9['getRange']()['isEqual'](_0x54e5be));_0x4c6bf2&&_0x3173e4['push']([_0x4c6bf2['name'],_0x4796b2]);}_0x3173e4['length']&&_0x56250a['setAttribute']('markerAttributes',Object['fromEntries'](_0x3173e4));}_0x2cc9e4=null;}));},{'priority':_0x87215e['high']+0xa}),_0x47b947['on']('contentInsertion',()=>{_0x27c5c9=!0x1;},{'priority':'lowest'}),_0x142aa6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2c1cdf,_0x501b5d)=>{const [_0x2433cc,_0x27d019,,_0xff68c3]=_0x501b5d;if(!_0x2cc9e4)return;_0x2c1cdf['stop']();const _0x3280ba=_0x2433cc['cell'],_0x389ccf=_0x27d019,_0x58860e=Be(_0x3280ba),_0x55df4=Be(_0x389ccf);_0x2c1cdf['return']=_0x3280ba;let _0x515589=null,_0xab4b96=null;if(_0x55df4||_0x58860e){if(_0x58860e&&!_0x55df4){_0xff68c3['remove'](_0x3280ba['getChild'](0x0));for(const _0x1a5d96 of Array['from'](_0x389ccf['getChildren']()))_0xff68c3['insert'](_0x1a5d96,_0x3280ba,'end');const _0x3d4ca7=_0x2cc9e4['rowInsertionIndexes']['includes'](_0x2433cc['row']),_0x2e3198=_0x2cc9e4['columnInsertionIndexes']['includes'](_0x2433cc['column']);_0x3d4ca7||_0x2e3198||(_0x515589=_0x1b3589['fromRange'](_0xff68c3['createRangeIn'](_0x3280ba)));}else _0x55df4&&!_0x58860e&&(_0xab4b96=_0xff68c3['createRangeIn'](_0x3280ba));}else{const _0x3b8e3d=_0xff68c3['createElement']('tableCellSuggestion'),_0x416683=_0xff68c3['createElement']('tableCellSuggestion');_0xff68c3['wrap'](_0xff68c3['createRangeIn'](_0x3280ba),_0x416683),_0xff68c3['insert'](_0x3b8e3d,_0x3280ba,0x0);for(const _0x3ce06c of Array['from'](_0x389ccf['getChildren']()))_0xff68c3['insert'](_0x3ce06c,_0x3b8e3d,'end');_0x515589=_0x1b3589['fromRange'](_0xff68c3['createRangeOn'](_0x3b8e3d)),_0xab4b96=_0x1b3589['fromRange'](_0xff68c3['createRangeOn'](_0x416683));}const _0x382a8c=Array['from'](_0x389ccf['getAttributes']())['filter'](([_0x121df4])=>Re['includes'](_0x121df4));_0x2cc9e4['cells']['push']({'element':_0x3280ba,'attributes':_0x382a8c['length']?Object['fromEntries'](_0x382a8c):null}),_0x515589&&_0x2cc9e4['insertionRanges']['push'](_0x515589),_0xab4b96&&_0x2cc9e4['deletionRanges']['push'](_0xab4b96);},{'priority':'high'}),_0x2a5e16['on']('insertColumns',(_0x387112,_0x5f442b)=>{const [_0x4ba46f,_0x1c156f={}]=_0x5f442b;if(!_0x2cc9e4)return;const _0xbecec0=_0x1c156f['at']||0x0,_0x5a10e2=_0x1c156f['columns']||0x1;_0x2cc9e4['columnInsertionIndexes']=new Array(_0x5a10e2)['fill'](_0xbecec0)['map']((_0x2d057e,_0x5844f7)=>_0x2d057e+_0x5844f7);for(const {cell:_0x1ec97e}of _0x2a5e16['createTableWalker'](_0x4ba46f,{'startColumn':_0xbecec0,'endColumn':_0xbecec0+_0x5a10e2-0x1}))_0x2cc9e4['columnInsertionRanges']['push'](_0x142aa6['model']['createRangeOn'](_0x1ec97e));},{'priority':'low'}),_0x2a5e16['on']('insertRows',(_0x2672e9,_0x4d7cb5)=>{const [_0x2dbd77,_0x1cd4e6={}]=_0x4d7cb5;if(!_0x2cc9e4)return;const _0x50b43b=_0x1cd4e6['at']||0x0,_0x47d33f=_0x1cd4e6['rows']||0x1;_0x2cc9e4['rowInsertionIndexes']=new Array(_0x47d33f)['fill'](_0x50b43b)['map']((_0x33e727,_0x1daaca)=>_0x33e727+_0x1daaca);for(const {cell:_0x503fae}of _0x2a5e16['createTableWalker'](_0x2dbd77,{'startRow':_0x50b43b,'endRow':_0x50b43b+_0x47d33f-0x1}))_0x2cc9e4['rowInsertionRanges']['push'](_0x142aa6['model']['createRangeOn'](_0x503fae));},{'priority':'low'}),_0xae1569['descriptionFactory']['registerDescriptionCallback'](_0x28cbfb=>{if(_0x28cbfb['subType']&&_0x28cbfb['subType']['startsWith']('tablePaste'))return _0x28cbfb['previous']?{}:{'type':'insertion','content':o(_0x142aa6['locale'],'*Replace\x20table\x20cells*')};});const _0x17350f=()=>!0x1;for(const _0x4e9bbf of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xae1569['_suggestionFactory']['registerCustomCallback']('insertion',_0x4e9bbf,'join',_0x17350f),_0xae1569['_suggestionFactory']['registerCustomCallback']('deletion',_0x4e9bbf,'join',_0x17350f),_0xae1569['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e9bbf,'join',_0x17350f);_0xae1569['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x17350f),_0xae1569['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2a7218,_0x24847b,_0x4be87d)=>{const _0x43d1b2=_0x2a7218['map'](_0x5389aa=>_0x5389aa['getContainedElement']())['filter'](_0x13fedc=>_0x13fedc),_0x3cb12d=new Map(_0x43d1b2['map'](_0x3e7e65=>[_0x3e7e65,null]));if(_0x2cc9e4){for(const {element:_0x1dfbe9,attributes:_0x54b97c}of _0x2cc9e4['cells'])_0x54b97c&&_0x3cb12d['set'](_0x1dfbe9,_0x54b97c);}else{if(_0x4be87d&&_0x4be87d['markerAttributes'])for(const [_0x370bd1,_0xff1420]of Object['entries'](_0x4be87d['markerAttributes'])){const _0x5b7089=_0x142aa6['model']['markers']['get'](_0x370bd1),_0x41e2e6=_0x5b7089?_0x5b7089['getRange']()['getContainedElement']():null;_0x41e2e6&&_0x3cb12d['set'](_0x41e2e6,_0xff1420);}}_0x142aa6['model']['change'](_0x475abe=>{for(const [_0x4e241c,_0x34c30b]of _0x3cb12d)_0x475abe['setAttributes']({...Ae,..._0x34c30b},_0x4e241c);});});const _0x3d4cf0=(_0x54501b,_0x13fc42)=>{_0xae1569['_suggestionFactory']['registerCustomCallback'](_0x54501b,'tablePaste',_0x13fc42,(_0x1b252e,_0x2b92b1,_0x1b78cf)=>{_0x142aa6['model']['change'](_0x555f6d=>{const _0x32d894=[];for(const _0x2bd23a of _0x1b252e){const _0x57b787=_0x2bd23a['start']['nodeAfter'];_0x57b787['is']('element','tableCellSuggestion')&&_0x32d894['push'](_0x57b787);}_0xae1569['_suggestionFactory']['getSuggestionCallback'](_0x54501b,null,_0x13fc42)(_0x1b252e,_0x2b92b1,_0x1b78cf);for(const _0x4b1217 of _0x32d894)'$graveyard'!=_0x4b1217['root']['rootName']&&_0x555f6d['unwrap'](_0x4b1217);});});};_0x3d4cf0('insertion','accept'),_0x3d4cf0('insertion','discard'),_0x3d4cf0('deletion','accept'),_0x3d4cf0('deletion','discard'),_0xae1569['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xfd70e2=>{const _0x3fb124=_0xfd70e2['map'](_0x48eb99=>_0x48eb99['getContainedElement']()),_0x40fc6d=_0x3fb124[0x0]['findAncestor']('table'),{minRow:_0x192295,maxRow:_0x360c25}=_0x3de684['_getCoordsForCells'](_0x3fb124);_0x2a5e16['removeRows'](_0x40fc6d,{'at':_0x192295,'rows':_0x360c25-_0x192295+0x1});}),_0xae1569['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x263af3=>{const _0x23d081=_0x263af3['map'](_0x3689af=>_0x3689af['getContainedElement']()),_0x5c9e08=_0x23d081[0x0]['findAncestor']('table'),{minColumn:_0x121493,maxColumn:_0x3bfdcd}=_0x3de684['_getCoordsForCells'](_0x23d081);_0x2a5e16['removeColumns'](_0x5c9e08,{'at':_0x121493,'columns':_0x3bfdcd-_0x121493+0x1});});const _0x187efc=(_0x1c710f,_0x121203)=>{if(!_0x121203['subType']||!_0x121203['subType']['startsWith']('tablePaste'))return;const _0x2a8f5e=_0x121203['attributes']['tablePasteChainId'],_0x38e147=_0xae1569['getSuggestions']()['filter'](_0x59300b=>_0x59300b['isInContent']&&_0x59300b['attributes']&&_0x59300b['attributes']['tablePasteChainId']==_0x2a8f5e);_0x38e147['length']&&_0x121203['getAllAdjacentSuggestions']()['length']!=_0x38e147['length']&&_0x38e147['reduce']((_0x3c65fa,_0x39f408)=>(_0x3c65fa['next']=_0x39f408,_0x39f408['previous']=_0x3c65fa,_0x39f408));};function _0x4f711c(_0x44dfe0,_0x3c5b76=!0x0){const {id:_0x2a4082,authorId:_0x3a5fa0}=_0xae1569['_splitMarkerName'](_0x44dfe0['markerName']),_0x416405=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2ad783=_0xae1569['activeMarkers']['includes'](_0x44dfe0['markerName']);return _0x2ad783&&_0x416405['push']('ck-suggestion-marker--active'),{'classes':_0x416405,'attributes':{'data-suggestion':_0x2a4082,'data-author-id':_0x3a5fa0},'priority':_0x2ad783&&_0x3c5b76?0xbc2:0xbb8};}_0xae1569['on']('suggestionLoaded',_0x187efc,{'priority':'high'}),_0xae1569['on']('suggestionUnloaded',_0x187efc,{'priority':'high'}),_0x142aa6['model']['document']['registerPostFixer'](()=>{let _0x2289af=!0x1;const _0x5c8b53=Array['from'](_0x142aa6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x586982,data:_0x3245c4}of _0x5c8b53){const {group:_0x58e064,type:_0x50bf76,id:_0x3a6e1e}=_0xae1569['_splitMarkerName'](_0x586982);if('suggestion'!=_0x58e064||'deletion'!=_0x50bf76||_0x3245c4['oldRange'])continue;if(!_0xae1569['hasSuggestion'](_0x3a6e1e))continue;const _0x37d26d=_0xae1569['getSuggestion'](_0x3a6e1e)['getRanges'](),_0x19143f=_0x142aa6['plugins']['get']('Users')['me'];for(const _0x1132e7 of _0xae1569['getSuggestions']()){if(!_0x1132e7['isInContent']||_0x1132e7['author']!=_0x19143f)continue;if('formatBlock'!=_0x1132e7['type']||'tablePasteCell'!=_0x1132e7['subType'])continue;if(_0x1132e7['getRanges']()['every'](_0x51dd1b=>_0x37d26d['some'](_0x121093=>_0x121093['containsRange'](_0x51dd1b,!0x0)))){for(const _0x4484c9 of _0x1132e7['getAllAdjacentSuggestions']())_0x4484c9['isInContent']&&(_0x4484c9['discard'](),_0x2289af=!0x0);}}}return _0x2289af;}),_0x142aa6['model']['document']['registerPostFixer'](_0x17a18b=>{const _0x31ee0a=_0x142aa6['commands']['get']('redo');if(!_0x31ee0a||!_0x31ee0a['_createdBatches']['has'](_0x17a18b['batch']))return!0x1;let _0x55ce09=!0x1;const _0x4ebd58=_0x142aa6['plugins']['get']('Users')['me'],_0x2c21b4=_0x142aa6['model']['document']['differ']['getChanges'](),_0x289703=Array['from'](_0x142aa6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2c8e41,data:_0x5870ee})=>{const {group:_0x5d5d26,subType:_0x2f72a9,authorId:_0x229045}=_0xae1569['_splitMarkerName'](_0x2c8e41);return'suggestion'==_0x5d5d26&&'tablePaste'==_0x2f72a9&&_0x229045==_0x4ebd58['id']&&!_0x5870ee['oldRange'];});for(const _0x152fd4 of _0x2c21b4){if('insert'!=_0x152fd4['type']||'tableCellSuggestion'!=_0x152fd4['name']||0x1!=_0x152fd4['length'])continue;const _0x3b69cf=_0x17a18b['createRange'](_0x152fd4['position'],_0x152fd4['position']['getShiftedBy'](0x1));if(!_0x289703['find'](({data:_0x4efcd8})=>_0x4efcd8['newRange']['isEqual'](_0x3b69cf))){for(const {name:_0x37f60b,data:_0x161394}of _0x289703)if(_0x3b69cf['containsRange'](_0x161394['newRange'])){_0x17a18b['updateMarker'](_0x37f60b,{'range':_0x3b69cf}),_0x55ce09=!0x0;break;}}}return _0x55ce09;}),_0x142aa6['model']['document']['registerPostFixer'](_0x364511=>{let _0x1cdb1c=!0x1;const _0x39142a=_0x142aa6['plugins']['get']('Users')['me'],_0x4a7592=_0xae1569['getSuggestions']()['filter'](_0x465cf1=>_0x465cf1['isInContent']&&_0x465cf1['author']==_0x39142a),_0x5a557b=new Set(),_0x3d9d9a=new Set();for(const _0x38b232 of _0x4a7592)if('tablePaste'==_0x38b232['subType'])for(const _0x289738 of _0x38b232['getMarkers']()){const _0x31f830=_0x289738['getRange']()['getContainedElement']();if(_0x31f830){if(_0x31f830['is']('element','tableCellSuggestion')&&Be(_0x31f830)){_0x38b232['removeMarker'](_0x289738['name']),_0x5a557b['add'](_0x31f830),_0x1cdb1c=!0x0;const _0xd41a67=_0x31f830['nextSibling'],_0x13b220=_0x31f830['previousSibling'],_0x28b5e1=_0xd41a67&&_0xd41a67['is']('element','tableCellSuggestion'),_0x508324=_0x13b220&&_0x13b220['is']('element','tableCellSuggestion');_0x28b5e1&&!_0x5a557b['has'](_0xd41a67)&&_0x3d9d9a['add'](_0xd41a67),_0x508324&&!_0x5a557b['has'](_0x13b220)&&_0x3d9d9a['add'](_0x13b220);}else _0x31f830['is']('element','paragraph')&&_0x31f830['isEmpty']&&(_0x38b232['removeMarker'](_0x289738['name']),_0x1cdb1c=!0x0);}}else{if('tablePasteCell'==_0x38b232['subType']){if(!_0x38b232['attributes']||!_0x38b232['attributes']['tablePasteChainId'])continue;const _0x2c1a13=_0x38b232['attributes']['markerAttributes'];if(_0x2c1a13&&Object['keys'](_0x2c1a13)['length'])continue;const _0x1d2561=_0x38b232['attributes']['tablePasteChainId'];let _0x3bb611=!0x0,_0x205b58=!0x0;for(const _0x59d211 of _0x4a7592)if(_0x59d211['subType']&&_0x59d211['subType']['startsWith']('tablePaste')){if(!_0x59d211['attributes']['tablePasteChainId']){_0x205b58=!0x1;break;}if(_0x59d211['id']!=_0x38b232['id']&&_0x59d211['attributes']['tablePasteChainId']==_0x1d2561){_0x3bb611=!0x1;break;}}_0x205b58&&_0x3bb611&&(_0x38b232['removeMarkers'](),_0x1cdb1c=!0x0);}}for(const _0x44ccb8 of _0x5a557b)_0x364511['remove'](_0x44ccb8);for(const _0x977805 of _0x3d9d9a)_0x364511['unwrap'](_0x977805);return _0x1cdb1c;}),_0x142aa6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5086d8=>_0x4f711c(_0x5086d8),'converterPriority':'high'}),_0x142aa6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x31b7ce,_0x2647c7)=>_0x2647c7['options']['showSuggestionHighlights']?_0x4f711c(_0x31b7ce,!0x1):null,'converterPriority':'high'});const _0x4811b3=_0x142aa6['editing']['view'];this['listenTo'](_0x4811b3['document'],'clipboardOutput',(_0x198d72,_0x2509a8)=>{const _0x53dba9=[];for(const _0xec4784 of _0x4811b3['createRangeIn'](_0x2509a8['content'])['getItems']())_0xec4784['is']('element','suggestion-td')&&_0x53dba9['push'](_0xec4784);_0x4811b3['change'](_0x4c1131=>{for(const _0x4e5d2b of _0x53dba9)_0x4c1131['move'](_0x4c1131['createRangeIn'](_0x4e5d2b),_0x4c1131['createPositionBefore'](_0x4e5d2b)),_0x4c1131['remove'](_0x4e5d2b);});});}}function Be(_0x1f27d7){if(_0x1f27d7['isEmpty'])return!0x0;const _0xe1af8e=_0x1f27d7['getChild'](0x0);return _0xe1af8e['is']('element','paragraph')&&_0xe1af8e['isEmpty'];}function Oe(_0x238c0d,_0x33fe5f={},_0x38e3b5){for(const {isAnchor:_0x25a509,cellHeight:_0x41ce36,cellWidth:_0x5c7d00}of _0x38e3b5['createTableWalker'](_0x238c0d,{'includeAllSlots':!0x0,..._0x33fe5f}))if(!_0x25a509||0x1!=_0x41ce36||0x1!=_0x5c7d00)return!0x1;return!0x0;}class Ot extends _0x335eea{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3e2cee=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e2cee['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3e2cee['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3e2cee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3e2cee['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3e2cee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3e2cee['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3ebbf0,_0x2a573c){const _0x4b5f41=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5545f0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5da04a=_0x2a573c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x552bc1=_0x5545f0['getColumnGroupElement'](_0x5da04a);let _0x339c9f=_0x552bc1?_0x5545f0['getTableColumnsWidths'](_0x552bc1):null,_0x196dff=_0x5da04a['getAttribute']('tableWidth')||null;const _0x36b63b=_0x2a573c['tableWidth']||_0x196dff,_0x27a3ea=_0x2a573c['columnWidths']||_0x339c9f,_0x472062=this['editor']['plugins']['get']('Users')['me'];for(const _0x388ba6 of _0x4b5f41['getSuggestions']()){const _0x5744cd=_0x388ba6['getContainedElement']();if('resizeTable'===_0x388ba6['subType']&&_0x5744cd===_0x5da04a){_0x388ba6['author']!==_0x472062&&_0x388ba6['discard']();const _0x36d4c9=_0x388ba6['data']['commandParams'];_0x196dff=_0x36d4c9[0x0]['tableWidth'],_0x339c9f=_0x36d4c9[0x0]['columnWidths'];break;}}_0x3ebbf0({'table':_0x5da04a,'tableWidth':_0x36b63b,'columnWidths':_0x27a3ea}),_0x4b5f41['markBlockFormat'](_0x5da04a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x196dff,'columnWidths':_0x339c9f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3736dd){if('formatBlock'!=_0x3736dd['type']&&'formatInline'!=_0x3736dd['type'])return;const {data:_0x58b7de}=_0x3736dd;if(_0x58b7de&&'resizeTable'===_0x58b7de['formatGroupId']){const _0x21b764='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x21b764)};}}}class xt extends _0x335eea{['afterInit'](){const _0x1179ef=this['editor'];_0x1179ef['plugins']['has']('Template')&&_0x1179ef['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x335eea{['afterInit'](){const _0x53fe30=this['editor'];if(!_0x53fe30['commands']['get']('insertTableOfContents'))return;_0x53fe30['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x523eac=_0x53fe30['plugins']['get']('TrackChangesEditing'),_0x34075f=_0x53fe30['locale'];_0x523eac['descriptionFactory']['registerElementLabel']('tableOfContents',_0x361abb=>o(_0x34075f,'ELEMENT_TABLE_OF_CONTENTS',_0x361abb));}}class Rt extends _0x335eea{['afterInit'](){const _0x5b0d3e=this['editor'];if(!_0x5b0d3e['plugins']['has']('Title'))return;const _0x48b924=_0x5b0d3e['plugins']['get']('TrackChangesEditing');_0x48b924['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5b0d3e['locale'],'ELEMENT_TITLE')),_0x5b0d3e['model']['document']['registerPostFixer'](_0xe1b62e=>{let _0x2c0225=!0x1;const _0x510ca6=Array['from'](_0x5b0d3e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x50d53a,data:_0x42e360}of _0x510ca6){const {group:_0xfc93b3}=_0x48b924['_splitMarkerName'](_0x50d53a);if('suggestion'!==_0xfc93b3||!_0x42e360['newRange'])continue;const _0x47c947=_0x42e360['newRange'],_0x136473=_0x47c947['end']['nodeBefore'];if(!_0x136473||!_0x136473['is']('element','title-content'))continue;if(!_0x47c947['start']['isTouching'](_0x47c947['end']))continue;const _0x51e1b8=_0x5b0d3e['model']['schema']['getNearestSelectionRange'](_0x47c947['end'],'forward');if(_0x51e1b8&&_0x51e1b8['isCollapsed']){const _0x287f05=_0xe1b62e['createRange'](_0x47c947['start'],_0x51e1b8['start']);_0x287f05['isEqual'](_0x47c947)||(_0xe1b62e['updateMarker'](_0x50d53a,{'range':_0x287f05}),_0x2c0225=!0x0);}_0x2c0225||(_0xe1b62e['removeMarker'](_0x50d53a),_0x2c0225=!0x0);}return _0x2c0225;});}}class Tt extends _0x335eea{['afterInit'](){const _0x3d8c5b=this['editor'],_0x18b74b=_0x3d8c5b['plugins']['get']('TrackChangesEditing');_0x3d8c5b['plugins']['has']('Uploadcare')&&(_0x18b74b['enableCommand']('uploadcare'),_0x3d8c5b['plugins']['has']('UploadcareImageEdit')&&(_0x18b74b['enableCommand']('uploadcareImageEdit'),_0x18b74b['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x18b74b['descriptionFactory']['registerDescriptionCallback'](_0x5c6cc8=>{if('attribute'!=_0x5c6cc8['type'])return;const {data:_0x372944}=_0x5c6cc8;return _0x372944&&'uploadcareImageId'==_0x372944['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x335eea{['afterInit'](){const _0x5eeca4=this['editor'],_0x170fbc=_0x5eeca4['plugins']['get']('TrackChangesEditing');_0x5eeca4['plugins']['has']('UndoEditing')&&(_0x170fbc['enableCommand']('undo'),_0x170fbc['enableCommand']('redo'));}}class Ut extends _0x335eea{static get['requires'](){return[Nt];}['afterInit'](){const _0x3c7c38=this['editor'];if(!_0x3c7c38['plugins']['has']('TableCaptionEditing'))return;_0x3c7c38['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x335eea{['tableProperties'];['tableCellProperties'];constructor(_0x28bf1d){super(_0x28bf1d),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 _0x251473=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5911ea of this['tableProperties'])_0x251473['enableCommand'](_0x5911ea,(_0x18cb16,_0x4c97bd)=>{const _0x92257c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5911ea,[_0x92257c],this['tableProperties'],'tableProperties',_0x18cb16,_0x4c97bd);});_0x251473['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x251473['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x251473['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5976d5,_0x2a65c0)=>this['handleDiscardAction'](this['tableProperties'],_0x5976d5,_0x2a65c0)),_0x251473['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3db1e4 of this['tableCellProperties'])_0x251473['enableCommand'](_0x3db1e4,(_0x1df3eb,_0x5d9952)=>{const _0x27dba2=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3db1e4,_0x27dba2,this['tableCellProperties'],'tableCellProperties',_0x1df3eb,_0x5d9952);});_0x251473['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x251473['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x251473['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x10c947,_0x3d7d8a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x10c947,_0x3d7d8a)),_0x251473['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x251473['descriptionFactory']['registerDescriptionCallback'](_0x4161f6=>this['handleSuggestionDescription'](_0x4161f6)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x492350,_0x538057,_0x1b5e5d,_0x3c5ad5,_0x109d39,_0x30fd40){const _0x2c4eaf=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x30fd40['batch'],()=>{for(const _0xbf1bf of _0x538057){if(this['_getSuggestion'](_0xbf1bf,_0x3c5ad5))_0x109d39(_0x30fd40);else{const _0x58896a={};for(const _0x58f7a6 of _0x1b5e5d){const _0x27bcb2=_0xbf1bf['getAttribute'](_0x58f7a6);void 0x0!==_0x27bcb2&&(_0x58896a[_0x58f7a6]=_0x27bcb2);}_0x109d39(_0x30fd40),_0x2c4eaf['markBlockFormat'](_0xbf1bf,{'commandParams':[_0x58896a]},[],_0x3c5ad5);}}});}['handleDiscardAction'](_0x2b1987,_0x491180,_0x4b9a48){const _0x4410d=_0x491180[0x0]['start']['nodeAfter'],_0x112575=_0x4b9a48['commandParams'][0x0];this['editor']['model']['change'](_0x223642=>{for(const _0x12fb5c of _0x2b1987)void 0x0!==_0x112575[_0x12fb5c]?_0x223642['setAttribute'](_0x12fb5c,_0x112575[_0x12fb5c],_0x4410d):_0x223642['removeAttribute'](_0x12fb5c,_0x4410d);});}['handleSuggestionDescription'](_0x1fda6f){if(_0x1fda6f['data'])switch(_0x1fda6f['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'](_0x4f4d8a,_0x5961df){const _0x4d180c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xfcceac of _0x4d180c['getSuggestions']({'skipNotAttached':!0x0})){const _0x2cafad=_0xfcceac['getContainedElement']();if(_0xfcceac['subType']===_0x5961df&&_0x2cafad===_0x4f4d8a)return _0xfcceac;}return null;}['_registerTablePropertiesAttributes'](){const _0x1d6736=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54ef0e=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x24b40c of _0x54ef0e){const _0x24778d=_0x24b40c['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1d6736['descriptionFactory']['registerAttributeLabel'](_0x24b40c,o(this['editor']['locale'],'FORMAT_'+_0x24778d));}}}class Ft extends _0x335eea{['afterInit'](){const _0x5a56b2=this['editor'];if(!_0x5a56b2['plugins']['has']('LineHeight'))return;const _0x2e05ac=_0x5a56b2['plugins']['get']('TrackChangesEditing'),_0xc633bd=_0x5a56b2['locale'];_0x2e05ac['enableDefaultAttributesIntegration']('lineHeight'),_0x2e05ac['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0xc633bd,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x335eea{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x122a13,_0x15c3f6,_0x5aa49f,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(_0xa4a29e){super(_0xa4a29e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x26d640,_0x119ad1,_0x1f7c4a,_0x463612)=>{this['_model']['change'](()=>{for(const _0x54e6f5 of[..._0x463612,..._0x1f7c4a])this['_model']['markers']['has'](_0x54e6f5)&&_0xa4a29e['editing']['reconvertMarker'](_0x54e6f5);});}),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']=_0xa4a29e['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0xa4a29e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xa4a29e['config']['get']('trackChanges.trackFormatChanges'),_0xa4a29e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xa4a29e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0xa4a29e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x43aed2=this['editor'];_0x43aed2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x25c35e,{writer:_0x3eee78})=>{let _0x18f855='suggestion:'+_0x25c35e['getAttribute']('suggestion-type')+':'+_0x25c35e['getAttribute']('id');return _0x25c35e['getAttribute']('marker-count')&&(_0x18f855+=':'+_0x25c35e['getAttribute']('marker-count')),_0x3eee78['createElement']('$marker',{'data-name':_0x18f855});}}),_0x43aed2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x43aed2['model']['document']['registerPostFixer'](_0x49312f=>{let _0x313c35=!0x1;const _0x14bbc1=Array['from'](_0x43aed2['model']['document']['differ']['getChangedMarkers']()),_0x5b2e96=new Set();for(const {name:_0x32b673,data:_0x431b8c}of _0x14bbc1){const {group:_0x3fce91,type:_0x49853e,subType:_0x4610a1,id:_0x17b29a}=this['_splitMarkerName'](_0x32b673);if('suggestion'!==_0x3fce91)continue;const _0x475b89=_0x4610a1?'suggestion:'+_0x49853e+':'+_0x4610a1+':'+_0x17b29a:'suggestion:'+_0x49853e+':'+_0x17b29a,_0x579eac=_0x43aed2['model']['markers']['getMarkersGroup'](_0x475b89),_0x14c17d=_0x43aed2['model']['markers']['get'](_0x32b673),_0x28b62e=this['_suggestions']['get'](_0x17b29a);if(null!=_0x431b8c['newRange']){'formatInline'==_0x49853e&&(_0x313c35=_0x313c35||Wt(_0x431b8c['newRange'],_0x32b673,_0x49312f,_0x43aed2['model']['schema']));const _0x2b6589='attribute'==_0x49853e&&this['_isBlockAttribute'](_0x4610a1['split']('|')[0x0]),_0x1f9a3b='attribute'==_0x49853e&&this['_isInlineAttribute'](_0x4610a1['split']('|')[0x0]);if(_0x431b8c['newRange']['isCollapsed']||'$graveyard'==_0x431b8c['newRange']['root']['rootName']||'formatBlock'==_0x49853e&&!Qt(_0x431b8c['newRange'])||_0x2b6589&&!Qt(_0x431b8c['newRange'])||_0x1f9a3b&&Xt(_0x431b8c['newRange'])||'deletion'==_0x49853e&&Xt(_0x431b8c['newRange'])||_0x14c17d&&Yt(_0x14c17d,_0x579eac))_0x49312f['removeMarker'](_0x32b673),_0x313c35=!0x0;else{if(!_0x28b62e||!_0x28b62e['isInContent'])continue;if(_0x431b8c['newRange']&&_0x431b8c['oldRange']&&_0x431b8c['newRange']['isEqual'](_0x431b8c['oldRange']))continue;_0x5b2e96['add'](_0x28b62e);}}}return _0x5b2e96['size']>0x0&&(_0x313c35=!!this['_joinWithAdjacentSuggestions'](_0x5b2e96)||_0x313c35),_0x313c35;}),_0x43aed2['model']['document']['registerPostFixer'](_0x41f167=>{let _0x5b9772=!0x1;for(const _0x368a94 of _0x43aed2['model']['document']['differ']['getChanges']())if('insert'==_0x368a94['type'])for(const _0x31e325 of this['_suggestions']['values']()){if(_0x31e325['isMultiRange']||!_0x31e325['isInContent'])continue;const _0x226e84='formatBlock'==_0x31e325['type'],_0x296335=this['_getAttributeKey'](_0x31e325),_0x561ff0=_0x296335&&this['_isBlockAttribute'](_0x296335);if(!_0x226e84&&!_0x561ff0)continue;const _0x42cb2a=_0x31e325['getFirstRange']();if(_0x42cb2a['start']['parent']!=_0x42cb2a['end']['parent']&&!_0x42cb2a['end']['isAtEnd']){const _0x2316c4=_0x43aed2['model']['createPositionAt'](_0x42cb2a['start']['nodeAfter'],'end'),_0x1786e6=_0x43aed2['model']['createRange'](_0x42cb2a['start'],_0x2316c4);_0x41f167['updateMarker'](_0x31e325['getFirstMarker'](),{'range':_0x1786e6}),_0x5b9772=!0x0;}}return _0x5b9772;}),_0x43aed2['model']['document']['registerPostFixer'](_0x36e03f=>this['_processAttributeChanges'](_0x36e03f)),_0x43aed2['model']['document']['registerPostFixer'](_0x115a34=>!_0x115a34['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x115a34)),_0x43aed2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x43aed2['model']['document']['on']('change:data',(_0x18ea9a,_0xf345e2)=>{if(!_0xf345e2['isLocal']||_0xf345e2['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5ded86=_0x43aed2['model']['document']['differ']['getChanges']();if(0x0==_0x5ded86['length'])return;const _0x16bb9e=[],_0x32437f=_0x5ded86['filter'](_0xbac58e=>'attribute'==_0xbac58e['type']),_0x62746e=_0x5ded86['filter'](_0x22eaa5=>'insert'==_0x22eaa5['type']&&'$text'!=_0x22eaa5['name']);for(const _0x26fa23 of _0x32437f)this['_isRegisteredAttribute'](_0x26fa23['attributeKey'])&&_0x16bb9e['push']({'key':_0x26fa23['attributeKey'],'newValue':_0x26fa23['attributeNewValue'],'oldValue':_0x26fa23['attributeOldValue'],'range':Zt(_0x26fa23['range'],_0x43aed2['model'])});for(const _0x8a30ff of _0x62746e){if('rename'!=_0x8a30ff['action']&&'refresh'!=_0x8a30ff['action'])continue;const _0x167576=tn(_0x8a30ff['position']['nodeAfter'],_0x43aed2['model']),_0x541ef9=_0x8a30ff['before'];'rename'==_0x8a30ff['action']&&_0x16bb9e['push']({'key':m,'newValue':_0x8a30ff['name'],'oldValue':_0x541ef9['name'],'range':_0x167576});for(const [_0x36a016,_0x4960a2]of _0x541ef9['attributes']){if(!this['_isRegisteredAttribute'](_0x36a016))continue;const _0x338bcb=_0x8a30ff['attributes']['get'](_0x36a016);_0x4960a2!==_0x338bcb&&_0x16bb9e['push']({'key':_0x36a016,'newValue':_0x338bcb,'oldValue':_0x4960a2,'range':_0x167576});}for(const [_0x48c6ba,_0x2eec36]of _0x8a30ff['attributes'])this['_isRegisteredAttribute'](_0x48c6ba)&&(_0x541ef9['attributes']['has'](_0x48c6ba)||_0x16bb9e['push']({'key':_0x48c6ba,'newValue':_0x2eec36,'oldValue':null,'range':_0x167576}));}0x0!=_0x16bb9e['length']&&_0x43aed2['model']['enqueueChange'](_0xf345e2,_0x4b88e6=>{const _0x1d7e95=_0x2984a9();for(const {range:_0x224a0e,key:_0x3331bb,oldValue:_0x3a4176,newValue:_0x465555}of _0x16bb9e)this['markAttributeChange'](_0x224a0e,_0x3331bb,_0x3a4176,_0x465555,{'groupId':_0x1d7e95});this['_reduceExistingSuggestions'](_0x4b88e6,_0x16bb9e);});},{'priority':'lowest'}),_0x43aed2['model']['markers']['on']('update:suggestion',(_0x872f22,_0x286eb4,_0x40dec0)=>{if(null==_0x40dec0){const {id:_0x5f42c4}=this['_splitMarkerName'](_0x286eb4['name']),_0x567634=this['_suggestions']['get'](_0x5f42c4);_0x567634&&_0x567634['addMarkerName'](_0x286eb4['name']);}}),_0x43aed2['model']['document']['on']('change:data',()=>{const _0x22a0f5=Array['from'](_0x43aed2['model']['document']['differ']['getChangedMarkers']())['filter'](_0xd8f484=>'suggestion'===this['_splitMarkerName'](_0xd8f484['name'])['group']);if(0x0===_0x22a0f5['length'])return;_0x22a0f5['sort']((_0x5c2dc4,_0xff57f3)=>{const _0x430704=_0x5c2dc4['data']['oldRange'],_0x13d9c0=_0xff57f3['data']['oldRange'];return null===_0x430704&&null===_0x13d9c0?0x0:null===_0x430704&&null!==_0x13d9c0?-0x1:null!==_0x430704&&null===_0x13d9c0?0x1:_0x430704['start']['isBefore'](_0x13d9c0['start'])?-0x1:0x1;});const _0xb1b78=new Set(),_0x1cc0c1=new Set();for(const {name:_0x25375c,data:_0x3bc4f4}of _0x22a0f5){const {id:_0x308d06}=this['_splitMarkerName'](_0x25375c);if(null===_0x3bc4f4['oldRange']){const _0x241321=this['_handleNewSuggestionMarker'](_0x25375c);_0x1cc0c1['add'](_0x241321);}else{const _0xcedae9=this['_suggestions']['get'](_0x308d06);null!==_0x3bc4f4['newRange']||_0xcedae9['isInContent']?(_0xb1b78['add'](_0xcedae9['head']),_0x1cc0c1['add'](_0xcedae9)):this['_removeSuggestion'](_0xcedae9);}}_0x1cc0c1['size']>0x0&&this['_refreshSuggestionsChain'](_0x1cc0c1);for(const _0x31cd20 of _0xb1b78)this['fire']('suggestionChanged',_0x31cd20);}),_0x43aed2['model']['on']('applyOperation',(_0x22a875,_0x1e7dd9)=>{const _0x4db8e9=_0x1e7dd9[0x0];if(!this['_suggestions']['size'])return;if(!_0x4db8e9['isDocumentOperation'])return;if(_0x4db8e9['batch']['isUndo']||!_0x4db8e9['batch']['isLocal'])return;let _0x1e0cce,_0xa6b72a;switch(_0x4db8e9['type']){case'insert':_0x1e0cce=_0x43aed2['model']['createPositionAt'](_0x4db8e9['position']),_0xa6b72a=_0x1e0cce['getShiftedBy'](_0x4db8e9['howMany']);break;case'split':_0x1e0cce=_0x43aed2['model']['createPositionAt'](_0x4db8e9['splitPosition']),_0xa6b72a=_0x43aed2['model']['createPositionAt'](_0x4db8e9['moveTargetPosition']);break;case'move':_0x1e0cce=_0x43aed2['model']['createPositionAt'](_0x4db8e9['targetPosition']),_0xa6b72a=_0x1e0cce['getShiftedBy'](_0x4db8e9['howMany']);break;default:return;}const _0x4aae51=_0x43aed2['model']['createRange'](_0x1e0cce,_0xa6b72a);_0x43aed2['model']['change'](()=>{for(const {suggestion:_0x42ce1c,meta:_0x223ba9}of this['_findSuggestions'](_0x4aae51)){if(_0x42ce1c['isMultiRange'])continue;if('formatInline'==_0x42ce1c['type'])continue;const _0x228834=this['_getAttributeKey'](_0x42ce1c);if(_0x228834&&this['_isBlockAttribute'](_0x228834)&&'split'!=_0x4db8e9['type'])continue;const _0x48e27f=_0x42ce1c['data']&&_0x42ce1c['data']['multipleBlocks'];('formatBlock'!=_0x42ce1c['type']||'split'==_0x4db8e9['type']&&!_0x48e27f)&&(_0x223ba9['containsRangeInObject']||'insertion'==_0x42ce1c['type']&&_0x223ba9['isOwn']||_0x42ce1c['getFirstRange']()['containsRange'](_0x4aae51)&&this['_breakSuggestionMarker'](_0x42ce1c,_0x1e0cce,_0xa6b72a));}});},{'priority':'lowest'}),_0x43aed2['model']['on']('deleteContent',(_0x5bff4a,_0x5d2889)=>{const _0x1c355f=_0x5d2889[0x0],_0x2a03bf=_0x5d2889[0x1];if(_0x2a03bf&&_0x2a03bf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1c355f['isCollapsed'])return;const _0xf7b105=_0x43aed2['model']['schema'],{start:_0x19ca1a,end:_0x336bfb}=_0x1c355f['getFirstRange'](),_0x4568c6=_0x19ca1a['nodeAfter']&&_0xf7b105['isLimit'](_0x19ca1a['nodeAfter'])?null:_0xf7b105['getNearestSelectionRange'](_0x19ca1a,'forward'),_0x5d9496=_0x336bfb['nodeBefore']&&_0xf7b105['isLimit'](_0x336bfb['nodeBefore'])?null:_0xf7b105['getNearestSelectionRange'](_0x336bfb,'backward'),_0x13ae39=_0x43aed2['model']['createRange'](_0x4568c6?_0x4568c6['start']:_0x19ca1a,_0x5d9496?_0x5d9496['end']:_0x336bfb);_0x43aed2['model']['change'](_0x5a2e28=>{this['markDeletion'](_0x13ae39);const _0x5427ca=_0x43aed2['model']['schema']['getNearestSelectionRange'](_0x13ae39['start']);_0x1c355f['is']('documentSelection')?_0x5a2e28['setSelection'](_0x5427ca):_0x1c355f['setTo'](_0x5427ca);}),_0x5bff4a['stop']();},{'priority':_0x87215e['normal']+0xa}),_0x43aed2['model']['on']('insertContent',(_0x5b7d1c,_0x226c0b)=>{const _0x1f6a7e=_0x226c0b[_0x226c0b['length']-0x1];_0x1f6a7e&&_0x1f6a7e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x43aed2['model']['change'](()=>{let _0x3f592c=_0x43aed2['model']['insertContent'](_0x226c0b[0x0],_0x226c0b[0x1],_0x226c0b[0x2],{'forceDefaultExecution':!0x0});if(!_0x3f592c)return;_0x5b7d1c['return']=_0x3f592c['clone']();const _0x2db9d2=_0x3f592c['end']['nodeBefore'],_0x422f55=_0x43aed2['model']['schema'];_0x2db9d2&&_0x422f55['isBlock'](_0x2db9d2)&&!_0x422f55['isObject'](_0x2db9d2)&&(_0x3f592c=_0x43aed2['model']['createRange'](_0x3f592c['start'],_0x43aed2['model']['createPositionAt'](_0x2db9d2,'end'))),this['markInsertion'](_0x3f592c);}),_0x5b7d1c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xcbc970=new v(_0x43aed2,this['_suggestions']);_0x43aed2['commands']['add']('acceptSuggestion',_0xcbc970),this['enableCommand']('acceptSuggestion');const _0x51a080=new D(_0x43aed2,this['_suggestions']);_0x43aed2['commands']['add']('discardSuggestion',_0x51a080),this['enableCommand']('discardSuggestion'),_0x43aed2['commands']['add']('acceptAllSuggestions',new B(_0x43aed2,_0xcbc970,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x43aed2['commands']['add']('discardAllSuggestions',new B(_0x43aed2,_0x51a080,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x43aed2['commands']['add']('acceptSelectedSuggestions',new O(_0x43aed2,_0xcbc970,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x43aed2['commands']['add']('discardSelectedSuggestions',new O(_0x43aed2,_0x51a080,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5a85f0=_0x43aed2['plugins']['get']('CommentsRepository');this['listenTo'](_0x5a85f0,'addComment',(_0x2117b1,{threadId:_0x223ae9})=>{const _0xb14819=this['_suggestions']['get'](_0x223ae9);_0xb14819&&_0xb14819['commentThread']&&0x1===_0xb14819['commentThread']['length']&&this['_updateSuggestionData'](_0x223ae9,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5a85f0,'removeComment',(_0x4319fc,{threadId:_0xfee8a7})=>{const _0x18eff0=this['_suggestions']['get'](_0xfee8a7);_0x18eff0&&_0x18eff0['commentThread']&&!_0x18eff0['commentThread']['length']&&this['_updateSuggestionData'](_0xfee8a7,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4c9b1b){const _0xe33e8f=_0x4b131b([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]),_0x4e1680=0x3d8d0df,_0x543b39=0x3dfaa07^_0x4e1680,_0xb12d26=window[_0x4b131b([0x44,0x61,0x74,0x65])][_0x4b131b([0x6e,0x6f,0x77])](),_0x50c749=_0x4c9b1b[_0x4b131b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x467ab1=new window[(_0x4b131b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34a544=>{_0x50c749[_0x4b131b([0x6f,0x6e,0x63,0x65])](_0x4b131b([0x72,0x65,0x61,0x64,0x79]),_0x34a544);}),_0x4dc27d={[_0x4b131b([0x6b,0x74,0x79])]:_0x4b131b([0x45,0x43]),[_0x4b131b([0x75,0x73,0x65])]:_0x4b131b([0x73,0x69,0x67]),[_0x4b131b([0x63,0x72,0x76])]:_0x4b131b([0x50,0x2d,0x32,0x35,0x36]),[_0x4b131b([0x78])]:_0x4b131b([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]),[_0x4b131b([0x79])]:_0x4b131b([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]),[_0x4b131b([0x61,0x6c,0x67])]:_0x4b131b([0x45,0x53,0x32,0x35,0x36])},_0x2f93ff=_0x50c749[_0x4b131b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b131b([0x67,0x65,0x74])](_0x4b131b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x64fb08(){let _0x4a1b57,_0xa835ba=null,_0x53e420=null;try{if(_0x2f93ff==_0x4b131b([0x47,0x50,0x4c]))return _0x4b131b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4a1b57=_0x40cd9d(),!_0x4a1b57)return _0x4b131b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4a1b57[_0x4b131b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x53e420=_0x2737c5(_0x4a1b57[_0x4b131b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4a1b57[_0x4b131b([0x6a,0x74,0x69])])),await _0x1708c9()?_0x4955a3()?_0x8bcfe7()?_0x4b131b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x456d5b()?(_0x4a1b57[_0x4b131b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b131b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xa835ba=_0xfb079b(_0x4b131b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4a1b57[_0x4b131b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b131b([0x74,0x72,0x69,0x61,0x6c])&&(_0xa835ba=_0xfb079b(_0x4b131b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x44e76e()):_0x4b131b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b131b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b131b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4b131b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x8bcfe7(){const _0x2548a9=[_0x4b131b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b131b([0x74,0x72,0x69,0x61,0x6c])][_0x4b131b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a1b57[_0x4b131b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xb12d26/0x3e8:0xe10*_0x543b39;return _0x4a1b57[_0x4b131b([0x65,0x78,0x70])]<_0x2548a9;}function _0x4955a3(){const _0x7ac729=_0x4a1b57[_0x4b131b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x7ac729)return!0x1;if(_0x7ac729[_0x4b131b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b131b([0x2a])))return!0x0;if(_0x7ac729[_0x4b131b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b131b([0x54,0x43])))return!0x0;if(_0x7ac729[_0x4b131b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b131b([0x52,0x54,0x43]))){if(_0x237855())return!0x0;if(_0x488f56()||_0x5140c9())return!0x0;}return!0x1;}function _0x456d5b(){const _0x16b30a=_0x4a1b57[_0x4b131b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x16b30a||0x0==_0x16b30a[_0x4b131b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1719bb}=new URL(window[_0x4b131b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x16b30a[_0x4b131b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1719bb))return!0x0;const _0x2f41b0=_0x1719bb[_0x4b131b([0x73,0x70,0x6c,0x69,0x74])](_0x4b131b([0x2e]));return _0x16b30a[_0x4b131b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x307fca=>_0x307fca[_0x4b131b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b131b([0x2a])))[_0x4b131b([0x6d,0x61,0x70])](_0x2bad9a=>_0x2bad9a[_0x4b131b([0x73,0x70,0x6c,0x69,0x74])](_0x4b131b([0x2e])))[_0x4b131b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb1e22=>_0xb1e22[_0x4b131b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2f41b0[_0x4b131b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b131b([0x6d,0x61,0x70])](_0x1b1f47=>Array(_0x2f41b0[_0x4b131b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1b1f47[_0x4b131b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b131b([0x66,0x69,0x6c,0x6c])](_0x1b1f47[0x0]===_0x4b131b([0x2a])?_0x4b131b([0x2a]):'')[_0x4b131b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1b1f47))[_0x4b131b([0x73,0x6f,0x6d,0x65])](_0x5bd179=>_0x2f41b0[_0x4b131b([0x65,0x76,0x65,0x72,0x79])]((_0x57073f,_0x101592)=>_0x5bd179[_0x101592]===_0x57073f||_0x5bd179[_0x101592]===_0x4b131b([0x2a])));}function _0x44e76e(){return _0xa835ba&&_0x53e420?new window[(_0x4b131b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33eea5,_0x3c6884)=>{_0xa835ba[_0x4b131b([0x74,0x68,0x65,0x6e])](_0x33eea5,_0x3c6884),_0x53e420[_0x4b131b([0x74,0x68,0x65,0x6e])](_0x255cc0=>{_0x255cc0!=_0x4b131b([0x56,0x61,0x6c,0x69,0x64])&&_0x33eea5(_0x255cc0);},_0x3c6884);}):_0xa835ba||_0x53e420||_0x4b131b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2737c5(_0x4c9e26,_0x2f703b){return new window[(_0x4b131b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x720abf=>{if(_0x4aea23())return _0x720abf(_0x4b131b([0x56,0x61,0x6c,0x69,0x64]));_0x1cc534(),_0x50c749[_0x4b131b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b131b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x37e8f6=!0x1;const _0x423c4f=_0x2984a9();function _0x5e8f26(_0x48f703){return!!_0x48f703&&(typeof _0x48f703===_0x4b131b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x48f703===_0x4b131b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x48f703[_0x4b131b([0x74,0x68,0x65,0x6e])]===_0x4b131b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x48f703[_0x4b131b([0x63,0x61,0x74,0x63,0x68])]===_0x4b131b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x14d368(_0x5509d3){_0x2e5359(_0x5509d3)[_0x4b131b([0x74,0x68,0x65,0x6e])](_0x507036=>{if(!_0x507036||_0x507036[_0x4b131b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b131b([0x6f,0x6b]))return _0x4b131b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x21cd01(_0x4ff97b(_0x423c4f+_0x2f703b))!=_0x507036[_0x4b131b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b131b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b131b([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b131b([0x74,0x68,0x65,0x6e])](_0x36fbc7=>(_0x5af25f(),_0x36fbc7),()=>{const _0x16fc78=_0x118c70();return null==_0x16fc78?(_0x5af25f(),_0x4b131b([0x56,0x61,0x6c,0x69,0x64])):_0x4b131b(_0xb12d26-_0x16fc78>(0x27d454df^_0x4e1680)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b131b([0x74,0x68,0x65,0x6e])](_0x720abf)[_0x4b131b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x720abf(_0x4b131b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xaca4ed=0x3ee3e5f^_0x4e1680;function _0x5af25f(){const _0x3b958e=_0x4b131b([0x6c,0x6c,0x63,0x74,0x2d])+_0x21cd01(_0x4ff97b(_0x4c9e26)),_0x24ab3d=_0x2c0730(_0x21cd01(window[_0x4b131b([0x4d,0x61,0x74,0x68])][_0x4b131b([0x63,0x65,0x69,0x6c])](_0xb12d26/_0xaca4ed)));window[_0x4b131b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b131b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b958e,_0x24ab3d);}function _0x118c70(){const _0x37876b=_0x4b131b([0x6c,0x6c,0x63,0x74,0x2d])+_0x21cd01(_0x4ff97b(_0x4c9e26)),_0x462215=window[_0x4b131b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b131b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37876b);return _0x462215?window[_0x4b131b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c0730(_0x462215),0x10)*_0xaca4ed:null;}function _0x2e5359(_0x51039f){return new window[(_0x4b131b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b3a42,_0x476fd9)=>{_0x51039f[_0x4b131b([0x74,0x68,0x65,0x6e])](_0x5b3a42,_0x476fd9),window[_0x4b131b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x476fd9,0x3d9041f^_0x4e1680);});}}_0x50c749[_0x4b131b([0x6f,0x6e])](_0x4b131b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1bfd6a,_0x44d6a4)=>{if(_0x44d6a4[0x0]!=_0x4c9e26)return _0x720abf(_0x4b131b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44d6a4[0x1]={..._0x44d6a4[0x1],[_0x4b131b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x423c4f};},{[_0x4b131b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b131b([0x68,0x69,0x67,0x68])}),_0x50c749[_0x4b131b([0x6f,0x6e])](_0x4b131b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5bf759=>{_0x5e8f26(_0x5bf759[_0x4b131b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x37e8f6=!0x0,_0x14d368(_0x5bf759[_0x4b131b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b131b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b131b([0x6c,0x6f,0x77])}),_0x467ab1[_0x4b131b([0x74,0x68,0x65,0x6e])](()=>{_0x37e8f6||_0x720abf(_0x4b131b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4aea23(){return _0x50c749[_0x4b131b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b131b([0x76,0x69,0x65,0x77])][_0x4b131b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b131b([0x61,0x75,0x74,0x6f]);}function _0x1cc534(){_0x50c749[_0x4b131b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b131b([0x76,0x69,0x65,0x77])][_0x4b131b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b131b([0x61,0x75,0x74,0x6f]);}}function _0xfb079b(_0x519147){const _0x1e2bef=[new window[(_0x4b131b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f89c9=>setTimeout(_0x4f89c9,0x3d1ee13^_0x4e1680)),_0x467ab1[_0x4b131b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b131b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42147b=>{let _0xb0e932=0x0;_0x50c749[_0x4b131b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b131b([0x6f,0x6e])](_0x4b131b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x55ef80,_0x538802)=>{_0x538802[0x0][_0x4b131b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb0e932++,_0xb0e932==(0x3d8d127^_0x4e1680)&&(_0x42147b(),_0x55ef80[_0x4b131b([0x6f,0x66,0x66])]());});}))];return window[_0x4b131b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b131b([0x72,0x61,0x63,0x65])](_0x1e2bef)[_0x4b131b([0x74,0x68,0x65,0x6e])](()=>_0x519147);}async function _0xe90a1a(){await _0x467ab1,_0x50c749[_0x4b131b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b131b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x326470,_0x50c749[_0x4b131b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b131b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x326470,_0x50c749[_0x4b131b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b131b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x237855(){return _0x21adb6(_0x4b131b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x372611(_0x4b131b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4b131b([0x73,0x74,0x61,0x74,0x65])]==_0x4b131b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x488f56(){return _0x21adb6(_0x4b131b([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 _0x5140c9(){return _0x21adb6(_0x4b131b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1c0dea(_0x45fb22){const _0x6e054=_0x3860d3();_0x50c749[_0x6e054]=_0x4b131b([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45fb22,_0x45fb22!=_0x4b131b([0x56,0x61,0x6c,0x69,0x64])&&_0xe90a1a();}function _0x3860d3(){const _0x47a437=window[_0x4b131b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b131b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b131b([0x6e,0x6f,0x77])]())[_0x4b131b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b131b([0x2e]),'');let _0x333f51=_0x4b131b([0x52]);for(let _0x4297c0=0x0;_0x4297c0<_0x47a437[_0x4b131b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4297c0+=0x2){let _0x40e88f=window[_0x4b131b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47a437[_0x4b131b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4297c0,_0x4297c0+0x2));_0x40e88f>=_0xe33e8f[_0x4b131b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x40e88f-=_0xe33e8f[_0x4b131b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x333f51+=_0xe33e8f[_0x40e88f];}return _0x333f51;}function _0x40cd9d(){const _0x2e7f01=_0x2f93ff[_0x4b131b([0x73,0x70,0x6c,0x69,0x74])](_0x4b131b([0x2e]));if(0x3!=_0x2e7f01[_0x4b131b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3db3b2(_0x2e7f01[0x1]);function _0x3db3b2(_0x4b7f46){const _0x16942c=_0x46600c(_0x4b7f46);return _0x16942c&&_0x4f3869()?_0x16942c:null;function _0x4f3869(){const _0x2ba974=_0x16942c[_0x4b131b([0x6a,0x74,0x69])],_0x59e4a5=window[_0x4b131b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ba974[_0x4b131b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ba974[_0x4b131b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48efa1={..._0x16942c,[_0x4b131b([0x6a,0x74,0x69])]:_0x2ba974[_0x4b131b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2ba974[_0x4b131b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48efa1[_0x4b131b([0x76,0x63])],_0x4ff97b(_0x48efa1)==_0x59e4a5;}}}async function _0x1708c9(){let _0x3fcbd9=!0x0;try{const _0x25c2cd=_0x2f93ff[_0x4b131b([0x73,0x70,0x6c,0x69,0x74])](_0x4b131b([0x2e])),[_0x552dbd,_0x383863,_0x5ef8a2]=_0x25c2cd;return _0xca7dd2(_0x552dbd),await _0x3bcd40(_0x552dbd,_0x383863,_0x5ef8a2),_0x3fcbd9;}catch{return!0x1;}function _0xca7dd2(_0x3b54f7){const _0x4af05d=_0x46600c(_0x3b54f7);_0x4af05d&&_0x4af05d[_0x4b131b([0x61,0x6c,0x67])]==_0x4b131b([0x45,0x53,0x32,0x35,0x36])||(_0x3fcbd9=!0x1);}async function _0x3bcd40(_0x5cf793,_0x42504b,_0x281047){const _0x58d45b=window[_0x4b131b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b131b([0x66,0x72,0x6f,0x6d])](_0xe55bc9(_0x281047),_0x56b6fa=>_0x56b6fa[_0x4b131b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f8fe7=new window[(_0x4b131b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b131b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5cf793+_0x4b131b([0x2e])+_0x42504b),_0x543a6f=window[_0x4b131b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b131b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x543a6f)return;const _0x313ef2=await _0x543a6f[_0x4b131b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b131b([0x6a,0x77,0x6b]),_0x4dc27d,{[_0x4b131b([0x6e,0x61,0x6d,0x65])]:_0x4b131b([0x45,0x43,0x44,0x53,0x41]),[_0x4b131b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b131b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b131b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x543a6f[_0x4b131b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b131b([0x6e,0x61,0x6d,0x65])]:_0x4b131b([0x45,0x43,0x44,0x53,0x41]),[_0x4b131b([0x68,0x61,0x73,0x68])]:{[_0x4b131b([0x6e,0x61,0x6d,0x65])]:_0x4b131b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x313ef2,_0x58d45b,_0x1f8fe7)||(_0x3fcbd9=!0x1);}}function _0x46600c(_0x7bef83){return _0x7bef83[_0x4b131b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b131b([0x65,0x79]))?JSON[_0x4b131b([0x70,0x61,0x72,0x73,0x65])](_0xe55bc9(_0x7bef83)):null;}function _0xe55bc9(_0x70028f){return window[_0x4b131b([0x61,0x74,0x6f,0x62])](_0x70028f[_0x4b131b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b131b([0x2b]))[_0x4b131b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b131b([0x2f])));}function _0x4ff97b(_0x5e62fb){let _0x2ab859=0x1505;function _0x4bda6c(_0x50641e){for(let _0x4fa0fd=0x0;_0x4fa0fd<_0x50641e[_0x4b131b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fa0fd++){const _0x21c4d5=_0x50641e[_0x4b131b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4fa0fd);_0x2ab859=(_0x2ab859<<0x5)+_0x2ab859+_0x21c4d5,_0x2ab859&=_0x2ab859;}}function _0x5c9236(_0x5856dc){Array[_0x4b131b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5856dc)?_0x5856dc[_0x4b131b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c9236):_0x5856dc&&typeof _0x5856dc==_0x4b131b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b131b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5856dc)[_0x4b131b([0x73,0x6f,0x72,0x74])]()[_0x4b131b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x58da8f,_0x36014b])=>{_0x4bda6c(_0x58da8f),_0x5c9236(_0x36014b);}):_0x4bda6c(window[_0x4b131b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5856dc));}return _0x5c9236(_0x5e62fb),_0x2ab859>>>0x0;}function _0x21cd01(_0x272abf){return _0x272abf[_0x4b131b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b131b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b131b([0x30]));}function _0x2c0730(_0x15eb97){return _0x15eb97[_0x4b131b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b131b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b131b([0x6a,0x6f,0x69,0x6e])]('');}function _0x21adb6(_0x145517){return _0x50c749[_0x4b131b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b131b([0x68,0x61,0x73])](_0x145517);}function _0x372611(_0x235452){return _0x50c749[_0x4b131b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b131b([0x67,0x65,0x74])](_0x235452);}function _0x326470(){}function _0x4b131b(_0x36bfb7){return _0x36bfb7['map'](_0x5ea445=>String['fromCharCode'](_0x5ea445))['join']('');}_0x1c0dea(await _0x64fb08());}(this);}set['adapter'](_0x4c1e97){if(this['_adapter'])throw new _0xa9e684('track-changes-adapter-already-set',this);this['_adapter']=_0x4c1e97;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x447cc6=!0x1,toJSON:_0x442c7d=!0x1}={}){const _0x303bf5=[];for(const _0x13a52c of this['_suggestions']['values']())_0x447cc6&&!_0x13a52c['isInContent']||_0x303bf5['push'](_0x13a52c);return _0x442c7d?_0x303bf5['map'](_0x437a09=>_0x437a09['toJSON']()):_0x303bf5;}['getSuggestion'](_0x4e81ca){const _0x563113=this['_suggestions']['get'](_0x4e81ca);if(!_0x563113)throw new _0xa9e684('track-changes-suggestion-not-found',this);return _0x563113;}['hasSuggestion'](_0x549f30){return this['_suggestions']['has'](_0x549f30);}['addSuggestionData'](_0x5a55fc){const {authorId:_0x486850,id:_0xb63dbc,originalSuggestionId:_0x712736,attributes:_0x5747de}=_0x5a55fc,[_0x31d8a6,_0x3d891d]=_0x5a55fc['type']['split'](':'),_0x21df3a=this['_suggestions']['get'](_0xb63dbc)||this['_createSuggestion'](_0x31d8a6,_0x3d891d,_0xb63dbc,_0x486850,_0x5747de,_0x712736);if(this['_addThreadToSuggestion'](_0x21df3a),this['_checkSuggestionCorrectness'](_0x21df3a,_0x31d8a6,_0x3d891d||null,_0x486850),_0x21df3a['createdAt']=_0x5a55fc['createdAt'],_0x21df3a['_isDataLoaded']=!0x0,_0x5747de&&_0x5747de['@external']){const _0x434fe8=_0x5747de['@external'],_0x5cbaf1=this['_getExternalAuthor'](_0x434fe8['authorName']);_0x21df3a['authoredAt']=_0x434fe8['createdAt'],_0x21df3a['author']=_0x5cbaf1,_0x21df3a['isExternal']=!0x0;}else _0x21df3a['authoredAt']=_0x5a55fc['createdAt'];switch(_0x5a55fc['data']&&(_0x21df3a['data']=_0x5a55fc['data']),_0x5a55fc['attributes']&&(_0x21df3a['attributes']=_0x5a55fc['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x21df3a['_saved']=!0x0),this['_suggestionState']['get'](_0x21df3a)){case'notReady':this['_suggestionState']['set'](_0x21df3a,'dataReady');break;case'markerReady':_0x21df3a['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x21df3a])),this['_refreshSuggestionsChain'](new Set([_0x21df3a])),this['_suggestionState']['set'](_0x21df3a,'ready'),this['fire']('suggestionLoaded',_0x21df3a)):this['_suggestionState']['set'](_0x21df3a,'removed');}return _0x21df3a;}['acceptSuggestion'](_0x5a800b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xc57b3c of _0x5a800b['getAllAdjacentSuggestions']())_0xc57b3c['accept']();});});}['discardSuggestion'](_0xfa8ad8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1bd2d9 of _0xfa8ad8['getAllAdjacentSuggestions']())_0x1bd2d9['discard']();});});}['enableCommand'](_0xe66f70,_0x311ec0){const _0x1508a1=this['editor']['commands']['get'](_0xe66f70);if(!_0x1508a1)throw new _0xa9e684('track-changes-command-not-found',this,{'commandName':_0xe66f70});if(this['_enabledCommands']['has'](_0x1508a1))throw new _0xa9e684('track-changes-enable-command-twice',this,{'commandName':_0xe66f70});this['_enabledCommands']['add'](_0x1508a1),_0x311ec0&&_0x1508a1['on']('execute',(_0x3a2d3b,_0x21f542)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x21f542['length']>0x0&&_0x21f542[_0x21f542['length']-0x1]&&_0x21f542[_0x21f542['length']-0x1]['forceDefaultExecution']?_0x21f542['pop']():(_0x3a2d3b['return']=_0x311ec0((..._0x967f09)=>_0x1508a1['execute'](..._0x967f09,{'forceDefaultExecution':!0x0}),..._0x21f542),_0x3a2d3b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x565b6d){let _0x1d782b,_0x45945a;const _0x3aa266=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1d782b=_0x565b6d();}catch(_0x50a345){_0x45945a=_0x50a345;}return _0x3aa266||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x45945a&&_0xa9e684['rethrowUnexpectedError'](_0x45945a,this),_0x1d782b;}['markInsertion'](_0x4b385a,_0x2004c6=null,_0x1a7124={}){if(_0x4b385a['isCollapsed'])return null;const _0xc48583=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1a7124['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3c0762,meta:_0x198677}of this['_findSuggestions'](_0x4b385a,'insertion'))if(_0x198677['isOwn']){if(!_0x198677['isNextTo']){if(_0x198677['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x3c0762,_0x1a7124))continue;return _0x3c0762;}if(sn(_0x3c0762,_0x1a7124))return _0x3c0762;this['_breakSuggestionMarker'](_0x3c0762,_0x4b385a['start'],_0x4b385a['end']);break;}if(_0x2004c6==_0x3c0762['subType']&&sn(_0x3c0762,_0x1a7124)){const _0x2567a9=_0x3c0762['getFirstRange']();return _0x2567a9['start']['isEqual'](_0x4b385a['end'])?this['_setSuggestionRange'](_0x3c0762,this['_model']['createRange'](_0x4b385a['start'],_0x2567a9['end'])):this['_setSuggestionRange'](_0x3c0762,this['_model']['createRange'](_0x2567a9['start'],_0x4b385a['end'])),_0x3c0762;}}const _0x26efc3=_0x2984a9(),_0x43190a=_0xc48583['id'],_0x43001c=_0x2004c6?'insertion:'+_0x2004c6:'insertion',_0x3ce43f=this['_setSuggestionData']({'id':_0x26efc3,'type':_0x43001c,'createdAt':new Date(),'authorId':_0x43190a,'attributes':_0x1a7124});return this['_addSuggestionMarker'](_0x43001c,_0x26efc3,_0x43190a,_0x4b385a),_0x3ce43f;}['markMultiRangeInsertion'](_0x17ed93,_0x2e35f3='multi',_0x4e87d4={}){const _0x3782b9=this['editor']['plugins']['get']('Users')['me'],_0x219c41=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2e35f3,'join');this['_trackingSessionId']&&(_0x4e87d4['trackingSessionId']=this['_trackingSessionId']);for(const _0x4e9e47 of this['getSuggestions']())if(_0x4e9e47['author']['id']==_0x3782b9['id']&&'insertion'==_0x4e9e47['type']&&_0x4e9e47['subType']==_0x2e35f3&&sn(_0x4e9e47,_0x4e87d4)&&(_0x219c41(_0x4e9e47['getRanges'](),_0x17ed93)||_0x219c41(_0x17ed93,_0x4e9e47['getRanges']()))){for(const _0x3d6392 of _0x17ed93)_0x4e9e47['addRange'](_0x3d6392);return _0x4e9e47;}for(const {suggestion:_0x5b564e,meta:_0x3c0b86}of this['_findSuggestions'](_0x17ed93,'insertion')){if(!_0x3c0b86['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3c0b86['containsRangeInObject'])continue;if(!sn(_0x5b564e,_0x4e87d4))continue;let _0xf110e8=!0x0;for(const _0x1f64c8 of _0x5b564e['getRanges']())for(const _0x477019 of _0x17ed93)if(!_0x1f64c8['containsRange'](_0x477019)){_0xf110e8=!0x1;break;}if(_0xf110e8)return _0x5b564e;}const _0x9ffdd1=_0x2984a9(),_0x23c391=_0x3782b9['id'],_0x353242='insertion:'+_0x2e35f3,_0x1261e8=this['_setSuggestionData']({'id':_0x9ffdd1,'type':_0x353242,'createdAt':new Date(),'authorId':_0x23c391,'attributes':_0x4e87d4});for(const _0x343486 of _0x17ed93)this['_addSuggestionMarker'](_0x353242,_0x9ffdd1,_0x23c391,_0x343486,x['getMultiRangeId']());return _0x1261e8;}['markInlineFormat'](_0x2929d0,_0x3f896a,_0x26e8a4=null,_0x5211e4={}){if(_0x26e8a4=_0x26e8a4||Ht(_0x3f896a),_0x2929d0['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5211e4['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x50719f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x26e8a4,'accept');return this['forceDefaultExecution'](()=>_0x50719f([_0x2929d0],_0x3f896a,_0x5211e4)),null;}const _0x3d3d06=this['editor']['plugins']['get']('Users')['me'],_0x3786b4=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x7dc4d6,meta:_0x2ede65}of this['_findSuggestions'](_0x2929d0,'insertion'))_0x2ede65['isOwn']&&!_0x2ede65['isInsideObject']&&_0x3786b4['push'](..._0x7dc4d6['getRanges']());}const _0xae7328=function(_0x322aed,_0x4e62f9){const _0x1d9797=[];for(const _0x5d6f9c of _0x4e62f9){const _0x272438=_0x322aed['getIntersection'](_0x5d6f9c);_0x272438&&_0x1d9797['push'](_0x272438);}return _0x1d9797;}(_0x2929d0,_0x3786b4),_0x834f28=function(_0x46bd6a,_0x9aec32){const _0x531de0=[_0x46bd6a];for(const _0x11adb9 of _0x9aec32){let _0x2102dd=0x0;for(;_0x2102dd<_0x531de0['length'];){const _0x459a02=_0x531de0[_0x2102dd]['getDifference'](_0x11adb9);_0x531de0['splice'](_0x2102dd,0x1,..._0x459a02),_0x2102dd+=_0x459a02['length'];}}return _0x531de0;}(_0x2929d0,_0x3786b4);_0xae7328['length']&&this['_model']['change'](()=>{for(const _0x2b2c8b of _0xae7328){const _0xfa05bb=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x26e8a4,'accept');this['forceDefaultExecution'](()=>_0xfa05bb([_0x2b2c8b],_0x3f896a,_0x5211e4));}});for(const _0x51e363 of _0x834f28){let _0x3ad607=null,_0x3552ec=_0x51e363['start'],_0x24b78e=_0x51e363['end'];for(const {suggestion:_0x429824,meta:_0x5e13a1}of this['_findSuggestions'](_0x51e363,'formatInline')){if(!_0x5e13a1['isOwn'])continue;if(_0x429824['subType']!=_0x26e8a4)continue;if(!sn(_0x429824,_0x5211e4))continue;const _0x3ee988=_0x429824['getFirstRange']();if(_0x3ee988['containsRange'](_0x51e363,!0x0))return null;_0x3552ec=_0x3552ec['isBefore'](_0x3ee988['start'])?_0x3552ec:_0x3ee988['start'],_0x24b78e=_0x24b78e['isAfter'](_0x3ee988['end'])?_0x24b78e:_0x3ee988['end'],_0x3ad607?_0x3ee988['start']['isBefore'](_0x3ad607['getFirstRange']()['start'])?(_0x3ad607['removeMarkers'](),_0x3ad607=_0x429824):_0x429824['removeMarkers']():_0x3ad607=_0x429824;}const _0x1f8a3f=this['_model']['createRange'](_0x3552ec,_0x24b78e);if(_0x3ad607)this['_setSuggestionRange'](_0x3ad607,_0x1f8a3f);else{const _0x51d16d=_0x2984a9(),_0x9c3c88=_0x3d3d06['id'];this['_setSuggestionData']({'id':_0x51d16d,'type':'formatInline:'+_0x26e8a4,'data':_0x3f896a,'createdAt':new Date(),'authorId':_0x9c3c88,'attributes':_0x5211e4}),this['_addSuggestionMarker']('formatInline:'+_0x26e8a4,_0x51d16d,_0x9c3c88,_0x1f8a3f);}}return null;}['markBlockFormat'](_0x8d932a,_0x2d6f52,_0x5025fc=[],_0x3b59eb=null,_0x2f6fee={}){_0x2d6f52['formatGroupId']||(_0x2d6f52['formatGroupId']=_0x2d6f52['commandName']),_0x2d6f52['multipleBlocks']=_0x8d932a['is']('range'),_0x3b59eb=_0x3b59eb||Ht(_0x2d6f52);const _0x128873=_0x5025fc['map'](_0x55766e=>tn(_0x55766e,this['_model'])),_0x39a71d=_0x8d932a['is']('range')?_0x8d932a:tn(_0x8d932a,this['_model']);if(this['_trackingSessionId']&&(_0x2f6fee['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x297511=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b59eb,'accept');return this['forceDefaultExecution'](()=>_0x297511([_0x39a71d],_0x2d6f52,_0x2f6fee)),null;}_0x128873['push'](_0x39a71d);let _0x313d4b=!0x0;for(const _0x34d87f of _0x128873)if(!this['_rangeIsInLocalUserInsertion'](_0x34d87f)){_0x313d4b=!0x1;break;}if(_0x313d4b&&'always'!==this['_trackFormatChanges']){const _0x1e0694=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b59eb,'accept');return this['forceDefaultExecution'](()=>_0x1e0694([_0x39a71d],_0x2d6f52,_0x2f6fee)),null;}let _0x209778=null,_0x11d1e1=_0x39a71d['start'],_0x27b570=_0x39a71d['end'];for(const {suggestion:_0x12a001,meta:_0x1c3424}of this['_findSuggestions'](_0x39a71d,'formatBlock')){if(!_0x1c3424['isOwn'])continue;if(_0x1c3424['isNextTo']||_0x1c3424['containsRangeInObject']||_0x1c3424['isInsideObject'])continue;if(_0x12a001['data']['formatGroupId']!=_0x2d6f52['formatGroupId'])continue;if(!sn(_0x12a001,_0x2f6fee))continue;const _0x3e7585=_0x12a001['getFirstRange']();if(_0x12a001['subType']==_0x3b59eb){if(_0x3e7585['containsRange'](_0x39a71d,!0x0))return null;_0x11d1e1=_0x11d1e1['isBefore'](_0x3e7585['start'])?_0x11d1e1:_0x3e7585['start'],_0x27b570=_0x27b570['isAfter'](_0x3e7585['end'])?_0x27b570:_0x3e7585['end'],_0x209778?_0x3e7585['start']['isBefore'](_0x209778['getFirstRange']()['start'])?(_0x209778['removeMarkers'](),_0x209778=_0x12a001):_0x12a001['removeMarkers']():_0x209778=_0x12a001;}else{const _0x1e6010=_0x39a71d['getIntersection'](_0x3e7585);this['_cutOutSuggestionMarker'](_0x12a001,_0x1e6010);}}const _0x4562ec=this['editor']['plugins']['get']('Users')['me'],_0x1bc906=_0x2984a9(),_0x1f8a70=_0x4562ec['id'];if(_0x209778)return this['_setSuggestionRange'](_0x209778,this['_model']['createRange'](_0x11d1e1,_0x27b570)),_0x209778;{const _0x14033b=this['_setSuggestionData']({'id':_0x1bc906,'type':'formatBlock:'+_0x3b59eb,'data':_0x2d6f52,'createdAt':new Date(),'authorId':_0x1f8a70,'attributes':_0x2f6fee});return this['_addSuggestionMarker']('formatBlock:'+_0x3b59eb,_0x1bc906,_0x1f8a70,this['_model']['createRange'](_0x11d1e1,_0x27b570)),_0x14033b;}}['markMultiRangeBlockFormat'](_0x54ac4a,_0x55185a,_0x4917a0=[],_0x5141c8=null,_0x19c41e={}){_0x55185a['formatGroupId']||(_0x55185a['formatGroupId']=_0x55185a['commandName']);const _0x2ef5b4=_0x54ac4a[0x0];_0x55185a['multipleBlocks']=_0x2ef5b4['is']('range'),_0x5141c8=_0x5141c8||Ht(_0x55185a);const _0x514a13=_0x4917a0['map'](_0x33d1ff=>tn(_0x33d1ff,this['_model'])),_0x40e8c6=_0x2ef5b4['is']('range')?_0x54ac4a:_0x54ac4a['map'](_0xad93f=>tn(_0xad93f,this['_model']));if(this['_trackingSessionId']&&(_0x19c41e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x58b1bc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5141c8,'accept');return this['forceDefaultExecution'](()=>_0x58b1bc(_0x40e8c6,_0x55185a,_0x19c41e)),null;}_0x514a13['push'](..._0x40e8c6);let _0x126985=!0x0;for(const _0x18c8e3 of _0x514a13)if(!this['_rangeIsInLocalUserInsertion'](_0x18c8e3)){_0x126985=!0x1;break;}if(_0x126985&&'always'!==this['_trackFormatChanges']){const _0x5d739e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5141c8,'accept');return this['forceDefaultExecution'](()=>_0x5d739e(_0x40e8c6,_0x55185a,_0x19c41e)),null;}const _0x1e5f9a=this['editor']['plugins']['get']('Users')['me'];for(const _0xd7dc31 of this['getSuggestions']()){const _0x29ac96=_0xd7dc31['data'];if(_0xd7dc31['author']['id']!=_0x1e5f9a['id'])continue;if('formatBlock'!=_0xd7dc31['type']||_0x29ac96['formatGroupId']!=_0x55185a['formatGroupId'])continue;if(!sn(_0xd7dc31,_0x19c41e))continue;const _0x4fee39=_0xd7dc31['subType']==_0x5141c8;for(let _0x21bdc2=0x0;_0x21bdc2<_0x40e8c6['length'];_0x21bdc2++){const _0x4f9413=_0x40e8c6[_0x21bdc2];for(const _0x36858f of _0xd7dc31['getMarkers']()){const _0x230fd2=_0x36858f['getRange']();if(_0x4f9413['isEqual'](_0x230fd2)){_0x4fee39?(_0x40e8c6['splice'](_0x21bdc2,0x1),_0x21bdc2--):_0xd7dc31['removeMarker'](_0x36858f['name']);break;}}}}if(0x0==_0x40e8c6['length'])return null;const _0x196107=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5141c8,'join');for(const _0x48bfd3 of this['getSuggestions']()){const _0x752cc5=_0x48bfd3['data'];if(_0x48bfd3['author']['id']==_0x1e5f9a['id']&&('formatBlock'==_0x48bfd3['type']&&_0x752cc5['formatGroupId']==_0x55185a['formatGroupId']&&_0x48bfd3['subType']==_0x5141c8&&sn(_0x48bfd3,_0x19c41e)&&(_0x196107(_0x48bfd3['getRanges'](),_0x40e8c6)||_0x196107(_0x40e8c6,_0x48bfd3['getRanges']())))){for(const _0x11227a of _0x40e8c6)_0x48bfd3['addRange'](_0x11227a);return _0x48bfd3;}}const _0x2c482f=_0x2984a9(),_0x2d0759=_0x1e5f9a['id'],_0x587095='formatBlock:'+_0x5141c8,_0x4811de=this['_setSuggestionData']({'id':_0x2c482f,'type':_0x587095,'data':_0x55185a,'createdAt':new Date(),'authorId':_0x2d0759,'attributes':_0x19c41e});for(const _0x741f56 of _0x40e8c6)this['_addSuggestionMarker'](_0x587095,_0x2c482f,_0x2d0759,_0x741f56,x['getMultiRangeId']());return _0x4811de;}['markDeletion'](_0x3fdc66,_0x464442=null,_0x38da8a={}){if(_0x3fdc66['isCollapsed'])return null;const _0x404273=this['editor']['plugins']['get']('Users')['me'],_0xa80b87=new _0x1b3589(_0x3fdc66['start'],_0x3fdc66['end']);this['_trackingSessionId']&&(_0x38da8a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2d160b,meta:_0x1ac01f}of this['_findSuggestions'](_0xa80b87,'insertion'))if(_0x1ac01f['isOwn']&&!_0x1ac01f['isNextTo']){if(_0x2d160b['isMultiRange']){const _0x49ecd3=_0x2d160b['getRanges']()['filter'](_0x3feca6=>'$graveyard'!=_0x3feca6['root']['rootName']);_0x49ecd3['every'](_0x417b7d=>_0xa80b87['containsRange'](_0x417b7d,!0x0))&&_0x2d160b['discard']();if(_0x49ecd3['some'](_0x17875e=>_0x17875e['containsRange'](_0xa80b87,!0x0))){const _0x210ae4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x464442,'accept');return this['forceDefaultExecution'](()=>_0x210ae4([_0xa80b87],null,_0x38da8a)),null;}}else{const _0xa085da=_0xa80b87['getIntersection'](_0x2d160b['getFirstRange']());null!==_0xa085da&&_0x2d160b['_onDiscard']([_0xa085da],null,_0x38da8a);}}if(_0xa80b87['detach'](),_0xa80b87['isCollapsed']||'$graveyard'==_0xa80b87['root']['rootName'])return null;let _0x20642c=null,_0xd2c133=_0xa80b87['start'],_0x343085=_0xa80b87['end'];const _0x104ebc=this['_findSuggestions'](_0xa80b87,'deletion');for(const {suggestion:_0x1f2992,meta:_0x347308}of _0x104ebc){const _0xbddeda=this['_model']['createRange'](_0xd2c133,_0x343085);if(_0x347308['isOwn']&&(this['_mergeNestedSuggestions']||!_0x347308['containsRangeInObject']&&!_0x347308['isInsideObject'])){if(_0x1f2992['isMultiRange']){if(!sn(_0x1f2992,_0x38da8a))continue;let _0x49751f=!0x0;for(const _0x26b532 of _0x1f2992['getRanges']()){if(_0x26b532['containsRange'](_0xbddeda,!0x0))return _0x1f2992;_0xbddeda['containsRange'](_0x26b532)||(_0x49751f=!0x1);}_0x49751f&&_0x1f2992['discard']();}else{const _0x4e125b=_0x1f2992['getFirstRange']();if(_0x4e125b['containsRange'](_0xbddeda,!0x0))return _0x1f2992;if(!sn(_0x1f2992,_0x38da8a)){_0xbddeda['containsRange'](_0x4e125b)?_0x1f2992['removeMarkers']():_0x4e125b['containsPosition'](_0xd2c133)?_0xd2c133=_0x4e125b['end']:_0x4e125b['containsPosition'](_0x343085)&&(_0x343085=_0x4e125b['start']);continue;}_0xd2c133=_0xd2c133['isBefore'](_0x4e125b['start'])?_0xd2c133:_0x4e125b['start'],_0x343085=_0x343085['isAfter'](_0x4e125b['end'])?_0x343085:_0x4e125b['end'],_0x38da8a=Object['assign']({},_0x1f2992['attributes']),_0x20642c?_0x4e125b['start']['isBefore'](_0x20642c['getFirstRange']()['start'])?(_0x20642c['removeMarkers'](),_0x20642c=_0x1f2992):_0x1f2992['removeMarkers']():_0x20642c=_0x1f2992;}}}if(_0x20642c)return this['_setSuggestionRange'](_0x20642c,this['_model']['createRange'](_0xd2c133,_0x343085)),_0x20642c;{const _0x1b653a=_0x2984a9(),_0x5682e3=this['_model']['createRange'](_0xd2c133,_0x343085),_0x2277c5=_0x404273['id'],_0x34b010=_0x464442?'deletion:'+_0x464442:'deletion',_0x343f91=this['_setSuggestionData']({'id':_0x1b653a,'type':_0x34b010,'createdAt':new Date(),'authorId':_0x2277c5,'attributes':_0x38da8a});return this['_addSuggestionMarker'](_0x34b010,_0x1b653a,_0x2277c5,_0x5682e3),_0x343f91;}}['markMultiRangeDeletion'](_0x938510,_0xc29f75='multi',_0x39d81c={}){const _0xba1081=this['editor']['plugins']['get']('Users')['me'],_0xb8fb4e=_0x938510['map'](_0x38edfa=>new _0x1b3589(_0x38edfa['start'],_0x38edfa['end'])),_0xf01f93=new Set();this['_trackingSessionId']&&(_0x39d81c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x42fc49,meta:_0x2b5567}of this['_findSuggestions'](_0xb8fb4e,'insertion'))_0x2b5567['isOwn']&&!_0x2b5567['isNextTo']&&_0xf01f93['add'](_0x42fc49);for(const _0xee67ec of _0xf01f93)if(_0xee67ec['isMultiRange']){const _0x4cb31e=_0xee67ec['getRanges']();(!_0xee67ec['attributes']||!_0xee67ec['attributes']['skipNestingCheck'])&&(_0x4cb31e['every'](_0x82b8c7=>_0xb8fb4e['some'](_0x29f77b=>_0x29f77b['containsRange'](_0x82b8c7,!0x0)))&&_0xee67ec['discard']());if(_0xb8fb4e['every'](_0x13afec=>_0x4cb31e['some'](_0x4c4726=>_0x4c4726['containsRange'](_0x13afec,!0x0)))){const _0x2043aa=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc29f75,'accept');return this['forceDefaultExecution'](()=>_0x2043aa(_0x938510,null,_0x39d81c)),null;}}else{const _0x52be2b=_0xee67ec['getFirstRange']();_0xb8fb4e['some'](_0x4f3483=>_0x4f3483['containsRange'](_0x52be2b,!0x0))&&_0xee67ec['discard']();if(_0xb8fb4e['every'](_0xb1ebc3=>_0x52be2b['containsRange'](_0xb1ebc3,!0x0))){const _0x4fad63=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc29f75,'accept');return this['forceDefaultExecution'](()=>_0x4fad63(_0xb8fb4e,null,_0x39d81c)),null;}}const _0x2f8dcf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc29f75,'join');let _0x3812b4=null;for(const _0x4ac5d0 of this['getSuggestions']())if(_0x4ac5d0['author']['id']==_0xba1081['id']&&_0x4ac5d0['isInContent']&&'deletion'==_0x4ac5d0['type']&&_0x4ac5d0['subType']==_0xc29f75&&sn(_0x4ac5d0,_0x39d81c)&&(_0x2f8dcf(_0x4ac5d0['getRanges'](),_0xb8fb4e)||_0x2f8dcf(_0xb8fb4e,_0x4ac5d0['getRanges']()))){if(_0x3812b4){if(_0x4ac5d0['commentThread']&&_0x4ac5d0['commentThread']['length'])continue;for(const _0x5b4663 of _0x4ac5d0['getRanges']())_0x3812b4['isIntersectingWithRange'](_0x5b4663)||_0x3812b4['addRange'](_0x5b4663);_0x4ac5d0['removeMarkers']();}else{_0x3812b4=_0x4ac5d0;for(const _0x2aec47 of _0xb8fb4e)_0x4ac5d0['isIntersectingWithRange'](_0x2aec47)||_0x4ac5d0['addRange'](_0x2aec47);}}if(_0x3812b4)return _0x3812b4;_0xf01f93['clear']();for(const {suggestion:_0x179295,meta:_0x3edd0c}of this['_findSuggestions'](_0xb8fb4e,'deletion'))_0x3edd0c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3edd0c['containsRangeInObject']&&!_0x3edd0c['isInsideObject'])&&sn(_0x179295,_0x39d81c)&&_0xf01f93['add'](_0x179295);for(const _0x3503b0 of _0xf01f93){const _0x178deb=_0x3503b0['getRanges']();if(!_0x39d81c||!_0x39d81c['skipNestingCheck']){if(_0xb8fb4e['every'](_0x327f5e=>_0x178deb['some'](_0x5598e7=>_0x5598e7['containsRange'](_0x327f5e,!0x0))))return _0x3503b0;}(!_0x3503b0['attributes']||!_0x3503b0['attributes']['skipNestingCheck'])&&(_0x178deb['every'](_0x5bb6e5=>_0xb8fb4e['some'](_0x1d9768=>_0x1d9768['containsRange'](_0x5bb6e5,!0x0)))&&_0x3503b0['discard']());}const _0x22eb0b=_0x2984a9(),_0x5648c6=_0xba1081['id'],_0x233e40='deletion:'+_0xc29f75,_0x5e079b=this['_setSuggestionData']({'id':_0x22eb0b,'type':_0x233e40,'createdAt':new Date(),'authorId':_0x5648c6,'attributes':_0x39d81c});for(const _0x49ea1f of _0xb8fb4e)_0x49ea1f['detach'](),_0x49ea1f['isCollapsed']||'$graveyard'==_0x49ea1f['root']['rootName']||this['_addSuggestionMarker'](_0x233e40,_0x22eb0b,_0x5648c6,_0x49ea1f,x['getMultiRangeId']());return _0x5e079b;}['markAttributeChange'](_0x480559,_0x534a84,_0x302a01,_0x23ec7f,_0x139ae9){if(_0x480559['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x31313a=this['editor']['plugins']['get']('Users')['me']['id'],_0x507ab6=Array['from'](this['_suggestions']['values']())['filter'](_0x4dce5c=>'attribute'==_0x4dce5c['type']&&_0x4dce5c['data']['key']==_0x534a84&&_0x4dce5c['isIntersectingWithRange'](_0x480559));if(this['_trackingSessionId']&&(_0x139ae9['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3aac9b=this['_findSuggestions'](_0x480559,'insertion')['filter'](({meta:_0x37005c})=>_0x37005c['isOwn']&&!_0x37005c['isInsideObject']&&!_0x37005c['isNextTo'])['map'](({suggestion:_0x4a8eec})=>_0x4a8eec);_0x507ab6['unshift'](..._0x3aac9b);}const _0x1d10fb=new Map([[_0x480559,_0x302a01]]);for(const _0x191099 of _0x507ab6){const _0x252df9='attribute'==_0x191099['type']?_0x191099['data']['oldValue']:void 0x0,_0x2d7d4d=_0x191099['getFirstRange'](),_0x1d07e4=Array['from'](_0x1d10fb['keys']())['find'](_0x2a3982=>_0x2a3982['isIntersecting'](_0x2d7d4d));if(!_0x1d07e4)continue;const _0x49fa42=_0x1d07e4['getDifference'](_0x2d7d4d);this['_isBlockAttribute'](_0x534a84)&&'insertion'==_0x191099['type']&&0x0!=_0x49fa42['length']||(_0x1d10fb['delete'](_0x1d07e4),_0x49fa42['forEach'](_0x260b82=>{_0x1d10fb['set'](_0x260b82,_0x302a01);}),'insertion'!=_0x191099['type']&&_0x252df9!=_0x23ec7f&&_0x1d10fb['set'](_0x1d07e4['getIntersection'](_0x2d7d4d),_0x252df9));}const _0x40ce15=[];for(const [_0x5a5cab,_0x5f3261]of _0x1d10fb){const _0x2a65e5=_0x2984a9(),_0x31938e={'key':_0x534a84,'oldValue':_0x5f3261,'newValue':_0x23ec7f};_0x534a84['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':_0x534a84});const _0x252576=('attribute:'+(_0x534a84+'|'+Ht({'newValue':_0x23ec7f})))['substring'](0x0,0x3c),_0x24c22b=this['_setSuggestionData']({'id':_0x2a65e5,'type':_0x252576,'data':_0x31938e,'createdAt':new Date(),'authorId':_0x31313a,'attributes':_0x139ae9});_0x40ce15['push'](_0x24c22b),this['_addSuggestionMarker'](_0x252576,_0x2a65e5,_0x31313a,_0x5a5cab);}return _0x40ce15;}['enableDefaultAttributesIntegration'](_0x4e7258){this['enableCommand'](_0x4e7258,(_0x52b95f,..._0x2740a)=>{this['recordAttributeChanges'](()=>{_0x52b95f(..._0x2740a);});});}['registerBlockAttribute'](_0x38b43d){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x38b43d);}['registerInlineAttribute'](_0x396545){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x396545);}['startTrackingSession'](_0x18212c){return this['_trackingSessionId']=void 0x0!==_0x18212c?_0x18212c:_0x2984a9(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3877d9){return'attribute'==_0x3877d9['type']?_0x3877d9['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x5bb57b){if(0x0==_0x5bb57b['length'])return;const _0x11fcf9=this['editor'],_0x1bc4ed=_0x11fcf9['plugins']['get'](_0x5aa49f),_0x251d69=[];_0x11fcf9['model']['change'](_0x4bf79e=>{for(let _0x1e529f=0x0;_0x1e529f<_0x5bb57b['length'];_0x1e529f++){const _0x3302e2=_0x5bb57b[_0x1e529f];if(_0x3302e2['baseVersion']=_0x11fcf9['model']['document']['version'],_0x3302e2['isDocumentOperation']=!0x0,_0x1bc4ed['isMarkedRemoveOperation'](_0x3302e2)){const _0x5e6acd=Lt(_0x3302e2['newRange'],_0x11fcf9['model']);_0x251d69['unshift'](_0x1b3589['fromRange'](_0x5e6acd));}else switch(_0x3302e2['type']){case'rename':{const _0x52d926=_0x3302e2['oldName'],_0x415286=_0x3302e2['newName'];if(_0x52d926==_0x415286)break;_0x4bf79e['batch']['addOperation'](_0x3302e2),_0x11fcf9['model']['applyOperation'](_0x3302e2);const _0x355577='$elementName',_0x2d751b=_0x3302e2['position'],_0x163c0d=_0x11fcf9['model']['createRange'](_0x2d751b,_0x11fcf9['model']['createPositionAt'](_0x2d751b['nodeAfter'],'end'));this['markAttributeChange'](_0x163c0d,_0x355577,_0x52d926,_0x415286,{'groupId':_0x2984a9()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xf8ddf9=_0x3302e2['oldValue'],_0x8a5bc=_0x3302e2['newValue'];if(_0xf8ddf9==_0x8a5bc)break;_0x4bf79e['batch']['addOperation'](_0x3302e2),_0x11fcf9['model']['applyOperation'](_0x3302e2);const _0x48746d=_0x3302e2['key'];if(!this['_isRegisteredAttribute'](_0x48746d))break;const _0x4ae688=Lt(_0x3302e2['range'],_0x11fcf9['model']);this['markAttributeChange'](_0x4ae688,_0x48746d,_0xf8ddf9,_0x8a5bc,{'groupId':_0x2984a9()});break;}case'insert':{_0x4bf79e['batch']['addOperation'](_0x3302e2),_0x11fcf9['model']['applyOperation'](_0x3302e2);if(_0x5bb57b[_0x1e529f+0x1]&&'move'==_0x5bb57b[_0x1e529f+0x1]['type'])break;const _0x27344a=_0x3302e2['position'],_0x1970f8=_0x3302e2['howMany'],_0x400ac4=Lt(_0x11fcf9['model']['createRange'](_0x27344a,_0x27344a['getShiftedBy'](_0x1970f8)),_0x11fcf9['model']);this['markInsertion'](_0x400ac4);break;}case'split':{_0x4bf79e['batch']['addOperation'](_0x3302e2),_0x11fcf9['model']['applyOperation'](_0x3302e2);const _0x420b8e=_0x3302e2['splitPosition'],_0x197bdd=_0x3302e2['moveTargetPosition'];this['markInsertion'](_0x11fcf9['model']['createRange'](_0x420b8e,_0x197bdd));break;}case'move':case'remove':_0x4bf79e['batch']['addOperation'](_0x3302e2),_0x11fcf9['model']['applyOperation'](_0x3302e2);}}for(const _0x4109af of _0x251d69)_0x4109af['detach'](),this['markDeletion'](_0x4109af);});}['_setSuggestionRange'](_0x28e5a8,_0x16ef1b){const _0x1f7464=_0x28e5a8['getFirstMarker']();this['_model']['change'](_0x1b1d48=>{_0x1b1d48['updateMarker'](_0x1f7464,{'range':_0x16ef1b});});}['_addThreadToSuggestion'](_0xb2f3a3){const _0x3c630a=_0xb2f3a3['id'],_0x4ceeee=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3c630a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4ceeee,'threadId':_0x3c630a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5038f8=this['_commentsRepository']['getCommentThread'](_0x3c630a);_0x5038f8['unbind']('isRemovable'),_0x5038f8['isRemovable']=!0x1,_0xb2f3a3['commentThread']=_0x5038f8;}['_checkSuggestionCorrectness'](_0x358f3a,_0x219382,_0x5f0055,_0xc6a61a){if(_0x358f3a['type']!=_0x219382||_0x358f3a['subType']!=_0x5f0055||_0x358f3a['creator']['id']!=_0xc6a61a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xa9e684('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1e5818,_0x432c8c){const _0x27bfb3=_0x1e5818['getFirstRange']();if(_0x432c8c['isEqual'](_0x27bfb3))_0x1e5818['removeMarkers']();else{if(_0x27bfb3['containsRange'](_0x432c8c)){const _0x2fd0b1=this['_model']['createPositionAt'](_0x432c8c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1e5818,this['_model']['createRange'](_0x27bfb3['start'],_0x2fd0b1));const _0x165ef6=_0x2984a9(),_0x3b2cd2=_0x1e5818['creator']['id'],_0x3c815c=_0x1e5818['type']+':'+_0x1e5818['subType'];this['_setSuggestionData']({'id':_0x165ef6,'type':_0x3c815c,'createdAt':new Date(),'authorId':_0x3b2cd2,'data':_0x1e5818['data'],'attributes':_0x1e5818['attributes']});const _0x4d3c66=this['_model']['createPositionAt'](_0x432c8c['end']['parent'],'after'),_0x249b76=this['_model']['createRange'](_0x4d3c66,_0x27bfb3['end']);this['_addSuggestionMarker'](_0x3c815c,_0x165ef6,_0x3b2cd2,_0x249b76);}else{if(_0x27bfb3['containsPosition'](_0x432c8c['start'])){const _0xd49c21=this['_model']['createPositionAt'](_0x432c8c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1e5818,this['_model']['createRange'](_0x27bfb3['start'],_0xd49c21));}else{const _0x121fe0=this['_model']['createPositionAt'](_0x432c8c['end']['parent'],'after');this['_setSuggestionRange'](_0x1e5818,this['_model']['createRange'](_0x121fe0,_0x27bfb3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3fdd2f){for(const {suggestion:_0xf08d44,meta:_0x11d02d}of this['_findSuggestions'](_0x3fdd2f,'insertion')){if(!_0x11d02d['isOwn'])continue;const _0x4285a2=_0xf08d44['getRanges']();for(const _0x14157e of _0x4285a2)if(!_0x3fdd2f['getDifference'](_0x14157e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x461784){return this['editor']['plugins']['get']('Users')['getUser'](_0x461784);}['_getExternalAuthor'](_0x3fd743){const _0x4b231d=this['editor']['plugins']['get']('Users'),_0x204f8=_0x189e00('external:'+_0x3fd743),_0x7bea0a=_0x4b231d['getUser'](_0x204f8);return _0x7bea0a||_0x4b231d['addUser']({'id':_0x204f8,'name':_0x3fd743});}['_createSuggestion'](_0x18dd94,_0x378a48,_0x3014ed,_0x4af4a0,_0x2b9cbe,_0x553d07){const _0xa110a8=this['_getAuthorFromId'](_0x4af4a0);if(!_0xa110a8)throw new _0xa9e684('track-changes-user-not-found',this,{'authorId':_0x4af4a0,'suggestionId':_0x3014ed});const _0x41406f=this['_suggestionFactory']['buildSuggestion'](_0x18dd94,_0x378a48,_0x3014ed,_0xa110a8,_0x2b9cbe,_0x460f09=>{this['_updateSuggestionData'](_0x3014ed,{'attributes':_0x460f09});const _0x246a02=this['getSuggestion'](_0x3014ed);this['_joinWithAdjacentSuggestions'](new Set([_0x246a02])),this['_refreshSuggestionsChain'](new Set([_0x246a02]));},_0x553d07);return this['listenTo'](_0x41406f,'accept',()=>{this['_updateSuggestionData'](_0x3014ed,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x41406f,'discard',()=>{this['_updateSuggestionData'](_0x3014ed,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3014ed,_0x41406f),this['_suggestionState']['set'](_0x41406f,'notReady'),_0x41406f;}['_splitMarkerName'](_0x47b80a){return Gt(_0x47b80a);}['_breakSuggestionMarker'](_0x2520ea,_0x5bb6c9,_0x58847c){const _0xf1e48f=_0x2520ea['getFirstRange'](),_0x541d2f=_0xf1e48f['start'],_0x1273e9=_0xf1e48f['end'];this['_setSuggestionRange'](_0x2520ea,this['_model']['createRange'](_0x541d2f,_0x5bb6c9));const _0x974538=_0x2984a9(),_0x463cc7=_0x2520ea['creator']['id'],_0xba698b=_0x2520ea['type']+(_0x2520ea['subType']?':'+_0x2520ea['subType']:'');this['_setSuggestionData']({'id':_0x974538,'type':_0xba698b,'createdAt':new Date(),'authorId':_0x463cc7,'originalSuggestionId':_0x2520ea['_originalSuggestionId']||_0x2520ea['id'],'attributes':_0x2520ea['attributes'],'data':_0x2520ea['data']});const _0x510986=this['_getAttributeKey'](_0x2520ea);('formatBlock'==_0x2520ea['type']||_0x510986&&this['_isBlockAttribute'](_0x510986))&&(_0x58847c=this['_model']['createPositionBefore'](_0x58847c['parent'])),this['_addSuggestionMarker'](_0xba698b,_0x974538,_0x463cc7,this['_model']['createRange'](_0x58847c,_0x1273e9));}['_findSuggestions'](_0x20d0ed,_0x1a686b=null){const _0x242885=[],_0x442fe8=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x20d0ed)||(_0x20d0ed=[_0x20d0ed]);for(const _0x4044fc of this['getSuggestions']()){if(!_0x4044fc['isInContent'])continue;if(_0x1a686b&&_0x4044fc['type']!=_0x1a686b)continue;let _0x58670d=!0x1;for(const _0x52d962 of _0x4044fc['getRanges']()){for(const _0x3426c6 of _0x20d0ed){const _0xcf139a=_0x3426c6['start']['isEqual'](_0x52d962['end'])||_0x3426c6['end']['isEqual'](_0x52d962['start']);if(_0xcf139a||_0x3426c6['getIntersection'](_0x52d962)){const _0x134d28=_0x3426c6['containsRange'](_0x52d962)&&zt(this['_model']['schema'],_0x52d962['start'],_0x3426c6),_0x4d5f38=_0x52d962['containsRange'](_0x3426c6)&&zt(this['_model']['schema'],_0x3426c6['start'],_0x52d962);_0x242885['push']({'suggestion':_0x4044fc,'meta':{'isOwn':_0x442fe8==_0x4044fc['author'],'isNextTo':_0xcf139a,'isInsideObject':_0x134d28,'containsRangeInObject':_0x4d5f38}}),_0x58670d=!0x0;break;}}if(_0x58670d)break;}}return _0x242885;}['_addSuggestionMarker'](_0x22b355,_0x1e8bcf,_0x331853,_0x21934e,_0x45c65c){this['_model']['change'](_0x1e8974=>{let _0x16afc0='suggestion:'+_0x22b355+':'+_0x1e8bcf+':'+_0x331853;_0x45c65c&&(_0x16afc0=_0x16afc0+':'+_0x45c65c),_0x1e8974['addMarker'](_0x16afc0,{'range':_0x21934e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x16d7cc){const _0x323e27=_0x16d7cc['previous'],_0x1e6aae=_0x16d7cc['next'];_0x16d7cc['previous']=null,_0x16d7cc['next']=null,null!=_0x323e27&&_0x323e27['next']==_0x16d7cc&&(_0x323e27['next']=_0x1e6aae),null!=_0x1e6aae&&_0x1e6aae['previous']==_0x16d7cc&&(_0x1e6aae['previous']=_0x323e27),'ready'==this['_suggestionState']['get'](_0x16d7cc)&&(this['_suggestionState']['set'](_0x16d7cc,'removed'),this['fire']('suggestionUnloaded',_0x16d7cc,_0x323e27,_0x1e6aae));}['_setSuggestionData'](_0x2ca714){const _0x5646cf=_0x2ca714['id'],_0x417570=this['addSuggestionData'](_0x2ca714);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x56fcf1=this['editor']['plugins']['get']('PendingActions'),_0x46a936=_0x417570['hasComments'],_0x1bd20b=_0x417570['subType']?_0x417570['type']+':'+_0x417570['subType']:_0x417570['type'],_0x372143=this['editor']['locale'],_0x5c77aa=_0x56fcf1['add'](o(_0x372143,'PENDING_ACTION_SUGGESTION')),_0x339390={'id':_0x5646cf,'type':_0x1bd20b,'hasComments':_0x46a936,'data':_0x2ca714['data']||null,'originalSuggestionId':_0x2ca714['originalSuggestionId']||null,'attributes':_0x417570['attributes']};this['_adapter']['addSuggestion'](_0x339390)['then'](_0x168e53=>{_0x417570['_saved']=!0x0,_0x56fcf1['remove'](_0x5c77aa),_0x168e53&&_0x168e53['createdAt']&&(this['_suggestions']['get'](_0x5646cf)['createdAt']=_0x168e53['createdAt']);})['catch'](_0x40aa59=>{throw _0x1bcc90('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x417570['discard']();}),_0x417570['stopListening'](),this['_suggestions']['delete'](_0x417570['id']),this['_suggestionState']['delete'](_0x417570),_0x40aa59;});}return _0x417570;}['_isBlockAttribute'](_0x43ba05){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x43ba05);}['_isInlineAttribute'](_0x1defb2){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x1defb2);}['_updateSuggestionData'](_0x1745cb,_0xcad936){const _0x523e82=this['editor']['plugins']['get']('PendingActions'),_0x471510=this['getSuggestion'](_0x1745cb);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x471510['_saved']){const _0x114408=_0x523e82['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1745cb,_0xcad936)['then'](()=>{_0x523e82['remove'](_0x114408);});}else _0x471510['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1745cb,_0xcad936);});}}['_getSuggestionData'](_0x24cd22){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xa9e684('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x24cd22);}['_handleNewSuggestionMarker'](_0x538f3f){const {id:_0x5ce29a,type:_0x539e99,subType:_0x2084d6,authorId:_0xb93df5}=this['_splitMarkerName'](_0x538f3f),_0x2dd30a=this['_suggestions']['get'](_0x5ce29a)||this['_createSuggestion'](_0x539e99,_0x2084d6,_0x5ce29a,_0xb93df5,{});switch(this['_checkSuggestionCorrectness'](_0x2dd30a,_0x539e99,_0x2084d6,_0xb93df5),this['_suggestionState']['get'](_0x2dd30a)){case'notReady':this['_getSuggestionData'](_0x5ce29a)['then'](_0x421765=>{let _0x1401f1=Promise['resolve']();_0x421765['hasComments']&&(_0x1401f1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5ce29a})),_0x1401f1['then'](()=>{this['addSuggestionData'](_0x421765)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2dd30a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5ce29a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2dd30a,'ready'),this['fire']('suggestionLoaded',_0x2dd30a);break;case'ready':this['fire']('suggestionChanged',_0x2dd30a);}return _0x2dd30a['addMarkerName'](_0x538f3f),_0x2dd30a;}['_refreshSuggestionsChain'](_0x11327d){const _0x45e11a=Array['from'](_0x11327d),_0xa0ca26=_0x45e11a['filter'](_0x4a6ee0=>'attribute'==_0x4a6ee0['type']);this['_refreshAttributeSuggestionsChain'](_0xa0ca26);const _0x396945=_0x45e11a['filter'](_0x1f4a5f=>!_0x1f4a5f['isMultiRange']&&'attribute'!=_0x1f4a5f['type']),_0x8453a0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x413435=>!_0x413435['isMultiRange']&&'attribute'!=_0x413435['type']),_0x3e14bb=_0x8453a0['filter'](_0x35f9f3=>!_0x11327d['has'](_0x35f9f3)),_0x257430=new Map(_0x8453a0['map'](_0x3723ec=>[_0x3723ec,this['_suggestionFactory']['getSuggestionCallback'](_0x3723ec['type'],_0x3723ec['subType'],'chain')])),_0x5a5160=new Map(_0x8453a0['map'](_0x398d05=>[_0x398d05,_0x398d05['getFirstRange']()])),_0x4753b4=new Set(),_0x58a086=new Set();for(let _0x3ef774=0x0;_0x3ef774<_0x396945['length'];_0x3ef774++)_0x597c64(_0x396945[_0x3ef774],_0x396945,_0x3ef774+0x1);for(let _0x2bb776=0x0;_0x2bb776<_0x396945['length'];_0x2bb776++)_0x597c64(_0x396945[_0x2bb776],_0x3e14bb,0x0);const _0x321418=new Set();for(let _0x538fda=0x0;_0x538fda<_0x396945['length'];_0x538fda++){const _0x57e8c3=_0x396945[_0x538fda];!_0x58a086['has'](_0x57e8c3)&&_0x57e8c3['previous']&&(_0x321418['add'](_0x57e8c3['previous']),_0x57e8c3['previous']['next']===_0x57e8c3&&(_0x57e8c3['previous']['next']=null),_0x57e8c3['previous']=null),!_0x4753b4['has'](_0x57e8c3)&&_0x57e8c3['next']&&(_0x321418['add'](_0x57e8c3['next']),_0x57e8c3['next']['previous']===_0x57e8c3&&(_0x57e8c3['next']['previous']=null),_0x57e8c3['next']=null);}function _0x597c64(_0x205b76,_0x16c09e,_0x5cb7ee){for(let _0x353cce=_0x5cb7ee;_0x353cce<_0x16c09e['length'];_0x353cce++){const _0x2e68d8=_0x4c759c(_0x205b76,_0x16c09e[_0x353cce]);_0x2e68d8&&(_0x2e68d8[0x0]['next']=_0x2e68d8[0x1],_0x2e68d8[0x1]['previous']=_0x2e68d8[0x0],_0x4753b4['add'](_0x2e68d8[0x0]),_0x58a086['add'](_0x2e68d8[0x1]));}}function _0x4c759c(_0x5bde97,_0x460580){if(_0x5bde97['author']['id']!==_0x460580['author']['id'])return null;const _0x3a47e8=_0x257430['get'](_0x5bde97)(_0x5bde97,_0x460580,_0x5a5160['get'](_0x5bde97),_0x5a5160['get'](_0x460580));if(!_0x3a47e8)return null;return _0x257430['get'](_0x460580)(_0x5bde97,_0x460580,_0x5a5160['get'](_0x5bde97),_0x5a5160['get'](_0x460580))?_0x3a47e8[0x1]['commentThread']&&_0x3a47e8[0x1]['commentThread']['length']?null:_0x3a47e8:null;}_0x321418['size']&&this['_refreshSuggestionsChain'](_0x321418);}['_refreshAttributeSuggestionsChain'](_0x127c54){if(0x0==_0x127c54['length'])return;const _0x5161f2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x233fee=>'attribute'==_0x233fee['type']&&_0x233fee['_isDataLoaded']),_0xf3964b=[],_0xcb1b4d=new Map();for(const _0x52426e of _0x5161f2){const _0x15cebc=_0x189e00(_0x52426e['attributes']);_0xcb1b4d['has'](_0x15cebc)||(_0xcb1b4d['set'](_0x15cebc,_0xf3964b['length']),_0xf3964b['push']([]));const _0x3caf9c=_0xcb1b4d['get'](_0x15cebc);_0xf3964b[_0x3caf9c]['push'](_0x52426e);}!(function(){_0xf3964b['sort']((_0x36e0de,_0x1bab64)=>{const _0x105a85=_0x36e0de[0x0]['createdAt'],_0x161905=_0x1bab64[0x0]['createdAt'];return _0x105a85==_0x161905?_0x36e0de[0x0]['attributes']['groupId']<_0x1bab64[0x0]['attributes']['groupId']?-0x1:0x1:_0x105a85<_0x161905?-0x1:0x1;});for(const _0x59a40c of _0xf3964b)_0x59a40c['sort']((_0x403527,_0x57274a)=>_0x403527['id']<_0x57274a['id']?-0x1:0x1);}());for(let _0x3aa61e=0x0;_0x3aa61e<_0xf3964b['length'];_0x3aa61e++){if(0x0==_0xf3964b[_0x3aa61e]['length'])continue;const _0x5655d3=[];for(let _0x45cb9a=_0x3aa61e+0x1;_0x45cb9a<_0xf3964b['length'];_0x45cb9a++)0x0!=_0xf3964b[_0x45cb9a]['length']&&_0x929385(_0xf3964b[_0x3aa61e],_0xf3964b[_0x45cb9a])&&_0x5655d3['push'](_0x45cb9a);for(const _0x4b4eed of _0x5655d3)_0xf3964b[_0x3aa61e]=_0xf3964b[_0x3aa61e]['concat'](_0xf3964b[_0x4b4eed]),_0xf3964b[_0x4b4eed]=[];}for(const _0xcca3f6 of _0xf3964b)for(let _0x1bdec0=0x0;_0x1bdec0<_0xcca3f6['length'];_0x1bdec0++){const _0x41c313=_0xcca3f6[_0x1bdec0+0x1]||null;_0xcca3f6[_0x1bdec0]['next']!==_0x41c313&&(_0xcca3f6[_0x1bdec0]['next']=_0x41c313);}for(const _0x1dbe24 of _0xf3964b)for(let _0x379253=0x0;_0x379253<_0x1dbe24['length'];_0x379253++){const _0x55ae9e=_0x1dbe24[_0x379253-0x1]||null;_0x1dbe24[_0x379253]['previous']!==_0x55ae9e&&(_0x1dbe24[_0x379253]['previous']=_0x55ae9e);}function _0x929385(_0x15c38b,_0x222f34){if(_0x15c38b[0x0]['attributes']['groupId']!==_0x222f34[0x0]['attributes']['groupId']&&_0x15c38b[0x0]['author']!==_0x222f34[0x0]['author'])return!0x1;if(!function(_0x4290df,_0x40f621){if(!_0x4290df['hasComments']&&!_0x40f621['hasComments'])return!0x0;if(_0x4290df['hasComments']&&_0x40f621['hasComments'])return!0x1;if(_0x4290df['hasComments']&&_0x40f621['createdAt']<_0x4290df['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x40f621['hasComments']&&_0x4290df['createdAt']<_0x40f621['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x15c38b[0x0],_0x222f34[0x0]))return!0x1;const _0x4e1532=Pt(_0x15c38b[0x0]['attributes'],['groupId','trackingSessionId']),_0x2c19b8=Pt(_0x222f34[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4a8fc6(_0x4e1532,_0x2c19b8))return!0x1;if(_0x15c38b[0x0]['attributes']['groupId']==_0x222f34[0x0]['attributes']['groupId'])return!0x0;if(_0x15c38b[0x0]['attributes']['trackingSessionId']!==_0x222f34[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x15c38b['every'](_0x174c41=>_0x222f34['some'](_0xb01ae5=>_0x174c41['getFirstRange']()['isEqual'](_0xb01ae5['getFirstRange']())))&&_0x222f34['every'](_0x1995be=>_0x15c38b['some'](_0x550674=>_0x1995be['getFirstRange']()['isEqual'](_0x550674['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x48424){const _0x3e0f8f=Array['from'](_0x48424),_0x1ba4f5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x237707=_0x1ba4f5['filter'](_0x4e3d36=>!_0x48424['has'](_0x4e3d36)),_0x20688c=new Map(_0x3e0f8f['map'](_0x3170f2=>[_0x3170f2,this['_suggestionFactory']['getSuggestionCallback'](_0x3170f2['type'],_0x3170f2['subType'],'join')])),_0x4ca6cd=new Map(_0x1ba4f5['map'](_0x5c93ae=>[_0x5c93ae,_0x5c93ae['getRanges']()]));for(let _0x2931f9=0x0;_0x2931f9<_0x3e0f8f['length'];_0x2931f9++){if(_0x5e4be8(this,_0x3e0f8f[_0x2931f9],_0x3e0f8f,_0x2931f9+0x1))return!0x0;}for(let _0x4d108b=0x0;_0x4d108b<_0x3e0f8f['length'];_0x4d108b++){if(_0x5e4be8(this,_0x3e0f8f[_0x4d108b],_0x237707,0x0))return!0x0;}return!0x1;function _0x5e4be8(_0x34af40,_0x52678f,_0x1a6283,_0x55d3bc){for(let _0x1b87f1=_0x55d3bc;_0x1b87f1<_0x1a6283['length'];_0x1b87f1++){const _0x59278c=_0x1a6283[_0x1b87f1];if(_0x59278c['type']!==_0x52678f['type']||_0x59278c['author']['id']!==_0x52678f['author']['id']||_0x59278c['subType']!==_0x52678f['subType'])continue;if(!en(_0x52678f,_0x59278c))continue;if('attribute'==_0x52678f['type']&&_0x52678f['data']['oldValue']!=_0x59278c['data']['oldValue'])continue;if('attribute'==_0x52678f['type']&&_0x34af40['_isBlockAttribute'](_0x52678f['data']['key']))continue;if('formatBlock'==_0x52678f['type']){const _0x3e80a4=_0x34af40['editor']['model'],_0x1ee232=_0x52678f['getContainedElement']();if(_0x1ee232&&(_0x3e80a4['schema']['isObject'](_0x1ee232)||_0x3e80a4['schema']['isLimit'](_0x1ee232)))continue;}const _0x11744d=_0x20688c['get'](_0x52678f),_0x302459=_0x4ca6cd['get'](_0x52678f),_0x52dc45=_0x4ca6cd['get'](_0x59278c),_0x16c896=_0x52678f['commentThread']&&_0x52678f['commentThread']['length'],_0x17c7cc=_0x59278c['commentThread']&&_0x59278c['commentThread']['length'];if(!_0x16c896&&_0x11744d(_0x52dc45,_0x302459))return _0x34af40['_joinSuggestions'](_0x59278c,_0x52678f),_0x4ca6cd['delete'](_0x52678f),!0x0;if(!_0x17c7cc&&_0x11744d(_0x302459,_0x52dc45))return _0x34af40['_joinSuggestions'](_0x52678f,_0x59278c),_0x4ca6cd['delete'](_0x59278c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2eb753,_0x424089){if(_0x2eb753['isMultiRange']){for(const _0x57e493 of _0x424089['getRanges']())_0x2eb753['addRange'](_0x57e493);}else{const _0x2da8c8=_0x424089['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2eb753,this['_model']['createRange'](_0x2eb753['getFirstRange']()['start'],_0x2da8c8));}_0x424089['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1a80e8,_0x665d58,_0x59eb91){const _0x536e66=_0x1a80e8['startsWith']('format')||_0x1a80e8['startsWith']('attribute')?'FORMATTING':_0x1a80e8['toUpperCase']();return o(this['editor']['locale'],_0x665d58+'_'+_0x536e66+'_SUGGESTION_ANNOUNCEMENT',_0x59eb91);}['_initAriaMarkerChangeAnnouncements'](){const _0x4b0a6b=this['editor'];if(!_0x4b0a6b['ui'])return;const {ariaLiveAnnouncer:_0x4a856d}=_0x4b0a6b['ui'];_0x2646aa(this['_model'],({left:_0x140e30,entered:_0x8862e3})=>{for(const _0x57ccb7 of _0x140e30){const {group:_0x895c5b,type:_0x29fac1}=this['_splitMarkerName'](_0x57ccb7['name']);if('suggestion'===_0x895c5b){_0x4a856d['announce'](this['_getMarkerAnnouncementText'](_0x29fac1,'LEAVE'));break;}}for(const _0x39d788 of _0x8862e3){const {group:_0x26afa2,type:_0x3edc2a}=this['_splitMarkerName'](_0x39d788['name']);if('suggestion'===_0x26afa2){_0x4a856d['announce'](this['_getMarkerAnnouncementText'](_0x3edc2a,'ENTER',_0x56feb8(_0x258924)));break;}}});}['_processAttributeChanges'](_0x443564){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4b6277=this['editor'],_0x4cfce5=_0x4b6277['model']['document']['differ']['getChanges']();if(0x0==_0x4cfce5['length'])return!0x1;const _0x2f00b4=[],_0x12924b=_0x4cfce5['filter'](_0x45e7c2=>'attribute'==_0x45e7c2['type']),_0x166cc3=_0x4cfce5['filter'](_0x35020=>'insert'==_0x35020['type']&&'$text'!=_0x35020['name']),_0x2a5557=_0x4cfce5['filter'](_0x206a29=>'remove'==_0x206a29['type']&&'$text'!=_0x206a29['name']);for(const _0x22c5a1 of _0x12924b)_0x2f00b4['push']({'key':_0x22c5a1['attributeKey'],'newValue':_0x22c5a1['attributeNewValue'],'oldValue':_0x22c5a1['attributeOldValue'],'range':Zt(_0x22c5a1['range'],_0x4b6277['model'])});for(const _0x9dfcf of _0x166cc3){const _0x55ae9d=_0x2a5557['find'](_0x5d7f20=>_0x5d7f20['position']['isEqual'](_0x9dfcf['position']));_0x55ae9d&&_0x2f00b4['push']({'key':m,'newValue':_0x9dfcf['name'],'oldValue':_0x55ae9d['name'],'range':_0x4b6277['model']['createRangeOn'](_0x9dfcf['position']['nodeAfter'])});}return 0x0!=_0x2f00b4['length']&&this['_reduceExistingSuggestions'](_0x443564,_0x2f00b4);}['_processAttributeSuggestions'](_0x31f6f8){let _0x280bc1=!0x1;const _0x2d0936=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3d3552=>_0x3d3552['data']['newRange']&&_0x3d3552['name']['startsWith']('suggestion:attribute:'));for(const _0x3ce253 of _0x2d0936){const {subType:_0x1557fc,id:_0x55e2ec}=this['_splitMarkerName'](_0x3ce253['name']),_0x5aa914=_0x1557fc['split']('|')[0x0];for(const _0x2e14ba of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2e14ba['id']!=_0x55e2ec&&'attribute'==_0x2e14ba['type']&&_0x2e14ba['data']&&_0x2e14ba['data']['key']==_0x5aa914&&_0x2e14ba['getFirstRange']()['isIntersecting'](_0x3ce253['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2e14ba,_0x3ce253['data']['newRange'],_0x31f6f8),_0x280bc1=!0x0);}return _0x280bc1;}['recordAttributeChanges'](_0x1161f1){this['_recordAttributeSuggestions']=!0x0,_0x1161f1();}['_isRegisteredAttribute'](_0x165d62){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x165d62);}['_reduceExistingSuggestions'](_0x1f334e,_0x2d4c1e){if(0x0==_0x2d4c1e['length'])return!0x1;let _0x34854f=!0x1;for(const _0x46fafd of _0x2d4c1e){const _0x21a22e=this['_findSuggestions'](_0x46fafd['range'],'attribute')['filter'](_0x45c421=>!_0x45c421['meta']['isNextTo'])['map'](_0xbc6216=>_0xbc6216['suggestion']),_0x3b5de3=_0x189e00({'newValue':_0x46fafd['newValue']});_0x21a22e['filter'](_0x359cb3=>{const [_0x93d175,_0x5b28f7]=_0x359cb3['subType']['split']('|');return _0x93d175==_0x46fafd['key']&&_0x5b28f7!=_0x3b5de3;})['forEach'](_0x4fe96c=>{this['_reduceSuggestionAttributeRange'](_0x4fe96c,_0x46fafd['range'],_0x1f334e),_0x34854f=!0x0;});}return _0x34854f;}['_reduceSuggestionAttributeRange'](_0x4695c4,_0x2f7167,_0x453a34){const _0x1c8351=_0x4695c4['getFirstRange']()['getDifference'](_0x2f7167);0x0!==_0x1c8351['length']?0x1!==_0x1c8351['length']?this['_breakSuggestionMarker'](_0x4695c4,_0x2f7167['start'],_0x2f7167['end']):this['_setSuggestionRange'](_0x4695c4,_0x1c8351[0x0]):_0x453a34['removeMarker'](_0x4695c4['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x59898f){this['_editor']=_0x59898f,this['_model']=_0x59898f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2569c3,_0x23d90c,_0x19f59b,_0x17c7b8,_0x1905d9,_0x1d6bc3,_0x1f4811){return new x(this['_model'],{'type':_0x2569c3,'subType':_0x23d90c,'id':_0x19f59b,'originalSuggestionId':_0x1f4811,'author':_0x17c7b8,'creator':_0x17c7b8,'attributes':_0x1905d9,'onAttributesChange':_0x1d6bc3,'onAccept':(..._0x42d66d)=>this['getSuggestionCallback'](_0x2569c3,_0x23d90c,'accept')(..._0x42d66d),'onDiscard':(..._0x269fb5)=>this['getSuggestionCallback'](_0x2569c3,_0x23d90c,'discard')(..._0x269fb5)});}['registerCustomCallback'](_0x525cd4,_0x1bbe2f,_0x1e8004,_0x41d347){const _0x52f0a3=_0x525cd4+':'+_0x1bbe2f+':'+_0x1e8004;this['_customCallbacks']['set'](_0x52f0a3,_0x41d347);}['getSuggestionCallback'](_0x5e95ae,_0x3ecf3f,_0x3723bc){const _0x5f1a2b=_0x5e95ae+':'+_0x3ecf3f+':'+_0x3723bc;return this['_customCallbacks']['get'](_0x5f1a2b)||this['_defaultCallbacks']['get'](_0x5e95ae+':'+_0x3723bc);}['_registerDefaultCallbacks'](){const _0x4b8510=()=>!0x1,_0x306fa5=_0x207bb1=>{_0x207bb1['sort']((_0x2ce726,_0x3e564c)=>_0x2ce726['start']['isBefore'](_0x3e564c['start'])?0x1:-0x1),this['_model']['change'](_0x336dc0=>{for(const _0x2aaa33 of _0x207bb1){let _0x2a1a90;_0x2a1a90=_0x2aaa33['end']['isAtEnd']&&_0x2aaa33['end']['parent']==_0x2aaa33['start']['nodeAfter']?_0x336dc0['createSelection'](_0x2aaa33['start']['nodeAfter'],'on'):_0x336dc0['createSelection'](_0x2aaa33),this['_model']['deleteContent'](_0x2a1a90,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x264165=(_0x3364ab,_0x4b9649)=>{_0x4b9649&&this['_model']['change'](_0x503f73=>{const {commandName:_0x4898f9,commandParams:_0x41297a=[]}=_0x4b9649,_0x1ab58c=_0x3364ab['map'](_0x398104=>(Kt(_0x398104)&&(_0x398104=this['_model']['createRange'](_0x398104['end'])),_0x398104))['filter'](_0x17849b=>'$graveyard'!==_0x17849b['root']['rootName']);if(_0x1ab58c['length']<0x1)return;const _0x40a1f2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5225e8=>_0x1b3589['fromRange'](_0x5225e8));_0x503f73['setSelection'](_0x1ab58c);for(const _0x17eea3 of this['_editor']['commands']['commands']())_0x17eea3['refresh']();_0x41297a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4898f9,..._0x41297a);const _0x1dc57e=_0x40a1f2['filter'](_0x2f2062=>'$graveyard'!=_0x2f2062['root']['rootName']);_0x1dc57e['length']>0x0&&_0x503f73['setSelection'](_0x1dc57e);for(const _0x2e9fea of _0x40a1f2)_0x2e9fea['detach']();});},_0x4c330d=(_0x5ab93a,_0x80c596)=>0x1==_0x5ab93a['length']&&0x1==_0x80c596['length']&&_0x5ab93a[0x0]['end']['isEqual'](_0x80c596[0x0]['start']),_0x1fe807=(_0xddffdd,_0x58e936,_0x26f972,_0x5bec27)=>nn(_0xddffdd,_0x58e936,_0x26f972,_0x5bec27)?[_0xddffdd,_0x58e936]:nn(_0x58e936,_0xddffdd,_0x5bec27,_0x26f972)?[_0x58e936,_0xddffdd]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4b8510),this['_defaultCallbacks']['set']('insertion:discard',_0x306fa5),this['_defaultCallbacks']['set']('insertion:join',_0x4c330d),this['_defaultCallbacks']['set']('insertion:chain',_0x1fe807),this['_defaultCallbacks']['set']('deletion:accept',_0x306fa5),this['_defaultCallbacks']['set']('deletion:discard',_0x4b8510),this['_defaultCallbacks']['set']('deletion:join',_0x4c330d),this['_defaultCallbacks']['set']('deletion:chain',_0x1fe807),this['_defaultCallbacks']['set']('formatInline:accept',_0x264165),this['_defaultCallbacks']['set']('formatInline:discard',_0x4b8510),this['_defaultCallbacks']['set']('formatInline:join',_0x4c330d),this['_defaultCallbacks']['set']('formatInline:chain',_0x4b8510),this['_defaultCallbacks']['set']('formatBlock:accept',_0x264165),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4b8510),this['_defaultCallbacks']['set']('formatBlock:join',_0x4c330d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4b8510),this['_defaultCallbacks']['set']('attribute:accept',_0x4b8510),this['_defaultCallbacks']['set']('attribute:discard',(_0x400bbc,_0x2c4995)=>{if(!_0x2c4995)return;const _0x4051f5=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x24eea2=>{if(_0x2c4995['key']==m)for(const _0x5bbeb6 of _0x400bbc){const _0x5aa0b9=_0x5bbeb6['start']['nodeAfter'],_0xbcf769=_0x2c4995['oldValue'];_0x24eea2['rename'](_0x5aa0b9,_0xbcf769);}else{if(_0x4051f5['_isBlockAttribute'](_0x2c4995['key'])){for(const _0x4df555 of _0x400bbc)void 0x0!==_0x2c4995['oldValue']?_0x24eea2['setAttribute'](_0x2c4995['key'],_0x2c4995['oldValue'],_0x4df555['start']['nodeAfter']):_0x24eea2['removeAttribute'](_0x2c4995['key'],_0x4df555['start']['nodeAfter']);}else{for(const _0x3a5092 of _0x400bbc)_0x2c4995['oldValue']?_0x24eea2['setAttribute'](_0x2c4995['key'],_0x2c4995['oldValue'],_0x3a5092):_0x24eea2['removeAttribute'](_0x2c4995['key'],_0x3a5092);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4c330d);}}function zt(_0x2b3b2b,_0x1a0079,_0x4f89bf){for(const _0x796166 of _0x1a0079['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x796166['root']==_0x796166)return!0x1;if(!_0x4f89bf['containsItem'](_0x796166))return!0x1;if(_0x2b3b2b['isObject'](_0x796166)||_0x2b3b2b['isLimit'](_0x796166))return!0x0;}return!0x1;}function Kt(_0x23c982){return _0x23c982['end']['parent']==_0x23c982['start']['nodeAfter']&&_0x23c982['end']['isAtStart'];}function Wt(_0x3b44be,_0x2565ac,_0x590acc,_0x26efc0){const _0x2895ce=_0x549655=>!_0x549655['item']['is']('$textProxy')&&!_0x26efc0['isObject'](_0x549655['item']),_0x126a60=_0x3b44be['start']['getLastMatchingPosition'](_0x2895ce),_0x188508=_0x3b44be['end']['getLastMatchingPosition'](_0x2895ce,{'direction':'backward'});return(!_0x3b44be['start']['isEqual'](_0x126a60)||!_0x3b44be['end']['isEqual'](_0x188508))&&(_0x126a60['isBefore'](_0x188508)?_0x590acc['updateMarker'](_0x2565ac,{'range':_0x590acc['createRange'](_0x126a60,_0x188508)}):_0x590acc['removeMarker'](_0x2565ac),!0x0);}function Ht(_0x2884fa){return _0x189e00(_0x2884fa);}function Qt(_0x3f6b02){const _0x2d411f=_0x3f6b02['start']['nodeAfter'];return _0x2d411f&&_0x2d411f['is']('element');}function Xt(_0x1df847){return Kt(_0x1df847)||function(_0x13f93){return _0x13f93['start']['parent']==_0x13f93['end']['nodeBefore']&&_0x13f93['start']['isAtEnd'];}(_0x1df847);}function Yt(_0x5dd1f7,_0x3dacb5){try{const _0x5a5c77=_0x5dd1f7['getRange']();for(const _0x58caf3 of _0x3dacb5)if(_0x5dd1f7!==_0x58caf3&&_0x5a5c77&&_0x5a5c77['isIntersecting'](_0x58caf3['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x21ecd8,_0x8b46e8){return null==_0x21ecd8['end']['nodeBefore']&&_0x21ecd8['end']['parent']==_0x21ecd8['start']['nodeAfter']?tn(_0x21ecd8['start']['nodeAfter'],_0x8b46e8):_0x21ecd8;}function tn(_0x213e34,_0x56b4e7){const _0x381b2f=_0x56b4e7['schema']['isObject'](_0x213e34)||_0x56b4e7['schema']['isSelectable'](_0x213e34);return _0x56b4e7['createRange'](_0x56b4e7['createPositionAt'](_0x213e34,'before'),_0x381b2f?_0x56b4e7['createPositionAfter'](_0x213e34):_0x56b4e7['createPositionAt'](_0x213e34,'end'));}function nn(_0x549898,_0xe3e30a,_0x3526fc,_0x4d497c){return!!en(_0x549898,_0xe3e30a)&&_0x3526fc['end']['isEqual'](_0x4d497c['start']);}function en(_0x35a53c,_0x3a8dbf){if(!_0x35a53c['_isDataLoaded']||!_0x3a8dbf['_isDataLoaded'])return!0x1;const _0x24f7df=new Set(Object['keys'](_0x35a53c['attributes'])),_0xb80e98=new Set(Object['keys'](_0x3a8dbf['attributes']));if(_0x24f7df['delete']('groupId'),_0xb80e98['delete']('groupId'),0x0==_0x24f7df['size']&&0x0==_0xb80e98['size'])return!0x0;if(_0x24f7df['size']!=_0xb80e98['size'])return!0x1;const _0x452198={..._0x35a53c['attributes']},_0x3de89c={..._0x3a8dbf['attributes']};return delete _0x452198['groupId'],delete _0x3de89c['groupId'],JSON['stringify'](_0x452198)==JSON['stringify'](_0x3de89c);}function sn(_0x4c443c,_0x5e80e8){const _0x16715b=on(_0x4c443c['attributes']),_0x1b8ad4=on(_0x5e80e8);if(!_0x4c443c['_isDataLoaded'])return!0x1;for(const _0x337cc1 of Object['keys'](_0x1b8ad4))if(!_0x4a8fc6(_0x16715b[_0x337cc1],_0x1b8ad4[_0x337cc1]))return!0x1;return!0x0;}function on(_0x25fa8e){const _0x5ec94f=Object['assign']({},_0x25fa8e);return delete _0x5ec94f['skipNestingCheck'],delete _0x5ec94f['tablePasteChainId'],_0x5ec94f;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x359f19(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x307553,_0x3a96dd,_0x24ae00,_0x5a6ba8){super(),this['model']=_0x3a96dd,this['view']=_0x24ae00,this['commentThreadController']=_0x5a6ba8,this['_editor']=_0x307553,this['_acceptCommand']=_0x307553['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x307553['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x13e647,_0x1e885c)=>_0x13e647||_0x1e885c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x271e45=>_0x271e45&&this['_editor']['model']['canEditAt'](_0x3a96dd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3de02e=>_0x3de02e&&this['_editor']['model']['canEditAt'](_0x3a96dd['getRanges']())),this['_pendingAction']=null,_0x24ae00['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x24ae00,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x24ae00,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x24ae00,'change:isDirty',()=>{_0x24ae00['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 _0x134624=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x134624);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x327a4b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2bb34b,_0x56f6b4,_0x393e5f,_0x440a71){super(_0x2bb34b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2fd797(_0x2bb34b,o(_0x2bb34b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x56f6b4['authoredAt']),this['bind']('authoredAt')['to'](_0x56f6b4),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',_0x56f6b4,'authoredAt',this,'descriptionParts',(_0x59d641,_0x18fdc4,_0x2b600d)=>{const _0x4d4577=_0x2b600d['map'](_0x16c0c5=>ls(_0x16c0c5['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x59d641-0x1,_0x56f6b4['author']['name'],_0x18fdc4?_0x440a71['formatDateTime'](_0x18fdc4):'',new DOMParser()['parseFromString'](_0x4d4577,'text/html')['body']['textContent']]);}),this['focusables']=new _0x102385(),this['focusTracker']=new _0x2c671a(),this['keystrokes']=new _0x1ec55a(),this['focusCycler']=new _0x3797ab({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3a5a70=>_0x3a5a70['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x56f6b4,this['_localUser']=_0x393e5f,this['_config']=_0x440a71,_0x440a71['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3db1d5(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x6ebe76}=this['_config'];this['commentsListView']=new _0x6ebe76(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',_0x4a94bb=>_0x4a94bb+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5815fb,_0x3ef985)=>_0x5815fb||!!_0x3ef985);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2f8844}=this['_config'],_0x219e11=new _0x2f8844(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x41c64e=_0x219e11['commentInputView'];return _0x219e11['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x41c64e,'value',(_0x5a837c,_0x54efdc,_0x41234f)=>!!_0x41234f||_0x5a837c&&!_0x54efdc),_0x41c64e['on']('submit',(_0x16714d,_0x23f8bc)=>{this['fire']('addComment',_0x23f8bc),_0x41c64e['editor']['setData']('');}),_0x41c64e['on']('cancel',()=>this['focus']()),_0x41c64e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x219e11;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x1efb7c,_0x2904bd,_0x56c6a8,_0x570d40){super(_0x1efb7c,_0x2904bd,_0x56c6a8,_0x570d40),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x83a44b=>_0x83a44b&&_0x83a44b[0x0]?_0x83a44b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4aac72,_0x32a285)=>{let _0x6c3eac='';for(const _0x177c56 of _0x4aac72)_0x6c3eac+='<p>'+ls(_0x177c56['content'],_0x177c56['color'])+'</p>';return _0x32a285?_0x6c3eac:_0x42d5bc(_0x6c3eac,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x570d40['SuggestionView'](_0x1efb7c,_0x2904bd,{'formatDateTime':_0x570d40['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 _0x3fef58=this['bindTemplate'],_0x43d88b=[this['suggestionView']];return this['commentsListView']&&_0x43d88b['push'](this['commentsListView']),this['commentThreadInputView']&&_0x43d88b['push'](this['commentThreadInputView']),_0x43d88b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3fef58['if']('isActive','ck-suggestion-wrapper--active'),_0x3fef58['to']('type',_0x4dccfd=>'ck-suggestion-'+_0x4dccfd),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':_0x3fef58['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x43d88b};}['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 _0x327a4b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x228c40,_0x4a07db,_0x1f1e57){super(_0x228c40),this['_model']=_0x4a07db,this['_config']=_0x1f1e57,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4a07db),this['acceptButton']=this['_createButton'](o(_0x228c40,'Accept\x20suggestion'),_0xcf9134,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x228c40,'Discard\x20suggestion'),_0x235398,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1e06c0(_0x228c40,_0x4a07db['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x102385([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2c671a(),this['keystrokes']=new _0x1ec55a(),this['focusCycler']=new _0x3797ab({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x20665e=>_0x20665e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xe8018c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xe8018c['innerHTML']=this['description'],this['on']('change:description',(_0x349824,_0x1e16b0,_0xe4f7db)=>{_0xe8018c['innerHTML']=_0xe4f7db;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x465a30=this['bindTemplate'],_0x139e5=[{'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':_0x465a30['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x465a30['to']('authoredAt',_0x90baa4=>this['_config']['formatDateTime'](_0x90baa4))}]}]},{'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']&&_0x139e5['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':_0x139e5}]};}['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'](_0x3b7b5f,_0x4be238,_0xa819f6,_0x4c4aa4,_0x5b8852){const _0x367e1e=new _0x52b767(this['locale']);return _0x367e1e['set']({'label':_0x3b7b5f,'icon':_0x4be238,'tooltip':!0x0,'tooltipPosition':_0x5b8852}),_0x367e1e['extendTemplate']({'attributes':{'class':_0xa819f6}}),_0x367e1e['on']('execute',()=>{this['fire'](_0x4c4aa4,this['_model']['id']);}),_0x367e1e;}['_setupKeyboardNavigation'](){const _0x4462c2=this['element'];this['keystrokes']['listenTo'](_0x4462c2);for(const _0x35dec2 of this['focusables'])this['focusTracker']['add'](_0x35dec2['element']),this['keystrokes']['listenTo'](_0x35dec2['element']);this['keystrokes']['set']('enter',(_0x2184e3,_0x389a2b)=>{_0x4462c2===_0x2184e3['target']&&(this['focusCycler']['focusFirst'](),_0x389a2b());}),this['keystrokes']['set']('esc',(_0x123065,_0x3d416e)=>{_0x4462c2!==_0x123065['target']&&(this['focus'](),_0x3d416e());});}}class u extends _0x335eea{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x122a13,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xcbc680){super(_0xcbc680),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x138359=this['editor']['config'];_0x138359['define']('trackChanges.SuggestionThreadView',fe),_0x138359['define']('trackChanges.SuggestionView',we),_0x138359['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x138359['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x27f337,_0x364f0a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x19b0f6,_0x3013b7]of this['_handleControllerBuffer']){const _0x5ddd98=this['_suggestionToController']['has'](_0x19b0f6);_0x5ddd98||_0x3013b7?_0x5ddd98&&_0x3013b7&&this['_destroyController'](_0x19b0f6):this['_initializeController'](_0x19b0f6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x27f337,_0x364f0a);}['init'](){const _0x5e39a7=this['editor'],_0x20ef8c=_0x5e39a7['plugins']['get']('TrackChangesEditing'),_0x2bd151=_0x5e39a7['plugins']['get']('Annotations'),_0x42021d=_0x5e39a7['plugins']['get']('EditorAnnotations'),_0x28801a=_0x5e39a7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x42021d['addSourceCollector'](()=>{const _0x5a3eef=[];for(const [_0x15b6c9,_0x4e52f9]of Array['from'](this['_suggestionToController'])){const _0x261a6b=_0x15b6c9['getAllAdjacentSuggestions'](),_0x2ec5ff=[];for(const _0x58d2e3 of _0x261a6b){if(!_0x58d2e3['isInContent'])continue;if(_0x58d2e3['isMultiRange']){_0x2ec5ff['push'](..._0x58d2e3['getRanges']());continue;}const _0x4b7dc5=_0x58d2e3['getFirstRange']();if(_0x2ec5ff['length']>0x0){const _0x56646a=_0x2ec5ff[0x0]['getJoined'](_0x4b7dc5);if(_0x56646a){_0x2ec5ff[0x0]=_0x56646a;continue;}}_0x2ec5ff['push'](_0x4b7dc5);}_0x5a3eef['push']([_0x4e52f9['view'],_0x2ec5ff]);}return _0x5a3eef;}),this['listenTo'](_0x20ef8c,'suggestionLoaded',(_0x446e17,_0xedc8f8)=>{this['listenTo'](_0xedc8f8,'change:previous',(_0x3f04ca,_0x467c9e,_0x46f59d,_0x4ae1c9)=>{_0xedc8f8['isInContent']&&(null==_0x46f59d?(this['_updateController'](_0x4ae1c9['head']),this['_handleSuggestionControllerDelayed'](_0xedc8f8,!0x1)):(this['_updateController'](_0x46f59d['head']),null==_0x4ae1c9&&this['_handleSuggestionControllerDelayed'](_0xedc8f8,!0x0)));}),null!==_0xedc8f8['previous']?this['_updateController'](_0xedc8f8['head']):this['_handleSuggestionControllerDelayed'](_0xedc8f8,!0x1);}),this['listenTo'](_0x20ef8c,'suggestionUnloaded',(_0x1e3246,_0x386e51,_0x4802a6)=>{this['stopListening'](_0x386e51,'change:previous'),this['_handleControllerBuffer']['delete'](_0x386e51),this['_suggestionToController']['has'](_0x386e51)&&this['_destroyController'](_0x386e51),_0x4802a6&&this['_updateController'](_0x4802a6['head']);}),this['listenTo'](_0x20ef8c,'suggestionChanged',(_0x3ad348,_0x445a76)=>{this['_updateController'](_0x445a76);}),this['listenTo'](_0x2bd151,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x28801a,'addComment',(_0x5152d2,{threadId:_0x1618ea,isFromAdapter:_0x5adcb8})=>{if(_0x5adcb8||!_0x20ef8c['hasSuggestion'](_0x1618ea))return;const _0x4d2e8c=_0x20ef8c['getSuggestion'](_0x1618ea);this['_suggestionToController']['get'](_0x4d2e8c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x188ce6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4c3f7c;for(const _0x4a729d in _0x188ce6){const _0x37a423=_0x4a729d,_0x7587e6=_0x188ce6[_0x37a423];if('trackChangesLicenseKeyValid'==_0x7587e6||'trackChangesLicenseKeyInvalid'==_0x7587e6||'trackChangesLicenseKeyExpired'==_0x7587e6||'trackChangesLicenseKeyDomainLimit'==_0x7587e6||'trackChangesLicenseKeyNotAllowed'==_0x7587e6||'trackChangesLicenseKeyEvaluationLimit'==_0x7587e6||'trackChangesLicenseKeyTrialLimit'==_0x7587e6||'trackChangesLicenseKeyUsageLimit'==_0x7587e6){delete _0x188ce6[_0x37a423],_0x4c3f7c=_0x7587e6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4c3f7c&&_0x188ce6['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4c3f7c&&_0x188ce6['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4c3f7c&&_0x188ce6['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4c3f7c&&_0x188ce6['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4c3f7c&&_0x188ce6['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4c3f7c&&_0x188ce6['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4c3f7c&&_0x188ce6['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1653b4){const _0x4fd4db=this['_suggestionToController']['get'](_0x1653b4);if(!_0x4fd4db)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x4fd4db['view'])||null;}['getSuggestionForAnnotation'](_0x11d621){const _0x3a19a3=this['_viewToController']['get'](_0x11d621['innerView']);return _0x3a19a3?_0x3a19a3['model']:null;}['_refreshActiveMarkers'](){const _0x214373=this['editor']['plugins']['get']('Annotations'),_0x568ac5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58a411=Array['from'](_0x214373['activeAnnotations'],_0x4a8b5c=>_0x4a8b5c['innerView'])['filter'](_0x2e2f7b=>this['_viewToController']['has'](_0x2e2f7b)),_0x32f9dd=[];for(const _0x2fa6fe of _0x58a411){const _0xcef6bf=this['_viewToController']['get'](_0x2fa6fe)['model']['getAllAdjacentSuggestions']();_0x32f9dd['push'](..._0xcef6bf['reduce']((_0x1eecc8,_0x3c59a4)=>[..._0x1eecc8,..._0x3c59a4['getMarkerNames']()],[]));}_0x568ac5['activeMarkers']=_0x32f9dd;}['_addUIComponentsToFactory'](){const _0x1b0246=this['editor'],_0x151e1c=_0x1b0246['locale'],_0x59498f=o(_0x151e1c,'Track\x20changes'),_0x44f655=new _0x403b70([{'type':'switchbutton','model':new _0x5af72d({'withText':!0x0,'isToggleable':!0x0,'label':_0x59498f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5af72d({'withText':!0x0,'label':o(_0x151e1c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5af72d({'withText':!0x0,'label':o(_0x151e1c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5af72d({'withText':!0x0,'label':o(_0x151e1c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5af72d({'withText':!0x0,'label':o(_0x151e1c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1b0246['plugins']['has']('TrackChangesPreview')&&_0x44f655['addMany']([{'type':'separator'},{'type':'button','model':new _0x5af72d({'withText':!0x0,'label':o(_0x151e1c,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4c2e7f of _0x44f655)if(ke(_0x4c2e7f)){const _0xb5ac1a=_0x1b0246['commands']['get'](_0x4c2e7f['model']['commandName']);_0x4c2e7f['model']['bind']('isOn','isEnabled')['to'](_0xb5ac1a,'value','isEnabled');}_0x1b0246['ui']['componentFactory']['add']('trackChanges',_0x2dc793=>this['_createToolbarButton'](_0x2dc793,_0x44f655,_0x59498f)),_0x1b0246['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2bf6ed=>this['_createMenuBarMenu'](_0x2bf6ed,_0x44f655,_0x59498f));}['_createToolbarButton'](_0x54e447,_0x5c8756,_0x13a094){const _0x2ba53c=_0x2f3c70(_0x54e447,_0x5c4fdb),_0x7ce578=this['editor']['commands']['get']('trackChanges');_0x2ba53c['buttonView']['set']({'tooltip':_0x13a094,'label':_0x13a094,'icon':_0x405e12}),_0x2ba53c['buttonView']['bind']('isOn')['to'](_0x7ce578,'value'),_0x2ba53c['buttonView']['on']('execute',()=>{_0x7ce578['execute'](),this['editor']['editing']['view']['focus']();}),_0x19681d(_0x2ba53c,_0x5c8756,{'role':'menu'});const _0x5ada60=[];for(const _0x798ab4 of _0x5c8756)ke(_0x798ab4)&&_0x5ada60['push'](this['editor']['commands']['get'](_0x798ab4['model']['commandName']));const _0xb8a3ae=_0x2ba53c['buttonView'];return _0xb8a3ae['actionView']['unbind']('isEnabled'),_0xb8a3ae['arrowView']['unbind']('isEnabled'),_0xb8a3ae['actionView']['bind']('isEnabled')['to'](_0x7ce578,'isEnabled'),_0xb8a3ae['arrowView']['bind']('isEnabled')['toMany'](_0x5ada60,'isEnabled',(..._0x55fe6a)=>_0x55fe6a['some'](_0x26751e=>_0x26751e)),_0x2ba53c['on']('execute',_0x211385=>{this['editor']['execute'](_0x211385['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2ba53c;}['_createMenuBarMenu'](_0x3658e7,_0x19fd2a,_0x2077a7){const _0x5d4f55=new _0xc798ff(_0x3658e7),_0x3665c8=this['editor']['commands']['get']('trackChanges');_0x5d4f55['buttonView']['set']({'label':_0x2077a7,'icon':_0x405e12});const _0x32c879=new _0x5adf04(_0x3658e7);for(const _0x431be1 of _0x19fd2a){if('separator'==_0x431be1['type']){_0x32c879['items']['add'](new _0x35b880(_0x3658e7));continue;}const _0x2103b4=new _0x534b3f(_0x3658e7,_0x5d4f55),_0x1472ec=new _0x77bc2c(_0x3658e7),_0x392e99=_0x431be1['model'];_0x1472ec['bind'](...Object['keys'](_0x392e99))['to'](_0x392e99),_0x1472ec['delegate']('execute')['to'](_0x5d4f55),_0x1472ec['on']('execute',()=>{this['editor']['execute'](_0x392e99['commandName']),this['editor']['editing']['view']['focus']();}),_0x2103b4['children']['add'](_0x1472ec),_0x32c879['items']['add'](_0x2103b4);}return _0x5d4f55['bind']('isEnabled')['to'](_0x3665c8,'isEnabled'),_0x5d4f55['panelView']['children']['add'](_0x32c879),_0x5d4f55;}['_initializeController'](_0x112fd5){const _0x1b44b0=this['editor'],_0x2200dc=_0x1b44b0['config'],_0x266fae=_0x1b44b0['plugins']['get']('Annotations'),_0x41d671=_0x1b44b0['plugins']['get']('CommentsRepository'),_0x5a4ae2=_0x1b44b0['plugins']['get']('EditorAnnotations'),_0x46db83=_0x1b44b0['plugins']['get'](_0x122a13)['me'],_0x1af40e=_0x2200dc['get']('trackChanges')['SuggestionThreadView'],_0x58b6f4=_0x2200dc['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1d8fd1,CommentThreadInputView:_0x22c2ff}=_0x1b44b0['plugins']['get']('CommentsUI');let _0x1675c,_0x305d8c,_0x228388;this['_annotationViews']['has'](_0x112fd5['id'])?(_0x305d8c=this['_annotationViews']['get'](_0x112fd5['id']),_0x1675c=_0x305d8c['mainView']):(_0x1675c=new _0x1af40e(_0x1b44b0['locale'],_0x112fd5,_0x46db83,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2200dc['get']('comments.editorConfig'),'licenseKey':_0x2200dc['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2200dc['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2200dc['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2200dc['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x304ae6(_0x2200dc['get']('locale'),_0x1b44b0['locale']),'CommentView':_0x2200dc['get']('comments')['CommentView'],'CommentsListView':_0x1d8fd1,'CommentThreadInputView':_0x22c2ff,'SuggestionView':_0x58b6f4}),_0x1675c['suggestionView']['acceptButton']['on']('execute',()=>{_0x1b44b0['editing']['view']['focus']();}),_0x1675c['suggestionView']['discardButton']['on']('execute',()=>{_0x1b44b0['editing']['view']['focus']();}),_0x305d8c=_0x266fae['createAnnotationView'](this['editor']['locale'],_0x1675c),_0x305d8c['bind']('isDirty')['to'](_0x1675c,'isDirty'),_0x305d8c['bind']('length')['to'](_0x1675c),_0x305d8c['bind']('type')['to'](_0x1675c,'type',_0x261a2e=>'suggestion-'+_0x261a2e),_0x1675c['on']('escape',()=>{_0x228388['fire']('escape');}),this['_annotationViews']['set'](_0x112fd5['id'],_0x305d8c));const _0x19926f=_0x41d671['createCommentThreadController'](_0x112fd5['commentThread'],_0x1675c),_0x51410d=new pe(_0x1b44b0,_0x112fd5,_0x1675c,_0x19926f),_0x17ca92=_0x112fd5['getAllAdjacentSuggestions']()['filter'](_0x307a77=>_0x307a77['isInContent']);_0x1675c['descriptionParts']=_0x1b44b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x17ca92),this['_suggestionToController']['set'](_0x112fd5,_0x51410d),this['_viewToController']['set'](_0x1675c,_0x51410d);const _0x5134bd=()=>{const _0x51e673=[],_0x70e339=_0x112fd5['getAllAdjacentSuggestions']()['filter'](_0x2b811b=>_0x2b811b['isInContent']);for(const _0x4a007c of _0x70e339)_0x51e673['push'](..._0x4a007c['getMarkers']());return _0x587c2c(_0x1b44b0['editing'],_0x51e673);};_0x228388=_0x266fae['createAnnotation']({'view':_0x305d8c,'target':_0x5134bd,'type':()=>'suggestion-'+_0x51410d['view']['type'],'isVisible':!!_0x5134bd()}),_0x41d671['_bindAnnotationToEditors'](_0x1675c,_0x228388),_0x266fae['add'](_0x228388),_0x5a4ae2['registerAnnotation'](_0x228388);}['_destroyController'](_0x447166){const _0x31e8af=this['editor']['plugins']['get']('CommentsRepository'),_0x704970=this['editor']['plugins']['get']('Annotations'),_0x2dffad=this['_suggestionToController']['get'](_0x447166),_0x381199=_0x2dffad['view'],_0x5a13ec=_0x704970['getByInnerView'](_0x381199);_0x31e8af['_unbindEditors'](_0x381199),_0x5a13ec&&_0x704970['remove'](_0x5a13ec),this['_suggestionToController']['delete'](_0x447166),this['_viewToController']['delete'](_0x381199),_0x2dffad['destroy']();}['_updateController'](_0x390aa0){if(!_0x390aa0['isInContent']||!this['_suggestionToController']['has'](_0x390aa0))return;const _0x2f6a3d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2527e2=this['_suggestionToController']['get'](_0x390aa0),_0x167d46=_0x390aa0['getAllAdjacentSuggestions']();_0x2527e2['view']['descriptionParts']=_0x2f6a3d['descriptionFactory']['getDescriptions'](_0x167d46);}['destroy'](){for(const _0x3b4dab of this['_suggestionToController']['keys']())this['_destroyController'](_0x3b4dab);for(const _0xa1ad99 of this['_annotationViews']['values']())_0xa1ad99['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x46d68c){return'model'in _0x46d68c;}class Ne extends _0x335eea{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3d5f7f){this['editor']['plugins']['get'](d)['adapter']=_0x3d5f7f;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1eb7c3){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1eb7c3);}['getSuggestions']({skipNotAttached:_0xc9f34=!0x1,toJSON:_0x45d413=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0xc9f34,'toJSON':_0x45d413});}['getSuggestion'](_0x528382){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x528382);}}const p=['Pagination'];class re extends _0x335eea{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x400827=this['editor'];if(_0x400827['config']['define']('trackChangesData.editorCreator',_0x309a15=>{const _0x360460=_0x400827['model']['document']['getRootNames']()['reduce']((_0x452e8b,_0x589eb0)=>(_0x452e8b[_0x589eb0]='',_0x452e8b),{});return _0x400827['constructor']['create'](_0x360460,_0x309a15);}),'function'!=typeof _0x400827['config']['get']('trackChangesData')['editorCreator'])throw new _0xa9e684('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x187024){return P(this['editor'],!0x0,_0x187024);}['getDataWithDiscardedSuggestions'](_0x3c079e){return P(this['editor'],!0x1,_0x3c079e);}}class Fe extends _0x335eea{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa42ce9){function _0x59d04b(_0x4aaa99){return _0x4aaa99['map'](_0xffd365=>String['fromCharCode'](_0xffd365))['join']('');}super(_0xa42ce9),this['result']='end',_0xa42ce9[_0x59d04b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59d04b([0x76,0x69,0x65,0x77])][_0x59d04b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59d04b([0x61,0x75,0x74,0x6f]),_0xa42ce9[_0x59d04b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x59d04b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59d04b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x59d04b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x59d04b([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(_0x2cdde2){return void 0x0!==_0x2cdde2['getRootsAttributes'];}async function P(_0x312399,_0x26374a,_0x35036d){const _0x57caff=_0x57c44e(_0x312399,p);_0x57caff['plugins']['push'](d,Fe),_0x57caff['rootsAttributes']=De(_0x312399)?_0x312399['getRootsAttributes']():void 0x0;const _0x9a8009=document['createDocumentFragment'](),_0x2b05ec=_0x312399['config']['get']('trackChangesData')['editorCreator'],_0x327195=await _0x2b05ec(_0x57caff,()=>function(_0x2a11e1){const _0x226e2a=document['createElement']('div');return _0x2a11e1['appendChild'](_0x226e2a),_0x226e2a;}(_0x9a8009));!function(_0x24cd67,_0x24b49a){const _0x3a5a90=_0x24cd67['model']['document']['getRootNames']()['reduce']((_0x4af078,_0x1db1fc)=>(_0x4af078[_0x1db1fc]=_0x24cd67['data']['get']({'rootName':_0x1db1fc}),_0x4af078),{}),_0x2f1b72=_0x24cd67['plugins']['get']('Users')['users']['map'](_0x3dd4c3=>({'id':_0x3dd4c3['id'],'name':_0x3dd4c3['name']})),_0x5b269b=_0x24cd67['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4d8014=_0x24cd67['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xa93f36=_0x24b49a['plugins']['get']('Users'),_0x4442e9=_0x24b49a['plugins']['get']('TrackChangesEditing'),_0x179396=_0x24b49a['plugins']['get']('CommentsRepository');for(const _0x3eefc2 of _0x179396['getCommentThreads']())_0x3eefc2['remove']();for(const _0xb63d02 of _0x2f1b72)_0xa93f36['getUser'](_0xb63d02['id'])||_0xa93f36['addUser'](_0xb63d02);_0xa93f36['me']||_0xa93f36['useAnonymousUser']();for(const _0x4ba065 of _0x4d8014)_0x179396['addCommentThread'](_0x4ba065);for(const _0x2e8cbf of _0x5b269b)_0x4442e9['addSuggestionData'](_0x2e8cbf);_0x24b49a['data']['set'](_0x3a5a90);}(_0x312399,_0x327195),_0x327195['execute'](_0x26374a?'acceptAllSuggestions':'discardAllSuggestions');const _0x51a812=De(_0x327195)?_0x327195['getFullData'](_0x35036d):_0x327195['data']['get'](_0x35036d);return await _0x327195['destroy'](),_0x51a812;}class Me extends _0x327a4b{['options'];constructor(_0x3e03fe,_0xd18336){super(_0x3e03fe),this['options']=_0xd18336,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'](_0x53ca8a,_0x43b147){if(!this['element'])return;const _0x510f7d=[];for(const [_0x147a5a,_0x2fcbd5]of _0x53ca8a){const _0x4f59fe=document['createElement']('div');_0x4f59fe['setAttribute']('data-ck-root-name',_0x147a5a),_0x4f59fe['className']=_0x2fcbd5['classes']+'\x20ck-track-changes-preview__root-container',_0x4f59fe['innerHTML']=_0x2fcbd5['content'],_0x510f7d['push'](_0x4f59fe);}_0x43b147(this['element'],_0x510f7d),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x365dcb{constructor(_0x441ef2){super(_0x441ef2),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5455bb=this['editor'],_0x284846=_0x5455bb['locale'],_0x21562d=_0x5455bb['plugins']['get']('Dialog');let _0x338695;const _0x21b874=function(_0x2359b6){const _0xb01a41={};if('editables'in _0x2359b6['ui']['view']){for(const [_0x5e25ea,_0x39e0e9]of Object['entries'](_0x2359b6['ui']['view']['editables']))_0xb01a41[_0x5e25ea]=_0x39e0e9['element'];}else _0xb01a41[_0x2359b6['model']['document']['getRootNames']()[0x0]]=_0x2359b6['ui']['view']['editable']['element'];return _0xb01a41;}(_0x5455bb),_0x568ead=function(_0x3538a2){let _0x1288bd=0x0;for(const _0x15ea8a of Object['values'](_0x3538a2))_0x1288bd=Math['max'](_0x1288bd,_0x15ea8a['getBoundingClientRect']()['width']);let _0xa855e5=0x0;for(const _0x5af501 of Object['values'](_0x3538a2))_0xa855e5+=_0x5af501['getBoundingClientRect']()['height'];const _0x3d4406=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1c4a25=Math['min'](_0xa855e5,_0x3d4406);return{'width':_0x1288bd,'height':_0x1c4a25};}(_0x21b874);_0x21562d['show']({'id':'finalContentPreview','title':o(_0x284846,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x284846,{'dialogRects':_0x568ead}),'onHide':()=>{_0x338695['detachFromDom']();},'onShow':()=>{_0x5455bb['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1c9069=>{const _0xa91fda=this['_standarizeRootsData'](_0x1c9069,_0x5455bb,_0x21b874);_0x21562d['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xa91fda,_0x5455bb['config']['get']('trackChanges.preview.renderFunction'));}),_0x338695=new _0x3b289b(_0x284846,[_0x21562d['view']]),_0x338695['attachToDom'](),_0x338695['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5455bb['once']('destroy',()=>{_0x338695['detachFromDom']();});const _0x171611=_0x21562d['view']['headerView']['class'];_0x21562d['view']['headerView']['class']=_0x171611?_0x171611+'\x20ck-reset_all':'ck-reset_all',_0x21562d['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x21562d['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x12aad0=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x59b8e6=_0x12aad0['previewMode'],_0x2c19ab={};if('$labels'===_0x59b8e6){for(const _0x17a890 of _0x12aad0['getMergeFieldsIds']())_0x2c19ab[_0x17a890]=_0x12aad0['getLabel'](_0x17a890)||_0x17a890;}else{const _0x536863='$defaultValues'===_0x59b8e6?_0x12aad0['getDefaultValues']():_0x12aad0['getDataSetValues'](_0x59b8e6,!0x0);for(const _0x3d57a2 of Object['entries'](_0x536863)){const [_0x4ef3aa,_0x4cdd11]=_0x3d57a2;_0x2c19ab[_0x4ef3aa]=null!==_0x4cdd11?_0x4cdd11:_0x12aad0['getLabel'](_0x4ef3aa)||_0x4ef3aa;}}return{'mergeFieldsData':_0x2c19ab};}['_standarizeRootsData'](_0x3b76c0,_0x1a4e25,_0xa35e2e){let _0x5a28b4;if('string'==typeof _0x3b76c0){const _0x2e6acb=_0x1a4e25['model']['document']['getRootNames']()[0x0];_0x5a28b4={[_0x2e6acb]:_0x3b76c0};}else _0x5a28b4=_0x3b76c0;const _0x5741f4=this['_fixMediaEmbeds'](_0x5a28b4,_0x1a4e25),_0x1b758f=function(_0x3091c1,_0x130597){for(const [_0x1b2590,_0x491c74]of _0x3091c1)_0x491c74['classes']=_0x130597[_0x1b2590]['classList']['value']['replace']('ck-focused','');return _0x3091c1;}(this['_sortRoots'](_0x1a4e25)['reduce']((_0x395316,_0x5a4a4d)=>(_0x395316['push']([_0x5a4a4d,{'content':_0x5741f4[_0x5a4a4d],'classes':''}]),_0x395316),[]),_0xa35e2e);return _0x1b758f;}['_fixMediaEmbeds'](_0x131c7b,_0x3608dc){if(!_0x3608dc['plugins']['has']('MediaEmbedEditing'))return _0x131c7b;const _0x21aefc=_0x3608dc['plugins']['get']('MediaEmbedEditing');for(const [_0x358fd9,_0x4fd20c]of Object['entries'](_0x131c7b)){const _0x65a1a3=document['createElement']('div');_0x65a1a3['innerHTML']=_0x4fd20c,(_0x65a1a3['querySelectorAll']('figure.media')['forEach'](_0x23494c=>{const _0x5c8cb=_0x23494c['querySelector']('oembed');if(_0x5c8cb){const _0x467dc5=_0x5c8cb['getAttribute']('url');if(_0x467dc5){const _0x2c4218=_0x21aefc['registry']['getMediaViewElement'](new _0x5094e0(_0x3608dc['editing']['view']['document']),_0x467dc5,{'elementName':'','renderForEditingView':!0x0}),_0x11a454=document['createElement']('div');_0x11a454['classList']['add']('ck-media__wrapper'),_0x2c4218['render'](_0x11a454,_0x3608dc['editing']['view']['domConverter']),_0x5c8cb['replaceWith'](_0x11a454);}}}),_0x131c7b[_0x358fd9]=_0x65a1a3['innerHTML']);}return _0x131c7b;}['_sortRoots'](_0x3bb95a){if(!function(_0x4e28e3){return void 0x0!==_0x4e28e3['getRootsAttributes'];}(_0x3bb95a))return _0x3bb95a['model']['document']['getRootNames']();const _0x1bb0e6=[],_0x511f5e=new Map();for(const _0x462f92 of _0x3bb95a['model']['document']['getRootNames']()){const _0x3b7306=_0x3bb95a['editing']['view']['getDomRoot'](_0x462f92)['getClientRects']()['item'](0x0);_0x1bb0e6['push'](_0x462f92),_0x511f5e['set'](_0x462f92,_0x3b7306);}return _0x1bb0e6['sort']((_0x2bc4ad,_0x5a7165)=>{const _0xba132a=_0x511f5e['get'](_0x2bc4ad),_0x4c2b14=_0x511f5e['get'](_0x5a7165);return _0xba132a['y']-_0x4c2b14['y']||_0xba132a['x']-_0x4c2b14['x'];}),_0x1bb0e6;}}class Ue extends _0x335eea{static get['requires'](){return[re,_0x1ec381];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42c924){super(_0x42c924),_0x42c924['commands']['add']('previewFinalContent',new te(this['editor'])),_0x42c924['config']['define']('trackChanges.preview.renderFunction',(_0xce274a,_0x30dad4)=>{for(const _0x5599bf of _0x30dad4)_0xce274a['appendChild'](_0x5599bf);});}}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};